1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4882],{14882:function(e,t,n){"use strict";let i,o,r,a;n.r(t),n.d(t,{OktaSignIn:function(){return kt},default:function(){return kt}});var s,l,c,u,p,d,h,f,m,g,y,v,b,w,k,_,S,E,T,x,O,C,A,P,N,R,I,D,L,M,U,F,j,V,B,q,$,H,W,z,K,G,Y,J,Q,X,Z={};n.r(Z),n.d(Z,{ACCESS_TOKEN_STORAGE_KEY:function(){return eV},CACHE_STORAGE_NAME:function(){return eD},DEFAULT_CACHE_DURATION:function(){return eR},DEFAULT_CODE_CHALLENGE_METHOD:function(){return ez},DEFAULT_MAX_CLOCK_SKEW:function(){return eN},DEFAULT_POLLING_DELAY:function(){return eA},IDX_API_VERSION:function(){return eK},IDX_RESPONSE_STORAGE_NAME:function(){return ej},ID_TOKEN_STORAGE_KEY:function(){return eB},IOS_MAX_RETRY_COUNT:function(){return eP},MAX_VERIFIER_LENGTH:function(){return eW},MIN_VERIFIER_LENGTH:function(){return eH},ORIGINAL_URI_STORAGE_NAME:function(){return eF},PKCE_STORAGE_NAME:function(){return eL},REFERRER_PATH_STORAGE_KEY:function(){return e$},REFRESH_TOKEN_STORAGE_KEY:function(){return eq},SHARED_TRANSACTION_STORAGE_NAME:function(){return eU},STATE_TOKEN_KEY_NAME:function(){return eC},TOKEN_STORAGE_NAME:function(){return eI},TRANSACTION_STORAGE_NAME:function(){return eM}});var ee={};n.r(ee),n.d(ee,{getUserAgent:function(){return e8},hasTextEncoder:function(){return e5},isBrowser:function(){return e0},isDPoPSupported:function(){return tt},isFingerprintSupported:function(){return e2},isHTTPS:function(){return e7},isIE11OrLess:function(){return e1},isIOS:function(){return tn},isLocalhost:function(){return te},isPKCESupported:function(){return e9},isPopupPostMessageSupported:function(){return e3},isTokenVerifySupported:function(){return e6}});var et={};n.r(et),n.d(et,{AuthenticatorEnrollmentData:function(){return nx},AuthenticatorVerificationData:function(){return nT},ChallengeAuthenticator:function(){return np},ChallengePoll:function(){return nd},EnrollAuthenticator:function(){return ns},EnrollPoll:function(){return nl},EnrollProfile:function(){return nf},EnrollmentChannelData:function(){return nu},GenericRemediator:function(){return tK},Identify:function(){return nm},ReEnrollAuthenticator:function(){return ng},ReEnrollAuthenticatorWarning:function(){return ny},RedirectIdp:function(){return nv},Remediator:function(){return tz},ResetAuthenticator:function(){return nh},SelectAuthenticatorAuthenticate:function(){return nw},SelectAuthenticatorEnroll:function(){return nk},SelectAuthenticatorUnlockAccount:function(){return n_},SelectEnrollProfile:function(){return nS},SelectEnrollmentChannel:function(){return nc},Skip:function(){return nO}});var en={};n.r(en),n.d(en,{atob:function(){return eJ},base64ToBase64Url:function(){return n6},base64UrlDecode:function(){return ie},base64UrlToBase64:function(){return n5},base64UrlToBuffer:function(){return it},base64UrlToString:function(){return n9},btoa:function(){return eQ},bufferToBase64Url:function(){return ii},getOidcHash:function(){return io},stringToBase64Url:function(){return n4},stringToBuffer:function(){return n7},verifyToken:function(){return ir},webcrypto:function(){return eX}});var ei={};n.r(ei),n.d(ei,{buildCredentialCreationOptions:function(){return oR},buildCredentialRequestOptions:function(){return oI},getAssertion:function(){return oL},getAttestation:function(){return oD}});var eo={};function er(e){return e&&(e.key||e.id)}function ea(){var e="undefined"!=typeof window?window.console:"undefined"!=typeof console?console:void 0;return e&&e.log?e:{log:function(){},warn:function(){},group:function(){},groupEnd:function(){}}}function es(e){ea().warn("[okta-auth-sdk] WARN: "+e)}function el(e){var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=e[n];null!=i&&(t[n]=i)}return t}function ec(e){if(e){var t=JSON.stringify(e);if(t)return JSON.parse(t)}return e}function eu(e,...t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&-1==t.indexOf(i)&&(n[i]=e[i]);return ec(n)}function ep(e,t){for(var n=e.length;n--;){var i=e[n],o=!0;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&i[r]!==t[r]){o=!1;break}if(o)return i}}function ed(e,t,n){if(e&&e._links){var i=ec(e._links[t]);return i&&i.name&&n?i.name===n?i:void 0:i}}n.r(eo),n.d(eo,{addEmail:function(){return o5},addPhone:function(){return rr},deleteEmail:function(){return o9},deletePassword:function(){return rh},deletePhone:function(){return ra},enrollPassword:function(){return rp},getEmail:function(){return o6},getEmailChallenge:function(){return re},getEmails:function(){return o4},getPassword:function(){return ru},getPhone:function(){return ro},getPhones:function(){return ri},getProfile:function(){return oZ},getProfileSchema:function(){return o1},sendEmailChallenge:function(){return o7},sendPhoneChallenge:function(){return rs},updatePassword:function(){return rd},updateProfile:function(){return o0},verifyEmailChallenge:function(){return rt},verifyPhoneChallenge:function(){return rl}}),(s=z||(z={})).SUCCESS="SUCCESS",s.PENDING="PENDING",s.FAILURE="FAILURE",s.TERMINAL="TERMINAL",s.CANCELED="CANCELED",(l=K||(K={})).OKTA_PASSWORD="okta_password",l.OKTA_EMAIL="okta_email",l.PHONE_NUMBER="phone_number",l.GOOGLE_AUTHENTICATOR="google_otp",l.SECURITY_QUESTION="security_question",l.OKTA_VERIFY="okta_verify",l.WEBAUTHN="webauthn",(c=G||(G={})).PASSWORD_RECOVERY="recover-password",c.REGISTRATION="enroll-profile",c.SOCIAL_IDP="redirect-idp",c.ACCOUNT_UNLOCK="unlock-account";
1class eh extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}function ef(e){return"[object String]"===Object.prototype.toString.call(e)}function em(e){return"[object Object]"===Object.prototype.toString.call(e)}function eg(e){return!!e&&"[object Function]"===({}).toString.call(e)}class ey extends eh{constructor(e,t,n){var i;super(null!==(i=t.error)&&void 0!==i?i:ey.UNKNOWN_ERROR),this.name="WWWAuthError",this.resp=null,this.scheme=e,this.parameters=t,n&&(this.resp=n)}get error(){return this.parameters.error}get errorCode(){return this.error}get error_description(){return this.parameters.error_description}get errorDescription(){return this.error_description}get errorSummary(){return this.errorDescription}get realm(){return this.parameters.realm}static parseHeader(e){var t;let n;if(!e)return null;let i=/(?:,|, )?([a-zA-Z0-9!#$%&'*+\-.^_`|~]+)=(?:"([a-zA-Z0-9!#$%&'*+\-.,^_`|~ /:]+)"|([a-zA-Z0-9!#$%&'*+\-.^_`|~/:]+))/g,o=e.indexOf(" "),r=e.slice(0,o),a=e.slice(o+1),s={};for(;null!==(n=i.exec(a));)s[n[1]]=null!==(t=n[2])&&void 0!==t?t:n[3];return new ey(r,s)}static getWWWAuthenticateHeader(e={}){var t;return eg(null==e?void 0:e.get)?e.get("WWW-Authenticate"):null!==(t=e["www-authenticate"])&&void 0!==t?t:e["WWW-Authenticate"]}}function ev(e){for(var t="abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",n="",i=0,o=t.length;i<e;++i)n+=t[Math.floor(Math.random()*o)];return n}function eb(e){return new Promise(function(t){setTimeout(t,e)})}function ew(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)}function ek(e){var t=[];if(null!==e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&void 0!==e[n]&&null!==e[n]&&t.push(n+"="+encodeURIComponent(e[n]));return t.length?"?"+t.join("&"):""}function e_(e){if(e)return e.replace(/^\s+|\s+$/gm,"").replace(/\/+$/,"")}ey.UNKNOWN_ERROR="UNKNOWN_WWW_AUTH_ERROR";class eS extends eh{constructor(e,t){super(e),this.name="AuthSdkError",this.errorCode="INTERNAL",this.errorSummary=e,this.errorLink="INTERNAL",this.errorId="INTERNAL",this.errorCauses=[],t&&(this.xhr=t)}}function eE(e,t={}){return e_(t.issuer)||e.options.issuer}function eT(e,t={}){let n=eE(e,t);return n.indexOf("/oauth2")>0?n:n+"/oauth2"}function ex(e,t){if(arguments.length>2)throw new eS('As of version 3.0, "getOAuthUrls" takes only a single set of options');var n=e_((t=t||{}).authorizeUrl)||e.options.authorizeUrl,i=eE(e,t),o=e_(t.userinfoUrl)||e.options.userinfoUrl,r=e_(t.tokenUrl)||e.options.tokenUrl,a=e_(t.logoutUrl)||e.options.logoutUrl,s=e_(t.revokeUrl)||e.options.revokeUrl,l=eT(e,t);return{issuer:i,authorizeUrl:n=n||l+"/v1/authorize",userinfoUrl:o=o||l+"/v1/userinfo",tokenUrl:r=r||l+"/v1/token",revokeUrl:s=s||l+"/v1/revoke",logoutUrl:a=a||l+"/v1/logout"}}function eO(e,t){let n={issuer:e.options.issuer,urls:ex(e,t),clientId:t.clientId,redirectUri:t.redirectUri,responseType:t.responseType,responseMode:t.responseMode,scopes:t.scopes,state:t.state,nonce:t.nonce,ignoreSignature:t.ignoreSignature,acrValues:t.acrValues,extraParams:t.extraParams};return!1===t.pkce?n:Object.assign(Object.assign({},n),{codeVerifier:t.codeVerifier,codeChallengeMethod:t.codeChallengeMethod,codeChallenge:t.codeChallenge})}let eC="oktaStateToken",eA=500,eP=3,eN=300,eR=86400,eI="okta-token-storage",eD="okta-cache-storage",eL="okta-pkce-storage",eM="okta-transaction-storage",eU="okta-shared-transaction-storage",eF="okta-original-uri-storage",ej="okta-idx-response-storage",eV="accessToken",eB="idToken",eq="refreshToken",e$="referrerPath",eH=43,eW=128,ez="S256",eK="1.0.0";class eG extends eh{constructor(e,t,n){super(e.errorSummary),this.name="AuthApiError",this.errorSummary=e.errorSummary,this.errorCode=e.errorCode,this.errorLink=e.errorLink,this.errorId=e.errorId,this.errorCauses=e.errorCauses,t&&(this.xhr=t),n&&(this.meta=n)}}class eY extends eh{constructor(e,t,n){super(t),this.resp=null,this.name="OAuthError",this.errorCode=e,this.errorSummary=t,this.error=e,this.error_description=t,n&&(this.resp=n)}}let eJ=function(e){return atob(e)},eQ=function(e){return btoa(e)},eX="undefined"==typeof crypto?null:crypto,eZ=/windows phone|iemobile|wpdesktop/i;function e0(){return"undefined"!=typeof document&&"undefined"!=typeof window}function e1(){if(!e0())return!1;let e=document.documentMode;return!!e&&e<=11}function e8(){return navigator.userAgent}function e2(){let e=e8();return e&&!eZ.test(e)}function e3(){if(!e0())return!1;let e=document.documentMode;return void 0!==window.postMessage&&(!e||!(e<10))}function e4(){return null!=eX&&void 0!==eX.subtle&&"undefined"!=typeof Uint8Array}function e6(){return e4()}function e5(){return"undefined"!=typeof TextEncoder}function e9(){return e6()&&e5()}function e7(){return!!e0()&&"https:"===window.location.protocol}function te(){return e0()&&"localhost"===window.location.hostname}function tt(){return!e1()&&void 0!==window.indexedDB&&e5()&&e4()}function tn(){return e0()&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}let ti=0;e0()&&(ti=Date.now(),i=()=>{document.hidden||(ti=Date.now())}
1,document.addEventListener("visibilitychange",i));let to=(e,t)=>{var n;let i;if(t instanceof Error)return new eG({errorSummary:t.message});let o=t,r={};if(o.responseText&&ef(o.responseText))try{r=JSON.parse(o.responseText)}catch(e){r={errorSummary:"Unknown error"}}o.status>=500&&(r.errorSummary="Unknown error"),e.options.transformErrorXHR&&(o=e.options.transformErrorXHR(ec(o)));let a=null!==(n=ey.getWWWAuthenticateHeader(null==o?void 0:o.headers))&&void 0!==n?n:"";if(i=r.error&&r.error_description?new eY(r.error,r.error_description,o):new eG(r,o,{wwwAuthHeader:a}),a&&(null==o?void 0:o.status)>=400&&(null==o?void 0:o.status)<500){let e=ey.parseHeader(a);if(403===o.status&&(null==e?void 0:e.error)==="insufficient_authentication_context"){let{max_age:t,acr_values:n}=e.parameters;i=new eG({errorSummary:e.error,errorCauses:[{errorSummary:e.errorDescription}]},o,Object.assign({max_age:+t},n&&{acr_values:n}))}else(null==e?void 0:e.scheme)==="DPoP"&&(i=e)}return i};function tr(e,t){if(t=t||{},e.options.httpRequestInterceptors)for(let n of e.options.httpRequestInterceptors)n(t);var n,i,o,r,a=t.url,s=t.method,l=t.args,c=t.saveAuthnState,u=t.accessToken,p=!0===t.withCredentials,d=e.options.storageUtil.storage,h=e.storageManager.getHttpCache(e.options.cookies),f=t.pollingIntent,m=null!==(n=e.options.pollDelay)&&void 0!==n?n:0;if(t.cacheResponse){var g=h.getStorage()[a];if(g&&Date.now()/1e3<g.expiresAt)return Promise.resolve(g.response)}var y=Object.assign({Accept:"application/json","Content-Type":"application/json"},e._oktaUserAgent.getHttpHeader());Object.assign(y,e.options.headers,t.headers),y=el(y),u&&ef(u)&&(y.Authorization="Bearer "+u);var v={headers:y,data:l||void 0,withCredentials:p};if(f&&e0()&&m>0){let t,n,i;let o=0;n=()=>{let e=Date.now()-ti;return e<m?new Promise(n=>setTimeout(()=>{document.hidden?n(t()):n()},m-e)):Promise.resolve()},t=()=>{if(!document.hidden)return n();{let e;return new Promise(t=>{e=()=>{document.hidden||(document.removeEventListener("visibilitychange",e),t(n()))},document.addEventListener("visibilitychange",e)})}};let l=()=>e.options.httpRequestClient(s,a,v).catch(e=>{if((null==e?void 0:e.message)==="Load failed"&&o<eP)return o++,i();throw e});r=(i=()=>t().then(l))()}else r=e.options.httpRequestClient(s,a,v);return r.then(function(n){return(o=n.responseText)&&ef(o)&&(o=JSON.parse(o))&&"object"==typeof o&&!o.headers&&(Array.isArray(o)?o.forEach(e=>{e.headers=n.headers}):o.headers=n.headers),c&&!o.stateToken&&d.delete(eC),o&&o.stateToken&&o.expiresAt&&d.set(eC,o.stateToken,o.expiresAt,e.options.cookies),o&&t.cacheResponse&&h.updateStorage(a,{expiresAt:Math.floor(Date.now()/1e3)+eR,response:o}),o}).catch(function(t){throw"E0000011"===(i=to(e,t)).errorCode&&d.delete(eC),i})}function ta(e,t,n){var i={url:t=ew(t)?t:e.getIssuerOrigin()+t,method:"GET"};return Object.assign(i,n),tr(e,i)}function ts(e,t,n,i){var o={url:t=ew(t)?t:e.getIssuerOrigin()+t,method:"POST",args:n,saveAuthnState:!0};return Object.assign(o,i),tr(e,o)}var tl=n(74279),tc=n(31955),tu=n(54098),tp=n.n(tu);function td(e){return e&&e.accessToken}function th(e){return e&&e.idToken}function tf(e){return e&&e.refreshToken}function tm(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}async function tg(e,t={}){let n=await e.token.prepareTokenParams(t),i=eO(e,n),{flow:o="default",withCredentials:r=!0,activationToken:a,recoveryToken:s,maxAge:l,acrValues:c}=Object.assign(Object.assign({},e.options),t);return Object.assign(Object.assign({},i),{flow:o,withCredentials:r,activationToken:a,recoveryToken:s,maxAge:l,acrValues:c})}function ty(e,t){let n=tv(e,t);return null!=n&&!!n.interactionHandle}function tv(e,t){let n;t=el(t),t=Object.assign(Object.assign({},e.options),t);try{n=e.transactionManager.load(t)}catch(e){}if(n){if(t_(n,t))return n;es("Saved transaction meta does not match the current configuration. This may indicate that two apps are sharing a storage key.")}}async function tb(e,t){return t=el(t),t=Object.assign(Object.assign({},e.options),t),tv(e,t)||tg(e,t)}function tw(e,t){e.transactionManager.save(t,{muteWarning:!0})}function tk(e){e.transactionManager.clear()}function t_(e,t={}){if(!1==!["issuer","clientId","redirectUri","state","codeChallenge","codeChallengeMethod","activationToken","recoveryToken"].some(n=>{let i=t[n];if(i&&i!==e[n])return!0}))return!1;let{flow:n}=t;return!1!=(!n||"default"===n||"proceed"===n||n===e.flow)}function tS(e){return{meta:e,interactionHandle:e.interactionHandle,state:e.state}}async function tE(e,t={}){let n=tv(e,t=el(t));if(null==n?void 0:n.interactionHandle)return tS(n);n=await tg(e,Object.assign(Object.assign({},n),t));let i=eT(e),{clientId:o,redirectUri:r,state:a,scopes:s,withCredentials:l,codeChallenge:c,codeChallengeMethod:u,activationToken:p,recoveryToken:d,maxAge:h,acrValues:f,nonce:m}=n,g=t.clientSecret||e.options.clientSecret;l=null==l||l;let y=`${i}/v1/interact`,v=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({client_id:o,scope:s.join(" "),redirect_uri:r,code_challenge:c,code_challenge_method:u,state:a},p&&{activation_token:p}),d&&{recovery_token:d}),g&&{client_secret:g}),h&&{max_age:h}),f&&{acr_values:f}),m&&{nonce:m}),b=(await tr(e,{method:"POST",url:y,headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:l,args:v})).interaction_handle,w=Object.assign(Object.assign({},n),{interactionHandle:b,withCredentials:l,state:a,scopes:s,recoveryToken:d,activationToken:p});return tw(e,w),tS(w)}(u=Y||(Y={})).ACCESS="accessToken",u.ID="idToken",u.REFRESH="refreshToken","function"==typeof SuppressedError&&SuppressedError;let tT=function(e){var t,n;let i={},o=[],r={};if(!e.value)return o.push(e),{defaultParamsForAction:i,neededParamsForAction:o,immutableParamsForAction:r};for(let a of e.value)!1!==a.mutable?(o.push(a),null!==(t=a.value)&&void 0!==t&&t&&(i[a.name]=a.value)):r[a.name]=null!==(n=a.value)&&void 0!==n?n:"";return{defaultParamsForAction:i,neededParamsForAction:o,immutableParamsForAction:r}},tx=function(e){e=Array.isArray(e)?e:[e];let t=[],n={},i={};for(let o of e){let{defaultParamsForAction:e,neededParamsForAction:r,immutableParamsForAction:a}=tT(o);t.push(r),n[o.name]=e,i[o.name]=a}return{defaultParams:n,neededParams:t,immutableParams:i}},tO=function(e,{actionDefinition:t,defaultParamsForAction:n={},immutableParamsForAction:i={},toPersist:o={}}){let r=t.href;return async function(a={}){var s,l;let c={"Content-Type":"application/json",Accept:t.accepts||"application/ion+json"},u=JSON.stringify(Object.assign(Object.assign(Object.assign({},n),a),i));try{let n={url:r,method:t.method,headers:c,args:u,withCredentials:null===(s=null==o?void 0:o.withCredentials)||void 0===s||s};("poll"===t.name||(null===(l=t.name)||void 0===l?void 0:l.endsWith("-poll")))&&(n.pollingIntent=!0);let i=await tr(e,n);return e.idx.makeIdxResponse(Object.assign({},i),o,!0)}catch(a){if(!(a instanceof eG)||!(null==a?void 0:a.xhr))throw a;let t=a.xhr,n=t.responseJSON||JSON.parse(t.responseText),i=t.headers["WWW-Authenticate"]||t.headers["www-authenticate"],r=e.idx.makeIdxResponse(Object.assign({},n),o,!1);return 401===t.status&&'Oktadevicejwt realm="Okta Device"'===i&&(r.stepUp=!0),r}}},tC=function(e,t,n){let{defaultParams:i,neededParams:o,immutableParams:r}=tx(t),a=tO(e,{actionDefinition:t,defaultParamsForAction:i[t.name],immutableParamsForAction:r[t.name],toPersist:n});return a.neededParams=o,a},tA=/\$?(?<step>\w+)|(?:\[(?<index>\d+)\])/g,tP={remediation:!0,context:!0},tN=function(e,t,n={}){let i={},o={};return Object.keys(t).filter(e=>
1!tP[e]).forEach(r=>{if(!("object"==typeof t[r]&&t[r])){o[r]=t[r];return}if(t[r].rel){i[t[r].name]=tC(e,t[r],n);return}let a=t[r],{value:s,type:l}=a,c=tm(a,["value","type"]);if(o[r]=Object.assign({type:l},c),"object"!==l){o[r].value=s;return}o[r].value={},Object.entries(s).forEach(([t,a])=>{a.rel?i[`${r}-${t.name||t}`]=tC(e,a,n):o[r].value[t]=a})}),{context:o,actions:i}},tR=(e,t)=>{Object.keys(t).forEach(n=>{if("relatesTo"===n){let i=Array.isArray(t[n])?t[n][0]:t[n];if("string"==typeof i){let o=function({path:e,json:t}){var n,i,o;let r;let a=[];for(;null!==(r=tA.exec(e));){let e=null!==(i=null===(n=null==r?void 0:r.groups)||void 0===n?void 0:n.step)&&void 0!==i?i:null===(o=null==r?void 0:r.groups)||void 0===o?void 0:o.index;e&&a.push(e)}if(a.length<1)return;let s=a.pop(),l=t;for(let e of a)if(Object.prototype.hasOwnProperty.call(l,e)){if("object"!=typeof l[e])return;l=l[e]}return l[s]}({path:i,json:e});if(o){t[n]=o;return}throw new eS(`Cannot resolve relatesTo: ${i}`)}}Array.isArray(t[n])&&t[n].forEach(t=>tR(e,t))})},tI=(e,t,n)=>{if(t.rel){let i=function(e,t,n={}){return t.reduce((t,i)=>Object.assign(Object.assign({},t),{[i.name]:tC(e,i,n)}),{})}(e,[t],n)[t.name];return Object.assign(Object.assign({},t),{action:i})}return t},tD=function(e,t,n={}){var i;let o=(null===(i=t.remediation)||void 0===i?void 0:i.value)||[];o.forEach(e=>{var n;if("launch-authenticator"===e.name&&(null===(n=null==e?void 0:e.relatesTo)||void 0===n?void 0:n[0])==="authenticatorChallenge"&&!(null==t?void 0:t.authenticatorChallenge)){delete e.relatesTo;return}return tR(t,e)});let r=o.map(t=>tI(e,t,n)),{context:a,actions:s}=tN(e,t,n);return{remediations:r,context:a,actions:s}};var tL={makeIdxState:function(e,t,n,i){var o,r,a;let{remediations:s,context:l,actions:c}=tD(e,t,n),u=[...s],p=async function(e,t={}){let n=s.find(t=>t.name===e);return n?"function"!=typeof n.action?Promise.reject(`Current remediation cannot make form submit action: [${e}]`):n.action(t):Promise.reject(`Unknown remediation choice: [${e}]`)},d=null===(a=null===(r=null===(o=t.successWithInteractionCode)||void 0===o?void 0:o.value)||void 0===r?void 0:r.find(e=>"interaction_code"===e.name))||void 0===a?void 0:a.value;return{proceed:p,neededToProceed:u,actions:c,context:l,rawIdxState:t,interactionCode:d,toPersist:n,requestDidSucceed:i}}};let tM=function(e){switch(e){case"1.0.0":return tL;case void 0:case null:throw Error("Api version is required");default:throw Error(`Unknown api version: ${e}. Use an exact semver version.`)}};function tU(e){if(!e)throw Error("version is required");if((null!=e?e:"").replace(/[^0-9a-zA-Z._-]/,"")!==e||!e)throw Error("invalid version supplied - version is required and uses semver syntax");tM(e)}function tF(e,t,n,i){var o;let r=null!==(o=null==t?void 0:t.version)&&void 0!==o?o:eK;tU(r);let{makeIdxState:a}=tM(r);return a(e,t,n,i)}function tj(e){return e&&e.version}function tV(e){return e instanceof eY}async function tB(e,t={}){var n;let i,o;let r=e.transactionManager.loadIdxResponse(t);if(r&&(i=r.rawIdxResponse,o=r.requestDidSucceed),!i){let r=t.version||eK,a=function(e,t={}){return eE(e,t).split("/oauth2")[0]}(e),{interactionHandle:s,stateHandle:l}=t,c=null===(n=t.withCredentials)||void 0===n||n;try{o=!0,tU(r);let t=`${a}/idp/idx/introspect`,n={"Content-Type":`application/ion+json; okta-version=${r}`,Accept:`application/ion+json; okta-version=${r}`};i=await tr(e,{method:"POST",url:t,headers:n,withCredentials:c,args:l?{stateToken:l}:{interactionHandle:s}})}catch(e){if(e instanceof eG&&e.xhr&&tj(e.xhr.responseJSON))i=e.xhr.responseJSON,o=!1;else throw e}}let{withCredentials:a}=t;return tF(e,i,{withCredentials:a},o)}function tq(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t$(e){return e.value.find(({name:e})=>"authenticator"===e)}function tH(e){let t;if(er(e))t=e;else if("string"==typeof e)t={key:e};else throw Error("Invalid format for authenticator");return t}function tW(e,t){return!!e&&!!t&&(e.id&&t.id?e.id===t.id:!!e.key&&!!t.key&&e.key===t.key)}class tz{constructor(e,t={},n={}){this.values=Object.assign({},t),this.options=Object.assign({},n),this.formatAuthenticators(),this.remediation=e}formatAuthenticators(){if(this.values.authenticators=this.values.authenticators||[],this.values.authenticators=this.values.authenticators.map(e=>tH(e)),this.values.authenticator){let e=tH(this.values.authenticator);this.values.authenticators.some(t=>tW(e,t))||this.values.authenticators.push(e)}this.values.authenticatorsData=this.values.authenticators.reduce((e,t)=>
1("object"==typeof t&&Object.keys(t).length>1&&e.push(t),e),this.values.authenticatorsData||[])}getName(){return this.remediation.name}canRemediate(e){var t;return!(null===(t=this.remediation.value)||void 0===t?void 0:t.reduce((e,t)=>(t.required&&e.push(t.name),e),[])).find(e=>!this.hasData(e))}getData(e){if(!e){var t;return(null===(t=this.remediation.value)||void 0===t?void 0:t.map(e=>e.name)).reduce((e,t)=>(e[t]=this.getData(t),e),{})}if("function"==typeof this[`map${tq(e)}`]){let t=this[`map${tq(e)}`](this.remediation.value.find(({name:t})=>t===e));if(t)return t}if(this.map&&this.map[e]){let t=this.map[e];for(let e=0;e<t.length;e++){let n=this.values[t[e]];if(n)return n}}return this.values[e]}hasData(e){return!!this.getData(e)}getNextStep(e,t){let n=this.getName(),i=this.getInputs(),o=this.getAuthenticator(),r=null==o?void 0:o.type;return Object.assign(Object.assign({name:n,inputs:i},r&&{type:r}),o&&{authenticator:o})}getInputs(){let e=[];return(this.remediation.value||[]).forEach(t=>{let n;let{name:i,type:o,visible:r,messages:a}=t;if(!1!==r){if("function"==typeof this[`getInput${tq(i)}`])n=this[`getInput${tq(i)}`](t);else if("object"!==o){let e;let o=(this.map?this.map[i]:null)||[];(e=1===o.length?o[0]:o.find(e=>Object.keys(this.values).includes(e)))&&(n=Object.assign(Object.assign({},t),{name:e}))}n||(n=t),Array.isArray(n)?n.forEach(t=>e.push(t)):(a&&(n.messages=a),e.push(n))}}),e}static getMessages(e){var t,n;if(e.value)return null===(n=null===(t=e.value[0])||void 0===t?void 0:t.form)||void 0===n?void 0:n.value.reduce((e,t)=>(t.messages&&(e=[...e,...t.messages.value]),e),[])}getValuesAfterProceed(){for(let e of[...this.remediation.value||[],...this.getInputs()])delete this.values[e.name];return this.values}getAuthenticator(){var e,t;let n=null===(e=this.remediation.relatesTo)||void 0===e?void 0:e.value;if(!n)return;let i=t$(this.remediation);if(!i)return n;let o=i.form.value.find(({name:e})=>"id"===e).value,r=null===(t=i.form.value.find(({name:e})=>"enrollmentId"===e))||void 0===t?void 0:t.value;return Object.assign(Object.assign({},n),{id:o,enrollmentId:r})}}class tK extends tz{canRemediate(){return"function"==typeof this.remediation.action&&(!!("poll"===this.remediation.name||this.remediation.name.endsWith("-poll"))||!!this.options.step)}getData(){return this.getInputs().reduce((e,{name:t})=>(e[t]=this.values[t],e),{})}getNextStep(e,t){let n=this.getName(),i=this.getInputs(),o=this.remediation,{href:r,method:a,rel:s,accepts:l,produces:c,value:u,action:p}=o,d=tm(o,["href","method","rel","accepts","produces","value","action"]);return p?Object.assign(Object.assign(Object.assign({},d),!!i.length&&{inputs:i}),{action:async t=>e.idx.proceed(Object.assign({step:n},t))}):Object.assign({},this.remediation)}getInputs(){return(this.remediation.value||[]).filter(({name:e})=>"stateHandle"!==e).map(function e(t){if(Array.isArray(t))return t.map(t=>"string"==typeof t||"number"==typeof t||"boolean"==typeof t?t:e(t));let n={};for(let[i,o]of Object.entries(t))if(null!=o){if("object"==typeof o){let t=Object.keys(o);["value","form"].includes(i)&&1===t.length&&["value","form"].includes(t[0])?Object.entries(e(o)).forEach(([e,t])=>{n[e]=t}):n[i]=e(o)}else n[i]=o}return n}).map(e=>(e.type=e.type||"string",e))}}let tG={remediators:{},getFlowSpecification:function(e,t="default"){return{remediators:{}}}};function tY(e){let{neededToProceed:t,interactionCode:n}=e;return!t.length&&!n}function tJ(e,t){var n;let i=[],{rawIdxState:o,neededToProceed:r}=e,a=null===(n=o.messages)||void 0===n?void 0:n.value.map(e=>e);if(a&&(i=[...i,...a]),!t.useGenericRemediator)for(let e of r){let t=function e(t){if(t&&Array.isArray(t))return t.reduce((t,n)=>{if(n.messages&&(t=[...t,...n.messages.value]),n.form&&(t=[...t,...e(n.form.value)||[]]),n.options){let i=[];n.options.forEach(e=>{e.value&&"string"!=typeof e.value&&(i=[...i,e.value])}),t=[...t,...e(i)||[]]}return t},[])}(e.value);t&&(i=[...i,...t])}let s={};return i.reduce((e,t)=>{var n;let i=null===(n=t.i18n)||void 0===n?void 0:n.key;return i&&s[i]&&t.message===s[i].message?e:(s[i]=t,e=[...e,t])},[])}function tQ(e,t){let{useGenericRemediator:n,remediators:i}=t;return e?n?tK:i[e.name]:void 0}
1function tX(e,t,n){let i;let o=n.remediators,r=n.useGenericRemediator,{neededToProceed:a,context:s}=e;if(n.step){let e=a.find(({name:e})=>e===n.step);if(e){let i=tQ(e,n);return i?new i(e,t,n):void 0}return void es(`step "${n.step}" did not match any remediations`)}let l=[];if(r)l.push(new tK(a[0],t,n));else for(let e of a)if(Object.keys(o).includes(e.name)){if((i=new(tQ(e,n))(e,t,n)).canRemediate(s))return i;l.push(i)}return l[0]}function tZ(e,t,n){let i=t.getNextStep(e,n.context),o=n.neededToProceed.some(({name:e})=>"skip"===e),r=Object.keys(n.actions).some(e=>e.includes("resend"));return Object.assign(Object.assign(Object.assign({},i),o&&{canSkip:o}),r&&{canResend:r})}function t0(e,t,n={}){let i=tY(t),o=tJ(t,n);if(i)return{idxResponse:t,terminal:i,messages:o};{let i=tX(t,{},n),r=i&&tZ(e,i,t);return Object.assign({idxResponse:t,messages:o},r&&{nextStep:r})}}async function t1(e,t,n,i){var o;let{neededToProceed:r,interactionCode:a}=t,{flow:s}=i;if(a)return{idxResponse:t};let l=tX(t,n,i),c=(o=n,Object.keys(t.actions).find(e=>!!o.resend&&e.includes("-resend"))),u=[...i.actions||[],...c&&[c]||[]];if(u)for(let o of u){let a={};"string"!=typeof o&&(a=o.params||{},o=o.name);let s=Object.assign(Object.assign({},n),{resend:void 0}),l=function(e,t){let n=e.actions||[];return n=n.filter(e=>"string"==typeof e?e!==t:e.name!==t),Object.assign(Object.assign({},e),{actions:n})}(i,o);if("function"==typeof t.actions[o]){if(!1===(t=await t.actions[o](a)).requestDidSucceed)return t0(e,t,i);if("cancel"===o)return{idxResponse:t,canceled:!0};return t1(e,t,s,l)}if(r.find(({name:e})=>e===o)){if(!1===(t=await t.proceed(o,a)).requestDidSucceed)return t0(e,t,i);return t1(e,t,n,l)}}let p=tY(t);if(p)return{idxResponse:t,terminal:p};if(!l){if(i.step)return(n=function(e,t,n){let i=(e.neededToProceed||[]).find(e=>e.name===t);return i?i.value.reduce((e,t)=>{let{name:i,value:o}=t;return"stateHandle"===i?e[i]=o:e[i]=n[i],e},{}):(es(`filterValuesForRemediation: "${t}" did not match any remediations`),n)}(t,i.step,n),!1===(t=await t.proceed(i.step,n)).requestDidSucceed)?t0(e,t,i):{idxResponse:t};if("default"===s)return{idxResponse:t};throw new eS(` 2 No remediation can match current flow, check policy settings in your org. 3 Remediations: [${r.reduce((e,t)=>e?e+" ,"+t.name:t.name,"")}] 4 `)}if(!l.canRemediate()){let n=tZ(e,l,t);return{idxResponse:t,nextStep:n}}let d=l.getName(),h=l.getData();if(!1===(t=await t.proceed(d,h)).requestDidSucceed)return t0(e,t,i);if(n=l.getValuesAfterProceed(),(i=Object.assign(Object.assign({},i),{step:void 0})).useGenericRemediator&&!t.interactionCode&&!tY(t)){let o=tZ(e,tX(t,n,i),t);return{idxResponse:t,nextStep:o}}return t1(e,t,n,i)}async function t8(e,t){let n;let{options:i}=t,{stateHandle:o,withCredentials:r,version:a,state:s,scopes:l,recoveryToken:c,activationToken:u,maxAge:p,acrValues:d,nonce:h,useGenericRemediator:f}=i,m=tv(e,{state:s,recoveryToken:c,activationToken:u});if(o)n=await tB(e,{withCredentials:r,version:a,stateHandle:o,useGenericRemediator:f});else{let t=null==m?void 0:m.interactionHandle;if(!t){e.transactionManager.clear();let n=await tE(e,{withCredentials:r,state:s,scopes:l,activationToken:u,recoveryToken:c,maxAge:p,acrValues:d,nonce:h});t=n.interactionHandle,m=n.meta}n=await tB(e,{withCredentials:r,version:a,interactionHandle:t,useGenericRemediator:f})}return Object.assign(Object.assign({},t),{idxResponse:n,meta:m})}async function t2(e,t){let{idxResponse:n,options:i,values:o}=t,{autoRemediate:r,remediators:a,actions:s,flow:l,step:c,useGenericRemediator:u}=i;if(!(!1!==r&&(a||s||c)))return t;o=Object.assign(Object.assign({},o),{stateHandle:n.rawIdxState.stateHandle});let{idxResponse:p,nextStep:d,canceled:h}=await t1(e,n,o,{remediators:a,actions:s,flow:l,step:c,useGenericRemediator:u});return n=p,Object.assign(Object.assign({},t),{idxResponse:n,nextStep:d,canceled:h})}async function t3(e,t){let{meta:n,idxResponse:i}=t,{interactionCode:o}=i,{clientId:r,codeVerifier:a,ignoreSignature:s,redirectUri:l,urls:c,scopes:u}=n;return(await e.token.exchangeCodeForTokens({interactionCode:o,clientId:r,codeVerifier:a,ignoreSignature:s,redirectUri:l,scopes:u},c)).tokens}async function t4(e,t){let n,i,o,r,a,s,{options:l,idxResponse:c,canceled:u,status:p}=t,{exchangeCodeForTokens:d}=l,h=!1,f=!1,m=!0;if(c&&(h=!!(c.requestDidSucceed||c.stepUp),o=function(e){let t=[],{actions:n,neededToProceed:i}=e;return n["currentAuthenticator-recover"]&&t.push(G.PASSWORD_RECOVERY),i.some(({name:e})=>"select-enroll-profile"===e)&&t.push(G.REGISTRATION),i.some(({name:e})=>"redirect-idp"===e)&&t.push(G.SOCIAL_IDP),i.some(({name:e})=>"unlock-account"===e)&&t.push(G.ACCOUNT_UNLOCK),t}(c),r=function(e,t,n){var i;let o=[],r=Object.values(tG.remediators).reduce((e,t)=>
4(t.remediationName&&(e[t.remediationName]=t),e),{});for(let i of t.neededToProceed){let a=tQ(i,{useGenericRemediator:n,remediators:r});if(a){let n=new a(i);o.push(n.getNextStep(e,t.context))}}for(let[n]of Object.entries(t.actions||{})){let r={name:n,action:async t=>e.idx.proceed({actions:[{name:n,params:t}]})};if(n.startsWith("currentAuthenticator")){let[e,o]=function(e,t){let n=e.split("-");return[n[0],n.splice(1,n.length).join("-")]}(n,0),a=t.rawIdxState[e].value[o],s=tm(a,["href","method","rel","accepts","produces"]),l=null===(i=a.value)||void 0===i?void 0:i.filter(e=>"stateHandle"!==e.name);r=Object.assign(Object.assign(Object.assign({},s),l&&{value:l}),r)}o.push(r)}return o}(e,c,l.useGenericRemediator),a=tJ(c,l),s=tY(c)),s){p=z.TERMINAL;let e=Object.keys(c.actions).length>0,t=!!a.find(e=>"ERROR"===e.class);e||t||!0!==c.requestDidSucceed?h=!!e:f=!0,m=!1}else u?(p=z.CANCELED,f=!0):(null==c?void 0:c.interactionCode)&&(n=c.interactionCode,!1===d?(p=z.SUCCESS,f=!1):(i=await t3(e,t),p=z.SUCCESS,f=!0));return Object.assign(Object.assign({},t),{status:p,interactionCode:n,tokens:i,shouldSaveResponse:h,shouldClearTransaction:f,clearSharedStorage:m,enabledFeatures:o,availableSteps:r,messages:a,terminal:s})}async function t6(e,t={}){var n;let i={options:t,values:function(e){let t=Object.assign({},e);return["flow","remediators","actions","withCredentials","step","useGenericRemediator","exchangeCodeForTokens"].forEach(e=>{delete t[e]}),t}(t)};i=function(e,t){var n,i,o,r;let{options:a}=t,{flow:s,withCredentials:l,remediators:c,actions:u}=a=Object.assign(Object.assign({},e.options.idx),a),p=z.PENDING;s=s||(null===(i=(n=e.idx).getFlow)||void 0===i?void 0:i.call(n))||"default";{null===(r=(o=e.idx).setFlow)||void 0===r||r.call(o,s);let t=function(e,t="default"){return tG.getFlowSpecification(e,t)}(e,s);l=void 0!==l?l:t.withCredentials,c=c||t.remediators,u=u||t.actions}return Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},a),{flow:s,withCredentials:l,remediators:c,actions:u}),status:p})}(e,i),i=await t8(e,i),i=await t2(e,i);let{idxResponse:o,meta:r,shouldSaveResponse:a,shouldClearTransaction:s,clearSharedStorage:l,status:c,enabledFeatures:u,availableSteps:p,tokens:d,nextStep:h,messages:f,error:m,interactionCode:g}=i=await t4(e,i);if(s)e.transactionManager.clear({clearSharedStorage:l});else if(tw(e,Object.assign({},r)),a){let{rawIdxState:t,requestDidSucceed:i}=o;e.transactionManager.saveIdxResponse({rawIdxResponse:t,requestDidSucceed:i,stateHandle:null===(n=o.context)||void 0===n?void 0:n.stateHandle,interactionHandle:null==r?void 0:r.interactionHandle})}let{actions:y,context:v,neededToProceed:b,proceed:w,rawIdxState:k,requestDidSucceed:_,stepUp:S}=o||{};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({status:c},r&&{meta:r}),u&&{enabledFeatures:u}),p&&{availableSteps:p}),d&&{tokens:d}),h&&{nextStep:h}),f&&f.length&&{messages:f}),m&&{error:m}),S&&{stepUp:S}),{interactionCode:g,actions:y,context:v,neededToProceed:b,proceed:w,rawIdxState:k,requestDidSucceed:_})}async function t5(e,t={}){return t.password&&!t.authenticator&&(t.authenticator=K.OKTA_PASSWORD),t6(e,Object.assign(Object.assign({},t),{flow:"authenticate"}))}class t9{constructor(e){this.meta=e}}class t7 extends t9{canVerify(e){return!!(e.credentials||e.verificationCode||e.otp)}mapCredentials(e){let{credentials:t,verificationCode:n,otp:i}=e;if(t||n||i)return t||{passcode:n||i}}getInputs(e){var t;return Object.assign(Object.assign({},null===(t=e.form)||void 0===t?void 0:t.value[0]),{name:"verificationCode",type:"string",required:e.required})}}class ne extends t7{mapCredentials(e){let{verificationCode:t}=e;if(t)return{totp:t}}}class nt extends t9{canVerify(e){return!!(e.credentials||e.password||e.passcode)}mapCredentials(e){let{credentials:t,password:n,passcode:i,revokeSessions:o}=e;if(t||n||i)return t||{passcode:i||n,revokeSessions:o}}getInputs(e){var t,n;let i=[Object.assign(Object.assign({},null===(t=e.form)||void 0===t?void 0:t.value[0]),{name:"password",type:"string",required:e.required})];return(null===(n=e.form)||void 0===n?void 0:n.value.find(e=>"revokeSessions"===e.name))&&i.push({name:"revokeSessions",type:"boolean",label:"Sign me out of all other devices",required:!1}),i}}class nn extends t9{canVerify(e){let{credentials:t}=e;if(t&&t.questionKey&&t.answer)return!0;let{questionKey:n,question:i,answer:o}=e;return!!(n&&o)||!!(i&&o)}mapCredentials(e){let{questionKey:t,question:n,answer:i}=e;
4if(i&&(t||n))return{questionKey:n?"custom":t,question:n,answer:i}}getInputs(){return[{name:"questionKey",type:"string",required:!0},{name:"question",type:"string",label:"Create a security question"},{name:"answer",type:"string",label:"Answer",required:!0}]}}class ni extends t9{canVerify(e){let{credentials:t}=e;if(t&&t.answer)return!0;let{answer:n}=e;return!!n}mapCredentials(e){let{answer:t}=e;if(t)return{questionKey:this.meta.contextualData.enrolledQuestion.questionKey,answer:t}}getInputs(){return[{name:"answer",type:"string",label:"Answer",required:!0}]}}class no extends t9{canVerify(e){let{credentials:t}=e,{clientData:n,attestation:i}=t||e;return!!(n&&i)}mapCredentials(e){let{credentials:t,clientData:n,attestation:i}=e;if(t||n||i)return t||{clientData:n,attestation:i}}getInputs(){return[{name:"clientData",type:"string",required:!0,visible:!1,label:"Client Data"},{name:"attestation",type:"string",required:!0,visible:!1,label:"Attestation"}]}}class nr extends t9{canVerify(e){let{credentials:t}=e,{clientData:n,authenticatorData:i,signatureData:o}=t||e;return!!(n&&i&&o)}mapCredentials(e){let{credentials:t,authenticatorData:n,clientData:i,signatureData:o}=e;if(t||n||i||o)return t||{authenticatorData:n,clientData:i,signatureData:o}}getInputs(){return[{name:"authenticatorData",type:"string",label:"Authenticator Data",required:!0,visible:!1},{name:"clientData",type:"string",label:"Client Data",required:!0,visible:!1},{name:"signatureData",type:"string",label:"Signature Data",required:!0,visible:!1}]}}class na extends tz{constructor(e,t={}){super(e,t),this.authenticator=function(e){var t,n;let i=e.relatesTo,o=(null==i?void 0:i.value)||{};switch(o.key){case K.OKTA_PASSWORD:return new nt(o);case K.SECURITY_QUESTION:if(null===(t=o.contextualData)||void 0===t?void 0:t.enrolledQuestion)return new ni(o);return new nn(o);case K.OKTA_VERIFY:return new ne(o);case K.WEBAUTHN:if(null===(n=o.contextualData)||void 0===n?void 0:n.challengeData)return new nr(o);return new no(o);default:return new t7(o)}}(e)}getNextStep(e,t){var n;let i=super.getNextStep(e,t),o=null===(n=null==t?void 0:t.authenticatorEnrollments)||void 0===n?void 0:n.value;return Object.assign(Object.assign({},i),{authenticatorEnrollments:o})}canRemediate(){return this.authenticator.canVerify(this.values)}mapCredentials(){return this.authenticator.mapCredentials(this.values)}getInputCredentials(e){return this.authenticator.getInputs(e)}getValuesAfterProceed(){return this.values=super.getValuesAfterProceed(),Object.keys(this.values).filter(e=>
4"credentials"!==e).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}class ns extends na{}ns.remediationName="enroll-authenticator";class nl extends tz{canRemediate(){return!!this.values.startPolling||"enroll-poll"===this.options.step}getNextStep(e,t){let n=super.getNextStep(e,t),i=this.getAuthenticator();return!i&&(null==t?void 0:t.currentAuthenticator)&&(i=t.currentAuthenticator.value),Object.assign(Object.assign({},n),{authenticator:i,poll:{required:!0,refresh:this.remediation.refresh}})}getValuesAfterProceed(){return Object.keys(this.values).filter(e=>"startPolling"!==e).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}nl.remediationName="enroll-poll";class nc extends tz{canRemediate(){if(this.values.channel)return!0;if(this.values.authenticator){let{id:e,channel:t}=this.values.authenticator;if(e&&t)return!0}return!1}getNextStep(e,t){let n=super.getNextStep(e,t),i=t.currentAuthenticator.value;return Object.assign(Object.assign({},n),{authenticator:i})}getData(){var e;return{authenticator:{id:this.remediation.value[0].value.form.value[0].value,channel:(null===(e=this.values.authenticator)||void 0===e?void 0:e.channel)||this.values.channel},stateHandle:this.values.stateHandle}}getValuesAfterProceed(){this.values=super.getValuesAfterProceed(),delete this.values.authenticators;let e=this.values.channel?"channel":"authenticator";return Object.keys(this.values).filter(t=>t!==e).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}nc.remediationName="select-enrollment-channel";class nu extends tz{getInputEmail(){return[{name:"email",type:"string",required:!0,label:"Email"}]}getInputPhoneNumber(){return[{name:"phoneNumber",type:"string",required:!0,label:"Phone Number"}]}canRemediate(){return!!(this.values.email||this.values.phoneNumber)}getNextStep(e,t){let n=super.getNextStep(e,t),i=t.currentAuthenticator.value;return Object.assign(Object.assign({},n),{authenticator:i})}getData(){return{stateHandle:this.values.stateHandle,email:this.values.email,phoneNumber:this.values.phoneNumber}}getValuesAfterProceed(){return Object.keys(this.values).filter(e=>!["email","phoneNumber"].includes(e)).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}nu.remediationName="enrollment-channel-data";class np extends na{}np.remediationName="challenge-authenticator";class nd extends nl{canRemediate(){return!!this.values.startPolling||"challenge-poll"===this.options.step}}nd.remediationName="challenge-poll";class nh extends na{}nh.remediationName="reset-authenticator";class nf extends tz{constructor(e,t={},n={}){super(e,t,n),this.authenticator=null,this.getCredentialsFromRemediation()&&(this.authenticator=this.authenticator=new nt({}))}canRemediate(){if(this.authenticator&&!this.authenticator.canVerify(this.values))return!1;let e=this.getData().userProfile;return!!e&&this.remediation.value.find(({name:e})=>"userProfile"===e).form.value.reduce((t,n)=>(n.required&&(t=t&&!!e[n.name]),t),!0)}getCredentialsFromRemediation(){return this.remediation.value.find(({name:e})=>"credentials"===e)}mapUserProfile({form:{value:e}}){let t=e.map(({name:e})=>e).reduce((e,t)=>this.values[t]?Object.assign(Object.assign({},e),{[t]:this.values[t]}):e,{});if(0!==Object.keys(t).length)return t}mapCredentials(){let e=this.authenticator&&this.authenticator.mapCredentials(this.values);if(e)return e}getInputUserProfile(e){return[...e.form.value]}getInputCredentials(e){return[...e.form.value]}getErrorMessages(e){return e.value[0].form.value.reduce((e,t)=>(t.messages&&e.push(t.messages.value[0].message),e),[])}}nf.remediationName="enroll-profile";class nm extends tz{constructor(){super(...arguments),this.map={identifier:["username"]}}canRemediate(){let{identifier:e}=this.getData();return!!e}mapCredentials(){let{credentials:e,password:t}=this.values;if(e||t)return e||{passcode:t}}getInputCredentials(e){return Object.assign(Object.assign({},e.form.value[0]),{name:"password",required:e.required})}}nm.remediationName="identify";class ng extends tz{mapCredentials(){let{newPassword:e}=this.values;if(e)return{passcode:e}}getInputCredentials(e){let t=this.getAuthenticator().type;return Object.assign(Object.assign({},e.form.value[0]),{name:"password"===t?"newPassword":"verificationCode"})}}ng.remediationName="reenroll-authenticator";class ny extends ng{}ny.remediationName="reenroll-authenticator-warning";class nv extends tz{canRemediate(){return!1}getNextStep(){let{name:e,type:t,idp:n,href:i}=this.remediation;return{name:e,type:t,idp:n,href:i}}}nv.remediationName="redirect-idp";class nb extends tz{findMatchedOption(e,t){let n;for(let i of e)if(n=t.find(({relatesTo:e})=>e.key&&e.key===i.key))break;return n}canRemediate(e){var t,n;let{authenticators:i,authenticator:o}=this.values,{options:r}=t$(this.remediation);if(!i||!i.length)return!1;if(er(o)&&o.id)return!0;let a=this.findMatchedOption(i,r);if(a){let i=(null==e?void 0:e.currentAuthenticator)&&(null==e?void 0:e.currentAuthenticator.value.id)===(null===(t=a.relatesTo)||void 0===t?void 0:t.id),o=(null==e?void 0:e.currentAuthenticatorEnrollment)&&(null==e?void 0:e.currentAuthenticatorEnrollment.value.id)===(null===(n=a.relatesTo)||void 0===n?void 0:n.id);return!i&&!o}return!1}mapAuthenticator(e){let{authenticators:t,authenticator:n}=this.values;if(er(n)&&n.id)return this.selectedAuthenticator=n,n;let{options:i}=e,o=function(e,t){let n;for(let i of e)if(n=t.find(({relatesTo:e})=>e.key&&e.key===i.key))break;return n}(t,i);return this.selectedAuthenticator=o.relatesTo,this.selectedOption=o,{id:null==o?void 0:o.value.form.value.find(({name:e})=>"id"===e).value}}getInputAuthenticator(e){return{name:"authenticator",type:"string",options:e.options.map(({label:e,relatesTo:t})=>({label:e,value:t.key}))}}getValuesAfterProceed(){this.values=super.getValuesAfterProceed();let e=this.values.authenticators.filter(e=>!0!==tW(e,this.selectedAuthenticator));return Object.assign(Object.assign({},this.values),{authenticators:e})}}class nw extends nb{constructor(e,t={},n={}){var i;super(e,t,n);let o="recoverPassword"===this.options.flow;(null===(i=t$(e).options)||void 0===i?void 0:i.some(({relatesTo:e})=>(null==e?void 0:e.key)===K.OKTA_PASSWORD))&&(o||this.values.password)&&(this.values.authenticators=[...this.values.authenticators||[],{key:K.OKTA_PASSWORD}])}}nw.remediationName="select-authenticator-authenticate";class nk extends nb{}nk.remediationName="select-authenticator-enroll";class n_ extends nb{constructor(){super(...arguments),this.map={identifier:["username"]}}canRemediate(){return!!this.getData("identifier")&&super.canRemediate()}mapAuthenticator(e){var t,n,i;let o=super.mapAuthenticator(e),r=null===(t=this.selectedOption)||void 0===t?void 0:t.value.form.value.find(({name:e})=>"methodType"===e),a=this.values.methodType||(null==r?void 0:r.value)||(null===(i=null===(n=null==r?void 0:r.options)||void 0===n?void 0:n[0])||void 0===i?void 0:i.value);return a?Object.assign(Object.assign({},o),{methodType:a}):o}getInputUsername(){return{name:"username",type:"string"}}}n_.remediationName="select-authenticator-unlock-account";class nS extends tz{canRemediate(){return!0}}nS.remediationName="select-enroll-profile";class nE extends tz{constructor(e,t={}){super(e,t),this.authenticator=this.getAuthenticator(),this.formatAuthenticatorData()}formatAuthenticatorData(){if(this.getAuthenticatorData())this.values.authenticatorsData=this.values.authenticatorsData.map(e=>tW(this.authenticator,e)?this.mapAuthenticatorDataFromValues(e):e);else{let e=this.mapAuthenticatorDataFromValues();e&&this.values.authenticatorsData.push(e)}}getAuthenticatorData(){return this.values.authenticatorsData.find(e=>tW(this.authenticator,e))}canRemediate(){return this.values.authenticatorsData.some(e=>tW(this.authenticator,e))}mapAuthenticatorDataFromValues(e){let{methodType:t,authenticator:n}=this.values;!t&&er(n)&&(t=null==n?void 0:n.methodType);let{id:i,enrollmentId:o}=this.authenticator,r=Object.assign(Object.assign({id:i,enrollmentId:o},e&&e),t&&{methodType:t});return r.methodType?r:null}getAuthenticatorFromRemediation(){return this.remediation.value.find(({name:e})=>"authenticator"===e)}getValuesAfterProceed(){this.values=super.getValuesAfterProceed();let e=this.values.authenticatorsData.filter(e=>!0!==tW(this.authenticator,e));return Object.assign(Object.assign({},this.values),{authenticatorsData:e})}}class nT extends nE{mapAuthenticator(){return this.getAuthenticatorData()}getInputAuthenticator(){let e=this.getAuthenticatorFromRemediation(),t=e.form.value.find(({name:e})=>"methodType"===e);return t&&t.options?{name:"methodType",type:"string",required:!0,options:t.options}:[...e.form.value]}getValuesAfterProceed(){return this.values=super.getValuesAfterProceed(),Object.keys(this.values).filter(e=>"authenticator"!==e).reduce((e,t)=>
4Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}nT.remediationName="authenticator-verification-data";class nx extends nE{mapAuthenticator(){let e=this.getAuthenticatorData();return{id:t$(this.remediation).form.value.find(({name:e})=>"id"===e).value,methodType:e.methodType,phoneNumber:e.phoneNumber}}getInputAuthenticator(e){return[{name:"methodType",type:"string"},{name:"phoneNumber",label:"Phone Number",type:"string"}].map(t=>Object.assign(Object.assign({},e.form.value.find(e=>e.name===t.name)),t))}mapAuthenticatorDataFromValues(e){e=super.mapAuthenticatorDataFromValues(e);let{phoneNumber:t}=this.values;if(e||t)return Object.assign(Object.assign({},e&&e),t&&{phoneNumber:t})}}nx.remediationName="authenticator-enrollment-data";class nO extends tz{canRemediate(){return!!this.values.skip||"skip"===this.options.step}}nO.remediationName="skip";let nC={identify:nm,"select-authenticator-authenticate":nw,"select-authenticator-enroll":nk,"authenticator-enrollment-data":nx,"authenticator-verification-data":nT,"enroll-authenticator":ns,"challenge-authenticator":np,"challenge-poll":nd,"reenroll-authenticator":ng,"reenroll-authenticator-warning":ny,"enroll-poll":nl,"select-enrollment-channel":nc,"enrollment-channel-data":nu,"redirect-idp":nv,skip:nO},nA={identify:nm,"identify-recovery":nm,"select-authenticator-authenticate":nw,"select-authenticator-enroll":nk,"challenge-authenticator":np,"authenticator-verification-data":nT,"authenticator-enrollment-data":nx,"reset-authenticator":nh,"reenroll-authenticator":ng,"reenroll-authenticator-warning":ny,"enroll-poll":nl},nP={"select-enroll-profile":nS,"enroll-profile":nf,"authenticator-enrollment-data":nx,"select-authenticator-enroll":nk,"enroll-poll":nl,"select-enrollment-channel":nc,"enrollment-channel-data":nu,"enroll-authenticator":ns,skip:nO},nN={identify:nm,"select-authenticator-unlock-account":n_,"select-authenticator-authenticate":nw,"challenge-authenticator":np,"challenge-poll":nd,"authenticator-verification-data":nT,"reenroll-authenticator-warning":ny};function nR(e,t="default"){let n,i,o=!0;switch(t){case"register":case"signup":case"enrollProfile":n=nP,o=!1;break;case"recoverPassword":case"resetPassword":n=nA,i=["currentAuthenticator-recover","currentAuthenticatorEnrollment-recover"],o=!1;break;case"unlockAccount":n=nN,o=!1,i=["unlock-account"];break;default:n=nC}return{flow:t,remediators:n,actions:i,withCredentials:o}}async function nI(e,t){let n=e.transactionManager.load(),i=nR(e,n.flow);return t6(e,Object.assign(Object.assign(Object.assign({},t),i),{actions:["cancel"]}))}function nD(e){var t,n=/\+/g,i=/([^&=]+)=?([^&]*)/g,o=e||"";"#"===o.charAt(0)&&"/"===o.charAt(1)&&(o=o.substring(2)),("#"===o.charAt(0)||"?"===o.charAt(0))&&(o=o.substring(1));for(var r={};t=i.exec(o);){var a=t[1],s=t[2];"id_token"===a||"access_token"===a||"code"===a?r[a]=s:r[a]=decodeURIComponent(s.replace(n," "))}return r}class nL extends eh{constructor(e,t){super(`Enter the OTP code in the originating client: ${t}`),this.name="EmailVerifyCallbackError",this.state=e,this.otp=t}}function nM(e){return"EmailVerifyCallbackError"===e.name}function nU(e){return/(otp=)/i.test(e)&&/(state=)/i.test(e)}function nF(e){return nD(e)}async function nj(e,t){if(nU(t)){let{state:n,otp:i}=nD(t);if(e.idx.canProceed({state:n}))return await e.idx.proceed({state:n,otp:i});throw new nL(n,i)}}function nV(e,t={}){return!!(tv(e,t)||t.stateHandle)}async function nB(e,t={}){if(!nV(e,t))throw new eS("Unable to proceed: saved transaction could not be loaded");let{flow:n,state:i}=t;if(!n){let t=tv(e,{state:i});n=null==t?void 0:t.flow}return t6(e,Object.assign(Object.assign({},t),{flow:n}))}async function nq(e,t={}){var n;let{withCredentials:i,exchangeCodeForTokens:o}=t,r=await nB(e,{startPolling:!0,withCredentials:i,exchangeCodeForTokens:o}),a=tv(e),s=null===(n=null==a?void 0:a.remediations)||void 0===n?void 0:n.find(e=>e.includes("poll"));return((null==s?void 0:s.length)||es("No polling remediations available at the current IDX flow stage"),Number.isInteger(t.refresh))?new Promise(function(n,i){setTimeout(async function(){var t,o;try{let i=null===(o=null===(t=r.nextStep)||void 0===t?void 0:t.poll)||void 0===o?void 0:o.refresh;i?n(nq(e,{refresh:i})):n(r)}catch(e){i(e)}},t.refresh)}):r}async function n$(e,t={}){return e.transactionManager.clear(),t6(e,Object.assign({exchangeCodeForTokens:!1},t))}async function nH(e,t={}){if(!ty(e)){let{enabledFeatures:n}=await n$(e,Object.assign(Object.assign({},t),{flow:"register",autoRemediate:!1}));if(!t.activationToken&&n&&!n.includes(G.REGISTRATION))throw new eS("Registration is not supported based on your current org configuration.")}return t6(e,Object.assign(Object.assign({},t),{flow:"register"}))}
4async function nW(e,t={}){let n=nR(e,"recoverPassword");return t6(e,Object.assign(Object.assign({},t),n))}async function nz(e,t){let n=e.transactionManager.load();if(!n)throw new eS("No transaction data was found in storage");let{codeVerifier:i,state:o}=n,{searchParams:r}=new URL(t),a=r.get("state"),s=r.get("interaction_code"),l=r.get("error");if(l)throw new eY(l,r.get("error_description"));if(a!==o)throw new eS("State in redirect uri does not match with transaction state");if(!s)throw new eS("Unable to parse interaction_code from the url");let{tokens:c}=await e.token.exchangeCodeForTokens({interactionCode:s,codeVerifier:i});e.tokenManager.setTokens(c)}async function nK(e,t={}){if(t.flow="unlockAccount",!ty(e)){let{enabledFeatures:n}=await n$(e,Object.assign(Object.assign({},t),{autoRemediate:!1}));if(n&&!n.includes(G.ACCOUNT_UNLOCK))throw new eS("Self Service Account Unlock is not supported based on your current org configuration.")}return t6(e,Object.assign({},t))}function nG(e){return"OAuthError"===e.name&&"interaction_required"===e.errorCode}function nY(e){return e.pkce||"code"===e.responseType||"query"===e.responseMode}function nJ(e){return nY(e)&&"fragment"!==e.responseMode?window.location.search:window.location.hash}function nQ(e){if(t=window.location.href,n=e.options,!t||!n.redirectUri||0!==t.indexOf(n.redirectUri))return!1;var t,n,i,o=nY(e.options),r=nJ(e.options);return!!(/(error=)/i.test(r)||/(error_description)/i.test(r))||(o?/(code=)/i.test(r)||/(interaction_code=)/i.test(r):(i=window.location.hash,/((id|access)_token=)/i.test(i)))}function nX(e,t){if(!t){if(!nQ(e))return!1;t=nJ(e.options)}return/(error=interaction_required)/i.test(t)}function nZ(e){class t{constructor(...t){let n=new e(t.length&&t[0]||{});this.options=el(n),this.emitter=new tl,this.features=ee}}return t.features=ee,t.constants=Z,t.features=t.prototype.features=ee,Object.assign(t,{constants:Z}),t}function n0(e,t){return class extends e{constructor(...e){super(...e);let{storageManager:n,cookies:i,storageUtil:o}=this.options;this.storageManager=new t(n,i,o)}clearStorage(){}}}var n1=n(34155);class n8{constructor(){this.environments=["okta-auth-js/7.14.0"],this.maybeAddNodeEnvironment()}addEnvironment(e){this.environments.push(e)}getHttpHeader(){return{"X-Okta-User-Agent-Extended":this.environments.join(" ")}}getVersion(){return"7.14.0"}maybeAddNodeEnvironment(){if(e0()||!n1||!n1.versions)return;let{node:e}=n1.versions;this.environments.push(`nodejs/${e}`)}}function n2(e,t,n){e.options.headers=e.options.headers||{},e.options.headers[t]=n}function n3(e){return class extends e{constructor(...e){super(...e),this._oktaUserAgent=new n8,this.http={setRequestHeader:n2.bind(null,this)}}setHeaders(e){this.options.headers=Object.assign({},this.options.headers,e)}getIssuerOrigin(){return this.options.issuer.split("/oauth2/")[0]}webfinger(e){return ta(this,"/.well-known/webfinger"+ek(e),{headers:{Accept:"application/jrd+json"}})}}}function n4(e){return n6(eQ(e))}function n6(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function n5(e){return e.replace(/-/g,"+").replace(/_/g,"/")}function n9(e){var t=n5(e);switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new eS("Not a valid Base64Url")}var n=eJ(t);try{return decodeURIComponent(escape(n))}catch(e){return n}}function n7(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function ie(e){return eJ(n5(e))}function it(e){return Uint8Array.from(ie(e),e=>e.charCodeAt(0))}function ii(e){return eQ(new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),""))}function io(e){var t=new TextEncoder().encode(e);return eX.subtle.digest("SHA-256",t).then(function(e){var t=new Uint8Array(e).slice(0,16);return n4(String.fromCharCode.apply(null,t))})}function ir(e,t){t=ec(t);var n={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};return delete t.use,eX.subtle.importKey("jwk",t,n,!0,["verify"]).then(function(t){var i=e.split("."),o=n7(i[0]+"."+i[1]),r=n7(ie(i[2]));return eX.subtle.verify(n,t,r,o)})}class ia{constructor(e={quiet:!1}){this.queue=[],this.running=!1,this.options=e}push(e,t,...n){return new Promise((i,o)=>{this.queue.length>0&&!1!==this.options.quiet&&es("Async method is being called but another async method is already running. The new method will be delayed until the previous method completes."),this.queue.push({method:e,thisObject:t,args:n,resolve:i,reject:o}),this.run()})}run(){if(!this.running&&0!==this.queue.length){this.running=!0;var e=this.queue.shift(),t=e.method.apply(e.thisObject,e.args);t&&t.finally&&"function"==typeof t.finally?t.then(e.resolve,e.reject).finally(()=>{this.running=!1,this.run()}):(e.resolve(t),this.running=!1,this.run())}}}function is(e){return("0"+e.toString(16)).substr(-2)}var il={DEFAULT_CODE_CHALLENGE_METHOD:ez,generateVerifier:function(e){var t,n,i=e||"";return i.length<eH&&(i+=(n=new Uint8Array(Math.ceil((t=eH-i.length)/2)),eX.getRandomValues(n),Array.from(n,is).join("").slice(0,t))),encodeURIComponent(i).slice(0,eW)},computeChallenge:function(e){var t=new TextEncoder().encode(e);return eX.subtle.digest("SHA-256",t).then(function(e){return n4(String.fromCharCode.apply(null,new Uint8Array(e)))})}};function ic(e){var t,n=e.split(".");try{t={header:JSON.parse(n9(n[0])),payload:JSON.parse(n9(n[1])),signature:n[2]}}catch(e){throw new eS("Malformed token")}return t}function iu(e){let{pkce:t,clientId:n,redirectUri:i,responseType:o,responseMode:r,scopes:a,acrValues:s,maxAge:l,state:c,ignoreSignature:u,dpop:p}=e.options,d=e0()?window.location.href:void 0;return el({pkce:t,clientId:n,redirectUri:i||d,responseType:o||["token","id_token"],responseMode:r,state:c||ev(64),nonce:ev(64),scopes:a||["openid","email"],acrValues:s,maxAge:l,ignoreSignature:u,dpop:p})}let ip="DPoPKeys";function id(e){return(tV(e)||e instanceof ey)&&"use_dpop_nonce"===e.errorCode}
4async function ih(e,t,n){let i=n4(JSON.stringify(e)),o=n4(JSON.stringify(t)),r=await eX.subtle.sign({name:n.algorithm.name},n,n7(`${i}.${o}`));return`${i}.${o}.${n6(ii(r))}`}function im(e=32){return[...eX.getRandomValues(new Uint8Array(e))].map(e=>e.toString(16)).join("")}async function ig(){let e={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256",modulusLength:2048,publicExponent:new Uint8Array([1,0,1])};return eX.subtle.generateKey(e,!1,["sign","verify"])}async function iy(e){let t=new TextEncoder().encode(e),n=await eX.subtle.digest("SHA-256",t);return eQ(String.fromCharCode.apply(null,new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function iv(e,...t){let n=await new Promise((e,t)=>{try{let n=window.indexedDB.open("OktaAuthJs",1);n.onerror=function(){t(n.error)},n.onupgradeneeded=function(){n.result.createObjectStore(ip)},n.onsuccess=function(){let i=n.result,o=i.transaction(ip,"readwrite");o.onerror=function(){t(o.error)};let r=o.objectStore(ip);e(r),o.oncomplete=function(){i.close()}}}catch(e){t(e)}});return new Promise((i,o)=>{let r=n[e](...t);r.onsuccess=function(){i(r)},r.onerror=function(){o(r.error)}})}async function ib(e,t){return await iv("add",t,e),t}async function iw(e){if(e){let t=await iv("get",e);if(t.result)return t.result}throw new eS(`Unable to locate dpop key pair required for refresh${e?` (${e})`:""}`)}async function ik(e){await iv("delete",e)}async function i_(){await iv("clear")}async function iS(){let e=im(4),t=await ig();return await ib(e,t),{keyPair:t,keyPairId:e}}async function iE(e,t){var n;let i=!1,{accessToken:o,refreshToken:r}=t;"access"===e&&o&&"DPoP"===o.tokenType&&!r&&(i=!0),"refresh"===e&&r&&!o&&(i=!0);let a=null!==(n=null==o?void 0:o.dpopPairId)&&void 0!==n?n:null==r?void 0:r.dpopPairId;i&&a&&await ik(a)}async function iT({keyPair:e,url:t,method:n,nonce:i,accessToken:o}){let{kty:r,crv:a,e:s,n:l,x:c,y:u}=await eX.subtle.exportKey("jwk",e.publicKey),p={htm:n,htu:t,iat:Math.floor(Date.now()/1e3),jti:im()};return i&&(p.nonce=i),o&&(p.ath=await iy(o)),ih({alg:"RS256",typ:"dpop+jwt",jwk:{kty:r,crv:a,e:s,n:l,x:c,y:u}},p,e.privateKey)}async function ix({keyPair:e,url:t,method:n,nonce:i}){let o={keyPair:e,url:t,method:n};return i&&(o.nonce=i),iT(o)}async function iO(e,{url:t,data:n,nonce:i,dpopKeyPair:o}){var r,a;let s="POST",l={"Content-Type":"application/x-www-form-urlencoded"};if(e.options.dpop){if(!o)throw new eS("DPoP is configured but no key pair was provided");let e=await ix({url:t,method:s,nonce:i,keyPair:o});l.DPoP=e}try{return await tr(e,{url:t,method:s,args:n,headers:l})}catch(s){if(id(s)&&!i){let i=null===(r=s.resp)||void 0===r?void 0:r.headers["dpop-nonce"];if(!i)throw new eG({errorSummary:"No `dpop-nonce` header found when required"},null!==(a=s.resp)&&void 0!==a?a:void 0);return iO(e,{url:t,data:n,dpopKeyPair:o,nonce:i})}throw s}}async function iC(e,t,n){!function(e){if(!e.clientId)throw new eS("A clientId must be specified in the OktaAuth constructor to get a token");if(!e.redirectUri)throw new eS("The redirectUri passed to /authorize must also be passed to /token");if(!e.authorizationCode&&!e.interactionCode)throw new eS("An authorization code (returned from /authorize) must be passed to /token");if(!e.codeVerifier)throw new eS('The "codeVerifier" (generated and saved by your app) must be passed to /token')}(t);var i=function(e,t){var n=el({client_id:t.clientId,redirect_uri:t.redirectUri,grant_type:t.interactionCode?"interaction_code":"authorization_code",code_verifier:t.codeVerifier});t.interactionCode?n.interaction_code=t.interactionCode:t.authorizationCode&&(n.code=t.authorizationCode);let{clientSecret:i}=e.options;return i&&(n.client_secret=i),ek(n).slice(1)}(e,t);return iO(e,{url:n.tokenUrl,data:i,dpopKeyPair:null==t?void 0:t.dpopKeyPair})}async function iA(e,t,n){let i=Object.entries({client_id:t.clientId,grant_type:"refresh_token",scope:n.scopes.join(" "),refresh_token:n.refreshToken}).map(function([e,t]){return e+"="+encodeURIComponent(t)}).join("&"),o=n.tokenUrl;return t.extraParams&&Object.keys(t.extraParams).length>=1&&(o+=ek(t.extraParams)),iO(e,{url:o,data:i,dpopKeyPair:null==t?void 0:t.dpopKeyPair})}function iP(e,t){var n=t||e.options.issuer;return ta(e,n+"/.well-known/openid-configuration",{cacheResponse:!0})}async function iN(e,t,n){var i,o,r;if(!t||!t.idToken)throw new eS("Only idTokens may be verified");let a=ic(t.idToken),s=(null==n?void 0:n.issuer)||e.options.issuer,{issuer:l}=await iP(e,s),c=Object.assign({clientId:e.options.clientId,ignoreSignature:e.options.ignoreSignature},n,{issuer:l});if(!function(e,t,n){let i=n.clientId,o=n.issuer,r=n.nonce,a=n.acrValues;if(!t||!o||!i)throw new eS("The jwt, iss, and aud arguments are all required");if(r&&t.nonce!==r)throw new eS("OAuth flow response nonce doesn't match request nonce");let s=Math.floor(Date.now()/1e3);if(t.iss!==o)throw new eS("The issuer ["+t.iss+"] does not match ["+o+"]");if(Array.isArray(t.aud)&&0>t.aud.indexOf(i)||!Array.isArray(t.aud)&&t.aud!==i)throw new eS("The audience ["+t.aud+"] does not match ["+i+"]");if(a&&t.acr!==a)throw new eS("The acr ["+t.acr+"] does not match acr_values ["+a+"]");if(t.iat>t.exp)throw new eS("The JWT expired before it was issued");if(!e.options.ignoreLifetime){if(s-e.options.maxClockSkew>t.exp)throw new eS("The JWT expired and is no longer valid");if(t.iat>s+e.options.maxClockSkew)throw new eS("The JWT was issued in the future")}}(e,a.payload,c),!0==c.ignoreSignature||!e.features.isTokenVerifySupported())return t;let u=await (i=t.issuer,o=a.header.kid,r=e.storageManager.getHttpCache(e.options.cookies),iP(e,i).then(function(t){var n=t.jwks_uri,i=r.getStorage()[n];if(i&&Date.now()/1e3<i.expiresAt){var a=ep(i.response.keys,{kid:o});if(a)return a}return r.clearStorage(n),ta(e,n,{cacheResponse:!0}).then(function(e){var t=ep(e.keys,{kid:o});if(t)return t;throw new eS("The key id, "+o+", was not found in the server's keys")})}
4));if(!await ir(t.idToken,u))throw new eS("The token signature is not valid");if(n&&n.accessToken&&t.claims.at_hash&&await io(n.accessToken)!==t.claims.at_hash)throw new eS("Token hash verification failed");return t}async function iR(e,t,n,i){var o,r;let a;if(!1!==e.options.pkce&&(n.code||n.interaction_code))return e.token.exchangeCodeForTokens(Object.assign({},t,{authorizationCode:n.code,interactionCode:n.interaction_code}),i);t=t||iu(e),i=i||ex(e,t);let s=t.responseType||[];Array.isArray(s)||"none"===s||(s=[s]),a=n.scope?n.scope.split(" "):ec(t.scopes);let l=t.clientId||e.options.clientId;if(!function(e,t){if(e.error&&e.error_description)throw new eY(e.error,e.error_description);if(e.state!==t.state)throw new eS("OAuth flow response state doesn't match request state")}(n,t),t.dpop){let{allowBearerTokens:t}=null!==(r=null===(o=e.options)||void 0===o?void 0:o.dpopOptions)&&void 0!==r?r:{allowBearerTokens:!1};if(!t&&"DPoP"!==n.token_type)throw new eS('Unable to parse OAuth flow response: DPoP was configured but "token_type" was not DPoP')}let c={},u=n.expires_in,p=n.token_type,d=n.access_token,h=n.id_token,f=n.refresh_token,m=Math.floor(Date.now()/1e3);if(d){let n=e.token.decode(d);c.accessToken={accessToken:d,claims:n.payload,expiresAt:Number(u)+m,tokenType:p,scopes:a,authorizeUrl:i.authorizeUrl,userinfoUrl:i.userinfoUrl},t.dpopPairId&&(c.accessToken.dpopPairId=t.dpopPairId),t.extraParams&&(c.accessToken.extraParams=t.extraParams)}if(f&&(c.refreshToken={refreshToken:f,expiresAt:Number(u)+m,scopes:a,tokenUrl:i.tokenUrl,authorizeUrl:i.authorizeUrl,issuer:i.issuer},t.dpopPairId&&(c.refreshToken.dpopPairId=t.dpopPairId),t.extraParams&&(c.refreshToken.extraParams=t.extraParams)),h){let n=e.token.decode(h),o={idToken:h,claims:n.payload,expiresAt:n.payload.exp-n.payload.iat+m,scopes:a,authorizeUrl:i.authorizeUrl,issuer:i.issuer,clientId:l};t.extraParams&&(o.extraParams=t.extraParams);let r={clientId:l,issuer:i.issuer,nonce:t.nonce,accessToken:d,acrValues:t.acrValues};void 0!==t.ignoreSignature&&(r.ignoreSignature=t.ignoreSignature),await iN(e,o,r),c.idToken=o}if(-1!==s.indexOf("token")&&!c.accessToken)throw new eS('Unable to parse OAuth flow response: response type "token" was requested but "access_token" was not returned.');if(-1!==s.indexOf("id_token")&&!c.idToken)throw new eS('Unable to parse OAuth flow response: response type "id_token" was requested but "id_token" was not returned.');return{tokens:c,state:n.state,code:n.code,responseType:s}}async function iI(e,t,n){n=n||ex(e,t);let{authorizationCode:i,interactionCode:o,codeVerifier:r,clientId:a,redirectUri:s,scopes:l,ignoreSignature:c,state:u,acrValues:p,dpop:d,dpopPairId:h,extraParams:f}=t=Object.assign({},iu(e),ec(t)),m={clientId:a,redirectUri:s,authorizationCode:i,interactionCode:o,codeVerifier:r,dpop:d},g=["token"];-1!==l.indexOf("openid")&&g.push("id_token");let y={clientId:a,redirectUri:s,scopes:l,responseType:g,ignoreSignature:c,acrValues:p,extraParams:f};try{if(d){if(h){let e=await iw(h);m.dpopKeyPair=e,y.dpop=d,y.dpopPairId=h}else{let{keyPair:e,keyPairId:t}=await iS();m.dpopKeyPair=e,y.dpop=d,y.dpopPairId=t}}let t=await iC(e,m,n),o=await iR(e,y,t,n);return o.code=i,o.state=u,o}finally{e.transactionManager.clear()}}async function iD(e,t,n){if(t||(t=(await e.tokenManager.getTokens()).accessToken),n||(n=(await e.tokenManager.getTokens()).idToken),!t||!td(t))return Promise.reject(new eS("getUserInfo requires an access token object"));if(!n||!th(n))return Promise.reject(new eS("getUserInfo requires an ID token object"));let i={url:t.userinfoUrl,method:"GET",accessToken:t.accessToken};if(e.options.dpop){let n=await e.getDPoPAuthorizationHeaders(Object.assign(Object.assign({},i),{accessToken:t}));i.headers=n,delete i.accessToken}return tr(e,i).then(e=>e.sub===n.claims.sub?e:Promise.reject(new eS("getUserInfo request was rejected due to token mismatch"))).catch(function(t){var n;if(t instanceof ey&&!e.options.dpop){let{error:e,errorDescription:n}=t;throw new eY(e,n)}if(!e.options.dpop){let e=t;if(t instanceof eG&&(null===(n=null==t?void 0:t.meta)||void 0===n?void 0:n.wwwAuthHeader)&&(e=ey.parseHeader(t.meta.wwwAuthHeader)),e instanceof ey){let{error:t,errorDescription:n}=e;throw new eY(t,n)}}throw t})}function iL(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n)}function iM(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)}function iU(e,t){var n=t.popupTitle||"External Identity Provider User Authentication";return window.open(e,n,"toolbar=no, scrollbars=yes, resizable=yes, top=100, left=500, width=600, height=600")}
4function iF(e,t,n){var i,o;return new Promise(function(r,a){iL(window,"message",i=function(t){if(t.data&&t.data.state===n){if(t.origin!==e.getIssuerOrigin())return a(new eS("The request does not match client configuration"));r(t.data)}}),o=setTimeout(function(){a(new eS("OAuth flow timed out"))},t||12e4)}).finally(function(){clearTimeout(o),iM(window,"message",i)})}async function ij(e,t){if(t=t||e.options.codeChallengeMethod||ez,-1===((await iP(e)).code_challenge_methods_supported||[]).indexOf(t))throw new eS("Invalid code_challenge_method");return t}async function iV(e,t){let{codeVerifier:n,codeChallenge:i,codeChallengeMethod:o}=t;return(i=i||e.options.codeChallenge)||(function(e){if(!e.features.isPKCESupported()){var t="PKCE requires a modern browser with encryption support running in a secure context.";throw e.features.isHTTPS()||(t+="\nThe current page is not being served with HTTPS protocol. PKCE requires secure HTTPS protocol."),e.features.hasTextEncoder()||(t+='\n"TextEncoder" is not defined. To use PKCE, you may need to include a polyfill/shim for this browser.'),new eS(t)}}(e),n=n||il.generateVerifier(),i=await il.computeChallenge(n)),o=await ij(e,o),t=Object.assign(Object.assign({},t),{responseType:"code",codeVerifier:n,codeChallenge:i,codeChallengeMethod:o})}async function iB(e,t={}){if((t=Object.assign(Object.assign({},iu(e)),t)).dpop&&!e.features.isDPoPSupported())throw new eS("DPoP has been configured, but is not supported by browser");return!1===t.pkce?t:iV(e,t)}function iq(e){return ek(Object.assign(Object.assign({},function(e){if(!e.clientId)throw new eS("A clientId must be specified in the OktaAuth constructor to get a token");if(ef(e.responseType)&&-1!==e.responseType.indexOf(" "))throw new eS("Multiple OAuth responseTypes must be defined as an array");var t={client_id:e.clientId,code_challenge:e.codeChallenge,code_challenge_method:e.codeChallengeMethod,display:e.display,idp:e.idp,idp_scope:e.idpScope,login_hint:e.loginHint,max_age:e.maxAge,nonce:e.nonce,prompt:e.prompt,redirect_uri:e.redirectUri,response_mode:e.responseMode,response_type:e.responseType,sessionToken:e.sessionToken,state:e.state,acr_values:e.acrValues,enroll_amr_values:e.enrollAmrValues};if(t=el(t),["idp_scope","response_type","enroll_amr_values"].forEach(function(e){Array.isArray(t[e])&&(t[e]=t[e].join(" "))}),-1!==e.responseType.indexOf("id_token")&&-1===e.scopes.indexOf("openid"))throw new eS("openid scope must be specified in the scopes argument when requesting an id_token");return e.scopes&&(t.scope=e.scopes.join(" ")),t}(e)),e.extraParams&&Object.assign({},e.extraParams)))}function i$(e,t){if(arguments.length>2)return Promise.reject(new eS('As of version 3.0, "getToken" takes only a single set of options'));let n=(t=t||{}).popupWindow;return t.popupWindow=void 0,iB(e,t).then(function(i){t.sessionToken?Object.assign(i,{prompt:"none",responseMode:"okta_post_message",display:null}):t.idp&&Object.assign(i,{display:"popup"}),c=ex(e,i),l=(t.codeVerifier?c.tokenUrl:c.authorizeUrl)+iq(i);switch(i.sessionToken||null===i.display?"IFRAME":"popup"===i.display?t.idpPopup?"IDP_POPUP":"POPUP":"IMPLICIT"){case"IFRAME":var o,r=iF(e,t.timeout,i.state),a=((o=document.createElement("iframe")).style.display="none",o.src=l,document.body.appendChild(o));return r.then(function(t){return iR(e,i,t,c)}).finally(function(){var e;document.body.contains(a)&&(null===(e=a.parentElement)||void 0===e||e.removeChild(a))});case"POPUP":if("okta_post_message"===i.responseMode){if(!e.features.isPopupPostMessageSupported())throw new eS("This browser doesn't have full postMessage support");u=iF(e,t.timeout,i.state)}return n&&n.location.assign(l),new Promise(function(e,t){var i=setInterval(function(){(!n||n.closed)&&(clearInterval(i),t(new eS("Unable to parse OAuth flow response")))},100);u.then(function(t){clearInterval(i),e(t)}).catch(function(e){clearInterval(i),t(e)})}).then(function(t){return iR(e,i,t,c)}).finally(function(){n&&!n.closed&&n.close()});case"IDP_POPUP":let s;var l,c,u,p,d,h,f=(p=t.timeout,d=t.channel,h=i.state,new Promise((e,t)=>{d.onmessage=n=>{if(n.isTrusted&&n.data){if("object"==typeof n.data&&h===n.data.state)return e(Object.assign({},n.data));t(new eS("Unable to complete auth code exchange"))}},s=setTimeout(function(){t(new eS("OAuth flow timed out"))},p||12e4)}).finally(()=>{clearTimeout(s),d.close()}));if(n)n.location.assign(l);else throw new eS("Unable to open popup window");return f.then(function(t){return iR(e,i,t,c)});default:throw new eS("The full page redirect flow is not supported")}})}function iH(e,t){return arguments.length>2?Promise.reject(new eS('As of version 3.0, "getWithoutPrompt" takes only a single set of options')):(Object.assign(t=ec(t)||{},{prompt:"none",responseMode:"okta_post_message",display:null}),i$(e,t))}function iW(e,t){if(arguments.length>2)return Promise.reject(new eS('As of version 3.0, "getWithPopup" takes only a single set of options'));let{initialPath:n}=t,i=tm(t,["initialPath"]),o=iU(null!=n?n:"/",i);return t=ec(i)||{},Object.assign(i,{display:"popup",responseMode:"okta_post_message",popupWindow:o}),i$(e,i)}function iz(e,t){try{let n;if(!BroadcastChannel)throw new eS("Modern browser with `BroadcastChannel` support is required to use this method");if(!t.redirectUri)throw new eS("`redirectUri` is a required param for `getWithIDPPopup`");t.state||(t.state=ev(64));let i=iU("/",t),o=new BroadcastChannel(`popup-callback:${t.state}`);return t=ec(t)||{},Object.assign(t,{display:"popup",responseMode:"query",popupWindow:i,idpPopup:!0,channel:o}),{promise:new Promise((i,o)=>(n=o,i$(e,t).then(e=>i(e)).catch(e=>o(e)))),cancel:()=>{o.close(),n(new eS("Popup flow canceled"))}}}catch(e){return{promise:Promise.reject(e),cancel:()=>{}}}}async function iK(e,t){if(arguments.length>2)return Promise.reject(new eS('As of version 3.0, "getWithRedirect" takes only a single set of options'));t=ec(t)||{};let n=await iB(e,t),i=eO(e,n),o=i.urls.authorizeUrl+iq(n);e.transactionManager.save(i),e.options.setLocation?e.options.setLocation(o):window.location.assign(o)}function iG(e){var t=e.options.pkce?"query":"fragment";return e.options.responseMode||t}function iY(e,t){ef(t=t||{})&&(t={url:t});var n,i=t.url,o=t.responseMode||iG(e),r=e.token.parseFromUrl._getLocation();if(!(n="query"===o?i?i.substring(i.indexOf("?")):r.search:i?i.substring(i.indexOf("#")):r.hash))throw new eS("Unable to parse a token from the url");return nD(n)}async function iJ(e,t){ef(t=t||{})&&(t={url:t});let n=iY(e,t),i=n.state,o=e.transactionManager.load({state:i});if(!o){if(e.options.pkce)throw new eS("Could not load PKCE codeVerifier from storage. This may indicate the auth flow has already completed or multiple auth flows are executing concurrently.",void 0);throw new eS("Unable to retrieve OAuth redirect params from storage")}let r=o.urls;if(delete o.urls,!t.url){var a,s,l,c,u,p;"query"===(t.responseMode||iG(e))?(a=e.token.parseFromUrl._getHistory(),s=e.token.parseFromUrl._getDocument(),l=e.token.parseFromUrl._getLocation(),a&&a.replaceState?a.replaceState(null,s.title,l.pathname+l.hash):l.search=""):(c=e.token.parseFromUrl._getHistory(),u=e.token.parseFromUrl._getDocument(),p=e.token.parseFromUrl._getLocation(),c&&c.replaceState?c.replaceState(null,u.title,p.pathname+p.search):p.hash="")}return iR(e,o,n,r).catch(t=>{throw nG(t)||e.transactionManager.clear({state:i}),t}).then(t=>(e.transactionManager.clear({state:i}),t))}
4async function iQ(e,t,n){let{clientId:i,dpop:o}=e.options;if(!i)throw new eS("A clientId must be specified in the OktaAuth constructor to renew tokens");try{let r=Object.assign({},t,{clientId:i});n.extraParams&&(r.extraParams=n.extraParams);let a=Object.assign({},r);if(o){let e=await iw(null==n?void 0:n.dpopPairId);a.dpopKeyPair=e,r.dpop=o,r.dpopPairId=n.dpopPairId}let s=await iA(e,a,n),l=ex(e,t),{tokens:c}=await iR(e,r,s,l),{refreshToken:u}=c;return u&&u.refreshToken!==n.refreshToken&&e.tokenManager.updateRefreshToken(u),c}catch(t){throw tV(t)&&"invalid_grant"===t.errorCode&&"The refresh token is invalid or expired."===t.errorSummary&&e.tokenManager.removeRefreshToken(),t}}function iX(){throw new eS("Renew must be passed a token with an array of scopes and an accessToken or idToken")}function iZ(e,t){return th(e)?t.idToken:td(e)?t.accessToken:void iX()}async function i0(e,t){var n;th(t)||td(t)||iX();let i=e.tokenManager.getTokensSync();if(i.refreshToken)return i=await iQ(e,{scopes:t.scopes},i.refreshToken),iZ(t,i);n=e.options.pkce?"code":td(t)?"token":"id_token";let{scopes:o,authorizeUrl:r,userinfoUrl:a,issuer:s,dpopPairId:l,extraParams:c}=t;return iH(e,{responseType:n,scopes:o,authorizeUrl:r,userinfoUrl:a,issuer:s,dpopPairId:l,extraParams:c}).then(function(e){return iZ(t,e.tokens)})}async function i1(e,t){var n;let i=null!==(n=null==t?void 0:t.tokens)&&void 0!==n?n:e.tokenManager.getTokensSync();if(i.refreshToken)return iQ(e,t||{},i.refreshToken);if(!i.accessToken&&!i.idToken)throw new eS("renewTokens() was called but there is no existing token");let o=i.accessToken||{},r=i.idToken||{},a=o.scopes||r.scopes;if(!a)throw new eS("renewTokens: invalid tokens: could not read scopes");let s=o.authorizeUrl||r.authorizeUrl;if(!s)throw new eS("renewTokens: invalid tokens: could not read authorizeUrl");let l=o.userinfoUrl||e.options.userinfoUrl;if(t=Object.assign({scopes:a,authorizeUrl:s,userinfoUrl:l,issuer:r.issuer||e.options.issuer,dpopPairId:null==o?void 0:o.dpopPairId,extraParams:(null==o?void 0:o.extraParams)||(null==r?void 0:r.extraParams)},t),e.options.pkce)t.responseType="code";else{let{responseType:n}=iu(e);t.responseType=n}return iH(e,t).then(e=>e.tokens)}async function i8(e,t){let n="",i="";if(t&&(n=t.accessToken,i=t.refreshToken),!n&&!i)throw new eS("A valid access or refresh token object is required");var o=e.options.clientId,r=e.options.clientSecret;if(!o)throw new eS("A clientId must be specified in the OktaAuth constructor to revoke a token");var a=ex(e).revokeUrl;return ts(e,a,ek({token_type_hint:i?"refresh_token":"access_token",token:i||n}).slice(1),{headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Basic "+(r?eQ(`${o}:${r}`):eQ(o))}})}let i2={accessToken:"access_token",idToken:"id_token",refreshToken:"refresh_token"};async function i3(e,t,n){var i;let o;let r=e.options.clientId,a=e.options.clientSecret;if(n||(n=e.tokenManager.getTokens()[t]),!n)throw new eS(`unable to find ${t} in storage or fn params`);if(o=(o=t!==Y.ACCESS?null==n?void 0:n.issuer:null===(i=null==n?void 0:n.claims)||void 0===i?void 0:i.iss)||e.options.issuer,!r)throw new eS("A clientId must be specified in the OktaAuth constructor to introspect a token");if(!o)throw new eS("Unable to find issuer");let{introspection_endpoint:s}=await iP(e,o),l=a?eQ(`${r}:${a}`):eQ(r);return ts(e,s,ek({token_type_hint:i2[t],token:n[t]}).slice(1),{headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Basic "+l}})}function i4(e,t){var n;let i=(n=t=ec(t)||{},function(e){if(!(e=Object.assign(Object.assign({},e),{responseType:"none",prompt:"enroll_authenticator",maxAge:0})).enrollAmrValues)throw new eS("enroll_amr_values must be specified");if(!e.acrValues)throw new eS("acr_values must be specified");return delete e.scopes,delete e.nonce,e}(Object.assign(Object.assign({},function(e){let{clientId:t,redirectUri:n,responseMode:i,state:o}=e.options,r=e0()?window.location.href:void 0;return el({clientId:t,redirectUri:n||r,responseMode:i,state:o||ev(64),responseType:"none",prompt:"enroll_authenticator"})}(e)),n))),o={issuer:e.options.issuer,urls:ex(e,i),clientId:i.clientId,redirectUri:i.redirectUri,responseType:i.responseType,responseMode:i.responseMode,state:i.state,acrValues:i.acrValues,enrollAmrValues:i.enrollAmrValues},r=o.urls.authorizeUrl+iq(i);e.transactionManager.save(o),e.options.setLocation?e.options.setLocation(r):window.location.assign(r)}function i6(e,t){if(!th(e)&&!td(e)&&!tf(e))throw new eS("Token must be an Object with scopes, expiresAt, and one of: an idToken, accessToken, or refreshToken property");if("accessToken"===t&&!td(e))throw new eS("invalid accessToken");if("idToken"===t&&!th(e))throw new eS("invalid idToken");if("refreshToken"===t&&!tf(e))throw new eS("invalid refreshToken")}class i5{constructor(e){this.localOffset=parseInt(e||0)}static create(){return new i5(0)}now(){return(Date.now()+this.localOffset)/1e3}}let i9="expired",i7="renewed",oe="added",ot="removed",on="set_storage",oi={autoRenew:!0,autoRemove:!0,syncStorage:!0,clearPendingRemoveTokens:!0,storage:void 0,expireEarlySeconds:30,storageKey:eI};class oo{constructor(e,t={}){if(this.sdk=e,this.emitter=e.emitter,!this.emitter)throw new eS("Emitter should be initialized before TokenManager");t=Object.assign({},oi,el(t)),te()||(t.expireEarlySeconds=oi.expireEarlySeconds),this.options=t;let n=el({storageKey:t.storageKey,secure:t.secure});"object"==typeof t.storage?n.storageProvider=t.storage:t.storage&&(n.storageType=t.storage),this.storage=e.storageManager.getTokenStorage(Object.assign(Object.assign({},n),{useSeparateCookies:!0})),this.clock=i5.create(),this.state={expireTimeouts:{},renewPromise:null}}on(e,t,n){n?this.emitter.on(e,t,n):this.emitter.on(e,t)}off(e,t){t?this.emitter.off(e,t):this.emitter.off(e)}start(){this.options.clearPendingRemoveTokens&&this.clearPendingRemoveTokens(),this.setExpireEventTimeoutAll(),this.state.started=!0}stop(){this.clearExpireEventTimeoutAll(),this.state.started=!1}isStarted(){return!!this.state.started}getOptions(){return ec(this.options)}getExpireTime(e){let t=this.options.expireEarlySeconds||0;return e.expiresAt-t}hasExpired(e){return this.getExpireTime(e)<=this.clock.now()}emitExpired(e,t){this.emitter.emit(i9,e,t)}emitRenewed(e,t,n){this.emitter.emit(i7,e,t,n)}emitAdded(e,t){this.emitter.emit(oe,e,t)}emitRemoved(e,t){this.emitter.emit(ot,e,t)}emitError(e){this.emitter.emit("error",e)}clearExpireEventTimeout(e){clearTimeout(this.state.expireTimeouts[e]),delete this.state.expireTimeouts[e],this.state.renewPromise=null}clearExpireEventTimeoutAll(){var e=this.state.expireTimeouts;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.clearExpireEventTimeout(t)}setExpireEventTimeout(e,t){if(!tf(t)){var n=1e3*Math.max(this.getExpireTime(t)-this.clock.now(),0);this.clearExpireEventTimeout(e);var i=setTimeout(()=>{this.emitExpired(e,t)},n);this.state.expireTimeouts[e]=i}}setExpireEventTimeoutAll(){var e=this.storage.getStorage();for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];this.setExpireEventTimeout(t,n)}}resetExpireEventTimeoutAll(){this.clearExpireEventTimeoutAll(),this.setExpireEventTimeoutAll()}add(e,t){var n=this.storage.getStorage();i6(t),n[e]=t,this.storage.setStorage(n),this.emitSetStorageEvent(),this.emitAdded(e,t),this.setExpireEventTimeout(e,t)}getSync(e){return this.storage.getStorage()[e]}
4async get(e){return this.getSync(e)}getTokensSync(){let e={},t=this.storage.getStorage();return Object.keys(t).forEach(n=>{let i=t[n];td(i)?e.accessToken=i:th(i)?e.idToken=i:tf(i)&&(e.refreshToken=i)}),e}async getTokens(){return this.getTokensSync()}getStorageKeyByType(e){let t=this.storage.getStorage();return Object.keys(t).filter(n=>{let i=t[n];return td(i)&&"accessToken"===e||th(i)&&"idToken"===e||tf(i)&&"refreshToken"===e})[0]}getTokenType(e){if(td(e))return"accessToken";if(th(e))return"idToken";if(tf(e))return"refreshToken";throw new eS("Unknown token type")}emitSetStorageEvent(){if(e1()){let e=this.storage.getStorage();this.emitter.emit(on,e)}}getStorage(){return this.storage}setTokens(e,t,n,i){let o=(e,o)=>{let r=this.getTokenType(o);"accessToken"===r?t&&t(e,o):"idToken"===r?n&&n(e,o):"refreshToken"===r&&i&&i(e,o)},r=(e,t)=>{this.emitAdded(e,t),this.setExpireEventTimeout(e,t),o(e,t)},a=(e,t,n)=>{this.emitRenewed(e,t,n),this.clearExpireEventTimeout(e),this.setExpireEventTimeout(e,t),o(e,t)},s=(e,t)=>{this.clearExpireEventTimeout(e),this.emitRemoved(e,t),o(e,t)},l=["idToken","accessToken","refreshToken"],c=this.getTokensSync();l.forEach(t=>{let n=e[t];n&&i6(n,t)});let u=l.reduce((t,n)=>{let i=e[n];return i&&(t[this.getStorageKeyByType(n)||n]=i),t},{});this.storage.setStorage(u),this.emitSetStorageEvent(),l.forEach(t=>{let n=e[t],i=c[t],o=this.getStorageKeyByType(t)||t;n&&i?(s(o,i),r(o,n),a(o,n,i)):n?r(o,n):i&&s(o,i)})}remove(e){this.clearExpireEventTimeout(e);var t=this.storage.getStorage(),n=t[e];delete t[e],this.storage.setStorage(t),this.emitSetStorageEvent(),this.emitRemoved(e,n)}async renewToken(e){var t;return null===(t=this.sdk.token)||void 0===t?void 0:t.renew(e)}validateToken(e){return i6(e)}renew(e){if(this.state.renewPromise)return this.state.renewPromise;try{var t=this.getSync(e);let n=void 0!==t;if(!t&&"accessToken"===e){let e=this.getStorageKeyByType("refreshToken"),t=this.getSync(e);n=void 0!==t}if(!n)throw new eS("The tokenManager has no token for the key: "+e)}catch(e){return this.emitError(e),Promise.reject(e)}return this.clearExpireEventTimeout(e),this.state.renewPromise=this.sdk.token.renewTokens().then(n=>{if(this.setTokens(n),!t&&"accessToken"===e){let t=n.accessToken;return this.emitRenewed(e,t,null),t}return n[this.getTokenType(t)]}).catch(t=>{throw this.remove(e),t.tokenKey=e,this.emitError(t),t}).finally(()=>{this.state.renewPromise=null})}clear(){let e=this.getTokensSync();this.clearExpireEventTimeoutAll(),this.storage.clearStorage(),this.emitSetStorageEvent(),Object.keys(e).forEach(t=>{this.emitRemoved(t,e[t])})}clearPendingRemoveTokens(){let e=this.storage.getStorage(),t={};Object.keys(e).forEach(n=>{e[n].pendingRemove&&(t[n]=e[n],delete e[n])}),this.storage.setStorage(e),this.emitSetStorageEvent(),Object.keys(t).forEach(e=>{this.clearExpireEventTimeout(e),this.emitRemoved(e,t[e])})}updateRefreshToken(e){let t=this.getStorageKeyByType("refreshToken")||eq;var n=this.storage.getStorage();i6(e),n[t]=e,this.storage.setStorage(n),this.emitSetStorageEvent()}removeRefreshToken(){let e=this.getStorageKeyByType("refreshToken")||eq;this.remove(e)}addPendingRemoveFlags(){let e=this.getTokensSync();Object.keys(e).forEach(t=>{e[t].pendingRemove=!0}),this.setTokens(e)}}var or={browserHasLocalStorage:function(){try{var e=this.getLocalStorage();return this.testStorage(e)}catch(e){return!1}},browserHasSessionStorage:function(){try{var e=this.getSessionStorage();return this.testStorage(e)}catch(e){return!1}},testStorageType:function(e){var t=!1;switch(e){case"sessionStorage":t=this.browserHasSessionStorage();break;case"localStorage":t=this.browserHasLocalStorage();break;case"cookie":case"memory":t=!0;break;default:t=!1}return t},getStorageByType:function(e,t){let n;switch(e){case"sessionStorage":n=this.getSessionStorage();break;case"localStorage":n=this.getLocalStorage();break;case"cookie":n=this.getCookieStorage(t);break;case"memory":n=this.getInMemoryStorage();break;default:throw new eS(`Unrecognized storage option: ${e}`)}return n},findStorageType:function(e){let t,n;return(t=(e=e.slice()).shift(),!(n=e.length?e[0]:null)||this.testStorageType(t))?t:(e
4s(`This browser doesn't support ${t}. Switching to ${n}.`),this.findStorageType(e))},getLocalStorage:function(){return e1()&&!window.onstorage&&(window.onstorage=function(){}),localStorage},getSessionStorage:function(){return sessionStorage},getCookieStorage:function(e){let t=e.secure,n=e.sameSite,i=e.sessionCookie;if(void 0===t||void 0===n)throw new eS('getCookieStorage: "secure" and "sameSite" options must be provided');let o={getItem:this.storage.get,setItem:(e,o,r="2200-01-01T00:00:00.000Z")=>{r=i?null:r,this.storage.set(e,o,r,{secure:t,sameSite:n})},removeItem:e=>{this.storage.delete(e)}};return e.useSeparateCookies?{getItem:function(e){var t=o.getItem(),n={};return Object.keys(t).forEach(i=>{0===i.indexOf(e)&&(n[i.replace(`${e}_`,"")]=JSON.parse(t[i]))}),JSON.stringify(n)},setItem:function(e,t){var n=JSON.parse(this.getItem(e));Object.keys(t=JSON.parse(t)).forEach(i=>{var r=e+"_"+i,a=JSON.stringify(t[i]);o.setItem(r,a),delete n[i]}),Object.keys(n).forEach(t=>{o.removeItem(e+"_"+t)})},removeItem:function(e){Object.keys(JSON.parse(this.getItem(e))).forEach(t=>{o.removeItem(e+"_"+t)})}}:o},inMemoryStore:{},getInMemoryStorage:function(){return{getItem:e=>this.inMemoryStore[e],setItem:(e,t)=>{this.inMemoryStore[e]=t}}},testStorage:function(e){var t="okta-test-storage";try{return e.setItem(t,t),e.removeItem(t),!0}catch(e){return!1}},storage:{set:function(e,t,n,i){let{sameSite:o,secure:r}=i;if(void 0===r||void 0===o)throw new eS('storage.set: "secure" and "sameSite" options must be provided');var a={path:i.path||"/",secure:r,sameSite:o};return Date.parse(n)&&(a.expires=new Date(n)),tc.Z.set(e,t,a),this.get(e)},get:function(e){return arguments.length?tc.Z.get(e):tc.Z.get()},delete:function(e){return tc.Z.remove(e,{path:"/"})}}};function oa(e,t){var n,i;let o=(i=e,class extends i{setOriginalUri(e,t){or.getSessionStorage().setItem(e$,e),(t=t||this.options.state)&&this.storageManager.getOriginalUriStorage().setItem(t,e)}getOriginalUri(e){if(e=e||this.options.state){let t=this.storageManager.getOriginalUriStorage().getItem(e);if(t)return t}let t=or.getSessionStorage();return t&&t.getItem(e$)||void 0}removeOriginalUri(e){if(or.getSessionStorage().removeItem(e$),e=e||this.options.state){let t=this.storageManager.getOriginalUriStorage();t.removeItem&&t.removeItem(e)}}});return(n=class extends o{constructor(...e){super(...e),this.transactionManager=new t(Object.assign({storageManager:this.storageManager},this.options.transactionManager)),this.pkce={DEFAULT_CODE_CHALLENGE_METHOD:il.DEFAULT_CODE_CHALLENGE_METHOD,generateVerifier:il.generateVerifier,computeChallenge:il.computeChallenge},this._pending={handleLogin:!1},this._tokenQueue=new ia,this.token=function(e,t){let n=e=>ia.prototype.push.bind(t,e,null),i=n(iK.bind(null,e)),o=Object.assign(n(iJ.bind(null,e)),{_getHistory:function(){return window.history},_getLocation:function(){return window.location},_getDocument:function(){return window.document}}),r={prepareTokenParams:iB.bind(null,e),exchangeCodeForTokens:iI.bind(null,e),getWithoutPrompt:iH.bind(null,e),getWithPopup:iW.bind(null,e),getWithIDPPopup:iz.bind(null,e),getWithRedirect:i,parseFromUrl:o,decode:ic,revoke:i8.bind(null,e),renew:i0.bind(null,e),renewTokensWithRefresh:iQ.bind(null,e),renewTokens:i1.bind(null,e),getUserInfo:(t,n)=>iD(e,t,n),verify:iN.bind(null,e),isLoginRedirect:nQ.bind(null,e),introspect:i3.bind(null,e)};return["getWithoutPrompt","getWithPopup","revoke","renew","renewTokensWithRefresh","renewTokens"].forEach(e=>{r[e]=n(r[e])}),r}(this,this._tokenQueue),this.tokenManager=new oo(this,this.options.tokenManager),this.endpoints={authorize:{enrollAuthenticator:i4.bind(null,this)}}}clearStorage(){super.clearStorage(),this.tokenManager.clear()}async isAuthenticated(e={}){let{autoRenew:t,autoRemove:n}=this.tokenManager.getOptions(),i=e.onExpiredToken?"renew"===e.onExpiredToken:t,o=e.onExpiredToken?"remove"===e.onExpiredToken:n,{accessToken:r}=this.tokenManager.getTokensSync();if(r&&this.tokenManager.hasExpired(r)){if(r=void 0,i)try{r=await this.tokenManager.renew("accessToken")}catch(e){}else o&&this.tokenManager.remove("accessToken")}let{idToken:a}=this.tokenManager.getTokensSync();if(a&&this.tokenManager.hasExpired(a)){if(a=void 0,i)try{a=await this.tokenManager.renew("idToken")}catch(e){}else o&&this.tokenManager.remove("idToken")}return!!(r&&a)}async signInWithRedirect(e={}){let{originalUri:t}=e,n=tm(e,["originalUri"]);
4if(!this._pending.handleLogin){this._pending.handleLogin=!0;try{t&&this.setOriginalUri(t);let e=Object.assign({scopes:this.options.scopes||["openid","email","profile"]},n);await this.token.getWithRedirect(e)}finally{this._pending.handleLogin=!1}}}async getUser(){let{idToken:e,accessToken:t}=this.tokenManager.getTokensSync();return this.token.getUserInfo(t,e)}getIdToken(){let{idToken:e}=this.tokenManager.getTokensSync();return e?e.idToken:void 0}getAccessToken(){let{accessToken:e}=this.tokenManager.getTokensSync();return e?e.accessToken:void 0}getRefreshToken(){let{refreshToken:e}=this.tokenManager.getTokensSync();return e?e.refreshToken:void 0}async getOrRenewAccessToken(){var e;let{accessToken:t}=this.tokenManager.getTokensSync();if(t&&!this.tokenManager.hasExpired(t))return t.accessToken;try{let t=this.tokenManager.getStorageKeyByType("accessToken"),n=await this.tokenManager.renew(null!=t?t:"accessToken");return null!==(e=null==n?void 0:n.accessToken)&&void 0!==e?e:null}catch(e){return this.emitter.emit("error",e),null}}async storeTokensFromRedirect(){let{tokens:e,responseType:t}=await this.token.parseFromUrl();"none"!==t&&this.tokenManager.setTokens(e)}isLoginRedirect(){return nQ(this)}isPKCE(){return!!this.options.pkce}hasResponseType(e){var t;return Array.isArray((t=this.options).responseType)&&t.responseType.length?t.responseType.indexOf(e)>=0:t.responseType===e}isAuthorizationCodeFlow(){return this.hasResponseType("code")}async invokeApiMethod(e){if(!e.accessToken){let t=(await this.tokenManager.getTokens()).accessToken;e.accessToken=null==t?void 0:t.accessToken}return tr(this,e)}async revokeAccessToken(e){if(!e){let t=await this.tokenManager.getTokens();e=t.accessToken;let n=this.tokenManager.getStorageKeyByType("accessToken");this.tokenManager.remove(n),this.options.dpop&&await iE("access",t)}return e?this.token.revoke(e):Promise.resolve(null)}async revokeRefreshToken(e){if(!e){let t=await this.tokenManager.getTokens();e=t.refreshToken;let n=this.tokenManager.getStorageKeyByType("refreshToken");this.tokenManager.remove(n),this.options.dpop&&await iE("refresh",t)}return e?this.token.revoke(e):Promise.resolve(null)}getSignOutRedirectUrl(e={}){let{idToken:t,postLogoutRedirectUri:n,state:i}=e;if(t||(t=this.tokenManager.getTokensSync().idToken),!t)return"";void 0===n&&(n=this.options.postLogoutRedirectUri);let o=ex(this).logoutUrl+"?id_token_hint="+encodeURIComponent(t.idToken);return n&&(o+="&post_logout_redirect_uri="+encodeURIComponent(n)),i&&(o+="&state="+encodeURIComponent(i)),o}async signOut(e){var t;e=Object.assign({},e);let n=window.location.origin,i=window.location.href,o=null===e.postLogoutRedirectUri?null:e.postLogoutRedirectUri||this.options.postLogoutRedirectUri||n,r=null==e?void 0:e.state,a=e.accessToken,s=e.refreshToken,l=!1!==e.revokeAccessToken,c=!1!==e.revokeRefreshToken;c&&void 0===s&&(s=this.tokenManager.getTokensSync().refreshToken),l&&void 0===a&&(a=this.tokenManager.getTokensSync().accessToken),e.idToken||(e.idToken=this.tokenManager.getTokensSync().idToken),c&&s&&await this.revokeRefreshToken(s),l&&a&&await this.revokeAccessToken(a);let u=null!==(t=null==a?void 0:a.dpopPairId)&&void 0!==t?t:null==s?void 0:s.dpopPairId;this.options.dpop&&u&&await ik(u);let p=this.getSignOutRedirectUrl(Object.assign(Object.assign({},e),{postLogoutRedirectUri:o}));if(p)return e.clearTokensBeforeRedirect?this.tokenManager.clear():this.tokenManager.addPendingRemoveFlags(),window.location.assign(p),!0;{let e=await this.closeSession(),t=new URL(o||n);return r&&t.searchParams.append("state",r),o===i?window.location.href=t.href:window.location.assign(t.href),e}}async getDPoPAuthorizationHeaders(e){if(!this.options.dpop)throw new eS("DPoP is not configured for this client instance");let{accessToken:t}=e;if(t||(t=this.tokenManager.getTokensSync().accessToken),!t)throw new eS("AccessToken is required to generate a DPoP Proof");let n=await iw(null==t?void 0:t.dpopPairId),i=await iT(Object.assign(Object.assign({},e),{keyPair:n,accessToken:t.accessToken}));return{Authorization:`DPoP ${t.accessToken}`,Dpop:i}}async clearDPoPStorage(e=!1){var t,n;if(e)return i_();let i=await this.tokenManager.getTokens(),o=(null===(t=i.accessToken)||void 0===t?void 0:t.dpopPairId)||
4(null===(n=i.refreshToken)||void 0===n?void 0:n.dpopPairId);o&&await ik(o)}parseUseDPoPNonceError(e){var t;let n=ey.getWWWAuthenticateHeader(e);if(id(ey.parseHeader(null!=n?n:""))){let n=null;return eg(null==e?void 0:e.get)&&(n=e.get("DPoP-Nonce")),n=null!==(t=null!=n?n:e["dpop-nonce"])&&void 0!==t?t:e["DPoP-Nonce"]}return null}}).crypto=en,n}var os=n(80341);let ol={updateAuthStatePromise:null,canceledTimes:0},oc="authStateChange",ou=(e,t)=>!!e&&e.isAuthenticated===t.isAuthenticated&&JSON.stringify(e.idToken)===JSON.stringify(t.idToken)&&JSON.stringify(e.accessToken)===JSON.stringify(t.accessToken)&&e.error===t.error;class op{constructor(e){if(!e.emitter)throw new eS("Emitter should be initialized before AuthStateManager");this._sdk=e,this._pending=Object.assign({},ol),this._authState=null,this._logOptions={},this._prevAuthState=null,this._transformQueue=new ia({quiet:!0}),e.tokenManager.on(oe,(e,t)=>{this._setLogOptions({event:oe,key:e,token:t}),this.updateAuthState()}),e.tokenManager.on(ot,(e,t)=>{this._setLogOptions({event:ot,key:e,token:t}),this.updateAuthState()})}_setLogOptions(e){this._logOptions=e}getAuthState(){return this._authState}getPreviousAuthState(){return this._prevAuthState}async updateAuthState(){let{transformAuthState:e,devMode:t}=this._sdk.options,n=e=>{let{event:t,key:n,token:i}=this._logOptions;ea().group(`OKTA-AUTH-JS:updateAuthState: Event:${t} Status:${e}`),ea().log(n,i),ea().log("Current authState",this._authState),ea().groupEnd(),this._logOptions={}},i=e=>{if(ou(this._authState,e)){t&&n("unchanged");return}this._prevAuthState=this._authState,this._authState=e,this._sdk.emitter.emit(oc,Object.assign({},e)),t&&n("emitted")},o=e=>this._pending.updateAuthStatePromise.then(()=>{let t=this._pending.updateAuthStatePromise;return t&&t!==e?o(t):this.getAuthState()});if(this._pending.updateAuthStatePromise){if(this._pending.canceledTimes>=10)return t&&n("terminated"),o(this._pending.updateAuthStatePromise);this._pending.updateAuthStatePromise.cancel()}let r=new os((o,a,s)=>{s.shouldReject=!1,s(()=>{this._pending.updateAuthStatePromise=null,this._pending.canceledTimes=this._pending.canceledTimes+1,t&&n("canceled")});let l=e=>{if(r.isCanceled){o();return}i(e),o(),this._pending=Object.assign({},ol)};this._sdk.isAuthenticated().then(()=>{if(r.isCanceled){o();return}let{accessToken:t,idToken:n,refreshToken:i}=this._sdk.tokenManager.getTokensSync(),a={accessToken:t,idToken:n,refreshToken:i,isAuthenticated:!!(t&&n)};(e?this._transformQueue.push(e,null,this._sdk,a):Promise.resolve(a)).then(e=>l(e)).catch(e=>l({accessToken:t,idToken:n,refreshToken:i,isAuthenticated:!1,error:e}))})});return this._pending.updateAuthStatePromise=r,o(r)}subscribe(e){this._sdk.emitter.on(oc,e)}unsubscribe(e){this._sdk.emitter.off(oc,e)}}class od{constructor(e,t={}){this.started=!1,this.tokenManager=e,this.options=t,this.renewTimeQueue=[],this.onTokenExpiredHandler=this.onTokenExpiredHandler.bind(this)}shouldThrottleRenew(){let e=!1;if(this.renewTimeQueue.push(Date.now()),this.renewTimeQueue.length>=10){let t=this.renewTimeQueue.shift();e=this.renewTimeQueue[this.renewTimeQueue.length-1]-t<3e4}return e}requiresLeadership(){return!!this.options.syncStorage&&e0()}processExpiredTokens(){let e=this.tokenManager.getStorage().getStorage();Object.keys(e).forEach(t=>{let n=e[t];!tf(n)&&this.tokenManager.hasExpired(n)&&this.onTokenExpiredHandler(t)})}onTokenExpiredHandler(e){if(this.options.autoRenew){if(this.shouldThrottleRenew()){let e=new eS("Too many token renew requests");this.tokenManager.emitError(e)}else this.tokenManager.renew(e).catch(()=>{})}else this.options.autoRemove&&this.tokenManager.remove(e)}canStart(){return(!!this.options.autoRenew||!!this.options.autoRemove)&&!this.started}async start(){this.canStart()&&(this.tokenManager.on(i9,this.onTokenExpiredHandler),this.tokenManager.isStarted()&&this.processExpiredTokens(),this.started=!0)}async stop(){this.started&&(this.tokenManager.off(i9,this.onTokenExpiredHandler),this.renewTimeQueue=[],this.started=!1)}isStarted(){return this.started}}var oh=n(38888);class of{constructor(e,t={}){this.started=!1,this.enablePostMessage=!0,this.tokenManager=e,this.options=t,this.onTokenAddedHandler=this.onTokenAddedHandler.bind(this),this.onTokenRemovedHandler=this.onTokenRemovedHandler.bind(this),this.onTokenRenewedHandler=this.onTokenRenewedHandler.bind(this),this.onSetStorageHandler=this.onSetStorageHandler.bind(this),this.onSyncMessageHandler=this.onSyncMessageHandler.bind(this)}requiresLeadership(){return!1}isStarted(){return this.started}canStart(){return!!this.options.syncStorage&&e0()&&!this.started}
4async start(){if(!this.canStart())return;let{syncChannelName:e}=this.options;try{this.channel=new oh.g0(e)}catch(e){throw new eS("SyncStorageService is not supported in current browser.")}this.tokenManager.on(oe,this.onTokenAddedHandler),this.tokenManager.on(ot,this.onTokenRemovedHandler),this.tokenManager.on(i7,this.onTokenRenewedHandler),this.tokenManager.on(on,this.onSetStorageHandler),this.channel.addEventListener("message",this.onSyncMessageHandler),this.started=!0}async stop(){var e,t;this.started&&(this.tokenManager.off(oe,this.onTokenAddedHandler),this.tokenManager.off(ot,this.onTokenRemovedHandler),this.tokenManager.off(i7,this.onTokenRenewedHandler),this.tokenManager.off(on,this.onSetStorageHandler),null===(e=this.channel)||void 0===e||e.removeEventListener("message",this.onSyncMessageHandler),await (null===(t=this.channel)||void 0===t?void 0:t.close()),this.channel=void 0,this.started=!1)}onTokenAddedHandler(e,t){var n;this.enablePostMessage&&(null===(n=this.channel)||void 0===n||n.postMessage({type:oe,key:e,token:t}))}onTokenRemovedHandler(e,t){var n;this.enablePostMessage&&(null===(n=this.channel)||void 0===n||n.postMessage({type:ot,key:e,token:t}))}onTokenRenewedHandler(e,t,n){var i;this.enablePostMessage&&(null===(i=this.channel)||void 0===i||i.postMessage({type:i7,key:e,token:t,oldToken:n}))}onSetStorageHandler(e){var t;null===(t=this.channel)||void 0===t||t.postMessage({type:on,storage:e})}onSyncMessageHandler(e){switch(this.enablePostMessage=!1,e.type){case on:this.tokenManager.getStorage().setStorage(e.storage);break;case oe:this.tokenManager.emitAdded(e.key,e.token),this.tokenManager.setExpireEventTimeout(e.key,e.token);break;case ot:this.tokenManager.clearExpireEventTimeout(e.key),this.tokenManager.emitRemoved(e.key,e.token);break;case i7:this.tokenManager.emitRenewed(e.key,e.token,e.oldToken)}this.enablePostMessage=!0}}class om{constructor(e={}){this.started=!1,this.options=e,this.onLeaderDuplicate=this.onLeaderDuplicate.bind(this),this.onLeader=this.onLeader.bind(this)}onLeaderDuplicate(){}async onLeader(){var e,t;await (null===(t=(e=this.options).onLeader)||void 0===t?void 0:t.call(e))}isLeader(){var e;return!!(null===(e=this.elector)||void 0===e?void 0:e.isLeader)}hasLeader(){var e;return!!(null===(e=this.elector)||void 0===e?void 0:e.hasLeader)}async start(){if(this.canStart()){let{electionChannelName:e}=this.options;this.channel=new oh.g0(e),this.elector=(0,oh.UV)(this.channel),this.elector.onduplicate=this.onLeaderDuplicate,this.elector.awaitLeadership().then(this.onLeader),this.started=!0}}async stop(){this.started&&(this.elector&&(await this.elector.die(),this.elector=void 0),this.channel&&(this.channel.postInternal=()=>Promise.resolve(),await this.channel.close(),this.channel=void 0),this.started=!1)}requiresLeadership(){return!1}isStarted(){return this.started}canStart(){return e0()&&!this.started}}let og=()=>Math.floor(Date.now()/1e3);class oy{constructor(e,t={}){this.started=!1,this.lastHidden=-1,this.tokenManager=e,this.options=t,this.onPageVisbilityChange=this._onPageVisbilityChange.bind(this)}_onPageVisbilityChange(){if(document.hidden)this.lastHidden=og();else if(this.lastHidden>0&&og()-this.lastHidden>=this.options.tabInactivityDuration){let{accessToken:e,idToken:t}=this.tokenManager.getTokensSync();if(e&&this.tokenManager.hasExpired(e)){let e=this.tokenManager.getStorageKeyByType("accessToken");this.tokenManager.renew(e).catch(()=>{})}else if(t&&this.tokenManager.hasExpired(t)){let e=this.tokenManager.getStorageKeyByType("idToken");this.tokenManager.renew(e).catch(()=>{})}}}async start(){this.canStart()&&document&&(document.addEventListener("visibilitychange",this.onPageVisbilityChange),this.started=!0)}async stop(){document&&(document.removeEventListener("visibilitychange",this.onPageVisbilityChange),this.started=!1)}canStart(){return e0()&&!!this.options.autoRenew&&!!this.options.renewOnTabActivation&&!this.started}requiresLeadership(){return!1}isStarted(){return this.started}}let ov="autoRenew",ob="syncStorage",ow="leaderElection",ok="renewOnTabActivation";class o_{constructor(e,t={}){this.sdk=e,this.onLeader=this.onLeader.bind(this);let{autoRenew:n,autoRemove:i,syncStorage:o}=e.tokenManager.getOptions();t.electionChannelName=t.electionChannelName||t.broadcastChannelName,this.options=Object.assign({},o_.defaultOptions,{autoRenew:n,autoRemove:i,syncStorage:o},{electionChannelName:`${e.options.clientId}-election`,syncChannelName:`${e.options.clientId}-sync`},el(t)),this.started=!1,this.services=new Map,o_.knownServices.forEac
4h(e=>{let t=this.createService(e);t&&this.services.set(e,t)})}async onLeader(){this.started&&await this.startServices()}isLeader(){var e;return null===(e=this.getService(ow))||void 0===e?void 0:e.isLeader()}isLeaderRequired(){return[...this.services.values()].some(e=>e.canStart()&&e.requiresLeadership())}async start(){this.started||(await this.startServices(),this.started=!0)}async stop(){await this.stopServices(),this.started=!1}getService(e){return this.services.get(e)}async startServices(){for(let[e,t]of this.services.entries())this.canStartService(e,t)&&await t.start()}async stopServices(){for(let e of this.services.values())await e.stop()}canStartService(e,t){let n=t.canStart()&&!t.isStarted();return e===ow?n&&(n=this.isLeaderRequired()):t.requiresLeadership()&&n&&(n=this.isLeader()),n}createService(e){let t;let n=this.sdk.tokenManager;switch(e){case ow:t=new om(Object.assign(Object.assign({},this.options),{onLeader:this.onLeader}));break;case ov:t=new od(n,Object.assign({},this.options));break;case ob:t=new of(n,Object.assign({},this.options));break;case ok:t=new oy(n,Object.assign({},this.options));break;default:throw Error(`Unknown service ${e}`)}return t}}function oS(e){return e.session.get().then(function(e){return"ACTIVE"===e.status}).catch(function(){return!1})}function oE(e){return ta(e,"/api/v1/sessions/me",{withCredentials:!0}).then(function(t){var n=eu(t,"_links");return n.refresh=function(){return ts(e,ed(t,"refresh").href,{},{withCredentials:!0})},n.user=function(){return ta(e,ed(t,"user").href,{withCredentials:!0})},n}).catch(function(){return{status:"INACTIVE"}})}function oT(e){return tr(e,{url:e.getIssuerOrigin()+"/api/v1/sessions/me",method:"DELETE",withCredentials:!0})}function ox(e){return ts(e,"/api/v1/sessions/me/lifecycle/refresh",{},{withCredentials:!0})}function oO(e,t,n){n=n||window.location.href,window.location.assign(e.getIssuerOrigin()+"/login/sessionCookieRedirect"+ek({checkAccountSetupComplete:!0,token:t,redirectUrl:n}))}function oC(e){return class extends e{constructor(...e){super(...e),this.session={close:oT.bind(null,this),exists:oS.bind(null,this),get:oE.bind(null,this),refresh:ox.bind(null,this),setCookieAndRedirect:oO.bind(null,this)}}closeSession(){return this.session.close().then(async()=>(this.clearStorage(),!0)).catch(function(e){if("AuthApiError"===e.name&&"E0000007"===e.errorCode)return!1;throw e})}}}o_.knownServices=[ov,ob,ow,ok],o_.defaultOptions={autoRenew:!0,autoRemove:!0,syncStorage:!0,renewOnTabActivation:!0,tabInactivityDuration:1800};let oA=(e,t)=>t.source===e.contentWindow;function oP(e,t){var n;let i,o,r;if(!e2())return Promise.reject(new eS("Fingerprinting is not supported on this device"));let a=null!==(n=null==t?void 0:t.container)&&void 0!==n?n:document.body;return new Promise(function(n,s){(o=document.createElement("iframe")).style.display="none",iL(window,"message",r=function(t){var i;let r;if(oA(o,t)&&t&&t.data&&t.origin===e.getIssuerOrigin()){try{r=JSON.parse(t.data)}catch(e){return}return r?"FingerprintAvailable"===r.type?n(r.fingerprint):"FingerprintServiceReady"!==r.type?s(new eS("No data")):void(null===(i=null==o?void 0:o.contentWindow)||void 0===i||i.postMessage(JSON.stringify({type:"GetFingerprint"}),t.origin)):void 0}}),o.src=e.getIssuerOrigin()+"/auth/services/devicefingerprint",a.appendChild(o),i=setTimeout(function(){s(new eS("Fingerprinting timed out"))},(null==t?void 0:t.timeout)||15e3)}).finally(function(){var e;clearTimeout(i),iM(window,"message",r),a.contains(o)&&(null===(e=o.parentElement)||void 0===e||e.removeChild(o))})}let oN=(e=[])=>{let t=[];return e.forEach(e=>{"webauthn"===e.key&&t.push({type:"public-key",id:it(e.credentialId)})}),t},oR=(e,t)=>({publicKey:{rp:e.rp,user:{id:it(e.user.id),name:e.user.name,displayName:e.user.displayName},challenge:it(e.challenge),pubKeyCredParams:e.pubKeyCredParams,attestation:e.attestation,authenticatorSelection:e.authenticatorSelection,excludeCredentials:oN(t)}}),oI=(e,t)=>({publicKey:Object.assign({challenge:it(e.challenge),userVerification:e.userVerification,allowCredentials:oN(t)},e.rpId&&{rpId:e.rpId})}),oD=e=>{let t=e.response;return{id:e.id,clientData:ii(t.clientDataJSON),attestation:ii(t.attestationObject)}},oL=e=>{let t=e.response,n=e.id;return{id:n,clientData:ii(t.clientDataJSON),authenticatorData:ii(t.authenticatorData),signatureData:ii(t.signature)}};function oM(e){var t;return(t=class extends e{constructor(...e){super(...e),this.idx=function(e){Object.assign(tG,{remediators:et,getFlowSpecification:nR});let t=n$.bind(null,e);return{interact:tE.bind(null,e),introspect:tB.bind(null,e),makeIdxResponse:tF.bind(null,e),authenticate:t5.bind(null,e),register:nH.bind(null,e),start:t,startTransaction:t,poll:nq.bind(null,e),proceed:nB.bind(null,e),cancel:nI.bind(null,e),recoverPassword:nW.bind(null,e),handleInteractionCodeRedirect:nz.bind(null,e),isInteractionRequired:nX.bind(null,e),isInteractionRequiredError:nG,handleEmailVerifyCallback:nj.bind(null,e),isEmailVerifyCallback:nU,parseEmailVerifyCallback:nF,isEmailVerifyCallbackError:nM,getSavedTransactionMeta:tv.bind(null,e),createTransactionMeta:tg.bind(null,e),getTransactionMeta:tb.bind(null,e),saveTransactionMeta:tw.bind(null,e),clearTransactionMeta:tk.bind(null,e),isTransactionMetaValid:t_,setFlow:t=>{e.options.flow=t},getFlow:()=>e.options.flow,canProceed:nV.bind(null,e),unlockAccount:nK.bind(null,e)}}(this),this.fingerprint=oP.bind(null,this)}}).webauthn=ei,t}let oU={token:{storageTypes:["localStorage","sessionStorage","cookie"]},cache:{storageTypes:["localStorage","sessionStorage","cookie"]},transaction:{storageTypes:["sessionStorage","localStorage","cookie"]},"shared-transaction":{storageTypes:["localStorage"]},"original-uri":{storageTypes:["localStorage"]}},oF=/application\/\w*\+?json/;function oj(e,t,n){var i=n.data,o=n.headers||{},r=o["Content-Type"]||o["content-type"]||"";i&&"string"!=typeof i&&(oF.test(r)?i=JSON.stringify(i):"application/x-www-form-urlencoded"===r&&(i=Object.entries(i).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join("&")));var a=(window.fetch||tu)(t,{method:e,headers:n.headers,body:i,credentials:n.withCredentials?"include":"omit"});return a.finally||(a=Promise.resolve(a)),a.then(function(e){var t=!e.ok,n=e.status;return(e.headers.get("Content-Type")&&e.headers.get("Content-Type").toLowerCase().indexOf("application/json")>=0?e.json().catch(e=>({error:e,errorSummary:"Could not parse server response"})):e.text()).then(t=>(function(e,t,n){let i="object"==typeof t,o={};for(let e of n.headers.entries())o[e[0]]=e[1];let r={responseText:i?JSON.stringify(t):t,status:e,headers:o};return i&&(r.responseType="json",r.responseJSON=t),r})(n,t,e)).then(e=>{var n;if(t||(null===(n=e.responseJSON)||void 0===n?void 0:n.error))throw e;return e})})}function oV(){let e=function(){let e=function(){let e=function(){let e=function(){let e=class{constructor(e){this.devMode=!!e.devMode}};return class extends e{constructor(e){super(e),this.cookies=function(e={},t){var n=e.cookies||{};return void 0===n.secure&&(n.secure=t),void 0===n.sameSite&&(n.sameSite=n.secure?"none":"lax"),n.secure&&!t&&(es('The current page is not being served with the HTTPS protocol.\nFor security reasons, we strongly recommend using HTTPS.\nIf you cannot use HTTPS, set "cookies.secure" option to fal
4se.'),n.secure=!1),"none"!==n.sameSite||n.secure||(n.sameSite="lax"),n}(e,e7()),this.storageUtil=e.storageUtil||Object.assign({},or,{inMemoryStore:{}}),this.storageManager=Object.assign(Object.assign({},oU),e.storageManager)}}}();return class extends e{constructor(e){super(e),this.issuer=e.issuer,this.transformErrorXHR=e.transformErrorXHR,this.headers=e.headers,this.httpRequestClient=e.httpRequestClient||oj,this.httpRequestInterceptors=e.httpRequestInterceptors,this.pollDelay=e.pollDelay}}}();return class extends e{constructor(e){super(e),function(e){var t=(e=e||{}).scopes;if(t&&!Array.isArray(t))throw new eS('scopes must be a array of strings. Required usage: new OktaAuth({scopes: ["openid", "email"]})');var n=e.issuer;if(!n)throw new eS('No issuer passed to constructor. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com/oauth2/{authServerId}"})');if(!RegExp("^http?s?://.+").test(n))throw new eS('Issuer must be a valid URL. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com/oauth2/{authServerId}"})');if(-1!==n.indexOf("-admin.okta"))throw new eS('Issuer URL passed to constructor contains "-admin" in subdomain. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com})')}(e),this.issuer=e_(e.issuer),this.tokenUrl=e_(e.tokenUrl),this.authorizeUrl=e_(e.authorizeUrl),this.userinfoUrl=e_(e.userinfoUrl),this.revokeUrl=e_(e.revokeUrl),this.logoutUrl=e_(e.logoutUrl),this.pkce=!1!==e.pkce,this.clientId=e.clientId,this.redirectUri=e.redirectUri,e0()&&(this.redirectUri=function(e="",t){return ew(e)?e:(t=e_(t),"/"===e[0]?`${t}${e}`:`${t}/${e}`)}(e.redirectUri,window.location.origin)),this.responseType=e.responseType,this.responseMode=e.responseMode,this.state=e.state,this.scopes=e.scopes,this.ignoreSignature=!!e.ignoreSignature,this.codeChallenge=e.codeChallenge,this.codeChallengeMethod=e.codeChallengeMethod,this.acrValues=e.acrValues,this.maxAge=e.maxAge,this.dpop=!0===e.dpop,this.dpopOptions=Object.assign({allowBearerTokens:!1},e.dpopOptions),this.tokenManager=e.tokenManager,this.postLogoutRedirectUri=e.postLogoutRedirectUri,this.restoreOriginalUri=e.restoreOriginalUri,this.transactionManager=Object.assign({enableSharedStorage:!0},e.transactionManager),this.clientSecret=e.clientSecret,this.setLocation=e.setLocation,this.ignoreLifetime=!!e.ignoreLifetime,e.maxClockSkew||0===e.maxClockSkew?this.maxClockSkew=e.maxClockSkew:this.maxClockSkew=eN}}}();return class extends e{constructor(e){super(e),this.services=e.services,this.transformAuthState=e.transformAuthState}}}();return class extends e{constructor(e){super(e),this.flow=e.flow,this.activationToken=e.activationToken,this.recoveryToken=e.recoveryToken,this.idx=e.idx}}}class oB{constructor(e,t){if(!e)throw new eS('"storage" is required');if("string"!=typeof t||!t.length)throw new eS('"storageName" is required');this.storageName=t,this.storageProvider=e}getItem(e){return this.getStorage()[e]}setItem(e,t){return this.updateStorage(e,t)}removeItem(e){return this.clearStorage(e)}getStorage(){var e=this.storageProvider.getItem(this.storageName);e=e||"{}";try{return JSON.parse(e)}catch(e){throw new eS("Unable to parse storage string: "+this.storageName)}}setStorage(e){try{var t=e?JSON.stringify(e):"{}";this.storageProvider.setItem(this.storageName,t)}catch(e){throw new eS("Unable to set storage: "+this.storageName)}}clearStorage(e){if(!e){this.storageProvider.removeItem?this.storageProvider.removeItem(this.storageName):this.setStorage();return}var t=this.getStorage();delete t[e],this.setStorage(t)}updateStorage(e,t){var n=this.getStorage();n[e]=t,this.setStorage(n)}}function oq(e){e0()||e.storageProvider||e.storageKey||es("Memory storage can only support simple single user use case on server side, please provide custom storageProvider or storageKey if advanced scenarios need to be supported.")}class o${constructor(e,t,n){this.storageManagerOptions=e,this.cookieOptions=t,this.storageUtil=n}getOptionsForSection(e,t){return Object.assign({},this.storageManagerOptions[e],t)}getStorage(e){if((e=Object.assign({},this.cookieOptions,e)).storageProvider)return e.storageProvider;let{storageType:t,storageTypes:n}=e;if("sessionStorage"===t&&(e.sessionCookie=!0),t&&n){let e=n.indexOf(t);e>=0&&(n=n.slice(e),t=void 0)}return t||(t=this.storageUtil.findStorageType(n)),this.storageUtil.getStorageByType(t,e)}getTokenStorage(e){return oq(e=this.getOptionsForSection("token",e)),new oB(this.getStorage(e),e.storageKey||eI)}getHttpCache(e){return e=this.getOptionsForSection("cache",e),new oB(this.getStorage(e),e.storageKey||eD)}}function oH(){let e=class extends o${constructor(e,t,n){super(e,t,n)}getTransactionStorage(e){return oq(e=this.getOptionsForSection("transaction",e)),new oB(this.getStorage(e),e.storageKey||eM)}getSharedTansactionStorage(e){return oq(e=this.getOptionsForSection("shared-transaction",e)),new oB(this.getStorage(e),e.storageKey||eU)}getOriginalUriStorage(e){return oq(e=this.getOptionsForSection("original-uri",e)),new oB(this.getStorage(e),e.storageKey||eF)}};return class extends e{constructor(e,t,n){super(e,t,n)}
4getIdxResponseStorage(e){let t;if(e0())try{t=this.storageUtil.getStorageByType("memory",e)}catch(e){es("No response storage found, you may want to provide custom implementation for intermediate idx responses to optimize the network traffic")}else{let n=this.getTransactionStorage(e);n&&(t={getItem:e=>{let t=n.getStorage();return t&&t[e]?t[e]:null},setItem:(e,t)=>{let i=n.getStorage();if(!i)throw new eS("Transaction has been cleared, failed to save idxState");i[e]=t,n.setStorage(i)},removeItem:e=>{let t=n.getStorage();t&&(delete t[e],n.setStorage(t))}})}return t?new oB(t,ej):null}}}function oW(e){return!!e&&"object"==typeof e&&0!==Object.values(e).length}function oz(e){return!!(oW(e)&&(e.redirectUri||e.responseType)||oW(e)&&void 0===Object.values(e).find(e=>"string"!=typeof e))}function oK(){let e=class{constructor(e){this.storageManager=e.storageManager,this.enableSharedStorage=!1!==e.enableSharedStorage,this.saveLastResponse=!1!==e.saveLastResponse,this.options=e}clear(e={}){let t=this.storageManager.getTransactionStorage(),n=t.getStorage();if(t.clearStorage(),this.enableSharedStorage&&!1!==e.clearSharedStorage){let t=e.state||(null==n?void 0:n.state);t&&function(e,t){let n=e.getSharedTansactionStorage(),i=n.getStorage();delete i[t],n.setStorage(i)}(this.storageManager,t)}}save(e,t={}){let n=this.storageManager.getTransactionStorage();oz(n.getStorage())&&!t.muteWarning&&es("a saved auth transaction exists in storage. This may indicate another auth flow is already in progress."),n.setStorage(e),this.enableSharedStorage&&e.state&&function(e,t,n){let i=e.getSharedTansactionStorage(),o=i.getStorage();o[t]={dateCreated:Date.now(),transaction:n},i.setStorage(o)}(this.storageManager,e.state,e)}exists(e={}){try{return!!this.load(e)}catch(e){return!1}}load(e={}){let t;return this.enableSharedStorage&&e.state&&(!function(e){let t=e.getSharedTansactionStorage(),n=t.getStorage();Object.keys(n).forEach(e=>{let t=n[e];Date.now()-t.dateCreated>18e5&&delete n[e]}),t.setStorage(n)}(this.storageManager),t=function(e,t){let n=e.getSharedTansactionStorage().getStorage()[t];return n&&n.transaction&&oz(n.transaction)?n.transaction:null}(this.storageManager,e.state),oz(t))||oz(t=this.storageManager.getTransactionStorage().getStorage())?t:null}};return class extends e{constructor(e){super(e)}clear(e={}){super.clear(e),!1!==e.clearIdxResponse&&this.clearIdxResponse()}saveIdxResponse(e){if(!this.saveLastResponse)return;let t=this.storageManager.getIdxResponseStorage();t&&t.setStorage(e)}loadIdxResponse(e){if(!this.saveLastResponse)return null;let t=this.storageManager.getIdxResponseStorage();if(!t)return null;let n=t.getStorage();if(!n||!tj(n.rawIdxResponse))return null;if(e){let{stateHandle:t,interactionHandle:i}=e;if(!e.useGenericRemediator&&t&&n.stateHandle!==t||i&&n.interactionHandle!==i)return null}return n}clearIdxResponse(){if(!this.saveLastResponse)return;let e=this.storageManager.getIdxResponseStorage();null==e||e.clearStorage()}}}class oG{constructor(e,t){let{res:n}=t,{headers:i}=n,o=tm(n,["headers"]);i&&(this.headers=i),Object.keys(o).forEach(e=>{"_links"!==e&&(this[e]=o[e])})}}async function oY(e,t,n=oG){let{accessToken:i}=e.tokenManager.getTokensSync(),o=t.accessToken||i,r=e.getIssuerOrigin(),{url:a,method:s,payload:l}=t,c=a.startsWith(r)?a:`${r}${a}`;if(!o)throw new eS("AccessToken is required to request MyAccount API endpoints.");let u=o,p=Object.assign({headers:{Accept:"*/*;okta-version=1.0.0"},url:c,method:s},l&&{args:l});if(e.options.dpop){if("string"==typeof u)throw new eS("AccessToken object must be provided when using dpop");let{Authorization:t,Dpop:n}=await e.getDPoPAuthorizationHeaders({method:s,url:c,accessToken:u});p.headers.Authorization=t,p.headers.Dpop=n}else u="string"==typeof u?u:u.accessToken,p.accessToken=u;let d=await tr(e,p);return Array.isArray(d)?d.map(t=>new n(e,{res:t,accessToken:u})):new n(e,{res:d,accessToken:u})}function oJ({oktaAuth:e,accessToken:t,methodName:n,links:i},o=oG){for(let r of["GET","POST","PUT","DELETE"])if(r.toLowerCase()===n){let n=i.self;return async i=>oY(e,{accessToken:t,url:n.href,method:r,payload:i},o)}let r=i[n];if(!r)throw new eS(`No link is found with methodName: ${n}`);return async n=>oY(e,{accessToken:t,url:r.href,method:r.hints.allow[0],payload:n},o)}class oQ extends oG{constructor(e,t){super(e,t);let{createdAt:n,modifiedAt:i,profile:o}=t.res;this.createdAt=n,this.modifiedAt=i,this.profile=o}}class oX extends oG{constructor(e,t){super(e,t),this.properties=t.res.properties}}(p=J||(J={})).PRIMARY="PRIMARY",p.SECONDARY="SECONDARY",(d=Q||(Q={})).VERIFIED="VERIFIED",d.UNVERIFIED="UNVERIFIED",(h=X||(X={})).NOT_ENROLLED="NOT_ENROLLED",h.ACTIVE="ACTIVE";let oZ=async(e,t)=>await oY(e,{url:"/idp/myaccount/profile",method:"GET",accessToken:null==t?void 0:t.accessToken},oQ),o0=async(e,t)=>{let{payload:n,accessToken:i}=t;return await oY(e,{url:"/idp/myaccount/profile",method:"PUT",payload:n,accessToken:i},oQ)},o1=async(e,t)=>await oY(e,{url:"/idp/myaccount/profile/schema",method:"GET",accessToken:null==t?void 0:t.accessToken},oX);class o8 extends oG{constructor(e,t){super(e,t);let{res:n}=t,{id:i,profile:o,expiresAt:r,status:a}=n;this.id=i,this.expiresAt=r,this.profile=o,this.status=a}}class o2 extends oG{constructor(e,t){super(e,t);let{accessToken:n,res:i}=t,{id:o,expiresAt:r,profile:a,status:s,_links:l}=i;this.id=o,this.expiresAt=r,this.profile=a,this.status=s,this.poll=async()=>
4{let t=oJ({oktaAuth:e,accessToken:n,methodName:"poll",links:l},o8);return await t()},this.verify=async t=>{let i=oJ({oktaAuth:e,accessToken:n,methodName:"verify",links:l},o2);return await i(t)}}}class o3 extends oG{constructor(e,t){super(e,t);let{accessToken:n,res:i}=t,{id:o,profile:r,roles:a,status:s,_links:l}=i;this.id=o,this.profile=r,this.roles=a,this.status=s,this.get=async()=>{let t=oJ({oktaAuth:e,accessToken:n,methodName:"get",links:l},o3);return await t()},this.delete=async()=>{let t=oJ({oktaAuth:e,accessToken:n,methodName:"delete",links:l});return await t()},this.challenge=async()=>{let t=oJ({oktaAuth:e,accessToken:n,methodName:"challenge",links:l},o2);return await t()},l.poll&&(this.poll=async()=>{let t=oJ({oktaAuth:e,accessToken:n,methodName:"poll",links:l},o8);return await t()}),l.verify&&(this.verify=async t=>{let i=oJ({oktaAuth:e,accessToken:n,methodName:"verify",links:l});return await i(t)})}}let o4=async(e,t)=>await oY(e,{url:"/idp/myaccount/emails",method:"GET",accessToken:null==t?void 0:t.accessToken},o3),o6=async(e,t)=>{let{id:n,accessToken:i}=t;return await oY(e,{url:`/idp/myaccount/emails/${n}`,method:"GET",accessToken:i},o3)},o5=async(e,t)=>{let{accessToken:n,payload:i}=t;return await oY(e,{url:"/idp/myaccount/emails",method:"POST",payload:i,accessToken:n},o3)},o9=async(e,t)=>{let{id:n,accessToken:i}=t;return await oY(e,{url:`/idp/myaccount/emails/${n}`,method:"DELETE",accessToken:i})},o7=async(e,t)=>{let{id:n,accessToken:i}=t;return await oY(e,{url:`/idp/myaccount/emails/${n}/challenge`,method:"POST",accessToken:i},o2)},re=async(e,t)=>{let{emailId:n,challengeId:i,accessToken:o}=t;return await oY(e,{url:`/idp/myaccount/emails/${n}/challenge/${i}`,method:"POST",accessToken:o},o2)},rt=async(e,t)=>{let{emailId:n,challengeId:i,payload:o,accessToken:r}=t;return await oY(e,{url:`/idp/myaccount/emails/${n}/challenge/${i}/verify`,method:"POST",payload:o,accessToken:r})};class rn extends oG{constructor(e,t){super(e,t);let{res:n,accessToken:i}=t,{id:o,profile:r,status:a,_links:s}=n;this.id=o,this.profile=r,this.status=a,this.get=async()=>
4{let t=oJ({oktaAuth:e,accessToken:i,methodName:"get",links:s},rn);return await t()},this.delete=async()=>{let t=oJ({oktaAuth:e,accessToken:i,methodName:"delete",links:s});return await t()},this.challenge=async t=>{let n=oJ({oktaAuth:e,accessToken:i,methodName:"challenge",links:s});return await n(t)},s.verify&&(this.verify=async t=>{let n=oJ({oktaAuth:e,accessToken:i,methodName:"verify",links:s});return await n(t)})}}let ri=async(e,t)=>await oY(e,{url:"/idp/myaccount/phones",method:"GET",accessToken:null==t?void 0:t.accessToken},rn),ro=async(e,t)=>{let{accessToken:n,id:i}=t;return await oY(e,{url:`/idp/myaccount/phones/${i}`,method:"GET",accessToken:n},rn)},rr=async(e,t)=>{let{accessToken:n,payload:i}=t;return await oY(e,{url:"/idp/myaccount/phones",method:"POST",payload:i,accessToken:n},rn)},ra=async(e,t)=>{let{id:n,accessToken:i}=t;return await oY(e,{url:`/idp/myaccount/phones/${n}`,method:"DELETE",accessToken:i})},rs=async(e,t)=>{let{accessToken:n,id:i,payload:o}=t;return await oY(e,{url:`/idp/myaccount/phones/${i}/challenge`,method:"POST",payload:o,accessToken:n})},rl=async(e,t)=>{let{id:n,payload:i,accessToken:o}=t;return await oY(e,{url:`/idp/myaccount/phones/${n}/verify`,method:"POST",payload:i,accessToken:o})};class rc extends oG{constructor(e,t){super(e,t);let{res:n,accessToken:i}=t,{id:o,status:r,created:a,lastUpdated:s,_links:l}=n;this.id=o,this.status=r,this.created=a,this.lastUpdated=s,this.status==X.NOT_ENROLLED?this.enroll=async t=>{let n=oJ({oktaAuth:e,accessToken:i,methodName:"enroll",links:l},rc);return await n(t)}:(this.get=async()=>
4{let t=oJ({oktaAuth:e,accessToken:i,methodName:"get",links:l},rc);return await t()},this.update=async t=>{let n=oJ({oktaAuth:e,accessToken:i,methodName:"put",links:l},rc);return await n(t)},this.delete=async()=>{let t=oJ({oktaAuth:e,accessToken:i,methodName:"delete",links:l});return await t()})}}let ru=async(e,t)=>await oY(e,{url:"/idp/myaccount/password",method:"GET",accessToken:null==t?void 0:t.accessToken},rc),rp=async(e,t)=>{let{accessToken:n,payload:i}=t;return await oY(e,{url:"/idp/myaccount/password",method:"POST",payload:i,accessToken:n},rc)},rd=async(e,t)=>{let{accessToken:n,payload:i}=t;return await oY(e,{url:"/idp/myaccount/password",method:"PUT",payload:i,accessToken:n},rc)},rh=async(e,t)=>await oY(e,{url:"/idp/myaccount/password",method:"DELETE",accessToken:null==t?void 0:t.accessToken});function rf(e,t){var n={};return Object.assign(n,t),!n.stateToken&&e.stateToken&&(n.stateToken=e.stateToken),n}function rm(e,t){return t=rf(e,t),ts(e,e.getIssuerOrigin()+"/api/v1/authn",t,{withCredentials:!0})}function rg(e){return!!rv(e)}function ry(e,t,n,i,o){return ts(e,n,i,o=Object.assign({withCredentials:!0},o)).then(function(e){return t.createTransaction(e)})}function rv(e){return e.options.storageUtil.storage.get(eC)}class rb extends eh{constructor(){super("The poll was stopped by the sdk")}}class rw{constructor(e,t,n=null){this.data=void 0,this.status=void 0,n&&(this.data=n,Object.assign(this,function e(t,n,i,o,r){if(Array.isArray(o=ec(o=o||i))){for(var a=[],s=0,l=o.length;s<l;s++)a.push(e(t,n,i,o[s],r));return a}var c=o._embedded||{};for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(em(c[u])||Array.isArray(c[u]))&&(c[u]=e(t,n,i,c[u],r));return Object.assign(c,function(e,t,n,i,o){var r={};for(var a in i._links)if(Object.prototype.hasOwnProperty.call(i._links,a)){var s=i._links[a];if("next"===a&&(a=s.name),s.type){r[a]=s;continue}if("poll"===a)r.poll=function(e,t,n){return function(i){"[object Number]"===Object.prototype.toString.call(i)?o=i:em(i)&&(o=i.delay,r=i.rememberDevice,a=i.autoPush,s=i.transactionCallBack),o||0===o||(o=eA);var o,r,a,s,l=ed(t,"next","poll");n.isPolling=!0;var c=0,u=function(){return n.isPolling?(function(){var n={};if("function"==typeof a)try{n.autoPush=!!a()}catch(e){return Promise.reject(new eS("AutoPush resulted in an error."))}else null!=a&&(n.autoPush=!!a);if("function"==typeof r)try{n.rememberDevice=!!r()}catch(e){return Promise.reject(new eS("RememberDevice resulted in an error."))}else null!=r&&(n.rememberDevice=!!r);return ts(e,l.href+ek(n),rf(t),{saveAuthnState:!1,withCredentials:!0,pollingIntent:!0})})().then(function(t){if(c=0,!t.factorResult||"WAITING"!==t.factorResult)return n.isPolling=!1,e.tx.createTransaction(t);if(!n.isPolling)throw new rb;return"function"==typeof s&&s(t),eb(o).then(u)}).catch(function(e){if(e.xhr&&(0===e.xhr.status||429===e.xhr.status)&&c<=4){var t=1e3*Math.pow(2,c);return c++,eb(t).then(u)}throw e}):Promise.reject(new rb)};return u().catch(function(e){throw n.isPolling=!1,e})}}(e,n,o);else{var l=function e(t,n,i,o,r,a){if(Array.isArray(r))return function(s,l){if(!s)throw new eS("Must provide a link name");var c=ep(r,{name:s});if(!c)throw new eS("No link found for that name");return e(t,n,i,o,c,a)(l)};if(r.hints&&r.hints.allow&&1===r.hints.allow.length)switch(r.hints.allow[0]){case"GET":return function(){return ta(t,r.href,{withCredentials:!0})};case"POST":return function(e){a&&a.isPolling&&(a.isPolling=!1);var s=rf(i,e);("MFA_ENROLL"===i.status||"FACTOR_ENROLL"===i.status)&&Object.assign(s,{factorType:o.factorType,provider:o.provider});var l={},c=s.autoPush;if(void 0!==c){if("function"==typeof c)try{l.autoPush=!!c()}catch(e){return Promise.reject(new eS("AutoPush resulted in an error."))}else null!==c&&(l.autoPush=!!c);s=eu(s,"autoPush")}var u=s.rememberDevice;if(void 0!==u){if("function"==typeof u)try{l.rememberDevice=!!u()}catch(e){return Promise.reject(new eS("RememberDevice resulted in an error."))}else null!==u&&(l.rememberDevice=!!u);s=eu(s,"rememberDevice")}else s.profile&&void 0!==s.profile.updatePhone&&(s.profile.updatePhone&&(l.updatePhone=!0),s.profile=eu(s.profile,"updatePhone"));return ry(t,n,r.href+ek(l),s)}}}(e,t,n,i,s,o);l&&(r[a]=l)}}return r}
4(t,n,i,o,r)),Object.assign(o=eu(o,"_embedded","_links"),c),o}(e,t,n,n,{})),delete this.stateToken,"RECOVERY_CHALLENGE"!==n.status||n._links||(this.cancel=function(){return Promise.resolve(t.createTransaction())}))}}function rk(e){return class extends e{constructor(...e){super(...e),this.authn=this.tx=function(e){let t={status:rm.bind(null,e),resume:n=>(function(e,t,n){if(!n||!n.stateToken){var i=rv(e);if(!i)return Promise.reject(new eS("No transaction to resume"));n={stateToken:i}}return rm(e,n).then(function(e){return t.createTransaction(e)})})(e,t,n),exists:rg.bind(null,e),introspect:n=>(function(e,t,n){if(!n||!n.stateToken){var i,o=rv(e);if(!o)return Promise.reject(new eS("No transaction to evaluate"));n={stateToken:o}}return(i=rf(e,i=n),ts(e,e.getIssuerOrigin()+"/api/v1/authn/introspect",i,{withCredentials:!0})).then(function(e){return t.createTransaction(e)})})(e,t,n),createTransaction:n=>new rw(e,t,n),postToTransaction:(n,i,o)=>ry(e,t,n,i,o)};return t}(this),this.fingerprint=oP.bind(null,this)}async signIn(e){e=ec(e||{});let t=t=>(delete e.sendFingerprint,this.tx.postToTransaction("/api/v1/authn",e,t));return e.sendFingerprint?this.fingerprint().then(function(e){return t({headers:{"X-Device-Fingerprint":e}})}):t()}async signInWithCredentials(e){return this.signIn(e)}forgotPassword(e){return this.tx.postToTransaction("/api/v1/authn/recovery/password",e)}unlockAccount(e){return this.tx.postToTransaction("/api/v1/authn/recovery/unlock",e)}verifyRecoveryToken(e){let{multiOptionalFactorEnroll:t}=e,n=tm(e,["multiOptionalFactorEnroll"]);return t&&(n.options={multiOptionalFactorEnroll:t}),this.tx.postToTransaction("/api/v1/authn/recovery/token",n)}}}let r_=oV(),rS=oH(),rE=oK();rk((m=oM((f=oa(oC(n3(n0(nZ(r_),rS))),rE),class extends f{constructor(...e){super(...e),this.authStateManager=new op(this),this.serviceManager=new o_(this,this.options.services)}async start(){await this.serviceManager.start(),this.tokenManager.start(),this.token.isLoginRedirect()||await this.authStateManager.updateAuthState()}async stop(){this.tokenManager.stop(),await this.serviceManager.stop()}async handleRedirect(e){await this.handleLoginRedirect(void 0,e)}async handleLoginRedirect(e,t){let n=this.options.state;if(e)this.tokenManager.setTokens(e),t=t||this.getOriginalUri(this.options.state);else if(!this.isLoginRedirect())return;else try{n=(await iY(this,{})).state,t=t||this.getOriginalUri(n),await this.storeTokensFromRedirect()}catch(e){throw await this.authStateManager.updateAuthState(),e}await this.authStateManager.updateAuthState(),this.removeOriginalUri(n);let{restoreOriginalUri:i}=this.options;i?await i(this,t):t&&window.location.replace(t)}handleIDPPopupRedirect(e=window.location.href){let t=iY(this,{responseMode:"query",url:e});if(t.state){let e=new BroadcastChannel(`popup-callback:${t.state}`);e.postMessage(t),e.close()}else throw new eS("Unable to parse auth code params")}})),class extends m{constructor(...e){super(...e),this.myaccount=Object.entries(eo).filter(([e])=>"default"!==e).reduce((e,[t,n])=>(e[t]=n.bind(null,this),e),{})}}));let rT=oV(),rx=oH(),rO=oK(),rC=rk(oM(oa(oC(n3(n0(nZ(rT),rx))),rO)));var rA="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},rP={exports:{}};g=function(){var e="1.13.1",t="object"==typeof self&&self.self===self&&self||"object"==typeof rA&&rA.global===rA&&rA||Function("return this")()||{},n=Array.prototype,i=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,r=n.push,a=n.slice,s=i.toString,l=i.hasOwnProperty,c="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,p=Array.isArray,d=Object.keys,h=Object.create,f=c&&ArrayBuffer.isView,m=isNaN,g=isFinite,y=!({toString:null}).propertyIsEnumerable("toString"),v=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function b(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),o=0;o<n;o++)i[o]=arguments[o+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var r=Array(t+1);for(o=0;o<t;o++)r[o]=arguments[o];return r[t]=i,e.apply(this,r)}}function w(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function k(e){return void 0===e}function _(e){return!0===e||!1===e||"[object Boolean]"===s.call(e)}function S(e){var t="[object "+e+"]";return function(e){return s.call(e)===t}}var E=S("String"),T=S("Number"),x=S("Date"),O=S("RegExp"),C=S("Error"),A=S("Symbol"),P=S("ArrayBuffer"),N=S("Function"),R=t.document&&t.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof R&&(N=function(e){return"function"==typeof e});var I=N,D=S("Object"),L=u&&D(new DataView(new ArrayBuffer(8))),M="undefined"!=typeof Map&&D(new Map),U=S("DataView"),F=L?function(e){return null!=e&&I(e.getInt8)&&P(e.buffer)}:U,j=p||S("Array");function V(e,t){return null!=e&&l.call(e,t)}var B=S("Arguments");!function(){B(arguments)||(B=function(e){return V(e,"callee")})}();var q=B;function $(e){return T(e)&&m(e)}function H(e){return function(){return e}}function W(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=9007199254740991}}function z(e){return function(t){return null==t?void 0:t[e]}}var K=z("byteLength"),G=W(K),Y=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,J=c?function(e){return f?f(e)&&!F(e):G(e)&&Y.test(s.call(e))}:H(!1),Q=z("length");
vendor: 2,827 bytes, line 4
4function X(e,t){t=function(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=v.length,o=e.constructor,r=I(o)&&o.prototype||i,a="constructor";for(V(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=v[n])in e&&e[a]!==r[a]&&!t.contains(a)&&t.push(a)}function Z(e){if(!w(e))return[];if(d)return d(e);var t=[];for(var n in e)V(e,n)&&t.push(n);return y&&X(e,t),t}function ee(e,t){var n=Z(t),i=n.length;if(null==e)return!i;for(var o=Object(e),r=0;r<i;r++){var a=n[r];if(t[a]!==o[a]||!(a in o))return!1}return!0}function et(e){return e instanceof et?e:this instanceof et?void(this._wrapped=e):new et(e)}function en(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,K(e))}et.VERSION=e,et.prototype.value=function(){return this._wrapped},et.prototype.valueOf=et.prototype.toJSON=et.prototype.value,et.prototype.toString=function(){return String(this._wrapped)};var ei="[object DataView]";function eo(e){if(!w(e))return[];var t=[];for(var n in e)t.push(n);return y&&X(e,t),t}function er(e){var t=Q(e);return function(n){if(null==n||Q(eo(n)))return!1;for(var i=0;i<t;i++)if(!I(n[e[i]]))return!1;return e!==eu||!I(n[ea])}}var ea="forEach",es=["clear","delete"],el=["get","has","set"],ec=es.concat(ea,el),eu=es.concat(el),ep=["add"].concat(es,ea,"has"),ed=M?er(ec):S("Map"),eh=M?er(eu):S("WeakMap"),ef=M?er(ep):S("Set"),em=S("WeakSet");function eg(e){for(var t=Z(e),n=t.length,i=Array(n),o=0;o<n;o++)i[o]=e[t[o]];return i}function ey(e){for(var t={},n=Z(e),i=0,o=n.length;i<o;i++)t[e[n[i]]]=n[i];return t}function ev(e){var t=[];for(var n in e)I(e[n])&&t.push(n);return t.sort()}function eb(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var o=1;o<i;o++)for(var r=arguments[o],a=e(r),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=r[c])}return n}}var ew=eb(eo),ek=eb(Z),e_=eb(eo,!0);function eS(e){if(!w(e))return{};if(h)return h(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function eE(e){return w(e)?j(e)?e.slice():ew({},e):e}function eT(e){return j(e)?e:[e]}function ex(e){return et.toPath(e)}function eO(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function eC(e,t,n){var i=eO(e,ex(t));return k(i)?n:i}function eA(e){return e}function eP(e){return e=ek({},e),function(t){return ee(t,e)}}function eN(e){return e=ex(e),function(t){return eO(t,e)}}function eR(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,o){return e.call(t,n,i,o)};case 4:return function(n,i,o,r){return e.call(t,n,i,o,r)}}return function(){return e.apply(t,arguments)}}function eI(e,t,n){return null==e?eA:I(e)?eR(e,t,n):w(e)&&!j(e)?eP(e):eN(e)}function eD(e,t){return eI(e,t,1/0)}
vendor: 5,300 bytes, line 4
4function eL(e,t,n){return et.iteratee!==eD?et.iteratee(e,t):eI(e,t,n)}function eM(){}function eU(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}et.toPath=eT,et.iteratee=eD;var eF=Date.now||function(){return new Date().getTime()};function ej(e){var t=function(t){return e[t]},n="(?:"+Z(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}var eV={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},eB=ej(eV),eq=ej(ey(eV)),e$=et.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},eH=/(.)^/,eW={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ez=/\\|'|\r|\n|\u2028|\u2029/g;function eK(e){return"\\"+eW[e]}var eG=/^\s*(\w|\$)+\s*$/,eY=0;function eJ(e,t,n,i,o){if(!(i instanceof t))return e.apply(n,o);var r=eS(e.prototype),a=e.apply(r,o);return w(a)?a:r}var eQ=b(function(e,t){var n=eQ.placeholder,i=function(){for(var o=0,r=t.length,a=Array(r),s=0;s<r;s++)a[s]=t[s]===n?arguments[o++]:t[s];for(;o<arguments.length;)a.push(arguments[o++]);return eJ(e,i,this,this,a)};return i});eQ.placeholder=et;var eX=b(function(e,t,n){if(!I(e))throw TypeError("Bind must be called on a function");var i=b(function(o){return eJ(e,i,t,this,n.concat(o))});return i}),eZ=W(Q);function e0(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var o=i.length,r=0,a=Q(e);r<a;r++){var s=e[r];if(eZ(s)&&(j(s)||q(s))){if(t>1)e0(s,t-1,n,i),o=i.length;else for(var l=0,c=s.length;l<c;)i[o++]=s[l++]}else n||(i[o++]=s)}return i}var e1=b(function(e,t){var n=(t=e0(t,!1,!1)).length;if(n<1)throw Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=eX(e[i],e)}return e}),e8=b(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),e2=eQ(e8,et,1);function e3(e){return function(){return!e.apply(this,arguments)}}function e4(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var e6=eQ(e4,2);function e5(e,t,n){t=eL(t,n);for(var i,o=Z(e),r=0,a=o.length;r<a;r++)if(t(e[i=o[r]],i,e))return i}function e9(e){return function(t,n,i){n=eL(n,i);for(var o=Q(t),r=e>0?0:o-1;r>=0&&r<o;r+=e)if(n(t[r],r,t))return r;return -1}}var e7=e9(1),te=e9(-1);function tt(e,t,n,i){for(var o=(n=eL(n,i,1))(t),r=0,a=Q(e);r<a;){var s=Math.floor((r+a)/2);n(e[s])<o?r=s+1:a=s}return r}function tn(e,t,n){return function(i,o,r){var s=0,l=Q(i);if("number"==typeof r)e>0?s=r>=0?r:Math.max(r+l,s):l=r>=0?Math.min(r+1,l):r+l+1;else if(n&&r&&l)return i[r=n(i,o)]===o?r:-1;if(o!=o)return(r=t(a.call(i,s,l),$))>=0?r+s:-1;for(r=e>0?s:l-1;r>=0&&r<l;r+=e)if(i[r]===o)return r;return -1}}var ti=tn(1,e7,tt),to=tn(-1,te);function tr(e,t,n){var i=(eZ(e)?e7:e5)(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function ta(e,t,n){var i,o;if(t=eR(t,n),eZ(e))for(i=0,o=e.length;i<o;i++)t(e[i],i,e);else{var r=Z(e);for(i=0,o=r.length;i<o;i++)t(e[r[i]],r[i],e)}return e}function ts(e,t,n){t=eL(t,n);for(var i=!eZ(e)&&Z(e),o=(i||e).length,r=Array(o),a=0;a<o;a++){var s=i?i[a]:a;r[a]=t(e[s],s,e)}return r}function tl(e){var t=function(t,n,i,o){var r=!eZ(t)&&Z(t),a=(r||t).length,s=e>0?0:a-1;for(o||(i=t[r?r[s]:s],s+=e);s>=0&&s<a;s+=e){var l=r?r[s]:s;i=n(i,t[l],l,t)}return i};return function(e,n,i,o){var r=arguments.length>=3;return t(e,eR(n,o,4),i,r)}}var tc=tl(1),tu=tl(-1);function tp(e,t,n){var i=[];return t=eL(t,n),ta(e,function(e,n,o){t(e,n,o)&&i.push(e)}),i}function td(e,t,n){t=eL(t,n);for(var i=!eZ(e)&&Z(e),o=(i||e).length,r=0;r<o;r++){var a=i?i[r]:r;if(!t(e[a],a,e))return!1}return!0}function th(e,t,n){t=eL(t,n);for(var i=!eZ(e)&&Z(e),o=(i||e).length,r=0;r<o;r++){var a=i?i[r]:r;if(t(e[a],a,e))return!0}return!1}function tf(e,t,n,i){return eZ(e)||(e=eg(e)),("number"!=typeof n||i)&&(n=0),ti(e,t,n)>=0}var tm=b(function(e,t,n){var i,o;return I(t)?o=t:(i=(t=ex(t)).slice(0,-1),t=t[t.length-1]),ts(e,function(e){var r=o;if(!r){if(i&&i.length&&(e=eO(e,i)),null==e)return;r=e[t]}return null==r?r:r.apply(e,n)})});function tg(e,t){return ts(e,eN(t))}function ty(e,t,n){var i,o,r=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=eZ(e)?e:eg(e)).length;s<l;s++)null!=(i=e[s])&&i>r&&(r=i);else t=eL(t,n),ta(e,function(e,n,i){((o=t(e,n,i))>a||o===-1/0&&r===-1/0)&&(r=e,a=o)});return r}function tv(e,t,n){if(null==t||n)return eZ(e)||(e=eg(e)),e[eU(e.length-1)];var i=eZ(e)?eE(e):eg(e),o=Q(i);t=Math.max(Math.min(t,o),0);for(var r=o-1,a=0;a<t;a++){var s=eU(a,r),l=i[a];i[a]=i[s],i[s]=l}return i.slice(0,t)}function tb(e,t){return function(n,i,o){var r=t?[[],[]]:{};return i=eL(i,o),ta(n,function(t,o){var a=i(t,o,n);e(r,t,a)}),r}}var tw=tb(function(e,t,n){V(e,n)?e[n].push(t):e[n]=[t]}),tk=tb(function(e,t,n){e[n]=t}),t_=tb(function(e,t,n){V(e,n)?e[n]++:e[n]=1}),tS=tb(function(e,t,n){e[n?0:1].push(t)},!0),tE=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function tT(e,t,n){return t in n}var tx=b(function(e,t){var n={},i=t[0];if(null==e)return n;I(i)?(t.length>1&&(i=eR(i,t[1])),t=eo(e)):(i=tT,t=e0(t,!1,!1),e=Object(e));for(var o=0,r=t.length;o<r;o++){var a=t[o],s=e[a];i(s,a,e)&&(n[a]=s)}return n}),tO=b(function(e,t){var n,i=t[0];return I(i)?(i=e3(i),t.length>1&&(n=t[1])):(t=ts(e0(t,!1,!1),String),i=function(e,n){return!tf(t,n)}),tx(e,i,n)});
vendor: 12,019 bytes, line 4
4function tC(e,t,n){return a.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function tA(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:tC(e,e.length-t)}function tP(e,t,n){return a.call(e,null==t||n?1:t)}var tN=b(function(e,t){return t=e0(t,!0,!0),tp(e,function(e){return!tf(t,e)})}),tR=b(function(e,t){return tN(e,t)});function tI(e,t,n,i){_(t)||(i=n,n=t,t=!1),null!=n&&(n=eL(n,i));for(var o=[],r=[],a=0,s=Q(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&r===c||o.push(l),r=c):n?tf(r,c)||(r.push(c),o.push(l)):tf(o,l)||o.push(l)}return o}var tD=b(function(e){return tI(e0(e,!0,!0))});function tL(e){for(var t=e&&ty(e,Q).length||0,n=Array(t),i=0;i<t;i++)n[i]=tg(e,i);return n}var tM=b(tL);function tU(e,t){return e._chain?et(t).chain():t}function tF(e){return ta(ev(e),function(t){var n=et[t]=e[t];et.prototype[t]=function(){var e=[this._wrapped];return r.apply(e,arguments),tU(this,n.apply(et,e))}}),et}ta(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=n[e];et.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),tU(this,n)}}),ta(["concat","join","slice"],function(e){var t=n[e];et.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),tU(this,e)}});var tj=tF({__proto__:null,VERSION:e,restArguments:b,isObject:w,isNull:function(e){return null===e},isUndefined:k,isBoolean:_,isElement:function(e){return!(!e||1!==e.nodeType)},isString:E,isNumber:T,isDate:x,isRegExp:O,isError:C,isSymbol:A,isArrayBuffer:P,isDataView:F,isArray:j,isFunction:I,isArguments:q,isFinite:function(e){return!A(e)&&g(e)&&!isNaN(parseFloat(e))},isNaN:$,isTypedArray:J,isEmpty:function(e){if(null==e)return!0;var t=Q(e);return"number"==typeof t&&(j(e)||E(e)||q(e))?0===t:0===Q(Z(e))},isMatch:ee,isEqual:function(e,t){return function e(t,n,i,r){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;return("function"===a||"object"===a||"object"==typeof n)&&function t(n,i,r,a){n instanceof et&&(n=n._wrapped),i instanceof et&&(i=i._wrapped);var l=s.call(n);if(l!==s.call(i))return!1;if(L&&"[object Object]"==l&&F(n)){if(!F(i))return!1;l=ei}switch(l){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return o.valueOf.call(n)===o.valueOf.call(i);case"[object ArrayBuffer]":case ei:return t(en(n),en(i),r,a)}var c="[object Array]"===l;if(!c&&J(n)){if(K(n)!==K(i))return!1;if(n.buffer===i.buffer&&n.byteOffset===i.byteOffset)return!0;c=!0}if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var u=n.constructor,p=i.constructor;if(u!==p&&!(I(u)&&u instanceof u&&I(p)&&p instanceof p)&&"constructor"in n&&"constructor"in i)return!1}a=a||[];for(var d=(r=r||[]).length;d--;)if(r[d]===n)return a[d]===i;if(r.push(n),a.push(i),c){if((d=n.length)!==i.length)return!1;for(;d--;)if(!e(n[d],i[d],r,a))return!1}else{var h,f=Z(n);if(d=f.length,Z(i).length!==d)return!1;for(;d--;)if(!V(i,h=f[d])||!e(n[h],i[h],r,a))return!1}return r.pop(),a.pop(),!0}(t,n,i,r)}(e,t)},isMap:ed,isWeakMap:eh,isSet:ef,isWeakSet:em,keys:Z,allKeys:eo,values:eg,pairs:function(e){for(var t=Z(e),n=t.length,i=Array(n),o=0;o<n;o++)i[o]=[t[o],e[t[o]]];return i},invert:ey,functions:ev,methods:ev,extend:ew,extendOwn:ek,assign:ek,defaults:e_,create:function(e,t){var n=eS(e);return t&&ek(n,t),n},clone:eE,tap:function(e,t){return t(e),e},get:eC,has:function(e,t){for(var n=(t=ex(t)).length,i=0;i<n;i++){var o=t[i];if(!V(e,o))return!1;e=e[o]}return!!n},mapObject:function(e,t,n){t=eL(t,n);for(var i=Z(e),o=i.length,r={},a=0;a<o;a++){var s=i[a];r[s]=t(e[s],s,e)}return r},identity:eA,constant:H,noop:eM,toPath:eT,property:eN,propertyOf:function(e){return null==e?eM:function(t){return eC(e,t)}},matcher:eP,matches:eP,times:function(e,t,n){var i=Array(Math.max(0,e));t=eR(t,n,1);for(var o=0;o<e;o++)i[o]=t(o);return i},random:eU,now:eF,escape:eB,unescape:eq,templateSettings:e$,template:function(e,t,n){!t&&n&&(t=n);var i=RegExp([((t=e_({},t,et.templateSettings)).escape||eH).source,(t.interpolate||eH).source,(t.evaluate||eH).source].join("|")+"|$","g"),o=0,r="__p+='";e.replace(i,function(t,n,i,a,s){return r+=e.slice(o,s).replace(ez,eK),o=s+t.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?r+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),t}),r+="';\n";var a,s=t.variable;if(s){if(!eG.test(s))throw Error("variable is not a bare identifier: "+s)}else r="with(obj||{}){\n"+r+"}\n",s="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{a=Function(s,"_",r)}catch(e){throw e.source=r,e}var l=function(e){return a.call(this,e,et)};return l.source="function("+s+"){\n"+r+"}",l},result:function(e,t,n){var i=(t=ex(t)).length;if(!i)return I(n)?n.call(e):n;for(var o=0;o<i;o++){var r=null==e?void 0:e[t[o]];void 0===r&&(r=n,o=i),e=I(r)?r.call(e):r}return e},uniqueId:function(e){var t=++eY+"";return e?e+t:t},chain:function(e){var t=et(e);return t._chain=!0,t},iteratee:eD,partial:eQ,bind:eX,bindAll:e1,memoize:function(e,t){var n=function(i){var o=n.cache,r=""+(t?t.apply(this,arguments):i);return V(o,r)||(o[r]=e.apply(this,arguments)),o[r]};return n.cache={},n},delay:e8,defer:e2,throttle:function(e,t,n){var i,o,r,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:eF(),i=null,a=e.apply(o,r),i||(o=r=null)},c=function(){var c=eF();s||!1!==n.leading||(s=c);var u=t-(c-s);return o=this,r=arguments,u<=0||u>t?(i&&(clearTimeout(i),i=null),s=c,a=e.apply(o,r),i||(o=r=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=o=r=null},c},debounce:function(e,t,n){var i,o,r,a,s,l=function(){var c=eF()-o;t>c?i=setTimeout(l,t-c):(i=null,n||(a=e.apply(s,r)),i||(r=s=null))},c=b(function(c){return s=this,r=c,o=eF(),i||(i=setTimeout(l,t),n&&(a=e.apply(s,r))),a});return c.cancel=function(){clearTimeout(i),i=r=s=null},c},wrap:function(e,t){return eQ(t,e)},negate:e3,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:e4,once:e6,findKey:e5,findIndex:e7,findLastIndex:te,sortedIndex:tt,indexOf:ti,lastIndexOf:to,find:tr,detect:tr,findWhere:function(e,t){return tr(e,eP(t))},each:ta,forEach:ta,map:ts,collect:ts,reduce:tc,foldl:tc,inject:tc,reduceRight:tu,foldr:tu,filter:tp,select:tp,reject:function(e,t,n){return tp(e,e3(eL(t)),n)},every:td,all:td,some:th,any:th,contains:tf,includes:tf,include:tf,invoke:tm,pluck:tg,where:function(e,t){return tp(e,eP(t))},max:ty,min:function(e,t,n){var i,o,r=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=eZ(e)?e:eg(e)).length;s<l;s++)null!=(i=e[s])&&i<r&&(r=i);else t=eL(t,n),ta(e,function(e,n,i){((o=t(e,n,i))<a||o===1/0&&r===1/0)&&(r=e,a=o)});return r},shuffle:function(e){return tv(e,1/0)},sample:tv,sortBy:function(e,t,n){var i=0;return t=eL(t,n),tg(ts(e,function(e,n,o){return{value:e,index:i++,criteria:t(e,n,o)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return -1}return e.index-t.index}),"value")},groupBy:tw,indexBy:tk,countBy:t_,partition:tS,toArray:function(e){return e?j(e)?a.call(e):E(e)?e.match(tE):eZ(e)?ts(e,eA):eg(e):[]},size:function(e){return null==e?0:eZ(e)?e.length:Z(e).length},pick:tx,omit:tO,first:tA,head:tA,take:tA,initial:tC,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:tP(e,Math.max(0,e.length-t))},rest:tP,tail:tP,drop:tP,compact:function(e){return tp(e,Boolean)},flatten:function(e,t){return e0(e,t,!1)},without:tR,uniq:tI,unique:tI,union:tD,intersection:function(e){for(var t=[],n=arguments.length,i=0,o=Q(e);i<o;i++){var r,a=e[i];if(!tf(t,a)){for(r=1;r<n&&tf(arguments[r],a);r++);r===n&&t.push(a)}}return t},difference:tN,unzip:tL,transpose:tL,zip:tM,object:function(e,t){for(var n={},i=0,o=Q(e);i<o;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),o=Array(i),r=0;r<i;r++,e+=n)o[r]=e;return o},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;i<o;)n.push(a.call(e,i,i+=t));return n},mixin:tF,default:et});return tj._=tj,tj},rP.exports=g();var rN=rP.exports,rR={defaultLanguage:"en",version:"7.43.1",supportedLanguages:["en","cs","da","de","el","es","eu","fi","fr","ht","hu","id","in","it","ja","ko","ms","nb","nl-NL","ok-PL","ok-SK","pl","pt-BR","ro","ru","sv","th","tr","uk","vi","zh-CN","zh-TW"]},rI={AF:"Afghanistan",AX:"\xc5land Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia, Plurinational State of",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"Virgin Islands, British",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CO:"Colombia",KM:"Comoros",CG:"Congo",CK:"Cook Islands",CR:"Costa Rica",CI:"C\xf4te d'Ivoire",HR:"Croatia",CU:"Cuba",CY:"Cyprus",CZ:"Czech Republic",CD:"Congo, the Democratic Republic of the",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"Timor-Leste",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KR:"Korea, Republic of",XK:"Kosovo, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",KP:"Korea, Democratic People's Republic of",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"R\xe9union",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"S\xe3o Tom\xe9 and Pr\xedncipe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serb
4ia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"Virgin Islands, U.S.",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Holy See (Vatican City State)",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},rD={signout:"Sign Out",signin:"Sign In",signup:"Sign Up",remember:"Remember me",rememberDevice:"Trust this device","rememberDevice.timebased":"Do not challenge me on this device for the next {0}","rememberDevice.devicebased":"Do not challenge me on this device again",autoPush:"Send push automatically",unlockaccount:"Unlock account?",haveaccount:"Already have an account?",needhelp:"Need help signing in?",forgotpassword:"Forgot password?",help:"Help",retry:"Retry",iphone:"iPhone",android:"Android",goback:"Back to sign in",closeWindow:"You can close this window","country.option.label":"{0} ({1})","phone.extention.label":"Extension","select.default_value":"Select an option","select.filter.no_match":'No results found for "{0}"',"sensitive.input.show":"Show","sensitive.input.hide":"Hide","processing.alt.text":"Processing...","logo.default.alt.text":"Logo","identifier.icon.alt.text":"User","icon.title.application":"Application","icon.title.browser":"Browser","icon.title.mobileBrowser":"Mobile browser","icon.title.location":"Location","icon.title.mobileDevice":"Mobile Device","skip.to.main.content":"Skip to main content","minutes.oneMinute":"minute",minutes:"{0} minutes",hours:"{0} hours",days:"{0} days","error.config":"There was a configuration error","error.required.authParams":'Missing parameters for the configured authentication scheme - "OAUTH2"',"error.required.baseUrl":'"baseUrl" is a required widget parameter',"error.required.success":"A success handler is required","error.required.el":'"el" is a required widget parameter',"error.invalid.colors.brand":'"colors.brand" must be in six-digit hex format',"error.unsupported.browser":"Unsupported browser","error.unsupported.cors":"Unsupported browser - missing CORS support","error.unsupported.localStorage":"Unsupported browser - missing localStorage support","error.enabled.cors":"There was an error sending the request - have you enabled CORS?","error.expired.session":"Your session has expired. Please try to sign in again.","error.mfa.only.expired.session":"Unable to authenticate at this time.","error.auth.lockedOut":"Your account is locked. Please contact your administrator.","error.oauth.idToken":"There was a problem generating the id_token for the user. Please try again.","error.network.connection":"Unable to connect to the server. Please check your network connection.","error.username.required":"Please enter a username","error.password.required":"Please enter a password","error.mfa.required":"The current sign on policy requires this client to redirect for re-authentication or MFA. Please contact your administrator.","error.unsupported.response":"There was an unsupported response from server.","error.jit_failure":"Unable to sign in, please try another sign in method.","error.unsynced.clock":"Unable to sign in. Please check that your device's clock is accurate and try again.","errors.E0000004":"Unable to sign in","errors.E0000069":"Your account is locked because of too many authentication attempts.","errors.E0000047":"You exceeded the maximum number of requests. Try again in a while.","errors.E0000079":"The operation is not allowed. Please refresh the page to proceed.","errors.E0000001":"Api validation failed: {0}
4","errors.E0000002":"The request was not valid: {0}","errors.E0000003":"The request body was not well-formed.","errors.E0000005":"Invalid session","errors.E0000006":"You do not have permission to perform the requested action","errors.E0000007":"Not found: {0}","errors.E0000008":"The requested path was not found","errors.E0000009":"Internal Server Error","errors.E0000010":"Service is in read only mode","errors.E0000011":"Invalid token provided","errors.E0000012":"Unsupported media type","errors.E0000013":"Invalid client app id","errors.E0000015":"You do not have permission to access the feature you are requesting","errors.E0000016":"Activation failed because the user is already active","errors.E0000017":"Password reset failed","errors.E0000018":"Bad request. Accept and/or Content-Type headers are likely not set.","errors.E0000019":"Bad request. Accept and/or Content-Type headers likely do not match supported values.","errors.E0000020":"Bad request.","errors.E0000021":"Bad request. Accept and/or Content-Type headers likely do not match supported values.","errors.E0000022":"The endpoint does not support the provided HTTP method","errors.E0000023":"Operation failed because user profile is mastered under another system","errors.E0000024":"Bad request. This operation on app metadata is not yet supported.","errors.E0000025":"App version assignment failed.","errors.E0000026":"This endpoint has been deprecated.","errors.E0000027":"Group push bad request : {0}","errors.E0000028":"The request is missing a required parameter.","errors.E0000029":"Invalid paging request.","errors.E0000030":"Bad request. Invalid date. Dates must be of the form yyyy-MM-dd''T''HH:mm:ss.SSSZZ, e.g. 2013-01-01T12:00:00.000-07:00.","errors.E0000031":"Invalid search criteria.","errors.E0000032":"Unlock is not allowed for this user.","errors.E0000033":"Bad request. Can't specify a search query and filter in the same request.","errors.E0000034":"Forgot password not allowed on specified user.","errors.E0000035":"Change password not allowed on specified user.","errors.E0000036":"Change recovery question not allowed on specified user.","errors.E0000037":"Type mismatch exception.","errors.E0000038":"This operation is not allowed in the user''s current status.","errors.E0000039":"Operation on application settings failed.","errors.E0000040":"Application label must not be the same as an existing application label.","errors.E0000041":"Credentials should not be set on this resource based on the scheme.","errors.E0000042":"Setting the error page redirect URL failed.","errors.E0000043":"Self service application assignment is not enabled.","errors.E0000044":"Self service application assignment is not supported.","errors.E0000045":"Field mapping bad request.","errors.E0000046":"Deactivate application for user forbidden.","errors.E0000048":"Entity not found exception.","errors.E0000049":"Invalid SCIM data from SCIM implementation.","errors.E0000050":"Invalid SCIM data from client.","errors.E0000051":"No response from SCIM implementation.","errors.E0000052":"Endpoint not implemented.","errors.E0000053":"Invalid SCIM filter.","errors.E0000054":"Invalid pagination properties.","errors.E0000055":"Duplicate group.","errors.E0000056":"Delete application forbidden.","errors.E0000057":"Access to this application is denied due to a policy.","errors.E0000058":"Access to this application requires MFA: {0}","errors.E0000059":"The connector configuration could not be tested. Make sure that the URL, Authentication Parameters are correct and that there is an implementation available at the URL provided.","errors.E0000060":"Unsupported operation.","errors.E0000061":"Tab error: {0}","errors.E0000062":"The specified user is already assigned to the application.","errors.E0000063":"Invalid combination of parameters specified.","errors.E0000064":"Password is expired and must be changed.","errors.E0000065":"Internal error processing app metadata.","errors.E0000066":"APNS is not configured, contact your admin","errors.E0000067":"Factors Service Error.","errors.E0000070":"Waiting for ACK","errors.E0000071":"Unsupported OS Version: {0}","errors.E0000072":"MIM policy settings have disallowed enrollment for this user","errors.E0000073":"User rejected authentication","errors.E0000074":"Factor Service Error","errors.E0000075":"Cannot modify the {0} attribute because it has a field mapping and profile push is enabled.","errors.E0000076":"Cannot modify the app user because it is mastered by an external app.","errors.E0000077":"C
4annot modify the {0} attribute because it is read-only.","errors.E0000078":"Cannot modify the {0} attribute because it is immutable.","errors.E0000081":"Cannot modify the {0} attribute because it is a reserved attribute for this application.","errors.E0000082":"Each code can only be used once. Please wait for a new code and try again.","errors.E0000083":"PassCode is valid but exceeded time window.","errors.E0000084":"App evaluation error.","errors.E0000085":"You do not have permission to access your account at this time.","errors.E0000086":"This policy cannot be activated at this time.","errors.E0000087":"The recovery question answer did not match our records.","errors.E0000090":"The role specified is already assigned to the user.","errors.E0000091":"The provided role type was not the same as required role type.","errors.E0000092":"Access to this application requires re-authentication: {0}","errors.E0000093":"Target count limit exceeded","errors.E0000094":"The provided filter is unsupported.","errors.E0000095":"Recovery not allowed for unknown user.","errors.E0000096":"This certificate has already been uploaded with kid={0}.","errors.E0000097":"There is no verified phone number on file.","errors.E0000098":"This phone number is invalid.","errors.E0000099":"Only numbers located in US and Canada are allowed. Contact your administrator if this is a problem.","errors.E0000100":"Unable to perform search query.","errors.E0000101":"Upload failed because of a problem with your ipa file, {0}","errors.E0000102":"YubiKey cannot be deleted while assigned to an user. Please deactivate YubiKey using reset MFA and try again","errors.E0000103":"Action on device already in queue or in progress","errors.E0000104":"Device is already locked and cannot be locked again","errors.E0000105":"You have accessed an account recovery link that has expired or been previously used.","errors.E0000106":"Wait for token to change, then enter the new tokencode.","errors.E0000107":"The entity is not in the expected state for the requested transition.","errors.E0000109":"An SMS message was recently sent. Please wait 30 seconds before trying again.","errors.E0000110":"You have accessed a link that has expired or has been previously used.","errors.E0000111":"Cannot modify the {0} object because it is read-only.","errors.E0000112":"Cannot update this user because they are still being activated. Please try again in a few minutes.","errors.E0000113":"{0}.","errors.E0000114":"A user with this login already exists in the current organization.","errors.E0000115":"Upload failed, {0}","errors.E0000116":"{0}","errors.E0000119":"Your account is locked. Please contact your administrator.","errors.E0000124":"Could not create user. To create a user and expire their password immediately, a password must be specified","errors.E0000125":'Could not create user. To create a user and expire their password immediately, "activate" must be true',"errors.E0000133":"A phone call was recently made. Please wait 30 seconds before trying again.","errors.E0000207":"The username and/or the password you entered is incorrect. Please try again.","oform.next":"Next","oform.verify":"Verify","oform.send":"Send","oform.back":"Back","oform.title.authenticate":"Authenticate","oform.save":"Save","oform.cancel":"Cancel","oform.edit":"Edit","oform.previous":"Previous","oform.error.icon.ariaLabel":"Error","oform.errorbanner.title":"We found some errors. Please review the form and make corrections.","oform.errormsg.title":"Please review the form to correct the following errors:","oform.error.unexpected":"There was an unexpected internal error. Please try again.","oform.error.webfinger":"Unable to determine user identification method. Please contact your administrator for assistance.","oform.selectInput.country":"{0} selected","model.validation.field.blank":"This field cannot be left blank","model.validation.field.wrong.type":"This field is of the wrong type","model.validation.field.invalid":"This field has an invalid value","model.validation.field.value.not.allowed":"This field value is not allowed","model.validation.field.array.minItems":"This array does not have enough items","model.validation.field.array.maxItems":"This array contains too many items","model.validation.field.array.unique":"This array can only have unique values","model.validation.field.string.minLength":"This field cannot be less than the minimum required characters","model.validation.field.string.maxLength":"This field cannot exceed the maximum allowed characters","model.validation.field.invalid.format.email":"This value is not a valid email address","model.validation.field.invalid.format.uri":"This value is not a valid URI","model.validation.field.invalid.format.ipv4":"This value is not a valid IPv4 address","model.validation.field.invalid.format.hostname":"This value is not a valid hostname","model.validation.field.username":"Please check your username","schema.validation.field.value.must.string":"Value must be a string","schema.validation.field.value.must.number":"Value must be a number","schema.validation.field.value.must.integer":"Value must be an integer","schema.validation.field.value.must.object":"Value must be an object","universal-directory.profiles.attribute.source.oktamastered":"Inherit from Okta","universal-directory.profiles.attribute.source.override":"Override profile source","universal-directory.profiles.attribute.form.union.disable.display":"Combine values across groups","universal-directory.profiles.attribute.source.inherit":"Inherit from profile source","universal-directory.profiles.attribute.enduser.permission.readonly":"Read Only","universal-directory.profiles.attribute.enduser.permission.hide":"Hide","universal-directory.profiles.attribute.enduser.permission.readwrite":"Read-Write","universal-directory.profiles.attribute.form.union.enable.display":"Use Group Priority","factor.totpSoft.oktaVerify":"Okta Verify","factor.totpSoft.googleAuthenticator":"Google Authenticator","factor.totpSoft.description":"Enter single-use code from the mobile app.","factor.totpHard.rsaSecurId":"RSA SecurID","factor.totpHard.symantecVip":"Symantec VIP","factor.totpHard.description":"Enter a single-use code from a hardware token.","factor.totpHard.yubikey":"YubiKey","factor.totpHard.yubikey.description":"Insert your YubiKey and tap it to get a verification code.","factor.totpHard.yubikey.placeholder":"Click here, then tap your YubiKey","factor.oktaVerifyPush":"Okta Verify","factor.push.description":"Use a push notification sent to the mobile app.","factor.duo":"Duo Security","factor.duo.description":"Use Push Notification, SMS, or Voice call to authenticate.","factor.sms":"SMS Authentication","factor.sms.description":"Enter a single-use code sent to your mobile phone.","factor.sms.time.warning":"Haven't received an SMS? To try again, click <$1>Re-send code</$1>.","factor.call":"Voice Call Authentication","factor.call.description":"Use a phone to authenticate by following voice instructions.","factor.call.time.warning":"Haven't received a voice call? To try again, click <$1>Redial</$1>.","factor.securityQuestion":"Security Question","factor.securityQuestion.description":"Use the answer to a security question to authenticate.","factor.windowsHello":"Windows Hello","factor.windowsHello.signin.description":"Sign in to Okta using Windows Hello.","factor.windowsHello.signin.description.generic":"Sign in using Windows Hello.","factor.windowsHello.signin.description.specific":"Sign in to {0} using Windows Hello.","factor.u2f":"Security Key (U2F)","factor.u2f.description":"Use a Universal 2nd Factor (U2F) security ke
4y to sign on to Okta.","factor.u2f.description.generic":"Use a Universal 2nd Factor (U2F) security key to sign in.","factor.u2f.description.specific":"Use a Universal 2nd Factor (U2F) security key to sign in to {0}.","factor.email":"Email Authentication","factor.email.description":"Enter a verification code sent to your email.","factor.password":"Password","factor.customFactor.description":"Redirect to a third party MFA provider to sign in to Okta.","factor.customFactor.description.generic":"Redirect to a third party MFA provider to sign in.","factor.customFactor.description.specific":"Redirect to a third party MFA provider to sign in to {0}.","factor.webauthn.biometric":"Security Key or Biometric Authenticator","factor.webauthn.biometric.description":"Use a security key (USB or bluetooth) or a biometric authenticator (Windows Hello, Touch ID, etc.)","factor.hotp.description":"Enter a single-use code from an authenticator.","mfa.challenge.verify":"Verify","mfa.challenge.answer.placeholder":"Answer","mfa.challenge.answer.tooltip":"Answer","mfa.challenge.answer.showAnswer":"Show","mfa.challenge.answer.hideAnswer":"Hide","mfa.challenge.enterCode.placeholder":"Enter Code","mfa.challenge.enterCode.tooltip":"Enter Code","mfa.challenge.password.placeholder":"Password","mfa.backToFactors":"Back to factor list","mfa.enroll":"Enroll","mfa.setupOptions":"Setup Options","mfa.country":"Country/region","mfa.phoneNumber.placeholder":"Phone number","mfa.phoneNumber.ext.placeholder":"Extension","mfa.sendCode":"Send code","mfa.sent":"Sent","mfa.resendCode":"Re-send code","mfa.call":"Call","mfa.calling":"Calling","mfa.redial":"Redial","mfa.sendEmail":"Send email","mfa.resendEmail":"Re-send email","mfa.scanBarcode":"Scan QR code","mfa.altQrCode":"QR code. If you can't scan, click on the link below to select an alternative activation method","mfa.noAccessToEmail":"Can't access email","password.reset":"Reset Password","password.oldPassword.placeholder":"Old password","password.oldPassword.tooltip":"Old password","password.newPassword.placeholder":"New password","password.newPassword.tooltip":"New password","password.confirmPassword.placeholder":"Repeat password","password.confirmPassword.tooltip":"Repeat password","password.error.match":"New passwords must match","password.enroll.error.match":"Passwords must match","recovery.sms.hint":"SMS can only be used if a mobile phone number has been configured.","recovery.mobile.hint":"{0} can only be used if a mobile phone number has been configured.","recovery.sms":"SMS","recovery.call":"Voice Call","recovery.smsOrCall":"SMS or Voice Call","verify.choices.description":"Verify with one of the following factors.","email.button.send":"Send me the code","email.button.resend":"Send again","email.code.label":"Verification code","email.code.not.received":"Haven't received an email?","email.enroll.title":"Set up Email Authentication","email.enroll.description":"Send a verification code to your registered email.","email.enroll.enterCode":"Enter code","email.link.terminal.msg":"To finish signing in, return to the screen where you requested the email link.","email.mfa.title":"Verify with Email Authentication","email.mfa.description":"Send a verification code to {0}.","email.mfa.email.sent.description":"A verification code was sent to {0}. Check your email and enter the code below.","email.mfa.email.sent.description.sentText":"A verification code was sent to","email.mfa.email.sent.description.emailCodeText":"Check your email and enter the code below.","email.unregistered_email.error":"Enter the email where you received the Welcome instructions from your administrator.","enroll.choices.title":"Set up multifactor authentication","enroll.choices.description":"Your company requires multifactor authentication to add an additional layer of security when signing in to your Okta account","enroll.choices.description.generic":"Your company requires multifactor authentication to add an additional layer of security when signing in to your account","enroll.choices.description.specific":"Your company requires multifactor authentication to add an additional layer of security when signing in to your {0} account","enroll.choices.description.gracePeriod.bold":"Your company recommends setting up additional factors for authentication. Set up will be required in: <b>{0} day(s)</b>.","enroll.choices.description.gracePeriod.oneDay.bold":"Your company recommends setting up additional factors for authentication. Set up will be required in: <b>less than 1 day</b>.","enroll.choices.optional":"You can configure any additional optional factor or click finish","enroll.choices.list.setup":"Setup required","enroll.choices.list.enrolled":"Enrolled factors","enroll.choices.list.optional":"Additional optional factors","enroll.choices.setup":"Setup","enroll.choices.setup.another":"Set up another","enroll.choices.submit.finish":"Finish","enroll.choices.submit.configure":"Configure factor","enroll.choices.submit.next":"C
4onfigure next factor","enroll.choices.cardinality.setup":"({0} set up)","enroll.choices.cardinality.setup.remaining":"({0} of {1} set up)","enroll.choices.setup.skip":"Skip set up","enroll.securityQuestion.setup":"Setup secret question authentication","security.disliked_food":"What is the food you least liked as a child?","security.name_of_first_plush_toy":"What is the name of your first stuffed animal?","security.first_award":"What did you earn your first medal or award for?","security.favorite_security_question":"What is your favorite security question?","security.favorite_toy":"What is the toy/stuffed animal you liked the most as a kid?","security.first_computer_game":"What was the first computer game you played?","security.favorite_movie_quote":"What is your favorite movie quote?","security.first_sports_team_mascot":"What was the mascot of the first sports team you played on?","security.first_music_purchase":"What music album or song did you first purchase?","security.favorite_art_piece":"What is your favorite piece of art?","security.grandmother_favorite_desert":"What was your grandmother's favorite dessert?","security.first_thing_cooked":"What was the first thing you learned to cook?","security.childhood_dream_job":"What was your dream job as a child?","security.first_kiss_location":"Where did you have your first kiss?","security.place_where_significant_other_was_met":"Where did you meet your spouse/significant other?","security.favorite_vacation_location":"Where did you go for your favorite vacation?","security.new_years_two_thousand":"Where were you on New Year's Eve in the year 2000?","security.favorite_speaker_actor":"Who is your favorite speaker/orator?","security.favorite_book_movie_character":"Who is your favorite book/movie character?","security.favorite_sports_player":"Who is your favorite sports player?","enroll.password.setup":"Select a password","save.password":"Save password","enroll.sms.setup":"Receive a code via SMS to authenticate","enroll.sms.try_again":"The number you entered seems invalid. If the number is correct, please try again.","enroll.call.setup":"Follow phone call instructions to authenticate","enroll.onprem.username.placeholder":"Enter {0} username","enroll.onprem.username.tooltip":"Enter {0} username","enroll.onprem.passcode.placeholder":"Enter {0} passcode","enroll.onprem.passcode.tooltip":"Enter {0} passcode","enroll.symantecVip.subtitle":"Enter Credential ID and two consecutive generated codes","enroll.symantecVip.credentialId.placeholder":"Enter credential ID","enroll.symantecVip.credentialId.tooltip":"Enter credential ID","enroll.symantecVip.passcode1.placeholder":"Security code 1","enroll.symantecVip.passcode1.tooltip":"Security code 1","enroll.symantecVip.passcode2.placeholder":"Security code 2","enroll.symantecVip.passcode2.tooltip":"Security code 2","enroll.yubikey.title":"Setup YubiKey","enroll.yubikey.subtitle":"Insert your YubiKey into a USB port and tap it to generate a verification code","enroll.totp.title":"Setup {0}","enroll.totp.selectDevice":"Select your device type","enroll.totp.downloadApp":'Download <a href="{0}" class="inline-link">{1} from the {2}</a> onto your mobile device.',"enroll.hotp.restricted":"Contact your administrator to continue enrollment.","enroll.duo.title":"Setup Duo Security","enroll.windowsHello.title":"Enroll Windows Hello","enroll.windowsHello.subtitle":"Click below to enroll Windows Hello as a second form of authentication","enroll.windowsHello.subtitle.loading":"Please wait while Windows Hello is loading...","enroll.windowsHello.save":"Enroll Windows Hello","enroll.windowsHello.error.notWindows":"Windows Hello can only be used on Windows Edge with Windows 10. Contact your admin for assistance.","enroll.windowsHello.error.notConfiguredHtml":"Windows Hello is not configured. Select the <b>Start</b> button, then select <b>Settings</b> - <b>Accounts</b> - <b>Sign-in</b> to configure Windows Hello.","verify.windowsHello.subtitle":"Verify your identity with Windows Hello","verify.windowsHello.subtitle.loading":"Please wait while Windows Hello is loading...","verify.windowsHello.subtitle.signingIn":"Signing in to Okta...","verify.windowsHello.subtitle.signingIn.generic":"Signing in...","verify.windowsHello.subtitle.signingIn.specific":"Signing in to {0}...","verify.windowsHello.save":"Verify with Windows Hello","verify.windowsHello.error.notFound":"Your Windows Hello enrollment does not match our records. Contact your administrator for assistance.","verify.windowsHello.error.notFound.selectAnother":"Your Windows Hello enrollment does not match our records. Select another factor or contact your administrator for assistance.","enroll.u2f.title":"Setup Security Key (U2F)","enroll.u2f.save":"Register Security Key","enroll.u2f.general2":"Make sure you have a Security Key. If already inserted, remove it now.<br>If you have a Bluetooth Security Key, turn on your computer's Bluetooth.","enroll.u2f.general3":"Click the button below to register","enroll.u2f.instructions":"Insert your Security Key into a USB port on this computer. If it has a button or gold disk, tap it.","enroll.u2f.instructionsBluetooth":"If you are using a Bluetooth Security Key, press the button.","u2f.error.factorNotSupported":"Security Key (U2F) is not supported on this browser. Select another factor or contact your admin for assistance.","u2f.error.factorNotSupported.oneFactor":"Security Key (U2F) is not supported on this browser. Contact your admin for assistance.","u2f.error.other":"An unknown error has occured. Try again or select another factor.","u2f.error.other.oneFactor":"An unknown error has occured. Try again or c
4ontact your admin for assistance.","u2f.error.badRequest":"There was an error with the U2F request. Try again or select another factor.","u2f.error.badRequest.oneFactor":"There was an error with the U2F request. Try again or contact your admin for assistance.","u2f.error.unsupported":"The security key is unsupported. Select another factor.","u2f.error.unsupported.oneFactor":"The security key is unsupported. Contact your admin for assistance.","u2f.error.timeout":"You have timed out of the authentication period. Please try again.","verify.u2f.instructions":"Insert your Security Key. If it has a button or gold disk, tap\xa0it.","verify.u2f.instructionsBluetooth":"If you are using a Bluetooth Security Key, turn on your computer's Bluetooth and press the button.","verify.u2f.retry":"Retry","enroll.customFactor.subtitle":"Clicking below will redirect to MFA enrollment with {0}","enroll.customFactor.save":"Enroll","verify.customFactor.subtitle":"Clicking below will redirect to verification with {0}","verify.customFactor.subtitle.redirect":"Redirecting to {0}...","enroll.webauthn.biometric.title":"Set up security key or biometric authenticator","enroll.webauthn.save":"Enroll","enroll.webauthn.biometric.instructions":"Your browser will prompt to register a security key or biometric authenticator (Windows Hello, Touch ID, etc.). Follow the instructions to complete enrollment.","enroll.webauthn.biometric.instructions.edge":"Note: If you are enrolling a security key and Windows Hello or PIN is enabled, you will need to select '<b>Cancel</b>' in the prompt before continuing.","verify.webauthn.biometric.instructions":"Your browser or device will prompt you to verify with a security key or biometric authenticator. Follow the instructions to complete authentication.","webauthn.biometric.error.factorNotSupported":"Security key or biometric authenticator is not supported on this browser. Select another factor or contact your admin for assistance.","webauthn.biometric.error.factorNotSupported.oneFactor":"Security key or biometric authenticator is not supported on this browser. Contact your admin for assistance.","enroll.webauthn.instructions.noSupportForBiometric":"Note: Some browsers may not support biometric authenticators.","authfactor.webauthn.error":"You are currently unable to use a Security key or biometric authenticator. Try again.","passkeys.authfactor.webauthn.error":"You are currently unable to use a passkey. Try again.","enroll.totp.enterCode":"Enter code displayed from the application","enroll.totp.setupApp":"Launch {0} on your mobile device and select âAdd an accountâ. Scan the QR code to continue.","enroll.totp.setupGoogleAuthApp":'Launch {0}, tap the "+" icon, then select "Scan a QR code".',"enroll.totp.cannotScan":"Can't scan?","enroll.totp.aria.cannotScan":"Setup without scanning a QR code.","enroll.totp.refreshBarcode":"Refresh code","enroll.totp.cannotScanBarcode":"Can't scan QR code?","enroll.totp.manualSetupInstructions":"To set up manually enter your Okta Account username and then input the following in the Secret Key Field","enroll.totp.manualSetupInstructions.generic":"To set up manually enter your Account username and then input the following in the Secret Key Field","enroll.totp.manualSetupInstructions.specific":"To set up manually enter your {0} Account username and then input the following in the Secret Key Field","enroll.totp.sharedSecretInstructions":"Enter your Okta Account username and enter the following in the Secret Key Field","enroll.totp.sharedSecretInstructions.generic":"Enter your Account username and enter the following in the Secret Key Field","enroll.totp.sharedSecretInstructions.specific":"Enter your {0} Account username and enter the following in the Secret Key Field","enroll.totp.sendSms":"Send activation link via SMS","enroll.totp.sendEmail":"Send activation link via email","enroll.totp.setupManually":"Setup manually without push notification","enroll.totp.sharedSecretInstructions.aria.secretKey":"setup key {0}","enroll.totp.enrollViaEmail.title":"Activation email sent!","enroll.totp.enrollViaEmail.msg":"Open the email from your mobile device.","enroll.totp.enrollViaSms.title":"SMS sent!","enroll.totp.enrollViaSms.msg":"View the SMS on your mobile device.","recoveryChallenge.sms.title":"Enter verification code sent via SMS","recoveryChallenge.call.title":"Enter verification code received via Voice Call","mfa.factors.dropdown.title":"Select an authentication factor","mfa.factors.dropdown.sr.text":"Select Authentication Factor - {0} Factor Selected","mfa.duoSecurity.push":"Push â {0}","mfa.duoSecurity.sms":"SMS â {0}","mfa.duoSecurity.call":"Call â {0}","mfa.switch":"Switch Factor","mfa.challenge.title":"Enter your {0} passcode","mfa.challenge.orEnterCode":"Or enter code","mfa.challenge.totp.subtitle.multiple":"Enter code from any registered {0} device.","mfa.emailVerification.checkEmail":"To finish signing in, click the link in your email.","mfa.emailVerification.title":"Sign in using a link sent to your email.","mfa.emailVerification.subtitle":"Emails will be sent to {0}","mfa.emailVerification.otc.finish":"To finish signing in, enter the code which was emailed to you.","oktaverify.send":"Send Push","oktaverify.resend":"Re-send Push","oktaverify.sent":"Push sent!","oktaverify.rejected":"You have chosen to reject this login.","oktaverify.rejected.upgradeRequired.ios":"Verification failed because your Okta Verify version is no longer supported. To sign in, please update Okta Verify on the App Store, then try again.","oktaverify.rejected.upgradeRequired.android":"Verification failed because your Okta Verify version is no longer supported. To sign in, please update Okta Verify on Google Play, then try again.","oktaverify.timeout":"Your push notification has expired.","oktaverify.warning":"Haven't received a push notification yet? Try opening the Okta Verify App on your phone.","oktaverify.numberchallenge.instruction":'On your phone, tap <span class="challenge-number">{0}</span> on Okta Verify prompt to continue.',"oktaverify.numberchallenge.explain":"This extra step helps us make sure it's really you signing in.","primaryauth.title":"Sign In","primaryauth.username.placeholder":"Username","primaryauth.username.tooltip":"Username","primaryauth.password.placeholder":"Password","primaryauth.password.tooltip":"Password","primaryauth.submit":"Sign In","primaryauth.newUser.tooltip":"This is the first time you are connecting to {0} from this browser","primaryauth.newUser.tooltip.close":"Close","oktaVerify.description":"To access this resource, your organization requires you to sign in with Okta FastPass.","oktaVerify.appDescription":"To access {0}, your organization requires you to sign in with Okta FastPass.","oktaVerify.button":"Sign in with Okta FastPass","signinWithWebAuthn.button":"Sign in with security ke
4y or biometrics","idpDiscovery.email.placeholder":"Email","password.forgot.email.or.username.placeholder":"Email or Username","password.forgot.email.or.username.tooltip":"Email or Username","password.forgot.sendText":"Reset via SMS","password.forgot.sendEmail":"Reset via Email","password.forgot.call":"Reset via Voice Call","password.forgot.emailSent.title":"Email sent!","password.forgot.emailSent.desc":"Email has been sent to {0} with instructions on resetting your password.","password.forgot.question.title":"Answer Forgotten Password Challenge","password.forgot.question.submit":"Reset Password","password.forgot.code.notReceived":"Didn't receive a code? Reset via email","password.forgot.noFactorsEnabled":"No password reset options available. Please contact your administrator.","password.reset.title":"Reset your Okta password","password.reset.title.generic":"Reset your password","password.reset.title.specific":"Reset your {0} password","password.complexity.requirements":"Password requirements: {0}.","password.complexity.history":"Your password cannot be any of your last {0} password(s).","password.complexity.minAgeMinutes":"At least {0} minute(s) must have elapsed since you last changed your password.","password.complexity.minAgeHours":"At least {0} hour(s) must have elapsed since you last changed your password.","password.complexity.minAgeDays":"At least {0} day(s) must have elapsed since you last changed your password.","password.reset.verification":"Verify with one of the following factors to reset your password.","password.reset.revokeSessions":"Sign me out of all other devices.","password.complexity.length":"at least {0} characters","password.complexity.list.element":", {0}","password.complexity.lowercase":"a lowercase letter","password.complexity.uppercase":"an uppercase letter","password.complexity.number":"a number","password.complexity.symbol":"a symbol","password.complexity.no_username":"no parts of your username","password.complexity.no_first_name":"does not include your first name","password.complexity.no_last_name":"does not include your last name","password.complexity.adRequirements":"at least 3 of the following: lowercase letter, uppercase letter, number, symbol","password.complexity.maxConsecutiveRepeatingCharacters":"maximum {0} consecutive repeating characters","password.complexity.requirements.header":"Password requirements:","password.complexity.length.description":"At least {0} characters","password.complexity.lowercase.description":"A lowercase letter","password.complexity.uppercase.description":"An uppercase letter","password.complexity.number.description":"A number","password.complexity.symbol.description":"A symbol","password.complexity.no_username.description":"No parts of your username","password.complexity.no_first_name.description":"Does not include your first name","password.complexity.no_last_name.description":"Does not include your last name","password.complexity.history.one.description":"Password can't be the same as your last password","password.complexity.adRequirements.description":"At least 3 of the following: lowercase letter, uppercase letter, number, symbol","password.complexity.maxConsecutiveRepeatingCharacters.description":"Maximum {0} consecutive repeating characters","password.complexity.history.description":"Password can't be the same as your last {0} passwords","password.complexity.minAgeMinutes.description":"At least {0} minute(s) must have elapsed since you last changed your password","password.complexity.minAgeHours.description":"At least {0} hour(s) must have elapsed since you last changed your password","password.complexity.minAgeDays.description":"At least {0} day(s) must have elapsed since you last changed your password","password.expired.submit":"Change Password","password.expired.title":"Your Okta password has expired","password.expired.title.generic":"Your password has expired","password.expired.title.specific":"Your {0} password has expired","password.expiring.later":"Remind me later","password.expiring.title":"Your password will expire in {0} days","password.expiring.today":"Your password will expire later today","password.expiring.soon":"Your password is expiring soon","password.expiring.subtitle":"When password expires you may be locked out of Okta Mobile, mobile email, and other services.","password.expiring.subtitle.generic":"When password expires you will be locked out of your account.","password.expiring.subtitle.specific":"When password expires you will be locked out of your {0} account.","password.expired.custom.submit":"Go to {0}","password.expired.custom.subtitle":"This password is set on another website. Click the button below to go there and set a new password.","password.expiring.soon.subtitle.generic":"When password expires you will be locked out of your account. This password is set on another website. Click the button below to go there and set a new password.","password.expiring.soon.subtitle.specific":"When password expires you will be locked out of your {0} account. This password is set on another website. Click the button below to go there and set a new password.","hcaptcha.footer.label":"This site is protected by hCaptcha and its <$1>Privacy Policy</$1> and <$2>Terms of Service</$2> apply.","altcha.error.label":"Verification failed. Try again later.","altcha.expired.label":"Verification expired. Try again.","altcha.label.label":"I'm not a robot","altcha.loading.label":"Loading...","altcha.reload.label":"Reload","altcha.verify.label":"Verify","altcha.verificationRequired.label":"Verification required!","altcha.verified.label":"Verified","altcha.verifying.label":"Verifying...","altcha.waitAlert.label":"Verifying... please wait.","account.unlock.title":"Unlock account","account.unlock.email.or.username.placeholder":"Email or username","account.unlock.email.or.username.tooltip":"Email or username","account.unlock.sendText":"Send SMS","account.unlock.voiceCall":"Voice Call","account.unlock.sendEmail":"Send Email","account.unlock.emailSent.title":"Email sent!","account.unlock.emailSent.de
4sc":"Email has been sent to {0} with instructions on unlocking your account.","account.unlock.question.title":"Answer Unlock Account Challenge","account.unlock.question.submit":"Unlock Account","account.unlock.unlocked.title":"Account successfully unlocked!","account.unlock.unlocked.desc":"You can log in using your existing username and password.","account.unlock.code.notReceived":"Didn't receive a code? Unlock via email","account.unlock.noFactorsEnabled":"No unlock options available. Please contact your administrator.","account.unlock.authenticatorRequired.single":"To unlock your account, select the following authenticator.","account.unlock.authenticatorRequired.multiple":"To unlock your account, select one of the following authenticators.","contact.support":"If you didn't provide a secondary email address or don't have access to email, please contact your administrator at {0}","customauth.sign.in.with.label":"Sign in with {0}","socialauth.divider.text":"OR","socialauth.facebook.label":"Sign in with Facebook","socialauth.google.label":"Sign in with Google","socialauth.linkedin.label":"Sign in with LinkedIn","socialauth.microsoft.label":"Sign in with Microsoft","socialauth.apple.label":"Sign in with Apple","socialauth.github.label":"Sign in with GitHub","socialauth.gitlab.label":"Sign in with GitLab","socialauth.yahoo.label":"Sign in with Yahoo","socialauth.line.label":"Sign in with LINE","socialauth.paypal.label":"Sign in with PayPal","socialauth.paypal_sandbox.label":"Sign in with PayPal Sandbox","socialauth.salesforce.label":"Sign in with Salesforce","socialauth.amazon.label":"Sign in with Amazon","socialauth.yahoojp.label":"Sign in with Yahoo Japan","socialauth.discord.label":"Sign in with Discord","socialauth.adobe.label":"Sign in with Adobe","socialauth.orcid.label":"Sign in with ORCiD","socialauth.spotify.label":"Sign in with Spotify","socialauth.xero.label":"Sign in with Xero","socialauth.quickbooks.label":"Sign in with Quickbooks","socialauth.popup.title":"External Identity Provider User Authentication","authbutton.divider.text":"or","registration.signup.label":"Don't have an account?","registration.signup.text":"Sign up","registration.complete.title":"Verification email sent","registration.complete.confirm.text":"To finish signing in, check your email.","registration.form.title":"Create Account","registration.form.submit":"Register","registration.passwordComplexity.minLength":"At least {0} character(s)","registration.passwordComplexity.minLower":"At least {0} lowercase letter(s)","registration.passwordComplexity.minUpper":"At least {0} uppercase letter(s)","registration.passwordComplexity.minNumber":"At least {0} number(s)","registration.passwordComplexity.minSymbol":"At least {0} symbol(s)","registration.passwordComplexity.excludeUsername":"Does not contain part of username","registration.passwordComplexity.excludeAttribute":"Does not contain '{0}'","registration.required.fields.label":"* indicates required field","registration.default.callbackhook.error":"We could not process your registration at this time. Please try again later.","registration.error.userName.invalidEmail":"Invalid email address","registration.error.password.passwordRequirementsNotMet":"Password requirements were not met","registration.error.password.passwordRequirementsNotMet.prefix":"Password requirements were not met:","registration.error.userName.notUniqueWithinOrg":"An account with that {0} already exists","registration.error.notUniqueWithinOrg.Email":"A user with this Email already exists","registration.error.notUniqueWithinOrg.custom":"A user with this {0} already exists","registration.error.invalidLoginEmail.Email":"'Email' must be in the form of an email address","registration.error.invalidLoginEmail.custom":"'{0}' must be in the form of an email address","registration.error.doesNotMatchPattern.Email":"Provided value for property 'Email' does not match required pattern","registration.error.doesNotMatchPattern.custom":"Provided value for property '{0}' does not match required pattern","registration.error.generic":"There was an error creating your account. Please try registering again.","registration.error.request.not.completed":"Your request could not be completed. Try again later.","registration.model.validation.field.string.too.short":"Please enter something at least {0} characters long","registration.model.validation.field.string.too.long":"Please enter something shorter than {0} characters","piv.card":"PIV Card","piv.card.insert":"Please insert your PIV card and select the user certificate.","piv.card.error":"Certificate authentication failed. Contact your admin.","piv.card.error.empty":"No certificate selected. Choose a certificate and try again.","piv.card.error.invali
4d":"Certificate validation failed. Choose another certificate and try again.","piv.cac.card":"Sign in with PIV / CAC card","piv.cac.title":"PIV / CAC card","piv.cac.card.insert":"Please insert your PIV / CAC card and select the user certificate.","piv.cac.error":"There was an error signing in. Click the button below to try again.","unsupported.oneDrive.title":"Your OneDrive version is not supported","unsupported.oneDrive.desc":"Upgrade now by installing the OneDrive for Business Next Generation Sync Client to login to Okta","unsupported.oneDrive.action":"Learn how to upgrade","unsupported.cookies.title":"Cookies are required","unsupported.cookies.desc":"Cookies are disabled on your browser. Please enable Cookies and refresh this page.","unsupported.cookies.action":"Refresh","deviceTrust.sso.text":"Sign in to access company resources","deviceTrust.sso.subtitle.2":"Your company uses Okta Mobile to get you approved to access this app.","deviceTrust.sso.button":"Sign in with Okta Mobile","deviceTrust.sso.expire.title":"Oops let's get you back on track","deviceTrust.sso.redirectText":"Verifying your identity","deviceTrust.sso.expire.subtitle":"Unfortunately the steps required to sign in took longer than expected and your attempt timed out.","deviceTrust.sso.expire.button":"Sign in using Okta Mobile","deviceTrust.universalLink.fallback.getOktaMobile.title":"Get Okta Mobile","deviceTrust.universalLink.fallback.getOktaMobile.subtitle":"Go to the {0}AppStore{1}, {0}search{1} for {0}Okta Mobile{1} and tap on {0}GET{1} Okta Mobile. Once installed, sign in to Okta Mobile and follow the instructions to secure your device.","core.auth.factor.signedNonce.error.invalidDevice":"Your device or account was invali
4dated. If this is unexpected, contact your administrator for help.","core.auth.factor.signedNonce.error":"Your device or account was invalidated. Re-enroll your account on Okta Verify and try again.","user.fail.verifyIdentity":"Couldnât verify your identity","loopback.polling.cancel.link":"Cancel and take me to sign in","loopback.polling.cancel.link.with.form.error":"Take me to sign in","customUri.subtitle":"Launching Okta Verify...","customUri.content":'<div class="skinny-content"> If nothing prompts from the browser, <a href="#" id="launch-ov" class="link">click here</a> to launch Okta Verify, or make sure Okta Verify is installed.</div>',"customUri.title":'Click "Open Okta Verify" on the browser prompt',"customUri.required.content.prompt":"Didnât get a prompt?","customUri.required.content.download.title":"Donât have Okta Verify?","customUri.required.content.download.linkText":"Download here","customUri.required.content.button":"Launch Okta Verify","universalLink.title":"Sign in with Okta FastPass","universalLink.content":"If Okta Verify did not open automatically, tap Open Okta Verify.","appLink.title":"Sign in with Okta FastPass","appLink.content":"If Okta Verify did not open automatically, tap Open Okta Verify.","oktaVerify.open.button":"Open Okta Verify","oktaVerify.reopen.button":"Reopen Okta Verify","consent.required.text":"<b>{0}</b> would like to access:","consent.required.description":"By clicking Allow Access, you allow the actions listed above.","consent.required.termsOfService":"Terms of Service","consent.required.privacyPolicy":"Privacy Policy","consent.required.consentButton":"Allow Access","consent.required.cancelButton":"Don't Allow","granular.consent.scopes.title":"<$1>{0}</$1> <$2>wants to access your account</$2>","granular.consent.scopes.description":"Allowing access will share","admin.consent.group.user.group":"User and groups","admin.consent.group.resource.policy":"Resource and policies","admin.consent.group.hook":"Hooks","admin.consent.group.system":"System","polling.title":"There are too many users trying to sign in right now. We will automatically retry in {0} seconds.","poll.form.title":"Unable to complete your request","poll.form.message":"We will automatically retry in <$1>{0}</$1> seconds.","cert.authentication.title":"Certificate authentication","common.logo.alt":"aria logo","oie.authenticator.enroll.error.fail":"Unable to enroll authenticator. Try again.","oie.authenticator.verify.error.fail":"Unable to verify authenticator. Try again.","oie.configuration.error":"Something went wrong. Potential misconfiguration detected. Please contact support.","oie.auth.logo.aria.label":"Authenticator logo","oie.challenge.answer.showAnswer":"Show answer","oie.challenge.answer.hideAnswer":"Hide answer","oie.form.field.optional":"Optional","oie.form.field.optional.description":"Fields are required unless marked optional.","oie.password.label":"Password","oie.password.newPasswordLabel":"New password","oie.password.authenticator.description":"Choose a password for your account","oie.password.challenge.title":"Verify with your password","oie.password.enroll.title":"Set up password","oie.password.passwordLabel":"Enter password","oie.password.confirmPasswordLabel":"Re-enter password","oie.password.showPassword":"Show password","oie.password.showConfirmPassword":"Show re-entered password","oie.password.hidePassword":"Hide password","oie.password.hideConfirmPassword":"Hide re-entered password","oie.password.reset.verification":"Verify with one of the following security methods to reset your password.","idx.password.expiring.message":"When your password expires, you will have to change your password before you can login to your {0} account.","oie.password.incorrect.message":"Password is incorrect","oie.selfservice.reset.password.not.allowed":"Reset password is not allowed at this time. Please contact support for assistance.","password.common":"This password was found in a list of commonly used passwords. Please try another password.","idx.recovery.completed":"You can now sign in with your existing username and new password.","oie.phone.label":"Phone","oie.phone.authenticator.de
4scription":"Verify with a code sent to your phone","oie.phone.enroll.sms.label":"SMS","oie.phone.enroll.voice.label":"Voice call","oie.phone.enroll.title":"Set up phone authentication","oie.phone.enroll.call.subtitle":"Enter your phone number to receive a verification code via voice call.","oie.phone.enroll.sms.subtitle":"Enter your phone number to receive a verification code via SMS.","oie.phone.sms.primaryButton":"Receive a code via SMS","oie.phone.sms.secondaryButton":"Receive an SMS instead","oie.phone.call.primaryButton":"Receive a code via voice call","oie.phone.call.secondaryButton":"Receive a voice call instead","oie.phone.verify.sms.resendText":"Haven't received an SMS?","oie.phone.verify.sms.codeSentText":"A code was sent to","oie.phone.verify.sms.sendText":"Send a code via SMS to","oie.phone.verify.call.sendText":"Send a code via voice call to","oie.phone.verify.call.resendText":"Haven't received a call?","oie.phone.verify.call.resendLinkText":"Call again","oie.phone.verify.sms.resendLinkText":"Send again","oie.phone.verify.enterCodeText":"Enter the code below to verify.","oie.phone.verify.title":"Verify with your phone","oie.phone.alternate.title":"your phone","oie.phone.carrier.charges":"Carrier messaging charges may apply","oie.phone.invalid":"Invalid Phone Number.","oie.phone.verify.sms.sendText.with.phone.with.nickname":"Send a code via SMS to <$1>{0}</$1> <$2>({1})</$2>.","oie.phone.verify.call.sendText.with.phone.with.nickname":"Send a code via voice call to <$1>{0}</$1> <$2>({1})</$2>.","oie.phone.verify.sms.sendText.with.phone.without.nickname":"Send a code via SMS to <$1>{0}</$1>.","oie.phone.verify.call.sendText.with.phone.without.nickname":"Send a code via voice call to <$1>{0}</$1>.","oie.phone.verify.sms.sendText.without.phone":"Send a code via SMS to your phone.","oie.phone.verify.call.sendText.without.phone":"Send a code via voice call to your phone.","oie.phone.verify.sms.codeSentText.with.phone.with.nickname":"A code was sent to <$1>{0}</$1> <$2>({1})</$2>. Enter the code below to verify.","oie.phone.verify.mfa.calling.with.phone.with.nickname":"Calling <$1>{0}</$1> <$2>({1})</$2>. Enter the code below to verify.","oie.phone.verify.sms.codeSentText.with.phone.without.nickname":"A code was sent to <$1>{0}</$1>. Enter the code below to verify.","oie.phone.verify.mfa.calling.with.phone.without.nickname":"Calling <$1>{0}</$1>. Enter the code below to verify.","oie.phone.verify.sms.codeSentText.without.phone":"A code was sent to your phone. Enter the code below to verify.","oie.phone.verify.mfa.calling.without.phone":"Calling your phone. Enter the code below to verify.","oie.email.label":"Email","oie.email.authenticator.description":"Verify with a link or code sent to your email","oie.email.mfa.title":"Verify with your email","oie.email.challenge.mfa.title":"Get a verification email","oie.email.verify.primaryButton":"Send me an email","oie.email.verify.subtitle.text.with.email":'Send a verification email to <$1>{0}</$1> by clicking on "Send me an email".',"oie.email.verify.subtitle.text.with.email.and.secondary.email":'Send a verification email to <$1>{0}</$1> and <$2>{1}</$2> by clicking on "Send me an email".',"oie.email.verify.subtitle.text.without.email":'Send a verification email by clicking on "Send me an email".',"oie.email.verify.alternate.magicLinkToEmailAddress":"We sent an email to <$1>{0}</$1>. ","oie.email.verify.alternate.magicLinkToEmailAddress.with.secondary.email":"We sent an email to <$1>{0}</$1> and <$2>{1}</$2>. ","oie.email.verify.alternate.magicLinkToYourEmail":"We sent you a verification email. ","oie.email.verify.alternate.instructions":"Click the verification link in your email to continue or enter the code below.","oie.email.verify.alternate.show.verificationCode.text":"Enter a verification code instead","oie.email.verify.alternate.verificationCode.instructions":"Enter the verification code in the text box.","oie.email.enroll.subtitle":"Please check your email and enter the code below.","oie.email.return.link.expired.title":"Verify with your email","oie.profile.additional.title":"Additional Profile information","oie.profile.additional.secondemail.subtitle":"Use a second email to <$1> recover your account </$1>
4 in case you become locked out. This email must be verified after setup.","signinWithPasskeys.button":"Sign in with a passkey","signin.passkeys.error":"Could not sign in with a passkey. Try again, or sign in another way to add a passkey to your account.","signin.passkeys.error.NotSupportedError":"This browser doesn't support passkeys. Use a supported browser or sign in another way.","signin.passkeys.error.SecurityError":"The relying party ID is not a registrable domain suffix of, nor equal to the current domain. Subsequently, an attempt to fetch the .well-known/webauthn resource of the claimed RP ID failed.","oie.webauthn.label":"Security Key or Biometric Authenticator","oie.webauthn.passkeysRebrand.passkeys.label":"Passkeys","oie.webauthn.description":"Use a security key or a biometric authenticator to sign in","oie.webauthn.passkeysRebrand.passkeys.description":"Use a passkey to sign in with biometrics or a security key.","oie.enroll.webauthn.title":"Set up security key or biometric authenticator","oie.enroll.webauthn.passkeysRebrand.passkeys.title":"Set up a passkey","oie.enroll.webauthn.passkeysRebrand.custom.title":"Set up {0}","oie.enroll.webauthn.instructions":"You will be prompted to register a security key or biometric authenticator (Windows Hello, Touch ID, Face ID, etc.). Follow the instructions to complete set up.","oie.enroll.webauthn.passkeysRebrand.instructions":"You will be prompted to register a passkey. Follow the instructions to complete set up.","oie.enroll.webauthn.uv.required.instructions":"Biometric verification or a PIN is required to setup this authenticator.","oie.enroll.webauthn.instructions.edge":"Note: If you are enrolling a security key and Windows Hello or PIN is enabled, you will need to select 'Cancel' in the prompt before continuing.","oie.enroll.webauthn.save":"Set up","oie.webauthn.error.not.supported":"Security key or biometric authenticator is not supported on this browser. Contact your admin for assistance.","oie.webauthn.passkeysRebrand.error.not.supported":"Passkeys are not supported on this browser. Contact your admin for assistance.","oie.webauthn.error.invalidPasskey":"Invalid passkey.","oie.verify.webauth.title":"Verify with Security Key or Biometric Authenticator","oie.verify.webauth.passkeysRebrand.passkeys.title":"Verify with a passkey","oie.verify.webauth.passkeysRebrand.custom.title":"Verify with {0}","oie.verify.webauthn.instructions":"You will be prompted to use a security key or biometric verification (Windows Hello, Touch ID, etc.). Follow the instructions to complete verification.","oie.verify.webauthn.passkeysRebrand.instructions":"You will be prompted to use a passkey. Follow the instructions to complete verification.","oie.verify.webauthn.instructions.additional":"Additional instructions from your administrator:","oie.verify.webauthn.uv.required.instructions":"Biometric verification or a PIN is required to sign in with this authenticator.","oie.verify.webauthn.cant.verify":"Can't verify?","oie.verify.webauthn.cant.verify.biometric.authenticator.title":"Are you trying to use a biometric authenticator?","oie.verify.webauthn.cant.verify.biometric.authenticator.description1":"Biometric authenticators (fingerprint, face recognition, PIN) will only work on the same device on which they were set up.","oie.verify.webauthn.cant.verify.biometric.authenticator.description2":"If available, set up another security method on the device you used to set up your biometric authenticator.","oie.verify.webauthn.cant.verify.security.key.title":"Are you trying to use a security key?","oie.verify.webauthn.cant.verify.security.key.description":"If you have set up a security key, insert it in a USB port when prompted by the browser and tap on the button or gold disk. Security keys can work on multiple devices.","oie.verify.webauthn.cant.verify.enrollment.step1":"Open your Okta Dashboard (e.g. yourcompany.okta.com) on the device you used to setup your security key or biometric authenticator","oie.verify.webauthn.passkeysRebrand.cant.verify.enrollment.step1":"Open your Okta Dashboard (e.g. yourcompany.okta.com) on the device you used to setup your passkey","oie.verify.webauthn.cant.verify.enrollment.step2":"Go to Settings > Security Methods","oie.verify.webauthn.cant.verify.enrollment.step3":'On Okta Verify, click "Set up"',"oie.verify.webauthn.cant.verify.enrollment.step4":"Scan the QR code using Okta Verify and follow instructions to finish enrolling your account","oie.enroll.webauthn.rk.link":'If you haven\'t set up your security ke
4y or biometric authentication, you can complete the process after you sign in using <a href="#" class="setup-webauthn-residentkey-link">this link</a>.',"oie.select.authenticator.verify.email.label":"Select Email.","oie.select.authenticator.verify.email.with.email.label":"Select Email - {0}.","oie.select.authenticator.verify.password.label":"Select Password.","oie.select.authenticator.verify.phone.label":"Select Phone.","oie.select.authenticator.verify.phone.with.phone.label":"Select Phone - {0}.","oie.select.authenticator.verify.webauthn.label":"Select Security Key or Biometric Authenticator.","oie.select.authenticator.verify.webauthn.passkeysRebrand.passkeys.label":"Select a passkey.","oie.select.authenticator.verify.webauthn.passkeysRebrand.custom.label":"Select {0}.","oie.select.authenticator.verify.security.question.label":"Select Security Question.","oie.select.authenticator.okta_verify.totp.label":"Select to enter a code from the Okta Verify app.","oie.select.authenticator.okta_verify.push.label":"Select to get a push notification to the Okta Verify app.","oie.select.authenticator.okta_verify.signed_nonce.label":"Select Okta Verify.","oie.select.authenticator.verify.okta_verify.label":"Select Okta Verify.","oie.select.authenticator.verify.named.authenticator.label":"Select {0}.","oie.select.authenticator.enroll.email.label":"Set up Email.","oie.select.authenticator.enroll.password.label":"Set up Password.","oie.select.authenticator.enroll.phone.label":"Set up Phone.","oie.select.authenticator.enroll.webauthn.label":"Set up Security Key or Biometric Authenticator.","oie.select.authenticator.enroll.webauthn.passkeysRebrand.passkeys.label":"Set up a passkey.","oie.select.authenticator.enroll.webauthn.passkeysRebrand.custom.label":"Set up {0}.","oie.select.authenticator.enroll.security.question.label":"Set up Security Question.","oie.select.authenticator.enroll.okta_verify.authenticator.label":"Set up Okta Verify.","oie.select.authenticator.enroll.named.authenticator.label":"Set up {0}.","oie.security.question.label":"Security Question","oie.security.question.enroll.title":"Set up security question","oie.security.question.challenge.title":"Verify with your Security Question","oie.security.question.questionKey.label":"Choose a security question","oie.security.question.createQuestion.label":"Create my own security question","oie.security.question.authenticator.description":"Choose a security question and answer that will be used for signing in","securityQuestion.answer.tooShort.arg":"The security question answer must be at least {0} characters in length","oie.okta_verify.label":"Okta Verify","oie.enroll.okta_verify.setup.subtitle":"To continue, you'll need an Okta Verify account on this device.","oie.enroll.okta_verify.setup.download":"If you don't have Okta Verify installed, <$1>download the app</$1>.","oie.enroll.okta_verify.setup.openOv":"Open Okta Verify and follow the steps to add your account.","oie.enroll.okta_verify.setup.signInUrl":"When prompted, choose Sign In, then enter the sign-in URL:","oie.enroll.okta_verify.setup.instructions":"Follow the instructions to set up Okta Verify on this device, then return here and refresh this page.","oie.okta_verify.authenticator.description":"Okta Verify is an authenticator app, installed on your phone or computer, used to prove your identity","oie.enroll.okta_verify.setup.title":"Set up Okta Verify","oie.enroll.okta_verify.setup.email.title":"Check your email","oie.enroll.okta_verify.setup.sms.title":"Check your text messages","oie.enroll.okta_verify.setup.skipAuth.subtitle":"To set up Okta Verify on additional devices, you can copy an existing Okta Verify account onto a new device.","oie.enroll.okta_verify.setup.skipAuth.openOv":"Open Okta Verify on any of your other Okta Verify devices (<$1>{0}</$1>).","oie.enroll.okta_verify.setup.skipAuth.openOv.suchAs":"Open Okta Verify on any of your other Okta Verify devices (Such as your <$1>{0}</$1>).","oie.enroll.okta_verify.setup.skipAuth.selectAccount":"In the app, select your account.","oie.enroll.okta_verify.setup.skipAuth.addAccount":"Choose <$1>Add Account to Another Device.</$1>","oie.enroll.okta_verify.setup.skipAuth.followInstruction":"Follow the rest of the instructions shown in Okta Verify.","oie.enroll.okta_verify.setup.skipAuth.canBeClosed":"This screen can be closed at any time.","oie.enroll.okta_verify.setup.customUri.makeSureHaveOVToContinue":"To continue, make sure you have the Okta Verify app.","oie.enroll.okta_verify.setup.customUri.setup":"Once Okta Verify is installed, return to this page and tap <$1>Set up Okta Verify</$1>.","oie.enroll.okta_verify.setup.customUri.prompt":'Click <$1>"Open Okta Verify"</$1> on the browser prompt to set up Okta Verify.',"oie.enroll.okta_verify.setup.customUri.noPrompt":"<$1>Didn't see the prompt?</$1>","oie.enroll.okta_verify.setup.customUri.makeSureHaveOV":"Make sure you have Okta Verify installed.","oie.enroll.okta_verify.setup.customUri.orMobile":"Or <$
41>set up Okta Verify on another mobile device</$1>","oie.enroll.okta_verify.setup.customUri.orOnMobile":"Or <$1>set up Okta Verify on a mobile device</$1>","oie.enroll.okta_verify.select.channel.description":"Which option do you want to try?","oie.enroll.okta_verify.select.channel.qrcode.label":"Scan a QR code","oie.enroll.okta_verify.select.channel.subtitle":"How would you like to set up Okta Verify?","oie.enroll.okta_verify.select.channel.email.label":"Email me a setup link","oie.enroll.okta_verify.select.channel.sms.label":"Text me a setup link","oie.enroll.okta_verify.select.channel.ovOnThisDevice":"Or <$1>set up Okta Verify on this device</$1>","oie.enroll.okta_verify.select.channel.title":"More options","oie.enroll.okta_verify.select.channel.title.updated":"Set up Okta Verify on another mobile device","oie.enroll.okta_verify.channel.email.label":"Email","oie.enroll.okta_verify.enroll.channel.email.title":"Set up Okta Verify via email link","oie.enroll.okta_verify.enroll.channel.email.subtitle":"Make sure you can access the email on the receiving device","oie.enroll.okta_verify.enroll.channel.sms.title":"Set up Okta Verify via SMS","oie.enroll.okta_verify.channel.email.description":"Make sure you can access the email on your mobile device.","oie.enroll.okta_verify.channel.sms.description":"Make sure you can access the text on your mobile device.","oie.enroll.okta_verify.channel.sms.description.updated":"Make sure you can access the text on the receiving device","oie.enroll.okta_verify.qrcode.title":"Set up Okta Verify via QR code","oie.enroll.okta_verify.qrcode.step1":"On your mobile device, download the Okta Verify app from the App Store (iPhone and iPad) or Google Play (Android devices).","oie.enroll.okta_verify.qrcode.step1.updated":"On your other device, download the Okta Verify app from the App Store\xae (iPhone\xae and iPad\xae) or on Google Play (Android\xae devices).","oie.enroll.okta_verify.qrcode.step2":"Open the app and follow the instructions to add your account","oie.enroll.okta_verify.qrcode.step3.updated":"When prompted, tap <$1>Scan a QR code</$1>, then scan the QR code below:","oie.enroll.okta_verify.qrcode.step3":"When prompted, tap Scan a QR code, then scan the QR code below:","oie.enroll.okta_verify.qrcode.cannotScan":"Can't scan?","oie.enroll.okta_verify.switch.channel.link.text":'Or <a href="#" class="switch-channel-link">try a different way</a> to set up Okta Verify.',"oie.enroll.okta_verify.email.info":'We sent an email to <span class="strong">{0}</span> with an Okta Verify setup link. To continue, open the link on your mobile device.',"oie.enroll.okta_verify.email.info.updated":"We sent an email to <$1>{0}</$1> with an Okta Verify setup link. To continue, open the link on your receiving device.","oie.enroll.okta_verify.email.notReceived":'Havenât received an email? Check your spam folder or <a href="#" class="resend-link">send again</a>',"oie.enroll.okta_verify.sms.info":'We sent an SMS to <span class="strong">{0}</span> with an Okta Verify setup link. To continue, open the link on your mobile device.',"oie.enroll.okta_verify.sms.info.updated":"We sent an SMS to <$1>{0}</$1> with an Okta Verify setup link. To continue, open the link on your receiving device.","oie.enroll.okta_verify.sms.notReceived":'Havenât received an SMS? <a href="#" class="resend-link">Send again</a>',"oie.enroll.okta_verify.setupLink":"Send me the setup link","oie.okta_verify.totp.title":"Enter a code","oie.okta_verify.totp.enterCodeText":"Enter code from Okta Verify app","oie.okta_verify.push.title":"Get a push notification","oie.okta_verify.push.sent":"Push notification sent","oie.okta_verify.push.sent.respond_to_continue":"Respond on your mobile device to continue.","oie.okta_verify.push.resend":"Resend push notification","oie.okta_verify.sendPushButton":"Send push","oie.okta_verify.signed_nonce.label":"Use Okta FastPass","oie.okta_verify.enroll.force.upgrade.title":"Update Okta Verify","oie.authenticator.app.non_fips_compliant_enrollment_device_incompatible":"The device used to set up Okta Verify does not meet your organizationâs security requirements because it is not FIPS compliant. Contact your administrator for help.","oie.authenticator.app.non_fips_compliant_enrollment_app_update_required":"The Okta Verify version on the device used does not meet your organizationâs security requirements. To add your account, update Okta Verify to the latest version, then try again.","oie.authenticator.app.method.push.verify.enable.biometrics":"Your response was received, but your organization requires biometrics. Make sure your device supports biometrics, Okta Verify is up-to-date and biometrics are enabled for your account in Okta Verify, then try again.","oie.authenticator.app.method.push.verify.enable.biometrics.title":"Enable biometrics in Okta Verify","oie.authenticator.app.method.push.verify.enable.biometrics.description":"Your response was received, but your organization requires biometrics. Make sure you meet the following requirements, then try again:","oie.authenticator.app.method.push.verify.enable.biometrics.point1":"Your device supports biometrics","oie.authenticator.app.method.push.verify.enable.biometrics.point2":"Okta Verify is up-to-date","oie.authenticator.app.method.push.verify.enable.biometrics.point3":"In Okta Verify, biometrics are enabled for your account","oie.authenticator.app.method.push.enroll.enable.biometrics":"Your organization requires biometrics. To proceed, ensure your device supports biometrics, then add your account and enable biometrics when prompted.","oie.authenticator.app.method.push.enroll.enable.biometrics.title":"Enable biometrics to add an account in Okta Verify","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics":"Your response was received, but your organization requires biometrics. Make sure your device supports biometrics, Okta Verify is up-to-date and biometrics are enabled for your account in Okta Verify, then try again.","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.title":"Enable biometrics in Okta Verify","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.description":"Your response was received, but your organization requires biometrics. Make sure you meet the following requirements, then try again:","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.point1":"Your device supports biometrics","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.point2":"Okta Verify is up-to-date","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.point3":"In Okta Verify, biometrics are enabled for your account","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.mobile":"Your response was received, but your organization requires biometrics. Make sure your device supports biometrics, Okta Verify is up-to-date and biometrics are enabled for your account in Okta Verify, then try again.","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.desktop":"Your response was received, but your organization requires biometrics. Make sure your device supports biometrics, Okta Verify is up-to-date, biometrics are enabled for your account in Okta Verify and your device's biometric sensors are accessible, then try again.","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.title":"Biometrics needed for Okta Verify","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.description":"Your response was received, but your organization requires biometrics. Make sure you meet the following requirements, then try again:","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point1":"Your device supports biometrics","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point2":"Okta Verify is up-to-date","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point3":"In Okta Verify, biometrics are enabled for your account","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point4":"Your device's biometric sensors are accessible","oie.google_authenticator.label":"Google Authenticator","oie.google_authenticator.authenticator.de
4scription":"Enter a temporary code generated from the Google Authenticator app.","oie.enroll.google_authenticator.setup.title":"Set up Google Authenticator","oie.enroll.google_authenticator.scanBarcode.title":"Scan QR code","oie.enroll.google_authenticator.scanBarcode.description":'Launch Google Authenticator, tap the "+" icon, then select "Scan a QR code".',"oie.enroll.google_authenticator.scanBarcode.cannotScan":"Can't scan?","oie.enroll.google_authenticator.cannotScanBarcode.title":"Can't scan QR code?","oie.enroll.google_authenticator.manualSetupInstructions":"To set up manually enter your Okta Account username and then input the following in the Secret Key Field","oie.enroll.google_authenticator.enterCode.title":"Enter code displayed from application","oie.verify.google_authenticator.otp.title":"Verify with Google Authenticator","oie.verify.google_authenticator.otp.description":"Enter the temporary code generated in your Google Authenticator app","oie.google_authenticator.otp.enterCodeText":"Enter code","oie.verify.custom_otp.title":"Verify with {0}","oie.verify.custom_otp.description":"Enter the code generated on your authenticator and verify.","oie.custom_otp.description":"Enter a temporary code generated from an authenticator device.","oie.custom_otp.authenticator.default.vendorName":"Custom OTP Authenticator","oie.custom_otp.verify.passcode.label":"Enter code","oie.verify.custom_app.title":"Verify with {0}","oie.custom_app.push.sent":"Push notification sent","oie.custom_app.push.resend":"Resend push notification","oie.custom_app.push.warning":"Haven't received a push notification yet? Try opening {0} on your phone.","oie.authenticator.custom_app.method.push.verify.enable.biometrics":"Your response was received, but your organization requires biometricsâlike a fingerprint or facial scanâfor access. Make sure your device meets the following requirements, then try again:","oie.authenticator.custom_app.method.push.verify.enable.biometrics.title":"Enable biometrics in {0}","oie.authenticator.custom_app.method.push.verify.enable.biometrics.description":"Your response was received, but your organization requires biometricsâlike a fingerprint or facial scanâfor access. Make sure your device meets the following requirements, then try again:","oie.authenticator.custom_app.method.push.verify.enable.biometrics.point1":"Your device supports biometrics","oie.authenticator.custom_app.method.push.verify.enable.biometrics.point2":"{0} is up-to-date","oie.authenticator.custom_app.method.push.verify.enable.biometrics.point3":"In {0}, biometrics are enabled for your account","oie.custom_app.sendPushButton":"Send push","oie.custom_app.push.title":"Get a push notification","oie.on_prem.authenticator.description":"Verify by entering a code generated by {0}.","oie.on_prem.authenticator.default.vendorName":"Custom On-prem Authenticator","oie.on_prem.enroll.title":"Set up {0}","oie.on_prem.verify.title":"Verify with {0}","oie.numberchallenge.warning":"Haven't received a push notification yet? Try opening the Okta Verify app on your device, or <$1>resend the push notification</$1>.","oie.numberchallenge.instruction":"On your mobile device, open the Okta Verify prompt, then tap <$1>{0}</$1> in Okta Verify to continue.","oie.numberchallenge.force.upgrade.title":"Update Okta Verify","oie.authenticator.app.method.push.force.upgrade.number_challenge":"Your response was received, but your Okta Verify version is no longer supported by your organization. To verify your identity with push notifications, update Okta Verify to the latest version, then try again.","oie.rsa.authenticator.description":"Verify by entering a code generated by RSA SecurID","oie.duo.authenticator.description":"Verify your identity using Duo Security.","oie.duo.enroll.title":"Set up Duo Security","oie.duo.verify.title":"Verify with Duo Security","oie.duo.iFrameError":"Error loading Duo. Try again or contact your admin for assistance.","oie.authenticator.duo.error":"We were unable to verify with Duo. Try again.","oie.idp.authenticator.description":"Redirect to verify with {0}.","oie.idp.enroll.title":"Set up {0}","oie.idp.enroll.description":"You will be redirected to enroll in {0}","oie.idp.challenge.title":"Verify with {0}","oie.idp.challenge.description":"You will be redirected to verify with {0}","idx.identity.provider.auth.error":"There was a problem signing you into your identity provider. Please contact your administrator for help.","oie.idv.idp.title":"Verify your identity with {0}","oie.idv.idp.desc":"Verify your identity with {0} to continue and share your verification results with Okta. You may need a valid government-issued ID.","oie.idv.idp.desc.termsOfUse":"{0}'s <$1>Terms of Use</$1> and <$2>Privacy Policy</$2> will apply to {0}'s verification of your identity. ","oie.idv.idp.desc.agreement":'By clicking "Continue", I agree that {0} will share my verification results with Okta.',"oie.idv.persona":"Persona","oie.idv.clear":"Clear","oie.idv.incode":"Incode","oie.idv.customIDV":"Custom IDV","oie.symantecVip.authenticator.de
4scription":"Verify by entering a temporary code from the {0} app.","oie.symantecVip.enroll.title":"Set up {0}","oie.symantecVip.enroll.description":"From the {0} app, enter your credential ID and two consecutive generated codes","oie.symantecVip.challenge.title":"Verify with {0}","oie.symantecVip.challenge.description":"Enter the generated security code from the {0} app.","oie.symantecVip.verify.passcode.label":"Enter security code","oie.yubikey.label":"YubiKey Authenticator","oie.yubikey.authenticator.description":"Verify your identity using YubiKey","oie.yubikey.enroll.title":"Set up YubiKey","oie.yubikey.challenge.title":"Verify with YubiKey","oie.yubikey.description":"Use your YubiKey to insert a verification code.","oie.yubikey.passcode.label":"Insert then tap your YubiKey","oie.custom.app.authenticator.title":"Get a push notification","oie.custom.app.authenticator.description":"{0} is an authenticator app, installed on your phone, used to prove your identity","oie.smartcard.authenticator.description":"Use a physical smart card, such as PIV or CAC, to sign in","oie.tac.label":"Temporary Access Code","oie.verify.tac.title":"Verify with Temporary Access Code","oie.verify.tac.description":"Enter the code provided by your administrator. Contact your administrator if you need a new code.","oie.tac.authenticator.description":"Enter a code provided by your administrator to sign in","oie.select.authenticators.enroll.title":"Set up security methods","oie.select.authenticators.enroll.subtitle":"Security methods help protect your account by ensuring only you have access.","oie.select.authenticators.enroll.subtitle.custom":"Security methods help protect your {0} account by ensuring only you have access.","oie.setup.required":"Set up required","oie.setup.optional":"Set up optional","oie.setup.required.now":"Required now","oie.setup.required.soon":"Required soon","oie.setup.optional.short":"Optional","oie.setup.required.soon.description":"When the deadline passes, you wonât be able to sign in until you complete setup.","oie.setup.remind.me.later":"Remind me later","oie.optional.authenticator.button.title":"Continue","oie.verify.authenticator.button.text":"Select","oie.enroll.authenticator.button.text":"Set up","oie.enroll.authenticator.usage.text.access.recovery":"Used for access or recovery","oie.enroll.authenticator.usage.text.recovery":"Used for recovery","oie.enroll.authenticator.usage.text.access":"Used for access","oie.select.authenticators.verify.title":"Verify it's you with a security method","oie.select.authenticators.verify.subtitle":"Select from the following options","oie.success.text.signingIn":"Signing in","oie.success.text.signingIn.with.ellipsis":"Signing in...","oie.success.text.signingIn.with.appName":"Signing in to {0}","oie.success.text.signingIn.with.appName.android.ov.enrollment":'To continue, tap "Open Okta Verify"',"oie.success.text.signingIn.with.appName.and.identifier":"Signing in to {0} as {1}","oie.go.back":"Go back","oie.enroll.switch.authenticator":"Return to authenticator list","oie.enroll.skip.setup":"Skip set up","oie.enroll.skip.profile":"Skip Profile","oie.verification.switch.authenticator":"Verify with something else","oie.remember":"Keep me signed in","oie.try.again":"Try again","enroll.title.oda":"Download Okta Verify","enroll.title.oda.with.account":"Additional setup required to use Okta FastPass","enroll.title.oda.without.account":"Set up an Okta Verify account","enroll.title.mdm":"Additional setup required","enroll.subtitle.fastpass":"On this device, do you already have an Okta Verify account for {0}?","enroll.option.noaccount.fastpass":"No, I donât have an account","enroll.option.account.fastpass":"Yes, I already have an account","enroll.explanation.p1":"To sign in using Okta Verify, you will need to set up Okta Verify on this device.","enroll.explanation.p2":'In the app, follow the instructions to add an organizational account. When prompted, choose <span class="semi-strong">Sign In</span>, then enter the <span class="semi-strong">sign-in URL</span>:',"enroll.oda.android.step1":"On Google Play, download the Okta Verify app.","enroll.oda.step1":"Open Okta Verify and follow the steps to add your account.","enroll.oda.step2":"When prompted, choose Sign In, then enter the sign-in URL:","enroll.oda.step3":"Download the Okta Verify app.","enroll.oda.step6":"Finish setting up your account in Okta Verify, then try accessing this app again.","enroll.oda.with.account.explanation":"Okta FastPass is a security method that can sign you in without needing your username.","enroll.oda.with.account.subtitile1":"Already have Okta FastPass enabled for your account?","enroll.oda.with.account.subtitile2":"Need to set up Okta FastPass for your account?","enroll.oda.with.account.step1":"Make sure your Okta Verify is up-to-date, then try signing in again.","enroll.oda.with.account.step2":"If your device has a work profile, make sure you are signing in from the same profile that Okta Verify is installed in.","enroll.oda.with.account.step3":"On certain browsers and applications, Okta FastPass is not supported.","enroll.oda.with.account.step4":"On this device, open the Okta Verify app.","enroll.oda.with.account.step5":"On the list of accounts, tap your account for {0}.","enroll.oda.with.account.step6":"Under the âOkta FastPassâ section, tap Setup, then follow the instructions.","enroll.oda.with.account.step7":"After your setup is complete, return here to try signing in again.","enroll.oda.without.account.explanation":"To sign in with Okta FastPass, youâll need to set up Okta Verify on this device.","enroll.oda.without.account.step1":'If you donât have Okta Verify installed, <a href="{0}" target="_blank" class="download-ov-link" id="download-ov">download the app.</a>',"enroll.oda.without.account.step4":"Finish setting up your account in Okta Verify, then try signing in again.","enroll.appleStore":"the App Store","enroll.googleStore":"Google Play","enroll.copy.ios":"Apple\xae, App Store, and the Apple logo are trademarks of Apple Inc.","enroll.copy.android":"Google Play and the Google Play logo are trademarks of Google LLC.","enroll.explanation.mdm":"To access this app, your device needs to meet your organization's security requirements. Follow the instructions below to continue.","enroll.oda.org.copyLink":"Copy sign-in URL to clipboard","enroll.oda.org.copyLink.success":"Sign-in URL copied.","enroll.mdm.copyLink":"Copy link to clipboard","enroll.mdm.copyLink.success":"Link copied.","enroll.mdm.step.copyLink":"Tap the C
4opy Link button below.","enroll.mdm.step.pasteLink":"On this device, open your browser, then paste the copied link into the address bar.","enroll.mdm.step.followInstructions":"Follow the instructions in your browser to set up <$1>{0}</$1>.","enroll.mdm.step.relogin":"Logout and re-login and then try accessing the app again.","oie.safe.mode.title":"Authenticator set up unavailable","idx.error.server.safe.mode.enrollment.unavailable":"Set up is temporarily unavailable due to server maintenance. Try again later.","oie.primaryauth.submit":"Sign in","oie.registration.form.title":"Sign up","oie.registration.form.submit":"Sign Up","oie.registration.form.update.submit":"Submit","oie.registration.form.customize.label":"{0}","oie.registration.form.customize.buttonLabel":"{0}","oie.user.profile.login":"Username","oie.user.profile.lastname":"Last name","oie.user.profile.firstname":"First name","oie.user.profile.primary.email":"Email","oie.user.profile.secondary.email":"Secondary email","oie.user.profile.middleName":"Middle name","oie.user.profile.honorificPrefix":"Honorific prefix","oie.user.profile.honorificSuffix":"Honorific suffix","oie.user.profile.primaryEmail":"Primary email","oie.user.profile.title":"Title","oie.user.profile.displayName":"Display name","oie.user.profile.nickName":"Nickname","oie.user.profile.profileUrl":"Profile URL","oie.user.profile.mobilePhone":"Mobile phone","oie.user.profile.primaryPhone":"Primary phone","oie.user.profile.streetAddress":"Street address","oie.user.profile.city":"City","oie.user.profile.state":"State","oie.user.profile.zipCode":"ZIP Code","oie.user.profile.postalCode":"Postal code","oie.user.profile.countryCode":"Country code","oie.user.profile.postalAddress":"Postal address","oie.user.profile.preferredLanguage":"Preferred language","oie.user.profile.locale":"Locale","oie.user.profile.timezone":"Time zone","oie.user.profile.userType":"User type","oie.user.profile.employeeNumber":"Employee number","oie.user.profile.costCenter":"Cost center","oie.user.profile.organization":"Organization","oie.user.profile.division":"Division","oie.user.profile.department":"Department","oie.user.profile.managerId":"Manager ID","oie.user.profile.manager":"Manager","oie.selfservice.unlock_user.landing.to.app.success.message":"Account successfully unlocked! Verify your account with a security method to continue.","oie.selfservice.unlock_user.landing.to.app.signing.in.message":"Account successfully unlocked!","oie.selfservice.unlock_user.success.message":"You can log in using your existing username and password.","oie.selfservice.unlock_user.failed.message":"We are unable to unlock your account at this time, please contact your administrator","oie.selfservice.user.unlock.not.allowed":"Self Service Unlock is not allowed at this time. Please contact support for assistance.","oie.kmsi.title":"Keep me signed in","oie.kmsi.subtitle":"Sign in and enter security methods less frequently.","oie.kmsi.accept":"Stay signed in","oie.kmsi.reject":"Don't stay signed in","idx.session.expired":"You have been logged out due to inactivity. Refresh or return to the sign in screen.","oie.registration.is.not.enabled":"Sign up is not enabled for this organization.","oie.forgot.password.is.not.enabled":"Forgot password is not enabled for this organization.","idx.return.error":"Could not process this email link. Return to the screen where you requested it.","idx.return.stale":"This email link is out of date. Return to the screen where you requested it.","idx.invalid.forgot.password.token":"Your reset password token is no longer valid.","idx.invalid.reset.password.token":"Your reset password token is no longer valid. Contact your administrator to obtain a new token.","idx.reset.password.activating.user":"Reset password cannot be performed while the user is activating. Contact your administrator to obtain a new token.","core.system.transaction_resource_not_found":"Verification timed out. Please try again",tagsNotAllowed:"The field must not contain HTML tags","api.authn.error.PASSCODE_INVALID":"Invalid code. Try again.","oie.feature.disabled":"The requested feature is not enabled in this environment.","authfactor.challenge.suspended_factor":"This factor is suspended for your account due to too many failed attempts","oie.post.password.update.auth.failure.error":"Your password has been updated but there was a problem signing you in. Please try again or c
4ontact your administrator.","oie.assurance.unsatisfiable":'Unable to login to "{0}" at this time. For assistance, please contact your administrator.',"errors.E0000150":"You have reached the limit of sms requests, please try again later.","errors.E0000151":"You have reached the limit of call requests, please try again later.","oie.invalid.recovery.token":"The recovery token is invalid.","oie.consent.scopes.admin.title":"would like to access:","oie.consent.scopes.enduser.title":"would like to:","oie.consent.scopes.granular.title":"<$1>{0}</$1> <$2>wants to access</$2>","oie.consent.scopes.granular.description":"Allowing access will share","oie.consent.enduser.accept.label":"Yes, it's me","oie.consent.enduser.deny.label":"No, it's not me","oie.consent.enduser.title":"Did you just try to sign in?","oie.consent.enduser.email.allow.title":"Success! Return to the original tab or window","oie.consent.enduser.email.allow.description":"To continue, please return to the original browser tab or window you used to verify.","oie.consent.enduser.deny.description":"Close this window anytime.","oie.return.to.original.tab":"Close this window anytime.","idx.operation.cancelled.by.user":"Operation cancelled by user.","idx.transferred.to.new.tab":"Flow continued in a new tab.","idx.return.link.expired":"This email link has expired. To resend it, return to the screen where you requested it.","idx.return.link.otponly.your.verification.code":"Your verification code","idx.return.link.otponly.enter.code.on.page":"Enter this code on the {0} page.","idx.return.link.otponly.enter.code.on.page.sign.in":"sign-in","idx.return.link.otponly.enter.code.on.page.password.reset":"password reset","idx.return.link.otponly.enter.code.on.page.account.unlock":"account unlock","idx.return.link.otponly.enter.code.on.page.registration":"sign up","idx.return.link.otponly.enter.code.on.sign.in.page":"Enter this code on the sign-in page.","idx.return.link.otponly.enter.code.on.password.reset.page":"Enter this code on the password reset page.","idx.return.link.otponly.enter.code.on.account.unlock.page":"Enter this code on the account unlock page.","idx.return.link.otponly.enter.code.on.sign.up.page":"Enter this code on the sign up page.","idx.return.link.otponly.request":"Request from:","idx.return.link.otponly.warning.text":"If you didnât request this code, you can ignore this message. Your account is safe and can only be accessed with this code.","idx.enter.otp.in.original.tab":"Enter the OTP in your original authentication location.","idx.return.link.otponly.app":"{0}","idx.return.link.otponly.browser.on.os":"{0} on {1}","geolocation.formatting.all":"{0}, {1}, {2}","geolocation.formatting.partial":"{0}, {1}","consent.scopes.email.label":"View your email address.","consent.scopes.profile.label":"View your profile information.","consent.scopes.phone.label":"View your phone number.","consent.scopes.address.label":"View your address.","consent.scopes.offlineAccess.label":"Keep you signed in to the app.","consent.scopes.onlineAccess.label":"Keep you signed in to the app.","consent.scopes.deviceSSO.label":"Request device secret.","consent.scopes.openid.desc":"Signals that a request is an OpenID request.","consent.scopes.profile.desc":"The exact data varies based on what profile information you have provided, such as: name, time zone, picture, or birthday.","consent.scopes.email.desc":"This allows the app to view your email address.","consent.scopes.address.desc":"This allows the app to view your address, such as: street address, city, state, and zip code.","consent.scopes.phone.desc":"This allows the app to view your phone number.","consent.scopes.offlineAccess.desc":"This keeps you signed in to the app, even when you are not using it.","consent.scopes.onlineAccess.desc":"This allows the app to access your data only when you are logged in to the application.","consent.scopes.deviceSSO.desc":"This allows you to single sign on between native client applications on your device.","consent.scopes.okta.users.manage.desc":"Allows the app to create new users and to manage all users'' profile and credentials information.","consent.scopes.okta.users.manage.self.desc":"Allows the app to manage the signed-in user''s profile and credentials.","consent.scopes.okta.users.read.desc":"Allows the app to read the existing users'' profiles and credentials.","consent.scopes.okta.users.read.self.desc":"Allows the app to read the signed-in user'
vendor: 7,400 bytes, line 4
4's profile and credentials.","consent.scopes.okta.linkedObjects.manage.desc":"Allows the app to manage linked object definitions in your Okta organization.","consent.scopes.okta.linkedObjects.read.desc":"Allows the app to read linked object definitions in your Okta organization.","consent.scopes.okta.myAccount.manage.desc":"Allows the end-user to manage their account profile.","consent.scopes.okta.myAccount.read.desc":"Allows the end-user to read their account profile.","consent.scopes.okta.riskEvents.manage.desc":"Allows the app to publish risk events to your Okta organization.","consent.scopes.okta.clients.manage.desc":"Allows the app to manage clients in your Okta organization.","consent.scopes.okta.clients.read.desc":"Allows the app to read information about clients in your Okta organization.","consent.scopes.okta.clients.register.desc":"Allows the app to create new clients in your Okta organization.","consent.scopes.okta.authorizationServers.manage.desc":"Allows the app to create and manage Authorization Servers in your Okta organization.","consent.scopes.okta.authorizationServers.read.desc":"Allows the app to read information about Authorization Servers in your Okta organization.","consent.scopes.okta.groups.manage.desc":"Allows the app to manage existing groups in your Okta organization.","consent.scopes.okta.groups.read.desc":"Allows the app to read information about groups and their members in your Okta organization.","consent.scopes.okta.groups.register.desc":"Allows the app to create new groups in your Okta organization.","consent.scopes.okta.events.read.desc":"Allows the app to read information about deprecated Events v1 API entries in your Okta organization.","consent.scopes.okta.logs.read.desc":"Allows the app to read information about System Log entries in your Okta organization.","consent.scopes.okta.inlineHooks.manage.desc":"Allows the app to create and manage Inline Hooks in your Okta organization.","consent.scopes.okta.inlineHooks.read.desc":"Allows the app to read information about Inline Hooks in your Okta organization.","consent.scopes.okta.eventHooks.manage.desc":"Allows the app to create and manage Event Hooks in your Okta organization.","consent.scopes.okta.eventHooks.read.desc":"Allows the app to read information about Event Hooks in your Okta organization.","consent.scopes.okta.apps.manage.desc":"Allows the app to create and manage Apps in your Okta organization.","consent.scopes.okta.apps.read.desc":"Allows the app to read information about Apps in your Okta organization.","consent.scopes.okta.schemas.manage.desc":"Allows the app to create and manage Schemas in your Okta organization.","consent.scopes.okta.schemas.read.desc":"Allows the app to read information about Schemas in your Okta organization.","consent.scopes.okta.idps.manage.desc":"Allows the app to create and manage Identity Providers in your Okta organization.","consent.scopes.okta.idps.read.desc":"Allows the app to read information about Identity Providers in your Okta organization.","consent.scopes.okta.roles.manage.desc":"Allows the app to manage administrative role assignments for users in your Okta organization.","consent.scopes.okta.roles.read.desc":"Allows the app to read administrative role assignments for users in your Okta organization.","consent.scopes.okta.policies.manage.desc":"Allows the app to manage policies in your Okta organization.","consent.scopes.okta.policies.read.desc":"Allows the app to read information about policies in your Okta organization.","consent.scopes.okta.orgs.manage.desc":"Allows the app to manage organization-specific details for your Okta organization.","consent.scopes.okta.orgs.read.desc":"Allows the app to read organization-specific details about your Okta organization.","consent.scopes.okta.captchas.manage.desc":"Allows the app to create and manage CAPTCHAs in your Okta organization.","consent.scopes.okta.captchas.read.desc":"Allows the app to read information about CAPTCHAs in your Okta organization.","consent.scopes.okta.sessions.manage.desc":"Allows the app to manage all sessions in your Okta organization.","consent.scopes.okta.sessions.read.desc":"Allows the app to read all sessions in your Okta organization.","consent.scopes.okta.trustedOrigins.manage.desc":"Allows the app to manage all Trusted Origins in your Okta organization.","consent.scopes.okta.trustedOrigins.read.desc":"Allows the app to read all Trusted Origins in your Okta organization.","consent.scopes.okta.templates.manage.desc":"Allows the app to manage all custom templates in your Okta organization.","consent.scopes.okta.templates.read.desc":"Allows the app to read all custom templates in your Okta organization.","consent.scopes.okta.factors.manage.desc":"Allows the app to manage all admin operations for org factors (e.g. activate, deactivate, read).","consent.scopes.okta.factors.read.desc":"Allows the app to read org factors information.","consent.scopes.okta.authenticators.manage.desc":"Allows the app to manage all security methods (e.g. enrollments, reset).","consent.scopes.okta.authenticators.read.desc":"Allows the app to read org security method information.","consent.scopes.okta.authenticators.manage.self.desc":"Allows the app to manage users own security methods (e.g. enrollments, reset).","consent.scopes.idSnapshot.read.desc":"Allows the app to read your identity snapshot attestation.","consent.scopes.idSnapshot.manage.desc":"Allows the app to create and manage your identity snapshot attestation.","logo.for.the.app.alt.text":"Logo for the app","device.code.activate.title":"Activate your device","device.code.activate.subtitle":"Follow the instructions on your device to get an activation code","device.code.activate.label":"Activation Code","device.code.activated.success.title":"Device activated","device.code.activated.error.title":"Device not activated","idx.device.activated":"Follow the instructions on your device for next steps","idx.device.not.activated.consent.denied":"Your device cannot be activated because you did not allow access","idx.device.not.activated.internal.error":"Your device cannot be activated because of an internal error","idx.invalid.device.code":"Invalid code. Try again.","idx.operation.cancelled.on.other.device":"Access denied on other device.","idx.expired.activation.token":"Your account activation link is no longer valid. Request a new activation email below.","idx.missing.activation.token":"This can happen if you have already activated your account, or if the URL you are trying to use is invalid. Contact your administrator for further assistance.","idx.activating.inactive.user":"Your account has been temporarily suspended. Contact your administrator for further assistance.","idx.request.activation.email":"New activation link requested. If your information matches our records, you will receive a new activation link in your inbox soon.","oie.activation.request.email.title.expire":"Activation link has expired","oie.activation.request.email.title.invalid":"Activation link no longer valid","oie.activation.request.email.title.suspended":"Account suspended","oie.activation.request.email.title.submitted":"Request submitted","oie.activation.request.email.button":"Request activation email","oie.browser.error.NotAllowedError":"The operation either timed out or was not allowed.","authfactor.challenge.soft_token.invalid_passcode":"Your code doesn
4't match our records. Please try again.","authfactor.challenge.soft_token.used_passcode":"Each code can only be used once. Please wait for a new code and try again.","oie.tooManyRequests":"Too many attempts. Try again later.",E0000010:"Server is unable to respond at the moment.","idx.error.registration.unavailable":"Registration is currently unavailable.","idx.error.user.not.assigned.to.app":"User is not assigned to this application.","idx.error.code.user_not_assigned":"You are not allowed to access this app. To request access, contact an admin.","idx.error.code.access_denied.device_assurance.remediation.title":"Your device doesn't meet the security requirements","idx.error.code.access_denied.device_assurance.remediation.explanation_one_rule":"To sign in, make the following updates. Then, access the app again.","idx.error.code.access_denied.device_assurance.remediation.explanation_multiple_rules":"To sign in, pick an option and make the updates. Then, access the app again.","idx.error.code.access_denied.device_assurance.remediation.option_index":"Option {0}:","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version":"Update to Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version.at_least":"Update to at least Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version.exactly":"Update to exactly Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version.one_of_the_following":"Update to one of the following: Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version.exactly_one_of_the_following":"Update to exactly one of the following: Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.device_disk_encrypted":"Encrypt your device","idx.error.code.access_denied.device_assurance.remediation.android.use_lock_screen":"Enable lock screen","idx.error.code.access_denied.device_assurance.remediation.android.use_biometric_lock_screen":"Enable lock screen and biometrics","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version":"Update to iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version.at_least":"Update to at least iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version.exactly":"Update to exactly iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version.one_of_the_following":"Update to one of the following: iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version.exactly_one_of_the_following":"Update to exactly one of the following: iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.use_lock_screen":"Set a passcode for the lock screen","idx.error.code.access_denied.device_assurance.remediation.ios.use_biometric_lock_screen":"Set a passcode for the lock screen and enable Touch ID or Face ID","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version":"Update to macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version.at_least":"Update to at least macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version.exactly":"Update to exactly macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version.one_of_the_following":"Update to one of the following: macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version.exactly_one_of_the_following":"Update to exactly one of the following: macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.use_lock_screen":"Set a passcode for the lock screen","idx.error.code.access_denied.device_assurance.remediation.macos.device_disk_encrypted":"Turn on FileVault","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version":"Update to Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version.at_least":"Update to at least Windows {0}
4","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version.exactly":"Update to exactly Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version.one_of_the_following":"Update to one of the following: Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version.exactly_one_of_the_following":"Update to exactly one of the following: Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.device_disk_encrypted":"Encrypt all internal disks with BitLocker","idx.error.code.access_denied.device_assurance.remediation.windows.use_biometric_lock_screen":"Enable Windows Hello for the lock screen","idx.error.code.access_denied.device_assurance.remediation.device.must.be.managed":"Use a device managed by your organization","idx.error.code.access_denied.device_assurance.remediation.additional_help_default":"For more information, follow the instructions on <$1>the help page</$1> or contact your administrator for help","idx.error.code.access_denied.device_assurance.remediation.additional_help_custom":"For more information, follow the instructions on <$1>your organization's help page</$1> or contact your administrator for help","idx.error.code.access_denied.device_assurance.remediation.chrome.antivirus":"Enable antivirus software","idx.error.code.access_denied.device_assurance.remediation.chrome.disk_encrypted":"Turn on disk encryption","idx.error.code.access_denied.device_assurance.remediation.chrome.os_firewall":"Turn on your device's firewall","idx.error.code.access_denied.device_assurance.remediation.chrome.screen_lock_secured":"Turn on automatic screen saver and screen locking when idle","idx.error.code.access_denied.device_assurance.remediation.chrome.upgrade_browser_version":"Update Chrome browser to {0}","idx.error.code.access_denied.device_assurance.remediation.chrome.chromeos.upgrade_os_version":"Update to ChromeOS {0}","idx.error.code.access_denied.device_assurance.remediation.chrome.chromeos.key_trust_level.verified_mode":"Switch your device to verified mode","idx.error.code.access_denied.device_assurance.remediation.chrome.chromeos.key_trust_level.developer_mode":"Switch your device to developer mode","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.play_protect_required":"Please ensure Google Play Protect is enabled and that a scan has been performed, then try accessing this application again","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.play_protect_scan_threshold":"There is a problem with your Google Play Protect system scan. Please open Google Play and take action on the warnings displayed","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.version_update_available":"Your device has an OS update available. Please update your device then log in again","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.disable_usb_debugging":"Turn off USB debugging from Developer Options","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.lock_screen_complexity":"Your lock screen doesn't meet complexity requirements","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.disable_network_proxy":"Your device is using a network proxy. Please disable it then try again","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.unsecured_wifi_network":"Your WiFi network isn't secure. Please disconnect and try again from your phone's mobile cellular connection","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.android_device_policy_app_required":"Install the Android Device Policy app on this device","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.android_device_policy_app_required_manual_install":"Go to <$1>Settings in Okta Verify</$1> and follow the instructions to install the Android Device Policy app","idx.device_assurance.grace_period.title":"Device assurance reminder","idx.device_assurance.grace_peri
4od.warning.title.due_by_date":"Your device doesn't meet the security requirements. Fix the issue by {0} to prevent lockout.","idx.device_assurance.grace_period.continue_to_app":"Continue to app","oie.enrollment.policy.grace.period.required.today":"Required today","oie.enrollment.policy.grace.period.required.in.days":"Required in {0} days","oie.enrollment.policy.grace.period.required.in.one.day":"Required in 1 day","oie.enrollment.policy.grace.period.required.in.number.of.skips":"{0} skips remaining","oie.enrollment.policy.grace.period.required.in.one.skip":"1 skip remaining","api.policy.okta.account.management.insufficient.authenticators.unable.to.sign.in":"Unable to sign in. Contact support for assistance.","chrome.lna.fastpass.requires.permission.title":"Okta FastPass requires network permission","chrome.lna.error.title":"Unable to sign in","chrome.lna.error.description.intro":"The browser is blocking communication with Okta Verify.","chrome.lna.error.description.step1":"Go to your browser's site settings","chrome.lna.error.description.step2":"Find âLocal network accessâ or âApps on deviceâ","chrome.lna.error.description.step3":"Change the permission from âBlockâ to âAllowâ and reload this page","chrome.lna.error.description.more.information":"For more information, follow the instructions on the <$1>Local app access</$1> page or contact your administrator for help."},rL={API_RATE_LIMIT:3e4,WIDGET_LOGIN_CONTAINER_ID:"signin-container",WIDGET_CONTAINER_ID:"okta-sign-in",WIDGET_CONFIG_COLORS_ID:"okta-sign-in-config-colors",DIRECTION_BACK:"DIRECTION_BACK",RECOVERY_TYPE_PASSWORD:"PASSWORD",RECOVERY_TYPE_UNLOCK:"UNLOCK",RECOVERY_FACTOR_TYPE_SMS:"SMS",RECOVERY_FACTOR_TYPE_EMAIL:"EMAIL",RECOVERY_FACTOR_TYPE_CALL:"CALL",IOS:"ios",ANDROID:"android",ODA:"oda",MDM:"mdm",WS1:"ws1",SUCCESS:"SUCCESS",FORGOT_PASSWORD_EMAIL_SENT:"FORGOT_PASSWORD_EMAIL_SENT",UNLOCK_ACCOUNT_EMAIL_SENT:"UNLOCK_ACCOUNT_EMAIL_SENT",CONFIG_ERROR:"CONFIG_ERROR",UNSUPPORTED_BROWSER_ERROR:"UNSUPPORTED_BROWSER_ERROR",OAUTH_ERROR:"OAUTH_ERROR",AUTH_STOP_POLL_INITIATION_ERROR:"AUTH_STOP_POLL_INITIATION_ERROR",U2F_ERROR:"U2F_ERROR",WEB_AUTHN_ERROR:"WEB_AUTHN_ERROR",WEBAUTHN_ABORT_ERROR:"WEBAUTHN_ABORT_ERROR",CONFIGURED_FLOW_ERROR:"CONFIGURED_FLOW_ERROR",CHROME_LOCAL_NETWORK_ACCESS_DENIED_ERROR:"CHROME_LOCAL_NETWORK_ACCESS_DENIED_ERROR",ALL_OPTIONAL_NONE_ENROLLED:"ALL_OPTIONAL_NONE_ENROLLED",ALL_OPTIONAL_SOME_ENROLLED:"ALL_OPTIONAL_SOME_ENROLLED",HAS_REQUIRED_NONE_ENROLLED:"HAS_REQUIRED_NONE_ENROLLED",HAS_REQUIRED_SOME_REQUIRED_ENROLLED:"HAS_REQUIRED_SOME_REQUIRED_ENROLLED",HAS_REQUIRED_ALL_REQUIRED_ENROLLED:"HAS_REQUIRED_ALL_REQUIRED_ENROLLED",PRIMARY_AUTH:"PRIMARY_AUTH",FORGOT_PASSWORD:"FORGOT_PASSWORD",UNLOCK_ACCOUNT:"UNLOCK_ACCOUNT",SESSION_SSO:"SESSION_SSO",SESSION_STEP_UP:"SESSION_STEP_UP",ACTIVATION_EMAIL_SENT:"ACTIVATION_EMAIL_SENT",REGISTRATION_COMPLETE:"REGISTRATION_COMPLETE",REGISTRATION_FAILED:"REGISTRATION_FAILED",IDP_DISCOVERY:"IDP_DISCOVERY",OKTA_VERIFY_APPLE_APP_STORE_URL:"https://apps.apple.com/us/app/okta-verify/id490179405",OKTA_VERIFY_GOOGLE_PLAY_STORE_URL:"https://play.google.com/store/apps/details?id=com.okta.android.auth",LOOPBACK_CHALLENGE:"LOOPBACK",CUSTOM_URI_CHALLENGE:"CUSTOM_URI",UNIVERSAL_LINK_CHALLENGE:"UNIVERSAL_LINK",APP_LINK_CHALLENGE:"APP_LINK",CHROME_DTC:"CHROME_DTC"};class rM extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class rU extends rM{constructor(e){super(e||r3("error.config")),this.name=rL.CONFIG_ERROR}}class rF extends rM{constructor(e){super(e||r3("error.unsupported.browser")),this.name=rL.UNSUPPORTED_BROWSER_ERROR}}class rj extends rM{constructor(...e){super(...e),this.name=rL.OAUTH_ERROR}}class rV extends rM{constructor(...e){super(...e),this.name=rL.REGISTRATION_FAILED}}class rB extends rM{constructor(...e){super(...e),this.name=rL.AUTH_STOP_POLL_INITIATION_ERROR}}class rq extends rM{constructor(e){var t,n;super(null===(t=e.xhr)||void 0===t?void 0:null===(n=t.responseJSON)||void 0===n?void 0:n.errorSummary),this.xhr=void 0,this.name=rL.U2F_ERROR,this.xhr=e.xhr}}class r$ extends rM{constructor(e){var t,n;super(null===(t=e.xhr)||void 0===t?void 0:null===(n=t.responseJSON)||void 0===n?void 0:n.errorSummary),this.xhr=void 0,this.name=rL.WEB_AUTHN_ERROR,this.xhr=e.xhr}}class rH extends rM{constructor(...e){super(...e),this.name=rL.WEBAUTHN_ABORT_ERROR}}class rW extends rM{constructor(e,t){super(e),this.flowSetting=void 0,this.name=rL.CONFIGURED_FLOW_ERROR,this.flowSetting=t}}class rz extends rM{constructor(...e){super(...e),this.name=rL.CHROME_LOCAL_NETWORK_ACCESS_DENIED_ERROR}}let rK={},rG="withCredentials"in new window.XMLHttpRequest,rY=void 0!==window.XDomainRequest;function rJ(e,t){var n,i,o;("error"===e||null!==(n=window)&&void 0!==n&&null!==(i=n.OktaSignInDebug)&&void 0!==i&&null!==(o=i.isEnabled)&&void 0!==o&&o.call(i))&&window.console[e].apply(window.console,t)}rK.corsIsNotSupported=function(){return!(rG||rY)},rK.corsIsNotEnabled=function(e){return 0===e.status},rK.localStorageIsNotSupported=function(){let e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!1}catch(e){return!0}},rK.supportsPushState=function(e){return!!((e=e||window).history&&e.history.pushState)},rK.isIE=function(){return/(msie|trident)/i.test(navigator.userAgent)},rK.isFirefox=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},rK.isEdge=function(){return navigator.userAgent.toLowerCase().indexOf("edge")>-1},rK.isSafari=function(){return navigator.userAgent.toLowerCase().indexOf("safari")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("chrome")},rK.isMac=function(){return navigator.platform.toUpperCase().indexOf("MAC")>=0},rK.isAndroid=function(){return/android/i.test(navigator.userAgent)&&!/windows phone/i.test(navigator.userAgent)},rK.isIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},rK.getChromeLNAPermissionState=async function(e){if(!navigator.permissions||"function"!=typeof navigator.permissions.query){e(void 0);return}try{let t;try{t=await navigator.permissions.query({name:"loopback-network"})}catch(e){t=await navigator.permissions.query({name:"local-network-access"})}
4e(t.state)}catch(t){if(t instanceof rz)throw t;e(void 0)}},rK.getUserLanguages=function(){if(navigator.languages)return[...navigator.languages];let e=[];return["language","userLanguage","browserLanguage","systemLanguage"].forEach(function(t){navigator[t]&&e.push(navigator[t])}),e};var rQ={info:function(){return rJ("info",arguments)},warn:function(){return rJ("warn",arguments)},error:function(){return rJ("error",arguments)},deprecate:function(e){return rJ("warn",["[okta-signin-widget] DEPRECATED:",e])}};let rX="osw.languages";function rZ(){let e=JSON.parse(localStorage.getItem(rX));return e&&e.version===rR.version||(e={version:rR.version}),e}function r0(e,t,n){let i=t.replace("-","_"),o=n.rewrite(encodeURI(`/labels/json/${e}_${i}.json`));return tp()(n.baseUrl+o,{method:"GET",headers:{Accept:"application/json"},mode:"cors"}).then(e=>e.text()).then(e=>JSON.parse(e))}async function r1(e,t,n){if(e===rR.defaultLanguage||!rN.contains(n,e))return{};let i=!rK.localStorageIsNotSupported();if(i){let t=rZ();if(t[e])return t[e]}try{let[n,o]=await Promise.all([r0("login",e,t),r0("country",e,t)]);return i&&function(e,t,n){let i=rZ();i[e]={login:t,country:n},localStorage.setItem(rX,JSON.stringify(i))}(e,n,o),{login:n,country:o}}catch(t){return rQ.warn("Unable to load language: "+e),{}}}var r8={login:rD,country:rI,courage:rD,currentLanguage:null,isLoaded:function(e){return this.currentLanguage===e},remove:function(){this.currentLanguage=null},loadLanguage:async function(e,t,n,i){let o=function(e){if(!e)return{};let t={};return rN.each(rN.keys(e),function(n){t[n.toLowerCase()]=e[n]}),rN.mapObject(t,function(e){let t={login:{},country:{}};if(!rN.isObject(e))throw Error('Invalid format for "i18n"');return rN.each(e,function(e,n){let i=n.split(/^country\./);i.length>1?t.country[i[1]]=e:t.login[i[0]]=e}),t})}(t),r=e.toLowerCase(),a=await r1(e,n,i);this.login=rN.extend({},rD,a.login),this.country=rN.extend({},rI,a.country),this.courage=rN.extend({},rD,a.login),o[r]&&(rN.extend(this.login,o[r].login),rN.extend(this.country,o[r].country),rN.extend(this.courage,o[r].login)),this.currentLanguage=e}};let r2=(e,t="login")=>{let n=r6(t);return!!(null!=n&&n[e])},r3=function(e,t="login",n=[],i=!1){let o=r6(t);if(!o)return r5(e,t,"bundle"),"L10N_ERROR["+t+"]";let r=o[e];try{if(n=n&&n.slice?n.slice(0):[],r=function(e,t){function n(){throw Error("Mismatch number of variables: "+e+", "+JSON.stringify(t))}let i=e,o=e;for(let e=0,r=t.length;e<r;e++){let r=String(t[e]),a=RegExp("\\{"+e+"\\}","g");o=o.replace(a,r),(null==r||o===i)&&n(),i=o}return/\{[\d+]\}/.test(o)&&n(),o}(r,n))return r;return r5(e,t,"key"),"L10N_ERROR["+e+"]"}catch(n){return i||r5(e,t,"parameters"),"L10N_ERROR["+e+"]"}},r4=e=>{if(/-/.test(e)){let t=e.split("-");return t[1]=t[1].toUpperCase(),t.join("_")}return e};function r6(e){var t,n;if(!e){let e=Object.keys(r8).filter(e=>"object"==typeof e)[0];return r8[e]}let i=r4((null===(t=window)||void 0===t?void 0:null===(n=t.okta)||void 0===n?void 0:n.locale)||"en");return r8[`${e}_${i}`]||r8[e]}function r5(e,t,n){let i=r9("okta-i18n-error",{detail:{type:"l10n-error",key:e,bundleName:t,reason:n}});i&&document.dispatchEvent(i)}let r9=function(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);if(!window.CustomEvent){t=t||{bubbles:!1,cancelable:!1,detail:null};let n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}},r7={},ae=function(e,t){let n=document.createElement("input");return n.name=e,n.value=decodeURIComponent(t),n.type="hidden",n},at=function(){let e=document.createElement("input");return e.type="submit",e},an=function(e="",t){let n=e.split("#"),i=n[1],o=(n[0]||"").split("?"),r=o[1],a=o[0];i&&(a+="#"+i);let s=document.createElement("form");return s.method=t,s.style.display="none",s.action=a,r&&r.length&&r.split("&").forEach(e=>{let t=e.split("="),n=ae(t[0],t[1]);s.appendChild(n)}),s.appendChild(at()),s};function ai(e){let t=[e],n=e.split("-");for(;n.pop()&&n.length>0;)t.push(n.join("-"));return t}r7.transformErrorXHR=function(e){if(0===e.status&&rN.isEmpty(e.responseJSON))return e.responseJSON={errorSummary:r3("error.network.connection","login")},e;
4if(!e.responseJSON){if(!e.responseText)return e.responseJSON={errorSummary:r3("error.unsupported.response","login")},e;if("string"==typeof e.responseText)try{e.responseJSON=JSON.parse(e.responseText)}catch(t){return e.responseJSON={errorSummary:r3("error.unsupported.response","login")},e}else"object"==typeof e.responseText&&(e.responseJSON=e.responseText)}if(e.responseJSON&&e.responseJSON.errorCauses&&e.responseJSON.errorCauses.length&&(e.responseJSON.errorSummary=e.responseJSON.errorCauses[0].errorSummary),!rN.isEmpty(e.responseJSON)){let{errorCode:t}=e.responseJSON,n=t&&r2("errors."+t,"login")?r3("errors."+t,"login",[],!0):void 0;(null==n?void 0:n.indexOf("L10N_ERROR["))===-1&&(e.responseJSON.errorSummary=n,e.responseJSON&&e.responseJSON.errorCauses&&e.responseJSON.errorCauses.length&&delete e.responseJSON.errorCauses)}return e},r7.toLower=function(e){return rN.map(e,function(e){return e.toLowerCase()})},r7.expandLanguages=function(e){return rN.chain(e).map(ai).flatten().uniq().value()},r7.callAfterTimeout=function(e,t){return setTimeout(e,t)},r7.callAfterTimeoutOrWindowRefocus=function(e,t,n=!1){let i,o;let r=()=>{if(document.removeEventListener("visibilitychange",o),!n)return e();setTimeout(e,t)};return o=()=>{document.hidden?clearTimeout(i):r()},document.addEventListener("visibilitychange",o),i=setTimeout(r,t),()=>{clearTimeout(i),document.removeEventListener("visibilitychange",o)}},r7.debugMessage=function(e){rQ.warn(` 5${e.replace(/^(\s)+/gm,"")}`)},r7.logConsoleError=function(e){rQ.error(e)},r7.triggerAfterError=function(e,t={}){!t.statusCode&&t.xhr&&t.xhr.status&&(t.statusCode=t.xhr.status);let n=rN.isFunction(e.className)?e.className():e.className,i=rN.pick(t,"name","message","statusCode","xhr");e.trigger("afterError",{controller:n},i),rQ.warn("controller: "+n+", error: "+i)},r7.redirect=function(e,t=window,n=!1){rK.isAndroid()&&!n?r7.redirectWithFormGet(e):r7.changeLocation(e,t)},r7.changeLocation=function(e,t=window){if(!e){rQ.error(`Cannot redirect to empty URL: (${e})`);return}t.location.href=e},r7.executeOnVisiblePage=function(e){if("hidden"===document.visibilityState){let t=()=>{"visible"===document.visibilityState&&(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t)}else e()},r7.redirectWithFormGet=function(e){r7.redirectWithForm(e,"get")};{let e=!1;r7.getRedirectWithFormLock=function(){return e},r7.setRedirectWithFormLock=function(){e=!0}}r7.redirectWithForm=function(e,t="post"){if(!e){rQ.error(`Cannot redirect to empty URL: (${e})`);return}if(!0===r7.getRedirectWithFormLock()){rQ.error("Cannot redirect with form, already in progress");return}let n=document.getElementById(rL.WIDGET_CONTAINER_ID);if(!n){rQ.error("Cannot find okta-sign-in container append to which a form");return}r7.setRedirectWithFormLock();let i=an(e,t);n.appendChild(i),i.querySelector('input[type="submit"]').click()},r7.createInputExplain=function(e,t,n,i,o){let r=i?r3(e,n,i):r3(e,n);return r!==(o?r3(t,n,o):r3(t,n))&&r},r7.isV1StateToken=function(e){return!!(e&&rN.isString(e)&&e.startsWith("00"))},r7.getAutocompleteValue=function(e,t){return(null==e?void 0:e.get("features.disableAutocomplete"))?"off":t},r7.searchParamsToString=function(e){return Object.keys(e).filter(t=>null!=e[t]).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&")};var ao={exports:{}},ar={},aa={};aa.__esModule=!0,aa.extend=ap,aa.indexOf=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return -1},aa.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return ac.test(e)?e.replace(al,au):e},aa.isEmpty=function(e){return!e&&0!==e||!!af(e)&&0===e.length},aa.createFrame=function(e){var t=ap({},e);return t._parent=e,t},aa.blockParams=function(e,t){return e.path=t,e},aa.appendContextPath=function(e,t){return(e?e+".":"")+t};var as={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},al=/[&<>"'`=]/g,ac=/[&<>"'`=]/;function au(e){return as[e]}function ap(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var ad=Object.prototype.toString;aa.toString=ad;var ah=function(e){return"function"==typeof e};
5ah(/x/)&&(aa.isFunction=ah=function(e){return"function"==typeof e&&"[object Function]"===ad.call(e)}),aa.isFunction=ah;var af=Array.isArray||function(e){return!!e&&"object"==typeof e&&"[object Array]"===ad.call(e)};aa.isArray=af;var am={exports:{}};!function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function i(e,t){var o=t&&t.loc,r=void 0,a=void 0,s=void 0,l=void 0;o&&(r=o.start.line,a=o.end.line,s=o.start.column,l=o.end.column,e+=" - "+r+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<n.length;u++)this[n[u]]=c[n[u]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{o&&(this.lineNumber=r,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=s,this.endColumn=l))}catch(e){}}i.prototype=Error(),t.default=i,e.exports=t.default}(am,am.exports);var ag={},ay={exports:{}};(y=ay.exports).__esModule=!0,y.default=function(e){e.registerHelper("blockHelperMissing",function(t,n){var i=n.inverse,o=n.fn;if(!0===t)return o(this);if(!1===t||null==t)return i(this);if(aa.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var r=aa.createFrame(n.data);r.contextPath=aa.appendContextPath(n.data.contextPath,n.name),n={data:r}}return o(t,n)})},ay.exports=y.default;var av={exports:{}};(v=av.exports).__esModule=!0,w=(b=am.exports)&&b.__esModule?b:{default:b},v.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new w.default("Must pass iterator to #each");var n=t.fn,i=t.inverse,o=0,r="",a=void 0,s=void 0;function l(t,i,o){a&&(a.key=t,a.index=i,a.first=0===i,a.last=!!o,s&&(a.contextPath=s+t)),r+=n(e[t],{data:a,blockParams:aa.blockParams([e[t],t],[s+t,null])})}if(t.data&&t.ids&&(s=aa.appendContextPath(t.data.contextPath,t.ids[0])+"."),aa.isFunction(e)&&(e=e.call(this)),t.data&&(a=aa.createFrame(t.data)),e&&"object"==typeof e){if(aa.isArray(e))for(var c,u=e.length;o<u;o++)o in e&&l(o,o,o===e.length-1);else if(rA.Symbol&&e[rA.Symbol.iterator]){for(var p=[],d=e[rA.Symbol.iterator](),h=d.next();!h.done;h=d.next())p.push(h.value);e=p;for(var u=e.length;o<u;o++)l(o,o,o===e.length-1)}else c=void 0,Object.keys(e).forEach(function(e){void 0!==c&&l(c,o-1),c=e,o++}),void 0!==c&&l(c,o-1,!0)}return 0===o&&(r=i(this)),r})},av.exports=v.default;var ab={exports:{}};(k=ab.exports).__esModule=!0,S=(_=am.exports)&&_.__esModule?_:{default:_},k.default=function(e){e.registerHelper("helperMissing",function(){if(1!=arguments.length)throw new S.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},ab.exports=k.default;var aw={exports:{}};
5(E=aw.exports).__esModule=!0,x=(T=am.exports)&&T.__esModule?T:{default:T},E.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new x.default("#if requires exactly one argument");return(aa.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||aa.isEmpty(e))?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){if(2!=arguments.length)throw new x.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},aw.exports=E.default;var ak={exports:{}};(O=ak.exports).__esModule=!0,O.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],n=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)t.push(arguments[i]);var o=1;null!=n.hash.level?o=n.hash.level:n.data&&null!=n.data.level&&(o=n.data.level),t[0]=o,e.log.apply(e,t)})},ak.exports=O.default;var a_={exports:{}};(C=a_.exports).__esModule=!0,C.default=function(e){e.registerHelper("lookup",function(e,t,n){return e?n.lookupProperty(e,t):e})},a_.exports=C.default;var aS={exports:{}};function aE(e){return e&&e.__esModule?e:{default:e}}
5(A=aS.exports).__esModule=!0,N=(P=am.exports)&&P.__esModule?P:{default:P},A.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new N.default("#with requires exactly one argument");aa.isFunction(e)&&(e=e.call(this));var n=t.fn;if(aa.isEmpty(e))return t.inverse(this);var i=t.data;return t.data&&t.ids&&((i=aa.createFrame(t.data)).contextPath=aa.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:i,blockParams:aa.blockParams([e],[i&&i.contextPath])})})},aS.exports=A.default,ag.__esModule=!0,ag.registerDefaultHelpers=function(e){aT.default(e),ax.default(e),aO.default(e),aC.default(e),aA.default(e),aP.default(e),aN.default(e)},ag.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var aT=aE(ay.exports),ax=aE(av.exports),aO=aE(ab.exports),aC=aE(aw.exports),aA=aE(ak.exports),aP=aE(a_.exports),aN=aE(aS.exports),aR={},aI={exports:{}};(R=aI.exports).__esModule=!0,R.default=function(e){e.registerDecorator("inline",function(e,t,n,i){var o=e;return t.partials||(t.partials={},o=function(i,o){var r=n.partials;n.partials=aa.extend({},r,t.partials);var a=e(i,o);return n.partials=r,a}),t.partials[i.args[0]]=i.fn,o})},aI.exports=R.default,aR.__esModule=!0,aR.registerDefaultDecorators=function(e){aD.default(e)};var aD=(I=aI.exports)&&I.__esModule?I:{default:I},aL={exports:{}};
5(D=aL.exports).__esModule=!0,L={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=aa.indexOf(L.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=L.lookupLevel(e),"undefined"!=typeof console&&L.lookupLevel(L.level)<=e){var t=L.methodMap[e];console[t]||(t="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[t].apply(console,i)}}},D.default=L,aL.exports=D.default;var aM={},aU={};aU.__esModule=!0,aU.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return aa.extend.apply(void 0,[Object.create(null)].concat(t))},aM.__esModule=!0,aM.createProtoAccessControl=function(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:aU.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:aU.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},aM.resultIsAllowed=function(e,t,n){return"function"==typeof e?aV(t.methods,n):aV(t.properties,n)},aM.resetLoggedProperties=function(){Object.keys(aj).forEach(function(e){delete aj[e]})};var aF=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}
vendor: 4,163 bytes, line 5
5(aL.exports),aj=Object.create(null);function aV(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(!0!==aj[t]&&(aj[t]=!0,aF.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details')),!1)}function aB(e){return e&&e.__esModule?e:{default:e}}ar.__esModule=!0,ar.HandlebarsEnvironment=aW;var aq=aB(am.exports),a$=aB(aL.exports);ar.VERSION="4.7.7",ar.COMPILER_REVISION=8,ar.LAST_COMPATIBLE_COMPILER_REVISION=7,ar.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var aH="[object Object]";function aW(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},ag.registerDefaultHelpers(this),aR.registerDefaultDecorators(this)}aW.prototype={constructor:aW,logger:a$.default,log:a$.default.log,registerHelper:function(e,t){if(aa.toString.call(e)===aH){if(t)throw new aq.default("Arg not supported with multiple helpers");aa.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(aa.toString.call(e)===aH)aa.extend(this.partials,e);else{if(void 0===t)throw new aq.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(aa.toString.call(e)===aH){if(t)throw new aq.default("Arg not supported with multiple decorators");aa.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){aM.resetLoggedProperties()}};var az=a$.default.log;ar.log=az,ar.createFrame=aa.createFrame,ar.logger=a$.default;var aK={exports:{}};!function(e,t){function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default}(aK,aK.exports);var aG={},aY={};aY.__esModule=!0,aY.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=t(n),e.apply(this,arguments)}},aG.__esModule=!0,aG.checkRevision=function(e){var t=e&&e[0]||1,n=ar.COMPILER_REVISION;if(!(t>=ar.LAST_COMPATIBLE_COMPILER_REVISION)||!(t<=ar.COMPILER_REVISION)){if(t<ar.LAST_COMPATIBLE_COMPILER_REVISION){var i=ar.REVISION_CHANGES[n],o=ar.REVISION_CHANGES[t];throw new aQ.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+o+").")}throw new aQ.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},aG.template=function(e,t){if(!t)throw new aQ.default("No environment passed to template");if(!e||!e.main)throw new aQ.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0],i={strict:function(e,t,n){if(!e||!(t in e))throw new aQ.default('"'+t+'" not defined in '+e,{loc:n});return i.lookupProperty(e,t)},lookupProperty:function(e,t){var n=e[t];if(null==n||Object.prototype.hasOwnProperty.call(e,t)||aM.resultIsAllowed(n,i.protoAccessControl,t))return n},lookup:function(e,t){for(var n=e.length,o=0;o<n;o++)if(null!=(e[o]&&i.lookupProperty(e[o],t)))return e[o][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:aJ.escapeExpression,invokePartial:function(n,i,o){o.hash&&(i=aJ.extend({},i,o.hash),o.ids&&(o.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,i,o);var r=aJ.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),a=t.VM.invokePartial.call(this,n,i,r);if(null==a&&t.compile&&(o.partials[o.name]=t.compile(n,e.compilerOptions,t),a=o.partials[o.name](i,r)),null!=a){if
5(o.indent){for(var s=a.split("\n"),l=0,c=s.length;l<c&&(s[l]||l+1!==c);l++)s[l]=o.indent+s[l];a=s.join("\n")}return a}throw new aQ.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,i,o){var r=this.programs[e],a=this.fn(e);return t||o||i||n?r=aX(this,e,a,t,n,i,o):r||(r=this.programs[e]=aX(this,e,a)),r},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=aJ.extend({},t,e)),n},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(t){var n,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=r.data;o._setup(r),!r.partial&&e.useData&&((n=a)&&"root"in n||((n=n?ar.createFrame(n):{}).root=t),a=n);var s=void 0,l=e.useBlockParams?[]:void 0;function c(t){return""+e.main(i,t,i.helpers,i.partials,a,l,s)}return e.useDepths&&(s=r.depths?t!=r.depths[0]?[t].concat(r.depths):r.depths:[t]),(c=a0(e.main,c,i,r.depths||[],a,l))(t,r)}return o.isTop=!0,o._setup=function(o){if(o.partial)i.protoAccessControl=o.protoAccessControl,i.helpers=o.helpers,i.partials=o.partials,i.decorators=o.decorators,i.hooks=o.hooks;else{var r=aJ.extend({},t.helpers,o.helpers);(function(e,t){Object.keys(e).forEach(function(n){var i,o=e[n];e[n]=(i=t.lookupProperty,aY.wrapHelper(o,function(e){return aJ.extend({lookupProperty:i},e)}))})})(r,i),i.helpers=r,e.usePartial&&(i.partials=i.mergeIfNeeded(o.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=aJ.extend({},t.decorators,o.decorators)),i.hooks={},i.protoAccessControl=aM.createProtoAccessControl(o);var a=o.allowCallsToHelperMissing||n;ag.moveHelperToHooks(i,"helperMissing",a),ag.moveHelperToHooks(i,"blockHelperMissing",a)}},o._child=function(t,n,o,r){if(e.useBlockParams&&!o)throw new aQ.default("must pass block params");if(e.useDepths&&!r)throw new aQ.default("must pass parent depths");return aX(i,t,e[t],n,0,o,r)},o},aG.wrapProgram=aX,aG.resolvePartial=function(e,t,n){return e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],e},aG.invokePartial=function(e,t,n){var i,o=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==aZ&&(n.data=ar.createFrame(n.data),i=n.fn,r=n.data["partial-block"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.data=ar.createFrame(t.data),t.data["partial-block"]=o,i(e,t)},i.partials&&(n.partials=aJ.extend({},n.partials,i.partials))),void 0===e&&r&&(e=r),void 0===e)throw new aQ.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},aG.noop=aZ;var aJ=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(aa),aQ=(M=am.exports)&&M.__esModule?M:{default:M};function aX(e,t,n,i,o,r,a){function s(t){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a;return a&&t!=a[0]&&!(t===e.nullContext&&null===a[0])&&(s=[t].concat(a)),n(e,t,e.helpers,e.partials,o.data||i,r&&[o.blockParams].concat(r),s)}return(s=a0(n,s,e,a,i,r)).program=t,s.depth=a?a.length:0,s.blockParams=o||0,s}function aZ(){return""}function a0(e,t,n,i,o,r){if(e.decorator){var a={};t=e.decorator(t,a,n,i&&i[0],o,r,i),aJ.extend(t,a)}return t}var a1={exports:{}};(U=a1.exports).__esModule=!0,U.default=function(e){var t=void 0!==rA?rA:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},a1.exports=U.default,function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var o=i(ar),r=n(aK.exports),a=n(am.exports),s=i(aa),l=i(aG),c=n(a1.exports);function u(){var e=new o.HandlebarsEnvironment;return s.extend(e,o),e.SafeString=r.default,e.Exception=a.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.V
vendor: 12,734 bytes, line 5
5M=l,e.template=function(t){return l.template(t,e)},e}var p=u();p.create=u,c.default(p),p.default=p,t.default=p,e.exports=t.default}(ao,ao.exports);var a8=(F=ao.exports)&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F;rN.mixin({resultCtx:function(e,t,n,i){let o=rN.isObject(e)?e[t]:void 0;return(rN.isFunction(o)&&(o=o.call(n||e)),o)?o:rN.isUndefined(i)?o:i},isInteger:function(e){return rN.isNumber(e)&&e%1==0},template:function(e,t){let n=a8.compile(e);if(t)return n(t);let i=function(e){return n(e)};return i.source="",i}});var a2={},a3=n(19755),a4=n.n(a3);!function(e,t){let n=a4();!function(e){var i,o="object"==typeof self&&self.self===self&&self||"object"==typeof rA&&rA.global===rA&&rA,r=rP.exports;try{i=n}catch(e){}e(o,t,r,i)}(function(e,t,n,i){var o,r=e.Backbone,a=Array.prototype.slice;t.VERSION="1.4.0",t.$=i,t.noConflict=function(){return e.Backbone=r,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s=t.Events={},l=/\s+/,c=function(e,t,i,o,r){var a,s=0;if(i&&"object"==typeof i)for(void 0!==o&&("context"in r)&&void 0===r.context&&(r.context=o),a=n.keys(i);s<a.length;s++)t=c(e,t,a[s],i[a[s]],r);else if(i&&l.test(i))for(a=i.split(l);s<a.length;s++)t=e(t,a[s],o,r);else t=e(t,i,o,r);return t};s.on=function(e,t,n){return this._events=c(u,this._events||{},e,t,{context:n,ctx:this,listening:o}),o&&((this._listeners||(this._listeners={}))[o.id]=o,o.interop=!1),this},s.listenTo=function(e,t,i){if(!e)return this;var r=e._listenId||(e._listenId=n.uniqueId("l")),a=this._listeningTo||(this._listeningTo={}),s=o=a[r];s||(this._listenId||(this._listenId=n.uniqueId("l")),s=o=a[r]=new g(this,e));var l=p(e,t,i,this);if(o=void 0,l)throw l;return s.interop&&s.on(t,i),this};var u=function(e,t,n,i){if(n){var o=e[t]||(e[t]=[]),r=i.context,a=i.ctx,s=i.listening;s&&s.count++,o.push({callback:n,context:r,ctx:r||a,listening:s})}return e},p=function(e,t,n,i){try{e.on(t,n,i)}catch(e){return e}};s.off=function(e,t,n){return this._events&&(this._events=c(d,this._events,e,t,{context:n,listeners:this._listeners})),this},s.stopListening=function(e,t,i){var o=this._listeningTo;if(!o)return this;for(var r=e?[e._listenId]:n.keys(o),a=0;a<r.length;a++){var s=o[r[a]];if(!s)break;s.obj.off(t,i,this),s.interop&&s.off(t,i)}return n.isEmpty(o)&&(this._listeningTo=void 0),this};var d=function(e,t,i,o){if(e){var r,a=o.context,s=o.listeners,l=0;if(!t&&!a&&!i){for(r=n.keys(s);l<r.length;l++)s[r[l]].cleanup();return}for(r=t?[t]:n.keys(e);l<r.length;l++){var c=e[t=r[l]];if(!c)break;for(var u=[],p=0;p<c.length;p++){var d=c[p];if(i&&i!==d.callback&&i!==d.callback._callback||a&&a!==d.context)u.push(d);else{var h=d.listening;h&&h.off(t,i)}}u.length?e[t]=u:delete e[t]}return e}};s.once=function(e,t,n){var i=c(h,{},e,t,this.off.bind(this));return"string"==typeof e&&null==n&&(t=void 0),this.on(i,t,n)},s.listenToOnce=function(e,t,n){var i=c(h,{},t,n,this.stopListening.bind(this,e));return this.listenTo(e,i)};var h=function(e,t,i,o){if(i){var r=e[t]=n.once(function(){o(t,r),i.apply(this,arguments)});r._callback=i}return e};s.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),n=Array(t),i=0;i<t;i++)n[i]=arguments[i+1];return c(f,this._events,e,void 0,n),this};var f=function(e,t,n,i){if(e){var o=e[t],r=e.all;o&&r&&(r=r.slice()),o&&m(o,i),r&&m(r,[t].concat(i))}return e},m=function(e,t){var n,i=-1,o=e.length,r=t[0],a=t[1],s=t[2];switch(t.length){case 0:for(;++i<o;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<o;)(n=e[i]).callback.call(n.ctx,r);return;case 2:for(;++i<o;)(n=e[i]).callback.call(n.ctx,r,a);return;case 3:for(;++i<o;)(n=e[i]).callback.call(n.ctx,r,a,s);return;default:for(;++i<o;)(n=e[i]).callback.apply(n.ctx,t);return}},g=function(e,t){this.id=e._listenId,this.listener=e,this.obj=t,this.interop=!0,this.count=0,this._events=void 0};g.prototype.on=s.on,g.prototype.off=function(e,t){var n;this.interop?(this._events=c(d,this._events,e,t,{context:void 0,listeners:void 0}),n=!this._events):(this.count--,n=0===this.count),n&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},s.bind=s.on,s.unbind=s.off,n.extend(t,s);var y=t.Model=function(e,t){var i=e||{};t||(t={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(i=this.parse(i,t)||{});var o=n.result(this,"defaults");i=n.defaults(n.extend({},o,i),o),this.set(i,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(y.prototype,s,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!n.iteratee(e,this)(this.attributes)},set:function(e,t,i){if(null==e)return this;if("object"==typeof e?(o=e,i=t):(o={})[e]=t,i||(i={}),!this._validate(o,i))return!1;var o,r=i.unset,a=i.silent,s=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,p=this._previousAttributes;for(var d in o)t=o[d],n.isEqual(c[d],t)||s.push(d),n.isEqual(p[d],t)?delete u[d]:u[d]=t,r?delete c[d]:c[d]=t;if(this.idAttribute in o&&(this.id=this.get(this.idAttribute)),!a){s.length&&(this._pending=i);for(var h=0;h<s.length;h++)this.trigger("change:"+s[h],this,c[s[h]],i)}if(l)return this;if(!a)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var i in this.attributes)t[i]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,i=this._changing?this._previousAttributes:this.attributes,o={};for(var r in e){var a=e[r];n.isEqual(i[r],a)||(o[r]=a,t=!0)}return!!t&&o},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=n.extend({parse:!0},e);var t=this,i=e.success;return e.success=function(n){var o=e.parse?t.parse(n,e):n;if(!t.set(o,e))return!1;i&&i.call(e.context,t,n,e),t.trigger("sync",t,n,e)},W(this,e),this.sync("read",this,e)},save:function(e,t,i){null==e||"object"==typeof e?(o=e,i=t):(o={})[e]=t;var o,r=(i=n.extend({validate:!0,parse:!0},i)).wait;if(o&&!r){if(!this.set(o,i))return!1}else if(!this._validate(o,i))return!1;var a=this,s=i.success,l=this.attributes;i.success=function(e){a.attributes=l;var t=i.parse?a.parse(e,i):e;if(r&&(t=n.extend({},o,t)),t&&!a.set(t,i))return!1;s&&s.call(i.context,a,e,i),a.trigger("sync",a,e,i)},W(this,i),o&&r&&(this.attributes=n.extend({},l,o));var c=this.isNew()?"create":i.patch?"patch":"update";"patch"!==c||i.attrs||(i.attrs=o);var u=this.sync(c,this,i);return this.attributes=l,u},destroy:function(e){e=e?n.clone(e):{};var t=this,i=e.success,o=e.wait,r=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(n){o&&r(),i&&i.call(e.context,t,n,e),t.isNew()||t.trigger("sync",t,n,e)};var a=!1;return this.isNew()?n.defer(e.success):(W(this,e),a=this.sync("delete",this,e)),o||r(),a},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||H();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var i=this.validationError=this.validate(e,t)||null;return!i||(this.trigger("invalid",this,i,n.extend(t,{validationError:i})),!1)}});var v=t.Collection=function(e,t){t||(t={}),this.preinitialize.apply(this,arguments),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},k=function(e,t,n){n=Math.min(Math.max(n,0),e.length);var i,o=Array(e.length-n),r=t.length;for(i=0;i<o.length;i++)o[i]=e[i+n];for(i=0;i<r;i++)e[i+n]=t[i];for(i=0;i<o.length;i++)e[i+r+n]=o[i]};n.extend(v.prototype,s,{model:y,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,w))},remove:function(e,t){t=n.extend({},t);var i=!n.isArray(e);e=i?[e]:e.slice();var o=this._removeModels(e,t);return!t.silent&&o.length&&(t.changes={added:[],merged:[],removed:o},this.trigger("update",this,t)),i?o[0]:o},set:function(e,t){if(null!=e){(t=n.extend({},b,t)).parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var i,o,r=!n.isArray(e);e=r?[e]:e.slice();var a=t.at;null!=a&&(a=+a),a>this.length&&(a=this.length),a<0&&(a+=this.length+1);var s=[],l=[],c=[],u=[],p={},d=t.add,h=t.merge,f=t.remove,m=!1,g=this.comparator&&null==a&&!1!==t.sort,y=n.isString(this.comparator)?this.comparator:null;for(o=0;o<e.length;o++){i=e[o];var v=this.get(i);if(v){if(h&&i!==v){var w=this._isModel(i)?i.attributes:i;t.parse&&(w=v.parse(w,t)),v.set(w,t),c.push(v),g&&!m&&(m=v.hasChanged(y))}p[v.cid]||(p[v.cid]=!0,s.push(v)),e[o]=v}else d&&(i=e[o]=this._prepareModel(i,t))&&(l.push(i),this._addReference(i,t),p[i.cid]=!0,s.push(i))}if(f){for(o=0;o<this.length;o++)p[(i=this.models[o]).cid]||u.push(i);u.length&&this._removeModels(u,t)}var _=!1;if(s.length&&!g&&d&&f?(_=this.length!==s.length||n.some(this.models,function(e,t){return e!==s[t]}),this.models.length=0,k(this.models,s,0),this.length=this.models.length):l.length&&(g&&(m=!0),k(this.models,l,null==a?this.length:a),this.length=this.models.length),m&&this.sort({silent:!0}),!t.silent){for(o=0;o<l.length;o++)null!=a&&(t.index=a+o),(i=l[o]).trigger("add",i,this,t);(m||_)&&this.trigger("sort",this,t),(l.length||u.length||c.length)&&(t.changes={added:l,removed:u,merged:c},this.trigger("update",this,t))}return r?e[0]:e}},reset:function(e,t){t=t?n.clone(t):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(this._isModel(e)?e.attributes:e)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw Error("Cannot sort a set without a comparator");e||(e={});var i=t.length;return n.isFunction(t)&&(t=t.bind(this)),1===i||n.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){var t=(e=n.extend({parse:!0},e)).success,i=this;return e.success=function(n){i[e.reset?"reset":"set"](n,e),t&&t.call(e.context,i,n,e),i.trigger("sync",i,n,e)},W(this,e),this.sync("read",this,e)},create:function(e,t){var i=(t=t?n.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;i||this.add(e,t);var o=this,r=t.success;return t.success=function(e,t,n){i&&o.add(e,n),r&&r.call(n.context,e,t,n)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},values:function(){return new S(this,E)},keys:function(){return new S(this,T)},entries:function(){return new S(this,x)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(this._isModel(e))return e.collection||(e.collection=this),e;(t=t?n.clone(t):{}
vendor: 5,083 bytes, line 5
5).collection=this;var i=new this.model(e,t);return i.validationError?(this.trigger("invalid",this,i.validationError,t),!1):i},_removeModels:function(e,t){for(var n=[],i=0;i<e.length;i++){var o=this.get(e[i]);if(o){var r=this.indexOf(o);this.models.splice(r,1),this.length--,delete this._byId[o.cid];var a=this.modelId(o.attributes);null!=a&&delete this._byId[a],t.silent||(t.index=r,o.trigger("remove",o,this,t)),n.push(o),this._removeReference(o,t)}}return n},_isModel:function(e){return e instanceof y},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes);null!=n&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes);null!=n&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,i){if(t){if(("add"===e||"remove"===e)&&n!==this)return;if("destroy"===e&&this.remove(t,i),"change"===e){var o=this.modelId(t.previousAttributes()),r=this.modelId(t.attributes);o!==r&&(null!=o&&delete this._byId[o],null!=r&&(this._byId[r]=t))}}this.trigger.apply(this,arguments)}});var _="function"==typeof Symbol&&Symbol.iterator;_&&(v.prototype[_]=v.prototype.values);var S=function(e,t){this._collection=e,this._kind=t,this._index=0},E=1,T=2,x=3;_&&(S.prototype[_]=function(){return this}),S.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var e,t=this._collection.at(this._index);if(this._index++,this._kind===E)e=t;else{var n=this._collection.modelId(t.attributes);e=this._kind===T?n:[n,t]}return{value:e,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var O=t.View=function(e){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(e,A)),this._ensureElement(),this.initialize.apply(this,arguments)},C=/^(\S+)\s*(.*)$/,A=["model","collection","el","id","attributes","className","tagName","events"];n.extend(O.prototype,s,{tagName:"div",$:function(e){return this.$el.find(e)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=n.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var i=e[t];if(n.isFunction(i)||(i=this[i]),i){var o=t.match(C);this.delegate(o[1],o[2],i.bind(this))}}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}});var P=function(e,t,n,i){switch(t){case 1:return function(){return e[n](this[i])};case 2:return function(t){return e[n](this[i],t)};case 3:return function(t,o){return e[n](this[i],R(t,this),o)};case 4:return function(t,o,r){return e[n](this[i],R(t,this),o,r)};default:return function(){var t=a.call(arguments);return t.unshift(this[i]),e[n].apply(e,t)}}},N=function(e,t,i,o){n.each(i,function(n,i){t[i]&&(e.prototype[i]=P(t,n,i,o))})},R=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?I(e):n.isString(e)?function(t){return t.get(e)}:e},I=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}};n.each([[v,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[y,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(e){var t=e[0],i=e[1],o=e[2];t.mixin=function(e){var i=n.reduce(n.functions(e),function(e,t){return e[t]=0,e},{});N(t,e,i,o)},N(t,n,i,o)}),t.sync=function(e,i,o){var r=D[e];n.defaults(o||(o={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var a={type:r,dataType:"json"};if(o.url||(a.url=n.result(i,"url")||H()),null==o.data&&i&&("create"===e||"update"===e||"patch"===e)&&(a.contentType="application/json",a.data=JSON.stringify(o.attrs||i.toJSON(o))),o.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}
vendor: 5,417 bytes, line 5
5),o.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){a.type="POST",o.emulateJSON&&(a.data._method=r);var s=o.beforeSend;o.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",r),s)return s.apply(this,arguments)}}"GET"===a.type||o.emulateJSON||(a.processData=!1);var l=o.error;o.error=function(e,t,n){o.textStatus=t,o.errorThrown=n,l&&l.call(o.context,e,t,n)};var c=o.xhr=t.ajax(n.extend(a,o));return i.trigger("request",i,c,o),c};var D={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var L=t.Router=function(e){e||(e={}),this.preinitialize.apply(this,arguments),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},M=/\((.*?)\)/g,U=/(\(\?)?:\w+/g,F=/\*\w+/g,j=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(L.prototype,s,{preinitialize:function(){},initialize:function(){},route:function(e,i,o){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(i)&&(o=i,i=""),o||(o=this[i]);var r=this;return t.history.route(e,function(n){var a=r._extractParameters(e,n);!1!==r.execute(o,a,i)&&(r.trigger.apply(r,["route:"+i].concat(a)),r.trigger("route",i,a),t.history.trigger("route",r,i,a))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return RegExp("^"+(e=e.replace(j,"\\$&").replace(M,"(?:$1)?").replace(U,function(e,t){return t?e:"([^/?]+)"}).replace(F,"([^?]*?)"))+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var i=e.exec(t).slice(1);return n.map(i,function(e,t){return t===i.length-1?e||null:e?decodeURIComponent(e):null})}});var V=t.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},B=/^[#\/]|\s+$/g,q=/^\/+|\/+$/g,$=/#.*$/;V.started=!1,n.extend(V.prototype,s,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(B,"")},start:function(e){if(V.started)throw Error("Backbone.history has already been started");if(V.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.history&&this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(q,"/"),this._wantsHashChange&&this._wantsPushState){if(this._hasPushState||this.atRoot())this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0});else{var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,o=i.insertBefore(this.iframe,i.firstChild).contentWindow;o.document.open(),o.document.close(),o.location.hash="#"+this.fragment}var r=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?r("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?r("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),V.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!V.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;(""===e||"?"===e.charAt(0))&&(n=n.slice(0,-1)||"/");var i=n+e;e=e.replace($,"");var o=this.decodeFragment(e);
5if(this.fragment!==o){if(this.fragment=o,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,i);else if(!this._wantsHashChange)return this.location.assign(i);else if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;t.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,e,t.replace)}if(t.trigger)return this.loadUrl(e)}},_updateHash:function(e,t,n){if(n){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+t)}else e.hash="#"+t}}),t.history=new V,y.extend=v.extend=L.extend=O.extend=V.extend=function(e,t){var i,o=this;return i=e&&n.has(e,"constructor")?e.constructor:function(){return o.apply(this,arguments)},n.extend(i,o,t),i.prototype=n.create(o.prototype,e),i.prototype.constructor=i,i.__super__=o.prototype,i};var H=function(){throw Error('A "url" property or function must be specified')},W=function(e,t){var n=t.error;t.error=function(i){n&&n.call(t.context,e,i,t),e.trigger("error",e,i,t)}};return t})}(0,a2);var a6="__STATE__",a5="FETCH_DATA",a9="PAGINATION_DATA",a7="DEFAULT_PARAMS",se="LINK_BY_HEADER";let st=a2.Collection.extend({params:{},preinitialize:function(e,t){let n=new a2.Model,i=rN.defaults(t&&t.params||{},rN.result(this,"params")||{});n.set(a7,i),this[a6]=n,rN.isFunction(this.model)&&0===this.model.length&&!0!==this.model.isCourageModel&&(this.model=rN.result(this,"model")),a2.Collection.prototype.preinitialize.apply(this,arguments)},sync:function(e,t,n){var i=this,o=n.success;return n.success=function(e,t,n){(function(e,t){try{var n=function(e){for(var t=/[^()<>@,;:"/[\]?={} \t]+=(([^()<>@,;:"/[\]?={} \t]+)|("[^"]*"))/g,n=e.match(/<[^>]*>\s*(\s*;\s*[^()<>@,;:"/[\]?={} \t]+=(([^()<>@,;:"/[\]?={} \t]+)|("[^"]*")))*(,|$)/g),i={},o=0;o<n.length;o++){var r=n[o].split(">"),a=r[0].substring(1),s={href:void 0,rel:void 0};s.href=a;for(var l=r[1].match(t),c=0;c<l.length;c++){var u,p=l[c].split("=");s[p[0]]='"'===(u=p[1]).charAt(0)&&'"'===u.charAt(u.length-1)?u.substring(1,u.length-1):u}void 0!==s.rel&&(i[s.rel]=s)}return i}(t.getResponseHeader("link"));e[a6].set(se,!0),e.setPagination(n.next.href)}catch(t){e[a6].get(se)&&e.setPagination(null)}})(i,n),o.apply(null,arguments)},a2.Collection.prototype.sync.call(this,e,t,n)},fetch:function(e){e||(e={});var t=this[a6],n=t.get("XHR");return e.data=rN.extend({},t.get(a7),e.data||{}),e.fromFetch=!0,t.set(a5,e.data),n&&n.abort&&!1!==e.abort&&n.abort(),n=a2.Collection.prototype.fetch.call(this,e),t.set("XHR",n),n},setPagination:function(e,t){rN.isString(e)&&e&&(e=function(e){for(var t={},n=e&&e.split("?")[1],i=n&&n.split("#")[0],o=i?i.split("&"):[],r=0;r<o.length;r++){var a=decodeURIComponent(o[r]).replace(/\+/g," ").split("=");t[a.shift()]=a.join("=")}return t}(e)),!rN.isObject(e)||rN.isArray(e)||!rN.size(e)?e=null:t&&t.fromFetch&&(e=rN.extend({},this.getFetchData(),e)),this[a6].set(a9,e)},getFetchData:function(){return this[a6].get(a5)||{}},getPaginationData:function(){return this[a6].get(a9)||{}},hasMore:function(){return rN.size(this.getPaginationData())>0},fetchMore:function(){if(!this.hasMore())throw Error("Invalid Request");return this.fetch({data:this.getPaginationData(),add:!0,remove:!1,update:!0})},reset:function(e,t){return t||(t={}),t.fromFetch||this.setPagination(null),a2.Collection.prototype.reset.apply(this,arguments)},where:function(e,t){return rN.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},create:function(e,t){return t||(t={}),rN.result(e,"urlRoot")||(t.url=rN.result(this,"url")),a2.Collection.prototype.create.call(this,e,t)},_reset:function(){a2.Collection.prototype._reset.call(this),this._byId=Object.create(null)}});st.isCourageCollection=!0;var sn=st.extend({secureJSON:!1,constructor:function(){st.apply(this,arguments),rN.result(this,"secureJSON")&&(this.sync=rN.wrap(this.sync,function(e,t,n,i){return e.call(this,t,n,rN.extend({dataType:"secureJSON"},i))}))}});function si(e,...t){window.console&&window.okta&&window.okta.debug&&window.console[e](...t)}var so={trace:function(...e){return si("trace",...e)},dir:function(...e){return si("dir",...e)},time:function(...e){return si("time",...e)},timeEnd:function(...e){return si("timeEnd",...e)},group:function(...e){return si("group",...e)},groupEnd:function(...e){return si("groupEnd",...e)},assert:function(...e){return si("assert",...e)},log:function(...e){return si("log",...e)},info:function(...e){return si("info",...e)},warn:function(...e){return si("warn",...e)},error:function(...e){return si("error",...e)}};function sr(e,t){var n={};return n[e.name]=t,n}function sa(e,t){var n;return n=rN.isString(e)?{type:e}:rN.isArray(e)?{type:e[0],required:e[1],value:e[2]}:rN.clone(e),rN.defaults(n,{required:!1,name:t}),n}function ss(e,t,n){if(!t.test(e))return n}var sl={email:function(e){return ss(e,/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,o.ERROR_INVALID_FORMAT_EMAIL)},uri:function(e){return ss(e,/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,o.ERROR_INVALID_FORMAT_URI)},ipv4:function(e){return ss(e,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,o.ERROR_INVALID_FORMAT_IPV4)},hostname:function(e){return ss(e,/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/,o.ERROR_INVALID_FORMAT_HOSTNAME)}};(o=a2.Model.extend({props:{},derived:{},local:{},flat:!0,defaults:{},preinitialize:function(e,...t){this.options=e||{};var n=this.__schema__={},i=[];n.computedProperties={},n.props=rN.clone(rN.result(this,"props")||{}),n.derived=rN.clone(rN.result(this,"derived")||{}),n.local=rN.clone(rN.result(this,"local")||{});var o={};if(rN.each(rN.extend({},n.props,n.local),function(e,t){var n=sa(e,t);rN.isUndefined(n.value)||(o[t]=n.value),"object"===n.type&&i.push(t)},this),rN.size(o)){var r=rN.result(this,"defaults");this.defaults=function(){return rN.defaults({},o,r)}}this.validate=rN.wrap(this.validate,function(e){var t=rN.rest(arguments),n=rN.extend(this._val
5idateSchema.apply(this,t),e.apply(this,t));return rN.size(n)&&n||void 0}),this.parse=rN.wrap(this.parse,function(e){var t=e.apply(this,rN.rest(arguments));return rN.result(this,"flat")&&(t=function e(t,n,i,o){var r=rN.contains(n,i);return o||(o={}),!r&&rN.isObject(t)&&!rN.isArray(t)&&!rN.isFunction(t)?rN.each(t,function(t,r){e(t,n,i?i+"."+r:r,o)}):void 0!==i&&(o[i]=t),o}(t,i)),t}),a2.Model.prototype.preinitialize.call(this,e,...t)},constructor:function(){a2.Model.apply(this,arguments);var e=this.__schema__;rN.each(e.derived,function(t,n){e.computedProperties[n]=this.__getDerivedValue(n);var i=(t&&t.type||t.deps)&&t.deps||[];i.length&&this.on("cache:clear change:"+i.join(" change:"),function(){var t=this.__getDerivedValue(n);t!==e.computedProperties[n]&&(e.computedProperties[n]=t,this.trigger("change:"+n,this,t))},this)},this),this.on("sync",function(){this.__syncedData=this.toJSON()},this)},validate:function(){},allows:function(e){var t=this.__schema__,n=rN.extend({},t.props,t.local);return rN.has(n,e)||so.warn("Field not defined in schema",e),!0},getPropertySchema:function(e){var t=this.__schema__;return rN.reduce([t.props,t.local],function(t,n){return t||sa(n[e],e)},null)},set:function(e,t){"object"==typeof e?n=e:(n={})[e]=t,rN.each(n,function(e,t){if(rN.has(this.__schema__.derived,t))throw Error(`overriding derived properties is not supported: ${t}`)},this);var n,i=[];if(rN.each(n,function(e,t){this.allows(t)||i.push(t)},this),i.length)throw Error(`field not allowed: ${i.join(", ")}`);return a2.Model.prototype.set.apply(this,arguments)},get:function(e){var t=this.__schema__;return rN.has(t.derived,e)?!1!==t.derived[e].cache?t.computedProperties[e]:this.__getDerivedValue(e):a2.Model.prototype.get.apply(this,arguments)},toJSON:function(e){e||(e={});var t,n=rN.clone(a2.Model.prototype.toJSON.apply(this,arguments)),i=this.__schema__;return e.verbose?rN.each(i.derived,function(e,t){n[t]=this.get(t)},this):n=rN.omit(n,rN.keys(i.local)),this.flat&&(t=n,rN.each(t,function(e,t,n){if(-1!==t.indexOf(".")){for(var i,o=n,r=t.split(".");void 0!==(i=r.shift());)o[i]||(o[i]=r.length?{}:e),o=o[i];delete n[t]}}),n=t),n},reset:function(e){this.clear(e),this.set(rN.result(this,"defaults"),e)},isSynced:function(){return rN.isEqual(this.__syncedData,this.toJSON())},validateField:function(e){var t=e&&this.getPropertySchema(e);return t&&function e(t,n){var i,r,a=rN.partial(sr,t),s=!rN.isUndefined(n)&&!rN.isNull(n);if(Array.isArray(t.validate)){let e;let i=[],o=!1;return(t.validate.forEach(t=>{e=!!n&&"regex"===t.type.toLowerCase()&&new RegExp(t.value.pattern,t.value.flags||"").test(n),o=o||!e,i.push({message:t.hasOwnProperty("message")?t.message:"",passed:e})}),o)?a(i):void 0}if(t.required&&(!s||rN.isNull(n)||""===n))return a(o.ERROR_BLANK);if(i=rN["is"+t.type.toLowerCase().replace(/\b[a-z]/g,function(e){return e.toUpperCase()})],s&&"any"!==t.type&&(!rN.isFunction(i)||!i(n)))return a(o.ERROR_WRONG_TYPE);if(n&&"string"===t.type){var l,c,u=(l=rN.partial(sr,t),(c=function(e,t){var n=sl[e.format];if(e.format&&!n)throw TypeError(e.format+" is not a supported string format");return n&&n(t)}(t,n))?l(c):n&&t.minLength&&n.length<t.minLength?l(o.ERROR_STRING_STRING_MIN_LENGTH):n&&t.maxLength&&n.length>t.maxLength?l(o.ERROR_STRING_STRING_MAX_LENGTH):void 0);if(u)return u}if(s&&t.values&&!rN.contains(t.values,n))return a(o.ERROR_NOT_ALLOWED);if(rN.isFunction(t.validate)){var p=t.validate(n);if(rN.isString(p)&&p)return a(p);if(!1===p)return a(o.ERROR_INVALID)}if(s&&"array"===t.type&&(r=function(t,n){if(t.minItems&&n.length<t.minItems)return"model.validation.field.array.minItems";if(t.maxItems&&n.length>t.maxItems)return"model.validation.field.array.maxItems";if(t.uniqueItems&&n.length>rN.uniq(n).length)return o.ERROR_IARRAY_UNIQUE;if(t.items)for(var i=sa(t.items,"placeholder"),r=0;r<n.length;r++){var a=e(i,n[r]);if(a)return a.placeholder}}(t,n)))return a(r)}(t,this.get(e))},_validateSchema:function(){var e=this.__schema__;return rN.reduce(rN.extend({},e.props,e.local),function(e,t,n){return rN.extend(e,this.validateField(n)||{})},{},this)},__getDerivedValue:function(e){var t=this.__schema__.derived[e];if(rN.isString(t)){var n=t;t={deps:[n],fn:function(){return this.get(n)}}}var i=t.deps||[];return t.fn.apply(this,rN.map(i,this.get,this))}},{ERROR_BLANK:"model.validation.field.blank",ERROR_WRONG_TYPE:"model.validation.field.wrong.type",ERROR_NOT_ALLOWED:"model.validation.field.value.not.allowed",ERROR_INVALID:"model.validation.field.invalid",ERROR_IARRAY_UNIQUE:"model.validation.field.array.unique",ERROR_INVALID_FORMAT_EMAIL:"model.validation.field.invalid.format.email",ERROR_INVALID_FORMAT_URI:"model.validation.field.invalid.format.uri",ERROR_INVALID_FORMAT_IPV4:"model.validation.field.invalid.format.ipv4",ERROR_INVALID_FORMAT_HOSTNAME:"model.validation.field.invalid.format.hostname",ERROR_STRING_STRING_MIN_LENGTH:"model.validation.field.string.minLength",ERROR_STRING_STRING_MAX_LENGTH:"model.validation.field.string.maxLength"})).isCourageModel=!0;var sc=o,su=sc.extend({secureJSON:!1,_builtInLocalProps:{__edit__:"boolean",__pending__:"boolean"},preinitialize:function(){this.local=rN.defaults({},rN.result(this,"local"),this._builtInLocalProps),sc.prototype.preinitialize.apply(this,arguments)},constructor:function(){sc.apply(this,arguments),rN.result(this,"secureJSON")&&(this.sync=rN.wrap(this.sync,function(e,t,n,i){return e.call(this,t,n,rN.extend({dataType:"secureJSON"},i))}))}});let sp=function(e){let t=rN.omit(e.local,rN.keys(e._builtInLocalProps));return rN.size(e.props)+rN.size(t)>0};var sd=su.extend({flat:!1,constructor:function(){su.apply(this,arguments),this.on("sync",this._setSynced)},allows:function(){return!sp(this)||su.prototype.allows.apply(this,arguments)},set:function(e,t){let n;return"object"==typeof e?n=e:(n={})[e]=t,rN(n).each(function(e,t){e&&rN.isArray(e.__attributes)&&this.on("change:"+e.__attributes.join(" change:"),function(){let e=this.get(t);e!==this.__schema__.computedProperties[t]&&(this.__schema__.computedProperties[t]=e,this.trigger("change:"+t,e))},this)},this),su.prototype.set.apply(this,arguments)},get:function(){let e=su.prototype.get.apply(this,arguments);return rN.isFunction(e)?e.apply(this,rN.map(e.__attributes||[],this.get,this)):e},toJSON:function(e){e||(e={});let t=su.prototype.toJSON.apply(this,arguments);return rN(t).each(function(n,i){"function"==typeof n&&(e.verbose?t[i]=this.get(i):delete t[i])},this),e.verbose||rN(t).each(function(e,n){/^__\w+__$/.test(n)&&delete t[n]}),t},sanitizeAttributes:function(e){let t={};return rN.each(e,function(e,n){rN.isFunction(e)||(t[n]=e)}),t},reset:function(e){this.clear(e),this.set(this.sanitizeAttributes(this.defaults),e)},clear:function(e){let t={};return rN.each(this.sanitizeAttributes(this.attributes),function(e,n){t[n]=void 0}),this.set(t,rN.extend({},e,{unset:!0}))},_setSynced:function(e){this._syncedData=e&&rN.isFunction(e.toJSON)?e.toJSON():{}},_getSynced:function(){return this._syncedData},isSynced:function(){return rN.isEqual(this._getSynced(),this.toJSON())}},{ComputedProperty:function(e,t){return t||"function"!=typeof e?t.__attributes=e:t=e,t}});a4().ajaxSetup({beforeSend:function(e){e.setRequestHeader("X-Okta-XsrfToken",a4()("#_xsrfToken").text())},converters:{"text secureJSON":function(e){return"while(1){};"===e.substring(0,11)&&(e=e.substring(11)),JSON.parse(e)}}});let sh=a4();window.jQueryCourage=sh;let sf={"&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","/":"/"},sm=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@(?!-)((\[?[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\]?)|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,sg=e=>{if(/-/.test(e)){let t=e.split("-");return t[1]=t[1].toUpperCase(),t.join("_")}return e};function sy(){return window&&window.okta&&window.okta.locale?window.okta.isEnableBcp47OktaUi?window.okta.locale:window.okta.locale.toLowerCase():"en"}function sv(e){if(!e)return r8[rN.keys(r8)[0]];let t=sg(sy());return r8[`${e}_${t}`]||r8[e]}
5function sb(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}function sw(e,t,n){if(window.CustomEvent||(window.CustomEvent=sb),"function"==typeof window.CustomEvent){let i=new CustomEvent("okta-i18n-error",{detail:{type:"l10n-error",key:e,bundleName:t,reason:n}});document.dispatchEvent(i)}}let sk={getRawLocale:function(){return sy()},getParsedLocale:function(){return sg(sy())},isLocaleBundleExist:function(e,t){let n=sg(t);return!!r8[`${e}_${n}`]},sprintf:function(){let e=Array.prototype.slice.apply(arguments),t=e.shift(),n=t;function i(){throw Error("Mismatch number of variables: "+arguments[0]+", "+JSON.stringify(e))}for(var o=0,r=e.length;o<r;o++){let r=e[o],a=RegExp("\\{"+o+"\\}","g");t=t.replace(a,r),(null==r||t===n)&&i(),n=t}return/\{[\d+]\}/.test(t)&&i(),t},parseQuery:function(e){let t={},n=decodeURIComponent(e.replace(/\+/g," ")).split("&");for(var i=0;i<n.length;i++){let e=n[i].split("=");t[e.shift()]=e.join("=")}return t},encodeJSObject:function(e){return encodeURIComponent(JSON.stringify(e))},decodeJSObject:function(e){try{return JSON.parse(decodeURIComponent(e))}catch(e){return null}},unescapeHtml:function(e){return String(e).replace(/&[\w#\d]{2,};/g,function(e){return sf[e]||e})},getTemplate:function(e,t){let n=sv(t);return n?n[e]?n[e]:(sw(e,t,"key"),"L10N_ERROR["+e+"]"):(sw(e,t,"bundle"),"L10N_ERROR["+t+"]")},localize:function(e,t,n){let i=sv(t);if(!i)return sw(e,t,"bundle"),"L10N_ERROR["+t+"]";let o=i[e];try{if((n=n&&n.slice?n.slice(0):[]).unshift(o),o=sk.sprintf.apply(null,n))return o;return sw(e,t,"key"),"L10N_ERROR["+e+"]"}catch(n){return sw(e,t,"parameters"),"L10N_ERROR["+e+"]"}},parseFloat:function(e){let t=+e;return"string"==typeof e&&t===parseFloat(e)?t:e},parseInt:function(e){let t=+e;return rN.isString(e)&&t===parseInt(e,10)?t:e},parseObject:function(e){if(!rN.isString(e))return e;try{let t=JSON.parse(e);return sh.isPlainObject(t)?t:e}catch(t){return e}},randomString:function(e){let t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";if(void 0===e)e=rN.random(t.length);else if(0===e)return"";let n=[];for(;e--;)n.push(t[rN.random(t.length-1)]);return n.join("")},endsWith:function(e,t){return t+="",(e+="").length>=t.length&&e.substring(e.length-t.length)===t},isEmail:function(e){let t=sh.trim(e);return!rN.isEmpty(t)&&sm.test(t)}},s_=sk.localize,sS={STRING:"string",NUMBER:"number",INTEGER:"integer",BOOLEAN:"boolean",OBJECT:"object",FORMATDISPLAYTYPE:{"date-time":"date",uri:"uri",email:"email","country-code":"country-code","language-code":"language-code",country_code:"country_code",language_code:"language_code",locale:"locale",timezone:"timezone","ref-id":"reference"},ARRAYDISPLAYTYPE:{arrayofobject:"arrayofobject",arrayofstring:"arrayofstring",arrayofnumber:"arrayofnumber",arrayofinteger:"arrayofinteger","arrayofref-id":"arrayofref-id"},DISPLAYTYPES:{date:{type:"string",format:"date-time"},uri:{type:"string",format:"uri"},email:{type:"string",format:"email"},"country-code":{type:"string",format:"country-code"},"language-code":{type:"string",format:"language-code"},country_code:{type:"string"},language_code:{type:"string"},locale:{type:"string",format:"locale"},timezone:{type:"string",format:"timezone"},string:{type:"string"},number:{type:"number"},boolean:{type:"boolean"},integer:{type:"integer"},reference:{type:"string",format:"ref-id"},arrayofobject:{type:"array",items:{type:"object"}},arrayofstring:{type:"array",items:{type:"string"}},arrayofnumber:{type:"array",items:{type:"number"}},arrayofinteger:{type:"array",items:{type:"integer"}},"arrayofref-id":{type:"array",items:{type:"string",format:"ref-id"}},image:{type:"image"},password:{type:"string"}},SUPPORTSMINMAX:["string","number","integer","password"],SUPPORTENUM:["string","number","integer","object","arrayofstring","arrayofnumber","arrayofinteger","arrayofobject"],DATATYPE:{string:"string",number:"number",boolean:"boolean",integer:"integer",date:"datetime",object:"object",arrayofobject:"object array",arrayofstring:"string array",arrayofnumber:"number array",arrayofinteger:"integer array","arrayofref-id":"reference array","country-code":"country code","language-code":"language code",country_code:"country code",language_code:"language code",reference:"reference",timezone:"timezone",image:"image"},MUTABILITY:{READONLY:"READ_ONLY",WRITEONLY:"WRITE_ONLY",READWRITE:"READ_WRITE",IMMUTABLE:"IMMUTABLE"},SCOPE:{NONE:"NONE",SELF:"SELF",SYSTEM:"SYSTEM"},DISPLAYSCOPE:{SELF:"User personal",SYSTEM:"System",NA:"None"},UNION:{DISABLE:"DISABLE",ENABLE:"ENABLE"},UNION_OPTIONS:{DISABLE:s_("universal-directory.profiles.attribute.form.union.enable.display","courage"),ENABLE:s_("universal-directory.profiles.attribute.form.union.disable.display","courage")},PERMISSION:{HIDE:"HIDE",READ_ONLY:"READ_ONLY",WRITE_ONLY:"WRITE_ONLY",READ_WRITE:"READ_WRITE"},ENDUSER_ATTRIBUTE_PERMISSION_OPTIONS:{HIDE:s_("universal-directory.profiles.attribute.enduser.permission.hide","courage"),READ_ONLY:s_("universal-directory.profiles.attribute.enduser.permission.readonly","courage"),READ_WRITE:s_("universal-directory.profiles.attribute.enduser.permission.readwrite","courage")},ATTRIBUTE_LEVEL_MASTERING_OPTIONS:{INHERIT:s_("universal-directory.profiles.attribute.source.inherit","courage"),OKTA_MASTERED:s_("universal-directory.profiles.attribute.source.oktamastered","courage"),OVERRIDE:s_("universal-directory.profiles.attribute.source.override","courage")},USERNAMETYPE:{NONE:"non-username",OKTA_TO_APP:"okta-to-app-username",OKTA_TO_AD:"okta-to-ad-username",APP_TO_OKTA:"app-to-okta-username",IDP_TO_OKTA:"idp-to-okta-username"},LOGINPATTERNFORMAT:{EMAIL:"EMAIL",CUSTOM:"CUSTOM",NONE:"NONE"},UNIQUENESS:{NOT_UNIQUE:"NOT_UNIQUE",PENDING_UNIQUENESS:"PENDING_UNIQUENESS",UNIQUE_VALIDATED:"UNIQUE_VALIDATED"},getDisplayType:function(e,t,n,i){let o;return e&&(o=t?this.FORMATDISPLAYTYPE[t]:n?this.ARRAYDISPLAYTYPE[e+"of"+n]:e),o||(o=void 0===i?"":i),o},getSourceUsernameType:function(e,t,n){let i=this.USERNAMETYPE.NONE;return"oktaToApp"===e?"userName"===t?i=this.USERNAMETYPE.OKTA_TO_APP:"cn"===t&&(i=this.USERNAMETYPE.OKTA_TO_AD):"appToOkta"===e&&"login"===t&&(i="saml_idp"===n?this.USERNAMETYPE.IDP_TO_OKTA:this.USERNAMETYPE.APP_TO_OKTA),i},isArrayDataType:function(e){return rN.contains(rN.values(this.ARRAYDISPLAYTYPE),e)},isObjectDataType:function(e){return this.DATATYPE.object===e}},sE="name",sT="_enum_";function sx(e){return rN.all(e,sh.isPlainObject)?sO(e)?e:function(e){let t=rN.partial(rN.has,rN,sE);return rN.all(e,t)?rN.chain(e).filter(function(e){return sh.isPlainObject(e)&&rN.has(e,sE)}).map(function(e){return{const:e,title:e[sE]}}
5).value():sC(e)}(e):sC(e)}function sO(e){return rN.isArray(e)&&rN.all(e,function(e){return rN.has(e,"const")&&rN.has(e,"title")})}function sC(e){return rN.map(e,function(e){return{const:e,title:rN.isObject(e)?JSON.stringify(e):rN.isNumber(e)?e+"":e}})}function sA(e){let t=rN.findIndex(this.options.params.enumOneOf,function(t){return rN.isObject(e)?rN.isEqual(t.const,e):t.const===e});return t>-1?`${sT}${t}`:e}function sP(e){if(!rN.isString(e)||0!==e.indexOf(sT))return e;let t=e.replace(sT,""),n=this.options.params&&rN.isArray(this.options.params.enumOneOf)?this.options.params.enumOneOf[t]:null;return rN.has(n,"const")?n.const:n}function sN(e){return rN.map(e,sP.bind(this))}function sR(e){return rN.map(e,sA.bind(this))}var sI={getEnumInputOptions:function(e){let t=sx(e.enumValues),n={name:e.name,label:e.title,readOnly:e.readOnly,customExplain:e.explain,params:{enumOneOf:t},options:sO(t)?rN.reduce(t,function(e,t,n){return e[`${sT}${n}`]=t.title,e},{}):{}};return sS.isArrayDataType(e.displayType)?(n.type="checkboxset",n.to=sN,n.from=sR):(n.type="select",n.to=sP,n.from=sA),n.input=null,n},convertToOneOf:sx,isConstraintValueMatchType:function(e,t){switch(t){case sS.STRING:return rN.isString(e);case sS.NUMBER:return rN.isNumber(e)||rN.isNumber(sk.parseFloat(sh.trim(e)));case sS.INTEGER:return function(e){let t=rN.isNumber(e)?e:sk.parseInt(sh.trim(e));return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}(e);case sS.OBJECT:return function(e){if(rN.isObject(e)&&!rN.isArray(e))return!0;let t=sk.parseObject(sh.trim(e));return rN.isObject(t)&&!rN.isArray(t)}(e)}}};let sD=sk.localize,sL=sS.STRING,sM=sS.NUMBER,sU=sS.INTEGER,sF=sS.OBJECT,sj=sd.extend({defaults:{description:void 0,minLength:void 0,maxLength:void 0,format:void 0},parse:function(e){if(rN.isString(e.format)){let t=/^\/(.+)\/$/.exec(e.format);t&&(e.format=t[1])}return e}}),sV=sn.extend({model:sj}),sB=sV.extend({_type:"allOf"}),sq=sV.extend({_type:"oneOf"}),s$=sV.extend({_type:"noneOf"}),sH={string:sD("schema.validation.field.value.must.string","courage"),number:sD("schema.validation.field.value.must.number","courage"),integer:sD("schema.validation.field.value.must.integer","courage"),object:sD("schema.validation.field.value.must.object","courage")},sW=/[^a-zA-Z0-9-]/,sz={between:"_checkBetweenConstraints",greaterThan:"_checkGreaterThanConstraint",lessThan:"_checkLessThanConstraint",equals:"_checkEqualsConstraint"},sK=sd.extend({idAttribute:"name",local:{__oneOf__:{type:"array",minItems:1}},defaults:{name:"",title:void 0,type:void 0,description:void 0,required:!1,format:void 0,union:void 0,subSchemas:void 0,settings:{permissions:{SELF:sS.PERMISSION.READ_ONLY}},unique:void 0,__metadata__:void 0,__isSensitive__:sd.ComputedProperty(["settings"],function(e){return!!(e&&e.sensitive&&"NOT_SENSITIVE"!==e.sensitive)}),__isPendingSensitive__:sd.ComputedProperty(["settings"],function(e){return!!(e&&e.sensitive&&"PENDING_SENSITIVE"===e.sensitive)}),__unique__:!1,__isUniqueValidated__:sd.ComputedProperty(["unique"],function(e){return e===sS.UNIQUENESS.UNIQUE_VALIDATED}),__isPendingUniqueness__:sd.ComputedProperty(["unique"],function(e){return e===sS.UNIQUENESS.PENDING_UNIQUENESS}),__isUniqueness__:sd.ComputedProperty(["__isUniqueValidated__","__isPendingUniqueness__"],function(e,t){return e||t}),__canBeSensitive__:sd.ComputedProperty(["__metadata__"],function(e){return!!(e&&e.sensitivizable)}),__userPermission__:sS.PERMISSION.READ_ONLY,__displayType__:void 0,__displayTypeLabel__:sd.ComputedProperty(["__displayType__"],function(e){return sS.DATATYPE[e]||e}),__supportsMinMax__:!1,__isReadOnly__:sd.ComputedProperty(["mutability"],function(e){return e===sS.MUTABILITY.READONLY}),__isWriteOnly__:sd.ComputedProperty(["mutability"],function(e){return e===sS.MUTABILITY.WRITEONLY}),__displayScope__:void 0,__isScopeSelf__:sd.ComputedProperty(["scope"],function(e){return e===sS.SCOPE.SELF}),__isNoneScopeArrayType__:sd.ComputedProperty(["__isScopeSelf__","__displayType__"],function(e,t){return!e&&sS.isArrayDataType(t)}),__isImported__:sd.ComputedProperty(["externalName"],function(e){return!!e}),__isFromBaseSchema__:sd.ComputedProperty(["__schemaMeta__"],function(e){return e&&"base"
5===e.name}),__enumDefined__:!1,__supportEnum__:sd.ComputedProperty(["__displayType__"],function(e){return rN.contains(sS.SUPPORTENUM,e)}),__isNumberTypeEnum__:sd.ComputedProperty(["__displayType__"],function(e){return rN.contains([sS.NUMBER,sS.ARRAYDISPLAYTYPE.arrayofnumber],e)}),__isIntegerTypeEnum__:sd.ComputedProperty(["__displayType__"],function(e){return rN.contains([sS.INTEGER,sS.ARRAYDISPLAYTYPE.arrayofinteger],e)}),__isObjectTypeEnum__:sd.ComputedProperty(["__displayType__"],function(e){return rN.contains([sS.OBJECT,sS.ARRAYDISPLAYTYPE.arrayofobject],e)}),__isStringTypeEnum__:sd.ComputedProperty(["__displayType__"],function(e){return rN.contains([sS.STRING,sS.ARRAYDISPLAYTYPE.arrayofstring],e)}),__enumConstraintType__:sd.ComputedProperty(["__isStringTypeEnum__","__isNumberTypeEnum__","__isIntegerTypeEnum__","__isObjectTypeEnum__"],function(e,t,n,i){return e?sL:t?sM:n?sU:i?sF:void 0}),__isEnumDefinedAndSupported__:sd.ComputedProperty(["__enumDefined__","__supportEnum__"],function(e,t){return e&&t}),__isLoginOfBaseSchema__:sd.ComputedProperty(["__isFromBaseSchema__","name"],function(e,t){return e&&"login"===t}),__isLoginFormatRestrictionToEmail__:sd.ComputedProperty(["__loginFormatRestriction__"],function(e){return e===sS.LOGINPATTERNFORMAT.EMAIL})},initialize:function(){sd.prototype.initialize.apply(this,arguments),this.listenTo(this,"change:__displayType__",this._updateTypeFormatConstraints),this.listenTo(this,"change:type change:format change:items",this._updateDisplayType),this.listenTo(this,"change:__minVal__ change:__maxVal__",this._updateMinMax),this.listenTo(this,"change:__equals__",this._convertEqualsToMinMax),this.listenTo(this,"change:__constraint__",this._setConstraintText),this._setConstraintText(),this._setLoginPattern()},parse:function(e){return"object"===(e=rN.clone(e)).type&&"image"===e.extendedType&&(e.type="image"),e.__displayType__=sS.getDisplayType(e.type,e.format,e.items?e.items.format?e.items.format:e.items.type:void 0),this._setRangeConstraints(e),e.__supportsMinMax__=-1!==sS.SUPPORTSMINMAX.indexOf(e.__displayType__),e.__displayScope__=sS.DISPLAYSCOPE[e.scope]||sS.DISPLAYSCOPE.NA,e.settings&&e.settings.permissions&&e.settings.permissions.SELF&&(e.__userPermission__=e.settings.permissions.SELF),this._setMasterOverride(e),this._setSubSchemas(e),this._setUniqueness(e),e}
5,validate:function(){let e=this._validateEnumOneOf();if(e)return e;if(!this.get("__supportsMinMax__")||!this.get("__constraint__"))return;let t=this.get("__constraint__"),n=this[sz[t]];if(rN.isFunction(n))return n.call(this);so.warn("No constraint handler found for: "+t)},_checkBetweenConstraints:function(){let e=this.get("__minVal__"),t=this.get("__maxVal__");if(!e&&!t)return;if(!e)return{__minVal__:sD("schema.validation.field.enter.minimum.number","courage")};if(!t)return{__maxVal__:sD("schema.validation.field.enter.maximum.number","courage")};let n=this._checkIntegerConstraints("__minVal__","Min value");return n||(n=this._checkIntegerConstraints("__maxVal__","Max value"))?n:+e>=+t?{__maxVal__:sD("schema.validation.field.maximum.must.be.greater.than.minimum","courage")}:void 0},_checkGreaterThanConstraint:function(){if(!this.get("__minVal__"))return;let e=this._checkIntegerConstraints("__minVal__","Constraint");if(e)return e},_checkLessThanConstraint:function(){if(!this.get("__maxVal__"))return;let e=this._checkIntegerConstraints("__maxVal__","Constraint");if(e)return e},_checkEqualsConstraint:function(){if(!this.get("__equals__"))return;let e=this._checkIntegerConstraints("__equals__","Constraint");if(e)return e},_checkIntegerConstraints:function(e,t){let n=this.get(e),i={};return isNaN(n)?("Min value"===t?i[e]=sD("schema.validation.field.minimum.value.must.be.number","courage"):"Max value"===t?i[e]=sD("schema.validation.field.maximum.value.must.be.number","courage"):"Constraint"===t&&(i[e]=sD("schema.validation.field.constraint.must.be.number","courage")),i):0>+n?("Min value"===t?i[e]=sD("schema.validation.field.minimum.number.must.be.greater.than.zero","courage"):"Max value"===t?i[e]=sD("schema.validation.field.maximum.number.must.be.greater.than.zero","courage"):"Constraint"===t&&(i[e]=sD("schema.validation.field.number.must.be.greater.than.zero","courage")),i):void 0},_setMasterOverride:function(e){if(e.settings&&e.settings.masterOverride&&e.settings.masterOverride){let t=e.settings.masterOverride.value;rN.isArray(t)&&!rN.isEmpty(t)?(e.__masterOverrideType__="OVERRIDE",e.__masterOverrideValue__=t||[]):e.__masterOverrideType__=e.settings.masterOverride.type}else e.__masterOverrideType__="INHERIT"},_setRangeConstraints:function(e){e.__displayType__===sL?(e.__minVal__=e.minLength,e.__maxVal__=e.maxLength):(e.__displayType__===sU||e.__displayType__===sM)&&(e.__minVal__=e.minimum,e.__maxVal__=e.maximum),e.__minVal__&&e.__maxVal__?e.__minVal__===e.__maxVal__?(e.__constraint__="equals",e.__equals__=e.__minVal__):e.__constraint__="between":!e.__minVal__&&e.__maxVal__?e.__constraint__="lessThan":!e.__maxVal__&&e.__minVal__&&(e.__constraint__="greaterThan")},_setSubSchemas:function(e){e.allOf?e.subSchemas=new sB(e.allOf,{parse:!0}):e.oneOf?e.subSchemas=new sq(e.oneOf,{parse:!0}):e.noneOf&&(e.subSchemas=new s$(e.noneOf,{parse:!0}))},_setUniqueness:function(e){let t=e&&e.unique;e.__unique__=!!(t&&(t===sS.UNIQUENESS.UNIQUE_VALIDATED||t===sS.UNIQUENESS.PENDING_UNIQUENESS))},_setLoginPattern:function(){if(!this.get("__isLoginOfBaseSchema__"))return;let e=this.get("pattern");".+"===e?this.set("__loginFormatRestriction__",sS.LOGINPATTERNFORMAT.NONE):e?(this.set("__loginFormatRestriction__",sS.LOGINPATTERNFORMAT.CUSTOM),this.set("__loginFormatRestrictionCustom__",this._extractLoginPattern(e))):this.set("__loginFormatRestriction__",sS.LOGINPATTERNFORMAT.EMAIL)},_updateDisplayType:function(){let e=this.get("type");if(e===sL&&this.get("format"))this.set("__displayType__",sS.FORMATDISPLAYTYPE[this.get("format")]);else{let t=this.get("items"),n=t&&(t.format?t.format:t.type);e&&n?this.set("__displayType__",sS.ARRAYDISPLAYTYPE[e+"of"+n]):this.set("__displayType__",e)}},_validateEnumOneOf:function(){if(!this.get("__isEnumDefinedAndSupported__"))return;let e=this.get("__oneOf__")||[];return rN.isEmpty(e)?{__oneOf__:sD("model.validation.field.blank","courage")}:this._isValidateOneOfConstraint(e)?void 0:{__oneOf__:sH[this.get("__enumConstraintType__")]}},_isValidateOneOfConstraint:function(e){let t=this.get("__enumConstraintType__");return rN.all(e,function(e){return sI.isConstraintValueMatchType(e.const,t)})},toJSON:function(){let e=sd.prototype.toJSON.apply(this,arguments);return e.settings={permissions:{}},e.settings.permissions.SELF=this.get("__userPermission__"),this.get("__isSensitive__")&&(e.settings.sensitive=this.get("__isSensitive__")),"image"===this.get("type")&&(e.type="object",e.extendedType="image"),e=this._enumAssignment(e),e=this._attributeOverrideToJson(e),e=this._normalizeUnionValue(e),e=this._patternAssignment(e),e=this._uniquenessAssignment(e)},_attributeOverrideToJson:function(e){let t=this.get("__masterOverrideType__"),n=this.get("__masterOverrideValue__");return"OKTA_MASTERED"===t?e.settings.masterOverride={type:"OKTA_MASTERED"}:"OVERRIDE"===t&&(e.settings.masterOverride={type:"ORDERED_LIST",value:[]},n instanceof sn?rN.each(n.toJSON(),function(t){e.settings.masterOverride.value.push(t.id)}):n instanceof Array&&(e.settings.masterOverride.value=n),rN.isEmpty(e.settings.masterOverride.value)&&delete e.settings.masterOverride),"INHERIT"===t&&delete e.settings.masterOverride,e},_normalizeUnionValue:function(e){return this.get("__isNoneScopeArrayType__")||(e.union=void 0),e},_enumAssignment:function(e){if(!this.get("__isEnumDefinedAndSupported__"))return e;let t=this._getEnumOneOfWithTitleCheck();return"array"===this.get("type")?(delete e.items.enum,e.items.oneOf=t):(delete e.enum,e.oneOf=t),e},_patternAssignment:function(e){if(!this.get("__isLoginOfBaseSchema__")||!this.get("__loginFormatRestriction__"))return e;switch(this.get("__loginFormatRestriction__")){case sS.LOGINPATTERNFORMAT.EMAIL:delete e.pattern;break;case sS.LOGINPATTERNFORMAT.CUSTOM:e.pattern=this._buildLoginPattern(this.get("__loginFormatRestrictionCustom__"));break;case sS.LOGINPATTERNFORMAT.NONE:e.pattern=".+"}return e},_uniquenessAssignment:function(e){return this.get("__unique__")?this.get("__isUniqueness__")||(e.unique=sS.UNIQUENESS.UNIQUE_VALIDATED):delete e.unique,e},_escapedRegexChar:function(e,t){let n=e.charAt(t);return sW.test(n)?"\\"+n:n},_buildLoginPattern:function(e){let t="";for(var n=0;n<e.length;n++)t+=this._escapedRegexChar(e,n);return"["+t+"]+"},_extractLoginPattern:function(e){let t=e.match(/^\[(.*)\]\+/);return t?t[1].replace(/\\(.)/g,"$1"):e},_getEnumOneOfWithTitleCheck:function(){let e=this.get("__oneOf__");return rN.map(e,function(e){return""!==sh.trim(e.title)||(e.title=rN.isString(e.const)?e.const:JSON.stringify(e.const)),e})},_updateTypeFormatConstraints:function(){let e=this.get("__displayType__");this.unset("format",{silent:!0}),this.unset("items",{silent:!0}),this.set(sS.DISPLAYTYPES[e]),e!==sM&&e!==sU&&(this.unset("minimum"),this.unset("maximum")),e!==sL&&(this.unset("minLength"),this.unset("maxLength")),this.unset("__minVal__"),this.unset("__maxVal__"),this.unset("__equals__"),this.set("__supportsMinMax__",-1!==sS.SUPPORTSMINMAX.indexOf(this.get("__displayType__")))},_updateMinMax:function(){let e,t;let n=this.get("__displayType__");n===sL?(e="minLength",t="maxLength"):(n===sU||n===sM)&&(e="minimum",t="maximum"),this.get("__minVal__")?this.set(e,parseInt(this.get("__minVal__"),10)):this.unset(e),this.get("__maxVal__")?this.set(t,parseInt(this.get("__maxVal__"),10)):this.unset(t)},_convertEqualsToMinMax:function(){let e=this.get("__equals__");e&&(this.set("__minVal__",e),this.set("__maxVal__",e))},_setConstraintText:function(){let e=this.get("__constraint__"),t=this.get("__minVal__"),n=this.get("__maxVal__"),i=this.get("__equals__");switch(e){case"between":this.set("__constraintText__","Between "+t+" and "+n);break;case"greaterThan":this.set("__constraintText__","Greater than "+t);break;case"lessThan":this.set("__constraintText__","Less than "+n);break;case"equals":this.set("__constraintText__","Equals "+i);break;default:this.set("__constraintText__","")}},cleanup:function(){"lessThan"===this.get("__constraint__")?this.unset("__minVal__"):"greaterThan"===this.get("__constraint__")&&this.unset("__maxVal__"),this.get("scope")!==sS.SCOPE.SYSTEM&&(!0===this.get("__isScopeSelf__")?this.set({scope:sS.SCOPE.SELF},{silent:!0}):this.unset("scope")),this.get("__unique__")||this.unset("unique")},isEnumType:function(){return!!this.getEnumValues()},getEnumValues:function(){return this.get("oneOf")||this.get("enum")||this.get("items")&&this.get("items").oneOf||this.get("items")&&this.get("items").enum},detectHasEnumDefined:function(){let e=this.getEnumValues();e&&(this.set("__oneOf__",sI.convertToOneOf(e)),this.set("__enumDefined__",!0))}}),sG=sn.extend({model:sK,clone:function(){return new this.constructor(this.toJSON({verbose:!0}),{parse:!0})},areAllReadOnly:function(){return rN.all(this.pluck("__isReadOnly__"))},createModelProperties:function(){return this.reduce(function(e,t){let n=t.get("type");return e[t.id]=rN.clone(sS.DISPLAYTYPES[n]),-1!==sS.SUPPORTSMINMAX.indexOf(n)&&(e[t.id].minLength=t.get("minLength"),e[t.id].maxLength=t.get("maxLength")),"string"===n&&(e[t.id].format=t.get("format")),e},{})}});var sY={Model:sK,Collection:sG};let sJ=function(e){let t=rN.pick(e,"id","name","displayName"),n=rN.map(e.schema.properties,function(e,t){return rN.extend({name:t},e)});return rN.each(n,function(e){e.__schemaMeta__=t,e.__metadata&&(e.__metadata__=e.__metadata,delete e.__metadata)}),n},sQ=sd.extend({defaults:{id:void 0,displayName:void 0,name:void 0},constructor:function(){this.properties=new sY.Collection,sd.apply(this,arguments)},getProperties:function(){return this.properties},clone:function(){let e=sd.prototype.clone.apply(this,arguments);return e.getProperties().set(this.getProperties().toJSON({verbose:!0})),e},parse:function(e){let t=sJ(e);return this.properties.set(t,{parse:!0}),rN.omit(e,"schema")},trimProperty:function(e){return rN.omit(e,"name")},toJSON:function(){let e=sd.prototype.toJSON.apply(this,arguments);return e.schema={properties:{}},this.getProperties().each(function(t){let n=t.toJSON();e.schema.properties[n.name]=this.trimProperty(n)},this),e},save:function(){return this.getProperties().each(function(e){e.cleanup()}),sd.prototype.save.apply(this,arguments)}}),sX=sn.extend({model:sQ});var sZ=()=>{},s0=su.extend({local:function(){let e=window.okta&&window.okta.settings||{},t=window.okta&&window.okta.theme||"";return{orgId:["string",!1,e.orgId],orgName:["string",!1,e.orgName],serverStatus:["string",!1,e.serverStatus],persona:["string",!1,e.persona],isDeveloperConsole:["boolean",!1,e.isDeveloperConsole],isPreview:["boolean",!1,e.isPreview],permissions:["array",!0,e.permissions||[]],theme:["string",!1,t]}},constructor:function(){su.apply(this,arguments),this.features=window._features||[]},hasFeature:function(e){return rN.contains(this.features,e)}
5,hasAnyFeature:function(e){return rN.some(e,this.hasFeature,this)},hasPermission:function(e){return rN.contains(this.get("permissions"),e)},isDsTheme:function(){return"dstheme"===this.get("theme")}}),s1="__children__",s8="__rendered__",s2="__parent__",s3="__children_definitions__",s4="__add_to_container__";function s6(e,t){for(var n=0;n<e[s1].length;n++)if(t.cid===e[s1][n].cid)return n}function s5(){}r=a2.View.extend({preinitialize:function(e){this.options=e||{},rN.extend(this,rN.pick(this.options,"state","settings")),this[s1]=[],this[s8]=!1,this[s2]=null,this[s3]=this.children,this.__original_initialize__=this.initialize,this.initialize=s5},constructor:function(e,...t){a2.View.call(this,e),rN.each(rN.result(this,s3),function(e){this.add.apply(this,rN.isArray(e)?e:[e])},this),delete this[s3];let n=rN.result(this,"autoRender");if(n&&this.model){var i,o,r=rN.isArray(n)?rN.map(n,function(e){return"change:"+e}).join(" "):"change";this.listenTo(this.model,r,function(){this.render()})}this.initialize=this.__original_initialize__,this.initialize.call(this,e,...t),i=this,o=/^(?!(?:delegate|undelegate|_))([a-zA-Z0-9]+)(?:Events)$/,rN.each(rN.allKeys(i),function(e){var t=e.match(o);if(t){var n=rN.result(i,e),r=i.options[t[1]]||i[t[1]];r&&rN.isObject(n)&&rN.isFunction(r.trigger)&&rN.each(n,function(e,t){var n=rN.isFunction(e)?[e]:rN.reduce(e.split(/\s+/),(e,t)=>(rN.isFunction(i[t])&&e.push(i[t]),e),[]);rN.each(n,function(e){i.listenTo(r,t,e)})})}})},unregister:function(e){this.stopListening(e);var t=s6(this,e);rN.isNumber(t)&&this[s1].splice(t,1)},autoRender:!1,template:null,children:[],add:function(e,t,n,i,o){var a,s={},l=rN.toArray(arguments);if(rN.isFunction(e)&&(!e.prototype||!e.prototype.render))throw Error("Type passed to add() is not a View");if(rN.isObject(t)?(t=(s=t).selector,n=s.bubble,i=s.prepend,o=s.options):rN.isObject(n)&&(n=(s=n).bubble,i=s.prepend,o=s.options),rN.isString(e)&&(a=e,e=r.extend({constructor:function(){try{var e=a2.$(a);if(1!==e.length)throw Error("invalid Element");var t=/&(\w+|#x\d+);/g,n=e.prop("outerHTML").replace(t," ").length,i=a.replace(t," ").length;if(n!==i)throw Error("invalid Element");this.template=e.html(),this.el=e.empty()[0]}catch(e){this.template=a}r.apply(this,arguments)}})),e.prototype&&e.prototype instanceof r){var c=rN.omit(rN.extend({},this.options,o),"el");return l[0]=new e(c),this.add.apply(this,l)}if(rN.isNumber(s6(this,e)))throw Error("Duplicate child");return e[s2]=this,e[s4]=(function(t){return function(){if(t&&1!==e[s2].$(t).length)throw Error("Invalid selector: "+t);var n=t?this[s2].$(t):this[s2].$el;this.render(),this.delegateEvents(),i?n.prepend(this.el):n.append(this.el)}}).call(e,t),n&&this.listenTo(e,"all",function(){this.trigger.apply(this,arguments)}),this.rendered()&&e[s4](),this[s1].push(e),this},removeChildren:function(){return this.each(function(e){e.remove()}),this},remove:function(){return this.removeChildren(),this[s2]&&this[s2].unregister(this),a2.View.prototype.remove.apply(this,arguments)},compileTemplate:function(e){return rN.template(e,void 0)},renderTemplate:function(e){if(rN.isString(e)&&(e=this.compileTemplate(e)),rN.isFunction(e))return e(this.getTemplateData())},getTemplateData:function(){var e=this.model&&this.model.toJSON({verbose:!0})||{},t=rN.omit(this.options,["state","settings","model","collection"]);return rN.defaults({},e,t)},render:function(){var e;return this.preRender(),this[s8]=!0,(e=this.renderTemplate(this.template))?this.$el.html(e):this.length&&this.$el.empty(),this.each(function(e){e[s4]()}),this.postRender(),this},preRender:s5,postRender:s5,rendered:function(){return this[s8]},getChildren:function(){return this.toArray()},at:function(e){return this.getChildren()[e]},invoke:function(e){var t=rN.toArray(arguments);return this.each(function(n){n.size()&&n.invoke.apply(n,t),rN.isFunction(n[e])&&n[e].apply(n,t.slice(1))}),this}}),rN.each(["each","map","reduce","reduceRight","find","filter","reject","every","some","contains","toArray","size","first","initial","rest","last","without","indexOf","shuffle","lastIndexOf","isEmpty","chain","where","findWhere"],function(e){r.prototype[e]=function(){var t=rN.toArray(arguments);return t.unshift(rN.toArray(this[s1])),rN[e].apply(rN,t)}}),r.isCourageView=!0;var s9=r,s7={tpl:rN.memoize(function(e){return function(t){return a8.compile(e)(t)}})};let le=rN.clone(a2.Events),lt={constructor:function(e,...t){s9.call(this,e,...t),this.module&&this.$el.attr("data-view",this.module.id)},empty:function(){return this.removeChildren()},compileTemplate:s7.tpl,broadcast:function(){return le.trigger.apply(le,arguments),this},listen:function(e,t){return le.off(e,t),this.listenTo(le,e,t),this},notify:function(e,t,n){return this.broadcast("notification",rN.defaults({message:t,level:e},n)),this},confirm:function(e,t,n,i){let o;return o="object"==typeof e?e:2==arguments.length&&rN.isFunction(t)?{title:"Okta",subtitle:e,ok:t}
5:{title:e,subtitle:t,ok:n,cancelFn:i},rN.isFunction(o.ok)&&(o.ok=rN.bind(o.ok,this)),rN.isFunction(o.cancelFn)&&(o.cancelFn=rN.bind(o.cancelFn,this)),this.broadcast("confirmation",o),this},alert:function(e){return rN.isString(e)&&(e={subtitle:e}),this.confirm(rN.extend({},e,{noCancelButton:!0})),this}};var ln=s9.extend(lt,{decorate:function(e){let t=e.extend({});return rN.defaults(t.prototype,lt),t}});let li={level:"success",hide:!0,fade:400,delay:3e3,width:0,dismissable:!1};var lo=ln.extend({className:"infobox infobox-confirm infobox-confirm-fixed",events:{"click .infobox-dismiss-link":function(e){e.preventDefault(),this.fadeOut()}},template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="infobox-dismiss-link" title="'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"courage",code:"component.dismiss"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:108}}}))+'" href="#"><span class="dismiss-icon"></span></a>'},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<h3>"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:220},end:{line:1,column:229}}}):r)+"</h3>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=p(n,"if").call(s,null!=t?p(t,"dismissable"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:164}}}))?r:"")+'<span class="icon '+u(typeof(a=null!=(a=p(n,"level")||(null!=t?p(t,"level"):t))?a:l)===c?a.call(s,{name:"level",hash:{},data:o,loc:{start:{line:1,column:182},end:{line:1,column:191}}}):a)+'-16"></span>'+(null!=(r=p(n,"if").call(s,null!=t?p(t,"title"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:203},end:{line:1,column:241}}}))?r:"")+"<p>"+u(typeof(a=null!=(a=p(n,"message")||(null!=t?p(t,"message"):t))?a:l)===c?a.call(s,{name:"message",hash:{},data:o,loc:{start:{line:1,column:244},end:{line:1,column:255}}}):a)+"</p>"},useData:!0}),initialize:function(){if(this.options=rN.defaults({},this.options,li),!this.options.message)switch(this.options.level){case"success":this.options.message=sk.localize("notification.default.message.success","courage");break;case"error":this.options.message=sk.localize("notification.default.message.error","courage");break;case"warning":this.options.message=sk.localize("notification.default.message.warning","courage")}this.$el.addClass("infobox-"+this.options.level),this.options.width&&this.$el.width(this.options.width)},getTemplateData:function(){return rN.extend(rN.pick(this.options,"level","message","title"),{dismissable:!1===this.options.hide||!0===this.options.dismissable})},postRender:function(){this.options.hide&&rN.delay(rN.bind(this.fadeOut,this),this.options.delay)},fadeOut:function(){this.$el.fadeOut(this.options.fade,rN.bind(this.remove,this))}});function lr(e,t){let n=rN.result(e,"root")||"";return n&&rN.isString(t)?[n,t].join("/").replace(/\/{2,}/g,"/"):t}let la={root:"",listen:lo.prototype.listen,constructor:function(e={}){this.el=e.el,this.settings=new s0(rN.omit(e,"el")),e.root&&(this.root=e.root),a2.Router.apply(this,arguments),this.listen("notification",this._notify),this.listen("confirmation",this._confirm)},_confirm:function(e={}){let t=new(sZ(rN.pick(e,"title","subtitle","save","ok","cancel","cancelFn","noCancelButton","noSubmitButton","content","danger","type","closeOnOverlayClick","buttonOrder")))({model:this.settings});return t.render(),t},_notify:function(e){let t=new lo(e);return sh("#content").prepend(t.render().el),t},render:function(e,t){this.unload(),t=rN.extend(rN.pick(this,"settings","el"),t||{}),this.controller=new e(t),this.controller.render()},start:function(...e){sh(function(){if(a2.History.started){so.error("History has already been started");return}a2.history.start(...e)})},unload:function(){this.controller&&(this.stopListening(this.controller),this.stopListening(this.controller.state),this.controller.remove())},route:function(e,t,n){return a2.Router.prototype.route.call(this,lr(this,e),t,n)},navigate:function(e,t){return a2.Router.prototype.navigate.call(this,lr(this,e),t)}};var ls=a2.Router.extend(la),ll=su.extend({invoke:function(){let e=rN.toArray(arguments);e.unshift("__invoke__"),this.trigger.apply(this,e)}}),lc=ln.extend({preinitialize:function(e={}){if(this.state=rN.result(this,"state"),!(this.state instanceof ll||e.state instanceof ll)){let t=rN.defaults(function(e){let t={};return rN.each(e,function(e,n){rN.isNull(e)||(t[n]=e)}),t}(e.state),this.state||{});this.state=new ll(t),delete e.state}e.settings||(e.settings=new s0(rN.omit(e||{},"el")),this.listen("notification",ls.prototype._notify),this.listen("confirmation",ls.prototype._confirm)),ln.prototype.preinitialize.call(this,e)},constructor:function(e={}){let t;ln.call(this,e),this.listenTo(this.state,"__invoke__",function(){let e=rN.toArray(arguments),t=e.shift();rN.isFunction(this[t])&&this[t].apply(this,e)}),this.View&&this.View.isCourageView?t=this.View:rN.result(this,"View")&&rN.result(this,"View").isCourageView&&(t=rN.result(this,"View")),t&&this.add(new t(this.toJSON()))},state:{},View:null,render:function(){let e=arguments,t=this;return sh(function(){ln.prototype.render.apply(t,e)}),this},toJSON:function(e){return rN.extend(rN.pick(this,"state","settings","collection","model"),e||{})},remove:function(){return this.removeChildren(),this.stopListening(),this.$el.empty(),this}});function lu(e,t){let n=this.model.get(t);return rN.isFunction(e)?e.call(this,n):e===n}var lp=function(e,t,n){e.model&&rN.isObject(t)&&rN.size(t)&&rN.isFunction(n)&&function(e,t,n){let i=rN.bind(n,e,e,t);e.render=rN.wrap(e.render,function(t){let n=t.call(e);return i({animate:!1}),n}),e.listenTo(e.model,"change:"+rN.keys(t).join(" change:"),function(){i({animate:!0})})}(e,t,function(e,t,i){let o=rN.every(rN.map(t,lu,e));n.call(e,o,i)})};let ld={click:function(e){e.preventDefault(),e.stopPropagation()}};var lh=ln.extend({attributes:function(){let e=this.__getAttribute("attrs");return rN.extend({"data-se":"button"},e)},tagName:"a",template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"icon")||(null!=t?a(t,"icon"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:o,loc:{start:{line:1,column:30},end:{line:1,column:38}}}):r)+'"></span>'},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:67},end:{line:1,column:76}}}):r)},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"icon"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0}
5,end:{line:1,column:54}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"title"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:54},end:{line:1,column:83}}}))?r:"")},useData:!0}),visible:!0,enabled:!0,enableWhen:{},showWhen:{},constructor:function(e){this.options=e||{};let t=this.getTemplateData();this.disabled=!1,ln.apply(this,arguments),this.$el.addClass("link-button"),t.icon&&(this.$el.addClass("link-button-icon"),t.title||this.$el.addClass("icon-only"))},getTemplateData:function(){return{href:this.__getAttribute("href"),title:this.__getAttribute("title"),icon:this.__getAttribute("icon")}},initialize:function(){lp(this,rN.resultCtx(this,"enableWhen",this),this.toggle),lp(this,rN.resultCtx(this,"showWhen",this),this.toggleVisible)},render:function(){ln.prototype.render.apply(this,arguments),rN.result(this,"enabled")||this.toggle(!1),rN.result(this,"visible")||this.toggleVisible(!1);let e=this.getTemplateData();return this.$el.attr("href",e.href||"#"),this},__getAttribute:function(e,t){let n=rN.resultCtx(this.options,e,this);return rN.isUndefined(n)&&(n=rN.result(this,e)),rN.isUndefined(n)?t:n},enable:function(){this.toggle(!0)},disable:function(){this.toggle(!1)},show:function(){this.toggleVisible(!0)},hide:function(){this.toggleVisible(!1)},toggle:function(e){let t=!!e&&rN.result(this,"enabled");this.disabled=!t,this.$el.toggleClass("link-button-disabled btn-disabled disabled",this.disabled),this.delegateEvents(this.disabled?ld:null)},toggleVisible:function(e){let t=!e||!rN.result(this,"visible");this.$el.toggleClass("hide",t)}}),lf=function(e){return(e=rN.clone(e)).attrs=e.attributes,delete e.attributes,lh.extend(rN.extend(e,{events:function(e){let t=rN.extend(e.click?{click:e.click}:{},e.events||{}),n={};return rN.each(t,function(t,i){n[i]=function(n){e.href||(n.preventDefault(),n.stopPropagation()),this.disabled&&"click"===i||t.apply(this,arguments)}}),n}(e)}))};function lm(e){this.options=rN.clone(e||{}),this.cid=rN.uniqueId("class"),this.initialize.apply(this,arguments)}rN.extend(lm.prototype,a2.Events,{initialize:function(){}}),lm.extend=a2.Model.extend;var lg={exports:{}};j=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}return function t(n){function i(t,o,r){if(arguments.length>1){if("number"==typeof(r=e({path:"/"},i.defaults,r)).expires){var a,s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}return o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",o,r.expires&&"; expires="+r.expires.toUTCString(),r.path&&"; path="+r.path,r.domain&&"; domain="+r.domain,r.secure?"; secure":""].join("")}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u<l.length;u++){var p=l[u].split("="),d=p[0].replace(c,decodeURIComponent),h=p.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{if(h=n.read?n.read(h,d):n(h,d)||h.replace(c,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===d){a=h;break}t||(a[d]=h)}catch(e){}}return a}return i.get=i.set=i,i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(t,n){i(t,"",e(n,{expires:-1}))},i.withConverter=t,i}(function(){})},lg.exports=j();var ly=lg.exports;let lv=/^https/.test(window.location.href);var lb=n(34987);let lw=n.n(lb)(),lk=["success","error","target","text"],l_=lm.extend({initialize:function(e,t){let n,i,o;t=rN.pick(t||{},lk),rN.isString(e)&&(n=e),rN.isElement(e)&&(n=e),e instanceof sh&&(n=e.selector),e instanceof s9&&(n=e.el),rN.isFunction(t.target)&&(i=t.target),rN.isElement(t.target)&&(i=rN.constant(t.target)),rN.isString(t.text)?o=rN.constant(t.text):rN.isFunction(t.text)&&(o=t.text),this.__instance=new lw(n,{target:i,text:o}),this.done=rN.partial(this.__setCallback,"success"),this.error=rN.partial(this.__setCallback,"error"),this.done(t.success),this.error(t.error)},__setCallback:function(e,t){if(rN.isFunction(t))return this.__instance.on(e,t),this.__instance}});var lS={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ENTER:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,SPACE:32,BACKSPACE:8,__isKey:function(e,t){return(e.which||e.keyCode)===this[t]},isEnter:function(e){return this.__isKey(e,"ENTER")},isEsc:function(e){return this.__isKey(e,"ESC")},isSpaceBar:function(e){return this.__isKey(e,"SPACE")}},lE={redirect:function(e){window.location=e},reloadPage:function(){window.location.reload()},constantError:function(e){return function(){throw Error(e)}},getUrlQueryString:function(e){rN.isObject(e)||(e={});let t=rN.without(rN.map(e,function(e,t){if(null!=e)return t+"="+encodeURIComponent(e)}),void 0).join("&");return rN.isEmpty(t)?"":"?"+t},isABaseView:function(e){return e instanceof ln||e.prototype instanceof ln||e===ln},isSafari:function(){return/^((?!chrome|android|crios).)*safari/i.test(navigator.userAgent)}};let lT=a8.Utils.escapeExpression;a8.Utils.escapeExpression=function(e){return lT(e).replace(/=/g,"=")};let lx=a8.Utils.escapeExpression;function lO(e){return e&&e.replace(/^\s+|\s+$/g,"")}a8.registerHelper("i18n",function(e){let t;let n=lO(e.hash.code),i=lO(e.hash.bundle),o=lO(e.hash.arguments),r=Object.keys(e.hash).filter(e=>e.match(/^\$\d+/)).map(t=>({tag:t,value:e.hash[t]}));o&&(t=rN.map(lO(o).split(";"),function(e){let t;return e=lO(e),rN.each(e.split("."),e=>{t=t?t[e]:this[e]}),t},this));let a=sk.localize(n,i,t);
5if(r.length<1)return a;let s=lx(a);try{return r.forEach(e=>{s=function(e,t,n){let i=lx(`<${t}>`),o=lx(`</${t}>`),[r,a]=n.split(t);if(e.includes(i)||e.includes(o)){if(n.includes(t)){if(!r||!a)throw Error(`Template value "${n}" must contain beginning and closing tags`)}else throw Error(`Parsed tag "${t}" is not present in "${n}"`)}else throw Error(`Parsed tag "${t}" is not present in "${e}"`);return e.replace(i,r).replace(o,a)}(s,e.tag,e.value)}),new a8.SafeString(s)}catch(e){return so.error(e.toString()),a}});var lC=s9.extend({constructor:function(){if(s9.apply(this,arguments),!this.collection)throw Error("Missing collection");this.listenTo(this.collection,"reset sort",this.reset),this.listenTo(this.collection,"add",this.addItem),this.fetchCollection?this.collection.fetch():this.collection.each(this.addItem,this)},item:null,itemSelector:null,reset:function(){return this.removeChildren(),this.collection.each((e,t)=>{this.addItem(e,t)}),this},addItem:function(e){var t=this.add(this.item,this.itemSelector,{options:{model:e}}).last();return this.state&&this.state.get("trackItemAdded")&&this.state.trigger("itemAdded",t),t.listenTo(e,"destroy remove",t.remove),this},addShowMore:rN.noop}),lA=ln.decorate(lC);let lP=a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"icon")||(null!=t?a(t,"icon"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:o,loc:{start:{line:1,column:96},end:{line:1,column:104}}}):r)+'"></span>'},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:133},end:{line:1,column:142}}}):r)},5:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="option-subtitle">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:o,loc:{start:{line:1,column:192},end:{line:1,column:204}}}):r)+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="" class="icon-16 '+u(typeof(a=null!=(a=p(n,"className")||(null!=t?p(t,"className"):t))?a:l)===c?a.call(s,{name:"className",hash:{},data:o,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):a)+'" data-se="'+u(typeof(a=null!=(a=p(n,"seleniumId")||(null!=t?p(t,"seleniumId"):t))?a:l)===c?a.call(s,{name:"seleniumId",hash:{},data:o,loc:{start:{line:1,column:50},end:{line:1,column:64}}}):a)+'">'+(null!=(r=p(n,"if").call(s,null!=t?p(t,"icon"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:66},end:{line:1,column:120}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"title"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:120},end:{line:1,column:149}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"subtitle"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:149},end:{line:1,column:215}}}))?r:"")+"</a>"},useData:!0}),lN=ln.extend({tagName:"li",events:{click:function(e){e.preventDefault(),this.action&&this.action.call(this)}},constructor:function(){ln.apply(this,arguments),this.$el.addClass("okta-dropdown-option option")},render:function(){return this.$el.html(lP({icon:rN.result(this,"icon"),className:rN.result(this,"className")||"",title:rN.result(this,"title"),subtitle:rN.result(this,"subtitle"),seleniumId:rN.result(this,"seleniumId")})),rN.result(this,"disabled")&&this.disable(),this},disable:function(){this.$el.addClass("option-disabled"),this.$el.find("a").attr("tabindex","-1")}});var lR=ln.extend({events:{"click a.option-selected":function(e){e.preventDefault(),rN.result(this,"disabled")&&e.stopPropagation()},"click .dropdown-disabled":function(e){e.preventDefault(),e.stopPropagation()}},items:[],constructor:function(){let e=this.className;this.className=null,ln.apply(this,arguments),this.className=e,this.$el.addClass("dropdown more-actions float-l"),rN.each(rN.result(this,"items"),function(e){this.addOption(e,this.options)},this)},template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"icon")||(null!=t?a(t,"icon"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:o,loc:{start:{line:1,column:176},end:{line:1,column:184}}}):r)+'"></span>'},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="off-screen">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"screenReaderText")||(null!=t?a(t,"screenReaderText"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"screenReaderText",hash:{},data:o,loc:{start:{line:1,column:249},end:{line:1,column:269}}}):r)+"</span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link-button '+u(typeof(a=null!=(a=p(n,"className")||(null!=t?p(t,"className"):t))?a:l)===c?a.call(s,{name:"className",hash:{},data:o,loc:{start:{line:1,column:31},end:{line:1,column:44}}}):a)+' link-button-icon option-selected center" aria-expanded="false" aria-controls="okta-dropdown-options">'+(null!=(r=p(n,"if").call(s,null!=t?p(t,"icon"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:146},end:{line:1,column:200}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"screenReaderText"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:200},end:{line:1,column:283}}}))?r:"")+'<span class="option-selected-text">'+u(typeof(a=null!=(a=p(n,"title")||(null!=t?p(t,"title"):t))?a:l)===c?a.call(s,{name:"title",hash:{},data:o,loc:{start:{line:1,column:318},end:{line:1,column:327}}}):a)+'</span><span class="icon-dm"></span></a><div id="okta-dropdown-options" class="options clearfix"><ul class="okta-dropdown-list options-wrap clearfix"></ul></div>'},useData:!0}
5),getTemplateData:function(){let e=[rN.result(this,"className")||"",rN.result(this,"disabled")?"dropdown-disabled":""];return{icon:rN.result(this,"icon"),className:sh.trim(e.join(" ")),title:rN.result(this,"title"),screenReaderText:rN.result(this,"screenReaderText")}},addOption:function(e,t){this.add(lN.extend(e),"ul.options-wrap",{options:t||{}})}});let lI=["model","id","inputId","type","label","sublabel","tooltip","name","group"],lD=["wide","multi","input","label-top","explain","explain-top","customExplain","model","name","type","autoRender","multirowError"],lL=["model","name","label-top","readOnly","events","initialize","showWhen","bindings","render","className","data-se","toggleWhen","group"],lM=["model","name","inputId","type","input","placeholder","label","readOnly","read","disabled","readModeString","options","deps","from","to","autoRender","inlineValidation","validateOnlyIfDirty","ariaLabel","params","autoComplete","sortByKey"],lU=rN.uniq(rN.union(lI,lD,lL,lM,["errorField"])),lF=["⢠","⢠⢠","⢠⢠⢠","⢠⢠⢠â¢"," ⢠⢠â¢"," ⢠â¢"," â¢"," "," "," "];function lj(e){if(e&&!e.__edit__)return rN.extend({__edit__:rN.constant(!0)},e)}var lV={LABEL_OPTIONS:lI,CONTAINER_OPTIONS:lD,WRAPPER_OPTIONS:lL,INPUT_OPTIONS:lM,generateInputOptions:function e(t,n,i){t=rN.clone(t),rN.contains(["list","group"],t.type)&&(t.params=rN.defaults({create:i,inputs:rN.map(rN.isArray(t.input)?t.input:[t.input],function(t){return rN.first(e(t,n,i))})},t.params||{}),delete t.input);let o=rN.isArray(t.input)?rN.clone(t.input):[t];return rN.map(o,function(e){let i=rN.defaults({model:n.model},e,rN.omit(t,"input","inputs"),n.options,{id:rN.uniqueId("input"),readOnly:n.isReadOnly(),read:n.hasReadMode()});return n.isReadOnly()&&(i.read=i.readOnly=!0),i})},changeEventString:function(e){return"change:"+e.join(" change:")},createReadFormButton:function(e){let t,n,i;return"cancel"===e.type?(n=i=sk.localize("oform.cancel","courage"),t=function(){this.model.trigger("form:cancel")}):(i=(n=sk.localize("oform.edit","courage"))+" "+e.formTitle,t=function(){this.model.set("__edit__",!0)}),ln.extend({tagName:"a",className:e.className,attributes:{href:"#","aria-label":i},template:function(){return rN.escape(n)},events:{click:function(e){e.preventDefault(),t.call(this)}}})},createButton:function(e){var t;let n,i,o;switch((e=rN.clone(e)).type){case"save":rN.defaults(e,{className:"button-primary"});break;case"cancel":rN.defaults(e,{className:"button-clear",text:sk.localize("oform.cancel","courage"),action:function(){this.model.trigger("form:cancel")}});break;case"previous":rN.defaults(e,{text:sk.localize("oform.previous","courage"),action:function(){this.model.trigger("form:previous")}})}return t=e,t=rN.pick(t||{},"action","id","className","text","type"),ln.extend({tagName:"input",className:"button",events:{click:function(){t.action&&!this.disabled()&&t.action.call(this)},keyup:function(e){lS.isEnter(e)&&t.action&&!this.disabled()&&t.action.call(this)}},disabled:function(){return!0===this.$el.prop("disabled")},disable:function(){this.$el.prop("disabled",!0),this.$el.addClass("btn-disabled")},enable:function(){this.$el.prop("disabled",!1),this.$el.removeClass("btn-disabled")},initialize:function(){let e=this;this.$el.attr("type","save"===t.type?"submit":"button"),this.$el.val(t.text),t.id&&this.$el.attr("id",t.id),t.className&&this.$el.addClass(t.className),t.type&&this.$el.attr("data-type",t.type),this.$el.mousedown(function(){e.model.set("__pending__",!0)}),this.$el.mouseup(function(){e.model.set("__pending__",!1)}),this.listenTo(this.model,"form:set-saving-state",function(){this.disable(),"save"===t.type&&(clearTimeout(n),n=setTimeout(rN.bind(this.__changeSaveText,this),1e3))}),this.listenTo(this.model,"form:clear-saving-state",function(){this.enable(),"save"===t.type&&(clearTimeout(n),clearInterval(i),this.$el.val(t.text))})},__changeSaveText:function(){o=0,clearInterval(i),i=setInterval(rN.bind(this.__showLoadingText,this),200)},__showLoadingText:function(){this.$el.val(lF[o++%lF.length])}})},validateInput:function e(t,n){if(t||(t={}),"label"===t.type){t.label||so.warn('A label input must have a "label" parameter',t);return}if("button"===t.type){t.title||t.icon||so.warn('A button input must have a "title" and/or an "icon" parameter',t),t.click||t.href||so.warn('A button input must have a "click" and/or an "href" parameter',t);return}if(t.name||t.input||so.warn('Missing "name" or "input" parameters',t),rN.isArray(t.name)&&rN.isArray(t.input))throw Error('Not allowed to have both "name" and "input" defined as array.');if("list"!==t.type&&t.name&&n&&n.allows){let e=[];rN.isArray(t.name)?e=t.name:e.push(t.name),rN.each(e,function(e){if(!n.allows(e))throw Error("field not allowed: "+t.name)})}rN.isArray(t.input)&&"list"!==t.type&&rN.each(t.input,function(t){e(t,n)});let i=rN.keys(t),o=rN.intersection(i,lU);if(rN.size(o)!==rN.size(t)){let e=rN.clone(lU);so.warn("Invalid input parameters",rN.without(i,...e),t)}},applyShowWhen:function(e,t){lp(e,lj(t),function(t,n){n.animate?e.$el["slide"+(t?"Down":"Up")](200,function(){e.$el.toggle(t),e.model.trigger("form:resize")}):e.$el.toggle(t)})},applyToggleWhen:function(e,t){lp(e,lj(t),function(t,n){e.$el.toggle(t),e.model.trigger("form:resize"),n.animate&&e.render()})}},lB=ln.extend({el:'<span class="o-form-toggle" data-type="header-btn"></span>',formTitle:"",modelEvents:{"change:__edit__":"toggle"},initialize:function(){this.addButton()},addButton:function(){this.model.get("__edit__")?this.add(lV.createReadFormButton({type:"cancel"})):this.add(lV.createReadFormButton({type:"edit",formTitle:this.formTitle,className:"disable-in-read-only"}))},toggle:function(){this.removeChildren(),this.addButton()}}),lq=ln.extend({className:function(){return"o-form-button-bar"},buttonOrder:["previous","save","cancel"],initialize:function(e){let t={previous:{type:"previous"},save:{type:"save",text:rN.resultCtx(e,"save",this),id:rN.resultCtx(e,"saveId",this),className:rN.resultCtx(e,"saveClassName",this)},cancel:{type:"cancel",text:rN.resultCtx(e,"cancel",this)}};
5this.__getButtonOrder(e).forEach(e=>{this.addButton(t[e])})},addButton:function(e,t){return this.add(lV.createButton(e),t)},__getButtonOrder:function(e){let t=rN.resultCtx(e,"buttonOrder",this,this.buttonOrder),n=[];return e.noSubmitButton&&n.push("save"),e.noCancelButton&&n.push("cancel"),e.hasPrevStep||n.push("previous"),rN.without(t,...n)}}),l$=ln.extend({template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"errorSummary")||(null!=t?a(t,"errorSummary"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"errorSummary",hash:{},data:o,loc:{start:{line:1,column:130},end:{line:1,column:146}}}):r)+"</p>"},3:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"courage",code:"oform.errorbanner.title"},data:o,loc:{start:{line:1,column:161},end:{line:1,column:217}}}))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-error infobox infobox-error" role="alert"><span class="icon error-16"></span>'+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"errorSummary"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:1,column:107},end:{line:1,column:228}}}))?r:"")+"</div>"},useData:!0}),modelEvents:{"form:clear-errors":"remove"}});let lH=/^([\S]+): (.+)$/;var lW={getResponseJSON:function(e){try{return e.responseJSON||JSON.parse(e.responseText)}catch(e){}},parseErrorSummary:function(e){let t=e.match(lH);if(t)return[t[1],t[2]]},parseErrorCauseObject:function(e){if(e.property&&e.errorSummary){let t=e.reason?sk.localize(e.reason):void 0,n=e.errorSummary;return[e.property,(null==t?void 0:t.indexOf("L10N_ERROR["))===-1?t:n]}},parseErrors:function(e){let t=this.getResponseJSON(e);return rN.map(t&&t.errorCauses||[],function(e){return(""+e.errorSummary).replace(lH,"$2")})},parseFieldErrors:function(e){let t=this.getResponseJSON(e),n={};return t?rN.each(t.errorCauses||[],function(e){let t=[];if(t=e.property&&e.errorSummary?this.parseErrorCauseObject(e):e.location&&e.errorSummary?[e.location,e.errorSummary]:this.parseErrorSummary(e&&e.errorSummary||"")){let e=t[0],i=t[1];n[e]||(n[e]=[]),n[e].push(i)}},this):rN.isObject(e)&&rN.size(e)&&rN.each(e,function(e,t){n[t]=[e]}),rN.size(n)?n:void 0}};let lz=lE.isABaseView;var lK=ln.extend({attributes:function(){return{"data-se":"o-form-input-container"}},className:function(){let e="o-form-input";return this.options.wide&&(e+=" o-form-wide"),rN.contains([1,2,3,4],this.options.multi)&&(e+=" o-form-multi-input-"+this.options.multi,rN.isArray(this.options.input)&&rN.find(this.options.input,function(e){return rN.contains(["text+select","select+text"],e.options.type)})&&(e+=" o-form-multi-input-group-"+this.options.multi)),e},_getNames:function(){let e=rN.isArray(this.options.name)?this.options.name:[this.options.name];return"group"===this.options.type?e.push.apply(e,rN.pluck(this.options.input[0].options.params.inputs,"name")):rN.isArray(this.options.name)?this.options.input&&this.options.input.options&&this.options.input.options.name&&e.push(this.options.input.options.name):this.options.input&&(rN.isArray(this.options.input)?rN.each(this.options.input,function(t){e.push(t.options.name)}):e.push(this.options.input.options.name)),rN.uniq(rN.compact(e))},_getInputElement:function(){let e=Array.isArray(this.options.input)?rN.last(this.options.input):this.options.input,t=e&&e.options&&e.options.inputId,n=t?this.$("#"+t):null;return n&&n.length?n:null},constructor:function(){ln.apply(this,arguments);let e=this.options["explain-top"]&&this.options["label-top"];this.options.input&&(rN.isArray(this.options.input)?rN.each(this.options.input,function(t){this.add(t,{prepend:!e})},this):this.add(this.options.input,{prepend:!e})),this.__setExplain(this.options);let t=this._getNames();this.listenTo(this.model,"form:field-error",function(n,i){rN.contains(t,n)&&this.__setError(i,e)}),this.listenTo(this.model,"form:clear-errors change:"+t.join(" change:"),this.__clearError),this.listenTo(this.model,"form:clear-error:"+t.join(" form:clear-error:"),this.__clearError),rN.resultCtx(this.options,"autoRender",this)&&this.listenTo(this.model,"change:"+this.options.name,this.render),this.__errorState=!1},__setExplain:function(e){let t;if(e.customExplain){so.warn("Deprecated - use explain instead of customExplain"),this.add(this.options.customExplain);return}t=e.explain,rN.isFunction(t)&&!lz(t)&&(t=rN.resultCtx(this.options,"explain",this)),t&&(lz(t)?(this.template=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<p class="o-form-explain"></p>'},useData:!0}
5),this.add(t," > .o-form-explain")):this.template=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="o-form-explain">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"explain")||(null!=t?a(t,"explain"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"explain",hash:{},data:o,loc:{start:{line:1,column:26},end:{line:1,column:37}}}):r)+"</p>"},useData:!0}))},__setError:function(e,t){this.__errorState=!0,this.$el.addClass("o-form-has-errors");let n=rN.uniqueId("input-container-error"),i=this.__getHTMLForError(rN.flatten(e),n),o=this.$(".o-form-explain").not(".o-form-input-error").first();o.length&&!t?o.before(i):this.$el.append(i);let r=this._getInputElement()||this.$el;r.attr("aria-describedby",n),r.attr("aria-invalid",!0)},__getHTMLForError:function(e,t){let n=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p id="'+c(typeof(r=null!=(r=u(n,"errorId")||(null!=t?u(t,"errorId"):t))?r:s)===l?r.call(a,{name:"errorId",hash:{},data:o,loc:{start:{line:1,column:7},end:{line:1,column:18}}}):r)+'" class="okta-form-input-error o-form-input-error o-form-explain" role="alert"><span class="icon icon-16 error-16-small" role="img" aria-label="'+c(typeof(r=null!=(r=u(n,"iconLabel")||(null!=t?u(t,"iconLabel"):t))?r:s)===l?r.call(a,{name:"iconLabel",hash:{},data:o,loc:{start:{line:1,column:162},end:{line:1,column:175}}}):r)+'"></span>'+c(typeof(r=null!=(r=u(n,"text")||(null!=t?u(t,"text"):t))?r:s)===l?r.call(a,{name:"text",hash:{},data:o,loc:{start:{line:1,column:184},end:{line:1,column:192}}}):r)+"</p>"},useData:!0}),i=sk.localize("oform.error.icon.ariaLabel","courage");if(this.options.multirowError){let o="";return e.forEach(e=>{o+=n({errorId:t,iconLabel:i,text:e})}),o}return n({errorId:t,iconLabel:i,text:e.join(", ")})},__clearError:function(){if(this.__errorState){this.$(".o-form-input-error").remove();let e=this._getInputElement()||this.$el;e.attr("aria-describedby",null),e.attr("aria-invalid",null),this.$el.removeClass("o-form-has-errors"),this.__errorState=!1,rN.defer(()=>{this.model.trigger("form:resize")})}},focus:function(){return this.each(function(e){if(e.focus)return e.focus()}),this}});let lG={};function lY(e){return rN.isFunction(e)?rN.isFunction(e.prototype.editMode)&&rN.isFunction(e.prototype.readMode):rN.isObject(e)&&rN.isFunction(e.editMode)&&rN.isFunction(e.readMode)}var lJ={isBaseInput:lY,register:function(e,t){lG[e]=t},get:function(e){let t=lG[e.type];return t&&(lY(t)?t:t(e))}};function lQ(e,t){return lJ.isBaseInput(e)&&e.prototype?new e(rN.omit(t,"input")):e}var lX=function(e){if((e=rN.clone(e)).input)return lQ(e.input,e);let t=lJ.get(e);if(!t)throw Error("unknown input: "+e.type);return lQ(t,e)};V=window,B=document,$=function(e){var t,n,i,o,r,a="width",s="height",l="left",c="bottom",u="right",p="center",d="shift",h={},f="qtip",m="data-hasqtip",g="data-qtip-id",y=["ui-widget","ui-tooltip"],v="."+f,b="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),w=f+"-fixed",k=f+"-default",_=f+"-focus",S=f+"-hover",E=f+"-disabled",T="_replacedByqTip",x="oldtitle",O={ie:function(){var e,t;for(e=4,t=B.createElement("div");t.innerHTML="<!--[if gt IE "+e+"]><i></i><![endif]-->",t.getElementsByTagName("i")[0];e+=1);return e>4?e:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||!1};function C(t,n,i,o){this.id=i,this.target=t,this.tooltip=null,this.elements={target:t},this._id=f+"-"+i,this.timers={img:{}},this.options=n,this.plugins={},this.cache={event:{},target:e(),disabled:!1,attr:o,onTooltip:!1,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=!1}function A(t){return null===t||"object"!==e.type(t)}function P(t){return!(e.isFunction(t)||t&&t.attr||t.length||"object"===e.type(t)&&(t.jquery||t.then))}function N(t){var n,i,o,r;return!A(t)&&(A(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(A(n=t.content)||n.jquery||n.done?(i=!P(n)&&n,n=t.content={text:i}
5):i=n.text,"ajax"in n&&(r=(o=n.ajax)&&!1!==o.once,delete n.ajax,n.text=function(t,n){var a=i||e(this).attr(n.options.content.attr)||"Loading...",s=e.ajax(e.extend({},o,{context:n})).then(o.success,null,o.error).then(function(e){return e&&r&&n.set("content.text",e),e},function(e,t,i){n.destroyed||0===e.status||n.set("content.text",t+": "+i)});return r?a:(n.set("content.text",a),s)}),"title"in n&&(e.isPlainObject(n.title)&&(n.button=n.title.button,n.title=n.title.text),P(n.title||!1)&&(n.title=!1))),"position"in t&&A(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&A(t.show)&&(t.show=t.show.jquery?{target:t.show}:!0===t.show?{ready:!0}:{event:t.show}),"hide"in t&&A(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&A(t.style)&&(t.style={classes:t.style}),e.each(h,function(){this.sanitize&&this.sanitize(t)}),t)}function R(e,t){for(var n,i=0,o=e,r=t.split(".");o=o[r[i++]];)i<r.length&&(n=o);return[n||e,r.pop()]}function I(e,t){var n,i,o;for(n in this.checks)if(this.checks.hasOwnProperty(n))for(i in this.checks[n])this.checks[n].hasOwnProperty(i)&&(o=RegExp(i,"i").exec(e))&&(t.push(o),("builtin"===n||this.plugins[n])&&this.checks[n][i].apply(this.plugins[n]||this,t))}(n=C.prototype)._when=function(t){return e.when.apply(e,t)},n.render=function(n){if(this.rendered||this.destroyed)return this;var i=this,o=this.options,r=this.cache,a=this.elements,s=o.content.text,l=o.content.title,c=o.content.button,u=o.position,p=[];return e.attr(this.target[0],"aria-describedby",this._id),r.posClass=this._createPosClass((this.position={my:u.my,at:u.at}).my),this.tooltip=a.tooltip=e("<div/>",{id:this._id,class:[f,k,o.style.classes,r.posClass].join(" "),width:o.style.width||"",height:o.style.height||"",tracking:"mouse"===u.target&&u.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":!1,"aria-describedby":this._id+"-content","aria-hidden":!0}).toggleClass(E,this.disabled).attr(g,this.id).data(f,this).appendTo(u.container).append(a.content=e("<div />",{class:f+"-content",id:this._id+"-content","aria-atomic":!0})),this.rendered=-1,this.positioning=!0,l&&(this._createTitle(),e.isFunction(l)||p.push(this._updateTitle(l,!1))),c&&this._createButton(),e.isFunction(s)||p.push(this._updateContent(s,!1)),this.rendered=!0,this._setWidget(),e.each(h,function(e){var t;"render"===this.initialize&&(t=this(i))&&(i.plugins[e]=t)}),this._unassignEvents(),this._assignEvents(),this._when(p).then(function(){i._trigger("render"),i.positioning=!1,!i.hiddenDuringWait&&(o.show.ready||n)&&i.toggle(!0,r.event,!1),i.hiddenDuringWait=!1}),t.api[this.id]=this,this},n.destroy=function(n){if(this.destroyed)return this.target;function i(){if(!this.destroyed){this.destroyed=!0;var n,i=this.target,o=i.attr(x);for(n in this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),e.each(this.plugins,function(){this.destroy&&this.destroy()}),this.timers)this.timers.hasOwnProperty(n)&&clearTimeout(this.timers[n]);i.removeData(f).removeAttr(g).removeAttr(m).removeAttr("aria-describedby"),this.options.suppress&&o&&i.attr("title",o).removeAttr(x),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=null,delete t.api[this.id]}}return(!0!==n||"hide"===this.triggering)&&this.rendered?(this.tooltip.one("tooltiphidden",e.proxy(i,this)),this.triggering||this.hide()):i.call(this),this.target},o=n.checks={builtin:{"^id$":function(n,i,o,r){var a=!0===o?t.nextid:o,s=f+"-"+a;!1!==a&&a.length>0&&!e("#"+s).length?(this._id=s,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):n[i]=r},"^prerender":function(e,t,n){n&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(e,t,n){this._updateContent(n)},"^content.attr$":function(e,t,n,i){this.options.content.text===this.target.attr(i)&&this._updateContent(this.target.attr(n))},"^content.title$":function(e,t,n){if(!n)return this._removeTitle();n&&!this.elements.title&&this._createTitle(),this._updateTitle(n)},"^content.button$":function(e,t,n){this._updateButton(n)},"^content.title.(text|button)$":function(e,t,n){this.set("content."+t,n)}
5,"^position.(my|at)$":function(e,t,n){"string"==typeof n&&(this.position[t]=e[t]=new i(n,"at"===t))},"^position.container$":function(e,t,n){this.rendered&&this.tooltip.appendTo(n)},"^show.ready$":function(e,t,n){n&&(!this.rendered&&this.render(!0)||this.toggle(!0))},"^style.classes$":function(e,t,n,i){this.rendered&&this.tooltip.removeClass(i).addClass(n)},"^style.(width|height)":function(e,t,n){this.rendered&&this.tooltip.css(t,n)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(e,t,n){this.rendered&&this.tooltip.toggleClass(k,!!n)},"^events.(render|show|move|hide|focus|blur)$":function(t,n,i){this.rendered&&this.tooltip[(e.isFunction(i)?"":"un")+"bind"]("tooltip"+n,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var e=this.options.position;this.tooltip.attr("tracking","mouse"===e.target&&e.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},n.get=function(e){if(this.destroyed)return this;var t=R(this.options,e.toLowerCase()),n=t[0][t[1]];return n.precedance?n.string():n};var D=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,L=/^prerender|show\.ready/i;n.set=function(t,n){if(this.destroyed)return this;var i,o=this.rendered,r=!1,a=this.options;return"string"==typeof t?(i=t,(t={})[i]=n):t=e.extend({},t),e.each(t,function(n,i){if(o&&L.test(n)){delete t[n];return}var s,l=R(a,n.toLowerCase());s=l[0][l[1]],l[0][l[1]]=i&&i.nodeType?e(i):i,r=D.test(n)||r,t[n]=[l[0],l[1],i,s]}),N(a),this.positioning=!0,e.each(t,e.proxy(I,this)),this.positioning=!1,this.rendered&&this.tooltip[0].offsetWidth>0&&r&&this.reposition("mouse"===a.position.target?null:this.cache.event),this},n._update=function(t,n){var i=this,o=this.cache;return!!this.rendered&&!!t&&((e.isFunction(t)&&(t=t.call(this.elements.target,o.event,this)||""),e.isFunction(t.then))?(o.waiting=!0,t.then(function(e){return o.waiting=!1,i._update(e,n)},null,function(e){return i._update(e,n)})):!1!==t&&(!!t||""===t)&&(t.jquery&&t.length>0?n.empty().append(t.css({display:"block",visibility:"visible"})):n.html(t),this._waitForContent(n).then(function(e){i.rendered&&i.tooltip[0].offsetWidth>0&&i.reposition(o.event,!e.length)})))},n._waitForContent=function(t){var n=this.cache;return n.waiting=!0,(e.fn.imagesLoaded?t.imagesLoaded():new e.Deferred().resolve([])).done(function(){n.waiting=!1}).promise()},n._updateContent=function(e,t){this._update(e,this.elements.content,t)},n._updateTitle=function(e,t){!1===this._update(e,this.elements.title,t)&&this._removeTitle(!1)},n._createTitle=function(){var t=this.elements,n=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=e("<div />",{class:f+"-titlebar "+(this.options.style.widget?U("header"):"")}).append(t.title=e("<div />",{id:n,class:f+"-title","aria-atomic":!0})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){e(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){e(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},n._removeTitle=function(e){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=null,!1!==e&&this.reposition())},n._createPosClass=function(e){return f+"-pos-"+(e||this.options.position.my).abbrev()},n.reposition=function(t,n){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=!0;var i,o,r,a,s=this.cache,d=this.tooltip,f=this.options.position,m=f.target,g=f.my,y=f.at,v=f.viewport,b=f.container,w=f.adjust,k=w.method.split(" "),_=d.outerWidth(!1),S=d.outerHeight(!1),E=0,T=0,x=d.css("position"),C={left:0,top:0},A=d[0].offsetWidth>0,P=t&&"scroll"===t.type,N=e(V),R=b[0].ownerDocument,I=this.mouse;if(e.isArray(m)&&2===m.length)y={x:l,y:"top"},C={left:m[0],top:m[1]};else if("mouse"===m)y={x:l,y:"top"},(!w.mouse||this.options.hide.distance)&&s.origin&&s.origin.pageX?t=s.origin:!t||t&&("resize"===t.type||"scroll"===t.type)?t=s.event:I&&I.pageX&&(t=I),"static"!==x&&(C=b.offset()),R.body.offsetWidth!==(V.innerWidth||R.documentElement.clientWidth)&&(o=e(B.body).offset()),C={left:t.pageX-C.left+(o&&o.left||0),top:t.pageY-C.top+(o&&o.top||0)},w.mouse&&P&&I&&(C.left-=(I.scrollX||0)-N.scrollLeft(),C.top-=(I.scrollY||0)-N.scrollTop());else{if("event"===m?t&&t.target&&"scroll"!==t.type&&"resize"!==t.type?s.target=e(t.target):t.target||(s.target=this.elements.target):"event"!==m&&(s.target=e(m.jquery?m:this.elements.target)),0===(m=e(m=s.target).eq(0)).length)return this;m[0]===B||m[0]===V?(E=O.iOS?V.innerWidth:m.width(),T=O.iOS?V.innerHeight:m.height(),m[0]===V&&(C={top:(v||m).scrollTop(),left:(v||m).scrollLeft()})):h.imagemap&&m.is("area")?i=h.imagemap(this,m,y,!!h.viewport&&k):h.svg&&m&&m[0].ownerSVGElement?i=h.svg(this,m,y,!!h.viewport&&k):(E=m.outerWidth(!1),T=m.outerHeight(!1),C=m.offset()),i&&(E=i.width,T=i.height,o=i.offset,C=i.position),C=this.reposition.offset(m,C,b),(O.iOS>3.1&&O.iOS<4.1||O.iOS>=4.3&&O.iOS<4.33||!O.iOS&&"fixed"===x)&&(C.left-=N.scrollLeft(),C.top-=N.scrollTop()),(!i||i&&!1!==i.adjustable)&&(C.left+=y.x===u?E:y.x===p?E/2:0,C.top+=y.y===c?T:y.y===p?T/2:0)}return C.left+=w.x+(g.x===u?-_:g.x===p?-_/2:0),C.top+=w.y+(g.y===c?-S:g.y===p?-S/2:0),h.viewport?(r=C.adjusted=h.viewport(this,C,f,E,T,_,S),o&&r.left&&(C.left+=o.left),o&&r.top&&(C.top+=o.top),r.my&&(this.position.my=r.my)):C.adjusted={left:0,top:0},s.posClass!==(a=this._createPosClass(this.position.my))&&(s.posClass=a,d.removeClass(s.posClass).addClass(a)),this._trigger("move",[C,v.elem||v],t)&&(delete C.adjusted,!1===n||!A||isNaN(C.left)||isNaN(C.top)||"mouse"===m||!e.isFunction(f.effect)?d.css(C):e.isFunction(f.effect)&&(f.effect.call(d,this,e.extend({}
vendor: 9,947 bytes, line 5
5,C)),d.queue(function(t){e(this).css({opacity:"",height:""}),O.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=!1),this},n.reposition.offset=function(t,n,i){if(!i[0])return n;var o,r,a,s,l=e(t[0].ownerDocument),c=!!O.ie&&"CSS1Compat"!==B.compatMode,u=i[0];function p(e,t){n.left+=t*e.scrollLeft(),n.top+=t*e.scrollTop()}do"static"===(r=e.css(u,"position"))||("fixed"===r?(a=u.getBoundingClientRect(),p(l,-1)):(a=e(u).position(),a.left+=parseFloat(e.css(u,"borderLeftWidth"))||0,a.top+=parseFloat(e.css(u,"borderTopWidth"))||0),n.left-=a.left+(parseFloat(e.css(u,"marginLeft"))||0),n.top-=a.top+(parseFloat(e.css(u,"marginTop"))||0),o||"hidden"===(s=e.css(u,"overflow"))||"visible"===s||"BODY"===e.prop(u,"tagName")||(o=e(u)));while(u=u.offsetParent);return o&&(o[0]!==l[0]||c)&&p(o,1),n};var M=(i=n.reposition.Corner=function(e,t){e=(""+e).replace(/([A-Z])/," $1").replace(/middle/gi,p).toLowerCase(),this.x=(e.match(/left|right/i)||e.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(e.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!t;var n=e.charAt(0);this.precedance="t"===n||"b"===n?"y":"x"}).prototype;function U(e){return y.concat("").join(e?"-"+e+" ":" ")}function F(t,n){if(n>0)return setTimeout(e.proxy(t,this),n);t.call(this)}function j(e){this.tooltip.hasClass(E)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=F.call(this,function(){this.toggle(!0,e)},this.options.show.delay))}function $(t){if(!this.tooltip.hasClass(E)&&!this.destroyed){var n=e(t.relatedTarget),i=n.closest(v)[0]===this.tooltip[0],o=n[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==n[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||o)){try{t.preventDefault(),t.stopImmediatePropagation()}catch(e){}return}this.timers.hide=F.call(this,function(){this.toggle(!1,t)},this.options.hide.delay,this)}}function H(e){!this.tooltip.hasClass(E)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=F.call(this,function(){this.hide(e)},this.options.hide.inactive))}function W(e){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(e)}function z(n,i,o){e(B.body).delegate(n,(i.split?i:i.join("."+f+" "))+"."+f,function(){var n=t.api[e.attr(this,g)];n&&!n.disabled&&o.apply(n,arguments)})}M.invert=function(e,t){this[e]=this[e]===l?u:this[e]===u?l:t||this[e]},M.string=function(e){var t=this.x,n=this.y,i=t!==n?"center"===t||"center"!==n&&("y"===this.precedance||this.forceY)?[n,t]:[t,n]:[t];return!1!==e?i.join(" "):i},M.abbrev=function(){var e=this.string(!1);return e[0].charAt(0)+(e[1]&&e[1].charAt(0)||"")},M.clone=function(){return new i(this.string(),this.forceY)},n.toggle=function(t,n){var i=this.cache,o=this.options,a=this.tooltip;if(n){if(/over|enter/.test(n.type)&&i.event&&/out|leave/.test(i.event.type)&&o.show.target.add(n.target).length===o.show.target.length&&a.has(n.relatedTarget).length)return this;i.event=e.event.fix(n)}if(this.waiting&&!t&&(this.hiddenDuringWait=!0),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var s,l,c,u=t?"show":"hide",p=this.options[u],d=this.options.position,h=this.options.content,m=this.tooltip.css("width"),g=this.tooltip.is(":visible"),y=t||1===p.target.length,b=!n||p.target.length<2||i.target[0]===n.target;return(typeof t).search("boolean|number")&&(t=!g),l=(s=!a.is(":animated")&&g===t&&b)?null:!!this._trigger(u,[90]),this.destroyed||(!1!==l&&t&&this.focus(n),!l||s||(e.attr(a[0],"aria-hidden",!t),t?(this.mouse&&(i.origin=e.event.fix(this.mouse)),e.isFunction(h.text)&&this._updateContent(h.text,!1),e.isFunction(h.title)&&this._updateTitle(h.title,!1),!r&&"mouse"===d.target&&d.adjust.mouse&&(e(B).bind("mousemove."+f,this._storeMouse),r=!0),m||a.css("width",a.outerWidth(!1)),this.reposition(n,arguments[2]),m||a.css("width",""),p.solo&&("string"==typeof p.solo?e(p.solo):e(v,p.solo)).not(a).not(p.target).qtip("hide",new e.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete i.origin,r&&!e(v+'[tracking="true"]:visible',p.solo).not(a).length&&(e(B).unbind("mousemove."+f),r=!1),this.blur(n)),c=e.proxy(function(){t?(O.ie&&a[0].style.removeAttribute("filter"),a.css("overflow",""),"string"==typeof p.autofocus&&e(this.options.show.autofocus,a).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):a.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),!1===p.effect||!1===y?(a[u](),c()):e.isFunction(p.effect)?(a.stop(1,1),p.effect.call(a,this),a.queue("fx",function(e){c(),e()})):a.fadeTo(90,t?1:0,c),t&&p.target.trigger("qtip-"+this.id+"-inactive"))),this},n.show=function(e){return this.toggle(!0,e)},n.hide=function(e){return this.toggle(!1,e)},n.focus=function(n){if(!this.rendered||this.destroyed)return this;var i=e(v),o=this.tooltip,r=parseInt(o[0].style.zIndex,10),a=t.zindex+i.length;return!o.hasClass(_)&&this._trigger("focus",[a],n)&&(r!==a&&(i.each(function(){this.style.zIndex>r&&(this.style.zIndex=this.style.zIndex-1)}),i.filter("."+_).qtip("blur",n)),o.addClass(_)[0].style.zIndex=a),this},n.blur=function(e){return!this.rendered||this.destroyed||(this.tooltip.removeClass(_),this._trigger("blur",[this.tooltip.css("zIndex")],e)),this},n.disable=function(e){return this.destroyed||("toggle"===e?e=!(this.rendered?this.tooltip.hasClass(E):this.disabled):"boolean"!=typeof e&&(e=!0),this.rendered&&this.tooltip.toggleClass(E,e).attr("aria-disabled",e),this.disabled=!!e),this},n.enable=function(){return this.disable(!1)},n._createButton=function(){var t=this,n=this.elements,i=n.tooltip,o=this.options.content.button,r="string"==typeof o?o:"Close tooltip";n.button&&n.button.remove(),o.jquery?n.button=o:n.button=e("<a />",{class:"qtip-close "+(this.options.style.widget?"":f+"-icon"),title:r,"aria-label":r}).prepend(e("<span />",{class:"ui-icon ui-icon-close",html:"×"})),n.button.appendTo(n.titlebar||i).attr("role","button").click(function(e){return i.hasClass(E)||t.hide(e),!1})},n._updateButton=function(e){if(!this.rendered)return!1;var t=this.elements.button;e?this._createButton():t.remove()},n._setWidget=function(){var e=this.options.style.widget,t=this.elements,n=t.tooltip,i=n.hasClass(E);n.removeClass(E),E=e?"ui-state-disabled":"qtip-disabled",n.toggleClass(E,i),n.toggleClass("ui-helper-reset "+U(),e).toggleClass(k,this.options.style.def&&!e),t.content&&t.content.toggleClass(U("content"),e),t.titlebar&&t.titlebar.toggleClass(U("header"),e),t.button&&t.button.toggleClass(f+"-icon",!e)},n._storeMouse=function(t){return(this.mouse=e.event.fix(t)).type="mousemove",this},n._bind=function(t,n,i,o,r){if(t&&i&&n.length){var a="."+this._id+(o?"-"+o:"");return e(t).bind((n.split?n:n.join(a+" "))+a,e.proxy(i,r||this)),this}},n._unbind=function(t,n){return t&&e(t).unbind("."+this._id+(n?"-"+n:"")),this},n._trigger=function(t,n,i){var o=new e.Event("tooltip"+t);return o.originalEvent=i&&e.extend({},i)||this.cache.event||null,this.triggering=t,this.tooltip.trigger(o,[this].concat(n||[])),this.triggering=!1,!o.isDefaultPrevented()},n._bindEvents=function(t,n,i,o,r,a){var s=i.filter(o).add(o.filter(i)),l=[];s.length&&(e.each(n,function(n,i){var o=e.inArray(i,t);o>-1&&l.push(t.splice(o,1)[0])}),l.length&&(this._bind(s,l,function(e){(this.rendered&&this.tooltip[0].offsetWidth>0?a:r).call(this,e)}),i=i.not(s),o=o.not(s))),this._bind(i,t,r),this._bind(o,n,a)},n._assignInitialEvents=function(t){var n=this.options,i=n.show.target,o=n.hide.target,r=n.show.event?e.trim(""+n.show.event).split(" "):[],a=n.hide.event?e.trim(""+n.hide.event).split(" "):[];function s(t){if(this.disabled||this.destroyed)return!1;this.cache.event=t&&e.event.fix(t),this.cache.target=t&&e(t.target),clearTimeout(this.timers.show),this.timers.show=F.call(this,function(){this.render("object"==typeof t||n.show.ready)},n.prerender?0:n.show.delay)}this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(n.show.event)&&!/mouse(out|leave)/i.test(n.hide.event)&&a.push("mouseleave"),this._bind(i,"mousemove",function(e){this._storeMouse(e),this.cache.onTarget=!0}),this._bindEvents(r,a,i,o,s,function(){if(!this.timers)return!1;clearTimeout(this.timers.show)}),(n.show.ready||n.prerender)&&s.call(this,t)},n._assignEvents=function(){var n=this,i=this.options,o=i.position,r=this.tooltip,a=i.show.target,s=i.hide.target,l=o.container,c=o.viewport,u=e(B),p=e(V),d=i.show.event?e.trim(""+i.show.event).split(" "):[],h=i.hide.event?e.trim(""+i.hide.event).split(" "):[];e.each(i.events,function(e,t){n._bind(r,"toggle"===e?["tooltipshow","tooltiphide"]:["tooltip"+e],t,null,r)}),/mouse(out|leave)/i.test(i.hide.event)&&"window"===i.hide.leave&&this._bind(u,["mouseout","blur"],function(e){/select|option/.test(e.target.nodeName)||e.relatedTarget||this.hide(e)}),i.hide.fixed?s=s.add(r.addClass(w)):/mouse(over|enter)/i.test(i.show.event)&&this._bind(s,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+i.hide.event).indexOf("unfocus")>-1&&this._bind(l.closest("html"),["mousedown","touchstart"],function(t){var n=e(t.target),i=this.rendered&&!this.tooltip.hasClass(E)&&this.tooltip[0].offsetWidth>0,o=n.parents(v).filter(this.tooltip[0]).length>0;n[0]===this.target[0]||n[0]===this.tooltip[0]||o||this.target.has(n[0]).length||!i||this.hide(t)}),"number"==typeof i.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",H,"inactive"),this._bind(s.add(r),t.inactiveEvents,H)),this._bindEvents(d,h,a,s,j,$),this._bind(a.add(r),"mousemove",function(e){if("number"==typeof i.hide.distance){var t=this.cache.origin||{},n=this.options.hide.distance,o=Math.abs;(o(e.pageX-t.pageX)>=n||o(e.pageY-t.pageY)>=n)&&this.hide(e)}this._storeMouse(e)}),"mouse"===o.target&&o.adjust.mouse&&(i.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(e){if(!this.cache)return!1;
5this.cache.onTarget="mouseenter"===e.type}),this._bind(u,"mousemove",function(e){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(E)&&this.tooltip[0].offsetWidth>0&&this.reposition(e)})),(o.adjust.resize||c.length)&&this._bind(e.event.special.resize?c:p,"resize",W),o.adjust.scroll&&this._bind(p.add(o.container),"scroll",W)},n._unassignEvents=function(){var t=this.options,n=t.show.target,i=t.hide.target,o=e.grep([this.elements.target[0],this.rendered&&this.tooltip[0],t.position.container[0],t.position.viewport[0],t.position.container.closest("html")[0],V,B],function(e){return"object"==typeof e});n&&n.toArray&&(o=o.concat(n.toArray())),i&&i.toArray&&(o=o.concat(i.toArray())),this._unbind(o)._unbind(o,"destroy")._unbind(o,"inactive")},e(function(){z(v,["mouseenter","mouseleave"],function(t){var n="mouseenter"===t.type,i=e(t.currentTarget),o=e(t.relatedTarget||t.target),r=this.options;n?(this.focus(t),i.hasClass(w)&&!i.hasClass(E)&&clearTimeout(this.timers.hide)):"mouse"===r.position.target&&r.position.adjust.mouse&&r.hide.event&&r.show.target&&!o.closest(r.show.target[0]).length&&this.hide(t),i.toggleClass(S,n)}),z("["+g+"]",b,H)}),t=e.fn.qtip=function(n,o,r){var a=(""+n).toLowerCase(),s=null,l=e.makeArray(arguments).slice(1),c=l[l.length-1],u=this[0]?e.data(this[0],f):null;return!arguments.length&&u||"api"===a?u:"string"==typeof n?(this.each(function(){var t=e.data(this,f);if(!t)return!0;if(c&&c.timeStamp&&(t.cache.event=c),o&&("option"===a||"options"===a)){if(!(r!==q||e.isPlainObject(o)))return s=t.get(o),!1;t.set(o,r)}else t[a]&&t[a].apply(t,l)}),null!==s?s:this):"object"!=typeof n&&arguments.length?void 0:(u=N(e.extend(!0,{},n)),this.each(function(n){var o,r;if(r=(r=e.isArray(u.id)?u.id[n]:u.id)&&!1!==r&&!(r.length<1)&&!t.api[r]?r:t.nextid++,!1===(o=function(n,o,r){var a,s,l,c,u,p=e(B.body),d=n[0]===B?p:n,h=n.metadata?n.metadata(r.metadata):null,g="html5"===r.metadata.type&&h?h[r.metadata.name]:null,y=n.data(r.metadata.name||"qtipopts");try{y="string"==typeof y?e.parseJSON(y):y}catch(e){}if(s=(c=e.extend(!0,{},t.defaults,r,"object"==typeof y?N(y):null,N(g||h))).position,c.id=o,"boolean"==typeof c.content.text){if(l=n.attr(c.content.attr),!1===c.content.attr||!l)return!1;c.content.text=l}if(s.container.length||(s.container=p),!1===s.target&&(s.target=d),!1===c.show.target&&(c.show.target=d),!0===c.show.solo&&(c.show.solo=s.container.closest("body")),!1===c.hide.target&&(c.hide.target=d),!0===c.position.viewport&&(c.position.viewport=s.container),s.container=s.container.eq(0),s.at=new i(s.at,!0),s.my=new i(s.my),n.data(f)){if(c.overwrite)n.qtip("destroy",!0);else if(!1===c.overwrite)return!1}return n.attr(m,o),c.suppress&&(u=n.attr("title"))&&n.removeAttr("title").attr(x,u).attr("title",""),a=new C(n,c,o,!!l),n.data(f,a),a}(e(this),r,u)))return!0;t.api[r]=o,e.each(h,function(){"initialize"===this.initialize&&this(o)}),o._assignInitialEvents(c)}))},e.qtip=C,t.api={},e.each({attr:function(t,n){if(this.length){var i=this[0],o="title",r=e.data(i,"qtip");if(t===o&&r&&r.options&&"object"==typeof r&&"object"==typeof r.options&&r.options.suppress)return arguments.length<2?e.attr(i,x):(r&&r.options.content.attr===o&&r.cache.attr&&r.set("content.text",n),this.attr(x,n))}return e.fn["attr"+T].apply(this,arguments)},clone:function(t){var n=e.fn["clone"+T].apply(this,arguments);return t||n.filter("["+x+"]").attr("title",function(){return e.attr(this,x)}).removeAttr(x),n}},function(t,n){if(!n||e.fn[t+T])return!0;var i=e.fn[t+T]=e.fn[t];
vendor: 5,865 bytes, line 5
5e.fn[t]=function(){return n.apply(this,arguments)||i.apply(this,arguments)}}),e.ui||(e["cleanData"+T]=e.cleanData,e.cleanData=function(t){for(var n,i=0;(n=e(t[i])).length;i++)if(n.attr(m))try{n.triggerHandler("removeqtip")}catch(e){}e["cleanData"+T].apply(this,arguments)}),t.version="3.0.3-5-g",t.nextid=0,t.inactiveEvents=b,t.zindex=15e3,t.defaults={prerender:!1,id:!1,overwrite:!0,suppress:!0,content:{text:!0,attr:"title",title:!1,button:!1},position:{my:"top left",at:"bottom right",target:!1,container:!1,viewport:!1,adjust:{x:0,y:0,mouse:!0,scroll:!0,resize:!0,method:"flipinvert flipinvert"},effect:function(t,n){e(this).animate(n,{duration:200,queue:!1})}},show:{target:!1,event:"mouseenter",effect:!0,delay:90,solo:!1,ready:!1,autofocus:!1},hide:{target:!1,event:"mouseleave",effect:!0,delay:0,fixed:!1,inactive:!1,leave:"window",distance:!1},style:{classes:"",widget:!1,width:!1,height:!1,def:!0},events:{render:null,move:null,show:null,hide:null,toggle:null,visible:null,hidden:null,focus:null,blur:null}};var K,G,Y,J="margin",Q="border",X="color",Z="background-color",ee="transparent",et=" !important",en=!!B.createElement("canvas").getContext,ei=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i;function eo(e){return e.charAt(0).toUpperCase()+e.slice(1)}var er={},ea=["Webkit","O","Moz","ms"];function es(e,t){return Math.ceil(parseFloat(function(e,t){var n,i,o=t.charAt(0).toUpperCase()+t.slice(1),r=(t+" "+ea.join(o+" ")+o).split(" "),a=0;if(er[t])return e.css(er[t]);for(;n=r[a++];)if((i=e.css(n))!==q)return er[t]=n,i}(e,t)))}function el(e,t){this._ns="tip",this.options=t,this.offset=t.offset,this.size=[t.width,t.height],this.qtip=e,this.init(e)}en?Y=(V.devicePixelRatio||1)/((ec=B.createElement("canvas").getContext("2d")).backingStorePixelRatio||ec.webkitBackingStorePixelRatio||ec.mozBackingStorePixelRatio||ec.msBackingStorePixelRatio||ec.oBackingStorePixelRatio||1):G=function(e,t,n){return"<qtipvml:"+e+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(n||"")+'" />'},e.extend(el.prototype,{init:function(t){var n,i;i=this.element=t.elements.tip=e("<div />",{class:f+"-tip"}).prependTo(t.tooltip),en?((n=e("<canvas />").appendTo(this.element)[0].getContext("2d")).lineJoin="miter",n.miterLimit=1e5,n.save()):(n=G("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(n+n),t._bind(e("*",i).add(i),["click","mousedown"],function(e){e.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(e){var t=this.qtip.elements.titlebar;return t&&("top"===e.y||e.y===p&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(!0))},_parseCorner:function(e){var t=this.qtip.options.position.my;return!1===e||!1===t?e=!1:!0===e?e=new i(t.string()):e.string||((e=new i(e)).fixed=!0),e},_parseWidth:function(e,t,n){var i=this.qtip.elements,o=Q+eo(t)+"Width";return(n?es(n,o):es(i.content,o)||es(this._useTitle(e)&&i.titlebar||i.content,o)||es(i.tooltip,o))||0},_parseRadius:function(e){var t=this.qtip.elements,n=Q+eo(e.y)+eo(e.x)+"Radius";return O.ie<9?0:es(this._useTitle(e)&&t.titlebar||t.content,n)||es(t.tooltip,n)||0},_invalidColour:function(e,t,n){var i=e.css(t);return!(!i||n&&i===e.css(n)||ei.test(i))&&i},_parseColours:function(t){var n=this.qtip.elements,i=this.element.css("cssText",""),o=Q+eo(t[t.precedance])+eo(X),r=this._useTitle(t)&&n.titlebar||n.content,a=this._invalidColour,s=[];return s[0]=a(i,Z)||a(r,Z)||a(n.content,Z)||a(n.tooltip,Z)||i.css(Z),s[1]=a(i,o,X)||a(r,o,X)||a(n.content,o,X)||a(n.tooltip,o,X)||n.tooltip.css(o),e("*",i).add(i).css("cssText",Z+":"+ee+et+";"+Q+":0"+et+";"),s},_calculateSize:function(e){var t,n,i="y"===e.precedance,o=this.options.width,r=this.options.height,a="c"===e.abbrev(),s=(i?o:r)*(a?.5:1),l=Math.pow,c=Math.round,u=Math.sqrt(l(s,2)+l(r,2)),p=[this.border/s*u,this.border/r*u];return p[2]=Math.sqrt(l(p[0],2)-l(this.border,2)),p[3]=Math.sqrt(l(p[1],2)-l(this.border,2)),n=[c((t=(u+p[2]+p[3]+(a?0:p[0]))/u)*o),c(t*r)],i?n:n.reverse()},_calculateTip:function(e,t,n){n=n||1;var i=(t=t||this.size)[0]*n,o=t[1]*n,r=Math.ceil(i/2),a=Math.ceil(o/2),s={br:[0,0,i,o,i,0],bl:[0,0,i,0,0,o],tr:[0,o,i,0,i,o],tl:[0,0,0,o,i,o],tc:[0,o,r,0,i,o],bc:[0,0,i,0,r,o],rc:[0,0,i,a,0,o],lc:[i,0,i,o,0,a]};return s.lt=s.br,s.rt=s.bl,s.lb=s.tr,s.rb=s.tl,s[e.abbrev()]},_drawCoords:function(e,t){e.beginPath(),e.moveTo(t[0],t[1]),e.lineTo(t[2],t[3]),e.lineTo(t[4],t[5]),e.closePath()},create:function(){var e=this.corner=(en||O.ie)&&this._parseCorner(this.options.corner);return this.enabled=!!this.corner&&"c"!==this.corner.abbrev(),this.enabled&&(this.qtip.cache.corner=e.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,n){if(!this.enabled)return this;var o,r,d,h,f,m,g,y,v=this.qtip.elements,b=this.element,w=b.children(),k=this.options,_=this.size,S=k.mimic,E=Math.round;t||(t=this.qtip.cache.corner||this.corner),!1===S?S=t:((S=new i(S)).precedance=t.precedance,"inherit"===S.x?S.x=t.x:"inherit"===S.y?S.y=t.y:S.x===S.y&&(S[t.precedance]=t[t.precedance])),r=S.precedance,"x"===t.precedance?this._swapDimensions():this._resetDimensions(),(o=this.color=this._parseColours(t))[1]!==ee?(y=this.border=this._parseWidth(t,t[t.precedance]),k.border&&y<1&&!ei.test(o[1])&&(o[0]=o[1]),this.border=y=!0!==k.border?k.border:y):this.border=y=0,g=this.size=this._calculateSize(t),b.css({width:g[0],height:g[1],lineHeight:g[1]+"px"}),m="y"===t.precedance?[E(S.x===l?y:S.x===u?g[0]-_[0]-y:(g[0]-_[0])/2),E("top"===S.y?g[1]-_[1]:0)]:[E(S.x===l?g[0]-_[0]:0),E("top"===S.y?y:S.y===c?g[1]-_[1]-y:(g[1]-_[1])/2)],en?((d=w[0].getContext("2d")).restore(
5),d.save(),d.clearRect(0,0,6e3,6e3),h=this._calculateTip(S,_,Y),f=this._calculateTip(S,this.size,Y),w.attr(a,g[0]*Y).attr(s,g[1]*Y),w.css(a,g[0]).css(s,g[1]),this._drawCoords(d,f),d.fillStyle=o[1],d.fill(),d.translate(m[0]*Y,m[1]*Y),this._drawCoords(d,h),d.fillStyle=o[0],d.fill()):(h="m"+(h=this._calculateTip(S))[0]+","+h[1]+" l"+h[2]+","+h[3]+" "+h[4]+","+h[5]+" xe",m[2]=y&&/^(r|b)/i.test(t.string())?8===O.ie?2:1:0,w.css({coordsize:g[0]+y+" "+g[1]+y,antialias:""+(S.string().indexOf(p)>-1),left:m[0]-m[2]*Number("x"===r),top:m[1]-m[2]*Number("y"===r),width:g[0]+y,height:g[1]+y}).each(function(t){var n=e(this);n[n.prop?"prop":"attr"]({coordsize:g[0]+y+" "+g[1]+y,path:h,fillcolor:o[0],filled:!!t,stroked:!t}).toggle(!!(y||t)),t||n.html(G("stroke",'weight="'+2*y+'px" color="'+o[1]+'" miterlimit="1000" joinstyle="miter"'))})),V.opera&&setTimeout(function(){v.tip.css({display:"inline-block",visibility:"visible"})},1),!1!==n&&this.calculate(t,g)},calculate:function(t,n){if(!this.enabled)return!1;var i,o,r=this,a=this.qtip.elements,s=this.element,c=this.options.offset,u={};return i=(t=t||this.corner).precedance,n=n||this._calculateSize(t),o=[t.x,t.y],"x"===i&&o.reverse(),e.each(o,function(e,o){var s,d,h;o===p?(u[s="y"===i?l:"top"]="50%",u[J+"-"+s]=-Math.round(n["y"===i?0:1]/2)+c):(s=r._parseWidth(t,o,a.tooltip),d=r._parseWidth(t,o,a.content),h=r._parseRadius(t),u[o]=Math.max(-r.border,e?d:c+(h>s?h:-s)))}),u[t[i]]-=n["x"===i?0:1],s.css({margin:"",top:"",bottom:"",left:"",right:""}).css(u),u},reposition:function(e,t,n){if(this.enabled){var i,o,r=t.cache,a=this.corner.clone(),s=n.adjusted,h=t.options.position.adjust.method.split(" "),f=h[0],m=h[1]||h[0],g={left:!1,top:!1,x:0,y:0},y={};!0!==this.corner.fixed&&(v(f,"x","y",l,u),v(m,"y","x","top",c),(a.string()!==r.corner.string()||r.cornerTop!==s.top||r.cornerLeft!==s.left)&&this.update(a,!1)),(i=this.calculate(a)).right!==q&&(i.left=-i.right),i.bottom!==q&&(i.top=-i.bottom),i.user=this.offset,g.left=f===d&&!!s.left,g.left&&b("x",l,u),g.top=m===d&&!!s.top,g.top&&b("y","top",c),this.element.css(y).toggle(!(g.x&&g.y||a.x===p&&g.y||a.y===p&&g.x)),n.left-=i.left.charAt?i.user:f===d&&!g.top&&(g.left||g.top)?0:i.left+this.border,n.top-=i.top.charAt?i.user:m===d&&!g.left&&(g.left||g.top)?0:i.top+this.border,r.cornerLeft=s.left,r.cornerTop=s.top,r.corner=a.clone()}function v(e,t,n,i,o){e===d&&a.precedance===t&&s[i]&&a[n]!==p?a.precedance="x"===a.precedance?"y":"x":e!==d&&s[i]&&(a[t]=a[t]===p?s[i]>0?i:o:a[t]===i?o:i)}function b(e,t,r){a[e]===p?y[J+"-"+t]=g[e]=i[J+"-"+t]-s[t]:(o=i[r]!==q?[s[t],-i[t]]:[-s[t],i[t]],(g[e]=Math.max(o[0],o[1]))>o[0]&&(n[t]-=s[t],g[t]=!1),y[i[r]!==q?r:t]=g[e])}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),(K=h.tip=function(e){return new el(e,e.options.style.tip)}).initialize="render",K.sanitize=function(e){if(e.style&&"tip"in e.style){var t=e.style.tip;"object"!=typeof t&&(t=e.style.tip={corner:t}),/string|boolean/i.test(typeof t.corner)||(t.corner=!0)}},o.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(e){this.size=[e.width,e.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},e.extend(!0,t.defaults,{style:{tip:{corner:!0,mimic:!1,width:6,height:6,border:!0,offset:0}}});var ec,eu,ep,ed="qtip-modal",eh="."+ed;function ef(e,t){this.options=t,this._ns="-modal",this.qtip=e,this.init(e)}function em(e){this._ns="ie6",this.qtip=e,this.init(e)}ep=new(ep=function(){var t,n,i,o=this,r={};function a(e){r.length<1&&e.length?e.not("body").blur():r.first().focus()}function s(n){if(i.is(":visible")){var o=e(n.target),r=t.tooltip,s=o.closest(v);!(s.length<1)&&parseInt(s[0].style.zIndex,10)>parseInt(r[0].style.zIndex,10)||o.closest(v)[0]===r[0]||a(o)}}e.extend(o,{init:function(){return i=o.elem=e("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return!1}}).hide(),e(B.body).bind("focusin"+eh,s),e(B).bind("keydown"+eh,function(e){t&&t.options.show.modal.escape&&27===e.ke
5yCode&&t.hide(e)}),i.bind("click"+eh,function(e){t&&t.options.show.modal.blur&&t.hide(e)}),o},update:function(n){t=n,r=!1!==n.options.show.modal.stealfocus?n.tooltip.find("*").filter(function(){return function(t){if(e.expr[":"].focusable)return e.expr[":"].focusable;var n,i,o,r=!isNaN(e.attr(t,"tabindex")),a=t.nodeName&&t.nodeName.toLowerCase();return"area"===a?(i=(n=t.parentNode).name,!!t.href&&!!i&&"map"===n.nodeName.toLowerCase()&&!!(o=e("img[usemap=#"+i+"]")[0])&&o.is(":visible")):/input|select|textarea|button|object/.test(a)?!t.disabled:"a"===a&&t.href||r}(this)}):[]},toggle:function(r,s,l){var c=r.tooltip,u=r.options.show.modal,p=u.effect,d=s?"show":"hide",h=i.is(":visible"),f=e(eh).filter(":visible:not(:animated)").not(c);return o.update(r),s&&!1!==u.stealfocus&&a(e(":focus")),i.toggleClass("blurs",u.blur),s&&i.appendTo(B.body),i.is(":animated")&&h===s&&!1!==n||!s&&f.length||(i.stop(!0,!1),e.isFunction(p)?p.call(i,s):!1===p?i[d]():i.fadeTo(parseInt(l,10)||90,s?1:0,function(){s||i.hide()}),s||i.queue(function(t){i.css({left:"",top:""}),e(eh).length||i.detach(),t()}),n=s,t.destroyed&&(t=null)),o}}),o.init()}),e.extend(ef.prototype,{init:function(n){var i=n.tooltip;if(!this.options.on)return this;n.elements.overlay=ep.elem,i.addClass(ed).css("z-index",t.modal_zindex+e(eh).length),n._bind(i,["tooltipshow","tooltiphide"],function(t,n,o){var r=t.originalEvent;if(t.target===i[0]){if(r&&"tooltiphide"===t.type&&/mouse(leave|enter)/.test(r.type)&&e(r.relatedTarget).closest(ep.elem[0]).length)try{t.preventDefault()}catch(e){}else(!r||r&&"tooltipsolo"!==r.type)&&this.toggle(t,"tooltipshow"===t.type,o)}},this._ns,this),n._bind(i,"tooltipfocus",function(n,o){if(!n.isDefaultPrevented()&&n.target===i[0]){var r=e(eh),a=t.modal_zindex+r.length,s=parseInt(i[0].style.zIndex,10);ep.elem[0].style.zIndex=a-1,r.each(function(){this.style.zIndex>s&&(this.style.zIndex-=1)}),r.filter("."+_).qtip("blur",n.originalEvent),i.addClass(_)[0].style.zIndex=a,ep.update(o);try{n.preventDefault()}catch(e){}}},this._ns,this),n._bind(i,"tooltiphide",function(t){t.target===i[0]&&e(eh).filter(":visible").not(i).last().qtip("focus",t)},this._ns,this)},toggle:function(e,t,n){if(e&&e.isDefaultPrevented())return this;ep.toggle(this.qtip,!!t,n)},destroy:function(){this.qtip.tooltip.removeClass(ed),this.qtip._unbind(this.qtip.tooltip,this._ns),ep.toggle(this.qtip,!1),delete this.qtip.elements.overlay}}),(eu=h.modal=function(e){return new ef(e,e.options.show.modal)}).sanitize=function(e){e.show&&("object"!=typeof e.show.modal?e.show.modal={on:!!e.show.modal}:void 0===e.show.modal.on&&(e.show.modal.on=!0))},t.modal_zindex=t.zindex-200,eu.initialize="render",o.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},e.extend(!0,t.defaults,{show:{modal:{on:!1,effect:!0,blur:!0,stealfocus:!0,escape:!0}}}),h.viewport=function(e,t,n,i,o,r,h){var f,m,g,y,v,b,w,k,_=n.target,S=e.elements.tooltip,E=n.my,T=n.at,x=n.adjust,O=x.method.split(" "),C=O[0],A=O[1]||O[0],P=n.viewport,N=n.container,R={left:0,top:0};if(!P.jquery||_[0]===V||_[0]===B.body||"none"===x.method)return R;function I(e,n,i,o,r,s,l,c,u){var h=t[r],f=E[e],_=T[e],S=f===r?u:f===s?-u:-u/2,x=_===r?c:_===s?-c:-c/2,O=w[r]+k[r]-(y?0:g[r]),C=O-h,A=h+u-(l===a?v:b)-O,P=S-(E.precedance===e||f===E[n]?x:0)-(_===p?c/2:0);return i===d?(P=(f===r?1:-1)*S,t[r]+=C>0?C:A>0?-A:0,t[r]=Math.max(-g[r]+k[r],h-P,Math.min(Math.max(-g[r]+k[r]+(l===a?v:b),h+P),t[r],"center"===f?h-S:1e9))):(o*="flipinvert"===i?2:0,C>0&&(f!==r||A>0)?(t[r]-=P+o,m.invert(e,r)):A>0&&(f!==s||C>0)&&(t[r]-=(f===p?-P:P)+o,m.invert(e,s)),t[r]<w[r]&&-t[r]>A&&(t[r]=h,m=E.clone())),t[r]-h}return g=N.offset()||R,y="static"===N.css("position"),f="fixed"===S.css("position"),v=P[0]===V?P.width():P.outerWidth(!1),b=P[0]===V?P.height():P.outerHeight(!1),w={left:f?0:P.scrollLeft(),top:f?0:P.scrollTop()},k=P.offset()||R,("shift"!==C||"shift"!==A)&&(m=E.clone()),R={left:"none"!==C?I("x","y",C,x.x,l,u,a,i,r):0,top:"none"!==A?I("y","x",A,x.y,"top",c,s,o,h):0,my:m}},h.polys={polygon:function(e,t){var n,i,o,r={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10}
vendor: 2,026 bytes, line 5
5,adjustable:!1},a=0,s=[],d=1,h=1,f=0,m=0;for(a=e.length;a--;)(n=[parseInt(e[--a],10),parseInt(e[a+1],10)])[0]>r.position.right&&(r.position.right=n[0]),n[0]<r.position.left&&(r.position.left=n[0]),n[1]>r.position.bottom&&(r.position.bottom=n[1]),n[1]<r.position.top&&(r.position.top=n[1]),s.push(n);if(i=r.width=Math.abs(r.position.right-r.position.left),o=r.height=Math.abs(r.position.bottom-r.position.top),"c"===t.abbrev())r.position={left:r.position.left+r.width/2,top:r.position.top+r.height/2};else{for(;i>0&&o>0&&d>0&&h>0;)for(i=Math.floor(i/2),o=Math.floor(o/2),t.x===l?d=i:t.x===u?d=r.width-i:d+=Math.floor(i/2),"top"===t.y?h=o:t.y===c?h=r.height-o:h+=Math.floor(o/2),a=s.length;a--&&!(s.length<2);)f=s[a][0]-r.position.left,m=s[a][1]-r.position.top,(t.x===l&&f>=d||t.x===u&&f<=d||t.x===p&&(f<d||f>r.width-d)||"top"===t.y&&m>=h||t.y===c&&m<=h||t.y===p&&(m<h||m>r.height-h))&&s.splice(a,1);r.position={left:s[0][0],top:s[0][1]}}return r},rect:function(e,t,n,i){return{width:Math.abs(n-e),height:Math.abs(i-t),position:{left:Math.min(e,n),top:Math.min(t,i)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:1/4,bl:3/4,rc:2,lc:1,c:0},ellipse:function(e,t,n,i,o){var r=h.polys._angles[o.abbrev()],a=0===r?0:n*Math.cos(r*Math.PI),s=i*Math.sin(r*Math.PI);return{width:2*n-Math.abs(a),height:2*i-Math.abs(s),position:{left:e+a,top:t+s},adjustable:!1}},circle:function(e,t,n,i){return h.polys.ellipse(e,t,n,n,i)}},h.svg=function(t,n,i){for(var o,r,a,s,l,c,u,p,d,f=n[0],m=e(f.ownerSVGElement),g=f.ownerDocument,y=(parseInt(n.css("stroke-width"),10)||0)/2;!f.getBBox;)f=f.parentNode;if(!f.getBBox||!f.parentNode)return!1;switch(f.nodeName){case"ellipse":case"circle":p=h.polys.ellipse(f.cx.baseVal.value,f.cy.baseVal.value,(f.rx||f.r).baseVal.value+y,(f.ry||f.r).baseVal.value+y,i);break;case"line":case"polygon":case"polyline":for(p=[],c=-1,s=(u=f.points||[{x:f.x1.baseVal.value,y:f.y1.baseVal.value},{x:f.x2.baseVal.value,y:f.y2.baseVal.value}]).numberOfItems||u.length;++c<s;)l=u.getItem?u.getItem(c):u[c],p.push.apply(p,[l.x,l.y]);
vendor: 6,810 bytes, line 5
5p=h.polys.polygon(p,i);break;default:p={width:(p=f.getBBox()).width,height:p.height,position:{left:p.x,top:p.y}}}return d=p.position,(m=m[0]).createSVGPoint&&(r=f.getScreenCTM(),(u=m.createSVGPoint()).x=d.left,u.y=d.top,a=u.matrixTransform(r),d.left=a.x,d.top=a.y),g!==B&&"mouse"!==t.position.target&&(o=e((g.defaultView||g.parentWindow).frameElement).offset())&&(d.left+=o.left,d.top+=o.top),g=e(g),d.left+=g.scrollLeft(),d.top+=g.scrollTop(),p},h.imagemap=function(t,n,i){n.jquery||(n=e(n));var o,r,a,s,l,c=(n.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),u=e('img[usemap="#'+n.parent("map").attr("name")+'"]'),p=e.trim(n.attr("coords")).replace(/,$/,"").split(",");if(!u.length)return!1;if("polygon"===c)s=h.polys.polygon(p,i);else{if(!h.polys[c])return!1;for(a=-1,l=p.length,r=[];++a<l;)r.push(parseInt(p[a],10));s=h.polys[c].apply(this,r.concat(i))}return o=u.offset(),o.left+=Math.ceil((u.outerWidth(!1)-u.width())/2),o.top+=Math.ceil((u.outerHeight(!1)-u.height())/2),s.position.left+=o.left,s.position.top+=o.top,s},e.extend(em.prototype,{_scroll:function(){var t=this.qtip.elements.overlay;t&&(t[0].style.top=e(V).scrollTop()+"px")},init:function(t){var n=t.tooltip;e("select, object").length<1&&(this.bgiframe=t.elements.bgiframe=e('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>').appendTo(n),t._bind(n,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=e("<div/>",{id:f+"-rcontainer"}).appendTo(B.body),t.elements.overlay&&t.elements.overlay.addClass("qtipmodal-ie6fix")&&(t._bind(V,["scroll","resize"],this._scroll,this._ns,this),t._bind(n,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var e,t,n=this.qtip.tooltip,i={height:n.outerHeight(!1),width:n.outerWidth(!1)},o=this.qtip.plugins.tip,r=this.qtip.elements.tip;t={left:-(t=parseInt(n.css("borderLeftWidth"),10)||0),top:-t},o&&r&&(e="x"===o.corner.precedance?[a,l]:[s,"top"],t[e[1]]-=r[e[0]]()),this.bgiframe.css(t).css(i)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var e,t,n,i,o=this.qtip.tooltip,r=this.qtip.options.style,l=this.qtip.options.position.container;return this.qtip.drawing=1,r.height&&o.css(s,r.height),r.width?o.css(a,r.width):(o.css(a,"").appendTo(this.redrawContainer),(t=o.width())%2<1&&(t+=1),e=((n=o.css("maxWidth")||"")+(i=o.css("minWidth")||"")).indexOf("%")>-1?l.width()/100:0,t=(n=(n.indexOf("%")>-1?e:1*parseInt(n,10))||t)+(i=(i.indexOf("%")>-1?e:1*parseInt(i,10))||0)?Math.min(Math.max(t,i),n):t,o.css(a,Math.round(t)).appendTo(l)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([V,this.qtip.tooltip],this._ns)}}),(h.ie6=function(e){return 6===O.ie&&new em(e)}).initialize="render",o.ie6={"^content|style$":function(){this.redraw()}}},a4().fn.qtip||$(a4());var lZ=ln.extend({className:"okta-form-label o-form-label",attributes:{"data-se":"o-form-label"},constructor:function(e){rN.defaults(e,{inputId:e.id}),delete e.id,ln.apply(this,arguments)},template:a8.template({1:function(e,t,n,i,o){return"<legend>"},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<label for="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"inputId")||(null!=t?a(t,"inputId"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:61},end:{line:1,column:72}}}):r)+'"></label>'},5:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"label")||(null!=t?a(t,"label"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:o,loc:{start:{line:1,column:116},end:{line:1,column:125}}}):r)},7:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<label for="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:167},end:{line:1,column:178}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"label")||(null!=t?u(t,"label"):t))?r:s)===l?r.call(a,{name:"label",hash:{},data:o,loc:{start:{line:1,column:180},end:{line:1,column:189}}}):r)+" </label>"},9:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="o-form-explain">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"sublabel")||(null!=t?a(t,"sublabel"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"sublabel",hash:{},data:o,loc:{start:{line:1,column:256},end:{line:1,column:268}}}):r)+"</span>"},11:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="o-form-tooltip icon-16 icon-only form-help-16" title="'+e.escapeExpression(e.lambda(null!=(r=null!=t?a(t,"tooltip"):t)?a(r,"text"):r,t))+'"></span>'},13:function(e,t,n,i,o){return"</legend>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"group"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:28}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"_isLabelView"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:28},end:{line:1,column:89}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"_isRadioOrCheckbox"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:89},end:{line:1,column:132}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"_standardLabel"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:132},end:{line:1,column:210}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"sublabel"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:210},end:{line:1,column:282}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"tooltip"):t,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:282},end:{line:1,column:397}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"group"):t,{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:397},end:{line:1,column:426}}}))?r:"")},useData:!0}
5),getTemplateData:function(){let e={label:""};return rN.each(["inputId","label","sublabel","tooltip","group"],function(t){e[t]=rN.resultCtx(this.options,t,this)},this),this._isLabelView(e.label)?e._isLabelView=!0:rN.contains(["radio","checkbox"],this.options.type)||!e.label?e._isRadioOrCheckbox=!0:e._standardLabel=!0,e.tooltip&&rN.isString(e.tooltip)&&(e.tooltip={text:e.tooltip}),e},_isLabelView:function(e){return!rN.isUndefined(e)&&e instanceof ln},postRender:function(){let e=this.getTemplateData();this._isLabelView(e.label)&&(this.removeChildren(),this.add(e.label,"label")),e.tooltip&&this.$(".o-form-tooltip").qtip(rN.extend({style:{classes:"qtip-custom qtip-shadow"},position:{my:window.okta&&"dstheme"===window.okta.theme?"bottom center":"bottom left",at:"top center"},hide:{fixed:!0},show:{delay:0}},e.tooltip.options))}});function l0(e,t){e.apply(this,rN.map(t.split(/\s+/),function(e){return this.model.get(e)},this))}function l1(e,t){rN.isFunction(e)&&e.call(t)}var l8=ln.extend({tagName:function(){return this.options.group?"fieldset":"div"},className:function(){let e="o-form-fieldset";return this.options["label-top"]&&(e+=" o-form-label-top"),this.options.readOnly&&(e+=" o-form-read-mode"),e},attributes:function(){return{"data-se":this.options["data-se"]||"o-form-fieldset"}},constructor:function(e){e.className&&(this.inputWrapperClassName=this.className,this.optionsClassName=e.className,e.className=function(){return rN.result(this,"inputWrapperClassName","")+" "+rN.result(this,"optionsClassName")}),ln.apply(this,arguments),rN.each(e.events||{},function(e,t){this.listenTo(this.model,t,e)},this),rN.each(e.bindings||{},function(e,t){this.listenTo(this.model,lV.changeEventString(t.split(/\s+/)),rN.bind(l0,this,e,t))},this),lV.applyShowWhen(this,e.showWhen),lV.applyToggleWhen(this,e.toggleWhen),l1(e.initialize,this)},postRender:function(){rN.each(this.options.bindings||{},l0,this),l1(this.options.render,this)},getLabel:function(){return this.size()>1?this.at(0):null},getInput:function(){return this.getInputContainer()},getInputContainer:function(){return this.at(this.size()>1?1:0)},getInputs:function(){return this.getInputContainer().toArray()},focus:function(){return this.getInput().focus()}});let l2=a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 class="o-form-title-bar" data-se="o-form-title-bar">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:75},end:{line:1,column:84}}}):r)+"</h2>"},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"title"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:192},end:{line:1,column:288}}}))?r:""},4:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 data-se="o-form-head" class="okta-form-title o-form-head">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:267},end:{line:1,column:276}}}):r)+"</h2>"},6:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="okta-form-subtitle o-form-explain" data-se="o-form-explain">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:o,loc:{start:{line:1,column:385},end:{line:1,column:397}}}):r)+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=l(n,"if").call(s,null!=t?l(t,"hasReadMode"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:96}}}
5))?r:"")+'<div data-se="o-form-content" class="o-form-content '+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"layout")||(null!=t?l(t,"layout"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"layout",hash:{},data:o,loc:{start:{line:1,column:148},end:{line:1,column:158}}}):a)+' clearfix">'+(null!=(r=l(n,"unless").call(s,null!=t?l(t,"hasReadMode"):t,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:169},end:{line:1,column:299}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"subtitle"):t,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:299},end:{line:1,column:408}}}))?r:"")+'<div class="o-form-error-container" data-se="o-form-error-container"></div><div class="o-form-fieldset-container" data-se="o-form-fieldset-container"></div></div>'},useData:!0}),l3=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 class="o-form-head">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:24},end:{line:1,column:33}}}):r)+"</h2>"},useData:!0}),l4="auto"===sh("<div>").css({"pointer-events":"auto"})[0].style.pointerEvents;function l6(e){if(!l4&&this.$el.hasClass("o-form-saving")){let t=sh(e.currentTarget);t.css("display","none");let n=document.elementFromPoint(e.clientX,e.clientY);return t.css("display","block"),e.target=n,sh(n).trigger(e),!1}}let l5={submit:function(e){e.preventDefault(),this.__save()}};rN.each(["click","dblclick","mousedown","mouseup"],function(e){l5[e+" .o-form-input"]=l6});let l9=function(e){e||(e={});let t=e&&e.collection||{};return{method:"POST",action:rN.result(e,"urlRoot")||rN.result(t,"url")||window.location.pathname,"data-se":"o-form",slot:"content"}},l7=function(e,t){e||(e="");let n=[];return rN.isString(e)&&(n=e.split(" ")),(n=rN.union(n,t)).join(" ")};var ce=ln.extend({constructor:function(e){e||(e={}),this.options=e,e.settings?this.settings=e.settings:this.settings=e.settings=new s0,this.id=rN.uniqueId("form"),this.tagName="form",rN.defaults(this.events,l5),rN.defaults(this.attributes,l9(e.model)),this.__buttons=[],this.__errorFields={},this.__saveModelState(e.model);let t=rN.result(this,"step");if(t){if(!this.save){let e=rN.result(this,"totalSteps");this.save=e&&t!==e?sk.localize("oform.button.next","courage"):sk.localize("oform.button.finish","courage")}this.className=rN.result(this,"className")+" wizard"}this.className=rN.result(this,"className")+" o-form",this.__toolbar=this.__createToolbar(e),ln.call(this,e),rN.each(rN.result(this,"inputs")||[],function(e){this.__addLayoutItem(e)},this),this.add(this.__toolbar,""),this.listenTo(this.model,"change:__edit__",this.__applyMode),this.listenTo(this.model,"invalid error",rN.throttle(function(e,t,n){this.__showErrors(e,t,!1!==n)},100,{trailing:!1})),this.listenTo(this.model,"form:resize",function(){this.trigger("resize")}),this.listenTo(this.model,"form:cancel",rN.throttle(this.__cancel,100,{trailing:!1})),this.listenTo(this.model,"form:previous",rN.throttle(this.__previous,100,{trailing:!1})),this.__save=rN.throttle(this.__save,200,{trailing:!1}),this.listenTo(this.model,"form:save",function(){this.$el.submit()}),this.listenTo(this.model,"sync",function(){this.model.get("__edit__")&&this.model.set("__edit__",!1,{silent:!0}),this.__saveModelState(this.model),this.render()});let n=this.getAttribute("hasSavingState");if(this.getAttribute("autoSave")&&(this.listenTo(this,"save",function(e){let t=e.save();t&&t.done&&t.done(()=>{this.trigger("saved",e)})}),rN.isUndefined(n)&&(n=!0)),n){let e=this.getAttribute("customSavingState",{});this.listenTo(this.model,l7(e.start||"",["request"]),this.__setSavingState),this.listenTo(this.model,l7(e.stop||"",["error","sync"]),this.__clearSavingState)}},__createToolbar:function(e){let t=this.getAttribute("danger"),n=rN.result(this,"step"),i=new lq(rN.extend({save:this.save||sk.localize("oform.save","courage"),saveId:this.saveId,saveClassName:!0===t?"button-error":"button-primary",cancel:this.cancel||sk.localize("oform.cancel","courage"),noCancelButton:this.noCancelButton||!1,noSubmitButton:this.noSubmitButton||!1,buttonOrder:this.buttonOrder,hasPrevStep:n&&n>1},e||this.options));return rN.each(this.__buttons,function(e){i.addButton.apply(i,e)}),i},className:"",attributes:{},events:{},inputs:[],template:null,read:!1,readOnly:!1,noButtonBar:!1,noCancelButton:!1,noSubmitButton:!1,buttonOrder:["previous","save","cancel"],save:null,cancel:null,danger:!1,layout:"",step:void 0,totalSteps:void 0,title:null,subtitle:null,autoSave:!1,scrollOnError:!0,showErrors:!0,resizeSelector:".o-form-content",getAttribute:function(e,t){let n=rN.resultCtx(this.options,e,this);return rN.isUndefined(n)&&(n=rN.result(this,e)),rN.isUndefined(n)?t:n},hasReadMode:function(){return!!this.getAttribute("read")},isReadOnly:function(){return!!this.getAttribute("readOnly")},hasButtonBar:function(){return!(this.getAttribute("noButtonBar")||this.isReadOnly())},render:function(){if(this.__readModeBar&&this.__readModeBar.remove(),this.hasReadMode()&&!this.isReadOnly()){let e=lB.extend({formTitle:this.getAttribute("title","")});this.__readModeBar=this.add(e,".o-form-title-bar").last()}let e=l2({layout:this.getAttribute("layout",""),title:this.getAttribute("title","",!0),subtitle:this.getAttribute("subtitle","",!0),hasReadMode:this.hasReadMode()});return this.$el.html(e),delete this.template,ln.prototype.render.apply(this,arguments),this.__applyMode(),this},__setSavingState:function(){this.model.trigger("form:set-saving-state"),this.$el.addClass("o-form-saving")},__clearSavingState:function(){this.model.trigger("form:clear-saving-state"),this.$el.removeClass("o-form-saving")},__toggleToolbar:function(){this.__toolbar&&this.__toolbar.remove(),this.hasButtonBar()&&this._editMode()&&(this.__toolbar=this.__createToolbar(),this.add(this.__toolbar,"")),this.trigger("resize")},__cancel:function(){let e;let t=this.model.get("__edit__");this.model.clear({silent:!0}),e=this.model.sanitizeAttributes?this.model.sanitizeAttributes(this.__originalModel):rN.clone(this.__originalModel),this.model.set(e,{silent:!0}),this.trigger("cancel",this.model),this.model.trigger("cache:clear"),t&&(this.model.set("__edit__",!1,{silent:!0}),this.model.trigger("change:__edit__",this.model,!1)),this.clearErrors()},isValid:function(){let e;let t=this;function n(e){return rN.reduce(e,function(e,n){return rN.extend(e,t.model.validateField(n))},{})}return rN.isUndefined(this.validate)?this.model.isValid():(rN.isFunction(this.validate)?e=this.validate():rN.isArray(this.validate)?e=n(this.validate):"local"===this.validate&&(e=n(this.getInputs().map(function(e){return e.options.name}))),!!rN.isEmpty(e)||(this.model.trigger("invalid",this.model,e),!1))},__save:function(){this.clearErrors(),this.isValid()&&this.trigger("save",this.model)},__previous:function(){this.trigger("previous",this.model)},__applyMode:function(){this.clearErrors(),this.__toggleToolbar(),this._editMode()?(this.$el.addClass("o-form-edit-mode"),this.$el.removeClass("o-form-read-mode"),this.$(".o-form-content").removeClass("rounded-btm-4"),this.focus()):(this.$el.removeClass("o-form-edit-mode"),this.$el.addClass("o-form-read-mode"),this.$(".o-form-content").addClass("rounded-btm-4"))},_editMode:function(){return this.model.get("__edit__")||!this.hasReadMode()},parseErrorMessage:rN.identity,_handleErrorScroll:function(){if(!this.getAttribute("scrollOnError"))return;let e=sh("#"+this.id+" .o-form-error-container");if(e.length){let t,n=e.scrollParent();n[0]===document?(n=sh("html, body"),t=e.offset().top):t=n.scrollTop()+e.offset().top-n.offset().top,n.animate({scrollTop:t},400)}},__showErrors:function(e,t,n){let i;if(this.trigger("error",e),!this.getAttribute("showErrors"))return;let o=lW.getResponseJSON(t),r=lW.parseFieldErrors(t);rN.size(r)?rN.each(r,function(e,t){this.model.trigger("form:field-error",this.__errorFields[t]||t,rN.map(e,function(e){return/^model\.validation/.test(e)?sk.localize(e,"courage"):e}))},this):i=function(e={}){return Array.isArray(e.errorCauses)&&e.errorCauses.length>0?e.errorCauses[0].errorSummary:e.errorSummary}(o=this.parseErrorMessage(o)),n&&(this.$(".o-form-error-container").addClass("o-form-has-errors"),this.add(l$,".o-form-error-container",{options:{errorSummary:i}})),this._handleErrorScroll(),this.model.trigger("form:resize")},clearErrors:function(){this.$(".o-form-error-container").removeClass("o-form-has-errors"),this.model.trigger("form:clear-errors"),this.model.trigger("form:resize")},toggle:function(){return this.model.set("__edit__",!this.hasReadMode()||!this.model.get("__edit__")),this},__addLayoutItem:function(e){e.input||lJ.get(e)?this.addInput(e):this.__addNonInputLayoutItem(e)},__addNonInputLayoutItem:function(e){let t=rN.omit(e,"type");switch(e.type){case"sectionTitle":this.addSectionTitle(e.title,rN.omit(t,"title"));break;case"divider":this.addDivider(t);break;default:throw Error("unknown input: "+e.type)}},addButton:function(e,t){this.__toolbar&&this.__toolbar.addButton(e,t),this.__buttons.push([e,t])},addDivider:function(e){return this.add('<div class="okta-form-divider form-divider"></div>'),lV.applyShowWhen(this.last(),e&&e.showWhen),lV.applyToggleWhen(this.last(),e&&e.toggleWhen),this},addSectionTitle:function(e,t){return this.add(l3({title:e})),lV.applyShowWhen(this.last(),t&&t.showWhen),lV.applyToggleWhen(this.last(),t&&t.toggleWhen),this},addInput:function(e){e=rN.clone(e),lV.validateInput(e,this.model);let t=lV.generateInputOptions(e,this,this.__createInput).reverse();rN.isEmpty(this.getInputs().toArray())&&rN.extend(t[0],{validateOnlyIfDirty:!0});let n=rN.map(t,this.__createInput,this);rN.each(t,function(e){e.errorField&&(this.__errorFields[e.errorField]=e.name)},this);let i={inputId:rN.last(n).options.inputId,input:n,multi:t.length>1?t.length:void 0};rN.extend(i,rN.omit(this.options,"input"),rN.omit(e,"input"));let o=this.__createWrapper(i);!1!==i.label&&o.add(this.__createLabel(i)),o.add(this._createContainer(i)),o.type=i.type||i.input.type||"custom";let r=[o].concat(rN.rest(arguments));return this.add.apply(this,r)},__createInput:function(e){return lX(e=rN.pick(e,lV.INPUT_OPTIONS))},__createWrapper:function(e){return new l8(e=rN.pick(e,lV.WRAPPER_OPTIONS))},__createLabel:function(e){return new lZ(e=rN.pick(e,lV.LABEL_OPTIONS))},_createContainer:function(e){return new lK(e=rN.pick(e,lV.CONTAINER_OPTIONS))},__saveModelState:function(e){this.__originalModel=sh.extend(!0,{},e.attributes)},add:function(...e){return void 0===e[1]&&(e[1]="> div.o-form-content > .o-form-fieldset-container"),ln.prototype.add.apply(this,e)},focus:function(){let e=this.getInputs().first();return e&&e.focus&&e.focus(),this},disable:function(){return this.invoke("disable"),this},enable:function(){this.invoke("enable")},contentHeight:function(e){let t=this.$(".o-form-content");
5if(!rN.isNumber(e))return t.height();t.css("max-height",e)},getInputs:function(){return rN(this.filter(function(e){return e instanceof l8}))}}),ct={DEBOUNCE_DELAY:200,UNLOADING_FADE:400};function cn(e,t){return rN.resultCtx(e.options,t,e)||rN.result(e,t)}let ci={"click .infobox-dismiss-link":function(e){e.preventDefault(),this.$el.fadeOut(ct.UNLOADING_FADE,()=>{this.trigger("dismissed"),this.remove()})}},co=a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a data-se="dismiss-link" class="infobox-dismiss-link" title="'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"courage",code:"component.dismiss"},data:o,loc:{start:{line:1,column:81},end:{line:1,column:131}}}))+'" href="#"><span data-se="icon" class="dismiss-icon"></span></a>'},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h3 data-se="header">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:286},end:{line:1,column:295}}}):r)+"</h3>"},5:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};
5return'<p data-se="sub-header">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:o,loc:{start:{line:1,column:347},end:{line:1,column:359}}}):r)+"</p>"},7:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ul data-se="list" class="bullets">'+(null!=(r=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"bullets"):t,{name:"each",hash:{},fn:e.program(8,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:420},end:{line:1,column:483}}}))?r:"")+"</ul>"},8:function(e,t,n,i,o){return'<li data-se="list-item">'+e.escapeExpression(e.lambda(t,t))+"</li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=l(n,"if").call(s,null!=t?l(t,"dismissible"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:202}}}))?r:"")+'<span data-se="icon" class="icon '+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"icon")||(null!=t?l(t,"icon"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"icon",hash:{},data:o,loc:{start:{line:1,column:235},end:{line:1,column:243}}}):a)+'"></span>'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"title"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:252},end:{line:1,column:307}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"subtitle"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:307},end:{line:1,column:370}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"bullets"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:370},end:{line:1,column:495}}}))?r:"")},useData:!0}),cr=ln.extend({attributes:{"data-se":"callout"},content:null,size:"standard",type:"info",dismissible:!1,title:null,subtitle:null,bullets:null,constructor:function(){this.events=rN.defaults(this.events||{},ci),ln.apply(this,arguments),this.$el.addClass(function(e){let t="infobox clearfix infobox-"+cn(e,"type");switch(cn(e,"size")){case"standard":t+="";break;case"slim":t+=" infobox-slim";break;case"compact":t+=" infobox-compact";break;case"large":t+=" infobox-md"}return cn(e,"dismissible")&&(t+=" infobox-dismiss"),t}(this)),this.template=co;let e=cn(this,"content");e&&this.add(e)},getTemplateData:function(){let e=cn(this,"type");switch("tip"===e&&(e="light-bulb"),cn(this,"size")){case"slim":e="";break;case"large":e=[e,"-","24"].join("");break;default:e=[e,"-","16"].join("")}return{icon:e,title:cn(this,"title"),subtitle:cn(this,"subtitle"),bullets:cn(this,"bullets"),dismissible:cn(this,"dismissible")}}});var ca=function(e){return new cr(e)},cs=ln.extend({tagName:"span",attributes:function(){return{"data-se":"o-form-input-"+this.getNameString()}},defaultPlaceholder:"",constructor:function(e){e=rN.defaults(e||{},{inputId:e.id||rN.uniqueId("input"),placeholder:this.defaultPlaceholder,inlineValidation:!0,validateOnlyIfDirty:!1}),delete e.id;let t=this;rN.each({enable:"removeClass",disable:"addClass"},function(e,n){t[n]=rN.wrap(t[n],function(n){n.apply(t,arguments),t.$el[e]("o-form-disabled")})}),ln.call(this,e),!0!==rN.result(e,"readOnly")&&!0===rN.result(e,"read")&&this.listenTo(this.model,"change:__edit__",this.render),rN.isFunction(this.focus)&&(this.focus=rN.debounce(rN.bind(this.focus,this),50)),rN.result(e,"validateOnlyIfDirty")||this.addInlineValidation(),this.addModelListeners(),this.$el.addClass("o-form-input-name-"+this.getNameString())},addAriaLabel:function(){let e=this.options.ariaLabel;e&&this.$(":input").attr("aria-label",e)},addInlineValidation:function(){rN.result(this.options,"inlineValidation")&&this.$el.on("focusout",":input",rN.bind(this.validate,this))},toModelValue:function(){let e=this.val();return rN.isFunction(this.to)&&(e=this.to.call(this,e)),rN.isFunction(this.options.to)&&(e=this.options.to.call(this,e)),e},__getDependencyCalloutBtn:function(e){let t=this,n=rN.clone(e),i=n.click||function(){};return n.click=function(){sh(window).one("focus.dependency",function(){t.__showInputDependencies()}),i.call(t)},new(ln.extend({children:[lf(n)]}))},getCalloutParent:function(){return this.$('input[value="'+this.getModelValue()+'"]').parent()},__getCalloutMsgContainer:function(e){return ln.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="o-form-explain">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"msg")||(null!=t?a(t,"msg"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"msg",hash:{},data:o,loc:{start:{line:1,column:29},end:{line:1,column:36}}}):r)+"</span>"},useData:!0}
5),getTemplateData:function(){return{msg:e}}})},showCallout:function(e,t){let n=rN.clone(e);n.className="dependency-callout",n.btn&&(n.content=this.__getDependencyCalloutBtn(n.btn),delete n.btn);let i=ca(n);t||i.add(this.__getCalloutMsgContainer(sk.localize("dependency.callout.msg","courage"))),this.getCalloutParent().append(i.render().el),"success"===n.type&&rN.delay(function(){i.$el.fadeOut(800)},1e3)},removeCallout:function(){this.$el.find(".dependency-callout").remove()},__evaluateCalloutObject:function(e,t){return e?{title:sk.localize("dependency.action.completed","courage"),size:"large",type:"success"}:{title:sk.localize("dependency.action.required","courage",[t]),size:"large",type:"warning"}},__handleDependency:function(e,t){let n=rN.isFunction(t)?t(e):rN.extend({},t,this.__evaluateCalloutObject(e.resolved,t.title));this.removeCallout(),this.showCallout(n,e.resolved)},__showInputDependencies:function(){let e=this,t=e.options.deps[e.getModelValue()];t&&rN.isFunction(t.func)?t.func().done(function(n){e.__handleDependency({resolved:!0,data:n},t.callout)}).fail(function(n){e.__handleDependency({resolved:!1,data:n},t.callout)}):e.removeCallout()},_isEdited:!1,hasIMESupport:!1,update:function(e){var t,n;if(!this._isEdited&&rN.result(this.options,"validateOnlyIfDirty")&&(this._isEdited=!0,this.addInlineValidation()),this.model.set(this.options.name,this.toModelValue()),this.options.deps&&this.__showInputDependencies(),this.hasIMESupport&&null!==(t=window)&&void 0!==t&&null!==(n=t.okta)&&void 0!==n&&n.enableIMESupport){if(this.isComposing)return;e&&lS.isEnter(e)&&this.model.trigger("form:save")}},isEditMode:function(){return!rN.result(this.options,"readOnly")&&(!0!==rN.result(this.options,"read")||!0===this.model.get("__edit__"))},render:function(){this.preRender();let e=this.options.params;return this.options.params=rN.resultCtx(this.options,"params",this),this.isEditMode()?(this.editMode(),this.applyEnabledState()):this.readMode(),this.options.params=e,this.addAriaLabel(),this.postRender(),this},applyEnabledState:function(){rN.resultCtx(this.options,"disabled",this)?this.disable():this.enable()},validate:function(){if(!this.model.get("__pending__")&&this.isEditMode()&&rN.isFunction(this.model.validateField)){let e=this.model.validateField(this.options.name);e&&rN.delay((function(){this.model.trigger("form:clear-error:"+this.options.name),this.model.trigger("invalid",this.model,e,!1)}).bind(this),100)}},addModelListeners:function(){this.listenTo(this.model,"form:field-error",function(e){this.options.name===e&&this.__markError()}),this.listenTo(this.model,"form:clear-errors change:"+this.options.name,this.__clearError),this.listenTo(this.model,"form:clear-error:"+this.options.name,this.__clearError)},val:function(){throw Error("val() is an abstract method")},focus:function(){throw Error("focus() is an abstract method")},defaultValue:function(){return""},editMode:function(){let e=rN.extend({},this.options,{value:this.getModelValue()});return this.$el.html(this.template(e)),this.options.multi&&this.$el.removeClass("margin-r"),this},readMode:function(){return this.$el.text(this.getReadModeString()),this.$el.removeClass("error-field"),this.options.multi&&this.$el.addClass("margin-r"),this},getReadModeString:function(){return rN.resultCtx(this.options,"readModeString",this)||this.toStringValue()},getModelValue:function(){let e=this.model.get(this.options.name);return rN.isFunction(this.from)&&(e=this.from.call(this,e)),rN.isFunction(this.options.from)&&(e=this.options.from.call(this,e)),e},toStringValue:function(){let e=this.getModelValue();return this.options.options&&(e=this.options.options[e]),(Number.isInteger(e)||"boolean"==typeof e)&&(e=String(e)),e||this.defaultValue()},resize:function(){this.model.trigger("form:resize")},disable:function(){this.$(":input").prop("disabled",!0)},enable:function(){this.$(":input").prop("disabled",!1)},changeType:function(e){this.$(":input").prop("type",e),this.options.type=e},getNameString:function(){return rN.isArray(this.options.name)?this.options.name.join("-"):this.options.name},getParams:function(e){let t=e||this.options||{};return rN.clone(rN.resultCtx(t,"params",this)||{})},getParam:function(e,t){let n=rN.resultCtx(this.getParams(),e,this);return rN.isUndefined(n)?t:n},getParamOrAttribute:function(e){return this.getParam(e)||rN.result(this,e)},__markError:function(){this.$el.addClass("o-form-has-errors")},__clearError:function(){this.$el.removeClass("o-form-has-errors")}});let cl=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i){var o,r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s="function",l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<select id="'+l(typeof(o=null!=(o=c(n,"inputId")||(null!=t?c(t,"inputId"):t))?o:a)===s?o.call(r,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:12},end:{line:1,column:23}}}):o)+'" name="'+l(typeof(o=null!=(o=c(n,"name")||(null!=t?c(t,"name"):t))?o:a)===s?o.call(r,{name:"name",hash:{},data:i,loc:{start:{line:1,column:31},end:{line:1,column:39}}}):o)+'"></select>'},useData:!0}
5),cc=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i){var o,r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s="function",l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<option value="'+l(typeof(o=null!=(o=c(n,"key")||(null!=t?c(t,"key"):t))?o:a)===s?o.call(r,{name:"key",hash:{},data:i,loc:{start:{line:1,column:15},end:{line:1,column:22}}}):o)+'">'+l(typeof(o=null!=(o=c(n,"value")||(null!=t?c(t,"value"):t))?o:a)===s?o.call(r,{name:"value",hash:{},data:i,loc:{start:{line:1,column:24},end:{line:1,column:33}}}):o)+"</option>"},useData:!0});var cu=cs.extend({className:"o-form-select",events:{"change select":"update"},constructor:function(){this.template=cl,this.option=this.option||cc,cs.apply(this,arguments),this.params=this.options.params||{}},editMode:function(){this.$el.html(cl(this.options)),this.$select=this.$("select"),this.appendOptions();let e=this.getModelValue();return e?this.$select.val(e):this.$("option:first-child").prop("selected",!0),this.$el.addClass("o-form-control"),this},appendOptions:function(){if(!this.getOptions())return;let e=this.getOptions(),t=Object.keys(e);this.applySortByKey(t),t.forEach(t=>{t?this.$select.append(this.option({key:t,value:e[t]})):this.$select.prepend(this.option({key:"",value:sk.localize("select.default_value","login")}))}),rN.defer(rN.bind(this.update,this))},applySortByKey:function(e){let t=this.options.sortByKey;t&&(t instanceof Function&&e.sort(t),"asc"===t&&e.sort(),"desc"===t&&(e.sort(),e.reverse()))},val:function(){return this.$select&&this.$select.val()},focus:function(){if(this.$select)return this.$select.focus()},toStringValue:function(){let e=this.getModelValue(),t=e,n=this.getOptions();return rN.isEmpty(n)||(t=n[e]),rN.isUndefined(t)&&(t=this.defaultValue()),t||""},getOptions:function(){let e=this.options.options;return rN.isFunction(e)&&(e=e.call(this)),rN.isObject(e)?e:{}},remove:function(){return this.$select&&this.$select.trigger("remove"),cs.prototype.remove.apply(this,arguments)},accessibilityUpdate:function(e,t){let n=this.$select.attr("id")+"_txt";this.$select.attr("id");let i=this.$select.attr("id")+"_ul";if(e?this.$("input[type=text]").attr("id",n).attr("aria-autocomplete","list").attr("aria-activedescendant","").attr("role","combobox").attr("aria-expanded","true").attr("aria-controls",i):this.$("input[type=text]").attr("id",n).attr("role","listbox"),t&&t.aria&&t.aria.label){let e=t.aria.label.trim();this.$("input[type=text]").attr("id",n).attr("aria-label",e)}else{let e=this.$el.parent().prev(".o-form-label").find("label").text().trim();this.$("input[type=text]").attr("id",n).attr("aria-label",e)}}});let cp={undefined:"undefined",true:"true",false:"false"},cd=function(e){return e?"true":!1===e?"false":"undefined"},ch=function(e){switch(e){case"undefined":default:return null;case"true":return!0;case"false":return!1}};var cf=cu.extend({initialize:function(){this.options.options=cp,this.options.from=cd,this.options.to=ch}});let cm=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="o-form-input-group-controls"><span class="input-fix o-form-control"><input type="text" class="o-form-text" name="'+c(typeof(r=null!=(r=u(n,"key")||(null!=t?u(t,"key"):t))?r:s)===l?r.call(a,{name:"key",hash:{},data:o,loc:{start:{line:1,column:125},end:{line:1,column:132}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"key")||(null!=t?u(t,"key"):t))?r:s)===l?r.call(a,{name:"key",hash:{},data:o,loc:{start:{line:1,column:138},end:{line:1,column:145}}}):r)+'" value="'+c(typeof(r=null!=(r=u(n,"value")||(null!=t?u(t,"value"):t))?r:s)===l?r.call(a,{name:"value",hash:{},data:o,loc:{start:{line:1,column:154},end:{line:1,column:163}}}):r)+'" placeholder="'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:o,loc:{start:{line:1,column:178},end:{line:1,column:193}}}):r)+'"/></span><a href="#" class="link-button link-button-icon icon-only"><span class="icon clear-input-16 "></span></a></div><p class="o-form-input-error o-form-explain"><span class="icon icon-16 error-16-small"></span>'+c(typeof(r=null!=(r=u(n,"errorExplain")||(null!=t?u(t,"errorExplain"):t))?r:s)===l?r.call(a,{name:"errorExplain",hash:{},data:o,loc:{start:{line:1,column:408},end:{line:1,column:424}}}):r)+"</p>"},useData:!0}
5),cg="o-form-has-errors",cy="updateArray";var cv=ln.extend({tagName:"div",className:"o-form-input-group",events:{"click a":function(e){e.preventDefault(),this.remove()},"keyup input":function(){this.update()}},isEditMode:function(){return!this.options.readOnly&&(!0!==this.options.read||!0===this.model.get("__edit__"))},initialize:function(){this.template=cm(rN.extend(this.options,{placeholder:this.getPlaceholderText(),errorExplain:this.getErrorExplainText()})),this.update=rN.debounce(this.update,this.options.debounceDelay||ct.DEBOUNCE_DELAY)},render:function(){return this.isEditMode()?this.$el.html(this.template):(this.$el.text(this.options.value),this.$("a").hide()),this},remove:function(){this.trigger(cy,null),this.$el.slideUp(()=>{ln.prototype.remove.call(this,arguments)})},update:function(){let e=this.$("input").val(),t=rN.object([sS.DATATYPE.number,sS.DATATYPE.integer],[sk.parseFloat,this.parseInt]);rN.has(t,this.options.itemType)&&(e=t[this.options.itemType](e),rN.isNumber(e)?this.clearInvalid():this.markInvalid()),this.trigger(cy,e)},markInvalid:function(){this.$el.addClass(cg)},clearInvalid:function(){this.$el.removeClass(cg)},getPlaceholderText:function(){let e;switch(this.options.itemType.toLowerCase()){case"string":e=sk.localize("placeholder.text.string","courage");break;case"number":e=sk.localize("placeholder.text.number","courage");break;case"integer":e=sk.localize("placeholder.text.integer","courage");break;default:e=""}return e},getErrorExplainText:function(){let e;switch(this.options.itemType.toLowerCase()){case"string":e=sk.localize("string.item.type.error.message","courage");break;case"number":e=sk.localize("number.item.type.error.message","courage");break;case"integer":e=sk.localize("integer.item.type.error.message","courage");break;default:e=""}return e},parseInt:function(e){if(/^-?\d+$/.test(e)){let t=parseInt(e,10);return rN.isNaN(t)?e:t}return e}}),cb=cs.extend({className:"array-input",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="array-inputs-button link-button">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"courage",code:"oform.add.another"},data:o,loc:{start:{line:1,column:52},end:{line:1,column:102}}}))+"</a>"},useData:!0}),params:{itemType:"string"},events:{"click .array-inputs-button":function(e){e.preventDefault(),this.isEditMode()&&this.addNewElement()}},initialize:function(e){e||(e={}),this.params=rN.defaults(e.params||{},this.params),this.uniqueIdPrefix="array"},from:function(e){return rN.isArray(e)?e:[]},editMode:function(){return this._setArrayObject(),this.$el.html(this.template),rN.each(this.arrayObject,rN.bind(this._addDeletableBox,this)),this},readMode:function(){this.editMode(),this.$(".array-inputs-button").addClass("link-button-disabled")},val:function(){let e=rN.values(this.arrayObject);return rN.contains([sS.DATATYPE.number,sS.DATATYPE.integer],this.params.itemType)&&(e=rN.filter(e,rN.isNumber)),e},focus:function(){},addNewElement:function(){let e=rN.uniqueId(this.uniqueIdPrefix);this.arrayObject[e]="",this._addDeletableBox("",e),this.update()},_addDeletableBox:function(e,t){let n=new cv(rN.extend(rN.pick(this.options,"read","readOnly","model"),{key:t,value:e,itemType:this.params.itemType}));return this.listenTo(n,"updateArray",function(e){rN.isNull(e)?(delete this.arrayObject[t],this.stopListening(n)):this.arrayObject[t]=e,this.update()}),n.render().$el.hide(),this.$(".array-inputs-button").before(n.el),n.$el.slideDown(),n},_setArrayObject:function(){let e=this.model.get(this.options.name);if(this.arrayObject={},rN.isArray(e)&&!rN.isEmpty(e)){let t=[],n=this;rN(e.length).times(function(){t.push(rN.uniqueId(n.uniqueIdPrefix))}),this.arrayObject=rN.object(t,e)}}});function cw(e){let t=sk.parseFloat(e);return""===e?null:t}function ck(e){return rN.object(e,e)}function c_(e){let t=e.get("items");return t?t.objectName:e.get("objectName")}function cS(e,t,n){let i;let o=e.get("name"),r=n.__nestedProperty__,a=t[o],s=n.get(o);r&&e.set("__fieldNamePrefix__",r);let l=t[c_(e)];
5a&&s&&(a=rN.union(a,s)),l&&l.length?i=l:a&&a.length&&(i=a),e.set("__possibleValues__",i)}function cE(e,t,n){return e.each(function(e){cS(e,t,n)}),e}function cT(e,t){return e.filter(function(e){return function(e,t){let n=c_(e),i=t[n];return!(n&&rN(i).isEmpty())}(e,t)})}(H=a4()).fn.customInput=function(){return H(this).each(function(){if(H(this).is("[type=checkbox],[type=radio]")){var e=H(this),t=e.siblings('label[for="'+e.attr("id")+'"]:first');t.length||(t=e.closest('label[for="'+e.attr("id")+'"]:first')),e.add(t).wrapAll('<div class="custom-'+e.attr("type")+'"></div>'),t.hover(function(){H(this).addClass("hover")},function(){H(this).removeClass("hover")}),e.bind("updateState",function(){e.is(":checked")?t.addClass("checked"):t.removeClass("checked checkedHover checkedFocus")}).trigger("updateState").click(function(){H('input[name="'+H(this).attr("name")+'"]').trigger("updateState")}).focus(function(){t.addClass("focus"),e.is(":checked")&&H(this).addClass("checkedFocus")}).blur(function(){t.removeClass("focus checkedFocus")})}})};var cx=cs.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input type="checkbox" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:o,loc:{start:{line:1,column:29},end:{line:1,column:37}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:43},end:{line:1,column:54}}}):r)+'"/><label for="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:69},end:{line:1,column:80}}}):r)+'" data-se-for-name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:108}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:o,loc:{start:{line:1,column:110},end:{line:1,column:125}}}):r)+"</label>"},useData:!0}),events:{"change :checkbox":"update",keyup:function(e){e.preventDefault(),lS.isSpaceBar(e)?this.$(":checkbox").click():lS.isEnter(e)&&this.model.trigger("form:save")}},editMode:function(){let e=rN.resultCtx(this.options,"placeholder",this);return""===e?e=rN.resultCtx(this.options,"label",this):!1===e&&(e=""),this.$el.html(this.template(rN.extend(rN.omit(this.options,"placeholder"),{placeholder:e}))),this.$(":checkbox").prop("checked",this.getModelValue()||!1),this.$("input").customInput(),this.model.trigger("form:resize"),this},readMode:function(){return this.editMode(),this.$(":checkbox").prop("disabled",!0),this},val:function(){return this.$(":checkbox").prop("checked")},focus:function(){return this.$(":checkbox").focus()}});!function(){var e,t,n=a4(),i="placeholder"in document.createElement("input"),o="placeholder"in document.createElement("textarea"),r=n.fn,a=n.valHooks;function s(e,t){var i=n(this);if(this.value==i.attr("placeholder")&&i.hasClass("placeholder")){if(i.data("placeholder-password")){if(i=i.hide().next().show().attr("id",i.removeAttr("id").data("placeholder-id")),!0===e)return i[0].value=t;i.focus()}else this.value="",i.removeClass("placeholder"),this==document.activeElement&&this.select()}}function l(){var e,t,i,o=n(this),r=this.id;if(""==this.value){if("password"==this.type){if(!o.data("placeholder-textinput")){try{i=o.clone().attr({type:"text"})}catch(o){i=n("<input>").attr(n.extend((e={},t=/^jQuery\d+$/,n.each(this.attributes,function(n,i){i.specified&&!t.test(i.name)&&(e[i.name]=i.value)}),e),{type:"text"}))}i.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":r}).bind("focus.placeholder",s),o.data({"placeholder-textinput":i,"placeholder-id":r}).before(i)}o=o.removeAttr("id").hide().prev().attr("id",r).show()}o.addClass("placeholder"),o[0].value=o.attr("placeholder")}else o.removeClass("placeholder")}i&&o?(t=r.placeholder=function(){return this}).input=t.textarea=!0:((t=r.placeholder=function(){return this.filter((i?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":s,"blur.placeholder":l}).data("placeholder-enabled",!0).trigger("blur.placeholder"),this}).input=i,t.textarea=o,e={get:function(e){var t=n(e);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":e.value},set:function(e,t){var i=n(e);return i.data("placeholder-enabled")?(""==t?(e.value=t,e!=document.activeElement&&l.call(e)):i.hasClass("placeholder")&&s.call(e,!0,t)||(e.value=t),i):e.value=t}},i||(a.input=e),o||(a.textarea=e),n(function(){n(document).delegate("form","submit.placeholder",function(){var e=n(".placeholder",this).each(s);setTimeout(function(){e.each(l)},10)})}),n(window).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})}))}();let cO="okta-form-input-field input-fix";var cC=cs.extend({template:a8.template({1:function(e,t,n,i,o){return'<span class="input-tooltip icon form-help-16"></span>'},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon input-icon '+e.escapeExpression(e.lambda(null!=(r=null!=t?a(t,"params"):t)?a(r,"icon"):r,t))+'"></span>'},5:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"autoComplete")||(null!=t?a(t,"autoComplete"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"autoComplete",hash:{},data:o,loc:{start:{line:1,column:333},end:{line:1,column:349}}}):r)},7:function(e,t,n,i,o){return"off"},9:function(e,t,n,i,o){return'<span class="input-icon-divider"></span>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=p(n,"if").call(s,null!=(r=null!=t?p(t,"params"):t)?p(r,"innerTooltip"):r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:87}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=(r=null!=t?p(t,"params"):t)?p(r,"icon"):r,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:87},end:{line:1,column:166}
5}}))?r:"")+'<input type="'+u(typeof(a=null!=(a=p(n,"type")||(null!=t?p(t,"type"):t))?a:l)===c?a.call(s,{name:"type",hash:{},data:o,loc:{start:{line:1,column:179},end:{line:1,column:187}}}):a)+'" placeholder="'+u(typeof(a=null!=(a=p(n,"placeholder")||(null!=t?p(t,"placeholder"):t))?a:l)===c?a.call(s,{name:"placeholder",hash:{},data:o,loc:{start:{line:1,column:202},end:{line:1,column:217}}}):a)+'" name="'+u(typeof(a=null!=(a=p(n,"name")||(null!=t?p(t,"name"):t))?a:l)===c?a.call(s,{name:"name",hash:{},data:o,loc:{start:{line:1,column:225},end:{line:1,column:233}}}):a)+'" id="'+u(typeof(a=null!=(a=p(n,"inputId")||(null!=t?p(t,"inputId"):t))?a:l)===c?a.call(s,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:239},end:{line:1,column:250}}}):a)+'" value="'+u(typeof(a=null!=(a=p(n,"value")||(null!=t?p(t,"value"):t))?a:l)===c?a.call(s,{name:"value",hash:{},data:o,loc:{start:{line:1,column:259},end:{line:1,column:268}}}):a)+'" aria-label="'+u(typeof(a=null!=(a=p(n,"placeholder")||(null!=t?p(t,"placeholder"):t))?a:l)===c?a.call(s,{name:"placeholder",hash:{},data:o,loc:{start:{line:1,column:282},end:{line:1,column:297}}}):a)+'" autocomplete="'+(null!=(r=p(n,"if").call(s,null!=t?p(t,"autoComplete"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.program(7,o,0),data:o,loc:{start:{line:1,column:313},end:{line:1,column:367}}}))?r:"")+'" />'+(null!=(r=p(n,"if").call(s,null!=(r=null!=t?p(t,"params"):t)?p(r,"iconDivider"):r,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:371},end:{line:1,column:444}}}))?r:"")},useData:!0}),events:{"input input":"update","change input":"update","keydown input":"update","compositionend input":function(){this.isComposing=!1},"compositionstart input":function(){this.isComposing=!0},"keyup input":function(e){lS.isEnter(e)&&!(window.okta&&window.okta.enableIMESupport)?this.model.trigger("form:save"):lS.isEsc(e)&&this.model.trigger("form:cancel")}},hasIMESupport:!0,constructor:function(){cs.apply(this,arguments),this.$el.addClass("o-form-control")},editMode:function(){this.$el.addClass(cO),cs.prototype.editMode.apply(this,arguments),this.$("input").placeholder()},readMode:function(){cs.prototype.readMode.apply(this,arguments),this.$el.addClass("no-translate"),"password"===this.options.type&&this.$el.text("********"),this.$el.removeClass(cO)},val:function(){let e=this.$('input[type="'+this.options.type+'"]').val();return"password"!==this.options.type&&(e=sh.trim(e)),e},focus:function(){return this.$("input").focus()},postRender:function(){let{params:e}=this.options;if(e&&e.innerTooltip){var t;let n=!function(e){let t=e.title,n=e.text;return t&&n&&t!==n}(t=e.innerTooltip)?{text:t.text||t}:t;this.$(".input-tooltip").qtip({content:n,style:{classes:"okta-tooltip qtip-custom qtip-shadow"},position:{my:"bottom left",target:"mouse",adjust:{method:"flip",mouse:!0,y:-5,x:5},viewport:sh("body")}})}}});let cA=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<span class="password-toggle"><span class="eyeicon visibility-16 button-show"></span><span class="eyeicon visibility-off-16 button-hide"></span></span>'},useData:!0});var cP=cC.extend({initialize:function(){this.__showPasswordToggle()&&(this.events["click .password-toggle .button-show"]="__showPassword",this.events["click .password-toggle .button-hide"]="__hidePassword"),this.delegateEvents()},postRender:function(){this.isEditMode()&&this.__showPasswordToggle()&&(this.$el.append(cA),this.$el.find('input[type="password"]').addClass("password-with-toggle")),cC.prototype.postRender.apply(this,arguments)},val:function(){return this.$('input[type="'+this.options.type+'"]').val()},__showPasswordToggle:function(){return this.options.params&&this.options.params.showPasswordToggle},__showPassword:function(){this.$("input").attr("spellcheck",!1),cC.prototype.changeType.apply(this,["text"]),this.$(".password-toggle .button-show").hide(),this.$(".password-toggle .button-hide").show(),this.passwordToggleTimer=rN.delay(()=>{this.__hidePassword()},3e4)},__hidePassword:function(){cC.prototype.changeType.apply(this,["password"]),this.$(".password-toggle .button-show").show(),this.$(".password-toggle .button-hide").hide(),this.passwordToggleTimer&&clearTimeout(this.passwordToggleTimer)}});let cN=lE.isABaseView,cR=ln.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input type="radio" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:o,loc:{start:{line:1,column:26},end:{line:1,column:34}}}):r)+'" data-se-name="'+c(typeof(r=null!=(r=u(n,"realName")||(null!=t?u(t,"realN
5ame"):t))?r:s)===l?r.call(a,{name:"realName",hash:{},data:o,loc:{start:{line:1,column:50},end:{line:1,column:62}}}):r)+'" value="'+c(typeof(r=null!=(r=u(n,"value")||(null!=t?u(t,"value"):t))?r:s)===l?r.call(a,{name:"value",hash:{},data:o,loc:{start:{line:1,column:71},end:{line:1,column:80}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"optionId")||(null!=t?u(t,"optionId"):t))?r:s)===l?r.call(a,{name:"optionId",hash:{},data:o,loc:{start:{line:1,column:86},end:{line:1,column:98}}}):r)+'"><label for="'+c(typeof(r=null!=(r=u(n,"optionId")||(null!=t?u(t,"optionId"):t))?r:s)===l?r.call(a,{name:"optionId",hash:{},data:o,loc:{start:{line:1,column:112},end:{line:1,column:124}}}):r)+'" data-se-for-name="'+c(typeof(r=null!=(r=u(n,"realName")||(null!=t?u(t,"realName"):t))?r:s)===l?r.call(a,{name:"realName",hash:{},data:o,loc:{start:{line:1,column:144},end:{line:1,column:156}}}):r)+'" class="radio-label">'+c(typeof(r=null!=(r=u(n,"label")||(null!=t?u(t,"label"):t))?r:s)===l?r.call(a,{name:"label",hash:{},data:o,loc:{start:{line:1,column:178},end:{line:1,column:187}}}):r)+"</label>"},useData:!0}),initialize:function(e){let t;t=e.explain,rN.isFunction(t)&&!cN(t)&&(t=rN.resultCtx(this.options,"explain",this)),t&&(cN(t)?(this.add('<p class="o-form-explain"></p>',".radio-label"),this.add(t,".o-form-explain")):this.add(ln.extend({className:"o-form-explain",tagName:"p",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"explain")||(null!=t?a(t,"explain"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"explain",hash:{},data:o,loc:{start:{line:1,column:0},end:{line:1,column:11}}}):r)},useData:!0})}),".radio-label"))}});var cI=cs.extend({events:{"change :radio":"update",keyup:function(e){lS.isSpaceBar(e)?sh(e.target).click():lS.isEnter(e)&&this.model.trigger("form:save")}},editMode:function(){let e=[];this.$el.empty(),rN.each(this.options.options,function(t,n){let i={optionId:rN.uniqueId("option"),name:this.options.inputId,realName:this.options.name,value:n};rN.isObject(t)||(t={label:t}),rN.extend(i,t),e.push(new cR(i).render().el)},this),this.$el.append(e);let t=this.getModelValue();return t&&this.$(":radio[value="+t+"]").prop("checked",!0),this.$("input").customInput(),this.model.trigger("form:resize"),!0===this.getParam("inline")&&this.$("div.custom-radio").addClass("inline"),this},readMode:function(){return this.editMode(),this.$(":radio").prop("disabled",!0),this},val:function(){return this.$(":radio:checked").val()},focus:function(){return this.$("label:eq(0)").focus()}});let cD=cs.extend({tagName:"span",initialize:function(){this.$el.text(this.getModelValue())},editMode:function(){this.toggle(!0)},readMode:function(){this.toggle(!1)},getModelValue:function(){return this.options.label},toggle:function(e){this.$el.toggleClass("o-form-label-inline",e),this.$el.toggleClass("o-form-control",!e)},focus:rN.noop}),cL=ln.extend({getParams:cs.prototype.getParams,getParam:cs.prototype.getParam,className:function(){var e;let t;return this.getParam("noBaseClasses")?"":(t="text"===this.getParam("display")?"o-form-input-group-subtle":"o-form-input-group",e=this.getParam("inputs"),rN.filter(e||[],function(e){return!rN.contains(["label","button","select"],e.type)}).length>1&&(t+=" o-form-input-group-2"),t)},initialize:function(){rN.each(this.getParam("inputs"),function(e){switch(e.type){case"label":this.add(cD,{options:e});break;case"button":var t;this.add((t=e,lf(rN.defaults({getReadModeString:rN.constant(" "),focus:rN.noop},rN.pick(t,"click","title","href","icon")))));break;default:e=rN.defaults({model:this.model,params:rN.extend({autoWidth:!0},e.params||{})},e),this.add(this.getParams().create(e))}},this)},focus:function(){this.first().focus()}});var cM=cs.extend({constructor:function(e){this.inputGroupView=new cL(e),cs.apply(this,arguments)},editMode:function(){this.inputGroupView.remove(),this.inputGroupView=new cL(this.options),this.$el.html(this.inputGroupView.render().el)},readMode:function(){this.getParam("useChildInputsReadMode")?this.editMode():cs.prototype.readMode.apply(this,arguments)},toStringValue:function(){let e=this.inputGroupView.map(function(e){return e.getReadModeString()});return e.length&&rN.every(e)?e.join(" "):" "},focus:function(){this.inputGroupView.focus()}},{LabelInput:cD,InputGroupView:cL});sh.fn.scrollParent=function(e){let t=this.css("position"),n="absolute"===t,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){let e=sh(this);return(!n||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&o.length?o:sh(this[0].ownerDocument||document)};let cU=lc.extend({render:function(...e){return ln.prototype.render.apply(this,e),this}});cu.prototype.remove=function(){return cs.prototype.remove.apply(this,arguments)},s9.prototype.compileTemplate=function(e){let t=function(){return e};return t.source="",t};let cF={"input input":"update","change input":"update","keydown input":"update","keyup input":function(e){lS.isEsc(e)&&this.model.trigger("form:cancel")}},cj=cC.extend({events:cF}),cV=cP.extend({events:cF}),cB=ce.extend({scrollOnError:function(){let{settings:e}=this.options;return!1!==e.get("features.scrollOnError")}}
5),cq=sk.localize,c$=lJ.register,cH=ln,cW=ls,cz={Util:lE,Cookie:{setCookie:function(e,t,n){ly.set(e,t,rN.defaults(n||{},{secure:lv,path:"/"}))},getCookie:function(){return ly.get.apply(ly,arguments)},removeCookie:function(){return ly.remove.apply(ly,arguments)}},Clipboard:{attach:function(e,t){return new l_(e,t)}},Logger:so,Class:lm,Keys:lS},cK={BaseDropDown:lR,Notification:lo},cG={FormUtil:lV,SchemaFormFactory:{createInputOptions:function(e){let t=function(e){let t={},n=e.get("name"),i=e.get("__displayType__"),o=e.get("__possibleValues__"),r=e.get("__fieldNamePrefix__");if(r&&(t.name=r+n,t.errorField=n),e.isEnumType()){let n={displayType:i,title:e.get("title"),enumValues:e.getEnumValues()};t=rN.extend({},sI.getEnumInputOptions(n),t)}else i&&i.indexOf("array")>=0&&o&&(t.type="checkboxset",t.input=null,t.options=ck(o));return t}(e),n=function(e){let t=e.get("__displayType__"),n=e.get("__possibleValues__"),i=e.get("name"),o={type:"text",name:i,label:e.get("title")||i};switch(t){case"arrayofstring":o.input=cb,o.params={itemType:"string"};break;case"arrayofnumber":o.input=cb,o.params={itemType:"number"};break;case"arrayofinteger":o.input=cb,o.params={itemType:"integer"};break;case"arrayofobject":o.input=cb,o.params={itemType:e.get("items").type};break;case"arrayofref-id":o.input=cb,o.params={itemType:e.get("items").format};break;case"boolean":o.input=cf;break;case"integer":case"number":o.to=cw;break;case"reference":o.type="select",o.options=ck(n);break;case"image":o.readOnly=!0,o.from=function(e){return rN.isEmpty(e)?"":sk.localize("user.profile.image.image_set","courage")};break;case"password":o.type="password";break;case"date":o.type="date";break;case"uri":case"country-code":case"country_code":case"language-code":case"language_code":case"email":case"locale":case"timezone":case"string":case"object":break;default:throw Error(`unknown type: ${t}`)}return o}(e);return t.params&&n.params&&(t.params=rN.defaults(t.params,n.params)),rN.defaults(t,n)},hasValidSchemaProps:function(e,t){return!rN.isEmpty(e)&&!!cT(e,t).length},prepareSchema:function(e,t,n){return e.reset(cT(e,t)),cE(e,t,n)},augmentSchemaProps:cE,augmentSchemaProp:cS}},cY={Toolbar:lq},cJ={TextBox:cj,PasswordBox:cV,CheckBox:cx,Radio:cI,Select:cu,InputGroup:cM},cQ={BaseSchema:{parseProperties:sJ,Model:sQ,Collection:sX},SchemaProperty:sY};c$("text",cj),c$("password",cV),c$("checkbox",cx),c$("radio",cI),c$("select",cu),c$("group",cM);var cX=n(78486),cZ=n.n(cX);let c0=["OAuthError","AuthSdkError","AuthPollStopError","AuthApiError"];var c1=su.extend({doTransaction:function(e,t){let n=this;return e.call(this,this.appState.get("transaction")).then(function(e){return n.trigger("setTransaction",e),e}).catch(function(e){if("AuthPollStopError"!==e.name&&e.name!==rL.AUTH_STOP_POLL_INITIATION_ERROR&&e.name!==rL.WEBAUTHN_ABORT_ERROR&&(n.trigger("error",n,e.xhr),n.trigger("setTransactionError",e),t||-1===rN.indexOf(c0,e.name)))throw e})},manageTransaction:function(e){let t=this,n=e.call(this,this.appState.get("transaction"),rN.bind(this.setTransaction,this));return cZ().isPromiseAlike(n)?n.catch(function(e){"AuthPollStopError"!==e.name&&e.name!==rL.AUTH_STOP_POLL_INITIATION_ERROR&&e.name!==rL.WEBAUTHN_ABORT_ERROR&&(t.trigger("error",t,e.xhr),t.trigger("setTransactionError",e))}):cZ().resolve(n)},startTransaction:function(e){let t=this,n=e.call(this,this.settings.getAuthClient());return cZ().isPromiseAlike(n)?n.then(function(e){return t.trigger("setTransaction",e),e}).catch(function(e){throw t.trigger("error",t,e.xhr),t.trigger("setTransactionError",e),e}):cZ().resolve(n)},setTransaction:function(e){this.appState.set("transaction",e)}}),c8=cU.extend({addListeners:function(){this.listenTo(this.model,"save",function(){let e=rN.find(this.getChildren(),function(e){return e instanceof cB});(!e.disableSubmitButton||e.disableSubmitButton())&&this.toggleButtonState(!0)}),this.listenTo(this.model,"error",function(){this.toggleButtonState(!1)}),this.addModelListeners(this.model)},addModelListeners:function(e){let t=e=>{this.options.appState.set("transaction",e)},n=e=>{this.options.appState.set("transactionError",e)};this.listenTo(e,"setTransaction",t),this.listenTo(e,"setTransactionError",n);let i=e.get("backupFactor");
5i&&(this.listenTo(i,"setTransaction",t),this.listenTo(i,"setTransactionError",n))},fetchInitialData:function(){return cZ()()},trapAuthResponse:function(){return!1},toJSON:function(){let e=cU.prototype.toJSON.apply(this,arguments);return rN.extend(rN.pick(this.options,"appState"),e)},toggleButtonState:function(e){this.$el.find(".button").toggleClass("link-button-disabled",e).prop("disabled",e)},postRenderAnimation:function(){this.trigger("pageRendered",{page:this.className}),this.trigger("afterRender",{controller:this.className})}});let c2="INPUT",c3="BUTTON",c4="DIVIDER",c6="TOOLBAR",c5="VIEW";function c9(e){return function(t,n){return{type:e,viewOptions:t,addOptions:n}}}var c7={Input:c9(c2),Button:c9(c3),Divider:c9(c4),Toolbar:c9(c6),View:c9(c5),INPUT:c2,BUTTON:c3,DIVIDER:c4,TOOLBAR:c6,VIEW:c5};let{Toolbar:ue}=cY,{FormUtil:ut}=cG,un=cB.extend({layout:"o-form-theme",noCancelButton:!0,constructor:function(e){cB.call(this,e),rN.each(rN.result(this,"formChildren")||[],function(e){switch(e.type){case c7.INPUT:this.addInput(rN.extend({label:!1,"label-top":!0},e.viewOptions));break;case c7.BUTTON:this.add(lf(rN.extend({model:this.model},e.viewOptions)),e.addOptions),ut.applyShowWhen(this.last(),e.viewOptions&&e.viewOptions.showWhen);break;case c7.DIVIDER:this.addDivider(e.viewOptions);break;case c7.TOOLBAR:this.add(ue,{options:e.viewOptions}),ut.applyShowWhen(this.last(),e.viewOptions&&e.viewOptions.showWhen);break;case c7.VIEW:this.add(e.viewOptions.View,e.addOptions),ut.applyShowWhen(this.last(),e.viewOptions.showWhen);break;default:throw Error("Unrecognized child type: "+e.type)}},this)}});var ui=c8.extend({constructor:function(){let e=this.initialize;if(this.initialize=function(){},c8.apply(this,arguments),this.Model&&this.Form){let e=c1.extend(rN.extend({parse:function(e){return this.settings=e.settings,this.appState=e.appState,rN.omit(e,["settings","appState"])}},rN.result(this,"Model")));this.model=new e({settings:this.settings,appState:this.options.appState},{parse:!0});let t=un.extend(rN.result(this,"Form",this));this.form=new t(this.toJSON()),this.add(this.form)}this.Footer&&this.addFooter(this.Footer),this.addListeners(),e.apply(this,arguments)},addFooter:function(e,t){this.footer=new e(rN.extend(this.toJSON(),t||{})),this.add(this.footer)},toJSON:function(){let e=c8.prototype.toJSON.apply(this,arguments);return rN.extend(rN.pick(this.options,"appState"),e)},back:function(){this.footer&&this.footer.back&&this.footer.back()}}),uo=ui.extend({className:"account-unlocked",Model:function(){return{local:{userFullName:["string",!1,this.options.appState.get("userFullName")]}}},Form:{title:rN.partial(cq,"account.unlock.unlocked.title","login"),subtitle:rN.partial(cq,"account.unlock.unlocked.desc","login"),noButtonBar:!0,attributes:{"data-se":"account-unlocked"},formChildren:function(){return[c7.Button({title:cq("goback","login"),className:"button button-primary button-wide",attributes:{"data-se":"back-button"},click:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.trigger("navigate","")}})]}}}),ur=n(94327),ua=n.n(ur),us=n(51455),ul=n.n(us);let uc={MILLISECOND:"milliseconds",SECOND:"seconds",MINUTE:"minutes",HOUR:"hours",DAY:"days"},uu=Object.keys(uc),up=function(e){let t=uu.filter(t=>uc[t]===e);return 1===t.length?t[0]:e};var ud={getTimeInHighestRelevantUnit:function(e,t){let n,i,o;let r=uc[t]||t;try{let t=ua()(Object.assign({days:0,hours:0,minutes:0,seconds:0,milliseconds:0},{[r]:e}));n=ul()(t)}catch(e){n={}}let a=Object.keys(n).reduce((e,t)=>(0!==n[t]&&(e[t]=n[t]),e),{});return 1===Object.keys(a).length?Object.keys(a).forEach(e=>{o=a[e],i=e}):(o=e,i=r),{time:o,unit:up(i)}},formatDateToDeviceAssuranceGracePeriodExpiryLocaleString:(e,t,n=!0)=>{try{if(!(e instanceof Date)||isNaN(e.valueOf())||null===t)return null;return n&&e.setMinutes(0,0,0),e.toLocaleString(t,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",timeZoneName:"short"})}catch(e){return null}},calculateDaysBetween:function(e,t){try{if("number"==typeof e&&"number"==typeof t)return Math.floor(Math.abs(t-e)/864e5)}catch(e){}return null}};let uh={},uf={OKTA_VERIFY:{label:"factor.totpSoft.oktaVerify",description:"factor.totpSoft.description",iconClassName:"mfa-okta-ver
5ify",sortOrder:1},OKTA_VERIFY_PUSH:{label:"factor.oktaVerifyPush",description:"factor.push.description",iconClassName:"mfa-okta-verify",sortOrder:1},U2F:{label:"factor.u2f",description:e=>e?"factor.u2f.description.specific":"factor.u2f.description.generic",iconClassName:"mfa-u2f",sortOrder:2},WEBAUTHN:{label:"factor.webauthn.biometric",description:"factor.webauthn.biometric.description",iconClassName:"mfa-webauthn",sortOrder:2},WINDOWS_HELLO:{label:"factor.windowsHello",description:e=>e?"factor.windowsHello.signin.description.specific":"factor.windowsHello.signin.description.generic",iconClassName:"mfa-windows-hello",sortOrder:3},YUBIKEY:{label:"factor.totpHard.yubikey",description:"factor.totpHard.yubikey.description",iconClassName:"mfa-yubikey",sortOrder:4},GOOGLE_AUTH:{label:"factor.totpSoft.googleAuthenticator",description:"factor.totpSoft.description",iconClassName:"mfa-google-auth",sortOrder:5},CUSTOM_HOTP:{label:"",description:"factor.hotp.description",iconClassName:"mfa-hotp",sortOrder:6},SMS:{label:"factor.sms",description:"factor.sms.description",iconClassName:"mfa-okta-sms",sortOrder:7},CALL:{label:"factor.call",description:"factor.call.description",iconClassName:"mfa-okta-call",sortOrder:8},EMAIL:{label:"factor.email",description:"factor.email.description",iconClassName:"mfa-okta-email",sortOrder:9},QUESTION:{label:"factor.securityQuestion",description:"factor.securityQuestion.description",iconClassName:"mfa-okta-security-question",sortOrder:10},DUO:{label:"factor.duo",description:"factor.duo.description",iconClassName:"mfa-duo",sortOrder:11},SYMANTEC_VIP:{label:"factor.totpHard.symantecVip",description:"factor.totpHard.description",iconClassName:"mfa-symantec",sortOrder:12},RSA_SECURID:{label:"factor.totpHard.rsaSecurId",description:"factor.totpHard.description",iconClassName:"mfa-rsa",sortOrder:13},ON_PREM:{label:"",description:"factor.totpHard.description",iconClassName:"mfa-onprem",sortOrder:14},PASSWORD:{label:"factor.password",description:"",iconClassName:"mfa-okta-password",sortOrder:15},CUSTOM_CLAIMS:{label:"",description:"factor.customFactor.description",iconClassName:"mfa-custom-factor",sortOrder:16},GENERIC_SAML:{label:"",description:e=>e?"factor.customFactor.description.specific":"factor.customFactor.description.generic",iconClassName:"mfa-custom-factor",sortOrder:17},GENERIC_OIDC:{label:"",description:e=>e?"factor.customFactor.description.specific":"factor.customFactor.description.generic",iconClassName:"mfa-custom-factor",sortOrder:18}},um=function(e,t){if(e.complexity){let n=t.complexity,i=function(e){let t=e.excludeAttributes;return e.excludeFirstName=rN.contains(t,"firstName"),e.excludeLastName=rN.contains(t,"lastName"),rN.omit(e,"excludeAttributes")}(e.complexity),o=i;i.useADComplexityRequirements&&(o=rN.pick(i,["minLength","useADComplexityRequirements","excludeUsername","excludeFirstName","excludeLastName","excludeAttributes"]));let r=rN.map(o,function(e,t){if(e<=0)return;let i=n[t];return i.args?r3(i.i18n,"login",[e]):r3(i.i18n,"login")});return rN.compact(r)}return[]},ug=function(e,t,n){let i={complexity:[],history:[],age:[]};i.complexity=um(e,t);let o=e.age&&e.age.historyCount>0?n?1===e.age.historyCount?r3(t.history.one.i18n,"login"):r3(t.history.many.i18n,"login",[e.age.historyCount]):r3(t.history.i18n,"login",[e.age.historyCount]):null;o&&i.history.push(o);let r=e.age&&e.age.minAgeMinutes>0?function(e){let n;switch(e.unit){case"DAY":n=t.age.days.i18n;break;case"HOUR":n=t.age.hours.i18n;break;case"MINUTE":n=t.age.minutes.i18n}return r3(n,"login",[e.time])}(ud.getTimeInHighestRelevantUnit(e.age.minAgeMinutes,"MINUTE")):null;return r&&i.age.push(r),i};uh.getFactorName=function(e,t){return"OKTA"===e&&"token:software:totp"===t?"OKTA_VERIFY":"OKTA"===e&&"push"===t?"OKTA_VERIFY_PUSH":"GOOGLE"===e?"GOOGLE_AUTH":"SYMANTEC"===e&&"token"===t?"SYMANTEC_VIP":"RSA"===e&&"token"===t?"RSA_SECURID":"DEL_OATH"===e&&"token"===t?"ON_PREM":"DUO"===e&&"web"===t?"DUO":"YUBICO"===e&&"token:hardware"===t?"YUBIKEY":"OKTA"===e&&"sms"===t?"SMS":"OKTA"===e&&"call"===t?"CALL":"OKTA"===e&&"question"===t?"QUESTION":"OKTA"===e&&"email"===t?"EMAIL":"OKTA"===e&&"password"===t?"PASSWORD":"GENERIC_SAML"===e&&"assertion:saml2"===t?"GENERIC_SAML":"GENERIC_OIDC"===e&&"assertion:oidc"===t?"GENERIC_OIDC":uh.getFactorNameForFactorType.call(this,t)},uh.getFactorNameForFactorType=function(e){return"u2f"===e?"U2F":"token:software:totp"===e?"OKTA_VERIFY":"webauthn"===e?this.settings.get("features.webauthn")?"WEBAUTHN":"WINDOWS_HELLO":"token:hotp"===e?"CUSTOM_HOTP":"claims_provider"===e?"CUSTOM_CLAIMS":void 0},uh.isOktaVerify=function(e,t){return"OKTA"===e&&("token:software:totp"===t||"push"===t)},uh.getFactorLabel=function(e,t){return r3(uf[uh.getFactorName.apply(this,[e,t])].label,"login")},uh.getFactorDescription=function(e,t){let n=uf[uh.getFactorName.apply(this,[e,t])].description;if(!rN.isFunction(n))return n?r3(n,"login"):"";{let e=this.settings.get("brandName"),t=n(e);return e?r3(t,"login",[e]):r3(t,"login")}},uh.getFactorIconClassName=function(e,t){return uf[uh.getFactorName.apply(this,[e,t])].iconClassName},uh.getFactorSortOrder=function(e,t){return uf[uh.getFactorName.apply(this,[e,t])].sortOrder},uh.getRememberDeviceValue=function(e){return e&&e.get("rememberDeviceByDefault")}
5,uh.getSecurityQuestionLabel=function(e){let t=r3("security."+e.question);return 0>t.indexOf("L10N_ERROR")?t:e.questionText},uh.removeRequirementsFromError=function(e,t){let n=this.getPasswordComplexityDescription(t);return e.errorCauses&&e.errorCauses.length>0&&rN.isString(e.errorCauses[0].errorSummary)&&(e.errorCauses[0].errorSummary=e.errorCauses[0].errorSummary.replace(n,"").trim()),e},uh.getPasswordComplexityDescriptionForHtmlList=function(e){let t=ug(e,{complexity:{minLength:{i18n:"password.complexity.length.description",args:!0},minLowerCase:{i18n:"password.complexity.lowercase.description"},minUpperCase:{i18n:"password.complexity.uppercase.description"},minNumber:{i18n:"password.complexity.number.description"},minSymbol:{i18n:"password.complexity.symbol.description"},excludeUsername:{i18n:"password.complexity.no_username.description"},excludeFirstName:{i18n:"password.complexity.no_first_name.description"},excludeLastName:{i18n:"password.complexity.no_last_name.description"},useADComplexityRequirements:{i18n:"password.complexity.adRequirements.description"},maxConsecutiveRepeatingCharacters:{i18n:"password.complexity.maxConsecutiveRepeatingCharacters.description",args:!0}},history:{one:{i18n:"password.complexity.history.one.description"},many:{i18n:"password.complexity.history.description"}},age:{minutes:{i18n:"password.complexity.minAgeMinutes.description"},hours:{i18n:"password.complexity.minAgeHours.description"},days:{i18n:"password.complexity.minAgeDays.description"}}},!0);return rN.union(t.complexity,t.history,t.age)},uh.getPasswordComplexityDescription=function(e){let t=[],n=ug(e,{complexity:{minLength:{i18n:"password.complexity.length",args:!0},minLowerCase:{i18n:"password.complexity.lowercase"},minUpperCase:{i18n:"password.complexity.uppercase"},minNumber:{i18n:"password.complexity.number"},minSymbol:{i18n:"password.complexity.symbol"},excludeUsername:{i18n:"password.complexity.no_username"},excludeFirstName:{i18n:"password.complexity.no_first_name"},excludeLastName:{i18n:"password.complexity.no_last_name"},useADComplexityRequirements:{i18n:"password.complexity.adRequirements"},maxConsecutiveRepeatingCharacters:{i18n:"password.complexity.maxConsecutiveRepeatingCharacters",args:!0}},history:{i18n:"password.complexity.history"},age:{minutes:{i18n:"password.complexity.minAgeMinutes"},hours:{i18n:"password.complexity.minAgeHours"},days:{i18n:"password.complexity.minAgeDays"}}},!1),i=n.complexity;return i.length>0&&(i=rN.reduce(i,function(e,t){return e?e+r3("password.complexity.list.element","login",[t]):t}),t.push(r3("password.complexity.requirements","login",[i]))),t.push(n.history[0]),t.push(n.age[0]),rN.compact(t).join(" ")},uh.getCardinalityText=function(e,t,n){if(n){if(e)return 1===n.enrolled?"":r3("enroll.choices.cardinality.setup","login",[n.enrolled]);if(t&&n.maximum>1)return r3("enroll.choices.cardinality.setup.remaining","login",[n.enrolled,n.minimum])}return""},uh.findFactorInFactorsArray=function(e,t,n){let i=e.findWhere({provider:t,factorType:n});return void 0===i&&(i=e.findWhere({factorType:n})),i};let{TextBox:uy}=cJ;var uv=uy.extend({postRender:function(){"number"===this.options.type&&this.$("input").attr({pattern:"[0-9]*",inputmode:"numeric"}),uy.prototype.postRender.apply(this,arguments)},focus:function(){if(!rK.isIE())return uy.prototype.focus.apply(this,arguments)}});let ub={title:function(){return cq("enroll.totp.title","login",[uh.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"))])},subtitle:rN.partial(cq,"enroll.totp.enterCode","login"),autoSave:!0,noButtonBar:!0,attributes:{"data-se":"step-sendcode"},formChildren:function(){return[c7.Input({label:cq("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("mfa.challenge.enterCode.tooltip","mfa.challenge.enterCode.placeholder","login"),"explain-top":!0,name:"passCode",input:uv,type:"tel"}),c7.Toolbar({noCancelButton:!0,save:cq("oform.verify","login")})]}};var uw=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"mfa.backToFactors"}
5,data:o,loc:{start:{line:1,column:58},end:{line:1,column:106}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.options.appState.trigger("backToFactors"),this.back()}},back:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.get("prevLink")?this.model.doTransaction(function(e){return e.prev()}):this.options.appState.trigger("navigate","signin/enroll")}}),uk=ui.extend({className:"activate-totp",Model:function(){return{props:{factorId:["string",!0,this.options.appState.get("activatedFactorId")],passCode:["string",!0]},local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},save:function(){return this.doTransaction(function(e){return e.activate({passCode:this.get("passCode")})})}}},Form:ub,Footer:uw}),u_=cH.extend({className:"scope-item",template:a8.template({1:function(e,t,n,i,o){return'<span class="scope-item-tooltip icon form-help-16" />'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="scope-item-text no-translate">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"name")||(null!=t?l(t,"name"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"name",hash:{},data:o,loc:{start:{line:1,column:40},end:{line:1,column:48}}}):a)+"</p>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"description"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:52},end:{line:1,column:131}}}))?r:"")},useData:!0}),postRender:function(){this.$(".scope-item-tooltip").qtip({content:{text:rN.escape(this.options.description)},style:{classes:"okta-tooltip qtip-custom qtip-shadow"},position:{my:"bottom left",target:"mouse"}})}});let uS={groups:"user",myAccount:"user",users:"user",apps:"resource",authenticators:"resource",authorizationServers:"resource",clients:"resource",domains:"resource",factors:"resource",idps:"resource",linkedObjects:"resource",policies:"resource",templates:"resource",eventHooks:"hook",inlineHooks:"hook",events:"system",logs:"system",orgs:"system",roles:"system",schemas:"system",sessions:"system",trustedOrigins:"system"},uE=({name:e=""})=>uS[e.split(".")[1]]||"system",uT=cH.extend({className:"scope-group",events:{click:"expandScopes"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="scope-group--header"><h3>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"groupName")||(null!=t?a(t,"groupName"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"groupName",hash:{},data:o,loc:{start:{line:1,column:37},end:{line:1,column:50}}}):r)+'</h3><span class="scope-group--toggle"><svg class="caret" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="path" fill-rule="evenodd" clip-rule="evenodd" d="M5.99967 4.66663L10.2663 8.66663L11.333 7.66663L5.99967 2.66663L0.666342 7.73636L1.73301 8.66663L5.99967 4.66663Z" fill="#A0A7AC"></path></svg></span></div>'},useData:!0}),expandScopes:function(){this.$el.toggleClass("scope-group--is-expanded"),this.$(".caret").toggleClass("caret--is-rotated")},preRender:function(){rN.chain(this.options.scopes).sortBy(({name:e})=>e).each(({name:e,displayName:t,description:n})=>{this.add(u_,{options:{name:t||e,description:n}})})}});var ux=cH.extend({className:"scope-list detail-row",postRender:function(){let e=this.model.get("scopes"),t=rN.groupBy(e,uE),n={user:cq("admin.consent.group.user.group","login"),resource:cq("admin.consent.group.resource.policy","login"),hook:cq("admin.consent.group.hook","login"),system:cq("admin.consent.group.system","login")};rN.each(n,(e,n)=>{let i=t[n];Array.isArray(i)&&this.add(uT,{options:{groupName:e,scopes:i}})})}});let uO=a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"clientURI")||(null!=t?a(t,"clientURI"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"clientURI",hash:{},data:o,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):r)+'" class="client-logo-link" target="_blank">'},3:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo custom-logo" src="'+l("function"==typeof(r=null!=(r=c(n,"customLogo")||(null!=t?c(t,"customLogo"):t))?r:s)?r.call(a,{name:"customLogo",hash:{},data:o,loc:{start:{line:1,column:149},end:{line:1,column:163}}}):r)+'" alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"common.logo.alt"},data:o,loc:{start:{line:1,column:170},end:{line:1,column:216}}}))+'" aria-hidden="true" />'},5:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo default-logo" src="'+l("function"==typeof(r=null!=(r=c(n,"defaultLogo")||(null!=t?c(t,"defaultLogo"):t))?r:s)?r.call(a,{name:"defaultLogo",hash:{},data:o,loc:{start:{line:1,column:290},end:{line:1,column:305}}}):r)+'" alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"common.logo.alt"},data:o,loc:{start:{line:1,column:312},end:{line:1,column:358}}}))+'" aria-hidden="true" />'},7:function(e,t,n,i,o){return"</a>"},9:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="issuer"><span>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"issuer")||(null!=t?a(t,"issuer"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"issuer",hash:{}
5,data:o,loc:{start:{line:1,column:566},end:{line:1,column:576}}}):r)+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:89}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"customLogo"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.program(5,o,0),data:o,loc:{start:{line:1,column:89},end:{line:1,column:388}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:388},end:{line:1,column:416}}}))?r:"")+'<h1><span class="title-text">'+(null!=(r=(s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{arguments:"appName",bundle:"login",code:"consent.required.text"},data:o,loc:{start:{line:1,column:445},end:{line:1,column:519}}}))?r:"")+"</span>"+(null!=(r=s(n,"if").call(a,null!=t?s(t,"issuer"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:526},end:{line:1,column:596}}}))?r:"")+"</h1>"},useData:!0}),uC=cH.extend({className:"consent-title detail-row",template:uO,getTemplateData:function(){var e=this.options.appState;return{appName:e.escape("targetLabel"),customLogo:e.get("targetLogo")&&e.get("targetLogo").href,defaultLogo:e.get("defaultAppLogo"),clientURI:e.get("targetClientURI")&&e.get("targetClientURI").href,issuer:e.get("issuer")}}}),uA={noCancelButton:!1,buttonOrder:["cancel","save"],autoSave:!0,save:rN.partial(cq,"consent.required.consentButton","login"),cancel:rN.partial(cq,"consent.required.cancelButton","login"),formChildren:[c7.View({View:uC}),c7.View({View:ux})]},uP=ui.extend({Model:{props:{scopes:["array",!0]},save:function(){return this.doTransaction(function(e){return e.consent({consent:{scopes:rN.pluck(this.get("scopes"),"name")}})})},cancel:function(){var e=this;return this.doTransaction(function(e){return e.cancel()}).then(function(){var t=e.settings.get("consent.cancel");rN.isFunction(t)&&t()})}},Form:uA,className:"admin-consent-required",initialize:function(){this.model.set("scopes",this.options.appState.get("scopes")),this.listenTo(this.form,"cancel",()=>{this.model.cancel()})}});class uN{constructor(){this.inline=!0}}class uR{constructor(){this.terminal=!0}}class uI extends rj{constructor(e,t){super(e.message),this.errorType=void 0,this.orginalError=void 0,this.errorDetails=void 0,this.errorType=new t,this.orginalError=e,this.errorDetails={errorSummary:this.getErrorSummary(),errorCode:e.errorCode,errorCauses:"errorCauses"in e?e.errorCauses:void 0}}getErrorSummary(){return this.orginalError.errorSummary}is(e){var t;return!!(null===(t=Object.getOwnPropertyDescriptor(this.errorType,e))||void 0===t?void 0:t.value)}}class uD extends uI{}class uL extends uI{}class uM extends uD{constructor(e){super(e,uR)}getErrorSummary(){return r3("error.unsynced.clock","login")}}class uU extends uD{constructor(e){super(e,uN)}}class uF extends uD{constructor(e){super(e,uN)}getErrorSummary(){return r3("error.jit_failure","login")}}class uj extends uL{constructor(e){super(e,uN)}getErrorSummary(){return r3("error.mfa.required","login")}}
5function uV(e){switch(e.errorCode){case"access_denied":return new uU(e);case"jit_failure_missing_fields":case"jit_failure_invalid_login_format":case"jit_failure_values_not_match_pattern":case"jit_failure_values_too_long":case"jit_failure_invalid_locale":return new uF(e);case"login_required":if("The client specified not to prompt, but the client app requires re-authentication or MFA."===e.message)return new uj(e);case"INTERNAL":if("The JWT was issued in the future"===e.message)return new uM(e);default:return new uD(e,Object)}}let uB={},uq=["responseType","scopes","state","nonce","idp","idpScope","display","prompt","maxAge","loginHint"];uB.AUTH_PARAMS=uq,uB.getTokens=function(e,t,n){function i(t){e.callGlobalSuccess(rL.SUCCESS,t)}function o(t){let i=uV(t);i.is("terminal")?(n.model.appState.set("flashError",i),n.model.appState.trigger("navigate","signin/error")):i.is("inline")&&(n.model.trigger("error",n.model,{responseJSON:{errorSummary:i.errorDetails.errorSummary}}),n.model.appState.trigger("removeLoading")),i.is("terminal")||r7.triggerAfterError(n,i,e),i instanceof uL&&e.callGlobalError(i)}let r=e.getAuthClient(),a=r.isAuthorizationCodeFlow()&&!r.isPKCE(),s=e.toJSON({verbose:!0}),l={};rN.extend(l,rN.pick(s,"clientId","redirectUri"),rN.pick(s.authParams,uq),t),l.popupTitle=r3("socialauth.popup.title","login"),l.timeout=s.oAuthTimeout,"always"===s.redirect||a?r.token.getWithRedirect(l).catch(o):l.sessionToken?r.token.getWithoutPrompt(l).then(i).catch(o):(s.initialPopupPath&&(l.initialPath=s.initialPopupPath),r.token.getWithPopup(l).then(i).catch(o))};let u$={},uH=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/verify/"+c(typeof(r=null!=(r=u(n,"provider")||(null!=t?u(t,"provider"):t))?r:s)===l?r.call(a,{name:"provider",hash:{},data:o,loc:{start:{line:1,column:14},end:{line:1,column:26}}}):r)+"/"+c(typeof(r=null!=(r=u(n,"factorType")||(null!=t?u(t,"factorType"):t))?r:s)===l?r.call(a,{name:"factorType",hash:{},data:o,loc:{start:{line:1,column:27},end:{line:1,column:41}}}):r)},useData:!0}),uW=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/verify/"+c(typeof(r=null!=(r=u(n,"provider")||(null!=t?u(t,"provider"):t))?r:s)===l?r.call(a,{name:"provider",hash:{},data:o,loc:{start:{line:1,column:14},end:{line:1,column:26}}}):r)+"/"+c(typeof(r=null!=(r=u(n,"factorType")||(null!=t?u(t,"factorType"):t))?r:s)===l?r.call(a,{name:"factorType",hash:{},data:o,loc:{start:{line:1,column:27},end:{line:1,column:41}}}):r)+"/"+c(typeof(r=null!=(r=u(n,"factorIndex")||(null!=t?u(t,"factorIndex"):t))?r:s)===l?r.call(a,{name:"factorIndex",hash:{},data:o,loc:{start:{line:1,column:42},end:{line:1,column:57}}}):r)},useData:!0}),uz=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/verify/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"factorType")||(null!=t?a(t,"factorType"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"factorType",hash:{},data:o,loc:{start:{line:1,column:14},end:{line:1,column:28}}}):r)},useData:!0}),uK=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/enroll/"+c(typeof(r=null!=(r=u(n,"provider")||(null!=t?u(t,"provider"):t))?r:s)===l?r.call(a,{name:"provider",hash:{},data:o,loc:{start:{line:1,column:14},end:{line:1,column:26}}}):r)+"/"+c(typeof(r=null!=(r=u(n,"factorType")||(null!=t?u(t,"factorType"):t))?r:s)===l?r.call(a,{name:"factorType",hash:{},data:o,loc:{start:{line:1,column:27},end:{line:1,column:41}}}):r)},useData:!0}
5),uG=a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"step")||(null!=t?a(t,"step"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"step",hash:{},data:o,loc:{start:{line:1,column:63},end:{line:1,column:71}}}):r)},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/enroll-activate/"+u(typeof(a=null!=(a=p(n,"provider")||(null!=t?p(t,"provider"):t))?a:l)===c?a.call(s,{name:"provider",hash:{},data:o,loc:{start:{line:1,column:23},end:{line:1,column:35}}}):a)+"/"+u(typeof(a=null!=(a=p(n,"factorType")||(null!=t?p(t,"factorType"):t))?a:l)===c?a.call(s,{name:"factorType",hash:{},data:o,loc:{start:{line:1,column:36},end:{line:1,column:50}}}):a)+(null!=(r=p(n,"if").call(s,null!=t?p(t,"step"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:50},end:{line:1,column:78}}}))?r:"")},useData:!0}),uY=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/recovery/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"recoveryToken")||(null!=t?a(t,"recoveryToken"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"recoveryToken",hash:{},data:o,loc:{start:{line:1,column:16},end:{line:1,column:33}}}):r)},useData:!0}),uJ=a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"token")||(null!=t?a(t,"token"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"token",hash:{},data:o,loc:{start:{line:1,column:39},end:{line:1,column:48}}}):r)},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/refresh-auth-state"+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"token"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:25},end:{line:1,column:55}}}))?r:"")},useData:!0}),uQ=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/okta/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"username")||(null!=t?a(t,"username"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"username",hash:{},data:o,loc:{start:{line:1,column:12},end:{line:1,column:24}}}):r)},useData:!0}),uX=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression(typeof(a=null!=(a=u(n,"baseUrl")||(null!=t?u(t,"baseUrl"):t))?a:l)===c?a.call(s,{name:"baseUrl",hash:{},data:o,loc:{start:{line:1,column:0},end:{line:1,column:11}}}):a)+"/login/sessionCookieRedirect?checkAccountSetupComplete=true&token="+(null!=(r=typeof(a=null!=(a=u(n,"token")||(null!=t?u(t,"token"):t))?a:l)===c?a.call(s,{name:"token",hash:{},data:o,loc:{start:{line:1,column:77},end:{line:1,column:88}}}):a)?r:"")+"&redirectUrl="+(null!=(r=typeof(a=null!=(a=u(n,"redirectUrl")||(null!=t?u(t,"redirectUrl"):t))?a:l)===c?a.call(s,{name:"redirectUrl",hash:{},data:o,loc:{start:{line:1,column:101},end:{line:1,column:118}}}):a)?r:"")},useData:!0}),uZ=["DEVICE_ACTIVATED","DEVICE_NOT_ACTIVATED_CONSENT_DENIED","DEVICE_NOT_ACTIVATED"];u$.isHostBackgroundChromeTab=function(){return!!(navigator.userAgent.match(/Android/)&&navigator.userAgent.match(/Chrome/))&&!!document.hidden},u$.isDocumentVisible=function(){return"visible"===document.visibilityState},u$.createVerifyUrl=function(e,t,n){return e&&n?uW({provider:encodeURIComponent(e.toLowerCase()),factorType:encodeURIComponent(t),factorIndex:encodeURIComponent(n)}):e?uH({provider:encodeURIComponent(e.toLowerCase()),factorType:encodeURIComponent(t)}):uz({factorType:encodeURIComponent(t)})},u$.createEnrollFactorUrl=function(e,t){return uK({provider:encodeURIComponent(e.toLowerCase()),factorType:encodeURIComponent(t)})},u$.createActivateFactorUrl=function(e,t,n){return uG({provider:encodeURIComponent(e.toLowerCase()),factorType:encodeURIComponent(t),step:!!n&&encodeURIComponent(n)})},u$.createRecoveryUrl=function(e){return uY({recoveryToken:encodeURIComponent(e)})},u$.createRefreshUrl=function(e){return uJ({token:e?encodeURIComponent(e):null})},u$.createSigninUrl=function(e){return e?uQ({username:encodeURIComponent(e)}):"signin"},u$.routeAfterAuthStatusChangeError=function(e,t){if(t){if(t.xhr&&rK.corsIsNotEnabled(t.xhr)){e.settings.callGlobalError(new rF(cq("error.enabled.cors")));return}if("E0000011"===t.errorCode){e.appState.set("flashError",t),e.controller.state.set("navigateDir",rL.DIRECTION_BACK),e.settings.get("features.mfaOnlyFlow")?e.navigate("signin/error",{trigger:!0}):e.navigate("",{trigger:!0});return}r7.triggerAfterError(e.controller,t)}},u$.routeAfterAuthStatusChange=function(e,t){if(!t||!t.status){e.appState.clearLastAuthResponse();return}e.appState.setAuthResponse(t),e.controller&&e.controller.trapAuthResponse(t)||u$.handleResponseStatus(e,t)},u$.handleResponseStatus=function(e,t){switch(t.status){case"SUCCESS":(function(e,t){var n,i,o,r,a,s,l;if(t.recoveryType===rL.RECOVERY_TYPE_UNLOCK){e.navigate("signin/account-unlocked",{trigger:!0});return}if(rN.contains(uZ,null===(n=t._embedded)||void 0===n?void 0:n.deviceActivationStatus)){e.navigate("signin/device-activate-complete",{trigger:!0});return}if(e.settings.get("oauth2Enabled")){uB.getTokens(e.settings,{sessionToken:t.sessionToken},e.controller);return}let c={user:t._embedded.user,type:t.type||rL.SESSION_SSO};t.relayState&&(c.relayState=t.relayState);let u=e.settings.get("redirectUtilFn"),p=(null==t?void 0:null===(i=t._links)||void 0===i?void 0:null===(o=i.original)||void 0===o?void 0:o.href)||(null==t?void 0:null===(r=t._links)||void 0===r?void 0:null===(a=r.next)||void 0===a?void 0:a.href);if(t.type===rL.SESSION_STEP_UP){let e=null==t?void 0:null===(s=t._links)||void 0===s?void 0:null===(l=s.next)||void 0===l?void 0:l.href;c.stepUp={url:e,finish:function(){u(e)}}}else p?c.next=function(){u(p)}:c.type=rL.SESSION_SSO,t.sessionToken&&(c.session={token:t.sessionToken,setCookieAndRedirect:function(n){if(n&&r7.debugMessage(` 6 Passing a "redirectUri" to "setCookieAndRedirect" is strongly discouraged. 7 It is recommended to set a "redirectUri" option in the config object passed to the widget constructor. 8 `),!(n=n||e.settings.get("redirectUri")))throw new rU('"redirectUri" is required');u(uX({baseUrl:e.settings.get("baseUrl"),token:encodeURIComponent(t.sessionToken),redirectUrl:encodeURIComponent(n)}))}});
8u$.isHostBackgroundChromeTab()?document.addEventListener("visibilitychange",function t(){u$.isDocumentVisible()&&(document.removeEventListener("visibilitychange",t),e.settings.callGlobalSuccess(rL.SUCCESS,c))}):e.settings.callGlobalSuccess(rL.SUCCESS,c)})(e,t);return;case"ADMIN_CONSENT_REQUIRED":e.navigate("signin/admin-consent",{trigger:!0});return;case"CONSENT_REQUIRED":e.navigate("signin/consent",{trigger:!0});return;case"DEVICE_ACTIVATE":e.navigate("signin/device-activate",{trigger:!0});return;case"FACTOR_REQUIRED":case"FACTOR_CHALLENGE":case"MFA_REQUIRED":{let t=e.appState.get("lastFailedChallengeFactorData");t&&t.factor&&(e.appState.get("factors").lastUsedFactor=t.factor);let n=e.appState.get("factors").getDefaultFactor(),i=u$.createVerifyUrl(n.get("provider"),n.get("factorType"));e.navigate(i,{trigger:!0}),e.appState.clearLastFailedChallengeFactorData();return}case"POLL":e.navigate("signin/poll",{trigger:!0});return;case"MFA_CHALLENGE":e.appState.get("isFactorResultFailed")&&e.appState.setLastFailedChallengeFactorData(),e.appState.get("transaction").prev().then(function(t){e.appState.set("transaction",t)});return;case"MFA_ENROLL":case"FACTOR_ENROLL":e.navigate("signin/enroll",{trigger:!0});return;case"MFA_ENROLL_ACTIVATE":case"FACTOR_ENROLL_ACTIVATE":{let t=u$.createActivateFactorUrl(e.appState.get("activatedFactorProvider"),e.appState.get("activatedFactorType"));e.navigate(t,{trigger:!0});return}case"PASSWORD_WARN":case"PASSWORD_EXPIRED":e.settings.get("features.customExpiredPassword")&&!e.appState.get("isPwdManagedByOkta")?e.navigate("signin/custom-password-expired",{trigger:!0}):e.navigate("signin/password-expired",{trigger:!0});return;case"RECOVERY_CHALLENGE":{let n=t.factorType.toLowerCase()===rL.RECOVERY_FACTOR_TYPE_EMAIL.toLowerCase(),i=t.recoveryType===rL.RECOVERY_TYPE_PASSWORD,o=t.recoveryType===rL.RECOVERY_TYPE_UNLOCK;i&&n?e.navigate("signin/recovery-emailed",{trigger:!0}):o&&n?e.navigate("signin/unlock-emailed",{trigger:!0}):e.navigate("signin/recovery-challenge",{trigger:!0});return}case"RECOVERY":e.navigate("signin/recovery-question",{trigger:!0});return;case"PASSWORD_RESET":e.navigate("signin/password-reset",{trigger:!0});return;case"LOCKED_OUT":if(e.settings.get("features.selfServiceUnlock"))e.navigate("signin/unlock",{trigger:!0});else{let t=cq("error.auth.lockedOut","login"),n={responseJSON:{errorCauses:[],errorSummary:t,errorCode:"E0000119"}};e.controller.model.appState.trigger("removeLoading"),e.controller.model.trigger("error",e.controller.model,n),r7.triggerAfterError(e.controller,{name:"AuthApiError",message:t,xhr:n})}return;case"PROFILE_REQUIRED":e.navigate("signin/enroll-user",{trigger:!0});return;case"UNAUTHENTICATED":if(e.appState.get("promptForFactorInUnauthenticated")){let t=e.appState.get("factors").getDefaultFactor(),n=u$.createVerifyUrl(t.get("provider"),t.get("factorType"));e.navigate(n,{trigger:!0});return}if(e.appState.get("usingDeviceFlow")){e.navigate("signin/idp-discovery-check",{trigger:!0});return}e.navigate("",{trigger:!0});return;default:throw Error("Unknown status: "+t.status)}};var u0=cH.extend({className:"scan-instructions clearfix",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="scan-instructions-details-wrapper"><div class="scan-instructions-details"><p>'+c(typeof(r=null!=(r=u(n,"instructions")||(null!=t?u(t,"instructions"):t))?r:s)===l?r.call(a,{name:"instructions",hash:{},data:o,loc:{start:{line:1,column:89},end:{line:1,column:105}}}):r)+'</p></div></div><div class="scan-instructions-qrcode-wrapper"><div class="qrcode-wrap"><img data-se="qrcode" alt="'+c(typeof(r=null!=(r=u(n,"altQRCode")||(null!=t?u(t,"altQRCode"):t))?r:s)===l?r.call(a,{name:"altQRCode",hash:{},data:o,loc:{start:{line:1,column:219},end:{line:1,column:232}}}):r)+'" class="qrcode-image" src="'+c(typeof(r=null!=(r=u(n,"qrcode")||(null!=t?u(t,"qrcode"):t))?r:s)===l?r.call(a,{name:"qrcode",hash:{},data:o,loc:{start:{line:1,column:260},end:{line:1,column:270}}}):r)+'"><div data-se="qrcode-success" class="qrcode-success"></div>
8<div data-se="qrcode-error" class="qrcode-error"></div></div><a href="#" data-type="manual-setup" data-se="manual-setup" class="link manual-setup" aria-label="'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.aria.cannotScan"},data:o,loc:{start:{line:1,column:490},end:{line:1,column:549}}}))+'">'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.cannotScan"},data:o,loc:{start:{line:1,column:551},end:{line:1,column:604}}}))+'</a><a href="#" data-type="refresh-qrcode" data-se="refresh-qrcode" class="link refresh-qrcode">'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.refreshBarcode"},data:o,loc:{start:{line:1,column:700},end:{line:1,column:757}}}))+"</a></div>"},useData:!0}),events:{'click [data-type="manual-setup"]':function(e){e.preventDefault();let t=u$.createActivateFactorUrl(this.model.get("__provider__"),this.model.get("__factorType__"),"manual");"push"===this.model.get("__factorType__")?this.model.doTransaction(function(e){return e.prev().then(function(e){return rN.findWhere(e.factors,{factorType:"push",provider:"OKTA"}).enroll()})}).then(()=>{this.options.appState.trigger("navigate",t)}):this.options.appState.trigger("navigate",t)},'click [data-type="refresh-qrcode"]':function(e){e.preventDefault(),this.model.trigger("errors:clear");let t=this;this.model.doTransaction(function(e){return this.appState.get("isWaitingForActivation")?e.poll():e.activate()}).then(function(e){let n=e.data;("MFA_ENROLL_ACTIVATE"===n.status||"FACTOR_ENROLL_ACTIVATE"===n.status)&&"WAITING"===n.factorResult&&rN.defer(rN.bind(t.render,t))})}},initialize:function(){this.listenTo(this.options.appState,"change:lastAuthResponse",function(){this.options.appState.get("isMfaEnrollActivate")?this.$el.toggleClass("qrcode-expired",!this.options.appState.get("isWaitingForActivation")):this.options.appState.get("isSuccessResponse")&&this.$el.addClass("qrcode-success")}),this.listenTo(this.model,"error",function(){this.options.appState.get("isMfaEnrollActivate")&&this.$el.toggleClass("qrcode-expired",!0)})},getTemplateData:function(){let e=uh.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return{instructions:"GOOGLE"===this.model.get("__provider__")?cq("enroll.totp.setupGoogleAuthApp","login",[e]):cq("enroll.totp.setupApp","login",[e]),qrcode:this.options.appState.get("qrcode"),altQRCode:cq("mfa.altQrCode","login")}}}),u1=ui.extend({className:"barcode-push",Model:function(){return{local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]}}},Form:{title:function(){return cq("enroll.totp.title","login",[uh.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"))])},noButtonBar:!0,attributes:{"data-se":"step-scan"},className:"barcode-scan",initialize:function(){this.listenTo(this.model,"error errors:clear",function(){this.clearErrors()})},formChildren:[c7.View({View:u0})]},Footer:uw,initialize:function(){this.pollForEnrollment().catch(()=>{})},pollForEnrollment:function(){return this.model.doTransaction(function(e){return e.poll(6e3)})},trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return!0}}),u8=ui.extend({className:"barcode-totp",Model:function(){return{local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]}}},Form:{title:function(){return cq("enroll.totp.title","login",[uh.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"))])},save:rN.partial(cq,"oform.next","login"),noCancelButton:!0,attributes:{"data-se":"step-scan"},className:"barcode-scan",formChildren:[c7.View({View:u0})]},Footer:uw,initialize:function(){this.listenTo(this.form,"save",function(){let e=u$.createActivateFactorUrl(this.model.get("__provider__"),this.model.get("__factorType__"),"activate");this.options.appState.trigger("navigate",e)})}}),u2=cH.extend({className:"scope-item",template:a8.template({1:function(e,t,n,i,o){return'<span class="scope-item-tooltip icon form-help-16"></span>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="'+u(typeof(a=null!=(a=p(n,"classNames")||(null!=t?p(t,"classNames"):t))?a:l)===c?a.call(s,{name:"classNames",hash:{},data:o,loc:{start:{line:1,column:12},end:{line:1,column:26}}}):a)+'"><p>
8'+u(typeof(a=null!=(a=p(n,"name")||(null!=t?p(t,"name"):t))?a:l)===c?a.call(s,{name:"name",hash:{},data:o,loc:{start:{line:1,column:31},end:{line:1,column:39}}}):a)+"</p></div>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"description"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:49},end:{line:1,column:133}}}))?r:"")},useData:!0}),getTemplateData:function(){let{name:e,description:t,isCustomized:n}=this.options,i="scope-item-text";return{classNames:"openid"===e||n?`${i} no-translate`:i,name:e,description:t}},postRender:function(){this.$(".scope-item-tooltip").qtip({content:{text:rN.escape(this.options.description)},style:{classes:"okta-tooltip qtip-custom qtip-shadow"},position:{my:"bottom right",target:"mouse"}})}}),u3=cH.extend({className:"scope-list detail-row",postRender:function(){this.model.get("scopes").forEach(e=>{this.add(u2,{options:{name:e.displayName||e.name,description:e.description,isCustomized:e.isCustomized}})})}}),u4=cJ.CheckBox.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input type="checkbox" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:o,loc:{start:{line:1,column:29},end:{line:1,column:37}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:43},end:{line:1,column:54}}}):r)+'"/><label for="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:69},end:{line:1,column:80}}}):r)+'" data-se-for-name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:108}}}):r)+'"><b>'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:o,loc:{start:{line:1,column:113},end:{line:1,column:128}}}):r)+"</b><p>"+c(typeof(r=null!=(r=u(n,"desc")||(null!=t?u(t,"desc"):t))?r:s)===l?r.call(a,{name:"desc",hash:{},data:o,loc:{start:{line:1,column:135},end:{line:1,column:143}}}):r)+"</p></label>"},useData:!0}),enable:function(){this.options.options.optional&&this.$(":input").prop("disabled",!1)},editMode:function(){if(this.$el.html(this.template(rN.extend(rN.omit(this.options,"placeholder"),{placeholder:this.options.placeholder||this.options.name,desc:this.options.options.description}))),this.$(":checkbox").prop("checked",this.getModelValue()||!1),this.$("input").customInput(),this.model.trigger("form:resize"),!this.options.options.optional){let e=this.$("input").get(0);this.$(e.parentElement).addClass("o-form-read-mode"),this.$(":checkbox").prop("disabled",!0)}return("openid"===this.options.name||this.options.options.isCustomized)&&(this.$("label > b").addClass("no-translate"),this.options.options.isCustomized&&this.$("label > p").addClass("no-translate")),this}}),u6=cH.extend({tagName:"a",className:"skip-to-content-link",attributes:{href:`#${rL.WIDGET_CONTAINER_ID}`},initialize:function(){this.$el.append(cq("skip.to.main.content","login"))}});let u5=a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"clientURI")||(null!=t?a(t,"clientURI"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"clientURI",hash:{},data:o,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):r)+'" class="client-logo-link" target="_blank">'},3:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo custom-logo" src="'+l("function"==typeof(r=null!=(r=c(n,"customLogo")||(null!=t?c(t,"customLogo"):t))?r:s)?r.call(a,{name:"customLogo",hash:{},data:o,loc:{start:{line:1,column:149},end:{line:1,column:163}}}):r)+'" alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"common.logo.alt"},data:o,loc:{start:{line:1,column:170},end:{line:1,column:216}}}))+'" aria-hidden="true" />'},5:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo default-logo" src="'+l("function"==typeof(r=null!=(r=c(n,"defaultLogo")||(null!=t?c(t,"defaultLogo"):t))?r:s)?r.call(a,{name:"defaultLogo",hash:{},data:o,loc:{start:{line:1,column:290},end:{line:1,column:305}}}):r)+'" alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"common.logo.alt"},data:o,loc:{start:{line:1,column:312},end:{line:1,column:358}}}))+'" aria-hidden="true" />'},7:function(e,t,n,i,o){return"</a>"},9:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="issuer"><span>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"issuer")||(null!=t?a(t,"issuer"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"issuer",hash:{},data:o,loc:{start:{line:1,column:624},end:{line:1,column:634}}}):r)+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:89}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"customLogo"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.program(5,o,0),data:o,loc:{start:{line:1,column:89},end:{line:1,column:388}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:388},end:{line:1,column:416}}}))?r:"")+'<h1><span class="title-text">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{$2:"<p>$2</p>",$1:"<b class='no-translate'>$1</b>",arguments:"appName",bundle:"login",code:"granular.consent.scopes.title"},data:o,loc:{start:{line:1,column:445}
8,end:{line:1,column:577}}}))+"</span>"+(null!=(r=s(n,"if").call(a,null!=t?s(t,"issuer"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:584},end:{line:1,column:654}}}))?r:"")+"</h1>"},useData:!0}),u9=e=>c7.View({View:cH.extend({className:"consent-title detail-row",template:e,getTemplateData:function(){let e=this.options.appState;return{appName:e.escape("targetLabel"),customLogo:e.get("targetLogo")&&e.get("targetLogo").href,defaultLogo:e.get("defaultAppLogo"),clientURI:e.get("targetClientURI")&&e.get("targetClientURI").href}}})}),u7=c7.View({View:cH.extend({className:"consent-description detail-row",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"consent.required.description"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:62}}}))+"</p>"},useData:!0})})}),pe=c7.View({View:cH.extend({className:"consent-description",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"granular.consent.scopes.description"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:69}}}))+"</p>"},useData:!0})})}),pt=e=>{let t=e.slice().sort((e,t)=>t.optional-e.optional);return rN.map(t,({name:e,displayName:t,description:n,optional:i,isCustomized:o})=>c7.Input({name:e,input:u4,placeholder:t,label:!1,modelType:"boolean",required:!0,options:{description:n,optional:i,isCustomized:o}}))},pn=e=>"optional"in e.get("scopes")[0];var pi=ui.extend({className:"consent-required",initialize:function(){this.model.set("expiresAt",this.options.appState.get("expiresAt")),this.model.set("scopes",this.options.appState.get("scopes")),this.listenTo(this.form,"cancel",rN.bind(this.model.cancel,this.model));let e=new u6;sh(`#${rL.WIDGET_LOGIN_CONTAINER_ID}`).prepend(e.render().$el),pn(this.options.appState)&&(this.$el.addClass("granular-consent").removeClass("consent-required"),this.form.cancel=rN.partial(cq,"oform.cancel","login"),rN.forEach(this.options.appState.get("scopes"),e=>{this.model.set(e.name,!0)}))},postRender:function(){ui.prototype.postRender.apply(this,arguments),this.$(".o-form-button-bar .button-primary").removeClass("button-primary")},Model:{props:{expiresAt:["string",!0],scopes:["array",!0]},save:function(){return this.doTransaction(function(e){let t=rN.pluck(this.get("scopes"),"name"),n={expiresAt:this.get("expiresAt")};return pn(this)?n.optedScopes=rN.reduce(t,(e,t)=>(e[t]=this.get(t),e),{}):n.scopes=t,e.consent({consent:n})})},cancel:function(){let e=this;return this.doTransaction(function(e){return e.cancel()}).then(function(){let t=e.settings.get("consent.cancel");rN.isFunction(t)&&t()})}},Form:{noCancelButton:!1,buttonOrder:["cancel","save"],autoSave:!0,save:rN.partial(cq,"consent.required.consentButton","login"),cancel:rN.partial(cq,"consent.required.cancelButton","login"),formChildren:function(){return pn(this.options.appState)?[u9(u5),pe].concat(pt(this.options.appState.get("scopes"))):[u9(uO),c7.View({View:new u3({model:this.model})}),u7]}},Footer:cH.extend({className:"consent-footer",template:a8.template({1:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="terms-of-service" href="'+c("function"==typeof(a=null!=(a=u(n,"termsOfService")||(null!=t?u(t,"termsOfService"):t))?a:l)?a.call(s,{name:"termsOfService",hash:{},data:o,loc:{start:{line:1,column:56},end:{line:1,column:74}}}):a)+'" target="_blank">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"consent.required.termsOfService"},data:o,loc:{start:{line:1,column:92},end:{line:1,column:154}}}))+"</a>"+(null!=(r=u(n,"if").call(s,null!=t?u(t,"privacyPolicy"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:158},end:{line:1,column:194}}}))?r:"")},2:function(e,t,n,i,o){return" • "}
8,4:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="privacy-policy" href="'+l("function"==typeof(r=null!=(r=c(n,"privacyPolicy")||(null!=t?c(t,"privacyPolicy"):t))?r:s)?r.call(a,{name:"privacyPolicy",hash:{},data:o,loc:{start:{line:1,column:254},end:{line:1,column:271}}}):r)+'" target="_blank">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"consent.required.privacyPolicy"},data:o,loc:{start:{line:1,column:289},end:{line:1,column:350}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"termsOfService"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:201}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"privacyPolicy"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:201},end:{line:1,column:361}}}))?r:"")},useData:!0}),getTemplateData:function(){let e=this.options.appState;return{termsOfService:e.get("targetTermsOfService")&&e.get("targetTermsOfService").href,privacyPolicy:e.get("targetPrivacyPolicy")&&e.get("targetPrivacyPolicy").href}}})});let{Util:po}=cz;var pr=cH.extend({template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-skip" data-se="skip-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"password.expiring.later"},data:o,loc:{start:{line:1,column:78},end:{line:1,column:132}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"passwordWarn"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:143}}}))?r:"")+'<a href="#" class="link help goto js-signout" data-se="signout-link">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"signout"},data:o,loc:{start:{line:1,column:212},end:{line:1,column:250}}}))+"</a>"},useData:!0}),className:"auth-footer clearfix",events:{"click .js-signout":function(e){e.preventDefault();let t=this,n=t.settings.getAuthClient();this.model.doTransaction(function(e){return e.cancel()}).then(function(){return n.session.exists()}).then(function(e){if(e)return n.closeSession().catch(()=>{})}).then(function(){t.settings.get("backToSignInUri")?po.redirect(t.settings.get("backToSignInUri")):(t.state.set("navigateDir",rL.DIRECTION_BACK),t.options.appState.trigger("navigate",""))})},"click .js-skip":function(e){e.preventDefault(),this.model.doTransaction(function(e){return e.skip()})}},getTemplateData:function(){return{passwordWarn:this.options.appState.get("isPwdExpiringSoon")}}});let{Util:pa}=cz;var ps=ui.extend({className:"custom-password-expired",Model:{},Form:{noButtonBar:!0,title:function(){let e=this.options.appState.get("isPwdExpiringSoon"),t=this.options.appState.get("passwordExpireDays");return e&&t>0?cq("password.expiring.title","login",[t]):e&&0===t?cq("password.expiring.today","login"):e?cq("password.expiring.soon","login"):this.settings.get("brandName")?cq("password.expired.title.specific","login",[this.settings.get("brandName")]):cq("password.expired.title.generic","login")},subtitle:function(){return this.options.appState.get("isPwdExpiringSoon")?this.settings.get("brandName")?cq("password.expiring.soon.subtitle.specific","login",[this.settings.get("brandName")]):cq("password.expiring.soon.subtitle.generic","login"):cq("password.expired.custom.subtitle","login")},formChildren:function(){return[c7.Button({title:rN.partial(cq,"password.expired.custom.submit","login",[this.options.appState.get("passwordExpiredWebsiteName")]),className:"button button-primary button-wide",attributes:{"data-se":"custom-button"},click:function(){pa.redirect(this.options.appState.get("passwordExpiredLinkUrl"))}})]}},Footer:pr});let pl=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-error infobox infobox-error" role="alert"><span class="icon error-16"></span>
8<p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"api.authn.error.PASSCODE_INVALID"},data:o,loc:{start:{line:1,column:110},end:{line:1,column:173}}}))+"</p></div>"},useData:!0})});var pc=ui.extend({className:"device-code-activate",Model:function(){var e,t;return{props:{userCode:["string",!0,null===(e=this.options)||void 0===e?void 0:null===(t=e.appState)||void 0===t?void 0:t.get("userCode")],stateToken:"string"},save:function(){let e=this;return this.doTransaction(function(t){return t.deviceActivate({userCode:e.get("userCode")})})}}},Form:{noCancelButton:!0,autoSave:!0,save:function(){return cq("oform.next","login")},title:function(){return cq("device.code.activate.title","login")},subtitle:function(){return cq("device.code.activate.subtitle","login")},formChildren:function(){return"INVALID_USER_CODE"===this.options.appState.get("deviceActivationStatus")&&this.add(pl,".o-form-error-container"),[c7.Input({label:cq("device.code.activate.label","login"),"label-top":!0,name:"userCode",input:uv,inputId:"user-code",type:"text",inlineValidation:!1})]},events:{'keyup input[name="userCode"]':function(e){e.preventDefault(),this.addHyphen(e)}},addHyphen:function(e){let t=e.target.value;t&&4===t.length&&!["Backspace","Delete","-"].includes(e.key)&&(e.target.value=t.concat("-"))}}});let pu="DEVICE_ACTIVATED",pp="DEVICE_NOT_ACTIVATED_CONSENT_DENIED",pd="DEVICE_NOT_ACTIVATED",ph=[pp,pd];var pf=ui.extend({className:"device-code-terminal",postRender:function(){ui.prototype.postRender.apply(this,arguments);let e=this.options.appState.get("deviceActivationStatus")===pu?"success-24-green":"error-24-red";this.$(".o-form-head").before('<div class="device-code-terminal--icon-container"><span class="device-code-terminal--icon '+e+'"></span></div>')},Model:{},Form:{noCancelButton:!0,noButtonBar:!0,title:function(){let e=this.options.appState.get("deviceActivationStatus");return e===pu?cq("device.code.activated.success.title","login"):rN.contains(ph,e)?cq("device.code.activated.error.title","login"):void 0},subtitle:function(){let e=this.options.appState.get("deviceActivationStatus");return e===pu?cq("idx.device.activated","login"):e===pp?cq("idx.device.not.activated.consent.denied","login"):e===pd?cq("idx.device.not.activated.internal.error","login"):void 0},formChildren:function(){return[c7.View({View:cH.extend({template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="/activate" class="button button-primary text-align-c retry-button" data-se="try-again">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.try.again"},data:o,loc:{start:{line:1,column:121},end:{line:1,column:165}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isDeviceCodeError"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:176}}}))?r:""},useData:!0}),getTemplateData:function(){return{isDeviceCodeError:rN.contains(ph,this.options.appState.get("deviceActivationStatus"))}}})})]}}});let{Util:pm}=cz;var pg=ui.extend({className:"enroll-custom-factor",Model:{local:{provider:"string",factorType:"string"},save:function(){return this.manageTransaction((e,t)=>rN.findWhere(e.factors,{provider:this.get("provider"),factorType:this.get("factorType")}).enroll().then(e=>{t(e);let n=this.appState.get("enrollCustomFactorRedirectUrl");null!==n&&pm.redirect(n)}).catch(function(e){throw e}))}},Form:function(){let e=this.options.appState.get("factors").findWhere({provider:this.options.provider,factorType:this.options.factorType}).get("vendorName"),t=cq("enroll.customFactor.subtitle","login",[e]);return{autoSave:!0,title:e,subtitle:t,save:cq("enroll.customFactor.save","login")}},trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return!0},initialize:function(){this.model.set("provider",this.options.provider),this.model.set("factorType",this.options.factorType)},Footer:uw});let py=c1.extend({extraProperties:!0,flat:!1,props:{id:"string",factorType:{type:"string",values:["sms","call","email","token","token:software:totp","token:hotp","token:hardware","question","push","u2f","password","assertion:saml2","assertion:oidc","claims_provider","webauthn"]},provider:{type:"string",values:["OKTA","RSA","DEL_OATH","SYMANTEC","GOOGLE","YUBICO","FIDO","CUSTOM","GENERIC_SAML","GENERIC_OIDC"]},enrollment:{type:"string",values:["OPTIONAL","REQUIRED"]},status:{type:"string",values:["NOT_SETUP","ACTIVE"]},profile:["object"],vendorName:"string",policy:["object"],profiles:["object"]},local:{answer:"string",password:"string",backupFactor:"object",showAnswer:"boolean",rememberDevice:"boolean",autoPush:["boolean",!0,!1]},derived:{isOktaFactor:{deps:["provider"],fn:function(e){return"OKTA"===e}},factorName:{deps:["provider","factorType"],fn:uh.getFactorName},factorLabel:{deps:["provider","factorType","vendorName"],fn:function(e,t,n){return rN.contains(["DEL_OATH","GENERIC_SAML","GENERIC_OIDC","CUSTOM"],e)?n:uh.getFactorLabel.apply(this,[e,t])}},factorDescription:{deps:["provider","factorType"],fn:uh.getFactorDescription},sortOrder:{deps:["provider","factorType"],fn:uh.getFactorSortOrder},iconClassName:{deps:["provider","factorType"],fn:uh.getFactorIconClassName},securityQuestion:{deps:["profile","factorType"],fn:function(e,t){return"question"!==t?null:e&&uh.get
8SecurityQuestionLabel(e)}},phoneNumber:{deps:["profile","factorType"],fn:function(e,t){return rN.contains(["sms","call"],t)?e&&e.phoneNumber:null}},email:{deps:["profile","factorType"],fn:function(e,t){return"email"===t?e&&e.email:null}},deviceName:{deps:["profile","factorType"],fn:function(e,t){return"push"!==t?null:e&&e.name}},enrolled:{deps:["status"],fn:function(e){return"ACTIVE"===e}},cardinality:{deps:["policy","profiles"],fn:function(e,t){if(t&&t.length>0){let e=t[0],n=e._embedded.enrolledFactors.length,i=rN.findWhere(e._embedded.features,{type:"adoption"});return!!i&&!!i.cardinality&&{enrolled:n,minimum:i.cardinality.min,maximum:i.cardinality.max}}return!!e&&!!e.enrollment&&e.enrollment}},additionalEnrollment:{deps:["cardinality"],fn:function(e){return!!e&&0!==e.enrolled&&e.enrolled<e.maximum}},required:{deps:["enrollment"],fn:function(e){return"REQUIRED"===e}},canUseResend:{deps:["provider","factorType"],fn:function(e,t){return"OKTA"===e&&rN.contains(["push","sms","call","email"],t)}},isAnswerRequired:{deps:["factorType"],fn:function(e){return rN.contains(["sms","call","email","token","token:software:totp","question"],e)}},isFactorTypeVerification:{deps:["provider","id"],fn:function(e,t){return void 0===e&&void 0===t}}},parse:function(e){return this.settings=e.settings,this.appState=e.appState,e.rememberDevice=uh.getRememberDeviceValue(this.appState),this.setCustomHotpVendorName(e),rN.omit(e,["settings","appState"])},validate:function(){return this.get("isAnswerRequired")&&!this.get("answer")?{answer:cq("model.validation.field.blank")}:"password"!==this.get("factorType")||this.get("password")?void 0:{password:cq("error.password.required")}},needsPasscode:function(){return!(this.options.appState.get("isIdxStateToken")&&"email"===this.get("factorType"))},resend:function(){return this.trigger("form:clear-errors"),this.manageTransaction(function(e){let t=e.data._links.resend[0];return e.resend(t.name)})},save:function(){let e=!!this.get("rememberDevice"),t=this;return this.manageTransaction(function(n,i){let o;let r={rememberDevice:e};if("question"===this.get("factorType")?r.answer=this.get("answer"):"password"===this.get("factorType")?r.password=this.get("password"):this.needsPasscode()&&(r.passCode=this.get("answer")),this.pushFactorHasAutoPush()&&(r.autoPush=this.get("autoPush")),"MFA_REQUIRED"===n.status||"FACTOR_REQUIRED"===n.status||this.appState.get("promptForFactorInUnauthenticated"))o=this._findFactor(n).verify(r);else if(this.get("canUseResend")&&!this.get("answer")&&n.resend){let e=n.data._links.resend[0];o=n.resend(e.name)}else o=n.verify(r);return this.trigger("save"),o.then(function(e){let n=!1,o={delay:4e3,transactionCallBack:e=>{n=!0,t.options.appState.set("lastAuthResponse",e)}};if(i(e),"MFA_CHALLENGE"===e.status&&e.poll||"FACTOR_CHALLENGE"===e.status&&e.poll){let r=cZ().defer(),a=r7.callAfterTimeoutOrWindowRefocus(r.resolve,4e3);return t.listenToOnce(t.options.appState,"factorSwitched",()=>{a(),r.reject(new rB)}),r.promise.then(function(){let r;if(t.stopListening(t.options.appState,"factorSwitched"),t.pushFactorHasAutoPush()&&(o.autoPush=function(){return t.get("autoPush")},o.rememberDevice=function(){return t.get("rememberDevice")}),rK.isIOS()){let t;r=cZ().race([e.poll(o),(()=>{let i=cZ().defer();return t=r7.callAfterTimeoutOrWindowRefocus(i.resolve,2e3,!0),i.promise.then(()=>n?cZ().defer().promise:e.poll(o))})()]).then(e=>(t(),e))}else r=e.poll(o);return r.then(function(e){t.options.appState.set("lastAuthResponse",e.data),i(e)})})}})})},_findFactor:function(e){let t;return e.factorTypes&&(t=rN.findWhere(e.factorTypes,{factorType:this.get("factorType")})),t||(t=rN.findWhere(e.factors,{id:this.get("id")})),t},pushFactorHasAutoPush:function(){return this.settings.get("features.autoPush")&&"push"===this.get("factorType")},setCustomHotpVendorName:function(e){if("token:hotp"===e.factorType&&e.profiles){if("NOT_SETUP"===e.status)e.vendorName=e.profiles[0].name;else if("ACTIVE"===e.status){let t=e.profiles.filter(e=>e._embedded.enrolledFactors.length>0);e.vendorName=t[0].name}}return e}}),pv=sn.extend({model:py,comparator:"sortOrder",parse:function(e){let t;this.lastUsedFactor=e[0];let n=rN.findWhere(e,{provider:"OKTA",factorType:"push"});if(t=rN.where(e,{factorType:"push"}).length>1?rN.findWhere(e,{factorType:"token:software:totp"}):rN.findWhere(e,{provider:"OKTA",factorType:"token:software:totp"}),!n||!t)return e;let i=t===e[0],o=rN.reduce(e,function(e,i){let o="OKTA"===i.provider,r=o&&"token:software:totp"===i.factorType,a=o&&"push"===i.factorType,s="ACTIVE"!==i.status,l=r&&(s||"ACTIVE"===n.status),c=a&&s&&"ACTIVE"===t.status;
8return l||c||(a&&(i.backupFactor=new py(t,{parse:!0})),e.push(i)),e},[]);return i&&(this.lastUsedFactor=n),o},getDefaultFactor:function(){let e=rN.pick(this.lastUsedFactor,"factorType","provider");return this.findWhere(e)},getFirstUnenrolledRequiredFactor:function(){return this.findWhere({required:!0,enrolled:!1})},_getFactorsOfType:function(e){return this.where({factorType:e})},getFactorIndex:function(e,t){return this._getFactorsOfType(e).findIndex(function(e){return e.get("id")===t})},hasMultipleFactorsOfSameType:function(e){return this._getFactorsOfType(e).length>1},getFactorByTypeAndIndex:function(e,t){return this._getFactorsOfType(e)[t]}});var pb={Model:py,Collection:pv};let pw=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon error-24"></span><h4><strong>'+(null!=(r="function"==typeof(a=null!=(a=s(n,"message")||(null!=t?s(t,"message"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"message",hash:{},data:o,loc:{start:{line:1,column:47},end:{line:1,column:60}}}):a)?r:"")+"</strong></h4>"},useData:!0});var pk=cH.extend({template:pw,className:"okta-infobox-error infobox infobox-error infobox-md margin-btm-25",attributes:{"data-se":"o-form-error-html"},message:"",initialize:function(e){e&&e.message&&(this.message=e.message)},getTemplateData:function(){return{message:this.message}}});let{Util:p_}=cz;var pS=pg.extend({Model:{local:{provider:"string",factorType:"string"},save:function(){return this.manageTransaction(()=>{let e=this.appState.get("enrollCustomFactorRedirectUrl");null!==e&&p_.redirect(e)})}},Form:function(){let e=new pb.Model(this.options.appState.get("factor"),this.toJSON()).get("vendorName"),t=cq("enroll.customFactor.subtitle","login",[e]);return{autoSave:!0,title:e,subtitle:t,save:cq("enroll.customFactor.save","login"),formChildren:function(){let e=[];return this.options.appState.get("isFactorResultFailed")&&e.push(c7.View({View:new pk({message:this.options.appState.get("factorResultErrorMessage")})},{selector:".o-form-error-container"})),e}}}}),pE=cH.extend({className:"hide resend-email-infobox",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="infobox infobox-warning" aria-live="polite"><span class="icon warning-16"></span><p><span>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"email.code.not.received"},data:o,loc:{start:{line:1,column:102},end:{line:1,column:156}}}))+'</span><a href="#" class="resend-email-btn">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"email.button.resend"},data:o,loc:{start:{line:1,column:200},end:{line:1,column:250}}}))+"</a></p></div>"},useData:!0}),events:{"click .resend-email-btn":"resendEmail"},postRender:function(){this.showResendCallout()},showResendCallout:function(){rN.delay(()=>{this.$el.removeClass("hide")},rL.API_RATE_LIMIT)},hideResendCallout:function(){this.$el.addClass("hide")},resendEmail:function(e){e.preventDefault(),this.hideResendCallout(),this.model.resend().finally(this.showResendCallout.bind(this))}}),pT=ui.extend({className:"enroll-activate-email",Model:{props:{passCode:"string"},resend:function(){return this.trigger("form:clear-errors"),this.doTransaction(function(e){return e.resend("email")})},save:function(){this.trigger("save");let e=this.toJSON();return this.doTransaction(function(t){return t.activate(e)})}},Form:function(){return{title:rN.partial(cq,"email.enroll.title","login"),noButtonBar:!1,autoSave:!0,save:rN.partial(cq,"oform.verify","login"),formChildren:[c7.View({View:cH.extend({className:"enroll-activate-email-content",attributes:{"data-se":"enroll-activate-email-content"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"factorEmail",bundle:"login",code:"email.mfa.email.sent.de
8scription"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:89}}}))?r:""},useData:!0}),getTemplateData:function(){let e=this.options.appState.get("factor"),t=e&&e.profile?e.profile.email:"";return{factorEmail:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="mask-email">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"email")||(null!=t?a(t,"email"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"email",hash:{},data:o,loc:{start:{line:1,column:25},end:{line:1,column:34}}}):r)+"</span>"},useData:!0})({email:t})}}})}),c7.View({View:pE}),c7.Input({label:cq("email.code.label","login"),"label-top":!0,name:"passCode",type:"text",wide:!0})]}},Footer:uw}),px={US:"1",AG:"1",AI:"1",AS:"1",BB:"1",BM:"1",BS:"1",CA:"1",DM:"1",DO:"1",GD:"1",GU:"1",JM:"1",KN:"1",KY:"1",LC:"1",MP:"1",MS:"1",PR:"1",SX:"1",TC:"1",TT:"1",VC:"1",VG:"1",VI:"1",RU:"7",KZ:"7",EG:"20",ZA:"27",GR:"30",NL:"31",BE:"32",FR:"33",ES:"34",HU:"36",IT:"39",VA:"39",RO:"40",CH:"41",AT:"43",GB:"44",GG:"44",IM:"44",JE:"44",DK:"45",SE:"46",NO:"47",SJ:"47",PL:"48",DE:"49",PE:"51",MX:"52",CU:"53",AR:"54",BR:"55",CL:"56",CO:"57",VE:"58",MY:"60",AU:"61",CC:"61",CX:"61",ID:"62",PH:"63",NZ:"64",SG:"65",TH:"66",JP:"81",KR:"82",VN:"84",CN:"86",TR:"90",IN:"91",PK:"92",AF:"93",LK:"94",MM:"95",IR:"98",SS:"211",MA:"212",EH:"212",DZ:"213",TN:"216",LY:"218",GM:"220",SN:"221",MR:"222",ML:"223",GN:"224",CI:"225",BF:"226",NE:"227",TG:"228",BJ:"229",MU:"230",LR:"231",SL:"232",GH:"233",NG:"234",TD:"235",CF:"236",CM:"237",CV:"238",ST:"239",GQ:"240",GA:"241",CG:"242",CD:"243",AO:"244",GW:"245",IO:"246",AC:"247",SC:"248",SD:"249",RW:"250",ET:"251",SO:"252",DJ:"253",KE:"254",TZ:"255",UG:"256",BI:"257",MZ:"258",ZM:"260",MG:"261",RE:"262",YT:"262",ZW:"263",NA:"264",MW:"265",LS:"266",BW:"267",SZ:"268",KM:"269",SH:"290",TA:"290",ER:"291",AW:"297",FO:"298",GL:"299",GI:"350",PT:"351",LU:"352",IE:"353",IS:"354",AL:"355",MT:"356",CY:"357",FI:"358",AX:"358",BG:"359",LT:"370",LV:"371",EE:"372",MD:"373",AM:"374",BY:"375",AD:"376",MC:"377",SM:"378",UA:"380",RS:"381",ME:"382",XK:"383",HR:"385",SI:"386",BA:"387",MK:"389",CZ:"420",SK:"421",LI:"423",FK:"500",BZ:"501",GT:"502",SV:"503",HN:"504",NI:"505",CR:"506",PA:"507",PM:"508",HT:"509",GP:"590",BL:"590",MF:"590",BO:"591",GY:"592",EC:"593",GF:"594",PY:"595",MQ:"596",SR:"597",UY:"598",CW:"599",BQ:"599",TL:"670",NF:"672",BN:"673",NR:"674",PG:"675",TO:"676",SB:"677",VU:"678",FJ:"679",PW:"680",WF:"681",CK:"682",NU:"683",WS:"685",KI:"686",NC:"687",TV:"688",PF:"689",TK:"690",FM:"691",MH:"692","001":"979",KP:"850",HK:"852",MO:"853",KH:"855",LA:"856",BD:"880",TW:"886",MV:"960",LB:"961",JO:"962",SY:"963",IQ:"964",KW:"965",SA:"966",YE:"967",OM:"968",PS:"970",AE:"971",IL:"972",BH:"973",QA:"974",BT:"975",MN:"976",NP:"977",TJ:"992",TM:"993",AZ:"994",GE:"995",KG:"996",UZ:"998",GS:"500",PN:"64",AQ:"672",UM:"1",AN:"599"};let pO={};pO.getCountries=function(){let e=rN.omit(r8.country,"HM","BV","TF"),t=rN.map(e,function(e,t){return{name:e,code:t}});t=rN.sortBy(t,"name");let n={};return rN.each(t,function(e){n[e.code]=e.name}),n},pO.getCountryCode=function(){let e=rN.omit(r8.country,"HM","BV","TF"),t=rN.map(e,function(e,t){return{name:e,code:t}});t=rN.sortBy(t,"name");let n={};return rN.each(t,function(e){n[e.code]=r3("country.option.label","login",[e.name,e.code])}),n},pO.getCallingCodeForCountry=function(e){return px[e]};let{TextBox:pC}=cJ;var pA=pC.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="okta-form-label-inline o-form-label-inline">'+c(typeof(r=null!=(r=u(n,"countryCallingCode")||(null!=t?u(t,"countryCallingCode"):t))?r:s)===l?r.call(a,{name:"countryCallingCode",hash:{},data:o,loc:{start:{line:1,column:57},end:{line:1,column:79}}}):r)+'</span><span class="okta-form-input-field input-fix o-form-control"><input type="'+c(typeof(r=null!=(r=u(n,"type")||(null!=t?u(t,"type"):t))?r:s)===l?r.call(a,{name:"type",hash:{},data:o,loc:{start:{line:1,column:160},end:{line:1,column:168}}}):r)+'" placeholder="'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:o,loc:{start:{line:1,column:183},end:{line:1,column:198}}}):r)+'" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:o,loc:{start:{line:1,column:206},end:{line:1,column:214}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:220},end:{line:1,column:231}}}):r)+'" value="'+c(typeof(r=null!=(r=u(n,"value")||(null!=t?u(t,"value"):t))?r:s)===l?r.call(a,{name:"value",hash:{},data:o,loc:{start:{line:1,column:240},end:{line:1,column:249}}}):r)+'" autocomplete="'+c(typeof(r=null!=(r=u(n,"autocomplete")||(null!=t?u(t,"autocomplete"):t))?r:s)===l?r.call(a,{name:"autocomplete",hash:{},data:o,loc:{start:{line:1,column:265},end:{line:1,column:281}}}):r)+'"></span>'},useData:!0}
8),initialize:function(){this.listenTo(this.model,"change:countryCallingCode",function(){this.$(".o-form-label-inline").text(this.model.get("countryCallingCode"))})},preRender:function(){this.options.countryCallingCode=this.model.get("countryCallingCode"),this.options.autocomplete=r7.getAutocompleteValue(this.options.model.settings,"tel")},postRender:function(){this.$el.removeClass("input-fix o-form-control"),rN.defer(()=>{this.$el.parent().addClass("o-form-input-group")})}});let{Keys:pP}=cz,pN=cH.extend({className:"okta-form-infobox-warning infobox infobox-warning login-timeout-warning",attributes:{"aria-live":"polite"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon warning-16"></span><p>'+(null!=(r="function"==typeof(a=null!=(a=s(n,"warning")||(null!=t?s(t,"warning"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"warning",hash:{},data:o,loc:{start:{line:1,column:40},end:{line:1,column:53}}}):a)?r:"")+"</p>"},useData:!0})}),pR={factorId:function(e){return!rN.isUndefined(e)}};function pI(e){return"call"===e}function pD(e){return pI(e)?"enroll-call":"enroll-sms"}
8function pL(e){pP.isEnter(e)&&(e.stopPropagation(),e.preventDefault(),"keyup"===e.type&&e.data&&e.data.model&&e.data.model.sendCode())}var pM=ui.extend({className:function(){return pD(this.options.factorType)},Model:function(){return{props:{phoneNumber:["string",!0],phoneExtension:["string",!1],lastEnrolledPhoneNumber:"string",passCode:["string",!0],factorId:"string"},local:{countryCode:["string",!1,this.options.appState.get("userCountryCode")],hasExistingPhones:"boolean",trapEnrollment:"boolean",ableToResend:"boolean",factorType:"string",skipPhoneValidation:"boolean"},derived:{countryCallingCode:{deps:["countryCode"],fn:function(e){return"+"+pO.getCallingCodeForCountry(e)}},fullPhoneNumber:{deps:["countryCallingCode","phoneNumber"],fn:function(e,t){return t?e+t:""}},enrolled:{deps:["lastEnrolledPhoneNumber","fullPhoneNumber"],fn:function(e,t){return e===t}}},limitResending:function(){this.set({ableToResend:!1}),rN.delay(rN.bind(this.set,this),rL.API_RATE_LIMIT,{ableToResend:!0})},sendCode:function(){let e=this,t=this.get("fullPhoneNumber"),n=this.get("phoneExtension");if(e.trigger("errors:clear"),!t.length){e.trigger("invalid",e,{phoneNumber:"model.validation.field.blank"});return}return this.doTransaction(function(i){let o="MFA_ENROLL"===i.status||"FACTOR_ENROLL"===i.status,r={phoneNumber:t,updatePhone:!o||e.get("hasExistingPhones")};pI(e.get("factorType"))&&(r.phoneExtension=n),e.get("skipPhoneValidation")&&(r.validatePhone=!1);let a=function(t){return rN.findWhere(t.factors,{factorType:e.get("factorType"),provider:"OKTA"}).enroll({profile:r}).catch(function(t){throw"E0000098"===t.errorCode&&(e.set("skipPhoneValidation",!0),t.xhr.responseJSON.errorSummary=cq("enroll.sms.try_again","login")),t})};return o?a(i):(e.set("trapEnrollment",!0),i.prev().then(a).then(function(t){return e.set("trapEnrollment",!1),t}))},!0).then(function(){e.set("lastEnrolledPhoneNumber",t),e.limitResending()}).catch(function(){e.set("trapEnrollment",!1)})},resendCode:function(){return this.trigger("errors:clear"),this.limitResending(),this.doTransaction(function(e){return e.resend(this.get("factorType"))})},save:function(){return this.doTransaction(function(e){return e.activate({passCode:this.get("passCode")})})}}},Form:function(){let e=this.options.factorType,t=pI(e),n=cq(t?"enroll.call.setup":"enroll.sms.setup","login"),i=cq(t?"mfa.call":"mfa.sendCode","login"),o=cq(t?"mfa.redial":"mfa.resendCode","login"),r=cq(t?"mfa.calling":"mfa.sent","login"),a=t?"call-request-button":"sms-request-button",s=[c7.Input({name:"countryCode",type:"select",wide:!0,options:pO.getCountries()}),c7.Input({label:cq("mfa.phoneNumber.placeholder","login"),"label-top":!0,className:t?"enroll-call-phone":"enroll-sms-phone",name:"phoneNumber",input:pA,type:"text",render:function(){this.$('input[name="phoneNumber"]').off("keydown keyup",pL).keydown(pL).keyup({model:this.model},pL)}})];return t&&s.push(c7.Input({label:cq("mfa.phoneNumber.ext.placeholder","login"),"label-top":!0,className:"enroll-call-extension",name:"phoneExtension",input:uv,type:"text"})),s.push(c7.Button({title:i,attributes:{"data-se":a},className:"button button-primary js-enroll-phone margin-top-30 "+a,click:function(){this.model.sendCode()}}),c7.Button({title:o,attributes:{"data-se":a},className:"button js-enroll-phone margin-top-30 "+a,click:function(){this.model.resendCode()},initialize:function(){this.$el.css({display:"none"}),this.listenTo(this.model,"change:ableToResend",function(e,t){t?(this.options.title=o,this.enable()):(this.options.title=r,this.disable()),this.render()})}}),c7.Divider({showWhen:pR}),c7.Input({label:cq("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("mfa.challenge.enterCode.tooltip","mfa.challenge.enterCode.placeholder","login"),"explain-top":!0,name:"passCode",input:uv,type:"tel",showWhen:pR}),c7.Toolbar({noCancelButton:!0,save:cq("mfa.challenge.verify","login"),showWhen:pR})),{title:n,noButtonBar:!0,autoSave:!0,className:pD(e),showWarning:function(e){this.clearWarnings(),this.add(pN,".o-form-error-container",{options:{warning:e}})},clearWarnings:function(){this.$(".okta-form-infobox-warning").remove()},initialize:function(){let e=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<b>$1</b>",bundle:"login",code:"factor.call.time.warning"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:71}}}))},useData:!0}
8),n=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<b>$1</b>",bundle:"login",code:"factor.sms.time.warning"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:70}}}))},useData:!0});this.listenTo(this.model,"change:ableToResend",function(i,o){o?this.showWarning(t?e:n):this.clearWarnings()}),this.listenTo(this.model,"error errors:clear",function(){this.clearWarnings(),this.clearErrors()}),this.listenTo(this.model,"change:enrolled",function(){this.$(".js-enroll-phone").toggle()})},formChildren:s}},Footer:uw,trapAuthResponse:function(){return this.options.appState.get("isMfaEnrollActivate")?(this.model.set("factorId",this.options.appState.get("activatedFactorId")),!0):!!(this.options.appState.get("isMfaEnroll")&&this.model.get("trapEnrollment"))||void 0},initialize:function(){pI(this.options.factorType)?this.model.set("hasExistingPhones",this.options.appState.get("hasExistingPhonesForCall")):this.model.set("hasExistingPhones",this.options.appState.get("hasExistingPhones")),this.model.set("factorType",this.options.factorType)}});let pU=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="factor-cardinality">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"cardinalityText")||(null!=t?a(t,"cardinalityText"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"cardinalityText",hash:{},data:o,loc:{start:{line:1,column:33},end:{line:1,column:52}}}):r)+"</span>"},useData:!0}),pF=cH.extend({tagName:"li",className:"enroll-factor-row clearfix",template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"factorDescription")||(null!=t?a(t,"factorDescription"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"factorDescription",hash:{},data:o,loc:{start:{line:1,column:235},end:{line:1,column:256}}}):r)+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enroll-factor-icon-container"><div class="factor-icon enroll-factor-icon '+u(typeof(a=null!=(a=p(n,"iconClassName")||(null!=t?p(t,"iconClassName"):t))?a:l)===c?a.call(s,{name:"iconClassName",hash:{},data:o,loc:{start:{line:1,column:85},end:{line:1,column:102}}}):a)+'"></div></div><div class="enroll-factor-description"><h3 class="enroll-factor-label">'+u(typeof(a=null!=(a=p(n,"factorLabel")||(null!=t?p(t,"factorLabel"):t))?a:l)===c?a.call(s,{name:"factorLabel",hash:{},data:o,loc:{start:{line:1,column:187},end:{line:1,column:202}}}):a)+"</h3>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"factorDescription"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:207},end:{line:1,column:267}}}))?r:"")+'<div class="enroll-factor-button"></div></div>'},useData:!0}),attributes:function(){return{"data-se":this.model.get("factorName")}},children:function(){let e=[],t=this.model.get("enrolled"),n=this.model.get("required"),i=this.model.get("cardinality");if(this.options.showInlineSetupButton)return[[lf({className:"button",title:this.getSetupButtonText(),click:function(){this.options.appState.trigger("navigate",u$.createEnrollFactorUrl(this.model.get("provider"),this.model.get("factorType")))}}),".enroll-factor-button"]];t?e.push(['<span class="icon success-16-green"></span>',".enroll-factor-label"]):n&&e.push(['<span class="icon success-16-gray"></span>',".enroll-factor-label"]);let o=uh.getCardinalityText(t,n,i);return o&&e.push([pU({cardinalityText:o}),".enroll-factor-description"]),e},minimize:function(){this.$el.addClass("enroll-factor-row-min")},maximize:function(){this.$el.removeClass("enroll-factor-row-min")},getSetupButtonText:function(){return this.model.get("additionalEnrollment")?cq("enroll.choices.setup.another","login"):cq("enroll.choices.setup","login")}});var pj=lA.extend({className:"enroll-factor-list",item:pF,itemSelector:".list-content",template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h3 class="list-title">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"listTitle")||(null!=t?a(t,"listTitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"listTitle",hash:{},data:o,loc:{start:{line:1,column:40}
8,end:{line:1,column:53}}}):r)+"</h3>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"listTitle"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:65}}}))?r:"")+'<ul class="list-content"></ul>'},useData:!0}),getTemplateData:function(){let e=lA.prototype.getTemplateData.call(this);return rN.extend(e,this),e},postRender:function(){this.options.minimize&&this.invoke("minimize")}}),pV=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link goto js-skip" data-se="skip-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"enroll.choices.setup.skip"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:114}}}))+"</a>"},useData:!0}),className:"auth-footer clearfix",events:{"click .js-skip":function(e){e.preventDefault(),this.model.doTransaction(function(e){return e.skip()})}}}),pB=pj.extend({listTitle:rN.partial(cq,"enroll.choices.list.setup","login"),className:function(){return pj.prototype.className+" enroll-required-factor-list"},postRender:function(){let e;pj.prototype.postRender.apply(this,arguments),e=this.options.appState.get("factors").getFirstUnenrolledRequiredFactor(),this.find(function(t){return t.model===e}).maximize()}});let pq=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<span>"+(null!=(r="function"==typeof(a=null!=(a=s(n,"subtitle")||(null!=t?s(t,"subtitle"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:o,loc:{start:{line:1,column:6},end:{line:1,column:20}}}):a)?r:"")+"</span>"},useData:!0});var p$=ui.extend({className:"enroll-choices",state:{pageType:null},Model:{},Form:{noCancelButton:!0,title:rN.partial(cq,"enroll.choices.title","login"),noButtonBar:function(){return this.state.get("pageType")===rL.ALL_OPTIONAL_NONE_ENROLLED},subtitle:" ",getSubtitle:function(){switch(this.state.get("pageType")){case rL.ALL_OPTIONAL_SOME_ENROLLED:case rL.HAS_REQUIRED_ALL_REQUIRED_ENROLLED:return cq("enroll.choices.optional","login");case rL.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:{let e=this.options.appState.get("gracePeriodRemainingDays");return null!==e&&e>=0?this.getGracePeriodSubtitle(e):this.getDefaultSubtitle()}default:return this.getDefaultSubtitle()}},getDefaultSubtitle:function(){return this.settings.get("brandName")?cq("enroll.choices.description.specific","login",[this.settings.get("brandName")]):cq("enroll.choices.description.generic","login")},getGracePeriodSubtitle:function(e){return e>=1?cq("enroll.choices.description.gracePeriod.bold","login",[e]):cq("enroll.choices.description.gracePeriod.oneDay.bold","login")},save:function(){switch(this.state.get("pageType")){case rL.ALL_OPTIONAL_SOME_ENROLLED:case rL.HAS_REQUIRED_ALL_REQUIRED_ENROLLED:return cq("enroll.choices.submit.finish","login");case rL.HAS_REQUIRED_NONE_ENROLLED:return cq("enroll.choices.submit.configure","login");case rL.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:return cq("enroll.choices.submit.next","login");default:return""}},initialize:function(e){this.listenTo(this,"save",function(){let t;switch(this.state.get("pageType")){case rL.HAS_REQUIRED_NONE_ENROLLED:case rL.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:t=e.appState.get("factors").getFirstUnenrolledRequiredFactor(),e.appState.trigger("navigate",u$.createEnrollFactorUrl(t.get("provider"),t.get("factorType")));break;default:return this.model.doTransaction(function(e){return e.skip()})}})},preRender:function(){this.add(pq({subtitle:this.getSubtitle()}),"p.okta-form-subtitle");let e=this.options.appState.get("factors");switch(this.state.get("pageType")){case rL.HAS_REQUIRED_NONE_ENROLLED:case rL.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:this.add(new pB({minimize:!0,collection:new sn(e.where({required:!0})),appState:this.options.appState}));break;case rL.HAS_REQUIRED_ALL_REQUIRED_ENROLLED:case rL.ALL_OPTIONAL_SOME_ENROLLED:case rL.ALL_OPTIONAL_NONE_ENROLLED:{let t;let n=e.where({enrolled:!0}),i=e.filter(function(e){return!e.get("enrolled")||e.get("additionalEnrollment")});n.length>0&&(t=cq("enroll.choices.list.optional","login"),this.add(new pj({listTitle:cq("enroll.choices.list.enrolled","login"),minimize:!0,collection:new sn(n),appState:this.options.appState}))),this.add(new pj({listTitle:t,collection:new sn(i),appState:this.options.appState,showInlineSetupButton:!0}))}}}},initialize:function(e){let t,n,i=0,o=0,r=0,a=0;e.appState.get("factors").each(function(e){let t=e.get("required"),n=e.get("enrolled"),s=e.get("additionalEnrollment");t&&n?i++:t&&!n?o++:!t&&n?r++:!t&&!n&&a++,n&&s&&a++}),(t=i>0||o>0)&&0===i?n=rL.HAS_REQUIRED_NONE_ENROLLED:t&&o>0?n=rL.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:t&&a>0?n=rL.HAS_REQUIRED_ALL_REQUIRED_ENROLLED:0===r&&a>0?n=rL.ALL_OPTIONAL_NONE_ENROLLED:a>0?n=rL.ALL_OPTIONAL_SOME_ENROLLED:this.model.doTransaction(function(e){return e.skip()}),this.state.set("pageType",n),this.options.appState.get("skipLink")&&n===rL.HAS_REQUIRED_SOME_REQUIRED_ENROLLED&&this.add(new pV(this.toJSON()))}}),pH=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,{exports:{}});W=function(){var e,t,n,i,o,r,a=/^(?:AUTH|ENROLL)+\|[A-Za-z0-9\+\/=
8]+\|[A-Za-z0-9\+\/=]+$/,s=/^ERR\|[\w\s\.\(\)]+$/,l=/^DUO_OPEN_WINDOW\|/,c=["duo.com","duosecurity.com","duomobile.s3-us-west-1.amazonaws.com"];function u(){e="",t="sig_response",n=void 0,i=void 0,o=void 0,r=void 0}function p(e,t){var n=t||"https://www.duosecurity.com/docs/duoweb#3.-show-the-iframe";throw Error("Duo Web SDK error: "+e+(n?"\nSee "+n+" for more information":""))}function d(e,t){return"dataset"in e?e.dataset[t]:e.getAttribute("data-"+t.replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase())}function h(e,t,n,i){"addEventListener"in window?e.addEventListener(t,i,!1):e.attachEvent(n,i)}function f(e,t,n,i){"removeEventListener"in window?e.removeEventListener(t,i,!1):e.detachEvent(n,i)}function m(e){h(document,"DOMContentLoaded","onreadystatechange",e)}function g(e){f(document,"DOMContentLoaded","onreadystatechange",e)}function y(e){if(e){0===e.indexOf("ERR|")&&p(e.split("|")[1]),(-1===e.indexOf(":")||2!==e.split(":").length)&&p("Duo was given a bad token. This might indicate a configuration problem with one of Duo's client libraries.");var t=e.split(":");return i=t[0],o=t[1],{sigRequest:e,duoSig:t[0],appSig:t[1]}}}function v(e){return!!(e.origin==="https://"+n&&"string"==typeof e.data&&(e.data.match(a)||e.data.match(s)||e.data.match(l)))}function b(e){var t,n,i;return e.iframe&&e.iframeContainer?p("Passing both `iframe` and `iframeContainer` arguments at the same time is not allowed."):e.iframe?(n=t=w(e.iframe))&&!k(n)&&p("`iframe` only accepts an iframe element or the id of an iframe. To use a non-iframe element, use the `iframeContainer` argument."):e.iframeContainer?(i=t=w(e.iframeContainer))&&k(i)&&p("`iframeContainer` only accepts a non-iframe element or the id of a non-iframe. To use a non-iframe element, use the `iframeContainer` argument on Duo.init()."):t=document.getElementById("duo_iframe"),t}function w(e){return e.tagName?e:"string"==typeof e?document.getElementById(e):null}function k(e){return e&&e.tagName&&"iframe"===e.tagName.toLowerCase()}function _(){return["https://",n,"/frame/web/v1/auth?tx=",i,"&parent=",encodeURIComponent(document.location.href),"&v=2.8"].join("")}function S(e){if(v(e)){if(e.data.match(l)){var t=e.data.substring(16);(function(e){if(!e)return!1;var t=document.createElement("a");if(t.href=e,"duotrustedendpoints:"===t.protocol)return!0;if("https:"!==t.protocol)return!1;for(var n=0;n<c.length;n++)if(t.hostname.endsWith("."+c[n])||t.hostname===c[n])return!0;return!1})(t)&&window.open(t,"_self")}else T(e.data),f(window,"message","onmessage",S)}}function E(a,s){if(n||(n=d(a,"host"))||p("No API hostname is given for Duo to use. Be sure to pass a `host` parameter to Duo.init, or through the `data-host` attribute on the iframe element."),i&&o||(y(d(a,"sigRequest")),i&&o||p("No valid signed request is given. Be sure to give the `sig_request` parameter to Duo.init, or use the `data-sig-request` attribute on the iframe element.")),""===e&&(e=d(a,"postAction")||e),"sig_response"===t&&(t=d(a,"postArgument")||t),k(a))(r=a).src=_();else{for(;a.firstChild;)a.removeChild(a.firstChild);for(var l in r=document.createElement("iframe"),s.src=_(),s)r.setAttribute(l,s[l]);a.appendChild(r)}h(window,"message","onmessage",S)}function T(t){e(t+":"+o)}return u(),{init:function i(o){u(),o&&(o.host&&(n=o.host),o.sig_request&&y(o.sig_request),o.post_action&&(e=o.post_action),o.post_argument&&(t=o.post_argument),"function"==typeof o.submit_callback&&o.submit_callback);var r,a=b(o);a?E(a,o.iframeAttributes||{}):m(r=function(){var e=b(o);e||p('This page does not contain an iframe for Duo to use. Add an element like <iframe id="duo_iframe"></iframe> to this page.'),E(e,o.iframeAttributes||{}),g(r)}),g(i)},_onReady:m,_parseSigRequest:y,_isDuoMessage:v,_doPostBack:T}},pH.exports=W();var pW=pH.exports,pz=ui.extend({className:"enroll-duo duo-form",Model:{props:{host:"string",signature:"string",postAction:"string",factorId:"string",stateToken:"string"},getInitOptions:function(){return this.doTransaction(function(e){return rN.findWhere(e.factors,{factorType:"web",provider:"DUO"}).enroll()})},activate:function(e){let t=this.get("postAction"),n=this.get("factorId"),i=this,o={id:n,stateToken:this.get("stateToken"),sig_response:e};return cZ()(sh.post(t,o)).then(function(){return i.doTransaction(function(e){return e.poll()})}).catch(function(e){i.trigger("error",i,e.xhr)})}},Form:{autoSave:!0,noButtonBar:!0,title:rN.partial(cq,"enroll.duo.title","login"),postRender:function(){this.add('<iframe frameborder="0" title="'+this.title()+'"></iframe>'),pW.init({host:this.model.get("host"),sig_request:this.model.get("signature"),iframe:this.$("iframe").get(0),post_action:rN.bind(this.model.activate,this.model)})}},Footer:uw,fetchInitialData:function(){let e=this;return this.model.getInitOptions(this.options.appState).then(function(t){let n=t.data;if(!n||!n._embedded||!n._embedded.factor||!n._embedded.factor._embedded||!n._embedded.factor._embedded.activation)throw Error("Response does not have duo activation options");let i=n._embedded.factor,o=i._embedded.activation;e.model.set({host:o.host,signature:o.signature,postAction:o._links.complete.href,factorId:i.id,stateToken:n.stateToken})})},trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return!0}}),pK=ui.extend({className:"enroll-email",Model:{local:{factorType:"string",provider:"string"},save:function(){this.trigger("save");let e=this.pick("factorType","provider");return this.doTransaction(function(t){return rN.findWhere(t.factors,e).enroll()})}},Form:function(){return{title:rN.partial(cq,"email.enroll.title","login"),noButtonBar:!1,autoSave:!0,save:rN.partial(cq,"email.button.send","login"),formChildren:[c7.View({View:cH.extend({attributes:{"data-se":"enroll-email-content"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"email.enroll.description"},data:o,loc:{start:{line:1,column:0}
8,end:{line:1,column:55}}}))},useData:!0})})})]}},Footer:uw,initialize:function(){this.model.set(rN.pick(this.options,"factorType","provider"))}}),pG=ui.extend({className:"enroll-hotp",Model:function(){return{local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]}}},Form:{title:function(){return cq("enroll.totp.title","login",[this.options.appState.get("factors").findWhere({provider:this.model.get("__provider__"),factorType:this.model.get("__factorType__")}).get("factorLabel")])},noButtonBar:!0,attributes:{"data-se":"restrict-enroll"},formChildren:function(){return[c7.View({View:new pk({message:cq("enroll.hotp.restricted","login")})})]}},Footer:uw});function pY(e){return"RSA"===e?"enroll-rsa":"enroll-onprem"}var pJ=ui.extend({className:function(){return pY(this.options.provider)},Model:function(){let e=this.options.provider,t=this.options.appState.get("factors").findWhere(rN.pick(this.options,"provider","factorType")).get("profile");return{props:{credentialId:["string",!0,t&&t.credentialId?t.credentialId:""],passCode:["string",!0],factorId:"string"},save:function(){return this.doTransaction(function(t){return rN.findWhere(t.factors,{factorType:"token",provider:e}).enroll({passCode:this.get("passCode"),profile:{credentialId:this.get("credentialId")}})})}}},Form:function(){let e=this.options.provider,t=this.options.appState.get("factors").findWhere(rN.pick(this.options,"provider","factorType")).get("vendorName");return{title:"RSA"===e?cq("factor.totpHard.rsaSecurId","login"):t,noButtonBar:!0,autoSave:!0,className:pY(e),initialize:function(){this.listenTo(this.model,"error",(e,t)=>{t&&409===t.status&&(this.$(".o-form-input-name-passCode input").val(""),this.$(".o-form-input-name-passCode input").trigger("change"),this.$(".o-form-input-name-passCode input").focus())})},formChildren:[c7.Input({label:cq("enroll.onprem.username.placeholder","login",[t]),"label-top":!0,explain:r7.createInputExplain("enroll.onprem.username.tooltip","enroll.onprem.username.placeholder","login",[t],[t]),"explain-top":!0,name:"credentialId",input:uv,type:"text"}),c7.Input({label:cq("enroll.onprem.passcode.placeholder","login",[t]),"label-top":!0,explain:r7.createInputExplain("enroll.onprem.passcode.tooltip","enroll.onprem.passcode.placeholder","login",[t],[t]),"explain-top":!0,name:"passCode",input:uv,type:"password"}),c7.Toolbar({noCancelButton:!0,save:cq("mfa.challenge.verify","login")})]}},Footer:uw});let pQ={};pQ.validateUsername=function(e){let t=e.get("username");if(t&&t.length>256)return{username:cq("model.validation.field.username","login")}},pQ.validateFieldsMatch=function(e,t,n,i){if(e.get(t)!==e.get(n)){let e={};return e[n]=i,e}},pQ.validatePasswordMatch=function(e){return pQ.validateFieldsMatch(e,"newPassword","confirmPassword",cq("password.error.match","login"))};var pX=ui.extend({className:"enroll-password",Model:{props:{password:["string",!0],confirmPassword:["string",!0]},validate:function(){return pQ.validateFieldsMatch(this,"password","confirmPassword",cq("password.enroll.error.match","login"))},save:function(){return this.doTransaction(function(e){return rN.findWhere(e.factors,{factorType:"password",provider:"OKTA"}).enroll({profile:{password:this.get("password")}})})}},Form:{autoSave:!0,title:rN.partial(cq,"enroll.password.setup","login"),inputs:function(){return[{label:cq("mfa.challenge.password.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"password",input:uv,type:"password"},{label:cq("password.confirmPassword.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"confirmPassword",input:uv,type:"password"}]}},Footer:uw}),pZ=ui.extend({className:"enroll-question",Model:{props:{question:"string",answer:["string",!0]},local:{securityQuestions:"object"},save:function(){return this.doTransaction(function(e){return rN.findWhere(e.factors,{factorType:"question",provider:"OKTA"}).enroll({profile:{question:this.get("question"),answer:this.get("answer")}})})}},Form:{autoSave:!0,title:rN.partial(cq,"enroll.securityQuestion.setup","login"),inputs:function(){return[{label:!1,"label-top":!0,name:"question",type:"select",wide:!0,options:function(){return this.model.get("securityQuestions")},params:{searchThreshold:25}},{label:cq("mfa.challenge.answer.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("mfa.challenge.answer.tooltip","mfa.challenge.answer.placeholder","login"),"explain-top":!0,
8className:"o-form-fieldset o-form-label-top auth-passcode",name:"answer",input:uv,type:"text"}]}},Footer:uw,fetchInitialData:function(){let e=this;return this.model.manageTransaction(function(e){return rN.findWhere(e.factors,{factorType:"question",provider:"OKTA"}).questions()}).then(function(t){let n={};rN.each(t,function(e){n[e.question]=uh.getSecurityQuestionLabel(e)}),e.model.set("securityQuestions",n)})}}),p0=ui.extend({className:"enroll-symantec",Model:{props:{credentialId:["string",!0],passCode:["string",!0],nextPassCode:["string",!0],factorId:"string"},save:function(){return this.doTransaction(function(e){return rN.findWhere(e.factors,{factorType:"token",provider:"SYMANTEC"}).enroll({passCode:this.get("passCode"),nextPassCode:this.get("nextPassCode"),profile:{credentialId:this.get("credentialId")}})})}},Form:{title:rN.partial(cq,"factor.totpHard.symantecVip","login"),subtitle:rN.partial(cq,"enroll.symantecVip.subtitle","login"),noButtonBar:!0,autoSave:!0,className:"enroll-symantec",formChildren:function(){return[c7.Input({label:cq("enroll.symantecVip.credentialId.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("enroll.symantecVip.credentialId.tooltip","enroll.symantecVip.credentialId.placeholder","login"),"explain-top":!0,name:"credentialId",input:uv,type:"text"}),c7.Input({label:cq("enroll.symantecVip.passcode1.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("enroll.symantecVip.passcode1.tooltip","enroll.symantecVip.passcode1.placeholder","login"),"explain-top":!0,name:"passCode",input:uv,type:"text"}),c7.Input({label:cq("enroll.symantecVip.passcode2.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("enroll.symantecVip.passcode2.tooltip","enroll.symantecVip.passcode2.placeholder","login"),"explain-top":!0,name:"nextPassCode",input:uv,type:"text"}),c7.Toolbar({noCancelButton:!0,save:cq("mfa.challenge.verify","login")})]}},Footer:uw}),p1={OKTA:{APPLE:"https://itunes.apple.com/us/app/okta-verify/id490179405",ANDROID:"https://play.google.com/store/apps/details?id=com.okta.android.auth"},GOOGLE:{APPLE:"https://itunes.apple.com/us/app/google-authenticator/id388497605",ANDROID:"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2"},STORE:{APPLE:"App Store",ANDROID:"Google Play Store"}};let p8={__deviceType__:function(e){return void 0!==e}},p2=cH.extend({attributes:{"data-se":"app-download-instructions"},className:"app-download-instructions",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="app-logo '+e.escapeExpression(typeof(a=null!=(a=u(n,"appIcon")||(null!=t?u(t,"appIcon"):t))?a:l)===c?a.call(s,{name:"appIcon",hash:{},data:o,loc:{start:{line:1,column:22},end:{line:1,column:33}}}):a)+'"></span><p class="instructions">'+(null!=(r=typeof(a=null!=(a=u(n,"appStoreLinkText")||(null!=t?u(t,"appStoreLinkText"):t))?a:l)===c?a.call(s,{name:"appStoreLinkText",hash:{},data:o,loc:{start:{line:1,column:66},end:{line:1,column:88}}}):a)?r:"")+"</p>"},useData:!0}),initialize:function(){this.listenTo(this.model,"change:__deviceType__",this.render)},postRender:function(){let e=this.$el.find(".instructions a");e.length&&(e[0].setAttribute("target","_blank"),e[0].setAttribute("rel","noreferer noopener"))},getTemplateData:function(){let e,t,n;let i=uh.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return n=p1.STORE[this.model.get("__deviceType__")],"GOOGLE"===this.model.get("__provider__")?(e=p1.GOOGLE[this.model.get("__deviceType__")],t="google-auth-38"):(e=p1.OKTA[this.model.get("__deviceType__")],t="okta-verify-download-icon"),{appStoreLinkText:n?cq("enroll.totp.downloadApp","login",[e,i,n]):null,appIcon:t}}}),p3=ui.extend({className:"enroll-totp",Model:function(){return{local:{__deviceType__:"string",__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},save:function(){return this.doTransaction(function(e){return rN.findWhere(e.factors,{factorType:this.get("__factorType__"),provider:this.get("__provider__")}).enroll()})}}},Form:{title:function(){return cq("enroll.totp.title","login",[uh.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"))])},noButtonBar:!0,attributes:{"data-se":"step-device-type"}
8,formChildren:function(){let e={APPLE:cq("iphone","login"),ANDROID:cq("android","login")};return[c7.Input({name:"__deviceType__",type:"radio",options:e,group:!0,label:rN.partial(cq,"enroll.totp.selectDevice","login")}),c7.Divider({showWhen:p8}),c7.View({View:p2,showWhen:p8}),c7.Button({title:cq("oform.next","login"),attributes:{"data-type":"save"},className:"button button-primary default-custom-button",click:function(){this.model.save()},showWhen:p8})]}},Footer:uw});n(23959);let p4={};p4.getU2fEnrollErrorMessageKeyByCode=function(e){switch(e){default:case 1:return"u2f.error.other";case 2:case 3:return"u2f.error.badRequest";case 4:return"u2f.error.unsupported";case 5:return"u2f.error.timeout"}},p4.getU2fVerifyErrorMessageKeyByCode=function(e,t){switch(e){case 1:return t?"u2f.error.other.oneFactor":"u2f.error.other";case 2:case 3:return t?"u2f.error.badRequest.oneFactor":"u2f.error.badRequest";case 4:return t?"u2f.error.unsupported.oneFactor":"u2f.error.unsupported";case 5:return"u2f.error.timeout"}},p4.getU2fEnrollErrorMessageByCode=function(e){return r3(p4.getU2fEnrollErrorMessageKeyByCode(e),"login")},p4.getU2fVerifyErrorMessageByCode=function(e,t){return r3(p4.getU2fVerifyErrorMessageKeyByCode(e,t),"login")},p4.getU2fVersion=function(){return"U2F_V2"},p4.isU2fAvailable=function(){return Object.prototype.hasOwnProperty.call(window,"u2f")};var p6=ui.extend({className:"enroll-u2f",Model:{local:{__enrolled__:"boolean"},save:function(){return(this.trigger("request"),this.get("__enrolled__"))?this.activate():this.doTransaction(function(e){return rN.findWhere(e.factors,{factorType:"u2f",provider:"FIDO"}).enroll()})},activate:function(){return this.set("__enrolled__",!0),this.trigger("errors:clear"),this.doTransaction(function(e){let t=e.factor.activation,n=t.appId,i=[{version:p4.getU2fVersion(),challenge:t.nonce}],o=this,r=cZ().defer();return u2f.register(n,i,[],function(t){o.trigger("errors:clear"),t.errorCode&&0!==t.errorCode?r.reject(new rq({xhr:{responseJSON:{errorSummary:p4.getU2fEnrollErrorMessageByCode(t.errorCode)}}})):r.resolve(e.activate({registrationData:t.registrationData,version:t.version,challenge:t.challenge,clientData:t.clientData}))}),r.promise})}},Form:{title:rN.partial(cq,"enroll.u2f.title","login"),save:rN.partial(cq,"enroll.u2f.save","login"),noCancelButton:!0,hasSavingState:!1,autoSave:!0,className:"enroll-u2f-form",noButtonBar:function(){return!p4.isU2fAvailable()},modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:function(){let e=[];
8if(p4.isU2fAvailable())e.push(c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="u2f-instructions"><ol><li>'+(null!=(r=(l(n,"i18n")||t&&l(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.u2f.general2"},data:o,loc:{start:{line:1,column:38},end:{line:1,column:90}}}))?r:"")+"</li><li>"+e.escapeExpression((l(n,"i18n")||t&&l(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.u2f.general3"},data:o,loc:{start:{line:1,column:99},end:{line:1,column:149}}}))+"</li></ol></div>"},useData:!0})})})),e.push(c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="u2f-enroll-text hide"><p>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.u2f.instructions"},data:o,loc:{start:{line:1,column:37},end:{line:1,column:91}}}))+"</p><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.u2f.instructionsBluetooth"},data:o,loc:{start:{line:1,column:98},end:{line:1,column:161}}}))+'</p><div data-se="u2f-devices" class="u2f-devices-images"><div class="u2f-usb"></div><div class="u2f-bluetooth"></div></div><div data-se="u2f-waiting" class="okta-waiting-spinner"></div></div>'},useData:!0})})}));else{let t="u2f.error.factorNotSupported";1===this.options.appState.get("factors").length&&(t="u2f.error.factorNotSupported.oneFactor"),e.push(c7.View({View:new pk({message:cq(t,"login")})},{selector:".o-form-error-container"}))}return e},_startEnrollment:function(){this.$(".u2f-instructions").addClass("hide"),this.$(".u2f-enroll-text").removeClass("hide"),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".u2f-instructions").removeClass("hide"),this.$(".u2f-enroll-text").addClass("hide"),this.$(".o-form-button-bar").show()}},Footer:uw,trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return this.model.activate(),!0}}),p5=c1.extend({initialize:function(e){this.options=e||{},this.appState=this.options.appState},constructPostData:function(e){let t={registration:{profile:e}};return this.appState.get("policy").registration.createNewAccount&&(t.registration.createNewAccount=!0),t},getEnrollFormData:function(){return this.manageTransaction(function(e,t){return e.enroll().then(function(e){t(e)})})},save:function(){let e=c1.prototype.toJSON.apply(this,arguments);if(e=rN.omit(e,["appState","settings","createNewAccount"]),!rN.isEmpty(e))return this.manageTransaction(function(t,n){t.enroll(this.constructPostData(e)).then(function(e){n(e)})});{let e={errorSummary:cq("oform.errorbanner.title","login")};this.trigger("error",this,{responseJSON:e})}}});let{BaseSchema:p9}=cQ;var p7=p9.Model.extend({expand:["schema"],setFieldPlaceholder:function(e){return rN.each(e,function(e){e.title=e.label}),e},initialize:function(e){let t=e.profileSchemaAttributes;if(t=this.setFieldPlaceholder(t)){let e={properties:{}};for(var n=0;n<t.length;n++){let i=t[n];e.properties[i.name]=i}this.parse.apply(this,[{schema:e}])}}});let{SchemaFormFactory:de}=cG,{CheckBox:dt}=cJ,dn=function(e){let t=e.split(""),n=[],i=[",",".","-","_","#","@"],o="";return rN.each(t,function(e){-1===i.indexOf(e)?o+=e:(o.length>=4&&n.push(rN.clone(o)),o="")}),o.length>=4&&n.push(rN.clone(o)),n.filter(Boolean)},di=function(e,t){if(!e)return!1;e=e.toLowerCase(),t=t.toLowerCase();let n=dn(e);for(var i=0;i<n.length;i++){let e=n[i];if(-1!==t.indexOf(e))return!0}return!1},dr=function(e,t,n){let i=e.get("minLength"),o=e.get("maxLength"),r=e.get("format");if(rN.isNumber(i)&&t.length<i||rN.isNumber(o)&&t.length>o)return!1;if(rN.isString(r)){if("^[#/userName]"===r||"^[#/firstName]"===r||"^[#/lastName]"===r){let e=r.split("^[#/")[1].split("]")[0],i=n.get(e);return"userName"===e?!di(i=n.has("userName")?n.get("userName"):n.get("email"),t):!i||-1===t.indexOf(i)}if(!new RegExp(r).test(t))return!1}return!0},da=function(e,t,n,i){let o=t.get(e);rN.isString(o)&&n.each(function(n,r){let a=sh("#subschemas-"+e+" .subschema-"+r);o?a.children("p").removeClass("default-schema"):a.children("p").addClass("default-schema"),a.children("p").removeAttr("role").removeAttr("aria-live"),a.removeClass("subschema-satisfied subschema-unsatisfied subschema-error"),dr(n,o,t)?(a.addClass("subschema-satisfied"),a.find("p span").removeClass("error error-16-small"),a.find("p span").addClass("confirm-16")):i&&(a.find("p span").removeClass("confirm-16"),a.find("p span").addClass("error error-16-small"),a.addClass("subschema-error subschema-unsatisfied"),a.find("p").attr("role","alert").attr("aria-live","polite"))})};var ds={createInputOptions:function(e){var t;let n=de.createInputOptions(e);if((null===(t=e.options)||void 0===t?void 0:t.type)==="boolean"&&(n.input=dt),"select"===n.type)n=rN.extend(n,{label:e.get("title")});else{let t=e.get("title");e.get("required")&&(t+=" *"),n=rN.extend(n,{label:!1,"label-top":!0,placeholder:t})}let i=e.get("name");switch(i){case"userName":n.input=uv,n.params={icon:"person-16-gray"};break;case"password":n.type="password",n.input=uv,n.params={icon:"remote-lock-16"}}let o=e.get("subSchemas");return o&&(n.events={input:function(){da(i,this.model,o,!0)},focusout:function(){da(i,this.model,o,!0)},"change:userName":function(){da(i,this.model,o,!0)},"change:firstName":function(){da(i,this.model,o,!0)},"change:lastName":function(){da(i,this.model,o,!0)},"change:email":function(){da(i,this.model,o,!0)}}),n}},dl=cB.extend({layout:"o-form-theme",autoSave:!0,noCancelButton:!0,title:function(){return cq("registration.form.title","login")},save:function(){return cq("registration.form.submit","login")},initialize:function(e){this.options=e||{},this.schema=new p7({profileSchemaAttributes:this.options.appState.get("policy").registration.profile}),this.schema.properties.each(e=>{let t=ds.createInputOptions(e);this.addInput(t)});let t=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="required-fields-label">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"label")||(null!=t?a(t,"label"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:o,loc:{start:{line:1,column:36},end:{line:1,column:45}}}):r)+"</span>"},useData:!0}
8)({label:cq("registration.required.fields.label","login")});this.add(t)}}),dc=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"goback"},data:o,loc:{start:{line:1,column:50},end:{line:1,column:87}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .help":function(e){e.preventDefault(),this.back()}},back:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.trigger("navigate","")}}),du=c8.extend({className:"enroll-user",initialize:function(e){this.options=e||{},this.model=new p5(this.options)},fetchInitialData:function(){return this.options.appState.get("isUnauthenticated")?this.model.getEnrollFormData():c8.prototype.fetchInitialData.call()},trapAuthResponse:function(){if(this.options.appState.get("isProfileRequired"))return!0},postRender:function(){let e=new dl(this.toJSON());this.add(e),this.add(new dc(this.toJSON())),this.addListeners()}});let dp={};dp.getStringHash=function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0},dp.base64UrlSafeToBase64=function(e){return e.replace(/_/g,"/").replace(/-/g,"+")},dp.binToStr=function(e){return btoa(new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),""))},dp.strToBin=function(e){return Uint8Array.from(atob(this.base64UrlSafeToBase64(e)),e=>e.charCodeAt(0))};var dd={makeCredential:function(e,t,n){var i;return t=t.map(function(e){return{type:"FIDO_2_0",algorithm:e.algorithm}}),i=window.msCredentials.makeCredential(e,t,n).then(function(e){return Object.freeze({credential:{id:e.id},publicKey:JSON.parse(e.publicKey),attestation:e.attestation})}),new(cZ())(i)},getAssertion:function(e,t){var n;let i=t.map(function(e){return{type:"FIDO_2_0",id:e.id}});return n=window.msCredentials.getAssertion(e,{accept:i}).then(function(e){let t=e.signature;return Object.freeze({credential:{id:e.id},clientData:t.clientData,authenticatorData:t.authnrData,signature:t.signature})}),new(cZ())(n)},processWebAuthnResponse:function(e,t){if(void 0===e)return null;let n=e.apply(t);return null==n?null:JSON.stringify(n)},isAvailable:function(){return Object.prototype.hasOwnProperty.call(window,"msCredentials")},isNewApiAvailable:function(){return navigator&&navigator.credentials&&navigator.credentials.create},isWebauthnOrU2fAvailable:function(){return this.isNewApiAvailable()||p4.isU2fAvailable()},isConditionalMediationAvailable:function(){return"undefined"!=typeof PublicKeyCredential&&void 0!==PublicKeyCredential.isConditionalMediationAvailable},isPasskeyAutofillAvailable:async function(){let e=!1;return this.isConditionalMediationAvailable()&&(e=await PublicKeyCredential.isConditionalMediationAvailable()),e},isPasskeyAvailable:function(){var e;let t=(null===(e=navigator)||void 0===e?void 0:e.credentials)||{};return"undefined"!=typeof PublicKeyCredential&&"function"==typeof t.get&&"function"==typeof t.create},isRelyingPartyIdMismatchError:function(e){return(null==e?void 0:e.name)==="SecurityError"&&(null==e?void 0:e.code)===18},isAbortError:function(e){return(null==e?void 0:e.name)==="AbortError"&&(null==e?void 0:e.code)===20},isNotAllowedError:function(e){return(null==e?void 0:e.name)==="NotAllowedError"&&(null==e?void 0:e.code)===0}},dh=ui.extend({className:"enroll-webauthn",Model:{local:{__enrolled__:"boolean"},save:function(){return(this.trigger("request"),this.get("__enrolled__"))?this.activate():this.doTransaction(function(e){return rN.findWhere(e.factors,{factorType:"webauthn",provider:"FIDO"}).enroll()})},activate:function(){return this.set("__enrolled__",!0),this.trigger("errors:clear"),this.appState.on("backToFactors",()=>{this.webauthnAbortController&&(this.webauthnAbortController.abort(),this.webauthnAbortController=null)}),this.doTransaction(function(e){let t=e.factor.activation,n=this;if(dd.isNewApiAvailable()){let i=rN.extend({},t,{challenge:dp.strToBin(t.challenge),user:{id:dp.strToBin(t.user.id),name:t.user.name,displayName:t.user.displayName},excludeCredentials:function(e){let t=[];return rN.each(e,function(e){t.push({type:"public-key",id:dp.strToBin(e.id)})}),t}(t.excludeCredentials)});return"undefined"!=typeof AbortController&&(n.webauthnAbortController=new AbortController),new(cZ())(navigator.credentials.create({publicKey:i,signal:n.webauthnAbortController&&n.webauthnAbortController.signal})).then(function(t){return e.activate({attestation:dp.binToStr(t.response.attestationObject),clientData:dp.binToStr(t.response.clientDataJSON),transports:dd.processWebAuthnResponse(t.response.getTransports,t.response),clientExtensions:dd.processWebAuthnResponse(t.getClientExtensionResults,t)})}).catch(function(e){if(n.trigger("errors:clear"),n.webauthnAbortController)throw new r$({xhr:{responseJSON:{errorSummary:e.message}}});throw new rH}).finally(function(){n.webauthnAbortController=null})}})}},Form:{title:rN.partial(cq,"enroll.webauthn.biometric.title","login"),save:rN.partial(cq,"enroll.webauthn.save","login"),noCancelButton:!0,hasSavingState:!1,autoSave:!0,className:"enroll-webauthn-form",noButtonBar:function(){return!dd.isNewApiAvailable()},modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:function(){let e=[];
8if(dd.isNewApiAvailable())e.push(c7.View({View:cH.extend({className:"webauthn-enroll-text",template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="webauthn-edge-text"><p>'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"enroll.webauthn.biometric.instructions.edge"},data:o,loc:{start:{line:1,column:173},end:{line:1,column:249}}}))?r:"")+"</p></div>"},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="webauthn-restrictions-text"><p>'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"enroll.webauthn.instructions.noSupportForBiometric"},data:o,loc:{start:{line:1,column:340},end:{line:1,column:423}}}))?r:"")+"</p></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="webauthn-enroll-instructions"><p>'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.webauthn.biometric.instructions"},data:o,loc:{start:{line:1,column:45},end:{line:1,column:114}}}))+"</p></div>"+(null!=(r=s(n,"if").call(a,null!=t?s(t,"isEdge"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:124},end:{line:1,column:266}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"onlySupportsSecurityKey"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:266},end:{line:1,column:440}}}))?r:"")+'<div data-se="webauthn-waiting" class="okta-waiting-spinner hide"></div>'},useData:!0}),getTemplateData:function(){return{isEdge:rK.isEdge(),onlySupportsSecurityKey:(rK.isFirefox()||rK.isSafari())&&rK.isMac()}}})}));else{let t="webauthn.biometric.error.factorNotSupported";1===this.options.appState.get("factors").length&&(t="webauthn.biometric.error.factorNotSupported.oneFactor"),e.push(c7.View({View:new pk({message:cq(t,"login")})},{selector:".o-form-error-container"}))}return e},_startEnrollment:function(){this.$(".okta-waiting-spinner").show(),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()}},Footer:uw,trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return this.model.activate(),!0}}),df=cH.extend({className:"okta-waiting-spinner",attributes:{"data-se":"o-form-okta-waiting-spinner"},modelEvents:{"spinner:show":"show","spinner:hide":"hide"},initialize:function(e){e&&!1===e.visible&&this.hide()},show:function(){this.$el.removeClass("hide")},hide:function(){this.$el.addClass("hide")}}),dm=ui.extend({className:"enroll-windows-hello",Model:{local:{__isEnrolled__:"boolean"},save:function(){return dd.isAvailable()?(this.trigger("request"),this.get("__isEnrolled__"))?this.activate():this.doTransaction(function(e){return this._enroll(e)}):void 0},_enroll:function(e){return rN.findWhere(e.factors,{factorType:"webauthn",provider:"FIDO"}).enroll()},activate:function(){return this.set("__isEnrolled__",!0),this.doTransaction(function(e){let t=e.factor.activation,n=e.user,i=this,o={rpDisplayName:t.rpDisplayName,userDisplayName:n.profile.displayName,accountName:n.profile.login,userId:n.id},r=[{algorithm:t.algorithm}],a=t.nonce;return dd.makeCredential(o,r,a).then(function(t){return e.activate({credentialId:t.credential.id,publicKey:t.publicKey,attestation:null})}).catch(function(t){switch(t.message){case"AbortError":case"NotFoundError":case"NotSupportedError":return i.trigger("abort",t.message),e}throw t})})}},Form:{autoSave:!0,hasSavingState:!1,title:rN.partial(cq,"enroll.windowsHello.title","login"),subtitle:function(){return dd.isAvailable()?cq("enroll.windowsHello.subtitle","login"):""},save:rN.partial(cq,"enroll.windowsHello.save","login"),customSavingState:{stop:"abort"},modelEvents:function(){return dd.isAvailable()?{request:"_startEnrollment",error:"_stopEnrollment",abort:"_stopEnrollment"}:{}},noButtonBar:function(){return!dd.isAvailable()},formChildren:function(){let e=[];return dd.isAvailable()||e.push(c7.View({View:new pk({message:cq("enroll.windowsHello.error.notWindows","login")})},{selector:".o-form-error-container"})),e.push(c7.View({View:new df({model:this.model,visible:!1})}
8)),e},_startEnrollment:function(){this.subtitle=cq("enroll.windowsHello.subtitle.loading","login"),this.model.trigger("spinner:show"),this._resetErrorMessage(),this.render(),this.$(".o-form-button-bar").addClass("hide")},_stopEnrollment:function(e){let t;if(this.subtitle=cq("enroll.windowsHello.subtitle","login"),this.model.trigger("spinner:hide"),"NotSupportedError"===e&&(t=cq("enroll.windowsHello.error.notConfiguredHtml","login")),this._resetErrorMessage(),t){let e=new pk({message:t});this.$(".o-form-error-container").addClass("o-form-has-errors"),this.add(e,{selector:".o-form-error-container"}),this._errorMessageView=this.last()}this.render(),this.$(".o-form-button-bar").removeClass("hide")},_resetErrorMessage:function(){this._errorMessageView&&this._errorMessageView.remove(),this._errorMessageView=void 0,this.clearErrors()}},Footer:uw,trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return this.model.activate(),!0}}),dg=ui.extend({className:"enroll-yubikey",Model:{props:{passCode:["string",!0],factorId:"string"},save:function(){return this.doTransaction(function(e){return rN.findWhere(e.factors,{factorType:"token:hardware",provider:"YUBICO"}).enroll({passCode:this.get("passCode")})})}},Form:{title:rN.partial(cq,"enroll.yubikey.title","login"),subtitle:rN.partial(cq,"enroll.yubikey.subtitle","login"),noCancelButton:!0,save:rN.partial(cq,"mfa.challenge.verify","login"),autoSave:!0,className:"enroll-yubikey",formChildren:[c7.View({View:'<div class="yubikey-demo" data-type="yubikey-example"></div>'}),c7.Input({name:"passCode",input:uv,type:"password"})]},Footer:uw});let dy=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oform.back"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:99}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()}},back:function(){let e=u$.createActivateFactorUrl(this.options.appState.get("activatedFactorProvider"),this.options.appState.get("activatedFactorType"),"manual");this.options.appState.trigger("navigate",e)}}),dv={title:rN.partial(cq,"enroll.totp.enrollViaEmail.title","login"),noButtonBar:!0,attributes:{"data-se":"sent-email-activation-link"},formChildren:[c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.enrollViaEmail.msg"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:64}}}))+'</p><p class="email-address">'+l("function"==typeof(r=null!=(r=c(n,"email")||(null!=t?c(t,"email"):t))?r:s)?r.call(a,{name:"email",hash:{},data:o,loc:{start:{line:1,column:93},end:{line:1,column:102}}}):r)+"</p>"},useData:!0}),getTemplateData:function(){return{email:this.options.appState.get("userEmail")}}})})]},db={title:rN.partial(cq,"enroll.totp.enrollViaSms.title","login"),noButtonBar:!0,attributes:{"data-se":"sent-sms-activation-link"},formChildren:[c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.enrollViaSms.msg"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:62}}}))+'</p><p class="phone-number">'+l("function"==typeof(r=null!=(r=c(n,"phoneNumber")||(null!=t?c(t,"phoneNumber"):t))?r:s)?r.call(a,{name:"phoneNumber",hash:{},data:o,loc:{start:{line:1,column:90},end:{line:1,column:105}}}):r)+"</p>"},useData:!0}
8),getTemplateData:function(){return{phoneNumber:this.model.get("fullPhoneNumber")}}})})]};var dw=ui.extend({className:"enroll-activation-link-sent",Model:function(){return{local:{countryCode:["string",!1,this.options.appState.get("userCountryCode")],phoneNumber:["string",!1,this.options.appState.get("userPhoneNumber")],__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},derived:{countryCallingCode:{deps:["countryCode"],fn:function(e){return"+"+pO.getCallingCodeForCountry(e)}},fullPhoneNumber:{deps:["countryCallingCode","phoneNumber"],fn:function(e,t){return e+t}}}}},Form:function(){let e=this.options.appState.get("factorActivationType");switch(e){case"SMS":return db;case"EMAIL":return dv;default:throw Error("Unknown activation option: "+e)}},Footer:dy,initialize:function(){this.pollForEnrollment()},remove:function(){return ui.prototype.remove.apply(this,arguments)},pollForEnrollment:function(){return this.model.doTransaction(function(e){return e.poll(6e3)})},trapAuthResponse:function(){if(this.options.appState.get("isWaitingForActivation"))return this.pollForEnrollment(),!0}});let dk=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oform.back"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:99}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()}},back:function(){let e=u$.createActivateFactorUrl(this.options.appState.get("activatedFactorProvider"),"push","manual");this.options.appState.trigger("navigate",e)}});var d_=ui.extend({className:"activate-push",Model:function(){return{props:{factorId:["string",!0,this.options.appState.get("activatedFactorId")],passCode:["string",!0]},local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},save:function(){return this.doTransaction(function(e){return e.activate({passCode:this.get("passCode")})})}}},Form:ub,Footer:dk}),dS=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="infobox"><span class="icon info-16"></span><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"helpSupportNumber",bundle:"login",code:"contact.support"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:134}}}))+"</p></div>"},useData:!0}),className:"contact-support",getTemplateData:function(){return this.settings.pick("helpSupportNumber")}});let dE=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-error infobox infobox-error" role="alert"><span class="icon error-16"></span><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"password.forgot.noFactorsEnabled"},data:o,loc:{start:{line:1,column:110},end:{line:1,column:173}}}))+"</p></div>"},useData:!0})}),dT=cH.extend({template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"goback"},data:o,loc:{start:{line:1,column:94},end:{line:1,column:131}}}))+"</a>"},3:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link goto js-contact-support">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"mfa.noAccessToEmail"},data:o,loc:{start:{line:1,column:220},end:{line:1,column:270}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"unless").call(a,null!=t?s(t,"hideBackToSignInForReset"):t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:146}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"helpSupportNumber"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:146},end:{line:1,column:281}}}))?r:"")},useData:!0}
8),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()},"click .js-contact-support":function(e){e.preventDefault(),this.state.trigger("contactSupport"),this.$(".js-contact-support").hide()}},getTemplateData:function(){return{hideBackToSignInForReset:this.settings.get("features.hideBackToSignInForReset"),helpSupportNumber:this.settings.get("helpSupportNumber")}},back:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.trigger("navigate","")}});var dx=ui.extend({className:"forgot-password",Model:{props:{username:["string",!0],factorType:["string",!0]},validate:function(){return pQ.validateUsername(this)},save:function(){let e=this,t=this.settings.get("relayState");this.startTransaction(function(n){return n.forgotPassword({username:e.settings.transformUsername(e.get("username"),rL.FORGOT_PASSWORD),factorType:e.get("factorType"),relayState:t})}).catch(function(){})}},Form:{noButtonBar:!0,title:rN.partial(cq,"password.reset","login"),formChildren:function(){let e=this.settings.get("features.smsRecovery"),t=this.settings.get("features.callRecovery"),n=this.settings.get("features.emailRecovery"),i=[];return e||t||n?(i.push(c7.Input({label:cq("password.forgot.email.or.username.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("password.forgot.email.or.username.tooltip","password.forgot.email.or.username.placeholder","login"),"explain-top":!0,name:"username",input:uv,inputId:"account-recovery-username",autoComplete:r7.getAutocompleteValue(this.settings,"username"),type:"text",inlineValidation:!1})),(e||t)&&i.push(c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="mobile-recovery-hint">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"mobileFactors",bundle:"login",code:"recovery.mobile.hint"},data:o,loc:{start:{line:1,column:32},end:{line:1,column:109}}}))+"</p>"},useData:!0}),getTemplateData:function(){return{mobileFactors:e&&t?cq("recovery.smsOrCall"):t?cq("recovery.call"):cq("recovery.sms")}}})})),e&&(this.$el.addClass("forgot-password-sms-enabled"),i.push(this.createRecoveryFactorButton("sms-button","password.forgot.sendText",rL.RECOVERY_FACTOR_TYPE_SMS,this)),this.setDefaultFactorType(rL.RECOVERY_FACTOR_TYPE_SMS)),t&&(this.$el.addClass("forgot-password-call-enabled"),i.push(this.createRecoveryFactorButton("call-button","password.forgot.call",rL.RECOVERY_FACTOR_TYPE_CALL,this)),this.setDefaultFactorType(rL.RECOVERY_FACTOR_TYPE_CALL)),n&&(this.$el.addClass("forgot-password-email-enabled"),i.push(this.createRecoveryFactorButton("email-button","password.forgot.sendEmail",rL.RECOVERY_FACTOR_TYPE_EMAIL,this)),this.setDefaultFactorType(rL.RECOVERY_FACTOR_TYPE_EMAIL))):this.add(dE,".o-form-error-container"),i},initialize:function(){this.listenTo(this.state,"contactSupport",function(){this.add(dS,".o-form-error-container")}),this.listenTo(this,"save",function(){this.options.appState.set("username",this.model.get("username")),this.model.save()})},setDefaultFactorType:function(e){rN.isEmpty(this.model.get("factorType"))&&this.model.set("factorType",e)},createRecoveryFactorButton:function(e,t,n,i){return c7.Button({attributes:{"data-se":e},className:"button button-primary button-wide "+e,title:cq(t,"login"),click:function(){i.clearErrors(),this.model.isValid()&&(this.model.set("factorType",n),i.trigger("save",this.model))}})}},Footer:dT,initialize:function(){this.options.appState.unset("username")}});let dO=cz.Cookie,dC={};dC.getCookieUsername=function(){return dO.getCookie("ln")},dC.setUsernameCookie=function(e){dO.setCookie("ln",e,{expires:365,path:"/"})},dC.removeUsernameCookie=function(){dO.removeCookie("ln",{path:"/"})};var dA=c1.extend({props:function(){let e=dC.getCookieUsername(),t=this.getUsernameAndRemember(e),n={username:{type:"string",validate:function(e){if(rN.isEmpty(e))return cq("error.username.required","login")},value:t.username},lastUsername:["string",!1,e],context:["object",!1],remember:["boolean",!0,t.remember],multiOptionalFactorEnroll:["boolean",!0]};return this.settings&&this.settings.get("features.passwordlessAuth")||(n.password={type:"string",validate:function(e){if(rN.isEmpty(e))return cq("error.password.required","login")}}),n},getUsernameAndRemember:function(e){let t;let n=this.settings&&this.settings.get("username"),i=this.settings&&this.settings.get("features.rememberMe"),o=!1;return n?(t=n,o=i&&t===e):i&&e&&(t=e,o=!0),{username:t,remember:o}},constructor:function(e){this.settings=e&&e.settings,this.appState=e&&e.appState,su.apply(this,arguments),this.listenTo(this,"change:username",function(e,t){this.set({remember:t===this.get("lastUsername")})})},parse:function(e){return rN.omit(e,["settings","appState"])},save:function(){let e;let t=this.settings.transformUsername(this.get("username"),rL.PRIMARY_AUTH),n=this.get("remember"),i=this.get("lastUsername");this.setUsernameCookie(t,n,i),this.trigger("save"),this.appState.trigger("loading",!0);let o=this.getSignInArgs(t);if(this.appState.get("isUnauthenticated")){let t=this.appState.settings.getAuthClient();e=this.appState.get("isIdxStateToken")?this.doTransaction(function(e){return this.doPr
8imaryAuth(t,o,e.login)}):this.doTransaction(function(e){return this.doPrimaryAuth(t,o,e.authenticate)},!0)}else e=this.startTransaction(function(e){return this.doPrimaryAuth(e,o,rN.bind(e.signInWithCredentials,e))});return e.catch(()=>{this.appState.trigger("removeLoading"),dC.removeUsernameCookie()}).finally(()=>{this.appState.trigger("loading",!1)})},getSignInArgs:function(e){let t=this.get("multiOptionalFactorEnroll"),n={};return this.settings.get("features.passwordlessAuth")||(n.password=this.get("password")),this.appState.get("isIdxStateToken")?n.identifier=e:(n.username=e,n.options={warnBeforePasswordExpired:!0,multiOptionalFactorEnroll:t}),n},setUsernameCookie:function(e,t,n){this.settings.get("features.rememberMe")&&(t||n!==e?t&&dC.setUsernameCookie(e):dC.removeUsernameCookie())},doPrimaryAuth:function(e,t,n){let i=this.settings.get("features.deviceFingerprinting"),o=this.settings.get("features.trackTypingPattern");i&&this.appState.get("deviceFingerprint")&&e.http.setRequestHeader("X-Device-Fingerprint",this.appState.get("deviceFingerprint")),o&&this.appState.get("typingPattern")&&e.http.setRequestHeader("X-Typing-Pattern",this.appState.get("typingPattern"));let r=this;return n(t).finally(function(){i&&(e.http.setRequestHeader("X-Device-Fingerprint",void 0),r.appState.unset("deviceFingerprint")),o&&(e.http.setRequestHeader("X-Typing-Pattern",void 0),r.appState.unset("typingPattern"))})}}),dP={generateDeviceFingerprint:function(e,t){return e.fingerprint({timeout:2e3,container:t})}};let dN=cz.Util,dR=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="auth-divider"><span class="auth-divider-text">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"text")||(null!=t?a(t,"text"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"text",hash:{},data:o,loc:{start:{line:1,column:58},end:{line:1,column:66}}}):r)+"</span></div>"},useData:!0}),dI=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 data-se="o-form-head" class="okta-form-title o-form-head">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:62},end:{line:1,column:71}}}):r)+"</h2>"},useData:!0});var dD=cH.extend({className:"primary-auth-container",children:function(){let e=[],t=this.settings.get("configuredSocialIdps"),n=this.settings.get("piv"),i=this.settings.get("customButtons"),o=dR({text:cq("socialauth.divider.text","login")});return this.settings.get("hasPivCard")&&e.push(this._createPivButton(n)),rN.each(t,function(t){e.push(this._createSocialIdpButton(t))},this),rN.each(i,function(t){e.push(this._createCustomButton(t))},this),this.settings.get("socialAuthPositionTop")?(e.unshift(dI({title:cq("primaryauth.title","login")})),e.push(o)):e.unshift(o),e},_createSocialIdpButton:function(e){return lf({attributes:{"data-se":e.dataAttr},className:e.className,title:function(){return e.text||cq(e.i18nKey)},click:function(t){if(t.preventDefault(),this.settings.get("oauth2Enabled"))uB.getTokens(this.settings,{idp:e.id},this.options.currentController);else{let t;let n=this.settings.get("baseUrl"),i=this.options.appState.get("lastAuthResponse");t=this.options.appState.get("usingDeviceFlow")?sh.param({stateToken:null==i?void 0:i.stateToken}):sh.param({fromURI:this.settings.get("relayState")});let o=`${n}/sso/idps/${e.id}?${t}`;dN.redirect(o)}}})},_createPivButton:function(e){return lf({attributes:{"data-se":"piv-card-button"},className:(e.className||"")+" piv-button",title:e.text||cq("piv.cac.card","login"),click:function(e){e.preventDefault(),this.options.appState.trigger("navigate","signin/verify/piv")}})},_createCustomButton:function(e){return lf({attributes:{"data-se":e.dataAttr},className:e.className+" default-custom-button",title:function(){return e.title||cq(e.i18nKey)},click:e.click})}}),dL=function e(){if(!0==e.initialized)return e.instance;for(var t in e.prototype.start=function(){return e.start.apply(this,arguments)},e.prototype.stop=function(){return e.stop.apply(this,arguments)},e.prototype.reset=function(){return e.reset.apply(this,arguments)},e.prototype.addTarget=function(){return e.addTarget.apply(this,arguments)},e.prototype.removeTarget=function(){return e.removeTarget.apply(this,arguments)},e.prototype.getTypingPattern=function(){return e.getTypingPattern.apply(this,arguments)},e.prototype.get=function(){return e.get.apply(this,arguments)},e.prototype.startDiagram=function(){},e.prototype.stopDiagram=function(){},e.prototype.getDiagram=function(){return e.getDiagram.apply(this,arguments)},e.prototype.getExtendedDiagram=function(){return e.getExtendedDiagram.apply(this,arguments)},e.prototype.getMouseDiagram=function(){return e.getMouseDiagram.apply(this,arguments)},e.prototype.startMouse=function(){return e.startMouse.apply(this,arguments)},e.prototype.stopMouse=function(){return e.stopMouse.apply(this,arguments)},e.prototype.getQuality=function(){return e.getQuality.apply(this,arguments)},e.prototype.getLength=function(){return e.getLength.apply(this,arguments)},e.prototype.isMobile=function(){return e.isMobile.apply(this,arguments)},e.prototype.getTextId=function(){return e.getTextId.apply(this,arguments)},e.initialized=!0,e.prototype.maxHistoryLength=e.maxHistoryLength,e.prototype.defaultHistoryLength=e.defaultHistoryLength,e.prototype.maxSeekTime=e.maxSeekTime,e.prototype.maxPressTime=e.maxPressTime,e.version=2.15,e.flags=0,e.instance=this,e.document=document,e.maxHistoryLength=2e3,e.maxSeekTime=1500,e.maxPressTime=300,e.defaultHistoryLength=160,e.spKeyCodes=[8,13,32],e.spKeyCodesObj={8:1,13:1,32:1},e.keyCodes=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,32,222,188,190,186,187,189,191,48,49,50,51,52,53,54,55,56,57],e.keyCodesObj={},e.keyCodes)e.keyCodesObj[e.keyCodes[t]]=1;e.pt1=e.ut1=new Date().getTime(),e.wfk=[],e.sti=[],e.skt=[],e.recording=!0,e.mouseRecording=!0,e.mouseMoveRecording=!1,e.spKeyRecording=!0,e.diagramRecording=!0,e.dwfk=[],e.dsti=[],e.dskt=[],e.drkc=[],e.dlastDownKey,e.prevKeyCode=0,e.maxMoveDeltaT
8ime=600,e.maxScrollDeltaTime=800,e.maxStopTime=1500,e.maxClickTime=600,e.maxMouseHistoryLength=500,e.lastMouseMoveTime=e.lastMouseDownTime=new Date().getTime(),e.stopTimes=[],e.clickTimes=[],e.lastMouseStop=!0,e.zl=1e-7,e.isAndroidChrome=!1,e.ACLastTime=new Date().getTime(),e.ACSeekTime=0,e.ACPressTime=0,e.ACLastCharCode=0,e.ACLastKeyCode=0,e.ACInputLengths={inputs:[],lastLength:[]},e.ACPreviousKeyCode=0,e.targetIds=[],e.lastTarget="",e.lastTargetFound=!1,e.replaceMissingKeys=!0,e.replaceMissingKeysPerc=7,e.keyDown=function(t){if((e.recording||e.diagramRecording)&&e.isTarget(t.target.id)){var n=t.keyCode;if(1==e.wfk[n]||e.dwfk[n],229==n&&e.isMobile()&&!e.isAndroidChrome)e.isAndroidChrome=!0,e.ACSeekTime=new Date().getTime()-e.ACLastTime,e.ACLastTime=new Date().getTime(),e.document.removeEventListener("keydown",e.keyDown),e.document.removeEventListener("keyup",e.keyUp),e.document.removeEventListener("keypress",e.keyPress),e.document.addEventListener("keydown",e.ACKeyDown),e.document.addEventListener("keyup",e.ACKeyUp);else{var i=e.pt1;e.pt1=new Date().getTime();var o=e.pt1-i,r=e.pt1;(!0==e.recording||e.spKeyCodesObj[n]&&!0==e.spKeyRecording)&&(!t.shiftKey||e.isMobile())&&(e.wfk[n]=1,e.skt[n]=o,e.sti[n]=r),!0==e.diagramRecording&&(e.dwfk[n]=1,e.dskt[n]=o,e.dsti[n]=r,e.dlastDownKey=n)}}},e.keyPress=function(t){if((e.recording||e.diagramRecording)&&e.isTarget(t.target.id)&&!0==e.diagramRecording){var n=e.dlastDownKey;e.drkc[n]=t.charCode}},e.keyUp=function(t){if((e.recording||e.diagramRecording)&&e.isTarget(t.target.id)){var n=new Date().getTime(),i=t.keyCode;if(!0==e.recording||e.spKeyCodesObj[i]&&!0==e.spKeyRecording){if((!t.shiftKey||e.isMobile())&&1==e.wfk[i]){var o=n-e.sti[i],r=e.skt[i],a=[i,r,o,e.prevKeyCode,n,t.target.id];e.history.add(a),e.prevKeyCode=i}e.wfk[i]=0}if(!0==e.diagramRecording){if(void 0!=e.drkc[i]&&0!=e.drkc[i]&&1==e.dwfk[i]){var o=n-e.dsti[i],r=e.dskt[i],s=e.drkc[i],l=[i,r,o,s,n,t.target.id];e.history.addDiagram(l)}e.dwfk[i]=0}}},e.mouseScroll=function(t){if(!0==e.mouseRecording&&!0==e.mouseMoveRecording){if(!0==e.mouse.scrollStarted){var n=new Date().getTime();e.mouse.scrollTimes.push(n),e.mouse.scrollTopArr.push(e.document.body.scrollTop),clearInterval(e.scrollInterval),e.scrollInterval=setInterval(e.mouse.checkScroll,e.maxScrollDeltaTime)}else e.mouse.scrollStarted=!0}},e.mouseMove=function(t){if(!0==e.mouseRecording){var n=new Date().getTime();!0==e.mouseMoveRecording&&(!0==e.mouse.started?(e.mouse.times.push(n),e.mouse.xPositions.push(t.screenX),e.mouse.yPositions.push(t.screenY),clearInterval(e.moveInterval),e.moveInterval=setInterval(e.mouse.checkMove,e.maxMoveDeltaTime)):e.mouse.started=!0),e.lastMouseMoveTime=n}},e.mouseDown=function(t){if(!0==e.mouseRecording&&(e.mouse.checkMove(),e.mouse.checkScroll(),1==t.which)){e.lastMouseDownTime=new Date().getTime();var n=e.lastMouseDownTime-e.lastMouseMoveTime;n<e.maxStopTime&&!1==e.lastMouseStop&&(e.stopTimes.push(n),!0==e.mouseMoveRecording&&(e.mouse.history.add([3,n]),e.lastMouseStop=!0))}},e.mouseUp=function(t){if(!0==e.mouseRecording&&1==t.which){var n=new Date().getTime()-e.lastMouseDownTime;n<e.maxClickTime&&e.lastMouseDownTime>e.lastMouseMoveTime&&(e.clickTimes.push(n),!0==e.mouseMoveRecording&&e.mouse.history.add([4,n]))}},e.ACKeyDown=function(t){(e.recording||e.diagramRecording)&&(e.ACSeekTime=new Date().getTime()-e.ACLastTime,e.ACLastTime=new Date().getTime(),e.isTarget(t.target.id)&&-1===e.ACInputLengths.inputs.indexOf(t.target)&&(e.ACInputLengths.inputs.push(t.target),e.ACInputLengths.lastLength.push(0)))},e.ACKeyUp=function(t){if((e.recording||e.diagramRecording)&&(e.ACPressTime=new Date().getTime()-e.ACLastTime,e.ACLastTime=new Date().getTime(),e.isTarget(t.target.id))){var n=t.keyCode,i=e.ACInputLengths.inputs.indexOf(t.target);if(-1===i&&(e.ACInputLengths.inputs.push(t.target),e.ACInputLengths.lastLength.push(0),i=e.ACInputLengths.inputs.indexOf(t.target)),229==n&&t.target.value.length>=e.ACInputLengths.lastLength[i]){var o=t.target.value.substr(t.target.selectionStart-1||0,1);n=o.toUpperCase().charCodeAt(0),e.ACLastCharCode=o.charCodeAt(0),e.ACLastKeyCode=o.toUpperCase().charCo
8deAt(0)}e.ACInputLengths.lastLength[i]=t.target.value.length;var r=[n,e.ACSeekTime,e.ACPressTime,e.ACPreviousKeyCode,e.ACLastTime];if(e.history.add(r),e.ACPreviousKeyCode=n,!0==e.diagramRecording){var a=[n,e.ACSeekTime,e.ACPressTime,e.ACLastCharCode];e.history.addDiagram(a)}}},e.isTarget=function(t){if(e.lastTarget==t&&e.lastTargetFound)return!0;var n=e.targetIds.length,i=!1;if(!(n>0))return e.lastTarget=t,e.lastTargetFound=!0,!0;for(var o=0;o<n;o++)if(e.targetIds[o]==t){i=!0;break}return e.lastTarget=t,e.lastTargetFound=i,i},e.document.addEventListener?(e.document.addEventListener("keydown",e.keyDown),e.document.addEventListener("keyup",e.keyUp),e.document.addEventListener("keypress",e.keyPress),e.document.addEventListener("mousemove",e.mouseMove),e.document.addEventListener("mousedown",e.mouseDown),e.document.addEventListener("mouseup",e.mouseUp),e.document.addEventListener("scroll",e.mouseScroll)):e.document.attachEvent&&(e.document.attachEvent("onkeydown",e.keyDown),e.document.attachEvent("onkeyup",e.keyUp),e.document.attachEvent("onkeypress",e.keyPress),e.document.attachEvent("onmousemove",e.mouseMove),e.document.attachEvent("onmousedown",e.mouseDown),e.document.attachEvent("onmouseup",e.mouseUp),e.document.attachEvent("onscroll",e.mouseScroll)),e.mouse={},e.mouse.times=[],e.mouse.xPositions=[],e.mouse.yPositions=[],e.mouse.scrollTimes=[],e.mouse.scrollTopArr=[],e.mouse.history={},e.mouse.history.stack=[],e.mouse.getDistance=function(e,t){return Math.sqrt(e*e+t*t)},e.mouse.getTotalDistance=function(n,i){var o=0,r=n.length;for(t=1;t<r-1;t++){var a=n[t]-n[t-1],s=i[t]-i[t-1];o+=e.mouse.getDistance(a,s)}return o},e.mouse.getAngle=function(e,t){var n=t<0;return e>=0?n?180+Math.round(Math.atan(Math.abs(e)/(Math.abs(t)+1e-7))/.01745329251):270+(90-Math.round(Math.atan(Math.abs(e)/(Math.abs(t)+1e-7))/.01745329251)):n?90+(90-Math.round(Math.atan(Math.abs(e)/(Math.abs(t)+1e-7))/.01745329251)):Math.round(Math.atan(Math.abs(e)/(Math.abs(t)+1e-7))/.01745329251)},e.mouse.recordMoveAction=function(){var n=e.mouse.times.length;if(!(n<3)){var i=e.mouse.times[n-1]-e.mouse.times[0],o=e.mouse.xPositions[n-1]-e.mouse.xPositions[0],r=e.mouse.yPositions[n-1]-e.mouse.yPositions[0],a=Math.round(e.mouse.getDistance(o,r)),s=Math.round(e.mouse.getTotalDistance(e.mouse.xPositions,e.mouse.yPositions)),l=[1,i,a,Math.round(100*a/i),e.mouse.getAngle(o,r),Math.round(100*s/a)];for(t in l)if(isNaN(l[t]))return;e.mouse.history.add(l),e.lastMouseStop=!1}},e.mouse.recordScrollAction=function(){var n=e.mouse.scrollTimes.length;if(!(n<2)){var i=e.mouse.scrollTimes[n-1]-e.mouse.scrollTimes[0],o=e.mouse.scrollTopArr[n-1]-e.mouse.scrollTopArr[0],r=[2,i,o,Math.round(100*o/i)];for(t in r)if(isNaN(r[t])&&!isFinite(r[t]))return;e.mouse.history.add(r)}},e.mouse.history.add=function(t){this.stack.push(t),this.stack.length>e.maxMouseHistoryLength&&this.stack.shift()},e.mouse.history.getDiagram=function(){var t=this.stack.join("|");return[String(e.isMobile())+","+String(e.version),t].join("|")},e.mouse.clearLastMove=function(){e.mouse.times=[],e.mouse.xPositions=[],e.mouse.yPositions=[]},e.mouse.checkMove=function(){clearInterval(e.moveInterval),!0==e.mouse.started&&(e.mouse.started=!1,e.mouse.recordMoveAction(),e.mouse.clearLastMove())},e.mouse.clearLastScroll=function(){e.mouse.scrollTimes=[],e.mouse.scrollTopArr=[]},e.mouse.checkScroll=function(){clearInterval(e.scrollInterval),!0==e.mouse.scrollStarted&&(e.mouse.scrollStarted=!1,e.mouse.recordScrollAction(),e.mouse.clearLastScroll())},e.addTarget=function(t){var n=e.targetIds.length,i=!1;if(n>0){for(var o=0;o<n;o++)if(e.targetIds[o]==t){i=!0;break}i||e.targetIds.push(t)}else e.targetIds.push(t)},e.removeTarget=function(t){var n=e.targetIds.length;if(n>0){for(var i=0;i<n;i++)if(e.targetIds[i]==t){e.targetIds.splice(i,1);break}}},e.reset=function(t){e.history.stack=[],e.history.stackDiagram=[],e.clickTimes=[],e.stopTimes=[],e.ACInputLengths={inputs:[],lastLength:[]},!0==t&&(e.mouse.history.stack=[])},e.start=function(){return e.diagramRecording=!0,e.recording=!0},e.stop=function(){return e.diagramRecording=!1,e.recording=!1},e.startMouse=function(){return e.mouseRecording=e.mouseMoveRecording=!0},e.stopMouse=function(){return e.mouseRecording=e.mouseMoveRecording=!1},e.getTypingPattern=function(t){if("object"!=typeof t)return e.get();switch(t.type){case 0:return e.get(t.length,t.targetId);case 1:var n=void 0!=t.text?t.text:t.length;return e.history.getDiagram(t.extended,n,t.textId,t.targetId,t.caseSensitive);case 2:var n=void 0!=t.text?t.text:t.length;return e.history.getDiagram(!0,n,t.textId,t.targetId,t.caseSensitive);default:return e.get(t.length)}},e.getDiagram=function(t,n){return e.history.getDiagram(!1,t,n,void 0,!1)},e.getExtendedDiagram=function(t,n){return e.history.getDiagram(!0,t,n,void 0,!1)},e.getMouseDiagram=function(){return e.mouse.history.getDiagram()},e.get=function(t,n){var i=e.history.stack.length;(void 0==t||0==t)&&(t=e.defaultHistoryLength),t>i&&(t=i);var o={};[o.arr,targetLength]=e.history.get(t,"",n),void 0!=n&&""!=n&&(t=targetLength);var r=e.zl,a=t,s=e.math.fo(e.history.get(t,"seek",n)),l=e.math.fo(e.history.get(t,"press",
8n)),c=Math.round(e.math.avg(l)),u=Math.round(e.math.avg(s)),p=Math.round(e.math.sd(l)),d=Math.round(e.math.sd(s)),h=u+c,f=e.math.rd((c+r)/(h+r),4),m=e.math.rd((1-f)/f,4),g=e.math.rd((p+r)/(c+r),4),y=e.math.rd((d+r)/(c+r),4),v=Math.round(6e4/(h+r));for(var b in 0==a&&(v=0),o.arr){var w=o.arr[b][1].length,k=0,_=0,S=0,E=0,T=0,x=0;switch(o.arr[b][0].length){case 0:break;case 1:var k=e.math.rd((o.arr[b][0][0]+r)/(u+r),4);break;default:var O=e.math.fo(o.arr[b][0]);k=e.math.rd((e.math.avg(O)+r)/(u+r),4),E=e.math.rd((e.math.sd(O)+r)/(d+r),4)}switch(o.arr[b][1].length){case 0:break;case 1:var _=e.math.rd((o.arr[b][1][0]+r)/(c+r),4);break;default:var O=e.math.fo(o.arr[b][1]);_=e.math.rd((e.math.avg(O)+r)/(c+r),4),T=e.math.rd((e.math.sd(O)+r)/(p+r),4)}switch(o.arr[b][2].length){case 0:break;case 1:var S=e.math.rd((o.arr[b][2][0]+r)/(u+r),4);break;default:var O=e.math.fo(o.arr[b][2]);S=e.math.rd((e.math.avg(O)+r)/(u+r),4),x=e.math.rd((e.math.sd(O)+r)/(d+r),4)}delete o.arr[b][2],delete o.arr[b][1],delete o.arr[b][0],o.arr[b][0]=w,o.arr[b][1]=k,o.arr[b][2]=_,o.arr[b][3]=S,o.arr[b][4]=E,o.arr[b][5]=T,o.arr[b][6]=x}var O=[];e.apu(O,a),e.apu(O,v),e.apu(O,h),e.apu(O,f),e.apu(O,m),e.apu(O,g),e.apu(O,y),e.apu(O,c),e.apu(O,u),e.apu(O,p),e.apu(O,d);for(var C=0;C<=6;C++)for(var b=0;b<44;b++){var A=e.keyCodes[b],P=o.arr[A][C];0==P&&C>0&&(P=1),e.apu(O,P)}return e.apu(O,e.isMobile()),e.apu(O,e.version),e.apu(O,e.flags),O.push(e.history.getSpecialKeys()),O.join(",")},e.apu=function(e,t){"NaN"==String(t)&&(t=0),e.push(t)},e.math={},e.math.rd=function(e,t){return Number(e.toFixed(t))},e.math.avg=function(e){var t=e.length;if(!(t>0))return 0;for(var n=0,i=0;i<t;i++)n+=e[i];return this.rd(n/t,4)},e.math.sd=function(e){var t=e.length;if(t<2)return 0;for(var n=0,i=this.avg(e),o=0;o<t;o++)n+=(e[o]-i)*(e[o]-i);return Math.sqrt(n/t)},e.math.fo=function(e){if(!(e.length>1))return e;var t=e.concat(),n=e.length;t.sort(function(e,t){return e-t});var i=this.sd(t),o=t[Math.ceil(e.length/2)],r=o+2*i,a=o-2*i;n<20&&(a=0);for(var s=[],l=0;l<n;l++){var c=t[l];c<r&&c>a&&s.push(c)}return s},e.math.fnv1aHash=function(e){if(void 0==e&&"string"!=typeof e)return 0;e=e.toLowerCase();var t,n,i=1914395348;for(t=0,n=e.length;t<n;t++)i^=e.charCodeAt(t),i+=(i<<1)+(i<<4)+(i<<7)+(i<<8)+(i<<24);return i>>>0},e.history={},e.history.stack=[],e.history.stackDiagram=[],e.history.add=function(t){this.stack.push(t),this.stack.length>e.maxHistoryLength&&this.stack.shift()},e.history.addDiagram=function(e){this.stackDiagram.push(e)},e.history.getDiagram=function(t,n,i,o,r){var r=void 0!=r?r:void 0==n||""==n,a=[],s=this.stackDiagram;if(void 0!=o&&""!=o&&s.length>0){if(s=e.sliceStackByTargetId(s,o),void 0==n||""==n){var l=e.document.getElementById(o);null!=l&&(n=l.value)}}else{var c=e.targetIds.length;if((void 0==n||""==n)&&c>0){n="";for(var u=0;u<c;u++){var l=e.document.getElementById(e.targetIds[u]);null!=l&&(n+=l.value)}}}var p=0,d=s.length,h=d;"string"==typeof n?h=n.length:"number"==typeof n&&n<d&&(h=n);var f=0;if(void 0!=i?f=isNaN(parseInt(i))?e.math.fnv1aHash(i):parseInt(i):"string"==typeof n&&(f=e.math.fnv1aHash(n)),a.push([e.isMobile(),e.version,e.flags,!0==t?1:0,h,f,e.history.getSpecialKeys()]),void 0!=n&&n.length>0&&"string"==typeof n)for(var m,g,y=n.toLowerCase(),v=n.toUpperCase(),b=[],w=0,u=0;u<n.length;u++){var k=n.charCodeAt(u);r||(g=(m=v.charCodeAt(u))!=k?m:y.charCodeAt(u));for(var _=w,S=d,E=!1;!1==E;){for(var T=_;T<S;T++){var x=s[T],O=x[3];if(O==k||!r&&O==g){if(E=!0,T==w)w++,b=[];else{b.push(T);var C=b.length;C>1&&b[C-1]==b[C-2]+1&&(w=T+1,b=[])}var A=x[0],P=x[1],N=x[2];t?a.push([O,P,N,A]):a.push([P,N]);break}}if(!1==E){if(0!=_)_=0,S=w;else if(E=!0,e.replaceMissingKeys){if(p++,"object"!=typeof e.savedMissingAvgValues||e.savedMissingAvgValues.historyLength!=d){var R=e.math.fo(e.history.get(0,"seek")),I=e.math.fo(e.history.get(0,"press")),P=Math.round(e.math.avg(R)),N=Math.round(e.math.avg(I));e.savedMissingAvgValues={seekTime:P,pressTime:N,historyLength:d}}else var P=e.savedMissingAvgValues.seekTime,N=e.savedMissingAvgValues.pressTime;t?a.push([k,P,N,k,1]):a.push([P,N,1]);break}}}if(e.replaceMissingKeysPerc<100*p/h)return null}else{var D=0;"number"==typeof n&&(D=d-n),D<0&&(D=0);for(var u=D;u<d;u++){var x=s[u],A=x[0],P=x[1],N=x[2];if(t){var O=x[3];a.push([O,P,N,A])}else a.push([P,N])}}return a.join("|")},e.sliceStackByTargetId=function(e,n){var i=e.length,o=[];for(t=0;t<i;t++){var r=e[t];r[5]==n&&o.push(r)}return o},e.history.get=function(t,n,i){var o=this.stack;void 0!=i&&""!=i&&o.length>0&&(o=e.sliceStackByTargetId(o,i));var r=o.length;switch((0==t||void 0==t)&&(t=e.defaultHistoryLength),t>r&&(t=r),n){case"seek":var a=[];for(p=1;p<=t;p++){var s=o[r-p][1];s<=e.maxSeekTime&&a.push(s)}return a;case"press":var l=[];for(p=1;p<=t;p++){var c=o[r-p][2];c<=e.maxPressTime&&l.push(c)}return l;default:var u={};for(var p in e.keyCodes)u[e.keyCodes[p]]=[[],[],[]];for(p=1;p<=t;p++){var d=o[r-p],h=d[0],s=d[1],c=d[2],f=d[3];e.keyCodesObj[h]&&(s<=e.maxSeekTime&&(u[h][0].push(s),0!=f&&e.keyCodesObj[f]&&u[f][2].push(s)),c<=e.maxPressTime&&u[h][1].push(c))}return[u,t]}},e.history.getSpecialKeys=function(){var t=[],n=this.stack.length,i={};for(var o in e.spKeyCodes)i[e.spKeyCodes[o]]=[[]];for(o=1;o<=n;o++){var r=this.stack[n-o];if(e.spKeyCodesObj[r[0]]){var a=r[0],s=r[2];s<=e.maxPressTime&&i[a][0].push(s)}}for(var o in e.spKeyCodes){var r=e.math.fo(i[e.spKeyCodes[o]][0]),l=r.length;t.push(l),l>1?(t.push(Math.round(e.math.avg(r))),t.push(Math.round(e.math.sd(r)))):1==l?t.pu
8sh([r[0],-1]):t.push([-1,-1])}var c=e.clickTimes.length;t.push(c),c>1?(t.push(Math.round(e.math.avg(e.clickTimes))),t.push(Math.round(e.math.sd(e.clickTimes)))):1==c?t.push(e.clickTimes[0],-1):t.push([-1,-1]);var u=e.stopTimes.length;return t.push(u),u>1?(t.push(Math.round(e.math.avg(e.stopTimes))),t.push(Math.round(e.math.sd(e.stopTimes)))):1==u?t.push(e.stopTimes[0],-1):t.push([-1,-1]),t},e.getQuality=function(t){var n=t.split(",");for(a=0;a<n.length;a++)n[a]=Number(n[a]);n[0];var i=rec=avgAcc=0,o=e.math.avg(n),r=n.slice(11,55);for(var a in r)rec+=Number(r[a]>0),i+=Number(r[a]>4),avgAcc+=Number(r[a]>o);var s=Math.sqrt(rec*i*avgAcc)/80;return s>1?1:s},e.checkMobileValidity=function(e){var t=e.split(","),n=t[0];if(0==n)return 0;var i=0,o=t.slice(11,55);for(var r in o)i+=Number(o[r]);return i/n},e.getLength=function(e){return Number(e.split(",")[1])},e.isMobile=function(){if(void 0!=e.mobile)return e.mobile;var t,n=0;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(n=1),e.mobile=n,n},e.getTextId=function(t){return e.math.fnv1aHash(t)}},dM={track:function(e){try{(a=new dL).addTarget(e),a.start()}catch(e){}},getTypingPattern:function(){try{return a.getTypingPattern({type:1})}catch(e){return null}}},dU=cB.extend({className:"primary-auth-form",noCancelButton:!0,attributes:{novalidate:"novalidate"},save:function(){return this.settings.get("features.passwordlessAuth")?cq("oform.next","login"):cq("primaryauth.submit","login")},saveId:"okta-signin-submit",layout:"o-form-theme",title:function(){let e=cq("primaryauth.title","login");return this.settings.get("socialAuthPositionTop")&&(e=""),e},initialize:function(){let e=this.settings.get("features.trackTypingPattern");this.listenTo(this,"save",async function(){let{appState:t}=this.options;if(e){let e=dM.getTypingPattern();t.set("typingPattern",e)}let n={username:this.model.get("username")};if(this.settings.get("features.passwordlessAuth")||(n.password=this.model.get("password")),t.trigger("loading",!0),this.state.trigger("togglePrimaryAuthButton",!0),await this.settings.processCreds(n),this.settings.get("features.deviceFingerprinting"))try{let e=await dP.generateDeviceFingerprint(this.settings.getAuthClient(),this.$el[0]);t.set("deviceFingerprint",e)}catch{}this.model.save()}),this.stateEnableChange(),this.stateUsernameChange()},stateEnableChange:function(){this.listenTo(this.state,"change:enabled",function(e,t){t?this.enable():this.disable()})},stateUsernameChange:function(){this.listenTo(this.state,"change:disableUsername",function(e,t){t?this.$el.find("#okta-signin-username").attr("disabled",!0):this.$el.find("#okta-signin-username").removeAttr("disabled")})},inputs:function(){let e=[];return e.push(this.getUsernameField()),this.settings.get("features.passwordlessAuth")||e.push(this.getPasswordField()),this.settings.get("features.rememberMe")&&e.push(this.getRemeberMeCheckbox()),e},getUsernameField:function(){return{className:"margin-btm-5",label:cq("primaryauth.username.placeholder","login"),"label-top":!0,explain:()=>
8!!this.isCustomized("primaryauth.username.tooltip")&&r7.createInputExplain("primaryauth.username.tooltip","primaryauth.username.placeholder","login"),"explain-top":!0,name:"username",input:uv,inputId:"okta-signin-username",type:"text",disabled:this.options.appState.get("disableUsername"),autoComplete:r7.getAutocompleteValue(this.settings,"username"),render:function(){let e=this;function t(){e.$(this).removeAttr("aria-invalid").off("focusout",t).off("change",t)}this.$(`input[name=${this.options.name}]`).attr({"aria-invalid":"false","aria-required":"true"}).prop({required:!0}).focusout(t).change(t)}}},getPasswordField:function(){let e={className:"margin-btm-30",label:cq("primaryauth.password.placeholder","login"),"label-top":!0,explain:()=>!!this.isCustomized("primaryauth.password.tooltip")&&r7.createInputExplain("primaryauth.password.tooltip","primaryauth.password.placeholder","login"),"explain-top":!0,name:"password",inputId:"okta-signin-password",validateOnlyIfDirty:!0,type:"password",autoComplete:r7.getAutocompleteValue(this.settings,"current-password"),render:function(){let e=this;function t(){e.$(this).removeAttr("aria-invalid").off("focusout",t).off("change",t)}this.$(`input[name=${this.options.name}]`).attr({"aria-invalid":"false","aria-required":"true"}).prop({required:!0}).focusout(t).change(t)}};return this.settings.get("features.showPasswordToggleOnSignInPage")&&(e.params={},e.params.showPasswordToggle=!0),e},isCustomized:function(e){let t=this.settings.get("language"),n=this.settings.get("i18n");return!!(n&&n[t]&&n[t][e])},getRemeberMeCheckbox:function(){return{label:!1,placeholder:cq("remember","login"),name:"remember",type:"checkbox","label-top":!0,className:"margin-btm-0",initialize:function(){this.listenTo(this.model,"change:remember",function(e,t){this.$(":checkbox").prop("checked",t).trigger("updateState")})}}},focus:function(){this.model.get("username")?this.settings.get("features.passwordlessAuth")||this.getInputs().toArray()[1].focus():this.getInputs().first().focus(),this.settings.get("features.trackTypingPattern")&&dM.track("okta-signin-username")}});let{Util:dF}=cz;var dj=cH.extend({template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<li><a href="#" data-se="unlock" class="link js-unlock">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"unlockaccount"},data:o,loc:{start:{line:1,column:440},end:{line:1,column:484}}}))+"</a></li>"},3:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<li><a href="'+u(typeof(a=null!=(a=p(n,"href")||(null!=t?p(t,"href"):t))?a:l)===c?a.call(s,{name:"href",hash:{},data:o,loc:{start:{line:1,column:539},end:{line:1,column:547}}}):a)+'" class="link js-custom" rel="noopener noreferrer" '+(null!=(r=p(n,"if").call(s,null!=t?p(t,"target"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:598},end:{line:1,column:638}}}))?r:"")+">"+u(typeof(a=null!=(a=p(n,"text")||(null!=t?p(t,"text"):t))?a:l)===c?a.call(s,{name:"text",hash:{},data:o,loc:{start:{line:1,column:639},end:{line:1,column:647}}}):a)+"</a></li>"},4:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'target="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"target")||(null!=t?a(t,"target"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"target",hash:{},data:o,loc:{start:{line:1,column:620},end:{line:1,column:630}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" data-se="needhelp" aria-expanded="false" aria-controls="help-links-container" class="link help js-help">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"needhelp"},data:o,loc:{start:{line:1,column:116},end:{line:1,column:155}}}))+'</a><ul class="help-links js-help-links" id="help-links-container"><li><a href="#" data-se="forgot-password" class="link js-forgot-password">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"forgotpassword"},data:o,loc:{start:{line:1,column:296},end:{line:1,column:341}}}))+"</a></li>"+(null!=(r=u(n,"if").call(s,null!=(r=null!=t?u(t,"features"):t)?u(r,"selfServiceUnlock"):r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:350}
8,end:{line:1,column:500}}}))?r:"")+(null!=(r=u(n,"each").call(s,null!=(r=null!=t?u(t,"helpLinks"):t)?u(r,"custom"):r,{name:"each",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:500},end:{line:1,column:665}}}))?r:"")+'<li><a href="'+c("function"==typeof(a=null!=(a=u(n,"helpLinkUrl")||(null!=t?u(t,"helpLinkUrl"):t))?a:l)?a.call(s,{name:"helpLinkUrl",hash:{},data:o,loc:{start:{line:1,column:678},end:{line:1,column:693}}}):a)+'" data-se="help-link" class="link js-help-link" rel="noopener noreferrer" target="_blank">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"help"},data:o,loc:{start:{line:1,column:783},end:{line:1,column:818}}}))+"</a></li></ul>"},useData:!0}),className:"auth-footer",initialize:function(){this.listenTo(this.state,"change:enabled",function(e,t){this.$(".link").toggleClass("o-form-disabled",!t)})},getTemplateData:function(){let e;return e=this.settings.get("helpLinks.help")||a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"baseUrl")||(null!=t?a(t,"baseUrl"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"baseUrl",hash:{},data:o,loc:{start:{line:1,column:0},end:{line:1,column:11}}}):r)+"/help/login"},useData:!0})({baseUrl:this.settings.get("baseUrl")}),rN.extend(this.settings.toJSON({verbose:!0}),{helpLinkUrl:e})},postRender:function(){this.$(".js-help-links").hide()},toggleLinks:function(e){e.preventDefault(),this.$(".js-help-links").slideToggle(200,()=>{this.$(".js-help").attr("aria-expanded",this.$(".js-help-links").is(":visible"))})},events:{"click .js-help":function(e){e.preventDefault(),this.state.get("enabled")&&this.toggleLinks(e)},"click .js-forgot-password":function(e){if(e.preventDefault(),!this.state.get("enabled"))return;let t=this.settings.get("helpLinks.forgotPassword");t?dF.redirect(t):this.options.appState.trigger("navigate","signin/forgot-password")},"click .js-unlock":function(e){if(e.preventDefault(),!this.state.get("enabled"))return;let t=this.settings.get("helpLinks.unlock");t?dF.redirect(t):this.options.appState.trigger("navigate","signin/unlock")}}}),dV=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="content-container"><span class="registration-label">'+c(typeof(r=null!=(r=u(n,"label")||(null!=t?u(t,"label"):t))?r:s)===l?r.call(a,{name:"label",hash:{},data:o,loc:{start:{line:1,column:64},end:{line:1,column:73}}}):r)+'</span><a title="'+c(typeof(r=null!=(r=u(n,"text")||(null!=t?u(t,"text"):t))?r:s)===l?r.call(a,{name:"text",hash:{},data:o,loc:{start:{line:1,column:90},end:{line:1,column:98}}}):r)+'" aria-label="'+c(typeof(r=null!=(r=u(n,"text")||(null!=t?u(t,"text"):t))?r:s)===l?r.call(a,{name:"text",hash:{},data:o,loc:{start:{line:1,column:112},end:{line:1,column:120}}}):r)+'" class="registration-link" href="#">'+c(typeof(r=null!=(r=u(n,"text")||(null!=t?u(t,"text"):t))?r:s)===l?r.call(a,{name:"text",hash:{},data:o,loc:{start:{line:1,column:157},end:{line:1,column:165}}}):r)+"</a></div>"},useData:!0}),className:"registration-container",events:{"click a.registration-link":"handleClickEvent"},handleClickEvent:function(e){e.preventDefault();let t=this.settings.get("registration.click");t?t():this.options.appState.get("isIdxStateToken")?this.options.appState.trigger("navigate","signin/enroll-user"):this.options.appState.trigger("navigate","signin/register")},getTemplateData:function(){return{label:cq("registration.signup.label","login"),text:cq("registration.signup.text","login")}}}),dB=c8.extend({className:"primary-auth",state:{enabled:!0},View:dU,constructor:function(e){e.appState.unset("username"),this.model=new dA({multiOptionalFactorEnroll:e.settings.get("features.multiOptionalFactorEnroll"),settings:e.settings,appState:e.appState},{parse:!0}),c8.apply(this,arguments),this.addListeners(),e.settings.get("hasConfiguredButtons")&&this.add(dD,{prepend:e.settings.get("socialAuthPositionTop"),options:{currentController:this}}),this.addFooter(e),this.options.appState.get("disableUsername")&&this.addFooterWithBackLink(this.options),this.setUsername()},addFooter:function(e){this.add(new dj(this.toJSON({appState:e.appState}))),(e.settings.get("features.registration")||e.appState.get("isIdxStateToken"))&&this.add(new dV({settings:this.settings,appState:e.appState}))},addFooterWithBackLink:function(e){this.$el.find(".footer-back-link").length||this.add(new dc(this.toJSON({appState:e.appState,className:"auth-footer footer-back-link"})))},setUsername:function(){let e=this.model.get("username");e&&this.options.appState.set("username",e)},setUsernameFromIdpDiscovery:function(){let e=this.options.username;e&&(this.model.set("username",e),this.options.appState.set("disableUsername",!0))},events:{"focusout input[name=username]":function(){if(this.shouldComputeDeviceFingerprint()&&this.model.get("username")){let e=this;this.options.appState.trigger("loading",!0),dP.generateDeviceFingerprint(this.settings.getAuthClient(),this.$el[0]).then(function(t){e.options.appState.set("deviceFingerprint",t),e.options.appState.set("username",e.model.get("username"))}).catch(function(){e.options.appState.set("username",e.model.get("username"))}).finally(function(){e.options.appState.trigger("loading",!1)})}else this.options.appState.set("username",this.model.get("username"))},"focusin input":function(e){sh(e.target.parentElement).addClass("focused-input")},"focusout input":function(e){sh(e.target.parentElement).removeClass("focused-input")}},initialize:function(){this.options.appState.unset("deviceFingerprint"),this.settings.get("features.prefillUsernameFromIdpDiscovery")&&this.setUsernameFromIdpDiscovery(),this.listenTo(this.model,"change:username",function(e,t){t||this.options.appState.set("username","")}),this.listenTo(this.model,"save",function(){this.state.set("enabled",!1)}),this.listenTo(this.model,"error",function(){this.state.set("enabled",!0),this.options.appState.get("disableUsername")&&(this.state.set("disableUsername",!0),this.addFooterWithBackLink(this.options))}),this.listenTo(this.state,"togglePrimaryAuthButton",function(e){this.toggleButtonState(e)})},shouldComputeDeviceFingerprint:function(){return this.settings.get("features.securityImage")&&this.settings.get("features.deviceFingerprinting")&&this.settings.get("features.useDeviceFingerprintForSecurityImage")}}),dq=dA.extend({props:function(){let e=dC.getCookieUsername(),t=this.getUsernameAndRemember(e);return{username:["string",!0,t.username],lastUsername:["string",!1,e],context:["object",!1],remember:["boolean",!0,t.remember]}},local:{},save:function(){let e=this.settings.transformUsername(this.get("username"),rL.IDP_DISCOVERY),t=this.get("remember"),n=this.get("lastUsername"),i=this.get("requestContext");this.setUsernameCookie(e,t,n),this.trigger("save"),this.appState.trigger("loading",!0),this.appState.settings.getAuthClient().webfinger({resource:"okta:acct:"+e,requestContext:i}).then(e=>{e&&e.links&&e.links[0]&&("OKTA"===e.links[0].properties["okta:idp:type"]?this.trigger("goToPrimaryAuth"):e.links[0].href&&(e.links[0].href.includes("OKTA_INVALID_SESSION_REPOST%3Dtrue")?r7.redirectWithFormGet.bind(r7):this.settings.get("redirectUtilFn"))(e.links[0].href))}).catch(()=>{let e={errorSummary:cq("oform.error.webfinger","login")};this.trigger("error",this,{responseJSON:e}),this.appState.trigger("removeLoading"),dC.removeUsernameCookie()}).finally(()=>{this.appState.trigger("loading",!1)})}}),d$=dU.extend({className:"idp-discovery-form",save:function(){return cq("oform.next","login")},saveId:"idp-discovery-submit",initialize:function(){this.listenTo(this,"save",rN.bind(this.model.save,this.model)),this.stateEnableChange()},inputs:function(){let e=[],t={className:"margin-btm-30",label:cq("primaryauth.username.placeholder","login"),inputId:"idp-discovery-username",disabled:!1};return e.push(rN.extend(this.getUsernameField(),t)),this.settings.get("features.rememberMe")&&e.push(this.getRemeberMeCheckbox()),e},focus:function(){this.model.get("username")?this.getInputs().toArray()[1]&&this.getInputs().toArray()[1].focus():this.getInputs().first().focus()}}),dH=dB.extend({className:"idp-discovery",View:d$,constructor:function(e){e.appState.unset("username");let t=e.settings.get("idpDiscovery.requestContext"),n=e.appState.get("lastAuthResponse"),i=n&&(null==n?void 0:n.stateToken);r7.isV1StateToken(t)&&(t=i),this.model=new dq({requestContext:t,settings:e.settings,appState:e.appState},{parse:!0}),c8.apply(this,arguments),this.addListeners(),e.settings.get("hasConfiguredButtons")&&this.add(dD,{prepend:e.settings.get("socialAuthPositionTop"),options:{currentController:this}}),this.addFooter(e),this.setUsername()},initialize:function(){dB.prototype.initialize.apply(this),this.listenTo(this.model,"goToPrimaryAuth",function(){this.settings.set("username",this.model.get("username"));let e=this;this.settings.get("features.deviceFingerprinting")?dP.generateDeviceFingerprint(this.settings.getAuthClient(),this.$el[0]).then(function(t){e.options.appState.set("deviceFingerprint",t),e.options.appState.set("username",e.model.get("username"))}).catch(function(){e.options.appState.set("username",e.model.get("username"))}).finally(function(){e.doPrimaryAuth()}):e.doPrimaryAuth()})},doPrimaryAuth:function(){if(this.settings.get("features.passwordlessAuth")){let e=new dA({username:this.model.get("username"),multiOptionalFactorEnroll:this.options.settings.get("features.multiOptionalFactorEnroll"),settings:this.options.settings,appState:this.options.appState},{parse:!0});this.listenTo(e,"error",function(e,t){this.toggleButtonState(!1),this.model.trigger("error",this.model,t)}),this.addModelListeners(e),e.save()}else{this.options.appState.set("disableUsername",!0);let e=u$.createSigninUrl(this.settings.get("features.prefillUsernameFromIdpDiscovery")&&this.model.get("username"));this.options.appState.trigger("navigate",e)}}}),dW=c8.extend({className:"force-idp-discovery",View:df,Model:{},initialize:function(){let e=this.options,t=e.appState.get("lastAuthResponse"),n=t&&(null==t?void 0:t.stateToken);e.appState.settings.getAuthClient().webfinger({resource:"okta:acct:",requestContext:n}).then(t=>{if(null!=t&&t.links&&t.links[0]&&"OKTA"!==t.links[0].properties["okta:idp:type"]&&t.links[0].href){(t.links[0].href.includes("OKTA_INVALID_SESSION_REPOST%3Dtrue")?r7.redirectWithFormGet.bind(r7):this.settings.get("redirectUtilFn"))(t.links[0].href);return}e.appState.trigger("navigate","")}).catch(()=>{e.appState.trigger("navigate","")})}});function dz(e){let t=u$.createActivateFactorUrl(e.get("activatedFactorProvider"),e.get("activatedFactorType"));e.trigger("navigate",t)}var dK=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"mfa.backToFactors"}
8,data:o,loc:{start:{line:1,column:58},end:{line:1,column:106}}}))+'</a><a href="#" class="link help goto js-goto" data-se="goto-link">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"mfa.scanBarcode"},data:o,loc:{start:{line:1,column:173},end:{line:1,column:219}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()},"click .js-goto":function(e){e.preventDefault();let t=rN.partial(dz,this.options.appState);this.options.appState.unset("factorActivationType"),this.model.doTransaction(function(e){return e.prev().then(function(e){return rN.findWhere(e.factors,{factorType:"push",provider:"OKTA"}).enroll()})}).then(t)}},back:function(){let e=this;e.options.appState.unset("factorActivationType"),e.options.appState.get("prevLink")?this.model.doTransaction(function(e){return e.prev()}).then(function(){e.options.appState.trigger("navigate","signin/enroll")}):e.options.appState.trigger("navigate","signin/enroll")}});function dG(e,t){let n=u$.createActivateFactorUrl(e.options.appState.get("activatedFactorProvider"),e.options.appState.get("activatedFactorType"),t);e.options.appState.trigger("navigate",n)}let dY={sharedSecret:function(e){return!rN.isUndefined(e)},activationType:"MANUAL"};function dJ(e){let t,n;"SMS"===e.model.get("activationType")&&(n=e.model.get("countryCode"),t=e.model.get("phoneNumber")),e.options.appState.set({factorActivationType:e.model.get("activationType"),userCountryCode:n,userPhoneNumber:t})}function dQ(e,t){return e.model.doTransaction(function(n){return n.prev().then(function(e){return rN.findWhere(e.factors,{factorType:t,provider:"OKTA"}).enroll()}).then(function(t){let n,i,o;let r=t.data;if(r&&r._embedded&&r._embedded.factor&&r._embedded.factor._embedded&&r._embedded.factor._embedded.activation){let e=r._embedded.factor;if(o=e._embedded.activation.sharedSecret,e._embedded.activation._links&&e._embedded.activation._links.send){let t=e._embedded.activation._links.send,o=rN.findWhere(t,{name:"sms"});n=o?o.href:null;let r=rN.findWhere(t,{name:"email"});i=r?r.href:null}}return e.model.set({SMS:n,EMAIL:i,sharedSecret:o}),t})})}var dX=ui.extend({className:"enroll-manual-push",Model:function(){return{local:{activationType:["string",!0,this.options.appState.get("factorActivationType")||"SMS"],countryCode:["string",!1,this.options.appState.get("userCountryCode")],phoneNumber:"string",SMS:["string",!1,this.options.appState.get("textActivationLinkUrl")],EMAIL:["string",!1,this.options.appState.get("emailActivationLinkUrl")],sharedSecret:["string",!1,this.options.appState.get("sharedSecret")],__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},derived:{countryCallingCode:{deps:["countryCode"],fn:function(e){return"+"+pO.getCallingCodeForCountry(e)}},fullPhoneNumber:{deps:["countryCallingCode","phoneNumber"],fn:function(e,t){return e+t}}}}},Form:{title:function(){return cq("enroll.totp.title","login",[uh.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"))])},subtitle:rN.partial(cq,"enroll.totp.cannotScanBarcode","login"),noButtonBar:!0,attributes:{"data-se":"step-manual-setup"},formChildren:function(){let e=this.settings.get("brandName")?cq("enroll.totp.sharedSecretInstructions.specific","login",[this.settings.get("brandName")]):cq("enroll.totp.sharedSecretInstructions.generic","login");return[c7.Input({name:"activationType",label:cq("mfa.setupOptions","login"),type:"select",wide:!0,options:{SMS:cq("enroll.totp.sendSms","login"),EMAIL:cq("enroll.totp.sendEmail","login"),MANUAL:cq("enroll.totp.setupManually","login")}}),c7.Input({label:cq("mfa.country","login"),name:"countryCode",type:"select",wide:!0,options:pO.getCountries(),showWhen:{activationType:"SMS"}}),c7.Input({label:cq("mfa.phoneNumber.placeholder","login"),"label-top":!0,className:"enroll-sms-phone",name:"phoneNumber",input:pA,type:"text",showWhen:{activationType:"SMS"}}),c7.View({View:cH.extend({className:"secret-key-instructions",attributes:{"data-se":"secret-key-instructions"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<section aria-live="assertive"><p class="okta-form-subtitle o-form-explain text-align-c">'+c(typeof(r=null!=(r=u(n,"instructions")||(null!=t?u(t,"instructions"):t))?r:s)===l?r.call(a,{name:"instructions",hash:{},data:o,loc:{start:{line:1,column:89},end:{line:1,column:105}}}):r)+'</p><p class="shared-key margin-top-10" tabindex=0 aria-label="'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{arguments:"sharedSecretKey",bundle:"login",code:"enroll.totp.sharedSecretInstructions.aria.secretKey"},data:o,loc:{start:{line:1,column:168},end:{line:1,column:278}}}
8))+'">'+c(typeof(r=null!=(r=u(n,"sharedSecretKey")||(null!=t?u(t,"sharedSecretKey"):t))?r:s)===l?r.call(a,{name:"sharedSecretKey",hash:{},data:o,loc:{start:{line:1,column:280},end:{line:1,column:299}}}):r)+"</p></section>"},useData:!0}),initialize:function(){this.listenTo(this.model,"change:sharedSecret",this.render)},getTemplateData:function(){return{instructions:e,sharedSecretKey:this.model.get("sharedSecret")}}}),showWhen:{activationType:"MANUAL"}}),c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div data-type="next-button-wrap"></div>'},useData:!0})}),showWhen:dY}),c7.Button({title:cq("oform.next","login"),className:"button button-primary button-wide button-next",attributes:{"data-se":"next-button"},click:()=>{dJ(this),dG(this,"passcode")}},'[data-type="next-button-wrap"]'),c7.Toolbar({noCancelButton:!0,save:cq("oform.send","login"),showWhen:{activationType:function(e){return"SMS"===e||"EMAIL"===e}}})]}},Footer:dK,initialize:function(){this.setInitialModel(),this.listenTo(this.form,"save",function(){let e=this;this.model.doTransaction(function(t){let n=this.get("activationType").toLowerCase(),i={};return"sms"===n&&(i.profile={phoneNumber:this.get("fullPhoneNumber")}),t.factor.activation.send(n,i).then(function(t){return dJ(e),rN.defer(function(){dG(e,"sent")}),t})})}),this.listenTo(this.model,"change:activationType",function(e,t){this.form.clearErrors(),"MANUAL"===t&&"token:software:totp"!==this.options.appState.get("activatedFactorType")?dQ(this,"token:software:totp"):"push"!==this.options.appState.get("activatedFactorType")&&dQ(this,"push")})},setInitialModel:function(){"SMS"===this.options.appState.get("factorActivationType")&&this.model.set({countryCode:this.options.appState.get("userCountryCode")||"US",phoneNumber:this.options.appState.get("userPhoneNumber")})},trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate")||this.options.appState.get("isMfaEnroll"))return!0}}),dZ=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"mfa.backToFactors"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:106}}}))+'</a><a href="#" class="link help goto js-goto" data-se="goto-link">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"mfa.scanBarcode"},data:o,loc:{start:{line:1,column:173},end:{line:1,column:219}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()},"click .js-goto":function(e){e.preventDefault(),this.model.startTransaction(function(e){return e.tx.resume()})}},back:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.get("prevLink")?this.model.doTransaction(function(e){return e.prev()}):this.options.appState.trigger("navigate","signin/enroll")}}),d0=ui.extend({className:"enroll-manual-totp",Model:function(){return{local:{sharedSecret:["string",!1,this.options.appState.get("sharedSecret")],__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]}}},Form:{title:function(){return cq("enroll.totp.title","login",[uh.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"))])},subtitle:rN.partial(cq,"enroll.totp.cannotScanBarcode","login"),noButtonBar:!0,attributes:{"data-se":"step-manual-setup"},formChildren:function(){let e=this.settings.get("brandName")?cq("enroll.totp.manualSetupInstructions.specific","login",[this.settings.get("brandName")]):cq("enroll.totp.manualSetupInstructions.generic","login");return[c7.View({View:cH.extend({className:"secret-key-instructions",attributes:{"data-se":"secret-key-instructions"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<section aria-live="assertive"><p class="okta-form-subtitle o-form-explain text-align-c">'+c(typeof(r=null!=(r=u(n,"instructions")||(null!=t?u(t,"instructions"):t))?r:s)===l?r.call(a,{name:"instructions",hash:{},data:o,loc:{start:{line:1,column:89},end:{line:1,column:105}}}):r)+'</p><p class="shared-key margin-top-10" tabindex=0 aria-label="'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{arguments:"sharedSecretKey",bundle:"login",code:"enroll.totp.sharedSecretInstructions.aria.secretKey"},data:o,loc:{start:{line:1,column:168},end:{line:1,column:278}}}
8))+'">'+c(typeof(r=null!=(r=u(n,"sharedSecretKey")||(null!=t?u(t,"sharedSecretKey"):t))?r:s)===l?r.call(a,{name:"sharedSecretKey",hash:{},data:o,loc:{start:{line:1,column:280},end:{line:1,column:299}}}):r)+"</p></section>"},useData:!0}),initialize:function(){this.listenTo(this.model,"change:sharedSecret",this.render)},getTemplateData:function(){return{instructions:e,sharedSecretKey:this.model.get("sharedSecret")}}})}),c7.Toolbar({noCancelButton:!0,save:cq("oform.next","login")})]}},Footer:dZ,initialize:function(){this.listenTo(this.form,"save",function(){let e=u$.createActivateFactorUrl(this.model.get("__provider__"),this.model.get("__factorType__"),"activate");this.options.appState.trigger("navigate",e)})}}),d1=cB.extend({layout:"o-form-theme",className:"factor-verify-magiclink",autoSave:!0,noCancelButton:!0,initialize:function(){let e=this;this.title=this.model.get("factorLabel");let t=this.model.get("email")||this.options.appState.get("lastAuthResponse")._embedded.user.profile.login;this.subtitle="("+t+")",this.add(lf({attributes:{"data-se":"email-send-code"},className:"button email-request-button",title:cq("mfa.sendEmail","login"),click:function(){e.clearErrors(),this.disable(),this.options.title=cq("mfa.sent","login"),this.render(),this.model.save().then(()=>cZ().delay(rL.API_RATE_LIMIT)).then(()=>{this.options.title=cq("mfa.resendEmail","login"),this.enable(),this.render()})}}))}}),d8=cB.extend({autoSave:!0,noButtonBar:!0,scrollOnError:!1,layout:"o-form-theme",className:"mfa-verify-totp-inline",attributes:{"data-se":"factor-inline-totp"},initialize:function(){let e=this;this.listenTo(this.model,"error",function(){this.clearErrors()}),this.add(lf({className:"link",attributes:{"data-se":"inline-totp-add"},title:cq("mfa.challenge.orEnterCode","login"),click:function(){this.remove(),e.addDivider(),e.addInput({label:cq("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top inline-input auth-passcode",name:"answer",input:uv,type:"tel"}),e.add(lf({attributes:{"data-se":"inline-totp-verify"},className:"button inline-totp-verify margin-top-30",title:cq("mfa.challenge.verify","login"),click:function(){e.clearErrors(),e.isValid()&&e.model.manageTransaction(function(t,n){if("MFA_CHALLENGE"===t.status&&t.prev)return e.options.appState.set("trapMfaRequiredResponse",!0),t.prev().then(function(t){n(t),e.model.save()});e.model.save()})}})),e.at(1).focus()}}))}});let d2=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"("+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:o,loc:{start:{line:1,column:1},end:{line:1,column:13}}}):r)+")"},useData:!0}),d3=cH.extend({className:"okta-form-infobox-warning infobox infobox-warning login-timeout-warning",attributes:{"aria-live":"polite"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon warning-16"></span><p>'+(null!=(r="function"==typeof(a=null!=(a=s(n,"warning")||(null!=t?s(t,"warning"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"warning",hash:{},data:o,loc:{start:{line:1,column:40},end:{line:1,column:53}}}):a)?r:"")+"</p>"},useData:!0})});function d4(e){switch(e){case"sms":return{buttonDataSe:"sms-send-code",buttonClassName:"sms-request-button",formSubmit:cq("mfa.sendCode","login"),formRetry:cq("mfa.resendCode","login"),formSubmitted:cq("mfa.sent","login"),subtitle:d2({subtitle:this.model.get("phoneNumber")}),warning:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<b>$1</b>",bundle:"login",code:"factor.sms.time.warning"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:70}}}))},useData:!0}
8)};case"call":return{buttonDataSe:"make-call",buttonClassName:"call-request-button",formSubmit:cq("mfa.call","login"),formRetry:cq("mfa.redial","login"),formSubmitted:cq("mfa.calling","login"),subtitle:d2({subtitle:this.model.get("phoneNumber")}),warning:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<b>$1</b>",bundle:"login",code:"factor.call.time.warning"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:71}}}))},useData:!0})};case"email":return{buttonDataSe:"email-send-code",buttonClassName:"email-request-button",formSubmit:cq("mfa.sendEmail","login"),formRetry:cq("mfa.resendEmail","login"),formSubmitted:cq("mfa.sent","login"),subtitle:d2({subtitle:this.model.get("email")})};default:return{buttonDataSe:"",buttonClassName:"",formSubmit:"",formRetry:"",formSubmitted:""}}}var d6=cB.extend({className:"mfa-verify-passcode",autoSave:!0,noCancelButton:!0,save:rN.partial(cq,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",disableSubmitButton:function(){return this.model.appState.get("isMfaChallenge")&&this.model.get("answer")},showWarning:function(e){this.clearWarnings(),this.add(d3,".o-form-error-container",{options:{warning:e}})},clearWarnings:function(){this.$(".okta-form-infobox-warning").remove()},initialize:function(){let e=this;this.title=this.model.get("factorLabel");let t=this.model.get("factorType"),n=d4.call(this,t),i=n.warning;this.$el.attr("data-se","factor-"+t),this.subtitle=n.subtitle,this.listenTo(this.model,"error",function(){this.clearErrors()}),this.addInput({label:cq("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"answer",input:uv,type:"tel"}),this.add(lf({attributes:{"data-se":n.buttonDataSe},className:"button "+n.buttonClassName,title:n.formSubmit,click:function(){e.clearErrors(),this.disable(),e.clearWarnings(),this.options.title=n.formSubmitted,this.render(),this.model.set("answer",""),this.model.save().then(function(){return e.getInputs().first().render().focus(),cZ().delay(rL.API_RATE_LIMIT)}).then(()=>{this.options.title=n.formRetry,this.enable(),("call"===t||"sms"===t)&&e.showWarning(i),this.render()})}})),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})}}),d5=cB.extend({className:"mfa-verify-password",autoSave:!0,noCancelButton:!0,save:rN.partial(cq,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-password"},initialize:function(){this.title=this.model.get("factorLabel"),this.addInput({label:cq("mfa.challenge.password.placeholder","login"),"label-top":!0,className:"auth-passcode",name:"password",type:"password",params:{showPasswordToggle:!0}}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})}}),d9=cH.extend({className:"number-challenge-view",template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};
8return'<p data-se="number-challenge-instruction">'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"number",bundle:"login",code:"oktaverify.numberchallenge.instruction"},data:o,loc:{start:{line:1,column:73},end:{line:1,column:163}}}))?r:"")+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=u(n,"if").call(s,null!=t?u(t,"number"):t,{name:"if",hash:{includeZero:!0},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:174}}}))?r:"")+'<div class="phone"><div class="phone--body"><div class="phone--screen"><span class="phone--number" data-se="challenge-number">'+c("function"==typeof(a=null!=(a=u(n,"number")||(null!=t?u(t,"number"):t))?a:l)?a.call(s,{name:"number",hash:{},data:o,loc:{start:{line:1,column:300},end:{line:1,column:310}}}):a)+'</span></div><div class="phone--home-button"></div></div></div><p>'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"oktaverify.numberchallenge.explain"},data:o,loc:{start:{line:1,column:376},end:{line:1,column:441}}}))+"</p>"},useData:!0}),initialize:function(){this.listenTo(this.options.appState,"change:isWaitingForNumberChallenge",()=>{"SUCCESS"!==this.options.appState.get("lastAuthResponse").status&&this.render()})},getTemplateData:function(){let e=this.options.appState.get("lastAuthResponse");return this.options.appState.get("isWaitingForNumberChallenge")?{number:e._embedded.factor._embedded.challenge.correctAnswer}:{number:null}}});let d7=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression(typeof(a=null!=(a=u(n,"factorName")||(null!=t?u(t,"factorName"):t))?a:l)===c?a.call(s,{name:"factorName",hash:{},data:o,loc:{start:{line:1,column:0},end:{line:1,column:14}}}):a)+" ("+(null!=(r=typeof(a=null!=(a=u(n,"deviceName")||(null!=t?u(t,"deviceName"):t))?a:l)===c?a.call(s,{name:"deviceName",hash:{},data:o,loc:{start:{line:1,column:16},end:{line:1,column:32}}}):a)?r:"")+")"},useData:!0}),he=cH.extend({className:"okta-form-infobox-warning infobox infobox-warning",attributes:{"aria-live":"polite"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon warning-16"></span><p>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"warning")||(null!=t?a(t,"warning"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"warning",hash:{},data:o,loc:{start:{line:1,column:40},end:{line:1,column:51}}}):r)+"</p>"},useData:!0})});var ht=cB.extend({className:"mfa-verify-push",autoSave:!0,noCancelButton:!0,save:rN.partial(cq,"oktaverify.send","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-push"},events:{submit:"submit"},initialize:function(){this.enabled=!0,this.listenTo(this.options.appState,"change:isMfaRejected",this.handleRejectStateChange),this.numberChallengeView=this.add(d9).last(),this.listenTo(this.options.appState,"change:isWaitingForNumberChallenge",function(e,t){t||"SUCCESS"===this.options.appState.get("lastAuthResponse").status?(this.clearWarnings(),this.$el.find(".button").hide(),this.numberChallengeView.$el.show()):(this.numberChallengeView.$el.hide(),this.$el.find(".button").show())}),this.listenTo(this.options.appState,"change:isMfaTimeout",function(e,t){this.setSubmitState(t),t&&this.showError(cq("oktaverify.timeout","login"))}),this.listenTo(this.options.appState,"change:isMfaRequired",function(e,t){t&&(this.clearErrors(),this.clearWarnings())}),this.title=d7({factorName:this.model.get("factorLabel"),deviceName:this.model.get("deviceName")})},setSubmitState:function(e){let t=this.$el.find(".button"),n=this.$el.find(".accessibility-text");this.enabled=e,e?(t.removeClass("link-button-disabled"),t.prop("value",cq("oktaverify.send","login")),t.prop("disabled",!1),n&&n.remove()):(t.addClass("link-button-disabled"),t.prop("value",cq("oktaverify.sent","login")),t.prop("disabled",!0),this.add(`<span class='accessibility-text' role='alert'>${cq("oktaverify.sent","login")}</span>`))},submit:function(e){void 0!==e&&e.preventDefault(),this.enabled&&(this.setSubmitState(!1),this.doSave())},postRender:function(){let e=this.options.appState.get("factorsPolicyInfo"),t=this.model.get("id");this.settings.get("features.autoPush")&&e&&e[t]&&e[t].autoPushEnabled&&(this.model.set("autoPush",!0),rN.defer(rN.bind(this.submit,this)))},doSave:function(){let e;this.clearErrors(),this.clearWarnings(),this.model.isValid()&&(this.listenToOnce(this.model,"error",function(){this.setSubmitState(!0),this.clearWarnings(),clearTimeout(e)}),this.trigger("save",this.model),e=r7.callAfterTimeout(()=>{this.options.appState.get("isWaitingForNumberChallenge")||this.showWarning(cq("oktaverify.warning","login"))},3e4))},showError:function(e){this.clearWarnings(),this.model.trigger("error",this.model,{responseJSON:{errorSummary:e}})},showWarning:function(e){this.clearWarnings(),this.add(he,".o-form-error-container",{options:{warning:e}})},clearWarnings:function(){this.$(".okta-form-infobox-warning").remove()},handleRejectStateChange:function(e,t){t&&(this.setSubmitState(t),this.setRejectedErrorMessage())},setRejectedErrorMessage:function(){"OKTA_VERIFY_UPGRADE_REQUIRED"===this.options.appState.get("lastAuthResponse").factorResultMessage?"IOS"===this.options.appState.get("factor").profile.platform?this.showError(cq("oktaverify.rejected.upgradeRequired.ios","login")):this.showError(cq("oktaverify.rejected.upgradeRequired.android","login")):this.showError(cq("oktaverify.rejected","login"))}}),hn=cB.extend({className:"mfa-verify-question",autoSave:!0,noCancelButton:!0,save:rN.partial(cq,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-question"},initialize:function(){this.title=this.model.get("factorLabel"),this.addInput({label:this.model.get("securityQuestion"),"label-top":!0,placeholder:cq("mfa.challenge.answer.placeholder","login"),className:"auth-passcode",name:"answer",type:"password",params:{showPasswordToggle:!0}}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})}});let hi=function(){let e=this.model.get("email");return{factorEmail:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="mask-email">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"email")||(null!=t?a(t,"email"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"email",hash:{},data:o,loc:{start:{line:1,column:25},end:{line:1,column:34}}}):r)+"</span>"},useData:!0}
8)({email:e})}},ho=cB.extend({layout:"o-form-theme",className:"mfa-verify-email",title:rN.partial(cq,"email.mfa.title","login"),noButtonBar:!1,autoSave:!0,noCancelButton:!0,attributes:{"data-se":"factor-email"},save:function(){return this.options.appState.get("isMfaChallenge")?cq("mfa.challenge.verify","login"):cq("email.button.send","login")},events:Object.assign({},cB.prototype.events,{submit:function(e){e.preventDefault(),this.handleSubmit()}}),handleSubmit:function(){this.clearErrors(),this.options.appState.get("isMfaChallenge")?this.isValid()&&this.model.save():(this.model.set("answer",""),this.model.save().then(this.renderChallengView.bind(this)))},initialize:function(){cB.prototype.initialize.apply(this,arguments),this.add(cH.extend({attributes:{"data-se":"mfa-send-email-content"},className:"mfa-send-email-content",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"factorEmail",bundle:"login",code:"email.mfa.description"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:78}}}))?r:""},useData:!0}),getTemplateData:hi}))},renderChallengView:function(){this.removeChildren(),this.add(cH.extend({className:"mfa-email-sent-content",attributes:{"data-se":"mfa-email-sent-content"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"factorEmail",bundle:"login",code:"email.mfa.email.sent.description"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:89}}}))?r:""},useData:!0}),getTemplateData:hi})),this.add(pE),this.addInput({label:cq("email.code.label","login"),"label-top":!0,name:"answer",input:uv,wide:!0,type:"tel"}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"}),this.render()}});var hr=cB.extend({className:"mfa-verify-totp",autoSave:!0,noCancelButton:!0,save:rN.partial(cq,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-totp"},initialize:function(){let e=this.model.get("factorLabel"),t="RSA"===this.model.get("provider")||"DEL_OATH"===this.model.get("provider");this.title=e,this.model.get("isFactorTypeVerification")?this.subtitle=cq("mfa.challenge.totp.subtitle.multiple","login",[e]):this.subtitle=cq("mfa.challenge.title","login",[e]),this.addInput({label:cq("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"answer",input:uv,type:t?"password":"tel"}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"}),("RSA"===this.model.get("provider")||"DEL_OATH"===this.model.get("provider"))&&this.listenTo(this.model,"error",(e,t)=>{t&&409===t.status&&(this.$(".auth-passcode input").val(""),this.$(".auth-passcode input").trigger("change"),this.$(".auth-passcode input").focus())})}}),ha=cB.extend({className:"mfa-verify-yubikey",autoSave:!0,noCancelButton:!0,save:rN.partial(cq,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-yubikey"},initialize:function(){let e=this.model.get("factorLabel");this.title=e,this.subtitle=cq("factor.totpHard.yubikey.description","login"),this.addInput({label:cq("factor.totpHard.yubikey.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"answer",input:uv,inputId:"mfa-answer",type:"password"}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,
8className:"margin-btm-0",placeholder:this.options.appState.get("rememberDeviceLabel"),name:"rememberDevice",type:"checkbox"})}});let{Util:hs}=cz;var hl=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link '+c(typeof(r=null!=(r=u(n,"linkClassName")||(null!=t?u(t,"linkClassName"):t))?r:s)===l?r.call(a,{name:"linkClassName",hash:{},data:o,loc:{start:{line:1,column:24},end:{line:1,column:41}}}):r)+'" data-se="signout-link">'+c(typeof(r=null!=(r=u(n,"linkText")||(null!=t?u(t,"linkText"):t))?r:s)===l?r.call(a,{name:"linkText",hash:{},data:o,loc:{start:{line:1,column:66},end:{line:1,column:78}}}):r)+"</a>"},useData:!0}),className:"auth-footer clearfix",events:{'click a[data-se="signout-link"]':"handleSignout"},handleSignout:function(e){e.preventDefault();let t=this.options.appState;t.trigger("signOut");let n=t.get("isSMSPasswordRecovery");this.model.doTransaction(function(e){return e.cancel().then(hc)}).then(()=>{this.settings.get("backToSignInUri")&&!n?hs.redirect(this.settings.get("backToSignInUri")):(this.state.set("navigateDir",rL.DIRECTION_BACK),t.trigger("navigate",""))})},getTemplateData:function(){return{linkClassName:rN.isUndefined(this.options.linkClassName)?"goto":this.options.linkClassName,linkText:this.options.linkText||cq("goback","login")}}});function hc(e){return{...e,data:null}}var hu=hl.extend({template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+c(typeof(r=null!=(r=u(n,"factorPageCustomLinkHref")||(null!=t?u(t,"factorPageCustomLinkHref"):t))?r:s)===l?r.call(a,{name:"factorPageCustomLinkHref",hash:{},data:o,loc:{start:{line:1,column:40},end:{line:1,column:68}}}):r)+'" data-se="factor-page-custom-link" class="link js-factor-page-custom-link" rel="noopener noreferrer" target="_blank">'+c(typeof(r=null!=(r=u(n,"factorPageCustomLinkText")||(null!=t?u(t,"factorPageCustomLinkText"):t))?r:s)===l?r.call(a,{name:"factorPageCustomLinkText",hash:{},data:o,loc:{start:{line:1,column:186},end:{line:1,column:214}}}):r)+"</a>"},3:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link '+c(typeof(r=null!=(r=u(n,"linkClassName")||(null!=t?u(t,"linkClassName"):t))?r:s)===l?r.call(a,{name:"linkClassName",hash:{},data:o,loc:{start:{line:1,column:265},end:{line:1,column:282}}}):r)+'" data-se="signout-link">'+c(typeof(r=null!=(r=u(n,"linkText")||(null!=t?u(t,"linkText"):t))?r:s)===l?r.call(a,{name:"linkText",hash:{},data:o,loc:{start:{line:1,column:307},end:{line:1,column:319}}}):r)+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"hasFactorPageCustomLink"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:225}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"showLink"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:225},end:{line:1,column:330}}}))?r:"")},useData:!0}),className:"auth-footer clearfix",getTemplateData:function(){let e=hl.prototype.getTemplateData.apply(this,arguments),t=this.settings.get("helpLinks.factorPage.href"),n=this.settings.get("helpLinks.factorPage.text");return Object.assign({},e,{hasFactorPageCustomLink:n&&t,factorPageCustomLinkHref:t,factorPageCustomLinkText:n,showLink:!this.settings.get("features.hideSignOutLinkInMFA")&&!this.settings.get("features.mfaOnlyFlow")})}});let{CheckBox:hp}=cJ;var hd=c8.extend({className:"mfa-verify",initialize:function(e){let t;let n=e.factorType;switch(n){case"question":t=hn;break;case"email":t=this.options.appState.get("isIdxStateToken")?d1:ho;break;case"sms":case"call":t=d6;break;case"token":case"token:software:totp":case"token:hotp":t=hr;break;case"token:hardware":t=ha;break;case"push":t=ht;break;case"password":t=d5;break;default:throw Error("Unrecognized factor type")}if(this.model=this.findModel(n,e),!this.model)throw Error("Unrecognized factor/provider");this.addListeners(),this.add(new t(this.toJSON())),"push"===n&&this.model.get("isOktaFactor")&&(this.model.get("backupFactor")&&(this.inl
8ineTotpForm=this.add(d8,{options:{model:this.model.get("backupFactor")}}).last()),this.settings.get("features.autoPush")&&(this.autoPushCheckBox=this.add(hp,{options:{model:this.model,name:"autoPush",placeholder:cq("autoPush","login"),label:!1,"label-top":!1,className:"margin-btm-0"}}).last()),this.options.appState.get("allowRememberDevice")&&(this.rememberDeviceCheckbox=this.add(hp,{options:{model:this.model,name:"rememberDevice",placeholder:this.options.appState.get("rememberDeviceLabel"),label:!1,"label-top":!0,className:"margin-btm-0"}}).last()),this.model.get("backupFactor")&&this.listenTo(this.model,"change:rememberDevice",function(e,t){e.get("backupFactor").set("rememberDevice",t)})),this.listenTo(this.options.appState,"change:isWaitingForNumberChallenge",function(e,t){t||"SUCCESS"===this.options.appState.get("lastAuthResponse").status?(this.autoPushCheckBox&&this.autoPushCheckBox.$el.hide(),this.rememberDeviceCheckbox&&this.rememberDeviceCheckbox.$el.hide(),this.inlineTotpForm&&this.inlineTotpForm.$el.hide()):(this.autoPushCheckBox&&this.autoPushCheckBox.$el.show(),this.rememberDeviceCheckbox&&this.rememberDeviceCheckbox.$el.show(),this.inlineTotpForm&&this.inlineTotpForm.$el.show())}),this.add(new hu(this.toJSON()))},findModel:function(e,t){let n=t.appState.get("factors"),i=t.provider,o=t.factorIndex;return i?n.hasMultipleFactorsOfSameType(e)&&o?n.getFactorByTypeAndIndex(e,o):n.findWhere({provider:i,factorType:e}):n.findWhere({factorType:e,isFactorTypeVerification:!0})},trapAuthResponse:function(){return!!(this.options.appState.get("isMfaRequired")&&this.options.appState.get("trapMfaRequiredResponse")||this.options.appState.get("isMfaChallenge"))&&(this.options.appState.set("trapMfaRequiredResponse",!1),!0)},back:function(){}}),hh=cH.extend({template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="password-requirements--header">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"password.complexity.requirements.header"},data:o,loc:{start:{line:1,column:63},end:{line:1,column:133}}}))+'</div><ul class="password-requirements--list">'+(null!=(r=s(n,"each").call(a,null!=t?s(t,"requirements"):t,{name:"each",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:179},end:{line:1,column:268}}}))?r:"")+"</ul>"},2:function(e,t,n,i,o){return'<li class="password-requirements--list-item">'+e.escapeExpression(e.lambda(t,t))+"</li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"requirements"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:280}}}))?r:""},useData:!0}),attributes:{"data-se":"password-requirements-html"},allRequirements:[],initialize:function(e){let t=e.policy;t&&(this.allRequirements=uh.getPasswordComplexityDescriptionForHtmlList(t))},getTemplateData:function(){return{requirements:this.allRequirements}}}),hf=ui.extend({className:"password-expired",Model:{props:{oldPassword:["string",!0],newPassword:["string",!0],confirmPassword:["string",!0]},validate:function(){return pQ.validatePasswordMatch(this)},save:function(){return this.trigger("save"),this.doTransaction(function(e){return e.changePassword({oldPassword:this.get("oldPassword"),newPassword:this.get("newPassword")})})}},Form:{save:rN.partial(cq,"password.expired.submit","login"),title:function(){let e=this.options.appState.get("isPwdExpiringSoon"),t=this.options.appState.get("passwordExpireDays");return e&&t>0?cq("password.expiring.title","login",[t]):e&&0===t?cq("password.expiring.today","login"):e?cq("password.expiring.soon","login"):this.settings.get("brandName")?cq("password.expired.title.specific","login",[this.settings.get("brandName")]):cq("password.expired.title.generic","login")},subtitle:function(){if(this.options.appState.get("isPwdExpiringSoon"))return this.settings.get("brandName")?cq("password.expiring.subtitle.specific","login",[this.settings.get("brandName")]):cq("password.expiring.subtitle.generic","login");let e=this.options.appState.get("policy");if(!(!e||this.settings.get("features.showPasswordRequirementsAsHtmlList")))return uh.getPasswordComplexityDescription(e)},parseErrorMessage:function(e){let t=this.options.appState.get("policy");return t&&this.settings.get("features.showPasswordRequirementsAsHtmlList")&&(e=uh.removeRequirementsFromError(e,t)),e},formChildren:function(){let e=[];return this.settings.get("features.showPasswordRequirementsAsHtmlList")&&e.push(c7.View({View:new hh({policy:this.options.appState.get("policy")})})),e=e.concat([c7.Input({"label-top":!0,label:cq("password.oldPassword.placeholder","login"),explain:r7.createInputExplain("password.oldPassword.tooltip","password.oldPassword.placeholder","login"),"explain-top":!0,name:"oldPassword",input:uv,type:"password"}),c7.Divider(),c7.Input({className:"margin-btm-5","label-top":!0,label:cq("password.newPassword.placeholder","login"),explain:r7.createInputExplain("password.newPassword.tooltip","password.newPassword.placeholder","login"),"explain-top":!0,name:"newPassword",input:uv,type:"password"}),c7.Input({"label-top":!0,label:cq("password.confirmPassword.placeholder","login"),explain:r7.createInputExplain("password.confirmPassword.tooltip","password.confirmPassword.placeholder","login"),"explain-top":!0,name:"confirmPassword",input:uv,type:"password"})])}},Footer:pr,initialize:function(){this.listenTo(this.form,"save",function(){let e={username:this.options.appState.get("userEmail"),password:this.model.get("newPassword")};this.settings.processCreds(e).then(rN.bind(this.model.save,this.model))})}});let{CheckBox:hm}=cJ;var hg=ui.extend({className:"password-reset",Model:{props:{newPassword:["string",!0],confirmPassword:["string",!0],revokeSessions:["boolean",!1]},validate:function(){return pQ.validatePasswordMatch(this)},save:function(){this.trigger("save");let e=this;return this.doTransaction(function(t){let n={newPassword:e.get("newPassword")};return e.settings.get("features.showSessionRevocation")&&(n.revokeSessions=e.get("revokeSessions")),t.resetPassword(n)})}},Form:{save:rN.partial(cq,"password.reset","login"),title:function(){return this.settings.get("brandName")?cq("password.reset.title.specific","login",[this.settings.get("brandName")]):cq("password.reset.title.generic","login")},subtitle:function(){let e=this.options.appState.get("policy");if(!(!e||this.settings.get("features.showPasswordRequirementsAsHtmlList")))return uh.getPasswordComplexityDescription(e)},parseErrorMessage:function(e){let t=this.options.appState.get("policy");return t&&this.settings.get("features.showPasswordRequirementsAsHtmlList")&&(e=uh.removeRequirementsFromError(e,t)),e},formChildren:function(){let e=[];return this.settings.get("features.showPasswordRequirementsAsHtmlList")&&e.push(c7.View({View:new hh({policy:this.options.appState.get("policy")})})),e=e.concat([c7.Input({className:"margin-btm-5",label:cq("password.newPassword.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("password.newPassword.tooltip","password.newPassword.placeholder","login"),"explain-top":!0,name:"newPassword",input:uv,type:"password",autoComplete:r7.getAutocompleteValue(this.settings,"new-password")}),c7.Input({label:cq("password.confirmPassword.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("password.confirmPassword.tooltip","password.confirmPassword.placeholder","login"),"explain-top":!0,name:"confirmPassword",input:uv,type:"password",autoComplete:r7.getAutocompleteValue(this.settings,"new-password")})]),this.settings.get("features.showSessionRevocation")&&(e=e.concat([c7.Input({placeholder:cq("password.reset.revokeSessions","login"),name:"revokeSessions",input:hm,type:"checkbox"})])),e}},initialize:function(){this.listenTo(this.form,"save",function(){let e={username:this.options.appState.get("userEmail"),password:this.model.get("newPassword")};this.settings.processCreds(e).then(rN.bind(this.model.save,this.model))}),this.settings.get("features.hideBackToSignInForReset")||this.addFooter(hl)}}),hy=ui.extend({className:"poll",Model:{save:function(){return this.trigger("cancelRequest"),this.appState.get("transaction").cancel().then(()=>{this.options.appState.trigger("navigate","")}).catch(()=>{this._stopCountDown()})}},Form:{autoSave:!0,hasSavingState:!1,title:function(){return this.title},className:"poll-controller",noCancelButton:!0,save:cq("oform.cancel","login"),modelEvents:{cancelRequest:"_stopCountDown"},formChildren:[c7.View({View:'<div > <div data-se="poll-waiting" class="hide okta-waiting-spinner"></div> </div>'})],_checkStatus:function(){this.transactionObject.poll().then(e=>{if(e.data&&"POLL"!==e.status){this.options.appState.set("transaction",e);return}this.$(".okta-waiting-spinner").hide();let t=Math.ceil(e.transaction.profile.refresh/1e3);this._startCountDown(t)}).catch(()=>{this._stopCountDown()})},_startCountDown:function(e){this.countDown=setInterval(()=>{this._updateTitle(e),0===e?(this._stopCountDown(),this.$(".okta-waiting-spinner").show(),this.checkStatusTimeout=setTimeout(()=>{this._checkStatus()},200)):e-=1},1e3)},_updateTitle:function(e){this.title=cq("polling.title","login",[e]),this.$el.find(".okta-form-title").text(this.title)},_stopCountDown:function(){this.countDown&&clearInterval(this.countDown),this.checkStatusTimeout&&clearInterval(this.checkStatusTimeout)},initialize:function(e){this.transactionObject=e.appState.get("transaction"),this.factorPollingIntervalSeconds=Math.ceil(this.transactionObject.transaction.profile.refresh/1e3),this._updateTitle(this.factorPollingIntervalSeconds),this._startCountDown(this.factorPollingIntervalSeconds)}},back:function(){},remove:function(){this.form._stopCountDown()}}),hv=ui.extend({className:"password-reset-email-sent",Model:function(){return{local:{userFullName:["string",!1,this.options.appState.get("userFullName")]}}},Form:{title:rN.partial(cq,"password.forgot.emailSent.title","login"),subtitle:function(){return cq("password.forgot.emailSent.de
8sc","login",[this.options.appState.get("username")])},noButtonBar:!0,attributes:{"data-se":"pwd-reset-email-sent"},formChildren:function(){let e=[c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="accessibility-text" role="status">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"alert")||(null!=t?a(t,"alert"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"alert",hash:{},data:o,loc:{start:{line:1,column:47},end:{line:1,column:56}}}):r)+"</span>"},useData:!0}),getTemplateData:function(){return{alert:cq("password.forgot.emailSent.title","login")}}})})];return this.settings.get("features.hideBackToSignInForReset")||e.push(c7.Button({title:cq("goback","login"),className:"button button-primary button-wide",attributes:{"data-se":"back-button"},click:function(){let e=this;return this.model.doTransaction(function(e){return e.cancel()}).then(function(){e.state.set("navigateDir",rL.DIRECTION_BACK),e.options.appState.trigger("navigate","")})}})),e}},initialize:function(e){this.settings.callGlobalSuccess(rL.FORGOT_PASSWORD_EMAIL_SENT,{username:e.appState.get("username")})}}),hb=ui.extend({className:"recovery-challenge",Model:{props:{passCode:["string",!0]},local:{ableToResend:"boolean"},resendCode:function(){return this.limitResending(),this.doTransaction(function(e){return e.resend()})},limitResending:function(){this.set({ableToResend:!1}),rN.delay(rN.bind(this.set,this),rL.API_RATE_LIMIT,{ableToResend:!0})},save:function(){return this.doTransaction(function(e){return e.verify({passCode:this.get("passCode")})})}},Form:{autoSave:!0,save:rN.partial(cq,"mfa.challenge.verify","login"),title:function(){return this.options.appState.get("factorType")===rL.RECOVERY_FACTOR_TYPE_CALL?cq("recoveryChallenge.call.title","login"):cq("recoveryChallenge.sms.title","login")},className:"recovery-challenge",initialize:function(){this.listenTo(this.model,"error",function(){this.clearErrors()})},formChildren:function(){return[c7.Button({title:cq("mfa.resendCode","login"),attributes:{"data-se":"resend-button"},className:"button sms-request-button margin-top-30",click:function(){this.model.resendCode()},initialize:function(){this.listenTo(this.model,"change:ableToResend",function(e,t){t?(this.options.title=cq("mfa.resendCode","login"),this.enable()):(this.options.title=cq("mfa.sent","login"),this.disable()),this.render()})}}),c7.Input({label:cq("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,className:"enroll-sms-phone",name:"passCode",input:uv,type:"text"})]}},events:{"click .send-email-link":function(e){e.preventDefault();let t=this.model.settings,n=this.options.appState.get("username"),i=this.options.appState.get("recoveryType");this.model.startTransaction(function(e){switch(i){case rL.RECOVERY_TYPE_PASSWORD:return e.forgotPassword({username:t.transformUsername(n,rL.FORGOT_PASSWORD),factorType:rL.RECOVERY_FACTOR_TYPE_EMAIL});case rL.RECOVERY_TYPE_UNLOCK:return e.unlockAccount({username:t.transformUsername(n,rL.UNLOCK_ACCOUNT),factorType:rL.RECOVERY_FACTOR_TYPE_EMAIL});default:return}}).catch(()=>{})}},initialize:function(){let e;switch(this.options.appState.get("recoveryType")){case rL.RECOVERY_TYPE_PASSWORD:e=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"password.forgot.code.notReceived"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:63}}}))},useData:!0});break;case rL.RECOVERY_TYPE_UNLOCK:e=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"account.unlock.code.notReceived"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:62}}}))},useData:!0}
8)}e&&this.settings.get("features.emailRecovery")&&this.add(cH.extend({className:"link send-email-link",tagName:"a",attributes:{href:"#","data-se":"send-email-link"},template:e})),this.settings.get("features.hideBackToSignInForReset")||this.addFooter(hl)},postRender:function(){this.model.limitResending()}}),hw=ui.extend({className:"recovery-loading",Model:{},Form:{noButtonBar:!0},initialize:function(e){let t=this,n=this.options.settings.get("features.multiOptionalFactorEnroll");return this.model.startTransaction(function(t){return t.verifyRecoveryToken({recoveryToken:e.token,...n&&{multiOptionalFactorEnroll:n}})}).catch(function(){t.options.appState.trigger("loading",!1),t.options.appState.trigger("removeLoading")})},preRender:function(){this.options.appState.trigger("loading",!0)},trapAuthResponse:function(){return this.options.appState.trigger("loading",!1),!1}}),hk=ui.extend({className:"recovery-question",Model:{props:{answer:["string",!0],showAnswer:"boolean"},save:function(){return this.doTransaction(function(e){return e.answer({answer:this.get("answer")})})}},Form:{autoSave:!0,save:function(){switch(this.options.appState.get("recoveryType")){case"PASSWORD":return cq("password.forgot.question.submit","login");case"UNLOCK":return cq("account.unlock.question.submit","login");default:return cq("mfa.challenge.verify","login")}},title:function(){switch(this.options.appState.get("recoveryType")){case"PASSWORD":return cq("password.forgot.question.title","login");case"UNLOCK":return cq("account.unlock.question.title","login");default:return""}},formChildren:function(){return[c7.Input({label:this.options.appState.get("recoveryQuestion"),placeholder:cq("mfa.challenge.answer.placeholder","login"),name:"answer",input:uv,type:"password",initialize:function(){this.listenTo(this.model,"change:showAnswer",function(){let e=this.model.get("showAnswer")?"text":"password";this.getInputs()[0].changeType(e)})}}),c7.Input({label:!1,"label-top":!0,placeholder:cq("mfa.challenge.answer.showAnswer","login"),className:"recovery-question-show margin-btm-0",name:"showAnswer",type:"checkbox"})]}},initialize:function(){this.settings.get("features.hideBackToSignInForReset")||this.addFooter(hl)}}),h_=ui.extend({className:"refresh-auth-state",Model:{},Form:{noButtonBar:!0},preRender:function(){let e=this.options.appState,t=this.options.token;this.model.startTransaction(function(n){return(e.trigger("loading",!0),t)?n.tx.introspect({stateToken:t}):n.tx.exists()?n.tx.resume():void e.trigger("navigate","")})},remove:function(){return this.options.appState.trigger("loading",!1),ui.prototype.remove.apply(this,arguments)}}),hS=ui.extend({events:{"click .back-btn":function(e){e.preventDefault(),this.back()}},back:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.trigger("navigate","")},className:"registration-complete",Model:function(){},initialize:function(){this.settings.callGlobalSuccess(rL.ACTIVATION_EMAIL_SENT,{username:this.options.appState.get("username")})},Form:{noButtonBar:!0,formChildren:function(){return[c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="container"><span class="title-icon icon icon-16 confirm-16-green"></span><h2 class="title">'+c(typeof(r=null!=(r=u(n,"title")||(null!=t?u(t,"title"):t))?r:s)===l?r.call(a,{name:"title",hash:{},data:o,loc:{start:{line:1,column:103},end:{line:1,column:112}}}):r)+'</h2><div class="desc">'+c(typeof(r=null!=(r=u(n,"desc")||(null!=t?u(t,"desc"):t))?r:s)===l?r.call(a,{name:"desc",hash:{},data:o,loc:{start:{line:1,column:135},end:{line:1,column:143}}}):r)+'</div></div><a href="#" class="back-btn" data-se="back-link">'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"goback"},data:o,loc:{start:{line:1,column:204},end:{line:1,column:241}}}))+"</a>"},useData:!0}),getTemplateData:function(){return{desc:cq("registration.complete.confirm.text","login"),title:cq("registration.complete.title","login")}}})})]}}}),hE=c1.extend({constructor:function(e){this.settings=e&&e.settings,su.apply(this,arguments)},loginWithActivationToken:function(e){return this.startTransaction(function(t){return t.signInWithCredentials({token:e})})}});let{BaseSchema:hT,SchemaProperty:hx}=cQ,hO=hx.Collection.extend({createModelProperties:function(){let e=hx.Collection.prototype.createModelProperties.apply(this);return rN.each(e,function(e,t){e.required=!!this.get(t).get("required")},this),e}});var hC=hT.Model.extend({expand:["schema"],constructor:function(){this.properties=new hO,sd.apply(this,arguments)},parse:function(e){let t=e=>{let t=e.schema.required;rN.isArray(t)&&rN.each(t,function(e){let t=this.properties.get(e);t&&t.set("required",!0)},this);
8let n=e.schema.fieldOrder;return rN.isArray(n)&&(rN.each(n,function(e,t){let n=this.properties.get(e);n&&n.set("sortOrder",t)},this),this.properties.comparator="sortOrder",this.properties.sort()),this.properties.defaultPolicyId=e.policyId,e},n=this;this.settings.parseRegistrationSchema(e,function(e){e.profileSchema&&(e.schema=e.profileSchema,hT.Model.prototype.parse.apply(n,[e]),e=t(e)),n.trigger("parseComplete",{properties:n.properties})},function(e){n.trigger("parseComplete",{properties:n.properties,error:e})})}});let hA=cH.extend({index:"",message:"",class:function(){},className:function(){return"subschema-unsatisfied subschema-"+this.index},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="default-schema"><span class="icon icon-16"></span>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"message")||(null!=t?a(t,"message"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"message",hash:{},data:o,loc:{start:{line:1,column:60},end:{line:1,column:71}}}):r)+"</p>"},useData:!0}),getTemplateData:function(){return{message:this.message}}});var hP=cH.extend({className:"subschema",children:function(){return this.subSchemas.map(function(e,t){let n=e.get("description");return hA.extend({index:t,message:n})})}});let hN=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"goback"},data:o,loc:{start:{line:1,column:50},end:{line:1,column:87}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .help":function(e){e.preventDefault(),this.back()}},back:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.trigger("navigate","")}});var hR=c8.extend({className:"registration",initialize:function(){let e=new(hC.extend({settings:this.options.settings,url:this.options.settings.get("baseUrl")+"/api/v1/registration/form"}));this.state.set("schema",e)},getRegistrationApiUrl:function(){let e=this.settings.get("defaultPolicyId"),t=this.options.settings.get("policyId");return e?this.getRegistrationPolicyApi(e):this.getRegistrationPolicyApi(t)},getRegistrationPolicyApi:function(e){return this.options.settings.get("baseUrl")+"/api/v1/registration/"+e},doPostSubmit:function(){if(this.model.get("activationToken")){let e=this;e.settings.callGlobalSuccess(rL.REGISTRATION_COMPLETE,{activationToken:this.model.get("activationToken")}),new hE({settings:e.model.appState.settings}).loginWithActivationToken(this.model.get("activationToken")).then(function(t){e.model.trigger("setTransaction",t)})}else this.model.appState.set("username",this.model.get("email")),this.model.appState.trigger("navigate","signin/register-complete")},registerUser:function(e){let t=this;Object.keys(e).forEach(t=>(rN.isNull(e[t])||rN.isUndefined(e[t])||""===e[t])&&delete e[t]),this.model.attributes=e,a2.Model.prototype.save.call(this.model).then(function(){t.model.trigger("startSaving");let e=t.model.get("activationToken")||t.model.get("email");t.settings.postRegistrationSubmit(e,function(){t.doPostSubmit()},function(e){t.showErrors(e)})}).fail(e=>{let t=e.responseJSON;if(t&&t.errorCauses.length){let{errorCode:e,errorCauses:n}=t,{errorSummary:i,reason:o,location:r}=n[0];"E0000001"===e&&"UNIQUE_CONSTRAINT"===o&&this.renderIsNotUniqueError(t),this.renderLegacyLocationErrorIfNeeded(r,i),r7.triggerAfterError(this,new rV(i))}})},renderIsNotUniqueError:function(e){let{location:t}=e.errorCauses[0],n=cq("registration.error.userName.notUniqueWithinOrg","login",[t]);this.$el.find(".okta-form-infobox-error p").text(n)},renderLegacyLocationErrorIfNeeded:function(e,t){e&&/^data\.userProfile.*/.test(e)&&this.$el.find(".okta-form-infobox-error p").text(t)},createRegistrationModel:function(e){let t=this;return new(su.extend({url:t.getRegistrationApiUrl()+"/register",settings:this.settings,appState:this.options.appState,props:e,local:{activationToken:"string"},toJSON:function(){let e=su.prototype.toJSON.apply(this,arguments);return{userProfile:e,relayState:this.settings.get("relayState")}},parse:function(e){return this.set("activationToken",e.activationToken),delete e.activationToken,e},save:function(){this.settings.preRegistrationSubmit(this.attributes,function(e){t.registerUser(e)},function(e){t.showErrors(e)})}}))},showErrors:function(e,t){"parseRegistrationSchema"===e.callback&&e.errorCauses&&(e.errorSummary=rN.clone(e.errorCauses[0].errorSummary),delete e.errorCauses),this.model.trigger("error",this.model,{responseJSON:e});let n=e.callback?e.callback+":"+e.errorSummary:e.errorSummary;r7.triggerAfterError(this,new rV(n)),t&&this.$el.find(".button-primary").hide()},fetchInitialData:function(){let e=this;return e.state.get("schema").on("parseComplete",function(t){let n=t.properties.createModelProperties();e.settings.set("defaultPolicyId",t.properties.defaultPolicyId),e.model=e.createRegistrationModel(n);let i=new(cB.extend({layout:"o-form-theme",autoSave:!0,noCancelButton:!0,title:cq("registration.form.title","login"),save:cq("registration.form.submit","login"),modelEvents:{invalid:"modifyErrors"},hasSavingState:!0,customSavingState:{start:"startSaving",stop:"stopSaving"},modifyErrors:function(e,t){for(let n in t)"model.validation.field.string.minLength"===t[n]?t[n]=cq("registration.model.validation.field.string.too.short","login",[e.props[n].minLength]):"model.validation.field.string.maxLength"===t[n]&&(t[n]=cq("registration.model.validation.field.string.too.long","login",[e.props[n].maxLength+1]))}}))(e.toJSON());if(e.add(i),e.footer=new e.Footer(e.toJSON()),e.add(e.footer),e.addListeners(),t.error)e.showErrors(t.error,!0);else{t.properties.each(function(e){let t=ds.createInputOptions(e),n=e.get("subSchemas"),o=e.get("name");i.addInput(t),"password"===o&&n&&i.add(hP.extend({id:"subschemas-"+o,subSc
8hemas:n}))});let e=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="required-fields-label">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"label")||(null!=t?a(t,"label"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:o,loc:{start:{line:1,column:36},end:{line:1,column:45}}}):r)+"</span>"},useData:!0})({label:cq("registration.required.fields.label","login")});i.add(e)}}),cZ()(this.state.get("schema").fetch())},Footer:hN});let hI=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-error infobox infobox-error" role="alert"><span class="icon error-16"></span><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"account.unlock.noFactorsEnabled"},data:o,loc:{start:{line:1,column:110},end:{line:1,column:172}}}))+"</p></div>"},useData:!0})}),hD=cH.extend({template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link goto js-contact-support">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"mfa.noAccessToEmail"},data:o,loc:{start:{line:1,column:173},end:{line:1,column:223}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"goback"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:95}}}))+"</a>"+(null!=(r=s(n,"if").call(a,null!=t?s(t,"helpSupportNumber"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:99},end:{line:1,column:234}}}))?r:"")},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()},"click .js-contact-support":function(e){e.preventDefault(),this.state.trigger("contactSupport"),this.$(".js-contact-support").hide()}},getTemplateData:function(){return this.settings.pick("helpSupportNumber")},back:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.trigger("navigate","")}});var hL=ui.extend({className:"account-unlock",Model:{props:{username:["string",!0],factorType:["string",!0]},validate:function(){return pQ.validateUsername(this)},save:function(){let e=this;return this.startTransaction(function(t){return t.unlockAccount({username:e.settings.transformUsername(e.get("username"),rL.UNLOCK_ACCOUNT),factorType:e.get("factorType")})}).catch(function(){})}},Form:{noButtonBar:!0,title:rN.partial(cq,"account.unlock.title","login"),formChildren:function(){let e=this.settings.get("features.smsRecovery"),t=this.settings.get("features.callRecovery"),n=this.settings.get("features.emailRecovery"),i=[];return e||t||n?(i.push(c7.Input({label:cq("account.unlock.email.or.username.placeholder","login"),"label-top":!0,explain:r7.createInputExplain("account.unlock.email.or.username.tooltip","account.unlock.email.or.username.placeholder","login"),"explain-top":!0,name:"username",input:uv,inputId:"account-recovery-username",type:"text",inlineValidation:!1})),(e||t)&&i.push(c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="mobile-recovery-hint">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"mobileFactors",bundle:"login",code:"recovery.mobile.hint"},data:o,loc:{start:{line:1,column:32},end:{line:1,column:109}}}))+"</p>"},useData:!0}
8),getTemplateData:function(){return{mobileFactors:e&&t?cq("recovery.smsOrCall"):t?cq("recovery.call"):cq("recovery.sms")}}})})),e&&(this.$el.addClass("forgot-password-sms-enabled"),i.push(this.createRecoveryFactorButton("sms-button","account.unlock.sendText",rL.RECOVERY_FACTOR_TYPE_SMS,this)),this.setDefaultFactorType(rL.RECOVERY_FACTOR_TYPE_SMS)),t&&(this.$el.addClass("forgot-password-call-enabled"),i.push(this.createRecoveryFactorButton("call-button","account.unlock.voiceCall",rL.RECOVERY_FACTOR_TYPE_CALL,this)),this.setDefaultFactorType(rL.RECOVERY_FACTOR_TYPE_CALL)),n&&(this.$el.addClass("forgot-password-email-enabled"),i.push(this.createRecoveryFactorButton("email-button","account.unlock.sendEmail",rL.RECOVERY_FACTOR_TYPE_EMAIL,this)),this.setDefaultFactorType(rL.RECOVERY_FACTOR_TYPE_EMAIL))):this.add(hI,".o-form-error-container"),i},initialize:function(){this.listenTo(this,"save",function(){this.options.appState.set("username",this.model.get("username")),this.model.save()}),this.listenTo(this.state,"contactSupport",function(){this.add(dS,".o-form-error-container")})},setDefaultFactorType:function(e){rN.isEmpty(this.model.get("factorType"))&&this.model.set("factorType",e)},createRecoveryFactorButton:function(e,t,n,i){return c7.Button({attributes:{"data-se":e},className:"button button-primary button-wide "+e,title:cq(t,"login"),click:function(){i.clearErrors(),this.model.isValid()&&(this.model.set("factorType",n),i.trigger("save",this.model))}})}},Footer:hD}),hM=ui.extend({className:"account-unlock-email-sent",Model:function(){return{local:{userFullName:["string",!1,this.options.appState.get("userFullName")]}}},Form:{title:rN.partial(cq,"account.unlock.emailSent.title","login"),subtitle:function(){return cq("account.unlock.emailSent.desc","login",[this.options.appState.get("username")])},noButtonBar:!0,attributes:{"data-se":"unlock-email-sent"},formChildren:function(){return[c7.Button({title:cq("goback","login"),className:"button button-primary button-wide",attributes:{"data-se":"back-button"},click:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.trigger("navigate","")}})]}},initialize:function(e){this.settings.callGlobalSuccess(rL.UNLOCK_ACCOUNT_EMAIL_SENT,{username:e.appState.get("username")})}});let{Util:hU}=cz;var hF=ui.extend({className:"verify-custom-factor custom-factor-form",Model:{props:{rememberDevice:"boolean"},initialize:function(){let e=uh.getRememberDeviceValue(this.appState);this.set("rememberDevice",e),this.settings.get("features.skipIdpFactorVerificationBtn")&&!this.appState.get("lastFailedChallengeFactorData")&&(this.set("provider","CUSTOM"),this.set("factorType","claims_provider"),this.save())},save:function(){let e=!!this.get("rememberDevice");return this.manageTransaction((t,n)=>rN.findWhere(t.factors,{provider:this.get("provider"),factorType:this.get("factorType")}).verify({rememberDevice:e}).then(e=>{n(e);let t=this.appState.get("verifyCustomFactorRedirectUrl");null!==t&&hU.redirect(t)}).catch(function(e){throw e}))}},Form:function(){let e=this.options.appState.get("factors").findWhere({provider:this.options.provider,factorType:this.options.factorType}).get("vendorName"),t=cq("mfa.challenge.verify","login"),n=this.options.appState.get("lastFailedChallengeFactorData"),i=cq("verify.customFactor.subtitle","login",[e]);return this.settings.get("features.skipIdpFactorVerificationBtn")&&!n&&(i=cq("verify.customFactor.subtitle.redirect","login",[e]),this.listenTo(this.model,"error",()=>{i=cq("verify.customFactor.subtitle","login",[e]),this.$(".o-form-explain").text(i)})),{autoSave:!0,title:e,save:t,subtitle:i,attributes:{"data-se":"factor-custom"},initialize:function(){this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})},formChildren:function(){let e=[],t=this.options.appState.get("lastFailedChallengeFactorData");return this.settings.get("features.skipIdpFactorVerificationBtn")&&!t&&e.push(c7.View({View:'<div data-se="custom-factor-waiting" class="okta-waiting-spinner"></div>'})),t&&e.push(c7.View({View:new pk({message:t.errorMessage})},{selector:".o-form-error-container"})),e}}},postRender:function(){this.settings.get("features.skipIdpFactorVerificationBtn")&&!this.options.appState.get("lastFailedChallengeFactorData")&&(this.$(".o-form-button-bar").hide(),this.$(".okta-waiting-spinner").show())},trapAuthResponse:function(){if(this.options.appState.get("isMfaChallenge"))return!0},back:function(){},initialize:function(){this.model.set("provider",this.options.provider),this.model.set("factorType",this.options.factorType),this.settings.get("features.skipIdpFactorVerificationBtn")&&this.listenTo(this.model,"error",()=>{this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()}),this.addFooter(hu)}}),hj=ui.extend({className:"mfa-verify-duo duo-form",Model:{props:{host:"string",signature:"string",postAction:"string",factorId:"string",stateToken:"string",rememberDevice:"boolean"},initialize:function(){let e=uh.getRememberDeviceValue(this.appState);this.set("rememberDevice",e)},getInitOptions:function(){let e=!!this.get("rememberDevice");return this.doTransaction(function(t){return rN.findWhere(t.factors,{provider:"DUO",factorType:"web"}).verify({rememberDevice:e}).catch(function(e){throw e})},!0)},verify:function(e){let t=this.get("postAction"),n=this.get("factorId"),i=this,o={id:n,stateToken:this.get("stateToken"),sig_response:e},r=this.get("rememberDevice");return cZ()(sh.post(t,o)).then(function(){return i.doTransaction(function(e){let t;return r&&(t={rememberDevice:r}),e.poll(t)})}).catch(function(e){i.trigger("error",i,e.xhr)})}},Form:{autoSave:!0,noButtonBar:!0,title:rN.partial(cq,"factor.duo"),attributes:{"data-se":"factor-duo"},postRender:function(){this.add('<iframe frameborder="0" title="'+this.title()+'"></iframe>'),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"}),pW.init({host:this.model.get("host"),sig_request:this.model.get("signature"),iframe:this.$("iframe").get(0),post_action:rN.bind(this.model.verify,this.model)})}},fetchInitialData:function(){let e=this;return this.model.getInitOptions().then(function(t){let n=t.data;if(!n._embedded||!n._embedded.factor||!n._embedded.factor._embedded||!n._embedded.factor._embedded.verification)throw Error("Response does not have duo verification options");let i=n._embedded.factor._embedded.verification;e.model.set({host:i.host,signature:i.signature,postAction:i._links.complete.href,factorId:n._embedded.factor.id,stateToken:n.stateToken})})},trapAuthResponse:function(){if(this.options.appState.get("isMfaChallenge"))return!0},back:function(){},Footer:hu});let{Util:hV}=cz;var hB=ui.extend({className:"piv-cac-card",Model:{save:async function(){this.trigger("request");let e=this.settings.get("piv"),t={fromURI:this.settings.get("relayState"),isCustomDomain:e.isCustomDomain,customDomain:e.customDomain};try{await this.getCert(e.certAuthUrl);let n=await this.postCert(e.certAuthUrl,t);hV.redirect(n.redirectUrl)}catch(e){rN.isEmpty(e.responseJSON)&&!e.responseText&&(e.responseJSON={errorSummary:cq("piv.cac.error","login")}),this.trigger("error",this,e)}},getCert:function(e){return sh.get({url:e,xhrFields:{withCredentials:!0},beforeSend:function(){}})},postCert:function(e,t){return sh.post({url:e,xhrFields:{withCredentials:!0},data:JSON.stringify(t),contentType:"text/plain",beforeSend:function(){}})}},Form:{autoSave:!0,hasSavingState:!1,title:rN.partial(cq,"piv.cac.title","login"),className:"piv-cac-card",
8noCancelButton:!0,save:rN.partial(cq,"retry","login"),modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:[c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="piv-verify-text"><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"piv.cac.card.insert"},data:o,loc:{start:{line:1,column:32},end:{line:1,column:82}}}))+'</p><div data-se="piv-waiting" class="okta-waiting-spinner"></div></div>'},useData:!0})})})],_startEnrollment:function(){this.$(".okta-waiting-spinner").show(),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()},postRender:function(){rN.defer(()=>{this.model.save()})}},back:function(){},Footer:dc}),hq=ui.extend({className:"mfa-verify verify-u2f",Model:{props:{rememberDevice:"boolean"},initialize:function(){let e=uh.getRememberDeviceValue(this.appState);this.set("rememberDevice",e)},save:function(){return this.trigger("request"),this.doTransaction(function(e){let t;t=e.factorTypes?rN.findWhere(e.factorTypes,{factorType:"u2f"}):rN.findWhere(e.factors,{factorType:"u2f",provider:"FIDO"});let n=this;return t.verify().then(function(e){let i,o,r;if(e.factors){let t=e.factors;o=t[0].profile.appId,r=e.challenge.nonce,i=function(e){let t=[];return rN.each(e,function(e){t.push({version:e.profile.version,keyHandle:e.profile.credentialId})}),t}(t)}else{let t=e.factor;o=t.profile.appId,r=t.challenge.nonce,i=[{version:p4.getU2fVersion(),keyHandle:t.profile.credentialId}]}n.trigger("request");let a=cZ().defer();return u2f.sign(o,r,i,function(e){if(n.trigger("errors:clear"),e.errorCode&&0!==e.errorCode){let t=1===n.options.appState.get("factors").length;a.reject(new rq({xhr:{responseJSON:{errorSummary:p4.getU2fVerifyErrorMessageByCode(e.errorCode,t)}}}))}else{let i=!!n.get("rememberDevice");return t.verify({clientData:e.clientData,signatureData:e.signatureData,rememberDevice:i}).then(a.resolve)}}),a.promise})}).catch(()=>{})}},Form:{autoSave:!0,hasSavingState:!1,title:rN.partial(cq,"factor.u2f","login"),className:"verify-u2f-form",noCancelButton:!0,save:rN.partial(cq,"verify.u2f.retry","login"),noButtonBar:function(){return!p4.isU2fAvailable()},modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:function(){let e=[];
8if(p4.isU2fAvailable())e.push(c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="u2f-verify-text"><p>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"verify.u2f.instructions"},data:o,loc:{start:{line:1,column:32},end:{line:1,column:86}}}))+"</p><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"verify.u2f.instructionsBluetooth"},data:o,loc:{start:{line:1,column:93},end:{line:1,column:156}}}))+'</p><div data-se="u2f-waiting" class="okta-waiting-spinner"></div></div>'},useData:!0})})}));else{let t="u2f.error.factorNotSupported";1===this.options.appState.get("factors").length&&(t="u2f.error.factorNotSupported.oneFactor"),e.push(c7.View({View:new pk({message:cq(t,"login")})},{selector:".o-form-error-container"}))}return this.options.appState.get("allowRememberDevice")&&e.push(c7.Input({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})),e},postRender:function(){rN.defer(()=>{p4.isU2fAvailable()?this.model.save():this.$('[data-se="u2f-waiting"]').addClass("hide")})},_startEnrollment:function(){this.$(".okta-waiting-spinner").removeClass("hide"),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").addClass("hide"),this.$(".o-form-button-bar").show()}},back:function(){},Footer:hu});function h$(e){let t=[];return rN.each(e,function(e){t.push({type:"public-key",id:dp.strToBin(e.profile.credentialId)})}),t}var hH=ui.extend({className:"mfa-verify verify-webauthn",Model:{props:{rememberDevice:"boolean"},initialize:function(){let e=uh.getRememberDeviceValue(this.appState);this.set("rememberDevice",e),this.appState.on("factorSwitched signOut",()=>{this.webauthnAbortController&&(this.webauthnAbortController.abort(),this.webauthnAbortController=null)})},save:function(){return this.trigger("request"),this.doTransaction(function(e){let t;t=e.factorTypes?rN.findWhere(e.factorTypes,{factorType:"webauthn"}):rN.findWhere(e.factors,{factorType:"webauthn",provider:"FIDO"});let n=this;return t.verify().then(function(e){let i,o;if(e.factors){let t=e.factors;o=e.challenge,i=h$(t)}else{let t=e.factor;o=t.challenge,i=h$([t])}n.trigger("request");let r=rN.extend({},o,{allowCredentials:i,challenge:dp.strToBin(o.challenge)});return"undefined"!=typeof AbortController&&(n.webauthnAbortController=new AbortController),new(cZ())(navigator.credentials.get({publicKey:r,signal:n.webauthnAbortController&&n.webauthnAbortController.signal})).then(function(e){let i=!!n.get("rememberDevice");return t.verify({clientData:dp.binToStr(e.response.clientDataJSON),authenticatorData:dp.binToStr(e.response.authenticatorData),signatureData:dp.binToStr(e.response.signature),rememberDevice:i})}).catch(function(e){if(n.trigger("errors:clear"),n.webauthnAbortController)throw new r$({xhr:{responseJSON:{errorSummary:e.message}}});throw new rH}).finally(function(){n.webauthnAbortController=null})})}).catch(()=>{})}},Form:{autoSave:!0,hasSavingState:!1,title:rN.partial(cq,"factor.webauthn.biometric","login"),className:"verify-webauthn-form",noCancelButton:!0,save:rN.partial(cq,"mfa.challenge.verify","login"),noButtonBar:function(){return!dd.isNewApiAvailable()},modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:function(){let e=[];
8if(dd.isNewApiAvailable())e.push(c7.View({View:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="webauthn-verify-text"><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"verify.webauthn.biometric.instructions"},data:o,loc:{start:{line:1,column:37},end:{line:1,column:106}}}))+'</p><div data-se="webauthn-waiting" class="okta-waiting-spinner"></div></div>'},useData:!0})})}));else{let t="webauthn.biometric.error.factorNotSupported";1===this.options.appState.get("factors").length&&(t="webauthn.biometric.error.factorNotSupported.oneFactor"),e.push(c7.View({View:new pk({message:cq(t,"login")})},{selector:".o-form-error-container"}))}return this.options.appState.get("allowRememberDevice")&&e.push(c7.Input({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})),e},_startEnrollment:function(){this.$(".okta-waiting-spinner").show(),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").hide(),this.$('.o-form-button-bar [type="submit"]')[0].value=cq("verify.u2f.retry","login"),this.$(".o-form-button-bar").show()}},postRender:function(){rN.defer(()=>{dd.isNewApiAvailable()&&!rK.isSafari()&&this.model.save()})},back:function(){},Footer:hu}),hW=ui.extend({className:"mfa-verify verify-windows-hello",Model:{local:{__autoTriggered__:"boolean"},save:function(){if(!dd.isAvailable())return;this.trigger("request");let e=this;return this.doTransaction(function(t){let n=rN.findWhere(t.factors,{factorType:"webauthn",provider:"FIDO"});return n.verify().then(function(i){let o=i.factor;return dd.getAssertion(o.challenge.nonce,[{id:o.profile.credentialId}]).then(function(e){return n.verify({authenticatorData:e.authenticatorData,clientData:e.clientData,signatureData:e.signature})}).then(function(t){return e.trigger("sync"),e.trigger("signIn"),t}).catch(function(n){switch(n.message){case"AbortError":case"NotFoundError":case"NotSupportedError":return e.trigger("abort",n.message),t}throw n})})})}},Form:{autoSave:!0,hasSavingState:!1,title:rN.partial(cq,"factor.windowsHello","login"),subtitle:function(){return dd.isAvailable()?cq("verify.windowsHello.subtitle","login"):""},save:rN.partial(cq,"verify.windowsHello.save","login"),customSavingState:{stop:"abort"},modelEvents:function(){return dd.isAvailable()?{request:"_startEnrollment",error:"_stopEnrollment",abort:"_stopEnrollment",signIn:"_successEnrollment"}:{}},noButtonBar:function(){return!dd.isAvailable()},formChildren:function(){let e=[];return dd.isAvailable()||e.push(c7.View({View:new pk({message:cq("enroll.windowsHello.error.notWindows","login")})},{selector:".o-form-error-container"})),e.push(c7.View({View:new df({model:this.model,visible:!1})})),e},postRender:function(){1!==this.options.appState.get("factors").length||this.model.get("__autoTriggered__")||(this.model.set("__autoTriggered__",!0),this.model.save())},_startEnrollment:function(){this.subtitle=cq("verify.windowsHello.subtitle.loading","login"),this.model.trigger("spinner:show"),this._resetErrorMessage(),this.render(),this.$(".o-form-button-bar").addClass("hide")},_stopEnrollment:function(e){let t;switch(this.subtitle=cq("verify.windowsHello.subtitle","login"),this.model.trigger("spinner:hide"),this.$(".o-form-button-bar").removeClass("hide"),e){case"NotFoundError":t=this.options.appState.get("factors").length>1?cq("verify.windowsHello.error.notFound.selectAnother","login"):cq("verify.windowsHello.error.notFound","login");break;case"NotSupportedError":t=cq("enroll.windowsHello.error.notConfiguredHtml","login")}if(this._resetErrorMessage(),t){let e=new pk({message:t});this.$(".o-form-error-container").addClass("o-form-has-errors"),this.add(e,{selector:".o-form-error-container"}),this._errorMessageView=this.last()}this.render()},_successEnrollment:function(){this.subtitle=this.settings.get("brandName")?cq("verify.windowsHello.subtitle.signingIn.specific","login",[this.settings.get("brandName")]):cq("verify.windowsHello.subtitle.signingIn.generic","login"),this.render(),this.$(".o-form-button-bar").addClass("hide")},_resetErrorMessage:function(){this._errorMessageView&&this._errorMessageView.remove(),this._errorMessageView=void 0,this.clearErrors()}},back:function(){},Footer:hu}),hz=cH.extend({template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"goback"},data:o,loc:{start:{line:1,column:66},end:{line:1,column:103}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"showLink"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:114}}}))?r:""},useData:!0}
8),className:"auth-footer",events:{"click .help":function(e){e.preventDefault(),this.back()}},back:function(){this.state.set("navigateDir",rL.DIRECTION_BACK),this.options.appState.trigger("navigate","")},getTemplateData:function(){let e=this.model.appState.get("flashError");return{showLink:e.is&&e.is("terminal")}}}),hK=ui.extend({className:"error-state",Model:{},Form:{noButtonBar:!0},Footer:hz});let hG="/img/security/default.png",hY="/img/security/unknown-device.png";var hJ=su.extend({initialize:function(){if(this.settings.get("features.securityImage")){let e=this;this.listenTo(this,"change:username",function(t,n){(function(e,t,n){if(rN.isEmpty(t)||rN.isUndefined(t))return cZ()({securityImage:hG,securityImageDescription:""});let i={url:function(e,t){let n=encodeURIComponent(t);return`${e}/login/getimage?username=${n}`}(e,t),dataType:"json"};return n&&(i.headers={"X-Device-Fingerprint":n}),cZ()(sh.ajax(i)).then(function(e){return"/img/security/unknown.png"===e.pwdImg?{securityImage:hY,securityImageDescription:""}:{securityImage:e.pwdImg,securityImageDescription:e.imageDescription||""}})})(this.get("baseUrl"),n,this.get("deviceFingerprint")).then(function(e){t.set("securityImage",e.securityImage),t.set("securityImageDescription",e.securityImageDescription),t.unset("deviceFingerprint")}).fail(function(t){rK.corsIsNotEnabled(t)?e.settings.callGlobalError(new rF(cq("error.enabled.cors"))):e.settings.callGlobalError(Error(`Failed to fetch security image: ${t.statusText}`))}).done()})}},local:{baseUrl:"string",lastAuthResponse:["object",!0,{}],transaction:"object",transactionError:"object",username:"string",factors:"object",policy:"object",securityImage:["string",!0,hG],securityImageDescription:["string",!0,""],userCountryCode:"string",userPhoneNumber:"string",factorActivationType:"string",flashError:"object",beaconType:"string",deviceFingerprint:"string",typingPattern:"string",languageCode:["string",!0],disableUsername:["boolean",!1,!1],trapMfaRequiredResponse:["boolean",!1,!1],lastFailedChallengeFactorData:["object",!1]},setAuthResponse:function(e){if(e._embedded&&e._embedded.policy&&this.set("policy",e._embedded.policy),e._embedded&&e._embedded.factors){let t=e._embedded.factors;e._embedded.factorTypes&&(t=function(e,t){let n=[],i=[];return rN.each(t,function(t){let o=t.factorType;if(!rN.contains(n,o)){let r=rN.findWhere(e,{factorType:o});r?(n.push(o),i.push(r)):i.push(t)}}),i}(e._embedded.factorTypes,t));let n=rN.map(t,e=>(e.settings=this.settings,e.appState=this,e));this.set("factors",new pb.Collection(n,{parse:!0}))}this.set("lastAuthResponse",e)},clearLastAuthResponse:function(){this.set("lastAuthResponse",{})},setLastFailedChallengeFactorData:function(){this.set("lastFailedChallengeFactorData",{factor:this.get("factor"),errorMessage:this.get("factorResultErrorMessage")})},clearLastFailedChallengeFactorData:function(){this.unset("lastFailedChallengeFactorData")},getUser:function(){return this.get("user")},derived:{isSuccessResponse:{deps:["lastAuthResponse"],fn:function(e){return"SUCCESS"===e.status}},isMfaRequired:{deps:["lastAuthResponse"],fn:function(e){return"MFA_REQUIRED"===e.status||"FACTOR_REQUIRED"===e.status}},isProfileRequired:{deps:["lastAuthResponse"],fn:function(e){return"PROFILE_REQUIRED"===e.status}},isMfaEnroll:{deps:["lastAuthResponse"],fn:function(e){return"MFA_ENROLL"===e.status||"FACTOR_ENROLL"===e.status}},isMfaChallenge:{deps:["lastAuthResponse"],fn:function(e){return"MFA_CHALLENGE"===e.status||"FACTOR_CHALLENGE"===e.status}},isSMSPasswordRecovery:{deps:["lastAuthResponse"],fn:function({status:e,factorType:t,recoveryType:n}){return"RECOVERY_CHALLENGE"===e&&(null==t?void 0:t.toLowerCase())==="sms"&&(null==n?void 0:n.toLowerCase())==="password"}},isUnauthenticated:{deps:["lastAuthResponse"],fn:function(e){return"UNAUTHENTICATED"===e.status}},isMfaRejected:{deps:["lastAuthResponse"],fn:function(e){return"REJECTED"===e.factorResult}},isMfaTimeout:{deps:["lastAuthResponse"],fn:function(e){return"TIMEOUT"===e.factorResult}},isMfaEnrollActivate:{deps:["lastAuthResponse"],fn:function(e){return"MFA_ENROLL_ACTIVATE"===e.status||"FACTOR_ENROLL_ACTIVATE"===e.status}},isWaitingForActivation:{deps:["isMfaEnrollActivate","lastAuthResponse"],fn:function(e,t){return e&&"WAITING"===t.factorResult}},isWaitingForNumberChallenge:{deps:["lastAuthResponse","isMfaChallenge"],fn:function(e,t){return!!t&&!!e&&"WAITING"===e.factorResult&&!!e._embedded&&!!e._embedded.factor&&!!e._embedded.factor._embedded&&!!e._embedded.factor._embedded.challenge}},hasMultipleFactorsAvailable:{deps:["factors","isMfaRequired","isMfaChallenge","isUnauthenticated"],fn:function(e,t,n,i){return(!!t||!!n||!!i)&&e&&e.length>1}},promptForFactorInUnauthenticated:{deps:["lastAuthResponse","factors"],fn:function(e,t){return"UNAUTHENTICATED"===e.status&&t&&t.length>0}},userId:{deps:["lastAuthResponse"],fn:function(e){return e._embedded&&e._embedded.user?e._embedded.user.id:null}},isIdxStateToken:{deps:["lastAuthResponse"],fn:function(e){return e&&rN.isString(e.stateToken)&&e.stateToken.startsWith("01")}},isPwdExpiringSoon:{deps:["lastAuthResponse"],fn:function(e){return"PASSWORD_WARN"===e.status}},passwordExpireDays:{deps:["lastAuthResponse"],fn:function(e){return e._embedded&&e._embedded.policy&&e._embedded.policy.expiration?e._embedded.policy.expiration.passwordExpireDays:null}},isPwdManagedByOkta:{deps:["lastAuthResponse"],fn:function(e){return!e._links||!e._links.next||!e._links.next.title}},passwordExpiredWebsiteName:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.next&&e._links.next.title?e._links.next.title:null}},passwordExpiredLinkUrl:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.next&&e._links.next.title&&e._links.next.href?e._links.next.href:null}},recoveryType:{deps:["lastAuthResponse"],fn:function(e){return e.recoveryType}},factorType:{deps:["lastAuthResponse"],fn:function(e){return e.factorType}},factor:{deps:["lastAuthResponse"],fn:function(e){return e._embedded&&e._embedded.factor?e._embedded.factor:null}},activatedFactorId:{deps:["factor"],fn:function(e){return e?e.id:null}},activatedFactorType:{deps:["factor"],fn:function(e){return e?e.factorType:null}},activatedFactorProvider:{deps:["factor"],fn:function(e){return e?e.provider:null}},qrcode:{deps:["factor"],fn:function(e){try{return e._embedded.activation._links.qrcode.href}catch(e){return null}}},activationSendLinks:{deps:["factor"],fn:function(e){let t;try{t=e._embedded.activation._links.send}catch(e){t=[]}return t}},textActivationLinkUrl:{deps:["activationSendLinks"],fn:function(e){let t=rN.findWhere(e,{name:"sms"});return t?t.href:null}},emailActivationLinkUrl:{deps:["activationSendLinks"],fn:function(e){let t=rN.findWhere(e,{name:"email"});return t?t.href:null}},sharedSecret:{deps:["factor"],fn:function(e){try{return e._embedded.activation.sharedSecret}catch(e){return null}}},duoEnrollActivation:{deps:["factor"],fn:function(e){return e&&e._embedded&&e._embedded.activation?e._embedded.activation:null}},prevLink:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.prev?e._links.prev.href:null}},skipLink:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.skip?e._links.skip.href:null}},gracePeriodRemainingDays:{deps:["policy"],fn:function(e){return e&&e.gracePeriod&&e.gracePeriod.endDate?Math.floor((new Date(e.gracePeriod.endDate).getTime()-new Date().getTime())/864e5):null}},user:{deps:["lastAuthResponse"],fn:function(e){return e._embedded&&e._embedded.user?e._embedded.user:null}},recoveryQuestion:{deps:["user"],fn:function(e){return e&&e.recovery_question?e.recovery_question.question:null}},userProfile:{deps:["user"],fn:function(e){return e&&e.profile?e.profile:null}},userConsentName:{deps:["userProfile","username"],fn:function(e,t){return!e||rN.isEmpty(e.firstName)?t:rN.isEmpty(e.lastName)?e.firstName:e.firstName+" "+e.lastName.charAt(0)+"."}},userEmail:{deps:["userProfile"],fn:function(e){return e&&e.login?e.login:null}},userFullName:{deps:["userProfile"],fn:function(e){return e&&(e.firstName||e.lastName)?e.firstName+" "+e.lastName:""}},defaultAppLogo:{deps:["baseUrl"],fn:function(e){return e+"/img/logos/default.png"}},expiresAt:{deps:["lastAuthResponse"],fn:function(e){return e.expiresAt}},target:{deps:["lastAuthResponse"],fn:function(e){return e._embedded?e._embedded.target:null}},targetLabel:{deps:["target"],fn:function(e){return e?e.label:null}}
8,targetLogo:{deps:["target"],fn:function(e){return e&&e._links?e._links.logo:null}},targetTermsOfService:{deps:["target"],fn:function(e){return e&&e._links?e._links["terms-of-service"]:null}},targetPrivacyPolicy:{deps:["target"],fn:function(e){return e&&e._links?e._links["privacy-policy"]:null}},targetClientURI:{deps:["target"],fn:function(e){return e&&e._links?e._links["client-uri"]:null}},scopes:{deps:["lastAuthResponse"],fn:function(e){return e._embedded?e._embedded.scopes:null}},issuer:{deps:["lastAuthResponse"],fn:function(e){var t,n,i;return null==e?void 0:null===(t=e._embedded)||void 0===t?void 0:null===(n=t.authentication)||void 0===n?void 0:null===(i=n.issuer)||void 0===i?void 0:i.uri}},hasExistingPhones:{deps:["lastAuthResponse"],fn:function(e){if(!e._embedded||!e._embedded.factors)return!1;let t=e._embedded.factors,n=rN.findWhere(t,{factorType:"sms",provider:"OKTA"});return!!n&&!!n._embedded&&!!n._embedded.phones.length}},hasExistingPhonesForCall:{deps:["lastAuthResponse"],fn:function(e){if(!e._embedded||!e._embedded.factors)return!1;let t=e._embedded.factors,n=rN.findWhere(t,{factorType:"call",provider:"OKTA"});return!!n&&!!n._embedded&&!!n._embedded.phones.length}},isUndefinedUser:{deps:["securityImage"],fn:function(e){return e===hG}},isNewUser:{deps:["securityImage"],fn:function(e){return e===hY}},allowRememberDevice:{deps:["policy"],fn:function(e){return e&&e.allowRememberDevice}},rememberDeviceLabel:{deps:["policy"],fn:function(e){if(e&&e.rememberDeviceLifetimeInMinutes>0){var t;let n=(t=e.rememberDeviceLifetimeInMinutes)>60&&t<=1440?cq("hours","login",[t/60]):t>1440?cq("days","login",[t/1440]):1===t?cq("minutes.oneMinute","login"):cq("minutes","login",[t]);return cq("rememberDevice.timebased","login",[n])}return e&&0===e.rememberDeviceLifetimeInMinutes?cq("rememberDevice.devicebased","login"):cq("rememberDevice","login")}},rememberDeviceByDefault:{deps:["policy"],fn:function(e){return e&&e.rememberDeviceByDefault}},factorsPolicyInfo:{deps:["policy"],fn:function(e){return e&&e.factorsPolicyInfo?e.factorsPolicyInfo:null}},verifyCustomFactorRedirectUrl:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.next&&"redirect"===e._links.next.name&&e._links.next.href?e._links.next.href:null}},enrollCustomFactorRedirectUrl:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.next&&"activate"===e._links.next.name&&e._links.next.href?e._links.next.href:null}},isFactorResultFailed:{deps:["lastAuthResponse"],fn:function(e){return"FAILED"===e.factorResult}},factorResultErrorMessage:{deps:["lastAuthResponse","isFactorResultFailed"],fn:function(e,t){return t?e.factorResultMessage||cq("oform.error.unexpected","login"):null}},deviceActivationStatus:{deps:["lastAuthResponse"],fn:function(e){return e._embedded?e._embedded.deviceActivationStatus:null}},usingDeviceFlow:{deps:["lastAuthResponse"],fn:function(e){return!!(e._embedded&&e._embedded.usingDeviceFlow)}},userCode:{deps:["lastAuthResponse"],fn:function(e){var t;return null==e?void 0:null===(t=e._embedded)||void 0===t?void 0:t.userCode}}},parse:function(e){return this.settings=e.settings,rN.extend(rN.omit(e,"settings"),{languageCode:this.settings.get("languageCode"),userCountryCode:this.settings.get("countryCode")})}}),hQ={SUPPORTED_SOCIAL_IDPS:["facebook","google","linkedin","microsoft","apple","github","gitlab","yahoo","line","paypal","paypal_sandbox","salesforce","amazon","yahoojp","discord","adobe","orcid","spotify","xero","quickbooks"]};let hX=(e,t)=>{let n=e.get("languageCode")||t.get("languageCode")||rR.defaultLanguage,i=t.get("i18n"),o=t.get("assets.baseUrl"),r=t.get("assets.rewrite"),a=t.get("supportedLanguages"),s=setTimeout(function(){e.trigger("loading",!0)},200);return r8.loadLanguage(n,i,{baseUrl:o,rewrite:r},a).then(function(){clearTimeout(s),e.trigger("loading",!1),e.trigger("removeLoading")})},hZ=cz.Util,h0=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"https://global.oktacdn.com/okta-signin-widget/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"version")||(null!=t?a(t,"version"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"version",hash:{},data:o,loc:{start:{line:1,column:46}
8,end:{line:1,column:57}}}):r)},useData:!0}),h1={authClient:["object",!1,void 0],baseUrl:["string",!0],recoveryToken:["string",!1,void 0],stateToken:["string",!1,void 0],username:["string",!1],relayState:["string",!1],signOutLink:["string",!1],backToSignInLink:["string",!1],redirect:{type:"string",values:["never","always","auto"],value:"auto"},flow:["string",!1,"default"],transformUsername:["function",!1],globalSuccessFn:"function",globalErrorFn:"function",processCreds:"function",hooks:"object",logo:"string",logoText:["string",!1],helpSupportNumber:"string",proxyIdxResponse:["object",!1],overrideExistingStateToken:["boolean",!1,!1],"features.router":["boolean",!0,!1],"features.securityImage":["boolean",!0,!1],"features.rememberMe":["boolean",!0,!0],"features.autoPush":["boolean",!0,!1],"features.smsRecovery":["boolean",!0,!1],"features.callRecovery":["boolean",!0,!1],"features.emailRecovery":["boolean",!1,!0],"features.webauthn":["boolean",!0,!1],"features.selfServiceUnlock":["boolean",!0,!1],"features.multiOptionalFactorEnroll":["boolean",!0,!1],"features.deviceFingerprinting":["boolean",!1,!1],"features.hideSignOutLinkInMFA":["boolean",!1,!1],"features.skipIdpFactorVerificationBtn":["boolean",!1,!1],"features.hideBackToSignInForReset":["boolean",!1,!1],"features.customExpiredPassword":["boolean",!0,!1],"features.registration":["boolean",!1,!1],"features.idpDiscovery":["boolean",!1,!1],"features.passwordlessAuth":["boolean",!1,!1],"features.showPasswordToggleOnSignInPage":["boolean",!1,!1],"features.trackTypingPattern":["boolean",!1,!1],"features.redirectByFormSubmit":["boolean",!1,!1],"features.useDeviceFingerprintForSecurityImage":["boolean",!1,!0],"features.showPasswordRequirementsAsHtmlList":["boolean",!1,!1],"features.mfaOnlyFlow":["boolean",!1,!1],"features.scrollOnError":["boolean",!1,!0],"features.showKeepMeSignedIn":["boolean",!1,!0],"features.showIdentifier":["boolean",!1,!0],"features.autoFocus":["boolean",!1,!0],"features.sameDeviceOVEnrollmentEnabled":["boolean",!1,!1],"features.showSessionRevocation":["boolean",!1,!1],"features.disableAutocomplete":["boolean",!1,!1],defaultCountryCode:["string",!1,"US"],language:["any",!1],i18n:["object",!1],"assets.baseUrl":["string",!1],"assets.rewrite":{type:"function",value:rN.identity},"assets.languages":["array",!1],issuer:"string",clientId:"string",redirectUri:"string",state:"string",nonce:"string",scopes:"array",codeChallenge:"string",codeChallengeMethod:["string",!1],oAuthTimeout:["number",!1],authScheme:["string",!1,"OAUTH2"],idps:["array",!1,[]],idpDisplay:{type:"string",values:["PRIMARY","SECONDARY"],value:"SECONDARY"},initialPopupPath:["string",!1],"helpLinks.help":"string","helpLinks.forgotPassword":"string","helpLinks.unlock":"string","helpLinks.custom":"array","helpLinks.factorPage.href":"string","helpLinks.factorPage.text":"string","helpLinks.gracePeriodRequiredSoon.href":"string","helpLinks.gracePeriodRequiredSoon.text":"string",customButtons:["array",!1,[]],policyId:"string","registration.click":"function","registration.parseSchema":"function","registration.preSubmit":"function","registration.postSubmit":"function","consent.cancel":"function","idpDiscovery.requestContext":"string","colors.brand":"string",cspNonce:"string",brandName:"string",piv:["object",!1,{}],otp:"string",useClassicEngine:["boolean",!1,!1],"hcaptcha.scriptSource":["string",!1],"hcaptcha.scriptParams":["object",!1,{}],"recaptcha.scriptSource":["string",!1]},h8={backToSignInUri:{deps:["backToSignInLink","signOutLink"],fn:function(e,t){return e||t}},showPasswordToggle:{deps:["features.showPasswordToggleOnSignInPage"],fn:function(){var e,t,n,i;let o=null!==(e=null===(t=this.options)||void 0===t?void 0:null===(n=t.features)||void 0===n?void 0:n.showPasswordToggleOnSignInPage)&&void 0!==e?e:null===(i=this.options)||void 0===i?void 0:i["features.showPasswordToggleOnSignInPage"];return null==o||o},cache:!0},redirectUtilFn:{deps:["features.redirectByFormSubmit"],fn:function(e){return e?r7.redirectWithFormGet.bind(r7):hZ.redirect.bind(hZ)},cache:!0},supportedLanguages:{deps:["i18n","language","assets.languages"],fn:function(e,t,n){let i=n||rR.supportedLanguages;return rN.union(i,rN.keys(e),rN.isString(t)?[t]:[])},cache:!0},languageCode:{deps:["language","supportedLanguages"],fn:function(e,t){let n,i;let o=rK.getUserLanguages();o.forEach((e,t)=>{"nl"===e?o[t]="nl-NL":"pt"===e&&(o[t]="pt-BR")});let r=rN.clone(o),a=r7.toLower(t);rN.isString(e)?r.unshift(e):rN.isFunction(e)&&r.unshift(e(t,o)),r.push(rR.defaultLanguage);let s=r7.toLower(r7.expandLanguages(r));for(n=0;n<s.length;n++)if((i=a.indexOf(s[n]))>-1)return t[i]}},languageTags:{deps:["language","supportedLanguages"],fn:(e,t)=>{var n,i;let o;let r=rK.getUserLanguages().map(e=>"nl"===e?"nl-nl":"pt"===e?"pt-br":e.toLowerCase()),a=new Map,s=e=>{if(!e)return;let[t]=e.split("-");if(a.has(t)){var n;let i=null!==(n=a.get(t))&&void 0!==n?n:new Set;i.add(e),a.set(t,i)}else a.set(t,new Set([e]))},l=r.filter(e=>t.some(t=>e.startsWith(t.toLowerCase())));l.forEach(s),r7.expandLanguages(l).forEach(s),void 0!==e&&("string"==typeof e?o=e.toLowerCase():"function"==typeof e&&(o=null===(n=e(t,r))||void 0===n?void 0:n.toLowerCase()),r7.expandLanguages([o]).forEac
8h(s)),r7.expandLanguages([rR.defaultLanguage.toLowerCase()]).forEach(s);let c=[];if(o){let[e]=o.split("-");c.push(...null!==(i=a.get(e))&&void 0!==i?i:[]),a.delete(e)}return a.forEach(e=>{c.push(...e)}),c}},countryCode:{deps:["defaultCountryCode"],fn:function(e){return Object.keys(pO.getCountries()).includes(e)?e:"US"}},mode:{deps:["codeChallenge"],fn:function(e){return e?"remediation":"relying-party"}},oauth2Enabled:{deps:["clientId","authScheme","authClient"],fn:function(e,t,n){return!e&&n&&(e=n.options.clientId),!!e&&"oauth2"===t.toLowerCase()},cache:!0},oauthRedirectUri:{deps:["redirectUri"],fn:function(e){if(e)return e;let t=window.location.origin;if(!t){let e=window.location.href,n=window.location.pathname;""!==n&&(t=e.substring(0,e.lastIndexOf(n)))}return encodeURI(t)}},configuredSocialIdps:{deps:["idps"],fn:function(e){return rN.map(e,function(e){let t=rN.clone(e),n=t.type&&t.type.toLowerCase();return n&&rN.contains(hQ.SUPPORTED_SOCIAL_IDPS,n)||(n="general-idp",t.text=t.text||"{ Please provide a text value }"),t.className=["social-auth-button","social-auth-"+n+"-button ",t.className?t.className:""].join(" "),t.dataAttr="social-auth-"+n+"-button",t.i18nKey="socialauth."+n+".label",t})},cache:!0},hasPivCard:{deps:["piv"],fn:function(e){return e&&e.certAuthUrl},cache:!0},socialAuthPositionTop:{deps:["configuredSocialIdps","hasPivCard","idpDisplay"],fn:function(e,t,n){return(!rN.isEmpty(e)||t)&&"PRIMARY"===n.toUpperCase()},cache:!0},hasConfiguredButtons:{deps:["configuredSocialIdps","customButtons","hasPivCard"],fn:function(e,t,n){return!rN.isEmpty(e)||!rN.isEmpty(t)||n},cache:!0}};class h2 extends su{constructor(e,t){super(e,t),this.authClient=void 0;let n=this.getAuthClient();this.setAcceptLanguageHeader(n)}get(e){return su.prototype.get.call(this,e)}preinitialize(...e){this.local=h1,this.derived=h8,su.prototype.preinitialize.apply(this,e)}initialize(e){let{colors:t,authClient:n,flow:i}=e=e||{},{baseUrl:o}=e;if(!o){if(n)o=n.getIssuerOrigin();else{var r;let{authParams:t}=e,{issuer:n}=e;o=null===(r=n=n||(null==t?void 0:t.issuer))||void 0===r?void 0:r.split("/oauth2/")[0]}this.set("baseUrl",o)}n&&i&&n.idx.setFlow(i),o?t&&rN.isString(t.brand)&&!t.brand.match(/^#[0-9A-Fa-f]{6}$/)?this.callGlobalError(new rU(cq("error.invalid.colors.brand"))):rK.corsIsNotSupported()&&this.callGlobalError(new rF(cq("error.unsupported.cors"))):this.callGlobalError(new rU(cq("error.required.baseUrl")))}setAcceptLanguageHeader(e){e&&e.http.setRequestHeader("Accept-Language",this.get("languageCode"))}setAuthClient(e){this.set("authClient",e),this.setAcceptLanguageHeader(e)}getAuthClient(){return this.get("authClient")}set(...e){try{return su.prototype.set.apply(this,e)}catch(t){let e=t.message?t.message:t;this.callGlobalError(new rU(e))}}callGlobalSuccess(e,t){let n=rN.extend(t,{status:e});rN.defer(rN.partial(this.get("globalSuccessFn"),n))}callGlobalError(e){let t=this.get("globalErrorFn")||this.options.globalErrorFn;if(t)t(e);else throw e}transformUsername(e,t){let n=this.get("transformUsername");return n&&rN.isFunction(n)?n(e,t):e}processCreds(e){let t=this.get("processCreds");return cZ().Promise(function(n){rN.isFunction(t)?2===t.length?t(e,n):(t(e),n()):n()})}parseRegistrationSchema(e,t,n){let i=this.get("registration.parseSchema");rN.isFunction(i)?i(e,function(e){t(e)},function(e){(e=e||{errorSummary:cq("registration.default.callbackhook.error")}).callback="parseSchema",n(e)}):t(e)}preRegistrationSubmit(e,t,n){let i=this.get("registration.preSubmit");rN.isFunction(i)?i(e,function(e){t(e)},function(e){(e=e||{errorSummary:cq("registration.default.callbackhook.error")}).callback="preSubmit",n(e)}):t(e)}postRegistrationSubmit(e,t,n){let i=this.get("registration.postSubmit");rN.isFunction(i)?i(e,function(e){t(e)},function(e){(e=e||{errorSummary:cq("registration.default.callbackhook.error")}).callback="postSubmit",n(e)}):t(e)}parse(e){if(e.labels||e.country){rQ.deprecate('Use "i18n" instead of "labels" and "country"');let t=e.labels||{};rN.each(e.country,function(e,n){t["country."+n]=e}),e.i18n={},rN.each(rR.supportedLanguages,function(n){e.i18n[n]=t}),delete e.labels,delete e.country}e.assets||(e.assets={});let t=e.assets.baseUrl;return t?"/"===t[t.length-1]&&(e.assets.baseUrl=t.substring(0,t.length-1)):e.assets.baseUrl=h0({version:rR.version}),e}isDsTheme(){return!1}}var h3=cH.extend({tagName:"main",className:"auth-container main-container",id:rL.WIDGET_CONTAINER_ID,attributes:{"data-se":"auth-container",tabindex:"-1"},initialize:function(e){this.listenTo(e.appState,"change:beaconType",function(e,t){this.$el.toggleClass("can-remove-beacon","security"===t)})}});let h4={};function h6(e,t,n){let i=cZ().defer();return e.animate({"text-indent":1},{duration:200,easing:"swing",step:function(i,o){o.start=t,o.end=n,e.css("transform","scale("+i+", "+i+")")},always:function(){i.resolve(e)}}),i.promise}function h5(e,t,n){let i=cZ().defer();return e.animate({"text-indent":1},{duration:150,easing:"swing",step:function(i,o){o.start=t,o.end=n,e.css("transform","rotate("+i+"deg)")},always:function(){i.resolve(e)}}),i.promise}h4.swapPages=function(e){let t=cZ().defer(),n=e.$parent,i=e.$oldRoot,o=e.$newRoot,r=e.success,a=e.ctx,s="transition-from-right";e.dir&&e.dir===rL.DIRECTION_BACK&&(s="transition-from-left"),o.addClass(s),n.append(o),n.addClass("animation-container-overflow");let l={left:"0px",top:"0px",opacity:1};return o.animate(l,200,function(){n.removeClass("animation-container-overflow"),o.removeClass(s);let e=Object.keys(l).reduce((e,t)=>
8({...e,[t]:""}),{});o.css(e),r.call(a),t.resolve()}),i.animate({height:o.height(),opacity:0},160),t.promise},h4.swapBeacons=function(e){let t=e.$el,n=e.swap,i=e.ctx;return this.implode(t).then(function(){return n.call(i),t}).then(this.explode)},h4.explode=function(e){return h6(e,0,1)},h4.implode=function(e){return h6(e,1,0)},h4.radialProgressBar=function(e){let t=e.$el,n=e.swap,i=t.children();return h5(i,0,180).then(function(){t.css({clip:"auto"})}).then(function(){let e=i.eq(0);return n(),h5(e,180,360)}).then(function(){t.css({clip:"rect(0px, 96px, 96px, 48px)"}),i.css({transform:"rotate(0deg)","text-indent":"1px"})})};var h9=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="beacon-blank"></div><div class="bg-helper auth-beacon auth-beacon-security" data-se="loading-beacon"><div class="okta-sign-in-beacon-border auth-beacon-border js-auth-beacon-border"></div></div>'},useData:!0}),equals:function(e){return e&&this instanceof e}});let h7="no-beacon",fe="beacon-small beacon-loading";function ft(e){return e&&e.equals(h9)}function fn(e){e.currentBeacon&&(e.currentBeacon.remove(),e.currentBeacon=null)}function fi(e,t,n,i){e.add(t,{selector:n,options:i}),e.currentBeacon=e.first()}class fo extends cH{constructor(...e){super(...e),this.currentBeacon=void 0}preinitialize(...e){this.currentBeacon=null,this.template=a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h1><img src="'+c(typeof(r=null!=(r=u(n,"logo")||(null!=t?u(t,"logo"):t))?r:s)===l?r.call(a,{name:"logo",hash:{},data:o,loc:{start:{line:1,column:71},end:{line:1,column:79}}}):r)+'" class="auth-org-logo" alt="'+c(typeof(r=null!=(r=u(n,"logoText")||(null!=t?u(t,"logoText"):t))?r:s)===l?r.call(a,{name:"logoText",hash:{},data:o,loc:{start:{line:1,column:108},end:{line:1,column:120}}}):r)+' logo" aria-label="'+c(typeof(r=null!=(r=u(n,"logoText")||(null!=t?u(t,"logoText"):t))?r:s)===l?r.call(a,{name:"logoText",hash:{},data:o,loc:{start:{line:1,column:139},end:{line:1,column:151}}}):r)+' logo"></h1>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-sign-in-header auth-header">'+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"logo"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:45},end:{line:1,column:170}}}))?r:"")+'<div data-type="beacon-container" class="beacon-container"></div></div><div class="auth-content"><div class="auth-content-inner"></div></div>'},useData:!0}),cH.prototype.preinitialize.apply(this,e)}initialize(e){e.settings.get("features.securityImage")||(this.$el.addClass(h7),this.listenTo(e.appState,"loading",this.setLoadingBeacon),this.listenTo(e.appState,"removeLoading",this.removeLoadingBeacon))}setBeacon(e,t){var n;let i='[data-type="beacon-container"]',o=this.$(i),r=(n=this.currentBeacon)||e?!n&&t.loading?"load":n&&ft(n)?e?"swap":"unload":n&&n.equals(e,t)?"same":!n&&e?"add":n&&!e?"remove":n instanceof e?"fade":"swap":"none";switch(r){case"none":this.$el.addClass(h7);return;case"same":return;case"add":return this.$el.removeClass(h7),fi(this,e,i,t),h4.explode(o);case"remove":return this.$el.addClass(h7),h4.implode(o).then(()=>{fn(this)}).done();case"fade":if(!this.currentBeacon.fadeOut)throw Error('The current beacon is missing the "fadeOut" method');return t.animate=!0,this.currentBeacon.fadeOut().then(()=>{fn(this),fi(this,e,i,t)}).done();case"swap":return h4.swapBeacons({$el:o,swap:()=>{let n=ft(this.currentBeacon);fn(this),this.$el.removeClass(h7),n&&o.removeClass(fe),fi(this,e,i,t)}}).done();case"load":return o.addClass(fe),fi(this,e,i,t),h4.explode(o);case"unload":return this.removeLoadingBeacon();default:throw Error('the "'+r+'" is not recognized')}}setLoadingBeacon(e){!e||ft(this.currentBeacon)||this.setBeacon(h9,{loading:!0})}removeLoadingBeacon(){if(!ft(this.currentBeacon))return;let e=this.$('[data-type="beacon-container"]');return h4.implode(e).then(()=>{fn(this),e.removeClass(fe)}).done()}getTemplateData(){return this.settings.toJSON({verbose:!0})}getContentEl(){return this.$(".auth-content-inner")}}function fr(e,t){let n=t.get("securityImage"),i=t.get("securityImageDescription"),o=t.get("isUndefinedUser"),r=t.get("isNewUser");
8if(e.css("background-image",""),e.removeClass("new-user undefined-user"),r){e.addClass("new-user");return}if(o){e.addClass("undefined-user");return}if(!o&&!r){e.removeAttr("aria-describedby"),e.find(".accessibility-text").text(i),e.css("background-image","url("+rN.escape(n)+")");return}}async function fa(e,t,n){let i=e.find(".auth-beacon-security"),o=e.find(".js-auth-beacon-border"),r=!t.get("isUndefinedUser"),a=t.get("isNewUser"),s=e.find(".radial-progress-bar"),l=t.get("baseUrl").match(/https?:\/\/(.[^/]+)/)[1];if(!n){fr(i,t),o.toggleClass("auth-beacon-border",r);return}(i.qtip("destroy"),sh(window).off("resize.securityBeaconQtip"),r)?(o.removeClass("auth-beacon-border"),await h4.radialProgressBar({$el:s,swap:function(){i.fadeOut(200,()=>{fr(i,t),i.fadeIn(200)})}}),o.addClass("auth-beacon-border"),a&&(sh(window).on("resize.securityBeaconQtip",rN.debounce(function(){i.is(":visible")&&i.qtip("show")},300)),i.qtip({prerender:!0,content:{text:cq("primaryauth.newUser.tooltip","login",[rN.escape(l)]),button:cq("primaryauth.newUser.tooltip.close","login")},style:{classes:"okta-security-image-tooltip security-image-qtip qtip-custom qtip-shadow qtip-rounded",tip:{height:12,width:16}},position:{my:"top center",at:"center",target:sh(".auth-beacon-security"),adjust:{method:"flip",scroll:!1,resize:!0},effect:!1},hide:{event:!1,fixed:!0},show:{event:!1,delay:200},events:{move:function(e,t){t.elements.target.is(":visible")||(t.set("hide.effect",!1),t.hide(),t.set("hide.effect",!0))}}}),setTimeout(()=>{i.qtip("toggle",i.is(":visible"))},0))):i.fadeOut(200,function(){fr(i,t),o.removeClass("auth-beacon-border"),i.fadeIn(200)})}var fs=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="beacon-blank"><div class="radial-progress-bar"><div class="circle left"></div><div class="circle right"></div></div></div><div aria-live="polite" role="img" class="bg-helper auth-beacon auth-beacon-security" data-se="security-beacon"><span class="accessibility-text"></span><div class="okta-sign-in-beacon-border auth-beacon-border js-auth-beacon-border"></div></div>'},useData:!0}),className:"js-security-beacon",initialize:function(e){this.update=rN.partial(fa,this.$el,e.appState),this.listenTo(e.appState,"change:securityImage",this.update),this.listenTo(e.appState,"loading",function(e){this.$el.toggleClass("beacon-loading",e),this.removeAntiPhishingMessage()}),this.options.appState.set("beaconType","security"),this.listenTo(e.appState,"navigate",this.removeAntiPhishingMessage)},postRender:function(){this.update(!1)},equals:function(e){return e&&this instanceof e},removeAntiPhishingMessage:function(){this.$el.find(".auth-beacon-security").qtip("destroy")}});let fl={};fl.lighten=function(e,t){t=t||0,e=e.substr(1);let n="#";for(var i=0;i<3;i++){let o=parseInt(e.substr(2*i,2),16);n+=("00"+(o=Math.round(Math.min(Math.max(0,o+o*t),255)).toString(16))).substr(o.length)}return n},fl.addStyle=function(e,t){let n=` 9#okta-sign-in.auth-container .button-primary, 10#okta-sign-in.auth-container .button-primary:active, 11#okta-sign-in.auth-container .button-primary:focus { background: ${e.brand}; } 12#okta-sign-in.auth-container .button-primary:hover { background: ${fl.lighten(e.brand,.05)}; } 13#okta-sign-in.auth-container .button.button-primary.link-button-disabled { 14 background: ${e.brand}; 15 opacity: 0.5; 16} 17 `,i=document.getElementById(rL.WIDGET_CONTAINER_ID),o=document.createElement("style");o.id=rL.WIDGET_CONFIG_COLORS_ID,o.type="text/css",t&&(o.nonce=t),o.appendChild(document.createTextNode(n)),i.appendChild(o)},fl.isLoaded=function(){return!!document.getElementById(rL.WIDGET_CONFIG_COLORS_ID)};var fc=cW.extend({Events:a2.Events,initialize:function(e){e.globalSuccessFn||(e.globalSuccessFn=function(){}),e.globalErrorFn||(e.globalErrorFn=function(e){rQ.error(e)}),this.settings=new h2(rN.omit(e,"el"),{parse:!0}),e.el||this.settings.callGlobalError(new rU(cq("error.required.el"))),sh("body > div").on("click",function(){}),this.appState=new hJ({baseUrl:this.settings.get("baseUrl"),settings:this.settings},{parse:!0});let t=new h3({appState:this.appState});sh(e.el).append(t.render().$el),this.el=`#${rL.WIDGET_CONTAINER_ID}`,this.header=new fo({el:this.el,appState:this.appState,settings:this.settings}),this.hide(),this.listenTo(this.appState,"change:transactionError",function(e,t){u$.routeAfterAuthStatusChangeError(this,t)}),this.listenTo(this.appState,"change:transaction",function(e,t){u$.routeAfterAuthStatusChange(this,t.data)}),this.listenTo(this.appState,"navigate",function(e){this.navigate(e,{trigger:!0})})},execute:function(e,t){var n;let i=this.settings.get("recoveryToken");if(i){this.settings.unset("recoveryToken"),this.navigate(u$.createRecoveryUrl(i),{trigger:!0});return}let o=this.settings.get("stateToken");if(o){this.settings.unset("stateToken"),this.navigate(u$.createRefreshUrl(o),{trigger:!0});return}let r=this.appState.get("transaction");if(r&&r.data||(n=this,rN.find(n.stateLessRouteHandlers,function(t){return e===n[t]}))){e.apply(this,t);return}if(this.settings.getAuthClient().tx.exists()){this.navigate(u$.createRefreshUrl(),{trigger:!0});return}this.navigate("",{trigger:!0})},navigate:function(e,t){return this.settings.get("features.router")?cW.prototype.navigate.apply(this,arguments):t&&t.trigger?a2.history.loadUrl(e):void 0},render:function(e,t){t||(t={});let n=t.Beacon,i=rN.extend({settings:this.settings,appState:this.appState},rN.omit(t,"Beacon"));if(this.header.rendered()||(this.el=this.header.render().getContentEl()),!r8.isLoaded(this.appState.get("languageCode")))return hX(this.appState,this.settings).then(rN.bind(this.render,this,e,t));if(this.settings.get("colors.brand")&&!fl.isLoaded()){let e={brand:this.settings.get("colors.brand")},t=this.settings.get("cspNonce");fl.addStyle(e,t)}let o=this.controller;return this.controller=new e(i),this.listenTo(this.controller,"all",this.trigger),this.controller.fetchInitialData().then(()=>{var e,t;if(e=n,t=this.settings,e&&(e!==fs||t.get("features.securityImage"))||(n=null),this.header.setBeacon(n,i),this.show(),this.controller.render(),!o){this.el.append(this.controller.el),this.controller.postRenderAnimation();return}return h4.swapPages({$parent:this.el,$oldRoot:o.$el,$newRoot:this.controller.$el,dir:o.state.get("navigateDir"),ctx:this,success:function(){let e=this.appState.get("flashError"),t=this.controller.model;if(o.remove(),o.$el.remove(),this.controller.postRenderAnimation(),e){let n;n=e.is&&e.is("terminal")?e.errorDetails.errorSummary:cq(this.settings.get("features.mfaOnlyFlow")?"error.mfa.only.expired.session":"error.expired.session"),t.trigger("error",t,{responseJSON:{errorSummary:n}}),this.appState.unset("flashError"),r7.triggerAfterError(this.controller,e)}}})}).catch(function(){o&&(o.remove(),o.$el.remove())})},start:function(){let e=!1;window.addEventListener&&this.settings.get("features.router")&&(window.addEventListener("popstate",e=>{this.controller.back&&(e.preventDefault(),e.stopImmediatePropagation(),this.controller.back())}),e=rK.supportsPushState()),cW.prototype.start.call(this,{pushState:e})},hide:function(){this.header.$el.hide()},show:function(){this.header.$el.show()},remove:function(){this.controller&&this.controller.remove(),this.header.$el.remove(),r8.remove(),a2.history.stop()}});let fu=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression(typeof(a=null!=(a=u(n,"factorName")||(null!=t?u(t,"factorName"):t))?a:l)===c?a.call(s,{name:"factorName",hash:{},data:o,loc:{start:{line:1,column:0},end:{line:1,column:14}}}):a)+" ("+(null!=(r=typeof(a=null!=(a=u(n,"deviceName")||(null!=t?u(t,"deviceName"):t))?a:l)===c?a.call(s,{name:"deviceName",hash:{},data:o,loc:{start:{line:1,column:16},end:{line:1,column:32}}}):a)?r:"")+")"},useData:!0}
17),fp=function(e){let t;let n=e.get("factorType"),i=this.options.appState.get("factors");i.hasMultipleFactorsOfSameType(n)&&(t=i.getFactorIndex(n,e.get("id")));let o=u$.createVerifyUrl(e.get("provider"),n,t),r=this;this.options.appState.trigger("factorSwitched"),this.model.manageTransaction(function(e,t){if("FACTOR_CHALLENGE"===e.status&&this.options.appState.set("trapMfaRequiredResponse",!0),"MFA_CHALLENGE"===e.status&&e.prev)return this.options.appState.set("trapMfaRequiredResponse",!0),e.prev().then(function(e){r.trigger("options:toggle"),t(e),r.options.appState.trigger("navigate",o)});r.trigger("options:toggle"),r.options.appState.trigger("navigate",o)})},fd={TITLE:{title:rN.partial(cq,"mfa.factors.dropdown.title","login"),className:"dropdown-list-title",disabled:!0},OKTA_VERIFY:{icon:"factor-icon mfa-okta-verify-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},OKTA_VERIFY_PUSH:{icon:"factor-icon mfa-okta-verify-30",className:"factor-option",title:function(){return fu({factorName:this.model.get("factorLabel"),deviceName:this.model.get("deviceName")})},action:function(){fp.call(this,this.model)}},GOOGLE_AUTH:{icon:"factor-icon mfa-google-auth-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},CUSTOM_HOTP:{icon:"factor-icon mfa-hotp-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},SYMANTEC_VIP:{icon:"factor-icon mfa-symantec-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},RSA_SECURID:{icon:"factor-icon mfa-rsa-30",className:"factor-option",title:rN.partial(cq,"factor.totpHard.rsaSecurId","login"),action:function(){fp.call(this,this.model)}},ON_PREM:{icon:"factor-icon mfa-onprem-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},DUO:{icon:"factor-icon mfa-duo-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},DUO_PUSH:{icon:"duo-push-16",className:"suboption factor-option",title:rN.partial(cq,"mfa.duoSecurity.push","login",["XXX-XXX-7890"])},DUO_SMS:{icon:"duo-sms-16",className:"suboption factor-option",title:rN.partial(cq,"mfa.duoSecurity.sms","login",["XXX-XXX-7890"])},DUO_CALL:{icon:"duo-call-16",className:"suboption factor-option",title:rN.partial(cq,"mfa.duoSecurity.call","login",["XXX-XXX-7890"])},YUBIKEY:{icon:"factor-icon mfa-yubikey-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},SMS:{icon:"factor-icon mfa-sms-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},CALL:{icon:"factor-icon mfa-call-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},QUESTION:{icon:"factor-icon mfa-question-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},PASSWORD:{icon:"factor-icon mfa-password-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},WINDOWS_HELLO:{icon:"factor-icon mfa-windows-hello-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},U2F:{icon:"factor-icon mfa-u2f-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},WEBAUTHN:{icon:"factor-icon mfa-webauthn-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},EMAIL:{icon:"factor-icon mfa-email-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}}
17,GENERIC_SAML:{icon:"factor-icon mfa-custom-factor-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},GENERIC_OIDC:{icon:"factor-icon mfa-custom-factor-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}},CUSTOM_CLAIMS:{icon:"factor-icon mfa-custom-factor-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){fp.call(this,this.model)}}};var fh={getDropdownOption:function(e){return fd[e]}};let{BaseDropDown:ff}=cK;sh(document).click(function(e){let t=sh(e.target);t.closest(".option-selected").length>0&&t.closest(".dropdown").length>0||(sh(".dropdown .options").hide(),sh(".dropdown a.option-selected").attr("aria-expanded",!1))});var fm=ff.extend({className:"bg-helper icon-button",screenReaderText:function(){let e=this.options.appState.get("factors");return cq("mfa.factors.dropdown.sr.text","login",[(e?uh.findFactorInFactorsArray(e,this.options.provider,this.options.factorType):new pb.Model(this.options.appState.get("factor"),this.toJSON())).get("factorLabel")])},events:{"click a.option-selected":function(e){if(e.preventDefault(),rN.result(this,"disabled"))e.stopPropagation();else{let e=this.$(".options").toggle().is(":visible");this.$("a.option-selected").attr("aria-expanded",e),e&&this.$("#okta-dropdown-options").find("li.factor-option:first a").focus()}},"click .dropdown-disabled":function(e){e.preventDefault(),e.stopPropagation()}},initialize:function(){this.addOption(fh.getDropdownOption("TITLE"));let e=this.options.appState.get("factors"),t=e.hasMultipleFactorsOfSameType("push");e.each(function(e){"token:software:totp"===e.get("factorType")&&t||(this.addOption(fh.getDropdownOption(e.get("factorName")),{model:e}),this.listenTo(this.last(),"options:toggle",function(){this.$(".options").hide(),this.$("a.option-selected").attr("aria-expanded",!1)}))},this)}}),fg=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="beacon-blank auth-beacon"><div class="beacon-blank js-blank-beacon-border auth-beacon-border"></div></div><div class="bg-helper auth-beacon auth-beacon-factor '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"className")||(null!=t?a(t,"className"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"className",hash:{},data:o,loc:{start:{line:1,column:171},end:{line:1,column:184}}}):r)+'" data-se="factor-beacon"><div class="okta-sign-in-beacon-border auth-beacon-border"></div></div><div data-type="factor-types-dropdown" class="factors-dropdown-wrap"></div>'},useData:!0}),events:{"click .auth-beacon-factor":function(e){e.preventDefault(),e.stopPropagation();let t=this.$(".dropdown .options").toggle().is(":visible");this.$("a.option-selected").attr("aria-expanded",t),t&&this.$("#okta-dropdown-options").find("li.factor-option:first a").focus()}},initialize:function(){this.options.appState.set("beaconType","factor")},getTemplateData:function(){let e=this.options.appState.get("factors");return{className:(e?uh.findFactorInFactorsArray(e,this.options.provider,this.options.factorType):new pb.Model(this.options.appState.get("factor"))).get("iconClassName")||""}},postRender:function(){this.options.animate&&this.$(".auth-beacon-factor").fadeIn(200),this.options.appState.get("hasMultipleFactorsAvailable")&&this.add(fm,'[data-type="factor-types-dropdown"]')},fadeOut:function(){let e=cZ().defer();return this.$(".auth-beacon-factor").fadeOut(200,function(){e.resolve()}),e.promise},equals:function(e,t){return e&&this instanceof e&&t.provider===this.options.provider&&(t.factorType===this.options.factorType||uh.isOktaVerify(t.provider,t.factorType)&&uh.isOktaVerify(this.options.provider,this.options.factorType))}}),fy=cH.extend({className:"piv-beacon",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="beacon-blank auth-beacon"><div class="beacon-blank js-blank-beacon-border auth-beacon-border"></div></div><div class="bg-helper auth-beacon smartcard" data-se="piv-beacon"><div class="okta-sign-in-beacon-border auth-beacon-border"></div></div>'},useData:!0}
17),equals:function(e){return e&&this instanceof e}}),fv=fc.extend({routes:{"":"defaultAuth",signin:"primaryAuth","signin/okta/:username":"primaryAuth","signin/verify/duo/web":"verifyDuo","signin/verify/piv":"verifyPIV","signin/poll":"poll","signin/verify/fido/webauthn":"verifyWebauthn","signin/verify/webauthn":"verifyWebauthn","signin/verify/fido/u2f":"verifyU2F","signin/verify/u2f":"verifyU2F","signin/verify/generic_saml/assertion:saml2":"verifySAMLFactor","signin/verify/generic_oidc/assertion:oidc":"verifyOIDCFactor","signin/verify/custom/claims_provider":"verifyClaimsFactor","signin/verify/:factorType":"verifyNoProvider","signin/verify/:provider/:factorType(/:factorIndex)":"verify","signin/enroll":"enrollChoices","signin/enroll/duo/web":"enrollDuo","signin/enroll/okta/question":"enrollQuestion","signin/enroll/okta/password":"enrollPassword","signin/enroll/okta/sms":"enrollSms","signin/enroll/okta/call":"enrollCall","signin/enroll/okta/email":"enrollEmail","signin/enroll-activate/okta/sms":"enrollSms","signin/enroll-activate/okta/call":"enrollCall","signin/enroll/rsa/token":"enrollRsa","signin/enroll/del_oath/token":"enrollOnPrem","signin/enroll/symantec/token":"enrollSymantecVip","signin/enroll/yubico/token:hardware":"enrollYubikey","signin/enroll/fido/webauthn":"enrollWebauthn","signin/enroll/fido/u2f":"enrollU2F","signin/enroll/generic_saml/assertion:saml2":"enrollSAMLFactor","signin/enroll/generic_oidc/assertion:oidc":"enrollOIDCFactor","signin/enroll/custom/claims_provider":"enrollClaimsFactor","signin/enroll/custom/token:hotp":"enrollHotpFactor","signin/enroll/:provider/:factorType":"enrollTotpFactor","signin/enroll-activate/okta/email":"enrollActivateEmail","signin/enroll-activate/okta/push":"scanBarcodePushFactor","signin/enroll-activate/okta/push/manual":"manualSetupPushFactor","signin/enroll-activate/okta/push/sent":"activationLinkSent","signin/enroll-activate/okta/token:software:totp/passcode":"enterPasscodeInPushEnrollmentFlow","signin/enroll-activate/custom/claims_provider":"enrollActivateClaimsFactor","signin/enroll-activate/:provider/:factorType":"scanBarcodeTotpFactor","signin/enroll-activate/:provider/:factorType/activate":"activateTotpFactor","signin/enroll-activate/:provider/:factorType/manual":"manualSetupTotpFactor","signin/password-expired":"passwordExpired","signin/custom-password-expired":"customPasswordExpired","signin/forgot-password":"forgotPassword","signin/recovery-challenge":"recoveryChallenge","signin/recovery-emailed":"recoveryEmailSent","signin/recovery-question":"recoveryQuestion","signin/password-reset":"passwordReset","signin/reset-password/:token":"recoveryLoading","signin/user-unlock/:token":"recoveryLoading","signin/recovery/:token":"recoveryLoading","signin/unlock-emailed":"unlockEmailSent","signin/unlock":"unlockAccount","signin/account-unlocked":"accountUnlocked","signin/refresh-auth-state(/:token)":"refreshAuthState","signin/register":"register","signin/register-complete":"registerComplete","signin/error":"errorState","signin/consent":"consentRequired","signin/admin-consent":"adminConsentRequired","signin/enroll-user":"enrollUser","signin/device-activate-complete":"deviceActivateComplete","signin/device-activate":"deviceActivate","signin/idp-discovery-check":"idpDiscoveryCheck","*wildcard":"defaultAuth"},stateLessRouteHandlers:["defaultAuth","idpDiscovery","primaryAuth","forgotPassword","recoveryLoading","unlockAccount","refreshAuthState","register","registerComplete","errorState","verifyPIV"],defaultAuth:function(){if(window.location.hash===`#${rL.WIDGET_CONTAINER_ID}`){document.getElementById(rL.WIDGET_CONTAINER_ID).focus();return}this.settings.get("features.idpDiscovery")?this.idpDiscovery():this.primaryAuth()},idpDiscoveryCheck:function(){this.render(dW,{Beacon:fs})},idpDiscovery:function(){this.render(dH,{Beacon:fs})},primaryAuth:function(e){this.render(dB,{Beacon:fs,username:e})},verifyDuo:function(){this.render(hj,{provider:"DUO",factorType:"web",Beacon:fg})},verifyPIV:function(){this.render(hB,{Beacon:fy})},poll:function(){this.render(hy)},verifyWebauthn:function(){this.settings.get("features.webauthn")?this.render(hH,{provider:"FIDO",factorType:"webauthn",Beacon:fg}):this.render(hW,{provider:"FIDO",factorType:"webauthn",Beacon:fg})},verifyU2F:function(){this.render(hq,{provider:"FIDO",factorType:"u2f",Beacon:fg})},verifySAMLFactor:function(){this.render(hF,{provider:"GENERIC_SAML",factorType:"assertion:saml2",Beacon:fg})},verifyOIDCFactor:function(){this.render(hF,{provider:"GENERIC_OIDC",factorType:"assertion:oidc",Beacon:fg})},verifyClaimsFactor:function(){this.render(hF,{provider:"CUSTOM",factorType:"claims_provider",Beacon:fg})},verify:function(e,t,n){this.render(hd,{provider:e.toUpperCase(),factorType:t,factorIndex:n,Beacon:fg})},verifyNoProvider:function(e){this.render(hd,{factorType:e,Beacon:fg})},enrollChoices:function(){this.render(p$,{Beacon:fs})},enrollDuo:function(){this.render(pz,{provider:"DUO",factorType:"web",Beacon:fg})},enrollQuestion:function(){this.render(pZ,{provider:"OKTA",factorType:"question",Beacon:fg})},enrollPassword:function(){this.render(pX,{provider:"OKTA",factorType:"password",Beacon:fg})},enrollSms:function(){this.render(pM,{provider:"OKTA",factorType:"sms",Beacon:fg})},enrollCall:function(){this.render(pM,{provider:"OKTA",factorType:"call",Beacon:fg})},enrollEmail:function(){this.render(pK,{provider:"OKTA",factorType:"email",Beacon:fg})},enrollActivateEmail:function(){this.render(pT,{provider:"OKTA",factorType:"email",Beacon:fg})},enrollRsa:function(){this.render(pJ,{provider:"RSA",factorType:"token",Beacon:fg})},enrollOnPrem:function(){this.render(pJ,{provider:"DEL_OATH",factorType:"token",Beacon:fg})},enrollSymantecVip:function(){this.render(p0,{provider:"SYMANTEC",factorType:"token",Beacon:fg})}
17,enrollYubikey:function(){this.render(dg,{provider:"YUBICO",factorType:"token:hardware",Beacon:fg})},enrollSAMLFactor:function(){this.render(pg,{provider:"GENERIC_SAML",factorType:"assertion:saml2",Beacon:fg})},enrollOIDCFactor:function(){this.render(pg,{provider:"GENERIC_OIDC",factorType:"assertion:oidc",Beacon:fg})},enrollClaimsFactor:function(){this.render(pg,{provider:"CUSTOM",factorType:"claims_provider",Beacon:fg})},enrollActivateClaimsFactor:function(){this.render(pS,{provider:"CUSTOM",factorType:"claims_provider",Beacon:fg})},enrollTotpFactor:function(e,t){this.render(p3,{provider:e.toUpperCase(),factorType:t,Beacon:fg})},enrollHotpFactor:function(){this.render(pG,{provider:"CUSTOM",factorType:"token:hotp",Beacon:fg})},enrollWebauthn:function(){this.settings.get("features.webauthn")?this.render(dh,{provider:"FIDO",factorType:"webauthn",Beacon:fg}):this.render(dm,{provider:"FIDO",factorType:"webauthn",Beacon:fg})},enrollU2F:function(){this.render(p6,{provider:"FIDO",factorType:"u2f",Beacon:fg})},scanBarcodeTotpFactor:function(e,t){this.render(u8,{provider:e.toUpperCase(),factorType:t,Beacon:fg})},scanBarcodePushFactor:function(){this.render(u1,{provider:"OKTA",factorType:"push",Beacon:fg})},activateTotpFactor:function(e,t){this.render(uk,{provider:e.toUpperCase(),factorType:t,Beacon:fg})},manualSetupTotpFactor:function(e,t){this.render(d0,{provider:e.toUpperCase(),factorType:t,Beacon:fg})},manualSetupPushFactor:function(){this.render(dX,{provider:"OKTA",factorType:"push",Beacon:fg})},activationLinkSent:function(){this.render(dw,{provider:"OKTA",factorType:"push",Beacon:fg})},enterPasscodeInPushEnrollmentFlow:function(){this.render(d_,{provider:"OKTA",factorType:"token:software:totp",Beacon:fg})},passwordExpired:function(){this.render(hf,{Beacon:fs})},customPasswordExpired:function(){this.render(ps,{Beacon:fs})},forgotPassword:function(){this.render(dx)},recoveryChallenge:function(){this.render(hb,{Beacon:fs})},recoveryEmailSent:function(){this.render(hv,{Beacon:fs})},unlockEmailSent:function(){this.render(hM,{Beacon:fs})},recoveryQuestion:function(){this.render(hk,{Beacon:fs})},passwordReset:function(){this.render(hg,{Beacon:fs})},recoveryLoading:function(e){this.render(hw,{token:e,Beacon:fs})},unlockAccount:function(){this.render(hL)},accountUnlocked:function(){this.render(uo,{Beacon:fs})},refreshAuthState:function(e){this.render(h_,{token:e,Beacon:fs})},register:function(){this.render(hR)},registerComplete:function(){this.render(hS)},errorState:function(){this.render(hK,{Beacon:fs})},consentRequired:function(){this.render(pi)},adminConsentRequired:function(){this.render(uP)},enrollUser:function(){this.render(du)},deviceActivate:function(){this.render(pc)},deviceActivateComplete:function(){this.render(pf)}});let fb={IDENTIFY:"identify",SELECT_IDENTIFY:"select-identify",IDENTIFY_RECOVERY:"identify-recovery",SELECT_ENROLL_PROFILE:"select-enroll-profile",ENROLL_PROFILE:"enroll-profile",ENROLL_PROFILE_UPDATE:"profile-update",UNLOCK_ACCOUNT:"unlock-account",REQUEST_ACTIVATION:"request-activation-email",CONSENT_ADMIN:"admin-consent",CONSENT_ENDUSER:"consent",CONSENT_GRANULAR:"granular-consent",CONSENT_EMAIL_CHALLENGE:"email-challenge-consent",SELECT_AUTHENTICATOR_AUTHENTICATE:"select-authenticator-authenticate",SELECT_AUTHENTICATOR_UNLOCK:"select-authenticator-unlock-account",AUTHENTICATOR_VERIFICATION_DATA:"authenticator-verification-data",CHALLENGE_AUTHENTICATOR:"challenge-authenticator",CHALLENGE_WEBAUTHN_AUTOFILLUI_AUTHENTICATOR:"challenge-webauthn-autofillui-authenticator",CHALLENGE_POLL:"challenge-poll",RESEND:"resend",SELECT_AUTHENTICATOR_ENROLL:"select-authenticator-enroll",SELECT_AUTHENTICATOR_ENROLL_DATA:"select-authenticator-enroll-data",AUTHENTICATOR_ENROLLMENT_DATA:"authenticator-enrollment-data",ENROLL_AUTHENTICATOR:"enroll-authenticator",SELECT_ENROLLMENT_CHANNEL:"select-enrollment-channel",ENROLLMENT_CHANNEL_DATA:"enrollment-channel-data",ENROLL_POLL:"enroll-poll",REENROLL_AUTHENTICATOR:"reenroll-authenticator",REENROLL_AUTHENTICATOR_WARNING:"reenroll-authenticator-warning",REENROLL_CUSTOM_PASSWORD_EXPIRY:"reenroll-custom-password-expiry",REENROLL_CUSTOM_PASSWORD_EXPIRY_WARNING:"reenroll-custom-password-expiry-warning",RESET_AUTHENTICATOR:"reset-authenticator",
17SKIP:"skip",POLL:"poll",FAILURE_REDIRECT:"failure-redirect",SUCCESS_REDIRECT:"success-redirect",REDIRECT_IDP:"redirect-idp",REDIRECT_IDVERIFY:"redirect-idverify",PIV_IDP:"piv-idp",DEVICE_CHALLENGE_POLL:"device-challenge-poll",DEVICE_APPLE_SSO_EXTENSION:"device-apple-sso-extension",CANCEL_TRANSACTION:"cancel-transaction",LAUNCH_AUTHENTICATOR:"launch-authenticator",LAUNCH_WEBAUTHN_AUTHENTICATOR:"launch-webauthn-authenticator",ENROLL_WEBAUTHN_RESIDENTKEY:"enroll-webauthn-residentkey",LAUNCH_PASSKEYS_AUTHENTICATOR:"launch-passkeys-authenticator",DEVICE_ENROLLMENT_TERMINAL:"device-enrollment-terminal",USER_CODE:"user-code",KEEP_ME_SIGNED_IN:"keep-me-signed-in",DEVICE_ASSURANCE_GRACE_PERIOD:"device-assurance-grace-period",TERMINAL:"terminal"},fw=[fb.IDENTIFY,fb.SUCCESS_REDIRECT,fb.ENROLL_PROFILE,fb.DEVICE_ENROLLMENT_TERMINAL,fb.CONSENT_ADMIN,fb.CONSENT_ENDUSER,fb.CONSENT_GRANULAR,fb.CONSENT_EMAIL_CHALLENGE,fb.USER_CODE,fb.KEEP_ME_SIGNED_IN],fk=[fb.SELECT_AUTHENTICATOR_ENROLL,fb.SELECT_AUTHENTICATOR_AUTHENTICATE],f_=[fb.SELECT_AUTHENTICATOR_AUTHENTICATE,fb.CHALLENGE_AUTHENTICATOR,fb.CHALLENGE_POLL,fb.RESEND],fS={EMAIL:"okta_email",PASSWORD:"okta_password",PHONE:"phone_number",WEBAUTHN:"webauthn",SECURITY_QUESTION:"security_question",OV:"okta_verify",GOOGLE_OTP:"google_otp",ON_PREM:"onprem_mfa",RSA:"rsa_token",DUO:"duo",IDP:"external_idp",CUSTOM_OTP:"custom_otp",SYMANTEC_VIP:"symantec_vip",YUBIKEY:"yubikey_token",CUSTOM_APP:"custom_app",SMARTCARD:"smart_card_idp",TAC:"tac"},fE={PUSH:"push"},fT={[fb.SELECT_AUTHENTICATOR_UNLOCK]:rL.UNLOCK_ACCOUNT,[fb.IDENTIFY]:rL.PRIMARY_AUTH,[fb.IDENTIFY_RECOVERY]:rL.FORGOT_PASSWORD},fx="currentAuthenticator-recover",fO=[fb.TERMINAL,fb.DEVICE_ENROLLMENT_TERMINAL],fC={X509:"X509"},fA={DEFAULT:"DEFAULT",NONE:"NONE"},fP={COUNTRY_CODE:"country-code"},fN={IDV_PERSONA:"IDV_PERSONA",IDV_CLEAR:"IDV_CLEAR",IDV_INCODE:"IDV_INCODE",IDV_STANDARD:"IDV_STANDARD"};function fR(e=[]){var t,n,i;let o;let r=e.find(e=>e.relatesTo.key===fS.OV),a=null==r?void 0:null===(t=r.value)||void 0===t?void 0:null===(n=t.form)||void 0===n?void 0:null===(i=n.value)||void 0===i?void 0:i.find(e=>"methodType"===e.name),s=null==a?void 0:a.options;if(s){let t=[];s.forEach(e=>{let n=[...r.value.form.value],i=r.value.form.value.findIndex(e=>"methodType"===e.name),s=Object.assign(rN.omit(a,"options"),e);s.required=!0,s.mutable=!1,n.splice(i,1,s);let l=Object.assign({},r,{label:e.label,value:{form:{value:n}}});"signed_nonce"===e.value?o=l:t.push(l)});let n=e.findIndex(e=>e.relatesTo.key===fS.OV);e.splice(n,1,...t),o&&(r.relatesTo.deviceKnown?e.unshift(o):e.push(o))}}function fI(e=[]){return fR(e),e.map(e=>{var t,n,i;let o=((null===(t=e.value)||void 0===t?void 0:null===(n=t.form)||void 0===n?void 0:n.value)||[]).filter(e=>!0===e.required&&!1===e.mutable).reduce((e,t)=>Object.assign(e,{[t.name]:t.value}),{});return{label:e.label,value:o,relatesTo:e.relatesTo,authenticatorKey:null===(i=e.relatesTo)||void 0===i?void 0:i.key}})}async function fD(e){for(let t=0;t<e.length;t++)await e[t]()}async function fL(e){e&&e.before&&e.before.length&&await fD(e.before)}async function fM(e){e&&e.after&&e.after.length&&await fD(e.after)}rN.mixin({nestedOmit:function(e,t){let n=rN.omit(e,t);return t.includes(n.name)&&(n=rN.omit(n,"value")),rN.each(n,function(e,i){Array.isArray(e)?n[i]=e.map(e=>rN.nestedOmit(e,t)):"object"==typeof e&&(n[i]=rN.nestedOmit(e,t))}),n}});let fU={user:"object",currentFormName:"string",previousFormName:"string",idx:"object",remediations:"array",dynamicRefreshInterval:"number",deviceFingerprint:"string",hooks:"object"},fF={authenticatorProfile:{deps:["currentAuthenticator","currentAuthenticatorEnrollment"],fn:function(e={profile:void 0},t={profile:void 0}){return e.profile||t.profile||{}}},authenticatorKey:{deps:["currentAuthenticator","currentAuthenticatorEnrollment"],fn:function(e={key:void 0},t={key:void 0}){return e.key||t.key||""}},authenticatorMethodType:{deps:["currentAuthenticator","currentAuthenticatorEnrollment"],fn:function(e={methods:void 0},t={methods:void 0}){return e.methods&&e.methods[0].type||t.methods&&t.methods[0].type||""}},isPasswordRecovery:{deps:["recoveryAuthenticator"],fn:function(e={type:void 0}){return(null==e?void 0:e.type)==="password"}}};class fj extends su{constructor(e,t){super(e,t),this.settings=void 0,this.hooks=void 0,this.settings=t.settings,this.hooks=t.hooks}get(e){return su.prototype.get.call(this,e)}preinitialize(...e){this.local=fU,this.derived=fF,su.prototype.preinitialize.apply(this,e)}isIdentifierOnlyView(){var e,t,n;return!(null!==(e=this.get("remediations"))&&void 0!==e&&null!==(t=e.find(({name:e})=>"identify"===e))&&void 0!==t&&null!==(n=t.uiSchema)&&void 0!==n&&n.find(({name:e})=>"credentials.passcode"===e))}hasRemediationObject(e){return this.get("idx").neededToProceed.find(t=>t.name===e)}hasActionObject(e){var t,n;return!!(null!==(t=this.get("idx"))&&void 0!==t&&null!==(n=t.actions)&&void 0!==n&&n[e])}getRemediationAuthenticationOptions(e){let t=this.hasRemediationObject(e);
17if(!t)return[];let n=t.value.find(e=>"authenticator"===e.name),i=(null==n?void 0:n.options)||[];return fR(i=[...i]),i}getActionByPath(e){let t;let n=e.split(".");t=1===n.length?this.get("idx").actions:this.get(n.shift());let i=n.shift();return t&&rN.isFunction(t[i])?t[i]:null}getCurrentViewState(){let e=this.get("currentFormName");if(!e)return;let t=this.get("remediations").filter(t=>t.name===e)[0];if(!t){rQ.error("Panic!!"),rQ.error(` Cannot find view state for form ${e}.`);let t=this.get("remediations").map(e=>e.name);rQ.error(` All available form names: ${t}`)}return t}getSchemaByName(e){let t=this.getCurrentViewState();if(t)return t.uiSchema.find(({name:t})=>t===e)}getAuthenticatorDisplayName(){let e=this.get("currentAuthenticator")||{},t=this.get("currentAuthenticatorEnrollment")||{};return e.displayName||t.displayName}isAuthenticatorChallenge(){let e=this.get("currentFormName");return f_.includes(e)}shouldReRenderView(e){var t;if(null!=e&&null!==(t=e.idx)&&void 0!==t&&t.hasFormError)return!1;let n=this.has("idx")?this.get("idx").rawIdxState:null,i=rN.isEqual(rN.nestedOmit(e.idx.rawIdxState,["expiresAt","refresh","stateHandle","headers"]),rN.nestedOmit(n,["expiresAt","refresh","stateHandle","headers"]));return i&&this.set("dynamicRefreshInterval",this.getRefreshInterval(e)),this._isReRenderRequired(i,e,n)}getRefreshInterval(e){var t,n,i,o;let r=this.get("currentFormName");return e.remediations.filter(e=>e.name===r)[0].refresh||(null===(t=e.currentAuthenticatorEnrollment)||void 0===t?void 0:null===(n=t.poll)||void 0===n?void 0:n.refresh)||(null===(i=e.currentAuthenticator)||void 0===i?void 0:null===(o=i.poll)||void 0===o?void 0:o.refresh)}shouldShowSignOutLinkInCurrentForm(e){let t=this.get("idx")&&this.get("idx").actions,n=this.get("currentFormName");return!e&&rN.isFunction(null==t?void 0:t.cancel)&&!fw.includes(n)}containsMessageWithI18nKey(e){Array.isArray(e)||(e=[e]);let t=this.get("messages");return t&&Array.isArray(t.value)&&t.value.some(t=>{var n;return rN.contains(e,null===(n=t.i18n)||void 0===n?void 0:n.key)})}containsMessageStartingWithI18nKey(e){let t=this.get("messages");return t&&Array.isArray(t.value)&&t.value.some(t=>{var n;return null===(n=t.i18n)||void 0===n?void 0:n.key.startsWith(e)})}clearAppStateCache(){let e={};for(let t in this.attributes)"currentFormName"!==t&&(e[t]=void 0);this.set(e,Object.assign({},{unset:!0,silent:!0})),this.trigger("cache:clear")}chooseRemediation(e){var t,n;if(rN.isEmpty(e.remediations))return;let i=e.remediations[0];return"enroll-poll"===i.name&&this.get("authenticatorKey")===fS.OV&&(rK.isAndroid()||rK.isIOS())&&(null===(t=e.currentAuthenticator)||void 0===t?void 0:null===(n=t.contextualData)||void 0===n?void 0:n.selectedChannel)==="qrcode"?e.remediations.find(e=>"select-enrollment-channel"===e.name):i}async setIonResponse(e){let t=this.shouldReRenderView(e);if(this.clearAppStateCache(),this.set(e),t){var n;let t=this.chooseRemediation(e),i=null;t?i=t.name:(rQ.error("Panic!!"),rQ.error(" No remediation found."),rQ.error(" Here is the entire response"),rQ.error(JSON.stringify(e,null,2)));let o=null===(n=this.hooks)||void 0===n?void 0:n.getHook(i);await fL(o);let r=this.get("currentFormName");this.unset("currentFormName",{silent:!0}),this.set({currentFormName:i,previousFormName:r}),await fM(o)}}setNonIdxError(e){this.set("remediations",[{name:fb.TERMINAL}]),this.set("messages",{value:[{message:e.errorDetails.errorSummary,class:"ERROR"}]}),this.set("currentFormName",fb.TERMINAL)}getUser(){return this.get("user")}_isReRenderRequired(e,t,n){var i;let o=!0;return(null===(i=this.get("idx"))||void 0===i?void 0:i.hasFormError)&&this._isChallengeAuthenticatorPoll(t,n)&&(o=!1),e&&(o=!1,"poll"===this.get("currentFormName")?o=!0:fk.includes(this.get("currentFormName"))?o=!0:this.containsMessageWithI18nKey("idx.unknown.user")&&(o=!0)),o}_isChallengeAuthenticatorPoll(e,t){var n;let i=rN.isEqual(rN.nestedOmit(e.idx.rawIdxState,["expiresAt","refresh","stateHandle","headers"]),rN.nestedOmit(t,["expiresAt","refresh","stateHandle","messages","headers"])),o="challenge-authenticator"===this.get("currentFormName"),r=(null===(n=this.get("currentAuthenticatorEnrollment"))||void 0===n?void 0:n.key)===fS.EMAIL;return i&&o&&r}}let fV="osw-oie-state-handle",fB="osw-oie-last-initiated-login-url",fq="osw-oie-resend-timestamp";var f$={removeStateHandle:()=>{sessionStorage.removeItem(fV),sessionStorage.removeItem(fB)},setStateHandle:e=>{sessionStorage.setItem(fV,e),sessionStorage.setItem(fB,window.location.href)},getStateHandle:()=>sessionStorage.getItem(fV),getLastInitiatedLoginUrl:()=>sessionStorage.getItem(fB),removeResendTimestamp:()=>{sessionStorage.removeItem(fq)},setResendTimestamp:e=>{sessionStorage.setItem(fq,e)},getResendTimestamp:()=>sessionStorage.getItem(fq)};async function fH(e){let t=e.getAuthClient(),n=await t.idx.getSavedTransactionMeta();if(!n||!n.interactionHandle){let e={type:"array",value:[{message:"Enter the OTP in your original browser or device.",i18n:{key:"idx.enter.otp.in.original.tab"},class:"INFO"}]};return{neededToProceed:[],rawIdxState:{messages:e},context:{messages:e}}}let i=e.get("otp");return await t.idx.proceed({exchangeCodeForTokens:!1,otp:i})}let fW={DEFAULT:"default",PROCEED:"proceed",LOGIN:"login",REGISTRATION:"signup",RESET_PASSWORD:"resetPassword",UNLOCK_ACCOUNT:"unlockAccount"},fz=async e=>Promise.resolve({rawIdxState:e.get("proxyIdxResponse"),context:e.get("proxyIdxResponse"),neededToProceed:[]});async function fK(e){let t=e.getAuthClient(),{authParams:n}=e.toJSON({verbose:!0}),i=e.get("nonce")||(null==n?void 0:n.nonce),o={exchangeCodeForTokens:!1,...i&&{nonce:i}};if(e.get("proxyIdxResponse"))return fz(e);if(e.get("overrideExistingStateToken")&&f$.removeStateHandle(),e.get("otp"))return fH(e);if(e.get("oauth2Enabled")){if(!await t.idx.getSavedTransactionMeta()){let e=t.idx.getFlow();if(e&&e===fW.PROCEED)throw new rW("Unable to proceed: saved transaction could not be loaded",e);return t.idx.start(o)}return t.idx.proceed(o)}let r=f$.getStateHandle();if(r)try{var a,s;let n=await t.idx.start({...o,stateHandle:r});if((null===(a=n.context)||void 0===a?void 0:null===(s=a.messages)||void 0===s?void 0:s.value.length)>
170)throw Error("saved stateToken is invalid");return e.set("stateToken",r),n}catch{return f$.removeStateHandle(),fK(e)}let l=e.get("stateToken");if(l)return t.idx.start({...o,stateHandle:l});throw new rU('Invalid OIDC configuration. Set "clientId" and "redirectUri" in the widget options.')}async function fG(e,t,n){if(!e.neededToProceed.find(e=>e.name===t))return rQ.warn("Expected remediation not found, Org may be misconfigured for this flow"),e;try{return await e.proceed(t)}catch(t){if("string"==typeof t&&t.startsWith("Unknown remediation choice"))return rQ.warn(`flow [${n}] not valid with current Org configurations`),e;throw t}}async function fY(e,t="default"){switch(t){case fW.DEFAULT:case fW.PROCEED:case fW.LOGIN:case fW.REGISTRATION:case fW.RESET_PASSWORD:return e;case fW.UNLOCK_ACCOUNT:return await fG(e,fb.UNLOCK_ACCOUNT,t);default:throw rQ.warn(`Unknown \`flow\` value: ${t}`),new rU('Invalid "flow" configuration')}}async function fJ(e,t){let n=t.getAuthClient().idx.getFlow();return await fY(e,n)}async function fQ(e,t){let{interactionCode:n}=t,i=e.getAuthClient(),o=await i.idx.getSavedTransactionMeta(),r=i.options.state||(null==o?void 0:o.state),a="remediation"===e.get("mode");if(a&&i.idx.clearTransactionMeta(),"always"===e.get("redirect")){let t=e.get("redirectUri");if(!t)throw new rU('"redirectUri" is required');let i=ek({interaction_code:n,state:r});window.location.assign(t+i);return}if(a){e.callGlobalSuccess(rL.SUCCESS,{interaction_code:n,state:r});return}if(!o)throw new rU("Could not load transaction data from storage");let{codeVerifier:s}=o;return i.token.exchangeCodeForTokens({codeVerifier:s,interactionCode:n}).then(({tokens:t})=>{e.callGlobalSuccess(rL.SUCCESS,{tokens:t})}).catch(t=>{let n=uV(t);if(n instanceof uD&&n.is("terminal"))throw n;e.callGlobalError(t)}).finally(()=>{i.idx.clearTransactionMeta()})}let fX=e=>rN.isObject(e),fZ=e=>!!e.messages,f0=e=>{let t={};return rN.each(e,(e={},n)=>{"remediation"!==n&&("array"===e.type&&(t[n]={value:e.value}),"object"===e.type&&(t[n]=e.value))}),t},f1=e=>{let t=[],n=1===e.neededToProceed.length&&"skip"===e.neededToProceed[0].name;return(rN.isEmpty(e.neededToProceed)||n)&&(e.context.success?t.push({name:e.context.success.name,href:e.context.success.href,value:[]}):e.context.messages?t.push({name:fb.TERMINAL,value:[]}):e.context.deviceEnrollment&&t.push({name:fb.DEVICE_ENROLLMENT_TERMINAL,value:[]})),{remediations:[...t,...e.neededToProceed]}},f8=(e,t)=>{let n=t.remediations;if(0===n.filter(e=>"identify"===e.name).length)return t;let i=e.get("idps");if(Array.isArray(i)){let o={};n.forEach(e=>{e.name===fb.REDIRECT_IDP&&e.idp&&(o[e.idp.id]=!0)});let r=e.get("baseUrl"),a=t.idx.context.stateHandle,s=i.filter(e=>!o[e.id]).map(e=>{let t={id:e.id,name:e.text},n=`${r}/sso/idps/${e.id}?stateToken=${a}`;return e.className&&(t.className=e.className),{name:fb.REDIRECT_IDP,type:e.type,idp:t,href:n}});t.remediations=n.concat(s)}return t},f2=(e,t,n)=>{if(Array.isArray(t.remediations)){let i=t.remediations.filter(e=>e.name===fb.REDIRECT_IDP);if(1!==i.length||1!==t.remediations.length||e.get("oauth2Enabled")&&!n)return;let o={name:fb.SUCCESS_REDIRECT,href:i[0].href,value:[]};t.remediations=[o]}},f3=e=>{Array.isArray(e.remediations)&&e.remediations.forEach(t=>{var n,i;if(t.name===fb.REDIRECT_IDP&&(null==t?void 0:null===(n=t.relatesTo)||void 0===n?void 0:null===(i=n.value)||void 0===i?void 0:i.key)===fS.IDP){let n=Object.prototype.hasOwnProperty.call(e,"currentAuthenticatorEnrollment");t.name=n?"challenge-authenticator":"enroll-authenticator"}t.name===fb.REDIRECT_IDP&&t.type===fC.X509&&(t.name=fb.PIV_IDP)})},f4=e=>{let t=e.idx.context;return t.failure&&"failure-redirect"===t.failure.name},f6=(e,t)=>{let n=t.idx.context,i=e.get("oauth2Enabled"),o="always"===e.get("redirect");if(i&&!o)return;let r={name:fb.FAILURE_REDIRECT,href:n.failure.href,value:[]};t.remediations=[r]},f5=(e,t={},n=null)=>{if(!fX(t.rawIdxState))return null;let i=Object.assign({},f0(t.rawIdxState),f1(t),{idx:t});return fZ(i)&&f4(i)&&f6(e,i),f8(e,i),f3(i),fZ(i)||f2(e,i,n),i},f9=({label:e,type:t,required:n})=>({placeholder:e,label:!1,modelType:t,type:"checkbox",required:n||!1}),f7=({label:e,required:t,options:n})=>({displayName:e,type:"radio",required:t,options:n[0].value.value.options,sublabel:t?null:cq("oie.form.field.optional","login")}),me=({label:e,type:t})=>({placeholder:e,label:!1,modelType:t,type:"checkbox",required:!0,value:!1});var mt={GMT:"UTC",WET:"WET",CET:"CET",MET:"CET",ECT:"CET",EET:"EET",MIT:"Pacific/Apia",HST:"Pacific/Honolulu",AST:"America/Anchorage",PST:"America/Los_Angeles",MST:"America/Denver",PNT:"America/Phoenix",CST:"America/Chicago",EST:"America/Ne
17w_York",IET:"America/Indiana/Indianapolis",PRT:"America/Puerto_Rico",CNT:"America/St_Johns",AGT:"America/Argentina/Buenos_Aires",BET:"America/Sao_Paulo",ART:"Africa/Cairo",CAT:"Africa/Harare",EAT:"Africa/Addis_Ababa",NET:"Asia/Yerevan",PLT:"Asia/Karachi",IST:"Asia/Kolkata",BST:"Asia/Dhaka",VST:"Asia/Ho_Chi_Minh",CTT:"Asia/Shanghai",JST:"Asia/Tokyo",ACT:"Australia/Darwin",AET:"Australia/Sydney",SST:"Pacific/Guadalcanal",NST:"Pacific/Auckland"};let mn=e=>{let t={};return e.forEach(({value:e,label:n})=>{t[e]=n}),t},mi=e=>({type:"password",params:{showPasswordToggle:e.get("showPasswordToggle")}}),mo=()=>({type:"captcha"}),mr={type:"select",wide:!0},ma=e=>e.indexOf("methodType")>=0||e.indexOf("channel")>=0,ms=["text","radio","select"],ml=(e,t)=>{var n;let i=null==t?void 0:null===(n=t.value)||void 0===n?void 0:n.value;e.type=i.inputType,"radio"===i.inputType?e.options=i.options:"select"===i.inputType&&(e.wide=!0,i.format===fP.COUNTRY_CODE?e.options=Object.assign({"":""},pO.getCountryCode()):e.options=Object.assign({"":""},mn(i.options)))},mc=(e,t)=>{e.type="radio",t.value=t.options[0].value},mu={string:(e,t,n,i,o)=>{let r={type:"text"};if(!0===e.secret&&Object.assign(r,mi(o)),"captcha"===e.hint&&Object.assign(r,mo()),"userProfile.timezone"===e.name&&(Object.assign(r,mr),r.options=Object.assign({"":""},mt)),Array.isArray(e.options)&&e.options[0]&&e.options[0].value){let t=e.options[0];"display"===t.label?ml(r,t):ma(e.name)?mc(r,e):(r.type="select",r.wide=!0,r.options=mn(e.options))}return!1===e.required&&ms.includes(r.type)&&(r.sublabel=cq("oie.form.field.optional","login")),r},boolean:(e,t)=>{var n,i,o,r,a,s;if([fb.CONSENT_ENDUSER,fb.CONSENT_ADMIN].includes(t.name)){let n=t.scopes.map(({name:e,label:t,desc:n})=>({name:e,displayName:t,description:n}));return{type:t.name,scopes:n,options:e.options}}return Array.isArray(e.options)&&(null===(n=e.options[0])||void 0===n?void 0:null===(i=n.value)||void 0===i?void 0:null===(o=i.value)||void 0===o?void 0:o.inputType)==="radio"?f7(e):Array.isArray(e.options)&&(null===(r=e.options[0])||void 0===r?void 0:null===(a=r.value)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.inputType)==="checkbox"?me(e):f9(e)},object:function(e,t,n,i,o){let r={};return"authenticator"===e.name&&("select-authenticator-authenticate"===t.name||"select-authenticator-unlock-account"===t.name)?Object.assign(r,function({options:e}){return{type:"authenticatorVerifySelect",options:fI(e)}}(e)):"authenticator"===e.name&&"select-authenticator-enroll"===t.name?Object.assign(r,function({options:e}){return{type:"authenticatorEnrollSelect",options:fI(e)}}(e)):Array.isArray(e.options)&&(r.optionsUiSchemas=e.options.map(t=>i(n,{value:[{name:e.name,value:t.value}]},o)),r.options=e.options.map((e,t)=>({label:e.label,value:t})),r.type="radio",r.value="0",r.name=`sub_schema_local_${e.name}`),r}},mp=(e,t,n)=>rN.chain(t.value||[]).filter(e=>!1!==e.visible).map(e=>{var t;let n;if(e.form?n=e.form:null!==(t=e.value)&&void 0!==t&&t.form&&(n=e.value.form),!n)return e;{let t=e.name;return n.value.map(e=>Object.assign({},e,{name:t+"."+e.name}))}}).flatten().value().map(i=>{let o={"label-top":!0,multirowError:!0,"data-se":`o-form-fieldset-${i.name}`},r=(0,mu[i.type||"string"])(i,t,e,mp,n);return Object.assign({},i,o,r)}),md=(e,t)=>(t&&(t.remediations=t.remediations.map(n=>(n.uiSchema=mp(t,n,e),n))),t),mh={DEFAULT:"Security Key or Biometric",PASSKEYS:"Passkeys"},mf={ENROLL_TITLE:{DEFAULT:"oie.enroll.webauthn.title",PASSKEYS:"oie.enroll.webauthn.passkeysRebrand.passkeys.title",CUSTOM:"oie.enroll.webauthn.passkeysRebrand.custom.title"},VERIFY_TITLE:{DEFAULT:"oie.verify.webauth.title",PASSKEYS:"oie.verify.webauth.passkeysRebrand.passkeys.title",CUSTOM:"oie.verify.webauth.passkeysRebrand.custom.title"},DESCRIPTION:{DEFAULT:"oie.webauthn.description",PASSKEYS:"oie.webauthn.passkeysRebrand.passkeys.description",CUSTOM:"oie.webauthn.description"},SELECT_ENROLL_LABEL:{DEFAULT:"oie.select.authenticator.enroll.webauthn.label",PASSKEYS:"oie.select.authenticator.enroll.webauthn.passkeysRebrand.passkeys.label",CUSTOM:"oie.select.authenticator.enroll.webauthn.passkeysRebrand.custom.label"},SELECT_VERIFY_LABEL:{DEFAULT:"oie.select.authenticator.verify.webauthn.label",PASSKEYS:"oie.select.authenticator.verify.webauthn.passkeysRebrand.passkeys.label",CUSTOM:"oie.select.authenticator.verify.webauthn.passkeysRebrand.custom.label"},LABEL:{DEFAULT:"oie.webauthn.label",PASSKEYS:"oie.webauthn.passkeysRebrand.passkeys.label",CUSTOM:"oie.webauthn.label"}},mm=e=>!!(e&&e!==mh.DEFAULT&&e!==mh.PASSKEYS),mg=(e,t)=>"string"==typeof e?e:e&&"object"==typeof e?t===mh.PASSKEYS&&e.PASSKEYS?e.PASSKEYS:mm(t)&&e.CUSTOM?e.CUSTOM:e.DEFAULT||null:null,my=e=>mm(e)&&e?[e]:[],{getPasswordComplexityDescriptionForHtmlList:mv}=uh,mb=(e,t=!1)=>{var n,i;let o=null==e?void 0:null===(n=e.relatesTo)||void 0===n?void 0:null===(i=n.value)||void 0===i?void 0:i.displayName,r=my(o);return r3(mg(t?mf.VERIFY_TITLE:mf.ENROLL_TITLE,o),"login",r)},mw=(e,t,n)=>{if(n)return"";if(mm(t)){var i;return(null===(i=e.relatesTo)||void 0===i?void 0:i.description)||r3(mg(mf.DESCRIPTION,mh.DEFAULT),"login")}return r3(mg(mf.DESCRIPTION,t),"login",[])},mk=e=>{var t,n;return(null==e?void 0:null===(t=e.relatesTo)||void 0===t?void 0:null===(n=t.value)||void 0===n?void 0:n.description)||null},m_=function(e){if(e.authenticatorKey){var t,n;let i=null!==(t=e.value)&&void 0!==t&&t.methodType?"-"+(null===(n=e.value)||void 0===n?void 0:n.methodType):"";return e.authenticatorKey+i}return""},mS=function(e,t){var n,i,o,r,a,s,l,c,u,p,d,h,f,m,g,y,v,b,w,k;let _=e.authenticatorKey,S=rN.isString(_)?_.toLowerCase():"",E={},T=t?null===(n=e.relatesTo)||void 0===n?void 0:n.nickname:void 0;switch(S){case fS.EMAIL:Object.assign(E,{description:t?(null===(i=e.relatesTo)||void 0===i?void 0:null===(o=i.profile)||void 0===o?void 0:o.email)||"":r3("oie.email.authenticator.de
17scription","login"),iconClassName:"mfa-okta-email",noTranslateClassName:t?"no-translate":"",buttonDataSeAttr:m_(e),ariaLabel:t?(w=null===(r=e.relatesTo)||void 0===r?void 0:null===(a=r.profile)||void 0===a?void 0:a.email)?r3("oie.select.authenticator.verify.email.with.email.label","login",[w]):r3("oie.select.authenticator.verify.email.label","login"):r3("oie.select.authenticator.enroll.email.label","login")});break;case fS.PASSWORD:Object.assign(E,{description:t?"":r3("oie.password.authenticator.description","login"),iconClassName:"mfa-okta-password",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.password.label","login"):r3("oie.select.authenticator.enroll.password.label","login")});break;case fS.PHONE:Object.assign(E,{nickname:T,description:t?null===(s=e.relatesTo)||void 0===s?void 0:null===(l=s.profile)||void 0===l?void 0:l.phoneNumber:r3("oie.phone.authenticator.description","login"),iconClassName:"mfa-okta-phone",noTranslateClassName:t?"no-translate":"",buttonDataSeAttr:m_(e),ariaLabel:t?(k=null===(c=e.relatesTo)||void 0===c?void 0:null===(u=c.profile)||void 0===u?void 0:u.phoneNumber)?r3("oie.select.authenticator.verify.phone.with.phone.label","login",[k]):r3("oie.select.authenticator.verify.phone.label","login"):r3("oie.select.authenticator.enroll.phone.label","login")});break;case fS.SECURITY_QUESTION:Object.assign(E,{description:t?"":r3("oie.security.question.authenticator.description","login"),iconClassName:"mfa-okta-security-question",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.security.question.label","login"):r3("oie.select.authenticator.enroll.security.question.label","login")});break;case fS.WEBAUTHN:{let n=null===(d=e.relatesTo)||void 0===d?void 0:d.displayName,i=my(n),o=mw(e,n,t),r=t?mg(mf.SELECT_VERIFY_LABEL,n):mg(mf.SELECT_ENROLL_LABEL,n);Object.assign(E,{description:o,iconClassName:"mfa-webauthn",buttonDataSeAttr:m_(e),ariaLabel:r3(r,"login",i)});break}case fS.OV:Object.assign(E,{description:t?r3("oie.okta_verify.label","login"):r3("oie.okta_verify.authenticator.description","login"),iconClassName:"mfa-okta-verify",buttonDataSeAttr:m_(e),ariaLabel:function(e,t){if(!e)return r3("oie.select.authenticator.enroll.okta_verify.authenticator.label","login");let n=r3("oie.select.authenticator.verify.okta_verify.label","login");return void 0===t?n:({push:r3("oie.select.authenticator.okta_verify.push.label","login"),totp:r3("oie.select.authenticator.okta_verify.totp.label","login"),signed_nonce:r3("oie.select.authenticator.okta_verify.signed_nonce.label","login")})[t]||n}(t,null==e?void 0:null===(p=e.value)||void 0===p?void 0:p.methodType)});break;case fS.GOOGLE_OTP:Object.assign(E,{description:t?"":r3("oie.google_authenticator.authenticator.description","login"),iconClassName:"mfa-google-auth",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case fS.ON_PREM:{let n=(null===(h=e.relatesTo)||void 0===h?void 0:h.displayName)||r3("oie.on_prem.authenticator.default.vendorName","login");Object.assign(E,{description:t?"":r3("oie.on_prem.authenticator.description","login",[n]),iconClassName:"mfa-onprem",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break}case fS.RSA:Object.assign(E,{description:t?"":r3("oie.rsa.authenticator.description","login"),iconClassName:"mfa-rsa",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case fS.DUO:Object.assign(E,{description:t?"":r3("oie.duo.authenticator.description","login"),iconClassName:"mfa-duo",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case fS.IDP:{let n=null===(f=e.relatesTo)||void 0===f?void 0:f.displayName;
17Object.assign(E,{description:t?"":r3("oie.idp.authenticator.description","login",[n]),iconClassName:"mfa-custom-factor",buttonDataSeAttr:m_(e),logoUri:(null==e?void 0:null===(m=e.relatesTo)||void 0===m?void 0:m.logoUri)||"",ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break}case fS.CUSTOM_OTP:Object.assign(E,{description:t?"":r3("oie.custom_otp.description","login"),iconClassName:"mfa-hotp",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case fS.SYMANTEC_VIP:{let n=null===(g=e.relatesTo)||void 0===g?void 0:g.displayName;Object.assign(E,{description:t?"":r3("oie.symantecVip.authenticator.description","login",[n]),iconClassName:"mfa-symantec",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break}case fS.YUBIKEY:Object.assign(E,{description:t?"":r3("oie.yubikey.authenticator.description","login"),iconClassName:"mfa-yubikey",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case fS.CUSTOM_APP:Object.assign(E,{description:t?null==e?void 0:null===(y=e.relatesTo)||void 0===y?void 0:y.displayName:r3("oie.custom.app.authenticator.description","login",[e.label]),noTranslateClassName:t?"no-translate":"",buttonDataSeAttr:m_(e),iconClassName:"mfa-custom-app-logo",logoUri:(null==e?void 0:null===(v=e.relatesTo)||void 0===v?void 0:v.logoUri)||"",ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[null==e?void 0:null===(b=e.relatesTo)||void 0===b?void 0:b.displayName]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case fS.SMARTCARD:Object.assign(E,{description:t?"":r3("oie.smartcard.authenticator.description","login"),iconClassName:"mfa-smartcard",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case fS.TAC:Object.assign(E,{description:t?"":r3("oie.tac.authenticator.description","login"),iconClassName:"mfa-tac",buttonDataSeAttr:m_(e),ariaLabel:t?r3("oie.select.authenticator.verify.named.authenticator.label","login",[e.label]):r3("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])})}return E},mE=function(e){let t={};switch(e){case fN.IDV_PERSONA:t={iconClassName:"mfa-idv-persona"};break;case fN.IDV_CLEAR:t={iconClassName:"mfa-idv-clear"};break;case fN.IDV_INCODE:t={iconClassName:"mfa-idv-incode"};break;case fN.IDV_STANDARD:t={iconClassName:"mfa-idv-standard"}}return t};function mT(e){var t,n;return null===(t=e.relatesTo)||void 0===t?void 0:null===(n=t.value)||void 0===n?void 0:n.displayName}let mx="authfactor.webauthn.error",mO="passkeys.authfactor.webauthn.error",mC="oie.webauthn.label",mA=["enroll-authenticator.security_question.credentials.questionKey.","challenge-authenticator.security_question.credentials.questionKey."],mP={"identify.identifier":"primaryauth.username.placeholder","select-authenticator-unlock-account.identifier":"primaryauth.username.placeholder","unlock-account.identifier":"primaryauth.username.placeholder","identify.credentials.passcode":"primaryauth.password.placeholder","identify.rememberMe":"oie.remember","enroll-profile.userProfile.rememberMe":"oie.remember","identify-recovery.identifier":"password.forgot.email.or.username.placeholder","select-authenticator-enroll.authenticator.duo":"factor.duo","select-authenticator-enroll.authenticator.google_otp":"oie.google_authenticator.label","select-authenticator-enroll.authenticator.okta_email":"oie.email.label","select-authenticator-enroll.authenticator.okta_password":"oie.password.label","select-authenticator-enroll.authenticator.okta_verify":"oie.okta_verify.label","select-authenticator-enroll.authenticator.phone_number":"oie.ph
17one.label","select-authenticator-enroll.authenticator.rsa_token":"factor.totpHard.rsaSecurId","select-authenticator-enroll.authenticator.security_question":"oie.security.question.label","select-authenticator-enroll.authenticator.symantec_vip":"factor.totpHard.symantecVip","select-authenticator-enroll.authenticator.webauthn":mC,"select-authenticator-enroll.authenticator.yubikey_token":"oie.yubikey.label","select-authenticator-authenticate.authenticator.duo":"factor.duo","select-authenticator-authenticate.authenticator.google_otp":"oie.google_authenticator.label","select-authenticator-authenticate.authenticator.okta_email":"oie.email.label","select-authenticator-authenticate.authenticator.okta_password":"oie.password.label","select-authenticator-authenticate.authenticator.okta_verify.push":"oie.okta_verify.push.title","select-authenticator-authenticate.authenticator.okta_verify.signed_nonce":"oie.okta_verify.signed_nonce.label","select-authenticator-authenticate.authenticator.okta_verify.totp":"oie.okta_verify.totp.title","select-authenticator-authenticate.authenticator.phone_number":"oie.phone.label","select-authenticator-authenticate.authenticator.rsa_token":"factor.totpHard.rsaSecurId","select-authenticator-authenticate.authenticator.security_question":"oie.security.question.label","select-authenticator-authenticate.authenticator.symantec_vip":"factor.totpHard.symantecVip","select-authenticator-authenticate.authenticator.webauthn":mC,"select-authenticator-authenticate.authenticator.yubikey_token":"oie.yubikey.label","select-authenticator-authenticate.authenticator.custom_app":"oie.custom.app.authenticator.title","select-authenticator-authenticate.authenticator.tac":"oie.tac.label","select-authenticator-unlock-account.authenticator.okta_email":"oie.email.label","select-authenticator-unlock-account.authenticator.phone_number":"oie.phone.label","select-authenticator-unlock-account.authenticator.okta_verify.push":"oie.okta_verify.push.title","authenticator-verification-data.okta_verify.authenticator.methodType.signed_nonce":"oie.okta_verify.signed_nonce.label","authenticator-verification-data.okta_verify.authenticator.methodType.push":"oie.okta_verify.push.title","authenticator-verification-data.okta_verify.authenticator.methodType.totp":"oie.okta_verify.totp.title","authenticator-enrollment-data.phone_number.authenticator.phoneNumber":"mfa.phoneNumber.placeholder","authenticator-enrollment-data.phone_number.authenticator.methodType.sms":"oie.phone.enroll.sms.label","authenticator-enrollment-data.phone_number.authenticator.methodType.voice":"oie.phone.enroll.voice.label","enroll-authenticator.okta_password.credentials.passcode":"oie.password.passwordLabel","enroll-authenticator.okta_email.credentials.passcode":"mfa.challenge.enterCode.placeholder","enroll-authenticator.phone_number.credentials.passcode":"mfa.challenge.enterCode.placeholder","enroll-authenticator.security_question.sub_schema_local_credentials.0":"oie.security.question.questionKey.label","enroll-authenticator.security_question.sub_schema_local_credentials.1":"oie.security.question.createQuestion.label","enroll-authenticator.security_question.credentials.answer":"mfa.challenge.answer.placeholder","enroll-authenticator.security_question.credentials.question":"oie.security.question.createQuestion.label","enroll-authenticator.security_question.credentials.questionKey":"oie.security.question.questionKey.label","enroll-authenticator.google_otp.credentials.passcode":"oie.google_authenticator.otp.enterCodeText","enroll-authenticator.onprem_mfa.credentials.clientData":"enroll.onprem.username.placeholder","enroll-authenticator.onprem_mfa.credentials.passcode":"enroll.onprem.passcode.placeholder","enroll-authenticator.rsa_token.credentials.clientData":"enroll.onprem.username.placeholder","enroll-authenticator.rsa_token.credentials.passcode":"enroll.onprem.passcode.placeholder","enroll-authenticator.symantec_vip.credentials.credentialId":"enroll.symantecVip.credentialId.placeholder","enroll-authenticator.symantec_vip.credentials.passcode":"enroll.symantecVip.passcode1.placeholder","enroll-authenticator.symantec_vip.credentials.nextPasscode":"enroll.symantecVip.passcode2.placeholder","enroll-authenticator.yubikey_token.credentials.passcode":"oie.yubikey.passcode.label","enrollment-channel-data.email":"oie.enroll.okta_verify.channel.email.label","enrollment-channel-data.phoneNumber":"mfa.phoneNumber.placeholder","select-enrollment-channel.authenticator.channel.qrcode":"oie.enroll.okta_verify.select.channel.qrcode.label","select-enrollment-channel.authenticator.channel.email":"oie.enroll.okta_verify.select.channel.email.label","select-enrollment-channel.authenticator.channel.sms":"oie.enroll.okta_verify.select.channel.sms.label","challenge-authenticator.okta_email.credentials.passcode":"mfa.challenge.enterCode.placeholder","challenge-authenticator.okta_password.credentials.passcode":"mfa.challenge.password.placeholder","challenge-authenticator.phone_number.credentials.passcode":"mfa.challenge.enterCode.placeholder","challenge-authenticator.security_question.credentials.answer":"mfa.challenge.answer.placeholder","challenge-authenticator.okta_verify.credentials.totp":"oie.okta_verify.totp.enterCodeText","challenge-authenticator.google_otp.credentials.passcode":"oie.google_authenticator.otp.enterCodeText","challenge-authenticator.onprem_mfa.credentials.passcode":"mfa.challenge.enterCode.placeholder","challenge-authenticator.rsa_token.credentials.passcode":"mfa.challenge.enterCode.placeholder","challenge-authenticator.custom_otp.credentials.passcode":"oie.custom_otp.verify.passcode.label","challenge-authenticator.symantec_vip.credentials.passcode":"oie.symantecVip.verify.passcode.label","challenge-authenticator.tac.credentials.passcode":"oie.custom_otp.verify.passcode.label","challenge-authenticator.yubikey_token.credentials.passcode":"oie.yubikey.passcode.label","challenge-authenticator.credentials.passcode":"oie.password.label","reset-authenticator.okta_password.credentials.passcode":"oie.password.newPasswordLabel","reset-authenticator.okta_password.confirmPassword":"oie.password.confirmPasswordLabel","reset-authenticator.okta_password.credentials.revokeSessions":"password.reset.revokeSessions","reenroll-authenticator.okta_password.credentials.passcode":"oie.password.newPasswordLabel","reenroll-authenticator.okta_password.confirmPassword":"oie.password.confirmPasswordLabel","reenroll-authenticator.okta_password.credentials.revokeSessions":"password.reset.revokeSessions","reenroll-authenticator-warning.okta_password.credentials.passcode":"oie.password.newPasswordLabel","reenroll-authenticator-warning.okta_password.confirmPassword":"oie.password.confirmPasswordLabel","reenroll-authenticator-warning.okta_password.credentials.revokeSessions":"password.reset.revokeSessions","enroll-authenticator.okta_password.confirmPassword":"oie.password.confirmPasswordLabel","enroll-authenticator.okta_password.credentials.revokeSessions":"password.reset.revokeSessions",incorrectPassword:"oie.password.incorrect.message","profile-update.userProfile.secondEmail":"oie.user.profile.secondary.email","user-code.userCode":"device.code.activate.label","api.authn.poll.error.push_rejected":"oktaverify.rejected","oie.authenticator.duo.method.duo.verification_timeout":"oie.authenticator.duo.error","oie.authenticator.duo.method.duo.verification_failed":"oie.authenticator.duo.error","idx.email.verification.required":"registration.complete.confirm.text",tooManyRequests:"oie.tooManyRequests","api.users.auth.error.POST_PASSWORD_UPDATE_AUTH_FAILURE":"oie.post.password.update.auth.failure.error","security.access_de
17nied":"errors.E0000006",E0000009:"errors.E0000009",E0000020:"errors.E0000020","api.factors.error.sms.invalid_phone":"oie.phone.invalid","app.ldap.password.reset.failed":"errors.E0000017","oie.selfservice.unlock_user.challenge.failed.permissions":"errors.E0000006","core.auth.factor.signedNonce.error.invalidEnrollment":"core.auth.factor.signedNonce.error","core.auth.factor.signedNonce.error.invalidFactor":"core.auth.factor.signedNonce.error","core.auth.factor.signedNonce.error.deletedDevice":"core.auth.factor.signedNonce.error","core.auth.factor.signedNonce.error.invalidDeviceStatus":"core.auth.factor.signedNonce.error.invalidDevice","challenge-poll.custom_app.autoChallenge":"autoPush","challenge-poll.okta_verify.autoChallenge":"autoPush","authenticator-verification-data.authenticator.autoChallenge":"autoPush","authenticator-verification-data.okta_verify.authenticator.autoChallenge":"autoPush","authenticator-verification-data.custom_app.authenticator.autoChallenge":"autoPush","enroll-profile.userProfile.login":"oie.user.profile.login","enroll-profile.userProfile.lastName":"oie.user.profile.lastname","enroll-profile.userProfile.firstName":"oie.user.profile.firstname","enroll-profile.userProfile.email":"oie.user.profile.primary.email","enroll-profile.userProfile.secondEmail":"oie.user.profile.secondary.email","enroll-profile.userProfile.middleName":"oie.user.profile.middleName","enroll-profile.userProfile.honorificPrefix":"oie.user.profile.honorificPrefix","enroll-profile.userProfile.honorificSuffix":"oie.user.profile.honorificSuffix","enroll-profile.userProfile.title":"oie.user.profile.title","enroll-profile.userProfile.displayName":"oie.user.profile.displayName","enroll-profile.userProfile.nickName":"oie.user.profile.nickName","enroll-profile.userProfile.profileUrl":"oie.user.profile.profileUrl","enroll-profile.userProfile.mobilePhone":"oie.user.profile.mobilePhone","enroll-profile.userProfile.primaryPhone":"oie.user.profile.primaryPhone","enroll-profile.userProfile.streetAddress":"oie.user.profile.streetAddress","enroll-profile.userProfile.city":"oie.user.profile.city","enroll-profile.userProfile.state":"oie.user.profile.state","enroll-profile.userProfile.zipCode":"oie.user.profile.zipCode","enroll-profile.userProfile.postalCode":"oie.user.profile.postalCode","enroll-profile.userProfile.countryCode":"oie.user.profile.countryCode","enroll-profile.userProfile.postalAddress":"oie.user.profile.postalAddress","enroll-profile.userProfile.preferredLanguage":"oie.user.profile.preferredLanguage","enroll-profile.userProfile.locale":"oie.user.profile.locale","enroll-profile.userProfile.timezone":"oie.user.profile.timezone","enroll-profile.userProfile.userType":"oie.user.profile.userType","enroll-profile.userProfile.employeeNumber":"oie.user.profile.employeeNumber","enroll-profile.userProfile.costCenter":"oie.user.profile.costCenter","enroll-profile.userProfile.organization":"oie.user.profile.organization","enroll-profile.userProfile.division":"oie.user.profile.division","enroll-profile.userProfile.department":"oie.user.profile.department","enroll-profile.userProfile.managerId":"oie.user.profile.managerId","enroll-profile.userProfile.manager":"oie.user.profile.manager","enroll-profile.credentials.passcode":"oie.password.label"},mN={[fb.ENROLL_AUTHENTICATOR]:{[fS.ON_PREM]:{getParam:mT},[fS.RSA]:{getParam:mT}}},mR={"registration.error.invalidLoginEmail":{Email:"Email"},"registration.error.doesNotMatchPattern":{Email:"Email"},"registration.error.notUniqueWithinOrg":{Email:"Email"}},mI=(e,t)=>{let n=e;return mR[n][t]?n+=`.${t}`:n+=".custom",n},mD=(e,t)=>{let n=[],i=e.name;if(t===fS.WEBAUTHN){var o,r;let t=null==e?void 0:null===(o=e.relatesTo)||void 0===o?void 0:null===(r=o.value)||void 0===r?void 0:r.displayName;if(mm(t))return n.push(t),n}if(mN[i]&&mN[i][t]){let o=mN[i][t].getParam(e);n.push(o)}return n},mL=(e,t=null)=>{let n;if(mA.forEach(t=>{if(0===e.indexOf(t)){let i=e.replace(t,"");n=`security.${i}`}}),"select-authenticator-enroll.authenticator.webauthn"===e||"select-authenticator-authenticate.authenticator.webauthn"===e){var i,o;let e=null==t?void 0:null===(i=t.relatesTo)||void 0===i?void 0:null===(o=i.value)||void 0===o?void 0:o.displayName;if(mm(e))return null;n=mg(mf.LABEL,e)}else mP[e]&&(n=mP[e]);return n&&!r8.login[n]&&(rQ.warn(`expect i18n key ${n} for ${e} but not found in 'login' bundle.`),n=null),n},mM=e=>!!r8.login[e],mU=(e,t,n=[],i=null)=>{let o=mL(e,i);return o?r3(o,"login",n):(rQ.warn(`Avoid rendering unlocalized text sent from the API: ${t}`),t)},mF=e=>e.startsWith(mx),mj=e=>e.startsWith(mO),mV=e=>{var t,n,i,o;if(null!==(t=e.i18n)&&void 0!==t&&t.key){let t=e.i18n.key,r=e.i18n.params||[];if(1===r.length&&""===r[0]&&(r=[]),mP[null===(n=e.i18n)||void 0===n?void 0:n.key])t=mP[null===(i=e.i18n)||void 0===i?void 0:i.key];else if(mR[t]){let n=null===(o=e.i18n.params)||void 0===o?void 0:o[0];r=(t=mI(t,n)).endsWith("custom")?[n]:[]}if(r8.login[t])return rQ.info(`Override messages using i18n key ${t}`),r3(t,"login",r);if(mF(t))return r3(mx,"login");if(mj(t))return r3(mO,"login");if(t.startsWith("device.assurance.custom.remediation."))return e.message}return rQ.warn(`Avoid rendering unlocalized text sent from the API: ${e.message}`),e.message},mB=e=>{if(e.name){let t=`oie.browser.error.${e.name}`;if(r8.login[t])return rQ.info(`Override messages using i18n key ${t}`),r3(t,"login")}return e.message},mq=e=>{var t;return(null==e?void 0:null===(t=e.i18n)||void 0===t?void 0:t.key)||""},m$=(e,t)=>{var n;let i=null===(n=t.get("languageCode"))||void 0===n?void 0:n.toLowerCase(),o=t.get("i18n");return null!=o&&Object.entries(o).some(([t,n])=>t.toLowerCase()===i&&!!n[e])},mH=(e,t)=>{var n,i;if(!1===t.mutable&&0>t.name.indexOf("questionKey"))return;rQ.info("i18n label transformer"),rQ.info(" remediationName: ",e.name),rQ.info(" uiSchema: ",JSON.stringify(t));let o=null===(n=e.relatesTo)||void 0===n?void 0:null===(i=n.value)||void 0===i?void 0:i.key,r=o?`.${e.relatesTo.value.key}`:"",a=`${e.name}${r}.`,s=`${a}${t.name}`;if("text"===t.type&&t.name.indexOf("questionKey")>=0&&"custom"!==t.value&&(s=`${s}.${t.value}`),"checkbox"===t.type&&t.placeholder&&(rQ.info(" 1: ",s),t.placeholder=mU(s,t.placeholder)),t.label){rQ.info(" 2: ",s);let n=mD(e,o);t.label=t.customLabel?t.label:mU(s,t.label,n,e)}
17sh.isPlainObject(t.options)&&(t.options=rN.mapObject(t.options,(e,t)=>{let n=`${s}.${t}`;return rQ.info(" 3: ",n),mU(n,e)})),Array.isArray(t.options)&&t.options.forEach(t=>{let n;if(!t.label)return;if(t.authenticatorKey){var i;n=`${s}.${t.authenticatorKey}`;let e=null===(i=t.value)||void 0===i?void 0:i.methodType;t.authenticatorKey===fS.OV&&e&&(n=`${n}.${e}`)}else n="string"==typeof t.value||"number"==typeof t.value?`${s}.${t.value}`:s;rQ.info(" 4: ",n);let o=t.relatesTo?{...e,relatesTo:{value:t.relatesTo}}:e,r=mD(o,t.authenticatorKey);t.label=mU(n,t.label,r,o)}),Array.isArray(t.optionsUiSchemas)&&t.optionsUiSchemas.forEach(t=>{t.forEach(t=>mH(e,t))})};var mW=e=>{var t;return Array.isArray(e.remediations)&&e.remediations.filter(e=>Array.isArray(e.uiSchema)&&e.uiSchema.length).forEach(e=>{e.uiSchema.forEach(t=>mH(e,t))}),Array.isArray(null===(t=e.messages)||void 0===t?void 0:t.value)&&e.messages.value.forEach(e=>{e.message=mV(e)}),e};async function mz(e,t){var n;let i=e.settings,o=e.get("idx");if(i.get("oauth2Enabled")){if(t.interactionCode){f$.removeStateHandle();let n=await fQ(i,t);return e.unset("currentFormName",{silent:!0}),n}}else o&&f$.setStateHandle(null==t?void 0:null===(n=t.context)||void 0===n?void 0:n.stateHandle),e.get("currentFormName")===fb.CANCEL_TRANSACTION&&f$.removeStateHandle();let r=rN.compose(mW,md.bind({},i),f5.bind({},i))(t,o);await e.setIonResponse(r)}function mK(e){e.details=e.details||{};let{details:t}=e;if(t.rawIdxState=t.rawIdxState||{},t.context=t.context||{},t.neededToProceed=t.neededToProceed||[],!t.rawIdxState.messages){let e={type:"array",value:[{message:cq("oform.error.unexpected","login"),class:"ERROR",i18n:void 0}]};t.rawIdxState.messages=e,t.context.messages=e}return e}function mG(e){var t,n,i,o;return("string"==typeof e&&(e=Error(e)),(null==(t=e)?void 0:t.error)==="invalid_request"&&"The recovery token is invalid"===t.error_description)?function(e){let t=mK(e),{details:n}=t,i={type:"array",value:[{message:e.error_description,i18n:{key:"oie.invalid.recovery.token"},class:"ERROR"}]};return n.rawIdxState.messages=i,n.context.messages=i,t}(e):(null==(n=e)?void 0:n.error)==="invalid_request"&&"The activation token is invalid"===n.error_description?function(e){let t=mK(e),{details:n}=t,i={type:"array",value:[{message:e.error_description,i18n:{key:"idx.missing.activation.token"},class:"ERROR"}]};return n.rawIdxState.messages=i,n.context.messages=i,t}(e):(null==(i=e)?void 0:i.error)==="access_denied"&&i.error_description?function(e){let{details:t}=mK(e),n={type:"array",value:[{message:e.error_description,i18n:{key:"oie.feature.disabled"},class:"ERROR"}]};return t.rawIdxState.messages=n,t.context.messages=n,e}(e):(null==(o=e)?void 0:o.error)&&o.error_description?function(e){let{details:t}=mK(e),n={type:"array",value:[{message:cq("oie.configuration.error","login"),class:"ERROR",i18n:void 0}]};return t.rawIdxState.messages=n,t.context.messages=n,e}(e):e=mK(e)}let mY=(e,t=[])=>rN.chain(t).filter(e=>{var t;return Array.isArray(null===(t=e.messages)||void 0===t?void 0:t.value)&&e.messages.value.length}).map(t=>({property:e?`${e}.${t.name}`:t.name,errorSummary:t.messages.value.map(mV),errorKey:t.messages.value.map(mq)})).value(),mJ=(e,t)=>{if(!Array.isArray(e))return[];if(!rN.isFunction(t)||1===e.length)return e;let n=[];for(let i=0;i<e.length;i++){let o=!1;for(let n=i+1;n<e.length;n++)if(t(e[i],e[n])){o=!0;break}o||n.push(e[i])}return n},mQ=e=>{let t=[];if(!e.remediation||!Array.isArray(e.remediation.value)||0===e.remediation.value.length)return t;let n=e.remediation.value[0].value;return Array.isArray(n)?(t.push(mY(null,n)),rN.each(n,e=>{var n;let i=e.name;Array.isArray(null===(n=e.form)||void 0===n?void 0:n.value)&&t.push(mY(i,e.form.value)),Array.isArray(e.options)&&rN.each(e.options,e=>{var n,o;Array.isArray(null===(n=e.value)||void 0===n?void 0:null===(o=n.form)||void 0===o?void 0:o.value)&&t.push(mY(i,e.value.form.value))})}),mJ(rN.flatten(t),rN.isEqual)):t},mX=e=>{var t;let n=[];return Array.isArray(null===(t=e.messages)||void 0===t?void 0:t.value)&&(n=e.messages.value.map(mV)),n.join(". ")},mZ=e=>{var t;let n=[];return Array.isArray(null===(t=e.messages)||void 0===t?void 0:t.value)&&(n=e.messages.value.map(mq)),n};var m0={convertFormErrors:e=>({responseJSON:{errorCauses:mQ(e),errorSummary:mX(e),errorSummaryKeys:mZ(e),errorIntent:e.intent}}),isIonErrorResponse:(e={})=>e.version,isIdxSessionExpiredError:e=>{var t,n,i,o;let r=null==e?void 0:null===(t=e.context)||void 0===t?void 0:null===(n=t.messages)||void 0===n?void 0:null===(i=n.value[0])||void 0===i?void 0:null===(o=i.i18n)||void 0===o?void 0:o.key;return r&&"idx.session.expired"===r}};class m1 extends cW{constructor(e){super(e),this.Events=a2.Events,this.hasControllerRendered=!1,this.settings=void 0,this.appState=void 0,this.hooks=void 0,this.header=void 0,e.globalSuccessFn||(e.globalSuccessFn=function(){}),e.globalErrorFn||(e.globalErrorFn=function(e){rQ.error(e)}),this.settings=new h2(rN.omit(e,"el","hooks"),{parse:!0}),e.el||this.settings.callGlobalError(new rU(cq("error.required.el"))),sh("body > div").on("click",function(){}),this.hooks=e.hooks,this.appState=new fj({},{settings:this.settings,hooks:this.hooks});let t=new h3({appState:this.appState});sh(e.el).append(t.render().$el),this.el=`#${rL.WIDGET_CONTAINER_ID}`,this.header=new fo({el:this.el,appState:this.appState,settings:this.settings}),this.hide(),this.listenTo(this.appState,"change:deviceFingerprint",this.updateDeviceFingerprint),this.listenTo(this.appState,"restartLoginFlow",this.restartLoginFlow)}updateDeviceFingerprint(){let e=this.settings.getAuthClient(),t=this.appState.get("deviceFingerprint");t&&e.http.setRequestHeader("X-Device-Fingerprint",t)}async handleIdxResponseFailure(e={error:"unknown",details:void 0}){e=mG(e),await mz(this.appState,e.details)}async handleError(e={error:"unknown",details:void 0}){let t=mG({...e});await mz(this.appState,t.details)}async render(e,t={}){let n;f$.getLastInitiatedLoginUrl()!==window.location.href&&f$.removeStateHandle(),this.header.rendered()||(this.el=this.header.render().getContentEl()),r8.isLoaded(this.settings.get("languageCode"))||await hX(this.appState,this.settings);try{let e=await fK(this.settings);e.error?await this.handleIdxResponseFailure(e.error):(this.settings.get("flow")&&!this.hasControllerRendered&&(e=await fJ(e,this.settings)),!e.requestDidSucceed&&m0.isIdxSessionExpiredError(e)&&this.settings.getAuthClient().transactionManager.clear(),await mz(this.appState,e))}catch(e){var i;null!==(i=e.is)&&void 0!==i&&i.call(e,"terminal")?this.appState.setNonIdxError(e):(n=e,await this.handleError(e))}finally{this.settings.unset("stateToken"),this.settings.unset("proxyIdxResponse")}if(this.settings.get("colors.brand")&&!fl.isLoaded()){let e={brand:this.settings.get("colors.brand")},t=this.settings.get("cspNonce");fl.addStyle(e,t)}this.show(),this.unload();let o=rN.extend({el:this.el,settings:this.settings,appState:this.appState},t);this.controller=new e(o),this.listenTo(this.controller,"all",this.trigger),this.controller.render(),this.hasControllerRendered=!0,n&&this.settings.callGlobalError(n)}updateIdentifierCookie(e){if(this.settings.get("features.rememberMe")){var t;let n=null==e?void 0:null===(t=e.context)||void 0===t?void 0:t.user,{identifier:i}=(null==n?void 0:n.value)||{};i&&dC.setUsernameCookie(i)}else dC.removeUsernameCookie()}hasAuthenticationSucceeded(e){var t,n;return(null==e?void 0:null===(t=e.rawIdxState)||void 0===t?void 0:t.success)||(null==e?void 0:null===(n=e.rawIdxState)||void 0===n?void 0:n.successWithInteractionCode)}restartLoginFlow(e){var t;this.settings.getAuthClient().transactionManager.clear(),this.appState.set("idx",void 0);let n=this.settings.getAuthClient();delete n.options.recoveryToken,this.settings.unset("recoveryToken"),this.settings.unset("otp"),this.controller.stopListening(),n.idx.setFlow(null!==(t=null!=e?e:this.settings.get("flow"))&&void 0!==t?t:"default"),this.render(this.controller.constructor)}start(){let e=rK.supportsPushState();cW.prototype.start.call(this,{pushState:e})}hide(){this.header.$el.hide()}show(){this.header.$el.show()}remove(){this.unload(),this.header.$el.remove(),this.stopListening(this.appState),this.stopListening(this.settings),r8.remove(),a2.history.stop()}}m1.prototype.Events=a2.Events;var m8=cH.extend({HeaderBeacon:null,initialize:function(){this.HeaderBeacon&&this.add(this.HeaderBeacon)},postRender:function(){let e=sh(`#${rL.WIDGET_CONTAINER_ID}`);if(this.HeaderBeacon){e.removeClass("no-beacon");let t=this.$el.find('[data-type="beacon-container"]');h4.explode(t)}else e.addClass("no-beacon")}}),m2=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"label")||(null!=t?a(t,"label"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:o,loc:{start:{line:1,column:0},end:{line:1,column:9}}}):r)},useData:!0}
17),tagName:"a",attributes:function(){let e=this.options.href||"#",t="_blank"!==this.options.target||this.options.rel?this.options.rel:"noopener noreferrer";return{"data-se":this.options.name,href:e,target:this.options.target,rel:t}},className:function(){let e=["link"];if(this.options.name){let t=this.options.name.replace(/[ ]/g,"-");e.push(`js-${t}`)}return e.join(" ")},postRender:function(){this.options.href||this.$el.click(e=>{e.preventDefault();let{appState:t,formName:n,actionPath:i,clickHandler:o}=this.options;o?o():n?t.trigger("switchForm",n):i&&t.trigger("invokeAction",i)})}}),m3=cH.extend({initialize:function(){cH.prototype.initialize.apply(this,arguments);let e=this.options.additionalOptions,t=this.options.name,n=Object.assign({},this.options,{type:"link","aria-expanded":!1,clickHandler:function(){sh(e.selector).slideToggle(200,()=>{sh(`.js-${t}`).attr("aria-expanded",sh(e.selector).is(":visible"))})}});this.add(m2,{options:n}),this.add(e.view)},postRender:function(){let e=this.options.additionalOptions;this.$(e.selector).hide()}});let{ENROLLED_PASSWORD_RECOVERY_LINK:m4,ORG_PASSWORD_RECOVERY_LINK:m6}={ENROLLED_PASSWORD_RECOVERY_LINK:"currentAuthenticatorEnrollment-recover",ORG_PASSWORD_RECOVERY_LINK:fx},m5=e=>e.getRemediationAuthenticationOptions(fb.SELECT_AUTHENTICATOR_AUTHENTICATE).length>1?[{type:"link",label:cq("oie.verification.switch.authenticator","login"),name:"switchAuthenticator",formName:fb.SELECT_AUTHENTICATOR_AUTHENTICATE}]:e.getRemediationAuthenticationOptions(fb.SELECT_AUTHENTICATOR_ENROLL).length>=1?[{type:"link",label:cq("oie.enroll.switch.authenticator","login"),name:"switchAuthenticator",formName:fb.SELECT_AUTHENTICATOR_ENROLL}]:[],m9=(e,t)=>{let n={type:"link",label:cq("forgotpassword","login"),name:"forgot-password"},i=t.get("helpLinks.forgotPassword");return i?[Object.assign({},{href:i,label:cq("forgotpassword","login"),name:"forgot-password"})]:e.getActionByPath(m6)?[Object.assign({},n,{actionPath:m6})]:e.getActionByPath(m4)?[Object.assign({},n,{actionPath:m4})]:[]},m7=(e,t)=>e.hasRemediationObject(fb.SKIP)?[{type:"link",label:null!=t?t:cq("oie.enroll.skip.setup","login"),name:"skip-setup",actionPath:fb.SKIP}]:[],ge=(e,t={})=>null!=e&&e.get("backToSignInUri")?[{label:cq("goback","login"),name:"cancel",href:e.get("backToSignInUri")}]:[{actionPath:"cancel",label:t.label?t.label:cq("goback","login"),name:"cancel",type:"link"}],gt=({settings:e,appState:t})=>{let n={};return null!=e&&e.get("backToSignInUri")?n.href=e.get("backToSignInUri"):null!=e&&e.get("oauth2Enabled")?n.clickHandler=()=>{t.trigger("restartLoginFlow")}:n.href=null==e?void 0:e.get("baseUrl"),[{type:"link",label:cq("goback","login"),name:"go-back",...n}]},gn=()=>[{type:"link",label:cq("oie.try.again","login"),name:"try-again",href:window.location,className:"button button-primary text-align-c"}],gi=(e,t)=>{let n=[];if(e.hasRemediationObject(fb.SELECT_ENROLL_PROFILE)){let e={type:"link",label:cq("oie.registration.form.title","login"),name:"enroll"};rN.isFunction(t.get("registration.click"))?e.clickHandler=t.get("registration.click"):e.actionPath=fb.SELECT_ENROLL_PROFILE,n.push(e)}return n},go=e=>{let t;let n=e.get("helpLinks.gracePeriodRequiredSoon.text"),i=e.get("helpLinks.gracePeriodRequiredSoon.href");return n&&i&&(t={type:"link",label:n,name:"gracePeriodRequiredSoonCustomLink",href:i,target:"_blank"}),t},gr=(e,t)=>{let n=[],i=[fb.CHALLENGE_AUTHENTICATOR,fb.SELECT_AUTHENTICATOR_AUTHENTICATE,fb.CHALLENGE_POLL,fb.AUTHENTICATOR_VERIFICATION_DATA];if(!e.get("isPasswordRecovery")&&i.includes(e.get("currentFormName"))){let e=t.get("helpLinks.factorPage.text"),i=t.get("helpLinks.factorPage.href");e&&i&&n.push({type:"link",label:e,name:"factorPageHelpLink",href:i,target:"_blank"})}return n};var ga=cH.extend({className:"auth-footer",links:[],footerInfo:null,hasBackToSignInLink:!0,initialize:function(){let e=rN.resultCtx(this,"links",this),t=rN.resultCtx(this,"footerInfo",this),n=rN.resultCtx(this,"hasBackToSignInLink",this);e=Array.isArray(e)?e.filter(e=>sh.isPlainObject(e)):[],this.options.appState.shouldShowSignOutLinkInCurrentForm(this.options.settings.get("features.hideSignOutLinkInMFA")||this.settings.get("features.mfaOnlyFlow"))&&n&&(e=e.concat(ge(this.options.settings))),e.forEach(e
vendor: 7,167 bytes, line 17
17=>{let t=m2;"toggle-text-link"===e.type&&(t=m3),this.add(t,{options:e})}),t&&(this.add(cH.extend({className:"footer-info"})),this.add(t,".footer-info"))}});let gs="authenticatorChallenge-cancel",gl="IDENTIFIER",gc={ANY:"any",SSO:"sso",RECOVERY:"recovery"},gu={LOOPBACK_FAILURE:"OV_UNREACHABLE_BY_LOOPBACK",OV_ERROR:"OV_RETURNED_ERROR",USER_CANCELED:"USER_CANCELED"},gp=cH.extend({className:"authenticator-row clearfix",template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="factor-icon authenticator-icon '+l("function"==typeof(r=null!=(r=c(n,"iconClassName")||(null!=t?c(t,"iconClassName"):t))?r:s)?r.call(a,{name:"iconClassName",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:117}}}):r)+' custom-app-logo" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:o,loc:{start:{line:1,column:158},end:{line:1,column:213}}}))+'"></div>'},3:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="factor-icon authenticator-icon '+l("function"==typeof(r=null!=(r=c(n,"iconClassName")||(null!=t?c(t,"iconClassName"):t))?r:s)?r.call(a,{name:"iconClassName",hash:{},data:o,loc:{start:{line:1,column:272},end:{line:1,column:289}}}):r)+'" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:o,loc:{start:{line:1,column:314},end:{line:1,column:369}}}))+'"></div>'},5:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="authenticator-grace-period-required-icon"></span><div class="authenticator-grace-period-text-container"><p class="authenticator-grace-period-required-description">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"gracePeriodRequiredDescription")||(null!=t?l(t,"gracePeriodRequiredDescription"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"gracePeriodRequiredDescription",hash:{},data:o,loc:{start:{line:1,column:702},end:{line:1,column:736}}}):a)+"</p>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"gracePeriodExpiry"):t,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:740},end:{line:1,column:847}}}))?r:"")+"</div>"},6:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-grace-period-expiry-date">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"gracePeriodExpiry")||(null!=t?a(t,"gracePeriodExpiry"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"gracePeriodExpiry",hash:{},data:o,loc:{start:{line:1,column:815},end:{line:1,column:836}}}):r)+"</p>"},8:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"gracePeriodRemainingSkipsDescription"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.program(11,o,0),data:o,loc:{start:{line:1,column:853},end:{line:1,column:1335}}}))?r:""},9:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="authenticator-grace-period-required-icon"></span><div class="authenticator-grace-period-text-container"><p class="authenticator-grace-period-skip-count-description">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"gracePeriodRemainingSkipsDescription")||(null!=t?a(t,"gracePeriodRemainingSkipsDescription"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"gracePeriodRemainingSkipsDescription",hash:{},data:o,loc:{start:{line:1,column:1079},end:{line:1,column:1119}}}):r)+"</p></div></span>"},11:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"description"):t,{name:"if",hash:{},fn:e.program(12,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:1144},end:{line:1,column:1232}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"authenticatorUsageText"):t,{name:"if",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:1232},end:{line:1,column:1335}}}))?r:"")},12:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-description--text">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"description")||(null!=t?a(t,"description"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:o,loc:{start:{line:1,column:1206},end:{line:1,column:1221}}}):r)+"</p>"},14:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-usage-text">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"authenticatorUsageText")||(null!=t?a(t,"authenticatorUsageText"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"authenticatorUsageText",hash:{},data:o,loc:{start:{line:1,column:1298},end:{line:1,column:1324}}}):r)+"</p>"},16:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'data-se="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"buttonDataSeAttr")||(null!=t?a(t,"buttonDataSeAttr"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"buttonDataSeAttr",hash:{},data:o,loc:{start:{line:1,column:1409},end:{line:1,column:1429}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="authenticator-icon-container">'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"logoUri"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:1,column:42},end:{line:1,column:384}}}))?r:"")+'</div><div class="authenticator-description"><h3 class="authenticator-label no-translate">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"label")||(null!=t?l(t,"label"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"label",hash:{},data:o,loc:{start:{line:1,column:474},end:{line:1,column:483}}}):a)+"</h3>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"gracePeriodRequiredDescription"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.program(8,o,0),data:o,loc:{start:{line:1,column:488},end:{line:1,column:1342}}}))?r:"")+'<div class="authenticator-button" '+(null!=(r=l(n,"if").call(s,null!=t?l(t,"buttonDataSeAttr"):t,{name:"if",hash:{},fn:e.program(16,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:1376},end:{line:1,column:1437}}}))?r:"")+"></div></div>"},useData:!0}
17),postRender:function(){cH.prototype.postRender.apply(this,arguments),this.model.get("logoUri")&&(this.el.querySelector(".custom-app-logo").style.backgroundImage=`url(${this.model.get("logoUri")})`)},children:function(){return[[lf({className:"button select-factor",title:function(){return cq("oie.enroll.authenticator.button.text","login")},attributes:{"aria-label":this.model.get("ariaLabel")},click:function(){this.model.trigger("selectAuthenticator",this.model.get("value"))}}),".authenticator-button"]]},minimize:function(){this.$el.addClass("authenticator-row-min")},getTemplateData:function(){let e;let t=this.model.get("relatesTo").allowedFor;if(t)switch(t){case gc.ANY:e=cq("oie.enroll.authenticator.usage.text.access.recovery","login");break;case gc.RECOVERY:e=cq("oie.enroll.authenticator.usage.text.recovery","login");break;case gc.SSO:e=cq("oie.enroll.authenticator.usage.text.access","login")}let n=cH.prototype.getTemplateData.apply(this,arguments);n.authenticatorUsageText=e;let i=this._getGracePeriodData();return{...n,...i}},_getGracePeriodData:function(){var e,t,n,i,o,r,a,s,l,c;let u={},p=Date.now(),d=new Date(null===(e=this.model.get("relatesTo"))||void 0===e?void 0:null===(t=e.gracePeriod)||void 0===t?void 0:t.expiry).getTime();if(!isNaN(d)&&p<d){let e=ud.calculateDaysBetween(p,d);1===e?u.gracePeriodRequiredDescription=cq("oie.enrollment.policy.grace.period.required.in.one.day","login"):e>1?u.gracePeriodRequiredDescription=cq("oie.enrollment.policy.grace.period.required.in.days","login",[e]):u.gracePeriodRequiredDescription=cq("oie.enrollment.policy.grace.period.required.today","login"),d&&(u.gracePeriodExpiry=ud.formatDateToDeviceAssuranceGracePeriodExpiryLocaleString(new Date(d),this.settings.get("languageTags"),!1))}else null!==(n=this.model.get("relatesTo"))&&void 0!==n&&null!==(i=n.gracePeriod)&&void 0!==i&&i.remainingSkips&&(null===(o=this.model.get("relatesTo"))||void 0===o?void 0:null===(r=o.gracePeriod)||void 0===r?void 0:r.remainingSkips)>0&&((null===(a=this.model.get("relatesTo"))||void 0===a?void 0:null===(s=a.gracePeriod)||void 0===s?void 0:s.remainingSkips)===1?u.gracePeriodRemainingSkipsDescription=cq("oie.enrollment.policy.grace.period.required.in.one.skip","login"):u.gracePeriodRemainingSkipsDescription=cq("oie.enrollment.policy.grace.period.required.in.number.of.skips","login",[null===(l=this.model.get("relatesTo"))||void 0===l?void 0:null===(c=l.gracePeriod)||void 0===c?void 0:c.remainingSkips]));return u}});var gd=lA.extend({className:"authenticator-enroll-list authenticator-list",item:gp,itemSelector:".list-content",initialize:function(){this.listenTo(this.collection,"selectAuthenticator",function(e){this.model.set(this.options.name,e),this.options.appState.trigger("saveForm",this.model)}),this.hasOptionalFactors=this.options.appState.hasRemediationObject(fb.SKIP)},template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-list-subtitle">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:o,loc:{start:{line:1,column:134},end:{line:1,column:146}}}):r)+"</p>"},3:function(e,t,n,i,o){var r,a=e.lambda,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="authenticator-list-subtitle-link-container"><a href='+s(a(null!=(r=null!=t?l(t,"subtitleLinkOptions"):t)?l(r,"href"):r,t))+' target="_blank" rel="noopener noreferrer">'+s(a(null!=(r=null!=t?l(t,"subtitleLinkOptions"):t)?l(r,"label"):r,t))+"</a></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="list-content"><div class="authenticator-list-title">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"title")||(null!=t?l(t,"title"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"title",hash:{},data:o,loc:{start:{line:1,column:64},end:{line:1,column:73}}}):a)+"</div>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"subtitle"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:79},end:{line:1,column:157}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"subtitleLinkOptions"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:157},end:{line:1,column:365}}}))?r:"")+"</div>"},useData:!0}
17),getTemplateData:function(){let e=this.hasOptionalFactors?cq("oie.setup.optional","login"):cq("oie.setup.required","login");return{title:this.options.listTitle||e,subtitle:this.options.listSubtitle||null,subtitleLinkOptions:this.options.listSubtitleLinkOptions||null}}});let gh=lf({className:"button-primary button skip-all",title:function(){return cq("oie.setup.remind.me.later","login")},click:function(){this.options.appState.trigger("invokeAction",fb.SKIP)}}),gf=lf({className:"button-primary button skip-all",title:function(){return cq("oie.optional.authenticator.button.title","login")},click:function(){this.options.appState.trigger("invokeAction",fb.SKIP)}});var gm=cH.extend({className:"authenticator-enroll-list-container",initialize:function(){var e;let t=[],n=[],i=e=>{let t=Date.now(),n=new Date(e).getTime();return!isNaN(n)&&t<n};this.options.optionItems.forEach(e=>{var o,r,a,s,l,c,u,p;let d=(null===(o=e.relatesTo)||void 0===o?void 0:null===(r=o.gracePeriod)||void 0===r?void 0:r.expiry)&&i(null===(a=e.relatesTo)||void 0===a?void 0:null===(s=a.gracePeriod)||void 0===s?void 0:s.expiry),h=(null===(l=e.relatesTo)||void 0===l?void 0:null===(c=l.gracePeriod)||void 0===c?void 0:c.remainingSkips)&&(null===(u=e.relatesTo)||void 0===u?void 0:null===(p=u.gracePeriod)||void 0===p?void 0:p.remainingSkips)>0;d||h?t.push(e):n.push(e)}),this.hasSkipRemediation=!!this.options.appState.hasRemediationObject(null==fb?void 0:fb.SKIP),this.hasOnlyOptional=this.hasSkipRemediation&&(null==t?void 0:t.length)===0,this.hasOnlyGracePeriod=this.hasSkipRemediation&&(null===(e=this.options.optionItems)||void 0===e?void 0:e.length)===(null==t?void 0:t.length),n.length&&this.add(new gd({...this.options,collection:new sn(n),optionItems:n,listTitle:this.hasOnlyOptional?cq("oie.setup.optional.short","login"):cq("oie.setup.required.now","login")})),t.length&&this.add(new gd({...this.options,collection:new sn(t),optionItems:t,listTitle:cq("oie.setup.required.soon","login"),listSubtitle:cq("oie.setup.required.soon.description","login"),listSubtitleLinkOptions:go(this.options.settings)})),this.hasOnlyGracePeriod?this.add(gh):this.hasOnlyOptional&&this.add(gf)}});let gg=cH.extend({className:"authenticator-row clearfix",template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="factor-icon authenticator-icon '+l("function"==typeof(r=null!=(r=c(n,"iconClassName")||(null!=t?c(t,"iconClassName"):t))?r:s)?r.call(a,{name:"iconClassName",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:117}}}):r)+' custom-logo" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:o,loc:{start:{line:1,column:154},end:{line:1,column:209}}}))+'"></div>'},3:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="factor-icon authenticator-icon '+l("function"==typeof(r=null!=(r=c(n,"iconClassName")||(null!=t?c(t,"iconClassName"):t))?r:s)?r.call(a,{name:"iconClassName",hash:{},data:o,loc:{start:{line:1,column:268},end:{line:1,column:285}}}):r)+'" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:o,loc:{start:{line:1,column:310},end:{line:1,column:365}}}))+'"></div>'},5:function(e,t,n,i,o){return"authenticator-label--small"},7:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-description--text '+c(typeof(r=null!=(r=u(n,"noTranslateClassName")||(null!=t?u(t,"noTranslateClassName"):t))?r:s)===l?r.call(a,{name:"noTranslateClassName",hash:{},data:o,loc:{start:{line:1,column:603},end:{line:1,column:627}}}):r)+'">
17'+c(typeof(r=null!=(r=u(n,"description")||(null!=t?u(t,"description"):t))?r:s)===l?r.call(a,{name:"description",hash:{},data:o,loc:{start:{line:1,column:629},end:{line:1,column:644}}}):r)+"</p>"},9:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-enrollment-nickname '+c(typeof(r=null!=(r=u(n,"noTranslateClassName")||(null!=t?u(t,"noTranslateClassName"):t))?r:s)===l?r.call(a,{name:"noTranslateClassName",hash:{},data:o,loc:{start:{line:1,column:715},end:{line:1,column:739}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"nickname")||(null!=t?u(t,"nickname"):t))?r:s)===l?r.call(a,{name:"nickname",hash:{},data:o,loc:{start:{line:1,column:741},end:{line:1,column:753}}}):r)+"</p>"},11:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'data-se="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"buttonDataSeAttr")||(null!=t?a(t,"buttonDataSeAttr"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"buttonDataSeAttr",hash:{},data:o,loc:{start:{line:1,column:837},end:{line:1,column:857}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="authenticator-icon-container">'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"logoUri"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:1,column:42},end:{line:1,column:380}}}))?r:"")+'</div><div class="authenticator-description"><div><h3 class="authenticator-label no-translate '+(null!=(r=l(n,"if").call(s,null!=t?l(t,"description"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:474},end:{line:1,column:526}}}))?r:"")+'">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"label")||(null!=t?l(t,"label"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"label",hash:{},data:o,loc:{start:{line:1,column:528},end:{line:1,column:537}}}):a)+"</h3>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"description"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:542},end:{line:1,column:655}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"nickname"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:655},end:{line:1,column:764}}}))?r:"")+'</div><div class="authenticator-button" '+(null!=(r=l(n,"if").call(s,null!=t?l(t,"buttonDataSeAttr"):t,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:804},end:{line:1,column:865}}}))?r:"")+"></div></div>"},useData:!0}),postRender:function(){cH.prototype.postRender.apply(this,arguments);let e=this.model.get("logoUri");e&&(this.el.querySelector(".custom-logo").style.backgroundImage=`url(${e})`)},children:function(){return[[lf({className:"button select-factor",title:function(){return cq("oie.verify.authenticator.button.text","login")},attributes:{"aria-label":this.model.get("ariaLabel")},click:function(){this.model.trigger("selectAuthenticator",this.model.get("value"))}}),".authenticator-button"]]},minimize:function(){this.$el.addClass("authenticator-row-min")}});var gy=lA.extend({className:"authenticator-verify-list authenticator-list",item:gg,itemSelector:".list-content",initialize:function(){this.listenTo(this.collection,"selectAuthenticator",this.handleSelect),this.listenTo(this.model,"invalid",this.handleModelInvalid)},handleModelInvalid:function(e,t){this.options.name in t&&!this.model.get(this.options.name)&&this.showAuthenticatorRequiredError()},showAuthenticatorRequiredError:function(){let e=this.collection.length>1?cq("account.unlock.authenticatorRequired.multiple","login"):cq("account.unlock.authenticatorRequired.single","login");this.model.trigger("error",this.model,{responseJSON:{errorSummary:e}})},handleSelect:function(e){var t;let n=this.model.validateField("identifier");this.model.trigger("clearFormError"),null!==(t=this.model.getPropertySchema("identifier"))&&void 0!==t&&t.required&&n?this.model.trigger("invalid",this.model,n):(this.model.set(this.options.name,e),this.options.appState.trigger("saveForm",this.model))},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="list-content"></div>'},useData:!0}
17)});let gv="OktaSignInWidgetOnCaptchaLoaded",gb="OktaSignInWidgetOnCaptchaSolved";var gw=cH.extend({className:"captcha-view",template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id ="captcha-container" class="'+c(typeof(r=null!=(r=u(n,"className")||(null!=t?u(t,"className"):t))?r:s)===l?r.call(a,{name:"className",hash:{},data:o,loc:{start:{line:1,column:63},end:{line:1,column:76}}}):r)+'" data-sitekey="'+c(typeof(r=null!=(r=u(n,"siteKey")||(null!=t?u(t,"siteKey"):t))?r:s)===l?r.call(a,{name:"siteKey",hash:{},data:o,loc:{start:{line:1,column:92},end:{line:1,column:103}}}):r)+'" data-callback="'+c(typeof(r=null!=(r=u(n,"onCaptchaSolvedCallback")||(null!=t?u(t,"onCaptchaSolvedCallback"):t))?r:s)===l?r.call(a,{name:"onCaptchaSolvedCallback",hash:{},data:o,loc:{start:{line:1,column:120},end:{line:1,column:147}}}):r)+'" data-size="invisible"></div>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isCaptchaConfigured"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:184}}}))?r:""},useData:!0}),getTemplateData:function(){if(!this.captchaConfig)return{};{let e;return e="ALTCHA"===this.captchaConfig.type?"altcha-captcha":"HCAPTCHA"===this.captchaConfig.type?"h-captcha":"g-recaptcha",{siteKey:this.captchaConfig.siteKey,isCaptchaConfigured:!0,onCaptchaSolvedCallback:gb,className:e}}},initialize:function(){this.options.appState.get("captcha")&&(this.captchaConfig=this.options.appState.get("captcha"),this._addCaptcha())},remove:function(){cH.prototype.remove.apply(this,arguments),"HCAPTCHA"===this.captchaConfig.type?window.hcaptcha=void 0:"RECAPTCHA_V2"===this.captchaConfig.type&&(window.grecaptcha=void 0)},_addCaptcha:function(){let e=e=>{let t=this._getCaptchaOject(),n=this.$el.find("#captcha-container").attr("data-captcha-id");t.reset(n);let i=this.options.name;this.model.set(i,e)},t=t=>{e(t),this.options.appState.trigger("saveForm",this.model)},n=t=>{e(t),this.options.appState.trigger("altchaSolved")},i=()=>{this.$el.find("#captcha-container").attr("data-captcha-id")||this.model.set(this.options.name,"tempToken")},o=()=>({error:cq("altcha.error.label","login"),expired:cq("altcha.expired.label","login"),label:cq("altcha.label.label","login"),loading:cq("altcha.loading.label","login"),reload:cq("altcha.reload.label","login"),verify:cq("altcha.verify.label","login"),verificationRequired:cq("altcha.verificationRequired.label","login"),verified:cq("altcha.verified.label","login"),verifying:cq("altcha.verifying.label","login"),waitAlert:cq("altcha.waitAlert.label","login")}),r=async(e,t)=>{let{challengeUrlForm:n}=this.captchaConfig;if(!n)return fetch(e,t);let{accepts:i,method:o,value:r}=n,a={...t};return i&&(a.headers={...a.headers,"Content-Type":i}),o&&(a.method=o),null!=r&&r.find(e=>(null==e?void 0:e.name)==="stateHandle")&&(a.body=JSON.stringify({stateHandle:this.options.appState.settings.options.stateToken})),fetch(e,a)};"ALTCHA"===this.captchaConfig.type?window[gv]=()=>{var e,t;i();let a=this.$el.find("#captcha-container"),s=document.createElement("altcha-widget"),l=`${null!==(e=this.options.settings.get("baseUrl"))&&void 0!==e?e:""}/api/v1/altcha`,{challengeUrlForm:c}=this.captchaConfig;Object.entries({floating:!0,hidefooter:!0,hidelogo:!0,challengeurl:null!==(t=null==c?void 0:c.href)&&void 0!==t?t:l,strings:JSON.stringify(o())}).forEach(([e,t])=>s.setAttribute(e,t)),s.customfetch=r,s.addEventListener&&s.addEventListener("verified",e=>{n(e&&e.detail&&e.detail.payload||e),a.empty()}),window.altcha=s,a.empty().append(s),a.attr("data-captcha-id","altcha"),this.options.appState.trigger("onCaptchaLoaded",s)}:window[gv]=()=>{i();let e=this._getCaptchaOject(),n=e.render("captcha-container",{sitekey:this.captchaConfig.siteKey,callback:t});this.$el.find("#captcha-container").attr("data-captcha-id",n),this.options.appState.trigger("onCaptchaLoaded",e),"HCAPTCHA"===this.captchaConfig.type&&this._addHCaptchaFooter()},window[gb]=t,"HCAPTCHA"===this.captchaConfig.type?this._loadCaptchaLib(this._getCaptchaUrl("https://hcaptcha.com/1/api.js","hcaptcha")):"RECAPTCHA_V2"===this.captchaConfig.type&&this._loadCaptchaLib(this._getCaptchaUrl("https://www.google.com/recaptcha/api.js","recaptcha")),"ALTCHA"===this.captchaConfig.type&&this._loadCaptchaLib(this._getCaptchaUrl("https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js","altcha"))},_loadCaptchaLib:function(e){let t=document.createElement("script");t.src=e,t.async=!0,t.defer=!0,-1!==e.indexOf("altcha")&&(t.type="module",t.onload=window[gv]),document.getElementById(rL.WIDGET_CONTAINER_ID).appendChild(t)},_addHCaptchaFooter:function(){let e=document.getElementsByClassName("siw-main-footer");if(e.length){let t=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="captcha-footer"><span class="footer-text">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$2:"<a href='https://hcaptcha.com/terms' target='_blank'>$2</a>",$1:"<a href='https://hcaptcha.com/privacy' target='_blank'>$1</a>",bundle:"login",code:"hcaptcha.footer.label"}
17,data:o,loc:{start:{line:1,column:54},end:{line:1,column:238}}}))+"</span></div>"},useData:!0});e[0].insertAdjacentHTML("beforeend",t())}},_getCaptchaOject:function(){if("HCAPTCHA"===this.captchaConfig.type)return window.hcaptcha;if("RECAPTCHA_V2"===this.captchaConfig.type)return window.grecaptcha;if("ALTCHA"===this.captchaConfig.type){var e;return null!==(e=window.altcha)&&void 0!==e?e:null}return null},_getCaptchaUrl:function(e,t){let n=this.options.settings.get("language"),i=this.options.settings.get(`${t}.scriptSource`),o=this.options.settings.get(`${t}.scriptParams`),r=i||e;if("altcha"===t)return r;let a={...o,onload:gv,render:"explicit",hl:n||navigator.language};return r+"?"+r7.searchParamsToString(a)}});let gk=(e,t)=>{let n=document.createElement("div");n.style.position="absolute",n.style.left="-9999px",n.style.whiteSpace="nowrap",n.innerHTML=e,document.body.appendChild(n);let i=n.clientWidth;return document.body.removeChild(n),i>t},g_={authenticatorEnrollSelect:e=>{let t=(e.options||[]).map(e=>Object.assign({},e,mS(e)));return{View:gm,options:{name:e.name,optionItems:t,collection:new sn(t)}}},authenticatorVerifySelect:e=>{let t=e.options||[],n=new Set;return t=(t=t.filter(e=>{let t;if(e.authenticatorKey===fS.WEBAUTHN)t=n.has(e.authenticatorKey),n.add(e.authenticatorKey);else if(e.authenticatorKey===fS.CUSTOM_APP){var i,o;t=n.has(null==e?void 0:null===(i=e.value)||void 0===i?void 0:i.id),n.add(null==e?void 0:null===(o=e.value)||void 0===o?void 0:o.id)}return!t})).map(e=>Object.assign({},e,mS(e,!0))),{View:gy,options:{name:e.name,collection:new sn(t)}}},"admin-consent":()=>({View:ux}),consent:()=>({View:u3}),captcha:e=>({View:gw,options:{name:e.name}})},gS=function(e){return(g_[e.type]||rN.identity)(e)},gE=(e,t)=>{if(t.get("remediations").filter(e=>e.name===fb.PIV_IDP).length<1)return[];let n=e.get("piv");return[{attributes:{"data-se":"piv-card-button"},className:(n.className||"")+" piv-button",title:n.text||cq("piv.cac.card","login"),click:e=>{e.preventDefault(),t.trigger("switchForm",fb.PIV_IDP)}}]},gT=({settings:e,appState:t})=>{let n=t.get("remediations").filter(e=>e.name===fb.REDIRECT_IDP);return Array.isArray(n)?[...gE(e,t),...n.map(e=>{var t,n;let i;let o=null===(t=e.type)||void 0===t?void 0:t.toLowerCase();rN.contains(hQ.SUPPORTED_SOCIAL_IDPS,o)?i=cq(`socialauth.${o}.label`,"login"):(o="general-idp",i=cq("customauth.sign.in.with.label","login",[null===(n=e.idp)||void 0===n?void 0:n.name]));let r=["social-auth-button",`social-auth-${o}-button`];"general-idp"===o&&r.push("no-translate"),e.idp.className&&r.push(e.idp.className);let a={attributes:{"data-se":`social-auth-${o}-button`},className:r.join(" "),title:i,href:e.href};return gk(i,186)&&(a.attributes.title=i),a})]:[]},gx=e=>e.get("customButtons").map(e=>({attributes:{"data-se":e.dataAttr},className:e.className+" default-custom-button",title:e.title||cq(e.i18nKey,"login"),click:e.click})),gO=e=>lf({...e,className:`${e.className} default-custom-button button-primary`}),{FormUtil:gC}=cG;var gA=cB.extend({layout:"o-form-theme",className:"ion-form",hasSavingState:!0,autoSave:!1,noCancelButton:!0,title:function(){return cq("oform.title.authenticate","login")},save:function(){return cq("oform.next","login")},modelEvents:{clearFormError:"handleClearFormError",error:"triggerAfterError"},initialize:function(){let e=this.getUISchema().map(gS);this.showMessages(),this.listenTo(this.options.appState,"onCaptchaLoaded",e=>{this.captchaObject=e}),this.listenTo(this.options.appState,"altchaSolved",()=>{this.trigger("save",this.model)}),e.forEach(e=>{this.addInputOrView(e)}),this.listenTo(this,"save",this.saveForm),this.listenTo(this,"cancel",this.cancelForm)},focus:function(...e){this.settings.get("features.autoFocus")&&cB.prototype.focus.apply(this,e)},handleClearFormError:function(){let e=this.$(".o-form-error-container");e.empty(),e.hasClass("o-form-has-errors")&&this.clearErrors()},triggerAfterError:function(e,t){this.options.appState.trigger("afterError",t)},saveForm:function(e){this.$el.find(".o-form-error-container").empty(),this.captchaObject&&"ALTCHA-WIDGET"!==(this.captchaObject.tagName||"").toUpperCase()?this.captchaObject.execute():this.options.appState.trigger("saveForm",e)},postRender:function(){let e=this.$el.find(".o-form-info-container");e.length||(this.add('<div class="o-form-info-container"></div>'),e=this.$el.find(".o-form-info-container")),this.$el.find(".o-form-error-container").attr("role","alert").before(e),this.addIdentifier()},addIdentifier:function(){let{identifier:e}=this.options.appState.get("user")||{};if(!e||!this.settings.get("features.showIdentifier"))return;
17let t=this.$el.find('[data-se="o-form-head"]'),n=a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="identifier-container"><span class="identifier no-translate" data-se="identifier" title="'+c(typeof(r=null!=(r=u(n,"identifier")||(null!=t?u(t,"identifier"):t))?r:s)===l?r.call(a,{name:"identifier",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:114}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"identifier")||(null!=t?u(t,"identifier"):t))?r:s)===l?r.call(a,{name:"identifier",hash:{},data:o,loc:{start:{line:1,column:116},end:{line:1,column:130}}}):r)+"</span></div>"},useData:!0})({identifier:e});t.length?t.after(n):this.$el.find(".o-form-error-container").after(n)},cancelForm:function(){this.options.appState.trigger("invokeAction","cancel")},getUISchema:function(){return Array.isArray(this.options.currentViewState.uiSchema)?this.options.currentViewState.uiSchema:[]},addInputOrView:function(e){if(!1!==e.visible&&(!1!==e.mutable||!0===e.visible)&&(e.View?(this.add(e.View,rN.omit(e,"View","showWhen")),e.showWhen&&gC.applyShowWhen(this.last(),e.showWhen)):this.addInput(e),Array.isArray(e.optionsUiSchemas)&&this.options.optionUiSchemaConfig[e.name])){let t=Number(this.options.optionUiSchemaConfig[e.name]);(e.optionsUiSchemas[t]||[]).forEach(this.addInputOrView.bind(this))}},showCustomFormErrorCallout:null,showMessages:function(e){let t=this.options.appState.get("messages")||{},n=".o-form-error-container";!Array.isArray(t.value)||e instanceof cH?e instanceof cH&&this.add(e,n):(this.add('<div class="ion-messages-container"></div>',n),t.value.forEach(t=>{if(null!=t&&t.class&&"INFO"!==t.class){var i;let o={class:null!==(i=null==t?void 0:t.class)&&void 0!==i?i:"",message:null==t?void 0:t.message,title:"",...e};this.add(ca({content:o.message,type:o.class.toLowerCase(),title:o.title}),n),e=null}else this.add(`<p>${t.message}</p>`,".ion-messages-container")}))}}),gP={startPolling:function(e){this.fixedPollingInterval=this.options.currentViewState.refresh,this.dynamicPollingInterval=e,this.countDownCounterValue=Math.ceil(this.pollingInterval/1e3),this.fixedPollingInterval?this._startRemediationPolling():this._startAuthenticatorPolling()},_startAuthenticatorPolling:function(){["currentAuthenticator","currentAuthenticatorEnrollment"].some(e=>{if(!this.options.appState.has(e))return!1;{var t;let n=this.options.appState.get(e),i=`${e}-poll`,o=this.dynamicPollingInterval||(null==n?void 0:null===(t=n.poll)||void 0===t?void 0:t.refresh);return rN.isNumber(o)&&(this.polling=setTimeout(()=>{this.options.appState.trigger("invokeAction",i)},o)),!0}})},_startRemediationPolling:function(){let e=this.dynamicPollingInterval||this.fixedPollingInterval;rN.isNumber(e)&&(this.polling=setTimeout(()=>{this.options.appState.trigger("saveForm",this.model)},e))},stopPolling:function(){this.polling&&(clearTimeout(this.polling),this.polling=null)}},gN=gA.extend(Object.assign({initialize:function(){gA.prototype.initialize.apply(this,arguments),this.listenTo(this.options.appState,"change:dynamicRefreshInterval",this.updateRefreshInterval)},updateRefreshInterval:function(){this.polling&&(this.stopPolling(),this.startPolling(this.options.appState.get("dynamicRefreshInterval")))}},gP));function gR(e,t){return e&&t&&(e+="&login_hint="+t),e}let gI=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"chrome.lna.error.description.intro"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:65}}}))+'<ol class="chrome-lna-error-steps"><li>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"chrome.lna.error.description.step1"},data:o,loc:{start:{line:1,column:104},end:{line:1,column:169}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"chrome.lna.error.description.step2"},data:o,loc:{start:{line:1,column:178},end:{line:1,column:243}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"chrome.lna.error.description.step3"},data:o,loc:{start:{line:1,column:252},end:{line:1,column:317}}}))+"</li></ol>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{$1:"<a href='#' target='_blank' rel='noopener noreferrer' class='chrome-lna-help-link'>$1</a>",bundle:"login",code:"chrome.lna.error.description.more.information"},data:o,loc:{start:{line:1,column:327},end:{line:1,column:498}}}))},useData:!0}
17),getTemplateData:function(){this.chromeLNAHelpLink=this.options.chromeLNAHelpLink},render:function(){cH.prototype.render.apply(this,arguments),this.chromeLNAHelpLink&&this.$el.find(".chrome-lna-help-link").attr("href",this.chromeLNAHelpLink)}});function gD(e,t){e.add(cH.extend({className:"loopback-content",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="spinner"></div>'},useData:!0})})),e.doLoopback(t)}function gL(e,t){e.title=t,e.$&&e.$(".okta-form-title").length&&e.$(".okta-form-title").text(t)}function gM(e,t){var n,i;let o=e.getDeviceChallengePayload(),{chromeLocalNetworkAccessDetails:r}=o||{},a=null===(n=e.options)||void 0===n?void 0:null===(i=n.settings)||void 0===i?void 0:i.get("identifier"),s="hide";switch(o.challengeMethod){case rL.LOOPBACK_CHALLENGE:e.title=cq("deviceTrust.sso.redirectText","login"),r?rK.getChromeLNAPermissionState(t=>(function(e,t,n){switch(e.removeChildren(),t){case"prompt":case"granted":default:gL(e,cq("deviceTrust.sso.redirectText","login")),gD(e,n);break;case"denied":var i,o,r;if((null===(i=e.options)||void 0===i?void 0:null===(o=i.appState)||void 0===o?void 0:o.get("previousFormName"))===void 0)gL(e,cq("deviceTrust.sso.redirectText","login")),gD(e,n);else throw gL(e,cq("chrome.lna.fastpass.requires.permission.title","login")),function(e,t){e.add(ca({title:cq("chrome.lna.error.title","login"),content:new gI({chromeLNAHelpLink:t}),type:"error"}))}(e,null===(r=n.chromeLocalNetworkAccessDetails)||void 0===r?void 0:r.chromeLNAHelpLink),new rz("Chrome Local Network Access permission was denied for FastPass.")}})(e,t,o)):gD(e,o);break;case rL.CUSTOM_URI_CHALLENGE:e.title=cq("customUri.title","login"),e.add(cH.extend({className:"skinny-content",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.prompt"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:67}}}))+"</p>"},useData:!0})})),e.add(lf({className:"ul-button button button-wide button-primary",title:cq("oktaVerify.open.button","login"),id:"launch-ov",click:()=>{e.doCustomURI()}})),e.add(cH.extend({className:"skinny-content",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.title"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:75}}}))+'</p><p><a href="'+l("function"==typeof(r=null!=(r=c(n,"downloadOVLink")||(null!=t?c(t,"downloadOVLink"):t))?r:s)?r.call(a,{name:"downloadOVLink",hash:{},data:o,loc:{start:{line:1,column:91},end:{line:1,column:109}}}):r)+'" target="_blank" id="download-ov" class="link">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.linkText"},data:o,loc:{start:{line:1,column:157},end:{line:1,column:232}}}))+"</a></p>"},useData:!0}),getTemplateData:function(){return{downloadOVLink:o.downloadHref}}})),e.customURI=gR(o.href,a),e.doCustomURI();break;case rL.UNIVERSAL_LINK_CHALLENGE:e.title=cq("universalLink.title","login"),e.add(cH.extend({className:"universal-link-content",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="spinner"></div>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"universalLink.content"},data:o,loc:{start:{line:1,column:27},end:{line:1,column:79}}}))},useData:!0})})),e.add(lf({className:"ul-button button button-wide button-primary",title:cq("oktaVerify.open.button","login"),click:()=>{let e=gR(o.href,a);r7.redirect(e)}}));break;case rL.APP_LINK_CHALLENGE:e.title=cq("appLink.title","login"),e.add(cH.extend({className:"app-link-content",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="spinner '+c(typeof(r=null!=(r=u(n,"hideClass")||(null!=t?u(t,"hideClass"):t))?r:s)===l?r.call(a,{name:"hideClass",hash:{},data:o,loc:{start:{line:1,column:20},end:{line:1,column:33}}}):r)+'"></div><div class="appLinkContent '+c(typeof(r=null!=(r=u(n,"hideClass")||(null!=t?u(t,"hideClass"):t))?r:s)===l?r.call(a,{name:"hideClass",hash:{},data:o,loc:{start:{line:1,column:68},end:{line:1,column:81}}}):r)+'">'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"appLink.content"},data:o,loc:{start:{line:1,column:83},end:{line:1,column:129}}}))+"</div>"},useData:!0}
17),getTemplateData:function(){return{hideClass:s}},postRender:function(){t===gl?(this.$(".spinner").removeClass(s),setTimeout(rN.bind(()=>{let e={label:cq("goback","login")};this.options.appState.trigger("updateFooterLink",e),this.$(".spinner").addClass(s),this.$(".appLinkContent").removeClass(s)},this),4e3)):this.$(".appLinkContent").removeClass(s)}})),e.add(lf({className:`${s} al-button button button-wide button-primary`,title:cq("oktaVerify.open.button","login"),click:()=>{let e=gR(o.href,a);r7.redirect(e,window,!0)},postRender:function(){t===gl?setTimeout(rN.bind(()=>{this.$el.removeClass(s)},this),4e3):this.$el.removeClass(s)}}));break;case rL.CHROME_DTC:e.title=cq("deviceTrust.sso.redirectText","login"),e.add(cH.extend({className:"chrome-dtc-content",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="spinner"></div>'},useData:!0})})),e.doChromeDTC(o)}}function gU(e,t,n,i,o){let r={};r.reason=n,r.statusCode=i,e.trigger("invokeAction",t,r,o)}function gF(e,t){var n,i;let o;let r=(o=t?Object.values(null==e?void 0:null===(n=e.value[0])||void 0===n?void 0:n.i18n):null==e?void 0:null===(i=e.responseJSON)||void 0===i?void 0:i.errorSummaryKeys)&&o.includes("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.mobile"),a=o&&o.includes("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.desktop"),s=[];if(!r&&!a)return s;let l=[cq("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point1","login"),cq("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point2","login"),cq("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point3","login")];return a&&l.push(cq("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point4","login")),s={type:"error",className:"okta-verify-uv-callout-content",title:cq("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.title","login"),subtitle:cq("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.description","login"),bullets:l}}function gj(e,t){return cH.extend({tagName:"iframe",id:e,attributes:{src:t},initialize:function(){this.el.style.display="none"}})}let gV=e=>{let t=Object.assign({method:"GET",contentType:"application/json"},e);return sh.ajax(t)},gB=gN.extend({noButtonBar:!0,className:"ion-form device-challenge-poll",removed:!1,events:{"click #launch-ov":function(e){e.preventDefault(),this.doCustomURI()}},pollingCancelAction:"currentAuthenticator-cancel",initialize:function(){gN.prototype.initialize.apply(this,arguments),this.removed=!1,this.listenTo(this.model,"error",this.onPollingFail),this.doChallenge(),this.startPolling()},doChallenge:function(){gM(this)},onPollingFail:function(){this.$(".spinner").hide(),this.stopPolling()},remove:function(){gN.prototype.remove.apply(this,arguments),this.removed=!0,this.stopProbing(),this.stopPolling()},getDeviceChallengePayload:function(){throw Error("getDeviceChallengePayload needs to be implemented")},doLoopback:function(e){let t,n=void 0!==e.domain?e.domain:"",i=void 0!==e.httpsDomain?e.httpsDomain:"",o=void 0!==e.ports?e.ports:[],r=o.length,a=void 0!==e.challengeRequest?e.challengeRequest:"",s=void 0!==e.probeTimeoutMillis?e.probeTimeoutMillis:100,l=!1,c=!1,u=0,p=(e,n)=>`${n}:${t}/${e}`,d=e=>gV({url:e,timeout:rK.isAndroid()?3e3:s}),h=e=>gV({url:e,method:"POST",data:JSON.stringify({challengeRequest:a}),timeout:3e5}),f=()=>(rQ.error(`Something unexpected happened while we were checking port ${t}.`),sh.Deferred().reject()),m=t=>d(p("probe",t)).then(()=>h(p("challenge",t)).then(()=>{if(l=!0,!1!==e.enhancedPollingEnabled){this.stopPolling(),this.startPolling(1);return}return this.trigger("save",this.model)}).catch(e=>{u++,503!==e.status?(c=!0,gU(this.options.appState,this.pollingCancelAction,gu.OV_ERROR,e.status,!this.removed)):u===r&&gU(this.options.appState,this.pollingCancelAction,gu.LOOPBACK_FAILURE,null,!this.removed)})).catch(f),g=Promise.resolve(),y=(e,n,i)=>{g=g.then(()=>{if(!(l||c))return t=e,m(n)}).catch(()=>{u++,rQ.error(`Authenticator is not listening on port ${t}.`),i&&u===r&&(rQ.error("No available ports. Loopback server failed and polling is cancelled."),this.stopPolling(),gU(this.options.appState,this.pollingCancelAction,gu.LOOPBACK_FAILURE,null,!this.removed))})};i&&(rQ.info("httpsDomain enabled, will probe and challenge https first"),r+=r,o.forEach(e
17=>{y(e,i,!1)})),o.forEach(e=>{y(e,n,!0)})},doCustomURI:function(){this.ulDom&&this.ulDom.remove();let e=gj("custom-uri-container",this.customURI);this.ulDom=this.add(e).last()},doChromeDTC:function(e){this.ulDom&&this.ulDom.remove();let t=gj("chrome-dtc-container",e.href);this.ulDom=this.add(t).last()},stopProbing:function(){this.checkPortXhr&&this.checkPortXhr.abort(),this.probingXhr&&this.probingXhr.abort()}}),gq=e=>{let t=Object.assign({},rN.chain(e).pick("minLength","maxLength","required","value").defaults({type:"string",required:!0}).value());return e.modelType&&(t.type=e.modelType),{[e.name]:t}},g$=function(e={},t={},n={},i={}){(e.uiSchema||[]).forEach(e=>{if(Array.isArray(e.optionsUiSchemas)){let o;let r={};Number(e.value)>=0&&(o=e.value),t[e.name]&&(o=Number((r={value:t[e.name]}).value)),Object.assign(i,gq(Object.assign({},e,r))),o&&g$({uiSchema:e.optionsUiSchemas[o]},t,n,i)}else Object.assign(n,gq(e))})};var gH=function(e={},t={}){let n={},i={formName:"string",useRedirect:"boolean"};return g$(e,t,n,i),su.extend({props:n,local:i})};let gW={[fb.IDENTIFY]:{[fb.IDENTIFY]:"primary-auth",[fS.PASSWORD]:"primary-auth"},[fb.IDENTIFY_RECOVERY]:{[fb.IDENTIFY_RECOVERY]:"forgot-password"},[fb.ENROLL_PROFILE]:{[fb.ENROLL_PROFILE]:"registration"},[fb.CHALLENGE_AUTHENTICATOR]:{[fS.EMAIL]:"mfa-verify-passcode",[fS.PASSWORD]:"mfa-verify-password",sms:"mfa-verify-passcode",voice:"mfa-verify-passcode",[fS.SECURITY_QUESTION]:"mfa-verify-question",[fS.WEBAUTHN]:"mfa-verify-webauthn",[fS.ON_PREM]:"mfa-verify-totp",[fS.RSA]:"mfa-verify-totp",[fS.OV]:"mfa-verify",[fS.GOOGLE_OTP]:"mfa-verify",[fS.DUO]:"mfa-verify-duo",[fS.SYMANTEC_VIP]:"mfa-verify",[fS.YUBIKEY]:"mfa-verify",[fS.CUSTOM_APP]:"mfa-verify"},[fb.CHALLENGE_POLL]:{[fS.OV]:"mfa-verify",[fS.CUSTOM_APP]:"mfa-verify"},[fb.RESEND_PUSH]:{[fS.OV]:"mfa-verify",[fS.CUSTOM_APP]:"mfa-verify"},[fb.ENROLL_AUTHENTICATOR]:{[fS.EMAIL]:"enroll-email",[fS.PASSWORD]:"enroll-password",sms:"enroll-sms",voice:"enroll-call",[fS.SECURITY_QUESTION]:"enroll-question",[fS.WEBAUTHN]:"enroll-webauthn",[fS.ON_PREM]:"enroll-onprem",[fS.RSA]:"enroll-rsa",[fS.DUO]:"enroll-duo",[fS.SYMANTEC_VIP]:"enroll-symantec",[fS.YUBIKEY]:"enroll-yubikey"},[fb.SELECT_AUTHENTICATOR_ENROLL]:{"select-authenticator-enroll":"enroll-choices"},[fb.SELECT_AUTHENTICATOR_AUTHENTICATE]:{[fS.PASSWORD]:"forgot-password"},[fb.REENROLL_AUTHENTICATOR]:{[fS.PASSWORD]:"password-expired"},[fb.REENROLL_CUSTOM_PASSWORD_EXPIRY]:{[fS.PASSWORD]:"custom-password-expired"},[fb.REENROLL_CUSTOM_PASSWORD_EXPIRY_WARNING]:{[fS.PASSWORD]:"custom-password-expiry-warning"},[fb.RESET_AUTHENTICATOR]:{[fS.PASSWORD]:"forgot-password"},[fb.CONSENT_ADMIN]:{[fb.CONSENT_ADMIN]:"admin-consent-required"},[fb.CONSENT_ENDUSER]:{[fb.CONSENT_ENDUSER]:"consent-required"}},gz=(e,t,n,i)=>{if(i&&e===fb.IDENTIFY)return"forgot-password";{let i=e;return(t===fS.PHONE?i=`${n}`:t&&(i=`${t}`),gW[e]&&gW[e][i])?gW[e][i]:null}},gK=(e,t,n,i)=>{let o=e;t&&(o=o+"--"+t);let r=gz(e,t,n,i),a=[o];return r&&a.push(r),a};var gG=cH.extend({Header:m8,Body:gA,Footer:ga,className:function(){let e=this.options.appState,t=e.get("currentFormName");return["siw-main-view"].concat(gK(t,e.get("authenticatorKey"),e.get("authenticatorMethodType"),e.get("isPasswordRecoveryFlow"))).join(" ")},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="siw-main-header"></div><div class="siw-main-body"></div><div class="siw-main-footer"></div>'},useData:!0}),preRender:function(){cH.prototype.preRender.apply(this,arguments),null!==this.Header&&this.add(this.Header,{selector:".siw-main-header",options:this.options}),this.renderForm(),this.add(this.Footer,{selector:".siw-main-footer",options:this.options})},renderForm:function(){let e;this.form&&(this.form.remove(),e=this.form.model.toJSON({verbose:!0}));let t=new(this.createModelClass(this.options.currentViewState,e,this.settings))({formName:this.options.currentViewState.name});e||(e=t.toJSON({verbose:!0})),this.model=t,this.form=this.add(this.Body,{selector:".siw-main-body",options:Object.assign({},this.options,{model:t,optionUiSchemaConfig:e})}).last(),rN.each(t.attributes,(e,n)=>{n.match(/sub_schema_local_[^ ]+/)&&this.listenTo(t,`change:${n}`,()=>{this.renderForm()})})},createModelClass:function(e,t={}){return gH(e,t)}}),gY=ga.extend({showForgotPasswordLink:function(){return!this.options.appState.isIdentifierOnlyView()},footerInfo:function(){let e;let t=gi(this.options.appState,this.options.settings);return t.length&&(e=cH.extend({className:"signup-info",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<span>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"registration.signup.label"},data:o,loc:{start:{line:1,column:6},end:{line:1,column:62}}}))+'</span><span class="signup-link"></span>'},useData:!0}
17),initialize:function(){this.add(m2,".signup-link",{options:t[0]})}})),e},links:function(){let e;let{appState:t,settings:n}=this.options;e=n.get("helpLinks.help")?n.get("helpLinks.help"):n.get("baseUrl")+"/help/login";let i=[{name:"help",label:cq("help","login"),href:e,target:"_blank"}],o=[];this.showForgotPasswordLink()&&(o=m9(t,n));let r=[];n.get("helpLinks.custom")&&n.get("helpLinks.custom").forEach(e=>{e.name="custom",e.label=e.text,r.push(e)});let a=[];return n.get("helpLinks.unlock")?a.push({type:"link",label:cq("unlockaccount","login"),name:"unlock",href:n.get("helpLinks.unlock")}):t.hasRemediationObject(fb.UNLOCK_ACCOUNT)&&a.push({type:"link",label:cq("unlockaccount","login"),name:"unlock",actionPath:fb.UNLOCK_ACCOUNT}),o.concat(a).concat(i).concat(r)}}),gJ=cH.extend({className:"sign-in-with-idp",template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"socialauth.divider.text"},data:o,loc:{start:{line:1,column:64},end:{line:1,column:118}}}))+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"isSecondaryIdpDisplay"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:138}}}))?r:"")+'<div class="okta-idps-container"></div>'+(null!=(r=s(n,"if").call(a,null!=t?s(t,"isPrimaryIdpDisplay"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:177},end:{line:1,column:313}}}))?r:"")},useData:!0}),initialize:function(){this.options.idpButtons.forEach(e=>{this.add(lf(e),".okta-idps-container")})},getTemplateData:function(){let e=cH.prototype.getTemplateData.apply(this,arguments),t=this.options.idpButtons.length>0;return Object.assign(e,{isPrimaryIdpDisplay:t&&this.options.isPrimaryIdpDisplay,isSecondaryIdpDisplay:t&&!this.options.isPrimaryIdpDisplay})}}),gQ=cH.extend({className:"custom-buttons",template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"socialauth.divider.text"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:112}}}))+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"addSeparateLine"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:132}}}))?r:"")+'<div class="okta-custom-buttons-container primary-auth-container"></div>'},useData:!0}),initialize:function(e){e.customButtons.forEach(e=>{this.add(lf(e),".okta-custom-buttons-container")})},getTemplateData:function(){let e=cH.prototype.getTemplateData.apply(this,arguments);return Object.assign(e,{addSeparateLine:this.options.addSeparateLine})}}),gX=cH.extend({className:"sign-in-with-device-option",template:a8.template({1:function(e,t,n,i,o){return'<div class="signin-with-ov-description"></div>'},3:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"authbutton.divider.text"},data:o,loc:{start:{line:1,column:201},end:{line:1,column:255}}}))+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-verify-container">'+(null!=(r=s(n,"if").call(a,null!=t?s(t,"signInWithDeviceIsRequired"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:35},end:{line:1,column:122}}}))?r:"")+"</div>"+(null!=(r=s(n,"unless").call(a,null!=t?s(t,"signInWithDeviceIsRequired"):t,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:128},end:{line:1,column:279}}}))?r:"")},useData:!0}
17),initialize:function(){var e;let t=this.options.appState,n=t.hasRemediationObject(fb.LAUNCH_AUTHENTICATOR),i=null==n?void 0:null===(e=n.relatesTo)||void 0===e?void 0:e.value;this.add(lf({className:"button",icon:"okta-verify-authenticator",title:cq("oktaVerify.button","login"),click:function(){var e,n,o,r;this.model.get("identifier")&&this.options.settings.set("identifier",encodeURIComponent(this.model.get("identifier")));let a=(null==i?void 0:i.challengeMethod)===rL.UNIVERSAL_LINK_CHALLENGE;if(a){let t=gR(i.href,null===(e=this.options)||void 0===e?void 0:null===(n=e.settings)||void 0===n?void 0:n.get("identifier"));r7.redirect(t)}let s=(null==i?void 0:i.challengeMethod)===rL.APP_LINK_CHALLENGE;if(s){let e=gR(i.href,null===(o=this.options)||void 0===o?void 0:null===(r=o.settings)||void 0===r?void 0:r.get("identifier"));r7.redirect(e,window,!0)}r7.callAfterTimeout(()=>{this.options.isRequired?t.trigger("saveForm",this.model):t.trigger("invokeAction",fb.LAUNCH_AUTHENTICATOR,{rememberMe:this.model.get("rememberMe")})},a||s?500:0)}}),".okta-verify-container")},getTemplateData:function(){return{signInWithDeviceIsRequired:!!this.options.isRequired}},postRender:function(){if(this.options.isRequired){var e,t;let n=null===(e=this.options.appState.attributes)||void 0===e?void 0:null===(t=e.app)||void 0===t?void 0:t.label,i=n?cq("oktaVerify.appDescription","login",[n]):cq("oktaVerify.description","login");this.$el.find(".signin-with-ov-description").text(i)}}}),gZ=cH.extend({className:"sign-in-with-webauthn-option",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-webauthn-container"></div><div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"authbutton.divider.text"},data:o,loc:{start:{line:1,column:78},end:{line:1,column:132}}}))+"</span></div>"},useData:!0}),initialize:function(){this.add(lf({className:"button",icon:"okta-webauthn-authenticator",title:cq("signinWithWebAuthn.button","login"),click:()=>{this.options.appState.trigger("invokeAction",fb.LAUNCH_WEBAUTHN_AUTHENTICATOR)}}),".okta-webauthn-container")}}),g0=cH.extend({className:"sign-in-with-passkeys-option",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-passkeys-container"></div><div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"authbutton.divider.text"},data:o,loc:{start:{line:1,column:78},end:{line:1,column:132}}}))+"</span></div>"},useData:!0}),initialize:function(){this.add(lf({className:"button",icon:"okta-passkeys-authenticator",title:cq("signinWithPasskeys.button","login"),click:()=>{this.options.getCredentialsAndInvokeAction.call(this.options.formView)}}),".okta-passkeys-container")}}),g1=cH.extend({className:"custom-access-denied-error-message",template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"message")||(null!=t?a(t,"message"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"message",hash:{},data:o,loc:{start:{line:1,column:18},end:{line:1,column:29}}}):r)+"</p>"},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ul class="custom-links">'+(null!=(r=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"links"):t,{name:"each",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:78},end:{line:1,column:182}}}))?r:"")+"</ul>"},4:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li><a href="+c(typeof(r=null!=(r=u(n,"url")||(null!=t?u(t,"url"):t))?r:s)===l?r.call(a,{name:"url",hash:{},data:o,loc:{start:{line:1,column:105},end:{line:1,column:112}}}):r)+' target="_blank" rel="noopener noreferrer">'+c(typeof(r=null!=(r=u(n,"label")||(null!=t?u(t,"label"):t))?r:s)===l?r.call(a,{name:"label",hash:{},data:o,loc:{start:{line:1,column:155},end:{line:1,column:164}}}):r)+"</a></li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"message"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:40}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"links"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:40},end:{line:1,column:194}}}))?r:"")},useData:!0}
17),getTemplateData:function(){return{message:this.options.message,links:this.options.links}}});let g8="security.access_denied_custom_message",g2="WebAuthNAutofill component cleanup",g3=gA.extend({title:function(){return cq("primaryauth.title","login")},save:function(){return cq("oform.next","login")},focus:function(){if(gA.prototype.focus.apply(this,arguments),this.settings.get("features.autoFocus")){let e=this.getInputs().filter(e=>"identifier"===e.options.name)[0],t=this.getInputs().filter(e=>"credentials.passcode"===e.options.name)[0];e&&e.model.get("identifier")&&t&&t.focus()}},initialize:function(){gA.prototype.initialize.apply(this,arguments);let e=this.getUISchema();e.find(e=>"credentials.passcode"===e.name)&&(this.save=cq("oie.primaryauth.submit","login")),this.listenTo(this.model,"errors:clear",function(){this.clearErrors()}),this._shouldAddUsername(e)?this.model.set("identifier",this.settings.get("username")):!this.model.get("identifier")&&this._shouldApplyRememberMyUsername(e)&&this._applyRememberMyUsername()},saveForm:function(){var e,t;if(!this.settings.get("features.deviceFingerprinting")){gA.prototype.saveForm.apply(this,arguments);return}this.model.trigger("request"),(e=this.settings.getAuthClient(),t=this.$el[0],e.fingerprint({timeout:2e3,container:t})).then(e=>{this.options.appState.set("deviceFingerprint",e)}).catch(()=>{}).finally(()=>{gA.prototype.saveForm.apply(this,arguments)})},render:function(){gA.prototype.render.apply(this,arguments),this.options.appState.hasRemediationObject(fb.LAUNCH_AUTHENTICATOR)&&this.add(gX,".o-form-fieldset-container",!1,!0,{isRequired:!1}),this.options.appState.hasRemediationObject(fb.LAUNCH_WEBAUTHN_AUTHENTICATOR)&&this.add(gZ,".o-form-fieldset-container",!1,!0,{isRequired:!1}),this.options.appState.hasRemediationObject(fb.LAUNCH_PASSKEYS_AUTHENTICATOR)&&this.add(g0,{selector:".o-form-fieldset-container",options:{getCredentialsAndInvokeAction:this.getCredentialsForModalAndInvokeAction,formView:this},prepend:!0});let e=gT(this.options);Array.isArray(e)&&e.length&&(this._addForgotPasswordView(),this._addIdpView(e));let t=gx(this.options.settings);Array.isArray(t)&&t.length&&this.add(gQ,{selector:".o-form-button-bar",options:{customButtons:t,addSeparateLine:!0}})},postRender:function(){gA.prototype.postRender.apply(this,arguments),this.$el.find(".identifier-container").remove(),this._hasAutofillUIChallenge()&&this.getCredentialsAndInvokeAction()},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments),{settings:t}=this.options,n="primaryauth.username.tooltip",i="primaryauth.password.tooltip",o=e.map(e=>{let o={...e};if("identifier"===e.name){m$(n,t)&&(o={...o,explain:cq(n,"login"),"explain-top":!0});let e=this._hasAutofillUIChallenge()&&dd.isConditionalMediationAvailable()?"username webauthn":"username";o={...o,autoComplete:r7.getAutocompleteValue(this.options.settings,e)}}else"credentials.passcode"===e.name&&(o={...o,autoComplete:r7.getAutocompleteValue(this.options.settings,"current-password")},m$(i,t)&&(o={...o,explain:cq(i,"login"),"explain-top":!0}));return o});return!1===this.settings.get("features.showKeepMeSignedIn")&&(o=o.filter(e=>"rememberMe"!==e.name)),o},showCustomFormErrorCallout:function(e,t){var n,i;if(!(null!=e&&null!==(n=e.responseJSON)&&void 0!==n&&null!==(i=n.errorSummaryKeys)&&void 0!==i&&i.includes(g8)))return!1;let o=null==t?void 0:t.find(e=>e.i18n.key===g8);if(!o)return!1;let{errorSummary:r}=e.responseJSON,a={type:"error",content:new g1({message:r,links:o.links})};return this.showMessages(ca(a)),!0},remove:function(){gA.prototype.remove.apply(this,arguments),this.webauthnAbortController&&(this.webauthnAbortController.abort(),this.webauthnAbortController=null)},remediateWithAssertion:function(e,t){var n;if(!e||!t)return;let i=dp.binToStr(null!==(n=e.response.userHandle)&&void 0!==n?n:"");if(rN.isEmpty(i)){let e=cq("oie.webauthn.error.invalidPasskey","login");this.model.trigger("error",this.model,this._generateErrorObject(e));return}let o={clientData:dp.binToStr(e.response.clientDataJSON),authenticatorData:dp.binToStr(e.response.authenticatorData),signatureData:dp.binToStr(e.response.signature),userHandle:i};this.options.appState.trigger("invokeAction",t,{credentials:o})},getCredential:async function(e){var t;let n=null===(t=this.options.appState.get("webauthnAutofillUIChallenge"))||void 0===t?void 0:t.challengeData;if(!n||"undefined"==typeof AbortController)return;this.webauthnAbortController&&this.webauthnAbortController.abort(g2),this.webauthnAbortController=new AbortController;let i=rN.extend({},n,{challenge:dp.strToBin(n.challenge)});return navigator.credentials.get({mediation:e,publicKey:i,signal:this.webauthnAbortController.signal})},getCredentialsAndInvokeAction:async function(){if(await dd.isPasskeyAutofillAvailable())return this.getCredential("conditional").then(e=>{this.remediateWithAssertion(e,fb.CHALLENGE_WEBAUTHN_AUTOFILLUI_AUTHENTICATOR)},e=>{if(!(e===g2||dd.isAbortError(e)||dd.isRelyingPartyIdMismatchError(e))&&this.webauthnAbortController){let t=mB(e);this.model.trigger("error",this.model,this._generateErrorObject(t))}})},getCredentialsForModalAndInvokeAction:async function(){if(this.model.trigger("errors:clear"),!dd.isPasskeyAvailable()){let e=cq("signin.passkeys.error.NotSupportedError","login");this.model.trigger("error",this.model,this._generateErrorObject(e));return}return this.getCredential("optional").then(e=>{this.remediateWithAssertion(e,fb.LAUNCH_PASSKEYS_AUTHENTICATOR)},e=>{if(dd.isNotAllowedError(e)){let e=cq("signin.passkeys.error","login");this.model.trigger("error",this.model,this._generateErrorObject(e))}else if(this.webauthnAbortController){let t=mB(e);this.model.trigger("error",this.model,this._generateErrorObject(t))}})},_generateErrorObject:function(e){return{responseJSON:{errorSummary:e}}},_addForgotPasswordView:function(){let e=m9(this.options.appState,this.options.settings);e.length&&(this.add('<div class="links-primary"></div>',{selector:".o-form-button-bar"}),this.add(m2,{selector:".links-primary",options:e[0]}))},_addIdpView:function(e){let t=this.options.settings.get("idpDisplay"),n=t&&"PRIMARY"===t.toUpperCase();this.add(gJ,{prepend:n,selector:n?".o-form-fieldset-container":".o-form-button-bar",options:{idpButtons:e,isPrimaryIdpDisplay:n}})},_shouldAddUsername:function(e){return e.find(e=>"identifier"===e.name)&&this.settings.get("username")}
17,_shouldApplyRememberMyUsername:function(e){return e.find(e=>"identifier"===e.name)&&this.settings.get("features.rememberMe")},_applyRememberMyUsername:function(){let e=dC.getCookieUsername();e&&this.model.set("identifier",e)},_hasAutofillUIChallenge:function(){return this.options.appState.hasRemediationObject(fb.CHALLENGE_WEBAUTHN_AUTOFILLUI_AUTHENTICATOR)}});var g4=gG.extend({Body:g3,createModelClass:function(){let e=gG.prototype.createModelClass.apply(this,arguments),t="error.username.required",n="error.password.required",i=e.prototype.props;return e.extend({validate:e=>{let o={},r=i.identifier&&!(null!=e&&e.identifier),a=i["credentials.passcode"]&&!(null!=e&&e["credentials.passcode"]);return r&&m$(t,this.settings)&&(o.identifier=cq(t,"login")),a&&m$(n,this.settings)&&(o["credentials.passcode"]=cq(n,"login")),o}})},initialize:function(){this.Footer=gY.extend({showForgotPasswordLink:()=>{let e=gT(this.options);return!this.options.appState.isIdentifierOnlyView()&&(!Array.isArray(e)||0===e.length)}})},postRender:function(){gG.prototype.postRender.apply(this,arguments);let e=this.options.appState;this.$el.find(".js-sign-up").click(function(){return e.trigger("invokeAction",fb.SELECT_ENROLL_PROFILE),!1})}}),g6=g4.extend({render:function(){g4.prototype.render.apply(this,arguments),this.$el.find(".sign-in-with-idp .separation-line").hide(),this.$el.find(".button-primary").hide()}}),g5=ga.extend({links:function(){return gr(this.options.appState,this.options.settings).concat(m5(this.options.appState))}}),g9=cH.extend({template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="bg-helper auth-beacon auth-beacon-factor '+l("function"==typeof(r=null!=(r=c(n,"className")||(null!=t?c(t,"className"):t))?r:s)?r.call(a,{name:"className",hash:{},data:o,loc:{start:{line:1,column:245},end:{line:1,column:258}}}):r)+' custom-app-logo" data-se="factor-beacon" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:o,loc:{start:{line:1,column:323},end:{line:1,column:378}}}))+'">'},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="bg-helper auth-beacon auth-beacon-factor '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"className")||(null!=t?a(t,"className"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"className",hash:{},data:o,loc:{start:{line:1,column:441},end:{line:1,column:454}}}):r)+'" data-se="factor-beacon">'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div data-type="beacon-container" class="beacon-container"><div class="beacon-blank auth-beacon"><div class="beacon-blank js-blank-beacon-border auth-beacon-border"></div></div>'+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"logoUri"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:1,column:177},end:{line:1,column:487}}}))?r:"")+'<div class="okta-sign-in-beacon-border auth-beacon-border"></div></div></div >'},useData:!0}),postRender:function(){cH.prototype.postRender.apply(this,arguments);let e=this.getTemplateData();e.logoUri&&(this.el.querySelector(".custom-app-logo").style.backgroundImage=`url(${e.logoUri})`)},getTemplateData:function(){var e,t,n;let i=null===(e=this.options)||void 0===e?void 0:e.appState;return{className:this.getBeaconClassName()||"",logoUri:(null==i?void 0:null===(t=i.get("currentAuthenticator"))||void 0===t?void 0:t.logoUri)||(null==i?void 0:null===(n=i.get("currentAuthenticatorEnrollment"))||void 0===n?void 0:n.logoUri)}},getBeaconClassName:function(){return"undefined-user"}});let g7=g9.extend({authenticatorKey:function(){return this.options.appState.get("authenticatorKey")},idvName:function(){var e,t;let n=null===(e=this.options.appState.get("remediations"))||void 0===e?void 0:e.find(e=>e.name===fb.REDIRECT_IDVERIFY);return null==n?void 0:null===(t=n.idp)||void 0===t?void 0:t.id},getBeaconClassName:function(){let e=rN.result(this,"authenticatorKey"),t=rN.result(this,"idvName");return mS({authenticatorKey:e}).iconClassName||mE(t).iconClassName}});var ye=gG.extend({Header:m8.extend({HeaderBeacon:g7}),Footer:g5});let yt=gA.extend({initialize:function(){gA.prototype.initialize.apply(this,arguments),this.model.set("useRedirect",!0),this.add('<div class="okta-waiting-spinner"></div>')}}),yn=ye.extend({postRender:function(){ye.prototype.postRender.apply(this,arguments);let e=this.options.appState.get("messages")||{};if(this.settings.get("features.skipIdpFactorVerificationBtn")&&!Array.isArray(e.value)&&this.model.get("formName")!==fb.REDIRECT_IDVERIFY){let e=this.options.appState,t=e.get("authenticatorKey"),n=e.get("
17currentAuthenticator")||e.get("currentAuthenticatorEnrollment");rK.isSafari()&&"external_idp"===t&&null!=n&&n.logoUri&&(sh(`#${rL.WIDGET_CONTAINER_ID}`).addClass("no-beacon"),this.$(".beacon-container").hide()),this.$(".o-form-button-bar").hide(),this.$(".okta-waiting-spinner").show(),this.form.trigger("save",this.model)}else this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()}});function yi(e){return e.find(e=>e.name===fb.REDIRECT_IDVERIFY).idp.name}let yo=cH.extend({tagName:"p",className:"privacy-footer",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{$2:"<a class='inline-link' data-se='privacy-policy' target='_blank' rel='noopener noreferrer'>$2</a>",$1:"<a class='inline-link' data-se='terms-of-use' target='_blank' rel='noopener noreferrer'>$1</a>",arguments:"idpName",bundle:"login",code:"oie.idv.idp.desc.termsOfUse"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:283}}}))+"</p><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{arguments:"idpName",bundle:"login",code:"oie.idv.idp.desc.agreement"},data:o,loc:{start:{line:1,column:290},end:{line:1,column:367}}}))+"</p>"},useData:!0}),getTemplateData:function(){return{idpName:yi(this.options.appState.get("remediations"))}}}),yr=yt.extend({title:function(){return cq("oie.idv.idp.title","login",[yi(this.options.appState.get("remediations"))])},subtitle:function(){return cq("oie.idv.idp.desc","login",[yi(this.options.appState.get("remediations"))])},save:function(){return cq("oie.optional.authenticator.button.title","login")}});var ya=yn.extend({Body:yr,Footer:ga.extend({postRender:function(){this.add(yo);let{termsOfUse:e,privacyPolicy:t}=function(e){let t,n;let i=yi(e);switch(null==i?void 0:i.toUpperCase()){case"PERSONA":t="https://withpersona.com/legal/terms-of-use",n="https://withpersona.com/legal/privacy-policy";break;case"CLEAR":t="https://www.clearme.com/member-terms",n="https://www.clearme.com/privacy-policy";break;case"INCODE":t="https://incode.id/terms",n="https://incode.id/privacy";break;default:{let i=function(e){var t;let n=e.find(e=>e.name===fb.REDIRECT_IDVERIFY);return(null==n?void 0:null===(t=n.idp)||void 0===t?void 0:t.id)===fN.IDV_STANDARD&&(null==n?void 0:n.idvMetadata)||void 0}(e);t=null==i?void 0:i.termsOfUse,n=null==i?void 0:i.privacyPolicy}}return{termsOfUse:t,privacyPolicy:n}}(this.options.appState.get("remediations"));this.$el.find('[data-se="terms-of-use"]').attr("href",e),this.$el.find('[data-se="privacy-policy"]').attr("href",t)}})});let ys=gA.extend({title:function(){return cq("password.reset.title.generic","login")},save:function(){return cq("oform.next","login")},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments);return e.map(e=>{let t={...e};return"identifier"===e.name&&(t={...t,autoComplete:r7.getAutocompleteValue(this.options.settings,"username")}),t})}});var yl=gG.extend({Body:ys,Footer:ga}),yc=m8.extend({HeaderBeacon:g7.extend({authenticatorKey:fS.EMAIL})});let yu=(e={})=>e.city||e.country?e.state?cq("geolocation.formatting.all","login",[e.city,e.state,e.country]):cq("geolocation.formatting.partial","login",[e.city,e.country]):null,yp={AUTHENTICATION:"idx.return.link.otponly.enter.code.on.sign.in.page",RECOVERY:"idx.return.link.otponly.enter.code.on.password.reset.page",UNLOCK_ACCOUNT:"idx.return.link.otponly.enter.code.on.account.unlock.page",ENROLLMENT:"idx.return.link.otponly.enter.code.on.sign.up.page"},yd=(e,t)=>{var n,i;let o,r,a,s;let l=t.get("app"),c=t.get("client"),u=yp[t.get("idx").context.intent],p=u?cq(u,"login"):cq("idx.enter.otp.in.original.tab","login");return null!=l&&l.label&&(o=cq("idx.return.link.otponly.app","login",[l.label])),c&&(a=(r=cq("idx.return.link.otponly.browser.on.os","login",[c.browser,c.os])).includes("Android")||r.includes("iOS"),s=yu(c.location)),{showRequestInfo:o||r||s,appName:o,browserOnOsString:r,isMobileDevice:a,geolocation:s,otp:e.get("otp")||(null===(n=t.get("currentAuthenticator"))||void 0===n?void 0:null===(i=n.contextualData)||void 0===i?void 0:i.otp),enterCodeOnFlowPage:p}},yh=cH.extend({getTemplateData:function(){return yd(this.options.settings,this.options.appState)}}).extend({template:a8.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-otp-only--info"><div class="okta-form-label">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"idx.return.link.otponly.request"},data:o,loc:{start:{line:1,column:198},end:{line:1,column:260}}}))+"</div></div>"},3:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-otp-only--info">'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"isMobileDevice"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:1,column:346}
vendor: 4,186 bytes, line 17
17,end:{line:1,column:540}}}))?r:"")+'<div data-se="otp-browser-os">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"browserOnOsString")||(null!=t?l(t,"browserOnOsString"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"browserOnOsString",hash:{},data:o,loc:{start:{line:1,column:570},end:{line:1,column:591}}}):a)+"</div></div>"},4:function(e,t,n,i,o){return'<i class="enduser-email-otp-only--icon icon--smartphone" aria-hidden="true"></i>'},6:function(e,t,n,i,o){return'<i class="enduser-email-otp-only--icon icon--desktop" aria-hidden="true"></i>'},8:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-otp-only--info"><i class="enduser-email-otp-only--icon icon--app" aria-hidden="true"></i><div data-se="otp-app">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"appName")||(null!=t?a(t,"appName"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"appName",hash:{},data:o,loc:{start:{line:1,column:763},end:{line:1,column:774}}}):r)+"</div></div>"},10:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-otp-only--info"><i class="enduser-email-otp-only--icon icon--location" aria-hidden="true"></i><div data-se="otp-geolocation">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"geolocation")||(null!=t?a(t,"geolocation"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"geolocation",hash:{},data:o,loc:{start:{line:1,column:963},end:{line:1,column:978}}}):r)+"</div></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="enter-code-on-page">'+u(typeof(a=null!=(a=p(n,"enterCodeOnFlowPage")||(null!=t?p(t,"enterCodeOnFlowPage"):t))?a:l)===c?a.call(s,{name:"enterCodeOnFlowPage",hash:{},data:o,loc:{start:{line:1,column:30},end:{line:1,column:53}}}):a)+"</p><h1 class='otp-value no-translate'>"+u(typeof(a=null!=(a=p(n,"otp")||(null!=t?p(t,"otp"):t))?a:l)===c?a.call(s,{name:"otp",hash:{},data:o,loc:{start:{line:1,column:92},end:{line:1,column:99}}}):a)+"</h1>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"showRequestInfo"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:104},end:{line:1,column:279}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"browserOnOsString"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:279},end:{line:1,column:610}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"appName"):t,{name:"if",hash:{},fn:e.program(8,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:610},end:{line:1,column:793}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"geolocation"):t,{name:"if",hash:{},fn:e.program(10,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:793},end:{line:1,column:997}}}))?r:"")+"<br><p class='otp-warning'>"+u((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"idx.return.link.otponly.warning.text"},data:o,loc:{start:{line:1,column:1024},end:{line:1,column:1091}}}))+"</p>"},useData:!0})}),yf=e=>{let t=Object.assign({method:"GET",contentType:"application/json"},e);return sh.ajax(t)},ym=(e,t)=>yf({url:e,timeout:t}),yg=(e,t)=>yf({url:e,method:"GET",timeout:t}),yy=e=>"idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.android_device_policy_app_required_manual_install"===e.message.i18n.key?a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",bundle:"login",code:"idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.android_device_policy_app_required_manual_install"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:194}}}))},useData:!0}
17)():mV(e.message),yv=(e,t)=>{switch(e.type){case"APP_LINK":r7.executeOnVisiblePage(()=>{r7.redirect(e.href,window,!0)});break;case"MESSAGE":{let n=document.getElementById(rL.WIDGET_CONTAINER_ID);if(!n){rQ.error("Cannot find okta-sign-in container to display message");return}let i=n.querySelectorAll(`[data-se="${t}"]`);i&&i[0]&&(i[0].outerHTML=yy(e))}}},yb=(e,t)=>ym(`${e}/probe`,t.probeTimeoutMillis).then(()=>yg(`${e}/${t.remediationPath}/${t.actionPath}`,t.probeTimeoutMillis).then(()=>{t.isSuccess=!0})).catch(()=>(rQ.error(`Something unexpected happened while we were checking url: ${e}.`),sh.Deferred().reject())),yw=e=>e.deviceRemediation&&e.deviceRemediation.value&&e.deviceRemediation.value.action,yk=e=>e&&"LOOPBACK"===e.remediationType,y_=e=>{let t=e.domain,n=e.ports,i=n.length,o=0,r={remediationPath:e.remediationPath,actionPath:e.action,probeTimeoutMillis:e.probeTimeoutMillis,isSuccess:!1},a=Promise.resolve();n.map(e=>`${t}:${e}`).forEach(t=>{r.isSuccess||(a=a.then(()=>yb(t,r)).catch(()=>{o+=1,rQ.error(`Authenticator is not listening on: ${t}.`),o>=i&&!r.isSuccess&&(rQ.error("No available ports. Loopback server failed and using fallback mechanism."),yv(e.fallback,e.action))}))})},yS="idx.error.code.access_denied.device_assurance.remediation",yE=`${yS}.additional_help_`,yT=`${yS}.additional_help_custom`,yx=`${yS}.option_index`,yO=`${yS}.title`,yC=`${yS}.explanation_`;var yA=cH.extend({className:"end-user-remediation-messages-view",template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="end-user-remediation-title">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:o,loc:{start:{line:1,column:53},end:{line:1,column:62}}}):r)+"</div>"},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="end-user-remediation-explanation">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"explanation")||(null!=t?a(t,"explanation"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"explanation",hash:{},data:o,loc:{start:{line:1,column:140},end:{line:1,column:155}}}):r)+"</div>"},5:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="end-user-remediation-options">'+(null!=(r=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"remediationOptions"):t,{name:"each",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:236},end:{line:1,column:605}}}))?r:"")+"</div>"},6:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"className")||(null!=t?l(t,"className"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"className",hash:{},data:o,loc:{start:{line:1,column:276},end:{line:1,column:289}}}):a)+'">'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"link"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.program(9,o,0),data:o,loc:{start:{line:1,column:291},end:{line:1,column:590}}}))?r:"")+"</div>"},7:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+c(typeof(r=null!=(r=u(n,"link")||(null!=t?u(t,"link"):t))?r:s)===l?r.call(a,{name:"link",hash:{},data:o,loc:{start:{line:1,column:312},end:{line:1,column:320}}}):r)+'" target="_blank" rel="noopener noreferrer">'+c(typeof(r=null!=(r=u(n,"message")||(null!=t?u(t,"message"):t))?r:s)===l?r.call(a,{name:"message",hash:{},data:o,loc:{start:{line:1,column:364},end:{line:1,column:375}}}):r)+"</a>"},9:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"deviceRemediationAction"):t,{name:"if",hash:{},fn:e.program(10,o,0),inverse:e.program(12,o,0),data:o,loc:{start:{line:1,column:387}
17,end:{line:1,column:583}}}))?r:""},10:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<button class="enduser-remediation-button-link" id="'+c(typeof(r=null!=(r=u(n,"deviceRemediationAction")||(null!=t?u(t,"deviceRemediationAction"):t))?r:s)===l?r.call(a,{name:"deviceRemediationAction",hash:{},data:o,loc:{start:{line:1,column:470},end:{line:1,column:497}}}):r)+'" data-se="'+c(typeof(r=null!=(r=u(n,"deviceRemediationAction")||(null!=t?u(t,"deviceRemediationAction"):t))?r:s)===l?r.call(a,{name:"deviceRemediationAction",hash:{},data:o,loc:{start:{line:1,column:508},end:{line:1,column:535}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"message")||(null!=t?u(t,"message"):t))?r:s)===l?r.call(a,{name:"message",hash:{},data:o,loc:{start:{line:1,column:537},end:{line:1,column:548}}}):r)+"</button>"},12:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"message")||(null!=t?a(t,"message"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"message",hash:{},data:o,loc:{start:{line:1,column:565},end:{line:1,column:576}}}):r)},14:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a href='#' target='_blank' rel='noopener noreferrer' class='additional-help'>$1</a>",bundle:"login",code:"idx.error.code.access_denied.device_assurance.remediation.additional_help_custom"},data:o,loc:{start:{line:1,column:695},end:{line:1,column:897}}}))},16:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a href='#' target='_blank' rel='noopener noreferrer' class='additional-help'>$1</a>",bundle:"login",code:"idx.error.code.access_denied.device_assurance.remediation.additional_help_default"},data:o,loc:{start:{line:1,column:905},end:{line:1,column:1108}}}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"title"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:75}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"explanation"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:75},end:{line:1,column:168}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"remediationOptions"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:168},end:{line:1,column:618}}}))?r:"")+'<div class="end-user-remediation-help-and-contact">'+(null!=(r=s(n,"if").call(a,null!=t?s(t,"useCustomHelpText"):t,{name:"if",hash:{},fn:e.program(14,o,0),inverse:e.program(16,o,0),data:o,loc:{start:{line:1,column:669},end:{line:1,column:1115}}}))?r:"")+"</div>"},useData:!0}),getTemplateData:function(){let e=this.options.messages,t=[],n=null,i=null,o=!1;return e.forEach(e=>{let{i18n:{key:r,params:a=[]},links:s,message:l}=e;if(r===yO)n=mV(e);else if(r.startsWith("idx.device_assurance.grace_period.warning.title")){if(a.length>0){let e=new Date(a[0]),t=ud.formatDateToDeviceAssuranceGracePeriodExpiryLocaleString(e,this.options.languageTags);n=t?r3(r,"login",[t]):l}}else if(r.startsWith(yC))i=mV(e);else if(r.startsWith(yE))o=r===yT,s&&s[0]&&s[0].url&&(this.additionalHelpUrl=s[0].url);else{let n,i;t.push((n=null,i=null,e.links&&e.links[0]&&e.links[0].url?n=e.links[0].url:yw(e)&&(i=e.deviceRemediation.value.action),{message:mV(e),link:n,deviceRemediationAction:i,className:e.i18n.key===yx?"end-user-remediation-option":"end-user-remediation-action"}))}}),{title:n,explanation:i,remediationOptions:t,useCustomHelpText:o}},render:function(){cH.prototype.render.apply(this,arguments),this.additionalHelpUrl&&this.$el.find(".additional-help").attr("href",this.additionalHelpUrl)},postRender:function(){Array.isArray(this.options.messages)&&this.options.messages.filter(e=>yw(e)).map(e=>
17e.deviceRemediation.value).forEach(e=>{this.$el.find(`#${e.action}`).click(function(t){t.preventDefault(),yk(e)&&y_(e)})})}});let yP="idx.return.link.expired",yN="idx.enter.otp.in.original.tab",yR="idx.error.server.safe.mode",yI="oie.selfservice.unlock_user.success.message",yD="idx.return.to.original.tab",yL="idx.operation.cancelled.on.other.device",yM="idx.device.activated",yU="idx.device.not.activated.consent.denied",yF="idx.device.not.activated.internal.error",yj="idx.transferred.to.new.tab",yV=[yj,"idx.return.stale","idx.return.error","idx.email.verification.required",yD,yP,yL,"idx.operation.cancelled.by.user",yN],yB=[yU,yF],yq=[yM,...yB],y$=[yI,yD,yj,yL,...yq,"oie.selfservice.unlock_user.challenge.failed.permissions","oie.selfservice.reset.password.not.allowed",yN],yH={[yP]:"oie.email.return.link.expired.title",[yI]:"account.unlock.unlocked.title",[yM]:"device.code.activated.success.title","oie.registration.is.not.enabled":"oie.registration.form.title","oie.forgot.password.is.not.enabled":"password.reset.title.generic","idx.expired.activation.token":"oie.activation.request.email.title.expire","idx.request.activation.email":"oie.activation.request.email.title.submitted","idx.activating.inactive.user":"oie.activation.request.email.title.suspended","idx.missing.activation.token":"oie.activation.request.email.title.invalid",[yU]:"device.code.activated.error.title",[yF]:"device.code.activated.error.title",[yD]:"oie.consent.enduser.email.allow.title",[yN]:"idx.return.link.otponly.your.verification.code"},yW=gA.extend({noButtonBar:!0,postRender:function(){if(gA.prototype.postRender.apply(this,arguments),this.$el.addClass("terminal-state"),this.options.appState.containsMessageWithI18nKey(yq)){let e=this.options.appState.containsMessageWithI18nKey(yM)?"success-24-green":"error-24-red";this.$(".o-form-head").before('<div class="device-code-terminal--icon-container"><span class="device-code-terminal--icon '+e+'"></span></div>')}},title:function(){return this.getTerminalViewTitle()},getTerminalViewTitle:function(){if(this.options.appState.containsMessageStartingWithI18nKey(yR))return cq("oie.safe.mode.title","login");let e=Object.keys(yH).find(e=>this.options.appState.containsMessageWithI18nKey(e));if(e)return cq(yH[e],"login")},prepareMessageForCustomView:function(e){let t=!1;return this.options.appState.containsMessageWithI18nKey(yN)?(this.add(yh),t=!0):this.options.appState.containsMessageStartingWithI18nKey("security.access_denied_custom_message")?(this.add(ca({type:"error",content:new g1({message:e.value[0].message,links:e.value[0].links})})),t=!0):this.options.appState.containsMessageStartingWithI18nKey("idx.error.code.access_denied.device_assurance.remediation.")&&(this.add(ca({type:"error",content:new yA({messages:e.value})})),t=!0),t},showMessages:function(){let e;let t=this.options.appState.get("messages"),n=!1;this.options.appState.containsMessageWithI18nKey(yL)?(e=cq("idx.operation.cancelled.on.other.device","login"),t.value.push({message:cq("oie.consent.enduser.deny.description","login")})):this.options.appState.containsMessageWithI18nKey(yD)?(e=cq("oie.consent.enduser.email.allow.description","login"),t.value.push({message:cq("oie.return.to.original.tab","login")})):this.options.appState.containsMessageWithI18nKey("tooManyRequests")?e=cq("oie.tooManyRequests","login"):this.options.appState.containsMessageWithI18nKey(yP)?t.value[0].class="ERROR":n=this.prepareMessageForCustomView(t),e&&Array.isArray(null==t?void 0:t.value)&&(t.value[0].message=e),this.options.appState.set("messages",t),n||gA.prototype.showMessages.call(this)}}),yz=ga.extend({links:function(){return this.options.appState.containsMessageStartingWithI18nKey(yR)?m7(this.options.appState):this.options.appState.containsMessageWithI18nKey(yB)?gn():this.options.appState.hasActionObject("cancel")||this.options.appState.containsMessageWithI18nKey(y$)||this.options.settings.get("features.hideSignOutLinkInMFA")||this.options.settings.get("features.mfaOnlyFlow")?void 0:gt(this.options)}});var yK=gG.extend({initialize:function(){gG.prototype.initialize.apply(this,arguments),this.options.appState.containsMessageWithI18nKey(yV)&&(this.Header=yc)},Body:yW,Footer:yz});
17let yG="security.access_denied_custom_message",yY=gA.extend({title:function(){let e=cq("oie.success.text.signingIn","login"),t=this.options.appState.get("app"),n=this.options.appState.get("user");if(!this.redirectView||this.redirectView===fA.NONE)return cq("oie.success.text.signingIn.with.ellipsis","login");if(rN.isEmpty(t))return e;let{label:i,name:o}=t,{identifier:r}=n||{},a=i||o;return a&&r&&!this.settings.get("features.showIdentifier")?e=cq("oie.success.text.signingIn.with.appName.and.identifier","login",[a,r]):a&&(e=cq("oie.success.text.signingIn.with.appName","login",[a])),e},showMessages:function(){if(this.isUnlockSuccess()){let e=cq("oie.selfservice.unlock_user.landing.to.app.signing.in.message","login");this.add(`<div class="ion-messages-container"><p>${e}</p></div>`,".o-form-error-container");return}if(this.options.appState.containsMessageStartingWithI18nKey(yG)){let{message:e,links:t}=this.options.appState.get("messages").value.find(e=>e.i18n.key===yG);this.add(ca({type:"error",content:new g1({message:e,links:t})}));return}gA.prototype.showMessages.call(this)},isUnlockSuccess:function(){return this.options.appState.containsMessageWithI18nKey("oie.selfservice.unlock_user.landing.to.app.success.message")},noButtonBar:!0,initialize:function(){gA.prototype.initialize.apply(this,arguments),this.redirectView=this.settings.get("interstitialBeforeLoginRedirect"),this.model.set("useRedirect",!0),this.trigger("save",this.model)},render:function(){gA.prototype.render.apply(this,arguments),this.redirectView===fA.DEFAULT&&this.add('<div class="okta-waiting-spinner"></div>')}});var yJ=gG.extend({Body:yY});let yQ=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="ion-messages-container"><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",arguments:"countDownCounterValue",bundle:"login",code:"poll.form.message"},data:o,loc:{start:{line:1,column:39},end:{line:1,column:157}}}))+'</p></div><div class="hide okta-waiting-spinner"></div>'},useData:!0}),getTemplateData:function(){return{countDownCounterValue:this.options}}}),yX=gA.extend(Object.assign({title:function(){return cq("poll.form.title","login")},noButtonBar:!0,initialize:function(){gA.prototype.initialize.apply(this,arguments);let e=this.options.appState.getCurrentViewState().refresh;this.refreshTimeout=setTimeout(()=>{this.$el.find(".okta-waiting-spinner").show(),setTimeout(()=>this.saveForm(this.model),200)},e)},render:function(){gA.prototype.render.apply(this,arguments),this.countDownCounterValue=Math.ceil(this.options.appState.getCurrentViewState().refresh/1e3),this.add(new yQ(this.countDownCounterValue)),this.startCountDown(".ion-messages-container span",1e3)},remove:function(){gA.prototype.remove.apply(this,arguments),clearTimeout(this.refreshTimeout)},triggerAfterError:function(){gA.prototype.triggerAfterError.apply(this,arguments),clearTimeout(this.refreshTimeout),this.stopCountDown(),this.$el.find(".o-form-fieldset-container").empty()},startCountDown:function(e,t){this.countDown&&clearInterval(this.countDown),this.counterEl=this.$el.find(e),this.countDown=setInterval(()=>{"0"!==this.counterEl.text()&&this.counterEl.text(this.counterEl.text()-1)},t,this)},stopCountDown:function(){this.countDown&&clearInterval(this.countDown)}}));var yZ=gG.extend({Body:yX});let y0=cH.extend({className:"consent-title detail-row",titleText:()=>cq("oie.consent.scopes.admin.title","login"),hasIssuer:!0,template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+c(typeof(r=null!=(r=u(n,"clientURI")||(null!=t?u(t,"clientURI"):t))?r:s)===l?r.call(a,{name:"clientURI",hash:{},data:o,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):r)+'" class="client-logo-link" title="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:o,loc:{start:{line:1,column:73},end:{line:1,column:84}}}):r)+'" target="_blank">'},3:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo custom-logo" src="'+c(typeof(r=null!=(r=u(n,"customLogo")||(null!=t?u(t,"customLogo"):t))?r:s)===l?r.call(a,{name:"customLogo",hash:{},data:o,loc:{start:{line:1,column:169},end:{line:1,column:183}}}):r)+'" alt="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:o,loc:{start:{line:1,column:190},end:{line:1,column:201}}}):r)+'" aria-hidden="true" />'},5:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo default-logo" src="'+c(typeof(r=null!=(r=u(n,"defaultLogo")||(null!=t?u(t,"defaultLogo"):t))?r:s)===l?r.call(a,{name:"defaultLogo",hash:{},data:o,loc:{start:{line:1,column:275},end:{line:1,column:290}}}):r)+'" alt="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:o,loc:{start:{line:1,column:297},end:{line:1,column:308}}}):r)+'" aria-hidden="true" />'},7:function(e,t,n,i,o){return"</a>"},9:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="issuer no-translate"><span>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"issuer")||(null!=t?a(t,"issuer"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"issuer",hash:{}
17,data:o,loc:{start:{line:1,column:513},end:{line:1,column:523}}}):r)+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=p(n,"if").call(s,null!=t?p(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:109}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"customLogo"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.program(5,o,0),data:o,loc:{start:{line:1,column:109},end:{line:1,column:338}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:338},end:{line:1,column:366}}}))?r:"")+'<h1><span class="title-text"><b class="no-translate">'+u(typeof(a=null!=(a=p(n,"appName")||(null!=t?p(t,"appName"):t))?a:l)===c?a.call(s,{name:"appName",hash:{},data:o,loc:{start:{line:1,column:419},end:{line:1,column:430}}}):a)+"</b> "+u(typeof(a=null!=(a=p(n,"titleText")||(null!=t?p(t,"titleText"):t))?a:l)===c?a.call(s,{name:"titleText",hash:{},data:o,loc:{start:{line:1,column:440},end:{line:1,column:453}}}):a)+"</span>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"issuer"):t,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:460},end:{line:1,column:543}}}))?r:"")+"</h1>"},useData:!0}),getTemplateData:function(){let{appState:e}=this.options,{label:t,clientUri:n,logo:i}=e.get("app"),{issuer:o}=e.get("authentication"),r=null==i?void 0:i.href,a=cq("logo.for.the.app.alt.text","login"),s=rN.escape(t);return{customLogo:r,defaultLogo:"/img/logos/default.png",clientURI:null==n?void 0:n.href,issuer:this.hasIssuer?null==o?void 0:o.uri:null,altText:a,appName:s,titleText:this.titleText()}}});var y1=gA.extend({noButtonBar:!1,noCancelButton:!1,buttonOrder:["cancel","save"],save:()=>cq("consent.required.consentButton","login"),cancel:()=>cq("consent.required.cancelButton","login"),title:!1,events:{'click input[data-type="save"]':function(){this.setConsent(!0)}},setConsent:function(e){this.model.set("consent",e)},cancelForm:function(){this.setConsent(!1),this.options.appState.trigger("saveForm",this.model)}}),y8=gG.extend({Header:y0,Body:y1,createModelClass:function(e){let t=gG.prototype.createModelClass.apply(this,arguments),{uiSchema:n}=e,{scopes:i}=n[0],o=i.map(({name:e,displayName:t,description:n})=>{let i=`consent.scopes.${e}`,o=`${i}.label`,r=`${i}.desc`,a=mM(o),s=mM(r);return{name:e,displayName:a?cq(o,"login"):t,description:s?cq(r,"login"):n,isCustomized:!a}});return t.extend({props:{scopes:{type:"array",value:o}},local:{consent:{type:"boolean",value:!1}},toJSON:function(){return{consent:this.get("consent")}}})}});let y2=cH.extend({className:"consent-footer",template:a8.template({1:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="terms-of-service" href="'+c("function"==typeof(a=null!=(a=u(n,"termsOfService")||(null!=t?u(t,"termsOfService"):t))?a:l)?a.call(s,{name:"termsOfService",hash:{},data:o,loc:{start:{line:1,column:56},end:{line:1,column:74}}}):a)+'" target="_blank">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"consent.required.termsOfService"},data:o,loc:{start:{line:1,column:92},end:{line:1,column:154}}}))+"</a>"+(null!=(r=u(n,"if").call(s,null!=t?u(t,"privacyPolicy"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:158},end:{line:1,column:226}}}))?r:"")},2:function(e,t,n,i,o){return'<span class="no-translate">•</span>'},4:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="privacy-policy" href="'+l("function"==typeof(r=null!=(r=c(n,"privacyPolicy")||(null!=t?c(t,"privacyPolicy"):t))?r:s)?r.call(a,{name:"privacyPolicy",hash:{},data:o,loc:{start:{line:1,column:286},end:{line:1,column:303}}}):r)+'" target="_blank">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"consent.required.privacyPolicy"},data:o,loc:{start:{line:1,column:321},end:{line:1,column:382}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"termsOfService"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:233}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"privacyPolicy"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:233},end:{line:1,column:393}}}))?r:"")},useData:!0}
17),getTemplateData:function(){let e=this.options.appState.get("app");return{termsOfService:e.termsOfService&&e.termsOfService.href,privacyPolicy:e.privacyPolicy&&e.privacyPolicy.href}}});var y3=y0.extend({titleText:()=>cq("oie.consent.scopes.enduser.title","login"),hasIssuer:!1}),y4=cH.extend({className:"consent-description detail-row",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"consent.required.description"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:62}}}))+"</p>"},useData:!0})}),y6=y8.extend({Header:y3,Footer:y2,postRender:function(){let e=this.$el.find(".scope-list"),t=new y4().render().el;e.after(t)}}),y5=cJ.CheckBox.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input type="checkbox" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:o,loc:{start:{line:1,column:29},end:{line:1,column:37}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:43},end:{line:1,column:54}}}):r)+'"/><label for="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:o,loc:{start:{line:1,column:69},end:{line:1,column:80}}}):r)+'" data-se-for-name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:108}}}):r)+'"><b>'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:o,loc:{start:{line:1,column:113},end:{line:1,column:128}}}):r)+"</b><p>"+c(typeof(r=null!=(r=u(n,"desc")||(null!=t?u(t,"desc"):t))?r:s)===l?r.call(a,{name:"desc",hash:{},data:o,loc:{start:{line:1,column:135},end:{line:1,column:143}}}):r)+"</p></label>"},useData:!0}),getLocalizedLabel:function(){let e=`consent.scopes.${this.options.options.scopeName}.label`;return mM(e)?cq(e,"login"):this.options.placeholder||this.options.options.scopeName},getLocalizedDesc:function(){let e=`consent.scopes.${this.options.options.scopeName}.desc`;return mM(e)?cq(e,"login"):this.options.options.desc},isCustomizedScope:function(){return!mM(`consent.scopes.${this.options.options.scopeName}.label`)},enable:function(){this.options.options.mutable&&this.$(":input").prop("disabled",!1)},editMode:function(){if(this.$el.html(this.template(rN.extend(rN.omit(this.options,"placeholder"),{placeholder:this.getLocalizedLabel(),desc:this.getLocalizedDesc()}))),this.$(":checkbox").prop("checked",this.getModelValue()||!1),this.$("input").customInput(),this.model.trigger("form:resize"),!this.options.options.mutable){let e=this.$("input").get(0);this.$(e.parentElement).addClass("o-form-read-mode"),this.$(":checkbox").prop("disabled",!0)}return("openid"===this.options.options.scopeName||this.isCustomizedScope())&&(this.$("label > b").addClass("no-translate"),this.isCustomizedScope()&&this.$("label > p").addClass("no-translate")),this}});let y9=y0.extend({hasIssuer:!1,template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+c(typeof(r=null!=(r=u(n,"clientURI")||(null!=t?u(t,"clientURI"):t))?r:s)===l?r.call(a,{name:"clientURI",hash:{},data:o,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):r)+'" class="client-logo-link" title="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:o,loc:{start:{line:1,column:73},end:{line:1,column:84}}}):r)+'" target="_blank">'},3:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo custom-logo" src="'+c(typeof(r=null!=(r=u(n,"customLogo")||(null!=t?u(t,"customLogo"):t))?r:s)===l?r.call(a,{name:"customLogo",hash:{},data:o,loc:{start:{line:1,column:169},end:{line:1,column:183}}}):r)+'" alt="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:o,loc:{start:{line:1,column:190},end:{line:1,column:201}}}):r)+'" aria-hidden />'},5:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo default-logo" src="'+c(typeof(r=null!=(r=u(n,"defaultLogo")||(null!=t?u(t,"defaultLogo"):t))?r:s)===l?r.call(a,{name:"defaultLogo",hash:{},data:o,loc:{start:{line:1,column:268},end:{line:1,column:283}}}):r)+'" alt="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:o,loc:{start:{line:1,column:290},end:{line:1,column:301}}}):r)+'" aria-hidden />'},7:function(e,t,n,i,o){return"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:109}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"customLogo"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.program(5,o,0),data:o,loc:{start:{line:1,column:109},end:{line:1,column:324}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:324},end:{line:1,column:352}}}))?r:"")+'<h1><span class="title-text">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{$2:"<p>$2</p>",$1:"<b class='no-translate'>$1</b>",arguments:"appName",bundle:"login",code:"oie.consent.scopes.granular.title"},data:o,loc:{start:{line:1,column:381}
17,end:{line:1,column:517}}}))+"</span></h1>"},useData:!0})}),y7=y1.extend({cancel:gA.prototype.cancel,getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments);return e.forEach(e=>{"checkbox"===e.type&&rN.assign(e,{input:y5,options:{desc:e.desc,mutable:e.mutable,scopeName:e.name.substring(e.name.indexOf(".")+1)}})}),e}}),ve=cH.extend({className:"consent-description",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.consent.scopes.granular.description"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:73}}}))+"</p>"},useData:!0})});var vt=gG.extend({Header:y9,Body:y7,Footer:y2,postRender:function(){let e=this.$el.find(".o-form-fieldset-container");e.before(new ve().render().el),this.$(":disabled").each(function(){e.append(sh(this).closest(".o-form-fieldset"))})}});let vn=a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-consent--info no-translate"><i class="enduser-email-consent--icon icon--desktop"></i><div>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"browser")||(null!=t?a(t,"browser"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"browser",hash:{},data:o,loc:{start:{line:1,column:131},end:{line:1,column:142}}}):r)+"</div></div>"},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-consent--info no-translate"><i class="enduser-email-consent--icon icon--app"></i><div>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"app")||(null!=t?a(t,"app"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"app",hash:{},data:o,loc:{start:{line:1,column:284},end:{line:1,column:291}}}):r)+"</div></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"browser"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:161}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"app"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:161},end:{line:1,column:310}}}))?r:"")},useData:!0}),vi=y1.extend({className:"enduser-email-consent",title:function(){return cq("oie.consent.enduser.title","login")},save:function(){return cq("oie.consent.enduser.accept.label","login")},cancel:function(){return cq("oie.consent.enduser.deny.label","login")},initialize:function(){gA.prototype.initialize.apply(this,arguments);let e=vn(this.model.pick("browser","app"));this.add(e)},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments);return e.filter(e=>"consent"!==e.name)}});var vo=ye.extend({Header:yc,buttonOrder:["cancel","save"],postRender:function(){this.$el.find(".o-form-button-bar").find(".button-primary").removeClass("button-primary")},Body:vi,createModelClass:function({requestInfo:e}){let t=ye.prototype.createModelClass.apply(this,arguments),n=e.find(({name:e})=>"browser"===e),i=e.find(({name:e})=>"appName"===e),o=Object.assign({browser:{type:"string",value:null==n?void 0:n.value},app:{type:"string",value:null==i?void 0:i.value}},t.prototype.local);return t.extend({local:o,toJSON:function(){return{consent:this.get("consent")}}})}}),vr=m8.extend({HeaderBeacon:g7.extend({authenticatorKey:fS.OV})});let va=gB.extend({pollingCancelAction:gs,getDeviceChallengePayload:function(){return this.options.currentViewState.relatesTo.value},doChallenge:function(){gM(this,gl)},onPollingFail:function(){gB.prototype.onPollingFail.apply(this,arguments);let e={label:cq("loopback.polling.cancel.link.with.form.error","login")};this.options.appState.trigger("updateFooterLink",e)},showCustomFormErrorCallout:function(e,t){let n=e.responseJSON,i={type:"error",className:"okta-verify-uv-callout-content",subtitle:n.errorSummary};if(n.errorSummaryKeys&&n.errorSummaryKeys.some(e=>e.includes("auth.factor.signedNonce.error"))&&(i.title=cq("user.fail.verifyIdentity","login")),n.errorSummaryKeys&&n.errorSummaryKeys.some(e=>
17e.includes("security.access_denied_custom_message"))){let e=null==t?void 0:t.find(e=>"security.access_denied_custom_message"===e.i18n.key);if(!e)return!1;i={type:"error",content:new g1({message:n.errorSummary,links:e.links})}}return this.showMessages(ca(i)),!0}}),vs=ga.extend({initialize:function(){this.listenTo(this.options.appState,"updateFooterLink",this.handleUpdateFooterLink),this.isFallbackApproach()&&!this.isFallbackDelayed()?ga.prototype.initialize.apply(this,arguments):this.backLink=this.add(m2,{options:{name:"cancel-authenticator-challenge",label:cq("loopback.polling.cancel.link","login"),clickHandler:()=>{gU(this.options.appState,gs,gu.USER_CANCELED,null)}}}).last()},handleUpdateFooterLink:function(e){(!this.isFallbackApproach()||this.isFallbackDelayed())&&(this.backLink&&this.backLink.remove(),this.backLink=this.add(m2,{options:ge(this.options.settings,e)[0]}).last())},isFallbackApproach:function(){return[rL.CUSTOM_URI_CHALLENGE,rL.UNIVERSAL_LINK_CHALLENGE,rL.APP_LINK_CHALLENGE].includes(this.options.currentViewState.relatesTo.value.challengeMethod)},isFallbackDelayed:function(){return this.options.currentViewState.relatesTo.value.challengeMethod===rL.APP_LINK_CHALLENGE}});var vl=gG.extend({Header:vr,Body:va,Footer:vs});let vc=gA.extend({noButtonBar:!0,className:"ion-form device-challenge-poll",title:function(){return cq("deviceTrust.sso.redirectText","login")},initialize:function(){var e,t;gA.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"error",()=>{this.$(".spinner").hide()}),this.add('<div class="spinner"></div>');let n=(null===(e=this.options.currentViewState)||void 0===e?void 0:null===(t=e.method)||void 0===t?void 0:t.toLowerCase())==="get";this.model.set("useRedirect",n),this.trigger("save",this.model)}});var vu=gG.extend({Body:vc});let vp=gA.extend({title:function(){return cq("primaryauth.title","login")},noButtonBar:!0,initialize:function(){gA.prototype.initialize.apply(this,arguments),this.add(gX,{selector:".o-form-fieldset-container",bubble:!1,prepend:!0,options:{isRequired:!0}})}}),vd=gY.extend({hasBackToSignInLink:!1});var vh=gG.extend({Body:vp,Footer:vd});let{Notification:vf}=cK,{Clipboard:vm}=cz,vg=e=>{let t=(e.platform||"").toLowerCase(),n=e.challengeMethod,i=e.name,o=t===rL.IOS,r=t===rL.ANDROID&&"APP_LINK"===n,a=t===rL.ANDROID&&"LOOPBACK"===n;return{signInUrl:e.signInUrl,isIOS:o,enrollmentType:i,isAndroidLoopback:a,isAndroidAppLink:r,appStoreLink:o?rL.OKTA_VERIFY_APPLE_APP_STORE_URL:rL.OKTA_VERIFY_GOOGLE_PLAY_STORE_URL,orgName:e.orgName}},vy=cH.extend({getTemplateData:function(){return vg(this.options.appState.get("deviceEnrollment"))}}),vv=vy.extend({template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.copyLink"},data:o,loc:{start:{line:1,column:120},end:{line:1,column:175}}}))+'<a data-clipboard-text="'+l("function"==typeof(r=null!=(r=c(n,"appStoreLink")||(null!=t?c(t,"appStoreLink"):t))?r:s)?r.call(a,{name:"appStoreLink",hash:{},data:o,loc:{start:{line:1,column:199},end:{line:1,column:215}}}):r)+'" class="button link-button copy-clipboard-button">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.copyLink"},data:o,loc:{start:{line:1,column:266},end:{line:1,column:316}}}))+"</a></li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.pasteLink"},data:o,loc:{start:{line:1,column:329},end:{line:1,column:385}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step3"},data:o,loc:{start:{line:1,column:394},end:{line:1,column:441}}}))+"</li>"},3:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"enroll.oda.android.step1"},data:o,loc:{start:{line:1,column:482}
17,end:{line:1,column:537}}}))+"</li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.explanation.p1"},data:o,loc:{start:{line:1,column:43},end:{line:1,column:95}}}))+"</p><ol>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"isIOS"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:103},end:{line:1,column:453}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"isAndroidLoopback"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:453},end:{line:1,column:549}}}))?r:"")+"<li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step1"},data:o,loc:{start:{line:1,column:553},end:{line:1,column:600}}}))+"</li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step2"},data:o,loc:{start:{line:1,column:609},end:{line:1,column:656}}}))+'<p class="org-signin-link"><span class="no-translate">'+c(typeof(a=null!=(a=p(n,"signInUrl")||(null!=t?p(t,"signInUrl"):t))?a:l)===u?a.call(s,{name:"signInUrl",hash:{},data:o,loc:{start:{line:1,column:710},end:{line:1,column:723}}}):a)+'</span></p><a data-clipboard-text="'+c(typeof(a=null!=(a=p(n,"signInUrl")||(null!=t?p(t,"signInUrl"):t))?a:l)===u?a.call(s,{name:"signInUrl",hash:{},data:o,loc:{start:{line:1,column:758},end:{line:1,column:771}}}):a)+'" class="button link-button copy-org-clipboard-button">'+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.org.copyLink"},data:o,loc:{start:{line:1,column:826},end:{line:1,column:880}}}))+"</a></li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step6"},data:o,loc:{start:{line:1,column:893},end:{line:1,column:940}}}))+"</li></ol>"},useData:!0}),postRender:function(){vm.attach(".copy-clipboard-button").done(()=>{let e=new vf({message:cq("enroll.mdm.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1}),vm.attach(".copy-org-clipboard-button").done(()=>{let e=new vf({message:cq("enroll.oda.org.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1})}}),vb=vy.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.explanation"},data:o,loc:{start:{line:1,column:43},end:{line:1,column:109}}}))+'</p><p class="subtitle">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.subtitile1 "},data:o,loc:{start:{line:1,column:133},end:{line:1,column:199}}}))+"</p><ul><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step1"},data:o,loc:{start:{line:1,column:211},end:{line:1,column:271}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step2"},data:o,loc:{start:{line:1,column:280},end:{line:1,column:340}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step3"},data:o,loc:{start:{line:1,column:349},end:{line:1,column:409}}}))+'</li></ul><p class="subtitle">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.subtitile2 "},data:o,loc:{start:{line:1,column:439},end:{line:1,column:505}}}))+"</p><ol><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step4"}
17,data:o,loc:{start:{line:1,column:517},end:{line:1,column:577}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{arguments:"signInUrl",bundle:"login",code:"enroll.oda.with.account.step5"},data:o,loc:{start:{line:1,column:586},end:{line:1,column:668}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step6"},data:o,loc:{start:{line:1,column:677},end:{line:1,column:737}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step7"},data:o,loc:{start:{line:1,column:746},end:{line:1,column:806}}}))+"</li></ol>"},useData:!0})}),vw=vy.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.without.account.explanation"},data:o,loc:{start:{line:1,column:43},end:{line:1,column:112}}}))+"</p><ol><li>"+(null!=(r=(p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{arguments:"appStoreLink",bundle:"login",code:"enroll.oda.without.account.step1"},data:o,loc:{start:{line:1,column:124},end:{line:1,column:214}}}))?r:"")+"</li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step1"},data:o,loc:{start:{line:1,column:223},end:{line:1,column:270}}}))+"</li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step2"},data:o,loc:{start:{line:1,column:279},end:{line:1,column:326}}}))+'<p class="org-signin-link"><span class="no-translate">'+c(typeof(a=null!=(a=p(n,"signInUrl")||(null!=t?p(t,"signInUrl"):t))?a:l)===u?a.call(s,{name:"signInUrl",hash:{},data:o,loc:{start:{line:1,column:380},end:{line:1,column:393}}}):a)+'</span></p><a data-clipboard-text="'+c(typeof(a=null!=(a=p(n,"signInUrl")||(null!=t?p(t,"signInUrl"):t))?a:l)===u?a.call(s,{name:"signInUrl",hash:{},data:o,loc:{start:{line:1,column:428},end:{line:1,column:441}}}):a)+'" class="button link-button copy-org-clipboard-button">'+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.org.copyLink"},data:o,loc:{start:{line:1,column:496},end:{line:1,column:550}}}))+"</a></li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.without.account.step4"},data:o,loc:{start:{line:1,column:563},end:{line:1,column:626}}}))+"</li></ol>"},useData:!0}),postRender:function(){vm.attach(".copy-org-clipboard-button").done(()=>{let e=new vf({message:cq("enroll.oda.org.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1})}}),{Notification:vk}=cK,{Clipboard:v_}=cz;var vS=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<div>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.explanation.mdm"},data:o,loc:{start:{line:1,column:5},end:{line:1,column:58}}}))+"</div><ol><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.copyLink"},data:o,loc:{start:{line:1,column:72},end:{line:1,column:127}}}))+'<a data-clipboard-text="'+l("function"==typeof(r=null!=(r=c(n,"enrollmentLink")||(null!=t?c(t,"enrollmentLink"):t))?r:s)?r.call(a,{name:"enrollmentLink",hash:{},data:o,loc:{start:{line:1,column:151},end:{line:1,column:169}}}):r)+'" class="button link-button copy-clipboard-button">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.copyLink"},data:o,loc:{start:{line:1,column:220},end:{line:1,column:270}}}))+"</a></li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.pasteLink"},data:o,loc:{start:{line:1,column:283},end:{line:1,column:339}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",arguments:"vendor",bundle:"login",code:"enroll.mdm.step.followInstructions"},data:o,loc:{start:{line:1,column:348},end:{line:1,column:473}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.relogin"},data:o,loc:{start:{line:1,column:482}
17,end:{line:1,column:536}}}))+"</li></ol>"},useData:!0}),getTemplateData:function(){return this.options.appState.get("deviceEnrollment")},postRender:function(){v_.attach(".copy-clipboard-button").done(()=>{let e=new vk({message:cq("enroll.mdm.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1})}});let vE=gA.extend({noButtonBar:!0,className:"device-enrollment-terminal"}),vT=gA.extend({attributes:{"data-se":"android-app-link-setup-options-terminal"},title:function(){return cq("enroll.title.oda.with.account","login")},initialize:function(){gA.prototype.initialize.apply(this,arguments);let e=vg(this.options.appState.get("deviceEnrollment"));this.model.set("hasOVAccount","no"),this.addInput({label:()=>cq("enroll.subtitle.fastpass","login",[e.orgName]),"label-top":!0,options:{no:cq("enroll.option.noaccount.fastpass","login"),yes:cq("enroll.option.account.fastpass","login")},name:"hasOVAccount",type:"radio"})},saveForm:function(){this.$el.find(".o-form-error-container").empty(),this.options.appState.trigger("updateDeviceEnrollmentView","yes"===this.model.get("hasOVAccount"))}}),vx=vE.extend({attributes:{"data-se":"android-oda-app-link-with-ov-account-terminal"},title:function(){return cq("enroll.title.oda.with.account","login")},initialize:function(){vE.prototype.initialize.apply(this,arguments),this.add(vb)}}),vO=vE.extend({attributes:{"data-se":"android-oda-app-link-without-ov-account-terminal"},title:function(){return cq("enroll.title.oda.without.account","login")},initialize:function(){vE.prototype.initialize.apply(this,arguments),this.add(vw)}}),vC=vE.extend({attributes:{"data-se":"loopback-terminal"},title:function(){return cq("enroll.title.oda","login")},initialize:function(){vE.prototype.initialize.apply(this,arguments),this.add(vv)}}),vA=vE.extend({attributes:{"data-se":"mdm-terminal"},title:function(){return cq("enroll.title.mdm","login")},initialize:function(){vE.prototype.initialize.apply(this,arguments),this.add(vS)}}),vP=m2.extend({postRender:function(){this.$el.click(e=>{e.preventDefault(),this.options.appState.trigger("switchBackToPreselect")})}});var vN=gG.extend({initialize:function(){gG.prototype.initialize.apply(this,arguments),this.listenTo(this.options.appState,"updateDeviceEnrollmentView",this.handleUpdateDeviceEnrollmentView),this.listenTo(this.options.appState,"switchBackToPreselect",this.handleSwitchBackToPreselect);let e=vg(this.options.appState.get("deviceEnrollment"));switch(this.enrollmentType=(e.enrollmentType||"").toLowerCase(),this.enrollmentType){case rL.ODA:this.Header=vr,this.Body=e.isAndroidAppLink?vT:vC;break;case rL.MDM:case rL.WS1:this.Body=vA}},handleUpdateDeviceEnrollmentView:function(e){this.Body=e?vx:vO,this.backLink=this.add(vP,{options:{name:"back-to-preselect",label:cq("oform.back","login")}}).last(),this.renderForm()},handleSwitchBackToPreselect:function(){this.Body=vT,this.backLink&&this.backLink.remove(),this.render()}});let vR=function(e,t,n){e.add(cH.extend({tagName:"section",template:a8.template({1:function(e,t,n,i,o){return"<li>"+e.escapeExpression(e.lambda(t,t))+"</li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="password-authenticator--heading">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"password.complexity.requirements.header"},data:o,loc:{start:{line:1,column:45},end:{line:1,column:115}}}))+'</div><ul class="password-authenticator--list">'+(null!=(r=s(n,"each").call(a,null!=t?s(t,"rulesList"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:162},end:{line:1,column:207}}}))?r:"")+"</ul>"},useData:!0}),getTemplateData:()=>({rulesList:t}),attributes:{"data-se":"password-authenticator--rules"}}),{prepend:n,selector:".o-form-fieldset-container"})},vI=gA.extend({title:function(){if(this.options.appState.getCurrentViewState().href.endsWith("idp/idx/enroll/update")){var e;let t=this.options.appState.attributes;return null!=t&&null!==(e=t.uiDisplay)&&void 0!==e&&e.label?cq("oie.registration.form.customize.label","login",[t.uiDisplay.label]):cq("oie.primaryauth.submit","login")}return cq("oie.registration.form.title","login")},save:function(){if(this.options.appState.getCurrentViewState().href.endsWith("idp/idx/enroll/update")){var e;let t=this.options.appState.attributes;return null!=t&&null!==(e=t.uiDisplay)&&void 0!==e&&e.buttonLabel?cq("oie.registration.form.customize.buttonLabel","login",[t.uiDisplay.buttonLabel]):cq("oie.registration.form.update.submit","login")}return cq("oie.registration.form.submit","login")},saveForm:function(){this.settings.preRegistrationSubmit(this.model.toJSON(),e=>{this.model.attributes={...this.model.attributes,...this.model.parse(e)},gA.prototype.saveForm.call(this,this.model)},e=>this.model.trigger("error",this.model,{responseJSON:e}))},triggerAfterError:function(e,t){var n;(null==t?void 0:null===(n=t.responseJSON)||void 0===n?void 0:n.errorCauses)&&Array.isArray(t.responseJSON.errorCauses)&&t.responseJSON.errorCauses.forEac
17h(e=>{var t;null!==(t=e.errorKey)&&void 0!==t&&t.includes("password.passwordRequirementsNotMet")&&(e.errorSummary=cq("registration.error.password.passwordRequirementsNotMet","login"))}),this.options.appState.trigger("afterError",t)}}),vD=ga.extend({links:function(){let e=[];return this.options.appState.hasRemediationObject(fb.SELECT_IDENTIFY)&&e.push({type:"link",label:cq("haveaccount","login"),name:"back",actionPath:fb.SELECT_IDENTIFY}),e}});var vL=gG.extend({Body:vI,Footer:vD,createModelClass:function(e,t,n){let i=JSON.parse(JSON.stringify(e.uiSchema)),o=gG.prototype.createModelClass.apply(this,arguments,e);return o=o.extend({toJSON:function(){let t=su.prototype.toJSON.call(this,arguments,e);if(t.userProfile){let n=e.uiSchema,i=t.userProfile;rN.each(i,(e,t)=>{if(rN.isEmpty(e)){let e=n.find(e=>e.name===`userProfile.${t}`);rN.isUndefined(e)||e.required||delete i[t]}})}return t}}),n.parseRegistrationSchema(i,n=>{rN.isEqual(n,e.uiSchema)||(e.uiSchema=n,o=gG.prototype.createModelClass.call(this,e,t))},e=>{o=o.extend({local:{parseSchemaError:{value:e,type:"object"},...o.prototype.local}})}),o},postRender:function(){gG.prototype.postRender.apply(this,arguments);let e=this.model.get("parseSchemaError");e&&this.model.trigger("error",this.model,{responseJSON:e}),this.renderPasswordPolicySettings();let t=gT(this.options);Array.isArray(t)&&t.length&&this._addIdpView(t)},renderPasswordPolicySettings:function(){var e,t,n;let i=this.options.currentViewState.value.filter(e=>"credentials"===e.name)[0],o=null==i?void 0:null===(e=i.form)||void 0===e?void 0:e.value;o&&o.filter(e=>"passcode"===e.name)&&vR(this,mv(null==i?void 0:null===(t=i.relatesTo)||void 0===t?void 0:null===(n=t.value)||void 0===n?void 0:n.settings),!1)},_addIdpView:function(e){let t=this.options.settings.get("idpDisplay"),n=t&&"PRIMARY"===t.toUpperCase();this.add(gJ,{prepend:n,selector:n?".o-form-fieldset-container":".o-form-button-bar",options:{idpButtons:e,isPrimaryIdpDisplay:n}})}});let vM=gA.extend({className:"profile-update",title:function(){return cq("oie.profile.additional.title","login")},save:function(){return cq("enroll.choices.submit.finish","login")},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments);return e.forEach(e=>{"userProfile.secondEmail"===e.name&&(e.explain=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",bundle:"login",code:"oie.profile.additional.secondemail.subtitle"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:112}}}))?r:""},useData:!0})}))}),e},initialize:function(){gA.prototype.initialize.apply(this,arguments)}}),vU=ga.extend({className:"auth-footer side-by-side-links",links:function(){let{uiSchema:e}=this.options.currentViewState,t=e.filter(e=>!1===e.required);if(e.length===t.length)return m7(this.options.appState,cq("oie.enroll.skip.profile","login"));this.$el.removeClass(".side-by-side-links")}});var vF=gG.extend({Body:vM,Footer:vU,postRender:function(){gG.prototype.postRender.apply(this,arguments),this.options.appState.getSchemaByName("userProfile.secondEmail")&&this.model.set("userProfile.secondEmail","")}});let vj=gA.extend({title:function(){return cq("oie.activation.request.email.title.expire","login")},save:function(){return cq("oie.activation.request.email.button","login")}});var vV=gG.extend({Body:vj});let vB=gA.extend({title:function(){return cq("oie.select.authenticators.enroll.title","login")},subtitle:function(){return this.options.settings.get("brandName")?cq("oie.select.authenticators.enroll.subtitle.custom","login",[this.options.settings.get("brandName")]):cq("oie.select.authenticators.enroll.subtitle","login")},noButtonBar:!0});var vq=gG.extend({Body:vB});let v$=gA.extend({title:function(){return this.isPasswordRecoveryFlow()?cq("password.reset.title.generic","login"):cq("oie.select.authenticators.verify.title","login")},subtitle:function(){if(this.isPasswordRecoveryFlow())return cq("oie.password.reset.verification","login");if(this.isUnlockSuccess()){let e=cq("oie.select.authenticators.verify.subtitle","login");this.add(`<div class="ion-messages-container"><p>${e}</p></div>`,".o-form-error-container");return}return cq("oie.select.authenticators.verify.subtitle","login")},isPasswordRecoveryFlow:function(){return this.options.appState.get("isPasswordRecovery")},noButtonBar:!0,showMessages:function(){if(this.isUnlockSuccess()){let e={};e.subtitle=cq("oie.selfservice.unlock_user.landing.to.app.success.message","login"),e.type="success",e=ca(e),gA.prototype.showMessages.call(this,e);return}gA.prototype.showMessages.call(this)},isUnlockSuccess:function(){return this.options.appState.containsMessageWithI18nKey("oie.selfservice.unlock_user.landing.to.app.success.message")}});var vH=gG.extend({Body:v$,Footer:ga.extend({links:function(){return gr(this.options.appState,this.options.settings)}})});let vW=gA.extend({noButtonBar:!0,title:function(){return cq("oie.select.authenticators.verify.title","login")},subtitle:function(){return cq("oie.select.authenticators.verify.subtitle","login")}});var vz=gG.extend({Body:vW});let vK=gA.extend({title:function(){return cq("oie.password.enroll.title","login")},save:function(){return cq("oform.next","login")},initialize:function(){gA.prototype.initialize.apply(this,arguments);let e=this.getPasswordPolicySettings();this.displayPasswordPolicy(e)},displayPasswordPolicy:function(e){e&&vR(this,mv(e),!0)},triggerAfterError:function(e,t){var n,i,o;t.responseJSON=((null===(i=(n=t.responseJSON).errorCauses)||void 0===i?void 0:i.length)>0&&Array.isArray(n.errorCauses[0].errorSummary)&&n.errorCauses[0].errorSummary.length>0&&(n.errorCauses[0].errorSummary=n.errorCauses[0].errorSummary[0],"password.passwordRequirementsNotMet"===((null===(o=n.errorCauses[0].errorKey)||void 0===o?void 0:o.length)>0&&n.errorCauses[0].errorKey[0])&&(n.errorCauses[0].errorSummary=r3("registration.error.password.passwordRequirementsNotMet","login"))),n),this.options.appState.trigger("after
17Error",t)},getPasswordPolicySettings:function(){var e;let t=this.options.currentViewState.relatesTo;return null==t?void 0:null===(e=t.value)||void 0===e?void 0:e.settings},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments),t={name:"confirmPassword",label:cq("oie.password.confirmPasswordLabel","login"),type:"password","label-top":!0,params:{showPasswordToggle:this.settings.get("showPasswordToggle")}},n=[];for(let i of e)n.push(i),"credentials.passcode"===i.name&&n.push(t);return n}});var vG=ye.extend({Body:vK,createModelClass:function(){let e=gG.prototype.createModelClass.apply(this,arguments),t=Object.assign({confirmPassword:{type:"string",required:!0}},e.prototype.local);return e.extend({local:t,validate:function(){return this.get("credentials.passcode")!==this.get("confirmPassword")&&this.get("credential.value")!==this.get("confirmPassword")?{confirmPassword:cq("password.error.match","login")}:null}})}});let vY=gA.extend({title:function(){return cq("oie.password.challenge.title","login")},save:function(){return cq("mfa.challenge.verify","login")},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments),{settings:t}=this.options,n="primaryauth.password.tooltip",i=e.find(({name:e})=>"credentials.passcode"===e);return i&&m$(n,t)&&(i.explain=cq(n,"login"),i["explain-top"]=!0),e}}),vJ=g5.extend({links:function(){let e=g5.prototype.links.apply(this,arguments);return m9(this.options.appState,this.options.settings).concat(e)}});var vQ=ye.extend({Body:vY,Footer:vJ});let vX=vG.prototype.Body.extend({className:"password-authenticator",title:function(){return this.options.settings.get("brandName")?cq("password.expired.title.specific","login",[this.options.settings.get("brandName")]):cq("password.expired.title.generic","login")},save:function(){return cq("password.expired.submit","login")},getPasswordPolicySettings:function(){var e,t;return(null===(e=this.options.appState.get("recoveryAuthenticator"))||void 0===e?void 0:e.settings)||(null===(t=this.options.appState.get("enrollmentAuthenticator"))||void 0===t?void 0:t.settings)}});var vZ=vG.extend({Body:vX});let v0=vG.prototype.Body.extend({className:"password-authenticator",subtitle:function(){if(this.options.settings.get("brandName"))return cq("password.expiring.subtitle.specific","login",[this.options.settings.get("brandName")])},title:function(){let e=(this.getPasswordPolicySettings()||{}).daysToExpiry;return e>0?cq("password.expiring.title","login",[e]):0===e?cq("password.expiring.today","login"):cq("password.expiring.soon","login")},save:function(){return cq("password.expired.submit","login")},showMessages:function(){if(this.options.settings.get("brandName"))return null;vG.prototype.Body.prototype.showMessages.apply(this,arguments)}}),v1=ga.extend({links:function(){let e=[];return this.options.appState.hasRemediationObject("skip")&&e.push({type:"link",label:cq("password.expiring.later","login"),name:"skip",actionPath:"skip"}),e}});var v8=vG.extend({Body:v0,Footer:v1});let v2=vG.prototype.Body.extend({className:"password-authenticator",title:function(){return this.options.settings.get("brandName")?cq("password.reset.title.specific","login",[this.options.settings.get("brandName")]):cq("password.reset.title.generic","login")},save:function(){return cq("password.reset","login")}});var v3=vG.extend({Body:v2}),v4=cH.extend({postRender:function(){this.showCalloutAfterTimeout()},showCalloutAfterTimeout:function(){f$.getResendTimestamp()||f$.setResendTimestamp(Date.now()),this.showMeInterval=setInterval(()=>{let e=f$.getResendTimestamp();Date.now()-e>=3e4&&(this.$el.removeClass("hide"),clearInterval(this.showMeInterval),f$.removeResendTimestamp())},250)},remove:function(){var e,t;cH.prototype.remove.apply(this,arguments),clearInterval(this.showMeInterval);let n=this.options.appState.get("currentFormName"),i=(null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e?void 0:e.resend)||(null===(t=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===t?void 0:t.resend),o=this.options.model.get("formName")!==n;f$.getResendTimestamp()&&(!i||o)&&f$.removeResendTimestamp()}});let v6=v4.extend({className:"phone-authenticator-challenge__resend-warning hide",events:{"click a.resend-link":"handleResendLink"},modelEvents:{error:"handleError"},resendActionKey:"currentAuthenticatorEnrollment-resend",initialize:function(){let e="sms"===this.model.get("mode")?cq("oie.ph
17one.verify.sms.resendText","login"):cq("oie.phone.verify.call.resendText","login"),t="sms"===this.model.get("mode")?cq("oie.phone.verify.sms.resendLinkText","login"):cq("oie.phone.verify.call.resendLinkText","login");this.add(ca({content:`${e} <a class='resend-link'>${t}</a>`,type:"warning"}))},hideResendViewAndShowAfterTimeout:function(){this.el.classList.contains("hide")||this.el.classList.add("hide"),this.showCalloutAfterTimeout()},handleResendLink:function(e){null==e||e.preventDefault(),this.options.appState.trigger("invokeAction",this.resendActionKey),this.hideResendViewAndShowAfterTimeout()},handleError:function(){this.hideResendViewAndShowAfterTimeout()}}),v5=gA.extend(Object.assign({className:"phone-authenticator-challenge",title:function(){return cq("oie.phone.verify.title","login")},save:function(){return cq("mfa.challenge.verify","login")},initialize:function(){gA.prototype.initialize.apply(this,arguments);let e="sms"===this.model.get("mode")?cq("oie.phone.verify.sms.codeSentText","login"):cq("mfa.calling","login"),t=cq("oie.ph
17one.verify.enterCodeText","login"),n=cq("oie.phone.carrier.charges","login"),i=this.model.get("phoneNumber")!==cq("oie.phone.alternate.title","login"),o=i?this.model.get("nickname"):"",r=o?` (${o})`:"",a=r?`<span class="${(r?"no-translate authenticator-verify-nickname":"")||""}"}>${r}.</span>`:'<span class="no-translate">.</span>';this.add(`<div class="okta-form-subtitle" data-se="o-form-explain">${e} <span class="${i?"strong no-translate nowrap":""}">${this.model.escape("phoneNumber")}</span>${a} ${t}<p>${n}</p></div>`,{prepend:!0,selector:".o-form-fieldset-container"})},postRender:function(){gA.prototype.postRender.apply(this,arguments),this.add(v6,{selector:".o-form-info-container",prepend:!0})}}));var v9=ye.extend({Body:v5,createModelClass:function(){let e=this.options.currentViewState.relatesTo,{methods:t,profile:n,nickname:i}=(null==e?void 0:e.value)||{},o=gG.prototype.createModelClass.apply(this,arguments),r=Object.assign({mode:{value:t[0].type,type:"string"},phoneNumber:{value:null!=n&&n.phoneNumber?n.phoneNumber:cq("oie.ph
17one.alternate.title","login"),type:"string"},nickname:{value:i||"",type:"string"}},o.prototype.local);return o.extend({local:r})}});let v7=v6.extend({className:"phone-authenticator-enroll--warning hide",resendActionKey:"currentAuthenticator-resend"}),be=v9.prototype.Body.extend({className:"phone-authenticator-enroll",title:function(){return cq("oie.phone.enroll.title","login")},postRender:function(){gA.prototype.postRender.apply(this,arguments),this.add(v7,{selector:".o-form-info-container",prepend:!0})}});var bt=v9.extend({Body:be});let bn=gA.extend({className:"phone-authenticator-enroll",title:function(){return cq("oie.phone.enroll.title","login")},subtitle:function(){return"voice"===this.model.get("authenticator.methodType")?cq("oie.phone.enroll.call.subtitle","login"):cq("oie.phone.enroll.sms.subtitle","login")},render:function(){gA.prototype.render.apply(this,arguments),this.el.querySelector(".phone-authenticator-enroll__phone-code").innerText=`+${this.model.get("phoneCode")}`},handlePhoneCodeChange:function(){this.el.querySelector(".phone-authenticator-enroll__phone-code").innerText=`+${this.model.get("phoneCode")}`},save:function(){return"voice"===this.model.get("authenticator.methodType")?cq("oie.phone.call.primaryButton","login"):cq("oie.phone.sms.primaryButton","login")},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments),t=rN.findIndex(e,({name:e})=>"authenticator.phoneNumber"===e),n={"label-top":!0,label:cq("mfa.country","login"),type:"select",options:pO.getCountries(),name:"country",wide:!0},i="okta-phone-number-input",o={label:cq("mfa.phoneNumber.placeholder","login"),inputId:i,type:"group",modelType:"string","label-top":!0,name:"phoneCode",className:"phone-authenticator-enroll__phone",input:[{type:"label",label:`+${this.model.get("phoneCode")}`,className:"phone-authenticator-enroll__phone-code no-translate"},Object.assign({inputId:i},e[t])]},r={label:cq("phone.extention.label","login"),type:"text",className:"phone-authenticator-enroll__phone-ext","label-top":!0,name:"extension",showWhen:{"authenticator.methodType":"voice"}};-1!==t&&(e.splice(t,1,o),e.splice(t,0,n),e.splice(t+2,0,r));let a=rN.find(e,({name:e})=>"authenticator.methodType"===e);return a&&1===a.options.length&&(a.className="hide"),e},updateConditionalText:function(){this.el.querySelector(".okta-form-subtitle").innerText=this.subtitle(),this.el.querySelector('input[type="submit"]').value=this.save()},initialize:function(){gA.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"change:authenticator.methodType",this.updateConditionalText),this.listenTo(this.model,"change:phoneCode",this.handlePhoneCodeChange.bind(this))}});var bi=ye.extend({Body:bn,createModelClass:function(){let e=gG.prototype.createModelClass.apply(this,arguments),t=Object.assign({country:{value:this.settings.get("defaultCountryCode"),type:"string"},extension:{type:"string"}},e.prototype.local),n=Object.assign({phoneCode:{deps:["country"],fn:function(e){return pO.getCallingCodeForCountry(e)}}},e.prototype.derived);return e.extend({local:t,derived:n,toJSON:function(){let e=su.prototype.toJSON.call(this,arguments),t=this.get("extension"),n=this.get("phoneCode"),i=`+${n}${e.authenticator.phoneNumber}`;return"voice"===e.authenticator.methodType&&null!=t&&t.trim().length&&(i=`${i}x${t}`),e.authenticator.phoneNumber=i,e}})}});let bo=gA.extend({className:"phone-authenticator-challenge",events:{"click a.phone-authenticator-challenge__link":"handleSecondaryLinkClick"},title:function(){return cq("oie.phone.verify.title","login")},save:function(){return"sms"===this.model.get("primaryMode")?cq("oie.phone.sms.primaryButton","login"):cq("oie.phone.call.primaryButton","login")},handleSecondaryLinkClick:function(e){e.preventDefault();let t=this.model.get("secondaryMode");this.model.set("authenticator.methodType",t),this.saveForm(this.model)},initialize:function(){this.model.on("error",()=>this.model.set("authenticator.methodType",this.model.get("primaryMode"))),gA.prototype.initialize.apply(this,arguments);
17let e="sms"===this.model.get("primaryMode")?cq("oie.phone.verify.sms.sendText","login"):cq("oie.phone.verify.call.sendText","login"),t=cq("oie.phone.carrier.charges","login"),n=this.model.get("phoneNumber")!==cq("oie.phone.alternate.title","login"),i=n?"strong no-translate nowrap":"",o=n?this.model.get("nickname"):"",r=o?` (${o})`:"",a=r?`<span class="${(r?"no-translate authenticator-verify-nickname":"")||""}">${r}.</span>`:'<span class="no-translate">.</span>',s=`${e} <span ${i?` class="${i}"`:""}>${this.model.escape("phoneNumber")}</span>${a}`;this.add(`<div class="okta-form-subtitle" data-se="o-form-explain">${s}<p>${t}</p></div>`)},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments);return e.filter(e=>"authenticator.methodType"!==e.name)},render:function(){gA.prototype.render.apply(this,arguments);let e=this.model.get("secondaryMode");if(e){let t="sms"===e?cq("oie.phone.sms.secondaryButton","login"):cq("oie.phone.call.secondaryButton","login");this.add(`<a href="#" 18 class="link phone-authenticator-challenge__link" 19 data-se="phone-authenticator-challenge__link">${t}</a>`,".o-form-button-bar")}}});var br=ye.extend({Body:bo,createModelClass:function({uiSchema:e}){let{options:t}=rN.find(e,e=>"authenticator.methodType"===e.name),n=this.options.currentViewState.relatesTo,{profile:i,nickname:o}=(null==n?void 0:n.value)||{},r=gG.prototype.createModelClass.apply(this,arguments),a=Object.assign({primaryMode:{value:t[0].value,type:"string"},secondaryMode:{value:t[1]&&t[1].value,type:"string"},phoneNumber:{value:null!=i&&i.phoneNumber?i.phoneNumber:cq("oie.ph
19one.alternate.title","login"),type:"string"},nickname:{value:o||"",type:"string"}},r.prototype.local);return r.extend({local:a})}});let ba=gA.extend({title:function(){return cq("oie.security.question.enroll.title","login")},save:function(){return cq("mfa.challenge.verify","login")}});var bs=ye.extend({Body:ba});let bl=gA.extend({title:function(){return cq("oie.security.question.challenge.title","login")},save:function(){return cq("mfa.challenge.verify","login")},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments),t=e.filter(e=>e.name.indexOf("questionKey")>=0),n=e.filter(e=>e.name.indexOf("answer")>=0);return 1===t.length&&1===n.length&&(n[0].label=t[0].label),e}});var bc=ye.extend({Body:bl}),bu=cH.extend({className:"oie-webauthn-additional-instructions",initialize:function(){let{description:e}=this.options;e&&(this.add(cH.extend({className:"additional-instructions-title",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.instructions.additional"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:77}}}))+"</p>"},useData:!0})})),this.add(ca({subtitle:e,className:"additional-instructions-callout"})))}}),bp=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="idx-webauthn-enroll-text">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.webauthn.instructions"},data:o,loc:{start:{line:1,column:36},end:{line:1,column:99}}}))+"</p>"},useData:!0}),initialize:function(){let e=this.options.currentViewState.relatesTo,t=null==e?void 0:e.value.contextualData.activationData;rK.isEdge()&&this.add(cH.extend({tagName:"p",className:"idx-webauthn-enroll-text-edge",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.webauthn.instructions.edge"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:68}}}))},useData:!0})})),"required"===t.authenticatorSelection.userVerification&&this.add(ca({className:"uv-required-callout",size:"slim",type:"warning",subtitle:cq("oie.enroll.webauthn.uv.required.instructions","login")}));let n=mk(this.options.currentViewState);n&&this.add(bu,{options:{description:n}}),this.add('<div data-se="webauthn-waiting" class="okta-waiting-spinner"></div>')}});let bd=gA.extend({title:function(){return mb(this.options.currentViewState,!1)},className:"oie-enroll-webauthn",modelEvents:{error:"_stopEnrollment"},getUISchema:function(){let e=[];return dd.isNewApiAvailable()?(e.push({View:bp}),e.push({View:lf({className:"webauthn-setup button button-primary button-wide",title:cq("oie.enroll.webauthn.save","login"),click:()=>{this.triggerWebauthnPrompt()}})})):e.push({View:ca({className:"webauthn-not-supported",type:"error",subtitle:cq("oie.webauthn.error.not.supported","login")})}),e},triggerWebauthnPrompt:function(){this.$el.find(".o-form-error-container").empty(),this._startEnrollment();let e=this.options.currentViewState.relatesTo,t=null==e?void 0:e.value.contextualData.activationData;if(dd.isNewApiAvailable()){var n;let e=(null===(n=t.authenticatorSelection)||void 0===n?void 0:n.requireResidentKey)===!0?[]:function(e=[]){let t=[];return e.forEach(e=>{"webauthn"===e.key&&t.push({type:"public-key",id:dp.strToBin(e.credentialId)})}),t}(this.options.appState.get("authenticatorEnrollments").value),i=rN.extend({},t,{challenge:dp.strToBin(t.challenge),user:{id:dp.strToBin(t.user.id),name:t.user.name,displayName:t.user.displayName},excludeCredentials:e});"undefined"!=typeof AbortController&&(this.webauthnAbortController=new AbortController),navigator.credentials.create({publicKey:i,signal:this.webauthnAbortController&&this.webauthnAbortController.signal}).then(e=>{this.model.set({credentials:{clientData:dp.binToStr(e.response.clientDataJSON),attestation:dp.binToStr(e.response.attestationObject),transports:dd.processWebAuthnResponse(e.response.getTransports,e.response),clientExtensions:dd.processWebAuthnResponse(e.getClientExtensionResults,e)}}),this.saveForm(this.model)}).catch(e=>{this.model.trigger("error",this.model,{responseJSON:{errorSummary:mB(e)}})}).finally(()=>{this.webauthnAbortController=null})}},_startEnrollment:function(){this.$(".okta-waiting-spinner").show(),this.$(".webauthn-setup").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").hide(),this.$(".webauthn-setup").show()}});var bh=ye.extend({Body:bd,postRender:function(){ye.prototype.postRender.apply(this,arguments),this.$el.find('.o-form-button-bar [type="submit"]').remove()}}),bf=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="idx-webauthn-verify-text">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.instructions"},data:o,loc:{start:{line:1,column:36},end:{line:1,column:99}}}))+"</p>"},useData:!0}
19),initialize:function(){let e=this.options.currentViewState.relatesTo;"required"===(null==e?void 0:e.value.contextualData.challengeData).userVerification&&this.add(ca({className:"uv-required-callout",size:"slim",type:"warning",subtitle:cq("oie.verify.webauthn.uv.required.instructions","login")}));let t=mk(this.options.currentViewState);t&&this.add(bu,{options:{description:t}}),this.add('<div data-se="webauthn-waiting" class="okta-waiting-spinner"></div>')}});let bm=cH.extend({id:"help-description-container",className:"help-description js-help-description",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<h3>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.biometric.authenticator.title"},data:o,loc:{start:{line:1,column:4},end:{line:1,column:96}}}))+"</h3><br><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.biometric.authenticator.description1"},data:o,loc:{start:{line:1,column:108},end:{line:1,column:207}}}))+"</p><br><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.biometric.authenticator.description2"},data:o,loc:{start:{line:1,column:218},end:{line:1,column:317}}}))+"</p><br><h3>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.security.key.title"},data:o,loc:{start:{line:1,column:329},end:{line:1,column:410}}}))+"</h3><br><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.security.key.description"},data:o,loc:{start:{line:1,column:422},end:{line:1,column:509}}}))+"</p><br>"},useData:!0})}),bg=cH.extend({id:"help-description-container",className:"help-description js-help-description",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ol class="ov-enrollment-info"><li>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.enrollment.step1"},data:o,loc:{start:{line:1,column:35},end:{line:1,column:114}}}))+"</li><br><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.enrollment.step2"},data:o,loc:{start:{line:1,column:127},end:{line:1,column:206}}}))+"</li><br><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.enrollment.step3"},data:o,loc:{start:{line:1,column:219},end:{line:1,column:298}}}))+"</li><br><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.enrollment.step4"},data:o,loc:{start:{line:1,column:311},end:{line:1,column:390}}}))+"</><br></ol>"},useData:!0})});var by=g5.extend({links:function(){let e=g5.prototype.links.apply(this,arguments),t=this.options.appState.get("app")&&"Okta_Authenticator"===this.options.appState.get("app").name?bg:bm;return e.unshift({label:cq("oie.verify.webauthn.cant.verify","login"),name:"cant-verify","aria-controls":"help-description-container",class:"link help js-help",type:"toggle-text-link",additionalOptions:{view:t,selector:".js-help-description"}}),e}}),bv=cH.extend({className:"setup-webauthn-residentkey-text",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<div>"+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.webauthn.rk.link"},data:o,loc:{start:{line:1,column:5},end:{line:1,column:65}}}))?r:"")+"</div>"},useData:!0}
19),events:{"click .setup-webauthn-residentkey-link":function(e){e.preventDefault(),this.options.appState.trigger("invokeAction",fb.ENROLL_WEBAUTHN_RESIDENTKEY)}}});let bb=gA.extend({title:function(){return mb(this.options.currentViewState,!0)},className:"oie-verify-webauthn",getUISchema:function(){let e=[];if(dd.isNewApiAvailable()){let t=lf({className:"retry-webauthn button-primary default-custom-button",title:cq("mfa.challenge.verify","login"),click:()=>{this.getCredentialsAndSave()}});e.push({View:bf},{View:t}),this._canSetupWebAuthnResidentKey()&&e.push({View:bv})}else e.push({View:ca({className:"webauthn-not-supported",type:"error",subtitle:cq("oie.webauthn.error.not.supported","login")})});return e},remove:function(){gA.prototype.remove.apply(this,arguments),this.webauthnAbortController&&(this.webauthnAbortController.abort(),this.webauthnAbortController=null)},noButtonBar:!0,modelEvents:{error:"_stopVerification"},getCredentialsAndSave:function(){var e;this.clearErrors(),this._startVerification(),"undefined"!=typeof AbortController&&(this.webauthnAbortController=new AbortController);let t=this.options.currentViewState.relatesTo,n=(null==t?void 0:t.value)||{},i=[];((null===(e=this.options.appState.get("authenticatorEnrollments"))||void 0===e?void 0:e.value)||[]).forEach(e=>{"webauthn"===e.key&&i.push({type:"public-key",id:dp.strToBin(e.credentialId)})});let o=n.contextualData.challengeData,r=rN.extend({},o,{allowCredentials:i,challenge:dp.strToBin(o.challenge)});navigator.credentials.get({publicKey:r,signal:this.webauthnAbortController&&this.webauthnAbortController.signal}).then(e=>{let t={clientData:dp.binToStr(e.response.clientDataJSON),authenticatorData:dp.binToStr(e.response.authenticatorData),signatureData:dp.binToStr(e.response.signature)};if(this.options.appState.getSchemaByName("credentials.userHandle")){var n;rN.extend(t,{userHandle:dp.binToStr(null!==(n=e.response.userHandle)&&void 0!==n?n:"")})}this.model.set({credentials:t}),this.saveForm(this.model)},e=>{this.webauthnAbortController&&this.model.trigger("error",this.model,{responseJSON:{errorSummary:mB(e)}})}).finally(()=>{this.webauthnAbortController=null})},_startVerification:function(){this.$(".okta-waiting-spinner").show(),this.$(".retry-webauthn").hide(),this.$(".setup-webauthn-residentkey-text").hide(),this.$(".retry-webauthn")[0].textContent=cq("retry","login")},_stopVerification:function(){this.$(".okta-waiting-spinner").hide(),this.$(".retry-webauthn").show(),this.$(".setup-webauthn-residentkey-text").show()},_canSetupWebAuthnResidentKey:function(){return this.options.appState.hasRemediationObject(fb.ENROLL_WEBAUTHN_RESIDENTKEY)}});var bw=ye.extend({Body:bb,Footer:by,postRender:function(){ye.prototype.postRender.apply(this,arguments),dd.isNewApiAvailable()&&!rK.isSafari()&&this.form.getCredentialsAndSave()}}),bk={buildErrorObject:(e,t)=>m0.isIonErrorResponse(e)?m0.convertFormErrors(e):e.errorSummary?{responseJSON:e}:("function"==typeof t&&t(e),{responseJSON:{errorSummary:cq("error.unsupported.response","login")}}),isRateLimitError:e=>{var t,n,i,o;return!!(null!==(t=e.responseJSON)&&void 0!==t&&null!==(n=t.errorSummaryKeys)&&void 0!==n&&n.includes("tooManyRequests")||(null===(i=e.responseJSON)||void 0===i?void 0:i.errorCode)==="E0000047"&&!(null!==(o=e.responseJSON)&&void 0!==o&&o.errorIntent))}};let b_=v4.extend({className:"hide resend-email-view",events:{"click a.resend-link":"handleResendLink"},modelEvents:{error:"handleError"},initialize:function(){this.add(ca({content:`${cq("email.code.not.received","login")} 20 <a class='resend-link'>${cq("email.button.resend","login")}</a>`,type:"warning"}))},hideResendViewAndShowAfterTimeout:function(){this.$el.hasClass("hide")||this.$el.addClass("hide"),this.showCalloutAfterTimeout()},handleResendLink:function(e){null==e||e.preventDefault(),this.options.appState.trigger("invokeAction",this.options.resendEmailAction),this.hideResendViewAndShowAfterTimeout()},handleError:function(){this.hideResendViewAndShowAfterTimeout()}}),bS=gN.extend(Object.assign({save:function(){return cq("mfa.challenge.verify","login")},initialize:function(){gN.prototype.initialize.apply(this,arguments),this.startPolling()},postRender:function(){gA.prototype.postRender.apply(this,arguments),this.$el.find(".resend-email-view").length||this.add(b_,{selector:".o-form-info-container",prepend:!0,options:{resendEmailA
20ction:this.resendEmailAction}})},saveForm:function(){gA.prototype.saveForm.apply(this,arguments),this.stopPolling()},remove:function(){gA.prototype.remove.apply(this,arguments),this.stopPolling()},triggerAfterError:function(e,t){var n,i;gA.prototype.triggerAfterError.apply(this,arguments);let o=!!this.polling;this.stopPolling(),null!==(n=t.responseJSON)&&void 0!==n&&null!==(i=n.errorSummaryKeys)&&void 0!==i&&i.includes("idx.session.expired")||(bk.isRateLimitError(t)?(o&&setTimeout(()=>{e.trigger("clearFormError")},0),this.startPolling(6e4)):this.startPolling(this.options.appState.get("dynamicRefreshInterval")))}},{title:function(){return cq("oie.email.mfa.title","login")}}));var bE=ye.extend({Body:bS});let bT=cH.extend({className:"okta-form-subtitle",attributes:{"data-se":"o-form-explain"},template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"secondaryEmail"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.program(4,o,0),data:o,loc:{start:{line:1,column:13},end:{line:1,column:433}}}))?r:""},2:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$2:"<span class='strong no-translate'>$2</span>",$1:"<span class='strong no-translate'>$1</span>",arguments:"email;secondaryEmail",bundle:"login",code:"oie.email.verify.alternate.magicLinkToEmailAddress.with.secondary.email"},data:o,loc:{start:{line:1,column:35},end:{line:1,column:269}}}))},4:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong no-translate'>$1</span>",arguments:"email",bundle:"login",code:"oie.email.verify.alternate.magicLinkToEmailAddress"},data:o,loc:{start:{line:1,column:277},end:{line:1,column:426}}}))},6:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.verify.alternate.magicLinkToYourEmail"},data:o,loc:{start:{line:1,column:441},end:{line:1,column:520}}}))},8:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.verify.alternate.instructions"},data:o,loc:{start:{line:1,column:557},end:{line:1,column:628}}}))},10:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.verify.alternate.verificationCode.instructions"},data:o,loc:{start:{line:1,column:636},end:{line:1,column:724}}}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"email"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:1,column:0},end:{line:1,column:527}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"useEmailMagicLinkValue"):t,{name:"if",hash:{},fn:e.program(8,o,0),inverse:e.program(10,o,0),data:o,loc:{start:{line:1,column:527},end:{line:1,column:731}}}))?r:"")},useData:!0}),getTemplateData:function(){return this.options}}),bx=cH.extend({className:"okta-form-subtitle",attributes:{"data-se":"o-form-explain"},template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.enroll.subtitle"},data:o,loc:{start:{line:1,column:0}
20,end:{line:1,column:56}}}))},useData:!0})}),bO=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<button class="button-link enter-auth-code-instead-link" >'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{code:"oie.email.verify.alternate.show.verificationCode.text"},data:o,loc:{start:{line:1,column:58},end:{line:1,column:127}}}))+"</button>"},useData:!0})}),bC=bE.prototype.Body,bA=bC.extend(Object.assign({resendEmailAction:"currentAuthenticator-resend",initialize:function(){var e,t,n;bC.prototype.initialize.apply(this,arguments);let i=(null===(e=this.options.appState.get("user"))||void 0===e?void 0:null===(t=e.profile)||void 0===t?void 0:t.email)||(null===(n=this.options.appState.get("user"))||void 0===n?void 0:n.identifier)||{},o=this.isUseEmailMagicLink();void 0!==o?(this.noButtonBar=!0,this.events["click .enter-auth-code-instead-link"]="showAuthCodeEntry",o&&this.add(bO,{prepend:!0,selector:".o-form-error-container"}),this.add(bT,{prepend:!0,selector:".o-form-error-container",options:{email:i,useEmailMagicLinkValue:o}})):this.add(bx,{prepend:!0,selector:".o-form-error-container"})},postRender:function(){bC.prototype.postRender.apply(this,arguments),void 0!==this.isUseEmailMagicLink()&&(this.isUseEmailMagicLink()?this.showCodeEntryField(!1):this.noButtonBar=!1)},isUseEmailMagicLink:function(){var e,t;return null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e?void 0:null===(t=e.contextualData)||void 0===t?void 0:t.useEmailMagicLink},showAuthCodeEntry:function(){this.noButtonBar=!1,this.render(),this.showCodeEntryField(!0),this.removeEnterAuthCodeInsteadLink()},showCodeEntryField:function(e=!0){this.$el.find(".o-form-fieldset-container").toggle(e)},removeEnterAuthCodeInsteadLink:function(){this.$el.find(".enter-auth-code-instead-link").remove()}}));var bP=bE.extend({Body:bA});let bN=bE.prototype.Body,bR=bN.extend(Object.assign({noButtonBar:!0,resendEmailAction:"currentAuthenticatorEnrollment-resend",events:{"click .enter-auth-code-instead-link":"showAuthCodeEntry"},initialize:function(){var e,t;bN.prototype.initialize.apply(this,arguments);let{email:n,secondaryEmail:i}=(null===(e=this.options.currentViewState.relatesTo)||void 0===e?void 0:null===(t=e.value)||void 0===t?void 0:t.profile)||{},o=this.isUseEmailMagicLink();o&&this.add(bO,{prepend:!0,selector:".o-form-error-container"}),this.add(bT,{prepend:!0,selector:".o-form-error-container",options:{email:n,secondaryEmail:i,useEmailMagicLinkValue:o}})},postRender:function(){bN.prototype.postRender.apply(this,arguments),this.isUseEmailMagicLink()?this.showCodeEntryField(!1):this.noButtonBar=!1},isUseEmailMagicLink:function(){var e,t;let n=null===(e=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===e?void 0:null===(t=e.contextualData)||void 0===t?void 0:t.useEmailMagicLink;return void 0===n||n},showAuthCodeEntry:function(){this.noButtonBar=!1,this.render(),this.showCodeEntryField(!0),this.removeEnterAuthCodeInsteadLink()},showCodeEntryField:function(e=!0){this.$el.find(".o-form-fieldset-container").toggle(e)},removeEnterAuthCodeInsteadLink:function(){this.$el.find(".enter-auth-code-instead-link").remove()}}));var bI=bE.extend({Body:bR});let bD=ye.prototype.Body,bL=cH.extend({template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"secondaryEmail"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.program(4,o,0),data:o,loc:{start:{line:1,column:70},end:{line:1,column:471}}}))?r:""},2:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$2:"<span class='strong no-translate'>$2</span>",$1:"<span class='strong no-translate'>$1</span>",arguments:"email;secondaryEmail",bundle:"login",code:"oie.email.verify.subtitle.text.with.email.and.secondary.email"},data:o,loc:{start:{line:1,column:92},end:{line:1,column:316}}}))},4:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong no-translate'>$1</span>",arguments:"email",bundle:"login",code:"oie.email.verify.subtitle.text.with.email"},data:o,loc:{start:{line:1,column:324},end:{line:1,column:464}}}))},6:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.verify.subtitle.text.without.email"},data:o,loc:{start:{line:1,column:479}
20,end:{line:1,column:555}}}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-subtitle" data-se="o-form-explain">'+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"email"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:1,column:57},end:{line:1,column:562}}}))?r:"")+"</div>"},useData:!0}),getTemplateData:function(){var e,t,n,i;return{email:null===(e=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===e?void 0:null===(t=e.profile)||void 0===t?void 0:t.email,secondaryEmail:null===(n=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===n?void 0:null===(i=n.profile)||void 0===i?void 0:i.secondaryEmail}}}),bM=bD.extend({title:function(){return cq("oie.email.challenge.mfa.title","login")},save:function(){return cq("oie.email.verify.primaryButton","login")},postRender:function(){bD.prototype.postRender.apply(this,arguments),this.add(bL,{prepend:!0,selector:".o-form-info-container"})},getUISchema:function(){let e=bD.prototype.getUISchema.apply(this,arguments);return e.filter(e=>"authenticator.methodType"!==e.name)}});var bU=ye.extend({Body:bM}),bF=v4.extend({className:"hide resend-ov-link-view",events:{"click a.resend-link":"handelResendLink"},initialize:function(){let e=this.options.appState.get("currentAuthenticator").contextualData.selectedChannel;this.add(ca({content:"email"===e?a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.email.notReceived"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:73}}}))?r:""},useData:!0}):a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.sms.notReceived"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:71}}}))?r:""},useData:!0}),type:"warning"}))},handelResendLink:function(e){null==e||e.preventDefault(),this.options.appState.trigger("invokeAction","currentAuthenticator-resend"),this.$el.addClass("hide"),this.showCalloutAfterTimeout()}}),bj=cH.extend({className:"switch-channel-text",template:a8.template({1:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.program(4,o,0),data:o,loc:{start:{line:1,column:23},end:{line:1,column:325}}}))?r:""},2:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.switch.channel.link.text"},data:o,loc:{start:{line:1,column:60},end:{line:1,column:140}}}))?r:""},4:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="switch-channel-link" aria-label="'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.aria.cannotScan"},data:o,loc:{start:{line:1,column:200},end:{line:1,column:259}}}))+'">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.cannotScan"},data:o,loc:{start:{line:1,column:261},end:{line:1,column:314}}}))+"</a>"},6:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isSameDeviceChannel"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.program(9,o,0),data:o,loc:{start:{line:1,column:325},end:{line:1,column:480}}}))?r:""},7:function(e,t,n,i,o){return""},9:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isDeviceBootstrapChannel"):t,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.program(2,o,0),data:o,loc:{start:{line:1,column:356},end:{line:1,column:480}}}))?r:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isQRcodeChannel"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(6,o,0),data:o,loc:{start:{line:1,column:0},end:{line:1,column:487}}}))?r:""},useData:!0}
vendor: 12,562 bytes, line 20
20),getTemplateData:function(){let e=this.options.appState.get("currentAuthenticator").contextualData.selectedChannel;return{sameDeviceOVEnrollmentEnabled:this.settings.get("features.sameDeviceOVEnrollmentEnabled"),isQRcodeChannel:"qrcode"===e,isSameDeviceChannel:"samedevice"===e,isDeviceBootstrapChannel:"devicebootstrap"===e}},postRender:function(){this.$el.find(".switch-channel-link").on("click",e=>{let t=this.options.appState;e.preventDefault(),t.trigger("switchForm",fb.SELECT_ENROLLMENT_CHANNEL)})}});let{Notification:bV}=cK,{Clipboard:bB}=cz;var bq=cH.extend({initialize:function(){let e=b$(this.options.appState);if(e&&e.setupOVUrl&&e.isDesktop){this.ulDom&&this.ulDom.remove();let t=gj("custom-uri-container",e.setupOVUrl);this.ulDom=this.add(t).last()}},template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ol class="qrcode-info ov-info"><li>'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.qrcode.step1.updated"},data:o,loc:{start:{line:1,column:48},end:{line:1,column:122}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.qrcode.step2"},data:o,loc:{start:{line:1,column:131},end:{line:1,column:197}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.qrcode.step3.updated"},data:o,loc:{start:{line:1,column:206},end:{line:1,column:316}}}))+'</li></ol><div class="qrcode-container"><img class="qrcode" src='+l("function"==typeof(r=null!=(r=c(n,"href")||(null!=t?c(t,"href"):t))?r:s)?r.call(a,{name:"href",hash:{},data:o,loc:{start:{line:1,column:380},end:{line:1,column:388}}}):r)+' alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"mfa.altQrCode"},data:o,loc:{start:{line:1,column:394},end:{line:1,column:439}}}))+'"></img></div>'},3:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ul class="email-info ov-info"><li>'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",arguments:"email",bundle:"login",code:"oie.enroll.okta_verify.email.info.updated"},data:o,loc:{start:{line:1,column:508},end:{line:1,column:636}}}))?r:"")+'</li><li class="switch-channel-content"></li></ul>'},5:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ul class="sms-info ov-info"><li>'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",arguments:"phoneNumber",bundle:"login",code:"oie.enroll.okta_verify.sms.info.updated"},data:o,loc:{start:{line:1,column:745},end:{line:1,column:877}}}))?r:"")+'</li><li class="switch-channel-content"></li></ul>'},7:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="sameDevice-setup'+(null!=(r=l(n,"if").call(a,null!=t?l(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"if",hash:{},fn:e.program(8,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:990},end:{line:1,column:1056}}}))?r:"")+'"><p class="explanation" data-se="subheader">'+(null!=(r=l(n,"if").call(a,null!=(r=null!=t?l(t,"deviceMap"):t)?l(r,"isDesktop"):r,{name:"if",hash:{},fn:e.program(10,o,0),inverse:e.program(17,o,0),data:o,loc:{start:{line:1,column:1101},end:{line:1,column:1874}}}))?r:"")+'</p><ol class="ov-info">'+(null!=(r=l(n,"unless").call(a,null!=t?l(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"unless",hash:{},fn:e.program(19,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:1898},end:{line:1,column:2312}}}))?r:"")+'<li><a href="'+s(e.lambda(null!=(r=null!=t?l(t,"deviceMap"):t)?l(r,"setupOVUrl"):r,t))+'" class="button button-primary setup-button">'+s((l(n,"i18n")||t&&l(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.title"},data:o,loc:{start:{line:1,column:2394},end:{line:1,column:2459}}}))+"</a></li>"+(null!=(r=l(n,"if").call(a,null!=t?l(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"if",hash:{},fn:e.program(22,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:2468},end:{line:1,column:2786}}}))?r:"")+(null!=(r=l(n,"if").call(a,null!=t?l(t,"showAnotherDeviceLink"):t,{name:"if",hash:{},fn:e.program(24,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:2786},end:{line:1,column:3125}}}))?r:"")+"</ol></div>"},8:function(e,t,n,i,o){return" ov-enrollment-enabled"},10:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="desktop-instructions ov-info">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.prompt"},data:o,loc:{start:{line:1,column:1170},end:{line:1,column:1287}}}))+'</div><div class="desktop-instructions">'+(null!=(r=s(n,"if").call(a,null!=t?s(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.program(13,o,0),data:o,loc:{start:{line:1,column:1327},end:{line:1,column:1583}}}))?r:"")+"</div>"+(null!=(r=s(n,"unless").call(a,null!=t?s(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"unless",hash:{},fn:e.program(15,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:1589},end:{line:1,column:1765}}}))?r:"")},11:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span>$1</span>",bundle:"login",code:"customUri.required.content.prompt"},data:o,loc:{start:{line:1,column:1364},end:{line:1,column:1449}}}))},13:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.noPrompt"},data:o,loc:{start:{line:1,column:1457},end:{line:1,column:1576}}}))},15:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="desktop-instructions">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.makeSureHaveOV"},data:o,loc:{start:{line:1,column:1664},end:{line:1,column:1748}}}))+"</div>"},17:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.makeSureHaveOVToContinue"},data:o,loc:{start:{line:1,column:1773},end:{line:1,column:1867}}}))},19:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=(r=null!=t?s(t,"deviceMap"):t)?s(r,"platformLC"):r,{name:"if",hash:{},fn:e.program(20,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:1939},end:{line:1,column:2176}}}))?r:"")+"<li>"+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.setup"},data:o,loc:{start:{line:1,column:2180},end:{line:1,column:2296}}}))+"</li>"},20:function(e,t,n,i,o){var r,a=e.escapeExpression,s=e.lambda,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li><a aria-label='"+a((l(n,"i18n")||t&&l(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.linkText"},data:o,loc:{start:{line:1,column:1986},end:{line:1,column:2061}}}))+"' href=\""+a(s(null!=(r=null!=t?l(t,"deviceMap"):t)?l(r,"downloadHref"):r,t))+'" class="app-store-logo '+a(s(null!=(r=null!=t?l(t,"deviceMap"):t)?l(r,"platformLC"):r,t))+'-app-store-logo"></a></li>'},22:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li><span>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.title"},data:o,loc:{start:{line:1,column:2515},end:{line:1,column:2587}}}))+'</span> <a href="'+l(e.lambda(null!=(r=null!=t?c(t,"deviceMap"):t)?c(r,"downloadHref"):r,t))+'" target="_blank" id="download-ov" class="download-ov-link">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.linkText"},data:o,loc:{start:{line:1,column:2695},end:{line:1,column:2770}}}))+"</a></li>"},24:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li>"+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=(r=null!=t?a(t,"deviceMap"):t)?a(r,"isDesktop"):r,{name:"if",hash:{},fn:e.program(25,o,0),inverse:e.program(27,o,0),data:o,loc:{start:{line:1,column:2819},end:{line:1,column:3113}}}))?r:"")+"</li>"},25:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a class='orOnMobileLink' href='#'>$1</a>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.orOnMobile"},data:o,loc:{start:{line:1,column:2846},end:{line:1,column:2973}}}))},27:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a class='orOnMobileLink' href='#'>$1</a>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.orMobile"},data:o,loc:{start:{line:1,column:2981},end:{line:1,column:3106}}}))},29:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"sameDevice"):t,{name:"if",hash:{},fn:e.program(30,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:3144},end:{line:1,column:4021}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"deviceBootstrap"):t,{name:"if",hash:{},fn:e.program(32,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:4021},end:{line:1,column:4802}}}))?r:"")},30:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lambda,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.subtitle "},data:o,loc:{start:{line:1,column:3205},end:{line:1,column:3274}}}))+'</p><ol class="sameDevice-info ov-info"><li>'+(null!=(r=(u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{arguments:"sameDevice.downloadHref",bundle:"login",code:"enroll.oda.without.account.step1"},data:o,loc:{start:{line:1,column:3318},end:{line:1,column:3419}}}))?r:"")+"</li><li>"+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.openOv"},data:o,loc:{start:{line:1,column:3428},end:{line:1,column:3494}}}))+"</li><li>"+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.signInUrl"},data:o,loc:{start:{line:1,column:3503},end:{line:1,column:3572}}}))+"<br><br/><span class='semi-strong no-translate'>
20"+l(c(null!=(r=null!=t?u(t,"sameDevice"):t)?u(r,"orgUrl"):r,t))+'</span><a data-clipboard-text="'+l(c(null!=(r=null!=t?u(t,"sameDevice"):t)?u(r,"orgUrl"):r,t))+'" class="button link-button copy-org-clipboard-button">'+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.org.copyLink"},data:o,loc:{start:{line:1,column:3748},end:{line:1,column:3802}}}))+"</a></li><li>"+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.followInstruction"},data:o,loc:{start:{line:1,column:3815},end:{line:1,column:3901}}}))+'</li></ol><p class="closing">'+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.canBeClosed"},data:o,loc:{start:{line:1,column:3930},end:{line:1,column:4010}}}))+"</p>"},32:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.subtitle"},data:o,loc:{start:{line:1,column:4087},end:{line:1,column:4164}}}))+'</p><ol class="deviceBootstrap-info ov-info"><li>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",arguments:"enrolledDeviceName",bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.openOv.suchAs"},data:o,loc:{start:{line:1,column:4213},end:{line:1,column:4367}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.selectAccount"},data:o,loc:{start:{line:1,column:4376},end:{line:1,column:4458}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.addAccount"},data:o,loc:{start:{line:1,column:4467},end:{line:1,column:4587}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.followInstruction"},data:o,loc:{start:{line:1,column:4596},end:{line:1,column:4682}}}))+'</li></ol><p class="closing">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.canBeClosed"},data:o,loc:{start:{line:1,column:4711},end:{line:1,column:4791}}}))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"href"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:460}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"email"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:460},end:{line:1,column:693}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"phoneNumber"):t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:693},end:{line:1,column:934}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=(r=null!=t?s(t,"deviceMap"):t)?s(r,"setupOVUrl"):r,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.program(29,o,0),data:o,loc:{start:{line:1,column:934},end:{line:1,column:4809}}}))?r:"")},useData:!0}),getTemplateData:function(){var e;let t=this.options.appState.get("currentAuthenticator").contextualData,n="",i=b$(this.options.appState),o=!1;if(t&&null!=t&&t.devicebootstrap&&null!=t&&t.devicebootstrap.enrolledDevices){let e=null==t?void 0:t.devicebootstrap.enrolledDevices;n=Array.isArray(e)&&!rN.isEmpty(e)?e[0]:e}i.securityLevel&&"ANY"===i.securityLevel&&(o=!0);let r=this.options.settings.get("features.sameDeviceOVEnrollmentEnabled");return{href:null===(e=t.qrcode)||void 0===e?void 0:e.href,email:rN.escape(null==t?void 0:t.email),phoneNumber:rN.escape(null==t?void 0:t.phoneNumber),sameDevice:null==t?void 0:t.samedevice,deviceBootstrap:null==t?void 0:t.devicebootstrap,enrolledDeviceName:n,deviceMap:i,showAnotherDeviceLink:o,sameDeviceOVEnrollmentEnabled:r}},postRender:function(){let e=this.options&&this.options.appState,t=this.model;this.$(".orOnMobileLink").click(function(){var n;if(!e||!t)return;let i="qrcode",o=e.get("remediations").find(e=>e.name===fb.SELECT_ENROLLMENT_CHANNEL);if(!o)return;let r=rN.find(o.uiSchema,e=>"authenticator.id"===e.name);if(!r)return;let a=rN.find(o.uiSchema,e=>"authenticator.channel"===e.name);a&&(a.options=rN.filter(null==a?void 0:a.options,e=>e.value===i),a.value=(null===(n=a.options[0])||void 0===n?void 0:n.value)||i,a.sublabel=null,t.set("authenticator.channel",a.value),t.set("authenticator.id",r.value),t.set("formName",o.name),e.trigger("saveForm",t))}),bB.attach(".copy-org-clipboard-button").done(()=>{let e=new bV({message:cq("enroll.oda.org.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1})}});function b$(e){var t,n;if(!e)return null;
20let i=e.get("currentAuthenticator").contextualData,o={};return null!==(t=i.samedevice)&&void 0!==t&&t.setupOVUrl?o={...i.samedevice}:null!==(n=i.devicebootstrap)&&void 0!==n&&n.setupOVUrl&&(o={...i.devicebootstrap}),o.platform&&(o.platformLC=o.platform.toLowerCase(),o.isDesktop=!("ios"===o.platformLC||"android"===o.platformLC)),o}let bH=!0,bW=gN.extend(Object.assign({title:function(){let e;switch(this.options.appState.get("currentAuthenticator").contextualData.selectedChannel){case"email":e=cq("oie.enroll.okta_verify.setup.email.title","login");break;case"sms":e=cq("oie.enroll.okta_verify.setup.sms.title","login");break;default:e=cq("oie.enroll.okta_verify.setup.title","login")}return e},className:"oie-enroll-ov-poll",noButtonBar:!0,initialize:function(){gN.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"error",this.stopPolling),bH&&this.startPolling()},showMessages:function(){let e={};this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.non_fips_compliant_enrollment_device_incompatible")||this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.non_fips_compliant_enrollment_app_update_required")?e.title=cq("oie.okta_verify.enroll.force.upgrade.title","login"):this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.method.push.enroll.enable.biometrics")&&(e.title=cq("oie.authenticator.app.method.push.enroll.enable.biometrics.title","login")),gN.prototype.showMessages.call(this,e)},getUISchema:function(){let e;let t=[],n=this.options.appState.get("currentAuthenticator").contextualData.selectedChannel;return"qrcode"===n?(e=".qrcode-container",bH=!0):["email","sms"].includes(n)?(e=".switch-channel-content",bH=!0):["samedevice"].includes(n)?bH=!0:["devicebootstrap"].includes(n)&&(bH=!1),t.push({View:bq}),t.push({View:bj,options:{selectedChannel:n},selector:e}),["email","sms"].includes(n)&&t.push({View:bF,selector:".o-form-error-container"}),t},remove:function(){gN.prototype.remove.apply(this,arguments),this.stopPolling()}},gP));var bz=ye.extend({Body:bW}),bK=cH.extend({className:"ov-same-device-enroll-text",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a class='ov-same-device-enroll-link' href='#'>$1</a>",bundle:"login",code:"oie.enroll.okta_verify.select.channel.ovOnThisDevice"},data:o,loc:{start:{line:1,column:0},end:{line:1,column:144}}}))?r:""},useData:!0}),postRender:function(){let e=this.options&&this.options.appState,t=this.model;this.$(".ov-same-device-enroll-link").click(function(){var n,i,o,r;if(!e||!t)return;let a="samedevice",s=e.get("remediations").find(e=>e.name===fb.SELECT_ENROLLMENT_CHANNEL);if(!s)return;let l=null===(n=s.uiSchema)||void 0===n?void 0:n.find(e=>"authenticator.id"===e.name);if(!l)return;let c=null===(i=s.uiSchema)||void 0===i?void 0:i.find(e=>"authenticator.channel"===e.name);c&&(c.options=null===(o=c.options)||void 0===o?void 0:o.filter(e=>e.value===a),c.value=(null===(r=c.options[0])||void 0===r?void 0:r.value)||a,c.sublabel=null,t.set("authenticator.channel",c.value),t.set("authenticator.id",l.value),t.set("formName",s.name),e.trigger("saveForm",t))})}});let bG=gA.extend({title:function(){return rK.isAndroid()||rK.isIOS()?cq("oie.enroll.okta_verify.setup.title","login"):cq("oie.enroll.okta_verify.select.channel.title.updated","login")},getUISchema:function(){var e;let t=gA.prototype.getUISchema.apply(this,arguments),n=rN.find(t,e=>"authenticator.channel"===e.name);return n.options=rN.filter(null==n?void 0:n.options,e=>{var t,n;return e.value!==(null===(t=this.options.appState.get("currentAuthenticator"))||void 0===t?void 0:null===(n=t.contextualData)||void 0===n?void 0:n.selectedChannel)&&"samedevice"!==e.value}),n.value=null===(e=n.options[0])||void 0===e?void 0:e.value,n.sublabel=null,this.model.set("authenticator.channel",n.value),[{View:cq("oie.enroll.okta_verify.select.channel.subtitle","login"),selector:".o-form-fieldset-container"},...t]}});var bY=ye.extend({Body:bG,postRender:function(){var e,t;let n=null===(e=this.options.currentViewState.value)||void 0===e?void 0:e.find(e=>"authenticator"===e.name).value.form.value;(null==n?void 0:null===(t=n.find(e=>"channel"===e.name).options)||void 0===t?void 0:t.find(e=>"samedevice"===e.value))&&this.add(new bK({model:this.model,settings:this.settings,appState:this.options.appState}),"form")}});let bJ=gA.extend({className:"oie-enroll-ov-data",title:function(){return"email"===this.options.appState.get("currentAuthenticator").contextualData.selectedChannel?cq("oie.enroll.okta_verify.enroll.channel.email.title","login"):cq("oie.enroll.okta_verify.enroll.channel.sms.title","login")},save:function(){return cq("oie.enroll.okta_verify.setupLink","login")},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments),t=rN.find(e,({name:e})=>"phoneNumber"===e),n=rN.findIndex(e,({name:e})=>"phoneNumber"===e),i={"label-top":!0,label:cq("mfa.country","login"),type:"select",options:pO.getCountries(),name:"country",wide:!0},o={label:cq("mfa.phoneNumber.placeholder","login"),type:"group",modelType:"string","label-top":!0,name:"phoneCode",input:[{type:"label",label:`+${this.model.get("phoneCode")}`,className:"country-code-label no-translate"},Object.assign({},t)]};-1!==n&&e.splice(n,1,i,o);
20let r={View:"email"===this.options.appState.get("currentAuthenticator").contextualData.selectedChannel?cq("oie.enroll.okta_verify.enroll.channel.email.subtitle","login"):cq("oie.enroll.okta_verify.channel.sms.description.updated","login"),selector:".o-form-fieldset-container"};return e.push(r),e},handlePhoneCodeChange:function(){this.el.querySelector(".country-code-label").innerText=`+${this.model.get("phoneCode")}`},initialize:function(){gA.prototype.initialize.apply(this,arguments),"sms"===this.options.appState.get("currentAuthenticator").contextualData.selectedChannel&&this.listenTo(this.model,"change:phoneCode",this.handlePhoneCodeChange.bind(this))}});var bQ=ye.extend({Body:bJ,createModelClass:function(){let e=gG.prototype.createModelClass.apply(this,arguments);if("sms"!==this.options.appState.get("currentAuthenticator").contextualData.selectedChannel)return e;let t=Object.assign({country:{value:this.settings.get("defaultCountryCode"),type:"string"}},e.prototype.local),n=Object.assign({phoneCode:{deps:["country"],fn:function(e){return pO.getCallingCodeForCountry(e)}}},e.prototype.derived);return e.extend({local:t,derived:n,toJSON:function(){let e=su.prototype.toJSON.call(this,arguments),t=this.get("phoneCode"),n=`+${t}${e.phoneNumber}`;return e.phoneNumber=n,e}})},postRender:function(){this.add(bj,"form")}});let bX=cH.extend({className:"okta-form-infobox-warning infobox infobox-warning",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon warning-16"></span><p>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"warning")||(null!=t?a(t,"warning"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"warning",hash:{},data:o,loc:{start:{line:1,column:40},end:{line:1,column:51}}}):r)+"</p>"},useData:!0})}),bZ=gN.extend(Object.assign({noButtonBar:!0,title:function(){return this.isOV()?cq("oie.okta_verify.push.title","login"):cq("oie.verify.custom_app.title","login",[this.options.appState.getAuthenticatorDisplayName()])},initialize:function(){gN.prototype.initialize.apply(this,arguments),(this.isOV()||this.isCustomApp())&&this.isAutoChallengeSupported()&&(this.hasSavingState=!1),this.listenTo(this.model,"error",this.stopPoll),this.addView()},addView:function(){this.add(lf({className:"button button-wide button-primary send-push link-button-disabled",title:this.isOV()?cq("oie.okta_verify.push.sent","login"):cq("oie.custom_app.push.sent","login"),click:e=>{e.preventDefault()}})),this.add(`<span class='accessibility-text' role='alert'> 21 ${this.isOV()?cq("oie.okta_verify.push.sent","login"):cq("oie.custom_app.push.sent","login")}</span>`)},render:function(){gN.prototype.render.apply(this,arguments);let e=this.$el.find('[data-se="o-form-fieldset-autoChallenge"]');this.isAutoChallengeSupported()?(this.isOV()||this.isCustomApp())&&e.length&&this.$el.find(".o-form-fieldset-container").append(e):e.length&&e.hide()},postRender:function(){gN.prototype.postRender.apply(this,arguments);let e=this.isOV()?"okta-verify-push-challenge":" custom-app-push-challenge";this.$el.addClass(e),this.startPoll()},startPoll:function(){this.startPolling(),this.warningTimeout=setTimeout(()=>{let e=this.isOV()?cq("oktaverify.warning","login"):cq("oie.custom_app.push.warning","login",[this.options.appState.getAuthenticatorDisplayName()]);this.showWarning(e)},3e4)},stopPoll:function(){this.stopPolling(),this.clearWarning()},showWarning:function(e){this.clearWarning(),this.add(bX,".o-form-error-container",{options:{warning:e}})},clearWarning:function(){this.$(".o-form-error-container div").hasClass("okta-form-infobox-warning")&&this.$(".okta-form-infobox-warning").remove(),clearTimeout(this.warningTimeout)},remove:function(){gN.prototype.remove.apply(this,arguments),this.stopPoll()},isOV:function(){return this.options.appState.get("authenticatorKey")===fS.OV},isCustomApp:function(){return this.options.appState.get("authenticatorKey")===fS.CUSTOM_APP},isAutoChallengeSupported:function(){return null!==this.options.appState.getSchemaByName("autoChallenge")&&void 0!==this.options.appState.getSchemaByName("autoChallenge")}},gP)),b0=ye.extend({Body:bZ}),b1=gB.extend({getDeviceChallengePayload:function(){return this.options.currentViewState.relatesTo.value.contextualData.challenge.value},showCustomFormErrorCallout:function(e){let t=gF(e,!1);return!rN.isEmpty(t)&&(this.showMessages(ca(t)),!0)}}),b8=cH.extend({initialize:function(){this.listenTo(this.options.appState,"showNumberChallengeWarning",()=>{this.startWarningTimeout()}),this.listenTo(this.options.appState,"hideNumberChallengeWarning",()=>{this.clearWarning()})},className:"resend-number-challenge-warning hide",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-warning infobox infobox-warning"><span class="icon warning-16"></span>
21<p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a href='#' class='resend-number-challenge'>$1</a>",bundle:"login",code:"oie.numberchallenge.warning"},data:o,loc:{start:{line:1,column:103},end:{line:1,column:217}}}))+"</p></div>"},useData:!0}),showWarning:function(){this.$el.removeClass("hide")},clearWarning:function(){this.$el.addClass("hide"),clearTimeout(this.warningTimeout),this.startWarningTimeout()},startWarningTimeout:function(){this.warningTimeout=setTimeout(rN.bind(function(){this.showWarning()},this),3e4)}}),b2=cH.extend({className:"number-challenge-section",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",arguments:"correctAnswer",bundle:"login",code:"oie.numberchallenge.instruction"},data:o,loc:{start:{line:1,column:3},end:{line:1,column:127}}}))+'</p><div class="phone no-translate"><div class="phone--body"><div class="phone--screen"><span class="phone--number" data-se="challenge-number">'+l("function"==typeof(r=null!=(r=c(n,"correctAnswer")||(null!=t?c(t,"correctAnswer"):t))?r:s)?r.call(a,{name:"correctAnswer",hash:{},data:o,loc:{start:{line:1,column:270},end:{line:1,column:287}}}):r)+'</span></div><div class="phone--home-button"></div></div></div>'},useData:!0}),getTemplateData:function(){var e,t;return{correctAnswer:null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e?void 0:null===(t=e.contextualData)||void 0===t?void 0:t.correctAnswer}}}),b3=gN.extend(Object.assign({noButtonBar:!0,className:"okta-verify-number-challenge",events:{"click a.resend-number-challenge":"handleResendNumberChallenge"},handleResendNumberChallenge:function(){this.options.appState.trigger("invokeAction","currentAuthenticator-resend"),this.options.appState.trigger("hideNumberChallengeWarning")},title:function(){return cq("oie.okta_verify.push.sent","login")},initialize:function(){gN.prototype.initialize.apply(this,arguments),this.add(b2)},triggerAfterError:function(){gN.prototype.triggerAfterError.apply(this,arguments),this.stopPolling(),this.$el.find(".o-form-fieldset-container").empty()},postRender:function(){gN.prototype.postRender.apply(this,arguments),this.startPoll()},startPoll:function(){this.startPolling(),this.addWarning()},stopPoll:function(){this.stopPolling()},addWarning:function(){this.add(b8,".o-form-error-container"),this.options.appState.trigger("showNumberChallengeWarning")},remove:function(){gN.prototype.remove.apply(this,arguments),this.stopPolling()}},gP));var b4=ye.extend({initialize:function(){var e,t,n;ye.prototype.initialize.apply(this,arguments);let i=null===(e=this.options)||void 0===e?void 0:null===(t=e.appState)||void 0===t?void 0:t.get("currentAuthenticator"),o=null==i?void 0:i.methods[0];(null==o?void 0:o.type)===fE.PUSH&&null!=i&&null!==(n=i.contextualData)&&void 0!==n&&n.correctAnswer?this.Body=b3:(null==o?void 0:o.type)===fE.PUSH?this.Body=bZ:this.Body=b1}});let b6=gA.extend(Object.assign({className:"okta-verify-totp-challenge",title:function(){return cq("oie.okta_verify.totp.title","login")},save:function(){return cq("mfa.challenge.verify","login")},showCustomFormErrorCallout:function(e){var t;let n;let i=null==e?void 0:null===(t=e.responseJSON)||void 0===t?void 0:t.errorSummaryKeys;if(i&&i.includes("oie.authenticator.oktaverify.method.totp.verify.enable.biometrics"))return n={type:"error",className:"okta-verify-uv-callout-content",title:cq("oie.authenticator.app.method.push.verify.enable.biometrics.title","login"),subtitle:cq("oie.authenticator.app.method.push.verify.enable.biometrics.description","login"),bullets:[cq("oie.authenticator.app.method.push.verify.enable.biometrics.point1","login"),cq("oie.authenticator.app.method.push.verify.enable.biometrics.point2","login"),cq("oie.authenticator.app.method.push.verify.enable.biometrics.point3","login")]},this.showMessages(ca(n)),!0}}));var b5=ye.extend({Body:b6});let b9=gA.extend(Object.assign({className:"okta-verify-resend-push",title:function(){return cq("oie.okta_verify.push.title","login")},save:function(){return cq("oie.okta_verify.push.resend","login")},showMessages:function(){let e={};this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.method.push.force.upgrade.number_challenge")?e.title=cq("oie.numberchallenge.force.upgrade.title","login"):this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.method.push.verify.enable.biometrics")&&(e.content=null,e.className="okta-verify-uv-callout-content",e.title=cq("oie.authenticator.app.method.push.verify.enable.biometrics.title","login"),e.subtitle=cq("oie.authenticator.app.method.push.verify.enable.biometrics.description","login"),e.type="error",e.bullets=[cq("oie.authenticator.app.method.push.verify.enable.biometrics.point1","login"),cq("oie.authenticator.app.method.push.verify.enable.biometrics.point2","login"),cq("oie.authenticator.app.method.push.verify.enable.biometrics.point3","login")],e=ca(e)),gA.prototype.showMessages.call(this,e)}}));var b7=ye.extend({Body:b9});let we=gA.extend(Object.assign({className:function(){return this.isOV()?"okta-verify-send-push-form":"custom-app-send-push-form"},save:function(){return this.options.appState.get("authenticatorKey")===fS.OV?cq("oie.okta_verify.sendPushButton","login"):cq("oie.custom_app.sendPushButton","login")},title:function(){return this.isOV()?cq("oie.okta_verify.push.title","login"):cq("oie.custom_app.push.title","login")},render:function(){gA.prototype.render.apply(this,arguments);
21let e=this.$el.find('[data-se="o-form-fieldset-authenticator.autoChallenge"]');e.length&&this.$el.find(".o-form-button-bar").after(e)},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments);return e.filter(e=>"authenticator.methodType"!==e.name)},isOV:function(){return this.options.appState.get("authenticatorKey")===fS.OV}})),wt=v$.extend({getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments),t=e.find(e=>"authenticator.methodType"===e.name);this._sortMethodOptionsIfDeviceKnown(t.options);let n=t.options.map(e=>Object.assign({},e,mS({authenticatorKey:this.isOV()?fS.OV:fS.CUSTOM_APP,value:{methodType:e.value}},!0)));return[{View:gy,options:{name:t.name,collection:new sn(n)}}]},_sortMethodOptionsIfDeviceKnown:function(e){var t,n,i,o;if(null===(t=this.options)||void 0===t?void 0:null===(n=t.currentViewState)||void 0===n?void 0:null===(i=n.relatesTo)||void 0===i?void 0:null===(o=i.value)||void 0===o?void 0:o.deviceKnown){let t=e.findIndex(e=>"signed_nonce"===e.value);if(t>0){let n=e[t];e.splice(t,1),e.unshift(n)}}},isOV:function(){return this.options.appState.get("authenticatorKey")===fS.OV}});var wn=ye.extend({initialize:function(){ye.prototype.initialize.apply(this,arguments),this.isPushOnlyWithAutoChallengeFlow()?this.Body=we:(this.Body=wt,this.Footer=ga)},isPushOnlyWithAutoChallengeFlow:function(){let e=this.options.appState.getSchemaByName("authenticator.methodType"),t=this.options.appState.getSchemaByName("authenticator.autoChallenge"),n=null==e?void 0:e.options;return t&&1===n.length&&"push"===n[0].value}});let wi=gA.extend({noButtonBar:!0,className:"ion-form device-challenge-poll",title:function(){return cq("deviceTrust.sso.redirectText","login")},initialize:function(){var e,t;gA.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"error",()=>{this.$(".spinner").hide()}),this.add('<div class="credential-sso-extension"><div class="spinner"></div></div>');let n=(null===(e=this.options.currentViewState)||void 0===e?void 0:null===(t=e.method)||void 0===t?void 0:t.toLowerCase())==="get";this.model.set("useRedirect",n),this.trigger("save",this.model)},showCustomFormErrorCallout:function(e){let t=gF(e,!1);return!rN.isEmpty(t)&&(this.showMessages(ca(t)),!0)}});var wo=ye.extend({Body:wi}),wr=cH.extend({className:"oie-enroll-google-authenticator-barcode",template:a8.template({1:function(e,t,n,i,o){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="google-authenticator-setup-info-title barcode-setup-title">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.scanBarcode.title"},data:o,loc:{start:{line:1,column:83},end:{line:1,column:163}}}))+'</div><div class="qrcode-info-container"><p class="google-authenticator-setup-info">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.scanBarcode.description"},data:o,loc:{start:{line:1,column:247},end:{line:1,column:333}}}))+'</p><div class="qrcode-container"><img class="qrcode" src='+l("function"==typeof(r=null!=(r=c(n,"href")||(null!=t?c(t,"href"):t))?r:s)?r.call(a,{name:"href",hash:{},data:o,loc:{start:{line:1,column:391},end:{line:1,column:399}}}):r)+' alt="qr code"></img><a href="#" class="cannot-scan-link">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.scanBarcode.cannotScan"},data:o,loc:{start:{line:1,column:457},end:{line:1,column:542}}}))+"</a></div></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"href"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:1,column:565}}}))?r:""},useData:!0}),getTemplateData:function(){var e;return{href:null===(e=this.options.appState.get("currentAuthenticator").contextualData.qrcode)||void 0===e?void 0:e.href}},events:{"click .cannot-scan-link":function(e){e.preventDefault(),this.options.model.set("viewToDisplay","manual")}}}),wa=cH.extend({className:"oie-enroll-google-authenticator-manual-setup",template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="google-authenticator-setup-info-title manual-setup-title">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.cannotScanBarcode.title"},data:o,loc:{start:{line:1,column:70},end:{line:1,column:156}}}))+'</div><p class="google-authenticator-setup-info">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.manualSetupInstructions"},data:o,loc:{start:{line:1,column:205},end:{line:1,column:291}}}))+"</p>"},useData:!0}
21)});let ws={BARCODE:"barcode",MANUAL:"manual",ENTER_CODE:"enterCode"},wl=gA.extend({title:function(){return cq("oie.enroll.google_authenticator.setup.title","login")},noButtonBar:!0,className:"oie-enroll-google-authenticator",enterCodeSubtitle:cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="google-authenticator-setup-info-title enter-code-title">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.enterCode.title"},data:o,loc:{start:{line:1,column:68},end:{line:1,column:146}}}))+"</div>"},useData:!0})}),getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments),t=gO({className:"google-authenticator-next",title:cq("oform.next","login"),click:()=>{this.model.set("viewToDisplay",ws.ENTER_CODE)}}),n=gO({className:"google-authenticator-verify",title:cq("oform.verify","login"),click:()=>{this.$el.submit()}});return e[0].showWhen={viewToDisplay:ws.ENTER_CODE},e.unshift({View:this.enterCodeSubtitle,selector:".o-form-fieldset-container",showWhen:{viewToDisplay:ws.ENTER_CODE}}),e.push({View:wr,selector:".o-form-fieldset-container",showWhen:{viewToDisplay:ws.BARCODE}},{View:wa,selector:".o-form-fieldset-container",showWhen:{viewToDisplay:ws.MANUAL}},{label:!1,className:"shared-secret no-translate",type:"text",placeholder:this.options.appState.get("currentAuthenticator").contextualData.sharedSecret,disabled:!0,showWhen:{viewToDisplay:ws.MANUAL}},{View:t,showWhen:{viewToDisplay:e=>e===ws.BARCODE||e===ws.MANUAL}},{View:n,showWhen:{viewToDisplay:e=>e===ws.ENTER_CODE}}),e}});var wc=ye.extend({Body:wl,createModelClass:function(){let e=gG.prototype.createModelClass.apply(this,arguments),t=Object.assign({viewToDisplay:{value:"barcode",type:"string",required:!0,values:[ws.BARCODE,ws.MANUAL,ws.ENTER_CODE]}},e.prototype.local);return e.extend({local:t})}});let wu=gA.extend(Object.assign({className:"google-authenticator-challenge",title:function(){return cq("oie.verify.google_authenticator.otp.title","login")},subtitle:function(){return cq("oie.verify.google_authenticator.otp.description","login")},save:function(){return cq("mfa.challenge.verify","login")}}));var wp=ye.extend({Body:wu});let wd=gA.extend({className:"on-prem-authenticator-enroll",modelEvents:{error:"_checkTokenChange"},title:function(){let e=this.options.appState.getAuthenticatorDisplayName()||cq("oie.on_prem.authenticator.default.vendorName","login");return cq("oie.on_prem.enroll.title","login",[e])},_checkTokenChange:function(e,t){var n;let i=null==t?void 0:null===(n=t.responseJSON)||void 0===n?void 0:n.errorSummaryKeys;i&&i.includes("errors.E0000113")&&(this.model.set("credentials.passcode",""),this.render())},save:function(){return cq("mfa.challenge.verify","login")}});var wh=ye.extend({Body:wd});let wf=gA.extend({className:"on-prem-authenticator-verify",modelEvents:{error:"_checkTokenChange"},title:function(){let e=this.options.appState.getAuthenticatorDisplayName()||cq("oie.on_prem.authenticator.default.vendorName","login");return cq("oie.on_prem.verify.title","login",[e])},_checkTokenChange:function(e,t){var n;let i=null==t?void 0:null===(n=t.responseJSON)||void 0===n?void 0:n.errorSummaryKeys;i&&i.includes("errors.E0000113")&&(this.model.set("credentials.passcode",""),this.render())},save:function(){return cq("mfa.challenge.verify","login")}});var wm=ye.extend({Body:wf}),wg=gA.extend({noButtonBar:!0,postRender:function(){let e=this.getContextualData(),t=this.add(`<iframe frameborder="0" title="'${this.title()}'"></iframe>`).last();try{pW.init({host:e.host,sig_request:e.signedToken,iframe:t.el,post_action:e=>{this.model.set("credentials.signatureData",e),this.saveForm(this.model)}})}catch(e){t.remove(),this.add(ca({type:"error",subtitle:cq("oie.duo.iFrameError","login")}),".o-form-error-container")}},getContextualData:function(){}});let wy=wg.extend({title:function(){return cq("oie.duo.enroll.title","login")},getContextualData:function(){return this.options.appState.get("currentAuthenticator").contextualData}});var wv=ye.extend({Body:wy});let wb=wg.extend({title:function(){return cq("oie.duo.verify.title","login")},getContextualData:function(){return this.options.appState.get("currentAuthenticatorEnrollment").contextualData}});var ww=ye.extend({Body:wb});let wk=yt.extend({title:function(){return cq("oie.idp.challenge.title","login",[this.options.appState.getAuthenticatorDisplayName()])},subtitle:function(){return cq("oie.idp.challenge.description","login",[this.options.appState.getAuthenticatorDisplayName()])},save:function(){return cq("mfa.challenge.verify","login")}});var w_=yn.extend({Body:wk});let wS=yt.extend({title:function(){return cq("oie.idp.enroll.title","login",[this.options.appState.getAuthenticatorDisplayName()])},subtitle:function(){return cq("oie.idp.enroll.description","login",[this.options.appState.getAuthenticatorDisplayName()])},save:function(){return cq("mfa.enroll","login")}});var wE=yn.extend({Body:wS});let wT=gA.extend(Object.assign({className:"mfa-verify-custom-otp",title:function(){let e=this.options.appState.getAuthenticatorDisplayName()||cq("oie.custom_otp.authenticator.default.vend
21orName","login");return cq("oie.verify.custom_otp.title","login",[e])},subtitle:function(){return cq("oie.verify.custom_otp.description","login")},save:function(){return cq("mfa.challenge.verify","login")}}));var wx=ye.extend({Body:wT});let wO=gA.extend({title:function(){let e=this.options.appState.getAuthenticatorDisplayName();return this.options.appState.isAuthenticatorChallenge()?cq("oie.symantecVip.challenge.title","login",[e]):cq("oie.symantecVip.enroll.title","login",[e])},subtitle:function(){let e=this.options.appState.getAuthenticatorDisplayName();return this.options.appState.isAuthenticatorChallenge()?cq("oie.symantecVip.challenge.description","login",[e]):cq("oie.symantecVip.enroll.description","login",[e])},save:function(){return this.options.appState.isAuthenticatorChallenge()?cq("mfa.challenge.verify","login"):cq("mfa.enroll","login")}});var wC=ye.extend({Body:wO});let wA=gA.extend({title:function(){return cq("device.code.activate.title","login")},subtitle:function(){return cq("device.code.activate.subtitle","login")},events:{'keyup input[name="userCode"]':function(e){e.preventDefault(),this.addHyphen(e)}},addHyphen:function(e){let t=e.target.value;t&&4===t.length&&!["Backspace","Delete","-"].includes(e.key)&&(e.target.value=t.concat("-"))}});var wP=gG.extend({Body:wA}),wN=m8.extend({HeaderBeacon:g9.extend({getBeaconClassName:function(){return"smartcard"}})});let wR=gA.extend({className:"piv-cac-card",modelEvents:{request:"startAuthentication",error:"stopAuthentication"},initialize:function(){gA.prototype.initialize.apply(this,arguments),this.model.set("useRedirect",!0),this.addInstructions()},title:function(){return cq("piv.cac.title","login")},save:function(){return cq("retry","login")},addInstructions:function(){this.add(`<div class='piv-verify-text'> 22 <p>${cq("piv.cac.card.insert","login")}</p> 23 <div data-se='piv-waiting' class='okta-waiting-spinner'></div> 24 </div>`)},startAuthentication:function(){this.$(".okta-waiting-spinner").show(),this.$(".o-form-button-bar").hide()},stopAuthentication:function(){this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()}});var wI=ye.extend({Header:wN,Body:wR,postRender:function(){ye.prototype.postRender.apply(this,arguments),Array.isArray((this.options.appState.get("messages")||{}).value)?this.form.stopAuthentication():(this.form.startAuthentication(),this.form.trigger("save",this.model))}});let wD=cH.extend({template:a8.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div aria-hidden="true" class="yubikey-demo"></div>'},useData:!0})}),wL=gA.extend({title:function(){return this.options.appState.isAuthenticatorChallenge()?cq("oie.yubikey.challenge.title","login"):cq("oie.yubikey.enroll.title","login")},subtitle:function(){return cq("oie.yubikey.description","login")},save:function(){return cq("mfa.challenge.verify","login")},getUISchema:function(){let e=gA.prototype.getUISchema.apply(this,arguments);return e.unshift({View:wD,selector:".o-form-fieldset-container"}),e}});var wM=ye.extend({Body:wL});let wU=gA.extend(Object.assign({className:"custom-app-verify-resend-push",title:function(){return cq("oie.verify.custom_app.title","login",[this.options.appState.getAuthenticatorDisplayName()])},save:function(){return cq("oie.custom_app.push.resend","login")},showMessages:function(){let e={};this.options.appState.containsMessageWithI18nKey("oie.authenticator.custom_app.method.push.verify.enable.biometrics")&&(e.content=null,e.className="okta-verify-uv-callout-content",e.title=cq("oie.authenticator.custom_app.method.push.verify.enable.biometrics.title","login",[this.options.appState.getAuthenticatorDisplayName()]),e.subtitle=cq("oie.authenticator.custom_app.method.push.verify.enable.biometrics.description","login"),e.type="error",e.bullets=[cq("oie.authenticator.custom_app.method.push.verify.enable.biometrics.point1","login"),cq("oie.authenticator.custom_app.method.push.verify.enable.biometrics.point2","login",[this.options.appState.getAuthenticatorDisplayName()]),cq("oie.authenticator.custom_app.method.push.verify.enable.biometrics.point3","login",[this.options.appState.getAuthenticatorDisplayName()])],e=ca(e)),gA.prototype.showMessages.call(this,e)}}));var wF=ye.extend({Body:wU});let wj=gA.extend({title:function(){return cq("password.expired.title.generic","login")},subtitle:function(){return cq("password.expired.custom.subtitle","login")},noSubmitButton:!0,initialize:function(){let{customExpiredPasswordName:e,customExpiredPasswordURL:t}=this.options.currentViewState;this.add(lf({className:"button button-primary button-wide",title:rN.partial(cq,"password.expired.custom.submit","login",[e]),click:()=>{r7.redirect(t)}}))}});var wV=gG.extend({Body:wj});let wB=gA.extend({className:"password-authenticator",subtitle:function(){return this.settings.get("brandName")?cq("password.expiring.soon.subtitle.specific","login",[this.settings.get("brandName")]):cq("password.expiring.soon.subtitle.generic","login")},title:function(){var e;let t=(null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e?void 0:e.settings).daysToExpiry;return t>0?cq("password.expiring.title","login",[t]):0===t?cq("password.expiring.today","login"):cq("password.expiring.soon","login")},noSubmitButton:!0,initialize:function(){let{customExpiredPasswordName:e,customExpiredPasswordURL:t}=this.options.currentViewState;this.add(lf({className:"button button-primary button-wide",title:rN.partial(cq,"password.expired.custom.submit","login",[e]),click:()=>{r7.redirect(t)}}))}}),wq=ga.extend({links:function(){let e=[];return this.options.appState.hasRemediationObject("skip")&&e.push({type:"link",label:cq("password.expiring.later","login"),name:"skip",actionPath:"skip"}),e}});var w$=gG.extend({Body:wB,Footer:wq});let wH=gA.extend(Object.assign({className:"tac-authenticator-challenge",title:function(){return cq("oie.verify.tac.title","login")},subtitle:function(){return cq("oie.verify.tac.description","login")},save:function(){return cq("mfa.challenge.verify","login")}}));var wW=ye.extend({Body:wH});let wz=gA.extend({noSubmitButton:!0,title:function(){return cq("oie.kmsi.title","login")},subtitle:function(){return cq("oie.kmsi.subtitle","login")},saveForm:function(e){this.model.set("keepMeSignedIn",e),this.options.appState.trigger("saveForm",this.model)},getUISchema:function(){let e=this;return[{View:lf({className:"button button-secondary",title:cq("oie.kmsi.accept","login"),attributes:{"data-se":"stay-signed-in-btn"},click:function(){e.saveForm(!0)}})},{View:lf({className:"button button-secondary",title:cq("oie.kmsi.reject","login"),attributes:{"data-se":"do-not-stay-signed-in-btn"},click:function(){e.saveForm(!1)}})}]}});var wK=gG.extend({Body:wz});let wG=gA.extend({title:()=>cq("account.unlock.title","login")});var wY=gG.extend({initialize:function(){gG.prototype.initialize.apply(this,arguments),this.Body=wG}});let wJ=gA.extend({title:function(){return cq("idx.device_assurance.grace_peri
24od.title","login")},save:function(){return cq("idx.device_assurance.grace_period.continue_to_app","login")},showMessages:function(){let e=this.options.appState.get("messages").value,t=this.settings.get("languageTags");e&&this.add(ca({content:new yA({messages:e,languageTags:t}),type:"warning"}))}});var wQ=gG.extend({initialize:function(){gG.prototype.initialize.apply(this,arguments),this.Body=wJ}});let wX={[fb.IDENTIFY]:{_:g4},[fb.IDENTIFY_RECOVERY]:{_:yl},[fb.DEVICE_CHALLENGE_POLL]:{_:vl},[fb.LAUNCH_AUTHENTICATOR]:{_:vh},[fb.DEVICE_APPLE_SSO_EXTENSION]:{_:vu,[fS.OV]:wo},[fb.CANCEL_TRANSACTION]:{_:vu},[fb.ENROLL_PROFILE]:{_:vL},[fb.ENROLL_PROFILE_UPDATE]:{_:vF},[fb.POLL]:{_:yZ},[fb.REQUEST_ACTIVATION]:{_:vV},[fb.SELECT_AUTHENTICATOR_ENROLL]:{_:vq},[fb.AUTHENTICATOR_ENROLLMENT_DATA]:{[fS.PHONE]:bi,[fS.EMAIL]:bU},[fb.CONSENT_ADMIN]:{_:y8},[fb.CONSENT_ENDUSER]:{_:y6},[fb.CONSENT_GRANULAR]:{_:vt},[fb.CONSENT_EMAIL_CHALLENGE]:{_:vo},[fb.ENROLL_AUTHENTICATOR]:{[fS.DUO]:wv,[fS.EMAIL]:bP,[fS.GOOGLE_OTP]:wc,[fS.IDP]:wE,[fS.ON_PREM]:wh,[fS.PASSWORD]:vG,[fS.PHONE]:bt,[fS.RSA]:wh,[fS.SECURITY_QUESTION]:bs,[fS.SYMANTEC_VIP]:wC,[fS.WEBAUTHN]:bh,[fS.YUBIKEY]:wM},[fb.CHALLENGE_AUTHENTICATOR]:{[fS.CUSTOM_OTP]:wx,[fS.DUO]:ww,[fS.EMAIL]:bI,[fS.GOOGLE_OTP]:wp,[fS.IDP]:w_,[fS.ON_PREM]:wm,[fS.OV]:b5,[fS.PASSWORD]:vQ,[fS.PHONE]:v9,[fS.RSA]:wm,[fS.SECURITY_QUESTION]:bc,[fS.SYMANTEC_VIP]:wC,[fS.TAC]:wW,[fS.WEBAUTHN]:bw,[fS.YUBIKEY]:wM},[fb.ENROLL_POLL]:{[fS.OV]:bz},[fb.SELECT_ENROLLMENT_CHANNEL]:{[fS.OV]:bY},[fb.ENROLLMENT_CHANNEL_DATA]:{[fS.OV]:bQ},[fb.REENROLL_AUTHENTICATOR]:{[fS.PASSWORD]:vZ},[fb.REENROLL_CUSTOM_PASSWORD_EXPIRY]:{[fS.PASSWORD]:wV},[fb.REENROLL_CUSTOM_PASSWORD_EXPIRY_WARNING]:{[fS.PASSWORD]:w$},[fb.REENROLL_AUTHENTICATOR_WARNING]:{[fS.PASSWORD]:v8},[fb.RESET_AUTHENTICATOR]:{[fS.PASSWORD]:v3,[fS.GOOGLE_OTP]:wc},[fb.SELECT_AUTHENTICATOR_AUTHENTICATE]:{_:vH},[fb.SELECT_AUTHENTICATOR_UNLOCK]:{_:vz},[fb.UNLOCK_ACCOUNT]:{_:wY},[fb.CHALLENGE_POLL]:{[fS.OV]:b4,[fS.CUSTOM_APP]:b0},[fb.RESEND]:{[fS.OV]:b7,[fS.CUSTOM_APP]:wF},[fb.AUTHENTICATOR_VERIFICATION_DATA]:{[fS.PHONE]:br,[fS.OV]:wn,[fS.EMAIL]:bU,[fS.CUSTOM_APP]:wn},[fb.FAILURE_REDIRECT]:{_:yJ},[fb.SUCCESS_REDIRECT]:{_:yJ},[fb.REDIRECT_IDP]:{_:g6},[fb.REDIRECT_IDVERIFY]:{_:ya},[fb.PIV_IDP]:{_:wI},[fb.DEVICE_ENROLLMENT_TERMINAL]:{_:vN},[fb.USER_CODE]:{_:wP},[fb.KEEP_ME_SIGNED_IN]:{_:wK},[fb.TERMINAL]:{_:yK},[fb.DEVICE_ASSURANCE_GRACE_PERIOD]:{_:wQ}};var wZ=function(e,t="_"){let n=wX[e];return n?n[t]||n._||(rQ.warn(`Cannot find customized View for ${e} + ${t}.`),gG):(rQ.warn(`Cannot find customized View for ${e}.`),gG)};let w0=e=>{let t={};return Object.keys(e).forEach(n=>{if("object"!=typeof e[n]){t[n]=e[n];return}let i=w0(e[n]);
24Object.keys(i).forEach(e=>{t[n+"."+e]=i[e]})}),t},w1={[fb.CONSENT_GRANULAR]:e=>e.optedScopes&&"string"!=typeof e.optedScopes?{...e,optedScopes:w0(e.optedScopes)}:e},w8=(e,t)=>{let n=t.toJSON(),i=w1[e];return void 0===i?n:i(n)};var w2=cU.extend({className:"form-controller",appStateEvents:{"change:currentFormName":"handleFormNameChange",afterError:"handleAfterError",invokeAction:"handleInvokeAction",saveForm:"handleSaveForm",switchForm:"handleSwitchForm"},preRender:function(){this.removeChildren()},postRender:function(){let e=this.options.appState.getCurrentViewState();if(!e)return;this.clearMetadata();let t=e.name;"identify"===t&&this.options.settings.get("flow")===fW.RESET_PASSWORD&&(t="identify-recovery");let n=wZ(t,this.options.appState.get("authenticatorKey"));try{this.formView=this.add(n,{options:{currentViewState:e}}).last()}catch(e){this.options.settings.callGlobalError(e);return}this.triggerAfterRenderEvent()},clearMetadata:function(){let e=this.options.appState.get("currentFormName");fO.includes(e)&&f$.removeStateHandle()},triggerAfterRenderEvent:function(){let e=this.createAfterEventContext();this.trigger("afterRender",e)},handleFormNameChange:function(){this.$el.click(),this.render()},handleAfterError:function(e){let t=this.createAfterEventContext(),n={xhr:e,errorSummary:e.responseJSON&&e.responseJSON.errorSummary};this.trigger("afterError",t,n)},createAfterEventContext:function(){let e=this.options.appState.get("currentFormName"),t=this.options.appState.get("authenticatorKey"),n=this.options.appState.get("authenticatorMethodType"),i={controller:gz(e,t,n,this.options.appState.get("isPasswordRecoveryFlow")),formName:e};return t&&(i.authenticatorKey=t),n&&(i.methodType=n),i},handleSwitchForm:function(e){this.options.appState.get("messages")&&this.options.appState.unset("messages"),this.options.appState.set("currentFormName",e)},handleInvokeAction:async function(e="",t={},n=!0){let i;let{appState:o,settings:r}=this.options;if(e===fx&&r.get("oauth2Enabled")){o.trigger("restartLoginFlow","resetPassword");return}let a=o.get("idx"),{stateHandle:s}=a.context,l={exchangeCodeForTokens:!1,stateHandle:s};if("cancel"===e&&(r.getAuthClient().transactionManager.clear({clearIdxResponse:!1}),f$.removeStateHandle(),o.clearAppStateCache(),r.get("oauth2Enabled"))){o.trigger("restartLoginFlow");return}if([fb.LAUNCH_AUTHENTICATOR,fb.CHALLENGE_WEBAUTHN_AUTOFILLUI_AUTHENTICATOR,fb.LAUNCH_PASSKEYS_AUTHENTICATOR].includes(e)&&t)l={...l,actions:[{name:e,params:t}]};else if(a.neededToProceed.find(t=>t.name===e))l={...l,step:e};else if(rN.isFunction(a.actions[e]))l={...l,actions:[{name:e,params:t}]};else{i=new rU(`Invalid action selected: ${e}`),this.options.settings.callGlobalError(i),n&&await this.showFormErrors(this.formView.model,i,this.formView.form);return}await this.invokeAction(l)},invokeAction:async function(e){let t,n;let i=this.options.settings.getAuthClient();try{t=await i.idx.proceed(e),!1===t.requestDidSucceed&&(n=t)}catch(e){n=e}if(n){var o,r,a,s,l;let t=n.rawIdxState||n,i=bk.buildErrorObject(t),c=null===(o=e.actions)||void 0===o?void 0:null===(r=o[0])||void 0===r?void 0:null===(a=r.name)||void 0===a?void 0:a.endsWith("-poll");if(!m0.isIonErrorResponse(t)&&!bk.isRateLimitError(i)&&c&&"function"==typeof(null===(s=this.formView)||void 0===s?void 0:null===(l=s.form)||void 0===l?void 0:l.startPolling)){this.formView.form.startPolling();return}await this.showFormErrors(this.formView.model,n,this.formView.form);return}await this.handleIdxResponse(t)},handleSaveForm:async function(e){var t,n;let i=e.get("formName");if(this.toggleFormButtonState(!0),e.trigger("request"),e.get("useRedirect")){f$.removeStateHandle();let e=this.options.appState.getCurrentViewState();r7.executeOnVisiblePage(()=>{r7.redirectWithFormGet(e.href)});return}let o=w8(i,e),r=o.identifier,a=this.transformIdentifier(i,o);if(this.options.settings.get("features.rememberMe")?r&&dC.setUsernameCookie(r):dC.removeUsernameCookie(),!this.options.appState.hasRemediationObject(i)){this.options.settings.callGlobalError(`Cannot find http action for "${i}".`),await this.showFormErrors(this.formView.model,"Cannot find action to proceed.",this.formView.form);return}"identify"===i&&this.options.settings.get("flow")===fW.RESET_PASSWORD&&(a.authenticator="okta_password");let s=this.options.settings.getAuthClient();try{let{stateHandle:n}=this.options.appState.get("idx").context,o=await s.idx.proceed({exchangeCodeForTokens:!1,step:i,stateHandle:n,...a});if(o.status===z.FAILURE)throw o.error;if(m0.isIdxSessionExpiredError(o)){this.settings.getAuthClient().transactionManager.clear(),await this.handleIdxResponse(o);return}
24if(!1===o.requestDidSucceed&&!o.stepUp){await this.showFormErrors(e,o,this.formView.form);return}let r=this.handleIdxResponse.bind(this,o);i===fb.ENROLL_PROFILE?this.settings.postRegistrationSubmit(null==a?void 0:null===(t=a.userProfile)||void 0===t?void 0:t.email,r,t=>{e.trigger("error",e,{responseJSON:t})}):await r()}catch(t){null!==(n=t.is)&&void 0!==n&&n.call(t,"terminal")?this.options.appState.setNonIdxError(t):await this.showFormErrors(e,t,this.formView.form)}finally{this.toggleFormButtonState(!1)}},transformIdentifier:function(e,t){if(Object.prototype.hasOwnProperty.call(t,"identifier")){let n=fT[e];t.identifier=this.settings.transformUsername(t.identifier,n)}return t},showFormErrors:async function(e,t,n){var i,o;let r;let a=!0;e.trigger("clearFormError"),t||(t="FormController - unknown error found",this.options.settings.callGlobalError(t)),null!==(i=t)&&void 0!==i&&i.rawIdxState&&(r=t,t=t.rawIdxState);let s=bk.buildErrorObject(t,e=>{r7.logConsoleError(e)});rN.isFunction(null==n?void 0:n.showCustomFormErrorCallout)&&(a=!n.showCustomFormErrorCallout(s,null===(o=r)||void 0===o?void 0:o.messages)),e.trigger("error",e,s,a),Object.assign({},r,{hasFormError:!0})},handleIdxResponse:async function(e){await mz(this.options.appState,e)},toggleFormButtonState:function(e){this.$el.find(".o-form-button-bar .button").toggleClass("link-button-disabled",e)}});let w3={"":"defaultAuth","*wildcard":"defaultAuth"};class w4 extends m1{constructor(e){super({routes:w3,...e})}defaultAuth(){this.render(w2)}}function w6(e){let t=!e.stateToken&&!e.clientId&&!e.proxyIdxResponse,n=e.stateToken&&r7.isV1StateToken(e.stateToken),i=e.clientId&&!0===e.useClassicEngine;return t||n||i?fv:w4}function w5(e={},t={}){let n=sh.extend(!0,{},e.authParams,rN.pick(t,uB.AUTH_PARAMS)),{el:i,clientId:o,redirectUri:r}=Object.assign({},e,t),a=Object.assign({},{el:i,clientId:o,redirectUri:r,authParams:n});if(!a.el)throw new rU('"el" is required');if(!a.clientId)throw new rU('"clientId" is required');if(!a.redirectUri)throw new rU('"redirectUri" is required');return a}class w9 extends su{mergeHook(e,t){let n=this.get("hooks")||{};!function(e,t,n){let i=e[t]=e[t]||{before:[],after:[]};n.before&&(i.before=(i.before||[]).concat(n.before)),n.after&&(i.after=(i.after||[]).concat(n.after))}(n,e,t),this.set("hooks",n)}getHook(e){return(this.get("hooks")||{})[e]}}let w7=["ready","afterError","afterRender"];function ke(e,t){return class{constructor(n){if(this.Router=void 0,this.options=void 0,this.hooks=void 0,this.router=void 0,this.authClient=void 0,this._eventCallbackMap=void 0,r7.debugMessage(` 25 The Okta Sign-In Widget is running in development mode. 26 When you are ready to publish your app, embed the minified version to turn on production mode. 27 See: https://developer.okta.com/code/javascript/okta_sign-in_widget#cdn 28 `),!n.stateToken){var i,o,r;n.stateToken=null===(i=window)||void 0===i?void 0:null===(o=i.oktaData)||void 0===o?void 0:null===(r=o.signIn)||void 0===r?void 0:r.stateToken}if(this.options=n,this.authClient=function(e,t={}){let{authClient:n,authParams:i}=t;if(!n){let{issuer:o,clientId:r,redirectUri:a,state:s,scopes:l,flow:c,codeChallenge:u,codeChallengeMethod:p,recoveryToken:d}=t;(i={issuer:o,clientId:r,redirectUri:a,state:s,scopes:l,flow:c,codeChallenge:u,codeChallengeMethod:p,transformErrorXHR:r7.transformErrorXHR,recoveryToken:d,pollDelay:500,...i}).issuer||(i.issuer=t.baseUrl+"/oauth2/default"),n=new e(i)}if(n._oktaUserAgent)n._oktaUserAgent.addEnvironment(`okta-signin-widget-${rR.version}`);else throw new rU("The passed in authClient should be version 5.4.0 or above.");return n}(e,n),!0!==n.useClassicEngine&&this.authClient.options.clientId&&!1===this.authClient.isPKCE())throw new rU("OAuth2 with interaction code flow requires PKCE to be enabled on the authClient.");this.hooks=new w9({hooks:n.hooks}),this.Router=t(n),this._eventCallbackMap=new WeakMap,this.Router.prototype.Events.listenTo.call(this,this.Router.prototype,"all",this.trigger),this.once("afterRender",function(e){this.trigger("ready",e)})}renderEl(e,t,n){if(this.router)throw Error("An instance of the widget has already been rendered. Call remove() first.");let i=function(e,t,n,i,o,r,a){let s,l;let c=new Promise((e,t)=>
28{s=e,l=t}),u=sh.extend(!0,{},t,n,{authClient:i,hooks:a,globalSuccessFn:e=>{o&&o(e),e&&e.status===rL.SUCCESS&&s(e)},globalErrorFn:e=>{r&&r(e),l(e)}}),p=new e(u);return p.start(),{router:p,routerOptions:u,promise:c}}(this.Router,this.options,e,this.authClient,t,n,this.hooks);return this.router=i.router,i.promise}hide(){this.router&&this.router.hide()}show(){this.router&&this.router.show()}remove(){this.router&&(this.router.remove(),this.router=void 0)}showSignInToGetTokens(e){let t=Object.assign(w5(this.options,e),{redirect:"never"}),n=this.renderEl(t).then(e=>e.tokens),i=this.router.settings.getAuthClient();if(i.isAuthorizationCodeFlow()&&!i.isPKCE())throw new rU('"showSignInToGetTokens()" should not be used for authorization_code flow. Use "showSignInAndRedirect()" instead');return n}showSignInAndRedirect(e){let t=Object.assign(w5(this.options,e),{redirect:"always"});return this.renderEl(t).then(()=>{})}showSignIn(e){let t=Object.assign(w5(this.options,e));return this.renderEl(t)}before(e,t){this.hooks.mergeHook(e,{before:[t]})}after(e,t){this.hooks.mergeHook(e,{after:[t]})}getUser(){var e,t;return null===(e=this.router)||void 0===e?void 0:null===(t=e.appState)||void 0===t?void 0:t.getUser()}on(e,t){if(w7.includes(e)){let n=t;t=function(...t){try{n.apply(this,t)}catch(t){rQ.error(`[okta-signin-widget] "${e}" event handler error:`,t)}},this._eventCallbackMap.set(n,t)}this.Router.prototype.Events.on.call(this,e,t)}off(e,t){t&&(t=this._eventCallbackMap.get(t)||t),this.Router.prototype.Events.off.call(this,e,t)}once(e,t){this.Router.prototype.Events.once.call(this,e,t)}stopListening(e,t){this.Router.prototype.Events.stopListening.call(this,e,t)}listenTo(e,t,n){this.Router.prototype.Events.listenTo.call(this,e,t,n)}trigger(e,...t){this.Router.prototype.Events.trigger.apply(this,[e,...t])}}}class kt extends ke(rC,w6){constructor(e){super(e)}}},94327:function(e){"use strict";let t={days:e=>864e5*e,hours:e=>36e5*e,minutes:e=>6e4*e,seconds:e=>1e3*e,milliseconds:e=>e,microseconds:e=>e/1e3,nanoseconds:e=>e/1e6},n=e=>Object.entries(e).reduce((e,[n,i])=>{if("number"!=typeof i)throw TypeError(`Expected a \`number\` for key \`${n}\`, got \`${i}\` (${typeof i})`);if(!t[n])throw Error("Unsupported time key");return e+t[n](i)},0);e.exports=n,e.exports.default=n},73493:function(e,t,n){var i,o,r;r=function(e,t){"use strict";var n=t&&t.__esModule?t:{default:t},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(e&&(void 0===e?"undefined":i(e))==="object"&&1===e.nodeType){if("copy"===this.action&&e.hasAttribute("disabled"))throw Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}else throw Error('Invalid "target" value, use a valid Element')}},get:function(){return this._target}}]),e}();e.exports=r},i=[e,n(83817)],void 0!==(o=r.apply(t,i))&&(e.exports=o)},34987:function(e,t,n){var i,o,r;r=function(e,t,n,i){"use strict";var o=s(t),r=s(n),a=s(i);
28function s(e){return e&&e.__esModule?e:{default:e}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.resolveOptions(n),i.listenClick(e),i}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
28(t,e),c(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===l(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return p("action",e)}},{key:"defaultTarget",value:function(e){var t=p("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return p("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=!!document.queryCommandSupported;return("string"==typeof e?[e]:e).forEach(function(e){t=t&&!!document.queryCommandSupported(e)}),t}}]),t}(r.default);function p(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=u},i=[e,n(73493),n(81125),n(47370)],void 0!==(o=r.apply(t,i))&&(e.exports=o)},81125:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,a=i.length;r<a;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t},5373:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},99438:function(e,t,n){var i=n(5373);function o(e,t,n,i,o){var a=r.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function r(e,t,n,o){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return o(e,t,n,i,r)}))}},34879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},47370:function(e,t,n){var i=n(34879),o=n(99438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw Error("Missing required arguments");if(!i.string(t))throw TypeError("Second argument must be a String");if(!i.fn(n))throw TypeError("Third argument must be a Function");if(i.node(e))return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}};if(i.nodeList(e))return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}};if(i.string(e))return o(document.body,e,t,n);throw TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},51455:function(e){"use strict";e.exports=e=>{if("number"!=typeof e)throw TypeError("Expected a number");let t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(1e3*e)%1e3,nanoseconds:t(1e6*e)%1e3}}},78486:function(e,t,n){var i,o=n(34155);i=function(){"use strict";var e,t,n=!1;try{throw Error()}catch(e){n=!!e.stack}var i=w(),r=function(){},a=function(){var e={task:void 0,next:null},t=e,n=!1,i=void 0,r=!1,s=[];function l(){for(var t,i;e.next;)t=(e=e.next).task,e.task=void 0,(i=e.domain)&&(e.domain=void 0,i.enter()),c(t,i);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(r)throw t&&t.exit(),setTimeout(l,0),t&&t.enter(),e;setTimeout(function(){throw e},0)}t&&t.exit()}if(a=function(e){t=t.next={task:e,domain:r&&o.domain,next:null},n||(n=!0,i())},"object"==typeof o&&"[object process]"===o.toString()&&o.nextTick)r=!0,i=function(){o.nextTick(l)};else if("function"==typeof setImmediate)i="undefined"!=typeof window?setImmediate.bind(window,l):function(){setImmediate(l)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){i=p,u.port1.onmessage=l,l()};var p=function(){u.port2.postMessage(0)};i=function(){setTimeout(l,0),p()}}else i=function(){setTimeout(l,0)};return a.runAfter=function(e){s.push(e),n||(n=!0,i())},a}(),s=Function.call;function l(e){return function(){return s.apply(e,arguments)}}var c=l(Array.prototype.slice),u=l(Array.prototype.reduce||function(e,t){var n=0,i=this.length;if(1==arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=i)throw TypeError()}for(;n<i;
28n++)n in this&&(t=e(t,this[n],n));return t}),p=l(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return -1}),d=l(Array.prototype.map||function(e,t){var n=this,i=[];return u(n,function(o,r,a){i.push(e.call(t,r,a,n))},void 0),i}),h=Object.create||function(e){function t(){}return t.prototype=e,new t},f=l(Object.prototype.hasOwnProperty),m=Object.keys||function(e){var t=[];for(var n in e)f(e,n)&&t.push(n);return t},g=l(Object.prototype.toString);"undefined"!=typeof ReturnValue?t=ReturnValue:t=function(e){this.value=e};var y="From previous event:";function v(t,o){if(n&&o.stack&&"object"==typeof t&&null!==t&&t.stack&&-1===t.stack.indexOf(y)){for(var r=[],a=o;a;a=a.source)a.stack&&r.unshift(a.stack);r.unshift(t.stack);var s=r.join("\n"+y+"\n");t.stack=function(t){for(var n=t.split("\n"),o=[],r=0;r<n.length;++r){var a=n[r];!function(t){var n=b(t);if(!n)return!1;var o=n[0],r=n[1];return o===e&&r>=i&&r<=q}(a)&&!(-1!==a.indexOf("(module.js:")||-1!==a.indexOf("(node.js:"))&&a&&o.push(a)}return o.join("\n")}(s)}}function b(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var i=/.*@(.+):(\d+)$/.exec(e);if(i)return[i[1],Number(i[2])]}function w(){if(n)try{throw Error()}catch(n){var t=n.stack.split("\n"),i=b(t[0].indexOf("@")>0?t[1]:t[2]);if(!i)return;return e=i[0],i[1]}}function k(e){var t;return e instanceof T?e:A(e)?(t=_(),k.nextTick(function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}}),t.promise):M(e)}function _(){var e,t=[],i=[],o=h(_.prototype),r=h(T.prototype);if(r.promiseDispatch=function(n,o,r){var a=c(arguments);t?(t.push(a),"when"===o&&r[1]&&i.push(r[1])):k.nextTick(function(){e.promiseDispatch.apply(e,a)})},r.valueOf=function(){if(t)return r;var n=O(e);return C(n)&&(e=n),n},r.inspect=function(){return e?e.inspect():{state:"pending"}},k.longStackSupport&&n)try{throw Error()}catch(e){r.stack=e.stack.substring(e.stack.indexOf("\n")+1)}function a(n){e=n,r.source=n,u(t,function(e,t){k.nextTick(function(){n.promiseDispatch.apply(n,t)})},void 0),t=void 0,i=void 0}return o.promise=r,o.resolve=function(t){e||a(k(t))},o.fulfill=function(t){e||a(M(t))},o.reject=function(t){e||a(L(t))},o.notify=function(t){e||u(i,function(e,n){k.nextTick(function(){n(t)})},void 0)},o}function S(e){if("function"!=typeof e)throw TypeError("resolver must be a function.");var t=_();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function E(e){return S(function(t,n){for(var i=0,o=e.length;i<o;i++)k(e[i]).then(t,n)})}function T(e,t,n){void 0===t&&(t=function(e){return L(Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var i=h(T.prototype);if(i.promiseDispatch=function(n,o,r){var a;try{a=e[o]?e[o].apply(i,r):t.call(i,o,r)}catch(e){a=L(e)}n&&n(a)},i.inspect=n,n){var o=n();"rejected"===o.state&&(i.exception=o.reason),i.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?i:e.value}}return i}function x(e,t,n,i){return k(e).then(t,n,i)}function O(e){if(C(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function C(e){return e instanceof T}function A(e){return e===Object(e)&&"function"==typeof e.then}k.resolve=k,k.nextTick=a,k.longStackSupport=!1,"object"==typeof o&&o&&o.env&&o.env.Q_DEBUG&&(k.longStackSupport=!0),k.defer=_,_.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(c(arguments,1)):e.resolve(n)}},k.Promise=S,k.promise=S,S.race=E,S.all=j,S.reject=L,S.resolve=k,k.passByCopy=function(e){return e},T.prototype.passByCopy=function(){return this},k.join=function(e,t){return k(e).join(t)},T.prototype.join=function(e){return k([this,e]).spread(function(e,t){if(e===t)return e;throw Error("Can't join: not the same: "+e+" "+t)})},k.race=E,T.prototype.race=function(){return this.then(k.race)},k.makePromise=T,T.prototype.toString=function(){return"[object Promise]"},T.prototype.then=function(e,t,n){var i=this,o=_(),r=!1;
28return k.nextTick(function(){i.promiseDispatch(function(t){r||(r=!0,o.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return L(e)}}(t)))},"when",[function(e){r||(r=!0,o.resolve(function(e){if("function"==typeof t){v(e,i);try{return t(e)}catch(e){return L(e)}}return L(e)}(e)))}])}),i.promiseDispatch(void 0,"when",[void 0,function(e){var t,i=!1;try{t="function"==typeof n?n(e):e}catch(e){if(i=!0,k.onerror)k.onerror(e);else throw e}i||o.notify(t)}]),o.promise},k.tap=function(e,t){return k(e).tap(t)},T.prototype.tap=function(e){return e=k(e),this.then(function(t){return e.fcall(t).thenResolve(t)})},k.when=x,T.prototype.thenResolve=function(e){return this.then(function(){return e})},k.thenResolve=function(e,t){return k(e).thenResolve(t)},T.prototype.thenReject=function(e){return this.then(function(){throw e})},k.thenReject=function(e,t){return k(e).thenReject(t)},k.nearer=O,k.isPromise=C,k.isPromiseAlike=A,k.isPending=function(e){return C(e)&&"pending"===e.inspect().state},T.prototype.isPending=function(){return"pending"===this.inspect().state},k.isFulfilled=function(e){return!C(e)||"fulfilled"===e.inspect().state},T.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},k.isRejected=function(e){return C(e)&&"rejected"===e.inspect().state},T.prototype.isRejected=function(){return"rejected"===this.inspect().state};var P=[],N=[],R=[],I=!0;function D(){P.length=0,N.length=0,I||(I=!0)}function L(e){var t=T({when:function(t){return t&&function(e){if(I){var t=p(N,e);-1!==t&&("object"==typeof o&&"function"==typeof o.emit&&k.nextTick.runAfter(function(){var n=p(R,e);-1!==n&&(o.emit("rejectionHandled",P[t],e),R.splice(n,1))}),N.splice(t,1),P.splice(t,1))}}(this),t?t(e):this}},function(){return this},function(){return{state:"rejected",reason:e}});return I&&("object"==typeof o&&"function"==typeof o.emit&&k.nextTick.runAfter(function(){-1!==p(N,t)&&(o.emit("unhandledRejection",e,t),R.push(t))}),N.push(t),e&&void 0!==e.stack?P.push(e.stack):P.push("(no stack) "+e)),t}function M(e){return T({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return m(e)}},void 0,function(){return{state:"fulfilled",value:e}})}function U(e,t,n){return k(e).spread(t,n)}function F(e,t,n){return k(e).dispatch(t,n)}function j(e){return x(e,function(e){var t=0,n=_();return u(e,function(i,o,r){var a;C(o)&&"fulfilled"===(a=o.inspect()).state?e[r]=a.value:(++t,x(o,function(i){e[r]=i,0==--t&&n.resolve(e)},n.reject,function(e){n.notify({index:r,value:e})}))},void 0),0===t&&n.resolve(e),n.promise})}function V(e){if(0===e.length)return k.resolve();var t=k.defer(),n=0;return u(e,function(i,o,r){var a=e[r];n++,x(a,function(e){t.resolve(e)},function(){0==--n&&t.reject(Error("Can't get fulfillment value from any promise, all promises were rejected."))},function(e){t.notify({index:r,value:e})})},void 0),t.promise}function B(e){return x(e,function(e){return e=d(e,k),x(j(d(e,function(e){return x(e,r,r)})),function(){return e})})}k.resetUnhandledRejections=D,k.getUnhandledReasons=function(){return P.slice()},k.stopUnhandledRejectionTracking=function(){D(),I=!1},D(),k.reject=L,k.fulfill=M,k.master=function(e){return T({isDef:function(){}},function(t,n){return F(e,t,n)},function(){return k(e).inspect()})},k.spread=U,T.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},k.async=function(e){return function(){function n(e,n){var a;if("undefined"==typeof StopIteration){try{a=i[e](n)}catch(e){return L(e)}return a.done?k(a.value):x(a.value,o,r)}try{a=i[e](n)}catch(e){if("[object StopIteration]"===g(e)||e instanceof t)return k(e.value);return L(e)}return x(a,o,r)}var i=e.apply(this,arguments),o=n.bind(n,"next"),r=n.bind(n,"throw");return o()}},k.spawn=function(e){k.done(k.async(e)())},k.return=function(e){throw new t(e)},k.promised=function(e){return function(){return U([this,j(arguments)],function(t,n){return e.apply(t,n)})}},k.dispatch=F,T.prototype.dispatch=function(e,t){var n=this,i=_();
28return k.nextTick(function(){n.promiseDispatch(i.resolve,e,t)}),i.promise},k.get=function(e,t){return k(e).dispatch("get",[t])},T.prototype.get=function(e){return this.dispatch("get",[e])},k.set=function(e,t,n){return k(e).dispatch("set",[t,n])},T.prototype.set=function(e,t){return this.dispatch("set",[e,t])},k.del=k.delete=function(e,t){return k(e).dispatch("delete",[t])},T.prototype.del=T.prototype.delete=function(e){return this.dispatch("delete",[e])},k.mapply=k.post=function(e,t,n){return k(e).dispatch("post",[t,n])},T.prototype.mapply=T.prototype.post=function(e,t){return this.dispatch("post",[e,t])},k.send=k.mcall=k.invoke=function(e,t){return k(e).dispatch("post",[t,c(arguments,2)])},T.prototype.send=T.prototype.mcall=T.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},k.fapply=function(e,t){return k(e).dispatch("apply",[void 0,t])},T.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},k.try=k.fcall=function(e){return k(e).dispatch("apply",[void 0,c(arguments,1)])},T.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},k.fbind=function(e){var t=k(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},T.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},k.keys=function(e){return k(e).dispatch("keys",[])},T.prototype.keys=function(){return this.dispatch("keys",[])},k.all=j,T.prototype.all=function(){return j(this)},k.any=V,T.prototype.any=function(){return V(this)},k.allResolved=function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("allResolved is deprecated, use allSettled instead.",Error("").stack),B.apply(B,arguments)},T.prototype.allResolved=function(){return B(this)},k.allSettled=function(e){return k(e).allSettled()},T.prototype.allSettled=function(){return this.then(function(e){return j(d(e,function(e){function t(){return e.inspect()}return(e=k(e)).then(t,t)}))})},k.fail=k.catch=function(e,t){return k(e).then(void 0,t)},T.prototype.fail=T.prototype.catch=function(e){return this.then(void 0,e)},k.progress=function(e,t){return k(e).then(void 0,void 0,t)},T.prototype.progress=function(e){return this.then(void 0,void 0,e)},k.fin=k.finally=function(e,t){return k(e).finally(t)},T.prototype.fin=T.prototype.finally=function(e){return e=k(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},k.done=function(e,t,n,i){return k(e).done(t,n,i)},T.prototype.done=function(e,t,n){var i=function(e){k.nextTick(function(){if(v(e,r),k.onerror)k.onerror(e);else throw e})},r=e||t||n?this.then(e,t,n):this;"object"==typeof o&&o&&o.domain&&(i=o.domain.bind(i)),r.then(void 0,i)},k.timeout=function(e,t,n){return k(e).timeout(t,n)},T.prototype.timeout=function(e,t){var n=_(),i=setTimeout(function(){t&&"string"!=typeof t||((t=Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)},e);return this.then(function(e){clearTimeout(i),n.resolve(e)},function(e){clearTimeout(i),n.reject(e)},n.notify),n.promise},k.delay=function(e,t){return void 0===t&&(t=e,e=void 0),k(e).delay(t)},T.prototype.delay=function(e){return this.then(function(t){var n=_();return setTimeout(function(){n.resolve(t)},e),n.promise})},k.nfapply=function(e,t){return k(e).nfapply(t)},T.prototype.nfapply=function(e){var t=_(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},k.nfcall=function(e){var t=c(arguments,1);return k(e).nfapply(t)},T.prototype.nfcall=function(){var e=c(arguments),t=_();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},k.nfbind=k.denodeify=function(e){var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),i=_();return n.push(i.makeNodeResolver()),k(e).fapply(n).fail(i.reject),i.promise}},T.prototype.nfbind=T.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),k.denodeify.apply(void 0,e)},k.nbind=function(e,t){var n=c(arguments,2);return function(){var i=n.concat(c(arguments)),o=_();return i.push(o.makeNodeResolver()),k(function(){return e.apply(t,arguments)}).fapply(i).fail(o.reject),o.promise}},T.prototype.nbind=function(){var e=c(arguments,0);
28return e.unshift(this),k.nbind.apply(void 0,e)},k.nmapply=k.npost=function(e,t,n){return k(e).npost(t,n)},T.prototype.nmapply=T.prototype.npost=function(e,t){var n=c(t||[]),i=_();return n.push(i.makeNodeResolver()),this.dispatch("post",[e,n]).fail(i.reject),i.promise},k.nsend=k.nmcall=k.ninvoke=function(e,t){var n=c(arguments,2),i=_();return n.push(i.makeNodeResolver()),k(e).dispatch("post",[t,n]).fail(i.reject),i.promise},T.prototype.nsend=T.prototype.nmcall=T.prototype.ninvoke=function(e){var t=c(arguments,1),n=_();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},k.nodeify=function(e,t){return k(e).nodeify(t)},T.prototype.nodeify=function(e){if(!e)return this;this.then(function(t){k.nextTick(function(){e(null,t)})},function(t){k.nextTick(function(){e(t)})})},k.noConflict=function(){throw Error("Q.noConflict only works when Q is used as a global")};var q=w();return k},"function"==typeof bootstrap?bootstrap("promise",i):e.exports=i()},83817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),t=i.toString()}return t}},23959:function(){"use strict";!function(){var e,t="chrome"in window&&0>window.navigator.userAgent.indexOf("Edge");if(!("u2f"in window)&&t){var n=window.u2f={};n.EXTENSION_ID="kmendfapggjehodndflmmgagdbamhnfd",n.MessageTypes={U2F_REGISTER_REQUEST:"u2f_register_request",U2F_REGISTER_RESPONSE:"u2f_register_response",U2F_SIGN_REQUEST:"u2f_sign_request",U2F_SIGN_RESPONSE:"u2f_sign_response",U2F_GET_API_VERSION_REQUEST:"u2f_get_api_version_request",U2F_GET_API_VERSION_RESPONSE:"u2f_get_api_version_response"},n.ErrorCodes={OK:0,OTHER_ERROR:1,BAD_REQUEST:2,CONFIGURATION_UNSUPPORTED:3,DEVICE_INELIGIBLE:4,TIMEOUT:5},n.U2fRequest,n.U2fResponse,n.Error,n.Transport,n.Transports,n.SignRequest,n.SignResponse,n.RegisterRequest,n.RegisterResponse,n.RegisteredKey,n.GetJsApiVersionResponse,n.getMessagePort=function(e){if("undefined"!=typeof chrome&&chrome.runtime){var t={type:n.MessageTypes.U2F_SIGN_REQUEST,signRequests:[]};chrome.runtime.sendMessage(n.EXTENSION_ID,t,function(){chrome.runtime.lastError?n.getIframePort_(e):n.getChromeRuntimePort_(e)})}else n.isAndroidChrome_()?n.getAuthenticatorPort_(e):n.isIosChrome_()?n.getIosPort_(e):n.getIframePort_(e)},n.isAndroidChrome_=function(){var e=navigator.userAgent;return -1!=e.indexOf("Chrome")&&-1!=e.indexOf("Android")},n.isIosChrome_=function(){return["iPhone","iPad","iPod"].indexOf(navigator.platform)>-1},n.getChromeRuntimePort_=function(e){var t=chrome.runtime.connect(n.EXTENSION_ID,{includeTlsChannelId:!0});setTimeout(function(){e(new n.WrappedChromeRuntimePort_(t))},0)},n.getAuthenticatorPort_=function(e){setTimeout(function(){e(new n.WrappedAuthenticatorPort_)},0)},n.getIosPort_=function(e){setTimeout(function(){e(new n.WrappedIosPort_)},0)},n.WrappedChromeRuntimePort_=function(e){this.port_=e},n.formatSignRequest_=function(t,i,o,r,a){if(void 0===e||e<1.1){for(var s=[],l=0;l<o.length;l++)s[l]={version:o[l].version,challenge:i,keyHandle:o[l].keyHandle,appId:t};return{type:n.MessageTypes.U2F_SIGN_REQUEST,signRequests:s,timeoutSeconds:r,requestId:a}}return{type:n.MessageTypes.U2F_SIGN_REQUEST,appId:t,challenge:i,registeredKeys:o,timeoutSeconds:r,requestId:a}},n.formatRegisterRequest_=function(t,i,o,r,a){if(void 0===e||e<1.1){for(var s=0;s<o.length;s++)o[s].appId=t;for(var l=[],s=0;s<i.length;s++)l[s]={version:i[s].version,challenge:o[0],keyHandle:i[s].keyHandle,appId:t};return{type:n.MessageTypes.U2F_REGISTER_REQUEST,signRequests:l,registerRequests:o,timeoutSeconds:r,requestId:a}}return{type:n.MessageTypes.U2F_REGISTER_REQUEST,appId:t,registerRequests:o,registeredKeys:i,timeoutSeconds:r,requestId:a}},n.WrappedChromeRuntimePort_.prototype.postMessage=function(e){this.port_.postMessage(e)},n.WrappedChromeRuntimePort_.prototype.addEventListener=function(e,t){var n=e.toLowerCase();"message"==n||"onmessage"==n?this.port_.onMessage.addListener(function(e){t({data:e})}):console.error("WrappedChromeRuntimePort only supports onMessage")},n.WrappedAuthenticatorPort_=function(){this.requestId_=-1,this.requestObject_=null},n.WrappedAuthenticatorPort_.prototype.postMessage=function(e){var t=n.WrappedAuthenticatorPort_.INTENT_URL_BASE_+";S.request="+encodeURIComponent(JSON.stringify(e))+";end";document.location=t},n.WrappedAuthenticatorPort_.prototype.getPortType=function(){return"WrappedAuthenticatorPort_"},n.WrappedAuthenticatorPort_.prototype.addEventListener=function(e,t){"message"==e.toLowerCase()?window.addEventListener("message",this.onRequestUpdate_.bind(this,t),!1):console.error("WrappedAuthenticatorPort only supports message")},n.WrappedAuthenticatorPort_.prototype.onRequestUpdate_=function(e,t){var n=JSON.parse(t.data);n.intentURL,n.errorCode;var i=null;n.hasOwnProperty("data")&&(i=JSON.parse(n.data)),e({data:i})},n.WrappedAuthenticatorPort_.INTENT_URL_BASE_="intent:#Intent;action=com.google.android.apps.authenticator.AUTHENTICATE",n.WrappedIosPort_=function(){},n.WrappedIosPort_.prototype.postMessage=function(e){var t="u2f://auth?"+encodeURI(JSON.stringify(e));location.replace(t)},n.WrappedIosPort_.prototype.getPortType=function(){return"WrappedIosPort_"},n.WrappedIosPort_.prototype.addEventListener=function(e,t){"message"!==e.toLowerCase()&&console.error("WrappedIosPort only supports message")},n.getIframePort_=function(e){var t="chrome-extension://"+n.EXTENSION_ID,i=document.createElement("iframe");i.src=t+"/u2f-comms.html",i.setAttribute("style","display:none"),document.body.appendChild(i);var o=new MessageChannel,r=function(t){"ready"==t.data?(o.port1.removeEventListener("message",r),e(o.port1)):console.error('First event on iframe port was not "ready"')};o.port1.addEventListener("message",r),o.port1.start(),i.addEventListener("load",function(){i.contentWindow.postMessage("init",t,[o.port2])})},n.EXTENSION_TIMEOUT_SEC=30,n.port_=null,n.waitingForPort_=[],n.reqCounter_=0,n.callbackMap_={},n.getPortSingleton_=function(e){n.port_?e(n.port_):(0==n.waitingForPort_.length&&n.getMessagePort(function(e){for(n.port_=e,n.port_.addEventListener("message",n.responseHandler_);n.waitingForPort_.length;)n.waitingForPort_.shift()(n.port_)}),n.waitingForPort_.push(e))},n.responseHandler_=function(e){var t=e.data,i=t.requestId;if(!i||!n.callbackMap_[i]){console.error("Unknown or missing requestId in response.");return}var o=n.callbackMap_[i];delete n.callbackMap_[i],o(t.responseData)},n.sign=function(t,i,o,r,a){void 0===e?n.getApiVersion(function(s){console.log("Extension JS API Version: ",e=void 0===s.js_api_version?0:s.js_api_version),n.sendSignRequest(t,i,o,r,a)}):n.sendSignRequest(t,i,o,r,a)},n.sendSignRequest=function(e,t,i,o,r){n.getPortSingleton_(function(a){var s=++n.reqCounter_;n.callbackMap_[s]=o;var l=void 0!==r?r:n.EXTENSION_TIMEOUT_SEC,c=n.formatSignRequest_(e,t,i,l,s);a.postMessage(c)})},n.register=function(t,i,o,r,a){void 0===e?n.getApiVersion(function(s){console.log("Extension JS API Version: ",e=void 0===s.js_api_version?0:s.js_api_version),n.sendRegisterRequest
28(t,i,o,r,a)}):n.sendRegisterRequest(t,i,o,r,a)},n.sendRegisterRequest=function(e,t,i,o,r){n.getPortSingleton_(function(a){var s=++n.reqCounter_;n.callbackMap_[s]=o;var l=void 0!==r?r:n.EXTENSION_TIMEOUT_SEC,c=n.formatRegisterRequest_(e,i,t,l,s);a.postMessage(c)})},n.getApiVersion=function(e,t){n.getPortSingleton_(function(i){if(i.getPortType){var o;switch(i.getPortType()){case"WrappedIosPort_":case"WrappedAuthenticatorPort_":o=1.1;break;default:o=0}e({js_api_version:o});return}var r=++n.reqCounter_;n.callbackMap_[r]=e;var a={type:n.MessageTypes.U2F_GET_API_VERSION_REQUEST,timeoutSeconds:void 0!==t?t:n.EXTENSION_TIMEOUT_SEC,requestId:r};i.postMessage(a)})}}}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.