'},function(e,t,n){function i(e){function t(){var e;return o()?i.passwordTextbox.value()?null:I.CT_PWD_STR_Error_MissingPassword:(e=c||null,c=null,e)}function n(){u&&u.handleOnPasswordUpdate?u.handleOnPasswordUpdate(i.passwordTextbox.value(),l,i.onSubmitReady):i.onSubmitReady()}var i=this,r=!1,o=a.observable(!1),l=e.serverData,c=e.serverError,p=e.isInitialView,b=e.username,_=e.displayName||"",S=e.hipRequiredForUsername,y=e.passwordBrowserPrefill,w=e.availableCreds,T=e.defaultKmsiValue,C=e.userTenantBranding,k=e.sessions,x=e.callMetadata,I=l.str,A=l.B,E=l.T,D=l.n,P=l.f,R=l.urlSwitch,B=l.Al,L=l.b,N=l.K,M=l.fPOST_ForceSignin,O=!!l.urlBindProvider;i.onSwitchView=s.create(),i.onSubmitReady=s.create(),i.onResetPassword=s.create(),i.onRedirect=s.create(),i.passwordTextbox=new d(a.pureComputed(t),y),i.hipInterface=a.observable(),i.isKmsiChecked=a.observable(T),i.isRequestPending=a.observable(!1),i.unsafe_username=a.observable(),i.showTileLogo=a.observable(!1),i.isBackButtonVisible=a.observable(!1),i.secondaryButtonText=a.observable(),i.tenantBranding=null,i.unsafe_displayName=null,i.hasRemoteNgc=!1,i.availableCreds=w,i.allowPhoneDisambiguation=!1,i.unsafe_pageDescription=null,i.isInitialView=p,i.showHip=!1,i.showChangeUserLink=!1,i.callMetadata=x,i.saveSharedData=function(e){e.remoteNgcParams.notificationSent=!1},i.getState=function(){return{isKmsiChecked:i.isKmsiChecked()}},i.restoreState=function(e){e&&i.isKmsiChecked(e.isKmsiChecked)},i.setDefaultFocus=function(){i.passwordTextbox.focused(!0)},i.primaryButton_onClick=function(){var e=i.showHip&&i.hipInterface();if(!r&&!i.isRequestPending()){if(o(!0),e&&e.enableValidation(),null!==i.passwordTextbox.error())return void i.setDefaultFocus();if(e){if(null!==e.getError())return;r=!0,e.verify(function(){r=!1,n()})}else n()}},i.secondaryButton_onClick=function(){i.onSwitchView(g.Previous)},i.phoneDisambiguation_onClick=function(){i.onSwitchView(g.PhoneDisambiguation)},i.resetPassword_onClick=function(){i.onResetPassword(_)},i.selectAccount_onClick=function(){L&&R?i.onRedirect(R):k.length?i.onSwitchView(g.Tiles):i.onSwitchView(O?g.SelectProvider:g.Username)},i.hip_onHipLoad=function(){i.isRequestPending(!1)},i.skip_onClick=function(){u&&u.handleOnSkip&&(u.handleOnSkip(l),i.isRequestPending(!0))},i.switchToRemoteNGC_onClick=function(){i.onSwitchView(g.RemoteNGC)},i.skipZtd_onClick=function(){i.onRedirect(B)},i.privacy_onClick=function(){i.onSwitchView(g.ViewAgreement)},i.tileLogo_onLoad=function(){i.showTileLogo(!0),u&&u.logEvent&&u.logEvent("Identity.PasswordView.Branding.TileLogoLoaded")},i.desktopSso_onSuccess=function(){i.onSubmitReady()},function(){var e=h.htmlUnescape(_);if(i.unsafe_username(h.htmlUnescape(b)),i.unsafe_displayName=a.observable(e).extend({preventExternalWrite:null}),i.allowPhoneDisambiguation=!L&&!f.isEmailAddress(_)&&!f.isSkypeName(_)&&f.isPhoneNumber(_),i.hasRemoteNgc=a.utils.arrayIndexOf(w,v.RemoteNGC)!==-1,i.showHip=!!E&&b===S,i.showChangeUserLink=N&&(L&&R||p),i.tenantBranding=C,D&&p?i.unsafe_pageDescription=f.format(I.CT_PWD_STR_RemoteConnect_PasswordPage_Desc,D,e):A===m.ForceSignin||A===m.ForceSigninMobile||A===m.ForceSigninHost||M?i.unsafe_pageDescription=f.format(I.WF_STR_ForceSI_Info,e):I.CT_PWD_STR_EnterPassword_Desc&&(i.unsafe_pageDescription=f.format(I.CT_PWD_STR_EnterPassword_Desc,e)),i.showHip&&i.isRequestPending(!0),u&&(u.initializePasswordViewModel&&u.initializePasswordViewModel(i,l),u.handleBackButton&&u.handleBackButton(i.secondaryButton_onClick.bind(i)),u.logEvent)){var t=i.tenantBranding&&i.tenantBranding.BoilerPlateText?"1":"0";u.logEvent("Identity.PasswordView.Branding.HasBoilerPlateText",t);var n=i.tenantBranding&&i.tenantBranding.TileLogo?"1":"0";u.logEvent("Identity.PasswordView.Branding.HasTileLogo",n)}i.unsafe_displayName.subscribe(function(){setTimeout(function(){i.passwordTextbox.value(null)},0)}),p?u&&u.isBackButtonSupportedOnInitialView?u.isBackButtonSupportedOnInitialView(l,function(e,t){i.isBackButtonVisible(e),t&&i.secondaryButtonText(I.CT_PWD_STR_Cancel_Button)}):P&&i.isBackButtonVisible(!0):i.isBackButtonVisible(!0)}()}var a=n(1),r=n(4),o=n(7),s=n(8),l=n(5),c=n(193),d=n(192),u=null;n.e(1,function(){u=n(88)});var p=window,f=l.String,g=r.PaginatedState,m=r.LoginMode,v=r.CredentialType,h=o.Helper;c.applyExtenders(a),a.components.register("login-paginated-password-view",{viewModel:i,template:n(219),synchronous:!p.ServerData.A||o.Helper.isStackSizeGreaterThan(p.ServerData.A),enableExtensions:!0}),e.exports=i},function(e,t,n){e.exports="
'},function(e,t,n){function i(e){function t(){var e=new Image;e.onload=function(){c.userTileUrl(g)},e.src=g}function n(){return c.userTileUrl()?c.userTileUrl():l(i(f))}function i(e){var t=["aad","msa"];return(e<0||e>=t.length)&&(e=0),r.String.format("./picker_account_{0}.{1}",t[e],u?"svg":"png")}var c=this,u=!1,p=e.displayName,f=e.pawnIconId,g=e.userTileUrl,m=e.isBackButtonVisible,v=e.backButtonId,h=e.backButtonDescribedBy,b=e.focusOnBackButton||!1;c.onBackButtonClick=s.create(),c.unsafe_displayName=null,c.isBackButtonVisible=m,c.backButtonId=v,c.backButtonDescribedBy=h,c.focusOnBackButton=b,c.userTileUrl=a.observable(null),c.getUrl=a.pureComputed(function(){return g&&t(),n()}),c.backButton_onClick=function(){c.onBackButtonClick()},function(){c.unsafe_displayName=d.htmlUnescape(p),u=o.Helper.isSvgImgSupported()}()}var a=n(1),r=n(5),o=n(7),s=n(8),l=n(221),c=window,d=o.Helper;a.components.register("identity-banner-control",{viewModel:i,template:n(226),synchronous:!c.ServerData.A||o.Helper.isStackSizeGreaterThan(c.ServerData.A),enableExtensions:!0})},function(e,t,n){function i(e){return n(a(e))}function a(e){return r[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var r={"./picker_account_aad.png":222,"./picker_account_aad.svg":223,"./picker_account_msa.png":224,"./picker_account_msa.svg":225};i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=221},function(e,t,n){e.exports=n.p+"images/picker_account_aad.png?x=9dc88e7b0dfe417cfc59612381728698"},function(e,t,n){e.exports=n.p+"images/picker_account_aad.svg?x=9de70d1c5191d1852a0d5aac28b44a6c"},function(e,t,n){e.exports=n.p+"images/picker_account_msa.png?x=4e3619a499fd74c0c66d5215514b566a"},function(e,t,n){e.exports=n.p+"images/picker_account_msa.svg?x=2d8f86059be176833897099ee6ddedeb"},function(e,t,n){e.exports="
'},function(e,t,n){e.exports=n.p+"images/arrow_left_white.png?x=632400e90b83377004b48ee42f3e69c7"},function(e,t,n){e.exports=n.p+"images/arrow_left_white.svg?x=6721a930117e15d5f77b368b9a0d25f4"},function(e,t,n){e.exports=n.p+"images/arrow_left.png?x=e1bdb6aa0ac109300b2b356869560655"},function(e,t,n){e.exports=n.p+"images/arrow_left.svg?x=aa02fcd965bca78f4b2d246d36fd8426"},function(e,t,n){e.exports=n.p+"images/arrow_right_white.png?x=3e13a10ba4be8256c165b09b31de3dad"},function(e,t,n){e.exports=n.p+"images/arrow_right_white.svg?x=58b258cabbf0fb1b6ba3a61641035ed7"},function(e,t,n){e.exports=n.p+"images/arrow_right.png?x=74828ee35978854801233dc54e3f4555"},function(e,t,n){e.exports=n.p+"images/arrow_right.svg?x=81f17762e98a4c4299af28b719b8b09e"},,,,,,function(e,t,n){function i(e){var t=this,n=e.serverData,i=e.displayName,a=n.str,r=n.e,o=n.R;t.onSwitchView=l.create(),t.onRedirect=l.create(),t.saveSharedData=function(){},t.restoreState=function(){},t.getState=function(){},t.primaryButton_onClick=function(){var e=r,n=o;n?n.username=i:e=u.appendOrReplace(e,"username",encodeURIComponent(i)),e=u.appendOrReplace(e,"mnc","0"),t.onRedirect(e,n)},t.secondaryButton_onClick=function(){t.onSwitchView(d.Previous)},function(){i=p.trim(i),t.description=p.format(a.WF_STR_Confirm_Signup_Desc,i)}()}var a=n(1),r=n(4),o=n(7),s=n(5),l=n(8),c=window,d=r.PaginatedState,u=o.QueryString,p=s.String;a.components.register("login-confirm-signup-view",{viewModel:i,template:n(241),synchronous:!c.ServerData.A||o.Helper.isStackSizeGreaterThan(c.ServerData.A),enableExtensions:!0}),e.exports=i},function(e,t,n){e.exports="
'},function(e,t,n){function i(e){var t=this,n=e.serverData,i=n.e,a=n.R,r=n.am,o=n.str,s=e.displayName;t.onSwitchView=l.create(),t.onRedirect=l.create(),t.description=null,t.saveSharedData=function(){},t.restoreState=function(){},t.getState=function(){},t.primaryButton_onClick=function(){var e=u.appendOrReplace(r,"mn",encodeURIComponent(s));t.onRedirect(e)},t.secondaryButton_onClick=function(){t.onSwitchView(d.Previous)},t.signup_onClick=function(){var e=i,n=a;n?n.username=s:e=u.appendOrReplace(e,"username",encodeURIComponent(s)),t.onRedirect(e,n)},function(){s=p.trim(s),t.description=p.format(o.WF_STR_Confirm_Recover_Username_Desc,s)}()}var a=n(1),r=n(4),o=n(7),s=n(5),l=n(8),c=window,d=r.PaginatedState,u=o.QueryString,p=s.String;a.components.register("login-confirm-recover-username-view",{viewModel:i,template:n(243),synchronous:!c.ServerData.A||o.Helper.isStackSizeGreaterThan(c.ServerData.A),enableExtensions:!0}),e.exports=i},function(e,t,n){e.exports="
';
+},function(e,t,n){function i(e){function t(){var e;if(!d())return e=h||null,h=null,e;var t=o.codeTextbox.value();return t?l()?l():null:k.CT_OTC_STR_Error_EmptyCode}function n(){var e={Method:"EndAuth",SessionId:C,FlowToken:R(),Ctx:P,AdditionalAuthData:g.trim(o.codeTextbox.value())};o.sending(!0);var t=new u;t.Json(E,e,i,i,r.DefaultRequestTimeout)}function i(e){return o.sending(!1),e.FlowToken&&(R(e.FlowToken),o.onUpdateFlowToken(e.FlowToken)),e.Success?(D&&o.onPostUrlUpdate(D),void o.onSubmitReady()):(l(k.CT_OTC_STR_Error_CodeIncorrect),!1)}var o=this,l=a.observable(),d=a.observable(!1),f=e.serverData,h=e.serverError,b=e.isInitialView,_=e.username,S=e.displayName,y=e.defaultKmsiValue,w=e.availableCreds,T=e.flowToken,C=e.sessionIdentifier,k=f.str,x=f.b,I=f.urlSwitch,A=f.K,E=f.an,D=f.aN,P=f.c,R=a.observable(T).extend({flowTokenUpdate:f});o.onSwitchView=s.create(),o.onSubmitReady=s.create(),o.onRedirect=s.create(),o.onPostUrlUpdate=s.create(),o.onUpdateFlowToken=s.create(),o.codeTextbox=new c(a.pureComputed(t)),o.isKmsiChecked=a.observable(y),o.sending=a.observable(!1),o.unsafe_username=null,o.unsafe_displayName=null,o.pageDescription=null,o.isInitialView=b,o.showChangeUserLink=!1,o.isEmailDestination=!1,o.availableCreds=w,o.saveSharedData=function(e){e.flowToken=R()},o.getState=function(){return{isKmsiChecked:o.isKmsiChecked()}},o.restoreState=function(e){e&&o.isKmsiChecked(e.isKmsiChecked)},o.setDefaultFocus=function(){o.codeTextbox.focused(!0)},o.primaryButton_onClick=function(){if(d(!0),l(null),null!==o.codeTextbox.error())return void o.setDefaultFocus();if(E&&C){if(o.sending())return;n()}else o.onSubmitReady()},o.secondaryButton_onClick=function(){o.onSwitchView(m.Previous)},o.phoneDisambiguation_onClick=function(){o.onSwitchView(m.PhoneDisambiguation)},o.privacy_onClick=function(){o.onSwitchView(m.ViewAgreement)},o.tou_onClick=function(){o.onSwitchView(m.TermsOfUse)},function(){o.unsafe_displayName=v.htmlUnescape(S),o.unsafe_username=v.htmlUnescape(_),o.isEmailDestination=g.isEmailAddress(_),o.unsafe_pageDescription=g.format(k.CT_OTC_STR_EnterCode_Desc,o.unsafe_displayName),o.showChangeUserLink=x&&I&&A,p&&(p.initializeOTCViewModel&&p.initializeOTCViewModel(o,f),p.handleBackButton&&p.handleBackButton(o.secondaryButton_onClick.bind(o))),o.setDefaultFocus()}()}var a=n(1),r=n(4),o=n(7),s=n(8),l=n(5),c=n(192),d=n(193),u=n(83),p=null,f=window,g=l.String,m=r.PaginatedState,v=o.Helper;d.applyExtenders(a),a.components.register("login-paginated-otc-view",{viewModel:i,template:n(245),synchronous:!f.ServerData.A||o.Helper.isStackSizeGreaterThan(f.ServerData.A),enableExtensions:!0}),e.exports=i},function(e,t,n){e.exports="
"},function(e,t,n){function i(e){function t(e,t){var n=r.parse(t);s.headerText(n.header),s.contentHtml(n.html)}function n(){s.loadFailed(!0)}function i(){var e=u.addIfNotExist(f,"command",d),i={targetUrl:e,requestType:o.RequestType.Post,isAsync:!0,timeout:1e4,responseType:"",successCallback:t,failureCallback:n,timeoutCallback:n},a=new o.Handler(i);a.sendRequest()}var s=this,c=e.serverData,d=e.command;s.onSwitchView=l.create();var f=c.aj;s.headerText=a.observable(),s.contentHtml=a.observable(),s.loadFailed=a.observable(!1),s.saveSharedData=function(){},s.getState=function(){if(s.contentHtml()&&s.headerText()){var e={headerText:s.headerText(),contentHtml:s.contentHtml()};return e}return null},s.restoreState=function(e){e&&e.headerText&&e.headerText.contentHtml?(s.headerText(e.headerText),s.contentHtml(e.contentHtml)):i()},s.button_onClick=function(){s.onSwitchView(p.Previous)}}var a=n(1),r=n(6),o=n(84),s=n(7),l=n(8),c=n(4),d=window,u=s.QueryString,p=c.PaginatedState;a.components.register("login-learn-more-view",{viewModel:i,template:n(247),synchronous:!d.ServerData.A||s.Helper.isStackSizeGreaterThan(d.ServerData.A),enableExtensions:!0}),e.exports=i},function(e,t,n){e.exports="
'},function(e,t,n){function i(e){var t=this,n=e.serverData,i=n.urlMsaResetPassword,a=n.J;t.onSwitchView=o.create(),t.onRedirect=o.create(),t.getState=function(){},t.restoreState=function(){},t.button_onClick=function(){t.onSwitchView(c.Previous)},t.msaTile_onClick=function(){t.onRedirect(i)},t.aadTile_onClick=function(){t.onRedirect(a)}}var a=n(1),r=n(7),o=n(8),s=n(4),l=window,c=s.PaginatedState;a.components.register("login-reset-password-splitter-view",{viewModel:i,template:n(249),synchronous:!l.ServerData.A||r.Helper.isStackSizeGreaterThan(l.ServerData.A),enableExtensions:!0}),e.exports=i},function(e,t,n){e.exports="
'},function(e,t,n){function i(e){function t(){y.title(O.CT_RNGC_STR_Polling_Title),y.sessionPollingInterface().startPolling()}function n(){y.title(""),y.error(null),y.sessionPollingInterface().stopPolling(),y.isPushNotification()&&!D?o():t(),D=!1}function i(e){y.sessionPollingInterface().setPollingEndTime(),u(e),y.error()&&n()}function o(){if(!y.isRequestPending()){y.displaySign(null),y.isRequestPending(!0);var e={username:I,proofType:PROOF.Type.TOTPAuthenticatorV2,purpose:r.Purpose.RemoteNGC,flowToken:y.sessionIdentifier,unauthSessionId:F,lcid:U,successCallback:s,failureCallback:l};V&&(e.canaryFlowToken=q());var t=new d(e);t.sendRequest()}}function s(e){q(e.getFlowToken()),y.displaySign(e.getDisplaySign()),y.isRequestPending(!1),t()}function l(e){e&&q(e.getFlowToken()),y.isRequestPending(!1),y.title(O.CT_RNGC_STR_Error_Title_SendFail),y.error(O.CT_RNGC_STR_Error_SendFail)}function u(e){switch(e){case h.QrCode:g();break;case h.ListSessions:S();break;default:p()}}function p(){w(h.PushNotification)}function g(){w(h.QrCode),y.qrCodeGenerated(!0)}function S(){w(h.ListSessions)}var y=this,w=a.observable(),T="idSIButton9",C="slk",k=e.serverData,x=e.isInitialView,I=e.username,A=e.displayName,E=e.defaultKmsiValue,D=e.remoteNgcParams.notificationSent,P=e.remoteNgcParams.sessionIdentifier,R=e.remoteNgcParams.entropy||null,B=e.remoteNgcParams.defaultType||h.PushNotification,L=e.sessions,N=e.flowToken,M=e.availableCreds,O=k.str,U=k.Ad,F=k.O,V=k.Aa,H=k.sSessionIdentifierName||C,j=k.AV,W=!!k.urlBindProvider,G=k.iRemoteNgcPollingType||b.Image,q=a.observable(N).extend({flowTokenUpdate:k});y.onSwitchView=c.create(),y.onSubmitReady=c.create(),y.error=a.observable(null),y.isRequestPending=a.observable(!1),y.isKmsiChecked=a.observable(E),y.sessionPollingInterface=a.observable(null),y.displaySign=a.observable(R),y.title=a.observable(""),y.qrCodeGenerated=a.observable(!1),y.isBackButtonVisible=a.observable(!1),y.sessionIdentifier=P,y.sessionIdentifierName=H,y.unsafe_username=null,y.unsafe_displayName=null,y.isInitialView=x,y.defaultRemoteNgcType=B,y.pollingType=G,y.availableCreds=M,y.isPushNotification=a.pureComputed(function(){return w()===h.PushNotification}),y.isQrCode=a.pureComputed(function(){return w()===h.QrCode}),y.isListSessions=a.pureComputed(function(){return w()===h.ListSessions}),y.unsafe_pollingDescription=a.pureComputed(function(){return y.isPushNotification()?y.isRequestPending()?O.WF_STR_ProgressText:y.displaySign()?m.format(O.CT_RNGC_STR_Polling_PageDescription_UnfamiliarDevice,y.unsafe_displayName):m.format(O.CT_RNGC_STR_Polling_PageDescription,y.unsafe_displayName):y.isQrCode()?m.format(O.CT_RNGC_STR_QR_PageDescription,y.unsafe_displayName):y.isListSessions()?y.displaySign()?m.format(O.CT_RNGC_STR_LS_PageDescription_UnfamiliarDevice,y.unsafe_displayName):m.format(O.CT_RNGC_STR_LS_PageDescription,y.unsafe_displayName):void 0}),y.isPrimaryButtonVisible=a.pureComputed(function(){return j&&!!y.error()&&!y.isRequestPending()}),y.isSecondaryButtonVisible=a.pureComputed(function(){return j&&!x&&!y.isRequestPending()}),y.saveSharedData=function(e){e.flowToken=q()},y.getState=function(){var e={isKmsiChecked:y.isKmsiChecked(),error:y.error(),title:y.title(),remoteNgcType:w()};return e},y.restoreState=function(e){e&&(y.isKmsiChecked(e.isKmsiChecked),y.error(e.error),y.title(e.title),u(e.remoteNgcType),null===y.error()&&y.onSwitchView(v.Previous))},y.sessionPollingField_onLoad=function(){n()},y.sessionPollingField_onSessionTimeOut=function(){y.isPushNotification()?(y.title(O.CT_RNGC_STR_TimeOut_Title),y.error(m.format(O.CT_RNGC_STR_TimeOut_PageDescription,A))):y.isQrCode()?(y.title(O.CT_RNGC_STR_QR_Timeout_Title),y.error(m.format(O.CT_RNGC_STR_QR_Timeout_PageDescription,A))):y.isListSessions()&&(y.title(O.CT_RNGC_STR_LS_Timeout_Title),y.error(m.format(O.CT_RNGC_STR_LS_Timeout_PageDescription,A)))},y.sessionPollingField_onSessionDenied=function(){y.title(O.CT_RNGC_STR_Denied_Title),y.error(m.format(O.CT_RNGC_STR_Denied_PageDescription,A))},y.sessionPollingField_onSessionApproved=function(){y.title(""),y.isRequestPending(!0),y.onSubmitReady();var e=document.getElementById(T);e&&e.click()},y.primaryButton_onClick=function(){n()},y.secondaryButton_onClick=function(){y.onSwitchView(v.Previous)},y.switchToPolling_onClick=function(){i(y.defaultRemoteNgcType)},y.switchToQrCode_onClick=function(){i(h.QrCode)},y.switchToPassword_onClick=function(){y.onSwitchView(v.Password)},y.selectAccount_onClick=function(){L.length?y.onSwitchView(v.Tiles):y.onSwitchView(W?v.SelectProvider:v.Username)},function(){y.unsafe_displayName=_.htmlUnescape(A),y.unsafe_username=_.htmlUnescape(I),y.title(O.CT_RNGC_STR_Polling_Title),u(B),f&&(f.initializeRemoteNGCViewModel&&f.initializeRemoteNGCViewModel(y,k),f.handleBackButton&&f.handleBackButton(y.secondaryButton_onClick.bind(y))),x&&f&&f.isBackButtonSupportedOnInitialView?f.isBackButtonSupportedOnInitialView(k,function(e){y.isBackButtonVisible(e)}):y.isBackButtonVisible(!0)}()}var a=n(1),r=n(251),o=n(4),s=n(5),l=n(7),c=n(8),d=n(252),u=n(253),p=n(193),f=null,g=window,m=s.String,v=o.PaginatedState,h=o.RemoteNgcType,b=o.SessionPollingType,_=l.Helper;u.applyExtensions(a),p.applyExtenders(a),a.components.register("login-paginated-remotengc-view",{viewModel:i,template:n(255),synchronous:!g.ServerData.A||l.Helper.isStackSizeGreaterThan(g.ServerData.A),enableExtensions:!0}),e.exports=i},function(e,t,n){var i=n(84),a=n(7),r=i.Helper,o=3e4,s=t.Properties={State:"State",SessionLookupKey:"SessionLookupKey",DisplaySignForUI:"DisplaySignForUI",FlowToken:"FlowToken"},l=t.Purpose={Password:"eOTT_OneTimePassword",RemoteNGC:"eOTT_RemoteNGC",NoPassword:"eOTT_NoPasswordAccountLoginCode"},c=t.Channel={MobileSms:"SMS",EmailAddress:"Email",VoiceCall:"Voice",PushNotifications:"PushNotifications"},d=t.Type={EmailAddress:"AltEmail",EmailAddressEncrypted:"AltEmailE",Mobile:"MobileNum",MobileEncrypted:"MobileNumE",SessionApprover:"SAPId"};t.Event={OnSend:"otcsend",OnSendFail:"otcsendfailed",OnFlowExpired:"otcflowexpired"};var u=t.RequestParam={Username:"login",Purpose:"purpose",FlowToken:"flowtoken",CanaryFlowToken:"canaryFlowToken",Channel:"channel",UIMode:"UIMode",PhoneCountry:"MobileCountry",PhoneCountryCode:"MobileCC",UnauthSessionId:"uaid",ProofConfirmation:"ProofConfirmation"},p=t.Status={None:0,Error:200,Success:201,HIPError:202,FTError:203,InputError:204,DestinationError:205,Timeout:300},f=t.ProofTypeToChannel=function(e){var t=null;switch(e){case PROOF.Type.SMS:t=c.MobileSms;break;case PROOF.Type.Voice:t=c.VoiceCall;break;case PROOF.Type.Email:case PROOF.Type.AltEmail:t=c.EmailAddress;break;case PROOF.Type.TOTPAuthenticatorV2:t=c.PushNotifications}return t},g=t.ProofTypeToOtcType=function(e,t){var n=null;switch(e){case PROOF.Type.Voice:case PROOF.Type.SMS:n=t?d.MobileEncrypted:d.Mobile;break;case PROOF.Type.Email:case PROOF.Type.AltEmail:n=t?d.EmailAddressEncrypted:d.EmailAddress;break;case PROOF.Type.TOTPAuthenticatorV2:n=d.SessionApprover}return n};t.Proof=function(e){var t=this,n=e.username||"",i=e.flowToken||"",a=e.purpose||l.Password,r=e.proofType,o=e.proofData||"",s=e.isEncrypted,c=e.uiMode,d=e.lcid,p=e.phoneCountry||"",m=e.phoneCountryCode||"",v=e.unauthSessionId,h=e.proofConfirmation,b=e.canaryFlowToken;t[u.Username]=n,t[u.FlowToken]=i,t[u.Purpose]=a,t[u.Channel]=f(r),t[g(r,s)]=o,c&&(t[u.UIMode]=c),d&&(t.lcid=d),s||r!==PROOF.Type.SMS&&r!==PROOF.Type.Voice||(t[u.PhoneCountry]=p,t[u.PhoneCountryCode]=m),v&&(t[u.UnauthSessionId]=v),h&&(t[u.ProofConfirmation]=h),b&&(t[u.CanaryFlowToken]=b)},t.Request=function(e){function t(e){var t=!1,n=d.getResponseJson();m=n[s.FlowToken]||"",n[s.State]?(u=n[s.State],f=n[s.SessionLookupKey]||"",g=n[s.DisplaySignForUI]||"",t=u!==p.Success):(u=p.Error,f="",g="",t=!0),t?u===p.FTError?_(e,d):b(e,d):h(e)}function n(){m="",u=p.Error,f="",g="",b(d)}function l(){u=p.Timeout,f="",g="",m="",b(d)}var c="GetOneTimeCode.srf",d=this,u=p.None,f="",g="",m="",v=e.data,h=e.onSend,b=e.onSendFail,_=e.onFlowExpired,S=e.timeout||o;d.getOtcStatus=function(){return d.isComplete()?u:p.None},d.getSessionKey=function(){return d.isComplete()?f:""},d.getDisplaySign=function(){return d.isComplete()?g:""},d.getFlowToken=function(){return d.isComplete()?m:""},function(){var e=c,o=a.QueryString.extract("mkt");o&&(e=a.QueryString.addIfNotExist(e,"mkt",o));var s=a.QueryString.extract("lc");s&&(e=a.QueryString.addIfNotExist(e,"lc",s));var u={targetUrl:e,requestType:i.RequestType.Post,data:r.generateRequestString(v),isAsync:!0,timeout:S,successCallback:t,failureCallback:n,timeoutCallback:l};i.Handler.call(d,u)}()}},function(e,t,n){var i=n(251);e.exports=function(e){function t(){var e={username:s,proofData:l,proofType:c,purpose:d,flowToken:u,canaryFlowToken:p,isEncrypted:f,uiMode:g,lcid:m,unauthSessionId:v,proofConfirmation:h,phoneCountry:b,phoneCountryCode:_};return new i.Proof(e)}function n(){S&&S(o)}function a(){y&&y(o)}var r=this,o=null,s=e.username,l=e.proofData,c=e.proofType,d=e.purpose||i.Purpose.Password,u=e.flowToken,p=e.canaryFlowToken,f=e.isEncrypted!==!1,g=e.uiMode,m=e.lcid,v=e.unauthSessionId,h=e.proofConfirmation,b=e.phoneCountry,_=e.phoneCountryCode,S=e.successCallback,y=e.failureCallback;r.sendRequest=function(){var e={data:t(),onSend:n,onSendFail:a,onFlowExpired:a};o=new i.Request(e),o.sendRequest()}}},function(e,t,n){var i=n(254);t.applyExtensions=function(e){e.bindingHandlers.qrCode={init:function(t,n){var a=e.unwrap(n());new i(t.id,a)}}}},function(e,t,n){var i;!function(t,n){e.exports=n()}(this,function(){function e(e){this.mode=d.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t