|
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64 User : ServerPC ( 0) PHP Version : 8.2.12 Disable Function : NONE Directory : C:/ProgramData/NVIDIA Corporation/Downloader/latest/NvApp/osc/ |
Upload File : |
(self.webpackChunkigo=self.webpackChunkigo||[]).push([[792],{14709:(Ue,W,d)=>{"use strict";d.d(W,{oO:()=>Y,LV:()=>$,aT:()=>R,XR:()=>J});var n=d(94485),l=d(57258),p=d(43848),m=d(35146),_=d(91384),P=d(65706),v=d(83915),O=d(75707),S=d(14714),y=function(te){return function r(z){return!!z&&"object"==typeof z}(te)&&!function i(z){var te=Object.prototype.toString.call(z);return"[object RegExp]"===te||"[object Date]"===te||function g(z){return z.$$typeof===h}(z)}(te)},h="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function T(z,te){return!1!==te.clone&&te.isMergeableObject(z)?x(function c(z){return Array.isArray(z)?[]:{}}(z),z,te):z}function A(z,te,X){return z.concat(te).map(function(re){return T(re,X)})}function x(z,te,X){(X=X||{}).arrayMerge=X.arrayMerge||A,X.isMergeableObject=X.isMergeableObject||y;var re=Array.isArray(te);return re===Array.isArray(z)?re?X.arrayMerge(z,te,X):function L(z,te,X){var re={};return X.isMergeableObject(z)&&Object.keys(z).forEach(function(ge){re[ge]=T(z[ge],X)}),Object.keys(te).forEach(function(ge){re[ge]=X.isMergeableObject(te[ge])&&z[ge]?x(z[ge],te[ge],X):T(te[ge],X)}),re}(z,te,X):T(te,X)}x.all=function(te,X){if(!Array.isArray(te))throw new Error("first argument should be an array");return te.reduce(function(re,ge){return x(re,ge,X)},{})};const D=x;var F=d(3567),I=d(26875),k=d(58527);let R=(()=>{var z;class te{}return(z=te).\u0275fac=function(re){return new(re||z)},z.\u0275prov=k.jDH({token:z,factory:z.\u0275fac}),te})();const G="HMD";let Y=(()=>{var z;class te{constructor(re,ge,oe,xe){this.httpBackend=re,this.params=oe,this.injector=xe,this.configFetchedSubject=new l.m(1),this.getConfigFromHttp=()=>this.http.get(this.params.filePath).pipe((0,_.M)(ue=>(this.logger.info("Successfully read application config file",ue.build),ue),ue=>{this.logger.error(`Configuration file ${this.params.filePath} could not be read. Error: ${ue}`)})),this.getConfig=()=>{const ue=document.getElementsByTagName("gfn-app-config")[0],N=ue?.getAttribute("data-value");ue?.remove();const se=this.parseEncodedConfig(N);return se?(0,p.of)(se):this.getConfigFromHttp()},this.logger=ge.getLogger("app.config"),this.http=new n.Qq(this.httpBackend),F.zk.isBrowserLikePlatform()?(this.systemInfoService=this.injector.get(F.zW),this.browserStaticSystemInfo$=this.systemInfoService?this.systemInfoService.getSystemInfo([F.Lu.OSName,F.Lu.DeviceType,F.Lu.ProductVersion,F.Lu.BrowserName,F.Lu.SystemName,F.Lu.VendorName]).pipe((0,P.s)(1),(0,v.T)(ue=>{const N={OSName:ue.OSName,DeviceType:ue.DeviceType,BrowserName:ue.BrowserName,ProductVersion:ue.ProductVersion,SystemName:ue.SystemName};return F.zk.isVisionPro(ue)&&(N.OSName=F.t_.VisionOS,N.DeviceType=G),F.zk.isAndroidQuest(ue)&&(N.DeviceType=G),N})):(0,p.of)(null)):this.browserStaticSystemInfo$=(0,p.of)(null)}get configFetched$(){return this.configFetchedSubject.asObservable()}mergeRemoteOverridesFromGXT(re){try{return Object.keys(this.rcParamNameToConfigKeyPathMapping)?.forEach(ge=>{const oe=this.rcParamNameToConfigKeyPathMapping[ge],xe=this.remoteOverridesFromGXT?.params?.find(ue=>ue.name===ge);if(xe){let ue=xe.value;if((0,I.isObject)(ue)){const N=(0,I.get)(re,oe,{});ue.useRCConfigWithoutMerge||(ue=D(N,ue))}(0,I.set)(re,oe,ue)}}),re}catch(ge){return this.logger.info("error in mergeRemoteOverridesFromGXT",ge),re}}get(){const re=this.overrides||{},ge=this.piplLocalizationConfigOverrides||{};let oe={};"dev"===this.config?.build?.type&&(oe=this.variant||{});const xe=D(this.config,oe);let ue=xe;return this.remoteOverridesFromGXT&&(ue=this.mergeRemoteOverridesFromGXT(xe)),D(D(ue,ge),re)}setOverrides(re){this.overrides=re}setPiplLocalizationConfigOverrides(re){this.piplLocalizationConfigOverrides=re}setRemoteOverridesFromGXT(re,ge){this.rcParamNameToConfigKeyPathMapping=ge,this.remoteOverridesFromGXT=re}parseEncodedConfig(re){if(re&&""!==re.trim())try{return JSON.parse(atob(re))}catch{return null}return null}load(){return this.params.config?(this.logger.info("Initializing config with provided data"),this.config=this.params.config,(0,p.of)(this.config)):this.params.filePath?(this.logger.info(`Attempting to read application config file ${this.params.filePath}`),(0,m.yU)(this.getConfig(),this.browserStaticSystemInfo$).pipe((0,_.M)(re=>{this.config=re[0]},re=>{this.logger.error(`Some problem while executing getConfig function. Error: ${re}`)}),(0,_.M)(([re,ge])=>{if(this.config&&ge){const oe=ge.DeviceType,xe=ge.OSName,ue=ge.ProductVersion,N=ge.BrowserName;this.logger.info(`DeviceType: ${oe}, DeviceOSType: ${xe}, ProductVersion: ${ue}, SystemName: ${ge.SystemName}`);const ce=Me=>{Me&&(this.config=D(this.config,Me))};ce(this.get().browserConfig);const Z=oe===F.Y0.Phone||oe===F.Y0.Tablet,de=oe===F.Y0.TV,ae=oe===F.Y0.Console&&xe!==F.t_.SteamOS,pe=oe===G,_e=xe===F.t_.Android,ke=N===F.dZ.FIREFOX,De=xe===F.t_.MacOS&&N===F.dZ.SAFARI;switch(xe){case F.t_.IOS:ce(this.get().iOSConfig);break;case F.t_.IPadOS:ce(this.get().iPadOSConfig);break;case F.t_.Android:F.zk.isBrowserPlatform()?oe===F.Y0.Phone?ce(this.get().androidPhoneConfig):oe===F.Y0.Tablet&&ce(this.get().androidTabletConfig):ce(this.get().androidConfig);break;case F.t_.Shield:ce(this.get().androidConfig),ce(this.get().shieldConfig);break;case F.t_.Tizen:ce(this.get().tizenConfig);break;case F.t_.WebOS:ce(this.get().webOSConfig);break;case F.t_.SteamOS:ce(this.get().steamOSConfig)}Z?ce(this.get().mobileConfig):de?F.zk.isBrowserPlatform()&&_e?ce(this.get().androidTvConfig):ce(this.get().tvConfig):ae?ce(this.get().consoleConfig):pe&&ce(this.get().hmdConfig),De&&ce(this.get().macSafariConfig),ke&&ce(this.get().firefoxConfig),ue&&(this.config=D(this.config,{product:{version:ue}}))}}),(0,O.ZZ)(re=>this.loadVariant(re[0])),(0,v.T)(()=>{const re=this.get();return this.logger.info("appConfig loaded"),this.configFetchedSubject.next(re),re}))):(this.logger.error("No valid data source specified in the AppConfigParameters"),(0,p.of)(void 0))}loadVariant(re){const ge=re?.build?.variant,oe=re?.build?.type;if(!ge||"dev"!==oe)return(0,p.of)(re);const xe=this.params.filePath.replace(/\.[^/\\.]+$/,".")+ge+"."+this.params.filePath.split(".").pop();return this.http.get(xe).pipe((0,_.M)(ue=>{this.logger.info(`Successfully read ${ge} variant config`),this.variant=ue}),(0,S.W)(()=>(0,p.of)(re)))}}return(z=te).\u0275fac=function(re){return new(re||z)(k.KVO(n.JV),k.KVO(F.J6),k.KVO(R),k.KVO(k.zZn))},z.\u0275prov=k.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),te})();const $={provide:k.hnV,useFactory:function K(z){return()=>z.load().toPromise()},multi:!0,deps:[Y]};function ee(z){return z.get()}function J(z){return{provide:z,useFactory:ee,deps:[Y]}}},44968:(Ue,W,d)=>{"use strict";d.d(W,{lM:()=>g,pu:()=>y});var a,h,n=d(36877),l=d(43848),p=d(35146),m=d(17053),_=d(14714),P=d(26875),v=d(74931),O=v.Or.Common.Applicationinfo.ApplicationLifetimeEventType,S=v.Or.Common.Applicationinfo.ShutdownReason,y=function(c){return c.ApplicationRequestedExit="APPLICATION_REQUESTED_EXIT",c.IpcRequestedExit="IPC_REQUESTED_EXIT",c}(y||{}),r=d(58527),i=d(3567);class g{get isAppShuttingDown(){return this.isShuttingDown}constructor(T,A){this.bridgeService=A,this.isShuttingDown=!1,this.systemShutdownReasons=[S.UserClosedWindow,S.UserQuitWithShortcut,S.UserLoggedOut,S.Relaunch],this.unInterruptableShutdownReasons=[S.UserLoggedOut,y.IpcRequestedExit,S.SelfUpdate,S.Relaunch,S.BrowserExit,S.ForceShutdown],this.logger=T.getLogger("libraries/application-lifetime.service"),this.logger.info("applicationLifetimeService created"),this.preSleepFunctions=new Map,this.onShutdownRequestedFunctions=new Map,this.onShutdownFunctions=new Map,A.executeCommand(v.Ts.Common.Applicationinfo.RegisterAppLifetimeEventsCallback).subscribe(L=>{this.handleBridgeEvent(L)}),(0,n.R)(window,"unload").subscribe(L=>{})}sleepApplication(){this.preSleepFunctions.size>0?(this.logger.info("executing pre-sleep functions"),this.preSleepFunctions.forEach(T=>{try{T()}catch(A){this.logger.error("Caught error while executing pre sleep function: ",A)}})):this.logger.info("no pre-sleep work")}shutdownApplication(T){this.systemShutdownReasons.some(A=>A===T)?this.logger.error("Cannot supply a system reason for shutting down from the application layer"):this.performShutdown(T)}addWorkOnSleep(T){return this.addWork(this.preSleepFunctions,T)}addWorkOnShutdownRequested(T){return this.addWork(this.onShutdownRequestedFunctions,T)}addWorkOnShutdown(T){return this.addWork(this.onShutdownFunctions,T)}removeWork(T){if(this.preSleepFunctions.has(T))this.preSleepFunctions.delete(T);else if(this.onShutdownFunctions.has(T))this.onShutdownFunctions.delete(T);else{if(!this.onShutdownRequestedFunctions.has(T)){const A=`Id (${T}) not contained in any registered work map, cannot remove`;throw this.logger.error(A),new Error(A)}this.onShutdownRequestedFunctions.delete(T)}}enumHasValue(T,A){return Object.values(T).includes(A)}handleBridgeEvent(T){if((0,P.isNil)(T)||(0,P.isNil)(T.type))this.logger.error("Nil event or event.type raised from bridge: ",T);else if(this.enumHasValue(O,T.type))if(T.type===O.SystemSuspend)this.sleepApplication();else{if(!this.enumHasValue(y,T.reason)&&!this.enumHasValue(S,T.reason))return void this.logger.info("Shutdown reason",T.reason,"not recognized, not handling");this.performShutdown(T.reason)}else this.logger.info("Event type",T.type,"not recognized, not handling")}isShutdownReasonInterruptable(T){return-1===this.unInterruptableShutdownReasons.indexOf(T)}addWork(T,A){const L=new g.RegisteredApplicationLifetimeHandle(this),x=L.getId();if(this.onShutdownFunctions.has(x)||this.onShutdownRequestedFunctions.has(x)||this.preSleepFunctions.has(x))throw new Error("Dupliate work id found");return T.set(x,A),L}closeWindowIfNeeded(T){this.isShuttingDown=!1,T!==S.BrowserExit&&this.bridgeService.executeCommand(v.Ts.Common.Windowcontrol.Close).subscribe(()=>{})}combineAndExecuteFunctions(T){const A=[];return T.forEach(L=>{let x;try{x=L().pipe((0,_.W)(V=>(this.logger.error("Failed to execute scheduled func: ",V),(0,l.of)(void 0))))}catch(V){this.logger.error(`Caught error ${V} from registered handler, not blocking shutdown`),x=(0,l.of)(void 0)}A.push(x)}),(0,p.yU)(...A)}performShutdown(T){if(this.isShuttingDown)return void this.logger.info("performShutdown already called, ignoring");if(this.isShuttingDown=!0,0===this.onShutdownRequestedFunctions.size&&0===this.onShutdownFunctions.size)return this.logger.info("no pre-shutdown work, closing immediately"),void this.closeWindowIfNeeded(T);const A=this.isShutdownReasonInterruptable(T);this.logger.info("starting pre-shutdown promises. shutdown ",A?"is":"isn't"," interruptable"),new m.c(x=>{A&&this.onShutdownRequestedFunctions.size>0?this.combineAndExecuteFunctions(this.onShutdownRequestedFunctions).subscribe({next:D=>{x.next(D.some(F=>!0===F)),x.complete()},error:D=>{this.logger.error("OnShutdown work, error: ",D),x.next(!1),x.complete()}}):(x.next(!1),x.complete())}).subscribe({next:x=>{x?(this.logger.info("shutdown was interrupted during onShutdownRequested"),this.isShuttingDown=!1):0===this.onShutdownFunctions.size?(this.logger.info("no OnShutdown work, closing"),this.closeWindowIfNeeded(T)):this.combineAndExecuteFunctions(this.onShutdownFunctions).subscribe({next:function(D){this.logger.info("OnShutdown work completed, closing"),this.closeWindowIfNeeded(T)}.bind(this),error:function(D){this.logger.error("OnShutdown work, error: ",D),this.closeWindowIfNeeded(T)}.bind(this)})}})}}(a=g).RegisteredApplicationLifetimeHandle=((h=class{constructor(c){this.parent=c,this.handleId=a.RegisteredApplicationLifetimeHandle.nextHandleId++}getId(){return this.handleId}remove(){this.parent.removeWork(this.handleId)}}).nextHandleId=0,h),a.\u0275fac=function(T){return new(T||a)(r.KVO(i.J6),r.KVO(i.NZ))},a.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})},45628:(Ue,W,d)=>{"use strict";d.d(W,{U:()=>p});const p={ReadTicket:{legacyCommand:"QUERY_READ_UPDATE_TICKET",system:"CrimsonNative",module:"Update",method:"ReadTicket",persistent:!1},GfnUpdate:{legacyCommand:"QUERY_GFN_UPDATE_APP",system:"CrimsonNative",module:"Update",method:"GfnUpdate",persistent:!1}}},25882:(Ue,W,d)=>{"use strict";d.d(W,{T:()=>Yt});const Yt={Common:{Applicationcontrol:{DeleteCookies:{legacyCommand:"QUERY_DELETE_COOKIES",system:"CrimsonNative",module:"ApplicationControl",method:"DeleteCookies",persistent:!1},SetTaskbarProgress:{legacyCommand:"QUERY_WIN_TASKBAR_PROGRESS",system:"CrimsonNative",module:"ApplicationControl",method:"SetTaskbarProgress",persistent:!1},LoadStringTable:{legacyCommand:"QUERY_LOAD_STRING_TABLE",system:"CrimsonNative",module:"ApplicationControl",method:"LoadStringTable",persistent:!1},ReadConfig:{legacyCommand:"QUERY_READ_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"ReadConfig",persistent:!1},WriteConfig:{legacyCommand:"QUERY_WRITE_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"WriteConfig",persistent:!1},ReadGenericConfig:{legacyCommand:"QUERY_READ_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"ReadGenericConfig",persistent:!1},WriteGenericConfig:{legacyCommand:"QUERY_WRITE_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"WriteGenericConfig",persistent:!1},RemoveFromGenericConfig:{legacyCommand:"QUERY_REMOVE_FROM_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"RemoveFromGenericConfig",persistent:!1},AllowSetForegroundWindow:{legacyCommand:"QUERY_WIN_ALLOW_SET_FOREGROUND",system:"CrimsonNative",module:"ApplicationControl",method:"AllowSetForegroundWindow",persistent:!1},CopyToClipboard:{legacyCommand:"QUERY_WIN_COPY_TO_CLIPBOARD",system:"CrimsonNative",module:"ApplicationControl",method:"CopyToClipboard",persistent:!1},Restart:{legacyCommand:"QUERY_RESTART_APP",system:"CrimsonNative",module:"ApplicationControl",method:"Restart",persistent:!1},RestartBackgroundAgent:{legacyCommand:"QUERY_RESTART_BGA_APP",system:"CrimsonNative",module:"ApplicationControl",method:"RestartBackgroundAgent",persistent:!1},IsCefGpuModeSupported:{legacyCommand:"QUERY_IS_CEF_GPU_MODE_SUPPORTED",system:"CrimsonNative",module:"ApplicationControl",method:"IsCefGpuModeSupported",persistent:!1},RequestLastInstallerStatus:{legacyCommand:"QUERY_LAST_INSTALLER_STATUS",system:"CrimsonNative",module:"ApplicationControl",method:"RequestLastInstallerStatus",persistent:!1},ModulesActiveNotification:{legacyCommand:"QUERY_IPC_MODULES_ACTIVE_NOTIFICATION",system:"CrimsonNative",module:"ApplicationControl",method:"ModulesActiveNotification",persistent:!0}},Applicationinfo:{IsApplicationRunning:{legacyCommand:"QUERY_IS_APPLICATION_RUNNING",system:"CrimsonNative",module:"ApplicationInfo",method:"IsApplicationRunning",persistent:!1},IsApplicationInstalled:{legacyCommand:"QUERY_IS_APPLICATION_INSTALLED",system:"CrimsonNative",module:"ApplicationInfo",method:"IsApplicationInstalled",persistent:!1},GetIsUIRefreshed:{legacyCommand:"QUERY_IS_UI_REFRESHED",system:"CrimsonNative",module:"ApplicationInfo",method:"GetIsUIRefreshed",persistent:!1},RegisterAppLifetimeEventsCallback:{legacyCommand:"QUERY_REGISTER_APPLICATION_LIFETIME_EVENTS_CALLBACK",system:"CrimsonNative",module:"ApplicationInfo",method:"RegisterAppLifetimeEventsCallback",persistent:!0},ListenToLoadEvents:{legacyCommand:"QUERY_LISTEN_TO_LOAD_EVENTS",system:"CrimsonNative",module:"ApplicationInfo",method:"ListenToLoadEvents",persistent:!0},OpenFileDialog:{legacyCommand:"QUERY_WIN_DIR_INFO",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenFileDialog",persistent:!1},OpenDirectoryBrowser:{legacyCommand:"QUERY_BROWSE_DIRECTORY",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenDirectoryBrowser",persistent:!1},OpenSystemSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenSystemSetting",persistent:!1},GetApplicationTimeInfo:{legacyCommand:"QUERY_TIME_INFO",system:"CrimsonNative",module:"ApplicationInfo",method:"GetApplicationTimeInfo",persistent:!1}},Backgroundprocess:{},Bot:{ProcessIntent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Chatbot",method:"ProcessIntent",persistent:!1}},Clientnotification:{ShowClientNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"ShowClientNotifications",persistent:!1},ClearNotificationsQueue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"ClearNotificationsQueue",persistent:!1},DeleteNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"DeleteNotification",persistent:!1}},Companiontool:{Load:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Load",persistent:!1},Save:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Save",persistent:!1},Reset:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Reset",persistent:!1},Run_Log_Collector:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Run_Log_Collector",persistent:!1}},Connectionstate:{KeyboardAndMouseConnected:{legacyCommand:"QUERY_KEYBOARD_MOUSE_CONNECTED",system:"CrimsonNative",module:"ConnectionState",method:"KeyboardAndMouseConnected",persistent:!1}},Consent:{setCurrent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"setCurrent",persistent:!1},setAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"setAccepted",persistent:!1},getAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"getAccepted",persistent:!1}},Desktopnotification:{ShowDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"ShowDesktopNotification",persistent:!1},ClearDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"ClearDesktopNotification",persistent:!1},IsValidDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"IsValidDesktopNotification",persistent:!1},DesktopNotificationsAllowed:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationsAllowed",persistent:!1},DesktopNotificationActivated:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationActivated",persistent:!0},DesktopNotificationDismissed:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationDismissed",persistent:!0}},Diagnostics:{SendExceptionInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Diagnostics",method:"SendExceptionInfo",persistent:!1},SendUserFeedbackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Diagnostics",method:"SendUserFeedbackInfo",persistent:!1}},Discord:{UpdatePresence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Discord",method:"UpdatePresence",persistent:!1},ClearPresence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Discord",method:"ClearPresence",persistent:!1}},Downloader:{GetFirstBootTimeAfterInstall:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetFirstBootTimeAfterInstall",persistent:!1},GetMaxDaysBetweenReleases:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetMaxDaysBetweenReleases",persistent:!1},CheckForUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"CheckForUpdate",persistent:!1},GetLatestUpdateCheckTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetLatestUpdateCheckTime",persistent:!1},GetTaskDownloadStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetTaskDownloadStatus",persistent:!1},GetDownloadStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetDownloadStatus",persistent:!1},StartDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartDownload",persistent:!1},StartDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartDownloadAndPostProcess",persistent:!1},ScheduleDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ScheduleDownloadAndPostProcess",persistent:!1},PauseDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"PauseDownload",persistent:!1},ResumeDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ResumeDownload",persistent:!1},ResumeDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ResumeDownloadAndPostProcess",persistent:!1},StopDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StopDownload",persistent:!1},GetPostProcessingStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetPostProcessingStatus",persistent:!1},StartPostProcessing:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartPostProcessing",persistent:!1},TriggerAutoUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"TriggerAutoUpdate",persistent:!1},RegisterCheckForUpdateProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterCheckForUpdateProgress",persistent:!0},RegisterDownloadProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterDownloadProgress",persistent:!0},RegisterPostProcessingProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterPostProcessingProgress",persistent:!0},RegisterAutoUpdateProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterAutoUpdateProgress",persistent:!0},CreateProfileFromSourceProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"CreateProfileFromSourceProfile",persistent:!1},GetUpdateChannel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetUpdateChannel",persistent:!1},SetUpdateChannel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"SetUpdateChannel",persistent:!1}},Gallery:{GalleryNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryNotifications",persistent:!0},MontageNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MontageNotification",persistent:!0},PathChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"PathChangeNotification",persistent:!0},TempFolderChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"TempFolderChangeNotification",persistent:!0},GalleryCapStateChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryCapStateChangeNotification",persistent:!0},GalleryUpdatedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryUpdatedNotification",persistent:!0},GetFolderListing:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFolderListing",persistent:!1},GetAppStats:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetAppStats",persistent:!1},GetAppUGC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetAppUGC",persistent:!1},RemoveGalleryItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"RemoveGalleryItem",persistent:!1},EnumerateDrives:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EnumerateDrives",persistent:!1},GetFileMetadata:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFileMetadata",persistent:!1},GetEventData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetEventData",persistent:!1},GetThumbnail:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetThumbnail",persistent:!1},GetFolderCRC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFolderCRC",persistent:!1},GetImageFileDimensions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetImageFileDimensions",persistent:!1},CopyFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CopyFile",persistent:!1},MoveFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MoveFile",persistent:!1},IsDirectoryWriteable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"IsDirectoryWriteable",persistent:!1},GetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetSettings",persistent:!1},SetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"SetSettings",persistent:!1},GetDriveInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetDriveInfo",persistent:!1},CancelPathUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CancelPathUpdate",persistent:!1},GetRecentUGC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetRecentUGC",persistent:!1},CheckDiskSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CheckDiskSpace",persistent:!1},EnqueuePendingHighlight:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EnqueuePendingHighlight",persistent:!1},OpenHighlightsGroupSummary:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"OpenHighlightsGroupSummary",persistent:!1},GetHighlightsCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetHighlightsCount",persistent:!1},DeleteGroupHighlights:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"DeleteGroupHighlights",persistent:!1},WriteEncryptedBitmap:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"WriteEncryptedBitmap",persistent:!1},TranscodeMediaFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"TranscodeMediaFile",persistent:!1},CreateMontage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CreateMontage",persistent:!1},CreateMontageFromRecipe:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CreateMontageFromRecipe",persistent:!1},CancelMontage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CancelMontage",persistent:!1},UpdateMontageProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"UpdateMontageProgress",persistent:!1},Trim:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"Trim",persistent:!1},AddMeme:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"AddMeme",persistent:!1},EngraveMP4:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EngraveMP4",persistent:!1},DeletePreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"DeletePreview",persistent:!1},PreviewPathInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"PreviewPathInfo",persistent:!1},GetMontageCloudConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetMontageCloudConfig",persistent:!1},MigrateHighlightsTracker:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MigrateHighlightsTracker",persistent:!1}},Gameshare:{CreateSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"CreateSession",persistent:!1},DeleteSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"DeleteSession",persistent:!1},ModifySession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"ModifySession",persistent:!1},ConfigureControllerMapping:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"ConfigureControllerMapping",persistent:!1},GetFullScreenProcessId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"GetFullScreenProcessId",persistent:!1},CreateSessionNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"CreateSessionNotification",persistent:!0},SessionStatusUpdateNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"SessionStatusUpdateNotification",persistent:!0},AudioDeviceChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"AudioDeviceChangeNotification",persistent:!0}},Gamestream:{GetServerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetServerStatus",persistent:!1},SetServerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"SetServerStatus",persistent:!1},GetPairedDevices:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetPairedDevices",persistent:!1},RemovePairedDevices:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RemovePairedDevices",persistent:!1},RegisterPairedDeviceNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RegisterPairedDeviceNotification",persistent:!0},RegisterShieldDeviceNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RegisterShieldDeviceNotification",persistent:!0},RespondToUpdateNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RespondToUpdateNotification",persistent:!1},GetAppsList:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetAppsList",persistent:!1},AddAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"AddAppCollectorItem",persistent:!1},RemoveAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RemoveAppCollectorItem",persistent:!1},EditAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"EditAppCollectorItem",persistent:!1}},Httpserver:{StartHttpServer:{legacyCommand:"QUERY_HTTPSERVER_START",system:"CrimsonNative",module:"Httpserver",method:"StartHttpServer",persistent:!0},StopHttpServer:{legacyCommand:"QUERY_HTTPSERVER_STOP",system:"CrimsonNative",module:"Httpserver",method:"StopHttpServer",persistent:!1},SendRedirectResponse:{legacyCommand:"QUERY_HTTPSERVER_REDIRECTRESPONSE",system:"CrimsonNative",module:"Httpserver",method:"SendRedirectResponse",persistent:!1}},Ipc:{Pop:{legacyCommand:"QUERY_IPC_POP_MESSAGE",system:"CrimsonNative",module:"Ipc",method:"Pop",persistent:!1},Push:{legacyCommand:"QUERY_IPC_PUSH_MESSAGE",system:"CrimsonNative",module:"Ipc",method:"Push",persistent:!1},LoginStatus:{legacyCommand:"QUERY_GFN_LOGIN_STATUS",system:"CrimsonNative",module:"Ipc",method:"LoginStatus",persistent:!1}},Jarvis:{MonitorLoginStatus:{legacyCommand:"JARVIS_MONITOR_LOGIN_STATUS",system:"CrimsonNative",module:"Jarvis",method:"MonitorLoginStatus",persistent:!0},Login:{legacyCommand:"JARVIS_LOGIN",system:"CrimsonNative",module:"Jarvis",method:"Login",persistent:!1},Logout:{legacyCommand:"JARVIS_LOGOUT",system:"CrimsonNative",module:"Jarvis",method:"Logout",persistent:!1},QueryToken:{legacyCommand:"QUERY_TOKEN",system:"CrimsonNative",module:"Jarvis",method:"QueryToken",persistent:!1}},Loginid:{AddAppInfoToPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"AddAppInfoToPersistence",persistent:!1},DeleteAppInfoFromPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"DeleteAppInfoFromPersistence",persistent:!1},GetAllAppInfoFromPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"GetAllAppInfoFromPersistence",persistent:!1}},Nativeauth:{syncSessionData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"syncSessionData",persistent:!1},initiateLogIn:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogIn",persistent:!1},initiateLogOut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogOut",persistent:!1},initiateLogInALS:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogInALS",persistent:!1}},Nvaccount:{GetEULAAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetEULAAccepted",persistent:!1},SetEULAAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"SetEULAAccepted",persistent:!1},OnLogin:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"OnLogin",persistent:!1},OnLogout:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"OnLogout",persistent:!1},GetUserAccount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserAccount",persistent:!1},GetIdToken:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetIdToken",persistent:!1},RefreshConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"RefreshConsent",persistent:!1},GetUserId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserId",persistent:!1},UserIdChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"UserIdChangedNotification",persistent:!0},UserConsentChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"UserConsentChangedNotification",persistent:!0},GetPrivacySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetPrivacySettings",persistent:!1},SetPrivacySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"SetPrivacySettings",persistent:!1},GetPrivacySettingsConsentInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetPrivacySettingsConsentInformation",persistent:!1},PrivacySettingsConsentInformationChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"PrivacySettingsConsentInformationChangedNotification",persistent:!0},PrivacySettingsChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"PrivacySettingsChangedNotification",persistent:!0},GetUserAccountAndDeviceConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserAccountAndDeviceConsent",persistent:!1}},Nvcamera:{NvCameraResponseNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraResponseNotification",persistent:!0},NvCameraFilterResponseNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraFilterResponseNotification",persistent:!0},NvCameraUIControlNotificationData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraUIControlNotificationData",persistent:!0},NgxAIUpResNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NgxAIUpResNotifications",persistent:!0},SetAnselEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetAnselEnable",persistent:!1},GetFeatureSet:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFeatureSet",persistent:!1},GetProcessInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetProcessInfo",persistent:!1},GetNvCameraConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetNvCameraConfig",persistent:!1},GetVersion:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetVersion",persistent:!1},AnselUIReady:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"AnselUIReady",persistent:!1},GetAnselCaptureTypes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetAnselCaptureTypes",persistent:!1},GetAnselEnabledStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetAnselEnabledStatus",persistent:!1},SetLanguage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetLanguage",persistent:!1},SetNvCameraConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetNvCameraConfig",persistent:!1},CaptureScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CaptureScreenshot",persistent:!1},GetCaptureResolutions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCaptureResolutions",persistent:!1},SetFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilter",persistent:!1},GetCurrentFilterInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCurrentFilterInfo",persistent:!1},ResetFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"ResetFilter",persistent:!1},InsertFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"InsertFilter",persistent:!1},RemoveFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"RemoveFilter",persistent:!1},MoveFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"MoveFilter",persistent:!1},GetFilterStackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFilterStackInfo",persistent:!1},ResetFilterStack:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"ResetFilterStack",persistent:!1},SetFilterAttribute:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilterAttribute",persistent:!1},SetFilterAndAttributes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilterAndAttributes",persistent:!1},CancelCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CancelCapture",persistent:!1},SetCameraControlFovRoll:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCameraControlFovRoll",persistent:!1},GetCameraControlFov:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCameraControlFov",persistent:!1},GetCameraRangeFovRoll:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCameraRangeFovRoll",persistent:!1},SetCameraGridOfThirds:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCameraGridOfThirds",persistent:!1},SetAnselRedirection:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetAnselRedirection",persistent:!1},SendEnableRedirectionToSP:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SendEnableRedirectionToSP",persistent:!0},MouseEventToNvcamera:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"MouseEventToNvcamera",persistent:!1},KeyboardEventToNvcamera:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"KeyboardEventToNvcamera",persistent:!1},GetFreestyleWhitelisted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFreestyleWhitelisted",persistent:!1},GetNvCameraOnBusStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetNvCameraOnBusStatus",persistent:!1},StartNgxAIUpRes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"StartNgxAIUpRes",persistent:!1},CancelNgxAIUpRes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CancelNgxAIUpRes",persistent:!1},AnselShotSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"AnselShotSavedNotification",persistent:!0},SetCMSInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCMSInfo",persistent:!1}},Nvdriverdiagnostics:{AddNocatFrameEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvDriverDiagnostics",method:"AddNocatFrameEvent",persistent:!1}},Nvlocalizedconfig:{LocalizationDataChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvLocalizedConfig",method:"LocalizationDataChangeNotification",persistent:!0},GetLocalizationData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvLocalizedConfig",method:"GetLocalizationData",persistent:!1}},Overrides:{getConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"getConfig",persistent:!1},launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"launch",persistent:!1},apply:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"apply",persistent:!1},reset:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"reset",persistent:!1},download:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"download",persistent:!1}},Sharedstorage:{Read:{legacyCommand:"QUERY_READ_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Read",persistent:!1},Write:{legacyCommand:"QUERY_WRITE_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Write",persistent:!1},Remove:{legacyCommand:"QUERY_REMOVE_FROM_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Remove",persistent:!1},Cache:{legacyCommand:"QUERY_CACHE_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Cache",persistent:!1}},Subscriptioninfo:{InitializeSubscriptionProductSku:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SubscriptionInfo",method:"InitializeSubscriptionProductSku",persistent:!1}},Survey:{Launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Survey",method:"Launch",persistent:!1}},Systeminfo:{GetSystemInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetSystemInfo",persistent:!1},GetClientHeadersInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetClientHeadersInfo",persistent:!1},GetDeviceId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetDeviceId",persistent:!1},GetBrowserInfo:{legacyCommand:"QUERY_BROWSER_INFO",system:"CrimsonNative",module:"SystemInfo",method:"GetBrowserInfo",persistent:!1},GetStreamingSupportInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetStreamingSupportInfo",persistent:!1},DNSLookup:{legacyCommand:"QUERY_DNS",system:"CrimsonNative",module:"SystemInfo",method:"DNSLookup",persistent:!1}},Telemetry:{SendGridServerAnalyticsEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Telemetry",method:"SendGridServerAnalyticsEvent",persistent:!1}},Update:d(45628).U,Windowcontrol:{Maximize:{legacyCommand:"QUERY_WIN_MAXIMIZE",system:"CrimsonNative",module:"WindowControl",method:"Maximize",persistent:!1},Minimize:{legacyCommand:"QUERY_WIN_MINIMIZE",system:"CrimsonNative",module:"WindowControl",method:"Minimize",persistent:!1},Restore:{legacyCommand:"QUERY_WIN_RESTORE",system:"CrimsonNative",module:"WindowControl",method:"Restore",persistent:!1},RestoreFromFullScreen:{legacyCommand:"QUERY_WIN_RESTORE_FROM_FULLSCREEN",system:"CrimsonNative",module:"WindowControl",method:"RestoreFromFullScreen",persistent:!1},Resize:{legacyCommand:"QUERY_WIN_RECT",system:"CrimsonNative",module:"WindowControl",method:"Resize",persistent:!1},Close:{legacyCommand:"QUERY_WIN_CLOSE",system:"CrimsonNative",module:"WindowControl",method:"Close",persistent:!1},Focus:{legacyCommand:"QUERY_WIN_FOCUS",system:"CrimsonNative",module:"WindowControl",method:"Focus",persistent:!1},RequestUserAttention:{legacyCommand:"QUERY_REQUEST_USER_ATTENTION",system:"CrimsonNative",module:"WindowControl",method:"RequestUserAttention",persistent:!1},EnableCloseButton:{legacyCommand:"QUERY_WIN_ALLOW_CLOSE",system:"CrimsonNative",module:"WindowControl",method:"EnableCloseButton",persistent:!1}},Windowevents:{RegisterWindowEventsCallback:{legacyCommand:"QUERY_REGISTER_WINDOW_EVENTS_CALLBACK",system:"CrimsonNative",module:"WindowEvents",method:"RegisterWindowEventsCallback",persistent:!0}}},Gfe:{Driverinstall:{InstallAsync:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"InstallAsync",persistent:!1},SetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"SetState",persistent:!1},GetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"GetState",persistent:!1},RegisterProgressNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterProgressNotification",persistent:!0},RegisterFormNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterFormNotification",persistent:!0}},Driverupdaterecommendation:{GetDriverUpdateRecommendation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateRecommendation",persistent:!1},GetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUserDriverTypePreference",persistent:!1},SetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUserDriverTypePreference",persistent:!1},GetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetAutomaticDriverDownloadEnabled",persistent:!1},SetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetAutomaticDriverDownloadEnabled",persistent:!1},StartDriverUpdateCheck:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"StartDriverUpdateCheck",persistent:!1},RegisterDriverUpdateCheckProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"RegisterDriverUpdateCheckProgressNotifications",persistent:!0},GetGRDEditorPreviewMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGRDEditorPreviewMode",persistent:!1},GetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateNotificationEnabled",persistent:!1},SetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetDriverUpdateNotificationEnabled",persistent:!1}},Gfnsdk:{Initialize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdk",method:"Initialize",persistent:!1},StartStreaming:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdk",method:"StartStreaming",persistent:!1}},Localgames:{GetApplications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplications",persistent:!1},RegisterApplicationChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationChangedNotifications",persistent:!0},RegisterApplicationRemovedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationRemovedNotifications",persistent:!0},StartApplicationScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"StartApplicationScan",persistent:!1},RegisterApplicationScanProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationScanProgressNotifications",persistent:!0},GetLastApplicationScanTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLastApplicationScanTime",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchApplication",persistent:!1},GetLauncherPID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLauncherPID",persistent:!1},GetApplicationSearchPaths:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationSearchPaths",persistent:!1},AddApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddApplicationSearchPath",persistent:!1},RemoveApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RemoveApplicationSearchPath",persistent:!1},GetVOPSStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetVOPSStatus",persistent:!1},GetVOPSSettingsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetVOPSSettingsInfo",persistent:!1},RegisterVOPSReadyNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterVOPSReadyNotifications",persistent:!0},GetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostState",persistent:!1},SetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetBatteryBoostState",persistent:!1},GetBatteryBoostSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostSupportState",persistent:!1},GetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeState",persistent:!1},SetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetWhisperModeState",persistent:!1},RegisterWhisperModeStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeStateNotifications",persistent:!0},GetWhisperModeSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeSupportState",persistent:!1},RegisterWhisperModeSupportStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeSupportStateNotifications",persistent:!0},GetSettingsTranslations:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsTranslations",persistent:!1},GetSettingsSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsSpace",persistent:!1},SetTargetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetTargetSettings",persistent:!1},GetApplicationState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationState",persistent:!1},RegisterApplicationStateChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationStateChangedNotifications",persistent:!0}}},Gfn:{Gfnsdkhost:{UpdateStreamerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"UpdateStreamerStatus",persistent:!1},OnMessageToSDKClient:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnMessageToSDKClient",persistent:!1},OnMessageFromSDKClient:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnMessageFromSDKClient",persistent:!0},SendCustomMessage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"SendCustomMessage",persistent:!1},OnCustomMessageNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnCustomMessageNotification",persistent:!0}},Networktest:{Start:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"Start",persistent:!1},AuthTokenRequest:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"AuthTokenRequest",persistent:!0},NetworkTestFinishedCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"NetworkTestFinishedCallback",persistent:!0},UpdateAuthToken:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"UpdateAuthToken",persistent:!1},ConfigureNetworkTestSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"ConfigureNetworkTestSettings",persistent:!1},RegisterCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"RegisterCallback",persistent:!1}},Serverrouting:{PerformRouting:{legacyCommand:"QUERY_GFN_LATENCY_BASED_ROUTING",system:"CrimsonNative",module:"ServerRouting",method:"PerformRouting",persistent:!1}},Streamer:{Launch:{legacyCommand:"QUERY_STREAMER_LAUNCH",system:"CrimsonNative",module:"Streamer",method:"Launch",persistent:!1},AddDesktopShortcut:{legacyCommand:"QUERY_STREAMER_INSTALL",system:"CrimsonNative",module:"Streamer",method:"AddDesktopShortcut",persistent:!1}},Streaming:{Start:{legacyCommand:"QUERY_GFN_START",system:"CrimsonNative",module:"Streaming",method:"Start",persistent:!1},Prepare:{legacyCommand:"QUERY_GFN_PREPARE",system:"CrimsonNative",module:"Streaming",method:"Prepare",persistent:!1},SetAuthInfo:{legacyCommand:"QUERY_GFN_SET_AUTH_INFO",system:"CrimsonNative",module:"Streaming",method:"SetAuthInfo",persistent:!1},SetAuthToken:{legacyCommand:"QUERY_GFN_SET_AUTH_TOKEN",system:"CrimsonNative",module:"Streaming",method:"SetAuthToken",persistent:!1},SetPrefetchedSettings:{legacyCommand:"QUERY_GFN_SET_PREFETCHED_SETTINGS",system:"CrimsonNative",module:"Streaming",method:"SetPrefetchedSettings",persistent:!1},Stop:{legacyCommand:"QUERY_GFN_STOP",system:"CrimsonNative",module:"Streaming",method:"Stop",persistent:!1},Cleanup:{legacyCommand:"QUERY_GFN_CLEANUP",system:"CrimsonNative",module:"Streaming",method:"Cleanup",persistent:!1},GetActiveSessions:{legacyCommand:"QUERY_GFN_GET_ACTIVE_SESSIONS",system:"CrimsonNative",module:"Streaming",method:"GetActiveSessions",persistent:!1},GetSessionInfo:{legacyCommand:"QUERY_GFN_GET_SESSION_INFO",system:"CrimsonNative",module:"Streaming",method:"GetSessionInfo",persistent:!1},VsyncToggle:{legacyCommand:"QUERY_GFN_IS_VSYNC_TOGGLE_SUPPORTED",system:"CrimsonNative",module:"Streaming",method:"VsyncToggle",persistent:!1},Cancel:{legacyCommand:"QUERY_GFN_CANCEL",system:"CrimsonNative",module:"Streaming",method:"Cancel",persistent:!1},Resume:{legacyCommand:"QUERY_GFN_RESUME",system:"CrimsonNative",module:"Streaming",method:"Resume",persistent:!1},PauseStreaming:{legacyCommand:"QUERY_GFN_PAUSE_STREAMING",system:"CrimsonNative",module:"Streaming",method:"PauseStreaming",persistent:!1},UpdateRemoteConfig:{legacyCommand:"QUERY_GFN_UPDATE_REMOTE_CONFIG",system:"CrimsonNative",module:"Streaming",method:"UpdateRemoteConfig",persistent:!1},RegisterCallback:{legacyCommand:"QUERY_GFN_REGISTER_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterCallback",persistent:!0},OpenOsr:{legacyCommand:"QUERY_WIN_OPEN_OSR",system:"CrimsonNative",module:"Streaming",method:"OpenOsr",persistent:!1},CloseOsr:{legacyCommand:"QUERY_WIN_CLOSE_OSR",system:"CrimsonNative",module:"Streaming",method:"CloseOsr",persistent:!1},OsrRegisterCustomKeyPress:{legacyCommand:"QUERY_OSR_REGISTER_KEYPRESS",system:"CrimsonNative",module:"Streaming",method:"OsrRegisterCustomKeyPress",persistent:!1},OsrUnregisterCustomKeyPress:{legacyCommand:"QUERY_OSR_UNREGISTER_KEYPRESS",system:"CrimsonNative",module:"Streaming",method:"OsrUnregisterCustomKeyPress",persistent:!1},OsrCheckKeyPressCombination:{legacyCommand:"QUERY_OSR_CHECK_KEYPRESS_COMBINATION",system:"CrimsonNative",module:"Streaming",method:"OsrCheckKeyPressCombination",persistent:!1},OsrRegisterKeyPressCallback:{legacyCommand:"QUERY_OSR_REGISTER_KEYPRESS_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"OsrRegisterKeyPressCallback",persistent:!0},OsrSetOverlayResolution:{legacyCommand:"QUERY_OSR_SET_OVERLAY_RESOLUTION",system:"CrimsonNative",module:"Streaming",method:"OsrSetOverlayResolution",persistent:!1},GetStreamVolume:{legacyCommand:"QUERY_GFN_GET_STREAM_VOLUME",system:"CrimsonNative",module:"Streaming",method:"GetStreamVolume",persistent:!1},GetStreamStats:{legacyCommand:"QUERY_GFN_GET_STREAM_STATS",system:"CrimsonNative",module:"Streaming",method:"GetStreamStats",persistent:!1},SetStreamVolume:{legacyCommand:"QUERY_GFN_SET_STREAM_VOLUME",system:"CrimsonNative",module:"Streaming",method:"SetStreamVolume",persistent:!1},SetMagnificationFilter:{legacyCommand:"QUERY_GFN_SET_MAG_FILTER",system:"CrimsonNative",module:"Streaming",method:"SetMagnificationFilter",persistent:!1},GetMagnificationFilterSupport:{legacyCommand:"QUERY_GFN_GET_MAG_FILTER_SUPPORT",system:"CrimsonNative",module:"Streaming",method:"GetMagnificationFilterSupport",persistent:!1},GetMagnificationFilterSupportList:{legacyCommand:"QUERY_GFN_GET_MAG_FILTER_SUPPORT_LIST",system:"CrimsonNative",module:"Streaming",method:"GetMagnificationFilterSupportList",persistent:!1},SetMagnificationFilterSharpness:{legacyCommand:"QUERY_GFN_SET_MAG_FILTER_SHARPNESS",system:"CrimsonNative",module:"Streaming",method:"SetMagnificationFilterSharpness",persistent:!1},ToggleUserInput:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"ToggleUserInput",persistent:!1},ToggleJoystickMouse:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"ToggleJoystickMouse",persistent:!1},SetVirtualKeyboardState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"SetVirtualKeyboardState",persistent:!1},SetVideoTransforms:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"SetVideoTransforms",persistent:!1},RegisterMicCallback:{legacyCommand:"QUERY_GFN_REGISTER_MIC_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterMicCallback",persistent:!0},ShouldDefaultEnableMic:{legacyCommand:"QUERY_SHOULD_DEFAULT_ENABLE_MIC",system:"CrimsonNative",module:"Streaming",method:"ShouldDefaultEnableMic",persistent:!1},GetMicState:{legacyCommand:"QUERY_GFN_GET_MIC_STATE",system:"CrimsonNative",module:"Streaming",method:"GetMicState",persistent:!1},SetMicState:{legacyCommand:"QUERY_GFN_SET_MIC_STATE",system:"CrimsonNative",module:"Streaming",method:"SetMicState",persistent:!1},GetKeyboardLayout:{legacyCommand:"QUERY_GFN_GET_KEYBOARD_LAYOUT",system:"CrimsonNative",module:"Streaming",method:"GetKeyboardLayout",persistent:!1},SetKeyboardLayout:{legacyCommand:"QUERY_GFN_SET_KEYBOARD_LAYOUT",system:"CrimsonNative",module:"Streaming",method:"SetKeyboardLayout",persistent:!1},ConfigureStreamingSettings:{legacyCommand:"QUERY_GFN_UPDATE_STREAMING_SETTINGS",system:"CrimsonNative",module:"Streaming",method:"ConfigureStreamingSettings",persistent:!1},SendUnicode:{legacyCommand:"QUERY_GFN_SEND_UNICODE",system:"CrimsonNative",module:"Streaming",method:"SendUnicode",persistent:!1},OnKBLayoutChange:{legacyCommand:"QUERY_GFN_REGISTER_ON_KEYBOARD_LAYOUT_CHANGED",system:"CrimsonNative",module:"Streaming",method:"OnKBLayoutChange",persistent:!0},GetUnifiedAPIVersion:{legacyCommand:"QUERY_GFN_GET_UNIFIED_API_VERSION",system:"CrimsonNative",module:"Streaming",method:"GetUnifiedAPIVersion",persistent:!1},OnIMEWindowClosed:{legacyCommand:"QUERY_GFN_REGISTER_ON_IME_WINDOW_CLOSED",system:"CrimsonNative",module:"Streaming",method:"OnIMEWindowClosed",persistent:!0},OnIMEWindowOpened:{legacyCommand:"QUERY_GFN_REGISTER_ON_IME_WINDOW_OPENED",system:"CrimsonNative",module:"Streaming",method:"OnIMEWindowOpened",persistent:!0},GetDisplayMode:{legacyCommand:"QUERY_GFN_GET_DISPLAY_MODE",system:"CrimsonNative",module:"Streaming",method:"GetDisplayMode",persistent:!1},GetVSyncAutoDisableThresholdStreamingFPS:{legacyCommand:"QUERY_GFN_GET_VSYNC_AUTO_DISABLE_THRESHOLD_FPS",system:"CrimsonNative",module:"Streaming",method:"GetVSyncAutoDisableThresholdStreamingFPS",persistent:!1},GetVSyncAutoDisableThresholdDisplayHz:{legacyCommand:"QUERY_GFN_GET_VSYNC_AUTO_DISABLE_THRESHOLD_DISPLAY_HZ",system:"CrimsonNative",module:"Streaming",method:"GetVSyncAutoDisableThresholdDisplayHz",persistent:!1},SetVsyncEnabled:{legacyCommand:"QUERY_GFN_SET_VSYNC_ENABLED",system:"CrimsonNative",module:"Streaming",method:"SetVsyncEnabled",persistent:!1},SetAdaptiveFramePacingEnabled:{legacyCommand:"QUERY_GFN_SET_ADAPTIVE_FRAME_PACING_ENABLED",system:"CrimsonNative",module:"Streaming",method:"SetAdaptiveFramePacingEnabled",persistent:!1},SetDrcDfcState:{legacyCommand:"QUERY_GFN_SET_DRC_DFC_STATE",system:"CrimsonNative",module:"Streaming",method:"SetDrcDfcState",persistent:!1},SetStreamingMaxBitrate:{legacyCommand:"QUERY_GFN_SET_STREAMING_MAX_BITRATE",system:"CrimsonNative",module:"Streaming",method:"SetStreamingMaxBitrate",persistent:!1},UpdateEventInfoGuids:{legacyCommand:"QUERY_GFN_UPDATE_EVENT_INFO_GUIDS",system:"CrimsonNative",module:"Streaming",method:"UpdateEventInfoGuids",persistent:!1},RegisterGridServerAnalyticsCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"RegisterGridServerAnalyticsCallback",persistent:!0},GetAutoResolution:{legacyCommand:"QUERY_GFN_GET_AUTO_RESOLUTION",system:"CrimsonNative",module:"Streaming",method:"GetAutoResolution",persistent:!1},LaunchNativeStreamer:{legacyCommand:"QUERY_GFN_LAUNCH_NATVE_STREAMER",system:"CrimsonNative",module:"Streaming",method:"LaunchNativeStreamer",persistent:!1},UpdateEventDataElements:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"UpdateEventDataElements",persistent:!1},SendClipboardUpdate:{legacyCommand:"QUERY_GFN_SEND_CLIPBOARD_UPDATE",system:"CrimsonNative",module:"Streaming",method:"SendClipboardUpdate",persistent:!1},IsPlatformSupportsUHD:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORTS_UHD",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportsUHD",persistent:!1},AuthorizeAVDevices:{legacyCommand:"QUERY_GFN_AUTH_AV_DEVICES",system:"CrimsonNative",module:"Streaming",method:"AuthorizeAVDevices",persistent:!1},PlatformGetMaxBitRateForArray:{legacyCommand:"QUERY_GFN_PLATFORM_GET_MAXBITRATE_ARRAY",system:"CrimsonNative",module:"Streaming",method:"PlatformGetMaxBitRateForArray",persistent:!1},SendKeyEvent:{legacyCommand:"QUERY_GFN_SEND_KEY_EVENT_TO_STREAMER",system:"CrimsonNative",module:"Streaming",method:"SendKeyEvent",persistent:!1},ToggleISSOStats:{legacyCommand:"QUERY_TOGGLE_ISSO_STATS",system:"CrimsonNative",module:"Streaming",method:"ToggleISSOStats",persistent:!0},IsPlatformSupportsHDRStreaming:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORTS_HDR_STREAMING",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportsHDRStreaming",persistent:!1},RegisterHDRStreamingStatusNotification:{legacyCommand:"QUERY_GFN_REGISTER_HDR_STATUS",system:"CrimsonNative",module:"Streaming",method:"RegisterHDRStreamingStatusNotification",persistent:!0},StreamingCodecNotification:{legacyCommand:"QUERY_STREAMING_CODEC_NOTIFICATION",system:"CrimsonNative",module:"Streaming",method:"StreamingCodecNotification",persistent:!0},IsPlatformSupportFps:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORT_FPS",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportFps",persistent:!1},GetHighestSupportedAudioFormat:{legacyCommand:"QUERY_GFN_GET_HIGHEST_SUPPORTED_AUDIO_FORMAT",system:"CrimsonNative",module:"Streaming",method:"GetHighestSupportedAudioFormat",persistent:!1},CalculateDataUsage:{legacyCommand:"QUERY_GFN_CALCULATE_DATA_USAGE",system:"CrimsonNative",module:"Streaming",method:"CalculateDataUsage",persistent:!1},UpdateAdState:{legacyCommand:"QUERY_GFN_UPDATE_AD_STATE",system:"CrimsonNative",module:"Streaming",method:"UpdateAdState",persistent:!1},GetPlatformCloudGsyncCapabilities:{legacyCommand:"QUERY_GFN_GET_PLATFORM_CLOUD_GSYNC_CAPABILITIES",system:"CrimsonNative",module:"Streaming",method:"GetPlatformCloudGsyncCapabilities",persistent:!1},GetDeviceCapabilities:{legacyCommand:"QUERY_GFN_GET_SERIALIZED_DEVICE_CAPABILITIES",system:"CrimsonNative",module:"Streaming",method:"GetDeviceCapabilities",persistent:!1},SetStreamingL4sState:{legacyCommand:"QUERY_GFN_SET_STREAMING_L4S_STATE",system:"CrimsonNative",module:"Streaming",method:"SetStreamingL4sState",persistent:!1}}},Nvapp:{Appdiscovery:{AppActionNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"AppActionNotification",persistent:!0},InstallApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"InstallApp",persistent:!1},UninstallApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"UninstallApp",persistent:!1},GetAppStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"GetAppStatus",persistent:!1},GetAppsStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"GetAppsStatus",persistent:!1},LaunchApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"LaunchApp",persistent:!1}},Driverinstall:{InstallAsync:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"InstallAsync",persistent:!1},SetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"SetState",persistent:!1},GetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"GetState",persistent:!1},RegisterProgressNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterProgressNotification",persistent:!0},RegisterFormNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterFormNotification",persistent:!0}},Driverupdaterecommendation:{GetDriverUpdateRecommendation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateRecommendation",persistent:!1},GetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUserDriverTypePreference",persistent:!1},SetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUserDriverTypePreference",persistent:!1},GetUpdateStrategyPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUpdateStrategyPreference",persistent:!1},SetUpdateStrategyPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUpdateStrategyPreference",persistent:!1},GetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetAutomaticDriverDownloadEnabled",persistent:!1},SetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetAutomaticDriverDownloadEnabled",persistent:!1},StartDriverUpdateCheck:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"StartDriverUpdateCheck",persistent:!1},RegisterDriverUpdateCheckProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"RegisterDriverUpdateCheckProgressNotifications",persistent:!0},GetGRDEditorPreviewMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGRDEditorPreviewMode",persistent:!1},GetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateNotificationEnabled",persistent:!1},SetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetDriverUpdateNotificationEnabled",persistent:!1},GetGPUInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGPUInfo",persistent:!1},GetGenericInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGenericInfo",persistent:!1},GetRewardsNotificationPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetRewardsNotificationPreference",persistent:!1},SetRewardsNotificationPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetRewardsNotificationPreference",persistent:!1},GetLanguagePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetLanguagePreference",persistent:!1},SetLanguagePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetLanguagePreference",persistent:!1}},Localgames:{GetApplications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplications",persistent:!1},RegisterApplicationChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationChangedNotifications",persistent:!0},RegisterApplicationRemovedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationRemovedNotifications",persistent:!0},StartApplicationScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"StartApplicationScan",persistent:!1},RegisterApplicationScanProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationScanProgressNotifications",persistent:!0},GetLastApplicationScanTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLastApplicationScanTime",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchApplication",persistent:!1},GetLauncherPID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLauncherPID",persistent:!1},GetApplicationSearchPaths:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationSearchPaths",persistent:!1},AddApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddApplicationSearchPath",persistent:!1},RemoveApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RemoveApplicationSearchPath",persistent:!1},GetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostState",persistent:!1},SetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetBatteryBoostState",persistent:!1},GetBatteryBoostSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostSupportState",persistent:!1},GetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeState",persistent:!1},SetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetWhisperModeState",persistent:!1},GetWhisperModeInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeInfo",persistent:!1},RegisterWhisperModeStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeStateNotifications",persistent:!0},GetWhisperModeSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeSupportState",persistent:!1},RegisterWhisperModeSupportStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeSupportStateNotifications",persistent:!0},GetSettingsTranslations:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsTranslations",persistent:!1},GetSettingsSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsSpace",persistent:!1},SetTargetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetTargetSettings",persistent:!1},GetApplicationState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationState",persistent:!1},RegisterApplicationStateChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationStateChangedNotifications",persistent:!0},GetSignedGPUID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSignedGPUID",persistent:!1},LaunchMSSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchMSSettings",persistent:!1},SetOOTBStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetOOTBStatus",persistent:!1},FindAndGetAppMetadata:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"FindAndGetAppMetadata",persistent:!1},AddManualApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddManualApplication",persistent:!1},DeleteManualApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"DeleteManualApplication",persistent:!1},GetAutoOptimizeEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetAutoOptimizeEnabled",persistent:!1},SetAutoOptimizeEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetAutoOptimizeEnabled",persistent:!1}},Nvcpldisplayplugin:{GetDirect3DfeatureLevel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDirect3DfeatureLevel",persistent:!1},GetGPUInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGPUInformation",persistent:!1},GetSuperResolutionInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionInfo",persistent:!1},GetSuperResolutionCurrentStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionCurrentStatus",persistent:!1},SetSuperResolutionValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSuperResolutionValue",persistent:!1},RestoreDefaultVideoSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDefaultVideoSettings",persistent:!1},GetHDRInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHDRInfo",persistent:!1},GetHDRCurrentStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHDRCurrentStatus",persistent:!1},SetHDRValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHDRValue",persistent:!1},SetHDRInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHDRInfo",persistent:!1},RegisterDisplayChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RegisterDisplayChangeNotification",persistent:!0},GetGpuCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGpuCount",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"LaunchApplication",persistent:!1},IsControlPanelClientInstalled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"IsControlPanelClientInstalled",persistent:!1},GetDisplayResolutionList:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplayResolutionList",persistent:!1},GetGpuAndDisplayInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGpuAndDisplayInformation",persistent:!1},RestoreDisplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDisplaySettings",persistent:!1},SetResolution:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetResolution",persistent:!1},SetRotation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetRotation",persistent:!1},RevertState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RevertState",persistent:!1},CancelState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"CancelState",persistent:!1},CommitState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"CommitState",persistent:!1},IdentifyDisplays:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"IdentifyDisplays",persistent:!1},GetSystemCapabilities:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSystemCapabilities",persistent:!1},GetGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGlobalGsyncState",persistent:!1},SetGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetGlobalGsyncState",persistent:!1},RestoreGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreGlobalGsyncState",persistent:!1},GetDisplayGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplayGsyncState",persistent:!1},SetDisplayGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisplayGsyncState",persistent:!1}},Nvcplplugin:{GetProfileSettingsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingsInfo",persistent:!1},GetProfileInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileInfo",persistent:!1},GetProfileSettingValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingValue",persistent:!1},GetProfileSettingDefaultValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingDefaultValue",persistent:!1},GetProfileNameFromExe:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileNameFromExe",persistent:!1},SetProfileSettingValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"SetProfileSettingValue",persistent:!1},ApplyProfileSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"ApplyProfileSettings",persistent:!1},GetProfileJsonStringSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileJsonStringSettingPossibleValues",persistent:!1},GetProfileStringSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileStringSettingPossibleValues",persistent:!1},GetProfileScalarSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileScalarSettingPossibleValues",persistent:!1},RestoreDefaultForProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"RestoreDefaultForProfile",persistent:!1},RestoreDefaultForAllProfiles:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"RestoreDefaultForAllProfiles",persistent:!1},GetProgramProfileNames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProgramProfileNames",persistent:!1},GetProfilesAndApplicationsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfilesAndApplicationsInfo",persistent:!1},GetGlobalProfileNames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetGlobalProfileNames",persistent:!1},CreateNewProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"CreateNewProfile",persistent:!1},DeleteProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"DeleteProfile",persistent:!1},GetDynamicBoost:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetDynamicBoost",persistent:!1}},Nvigoutil:{ToggleIGO:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"ToggleIGO",persistent:!1},GetShadowPlaySupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetShadowPlaySupported",persistent:!1},GetShadowPlayStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetShadowPlayStatus",persistent:!1},GetFilterPhotoModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetFilterPhotoModeState",persistent:!1},SetFilterPhotoMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"SetFilterPhotoMode",persistent:!1},OpenIGO:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"OpenIGO",persistent:!1},GetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetHotkeyShortcut",persistent:!1}},Nvoc:{GetFeatureSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetFeatureSupportState",persistent:!1},GetManualOCLimits:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetManualOCLimits",persistent:!1},GetLastOcScanResults:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetLastOcScanResults",persistent:!1},GetLastIncompleteOcScannerResults:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetLastIncompleteOcScannerResults",persistent:!1},GetFanSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetFanSettings",persistent:!1},OcScanStatusUpdatesNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"OcScanStatusUpdatesNotifications",persistent:!0},GetOCConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetOCConfig",persistent:!1},GetGpuInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetGpuInfo",persistent:!1},GetOCAdminConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetOCAdminConsent",persistent:!1},SetOCAdminConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"SetOCAdminConsent",persistent:!1},powerStatusNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"powerStatusNotification",persistent:!0},GetVFPoints:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetVFPoints",persistent:!1},EnableCurrentVFPointNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"EnableCurrentVFPointNotification",persistent:!1},CurrentVFPointNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"CurrentVFPointNotification",persistent:!0},GetPerfProfiles:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetPerfProfiles",persistent:!1}},Overclockingnvc:{SetManualOCLimits:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetManualOCLimits",persistent:!1},StartOcManualScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"StartOcManualScan",persistent:!1},StopOcManualScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"StopOcManualScan",persistent:!1},EnableBackgroundOcScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"EnableBackgroundOcScan",persistent:!1},EnableAutotuneOc:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"EnableAutotuneOc",persistent:!1},RestoreOcDefault:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"RestoreOcDefault",persistent:!1},SetFanSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetFanSettings",persistent:!1},SetPerfProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetPerfProfile",persistent:!1}}},Qxp:{Driverrollback:{Rollback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverRollback",method:"Rollback",persistent:!1},RollbackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverRollback",method:"RollbackInfo",persistent:!1}}},Share:{Forager:{CopyConfigTemplate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"CopyConfigTemplate",persistent:!1},ExtractFrames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ExtractFrames",persistent:!1},GetAppInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"GetAppInfo",persistent:!1},LaunchWithNativeApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"LaunchWithNativeApp",persistent:!1},ReadWorkspace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ReadWorkspace",persistent:!1},ReadFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ReadFile",persistent:!1},SaveWorkspace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"SaveWorkspace",persistent:!1},TrimVideo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"TrimVideo",persistent:!1},WriteFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"WriteFile",persistent:!1}},Gear:{GetPreviewOutputInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"GetPreviewOutputInformation",persistent:!1},Start:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"Start",persistent:!1},StartPreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"StartPreview",persistent:!1},GetStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"GetStatus",persistent:!1},Stop:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"Stop",persistent:!1}},Graphicssetting:{GetAIDVCSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIDVCSupport",persistent:!1},GetAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIDVCState",persistent:!1},SetAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetAIDVCState",persistent:!1},GetRealtimeAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetRealtimeAIDVCState",persistent:!1},ToggleNIS2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"ToggleNIS2",persistent:!1},GetNIS2State:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNIS2State",persistent:!1},SetNIS2Sharpen:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetNIS2Sharpen",persistent:!1},GetAIHDRSupport_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRSupport_V2",persistent:!1},GetAIHDRDisplayInfoForProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRDisplayInfoForProcess",persistent:!1},GetAIHDRRealTimeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRRealTimeState",persistent:!1},GetAIHDRState_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRState_V2",persistent:!1},SetAIHDRState_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetAIHDRState_V2",persistent:!1},GetGPUInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetGPUInfo",persistent:!1},GetGenericInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetGenericInfo",persistent:!1},GetUserPreferredLanguage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetUserPreferredLanguage",persistent:!1},RegisterUserPreferredLanguageChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"RegisterUserPreferredLanguageChangeNotification",persistent:!1},UserPreferredLanguageChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"UserPreferredLanguageChangeNotification",persistent:!0}},Nvperfmon:{EnablePerfStatsNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"EnablePerfStatsNotification",persistent:!1},RegisterPerfStatsNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"RegisterPerfStatsNotifications",persistent:!0},SetProcessId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetProcessId",persistent:!1},SetMetricSampleSize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetMetricSampleSize",persistent:!1},ResetAverageMetrics:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"ResetAverageMetrics",persistent:!1},GetDefaultLoggingPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetDefaultLoggingPath",persistent:!1},LoggingToggle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"LoggingToggle",persistent:!1},AlignLatencyMonitoringRectangle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"AlignLatencyMonitoringRectangle",persistent:!1},GetRLAMonitorSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetRLAMonitorSupport",persistent:!1},ShowFlashIndicator:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"ShowFlashIndicator",persistent:!1},SetFlashIndicatorSize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetFlashIndicatorSize",persistent:!1},GetGpuInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetGpuInfo",persistent:!1},powerStatusNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"powerStatusNotification",persistent:!0},CheckRLASupportedDriver:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"CheckRLASupportedDriver",persistent:!1}},Osc:{OpenWindow:{legacyCommand:"QUERY_WIN_OPEN_OSC",system:"CrimsonNative",module:"osc",method:"OpenWindow",persistent:!1},CloseWindow:{legacyCommand:"QUERY_WIN_CLOSE_OSC",system:"CrimsonNative",module:"osc",method:"CloseWindow",persistent:!1},IsDisplayInDesktopMode:{legacyCommand:"QUERY_OSC_DISPLAY_IS_DESKTOP_MODE",system:"CrimsonNative",module:"osc",method:"IsDisplayInDesktopMode",persistent:!1},FullscreenState:{legacyCommand:"QUERY_FULLSCREEN_STATE",system:"CrimsonNative",module:"osc",method:"FullscreenState",persistent:!1},SetPainting:{legacyCommand:"QUERY_OSC_SET_PAINTING",system:"CrimsonNative",module:"osc",method:"SetPainting",persistent:!1},DropUrl:{legacyCommand:"QUERY_OSC_DROP_URL",system:"CrimsonNative",module:"osc",method:"DropUrl",persistent:!1},GenerateKeyboardMessage:{legacyCommand:"QUERY_WIN_KB_MESSAGE",system:"CrimsonNative",module:"osc",method:"GenerateKeyboardMessage",persistent:!1},RegisterCloseCommand:{legacyCommand:"QUERY_OSC_REGISTER_CLOSE_EVENT",system:"CrimsonNative",module:"osc",method:"RegisterCloseCommand",persistent:!0},SetDisplayRects:{legacyCommand:"QUERY_OSC_SET_DISPLAY_RECTS",system:"CrimsonNative",module:"osc",method:"SetDisplayRects",persistent:!1},RegisterResizeEvent:{legacyCommand:"QUERY_OSC_REGISTER_RESIZE_EVENT",system:"CrimsonNative",module:"osc",method:"RegisterResizeEvent",persistent:!0}},Sdk:{},Shareserver:{SetCaptureSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCaptureSupported",persistent:!1},RegisterHotkeyNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterHotkeyNotifications",persistent:!0},RegisterGeneralNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterGeneralNotifications",persistent:!0},SetTelemtryInfoToShadowPlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetTelemtryInfoToShadowPlay",persistent:!1},RegisterCaptureStateChangeNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterCaptureStateChangeNotifications",persistent:!0},RegisterWindowStateChangeNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterWindowStateChangeNotifications",persistent:!0},RegisterBroadcastSessionNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterBroadcastSessionNotifications",persistent:!0},CaptureSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureSavedNotification",persistent:!0},HighlightSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HighlightSavedNotification",persistent:!0},HighlightCaptureFailureNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HighlightCaptureFailureNotification",persistent:!0},RegisterSDKNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterSDKNotifications",persistent:!0},RegisterAppNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterAppNotifications",persistent:!0},GetInitData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInitData",persistent:!1},GetMainView:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMainView",persistent:!1},OpenOsc:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"OpenOsc",persistent:!1},Launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Launch",persistent:!1},GetShadowPlaySupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetShadowPlaySupported",persistent:!1},GetShadowPlayStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetShadowPlayStatus",persistent:!1},Get4KSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Get4KSupport",persistent:!1},GetSupportedBitrates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedBitrates",persistent:!1},GetSupportedBitratesFramerates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedBitratesFramerates",persistent:!1},GetSupportedResolutions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedResolutions",persistent:!1},GetSupportedResolutionsCodecs:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedResolutionsCodecs",persistent:!1},GetSupportedFramerates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedFramerates",persistent:!1},GetQualityDefaultData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetQualityDefaultData",persistent:!1},GetCaptureState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureState",persistent:!1},GetCaptureProcessInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureProcessInfo",persistent:!1},GetCaptureControlPIDMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureControlPIDMode",persistent:!1},GetScreenshotSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetScreenshotSupport",persistent:!1},CaptureScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureScreenshot",persistent:!1},CaptureCustomScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureCustomScreenshot",persistent:!1},CustomScreenshotNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CustomScreenshotNotifications",persistent:!0},GetFreestylePreviewBasePath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetFreestylePreviewBasePath",persistent:!1},StartDiskCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StartDiskCapture",persistent:!1},StopAndSaveDiskCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StopAndSaveDiskCapture",persistent:!1},StartBufferedCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StartBufferedCapture",persistent:!1},StopBufferedCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StopBufferedCapture",persistent:!1},SaveBufferedCaptureClip:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SaveBufferedCaptureClip",persistent:!1},EDGEEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EDGEEvent",persistent:!1},GetInstantReplayEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayEnableStatus",persistent:!1},GetInstantReplayRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayRunningStatus",persistent:!1},GetInstantReplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplaySettings",persistent:!1},SetInstantReplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetInstantReplaySettings",persistent:!1},EnableInstantReplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableInstantReplay",persistent:!1},SaveInstantReplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SaveInstantReplay",persistent:!1},GetLastInstantReplayLength:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetLastInstantReplayLength",persistent:!1},GetInstantReplayCustomizeData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayCustomizeData",persistent:!1},GetRecordEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordEnableStatus",persistent:!1},GetRecordRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordRunningStatus",persistent:!1},EnableRecord:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableRecord",persistent:!1},GetRecordSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordSettings",persistent:!1},SetRecordSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetRecordSettings",persistent:!1},GetRecordCustomizeData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordCustomizeData",persistent:!1},EnableBroadcast:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableBroadcast",persistent:!1},PauseBroadcast:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"PauseBroadcast",persistent:!1},GetBroadcastEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastEnableStatus",persistent:!1},GetBroadcastRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastRunningStatus",persistent:!1},GetBroadcastSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastSupported",persistent:!1},GetBroadcastSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastSettings",persistent:!1},SetBroadcastSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastSettings",persistent:!1},SetBroadcastSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastSession",persistent:!1},GetBroadcastPreferredProviderSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastPreferredProviderSetting",persistent:!1},SetBroadcastPreferredProviderSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastPreferredProviderSetting",persistent:!1},GetBroadcastLastProvider:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastLastProvider",persistent:!1},SetBroadcastLastProvider:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastLastProvider",persistent:!1},GetBroadcastTitle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastTitle",persistent:!1},GetBroadcast2K:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcast2K",persistent:!1},GetBroadcastFacebookLiveSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastFacebookLiveSupport",persistent:!1},GetBroadcastIngestServer:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastIngestServer",persistent:!1},SetBroadcastIngestServer:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastIngestServer",persistent:!1},SetBroadcastViewerCountImage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastViewerCountImage",persistent:!1},SetBroadcastViewerMax:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastViewerMax",persistent:!1},GetRecordBroadcastConcurrencySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordBroadcastConcurrencySupport",persistent:!1},GetRecordGamestreamConcurrencySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordGamestreamConcurrencySupport",persistent:!1},GetDesktopCaptureEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureEnabled",persistent:!1},SetDesktopCaptureEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetDesktopCaptureEnabled",persistent:!1},GetDesktopCaptureSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureSupported",persistent:!1},GetDesktopCaptureSupportReason:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureSupportReason",persistent:!1},GetAudioMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetAudioMode",persistent:!1},SetAudioMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetAudioMode",persistent:!1},GetAudioSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetAudioSettings",persistent:!1},SetAudioSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetAudioSettings",persistent:!1},GetMicCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicCount",persistent:!1},GetMicMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicMode",persistent:!1},SetMicMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetMicMode",persistent:!1},GetMicSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicSettings",persistent:!1},SetMicSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetMicSettings",persistent:!1},MicPTTMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"MicPTTMode",persistent:!1},EnableWebcam:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableWebcam",persistent:!1},ToggleWebcam:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ToggleWebcam",persistent:!1},GetWebcamEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamEnable",persistent:!1},GetWebcamShown:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamShown",persistent:!1},GetWebcamPresent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamPresent",persistent:!1},GetWebcamPreviewState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamPreviewState",persistent:!1},EnableWebcamPreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableWebcamPreview",persistent:!1},GetHighlightsActive:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsActive",persistent:!1},GetHighlightsEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsEnable",persistent:!1},SetHighlightsEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHighlightsEnable",persistent:!1},GetSDKInstanceActive:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSDKInstanceActive",persistent:!1},GetSDKPermissions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSDKPermissions",persistent:!1},SetSDKPermissions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetSDKPermissions",persistent:!1},NotifyAppOverlayState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"NotifyAppOverlayState",persistent:!1},GetHighlightsConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsConfig",persistent:!1},SetHighlightsConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHighlightsConfig",persistent:!1},GetApplicationConfigs:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetApplicationConfigs",persistent:!1},GetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHotkeyShortcut",persistent:!1},SetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyShortcut",persistent:!1},ResetHotkeysToDefault:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ResetHotkeysToDefault",persistent:!1},GetHotkeyMonitoring:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHotkeyMonitoring",persistent:!1},Init:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Init",persistent:!1},SetHotkeyMonitoring:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyMonitoring",persistent:!1},SetHotkeyDynamicEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyDynamicEnable",persistent:!1},GetIndicatorSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetIndicatorSupported",persistent:!1},GetIndicatorOverlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetIndicatorOverlaySettings",persistent:!1},SetIndicatorOverlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetIndicatorOverlaySettings",persistent:!1},GetCustomOverlayDefaultPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayDefaultPath",persistent:!1},GetCustomOverlaySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlaySupport",persistent:!1},GetCustomOverlayPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayPath",persistent:!1},SetCustomOverlayPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCustomOverlayPath",persistent:!1},GetCustomOverlayEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayEnable",persistent:!1},SetCustomOverlayEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCustomOverlayEnable",persistent:!1},GetCustomOverlayDisplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayDisplay",persistent:!1},SelectCustomOverlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SelectCustomOverlay",persistent:!1},EnableCustomOverlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableCustomOverlay",persistent:!1},GetNvCameraToggleState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetNvCameraToggleState",persistent:!1},SetNvCameraToggleState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetNvCameraToggleState",persistent:!1},ToggleAutoHighlight:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ToggleAutoHighlight",persistent:!1},DisableRecordSpecialCase:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"DisableRecordSpecialCase",persistent:!1},GetIf4KRecordingFallbackAvailable:{legacyCommand:"QUERY_IS_4K_RECORDING_FALLBACK_AVAILABLE",system:"CrimsonNative",module:"ShareServer",method:"GetIf4KRecordingFallbackAvailable",persistent:!1},GetExportedGFESettingsData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetExportedGFESettingsData",persistent:!1},SyncShadowPlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SyncShadowPlaySettings",persistent:!1},HandleHighlightsGfeConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HandleHighlightsGfeConfig",persistent:!1}}}}},74931:(Ue,W,d)=>{"use strict";var n;d.d(W,{Od:()=>n,Ts:()=>l.T,Or:()=>ue}),function(N){function se(Z,de,ae,pe){return{legacyCommand:Z,system:void 0,module:de,method:ae,persistent:pe}}N.BridgeCommand=se,N.GenericCommand=function ce(Z,de,ae,pe){return se(Z,de,ae,pe)}}(n||(n={}));var p,m,_,P,v,l=d(25882);!function(N){let se;var ce;(ce=se=N.Format||(N.Format={})).text="text",ce.base64="base64"}(p||(p={})),function(N){let se;var Z;let ce;(Z=se=N.MediaType||(N.MediaType={})).auto_detect="auto_detect",Z.nvfbc="nvfbc",Z.video="video",Z.image="image",Z.kpi_test="kpi_test",Z.manual="manual",Z.filmstrip="filmstrip",function(Z){Z.readToTarget="readToTarget",Z.sleepToTarget="sleepToTarget",Z.readOnlyTarget="readOnlyTarget"}(ce=N.FrameMode||(N.FrameMode={}))}(m||(m={})),function(N){let se;var pe;let ce,Z,de,ae;(pe=se=N.DriverTypeEnum||(N.DriverTypeEnum={}))[pe.GameReadyDriver=0]="GameReadyDriver",pe[pe.CreatorReadyDriver=1]="CreatorReadyDriver",function(pe){pe[pe.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET"}(ce=N.AidvcUnSupportedErrors||(N.AidvcUnSupportedErrors={})),function(pe){pe[pe.GAME_HDR_ENABLED=0]="GAME_HDR_ENABLED"}(Z=N.AidvcRealTimeErrors||(N.AidvcRealTimeErrors={})),function(pe){pe[pe.GPU_INCOMPATIBLE=0]="GPU_INCOMPATIBLE",pe[pe.CLIENT_VIRTUALIZATION_ENABLED=1]="CLIENT_VIRTUALIZATION_ENABLED",pe[pe.OS_INCOMPATIBLE=2]="OS_INCOMPATIBLE",pe[pe.MULTI_MON_DETECTED=3]="MULTI_MON_DETECTED",pe[pe.HDR_DISABLED=4]="HDR_DISABLED",pe[pe.SOC_FEATURE_ENABLED=5]="SOC_FEATURE_ENABLED",pe[pe.SLI_ENABLED=6]="SLI_ENABLED",pe[pe.SURROUND_ENABLED=7]="SURROUND_ENABLED",pe[pe.MSHYBRID_ENABLED=8]="MSHYBRID_ENABLED",pe[pe.MSHYBRID_ENABLED_DDS_IGPU=9]="MSHYBRID_ENABLED_DDS_IGPU",pe[pe.DISPLAY_INCOMPATIBLE=10]="DISPLAY_INCOMPATIBLE",pe[pe.NO_DISPLAY_CONNECTED=11]="NO_DISPLAY_CONNECTED",pe[pe.USE_ALTERNATE_DISPLAY=12]="USE_ALTERNATE_DISPLAY",pe[pe.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET",pe[pe.GAME_DENYLISTED=21]="GAME_DENYLISTED"}(de=N.AihdrUnSupportedErrors||(N.AihdrUnSupportedErrors={})),function(pe){pe[pe.DRS_REGKEY_NOT_SET=0]="DRS_REGKEY_NOT_SET",pe[pe.UNSUPPORTED_PRESENTATION_MODE=1]="UNSUPPORTED_PRESENTATION_MODE",pe[pe.GAME_HDR_ENABLED=2]="GAME_HDR_ENABLED",pe[pe.OS_HDR_DISABLED=3]="OS_HDR_DISABLED",pe[pe.SOC_FEATURES_ENABLED=4]="SOC_FEATURES_ENABLED",pe[pe.MISTMATCHED_DISPLAY=5]="MISTMATCHED_DISPLAY",pe[pe.API_NOT_SUPPORTED=6]="API_NOT_SUPPORTED"}(ae=N.AihdrRealTimeErrors||(N.AihdrRealTimeErrors={}))}(_||(_={})),function(N){let se;var ce;(ce=se=N.PowerStatus||(N.PowerStatus={}))[ce.AC=0]="AC",ce[ce.DC=1]="DC",ce[ce.UPS_LIKE=2]="UPS_LIKE",ce[ce.Unknown=3]="Unknown"}(P||(P={})),function(N){let se;var st;let ce,Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt,qt,ye,Re,Ze,et,xt,un,ct,Gt,pn;(st=se=N.Quality||(N.Quality={})).UltraGood="UltraGood",st.VeryGood="VeryGood",st.Good="Good",st.Average="Average",st.Custom="Custom",st.GamecastYTLUltraGood="GamecastYTLUltraGood",st.GamecastYTLVeryGood="GamecastYTLVeryGood",st.GamecastYTLGood="GamecastYTLGood",st.GamecastYTLAverage="GamecastYTLAverage",st.GamecastUltraGood="GamecastUltraGood",st.GamecastVeryGood="GamecastVeryGood",st.GamecastGood="GamecastGood",st.GamecastAverage="GamecastAverage",st.GamecastFBLVeryGood="GamecastFBLVeryGood",st.GamecastFBLGood="GamecastFBLGood",st.GamecastFBLAverage="GamecastFBLAverage",function(st){st.In_game="In-game",st.Resolution_4320p_8K="4320p 8K",st.Resolution_2160p_4K="2160p 4K",st.Resolution_1440p_HD="1440p HD",st.Resolution_1080p_HD="1080p HD",st.Resolution_720p_HD="720p HD",st.Resolution_480p="480p",st.Resolution_360p="360p",st.Resolution_240p="240p",st.Exact="Exact"}(ce=N.Resolution||(N.Resolution={})),function(st){st.H264_HEVC="H264/HEVC",st.AV1="AV1"}(Z=N.Codec||(N.Codec={})),function(st){st.instantReplay="instantReplay",st.manualRecord="manualRecord",st.highlights="highlights",st.gear="gear"}(de=N.SessionIds||(N.SessionIds={})),function(st){st.Always_Ask="Always Ask",st.Twitch="Twitch",st.YouTube_Live="YouTube Live",st.Facebook_Live="Facebook Live",st.Do_Not_Broadcast="Do Not Broadcast"}(ae=N.Provider||(N.Provider={})),function(st){st.highlights="highlights",st.highlightsRecordVideo="highlightsRecordVideo",st.highlightsRecordScreenshot="highlightsRecordScreenshot"}(pe=N.SdkScopeType||(N.SdkScopeType={})),function(st){st.granted="granted",st.mustAsk="mustAsk",st.denied="denied"}(_e=N.SdkPermissions||(N.SdkPermissions={})),function(st){st.screenshot="screenshot",st.video="video"}(ke=N.Type||(N.Type={})),function(st){st.OpenIGO="OpenIGO",st.OpenFreestyle="OpenFreestyle",st.OpenAnsel="OpenAnsel",st.PTT="PTT",st.FPS="FPS",st.Screenshot="Screenshot",st.DVRSave="DVRSave",st.RecordToggle="RecordToggle",st.BroadcastToggle="BroadcastToggle",st.BroadcastPauseToggle="BroadcastPauseToggle",st.CameraToggle="CameraToggle",st.OverlayToggle="OverlayToggle",st.CustomOverlayA="CustomOverlayA",st.CustomOverlayB="CustomOverlayB",st.CustomOverlayC="CustomOverlayC",st.CommentsToggle="CommentsToggle",st.MicToggle="MicToggle",st.DVRToggle="DVRToggle",st.FreestyleToggle="FreestyleToggle",st.FreestylePresentCycle="FreestylePresentCycle",st.FreeStyleToggleStyle1="FreeStyleToggleStyle1",st.FreeStyleToggleStyle2="FreeStyleToggleStyle2",st.FreeStyleToggleStyle3="FreeStyleToggleStyle3",st.NativeKeyboardInputDialog="NativeKeyboardInputDialog",st.ConnectGfnBroadcastToggle="ConnectGfnBroadcastToggle",st.StatisticsToggle="StatisticsToggle",st.QuitGame="QuitGame",st.PMOCOverlay="PMOCOverlay",st.PMOCOverlayVisibility="PMOCOverlayVisibility",st.PMOCOverlayCycle="PMOCOverlayCycle",st.PMOCResetAverageMetrics="PMOCResetAverageMetrics",st.PMOCLoggingToggle="PMOCLoggingToggle",st.InStreamPaste="InStreamPaste"}(De=N.HotkeyEnum||(N.HotkeyEnum={})),function(st){st.custom="custom",st.customA="customA",st.customB="customB",st.customC="customC"}(Me=N.CustomOverlayTypeEnum||(N.CustomOverlayTypeEnum={})),function(st){st.record="record",st.gamecast="gamecast",st.fps="fps",st.viewer="viewer",st.rig="rig",st.webcam="webcam",st.comments="comments"}(je=N.IndicatorEnum||(N.IndicatorEnum={})),function(st){st.small="small",st.medium="medium",st.large="large"}($e=N.OverlaySizeEnum||(N.OverlaySizeEnum={})),function(st){st.leftTop="leftTop",st.leftCenter="leftCenter",st.leftBottom="leftBottom",st.rightTop="rightTop",st.rightCenter="rightCenter",st.rightBottom="rightBottom",st.centerTop="centerTop",st.centerCenter="centerCenter",st.centerBottom="centerBottom",st.floatingRandom="floatingRandom",st.floatingBorder="floatingBorder",st.none="none"}(Oe=N.OverlayPositionEnum||(N.OverlayPositionEnum={})),function(st){st.on="on",st.off="off",st.alwayson="alwayson",st.ptt="ptt"}(gt=N.MicModeEnum||(N.MicModeEnum={})),function(st){st.manual="manual",st.dvr="dvr",st.gameCast="gameCast",st.highlight="highlight",st.gearRecord="gearRecord",st.gearHighlight="gearHighlight",st.lastMode="lastMode",st.screenshot="screenshot"}(qt=N.CaptureModeEnum||(N.CaptureModeEnum={})),function(st){st.unknown="unknown",st.started="started",st.stopped="stopped",st.paused="paused",st.resumed="resumed"}(ye=N.CloudSessionStateType||(N.CloudSessionStateType={})),function(st){st[st.GXP_Success_Ok=0]="GXP_Success_Ok",st[st.GXP_Success_NoError=1]="GXP_Success_NoError",st[st.GXP_Error_NotImplemented=-2147467263]="GXP_Error_NotImplemented",st[st.GXP_Error_NoInterface=-2147467262]="GXP_Error_NoInterface",st[st.GXP_Error_InvalidPointer=-2147467261]="GXP_Error_InvalidPointer",st[st.GXP_Error_Abort=-2147467260]="GXP_Error_Abort",st[st.GXP_Error_Fail=-2147467259]="GXP_Error_Fail",st[st.GXP_Error_Unexpected=-2147468113]="GXP_Error_Unexpected",st[st.GXP_Error_FileNotFound=-2147024894]="GXP_Error_FileNotFound",st[st.GXP_Error_PathNotFound=-2147024893]="GXP_Error_PathNotFound",st[st.GXP_Error_InvalidHandle=-2147024890]="GXP_Error_InvalidHandle",st[st.GXP_Error_InvalidData=-2147024883]="GXP_Error_InvalidData",st[st.GXP_Error_OutOfMemory=-2147024882]="GXP_Error_OutOfMemory",st[st.GXP_Error_InvalidArg=-2147024809]="GXP_Error_InvalidArg",st[st.GXP_Error_TimeOut=-2147023436]="GXP_Error_TimeOut",st[st.GXP_Error_FileTooLarge=-2147024673]="GXP_Error_FileTooLarge",st[st.GXP_Error_MaxStartAttempts=-2146959359]="GXP_Error_MaxStartAttempts",st[st.ShadowPlay_OSC_ERR_GENERIC=-1]="ShadowPlay_OSC_ERR_GENERIC",st[st.ShadowPlay_OSC_ERR_INVALID_VER=-2]="ShadowPlay_OSC_ERR_INVALID_VER",st[st.ShadowPlay_OSC_ERR_CLIENT_UNINITIALIZED=-3]="ShadowPlay_OSC_ERR_CLIENT_UNINITIALIZED",st[st.ShadowPlay_OSC_ERR_SERVER_NOT_CONNECTED=-4]="ShadowPlay_OSC_ERR_SERVER_NOT_CONNECTED",st[st.ShadowPlay_OSC_ERR_SERVER_TIME_OUT=-5]="ShadowPlay_OSC_ERR_SERVER_TIME_OUT",st[st.ShadowPlay_OSC_ERR_SERVER_CANNOT_CONNECT=-6]="ShadowPlay_OSC_ERR_SERVER_CANNOT_CONNECT",st[st.ShadowPlay_OSC_ERR_STREAM_NOT_FOUND=-7]="ShadowPlay_OSC_ERR_STREAM_NOT_FOUND",st[st.ShadowPlay_OSC_ERR_INVALID_FORMAT=-8]="ShadowPlay_OSC_ERR_INVALID_FORMAT",st[st.ShadowPlay_OSC_ERR_INVALID_PARAMETERS=-9]="ShadowPlay_OSC_ERR_INVALID_PARAMETERS",st[st.ShadowPlay_OSC_ERR_DX=-10]="ShadowPlay_OSC_ERR_DX",st[st.ShadowPlay_OSC_ERR_MMF=-11]="ShadowPlay_OSC_ERR_MMF",st[st.ShadowPlay_OSC_ERR_INSUFFICIENT_BUFFER=-12]="ShadowPlay_OSC_ERR_INSUFFICIENT_BUFFER",st[st.ShadowPlay_OSC_ERR_NO_IMPLEMENTATION=-13]="ShadowPlay_OSC_ERR_NO_IMPLEMENTATION",st[st.ShadowPlay_OSC_ERR_STREAM_LOCKED=-14]="ShadowPlay_OSC_ERR_STREAM_LOCKED",st[st.ShadowPlay_OSC_ERR_ALREADY_REGISTERED=-15]="ShadowPlay_OSC_ERR_ALREADY_REGISTERED",st[st.ShadowPlay_OSC_ERR_ALREADY_CREATED=-16]="ShadowPlay_OSC_ERR_ALREADY_CREATED",st[st.ShadowPlay_OSC_ERR_PROTOBUF=-17]="ShadowPlay_OSC_ERR_PROTOBUF",st[st.ShadowPlay_OSC_ERR_NOTAVAILABLE=-18]="ShadowPlay_OSC_ERR_NOTAVAILABLE",st[st.ShadowPlay_OSC_ERR_OUT_OF_MEMORY=-19]="ShadowPlay_OSC_ERR_OUT_OF_MEMORY",st[st.ShadowPlay_OSC_ERR_ABANDONED=-20]="ShadowPlay_OSC_ERR_ABANDONED",st[st.ShadowPlay_OSC_ERR_INVALID_CALL=-21]="ShadowPlay_OSC_ERR_INVALID_CALL",st[st.ShadowPlay_OSC_ERR_NO_VALID_GAME_RUNNING=-22]="ShadowPlay_OSC_ERR_NO_VALID_GAME_RUNNING",st[st.ShadowPlay_E_SERVER_NOT_RUNNING=-2147220959]="ShadowPlay_E_SERVER_NOT_RUNNING",st[st.ShadowPlay_E_UNKNOWN_PROP_NAME=-2147220958]="ShadowPlay_E_UNKNOWN_PROP_NAME",st[st.ShadowPlay_E_INVALID_PROP_FORMAT=-2147220957]="ShadowPlay_E_INVALID_PROP_FORMAT",st[st.ShadowPlay_E_INVALID_PROP_VALUE=-2147220956]="ShadowPlay_E_INVALID_PROP_VALUE",st[st.ShadowPlay_E_UNKNOWN_CMD_NAME=-2147220955]="ShadowPlay_E_UNKNOWN_CMD_NAME",st[st.ShadowPlay_E_INVALID_CMD_FORMAT=-2147220954]="ShadowPlay_E_INVALID_CMD_FORMAT",st[st.ShadowPlay_E_INVALID_CMD_VERSION=-2147220953]="ShadowPlay_E_INVALID_CMD_VERSION",st[st.ShadowPlay_E_NOT_READY=-2147220952]="ShadowPlay_E_NOT_READY",st[st.ShadowPlay_E_SERVER_IN_EXCLUSIVE_MODE=-2147220951]="ShadowPlay_E_SERVER_IN_EXCLUSIVE_MODE",st[st.ShadowPlay_E_SERVER_IN_GAMECAST_MODE=-2147220950]="ShadowPlay_E_SERVER_IN_GAMECAST_MODE",st[st.ShadowPlay_E_CANNOT_CLAIM_H264_LICENSE=-2147220949]="ShadowPlay_E_CANNOT_CLAIM_H264_LICENSE",st[st.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_OS=-2147220948]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_OS",st[st.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_RAM=-2147220947]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_RAM",st[st.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_GPU=-2147220946]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_GPU",st[st.ShadowPlay_E_FAIL_ENABLE_SHADOWPLAY=-2147220945]="ShadowPlay_E_FAIL_ENABLE_SHADOWPLAY",st[st.ShadowPlayE_FAIL_ENABLE_NVFBC=-2147220944]="ShadowPlayE_FAIL_ENABLE_NVFBC",st[st.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_DRIVER=-2147220943]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_DRIVER",st[st.ShadowPlay_E_FAIL_ENABLE_NVFBC_TIMEOUT=-2147220942]="ShadowPlay_E_FAIL_ENABLE_NVFBC_TIMEOUT",st[st.ShadowPlay_E_FAIL_ENABLE_OSC=-2147220941]="ShadowPlay_E_FAIL_ENABLE_OSC",st[st.ShadowPlay_E_FAIL_ENABLE_HELPER=-2147220940]="ShadowPlay_E_FAIL_ENABLE_HELPER",st[st.ShadowPlay_E_FAIL_NO_GALLERY_SPACE=-2147220926]="ShadowPlay_E_FAIL_NO_GALLERY_SPACE",st[st.ShadowPlay_E_FAIL_NO_DISC_SPACE=-2147220938]="ShadowPlay_E_FAIL_NO_DISC_SPACE",st[st.ShadowPlay_E_FAIL_CAPTURE_DISABLED=-2147220937]="ShadowPlay_E_FAIL_CAPTURE_DISABLED",st[st.ShadowPlay_E_BOUNDS=-2147483637]="ShadowPlay_E_BOUNDS",st[st.ShadowPlay_E_NOT_VALID_STATE=-2147019873]="ShadowPlay_E_NOT_VALID_STATE",st[st.ShadowPlay_E_UNEXPECTED=-2147418113]="ShadowPlay_E_UNEXPECTED",st[st.GXP_Error_HotkeyInUse=-2146897916]="GXP_Error_HotkeyInUse"}(Re=N.InternalErrorCodeEnum||(N.InternalErrorCodeEnum={})),function(st){st.mic="mic",st.webcam="webcam"}(Ze=N.DeviceTypeEnum||(N.DeviceTypeEnum={})),function(st){st.plugged_in="plugged_in",st.plugged_out="plugged_out",st.enabled="enabled",st.disabled="disabled"}(et=N.DeviceStateTypeEnum||(N.DeviceStateTypeEnum={})),function(st){st.available="available",st.started="started",st.auto_pause="auto_pause",st.user_pause="user_pause",st.user_pause_auto_pause="user_pause_auto_pause",st.last="last",st.error="error",st.saved="saved",st.restarted_notifier="restarted_notifier",st.resumed_notifier="resumed_notifier",st.notifier_none="notifier_none",st.invalid="invalid",st.enabled="enabled",st.disabled="disabled"}(xt=N.RecordingState||(N.RecordingState={})),function(st){st.capture="capture",st.in_focus="in-focus",st.last_proc="last-proc"}(un=N.AppType||(N.AppType={})),function(st){st.off="off",st.game="game",st.mic="mic",st.both="both"}(ct=N.Mode||(N.Mode={})),function(st){st.main="main",st.permission="permission",st.highlightsSummary="highlightsSummary"}(Gt=N.State||(N.State={})),function(st){st.none="none",st.single="single",st.multiple="multiple"}(pn=N.SupportType||(N.SupportType={}))}(v||(v={}));var S,O=function(N){return N.Forager=p,N.Gear=m,N.Graphicssetting=_,N.Nvperfmon=P,N.Shareserver=v,N}(O||{});!function(N){let se;var ce;(ce=se=N.RollbackOptionsEnum||(N.RollbackOptionsEnum={}))[ce.Unknown=0]="Unknown",ce[ce.NoUI=1]="NoUI",ce[ce.RollbackUI=2]="RollbackUI"}(S||(S={}));var r,i,a,h,g,c,T,A,L,y=function(N){return N.Driverrollback=S,N}(y||{});!function(N){let se;var ae;let ce,Z,de;(ae=se=N.ActionStatusEnum||(N.ActionStatusEnum={}))[ae.ActionStarted=0]="ActionStarted",ae[ae.ActionRunning=1]="ActionRunning",ae[ae.ActionSuccess=2]="ActionSuccess",ae[ae.ActionFailure=3]="ActionFailure",ae[ae.ActionUnknown=4]="ActionUnknown",function(ae){ae[ae.Success=0]="Success",ae[ae.Failure=1]="Failure",ae[ae.Unknown=2]="Unknown"}(ce=N.ExeLaunchStatusEnum||(N.ExeLaunchStatusEnum={})),function(ae){ae[ae.NotInstalled=0]="NotInstalled",ae[ae.Installed=1]="Installed",ae[ae.Installing=2]="Installing",ae[ae.Uninstalling=3]="Uninstalling"}(Z=N.Status||(N.Status={})),function(ae){ae[ae.Install=0]="Install",ae[ae.Uninstall=1]="Uninstall"}(de=N.Action||(N.Action={}))}(r||(r={})),function(N){let se;var ae;let ce,Z,de;(ae=se=N.ErrorCodeEnum||(N.ErrorCodeEnum={}))[ae.NoError=0]="NoError",ae[ae.UserCancelled=-522190847]="UserCancelled",ae[ae.GeneralError=-505409537]="GeneralError",ae[ae.InvalidObject=-505413631]="InvalidObject",ae[ae.InsufficientArguments=-505413630]="InsufficientArguments",ae[ae.InvalidParameters=-505413629]="InvalidParameters",ae[ae.PropertyMissing=-505413628]="PropertyMissing",ae[ae.InvalidFormat=-505413627]="InvalidFormat",ae[ae.EmptyValue=-505413626]="EmptyValue",ae[ae.FileNotFound=-505413622]="FileNotFound",ae[ae.PathNotFound=-505413621]="PathNotFound",ae[ae.ProcessingPreviousCall=505413620]="ProcessingPreviousCall",ae[ae.InstallerAlreadyRunning=-505413619]="InstallerAlreadyRunning",ae[ae.MessagingChannel=-505413618]="MessagingChannel",ae[ae.ExtractedNotFound=-505413610]="ExtractedNotFound",ae[ae.InstallerExeNotFound=-505413608]="InstallerExeNotFound",ae[ae.GfeExperienceKeyNotFound=-505413607]="GfeExperienceKeyNotFound",ae[ae.GfeExperiencePathEmpty=-505413606]="GfeExperiencePathEmpty",ae[ae.SignatureInvalid=-505413605]="SignatureInvalid",ae[ae.UacCancelled=-505413600]="UacCancelled",ae[ae.MsgArrivedEventCreate=-505413599]="MsgArrivedEventCreate",ae[ae.MsgArrivedEventSignal=-505413598]="MsgArrivedEventSignal",ae[ae.ResumePathNotFound=-505413597]="ResumePathNotFound",ae[ae.ResumePathEmpty=-505413596]="ResumePathEmpty",ae[ae.ResumePathInvalid=-505413595]="ResumePathInvalid",ae[ae.MsgChannelInit=-505413584]="MsgChannelInit",ae[ae.MsgShowFormSet=-505413583]="MsgShowFormSet",ae[ae.MsgProgressUpdateSet=-505413582]="MsgProgressUpdateSet",ae[ae.MsgListen=-505413581]="MsgListen",function(ae){ae[ae.NotSet=0]="NotSet",ae[ae.ShowForm=1]="ShowForm",ae[ae.ProgressUpdate=2]="ProgressUpdate"}(ce=N.MethodEnum||(N.MethodEnum={})),function(ae){ae[ae.NotSet=0]="NotSet",ae[ae.InstallInitial=1]="InstallInitial",ae[ae.InstallChecking=2]="InstallChecking",ae[ae.InstallCheckWarnings=3]="InstallCheckWarnings",ae[ae.InstallCheckFailed=4]="InstallCheckFailed",ae[ae.InstallCheckWait=5]="InstallCheckWait",ae[ae.Eula=6]="Eula",ae[ae.InstallSelect=7]="InstallSelect",ae[ae.InstallSelectCustom=8]="InstallSelectCustom",ae[ae.InstallSelectInstallPath=9]="InstallSelectInstallPath",ae[ae.PreInstallCheck=10]="PreInstallCheck",ae[ae.PreInstallCheckRetry=11]="PreInstallCheckRetry",ae[ae.PreInstallCheckWait=12]="PreInstallCheckWait",ae[ae.PreRebootInstall=13]="PreRebootInstall",ae[ae.PackageDownloadProgress=14]="PackageDownloadProgress",ae[ae.ProcessDownloadedPackage=15]="ProcessDownloadedPackage",ae[ae.PackageDownloadFailed=16]="PackageDownloadFailed",ae[ae.InstallProgress=17]="InstallProgress",ae[ae.InstallRemoveProgress=18]="InstallRemoveProgress",ae[ae.InstallFinished=19]="InstallFinished",ae[ae.InstallFinishedNoSummary=20]="InstallFinishedNoSummary",ae[ae.InstallFinishedLaunch=21]="InstallFinishedLaunch",ae[ae.InstallFinishedNoSummaryLaunch=22]="InstallFinishedNoSummaryLaunch",ae[ae.InstallFinishedOptions=23]="InstallFinishedOptions",ae[ae.InstallFinishedNoSummaryOptions=24]="InstallFinishedNoSummaryOptions",ae[ae.InstallReboot=25]="InstallReboot",ae[ae.InstallRebootOptions=26]="InstallRebootOptions",ae[ae.InstallRebootNoSummary=27]="InstallRebootNoSummary",ae[ae.InstallRebootNoSummaryOptions=28]="InstallRebootNoSummaryOptions",ae[ae.InstallRemoveReboot=29]="InstallRemoveReboot",ae[ae.InstallFailed=30]="InstallFailed",ae[ae.WaitingOnUac=31]="WaitingOnUac"}(Z=N.FormEnum||(N.FormEnum={})),function(ae){ae[ae.Next=0]="Next",ae[ae.Close=1]="Close"}(de=N.NextActionEnum||(N.NextActionEnum={}))}(i||(i={})),function(N){let se;var de;let ce,Z;(de=se=N.DriverTypeEnum||(N.DriverTypeEnum={}))[de.GameReadyDriver=0]="GameReadyDriver",de[de.CreatorReadyDriver=1]="CreatorReadyDriver",function(de){de[de.WsRecommendedDriver=2]="WsRecommendedDriver",de[de.WsLeadingEdgeDriver=3]="WsLeadingEdgeDriver",de[de.WsConservativeDriver=4]="WsConservativeDriver"}(ce=N.UpdateStrategyEnum||(N.UpdateStrategyEnum={})),function(de){de.started="started",de.finished="finished",de.failed="failed",de.cancelled="cancelled"}(Z=N.DriverUpdateCheckProgress||(N.DriverUpdateCheckProgress={}))}(a||(a={})),function(N){let se;var ke;let ce,Z,de,ae,pe,_e;(ke=se=N.ApplicationScanType||(N.ApplicationScanType={})).fast="fast",ke.traditional="traditional",function(ke){ke.STRING="STRING",ke.INT="INT",ke.FLOAT="FLOAT",ke.ENUM="ENUM",ke.BOOL="BOOL",ke.DRIVER_ENUM="DRIVER_ENUM"}(ce=N.Type||(N.Type={})),function(ke){ke.AC="AC",ke.DC="DC"}(Z=N.ApplicationPowerMode||(N.ApplicationPowerMode={})),function(ke){ke.DISABLED="DISABLED",ke.UNOPTIMIZED="UNOPTIMIZED",ke.CUSTOMIZED="CUSTOMIZED",ke.OPTIMIZED="OPTIMIZED"}(de=N.OptimizationState||(N.OptimizationState={})),function(ke){ke.started="started",ke.finished="finished",ke.failed="failed",ke.progress="progress"}(ae=N.Status||(N.Status={})),function(ke){ke[ke.Invalid=-1]="Invalid",ke[ke.Notifications=0]="Notifications",ke[ke.Display=1]="Display"}(pe=N.PageId||(N.PageId={})),function(ke){ke[ke.STARTED=1]="STARTED",ke[ke.FINISHED=2]="FINISHED"}(_e=N.OotbStatus||(N.OotbStatus={}))}(h||(h={})),function(N){let se;var ye;let ce,Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt,qt;(ye=se=N.RamType||(N.RamType={}))[ye.UNKNOWN=0]="UNKNOWN",ye[ye.SDRAM=1]="SDRAM",ye[ye.DDR1=2]="DDR1",ye[ye.DDR2=3]="DDR2",ye[ye.GDDR2=4]="GDDR2",ye[ye.GDDR3=5]="GDDR3",ye[ye.GDDR4=6]="GDDR4",ye[ye.DDR3=7]="DDR3",ye[ye.GDDR5=8]="GDDR5",ye[ye.GDDR5X=9]="GDDR5X",ye[ye.HBM1=10]="HBM1",ye[ye.HBM2=11]="HBM2",ye[ye.SDDR4=12]="SDDR4",ye[ye.GDDR6=14]="GDDR6",ye[ye.GDDR6X=15]="GDDR6X",function(ye){ye[ye.UNKNOWN=0]="UNKNOWN",ye[ye.AGP=1]="AGP",ye[ye.PCI=2]="PCI",ye[ye.FPCI=3]="FPCI",ye[ye.PCI_EXPRESS=4]="PCI_EXPRESS",ye[ye.PCI_EXPRESS_GEN2=5]="PCI_EXPRESS_GEN2",ye[ye.PCI_EXPRESS_GEN3=6]="PCI_EXPRESS_GEN3",ye[ye.PCI_EXPRESS_GEN4=7]="PCI_EXPRESS_GEN4",ye[ye.AXI=8]="AXI"}(ce=N.BusType||(N.BusType={})),function(ye){ye[ye.No=0]="No",ye[ye.On=1]="On",ye[ye.Yes=2]="Yes"}(Z=N.MaxQType||(N.MaxQType={})),function(ye){ye[ye.SuperResValue_Off=0]="SuperResValue_Off",ye[ye.SuperResValue_1=1]="SuperResValue_1",ye[ye.SuperResValue_2=2]="SuperResValue_2",ye[ye.SuperResValue_3=3]="SuperResValue_3",ye[ye.SuperResValue_4=4]="SuperResValue_4",ye[ye.SuperResValue_Auto=5]="SuperResValue_Auto"}(de=N.SuperResolutionValue||(N.SuperResolutionValue={})),function(ye){ye[ye.SuperResStatus_Off=0]="SuperResStatus_Off",ye[ye.SuperResStatus_1=1]="SuperResStatus_1",ye[ye.SuperResStatus_2=2]="SuperResStatus_2",ye[ye.SuperResStatus_3=3]="SuperResStatus_3",ye[ye.SuperResStatus_4=4]="SuperResStatus_4"}(ae=N.SuperResolutionStatus||(N.SuperResolutionStatus={})),function(ye){ye[ye.SUCCESS=0]="SUCCESS",ye[ye.NO_HDR_DISPLAY_CONNECTED=1]="NO_HDR_DISPLAY_CONNECTED",ye[ye.ENABLE_HDR_FROM_WINDOWS=2]="ENABLE_HDR_FROM_WINDOWS",ye[ye.SURROUND_ENABLED=3]="SURROUND_ENABLED"}(pe=N.HdrErrorCodeInfo||(N.HdrErrorCodeInfo={})),function(ye){ye[ye.RGB=0]="RGB",ye[ye.YCBCR422=1]="YCBCR422",ye[ye.YCBCR444=2]="YCBCR444",ye[ye.YCBCR420=3]="YCBCR420",ye[ye.UNKNOWN=4]="UNKNOWN"}(_e=N.OutPutColorFormat||(N.OutPutColorFormat={})),function(ye){ye[ye.GsyncUltimate=0]="GsyncUltimate",ye[ye.GSyncCapable=1]="GSyncCapable",ye[ye.GSyncCompatible=2]="GSyncCompatible",ye[ye.VRR=3]="VRR",ye[ye.NotSupported=4]="NotSupported"}(ke=N.GSyncCapabilities||(N.GSyncCapabilities={})),function(ye){ye[ye.Off=0]="Off",ye[ye.FullscreenOnly=1]="FullscreenOnly",ye[ye.FullscreenAndWindowed=2]="FullscreenAndWindowed",ye[ye.NotAvailable=3]="NotAvailable"}(De=N.GlobalGsyncState||(N.GlobalGsyncState={})),function(ye){ye[ye.None=0]="None",ye[ye.NonHD=1]="NonHD",ye[ye.SD576i=2]="SD576i",ye[ye.SD480i=3]="SD480i",ye[ye.ED480p=4]="ED480p",ye[ye.ED576p=5]="ED576p",ye[ye.HD720p=6]="HD720p",ye[ye.HD1080i=7]="HD1080i",ye[ye.HD1080p=8]="HD1080p",ye[ye.HD720p50=9]="HD720p50",ye[ye.HD1080p24=10]="HD1080p24",ye[ye.HD1080i50=11]="HD1080i50",ye[ye.HD1080p50=12]="HD1080p50",ye[ye.UHD4Kp30=13]="UHD4Kp30",ye[ye.UHD4Kp25=14]="UHD4Kp25",ye[ye.UHD4Kp24=15]="UHD4Kp24",ye[ye.UHD4Kp24Smpte=16]="UHD4Kp24Smpte",ye[ye.UHD4Kp303840=17]="UHD4Kp303840",ye[ye.UHD4Kp253840=18]="UHD4Kp253840",ye[ye.UHD4Kp243840=19]="UHD4Kp243840",ye[ye.UHD4Kp503840=20]="UHD4Kp503840",ye[ye.UHD4Kp603840=21]="UHD4Kp603840",ye[ye.UHD4Kp304096=22]="UHD4Kp304096",ye[ye.UHD4Kp254096=23]="UHD4Kp254096",ye[ye.UHD4Kp244096=24]="UHD4Kp244096",ye[ye.UHD4Kp504096=25]="UHD4Kp504096",ye[ye.UHD4Kp604096=26]="UHD4Kp604096",ye[ye.UHD8Kp247680=27]="UHD8Kp247680",ye[ye.UHD8Kp257680=28]="UHD8Kp257680",ye[ye.UHD8Kp307680=29]="UHD8Kp307680",ye[ye.UHD8Kp487680=30]="UHD8Kp487680",ye[ye.UHD8Kp507680=31]="UHD8Kp507680",ye[ye.UHD8Kp607680=32]="UHD8Kp607680",ye[ye.UHD8Kp1007680=33]="UHD8Kp1007680",ye[ye.UHD8Kp1207680=34]="UHD8Kp1207680",ye[ye.Invalid=35]="Invalid"}(Me=N.TvFormat||(N.TvFormat={})),function(ye){ye[ye.CT_VGA=0]="CT_VGA",ye[ye.CT_DVI=1]="CT_DVI",ye[ye.CT_COMPOSITE=2]="CT_COMPOSITE",ye[ye.CT_SVIDEO=3]="CT_SVIDEO",ye[ye.CT_COMPONENT=4]="CT_COMPONENT",ye[ye.CT_HDMI=5]="CT_HDMI",ye[ye.CT_DISPLAYPORT=6]="CT_DISPLAYPORT",ye[ye.CT_USBC=7]="CT_USBC",ye[ye.CT_LVDS=8]="CT_LVDS",ye[ye.CT_AUTO=9]="CT_AUTO",ye[ye.CT_UNKNOWN=10]="CT_UNKNOWN"}(je=N.ConnectorType||(N.ConnectorType={})),function(ye){ye[ye.bit_8=0]="bit_8",ye[ye.bit_10=1]="bit_10",ye[ye.bit_16=2]="bit_16",ye[ye.bit_16_HDR=3]="bit_16_HDR",ye[ye.bit_16_WCG=4]="bit_16_WCG",ye[ye.bit_Default=-1]="bit_Default"}($e=N.DesktopColorDepth||(N.DesktopColorDepth={})),function(ye){ye[ye.None=0]="None",ye[ye.Crt=1]="Crt",ye[ye.Internal=2]="Internal",ye[ye.Tv=3]="Tv",ye[ye.Dvi=4]="Dvi"}(Oe=N.DeviceType||(N.DeviceType={})),function(ye){ye[ye.Rotation0=0]="Rotation0",ye[ye.Rotation90=1]="Rotation90",ye[ye.Rotation180=2]="Rotation180",ye[ye.Rotation270=3]="Rotation270"}(gt=N.RotationType||(N.RotationType={})),function(ye){ye[ye.None=0]="None",ye[ye.CloneDisplay=1]="CloneDisplay",ye[ye.SurroundDisplay=2]="SurroundDisplay",ye[ye.MosaicDisplay=3]="MosaicDisplay"}(qt=N.LogicalDisplayType||(N.LogicalDisplayType={}))}(g||(g={})),function(N){let se;var rn;let ce,Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt,qt,ye,Re,Ze,et,xt,un,ct,Gt,pn,st,mn,Bn,En,Cn,fn,dt,nn,yn,Xn;(rn=se=N.ProfileSettingType||(N.ProfileSettingType={}))[rn.type_invalid=-1]="type_invalid",rn[rn.type_integer=0]="type_integer",rn[rn.type_string=1]="type_string",rn[rn.type_boolean=2]="type_boolean",rn[rn.type_json_string=3]="type_json_string",function(rn){rn[rn.UNKNOWN=0]="UNKNOWN",rn[rn.SUPPORTED=1]="SUPPORTED",rn[rn.UNSUPPORTED=2]="UNSUPPORTED"}(ce=N.HwSupportType||(N.HwSupportType={})),function(rn){rn[rn.NVCPLAPI_VALUE_TRILINEAR_OPT_ON=0]="NVCPLAPI_VALUE_TRILINEAR_OPT_ON",rn[rn.NVCPLAPI_VALUE_TRILINEAR_OPT_OFF=1]="NVCPLAPI_VALUE_TRILINEAR_OPT_OFF"}(Z=N.TextureFilteringTrilinearValue||(N.TextureFilteringTrilinearValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_APPCONTROLLED=0]="NVCPLAPI_VALUE_VERTICAL_SYNC_APPCONTROLLED",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEOFF=1]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEOFF",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON=2]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON_INTERVAL2=3]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON_INTERVAL2",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO=4]="NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO_INTERVAL2=5]="NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO_INTERVAL2",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_SMOOTH=6]="NVCPLAPI_VALUE_VERTICAL_SYNC_SMOOTH",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_ENABLE=8]="NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_ENABLE",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_NONE=9]="NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_NONE",rn[rn.NVCPLAPI_VALUE_VERTICAL_SYNC_VIRTUAL=10]="NVCPLAPI_VALUE_VERTICAL_SYNC_VIRTUAL"}(de=N.VerticalSyncValue||(N.VerticalSyncValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_AUTO=0]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_AUTO",rn[rn.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_ON=1]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_ON",rn[rn.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_OFF=2]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_OFF"}(ae=N.ThreadedOptimizationValue||(N.ThreadedOptimizationValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_OFF=0]="NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_OFF",rn[rn.NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_ON=1]="NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_ON"}(pe=N.EnableOverlayValue||(N.EnableOverlayValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_NONE=0]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_NONE",rn[rn.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI=1]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI",rn[rn.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_RGBA=2]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_RGBA",rn[rn.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI_AND_RGBA=3]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI_AND_RGBA"}(_e=N.ExportedpixeltypesValue||(N.ExportedpixeltypesValue={})),function(rn){rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DISABLED=0]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DISABLED",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_128=1]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_128",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_256=2]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_256",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_512=3]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_512",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_1GB=4]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_1GB",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_5GB=5]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_5GB",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_10GB=6]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_10GB",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_100GB=7]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_100GB",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_Unlimited=8]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_Unlimited",rn[rn.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DEFAULT=9]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DEFAULT"}(ke=N.ShaderCacheValue||(N.ShaderCacheValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_NONE=0]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_NONE",rn[rn.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_ONE=1]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_ONE",rn[rn.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_TWO=2]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_TWO",rn[rn.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_THREE=3]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_THREE",rn[rn.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_FOUR=4]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_FOUR"}(De=N.VirtualRealityPreRenderedFramesValue||(N.VirtualRealityPreRenderedFramesValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_PREFERRED_REFRATE_APP_CONTROL=0]="NVCPLAPI_VALUE_PREFERRED_REFRATE_APP_CONTROL",rn[rn.NVCPLAPI_VALUE_PREFERRED_REFRATE_OVERRIDE=1]="NVCPLAPI_VALUE_PREFERRED_REFRATE_OVERRIDE"}(Me=N.PreferredRefreshRateValue||(N.PreferredRefreshRateValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_ADAPTIVE=0]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_ADAPTIVE",rn[rn.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_MAX=1]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_MAX",rn[rn.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_DRIVER_CONTROLLED=2]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_DRIVER_CONTROLLED",rn[rn.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_PREFER_CONSISTENT_PERFORMANCE=3]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_PREFER_CONSISTENT_PERFORMANCE",rn[rn.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER=5]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER"}(je=N.PowerManagementModeValue||(N.PowerManagementModeValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED=0]="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED",rn[rn.NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED=1]="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED"}($e=N.ImageSharpeningToggleValue||(N.ImageSharpeningToggleValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED=0]="NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED",rn[rn.NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED=1]="NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED"}(Oe=N.ImageSharpeningAllowValue||(N.ImageSharpeningAllowValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_WHISPER_MODE_FPS_OFF=0]="NVCPLAPI_VALUE_WHISPER_MODE_FPS_OFF",rn[rn.NVCPLAPI_VALUE_WHISPER_MODE_FPS_ON=1]="NVCPLAPI_VALUE_WHISPER_MODE_FPS_ON"}(gt=N.WhisperModeProgramValue||(N.WhisperModeProgramValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_LOW=0]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_LOW",rn[rn.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_MEDIUM=1]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_MEDIUM",rn[rn.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_HIGH=2]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_HIGH",rn[rn.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_ULTRA=3]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_ULTRA",rn[rn.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_OFF=4]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_OFF"}(qt=N.SilkSmoothnessValue||(N.SilkSmoothnessValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_LATENCY_MODE_BEST_PERFORMANCE=0]="NVCPLAPI_VALUE_LATENCY_MODE_BEST_PERFORMANCE",rn[rn.NVCPLAPI_VALUE_LATENCY_MODE_LOW_LATENCY=1]="NVCPLAPI_VALUE_LATENCY_MODE_LOW_LATENCY",rn[rn.NVCPLAPI_VALUE_LATENCY_MODE_LOWEST_LATENCY=2]="NVCPLAPI_VALUE_LATENCY_MODE_LOWEST_LATENCY"}(ye=N.LowLatencyModeValue||(N.LowLatencyModeValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_VR_AUTOVRS_OFF=0]="NVCPLAPI_VALUE_VR_AUTOVRS_OFF",rn[rn.NVCPLAPI_VALUE_VR_AUTOVRS_FORCED=1]="NVCPLAPI_VALUE_VR_AUTOVRS_FORCED",rn[rn.NVCPLAPI_VALUE_VR_AUTOVRS_ADAPTIVE=2]="NVCPLAPI_VALUE_VR_AUTOVRS_ADAPTIVE"}(Re=N.VirtualRealityVrssValue||(N.VirtualRealityVrssValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_AUTOFL_DB_OFF=0]="NVCPLAPI_VALUE_AUTOFL_DB_OFF",rn[rn.NVCPLAPI_VALUE_AUTOFL_DB_ON=1]="NVCPLAPI_VALUE_AUTOFL_DB_ON"}(Ze=N.MaxqDynamicBoostValue||(N.MaxqDynamicBoostValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_OFF=0]="NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_OFF",rn[rn.NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_ON=1]="NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_ON"}(et=N.AutoDisplaySwitchingValue||(N.AutoDisplaySwitchingValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_DISABLED=0]="NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_DISABLED",rn[rn.NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_ENABLED=1]="NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_ENABLED"}(xt=N.WhisperModeGlobalValue||(N.WhisperModeGlobalValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_MT_GSYNC_ON=0]="NVCPLAPI_VALUE_MT_GSYNC_ON",rn[rn.NVCPLAPI_VALUE_MT_GSYNC_FORCE_OFF=1]="NVCPLAPI_VALUE_MT_GSYNC_FORCE_OFF",rn[rn.NVCPLAPI_VALUE_MT_VRR_OFF=2]="NVCPLAPI_VALUE_MT_VRR_OFF",rn[rn.NVCPLAPI_VALUE_MT_ULMB_ON=3]="NVCPLAPI_VALUE_MT_ULMB_ON",rn[rn.NVCPLAPI_VALUE_MT_FIXED_REFRESH=4]="NVCPLAPI_VALUE_MT_FIXED_REFRESH"}(un=N.MonitorTechnologyValue||(N.MonitorTechnologyValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_OFF=0]="NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_OFF",rn[rn.NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_SELF_REFRESH_MODE=1]="NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_SELF_REFRESH_MODE"}(ct=N.PowerManagementPanelValue||(N.PowerManagementPanelValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_ENABLE_STEREO_OFF=0]="NVCPLAPI_VALUE_ENABLE_STEREO_OFF",rn[rn.NVCPLAPI_VALUE_ENABLE_STEREO_ON=1]="NVCPLAPI_VALUE_ENABLE_STEREO_ON"}(Gt=N.StereoEnableValue||(N.StereoEnableValue={})),function(rn){rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN=1]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN_NV_IR=2]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN_NV_IR",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DP_INBAND=3]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DP_INBAND",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC=4]="NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC_NV_IR=5]="NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC_NV_IR",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_DDC_GLASSES=6]="NVAPPAPI_VALUE_STEREO_DISPLAY_DDC_GLASSES",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE=7]="NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE_DLP=8]="NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE_DLP",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_BLUELINE=9]="NVAPPAPI_VALUE_STEREO_DISPLAY_BLUELINE",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_VERTICAL_INTERLACE=10]="NVAPPAPI_VALUE_STEREO_DISPLAY_VERTICAL_INTERLACE",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_COLOR_INTERLEAVE=11]="NVAPPAPI_VALUE_STEREO_DISPLAY_COLOR_INTERLEAVE",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_HORIZONTAL_INTERLACE=12]="NVAPPAPI_VALUE_STEREO_DISPLAY_HORIZONTAL_INTERLACE",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_SUBFIELD=13]="NVAPPAPI_VALUE_STEREO_DISPLAY_SUBFIELD",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_SIDEFIELD=14]="NVAPPAPI_VALUE_STEREO_DISPLAY_SIDEFIELD",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_SEEFRONT=15]="NVAPPAPI_VALUE_STEREO_DISPLAY_SEEFRONT",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP=16]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_NV_IR=17]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_NV_IR",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV=18]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV_NV_IR=19]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV_NV_IR",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_SL_SV=20]="NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_SL_SV",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_MV=21]="NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_MV",rn[rn.NVAPPAPI_VALUE_STEREO_DISPLAY_PLANAR_MIRROR=22]="NVAPPAPI_VALUE_STEREO_DISPLAY_PLANAR_MIRROR",rn[rn.NVAPPAPI_VALUE_NVIDIA_RECOMMENDED=23]="NVAPPAPI_VALUE_NVIDIA_RECOMMENDED"}(pn=N.StereoDisplayModeValue||(N.StereoDisplayModeValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_OFF=0]="NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_OFF",rn[rn.NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_ON=1]="NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_ON"}(st=N.StereoSwapEyeValue||(N.StereoSwapEyeValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_STEREO_SWAP_APPLICATION_CONTROL=0]="NVCPLAPI_VALUE_STEREO_SWAP_APPLICATION_CONTROL",rn[rn.NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE=1]="NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE",rn[rn.NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE_PAIR=2]="NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE_PAIR"}(mn=N.StereoSwapModeValue||(N.StereoSwapModeValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_OFF=0]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_OFF",rn[rn.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ON=1]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ON",rn[rn.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ENHANCE=2]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ENHANCE",rn[rn.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_FORCE_OFF=3]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_FORCE_OFF"}(Bn=N.AntialiasingModeValue||(N.AntialiasingModeValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_SLI_MGPU_AUTORENDER=0]="NVCPLAPI_VALUE_SLI_MGPU_AUTORENDER",rn[rn.NVCPLAPI_VALUE_SLI_MGPU_FORCE_SINGLE=4]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_SINGLE",rn[rn.NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR=3]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR",rn[rn.NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR2=61443]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR2"}(En=N.SliMultiGpuRenderingModeValue||(N.SliMultiGpuRenderingModeValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_DISABLE=0]="NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_DISABLE",rn[rn.NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_ENABLE=1]="NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_ENABLE"}(Cn=N.DeepColorFor3DApplicationsValue||(N.DeepColorFor3DApplicationsValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_NONE=0]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_NONE",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_APP_CONTROLLED=1048576]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_APP_CONTROLLED",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_2X_DIAGONAL=14]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_2X_DIAGONAL",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_4X=16]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_4X",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_8SX=24]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_8SX",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_8X=25]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_8X",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_16X=26]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_16X",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_32X=41]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_32X",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_64X=42]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_64X",rn[rn.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_128X=43]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_128X"}(fn=N.AntialiasingSettingValue||(N.AntialiasingSettingValue={})),function(rn){rn[rn.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_OFF=0]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_OFF",rn[rn.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_MULTI_SAMPLING=3]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_MULTI_SAMPLING",rn[rn.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_SUPER_SAMPLING=5]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_SUPER_SAMPLING",rn[rn.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_1X=1]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_1X",rn[rn.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_2X=2]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_2X",rn[rn.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_4X=4]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_4X",rn[rn.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_8X=8]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_8X"}(dt=N.AntialiasingTransparencyValue||(N.AntialiasingTransparencyValue={})),function(rn){rn[rn.V1=1]="V1",rn[rn.V2=2]="V2"}(nn=N.BatteryBoostVersionEnum||(N.BatteryBoostVersionEnum={})),function(rn){rn[rn.V1=1]="V1",rn[rn.V2=2]="V2"}(yn=N.WhisperModeVersionEnum||(N.WhisperModeVersionEnum={})),function(rn){rn[rn.QUIETER=1]="QUIETER",rn[rn.QUIET=2]="QUIET",rn[rn.BALANCED=3]="BALANCED"}(Xn=N.FanVolume||(N.FanVolume={}))}(c||(c={})),function(N){let se;var Z;let ce;(Z=se=N.HotkeyEnum||(N.HotkeyEnum={})).OpenIGO="OpenIGO",Z.OpenPerformanceOverlay="OpenPerformanceOverlay",function(Z){Z.unknown="unknown",Z.enabled="enabled",Z.disabled="disabled"}(ce=N.ShadowPlayStatus||(N.ShadowPlayStatus={}))}(T||(T={})),function(N){let se;var ae;let ce,Z,de;(ae=se=N.Type||(N.Type={}))[ae.Unknown=0]="Unknown",ae[ae.GpuClock=1]="GpuClock",ae[ae.MemoryClock=2]="MemoryClock",ae[ae.Voltage=3]="Voltage",ae[ae.Power=4]="Power",ae[ae.Temperature=5]="Temperature",ae[ae.Fan=6]="Fan",function(ae){ae[ae.None=0]="None",ae[ae.ManualOc=1]="ManualOc",ae[ae.AutomaticOc=2]="AutomaticOc"}(ce=N.PersitenceType||(N.PersitenceType={})),function(ae){ae[ae.Default=0]="Default",ae[ae.Custom=1]="Custom",ae[ae.Silent=2]="Silent",ae[ae.MaxPerf=3]="MaxPerf"}(Z=N.ProfileType||(N.ProfileType={})),function(ae){ae[ae.AC=0]="AC",ae[ae.DC=1]="DC",ae[ae.UPS_LIKE=2]="UPS_LIKE",ae[ae.Unknown=3]="Unknown"}(de=N.PowerStatus||(N.PowerStatus={}))}(A||(A={})),function(N){let se;var Z;let ce;(Z=se=N.Type||(N.Type={}))[Z.Unknown=0]="Unknown",Z[Z.GpuClock=1]="GpuClock",Z[Z.MemoryClock=2]="MemoryClock",Z[Z.Voltage=3]="Voltage",Z[Z.Power=4]="Power",Z[Z.Temperature=5]="Temperature",Z[Z.Fan=6]="Fan",function(Z){Z[Z.Default=0]="Default",Z[Z.Custom=1]="Custom",Z[Z.Silent=2]="Silent",Z[Z.MaxPerf=3]="MaxPerf"}(ce=N.Profile||(N.Profile={}))}(L||(L={}));var V,D,x=function(N){return N.Appdiscovery=r,N.Driverinstall=i,N.Driverupdaterecommendation=a,N.Localgames=h,N.Nvcpldisplayplugin=g,N.Nvcplplugin=c,N.Nvigoutil=T,N.Nvoc=A,N.Overclockingnvc=L,N}(x||{});!function(N){let se;var ce;(ce=se=N.StreamerStatus||(N.StreamerStatus={})).Init="Init",ce.NetworkTest="NetworkTest",ce.Loading="Loading",ce.Streaming="Streaming",ce.Done="Done",ce.Error="Error",ce.GotInputFocus="GotInputFocus",ce.LostInputFocus="LostInputFocus",ce.UpdateCheck="UpdateCheck",ce.PreStreaming="PreStreaming",ce.Authentication="Authentication",ce.Authorization="Authorization",ce.PlatformSelection="PlatformSelection",ce.AccountLinking="AccountLinking",ce.PostSessionConnection="PostSessionConnection",ce.PostStreaming="PostStreaming",ce.ResumableError="ResumableError",ce.TerminalError="TerminalError"}(V||(V={})),function(N){let se;var Z;let ce;(Z=se=N.Codec||(N.Codec={})).H264="H264",Z.H265="H265",Z.AV1="AV1",Z.None="None",function(Z){Z[Z.UNKNOWN=0]="UNKNOWN",Z[Z.START=1]="START",Z[Z.PAUSE=2]="PAUSE",Z[Z.RESUME=3]="RESUME",Z[Z.FINISH=4]="FINISH",Z[Z.CANCEL=5]="CANCEL",Z[Z.MAX=6]="MAX"}(ce=N.AdAction||(N.AdAction={}))}(D||(D={}));var I,k,R,F=function(N){return N.Gfnsdkhost=V,N.Streaming=D,N}(F||{});!function(N){let se;var ae;let ce,Z,de;(ae=se=N.ErrorCodeEnum||(N.ErrorCodeEnum={}))[ae.NoError=0]="NoError",ae[ae.GeneralError=-505409537]="GeneralError",ae[ae.InvalidObject=-505413631]="InvalidObject",ae[ae.InsufficientArguments=-505413630]="InsufficientArguments",ae[ae.InvalidParameters=-505413629]="InvalidParameters",ae[ae.PropertyMissing=-505413628]="PropertyMissing",ae[ae.InvalidFormat=-505413627]="InvalidFormat",ae[ae.EmptyValue=-505413626]="EmptyValue",ae[ae.FileNotFound=-505413622]="FileNotFound",ae[ae.PathNotFound=-505413621]="PathNotFound",ae[ae.ProcessingPreviousCall=505413620]="ProcessingPreviousCall",ae[ae.InstallerAlreadyRunning=-505413619]="InstallerAlreadyRunning",ae[ae.MessagingChannel=-505413618]="MessagingChannel",ae[ae.ExtractedNotFound=-505413610]="ExtractedNotFound",ae[ae.InstallerExeNotFound=-505413608]="InstallerExeNotFound",ae[ae.GfeExperienceKeyNotFound=-505413607]="GfeExperienceKeyNotFound",ae[ae.GfeExperiencePathEmpty=-505413606]="GfeExperiencePathEmpty",ae[ae.SignatureInvalid=-505413605]="SignatureInvalid",ae[ae.UacCancelled=-505413600]="UacCancelled",ae[ae.MsgArrivedEventCreate=-505413599]="MsgArrivedEventCreate",ae[ae.MsgArrivedEventSignal=-505413598]="MsgArrivedEventSignal",ae[ae.ResumePathNotFound=-505413597]="ResumePathNotFound",ae[ae.ResumePathEmpty=-505413596]="ResumePathEmpty",ae[ae.ResumePathInvalid=-505413595]="ResumePathInvalid",ae[ae.MsgChannelInit=-505413584]="MsgChannelInit",ae[ae.MsgShowFormSet=-505413583]="MsgShowFormSet",ae[ae.MsgProgressUpdateSet=-505413582]="MsgProgressUpdateSet",ae[ae.MsgListen=-505413581]="MsgListen",function(ae){ae[ae.NotSet=0]="NotSet",ae[ae.ShowForm=1]="ShowForm",ae[ae.ProgressUpdate=2]="ProgressUpdate"}(ce=N.MethodEnum||(N.MethodEnum={})),function(ae){ae[ae.NotSet=0]="NotSet",ae[ae.InstallInitial=1]="InstallInitial",ae[ae.InstallChecking=2]="InstallChecking",ae[ae.InstallCheckWarnings=3]="InstallCheckWarnings",ae[ae.InstallCheckFailed=4]="InstallCheckFailed",ae[ae.InstallCheckWait=5]="InstallCheckWait",ae[ae.Eula=6]="Eula",ae[ae.InstallSelect=7]="InstallSelect",ae[ae.InstallSelectCustom=8]="InstallSelectCustom",ae[ae.InstallSelectInstallPath=9]="InstallSelectInstallPath",ae[ae.PreInstallCheck=10]="PreInstallCheck",ae[ae.PreInstallCheckRetry=11]="PreInstallCheckRetry",ae[ae.PreInstallCheckWait=12]="PreInstallCheckWait",ae[ae.PreRebootInstall=13]="PreRebootInstall",ae[ae.PackageDownloadProgress=14]="PackageDownloadProgress",ae[ae.ProcessDownloadedPackage=15]="ProcessDownloadedPackage",ae[ae.PackageDownloadFailed=16]="PackageDownloadFailed",ae[ae.InstallProgress=17]="InstallProgress",ae[ae.InstallRemoveProgress=18]="InstallRemoveProgress",ae[ae.InstallFinished=19]="InstallFinished",ae[ae.InstallFinishedNoSummary=20]="InstallFinishedNoSummary",ae[ae.InstallFinishedLaunch=21]="InstallFinishedLaunch",ae[ae.InstallFinishedNoSummaryLaunch=22]="InstallFinishedNoSummaryLaunch",ae[ae.InstallFinishedOptions=23]="InstallFinishedOptions",ae[ae.InstallFinishedNoSummaryOptions=24]="InstallFinishedNoSummaryOptions",ae[ae.InstallReboot=25]="InstallReboot",ae[ae.InstallRebootOptions=26]="InstallRebootOptions",ae[ae.InstallRebootNoSummary=27]="InstallRebootNoSummary",ae[ae.InstallRebootNoSummaryOptions=28]="InstallRebootNoSummaryOptions",ae[ae.InstallRemoveReboot=29]="InstallRemoveReboot",ae[ae.InstallFailed=30]="InstallFailed",ae[ae.WaitingOnUac=31]="WaitingOnUac"}(Z=N.FormEnum||(N.FormEnum={})),function(ae){ae[ae.Next=0]="Next",ae[ae.Close=1]="Close"}(de=N.NextActionEnum||(N.NextActionEnum={}))}(I||(I={})),function(N){let se;var Z;let ce;(Z=se=N.DriverTypeEnum||(N.DriverTypeEnum={}))[Z.GameReadyDriver=0]="GameReadyDriver",Z[Z.CreatorReadyDriver=1]="CreatorReadyDriver",function(Z){Z.started="started",Z.finished="finished",Z.failed="failed",Z.cancelled="cancelled"}(ce=N.DriverUpdateCheckProgress||(N.DriverUpdateCheckProgress={}))}(k||(k={})),function(N){let se;var _e;let ce,Z,de,ae,pe;(_e=se=N.ApplicationScanType||(N.ApplicationScanType={})).fast="fast",_e.traditional="traditional",function(_e){_e.Unknown="Unknown",_e.NotAvailable="NotAvailable",_e.NotReady="NotReady",_e.Ready="Ready"}(ce=N.VopsStatus||(N.VopsStatus={})),function(_e){_e.STRING="STRING",_e.INT="INT",_e.FLOAT="FLOAT",_e.ENUM="ENUM",_e.BOOL="BOOL",_e.DRIVER_ENUM="DRIVER_ENUM"}(Z=N.Type||(N.Type={})),function(_e){_e.AC="AC",_e.DC="DC"}(de=N.ApplicationPowerMode||(N.ApplicationPowerMode={})),function(_e){_e.DISABLED="DISABLED",_e.UNOPTIMIZED="UNOPTIMIZED",_e.CUSTOMIZED="CUSTOMIZED",_e.OPTIMIZED="OPTIMIZED"}(ae=N.OptimizationState||(N.OptimizationState={})),function(_e){_e.started="started",_e.finished="finished",_e.failed="failed",_e.progress="progress"}(pe=N.Status||(N.Status={}))}(R||(R={}));var Y,K,$,ee,J,z,te,X,re,ge,oe,G=function(N){return N.Driverinstall=I,N.Driverupdaterecommendation=k,N.Localgames=R,N}(G||{});!function(N){let se;var Z;let ce;(Z=se=N.State||(N.State={})).percentage="percentage",Z.indeterminate="indeterminate",Z.pause="pause",Z.complete="complete",function(Z){Z.active="active",Z.inactive="inactive",Z.failed="failed"}(ce=N.State1||(N.State1={}))}(Y||(Y={})),function(N){let se;var pe;let ce,Z,de,ae;(pe=se=N.ApplicationLifetimeEventType||(N.ApplicationLifetimeEventType={})).ApplicationExit="APPLICATION_EXIT",pe.SystemLogout="SYSTEM_LOGOUT",pe.SystemSuspend="SYSTEM_SUSPEND",function(pe){pe.UserClosedWindow="USER_CLOSED_WINDOW",pe.UserQuitWithShortcut="USER_QUIT_WITH_SHORTCUT",pe.UserLoggedOut="USER_LOGGED_OUT",pe.SelfUpdate="SELF_UPDATE",pe.Relaunch="RELAUNCH",pe.BrowserExit="BROWSER_EXIT",pe.ForceShutdown="FORCE_SHUTDOWN"}(ce=N.ShutdownReason||(N.ShutdownReason={})),function(pe){pe.Bluetooth="BLUETOOTH"}(Z=N.SystemSetting||(N.SystemSetting={})),function(pe){pe.Launch="launch"}(de=N.ApplicationTimeType||(N.ApplicationTimeType={})),function(pe){pe.LaunchSiteTime="LAUNCH_SITE_TIME",pe.LaunchCefSiteTime="LAUNCH_CEF_SITE_TIME"}(ae=N.ApplicationStartTimeType||(N.ApplicationStartTimeType={}))}(K||(K={})),function(N){let se;var Z;let ce;(Z=se=N.ConversationIntent||(N.ConversationIntent={})).Support="Support",Z.Recommendation="Recommendation",function(Z){Z.Installer="Installer",Z.Game="Game",Z.Share="Share",Z.GameStream="GameStream"}(ce=N.Component||(N.Component={}))}($||($={})),function(N){let se;var ce;(ce=se=N.InternalErrorCodeEnum||(N.InternalErrorCodeEnum={}))[ce.Success=0]="Success",ce[ce.Error=1]="Error",ce[ce.Error_PermissionNotGiven=2]="Error_PermissionNotGiven",ce[ce.Error_NotFullScreen=3]="Error_NotFullScreen"}(ee||(ee={})),function(N){let se;var ce;(ce=se=N.DiscordAsset||(N.DiscordAsset={}))[ce.Large=0]="Large"}(J||(J={})),function(N){let se;var $e;let ce,Z,de,ae,pe,_e,ke,De,Me,je;($e=se=N.UpdateFrameworkResult||(N.UpdateFrameworkResult={}))[$e.NotImplemented=-1]="NotImplemented",$e[$e.Success=0]="Success",$e[$e.Error=1]="Error",$e[$e.UpdateFrameworkUninitialised=2]="UpdateFrameworkUninitialised",$e[$e.UpdateCheckMgrUninitialised=3]="UpdateCheckMgrUninitialised",$e[$e.NoUpdateCheckCandidate=4]="NoUpdateCheckCandidate",$e[$e.InvalidComponentType=5]="InvalidComponentType",$e[$e.UpdateCheckInfoException=6]="UpdateCheckInfoException",$e[$e.UpdateCheckComponentInapplicable=7]="UpdateCheckComponentInapplicable",$e[$e.InvalidArgument=8]="InvalidArgument",$e[$e.InvalidOperation=9]="InvalidOperation",$e[$e.FileDoesNotExist=10]="FileDoesNotExist",$e[$e.NotFound=11]="NotFound",$e[$e.BadJson=12]="BadJson",$e[$e.KeyDoesNotExist=13]="KeyDoesNotExist",$e[$e.InternalException=14]="InternalException",$e[$e.ProfileCatalogUninitialised=15]="ProfileCatalogUninitialised",$e[$e.AlreadyDownloaded=16]="AlreadyDownloaded",$e[$e.CannotDeleteFile=17]="CannotDeleteFile",$e[$e.DownloaderBusyTryLater=18]="DownloaderBusyTryLater",$e[$e.CurlInitFailed=19]="CurlInitFailed",$e[$e.PostProcessingPolicyDontRun=20]="PostProcessingPolicyDontRun",$e[$e.DownloadPolicyDontRun=21]="DownloadPolicyDontRun",$e[$e.UpdateCheckPeriodNotElapsed=22]="UpdateCheckPeriodNotElapsed",$e[$e.PluginLoadError=23]="PluginLoadError",$e[$e.PluginFnAddrError=24]="PluginFnAddrError",$e[$e.PluginError=25]="PluginError",function($e){$e[$e.Official=0]="Official",$e[$e.Beta=1]="Beta",$e[$e.Unknown=-1]="Unknown"}(ce=N.UpdateChannel||(N.UpdateChannel={})),function($e){$e[$e.Full=0]="Full",$e[$e.Diff=1]="Diff",$e[$e.Unknown=-1]="Unknown"}(Z=N.UpdateType||(N.UpdateType={})),function($e){$e[$e.Auto=0]="Auto",$e[$e.Manual=1]="Manual",$e[$e.Unknown=-1]="Unknown"}(de=N.InvokeType||(N.InvokeType={})),function($e){$e[$e.Undefined=-1]="Undefined",$e[$e.DownloadTriggered=0]="DownloadTriggered",$e[$e.Downloading=1]="Downloading",$e[$e.VerifyingChecksum=2]="VerifyingChecksum",$e[$e.VerifyingSignature=3]="VerifyingSignature",$e[$e.Paused=4]="Paused",$e[$e.Cancelled=5]="Cancelled",$e[$e.NetworkErrorRetrying=6]="NetworkErrorRetrying",$e[$e.NetworkErrorRetryPaused=7]="NetworkErrorRetryPaused",$e[$e.Finished=8]="Finished",$e[$e.ChecksumVerificationFailed=9]="ChecksumVerificationFailed",$e[$e.SignatureVerificationFailed=10]="SignatureVerificationFailed",$e[$e.DiskWriteFail=11]="DiskWriteFail",$e[$e.Error=12]="Error",$e[$e.NotAllowedNow=13]="NotAllowedNow",$e[$e.Prohibited=14]="Prohibited"}(ae=N.DownloadStatus||(N.DownloadStatus={})),function($e){$e[$e.Undefined=-1]="Undefined",$e[$e.Ready=0]="Ready",$e[$e.Executing=1]="Executing",$e[$e.Completed=2]="Completed",$e[$e.CouldNotRun=3]="CouldNotRun",$e[$e.FailedRetryPending=4]="FailedRetryPending",$e[$e.Failed=5]="Failed"}(pe=N.ActionStatus||(N.ActionStatus={})),function($e){$e[$e.Undefined=-1]="Undefined",$e[$e.ExecutingActions=0]="ExecutingActions",$e[$e.Completed=1]="Completed",$e[$e.Failed=2]="Failed"}(_e=N.PostProcessingStatus||(N.PostProcessingStatus={})),function($e){$e[$e.Started=0]="Started",$e[$e.Retrying=1]="Retrying",$e[$e.RetryStopped=2]="RetryStopped",$e[$e.Finished=3]="Finished",$e[$e.Failed=4]="Failed"}(ke=N.ProgressStatus||(N.ProgressStatus={})),function($e){$e[$e.Unknown=-1]="Unknown",$e[$e.UpdateInProgress=0]="UpdateInProgress",$e[$e.UpdateUnavailable=1]="UpdateUnavailable",$e[$e.UpdateSuccessful=2]="UpdateSuccessful",$e[$e.UpdateFailed=3]="UpdateFailed"}(De=N.UpdateState||(N.UpdateState={})),function($e){$e[$e.Uninitialised=-1]="Uninitialised",$e[$e.CheckingForUpdate=0]="CheckingForUpdate",$e[$e.UpdateCheckEnd=1]="UpdateCheckEnd",$e[$e.Downloading=2]="Downloading",$e[$e.DownloadEnd=3]="DownloadEnd",$e[$e.PostProcessing=4]="PostProcessing",$e[$e.PostProcessingEnd=5]="PostProcessingEnd"}(Me=N.UpdateExecutionPhase||(N.UpdateExecutionPhase={})),function($e){$e[$e.Success=0]="Success",$e[$e.Failure=1]="Failure",$e[$e.FailureNoSourceProfile=2]="FailureNoSourceProfile"}(je=N.CreateProfileStatusEnum||(N.CreateProfileStatusEnum={}))}(z||(z={})),function(N){let se;var Oe;let ce,Z,de,ae,pe,_e,ke,De,Me,je,$e;(Oe=se=N.FileType||(N.FileType={})).video="video",Oe.image="image",Oe.other="other",function(Oe){Oe.Highlight="Highlight",Oe.AnimatedGif="AnimatedGif",Oe.Normal="Normal",Oe.SuperResolution="SuperResolution",Oe.SuperResolution_Oversized="SuperResolution_Oversized",Oe.SubType_360Mono="360Mono",Oe.Stereo="Stereo",Oe.SubType_360Stereo="360Stereo",Oe.Exr="Exr",Oe.Normal_Ansel="Normal_Ansel",Oe.Montage="Montage",Oe.InstantReplay="InstantReplay",Oe.Manual="Manual",Oe.Unknown="Unknown"}(ce=N.SubType||(N.SubType={})),function(Oe){Oe.Single="Single",Oe.Separate="Separate",Oe.Unknown="Unknown"}(Z=N.AudioType||(N.AudioType={})),function(Oe){Oe.low="low",Oe.medium="medium",Oe.high="high"}(de=N.Quality||(N.Quality={})),function(Oe){Oe.GFE_Share="GFE_Share",Oe.GFE_Ansel="GFE_Ansel",Oe.GFE_SDK="GFE_SDK",Oe.StandAlone_Ansel="StandAlone_Ansel",Oe.Undefined="Undefined"}(ae=N.Source||(N.Source={})),function(Oe){Oe.screenshot="screenshot",Oe.video="video"}(pe=N.Type||(N.Type={})),function(Oe){Oe.video="video",Oe.image="image",Oe.audio="audio"}(_e=N.InputFileType||(N.InputFileType={})),function(Oe){Oe.none="none",Oe.titleBasic="titleBasic"}(ke=N.SeqType||(N.SeqType={})),function(Oe){Oe.none="none",Oe.brandSliderInOnly="brandSliderInOnly",Oe.brandSlideInOut="brandSlideInOut"}(De=N.BrandType||(N.BrandType={})),function(Oe){Oe.atStart="atStart",Oe.atEnd="atEnd"}(Me=N.Position||(N.Position={})),function(Oe){Oe.TrackerUpdateNotActive="TrackerUpdateNotActive",Oe.TrackerUpdateInProgress="TrackerUpdateInProgress",Oe.TrackerUpdateComplete="TrackerUpdateComplete",Oe.CancelUpdateComplete="CancelUpdateComplete",Oe.CancelUpdate="CancelUpdate"}(je=N.GalleryPathUpdateStatus||(N.GalleryPathUpdateStatus={})),function(Oe){Oe.none="none",Oe.hidden="hidden",Oe.empty="empty",Oe.hiddenOrEmpty="hiddenOrEmpty",Oe.hiddenAndEmpty="hiddenAndEmpty"}($e=N.ExcludeDirectoryType||(N.ExcludeDirectoryType={}))}(te||(te={})),function(N){let se;var ce;(ce=se=N.IpcTargets||(N.IpcTargets={})).GfnMall="mallclient",ce.GfnStreamer="streamer",ce.GfnUpdater="selfupdater"}(X||(X={})),function(N){let se;var ce;(ce=se=N.PrivacySettings||(N.PrivacySettings={})).None="None",ce.RequiredOnly="RequiredOnly",ce.RequiredFunctional="RequiredFunctional",ce.RequiredFunctionalTechnical="RequiredFunctionalTechnical"}(re||(re={})),function(N){let se;var Me;let ce,Z,de,ae,pe,_e,ke,De;(Me=se=N.CaptureTypes||(N.CaptureTypes={})).regular="regular",Me.stereoRegular="stereoRegular",Me.highRes="highRes",Me.sphericalPanorama="sphericalPanorama",Me.stereoSphericalPanorama="stereoSphericalPanorama",function(Me){Me.ok="ok",Me.failed="failed",Me.started="started",Me.failedToStart="failedToStart",Me.noSpace="noSpace",Me.permissionDenied="permissionDenied",Me.invalidRequest="invalidRequest",Me.failedToProcess="failedToProcess",Me.processDeclined="processDeclined",Me.alreadyEnabled="alreadyEnabled",Me.alreadyDisabled="alreadyDisabled",Me.outOfRange="outOfRange",Me.alreadySet="alreadySet",Me.incompatibleVersion="incompatibleVersion",Me.disabled="disabled",Me.okAnsel="okAnsel",Me.okModsOnly="okModsOnly",Me.failedToFinishCapture="failedToFinishCapture",Me.failedToSaveShotFailedCreateDiretory="failedToSaveShotFailedCreateDiretory",Me.failedToSaveShotNoSpaceLeft="failedToSaveShotNoSpaceLeft",Me.processingCompleted="processingCompleted",Me.shotSaved="shotSaved",Me.processingFile="processingFile",Me.failedToSaveShot="failedToSaveShot"}(ce=N.AnselStatusEnum||(N.AnselStatusEnum={})),function(Me){Me.sdk="sdk",Me.mods="mods",Me.styleTransfer="styleTransfer",Me.allowOffline="allowOffline"}(Z=N.FeaturesSupported||(N.FeaturesSupported={})),function(Me){Me.windowedSDK="windowedSDK",Me.fullscreenSDK="fullscreenSDK",Me.windowedNoSDK="windowedNoSDK",Me.fullscreenNoSDK="fullscreenNoSDK"}(de=N.Mode||(N.Mode={})),function(Me){Me.mouse="mouse",Me.keyboard="keyboard",Me.gamepad="gamepad"}(ae=N.Hid||(N.Hid={})),function(Me){Me.notAvailable="notAvailable",Me.available="available",Me.notEnabled="notEnabled",Me.enabled="enabled"}(pe=N.AnselState||(N.AnselState={})),function(Me){Me.roll="roll",Me.fov="fov"}(_e=N.Response||(N.Response={})),function(Me){Me.float="float",Me.int="int",Me.uint="uint",Me.bool="bool"}(ke=N.DataType||(N.DataType={})),function(Me){Me.success="success"}(De=N.NgxAiUpResStatus||(N.NgxAiUpResStatus={}))}(ge||(ge={})),function(N){let se;var Z;let ce;(Z=se=N.ApiStatusEnum||(N.ApiStatusEnum={})).Success="Success",Z.Failure="Failure",function(Z){Z.Desktop="Desktop",Z.Mobile="Mobile"}(ce=N.UiModeEnum||(N.UiModeEnum={}))}(oe||(oe={}));var xe=function(N){return N.Applicationcontrol=Y,N.Applicationinfo=K,N.Bot=$,N.Clientnotification=ee,N.Discord=J,N.Downloader=z,N.Gallery=te,N.Ipc=X,N.Nvaccount=re,N.Nvcamera=ge,N.Systeminfo=oe,N}(xe||{}),ue=function(N){return N.Common=xe,N.Gfe=G,N.Gfn=F,N.Nvapp=x,N.Qxp=y,N.Share=O,N}(ue||{})},54292:(Ue,W,d)=>{"use strict";d.d(W,{vT:()=>L,oy:()=>i});var n=d(3567),l=d(36877),p=d(26513),m=d(19392),_=d(16229),P=d(43848),v=d(34593),O=d(83915),S=d(53461),y=d(75707),r=d(91384),i=function(x){return x.IGO="igo",x.Streaming="streaming",x.ClientIME="ime",x.PrivacyPolicy="privacy",x.QuitGath="quitGame",x.OscNotification="OscNotification",x}(i||{}),h=function(x){return x.Local="localhost",x.Stage="stage.nvidia.com",x.Partner="partner.nvidia.com",x}(h||{});const g=new RegExp("/mall/index[.]html$|/mall/$|/index[.]html$|/$");var T=d(58527),A=d(74150);let L=(()=>{var x;class V{get fullScreenEventSubject(){return this.fullScreenEvent}get fullScreenEventObs$(){return this.fullScreenEvent.asObservable()}get documentVisiblityChange(){return(0,l.R)(document,"visibilitychange")}resetExitPath(){this.fullScreenSource=void 0}setExitPath(F){this.fullScreenSource=F}get resumeFullScreenIGO(){return this.fullScreenSource===i.IGO}get applicationWindowState$(){return this.isPWAModeOnLGTV?this.webOSWindowStateSubject.asObservable():this.documentVisiblityChange.pipe((0,v.Z)(0),(0,O.T)(F=>"visible"===document.visibilityState?"foreground":"background"),(0,S.F)())}constructor(F,I,k){this.titleService=I,this.ngZone=k,this.keyCodes={c:"KeyC",i:"KeyI",j:"KeyJ",u:"KeyU",f12:"F12"},this.isPWAModeOnLGTV=n.zk.isPWAModeOnLGTV(),this.isPWAModeOnSamsungTV=n.zk.isPWAModeOnSamsungTV(),this.fullScreenEvent=new p.t(!1),this.webOSWindowStateSubject=new p.t("foreground"),this.webOSWindowStateListener=R=>{this.webOSWindowStateSubject.value!==R.detail.state&&this.webOSWindowStateSubject.next(R.detail.state)},this.logger=F.getLogger("gfn/browser-support"),this.appIcon=document.querySelector("#appIcon"),this.appIconHref=this.appIcon?.href,this.hostBranch=window.location.pathname.replace(g,"")}initialize(F,I){F&&this.ngZone.runOutsideAngular(()=>{document.addEventListener("wheel",this.dummyWheelListener,{passive:!0})}),I||this.disableDevTools(),this.isPWAModeOnLGTV&&this.ngZone.runOutsideAngular(()=>{window.addEventListener("windowStateChanged",this.webOSWindowStateListener)})}dummyWheelListener(F){return F}disableDevTools(){this.ngZone.runOutsideAngular(()=>{document.addEventListener("contextmenu",F=>F.preventDefault()),window.addEventListener("keydown",F=>{(F.code===this.keyCodes.i&&F.ctrlKey&&F.shiftKey||F.code===this.keyCodes.j&&F.ctrlKey&&F.shiftKey||F.code===this.keyCodes.u&&F.ctrlKey||F.code===this.keyCodes.f12||F.code===this.keyCodes.c&&F.shiftKey&&F.metaKey||F.code===this.keyCodes.i&&F.altKey&&F.metaKey||F.code===this.keyCodes.j&&F.altKey&&F.metaKey||F.code===this.keyCodes.u&&F.altKey&&F.metaKey)&&F.preventDefault()})})}getGamepads(){if(!navigator.getGamepads)return[];const F=navigator.getGamepads();return F instanceof Array?F:Array.from(F).filter(k=>!!k)}goToPreviousPage(){window.history.back()}supportsRequestFullscreen(F){return document.fullscreenEnabled&&F.requestFullscreen||document.webkitFullscreenEnabled&&F.webkitRequestFullscreen}isFullscreen(){const F=screen.width===window.innerWidth&&screen.height===window.innerHeight;return document.fullscreenElement||document.webkitFullscreenElement||!(this.isPWAModeOnLGTV||this.isPWAModeOnSamsungTV)&&F}requestFullscreen(F){this.supportsRequestFullscreen(F)?F.requestFullscreen?F.requestFullscreen().catch(I=>{this.logger.error(`Error attempting to enable fullscreen mode: ${I.message} (${I.name})`)}):F.webkitRequestFullscreen?F.webkitRequestFullscreen():this.logger.error("No available method to enter fullscreen"):this.logger.error("Fullscreen not supported")}exitFullscreen(){document.fullscreenElement&&document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():this.logger.error("No available method to exit fullscreen")}isStagingOrDevDomain(){return this.isStagingDomain()||this.isLocalDomain()}isStagingDomain(){return window.location.hostname.endsWith(h.Stage)}isPartnerDomain(){return window.location.hostname.endsWith(h.Partner)}isLocalDomain(){return window.location.hostname.endsWith(h.Local)}getHostBranchName(){return this.hostBranch}setTitle(F){F&&this.titleService.setTitle(F)}blinkAppIcon(F){this.appIcon&&this.appIconHref&&(F%2==1?this.appIcon.href="./assets/img/transparent.png":this.resetAppIcon())}resetAppIcon(){this.appIconHref&&(this.appIcon.href=this.appIconHref)}cleanup(){document.removeEventListener("wheel",this.dummyWheelListener),this.resetAppIcon(),this.isPWAModeOnLGTV&&window.removeEventListener("windowStateChanged",this.webOSWindowStateListener)}getPermission$(F){return(0,m.H)(navigator.permissions.query({name:F})).pipe((0,y.ZZ)(I=>(0,_.h)((0,P.of)(I.state),(0,l.R)(I,"change").pipe((0,O.T)(k=>k.target.state)))),(0,r.M)(I=>this.logger.info(`BrowserPermission: ${F} value: ${I}`)))}}return(x=V).\u0275fac=function(F){return new(F||x)(T.KVO(n.J6),T.KVO(A.hE),T.KVO(T.SKi))},x.\u0275prov=T.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),V})()},62351:(Ue,W,d)=>{"use strict";d.d(W,{E:()=>p});var n=d(58527);let p=(()=>{var m;class _{}return(m=_).\u0275fac=function(v){return new(v||m)},m.\u0275prov=n.jDH({token:m,factory:m.\u0275fac}),_})()},54943:(Ue,W,d)=>{"use strict";d.d(W,{l:()=>v});var n=d(43848),l=d(59859),p=d(58527),m=d(62351);function _(O){return[O.system,O.module,O.method,O.legacyCommand].join(".")}let v=(()=>{var O;class S{constructor(r){this.bridgeConfig=r,this.responses={},this.persistentResponses={},this.errors={},this.configMocks={},this.callData={};for(const i of Object.values(r.mocks))this.configMocks[_(i.command)]=i.return}createResponse(r,i){const a=_(r);delete this.errors[a],this.responses[a]=i}createResponseSequence(r,i){const a=_(r);delete this.errors[a],this.responses[a]=i}createPersistentResponse(r,i){if(!r.persistent)throw new Error("Can only create a persistent response for persistent commands");{const a=_(r);delete this.errors[a],this.persistentResponses[a]=i}}createErrorResponse(r,i){const a=_(r);delete this.responses[a],this.errors[a]=i}executeCommand(r,i){const a=_(r);this.cacheCallData(a,i);let h=(0,n.of)(void 0);return a in this.errors?h=(0,l.$)(this.errors[a]):a in this.responses?h=Array.isArray(this.responses[a])?(0,n.of)(this.responses[a].shift()):(0,n.of)(this.responses[a]):a in this.configMocks?h=(0,n.of)(this.configMocks[a]):a in this.persistentResponses&&(h=this.persistentResponses[a]),h}hasOverrideMock(r){const i=_(r);return i in this.responses||i in this.persistentResponses}hasErrorMock(r){return _(r)in this.errors}hasConfigMock(r){return _(r)in this.configMocks}hasMock(r){const i=this.hasOverrideMock(r)||this.hasConfigMock(r)||this.hasErrorMock(r);return this.bridgeConfig.isUnitTestConfig&&!i&&console.error("No mock provided for: "+_(r)),i}cacheCallData(r,i){this.bridgeConfig.cacheMockedCallData&&(r in this.callData||(this.callData[r]={count:0,params:[]}),this.callData[r].count++,this.callData[r].params.push(i))}resetCallData(){this.callData={}}getCallData(r){const i=_(r);return i in this.callData?this.callData[i]:{count:0,params:[]}}}return(O=S).\u0275fac=function(r){return new(r||O)(p.KVO(m.E))},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),S})()},31650:(Ue,W,d)=>{"use strict";d.d(W,{N:()=>m});var n=d(58527),l=d(3678),p=d(54943);let m=(()=>{var _;class P{constructor(O,S){this.logger=O,this.bridgeMockService=S}makeFullBridgeCommand(O,S,y){return{command:O.legacyCommand,system:O.system,module:O.module,method:O.method,payload:S,...y?S:null}}unpackReturnPayload(O){try{const S=JSON.parse(O);return"object"==typeof S&&"reference_uniqueid"in S&&"method"in S&&"payload"in S?S.payload:S}catch{return O}}handleSuccess(O,S,y){switch(y){case"true":O.next(!0);break;case"false":O.next(!1);break;default:O.next(this.unpackReturnPayload(y))}S||O.complete()}handleFailure(O,S,y,r,i){const a={code:y,message:r,isCancelled:204===y,request:S};this.logger.info(`Bridge Query returned error code ${y}: ${r}. Command: ${JSON.stringify(i?S:S.command)}`),O.error(a)}executeCommand(O,S,y=!0){return this.bridgeMockService.hasMock(O)?this.bridgeMockService.executeCommand(O,S):this.executeCommandInternal(O,S,y)}}return(_=P).\u0275fac=function(O){return new(O||_)(n.KVO(l.Vy),n.KVO(p.l))},_.\u0275prov=n.jDH({token:_,factory:_.\u0275fac}),P})()},10607:(Ue,W,d)=>{"use strict";d.d(W,{Ou:()=>A,Ec:()=>z.E,NZ:()=>n.N,a5:()=>J,Un:()=>T});var n=d(31650),l=d(58527),p=d(17053),m=d(3678),_=d(54943);let P=(()=>{var te;class X extends n.N{constructor(ge,oe,xe){super(ge.getLogger("crimson/cef"),xe),this.ngZone=oe}static isCefPlatform(){return"cefQuery"in window}executeCommandInternal(ge,oe,xe){const ue=this.makeFullBridgeCommand(ge,oe,ge.legacyCommand!==X.EXTENSION_MESSAGE),N=JSON.stringify(ue),se=window.cefQuery;return new p.c(ce=>{if(se)se({request:N,persistent:ge.persistent,onSuccess:Z=>{l.SKi.isInAngularZone()?this.handleSuccess(ce,ge.persistent,Z):this.ngZone.run(()=>{this.handleSuccess(ce,ge.persistent,Z)})},onFailure:(Z,de)=>{l.SKi.isInAngularZone()?this.handleFailure(ce,ue,Z,de,xe):this.ngZone.run(()=>{this.handleFailure(ce,ue,Z,de,xe)})}});else{const Z=N;this.logger.error(Z),this.handleFailure(ce,ue,500,Z,xe)}})}}return(te=X).EXTENSION_MESSAGE="QUERY_IPC_EXTENSION_MESSAGE",te.\u0275fac=function(ge){return new(ge||te)(l.KVO(m.J6),l.KVO(l.SKi),l.KVO(_.l))},te.\u0275prov=l.jDH({token:te,factory:te.\u0275fac}),X})();var v=d(43848),O=d(14714),S=d(75707);let y=(()=>{var te;class X{constructor(ge){this._plugins=ge}get plugins(){return this._plugins}getPlugin(ge){return this._plugins.find(oe=>oe instanceof ge)}}return(te=X).\u0275fac=function(ge){return new(ge||te)(l.KVO(Array))},te.\u0275prov=l.jDH({token:te,factory:te.\u0275fac,providedIn:"root"}),X})(),r=(()=>{var te;class X extends n.N{constructor(ge,oe,xe,ue){super(ge,ue),this.primaryManager=oe,this.fallbackManager=xe,this.handlerMap=new Map,this.buildHandlerMap()}buildHandlerMap(){this.fallbackManager?.plugins?.forEach(ge=>{const oe=ge.handlers;this.handlerMap.set(oe.module,oe.commands)});for(const ge of this.primaryManager.plugins){const oe=ge.handlers;this.handlerMap.set(oe.module,oe.commands)}}getHandlerForMethod(ge,oe){const xe=this.handlerMap.get(ge);return xe?xe[oe]:null}executeCommandUsingPlugin(ge,oe,xe){const ue=this.makeFullBridgeCommand(ge,oe,ge.legacyCommand!==X.EXTENSION_MESSAGE),N=this.getHandlerForMethod(ue.module,ue.method);return N?new p.c(se=>{N(ue).pipe((0,O.W)(ce=>(this.logger.info("failed to execute",ge.legacyCommand,ce),new p.c(Z=>{this.handleFailure(Z,ue,ce.code,ce.error,xe)}))),(0,S.ZZ)(ce=>new p.c(Z=>{this.handleSuccess(Z,ue.persistent,ce.data)}))).subscribe(ce=>se.next(ce),ce=>se.error(ce),()=>se.complete())}):(this.logger.info("plugin does not have handler for",ue.module,ue.method),(0,v.of)(null))}}return(te=X).EXTENSION_MESSAGE="QUERY_IPC_EXTENSION_MESSAGE",te.\u0275fac=function(ge){return new(ge||te)(l.KVO(m.Vy),l.KVO(y),l.KVO(y),l.KVO(_.l))},te.\u0275prov=l.jDH({token:te,factory:te.\u0275fac}),X})();var i=d(32727),a=d(59859),h=d(83915);class g{createSuccessResponse(X){return{success:!0,code:200,data:X}}createErrorResponse(X,re){return{success:!1,code:X,error:re}}makeError(X,re){return(0,a.$)(this.createErrorResponse(X,re))}makeResult(X){return(0,v.of)(this.createSuccessResponse(X))}makePersistentResult(X){return X.pipe((0,h.T)(re=>this.createSuccessResponse(re)))}}class T extends g{static get browserInstanceId(){return this._browserInstanceId}}T._browserInstanceId=(0,i.bz)(!0);const A=new l.nKC("BrowserPlugins");let L=(()=>{var te;class X extends y{constructor(ge){super(ge||[])}}return(te=X).\u0275fac=function(ge){return new(ge||te)(l.KVO(A,8))},te.\u0275prov=l.jDH({token:te,factory:te.\u0275fac,providedIn:"root"}),X})(),x=(()=>{var te;class X extends r{constructor(ge,oe,xe){super(ge.getLogger("crimson/browser"),oe,void 0,xe)}executeCommandInternal(ge,oe,xe){const ue=this.makeFullBridgeCommand(ge,oe,ge.legacyCommand!==r.EXTENSION_MESSAGE);return this.handlerMap.has(ue.module)?this.executeCommandUsingPlugin(ge,oe,xe):(this.logger.info("Command not found",JSON.stringify(xe?ue:ue.command)),(0,v.of)(null))}}return(te=X).\u0275fac=function(ge){return new(ge||te)(l.KVO(m.J6),l.KVO(L),l.KVO(_.l))},te.\u0275prov=l.jDH({token:te,factory:te.\u0275fac}),X})(),V=(()=>{var te;class X extends n.N{constructor(ge,oe,xe){super(ge.getLogger("crimson/yggdrasil"),xe),this.ngZone=oe}executeCommandInternal(ge,oe){return new p.c(xe=>{xe.next(null),xe.complete()})}}return(te=X).\u0275fac=function(ge){return new(ge||te)(l.KVO(m.J6),l.KVO(l.SKi),l.KVO(_.l))},te.\u0275prov=l.jDH({token:te,factory:te.\u0275fac}),X})();var D=d(26502);const F=new l.nKC("AndroidPlugins");let I=(()=>{var te;class X extends y{constructor(ge){super(ge||[])}}return(te=X).\u0275fac=function(ge){return new(ge||te)(l.KVO(F,8))},te.\u0275prov=l.jDH({token:te,factory:te.\u0275fac,providedIn:"root"}),X})();var G,Y;(class R extends g{static get androidInstanceId(){return this._androidInstanceId}})._androidInstanceId=(0,i.bz)(!0);class K{constructor(X,re){this.ngZone=re,Android.dispatch=this.dispatch.bind(this),Android.unregisterHandler=this.unregisterHandler.bind(this)}dispatch(X){if(!K.handlerMap[X.handlerId])throw new Error(`Cannot find handler Id=${X.handlerId}.`);const re=K.handlerMap[X.handlerId];this.parseResponse(re.observer,X.args),re.persistent||delete K.handlerMap[X.handlerId]}parseResponse(X,re){const ge=JSON.parse(re),xe=ge.errorCode,ue=ge.errorMessage;if(ge.successful){const se={response:ge.response};l.SKi.isInAngularZone()?X.next(se):this.ngZone.run(()=>{X.next(se)})}else{const se={errorCode:xe,errorMessage:ue};l.SKi.isInAngularZone()?X.error(se):this.ngZone.run(()=>{X.error(se)})}}unregisterHandler(X){if(!K.handlerMap[X.handlerId])throw new Error(`Cannot find handler Id=${X.handlerId}.`);K.handlerMap[X.handlerId].observer.complete(),delete K.handlerMap[X.handlerId]}doesCommandExist(X,re){return Android.hasCommand&&Android.hasCommand(X,re)}executeCommandNative(X,re,ge){const xe={request:JSON.stringify(X),persistent:re,handlerId:K.IdGenerator.next()},ue=JSON.stringify(xe),N=new p.c(se=>{K.handlerMap[xe.handlerId]={observer:se,persistent:re}});return Android.executeCommand(ue),N}}(G=K).IdGenerator=((Y=class{static next(){return++this.count}}).count=0,Y),G.handlerMap={},G.\u0275fac=function(X){return new(X||G)(l.KVO(m.J6),l.KVO(l.SKi))},G.\u0275prov=l.jDH({token:G,factory:G.\u0275fac,providedIn:"root"});let $=(()=>{var te;class X extends r{static requiresNativeImplementation(ge){return X.REQUIRES_NATIVE_IMPL.includes(ge)}constructor(ge,oe,xe,ue,N){super(ge.getLogger("crimson/android"),oe,xe,N),this.androidHelperService=ue}executeCommandInternal(ge,oe,xe){const ue=this.makeFullBridgeCommand(ge,oe,ge.legacyCommand!==X.EXTENSION_MESSAGE),N=JSON.stringify(ue);return D.zk.isAndroidPlatform()?this.androidHelperService.doesCommandExist(ge.module,ge.method)?new p.c(ce=>{this.androidHelperService.executeCommandNative(ue,ge.persistent,xe).subscribe(de=>{this.handleSuccess(ce,ge.persistent,de.response)},de=>{this.handleFailure(ce,ue,de.errorCode,de.errorMessage,xe)},()=>{this.logger.info("callback complete")})}):!X.requiresNativeImplementation(ue.module)&&this.handlerMap.has(ue.module)?this.executeCommandUsingPlugin(ge,oe,xe):(this.logger.info("Command not found",JSON.stringify(xe?ue:ue.command)),(0,v.of)(null)):new p.c(se=>{const ce=N;this.logger.error(ce),this.handleFailure(se,ue,500,ce,xe)})}}return(te=X).REQUIRES_NATIVE_IMPL=[],te.\u0275fac=function(ge){return new(ge||te)(l.KVO(m.J6),l.KVO(I),l.KVO(L),l.KVO(K),l.KVO(_.l))},te.\u0275prov=l.jDH({token:te,factory:te.\u0275fac}),X})();const J={provide:n.N,useFactory:function ee(te,X,re,ge){if(D.zk.isCefPlatform())return new P(te,X,re);if(D.zk.isAndroidPlatform()){const oe=ge.get(L),xe=ge.get(I),ue=ge.get(K);return new $(te,xe,oe,ue,re)}if(D.zk.isBrowserPlatform()){const oe=ge.get(L);return new x(te,oe,re)}return new V(te,X,re)},deps:[m.J6,l.SKi,_.l,l.zZn]};var z=d(62351)},84580:(Ue,W,d)=>{"use strict";d.d(W,{r:()=>p});var n=d(57258),l=d(58527);let p=(()=>{var m;class _{constructor(){this.leanModeTransitionSub=new n.m(1)}get leanModeTransitionState(){return this.leanModeTransitionSub.asObservable()}enableLeanMode(){this.leanModeTransitionSub.next(!0)}disableLeanMode(){this.leanModeTransitionSub.next(!1)}}return(m=_).\u0275fac=function(v){return new(v||m)},m.\u0275prov=l.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),_})()},88058:(Ue,W,d)=>{"use strict";d.d(W,{_:()=>k});var n=d(10607),l=d(3678),p=d(60045),m=d(54943),_=d(61142),P=d(22743),y=(d(61090),d(81799),d(33328),d(58527));d(28139);let k=(()=>{var R;class G{static configure(K){return{ngModule:G,providers:[_.vh,{provide:l.Rx,useValue:K.logger},{provide:n.Ec,useValue:K.bridge},{provide:p.r,useValue:K.window},{provide:P.v,useValue:K.locale},m.l,n.a5]}}}return(R=G).\u0275fac=function(K){return new(K||R)},R.\u0275mod=y.$C({type:R}),R.\u0275inj=y.G2t({}),G})()},22743:(Ue,W,d)=>{"use strict";d.d(W,{v:()=>l});var n=d(58527);let l=(()=>{var p;class m{}return(p=m).\u0275fac=function(P){return new(P||p)},p.\u0275prov=n.jDH({token:p,factory:p.\u0275fac}),m})()},57643:(Ue,W,d)=>{"use strict";d.d(W,{q:()=>n});var n=function(l){return l[l.None=-1]="None",l[l.Error=1]="Error",l[l.Warning=2]="Warning",l[l.Info=3]="Info",l[l.Trace=4]="Trace",l[l.Verbose=5]="Verbose",l[l.Event=6]="Event",l}(n||{})},3678:(Ue,W,d)=>{"use strict";d.d(W,{J6:()=>O,Rx:()=>P,Vy:()=>v});var n=d(32727),l=d(57643),p=d(58527),m=d(61142),_=d(72477);let P=(()=>{var S;class y{}return(S=y).\u0275fac=function(i){return new(i||S)},S.\u0275prov=p.jDH({token:S,factory:S.\u0275fac}),y})();class v{constructor(y,r,i,a,h,g){this.name=y,this.loggingLevel=r,this.datePipe=i,this.remoteLoggingService=a,this.remoteLoggingEnabled=h,this.consoleLoggingEnabled=g,this.remoteLogging=h,this.consoleLogging=g}error(...y){this.logEntry(l.q.Error,y,console.error.bind(console))}warn(...y){this.logEntry(l.q.Warning,y,console.warn.bind(console))}info(...y){this.logEntry(l.q.Info,y,console.log.bind(console))}verbose(...y){this.logEntry(l.q.Verbose,y,console.log.bind(console))}event(...y){this.logEntry(l.q.Event,y,console.log.bind(console))}trace(...y){this.logEntry(l.q.Trace,y,console.log.bind(console))}updateLogger(y,r){this.remoteLogging=y,this.consoleLogging=r}logEntry(y,r,i){if(this.loggingLevel<y)return;let a="";a=y===l.q.Trace?(0,n.pQ)(this.name,l.q[y].toUpperCase(),this.datePipe,r):(0,n.tO)(this.name,l.q[y].toUpperCase(),this.datePipe,r),this.consoleLogging&&i(a),this.remoteLogging&&this.remoteLoggingService.collectLogString(a)}}let O=(()=>{var S;class y{constructor(i,a,h){this.config=i,this.datePipe=a,this.remoteLoggingService=h,this.loggingLevelOverrides={},this.loggers={},this.remoteLoggingEnabled=!1,this.consoleLoggingEnabled=!0,this.loggingLevelOverrides=d(81248)}updateLoggers(){Object.values(this.loggers).forEach(i=>{i.updateLogger(this.remoteLoggingEnabled,this.consoleLoggingEnabled)})}getLoggingLevel(i){return l.q[this.loggingLevelOverrides[i]]||this.config.defaultLoggingLevel}initialize(i,a){i&&this.remoteLoggingService.initialize(),(this.remoteLoggingEnabled!==i||this.consoleLoggingEnabled!==a)&&(this.remoteLoggingEnabled=i,this.consoleLoggingEnabled=a,this.consoleLoggingEnabled||console.clear(),this.updateLoggers())}getLogger(i){const a=this.getLoggingLevel(i);return this.config.appNamePrefix&&(i=this.config.appNamePrefix+"/"+i),this.loggers[i]||(this.loggers[i]=new v(i,a,this.datePipe,this.remoteLoggingService,this.remoteLoggingEnabled,this.consoleLoggingEnabled)),this.loggers[i]}}return(S=y).\u0275fac=function(i){return new(i||S)(p.KVO(P),p.KVO(m.vh),p.KVO(_.V))},S.\u0275prov=p.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),y})()},30308:(Ue,W,d)=>{"use strict";d.d(W,{C:()=>p});var n=d(58527),l=d(32727);let p=(()=>{var m;class _{constructor(v){this.networkStatusCheckService=v}get onlineStatusChanged(){return this.networkStatusCheckService.onlineStatusChanged()}get isOnline(){return this.networkStatusCheckService.isOnline()}}return(m=_).\u0275fac=function(v){return new(v||m)(n.KVO(l.A5))},m.\u0275prov=n.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),_})()},61090:(Ue,W,d)=>{"use strict";d.d(W,{c:()=>m});var n=d(32727),l=d(58527),p=d(65240);let m=(()=>{var _;class P{constructor(O){this.translate=O}translateText(O,S){return this.translate.instant(O,S)}transform(O){try{const S=Math.round(O);if(!O||!S||O<0)return this.translateText("main.byte",{value:0});const y=1;if(1===O||1===S)return this.translateText("main.byte",{value:O});if(isNaN(parseFloat(O.toString(10)))||!isFinite(O))return"-";const r=["main.bytes","main.kb","main.mb","main.gb","main.tb"];let i=Math.floor(Math.log(O)/Math.log(1024));return i>=r.length&&(i=r.length-1),this.translateText(r[i],{value:(O/Math.pow(1024,Math.floor(i))).toFixed(y)})}catch(S){throw(0,n.RL)(P,S.message)}}}return(_=P).\u0275fac=function(O){return new(O||_)(l.rXU(p.c$,16))},_.\u0275pipe=l.EJ8({name:"convertBytesToKBMBGB",type:_,pure:!0}),P})()},81799:(Ue,W,d)=>{"use strict";d.d(W,{M2:()=>O,k1:()=>m,z3:()=>P});var n=d(32727),l=d(58527),p=d(65240);let m=(()=>{var S;class y{constructor(i){this.translate=i}translateText(i,a){return this.translate.instant(i,a)}transform(i,a){if(!i)return"";try{const h=parseInt(i,10),g=Math.floor(h/3600),c=Math.floor((h-3600*g)/60),T=h-3600*g-60*c;let A="";if(g){const L=this.translateText(1===g?"main.hr":a&&g>=2?"main.aboutHrs":"main.hrs",{value:g});A=a&&g>=2?L:L+" "}return!c||a&&g>=2||(A=A+this.translateText(1===c?"main.min":"main.mins",{value:c})+" "),!T||a&&g||(A+=this.translateText(1===T?"main.sec":"main.secs",{value:T})),A}catch(h){throw(0,n.RL)(y,h.message)}}}return(S=y).\u0275fac=function(i){return new(i||S)(l.rXU(p.c$,16))},S.\u0275pipe=l.EJ8({name:"convertSecondsToTime",type:S,pure:!0}),y})(),P=(()=>{var S;class y{transform(i,a=""){return function _(S,y=""){const r=parseFloat(S);let i=parseInt(S,10),a=Math.floor(i/3600);i%=3600;let h=Math.floor(i/60);i%=60,a<10&&(a=`0${a}`),h<10&&(h=`0${h}`),i<10&&(i=`0${i}`);let g="";return y.includes("fractional")&&(g=Math.round(r%1*1e3),g<10?g=`00${g}`:g<100&&(g=`0${g}`),g=`.${g}`),`${a}:${h}:${i}${g}`}(i,a)}}return(S=y).\u0275fac=function(i){return new(i||S)},S.\u0275pipe=l.EJ8({name:"time",type:S,pure:!0}),y})(),O=(()=>{var S;class y{transform(i){return function v(S){const y=S.toString().split(":");let r=0,i=0,a=0;return y.length>2?(r=parseFloat(y[0]),i=parseFloat(y[1]),a=parseFloat(y[2])):y.length>1?(i=parseFloat(y[0]),a=parseFloat(y[1])):a=parseFloat(y[0]),3600*r+60*i+a}(i)}}return(S=y).\u0275fac=function(i){return new(i||S)},S.\u0275pipe=l.EJ8({name:"seconds",type:S,pure:!0}),y})()},33328:(Ue,W,d)=>{"use strict";d.d(W,{O:()=>m});var n=d(32727),l=d(58527),p=d(74150);let m=(()=>{var _;class P{constructor(O){this.sanitizer=O}transform(O,S){try{return"url"===S?this.sanitizer.bypassSecurityTrustResourceUrl(O):this.sanitizer.bypassSecurityTrustHtml(O)}catch(y){throw(0,n.RL)(P,y.message)}}}return(_=P).\u0275fac=function(O){return new(O||_)(l.rXU(p.up,16))},_.\u0275pipe=l.EJ8({name:"trustAsHtml",type:_,pure:!0}),P})()},26502:(Ue,W,d)=>{"use strict";d.d(W,{zk:()=>_});var n=d(32727),l=d(70115),p=d(56123);class _{constructor(){}static isBrowserPlatform(){return!("cefQuery"in window)&&!_.isAndroidPlatform()}static isCefPlatform(){return"cefQuery"in window}static isAndroidPlatform(){return typeof window.Android<"u"&&"function"==typeof window.Android.isAndroid&&window.Android.isAndroid()}static isBrowserLikePlatform(){return _.isBrowserPlatform()||_.isAndroidPlatform()}static isNativeLikePlatform(){return _.isCefPlatform()||_.isAndroidPlatform()}static isPWAModeOnLGTV(){return/(NetCast|Web0S|Linux\/SmartTV).+PWA/.test(navigator.userAgent)}static isPWAModeOnSamsungTV(){return(0,n.mI)()&&!navigator.userAgent.includes("SamsungBrowser")}static isArmPlatform(){return window.navigator.userAgent.toLowerCase().includes(" arm")}static isTouchPlatform(){return!!window.Touch&&navigator.maxTouchPoints>0}static isMobileFromUserAgent(){return navigator.userAgent.toLowerCase().includes("mobile")}static isVisionPro(v){return v.OSName===l.t_.IPadOS&&v.SystemName===p.DeviceModel.VISION_PRO}static isAndroidQuest(v){return _.isAndroidPlatform()&&"oculus"===v.VendorName&&v.SystemName.startsWith("Quest")}}},70115:(Ue,W,d)=>{"use strict";d.d(W,{Y0:()=>l,dZ:()=>m,rK:()=>_,t_:()=>p});var l=function(P){return P.Desktop="Desktop",P.Laptop="Laptop",P.TV="TV",P.Phone="Phone",P.Tablet="Tablet",P.Server="Server",P.Console="Console",P.Undefined="undefined",P}(l||{}),p=function(P){return P.Windows="Windows",P.MacOS="MacOS",P.Shield="Shield",P.Android="Android",P.IOS="iOS",P.IPadOS="iPadOS",P.ChromeOS="ChromeOS",P.Linux="Linux",P.Tizen="Tizen",P.WebOS="WebOS",P.TvOS="tvOS",P.XBox="Xbox",P.SteamOS="SteamOS",P.VisionOS="visionOS",P.Undefined="undefined",P}(p||{}),m=function(P){return P.CHROME="Chrome",P.SAFARI="Safari",P.YANDEX="Yandex",P.EDGE="Edge",P.EDGE_LEGACY="Edge_legacy",P.FIREFOX="Firefox",P.SAMSUNG="Samsung",P.CHROMIUM="Chromium",P.OPERA="Opera",P.BRAVE="Brave",P.SILK="Silk",P.Undefined="undefined",P}(m||{});const _="undefined"},62502:(Ue,W,d)=>{"use strict";d.d(W,{Fj:()=>S,gL:()=>P,gr:()=>m,rK:()=>v,u4:()=>O,wx:()=>_});var n=d(70115),l=d(53931);const m={clientId:"{CLIENTID}",clientVer:"{CLIENTVER}",feedbackId:"{FEEDBACKID}",feedbackName:"{FEEDBACKNAME}",feedbackProtocol:"4.4",feedbackSchemaVer:"{FEEDBACKSCHEMAVER}",feedbackSysVer:"",deviceId:l.Qe,userId:l.Qe,externalUserId:l.Qe,idpId:l.Qe,sessionId:l.Qe,sentTs:"",clientTs:"",deviceOS:n.t_.Undefined,deviceOSVersion:l.Qe,deviceMake:l.Qe,deviceModel:l.Qe,deviceType:n.Y0.Undefined,clientType:l.sK.Undefined,clientVariant:l.zg.Undefined,browserType:l.Qe,integrationId:l.Qe,productName:l.Qe,productVersion:l.Qe},_={functional:l.Rg.None,technical:l.Rg.None,behavioral:l.Rg.None},P={bufferSize:5120,chunkCreationTimeout:3e5,chunksQueueSize:20,chunkResendRetryLimit:2},v="undefined";var O=function(y){return y[y.FeedbackRequestAccepted=200]="FeedbackRequestAccepted",y[y.FeedbackSizeOverLimits=413]="FeedbackSizeOverLimits",y[y.InvalidFeedback=460]="InvalidFeedback",y[y.FeedbackIdInUse=461]="FeedbackIdInUse",y[y.FeedbackIdExpired=462]="FeedbackIdExpired",y[y.AttachmentsRejected=466]="AttachmentsRejected",y[y.UnknownClientId=467]="UnknownClientId",y[y.ServerError=500]="ServerError",y}(O||{}),S=function(y){return y[y.AllFramesReceived=200]="AllFramesReceived",y[y.PartialFramesReceived=206]="PartialFramesReceived",y[y.InvalidFeedbackId=462]="InvalidFeedbackId",y[y.NonSequentialChunk=463]="NonSequentialChunk",y[y.FrameChecksumOrSizeMismatch=464]="FrameChecksumOrSizeMismatch",y[y.ServerError=500]="ServerError",y}(S||{})},53931:(Ue,W,d)=>{"use strict";d.d(W,{Qe:()=>n,Rg:()=>m,sK:()=>l,zg:()=>p});const n="undefined";var l=function(_){return _.Native="Native",_.Browser="Browser",_.GFNSDK="GFNSDK",_.Undefined="undefined",_}(l||{}),p=function(_){return _.iBeta="iBeta",_.Release="Release",_.Undefined="undefined",_}(p||{}),m=function(_){return _.Full="Full",_.None="None",_.Temp="Temp",_}(m||{})},77061:(Ue,W,d)=>{"use strict";d.d(W,{V:()=>i});var n=d(80583),l=d(26875),m=d(32727),_=d(33089),P=d(62502),v=d(58527),O=d(61142),S=d(30308),y=d(84580);const r="RemoteLogsSaveKey";let i=(()=>{var a;class h{constructor(c,T,A,L){this.datePipe=c,this.networkStatusService=T,this.injector=A,this.browserLeanModeService=L,this.logsBuffer="",this.chunksQueue=[],this.maxBufferSizeInBytes=P.gL.bufferSize,this.chunkCreationTimeout=P.gL.chunkCreationTimeout,this.logsChunkUpdated$=new n.B7,this.chunksQueueSize=P.gL.chunksQueueSize,this.chunkResendRetryLimit=P.gL.chunkResendRetryLimit,this.logBufferingAllowed=!0,this.leanModeLogger=!1,this.isGfcHeadRequestSent=!1,this.timerSub$=new n.B7,this.isTimerTriggered=!1,this.refreshFeedbackSessionSubject=new n.B7,this.timeBasedLogClearanceCounter=0,this.feedbackSessionClosed=!1,this.newLine="\n",this.chunkSendInProgress=!1}initialize(){this.chunkResendRetryMap=new Map,this.addLogger("LogQueueService",["initialize"]),this.networkStatusService.onlineStatusChanged.subscribe(this.onNetworkStatusChanged.bind(this)),this.browserLeanModeService.leanModeTransitionState.subscribe(c=>{this.leanModeLogger=c,c&&this.stopTimeBasedLogCollection()})}addLogger(c,T){const A=(0,m.tO)(c,"INFO",this.datePipe,T);this.appendLogEntry(A)}setHeadRequestStatus(c){this.isGfcHeadRequestSent=c}checkFeasibilityAndSendChunk(c,T=!1,A){!this.isUserConsentAvailable||!this.isGfcHeadRequestSent||T||this.chunkSendInProgress||(0,l.isEmpty)(c)?this.isUserConsentAvailable&&T&&this.logsChunkUpdated$.next({logString:this.sendChunkToServer(c),isLastChunk:T,params:A}):this.logsChunkUpdated$.next({logString:this.sendChunkToServer(c),isLastChunk:!1})}startTimeBasedLogDispatch(){if(this.addLogger("LogQueueService",["Interval of 10 mins elapsed: current buffer length: ",this.logsBuffer.length]),this.addLogger("LogQueueService",["Chunk send in progress: ",this.chunkSendInProgress]),!1===this.chunkSendInProgress){this.refreshFeedbackSessionSubject.next(++this.timeBasedLogClearanceCounter),this.addLogger("LogQueueService",["Clearing chunk on timeout... "]);const c=this.extractAndSaveChunk();this.checkFeasibilityAndSendChunk(c)}}stopTimeBasedLogCollection(c=""){this.isTimerTriggered=!1,this.timerSub$.next({startTimer:!1,timeout:0}),this.addLogger("LogQueueService",["Stopping log collection timer. "+c])}isBufferSizeWithinLimits(c,T){return!(c.concat(T,this.newLine).length>this.maxBufferSizeInBytes)}sendChunkToServer(c){return this.chunkSendInProgress=!0,c||""}addChunksToQueue(c){this.chunksQueue.length===this.chunksQueueSize&&this.chunksQueue.splice(0,this.chunksQueue.length),this.chunksQueue.push(c),this.chunkResendRetryMap.set(this.chunksQueue[this.chunksQueue.length-1],0)}extractAndSaveChunk(){const c=this.logsBuffer.slice(0);return this.addChunksToQueue(c),this.logsBuffer="",this.popChunkFromQueue()}pushLogToBuffer(c){this.logsBuffer=this.logsBuffer.concat(c,this.newLine)}startTimer(){this.leanModeLogger||(this.timerSub$.next({startTimer:!0,timeout:this.chunkCreationTimeout}),this.isTimerTriggered=!0)}popChunkFromQueue(){const c=this.chunkResendRetryMap.get(this.chunksQueue[0]);return this.isUserConsentAvailable&&this.isGfcHeadRequestSent&&c<=this.chunkResendRetryLimit?(this.chunkResendRetryMap.set(this.chunksQueue[0],c+1),this.chunksQueue.slice(0,1).toString()):(this.isUserConsentAvailable&&this.isGfcHeadRequestSent&&c>this.chunkResendRetryLimit&&this.removeChunkFromSavedQueue(),"")}saveLogsToSessionStorage(){this.addChunksToQueue(this.logsBuffer);const c=JSON.stringify(this.chunksQueue);sessionStorage.setItem(r,c)}readConsoleLogsFromSessionStorage(){const c=JSON.parse(sessionStorage.getItem(r));sessionStorage.removeItem(r),this.appendPreviousLogs(c)}appendPreviousLogs(c){this.chunkResendRetryMap&&this.chunkResendRetryMap.clear(),c=c.concat(this.chunksQueue),this.chunksQueue=c.length>this.chunksQueueSize?c.slice(-this.chunksQueueSize):c;for(let T=0;T<this.chunksQueue.length;T++)this.chunkResendRetryMap.set(this.chunksQueue[T],0)}removeChunkFromSavedQueue(){this.chunkResendRetryMap.delete(this.chunksQueue[0]),this.chunksQueue.splice(0,1)}onNetworkStatusChanged(c){c?this.addLogger("LogQueueService",["LogCollector lib is online right now"]):(this.addLogger("LogQueueService",["LogCollector lib is offline right now"]),this.stopTimeBasedLogCollection())}updateFeedbackSessionStatus(c){this.feedbackSessionClosed=c}getRefreshFeedbackSubjectObservable(){return this.refreshFeedbackSessionSubject.asObservable()}onLogsChunkUpdated(){return this.logsChunkUpdated$.asObservable()}clearQueueAndBuffer(c){const T=this.chunkSendInProgress;this.chunkSendInProgress=!0,this.gfcService=(0,l.isUndefined)(this.gfcService)?this.injector.get(_.NO):this.gfcService;let A="";this.chunksQueue.forEach(L=>{A=A.concat(L,this.newLine)}),A=A.concat(this.logsBuffer,this.newLine),this.logBufferingAllowed&&this.isUserConsentAvailable&&(c?(A=A.concat("sendBeacon api is going to be called."),this.gfcService.sendLastFeedbackChunkEvent(A,this.eventData)):(A=A.concat("eob request will be sent for the last chunk."),this.checkFeasibilityAndSendChunk(A,!0,{isBrowserClosing:c,prevChunkInProgress:T}))),this.logsBuffer="",this.chunksQueue=[],this.chunkSendInProgress=!1,this.eventData=null}appendLogEntry(c){if(this.logBufferingAllowed)if(this.isBufferSizeWithinLimits(this.logsBuffer,c))this.pushLogToBuffer(c);else if(this.feedbackSessionClosed)this.feedbackSessionClosed=!1,this.timeBasedLogClearanceCounter=0,this.refreshFeedbackSessionSubject.next(this.timeBasedLogClearanceCounter),this.pushLogToBuffer(c);else{this.timeBasedLogClearanceCounter=0,this.isTimerTriggered&&this.stopTimeBasedLogCollection("due to buffer limit.");const T=this.extractAndSaveChunk();this.pushLogToBuffer(c),this.checkFeasibilityAndSendChunk(T)}}onSendChunkSuccess(){this.chunkSendInProgress=!1,this.removeChunkFromSavedQueue(),0!==this.chunksQueue.length?this.checkFeasibilityAndSendChunk(this.popChunkFromQueue()):this.startTimer()}onSendChunkFailure(c){switch(this.chunkSendInProgress=!1,c.status){case P.Fj.NonSequentialChunk:case P.Fj.FrameChecksumOrSizeMismatch:case P.Fj.ServerError:this.checkFeasibilityAndSendChunk(this.popChunkFromQueue());break;default:console.log("Error encountered in sending chunks: ",c),c.status!==P.Fj.InvalidFeedbackId&&this.checkFeasibilityAndSendChunk(this.popChunkFromQueue())}}stopChunkCollection(c=!1){this.logBufferingAllowed=c,this.stopTimeBasedLogCollection("Going to stop chunk collection. logBufferingAllowed: "+this.logBufferingAllowed+"."),this.clearQueueAndBuffer(!1)}setBufferConfig(c){this.chunkCreationTimeout=c.msBetweenChunkCreation,this.maxBufferSizeInBytes=c.maxBufferSizeInBytes,this.chunksQueueSize=c.chunksQueueSize,this.chunkResendRetryLimit=c.chunkResendRetryLimit}updateUserConsent(c){this.isUserConsentAvailable=c}updateEventData(c){this.eventData={...c}}timerSubscriptionChanged(){return this.timerSub$.asObservable()}updateTimer(c){"Timeout"===c?this.startTimeBasedLogDispatch():"Cleared"===c&&this.addLogger("LogQueueService",["Log collection timer has been stopped"])}ngOnDestroy(){this.logsBuffer=""}}return(a=h).\u0275fac=function(c){return new(c||a)(v.KVO(O.vh),v.KVO(S.C),v.KVO(v.zZn),v.KVO(y.r))},a.\u0275prov=v.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),h})()},72477:(Ue,W,d)=>{"use strict";d.d(W,{V:()=>A});var n=d(26875),p=d(57258),m=d(43848),_=d(83915),P=d(75707),v=d(14714),O=d(43615),S=d(33089),y=d(32727),r=d(62502),i=d(53931),a=d(58527),h=d(77061),g=d(30308);let A=(()=>{var L;class x{constructor(D,F,I){this.injector=D,this.logQueueService=F,this.networkStatusService=I,this.defaultConsent=r.wx,this.currentUserConsent=r.wx,this.isUserConsentAvailable=!1,this.currentUserId=r.rK,this.externalUserId=r.rK,this.idpId=r.rK,this.commonFeedbackData=r.gr,this.isGfcHeadRequestSent=!1,this.isOnline=!1,this.chunkFailureCount=0,this.attachmentUploadedPermitted=!0,this.streamSubSessionIds=[],this.feedbackIdSubject=new p.m(1)}initialize(){this.logQueueService.initialize(),this.logQueueService.addLogger("RemoteLoggingService",["initialize"]),this.networkStatusService.onlineStatusChanged.subscribe(this.onNetworkStatusChanged.bind(this)),this.handleBrowserTabClosure(),this.getLatestLogsChunk(),this.trackIdleFeedbackSessions()}set defaultConsentLevel(D){this.defaultConsent=D}saveLogsToSessionStorage(){this.logQueueService.saveLogsToSessionStorage()}restoreSavedLogs(){return this.logQueueService.readConsoleLogsFromSessionStorage()}stopFeedbackUpload(){if(this.isChunkUploadPermitted()){this.logQueueService.addLogger("RemoteLoggingService",["Close current feedback session."]),this.logQueueService.stopChunkCollection(!0),this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.logQueueService.updateFeedbackSessionStatus(!0),this.streamSubSessionIds.splice(0,this.streamSubSessionIds.length);const D={parameters:{streamSessionId:r.rK,streamSubSessionIds:this.streamSubSessionIds}};this.eventData=this.eventData??{},this.eventData.parameters={...this.eventData?.parameters,...D.parameters},this.commonFeedbackData={...this.commonFeedbackData,...this.eventData},this.logQueueService.updateEventData(this.eventData)}}trackIdleFeedbackSessions(){this.logQueueService.getRefreshFeedbackSubjectObservable().pipe((0,_.T)(D=>{3===D?(this.logQueueService.addLogger("RemoteLoggingService",["Stopping feedback upload since max idle timeout duration is reached"]),this.stopFeedbackUpload()):0===D&&(this.logQueueService.addLogger("RemoteLoggingService",["Initiating a new feedback session.."]),this.sendNewGfcHeadRequest())})).subscribe()}onNetworkStatusChanged(D){this.isOnline=D}addGdprConsentFields(){this.commonFeedbackData=(0,n.extend)({gdprFuncOptIn:this.currentUserConsent.functional??this.defaultConsent.functional,gdprTechOptIn:this.currentUserConsent.technical,gdprBehOptIn:this.currentUserConsent.behavioral,deviceGdprFuncOptIn:this.defaultConsent.functional,deviceGdprTechOptIn:this.defaultConsent.technical,deviceGdprBehOptIn:this.defaultConsent.behavioral},this.commonFeedbackData)}isChunkUploadPermitted(){return!!this.attachmentUploadedPermitted&&this.chunkFailureCount<=2}getLatestLogsChunk(){this.logChunkReceivedSubscription=this.logQueueService.onLogsChunkUpdated().pipe((0,P.ZZ)(D=>(this.logQueueService.addLogger("RemoteLoggingService",["New batch! Attempting to send a batch of size: ",D.logString.length]),this.isChunkUploadPermitted()?this.isOnline&&this.isUserConsentAvailable?this.sendLogsChunk(D.logString,D.isLastChunk,D.params):(this.logQueueService.chunkSendInProgress=!1,this.logQueueService.addLogger("RemoteLoggingService",["Unable to send batch of logs due to lack of user consent and/or user is offline. isUserConsentAvailable: ",this.isUserConsentAvailable,", isOnline: ",this.isOnline]),(0,m.of)(!1)):(this.logQueueService.addLogger("RemoteLoggingService",["Stopping log collection as max failure count is reached."]),this.logQueueService.stopChunkCollection(),(0,m.of)(!1))))).subscribe(D=>{D||this.logQueueService.addLogger("RemoteLoggingService",["Chunk send failure."])})}terminateChunkReceivedSubscription(){this.logChunkReceivedSubscription&&(this.logChunkReceivedSubscription.unsubscribe(),this.logChunkReceivedSubscription=null)}sendNewGfcHeadRequest(){this.terminateChunkReceivedSubscription(),this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.commonFeedbackData.feedbackId=(0,y.bz)(),this.feedbackIdSubject.next(this.commonFeedbackData.feedbackId),this.commonFeedbackData.clientTs=(new Date).toISOString(),this.logQueueService.addLogger("RemoteLoggingService",["New GFC feedback session created: ",this.commonFeedbackData.feedbackId]),console.log("New GFC feedback session created: ",this.commonFeedbackData.feedbackId),this.sendGfcHeadRequest(this.commonFeedbackData)}handleHeadRequestErrors(D){switch(D.status){case r.u4.FeedbackIdInUse:case r.u4.FeedbackIdExpired:this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.sendNewGfcHeadRequest();break;case r.u4.AttachmentsRejected:this.attachmentUploadedPermitted=!1,this.logQueueService.stopChunkCollection()}}sendGfcHeadRequest(D){this.gfcService=(0,n.isUndefined)(this.gfcService)?this.injector.get(S.NO):this.gfcService,this.isOnline&&this.isUserConsentAvailable&&(D.sentTs=(new Date).toISOString(),this.gfcService.sendFeedbackEvent(D).subscribe(F=>{this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!0),(0,n.isNil)(this.logChunkReceivedSubscription)&&this.getLatestLogsChunk()},F=>{this.logQueueService.addLogger("RemoteLoggingService",["Send HEAD request error: ",F]),this.handleHeadRequestErrors(F)}))}handleExternalUrlLoad(){this.logQueueService.clearQueueAndBuffer(!0)}handleBrowserTabClosure(){window.addEventListener("pagehide",D=>{this.logQueueService.addLogger("RemoteLoggingService",["Window pagehide triggered."]),this.isGfcHeadRequestSent&&this.logQueueService.clearQueueAndBuffer(!0)})}handleSpecialAttachmentErrors(D){if(this.isChunkUploadPermitted()&&D.status===r.Fj.InvalidFeedbackId)this.sendNewGfcHeadRequest();else if(this.isChunkUploadPermitted()&&D.status===r.Fj.NonSequentialChunk){const F=D?.rawResponse?.headers?.get("x-data-offset");this.gfcService.updateOffsetOnSuccessfulAttachmentRequest(F)}else this.isChunkUploadPermitted()||(this.logQueueService.addLogger("RemoteLoggingService",["Attachment error, stopping log collection as max failure count is reached."]),this.logQueueService.stopChunkCollection())}sendLogsChunk(D,F,I){return this.gfcService.sendFeedbackChunkEvent(D,this.eventData,F,I).pipe((0,P.ZZ)(k=>(this.gfcService.updateOffsetOnSuccessfulAttachmentRequest(),this.logQueueService.onSendChunkSuccess(),(0,m.of)(!0))),(0,v.W)(k=>(this.logQueueService.addLogger("RemoteLoggingService",["Failure in sending a chunk: ",k]),k?.status?(this.chunkFailureCount++,this.handleSpecialAttachmentErrors(k),this.logQueueService.onSendChunkFailure(k)):this.logQueueService.addLogger("RemoteLoggingService",["Non GFC error occurred: ",k,k?.message]),(0,m.of)(!1))),(0,O.j)(()=>{F&&I?.isBrowserClosing&&this.terminateChunkReceivedSubscription()}))}prepareGfcFeedbackEventParams(D){this.eventData={parameters:D},this.logQueueService.updateEventData(this.eventData)}prepareFeedbackCommonEventData(D){this.commonFeedbackData=(0,n.merge)(this.commonFeedbackData,D),this.feedbackIdSubject.next(this.commonFeedbackData.feedbackId),this.commonFeedbackData.userId===r.rK&&this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!1)}setUserConsent(D){this.currentUserConsent=D.userConsent,(0,n.isEmpty)(D.externalUserId)?(this.externalUserId=D.userId,this.currentUserId=S.Qe,this.idpId=S.Qe):(this.currentUserId=D.userId,this.externalUserId=D.externalUserId,this.idpId=D.idpId),this.currentUserConsent.technical===i.Rg.Full?(this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!0),this.addGdprConsentFields(),this.commonFeedbackData.userId=this.currentUserId,this.commonFeedbackData.externalUserId=this.externalUserId,this.commonFeedbackData.idpId=this.idpId,this.commonFeedbackData.clientTs=(new Date).toISOString(),this.commonFeedbackData=(0,n.extend)(this.commonFeedbackData,this.eventData)):this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!1),this.isGfcHeadRequestSent||this.sendGfcHeadRequest(this.commonFeedbackData)}collectLogString(D){this.logQueueService.appendLogEntry(D)}setBufferConfiguration(D){this.logQueueService.setBufferConfig(D)}updateEventDataParamIds(D){D.streamSessionId?(0!==this.streamSubSessionIds.filter(F=>""===F).length&&this.streamSubSessionIds.splice(0,1),this.streamSubSessionIds.push(D.streamSubSessionId),this.eventData=(0,n.merge)(this.eventData,{parameters:{streamSessionId:D.streamSessionId,streamSubSessionIds:this.streamSubSessionIds}})):D.surveySessionId&&(this.eventData=(0,n.merge)(this.eventData,{parameters:{surveySessionId:D.surveySessionId}})),this.logQueueService.updateEventData(this.eventData)}get feedbackId$(){return this.feedbackIdSubject.asObservable()}ngOnDestroy(){this.terminateChunkReceivedSubscription()}}return(L=x).\u0275fac=function(D){return new(D||L)(a.KVO(a.zZn),a.KVO(h.V),a.KVO(g.C))},L.\u0275prov=a.jDH({token:L,factory:L.\u0275fac,providedIn:"root"}),x})()},57118:(Ue,W,d)=>{"use strict";d.d(W,{DY:()=>n,Eb:()=>m,cq:()=>_});var n=function(P){return P.READ="read",P.WRITE="write",P.DELETE="delete",P.SUCCESS="success",P.ERROR="error",P}(n||{}),m=function(P){return P.LoginHint="login_hint",P.IdpId="idp_id",P}(m||{}),_=function(P){return P.NVAPP="nvapp",P.GFN="gfn",P.GFN_WEB="gfn-web",P}(_||{})},32362:(Ue,W,d)=>{"use strict";d.d(W,{I:()=>c});var n=d(57118),l=d(43848),p=d(83915),m=d(75707),_=d(14714),P=d(91384),v=d(8619),O=d(65706),S=d(14354),y=d(58527),r=d(59859),i=d(74931),a=d(3567);let h=(()=>{var T;class A{constructor(x,V){this.bridgeService=x,this.loggingService=V,this.logger=this.loggingService.getLogger("libraries/ConfigStoreService")}writeAppInfoToPersistence(x){return this.bridgeService.executeCommand(i.Ts.Common.Loginid.AddAppInfoToPersistence,{appInfo:x}).pipe((0,P.M)(D=>this.logger.info("AppInfo Write Success")),(0,_.W)(D=>(this.logger.error(D),(0,r.$)(D))))}readAppInfoFromPersistence(){return this.bridgeService.executeCommand(i.Ts.Common.Loginid.GetAllAppInfoFromPersistence).pipe((0,p.T)(x=>x?.AppsInfo),(0,P.M)(x=>this.logger.info("AppInfo Read Success")),(0,_.W)(x=>(this.logger.error(x),(0,r.$)(x))))}writeConfigFile(x,V){this.logger.info(`Writing in config file for ${x} ${JSON.stringify(V)}`);const D=Object.keys(V).map(I=>({key:I,value:V[I]}));return this.bridgeService.executeCommand(i.Ts.Common.Applicationcontrol.WriteGenericConfig,{configname:x,path:D}).pipe((0,P.M)(I=>this.logger.info("Write Success")),(0,_.W)(I=>(this.logger.error(I),(0,r.$)(I))))}readConfigFile(x,V){return this.logger.info(`Reading config file for ${x} ${JSON.stringify(V)}`),this.bridgeService.executeCommand(i.Ts.Common.Applicationcontrol.ReadGenericConfig,{configname:x,path:V}).pipe((0,P.M)(F=>this.logger.info("Read Success")),(0,_.W)(F=>(this.logger.error(F),(0,r.$)(F))))}removeFromConfig(x,V){return this.logger.info(`Removing config ${JSON.stringify(V)} from file for ${x}`),this.bridgeService.executeCommand(i.Ts.Common.Applicationcontrol.RemoveFromGenericConfig,{configname:x,path:V}).pipe((0,P.M)(F=>this.logger.info("Config removed")),(0,_.W)(F=>(this.logger.error(F),(0,r.$)(F))))}}return(T=A).\u0275fac=function(x){return new(x||T)(y.KVO(a.NZ),y.KVO(a.J6))},T.\u0275prov=y.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),A})();var g=d(3678);let c=(()=>{var T;class A{constructor(x,V,D){this.configStore=x,this.loggingService=V,this.router=D,this.cachedSsoLoginInfo=null,this.browserSsoLoginHint=null,this.currentloginSilentLoginInfoUpdateStatus=!1,this.logger=this.loggingService.getLogger("silentlogin/loginhint-service")}isEmptySilentLoginInfo(x){return!(x&&x.idp_id&&x.login_hint&&x.applicationName&&""!==x.idp_id.trim()&&""!==x.login_hint.trim()&&""!==x.applicationName.trim())}returnNullIfEmpty(x){return x.pipe((0,p.T)(V=>this.isEmptySilentLoginInfo(V)?null:V))}updateSsoLoginInfoEntry(x,V,D,F){const I={idp_id:V,login_hint:D,applicationName:F};return x&&!this.isEmptySilentLoginInfo(I)?(this.currentloginSilentLoginInfoUpdateStatus=!0,this.updateSsoLoginInfoEntryInternal(I)):this.cleanUpSsoLoginInfo(F)}updateSsoLoginInfoEntryInternal(x){return this.getSsoLoginInfo().pipe((0,m.ZZ)(V=>V&&V.applicationName===x?.applicationName&&V.idp_id===x?.idp_id&&V.login_hint===x?.login_hint?(this.logger.info("No changes detected in SSO login info."),(0,l.of)(!1)):this.setSsoLoginInfo(x)),(0,_.W)(V=>(this.logger.error("Error updating SsoLoginInfoEntry",V),(0,l.of)(!1))))}mapAppInfoToSsoLoginInfoEntry(x){return{idp_id:x?.idpId,login_hint:x?.loginHint,applicationName:x?.applicationName}}getSsoLoginInfo(){const x=this.extractAndClearLoginHintQueryParams();return x&&!this.isEmptySilentLoginInfo(x)?(this.browserSsoLoginHint=x,(0,l.of)(this.browserSsoLoginHint)):this.cachedSsoLoginInfo&&!this.isEmptySilentLoginInfo(this.cachedSsoLoginInfo)?(0,l.of)(this.cachedSsoLoginInfo):this.configStore.readAppInfoFromPersistence().pipe((0,p.T)((V=[])=>{const D=V.find(F=>{const I=this.mapAppInfoToSsoLoginInfoEntry(F);return!this.isEmptySilentLoginInfo(I)});return D?this.mapAppInfoToSsoLoginInfoEntry(D):null}),this.returnNullIfEmpty.bind(this),(0,P.M)(V=>this.cachedSsoLoginInfo=V),(0,_.W)(V=>(this.logger.error("Error occurred while reading the loginids file -",V),(0,l.of)(null))))}extractAndClearLoginHintQueryParams(){const x=new URL(window.location.href),V=x.searchParams;let D=null;if(V.has(n.Eb.LoginHint)&&V.has(n.Eb.IdpId)){const F=V.get(n.Eb.LoginHint),I=V.get(n.Eb.IdpId);F&&""!==F.trim()&&I&&""!==I.trim()?D={login_hint:decodeURIComponent(F),idp_id:decodeURIComponent(I),applicationName:n.cq.GFN_WEB}:this.logger.error("Invalid login hint or idpId from query param. Both values must be provided and not empty."),this.router.events.pipe((0,v.p)(k=>k instanceof S.wF),(0,O.s)(1)).subscribe(k=>{this.logger.info(`Cleaning up login hint from: ${k.url}`),V.delete(n.Eb.LoginHint),V.delete(n.Eb.IdpId),window.history.replaceState({},"",x)})}return D}setSsoLoginInfo(x){return this.configStore.writeAppInfoToPersistence({applicationName:x.applicationName,idpId:x?.idp_id,loginHint:x?.login_hint}).pipe((0,P.M)(V=>{V&&(this.cachedSsoLoginInfo=x)}),(0,_.W)(V=>(this.logger.error("Error occurred in writeConfigFile:",V),(0,l.of)(!1))))}cleanUpSsoLoginInfo(x){if(!this.isEmptySilentLoginInfo(this.cachedSsoLoginInfo)){const V=this.cachedSsoLoginInfo?.applicationName;if(this.cachedSsoLoginInfo=null,x===V&&this.currentloginSilentLoginInfoUpdateStatus)return this.currentloginSilentLoginInfoUpdateStatus=!1,this.setSsoLoginInfo({applicationName:x,idp_id:"",login_hint:""})}return this.browserSsoLoginHint=null,(0,l.of)(!0)}}return(T=A).\u0275fac=function(x){return new(x||T)(y.KVO(h),y.KVO(g.J6),y.KVO(S.Ix))},T.\u0275prov=y.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),A})()},60045:(Ue,W,d)=>{"use strict";d.d(W,{S:()=>l,r:()=>p});var n=d(58527),l=function(m){return m.Gfe="gfeclient",m.Gfn="gfnclient",m.Igo="shareclient",m.Forager="foragerclient",m.Nvcpl="controlPanelclient",m.Oogg="ooggclient",m.Vdkplaytest="vdkplaytest",m.Nvapp="nvapp",m.Gdn="gdnclient",m}(l||{});let p=(()=>{var m;class _{}return(m=_).\u0275fac=function(v){return new(v||m)},m.\u0275prov=n.jDH({token:m,factory:m.\u0275fac}),_})()},3567:(Ue,W,d)=>{"use strict";d.d(W,{lo:()=>h,Sg:()=>Re.S,cq:()=>Gs.cq,Hf:()=>ys,aP:()=>To,Ou:()=>n.Ou,NZ:()=>n.NZ,rQ:()=>Qe.r,Un:()=>n.Un,dZ:()=>xe.dZ,sK:()=>Pe.sK,zg:()=>Pe.zg,Qv:()=>Ci,Y0:()=>xe.Y0,T6:()=>Ki,Rg:()=>Pe.Rg,_N:()=>Xt._,fg:()=>Kr,sc:()=>Ti,tO:()=>pi,at:()=>Zt,t_:()=>xe.t_,Jm:()=>ar,jS:()=>ki,FK:()=>Vi,SQ:()=>zi,Ho:()=>or,Pl:()=>nr,$f:()=>li,rB:()=>Tn,wt:()=>gt,iH:()=>de,$b:()=>Oe,V9:()=>Ee.V,Vy:()=>I.Vy,q_:()=>Pa.q,J6:()=>I.J6,IU:()=>Ca.I,hi:()=>Tr,dU:()=>he,D4:()=>xo,CF:()=>qt.C,Sd:()=>y,aI:()=>oe,uP:()=>Qt,zk:()=>m.zk,Vn:()=>Me.V,fV:()=>di,cK:()=>P,Ts:()=>va,SV:()=>tn,pZ:()=>qr,Lu:()=>r,zW:()=>ce,zH:()=>Ba,Qe:()=>Pe.Qe,s7:()=>Ze,BU:()=>_e,BY:()=>pe});var _,n=d(10607),l=d(65240),p=d(57258),m=d(26502);class P{static sendTelemetry(Wt){P.retrySubject.subscribe({next:On=>{Wt.info(On.isSuccess?"success event ":"failure event ",Date.now(),On)}})}static retry(Wt,On,Nt=P.retryAttempts,gi=P.intervalBetweenRetries){let Bi;return new Promise((Mi,tr)=>{Wt().then(function(mo){return m.zk.isBrowserPlatform()&&(Bi={isSuccess:!0,attemptCount:P.retryAttempts+1-Nt,error:null,fileName:On},P.retrySubject.next(Bi)),Mi(mo)}).catch(mo=>{if(m.zk.isBrowserPlatform()){if(Bi={isSuccess:!1,attemptCount:P.retryAttempts+1-Nt,error:mo,fileName:On},P.retrySubject.next(Bi),1===Nt)return void tr(mo);setTimeout(()=>{P.retry(Wt,On,Nt-1,P.intervalBetweenRetries*(P.retryAttempts+1-Nt)).then(Mi,tr)},gi)}else tr(mo)})})}}(_=P).retrySubject=new p.m(5),_.retryAttempts=5,_.intervalBetweenRetries=50;var v=d(43848),O=d(59859),S=d(26875);const y={Ethernet:"Ethernet",WiFi2_4:"WiFi 2.4",WiFi5_0:"WiFi 5.0",WiFi6_0:"WiFi 6.0",WiFiUnknown:"WiFi Unknown",Mobile:"Mobile",Other:"Other",Unknown:"Unknown"};var r=function(en){return en.DeviceId="DeviceId",en.ProductVersion="ProductVersion",en.ProductName="ProductName",en.Region="Region",en.CPUName="CPUName",en.Disk="Disk",en.PhysicalDisk="PhysicalDisk",en.Display="Display",en.GPU="GPU",en.HID="HID",en.Network="Network",en.OSName="OSName",en.OSVersion="OSVersion",en.BrowserName="BrowserName",en.BrowserVersion="BrowserVersion",en.OSBuildNumber="OSBuildNumber",en.PhysicalMemoryCapacity="PhysicalMemoryCapacity",en.Platform="Platform",en.ProcessorArchitecture="ProcessorArchitecture",en.SystemName="SystemName",en.UserDefaultUILanguage="UserDefaultUILanguage",en.VendorName="VendorName",en.SubApiName="SubApiName",en.ErrorMessage="ErrorMessage",en.ApiStatus="ApiStatus",en.ApiName="ApiName",en.PluginName="PluginName",en.DxVersion="DxVersion",en.DeviceType="DeviceType",en.ConfidenceInBrowser="ConfidenceInBrowser",en.IsBrowserForged="IsBrowserForged",en.Location="Location",en.Make="Make",en.Model="Model",en.CurrentUiMode="CurrentUiMode",en}(r||{});const i=[r.CPUName,r.OSName,r.OSVersion,r.BrowserName,r.BrowserVersion,r.OSBuildNumber,r.PhysicalMemoryCapacity,r.Platform,r.ProcessorArchitecture,r.SystemName,r.VendorName,r.DeviceType,r.ConfidenceInBrowser,r.IsBrowserForged,r.DeviceId,r.ProductVersion,r.ProductName,r.Make,r.Model,r.UserDefaultUILanguage,r.DxVersion],a=i.filter(en=>en!==r.DxVersion),h=Object.values(r);var g=d(83915),c=d(14714),T=d(75707),A=d(91384),L=d(86447),x=d(72147),V=d(65726),D=d(10174),F=d(53461),I=d(3678);class k{constructor(Wt,On,Nt,gi="assets/i18n/",Bi=".json"){this.http=Wt,this.prefix=gi,this.suffix=Bi,this.config={},this.logger=On.getLogger("FallbackTranslationLoader"),this.config.localeFileHashes=Nt}getTranslation(Wt){let On;return On=this.config.localeFileHashes&&this.config.localeFileHashes[Wt]?`${this.prefix}${Wt}.${this.config.localeFileHashes[Wt]}${this.suffix}`:`${this.prefix}${Wt}${this.suffix}`,this.http.get(On)}}var R=d(94485);const G="en_GB",$=["ar"],ee=new Map([["ar",["ar_SA","ar_EG"]],["bg",["bg_BG"]],["ca",["ca_ES"]],["cs",["cs_CZ"]],["da",["da_DK"]],["de",["de_DE","de_AT","de_CH"]],["el",["el_GR"]],["en",["en_GB"]],["en_MX",["en_US"]],["en_US",["en_GB"]],["es",["es_MX","es_US","es_ES"]],["es_ES",["es_MX","es_US"]],["fa",["fa_IR"]],["fi",["fi_FI"]],["fr",["fr_FR"]],["hr",["hr_HR"]],["hu",["hu_HU"]],["in",["in_ID"]],["id",["id_ID"]],["it",["it_IT"]],["iw",["iw_IL"]],["he",["he_IL"]],["ja",["ja_JP"]],["ka",["ka_GE"]],["ko",["ko_KR"]],["lt",["lt_LT"]],["lv",["lv_LV"]],["ms",["ms_MY"]],["nb",["nb_NO"]],["no",["nb_NO"]],["nl",["nl_NL"]],["pl",["pl_PL"]],["pt",["pt_BR","pt_PT"]],["pt_PT",["pt_BR"]],["ro",["ro_RO"]],["ru",["ru_RU"]],["sk",["sk_SK"]],["sl",["sl_SI"]],["sr",["sr_RS"]],["sv",["sv_SE"]],["th",["th_TH"]],["tl",["tl_PH"]],["tr",["tr_TR"]],["uk",["uk_UA"]],["vi",["vi_VN"]],["zh",["zh_CN"]],["zh_HK",["zh_TW","zh_CN"]],["zh_MO",["zh_TW","zh_CN"]],["zh_MY",["zh_CN"]],["zh_SG",["zh_CN"]],["zh_TW",["zh_HK","zh_CN"]],["zh-Latn_CN",["zh_CN"]]]);var J=d(10785),z=d(58527),te=d(31315),X=d(65706),re=d(74931),ge=d(32727),oe=function(en){return en.Windows="Windows",en.Mac="Mac",en}(oe||{}),xe=d(70115),ue=d(31650);let ce=(()=>{var en;class Wt{constructor(Nt,gi,Bi){this.bridgeService=gi,this.previousSystemInfo={},this.systemInfoGuid=(0,ge.bz)(),this.systemInfoGuidSubject=new p.m(1),this.streams=new Map,this.logger=Nt.getLogger("crimson/SystemInfoService"),this.clientHeaderInfoStream=Bi.createStream(()=>this.fetchClientHeadersInfo(),!0,!0,!0,3e4),Object.values(r).forEach(Mi=>{i.includes(Mi)?this.streams.set(Mi,Bi.createStream(()=>this.fetchSpecificSystemInfo(Mi))):this.streams.set(Mi,Bi.createStream(()=>this.fetchSpecificSystemInfo(Mi),!0,!0,!0,3e4))}),this.getSystemInfo(a).subscribe()}checkStreamingSupport(){return this.bridgeService.executeCommand(re.Ts.Common.Systeminfo.GetStreamingSupportInfo).pipe((0,g.T)(Nt=>Nt.IsStreamingSupported))}fetchDeviceId(){return this.bridgeService.executeCommand(re.Ts.Common.Systeminfo.GetDeviceId).pipe((0,g.T)(Nt=>({DeviceId:Nt.DeviceID})))}getSystemInfoGuid(){return this.systemInfoGuidSubject.asObservable()}updateSystemInfoGuid(Nt){(0,S.isEqual)(Nt,this.previousSystemInfo)||(this.systemInfoGuid=(0,ge.bz)(),this.previousSystemInfo=Nt),this.systemInfoGuidSubject.next(this.systemInfoGuid)}fetchClientHeadersInfo(){return m.zk.isAndroidPlatform()?this.bridgeService.executeCommand(re.Ts.Common.Systeminfo.GetSystemInfo):this.bridgeService.executeCommand(re.Ts.Common.Systeminfo.GetClientHeadersInfo)}fetchSystemInfo(Nt){const gi=new Set(Nt),Bi=[];if(gi.delete(r.DeviceId)){const Mi=this.fetchDeviceId();Bi.push(Mi)}if(m.zk.isCefPlatform()&&(gi.delete(r.BrowserName)||gi.delete(r.BrowserVersion))){const Mi=this.fetchBrowserInfo();Bi.push(Mi)}if(gi.size){const Mi=this.bridgeService.executeCommand(re.Ts.Common.Systeminfo.GetSystemInfo,{keys:[...gi]}).pipe((0,g.T)(tr=>(delete tr._return_code,delete tr._return_status,delete tr._return_internal,tr)));Bi.push(Mi)}return(0,te.zV)([...Bi]).pipe((0,g.T)(Mi=>{let tr={};return Mi.forEach(mo=>{tr={...tr,...mo}}),tr}),(0,A.M)(Mi=>{const tr={...this.previousSystemInfo,...Mi};this.updateSystemInfoGuid(tr)}))}fetchBrowserInfo(){return this.bridgeService.executeCommand(re.Ts.Common.Systeminfo.GetBrowserInfo).pipe((0,g.T)(Nt=>({BrowserName:Nt?.BrowserNameNative||xe.rK,BrowserVersion:Nt?.BrowserVersionNative||xe.rK})))}fetchSpecificSystemInfo(Nt){return this.fetchSystemInfo([Nt])}getSystemInfo(Nt,gi=!1){if(gi)return this.fetchSystemInfo(Nt);const Bi=[],Mi={};return Nt.forEach(tr=>{const mo=this.streams.get(tr)?.getData();mo&&mo[tr]?Mi[tr]=mo[tr]:Bi.push(tr)}),0===Bi.length?(0,v.of)(Mi):this.fetchSystemInfo(Bi).pipe((0,g.T)(tr=>({...Mi,...tr})),(0,A.M)(tr=>{Object.keys(tr).forEach(mo=>{this.streams.has(mo)?this.streams.get(mo).setData(tr,!0):this.logger.error("No systemInfo stream for key ",mo)})}))}getClientHeadersInfo(Nt=!1){return Nt?this.clientHeaderInfoStream.refresh().pipe((0,X.s)(1)):this.clientHeaderInfoStream.get$().pipe((0,X.s)(1))}getDeviceOSType(){return this.getSystemInfo([r.OSName,r.Platform]).pipe((0,g.T)(Nt=>m.zk.isBrowserLikePlatform()?Nt.OSName:Nt.Platform===oe.Mac?xe.t_.MacOS:Nt.Platform===oe.Windows?xe.t_.Windows:xe.t_.Undefined))}}return(en=Wt).BrowserNameNative="Chrome",en.\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6),z.KVO(ue.N),z.KVO(ge.mZ))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var Z=d(22743);let de=(()=>{var en;class Wt{constructor(Nt,gi,Bi,Mi,tr){this.translate=gi,this.systemInfoService=Bi,this.config=tr,this.rtlLocaleSupported=!1,this.rtlLayoutEnabled=!1,this.layoutDirectionUpdated$=new p.m(1),this.retrySubject=new p.m(5),this.isSuccessEventSent=!1,this.isDirectionalityInitialized=!1,this.logger=Nt.getLogger("LocaleService"),this.localeChangedSubscription=Mi.createStream(this.updateLocale.bind(this)),this.translate.setDefaultLang("en_US")}updateLocale(){return this.systemInfoService.getSystemInfo([r.UserDefaultUILanguage]).pipe((0,g.T)(Nt=>{let gi=Nt.UserDefaultUILanguage;return((0,S.isEmpty)(gi)||this.isRTLLocale(gi)&&!this.isRTLLocaleSupported)&&(this.logger.error(`Missing default UI language. Falling back to ${G} for default language.`),gi=G),gi}),(0,c.W)(()=>(this.logger.error(`Failed to get system info. Falling back to ${this.defaultLocale} for default language.`),(0,v.of)(G))),(0,T.ZZ)(Nt=>{let gi=Nt;return(0,S.isNil)(this.config.supportedLang.find(Bi=>Bi===gi))&&(gi=this.getMappedLocale(gi)),this.defaultLocale=gi,this.updateCurrentLocale()}),(0,A.M)(Nt=>this.logger.info("Locale set to "+Nt)))}getLocaleDownloadRetryTelemetryData(){return this.retrySubject}retryOnFailure(Nt,gi){let Bi=1;return Nt.pipe((0,L.l)(Mi=>Mi.pipe((0,x.n)(tr=>m.zk.isBrowserPlatform()?(this.isSuccessEventSent=!1,this.retrySubject.next({isSuccess:!1,attemptCount:Bi,error:null,fileName:gi+".json"}),Bi>=P.retryAttempts?(this.isSuccessEventSent=!0,this.logger.info("Locale JSON dowload retries expired."),(0,O.$)(tr)):(this.logger.info("Locale JSON dowload failed, trying again ",Bi),Bi+=1,(0,v.of)(tr))):(this.logger.error("Not a Browser Client, so retry skipped",tr),(0,O.$)(tr))),(0,V.c)(Bi*P.intervalBetweenRetries))),(0,A.M)(()=>{J.locale(gi),!this.isSuccessEventSent&&m.zk.isBrowserPlatform()&&(this.retrySubject.next({isSuccess:!0,attemptCount:Bi,error:null,fileName:gi+".json"}),this.isSuccessEventSent=!0)}))}updateCurrentLocale(){const Nt=(0,S.isNil)(this.currentLocale)?this.defaultLocale:this.currentLocale;return this.retryOnFailure(this.translate.use(Nt),Nt).pipe((0,D.u)(Nt),(0,c.W)(gi=>(this.logger.error("Locale Json download failed with error ",gi),this.useMappedLocale(Nt))))}getMappedLocale(Nt){let gi;return!(0,S.isEmpty)(Nt)&&Nt.startsWith("zh_Hant")&&(gi="zh_TW"),!(0,S.isEmpty)(Nt)&&ee.get(Nt)&&(gi=ee.get(Nt)?.find(Mi=>this.config.supportedLang.includes(Mi))),!gi&&Nt!==G&&!(0,S.isEmpty)(Nt)&&Nt.length>=2&&(gi=ee.get(Nt.substr(0,2))?.find(Mi=>this.config.supportedLang.includes(Mi))),gi=gi||G,this.logger.info(`Mapped locale for ${Nt} is: ${gi}`),gi}useMappedLocale(Nt){const gi=this.getMappedLocale(Nt);return this.isSuccessEventSent=!1,this.retryOnFailure(this.translate.use(gi),gi).pipe((0,D.u)(gi),(0,c.W)(()=>gi!==G?(this.logger.error(`Could not find translations for ${Nt}, falling back to ${G}`),this.useMappedLocale(G)):(0,O.$)(`Could not load fallback locale ${G}. Translations cannot be loaded.`)))}updateUIDirectionality(){this.isRTLLayoutEnabled=this.isRTLLocale(this.getLocale());const Nt=document?.getElementsByTagName("html")[0];Nt.dir=this.isRTLLayoutEnabled?"rtl":"ltr";const gi=document?.getElementsByTagName("body")[0];gi.dir=this.isRTLLayoutEnabled?"rtl":"ltr",gi.classList.add(this.isRTLLayoutEnabled?"isRtl":"isLtr"),this.isDirectionalityInitialized=!0}isDirectionalityChanged(){return!this.isRTLLayoutEnabled===this.isRTLLocale(this.getLocale())}useDefaultLocale(){return this.currentLocale=void 0,this.localeChangedSubscription.refresh()}setLocale(Nt){return(0,S.isNil)(this.config.supportedLang.find(gi=>gi===Nt))&&(Nt=this.getMappedLocale(Nt)),Nt===this.currentLocale?(0,v.of)(this.currentLocale):(this.currentLocale=Nt,this.localeChangedSubscription.refresh())}getLocale(){return this.currentLocale?this.currentLocale:this.defaultLocale}getShortLocale(){return this.getLocale()?this.getLocale().substr(0,2):"en"}get localeChanged(){return this.localeChangedSubscription.get$().pipe((0,F.F)(),(0,A.M)(()=>{(!this.isDirectionalityInitialized||this.isDirectionalityChanged())&&this.updateUIDirectionality()}))}get isRTLLocaleSupported(){return this.rtlLocaleSupported}set isRTLLocaleSupported(Nt){this.rtlLocaleSupported=Nt}get isRTLLayoutEnabled(){return this.rtlLayoutEnabled}set isRTLLayoutEnabled(Nt){this.rtlLayoutEnabled=Nt,this.layoutDirectionUpdated$.next(!0)}isRTLLocale(Nt){return $.includes(Nt.substr(0,2))}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6),z.KVO(l.c$),z.KVO(ce),z.KVO(ge.mZ),z.KVO(Z.v))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();function pe(en){return l.h.forRoot({loader:{provide:l.Wr,useFactory:(Wt,On)=>function ae(en,Wt,On){return new k(en,Wt,On)}(Wt,On,en),deps:[R.Qq,I.J6]}})}function _e(){return l.h.forChild()}d(70521);var Me=d(72477),Oe=function(en){return en.INFO="INFO",en.WARN="WARN",en.DEBUG="DEBUG",en.ERROR="ERROR",en}(Oe||{});let gt=(()=>{var en;class Wt{constructor(Nt){this.loggingService=Nt}logBasedOnLevel(Nt){switch(Nt.logLevel){case Oe.INFO:case Oe.DEBUG:this.logger.info(Nt.logStr,Nt.timeStamp);break;case Oe.ERROR:this.logger.error(Nt.logStr,Nt.timeStamp);break;case Oe.WARN:this.logger.warn(Nt.logStr,Nt.timeStamp)}}sendLog(Nt){this.logger=this.loggingService.getLogger(Nt.logModule?Nt.logModule+"/"+Nt.logTag:Nt.logTag),this.logBasedOnLevel(Nt)}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var qt=d(30308),ye=d(36877),Re=d(60045);let Ze=(()=>{var en;class Wt{constructor(Nt,gi){this.logger=Nt.getLogger("crimson/windowService"),this.windowRef=window||{},this.windowRef.name=gi.name}get window(){return this.windowRef}getFocusEvent(){return(0,ye.R)(window,"focus")}getPageShowEvent(){return(0,ye.R)(window,"pageshow")}getKeydownEvent(){return(0,ye.R)(window,"keydown")}getKeyupEvent(){return(0,ye.R)(window,"keyup")}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6),z.KVO(Re.r))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})(),et=(()=>{var en;class Wt{get globalStores(){return this.globalStoreDefMap}get userStores(){return this.userStoreDefMap}get appDbName(){return this.dbName}constructor(Nt){this.dbName=Nt.name,this.globalStoreDefMap=new Map,this.userStoreDefMap=new Map}defineStore(Nt,gi){const Bi=Nt.storeName;if(gi.has(Bi))throw new Error(`Error: store name already exists: ${Bi}`);let Mi;return Nt.name=this.dbName,Nt.hasOwnProperty("storeDefault")&&(Mi=Nt.storeDefault,delete Nt.storeDefault),gi.set(Bi,{config:Nt,upgrades:new Map,storeDefault:Mi}),this}defineUpgrade(Nt,gi,Bi,Mi){const tr=Mi.get(Nt);return tr.upgrades.set(gi,Bi),tr.upgradeTargetVersion=gi,this}defineGlobalStore(Nt){return this.defineStore.call(this,Nt,this.globalStoreDefMap)}defineUserStore(Nt){return this.defineStore.call(this,Nt,this.userStoreDefMap)}upgradeGlobalStore(Nt,gi,Bi){return this.defineUpgrade.call(this,Nt,gi,Bi,this.globalStoreDefMap)}upgradeUserStore(Nt,gi,Bi){return this.defineUpgrade.call(this,Nt,gi,Bi,this.userStoreDefMap)}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(Re.r))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var xt=d(80583),un=d(63997),ct=d(19392),Gt=d(70650);const pn=(en,Wt)=>Wt.some(On=>en instanceof On);let st,mn;const Cn=new WeakMap,fn=new WeakMap,dt=new WeakMap,nn=new WeakMap,yn=new WeakMap;let ai={get(en,Wt,On){if(en instanceof IDBTransaction){if("done"===Wt)return fn.get(en);if("objectStoreNames"===Wt)return en.objectStoreNames||dt.get(en);if("store"===Wt)return On.objectStoreNames[1]?void 0:On.objectStore(On.objectStoreNames[0])}return vt(en[Wt])},set:(en,Wt,On)=>(en[Wt]=On,!0),has:(en,Wt)=>en instanceof IDBTransaction&&("done"===Wt||"store"===Wt)||Wt in en};function zt(en){return"function"==typeof en?function Ne(en){return en!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function En(){return mn||(mn=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(en)?function(...Wt){return en.apply(Ct(this),Wt),vt(Cn.get(this))}:function(...Wt){return vt(en.apply(Ct(this),Wt))}:function(Wt,...On){const Nt=en.call(Ct(this),Wt,...On);return dt.set(Nt,Wt.sort?Wt.sort():[Wt]),vt(Nt)}}(en):(en instanceof IDBTransaction&&function rn(en){if(fn.has(en))return;const Wt=new Promise((On,Nt)=>{const gi=()=>{en.removeEventListener("complete",Bi),en.removeEventListener("error",Mi),en.removeEventListener("abort",Mi)},Bi=()=>{On(),gi()},Mi=()=>{Nt(en.error||new DOMException("AbortError","AbortError")),gi()};en.addEventListener("complete",Bi),en.addEventListener("error",Mi),en.addEventListener("abort",Mi)});fn.set(en,Wt)}(en),pn(en,function Bn(){return st||(st=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(en,ai):en)}function vt(en){if(en instanceof IDBRequest)return function Xn(en){const Wt=new Promise((On,Nt)=>{const gi=()=>{en.removeEventListener("success",Bi),en.removeEventListener("error",Mi)},Bi=()=>{On(vt(en.result)),gi()},Mi=()=>{Nt(en.error),gi()};en.addEventListener("success",Bi),en.addEventListener("error",Mi)});return Wt.then(On=>{On instanceof IDBCursor&&Cn.set(On,en)}).catch(()=>{}),yn.set(Wt,en),Wt}(en);if(nn.has(en))return nn.get(en);const Wt=zt(en);return Wt!==en&&(nn.set(en,Wt),yn.set(Wt,en)),Wt}const Ct=en=>yn.get(en),jn=["get","getKey","getAll","getAllKeys","count"],wn=["put","add","delete","clear"],nt=new Map;function on(en,Wt){if(!(en instanceof IDBDatabase)||Wt in en||"string"!=typeof Wt)return;if(nt.get(Wt))return nt.get(Wt);const On=Wt.replace(/FromIndex$/,""),Nt=Wt!==On,gi=wn.includes(On);if(!(On in(Nt?IDBIndex:IDBObjectStore).prototype)||!gi&&!jn.includes(On))return;const Bi=function(){var Mi=(0,Gt.A)(function*(tr,...mo){const Bo=this.transaction(tr,gi?"readwrite":"readonly");let is=Bo.store;return Nt&&(is=is.index(mo.shift())),(yield Promise.all([is[On](...mo),gi&&Bo.done]))[0]});return function(mo){return Mi.apply(this,arguments)}}();return nt.set(Wt,Bi),Bi}!function ri(en){ai=en(ai)}(en=>({...en,get:(Wt,On,Nt)=>on(Wt,On)||en.get(Wt,On,Nt),has:(Wt,On)=>!!on(Wt,On)||en.has(Wt,On)}));var mt=d(79539),_n=d(43615);class wt{constructor(Wt,On,Nt){this.completesExternally=Wt,this.callbacks=On,this.staticWorkerFn=Nt,this.requestQueue$=new xt.B7,this.startRequestQueue()}startRequestQueue(){this.requestQueue$.pipe((0,mt.H)(Wt=>Wt.workerFn.pipe((0,T.ZZ)(On=>{if(Wt.response$.observers.length){if(this.completesExternally)return this.onRequestComplete$=new p.m(1),Wt.response$.next(On),Wt.response$.complete(),this.callbacks.next&&this.callbacks.next(On),this.onRequestComplete$;Wt.response$.next(On),Wt.response$.complete(),this.callbacks.next&&this.callbacks.next(On)}return(0,v.of)(!0)}),(0,c.W)(On=>(Wt.response$.error(On),Wt.response$.complete(),this.callbacks.error&&this.callbacks.error(On),(0,v.of)(On))),(0,_n.j)(()=>{this.callbacks.complete&&this.callbacks.complete()})))).subscribe()}queue(...Wt){let On;return On=(0,un.v)(this.staticWorkerFn?()=>this.staticWorkerFn(...Wt):Wt.length>1?()=>Wt[0](Wt.slice(1)):()=>Wt[0]()),(0,un.v)(()=>{const Nt={workerFn:On,response$:new xt.B7};return this.requestQueue$.next(Nt),Nt.response$.asObservable()})}notifyRequestCompletion(){this.completesExternally&&(this.onRequestComplete$.next(!0),this.onRequestComplete$.complete())}}var At=d(93181),Hn=d(25577),pi=function(en){return en.Loading="Loading",en.Dirty="Dirty",en.Saved="Saved",en.NotFound="NotFound",en}(pi||{}),Zi=function(en){return en.UpgradeStart="UpgradeStart",en.UpgradeEnd="UpgradeEnd",en}(Zi||{}),Lr=function(en){return en.Upgrade="Upgrade",en}(Lr||{});const Kr="https://nvfile/";var Qt=function(en){return en.Measure="measure",en.Resource="resource",en.Element="element",en}(Qt||{}),di=function(en){return en.Image="img",en}(di||{});class ji{constructor(Wt,On,Nt){if(this.config=Wt,this.onDbItemChange=On,this.requestQueue=Nt,this.versionKey="_version",this.connected=!1,this.logInfo("#indexdb dbDataStoreConfig config ",this.config),this.name=this.config.storeName,this.dbName=this.config.dbName,this.userId=this.config.userId,this.config.storeDefinition){const gi=this.config.storeDefinition;this.upgrade$=this.upgradeStore(this.config.storeName,gi.storeDefault,gi.upgrades,gi.upgradeTargetVersion||0)}else this.upgrade$=(0,v.of)(this);this.upgrade$.subscribe(()=>{this.connected=!0})}logError(...Wt){console.error("DbDataStore",this.name,JSON.stringify(Wt))}logInfo(...Wt){console.info("DbDataStore",this.name,JSON.stringify(Wt))}upgradeStore(Wt,On,Nt,gi){let Bi;return this.logInfo("#indexdb upgrading dbStore for store ",Wt),this.getItem(this.versionKey).pipe((0,T.ZZ)(Mi=>(this.logInfo("#indexdb upgrading dbStore for store version in getItem",Mi),performance.mark(Zi.UpgradeStart),Bi=Mi||0,0===Bi&&On?(Bi=On.version,this.processDirectUpgrade(Wt,On,Bi)):this.processSequentialUpgrades(Wt,Bi,Nt,gi))),(0,g.T)(()=>{performance.mark(Zi.UpgradeEnd);const Mi=this.getDbUpgradeDuration();return this.logInfo(`Time spent in async db upgrade: ${Mi}, store: ${Wt}, new version: ${Bi}`),this}))}getDbUpgradeDuration(){try{return performance.measure(Lr.Upgrade,Zi.UpgradeStart,Zi.UpgradeEnd),performance.getEntriesByType(Qt.Measure).find(Wt=>Wt.name===Lr.Upgrade).duration}catch(Wt){return this.logError("Error while calling measure on performance",Wt),-1}}processDirectUpgrade(Wt,On,Nt){this.logInfo("#indexdb processing direct upgrade for store ",Wt);const gi=[];for(const Bi of Object.keys(On.db))gi.push(this.setItem(Bi,On.db[Bi]));return(0,At.p)(gi).pipe((0,T.ZZ)(()=>(this.logInfo(`Store ${Wt} successfully set to default version: ${Nt}`),this.setItem(this.versionKey,On.version))),(0,X.s)(1),(0,g.T)(()=>this),(0,c.W)(Bi=>(this.logError(`Store ${Wt} failed to upgrade version from 0 to ${Nt} due to error: ${Bi}`),(0,O.$)(Bi))))}processSequentialUpgrades(Wt,On,Nt,gi){if(this.logInfo("#indexdb processing direct upgrade for store ",Wt),On>gi)return(0,O.$)(`Store ${Wt} db downgrade not supported. Version: ${On}, Target: ${gi}`);if(On===gi)return this.logInfo(`Upgrade not required for Store: ${Wt}, Version: ${On}`),(0,v.of)(this);let Bi;return(0,ct.H)(Nt.keys()).pipe((0,mt.H)(Mi=>{if(Bi=+Mi,Bi>On){this.logInfo(`Store: ${Wt}, attempting upgrade from version: ${On} to ${Bi}`);const tr=Nt.get(Bi);return(0,ct.H)(tr(this)).pipe((0,T.ZZ)(()=>(this.logInfo(`Store ${Wt} successfully upgraded to version: ${Bi}`),this.setItem(this.versionKey,On=Bi))))}return(0,v.of)(this)}),(0,Hn.H)(),(0,g.T)(()=>this),(0,c.W)(Mi=>(this.logError(`Store ${Wt} failed to upgrade db from version: ${On} to ${Bi} due to error ${Mi}`),(0,O.$)(Mi))))}getItem(Wt){return this.logInfo("#indexdb get item using key ",Wt),Wt?this.requestQueue.queue(this.name).pipe((0,T.ZZ)(On=>{this.logInfo("#indexdb request queue item ",this.name);const gi=On.transaction(this.name,"readonly").objectStore(this.name);return(0,ct.H)(gi.get(Wt))}),(0,c.W)(On=>(this.logError("error fetching item",On),(0,O.$)(On))),(0,_n.j)(()=>{this.logInfo("#indexdb notify request on complete ",this.name),this.requestQueue.notifyRequestCompletion()})):(0,O.$)("invalid key")}getItemByCursor(Wt){return this.logInfo("#indexdb get item using cursor for key ",Wt),Wt?this.requestQueue.queue(this.name).pipe((0,T.ZZ)(On=>{this.logInfo("#indexdb request queue item ",this.name);const gi=On.transaction(this.name,"readonly").objectStore(this.name);return new Promise((Bi,Mi)=>{gi.openCursor(Wt).then(function(mo){return mo?Promise.resolve(mo.value):Promise.resolve()}).then(tr=>{Bi(tr)}).catch(()=>{Mi("#indexdb Error reading key from store")})})}),(0,c.W)(On=>(this.logError("#indexdb error fetching item",On),(0,O.$)(On))),(0,_n.j)(()=>{this.requestQueue.notifyRequestCompletion()})):(0,O.$)("invalid key")}setItem(Wt,On){return this.logInfo("#indexdb set item using key ",Wt),this.config.storeDefinition?(On instanceof Object&&(On.ts=Date.now()),this.setItemInDb(Wt,On).pipe((0,g.T)(Nt=>(this.onDbItemChange.next({storeName:this.name,userId:this.userId,key:Wt}),On)))):this.setItemInDb(Wt,On)}setItemInDb(Wt,On){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(Nt=>{this.logInfo("#indexdb request queue item ",this.name);const gi=Nt.transaction(this.name,"readwrite"),Mi=gi.objectStore(this.name).put(On,Wt);return this.finishReadWriteTxObservable(Mi,gi.done)}),(0,c.W)(Nt=>(this.logError("error setting item",Nt),(0,O.$)(Nt))),(0,_n.j)(()=>{this.logInfo("#indexdb notify request on complete ",this.name),this.requestQueue.notifyRequestCompletion()}))}removeItem(Wt){return this.logInfo("#indexdb remove item using key ",Wt),this.requestQueue.queue(this.name).pipe((0,T.ZZ)(On=>{this.logInfo("request queue item ",this.name);const Nt=On.transaction(this.name,"readwrite"),Bi=Nt.objectStore(this.name).delete(Wt);return this.finishReadWriteTxObservable(Bi,Nt.done)}),(0,c.W)(On=>(this.logError("error removing item",On),(0,O.$)(On))),(0,_n.j)(()=>{this.logInfo("#indexdb notify request on complete ",this.name),this.requestQueue.notifyRequestCompletion()}))}getAllItems(){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(Wt=>{const Nt=Wt.transaction(this.name,"readonly").objectStore(this.name);return(0,At.p)([(0,ct.H)(Nt.getAllKeys()),(0,ct.H)(Nt.getAll())])}),(0,g.T)(([Wt,On])=>{const Nt={};for(let gi=0;gi<Wt.length;gi++)(0,S.set)(Nt,Wt[gi].split("/"),On[gi]);return Nt}),(0,c.W)(Wt=>(this.logError("error fetching item",Wt),(0,O.$)(Wt))),(0,_n.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}getAllItemsByCursor(){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(Wt=>{const Nt=Wt.transaction(this.name,"readonly").objectStore(this.name),gi={};return new Promise((Bi,Mi)=>{Nt.openCursor().then(function tr(mo){return mo?((0,S.set)(gi,mo.key.split("/"),mo.value),mo.continue().then(tr)):Promise.resolve()}).then(()=>{Bi(gi)}).catch(()=>{Mi("Error reading all keys from store")})})}),(0,c.W)(Wt=>(this.logError("error fetching item",Wt),(0,O.$)(Wt))),(0,_n.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}clear(){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(Wt=>{const On=Wt.transaction(this.name,"readwrite"),gi=On.objectStore(this.name).clear();return this.finishReadWriteTxObservable(gi,On.done)}),(0,c.W)(Wt=>(this.logError("error clearing store",Wt),(0,O.$)(Wt))),(0,_n.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}length(){return this.keys().pipe((0,g.T)(Wt=>Wt.length))}keys(){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(Wt=>Wt.transaction(this.name,"readonly").objectStore(this.name).getAllKeys()),(0,c.W)(Wt=>(this.logError("error fetching keys",Wt),(0,O.$)(Wt))),(0,_n.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}finishReadWriteTxObservable(Wt,On){return this.logInfo("#indexdb finishReadWriteTxObservable ",this.name),(0,At.p)([(0,ct.H)(this.preventTransactionCloseOnError(Wt)),(0,ct.H)(On)])}preventTransactionCloseOnError(Wt){this.logInfo("#indexdb preventTransactionCloseOnError ",this.name);const On=Ct(Wt);return On.addEventListener("error",Nt=>{this.logError("Request failed, error=",On.error),Nt.preventDefault(),Nt.stopPropagation()}),Wt}}class vi{get onDbItemChange(){return this.dbItemChange$}constructor(Wt,On,Nt){this.dbName=Wt,this.globalStoreDefMap=On,this.userStoreDefMap=Nt,this.dbObjectStoresInitialized=new p.m(1),this.dataStores=new Map,this.dbItemChange$=new xt.B7,this.globalStoreDefMap||(this.globalStoreDefMap=new Map),this.userStoreDefMap||(this.userStoreDefMap=new Map),this.requestQueue=new wt(!0,{next:void 0,error:this.closeDbConnection.bind(this),complete:this.closeDbConnection.bind(this)},this.refreshDbInstance.bind(this))}logError(...Wt){console.error("DbHandler",this.dbName,JSON.stringify(Wt))}logInfo(...Wt){console.info("DbHandler",this.dbName,JSON.stringify(Wt))}refreshDbInstance(Wt){return this.logInfo("#indexdb refresh db instance for store ",Wt),(0,un.v)(()=>this.dbObjectStores&&!this.dbObjectStores.contains(Wt)?(0,v.of)(!0):(0,v.of)(!1)).pipe((0,T.ZZ)(On=>On?(this.logInfo("retrieving db version from disk"),this.openDbInstance(Wt).pipe((0,T.ZZ)(Nt=>{this.logInfo("#indexdb upgrade needed - db instance opened ",Wt),this.dbInstance=Nt,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0);const gi=this.dbInstance.version;return this.logInfo("current db version",gi),this.closeDbConnection(),this.openDbInstance(Wt,gi+1)}))):this.openDbInstance(Wt).pipe((0,T.ZZ)(Nt=>{if(this.logInfo("#indexdb upgrade not needed - db instance opened ",Wt),this.dbInstance=Nt,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0),!this.dbObjectStores.contains(Wt)){const gi=this.dbInstance.version;return this.logInfo(`store ${Wt} not found in current db version ${gi}, upgrading`),this.closeDbConnection(),this.openDbInstance(Wt,gi+1)}return(0,v.of)(this.dbInstance)}))),(0,c.W)(On=>(this.logError("error",On),(0,O.$)(On))))}openDbInstance(Wt,On){return this.logInfo("#indexdb opening db instance ",this.dbName,On),(0,ct.H)(function it(en,Wt,{blocked:On,upgrade:Nt,blocking:gi,terminated:Bi}={}){const Mi=indexedDB.open(en,Wt),tr=vt(Mi);return Nt&&Mi.addEventListener("upgradeneeded",mo=>{Nt(vt(Mi.result),mo.oldVersion,mo.newVersion,vt(Mi.transaction))}),On&&Mi.addEventListener("blocked",()=>On()),tr.then(mo=>{Bi&&mo.addEventListener("close",()=>Bi()),gi&&mo.addEventListener("versionchange",()=>gi())}).catch(()=>{}),tr}(this.dbName,On,{upgrade:Nt=>{this.logInfo("upgrading db for",Wt),this.dbInstance=Nt,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0),this.dbObjectStores.contains(Wt)||this.dbInstance.createObjectStore(Wt)}})).pipe((0,c.W)(Nt=>(this.logInfo("#indexdb some error occurred opening db ",this.dbName,On),(0,O.$)(Nt))))}closeDbConnection(){this.logInfo("#indexdb closing db instance ",this.dbName),this.dbInstance?(this.dbInstance.close(),this.dbInstance=null):this.logError("attempted to close db connection when local instance unavailable")}getDataStore(Wt){if(!this.dataStores.has(Wt.storeDbName)){this.logInfo(`Create datastore instance: ${Wt.storeDbName}`);const On=Object.assign({},Wt,{dbName:this.dbName});this.dataStores.set(Wt.storeDbName,new ji(On,this.dbItemChange$,this.requestQueue))}return this.dataStores.get(Wt.storeDbName)}getGlobalStore(Wt){return this.getDataStore({storeName:Wt,storeDbName:Wt,storeDefinition:this.globalStoreDefMap.get(Wt)})}getUserStore(Wt,On){return this.getDataStore({storeName:On,storeDbName:`${Wt}_${On}`,userId:Wt,storeDefinition:this.userStoreDefMap.get(On)})}getStore(Wt){return this.getDataStore({storeName:Wt,storeDbName:Wt})}checkIfStoreExists(Wt){return this.dbObjectStoresInitialized.asObservable().pipe((0,g.T)(()=>this.dbObjectStores.contains(Wt)))}}let Zt=(()=>{var en;class Wt{constructor(Nt,gi){this.logger=gi.getLogger("crimson/DBService"),this.globalStoreDefMap=Nt.globalStores,this.userStoreDefMap=Nt.userStores,this.dbName=Nt.appDbName,this.dbhandlerInstance=new vi(this.dbName,this.globalStoreDefMap,this.userStoreDefMap)}get dbHandler(){return this.dbhandlerInstance}getGlobalStore(Nt){return this.dbhandlerInstance.getGlobalStore(Nt)}getUserStore(Nt,gi){return this.dbhandlerInstance.getUserStore(Nt,gi)}getStore(Nt){return this.dbhandlerInstance.getStore(Nt)}checkKeysOfExisitngDbStore(Nt){return this.dbhandlerInstance.checkIfStoreExists(Nt).pipe((0,X.s)(1),(0,T.ZZ)(gi=>gi?this.getGlobalStore(Nt).length():(0,v.of)(0)))}deleteOldKeys(Nt){return this.checkKeysOfExisitngDbStore(Nt).pipe((0,T.ZZ)(gi=>gi?this.getGlobalStore(Nt).clear():(0,v.of)(null)),(0,g.T)(gi=>gi?(this.logger.info("Keys in db store deleted"),!0):(this.logger.info("No keys in the dB store, skip deletion"),!1)))}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(et),z.KVO(I.J6))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var Zn=d(99443);class Dn{constructor(Wt,On,Nt,gi){this.dbHandler=Wt,this.storeName=On,this.key=Nt,this.userId=gi,this.status_=pi.Loading,this.syncObservers=new Set,this.wait$=new Zn.h}get status(){return this.status_}updateStatus(Wt){const On=this.status_;this.status_=Wt,this.isFirstSyncComplete(On)&&(this.wait$.next(this.status),this.wait$.complete())}isFirstSyncComplete(Wt){return!this.wait$.closed&&Wt===pi.Loading&&this.status_!==pi.Loading}persist_(){this.updateStatus(pi.Dirty);const Wt=this.getStore(this.userId,this.storeName),On=(({status:Nt,status_:gi,persist_:Bi,sync_:Mi,observe_:tr,unobserve_:mo,wait_:Bo,dbHandler:is,updateStatus:ha,isFirstSyncComplete:Ys,getStore:Po,syncObservers:cl,wait$:oa,...Ht})=>Ht)(this);return Wt.setItem(this.key,On).pipe((0,A.M)(()=>this.updateStatus(pi.Saved)),(0,c.W)(()=>(this.logError(`Error persisting the key ${this.key} to db`),(0,v.of)(On))))}getStore(Wt,On){return Wt?this.dbHandler.getUserStore(Wt,On):this.dbHandler.getGlobalStore(On)}sync_(){return this.getStore(this.userId,this.storeName).getItem(this.key).pipe((0,g.T)(On=>{if(!((On=On||{})instanceof Object))throw new Error("Tried to cache plain old data. Only Object types supported");for(const Nt of Object.keys(On))this[Nt]=On[Nt];return this.updateStatus(pi.Saved),this.syncObservers.forEach(Nt=>{Nt()}),On}))}wait_(){return this.wait$.closed&&(this.wait$=new Zn.h,this.status_!==pi.Loading&&(this.wait$.next(this.status),this.wait$.complete())),this.wait$.asObservable()}observe_(Wt){this.syncObservers.add(Wt),this.status_!==pi.Loading&&Wt()}unobserve_(Wt){this.syncObservers.delete(Wt)}logError(...Wt){console.error("DbHandler",this.storeName,JSON.stringify(Wt))}}let zn=(()=>{var en;class Wt{get globalCacheDefinitions(){return this.globalLoadMap}get userCacheDefinitions(){return this.userLoadMap}get globalCache(){return this.globalCacheMap}get userCache(){return this.userCacheMap}constructor(Nt){this.dbService=Nt,this.globalLoadMap=new Map,this.userLoadMap=new Map,this.globalCacheMap=new Map,this.userCacheMap=new Map}loadGlobalKey(Nt,gi){this.globalLoadMap.has(Nt)||this.globalLoadMap.set(Nt,new Set),this.globalLoadMap.get(Nt).add(gi),this.globalCacheMap.has(Nt)||this.globalCacheMap.set(Nt,new Map),this.globalCacheMap.get(Nt).set(gi,new Dn(this.dbService.dbHandler,Nt,gi))}loadUserKey(Nt,gi){this.userLoadMap.has(Nt)||this.userLoadMap.set(Nt,new Set),this.userLoadMap.get(Nt).add(gi)}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(Zt))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})(),Ti=(()=>{var en;class Wt{constructor(Nt,gi,Bi){this.loggingService=Nt,this.dbService=Bi,this.logger=this.loggingService.getLogger("crimson/dbCacheService"),this.globalCacheDefinitions=gi.globalCacheDefinitions,this.userCacheDefinitions=gi.userCacheDefinitions,this.globalCache=gi.globalCache,this.userCacheMap=gi.userCache,this.dbService.dbHandler.onDbItemChange.subscribe(Mi=>{let tr;Mi.userId?this.userCacheMap.has(Mi.userId)&&this.userCacheMap.get(Mi.userId).has(Mi.storeName)&&(tr=this.userCacheMap.get(Mi.userId).get(Mi.storeName).get(Mi.key)):this.globalCache.has(Mi.storeName)&&(tr=this.globalCache.get(Mi.storeName).get(Mi.key)),tr&&tr.sync_().subscribe()})}syncGlobal(Nt){const gi=this.globalCacheDefinitions.get(Nt),Bi=[];return gi.forEach(Mi=>{const tr=this.globalCache.get(Nt);Bi.push(tr.get(Mi).sync_())}),(0,At.p)(Bi).pipe((0,A.M)(()=>{this.logger.info(`Cached DB store ${Nt} into memory`)}))}syncUser(Nt,gi){const Bi=this.userCacheDefinitions.get(Nt);this.userCacheMap.has(gi)||this.initUserCache(gi);const Mi=[];return Bi.forEach(tr=>{const mo=this.userCacheMap.get(gi).get(Nt);Mi.push(mo.get(tr).sync_())}),(0,At.p)(Mi).pipe((0,A.M)(()=>{this.logger.info(`Cached user DB store ${Nt} into memory for user ${gi}`)}))}initUserCache(Nt){this.userCacheMap.set(Nt,new Map),this.userCacheDefinitions.forEach((gi,Bi)=>{gi.forEach(Mi=>{this.userCacheMap.get(Nt).has(Bi)||this.userCacheMap.get(Nt).set(Bi,new Map),this.userCacheMap.get(Nt).get(Bi).set(Mi,new Dn(this.dbService.dbHandler,Bi,Mi,Nt))})})}getCachedGlobalItem(Nt,gi){if(this.globalCache.has(Nt))return this.globalCache.get(Nt).get(gi)}getOrCreateCachedGlobalItem(Nt,gi){return(!this.globalCache.has(Nt)||!this.globalCache.get(Nt).has(gi))&&(this.globalCacheDefinitions.has(Nt)||this.globalCacheDefinitions.set(Nt,new Set),this.globalCacheDefinitions.get(Nt).add(gi),this.globalCache.has(Nt)||this.globalCache.set(Nt,new Map),this.globalCache.get(Nt).set(gi,new Dn(this.dbService.dbHandler,Nt,gi))),this.globalCache.get(Nt).get(gi)}getCachedUserItem(Nt,gi,Bi){return this.userCacheMap.has(Nt)||this.initUserCache(Nt),this.userCacheMap.get(Nt).get(gi).get(Bi)}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6),z.KVO(zn),z.KVO(Zt))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var Ii,Xt=d(88058);d(61090),d(81799),d(33328),function(en){let Wt;var On;(On=Wt=en.HandlerEventType||(en.HandlerEventType={})).SimpleWindowEvent="SIMPLE_WINDOW_EVENT",On.StructuredWindowEvent="STRUCTURED_WINDOW_EVENT",On.IpcEvent="IPC_EVENT"}(Ii||(Ii={}));var ar=function(en){return en.Types=Ii,en}(ar||{}),Jt=d(27731);class ki{constructor(Wt,On){this.bridgeService=Wt,this.keyToMessageType=new Map,this.eventHandlerLogger=On,this.eventStreams=new ge.V$(Nt=>{if(!this.keyToMessageType.has(Nt))return this.eventHandlerLogger.error("No message type for key",Nt),Jt.t;const gi=this.keyToMessageType.get(Nt);return this.handlerMap[gi].internalSubjects.set(Nt,new xt.B7),this.handlerMap[gi].internalSubjects.get(Nt).asObservable()},!1,!1)}registerNewHandler(Wt,On,Nt,gi,Bi){this.handlerMap||(this.handlerMap={}),this.handlerMap[Wt]={pred:On,keyFunc:Nt,valFunc:gi,transformedFunc:Bi,internalSubjects:new Map}}get$(Wt,On=this.defaultHandlerType){return this.keyToMessageType.has(Wt)||this.keyToMessageType.set(Wt,On),this.eventStreams.get$(Wt)}processMessage(Wt){for(const On of Object.keys(this.handlerMap))if(this.handlerMap[On].pred(Wt)){const gi=this.handlerMap[On].transformedFunc(Wt),Bi=this.handlerMap[On].keyFunc(gi),Mi=this.handlerMap[On].valFunc(gi);this.handlerMap[On].internalSubjects.has(Bi)?this.handlerMap[On].internalSubjects.get(Bi).next(Mi):this.eventHandlerLogger.info("No subscribers for event with key ",Bi)}}}var xo=function(en){return en.ApplicationHide="APPLICATION_HIDE",en.ApplicationShow="APPLICATION_SHOW",en.WindowMinimize="MINIMIZE",en.WindowMaximize="MAXIMIZE",en.WindowRestore="RESTORE",en.IpcNewMessage="IPC_NEW_MESSAGE",en.SelfUpdate="SELF_UPDATE",en.RouteChange="URL_ROUTE_CHANGE",en.StoredCommandLine="STORED_COMMAND_LINE",en.ProcessEvent="PROCESS_EVENT",en.UpdateInitiated="UPDATE_INITIATED",en.SharedStorageUpdate="SHARED_STORAGE_UPDATE",en.ForegroundEvent="FOREGROUND_EVENT",en.DisplayModeChange="DISPLAYMODECHANGE",en}(xo||{});class qn{constructor(Wt){const{type:On,...Nt}=Wt;this.type=On,this.params=Nt}}class Sr extends qn{constructor(Wt){super(Wt),this.newRoute=Wt["new-route"],this.currentRoute=Wt["current-route"]}}class ni{static create(Wt){return Wt.type===xo.RouteChange?new Sr(Wt):new qn(Wt)}}let he=(()=>{var en;class Wt extends ki{constructor(Nt,gi){const Bi=gi.getLogger("nativeEventService");super(Nt,Bi),this.logger=Bi,this.defaultHandlerType=ar.Types.HandlerEventType.SimpleWindowEvent,this.registerNewHandler(ar.Types.HandlerEventType.StructuredWindowEvent,Mi=>Mi.startsWith("json:"),Mi=>JSON.parse(Mi).type,Mi=>Mi,Mi=>Mi.substring(5)),this.registerNewHandler(ar.Types.HandlerEventType.SimpleWindowEvent,Mi=>!Mi.startsWith("json:"),Mi=>Mi,Mi=>Mi,Mi=>Mi),this.bridgeService.executeCommand(re.Ts.Common.Windowevents.RegisterWindowEventsCallback,{}).subscribe(Mi=>{this.processMessage(Mi)})}getNativeEvent$(Nt){return this.get$(Nt,ar.Types.HandlerEventType.StructuredWindowEvent).pipe((0,g.T)(gi=>ni.create(JSON.parse(gi))))}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(n.NZ),z.KVO(I.J6))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var Ee=d(77061),Pe=d(53931),Qe=d(84580);d(76706),d(2833);const _i="(orientation: portrait)",wr="(orientation: landscape)",hr=`(max-width: 430px) and (max-height: 932px) and ${_i}`,Qr=`(max-width: 932px) and (max-height: 430px) and ${wr}`,Tr={IPhone:`${hr}, ${Qr}`,IPhoneLandscape:`${Qr}`,IPhonePortrait:`${hr}`,IPhoneSELandscape:`(max-width: 568px) and (max-height: 320px) and ${wr}`,IPhone8Portrait:`(max-width: 375px) and (max-height: 667px) and ${_i}`,IPad:`(max-width: 1024px) and (max-height: 1366px) and ${_i},\n (max-width: 1366px) and (max-height: 1024px) and ${wr}`},li=[16,160,161,17,162,163,18,164,165,91,92,65335],Tn={0:"None",8:"Backsp",9:"Tab",16:"Shift",17:"Ctrl",18:"Alt",12:"Clear",13:"Enter",19:"Pause",20:"Caps",27:"Esc",32:"Space",33:"PgUp",34:"PgDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",41:"Select",42:"Print",43:"Exec",44:"PrtScn",45:"Insert",46:"Delete",47:"Help",91:"Win",92:"Win",93:"Apps",95:"Sleep",96:"Num0",97:"Num1",98:"Num2",99:"Num3",100:"Num4",101:"Num5",102:"Num6",103:"Num7",104:"Num8",105:"Num9",106:"Num*",107:"Num+",108:"Separ",109:"Num-",110:"Num.",111:"Num/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLck",145:"ScrLck",160:"Shift",161:"Shift",162:"Ctrl",163:"Ctrl",164:"Alt",165:"Alt",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",65335:"Cmd"},tn={Backspace:8,Tab:9,Shift:16,Control:17,Alt:18,Clear:12,Enter:13,Pause:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,Help:47,Win:91,ContextMenu:93,Standby:95,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222,Cmd:65335};var vn=d(3496),oi=d(17669);class Ci{constructor(Wt,On,Nt){this.osType=On,this.keyDownOnly=Nt,this.currentKeyCombo=[],this.downSet=!1,this.logger=Wt.getLogger("crimson/KeypressHelper"),this.shortcutData$=new xt.B7,this.comboKeydown$=new xt.B7,Nt&&this.comboKeydown$.pipe((0,x.n)(()=>(0,vn.O)(200))).subscribe(()=>{this.logger.verbose("combokeyhelper CurrentKeyCombo: ",this.currentKeyCombo),this.shortcutData$.next(this.currentKeyCombo),this.resetCurrentKeyCombo()})}get shortcutData(){return this.shortcutData$.asObservable()}get loadedKeyCombo(){return this.currentKeyCombo}get isDownSet(){return this.downSet}get isKeyDownOnly(){return this.keyDownOnly}setDown(){this.downSet=!0}setNonEnglishKeyboardLayout(Wt){this.nonEnglishKeyboardLayout=Wt}resetDownStatus(){this.downSet=!1}resetCurrentKeyCombo(){this.currentKeyCombo=[]}logEvent(Wt,On){this.keyDownOnly||this.logger.info((On?"Keyup":"Keydown")+" : "+Wt.key)}getCodeFromKbNonPrintableKey(Wt){for(const[On,Nt]of oi.QC.entries())if(On.includes(Wt))return Nt;return Wt.charCodeAt(0)}loadKey(Wt){if("Enter"===Wt.key||"Unidentified"===Wt.key||void 0===Wt.key)return!1;let On=Wt.key;"Meta"===On&&(On=this.osType===xe.t_.MacOS?"Cmd":"Win")," "===On&&(On="Space");let Nt=0;return Wt.code.startsWith("Digit")&&1===Wt.key.length?Nt=Wt.code.charCodeAt(5):tn[On]?Nt=tn[On]:1===On.length?(this.nonEnglishKeyboardLayout&&(On=this.getKeyFromCode(Wt.code.toLowerCase(),On)),On=On.toUpperCase(),(1!==On.length||" "===On)&&(this.logger.info("toUpperCase broken: ",On," resetting to key event: ",Wt.key),On=Wt.key),Nt=Wt.shiftKey?this.getCodeFromKbNonPrintableKey(On):On.charCodeAt(0)):this.logger.info("code is unknown: ",Wt.key),-1===this.currentKeyCombo.indexOf(Nt)&&(this.currentKeyCombo.push(Nt),!0)}isResetKey(Wt){return("Backspace"===Wt.key||"Delete"===Wt.key||" "===Wt.key)&&(this.currentKeyCombo.length=0,!0)}isMetaKey(Wt){return"Alt"===Wt.key||"Shift"===Wt.key||"Control"===Wt.key||"Meta"===Wt.key}isEscapeKey(Wt){return"Escape"===Wt.key&&(this.currentKeyCombo.length=0,!0)}shouldIgnore(Wt){return"Unidentified"===Wt.key||"Tab"===Wt.key||"ArrowDown"===Wt.key||"ArrowUp"===Wt.key||"ArrowLeft"===Wt.key||"ArrowRight"===Wt.key||this.osType===xe.t_.Windows&&"Meta"===Wt.key}isModifierKey(Wt){return("Shift"===Wt.key||"Meta"===Wt.key||"Control"===Wt.key||"Alt"===Wt.key)&&(this.logger.verbose("isModifierKey"),!0)}handleModifierKeys(Wt){if(Wt.metaKey){let On;this.logger.verbose("processKeyDownEvent this.metaKey: "+Wt.metaKey),On=this.osType===xe.t_.MacOS?"Cmd":"Win",this.currentKeyCombo.push(tn[On])}Wt.shiftKey&&(this.logger.verbose("processKeyDownEvent this.shiftKey: "+Wt.shiftKey),this.currentKeyCombo.push(tn.Shift)),Wt.ctrlKey&&(this.logger.verbose("processKeyDownEvent this.ctrlKey: "+Wt.ctrlKey),this.currentKeyCombo.push(tn.Control)),Wt.altKey&&(this.logger.verbose("processKeyDownEvent this.altKey: "+Wt.altKey),this.currentKeyCombo.push(tn.Alt))}getKeyFromCode(Wt,On){this.logger.verbose("getKeyFromCode code"+Wt);try{const Nt=Wt.split("key");return this.logger.verbose("getKeyFromCode key"+Nt[1]),Nt[1]?Nt[1]:On}catch(Nt){return this.logger.error("some error occured while fetching key from code",Nt),On}}processKeyDownEvent(Wt){this.logEvent(Wt,!1),(this.isKeyDownOnly||!this.isResetKey(Wt))&&(this.isEscapeKey(Wt)||this.shouldIgnore(Wt)||this.loadKey(Wt)&&this.comboKeydown$.next(Wt))}processKeyDownEventForHotkeyInvocation(Wt){this.logEvent(Wt,!1),(this.isKeyDownOnly||!this.isResetKey(Wt))&&(this.isEscapeKey(Wt)||this.shouldIgnore(Wt)||this.isModifierKey(Wt)||(this.handleModifierKeys(Wt),this.loadKey(Wt)&&this.comboKeydown$.next(Wt)))}}let or=(()=>{var en;class Wt{constructor(Nt){this.logger=Nt.getLogger("crimson/hotkeyHelper")}processKey(Nt){if(Nt in Tn)return Tn[Nt];const gi=String.fromCharCode(Nt);return""===gi&&this.logger.error("ERROR: unsupported character: ",Nt),gi}shortcutToString(Nt){return Nt&&0!==Nt.length?Nt.map(gi=>this.processKey(gi)).join("+"):Tn[0]}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var yr=d(5798);const $r={statusCode:yr.jm.UnknownError};class ko{constructor(Wt,On,Nt){this.params=Wt,this.networkStatusService=On,this.bridgeService=Nt,this.getFailureCode=gi=>this.checkRequestCancelled(gi).pipe((0,T.ZZ)(Bi=>Bi.statusCode!==yr.jm.UnknownError?(0,v.of)(Bi):this.checkNetworkStatus()),(0,T.ZZ)(Bi=>Bi.statusCode!==yr.jm.UnknownError?(0,v.of)(Bi):this.checkDNSLookup(gi.requestUrl)),(0,c.W)(Bi=>(0,v.of)($r))),this.dnsLookupValidity=this.params?.dnsCacheValidity??yr.fu,this.dnsLookupMap=new Map,this.requestCancelledMap=new Map}checkNetworkStatus(){return(0,v.of)(this.networkStatusService.isOnline?$r:{statusCode:yr.jm.NetworkStatusOffline})}getCachedDNSEntry(Wt){const On=this.dnsLookupMap.get(Wt);if(On&&Date.now()-On.lastUpdatedTs<=this.dnsLookupValidity)return On}checkDNSLookup(Wt){const On=new URL(Wt).hostname,Nt=this.getCachedDNSEntry(On);return Nt?(0,v.of)(Nt.lookupSuccessful?$r:{statusCode:yr.jm.DNSLookupFailed,isUserOnline:!0,cachedDNSEntry:Nt}):this.bridgeService.executeCommand(re.Ts.Common.Systeminfo.DNSLookup,{name:On}).pipe((0,g.T)(gi=>{if(!gi)return $r;const Bi={lookupSuccessful:!0,lastUpdatedTs:Date.now(),destinationIp:gi?.hostname||""};return this.dnsLookupMap.set(On,Bi),{statusCode:yr.jm.UnknownError,cachedDNSEntry:Bi}}),(0,c.W)(gi=>{const Bi={lookupSuccessful:!1,lastUpdatedTs:Date.now(),destinationIp:""};return this.dnsLookupMap.set(On,Bi),(0,v.of)({statusCode:yr.jm.DNSLookupFailed,isUserOnline:!0,cachedDNSEntry:Bi})}))}checkRequestCancelled(Wt){const On={statusCode:yr.jm.RequestCancelled};return Wt.uniqueRequestId&&this.requestCancelledMap.has(Wt.uniqueRequestId)?(0,v.of)(On):Wt.isCancelled?(Wt.uniqueRequestId&&this.requestCancelledMap.set(Wt.uniqueRequestId,!0),(0,v.of)(On)):(0,v.of)($r)}}let qr=(()=>{var en;class Wt{constructor(Nt,gi){this.networkStatusService=Nt,this.bridgeService=gi}createAnalyzer(Nt){return new ko(Nt,this.networkStatusService,this.bridgeService)}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(qt.C),z.KVO(n.NZ))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var lo=d(16229),ts=d(8619),Ls=d(55833),Xr=d(34593);function Hs(en){return en instanceof HTMLInputElement||en instanceof HTMLTextAreaElement}function Ua(en,Wt){return en.visible===Wt.visible&&en.height===Wt.height}let Ba=(()=>{var en;class Wt{get visualViewport(){return this.window.visualViewport}get document(){return this.window.document}get keyboardState$(){return this._keyboardState$.pipe((0,ts.p)(Nt=>void 0!==Nt.height))}get keyboardVisible$(){return this._keyboardState$.pipe((0,g.T)(Nt=>Nt.visible))}constructor(Nt,gi,Bi,Mi){this.systemInfoService=Bi,this.ngZone=Mi,this.hiddenTextId="hiddentext",this.logger=Nt.getLogger("SystemVirtualKeyboardService"),this.window=gi.window,this._keyboardState$=this.createKeyboardState().pipe((0,F.F)(Ua),(0,Ls.t)({bufferSize:1,refCount:!0}))}createKeyboardState(){return this.systemInfoService.getDeviceOSType().pipe((0,X.s)(1),(0,x.n)(Nt=>{switch(Nt){case xe.t_.WebOS:return this.createWebOSKeyboardState();case xe.t_.Tizen:return this.createTizenKeyboardState();case xe.t_.Windows:case xe.t_.Android:return this.createWindowsOrAndroidKeyboardState();case xe.t_.IOS:case xe.t_.IPadOS:return this.createIOSKeyboardState();default:return this.logger.warn("Attempting to monitor virtual keyboard state on unsupported platform"),Jt.t}}))}createWebOSKeyboardState(){return m.zk.isPWAModeOnLGTV()?this.ngZone.runOutsideAngular(()=>(0,ye.R)(this.document,"keyboardStateChange").pipe((0,g.T)(Nt=>({visible:Nt.detail.visibility})),(0,Xr.Z)({visible:!1}))):(this.logger.warn("Virtual keyboard detection is only possible in PWA mode"),Jt.t)}createTizenKeyboardState(){return this.ngZone.runOutsideAngular(()=>{const Nt=(0,lo.h)((0,ye.R)(this.window,"focusin").pipe((0,g.T)(Bi=>Hs(Bi.target))),(0,ye.R)(this.window,"focusout").pipe((0,D.u)(!1))),gi=(0,ye.R)(this.window,"keydown").pipe((0,ts.p)(Bi=>(65376===Bi.keyCode||"Cancel"===Bi.key)&&Hs(Bi.target)),(0,A.M)(Bi=>{Bi.target.blur()}),(0,x.n)(Bi=>Jt.t));return(0,lo.h)(Nt,gi).pipe((0,g.T)(Bi=>({visible:Bi})),(0,Xr.Z)({visible:!1}))})}createWindowsOrAndroidKeyboardState(){return this.visualViewport?this.ngZone.runOutsideAngular(()=>(0,ye.R)(this.visualViewport,"resize").pipe((0,g.T)(()=>Math.floor(this.window.innerHeight-this.visualViewport.height)),(0,F.F)()).pipe((0,g.T)(gi=>{const Mi=Hs(this.document.activeElement)?gi:0;return{visible:Mi>0,height:Mi}}),(0,A.M)(gi=>{gi?.height<=0&&this.document.activeElement?.id===this.hiddenTextId&&this.document.activeElement.blur()}),(0,Xr.Z)({visible:!1,height:0}))):(this.logger.warn("visualViewport is required for virtual keyboard detection"),Jt.t)}createIOSKeyboardState(){return this.visualViewport?this.ngZone.runOutsideAngular(()=>(0,lo.h)((0,ye.R)(this.visualViewport,"resize"),(0,ye.R)(this.window,"orientationchange")).pipe((0,ts.p)(()=>this.visualViewport.height!==this.window.innerWidth),(0,g.T)(()=>this.window.innerHeight-this.visualViewport.height),(0,F.F)()).pipe((0,g.T)(gi=>{const Mi=Hs(this.document.activeElement)?gi:0;return{visible:Mi>0,height:Mi}}),(0,Xr.Z)({visible:!1,height:0}))):(this.logger.warn("visualViewport is required for virtual keyboard detection"),Jt.t)}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6),z.KVO(Ze),z.KVO(ce),z.KVO(z.SKi))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var Pa=d(57643),ys=function(en){return en.Registered="Registered",en.NotRegistered="NotRegistered",en.Played="Played",en.ClientError="ClientError",en}(ys||{});let To=(()=>{var en;class Wt{constructor(Nt){this.loggingService=Nt,this.audioContextMap=new Map,this.audioSubject=new p.m(1),this.logger=this.loggingService.getLogger("AudioPlayService")}getAudioTelemetryData(){return this.audioSubject.asObservable()}playAudio(Nt,gi){const Bi=this.audioContextMap.get(Nt);Bi?(this.logger.info(`Playing audio ${Nt}`),Bi.play()?.then(Mi=>{this.logger.info(`Played audio ${Nt}`),this.audioSubject.next({eventScenario:gi,eventStatus:ys.Played})}).catch(Mi=>{this.logger.error(`Error while playing Audio ${Nt} - ${Mi}`),this.audioSubject.next({eventScenario:gi,eventStatus:ys.ClientError,errorDetails:Mi??""})})):(this.logger.error(`audio type ${Nt} is not registered.`),this.audioSubject.next({eventScenario:gi,eventStatus:ys.NotRegistered}))}registerAudio(Nt,gi,Bi){gi?this.audioContextMap.has(Nt)?this.logger.error(`audio type ${Nt} is already registered.`):(this.logger.info(`Registering audio ${Nt}.`),this.audioContextMap.set(Nt,new Audio(gi)),this.audioSubject.next({eventScenario:Bi,eventStatus:ys.Registered})):this.logger.error(`Invalid src param for audio ${Nt}`)}removeAudio(Nt){this.audioContextMap.has(Nt)&&(this.logger.info(`Removing audio of type: ${Nt}`),this.audioContextMap.delete(Nt))}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var ss=d(40198),Gs=d(57118);class va{constructor(Wt,On,Nt){this.ssoSharedPageUrl=On,this.maxWaitTimeIframe=Nt,this.clearUserDetailsFromSharedPage=this.iframeInteraction({type:Gs.DY.DELETE}),this.getUserDetailsFromSharedPage=this.iframeInteraction({type:Gs.DY.READ}),this.logger=Wt.getLogger("silentLogin");const gi=new URL(On);this.sharedUrlPageDomain=gi.origin}openIframe(Wt){const On=document.createElement("iframe");return On.setAttribute("src",Wt),On.style.border="0px",On.style.width="0px",On.style.height="0px",On.style.display="none",document.body.appendChild(On),(0,ye.R)(On,"load").pipe((0,D.u)(On))}closeIframe(Wt){Wt?Wt.remove():this.logger.error("Empty Iframe ELement")}sendIframeMessage(Wt,On){if(!Wt)return this.logger.error("Iframe element is not present ",Wt),(0,O.$)("Iframe element is not present");switch(this.logger.info("Sending message to iframe ",On.type),On.type){case Gs.DY.WRITE:case Gs.DY.READ:case Gs.DY.DELETE:break;default:return(0,O.$)("Invallid message type")}return Wt.contentWindow.postMessage(On,this.sharedUrlPageDomain),(0,ye.R)(window,"message").pipe((0,ss.w)(this.maxWaitTimeIframe),(0,X.s)(1),(0,g.T)(Nt=>Nt?.data?.type===Gs.DY.SUCCESS?Nt.data?.payload:(0,O.$)(Nt?.data?.type)),(0,c.W)(Nt=>(this.logger.info("Error occurred while listening to window message:",Nt),(0,O.$)(Nt))))}iframeInteraction(Wt){let On;return this.openIframe(this.ssoSharedPageUrl).pipe((0,T.ZZ)(Nt=>(On=Nt,this.logger.info("Iframe loaded ",Wt.type),this.sendIframeMessage(Nt,Wt))),(0,T.ZZ)(Nt=>(this.logger.info("received reply from iframe, ",Wt.type),this.closeIframe(On),(0,v.of)(Nt))),(0,c.W)(Nt=>(this.closeIframe(On),(0,O.$)(Nt))))}saveUserDetailsToSharedPage(Wt){return Wt?(Wt.type=Gs.DY.WRITE,this.iframeInteraction(Wt)):(0,O.$)("Message Body empty")}}var Ca=d(32362),ln=d(62931),Pi=d(8282),yi=function(en){return en.Laptop="Laptop",en.Notebook="Notebook",en.SubNotebook="Sub Notebook",en.Portable="Portable",en.Convertible="Convertible",en.Detachable="Detachable",en}(yi||{});const Di=[yi.Laptop,yi.Convertible,yi.Detachable,yi.Notebook,yi.Portable,yi.SubNotebook];let zi=(()=>{var en;class Wt{constructor(Nt,gi,Bi,Mi){this.loggingService=Nt,this.bridgeService=gi,this.windowService=Bi,this.eventStreamFactory=Mi,this.logger=this.loggingService.getLogger("HardwareInformationService"),this.gpuInfoStream=this.eventStreamFactory.createStream(()=>this.fetchGPUInfo()),this.genericInfoStream=this.eventStreamFactory.createStream(()=>this.fetchGenericInfo()),this.setupHardwareInfoRefreshOnAppWindowFocus()}getGenericInfo(Nt){return Nt?this.genericInfoStream.refresh():this.genericInfoStream.get$()}getGpuInfo(Nt){return Nt?this.gpuInfoStream.refresh():this.gpuInfoStream.get$()}getSLIInformation(Nt=!0){return this.getGpuInfo(Nt).pipe((0,g.T)(gi=>gi.SLI))}getOptimusStatus(Nt=!0){return this.getGpuInfo(Nt).pipe((0,g.T)(gi=>gi.IsOptimus))}getIsLaptopSystem(){return this.getGenericInfo(!1).pipe((0,g.T)(Nt=>Di.includes(Nt?.MoboType)),(0,c.W)(Nt=>(0,v.of)(!1)))}fetchHardwareInfo(){return(0,te.zV)([this.fetchGenericInfo(),this.fetchGPUInfo()]).pipe((0,X.s)(1),(0,A.M)(([Nt,gi])=>{const Bi=this.genericInfoStream.getData(),Mi=this.gpuInfoStream.getData();(0,S.isEqual)(Bi,Nt)||this.genericInfoStream.setData(Nt,!0),(0,S.isEqual)(Mi,gi)||this.gpuInfoStream.setData(gi,!0)}))}getQuadroSystemFlag(){return this.getGpuInfo(!1).pipe((0,g.T)(Nt=>1==+Nt?.GPU?.filter(Mi=>Mi.IsPrimary)?.[0]?.IsQuadro))}setupHardwareInfoRefreshOnAppWindowFocus(Nt){this.onFocusInfoRefreshSub?.unsubscribe(),this.onFocusInfoRefreshSub=this.windowService.getFocusEvent().pipe((0,ln.B)(Nt??500),(0,x.n)(gi=>(this.logger.info("hardware info refreshed on focus"),this.fetchHardwareInfo())),(0,c.W)(gi=>(this.logger.error("failed to reload sys info",gi),(0,v.of)(!0)))).subscribe()}fetchGenericInfo(){return this.genericInfoObs$||(this.genericInfoObs$=this.bridgeService.executeCommand(re.Ts.Nvapp.Driverupdaterecommendation.GetGenericInfo).pipe((0,Pi.u)(),(0,A.M)(Nt=>{this.logger.info("Generic info fetched success:",Nt)}),(0,c.W)(Nt=>(this.logger.error("there is problem fetching generic info",Nt),(0,O.$)(Nt))),(0,_n.j)(()=>{this.genericInfoObs$=null}))),this.genericInfoObs$}fetchGPUInfo(){return this.gpuInfoObs$||(this.gpuInfoObs$=this.bridgeService.executeCommand(re.Ts.Nvapp.Driverupdaterecommendation.GetGPUInfo).pipe((0,Pi.u)(),(0,A.M)(Nt=>{this.logger.info("Gpu info fetched success:",Nt)}),(0,c.W)(Nt=>(this.logger.error("there is problem fetching gpu info",Nt),(0,O.$)(Nt))),(0,_n.j)(()=>{this.gpuInfoObs$=null}))),this.gpuInfoObs$}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6),z.KVO(n.NZ),z.KVO(Ze),z.KVO(ge.mZ))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var Ki=function(en){return en.NvApp="NVAPP_UI",en.OSC="NVAPP_OSC_UI",en.GFN="GFN_UI",en}(Ki||{});let Vi=(()=>{var en;class Wt{constructor(Nt,gi){this.bridgeService=gi,this.logger=Nt.getLogger("crimson/ExceptionInfoService")}sendExceptionInfo(Nt,gi,Bi,Mi,tr,mo){const ha={exceptionInfo:{name:Bi??"",message:Mi??"",code:mo??0,stackTrace:tr??"",clientInfo:{componentName:Nt,componentVersion:gi}}};return this.logger.info("Calling Diagnostics Plugin SendExceptionInfo API With Params:",ha),this.bridgeService.executeCommand(re.Ts.Common.Diagnostics.SendExceptionInfo,ha)}SendUserFeedbackInfo(Nt,gi,Bi){const Mi={surveyId:Nt??"",uiPage:gi??"",uiLanguage:Bi??""};return this.logger.info("Calling Diagnostics Plugin SendUserFeedbackInfo API With Params:",Mi),this.bridgeService.executeCommand(re.Ts.Common.Diagnostics.SendUserFeedbackInfo,Mi)}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6),z.KVO(ue.N))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})();var Mr=function(en){return en.png="png",en.png8="png8",en.png24="png24",en.png32="png32",en.png48="png48",en.png64="png64",en.jpe="jpe",en.jpeg="jpeg",en.jpg="jpg",en.ico="ico",en.icon="icon",en.webp="webp",en}(Mr||{});let nr=(()=>{var en;class Wt{constructor(Nt){this.defaultImageProperties={f:Mr.webp},this.logger=Nt.getLogger("ImageFormatService")}formatImageServiceUrl(Nt,gi={}){const Bi={...this.defaultImageProperties,...gi},Mi=Object.keys(Bi);for(const tr of Mi){const mo=Bi[tr]||(0,S.isBoolean)(Bi[tr])?""+Bi[tr]:void 0;mo&&mo.length>0&&!(0,S.isNil)(Nt)&&(Nt+=";"+tr+"="+Bi[tr])}return Nt}}return(en=Wt).\u0275fac=function(Nt){return new(Nt||en)(z.KVO(I.J6))},en.\u0275prov=z.jDH({token:en,factory:en.\u0275fac,providedIn:"root"}),Wt})()},2490:(Ue,W,d)=>{"use strict";d.d(W,{Z1:()=>Wv,Af:()=>i,Se:()=>y,ls:()=>r,pB:()=>O,NS:()=>v});var n=d(59859),l=d(91384),p=d(14714),m=d(43615),_=d(26875),P=d(32727),v=function(ve){return ve.HttpUrl="http.url",ve.HttpStatusCode="http.status_code",ve.HttpStatusCodeFamily="http.status_code_family",ve.HttpMethod="http.method",ve.HttpHostname="http.hostname",ve.HttpHeadersPrefix="http.headers.",ve.HttpPath="http.path",ve.HttpErrorText="http.error_text",ve.ParamsPrefix="params.",ve.Error="error",ve.SpanKind="span.kind",ve.Component="component",ve.ClientOs="client.os",ve.ClientOsName="client.os.name",ve.ClientOsVersion="client.os.version",ve.ServiceVersion="service.version",ve.ServiceType="service.type",ve.Type="type",ve.DeviceId="deviceId",ve.AppName="appName",ve.LayoutExecutionId="layoutExecutionId",ve.Origin="origin",ve.VpcId="vpcId",ve.Locale="locale",ve.Trigger="trigger",ve.LoginStatus="loginStatus",ve.CmsId="cmsId",ve.FailurePoint="failurePoint",ve.ErrorCode="errorCode",ve.ErrorType="errorType",ve.NetworkOverridePresent="networkOverridePresent",ve.NetworkTestStatus="networkTestStatus",ve.ZoneName="zone.name",ve.ZoneAddress="zone.address",ve.OobeDialogShown="oobeDialogShown",ve.LoginWindowShown="loginWindowShown",ve.LaunchSource="launchSource",ve.ShortName="shortName",ve.UsedLatencyBasedRouting="usedLatencyBasedRouting",ve.IsSessionAutoResumed="isSessionAutoResumed",ve.ErrorDetails="errorDetails",ve.RoutingOverrideUsed="routingOverrideUsed",ve.OverrideZoneName="overrideZoneName",ve.OverrideZoneAddress="overrideZoneAddress",ve.SessionId="sessionId",ve.SkippedAuthCheck="skippedAuthCheck",ve.CountryCode="countryCode",ve.FastestJarvisDomain="fastestJarvisDomain",ve.TraceId="traceId",ve.RequestId="requestId",ve.PanelType="panelType",ve.BeforeEventDuration="beforeEventDuration",ve.PresentDuration="presentDuration",ve.PushMessageType="pushMessageType",ve.AccountLinkingProvider="accountLinkingProvider",ve.HasFilters="hasFilters",ve.HasSearchQuery="hasSearchQuery",ve.IsFirstPage="isFirstPage",ve}(v||{}),O=function(ve){return ve.DelegateToken="GetDelegateToken",ve.ClientGetLayout="ClientGetLayout",ve.FetchLayout="LayoutManagerGetLayout",ve.GetServerInfo="GetServerInfo",ve.GetSpecificServerInfo="GetSpecificServerInfo",ve.ClientGetAppMetadata="ClientGetAppMetadata",ve.ClientGetAppsList="ClientGetAppsList",ve.FetchAppsList="LayoutManagerGetAppsList",ve.FetchAppMetadata="LayoutManagerGetAppMetadata",ve.FetchSubscriptions="FetchSubscriptions",ve.GetEntitlementStatus="GetEntitlementStatus",ve.GameLaunch="GameLaunch",ve.ClientGetSubscriptions="ClientGetSubscriptions",ve.GetActiveSessions="GetActiveSessions",ve.GetSessionInfo="GetSessionInfo",ve.StartStreaming="StartStreaming",ve.GetUserEntitlements="GetUserEntitlements",ve.UpdateCheck="UpdateCheck",ve.PreStreaming="PreStreaming",ve.StreamerAuthentication="StreamerAuthentication",ve.StreamerAuthorization="StreamerAuthorization",ve.StreamerNetworktest="StreamerNetworkTest",ve.SessionLoading="SessionLoading",ve.GetRatingsInfo="GetRatingsInfo",ve.GxTargetGetFeature="GxTargetGetFeature",ve.GetFastestDomain="GetFastestDomain",ve.JarvisPing="JarvisPing",ve.JarvisOAuth="JarvisOAuth",ve.StarfleetOAuth="StarfleetOAuth",ve.LcarsFetchQueryData="LcarsFetchQueryData",ve.LcarsPostQueryData="LcarsPostQueryData",ve.ClientGetSurvey="ClientGetSurvey",ve.ClientDismissSurvey="ClientDismissSurvey",ve.PlatformSelection="PlatformSelection",ve.PlatformSelectionSharedStorageRead="PlatformSelectionSharedStorageRead",ve.PlatformSelectionDialogInteraction="PlatformSelectionDialogInteraction",ve.AccountLinking="AccountLinking",ve.AccountLinkingDialogInteraction="AccountLinkingDialogInteraction",ve.AlsGetLoginUrl="AlsGetLoginUrl",ve.AlsPostLoginUrl="AlsPostLoginUrl",ve.AlsPostToken="AlsPostToken",ve.AlsSync="AlsSync",ve.AlsDeleteLinking="AlsDeleteLinking",ve.AlsUserLogin="AlsUserLogin",ve.AlsTokenExchange="AlsTokenExchange",ve.AlsUIConnect="AlsUIConnect",ve.AlsUIDisconnect="AlsUIDisconnect",ve.AlsUIReconnect="AlsUIReconnect",ve.AlsUIResync="AlsUIResync",ve.GetAemReleaseHighlights="GetAemReleaseHighlights",ve.GetGfwslInformation="GetGfwslInformation",ve.StarfleetDeleteClientToken="StarfleetDeleteClientToken",ve.StarfleetGetClientToken="StarfleetGetClientToken",ve.StarfleetGetAccessToken="StarfleetGetAccessToken",ve.StarfleetGetUserInfo="StarfleetGetUserInfo",ve.SendTelemetryEvent="SendTelemetryEvent",ve.ClientSettings="ClientSettings",ve.ScheduledMaintenance="ScheduledMaintenance",ve.ScheduledMaintenanceSessionEndError="ScheduledMaintenanceSessionEndError",ve.ClientGetCloudVariable="ClientGetCloudVariable",ve.ClientStreamingQuality="ClientStreamingQuality",ve.PushNotificationRegistration="PushNotificationRegistration",ve.KVStoreGetClientData="KVStoreGetClientData",ve.KVStoreSetClientData="KVStoreSetClientData",ve.KVStoreDeleteClientData="KVStoreDeleteClientData",ve.KVStoreAppendClientData="KVStoreAppendClientData",ve.ClientGetPanel="ClientGetPanel",ve.ClientDesktopPaste="ClientDesktopPaste",ve.ClientClipboardAvailable="ClientClipboardAvailable",ve.BackgroundNetworkTest="BackgroundNetworkTest",ve.GetRemoteConfigV2="GetRemoteConfigV2",ve.PushMessageReceived="PushMessageReceived",ve.PnsRegistration="PnsRegistration",ve.PnsUnregister="PnsUnregister",ve.UserAccountData="UserAccountData",ve.SessionLengthWarning="SessionLengthWarning",ve.VrsGetRewards="VrsGetRewards",ve.UpsellMessages="UpsellMessages",ve.CampaignsInfo="CampaignsInfo",ve.SearchFilterGames="SearchFilterGames",ve.UasAcquireUser="UasAcquireUser",ve.AdToken="AdToken",ve.AdSession="AdSession",ve.AdOpportunity="AdFetch",ve.AdStart="AdStart",ve.FilterGroupSortOrderDefinitions="FilterGroupSortOrderDefinitions",ve.GetLoginWallData="GetLoginWallData",ve.GetLoginWallStringsOnly="GetLoginWallStringsOnly",ve.AddFavoriteApp="AddFavoriteApp",ve.RemoveFavoriteApp="RemoveFavoriteApp",ve.AddOwnedVariant="AddOwnedVariant",ve.RemoveOwnedVariant="RemoveOwnedVariant",ve.SelectOwnedVariant="SelectOwnedVariant",ve}(O||{}),S=function(ve){return ve.XmlHttpRequest="XMLHttpRequest",ve}(S||{}),y=function(ve){return ve.Pc_A7="pc-a7",ve.Native_Windows="native-windows",ve}(y||{}),r=function(ve){return ve.Client="client",ve}(r||{}),i=function(ve){return ve.VpcId="ERROR_WHILE_GETTING_VPCID",ve}(i||{}),h=d(61142),g=d(36466),c=d(43848),T=d(65726),A=d(75707),L=d(5798),x=d(70521),V=d(58527),D=d(3567),F="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},I="1.4.1",k=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,G=function R(ve){var We=new Set([ve]),ot=new Set,at=ve.match(k);if(!at)return function(){return!1};var Rt_major=+at[1],Rt_minor=+at[2],Rt_patch=+at[3];if(null!=at[4])return function(_r){return _r===ve};function sn(wi){return ot.add(wi),!1}function ui(wi){return We.add(wi),!0}return function(_r){if(We.has(_r))return!0;if(ot.has(_r))return!1;var Rr=_r.match(k);if(!Rr)return sn(_r);var Uo_minor=+Rr[2],Uo_patch=+Rr[3];return null!=Rr[4]||Rt_major!==+Rr[1]?sn(_r):0===Rt_major?Rt_minor===Uo_minor&&Rt_patch<=Uo_patch?ui(_r):sn(_r):Rt_minor<=Uo_minor?ui(_r):sn(_r)}}(I),Y=I.split(".")[0],K=Symbol.for("opentelemetry.js.api."+Y),$=F;function ee(ve,We,ot,at){var Rt;void 0===at&&(at=!1);var sn=$[K]=null!==(Rt=$[K])&&void 0!==Rt?Rt:{version:I};if(!at&&sn[ve]){var ui=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+ve);return ot.error(ui.stack||ui.message),!1}return sn.version!==I?(ui=new Error("@opentelemetry/api: Registration of version v"+sn.version+" for "+ve+" does not match previously registered API v"+I),ot.error(ui.stack||ui.message),!1):(sn[ve]=We,ot.debug("@opentelemetry/api: Registered a global for "+ve+" v"+I+"."),!0)}function J(ve){var We,ot,at=null===(We=$[K])||void 0===We?void 0:We.version;if(at&&G(at))return null===(ot=$[K])||void 0===ot?void 0:ot[ve]}function z(ve,We){We.debug("@opentelemetry/api: Unregistering a global for "+ve+" v"+I+".");var ot=$[K];ot&&delete ot[ve]}var re=function(){function ve(We){this._namespace=We.namespace||"DiagComponentLogger"}return ve.prototype.debug=function(){for(var We=[],ot=0;ot<arguments.length;ot++)We[ot]=arguments[ot];return ge("debug",this._namespace,We)},ve.prototype.error=function(){for(var We=[],ot=0;ot<arguments.length;ot++)We[ot]=arguments[ot];return ge("error",this._namespace,We)},ve.prototype.info=function(){for(var We=[],ot=0;ot<arguments.length;ot++)We[ot]=arguments[ot];return ge("info",this._namespace,We)},ve.prototype.warn=function(){for(var We=[],ot=0;ot<arguments.length;ot++)We[ot]=arguments[ot];return ge("warn",this._namespace,We)},ve.prototype.verbose=function(){for(var We=[],ot=0;ot<arguments.length;ot++)We[ot]=arguments[ot];return ge("verbose",this._namespace,We)},ve}();function ge(ve,We,ot){var at=J("diag");if(at)return ot.unshift(We),at[ve].apply(at,function(ve,We,ot){if(ot||2===arguments.length)for(var sn,at=0,Rt=We.length;at<Rt;at++)(sn||!(at in We))&&(sn||(sn=Array.prototype.slice.call(We,0,at)),sn[at]=We[at]);return ve.concat(sn||Array.prototype.slice.call(We))}([],function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(ot),!1))}var oe=function(ve){return ve[ve.NONE=0]="NONE",ve[ve.ERROR=30]="ERROR",ve[ve.WARN=50]="WARN",ve[ve.INFO=60]="INFO",ve[ve.DEBUG=70]="DEBUG",ve[ve.VERBOSE=80]="VERBOSE",ve[ve.ALL=9999]="ALL",ve}(oe||{}),ce=function(){function ve(){function We(Rt){return function(){for(var sn=[],ui=0;ui<arguments.length;ui++)sn[ui]=arguments[ui];var wi=J("diag");if(wi)return wi[Rt].apply(wi,function(ve,We,ot){if(ot||2===arguments.length)for(var sn,at=0,Rt=We.length;at<Rt;at++)(sn||!(at in We))&&(sn||(sn=Array.prototype.slice.call(We,0,at)),sn[at]=We[at]);return ve.concat(sn||Array.prototype.slice.call(We))}([],function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(sn),!1))}}var ot=this;ot.setLogger=function(Rt,sn){var ui,wi,_r;if(void 0===sn&&(sn={logLevel:oe.INFO}),Rt===ot){var Rr=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return ot.error(null!==(ui=Rr.stack)&&void 0!==ui?ui:Rr.message),!1}"number"==typeof sn&&(sn={logLevel:sn});var Uo=J("diag"),Zs=function xe(ve,We){function ot(at,Rt){var sn=We[at];return"function"==typeof sn&&ve>=Rt?sn.bind(We):function(){}}return ve<oe.NONE?ve=oe.NONE:ve>oe.ALL&&(ve=oe.ALL),We=We||{},{error:ot("error",oe.ERROR),warn:ot("warn",oe.WARN),info:ot("info",oe.INFO),debug:ot("debug",oe.DEBUG),verbose:ot("verbose",oe.VERBOSE)}}(null!==(wi=sn.logLevel)&&void 0!==wi?wi:oe.INFO,Rt);if(Uo&&!sn.suppressOverrideMessage){var Fa=null!==(_r=(new Error).stack)&&void 0!==_r?_r:"<failed to generate stacktrace>";Uo.warn("Current logger will be overwritten from "+Fa),Zs.warn("Current logger will overwrite one already registered from "+Fa)}return ee("diag",Zs,ot,!0)},ot.disable=function(){z("diag",ot)},ot.createComponentLogger=function(Rt){return new re(Rt)},ot.verbose=We("verbose"),ot.debug=We("debug"),ot.info=We("info"),ot.warn=We("warn"),ot.error=We("error")}return ve.instance=function(){return this._instance||(this._instance=new ve),this._instance},ve}(),Z=ce.instance();function de(ve){return Symbol.for(ve)}var pe=new(function(){return function ve(We){var ot=this;ot._currentContext=We?new Map(We):new Map,ot.getValue=function(at){return ot._currentContext.get(at)},ot.setValue=function(at,Rt){var sn=new ve(ot._currentContext);return sn._currentContext.set(at,Rt),sn},ot.deleteValue=function(at){var Rt=new ve(ot._currentContext);return Rt._currentContext.delete(at),Rt}}}()),De=function(){function ve(){}return ve.prototype.active=function(){return pe},ve.prototype.with=function(We,ot,at){for(var Rt=[],sn=3;sn<arguments.length;sn++)Rt[sn-3]=arguments[sn];return ot.call.apply(ot,function(ve,We,ot){if(ot||2===arguments.length)for(var sn,at=0,Rt=We.length;at<Rt;at++)(sn||!(at in We))&&(sn||(sn=Array.prototype.slice.call(We,0,at)),sn[at]=We[at]);return ve.concat(sn||Array.prototype.slice.call(We))}([at],function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(Rt),!1))},ve.prototype.bind=function(We,ot){return ot},ve.prototype.enable=function(){return this},ve.prototype.disable=function(){return this},ve}(),$e="context",Oe=new De,gt=function(){function ve(){}return ve.getInstance=function(){return this._instance||(this._instance=new ve),this._instance},ve.prototype.setGlobalContextManager=function(We){return ee($e,We,ce.instance())},ve.prototype.active=function(){return this._getContextManager().active()},ve.prototype.with=function(We,ot,at){for(var Rt,sn=[],ui=3;ui<arguments.length;ui++)sn[ui-3]=arguments[ui];return(Rt=this._getContextManager()).with.apply(Rt,function(ve,We,ot){if(ot||2===arguments.length)for(var sn,at=0,Rt=We.length;at<Rt;at++)(sn||!(at in We))&&(sn||(sn=Array.prototype.slice.call(We,0,at)),sn[at]=We[at]);return ve.concat(sn||Array.prototype.slice.call(We))}([We,ot,at],function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(sn),!1))},ve.prototype.bind=function(We,ot){return this._getContextManager().bind(We,ot)},ve.prototype._getContextManager=function(){return J($e)||Oe},ve.prototype.disable=function(){this._getContextManager().disable(),z($e,ce.instance())},ve}(),qt=function(ve){return ve[ve.NONE=0]="NONE",ve[ve.SAMPLED=1]="SAMPLED",ve}(qt||{}),ye="0000000000000000",Re="00000000000000000000000000000000",Ze={traceId:Re,spanId:ye,traceFlags:qt.NONE},et=function(){function ve(We){void 0===We&&(We=Ze),this._spanContext=We}return ve.prototype.spanContext=function(){return this._spanContext},ve.prototype.setAttribute=function(We,ot){return this},ve.prototype.setAttributes=function(We){return this},ve.prototype.addEvent=function(We,ot){return this},ve.prototype.setStatus=function(We){return this},ve.prototype.updateName=function(We){return this},ve.prototype.end=function(We){},ve.prototype.isRecording=function(){return!1},ve.prototype.recordException=function(We,ot){},ve}(),xt=de("OpenTelemetry Context Key SPAN");function un(ve){return ve.getValue(xt)||void 0}function ct(){return un(gt.getInstance().active())}function Gt(ve,We){return ve.setValue(xt,We)}function pn(ve){return ve.deleteValue(xt)}function st(ve,We){return Gt(ve,new et(We))}function mn(ve){var We;return null===(We=un(ve))||void 0===We?void 0:We.spanContext()}var Bn=/^([0-9a-f]{32})$/i,En=/^[0-9a-f]{16}$/i;function Cn(ve){return Bn.test(ve)&&ve!==Re}function fn(ve){return En.test(ve)&&ve!==ye}function dt(ve){return Cn(ve.traceId)&&fn(ve.spanId)}function nn(ve){return new et(ve)}var yn=gt.getInstance(),Xn=function(){function ve(){}return ve.prototype.startSpan=function(We,ot,at){if(void 0===at&&(at=yn.active()),ot?.root)return new et;var sn=at&&mn(at);return function rn(ve){return"object"==typeof ve&&"string"==typeof ve.spanId&&"string"==typeof ve.traceId&&"number"==typeof ve.traceFlags}(sn)&&dt(sn)?new et(sn):new et},ve.prototype.startActiveSpan=function(We,ot,at,Rt){var sn,ui,wi;if(!(arguments.length<2)){2===arguments.length?wi=ot:3===arguments.length?(sn=ot,wi=at):(sn=ot,ui=at,wi=Rt);var _r=ui??yn.active(),Rr=this.startSpan(We,sn,_r),Uo=Gt(_r,Rr);return yn.with(Uo,wi,void 0,Rr)}},ve}(),ai=new Xn,ri=function(){function ve(We,ot,at,Rt){this._provider=We,this.name=ot,this.version=at,this.options=Rt}return ve.prototype.startSpan=function(We,ot,at){return this._getTracer().startSpan(We,ot,at)},ve.prototype.startActiveSpan=function(We,ot,at,Rt){var sn=this._getTracer();return Reflect.apply(sn.startActiveSpan,sn,arguments)},ve.prototype._getTracer=function(){if(this._delegate)return this._delegate;var We=this._provider.getDelegateTracer(this.name,this.version,this.options);return We?(this._delegate=We,this._delegate):ai},ve}(),zt=new(function(){function ve(){}return ve.prototype.getTracer=function(We,ot,at){return new Xn},ve}()),vt=function(){function ve(){}return ve.prototype.getTracer=function(We,ot,at){var Rt;return null!==(Rt=this.getDelegateTracer(We,ot,at))&&void 0!==Rt?Rt:new ri(this,We,ot,at)},ve.prototype.getDelegate=function(){var We;return null!==(We=this._delegate)&&void 0!==We?We:zt},ve.prototype.setDelegate=function(We){this._delegate=We},ve.prototype.getDelegateTracer=function(We,ot,at){var Rt;return null===(Rt=this._delegate)||void 0===Rt?void 0:Rt.getTracer(We,ot,at)},ve}(),Ct="trace",Ut=function(){function ve(){this._proxyTracerProvider=new vt,this.wrapSpanContext=nn,this.isSpanContextValid=dt,this.deleteSpan=pn,this.getSpan=un,this.getActiveSpan=ct,this.getSpanContext=mn,this.setSpan=Gt,this.setSpanContext=st}return ve.getInstance=function(){return this._instance||(this._instance=new ve),this._instance},ve.prototype.setGlobalTracerProvider=function(We){var ot=ee(Ct,this._proxyTracerProvider,ce.instance());return ot&&this._proxyTracerProvider.setDelegate(We),ot},ve.prototype.getTracerProvider=function(){return J(Ct)||this._proxyTracerProvider},ve.prototype.getTracer=function(We,ot){return this.getTracerProvider().getTracer(We,ot)},ve.prototype.disable=function(){z(Ct,ce.instance()),this._proxyTracerProvider=new vt},ve}().getInstance(),jn=gt.getInstance(),wn=function(){function ve(){}return ve.prototype.inject=function(We,ot){},ve.prototype.extract=function(We,ot){return We},ve.prototype.fields=function(){return[]},ve}(),nt={get:function(ve,We){if(null!=ve)return ve[We]},keys:function(ve){return null==ve?[]:Object.keys(ve)}},on={set:function(ve,We,ot){null!=ve&&(ve[We]=ot)}},mt=de("OpenTelemetry Baggage Key");function _n(ve){return ve.getValue(mt)||void 0}function wt(){return _n(gt.getInstance().active())}function Un(ve,We){return ve.setValue(mt,We)}function Oi(ve){return ve.deleteValue(mt)}var pi=function(){function ve(We){this._entries=We?new Map(We):new Map}return ve.prototype.getEntry=function(We){var ot=this._entries.get(We);if(ot)return Object.assign({},ot)},ve.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(We){var ot=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(We,2);return[ot[0],ot[1]]})},ve.prototype.setEntry=function(We,ot){var at=new ve(this._entries);return at._entries.set(We,ot),at},ve.prototype.removeEntry=function(We){var ot=new ve(this._entries);return ot._entries.delete(We),ot},ve.prototype.removeEntries=function(){for(var We,ot,at=[],Rt=0;Rt<arguments.length;Rt++)at[Rt]=arguments[Rt];var sn=new ve(this._entries);try{for(var ui=function(ve){var We="function"==typeof Symbol&&Symbol.iterator,ot=We&&ve[We],at=0;if(ot)return ot.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&at>=ve.length&&(ve=void 0),{value:ve&&ve[at++],done:!ve}}};throw new TypeError(We?"Object is not iterable.":"Symbol.iterator is not defined.")}(at),wi=ui.next();!wi.done;wi=ui.next())sn._entries.delete(wi.value)}catch(Rr){We={error:Rr}}finally{try{wi&&!wi.done&&(ot=ui.return)&&ot.call(ui)}finally{if(We)throw We.error}}return sn},ve.prototype.clear=function(){return new ve},ve}(),Zi=Symbol("BaggageEntryMetadata"),Lr=ce.instance();function Kr(ve){return void 0===ve&&(ve={}),new pi(new Map(Object.entries(ve)))}var di="propagation",ji=new wn,Zt=function(){function ve(){this.createBaggage=Kr,this.getBaggage=_n,this.getActiveBaggage=wt,this.setBaggage=Un,this.deleteBaggage=Oi}return ve.getInstance=function(){return this._instance||(this._instance=new ve),this._instance},ve.prototype.setGlobalPropagator=function(We){return ee(di,We,ce.instance())},ve.prototype.inject=function(We,ot,at){return void 0===at&&(at=on),this._getGlobalPropagator().inject(We,ot,at)},ve.prototype.extract=function(We,ot,at){return void 0===at&&(at=nt),this._getGlobalPropagator().extract(We,ot,at)},ve.prototype.fields=function(){return this._getGlobalPropagator().fields()},ve.prototype.disable=function(){z(di,ce.instance())},ve.prototype._getGlobalPropagator=function(){return J(di)||ji},ve}().getInstance(),Zn="[object Object]",Dn="[object Null]",zn="[object Undefined]",Xt=Function.prototype.toString,xn=Xt.call(Object),mi=function Jt(ve,We){return function(ot){return ve(We(ot))}}(Object.getPrototypeOf,Object),$n=Object.prototype,Pt=$n.hasOwnProperty,Ii=Symbol?Symbol.toStringTag:void 0,ar=$n.toString;function ki(ve){if(!function Fr(ve){return null!=ve&&"object"==typeof ve}(ve)||function xo(ve){return null==ve?void 0===ve?zn:Dn:Ii&&Ii in Object(ve)?function qn(ve){var We=Pt.call(ve,Ii),ot=ve[Ii],at=!1;try{ve[Ii]=void 0,at=!0}catch{}var Rt=ar.call(ve);return at&&(We?ve[Ii]=ot:delete ve[Ii]),Rt}(ve):function Sr(ve){return ar.call(ve)}(ve)}(ve)!==Zn)return!1;var We=mi(ve);if(null===We)return!0;var ot=Pt.call(We,"constructor")&&We.constructor;return"function"==typeof ot&&ot instanceof ot&&Xt.call(ot)===xn}function Ee(ve){return Be(ve)?ve.slice():ve}function Pe(ve,We,ot,at){var Rt;if(void 0===ot&&(ot=0),!(ot>20)){if(ot++,Vn(ve)||Vn(We)||Mt(We))Rt=Ee(We);else if(Be(ve)){if(Rt=ve.slice(),Be(We))for(var sn=0,ui=We.length;sn<ui;sn++)Rt.push(Ee(We[sn]));else if(Vt(We))for(sn=0,ui=(wi=Object.keys(We)).length;sn<ui;sn++)Rt[_r=wi[sn]]=Ee(We[_r])}else if(Vt(ve))if(Vt(We)){if(!function si(ve,We){return!(!ki(ve)||!ki(We))}(ve,We))return We;var wi;for(Rt=Object.assign({},ve),sn=0,ui=(wi=Object.keys(We)).length;sn<ui;sn++){var _r,Rr=We[_r=wi[sn]];if(Vn(Rr))typeof Rr>"u"?delete Rt[_r]:Rt[_r]=Rr;else{var Uo=Rt[_r],Zs=Rr;if(Qe(ve,_r,at)||Qe(We,_r,at))delete Rt[_r];else{if(Vt(Uo)&&Vt(Zs)){var Fa=at.get(Uo)||[],pd=at.get(Zs)||[];Fa.push({obj:ve,key:_r}),pd.push({obj:We,key:_r}),at.set(Uo,Fa),at.set(Zs,pd)}Rt[_r]=Pe(Rt[_r],Rr,ot,at)}}}}else Rt=We;return Rt}}function Qe(ve,We,ot){for(var at=ot.get(ve[We])||[],Rt=0,sn=at.length;Rt<sn;Rt++){var ui=at[Rt];if(ui.key===We&&ui.obj===ve)return!0}return!1}function Be(ve){return Array.isArray(ve)}function Mt(ve){return"function"==typeof ve}function Vt(ve){return!Vn(ve)&&!Be(ve)&&!Mt(ve)&&"object"==typeof ve}function Vn(ve){return"string"==typeof ve||"number"==typeof ve||"boolean"==typeof ve||typeof ve>"u"||ve instanceof Date||ve instanceof RegExp||null===ve}var Rn=function(ve){return ve.AlwaysOff="always_off",ve.AlwaysOn="always_on",ve.ParentBasedAlwaysOff="parentbased_always_off",ve.ParentBasedAlwaysOn="parentbased_always_on",ve.ParentBasedTraceIdRatio="parentbased_traceidratio",ve.TraceIdRatio="traceidratio",ve}(Rn||{}),_i=",",wr=["OTEL_SDK_DISABLED"];function hr(ve){return wr.indexOf(ve)>-1}var Qr=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Yr(ve){return Qr.indexOf(ve)>-1}var no=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Tr(ve){return no.indexOf(ve)>-1}var ro=1/0,Bs={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:oe.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:ro,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:ro,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:ro,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Rn.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function li(ve,We,ot){if(!(typeof ot[ve]>"u")){var at=String(ot[ve]);We[ve]="true"===at.toLowerCase()}}function dr(ve,We,ot,at,Rt){if(void 0===at&&(at=-1/0),void 0===Rt&&(Rt=1/0),typeof ot[ve]<"u"){var sn=Number(ot[ve]);isNaN(sn)||(We[ve]=sn<at?at:sn>Rt?Rt:sn)}}function Tn(ve,We,ot,at){void 0===at&&(at=_i);var Rt=ot[ve];"string"==typeof Rt&&(We[ve]=Rt.split(at).map(function(sn){return sn.trim()}))}var tn={ALL:oe.ALL,VERBOSE:oe.VERBOSE,DEBUG:oe.DEBUG,INFO:oe.INFO,WARN:oe.WARN,ERROR:oe.ERROR,NONE:oe.NONE};function vn(ve,We,ot){var at=ot[ve];if("string"==typeof at){var Rt=tn[at.toUpperCase()];null!=Rt&&(We[ve]=Rt)}}function oi(ve){var We={};for(var ot in Bs){var at=ot;if("OTEL_LOG_LEVEL"===at)vn(at,We,ve);else if(hr(at))li(at,We,ve);else if(Yr(at))dr(at,We,ve);else if(Tr(at))Tn(at,We,ve);else{var Rt=ve[at];typeof Rt<"u"&&null!==Rt&&(We[at]=String(Rt))}}return We}var Ci="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{};function or(){var ve=oi(Ci);return Object.assign({},Bs,ve)}var ko=function(){function ve(We){var ot;void 0===We&&(We={}),this._propagators=null!==(ot=We.propagators)&&void 0!==ot?ot:[],this._fields=Array.from(new Set(this._propagators.map(function(at){return"function"==typeof at.fields?at.fields():[]}).reduce(function(at,Rt){return at.concat(Rt)},[])))}return ve.prototype.inject=function(We,ot,at){var Rt,sn;try{for(var ui=function(ve){var We="function"==typeof Symbol&&Symbol.iterator,ot=We&&ve[We],at=0;if(ot)return ot.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&at>=ve.length&&(ve=void 0),{value:ve&&ve[at++],done:!ve}}};throw new TypeError(We?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),wi=ui.next();!wi.done;wi=ui.next()){var _r=wi.value;try{_r.inject(We,ot,at)}catch(Rr){Z.warn("Failed to inject with "+_r.constructor.name+". Err: "+Rr.message)}}}catch(Rr){Rt={error:Rr}}finally{try{wi&&!wi.done&&(sn=ui.return)&&sn.call(ui)}finally{if(Rt)throw Rt.error}}},ve.prototype.extract=function(We,ot,at){return this._propagators.reduce(function(Rt,sn){try{return sn.extract(Rt,ot,at)}catch(ui){Z.warn("Failed to inject with "+sn.constructor.name+". Err: "+ui.message)}return Rt},We)},ve.prototype.fields=function(){return this._fields.slice()},ve}(),qr=de("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Ls(ve){return!0===ve.getValue(qr)}var Xr="[_0-9a-z-*/]",Ya=new RegExp("^(?:[a-z]"+Xr+"{0,255}|[a-z0-9]"+Xr+"{0,240}@[a-z]"+Xr+"{0,13})$"),Ba=/^[ -~]{0,255}[!-~]$/,Pa=/,|=/,Ca=function(){function ve(We){this._internalState=new Map,We&&this._parse(We)}return ve.prototype.set=function(We,ot){var at=this._clone();return at._internalState.has(We)&&at._internalState.delete(We),at._internalState.set(We,ot),at},ve.prototype.unset=function(We){var ot=this._clone();return ot._internalState.delete(We),ot},ve.prototype.get=function(We){return this._internalState.get(We)},ve.prototype.serialize=function(){var We=this;return this._keys().reduce(function(ot,at){return ot.push(at+"="+We.get(at)),ot},[]).join(",")},ve.prototype._parse=function(We){We.length>512||(this._internalState=We.split(",").reverse().reduce(function(ot,at){var Rt=at.trim(),sn=Rt.indexOf("=");if(-1!==sn){var ui=Rt.slice(0,sn),wi=Rt.slice(sn+1,at.length);(function ys(ve){return Ya.test(ve)})(ui)&&function Ga(ve){return Ba.test(ve)&&!Pa.test(ve)}(wi)&&ot.set(ui,wi)}return ot},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},ve.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},ve.prototype._clone=function(){var We=new ve;return We._internalState=new Map(this._internalState),We},ve}(),ln="traceparent",Pi="tracestate",Vi=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),nr=function(){function ve(){}return ve.prototype.inject=function(We,ot,at){var Rt=Ut.getSpanContext(We);if(Rt&&!Ls(We)&&dt(Rt)){var sn="00-"+Rt.traceId+"-"+Rt.spanId+"-0"+Number(Rt.traceFlags||qt.NONE).toString(16);at.set(ot,ln,sn),Rt.traceState&&at.set(ot,Pi,Rt.traceState.serialize())}},ve.prototype.extract=function(We,ot,at){var Rt=at.get(ot,ln);if(!Rt)return We;var sn=Array.isArray(Rt)?Rt[0]:Rt;if("string"!=typeof sn)return We;var ui=function Mr(ve){var We=Vi.exec(ve);return!We||"00"===We[1]&&We[5]?null:{traceId:We[2],spanId:We[3],traceFlags:parseInt(We[4],16)}}(sn);if(!ui)return We;ui.isRemote=!0;var wi=at.get(ot,Pi);if(wi){var _r=Array.isArray(wi)?wi.join(","):wi;ui.traceState=new Ca("string"==typeof _r?_r:void 0)}return Ut.setSpanContext(We,ui)},ve.prototype.fields=function(){return[ln,Pi]},ve}(),en="=",Wt=";",Nt="baggage";function is(ve){var We=ve.split(Wt);if(!(We.length<=0)){var ot=We.shift();if(ot){var at=ot.indexOf(en);if(!(at<=0)){var ui,Rt=decodeURIComponent(ot.substring(0,at).trim()),sn=decodeURIComponent(ot.substring(at+1).trim());return We.length>0&&(ui=function Qt(ve){return"string"!=typeof ve&&(Lr.error("Cannot create baggage metadata from unknown type: "+typeof ve),ve=""),{__TYPE__:Zi,toString:function(){return ve}}}(We.join(Wt))),{key:Rt,value:sn,metadata:ui}}}}}function ha(ve){return"string"!=typeof ve||0===ve.length?{}:ve.split(",").map(function(We){return is(We)}).filter(function(We){return void 0!==We&&We.value.length>0}).reduce(function(We,ot){return We[ot.key]=ot.value,We},{})}var Ys=function(){function ve(){}return ve.prototype.inject=function(We,ot,at){var Rt=Zt.getBaggage(We);if(Rt&&!Ls(We)){var ui=function mo(ve){return ve.reduce(function(We,ot){var at=We+(""!==We?",":"")+ot;return at.length>8192?We:at},"")}(function Bo(ve){return ve.getAllEntries().map(function(We){var ot=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(We,2),Rt=ot[1],sn=encodeURIComponent(ot[0])+"="+encodeURIComponent(Rt.value);return void 0!==Rt.metadata&&(sn+=Wt+Rt.metadata.toString()),sn})}(Rt).filter(function(wi){return wi.length<=4096}).slice(0,180));ui.length>0&&at.set(ot,Nt,ui)}},ve.prototype.extract=function(We,ot,at){var Rt=at.get(ot,Nt),sn=Array.isArray(Rt)?Rt.join(","):Rt;if(!sn)return We;var ui={};return 0===sn.length?We:(sn.split(",").forEach(function(_r){var Rr=is(_r);if(Rr){var Uo={value:Rr.value};Rr.metadata&&(Uo.metadata=Rr.metadata),ui[Rr.key]=Uo}}),0===Object.entries(ui).length?We:Zt.setBaggage(We,Zt.createBaggage(ui)))},ve.prototype.fields=function(){return[Nt]},ve}();function Po(ve){for(var We={},ot=ve.length,at=0;at<ot;at++){var Rt=ve[at];Rt&&(We[String(Rt).toUpperCase().replace(/[-.]/g,"_")]=Rt)}return We}var _u,zl="service.name",ft="telemetry.sdk.name",Gn="telemetry.sdk.language",bi="telemetry.sdk.version",Hi=zl,uo=ft,io=Gn,Do=bi,Da=Po(["cloud.provider","cloud.account.id","cloud.region","cloud.availability_zone","cloud.platform","aws.ecs.container.arn","aws.ecs.cluster.arn","aws.ecs.launchtype","aws.ecs.task.arn","aws.ecs.task.family","aws.ecs.task.revision","aws.eks.cluster.arn","aws.log.group.names","aws.log.group.arns","aws.log.stream.names","aws.log.stream.arns","container.name","container.id","container.runtime","container.image.name","container.image.tag","deployment.environment","device.id","device.model.identifier","device.model.name","faas.name","faas.id","faas.version","faas.instance","faas.max_memory","host.id","host.name","host.type","host.arch","host.image.name","host.image.id","host.image.version","k8s.cluster.name","k8s.node.name","k8s.node.uid","k8s.namespace.name","k8s.pod.uid","k8s.pod.name","k8s.container.name","k8s.replicaset.uid","k8s.replicaset.name","k8s.deployment.uid","k8s.deployment.name","k8s.statefulset.uid","k8s.statefulset.name","k8s.daemonset.uid","k8s.daemonset.name","k8s.job.uid","k8s.job.name","k8s.cronjob.uid","k8s.cronjob.name","os.type","os.description","os.name","os.version","process.pid","process.executable.name","process.executable.path","process.command","process.command_line","process.command_args","process.owner","process.runtime.name","process.runtime.version","process.runtime.description",zl,"service.namespace","service.instance.id","service.version",ft,Gn,bi,"telemetry.auto.version","webengine.name","webengine.version","webengine.description"]),Gg=Po(["cpp","dotnet","erlang","go","java","nodejs","php","python","ruby","webjs"]),ac=((_u={})[Da.TELEMETRY_SDK_NAME]="opentelemetry",_u[Da.PROCESS_RUNTIME_NAME]="browser",_u[Da.TELEMETRY_SDK_LANGUAGE]=Gg.WEBJS,_u[Da.TELEMETRY_SDK_VERSION]="1.24.1",_u),yc=function(){return yc=Object.assign||function(ve){for(var We,ot=1,at=arguments.length;ot<at;ot++)for(var Rt in We=arguments[ot])Object.prototype.hasOwnProperty.call(We,Rt)&&(ve[Rt]=We[Rt]);return ve},yc.apply(this,arguments)},tu=function(){function ve(We,ot){var Rt,at=this;this._attributes=We,this.asyncAttributesPending=null!=ot,this._syncAttributes=null!==(Rt=this._attributes)&&void 0!==Rt?Rt:{},this._asyncAttributesPromise=ot?.then(function(sn){return at._attributes=Object.assign({},at._attributes,sn),at.asyncAttributesPending=!1,sn},function(sn){return Z.debug("a resource's async attributes promise rejected: %s",sn),at.asyncAttributesPending=!1,{}})}return ve.empty=function(){return ve.EMPTY},ve.default=function(){var We;return new ve(((We={})[Hi]="unknown_service",We[io]=ac[io],We[uo]=ac[uo],We[Do]=ac[Do],We))},Object.defineProperty(ve.prototype,"attributes",{get:function(){var We;return this.asyncAttributesPending&&Z.error("Accessing resource attributes before async attributes settled"),null!==(We=this._attributes)&&void 0!==We?We:{}},enumerable:!1,configurable:!0}),ve.prototype.waitForAsyncAttributes=function(){return function(ve,We,ot,at){return new(ot||(ot=Promise))(function(sn,ui){function wi(Uo){try{Rr(at.next(Uo))}catch(Zs){ui(Zs)}}function _r(Uo){try{Rr(at.throw(Uo))}catch(Zs){ui(Zs)}}function Rr(Uo){Uo.done?sn(Uo.value):function Rt(sn){return sn instanceof ot?sn:new ot(function(ui){ui(sn)})}(Uo.value).then(wi,_r)}Rr((at=at.apply(ve,We||[])).next())})}(this,void 0,void 0,function(){return function(ve,We){var at,Rt,sn,ui,ot={label:0,sent:function(){if(1&sn[0])throw sn[1];return sn[1]},trys:[],ops:[]};return ui={next:wi(0),throw:wi(1),return:wi(2)},"function"==typeof Symbol&&(ui[Symbol.iterator]=function(){return this}),ui;function wi(Rr){return function(Uo){return function _r(Rr){if(at)throw new TypeError("Generator is already executing.");for(;ot;)try{if(at=1,Rt&&(sn=2&Rr[0]?Rt.return:Rr[0]?Rt.throw||((sn=Rt.return)&&sn.call(Rt),0):Rt.next)&&!(sn=sn.call(Rt,Rr[1])).done)return sn;switch(Rt=0,sn&&(Rr=[2&Rr[0],sn.value]),Rr[0]){case 0:case 1:sn=Rr;break;case 4:return ot.label++,{value:Rr[1],done:!1};case 5:ot.label++,Rt=Rr[1],Rr=[0];continue;case 7:Rr=ot.ops.pop(),ot.trys.pop();continue;default:if(!(sn=(sn=ot.trys).length>0&&sn[sn.length-1])&&(6===Rr[0]||2===Rr[0])){ot=0;continue}if(3===Rr[0]&&(!sn||Rr[1]>sn[0]&&Rr[1]<sn[3])){ot.label=Rr[1];break}if(6===Rr[0]&&ot.label<sn[1]){ot.label=sn[1],sn=Rr;break}if(sn&&ot.label<sn[2]){ot.label=sn[2],ot.ops.push(Rr);break}sn[2]&&ot.ops.pop(),ot.trys.pop();continue}Rr=We.call(ve,ot)}catch(Uo){Rr=[6,Uo],Rt=0}finally{at=sn=0}if(5&Rr[0])throw Rr[1];return{value:Rr[0]?Rr[1]:void 0,done:!0}}([Rr,Uo])}}}(this,function(We){switch(We.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:We.sent(),We.label=2;case 2:return[2]}})})},ve.prototype.merge=function(We){var at,ot=this;if(!We)return this;var Rt=yc(yc({},this._syncAttributes),null!==(at=We._syncAttributes)&&void 0!==at?at:We.attributes);if(!this._asyncAttributesPromise&&!We._asyncAttributesPromise)return new ve(Rt);var sn=Promise.all([this._asyncAttributesPromise,We._asyncAttributesPromise]).then(function(ui){var wi,_r=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(ui,2),Rr=_r[0],Uo=_r[1];return yc(yc(yc(yc({},ot._syncAttributes),Rr),null!==(wi=We._syncAttributes)&&void 0!==wi?wi:We.attributes),Uo)});return new ve(Rt,sn)},ve.EMPTY=new ve({}),ve}(),tg=function(ve){return ve[ve.INTERNAL=0]="INTERNAL",ve[ve.SERVER=1]="SERVER",ve[ve.CLIENT=2]="CLIENT",ve[ve.PRODUCER=3]="PRODUCER",ve[ve.CONSUMER=4]="CONSUMER",ve}(tg||{}),ku=function(ve){return ve[ve.NOT_RECORD=0]="NOT_RECORD",ve[ve.RECORD=1]="RECORD",ve[ve.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",ve}(ku||{}),Nu=function(ve){var We="function"==typeof Symbol&&Symbol.iterator,ot=We&&ve[We],at=0;if(ot)return ot.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&at>=ve.length&&(ve=void 0),{value:ve&&ve[at++],done:!ve}}};throw new TypeError(We?"Object is not iterable.":"Symbol.iterator is not defined.")},Kc=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn};function nu(ve){var We,ot,at={};if("object"!=typeof ve||null==ve)return at;try{for(var Rt=Nu(Object.entries(ve)),sn=Rt.next();!sn.done;sn=Rt.next()){var ui=Kc(sn.value,2),wi=ui[0],_r=ui[1];ng(wi)?md(_r)?at[wi]=Array.isArray(_r)?_r.slice():_r:Z.warn("Invalid attribute value set for key: "+wi):Z.warn("Invalid attribute key: "+wi)}}catch(Rr){We={error:Rr}}finally{try{sn&&!sn.done&&(ot=Rt.return)&&ot.call(Rt)}finally{if(We)throw We.error}}return at}function ng(ve){return"string"==typeof ve&&ve.length>0}function md(ve){return null==ve||(Array.isArray(ve)?function Xc(ve){var We,ot,at;try{for(var Rt=Nu(ve),sn=Rt.next();!sn.done;sn=Rt.next()){var ui=sn.value;if(null!=ui){if(!at){if(iu(ui)){at=typeof ui;continue}return!1}if(typeof ui!==at)return!1}}}catch(wi){We={error:wi}}finally{try{sn&&!sn.done&&(ot=Rt.return)&&ot.call(Rt)}finally{if(We)throw We.error}}return!0}(ve):iu(ve))}function iu(ve){switch(typeof ve){case"number":case"boolean":case"string":return!0}return!1}var qo=function(ve){return ve[ve.UNSET=0]="UNSET",ve[ve.OK=1]="OK",ve[ve.ERROR=2]="ERROR",ve}(qo||{}),bc=performance,Pl=Math.pow(10,6),vh=Math.pow(10,9);function Lc(ve){return[Math.trunc(ve/1e3),Math.round(ve%1e3*Pl)]}function Ol(){var ve=bc.timeOrigin;return"number"!=typeof ve&&(ve=bc.timing&&bc.timing.fetchStart),ve}function sl(ve){return Array.isArray(ve)&&2===ve.length&&"number"==typeof ve[0]&&"number"==typeof ve[1]}function ad(ve){return sl(ve)||"number"==typeof ve||ve instanceof Date}function lc(ve,We){var ot=[ve[0]+We[0],ve[1]+We[1]];return ot[1]>=vh&&(ot[1]-=vh,ot[0]+=1),ot}var Yt=Po(["aws.lambda.invoked_arn","db.system","db.connection_string","db.user","db.jdbc.driver_classname","db.name","db.statement","db.operation","db.mssql.instance_name","db.cassandra.keyspace","db.cassandra.page_size","db.cassandra.consistency_level","db.cassandra.table","db.cassandra.idempotence","db.cassandra.speculative_execution_count","db.cassandra.coordinator.id","db.cassandra.coordinator.dc","db.hbase.namespace","db.redis.database_index","db.mongodb.collection","db.sql.table","exception.type","exception.message","exception.stacktrace","exception.escaped","faas.trigger","faas.execution","faas.document.collection","faas.document.operation","faas.document.time","faas.document.name","faas.time","faas.cron","faas.coldstart","faas.invoked_name","faas.invoked_provider","faas.invoked_region","net.transport","net.peer.ip","net.peer.port","net.peer.name","net.host.ip","net.host.port","net.host.name","net.host.connection.type","net.host.connection.subtype","net.host.carrier.name","net.host.carrier.mcc","net.host.carrier.mnc","net.host.carrier.icc","peer.service","enduser.id","enduser.role","enduser.scope","thread.id","thread.name","code.function","code.namespace","code.filepath","code.lineno","http.method","http.url","http.target","http.host","http.scheme","http.status_code","http.flavor","http.user_agent","http.request_content_length","http.request_content_length_uncompressed","http.response_content_length","http.response_content_length_uncompressed","http.server_name","http.route","http.client_ip","aws.dynamodb.table_names","aws.dynamodb.consumed_capacity","aws.dynamodb.item_collection_metrics","aws.dynamodb.provisioned_read_capacity","aws.dynamodb.provisioned_write_capacity","aws.dynamodb.consistent_read","aws.dynamodb.projection","aws.dynamodb.limit","aws.dynamodb.attributes_to_get","aws.dynamodb.index_name","aws.dynamodb.select","aws.dynamodb.global_secondary_indexes","aws.dynamodb.local_secondary_indexes","aws.dynamodb.exclusive_start_table","aws.dynamodb.table_count","aws.dynamodb.scan_forward","aws.dynamodb.segment","aws.dynamodb.total_segments","aws.dynamodb.count","aws.dynamodb.scanned_count","aws.dynamodb.attribute_definitions","aws.dynamodb.global_secondary_index_updates","messaging.system","messaging.destination","messaging.destination_kind","messaging.temp_destination","messaging.protocol","messaging.protocol_version","messaging.url","messaging.message_id","messaging.conversation_id","messaging.message_payload_size_bytes","messaging.message_payload_compressed_size_bytes","messaging.operation","messaging.consumer_id","messaging.rabbitmq.routing_key","messaging.kafka.message_key","messaging.kafka.consumer_group","messaging.kafka.client_id","messaging.kafka.partition","messaging.kafka.tombstone","rpc.system","rpc.service","rpc.method","rpc.grpc.status_code","rpc.jsonrpc.version","rpc.jsonrpc.request_id","rpc.jsonrpc.error_code","rpc.jsonrpc.error_message","message.type","message.id","message.compressed_size","message.uncompressed_size"]),NC=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn},xv=function(){function ve(We,ot,at,Rt,sn,ui,wi,_r,Rr,Uo){void 0===wi&&(wi=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:qo.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=at,this._spanContext=Rt,this.parentSpanId=ui,this.kind=sn,this.links=wi;var Zs=Date.now();this._performanceStartTime=bc.now(),this._performanceOffset=Zs-(this._performanceStartTime+Ol()),this._startTimeProvided=null!=_r,this.startTime=this._getTime(_r??Zs),this.resource=We.resource,this.instrumentationLibrary=We.instrumentationLibrary,this._spanLimits=We.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=Uo&&this.setAttributes(Uo),this._spanProcessor=We.getActiveSpanProcessor(),this._spanProcessor.onStart(this,ot)}return ve.prototype.spanContext=function(){return this._spanContext},ve.prototype.setAttribute=function(We,ot){return null==ot||this._isSpanEnded()?this:0===We.length?(Z.warn("Invalid attribute key: "+We),this):md(ot)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,We)?(this._droppedAttributesCount++,this):(this.attributes[We]=this._truncateToSize(ot),this):(Z.warn("Invalid attribute value set for key: "+We),this)},ve.prototype.setAttributes=function(We){var ot,at;try{for(var Rt=function(ve){var We="function"==typeof Symbol&&Symbol.iterator,ot=We&&ve[We],at=0;if(ot)return ot.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&at>=ve.length&&(ve=void 0),{value:ve&&ve[at++],done:!ve}}};throw new TypeError(We?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(We)),sn=Rt.next();!sn.done;sn=Rt.next()){var ui=NC(sn.value,2);this.setAttribute(ui[0],ui[1])}}catch(Rr){ot={error:Rr}}finally{try{sn&&!sn.done&&(at=Rt.return)&&at.call(Rt)}finally{if(ot)throw ot.error}}return this},ve.prototype.addEvent=function(We,ot,at){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return Z.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&Z.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ad(ot)&&(ad(at)||(at=ot),ot=void 0);var Rt=nu(ot);return this.events.push({name:We,attributes:Rt,time:this._getTime(at),droppedAttributesCount:0}),this},ve.prototype.setStatus=function(We){return this._isSpanEnded()||(this.status=We),this},ve.prototype.updateName=function(We){return this._isSpanEnded()||(this.name=We),this},ve.prototype.end=function(We){this._isSpanEnded()?Z.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(We),this._duration=function Fu(ve,We){var ot=We[0]-ve[0],at=We[1]-ve[1];return at<0&&(ot-=1,at+=vh),[ot,at]}(this.startTime,this.endTime),this._duration[0]<0&&(Z.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Z.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},ve.prototype._getTime=function(We){if("number"==typeof We&&We<bc.now())return function sd(ve){return lc(Lc(Ol()),Lc("number"==typeof ve?ve:bc.now()))}(We+this._performanceOffset);if("number"==typeof We)return Lc(We);if(We instanceof Date)return Lc(We.getTime());if(sl(We))return We;if(this._startTimeProvided)return Lc(Date.now());var ot=bc.now()-this._performanceStartTime;return lc(this.startTime,Lc(ot))},ve.prototype.isRecording=function(){return!1===this._ended},ve.prototype.recordException=function(We,ot){var at={};"string"==typeof We?at[Yt.EXCEPTION_MESSAGE]=We:We&&(We.code?at[Yt.EXCEPTION_TYPE]=We.code.toString():We.name&&(at[Yt.EXCEPTION_TYPE]=We.name),We.message&&(at[Yt.EXCEPTION_MESSAGE]=We.message),We.stack&&(at[Yt.EXCEPTION_STACKTRACE]=We.stack)),at[Yt.EXCEPTION_TYPE]||at[Yt.EXCEPTION_MESSAGE]?this.addEvent("exception",at,ot):Z.warn("Failed to record an exception "+We)},Object.defineProperty(ve.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),ve.prototype._isSpanEnded=function(){return this._ended&&Z.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},ve.prototype._truncateToLimitUtil=function(We,ot){return We.length<=ot?We:We.substr(0,ot)},ve.prototype._truncateToSize=function(We){var ot=this,at=this._attributeValueLengthLimit;return at<=0?(Z.warn("Attribute value limit must be positive, got "+at),We):"string"==typeof We?this._truncateToLimitUtil(We,at):Array.isArray(We)?We.map(function(Rt){return"string"==typeof Rt?ot._truncateToLimitUtil(Rt,at):Rt}):We},ve}(),Of=function(ve){return ve[ve.NOT_RECORD=0]="NOT_RECORD",ve[ve.RECORD=1]="RECORD",ve[ve.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",ve}(Of||{}),l_=function(){function ve(){}return ve.prototype.shouldSample=function(){return{decision:Of.NOT_RECORD}},ve.prototype.toString=function(){return"AlwaysOffSampler"},ve}(),Ef=function(){function ve(){}return ve.prototype.shouldSample=function(){return{decision:Of.RECORD_AND_SAMPLED}},ve.prototype.toString=function(){return"AlwaysOnSampler"},ve}(),BC=function FC(){return function(ve){Z.error(function yM(ve){return"string"==typeof ve?ve:JSON.stringify(function UC(ve){for(var We={},ot=ve;null!==ot;)Object.getOwnPropertyNames(ot).forEach(function(at){if(!We[at]){var Rt=ot[at];Rt&&(We[at]=String(Rt))}}),ot=Object.getPrototypeOf(ot);return We}(ve))}(ve))}}();function c_(ve){try{BC(ve)}catch{}}var F_=function(){function ve(We){var ot,at,Rt,sn;this._root=We.root,this._root||(c_(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ef),this._remoteParentSampled=null!==(ot=We.remoteParentSampled)&&void 0!==ot?ot:new Ef,this._remoteParentNotSampled=null!==(at=We.remoteParentNotSampled)&&void 0!==at?at:new l_,this._localParentSampled=null!==(Rt=We.localParentSampled)&&void 0!==Rt?Rt:new Ef,this._localParentNotSampled=null!==(sn=We.localParentNotSampled)&&void 0!==sn?sn:new l_}return ve.prototype.shouldSample=function(We,ot,at,Rt,sn,ui){var wi=Ut.getSpanContext(We);return wi&&dt(wi)?wi.isRemote?wi.traceFlags&qt.SAMPLED?this._remoteParentSampled.shouldSample(We,ot,at,Rt,sn,ui):this._remoteParentNotSampled.shouldSample(We,ot,at,Rt,sn,ui):wi.traceFlags&qt.SAMPLED?this._localParentSampled.shouldSample(We,ot,at,Rt,sn,ui):this._localParentNotSampled.shouldSample(We,ot,at,Rt,sn,ui):this._root.shouldSample(We,ot,at,Rt,sn,ui)},ve.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},ve}(),bM=function(){function ve(We){void 0===We&&(We=0),this._ratio=We,this._ratio=this._normalize(We),this._upperBound=Math.floor(4294967295*this._ratio)}return ve.prototype.shouldSample=function(We,ot){return{decision:Cn(ot)&&this._accumulate(ot)<this._upperBound?Of.RECORD_AND_SAMPLED:Of.NOT_RECORD}},ve.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},ve.prototype._normalize=function(We){return"number"!=typeof We||isNaN(We)?0:We>=1?1:We<=0?0:We},ve.prototype._accumulate=function(We){for(var ot=0,at=0;at<We.length/8;at++){var Rt=8*at;ot=(ot^parseInt(We.slice(Rt,Rt+8),16))>>>0}return ot},ve}(),Fy=or(),PM=Rn.AlwaysOn,xf=1;function Tv(){return{sampler:U_(Fy),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:or().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:or().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:or().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:or().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:or().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:or().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:or().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:or().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function U_(ve){switch(void 0===ve&&(ve=or()),ve.OTEL_TRACES_SAMPLER){case Rn.AlwaysOn:return new Ef;case Rn.AlwaysOff:return new l_;case Rn.ParentBasedAlwaysOn:return new F_({root:new Ef});case Rn.ParentBasedAlwaysOff:return new F_({root:new l_});case Rn.TraceIdRatio:return new bM(Iv(ve));case Rn.ParentBasedTraceIdRatio:return new F_({root:new bM(Iv(ve))});default:return Z.error('OTEL_TRACES_SAMPLER value "'+ve.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+PM+'".'),new Ef}}function Iv(ve){if(void 0===ve.OTEL_TRACES_SAMPLER_ARG||""===ve.OTEL_TRACES_SAMPLER_ARG)return Z.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+xf+"."),xf;var We=Number(ve.OTEL_TRACES_SAMPLER_ARG);return isNaN(We)?(Z.error("OTEL_TRACES_SAMPLER_ARG="+ve.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+xf+"."),xf):We<0||We>1?(Z.error("OTEL_TRACES_SAMPLER_ARG="+ve.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+xf+"."),xf):We}var Uy=function(){return function ve(){this.generateTraceId=EM(16),this.generateSpanId=EM(8)}}(),Av=Array(32);function EM(ve){return function(){for(var ot=0;ot<2*ve;ot++)Av[ot]=Math.floor(16*Math.random())+48,Av[ot]>=58&&(Av[ot]+=39);return String.fromCharCode.apply(null,Av.slice(0,2*ve))}}var By=function(){function ve(We,ot,at){this._tracerProvider=at;var Rt=function GC(ve){var We={sampler:U_()},ot=Tv(),at=Object.assign({},ot,We,ve);return at.generalLimits=Object.assign({},ot.generalLimits,ve.generalLimits||{}),at.spanLimits=Object.assign({},ot.spanLimits,ve.spanLimits||{}),at}(ot);this._sampler=Rt.sampler,this._generalLimits=Rt.generalLimits,this._spanLimits=Rt.spanLimits,this._idGenerator=ot.idGenerator||new Uy,this.resource=at.resource,this.instrumentationLibrary=We}return ve.prototype.startSpan=function(We,ot,at){var Rt,sn,ui;void 0===ot&&(ot={}),void 0===at&&(at=jn.active()),ot.root&&(at=Ut.deleteSpan(at));var wi=Ut.getSpan(at);if(Ls(at))return Z.debug("Instrumentation suppressed, returning Noop Span"),Ut.wrapSpanContext(Ze);var Zs,Fa,pd,Rr=wi?.spanContext(),Uo=this._idGenerator.generateSpanId();Rr&&Ut.isSpanContextValid(Rr)?(Zs=Rr.traceId,Fa=Rr.traceState,pd=Rr.spanId):Zs=this._idGenerator.generateTraceId();var Tc=null!==(Rt=ot.kind)&&void 0!==Rt?Rt:tg.INTERNAL,Lg=(null!==(sn=ot.links)&&void 0!==sn?sn:[]).map(function(zv){return{context:zv.context,attributes:nu(zv.attributes)}}),vm=nu(ot.attributes),Df=this._sampler.shouldSample(at,Zs,We,Tc,vm,Lg);Fa=null!==(ui=Df.traceState)&&void 0!==ui?ui:Fa;var Rf={traceId:Zs,spanId:Uo,traceFlags:Df.decision===ku.RECORD_AND_SAMPLED?qt.SAMPLED:qt.NONE,traceState:Fa};if(Df.decision===ku.NOT_RECORD)return Z.debug("Recording is off, propagating context in a non-recording span"),Ut.wrapSpanContext(Rf);var $v=nu(Object.assign(vm,Df.attributes));return new xv(this,at,We,Rf,Tc,pd,Lg,ot.startTime,void 0,$v)},ve.prototype.startActiveSpan=function(We,ot,at,Rt){var sn,ui,wi;if(!(arguments.length<2)){2===arguments.length?wi=ot:3===arguments.length?(sn=ot,wi=at):(sn=ot,ui=at,wi=Rt);var _r=ui??jn.active(),Rr=this.startSpan(We,sn,_r),Uo=Ut.setSpan(_r,Rr);return jn.with(Uo,wi,void 0,Rr)}},ve.prototype.getGeneralLimits=function(){return this._generalLimits},ve.prototype.getSpanLimits=function(){return this._spanLimits},ve.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},ve}(),Dv=function(ve){var We="function"==typeof Symbol&&Symbol.iterator,ot=We&&ve[We],at=0;if(ot)return ot.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&at>=ve.length&&(ve=void 0),{value:ve&&ve[at++],done:!ve}}};throw new TypeError(We?"Object is not iterable.":"Symbol.iterator is not defined.")},Gy=function(){function ve(We){this._spanProcessors=We}return ve.prototype.forceFlush=function(){var We,ot,at=[];try{for(var Rt=Dv(this._spanProcessors),sn=Rt.next();!sn.done;sn=Rt.next())at.push(sn.value.forceFlush())}catch(wi){We={error:wi}}finally{try{sn&&!sn.done&&(ot=Rt.return)&&ot.call(Rt)}finally{if(We)throw We.error}}return new Promise(function(wi){Promise.all(at).then(function(){wi()}).catch(function(_r){c_(_r||new Error("MultiSpanProcessor: forceFlush failed")),wi()})})},ve.prototype.onStart=function(We,ot){var at,Rt;try{for(var sn=Dv(this._spanProcessors),ui=sn.next();!ui.done;ui=sn.next())ui.value.onStart(We,ot)}catch(_r){at={error:_r}}finally{try{ui&&!ui.done&&(Rt=sn.return)&&Rt.call(sn)}finally{if(at)throw at.error}}},ve.prototype.onEnd=function(We){var ot,at;try{for(var Rt=Dv(this._spanProcessors),sn=Rt.next();!sn.done;sn=Rt.next())sn.value.onEnd(We)}catch(wi){ot={error:wi}}finally{try{sn&&!sn.done&&(at=Rt.return)&&at.call(Rt)}finally{if(ot)throw ot.error}}},ve.prototype.shutdown=function(){var We,ot,at=[];try{for(var Rt=Dv(this._spanProcessors),sn=Rt.next();!sn.done;sn=Rt.next())at.push(sn.value.shutdown())}catch(wi){We={error:wi}}finally{try{sn&&!sn.done&&(ot=Rt.return)&&ot.call(Rt)}finally{if(We)throw We.error}}return new Promise(function(wi,_r){Promise.all(at).then(function(){wi()},_r)})},ve}(),Vy=function(){function ve(){}return ve.prototype.onStart=function(We,ot){},ve.prototype.onEnd=function(We){},ve.prototype.shutdown=function(){return Promise.resolve()},ve.prototype.forceFlush=function(){return Promise.resolve()},ve}(),Hy=function(){function ve(){var We=this;this._promise=new Promise(function(ot,at){We._resolve=ot,We._reject=at})}return Object.defineProperty(ve.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),ve.prototype.resolve=function(We){this._resolve(We)},ve.prototype.reject=function(We){this._reject(We)},ve}(),xM=function(){function ve(We,ot){this._callback=We,this._that=ot,this._isCalled=!1,this._deferred=new Hy}return Object.defineProperty(ve.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),ve.prototype.call=function(){for(var We,ot=this,at=[],Rt=0;Rt<arguments.length;Rt++)at[Rt]=arguments[Rt];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((We=this._callback).call.apply(We,function(ve,We,ot){if(ot||2===arguments.length)for(var sn,at=0,Rt=We.length;at<Rt;at++)(sn||!(at in We))&&(sn||(sn=Array.prototype.slice.call(We,0,at)),sn[at]=We[at]);return ve.concat(sn||Array.prototype.slice.call(We))}([this._that],function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(at),!1))).then(function(sn){return ot._deferred.resolve(sn)},function(sn){return ot._deferred.reject(sn)})}catch(sn){this._deferred.reject(sn)}}return this._deferred.promise},ve}(),d_=function(ve){return ve[ve.SUCCESS=0]="SUCCESS",ve[ve.FAILED=1]="FAILED",ve}(d_||{}),jy=function(){function ve(We,ot){this._exporter=We,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var at=or();this._maxExportBatchSize="number"==typeof ot?.maxExportBatchSize?ot.maxExportBatchSize:at.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof ot?.maxQueueSize?ot.maxQueueSize:at.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof ot?.scheduledDelayMillis?ot.scheduledDelayMillis:at.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof ot?.exportTimeoutMillis?ot.exportTimeoutMillis:at.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new xM(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Z.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return ve.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},ve.prototype.onStart=function(We,ot){},ve.prototype.onEnd=function(We){this._shutdownOnce.isCalled||We.spanContext().traceFlags&qt.SAMPLED&&this._addToBuffer(We)},ve.prototype.shutdown=function(){return this._shutdownOnce.call()},ve.prototype._shutdown=function(){var We=this;return Promise.resolve().then(function(){return We.onShutdown()}).then(function(){return We._flushAll()}).then(function(){return We._exporter.shutdown()})},ve.prototype._addToBuffer=function(We){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&Z.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(Z.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(We),this._maybeStartTimer()},ve.prototype._flushAll=function(){var We=this;return new Promise(function(ot,at){for(var Rt=[],ui=0,wi=Math.ceil(We._finishedSpans.length/We._maxExportBatchSize);ui<wi;ui++)Rt.push(We._flushOneBatch());Promise.all(Rt).then(function(){ot()}).catch(at)})},ve.prototype._flushOneBatch=function(){var We=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(function(ot,at){var Rt=setTimeout(function(){at(new Error("Timeout"))},We._exportTimeoutMillis);jn.with(function lo(ve){return ve.setValue(qr,!0)}(jn.active()),function(){var sn;We._finishedSpans.length<=We._maxExportBatchSize?(sn=We._finishedSpans,We._finishedSpans=[]):sn=We._finishedSpans.splice(0,We._maxExportBatchSize);for(var ui=function(){return We._exporter.export(sn,function(Zs){var Fa;clearTimeout(Rt),Zs.code===d_.SUCCESS?ot():at(null!==(Fa=Zs.error)&&void 0!==Fa?Fa:new Error("BatchSpanProcessor: span export failed"))})},wi=null,_r=0,Rr=sn.length;_r<Rr;_r++){var Uo=sn[_r];Uo.resource.asyncAttributesPending&&Uo.resource.waitForAsyncAttributes&&(wi??(wi=[]),wi.push(Uo.resource.waitForAsyncAttributes()))}null===wi?ui():Promise.all(wi).then(ui,function(Zs){c_(Zs),at(Zs)})})})},ve.prototype._maybeStartTimer=function(){var We=this;if(!this._isExporting){var ot=function(){We._isExporting=!0,We._flushOneBatch().finally(function(){We._isExporting=!1,We._finishedSpans.length>0&&(We._clearTimer(),We._maybeStartTimer())}).catch(function(at){We._isExporting=!1,c_(at)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return ot();void 0===this._timer&&(this._timer=setTimeout(function(){return ot()},this._scheduledDelayMillis))}},ve.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},ve}(),Wy=function(){var ve=function(We,ot){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Rt){at.__proto__=Rt}||function(at,Rt){for(var sn in Rt)Object.prototype.hasOwnProperty.call(Rt,sn)&&(at[sn]=Rt[sn])})(We,ot)};return function(We,ot){if("function"!=typeof ot&&null!==ot)throw new TypeError("Class extends value "+String(ot)+" is not a constructor or null");function at(){this.constructor=We}ve(We,ot),We.prototype=null===ot?Object.create(ot):(at.prototype=ot.prototype,new at)}}(),wM=function(ve){function We(ot,at){var Rt=ve.call(this,ot,at)||this;return Rt.onInit(at),Rt}return Wy(We,ve),We.prototype.onInit=function(ot){var at=this;!0!==ot?.disableAutoFlushOnDocumentHide&&typeof document<"u"&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&at.forceFlush()},this._pageHideListener=function(){at.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},We.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},We}(jy),u_=function(ve){return ve[ve.resolved=0]="resolved",ve[ve.timeout=1]="timeout",ve[ve.error=2]="error",ve[ve.unresolved=3]="unresolved",ve}(u_||{}),$y=function(){function ve(We){var ot;void 0===We&&(We={}),this._registeredSpanProcessors=[],this._tracers=new Map;var at=function he(){for(var ve=[],We=0;We<arguments.length;We++)ve[We]=arguments[We];for(var ot=ve.shift(),at=new WeakMap;ve.length>0;)ot=Pe(ot,ve.shift(),0,at);return ot}({},Tv(),function VC(ve){var We,ot,at,Rt,sn,ui,wi,_r,Rr,Uo,Zs,Fa,pd=Object.assign({},ve.spanLimits),Tc=function yr(){return oi(Ci)}();return pd.attributeCountLimit=null!==(ui=null!==(sn=null!==(Rt=null!==(ot=null===(We=ve.spanLimits)||void 0===We?void 0:We.attributeCountLimit)&&void 0!==ot?ot:null===(at=ve.generalLimits)||void 0===at?void 0:at.attributeCountLimit)&&void 0!==Rt?Rt:Tc.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==sn?sn:Tc.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==ui?ui:128,pd.attributeValueLengthLimit=null!==(Fa=null!==(Zs=null!==(Uo=null!==(_r=null===(wi=ve.spanLimits)||void 0===wi?void 0:wi.attributeValueLengthLimit)&&void 0!==_r?_r:null===(Rr=ve.generalLimits)||void 0===Rr?void 0:Rr.attributeValueLengthLimit)&&void 0!==Uo?Uo:Tc.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==Zs?Zs:Tc.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==Fa?Fa:ro,Object.assign({},ve,{spanLimits:pd})}(We));this.resource=null!==(ot=at.resource)&&void 0!==ot?ot:tu.empty(),this.resource=tu.default().merge(this.resource),this._config=Object.assign({},at,{resource:this.resource});var Rt=this._buildExporterFromEnv();if(void 0!==Rt){var sn=new wM(Rt);this.activeSpanProcessor=sn}else this.activeSpanProcessor=new Vy}return ve.prototype.getTracer=function(We,ot,at){var Rt=We+"@"+(ot||"")+":"+(at?.schemaUrl||"");return this._tracers.has(Rt)||this._tracers.set(Rt,new By({name:We,version:ot,schemaUrl:at?.schemaUrl},this._config,this)),this._tracers.get(Rt)},ve.prototype.addSpanProcessor=function(We){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(ot){return Z.error("Error while trying to shutdown current span processor",ot)}),this._registeredSpanProcessors.push(We),this.activeSpanProcessor=new Gy(this._registeredSpanProcessors)},ve.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},ve.prototype.register=function(We){void 0===We&&(We={}),Ut.setGlobalTracerProvider(this),void 0===We.propagator&&(We.propagator=this._buildPropagatorFromEnv()),We.contextManager&&jn.setGlobalContextManager(We.contextManager),We.propagator&&Zt.setGlobalPropagator(We.propagator)},ve.prototype.forceFlush=function(){var We=this._config.forceFlushTimeoutMillis,ot=this._registeredSpanProcessors.map(function(at){return new Promise(function(Rt){var sn,ui=setTimeout(function(){Rt(new Error("Span processor did not completed within timeout period of "+We+" ms")),sn=u_.timeout},We);at.forceFlush().then(function(){clearTimeout(ui),sn!==u_.timeout&&Rt(sn=u_.resolved)}).catch(function(wi){clearTimeout(ui),sn=u_.error,Rt(wi)})})});return new Promise(function(at,Rt){Promise.all(ot).then(function(sn){var ui=sn.filter(function(wi){return wi!==u_.resolved});ui.length>0?Rt(ui):at()}).catch(function(sn){return Rt([sn])})})},ve.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},ve.prototype._getPropagator=function(We){var ot;return null===(ot=this.constructor._registeredPropagators.get(We))||void 0===ot?void 0:ot()},ve.prototype._getSpanExporter=function(We){var ot;return null===(ot=this.constructor._registeredExporters.get(We))||void 0===ot?void 0:ot()},ve.prototype._buildPropagatorFromEnv=function(){var We=this,ot=Array.from(new Set(or().OTEL_PROPAGATORS)),Rt=ot.map(function(sn){var ui=We._getPropagator(sn);return ui||Z.warn('Propagator "'+sn+'" requested through environment variable is unavailable.'),ui}).reduce(function(sn,ui){return ui&&sn.push(ui),sn},[]);if(0!==Rt.length)return 1===ot.length?Rt[0]:new ko({propagators:Rt})},ve.prototype._buildExporterFromEnv=function(){var We=or().OTEL_TRACES_EXPORTER;if("none"!==We&&""!==We){var ot=this._getSpanExporter(We);return ot||Z.error('Exporter "'+We+'" requested through environment variable is unavailable.'),ot}},ve._registeredPropagators=new Map([["tracecontext",function(){return new nr}],["baggage",function(){return new Ys}]]),ve._registeredExporters=new Map,ve}(),Hf=function(){function ve(){this._enabled=!1,this._currentContext=pe}return ve.prototype._bindFunction=function(We,ot){void 0===We&&(We=pe);var at=this,Rt=function(){for(var sn=this,ui=[],wi=0;wi<arguments.length;wi++)ui[wi]=arguments[wi];return at.with(We,function(){return ot.apply(sn,ui)})};return Object.defineProperty(Rt,"length",{enumerable:!1,configurable:!0,writable:!1,value:ot.length}),Rt},ve.prototype.active=function(){return this._currentContext},ve.prototype.bind=function(We,ot){return void 0===We&&(We=this.active()),"function"==typeof ot?this._bindFunction(We,ot):ot},ve.prototype.disable=function(){return this._currentContext=pe,this._enabled=!1,this},ve.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=pe),this},ve.prototype.with=function(We,ot,at){for(var Rt=[],sn=3;sn<arguments.length;sn++)Rt[sn-3]=arguments[sn];var ui=this._currentContext;this._currentContext=We||pe;try{return ot.call.apply(ot,function(ve,We,ot){if(ot||2===arguments.length)for(var sn,at=0,Rt=We.length;at<Rt;at++)(sn||!(at in We))&&(sn||(sn=Array.prototype.slice.call(We,0,at)),sn[at]=We[at]);return ve.concat(sn||Array.prototype.slice.call(We))}([at],function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(Rt),!1))}finally{this._currentContext=ui}},ve}(),h_=function(){var ve=function(We,ot){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Rt){at.__proto__=Rt}||function(at,Rt){for(var sn in Rt)Object.prototype.hasOwnProperty.call(Rt,sn)&&(at[sn]=Rt[sn])})(We,ot)};return function(We,ot){if("function"!=typeof ot&&null!==ot)throw new TypeError("Class extends value "+String(ot)+" is not a constructor or null");function at(){this.constructor=We}ve(We,ot),We.prototype=null===ot?Object.create(ot):(at.prototype=ot.prototype,new at)}}(),IM=function(ve){function We(ot){void 0===ot&&(ot={});var at=ve.call(this,ot)||this;if(ot.contextManager)throw"contextManager should be defined in register method not in constructor";if(ot.propagator)throw"propagator should be defined in register method not in constructor";return at}return h_(We,ve),We.prototype.register=function(ot){void 0===ot&&(ot={}),void 0===ot.contextManager&&(ot.contextManager=new Hf),ot.contextManager&&ot.contextManager.enable(),ve.prototype.register.call(this,ot)},We}($y),$C="ot-tracer-traceid",B_="ot-tracer-spanid",Rv="ot-tracer-sampled",YC="ot-baggage-",AM=[$C,B_,Rv],DM="0".repeat(16);function G_(ve,We,ot){var Rt=We.get(ve,ot);return Array.isArray(Rt)&&(Rt=Rt[0]),Rt||""}var V_=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,RM=/[^\t\x20-\x7e\x80-\xff]/,zy=function(){function ve(){}return ve.prototype.inject=function(We,ot,at){var Rt,sn=null===(Rt=Ut.getSpan(We))||void 0===Rt?void 0:Rt.spanContext();if(sn&&dt(sn)){at.set(ot,$C,sn.traceId.substr(16)),at.set(ot,B_,sn.spanId),at.set(ot,Rv,(sn.traceFlags&qt.SAMPLED)===qt.SAMPLED?"true":"false");var ui=Zt.getBaggage(We);ui&&ui.getAllEntries().forEach(function(wi){var _r=wi[0],Rr=wi[1];!function zC(ve){return V_.test(ve)}(_r)||!function KC(ve){return!RM.test(ve)}(Rr.value)||at.set(ot,""+YC+_r,Rr.value)})}},ve.prototype.extract=function(We,ot,at){var Rt=G_(ot,at,$C);16===Rt.length&&(Rt=""+DM+Rt);var sn=G_(ot,at,B_),wi="true"===G_(ot,at,Rv)?qt.SAMPLED:qt.NONE;if(Cn(Rt)&&fn(sn)){We=Ut.setSpan(We,Ut.wrapSpanContext({traceId:Rt,spanId:sn,isRemote:!0,traceFlags:wi}));var _r=Zt.getBaggage(We)||Zt.createBaggage();at.keys(ot).forEach(function(Rr){if(Rr.startsWith(YC)){var Uo=G_(ot,at,Rr);_r=_r.setEntry(Rr.substr(11),{value:Uo})}}),_r.getAllEntries().length>0&&(We=Zt.setBaggage(We,_r))}return We},ve.prototype.fields=function(){return AM.slice()},ve}(),LM="OT_ZONE_CONTEXT",kM=function(){function ve(){this._enabled=!1,this._zoneCounter=0}return ve.prototype._activeContextFromZone=function(We){return We&&We.get(LM)||pe},ve.prototype._bindFunction=function(We,ot){var at=this,Rt=function(){for(var sn=this,ui=[],wi=0;wi<arguments.length;wi++)ui[wi]=arguments[wi];return at.with(We,function(){return ot.apply(sn,ui)})};return Object.defineProperty(Rt,"length",{enumerable:!1,configurable:!0,writable:!1,value:ot.length}),Rt},ve.prototype._bindListener=function(We,ot){var at=ot;return void 0!==at.__ot_listeners||(at.__ot_listeners={},"function"==typeof at.addEventListener&&(at.addEventListener=this._patchAddEventListener(at,at.addEventListener,We)),"function"==typeof at.removeEventListener&&(at.removeEventListener=this._patchRemoveEventListener(at,at.removeEventListener))),ot},ve.prototype._createZoneName=function(){this._zoneCounter++;var We=Math.random();return this._zoneCounter+"-"+We},ve.prototype._createZone=function(We,ot){var at;return Zone.current.fork({name:We,properties:(at={},at[LM]=ot,at)})},ve.prototype._getActiveZone=function(){return Zone.current},ve.prototype._patchAddEventListener=function(We,ot,at){var Rt=this;return function(sn,ui,wi){void 0===We.__ot_listeners&&(We.__ot_listeners={});var _r=We.__ot_listeners[sn];void 0===_r&&(We.__ot_listeners[sn]=_r=new WeakMap);var Rr=Rt.bind(at,ui);return _r.set(ui,Rr),ot.call(this,sn,Rr,wi)}},ve.prototype._patchRemoveEventListener=function(We,ot){return function(at,Rt){if(void 0===We.__ot_listeners||void 0===We.__ot_listeners[at])return ot.call(this,at,Rt);var sn=We.__ot_listeners[at],ui=sn.get(Rt);return sn.delete(Rt),ot.call(this,at,ui||Rt)}},ve.prototype.active=function(){if(!this._enabled)return pe;var We=this._getActiveZone();return this._activeContextFromZone(We)||pe},ve.prototype.bind=function(We,ot){return void 0===We&&(We=this.active()),"function"==typeof ot?this._bindFunction(We,ot):(function XC(ve){return void 0===ve&&(ve={}),"function"==typeof ve.addEventListener&&"function"==typeof ve.removeEventListener}(ot)&&this._bindListener(We,ot),ot)},ve.prototype.disable=function(){return this._enabled=!1,this},ve.prototype.enable=function(){return this._enabled=!0,this},ve.prototype.with=function(We,ot,at){for(var Rt=[],sn=3;sn<arguments.length;sn++)Rt[sn-3]=arguments[sn];var ui=this._createZoneName();return this._createZone(ui,We).run(ot,at,Rt)},ve}();function kv(ve,We){return Z.warn("Timeout must be greater than 0",ve),We}var Nv=function(ve){return ve[ve.SPANS=0]="SPANS",ve[ve.METRICS=1]="METRICS",ve[ve.LOGS=2]="LOGS",ve}(Nv||{}),qC=function(){var ve=function(We,ot){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Rt){at.__proto__=Rt}||function(at,Rt){for(var sn in Rt)Object.prototype.hasOwnProperty.call(Rt,sn)&&(at[sn]=Rt[sn])})(We,ot)};return function(We,ot){if("function"!=typeof ot&&null!==ot)throw new TypeError("Class extends value "+String(ot)+" is not a constructor or null");function at(){this.constructor=We}ve(We,ot),We.prototype=null===ot?Object.create(ot):(at.prototype=ot.prototype,new at)}}(),wf=function(ve){function We(ot,at,Rt){var sn=ve.call(this,ot)||this;return sn.name="OTLPExporterError",sn.data=Rt,sn.code=at,sn}return qC(We,ve),We}(Error),Ep=function(){return Ep=Object.assign||function(ve){for(var We,ot=1,at=arguments.length;ot<at;ot++)for(var Rt in We=arguments[ot])Object.prototype.hasOwnProperty.call(We,Rt)&&(ve[Rt]=We[Rt]);return ve},Ep.apply(this,arguments)};function YM(ve,We,ot,at,Rt,sn){var ui,wi,_r=!1,Rr=setTimeout(function(){if(clearTimeout(ui),_r=!0,wi.readyState===XMLHttpRequest.DONE){var Zs=new wf("Request Timeout");sn(Zs)}else wi.abort()},at),Uo=function(Zs,Fa){void 0===Zs&&(Zs=5),void 0===Fa&&(Fa=1e3),(wi=new XMLHttpRequest).open("POST",We),Object.entries(Ep(Ep({},{Accept:"application/json","Content-Type":"application/json"}),ot)).forEach(function(Tc){var Lg=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(Tc,2);wi.setRequestHeader(Lg[0],Lg[1])}),wi.send(ve),wi.onreadystatechange=function(){if(wi.readyState===XMLHttpRequest.DONE&&!1===_r)if(wi.status>=200&&wi.status<=299)Z.debug("xhr success",ve),Rt(),clearTimeout(Rr),clearTimeout(ui);else if(wi.status&&function JC(ve){return[429,502,503,504].includes(ve)}(wi.status)&&Zs>0){var Tc;Fa*=1.5,Tc=wi.getResponseHeader("Retry-After")?function WM(ve){if(null==ve)return-1;var We=Number.parseInt(ve,10);if(Number.isInteger(We))return We>0?1e3*We:-1;var ot=new Date(ve).getTime()-Date.now();return ot>=0?ot:0}(wi.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-Fa)+Fa),ui=setTimeout(function(){Uo(Zs-1,Fa)},Tc)}else{var Lg=new wf("Failed to export with XHR (status: "+wi.status+")",wi.status);sn(Lg),clearTimeout(Rr),clearTimeout(ui)}},wi.onabort=function(){if(_r){var Tc=new wf("Request Timeout");sn(Tc)}clearTimeout(Rr),clearTimeout(ui)},wi.onerror=function(){if(_r){var Tc=new wf("Request Timeout");sn(Tc)}clearTimeout(Rr),clearTimeout(ui)}};Uo()}var Fv=function(){function ve(We){void 0===We&&(We={}),this._sendingPromises=[],this.url=this.getDefaultUrl(We),"string"==typeof We.hostname&&(this.hostname=We.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new xM(this._shutdown,this),this._concurrencyLimit="number"==typeof We.concurrencyLimit?We.concurrencyLimit:30,this.timeoutMillis=function HM(ve){return"number"==typeof ve?ve<=0?kv(ve,1e4):ve:function jM(){var ve,We=Number(null!==(ve=or().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)&&void 0!==ve?ve:or().OTEL_EXPORTER_OTLP_TIMEOUT);return We<=0?kv(We,1e4):We}()}(We.timeoutMillis),this.onInit(We)}return ve.prototype.export=function(We,ot){this._shutdownOnce.isCalled?ot({code:d_.FAILED,error:new Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?ot({code:d_.FAILED,error:new Error("Concurrent export limit reached")}):this._export(We).then(function(){ot({code:d_.SUCCESS})}).catch(function(at){ot({code:d_.FAILED,error:at})})},ve.prototype._export=function(We){var ot=this;return new Promise(function(at,Rt){try{Z.debug("items to be sent",We),ot.send(We,at,Rt)}catch(sn){Rt(sn)}})},ve.prototype.shutdown=function(){return this._shutdownOnce.call()},ve.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},ve.prototype._shutdown=function(){return Z.debug("shutdown started"),this.onShutdown(),this.forceFlush()},ve}(),Uv=function(){var ve=function(We,ot){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Rt){at.__proto__=Rt}||function(at,Rt){for(var sn in Rt)Object.prototype.hasOwnProperty.call(Rt,sn)&&(at[sn]=Rt[sn])})(We,ot)};return function(We,ot){if("function"!=typeof ot&&null!==ot)throw new TypeError("Class extends value "+String(ot)+" is not a constructor or null");function at(){this.constructor=We}ve(We,ot),We.prototype=null===ot?Object.create(ot):(at.prototype=ot.prototype,new at)}}(),zM=function(ve){function We(ot){void 0===ot&&(ot={});var at=ve.call(this,ot)||this;return at._useXHR=!1,at._useXHR=!!ot.headers||"function"!=typeof navigator.sendBeacon,at._headers=at._useXHR?Object.assign({},function BM(ve){void 0===ve&&(ve={});var We={};return Object.entries(ve).forEach(function(ot){var at=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn}(ot,2),Rt=at[0],sn=at[1];typeof sn<"u"?We[Rt]=String(sn):Z.warn('Header "'+Rt+'" has invalid value ('+sn+") and will be ignored")}),We}(ot.headers),ha(or().OTEL_EXPORTER_OTLP_HEADERS)):{},at}return Uv(We,ve),We.prototype.onInit=function(){},We.prototype.onShutdown=function(){},We.prototype.send=function(ot,at,Rt){var sn=this;if(this._shutdownOnce.isCalled)Z.debug("Shutdown already started. Cannot send objects");else{var ui=this.convert(ot),wi=JSON.stringify(ui),_r=new Promise(function(Uo,Zs){sn._useXHR?YM(wi,sn.url,sn._headers,sn.timeoutMillis,Uo,Zs):function $M(ve,We,ot,at,Rt){navigator.sendBeacon(We,new Blob([ve],ot))?(Z.debug("sendBeacon - can send",ve),at()):Rt(new wf("sendBeacon - cannot send "+ve))}(wi,sn.url,{type:"application/json"},Uo,Zs)}).then(at,Rt);this._sendingPromises.push(_r);var Rr=function(){var Uo=sn._sendingPromises.indexOf(_r);sn._sendingPromises.splice(Uo,1)};_r.then(Rr,Rr)}},We}(Fv),j_=d(89304),KM=function(){var ve=function(We,ot){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Rt){at.__proto__=Rt}||function(at,Rt){for(var sn in Rt)Object.prototype.hasOwnProperty.call(Rt,sn)&&(at[sn]=Rt[sn])})(We,ot)};return function(We,ot){if("function"!=typeof ot&&null!==ot)throw new TypeError("Class extends value "+String(ot)+" is not a constructor or null");function at(){this.constructor=We}ve(We,ot),We.prototype=null===ot?Object.create(ot):(at.prototype=ot.prototype,new at)}}(),Tf=function(){return Tf=Object.assign||function(ve){for(var We,ot=1,at=arguments.length;ot<at;ot++)for(var Rt in We=arguments[ot])Object.prototype.hasOwnProperty.call(We,Rt)&&(ve[Rt]=We[Rt]);return ve},Tf.apply(this,arguments)},Ky=function(ve){function We(ot){return void 0===ot&&(ot={}),ve.call(this,ot)||this}return KM(We,ve),We.prototype.send=function(ot,at,Rt){if(this._shutdownOnce.isCalled)Z.debug("Shutdown already started. Cannot send objects");else{var sn=this.convert(ot),ui=function Bv(ve){return ve===Nv.SPANS?j_.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest:ve===Nv.LOGS?j_.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest:j_.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest}(this.getServiceClientType()),wi=ui.create(sn);if(wi){var _r=ui.encode(wi).finish();_r&&YM(new Blob([_r],{type:"application/x-protobuf"}),this.url,Tf(Tf({},this._headers),{"Content-Type":"application/x-protobuf",Accept:"application/x-protobuf"}),this.timeoutMillis,at,Rt)}else Rt(new wf("No proto"))}},We}(zM),Xy=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn};function XM(ve){return{name:ve.name,version:ve.version}}function Gv(ve){return Object.keys(ve).map(function(We){return If(We,ve[We])})}function If(ve,We){return{key:ve,value:ZM(We)}}function ZM(ve){var We=typeof ve;return"string"===We?{stringValue:ve}:"number"===We?Number.isInteger(ve)?{intValue:ve}:{doubleValue:ve}:"boolean"===We?{boolValue:ve}:ve instanceof Uint8Array?{bytesValue:ve}:Array.isArray(ve)?{arrayValue:{values:ve.map(ZM)}}:"object"===We&&null!=ve?{kvlistValue:{values:Object.entries(ve).map(function(ot){var at=Xy(ot,2);return If(at[0],at[1])})}}:{}}function W_(ve,We){var ot,at=ve.spanContext(),Rt=ve.status;return{traceId:We.encodeSpanContext(at.traceId),spanId:We.encodeSpanContext(at.spanId),parentSpanId:We.encodeOptionalSpanContext(ve.parentSpanId),traceState:null===(ot=at.traceState)||void 0===ot?void 0:ot.serialize(),name:ve.name,kind:null==ve.kind?0:ve.kind+1,startTimeUnixNano:We.encodeHrTime(ve.startTime),endTimeUnixNano:We.encodeHrTime(ve.endTime),attributes:Gv(ve.attributes),droppedAttributesCount:ve.droppedAttributesCount,events:ve.events.map(function(sn){return function JM(ve,We){return{attributes:ve.attributes?Gv(ve.attributes):[],name:ve.name,timeUnixNano:We.encodeHrTime(ve.time),droppedAttributesCount:ve.droppedAttributesCount||0}}(sn,We)}),droppedEventsCount:ve.droppedEventsCount,status:{code:Rt.code,message:Rt.message},links:ve.links.map(function(sn){return function QM(ve,We){var ot;return{attributes:ve.attributes?Gv(ve.attributes):[],spanId:We.encodeSpanContext(ve.context.spanId),traceId:We.encodeSpanContext(ve.context.traceId),traceState:null===(ot=ve.context.traceState)||void 0===ot?void 0:ot.serialize(),droppedAttributesCount:ve.droppedAttributesCount||0}}(sn,We)}),droppedLinksCount:ve.droppedLinksCount}}function $_(ve){return ve>=48&&ve<=57?ve-48:ve>=97&&ve<=102?ve-87:ve-55}function Vv(ve){for(var We=new Uint8Array(ve.length/2),ot=0,at=0;at<ve.length;at+=2){var Rt=$_(ve.charCodeAt(at)),sn=$_(ve.charCodeAt(at+1));We[ot++]=Rt<<4|sn}return We}function Rg(ve){var We=BigInt(1e9);return BigInt(ve[0])*We+BigInt(ve[1])}function pc(ve){return function g_(ve){return{low:Number(BigInt.asUintN(32,ve)),high:Number(BigInt.asUintN(32,ve>>BigInt(32)))}}(Rg(ve))}var Y_=typeof BigInt<"u"?function Af(ve){return Rg(ve).toString()}:function Hg(ve){return ve[0]*vh+ve[1]};function uh(ve){return ve}function jf(ve){if(void 0!==ve)return Vv(ve)}var qM={encodeHrTime:pc,encodeSpanContext:Vv,encodeOptionalSpanContext:jf};function tS(ve){return{attributes:Gv(ve.attributes),droppedAttributesCount:0}}var nS=function(ve){var We="function"==typeof Symbol&&Symbol.iterator,ot=We&&ve[We],at=0;if(ot)return ot.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&at>=ve.length&&(ve=void 0),{value:ve&&ve[at++],done:!ve}}};throw new TypeError(We?"Object is not iterable.":"Symbol.iterator is not defined.")},e0=function(ve,We){var ot="function"==typeof Symbol&&ve[Symbol.iterator];if(!ot)return ve;var Rt,ui,at=ot.call(ve),sn=[];try{for(;(void 0===We||We-- >0)&&!(Rt=at.next()).done;)sn.push(Rt.value)}catch(wi){ui={error:wi}}finally{try{Rt&&!Rt.done&&(ot=at.return)&&ot.call(at)}finally{if(ui)throw ui.error}}return sn};function iS(ve,We){for(var ot=function wc(ve){var We,ot,at=new Map;try{for(var Rt=nS(ve),sn=Rt.next();!sn.done;sn=Rt.next()){var ui=sn.value,wi=at.get(ui.resource);wi||at.set(ui.resource,wi=new Map);var _r=ui.instrumentationLibrary.name+"@"+(ui.instrumentationLibrary.version||"")+":"+(ui.instrumentationLibrary.schemaUrl||""),Rr=wi.get(_r);Rr||wi.set(_r,Rr=[]),Rr.push(ui)}}catch(Uo){We={error:Uo}}finally{try{sn&&!sn.done&&(ot=Rt.return)&&ot.call(Rt)}finally{if(We)throw We.error}}return at}(ve),at=[],Rt=ot.entries(),sn=Rt.next();!sn.done;){for(var ui=e0(sn.value,2),wi=ui[0],Rr=[],Uo=ui[1].values(),Zs=Uo.next();!Zs.done;){var Fa=Zs.value;if(Fa.length>0){var pd=Fa.map(function(Lg){return W_(Lg,We)});Rr.push({scope:XM(Fa[0].instrumentationLibrary),spans:pd,schemaUrl:Fa[0].instrumentationLibrary.schemaUrl})}Zs=Uo.next()}var Tc={resource:tS(wi),scopeSpans:Rr,schemaUrl:void 0};at.push(Tc),sn=Rt.next()}return at}var n0=function(){var ve=function(We,ot){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Rt){at.__proto__=Rt}||function(at,Rt){for(var sn in Rt)Object.prototype.hasOwnProperty.call(Rt,sn)&&(at[sn]=Rt[sn])})(We,ot)};return function(We,ot){if("function"!=typeof ot&&null!==ot)throw new TypeError("Class extends value "+String(ot)+" is not a constructor or null");function at(){this.constructor=We}ve(We,ot),We.prototype=null===ot?Object.create(ot):(at.prototype=ot.prototype,new at)}}(),mc="v1/traces",p_="http://localhost:4318/"+mc,$f=function(ve){function We(ot){void 0===ot&&(ot={});var at=ve.call(this,ot)||this;return at._headers=Object.assign(at._headers,ha(or().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),at}return n0(We,ve),We.prototype.convert=function(ot){return function t0(ve,We){var ot=function Wf(ve){var We,ot;if(void 0===ve)return qM;var at=null===(We=ve.useLongBits)||void 0===We||We,Rt=null!==(ot=ve.useHex)&&void 0!==ot&&ot;return{encodeHrTime:at?pc:Y_,encodeSpanContext:Rt?uh:Vv,encodeOptionalSpanContext:Rt?uh:jf}}(We);return{resourceSpans:iS(ve,ot)}}(ot)},We.prototype.getDefaultUrl=function(ot){return"string"==typeof ot.url?ot.url:or().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?function VM(ve){try{var We=new URL(ve);return""===We.pathname&&(We.pathname=We.pathname+"/"),We.toString()}catch{return Z.warn("Could not parse export URL: '"+ve+"'"),ve}}(or().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):or().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?function GM(ve,We){return ve.endsWith("/")||(ve+="/"),ve+We}(or().OTEL_EXPORTER_OTLP_ENDPOINT,mc):p_},We.prototype.getServiceClientType=function(){return Nv.SPANS},We}(Ky),z_=d(65706);class m_ extends $f{constructor(We,ot){super(We),this._isTracingDisabledReplaySubject=ot}export(We,ot){this._isTracingDisabledReplaySubject.asObservable().pipe((0,z_.s)(1)).subscribe(at=>{at||super.export(We,ot)})}}let f_=(()=>{var ve;class We{constructor(){this.initializationMap=new Map}initialize(at,Rt){if(this.initializationMap.get(at.exportConfig.componentName))return;const ui={resource:new tu({[Da.SERVICE_NAME]:at.exportConfig.componentName})};this.provider=new IM(ui);const wi=[new nr];at.propagationConfig?.openTracingContextPropagation&&wi.push(new zy),this.compositePropagator=new ko({propagators:wi}),Zt.setGlobalPropagator(this.compositePropagator);const Rr=new kM;Rr.enable(),this.provider.register({propagator:this.compositePropagator,contextManager:Rr}),this.exporter=new m_({headers:{"Lightstep-Access-Token":at.exportConfig.accessToken},url:at.exportConfig.collectorUrl},Rt),function wv(ve){BC=ve}(pd=>{console.error("Error while tracing",pd)}),this.provider.addSpanProcessor(new wM(this.exporter,{disableAutoFlushOnDocumentHide:!0})),this.initializationMap.set(at.exportConfig.componentName,!0)}getSpanContextInfo(at){if(!this.tracer)return null;const Rt={},sn=Ut.setSpanContext(jn.active(),at.spanContext());return Zt.inject(sn,Rt,on),Rt}getTraceInjectWrapper(){return this.getSpanContextInfo.bind(this)}createSpanUsingContextInfo(at,Rt){if(!this.tracer)return null;const sn=Zt.extract(jn.active(),Rt),ui=this.tracer.startSpan(at,{},sn);return this.getSpanContextInfo(ui),ui}getCreateSpanUsingContextWrapper(){return this.createSpanUsingContextInfo.bind(this)}createSpan(at,Rt){if(!this.tracer)return null;if(!Rt)return this.tracer.startSpan(at);const sn=Ut.setSpan(jn.active(),Rt);return this.tracer.startSpan(at,{},sn)}getOTELTracer(at,Rt){return this.initialize(at,Rt),this.tracer=this.provider.getTracer(),this.tracer}extractContext(at,Rt,sn){const ui=Rt||jn.active();return Zt.extract(ui,at,sn)}runWithContext(at,Rt,sn,...ui){return jn.with(at,Rt,sn,...ui)}}return(ve=We).\u0275fac=function(at){return new(at||ve)},ve.\u0275prov=V.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),We})();const Yf={[XMLHttpRequest.UNSENT]:"unsent",[XMLHttpRequest.OPENED]:"opened",[XMLHttpRequest.HEADERS_RECEIVED]:"headers received",[XMLHttpRequest.LOADING]:"loading",[XMLHttpRequest.DONE]:"done"},__=(ve,We)=>{ve.setAttributes({[v.HttpStatusCode]:We,[v.HttpStatusCodeFamily]:We.toString().replace(/[0-9]{2}$/,"XX"),[v.Error]:We<=0||We>=400})};let Hv=(()=>{var ve;class We extends h.N0{constructor(at,Rt,sn){super(),this.statusCodeZeroAnalyzerFactoryService=at,this.serviceWorkerService=Rt,this.otelTracerService=sn,this.globalSpanTags={},this.tracer=null,this.tracingEnabledURLRegex=[],this.tracingEnabledUrls=new Map,this.pendingNetworkResponseSpanMap=new Map,this.createSpanUsingContext=this.otelTracerService.getCreateSpanUsingContextWrapper(),this.traceInjectWrapper=this.otelTracerService.getTraceInjectWrapper()}initialize(at,Rt,sn,ui){this.tracer=at,this.setTracingEnabledURLRegex(Rt.urlRegex),this.setStatusCodeZeroAnalyzerConfig(sn),this.serviceWorkerService.networkResponseReceived.subscribe(wi=>{this.removeFromSWPendingRequests(wi)},g.l),ui.asObservable().subscribe(wi=>{this.globalSpanTags=wi},wi=>{this.globalSpanTags={}})}addToSWPendingRequests(at,Rt){this.pendingNetworkResponseSpanMap.set(at,Rt)}removeFromSWPendingRequests(at){if(this.pendingNetworkResponseSpanMap.has(at.requestId)){const Rt=this.pendingNetworkResponseSpanMap.get(at.requestId);this.pendingNetworkResponseSpanMap.delete(at.requestId),0===at.responseStatusCode?this.statusCodeZeroAnalyzer.getFailureCode({requestUrl:at.requestUrl,uniqueRequestId:at.requestId,isCancelled:!1}).subscribe(sn=>{__(Rt,sn.statusCode),Rt.end(at.responseReceivedTimeMs)},g.l):(__(Rt,at.responseStatusCode),Rt.end(at.responseReceivedTimeMs))}}build(){const at=new XMLHttpRequest;return(0,_.isNil)(this.tracer)||(at.requestHeaders={},at.commonSpanTags=this.globalSpanTags,at.tracer=this.tracer,at.open=this.wrapOpen(at),at.send=this.wrapSend(at),at.setRequestHeader=this.wrapSetRequestHeader(at),at.constructSpanTags=this.getConstructSpanTags(),at.injectCarrierHeaders=this.getInjectCarrierHeaders(),at.getOperationName=this.getOperationName(),at.createSpanUsingContext=this.createSpanUsingContextWrapper(),at.getResponseHeaders=this.getResponseHeaders(),at.analyzeStatusCodeZero=this.analyzeStatusCodeZero(),at.addEventListener("readystatechange",this.getOnReadyStateChangedListener()),at.addEventListener("abort",this.handleAbort())),at}handleAbort(){return function(){this.isRequestAborted=!0}}setTracingEnabledURLRegex(at){this.tracingEnabledURLRegex=at.map(Rt=>new RegExp(Rt,"g"))}setStatusCodeZeroAnalyzerConfig(at){this.statusCodeZeroAnalyzer&&(this.statusCodeZeroAnalyzer=null),this.statusCodeZeroAnalyzer=this.statusCodeZeroAnalyzerFactoryService.createAnalyzer(at)}matchURLAgainstEnabledList(at){if(!this.tracingEnabledUrls.has(at)){const Rt=this.tracingEnabledURLRegex.findIndex(sn=>{const ui=at.match(sn);return!(0,_.isNil)(ui)&&1===ui.length});this.tracingEnabledUrls.set(at,-1!==Rt)}return this.tracingEnabledUrls.get(at)}isURLEnabledForTracing(at){return!(0,_.isNil)(at)&&this.matchURLAgainstEnabledList(at.toString())}getResponseHeaders(){return function(){const sn=this.getAllResponseHeaders().replace(/\s+$/,"").split(/\n/);for(let ui=0;ui<sn.length;ui++)sn[ui]=sn[ui].replace(/\r/g,"").trim();return sn}}getOperationName(){return function(){return this.method+" "+this.urlInfo.hostname+this.urlInfo.pathname}}createSpanUsingContextWrapper(){const at=this.createSpanUsingContext;return function(sn){return at(sn,this.requestHeaders)}}analyzeStatusCodeZero(){const at=this.statusCodeZeroAnalyzer.getFailureCode;return function(){return at({requestUrl:this.urlInfo.href,isCancelled:this.isRequestAborted,uniqueRequestId:this.uniqueRequestId||""})}}getOnReadyStateChangedListener(){return function(){const Rt=this.uniqueRequestId&&this.isHandledByServiceWorker?this.serviceWorkerSpan:this.span;(0,_.isNil)(Rt)||(this.readyState===XMLHttpRequest.UNSENT||this.readyState===XMLHttpRequest.OPENED?Rt.addEvent(Yf[this.readyState]):this.readyState===XMLHttpRequest.HEADERS_RECEIVED?Rt.addEvent(Yf[this.readyState],{method:this.method,url:this.urlInfo.href,responseHeaders:this.getResponseHeaders()}):this.readyState===XMLHttpRequest.LOADING?Rt.addEvent(Yf[this.readyState]):this.readyState===XMLHttpRequest.DONE?(Rt.addEvent(Yf[this.readyState],{method:this.method,url:this.urlInfo.href,statusText:this.statusText,responseType:this.responseType,responseHeaders:this.getResponseHeaders()}),0===this.status?(0,c.of)(!0).pipe((0,T.c)(100),(0,A.ZZ)(sn=>this.analyzeStatusCodeZero(this.urlInfo.href))).subscribe(sn=>{Rt.setAttributes({status:sn.statusCode}),__(Rt,sn.statusCode),Rt.end()}):(Rt.setAttributes({status:this.status}),__(Rt,this.status),Rt.end())):Rt.setAttributes({readyState:this.readyState}))}}getConstructSpanTags(){return function(){const Rt={[v.Component]:S.XmlHttpRequest,[v.HttpMethod]:this.method,[v.Type]:this.urlInfo.protocol.replace(":",""),[v.HttpHostname]:this.urlInfo.hostname,[v.HttpUrl]:this.urlInfo.pathname};return(0,_.extend)(Rt,this.commonSpanTags),Object.keys(this.requestHeaders).forEach(ui=>{Rt[v.HttpHeadersPrefix+ui]=this.requestHeaders[ui]}),this.urlInfo.searchParams.forEach((ui,wi)=>{Rt[v.ParamsPrefix+wi]=ui}),Rt}}getInjectCarrierHeaders(){const at=this.traceInjectWrapper;return function(){const sn=at(this.span);Object.keys(sn).forEach(wi=>{Object.getPrototypeOf(this).setRequestHeader.call(this,wi,sn[wi]),this.setRequestHeader(wi,sn[wi])})}}wrapOpen(at){const Rt=at.open;return function(ui,wi,_r,Rr,Uo){this.method=ui;try{this.urlInfo=new URL(wi)}catch{this.urlInfo=null}Rt.apply(this,arguments)}}wrapSend(at){const Rt=at.send,sn=this.isURLEnabledForTracing.bind(this),ui=this.serviceWorkerService.willGFNServiceWorkerHandleRequest.bind(this),wi=this.addToSWPendingRequests.bind(this),_r=this.omitOpentracingHeaders;return function(Uo){(0,_.isNil)(this.urlInfo)||(this.span=this.createSpanUsingContext(this.getOperationName()),this.isHandledByServiceWorker=ui(this.urlInfo.href,this.bypassCacheHeaderValue),this.uniqueRequestId&&this.isHandledByServiceWorker&&(this.serviceWorkerSpan=this.createSpanUsingContext("SW "+this.getOperationName()),this.serviceWorkerSpan.setAttributes(this.constructSpanTags()),wi(this.uniqueRequestId,this.span)),this.requestHeaders=_r(this.requestHeaders),sn(this.urlInfo)&&this.injectCarrierHeaders(),this.span.setAttributes(this.constructSpanTags()),this.span.addEvent("send")),Rt.apply(this,arguments)}}wrapSetRequestHeader(at){const Rt=at.setRequestHeader;return function(ui,wi){"Authorization"===ui||"X_LOCAL_SECURITY_COOKIE"===ui||ui===x.tD.SwCacheKeyAppendString||(this.requestHeaders[ui]=wi,ui===L.SA.xRequestId&&(this.uniqueRequestId=wi),ui===x.tD.SwCacheBypass&&(this.bypassCacheHeaderValue=wi)),!ui.startsWith("ot-")&&!ui.startsWith("traceparent")&&Rt.apply(this,arguments)}}omitOpentracingHeaders(at){return(0,_.omitBy)(at,Rt=>!Rt.startsWith("ot-")&&!Rt.startsWith("traceparent"))}}return(ve=We).\u0275fac=function(at){return new(at||ve)(V.KVO(D.pZ),V.KVO(x.lS),V.KVO(f_))},ve.\u0275prov=V.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),We})(),Wv=(()=>{var ve;class We{constructor(at,Rt,sn){this.openTelemetryService=at,this.loggingService=Rt,this.injector=sn,this.logger=this.loggingService.getLogger("DistributedTracingUtilService")}setSpanAttribute(at,Rt,sn){at.setAttribute(Rt,sn)}setSpanAttributes(at,Rt){at.setAttributes(Rt)}initializeDistributedTracing(at,Rt,sn){this.tracer=this.openTelemetryService.getOTELTracer(at,Rt),sn.subscribe(ui=>{this.commonTags=ui},ui=>{this.logger.error("Error while setting global tags. No global tags will be used",ui),this.commonTags={}}),this.distributedTracingXhrFactoryService=this.injector.get(Hv),this.distributedTracingXhrFactoryService.initialize(this.tracer,at.apiTracingConfig,at.statusCodeZeroAnalyzerConfig,sn)}getFormattedUrlForHttpPopupSpan(at,Rt){if(Rt&&this.tracer){const sn={};this.injectSpanHttpHeaders(Rt,sn);const ui=new URL(at),wi=JSON.stringify((0,_.extend)({},sn)),_r=ui.searchParams.toString();at=`${ui.origin}${ui.pathname}?tracer=${(0,P.KA)(wi,!0,!0)}`,_r.length&&(at=`${at}&${_r}`)}return at}startSpan(at,Rt){return this.openTelemetryService.createSpan(at,Rt)}startSpanUsingContext(at,Rt){return this.openTelemetryService.createSpanUsingContextInfo(at,Rt)}inject(at){return this.openTelemetryService.getSpanContextInfo(at)}injectSpanHttpHeaders(at,Rt){const sn=this.openTelemetryService.getSpanContextInfo(at),ui=Object.keys(sn);for(const wi of ui)Rt[wi]=sn[wi]}handleHttpError(at,Rt){this.setSpanAttribute(at,v.Error,!0),this.setSpanAttribute(at,v.HttpStatusCode,Rt&&Rt.status||0)}handleHttpPopupError(at,Rt){this.setSpanAttribute(at,v.Error,!0),this.setSpanAttribute(at,v.HttpStatusCode,Rt.errorCode),this.setSpanAttribute(at,v.HttpErrorText,Rt.errorText),this.setSpanAttribute(at,v.HttpUrl,Rt.failedUrl)}handleHttpSuccess(at,Rt){this.setSpanAttribute(at,v.Error,!1),Rt&&this.setSpanAttribute(at,v.HttpUrl,Rt)}handleHttpEndpointSpan(at,Rt,sn,ui){const wi=Rt.headers?Rt.headers:{},_r=this.startSpan(sn,ui);return _r?(this.setSpanAttributes(_r,Rt.params?Rt.params:{}),this.injectSpanHttpHeaders(_r,wi),at.pipe((0,l.M)(()=>this.handleHttpSuccess(_r)),(0,p.W)(Uo=>(this.handleHttpError(_r,Uo),(0,n.$)(Uo))),(0,m.j)(()=>this.closeSpan(_r)))):at}closeSpan(at){at&&(this.setSpanAttributes(at,this.commonTags),at.end())}closeHttpPopupSpan(at,Rt,sn){at&&(this.setSpanAttributes(at,this.commonTags),Rt?this.handleHttpPopupError(at,sn):this.handleHttpSuccess(at,sn.failedUrl),at.end())}sendOpenTracingSpanTags(at,Rt,sn){const ui=this.startSpan(at,sn);Rt?.forEach((wi,_r)=>{this.setSpanAttribute(ui,_r,wi)}),this.closeSpan(ui)}runWithinSpanContext(at,Rt,sn,...ui){const wi=this.openTelemetryService.extractContext(at);return this.openTelemetryService.runWithContext(wi,Rt,sn,...ui)}}return(ve=We).\u0275fac=function(at){return new(at||ve)(V.KVO(f_),V.KVO(D.J6),V.KVO(V.zZn))},ve.\u0275prov=V.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),We})()},21333:(Ue,W,d)=>{"use strict";d.d(W,{sT:()=>p,tg:()=>g,yN:()=>y});var n=d(94485),l=d(58527);let p=(()=>{var R;class G{}return(R=G).\u0275fac=function(K){return new(K||R)},R.\u0275prov=l.jDH({token:R,factory:R.\u0275fac}),G})();var m=d(26537),_=d(3457),P=d(47973);let v=(()=>{var R;class G{constructor(K,$){this.dialogRef=K,this.data=$,this.content=$.content}}return(R=G).\u0275fac=function(K){return new(K||R)(l.rXU(m.CP),l.rXU(m.Vh))},R.\u0275cmp=l.VBU({type:R,selectors:[["ng-component"]],decls:7,vars:3,consts:[["mat-dialog-title","",1,"font-header4"],["mat-dialog-content",""],[1,"exception-content","font-body2",3,"innerHTML"],["mat-dialog-actions","","fxLayoutAlign","end end","fxLayout","row"],["mat-button","",1,"font-button1",3,"mat-dialog-close"]],template:function(K,$){1&K&&(l.j41(0,"h1",0),l.EFF(1),l.k0s(),l.j41(2,"div",1),l.nrm(3,"div",2),l.k0s(),l.j41(4,"div",3)(5,"button",4),l.EFF(6," Close "),l.k0s()()),2&K&&(l.R7$(),l.JRh($.data.title),l.R7$(2),l.Y8G("innerHTML",$.content,l.npT),l.R7$(2),l.Y8G("mat-dialog-close",!0))},dependencies:[m.tx,m.BI,m.Yi,m.E7,_.DJ,_.sA,P.iV],styles:[".exception-content[_ngcontent-%COMP%]{-webkit-user-select:text;user-select:text;background-color:#212121;padding:10px;overflow-wrap:anywhere}"]}),G})();const O_Sanitize=/(\w+:|[\\/]).*[\\/]/gi,O_Indentation=/ at /g,O_Class=/([^]+)/g;class y{constructor(G,Y){this.err=Y,this.errorMessage=G,this.metadata={}}get error(){return this.err}toString(){return this.errorMessage+":"+JSON.stringify(this.err)}addMetadata(G,Y){this.metadata[G]=Y}getMetaData(){return this.metadata}}var r=d(99021),i=d(78812),a=d(3567);let g=(()=>{var R;class G{constructor(K,$,ee){this.logger=K,this.injector=$,this.dialog=ee}handleError(K){let $=!1;this.logger.info("UnHandled Exception was caught",K);const ee=this.injector.get(p);if(ee&&(this.isEnabled=ee.isExceptionEnabled,this.devMode=ee.devMode),!this.isEnabled||(K?.rawResponse instanceof n.yz?(this.logger.error("There was an HTTP error. Skipping exception event"),$=!0):K instanceof r.M?(this.logger.error("Timeout error occured. Skipping exception event"),$=!0):K instanceof TypeError?this.logger.error("Type error occured. Sending exception telemetry"):K instanceof Error?this.logger.error("Error occured. Sending exception telemetry"):(this.logger.error("Unknown error or cef query failure. Skipping exception event"),$=!0),$&&!this.devMode))return;const J={name:K.name,message:K.message,stackFrame:null,exceptionString:null};K.stack=K.stack?.replace(O_Sanitize,""),J.stackFrame=K.stack??i.oX.Undefined;const z=JSON.stringify(J);this.logger.error("Exception stack trace ",z),this.devMode&&this.dialog.open(v,{autoFocus:!1,disableClose:!0,panelClass:"nv-overlay-panel",data:{title:"Unhandled Exception",content:K.stack?this.formatExceptionStack(K.stack):z}}),$||(J.exceptionString=J.stackFrame,this.handleClientSideException(J,ee))}formatExceptionStack(K){return K.replace(O_Indentation,"<br> at ").replace(O_Class,"<span>$1</span>")}}return(R=G).\u0275fac=function(K){return new(K||R)(l.KVO(a.Vy),l.KVO(l.zZn),l.KVO(m.bZ))},R.\u0275prov=l.jDH({token:R,factory:R.\u0275fac}),G})();d(56106),d(97979),d(29370),d(99204),d(50599),d(96501),d(44186)},20381:(Ue,W,d)=>{"use strict";d.d(W,{sK:()=>J,y2:()=>p,BW:()=>ce,Id:()=>K,Ky:()=>Y});var n=d(58527);let l=(()=>{var Z;class de{}return(Z=de).\u0275fac=function(pe){return new(pe||Z)},Z.\u0275prov=n.jDH({token:Z,factory:Z.\u0275fac}),de})(),p=(()=>{var Z;class de extends l{}return(Z=de).\u0275fac=(()=>{let ae;return function(_e){return(ae||(ae=n.xGo(Z)))(_e||Z)}})(),Z.\u0275prov=n.jDH({token:Z,factory:Z.\u0275fac}),de})();var m=d(57258),_=d(43848),P=d(19392),v=d(31315),O=d(59859),S=d(93181),y=d(36466),r=d(35146),i=d(75707),a=d(65706),h=d(91384),g=d(14714),c=d(12962),T=d(83915),A=d(55833),L=d(10785),x=d(26875),V=d(3567),D=d(72271),F=d(78812),I=d(21333),k=function(Z){return Z.OSName="osName",Z}(k||{});class R extends I.yN{constructor(){super("Empty cloud variable",null)}}class G extends I.yN{constructor(){super("Cloud variable could not be retrieved via API call nor cache. Please handle this case and use defaults",null)}}var Y=function(Z){return Z.GxTargetGetFeatureRollout="GetFeatureRollout",Z.GxTargetGetCloudVariable="GetCloudVariable",Z.GxTargetGetSurveyFeature="GetSurveyFeature",Z.Other="Other",Z}(Y||{}),K=function(Z){return Z.GxTargetGetECommerceFeature="GetECommerceFeature",Z.GxTargetGetSurveyFeature="GetSurveyFeature",Z.GxTargetGetQueueETAConfig="GetQueueETAConfig",Z.GxTargetGetAutohighlightFeature="GetAutohighlightFeature",Z.GxTargetGetFreestyleFeature="GetFreestyleFeature",Z.GxTargetGetStarfleetPhase1="GetStarfleetPhase1",Z.GxTargetGetStarfleetPhase2="GetStarfleetPhase2",Z.GxTargetGetKeyboardLayout="GetKeyboardLayout",Z.GxTargetGetAnselFeature="GetAnselFeature",Z.GxTargetGetGfnBroadcastFeature="GetGfnBroadcastFeature",Z.GxTargetGetDeeplinkSupport="GetDeeplinkSupport",Z.GxTargetGetKBLayoutsConfig="GetKBLayoutsConfig",Z.GxTargetGetUpsellMessage="GetUpsellMessage",Z.GxTargetGetAllCloudVariables="GetAllCloudVariables",Z.GxTargetGetBrowserClientCanary="GetBrowserClientCanary",Z.GxTargetGetReservedSKUEnabled="GetReservedSKUEnabled",Z.GxTargetGetReservedSKUIBetaFlag="GetReservedSKUIBetaFlag",Z.GxTargetGetClipboardPasteConfig="GetClipboardPasteConfig",Z.GxTargetGetPathToPurchaseConfig="GetPathToPurchaseConfig",Z.GxTargetGetPunctualUIConfig="GetPunctualUIConfig",Z.GxTargetGetEnableBrowserIGSS="GetEnableBrowserIGSS",Z.GxTargetGetGuestFlowClientConfig="GxTargetGetGuestFlowClientConfig",Z.Other="Other",Z}(K||{}),J=function(Z){return Z.StreamingClient="StreamingClient",Z.MallClient="MallClient",Z.StoreLibrary="StoreLibrary",Z.Unknown="Unknown",Z.BackgroundAgent="BackgroundAgent",Z.NvAppClient="NvAppClient",Z}(J||{}),z=function(Z){return Z.GxTarget="GxTarget",Z}(z||{}),te=function(Z){return Z.UNDEFINED="UNDEFINED",Z.TRUE="TRUE",Z.FALSE="FALSE",Z}(te||{});const X={HTTPFailure:{name:"HTTPFailure",gdprLevel:F.EU.Functional},HTTPSuccess:{name:"HTTPSuccess",gdprLevel:F.EU.Functional},HTTPCallResult:{name:"HTTPCallResult",gdprLevel:F.EU.Functional}};class re extends F.YH{constructor(de){super(de),this.name=X.HTTPFailure.name,this.gdprLevel=X.HTTPFailure.gdprLevel}}class ge extends F.YH{constructor(de){super(de),this.name=X.HTTPSuccess.name,this.gdprLevel=X.HTTPSuccess.gdprLevel}}class oe extends F.YH{constructor(de){super(de),this.name=X.HTTPCallResult.name,this.gdprLevel=X.HTTPCallResult.gdprLevel}}var xe=d(2490),ue=d(72945),N=d(32727);const se="78589530426925203";let ce=(()=>{var Z;class de{constructor(pe,_e,ke,De,Me,je,$e){this.config=pe,this.loggingService=_e,this.telemetryService=ke,this.sharedStorageService=De,this.systemInfoService=Me,this.eventStreamFactory=je,this.localeService=$e,this.isCvListInitialized$=new m.m(1),this.cacheMaxAge=1440,this.isInitialized$=new m.m(1),this.batchCvsInitialized=new m.m(1),this.commonClientParams={},this.cachedCloudVariableMap=new Map,this.deviceOSName="",this.readFromSharedStorage=Oe=>this.sharedStorageService.readBlock(Oe).pipe((0,i.ZZ)(gt=>(0,_.of)(gt||{}))),this.writeToSharedStorage=(Oe,gt)=>{const qt=gt.name;if(this.storageUpdateQueue.unshift(gt),this.storageUpdateQueue.length>1)return void this.logger.info("Added experiment to storage update queue",qt);const ye=Oe;let Re;return(0,P.H)(this.readFromSharedStorage(ye)).pipe((0,i.ZZ)(Ze=>(Re=Ze,this.updateExperimentRefreshDate(gt),(Ze=this.cleanupStorageBlock(Ze))[qt]=gt,this.sharedStorageService.writeBlock(ye,Ze)))).subscribe(()=>{this.logger.info("Cloud variable written to shared storage",gt.name,gt.value),this.processStorageUpdateQueue()},Ze=>{this.logger.error(`Error while writing to shared storage for ${qt}`,Ze),this.processStorageUpdateQueue()}),null},this.getSharedStorageKey=Oe=>{let gt=this.clientInfo.userId!==F.oX.Undefined?this.clientInfo.userId:void 0;return Oe===F.CV.DEVICE_ID&&(gt=void 0),this.logger.info("Got SharedStorageKey: ",this.storageKey+"_"+gt),this.storageKey+"_"+gt},this.logger=_e.getLogger("experienceControl/service"),this.storageKey="experienceControl",this.storageUpdateQueue=[],this.clientInfo={deviceId:"",userId:F.oX.Undefined,idpId:F.oX.Undefined,clientId:this.config.clientId,clientVer:this.config.clientVersion,clientVariant:this.getCommonClientVariant(this.config.clientVariant),deviceOS:"",deviceType:"",deviceMake:"",deviceModel:"",deviceOSVersion:"",clientType:D.CommonClientType.Undefined,browserType:""},this.cacheMaxAge=this.config.cacheMaxAge||this.cacheMaxAge,this.fetchCloudVariableStream=this.eventStreamFactory.createStream(this.fetchCloudVariables.bind(this))}getCommonClientVariant(pe){switch(pe){case"ibeta":return D.CommonClientVariant.iBeta;case"release":return D.CommonClientVariant.Release;default:return D.CommonClientVariant.Undefined}}setUserInfo(pe){this.clientInfo.userId=pe.userId||F.oX.Undefined,this.clientInfo.idpId=pe.idpId||F.oX.Undefined}setCvList(pe){this.cvList=pe,this.isCvListInitialized$.next(!0)}cvListInitialized(){return this.isCvListInitialized$.asObservable()}fetchCloudVariables(){return(0,v.zV)([this.isGxTargetConfiguredCorrectly(),this.cvListInitialized()]).pipe((0,a.s)(1),(0,i.ZZ)(([pe,_e])=>pe?(0,S.p)([this.readFromSharedStorage(this.getSharedStorageKey(F.CV.USER_ID)),this.readFromSharedStorage(this.getSharedStorageKey(F.CV.DEVICE_ID))]):(this.batchCvsInitialized.next(!0),(0,O.$)(`client info not available -> clientId, clientVersion, userId, idpId, deviceId, \n clientVariant, clientType, deviceOS, deviceOSVersion, deviceType, deviceModel, deviceMake:\n ${this.clientInfo.clientId}, ${this.clientInfo.clientVer}, ${this.clientInfo.userId},\n ${this.clientInfo.idpId}, ${this.clientInfo.deviceId}, ${this.clientInfo.clientVariant},\n ${this.clientInfo.clientType}, ${this.clientInfo.deviceOS}, ${this.clientInfo.deviceOSVersion},\n ${this.clientInfo.deviceType}, ${this.clientInfo.deviceModel}, ${this.clientInfo.deviceMake}`))),(0,i.ZZ)(([pe,_e])=>{const ke=this.callGetMultipleCloudVariableApi({variant:this.config.clientVariant,...this.clientInfo.clientType===D.CommonClientType.Browser&&{userDefaultUILanguage:this.localeService.getShortLocale()}}).pipe((0,h.M)(je=>{this.batchCvsInitialized.next(!0)}),(0,g.W)(je=>{this.logger.error("Error in batch call",je);const $e=new Map;return this.batchCvsInitialized.next(!0),(0,_.of)($e)}));let De,Me;return this.logger.info("Requested cvs in batch call",this.cvList),(0,x.isEmpty)(pe)?ke:(this.cvList.forEach(je=>{Me=pe[je],Me?(De={variation:Me.result,value:Me.value,activity:Me.activity,metadata:Me.metadata,isCachedResult:!0},this.cachedCloudVariableMap.set(je,De)):_e&&_e[je]&&(Me=_e[je],Me&&(De={variation:Me.result,value:Me.value,activity:Me.activity,metadata:Me.metadata,isCachedResult:!0},this.cachedCloudVariableMap.set(je,De)))}),ke.subscribe(y.l),ke.pipe((0,c.o)(this.config.allCvNetworkTimeoutForCacheFallback,(0,_.of)(this.cachedCloudVariableMap))))}))}callGetMultipleCloudVariableApi(pe={}){const _e=new Map,ke=[],De=this.cloudVariableSdk.startSpan(xe.pB.ClientGetCloudVariable);return(0,P.H)(this.cloudVariableSdk.getCloudVariables(this.cvList,!1,{...this.commonClientParams,...pe},De).catch(Me=>{this.logger.error("Error in getCloudVariables from cloudVariableSdk",Me)})).pipe((0,i.ZZ)(Me=>{if(Me?.size>0){this.sendCloudVariableFetchSuccessTelemetry(Me,Y.GxTargetGetCloudVariable,K.GxTargetGetAllCloudVariables);const je={name:void 0,variation:void 0,value:void 0,activity:void 0,isCachedResult:!1,state:D.CloudVariableStatus.Unknown};return this.cvList.forEach($e=>{if(Me.get($e)){const gt=Me.get($e);gt.clientRequestParams={commonClientParams:this.commonClientParams,additionalClientParams:pe};const qt={name:gt.name,variation:gt.result,value:gt.value,activity:gt.activity,metadata:gt.metadata,isCachedResult:!1,state:D.CloudVariableStatus.Unknown};_e.set(gt.name,qt),ke.push((0,_.of)(qt))}else _e.set($e,je)}),this.cloudVariableSdk.closeSpan(De),(0,r.yU)(...ke)}return void 0===Me?(this.sendCloudVariableFetchFailureTelemetry(Me,Y.GxTargetGetCloudVariable,K.GxTargetGetAllCloudVariables),this.logger.error("Batch call returned failure")):(this.sendCloudVariableFetchSuccessTelemetry(Me,Y.GxTargetGetCloudVariable,K.GxTargetGetAllCloudVariables),this.logger.error("Batch call returned empty result")),De.setTag(xe.NS.Error,!0),this.cloudVariableSdk.closeSpan(De),(0,_.of)(new Map)}),(0,T.T)(()=>_e),(0,A.t)(1))}refreshCloudVariables(){this.fetchCloudVariableStream.refresh()}get batchCvsFetchedStatus$(){return this.batchCvsInitialized.asObservable()}processStorageUpdateQueue(){if(this.storageUpdateQueue.pop(),this.storageUpdateQueue.length){this.logger.info("Processing next experiment in queue");const pe=this.storageUpdateQueue.pop(),_e=this.getSharedStorageKey(pe.activity.activationType);this.writeToSharedStorage(_e,pe)}}cleanupStorageBlock(pe){const _e=new Set(Object.values(this.config.experiences));for(const ke in pe)_e.has(ke)||(this.logger.info(`removing deprecated activity: ${ke} from storage`),delete pe[ke]);return pe}updateExperimentRefreshDate(pe){return pe.metadata||(pe.metadata={}),pe.metadata.refreshDate=new Date,pe}initialize(pe,_e){this.hostClientType=pe||J.Unknown;const ke=(0,v.zV)([this.systemInfoService.getDeviceOSType(),this.systemInfoService.getSystemInfo([V.Lu.DeviceId,V.Lu.OSName,V.Lu.OSVersion,V.Lu.DeviceType,V.Lu.BrowserName,V.Lu.SystemName,V.Lu.VendorName])]).pipe((0,T.T)(([De,Me])=>({deviceId:this.config.piplExemption?V.Qe:Me.DeviceId,osName:Me.OSName,osVersion:Me.OSVersion,osType:De,deviceType:Me.DeviceType,browserType:Me.BrowserName,deviceModel:Me.SystemName,deviceMake:Me.VendorName})));(0,v.zV)([ke,_e]).pipe((0,i.ZZ)(([De,Me])=>{this.clientInfo.deviceId=De.deviceId,this.clientInfo.browserType=De.browserType,this.clientInfo.deviceOS=De.osType,this.deviceOSName=De.osName,this.clientInfo.deviceType=De.deviceType||F.oX.Undefined,this.clientInfo.deviceMake=De.deviceMake||F.oX.Undefined,this.clientInfo.deviceModel=De.deviceModel||F.oX.Undefined,this.clientInfo.deviceOSVersion=De.osVersion,this.clientInfo.clientType=V.zk.isBrowserPlatform()?D.CommonClientType.Browser:D.CommonClientType.Native,this.updateCommonClientParams(k.OSName,this.getSupportedOSName(De.osName)),this.logger.info("Client info at initialize:",this.clientInfo);const $e=this.config;return this.cloudVariableSdk=new D.CloudVariableSdkService({url:$e.server,defaultRetries:$e.defaultRetries,defaultTimeBetweenRetries:$e.defaultTimeBetweenRetries,defaultTimeout:$e.defaultTimeout,cacheMaxAge:$e.cacheMaxAge,storageConfig:{storageType:D.StorageType.IndexedDB},loggingLevel:D.LoggingLevel.Info,clientInfo:this.clientInfo},{collector_host:"lightstep.kaizen.nvidia.com",collector_port:443,component_name:this.config.openTracingConfig.componentName,disable_clock_skew_correction:!0,access_token:this.config.openTracingConfig.accessToken},this.config.storage===F.P6.IndexedDb?void 0:this.readFromSharedStorage,this.config.storage===F.P6.IndexedDb?void 0:this.writeToSharedStorage,this.getSharedStorageKey),this.initGlobalTagsForOpenTracing(Me,pe),(0,_.of)(!0)})).subscribe(()=>{this.logger.info("Initialized successfully"),this.isInitialized$.next(!0)},De=>{this.logger.error("Error initializing service",De),this.isInitialized$.next(!1)})}initGlobalTagsForOpenTracing(pe,_e){this.cloudVariableSdk.updateGlobalTags({[xe.NS.ServiceVersion]:this.clientInfo.clientVer,[xe.NS.ServiceType]:xe.Se.Pc_A7,[xe.NS.SpanKind]:xe.ls.Client,[xe.NS.AppName]:_e,[xe.NS.DeviceId]:this.clientInfo.deviceId,[xe.NS.ClientOs]:this.clientInfo.deviceOS,[xe.NS.ClientOsName]:this.deviceOSName,[xe.NS.ClientOsVersion]:this.clientInfo.deviceOSVersion,[xe.NS.CountryCode]:pe})}getSupportedOSName(pe){switch(pe=pe?.toLowerCase().includes("windows")?"windows":pe,pe?.toLowerCase()){case"windows":return"WINDOWS";case"mac":case"macos":return"MACOS";case"linux":return"LINUX";case"chrome os":case"chromeos":return"CHROMEOS";case"ios":return"IOS";case"ipados":return"IPADOS";case"webos":return"WEBOS";case"tizen":return"TIZEN";case"xbox":return"XBOX";case"android":return"ANDROID";default:return this.logger.info("Cannot get supported OS name for OS: ",pe),""}}updateCommonClientParams(pe,_e){pe&&_e&&(this.commonClientParams[pe]=_e)}getCloudVariable(pe,_e={},ke,De,Me,je,$e){return this.config.denyListExperiences.includes(pe)?this.fetchSingleCloudVariable(pe,_e,ke,De,Me,je,$e).pipe((0,h.M)(Oe=>this.logger.info("Received requested cloud variable information: ",pe,Oe))):this.batchCvsFetchedStatus$.pipe((0,a.s)(1),(0,i.ZZ)(()=>this.fetchCloudVariableStream.get$().pipe((0,i.ZZ)(Oe=>{const gt=Oe.get(pe);return gt?gt?.value?(0,_.of)(gt):(0,O.$)(R):this.fetchSingleCloudVariable(pe,_e,ke,De,Me,je)}),(0,h.M)(Oe=>{this.logger.info("Received requested cloud variable information: ",pe,Oe)}),(0,g.W)(Oe=>(0,O.$)(Oe)))))}fetchSingleCloudVariable(pe,_e={},ke,De,Me,je,$e){let Oe,gt;return this.logger.info("fetchSingleCloudVariable called for ",pe),this.isGxTargetConfiguredCorrectly(je).pipe((0,i.ZZ)(([qt])=>(this.logger.info("cloud variable requested with params",pe,_e,{...this.clientInfo}),qt?this.fetchCachedData(pe):(0,O.$)(`client info not available -> clientId, clientVersion, userId, \n idpId, deviceId, clientVariant, clientType, deviceOS, deviceOSVersion, deviceType, deviceModel, deviceMake:\n ${this.clientInfo.clientId}, ${this.clientInfo.clientVer}, ${this.clientInfo.userId},\n ${this.clientInfo.idpId}, ${this.clientInfo.deviceId}, ${this.clientInfo.clientVariant},\n ${this.clientInfo.clientType}, ${this.clientInfo.deviceOS}, ${this.clientInfo.deviceOSVersion},\n ${this.clientInfo.deviceType}, ${this.clientInfo.deviceModel}, ${this.clientInfo.deviceMake}`))),(0,i.ZZ)(qt=>{Oe=qt,gt=Oe&&Oe[pe];const ye=this.callGetCloudVariableApi(pe,_e,gt,Oe,De,Me);if(gt){const Re={additionalClientParams:_e,commonClientParams:this.commonClientParams},Ze=this.cacheIsCurrent(gt,ke?.cacheLifetimeOverride)&&($e||(0,x.isEqual)(Re,gt.clientRequestParams)),et=(0,_.of)({name:gt.name,variation:gt.result,value:gt.value,activity:gt.activity,metadata:gt.metadata,isCachedResult:!0,state:D.CloudVariableStatus.Unknown});if(ke?.useCache){if(Ze)return et}else if(ke?.useNetworkTimeoutForCacheFallback)return ye.subscribe(y.l,xt=>{this.logger.info(`Error while fetching ${pe}`,xt)}),ye.pipe((0,c.o)(this.config.networkTimeoutForCacheFallback,et))}return ye}))}callGetCloudVariableApi(pe,_e={},ke,De,Me,je){const $e=this.cloudVariableSdk.startSpan(xe.pB.ClientGetCloudVariable);return(0,P.H)(this.cloudVariableSdk.getCloudVariable(pe,!1,{...this.commonClientParams,..._e},$e).catch(Oe=>{this.logger.error("Error in getCloudVariable from cloudVariableSdk",Oe)})).pipe((0,i.ZZ)(Oe=>{if(Oe){if(this.sendCloudVariableFetchSuccessTelemetry(Oe,Me,je),(0,x.isEmpty)(Oe))return(0,O.$)(new R);this.cloudVariableSdk.closeSpan($e);const gt=Oe;return gt.clientRequestParams={commonClientParams:this.commonClientParams,additionalClientParams:_e},(0,_.of)({name:gt.name,variation:gt.result,value:gt.value,activity:gt.activity,metadata:gt.metadata,isCachedResult:!1,state:D.CloudVariableStatus.Unknown})}return void 0===Oe?(0,O.$)(new G):(this.sendCloudVariableFetchSuccessTelemetry(Oe,Me,je),(0,O.$)(new R))}),(0,g.W)(Oe=>($e.setTag(xe.NS.Error,!0),this.cloudVariableSdk.closeSpan($e),Oe instanceof R?ke?this.cleanupExperienceForCloudVariable(pe,De).pipe((0,i.ZZ)(()=>(0,O.$)(Oe))):(this.logger.info("Empty cloud variable and no cached response"),(0,O.$)(Oe)):ke?(this.logger.info(`Applying cached experiment: ${pe}`),this.sendCloudVariableFetchFailureTelemetry(Oe,Me,je),(0,_.of)({name:ke.name,variation:ke.result,value:ke.value,activity:ke.activity,metadata:ke.metadata,isCachedResult:!0,state:D.CloudVariableStatus.Unknown})):(this.sendCloudVariableFetchFailureTelemetry(Oe,Me,je),(0,O.$)(Oe)))),(0,A.t)(1))}cleanupExperienceForCloudVariable(pe,_e){const Me=this.getSharedStorageKey(_e[pe].activity.activationType);return this.logger.info(`Empty experiment list clearing the cache for: ${pe}`),delete _e[pe],this.sharedStorageService.writeBlock(Me,_e)}fetchCachedData(pe){let _e=(0,_.of)({});if(this.clientInfo.userId!==F.oX.Undefined){const ke=this.getSharedStorageKey(F.CV.USER_ID);_e=this.readFromSharedStorage(ke)}return(0,S.p)([_e,this.readFromSharedStorage(this.getSharedStorageKey(F.CV.DEVICE_ID))]).pipe((0,i.ZZ)(([ke,De])=>{let Me;return ke&&ke[pe]?(this.logger.info("found activity in user storage",pe,ke[pe]),Me=ke):De&&De[pe]?(this.logger.info("found activity in global storage",pe,De[pe]),Me=De):Me={},(0,_.of)(Me)}))}cacheIsCurrent(pe,_e=this.cacheMaxAge){return-1===_e?!!pe:!!(pe&&L(new Date).diff(L(this.getExperimentRefreshDate(pe)),"minutes")<=_e)}getExperimentRefreshDate(pe){return pe.metadata&&pe.metadata.refreshDate}isGxTargetConfiguredCorrectly(pe){let _e=this.isInitialized$;return pe&&(_e=this.isInitialized$.pipe((0,i.ZZ)(()=>pe),(0,i.ZZ)(ke=>(this.logger.info("Setting user info"),this.setUserInfo(ke),(0,_.of)(ke))))),_e.pipe((0,a.s)(1),(0,T.T)(()=>[!!(this.clientInfo.clientId&&this.clientInfo.clientVer&&this.clientInfo.deviceId),this.clientInfo.clientId,this.clientInfo.clientVer,this.clientInfo.deviceId,this.clientInfo.userId,this.clientInfo.idpId,this.clientInfo.browserType,this.clientInfo.clientVariant,this.clientInfo.clientType,this.clientInfo.deviceOS,this.clientInfo.deviceOSVersion,this.clientInfo.deviceType,this.clientInfo.deviceModel,this.clientInfo.deviceMake]))}sendCloudVariableFetchFailureTelemetry(pe,_e,ke){if(0===this.config.clientId.localeCompare(se)){const De=new re({sourceComponent:this.hostClientType||J.Unknown,originalService:z.GxTarget,serviceUseCase:_e,serviceSubUseCase:ke,url:pe?.config?.url||"",networkErrorCode:String(pe&&pe.response?pe.response.status:0),destinationIp:"",xRequestId:pe&&pe.xRequestId?pe.xRequestId:"",retryCount:0,wasSWCacheBypassed:te.UNDEFINED,networkErrorMessage:pe?.response?.message?.substring(0,1024)||""});this.telemetryService.push(De)}else{const De=new oe({sourceComponent:this.hostClientType||J.Unknown,originalService:z.GxTarget,serviceUseCase:_e,serviceSubUseCase:ke,url:pe?.config?.url||"",networkErrorCode:String(pe&&pe.response?pe.response.status:0),destinationIp:"",xRequestId:pe&&pe.xRequestId?pe.xRequestId:"",httpStatus:pe?.response?.status||0,responseData:"",durationMs:0,retryCount:0,wasSWCacheBypassed:te.UNDEFINED});this.telemetryService.push(De)}}sendCloudVariableFetchSuccessTelemetry(pe,_e,ke){if(0===this.config.clientId.localeCompare(se)){const De=new ge({sourceComponent:this.hostClientType||J.Unknown,originalService:z.GxTarget,serviceUseCase:_e,serviceSubUseCase:ke,url:pe?.url||"",httpStatus:pe?.httpStatus||200,durationMs:Math.round(pe?.durationMs)||0,destinationIp:"",responseData:"",xRequestId:pe?.xRequestId||"",retryCount:0,wasSWCacheBypassed:te.UNDEFINED});this.telemetryService.push(De)}else{const De=new oe({sourceComponent:this.hostClientType||J.Unknown,originalService:z.GxTarget,serviceUseCase:_e,serviceSubUseCase:ke,url:pe?.url||"",networkErrorCode:"",destinationIp:"",xRequestId:pe?.xRequestId||"",httpStatus:pe?.httpStatus||200,responseData:"",durationMs:Math.round(pe?.durationMs)||0,retryCount:0,wasSWCacheBypassed:te.UNDEFINED});this.telemetryService.push(De)}}}return(Z=de).\u0275fac=function(pe){return new(pe||Z)(n.KVO(p),n.KVO(V.J6),n.KVO(F.H0),n.KVO(ue.yQ),n.KVO(V.zW),n.KVO(N.mZ),n.KVO(V.iH))},Z.\u0275prov=n.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}),de})()},16421:(Ue,W,d)=>{"use strict";d.d(W,{dt:()=>D,bi:()=>$});var n=d(3567),l=d(43848),p=d(16229),m=d(3496),_=d(31315),P=d(27731),v=d(36877),O=d(12532),S=d(892),y=d(72147),r=d(10174),i=d(83915),a=d(53461),h=d(65726),g=d(34593),c=d(55833),T=d(91384),A=d(8282),L=d(58527);const V=new L.nKC("NV_GAMEPAD_CONFIG");var D=function(ee){return ee[ee.A=0]="A",ee[ee.B=1]="B",ee[ee.X=2]="X",ee[ee.Y=3]="Y",ee[ee.LeftBumper=4]="LeftBumper",ee[ee.RightBumper=5]="RightBumper",ee[ee.LeftTrigger=6]="LeftTrigger",ee[ee.RightTrigger=7]="RightTrigger",ee[ee.Back=8]="Back",ee[ee.Start=9]="Start",ee[ee.LeftStick=10]="LeftStick",ee[ee.RightStick=11]="RightStick",ee[ee.DpadUp=12]="DpadUp",ee[ee.DpadDown=13]="DpadDown",ee[ee.DpadLeft=14]="DpadLeft",ee[ee.DpadRight=15]="DpadRight",ee[ee.Center=16]="Center",ee}(D||{}),F=d(54292);const R=.6,G=.05;function K(){return(0,y.n)(ee=>ee?(0,p.h)((0,l.of)(!0),(0,m.O)(250,250).pipe((0,r.u)(!0))):(0,l.of)(!1))}let $=(()=>{var ee;class J{get isGamepadConnected$(){const te=this.systemInfoService.getSystemInfo([n.Lu.HID]).pipe((0,i.T)(re=>re?.HID?.GamePad?.length>0));return(0,_.zV)([te,this._isGamepadConnected$]).pipe((0,i.T)(([re,ge])=>re||ge))}get isAnyGamepadInUse$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,i.T)(te=>te.some(X=>this.isAnyAxisTriggeredOrButtonPressed(X))),(0,a.F)()))}get leftPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,i.T)(te=>te.some(X=>this.isAxisTriggeredOrButtonPressed(X,re=>re[0]<-R,D.DpadLeft))),(0,a.F)(),K()))}get rightPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,i.T)(te=>te.some(X=>this.isAxisTriggeredOrButtonPressed(X,re=>re[0]>R,D.DpadRight))),(0,a.F)(),K()))}get upPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,i.T)(te=>te.some(X=>this.isAxisTriggeredOrButtonPressed(X,re=>re[1]<-R,D.DpadUp))),(0,a.F)(),K()))}get downPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,i.T)(te=>te.some(X=>this.isAxisTriggeredOrButtonPressed(X,re=>re[1]>R,D.DpadDown))),(0,a.F)(),K()))}get rightStickMoved$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,i.T)(te=>te.some(X=>this.isAxisTriggeredOrButtonPressed(X,re=>re[2]>G||re[3]<-G,D.RightStick))),(0,a.F)()))}onButtonPressed$(te,X){return this.ngZone.runOutsideAngular(()=>this.getButtonPressed$(this.gamepadsTick$,te,X))}onButtonLongPressed$(te){return this.ngZone.runOutsideAngular(()=>this.getButtonPressed$(this.gamepadsTick$,te).pipe((0,y.n)(X=>X?(0,l.of)(!0).pipe((0,h.c)(800)):P.t)))}onButtonComboPressed$(te){return this.ngZone.runOutsideAngular(()=>this.getButtonComboPressed$(this.gamepadsTick$,te))}constructor(te,X,re,ge,oe,xe){this.ngZone=re,this.browserSupportService=ge,this.systemInfoService=oe,this.doNotUseWebGamepadAPI=!!xe?.doNotUseWebGamepadAPI,this.logger=te.getLogger("GamepadService");const se=ce=>ce?.connected&&(!!n.zk.isAndroidPlatform()||(ce=>"standard"===ce?.mapping)(ce));re.runOutsideAngular(()=>{this._isGamepadConnected$=this.doNotUseWebGamepadAPI?(0,l.of)(!1):(0,p.h)((0,v.R)(window,"gamepadconnected"),(0,v.R)(window,"gamepaddisconnected")).pipe((0,g.Z)(0),(0,i.T)(de=>this.browserSupportService.getGamepads().some(se)),(0,a.F)(),(0,c.t)(1));const ce=X.leanModeTransitionState.pipe((0,g.Z)(10),(0,i.T)(de=>de?33:10),(0,a.F)()),Z=ge.applicationWindowState$.pipe((0,i.T)(de=>"foreground"===de));this.gamepadsTick$=this.doNotUseWebGamepadAPI?O.w:(0,_.zV)([this._isGamepadConnected$,Z]).pipe((0,y.n)(([de,ae])=>de&&ae?(this.logger.info("Start polling gamepad state"),ce.pipe((0,T.M)(pe=>{this.logger.info(`Polling gamepad state with period: ${pe} ms`)}),(0,y.n)(pe=>(0,S.Y)(pe)),(0,i.T)(pe=>ge.getGamepads().filter(se)))):(this.logger.info(`Stop polling gamepad state (connected=${de}, foreground=${ae})`),(0,l.of)([]))),(0,A.u)())})}getButtonComboPressed$(te,X){return te.pipe((0,i.T)(re=>re.some(ge=>X.every(oe=>this.isButtonPressed(ge,oe)))),(0,a.F)())}getButtonPressed$(te,X,re){const ge=!!re?.repeat,oe=te.pipe((0,i.T)(xe=>xe.some(ue=>this.isButtonPressed(ue,X,re?.customButtonIndex))),(0,a.F)());return ge?oe.pipe(K()):oe}isButtonPressed(te,X,re){return te.buttons[re??X].pressed}isAxisTriggeredOrButtonPressed(te,X,re){return X(te.axes)||this.isButtonPressed(te,re)}isAnyAxisTriggeredOrButtonPressed(te){return te.buttons.some(ge=>ge.pressed)||te.axes.some(ge=>ge>G||ge<-G)}}return(ee=J).\u0275fac=function(te){return new(te||ee)(L.KVO(n.J6),L.KVO(n.rQ),L.KVO(L.SKi),L.KVO(F.vT),L.KVO(n.zW),L.KVO(V,8))},ee.\u0275prov=L.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"}),J})()},33089:(Ue,W,d)=>{"use strict";d.d(W,{NO:()=>h,Qe:()=>g});var n=d(43848),l=d(75707),p=d(20468),m=d(26875),O=function(T){return T.GfcHeadRequest="FeedbackHead",T.GfcAttachmentRequest="FeedbackAttachment",T}(O||{}),S=d(58527);let y=(()=>{var T;class A{}return(T=A).\u0275fac=function(x){return new(x||T)},T.\u0275prov=S.jDH({token:T,factory:T.\u0275fac}),A})();var r=d(5798);const a="gfc/v4.0/attachment";let h=(()=>{var T;class A{constructor(x,V){this.serverConfig=x,this.endpointFactory=V,this.latestOffset=0,this.commonFeedbackEventData={},this.previousChunkDataSize=0,this.prepareCommonFeedbackData(x),this.feedbackEndpointUrl=this.prepareFeedbackEndpoint(),this.feedbackAttachmentEndpointUrl=this.prepareFeedbackAttachmentEndpoint()}generateUrl(x){return this.serverConfig.server+"/"+x}computeSHA256Checksum(x){let V="";return(0,m.isEmpty)(x)||(V=(0,p.sha256)(x)),V}getDataSize(x){return(0,m.isEmpty)(x)?0:new Blob([x]).size}prepareFeedbackEndpoint(){return this.feedbackEndpointUrl=this.endpointFactory.createEndpoint({headers:{"Content-Type":"application/json"},config:{timeout:this.serverConfig.defaultTimeout,timeBetweenRetries:this.serverConfig.defaultTimeBetweenRetries,maxRetries:this.serverConfig.defaultRetries},reportRequestData:{originalService:"Gfc",serviceUseCase:O.GfcHeadRequest,reportSuccessTelemetry:"false"}}),this.feedbackEndpointUrl}prepareFeedbackAttachmentEndpoint(){return this.feedbackAttachmentEndpointUrl=this.endpointFactory.createEndpoint({config:{timeout:this.serverConfig.defaultTimeout,timeBetweenRetries:this.serverConfig.defaultTimeBetweenRetries,maxRetries:this.serverConfig.defaultRetries},reportRequestData:{originalService:"Gfc",serviceUseCase:O.GfcAttachmentRequest,reportSuccessTelemetry:"false"}}),this.feedbackAttachmentEndpointUrl}prepareCommonFeedbackData(x){this.commonFeedbackEventData=(0,m.extend)(this.commonFeedbackEventData,{clientId:x.clientId,feedbackProtocol:"4.4",feedbackSchemaVer:x.schemaVersion,feedbackSysVer:x.version})}buildGFCMultipartData(x,V,D,F,I=0,k=!1){const R=new FormData;return R.append("data2",new Blob([x])),R.append("feedbackId",V),R.append("size",D.toString()),R.append("checksum",this.computeSHA256Checksum(x)),F&&R.append("parameters",JSON.stringify(F.parameters)),R.append("offset",I.toString()),k&&R.append("eob","true"),R}updatePreviousChunkSizeAndBuildMultipartData(x,V,D=!1){return this.previousChunkDataSize=this.getDataSize(x),this.buildGFCMultipartData(x,this.xFeedbackId,this.previousChunkDataSize,V,this.latestOffset,D)}sendFeedbackHeadRequest(x){return x=(0,m.merge)(x,this.commonFeedbackEventData),this.feedbackEndpointUrl.makeRequestEx("POST",this.generateUrl("gfc/v4.0/head"),{body:x,headers:{"Content-Type":"application/json"},withCredentials:!0})}sendFeedbackEvent(x){return this.latestOffset=0,this.xFeedbackId=x.feedbackId,this.sendFeedbackHeadRequest(x)}sendFeedbackChunkEvent(x,V,D=!1,F){if(D){if(F?.isBrowserClosing)return this.sendLastFeedbackChunkEvent(x,V),(0,n.of)({});{F.prevChunkInProgress&&this.updateOffsetOnSuccessfulAttachmentRequest();const I=this.updatePreviousChunkSizeAndBuildMultipartData(x,V,!0);return this.latestOffset=0,this.sendFeedbackAttachmentReq(I)}}{const I=this.updatePreviousChunkSizeAndBuildMultipartData(x,V);return this.sendFeedbackAttachmentReq(I)}}sendFeedbackAttachmentReq(x){return this.feedbackAttachmentEndpointUrl.makeRequestEx("POST",this.generateUrl(a),{body:x,withCredentials:!0})}sendLastFeedbackChunkEvent(x,V){const D=this.updatePreviousChunkSizeAndBuildMultipartData(x,V,!0);navigator.sendBeacon(this.generateUrl(a),D),this.latestOffset=0}updateOffsetOnSuccessfulAttachmentRequest(x){this.latestOffset=x||Number(this.latestOffset)+Number(this.previousChunkDataSize)}sendFeedbackBasedOnTechConsent(x,V,D){return x.sentTs=(new Date).toISOString(),this.sendFeedbackHeadRequest(x).pipe((0,l.ZZ)(()=>{if(V){const F=this.buildGFCMultipartData(D,x.feedbackId,this.getDataSize(D),void 0,0,!0);return this.sendFeedbackAttachmentReq(F)}return(0,n.of)(!0)}))}}return(T=A).\u0275fac=function(x){return new(x||T)(S.KVO(y),S.KVO(r.t))},T.\u0275prov=S.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),A})();const g="undefined"},67017:(Ue,W,d)=>{"use strict";d.d(W,{F:()=>re});var n=d(57258),l=d(43848),p=d(31315),m=d(65706),_=d(75707),P=d(72147),v=d(83915),O=d(14714),S=d(74931),y=d(20381),r=d(3567);const i="desktop",a="browser",h="android",c="selectOtherLayout";var T=function(oe){return oe.WindowsOS="Windows",oe.BrowserChromeOS="ChromeOS",oe.BrowserMacOS="macOS",oe.NativeMacOS="Mac",oe.XboxOS="Xbox",oe.AndroidOS="Android",oe.ShieldOS="Shield",oe}(T||{}),A=function(oe){return oe.Default="default",oe.Mac="mac",oe}(A||{});const L={WindowsOS:A.Default,BrowserChromeOS:A.Default,BrowserMacOS:A.Mac,NativeMacOS:A.Mac,XboxOS:A.Default,AndroidOS:A.Default},x={[i+T.WindowsOS]:"en-US",[i+T.NativeMacOS]:"m-us",[a+T.WindowsOS]:"en-US",[a+T.BrowserMacOS]:"m-us",[a+T.BrowserChromeOS]:"en-US",[a+T.XboxOS]:"en-US",[h+T.AndroidOS]:"en-US",[h+T.ShieldOS]:"en-US"},V=[`${i}${T.WindowsOS}`,`${i}${T.NativeMacOS}`,`${a}${T.WindowsOS}`,`${a}${T.BrowserMacOS}`,`${a}${T.BrowserChromeOS}`,`${a}${T.XboxOS}`,`${h}${T.AndroidOS}`,`${h}${T.ShieldOS}`],D={albanian:{default_keyCode:"sq-AL"},armenianPhonetic:{default_keyCode:"hy-AM"},assameseInscript:{default_keyCode:"as-IN"},azerbaijaniCyrillic:{default_keyCode:"az-Cyrl-AZ"},azerbaijaniLatin:{default_keyCode:"az-Latn-AZ"},banglaIndia:{default_keyCode:"bn-IN"},bashkir:{default_keyCode:"ba-RU"},belarusian:{default_keyCode:"be-BY"},belgianPeriod:{default_keyCode:"nl-BE"},belgianFrench:{default_keyCode:"fr-BE"},bosnianCyrillic:{default_keyCode:"bs-Cyrl-BA"},bulgarian:{default_keyCode:"bg-BG"},canadianEnglish:{default_keyCode:"en-CA"},canadianFrench:{default_keyCode:"fr-CA"},cherokeeNation:{default_keyCode:"chr-Cher-US"},chineseSimplified:{default_keyCode:"zh-CN"},chineseSimplifiedSingapore:{default_keyCode:"zh-SG"},chineseTraditional:{default_keyCode:"zh-TW"},chineseTraditionalHongKongSAR:{default_keyCode:"zh-HK"},chineseTraditionalMacaoSAR:{default_keyCode:"zh-MO"},croatian:{default_keyCode:"hr-HR",mac_keyCode:"m-hr"},czech:{default_keyCode:"cs-CZ",mac_keyCode:"m-cs"},danish:{default_keyCode:"da-DK",mac_keyCode:"m-da"},divehiPhonetic:{default_keyCode:"dv-MV"},dutch:{default_keyCode:"nl-NL",mac_keyCode:"m-nl-NL"},dzongkha:{default_keyCode:"dz-BT"},englishIndia:{default_keyCode:"en-IN"},englishUK:{default_keyCode:"en-GB",mac_keyCode:"m-brit"},englishUS:{default_keyCode:"en-US",mac_keyCode:"m-us"},estonian:{default_keyCode:"et-EE",mac_keyCode:"m-et"},faeroese:{default_keyCode:"fo-FO"},finnish:{default_keyCode:"fi-FI",mac_keyCode:"m-fi"},french:{default_keyCode:"fr-FR",mac_keyCode:"m-fr"},georgianQWERTY:{default_keyCode:"ka-GE"},german:{default_keyCode:"de-DE",mac_keyCode:"m-de"},greek:{default_keyCode:"el-GR",mac_keyCode:"m-el"},greenlandic:{default_keyCode:"kl-GL"},guarani:{default_keyCode:"gn-PY"},gujarati:{default_keyCode:"gu-IN"},hausa:{default_keyCode:"ha-Latn-NG"},hebrew:{default_keyCode:"he-IL"},hindiTraditional:{default_keyCode:"hi-IN"},hungarian:{default_keyCode:"hu-HU",mac_keyCode:"m-hu"},icelandic:{default_keyCode:"is-IS",mac_keyCode:"m-is"},igbo:{default_keyCode:"ig-NG"},inuktitutLatin:{default_keyCode:"iu-Latn-CA"},inuktitutNaqittaut:{default_keyCode:"iu-Cans-CA"},irish:{default_keyCode:"en-IE",mac_keyCode:"m-en-ie"},italian:{default_keyCode:"it-IT"},japanese106:{default_keyCode:"ja-106",mac_keyCode:"m-ja-106"},kannada:{default_keyCode:"kn-IN"},kazakh:{default_keyCode:"kk-KZ"},khmer:{default_keyCode:"km-KH"},korean:{default_keyCode:"ko-KR"},kyrgyzCyrillic:{default_keyCode:"ky-KG"},lao:{default_keyCode:"lo-LA"},latvianStandard:{default_keyCode:"lv-LV"},lithuanian:{default_keyCode:"lt-LT"},luxembourgish:{default_keyCode:"lb-LU"},macedonianStandard:{default_keyCode:"mk-MK"},malayalam:{default_keyCode:"ml-IN"},marathi:{default_keyCode:"mr-IN"},mongolianCyrillic:{default_keyCode:"mn-MN"},mongolianMongolianScriptStandard:{default_keyCode:"mn-Mong-CN"},nepali:{default_keyCode:"ne-NP"},norwegian:{default_keyCode:"nb-NO",mac_keyCode:"m-no"},norwegianSami:{default_keyCode:"se-NO"},odia:{default_keyCode:"or-IN"},pashtoAfghanistan:{default_keyCode:"ps-AF"},persian:{default_keyCode:"fa-IR"},polish:{default_keyCode:"pl-PL"},portuguese:{default_keyCode:"pt-PT",mac_keyCode:"m-pt"},portugueseBrazilianABNT:{default_keyCode:"pt-BR"},punjabiGurumukhi:{default_keyCode:"pa-IN"},russian:{default_keyCode:"ru-RU",mac_keyCode:"m-ru"},sakha:{default_keyCode:"sah-RU"},serbianCyrillic:{default_keyCode:"sr-Cyrl-CS"},serbianLatin:{default_keyCode:"sr-Latn-CS",mac_keyCode:"sr-Latn"},sesothoSaLeboa:{default_keyCode:"nso-ZA"},setswana:{default_keyCode:"tn-ZA"},sinhala:{default_keyCode:"si-LK"},slovak:{default_keyCode:"sk-SK",mac_keyCode:"m-sk"},slovenian:{default_keyCode:"sl-SI",mac_keyCode:"m-sl"},sorbianStandard:{default_keyCode:"hsb-DE"},spanish:{default_keyCode:"es-ES_tradnl",mac_keyCode:"m-es"},spanishLatinAmerican:{default_keyCode:"es-MX"},swedish:{default_keyCode:"sv-SE",mac_keyCode:"m-sv"},swedishSami:{default_keyCode:"se-SE"},swissFrench:{default_keyCode:"fr-CH",mac_keyCode:"m-ch-fr"},swissGerman:{default_keyCode:"de-CH",mac_keyCode:"m-ch-de"},syriac:{default_keyCode:"syr-SY"},tajik:{default_keyCode:"tg-Cyrl-TJ"},tamazightCentral:{default_keyCode:"tzm-Latn-DZ"},tamil:{default_keyCode:"ta-IN"},tatar:{default_keyCode:"tt-RU"},telugu:{default_keyCode:"te-IN"},thaiKedmanee:{default_keyCode:"th-TH"},tibetanPRCStandard:{default_keyCode:"bo-CN"},turkishQ:{default_keyCode:"tr-TR"},turkmen:{default_keyCode:"tk-TM"},urdu:{default_keyCode:"ur-PK"},uyghur:{default_keyCode:"ug-CN"},uzbekCyrillic:{default_keyCode:"uz-Cyrl-UZ"},vietnamese:{default_keyCode:"vi-VN"},wolof:{default_keyCode:"wo-SN"},yoruba:{default_keyCode:"yo-NG"},australian:{mac_keyCode:"m-AU"},austrian:{mac_keyCode:"m-AT"},belgian:{mac_keyCode:"m-nl-be"},brazilian:{mac_keyCode:"m-pt-br"},canadian:{mac_keyCode:"m-en-ca"},canadianCSA:{mac_keyCode:"m-ca-csa"},croatianPC:{default_keyCode:"hr-BA"},dvorak:{mac_keyCode:"m-dv"},englishABC:{mac_keyCode:"m-en-abc"},englishABCAZERTY:{mac_keyCode:"m-fr-abc"},englishUSInternationalPC:{mac_keyCode:"m-us-int"},faroese:{mac_keyCode:"m-fo"},frenchNumerical:{mac_keyCode:"m-fr-num"},frenchPC:{mac_keyCode:"m-fr-pc"},hawaiian:{default_keyCode:"haw-US"},italianPro:{mac_keyCode:"m-it-pro"},latvian:{mac_keyCode:"m-lv"},maltese:{default_keyCode:"mt-MT"},maori:{default_keyCode:"mi-NZ"},polishPro:{mac_keyCode:"m-pl-pro"},romanian:{mac_keyCode:"m-ro"},romanianStandard:{default_keyCode:"ro-RO"},serbian:{default_keyCode:"sr-Cyrl"},spanishISO:{mac_keyCode:"m-es-ISO"},swedishPro:{mac_keyCode:"m-sv-pro"},turkishQWERTY:{mac_keyCode:"m-tr-qty"},ukrainian:{mac_keyCode:"m-uk"},ukrainianPC:{default_keyCode:"uk-UA"},welsh:{default_keyCode:"cy-GB"},arabic101:{default_keyCode:"ar-SA"},japanese102:{default_keyCode:"ja-JP"},arabic:{mac_keyCode:"m-ar"},russianPC:{mac_keyCode:"m-ru-win"},russianPhonetic:{mac_keyCode:"m-ru-ph"}},F_windowsList=["albanian","arabic101","armenianPhonetic","assameseInscript","azerbaijaniCyrillic","azerbaijaniLatin","banglaIndia","bashkir","belarusian","belgianPeriod","belgianFrench","bosnianCyrillic","bulgarian","canadianEnglish","canadianFrench","cherokeeNation","chineseSimplified","chineseSimplifiedSingapore","chineseTraditional","chineseTraditionalHongKongSAR","chineseTraditionalMacaoSAR","croatian","czech","danish","divehiPhonetic","dutch","dzongkha","englishIndia","englishUK","welsh","englishUS","estonian","faeroese","finnish","french","georgianQWERTY","german","greek","greenlandic","guarani","gujarati","hausa","hebrew","hindiTraditional","hungarian","icelandic","igbo","inuktitutLatin","inuktitutNaqittaut","irish","italian","japanese106","japanese102","kannada","kazakh","khmer","korean","kyrgyzCyrillic","lao","latvianStandard","lithuanian","luxembourgish","macedonianStandard","malayalam","maltese","maori","marathi","mongolianCyrillic","mongolianMongolianScriptStandard","nepali","norwegian","norwegianSami","odia","pashtoAfghanistan","persian","polish","portuguese","portugueseBrazilianABNT","punjabiGurumukhi","romanianStandard","russian","sakha","serbianCyrillic","serbianLatin","sesothoSaLeboa","setswana","sinhala","slovak","slovenian","sorbianStandard","spanish","spanishLatinAmerican","swedish","swedishSami","swissFrench","swissGerman","syriac","tajik","tamazightCentral","tamil","tatar","telugu","thaiKedmanee","tibetanPRCStandard","turkishQ","turkmen","ukrainianPC","urdu","uyghur","uzbekCyrillic","vietnamese","wolof","yoruba"],F_macList=["arabic","australian","austrian","belgian","brazilian","bulgarian","belarusian","canadian","canadianCSA","chineseSimplified","chineseTraditional","croatian","croatianPC","czech","danish","dutch","dvorak","englishABC","englishABCAZERTY","englishUK","englishUS","englishUSInternationalPC","estonian","faroese","finnish","french","frenchNumerical","frenchPC","georgianQWERTY","german","greek","hawaiian","hebrew","hungarian","icelandic","irish","italian","italianPro","korean","latvian","lithuanian","macedonianStandard","maltese","maori","norwegian","polish","polishPro","portuguese","romanian","romanianStandard","russian","russianPC","russianPhonetic","serbian","serbianLatin","slovak","slovenian","spanish","spanishISO","swedish","swedishPro","swissFrench","swissGerman","turkishQWERTY","ukrainian","ukrainianPC","vietnamese","welsh","japanese106","japanese102"],F_browserWindowsList=["englishUS","spanishLatinAmerican","turkishQ","spanish","portugueseBrazilianABNT","french","englishUK","polish","german","hungarian","italian","romanianStandard","portuguese","czech","canadianEnglish","swedish","englishIndia","bulgarian","hebrew","croatian","dutch","slovak","serbianLatin","russian","chineseSimplified","japanese106","korean","chineseTraditional","japanese102"],F_browserMacList=["englishUS","englishABC","englishUK","spanishISO","canadian","german","french","italianPro","polishPro","frenchNumerical","englishUSInternationalPC","dutch","swedishPro","chineseSimplified","danish","hungarian","canadianCSA","finnish","russian","japanese106","korean","chineseTraditional"],F_browserXboxList=["englishUS","spanishLatinAmerican","turkishQ","russian","spanish","portugueseBrazilianABNT","french","englishUK","polish","german","hungarian","italian","romanianStandard","portuguese","czech","canadianEnglish","swedish","englishIndia","serbianLatin","hebrew","dutch"],F_androidList=["englishUS","spanishLatinAmerican","turkishQ","spanish","portugueseBrazilianABNT","french","englishUK","polish","german","hungarian","italian","romanianStandard","portuguese","czech","canadianEnglish","swedish","englishIndia","bulgarian","hebrew","croatian","dutch","slovak","serbianLatin","russian","chineseSimplified","japanese106","korean","chineseTraditional","japanese102"],I_browserWindowsList=["ru-RU"],I_browserMacList=["m-ru"];var k=function(oe){return oe.Functional="functional",oe.Technical="technical",oe.Behavioral="behavioral",oe}(k||{});class R{constructor(xe){this.parameters=xe,this.ts=(new Date).toISOString()}}const G={OverrideKeyboardLayout:{name:"OverrideKeyboardLayout",gdprLevel:k.Functional}};class Y extends R{constructor(xe){super(xe),this.name=G.OverrideKeyboardLayout.name,this.gdprLevel=G.OverrideKeyboardLayout.gdprLevel}}var K=d(58527),$=d(97152),ee=d(72945),J=d(65240),z=d(78812),te=S.Or.Share.Shareserver.HotkeyEnum;const X="keyboardLayout";let re=(()=>{var oe;class xe{constructor(N,se,ce,Z,de,ae,pe,_e,ke,De,Me){this.idmService=N,this.loggingService=se,this.systemInfoService=ce,this.bridgeService=Z,this.sharedStorage=de,this.translateService=ae,this.localeService=pe,this.experienceControl=_e,this.telemetryService=ke,this.hotKeyHelper=De,this.config=Me,this.defaultKbLayout$=new n.m(1),this.isPlatformBrowserLike=r.zk.isBrowserLikePlatform(),this.isPlatformBrowser=r.zk.isBrowserPlatform(),this.isPlatformAndroid=r.zk.isAndroidPlatform(),this.keyboardLayoutChange=new n.m(1),this.placeholder=new n.m(1),this.logger=se.getLogger("KeyboardLayoutService"),this.logger.info("Initializing KeyboardLayoutService"),this.showOtherKeyboardLayout=!!this.config.featureEnablement?.showOtherKeyboardLayout,this.registerKBLayoutChange(),this.getKeyboardLayoutsList().subscribe(je=>{this.isPlatformBrowserLike?this.setDefaultLayoutAndPlaceholder():this.sendKeyboardLayoutTelemetry()},je=>{this.logger.info("Error getting the list of keyboard layouts : ",je)}),this.readCachedKeyboardLayout()}sendKeyboardLayoutTelemetry(){this.readCachedKeyboardLayout().pipe((0,m.s)(1),(0,_.ZZ)(N=>{const se=new Y({previousKeyboardLayout:"",overrideKeyboardLayout:N?.code??"",defaultKeyboardLayout:""});return this.isPlatformBrowserLike?(se.parameters.defaultKeyboardLayout=this.getDefaultKBLayoutCode(),(0,l.of)(se)):this.detectKeyboardLayout().pipe((0,m.s)(1),(0,_.ZZ)(ce=>(se.parameters.defaultKeyboardLayout=ce,(0,l.of)(se))))})).subscribe(N=>{this.logger.info("Sending defaultKeyboardLayout telemetry through OverrideKeyboardLayout event",N),this.telemetryService.push(N)})}setDefaultLayoutAndPlaceholder(){this.idmService.accountStatusChanged.pipe((0,P.n)(N=>N.isAuthenticated?this.queryGxTargetForDefaultKBLayout():(0,l.of)(!1))).subscribe(N=>{this.handleDefaultKeyboardLayout(N),this.sendKeyboardLayoutTelemetry(),this.placeholder.next(this.getBrowserPlaceholder())})}get onKBLayoutChange$(){return this.keyboardLayoutChange.asObservable()}kbLayoutChanged(N){this.keyboardLayoutChange.next(N)}queryGxTargetForDefaultKBLayout(){return this.experienceControl.getCloudVariable("defaultKeyboardLayout",{userDefaultUILanguage:this.localeService.getShortLocale()},{useCache:!1},y.Ky.GxTargetGetCloudVariable,y.Id.GxTargetGetKBLayoutsConfig).pipe((0,v.T)(N=>N.value),(0,O.W)(N=>(this.logger.error("Failed to resolve gx-target cloud variable:",N),(0,l.of)(!1))))}get fetchClientIMEHotkeys(){return this.bridgeService.executeCommand(S.Ts.Share.Shareserver.GetHotkeyShortcut,{hotkey:te.NativeKeyboardInputDialog}).pipe((0,v.T)(N=>N.keys),(0,v.T)(N=>this.hotKeyHelper.shortcutToString(N)))}get isOtherDefaultLayout(){return this._isOtherDefaultLayout}initializeKeyboardLayoutsListFromJson(N,se){const ce=[];for(const ae of N){const pe=D[ae];ce.push({name:this.translateService.instant("common.keyboardLayout.layouts."+ae),code:pe[`${se}_keyCode`]||pe[`${A.Default}_keyCode`]})}const Z=this.localeService.getShortLocale();this.logger.info("Getting the language from locale for sorting purposes : ",Z);const de=new Intl.Collator(Z,{numeric:!0,sensitivity:"base"});return ce.sort(function(ae,pe){return de.compare(ae.name,pe.name)}),this.showOtherKeyboardLayout&&ce.unshift({name:this.translateService.instant("settings.keyboardLayout.other"),code:this.getDefaultKBLayoutCodeForOther(),params:{isOtherLayout:!0,showOnTop:!0}}),ce}getKeyboardLayoutsList(){if(this.keyboardLayoutsList$)return this.keyboardLayoutsList$.asObservable();const N=new n.m(1);return this.logger.info("Fetching the list of Keyboard Layouts to be displayed"),this.keyboardLayoutsList$=N,(0,p.zV)([this.systemInfoService.getSystemInfo([r.Lu.OSName,r.Lu.OSVersion,r.Lu.Platform]),this.localeService.localeChanged]).pipe((0,m.s)(1)).subscribe(([se,ce])=>{this.logger.info("Getting the OS info using System info Service :",se);let de,Z=[];this.platform=se.Platform;const ae=this.platform?.toUpperCase();this.isPlatformBrowser?ae===T.WindowsOS.toUpperCase()||ae===T.BrowserChromeOS.toUpperCase()?(Z=F_browserWindowsList,de=L.BrowserChromeOS):ae===T.BrowserMacOS.toUpperCase()?(Z=F_browserMacList,de=L.BrowserMacOS):ae===T.XboxOS.toUpperCase()&&(Z=F_browserXboxList,de=L.XboxOS):this.isPlatformAndroid?(Z=F_androidList,de=L.AndroidOS):ae===T.WindowsOS.toUpperCase()?(Z=F_windowsList,de=L.WindowsOS):ae===T.NativeMacOS.toUpperCase()&&(Z=F_macList,de=L.NativeMacOS),Z.length>0?(this.defaultKBLayoutCodeForOther=x[this.getPlatformOS()],this.translatedKBLayoutList=this.initializeKeyboardLayoutsListFromJson(Z,de),N.next(this.translatedKBLayoutList),N.complete()):(this.logger.info(`Keyboard Layout feature is not supported on ${ae}, disabling it`),N.complete(),this.keyboardLayoutsList$=null)},se=>{N.error(se),this.keyboardLayoutsList$=null}),N.asObservable()}getPlatformOS(){let N=i;return this.isPlatformAndroid?N=h:this.isPlatformBrowser&&(N=a),`${N}${this.platform}`}handleDefaultKeyboardLayout(N){const se=this.getPlatformOS(),ce=N||x;this.logger.info("Default keyboard layout for the user :",ce);const Z=ce[se];Z&&Z!==c?this.defaultKBLayoutCode=Z:(this._isOtherDefaultLayout=Z===c,this.defaultKBLayoutCode=this.defaultKBLayoutCodeForOther),this.setDefaultKBLayout(this.translatedKBLayoutList,this.defaultKBLayoutCodeForOther)}detectKeyboardLayout(){return this.bridgeService.executeCommand(S.Ts.Gfn.Streaming.GetKeyboardLayout)}onKBLayoutChange(){return this.bridgeService.executeCommand(S.Ts.Gfn.Streaming.OnKBLayoutChange)}isNonEnglishKeyboardLayout(N,se){let ce=[];return!(!this.isPlatformBrowserLike||!N)&&(se===r.t_.Windows||se===r.t_.ChromeOS||se===r.t_.XBox?ce=I_browserWindowsList:se===r.t_.MacOS&&(ce=I_browserMacList),-1!==ce.indexOf(N))}saveKeyboardLayoutToSharedStorage(N){return this.cachedKeyboardLayout$.next(N),this.sharedStorage.writeBlock(X,N)}saveKeyboardLayoutCodeToSharedStorage(N){const se=this.translatedKBLayoutList.find(ce=>ce.code===N);return this.saveKeyboardLayoutToSharedStorage(se)}readCachedKeyboardLayout(){if(this.cachedKeyboardLayout$)return this.cachedKeyboardLayout$.asObservable();const N=new n.m(1);return this.logger.info("Fetching the cache value of Keyboard Layout"),this.cachedKeyboardLayout$=N,this.sharedStorage.readBlock(X).subscribe(se=>(this.logger.info("Keyboard Layout cache read reponse",se),N.next(se),(0,l.of)(se)),se=>{N.error(se),this.cachedKeyboardLayout$=null}),N}removeCachedKeyboardLayout(){return this.cachedKeyboardLayout$.next({}),this.sharedStorage.removeBlock(X)}getKeyboardLayoutEnabled(N){return this.config.featureEnablement?.showPhysicalKeyboardLayoutSetting&&V.filter(se=>se.toUpperCase()===N?.toUpperCase()).length>0}getDefaultKBLayoutCodeForOther(){return this.defaultKBLayoutCodeForOther}getDefaultKBLayoutCode(){return this.defaultKBLayoutCode}getDefaultKBLayout(){return this.defaultKbLayout}getDefaultKBLayoutObservable(){return this.defaultKbLayout$.asObservable()}setDefaultKBLayout(N,se){let ce;ce=N.filter(Z=>this.isOtherDefaultLayout?Z.params?.isOtherLayout:Z.code===this.getDefaultKBLayoutCode()&&!Z.params?.isOtherLayout)[0],ce||(ce=N.filter(Z=>Z.code===se&&!Z.params?.isOtherLayout)[0]),this.defaultKbLayout=ce,this.logger.info("Set default kb layout",this.defaultKbLayout),this.defaultKbLayout$.next(this.defaultKbLayout)}selectKeyboardLayout(N,se,ce){this.logger.info("Keyboard layout override event triggered");const Z=new Y({previousKeyboardLayout:"",overrideKeyboardLayout:"",defaultKeyboardLayout:""});let de,ae,pe;const _e=this.getDefaultKBLayout();N?(ae=N.code,pe=this.isPlatformBrowserLike?_e?.code:ce?.code,de=se?.code||pe,this.logger.info("Keyboard Layout Override event. Saving to cache. Override Keyboard Layout: ",N),this.saveKeyboardLayoutToSharedStorage(N).subscribe(ke=>{this.logger.info("Keyboard layout cache saved successfully : ",ke)},ke=>this.logger.info("Keyboard layout cache save failed : ",ke))):(this.isPlatformBrowserLike?(ae=_e?.code,pe=_e?.code,this.logger.info(`Default (${_e?.name}) ${_e?.code} keyboard layout selected. Clearing the cache.`)):(ae=ce?.code,pe=ce?.code,this.logger.info("Auto keyboard layout selected. Clearing the cache.")),de=se?.code||pe,this.removeCachedKeyboardLayout().subscribe(ke=>this.logger.info("Keyboard layout cache cleared : ",ke),ke=>this.logger.info("Keyboard layout cache clear failed : ",ke))),Z.parameters.previousKeyboardLayout=de,Z.parameters.overrideKeyboardLayout=ae,Z.parameters.defaultKeyboardLayout=pe,this.logger.info("Sending override keyboard layout event telemetry",Z),this.telemetryService.push(Z)}isAutoOtherKBLayout(N){return this.detectKeyboardLayout().pipe((0,m.s)(1),(0,P.n)(se=>{const ce=N.find(Z=>Z.code===se&&!Z.params?.isOtherLayout);return(0,l.of)(!ce&&this.showOtherKeyboardLayout)}))}getNativePlaceholder(N){if(this.logger.info("detectedKeyboardLayout : ",N),this.logger.info("isOtherKeyboardLayoutEnabled : ",this.showOtherKeyboardLayout),N||this.showOtherKeyboardLayout){const se=this.translateService.instant("common.other");return this.translateService.instant("settings.keyboardLayout.auto",{detectedKeyboardLayout:N?.name??se})}return this.translateService.instant("common.auto")}get onPlaceholderChange(){return this.placeholder.asObservable()}getBrowserPlaceholder(){return`${this.translateService.instant("common.default")} (${this.getDefaultKBLayout()?.name})`}registerKBLayoutChange(){this.onKBLayoutChange().subscribe(N=>{this.logger.info("System keyboard layout changed to: "+N),this.kbLayoutChanged(N)})}}return(oe=xe).\u0275fac=function(N){return new(N||oe)(K.KVO($.k_2),K.KVO(r.J6),K.KVO(r.zW),K.KVO(r.NZ),K.KVO(ee.yQ),K.KVO(J.c$),K.KVO(r.iH),K.KVO(y.BW),K.KVO(z.H0),K.KVO(r.Ho),K.KVO($.Vk6))},oe.\u0275prov=K.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),xe})()},90929:(Ue,W,d)=>{"use strict";d.d(W,{hT:()=>c,DL:()=>A});var n=d(57258),l=d(43848),p=d(7583);class _{constructor(V,D){this.keySelector=V,this.flushes=D}call(V,D){return D.subscribe(new P(V,this.keySelector,this.flushes))}}class P extends p.gn{constructor(V,D,F){super(V),this.keySelector=D,this.values=new Set,F&&this.add((0,p.tS)(F,new p.zA(this)))}notifyNext(){this.values.clear()}notifyError(V){this._error(V)}_next(V){this.keySelector?this._useKeySelector(V):this._finalizeNext(V,V)}_useKeySelector(V){let D;const{destination:F}=this;try{D=this.keySelector(V)}catch(I){return void F.error(I)}this._finalizeNext(D,V)}_finalizeNext(V,D){const{values:F}=this;F.has(V)||(F.add(V),this.destination.next(D))}}var v=d(55833),O=d(83915),S=d(14714),y=d(43615),r=d(65706),i=d(26875),a=d(58527),h=d(3567),g=d(72945),c=function(x){return x.JWT="JWT",x.IDM="IDM",x.INVALID="Invalid",x.UNKNOWN="Unknown",x.IDM_FALLBACK="IDM_FALLBACK",x}(c||{});let A=(()=>{var x;class V{constructor(F,I){this.sharedStorage=I,this.telemetryStream=new n.m,this.startupComplete$=new n.m(1),this.logger=F.getLogger("streamer/gfnsdkService"),this.resetAuthConfig()}setSdkClient(F,I){F!==this.sdkClient&&(this.logger.info("SdkClient set to "+F),this.sdkClient=F,this.resetAuthConfig(I),this.getTelemetryData())}getTelemetryData(){return this.sdkClient&&(this.logger.info("Fetching sdk telemetry from shared storage."),this.sharedStorage.readBlock("sdk").subscribe(I=>{if(I)for(const k in I)if(I[k].telemetry&&Array.isArray(I[k].telemetry)&&I[k].telemetry.length>0){const R={platformName:k,checkGFNItems:[],streamNowButtonClickItems:[]};I[k].telemetry.forEach(G=>{switch(G.eventName){case"CheckGFN":{const Y={status:G.status||"",timeTaken:G.timeTaken||0,version:G.version||"",dllVersion:G.dllVersion||"",originalTimestamp:G.originalTimestamp||0,originalCmsId:(G.originalCmsId||"").toString(),originalShortname:G.originalShortname||"",originalAuthMethod:G.originalAuthMethod||"Other"};R.checkGFNItems.push(Y);break}case"StreamNowButtonClick":{const Y={status:G.status||"",timeTaken:G.timeTaken||0,version:G.version||"",dllVersion:G.dllVersion||"",originalTimestamp:G.originalTimestamp||0,originalCmsId:(G.originalCmsId||"").toString(),originalShortname:G.originalShortname||"",originalAuthMethod:G.originalAuthMethod||"Other",timeRemaining:null==G.timeRemaining?-1:G.timeRemaining,hasPartnerData:null==G.hasPartnerData?I[k]?.partnerData?.length>0:G.hasPartnerData,hasPartnerSecureData:null==G.hasPartnerSecureData?I[k]?.partnerSecureData?.length>0:G.hasPartnerSecureData};R.streamNowButtonClickItems.push(Y);break}default:this.logger.info(`Invalid telemetry event ${G?.eventName} found in shared storage`)}}),R.checkGFNItems.length+R.streamNowButtonClickItems.length>0?this.telemetryStream.next(R):this.logger.info("Platform "+k+" has no telemetry data to send")}})),this.telemetryStream.pipe(function m(x,V){return D=>D.lift(new _(x,V))}(F=>F.platformName))}clearTelemetryData(F){this.sharedStorage.removeBlock("sdk/"+F.platformName+"/telemetry").subscribe(k=>{this.logger.info(`Cached telemetry for SDK client ${this.sdkClient} was removed from storage ${k?"":"un"}successfully.`)})}parseAuthType(F){if(!F.authType)return c.INVALID;switch(F.authType.toLowerCase()){case"jarvis":case"jwt_gfn":return c.IDM;case"jwt":return!F.token||0===F.token.length||!(0,i.isNil)(F.timeRemaining)&&(F.timeRemaining<=0||F.timeRemaining>3600)?c.IDM_FALLBACK:c.JWT;default:return c.INVALID}}resetAuthConfig(F){this.authConfig$=F?(0,l.of)(F):this.getAuthConfigFromStorage().pipe((0,v.t)(1))}getAuthConfigFromStorage(){if(this.sdkClient){this.logger.info("Fetching auth type from shared storage.");const F="sdk/"+this.sdkClient;return this.sharedStorage.readBlock(F).pipe((0,O.T)(I=>(this.logger.info(`Running in GFN SDK mode for SDK client ${this.sdkClient}, auth type is ${this.parseAuthType(I)}.`),I)),(0,S.W)(()=>(this.logger.error(`Unable to read stored settings for SDK client ${this.sdkClient}`),(0,l.of)({token:void 0}))),(0,y.j)(()=>{this.startupComplete$.asObservable().subscribe(()=>{["token","partnerSecureData","partnerData"].forEach(k=>{this.sharedStorage.removeBlock(`${F}/${k}`).pipe((0,r.s)(1)).subscribe(R=>{this.logger.info(`${k} for SDK client ${this.sdkClient} was removed from storage ${R?"":"un"}successfully.`)})})})}))}return this.logger.info("Running in regular GFN client mode, auth type is IDM."),(0,l.of)({authType:c.IDM,token:void 0})}getAuthType(){return this.authConfig$.pipe((0,O.T)(F=>{const I=this.parseAuthType(F);return this.logger.info(I!==c.INVALID?`Returning cached auth type: ${I}`:"Current auth type is invalid and cannot be used for authentication purposes"),I}))}continueStartup(){this.startupComplete$.next(!0)}getIsAnonymousUser(){return this.getAuthType().pipe((0,O.T)(F=>F===c.JWT))}forceIDMAuthType(){this.originalAuthConfig$=this.authConfig$,this.authConfig$=this.originalAuthConfig$.pipe((0,O.T)(F=>{const I=Object.assign({},F);return I.authType=c.IDM,I.token=void 0,I.delegateToken=void 0,I}))}getAuthToken(){return this.authConfig$.pipe((0,O.T)(F=>{const I=F.token;return this.logger.info(I?"Returning cached auth token":"Current auth token is empty and likely not useful for authentication purposes"),I}))}getAuthInfo(){return this.authConfig$.pipe((0,O.T)(F=>{const I=this.parseAuthType(F);this.logger.info(I!==c.INVALID?`Returning cached auth type: ${I}`:"Current auth type is invalid and cannot be used for authentication purposes for gfn sdk");const k=F.token;this.logger.info(k?"Returning cached auth token.":"Current auth token is empty and likely not useful for authentication purposes for gfn sdk");let R=null,G=null,Y=null,K=null;if(k){try{const $=atob(k.split(".")[1]),ee=JSON.parse($);if(Array.isArray(ee.options))ee.options.forEach(function(J){"uid"===J?.key?R=J?.value:"external_id"===J?.key?G=J?.value:"idp_id"===J?.key&&(Y=J?.value)});else{const J=JSON.parse(atob(ee.options));R=J.userId,G=J.externalId,Y=J.partnerId,K=J.authorizationId}}catch($){this.logger.error("Got an exception while parsing JWT for user info: ",$)}R?this.logger.info(`Returning userId from JWT ${R}`):this.logger.warn("Current userId is empty and likely not useful for authentication purposes!"),G?this.logger.info(`Returning externalUserId from JWT ${G}.`):this.logger.warn("Current externalUserId is empty and likely not useful for authentication purposes!"),Y?this.logger.info(`Returning idpId from JWT ${Y}.`):this.logger.warn("Current ipdId is empty and likely not useful for authentication purposes!"),K?this.logger.info("Returning authorizationId from JWT."):this.logger.warn("No authorizationId")}return{authType:I,authToken:k,userId:R,externalUserId:G,idpId:Y,timeRemaining:F.timeRemaining,authorizationId:K}}))}getPartnerData(){return this.authConfig$.pipe((0,O.T)(F=>F?.partnerData||""))}getPartnerSecureData(){return this.authConfig$.pipe((0,O.T)(F=>F?.partnerSecureData||""))}isThisAGFNSDKSession(){return this.sdkClient&&this.sdkClient.length>0}isAuthInfoValid(F){return F.authToken?.length>0&&(null==F.timeRemaining||F.timeRemaining>0&&F.timeRemaining<=3600)}}return(x=V).\u0275fac=function(F){return new(F||x)(a.KVO(h.J6),a.KVO(g.yQ))},x.\u0275prov=a.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),V})()},24841:(Ue,W,d)=>{"use strict";d.d(W,{f:()=>P});var n=d(26537),l=d(16490),p=d(49752),m=d(99564),_=d(29824);class P{constructor(O){this.reference=O}get dialogRef(){return this.reference instanceof n.CP&&this.reference.componentInstance instanceof p.u?this.reference:void 0}get bottomSheetRef(){return this.reference instanceof l.eN&&this.reference.instance instanceof m.G?this.reference:void 0}get threeQuarterSheetRef(){return this.reference instanceof n.CP&&this.reference.componentInstance instanceof _.L?this.reference:void 0}get instance(){return this.dialogRef?.componentInstance??this.bottomSheetRef?.instance??this.threeQuarterSheetRef?.componentInstance}get primaryButtonClick(){return this.instance?.primaryButtonClick}get secondaryButtonClick(){return this.instance?.secondaryButtonClick}get linkClick(){return this.instance?.linkClick}get augmentedButtonClick(){return this.instance instanceof _.L?this.instance.augmentedButtonClick:void 0}get radioButtonClick(){return this.instance instanceof p.u||this.instance instanceof _.L?this.instance.radioButtonClick:void 0}get checkboxState(){return this.instance?.data?.checkboxState}get radioOptionSelected(){return this.instance?.data?.radioOptionSelected}set backToCloseResult(O){this.instance.backToCloseResult=O}close(){this.dialogRef?.close(),this.bottomSheetRef?.dismiss(),this.threeQuarterSheetRef?.close()}afterClosed(){return this.dialogRef?.afterClosed()??this.bottomSheetRef?.afterDismissed()??this.threeQuarterSheetRef?.afterClosed()}afterOpened(){return this.dialogRef?.afterOpened()??this.bottomSheetRef?.afterOpened()??this.threeQuarterSheetRef?.afterOpened()}}},72818:(Ue,W,d)=>{"use strict";d.d(W,{QO:()=>p,SN:()=>v});var p=function(O){return O.ThreeQuarterSheet="ThreeQuarterSheet",O.BottomSheet="BottomSheet",O}(p||{});function v(O,S){const y=[];if(S.addOverlayPanelCls&&y.push("nv-overlay-panel"),(S.bottomSheet||S.threeQuarterSheet)&&y.push("nv-hig"),S.threeQuarterSheet&&y.push("nv-three-quarter-sheet"),S.tvMode&&y.push("is-tv"),y.length>0){const r=O.panelClass?O.panelClass instanceof Array?O.panelClass:new Array(O.panelClass):[];y.forEach(i=>{r.includes(i)||r.push(i)}),O.panelClass=r}}},99564:(Ue,W,d)=>{"use strict";d.d(W,{G:()=>G});var n=d(58527),l=d(16490),p=d(72818),m=d(11013),_=d(25369),P=d(26537);const v=(Y,K)=>({"has-image":Y,"only-body":K}),O=Y=>({"overflow-wrap-anywhere":Y}),S=Y=>({"font-tv-error-text":Y}),y=Y=>({visible:Y});function r(Y,K){if(1&Y&&(n.j41(0,"i",20),n.EFF(1),n.k0s()),2&Y){const $=n.XpG(2);n.R7$(),n.JRh($.data.icon)}}function i(Y,K){if(1&Y&&n.nrm(0,"img",21),2&Y){const $=n.XpG(2);n.Y8G("src",$.data.image.url,n.B4B)}}function a(Y,K){if(1&Y&&n.nrm(0,"qrcode",22),2&Y){const $=n.XpG(2);n.Y8G("qrdata",$.data.link.url)("width",$.tvMode?184:140)("errorCorrectionLevel","M")}}function h(Y,K){if(1&Y&&(n.j41(0,"div",16),n.DNE(1,r,2,1,"i",17)(2,i,1,1,"img",18)(3,a,1,3,"qrcode",19),n.k0s()),2&Y){const $=n.XpG();n.R7$(),n.Y8G("ngIf",$.data.icon),n.R7$(),n.Y8G("ngIf",$.data.image),n.R7$(),n.Y8G("ngIf",$.showQRCode)}}function g(Y,K){if(1&Y&&(n.j41(0,"div",23),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&Y){const $=n.XpG();n.Y8G("ngClass",$.tvMode?"font-header5":"font-header6"),n.R7$(),n.SpI(" ",n.i5U(2,2,$.data.headerText.text,$.data.headerText.placeholders)," ")}}function c(Y,K){1&Y&&n.nrm(0,"mat-progress-spinner",24)}function T(Y,K){if(1&Y&&(n.nrm(0,"div",25),n.nI1(1,"translate")),2&Y){const $=n.XpG();n.Y8G("ngClass",n.eq3(5,O,$.showQRCode))("innerHTML",$.data.bodyText.translated?$.data.bodyText.text:n.i5U(1,2,$.data.bodyText.text,$.data.bodyText.placeholders),n.npT)}}function A(Y,K){if(1&Y&&(n.j41(0,"div",26),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&Y){const $=n.XpG();n.Y8G("ngClass",n.eq3(5,S,$.tvMode)),n.R7$(),n.SpI(" ",n.i5U(2,2,$.data.errorCodeText.text,$.data.errorCodeText.placeholders)," ")}}function L(Y,K){if(1&Y&&(n.qex(0),n.eu8(1,27)(2,27),n.bVm()),2&Y){n.XpG();const $=n.sdS(15),ee=n.sdS(17);n.R7$(),n.Y8G("ngTemplateOutlet",$),n.R7$(),n.Y8G("ngTemplateOutlet",ee)}}function x(Y,K){if(1&Y&&n.eu8(0,27)(1,27),2&Y){n.XpG();const $=n.sdS(15),ee=n.sdS(17);n.Y8G("ngTemplateOutlet",ee),n.R7$(),n.Y8G("ngTemplateOutlet",$)}}function V(Y,K){if(1&Y){const $=n.RV6();n.j41(0,"button",29),n.bIt("click",function(J){n.eBV($);const z=n.XpG(2);return n.Njj(z.onPrimaryButtonClick(J))}),n.EFF(1),n.nI1(2,"translate"),n.eu8(3,30),n.k0s()}if(2&Y){const $=n.XpG(2),ee=n.sdS(19);n.Y8G("ngClass",$.showAccentBtn?"font-button2 mat-flat-button mat-accent":"font-button2")("nvFocusRipple",$.showAccentBtn)("disabled",$.data.primaryButton.isDisabled)("nvAutoFocus",$.autoFocusOnPrimaryButton),n.R7$(),n.SpI(" ",n.bMT(2,7,$.data.primaryButton.text)," "),n.R7$(2),n.Y8G("ngTemplateOutlet",ee)("ngTemplateOutletContext",n.eq3(9,y,$.data.primaryButton.spinnerOverlay))}}function D(Y,K){if(1&Y&&n.DNE(0,V,4,11,"button",28),2&Y){const $=n.XpG();n.Y8G("ngIf",$.data.primaryButton)}}function F(Y,K){if(1&Y){const $=n.RV6();n.j41(0,"button",32),n.bIt("click",function(J){n.eBV($);const z=n.XpG(2);return n.Njj(z.onSecondaryButtonClick(J))}),n.EFF(1),n.nI1(2,"translate"),n.eu8(3,30),n.k0s()}if(2&Y){const $=n.XpG(2),ee=n.sdS(19);n.Y8G("disabled",$.data.secondaryButton.isDisabled),n.R7$(),n.SpI(" ",n.bMT(2,4,$.data.secondaryButton.text)," "),n.R7$(2),n.Y8G("ngTemplateOutlet",ee)("ngTemplateOutletContext",n.eq3(6,y,$.data.secondaryButton.spinnerOverlay))}}function I(Y,K){if(1&Y&&n.DNE(0,F,4,8,"button",31),2&Y){const $=n.XpG();n.Y8G("ngIf",$.data.secondaryButton)}}function k(Y,K){1&Y&&(n.j41(0,"div",34),n.nrm(1,"mat-progress-spinner",35),n.k0s()),2&Y&&(n.R7$(),n.Y8G("diameter",48))}function R(Y,K){1&Y&&n.DNE(0,k,2,1,"div",33),2&Y&&n.Y8G("ngIf",K.visible)}let G=(()=>{var Y;class K extends _.D{get hasImage(){return!!this.data.icon||!!this.data.image||this.showQRCode}get showQRCode(){return this.showQRCodeForLinks&&!!this.data.link?.url}get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}get showAccentBtn(){return this.data.primaryButton.accentColor&&!this.tvMode}static open(ee,J,z){return(0,p.SN)(J,{bottomSheet:!0,tvMode:z}),ee.open(K,J)}constructor(ee,J,z,te,X){super(z,te,ee,X),this.primaryButtonClick=new n.bkB,this.secondaryButtonClick=new n.bkB,this.linkClick=new n.bkB,this.data={},this.data=ee.get(l.yj,null),this.tvMode=!!J.tvMode,this.showQRCodeForLinks=!!J.showQRCodeForLinks}ngOnInit(){this.layoutType=this.hasImage||this.tvMode?"row":"column"}onPrimaryButtonClick(ee){this.primaryButtonClick.emit(ee)}onSecondaryButtonClick(ee){this.secondaryButtonClick.emit(ee)}onLinkClick(){this.linkClick.emit()}}return(Y=K).\u0275fac=function(ee){return new(ee||Y)(n.rXU(n.zZn),n.rXU(m.X,8),n.rXU(P.CP,8),n.rXU(l.eN,8),n.rXU(n.SKi))},Y.\u0275cmp=n.VBU({type:Y,selectors:[["nv-hig-bottom-sheet"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",linkClick:"linkClick"},features:[n.Vt3],decls:20,vars:22,consts:[["nonTvMode",""],["primaryButton",""],["secondaryButton",""],["buttonSpinner",""],["fxLayoutAlign","space-between stretch","nvSpatialNavigationContainer","","nvTrapFocus","",1,"hig-bottom-sheet",3,"fxLayout"],["class","image-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",1,"content",3,"fxFlex","ngClass","fxLayoutGap"],["fxFlex","nogrow","class","header-text",3,"ngClass",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutGap","24px",3,"fxLayoutAlign"],["fxFlex","none","mode","indeterminate","color","accent","diameter","64",4,"ngIf"],["fxFlex","","fxLayout","column",1,"font-body2"],["fxFlex","auto","class","body-text",3,"ngClass","innerHTML",4,"ngIf"],["fxFlex","auto","class","body-text",3,"ngClass",4,"ngIf"],["fxLayout","column",1,"actions-container",3,"fxFlex","fxFlexAlign"],[1,"buttons-container",3,"fxLayout","fxLayoutAlign","fxLayoutGap"],[4,"ngIf","ngIfElse"],[1,"image-container"],["class","material-icons",4,"ngIf"],[3,"src",4,"ngIf"],[3,"qrdata","width","errorCorrectionLevel",4,"ngIf"],[1,"material-icons"],[3,"src"],[3,"qrdata","width","errorCorrectionLevel"],["fxFlex","nogrow",1,"header-text",3,"ngClass"],["fxFlex","none","mode","indeterminate","color","accent","diameter","64"],["fxFlex","auto",1,"body-text",3,"ngClass","innerHTML"],["fxFlex","auto",1,"body-text",3,"ngClass"],[3,"ngTemplateOutlet"],["mat-button","",3,"ngClass","nvFocusRipple","disabled","nvAutoFocus","click",4,"ngIf"],["mat-button","",3,"click","ngClass","nvFocusRipple","disabled","nvAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","","class","font-button2",3,"disabled","click",4,"ngIf"],["mat-button","",1,"font-button2",3,"click","disabled"],["fxLayout","column","fxLayoutAlign","center end","class","spinner-overlay",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center end",1,"spinner-overlay"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(ee,J){if(1&ee&&(n.j41(0,"div",4),n.DNE(1,h,4,3,"div",5),n.j41(2,"div",6),n.DNE(3,g,3,5,"div",7),n.j41(4,"div",8),n.DNE(5,c,1,0,"mat-progress-spinner",9),n.j41(6,"div",10),n.DNE(7,T,2,7,"div",11)(8,A,3,7,"div",12),n.k0s()()(),n.j41(9,"div",13)(10,"div",14),n.DNE(11,L,3,2,"ng-container",15)(12,x,2,2,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(14,D,1,1,"ng-template",null,1,n.C5r)(16,I,1,1,"ng-template",null,2,n.C5r)(18,R,1,1,"ng-template",null,3,n.C5r),n.k0s()()),2&ee){const z=n.sdS(13);n.AVh("is-tv",J.tvMode),n.Y8G("fxLayout",J.layoutType),n.R7$(),n.Y8G("ngIf",J.hasImage),n.R7$(),n.Y8G("fxFlex",J.tvMode?"":"grow")("ngClass",n.l_i(19,v,J.hasImage,!J.data.headerText))("fxLayoutGap",J.tvMode?"30px":"16px"),n.R7$(),n.Y8G("ngIf",J.data.headerText),n.R7$(),n.Y8G("fxLayoutAlign",J.data.headerText?"start start":"start center"),n.R7$(),n.Y8G("ngIf",J.data.showSpinner),n.R7$(2),n.Y8G("ngIf",J.data.bodyText),n.R7$(),n.Y8G("ngIf",J.data.errorCodeText),n.R7$(),n.Y8G("fxFlex",J.tvMode?"":"initial")("fxFlexAlign",J.tvMode?"start":"end"),n.R7$(),n.Y8G("fxLayout",J.tvMode?"column":"row")("fxLayoutAlign",J.tvMode?"":"end center")("fxLayoutGap",J.tvMode?"16px":"8px"),n.R7$(),n.Y8G("ngIf",J.tvMode)("ngIfElse",z)}},styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.hig-bottom-sheet[_ngcontent-%COMP%]{background-color:#393939;padding:0;width:100vw;min-height:132px;max-height:80vh}@media (orientation: portrait){.hig-bottom-sheet[_ngcontent-%COMP%]{min-height:180px;height:180px}}.isLtr[_nghost-%COMP%] .content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .content[_ngcontent-%COMP%]{margin:16px max(env(safe-area-inset-right),16px) 0 max(env(safe-area-inset-left),16px)}html[dir=ltr][_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:16px max(env(safe-area-inset-right),16px) 0 max(env(safe-area-inset-left),16px)}.isRtl[_nghost-%COMP%] .content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .content[_ngcontent-%COMP%]{margin:16px max(env(safe-area-inset-left),16px) 0 max(env(safe-area-inset-right),16px)}html[dir=rtl][_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:16px max(env(safe-area-inset-left),16px) 0 max(env(safe-area-inset-right),16px)}.actions-container[_ngcontent-%COMP%]{padding:8px max(env(safe-area-inset-right),8px) max(env(safe-area-inset-bottom),8px) max(env(safe-area-inset-left),8px)}.is-tv.hig-bottom-sheet[_ngcontent-%COMP%]{min-height:420px;height:420px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{margin:120px 0 0 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{--dummy: 0;margin:120px 0 0 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{margin:120px 120px 0 0}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{--dummy: 0;margin:120px 120px 0 0}.is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:112px}.is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:112px;height:112px;object-fit:fill}.is-tv[_ngcontent-%COMP%] .actions-container[_ngcontent-%COMP%]{padding:0;max-width:606px}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{min-width:0}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:120px 90px 0 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:120px 90px 0 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:120px 120px 0 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:120px 120px 0 90px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{margin:120px 90px 0 56px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{--dummy: 0;margin:120px 90px 0 56px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{margin:120px 56px 0 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{--dummy: 0;margin:120px 56px 0 90px}.is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{align-items:center}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{margin:0 90px 60px 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 90px 60px 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{margin:0 120px 60px 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 120px 60px 90px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{margin:0 90px 60px 56px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 90px 60px 56px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{margin:0 56px 60px 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 56px 60px 90px}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .font-tv-error-text[_ngcontent-%COMP%]{margin:24px 0 0}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .body-text[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;min-height:45px}.overflow-wrap-anywhere[_ngcontent-%COMP%]{overflow-wrap:anywhere}.buttons-container[_ngcontent-%COMP%]{height:calc(44px + max(env(safe-area-inset-bottom),8px))}.buttons-container[_ngcontent-%COMP%] button[mat-button][_ngcontent-%COMP%]{line-height:36px}.buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background:transparent}.isLtr[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{margin-right:32px}html[dir=ltr][_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{--dummy4: 0;margin-right:32px}.isRtl[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{margin-left:32px}html[dir=rtl][_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{--dummy4: 0;margin-left:32px}.is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{height:100%;margin-top:120px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{margin-right:80px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{--dummy4: 0;margin-right:80px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{margin-left:80px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{--dummy4: 0;margin-left:80px}.is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;height:92px;width:100%;text-align:start;border-radius:5px;font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.image-container[_ngcontent-%COMP%]{margin:16px}"]}),K})()},49752:(Ue,W,d)=>{"use strict";d.d(W,{u:()=>X});var n=d(58527),l=d(26537),p=d(72818),m=d(25369),_=d(16490);const P=(re,ge)=>[re,ge],v=re=>({visible:re}),O=re=>({"pointer-events":re}),S=re=>({visibility:re});function y(re,ge){if(1&re&&(n.j41(0,"i",22),n.EFF(1),n.k0s()),2&re){const oe=n.XpG();n.R7$(),n.JRh(oe.data.icon)}}function r(re,ge){if(1&re&&n.nrm(0,"img",23),2&re){const oe=n.XpG();n.Y8G("src",oe.data.image.url,n.B4B)}}function i(re,ge){if(1&re&&(n.nrm(0,"div",24),n.nI1(1,"translate")),2&re){const oe=n.XpG();n.Y8G("innerHTML",n.i5U(1,1,oe.data.headerText.text,oe.data.translateValues),n.npT)}}function a(re,ge){1&re&&(n.j41(0,"div",25),n.nrm(1,"mat-progress-spinner",26),n.k0s())}function h(re,ge){if(1&re&&(n.nrm(0,"div",27),n.nI1(1,"translate")),2&re){const oe=n.XpG();n.Y8G("innerHTML",oe.data.bodyText.translated?oe.data.bodyText.text:n.i5U(1,1,oe.data.bodyText.text,oe.data.bodyText.placeholders),n.npT)}}function g(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"a",31),n.bIt("click",function(){n.eBV(oe);const ue=n.XpG(2);return n.Njj(ue.onLinkClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&re){const oe=n.XpG(2);n.Y8G("href",oe.data.link.url,n.B4B)("shortUrl",null==oe.data.link?null:oe.data.link.shortUrl),n.R7$(),n.JRh(n.i5U(2,3,oe.data.link.text,oe.data.link.placeholders))}}function c(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"span",32),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(oe);const ue=n.XpG(2);return n.Njj(ue.onLinkClick())}),n.k0s()}if(2&re){const oe=n.XpG(2);n.Y8G("innerHTML",n.i5U(1,1,oe.data.link.text,oe.data.link.placeholders),n.npT)}}function T(re,ge){if(1&re&&(n.j41(0,"div",28),n.DNE(1,g,3,6,"a",29)(2,c,2,4,"span",30),n.k0s()),2&re){const oe=n.XpG();n.R7$(),n.Y8G("ngIf",!(null!=oe.data.link&&oe.data.link.isTextWithHyperlinkTag)),n.R7$(),n.Y8G("ngIf",null==oe.data.link?null:oe.data.link.isTextWithHyperlinkTag)}}function A(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"a",31),n.bIt("click",function(){n.eBV(oe);const ue=n.XpG(2);return n.Njj(ue.onLinkClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&re){const oe=n.XpG(2);n.Y8G("href",oe.data.link.url,n.B4B)("shortUrl",oe.data.link.shortUrl),n.R7$(),n.JRh(n.bMT(2,3,oe.data.link.text))}}function L(re,ge){if(1&re&&(n.j41(0,"a",35),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&re){const oe=n.XpG(2);n.Y8G("routerLink",oe.data.link.routerLink.commands)("skipLocationChange",oe.data.link.routerLink.skipLocationChange),n.R7$(),n.SpI(" ",n.bMT(2,3,oe.data.link.text)," ")}}function x(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"a",36),n.bIt("click",function(){n.eBV(oe);const ue=n.XpG(2);return n.Njj(ue.data.link.linkClickedCallback())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&re){const oe=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,oe.data.link.text)," ")}}function V(re,ge){if(1&re&&(n.j41(0,"div",28),n.DNE(1,A,3,5,"a",29)(2,L,3,5,"a",33)(3,x,3,3,"a",34),n.k0s()),2&re){const oe=n.XpG();n.R7$(),n.Y8G("ngIf",oe.data.link.url&&!oe.data.link.routerLink&&!oe.data.link.linkClickedCallback),n.R7$(),n.Y8G("ngIf",oe.data.link.routerLink&&!oe.data.link.linkClickedCallback),n.R7$(),n.Y8G("ngIf",oe.data.link.linkClickedCallback)}}function D(re,ge){if(1&re&&(n.j41(0,"div",37),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&re){const oe=n.XpG();n.R7$(),n.SpI(" ",n.i5U(2,1,oe.data.errorCodeText.text,oe.data.errorCodeText.placeholders)," ")}}function F(re,ge){if(1&re&&n.nrm(0,"img",44),2&re){const oe=n.XpG().$implicit;n.Y8G("src",oe.imageUrl,n.B4B)}}function I(re,ge){if(1&re&&(n.j41(0,"mat-radio-button",40)(1,"div",41),n.DNE(2,F,1,1,"img",42),n.j41(3,"div",43),n.EFF(4),n.k0s()()()),2&re){const oe=ge.$implicit;n.Y8G("value",oe.value),n.R7$(2),n.Y8G("ngIf",oe.imageUrl),n.R7$(2),n.JRh(oe.value)}}function k(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"mat-radio-group",38),n.mxI("ngModelChange",function(ue){n.eBV(oe);const N=n.XpG();return n.DH7(N.data.radioOptionSelected,ue)||(N.data.radioOptionSelected=ue),n.Njj(ue)}),n.bIt("change",function(){n.eBV(oe);const ue=n.XpG();return n.Njj(ue.onRadioOptionChange())}),n.DNE(1,I,5,3,"mat-radio-button",39),n.k0s()}if(2&re){const oe=n.XpG();n.R50("ngModel",oe.data.radioOptionSelected),n.R7$(),n.Y8G("ngForOf",oe.data.radioButtonOptions)}}function R(re,ge){if(1&re&&n.nrm(0,"mat-icon",50),2&re){const oe=n.XpG().$implicit;n.Y8G("svgIcon",oe.matIcon)}}function G(re,ge){if(1&re&&(n.j41(0,"div",47),n.DNE(1,R,1,1,"mat-icon",48),n.j41(2,"div",49),n.EFF(3),n.k0s()()),2&re){const oe=ge.$implicit;n.R7$(),n.Y8G("ngIf",oe.matIcon),n.R7$(2),n.JRh(oe.text)}}function Y(re,ge){if(1&re&&(n.j41(0,"div",45),n.DNE(1,G,4,2,"div",46),n.k0s()),2&re){const oe=n.XpG();n.R7$(),n.Y8G("ngForOf",oe.data.descriptionList)}}function K(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"div",51)(1,"div",52)(2,"a",53),n.bIt("click",function(){return n.eBV(oe),n.Njj(!1)})("dragstart",function(){n.eBV(oe);const ue=n.XpG();return n.Njj(ue.onImageDragStart())}),n.EFF(3),n.nI1(4,"translate"),n.nrm(5,"img",54),n.k0s(),n.nrm(6,"p",55),n.nI1(7,"translate"),n.k0s(),n.nrm(8,"p",56),n.nI1(9,"translate"),n.k0s()}if(2&re){const oe=n.XpG();n.R7$(2),n.Y8G("href",oe.data.image.shortcutUrl,n.B4B),n.R7$(),n.JRh(n.i5U(4,6,oe.data.image.caption,oe.data.image.captionPlaceholder)),n.R7$(2),n.Y8G("src",oe.data.image.url,n.B4B)("alt",oe.data.image.captionPlaceholder),n.R7$(),n.Y8G("innerHTML",n.i5U(7,9,oe.data.image.caption,oe.data.image.captionPlaceholder),n.npT),n.R7$(2),n.Y8G("innerHTML",n.bMT(9,12,oe.data.image.description),n.npT)}}function $(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"mat-checkbox",57),n.mxI("ngModelChange",function(ue){n.eBV(oe);const N=n.XpG();return n.DH7(N.data.checkboxState,ue)||(N.data.checkboxState=ue),n.Njj(ue)}),n.j41(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}if(2&re){const oe=n.XpG();n.R50("ngModel",oe.data.checkboxState),n.R7$(2),n.JRh(n.bMT(3,2,oe.data.checkbox.text))}}function ee(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"button",58),n.bIt("click",function(ue){n.eBV(oe);const N=n.XpG();return n.Njj(N.onSecondaryButtonClick(ue))}),n.EFF(1),n.nI1(2,"translate"),n.eu8(3,59),n.k0s()}if(2&re){const oe=n.XpG(),xe=n.sdS(24);n.Y8G("disabled",oe.data.secondaryButton.isDisabled),n.R7$(),n.SpI(" ",n.bMT(2,4,oe.data.secondaryButton.text)," "),n.R7$(2),n.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",n.eq3(6,v,oe.data.secondaryButton.spinnerOverlay))}}function J(re,ge){if(1&re){const oe=n.RV6();n.j41(0,"button",60),n.bIt("click",function(ue){n.eBV(oe);const N=n.XpG();return n.Njj(N.onPrimaryButtonClick(ue))}),n.j41(1,"div",61),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.eu8(4,59),n.k0s()}if(2&re){const oe=n.XpG(),xe=n.sdS(24);n.Y8G("ngClass",oe.data.primaryButton.accentColor?"font-button2 mat-flat-button mat-accent":"font-button2")("nvFocusRipple",!!oe.data.primaryButton.accentColor)("disabled",oe.data.primaryButton.isDisabled)("nvAutoFocus",oe.autoFocusOnPrimaryButton)("ngStyle",n.eq3(11,O,oe.data.primaryButton.spinnerOverlay?"none":"all")),n.R7$(),n.Y8G("ngStyle",n.eq3(13,S,oe.data.primaryButton.removeButtonTextOnClick?"hidden":"visible")),n.R7$(),n.SpI(" ",n.bMT(3,9,oe.data.primaryButton.text)," "),n.R7$(2),n.Y8G("ngTemplateOutlet",xe)("ngTemplateOutletContext",n.eq3(15,v,oe.data.primaryButton.spinnerOverlay))}}function z(re,ge){if(1&re&&(n.j41(0,"div",63),n.nrm(1,"mat-progress-spinner",64),n.k0s()),2&re){const oe=n.XpG(2);n.R7$(),n.Y8G("ngClass",oe.data.spinnerClass?oe.data.spinnerClass:"mat-accent")("diameter",16)}}function te(re,ge){1&re&&n.DNE(0,z,2,2,"div",62),2&re&&n.Y8G("ngIf",ge.visible)}let X=(()=>{var re;class ge extends m.D{get hasIcon(){return!!this.data.icon||!!this.data.image}get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}static open(xe,ue){return(0,p.SN)(ue,{addOverlayPanelCls:!0}),xe.open(ge,ue)}constructor(xe,ue,N,se){super(ue,N,xe,se),this.primaryButtonClick=new n.bkB,this.secondaryButtonClick=new n.bkB,this.radioButtonClick=new n.bkB,this.linkClick=new n.bkB,this.data={},this.data=xe.get(l.Vh,null)||{showSpinner:!1}}ngOnInit(){this.data.checkboxState=this.data.checkbox?.initialState??!1}onPrimaryButtonClick(xe){this.primaryButtonClick.emit(xe)}onSecondaryButtonClick(xe){this.secondaryButtonClick.emit(xe)}onLinkClick(){this.linkClick.emit()}onRadioOptionChange(){this.radioButtonClick.emit()}onImageDragStart(){this.data.image?.dragStartCallback()}}return(re=ge).\u0275fac=function(xe){return new(xe||re)(n.rXU(n.zZn),n.rXU(l.CP,8),n.rXU(_.eN,8),n.rXU(n.SKi))},re.\u0275cmp=n.VBU({type:re,selectors:[["nv-hig-dialog"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",radioButtonClick:"radioButtonClick",linkClick:"linkClick"},features:[n.Vt3],decls:25,vars:28,consts:[["buttonSpinner",""],["nvSpatialNavigationContainer","","nvTrapFocus","",3,"ngClass","forceEnable"],["fxLayout","row","fxLayoutAlign","stretch start",1,"hig-dialog-padding"],["class","hig-dialog-icon material-icons",4,"ngIf"],["class","hig-dialog-img",3,"src",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px",1,"hig-dialog-content-container"],["fxLayout","column","fxLayoutAlign","space-between stretch",1,"hig-dialog-info-container"],["class","font-header6 header-text",3,"innerHTML",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"hig-dialog-spinner-container",3,"ngClass"],["class","hig-dialog-spinner",4,"ngIf"],["fxLayout","column"],["class","font-body2 body-text",3,"innerHTML",4,"ngIf"],["class","hig-dialog-link-text",4,"ngIf"],["class","font-body2 hig-dialog-error-text",4,"ngIf"],["class","hig-radio-container","nvSpatialNavigationGroup","","navigateAction","focus",3,"ngModel","ngModelChange","change",4,"ngIf"],["class","hig-description-list-container",4,"ngIf"],["class","hig-dialog-image-container","fxLayout","row","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px",1,"hig-dialog-actions-container"],["class","nv-hig",3,"ngModel","ngModelChange",4,"ngIf"],["fxLayoutAlign","end center","fxLayoutGap","8px",1,"hig-dialog-buttons-container"],["mat-button","","class","hig-dialog-secondary-button font-button2",3,"disabled","click",4,"ngIf"],["mat-button","",3,"ngClass","nvFocusRipple","disabled","nvAutoFocus","ngStyle","click",4,"ngIf"],[1,"hig-dialog-icon","material-icons"],[1,"hig-dialog-img",3,"src"],[1,"font-header6","header-text",3,"innerHTML"],[1,"hig-dialog-spinner"],["mode","indeterminate","diameter","48","color","accent"],[1,"font-body2","body-text",3,"innerHTML"],[1,"hig-dialog-link-text"],["target","_blank","class","font-body2-link",3,"href","shortUrl","click",4,"ngIf"],["cdkMonitorSubtreeFocus","","target","_blank","class","font-body2",3,"innerHTML","click",4,"ngIf"],["target","_blank",1,"font-body2-link",3,"click","href","shortUrl"],["cdkMonitorSubtreeFocus","","target","_blank",1,"font-body2",3,"click","innerHTML"],["class","font-body2-link",3,"routerLink","skipLocationChange",4,"ngIf"],["class","font-body2-link",3,"click",4,"ngIf"],[1,"font-body2-link",3,"routerLink","skipLocationChange"],[1,"font-body2-link",3,"click"],[1,"font-body2","hig-dialog-error-text"],["nvSpatialNavigationGroup","","navigateAction","focus",1,"hig-radio-container",3,"ngModelChange","change","ngModel"],["nvMatRadioSpatialNavigationFixup","",3,"value",4,"ngFor","ngForOf"],["nvMatRadioSpatialNavigationFixup","",3,"value"],[1,"hig-radio-label-container"],["class","hig-radio-option-image",3,"src",4,"ngIf"],["dir","auto",1,"hig-radio-option-label"],[1,"hig-radio-option-image",3,"src"],[1,"hig-description-list-container"],["class","hig-description-list-item",4,"ngFor","ngForOf"],[1,"hig-description-list-item"],["class","hig-description-icon font-body2",3,"svgIcon",4,"ngIf"],[1,"hig-description-text","font-body2"],[1,"hig-description-icon","font-body2",3,"svgIcon"],["fxLayout","row","fxLayoutAlign","start start",1,"hig-dialog-image-container"],["fxLayout","column",1,"hig-dialog-image-shortcut-container"],[1,"hig-dialog-image-shortcut-link",3,"click","dragstart","href"],[1,"hig-dialog-image",3,"src","alt"],[1,"hig-dialog-image-caption",3,"innerHTML"],[1,"hig-dialog-image-description","font-body2",3,"innerHTML"],[1,"nv-hig",3,"ngModelChange","ngModel"],["mat-button","",1,"hig-dialog-secondary-button","font-button2",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","",3,"click","ngClass","nvFocusRipple","disabled","nvAutoFocus","ngStyle"],[3,"ngStyle"],["fxLayoutAlign","center center","class","spinner-overlay",4,"ngIf"],["fxLayoutAlign","center center",1,"spinner-overlay"],["mode","indeterminate",3,"ngClass","diameter"]],template:function(xe,ue){1&xe&&(n.j41(0,"div",1)(1,"div",2),n.DNE(2,y,2,1,"i",3)(3,r,1,1,"img",4),n.j41(4,"div",5)(5,"div",6),n.DNE(6,i,2,4,"div",7),n.j41(7,"div",8),n.DNE(8,a,2,0,"div",9),n.j41(9,"div",10),n.DNE(10,h,2,4,"div",11),n.k0s()(),n.DNE(11,T,3,2,"div",12)(12,V,4,3,"div",12)(13,D,3,4,"div",13)(14,k,2,2,"mat-radio-group",14)(15,Y,2,1,"div",15)(16,K,10,14,"div",16),n.k0s(),n.j41(17,"div",17)(18,"div"),n.DNE(19,$,4,4,"mat-checkbox",18),n.k0s(),n.j41(20,"div",19),n.DNE(21,ee,4,8,"button",20)(22,J,5,17,"button",21),n.k0s(),n.DNE(23,te,1,1,"ng-template",null,0,n.C5r),n.k0s()()()()),2&xe&&(n.Y8G("ngClass",ue.data.isTransparent?"hig-dialog-transparent":"hig-dialog")("forceEnable",ue.data.trapFocus),n.R7$(),n.AVh("no-header-text",!ue.data.headerText)("no-body-text",!ue.data.bodyText)("no-spinner",!ue.data.showSpinner)("has-icon",ue.hasIcon),n.R7$(),n.Y8G("ngIf",ue.data.icon),n.R7$(),n.Y8G("ngIf",ue.data.image&&!ue.data.image.isDraggableUrl),n.R7$(3),n.Y8G("ngIf",ue.data.headerText),n.R7$(),n.Y8G("ngClass",n.l_i(25,P,ue.data.bodyText?"hig-dialog-spinner-content-start":"hig-dialog-spinner-content-center",ue.data.showSpinner?"hig-dialog-spinner-group":"")),n.R7$(),n.Y8G("ngIf",ue.data.showSpinner),n.R7$(2),n.Y8G("ngIf",ue.data.bodyText),n.R7$(),n.Y8G("ngIf",null==ue.data.link?null:ue.data.link.placeholders),n.R7$(),n.Y8G("ngIf",ue.data.link&&!ue.data.link.placeholders),n.R7$(),n.Y8G("ngIf",ue.data.errorCodeText),n.R7$(),n.Y8G("ngIf",ue.data.radioButtonOptions),n.R7$(),n.Y8G("ngIf",ue.data.descriptionList),n.R7$(),n.Y8G("ngIf",null==ue.data.image?null:ue.data.image.isDraggableUrl),n.R7$(3),n.Y8G("ngIf",ue.data.checkbox),n.R7$(2),n.Y8G("ngIf",ue.data.secondaryButton),n.R7$(),n.Y8G("ngIf",ue.data.primaryButton))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.hig-dialog[_ngcontent-%COMP%]{background-color:#393939;padding:0;width:560px}.hig-dialog-transparent[_ngcontent-%COMP%]{background-color:transparent;padding:0;width:100%}.isLtr[_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{padding:20px 8px 8px 24px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{--dummy: 0;padding:20px 8px 8px 24px}.isRtl[_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{padding:20px 24px 8px 8px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{--dummy: 0;padding:20px 24px 8px 8px}.hig-dialog-img[_ngcontent-%COMP%]{min-width:32px}.isLtr[_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}@media (max-width: 599.98px) and (orientation: portrait),screen and (max-width: 568px) and (max-height: 320px) and (orientation: landscape){.hig-dialog[_ngcontent-%COMP%]{width:calc(100vw - 32px)}}.hig-dialog-content-container[_ngcontent-%COMP%]{width:100%}.isLtr[_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{padding-right:15px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{--dummy2: 0;padding-right:15px}.isRtl[_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{padding-left:15px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{--dummy2: 0;padding-left:15px}.hig-dialog-spinner-group[_ngcontent-%COMP%]{margin-top:10px}.hig-dialog-link-text[_ngcontent-%COMP%]{margin:10px 0 0}.isLtr[_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hig-dialog-buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background:transparent}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.hig-dialog-buttons-container[_ngcontent-%COMP%]{flex-flow:row wrap-reverse}}.hig-dialog-spinner-container[_ngcontent-%COMP%]{display:flex;align-items:center}.hig-dialog-spinner-content-start[_ngcontent-%COMP%]{margin-top:10px;place-content:start}.no-header-text.no-spinner[_ngcontent-%COMP%] .hig-dialog-spinner-content-start[_ngcontent-%COMP%]{margin-top:0}.hig-dialog-spinner-content-center[_ngcontent-%COMP%]{place-content:center}.no-body-text.has-icon[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%], .no-header-text.no-spinner.has-icon[_ngcontent-%COMP%] .body-text[_ngcontent-%COMP%]{display:flex;height:32px;align-items:center}.hig-dialog-icon[_ngcontent-%COMP%]{font-size:32px;color:#595959}.hig-radio-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:16px}.hig-radio-label-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.hig-radio-option-image[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.hig-radio-option-label[_ngcontent-%COMP%]{line-height:24px;font-size:16px}.hig-dialog-image-container[_ngcontent-%COMP%]{width:100%;padding-top:24px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{width:154px}.isLtr[_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-link[_ngcontent-%COMP%]{position:relative;font-size:0;line-height:0;color:transparent;cursor:grab;cursor:-webkit-grab}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-link[_ngcontent-%COMP%]:active{cursor:grabbing;cursor:-webkit-grabbing}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image[_ngcontent-%COMP%]{width:130px;height:130px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-caption[_ngcontent-%COMP%]{text-align:center;margin:12px 0 0;color:#ffffffb3}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-description[_ngcontent-%COMP%]{margin:0}.hig-dialog-error-text[_ngcontent-%COMP%]{margin:24px 0 0}.hig-description-list-container[_ngcontent-%COMP%]{margin-top:16px}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-list-item[_ngcontent-%COMP%]{display:flex}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-top:2px;flex-shrink:0}.isLtr[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),ge})()},13458:(Ue,W,d)=>{"use strict";d.d(W,{o:()=>_});var n=d(43281),l=d(58527),p=d(3457),m=d(99204);let _=(()=>{var P;class v{constructor(S){this.viewRef=S,this.isTv=!1,this.mode=n.mt.Indeterminate,this.value=0,this.diameter=this.isTv?n._U:n.b5}}return(P=v).\u0275fac=function(S){return new(S||P)(l.rXU(l.c1b))},P.\u0275cmp=l.VBU({type:P,selectors:[["nv-hig-progress-circular"]],inputs:{isTv:"isTv",mode:"mode",value:"value",diameter:"diameter"},decls:2,vars:3,consts:[["fxLayoutAlign","center center",1,"common-overlay"],[1,"mat-accent",3,"mode","diameter","value"]],template:function(S,y){1&S&&(l.j41(0,"div",0),l.nrm(1,"mat-progress-spinner",1),l.k0s()),2&S&&(l.R7$(),l.Y8G("mode",y.mode)("diameter",y.diameter)("value",y.value))},dependencies:[p.sA,m.LG],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.common-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background-color:#000000bf}.common-overlay.light-background[_ngcontent-%COMP%]{background-color:#00000080}.common-overlay.no-background[_ngcontent-%COMP%]{background-color:transparent}"]}),v})()},43281:(Ue,W,d)=>{"use strict";d.d(W,{_U:()=>l,b5:()=>n,mt:()=>p});const n=16,l=2*n;var p=function(m){return m.Indeterminate="indeterminate",m.Determininate="determinate",m}(p||{})},5428:(Ue,W,d)=>{"use strict";d.d(W,{t:()=>h});var n=d(58527),l=d(6364),p=d(10785),_=d(61142),P=d(3457),v=d(56106),O=d(13186),S=d(54676);const y=["slider"];function r(g,c){if(1&g){const T=n.RV6();n.j41(0,"input",4),n.mxI("ngModelChange",function(L){n.eBV(T);const x=n.XpG();return n.DH7(x.inputValue,L)||(x.inputValue=L),n.Njj(L)}),n.bIt("focus",function(){n.eBV(T);const L=n.XpG();return n.Njj(L.onTextFocus())})("blur",function(){n.eBV(T);const L=n.XpG();return n.Njj(L.onTextBlur())})("change",function(L){n.eBV(T);const x=n.XpG();return n.Njj(x.textChanged(L))})("input",function(L){n.eBV(T);const x=n.XpG();return n.Njj(x.textInput(L))}),n.k0s()}if(2&g){const T=n.XpG();n.Y8G("disabled",T.disabled),n.R50("ngModel",T.inputValue),n.BMQ("tabindex",T.tabindex)}}var i=function(g){return g.Integer="integer",g.Decimal="decimal",g.Time="time",g.Percent="percent",g}(i||{});const a={[i.Integer]:/^-?\d*$/,[i.Decimal]:/^-?\d*\.*\d*$/,[i.Time]:/^-?\d*[:]?\d*$/,[i.Percent]:/^-?\d*$/};let h=(()=>{var g;class c{get min(){return this._min}set min(A){this._min=(0,l.OE)(A,this._min)}get max(){return this._max}set max(A){this._max=(0,l.OE)(A,this._max)}get step(){return this._step}set step(A){this._step=(0,l.OE)(A,this._step),this.forceSliderTickUpdate()}get default(){return this._default}set default(A){this._default=(0,l.OE)(A,this._default)}get tickInterval(){return this._tickInterval}set tickInterval(A){this._tickInterval="auto"===A?"auto":"number"==typeof A||"string"==typeof A?(0,l.OE)(A,this._tickInterval):0,console.log("tickinterval: ",this._tickInterval),this.forceSliderTickUpdate()}get value(){return this._value}set value(A){this._value=(0,l.OE)(A,this._value),setTimeout(()=>this.sliderMoved({source:this.slider,value:this.value}),0)}set formatTextAs(A){this._formatTextAs=i[A]||i.Integer}get formatTextAs(){return this._formatTextAs}constructor(A){this._min=0,this._max=100,this._step=1,this._default=void 0,this.disabled=!1,this.thumbLabel=!1,this.animating=!1,this._tickInterval=0,this._value=0,this.valueChange=new n.bkB,this.valueEntry=!1,this._formatTextAs=i.Integer,this.change=new n.bkB,this.input=new n.bkB,this.tabindex=void 0,this.sliderStep=0,this.inputValue=void 0,this.textFocused=!1,this.mouseDown=!1,this.initializing=!0,this.afterInit=!1,this.textValueValidation="",this.tabindex=parseInt(A,10),Number.isNaN(this.tabindex)&&(this.tabindex=void 0),this.realTabIndex="-1"}ngAfterViewInit(){this.afterInit=!0,setTimeout(()=>{this.forceSliderTickUpdate(),this.sliderMoved({source:this.slider,value:this.value})},0),setTimeout(()=>this.initializing=!1,100)}forceSliderTickUpdate(){this.afterInit&&this.slider&&(this.slider.step=this.step,this.sliderStep=this.step,this.slider._onMouseenter())}onTextFocus(){this.textFocused=!0}onTextBlur(){this.textFocused=!1}textChanged(A){let L=A.target.value;if(this.formatTextAs===i.Time){const V=p(L,"mm:ss");L=60*V.minutes()+V.seconds()+""}let x=0;this.formatTextAs===i.Decimal?(x=100*(parseFloat(L)||0),this.step&&(x=Math.round((x-100*this.min)/(100*this.step))*this.step+this.min)):(x=parseInt(L,10)||0,this.step&&(x=Math.round((x-this.min)/this.step)*this.step+this.min)),x=Math.min(this.max,Math.max(x,this.min)),this.value=x,this.sliderChanged({source:this.slider,value:this.value}),A.stopImmediatePropagation()}sliderChanged(A){this.valueChange.emit(this.value),this.change.emit(A)}sliderMoved(A){if(A&&void 0!==A.value){if(this.formatTextAs===i.Time){let L=p({seconds:0});L=L.second(A.value),this.inputValue=L.format("mm:ss")}else this.inputValue=this.formatTextAs===i.Percent?A.value+" %":A.value+"";this.textValueValidation=this.inputValue,this.input.emit(A)}}textInput(A){const x=A.target;x&&!(a[this.formatTextAs]||a[i.Integer]).test(x.value)?x.value=this.textValueValidation:this.textValueValidation=x.value,A.stopImmediatePropagation()}onKeyDown(A){this.default&&"Period"===A.code&&(this.value=this.default,this.sliderChanged({source:this.slider,value:this.value}))}}return(g=c).\u0275fac=function(A){return new(A||g)(n.kS0("tabindex"))},g.\u0275cmp=n.VBU({type:g,selectors:[["nv-hig-slider"]],viewQuery:function(A,L){if(1&A&&n.GBs(y,7),2&A){let x;n.mGM(x=n.lsd())&&(L.slider=x.first)}},hostVars:1,hostBindings:function(A,L){2&A&&n.Mr5("tabindex",L.realTabIndex)},inputs:{min:"min",max:"max",step:"step",default:"default",disabled:"disabled",thumbLabel:"thumbLabel",animating:"animating",tickInterval:"tickInterval",value:"value",valueEntry:"valueEntry",formatTextAs:"formatTextAs"},outputs:{valueChange:"valueChange",change:"change",input:"input"},decls:4,vars:15,consts:[["slider",""],["fxFlex","row","fxLayoutAlign","start start",1,"nv-hig"],["fxFlex","","nvMatSliderKeyboardFixup","",3,"valueChange","input","change","mousedown","mouseup","keydown","min","max","step","disabled","thumbLabel","tickInterval","value","tabIndex"],["type","text","fxFlex","none","class","slider-text-entry font-body2",3,"disabled","ngModel","ngModelChange","focus","blur","change","input",4,"ngIf"],["type","text","fxFlex","none",1,"slider-text-entry","font-body2",3,"ngModelChange","focus","blur","change","input","disabled","ngModel"]],template:function(A,L){if(1&A){const x=n.RV6();n.j41(0,"div",1)(1,"mat-slider",2,0),n.mxI("valueChange",function(D){return n.eBV(x),n.DH7(L.value,D)||(L.value=D),n.Njj(D)}),n.bIt("input",function(D){return n.eBV(x),n.Njj(L.sliderMoved(D))})("change",function(D){return n.eBV(x),n.Njj(L.sliderChanged(D))})("mousedown",function(){return n.eBV(x),n.Njj(L.mouseDown=!0)})("mouseup",function(){return n.eBV(x),n.Njj(L.mouseDown=!1)},!1,n.tSv)("keydown",function(D){return n.eBV(x),n.Njj(L.onKeyDown(D))}),n.k0s(),n.DNE(3,r,1,3,"input",3),n.k0s()}2&A&&(n.R7$(),n.AVh("cdk-mouse-focused",L.textFocused)("nv-mouse-down",L.mouseDown)("hig-slider-no-animation",L.animating||L.initializing),n.Y8G("min",L.min)("max",L.max)("step",L.sliderStep)("disabled",L.disabled)("thumbLabel",L.thumbLabel)("tickInterval",L.tickInterval),n.R50("value",L.value),n.Y8G("tabIndex",L.tabindex),n.R7$(2),n.Y8G("ngIf",L.valueEntry))},dependencies:[_.bT,P.sA,P.UI,v.me,v.BC,v.vS,O.N$,S.Sb],styles:[".slider-text-entry[_ngcontent-%COMP%]{width:48px;height:23px;background-color:transparent;border:none;text-align:center;padding-bottom:2px;border-bottom:1px solid #636363;caret-color:#76b900}.isLtr[_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{margin:0 0 0 8px}html[dir=ltr][_ngcontent-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 0 8px}.isRtl[_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{margin:0 8px 0 0}html[dir=rtl][_ngcontent-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{--dummy: 0;margin:0 8px 0 0}.slider-text-entry[_ngcontent-%COMP%]:disabled{opacity:.38}.slider-text-entry[_ngcontent-%COMP%]::selection{background-color:#76b900}.slider-text-entry[_ngcontent-%COMP%]:focus, .mat-slider[_ngcontent-%COMP%]:not(.mat-slider-disabled).cdk-focused ~ .slider-text-entry[_ngcontent-%COMP%]{padding-bottom:1px;border-bottom:2px solid #76b900;outline:none}"]}),c})()},29824:(Ue,W,d)=>{"use strict";d.d(W,{L:()=>$});var n=d(58527),l=d(26537),p=d(72818),m=d(25369),_=d(13090),P=d(16490);function v(ee,J){if(1&ee&&n.nrm(0,"div",21),2&ee){const z=n.XpG();n.Y8G("imageUrl",null==z.data||null==z.data.threeQuarterSheetData?null:z.data.threeQuarterSheetData.backgroundImageUrl)}}function O(ee,J){if(1&ee&&(n.j41(0,"div",22)(1,"span",23),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&ee){const z=n.XpG();n.R7$(2),n.JRh(z.data.threeQuarterSheetData.title.translated?z.data.threeQuarterSheetData.title.text:n.bMT(3,1,z.data.threeQuarterSheetData.title.text))}}function S(ee,J){if(1&ee&&(n.j41(0,"span",24),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&ee){const z=n.XpG();n.R7$(),n.JRh(n.i5U(2,1,z.data.headerText.text,z.data.translateValues))}}function y(ee,J){1&ee&&n.nrm(0,"mat-progress-spinner",25)}function r(ee,J){if(1&ee&&(n.j41(0,"div",26),n.nrm(1,"qrcode",27),n.k0s()),2&ee){const z=n.XpG();n.R7$(),n.Y8G("qrdata",z.data.image.url)("width",200)("errorCorrectionLevel","M")}}function i(ee,J){if(1&ee&&(n.nrm(0,"div",28),n.nI1(1,"translate")),2&ee){const z=n.XpG();n.Y8G("innerHTML",z.data.bodyText.translated?z.data.bodyText.text:n.i5U(1,1,z.data.bodyText.text,z.data.bodyText.placeholders),n.npT)}}function a(ee,J){if(1&ee&&n.nrm(0,"mat-icon",34),2&ee){const z=n.XpG().$implicit;n.Y8G("svgIcon",z.matIcon)}}function h(ee,J){if(1&ee&&(n.j41(0,"div",31),n.DNE(1,a,1,1,"mat-icon",32),n.j41(2,"div",33),n.EFF(3),n.k0s()()),2&ee){const z=J.$implicit;n.R7$(),n.Y8G("ngIf",z.matIcon),n.R7$(2),n.JRh(z.text)}}function g(ee,J){if(1&ee&&(n.j41(0,"div",29),n.DNE(1,h,4,2,"div",30),n.k0s()),2&ee){const z=n.XpG();n.R7$(),n.Y8G("ngForOf",z.data.descriptionList)}}function c(ee,J){if(1&ee&&(n.j41(0,"div",35)(1,"div",36),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&ee){const z=n.XpG();n.R7$(2),n.JRh(n.bMT(3,1,z.data.footerText.text))}}function T(ee,J){if(1&ee&&n.nrm(0,"img",40),2&ee){const z=n.XpG(2).$implicit;n.Y8G("src",z.imageUrl,n.B4B)}}function A(ee,J){if(1&ee){const z=n.RV6();n.j41(0,"button",38),n.bIt("click",function(){n.eBV(z);const X=n.XpG().$implicit,re=n.XpG();return n.Njj(re.onRadioButtonClick(X.value))}),n.DNE(1,T,1,1,"img",39),n.EFF(2),n.nI1(3,"translate"),n.k0s()}if(2&ee){const z=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",z.imageUrl),n.R7$(),n.SpI(" ",n.bMT(3,2,z.value)," ")}}function L(ee,J){if(1&ee&&(n.qex(0),n.DNE(1,A,4,4,"button",37),n.bVm()),2&ee){const z=J.$implicit;n.R7$(),n.Y8G("ngIf",z)}}function x(ee,J){if(1&ee){const z=n.RV6();n.j41(0,"button",41),n.bIt("click",function(){n.eBV(z);const X=n.XpG();return n.Njj(X.onPrimaryButtonClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&ee){const z=n.XpG();n.Y8G("disabled",z.data.primaryButton.isDisabled)("nvAutoFocus",z.autoFocusOnPrimaryButton),n.R7$(),n.SpI(" ",n.bMT(2,3,z.data.primaryButton.text)," ")}}function V(ee,J){if(1&ee&&(n.qex(0),n.eu8(1,42),n.bVm()),2&ee){n.XpG();const z=n.sdS(23);n.R7$(),n.Y8G("ngTemplateOutlet",z)}}function D(ee,J){if(1&ee&&(n.qex(0),n.eu8(1,42)(2,42),n.bVm()),2&ee){n.XpG();const z=n.sdS(21),te=n.sdS(23);n.R7$(),n.Y8G("ngTemplateOutlet",z),n.R7$(),n.Y8G("ngTemplateOutlet",te)}}function F(ee,J){if(1&ee){const z=n.RV6();n.qex(0),n.j41(1,"button",43),n.bIt("click",function(){const X=n.eBV(z).$implicit,re=n.XpG();return n.Njj(re.onAugmentedButtonClick(X.id))}),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.bVm()}if(2&ee){const z=J.$implicit;n.R7$(2),n.SpI(" ",n.bMT(3,1,z.text)," ")}}function I(ee,J){if(1&ee){const z=n.RV6();n.j41(0,"button",38),n.bIt("click",function(){n.eBV(z);const X=n.XpG(2);return n.Njj(X.onLinkClick(X.data.link.url,X.data.link.shortUrl,X.data.link.shortUrlDescription,X.data.link.linkClickedCallback))}),n.j41(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"i",46),n.EFF(5,"open_in_new"),n.k0s()()}if(2&ee){const z=n.XpG(2);n.R7$(2),n.JRh(n.i5U(3,1,z.data.link.text,z.data.link.placeholders))}}function k(ee,J){if(1&ee&&(n.j41(0,"div",44),n.nrm(1,"md-divider",45),n.DNE(2,I,6,4,"button",37),n.k0s()),2&ee){const z=n.XpG();n.R7$(2),n.Y8G("ngIf",z.data.link.url||z.data.link.linkClickedCallback)}}function R(ee,J){if(1&ee){const z=n.RV6();n.j41(0,"button",43),n.bIt("click",function(){n.eBV(z);const X=n.XpG(2);return n.Njj(X.onSecondaryButtonClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&ee){const z=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,z.data.secondaryButton.text)," ")}}function G(ee,J){if(1&ee&&n.DNE(0,R,3,3,"button",47),2&ee){const z=n.XpG();n.Y8G("ngIf",z.data.secondaryButton)}}function Y(ee,J){if(1&ee){const z=n.RV6();n.j41(0,"button",43),n.bIt("click",function(){n.eBV(z);const X=n.XpG(2);return n.Njj(X.onCheckboxClick())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&ee){const z=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,z.data.checkbox.text)," ")}}function K(ee,J){if(1&ee&&n.DNE(0,Y,3,3,"button",47),2&ee){const z=n.XpG();n.Y8G("ngIf",z.data.checkbox)}}let $=(()=>{var ee;class J extends m.D{get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}static open(te,X){return X.maxWidth="100vw",(0,p.SN)(X,{threeQuarterSheet:!0}),te.open(J,{...X,width:"100%",height:"100%"})}constructor(te,X,re,ge,oe){super(re,ge,te,oe),this.offDeviceLinkService=X,this.primaryButtonClick=new n.bkB,this.secondaryButtonClick=new n.bkB,this.radioButtonClick=new n.bkB,this.augmentedButtonClick=new n.bkB,this.linkClick=new n.bkB,this.data={},this.data=te.get(l.Vh,null)}onPrimaryButtonClick(te){this.primaryButtonClick.emit(te)}onSecondaryButtonClick(te){this.secondaryButtonClick.emit(te)}onCheckboxClick(){this.data.checkboxState=!0,(this.data.checkbox.primaryActionInThreeQuarterSheet?this.primaryButtonClick:this.secondaryButtonClick).emit()}onRadioButtonClick(te){this.data.radioOptionSelected=te,this.radioButtonClick.emit(),this.primaryButtonClick.emit()}onLinkClick(te,X,re,ge){te?this.offDeviceLinkService.open(te,{shortUrl:X,shortUrlDescription:re,threeQuarterSheetData:this.data?.threeQuarterSheetData}):ge&&ge(),this.linkClick.emit()}onAugmentedButtonClick(te){this.augmentedButtonClick.emit(te)}}return(ee=J).\u0275fac=function(te){return new(te||ee)(n.rXU(n.zZn),n.rXU(_.n),n.rXU(l.CP,8),n.rXU(P.eN,8),n.rXU(n.SKi))},ee.\u0275cmp=n.VBU({type:ee,selectors:[["nv-hig-three-quarter-sheet"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",radioButtonClick:"radioButtonClick",augmentedButtonClick:"augmentedButtonClick",linkClick:"linkClick"},features:[n.Vt3],decls:24,vars:19,consts:[["secondaryButton",""],["checkboxButton",""],["fxFlex","","fxLayout","row","nvSpatialNavigationContainer","","nvTrapFocus","",1,"main-dialog-sheet"],["class","image-layer","nvHigBackgroundImageOverlay","",3,"imageUrl",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start",1,"content-container"],["class","title",4,"ngIf"],["fxLayout","column","fxLayoutGap","32px"],["class","content-header font-header4",4,"ngIf"],["fxLayout","row",1,"content-info"],["mode","indeterminate","diameter","48","color","accent",4,"ngIf"],["class","qrcode-container",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutGap","16px"],["class","font-body2",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px","class","hig-description-list-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end end",4,"ngIf"],["fxLayout","column","fxLayoutGap","12px",1,"button-container"],[4,"ngFor","ngForOf"],["mat-button","","class","sentence-case",3,"disabled","nvAutoFocus","click",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutGap","16px",4,"ngIf"],["nvHigBackgroundImageOverlay","",1,"image-layer",3,"imageUrl"],[1,"title"],[1,"title-content"],[1,"content-header","font-header4"],["mode","indeterminate","diameter","48","color","accent"],[1,"qrcode-container"],[3,"qrdata","width","errorCorrectionLevel"],[1,"font-body2",3,"innerHTML"],["fxLayout","column","fxLayoutGap","16px",1,"hig-description-list-container"],["class","hig-description-list-item",4,"ngFor","ngForOf"],[1,"hig-description-list-item"],["class","hig-description-icon font-body2",3,"svgIcon",4,"ngIf"],[1,"hig-description-text","font-body2"],[1,"hig-description-icon","font-body2",3,"svgIcon"],["fxLayout","row","fxLayoutAlign","end end"],[1,"font-body3"],["mat-button","",3,"click",4,"ngIf"],["mat-button","",3,"click"],["class","prefix-image",3,"src",4,"ngIf"],[1,"prefix-image",3,"src"],["mat-button","",1,"sentence-case",3,"click","disabled","nvAutoFocus"],[3,"ngTemplateOutlet"],["mat-button","",1,"sentence-case",3,"click"],["fxLayout","column","fxLayoutGap","16px"],["role","separator",1,"separator"],[1,"material-icons","link-icon"],["mat-button","","class","sentence-case",3,"click",4,"ngIf"]],template:function(te,X){if(1&te&&(n.j41(0,"div",2),n.DNE(1,v,1,1,"div",3),n.j41(2,"div",4),n.DNE(3,O,4,3,"div",5),n.j41(4,"div",6),n.DNE(5,S,3,4,"span",7),n.j41(6,"div",8),n.DNE(7,y,1,0,"mat-progress-spinner",9)(8,r,2,3,"div",10),n.j41(9,"div",11),n.DNE(10,i,2,4,"div",12)(11,g,2,1,"div",13),n.k0s()()(),n.DNE(12,c,4,3,"div",14),n.k0s(),n.j41(13,"div",15),n.DNE(14,L,2,1,"ng-container",16)(15,x,3,5,"button",17)(16,V,2,1,"ng-container",18)(17,D,3,2,"ng-container",19)(18,F,4,3,"ng-container",16)(19,k,3,1,"div",20)(20,G,1,1,"ng-template",null,0,n.C5r)(22,K,1,1,"ng-template",null,1,n.C5r),n.k0s()()),2&te){const re=n.sdS(21);n.R7$(),n.Y8G("ngIf",null==X.data||null==X.data.threeQuarterSheetData?null:X.data.threeQuarterSheetData.backgroundImageUrl),n.R7$(),n.AVh("translucent",null==X.data||null==X.data.threeQuarterSheetData?null:X.data.threeQuarterSheetData.backgroundImageUrl),n.R7$(),n.Y8G("ngIf",null==X.data||null==X.data.threeQuarterSheetData?null:X.data.threeQuarterSheetData.title),n.R7$(2),n.Y8G("ngIf",X.data.headerText),n.R7$(2),n.Y8G("ngIf",X.data.showSpinner),n.R7$(),n.Y8G("ngIf",null==X.data.image?null:X.data.image.url),n.R7$(2),n.Y8G("ngIf",X.data.bodyText),n.R7$(),n.Y8G("ngIf",X.data.descriptionList),n.R7$(),n.Y8G("ngIf",X.data.footerText),n.R7$(),n.AVh("translucent",null==X.data||null==X.data.threeQuarterSheetData?null:X.data.threeQuarterSheetData.backgroundImageUrl),n.R7$(),n.Y8G("ngForOf",X.data.radioButtonOptions),n.R7$(),n.Y8G("ngIf",X.data.primaryButton&&!X.data.radioButtonOptions),n.R7$(),n.Y8G("ngIf",null==X.data.checkbox?null:X.data.checkbox.primaryActionInThreeQuarterSheet),n.R7$(),n.Y8G("ngIf",X.data.checkbox&&!X.data.checkbox.primaryActionInThreeQuarterSheet)("ngIfElse",re),n.R7$(),n.Y8G("ngForOf",null==X.data.threeQuarterSheetData?null:X.data.threeQuarterSheetData.augmentedButtons),n.R7$(),n.Y8G("ngIf",X.data.link)}},styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.main-dialog-sheet[_ngcontent-%COMP%]{position:fixed;top:0;left:0;background:#393939;max-height:100%;width:100vw;height:100%}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{padding:133px 88px 48px;width:1180px}.main-dialog-sheet[_ngcontent-%COMP%] .content-container.translucent[_ngcontent-%COMP%]{background:#000000b3}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header[_ngcontent-%COMP%]{height:318px;word-break:break-word;display:flex;align-items:flex-end}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header.sentence-case[_ngcontent-%COMP%]{text-transform:lowercase}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header.sentence-case[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:32px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{--dummy4: 0;margin-right:32px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:32px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{--dummy4: 0;margin-left:32px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .qrcode-container[_ngcontent-%COMP%]{width:200px;height:200px}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{top:56px;position:fixed;display:flex;align-items:flex-end}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#fff9}.tv-view[_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{width:calc(100vw - 1180px);background:#191919;padding-top:374px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-left:40px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:40px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-right:40px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:40px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-right:88px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:88px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-left:88px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:88px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container.translucent[_ngcontent-%COMP%]{background:#000000e6}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-align:start;height:96px;border-radius:8px;white-space:normal;font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{width:48px;height:48px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-left:12px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy1: 0;padding-left:12px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-right:12px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy1: 0;padding-right:12px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-right:28px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy2: 0;padding-right:28px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-left:28px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy2: 0;padding-left:28px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i.link-icon[_ngcontent-%COMP%]{vertical-align:middle;padding:0 16px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button.sentence-case[_ngcontent-%COMP%]{text-transform:lowercase}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button.sentence-case[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.tv-view[_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{margin-top:4px}.image-layer[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1;opacity:.8}.hig-description-list-container[_ngcontent-%COMP%]{margin-top:16px}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-list-item[_ngcontent-%COMP%]{display:flex}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;margin-top:4px}.isLtr[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),J})()},22355:(Ue,W,d)=>{"use strict";d.d(W,{N:()=>m});var n=d(6364),l=d(58527),p=d(21684);let m=(()=>{var _;class P{constructor(O,S){this.element=O,this.focusManager=S,this.autoFocusPolicy="self",this._focusEnabled=!0}get focusEnabled(){return this._focusEnabled}set focusEnabled(O){this._focusEnabled=(0,n.he)(O)}ngAfterViewInit(){this.focusEnabled&&("initial"===this.autoFocusPolicy?setTimeout(()=>this.focusManager.focusChild(this.element.nativeElement,"initial")):setTimeout(()=>this.focusManager.focusViaLastOrigin(this.element.nativeElement)))}}return(_=P).\u0275fac=function(O){return new(O||_)(l.rXU(l.aKT),l.rXU(p.c))},_.\u0275dir=l.FsC({type:_,selectors:[["","nvAutoFocus",""]],inputs:{autoFocusPolicy:"autoFocusPolicy",focusEnabled:[l.Mj6.None,"nvAutoFocus","focusEnabled"]}}),P})()},25369:(Ue,W,d)=>{"use strict";d.d(W,{D:()=>S});var n=d(26537),l=d(16490),p=d(80583),m=d(8619),_=d(65706),P=d(4208),v=d(32727),O=d(58527);let S=(()=>{var y;class r{constructor(a,h,g,c){this.dialogRef=a,this.bottomSheetRef=h,this.injector=g,this.ngZone=c,this.destroy$=new p.B7}ngAfterViewInit(){const a=this.dialogRef?this.injector.get(n.Vh,null):this.bottomSheetRef?this.injector.get(l.yj,null):void 0,h=this.dialogRef??this.bottomSheetRef;!h||a?.disableBackToClose||this.ngZone.runOutsideAngular(()=>{h.keydownEvents().pipe((0,m.p)(v.Nw),(0,_.s)(1),(0,P.Q)(this.destroy$)).subscribe(g=>{g.stopPropagation(),g.preventDefault(),this.close(g)})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}close(a){const h=("function"==typeof this.backToCloseResult?this.backToCloseResult():this.backToCloseResult)??a;this.dialogRef?.close(h),this.bottomSheetRef?.dismiss(h)}}return(y=r).\u0275fac=function(a){return new(a||y)(O.rXU(n.CP,8),O.rXU(l.eN,8),O.rXU(O.zZn),O.rXU(O.SKi))},y.\u0275dir=O.FsC({type:y,selectors:[["","nvBackToCloseModal",""]],inputs:{backToCloseResult:"backToCloseResult"}}),r})()},97888:(Ue,W,d)=>{"use strict";d.d(W,{Aq:()=>T});var n=d(58527),l=d(6364),p=d(32727),m=d(11013),_=d(72653),P=d(68868),O=function(A){return A[A.Off=0]="Off",A[A.FocusIn=1]="FocusIn",A[A.On=2]="On",A[A.FocusOut=3]="FocusOut",A}(O||{});const S=["focus"],y=["blur"];function i({rippleRef:A,rectRef:L,targetWidth:x,targetHeight:V,borderWidth:D}){const F=A.nativeElement,I=L.nativeElement,k=function r(A){const L=A.width/2,x=A.height/2;return Math.sqrt(L*L+x*x)}({width:x,height:V});F.style.height=2*k+"px",F.style.width=2*k+"px",I.style.height=V-2*D+"px",I.style.width=x-2*D+"px"}const a={enterDuration:140,exitDuration:140};class c{constructor(L,x,V,D,F,I){this._target=L,this._ngZone=x,this._platform=D,this.borderWidth=F,this.inputModalityService=I,this.eventListeners={},this.focusAnimState=O.Off,this.clearListeners=()=>{this._currentRippleRef?.nativeElement.removeEventListener("transitionend",this.eventListeners.onTransitionEnd),this._currentRippleRef?.nativeElement.removeEventListener("transitioncancel",this.eventListeners.onTransitionCancel)},D.isBrowser&&(this._containerElement=(0,l.i8)(V))}focusInRipple(L){this.tearDown(),this._containerElement.classList.add("nv-focus-ripple-cta-btn"),this._containerElement.classList.add("focus-green-text");const x=L.animation,V=this.borderWidth,D=this._containerElement.getBoundingClientRect(),F=document.createElement("div");F.classList.add("nv-ripple-center","nv-ripple-element");const I=document.createElement("div");I.classList.add("nv-ripple-center","nv-ripple-rect");const k=new n.aKT(F),R=new n.aKT(I);i({rippleRef:k,rectRef:R,targetWidth:D.width,targetHeight:D.height,borderWidth:V}),I.style.opacity="0.5",F.style.opacity="0",F.style.backgroundColor=L.color,I.style.backgroundColor=L.color,F.style.transitionDuration=`${x.enterDuration}ms`,I.style.transitionDuration=`${x.enterDuration}ms`,this._containerElement.appendChild(F),this._containerElement.appendChild(I),this._containerElement.getBoundingClientRect(),F.style.transform="scale3d(1, 1, 1)",F.style.opacity="0.5",I.style.transform="scale3d(1, 1, 1)",I.style.opacity="1",this.focusAnimState=O.FocusIn,this._currentRippleRef=k,this._currentRectRef=R,this._ngZone.runOutsideAngular(()=>{const G=K=>{"opacity"===K.propertyName&&(this.clearListeners(),this.focusAnimState=O.On,this._currentRectRef.nativeElement.style.border=`${V}px solid ${L.borderColor}`,this.observer=new ResizeObserver(([{borderBoxSize:[{inlineSize:$,blockSize:ee}]}])=>{($!==D.width||ee!==D.height)&&i({rippleRef:this._currentRippleRef,rectRef:this._currentRectRef,targetWidth:$,targetHeight:ee,borderWidth:V})}),this.observer.observe(this._containerElement))},Y=K=>{"opacity"===K.propertyName&&this.tearDown()};this.eventListeners={onTransitionCancel:Y,onTransitionEnd:G},this._currentRippleRef.nativeElement.addEventListener("transitionend",G),this._currentRippleRef.nativeElement.addEventListener("transitioncancel",Y)})}tearDown(){this.clearListeners(),this._destroyRipples(),this.observer?.disconnect(),this.observer=null}focusOutRipple(){this.observer?.disconnect(),this.clearListeners();const L=this._currentRippleRef.nativeElement,x=this._currentRectRef.nativeElement;!x||!L||(x.style.border="none",L.style.transform="scale3d(0, 0, 0)",L.style.opacity="0",x.style.transform="scale3d(0, 0, 0)",x.style.opacity="0.5",this._containerElement.classList.remove("focus-green-text"),this.focusAnimState=O.FocusOut,this._ngZone.runOutsideAngular(()=>{const V=I=>{"opacity"===I.propertyName&&this.tearDown()},D=I=>{V(I)},F=I=>{V(I)};this.eventListeners={onTransitionCancel:F,onTransitionEnd:D},this._currentRippleRef.nativeElement.addEventListener("transitionend",D),this._currentRippleRef.nativeElement.addEventListener("transitioncancel",F)}))}setupTriggerEvents(L){const x=(0,l.i8)(L);!this._platform.isBrowser||!x||x===this._triggerElement||(this.removeTriggerEvents(),this._triggerElement=x,S.forEach(V=>{c._eventManager.addHandler(this._ngZone,V,x,this)}),y.forEach(V=>{c._eventManager.addHandler(this._ngZone,V,x,this)}))}removeTriggerEvents(){const L=this._triggerElement;L&&(S.forEach(x=>c._eventManager.removeHandler(x,L,this)),y.forEach(x=>c._eventManager.removeHandler(x,L,this)))}handleEvent(L){const x=this.inputModalityService.lastFocusOrigin;if("keyboard"===x||"program"===x)if(S.includes(L.type)){if(this.focusAnimState===O.On||this.focusAnimState===O.FocusIn)return;this._onFocusIn()}else if(y.includes(L.type)){if(this.focusAnimState===O.Off||this.focusAnimState===O.FocusOut)return;this._onFocusOut()}}_destroyRipples(){this.focusAnimState=O.Off,this._currentRippleRef?.nativeElement?.remove(),this._currentRectRef?.nativeElement?.remove(),this._currentRippleRef=null,this._currentRectRef=null,this._containerElement.classList.remove("nv-focus-ripple-cta-btn")}_onFocusIn(){const L=this._target.rippleConfig.animation;(L.enterDuration||L.exitDuration)&&this.focusInRipple(this._target.rippleConfig)}_onFocusOut(){const L=this._target.rippleConfig.animation;(L.enterDuration||L.exitDuration)&&this.focusOutRipple()}}c._eventManager=new p.EU;let T=(()=>{var A;class L{get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}get flagEnabled(){return this._flagEnabled}set flagEnabled(V){this._flagEnabled=(0,l.he)(V)}get disableRipple(){return!this.focusRippleEnabled||!this._flagEnabled}constructor(V,D,F,I,k){this._elementRef=V,this.animation=a,this.color="#2c3220",this.borderColor="#76b900",this._flagEnabled=!0,this._isInitialized=!1,this.focusRippleEnabled=!!k.focusRippleEnabled,!this.disableRipple&&(this._rippleRenderer=new c(this,D,V,F,k?.focusRippleBorderWidth,I))}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer?.removeTriggerEvents()}get rippleConfig(){return{color:this.color,borderColor:this.borderColor,animation:this.animation}}_setupTriggerEventsIfEnabled(){this._isInitialized&&!this.disableRipple&&this._rippleRenderer.setupTriggerEvents(this.trigger)}}return(A=L).\u0275fac=function(V){return new(V||A)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(_.OD),n.rXU(P.p),n.rXU(m.X,8))},A.\u0275dir=n.FsC({type:A,selectors:[["button","color","accent"],["button","mat-raised-button",""],["button",8,"mat-accent"],["","nvFocusRipple",""]],inputs:{animation:[n.Mj6.None,"nvRippleAnimation","animation"],color:[n.Mj6.None,"nvRippleColor","color"],borderColor:[n.Mj6.None,"nvRippleBorderColor","borderColor"],trigger:[n.Mj6.None,"nvRippleTrigger","trigger"],flagEnabled:[n.Mj6.None,"nvFocusRipple","flagEnabled"]}}),L})()},40514:(Ue,W,d)=>{"use strict";d.d(W,{e:()=>a});var n=d(80583),l=d(36877),p=d(16229),m=d(8619),_=d(91384),P=d(4208),v=d(10174),O=d(65706),S=d(11013),y=d(32727),r=d(58527),i=d(62293);let a=(()=>{var h;class g{constructor(T,A,L,x){this.elementRef=T,this.userActivationGuardService=A,this.ngZone=L,this.destroy$=new n.B7,this.enable=!1,this.enable=!!x?.userActivationGuardConfig?.link,this.message=x?.userActivationGuardConfig?.linkWarningMessage}ngAfterViewInit(){!this.enable||!this.message||this.ngZone.runOutsideAngular(()=>{(0,l.R)(this.elementRef.nativeElement,"click").pipe((0,m.p)(T=>this.isLink(T.target)),(0,m.p)(T=>!(0,y.Ls)(T)),(0,_.M)(()=>{this.displayWarningMessage()}),(0,P.Q)(this.destroy$)).subscribe(T=>{T.preventDefault()})})}isLink(T){return"A"===T.tagName&&T.hasAttribute("href")}displayWarningMessage(){if(this.isWarningDisplayed)return;const T=this.userActivationGuardService.displayWarning(this.message);(0,p.h)(T.afterOpened().pipe((0,v.u)(!0)),T.afterDismissed().pipe((0,v.u)(!1))).pipe((0,O.s)(2),(0,P.Q)(this.destroy$)).subscribe(A=>{this.isWarningDisplayed=A})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(h=g).\u0275fac=function(T){return new(T||h)(r.rXU(r.aKT),r.rXU(i.g),r.rXU(r.SKi),r.rXU(S.X,8))},h.\u0275dir=r.FsC({type:h,selectors:[["","nvHyperLinkGuard",""],["a","href",""],["","innerHTML",""]]}),g})()},80362:(Ue,W,d)=>{"use strict";d.d(W,{i4:()=>y});var n=d(6364),l=d(58527),p=d(37278),m=d(80583),_=d(53461),P=d(26875);class O{constructor(i,a,h){this._scrolledIndexChange=new m.B7,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,_.F)()),this._viewport=null,this._itemOffsets=i,this._minBufferPx=a,this._maxBufferPx=h}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(i,a,h){if(h<a)throw Error("CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx");this._itemOffsets=i,this._minBufferPx=a,this._maxBufferPx=h,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,a){this._viewport&&this._itemOffsets&&this._itemOffsets.length>=i&&i>=0&&this._viewport.scrollToOffset(this._itemOffsets[i],a)}_updateTotalContentSize(){!this._viewport||!this._itemOffsets||0===this._itemOffsets.length||this._viewport.setTotalContentSize(this._itemOffsets[this._itemOffsets.length-1])}getIndexFromPosition(i){return Math.max(0,(0,P.sortedIndex)(this._itemOffsets,i)-1)}_updateRenderedRange(){if(!this._viewport||!this._itemOffsets||0===this._itemOffsets.length)return;const i=this._viewport.measureScrollOffset(),a=this.getIndexFromPosition(i),h=this._viewport.getRenderedRange(),g={start:h.start,end:h.end},c=this._viewport.getViewportSize(),T=this._viewport.getDataLength();g.start>this._itemOffsets.length&&(g.start=0,g.end=this._itemOffsets.length-1);const A=i-this._itemOffsets[g.start];if(A<this._minBufferPx&&0!==g.start){const L=this.getIndexFromPosition(this._maxBufferPx-A);g.start=Math.max(0,g.start-L),g.end=Math.min(T,Math.ceil(this.getIndexFromPosition(i+c+this._minBufferPx)))}else{const L=this._itemOffsets[g.end]-(i+c);if(L<this._minBufferPx&&g.end!==T){const x=this.getIndexFromPosition(this._maxBufferPx-L);x>0&&(g.end=Math.min(T,g.end+x),g.start=Math.max(0,Math.floor(this.getIndexFromPosition(this._itemOffsets[a]-this._minBufferPx))))}}this._viewport.setRenderedRange(g),this._viewport.setRenderedContentOffset(this._itemOffsets[g.start]),this._scrolledIndexChange.next(Math.floor(a))}}function S(r){return r._scrollStrategy}let y=(()=>{var r;class i{constructor(){this._itemOffsets=[0],this._minBufferPx=200,this._maxBufferPx=300,this._scrollStrategy=new O(this.itemOffsets,this.minBufferPx,this.maxBufferPx)}get itemOffsets(){return this._itemOffsets}set itemOffsets(h){this._itemOffsets=h}get minBufferPx(){return this._minBufferPx}set minBufferPx(h){this._minBufferPx=(0,n.OE)(h)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(h){this._maxBufferPx=(0,n.OE)(h)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemOffsets,this.minBufferPx,this.maxBufferPx)}}return(r=i).\u0275fac=function(h){return new(h||r)},r.\u0275dir=l.FsC({type:r,selectors:[["cdk-virtual-scroll-viewport","itemOffsets",""]],inputs:{itemOffsets:"itemOffsets",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[l.Jv_([{provide:p.Mr,useFactory:S,deps:[(0,l.Rfq)(()=>r)]}]),l.OA$]}),i})()},54676:(Ue,W,d)=>{"use strict";d.d(W,{Sb:()=>L,sd:()=>D,tG:()=>h});var n=d(80583),l=d(36877),p=d(17053),m=d(4208),_=d(8619),v=(d(32727),d(58527)),O=d(49678),S=d(62141),y=d(33955),r=d(94222),i=d(13186),a=d(68477);let h=(()=>{var F;class I{constructor(R,G,Y,K){this.el=R,this.radio=G,this.slide=Y,this.check=K}keydownEvent(R){R.target===(this.radio?._inputElement?.nativeElement??this.slide?._inputElement.nativeElement??this.check?._inputElement.nativeElement??this.el.nativeElement)&&("Enter"===R.key||" "===R.key)&&(this.radio?this.radio._onInputInteraction(R):this.slide?(this.slide._inputElement.nativeElement.checked=!this.slide.checked,this.slide._onChangeEvent(R)):this.check?this.check._onInputClick(R):this.el.nativeElement.click(),R.preventDefault(),R.stopPropagation())}}return(F=I).\u0275fac=function(R){return new(R||F)(v.rXU(v.aKT),v.rXU(O._g,8),v.rXU(S.P2,8),v.rXU(y.NZ,8))},F.\u0275dir=v.FsC({type:F,selectors:[["","nvAddKeyboardActivate",""],["mat-slide-toggle"],["mat-radio-button"],["mat-checkbox"],["a",3,"href",""]],hostBindings:function(R,G){1&R&&v.bIt("keydown",function(K){return G.keydownEvent(K)})}}),I})(),L=(()=>{var F;class I{constructor(R){this.slider=R}ngAfterViewInit(){this.slider&&setTimeout(()=>{const R=this.slider._onKeydown.bind(this.slider);this.slider._onKeydown=G=>{"ArrowUp"!==G.key&&"ArrowDown"!==G.key&&R(G)}},150)}}return(F=I).\u0275fac=function(R){return new(R||F)(v.rXU(i.N$))},F.\u0275dir=v.FsC({type:F,selectors:[["mat-slider","nvMatSliderKeyboardFixup",""]]}),I})(),D=(()=>{var F;class I{constructor(R,G,Y){this.tabGroup=R,this.ngZone=G,this.spatialNavigationService=Y,this.destroy$=new n.B7}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.ngZone.runOutsideAngular(()=>{this.tabGroup?._elementRef?.nativeElement&&(this.updateAllTabIndex(),this.observeTabIndexChanged$().pipe((0,m.Q)(this.destroy$)).subscribe(R=>{const G=R.target;"-1"===G.getAttribute("tabindex")&&this.updateTabIndex(G)}),(0,l.R)(this.tabGroup._elementRef.nativeElement,"keydown",{capture:!0}).pipe((0,_.p)(R=>"ArrowDown"===R.key||"ArrowUp"===R.key||"ArrowRight"===R.key||"ArrowLeft"===R.key),(0,m.Q)(this.destroy$)).subscribe(R=>{switch(R.stopPropagation(),R.key){case"ArrowDown":this.spatialNavigationService.navigate("down");break;case"ArrowUp":this.spatialNavigationService.navigate("up");break;case"ArrowLeft":this.spatialNavigationService.navigate("left");break;case"ArrowRight":this.spatialNavigationService.navigate("right")}}))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateAllTabIndex(){this.tabGroup._elementRef.nativeElement.querySelectorAll("[tabindex='-1']").forEach(this.updateTabIndex)}observeTabIndexChanged$(){return new p.c(R=>{const G=new MutationObserver(Y=>{Y.forEach(K=>{R.next(K)})});return G.observe(this.tabGroup._elementRef.nativeElement,{attributes:!0,subtree:!0,attributeFilter:["tabindex"]}),()=>{G.disconnect()}})}updateTabIndex(R){R.setAttribute("tabindex","0")}}return(F=I).\u0275fac=function(R){return new(R||F)(v.rXU(a.T8),v.rXU(v.SKi),v.rXU(r.E))},F.\u0275dir=v.FsC({type:F,selectors:[["mat-tab-group","nvMatTabGroupFixUp",""]]}),I})()},60990:(Ue,W,d)=>{"use strict";d.d(W,{r:()=>p});var n=d(58527),l=d(13090);let p=(()=>{var m;class _{constructor(v){this.offDeviceLinkService=v}onClick(v){const O=v.target;this.offDeviceLinkService.enabled&&O instanceof HTMLAnchorElement&&O.href&&(v.preventDefault(),this.offDeviceLinkService.open(O.href,{shortUrl:this.shortUrl}))}}return(m=_).\u0275fac=function(v){return new(v||m)(n.rXU(l.n))},m.\u0275dir=n.FsC({type:m,selectors:[["","nvOffDeviceLink",""],["a","href",""],["","innerHTML",""]],hostBindings:function(v,O){1&v&&n.bIt("click",function(y){return O.onClick(y)})},inputs:{shortUrl:"shortUrl"}}),_})()},69225:(Ue,W,d)=>{"use strict";d.d(W,{q:()=>_});var n=d(43281),l=d(13458),p=d(58527),m=d(3567);let _=(()=>{var P;class v{constructor(S,y,r){this.viewcontainerRef=S,this.renderer=y,this.diameter=n.b5,this.spinnerComponentNativeElement=null,this.logger=r.getLogger("nvProgressCircularDirective")}ngOnChanges(S){S&&S.isVisible&&S.isVisible.currentValue!==S.isVisible.previousValue&&(S.isVisible.currentValue?this.createSpinner():this.destroySpinner())}ngOnDestroy(){this.destroySpinner()}createSpinner(){this.spinnerComponentRef=this.viewcontainerRef.createComponent(l.o),this.spinnerComponentNativeElement=this.spinnerComponentRef.injector.get(l.o).viewRef.element.nativeElement,this.renderer.appendChild(this.viewcontainerRef.element.nativeElement,this.spinnerComponentNativeElement)}destroySpinner(){this.spinnerComponentNativeElement&&this.renderer.removeChild(this.viewcontainerRef.element.nativeElement,this.spinnerComponentNativeElement),this.spinnerComponentRef&&this.spinnerComponentRef.destroy(),this.spinnerComponentNativeElement=null}}return(P=v).\u0275fac=function(S){return new(S||P)(p.rXU(p.c1b),p.rXU(p.sFG),p.rXU(m.J6))},P.\u0275dir=p.FsC({type:P,selectors:[["","nvProgressCircular",""]],inputs:{isVisible:"isVisible",diameter:"diameter"},features:[p.OA$]}),v})()},2218:(Ue,W,d)=>{"use strict";d.d(W,{$:()=>v,R:()=>P});var n=d(6364),l=d(58527),p=d(94222),m=d(21684),_=d(3567);let P=(()=>{var O;class S{get containFocus(){return this._containFocus}set containFocus(r){this._containFocus=Array.isArray(r)?r.slice():(0,n.he)(r)}get captureFocusForChild(){return this._captureFocusForChild}set captureFocusForChild(r){this._captureFocusForChild=(0,n.he)(r),this.updateTabIndex()}get autoDisableCaptureIfNoChild(){return this._autoDisableCaptureIfNoChild}set autoDisableCaptureIfNoChild(r){this._autoDisableCaptureIfNoChild=(0,n.he)(r)}get enableSmoothScrolling(){return this._enableSmoothScrolling}set enableSmoothScrolling(r){this._enableSmoothScrolling=(0,n.he)(r)}constructor(r,i,a,h,g){this.element=r,this.spatialNavigationService=i,this.focusManager=a,this.ngZone=h,this.navigateFunction="grid",this.navigateAction="auto",this._containFocus=!0,this._captureFocusForChild=!1,this.captureAndTransitFocusPolicy="initial",this._autoDisableCaptureIfNoChild=!1,this._enableSmoothScrolling=!0,this.navBeforeFocus=c=>{if(this.captureFocusForChild){let T=c.target===this.element.nativeElement;if(this.autoDisableCaptureIfNoChild&&!this.spatialNavigationService.isFocusable(this.element.nativeElement)&&(this.updateTabIndex(),T=T||!this.element.nativeElement.contains(document.activeElement)),!T)return;let A=null;if("closest"===this.captureAndTransitFocusPolicy){const L=document.activeElement===document.body?this.element.nativeElement:document.activeElement;A=this.spatialNavigationService.getClosestChild(L,this.element.nativeElement,c.detail.dir)}else{const L=this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService);A="first"===this.captureAndTransitFocusPolicy?this.focusManager.getFirstFocusableChild(this.element.nativeElement,L):this.focusManager.getInitialFocusable(this.element.nativeElement,L)}if(!A||A===this.element.nativeElement){let L="";A?A===this.element.nativeElement&&(L=`focus is on the container, container=${this.element.nativeElement.tagName}, containerClass=${this.element.nativeElement.className}`):L="target not found",this.logger.info(`possible focus lost. reason=${L}`)}c.preventDefault(),c.stopPropagation(),A&&A!==this.element.nativeElement?this.focusManager.navigateTo(A,c.detail.dir):this.autoDisableCaptureIfNoChild&&(this.updateTabIndex(),this.spatialNavigationService.navigate(c.detail.dir))}},this.navNoTarget=c=>{this.spatialNavigationService.shouldContainFocus(c.detail.dir,this.containFocus)&&c.target===this.element.nativeElement&&c.preventDefault()},this.logger=g.getLogger("SpatialNavigationContainer")}ngAfterContentInit(){this.spatialNavigationService.enabled&&this.spatialNavigationService.setNavigationContainerCssStyles(this.element.nativeElement,this.navigateFunction,this.navigateAction,this.enableSmoothScrolling)}ngAfterViewInit(){this.spatialNavigationService.enabled&&(this.ngZone.runOutsideAngular(()=>{this.element.nativeElement.addEventListener("navbeforefocus",this.navBeforeFocus),this.element.nativeElement.addEventListener("navnotarget",this.navNoTarget)}),this.updateTabIndex())}ngOnDestroy(){this.spatialNavigationService.enabled&&(this.element.nativeElement.removeEventListener("navbeforefocus",this.navBeforeFocus),this.element.nativeElement.removeEventListener("navnotarget",this.navNoTarget))}updateTabIndex(){if(this.element){const r=this.captureFocusForChild&&this.autoDisableCaptureIfNoChild?!!this.focusManager.getInitialFocusable(this.element.nativeElement,this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService)):this.captureFocusForChild;this.element.nativeElement.tabIndex=r?0:-1}}}return(O=S).\u0275fac=function(r){return new(r||O)(l.rXU(l.aKT),l.rXU(p.E),l.rXU(m.c),l.rXU(l.SKi),l.rXU(_.J6))},O.\u0275dir=l.FsC({type:O,selectors:[["","nvSpatialNavigationContainer",""]],inputs:{navigateFunction:"navigateFunction",navigateAction:"navigateAction",containFocus:"containFocus",captureFocusForChild:"captureFocusForChild",captureAndTransitFocusPolicy:"captureAndTransitFocusPolicy",autoDisableCaptureIfNoChild:"autoDisableCaptureIfNoChild",enableSmoothScrolling:"enableSmoothScrolling"}}),S})(),v=(()=>{var O;class S{get enableSmoothScrolling(){return this._enableSmoothScrolling}set enableSmoothScrolling(r){this._enableSmoothScrolling=(0,n.he)(r)}constructor(r,i){this.element=r,this.spatialNavigationService=i,this.navigateFunction="grid",this.navigateAction="auto",this._enableSmoothScrolling=!0}ngAfterContentInit(){this.spatialNavigationService.enabled&&this.spatialNavigationService.setNavigationContainerCssStyles(this.element.nativeElement,this.navigateFunction,this.navigateAction,this.enableSmoothScrolling)}}return(O=S).\u0275fac=function(r){return new(r||O)(l.rXU(l.aKT),l.rXU(p.E))},O.\u0275dir=l.FsC({type:O,selectors:[["","nvSpatialNavigationGroup",""]],inputs:{navigateFunction:"navigateFunction",navigateAction:"navigateAction",enableSmoothScrolling:"enableSmoothScrolling"}}),S})()},81247:(Ue,W,d)=>{"use strict";d.d(W,{D:()=>y});var S,n=d(80583),l=d(57258),p=d(4208),m=d(6364),_=d(58527),P=d(31308),v=d(21684),O=d(94222);class y{get forceEnable(){return this._forceEnable}set forceEnable(i){this._forceEnable=(0,m.he)(i)}static get topFocusTrap(){const i=y.focusTraps,a=i.length;return a>0?i[a-1]:void 0}constructor(i,a,h,g){this.focusMonitor=i,this.elementRef=a,this.focusManager=h,this.spatialNavigationService=g,this._forceEnable=!1,this.destroy$=new n.B7}ngAfterViewInit(){this.elementRef&&(this.forceEnable||this.spatialNavigationService.enabled)&&(this.elementRef.nativeElement.tabIndex=0,y.focusTraps.push(this.elementRef.nativeElement),y.focusTrapsUpdated$.next(),y.focusTrapsUpdated$.asObservable().pipe((0,p.Q)(this.destroy$)).subscribe(()=>{const a=this.elementRef.nativeElement;y.topFocusTrap===a?(a.contains(document.activeElement)||this.focusManager.focusViaLastOrigin(a),this.startFocusMonitor(a,document.activeElement)):this.focusMonitor.stopMonitoring(a)}))}ngOnDestroy(){this.elementRef&&this.spatialNavigationService.enabled&&(this.removeFocusTrap(this.elementRef.nativeElement),y.focusTrapsUpdated$.next()),this.destroy$.next(!0),this.destroy$.complete()}startFocusMonitor(i,a){let h=a;this.focusMonitor.monitor(i,!0).pipe((0,p.Q)(this.destroy$)).subscribe(g=>{g?h=this.focusManager.currentFocusedElement:setTimeout(()=>{const c=this.focusManager.currentFocusedElement!==document.body||h?.isConnected?h:i;this.focusManager.focusViaLastOrigin(c)})})}removeFocusTrap(i){const a=y.focusTraps.indexOf(i);a>-1&&y.focusTraps.splice(a,1)}}(S=y).focusTraps=new Array,S.focusTrapsUpdated$=new l.m(1),S.\u0275fac=function(i){return new(i||S)(_.rXU(P.FN),_.rXU(_.aKT),_.rXU(v.c),_.rXU(O.E))},S.\u0275dir=_.FsC({type:S,selectors:[["","nvTrapFocus",""]],inputs:{forceEnable:"forceEnable"}})},11013:(Ue,W,d)=>{"use strict";d.d(W,{X:()=>p});const p=new(d(58527).nKC)("NV_HIG_CONFIG")},21684:(Ue,W,d)=>{"use strict";d.d(W,{c:()=>a});var n=d(26537),l=d(16490),p=d(65706),m=d(24841),_=d(73318),P=d(32727),v=d(58527),O=d(3567),S=d(94222),y=d(68868),r=d(31308);let a=(()=>{var h;class g{get currentFocusedElement(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}constructor(T,A,L,x,V){this.spatialNavigationService=A,this.inputModalityService=L,this.checker=x,this.focusMonitor=V,this.logger=T.getLogger("FocusManager")}canFocusElement(T,A){return!(!T||(T.isConnected?this.currentFocusedElement===T&&T.classList.contains(`.cdk-${A}-focused`)&&(this.logger.warn(`cdk-${A}-focused is existing in ${T.nodeName}.`),1):(this.logger.warn(`${T.nodeName} is not connected to DOM.`),1)))}getFirstFocusableChild(T,A){const L=A??this.checker.isFocusable.bind(this.checker),x=T.children;for(let V=0;V<x.length;V++){const D=x[V];let F=null;if(F=D.nodeType===Node.ELEMENT_NODE&&L(D)?D:this.getFirstFocusableChild(D,A),F)return F}return null}focusChild(T,A,L,x){T&&setTimeout(()=>{const V="initial"===A?this.getInitialFocusable(T,L):this.getFirstFocusableChild(T,L);this.focusViaLastOrigin(V,x)},0)}getInitialFocusable(T,A){const L=A??this.checker.isFocusable.bind(this.checker);let x=T.querySelector("[cdkFocusInitial]");return(!x||!L(x))&&(x=this.getFirstFocusableChild(T,L)),x}focusViaLastOrigin(T,A){this.focusVia(T,this.inputModalityService.lastFocusOrigin??"keyboard",A)}focusVia(T,A,L){this.canFocusElement(T,A)&&(this.spatialNavigationService.enabled&&this.spatialNavigationService.setStartingPoint(null),this.focusMonitor.focusVia(T,A,L))}navigateTo(T,A,L){!T||!(0,_.UH)(T,"navbeforefocus",A)||this.focusViaLastOrigin(T,L)}getFocusRestorationTargetAt(T,A){const L=(0,P.EL)(T,A);if(!L||this.checker.isFocusable(L))return L;if(!Element.prototype.spatialNavigationSearch||!Element.prototype.focusableAreas)return;const V=L.getSpatialNavigationContainer().focusableAreas({mode:"visible"});let D,F=Number.POSITIVE_INFINITY;return V.forEach(I=>{if(!(I instanceof HTMLElement)||window.__spatialNavigation__.isContainer(I)&&V.some(K=>I.contains(K)))return;const k=I.getBoundingClientRect(),Y=function i(h,g,c,T){return Math.abs(h-c)+Math.abs(g-T)}(T,A,(k.left+k.right)/2,(k.top+k.bottom)/2);Y<F&&(F=Y,D=I)}),D}createRestoreFocusFunction(T){if(T===document.body)return()=>{this.logger.warn("restoreTarget cannot be BODY. The focus might have already been lost before focus restoration")};const A=T.getBoundingClientRect();return()=>{if(T.isConnected&&this.checker.isFocusable(T))this.focusViaLastOrigin(T);else{const V=this.getFocusRestorationTargetAt((A.left+A.right)/2,(A.top+A.bottom)/2);V?this.focusViaLastOrigin(V):this.logger.warn("Potential focus loss (failed to restore focus) - target cannot be focused and no other focusable element is found")}}}restoreFocusAfterClosed(T,A){const L=A?.restoreFocusTarget??this.currentFocusedElement,x=T();if(L){const V=this.createRestoreFocusFunction(L);let D;if(x instanceof n.CP)D=x.afterClosed();else if(x instanceof l.eN)D=x.afterDismissed();else{if(!(x instanceof m.f))throw new Error("not a supported type.");D=x.afterClosed()}if(!D)throw new Error("afterClosed$ is not assigned.");D.pipe((0,p.s)(1)).subscribe(()=>{V()})}return x}}return(h=g).\u0275fac=function(T){return new(T||h)(v.KVO(O.J6),v.KVO(S.E),v.KVO(y.p),v.KVO(r.Z7),v.KVO(r.FN))},h.\u0275prov=v.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),g})()},13090:(Ue,W,d)=>{"use strict";d.d(W,{n:()=>i});var n=d(99564),l=d(29824),p=d(11013),m=d(12532),_=d(57258),P=d(16229),v=d(10174),O=d(58527),S=d(16490),y=d(26537),r=d(21684);let i=(()=>{var a;class h{get enabled(){return this._enabled}get isModalSheetOpened$(){return this.isModalSheetOpenSubject?this.isModalSheetOpenSubject.asObservable():m.w}constructor(c,T,A,L){this.matBottomSheet=T,this.matDialog=A,this.focusManager=L,this._enabled=!1,this.config=c?.offDeviceLinkConfig,this.tvMode=!!c?.tvMode}enable(){window.open=(c,T,A,L)=>(c&&this.open(c),null),this._enabled=!0,this.isModalSheetOpenSubject||(this.isModalSheetOpenSubject=new _.m(1))}open(c,T){if(!this.config)throw new Error("Off device link configuration is missing!");if(this._enabled){let A=!1;if(this.matDialog.openDialogs.length>0&&this.matDialog.openDialogs[this.matDialog.openDialogs.length-1].componentInstance instanceof l.L&&(A=!0),A){const L=this.focusManager.restoreFocusAfterClosed(()=>l.L.open(this.matDialog,{data:{headerText:{text:T?.shortUrl},bodyText:{text:T?.shortUrlDescription??this.config.title},primaryButton:{text:this.config.primaryButtonText},image:{url:c},threeQuarterSheetData:T?.threeQuarterSheetData},autoFocus:!1}));L.componentInstance.primaryButtonClick.subscribe(()=>{L.close()}),(0,P.h)(L.afterOpened().pipe((0,v.u)(!0)),L.afterClosed().pipe((0,v.u)(!1))).subscribe(x=>this.isModalSheetOpenSubject.next(x))}else{const L=this.focusManager.restoreFocusAfterClosed(()=>n.G.open(this.matBottomSheet,{data:{headerText:{text:this.config.title},bodyText:T?.shortUrl?{text:T?.shortUrl}:void 0,primaryButton:{text:this.config.primaryButtonText},link:{url:c,text:T?.shortUrl}}},this.tvMode));L.instance.primaryButtonClick.subscribe(()=>{L.dismiss()}),(0,P.h)(L.afterOpened().pipe((0,v.u)(!0)),L.afterDismissed().pipe((0,v.u)(!1))).subscribe(x=>this.isModalSheetOpenSubject.next(x))}}else window.open(c,"_blank")}}return(a=h).\u0275fac=function(c){return new(c||a)(O.KVO(p.X,8),O.KVO(S.VK),O.KVO(y.bZ),O.KVO(r.c))},a.\u0275prov=O.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),h})()},73318:(Ue,W,d)=>{"use strict";d.d(W,{G2:()=>n.G2,On:()=>n.On,UH:()=>n.UH});var n=d(66221);d(94222)},94222:(Ue,W,d)=>{"use strict";d.d(W,{E:()=>a});var n=d(17053),l=d(63997),p=d(16229),m=d(36877),_=d(43848),P=d(75707),v=d(11013),O=d(66221),S=d(58527),y=d(68868),r=d(3567);let i=(()=>{var h;class g{constructor(T,A,L,x){this.ngZone=T,this.inputModalityService=x,this.maxLength=0,this.focusIn=V=>{const D=this.queue.length>0&&this.queue[this.queue.length-1].fl,F={fo:null,fi:this.buildFocusEventData(V),fl:!1};V.target!==document.activeElement&&(F.ae=this.buildElementData(document.activeElement)),this.enqueue(F),D&&this.logger.info("Focus regained. Focus on: ",JSON.stringify(F.fi))},this.focusOut=V=>{const D=this.buildFocusEventData(V);let F;0===this.queue.length||null!==this.queue[this.queue.length-1].fo?(F={fo:D,fl:this.shouldCheckFocusLoss(V.target),fi:null},this.enqueue(F)):(F=this.queue[this.queue.length-1],F.fo=D,F.fl=this.shouldCheckFocusLoss(V.target)&&(null===V.relatedTarget||!V.relatedTarget?.isConnected)),F.fl&&this.logger.warn("Potential focus loss. Focus history: ",JSON.stringify(this.queue))},this.logger=A.getLogger("FocusHistoryQueueService"),this.window=L.window}enqueue(T){this.queue.push(T)>this.maxLength&&this.queue.shift()}buildElementData(T,A=0){if(!T)return null;const L={nn:T.nodeName?.toUpperCase?.()};return"BUTTON"===L.nn?L.it=T.textContent||T.querySelector("mat-icon[data-mat-icon-name]")?.getAttribute("data-mat-icon-name"):!T.textContent||"A"!==L.nn&&"MAT-SELECT"!==L.nn?T.textContent&&("DIV"===L.nn||"MAT-DIALOG-CONTAINER"===L.nn)&&(L.it=T.textContent.substring(0,50)):L.it=T.textContent,L.it||(L.cn=T.className,0===A&&(L.sc=this.buildElementData(T.getSpatialNavigationContainer(),A+1))),L}buildFocusEventData(T){return{ts:T.timeStamp,t:this.buildElementData(T.target),rt:this.buildElementData(T.relatedTarget),i:this.lastInputType}}shouldCheckFocusLoss(T){return this.lastInputType!==y.M.Touch&&this.lastInputType!==y.M.Mouse&&!T?.hasAttribute("data-focus-loss-exempt")}start(T){this.logger.info("Starting Focus History Queue Service"),this.lastInputType=null,this.maxLength=T,this.queue=[],this.ngZone.runOutsideAngular(()=>{this.window.addEventListener("focusin",this.focusIn),this.window.addEventListener("focusout",this.focusOut),this.inputModalitySubscription=this.inputModalityService.inputModalityChanged$.subscribe(A=>{this.lastInputType=A})})}stop(){this.logger.info("Stopping Focus History Queue Service"),this.ngZone.runOutsideAngular(()=>{this.window.removeEventListener("focusin",this.focusIn),this.window.removeEventListener("focusout",this.focusOut),this.inputModalitySubscription?.unsubscribe()})}}return(h=g).\u0275fac=function(T){return new(T||h)(S.KVO(S.SKi),S.KVO(r.J6),S.KVO(r.s7),S.KVO(y.p))},h.\u0275prov=S.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),g})(),a=(()=>{var h;class g{get enabled(){return this._enabled}constructor(T,A,L){this.focusHistoryQueueService=A,this.logginService=L,this.spatialNavigation=void 0,this._navigate=void 0,this._enabled=!1,this.config=T?.spatialNavigationConfig??{},this.spatialNavigation=window.__spatialNavigation__,this.logger=this.logginService.getLogger("SpatialNavigationService"),this.spatialNavigation&&(this._navigate=window.navigate,this.spatialNavigation.keyMode="NONE")}setNavigationContainerCssStyles(T,A,L,x=!0){this.enabled&&(T.setAttribute("data-spatial-navigation-contain","contain"),T.setAttribute("data-spatial-navigation-action",L),T.style.setProperty("--spatial-navigation-function",A),"focus"===L&&x&&T.style.setProperty("scroll-behavior","smooth"))}enable(T){this._enabled=T,this.activated=T,this.enabled?this.config?.focusHistoryQueueSize>0&&this.focusHistoryQueueService.start(this.config.focusHistoryQueueSize):this.config?.focusHistoryQueueSize>0&&this.focusHistoryQueueService.stop()}get activated(){return!(!this.spatialNavigation||"NONE"===this.spatialNavigation.keyMode)}set activated(T){!this.enabled||!this.spatialNavigation||(this.spatialNavigation.keyMode=T?"ARROW":"NONE")}setStartingPoint(T){if(!this.enabled||!this.spatialNavigation)return;if(!T)return void this.spatialNavigation.setStartingPoint(null);const A=T.getBoundingClientRect();this.spatialNavigation.setStartingPoint(A.x+A.width/2,A.y+A.height/2)}setStartingPointAt(T,A){!this.enabled||!this.spatialNavigation||this.spatialNavigation.setStartingPoint(T,A)}getClosestChild(T,A,L,x){const V=A.focusableAreas({mode:"all"});let D=this.getClosestChildInternal(T,A,L,V);if(!D&&x?.length>0)for(const F of x)if(D=this.getClosestChildInternal(T,A,F,V),D)break;return D}getClosestChildInternal(T,A,L,x){return T.spatialNavigationSearch(L,{container:A,candidates:x})}isFullyInViewport(T){return new n.c(A=>{const L=new IntersectionObserver(x=>{const V=x.filter(D=>D.intersectionRatio<1)?.[0];A.next(!V)});return L.observe(T),function(){L.disconnect()}})}onClick(T){return(0,l.v)(()=>(T instanceof HTMLAnchorElement&&(T.tabIndex=0),(0,p.h)((0,m.R)(T,"click"),(0,m.R)(T,"keydown")).pipe((0,P.ZZ)(A=>A instanceof MouseEvent||"Enter"===A.key||" "===A.key?(0,_.of)(A):(0,_.of)(void 0)))))}isDefaultFocusRequired(){return this.enabled&&!!this.config.isDefaultFocusRequired}navigate(T){this._navigate?.(T)}isFocusable(T){return this.spatialNavigation.isFocusable(T)}findNextTarget(T,A,L=document.body){let x,V;const D=T.getBoundingClientRect();return(0,O.o3)(A)?(x="left"===A?D.left-1:D.right+1,V=(D.top+D.bottom)/2):(x=(D.left+D.right)/2,V="up"===A?D.top-1:D.bottom+1),this.setStartingPointAt(x,V),this.getClosestChild(document.body,L,A)}shouldContainFocus(T,A){return Array.isArray(A)?A.includes(T):A}}return(h=g).\u0275fac=function(T){return new(T||h)(S.KVO(v.X,8),S.KVO(i),S.KVO(r.J6))},h.\u0275prov=S.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),g})()},66221:(Ue,W,d)=>{"use strict";function l(S,y,r){const i=new CustomEvent(y,{bubbles:!0,cancelable:!0,detail:{dir:r}});return S.dispatchEvent(i)}function p(S){switch(S){case"ArrowUp":return"up";case"ArrowDown":return"down";case"ArrowLeft":return"left";case"ArrowRight":return"right";default:throw new Error(`${S} is not a valid navigation key value`)}}function _(S){switch(S){case"up":return"down";case"down":return"up";case"left":return"right";case"right":return"left"}}function P(S){return"left"===S||"right"===S}d.d(W,{G2:()=>p,On:()=>_,UH:()=>l,o3:()=>P}),d(32727)},62293:(Ue,W,d)=>{"use strict";d.d(W,{H:()=>y,g:()=>r});var n=d(11013),l=d(10174),p=d(65706),m=d(32727),_=d(16229),P=d(58527),v=d(3567),O=d(30783),S=d(65240),y=function(i){return i[i.Link=0]="Link",i[i.Share=1]="Share",i[i.Input=2]="Input",i[i.PlayMedia=3]="PlayMedia",i}(y||{});let r=(()=>{var i;class a{get enabled(){return this._enabled}set enabled(g){this._enabled=g,this.logger.info("UserActivationGuardService is enabled")}constructor(g,c,T,A){this.snackbarService=c,this.translateService=T,this._enabled=!1,this.guardedTypes=[],this.logger=g.getLogger("UserActivationGuard"),this.defaultWarningMessage=A?.userActivationGuardConfig?.buttonWarningMessage,A?.userActivationGuardConfig?.link&&this.guardedTypes.push(y.Link),A?.userActivationGuardConfig?.input&&this.guardedTypes.push(y.Input),A?.userActivationGuardConfig?.playMedia&&this.guardedTypes.push(y.PlayMedia),A?.userActivationGuardConfig?.share&&this.guardedTypes.push(y.Share)}displayWarning(g,c){return this.snackbarService.open(this.translateService.instant(g,c))}isGuarded(g){return this.guardedTypes.includes(g)}guard(g,c,T,A){if(!this.isGuarded(g))return c;let L=!1;return(x,...V)=>{if((0,m.Ls)(x))c(x,...V);else if(!L){const I=this.displayWarning(T??this.defaultWarningMessage,A?.interpolationKey?{[A.interpolationKey]:A?.useInnerText?x.target.innerText:A?.text}:void 0);(0,_.h)(I.afterOpened().pipe((0,l.u)(!0)),I.afterDismissed().pipe((0,l.u)(!1))).pipe((0,p.s)(2)).subscribe(k=>{L=k})}}}}return(i=a).\u0275fac=function(g){return new(g||i)(P.KVO(v.J6),P.KVO(O.nf),P.KVO(S.c$),P.KVO(n.X,8))},i.\u0275prov=P.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),a})()},61876:(Ue,W,d)=>{"use strict";d.d(W,{c_:()=>ss.c,rX:()=>ul,bm:()=>Xr,uh:()=>_c,Vm:()=>ia,f$:()=>fc.f,nO:()=>Ml.n,QO:()=>Yl.QO,Oh:()=>na,ED:()=>Bs.E,gE:()=>Ic.g,HK:()=>Ic.H});var n=d(61142),l=d(94485),p=d(58527),m=d(51006),_=d(26537),P=d(16490),v=d(29370),O=d(44224),S=d(74150),y=d(65240),r=d(70650),i=d(85667);const a=["qrcElement"];let h=(()=>{var kt;class Ot{constructor(ut,Pn){this.renderer=ut,this.sanitizer=Pn,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new p.bkB,this.context=null}ngOnChanges(){var ut=this;return(0,r.A)(function*(){yield ut.createQRCode()})()}isValidQrCodeText(ut){return!1===this.allowEmptyString?!(typeof ut>"u"||""===ut||"null"===ut||null===ut):!(typeof ut>"u")}toDataURL(ut){return new Promise((Pn,Qn)=>{(0,i.dY)(this.qrdata,ut,(Ui,Ar)=>{Ui?Qn(Ui):Pn(Ar)})})}toCanvas(ut,Pn){return new Promise((Qn,Ui)=>{(0,i.mo)(ut,this.qrdata,Pn,Ar=>{Ar?Ui(Ar):Qn("success")})})}toSVG(ut){return new Promise((Pn,Qn)=>{(0,i.toString)(this.qrdata,ut,(Ui,Ar)=>{Ui?Qn(Ui):Pn(Ar)})})}renderElement(ut){for(const Pn of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,Pn);this.renderer.appendChild(this.qrcElement.nativeElement,ut)}createQRCode(){var ut=this;return(0,r.A)(function*(){ut.version&&ut.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),ut.version=40):ut.version&&ut.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),ut.version=1):void 0!==ut.version&&isNaN(ut.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),ut.version=void 0);try{if(!ut.isValidQrCodeText(ut.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");ut.isValidQrCodeText(ut.qrdata)&&""===ut.qrdata&&(ut.qrdata=" ");const Pn={color:{dark:ut.colorDark,light:ut.colorLight},errorCorrectionLevel:ut.errorCorrectionLevel,margin:ut.margin,scale:ut.scale,version:ut.version,width:ut.width},Qn=ut.imageSrc,Ui=ut.imageHeight||40,Ar=ut.imageWidth||40;switch(ut.elementType){case"canvas":{const Or=ut.renderer.createElement("canvas");ut.context=Or.getContext("2d"),ut.toCanvas(Or,Pn).then(()=>{if(ut.ariaLabel&&ut.renderer.setAttribute(Or,"aria-label",`${ut.ariaLabel}`),ut.title&&ut.renderer.setAttribute(Or,"title",`${ut.title}`),Qn&&ut.context){ut.centerImage=new Image(Ar,Ui),Qn!==ut.centerImage.src&&(ut.centerImage.src=Qn),Ui!==ut.centerImage.height&&(ut.centerImage.height=Ui),Ar!==ut.centerImage.width&&(ut.centerImage.width=Ar);const pr=ut.centerImage;pr&&(pr.onload=()=>{ut.context?.drawImage(pr,Or.width/2-Ar/2,Or.height/2-Ui/2,Ar,Ui)})}ut.renderElement(Or),ut.emitQRCodeURL(Or)}).catch(pr=>{console.error("[angularx-qrcode] canvas error:",pr)});break}case"svg":{const Or=ut.renderer.createElement("div");ut.toSVG(Pn).then(pr=>{ut.renderer.setProperty(Or,"innerHTML",pr);const co=Or.firstChild;ut.renderer.setAttribute(co,"height",`${ut.width}`),ut.renderer.setAttribute(co,"width",`${ut.width}`),ut.renderElement(co),ut.emitQRCodeURL(co)}).catch(pr=>{console.error("[angularx-qrcode] svg error:",pr)});break}default:{const Or=ut.renderer.createElement("img");ut.toDataURL(Pn).then(pr=>{ut.alt&&Or.setAttribute("alt",ut.alt),ut.ariaLabel&&Or.setAttribute("aria-label",ut.ariaLabel),Or.setAttribute("src",pr),ut.title&&Or.setAttribute("title",ut.title),ut.renderElement(Or),ut.emitQRCodeURL(Or)}).catch(pr=>{console.error("[angularx-qrcode] img/url error:",pr)})}}}catch(Pn){console.error("[angularx-qrcode] Error generating QR Code:",Pn.message)}})()}emitQRCodeURL(ut){const Pn=ut.constructor.name;if(Pn===SVGSVGElement.name){const Ar=new Blob([ut.outerHTML],{type:"image/svg+xml"}),Or=URL.createObjectURL(Ar),pr=this.sanitizer.bypassSecurityTrustUrl(Or);return void this.qrCodeURL.emit(pr)}let Qn="";Pn===HTMLCanvasElement.name&&(Qn=ut.toDataURL("image/png")),Pn===HTMLImageElement.name&&(Qn=ut.src),fetch(Qn).then(Ui=>Ui.blob()).then(Ui=>URL.createObjectURL(Ui)).then(Ui=>this.sanitizer.bypassSecurityTrustUrl(Ui)).then(Ui=>{this.qrCodeURL.emit(Ui)}).catch(Ui=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+Ui)})}}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)(p.rXU(p.sFG),p.rXU(S.up))},kt.\u0275cmp=p.VBU({type:kt,selectors:[["qrcode"]],viewQuery:function(ut,Pn){if(1&ut&&p.GBs(a,7),2&ut){let Qn;p.mGM(Qn=p.lsd())&&(Pn.qrcElement=Qn.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[p.OA$],decls:2,vars:2,consts:[["qrcElement",""]],template:function(ut,Pn){1&ut&&p.nrm(0,"div",null,0),2&ut&&p.HbH(Pn.cssClass)},encapsulation:2,changeDetection:0}),Ot})(),g=(()=>{var kt;class Ot{}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)},kt.\u0275mod=p.$C({type:kt}),kt.\u0275inj=p.G2t({}),Ot})();var c=d(14354),T=d(37278),A=d(99564),L=d(49752),x=d(29824),V=d(2218),D=d(54676),F=d(56106),I=d(13186),k=d(99204),R=d(47973),G=d(33955),Y=d(49678),K=d(31308);function te(kt,Ot,pt,ut){var Ui,Pn=arguments.length,Qn=Pn<3?Ot:null===ut?ut=Object.getOwnPropertyDescriptor(Ot,pt):ut;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Qn=Reflect.decorate(kt,Ot,pt,ut);else for(var Ar=kt.length-1;Ar>=0;Ar--)(Ui=kt[Ar])&&(Qn=(Pn<3?Ui(Qn):Pn>3?Ui(Ot,pt,Qn):Ui(Ot,pt))||Qn);return Pn>3&&Qn&&Object.defineProperty(Ot,pt,Qn),Qn}const un=(kt,Ot)=>"method"===Ot.kind&&Ot.descriptor&&!("value"in Ot.descriptor)?{...Ot,finisher(pt){pt.createProperty(Ot.key,kt)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:Ot.key,initializer(){"function"==typeof Ot.initializer&&(this[Ot.key]=Ot.initializer.call(this))},finisher(pt){pt.createProperty(Ot.key,kt)}};function Gt(kt){return(Ot,pt)=>void 0!==pt?((kt,Ot,pt)=>{Ot.constructor.createProperty(pt,kt)})(kt,Ot,pt):un(kt,Ot)}window;const En=window,Cn=En.ShadowRoot&&(void 0===En.ShadyCSS||En.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fn=Symbol(),dt=new WeakMap;class nn{constructor(Ot,pt,ut){if(this._$cssResult$=!0,ut!==fn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=Ot,this.t=pt}get styleSheet(){let Ot=this.o;const pt=this.t;if(Cn&&void 0===Ot){const ut=void 0!==pt&&1===pt.length;ut&&(Ot=dt.get(pt)),void 0===Ot&&((this.o=Ot=new CSSStyleSheet).replaceSync(this.cssText),ut&&dt.set(pt,Ot))}return Ot}toString(){return this.cssText}}const ai=Cn?kt=>kt:kt=>kt instanceof CSSStyleSheet?(Ot=>{let pt="";for(const ut of Ot.cssRules)pt+=ut.cssText;return(kt=>new nn("string"==typeof kt?kt:kt+"",void 0,fn))(pt)})(kt):kt;var ri;const Ne=window,zt=Ne.trustedTypes,vt=zt?zt.emptyScript:"",Ct=Ne.reactiveElementPolyfillSupport,it={toAttribute(kt,Ot){switch(Ot){case Boolean:kt=kt?vt:null;break;case Object:case Array:kt=null==kt?kt:JSON.stringify(kt)}return kt},fromAttribute(kt,Ot){let pt=kt;switch(Ot){case Boolean:pt=null!==kt;break;case Number:pt=null===kt?null:Number(kt);break;case Object:case Array:try{pt=JSON.parse(kt)}catch{pt=null}}return pt}},Ut=(kt,Ot)=>Ot!==kt&&(Ot==Ot||kt==kt),jn={attribute:!0,type:String,converter:it,reflect:!1,hasChanged:Ut},wn="finalized";class nt extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(Ot){var pt;this.finalize(),(null!==(pt=this.h)&&void 0!==pt?pt:this.h=[]).push(Ot)}static get observedAttributes(){this.finalize();const Ot=[];return this.elementProperties.forEach((pt,ut)=>{const Pn=this._$Ep(ut,pt);void 0!==Pn&&(this._$Ev.set(Pn,ut),Ot.push(Pn))}),Ot}static createProperty(Ot,pt=jn){if(pt.state&&(pt.attribute=!1),this.finalize(),this.elementProperties.set(Ot,pt),!pt.noAccessor&&!this.prototype.hasOwnProperty(Ot)){const ut="symbol"==typeof Ot?Symbol():"__"+Ot,Pn=this.getPropertyDescriptor(Ot,ut,pt);void 0!==Pn&&Object.defineProperty(this.prototype,Ot,Pn)}}static getPropertyDescriptor(Ot,pt,ut){return{get(){return this[pt]},set(Pn){const Qn=this[Ot];this[pt]=Pn,this.requestUpdate(Ot,Qn,ut)},configurable:!0,enumerable:!0}}static getPropertyOptions(Ot){return this.elementProperties.get(Ot)||jn}static finalize(){if(this.hasOwnProperty(wn))return!1;this[wn]=!0;const Ot=Object.getPrototypeOf(this);if(Ot.finalize(),void 0!==Ot.h&&(this.h=[...Ot.h]),this.elementProperties=new Map(Ot.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const pt=this.properties,ut=[...Object.getOwnPropertyNames(pt),...Object.getOwnPropertySymbols(pt)];for(const Pn of ut)this.createProperty(Pn,pt[Pn])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(Ot){const pt=[];if(Array.isArray(Ot)){const ut=new Set(Ot.flat(1/0).reverse());for(const Pn of ut)pt.unshift(ai(Pn))}else void 0!==Ot&&pt.push(ai(Ot));return pt}static _$Ep(Ot,pt){const ut=pt.attribute;return!1===ut?void 0:"string"==typeof ut?ut:"string"==typeof Ot?Ot.toLowerCase():void 0}u(){var Ot;this._$E_=new Promise(pt=>this.enableUpdating=pt),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(Ot=this.constructor.h)||void 0===Ot||Ot.forEach(pt=>pt(this))}addController(Ot){var pt,ut;(null!==(pt=this._$ES)&&void 0!==pt?pt:this._$ES=[]).push(Ot),void 0!==this.renderRoot&&this.isConnected&&(null===(ut=Ot.hostConnected)||void 0===ut||ut.call(Ot))}removeController(Ot){var pt;null===(pt=this._$ES)||void 0===pt||pt.splice(this._$ES.indexOf(Ot)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((Ot,pt)=>{this.hasOwnProperty(pt)&&(this._$Ei.set(pt,this[pt]),delete this[pt])})}createRenderRoot(){var Ot;const pt=null!==(Ot=this.shadowRoot)&&void 0!==Ot?Ot:this.attachShadow(this.constructor.shadowRootOptions);return((kt,Ot)=>{Cn?kt.adoptedStyleSheets=Ot.map(pt=>pt instanceof CSSStyleSheet?pt:pt.styleSheet):Ot.forEach(pt=>{const ut=document.createElement("style"),Pn=En.litNonce;void 0!==Pn&&ut.setAttribute("nonce",Pn),ut.textContent=pt.cssText,kt.appendChild(ut)})})(pt,this.constructor.elementStyles),pt}connectedCallback(){var Ot;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(Ot=this._$ES)||void 0===Ot||Ot.forEach(pt=>{var ut;return null===(ut=pt.hostConnected)||void 0===ut?void 0:ut.call(pt)})}enableUpdating(Ot){}disconnectedCallback(){var Ot;null===(Ot=this._$ES)||void 0===Ot||Ot.forEach(pt=>{var ut;return null===(ut=pt.hostDisconnected)||void 0===ut?void 0:ut.call(pt)})}attributeChangedCallback(Ot,pt,ut){this._$AK(Ot,ut)}_$EO(Ot,pt,ut=jn){var Pn;const Qn=this.constructor._$Ep(Ot,ut);if(void 0!==Qn&&!0===ut.reflect){const Ui=(void 0!==(null===(Pn=ut.converter)||void 0===Pn?void 0:Pn.toAttribute)?ut.converter:it).toAttribute(pt,ut.type);this._$El=Ot,null==Ui?this.removeAttribute(Qn):this.setAttribute(Qn,Ui),this._$El=null}}_$AK(Ot,pt){var ut;const Pn=this.constructor,Qn=Pn._$Ev.get(Ot);if(void 0!==Qn&&this._$El!==Qn){const Ui=Pn.getPropertyOptions(Qn),Ar="function"==typeof Ui.converter?{fromAttribute:Ui.converter}:void 0!==(null===(ut=Ui.converter)||void 0===ut?void 0:ut.fromAttribute)?Ui.converter:it;this._$El=Qn,this[Qn]=Ar.fromAttribute(pt,Ui.type),this._$El=null}}requestUpdate(Ot,pt,ut){let Pn=!0;void 0!==Ot&&(((ut=ut||this.constructor.getPropertyOptions(Ot)).hasChanged||Ut)(this[Ot],pt)?(this._$AL.has(Ot)||this._$AL.set(Ot,pt),!0===ut.reflect&&this._$El!==Ot&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(Ot,ut))):Pn=!1),!this.isUpdatePending&&Pn&&(this._$E_=this._$Ej())}_$Ej(){var Ot=this;return(0,r.A)(function*(){Ot.isUpdatePending=!0;try{yield Ot._$E_}catch(ut){Promise.reject(ut)}const pt=Ot.scheduleUpdate();return null!=pt&&(yield pt),!Ot.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var Ot;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach((Pn,Qn)=>this[Qn]=Pn),this._$Ei=void 0);let pt=!1;const ut=this._$AL;try{pt=this.shouldUpdate(ut),pt?(this.willUpdate(ut),null===(Ot=this._$ES)||void 0===Ot||Ot.forEach(Pn=>{var Qn;return null===(Qn=Pn.hostUpdate)||void 0===Qn?void 0:Qn.call(Pn)}),this.update(ut)):this._$Ek()}catch(Pn){throw pt=!1,this._$Ek(),Pn}pt&&this._$AE(ut)}willUpdate(Ot){}_$AE(Ot){var pt;null===(pt=this._$ES)||void 0===pt||pt.forEach(ut=>{var Pn;return null===(Pn=ut.hostUpdated)||void 0===Pn?void 0:Pn.call(ut)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(Ot)),this.updated(Ot)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(Ot){return!0}update(Ot){void 0!==this._$EC&&(this._$EC.forEach((pt,ut)=>this._$EO(ut,this[ut],pt)),this._$EC=void 0),this._$Ek()}updated(Ot){}firstUpdated(Ot){}}var on;nt[wn]=!0,nt.elementProperties=new Map,nt.elementStyles=[],nt.shadowRootOptions={mode:"open"},Ct?.({ReactiveElement:nt}),(null!==(ri=Ne.reactiveElementVersions)&&void 0!==ri?ri:Ne.reactiveElementVersions=[]).push("1.6.2");const mt=window,_n=mt.trustedTypes,wt=_n?_n.createPolicy("lit-html",{createHTML:kt=>kt}):void 0,Un="$lit$",Oi=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Oi,Hn=`<${At}>`,pi=document,Zi=()=>pi.createComment(""),Lr=kt=>null===kt||"object"!=typeof kt&&"function"!=typeof kt,Kr=Array.isArray,di="[ \t\n\f\r]",ji=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vi=/-->/g,Zt=/>/g,Zn=RegExp(`>|${di}(?:([^\\s"'>=/]+)(${di}*=${di}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,zn=/"/g,Ti=/^(?:script|style|textarea|title)$/i,Xt=kt=>(Ot,...pt)=>({_$litType$:kt,strings:Ot,values:pt}),$n=(Xt(1),Xt(2),Symbol.for("lit-noChange")),Pt=Symbol.for("lit-nothing"),Ii=new WeakMap,ar=pi.createTreeWalker(pi,129,null,!1);class ki{constructor({strings:Ot,_$litType$:pt},ut){let Pn;this.parts=[];let Qn=0,Ui=0;const Ar=Ot.length-1,Or=this.parts,[pr,co]=((kt,Ot)=>{const pt=kt.length-1,ut=[];let Pn,Qn=2===Ot?"<svg>":"",Ui=ji;for(let Or=0;Or<pt;Or++){const pr=kt[Or];let co,bn,so=-1,gr=0;for(;gr<pr.length&&(Ui.lastIndex=gr,bn=Ui.exec(pr),null!==bn);)gr=Ui.lastIndex,Ui===ji?"!--"===bn[1]?Ui=vi:void 0!==bn[1]?Ui=Zt:void 0!==bn[2]?(Ti.test(bn[2])&&(Pn=RegExp("</"+bn[2],"g")),Ui=Zn):void 0!==bn[3]&&(Ui=Zn):Ui===Zn?">"===bn[0]?(Ui=Pn??ji,so=-1):void 0===bn[1]?so=-2:(so=Ui.lastIndex-bn[2].length,co=bn[1],Ui=void 0===bn[3]?Zn:'"'===bn[3]?zn:Dn):Ui===zn||Ui===Dn?Ui=Zn:Ui===vi||Ui===Zt?Ui=ji:(Ui=Zn,Pn=void 0);const jr=Ui===Zn&&kt[Or+1].startsWith("/>")?" ":"";Qn+=Ui===ji?pr+Hn:so>=0?(ut.push(co),pr.slice(0,so)+Un+pr.slice(so)+Oi+jr):pr+Oi+(-2===so?(ut.push(void 0),Or):jr)}const Ar=Qn+(kt[pt]||"<?>")+(2===Ot?"</svg>":"");if(!Array.isArray(kt)||!kt.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==wt?wt.createHTML(Ar):Ar,ut]})(Ot,pt);if(this.el=ki.createElement(pr,ut),ar.currentNode=this.el.content,2===pt){const bn=this.el.content,so=bn.firstChild;so.remove(),bn.append(...so.childNodes)}for(;null!==(Pn=ar.nextNode())&&Or.length<Ar;){if(1===Pn.nodeType){if(Pn.hasAttributes()){const bn=[];for(const so of Pn.getAttributeNames())if(so.endsWith(Un)||so.startsWith(Oi)){const gr=co[Ui++];if(bn.push(so),void 0!==gr){const jr=Pn.getAttribute(gr.toLowerCase()+Un).split(Oi),$o=/([.?@])?(.*)/.exec(gr);Or.push({type:1,index:Qn,name:$o[2],strings:jr,ctor:"."===$o[1]?ni:"?"===$o[1]?Ee:"@"===$o[1]?Pe:Sr})}else Or.push({type:6,index:Qn})}for(const so of bn)Pn.removeAttribute(so)}if(Ti.test(Pn.tagName)){const bn=Pn.textContent.split(Oi),so=bn.length-1;if(so>0){Pn.textContent=_n?_n.emptyScript:"";for(let gr=0;gr<so;gr++)Pn.append(bn[gr],Zi()),ar.nextNode(),Or.push({type:2,index:++Qn});Pn.append(bn[so],Zi())}}}else if(8===Pn.nodeType)if(Pn.data===At)Or.push({type:2,index:Qn});else{let bn=-1;for(;-1!==(bn=Pn.data.indexOf(Oi,bn+1));)Or.push({type:7,index:Qn}),bn+=Oi.length-1}Qn++}}static createElement(Ot,pt){const ut=pi.createElement("template");return ut.innerHTML=Ot,ut}}function Fr(kt,Ot,pt=kt,ut){var Pn,Qn,Ui,Ar;if(Ot===$n)return Ot;let Or=void 0!==ut?null===(Pn=pt._$Co)||void 0===Pn?void 0:Pn[ut]:pt._$Cl;const pr=Lr(Ot)?void 0:Ot._$litDirective$;return Or?.constructor!==pr&&(null===(Qn=Or?._$AO)||void 0===Qn||Qn.call(Or,!1),void 0===pr?Or=void 0:(Or=new pr(kt),Or._$AT(kt,pt,ut)),void 0!==ut?(null!==(Ui=(Ar=pt)._$Co)&&void 0!==Ui?Ui:Ar._$Co=[])[ut]=Or:pt._$Cl=Or),void 0!==Or&&(Ot=Fr(kt,Or._$AS(kt,Ot.values),Or,ut)),Ot}class xo{constructor(Ot,pt){this._$AV=[],this._$AN=void 0,this._$AD=Ot,this._$AM=pt}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(Ot){var pt;const{el:{content:ut},parts:Pn}=this._$AD,Qn=(null!==(pt=Ot?.creationScope)&&void 0!==pt?pt:pi).importNode(ut,!0);ar.currentNode=Qn;let Ui=ar.nextNode(),Ar=0,Or=0,pr=Pn[0];for(;void 0!==pr;){if(Ar===pr.index){let co;2===pr.type?co=new qn(Ui,Ui.nextSibling,this,Ot):1===pr.type?co=new pr.ctor(Ui,pr.name,pr.strings,this,Ot):6===pr.type&&(co=new Qe(Ui,this,Ot)),this._$AV.push(co),pr=Pn[++Or]}Ar!==pr?.index&&(Ui=ar.nextNode(),Ar++)}return ar.currentNode=pi,Qn}v(Ot){let pt=0;for(const ut of this._$AV)void 0!==ut&&(void 0!==ut.strings?(ut._$AI(Ot,ut,pt),pt+=ut.strings.length-2):ut._$AI(Ot[pt])),pt++}}class qn{constructor(Ot,pt,ut,Pn){var Qn;this.type=2,this._$AH=Pt,this._$AN=void 0,this._$AA=Ot,this._$AB=pt,this._$AM=ut,this.options=Pn,this._$Cp=null===(Qn=Pn?.isConnected)||void 0===Qn||Qn}get _$AU(){var Ot,pt;return null!==(pt=null===(Ot=this._$AM)||void 0===Ot?void 0:Ot._$AU)&&void 0!==pt?pt:this._$Cp}get parentNode(){let Ot=this._$AA.parentNode;const pt=this._$AM;return void 0!==pt&&11===Ot?.nodeType&&(Ot=pt.parentNode),Ot}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(Ot,pt=this){Ot=Fr(this,Ot,pt),Lr(Ot)?Ot===Pt||null==Ot||""===Ot?(this._$AH!==Pt&&this._$AR(),this._$AH=Pt):Ot!==this._$AH&&Ot!==$n&&this._(Ot):void 0!==Ot._$litType$?this.g(Ot):void 0!==Ot.nodeType?this.$(Ot):(kt=>Kr(kt)||"function"==typeof kt?.[Symbol.iterator])(Ot)?this.T(Ot):this._(Ot)}k(Ot){return this._$AA.parentNode.insertBefore(Ot,this._$AB)}$(Ot){this._$AH!==Ot&&(this._$AR(),this._$AH=this.k(Ot))}_(Ot){this._$AH!==Pt&&Lr(this._$AH)?this._$AA.nextSibling.data=Ot:this.$(pi.createTextNode(Ot)),this._$AH=Ot}g(Ot){var pt;const{values:ut,_$litType$:Pn}=Ot,Qn="number"==typeof Pn?this._$AC(Ot):(void 0===Pn.el&&(Pn.el=ki.createElement(Pn.h,this.options)),Pn);if((null===(pt=this._$AH)||void 0===pt?void 0:pt._$AD)===Qn)this._$AH.v(ut);else{const Ui=new xo(Qn,this),Ar=Ui.u(this.options);Ui.v(ut),this.$(Ar),this._$AH=Ui}}_$AC(Ot){let pt=Ii.get(Ot.strings);return void 0===pt&&Ii.set(Ot.strings,pt=new ki(Ot)),pt}T(Ot){Kr(this._$AH)||(this._$AH=[],this._$AR());const pt=this._$AH;let ut,Pn=0;for(const Qn of Ot)Pn===pt.length?pt.push(ut=new qn(this.k(Zi()),this.k(Zi()),this,this.options)):ut=pt[Pn],ut._$AI(Qn),Pn++;Pn<pt.length&&(this._$AR(ut&&ut._$AB.nextSibling,Pn),pt.length=Pn)}_$AR(Ot=this._$AA.nextSibling,pt){var ut;for(null===(ut=this._$AP)||void 0===ut||ut.call(this,!1,!0,pt);Ot&&Ot!==this._$AB;){const Pn=Ot.nextSibling;Ot.remove(),Ot=Pn}}setConnected(Ot){var pt;void 0===this._$AM&&(this._$Cp=Ot,null===(pt=this._$AP)||void 0===pt||pt.call(this,Ot))}}class Sr{constructor(Ot,pt,ut,Pn,Qn){this.type=1,this._$AH=Pt,this._$AN=void 0,this.element=Ot,this.name=pt,this._$AM=Pn,this.options=Qn,ut.length>2||""!==ut[0]||""!==ut[1]?(this._$AH=Array(ut.length-1).fill(new String),this.strings=ut):this._$AH=Pt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(Ot,pt=this,ut,Pn){const Qn=this.strings;let Ui=!1;if(void 0===Qn)Ot=Fr(this,Ot,pt,0),Ui=!Lr(Ot)||Ot!==this._$AH&&Ot!==$n,Ui&&(this._$AH=Ot);else{const Ar=Ot;let Or,pr;for(Ot=Qn[0],Or=0;Or<Qn.length-1;Or++)pr=Fr(this,Ar[ut+Or],pt,Or),pr===$n&&(pr=this._$AH[Or]),Ui||(Ui=!Lr(pr)||pr!==this._$AH[Or]),pr===Pt?Ot=Pt:Ot!==Pt&&(Ot+=(pr??"")+Qn[Or+1]),this._$AH[Or]=pr}Ui&&!Pn&&this.j(Ot)}j(Ot){Ot===Pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,Ot??"")}}class ni extends Sr{constructor(){super(...arguments),this.type=3}j(Ot){this.element[this.name]=Ot===Pt?void 0:Ot}}const he=_n?_n.emptyScript:"";class Ee extends Sr{constructor(){super(...arguments),this.type=4}j(Ot){Ot&&Ot!==Pt?this.element.setAttribute(this.name,he):this.element.removeAttribute(this.name)}}class Pe extends Sr{constructor(Ot,pt,ut,Pn,Qn){super(Ot,pt,ut,Pn,Qn),this.type=5}_$AI(Ot,pt=this){var ut;if((Ot=null!==(ut=Fr(this,Ot,pt,0))&&void 0!==ut?ut:Pt)===$n)return;const Pn=this._$AH,Qn=Ot===Pt&&Pn!==Pt||Ot.capture!==Pn.capture||Ot.once!==Pn.once||Ot.passive!==Pn.passive,Ui=Ot!==Pt&&(Pn===Pt||Qn);Qn&&this.element.removeEventListener(this.name,this,Pn),Ui&&this.element.addEventListener(this.name,this,Ot),this._$AH=Ot}handleEvent(Ot){var pt,ut;"function"==typeof this._$AH?this._$AH.call(null!==(ut=null===(pt=this.options)||void 0===pt?void 0:pt.host)&&void 0!==ut?ut:this.element,Ot):this._$AH.handleEvent(Ot)}}class Qe{constructor(Ot,pt,ut){this.element=Ot,this.type=6,this._$AN=void 0,this._$AM=pt,this.options=ut}get _$AU(){return this._$AM._$AU}_$AI(Ot){Fr(this,Ot)}}const Mt=mt.litHtmlPolyfillSupport;var Vn,si;Mt?.(ki,qn),(null!==(on=mt.litHtmlVersions)&&void 0!==on?on:mt.litHtmlVersions=[]).push("2.7.4");class _i extends nt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var Ot,pt;const ut=super.createRenderRoot();return null!==(Ot=(pt=this.renderOptions).renderBefore)&&void 0!==Ot||(pt.renderBefore=ut.firstChild),ut}update(Ot){const pt=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(Ot),this._$Do=((kt,Ot,pt)=>{var ut,Pn;const Qn=null!==(ut=pt?.renderBefore)&&void 0!==ut?ut:Ot;let Ui=Qn._$litPart$;if(void 0===Ui){const Ar=null!==(Pn=pt?.renderBefore)&&void 0!==Pn?Pn:null;Qn._$litPart$=Ui=new qn(Ot.insertBefore(Zi(),Ar),Ar,void 0,pt??{})}return Ui._$AI(kt),Ui})(pt,this.renderRoot,this.renderOptions)}connectedCallback(){var Ot;super.connectedCallback(),null===(Ot=this._$Do)||void 0===Ot||Ot.setConnected(!0)}disconnectedCallback(){var Ot;super.disconnectedCallback(),null===(Ot=this._$Do)||void 0===Ot||Ot.setConnected(!1)}render(){return $n}}_i.finalized=!0,_i._$litElement$=!0,null===(Vn=globalThis.litElementHydrateSupport)||void 0===Vn||Vn.call(globalThis,{LitElement:_i});const wr=globalThis.litElementPolyfillSupport;wr?.({LitElement:_i}),(null!==(si=globalThis.litElementVersions)&&void 0!==si?si:globalThis.litElementVersions=[]).push("3.3.2");class Qr extends _i{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}te([Gt({type:Boolean,reflect:!0})],Qr.prototype,"inset",void 0),te([Gt({type:Boolean,reflect:!0,attribute:"inset-start"})],Qr.prototype,"insetStart",void 0),te([Gt({type:Boolean,reflect:!0,attribute:"inset-end"})],Qr.prototype,"insetEnd",void 0);const Yr=((kt,...Ot)=>{const pt=1===kt.length?kt[0]:Ot.reduce((ut,Pn,Qn)=>ut+(Ui=>{if(!0===Ui._$cssResult$)return Ui.cssText;if("number"==typeof Ui)return Ui;throw Error("Value passed to 'css' function must be a 'css' function result: "+Ui+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(Pn)+kt[Qn+1],kt[0]);return new nn(pt,kt,fn)})`:host{--_color: var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));--_thickness: var(--md-divider-thickness, 1px);box-sizing:border-box;color:var(--_color);display:flex;height:var(--_thickness);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}/*# sourceMappingURL=divider-styles.css.map */
`;let no=class extends Qr{};var kt;no.styles=[Yr],no=te([(kt="md-divider",Ot=>{return"function"==typeof Ot?(ut=Ot,customElements.define(kt,ut),ut):((pt,ut)=>{const{kind:Pn,elements:Qn}=ut;return{kind:Pn,elements:Qn,finisher(Ui){customElements.define(pt,Ui)}}})(kt,Ot);var ut})],no);const Tr=[F.YN,I.Lq,k.D6,R.wG,v.m_,Y.Wk,G.Dy,P.vF,_.hM,K.Pd];let ro=(()=>{var kt;class Ot{}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)},kt.\u0275mod=p.$C({type:kt}),kt.\u0275inj=p.G2t({imports:[Tr,F.YN,I.Lq,k.D6,R.wG,v.m_,Y.Wk,G.Dy,P.vF,_.hM,K.Pd]}),Ot})();var po=d(60990),Os=d(81247),es=d(22355),Bs=d(94222);let li=(()=>{var kt;class Ot{constructor(ut,Pn){this.radio=ut,this.spatialNavigationService=Pn}ngAfterViewInit(){if(this.spatialNavigationService.enabled&&this.radio._elementRef.nativeElement){const ut=this.radio._inputElement.nativeElement.setAttribute.bind(this.radio._inputElement.nativeElement);this.radio._inputElement.nativeElement.setAttribute=(Pn,Qn)=>{ut(Pn,"tabindex"===Pn?0:Qn)}}}}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)(p.rXU(Y._g),p.rXU(Bs.E))},kt.\u0275dir=p.FsC({type:kt,selectors:[["mat-radio-button","nvMatRadioSpatialNavigationFixup",""]]}),Ot})();var Tn=d(44186),tn=d(40514),vn=d(97888),oi=d(33668),Ci=d(6364);let or=(()=>{var kt;class Ot{get enabled(){return this._enabled}set enabled(ut){this._enabled=(0,Ci.he)(ut)}constructor(ut,Pn){this.el=ut,this.renderer=Pn}setBackgroundStyles(){this.renderer.setStyle(this.el.nativeElement,"background",`url("${this.imageUrl}") 0% 0% / cover no-repeat black`)}removeBackgroundStyles(){["background","background-color","background-repeat","background-size"].forEach(ut=>{this.renderer.removeStyle(this.el.nativeElement,ut)})}ngOnChanges(ut){ut.imageUrl?.currentValue&&ut.imageUrl?.currentValue!==ut.imageUrl?.previousValue&&this.enabled&&this.setBackgroundStyles(),(!ut.imageUrl?.currentValue||!this.enabled)&&this.removeBackgroundStyles()}}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)(p.rXU(p.aKT),p.rXU(p.sFG))},kt.\u0275dir=p.FsC({type:kt,selectors:[["","nvHigBackgroundImageOverlay",""]],inputs:{imageUrl:"imageUrl",enabled:[p.Mj6.None,"nvHigBackgroundImageOverlay","enabled"]},features:[p.OA$]}),Ot})();var yr=d(3457),$r=d(28139),ko=d(51394);const ts={provide:p.hnV,useFactory:function lo(kt,Ot){return()=>function qr(kt,Ot){return kt.addSvgIconSetLiteral(Ot.bypassSecurityTrustHtml('<svg width="0" height="0" class="svg-sprite" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><clipPath id="clip0_10669_139213"><path d="M0 0h32v32H0z"/></clipPath></defs><symbol id="account_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2a7.2 7.2 0 0 1-6-3.22c.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08a7.2 7.2 0 0 1-6 3.22z"/></symbol><symbol id="account_circle2" viewBox="0 0 80 74"><path d="M40.1 9.833C23.483 9.833 10 23.478 10 40.291a30.72 30.72 0 0 0 6.1 18.396c.16 0 .321-.041.482-.041 1.444-.162 2.809-.487 4.214-.893 1.244-.366 2.568-.65 3.772-1.097a23.448 23.448 0 0 0 3.652-1.787c1.164-.69 1.927-1.584 2.609-2.72.401-.731.762-1.26 1.565-1.544.16-.08.602-.203 1.043-.284v-1.218s-.802-.528-1.284-1.95c-.401-1.218-.642-3.98-.642-3.98s-.401-.121-.602-.202c-1.926-1.015-2.167-3.817-2.448-5.726-.12-.69-.281-1.706.361-2.193.12-.081.241-.163.361-.163-.441-1.218-.722-2.558-.963-3.776-.28-1.503-.762-2.843-.522-4.386.241-1.625 1.084-3.005 1.646-4.508.441-1.096 1.926-2.193 3.17-1.99.642-1.055 1.846-1.827 3.05-2.274a8.166 8.166 0 0 1 3.13-.487c1.445.04 2.73.569 4.134.771a8.482 8.482 0 0 1 2.609.813c.401.203.722.487 1.083.65.402.202.803.365 1.164.65.602.486 1.405 1.218 1.686 1.948.2.528.401.975.762 1.462.201.285.402.488.522.813.923 2.314.803 4.751.682 7.188-.04.974-.08 2.07-.401 3.045.16.04.321.081.481.203.763.569.482 2.924.281 3.736-.28 1.26-.842 2.965-1.284 3.533-.32.488-1.565.894-1.565.894s-.401 3.249-.722 4.183c-.321.934-1.084 1.665-1.084 1.665l-.04 1.258s1.405.203 1.806.731c.361.447.562.528.963.894.401.365.843.73 1.244 1.096.963.934 2.087 1.828 3.411 2.274.602.203 1.244.285 1.806.528.482.203.883.528 1.365.772 1.084.487 2.207.812 3.29 1.34.884.447 1.767.812 2.69 1.137 4.013-5.198 6.42-11.695 6.42-18.802C70.199 23.478 56.715 9.833 40.1 9.833Z"/></symbol><symbol id="add" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></symbol><symbol id="add_square" viewBox="0 0 44 44"><path d="M31.11 8A4.896 4.896 0 0 1 36 12.89v18.22A4.896 4.896 0 0 1 31.11 36H12.89A4.896 4.896 0 0 1 8 31.11V12.89A4.896 4.896 0 0 1 12.89 8h18.22Zm0 1.956H12.89a2.938 2.938 0 0 0-2.934 2.935v18.218a2.938 2.938 0 0 0 2.935 2.935h18.218a2.937 2.937 0 0 0 2.935-2.935V12.891a2.937 2.937 0 0 0-2.935-2.935ZM22 16a1 1 0 0 1 1 1v4h4a1 1 0 0 1 0 2h-4v4a1 1 0 0 1-2 0v-4h-4a1 1 0 0 1 0-2h4v-4a1 1 0 0 1 1-1Z"/></symbol><symbol id="alert_circle" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></symbol><symbol id="analytics" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path fill="none" d="M7 12h2v5H7zm4 2h2v3h-2zm4-7h2v10h-2z"/><path d="M3 3v18h18V3H3zm6 14H7v-5h2v5zm4 0h-2v-3h2v3zm0-5h-2v-2h2v2zm4 5h-2V7h2v10z"/></symbol><symbol id="analytics_off" viewBox="0 0 24 24"><path d="M22.22 22.18 1.81 1.78.4 3.19 3 5.79V21h15.21l2.59 2.59 1.42-1.41ZM9 17H7v-5h2v5Zm4 0h-2v-3h.21L13 15.79V17Zm0-7v.14l2 2V7h2v7.14l4 4V3H5.86l7 7H13Z"/><path d="m17.892 17.846-1.415 1.414 4.335 4.335 1.414-1.414-4.334-4.335Z"/></symbol><symbol id="app" viewBox="0 0 32 32"><path d="M4 28V4h24v24H4Zm2.667-2.667h18.666v-16H6.667v16ZM9.333 16v-2.667h13.334V16H9.333Zm0 5.333v-2.666h8v2.666h-8Z" fill="currentColor"/></symbol><symbol id="arrow_down" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/></symbol><symbol id="arrow_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M20 11H7.8l5.6-5.6L12 4l-8 8 8 8 1.4-1.4L7.8 13H20v-2z"/></symbol><symbol id="arrow_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"/></symbol><symbol id="arrow_up" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></symbol><symbol id="audio" viewBox="0 0 24 24"><path d="M1 18h6v3H1v-3Zm8 0h6v3H9v-3Zm8 0h6v3h-6v-3ZM1 13h6v3H1v-3Zm8 0h6v3H9v-3Zm8 0h6v3h-6v-3ZM9 8h6v3H9V8Zm8 0h6v3h-6V8ZM9 3h6v3H9V3Z"/></symbol><symbol id="backspace" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"/></symbol><symbol id="bandaid" viewBox="0 0 512 512"><path d="M259.2 304c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm6.4-107.2c0-6.4-4.8-11.2-11.2-11.2s-11.2 4.8-11.2 11.2c0 6.4 4.8 11.2 11.2 11.2 4.8 0 11.2-4.8 11.2-11.2zm22.4 80c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm-91.2-35.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2 0-4.8-4.8-11.2-11.2-11.2zm28.8-27.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm3.2 59.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm88-3.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2zm-32-54.4c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2 0-4.8-4.8-11.2-11.2-11.2zM256 267.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2zm6.4 88-104-104 94.4-94.4 104 104c-32 32-64 62.4-94.4 94.4zm-115.2-96 105.6 105.6-1.6 1.6-46.4 46.4c-17.6 17.6-43.2 17.6-60.8 0-16-14.4-30.4-28.8-44.8-43.2-17.6-17.6-17.6-43.2 0-60.8l46.4-46.4c0-1.6 1.6-3.2 1.6-3.2zm217.6-6.4L259.2 147.2l1.6-1.6 46.4-46.4c17.6-17.6 43.2-17.6 60.8 0 16 14.4 30.4 30.4 46.4 44.8 17.6 17.6 17.6 43.2 0 59.2l-48 48s0 1.6-1.6 1.6z"/></symbol><symbol id="battery_boost" viewBox="0 0 768 768"><path d="M286.68 287.76v64.944l95.52-64.944 96.288 64.944V287.76L382.2 224.352z"/><path d="M286.68 398.376v64.92l95.52-64.92 96.288 64.92v-64.92L382.2 334.968z"/><path d="M286.68 510.504v64.968l95.52-64.968 96.288 64.968v-64.968L382.2 447.096z"/><path d="M383.16 32.328 78.576 208.176v351.672l304.56 175.8 304.536-175.8V208.176L383.16 32.328zm127.152 559.8c0 7.824-6.384 14.232-14.256 14.232H269.808c-7.872 0-14.256-6.408-14.256-14.232v-371.64c0-7.872 6.384-14.232 14.256-14.232h51.984v-45.84h122.28v45.84h51.984c7.872 0 14.256 6.384 14.256 14.232v371.64z"/></symbol><symbol id="battery_charging" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 4h-3V2h-4v2H7v18h10V4zm-6 16v-5.5H9L13 7v5.5h2L11 20z"/></symbol><symbol id="bell" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 22c1.1 0 2-.9 2-2h-4a2 2 0 0 0 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V2.5h-3v2.18C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></symbol><symbol id="blank" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/></symbol><symbol id="broadcast" viewBox="0 0 24 24"><path d="M12 10a2 2 0 0 1 1.53 3.29L16.7 22h-2.13L12 14.93 9.43 22H7.3l3.17-8.71A2 2 0 0 1 12 10zm0-2a4 4 0 0 0-4 4c0 .5.1 1 .28 1.46l-.88 2.4A6.026 6.026 0 0 1 6 12a6 6 0 1 1 12 0c0 1.47-.53 2.81-1.4 3.86l-.88-2.4C15.9 13 16 12.5 16 12a4 4 0 0 0-4-4zm0-4a8 8 0 0 0-8 8c0 2.36 1 4.5 2.64 5.94l-.72 2A10.005 10.005 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10c0 3.23-1.54 6.11-3.92 7.94l-.72-2C19 16.5 20 14.36 20 12a8 8 0 0 0-8-8z"/></symbol><symbol id="browser_disk_drive_removable" viewBox="0 0 24 24"><path d="M2 8v8h20V8H2zm2 5v-2h10v2H4zm14 1c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="browser_diskdrive" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M2 8v8h20V8H2zm16 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="browser_diskdrive_network" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 13V5H3v8h8v3H9v1H3v2h6v1h6v-1h6v-2h-6v-1h-2v-3h8zm-4-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"/></symbol><symbol id="browser_nav_up" viewBox="0 0 24 24"><path d="M12 22C6.5 22 2 17.5 2 12S6.5 2 12 2s10 4.5 10 10-4.5 10-10 10zm0-15-5 5h3v4h4v-4h3l-5-5z"/></symbol><symbol id="cancel" viewBox="0 0 16 17"><path d="M8 1.795c3.667 0 6.667 3 6.667 6.666 0 3.667-3 6.667-6.667 6.667s-6.667-3-6.667-6.667c0-3.666 3-6.666 6.667-6.666Zm0 1.333c-1.267 0-2.4.4-3.267 1.133l7.467 7.467c.667-.933 1.133-2.067 1.133-3.267 0-2.933-2.4-5.333-5.333-5.333Zm3.267 9.533L3.8 5.195c-.733.866-1.133 2-1.133 3.266 0 2.934 2.4 5.334 5.333 5.334 1.267 0 2.4-.4 3.267-1.134Z" fill="#fff" fill-opacity=".7"/></symbol><symbol id="carrot_down" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m7 10 5 5 5-5H7z"/></symbol><symbol id="carrot_up" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m7 14 5-5 5 5H7z"/></symbol><symbol id="check" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></symbol><symbol id="check_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></symbol><symbol id="chevron_down" viewBox="0 0 768 768"><path d="M237.12 274.56 384 421.44l146.88-146.88L576 320 384 512 192 320l45.12-45.44z"/></symbol><symbol id="chevron_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"/></symbol><symbol id="chevron_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"/></symbol><symbol id="chevron_up" viewBox="0 0 768 768"><path d="M237.12 493.12 384 346.56l146.88 146.56L576 448 384 256 192 448l45.12 45.12z"/></symbol><symbol id="close" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6L19 6.4z"/></symbol><symbol id="cloud_download" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"/></symbol><symbol id="cloud_upload" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></symbol><symbol id="comment" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 2h19.99L22 22l-4-4H2z"/></symbol><symbol id="content_paste" viewBox="0 0 768 768"><path d="M608 640H160V128h64v96h320v-96h64zM384 64c17.673 0 32 14.327 32 32s-14.327 32-32 32c-17.673 0-32-14.327-32-32s14.327-32 32-32zm224 0H474.24C460.8 26.88 425.6 0 384 0s-76.8 26.88-90.24 64H160c-35.346 0-64 28.654-64 64v512c0 35.346 28.654 64 64 64h448c35.346 0 64-28.654 64-64V128c0-35.346-28.654-64-64-64z"/></symbol><symbol id="copy_generic" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16 1.9v2H4v12H2v-14h14ZM6 6h16v16H6V6Z"/></symbol><symbol id="death" viewBox="0 0 24 24"><path d="M20.85 15.92c-.1-.54-.44-.98-.9-1.22.43-1.37.66-3.13.66-5.34 0-4.03-3.92-7.48-8.73-7.48-4.81 0-8.64 3.33-8.64 7.48 0 2.19.23 3.94.65 5.3-.5.23-.88.69-.98 1.26-.17.94.47 1.84 1.44 2.01l2.32.4c.1.05.19.09.29.13l.53 2.48s1.27.93 4.45.93 4.39-.93 4.39-.93l.54-2.47c.13-.05.25-.1.38-.16l2.17-.38a1.73 1.73 0 0 0 1.43-2.01ZM9.56 14.56c-1.36 1.13-2.95 1.58-3.85.7-.9-.88-.67-2.66.59-3.89s3.23-1.3 4.13-.42c.91.87.46 2.51-.87 3.61Zm3.76 3.33c-.34.38.01-.05-1.43-.05s-.95.48-1.41.03c-.46-.45-.22-1.43-.1-1.8.11-.35.75-1.83 1.52-1.83.76 0 1.36 1.47 1.49 1.83.13.36.31 1.4-.07 1.82Zm4.82-2.64c-.9.88-2.49.43-3.85-.7-1.33-1.1-1.77-2.74-.87-3.62.9-.88 2.87-.81 4.13.42 1.27 1.24 1.5 3.02.59 3.9Z"/></symbol><symbol id="delete" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 21h12V7H6v14zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></symbol><symbol id="delete_forever" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 21h12V7H6v14zm2.46-9.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"/></symbol><symbol id="desktop" viewBox="0 0 24 24"><path d="M14 2h10v20h-2v-2h-6v2h-2V2Zm7 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-5 2v2h6V8h-6Zm0 4v2h6v-2h-6Zm-4-6v2H2v8h10v2h-2v2h2v2H6v-2h2v-2H0V6h12Z"/></symbol><symbol id="desktop_mac" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9l-2 3v1h8v-1l-2-3h9V2zm-2 12H3V4h18v10z"/></symbol><symbol id="desktop_windows" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9v2H8v2h8v-2h-2v-2h9V2zm-2 14H3V4h18v12z"/></symbol><symbol id="devices" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4 6h18V4H2v13H0v3h14v-3H4V6zm20 2h-8v12h8V8zm-2 9h-4v-7h4v7z"/></symbol><symbol id="download" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 12v7H5v-7H3v9h18v-9h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2v9.67z"/></symbol><symbol id="edit" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM21.41 6.34l-3.75-3.75-2.53 2.54 3.75 3.75 2.53-2.54z"/></symbol><symbol id="edit_settings" viewBox="0 0 24 24"><path d="M4 20V5.684h8.71L10.554 7.75H6V18h10.356v-4.713l1.993-1.996V20H4Zm4.783-4.772v-3.38l5.72-5.706 3.408 3.34-5.74 5.746H8.783Zm10.264-6.88-3.408-3.34L17.652 3 21 6.4l-1.953 1.949Z"/></symbol><symbol id="epic_games_logo" viewBox="0 0 22 25"><g id="Settings" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><path d="M2.615.053H19.42c1.343 0 1.838.507 1.838 1.88v16.58c0 .156 0 1.231-1.054 1.8-.703.378-3.452 1.543-8.248 3.495-.424.199-.628.25-.938.244-.348 0-.479-.047-.943-.244-4.792-2.015-7.54-3.18-8.243-3.496C.777 19.84.828 19.246.797 18.947a4.39 4.39 0 0 1-.02-.434V1.933c0-1.373.496-1.88 1.838-1.88ZM17.998 16.95l.003-.04v-.089l-.003-.04-.004-.037-.015-.074-.008-.033-.01-.034-.012-.033-.015-.03-.019-.033-.019-.03-.022-.032-.022-.03-.027-.026-.026-.03-.03-.025-.03-.026-.03-.019-.03-.022-.03-.018-.033-.019-.034-.018-.037-.019-.038-.015-.037-.019-.041-.014-.034-.01-.034-.012-.037-.01-.034-.012-.037-.011-.037-.011-.038-.008-.041-.01-.038-.012-.04-.007-.042-.011-.041-.011-.041-.012-.038-.007-.033-.011-.034-.007-.03-.012-.03-.007-.045-.014-.041-.016-.037-.014-.03-.019-.034-.018-.026-.026-.016-.022-.018-.04-.004-.049v-.007l.004-.037.015-.033.022-.034.034-.03.026-.014.03-.015.034-.007.038-.008.04-.007h.083l.033.004.038.003.037.004.038.008.037.007.038.007.037.011.038.012.04.01.03.015.034.012.03.014.034.015.03.015.034.015.03.018.033.015.03.022.03.019.033.018.03.022.023-.03.019-.029.022-.03.023-.029.022-.033.019-.03.022-.03.023-.029.018-.03.023-.03.022-.029.02-.029.021-.034.023-.029.022-.03.019-.03.023-.029-.03-.022-.03-.022-.03-.022-.03-.019-.034-.022-.03-.018-.033-.019-.034-.018-.03-.015-.034-.019-.037-.014-.034-.015-.034-.015-.033-.01-.038-.016-.033-.007-.034-.011-.038-.011-.033-.008-.038-.007-.037-.008-.034-.007-.037-.007-.041-.004-.037-.008-.042-.003h-.037l-.042-.004-.04-.004h-.161l-.075.008-.038.003-.037.004-.034.008-.037.007-.034.007-.034.008-.03.007-.034.011-.037.015-.037.01-.034.016-.033.019-.034.014-.034.019-.03.018-.03.022-.03.023-.026.018-.03.026-.026.03-.026.025-.026.03-.023.03-.022.03-.019.032-.019.033-.015.034-.015.033-.014.033-.008.033-.012.034-.014.066-.004.037-.004.033-.004.037v.086l.004.04.004.037.004.037.007.033.008.037.011.03.011.033.011.03.015.025.019.033.019.03.018.026.023.026.023.025.025.026.027.026.026.023.03.018.03.022.033.019.03.018.038.019.034.018.037.015.038.015.037.014.041.015.034.011.033.011.034.011.037.008.034.011.037.01.038.008.037.011.038.008.04.01.039.008.04.011.038.008.037.01.034.008.034.011.03.008.026.007.045.019.037.015.034.014.03.015.03.022.026.022.019.026.015.037.004.044v.008l-.004.037-.012.033-.014.03-.023.025-.03.023-.026.014-.03.012-.034.007-.033.007-.038.007-.041.004h-.082l-.041-.004h-.038l-.037-.007-.042-.003-.037-.008-.037-.007-.038-.008-.034-.01-.037-.012-.037-.01-.034-.016-.034-.01-.033-.016-.034-.014-.034-.015-.03-.019-.033-.014-.03-.019-.034-.022-.03-.019-.033-.021-.03-.023-.034-.022-.03-.022-.023.03-.026.025-.022.03-.026.03-.023.025-.022.03-.026.03-.023.025-.026.03-.022.026-.027.03-.022.029-.022.026-.027.03-.022.029-.026.025-.023.03.03.026.026.022.03.022.03.023.03.022.03.022.03.019.03.018.034.019.03.018.033.018.034.015.033.018.034.015.034.015.037.015.034.01.037.012.034.015.038.01.037.012.034.007.037.011.037.008.038.007.075.015.037.004.038.007.04.004.038.003.037.004h.041l.038.004h.157l.037-.004.042-.004.037-.003.034-.004.037-.004.038-.007.033-.008.034-.007.037-.007.034-.011.038-.012.037-.01.037-.015.038-.015.034-.019.033-.015.034-.018.03-.022.03-.018.03-.023.026-.021.03-.027.022-.022.026-.025.023-.026.018-.03.023-.03.038-.059.015-.033.014-.03.015-.033.012-.037.007-.033.011-.037.008-.037.004-.04.004-.037Zm-2.625.74h.038v-.61h-1.468v-.458h1.303v-.573h-1.303v-.44h1.449V15h-2.163v2.69h2.144Zm-2.734 0h.037V15h-.767l-.019.029-.018.033-.023.03-.019.033-.018.03-.019.033-.022.03-.02.032-.018.03-.019.03-.022.032-.019.03-.018.033-.02.03-.021.033-.019.03-.02.03-.018.032-.018.03-.023.033-.018.03-.02.032-.018.03-.023.033-.018.03-.019.03-.019.032-.022.03-.019.033-.018.03-.019.033-.022.03-.019.032-.02.03-.018-.03-.018-.033-.023-.029-.019-.033-.018-.03-.019-.033-.018-.03-.023-.033-.019-.03-.018-.029-.02-.033-.018-.03-.023-.032-.018-.03-.019-.033-.018-.03-.02-.033-.022-.03-.018-.029-.019-.033-.02-.03-.021-.033-.02-.03-.018-.033-.018-.029-.02-.03-.022-.033-.018-.029-.019-.034-.019-.029-.019-.033-.022-.03-.019-.033-.018-.03h-.767v2.69h.71v-1.583l.023.03.019.033.022.03.019.033.022.03.019.033.023.03.018.033.023.03.018.033.023.03.019.033.022.03.019.033.022.03.019.032.023.03.022.033.019.03.022.034.018.03.023.032.019.03.022.033.02.03.021.033.02.03.021.033.02.03.022.033.018.03.023.033.019.03.022.033h.015l.019-.03.022-.033.019-.03.022-.03.02-.033.021-.03.02-.03.018-.032.023-.03.018-.03.023-.03.018-.032.023-.03.018-.03.02-.033.022-.03.018-.03.023-.032.018-.03.023-.03.019-.033.018-.03.023-.029.019-.034.022-.03.019-.029.022-.03.019-.033.018-.03.023-.03.019-.032.022-.03.019-.03.022-.033.019-.03v1.591h.685Zm-4.342-1.11.015.034h-.633l.015-.033.012-.034.015-.037.015-.033.011-.033.015-.034.015-.037.015-.033.011-.033.015-.034.015-.033.011-.037.015-.033.015-.034.011-.033.015-.033.015-.037L7.93 16l.012-.034.014-.033.015-.037.012-.034.015-.033.015.033.011.034.014.037.016.033.011.034.015.033.015.037.01.033.016.033.015.034.011.033.015.037.011.033.015.034.015.033.012.033.014.038.015.033.012.033.015.033.015.037.011.034Zm1.175 1.11h.037l-.015-.034-.014-.033-.015-.034-.012-.037-.015-.032-.015-.034-.014-.033-.03-.066-.015-.038-.015-.033-.012-.033-.015-.033-.015-.034-.015-.033-.014-.037-.016-.033-.03-.067-.01-.033-.016-.033-.015-.037-.015-.033-.015-.034-.03-.066-.015-.033-.01-.038-.016-.033-.015-.033-.015-.033-.015-.033-.015-.033-.015-.038-.014-.033-.012-.033-.014-.033-.016-.034-.015-.033-.015-.037-.015-.033-.03-.067-.01-.033-.016-.033-.015-.033-.014-.037-.03-.066-.016-.034-.014-.033-.012-.033-.015-.037-.015-.033-.015-.034-.015-.033-.015-.033-.015-.033-.015-.038-.01-.033-.015-.033-.016-.033-.015-.033-.015-.034-.015-.037-.015-.033-.015-.033-.01-.033-.016-.034-.015-.033-.014-.037-.016-.033-.015-.033-.015-.034-.014-.033-.012-.033-.015-.037-.015-.033-.015-.034-.015-.033h-.692l-.015.033-.015.034-.015.033-.011.037-.015.033-.015.033-.015.034-.015.033-.015.033-.015.037-.015.033-.011.034-.03.066-.015.033-.015.037-.015.034-.015.033-.015.033-.011.033-.015.034-.015.037-.03.066-.015.033-.015.034-.015.033-.01.037-.016.033-.015.033-.015.034-.015.033-.015.033-.015.037-.015.033-.011.033-.03.067-.015.033-.015.033-.015.037-.015.033-.015.034-.011.033-.015.033-.015.034-.015.037-.015.033-.015.033-.015.033-.015.033-.011.034-.015.037-.015.033-.015.033-.015.033-.015.034-.015.033-.015.037-.011.033-.03.067-.015.033-.015.033-.015.037-.015.033-.015.034-.011.033-.015.033-.015.034-.015.037-.015.033-.015.033-.03.066-.011.033-.015.037-.03.067-.015.033h.756l.015-.033.011-.033.015-.034.015-.037.011-.032.015-.034.015-.033.011-.033.015-.033.016-.034.01-.033.015-.037.016-.033.01-.034.016-.033h1.074l.015.033.011.034.015.033.015.037.011.033.015.034.015.033.011.033.03.066.011.033.015.037.015.034.012.033.014.033h.734Zm-3.278-.344.026-.022v-1.201H4.985v.54h.546v.335l-.03.019-.026.015-.033.014-.03.015-.034.015-.034.007-.037.012-.038.007-.037.007-.038.004-.04.004-.042.004h-.086l-.041-.004-.037-.004-.038-.008-.037-.007-.038-.011-.037-.011-.034-.015-.034-.015-.033-.014-.03-.019-.03-.018-.03-.023-.03-.022-.026-.022-.023-.026-.026-.026-.022-.025-.023-.03-.018-.03-.02-.029-.018-.033-.015-.034-.015-.037-.011-.03-.011-.032-.008-.034-.015-.066-.004-.037-.003-.033-.004-.037v-.085l.004-.037.003-.037.008-.041.008-.033.007-.037.011-.037.015-.033.011-.033.015-.034.02-.03.018-.032.019-.03.018-.026.023-.03.026-.025.022-.026.026-.022.027-.023.026-.021.03-.02.03-.018.03-.018.034-.015.033-.015.034-.01.033-.012.034-.007.037-.007.034-.004.038-.004h.078l.042.004.04.004.038.003.037.008.038.007.034.007.033.011.034.012.03.01.03.015.03.015.033.019.03.018.03.019.03.018.03.022.03.019.03.026.03.022.022-.03.026-.025.023-.03.026-.03.022-.03.023-.025.026-.03.023-.03.026-.03.022-.025.023-.03.026-.029.022-.026.023-.03.026-.029.022-.03.027-.025.022-.03-.03-.022-.03-.026-.03-.022-.03-.022-.03-.019-.03-.022-.033-.018-.03-.02-.033-.017-.03-.02-.034-.014-.034-.018-.034-.015-.033-.015-.034-.014-.034-.012-.03-.01-.033-.008-.034-.01L5.486 15l-.033-.007-.034-.007-.037-.008-.038-.007-.033-.004-.042-.007-.037-.004h-.038l-.04-.004-.042-.003h-.16l-.038.003-.038.004-.074.008-.038.007-.037.004-.037.007-.034.011-.038.007-.034.012-.033.007-.034.015-.037.01-.03.012-.037.018-.034.015-.034.015-.034.019-.033.018-.034.019-.03.018-.03.018-.03.023-.03.018-.03.022-.026.022-.03.026-.026.022-.026.026-.026.026-.023.026-.026.026-.023.026-.022.03-.022.029-.023.03-.038.059-.018.03-.019.029-.019.033-.015.033-.03.067-.014.033-.016.037-.01.033-.012.037-.01.033-.008.037-.012.037-.007.033-.004.037-.008.037-.003.041-.004.037v.037l-.003.04v.122l.003.037.004.037.003.037.004.034.008.037.003.033.008.037.011.033.008.037.011.033.007.033.015.034.012.03.015.032.015.034.014.033.015.033.02.03.018.033.019.03.018.03.023.029.019.029.022.026.022.03.023.025.026.026.026.026.026.023.027.025.026.023.026.022.03.022.03.022.03.022.03.019.03.018.034.019.03.018.033.019.034.014.033.015.034.015.038.014.033.012.034.014.034.011.037.008.034.011.037.007.034.008.037.007.037.007.038.004.037.004.038.004.04.003.038.004h.161l.042-.004.037-.003.041-.004.038-.004.04-.004.038-.003.037-.008.038-.007.033-.007.038-.008.034-.011.037-.01.034-.012.034-.011.033-.011.034-.015.037-.015.034-.015.037-.014.034-.02.034-.013.033-.02.034-.018.034-.018.03-.018.03-.019.03-.022.03-.019.03-.021.025-.02.03-.021Zm1.1-8.912V7.04H5.439V4.705h1.857V3.311h-3.26v9.31h3.259V11.23H5.438V8.435h1.857Zm9.311 2.444c0 .366-.184.536-.545.536h-.267c-.375 0-.58-.17-.58-.536V5.174c0-.366.205-.61.58-.61h.24c.44 0 .572.148.572.61v1.86l1.396.003V5.032c0-1.137-.592-1.712-1.756-1.712h-.696c-1.164 0-1.737.716-1.737 1.854v5.77c0 1.138.573 1.683 1.737 1.683h.71c1.164 0 1.742-.545 1.742-1.682V8.899h-1.396v1.98ZM11.95 12.62h1.396V3.31H11.95v9.31Zm-1.864-5.173c0 .372-.101.518-.44.518h-.49V4.562h.49c.338 0 .44.172.44.545v2.34ZM7.76 3.31v9.31h1.395V9.243h.704c1.088 0 1.625-.572 1.625-1.729V5.04c0-1.157-.537-1.729-1.625-1.729H7.76Zm6.983 17.698H7.295l3.724 1.389 3.724-1.389Z" id="path2-7" fill="#E8E8E8"/></g></symbol><symbol id="ethernet" viewBox="0 0 768 768"><path d="M224 480h64v96h64v-96h64v96h64v-96h64v96h64V288H480v-96H288v96H160v288h64v-96zM140.16 96h488c41.92 0 75.84 33.92 75.84 76.16v456c0 41.885-33.955 75.84-75.84 75.84h-488C97.92 704 64 670.08 64 628.16v-456C64 129.92 97.92 96 140.16 96z"/></symbol><symbol id="exit_to_app" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM21 3H3v6h2V5h14v14H5v-4H3v6h18V3z"/></symbol><symbol id="eye" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></symbol><symbol id="eye_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM3.42 2.45 2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l3.43 3.43 1.41-1.41L3.42 2.45zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33a2.97 2.97 0 0 0-2.64-2.64l2.64 2.64z"/></symbol><symbol id="favorite" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></symbol><symbol id="favorite_border" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"/></symbol><symbol id="feedback" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 2H2.01L2 22l4-4h16V2zm-9 12h-2v-2h2v2zm0-4h-2V6h2v4z"/></symbol><symbol id="file" viewBox="0 0 24 24"><path d="M4.01 2 4 22h16V8l-6-6H4.01zM13 9V3.5L18.5 9H13z"/></symbol><symbol id="filter_list" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></symbol><symbol id="folder" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 4H2v16h20V6H12l-2-2z"/></symbol><symbol id="folder_open" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 6H12l-2-2H2v16h20V6zm-2 12H4V8h16v10z"/></symbol><symbol id="fps" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9v2H8v2h8v-2h-2v-2h9V2zm-2 14H3V4h18v12z"/><path d="M6 11h2V9H6V8h3V6H4v8h2v-3zm6 0h3V6h-5v8h2v-3zm0-3h1v1h-1V8zm8 1h-2V8h2V6h-4v5h2v1h-2v2h4V9z"/></symbol><symbol id="freestyle" viewBox="0 0 24 24"><path d="M12.3 9.4c-1.5 0-2.7 1.2-2.7 2.7 0 1.2-1.1 1.8-1.8 1.8.8 1.1 2.3 1.8 3.6 1.8 2 0 3.6-1.6 3.6-3.6 0-1.4-1.2-2.7-2.7-2.7zm10.697-5.383-6.364 6.364-2.475-2.475 6.364-6.364 2.475 2.475z"/><path d="M20 9v9H4V7h9l2-2H2v15h20V7l-2 2z"/></symbol><symbol id="fullscreen_exit" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></symbol><symbol id="gallery" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18 2v6H4v8H2V2h2l2 4h2L6 2h2l2 4h2l-2-4h2l2 4h2l-2-4h4Zm1 14.5V19H9l3-4 2 2.7 3-3.7 2 2.5Zm1-4.5H8v8h12v-8Zm2-2v12H6V10h16Z"/></symbol><symbol id="game_controller" viewBox="0 0 768 768"><path d="M652.8 272c-6.4-32-44.8-64-76.8-64 0-19.2-12.8-32-32-32h-64c-19.2 0-32 12.8-32 32H320c0-16-16-32-32-32h-64c-19.2 0-32 12.8-32 32-32 0-70.4 28.8-76.8 64C108.8 304 64 496 64 560c0 32 32 64 64 64s64-32 96-64 32-35.2 64-64c32-32 32-32 64-32h64c32 0 32 0 64 32l64 64c32 32 64 64 96 64s64-32 64-64c0-60.8-44.8-256-51.2-288zM320 358.4h-41.6V400h-44.8v-41.6H192v-44.8h41.6V272h44.8v41.6H320v44.8zM512 400c-35.2 0-64-28.8-64-64s28.8-64 64-64 64 28.8 64 64-28.8 64-64 64z"/></symbol><symbol id="game_controller_off" viewBox="0 0 768 768"><path d="M704 560c0 9.5-2.8 18.9-7.6 27.5L500 398.8c3.9.7 7.9 1.2 12 1.2 35.2 0 64-28.8 64-64s-28.8-64-64-64-64 28.8-64 64c0 5 .6 9.8 1.7 14.5L301.3 208H448c0-19.2 12.8-32 32-32h64c19.2 0 32 12.8 32 32 32 0 70.4 32 76.8 64S704 499.2 704 560zM146.9 224.6c-15.8 11.7-28.3 28.7-31.7 47.4C108.8 304 64 496 64 560c0 32 32 64 64 64s64-32 96-64 32-35.2 64-64c32-32 32-32 64-32h44.2m-110-105.6h-7.8V400h-44.8v-41.6H192v-44.8h41.6v-5.8M396.2 464l255 244.9 40.9-42.5-44.7-42.9L214.8 208 96.1 93.9l-40.9 42.5 91.7 88.1"/></symbol><symbol id="game_library" viewBox="0 0 768 768"><path d="M160 96v576h448V96H160zm352 400c-16 0-32-16-48-32l-32-32c-16-16-16-16-32-16h-32c-16 0-16 0-32 16l-32 32c-16 16-32 32-48 32s-32-16-32-32c0-32 22.4-128 25.6-144s22.4-32 38.4-32c0-9.6 6.4-16 16-16h32c9.6 0 16 6.4 16 16h64c0-9.6 6.4-16 16-16h32c9.6 0 16 6.4 16 16 16 0 35.2 16 38.4 32S544 432 544 464c0 16-16 32-32 32zM64 128h64v512H64V128zm576 0h64v512h-64V128z"/></symbol><symbol id="gamepad_b_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#CF3C33"/><path d="M17.588 34V14.094h6.508c2.16 0 3.782.446 4.867 1.34 1.094.893 1.64 2.214 1.64 3.964 0 .93-.264 1.755-.793 2.475-.528.711-1.248 1.262-2.16 1.654 1.076.301 1.924.875 2.543 1.723.63.838.944 1.841.944 3.008 0 1.786-.58 3.19-1.737 4.21C28.243 33.49 26.607 34 24.492 34h-6.904Zm2.625-9.31v7.163h4.334c1.221 0 2.183-.314 2.885-.943.71-.638 1.066-1.513 1.066-2.625 0-2.397-1.303-3.596-3.91-3.596h-4.375Zm0-2.106h3.965c1.148 0 2.064-.287 2.748-.861.693-.575 1.039-1.354 1.039-2.338 0-1.094-.32-1.887-.957-2.38-.638-.5-1.609-.751-2.912-.751h-3.883v6.33Z" fill="#fff"/></symbol><symbol id="gamepad_blue_b" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M16.836 34V14.094h6.973c2.415 0 4.247.465 5.496 1.394 1.248.92 1.873 2.274 1.873 4.06 0 .976-.25 1.837-.752 2.585-.502.738-1.199 1.28-2.092 1.627 1.02.255 1.823.77 2.406 1.545.593.774.889 1.722.889 2.843 0 1.915-.61 3.364-1.832 4.348-1.221.984-2.962 1.486-5.223 1.504h-7.738Zm4.102-8.668v5.373h3.513c.966 0 1.718-.228 2.256-.683.547-.465.82-1.103.82-1.915 0-1.822-.943-2.748-2.83-2.775h-3.76Zm0-2.898h3.035c2.069-.037 3.103-.862 3.103-2.475 0-.902-.264-1.55-.793-1.941-.52-.402-1.344-.602-2.474-.602h-2.872v5.018Z" fill="#fff"/></symbol><symbol id="gamepad_blue_rs" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M15.631 27.269h-3.086v6.967H8.671V15.203h6.986c2.221 0 3.934.5 5.14 1.503 1.205 1.002 1.807 2.419 1.807 4.249 0 1.298-.28 2.383-.84 3.255-.55.862-1.39 1.551-2.517 2.065l4.068 7.778v.183h-4.158Zm-3.086-3.177h3.125c.973 0 1.726-.248 2.26-.745.534-.506.8-1.198.8-2.079 0-.897-.254-1.603-.761-2.117-.5-.514-1.27-.772-2.312-.772h-3.112zm22.766 5.15c0-.74-.258-1.307-.775-1.699-.517-.4-1.446-.82-2.79-1.255-1.342-.444-2.405-.88-3.189-1.307-2.135-1.168-3.202-2.74-3.202-4.72 0-1.028.284-1.943.852-2.744.577-.81 1.399-1.443 2.466-1.896 1.077-.453 2.282-.68 3.616-.68 1.343 0 2.54.249 3.59.746 1.05.488 1.864 1.18 2.44 2.078.586.898.879 1.917.879 3.059h-3.874c0-.872-.271-1.547-.814-2.026-.542-.488-1.304-.732-2.285-.732-.947 0-1.683.205-2.209.614-.525.401-.787.933-.787 1.595 0 .619.305 1.137.917 1.556.62.418 1.528.81 2.724 1.176 2.204.671 3.81 1.503 4.817 2.497 1.007.993 1.51 2.23 1.51 3.712 0 1.648-.615 2.942-1.846 3.883-1.231.932-2.888 1.399-4.971 1.399-1.447 0-2.764-.266-3.952-.798-1.188-.54-2.096-1.276-2.724-2.209-.62-.933-.93-2.013-.93-3.242h3.887c0 2.1 1.24 3.15 3.719 3.15.92 0 1.64-.187 2.156-.562.517-.383.775-.915.775-1.594z" fill="#fff"/></symbol><symbol id="gamepad_blue_rt" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M15.991 27.436h-3.12v7.159H8.952V15.039h7.064c2.246 0 3.978.515 5.197 1.544 1.218 1.03 1.828 2.485 1.828 4.366 0 1.334-.283 2.449-.849 3.344-.557.886-1.406 1.594-2.546 2.122l4.113 7.992v.188h-4.205Zm-3.12-3.264h3.16c.983 0 1.745-.255 2.284-.766.54-.519.81-1.23.81-2.135 0-.922-.257-1.648-.77-2.176-.506-.528-1.285-.792-2.338-.792H12.87Zm26.818-5.87h-5.823v16.293h-3.917V18.303h-5.745v-3.264h15.485z" fill="#fff"/></symbol><symbol id="gamepad_blue_x" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="m23.854 21.775 4.477-7.24h5.659l-6.954 10.413 7.134 10.587h-5.724l-4.592-7.356-4.593 7.356h-5.724l7.135-10.587-6.954-10.414h5.658z" fill="#fff"/></symbol><symbol id="gamepad_blue_y" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="m23.986 23.063 4.143-8.97h4.484l-6.535 12.688V34h-4.17v-7.219l-6.535-12.687h4.498l4.115 8.969Z" fill="#fff"/></symbol><symbol id="gamepad_ls_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M13.104 31.854h9.433V34H10.465V14.094h2.639v17.76Zm18.293-6.727c-2.252-.647-3.892-1.44-4.922-2.379-1.021-.948-1.532-2.114-1.532-3.5 0-1.568.625-2.862 1.873-3.883 1.258-1.03 2.89-1.545 4.895-1.545 1.367 0 2.584.265 3.65.793 1.076.529 1.905 1.258 2.489 2.188.592.93.888 1.946.888 3.049H36.1c0-1.204-.383-2.147-1.149-2.83-.766-.693-1.846-1.04-3.24-1.04-1.294 0-2.306.288-3.035.862-.72.565-1.08 1.353-1.08 2.365 0 .811.341 1.5 1.025 2.064.693.556 1.864 1.067 3.514 1.532 1.659.465 2.953.98 3.883 1.545.938.556 1.631 1.207 2.078 1.955.455.747.683 1.627.683 2.638 0 1.614-.629 2.908-1.886 3.883-1.258.966-2.94 1.45-5.045 1.45-1.367 0-2.644-.26-3.828-.78-1.185-.529-2.101-1.249-2.748-2.16-.638-.912-.957-1.946-.957-3.104h2.638c0 1.204.442 2.156 1.326 2.858.893.693 2.083 1.039 3.569 1.039 1.385 0 2.447-.283 3.185-.848.739-.565 1.108-1.335 1.108-2.31 0-.976-.342-1.728-1.026-2.256-.683-.538-1.923-1.067-3.719-1.586Z" fill="#fff"/></symbol><symbol id="gamepad_lt_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M14.95 31.854h9.433V34H12.31V14.094h2.638v17.76Zm22.407-15.6H30.96V34h-2.611V16.254h-6.385v-2.16h15.394v2.16Z" fill="#fff"/></symbol><symbol id="gamepad_rs_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M16.672 25.947h-4.676V34H9.357V14.094h6.59c2.242 0 3.965.51 5.168 1.531 1.213 1.02 1.819 2.506 1.819 4.457 0 1.24-.338 2.32-1.012 3.24-.666.92-1.595 1.609-2.79 2.065l4.677 8.449V34h-2.817l-4.32-8.053Zm-4.676-2.146h4.033c1.304 0 2.338-.337 3.104-1.012.775-.674 1.162-1.577 1.162-2.707 0-1.23-.37-2.174-1.108-2.83-.729-.656-1.786-.989-3.171-.998h-4.02V23.8Zm20.494 1.326c-2.251-.647-3.892-1.44-4.922-2.379-1.02-.948-1.53-2.114-1.53-3.5 0-1.568.623-2.862 1.872-3.883 1.258-1.03 2.89-1.545 4.895-1.545 1.367 0 2.584.265 3.65.793 1.076.529 1.905 1.258 2.488 2.188.593.93.889 1.946.889 3.049h-2.639c0-1.204-.383-2.147-1.148-2.83-.766-.693-1.846-1.04-3.24-1.04-1.295 0-2.306.288-3.035.862-.72.565-1.08 1.353-1.08 2.365 0 .811.341 1.5 1.025 2.064.693.556 1.864 1.067 3.513 1.532 1.66.465 2.954.98 3.883 1.545.94.556 1.632 1.207 2.079 1.955.455.747.683 1.627.683 2.638 0 1.614-.629 2.908-1.887 3.883-1.258.966-2.94 1.45-5.045 1.45-1.367 0-2.643-.26-3.828-.78-1.185-.529-2.1-1.249-2.748-2.16-.638-.912-.957-1.946-.957-3.104h2.639c0 1.204.442 2.156 1.326 2.858.893.693 2.083 1.039 3.568 1.039 1.386 0 2.448-.283 3.186-.848s1.107-1.335 1.107-2.31c0-.976-.341-1.728-1.025-2.256-.684-.538-1.923-1.067-3.719-1.586Z" fill="#fff"/></symbol><symbol id="gamepad_rt_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="m24.272 34.207-3.206-.153-5.513-7.413h-3.85v7.413H8.97V15.41h5.755c1.242 0 2.276.075 3.104.225.828.142 1.573.4 2.236.776.745.426 1.325.964 1.739 1.616.423.642.634 1.46.634 2.454 0 1.344-.372 2.47-1.117 3.38-.746.902-1.771 1.582-3.078 2.042zm-4.69-13.55c0-.535-.106-1.007-.317-1.416-.203-.417-.543-.768-1.022-1.052a3.903 3.903 0 0 0-1.407-.5 10.7 10.7 0 0 0-1.918-.15h-3.215v7.036h2.76c.864 0 1.619-.066 2.262-.2.644-.142 1.192-.4 1.643-.776.414-.351.717-.752.91-1.202.203-.46.304-1.04.304-1.74zm20.902-3.044H33.74v16.441h-2.51v-16.44h-6.744V15.41h15.998z" fill="#fff"/></symbol><symbol id="gamepad_y_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#F19937"/><path d="m24.473 24.088 5.195-9.994h2.98l-6.863 12.482V34H23.16v-7.424l-6.863-12.482h3.008l5.168 9.994Z" fill="#fff"/></symbol><symbol id="gameplay" viewBox="0 0 24 24"><path d="M23 2v16h-9v2h2v2H8v-2h2v-2H1V2h22Zm-2 2H3v12h18V4ZM10 6c.3 0 .6.3.6.6H13c0-.4.3-.6.6-.6h1.1c.4 0 .6.3.6.6l.121.007c.57.06 1.186.533 1.279 1.093.1.6.9 4.1.8 5.1 0 .5-.5 1.1-1.1 1.1-.6 0-1.1-.5-1.7-1.1l-.962-.962-.138-.138c-.5-.6-.5-.6-1.1-.6h-1.3c-.403.003-.443.043-1 .6l-1.1 1.1c-.6.5-1.2 1.1-1.7 1.1s-1.1-.5-1.1-1.1c0-1.1.8-4.5.9-5.1.1-.6.8-1.1 1.3-1.1l.009-.114C8.56 6.162 8.83 6 9.1 6Z"/></symbol><symbol id="gfe_logo" viewBox="0 0 768 768"><path d="m42.667 608 83.2 83.2h601.6v34.133H110.934l-68.267-68.267z"/><path d="M42.667 42.667v512l102.4 102.4h582.4v-614.4h-684.8zM76.8 539.733V76.8h616.533V192c-179.2 0-332.8 72.533-392.534 125.867l12.8 38.4c10.666 29.867 23.467 59.733 40.533 87.466 2.133 6.4 6.4 10.666 8.534 17.067 38.4 64 85.333 119.467 134.4 164.267H396.799c-53.333-46.933-98.133-98.133-134.4-153.6-25.6 12.8-102.4 14.933-138.667 32 34.133 36.267 74.667 81.067 125.866 121.6h-91.733l-81.067-85.334zm503.467 85.334c-89.6-87.466-128-196.267-140.8-236.8-2.133-10.666-4.267-14.933-4.267-14.933s110.933-83.2 256-108.8v72.533c-46.933 19.2-98.133 44.8-145.067 85.333 0 0 0 4.267 2.133 8.534 6.4 25.6 29.866 100.267 89.6 160-6.4-70.4-4.267-119.467-4.267-134.4v-6.4s21.333-17.067 55.467-36.267v211.2h-108.8z"/></symbol><symbol id="gfe_logo_inverse" viewBox="0 0 768 768"><path d="M437.333 386.133c12.8 38.4 49.067 145.067 136.533 228.267h106.666V411.733c-34.133 19.2-53.333 34.133-53.333 34.133v6.4c0 17.067-2.133 61.867 4.267 130.133-57.6-59.733-81.067-130.133-87.466-155.733-2.133-6.4-2.133-8.534-2.133-8.534 44.8-38.4 93.867-64 138.667-81.067v-70.4c-140.8 23.467-247.467 104.533-247.467 104.533s2.133 6.4 4.267 14.933z"/><path d="M249.6 616.533c-49.066-40.533-87.467-83.2-119.467-119.467 36.267-14.933 108.8-19.2 134.4-29.866 34.133 53.333 78.933 104.534 130.133 149.333h96c-46.933-44.8-93.867-98.133-130.133-160-2.133-4.267-6.4-10.666-8.534-14.933-14.933-25.6-27.733-53.333-38.4-83.2-4.267-12.8-8.534-23.467-12.8-36.267 57.6-51.2 206.933-119.467 379.733-121.6v-115.2h-595.2v448l78.933 81.067h85.333z"/><path d="M42.667 42.667v612.267l70.4 70.4h612.267V42.668H42.668zm672 672h-595.2l-66.133-66.134V601.6l81.067 78.933h580.267v34.133zm0-66.134h-563.2L53.334 548.266V53.333h661.333v595.2z"/></symbol><symbol id="goal" viewBox="0 0 24 24"><g transform="translate(2 6)"><circle cx="10.388" cy="5.993" r="5.62"/><path d="M3.405 9.008H-.003v2.02h4.701a7.632 7.632 0 0 1-1.293-2.02zm-.626-3.015c0-.338.03-.669.073-.996H-.003v2.02h2.859a7.548 7.548 0 0 1-.077-1.024zM4.673.984H-.003v2.02h3.395A7.633 7.633 0 0 1 4.673.984z"/></g><path d="M15.379 1.999h-4.376c5.13 1.031 8.964 5.122 8.964 10.015 0 4.847-3.762 8.908-8.819 9.986h4.173c3.944-1.747 6.683-5.573 6.683-10.013-.001-4.419-2.712-8.229-6.625-9.988Z"/></symbol><symbol id="gpu" viewBox="0 0 768 768"><path d="M64 226.133v46.934h34.133v268.8H140.8V226.134zm128 0V499.2h34.133v46.933H448V499.2h256V226.133H192zm366.933 217.6c-42.667 0-81.067-34.133-81.067-81.067 0-42.667 34.133-81.067 81.067-81.067 42.667 0 81.067 34.133 81.067 81.067 0 42.667-34.133 81.067-81.067 81.067z"/></symbol><symbol id="guage" viewBox="0 0 768 768"><path d="M384 512c-53.019 0-96-42.981-96-96 0-35.84 19.52-67.2 48-83.52l310.72-179.84L469.76 459.2c-16 31.36-48.32 52.8-85.76 52.8zm0-416c57.92 0 112 16 159.04 42.24l-67.2 38.72C448 166.08 416 160 384 160c-141.385 0-256 114.615-256 256 0 70.72 28.48 134.72 74.88 180.8h.32c12.48 12.48 12.48 32.64 0 45.12s-32.96 12.48-45.44.32C99.84 584.32 64 504.32 64 416 64 239.269 207.269 96 384 96zm320 320c0 88.32-35.84 168.32-93.76 226.24-12.48 12.16-32.64 12.16-45.12-.32s-12.48-32.64 0-45.12C611.52 550.4 640 486.72 640 416c0-32-6.08-64-17.28-92.8l38.72-67.2C688 304 704 357.76 704 416z"/></symbol><symbol id="gun" viewBox="0 0 24 24"><path d="M23 6.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 5.342 6.095 5 5.643 5c-.451 0-.817.342-.817.763l.001.007H2.986v2.315L1.496 9.35v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855V7.652H23V6.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202Z"/></symbol><symbol id="gun2x" viewBox="0 0 24 36"><path d="M23 18.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 17.342 6.095 17 5.643 17c-.451 0-.817.342-.817.763l.001.007H2.986v2.315l-1.49 1.265v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855v-2.071H23V18.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202ZM11.94 13.43H5.96v-1.02l2.9-3.16c.24-.27.45-.51.61-.72.16-.21.29-.4.38-.57.1-.17.16-.33.2-.49a1.79 1.79 0 0 0-.03-1.02 1.244 1.244 0 0 0-.67-.75c-.16-.06-.35-.1-.56-.1-.26 0-.48.04-.67.12-.19.08-.35.2-.47.34-.12.15-.22.32-.28.52-.06.2-.1.42-.1.66H5.79c0-.39.07-.76.2-1.1.13-.34.33-.64.58-.9.26-.26.57-.46.95-.61.37-.15.8-.22 1.28-.22.44 0 .84.06 1.19.17.35.11.64.28.88.49.24.21.42.47.54.77a2.712 2.712 0 0 1 .06 1.83c-.09.27-.21.54-.37.81s-.35.54-.57.81c-.22.27-.46.54-.72.82l-1.99 2.13h4.13v1.19h-.01Zm3.6-4.44 1.26-2.17h1.65l-2.02 3.26 2.09 3.35h-1.64l-1.32-2.26-1.31 2.26H12.6l2.09-3.35-2.02-3.26h1.64z"/></symbol><symbol id="gun3x" viewBox="0 0 24 36"><path d="M23 18.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 17.342 6.095 17 5.643 17c-.451 0-.817.342-.817.763l.001.007H2.986v2.315l-1.49 1.265v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855v-2.071H23V18.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202ZM7.67 8.3h.88c.26 0 .48-.03.67-.1.19-.07.34-.16.47-.28.13-.12.22-.26.28-.43.06-.17.09-.35.09-.56 0-.42-.11-.75-.33-.99-.22-.23-.56-.34-1.02-.34-.2 0-.38.03-.54.09-.17.05-.31.14-.44.24-.12.11-.21.24-.28.4-.07.15-.1.32-.1.52H5.86c0-.35.07-.67.21-.97.14-.31.33-.56.59-.78.25-.22.55-.39.9-.51s.72-.19 1.13-.19c.42 0 .81.05 1.16.16.35.11.65.27.9.48.25.22.45.48.59.8.14.32.21.68.21 1.1 0 .18-.03.36-.09.54-.06.18-.14.36-.26.53-.11.17-.26.33-.43.48-.17.15-.37.27-.6.38.27.09.5.21.69.36.19.14.34.31.46.49s.2.38.26.58a2.736 2.736 0 0 1-.15 1.75c-.15.33-.36.6-.63.82-.27.22-.58.39-.95.51s-.76.17-1.18.17c-.39 0-.76-.05-1.11-.16a2.91 2.91 0 0 1-.93-.47c-.27-.21-.48-.47-.64-.78-.16-.31-.24-.68-.24-1.09h1.48c0 .2.03.37.1.54.07.16.17.3.29.42.13.12.28.21.46.27.18.06.38.09.6.09.46 0 .82-.12 1.09-.37.26-.24.4-.6.4-1.06 0-.25-.04-.47-.12-.65-.08-.18-.19-.33-.33-.46-.14-.12-.31-.21-.52-.27-.2-.06-.43-.09-.68-.09h-.85V8.3Zm7.86.69 1.26-2.17h1.65l-2.02 3.26 2.09 3.35h-1.64l-1.32-2.26-1.31 2.26h-1.65l2.09-3.35-2.02-3.26h1.64z"/></symbol><symbol id="heads_up_display" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M23 18h-9v2h2v2H8v-2h2v-2H1V2h22v16ZM21 4H3v12h18V4ZM5 10v4h6v-4H5Z"/></symbol><symbol id="heart" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></symbol><symbol id="help" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></symbol><symbol id="highlights" viewBox="0 0 24 24"><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H2v16h20V4h-4Zm-3.5 13.987L12 16.478l-2.5 1.51.7-2.818L8 13.157l2.9-.201 1.1-2.717 1.1 2.717 2.9.201-2.2 1.912.7 2.918Z"/></symbol><symbol id="highlights_disabled" viewBox="0 0 24 24"><path d="M2.27 2 21 20.73 19.73 22l-2.002-2.001L2 20V4.269L1 3.27 2.27 2ZM10 4l2 4h3l-2-4h2l2 4h3.005L18 4h4v15.173l-6.027-6.026.036-.03-.07-.006-6.744-6.74L8 4.001h2Zm.663 8.933-2.645.183 2.198 1.997-.699 2.796 2.497-1.498 2.497 1.498-.36-1.488-3.488-3.488Z"/></symbol><symbol id="home" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"/></symbol><symbol id="icon_play" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.667 4.167v11.666L15.833 10 6.667 4.167Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="image" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 21V3H3v18h18zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></symbol><symbol id="image_off" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.67 22.084 1.914 3.328l1.414-1.414L22.084 20.67l-1.414 1.414Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.328 17.2V3h-14.2l14.2 14.2ZM4.3 3h-.972v18h18v-.972L19.301 18H5.327l3.5-4.5 2.5 3.01 2.833-3.65L4.3 3Z" fill="#fff"/></symbol><symbol id="ime" viewBox="0 0 24 24"><g fill="#FFF"><path d="M13.912 14.884h-.905V13.11H15.9a4.157 4.157 0 0 0-.302-.51l.92-.279c.186.233.372.542.472.79h2.662v1.772H18.7v-.905h-4.79v.905Zm5.795 2.5h-2.886v1.167c0 .495-.116.743-.495.882-.371.148-.867.155-1.5.155a3.363 3.363 0 0 0-.403-.936c.479.016 1.06.016 1.214.016.155 0 .201-.031.201-.14v-1.145h-2.87v-.874h2.87v-.41a5.31 5.31 0 0 0 .945-.635H14.29v-.859h3.42l.21-.046.61.48a7.772 7.772 0 0 1-1.71 1.338v.132h2.886v.874Z"/><path d="M20.232 2c.942 0 1.71.735 1.768 1.658v16.574c0 .936-.729 1.71-1.658 1.762l-.11.006H3.774c-.942 0-1.71-.735-1.768-1.665L2 20.232V3.768c0-.942.735-1.71 1.665-1.768h16.567Zm.626 1.258-.013.045a.804.804 0 0 1-.174.284L3.503 20.8a.695.695 0 0 1-.155.116c.104.058.22.103.342.116h16.542a.8.8 0 0 0 .8-.722l.007-.078V3.768a.83.83 0 0 0-.18-.51Zm-12.364 1.2H7.298L4.967 10.72h1.372l.43-1.29h2.263l.434 1.29h1.373L8.494 4.458ZM7.896 6.04l.787 2.344H7.118l.778-2.344Z"/></g></symbol><symbol id="info" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z"/></symbol><symbol id="ios_share" viewBox="0 0 44 44"><path d="m21 7-2.65 3.41a.931.931 0 0 1-.72.342c-.538 0-.944-.427-.944-1.012 0-.298.117-.527.314-.74l4.155-4.659C21.417 4.056 21.738 4 22 4s.415.056.676.341l4.432 4.645c.196.213.302.442.302.74 0 .585-.408 1.012-.958 1.012a.925.925 0 0 1-.708-.342L23 7v17c0 .598-.436 1-1 1-.564 0-1-.402-1-1V7ZM9 17.667c0-3.045 1.538-4.583 4.6-4.583L17 13v1.993h-3.686c-1.464 0-2.27.798-2.27 2.335l-.042 15.259c0 1.537.533 2.413 1.998 2.413h17.727C32.178 35 33 34.467 33 32.93l.042-15.26c0-1.536-.591-2.677-2.042-2.677h-4V13l3.4.084c3.062 0 4.6 1.538 4.6 4.583v14.75C35 35.464 33.462 37 30.4 37H13.6C10.538 37 9 35.463 9 32.418V17.667Z"/></symbol><symbol id="isp" viewBox="0 0 768 768"><path d="M384 64c-141.385 0-256 114.615-256 256 0 128.96 96 237.44 224 253.76V608h-32c-17.673 0-32 14.327-32 32H64v64h224c0 17.673 14.327 32 32 32h128c17.673 0 32-14.327 32-32h224v-64H480c0-17.673-14.327-32-32-32h-32v-34.24c128-16 224-124.8 224-253.76 0-141.385-114.615-256-256-256zm0 64s23.68 40.96 40.32 96h-80.64c16.64-55.04 40.32-96 40.32-96zm-71.36 13.76c-8.64 16-21.76 45.12-32.96 82.24h-61.76c22.08-37.12 54.08-66.24 94.72-82.24zm142.72.32c40.64 16 72.64 44.8 94.72 81.92h-61.76c-11.2-37.12-24.32-66.24-32.96-81.92zM194.88 288h71.36c-1.28 10.56-2.24 21.12-2.24 32s.96 21.44 2.24 32h-71.36c-1.92-10.56-2.88-21.12-2.88-32s.96-21.44 2.88-32zm135.36 0h107.52c1.28 10.56 2.24 21.12 2.24 32s-.96 21.44-2.24 32H330.24c-1.28-10.56-2.24-21.12-2.24-32s.96-21.44 2.24-32zm171.52 0h71.36c1.92 10.56 2.88 21.12 2.88 32s-.96 21.44-2.88 32h-71.36c1.28-10.56 2.24-21.12 2.24-32s-.96-21.44-2.24-32zM217.92 416h61.76c11.2 37.12 24.32 66.24 32.96 81.92-40.64-16-72.64-44.8-94.72-81.92zm125.76 0h80.64C407.68 471.04 384 512 384 512s-23.68-40.96-40.32-96zm144.64 0h61.76C528 453.12 496 482.24 455.36 498.24c8.64-16 21.76-45.12 32.96-82.24z"/></symbol><symbol id="keyboard" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M22 5H2.01L2 19h20V5zM11 8h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"/></symbol><symbol id="keyboard_arrow_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></symbol><symbol id="keyboard_arrow_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></symbol><symbol id="keyboard_hide_icon" viewBox="0 0 20 20"><g id="Client-IME" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="11″-iPad-Pro--Client-IME---portrait---snackbar" transform="translate(-780 -613)"><g id="Components-/-Button-/-Contained-icon-/-Active-Copy" transform="translate(762 594)"><g id="keyboard_hide" transform="translate(16 16)"><path id="Path" d="M0 0h24v24H0z"/><path d="M22 3H2.01L2 17h20V3ZM11 6h2v2h-2V6Zm0 3h2v2h-2V9ZM8 6h2v2H8V6Zm0 3h2v2H8V9Zm-1 2H5V9h2v2Zm0-3H5V6h2v2Zm9 7H8v-2h8v2Zm0-4h-2V9h2v2Zm0-3h-2V6h2v2Zm3 3h-2V9h2v2Zm0-3h-2V6h2v2Zm-7 15 4-4H8l4 4Z" id="Shape" fill="#FFF"/></g></g></g></g></symbol><symbol id="laptop" viewBox="0 0 32 32"><path d="M3 26v-2.235h4.47v-1.118H5.236V7h22.353v15.647h-2.235v1.118h4.47V26H3Zm4.47-5.588h17.883V9.235H7.47v11.177Z" fill="currentColor"/></symbol><symbol id="launch" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></symbol><symbol id="link" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8zm9-4h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8z"/></symbol><symbol id="link_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M14.39 11 16 12.61V11zM17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.27-.77 2.37-1.87 2.84l1.4 1.4A4.986 4.986 0 0 0 22 12c0-2.76-2.24-5-5-5zM2 4.27l3.11 3.11A4.991 4.991 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4.01 1.41-1.41L3.41 2.86 2 4.27z"/></symbol><symbol id="lock" viewBox="0 0 24 24"><g fill="none"><path d="M0 0h24v24H0V0z"/><path d="M0 0h24v24H0V0z" opacity=".87"/></g><path d="M20 8h-3V6.21c0-2.61-1.91-4.94-4.51-5.19A5.008 5.008 0 0 0 7 6v2H4v14h16V8zm-8 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"/></symbol><symbol id="logout" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.6 15.6 16 17l5-5-5-5-1.4 1.4 2.6 2.6H7.5v2h9.7l-2.6 2.6ZM3 21h18v-3.976h-2V19H5V5h14v2.031h2V3H3v18Z"/></symbol><symbol id="medal" viewBox="0 0 24 24"><path d="M3.79 2h16.42v1.59H3.79zm0 3.18v11L12 22l8.21-5.82v-11H3.79Zm11.25 11.5L12 15.08l-3.04 1.6.58-3.39-2.46-2.4 3.4-.49L12 7.32l1.52 3.08 3.4.49-2.46 2.4.58 3.39Z"/></symbol><symbol id="memory" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V5h-4V3h-2v2h-2V3H9v2H5v4H3v2h2v2H3v2h2v4h4v2h2v-2h2v2h2v-2h4v-4h2v-2h-2v-2h2zm-4 6H7V7h10v10z"/></symbol><symbol id="menu" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></symbol><symbol id="message" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 2H2.01L2 22l4-4h16V2zm-4 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></symbol><symbol id="mic" viewBox="0 0 24 24"><path d="M12 14c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3S9 3.3 9 5v6c0 1.7 1.3 3 3 3zm5.3-3c0 3-2.5 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.4 2.7 6.2 6 6.7V21h2v-3.3c3.3-.5 6-3.3 6-6.7h-1.7z"/></symbol><symbol id="mic_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 10.6V5c0-1.66-1.34-3-3-3-1.54 0-2.79 1.16-2.96 2.65L15 10.6zm4 .4h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86 3 4.27l6 6V11c0 1.66 1.34 3 3 3 .23 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28a7.13 7.13 0 0 0 2.55-.9l4.2 4.2 1.41-1.41L4.41 2.86z"/></symbol><symbol id="montage" viewBox="0 0 24 24"><path d="m5 4 2 4h3L8 4h2l2 4h3l-2-4h2l2 4h3l-2-4h4v16H2V4h3Zm4.5 7-1.1 2.4L6 14.5l2.4 1.1L9.5 18l1.1-2.4 2.4-1.1-2.4-1.1L9.5 11Zm6-1.5-.8 1.7-1.7.8 1.7.8.8 1.7.8-1.7L18 12l-1.7-.8-.8-1.7Z"/></symbol><symbol id="more_horiz" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></symbol><symbol id="more_vert" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></symbol><symbol id="movie" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/></symbol><symbol id="network_signal" viewBox="0 0 768 768"><path d="M611.875 130.56c139.852 140.084 139.852 367.028 0 506.88l-46.08-46.08c114.509-114.509 114.509-300.212 0-414.72l46.08-46.08zm-92.159 92.16c88.934 89.165 88.934 233.626 0 322.56l-46.08-46.08c63.59-63.59 63.59-166.81 0-230.4l46.08-46.08zM156.125 637.44c-139.853-140.083-139.853-367.027 0-506.88l46.08 46.08c-114.508 114.509-114.508 300.212 0 414.72l-46.08 46.08zm92.159-92.16c-88.934-89.164-88.934-233.626 0-322.56l46.08 46.08c-63.59 63.59-63.59 166.81 0 230.4l-46.08 46.08zM384 445.44c-33.932 0-61.44-27.508-61.44-61.44s27.508-61.44 61.44-61.44 61.44 27.508 61.44 61.44-27.508 61.44-61.44 61.44z"/></symbol><symbol id="nvidia-logo-horiz-rgb-wht-for-screen" viewBox="0 0 82 15.13"><path d="M8.53 4.52V3.15c.13 0 .27-.02.4-.02 3.74-.12 6.19 3.21 6.19 3.21s-2.65 3.68-5.49 3.68c-.41 0-.78-.07-1.11-.18V5.7c1.46.18 1.75.82 2.62 2.28l1.95-1.64s-1.42-1.86-3.82-1.86c-.26 0-.51.02-.75.04m0-4.52v2.04c.13-.01.27-.02.4-.02 5.2-.18 8.59 4.26 8.59 4.26s-3.89 4.73-7.94 4.73c-.37 0-.72-.03-1.05-.09v1.26c.28.04.57.06.87.06 3.77 0 6.5-1.93 9.14-4.21.44.35 2.23 1.2 2.6 1.58-2.51 2.1-8.36 3.8-11.68 3.8-.32 0-.63-.02-.93-.05v1.77h14.34V0H8.53zm0 9.84v1.08c-3.49-.62-4.46-4.25-4.46-4.25s1.67-1.86 4.46-2.16v1.18c-1.46-.18-2.6 1.19-2.6 1.19s.64 2.3 2.61 2.96M2.34 6.51s2.07-3.05 6.2-3.37V2.03C3.96 2.41 0 6.28 0 6.28s2.24 6.48 8.53 7.08v-1.18c-4.62-.58-6.2-5.67-6.2-5.67z" fill="#76b900"/><path d="M48.69 2.86v9.93h2.81V2.86zm-22.07-.01v9.94h2.83V5.24h2.19c.73 0 1.24.18 1.59.55.44.47.62 1.24.62 2.63v4.37h2.74V7.3c0-3.92-2.5-4.45-4.95-4.45H26.6m26.58.01v9.93h4.55c2.42 0 3.22-.4 4.07-1.31.6-.63 1-2.03 1-3.55 0-1.4-.33-2.64-.91-3.42-1.04-1.39-2.54-1.66-4.77-1.66h-3.94zm2.78 2.16h1.21c1.75 0 2.88.79 2.88 2.82s-1.13 2.83-2.88 2.83h-1.21zM44.62 2.86l-2.34 7.87-2.24-7.87h-3.03l3.2 9.93h4.04l3.23-9.93zm19.48 9.93h2.81V2.86H64.1zm7.86-9.93-3.92 9.93h2.77l.62-1.75h4.64l.59 1.75h3l-3.95-9.93zm1.82 1.81 1.7 4.65h-3.45zm7.34 8.42c-.48 0-.88-.39-.88-.88s.39-.88.88-.88.88.39.88.88-.39.88-.88.88zm0-1.58c-.39 0-.7.3-.7.71s.3.71.7.71.7-.3.7-.71-.3-.71-.7-.71zm.16 1.17-.17-.36h-.1v.36h-.21v-.93h.38c.19 0 .31.14.31.29 0 .13-.08.21-.17.25l.2.39zm-.12-.76h-.15v.24h.15c.08 0 .13-.06.13-.12s-.05-.12-.13-.12z" fill="#fff"/></symbol><symbol id="nvidia_logo_green" viewBox="0 0 44 44"><g fill="none"><path fill="#76B900" d="M7 37h30V7H7z"/><path fill="#FFF" d="M13.248 21.027s1.989-2.822 5.96-3.114v-1.024C14.81 17.229 11 20.811 11 20.811s2.157 5.999 8.208 6.548v-1.088c-4.44-.538-5.96-5.244-5.96-5.244Zm5.96 3.079v.997c-3.356-.576-4.287-3.93-4.287-3.93s1.611-1.717 4.287-1.996v1.094h-.005c-1.404-.162-2.501 1.1-2.501 1.1s.614 2.124 2.506 2.735Zm0-9.106v1.889c.13-.01.259-.018.389-.022 5.001-.162 8.26 3.944 8.26 3.944s-3.743 4.377-7.642 4.377c-.358 0-.692-.032-1.007-.085v1.168c.27.032.548.052.838.052 3.629 0 6.253-1.782 8.794-3.891.421.324 2.146 1.113 2.5 1.46-2.416 1.944-8.046 3.512-11.238 3.512-.307 0-.603-.018-.894-.045V29H33V15H19.208Zm0 4.177v-1.264c.128-.009.257-.015.389-.02 3.596-.108 5.956 2.972 5.956 2.972s-2.549 3.405-5.281 3.405c-.394 0-.746-.062-1.064-.164V20.27c1.4.163 1.682.758 2.524 2.107l1.872-1.518s-1.366-1.724-3.67-1.724c-.25 0-.49.017-.726.041Z"/></g></symbol><symbol id="nvidia_symbol" viewBox="0 0 768 768"><path d="M302.933 298.666v-38.4h12.8c106.667-4.267 174.933 89.6 174.933 89.6s-72.533 102.4-153.6 102.4c-12.8 0-21.333 0-29.866-4.267v-115.2c42.667 4.267 46.934 21.333 72.533 64l55.467-46.933s-38.4-51.2-106.667-51.2h-25.6zm0-127.999v55.467h12.8c145.066-4.267 238.934 123.733 238.934 123.733S443.734 482.134 332.801 482.134c-8.534 0-21.333 0-29.867-4.267V512h25.6c106.667 0 183.467-55.467 256-119.467 12.8 8.534 64 34.133 72.533 42.667C588.8 494.933 422.4 541.867 328.534 541.867h-25.6v55.467h401.067V170.667H302.934zm0 277.333v29.867C204.8 460.8 179.2 358.4 179.2 358.4s46.933-51.2 123.733-59.733V332.8c-42.667-4.267-72.533 34.133-72.533 34.133s17.067 64 72.533 81.067zM128 354.134s59.733-85.334 174.933-93.867V230.4C174.933 238.934 64 349.867 64 349.867s64 183.467 238.933 196.267v-34.133C174.933 499.201 128 354.134 128 354.134z"/></symbol><symbol id="open_in_full" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 21v-8h2v4.6L17.6 5H13V3h8v8h-2V6.4L6.4 19H11v2H3Z"/></symbol><symbol id="open_in_new" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></symbol><symbol id="optimize_all" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 27C21.299 27 26 22.299 26 16.5S21.299 6 15.5 6 5 10.701 5 16.5 9.701 27 15.5 27ZM7.1 16.753l4.063 3.947 1.025-.978-4.063-3.947-1.025.978Zm4.063 0 4.064 3.947 7.623-7.405-1.007-.995-6.616 6.427-3.057-2.97-1.007.996Zm3.039-.978 1.025.978 3.56-3.458-1.025-.977-3.56 3.457Z"/></symbol><symbol id="pan_zoom" viewBox="0 0 24 24"><path d="M16.256 11.498h-1.072V6h-2.976v10.239l-4.007-.85L7 16.619 12.337 22h8.601L22 14.378zM11 6V2H7l1.645 1.645-5 5L2 7v4h4L4.355 9.355l5-5z" fill-rule="evenodd"/></symbol><symbol id="pause" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></symbol><symbol id="perm_scan_wifi" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/></symbol><symbol id="person" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4Zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4Z"/></symbol><symbol id="phone_illustration" viewBox="0 0 116 204"><path clip-rule="evenodd" d="M.267.268h115.466v203.466H.267V.268ZM6 6v192h104V6H6Z"/><path clip-rule="evenodd" d="M36 187.134a2.866 2.866 0 0 1 2.867-2.866h40.266a2.866 2.866 0 1 1 0 5.733H38.867A2.867 2.867 0 0 1 36 187.134ZM76 88h-8c0-5.52-4.48-10-10-10s-10 4.48-10 10h-8v32h36V88Zm-18-6c3.32 0 6 2.68 6 6H52c0-3.32 2.68-6 6-6Zm0 20c-5.52 0-10-4.48-10-10h4c0 3.32 2.68 6 6 6s6-2.68 6-6h4c0 5.52-4.48 10-10 10Z"/></symbol><symbol id="photo_camera" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><circle cx="12" cy="12" r="3"/><path d="M9 2 7.17 4H2v16h20V4h-5.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></symbol><symbol id="picture_in_picture" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 7h-8v6h8V7zm4-4H1v17.98h22V3zm-2 16.01H3V4.98h18v14.03z"/></symbol><symbol id="play_arrow" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8 5v14l11-7L8 5z"/></symbol><symbol id="play_circle_filled" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"/></symbol><symbol id="play_circle_outline" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m10 16.5 6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></symbol><symbol id="power" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M16 7V3h-2v4h-4V3H8v4H6v7.5L9.5 18v3h5v-3l3.5-3.51V7h-2z"/></symbol><symbol id="quality_high" viewBox="0 0 24 24"><path d="M21 3H3v18h18V3ZM11 15H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6Zm7-1a1 1 0 0 1-1 1h-.75v1.5h-1.5V15H14a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v4Zm-3.5-.5h2v-3h-2v3Z"/></symbol><symbol id="quiet_mode" viewBox="0 0 24 24"><path d="M3 3h18v18H3V3Zm9.028 16.792c4.243 0 7.764-3.52 7.764-7.764 0-4.333-3.52-7.764-7.764-7.764-4.333 0-7.764 3.521-7.764 7.764 0 4.334 3.521 7.764 7.764 7.764Zm-5.326-8.486c-.542-.361-.723-1.083-.452-1.896.271-.813.722-1.625.722-1.625 0-.09.181-.09.271 0 .632.903 1.264 1.625 1.896 2.076.09.09.18.09.271.181-.361.542-.632 1.264-.632 1.986-.18 0-.361-.09-.542-.09-.541-.09-.993-.361-1.534-.632Zm3.701-2.077c-.09-.18-.18-.36-.09-.632-.18-.45-.18-.993-.18-1.625s.541-1.173 1.354-1.354c.812-.18 1.715-.18 1.715-.18.18 0 .27.18.18.27-.541.994-.812 1.896-.902 2.709v.361h-.452c-.632 0-1.173.18-1.625.451ZM9.05 13.292c.27.632.722 1.174 1.444 1.535-.09.18-.18.27-.36.451a5.26 5.26 0 0 1-1.355.993c-.451.271-1.264.09-1.806-.541-.541-.632-.993-1.445-.993-1.445-.09-.09-.09-.27.09-.27 1.084 0 1.987-.181 2.71-.542.09-.09.18-.09.27-.18Zm4.604 1.535c.09.09.09.27.09.632.181.451.181.993.181 1.625s-.542 1.174-1.354 1.354c-.813.18-1.715.18-1.715.18-.181 0-.271-.18-.181-.27.542-.993.813-1.896.903-2.709v-.36h.451c.632 0 1.174-.181 1.625-.452Zm4.514-5.056c.09.09 0 .271-.18.271-1.084 0-1.986.18-2.709.542-.09.09-.18.09-.27.18a3.187 3.187 0 0 0-1.355-1.535c.09-.18.18-.27.361-.45a5.26 5.26 0 0 1 1.355-.994c.451-.27 1.264-.09 1.805.542.542.632.993 1.444.993 1.444Zm-.812 2.98c.451.27.722 1.083.451 1.895-.27.813-.722 1.625-.722 1.625 0 .09-.18.09-.27 0-.633-.902-1.265-1.625-1.897-2.076-.09-.09-.18-.09-.27-.18.36-.542.631-1.265.631-1.987.18 0 .361 0 .542.09.542.09.993.362 1.535.632Zm-2.709-.723a2.618 2.618 0 1 1-5.236 0 2.618 2.618 0 0 1 5.236 0Z"/></symbol><symbol id="ram" viewBox="0 0 768 768"><path d="M64 256h640v256H64V256zm0-93.867h64v64H64v-64zm576 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zm-93.867 0h64v64h-64v-64zm-93.866 0h64v64h-64v-64zm-98.134 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zM64 546.134h64v64H64v-64zm576 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zm-93.867 0h64v64h-64v-64zm-93.866 0h64v64h-64v-64zm-98.134 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64z"/></symbol><symbol id="ranking_gold" viewBox="0 0 768 768"><path d="M70.4 560V208L384 32l313.6 176zm627.2-243.2v70.4L230.4 649.6l-64-35.2zm-368 390.4L384 736l313.6-176v-60.8z"/></symbol><symbol id="ranking_silver" viewBox="0 0 768 768"><path d="M697.6 387.2V208L384 32 70.4 208v352l160 89.6zm-368 320L384 736l313.6-176v-60.8z"/></symbol><symbol id="ranking_titanium" viewBox="0 0 768 768"><path d="M697.6 316.8v70.4L230.4 649.6l-64-35.2zm-368 390.4L384 736l313.6-176v-60.8zm368-499.2L384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M262.4 454.4V313.6L384 246.4l121.6 67.2-243.2 140.8z"/></symbol><symbol id="ranking_token" viewBox="0 0 768 768"><path d="m288 438.4 96 54.4 96-54.4V329.6l-96-54.4-96 54.4v108.8z"/><path d="M697.6 208 384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M70.4 560 384 736l313.6-176V208l-80 44.8v262.4L384 646.4 150.4 515.2z"/></symbol><symbol id="ranking_xp" viewBox="0 0 768 768"><path d="M697.6 208 384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M70.4 560 384 736l313.6-176V208l-80 44.8v262.4L384 646.4 150.4 515.2z"/><path d="M345.6 278.4h44.8l-67.2 102.4 70.4 112h-51.2l-44.8-73.6-48 73.6h-44.8L275.2 384l-64-105.6h51.2l41.6 67.2 41.6-67.2zM572.8 368c0 19.2-16 35.2-35.2 35.2h-80v86.4H416V278.4h121.6c19.2 0 35.2 16 35.2 35.2V368zm-115.2-3.2h64c6.4 0 9.6-3.2 9.6-9.6v-28.8c0-6.4-3.2-9.6-9.6-9.6h-64v48z"/></symbol><symbol id="readiness_score" viewBox="0 -960 960 960"><path d="M295-119q-36-1-68.5-18.5T165-189q-40-48-62.5-114.5T80-440q0-83 31.5-156T197-723q54-54 127-85.5T480-840q83 0 156 32t127 87q54 55 85.5 129T880-433q0 77-25 144t-71 113q-28 28-59 42.5T662-119q-18 0-36-4.5T590-137l-56-28q-12-6-25.5-9t-28.5-3q-15 0-28.5 3t-25.5 9l-56 28q-19 10-37.5 14.5T295-119Zm2-80q9 0 18.5-2t18.5-7l56-28q21-11 43.5-16t45.5-5q23 0 46 5t44 16l57 28q9 5 18 7t18 2q19 0 36-10t34-30q32-38 50-91t18-109q0-134-93-227.5T480-760q-134 0-227 94t-93 228q0 57 18.5 111t51.5 91q17 20 33 28.5t34 8.5Zm183-281Zm0 120q33 0 56.5-23.5T560-440q0-8-1.5-16t-4.5-16l50-67q10 13 17.5 27.5T634-480h82q-15-88-81.5-144T480-680q-88 0-155 56.5T244-480h82q14-54 57-87t97-33q17 0 32 3t29 9l-51 69q-2 0-5-.5t-5-.5q-33 0-56.5 23.5T400-440q0 33 23.5 56.5T480-360Z"/></symbol><symbol id="record" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.4 3 3z"/><path d="m23.3 11.9-2.3-.6C20.6 6.7 16.7 3 12 3c-5 0-9 4-9 9 0 4.4 3.1 8 7.2 8.8.3.7 1 1.2 1.8 1.2 1.1 0 2-.9 2-2s-.9-2-2-2c-.7 0-1.2.3-1.6.8C7.3 18.1 5 15.4 5 12c0-3.9 3.1-7 7-7s7 3.1 7 7c0 1-.2 2-.6 2.8l4.9-2.9z"/></symbol><symbol id="record_disabled" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.76 5.42 8.24 3.9a8.89 8.89 0 0 1 3.83-.86c4.69 0 8.58 3.69 8.98 8.28l2.28.59-4.45 2.63-.23-.23c.26-.7.4-1.5.4-2.3 0-3.89-3.09-6.98-6.98-6.98-.82 0-1.59.14-2.31.39Zm2.31 9.59c-1.7 0-2.99-1.3-2.99-2.99 0-.47.1-.91.28-1.3L6.48 7.84a6.928 6.928 0 0 0-1.39 4.18c0 3.39 2.3 6.08 5.39 6.78.4-.5.9-.8 1.6-.8 1.1 0 2 .9 2 2s-.9 2-2 2c-.8 0-1.5-.5-1.8-1.2a8.903 8.903 0 0 1-7.18-8.78c0-2.13.73-4.08 1.95-5.61L3 4.36l1.42-1.42 16.71 16.71-1.42 1.42-6.34-6.34c-.39.18-.83.28-1.3.28Z"/></symbol><symbol id="recordings" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8.8 18.2C6.5 17 5 14.7 5 12c0-3.9 3.1-7 7-7l1.1.1L9 1v2.5C5.6 4.8 3 8.1 3 12c0 4.8 3.8 8.7 8.5 9l-2.7-2.8z"/><path d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M15.4 5.8c2.2 1.2 3.8 3.5 3.8 6.2 0 3.9-3.1 7-7 7l-1.2-.1 4.1 4.1v-2.5c3.5-1.2 6-4.6 6-8.5 0-4.8-3.8-8.7-8.5-9l2.8 2.8z"/><path d="M12 6c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm0 11c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5z"/></symbol><symbol id="remote" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41a5.022 5.022 0 0 1 7.08 0l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"/></symbol><symbol id="remove_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/></symbol><symbol id="replay" viewBox="0 0 24 24"><path d="M8.8 18.2C6.5 17 5 14.7 5 12c0-3.9 3.1-7 7-7l1.1.1L9 1v2.5C5.6 4.8 3 8.1 3 12c0 4.8 3.8 8.7 8.5 9l-2.7-2.8z"/><path d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M15.4 5.8c2.2 1.2 3.8 3.5 3.8 6.2 0 3.9-3.1 7-7 7l-1.2-.1 4.1 4.1v-2.5c3.5-1.2 6-4.6 6-8.5 0-4.8-3.8-8.7-8.5-9l2.8 2.8z"/></symbol><symbol id="replay_disabled" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 12.02c0-3.29-2.29-6.05-5.35-6.8l-2.17-2.17c.17-.01.34-.03.51-.03 4.96 0 8.99 4.02 8.99 8.99 0 1.38-.31 2.69-.87 3.86l-1.52-1.52c.26-.73.41-1.51.41-2.33Zm-9.34-6.6L7.99 3.75V.98l4 4 .03.03h-.03c-.82 0-1.6.15-2.33.41Zm11.37 14.23-1.44 1.42-2.02-2.02c-.51.41-1.06.76-1.65 1.05v2.89l-4-4h.29c1.48-.05 2.82-.57 3.93-1.39l-2.88-2.88a3.039 3.039 0 0 1-4.05-4.05L6.38 7.84a6.973 6.973 0 0 0-1.4 4.17c0 3.29 2.28 6.05 5.34 6.8l2.17 2.17c-.17.01-.33.03-.5.03-4.96 0-8.99-4.02-8.99-8.99 0-2.12.73-4.06 1.95-5.6L2.89 4.36l1.42-1.42 16.72 16.71Z"/></symbol><symbol id="reset" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13 3a9 9 0 0 0-9 9H1l4 3.99L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42A8.954 8.954 0 0 0 13 21a9 9 0 0 0 0-18Z"/></symbol><symbol id="retry" viewBox="0 0 24 24"><path d="M12 4V0l5 5-5 5V6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6h2c0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8"/></symbol><symbol id="rewards" viewBox="0 0 768 768"><path d="M448 384v251.733l-64-64-64 64V384H96v320h576V384zm42.666-128C539.732 249.6 576 211.2 576 160c0-53.333-42.667-96-96-96-49.067 0-89.6 38.4-96 85.334-6.4-49.066-49.067-85.333-96-85.333-55.467 0-96 42.667-96 96 0 49.066 38.4 89.6 87.466 96H63.999v96h256v-96h128v96h256v-96H490.666zM320 192h-32c-19.2 0-32-14.933-32-32s17.067-32 32-32c19.2 0 32 17.067 32 32v32zm123.733 0v-32c0-19.2 17.067-32 32-32 19.2 0 32 17.067 32 32s-14.933 32-32 32h-32z"/></symbol><symbol id="save" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 3H3v18h18V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/></symbol><symbol id="score_graph_L0" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Z" fill="#FE1B0B"/></symbol><symbol id="score_graph_L1" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.046 11.203L13.18 13.18Z" fill="#FFB43E"/></symbol><symbol id="score_graph_L2" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0Z" fill="#A3DC2B"/></symbol><symbol id="score_graph_L3" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M76.82 13.18A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#76B900"/></symbol><symbol id="search" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></symbol><symbol id="send" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"/></symbol><symbol id="settings" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m19.44 12.99-.01.02c.04-.33.08-.67.08-1.01 0-.34-.03-.66-.07-.99l.01.02 2.44-1.92-2.43-4.22-2.87 1.16.01.01c-.52-.4-1.09-.74-1.71-1h.01L14.44 2H9.57l-.44 3.07h.01c-.62.26-1.19.6-1.71 1l.01-.01-2.88-1.17-2.44 4.22 2.44 1.92.01-.02c-.04.33-.07.65-.07.99 0 .34.03.68.08 1.01l-.01-.02-2.1 1.65-.33.26 2.43 4.2 2.88-1.15-.02-.04c.53.41 1.1.75 1.73 1.01h-.03L9.58 22h4.85s.03-.18.06-.42l.38-2.65h-.01c.62-.26 1.2-.6 1.73-1.01l-.02.04 2.88 1.15 2.43-4.2s-.14-.12-.33-.26l-2.11-1.66zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/></symbol><symbol id="share" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"/></symbol><symbol id="shield_tv" viewBox="0 0 768 768"><path d="M533.832 482.28 223.68 292.032 45.912 592.416h422.736zM723.84 161.232H56.448l489.624 300.312zM203.16 279.456 31.872 174.384v394.464zm363.456 194.688 169.872 104.184v-391.2zm-12.264 20.712-57.696 97.536H713.4l-159.048-97.536zm-6.12 73.392V537.72h39.456v30.528h-39.456z"/></symbol><symbol id="shopping" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 6h-4c0-2.76-2.24-5-5-5S7 3.24 7 6H3v16h18V6zm-9-3c1.66 0 3 1.34 3 3H9c0-1.66 1.34-3 3-3zm0 10c-2.76 0-5-2.24-5-5h2c0 1.66 1.34 3 3 3s3-1.34 3-3h2c0 2.76-2.24 5-5 5z"/></symbol><symbol id="signal_wifi_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.32 0-2.55.14-3.69.38L18.43 13.5 23.64 7zM3.41 1.31 2 2.72l2.05 2.05C1.91 5.76.59 6.82.36 7L12 21.5l3.91-4.87 3.32 3.32 1.41-1.41L3.41 1.31z"/></symbol><symbol id="social_share" viewBox="0 0 16 16"><path d="M8.5 8.068c-.38 0-.72.15-.98.387L3.955 6.37A1.65 1.65 0 0 0 4 6.021c0-.121-.02-.237-.045-.352L7.48 3.605c.27.251.625.407 1.02.407.83 0 1.5-.673 1.5-1.506a1.501 1.501 0 1 0-3 0c0 .12.02.236.045.351L3.52 4.921a1.49 1.49 0 0 0-1.02-.407c-.83 0-1.5.673-1.5 1.506s.67 1.506 1.5 1.506c.395 0 .75-.156 1.02-.407l3.56 2.089a1.42 1.42 0 0 0-.04.326c0 .808.655 1.466 1.46 1.466.805 0 1.46-.658 1.46-1.466 0-.808-.655-1.466-1.46-1.466Z"/></symbol><symbol id="sort" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/></symbol><symbol id="space_bar" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M18 9v4H6V9H4v6h16V9z"/></symbol><symbol id="star_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"/></symbol><symbol id="star_filled" viewBox="0 0 24 24"><path d="m22 9.2-7.2-.6L12 2 9.2 8.6 2 9.2 7.5 14l-1.6 7 6.2-3.7 6.2 3.7-1.6-7L22 9.2z"/></symbol><symbol id="steam_logo_icon" viewBox="0 0 93 93"><path fill-rule="evenodd" d="M46.422 1C71.594 1 92 21.37 92 46.5 92 71.629 71.594 92 46.422 92 25.556 92 7.979 78 2.569 58.9l17.471 7.21c1.184 5.893 6.405 10.343 12.65 10.343 7.114 0 12.901-5.777 12.901-12.88 0-.203-.006-.408-.014-.61l15.494-11.037c.13.004.26.007.39.007 9.478 0 17.19-7.7 17.19-17.16 0-9.462-7.712-17.16-17.19-17.16-9.479 0-17.19 7.698-17.19 17.16l.003.222-10.865 15.719a12.834 12.834 0 0 0-7.98 2.22L1 42.85C2.864 19.43 22.479 1 46.422 1ZM29.263 54.515a9.665 9.665 0 0 1 7.136.108 9.612 9.612 0 0 1 5.229 5.243 9.585 9.585 0 0 1-.015 7.396c-2.054 4.92-7.735 7.255-12.66 5.206a9.639 9.639 0 0 1-4.99-4.737l5.6 2.309c3.634 1.512 7.808-.204 9.322-3.831a7.112 7.112 0 0 0-3.838-9.306Zm32.198-31.177c6.316 0 11.454 5.13 11.454 11.435 0 6.304-5.138 11.433-11.454 11.433-6.315 0-11.454-5.13-11.454-11.433 0-6.304 5.139-11.435 11.454-11.435Zm.02 2.827c-4.752 0-8.605 3.844-8.605 8.588 0 4.743 3.853 8.588 8.604 8.588 4.752 0 8.604-3.845 8.604-8.588 0-4.744-3.852-8.588-8.604-8.588Z"/></symbol><symbol id="stop" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 6h12v12H6V6z"/></symbol><symbol id="storage" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/></symbol><symbol id="sword" viewBox="0 0 24 24"><path d="m11.05 15.97 10.23-9.55L22 2l-4.42.72-9.55 10.23-1.6-1.59-1.31 1.31 6.21 6.21 1.31-1.31zm-8.04 5.02c-.83-.83-.83-2.19 0-3.02l2.65-2.65 3.02 3.02-2.65 2.65c-.83.83-2.18.83-3.02 0Z"/></symbol><symbol id="sync" viewBox="0 0 24 24"><path fill="none" d="M.01 0h24v24h-24V0z"/><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"/></symbol><symbol id="tablet" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M21 0H3v24h18V0zm-7 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/></symbol><symbol id="tag" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22.83 12.99 11.83 2H2v9.83l10.99 10.99 9.84-9.83zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"/></symbol><symbol id="text_snippet" viewBox="0 -960 960 960"><path d="M200-200h560v-367L567-760H200v560Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h400l240 240v400q0 33-23.5 56.5T760-120H200Zm80-160h400v-80H280v80Zm0-160h400v-80H280v80Zm0-160h280v-80H280v80Zm-80 400v-560 560Z"/></symbol><symbol id="thick_arrow_dash_up" viewBox="0 0 24 24"><path d="M7.027 14.513H0L12.009 0 24 14.513h-6.995v3.44H7.027Zm-.001 5.803h9.978v3.495H7.026Z" fill="#fff"/></symbol><symbol id="thick_arrow_up" viewBox="0 0 24 24"><path fill="#fff" d="M7.027 14.513H0L12.009 0 24 14.513h-6.995V24H7.027v-9.487z"/></symbol><symbol id="time" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8Zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7Z"/></symbol><symbol id="tune" viewBox="0 0 24 24"><path d="M3 17v2h6v-2H3ZM3 5v2h10V5H3Zm10 16v-2h8v-2h-8v-2h-2v6h2ZM7 9v2H3v2h4v2h2V9H7Zm14 4v-2H11v2h10Zm-6-4h2V7h4V5h-4V3h-2v6Z"/></symbol><symbol id="tv_illustration" viewBox="0 0 238 163"><path clip-rule="evenodd" d="M.267.268h237.466v147.466H.267V.268ZM6 6v136h226V6H6Zm61 151.268h106v5.733H67v-5.733Z"/><path clip-rule="evenodd" d="M135.8 66.002c-.4-2-2.8-4-4.8-4 0-1.2-.8-2-2-2h-4c-1.2 0-2 .8-2 2h-8c0-1-1-2-2-2h-4c-1.2 0-2 .8-2 2-2 0-4.4 1.8-4.8 4-.4 2-3.2 14-3.2 18 0 2 2 4 4 4s4-2 6-4 2-2.2 4-4c2-2 2-2 4-2h4c2 0 2 0 4 2l4 4c2 2 4 4 6 4s4-2 4-4c0-3.8-2.8-16-3.2-18Zm-20.8 5.4h-2.6v2.6h-2.8v-2.6H107v-2.8h2.6v-2.6h2.8v2.6h2.6v2.8Zm12 2.6c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4Z"/></symbol><symbol id="upload" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 12V5H5v7H3V3h18v9h-2Zm-6-.67 2.59 2.58L17 12.5l-5-5-5 5 1.41 1.41L11 11.33V21h2v-9.67Z"/></symbol><symbol id="video" viewBox="0 0 24 24"><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H2v16h20V4z"/></symbol><symbol id="video_off" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M28 22.147V8.667L22.667 14V8h-8.814L28 22.147ZM4.547 2.48l-1.88 1.88L6.307 8H4v16h18.307l4 4 1.88-1.88L4.547 2.48Z"/></symbol><symbol id="videocam" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 10.5V6H3v12h14v-4.5l4 4v-11l-4 4z"/></symbol><symbol id="videocam_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 16.61V6.5l-4 4V6h-6.61zM3.41 1.86 2 3.27 4.73 6H3v12h13.73l3 3 1.41-1.41z"/></symbol><symbol id="view_detailed" viewBox="0 0 768 768"><path d="M320 160v192h350.016V160zM128 576h160.992V160H128zm192 0h350.016V384H320v192z"/></symbol><symbol id="view_grid" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/></symbol><symbol id="view_summary" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/></symbol><symbol id="volume" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></symbol><symbol id="volume_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4.34 2.93 2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06a8.94 8.94 0 0 0 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8-1.88 1.88L12 7.76zm4.5 8A4.5 4.5 0 0 0 14 7.97v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"/></symbol><symbol id="vr" viewBox="0 0 24 24"><path d="M3 8.5v5l-1-1v-3l1-1zm18 0v5l1-1v-3l-1-1zm-3-1.6c-1.3-.3-2-.4-6-.4-3 0-4.7.1-6 .4-1 .3-2 .6-2 1.6v6c0 1 3 3 4 3 2 0 3-1 4-1s2 1 4 1c1 0 4-2 4-3v-6c0-1-1-1.3-2-1.6zm-9.5 6.6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm7 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="warning" viewBox="0 0 768 768"><path d="M416 448h-64V320h64zm0 128h-64v-64h64zM32 672h704L384 64 32 672z"/></symbol><symbol id="wifi" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8 3 3 3-3a4.237 4.237 0 0 0-6 0zm-4-4 2 2a7.074 7.074 0 0 1 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"/></symbol><symbol id="wrench" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12.09 2.91C10.08.9 7.07.49 4.65 1.67l4.34 4.34-3 3-4.34-4.34C.48 7.1.89 10.09 2.9 12.1a6.507 6.507 0 0 0 6.89 1.48l9.82 9.82 3.71-3.71-9.78-9.79c.92-2.34.44-5.1-1.45-6.99z"/></symbol><symbol id="wrench_circle" viewBox="0 0 32 32"><path d="m12.7 14.566-3.133-3.133a5.704 5.704 0 0 0-.417 1.1c-.1.378-.15.756-.15 1.133 0 1.267.45 2.35 1.35 3.251.9.9 1.983 1.35 3.25 1.35A4.412 4.412 0 0 0 15.166 18l5.034 5 2.8-2.8-5-5.034c.089-.2.155-.428.2-.684.044-.255.067-.549.067-.882 0-1.267-.45-2.35-1.35-3.25-.9-.9-1.984-1.35-3.25-1.35-.378 0-.756.05-1.134.15-.378.1-.744.239-1.1.416l3.133 3.134-1.866 1.867ZM16 29.334c-1.845 0-3.578-.35-5.2-1.05a13.456 13.456 0 0 1-4.234-2.85c-1.2-1.2-2.15-2.61-2.849-4.233-.7-1.622-1.05-3.356-1.05-5.2 0-1.845.35-3.578 1.05-5.2a13.47 13.47 0 0 1 2.85-4.234c1.2-1.2 2.61-2.15 4.233-2.85 1.622-.7 3.355-1.05 5.2-1.05 1.844 0 3.578.35 5.2 1.05 1.622.7 3.033 1.65 4.233 2.85a13.47 13.47 0 0 1 2.85 4.234c.7 1.622 1.05 3.355 1.05 5.2 0 1.844-.35 3.578-1.05 5.2a13.456 13.456 0 0 1-2.85 4.233c-1.2 1.2-2.61 2.15-4.233 2.85-1.622.7-3.356 1.05-5.2 1.05Z" fill="currentColor"/></symbol></svg>')),Promise.resolve()}(kt,Ot)},deps:[v.tp,S.up],multi:!0},Ls={showDelay:0,hideDelay:0,touchendHideDelay:1500,disableTooltipInteractivity:!0};let Xr=(()=>{var kt;class Ot{}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)},kt.\u0275mod=p.$C({type:kt}),kt.\u0275inj=p.G2t({providers:[ts,{provide:_.di,useValue:{...new _.ru,restoreFocus:!1}},{provide:P.Ox,useValue:{...new P.J3,restoreFocus:!1}},{provide:Tn.sM,useValue:Ls}],imports:[n.MD,m.YF,l.q1,ro,y.h,g,O.w,c.iI,oi.Cn,T.E9]}),Ot})();p.wjB(L.u,[n.YU,n.Sq,n.bT,n.T3,n.B3,yr.DJ,yr.BO,yr.sA,$r.PW,$r.eI,F.BC,F.vS,ko.ig,k.LG,R.iV,v.An,Y.VT,Y._g,G.NZ,K.vR,c.Wk,V.R,V.$,D.tG,po.r,Os.D,es.N,li,tn.e,vn.Aq],[y.D9]),p.wjB(A.G,[n.YU,n.bT,n.T3,yr.DJ,yr.BO,yr.sA,yr.R$,yr.UI,$r.PW,k.LG,R.iV,h,V.R,po.r,Os.D,es.N,tn.e,vn.Aq],[y.D9]),p.wjB(x.L,[n.Sq,n.bT,n.T3,yr.DJ,yr.BO,yr.sA,yr.UI,k.LG,R.iV,v.An,h,V.R,po.r,Os.D,es.N,tn.e,or],[y.D9]);var Hs=d(11013);d(5428),d(26875);var ys=d(73318),To=(d(32727),d(3567)),ss=d(21684);d(13458),d(69225),d(68868),d(94329);let St=(()=>{var kt;class Ot{get focusableElement(){return this._focusableElement=this.spatialNavigationService.isFocusable(this._elementRef.nativeElement)?this._elementRef.nativeElement:this.focusManager.getFirstFocusableChild(this.elementRef.nativeElement,this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService)),this._focusableElement}get elementRef(){return this._elementRef}constructor(ut,Pn,Qn){this.focusManager=Pn,this.spatialNavigationService=Qn,this._focusableElement=null,this._elementRef=ut}focus(ut){this.focusManager.navigateTo(this.focusableElement,ut)}}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)(p.rXU(p.aKT),p.rXU(ss.c),p.rXU(Bs.E))},kt.\u0275dir=p.FsC({type:kt,selectors:[["","nvFastSpatialNavigationItem",""]]}),Ot})();var Ve=d(80583),qe=d(36877),hn=d(8619),hi=d(4208);let sr=(()=>{var kt;class Ot{get enableFastNavigation(){return this._enalbeFastNavigation}set enableFastNavigation(ut){this._enalbeFastNavigation=(0,Ci.he)(ut)}get orientation(){return this._orientation}set orientation(ut){this._orientation=ut}get containFocus(){return this._containFocus}set containFocus(ut){this._containFocus=Array.isArray(ut)?ut:(0,Ci.he)(ut)}get isRTL(){return this._isRTL}set isRTL(ut){this._isRTL=(0,Ci.he)(ut)}constructor(ut,Pn,Qn){this.container=ut,this.spatialNavigationService=Pn,this.ngZone=Qn,this._enalbeFastNavigation=!0,this._orientation="horizontal",this._containFocus=!1,this._isRTL=!1,this.destroy$=new Ve.B7}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.ngZone.runOutsideAngular(()=>{(0,qe.R)(this.container.nativeElement,"keydown").pipe((0,hn.p)(this.checkDirection.bind(this)),(0,hi.Q)(this.destroy$)).subscribe(this.onKeydown.bind(this))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkDirection(ut){return"horizontal"===this.orientation?"ArrowLeft"===ut.key||"ArrowRight"===ut.key:"vertical"===this.orientation&&("ArrowUp"===ut.key||"ArrowDown"===ut.key)}getOffset(ut){let Pn=0;return"horizontal"===this.orientation?(Pn="ArrowLeft"===ut?-1:1,Pn*=this.isRTL?-1:1):"vertical"===this.orientation&&(Pn="ArrowDown"===ut?1:-1),Pn}onKeydown(ut){if(!this.enableFastNavigation)return;const Pn=ut.key,Qn=this.getOffset(Pn),Ui=this.getCurrentFocusedIndex();if(Ui<0)return;const Ar=Ui+Qn,Or=(0,ys.G2)(Pn);let pr=!1;!this.isOutofBoundary(Ar)&&this.items.get(Ar).focusableElement?(this.items.get(Ar).focus(Or),pr=!0):pr=this.spatialNavigationService.shouldContainFocus(Or,this.containFocus),pr&&(ut.preventDefault(),ut.stopPropagation())}isOutofBoundary(ut){return ut<0||ut>=this.items.length}getCurrentFocusedIndex(){let ut=document.activeElement;for(;ut&&ut!==this.container.nativeElement;){if(ut.hasAttribute("nvFastSpatialNavigationItem")){const Pn=this.items.toArray().findIndex(Qn=>Qn?.elementRef?.nativeElement===ut);if(-1!==Pn)return Pn}ut=ut.parentElement}return-1}}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)(p.rXU(p.aKT),p.rXU(Bs.E),p.rXU(p.SKi))},kt.\u0275dir=p.FsC({type:kt,selectors:[["","nvFast1DSpatialNavigation",""]],contentQueries:function(ut,Pn,Qn){if(1&ut&&p.wni(Qn,St,5),2&ut){let Ui;p.mGM(Ui=p.lsd())&&(Pn.items=Ui)}},inputs:{enableFastNavigation:"enableFastNavigation",orientation:"orientation",containFocus:"containFocus",isRTL:"isRTL"}}),Ot})();d(80362);var Yl=d(72818),fc=d(24841);let _c=(()=>{var kt;class Ot{constructor(ut,Pn,Qn,Ui){this.matDialog=ut,this.matBottomSheet=Pn,this.focusManager=Qn,this.tvMode=!!Ui.tvMode}open(ut,Pn){ut.autoFocus=!1;const Qn=()=>Pn?.preferredDialogType===Yl.QO.BottomSheet?A.G.open(this.matBottomSheet,ut,this.tvMode):this.tvMode?ut.data.checkbox||ut.data.radioButtonOptions||Pn?.preferredDialogType===Yl.QO.ThreeQuarterSheet?x.L.open(this.matDialog,ut):A.G.open(this.matBottomSheet,ut,this.tvMode):L.u.open(this.matDialog,ut);return Pn?.disableFocusRestore?new fc.f(Qn()):this.focusManager.restoreFocusAfterClosed(()=>new fc.f(Qn()),Pn)}closeAll(){this.matDialog.closeAll(),this.matBottomSheet.dismiss()}}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)(p.KVO(_.bZ),p.KVO(P.VK),p.KVO(ss.c),p.KVO(Hs.X,8))},kt.\u0275prov=p.jDH({token:kt,factory:kt.\u0275fac,providedIn:"root"}),Ot})();var Ml=d(13090);d(44968);var Ic=d(62293);const na=480,ul={MaxS1Width:479,MaxS2Width:719,MaxS3Width:959};var zl=d(25369);const He=["selectorCardElements"],Lt=kt=>({expanded:kt}),Kn=kt=>({visibility:kt});function ft(kt,Ot){if(1&kt&&(p.j41(0,"span",8),p.EFF(1),p.nI1(2,"translate"),p.k0s()),2&kt){const pt=p.XpG();p.R7$(),p.JRh(p.i5U(2,1,pt.data.subtitle.text,null==pt.data.subtitle?null:pt.data.subtitle.placeholders))}}function Gn(kt,Ot){1&kt&&p.eu8(0)}function bi(kt,Ot){if(1&kt&&p.nrm(0,"img",16),2&kt){const pt=p.XpG(2);p.Y8G("src",pt.choiceChip.choiceChipIcon.text,p.B4B)}}function lr(kt,Ot){if(1&kt&&p.nrm(0,"qrcode",25),2&kt){const pt=p.XpG().$implicit,ut=p.XpG(3);p.Y8G("qrdata",pt.stepImage.url)("width",ut.qrCodeWidth)("errorCorrectionLevel","M")}}function Ur(kt,Ot){if(1&kt&&p.nrm(0,"mat-icon",26),2&kt){const pt=p.XpG().$implicit;p.Y8G("svgIcon",pt.stepImage.matIcon)}}function ns(kt,Ot){if(1&kt&&(p.j41(0,"div",19)(1,"div",20),p.DNE(2,lr,1,3,"qrcode",21)(3,Ur,1,1,"mat-icon",22),p.k0s(),p.j41(4,"span",23),p.EFF(5),p.nI1(6,"translate"),p.k0s(),p.j41(7,"span",24),p.EFF(8),p.nI1(9,"translate"),p.k0s()()),2&kt){const pt=Ot.$implicit;p.R7$(2),p.Y8G("ngIf",null==pt||null==pt.stepImage?null:pt.stepImage.url),p.R7$(),p.Y8G("ngIf",null==pt||null==pt.stepImage?null:pt.stepImage.matIcon),p.R7$(2),p.JRh(p.bMT(6,4,pt.stepTitle.text)),p.R7$(3),p.JRh(p.bMT(9,6,pt.stepDescription.text))}}function No(kt,Ot){if(1&kt&&(p.j41(0,"div",17),p.DNE(1,ns,10,8,"div",18),p.k0s()),2&kt){const pt=p.XpG(2);p.R7$(),p.Y8G("ngForOf",pt.choiceChip.choiceChipContent)}}function ds(kt,Ot){if(1&kt){const pt=p.RV6();p.j41(0,"button",27),p.bIt("click",function(){const Pn=p.eBV(pt).$implicit,Qn=p.XpG(2);return p.Njj(Qn.onButtonClick(Pn))}),p.EFF(1),p.nI1(2,"translate"),p.k0s()}if(2&kt){const pt=Ot.$implicit;p.Y8G("disabled",null==pt?null:pt.isDisabled),p.R7$(),p.SpI(" ",p.bMT(2,2,pt.text)," ")}}function Yo(kt,Ot){if(1&kt&&(p.j41(0,"span",28),p.EFF(1),p.nI1(2,"translate"),p.k0s()),2&kt){const pt=p.XpG(2);p.R7$(),p.JRh(p.bMT(2,1,pt.choiceChip.choiceChipStatusText.title.text))}}function Go(kt,Ot){if(1&kt&&(p.j41(0,"div",9)(1,"div",10),p.DNE(2,bi,1,1,"img",11),p.j41(3,"span"),p.EFF(4),p.nI1(5,"translate"),p.k0s()(),p.DNE(6,No,2,1,"div",12),p.j41(7,"div",13),p.DNE(8,ds,3,4,"button",14),p.k0s(),p.DNE(9,Yo,3,3,"span",15),p.k0s()),2&kt){const pt=p.XpG();p.R7$(2),p.Y8G("ngIf",null==pt.choiceChip.choiceChipIcon?null:pt.choiceChip.choiceChipIcon.text),p.R7$(2),p.JRh(pt.choiceChip.choiceChipTitle.translated?pt.choiceChip.choiceChipTitle.text:p.bMT(5,5,pt.choiceChip.choiceChipTitle.text)),p.R7$(2),p.Y8G("ngIf",pt.choiceChip.choiceChipContent),p.R7$(2),p.Y8G("ngForOf",null==pt.choiceChip?null:pt.choiceChip.choiceChipButtons),p.R7$(),p.Y8G("ngIf",null==pt.choiceChip||null==pt.choiceChip.choiceChipStatusText?null:pt.choiceChip.choiceChipStatusText.title)}}function Ds(kt,Ot){if(1&kt&&(p.j41(0,"span",41),p.EFF(1),p.nI1(2,"translate"),p.k0s()),2&kt){const pt=p.XpG().$implicit;p.R7$(),p.JRh(p.bMT(2,1,pt.secondaryInfo.text))}}function Qo(kt,Ot){if(1&kt&&p.nrm(0,"mat-icon",42),2&kt){const pt=p.XpG().$implicit;p.Y8G("svgIcon",pt.secondaryInfo.matIcon)}}function Vo(kt,Ot){if(1&kt&&(p.j41(0,"span",43),p.EFF(1),p.nI1(2,"translate"),p.k0s()),2&kt){const pt=p.XpG().$implicit;p.R7$(),p.JRh(p.bMT(2,1,pt.selectorCardStatusText.text))}}function Ir(kt,Ot){if(1&kt){const pt=p.RV6();p.j41(0,"button",46),p.bIt("click",function(){const Pn=p.eBV(pt).$implicit,Qn=p.XpG(4);return p.Njj(Qn.onButtonClick(Pn))}),p.EFF(1),p.nI1(2,"translate"),p.k0s()}if(2&kt){const pt=Ot.$implicit;p.Y8G("disabled",null==pt?null:pt.isDisabled),p.R7$(),p.SpI(" ",p.bMT(2,2,pt.text)," ")}}function fo(kt,Ot){if(1&kt&&(p.j41(0,"div",44),p.DNE(1,Ir,3,4,"button",45),p.k0s()),2&kt){const pt=p.XpG().$implicit;p.R7$(),p.Y8G("ngForOf",pt.selectorCardButtons)}}function Es(kt,Ot){if(1&kt){const pt=p.RV6();p.j41(0,"div",31,2),p.bIt("focus",function(){const Pn=p.eBV(pt).index,Qn=p.XpG(2);return p.Njj(Qn.expandSelectorCard(Pn))})("mousemove",function(){const Pn=p.eBV(pt).index,Qn=p.XpG(2);return p.Njj(Qn.expandSelectorCard(Pn))}),p.j41(2,"div",32),p.nrm(3,"img",33),p.j41(4,"span",34),p.EFF(5),p.k0s()(),p.j41(6,"div",35)(7,"div",36),p.DNE(8,Ds,3,3,"span",37)(9,Qo,1,1,"mat-icon",38),p.k0s(),p.DNE(10,Vo,3,3,"span",39),p.k0s(),p.DNE(11,fo,2,1,"div",40),p.k0s()}if(2&kt){const pt=Ot.$implicit,ut=Ot.index,Pn=p.XpG(2);p.Y8G("ngClass",p.eq3(8,Lt,ut===Pn.expandedSelectorCardIndex)),p.R7$(3),p.Y8G("ngStyle",p.eq3(10,Kn,null!=pt.selectorCardIcon&&pt.selectorCardIcon.url?"visible":"hidden"))("src",pt.selectorCardIcon.url,p.B4B),p.R7$(2),p.JRh(pt.selectorCardIcon.caption),p.R7$(3),p.Y8G("ngIf",null==pt||null==pt.secondaryInfo?null:pt.secondaryInfo.text),p.R7$(),p.Y8G("ngIf",null==pt||null==pt.secondaryInfo?null:pt.secondaryInfo.matIcon),p.R7$(),p.Y8G("ngIf",null==pt?null:pt.selectorCardStatusText),p.R7$(),p.Y8G("ngIf",null==pt?null:pt.selectorCardButtons)}}function Ea(kt,Ot){if(1&kt&&(p.j41(0,"div",29),p.DNE(1,Es,12,12,"div",30),p.k0s()),2&kt){const pt=p.XpG();p.Y8G("isRTL",pt.isRTL),p.R7$(),p.Y8G("ngForOf",pt.data.content)}}let Vs=(()=>{var kt;class Ot extends zl.D{expandSelectorCard(ut,Pn=!0){Pn&&ut===this.expandedSelectorCardIndex&&this.selectorCardElements.get(this.expandedSelectorCardIndex)?.nativeElement?.contains(document.activeElement)||(this.expandedSelectorCardIndex=ut,setTimeout(()=>{this.focusManager.focusChild(this.selectorCardElements.get(this.expandedSelectorCardIndex).nativeElement,"initial")}))}constructor(ut,Pn,Qn,Ui,Ar,Or){super(Pn,Qn,ut,Ui),this.focusManager=Ar,this.localeService=Or,this.buttonClick=new p.bkB,this.qrCodeWidth=200,this.isRTL=!1,this.expandedSelectorCardIndex=0,this.data=ut.get(_.Vh,null),this.isRTL=this.localeService.isRTLLayoutEnabled,this.data.content&&this.setContentData(this.data.content)}onButtonClick(ut){this.buttonClick.emit(ut)}setContentData(ut){ut.choiceChipTitle?this.choiceChip=ut:this.selectorCards=ut}ngAfterViewInit(){this.selectorCardElements.length>0&&this.expandSelectorCard(this.expandedSelectorCardIndex,!1)}}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)(p.rXU(p.zZn),p.rXU(_.CP,8),p.rXU(P.eN,8),p.rXU(p.SKi),p.rXU(ss.c),p.rXU(To.iH))},kt.\u0275cmp=p.VBU({type:kt,selectors:[["nv-hig-fullpage-dialog"]],viewQuery:function(ut,Pn){if(1&ut&&p.GBs(He,5),2&ut){let Qn;p.mGM(Qn=p.lsd())&&(Pn.selectorCardElements=Qn)}},inputs:{data:"data"},outputs:{buttonClick:"buttonClick"},features:[p.Vt3],decls:13,vars:11,consts:[["choiceChipTemplate",""],["selectorCardsTemplate",""],["selectorCardElements",""],["nvHigBackgroundImageOverlay","","fxFlex","","fxLayout","column","nvTrapFocus","",1,"fullpage-dialog",3,"imageUrl"],[1,"header","font-sub1"],[1,"title","font-header4"],["class","subtitle font-body2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"subtitle","font-body2"],["fxLayout","column",1,"choice-chip-container"],[1,"choice-chip","font-sub2"],["class","chip-icon",3,"src",4,"ngIf"],["fxLayout","row","class","steps",4,"ngIf"],["nvAutoFocus","","autoFocusPolicy","initial",1,"buttons"],["mat-button","","class","font-button2",3,"disabled","click",4,"ngFor","ngForOf"],["class","status-text font-sub3",4,"ngIf"],[1,"chip-icon",3,"src"],["fxLayout","row",1,"steps"],["fxLayout","column","class","step",4,"ngFor","ngForOf"],["fxLayout","column",1,"step"],[1,"icon-container"],[3,"qrdata","width","errorCorrectionLevel",4,"ngIf"],["class","icon font-body2",3,"svgIcon",4,"ngIf"],[1,"step-title","font-body2"],[1,"step-description","font-body3"],[3,"qrdata","width","errorCorrectionLevel"],[1,"icon","font-body2",3,"svgIcon"],["mat-button","",1,"font-button2",3,"click","disabled"],[1,"status-text","font-sub3"],["nvFast1DSpatialNavigation","","fxLayout","row",1,"selector-cards",3,"isRTL"],["class","selector-card","nvFastSpatialNavigationItem","","tabindex","0",3,"ngClass","focus","mousemove",4,"ngFor","ngForOf"],["nvFastSpatialNavigationItem","","tabindex","0",1,"selector-card",3,"focus","mousemove","ngClass"],[1,"card-icon"],[1,"icon",3,"ngStyle","src"],[1,"font-body3"],[1,"card-text"],[1,"selector-card-secondary-info"],["class","font-sub3 selector-card-secondary-info-text",4,"ngIf"],["class","selector-card-secondary-info-icon icon font-body2",3,"svgIcon",4,"ngIf"],["class","card-status-text font-body3",4,"ngIf"],["class","card-buttons",4,"ngIf"],[1,"font-sub3","selector-card-secondary-info-text"],[1,"selector-card-secondary-info-icon","icon","font-body2",3,"svgIcon"],[1,"card-status-text","font-body3"],[1,"card-buttons"],["mat-button","","class","font-button2 card-button",3,"disabled","click",4,"ngFor","ngForOf"],["mat-button","",1,"font-button2","card-button",3,"click","disabled"]],template:function(ut,Pn){if(1&ut&&(p.j41(0,"div",3)(1,"span",4),p.EFF(2),p.nI1(3,"translate"),p.k0s(),p.j41(4,"span",5),p.EFF(5),p.nI1(6,"translate"),p.k0s(),p.DNE(7,ft,3,4,"span",6)(8,Gn,1,0,"ng-container",7),p.k0s(),p.DNE(9,Go,10,7,"ng-template",null,0,p.C5r)(11,Ea,2,2,"ng-template",null,1,p.C5r)),2&ut){const Qn=p.sdS(10),Ui=p.sdS(12);p.Y8G("imageUrl",null==Pn.data?null:Pn.data.backgroundImageUrl),p.R7$(2),p.JRh(p.bMT(3,7,Pn.data.header.text)),p.R7$(3),p.JRh(p.bMT(6,9,Pn.data.title.text)),p.R7$(2),p.Y8G("ngIf",null==Pn.data?null:Pn.data.subtitle),p.R7$(),p.Y8G("ngIf",Pn.choiceChip)("ngIfThen",Qn)("ngIfElse",Ui)}},dependencies:[n.YU,n.Sq,n.bT,n.B3,yr.DJ,yr.UI,$r.PW,$r.eI,R.iV,v.An,h,Os.D,es.N,sr,St,or,y.D9],styles:['.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.fullpage-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;max-height:100%;width:100%;height:100%;align-items:center;padding:56px 88px}.fullpage-dialog[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;height:100%;width:100%;z-index:-1;background:linear-gradient(to top,#000000f2 7.22%,#000000b3)}.header[_ngcontent-%COMP%]{align-self:self-start;color:#fff9}.title[_ngcontent-%COMP%], .subtitle[_ngcontent-%COMP%]{text-align:center}.subtitle[_ngcontent-%COMP%]{margin-top:16px;max-width:1152px}.selector-cards[_ngcontent-%COMP%], .choice-chip-container[_ngcontent-%COMP%]{align-items:center}.choice-chip[_ngcontent-%COMP%]{display:flex;margin-top:96px}.chip-icon[_ngcontent-%COMP%]{width:32px;height:32px;color:#fff}.isLtr[_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%]{margin:auto 16px auto 0}html[dir=ltr][_ngcontent-%COMP%] .chip-icon[_ngcontent-%COMP%]{--dummy: 0;margin:auto 16px auto 0}.isRtl[_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%]{margin:auto 0 auto 16px}html[dir=rtl][_ngcontent-%COMP%] .chip-icon[_ngcontent-%COMP%]{--dummy: 0;margin:auto 0 auto 16px}.choice-chip-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.steps[_ngcontent-%COMP%]{flex-direction:row;justify-content:center;margin:84px 0}.step[_ngcontent-%COMP%]{flex-direction:column;margin:0 48px;text-align:center;width:300px}.icon-container[_ngcontent-%COMP%]{height:200px;margin-bottom:56px}.icon[_ngcontent-%COMP%]{color:#fff;height:200px;width:238px}.step-title[_ngcontent-%COMP%]{align-items:center;border:#ffffff 2px solid;border-radius:24px;color:#fff;display:flex;font-weight:500;height:44px;justify-content:center;margin:0 auto 24px;width:44px}.step-description[_ngcontent-%COMP%]{margin:0;max-width:300px}.buttons[_ngcontent-%COMP%]{display:flex;gap:24px}.status-container[_ngcontent-%COMP%]{text-align:center}.status[_ngcontent-%COMP%]{margin:0}.selector-cards[_ngcontent-%COMP%]{margin-top:96px}.selector-card[_ngcontent-%COMP%]{width:264px;height:544px;margin:0 16px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;align-items:center;opacity:.7;padding-top:200px}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:64px;height:64px}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{min-height:80px}.selector-card[_ngcontent-%COMP%] .selector-card-secondary-info[_ngcontent-%COMP%]{padding-top:16px;display:inline-flex;flex-direction:row}.isLtr[_nghost-%COMP%] .selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-text[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-text[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-text[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-text[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-text[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-text[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-icon[_ngcontent-%COMP%]{height:32px;width:32px;color:#76b900}.selector-card[_ngcontent-%COMP%] .card-status-text[_ngcontent-%COMP%], .selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{display:none}.expanded.selector-card[_ngcontent-%COMP%]{width:444px;min-height:584px;box-sizing:border-box;padding:96px 60px 32px;background-color:#494949cc;justify-content:space-between;margin:0}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{opacity:1;padding-top:0}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:80px;height:80px}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.expanded.selector-card[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:flex-start}.expanded.selector-card[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%] .card-status-text[_ngcontent-%COMP%]{display:block;padding-top:49%}.expanded.selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:100%;min-height:160px}.expanded.selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%] .card-button[_ngcontent-%COMP%]{height:72px}']}),Ot})(),ia=(()=>{var kt;class Ot{constructor(ut,Pn){this.matDialog=ut,this.focusManager=Pn}open(ut,Pn){return this.focusManager.restoreFocusAfterClosed(()=>this.matDialog.open(Vs,{data:ut,autoFocus:!1,maxWidth:"100vw",panelClass:"dialogPaddingRemove",height:"100%",width:"100%"}),Pn)}}return(kt=Ot).\u0275fac=function(ut){return new(ut||kt)(p.KVO(_.bZ),p.KVO(ss.c))},kt.\u0275prov=p.jDH({token:kt,factory:kt.\u0275fac,providedIn:"root"}),Ot})()},68868:(Ue,W,d)=>{"use strict";d.d(W,{p:()=>c,M:()=>i});var n=d(36877),l=d(43848),p=d(27731),m=d(16229),_=d(72147),P=d(8619),v=d(10174),O=d(43780),S=d(83915),y=d(55833),r=d(53461),i=function(T){return T.Keyboard="Keyboard",T.Gamepad="Gamepad",T.Mouse="Mouse",T.Touch="Touch",T}(i||{}),a=d(58527),h=d(3567),g=d(16421);let c=(()=>{var T;class A{get lastFocusOrigin(){return this.focusOriginModality.focusOrigin}get lastInputModality(){return this.focusOriginModality.inputModality}constructor(x,V,D){this.gamepadService=V,this.ngZone=D,this.focusOriginModality={},this.logger=x.getLogger("InputModalityService"),this.ngZone.runOutsideAngular(()=>{const F=(0,n.R)(document,"keydown",{capture:!0}).pipe((0,_.n)(G=>"GoBack"===G.key?(0,l.of)(i.Touch):G.isTrusted?(0,l.of)(i.Keyboard):p.t)),I=this.gamepadService.isAnyGamepadInUse$.pipe((0,P.p)(G=>!0===G),(0,v.u)(i.Gamepad)),k=(0,n.R)(document,"mousemove",{capture:!0}).pipe((0,O.c)(50),(0,v.u)(i.Mouse)),R=(0,n.R)(document,"pointerdown",{capture:!0}).pipe((0,P.p)(G=>"mouse"===G.pointerType||"touch"===G.pointerType),(0,S.T)(G=>{switch(G.pointerType){case"mouse":return i.Mouse;case"touch":return i.Touch}}));this.inputModalityChanged$=(0,m.h)(F,I,R,k).pipe((0,y.t)(1),(0,r.F)())})}startMonitoring(){this.logger.info("start monitoring"),this.focusOriginModalitySubscription?.unsubscribe(),this.focusOriginModalitySubscription=this.ngZone.runOutsideAngular(()=>this.inputModalityChanged$.pipe((0,S.T)(x=>{let V;switch(x){case i.Keyboard:case i.Gamepad:V="keyboard";break;case i.Mouse:V="mouse";break;case i.Touch:V="touch"}return{focusOrigin:V,inputModality:x}})).subscribe(x=>this.focusOriginModality=x))}stopMonitoring(){this.logger.info("stop monitoring"),this.focusOriginModalitySubscription?.unsubscribe(),this.focusOriginModalitySubscription=void 0,this.focusOriginModality={}}}return(T=A).\u0275fac=function(x){return new(x||T)(a.KVO(h.J6),a.KVO(g.bi),a.KVO(a.SKi))},T.\u0275prov=a.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),A})()},78812:(Ue,W,d)=>{"use strict";d.d(W,{P6:()=>A,Rg:()=>i,XZ:()=>$,CV:()=>T,bC:()=>R,wx:()=>F,Xj:()=>G,FE:()=>I,EU:()=>a,i1:()=>te,YH:()=>L,H0:()=>ce,_Y:()=>J,oX:()=>g});var n=d(57258),l=d(3496),p=d(93181),m=d(43848),_=d(12532),P=d(75707),v=d(83915),O=d(14714),S=d(91384),y=d(26875),r=d(3567),i=function(Z){return Z.Full="Full",Z.None="None",Z.Temp="Temp",Z}(i||{}),a=function(Z){return Z.Required="required",Z.Functional="functional",Z.Technical="technical",Z.Behavioral="behavioral",Z}(a||{}),h=function(Z){return Z.Anonymous="anonymous",Z.DeviceOnly="deviceOnly",Z.DevicePreferred="devicePreferred",Z.UserPreferred="userPreferred",Z.UserRequired="userRequired",Z}(h||{}),g=function(Z){return Z.Undefined="undefined",Z}(g||{}),c=function(Z){return Z.EventsCommonStore="eventsCommonStore",Z.EventsDetailStore="eventsDetailStore",Z.EventsDetailStoreRequired="eventsDetailStoreRequired",Z.EventsDetailStoreTechnical="eventsDetailStoreTechnical",Z.EventsDetailStoreBehavioral="eventsDetailStoreBehavioral",Z.UserDataConsentStore="userDataConsentStore",Z}(c||{}),T=function(Z){return Z.USER_ID="USER_ID",Z.DEVICE_ID="DEVICE_ID",Z.SESSION_ID="SESSION_ID",Z}(T||{}),A=function(Z){return Z.SharedStorage="SharedStorage",Z.LocalStorage="LocalStorage",Z.AbHub="AbHub",Z.IndexedDb="IndexedDb",Z}(A||{});class L{constructor(de){this.parameters=de,this.ts=(new Date).toISOString()}}const V=new L({}),D={clientId:"{CLIENTID}",clientVer:"{CLIENTVER}",eventSchemaVer:"{EVENTSCHEMAVER}",eventSysVer:"0.16.3",deviceId:g.Undefined,userId:g.Undefined,externalUserId:g.Undefined,idpId:g.Undefined,sessionId:g.Undefined,deviceOS:g.Undefined,deviceOSVersion:g.Undefined,deviceType:g.Undefined,deviceModel:g.Undefined,deviceMake:g.Undefined,clientType:g.Undefined,clientVariant:g.Undefined,sentTs:"",events:[V],integrationId:g.Undefined,browserType:g.Undefined,productName:g.Undefined,productVersion:g.Undefined},F={required:i.None,functional:i.None,technical:i.None,behavioral:i.None},I={required:i.Temp,functional:i.Temp,technical:i.None,behavioral:i.None},R={required:i.Full,functional:i.Full,technical:i.None,behavioral:i.None},G={required:i.Full,functional:i.Full,technical:i.Full,behavioral:i.None};var Y=function(Z){return Z.Ok="OK",Z.InvalidInfoForEventType="INVALID_INFO_FOR_EVENT_TYPE",Z.UnknownEventType="UNKNOWN_EVENT_TYPE",Z.UnProcessed="UNPROCESSED",Z.ExperimentAlreadyActive="EXPERIMENT_ALREADY_ACTIVE",Z.FunctionalConsentNotReceived="FUNCTIONAL_CONSENT_NOT_RECEIVED",Z.LocaleSwitchInProgress="LOCALE_SWITCH_INPROGRESS",Z}(Y||{}),K=function(Z){return Z.Win="Win",Z.Mac="Mac",Z.Android="Android",Z.NvAndroid="NvAndroid",Z.Linux="Linux",Z.Web="Web",Z.Undefined="undefined",Z}(K||{});const $={userConsent:F,userId:"",externalUserId:"",idpId:""},J=1e3;var z=d(58527);let te=(()=>{var Z;class de{}return(Z=de).\u0275fac=function(pe){return new(pe||Z)},Z.\u0275prov=z.jDH({token:Z,factory:Z.\u0275fac}),de})();var X=d(2490),re=d(5798);let ge=(()=>{var Z;class de{constructor(pe,_e,ke){this.sdkConfig=pe,this.endpointFactory=_e,this.distributedTracingUtilService=ke,this.eventServerEndpoint=this.endpointFactory.createEndpoint({headers:{"Content-Type":"application/json"},config:{timeout:this.sdkConfig.defaultTimeout,timeBetweenRetries:this.sdkConfig.defaultTimeBetweenRetries,maxRetries:this.sdkConfig.defaultRetries},reportRequest:!1})}generateUrl(pe){return this.sdkConfig.server+"/"+this.sdkConfig.version+pe}sendEvent(pe,_e,ke,De){null!==pe&&pe.hasOwnProperty("sync")&&delete pe.sync;const je={body:_e,headers:{"Content-Type":"application/json","X-Event-Protocol":"1.5"},params:{immediateRequest:JSON.stringify(ke)}},$e=this.eventServerEndpoint.makeRequestEx("POST",this.generateUrl("/events/json"),je);return this.distributedTracingUtilService.handleHttpEndpointSpan($e,je,X.pB.SendTelemetryEvent,De)}sendEventviaBeacon(pe,_e,ke,De){pe?.hasOwnProperty("sync")&&delete pe.sync;const Me=new Blob([_e],{type:"text/plain"});return navigator.sendBeacon(this.generateUrl("/events/json"),Me),(0,m.of)(!0)}setServer(pe){return this.sdkConfig.server=pe,this.getServerLocale(null)}getServerLocale(pe){const _e=pe||this.sdkConfig.server;return _e&&""!==_e?_e.endsWith(".cn")?"china":"global":"unknown"}}return(Z=de).\u0275fac=function(pe){return new(pe||Z)(z.KVO(te),z.KVO(re.t),z.KVO(X.Z1))},Z.\u0275prov=z.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}),de})(),oe=(()=>{var Z;class de{constructor(){this.windowLocalStorage=null,r.zk.isBrowserPlatform()&&(this.windowLocalStorage=window.localStorage)}getWlsItem(pe,_e){return this.windowLocalStorage&&JSON.parse(this.windowLocalStorage.getItem(pe+_e))}setWlsItem(pe,_e,ke){return this.windowLocalStorage&&this.windowLocalStorage.setItem(pe+_e,JSON.stringify(ke))}removeWlsItem(pe,_e){return this.windowLocalStorage&&this.windowLocalStorage.removeItem(pe+_e)}getLength(){return this.windowLocalStorage&&this.windowLocalStorage.length}getKey(pe){return this.windowLocalStorage&&this.windowLocalStorage.key(pe)}clearall(pe){this.windowLocalStorage&&Object.keys(this.windowLocalStorage)?.forEach(_e=>{_e?.startsWith(pe)&&this.windowLocalStorage.removeItem(_e)})}}return(Z=de).\u0275fac=function(pe){return new(pe||Z)},Z.\u0275prov=z.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}),de})(),xe=(()=>{var Z;class de{getCommonData$(){return this.commonDataSubject.asObservable()}get registeredErrorCallbackVal(){return this.registeredErrorCallback}get defaultErrorCallbackVal(){return this.defaultErrorCallback}get cleanUpBacklogEventsVal(){return this.cleanUpBacklogEvents}get currentUserConsentUpdatedVal(){return this.currentUserConsentUpdated}setDefaultConsentVal(pe){this.defaultConsent=pe,this.deviceConsent=pe}setSendEventsInProgressVal(pe){this.sendEventsInProgress=pe}constructor(pe,_e,ke,De,Me,je,$e){this.config=pe,this.eventSdkService=_e,this.logService=ke,this.dbCacheService=De,this.dbService=Me,this.networkStatusService=je,this.windowLocalStorage=$e,this.commonData=D,this.defaultConsent=F,this.deviceConsent=F,this.deviceConsentUpdated=!1,this.currentUserConsent=F,this.currentUserConsentUpdated=!1,this.currentUserId=g.Undefined,this.syncedUserConsentInfo=!1,this.registeredErrorCallback=this.defaultErrorCallback,this.cleanUpBacklogEvents=!1,this.sendBacklogEventsInitiated=!1,this.sendEventsInProgress=!1,this.eventsInBatch=!1,this.sendBatchEventsInProgress={functional:!1,technical:!1,behavioral:!1,required:!1},this.cleanBacklogEventsInProgress=[],this.cleanWlsBacklogEventsInProgress=[],this.customParams={platform:!1},this.browserPlatform=!1,this.isTelemetryDisabled=!1,this.commonDataSubject=new n.m(1),this.serverLocale="unknown",this.purgeInitiated=!1,this.purgeInProgress={commonDbIsClear:!1,functionalDbIsClear:!1,technicalDbIsClear:!1,behavioralDbIsClear:!1,requiredDbIsClear:!1,wlsDbIsClear:!1},this.setErrorCallback=Oe=>{this.registeredErrorCallback=Oe},this.logger=this.logService.getLogger("JsEventsService"),this.commonData.clientId=this.config.clientId,this.commonData.eventSchemaVer=this.config.schemaVersion,this.sendInterval$=(0,l.O)(0,this.config.msBetweenSendRequest),this.logger.info("initialize",pe),this.networkStatusService.onlineStatusChanged.subscribe(this.onOnlineStateChanged.bind(this)),this.browserPlatform=r.zk.isBrowserPlatform(),this.serverLocale=this.eventSdkService.getServerLocale(null)}defaultErrorCallback(pe){this.logger.error("message:",pe&&pe.message?pe.message:"Unknown error")}updateServer(pe){const _e=this.eventSdkService.setServer(pe);this.onLocationStateChanged(_e)}sendToServerEndpoint(pe,_e){const ke=pe.events.slice(0);pe.eventsToBeSent=pe.events.length;const De=[];for(;0!==pe.eventsToBeSent;){let Me;this.logger.event("eventsToBeSent",pe.eventsToBeSent.toString()),pe.eventsToBeSent>this.config.maxEventsPerRequest?(Me=ke.slice(0,this.config.maxEventsPerRequest),ke.splice(0,this.config.maxEventsPerRequest)):Me=ke,pe.eventsToBeSent=pe.eventsToBeSent-Me.length;const je=pe.commonData;je.events=Me,je.sentTs=(new Date).toISOString();const $e=JSON.stringify(je);this.logger.info("events request",$e),De.push(this.eventSdkService.sendEvent(this.customParams,$e,_e))}return(0,p.p)(De)}updateCleanupState(pe,_e,ke){let De=!1,Me=0;this.cleanBacklogEventsInProgress.forEach(je=>{je.recordKey===pe&&(De=!0,je.functionalDbIsClear=_e===a.Functional?ke:je.functionalDbIsClear,je.technicalDbIsClear=_e===a.Technical?ke:je.technicalDbIsClear,je.behavioralDbIsClear=_e===a.Behavioral?ke:je.behavioralDbIsClear,je.requiredDbIsClear=_e===a.Required?ke:je.requiredDbIsClear,je.functionalDbIsClear&&je.technicalDbIsClear&&je.behavioralDbIsClear&&je.requiredDbIsClear&&(this.dbService.getGlobalStore(c.EventsCommonStore).removeItem(pe).subscribe(),this.cleanBacklogEventsInProgress.splice(Me,1)),Me++)}),!1===De&&this.cleanBacklogEventsInProgress.push({recordKey:pe,functionalDbIsClear:_e===a.Functional&&ke,technicalDbIsClear:_e===a.Technical&&ke,behavioralDbIsClear:_e===a.Behavioral&&ke,requiredDbIsClear:_e===a.Required&&ke})}getConsentedEvents(pe,_e,ke,De){const Me=[];return De&&De.events&&De.events.length>0&&De.events.forEach(je=>{const $e=this.eventHasConsent(je.personalization,pe,_e,ke);if($e===i.Full||$e===i.Temp){const Oe=(0,y.extend)({},this.updatePersonalizationQualifiers(je));Me.push(Oe)}else this.logger.event("Event excluded from send due to no consent (to be discarded later): ",je,pe)}),Me}sendBacklogEventsDetailToServer(pe,_e,ke,De,Me,je){return this.logger.event("attempting to send backlog events for dbName:",ke," userconsent: ",_e,"key: ",Me),this.dbService.getGlobalStore(ke).getItem(Me).pipe((0,P.ZZ)($e=>{let Oe={commonData:{},events:[],eventsToBeSent:0};const gt=ye=>{if(this.logger.event("jsEvents backlog response",ye,Oe.eventsToBeSent),0===Oe.eventsToBeSent)return this.dbService.getGlobalStore(ke).removeItem(Me).subscribe(),(0,m.of)(!0)},qt=ye=>{this.logger.error("Failed to send backlog events",ye.status),this.logger.event("Failed to send backlog events for :",Me,ke,".ErrorInfo: status",ye.status)};return Oe={commonData:(0,y.merge)({},je.common),events:this.getConsentedEvents(De,pe,_e,$e),eventsToBeSent:0},Oe.commonData&&Oe.events&&Oe.events.length>0?this.sendToServerEndpoint(Oe,!1).pipe((0,v.T)(ye=>{ye.forEach(Re=>{gt(Re)})}),(0,O.W)(ye=>(qt(ye),_.w))):(this.updateCleanupState(Me,De,!0),this.dbService.getGlobalStore(ke).removeItem(Me).subscribe(),(0,m.of)(!0))}),(0,O.W)($e=>(this.logger.event("detail data not available for backlog key",Me),this.dbService.getGlobalStore(ke).removeItem(Me).subscribe(),(0,m.of)(!0))))}updateWlsCleanupState(pe,_e,ke){let De=!1,Me=0;this.cleanWlsBacklogEventsInProgress.forEach(je=>{je.recordKey===pe&&(De=!0,je.functionalDbIsClear=_e===a.Functional?ke:je.functionalDbIsClear,je.technicalDbIsClear=_e===a.Technical?ke:je.technicalDbIsClear,je.behavioralDbIsClear=_e===a.Behavioral?ke:je.behavioralDbIsClear,je.requiredDbIsClear=_e===a.Required?ke:je.requiredDbIsClear,je.functionalDbIsClear&&je.technicalDbIsClear&&je.behavioralDbIsClear&&je.requiredDbIsClear&&(this.windowLocalStorage.removeWlsItem(c.EventsCommonStore,pe),this.cleanWlsBacklogEventsInProgress.splice(Me,1)),Me++)}),!1===De&&this.cleanWlsBacklogEventsInProgress.push({recordKey:pe,functionalDbIsClear:_e===a.Functional&&ke,technicalDbIsClear:_e===a.Technical&&ke,behavioralDbIsClear:_e===a.Behavioral&&ke,requiredDbIsClear:_e===a.Required&&ke})}sendWlsBacklogEventsDetailToServer(pe,_e,ke,De,Me,je){this.logger.event("attempting to send wls backlog events for dbName:",ke," userconsent: ",_e,"key: ",Me);const $e=this.windowLocalStorage.getWlsItem(ke,Me);if($e){let Oe={commonData:{},events:[],eventsToBeSent:0};const gt=ye=>{if(this.logger.event("jsEvents wls backlog response",ye,Oe.eventsToBeSent),0===Oe.eventsToBeSent)return this.windowLocalStorage.removeWlsItem(ke,Me)},qt=ye=>{this.logger.error("Failed to send wls backlog events :",ye.status),this.logger.event("Failed to send wls backlog events for :",Me,ke,".ErrorInfo: status",ye.status)};return Oe={commonData:(0,y.merge)({},je.common),events:this.getConsentedEvents(De,pe,_e,$e),eventsToBeSent:0},Oe.commonData&&Oe.events&&Oe.events.length>0?this.sendToServerEndpoint(Oe,!1).pipe((0,v.T)(ye=>{ye.forEach(Re=>{gt(Re)})}),(0,O.W)(ye=>(qt(ye),_.w))):(this.updateWlsCleanupState(Me,De,!0),(0,m.of)(this.windowLocalStorage.removeWlsItem(ke,Me)))}return this.updateWlsCleanupState(Me,De,!0),this.logger.event("detail data not available for wls backlog key",Me),(0,m.of)(this.windowLocalStorage.removeWlsItem(ke,Me))}attemptSendFromAllEventStores(pe,_e,ke,De,Me){return(0,p.p)([pe.call(this,_e,ke,c.EventsDetailStore,a.Functional,De,Me),pe.call(this,_e,ke,c.EventsDetailStoreTechnical,a.Technical,De,Me),pe.call(this,_e,ke,c.EventsDetailStoreBehavioral,a.Behavioral,De,Me),pe.call(this,_e,ke,c.EventsDetailStoreRequired,a.Required,De,Me)])}sendBacklogEvents(pe){try{this.dbService.getGlobalStore(c.EventsCommonStore).getItem(pe).pipe((0,P.ZZ)(_e=>{if(this.logger.event("testCommonData",_e),_e&&_e.common){const ke=JSON.parse(pe);return this.getUserConsentFromCache(ke.userId||"undefined",!1).pipe((0,P.ZZ)(De=>(this.logger.event("userConsentFromCache",De),_e.common.gdprFuncOptIn=this.getString(De.functional),_e.common.gdprTechOptIn=this.getString(De.technical),_e.common.gdprBehOptIn=this.getString(De.behavioral),_e.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),_e.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),_e.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendBacklogEventsDetailToServer,this.deviceConsent,De,pe,_e))))}return this.logger.event("common data not available for backlog key",pe),this.dbService.getGlobalStore(c.EventsCommonStore).removeItem(pe).subscribe(),(0,m.of)(!0)}),(0,O.W)(_e=>(this.logger.event("common data not available for backlog key",pe),this.dbService.getGlobalStore(c.EventsCommonStore).removeItem(pe).subscribe(),(0,m.of)(!0)))).subscribe()}catch(_e){this.logger.error("catch backlog::",_e)}}sendWlsBacklogEvents(pe){try{const _e=this.windowLocalStorage.getWlsItem(c.EventsCommonStore,pe);if(this.logger.event("wlsCommonData",_e),_e){const ke=JSON.parse(pe);this.getUserConsentFromCache(ke.userId||"undefined",!1).pipe((0,P.ZZ)(De=>{this.logger.event("userConsentFromCache",De);const Me={common:_e};return Me.common.gdprFuncOptIn=this.getString(De.functional),Me.common.gdprTechOptIn=this.getString(De.technical),Me.common.gdprBehOptIn=this.getString(De.behavioral),Me.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),Me.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),Me.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendWlsBacklogEventsDetailToServer,this.deviceConsent,De,pe,Me)})).subscribe()}else this.logger.event("wls common data not available for backlog key",pe),this.windowLocalStorage.removeWlsItem(c.EventsCommonStore,pe)}catch(_e){this.logger.error("catch wls backlog:",_e)}}setInProgressState(pe,_e){this.sendBatchEventsInProgress.functional=pe===a.Functional?_e:this.sendBatchEventsInProgress.functional,this.sendBatchEventsInProgress.technical=pe===a.Technical?_e:this.sendBatchEventsInProgress.technical,this.sendBatchEventsInProgress.behavioral=pe===a.Behavioral?_e:this.sendBatchEventsInProgress.behavioral,this.sendBatchEventsInProgress.required=pe===a.Required?_e:this.sendBatchEventsInProgress.required,this.eventsInBatch=this.getInProgressState()}getInProgressState(){return this.sendBatchEventsInProgress.functional||this.sendBatchEventsInProgress.technical||this.sendBatchEventsInProgress.behavioral||this.sendBatchEventsInProgress.required}sendBatchedEventsDetailToServer(pe,_e,ke,De,Me,je){this.logger.event("attempting to send batched events for dbName:",ke," userconsent: ",_e,"key: ",Me);const $e=this.dbCacheService.getCachedGlobalItem(ke,Me);let Oe={commonData:{},events:[],eventsToBeSent:0};const gt=ye=>{this.logger.event("jsEvents batched response",ye);const Re=JSON.parse(ye.config.data);this.cleanUpSentEvents(Re.events,ke,Me),this.setInProgressState(De,!1),this.sendEventsInProgress=!1},qt=ye=>{this.setInProgressState(De,!1),this.sendEventsInProgress=!1,this.logger.error("Failed to send events for :",Me,".ErrorInfo: status",ye.status)};return Oe={commonData:(0,y.merge)({},je.common),events:this.getConsentedEvents(De,pe,_e,$e),eventsToBeSent:0},Oe.commonData&&Oe.events&&Oe.events.length>0?(this.setInProgressState(De,!0),this.sendEventsInProgress=!0,this.sendToServerEndpoint(Oe,!1).subscribe(ye=>{ye.forEach(Re=>{gt(Re)})},ye=>{qt(ye)})):($e&&$e.events&&($e.events.splice(0,$e.events.length),$e.persist_().subscribe()),this.setInProgressState(De,!1),this.sendEventsInProgress=!1),_.w}sendEvents(){const pe=this.getRecordKey(),_e=this.dbCacheService.getCachedGlobalItem(c.EventsCommonStore,pe);if(_e&&_e.common)this.getUserConsentFromCache(this.currentUserId||g.Undefined,!0).pipe((0,P.ZZ)(ke=>(_e.common.gdprFuncOptIn=this.getString(ke.functional),_e.common.gdprTechOptIn=this.getString(ke.technical),_e.common.gdprBehOptIn=this.getString(ke.behavioral),_e.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),_e.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),_e.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendBatchedEventsDetailToServer,this.deviceConsent,ke,pe,_e)))).subscribe();else{if(this.logger.event("common data not available for key",pe),_e&&(0,y.isUndefined)(_e.common))try{this.registeredErrorCallback("common data not set before starting to send events")}catch(ke){this.logger.error(ke),this.defaultErrorCallback("Invalid callback. Original Error: common data not set before starting to send events")}this.sendEventsInProgress=!1}}startTimeBasedSendToServer(){this.stopTimeBasedSendToServer(),this.sendEventSubscription=this.sendInterval$.subscribe(()=>{this.logger.event("events in batch:",this.eventsInBatch),!0===this.eventsInBatch&&!1===this.sendEventsInProgress&&!1===this.getInProgressState()&&!1===this.getPurgeInProgressState()&&(this.sendEventsInProgress=!0,this.sendEvents())}),this.logger.event("send interval request made")}stopTimeBasedSendToServer(){this.sendEventSubscription&&(this.sendEventSubscription.unsubscribe(),this.sendEventSubscription=null,this.logger.event("send interval stopped"))}onOnlineStateChanged(pe){this.isOnline=pe,this.isOnline?this.deviceConsent!==F&&(this.logger.info("jsEvents turns into online"),this.startTimeBasedSendToServer()):(this.logger.info("jsEvents turns into offline"),this.stopTimeBasedSendToServer())}onLocationStateChanged(pe){"unknown"!==this.serverLocale&&this.serverLocale!==pe&&(this.logger.info("purge stored events"),this.purgeInitiated=!0,this.purgeEventStoreRecords()),this.serverLocale=pe}purgeEventStoreRecords(){this.purgeInProgress={commonDbIsClear:!1,functionalDbIsClear:!1,technicalDbIsClear:!1,behavioralDbIsClear:!1,requiredDbIsClear:!1,wlsDbIsClear:!1},this.dbService.getGlobalStore(c.EventsDetailStore).clear().subscribe(()=>{this.purgeInProgress.functionalDbIsClear=!0}),this.dbService.getGlobalStore(c.EventsDetailStoreTechnical).clear().subscribe(()=>{this.purgeInProgress.technicalDbIsClear=!0}),this.dbService.getGlobalStore(c.EventsDetailStoreBehavioral).clear().subscribe(()=>{this.purgeInProgress.behavioralDbIsClear=!0}),this.dbService.getGlobalStore(c.EventsDetailStoreRequired).clear().subscribe(()=>{this.purgeInProgress.requiredDbIsClear=!0}),this.dbService.getGlobalStore(c.EventsCommonStore).clear().subscribe(()=>{this.purgeInProgress.commonDbIsClear=!0}),this.windowLocalStorage.clearall(c.EventsDetailStore),this.windowLocalStorage.clearall(c.EventsDetailStoreTechnical),this.windowLocalStorage.clearall(c.EventsDetailStoreBehavioral),this.windowLocalStorage.clearall(c.EventsDetailStoreRequired),this.windowLocalStorage.clearall(c.EventsCommonStore),this.purgeInProgress.wlsDbIsClear=!0}getPurgeInProgressState(){let pe=!1;return this.purgeInitiated&&(pe=!(this.purgeInProgress.wlsDbIsClear&&this.purgeInProgress.functionalDbIsClear&&this.purgeInProgress.technicalDbIsClear&&this.purgeInProgress.behavioralDbIsClear&&this.purgeInProgress.requiredDbIsClear&&this.purgeInProgress.commonDbIsClear),this.purgeInitiated=pe),pe}getUserConsentFromCache(pe,_e){const De={required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:i.None,behavioral:i.None},Me=this.dbCacheService.getOrCreateCachedGlobalItem(c.UserDataConsentStore,pe||g.Undefined);return Me?Me.sync_().pipe((0,v.T)(()=>{const je=Me&&Me.userConsent;return!0===_e&&((0,y.isNil)(je)?this.currentUserId===g.Undefined&&(this.currentUserConsent=De,this.currentUserConsentUpdated=!0):(this.currentUserConsent=je,this.currentUserConsentUpdated=!0)),je||De}),(0,O.W)(je=>(0,m.of)(De))):(0,m.of)(De)}syncUserConsentInfo(pe){const _e=pe.find(ke=>ke.userId===this.currentUserId);_e&&(this.currentUserConsent=_e.userConsent,this.currentUserConsentUpdated=!0),pe.forEach(ke=>{const De=this.dbCacheService.getOrCreateCachedGlobalItem(c.UserDataConsentStore,ke.userId);this.logger.event("previously cached consent",De.userConsent),De.userConsent=ke.userConsent,De.persist_().subscribe(),this.logger.event("updated consent",ke.userConsent)}),this.syncedUserConsentInfo=!0,this.startSendingEvents()}setDefaultConsent(pe){this.defaultConsent=pe,this.deviceConsent=pe,(this.currentUserId===g.Undefined||(0,y.isUndefined)(this.currentUserId))&&(this.currentUserConsent={required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:i.None,behavioral:i.None},this.currentUserConsentUpdated=!0),this.startSendingEvents()}setDeviceConsent(pe){this.deviceConsent=pe,this.deviceConsentUpdated=!0,this.logger.event("device consent",pe),this.startSendingEvents()}eventHasConsent(pe,_e,ke,De){let Me;return Me=pe===h.Anonymous||pe===h.DeviceOnly||pe===h.DevicePreferred?ke:pe===h.UserRequired?this.currentUserId===g.Undefined||(0,y.isUndefined)(this.currentUserId)?F:De:this.currentUserId===g.Undefined||(0,y.isUndefined)(this.currentUserId)?{required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:i.None,behavioral:i.None}:De,_e===a.Required?Me.required:_e===a.Functional?Me.functional:_e===a.Technical?Me.technical:_e===a.Behavioral?Me.behavioral:i.None}cleanUpDbStore(){if(this.isTelemetryDisabled)return;const pe=this;if(this.commonData.sessionId===g.Undefined)return void pe.logger.info("Cleanup cannot proceed, this.commonData.sessionId is undefined");this.sendBacklogEventsInitiated=!0;const _e=JSON.parse(this.getRecordKey());this.logger.info("cleanUpDbStore excluding session for",_e);try{pe.dbService.getGlobalStore(c.EventsCommonStore).keys().pipe((0,S.M)(ke=>{ke.forEach((De,Me)=>{try{if(pe.logger.event("Key#",Me,"key ",De),"_version"===De)pe.logger.info("_version to be skipped",De);else{const je=JSON.parse(De);""===je.sessionId||je.sessionId===_e.sessionId?pe.logger.info("key not to be processed",je):pe.sendBacklogEvents(De)}}catch(je){pe.logger.error("Json parsing failed for key:",De,"error:",je?.message)}})})).subscribe()}catch(ke){pe.logger.error("encountered failure, error:",ke?.message)}}cleanUpWlsStore(){this.sendBacklogEventsInitiated=!0;const pe=JSON.parse(this.getRecordKey());this.logger.info("cleanUpWlsStore excluding session for",pe);for(let _e=0;_e<this.windowLocalStorage.getLength();++_e){const ke=this.windowLocalStorage.getKey(_e);if(ke.match("^"+c.EventsCommonStore)){this.logger.event("Key#",_e,"key ",ke);const De=JSON.parse(ke.replace(c.EventsCommonStore,""));""===De.sessionId||De.sessionId===pe.sessionId?this.logger.event("key not to be processed",De):this.sendWlsBacklogEvents(JSON.stringify(De))}}}cleanUpSentEvents(pe,_e,ke){this.logger.event("cleanUpSentEvents for",ke);const De=this.dbCacheService.getCachedGlobalItem(_e,ke);pe.forEach(Me=>{if(De&&De.events.length>0){const je=De.events.find($e=>$e.ts===Me.ts);if(je&&(0,y.isEqual)(je.parameters,Me.parameters)){const $e=De.events.indexOf(je);this.logger.event("matching event found",Me),De.events.splice($e,1),De.persist_().subscribe()}else this.logger.event("matching event not found")}else this.logger.event("events seem to be already cleared")}),De.persist_().subscribe()}startSendingEvents(){this.isOnline&&this.deviceConsent!==F&&"unknown"!==this.serverLocale?(this.startTimeBasedSendToServer(),!1===this.sendBacklogEventsInitiated&&(this.cleanUpDbStore(),this.cleanUpBacklogEvents=!1)):this.logger.info("Device offline or No Functional consent. No clean job happened.",this.deviceConsent)}updateGdprQualifiers(pe){return(0,y.omit)(pe,"gdprLevel")}updatePersonalizationQualifiers(pe){return(0,y.omit)(pe,"personalization")}updateGdprAndPersonalizationQualifiers(pe){return(0,y.omit)(pe,["gdprLevel","personalization"])}getString(pe){return pe&&"string"!=typeof pe?JSON.stringify(pe):pe||""}getRecordKey(){return JSON.stringify({sessionId:this.commonData.sessionId||g.Undefined,userId:this.currentUserId||g.Undefined})}getFormattedInputData(pe,_e){const ke=(0,y.extend)({},this.commonData);!0===_e.anonymize&&(ke.deviceId="undefined",ke.userId="undefined",ke.sessionId="undefined",ke.externalUserId="undefined",ke.idpId="undefined");const De=(0,y.extend)({},this.updateGdprAndPersonalizationQualifiers(pe));this.logger.event("eventDetail",De);const Me=[];return Me.push(De),ke.events=Me,ke.sentTs=(new Date).toISOString(),ke.gdprFuncOptIn=this.getString(this.currentUserConsent.functional),ke.gdprTechOptIn=this.getString(this.currentUserConsent.technical),ke.gdprBehOptIn=this.getString(this.currentUserConsent.behavioral),ke.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),ke.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),ke.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),JSON.stringify(ke)}setFormattedEventsDetailData(pe,_e,ke){const De=this.getRecordKey();let je,Me=c.EventsDetailStore;if(pe.gdprLevel===a.Technical&&(Me=c.EventsDetailStoreTechnical),pe.gdprLevel===a.Behavioral&&(Me=c.EventsDetailStoreBehavioral),pe.gdprLevel===a.Required&&(Me=c.EventsDetailStoreRequired),_e){je=this.windowLocalStorage.getWlsItem(Me,De)||{},je.events=je.events||[];const $e=(0,y.extend)({},this.updateGdprQualifiers(pe));this.logger.event("eventDetail wls",$e),je.events.push($e),this.logger.event("details list wls",je.events),this.windowLocalStorage.setWlsItem(Me,De,je),(0,y.isFunction)(ke)&&ke(),this.logger.event("request to batch an exit time event")}else{je=this.dbCacheService.getOrCreateCachedGlobalItem(Me,De);let $e=je.events;const Oe=(0,y.extend)({},this.updateGdprQualifiers(pe));if(this.logger.event("eventDetail IDb",Oe),$e)$e.push(Oe);else{const gt=[];gt.push(Oe),$e=gt}this.logger.event("details list indexed db",$e),je.events=$e,je.persist_().subscribe(()=>{(0,y.isFunction)(ke)&&ke(),this.logger.event("request to batch an event"),this.eventsInBatch=!0})}}storeEventDetail(pe,_e){this.setFormattedEventsDetailData(pe,this.browserPlatform&&_e.appExit||!1,_e.afterDone||null)}checkIfEventIsSendable(pe,_e){return(0,y.isEqual)(this.deviceConsent,F)||pe&&(0,y.isUndefined)(pe.gdprLevel)?(this.logger.info("No consent available, discarding event",pe.name,pe.gdprLevel),(0,y.isFunction)(_e.afterDone)&&_e.afterDone(),Y.FunctionalConsentNotReceived):this.getPurgeInProgressState()?Y.LocaleSwitchInProgress:Y.Ok}sendEventDetail(pe,_e){if(pe){_e=(0,y.merge)({},_e),this.isValidPersonalization(pe.personalization)||(pe.personalization=h.UserPreferred);const ke=this.checkIfEventIsSendable(pe,_e);if(ke!==Y.Ok)return ke;if("unknown"===this.serverLocale||!0!==_e.immediateRequest&&!0!==_e.useBeacon||!0!==this.isOnline)this.storeEventDetail(pe,_e);else{const De=this.eventHasConsent(pe.personalization,pe.gdprLevel,this.deviceConsent,this.currentUserConsent);if(this.logger.event("attempting to send immediate event for userId:",this.currentUserId," userconsent: ",this.currentUserConsent,"deviceconsent: ",this.deviceConsent),De!==i.Full&&De!==i.Temp)return this.currentUserId&&this.currentUserId!==g.Undefined&&!1===this.currentUserConsentUpdated?(this.storeEventDetail(pe,_e),this.logger.event("Event stored as userConsent not synced yet",De,this.currentUserConsentUpdated)):((0,y.isFunction)(_e.afterDone)&&_e.afterDone(),this.logger.error("Event cannot be sent due to consent level:",De)),De;{const Me=this.getFormattedInputData(pe,_e);this.logger.info("jsonString request to send:",Me);let je=this.eventSdkService.sendEvent,$e=!0;_e.useBeacon&&(je=this.eventSdkService.sendEventviaBeacon,$e=!1),je.call(this.eventSdkService,this.customParams,Me,$e).subscribe(Oe=>{this.logger.event("jsevents response",Oe),(0,y.isFunction)(_e.afterDone)&&_e.afterDone()},Oe=>{this.logger.error("Failed to send eventdata for:",pe.name,".ErrorInfo: status",Oe.status,", data",Oe.config&&Oe.config.data),this.storeEventDetail(pe,_e)})}}return Y.Ok}return this.logger.error("Empty request"),Y.UnProcessed}sendEventDetailWithPromise(pe,_e){return new Promise((ke,De)=>{if(pe){if(_e=(0,y.merge)({},_e),(0,y.isEqual)(this.deviceConsent,F)||pe&&(0,y.isUndefined)(pe.gdprLevel))return this.logger.info("Functional consent not received, discarding event",pe.name,pe.gdprLevel),(0,y.isFunction)(_e.afterDone)&&_e.afterDone(),void De(Y.FunctionalConsentNotReceived);if(this.getPurgeInProgressState())return void De(Y.LocaleSwitchInProgress);if("unknown"===this.serverLocale||!0!==_e.immediateRequest&&!0!==_e.useBeacon||!0!==this.isOnline)this.storeEventDetail(pe,_e),ke(Y.Ok);else{const Me=this.eventHasConsent(pe.personalization,pe.gdprLevel,this.deviceConsent,this.currentUserConsent);if(this.logger.event("attempting to send immediate event for userId:",this.currentUserId," userconsent: ",this.currentUserConsent,"deviceconsent: ",this.deviceConsent),Me===i.Full||Me===i.Temp){const je=this.getFormattedInputData(pe,_e);let $e=this.eventSdkService.sendEvent,Oe=!0;_e.useBeacon&&($e=this.eventSdkService.sendEventviaBeacon,Oe=!1),$e.call(this.eventSdkService,this.customParams,je,Oe).subscribe(gt=>{this.logger.event("jsevents response",gt),(0,y.isFunction)(_e.afterDone)&&_e.afterDone(),ke(Y.Ok)},gt=>{this.logger.error("Failed to send eventdata for:",pe.name,".ErrorInfo: status",gt.status,", data",gt.config&>.config.data),this.storeEventDetail(pe,_e),ke(Y.UnProcessed)})}else this.currentUserId&&this.currentUserId!==g.Undefined&&!1===this.currentUserConsentUpdated?(this.storeEventDetail(pe,_e),this.logger.event("Event stored as userConsent not synced yet",Me,this.currentUserConsentUpdated)):((0,y.isFunction)(_e.afterDone)&&_e.afterDone(),this.logger.error("Event cannot be sent due to consent level:",Me)),ke(Me)}}else this.logger.error("Empty request"),ke(Y.Ok)})}isValidPlatformType(pe){return pe===K.Win||pe===K.Mac||pe===K.Android||pe===K.NvAndroid||pe===K.Linux||pe===K.Web}isValidPersonalization(pe){return pe===h.Anonymous||pe===h.DeviceOnly||pe===h.DevicePreferred||pe===h.UserPreferred||pe===h.UserRequired}setEventsCommonData(pe){if(!pe)return this.logger.error("Undefined common data sent by client"),(0,m.of)(void 0);this.cleanUpBacklogEvents=!1,this.commonData.sessionId===g.Undefined&&pe.sessionId&&(this.cleanUpBacklogEvents=!0),this.commonData=(0,y.merge)({},this.commonData,pe),this.logger.info("client user data",pe.userId,pe.externalUserId,pe.idpId),this.logger.info("this.commonData user data",this.commonData.userId,this.commonData.externalUserId,this.commonData.idpId),this.commonData.eventProtocol="1.5",this.currentUserId=this.commonData.idpId!==g.Undefined?this.commonData.userId:this.commonData.externalUserId,this.isValidPlatformType(this.commonData.platform)||(this.commonData.platform=K.Undefined),this.currentUserConsentUpdated=!1,this.logger.info("Device Id:",this.commonData.deviceId,"set for client:",this.commonData.clientId);const _e=this.getUserConsentFromCache(this.currentUserId,!0);this.logger.event(this.commonData);const ke=this.getRecordKey(),De=this.dbCacheService.getOrCreateCachedGlobalItem(c.EventsCommonStore,ke);if(De.common=this.commonData,De.persist_().subscribe(),this.browserPlatform){let Me=this.windowLocalStorage.getWlsItem(c.EventsCommonStore,ke)||{};Me=this.commonData,this.windowLocalStorage.setWlsItem(c.EventsCommonStore,ke,Me)}return this.isOnline&&this.deviceConsent!==F&&"unknown"!==this.serverLocale?(this.startTimeBasedSendToServer(),this.cleanUpBacklogEvents&&!1===this.sendBacklogEventsInitiated&&(this.cleanUpDbStore(),this.cleanUpBacklogEvents=!1),this.browserPlatform&&this.cleanUpWlsStore()):this.logger.info("Device offline or No Functional consent. No clean job happened.",this.deviceConsent),this.commonDataSubject.next(this.commonData),_e}setOverrideToolTelemetryState(pe){this.isTelemetryDisabled=pe}ngOnDestroy(){this.sendEventSubscription&&(this.sendEventSubscription.unsubscribe(),this.sendEventSubscription=void 0)}}return(Z=de).\u0275fac=function(pe){return new(pe||Z)(z.KVO(te),z.KVO(ge),z.KVO(r.J6),z.KVO(r.sc),z.KVO(r.at),z.KVO(r.CF),z.KVO(oe))},Z.\u0275prov=z.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}),de})();var N=d(74931),se=d(99047);let ce=(()=>{var Z;class de{constructor(pe,_e,ke){this.loggingService=pe,this.bridgeService=_e,this.jsEventsService=ke,this.clientVersion="undefined",this.currentScreen="",this.deviceId="undefined",this.isUIRefreshed=!1,this.launchUiEventSent=!1,this.sessionId="undefined",this.sync=!1,this.userId="undefined",this.externalUserId="undefined",this.idpId="undefined",this.platform=null,this.deviceOS=null,this.deviceOSVersion=null,this.deviceType=null,this.deviceModel=null,this.deviceMake=null,this.clientType=null,this.clientVariant=null,this.integrationId=null,this.browserType=null,this.productName=null,this.productVersion=null,this.isTelemetryDisabled=!1,this.defaultConsentListener$=new n.m(1),this.deviceConsentListener$=new n.m(1),this.commonDataListener$=new n.m(1),this.validUserIdResetListener$=new n.m(1),this.consentUpdatedPromise=new Promise(De=>{De(null)}),this.logEvaluatorCallback=De=>!0,this.logger=this.loggingService.getLogger("telemetryService"),this.getUIRefreshState(),this.sessionId=this.generateSessionId()}updateTelemetrySessionId(pe){this.sessionId=pe}initialize(pe){this.isTelemetryDisabled=pe,this.jsEventsService.setOverrideToolTelemetryState(this.isTelemetryDisabled)}getCommonData$(){return this.jsEventsService.getCommonData$()}setLaunchUiEventSent(pe){this.launchUiEventSent=pe,this.logger.info("Launch UI event sent: ",this.launchUiEventSent)}getLaunchUiEventSent(){return this.launchUiEventSent}setLoggingEvaluator(pe){this.logEvaluatorCallback=pe}getUIRefreshState(){this.logger.info("Getting UI Refreshed state"),this.bridgeService.executeCommand(N.Ts.Common.Applicationinfo.GetIsUIRefreshed).subscribe(pe=>{this.isUIRefreshed=pe,this.logger.info("Refreshed state",this.isUIRefreshed)},()=>{this.logger.error("Failed to get UI Refreshed state")})}generateSessionId(){let pe=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(ke){const De=(pe+16*Math.random())%16|0;return pe=Math.floor(pe/16),("x"===ke?De:3&De|8).toString(16)})}get telemetrySessionId(){return this.sessionId}setEventsCommonData(pe,_e=!1,ke=!1){this.logger.info("telemetry sessionId is ",this.sessionId),!this.deviceId&&pe&&pe.deviceId&&this.logger.info("telemetry deviceId",pe.deviceId),(_e&&pe&&pe.userId||pe&&pe.externalUserId)&&(this.logger.info("telemetry userId ",pe.userId),this.logger.info("telemetry externalUserId ",pe.externalUserId),this.logger.info("telemetry idpId ",pe.idpId)),this.deviceId=pe&&pe.deviceId?pe.deviceId:this.deviceId,this.clientVersion=pe&&pe.clientVer||this.clientVersion,_e&&(this.userId=pe.userId||"undefined",this.externalUserId=pe.externalUserId||"undefined",this.idpId=pe.idpId||"undefined"),this.platform=this.platform||pe.platform,this.deviceOS=this.deviceOS||pe.deviceOS,this.deviceOSVersion=this.deviceOSVersion||pe.deviceOSVersion,this.deviceType=this.deviceType||pe.deviceType,this.deviceModel=this.deviceModel||pe.deviceModel,this.deviceMake=this.deviceMake||pe.deviceMake,this.clientType=this.clientType||pe.clientType,this.clientVariant=this.clientVariant||pe.clientVariant,this.integrationId=this.integrationId||pe.integrationId,this.browserType=this.browserType||pe.browserType,this.productName=this.productName||pe.productName,this.productVersion=this.productVersion||pe.productVersion,ke&&(this.integrationId=pe.integrationId||"undefined"),this.logger.info("Setting common events data: ",{clientVer:this.clientVersion,sessionId:this.sessionId,deviceId:this.deviceId,userId:this.userId,externalUserId:this.externalUserId,idpId:this.idpId,platform:this.platform,deviceOS:this.deviceOS,deviceOSVersion:this.deviceOSVersion,deviceType:this.deviceType,deviceModel:this.deviceModel,deviceMake:this.deviceMake,clientType:this.clientType,clientVariant:this.clientVariant,integrationId:this.integrationId,browserType:this.browserType,productName:this.productName,productVersion:this.productVersion}),this.consentUpdatedPromise=this.jsEventsService.setEventsCommonData({clientVer:this.clientVersion,sessionId:this.sessionId,deviceId:this.deviceId,userId:this.userId,externalUserId:this.externalUserId,idpId:this.idpId,platform:this.platform,deviceOS:this.deviceOS||g.Undefined,deviceOSVersion:this.deviceOSVersion||g.Undefined,deviceType:this.deviceType||g.Undefined,deviceModel:this.deviceModel||g.Undefined,deviceMake:this.deviceMake||g.Undefined,clientType:this.clientType||g.Undefined,clientVariant:this.clientVariant||g.Undefined,integrationId:this.integrationId||g.Undefined,browserType:this.browserType||g.Undefined,productName:this.productName||g.Undefined,productVersion:this.productVersion||g.Undefined}).toPromise(),this.userId&&this.deviceId&&this.deviceId!==g.Undefined&&this.commonDataListener$.next(!0),this.validUserIdResetListener$.next(_e&&this.userId&&this.userId!==g.Undefined)}setScreen(pe){this.currentScreen=pe}getScreen(){return this.currentScreen}changeSync(pe){this.sync=pe}setDefaultClientConsent(pe){this.logger.event("Set client consent: ",pe),this.jsEventsService.setDefaultConsent(pe),this.defaultConsentListener$.next(!0)}setDeviceConsent(pe){this.logger.event("Set device consent: ",pe),this.jsEventsService.setDeviceConsent(pe),this.defaultConsentListener$.next(!0),this.deviceConsentListener$.next(!0)}setUserConsent(pe){this.logger.event("Set user consent: ",pe),this.jsEventsService.syncUserConsentInfo(pe)}getDefaultClientConsentObserable(){return this.defaultConsentListener$.pipe((0,se.$)())}getDeviceConsentObservable(){return this.deviceConsentListener$.pipe((0,se.$)())}getCommonDataObservable(){return this.commonDataListener$.pipe((0,se.$)())}getValidUserIdResetObservable(){return this.validUserIdResetListener$.asObservable()}setServerConfig(pe){this.jsEventsService.updateServer(pe)}push(pe,_e,ke){if(this.isUIRefreshed||this.isTelemetryDisabled)this.logger.info("Disabled telemetry",pe.name);else if(pe){if(ke=(0,y.merge)({},ke),ke=(0,y.extend)(ke,{appExit:this.sync}),_e&&pe.parameters.hasOwnProperty("totalMs")){const De=Date.now(),Me=De-_e;this.logger.info("Started ",pe.name,"at ",_e,"and ended at ",De,"Time elapsed(ms)",Me),pe.parameters=(0,y.merge)(pe.parameters,{totalMs:Me})}this.logEvaluatorCallback(pe)&&this.logger.event("Event detail: ",pe),this.consentUpdatedPromise.then(()=>{this.logger.info("Sending event "+pe.name),this.jsEventsService.sendEventDetail(pe,ke)})}else this.logger.error("Empty event.")}pushWithPromise(pe,_e,ke){if(this.isUIRefreshed||this.isTelemetryDisabled)return this.logger.info("Disabled telemetry",pe.name),new Promise((De,Me)=>{De("Disabled telemetry")});if(pe){if(ke=(0,y.merge)({},ke),ke=(0,y.extend)(ke,{appExit:this.sync}),_e&&pe.parameters.hasOwnProperty("totalMs")){const De=Date.now(),Me=De-_e;this.logger.info("Started ",pe.name,"at ",_e,"and ended at ",De,"Time elapsed(ms)",Me),pe.parameters=(0,y.merge)(pe.parameters,{totalMs:Me})}return this.logEvaluatorCallback(pe)&&this.logger.event("Event detail: ",pe),new Promise(De=>{this.consentUpdatedPromise.then(()=>this.jsEventsService.sendEventDetailWithPromise(pe,ke)).then(Me=>{De(Me)})})}return this.logger.error("Empty event."),new Promise((De,Me)=>{Me("Empty event.")})}}return(Z=de).\u0275fac=function(pe){return new(pe||Z)(z.KVO(r.J6),z.KVO(r.NZ),z.KVO(xe))},Z.\u0275prov=z.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}),de})()},5798:(Ue,W,d)=>{"use strict";d.d(W,{fu:()=>h,SA:()=>T,sl:()=>x,t:()=>D,jm:()=>a});var n=d(94485),l=d(40198),p=d(75707),m=d(83915),_=d(86447),P=d(59859),v=d(3496),O=d(80583),S=d(26875);const y={timeBetweenRetries:0,maxRetries:0,retryOnTimeout:!1,exponentialBackoffMaxDelay:3e4},r="TimeoutError";var a=function(F){return F[F.UnknownError=0]="UnknownError",F[F.RequestTimeout=-100]="RequestTimeout",F[F.RequestCancelled=-101]="RequestCancelled",F[F.NetworkStatusOffline=-102]="NetworkStatusOffline",F[F.DNSLookupFailed=-103]="DNSLookupFailed",F}(a||{});const h=36e5;var c,g=d(32727);const T={authorization:"Authorization",xRequestId:"x-request-id"};class x{static httpErrorEvents$(){return x.httpErrorEventsSubject.asObservable()}static httpSuccessEvents$(){return x.httpSuccessEventsSubject.asObservable()}static httpStartEvents$(){return x.httpStartEventsSubject.asObservable()}constructor(I,k,R={}){this.http=I,this.networkStatusService=k,this.configOptions=R,(0,S.isNil)(this.configOptions.config)&&(this.configOptions.config=y),(0,S.isNil)(this.configOptions.config.retryOnTimeout)&&(this.configOptions.config.retryOnTimeout=y.retryOnTimeout),(0,S.isNil)(this.configOptions.config.exponentialBackoffMaxDelay)&&(this.configOptions.config.exponentialBackoffMaxDelay=y.exponentialBackoffMaxDelay)}static replaceTemplateKey(I,k,R,G){let Y=I;if("string"==typeof R){const K=":"+k;-1!==I.indexOf(K)&&(Y=I.replace(new RegExp(K,"g"),encodeURIComponent(R)),G(k))}return Y}static formatUrl(I,k){let R=I;return R=Object.keys(k).reduce((G,Y)=>x.replaceTemplateKey(G,Y,k[Y],K=>delete k[K]),R),R}static isRetryableError(I,k,R){let G=!0;return I instanceof n.yz?0!==I.status||R.isOnline?429===I.status?G=!0:0!==I.status&&(I.status<500||I.status>=600)&&(G=!1):G=!1:I instanceof Error&&I.name===r&&!k.retryOnTimeout&&(G=!1),G}static formatError(I,k,R,G){const Y=x.getFullUrl(I,k);let K,$;R instanceof n.yz?(K=R,$=R.status):R&&R.name===r&&($=a.RequestTimeout);const ee={url:Y,status:$,rawResponse:K};return(0,S.isNil)(G.headers[T.xRequestId])||(ee.xRequestId=G.headers[T.xRequestId]),ee}static getFullUrl(I,k){const R=Object.keys(k);if(R.length>0){I+="?";for(const G of R)I+=`${G}=${k[G]}&`;I=I.substring(0,I.length-1)}return I}static applyTimeout(I,k){return(0,S.isNil)(k.timeout)?I:I.pipe((0,l.w)(k.timeout))}static isReportRequest(I){return(0,S.isNil)(I.reportRequest)||!0===I.reportRequest}genericRetryStrategy(I,k,R){return R.pipe((0,p.ZZ)((G,Y)=>{const K=Y+1,$=x.formatError(I,k.params,G,k);if(x.isReportRequest(k)&&(k.reportRequestData={...k.reportRequestData,retryCount:String(K)},x.httpErrorEventsSubject.next({response:$,options:k})),K>k.config.maxRetries||!x.isRetryableError(G,k.config,this.networkStatusService))return(0,P.$)($);let ee;if(k.config.timeBetweenRetries)ee=k.config.timeBetweenRetries;else{const J=k.config?.exponentialBackoffMaxDelay;ee=1e3,K>1&&(ee=Math.min(1e3*Math.pow(2,K-1),J))}if(G instanceof n.yz&&(429===G.status||503===G.status)){const J=+(G.headers.get("retry-after")||0);isNaN(J)||(ee=Math.max(ee,1e3*J))}return(0,v.O)(ee)}))}initRequest(I,k){const R=k;return R.params={...this.configOptions.params,...k.params},R.headers={...this.configOptions.headers,...k.headers},R.config={...this.configOptions.config,...k.config},R.reportRequestData={...this.configOptions.reportRequestData,...k.reportRequestData},R.reportRequest=this.configOptions.reportRequest&&k.reportRequest,R.includeRequestId&&(R.headers[T.xRequestId]=(0,g.bz)()),[R,x.formatUrl(I,R.params)]}makeRequest(I,k,R={}){return this.makeRequestEx(I,k,R).pipe((0,m.T)(G=>R?.includeFullResponse?G:G.body))}get(I,k={}){return this.makeRequest("GET",I,k)}delete(I,k={}){return this.makeRequest("DELETE",I,k)}post(I,k={}){return this.makeRequest("POST",I,k)}patch(I,k={}){return this.makeRequest("PATCH",I,k)}put(I,k={}){return this.makeRequest("PUT",I,k)}makeRequestEx(I,k,R={}){const[G,Y]=this.initRequest(k,R);x.isReportRequest(G)&&x.httpStartEventsSubject.next({method:I,url:Y,options:G}),G.reportRequestData.requestStartTime=Date.now().toString();const K=this.http.request(I,Y,{body:G.body,params:G.params,headers:G.headers,responseType:G.responseType,observe:"response",withCredentials:!!G.withCredentials&&G.withCredentials});return x.applyTimeout(K,this.configOptions.config).pipe((0,_.l)($=>this.genericRetryStrategy(Y,G,$)),(0,m.T)($=>{const ee=(0,S.extend)($,{config:{data:G.body}});return G.reportRequestData.requestEndTime=Date.now().toString(),x.isReportRequest(G)&&"false"!==G.reportRequestData.reportSuccessTelemetry&&x.httpSuccessEventsSubject.next({response:ee,options:G}),ee}))}getResponse(I,k={}){return this.makeRequestEx("GET",I,k)}}(c=x).httpErrorEventsSubject=new O.B7,c.httpSuccessEventsSubject=new O.B7,c.httpStartEventsSubject=new O.B7;var V=d(58527);let D=(()=>{var F;class I{constructor(R,G){this.http=R,this.networkStatusService=G}createEndpoint(R){return new x(this.http,this.networkStatusService,R)}}return(F=I).\u0275fac=function(R){return new(R||F)(V.KVO(n.Qq),V.KVO(g.A5))},F.\u0275prov=V.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),I})()},17669:(Ue,W,d)=>{"use strict";d.d(W,{FY:()=>p,PK:()=>n,QC:()=>m,qW:()=>l});var n=function(_){return _.Space="Space",_.CapsLock="CapsLock",_.Backspace="Backspace",_.ArrowLeft="ArrowLeft",_.ArrowRight="ArrowRight",_.Enter="Enter",_.Escape="Escape",_.PrimaryType="abc",_.SecondaryType="*&$",_}(n||{}),l=function(_){return _[_.Off=0]="Off",_[_.Once=1]="Once",_[_.Always=2]="Always",_}(l||{});const p=new Map([[["0",")"],"Digit0"],[["1","!"],"Digit1"],[["2","@"],"Digit2"],[["3","#"],"Digit3"],[["4","$"],"Digit4"],[["5","%"],"Digit5"],[["6","^"],"Digit6"],[["7","&"],"Digit7"],[["8","*"],"Digit8"],[["9","("],"Digit9"],[[";",":"],"Semicolon"],[["/","?"],"Slash"],[["`","~"],"Backquote"],[["[","{"],"BracketLeft"],[["\\","|"],"Backslash"],[["]","}"],"BracketRight"],[["'",'"'],"Quote"],[[".",">"],"Period"],[[",","<"],"Comma"],[["-","_"],"Minus"],[["=","+"],"Equal"]]),m=new Map([[[";",":"],186],[["=","+"],187],[[",","<"],188],[["-","_"],189],[[".",">"],190],[["/","?"],191],[["`","~"],192],[["[","{"],219],[["\\","|"],220],[["]","}"],221],[["'",'"'],222]])},93012:(Ue,W,d)=>{"use strict";d.d(W,{me:()=>y,RF:()=>xt});var n=d(61142),l=d(29370),p=d(47973),m=d(16490),_=d(65240),P=d(61904),v=d(51006),O=d(61876),S=d(58527);let y=(()=>{var ct;class Gt{}return(ct=Gt).\u0275fac=function(st){return new(st||ct)},ct.\u0275mod=S.$C({type:ct}),ct.\u0275inj=S.G2t({imports:[n.MD,p.wG,m.vF,l.m_,O.bm,P.z_,v.YF,_.h.forChild()]}),Gt})();var r=d(76614),i=d(80583),a=d(16229),h=d(36877),g=d(28653),c=d(83915),T=d(4208),A=d(16421),L=d(17669),x=d(2218),V=d(81247),D=d(28139);const F=["container"],I=(ct,Gt)=>({"caps-lock-always":ct,"caps-lock-once":Gt}),k=()=>["1","2","3","4","5","6","7","8","9","0"],R=ct=>({keys:ct}),G=()=>["q","w","e","r","t","y","u","i","o","p"],Y=()=>["a","s","d","f","g","h","j","k","l","@"],K=()=>["z","x","c","v","b","n","m",",",".","?"],$=ct=>({text:ct}),ee=()=>["`","~","!","@","#","$","%","^","&","*"],J=()=>["=","+","(",")","[","]","{","}","-","_"],z=()=>["\xa3","\u20ac","'",'"',"|",";",":",",",".","?"],te=()=>["\u2122","\xa9","\xa2","\xa5","\xa1","\xbf","<",">","\\","/"],X=ct=>({name:ct,svgIcon:"space_bar"}),re=(ct,Gt)=>({text:ct,key:Gt,class:"text-capitalize"}),ge=(ct,Gt,pn)=>({key:ct,class:"caps-lock-button",name:Gt,svgIcon:pn}),oe=ct=>({name:ct,svgIcon:"keyboard_arrow_left"}),xe=ct=>({name:ct,svgIcon:"keyboard_arrow_right"}),ue=(ct,Gt)=>({name:ct,key:Gt,svgIcon:"backspace"}),N=ct=>({name:ct,text:"Hide",class:"text-capitalize"}),se=(ct,Gt)=>({text:ct,key:Gt,class:"text-lower-case"});function ce(ct,Gt){if(1&ct&&(S.qex(0),S.j41(1,"tr",null,11),S.eu8(3,14),S.j41(4,"td",15),S.eu8(5,16),S.k0s()(),S.j41(6,"tr"),S.eu8(7,14),S.j41(8,"td",17),S.eu8(9,16),S.k0s(),S.j41(10,"td",17),S.eu8(11,16),S.k0s()(),S.j41(12,"tr"),S.eu8(13,14),S.j41(14,"td",18),S.eu8(15,16),S.k0s()(),S.j41(16,"tr"),S.eu8(17,14),S.k0s(),S.j41(18,"tr")(19,"td",17),S.eu8(20,16),S.k0s(),S.j41(21,"td",19),S.eu8(22,16),S.k0s(),S.j41(23,"td",17),S.eu8(24,14),S.k0s(),S.j41(25,"td",20),S.eu8(26,16),S.k0s()(),S.bVm()),2&ct){const pn=S.XpG(),st=S.sdS(5),mn=S.sdS(9),Bn=S.sdS(11),En=S.sdS(13),Cn=S.sdS(15),fn=S.sdS(17),dt=S.sdS(19),nn=S.sdS(21),yn=S.sdS(23);S.R7$(3),S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(18,R,S.lJ4(17,k))),S.R7$(2),S.Y8G("ngTemplateOutlet",dt),S.R7$(2),S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(21,R,S.lJ4(20,G))),S.R7$(2),S.Y8G("ngTemplateOutlet",Cn),S.R7$(2),S.Y8G("ngTemplateOutlet",fn),S.R7$(2),S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(24,R,S.lJ4(23,Y))),S.R7$(2),S.Y8G("ngTemplateOutlet",Bn),S.R7$(2),S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(27,R,S.lJ4(26,K))),S.R7$(3),S.Y8G("ngTemplateOutlet",En),S.R7$(2),S.Y8G("ngTemplateOutlet",mn),S.R7$(2),S.Y8G("ngTemplateOutlet",yn)("ngTemplateOutletContext",S.eq3(29,$,pn.inputSymbol.SecondaryType)),S.R7$(2),S.Y8G("ngTemplateOutlet",nn)}}function Z(ct,Gt){if(1&ct&&(S.qex(0),S.j41(1,"tr"),S.eu8(2,14),S.j41(3,"td",15),S.eu8(4,16),S.k0s()(),S.j41(5,"tr"),S.eu8(6,14),S.j41(7,"td",17),S.eu8(8,16),S.k0s(),S.j41(9,"td",17),S.eu8(10,16),S.k0s()(),S.j41(11,"tr"),S.eu8(12,14),S.j41(13,"td",18),S.eu8(14,16),S.k0s()(),S.j41(15,"tr"),S.eu8(16,14),S.k0s(),S.j41(17,"tr")(18,"td",17),S.eu8(19,16),S.k0s(),S.j41(20,"td",19),S.eu8(21,16),S.k0s(),S.j41(22,"td",17),S.eu8(23,14),S.k0s(),S.j41(24,"td",20),S.eu8(25,16),S.k0s()(),S.bVm()),2&ct){const pn=S.XpG(),st=S.sdS(5),mn=S.sdS(9),Bn=S.sdS(11),En=S.sdS(13),Cn=S.sdS(15),fn=S.sdS(17),dt=S.sdS(19),nn=S.sdS(21),yn=S.sdS(23);S.R7$(2),S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(18,R,S.lJ4(17,ee))),S.R7$(2),S.Y8G("ngTemplateOutlet",dt),S.R7$(2),S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(21,R,S.lJ4(20,J))),S.R7$(2),S.Y8G("ngTemplateOutlet",Cn),S.R7$(2),S.Y8G("ngTemplateOutlet",fn),S.R7$(2),S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(24,R,S.lJ4(23,z))),S.R7$(2),S.Y8G("ngTemplateOutlet",Bn),S.R7$(2),S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(27,R,S.lJ4(26,te))),S.R7$(3),S.Y8G("ngTemplateOutlet",En),S.R7$(2),S.Y8G("ngTemplateOutlet",mn),S.R7$(2),S.Y8G("ngTemplateOutlet",yn)("ngTemplateOutletContext",S.eq3(29,$,pn.inputSymbol.PrimaryType)),S.R7$(2),S.Y8G("ngTemplateOutlet",nn)}}function de(ct,Gt){if(1&ct&&(S.qex(0),S.j41(1,"td")(2,"button",22),S.EFF(3),S.k0s()(),S.bVm()),2&ct){const pn=Gt.$implicit;S.R7$(2),S.FS9("name",pn),S.R7$(),S.JRh(pn)}}function ae(ct,Gt){1&ct&&S.DNE(0,de,4,2,"ng-container",21),2&ct&&S.Y8G("ngForOf",Gt.keys)}function pe(ct,Gt){if(1&ct&&(S.j41(0,"div",26),S.EFF(1),S.k0s()),2&ct){const pn=S.XpG().key;S.R7$(),S.JRh(pn)}}function _e(ct,Gt){if(1&ct&&S.nrm(0,"mat-icon",27),2&ct){const pn=S.XpG().svgIcon;S.Y8G("svgIcon",pn)}}function ke(ct,Gt){if(1&ct&&(S.j41(0,"div",23),S.DNE(1,pe,2,1,"div",24),S.j41(2,"button",22),S.EFF(3),S.DNE(4,_e,1,1,"mat-icon",25),S.k0s()()),2&ct){let pn;const st=Gt.key,mn=Gt.svgIcon,Bn=Gt.text,En=Gt.name,Cn=Gt.class;S.R7$(),S.Y8G("ngIf",st),S.R7$(),S.HbH(Cn),S.FS9("name",null!==(pn=En)&&void 0!==pn?pn:Bn),S.R7$(),S.SpI(" ",Bn," "),S.R7$(),S.Y8G("ngIf",mn)}}function De(ct,Gt){if(1&ct&&S.eu8(0,14),2&ct){const pn=S.XpG(),st=S.sdS(7);S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(2,X,pn.inputSymbol.Space))}}function Me(ct,Gt){if(1&ct&&S.eu8(0,14),2&ct){const pn=S.XpG(),st=S.sdS(7);S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.l_i(2,re,pn.inputSymbol.Enter,pn.gamepadKey.LT))}}function je(ct,Gt){if(1&ct&&S.eu8(0,14),2&ct){const pn=S.XpG(),st=S.sdS(7);S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.sMw(2,ge,pn.gamepadKey.LB,pn.inputSymbol.CapsLock,pn.capsLockOff?"thick_arrow_up":"thick_arrow_dash_up"))}}function $e(ct,Gt){if(1&ct&&S.eu8(0,14),2&ct){const pn=S.XpG(),st=S.sdS(7);S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(2,oe,pn.inputSymbol.ArrowLeft))}}function Oe(ct,Gt){if(1&ct&&S.eu8(0,14),2&ct){const pn=S.XpG(),st=S.sdS(7);S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(2,xe,pn.inputSymbol.ArrowRight))}}function gt(ct,Gt){if(1&ct&&S.eu8(0,14),2&ct){const pn=S.XpG(),st=S.sdS(7);S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.l_i(2,ue,pn.inputSymbol.Backspace,pn.gamepadKey.X))}}function qt(ct,Gt){if(1&ct&&S.eu8(0,14),2&ct){const pn=S.XpG(),st=S.sdS(7);S.Y8G("ngTemplateOutlet",st)("ngTemplateOutletContext",S.eq3(2,N,pn.inputSymbol.Escape))}}function ye(ct,Gt){if(1&ct&&S.eu8(0,14),2&ct){const pn=Gt.text,st=S.XpG(),mn=S.sdS(7);S.Y8G("ngTemplateOutlet",mn)("ngTemplateOutletContext",S.l_i(2,se,pn,st.gamepadKey.RB))}}let Re=(()=>{var ct;class Gt{get capsLockAlways(){return this.capsLockState===L.qW.Always}get capsLockOnce(){return this.capsLockState===L.qW.Once}get capsLockOff(){return this.capsLockState===L.qW.Off}constructor(st,mn,Bn){this.focusManager=st,this.nvKeyboardService=mn,this.gamepadService=Bn,this.primaryType=!0,this.inputSymbol=L.PK,this.gamepadKey={X:"X",LT:"LT",LB:"LB",RB:"RB"},this.capsLockState=L.qW.Off,this.destroy$=new i.B7,this.pressedKeys=new Set}ngAfterViewInit(){const st=(Bn,En,Cn)=>this.gamepadService.onButtonPressed$(Bn,Cn).pipe((0,g.j)(fn=>!fn),(0,c.T)(fn=>[En,fn]));let mn;(0,a.h)(st(A.dt.X,L.PK.Backspace,{repeat:!0}),st(A.dt.LeftTrigger,L.PK.Enter,{repeat:!0}),st(A.dt.LeftBumper,L.PK.CapsLock),st(A.dt.RightBumper,L.PK.PrimaryType),st(A.dt.B,L.PK.Escape)).pipe((0,T.Q)(this.destroy$)).subscribe(([Bn,En])=>{this.processEvent(this.newKeyboardEvent(En?"keydown":"keyup",Bn))}),(0,a.h)((0,h.R)(this.container.nativeElement,"mousedown"),(0,h.R)(this.container.nativeElement,"mouseup")).pipe((0,T.Q)(this.destroy$)).subscribe(Bn=>{if(Bn.target instanceof HTMLButtonElement){const En="mousedown"===Bn.type?"keydown":"keyup";Bn.preventDefault(),("keydown"===En||Bn.target===mn)&&this.processEvent(this.newKeyboardEvent(En,Bn.target.name)),mn=Bn.target}}),this.focusCentralButton()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}toggleKeyboardType(){this.primaryType=!this.primaryType,this.focusCentralButton()}focusCentralButton(){setTimeout(()=>{const st=this.container.nativeElement,mn=st.rows[Math.floor(st.rows.length/2)],Bn=mn.cells[Math.floor(mn.cells.length/2)];this.focusManager.focusChild(Bn,"initial")})}toggleCapsLock(){this.capsLockState=this.capsLockOff?L.qW.Once:this.capsLockOnce?L.qW.Always:L.qW.Off}escapeKeyDown(st){st.stopPropagation()}keyDown(st){st.isTrusted?(this.nvKeyboardService.sendInput(st),(st.key.includes("Arrow")||"Tab"===st.key)&&st.preventDefault()):st.target instanceof HTMLButtonElement&&"Enter"===st.key&&(this.processEvent(st,st.target.name),this.lastKeydownEvent=st)}keyUp(st){st.isTrusted?this.nvKeyboardService.sendInput(st):st.target instanceof HTMLButtonElement&&"Enter"===st.key&&(this.processEvent(st,st.target.name),this.lastKeydownEvent?.target===st.target&&(this.lastKeydownEvent=void 0))}focusOut(){this.lastKeydownEvent?.target instanceof HTMLButtonElement&&(this.processEvent(this.lastKeydownEvent,this.lastKeydownEvent.target.name,"keyup"),this.lastKeydownEvent=void 0)}processEvent(st,mn,Bn){const En=mn??st.key,Cn=this.newKeyboardEvent(Bn??st.type,En),fn=1===En.length,dt="keyup"===Cn.type;En===L.PK.PrimaryType||En===L.PK.SecondaryType?dt&&this.toggleKeyboardType():En===L.PK.CapsLock?dt&&this.toggleCapsLock():fn?(this.nvKeyboardService.sendInput(Cn),this.capsLockOnce&&(this.capsLockState=L.qW.Off)):this.nvKeyboardService.sendInput(Cn)}getKeyCode(st){for(const[Bn,En]of L.FY.entries())if(Bn.includes(st))return En;return[L.PK.Escape,L.PK.Backspace,L.PK.ArrowLeft,L.PK.ArrowRight,L.PK.Enter,L.PK.Space,L.PK.CapsLock].includes(st)?st:1===st.length&&/^[A-Za-z]+$/.test(st)?"Key"+st.toUpperCase():void 0}newKeyboardEvent(st,mn){const Bn=this.nvKeyboardService.needShiftKey(mn);let En=!1;const Cn=this.pressedKeys.has(mn);return"keydown"===st?(Cn||this.pressedKeys.add(mn),En="Shift"!==mn&&Cn):"keyup"===st&&Cn&&this.pressedKeys.delete(mn),new KeyboardEvent(st,{key:mn,code:this.getKeyCode(mn),shiftKey:Bn,repeat:En,modifierCapsLock:!this.capsLockOff,view:window,bubbles:!0,cancelable:!0})}}return(ct=Gt).\u0275fac=function(st){return new(st||ct)(S.rXU(O.c_),S.rXU(xt),S.rXU(A.bi))},ct.\u0275cmp=S.VBU({type:ct,selectors:[["nv-keyboard"]],viewQuery:function(st,mn){if(1&st&&S.GBs(F,5),2&st){let Bn;S.mGM(Bn=S.lsd())&&(mn.container=Bn.first)}},hostBindings:function(st,mn){1&st&&S.bIt("keydown.escape",function(En){return mn.escapeKeyDown(En)})("keydown",function(En){return mn.keyDown(En)})("keyup",function(En){return mn.keyUp(En)})("focusout",function(){return mn.focusOut()})},decls:24,vars:6,consts:[["container",""],["keyList",""],["composite",""],["spaceBar",""],["enter",""],["capsLock",""],["arrowLeft",""],["arrowRight",""],["backspace",""],["hide",""],["keyboardType",""],["row1",""],["nvTrapFocus","","nvSpatialNavigationContainer","",3,"ngClass"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["colspan","4",1,"top-right-cell"],[3,"ngTemplateOutlet"],["colspan","2"],["rowspan","2","colspan","4"],["colspan","6"],["colspan","4"],[4,"ngFor","ngForOf"],["mat-button","",3,"name"],[1,"key-container"],["class","keypad-circle",4,"ngIf"],[3,"svgIcon",4,"ngIf"],[1,"keypad-circle"],[3,"svgIcon"]],template:function(st,mn){1&st&&(S.j41(0,"table",12,0),S.DNE(2,ce,27,31,"ng-container",13)(3,Z,26,31,"ng-container",13),S.k0s(),S.DNE(4,ae,1,1,"ng-template",null,1,S.C5r)(6,ke,5,7,"ng-template",null,2,S.C5r)(8,De,1,4,"ng-template",null,3,S.C5r)(10,Me,1,5,"ng-template",null,4,S.C5r)(12,je,1,6,"ng-template",null,5,S.C5r)(14,$e,1,4,"ng-template",null,6,S.C5r)(16,Oe,1,4,"ng-template",null,7,S.C5r)(18,gt,1,5,"ng-template",null,8,S.C5r)(20,qt,1,4,"ng-template",null,9,S.C5r)(22,ye,1,5,"ng-template",null,10,S.C5r)),2&st&&(S.Y8G("ngClass",S.l_i(3,I,mn.capsLockAlways,mn.capsLockOnce)),S.R7$(2),S.Y8G("ngIf",mn.primaryType),S.R7$(),S.Y8G("ngIf",!mn.primaryType))},dependencies:[n.YU,n.Sq,n.bT,n.T3,p.iV,l.An,x.R,V.D,D.PW],styles:['table[_ngcontent-%COMP%]{width:100vw;height:23.4vw;border-spacing:0;direction:ltr}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:20%}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] td.top-right-cell[_ngcontent-%COMP%]{width:20%}table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;font-size:max(1.5vw,14px);font-weight:400;text-transform:lowercase;place-content:center;align-items:center;border:1px solid rgba(0,0,0,.5);background-color:#29292980}table[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:flex;width:unset;height:unset;font-size:max(1.5vw,14px)}table[_ngcontent-%COMP%] button.text-capitalize[_ngcontent-%COMP%]{text-transform:capitalize}table[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%], table[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]{border:1px solid #ffffff}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%]{position:relative;height:100%}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:max(1.5vw,14px)}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before{position:absolute;background-color:#fff;border-radius:50%;width:calc(max(1.5vw,14px)/2);height:calc(max(1.5vw,14px)/2);top:10px;left:10px;content:""}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] .keypad-circle[_ngcontent-%COMP%]{display:table-cell;position:absolute;background-color:#0b8abc;width:max(1.5vw,14px);height:max(1.5vw,14px);border-radius:50%;line-height:max(1.5vw,14px);font-size:max(.8vw,6px);color:#fff;text-align:center;vertical-align:middle;top:calc(50% - (max(1.5vw,14px)/2));right:10px;z-index:1;pointer-events:none}table.caps-lock-always[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(.text-capitalize):not(.text-lower-case), table.caps-lock-once[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(.text-capitalize):not(.text-lower-case){text-transform:uppercase}table.caps-lock-always[_ngcontent-%COMP%]:not(.caps-lock-once) .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before, table.caps-lock-once[_ngcontent-%COMP%]:not(.caps-lock-once) .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before{background-color:#76b900}']}),Gt})();var Ze=d(3457);let et=(()=>{var ct;class Gt{}return(ct=Gt).\u0275fac=function(st){return new(st||ct)},ct.\u0275cmp=S.VBU({type:ct,selectors:[["nv-keyboard-hint"]],decls:6,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center"],[1,"fab-hint"]],template:function(st,mn){1&st&&(S.j41(0,"div",0)(1,"div",1),S.EFF(2,"Y"),S.k0s(),S.j41(3,"p"),S.EFF(4),S.nI1(5,"translate"),S.k0s()()),2&st&&(S.R7$(4),S.JRh(S.bMT(5,1,mn.hint)))},dependencies:[Ze.DJ,Ze.sA,_.D9],styles:[".fab-hint[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:18px;line-height:64px;letter-spacing:0;font-weight:700;display:flex;background-color:#0b8abc;border-radius:50%;color:#fff;justify-content:center;align-items:center;width:64px;height:64px}.tv-view[_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{font-size:36px;line-height:128px}.isLtr[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}p[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:20px;line-height:23px;letter-spacing:0;font-weight:400;white-space:nowrap;margin:0}.tv-view[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] p[_ngcontent-%COMP%]{font-size:40px;line-height:46px}"]}),Gt})(),xt=(()=>{var ct;class Gt{get enabled(){return this._enabled}set enabled(st){this._enabled=st}get onInput$(){return this.onInput.asObservable()}constructor(st,mn){this.matBottomSheet=st,this.overlay=mn,this.onInput=new i.B7,this.shiftKeyPressed=!1,this._enabled=!1}open(){if(!this.enabled)throw new Error("NvKeyboard is not enabled");return this.matBottomSheet.open(Re,{panelClass:["nv-hig","nv-keyboard"],hasBackdrop:!1,disableClose:!1,autoFocus:!1,restoreFocus:!1})}sendShiftKeyEvent(st,mn){this.onInput.next(new KeyboardEvent(st,{key:"Shift",code:"ShiftLeft",shiftKey:mn,view:window,bubbles:!0,cancelable:!0}))}needShiftKey(st){return'!@#$%^&*()~_+{}|:"<>?'.includes(st)}sendInput(st){if(!this.enabled)throw new Error("NvKeyboard is not enabled");const mn=this.needShiftKey(st.key);mn&&!this.shiftKeyPressed&&"keydown"===st.type&&(this.shiftKeyPressed=!0,this.sendShiftKeyEvent(st.type,!0)),this.onInput.next(st),mn&&this.shiftKeyPressed&&"keyup"===st.type&&(this.shiftKeyPressed=!1,this.sendShiftKeyEvent(st.type,!1))}createHintOverlay(st){const Bn=this.overlay.position().flexibleConnectedTo(st).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:24}]),En=this.overlay.create(new P.rR({positionStrategy:Bn})),Cn=En.attach(new r.A8(et)).instance;return{updateHint:fn=>Cn.hint=fn,dispose:()=>En.dispose()}}}return(ct=Gt).\u0275fac=function(st){return new(st||ct)(S.KVO(m.VK),S.KVO(P.hJ))},ct.\u0275prov=S.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"}),Gt})()},50801:(Ue,W,d)=>{"use strict";d.d(W,{CQ:()=>te,EO:()=>D,j6:()=>P,qQ:()=>v});var n=d(26513),l=d(80583),p=d(57258),m=d(58527),_=d(3567);let P=(()=>{var X;class re{}return(X=re).\u0275fac=function(oe){return new(oe||X)},X.\u0275prov=m.jDH({token:X,factory:X.\u0275fac}),re})(),v=(()=>{var X;class re{constructor(oe,xe){this.config=xe,this.enableListenerSubject=new n.t(!0),this.exitStreamerFlowNotify$=new l.B7,this.logger=oe.getLogger("ProjectInterfaceService"),this.closeOSC$=new l.B7,this.quitStreaming$=new l.B7,this.sendCustomMessage$=new l.B7,this.onCustomMessage$=new l.B7,this.isNonEnglishKeyboardLayout$=new l.B7,this.unsupportedDialogCloseSubject=new p.m(1),this.config.waitForDialogClose||this.closeUnsupportedDialog(),this._streamingBegin$=new l.B7,this._streamingEnd$=new l.B7,this._streamingSessionSetupSuccess$=new l.B7}get streamingSessionSetupSuccess$(){return this._streamingSessionSetupSuccess$.asObservable()}get streamingBegin$(){return this._streamingBegin$.asObservable()}get streamingEnd$(){return this._streamingEnd$.asObservable()}notifyStreamingSessionSetupSuccess(oe){this._streamingSessionSetupSuccess$.next(oe)}notifyStreamingBegin(oe){this._streamingBegin$.next(oe)}notifyStreamingEnd(oe){this._streamingEnd$.next(oe)}get gfnUnsupportedDialogCloseState(){return this.unsupportedDialogCloseSubject.asObservable()}get triggerCloseIGO(){return this.closeOSC$.asObservable()}get triggerQuitStreaming(){return this.quitStreaming$.asObservable()}get enableListener(){return this.enableListenerSubject.asObservable()}get sendCustomMessage(){return this.sendCustomMessage$.asObservable()}get onCustomMessageReceived(){return this.onCustomMessage$.asObservable()}get isNonEnglishKeyboardLayout(){return this.isNonEnglishKeyboardLayout$.asObservable()}get exitStreamerFlowNotify(){return this.exitStreamerFlowNotify$.asObservable()}notifyStreamerFlowExit(){this.exitStreamerFlowNotify$.next(!0)}setNotificationAllowedCallBack(oe){this.logger.verbose("Setting isNotificationAllowed Callback"),this.isNotificationAllowedCallBack=oe}setShortcutCheckCallBacks(oe){this.logger.verbose("Setting checkIfShortcutIsPresent Callback"),this.checkIfShortcutIsPresentCallback=oe}setExitStreamerCallBack(oe){this.logger.verbose("Setting exitStreamer Callback"),this.exitStreamerCallBack=oe}resumeListening(){this.enableListenerSubject.next(!0)}pauseListening(){this.enableListenerSubject.next(!1)}quitStreaming(){this.quitStreaming$.next(!0)}closeIGO(){this.closeOSC$.next(!0)}closeUnsupportedDialog(){this.unsupportedDialogCloseSubject.next(!0)}setForceTouchModeCallback(oe){this.logger.verbose("Setting force touch mode callback"),this.getForceTouchMode=oe}postCustomMessage(oe,xe,ue){const N={messageType:ue||"customMessage",messageRecipient:xe,data:oe};this.logger.verbose("CustomMessage being sent:",N),this.sendCustomMessage$.next(N)}onCustomMessage(oe){oe.data=oe.data.replace("\0",""),this.onCustomMessage$.next(oe)}setIsNonEnglishKeyboardLayout(oe){this.isNonEnglishKeyboardLayout$.next(oe)}}return(X=re).\u0275fac=function(oe){return new(oe||X)(m.KVO(_.J6),m.KVO(P))},X.\u0275prov=m.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),re})();var O=d(43848),S=d(93181),y=d(31315),r=d(75707),i=d(65706),a=d(14714),h=d(83915),g=d(79539),c=d(4208),T=d(10174),A=d(91384),L=d(26875),x=d(74931),V=d(97152),D=function(X){return X.PermissionPending="PermissionPending",X.PermissionDenied="PermissionDenied",X.Muted="Muted",X.Unmuted="Unmuted",X.NoMicFound="NoMicFound",X}(D||{}),F=function(X){return X.PerformaceWarning="microphone.performanceWarning",X.PermissionBlocked="microphone.micBlockedWarning",X.PermissionBlockedMacOS="microphone.micBlockedWarningMacOS",X.PermissionBlockedWindows="microphone.micBlockedWarningWindows",X}(F||{});const I="undefined",k={startState:I,requestedState:I,streamSessionId:I,subSessionId:I,resultState:I};var R=d(32727),G=function(X){return X.Start="Start",X.Stop="Stop",X.Initializing="Initializing",X.Muted="Muted",X.Unmuted="Unmuted",X.PermissionPending="PermissionPending",X.PermissionDenied="PermissionDenied",X.NoMicFound="NoMicFound",X}(G||{}),Y=function(X){return X.Initialize="Initialize",X.UnmuteMic="UnmuteMic",X.MuteMic="MuteMic",X.AwaitPermssion="AwaitPermssion",X.DenyPermission="DenyPermission",X.LookForMic="LookForMic",X.StopMic="StopMic",X}(Y||{});const K=new Map([[D.Unmuted,Y.UnmuteMic],[D.Muted,Y.MuteMic],[D.PermissionPending,Y.AwaitPermssion],[D.PermissionDenied,Y.DenyPermission],[D.NoMicFound,Y.LookForMic]]);var $=d(30783),ee=d(65240),J=d(72945),z=d(78812);let te=(()=>{var X;class re{constructor(oe,xe,ue,N,se,ce,Z){this.snackbar=xe,this.bridgeService=ue,this.translateService=N,this.sharedStorageService=se,this.telemetryService=ce,this.systemInfoService=Z,this.blockName="gfnMicState",this.isInitialized=!1,this.currentMicState=new n.t(D.PermissionPending),this.micInfo=k,this.isMicToggled=!1,this.stopSubject=new l.B7,this.micStateMachine=new R.Z3({tag:R.A6.MicrophoneStateMachine,states:{[G.Start]:{onExit:de=>(0,O.of)(de).pipe((0,r.ZZ)(ae=>this.applyUserPreference(ae)))},[G.Initializing]:{onEnter:de=>(0,O.of)(de).pipe((0,r.ZZ)(ae=>this.completeInitialization(ae)),(0,r.ZZ)(ae=>this.updateStateValue(ae))),onExit:de=>(0,O.of)(de).pipe((0,r.ZZ)(ae=>this.sendInitTelemetry(ae)))},[G.Unmuted]:{onEnter:de=>(0,O.of)(de).pipe((0,r.ZZ)(ae=>this.showToastMessage(ae)),(0,r.ZZ)(ae=>this.writeUserPreference(ae)),(0,r.ZZ)(ae=>this.sendToggleTelemetry(ae)),(0,r.ZZ)(ae=>this.updateStateValue(ae)))},[G.Muted]:{onEnter:de=>(0,O.of)(de).pipe((0,r.ZZ)(ae=>this.writeUserPreference(ae)),(0,r.ZZ)(ae=>this.sendToggleTelemetry(ae)),(0,r.ZZ)(ae=>this.updateStateValue(ae)))},[G.PermissionPending]:{onEnter:de=>(0,O.of)(de).pipe((0,r.ZZ)(ae=>this.sendToggleTelemetry(ae)),(0,r.ZZ)(ae=>this.updateStateValue(ae)))},[G.PermissionDenied]:{onEnter:de=>(0,O.of)(de).pipe((0,r.ZZ)(ae=>this.showToastMessage(ae)),(0,r.ZZ)(ae=>this.sendToggleTelemetry(ae)),(0,r.ZZ)(ae=>this.updateStateValue(ae)))},[G.NoMicFound]:{onEnter:de=>(0,O.of)(de).pipe((0,r.ZZ)(ae=>this.sendToggleTelemetry(ae)),(0,r.ZZ)(ae=>this.updateStateValue(ae)))},[G.Stop]:{}},transitions:{[Y.Initialize]:[{from:G.Start,to:G.Initializing}],[Y.UnmuteMic]:[{from:G.Initializing,to:G.Unmuted},{from:G.Muted,to:G.Unmuted},{from:G.PermissionPending,to:G.Unmuted},{from:G.NoMicFound,to:G.Unmuted},{from:G.PermissionDenied,to:G.Unmuted},{from:G.Unmuted,to:G.Unmuted}],[Y.MuteMic]:[{from:R.cL,to:G.Muted}],[Y.AwaitPermssion]:[{from:G.Initializing,to:G.PermissionPending},{from:G.NoMicFound,to:G.PermissionPending}],[Y.DenyPermission]:[{from:G.Initializing,to:G.PermissionDenied},{from:G.PermissionPending,to:G.PermissionDenied},{from:G.PermissionDenied,to:G.PermissionDenied},{from:G.Muted,to:G.PermissionDenied}],[Y.LookForMic]:[{from:R.cL,to:G.NoMicFound}],[Y.StopMic]:[{from:R.cL,to:G.Stop}]},startState:G.Start,endState:G.Stop}),this.logger=oe.getLogger("MicrophoneService")}toggleMicrophone(){this.isMicToggled=!0,this.currentMicState$.pipe((0,i.s)(1)).subscribe(oe=>{(0,L.set)(this.micInfo,"startState",oe),oe===D.Unmuted?(this.setMicrophoneState(!1),(0,L.set)(this.micInfo,"requestedState",D.Muted),this.logger.info(`Mic button pressed, current state: ${oe}, requested state: Muted`)):(this.setMicrophoneState(!0),(0,L.set)(this.micInfo,"requestedState",D.Unmuted),this.logger.info(`Mic button pressed, current state: ${oe}, requested state: Unmuted`))})}get currentMicState$(){return this.currentMicState.asObservable()}getMicEvent(){this.logger.info("Get microphone event called"),this.bridgeService.executeCommand(x.Ts.Gfn.Streaming.GetMicState).subscribe()}setMicrophoneState(oe){this.bridgeService.executeCommand(x.Ts.Gfn.Streaming.SetMicState,{enable:oe}).subscribe()}start(oe,xe,ue=!1){this.logger.info("Started"),(0,L.set)(this.micInfo,"streamSessionId",oe||I),(0,L.set)(this.micInfo,"subSessionId",xe||I),this.setupCallback(oe,xe,ue),this.getMicEvent()}stop(){this.logger.info("Stopped"),this.isInitialized=!1,this.stopSubject.next(),this.micStateMachine.on(Y.StopMic,null).subscribe(oe=>this.micStateMachine.reset(),oe=>this.micStateMachine.reset())}willBeEnabledOnStreamStart(){return(0,S.p)([this.sharedStorageService.readBlock(this.blockName).pipe((0,a.W)(oe=>(0,O.of)(null))),this.bridgeService.executeCommand(x.Ts.Gfn.Streaming.ShouldDefaultEnableMic)]).pipe((0,h.T)(([oe,xe])=>xe&&((0,L.isEmpty)(oe)||oe?.preference===D.Unmuted)),(0,i.s)(1))}setupCallback(oe,xe,ue=!1){this.logger.info("Microphone callback is set up"),(0,y.zV)([this.bridgeService.executeCommand(x.Ts.Gfn.Streaming.RegisterMicCallback),this.sharedStorageService.readBlock(this.blockName).pipe((0,a.W)(N=>(0,O.of)(null))),ue?(0,O.of)(!0):this.bridgeService.executeCommand(x.Ts.Gfn.Streaming.ShouldDefaultEnableMic),this.systemInfoService.getSystemInfo([_.Lu.BrowserName]),this.systemInfoService.getDeviceOSType(),(0,O.of)(oe),(0,O.of)(xe)]).pipe((0,h.T)(([N,se,ce,Z,de,ae,pe])=>this.getActionAndStateData({...N,blockData:se,shouldDefaultEnableMic:ce,osType:de,shouldApplyPreference:!((de===_.t_.IOS||de===_.t_.IPadOS)&&Z.BrowserName===_.dZ.SAFARI),streamSessionId:ae,streamSubSessionId:pe})),(0,g.H)(([N,se])=>this.micStateMachine.on(N,se).pipe((0,a.W)(ce=>(this.logger.info("error occurred:",ce.code,ce.message,ce.data),(0,O.of)(ce))))),(0,c.Q)(this.stopSubject)).subscribe({next:N=>this.logger.info("Current mic state:",this.micStateMachine.currentState),error:N=>this.logger.info("Unexpected error occurred:",N),complete:()=>this.logger.info("Observable stream terminated")})}getActionAndStateData(oe){return this.logger.info("getActionAndStateData",oe),[this.isInitialized?K.get(oe.uiMicState):Y.Initialize,oe]}updateStateValue(oe){return this.logger.info("updateStateValue",oe),this.currentMicState.next(oe.uiMicState),(0,O.of)(oe)}applyUserPreference(oe){this.logger.info("applyUserPreference",oe);let xe=!1;return oe.shouldApplyPreference&&((0,L.isEmpty)(oe.blockData)&&oe.shouldDefaultEnableMic?(this.logger.info("No preference set, unmuting microphone"),this.setMicrophoneState(!0),xe=!0):(0,L.isEmpty)(oe.blockData)||(this.logger.info("Not initialized, applying stored user preference:",oe.blockData.preference),oe.blockData.preference===D.Unmuted?(this.setMicrophoneState(!0),xe=!0):oe.blockData.preference===D.Muted&&(this.setMicrophoneState(!1),xe=!0))),xe||this.getMicEvent(),(0,O.of)(oe)}sendInitTelemetry(oe){return this.logger.info("sendInitTelemetry",oe),this.telemetryService.push(new V.Yjq({uiMicState:oe.uiMicState,internalMicState:oe.internalMicState,streamSessionId:oe.streamSessionId||I,streamSubSessionId:oe.streamSubSessionId||I})),(0,O.of)(oe)}completeInitialization(oe){return this.logger.info("completeInitialization",oe),this.isInitialized=!0,(0,O.of)(oe)}sendToggleTelemetry(oe){return this.logger.info("sendToggleTelemetry",oe),this.isMicToggled&&((0,L.set)(this.micInfo,"resultState",oe.uiMicState),this.logger.info("Sending telemetry:",this.micInfo),this.isMicToggled=!1,this.telemetryService.push(new V.uxn(this.micInfo))),(0,O.of)(oe)}writeUserPreference(oe){return this.logger.info("writeUserPreference",oe),this.isMicToggled&&oe.shouldApplyPreference?this.sharedStorageService.writeBlock(this.blockName,{preference:oe.uiMicState}).pipe((0,T.u)(oe)):(0,O.of)(oe)}showToastMessage(oe){this.logger.info("showToastMessage",oe);let xe=null;return oe.uiMicState!==D.Unmuted||oe.osType!==_.t_.ChromeOS||oe.shouldDefaultEnableMic?oe.uiMicState===D.PermissionDenied&&(_.zk.isBrowserPlatform()?xe=F.PermissionBlocked:_.zk.isCefPlatform()&&this.isMicToggled&&(oe.osType===_.t_.MacOS?xe=F.PermissionBlockedMacOS:oe.osType===_.t_.Windows&&(xe=F.PermissionBlockedWindows))):xe=F.PerformaceWarning,xe?this.showToastMessageInternal(xe).pipe((0,T.u)(oe)):(0,O.of)(oe)}showToastMessageInternal(oe){return this.logger.info("Showing toast notification"),this.translateService.get(oe).pipe((0,A.M)(xe=>{this.snackbar.open(xe,"",{duration:7e3,horizontalPosition:"left",verticalPosition:"bottom",panelClass:"nv-hig"})}))}}return(X=re).\u0275fac=function(oe){return new(oe||X)(m.KVO(_.J6),m.KVO($.nf),m.KVO(_.NZ),m.KVO(ee.c$),m.KVO(J.yQ),m.KVO(z.H0),m.KVO(_.zW))},X.\u0275prov=m.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),re})()},70521:(Ue,W,d)=>{"use strict";d.d(W,{tD:()=>T,fR:()=>te,_F:()=>x,lS:()=>k,oY:()=>A});var n=d(80583),l=d(16229),p=d(43848),m=d(19392),_=d(55833),P=d(72147),v=d(10174),O=d(65706),S=d(83915),y=d(75707),r=d(8619),i=d(14714);d(57643);var g=function(ce){return ce.Gfn="geforcenow",ce.Nvapp="nvidiaapplication",ce}(g||{}),c=function(ce){return ce.FetchSuccess="SW_FETCH_SUCCESS",ce.RuntimeCacheUpdated="SW_RUNTIME_CACHE_UPDATED",ce}(c||{}),T=function(ce){return ce.ETag="etag",ce.SwCacheBypass="x-sw-cachebypass",ce.XRequestId="x-request-id",ce.SwCacheKeyAppendString="sw-cache-key-append-string",ce.SwCache="sw-cache",ce.SwNotifyFetch="sw-notify-fetch",ce.SwNoDataUpdate="sw-no-data-update",ce}(T||{}),A=function(ce){return ce.SkipWaiting="SKIP_WAITING",ce.GameLaunched="GAME_LAUNCHED",ce.GameExit="GAME_EXIT",ce.CloseStreamerSession="CLOSE_STREAM_SESSION",ce.PushNotification="BROWSER_PUSH_NOTIFICATION",ce.IpcPushNotification="IPC_PUSH_NOTIFICATION",ce.PushNotificationTelemetry="PUSH_NOTIFICATION_TELEMETRY",ce.UiPushNotification="BROWSER_VISIBLE_PUSH_NOTIFICATION",ce.PushNotificationTracing="PUSH_NOTIFICATION_TRACING",ce.SharedStorageUpdate="SHARED_STORAGE_UPDATE",ce.LoggerNotification="LOGGER_NOTIFICATION",ce.GetClientVersion="GET_CLIENT_VERSION",ce.SetLoggerSettings="SET_LOGGING_SETTINGS",ce.GetClientVersionWaitingSW="GET_CLIENT_VERSION_FROM_WAITING_SW",ce}(A||{}),L=function(ce){return ce.INSTALLING="installing",ce.INSTALLED="installed",ce.ACTIVATING="activating",ce.ACTIVATED="activated",ce.REDUNDANT="redundant",ce}(L||{}),x=function(ce){return ce.PushNotificationReceived="PushNotificationReceived",ce.PushNotificationError="PushNotificationError",ce}(x||{}),F=d(58527),I=d(3567);let k=(()=>{var ce;class Z{constructor(ae){this.swSharedStorageUpdate=new n.B7,this.swLoggingUpdate=new n.B7,this.swActivationRequested$=new n.B7,this.swClientVersion=new n.B7,this.logger=ae.getLogger("libraries/service-worker.service"),this.swCacheUpdate$=new n.B7,this.networkFetchSucceeded$=new n.B7,this.swActivated$=new n.B7,this.swUpdateReady$=new n.B7,this.resetSwUpdateCache$=new n.B7,this.swNotifyListener$=new n.B7,this.swPushNotificationListener$=new n.B7,this.swPushNotificationTelemetryListener$=new n.B7,this.swPushNotificationTracing=new n.B7,this.swUpdateReadyCached$=(0,l.h)(this.swUpdateReady$.asObservable(),this.resetSwUpdateCache$).pipe((0,_.t)(1))}get swCacheUpdated(){return this.swCacheUpdate$.asObservable()}get networkResponseReceived(){return this.networkFetchSucceeded$.asObservable()}get swUpdateReady(){return this.swUpdateReady$.asObservable()}get swUpdateReadyCached(){return this.swUpdateReadyCached$}get swActivated(){return this.swActivated$.asObservable()}get swNotifyListener(){return this.swNotifyListener$.asObservable()}get swPushNotificationListener(){return this.swPushNotificationListener$.asObservable()}get swPushNotificationTelemetryListener(){return this.swPushNotificationTelemetryListener$.asObservable()}get swPushNotificationTracingListener(){return this.swPushNotificationTracing.asObservable()}get swSharedStorageUpdate$(){return this.swSharedStorageUpdate.asObservable()}get swLoggingUpdate$(){return this.swLoggingUpdate.asObservable()}get swAssociatedClientVersion(){return this.swClientVersion.asObservable()}initialize(){this.serviceWorkerSupported()?(this.swHandleMessages(),this.swHandleControllerChanges(),this.swHandleUpdates()):this.logger.info("Service worker not supported")}willGFNServiceWorkerHandleRequest(ae,pe){if(pe&&pe===JSON.stringify(!0))return!1;for(const _e in te.staleWhileRevalidate)if(te.staleWhileRevalidate.hasOwnProperty(_e)&&te.staleWhileRevalidate[_e].routePattern.test(ae))return!0;return!1}serviceWorkerSupported(){return"serviceWorker"in navigator}getSWRegistrationInfo(){return this.serviceWorkerSupported()?{isSuccess:window?.SWRegistrationInfo?.isSuccess,error:window?.SWRegistrationInfo?.error}:null}clearSwUpdateCache(){this.logger.info("SW Update Cache: Cleared"),this.resetSwUpdateCache$.next(null)}checkForUpdates(){return this.serviceWorkerSupported()?navigator.serviceWorker.getRegistration().then(ae=>ae?this.swHasUpdate(ae)?ae:ae.update():Promise.reject("Registration does not exist")).then(ae=>({updateAvailable:this.swHasUpdate(ae),error:null})).catch(ae=>(this.logger.error("SW Update Check: Error",ae.toString()),Promise.resolve({updateAvailable:!1,error:ae}))):Promise.reject("SW Update Check: Browser does not support service workers")}activateServiceWorker(){return this.serviceWorkerSupported()?(0,m.H)(navigator.serviceWorker.getRegistration()).pipe((0,P.n)(ae=>ae?this.swHasUpdate(ae)?ae.installing?(this.logger.info("SW Activate: Waiting for new service worker to be installed"),this.swUpdateReady.pipe((0,v.u)(ae),(0,O.s)(1))):(0,p.of)(ae):(this.logger.info("SW Activate: Nothing to activate"),(0,p.of)(null)):(this.logger.info("SW Activate: No service worker registration"),(0,p.of)(null))),(0,S.T)(ae=>ae?.waiting?(this.logger.info("SW Activate: Requested to activate."),ae.waiting.postMessage({type:A.SkipWaiting}),this.swActivationRequested$.next(),!0):(this.logger.info("SW Activate: No service worker waiting."),!1)),(0,O.s)(1)):(this.logger.info("SW Activate: Browser does not support service workers"),(0,p.of)(!1))}get swActivationRequested(){return this.swActivationRequested$.asObservable()}postMessageSw(ae){this.serviceWorkerSupported()?navigator.serviceWorker.ready.then(pe=>{ae.type===A.SharedStorageUpdate?this.logger.verbose("Calling SW postMessage with: ",ae):this.logger.info("Calling SW postMessage with: ",ae),pe.active?.postMessage({type:ae.type,content:ae.content})}):this.logger.info("SW PostMsg: Browser does not support service workers")}swHasUpdate(ae){return!(!ae.installing&&!ae.waiting)}swHandleMessages(){navigator.serviceWorker.addEventListener("message",ae=>{if(ae.data.type===c.RuntimeCacheUpdated){const{cacheName:pe,requestUrl:_e,noDataUpdate:ke}=ae.data.payload;(0,m.H)(caches.open(pe)).pipe((0,y.ZZ)(De=>De.match(_e)),(0,r.p)(De=>!!De),(0,y.ZZ)(De=>De.json()),(0,i.W)(De=>(this.logger.info("error while checking for cache update",De.toString()),(0,p.of)(null)))).subscribe(De=>{De&&(this.logger.info("SW cache updated",pe),this.swCacheUpdate$.next({name:pe,url:_e,data:De,noDataUpdate:ke}))})}else ae?.data.type===A.CloseStreamerSession?(this.logger.info("Msg received from another tab: ",ae.data.type),this.swNotifyListener$.next(ae.data)):ae?.data.type===A.PushNotification?(this.logger.info("Firebase Token received from Service Worker: ",ae.data.type),this.swPushNotificationListener$.next(ae.data)):ae?.data.type===A.PushNotificationTelemetry?(this.logger.info("Telemetry Event received from Service Worker: ",ae.data.type),this.swPushNotificationTelemetryListener$.next(ae.data)):ae?.data.type===A.PushNotificationTracing?(this.logger.info("Telemetry Event received from Service Worker: ",ae.data.type),this.swPushNotificationTracing.next(ae.data)):ae?.data.type===A.SharedStorageUpdate?this.swSharedStorageUpdate.next(ae.data):ae?.data.type===c.FetchSuccess?this.networkFetchSucceeded$.next(ae.data.payload):ae?.data.type===A.LoggerNotification?this.swLoggingUpdate.next(ae.data):ae?.data.type===A.GetClientVersion&&(this.swClientVersion.next(ae.data.content),this.logger.info("Received client version is ",ae.data))})}swHandleUpdates(){return this.serviceWorkerSupported()?(this.logger.info("SW Updates: Init"),navigator.serviceWorker.getRegistration().then(ae=>{if(!ae)return Promise.reject("SW Updates: Registration does not exist");let pe=this.swIsActive();this.logger.info(`SW Updates: Registration Exists, First Installation: ${!pe}`),this.swOnUpdateInstalled(ae,_e=>{this.logger.info("SW Updates: Update installed"),this.logger.info("SW Updates: Notifying"),_e.firstInstallation=!pe,this.swUpdateReady$.next(_e),pe=!0})}).catch(ae=>this.logger.error("SW Updates: Error",ae.toString()))):Promise.reject("SW Updates: Browser does not support service workers")}swOnUpdateInstalled(ae,pe){const _e=De=>{De.state===L.INSTALLED&&pe({state:De.state,ts:Date.now()})},ke=De=>{De&&(this.logger.info("SW Update Listener: Update found"),_e(De),De.addEventListener("statechange",()=>{this.logger.info("SW Update Listener: New worker state change:",De.state),_e(De)}))};ae?(ae.waiting?(this.logger.info("SW Update Listener: An update is ready"),pe({state:L.INSTALLED,ts:Date.now()})):ae.installing&&ke(ae.installing),ae.onupdatefound||(this.logger.info("SW Update Listener: Waiting for any updates to current worker"),ae.addEventListener("updatefound",()=>ke(ae.installing)))):this.logger.info("SW Update Listener: No service worker registration")}swIsActive(){return!!navigator.serviceWorker?.controller}swHandleControllerChanges(){if(!this.serviceWorkerSupported()||navigator.serviceWorker.oncontrollerchange)return;this.logger.info("SW Ctrl Change: Init");let ae=this.swIsActive();this.logger.info("SW Ctrl Change: has active service worker -",ae),navigator.serviceWorker.addEventListener("controllerchange",()=>{if(this.logger.info("SW Ctrl Change: New service worker activated"),this.swActivated$.next({firstInstallation:!ae,ts:Date.now()}),!ae)return this.logger.info("SW Ctrl Change: First activation"),void(ae=!0)})}}return(ce=Z).\u0275fac=function(ae){return new(ae||ce)(F.KVO(I.J6))},ce.\u0275prov=F.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"}),Z})();const R=g.Gfn,G=1440,Y=60*G;var $=function(ce){return ce.LCARS="lcars",ce.LCARSStatic="lcarsStatic",ce.LCARSUserAccount="lcarsUserAccount",ce.LCARSClientStrings="lcarsClientStrings",ce.ServiceUrls="service",ce.ServerInfo="server",ce.RConfig="rconfig",ce.GxTarget="gxtarget",ce.Subscriptions="subscriptions",ce.Telemetry="telemetry",ce.Offline="offline",ce.GfcFeedbacks="gfcFeedbacks",ce.PNSNotifications="pnsNotifications",ce.LoginWallData="loginwalldata",ce.LoginWallStrings="loginwallstrings",ce}($||{});const te={staleWhileRevalidate:{lcars:{name:$.LCARS,cacheName:`${R}-${$.LCARS}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=panels/,expiry:{maxEntries:10,maxAgeSeconds:14*Y,purgeOnQuotaError:!0}},lcarsStatic:{name:$.LCARSStatic,cacheName:`${R}-${$.LCARSStatic}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=staticAppData/,expiry:{maxEntries:5,maxAgeSeconds:14*Y,purgeOnQuotaError:!0}},lcarsUserAccount:{name:$.LCARSUserAccount,cacheName:`${R}-${$.LCARSUserAccount}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=userAccount/,expiry:{maxEntries:2,maxAgeSeconds:14*Y,purgeOnQuotaError:!0}},lcarsClientStrings:{name:$.LCARSClientStrings,cacheName:`${R}-${$.LCARSClientStrings}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=clientStrings/,expiry:{maxEntries:2,maxAgeSeconds:14*Y,purgeOnQuotaError:!0}},serviceUrls:{name:$.ServiceUrls,cacheName:`${R}-${$.ServiceUrls}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v1\/serviceUrls)/,expiry:{maxEntries:10,maxAgeSeconds:14*Y,purgeOnQuotaError:!0}},server:{name:$.ServerInfo,cacheName:`${R}-${$.ServerInfo}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v2\/serverInfo)/,expiry:{maxEntries:10,maxAgeSeconds:14*Y,purgeOnQuotaError:!0}},subscriptions:{name:$.Subscriptions,cacheName:`${R}-${$.Subscriptions}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v4\/subscriptions)/,expiry:{maxEntries:20,maxAgeSeconds:7*Y,purgeOnQuotaError:!0},flushCacheOnResponseCodes:[404]},loginwall:{name:$.LoginWallData,cacheName:`${R}-${$.LoginWallData}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=loginWallData/,expiry:{maxEntries:2,maxAgeSeconds:7*Y,purgeOnQuotaError:!0}},loginwallstrings:{name:$.LoginWallStrings,cacheName:`${R}-${$.LoginWallStrings}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=loginWallStrings/,expiry:{maxEntries:2,maxAgeSeconds:7*Y,purgeOnQuotaError:!0}}},networkFirst:{},networkOnly:{telemetry:{name:$.Telemetry,cacheName:`${R}-${$.Telemetry}-v1`,routePattern:/https:\/\/events\.gfe(stage)?\.nvidia\.com\/v1\.0\/events\/json\?immediateRequest=true/,maxRetentionTime:G},gfcFeedbacks:{name:$.GfcFeedbacks,cacheName:`${R}-${$.GfcFeedbacks}-v1`,routePattern:/https:\/\/telemetry\.gfe(stage)?\.nvidia\.com\/gfc\/v4\.0\//,maxRetentionTime:G},pnsNotifications:{name:$.PNSNotifications,cacheName:`${R}-${$.PNSNotifications}-v1`,routePattern:/https:\/\/(stg.pns.nvidiagrid.net)?(pns.geforcenow.com)?\/v1\/unregister/,maxRetentionTime:G}}}},31222:(Ue,W,d)=>{"use strict";d.d(W,{y:()=>g});var n=d(26875),p=d(57258),m=d(59859),_=d(43848),P=d(83915),v=d(14714),O=d(65706),S=d(75707),y=d(91384),r=d(10174),i=d(3567),a=d(74931),h=d(58527);let g=(()=>{var c;class T{constructor(L,x,V){this.bridgeService=L,this.nativeEventService=V,this.logger=x.getLogger("libraries/shared-storage"),this.cachedSharedStorage$=new p.m(1),this.isInitialized=!1}initialize(){this.logger.info("init"),this.bridgeService.executeCommand(a.Ts.Common.Sharedstorage.Cache).subscribe(L=>{this.logger.info("cached shared storage"),this.cachedSharedStorage$.next(L)},L=>{this.logger.error("error caching shared storage",L)}),this.nativeEventService.get$(i.D4.SharedStorageUpdate,i.Jm.Types.HandlerEventType.StructuredWindowEvent).pipe((0,P.T)(L=>JSON.parse(L)),(0,v.W)(L=>(this.logger.error("error receiving native event",L),this.cachedSharedStorage$.pipe((0,O.s)(1))))).subscribe(L=>{this.logger.info("shared storage cache updated"),this.cachedSharedStorage$.next(L)}),this.isInitialized=!0}readBlock(L){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,O.s)(1),(0,S.ZZ)(x=>{const V=(0,n.get)(x,L.split("/"));return V?(0,_.of)(V):(0,m.$)({code:204})}),(0,v.W)(x=>(this.logReadError(L,x),(0,_.of)({}))))}logReadError(L,x){switch(x.code){case 404:this.logger.info("No shared storage file found, creating a new one.");break;case 204:this.logger.info(`No entry for ${L} exists. Defaulting to empty object.`);break;default:this.logger.error(`Error (${x.code}) ${x.message}. Defaulting to empty object for path ${L}.`)}}writeBlock(L,x,V){const D=this.writeBlockInternal(L,x).pipe((0,O.s)(1),(0,y.M)(F=>{this.logger.info("write status to shared storage for path",L,F)}),(0,v.W)(F=>(this.logger.error("error writing to shared storage for path",L,F),(0,_.of)(!1))));return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,O.s)(1),(0,S.ZZ)(F=>(this.cachedSharedStorage$.next((0,n.setWith)(F,L.split("/"),x,Object)),V?D:(D.subscribe(),(0,_.of)(!0)))))}writeBlockInternal(L,x){return this.bridgeService.executeCommand(a.Ts.Common.Sharedstorage.Write,{path:L.split("/"),data:x})}removeBlock(L){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,O.s)(1),(0,P.T)(x=>{const V=(0,n.unset)(x,L);return this.cachedSharedStorage$.next(x),this.removeBlockInternal(L).subscribe(),V}))}removeBlockInternal(L){return this.bridgeService.executeCommand(a.Ts.Common.Sharedstorage.Remove,{path:L.split("/")}).pipe((0,r.u)(!0),(0,v.W)(x=>(204===x.code?this.logger.warn(`No entry for ${L} exists. Removal failed.`):this.logger.error(`Error (${x.code}) ${x.message}.`),(0,_.of)(!1))))}}return(c=T).\u0275fac=function(L){return new(L||c)(h.KVO(i.NZ),h.KVO(i.J6),h.KVO(i.dU))},c.\u0275prov=h.jDH({token:c,factory:c.\u0275fac,providedIn:"root"}),T})()},72945:(Ue,W,d)=>{"use strict";d.d(W,{yQ:()=>n.y});var n=d(31222);d(74931)},54786:(Ue,W,d)=>{"use strict";d.d(W,{EK:()=>O,Jo:()=>n,O6:()=>v,Pq:()=>p,RH:()=>P,Td:()=>l,eL:()=>S,ie:()=>y,sm:()=>m});const n=":server/authorize?response_mode=query&response_type=id_token+token&device_id=:deviceId&scope=:scope&client_id=:clientId&redirect_uri=:redirectUri&ui_locales=:locale&nonce=:nonce&prompt=select_account",l=":server/authorize?response_type=code&device_id=:deviceId&scope=:scope&client_id=:clientId&redirect_uri=:redirectUri&ui_locales=:locale&nonce=:nonce&prompt=select_account&code_challenge=:codeChallenge&code_challenge_method=S256",p=":server/logout?id_token_hint=:idToken&ui_locales=:locale",m=":server/logout?id_token_hint=:idToken&ui_locales=:locale&post_logout_redirect_uri=:redirect_uri",P={clientToken:null,accessToken:null,idToken:null,user:{sub:"",idp_name:"",idp_id:"",external_id:"",preferred_username:"",consent:{trackTechnicalData:!1,trackBehavioralData:!1},isAuthenticated:!1},clientTokenExpiry:null,accessTokenExpiry:null,idTokenExpiry:null},v="starfleet";var O=function(r){return r.DBName="starfleet",r.DBKey="starfleetSession",r}(O||{}),S=function(r){return r.SharedStorage="sharedStorage",r.IndexedDB="indexedDB",r}(S||{}),y=function(r){return r[r.Failure=0]="Failure",r[r.Success=1]="Success",r[r.Cancel=2]="Cancel",r[r.CloseOnFailure=3]="CloseOnFailure",r}(y||{})},71927:(Ue,W,d)=>{"use strict";d.d(W,{e:()=>S});var n=d(43848),l=d(75707),p=d(83915),m=d(54786),_=d(31222),P=d(26875);class O{static encode(r){const i=new O;return i.data=window.btoa(encodeURIComponent(JSON.stringify(r))),i.authProvider=m.O6,i}static decode(r){return JSON.parse(decodeURIComponent(window.atob(r.data)))}}class S{constructor(r,i,a=m.eL.SharedStorage){this.idTokenRefreshUnderDuration=r,this.data=(0,P.isNil)(i)?Object.assign({},m.RH):i,this.setStorageType(a)}static loadFrom(r,i){let h;return h=r?r instanceof _.y?m.eL.SharedStorage:m.eL.IndexedDB:m.eL.SharedStorage,(h===m.eL.IndexedDB?r.getItem(m.EK.DBKey):r.readBlock("starfleetSession")).pipe((0,l.ZZ)(c=>{const T=c?.authProvider===m.O6?O.decode(c):null,A=new S(i,T,h);return(0,P.isEmpty)(T)?h===m.eL.IndexedDB?A.writeToDb(r):A.writeTo(r):(0,n.of)(A)}))}setStorageType(r){this.storageType=r===m.eL.IndexedDB?m.eL.IndexedDB:m.eL.SharedStorage}writeTo(r){return this.storageType===m.eL.IndexedDB?this.writeToDb(r):r.writeBlock("starfleetSession",O.encode(this.data),!0).pipe((0,p.T)(()=>this))}writeToDb(r){return r.setItem(m.EK.DBKey,O.encode(this.data)).subscribe(),(0,n.of)(this)}hasClientToken(){return!(0,P.isNil)(this.data.clientToken)}isClientTokenValid(){return this.hasClientToken()&&this.data.clientTokenExpiry>Date.now()}hasClientTokenExpired(){return this.hasClientToken()&&this.data.clientTokenExpiry<=Date.now()}hasAccessToken(){return!(0,P.isNil)(this.data.accessToken)}isAccessTokenValid(){return this.hasClientToken()&&this.data.accessTokenExpiry>Date.now()}isIdTokenValid(){return 0===this.data.idTokenExpiry||this.hasClientToken()&&this.data.idTokenExpiry>Date.now()+this.idTokenRefreshUnderDuration}}},46356:(Ue,W,d)=>{"use strict";d.d(W,{gH:()=>_,ie:()=>G.ie,X$:()=>p,hr:()=>n,EK:()=>G.EK,l4:()=>m,eL:()=>G.eL});class n{constructor(){}}var l=d(58527);let p=(()=>{var et;class xt{}return(et=xt).\u0275fac=function(ct){return new(ct||et)},et.\u0275prov=l.jDH({token:et,factory:et.\u0275fac}),xt})();var m=function(et){return et.LoginAlreadyInProgress="Login Already In Progress",et.OpenOAuthUrlStarted="Open OAuth url started",et.OpenOAuthUrlCompleted="Open OAuth url completed",et.LoginStarted="Login Started",et.LoginCompleted="Login Completed",et.LoginRedirectCompleted="Login redirect completed",et.LoginAbortedByUser="Login Aborted: User Cancelled Login",et.LoginAbortedAlreadyLoggedIn="Login Aborted: Already Logged In",et.LoginFailed="Login Failed",et.LoginFailedNoRetry="Login Failed No Retry",et.LoginFailedToStart="Login failed to Start",et.LogoutStarted="Logout Started",et.LogoutCompleted="Logout Completed",et.LogoutFailed="Logout Failed",et.LoginInProgressNeedDisplayCode="Login Started Need Display Code",et.LoginNotReturningFromLoginPage="Login not returning from login page",et}(m||{}),_=function(et){return et.NOT_LOGGED_IN="Not Logged In, Must login",et.USER_OFFLINE="User is Offline",et.ALREADY_LOGGED_IN="Already logged in",et.AUTH_ERROR="Auth Error",et.AGE_RESTRICTED="age_restricted",et.ACCOUNT_LOCKED="account_locked",et.HTTP_START_FAILED="Http Server start failed",et.CLIENT_TOKEN_FAIL="Client token url access failed",et.OAUTH_DATA_EMPTY="JSON parsing fialed for OAUTH Data",et.STARFLEET_REDIRECT_FAIL="Failure on Starfleet Redirect Page",et.REDEEM_AUTHCODE_FAILED="Failuer in redeeming auth code",et.NONCE_VALIDATION_FAILED="Nonce validation failed",et.ACCOUNT_INACTIVE="account_inactive",et.LOGIN_CANCELLED_BY_USER="User pressed back from login page",et.LOGOUT_NOT_SUPPORTED="logout_not_supported",et.LOGOUT_GENERIC_ERROR="logout_generic_error",et.LOGIN_SILENT_LOGIN_FAILED="silent_login_failed",et}(_||{}),G=(d(57258),d(43848),d(59859),d(36466),d(3496),d(91384),d(75707),d(65706),d(83915),d(99047),d(14714),d(55833),d(86447),d(8619),d(43615),d(26875),d(74931),d(3567),d(32727),d(71927),d(54786));d(5798),d(94485),d(2490),d(14709),d(36877),d(56237),d(80583),d(19392),d(10174),d(40198),d(72945),d(99204),d(21333)},57388:(Ue,W,d)=>{"use strict";d.d(W,{n1:()=>N});var n=d(61876),p=d(58527);var g=d(3567),c=d(61142),T=d(3457),A=d(28139),L=d(99204),x=d(49752),V=d(81247);const D=["surveyFrame"];function F(se,ce){if(1&se){const Z=p.RV6();p.j41(0,"div",5)(1,"iframe",6,0),p.bIt("load",function(ae){p.eBV(Z);const pe=p.XpG();return p.Njj(pe.onLoad(ae))})("error",function(){p.eBV(Z);const ae=p.XpG();return p.Njj(ae.onError())}),p.k0s()()}if(2&se){const Z=p.XpG();p.Y8G("hidden",Z.loadingFrame)("ngStyle",Z.nvContainerSize),p.R7$(),p.Y8G("src",Z.getSource(),p.f$h)("ngStyle",Z.nvSize)}}function I(se,ce){if(1&se){const Z=p.RV6();p.j41(0,"div")(1,"nv-hig-dialog",7),p.bIt("primaryButtonClick",function(){p.eBV(Z);const ae=p.XpG();return p.Njj(ae.dismiss())}),p.k0s()()}if(2&se){const Z=p.XpG();p.R7$(),p.Y8G("data",Z.dialogData)}}function k(se,ce){if(1&se&&(p.j41(0,"div",8)(1,"div"),p.nrm(2,"mat-progress-spinner",9),p.k0s()()),2&se){const Z=p.XpG();p.Y8G("ngStyle",Z.nvContainerSize),p.R7$(2),p.Y8G("diameter",35)}}let R=(()=>{var se;class ce{get state(){return this._state}set state(de){this.logger.info("state updated:",de),this._state=de}constructor(de,ae){this.networkStatusService=ae,this.continue=new p.bkB,this.nvOnClose=new p.bkB,this.nvOnSend=new p.bkB,this.loadingFrame=!0,this.firstLoad=!0,this.isLoading=!1,this.loadEvent=null,this._state="main",this.errorText="",this.errorTitle="",this.buttonText="",this.dialogData={},this.logger=de.getLogger("survey-feedback/surveyComponent"),this.logger.info("Attempting to open survey form")}ngOnInit(){this.isLoading=!1,this.loadEvent=null,this.activateOnlineSubscription(),this.isSurveyError&&(this.loadingFrame=!1),this.errorTitle=this.isSurveyError?"feedback.feedbackErrorTitle":"",this.errorText=this.isSurveyError?"feedback.feedbackErrorMessage":"feedback.problemConnectingToNvidia",this.buttonText="feedback.dismiss",this.dialogData={headerText:{text:this.errorTitle},bodyText:{text:this.errorText},primaryButton:{text:this.buttonText}}}onKeyUp(){this.dismiss()}getSource(){return this.nvSource}onError(){this.state="error",this.loadingFrame=!1,this.firstLoad=!1}dismiss(){this.loadEvent&&!this.isSurveyError&&!this.loadingFrame&&this.nvOnClose.emit("escape"),this.nvOnClose.emit("closed")}onLoad(de){this.loadEvent=de,this.isLoading=!0,this.loadEvent&&this.loadEvent.target&&this.loadEvent.target.src&&("main"!==this.state&&(this.state="main"),this.firstLoad=!1,this.logger.info("survey form opened"),this.loadingFrame=!1,setTimeout(()=>this.surveyFrame?.nativeElement.focus()),this.isSurveyError&&this.onError())}eventListener(de){switch(de.data){case"surveyengine.error":this.logger.error("invalid survey response",de.data),this.checkIfFailSilently(),this.onError();break;case"surveyengine.nosurvey":case"surveyengine.cancel":this.dismiss();break;case"surveyengine.thanks":this.nvOnSend.emit("sent")}}checkIfFailSilently(){this.failSilently&&this.firstLoad&&(this.firstLoad=!1,this.logger.error("failing silently .."),this.continue.emit("continue"))}activateOnlineSubscription(){this.onlineSubscription=this.networkStatusService.onlineStatusChanged.subscribe(de=>{"main"!==this.state&&(this.state="main"),this.loadingFrame=!this.isSurveyError,de?this.isLoading||window.addEventListener("message",ae=>{this.eventListener(ae)}):(this.isLoading||this.checkIfFailSilently(),this.logger.info("showing survey error"),this.onError())},de=>{this.logger.error("Error fetching online status at load",de),this.onError()})}ngOnDestroy(){this.onlineSubscription&&this.onlineSubscription.unsubscribe()}}return(se=ce).\u0275fac=function(de){return new(de||se)(p.rXU(g.J6),p.rXU(g.CF))},se.\u0275cmp=p.VBU({type:se,selectors:[["nv-survey"]],viewQuery:function(de,ae){if(1&de&&p.GBs(D,5),2&de){let pe;p.mGM(pe=p.lsd())&&(ae.surveyFrame=pe.first)}},hostBindings:function(de,ae){1&de&&p.bIt("keyup.esc",function(){return ae.onKeyUp()},!1,p.tSv)},inputs:{nvSize:"nvSize",nvContainerSize:"nvContainerSize",nvErrorSize:"nvErrorSize",nvSource:"nvSource",failSilently:"failSilently",isSurveyError:"isSurveyError"},outputs:{continue:"continue",nvOnClose:"nvOnClose",nvOnSend:"nvOnSend"},decls:4,vars:3,consts:[["surveyFrame",""],["nvTrapFocus","",1,"survey-container-parent",3,"ngSwitch"],["class","survey-container",3,"hidden","ngStyle",4,"ngSwitchDefault"],[4,"ngSwitchCase"],["class","survey-loading-dialog-pane","fxLayoutAlign","center center",3,"ngStyle",4,"ngIf"],[1,"survey-container",3,"hidden","ngStyle"],["data-focus-loss-exempt","","id","survey-frame","allow","gamepad",1,"survey-iframe",3,"load","error","src","ngStyle"],[3,"primaryButtonClick","data"],["fxLayoutAlign","center center",1,"survey-loading-dialog-pane",3,"ngStyle"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(de,ae){1&de&&(p.j41(0,"div",1),p.DNE(1,F,3,4,"div",2)(2,I,2,1,"div",3),p.k0s(),p.DNE(3,k,3,2,"div",4)),2&de&&(p.Y8G("ngSwitch",ae.state),p.R7$(2),p.Y8G("ngSwitchCase","error"),p.R7$(),p.Y8G("ngIf",ae.loadingFrame))},dependencies:[c.bT,c.B3,c.ux,c.e1,c.fG,T.sA,A.eI,L.LG,x.u,V.D],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.survey-loading-dialog-pane[_ngcontent-%COMP%]{background-color:#1f2224;height:610px;width:472px;border:0;overflow-y:overlay;overflow-x:hidden;max-height:80vh}.survey-loading-pane[_ngcontent-%COMP%]{margin:24px}.survey-bottom-filler[_ngcontent-%COMP%]{height:64px}.survey-iframe[_ngcontent-%COMP%]{border:0;max-height:80vh}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):hover{background-color:#6ba800}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):focus{background-color:#6ba800}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):active{background-color:#619900}.survey-nav-icon-container[_ngcontent-%COMP%]{display:block;text-align:center;line-height:48px;font-size:48px;height:48px;width:48px}.isLtr[_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{margin-left:25px}html[dir=ltr][_ngcontent-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:25px}.isRtl[_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{margin-right:25px}html[dir=rtl][_ngcontent-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:25px}.survey-container[_ngcontent-%COMP%]{overflow-y:hidden;overflow-x:hidden;max-height:80vh;background:#1f2224}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.survey-container[_ngcontent-%COMP%]{overflow-y:hidden;background:#393939}.survey-iframe[_ngcontent-%COMP%]{width:inherit!important;height:inherit!important;min-height:inherit!important;max-height:inherit;padding-bottom:inherit}}@media (max-width: 599.98px) and (orientation: portrait) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape) and (orientation: portrait){.survey-iframe[_ngcontent-%COMP%]{height:-webkit-fill-available!important}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.survey-container[_ngcontent-%COMP%], .survey-loading-dialog-pane[_ngcontent-%COMP%]{width:100vw!important;height:calc(100% - env(safe-area-inset-bottom))!important;min-height:unset!important;max-height:100%;padding-bottom:env(safe-area-inset-bottom)}.survey-container-parent[_ngcontent-%COMP%]{height:100%}}.tv-view[_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container[_ngcontent-%COMP%]{overflow-y:hidden;background:#393939}.tv-view[_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%]{width:inherit!important;height:inherit!important;min-height:inherit!important;max-height:inherit;padding-bottom:inherit}@media (orientation: portrait){.tv-view[_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%]{height:-webkit-fill-available!important}}.tv-view[_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .survey-loading-dialog-pane[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-loading-dialog-pane[_ngcontent-%COMP%]{width:100vw!important;height:calc(100% - env(safe-area-inset-bottom))!important;min-height:unset!important;max-height:100%;padding-bottom:env(safe-area-inset-bottom)}.tv-view[_nghost-%COMP%] .survey-container-parent[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container-parent[_ngcontent-%COMP%]{height:100%}"]}),ce})();var G=d(26875),Y=d(26513),K=d(57258),$=d(43848),ee=d(75707),J=d(65706),z=d(83915),te=d(1794),X=d(32727),re=d(74150),ge=d(26537),oe=d(65240),xe=d(30783);let N=(()=>{var se;class ce{constructor(de,ae,pe,_e,ke,De){this.sanitizer=ae,this.dialog=pe,this.translateService=_e,this.snackbar=ke,this.focusManager=De,this.feedbackUrl="",this.feedbackUrlLoaded=new Y.t(!1),this.logger=de.getLogger("FeedbackService"),this.userInfo$=new K.m(1)}getUserInfoUpdated(){return this.userInfo$.asObservable()}onAccountStatusChanged(de){this.userInfo$.next(de)}initializeFeedback(de,ae,pe,_e){return this.isAdminHubSurvey=!1,this.isAdminHubSurveyError=!1,pe().pipe((0,ee.ZZ)(ke=>ke?ae().pipe((0,J.s)(1),(0,z.T)(De=>(De?(this.logger.info("AdminHub Feedback Survey feature is enabled and survey found"),this.setFeedbackUrl(De.surveyContainerUrl),this.feedbackUrlLoaded.next(!0),this.isAdminHubSurvey=!0,this.subscribeToSurveyEvents(De)):(this.logger.info("initializeFeedback - AdminHub Feedback Survey is not availanble"),this.isAdminHubSurveyError=!0,this.setFeedbackUrl("")),!0))):(this.logger.info("Surveys Feature rollout is disabled, show error dialog"),this.isAdminHubSurveyError=!0,this.setFeedbackUrl(""),(0,$.of)(!1))))}setFeedbackUrl(de){this.feedbackUrl=this.sanitizer.bypassSecurityTrustResourceUrl(de)}closeFeedbackDialog(){this.logger.trace(X.N_.UserGesture,X.YD.Feedback,X.PC.close," by clicking dismiss"),this.isFeedbackDialogOpen()&&this.globalDialogref.close()}isFeedbackDialogOpen(){return!(0,G.isNil)(this.globalDialogref)&&0===this.globalDialogref.getState()}setUpToastContainer(de){this.tc=de}onOpenFeedbackDialog(de){if(this.logger.trace(X.N_.UserGesture,X.YD.Feedback,X.PC.open,"feedback option"),!this.isFeedbackDialogOpen())return this.globalDialogref=this.focusManager.restoreFocusAfterClosed(()=>{const ae=["dialogPaddingRemove","survey-cdk-overlay-pane"];return this.isAdminHubSurveyError&&ae.push("survey-cdk-overlay-error-pane"),this.dialog.open(R,{panelClass:ae,autoFocus:!1,hasBackdrop:!0,disableClose:!0,maxWidth:"100vw"})}),this.globalDialogref.componentInstance.nvSource=this.feedbackUrl,this.globalDialogref.componentInstance.nvContainerSize={width:this.isAdminHubSurvey?"477px":"472px",height:this.isAdminHubSurvey?"700px":"610px"},this.globalDialogref.componentInstance.nvSize={width:this.isAdminHubSurvey?"477px":"472px",height:this.isAdminHubSurvey?"700px":"610px"},this.globalDialogref.componentInstance.isSurveyError=this.isAdminHubSurveyError,this.globalDialogref.componentInstance.nvOnSend.pipe((0,J.s)(1)).subscribe(ae=>{this.onSurveySent(),this.globalDialogref.close()}),this.globalDialogref.componentInstance.nvOnClose.pipe((0,J.s)(1)).subscribe(ae=>{"escape"===ae&&de(),this.globalDialogref.close()}),this.globalDialogref;this.logger.info("Feedback Dialog is already open")}feedbackUrlInitialized(){return this.feedbackUrlLoaded.asObservable()}onSurveySent(){this.logger.trace(X.N_.UserGesture,X.YD.Feedback,X.PC.close," by clicking send"),this.translateService.get("feedback.thanksMessage").subscribe(de=>{this.snackbar.open(de,"",{duration:7e3,horizontalPosition:"left",verticalPosition:"bottom",panelClass:["nv-hig"]})}),this.logger.info("survey sent")}subscribeToSurveyEvents(de){de?(this.surveyEventReferenceSubmitted=(0,te.subscribeToIFrameEvents)({surveyId:de.surveyId,type:te.SurveyEventType.Submitted},this.surveyEventListenerSubmitted.bind(this)),this.surveyEventReferenceDismissed=(0,te.subscribeToIFrameEvents)({surveyId:de.surveyId,type:te.SurveyEventType.Dismissed},this.surveyEventListenerDismissed.bind(this)),this.surveyEventReferenceCloseDialog=(0,te.subscribeToIFrameEvents)({surveyId:de.surveyId,type:te.SurveyEventType.CloseDialog},this.surveyEventListenerCloseDialog.bind(this))):this.logger.info("Error subscribing to survey events since survey result is empty")}surveyEventListenerSubmitted(){this.logger.info("Feedback Service - Survey Submitted, close Modal Dialog..."),this.onSurveySent(),this.closeFeedbackDialog(),this.surveyEventReferenceSubmitted.unsubscribe()}surveyEventListenerDismissed(){this.logger.info("Feedback Service - Survey Dismissed, close Modal Dialog..."),this.closeFeedbackDialog(),this.surveyEventReferenceDismissed.unsubscribe()}surveyEventListenerCloseDialog(){this.logger.info("Feedback Service - closing Modal Dialog..."),this.closeFeedbackDialog(),this.surveyEventReferenceCloseDialog.unsubscribe()}}return(se=ce).\u0275fac=function(de){return new(de||se)(p.KVO(g.J6),p.KVO(re.up),p.KVO(ge.bZ),p.KVO(oe.c$),p.KVO(xe.nf),p.KVO(n.c_))},se.\u0275prov=p.jDH({token:se,factory:se.\u0275fac,providedIn:"root"}),ce})()},52299:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AA:()=>getString,It:()=>isValidType4UUID,KA:()=>base64Encode,Q2:()=>isBase64,RL:()=>invalidPipeArgumentError,bz:()=>generateUuid,eJ:()=>cloneOrNull,gX:()=>isTimeoutOrConnectivityError,l2:()=>normalizeUrl,tO:()=>formatLogString});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26875),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);function normalizeUrl(Ue){let W="";return Ue.forEach((d,n)=>{!d.startsWith("/")&&0!==n&&(W+="/"),d.endsWith("/")?W+=d.slice(0,d.length-1):W+=d}),W}function toLowerCaseOrEmpty(Ue){return Ue&&Ue.toLowerCase()||""}let CachedUuid=(()=>{class W{static getUuid(){return W.uuid}static refreshUuid(){W.uuid=generateUuidInternal()}}return W.uuid=null,W})();function generateUuidInternal(){let Ue=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){const n=(Ue+16*Math.random())%16|0;return Ue=Math.floor(Ue/16),("x"===d?n:3&n|8).toString(16)})}function generateUuid(Ue=!1){return Ue?CachedUuid.getUuid():generateUuidInternal()}function invalidPipeArgumentError(Ue,W){return Error(`InvalidPipeArgument: '${W}' for pipe '${Ue.toString()}'`)}function getString(Ue,W){let d=Ue&&"string"!=typeof Ue?JSON.stringify(Ue):Ue||"";return W&&(d=d.substr(0,W)),d}function isTimeoutOrConnectivityError(Ue){return!((0,lodash__WEBPACK_IMPORTED_MODULE_0__.isNil)(Ue)||(0,lodash__WEBPACK_IMPORTED_MODULE_0__.isNil)(Ue.status)||0!==Ue.status&&-100!==Ue.status)}function formatLogString(Ue,W,d,n){let l="";for(const _ of n)try{l+="string"==typeof _?_:JSON.stringify(_,null,"\t"),l+=" "}catch{}return`${d.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[W]} ${Ue} ${l}`}function base64Encode(Ue,W,d){return d&&(Ue=window.encodeURIComponent(Ue)),W&&(Ue=window.unescape(Ue)),window.btoa(Ue)}function isBase64(Ue){if(""===Ue||""===Ue.trim())return!1;try{return btoa(atob(Ue))===Ue}catch{return!1}}function isValidType4UUID(Ue){return!!/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-4[a-f0-9]{3}\b-[89aAbB][a-f0-9]{3}\b-[0-9a-fA-F]{12}$/gi.test(Ue)}function cloneOrNull(Ue){return Ue?{...Ue}:null}function evalCss(expr){return eval(expr.trim().replace(/calc/g,"").replace(/px/g,"").replace(/100vw/g,window.innerWidth.toString()).replace(/100vh/g,window.innerHeight.toString()).replace(/[^-()\d/*+.]/g,""))}CachedUuid.refreshUuid()},32727:(Ue,W,d)=>{"use strict";d.d(W,{EU:()=>i,F0:()=>Ze,PC:()=>G,YD:()=>R,N_:()=>Y,V$:()=>S,_d:()=>g,A5:()=>D,TE:()=>O,mZ:()=>h,Z3:()=>je,A6:()=>$e,cL:()=>Me,KA:()=>c.KA,eJ:()=>c.eJ,nK:()=>ye,m1:()=>qt,tO:()=>c.tO,pQ:()=>k,bz:()=>c.bz,EL:()=>st,Qt:()=>gt,AA:()=>c.AA,IT:()=>ue,RL:()=>c.RL,Nw:()=>et,Q2:()=>c.Q2,Ls:()=>Re,gX:()=>c.gX,mI:()=>ee,It:()=>c.It,l2:()=>c.l2,hH:()=>N});var n=d(57258),l=d(43848),p=d(63997),m=d(3496),_=d(35146),P=d(91384);class v extends n.m{constructor(Bn){super(Bn),this.lastValue=null}getValue(){return this.lastValue}setValue(Bn){this.lastValue=Bn}next(Bn){this.lastValue=Bn,super.next(Bn)}clear(){this.lastValue=null}}class O{constructor(Bn,En=!0,Cn=!0,fn=!0,dt=-1){this.workerFn=Bn,this.cacheLastResult=Cn,this.clearCacheOnRefresh=fn,this.cacheLifeTime=dt,this.internalSubject=null,this.subscription=null,En||this.get$()}refresh(){const Bn=new n.m(1);this.cacheLastResult&&this.internalSubject instanceof v&&this.clearCacheOnRefresh&&this.internalSubject.clear();const En=this.ensureEntryIsInitialized(!0);return En&&this.pipeNewDataToReplaySubject(En,Bn),Bn.asObservable()}setData(Bn,En=!1){this.internalSubject instanceof v&&this.internalSubject.setValue(Bn),En&&(this.ensureEntryIsInitialized(!1),this.pipeNewDataToReplaySubject((0,l.of)(Bn),null))}getData(){return this.internalSubject instanceof v?this.internalSubject.getValue():null}get$(){const Bn=this.ensureEntryIsInitialized(!1);return Bn&&this.pipeNewDataToReplaySubject(Bn,null),this.internalSubject.asObservable()}getRefreshObservable(){return(0,p.v)(()=>this.refresh())}pipeNewDataToReplaySubject(Bn,En){(0,m.O)(0).pipe((0,P.M)(Cn=>this.subscription=Bn.subscribe(fn=>{En&&En.next(fn),this.internalSubject&&this.internalSubject.next(fn),this.cacheLastResult&&this.cacheLifeTime>=0&&(0,m.O)(this.cacheLifeTime).subscribe(()=>{this.internalSubject=null})},fn=>{const dt=this.internalSubject;this.subscription&&this.subscription.unsubscribe(),this.internalSubject=null,En&&En.error(fn),dt&&dt.error(fn)}))).subscribe()}ensureEntryIsInitialized(Bn){if(Bn||!this.internalSubject)return this.subscription&&this.subscription.unsubscribe(),this.internalSubject||(this.internalSubject=this.createNewSubject()),this.workerFn()}createNewSubject(){return this.cacheLastResult?new v(1):new n.m(1)}}class S{constructor(Bn,En=!0,Cn=!0,fn=!0,dt=-1){this.workerFn=Bn,this.lazyInit=En,this.cacheLastResult=Cn,this.clearCacheOnRefresh=fn,this.cacheLifeTime=dt,this.eventStreamMap=new Map}refresh(Bn){return this.ensureMapEntryExists(Bn),this.eventStreamMap.get(Bn).refresh()}refreshAll(){const Bn=[];return this.eventStreamMap.forEach((En,Cn)=>{Bn.push(En.refresh())}),(0,_.yU)(...Bn)}setData(Bn,En,Cn=!1){this.ensureMapEntryExists(Bn),this.eventStreamMap.get(Bn).setData(En,Cn)}getData(Bn){return this.ensureMapEntryExists(Bn),this.eventStreamMap.get(Bn).getData()}get$(Bn){return this.ensureMapEntryExists(Bn),this.eventStreamMap.get(Bn).get$()}ensureMapEntryExists(Bn){this.eventStreamMap.has(Bn)||this.eventStreamMap.set(Bn,new O(()=>this.workerFn(Bn),this.lazyInit,this.cacheLastResult,this.clearCacheOnRefresh,this.cacheLifeTime))}}var y=d(72653);const r=(0,y.BQ)({passive:!0,capture:!0});class i{constructor(){this._events=new Map,this._delegateEventHandler=Bn=>{const En=(0,y.Fb)(Bn);En&&this._events.get(Bn.type)?.forEach((Cn,fn)=>{(fn===En||fn.contains(En))&&Cn.forEach(dt=>dt.handleEvent(Bn))})}}addHandler(Bn,En,Cn,fn){const dt=this._events.get(En);if(dt){const nn=dt.get(Cn);nn?nn.add(fn):dt.set(Cn,new Set([fn]))}else this._events.set(En,new Map([[Cn,new Set([fn])]])),Bn.runOutsideAngular(()=>{document.addEventListener(En,this._delegateEventHandler,r)})}removeHandler(Bn,En,Cn){const fn=this._events.get(Bn);if(!fn)return;const dt=fn.get(En);dt&&(dt.delete(Cn),0===dt.size&&fn.delete(En),0===fn.size&&(this._events.delete(Bn),document.removeEventListener(Bn,this._delegateEventHandler,r)))}}var a=d(58527);let h=(()=>{var mn;class Bn{createStream(Cn,fn=!0,dt=!0,nn=!0,yn=-1){return new O(Cn,fn,dt,nn,yn)}}return(mn=Bn).\u0275fac=function(Cn){return new(Cn||mn)},mn.\u0275prov=a.jDH({token:mn,factory:mn.\u0275fac,providedIn:"root"}),Bn})(),g=(()=>{var mn;class Bn{createStream(Cn){return new S(Cn)}}return(mn=Bn).\u0275fac=function(Cn){return new(Cn||mn)},mn.\u0275prov=a.jDH({token:mn,factory:mn.\u0275fac,providedIn:"root"}),Bn})();var c=d(52299),T=d(36877),A=d(16229),L=d(10174),x=d(34593),V=d(53461);let D=(()=>{var mn;class Bn{constructor(){}onlineStatusChanged(){const Cn=(0,T.R)(window,"online").pipe((0,L.u)(!0)),fn=(0,T.R)(window,"offline").pipe((0,L.u)(!1));return(0,A.h)(Cn,fn).pipe((0,x.Z)(window.navigator.onLine),(0,V.F)())}isOnline(){return window.navigator.onLine}}return(mn=Bn).\u0275fac=function(Cn){return new(Cn||mn)},mn.\u0275prov=a.jDH({token:mn,factory:mn.\u0275fac,providedIn:"root"}),Bn})();const F=[];function I(mn,Bn,En){for(;0!==F.length;){const Cn=`${Bn.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[mn]} ${En[0]} ${F[F.length-1]} ${G.close}`;console.log(Cn),F.pop()}}function k(mn,Bn,En,Cn){if(Cn.length>=3&&Cn[1].toString().includes("Tracer"))if(F[F.length-1]!==Cn[1]){if(Cn[2]===G.close){const dt=`${En.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[Bn]} ${Cn[0]} ${F[F.length-1]} ${Cn[2]}`;F.pop(),console.log(dt),F.length&&F.pop()}else Cn[2]===G.open&&F.includes(Cn[1])&&I(Bn,En,Cn);F.push(Cn[1])}else F[F.length-1]===Cn[1]&&F.pop();else if("Clicked on Back button"===Cn[1])return void I(Bn,En,Cn);return(0,c.tO)(mn,Bn,En,Cn)}var R=function(mn){return mn.EvidencePanel="EvidencePanelTracer",mn.Search="SearchTracer",mn.SeeMore="SeeMoreTracer",mn.UserInfo="UserDetails",mn.Login="LoginTracer",mn.Settings="SettingsTracer",mn.Feedback="FeedbackTracer",mn}(R||{}),G=function(mn){return mn.open="Opened",mn.close="Closed",mn}(G||{}),Y=function(mn){return mn.UserGesture="UserGesture",mn.Endpoint="EndPoint",mn.Errormessage="ErrorMessage",mn.PushNotification="PushNotification",mn.UserDetails="UserDetails",mn}(Y||{});function ee(){return"tizen"in window}function ue(){return function ge(){return window.webapis}()?.productinfo?.getSmartTVServerVersion()}function N(mn){if(!mn)return{};const[Bn,En]=mn.split("T-INFOLINK")[1]?.split("-");return{year:Bn,version:En}}var ce=d(80583),Z=d(59859),de=d(65706),ae=d(79539),pe=d(14714),_e=d(4208),ke=function(mn){return mn.InvalidStates="InvalidStates",mn.InvalidTransitions="InvalidTransitions",mn.InvalidStartState="InvalidStartState",mn.InvalidEndState="InvalidEndState",mn.InvalidWildcardState="InvalidWildcardState",mn.TransitionFromEndState="TransitionFromEndState",mn.TransitionNotFound="TransitionNotFound",mn.TransitionError="TransitionError",mn.UnreachableState="UnreachableState",mn.InvalidStateName="InvalidStateName",mn.AmbiguousTransition="AmbiguousTransition",mn.WildcardTargetState="WildcardTargetState",mn.MultipleWildcardTransitions="MultipleWildcardTransitions",mn}(ke||{});class De extends Error{constructor(Bn,En,Cn,fn){super(`${Bn} - ${En} - ${Cn}`),this.name="StateMachineError",this.tag=Bn,this.code=En,this.data=fn}}const Me="**";class je{get currentState(){return this._currentState}constructor(Bn,En){this._serializer=new ce.B7,this._reset=new ce.B7,this.setupStateMachine(Bn),En&&this.validateStateMachine(),this.setupSerializer()}on(Bn,En){return(0,p.v)(()=>{const Cn={action:Bn,stateData:En,response:new n.m(1)};return this._serializer.next(Cn),Cn.response.asObservable()})}reset(){this._reset.next(),this._currentState=this._startState,this.setupSerializer()}executeTransition(Bn,En){if(this._currentState===this._endState)return(0,Z.$)(this.createStateMachineError(ke.TransitionFromEndState,"Cannot transition from end state"));const Cn=this._transitions[Bn]?.find(Xn=>Xn.from===this._currentState||Xn.from===Me)?.to;if(!Cn)return(0,Z.$)(this.createStateMachineError(ke.TransitionNotFound,`Could not find a valid targetState from currentState ${this.currentState} on action ${Bn}`));const fn=this._states[this._currentState],dt=this._states[Cn],nn=fn?.onExit??(Xn=>(0,l.of)(Xn)),yn=dt?.onEnter??(Xn=>(0,l.of)(Xn));return nn(En).pipe((0,de.s)(1),(0,P.M)(()=>this._currentState=Cn),(0,ae.H)(Xn=>yn(Xn)),(0,de.s)(1),(0,pe.W)(Xn=>(0,Z.$)(this.createStateMachineError(ke.TransitionError,`Error transitioning to ${Cn}`,Xn))))}setupStateMachine(Bn){if(this._tag=Bn.tag,this._states=Bn.states,!this._states)throw this.createStateMachineError(ke.InvalidStates,"State list cannot be nullish");if(this._transitions=Bn.transitions,!this._transitions)throw this.createStateMachineError(ke.InvalidTransitions,"Transitions list cannot be nullish");if(this._startState=Object.keys(this._states).find(En=>En===Bn.startState),!this._startState)throw this.createStateMachineError(ke.InvalidStartState,`Could not find valid start state with name ${Bn.startState}`);if(this._endState=Object.keys(this._states).find(En=>En===Bn.endState),!this._endState)throw this.createStateMachineError(ke.InvalidEndState,`Could not find valid end state with name ${Bn.endState}`);if(Object.keys(this._states).includes(Me))throw this.createStateMachineError(ke.InvalidWildcardState,"Wildcard state name cannot be specified manually in state definitions");this._currentState=Bn.startState}setupSerializer(){this._serializer.pipe((0,ae.H)(Bn=>this.executeTransition(Bn.action,Bn.stateData).pipe((0,ae.H)(En=>(Bn.response.next(En),Bn.response.complete(),(0,l.of)(En))),(0,pe.W)(En=>(Bn.response.error(En),(0,l.of)(En))))),(0,_e.Q)(this._reset)).subscribe()}createStateMachineError(Bn,En,Cn){return new De(this._tag,Bn,En,Cn)}validateStateMachine(){const Bn=new Map;Object.keys(this._states).forEach(En=>Bn.set(En,!1)),Bn.set(this._startState,!0),Object.keys(this._transitions).forEach(En=>{const Cn=new Map;Object.keys(this._states).forEach(fn=>Cn.set(fn,0)),this._transitions[En].forEach(fn=>{if(fn.from===this._endState)throw this.createStateMachineError(ke.TransitionFromEndState,"Cannot transition from end state");if(fn.to===Me)throw this.createStateMachineError(ke.WildcardTargetState,`Wildcard state cannot be targetState on action ${En}`);if(fn.from===Me&&1!==this._transitions[En].length)throw this.createStateMachineError(ke.MultipleWildcardTransitions,`Cannot specify multiple transitions on action ${En} if one of them is a Wildcard`);if(![...Object.keys(this._states),Me].includes(fn.from))throw this.createStateMachineError(ke.InvalidStateName,`Invalid currentState ${fn.from} on action ${En} to state ${fn.to}`);if(!Object.keys(this._states).includes(fn.to))throw this.createStateMachineError(ke.InvalidStateName,`Invalid targetState ${fn.to} on action ${En} from state ${fn.from}`);Cn.set(fn.from,Cn.get(fn.from)+1),Bn.set(fn.to,!0)}),Cn.forEach((fn,dt)=>{if(fn>1)throw this.createStateMachineError(ke.AmbiguousTransition,`Ambiguous transition on action ${En} from state ${dt}`)})}),Bn.forEach((En,Cn)=>{if(!En)throw this.createStateMachineError(ke.UnreachableState,`State ${Cn} is unreachable`)})}}var $e=function(mn){return mn.MicrophoneStateMachine="MicrophoneStateMachine",mn}($e||{});function Oe(mn){let Bn;switch(mn){case"ArrowUp":Bn=38;break;case"ArrowDown":Bn=40;break;case"ArrowLeft":Bn=37;break;case"ArrowRight":Bn=39;break;case"Enter":Bn=13;break;case"Escape":Bn=27}return{key:mn,keyCode:Bn}}function gt(){return document.activeElement??document}function qt(mn,Bn,En){mn instanceof HTMLIFrameElement||mn.dispatchEvent(new KeyboardEvent(Bn,{...Oe(En),view:window,bubbles:!0,cancelable:!0}))}function ye(mn){mn instanceof HTMLIFrameElement||mn.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))}function Re(mn){return mn?.isTrusted}var Ze=function(mn){return mn.ArrowUp="ArrowUp",mn.ArrowDown="ArrowDown",mn.ArrowLeft="ArrowLeft",mn.ArrowRight="ArrowRight",mn}(Ze||{});function et(mn){return"Escape"===mn.key||"GoBack"===mn.key}function st(mn,Bn,En){const Cn=document.elementFromPoint(mn,Bn)||void 0;if(!Cn)return;const fn=nn=>nn instanceof HTMLElement&&(!En||En(nn));return fn(Cn)?Cn:document.elementsFromPoint(mn,Bn).slice(1).find(nn=>fn(nn))}},32398:(Ue,W,d)=>{"use strict";d.d(W,{f:()=>n,g:()=>l});var n=function(p){return p.AUTHORIZATION_ERROR="AUTHORIZATION_ERROR",p.UNKNOWN="UNKNOWN",p.LOGGED_IN="LOGGED_IN",p.NOT_LOGGED_IN="NOT_LOGGED_IN",p.PENDING_LOGIN="PENDING_LOGIN",p.LOGIN_ERROR="LOGIN_ERROR",p}(n||{}),l=function(p){return p.NotStarted="NotStarted",p.Started="Started",p.LoggedOut="LoggedOut",p.LoggedIn="LoggedIn",p.Pending="Pending",p.Failed="Failed",p}(l||{})},35131:(Ue,W,d)=>{"use strict";d.d(W,{f:()=>y});var n=d(75707),l=d(2490),p=d(32727),m=d(35225),_=d(58527),P=d(61958),v=d(5798),O=d(3567),S=d(38502);let y=(()=>{var r;class i{constructor(h,g,c,T,A){this.endpointFactory=g,this.distributedtracingUtilService=c,this.headerService=A,this.logger=T.getLogger("uasSdkService"),this.uasConfig=h.uasConfig;const{defaultRetries:L,defaultTimeBetweenRetries:x,defaultTimeout:V,retryOnTimeout:D,exponentialBackoffMaxDelay:F}=h.uasConfig;this.uasEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:L,timeout:V,timeBetweenRetries:x,retryOnTimeout:D,exponentialBackoffMaxDelay:F}})}getUrl(h){return(0,p.l2)([this.uasConfig.server,this.uasConfig.version,h])}acquireUser(h,g,c,T,A){this.logger.info("calling acquire user");const L={headers:{Authorization:"Bearer "+h,"Content-Type":"application/json","Accept-Language":T},body:{redirectUri:g,homeUrl:c},reportRequestData:{originalService:m.Uu$.UAS,serviceUseCase:m.OOF.AcquireUser,reportSuccessTelemetry:"true"},includeRequestId:!0};return this.headerService.getCommonHeaders().pipe((0,n.ZZ)(x=>{Object.assign(L.headers,x);const V=this.uasEndpoint.post(this.getUrl("acquire/login"),L);return this.distributedtracingUtilService.handleHttpEndpointSpan(V,L,l.pB.UasAcquireUser,A)}))}getUserAcquisitionState(h,g,c){this.logger.info("checking acquire user state");const T={headers:{Authorization:"Bearer "+h,"Content-Type":"application/json"},params:{requestId:g},reportRequestData:{originalService:m.Uu$.UAS,serviceUseCase:m.OOF.GetAcquisitionState,reportSuccessTelemetry:"true"},includeRequestId:!0};return this.headerService.getCommonHeaders().pipe((0,n.ZZ)(A=>{Object.assign(T.headers,A);const L=this.uasEndpoint.get(this.getUrl("acquire/loginStatus"),T);return this.distributedtracingUtilService.handleHttpEndpointSpan(L,T,l.pB.UasAcquireUser,c)}))}}return(r=i).\u0275fac=function(h){return new(h||r)(_.KVO(P.Vk),_.KVO(v.t),_.KVO(l.Z1),_.KVO(O.J6),_.KVO(S.y1))},r.\u0275prov=_.jDH({token:r,factory:r.\u0275fac,providedIn:"root"}),i})()},86574:(Ue,W,d)=>{"use strict";d.d(W,{l:()=>K});var n=d(26513),l=d(43848),p=d(36466),m=d(80583),_=d(892),P=d(59859),v=d(27731),O=d(36877),S=d(57258),y=d(83915),r=d(75707),i=d(8619),a=d(65706),h=d(14714),g=d(10174),c=d(91384),T=d(32398),A=d(74931),L=d(26875),V=d(35225),D=d(24682),F=d(58527),I=d(3567),k=d(61958),R=d(35131),G=d(28317),Y=d(78812);let K=(()=>{var $;class ee{constructor(z,te,X,re,ge,oe,xe,ue){if(this.config=te,this.uasSdk=X,this.bridgeService=re,this.localeService=ge,this.pathService=oe,this.telemetryUtilService=xe,this.telemetryService=ue,this.httpSubscription=null,this.redirectUrl=null,this.httpRequestSub=null,this.AutoEntitleStateSub=new n.t(T.g.NotStarted),this.loginInitiated=!1,this.pendingEntitlement=!1,this.uasKey="AutoEntitleState",this.redirectInputKey="inputData",this.redirectResponseKey="responseData",this.tabWindow=null,this.pollingSubscription=null,this.logger=z.getLogger("uas/uas-service"),this.config.uasConfig.redirectUrlIsRelative){const N=window.sessionStorage.getItem(this.uasKey);this.config.starfleet.sameTabLogin&&N&&(this.loginInitiated=N===T.g.Started),this.config.uasConfig.sameTab&&N&&(this.pendingEntitlement=N===T.g.Pending),this.redirectUrl=window.location.origin+this.config.uasConfig.redirectUrl,window.sessionStorage.removeItem(this.uasKey),window.sessionStorage.removeItem(this.redirectInputKey)}}handleHttpRequest(z){const te={};return new URL(z).searchParams.forEach((re,ge)=>{te[ge]=re}),te}get AutoEntitleState(){return this.AutoEntitleStateSub.asObservable()}onLoginInitiated(z){if(this.tabWindow=z,this.logger.info("on login initiated"),this.AutoEntitleStateSub.next(T.g.NotStarted),this.loginInitiated=!0,this.isAutoEntitlementEnabled()){if(this.config.starfleet.useDeviceAuthLogin)return(0,l.of)(null);if(!this.config.starfleet.redirectUrlIsRelative){this.logger.info("starting http server");const[te,X]=this.startHttpServer(this.config.starfleet.portNumbers);return this.httpRequestSub=X,te.pipe((0,y.T)(re=>(this.redirectUrl=this.config.starfleet.redirectUrl.replace("{portnumber}",re.toString()),this.logger.info("Success login init"),{url:this.redirectUrl,observable:X})))}return this.config.starfleet.redirectUrlIsRelative?(this.config.starfleet.sameTabLogin&&window.sessionStorage.setItem(this.uasKey,T.g.Started),(0,l.of)({skipSuccessRedirect:!0})):(this.logger.info("Auto entitle not implemented for android"),(0,l.of)(null))}return this.logger.info("Auto entitle disabled"),(0,l.of)(null)}onLoginFailed(z){if(this.loginInitiated&&this.isAutoEntitlementEnabled()&&(this.loginInitiated=!1,!this.config.starfleet.useDeviceAuthLogin)&&(!this.config.starfleet.redirectUrlIsRelative||this.config.starfleet.redirectUrlIsRelative&&this.config.starfleet.sameTabLogin)){const te=new URL(this.config.starfleet.onCompleteRedirectUrl);te.searchParams.append("error",z||"unknown"),te.searchParams.append("ui_locales",this.localeService.getLocale()),this.tabWindow?this.tabWindow.location.href=te.href:this.bridgeService.executeCommand(A.Ts.Common.Httpserver.SendRedirectResponse,{redirectUrl:te.href,redirectParams:[]}).subscribe(p.l,p.l,()=>this.stopHttpServer())}}stopHttpServer(){this.logger.info("Stopping http server"),this.httpSubscription&&(this.httpSubscription.unsubscribe(),this.httpSubscription=null,this.bridgeService.executeCommand(A.Ts.Common.Httpserver.StopHttpServer).subscribe(z=>this.logger.info("success stopping httpserver",z),z=>this.logger.error("error stopping httpserver",z)),this.logger.info("Success stopping http server"))}startHttpServer(z){const te=new m.B7,X=new m.B7;return this.httpSubscription=this.bridgeService.executeCommand(A.Ts.Common.Httpserver.StartHttpServer,{ports:z,redirectUrl:"",redirectParams:[]}).subscribe(re=>{switch(this.logger.info("httpresponse recieved"),(0,L.get)(re,"callbackReason")){case"serverCreated":this.logger.info("http server created"),te.next((0,L.get)(re,"portNumber")),te.complete();break;case"httpRequest":this.logger.info("http request recieved"),X.next((0,L.get)(re,"url"));break;case"httpRequestAborted":X.error(D.k_.LOGIN_CANCELLED_BY_USER)}},re=>{this.logger.error("error starting httpserver",re),te.error("HTTP_START_FAILED"),X.error("HTTP_START_FAILED")}),[te,X]}isAutoEntitlementEnabled(){return this.config.featureEnablement.UASAutoEntitle}handleOffDeviceAcquisition(z,te){if(te.loginState===T.f.PENDING_LOGIN){const X=new m.B7;this.httpRequestSub=X.asObservable(),this.pollingSubscription=(0,_.Y)(this.config.uasConfig.pollingInterval).pipe((0,r.ZZ)(re=>this.uasSdk.getUserAcquisitionState(z,te.requestId)),(0,i.p)(re=>re.loginState!==T.f.PENDING_LOGIN),(0,a.s)(1),(0,h.W)(re=>(this.logger.error("error in get acquisition state",re),this.sendTelemetry(V.fbu.UALoginFailed,this.stringOrObj(re)),(0,l.of)({loginState:T.f.NOT_LOGGED_IN,requestId:null,landingPageUrl:null})))).subscribe(re=>X.next(re))}return(0,l.of)(te)}handleNativeRedirect(z){return z.landingPageUrl?.length>0?this.bridgeService.executeCommand(A.Ts.Common.Nativeauth.initiateLogIn,{url:z.landingPageUrl}).pipe((0,a.s)(1),(0,g.u)(z)):(0,l.of)(z)}showNextPage(z,te){if(this.config.starfleet.useDeviceAuthLogin)return this.handleOffDeviceAcquisition(z,te);if(this.config.uasConfig.redirectUrlIsRelative)return this.redirectUserBrowser(te);if(this.config.uasConfig.isNativeRedirect)return this.handleNativeRedirect(te);let X=null;return te.loginState!==T.f.UNKNOWN&&te.landingPageUrl?X=new URL(te.landingPageUrl):(X=new URL(this.config.starfleet.onCompleteRedirectUrl),X.searchParams.append("error","unknown")),this.logger.info("redirecting user to: ",X.href),this.bridgeService.executeCommand(A.Ts.Common.Httpserver.SendRedirectResponse,{redirectUrl:X.href,redirectParams:[]}).pipe((0,h.W)(re=>(0,l.of)(te)),(0,g.u)(te))}getRedirectResponse(){let z=null;try{z=JSON.parse(window.localStorage.getItem(this.redirectResponseKey)),this.logger.info("redirect response",z)}catch(te){this.logger.error("failed to parse response JSON",te)}return window.localStorage.removeItem(this.redirectResponseKey),z}validateMessageEvent(z,te){let X=z&&z.data;return X=X&&z.origin===window.location.origin&&z.data.reason===te,!!X}redirectUserBrowser(z){if(z.loginState===T.f.PENDING_LOGIN){if(!(z.landingPageUrl?.length>0))return(0,P.$)("landing page url must be defined for LOGIN_PENDING");const te=this.pathService.getCurrentUrl();if(this.config.uasConfig.sameTab)return window.sessionStorage.setItem(this.redirectInputKey,JSON.stringify({returnUrl:te})),window.sessionStorage.setItem(this.uasKey,T.g.Pending),window.open(z.landingPageUrl,"_self"),v.t;this.tabWindow?this.tabWindow.location.href=z.landingPageUrl:this.tabWindow=window.open(z.landingPageUrl,"_blank"),this.httpRequestSub=(0,O.R)(window,"message").pipe((0,i.p)(X=>this.validateMessageEvent(X,"redirectCallback")),(0,y.T)(()=>this.getRedirectResponse()))}else z.landingPageUrl?.length>0&&(this.config.uasConfig.sameTab?window.open(z.landingPageUrl,"_self"):(this.tabWindow||(this.tabWindow=window.open("","_blank")),this.tabWindow.location.href=z.landingPageUrl));return(0,l.of)(z)}cancelAutoEntitlement(){this.sendTelemetry(V.fbu.UALoginPendingTimedOut,"cancelled or timedout"),this.loginInitiated=!1,this.pendingEntitlement=!1,this.stopHttpServer(),this.pollingSubscription&&(this.pollingSubscription.unsubscribe(),this.pollingSubscription=null)}autoEntitleUser(z,te=!1){if(this.acquireUserLoginStateSub&&!this.acquireUserLoginStateSub.isStopped)return this.logger.info("Auto-entitlment already in progress."),this.acquireUserLoginStateSub.asObservable();if((!this.acquireUserLoginStateSub||this.acquireUserLoginStateSub.isStopped)&&(this.acquireUserLoginStateSub=new S.m(1)),this.AutoEntitleStateSub.next(T.g.Started),this.logger.info("Auto Entitle triggered"),!1===this.loginInitiated&&!1===this.pendingEntitlement)return setTimeout(()=>{this.AutoEntitleStateSub.next(T.g.LoggedIn),this.logger.warn("Auto entitle cancelled, login not initiated"),this.acquireUserLoginStateSub.next(T.f.LOGGED_IN),this.acquireUserLoginStateSub.complete()},0),this.acquireUserLoginStateSub.asObservable();if(this.loginInitiated=!1,!0!==this.isAutoEntitlementEnabled())return setTimeout(()=>{this.AutoEntitleStateSub.next(T.g.LoggedIn),this.logger.info("Auto entitlement is disabled"),this.pendingEntitlement=!1,this.acquireUserLoginStateSub.next(T.f.LOGGED_IN),this.acquireUserLoginStateSub.complete()},0),this.acquireUserLoginStateSub.asObservable();if(!z)return this.AutoEntitleStateSub.next(T.g.LoggedOut),this.logger.warn("Invalid idToken, aborting auto entitle"),this.pendingEntitlement=!1,this.showNextPage(null,{landingPageUrl:null,loginState:T.f.UNKNOWN,requestId:null}).pipe((0,c.M)(re=>{this.stopHttpServer(),this.acquireUserLoginStateSub.next(T.f.NOT_LOGGED_IN),this.acquireUserLoginStateSub.complete()})).subscribe(),this.acquireUserLoginStateSub.asObservable();this.logger.info("triggering auto entitle");let X=null;if(this.pendingEntitlement)X=(0,l.of)(this.getRedirectResponse()),this.pendingEntitlement=!1;else{const re=this.config.uasConfig.redirectUrlIsRelative?this.pathService.getCurrentUrl():this.config.uasConfig.homeUrl;X=this.uasSdk.acquireUser(z,this.redirectUrl,re,this.localeService.getLocale())}return X.pipe((0,r.ZZ)(re=>(this.logger.info("acquire user success",re),this.showNextPage(z,re))),(0,r.ZZ)(re=>{switch(re.loginState){case T.f.LOGGED_IN:return this.stopHttpServer(),this.AutoEntitleStateSub.next(T.g.LoggedIn),this.sendTelemetry(V.fbu.UALoginComplete),(0,l.of)(T.f.LOGGED_IN);case T.f.PENDING_LOGIN:return this.AutoEntitleStateSub.next(T.g.Pending),this.sendTelemetry(V.fbu.UALoginPending,`requestId: ${re.requestId}, page: ${re.landingPageUrl}`),this.logger.info("acquire user input required, pending"),this.httpRequestSub.pipe((0,a.s)(1),(0,r.ZZ)(ge=>{const oe=this.config.starfleet.useDeviceAuthLogin||this.config.uasConfig.redirectUrlIsRelative?ge:this.handleHttpRequest(ge);return this.logger.info("user input completed: ",oe),this.showNextPage(z,oe)}),(0,y.T)(ge=>ge.loginState===T.f.LOGGED_IN?(this.stopHttpServer(),this.AutoEntitleStateSub.next(T.g.LoggedIn),this.sendTelemetry(V.fbu.UALoginPendingSuccess),T.f.LOGGED_IN):(this.stopHttpServer(),this.AutoEntitleStateSub.next(T.g.LoggedOut),this.sendTelemetry(V.fbu.UALoginPendingFailure,`request id ${re.requestId}, state: ${ge.loginState}`),T.f.NOT_LOGGED_IN)));default:return this.stopHttpServer(),this.AutoEntitleStateSub.next(T.g.LoggedOut),this.sendTelemetry(V.fbu.UALoginFailed,`request id ${re.requestId}, state: ${re.loginState}`),(0,l.of)(T.f.NOT_LOGGED_IN)}}),(0,h.W)(re=>(this.logger.error("acquire user failed with error:",re,re?.message),401!==re?.status||te?(this.sendTelemetry(V.fbu.UALoginFailed,this.stringOrObj(re)),this.AutoEntitleStateSub.next(T.g.Failed),this.showNextPage(null,{landingPageUrl:null,loginState:T.f.UNKNOWN,requestId:null}).pipe((0,y.T)(ge=>(this.stopHttpServer(),T.f.NOT_LOGGED_IN)))):(this.loginInitiated=!0,(0,l.of)(T.f.AUTHORIZATION_ERROR)))),(0,c.M)(re=>{this.acquireUserLoginStateSub.next(re),this.acquireUserLoginStateSub.complete()})).subscribe(),this.acquireUserLoginStateSub.asObservable()}stringOrObj(z){try{return JSON.stringify(z)}catch{return z}}sendTelemetry(z,te){const X=new V.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen(),userAction:V.ay7.AutoEntitle,status:z,errorDetails:te?.substring(0,1023)||"",totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(X)}}return($=ee).\u0275fac=function(z){return new(z||$)(F.KVO(I.J6),F.KVO(k.Vk),F.KVO(R.f),F.KVO(I.NZ),F.KVO(I.iH),F.KVO(G.R6),F.KVO(V.jgD),F.KVO(Y.H0))},$.\u0275prov=F.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),ee})()},89888:(Ue,W,d)=>{"use strict";d.d(W,{YB:()=>re,Lk:()=>$,B_:()=>A});var n=d(3567),l=d(97152),p=d(61876),m=d(43848),_=d(31315),P=d(12532),v=d(35146),O=d(15652),S=d(65706),y=d(55833),r=d(91384),i=d(72147),a=d(83915),h=d(8619),g=d(43615),c=d(75707),T=d(36206),A=function(ge){return ge.None="None",ge.UnsupportedOS="UnsupportedOS",ge.UnsupportedBrowser="UnsupportedBrowser",ge.PWARequired="PWARequired",ge.NativeAppOnly="NativeAppOnly",ge.UnsupportedStreaming="UnsupportedStreaming",ge}(A||{}),L=function(ge){return ge.None="None",ge.OfficiallySupported="OfficiallySupported",ge.UnofficiallySupported="UnofficiallySupported",ge.PartiallySupported="PartiallySupported",ge}(L||{}),x=d(58527),V=d(26537),D=d(7703),F=d(50801),I=d(17901),k=d(65240),R=d(78812),G=d(66974);const Y_body_text="layout.universalUnsupportedDialogOnLoadText.bodyText",Y_body_textPlatform="layout.universalUnsupportedDialogOnLoadText.bodyTextPlatform",Y_body_textBrowser="layout.universalUnsupportedDialogOnLoadText.bodyTextBrowser",Y_body_textGeneric="layout.universalUnsupportedDialogOnLoadText.bodyTextGeneric",Y_body_textPartialSupport="layout.universalUnsupportedDialogOnLoadText.bodyTextPartialSupport",Y_link_unsupportedPlatform="layout.universalUnsupportedDialogText.unsupportedPlatformLinkText",Y_link_unsupportedBrowser="layout.universalUnsupportedDialogText.unsupportedBrowserLinkText",Y_link_unsupportedBrowserWithNativeApps="layout.universalUnsupportedDialogText.unsupportedBrowserWithNativeAppsLinkText",Y_link_unsupportedPlatformOnTV="layout.universalUnsupportedDialogText.unsupportedPlatformLinkTextOnTV",Y_link_unsupportedBrowserOnTV="layout.universalUnsupportedDialogText.unsupportedBrowserLinkTextOnTV",Y_link_unsupportedBrowserOnIOS="common.setUpOnSafari",Y_link_unsupportedBrowserWithNativeAppsOnTV="layout.universalUnsupportedDialogText.unsupportedBrowserWithNativeAppsLinkTextOnTV",Y_link_nativeAppOnlyPlatform="layout.universalUnsupportedDialogText.nativeAppOnlyPlatformLinkText",Y_link_pwaRequiredGuidance="layout.universalUnsupportedDialogText.pwaRequiredGuidanceLinkText",Y_link_genericUnsupported="layout.universalUnsupportedDialogText.genericUnsupportedLinkText",Y_link_partialSupport="layout.universalUnsupportedDialogText.safariLimitations",Y_primaryButton_text="layout.universalUnsupportedDialogOnLoadText.primaryButton",Y_primaryButton_partialSupportText="common.continueAnyway",Y_secondaryButton_partialSupportText="common.download",Y_offDeviceLink_unsupportedBrowserWithNativeApps="offDeviceLink.unsupportedBrowserWithNativeAppsText",K={supportType:L.OfficiallySupported,supportedBrowser:!0,supportedOS:!0,nativeClientSupported:!0,pwaRequired:!1,nativeAppOnly:!1,pwaGuidance:!1,streamingSupported:!0};let $=(()=>{var ge;class oe{constructor(ue,N,se,ce,Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt){this.appConfig=N,this.systemInfoService=se,this.dialog=ce,this.genericDialog=Z,this.deeplinkHelperService=de,this.projectInterfaceService=ae,this.pwaService=pe,this.redirectService=_e,this.translateService=ke,this.telemetryUtilService=De,this.telemetryService=Me,this.configuration=je,this.guestModeHelperService=$e,this.focusManager=Oe,this.injector=gt,this.tvMode=!1,this.openSetupGuidance=()=>{this.genericDialog.closeAll(),this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(l.YBo,{autoFocus:!0,hasBackdrop:!0,panelClass:["dialogPaddingRemove","nv-overlay-panel"]}))},this.logger=ue.getLogger("gfn/browser-universal-service"),this.tvMode=!!N.featureEnablement.tvMode,this.unsupportedBrowsersConfig$=this.fetchClientConfiguration().pipe((0,S.s)(1),(0,y.t)(1)),this._unsupportedBrowserState$=this.unsupportedBrowsersConfig$.pipe((0,r.M)(qt=>this.logger.info("Unsupported Browser Config: ",qt)),(0,i.n)(qt=>this.getUnsupportedBrowserState$(qt)),(0,r.M)(qt=>this.logger.info(`browser / platform Unsupported State: ${qt.unsupportedState}, Supported State: ${qt.supportedState}`)),(0,y.t)(1))}isUnsupported(ue){return!(ue.supportType!==L.None&&ue.streamingSupported&&ue.supportedBrowser&&ue.supportedOS&&(!ue.pwaRequired||this.pwaService.isInPWAMode()))}get unsupportedBrowserState$(){return this._unsupportedBrowserState$}get shouldDisplayPWAGuidance$(){return this.unsupportedBrowsersConfig$.pipe((0,S.s)(1),(0,i.n)(ue=>ue.pwaGuidance?this._unsupportedBrowserState$.pipe((0,a.T)(N=>N.unsupportedState===A.PWARequired)):(0,m.of)(!1)))}handleUnsupportedDialog(){this.oobeService=this.injector.get(l.ZSB),this.loginwallService=this.injector.get(l.Xtz);const ue=this.oobeService.oobeDialogClosedState.pipe((0,h.p)(se=>se)),N=this.loginwallService.onLoginWallFlowCompleted$();(0,_.zV)([ue,N]).pipe((0,S.s)(1)).subscribe(se=>this.openUnsupportedDialog())}openUnsupportedDialog(){this.unsupportedDialogSubscription||(this.unsupportedDialogSubscription=this.unsupportedBrowsersConfig$.pipe((0,i.n)(ue=>ue.supportType===L.PartiallySupported||this.isUnsupported(ue)&&!this.deeplinkHelperService.isDeeplinkScenario()?this.openUnsupportedBrowserDialogOnLoad$(ue):P.w),(0,S.s)(1),(0,g.j)(()=>{this.projectInterfaceService.closeUnsupportedDialog()})).subscribe(()=>this.logger.info("Unsupported browser dialog is not displayed or dismissed by the user."),ue=>{this.logger.error("Error displaying unsupported browser dialog",ue)}))}getUnsupportedBrowserState$(ue){const N={supportedState:L.None,unsupportedState:A.None};return ue.nativeAppOnly?(N.unsupportedState=A.NativeAppOnly,(0,m.of)(N)):ue.supportedOS?ue.supportedBrowser?ue.streamingSupported?ue.pwaRequired?this.pwaService.onPWAModeChange.pipe((0,a.T)(se=>se?(N.supportedState=ue.supportType===L.OfficiallySupported?L.OfficiallySupported:L.UnofficiallySupported,N):(N.unsupportedState=A.PWARequired,N))):(ue.supportType===L.OfficiallySupported?N.supportedState=L.OfficiallySupported:ue.supportType===L.UnofficiallySupported?N.supportedState=L.UnofficiallySupported:ue.supportType===L.PartiallySupported&&(N.supportedState=L.PartiallySupported),(0,m.of)(N)):(N.unsupportedState=A.UnsupportedStreaming,(0,m.of)(N)):(N.unsupportedState=A.UnsupportedBrowser,(0,m.of)(N)):(N.unsupportedState=A.UnsupportedOS,(0,m.of)(N))}getRedirectKey(ue){if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.UnsupportedOS:return l.r7g.GfnPcUnsupportedDevice;case A.UnsupportedBrowser:case A.PWARequired:case A.NativeAppOnly:case A.UnsupportedStreaming:return l.r7g.GfnPcUnsupportedBrowser;default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return l.r7g.GfnPcSafariBrowserLearnMore;case L.OfficiallySupported:case L.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getBodyText(ue){if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.UnsupportedOS:return Y_body_textPlatform;case A.UnsupportedBrowser:case A.PWARequired:case A.NativeAppOnly:return Y_body_textBrowser;case A.UnsupportedStreaming:return Y_body_textGeneric;default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return Y_body_textPartialSupport;case L.OfficiallySupported:case L.UnofficiallySupported:break;default:throw new Error("To be Implemented")}}getUnsupportedHeaderText(ue){if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.UnsupportedOS:return"layout.universalUnsupportedDialogText.unsupportedPlatformHeaderText";case A.UnsupportedBrowser:case A.PWARequired:case A.NativeAppOnly:return"layout.universalUnsupportedDialogText.unsupportedBrowserHeaderText";case A.UnsupportedStreaming:return"layout.universalUnsupportedDialogText.unsupportedGenericHeaderText";default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return"layout.universalUnsupportedDialogOnLoadText.partialSupportHeaderText";case L.OfficiallySupported:case L.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getDialogLink$(ue,N){return this.unsupportedBrowsersConfig$.pipe((0,S.s)(1),(0,i.n)(se=>this._getDialogLink$(ue,se,N)))}_getDialogLink$(ue,N,se){const ce=this.getRedirectKey(ue),Z=se?.anchorLink||!this.tvMode?this.getLinkText(ue,N):this.getTVModeLinkText(ue,N),de=ue.unsupportedState===A.UnsupportedBrowser&&N?.pwaGuidance,ae=ce===l.r7g.GfnPcUnsupportedBrowser&&N?.nativeClientSupported?Y_offDeviceLink_unsupportedBrowserWithNativeApps:void 0;return this.redirectService.getRedirectUrl(ce).pipe((0,a.T)(pe=>({url:pe,text:Z,shortUrl:T.lp[ce],shortUrlDescription:ae,routerLink:this.getRouterLink(ue,N),linkClickedCallback:de?this.openSetupGuidance.bind(this):void 0})))}getRouterLink(ue,N){if(ue.unsupportedState===A.PWARequired&&N?.pwaGuidance)return{commands:l.V6C.PwaWall,skipLocationChange:!1}}getTranslatedBodyText$(){return this.unsupportedBrowserState$.pipe((0,i.n)(N=>{const se=this.translateService.get(Y_body_text),ce=this.translateService.get(this.getBodyText(N));return N.supportedState===L.PartiallySupported?ce:(0,v.yU)(se,ce).pipe((0,S.s)(1),(0,a.T)(([Z,de])=>`${Z}<br><br>${de}`))}))}secondaryButtonConfig(){return this.unsupportedBrowserState$.pipe((0,i.n)(ue=>{const N=this.getSecondaryButtonText(ue);return(0,m.of)(N?{text:N}:null)}))}getPrimaryButtonConfig$(){return this.unsupportedBrowserState$.pipe((0,i.n)(ue=>(0,m.of)({text:this.getButtonText(ue),accentColor:this.getButtonConfig(ue)})))}getTranslatedHeaderText$(){return this.unsupportedBrowserState$.pipe((0,i.n)(ue=>this.translateService.get(this.getHeaderText(ue))))}getHeaderText(ue){if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.NativeAppOnly:case A.UnsupportedOS:case A.UnsupportedBrowser:case A.PWARequired:case A.UnsupportedStreaming:return"layout.universalUnsupportedDialogOnLoadText.headerText";default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return"layout.universalUnsupportedDialogOnLoadText.partialSupportHeaderText";case L.OfficiallySupported:case L.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getButtonText(ue){if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.NativeAppOnly:case A.UnsupportedOS:case A.UnsupportedBrowser:case A.PWARequired:case A.UnsupportedStreaming:return Y_primaryButton_text;default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return Y_primaryButton_partialSupportText;case L.OfficiallySupported:case L.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getSecondaryButtonText(ue){if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.NativeAppOnly:case A.UnsupportedOS:case A.UnsupportedBrowser:case A.PWARequired:case A.UnsupportedStreaming:return"";default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return Y_secondaryButton_partialSupportText;case L.OfficiallySupported:case L.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getButtonConfig(ue){if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.NativeAppOnly:case A.UnsupportedOS:case A.UnsupportedBrowser:case A.PWARequired:case A.UnsupportedStreaming:return!1;default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return!0;case L.OfficiallySupported:case L.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getLinkText(ue,N){if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.NativeAppOnly:return Y_link_nativeAppOnlyPlatform;case A.UnsupportedOS:return Y_link_unsupportedPlatform;case A.UnsupportedBrowser:case A.PWARequired:return N?.pwaGuidance?ue.unsupportedState===A.UnsupportedBrowser?Y_link_unsupportedBrowserOnIOS:Y_link_pwaRequiredGuidance:N?.nativeClientSupported?Y_link_unsupportedBrowserWithNativeApps:Y_link_unsupportedBrowser;case A.UnsupportedStreaming:return Y_link_genericUnsupported;default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return Y_link_partialSupport;case L.OfficiallySupported:case L.UnofficiallySupported:break;default:throw new Error("should not happen!")}}getTVModeLinkText(ue,N){if(!this.tvMode)throw new Error("Not in TV mode!");if(ue.supportedState===L.None)switch(ue.unsupportedState){case A.NativeAppOnly:return Y_link_unsupportedBrowserWithNativeAppsOnTV;case A.UnsupportedOS:return Y_link_unsupportedPlatformOnTV;case A.UnsupportedBrowser:case A.PWARequired:return N?.nativeClientSupported?Y_link_unsupportedBrowserWithNativeAppsOnTV:Y_link_unsupportedBrowserOnTV;case A.UnsupportedStreaming:return Y_link_genericUnsupported;default:throw new Error("should not happen!")}else if(ue.unsupportedState===A.None)switch(ue.supportedState){case L.PartiallySupported:return Y_link_partialSupport;case L.UnofficiallySupported:case L.OfficiallySupported:break;default:throw new Error("should not happen!")}}openUnsupportedBrowserDialogOnLoad$(ue){const N=this.unsupportedBrowserState$.pipe((0,i.n)(se=>this._getDialogLink$(se,ue)));return(0,v.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).pipe((0,S.s)(1),(0,c.ZZ)(se=>(0,_.zV)([this.getTranslatedHeaderText$(),this.getTranslatedBodyText$(),this.getPrimaryButtonConfig$(),this.secondaryButtonConfig(),N]).pipe((0,S.s)(1),(0,i.n)(([ce,Z,de,ae,pe])=>{const _e=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:ce,translated:!0},bodyText:{text:Z,translated:!0},link:pe,primaryButton:de,secondaryButton:ae,autoFocusOnPrimaryButton:!1}},{preferredDialogType:p.QO.ThreeQuarterSheet});this.telemetryUtilService.sendPopUpDialogShownEvent(l.duU.Unsupported_Browser_Or_Platform_Load);const ke=_e.primaryButtonClick.pipe((0,r.M)(De=>{this.telemetryUtilService.sendPopUpDialogClosedEvent(l.duU.Unsupported_Browser_Or_Platform_Load,l.HBm.Dialog_Closed),_e.close()}));return _e.secondaryButtonClick.subscribe(()=>{window.location.href=this.downloadNativeClientUrl}),(0,O.O4)(ke,_e.afterClosed())}))))}isSupportedBrowser(ue,N,se){return this.checkSystemCompatibility(ue,N??se)}checkSystemCompatibility(ue,N){return!!this.pwaService.isInPWAMode()||!!N&&N.supportedPlatforms.includes(ue.OSName)}checkGuestModeOverrides(ue,N){return!(!this.guestModeHelperService.isGuestMode||!ue)&&this.checkSystemCompatibility(N,ue)}getSupportType(ue,N,se,ce,Z){return N?Z?L.PartiallySupported:se&&this.isSupportedBrowser(ue,se)?L.OfficiallySupported:ce&&this.isSupportedBrowser(ue,ce)?L.UnofficiallySupported:this.isSupportedBrowser(ue,se,ce)?L.OfficiallySupported:L.None:L.None}getDefaultSupportedConfig(ue){return{supportType:ue?L.OfficiallySupported:L.None,supportedBrowser:!0,supportedOS:!0,nativeClientSupported:!1,pwaRequired:!1,nativeAppOnly:!1,pwaGuidance:!1,streamingSupported:ue}}initializeNativeClientDownloadURLs(ue){this.downloadNativeClientUrl=ue===n.t_.MacOS?this.appConfig?.downloadNativeClient?.macUrl:this.appConfig?.downloadNativeClient?.winUrl}fetchClientConfiguration(){const ue=!!this.configuration.featureEnablement?.browserClientUniversalEnablement,N=!!this.configuration.featureEnablement?.gdnUniversalEnablement;if(n.zk.isNativeLikePlatform())return(0,m.of)(K);if(N&&this.guestModeHelperService.isGuestAppFlow())return(0,m.of)({supportType:L.OfficiallySupported,supportedBrowser:!0,supportedOS:!0,nativeClientSupported:!1,pwaRequired:!1,nativeAppOnly:!1,pwaGuidance:!1,streamingSupported:!0});const se=this.systemInfoService.getSystemInfo([n.Lu.OSName,n.Lu.BrowserName,n.Lu.SystemName]).pipe((0,a.T)(ce=>(n.zk.isVisionPro(ce)&&(ce.OSName=n.t_.VisionOS),ce)));return(0,_.zV)([se,this.systemInfoService.checkStreamingSupport()]).pipe((0,a.T)(([ce,Z])=>{if(this.logger.info("Is streaming Supported: ",Z),ue)return this.logger.info("Browser Client Universal Flag is enabled"),this.logger.info("Streaming Supported Flag from Ragnarok: ",Z),this.getDefaultSupportedConfig(Z);this.initializeNativeClientDownloadURLs(ce.OSName);const de=this.appConfig.supportedBrowsersAndPlatforms,ae=de?.officiallySupported.find(De=>De?.browser===ce.BrowserName&&De?.supportedPlatforms.includes(ce.OSName)),pe=de?.unofficiallySupported.find(De=>De?.browser===ce.BrowserName&&De?.supportedPlatforms.includes(ce.OSName)),_e=de?.partiallySupported.find(De=>De?.browser===ce.BrowserName&&De?.supportedPlatforms.includes(ce.OSName)),ke=de?.guestModeOverrides?.find(De=>De?.browser===ce.BrowserName&&De?.supportedPlatforms.includes(ce.OSName));return this.logger.info("Official Support Info from Config",JSON.stringify(ae)),this.logger.info("Unofficial Support Info from Config",JSON.stringify(pe)),this.logger.info("Partial Support Info from Config",JSON.stringify(_e)),this.logger.info("Guest Mode Overrides from Config",JSON.stringify(ke)),this.logger.info("Current System Info",JSON.stringify(ce)),this.checkGuestModeOverrides(ke,ce)?(this.logger.info("Guest Mode Overrides are enabled"),this.logger.info("Streaming Supported Flag from Ragnarok: ",Z),this.getDefaultSupportedConfig(Z)):{supportType:this.getSupportType(ce,Z,ae,pe,_e),supportedBrowser:this.isSupportedBrowser(ce,ae,pe),supportedOS:de.allSupportedPlatforms?.includes(ce.OSName),nativeClientSupported:de.nativeClientSupportedPlatforms.includes(ce.OSName),pwaRequired:de.pwaRequiredPlatforms.includes(ce.OSName),nativeAppOnly:!!de.nativeAppOnlyPlatforms?.includes(ce.OSName),pwaGuidance:de.pwaGuideSupportedPlatforms.includes(ce.OSName),streamingSupported:Z}}))}}return(ge=oe).\u0275fac=function(ue){return new(ue||ge)(x.KVO(n.J6),x.KVO(l.Vk6),x.KVO(n.zW),x.KVO(V.bZ),x.KVO(p.uh),x.KVO(D.w),x.KVO(F.qQ),x.KVO(I.SL),x.KVO(T.Q5),x.KVO(k.c$),x.KVO(l.jgD),x.KVO(R.H0),x.KVO(l.Vk6),x.KVO(G.x),x.KVO(p.c_),x.KVO(x.zZn))},ge.\u0275prov=x.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"}),oe})();var ee=d(80583),J=d(19392),z=d(4208),te=d(3457),X=d(47973);let re=(()=>{var ge;class oe{constructor(ue,N){this.dialogRef=N,this.destroy$=new ee.B7,this.dismissMessageDelay=4e3,this.gfnLink=location.hostname,this.logger=ue.getLogger("unsupported-browser-help.component")}onClose(){this.dialogRef.close()}onCopy(){(0,J.H)(navigator.clipboard.writeText(this.gfnLink)).pipe((0,z.Q)(this.destroy$)).subscribe(ue=>{this.successMessageVisible=!0,setTimeout(()=>{this.successMessageVisible=!1},this.dismissMessageDelay)},ue=>{this.logger.error(`${this.gfnLink} is copied failed, error: ${ue}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(ge=oe).\u0275fac=function(ue){return new(ue||ge)(x.rXU(n.J6),x.rXU(V.CP))},ge.\u0275cmp=x.VBU({type:ge,selectors:[["gfn-unsupported-browser-pwa-setup"]],decls:30,vars:24,consts:[["fxFlex","","fxLayout","column",1,"main-container"],["fxLayout","column",1,"content-container"],["fxLayout","column","fxLayoutAlign","start start"],[1,"font-header6","color-white","prompt-header"],[1,"font-body2"],[1,"link-container","font-body2"],["fxLayoutAlign","start center",1,"gfn-link"],["mat-button","","fxLayout","row","fxLayoutAlign","end center",1,"color-white",3,"click"],[1,"success-message","font-body2"],["fxLayout","row","fxLayoutAlign","end end",1,"button-container"],["mat-button","",3,"click"]],template:function(ue,N){1&ue&&(x.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),x.EFF(4),x.nI1(5,"translate"),x.k0s(),x.j41(6,"span",4),x.EFF(7),x.nI1(8,"translate"),x.k0s(),x.j41(9,"span",4),x.EFF(10),x.nI1(11,"translate"),x.k0s(),x.j41(12,"span",4),x.EFF(13),x.nI1(14,"translate"),x.k0s()(),x.j41(15,"div",5)(16,"span",6),x.EFF(17),x.k0s(),x.j41(18,"button",7),x.bIt("click",function(){return N.onCopy()}),x.j41(19,"span"),x.EFF(20),x.nI1(21,"translate"),x.k0s()()(),x.j41(22,"span",8),x.EFF(23),x.nI1(24,"translate"),x.k0s()(),x.j41(25,"div",9)(26,"button",10),x.bIt("click",function(){return N.onClose()}),x.j41(27,"span"),x.EFF(28),x.nI1(29,"translate"),x.k0s()()()()),2&ue&&(x.R7$(4),x.JRh(x.bMT(5,10,"iosUnsupportedBrowserHelpDialog.title")),x.R7$(3),x.JRh(x.bMT(8,12,"iosUnsupportedBrowserHelpDialog.setUpStep1")),x.R7$(3),x.JRh(x.bMT(11,14,"iosUnsupportedBrowserHelpDialog.setUpStep2")),x.R7$(3),x.JRh(x.bMT(14,16,"iosUnsupportedBrowserHelpDialog.setUpStep3")),x.R7$(4),x.JRh(N.gfnLink),x.R7$(3),x.JRh(x.bMT(21,18,"iosPWA.copy")),x.R7$(2),x.AVh("visible",N.successMessageVisible),x.R7$(),x.JRh(x.bMT(24,20,"iosPWA.linkCopied")),x.R7$(5),x.JRh(x.bMT(29,22,"common.close")))},dependencies:[te.DJ,te.sA,te.UI,X.iV,k.D9],styles:[".main-container[_ngcontent-%COMP%]{width:560px;height:-moz-fit-content;height:fit-content}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{margin:20px 24px 8px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .prompt-header[_ngcontent-%COMP%]{margin-bottom:12px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;margin:16px 0 8px;border:1px solid rgba(255,255,255,.2)}.isLtr[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{visibility:hidden}.isLtr[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{margin:0 0 8px 8px}html[dir=ltr][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 8px 8px}.isRtl[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{margin:0 8px 8px 0}html[dir=rtl][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{--dummy: 0;margin:0 8px 8px 0}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message.visible[_ngcontent-%COMP%]{visibility:visible}.main-container[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{margin:0 8px 8px}"]}),oe})()},38502:(Ue,W,d)=>{"use strict";d.d(W,{y1:()=>O,vB:()=>S,_v:()=>i,cq:()=>y,Uf:()=>r});var n=d(3567),l=d(56237),p=d(83915),m=d(55833),_=d(32727),P=d(61958),v=d(58527);let O=(()=>{var a;class h{constructor(c,T){this.systemInfoService=c,this.appConfig=T}getDeviceModelHeader(c){if(n.zk.isBrowserPlatform()){if(c.DeviceType!==n.Y0.TV)return c.SystemName?.toUpperCase()??S;const A=c.CPUName?.toUpperCase();if("TIZEN"!==c.OSName)return A??S;const{year:L}=(0,_.hH)((0,_.IT)());return L?`${A}-${L}`:A}let T=S;return c.Model?T=c.Model:c.SystemName&&(T=c.SystemName),T}getDeviceMakeHeader(c){let T=S;return c.Make?T=c.Make:c.VendorName&&(T=c.VendorName),T}getClientIdHeaderValue(c){if(!c)throw new Error(`Unrecognized client ID type (${c})`);return this.appConfig.lcars.clientId}initialize(){this.commonHeaders$=(0,l.T)(n.zk.isBrowserLikePlatform,this.systemInfoService.getClientHeadersInfo(),this.systemInfoService.getSystemInfo([n.Lu.OSName,n.Lu.Platform,n.Lu.VendorName,n.Lu.SystemName])).pipe((0,p.T)(c=>{const T={};if(n.zk.isBrowserPlatform())T["NV-Device-Type"]=c.DeviceType,T["NV-Device-OS"]=c.OSName,T["NV-Client-Type"]="BROWSER",T["NV-Client-Streamer"]="WEBRTC",T["NV-Browser-Type"]=c.BrowserName;else{const A=r(c.Platform);T["NV-Device-Type"]=c.DeviceType?i(c.DeviceType):y(A),T["NV-Device-OS"]=A,T["NV-Client-Type"]="NATIVE",T["NV-Client-Streamer"]="NVIDIA-CLASSIC"}return T["NV-Device-Model"]=this.getDeviceModelHeader(c),T["NV-Device-Make"]=this.getDeviceMakeHeader(c),T["NV-Client-Version"]=(0,P.Cl)(this.appConfig),T}),(0,m.t)(1))}getCommonHeaders(c){return this.commonHeaders$||this.initialize(),this.commonHeaders$.pipe((0,p.T)(T=>({...T})),(0,p.T)(T=>(c?.withClientId&&(T["NV-Client-ID"]=this.getClientIdHeaderValue(c.withClientId)),T)))}}return(a=h).\u0275fac=function(c){return new(c||a)(v.KVO(n.zW),v.KVO(P.Vk))},a.\u0275prov=v.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),h})();const S="UNKNOWN",y=a=>{switch(a){case"IOS":return"PHONE";case"IPADOS":return"TABLET";case"TIZEN":case"WEBOS":return"TV";case"XBOX":return"CONSOLE";default:return"DESKTOP"}},r=a=>{switch(a?.toLowerCase()){case"windows":return"WINDOWS";case"mac":case"macos":return"MACOS";case"linux":return"LINUX";case"chrome os":case"chromeos":return"CHROMEOS";case"ios":return"IOS";case"ipados":return"IPADOS";case"webos":return"WEBOS";case"tizen":return"TIZEN";case"xbox":return"XBOX";case"android":return"ANDROID";case"steamos":return"STEAMOS";case"shield":return"SHIELD";default:return"UNKNOWN"}},i=a=>{switch(a){case n.Y0.Desktop:return"DESKTOP";case n.Y0.Laptop:return"LAPTOP";case n.Y0.TV:return"TV";case n.Y0.Phone:return"PHONE";case n.Y0.Tablet:return"TABLET";case n.Y0.Console:return"CONSOLE";default:return"DESKTOP"}}},43354:(Ue,W,d)=>{"use strict";d.d(W,{C:()=>n,V:()=>l});var n=function(p){return p.Default="default",p.Row="row",p}(n||{});class l{}},61958:(Ue,W,d)=>{"use strict";d.d(W,{Vk:()=>n.V,C$:()=>n.C,Cl:()=>Y.C});var n=d(43354),O=(d(58527),d(83915),d(72147),d(75707),d(91384),d(14714),d(14709));d(72945),d(3567),d(56237),d(93181),d(43848),d(31315),d(93528),d(6693),d(74931),d(26875);(0,O.XR)(n.V);var Y=d(70710)},70710:(Ue,W,d)=>{"use strict";function n(l){return l.product?.version||l.build.version}d.d(W,{C:()=>n})},15074:(Ue,W,d)=>{"use strict";d.d(W,{Io:()=>y,NG:()=>P,OU:()=>i,Oj:()=>r,d4:()=>p,ni:()=>n,nw:()=>S,o:()=>v});const n={NETWORK_TROUBLESHOOT:"gfn_pc_net_help",GFN_PC_INFO:"gfn_pc_info",GFN_PC_HELP:"gfn_pc_help",TERMS_CONDITIONS:"gfn_pc_terms_of_use",ACCOUNT_TERMS:"nvidia_account_tos",OSS_LICENSES:"gfn_pc_oss",PRIVACY_POLICY:"privacy_policy",ACCOUNT_MANAGEMENT:"nvidia_account_management",ACCOUNT_MANAGEMENT_SSO:"nvidia_account_management_default",GFN_MEMBERSHIP_MANAGEMENT:"nvidia_account_management_gfn",SYS_REQUIREMENTS:"gfn_pc_sys_req",UDP_BUFFER_TIPS:"gfn_pc_net_help_udp_socket",GFN_PC_UNSUPPORTED_REGION:"gfn_pc_unsupported_region",GFN_PC_NET_HELP_FIREWALL:"gfn_pc_net_help_firewall",GFN_PC_NET_HELP_WIFI:"gfn_pc_net_help_wifi",GFN_PC_HELP_UPDATE:"gfn_pc_help_update",GFN_PC_HELP_MISSING_DECODER:"gfn_pc_help_missing_decoder",GFN_PC_MEMBERSHIP_JOIN:"gfn_pc_membership",GFN_SERVER_STATUS:"gfn_service_status",GFN_PC_REDEEM_ACTIVATION_CODE:"gfn_pc_redeem_activation_code",GFN_PC_ACCOUNT_NOT_ACTIVATED:"gfn_pc_account_not_activated",GFN_PC_WAITLIST:"gfn_pc_waitlist",DISCORD_TERMS:"discord_terms_of_service",GFN_PC_MEMBERSHIP_UPGRADE:"gfn_pc_membership_upgrade",GFN_PC_MEMBERSHIP_DAYPASS:"gfn_pc_membership_daypass",GFN_PC_CHECKOUT_DAYPASS:"gfn_pc_checkout_daypass",COOKIE_POLICY:"nvidia_cookie_policy",GFN_PC_KEYBOARD_TROUBLESHOOTING:"gfn_pc_keyboard_troubleshooting",STEAM_ACCOUNT_SETTINGS:"steam_account_settings",GFN_PC_REDEEM_MULTI_AFFILIATE:"gfn_pc_redeem_multi_affiliate",GFN_PC_DOWNLOAD:"gfn_pc_download",GFN_PC_RECOMMENDED_GAMEPADS:"gfn_pc_recommended_gamepads",GFN_PC_FAQ_IOS:"gfn_pc_faq_ios",EPIC_ACCOUNT_SETTINGS:"epic_account_settings",GFN_PC_HELP_KEYBOARD_GAMES_UNAVAILABLE:"gfn_pc_help_keyboard_games_unavailable",GFN_PC_BROWSER_PUSH_NOTIFICATION:"gfn_pc_help_browser_push_notification",GFN_PC_HELP_PASTE:"gfn_pc_help_paste",GFN_PC_HELP_CONNECTIONS:"gfn_pc_help_connections"};var p=function(h){return h.US="US",h}(p||{}),P=function(h){return h.Default="Default",h.GamepadFriendly="GamepadFriendly",h.TouchFriendly="TouchFriendly",h}(P||{}),v=function(h){return h.Join="Join",h.Close="Close",h.Login="Login",h}(v||{}),S=function(h){return h.Continue="Continue",h.Cancel="Cancel",h}(S||{}),y=function(h){return h.Cancel="Cancel",h}(y||{});const r={RigReadyAndStreamerIdleTimeout:{type:"RIG_READY_AND_STREAMER_IDLE_TIMEOUT",src:"./assets/audio/rig_ready_streamer_timeout.m4a"}};var i=function(h){return h.cmsIdToMetadataMap="cmsIdToMetadataMap",h.parentIdToLaunchMetaDataMap="parentIdToLaunchMetaDataMap",h}(i||{})},28711:(Ue,W,d)=>{"use strict";d.d(W,{Io:()=>n.Io,NG:()=>n.NG,OU:()=>n.OU,Oj:()=>n.Oj,d4:()=>n.d4,ni:()=>n.ni,nw:()=>n.nw,o:()=>n.o,tS:()=>l.t,u7:()=>l.u});var n=d(15074),l=d(42629)},42629:(Ue,W,d)=>{"use strict";d.d(W,{t:()=>n,u:()=>l});var n=function(p){return p[p.NVB_AUTH_INVALID=-1]="NVB_AUTH_INVALID",p[p.NVB_AUTH_NONE=0]="NVB_AUTH_NONE",p[p.NVB_AUTH_OAUTH2_PINGFEDERATE=1]="NVB_AUTH_OAUTH2_PINGFEDERATE",p[p.NVB_AUTH_OAUTH2_GOOGLE=2]="NVB_AUTH_OAUTH2_GOOGLE",p[p.NVB_AUTH_OAUTH2_JANRAIN=3]="NVB_AUTH_OAUTH2_JANRAIN",p[p.NVB_AUTH_ACTIVE_DIRECTORY=4]="NVB_AUTH_ACTIVE_DIRECTORY",p[p.NVB_AUTH_CLIENT_CERTIFICATE=5]="NVB_AUTH_CLIENT_CERTIFICATE",p[p.NVB_AUTH_SESSION_ID=6]="NVB_AUTH_SESSION_ID",p[p.NVB_AUTH_JARVIS=7]="NVB_AUTH_JARVIS",p[p.NVB_AUTH_JWT=8]="NVB_AUTH_JWT",p[p.NVB_AUTH_JWT_GFN=9]="NVB_AUTH_JWT_GFN",p}(n||{}),l=function(p){return p[p.NCT_R_UNKNOWN=0]="NCT_R_UNKNOWN",p[p.NCT_R_SUCCESS=1]="NCT_R_SUCCESS",p[p.NCT_R_INVALID_PARAM=2]="NCT_R_INVALID_PARAM",p[p.NCT_R_SYN_FAILED=3]="NCT_R_SYN_FAILED",p[p.NCT_R_FIN_FAILED=4]="NCT_R_FIN_FAILED",p[p.NCT_R_AUTH_FAILED=5]="NCT_R_AUTH_FAILED",p[p.NCT_R_POST_FAILED=6]="NCT_R_POST_FAILED",p[p.NCT_R_TEST_IN_PROGRESS=7]="NCT_R_TEST_IN_PROGRESS",p[p.NCT_R_CANCELED=8]="NCT_R_CANCELED",p[p.NCT_R_CAPACITY_FULL=9]="NCT_R_CAPACITY_FULL",p[p.NCT_R_SESSION_EXIST=10]="NCT_R_SESSION_EXIST",p[p.NCT_R_INVALID_DATA=11]="NCT_R_INVALID_DATA",p[p.NCT_R_SETUP_FAILED=12]="NCT_R_SETUP_FAILED",p[p.NCT_R_RETRYABLE_POST_FAILURE=13]="NCT_R_RETRYABLE_POST_FAILURE",p[p.NCT_R_BLOCK_STREAM=14]="NCT_R_BLOCK_STREAM",p}(l||{})},7703:(Ue,W,d)=>{"use strict";d.d(W,{w:()=>T});var n=d(43848),l=d(20381),p=d(43354),m=d(65706),_=d(75707),P=d(91384),v=d(83915),O=d(14714),S=d(14331),y=d(44098),r=d(21341),i=d(16992),a=d(89888),h=d(80838),g=d(58527),c=d(3567);let T=(()=>{var A;class L{constructor(V,D){this.injector=V,this.useWindowedMode=!1,this._isDeeplinkGameLaunch=!1,this.logger=D.getLogger("deeplink-helper"),this.canHandleMap=new Map([[S.py.PlayGame,{canHandle:this.canHandlePlayGame.bind(this)}],[S.py.ViewGame,{canHandle:this.canHandleViewGame.bind(this)}]])}canHandleViewGame(V){const D=V.has(S.aj.GameId);return(0,n.of)({canHandle:D,isBadRequest:!D})}canHandlePlayGame(V){return V.has(S.aj.GameId)||V.has(S.aj.CmsId)?(this.unsupportedBrowserService=this.injector.get(a.Lk),this.unsupportedBrowserService.shouldDisplayPWAGuidance$.pipe((0,m.s)(1),(0,_.ZZ)(F=>(0,n.of)(F?{canHandle:!1,isBadRequest:!1,redirectLink:y.V6.PwaWall}:{canHandle:!0,isBadRequest:!1})))):(0,n.of)({canHandle:!1,isBadRequest:!0})}setDeeplinkZoneOverride(V,D){const F=V.get(S.aj.Zone);if(F)try{const I=this.injector.get(r.uU),k=this.injector.get(h.G),R=new URL(F).host;I.deeplinkOverrideZone?.address!==R&&(I.deeplinkOverrideZone=this.getDeeplinkZoneOverride(F,D),k.refreshServerInfo())}catch(I){this.logger.error("Incorrect deeplink override zone",I)}}performHandlingCheck(V){return this.getFeatureToggle().pipe((0,_.ZZ)(D=>{const F=V.get(S.aj.Action)||S.eL,I={canHandle:!1,isBadRequest:!0};if(!this.canHandleMap.has(F))return this.logger.error("No handler for specified action"),(0,n.of)(I);const k=S.oT[F];return k?D[k]?this.canHandleMap.get(F).canHandle(V).pipe((0,P.M)(Y=>{Y.canHandle||this.logger.error("Invalid set of parameters")})):(I.isBadRequest=!1,this.logger.error("Action not enabled in feature toggle"),(0,n.of)(I)):(this.logger.error("Feature toggle not configured for action"),(0,n.of)(I))}))}getDeeplinkZoneOverride(V,D){if(!(-1!==window.location.href.indexOf(y.f.Deeplink)||D&&-1!==D.indexOf(y.f.Deeplink)))return null;{let F=V||(0,y.BS)(S.aj.Zone);try{if(this.logger.info("Deeplink Zone Override: ",F),F){const I=new URL(F);if(F=I.host,"https:"!==I.protocol||!F.endsWith("nvidiagrid.net"))return null;{const k=F?.substring(0,F?.indexOf("."));if(F)return{address:F,runNetworkTest:!0,name:k,isInternal:!0}}}}catch(I){return this.logger.error("Incorrect deeplink override zone",I),null}}}isDeeplinkScenario(){return!!window.location.hash.match(y.f.Deeplink)}getFeatureToggle(){return this.fetchedFeatureToggleValue?(0,n.of)(this.fetchedFeatureToggleValue):this.fetchDeeplinkFeatureToggle()}isSpecialAffiliatePartner(V){return Object.values(S.HJ).includes(V)}fetchDeeplinkFeatureToggle(){if(this.configuration||(this.configuration=this.injector.get(p.V)),this.experienceControlService||(this.experienceControlService=this.injector.get(l.BW)),this.experienceControlService)return this.experienceControlService.getCloudVariable(this.configuration?.gxTarget.experiences.deeplinkSupportV2,void 0,{useCache:!0,useNetworkTimeoutForCacheFallback:!0},l.Ky.GxTargetGetCloudVariable,l.Id.GxTargetGetDeeplinkSupport).pipe((0,v.T)(V=>(this.fetchedFeatureToggleValue=V.value,this.fetchedFeatureToggleValue)),(0,O.W)(V=>{this.logger.error("Error while fetching deeplink feature toggle:",V);const D=S.kw,F=this.configuration?.featureEnablement?.deeplinkSupportV2;return(0,n.of)(F||D)}));{const V=S.kw,D=this.configuration?.featureEnablement?.deeplinkSupportV2;return(0,n.of)(D||V)}}getDeeplinkPartnerData(){return this.deeplinkPartnerData}setDeeplinkPartnerData(V){this.deeplinkPartnerData=V}resetDeeplinkPartnerData(){this.deeplinkPartnerData=null}allowApplicationReload(){return this.guestModeHelperService||(this.guestModeHelperService=this.injector.get(i.x)),!this.guestModeHelperService?.isGuestMode&&!this.getDeeplinkPartnerData()}getUpdatedPartnerId(V){return S.bE[V]||V}postStreamingCleanUp(){this.resetDeeplinkPartnerData(),this.windowedMode=!1,this.isDeeplinkGameLaunch=!1}get isDeeplinkGameLaunch(){return this._isDeeplinkGameLaunch}set isDeeplinkGameLaunch(V){this._isDeeplinkGameLaunch=V}set windowedMode(V){this.useWindowedMode=V}get windowedMode(){return this.useWindowedMode}}return(A=L).\u0275fac=function(V){return new(V||A)(g.KVO(g.zZn),g.KVO(c.J6))},A.\u0275prov=g.jDH({token:A,factory:A.\u0275fac,providedIn:"root"}),L})()},92565:(Ue,W,d)=>{"use strict";d.d(W,{C:()=>r});var n=d(57258),l=d(59859),p=d(3496),m=d(80583),_=d(43848),P=d(75707),v=d(86447),O=d(14714),S=d(58527),y=d(3567);let r=(()=>{var i;class a{constructor(g){this.defaultMaxRetries=3,this.defaultRetryInterval=1e3,this.retryCount=0,this.jsLoadTelemetrySubject$=new n.m(1),this.logger=g.getLogger("ExternalJsLoadService")}getJsLoadScriptTag(g){return Array.from(document.getElementsByTagName("script")).find(T=>T.src.includes(g))}retryStrategy({maxRetries:g,retryInterval:c,isExponentialRetry:T},A){return A.pipe((0,P.ZZ)((L,x)=>x+1>g?(0,l.$)(L):(0,p.O)(Math.pow(T?2:1,x)*c)))}isScriptLoaded(g){return!!this.getJsLoadScriptTag(g)}unloadJS(g){const c=this.getJsLoadScriptTag(g);c&&c.remove()}loadJS(g,{scriptType:c="text/javascript",isAsyncLoad:T=!0}){const A=new m.B7,L=document.createElement("script");return L.src=g,L.type=c,L.async=T,L.onload=()=>{this.logger.info("External Script loaded successfully"),A.next(!0),A.complete()},L.onerror=x=>{this.unloadJS(g),this.logger.info("External Script load failed"),A.error(x)},document.body.appendChild(L),A.asObservable()}loadJSWithRetry(g,{scriptType:c="text/javascript",isAsyncLoad:T=!0,maxRetries:A=this.defaultMaxRetries,retryInterval:L=this.defaultRetryInterval,isExponentialRetry:x=!0}){return this.retryCount=0,this.loadJS(g,{scriptType:c,isAsyncLoad:T}).pipe((0,v.l)(V=>(this.retryCount++,this.retryStrategy({maxRetries:A,retryInterval:L,isExponentialRetry:x},V))),(0,O.W)(V=>(this.jsLoadTelemetrySubject$.next({isSuccess:!1,attemptCount:this.retryCount,fileName:g,error:V}),(0,_.of)(!1))))}}return(i=a).\u0275fac=function(g){return new(g||i)(S.KVO(y.J6))},i.\u0275prov=S.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),a})()},97273:(Ue,W,d)=>{"use strict";d.d(W,{u:()=>O});var n=d(81671),l=d(44098),p=d(58527),m=d(3567),_=d(17901),P=d(54292),v=d(61958);let O=(()=>{var S;class y{constructor(i,a,h,g,c){this.localeService=i,this.loggingService=a,this.pwaService=h,this.browserSupportService=g,this.appConfig=c,this.url="",this.defaultUrl=l.V6.BrowserBookmark,this.shouldAvoidAddressBarUpdateFlag=!1,this.isAddressBarUrlUpdated=!1,this.isShareUrlTypeOGP=!0,this.isShareURLRequireBranch=!1,this.logger=this.loggingService.getLogger("GameShareUrlService"),this.avoidAddressBarUpdateConfig=!!c?.client?.avoidAddressBarUpdate,this.isShareUrlTypeOGP=!(this.browserSupportService.isLocalDomain()||this.browserSupportService.isPartnerDomain()),this.isShareURLRequireBranch=this.browserSupportService.isStagingDomain(),this.initAvoidAddressBarUpdateFlag()}splitUrl(i){const a=i.split("/");let h=a[a.length-1];return h=h.replace(n.dn,""),h=h.split(".")[0],h}updateShareUrlInfo(i,a){this.gameId=i,this.assetIdentifier=a;const h=`${n.aj.GameId}=${this.gameId}`;if(this.isShareUrlTypeOGP){const g=`&${n.aj.Locale}=${this.localeService.getLocale()}`,c=a?this.splitUrl(a):"";if(this.queryParamsString=`${h}${g}${c?`&${n.aj.AssetId}=${c}`:""}`,this.isShareURLRequireBranch){const A=this.browserSupportService.getHostBranchName();this.queryParamsString=`${this.queryParamsString}${A?`&${n.aj.Branch}=${A}`:""}`}this.url=`${window.location.origin}/${n.py.Games}?${this.queryParamsString}`}else this.queryParamsString=`${h}`,this.url=`${window.location.origin}${window.location.pathname}#/${n.Ix}?${this.queryParamsString}`;return!0}initAvoidAddressBarUpdateFlag(){this.pwaService.onPWAModeChange.subscribe(i=>{this.shouldAvoidAddressBarUpdateFlag=i||this.avoidAddressBarUpdateConfig},i=>{this.logger.error("Error while setting initial value, defaulting to false"+i),this.shouldAvoidAddressBarUpdateFlag=!1})}getIsAddressbarUrlUpdated(){return this.isAddressBarUrlUpdated}setShareUrlInAddressBar(){this.shouldAvoidAddressBarUpdateFlag||(this.gameId&&-1!==this.url.indexOf(this.gameId)?(window.history.replaceState("","",this.url),this.isAddressBarUrlUpdated=!0):this.resetUrlInAddressBar())}getDeeplinkShareUrl(){return this.url}getShareInfo(i,a,h){if(!(this.gameId===i&&this.assetIdentifier===a||this.updateShareUrlInfo(i,a)))return void this.logger.error("Error while validating gameId");const c=h?`&${n.aj.UtmSource}=${h}`:"";return this.gameId?{url:`${this.url}${c}`,queryParamsString:`${this.queryParamsString}${c}`}:{url:window.location.origin,queryParamsString:""}}resetUrlInAddressBar(i){this.shouldAvoidAddressBarUpdateFlag||this.gameId!==i||(window.history.replaceState("","",this.defaultUrl),this.isAddressBarUrlUpdated=!1)}setExitUrl(i){this.exitUrl=i}setGameUrlAsExitUrl(){this.exitUrl=this.queryParamsString?`${l.f.Deeplink}?${this.queryParamsString}&${n.aj.UtmSource}=${n.mB.Application}`:l.V6.DefaultRedirect}getExitUrl(){let i;return i=this.exitUrl?this.exitUrl:this.queryParamsString?`${l.f.Deeplink}?${this.queryParamsString}`:l.V6.DefaultRedirect,i}}return(S=y).\u0275fac=function(i){return new(i||S)(p.KVO(m.iH),p.KVO(m.J6),p.KVO(_.SL),p.KVO(P.vT),p.KVO(v.Vk))},S.\u0275prov=p.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),y})()},73718:(Ue,W,d)=>{"use strict";d.d(W,{u:()=>n.u});var n=d(97273)},28507:(Ue,W,d)=>{"use strict";d.d(W,{_:()=>S,e:()=>r});var n=d(32727),l=d(35225),p=d(2490),m=d(70521),_=d(58527),P=d(61958),v=d(3567),O=d(5798);let S=(()=>{var i;class a{constructor(g,c,T,A){this.appConfig=g,this.distributedtracingUtilService=T,this.endpointFactory=A,this.logger=c.getLogger("GridSdkService");const{defaultRetries:L=0,defaultTimeBetweenRetries:x=0,defaultTimeout:V=1e4}=g.grid;this.serverInfoEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:L,timeBetweenRetries:x,timeout:V}}),this.firstFetchSet=new Set}makeUrl(g,c=this.appConfig.grid.server){return(0,n.l2)([c,this.appConfig.grid.version,g])}getSpecificServerInfo(g,c){g.startsWith("http")||(g=this.appConfig.featureEnablement?.enablePassThru?"http://"+g:"https://"+g);const A={includeRequestId:!0,reportRequestData:{originalService:l.Uu$.Grid,serviceUseCase:l.OOF.GetSpecificServerInformation},headers:{}},L=A.reportRequestData.serviceUseCase;this.firstFetchSet.has(L)?A.headers[m.tD.SwCacheBypass]=JSON.stringify(!0):this.firstFetchSet.add(L);const x=this.serverInfoEndpoint.get(this.makeUrl("/serverInfo",g),A);return this.distributedtracingUtilService.handleHttpEndpointSpan(x,A,p.pB.GetSpecificServerInfo,c)}}return(i=a).\u0275fac=function(g){return new(g||i)(_.KVO(P.Vk),_.KVO(v.J6),_.KVO(p.Z1),_.KVO(O.t))},i.\u0275prov=_.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),a})();var y=d(21333);class r extends y.yN{constructor(a){super("Could not fetch vpcId",a)}}},23953:(Ue,W,d)=>{"use strict";d.d(W,{G:()=>ee});var n=d(57258),l=d(93181),p=d(31315),m=d(43848),_=d(59859),P=d(82e3),v=d(35146),O=d(8619),S=d(65706),y=d(75707),r=d(83915),i=d(14714),a=d(91384),h=d(43615),g=d(99047),c=d(26875),A=d(28507),L=d(21341),x=d(70521),V=d(43117),D=d(58527),F=d(3567),I=d(61958),k=d(47261),R=d(51542),G=d(11961),Y=d(22600),K=d(32727),$=d(64962);let ee=(()=>{var J;class z{constructor(X,re,ge,oe,xe,ue,N,se,ce,Z,de,ae){this.loggingService=X,this.gridSdk=re,this.appConfig=ge,this.serverRouting=oe,this.networkConfigurationService=xe,this.zoneStorageService=ue,this.nesUserInfoService=N,this.serviceWorkerService=ce,this.gfnWebWorkerService=Z,this.refreshUiService=de,this.networkStatusService=ae,this.cachedRecommendedZone=null,this.streamingServiceUrl=null,this.hasServerInfoStreamErrored=!1,this.deeplinkZoneOverrideError$=new n.m(1),this.defaultZoneOnError=(pe,_e)=>(this.logger.info(pe," : ",_e),this.defaultZone$),this.logger=this.loggingService.getLogger("gfn/grid"),this.serverInfoStream=se.createStream(()=>this.requestServerInfo()),this.initServiceWorkerNotifications(),this.listenServerInfoRefreshNotification()}listenServerInfoRefreshNotification(){this.refreshUiService.serverInfoRefresh$.subscribe(X=>{this.logger.info("Refresh ServerInfo",X?.source),this.refreshServerInfo()})}initServiceWorkerNotifications(){this.serviceWorkerService.swCacheUpdated.pipe((0,O.p)(X=>X.name===x.fR.staleWhileRevalidate.server.cacheName),(0,S.s)(1)).subscribe(X=>{const re=this.serverInfoStream.getData();if(!re)return;const ge=this.processServerInfo(X.data);(0,l.p)([this.gfnWebWorkerService.hash(re),this.gfnWebWorkerService.hash(ge)]).subscribe(([oe,xe])=>{xe!==oe&&this.serverInfoStream.setData(ge,!0)},oe=>{this.logger.error("error hashing updated server info",oe)})})}findZone(X,re){return(0,c.find)(X,ge=>ge.name===re?.value)}processServerInfo(X){if(this.logger.info("processServerInfo"),(0,c.isNil)(X))throw new Error("Server info was invalid.");const re=X.metaData,ge=X.requestStatus;let oe;if((0,c.isNil)(ge))throw new Error('Bad schema in server info. Missing "requestStatus".');const xe=ge.serverId;if((0,c.isNil)(re))throw new Error('Bad schema in server info. Missing "metaData".');(0,c.isEmpty)(re)&&this.logger.warn("Server metadata is empty");const ue=X.monitorSettings,N=X.serverType,se=(0,c.chain)(re).filter(de=>de.value.startsWith("http")).map(de=>{const ae=de.value.replace("http://","").replace("https://","");return{name:de.key,address:ae}}).keyBy("address").value(),ce=(0,c.find)(re,de=>"local-region"===de.key),Z=this.findZone(se,ce);if(this.logger.info("Local region: ",Z),this.streamingServiceUrl?oe={address:this.getDefaultZone(),name:this.appConfig.grid.name}:(0,c.isObject)(ce)&&!(0,c.isUndefined)(ce.value)&&(oe=this.findZone(se,ce)),!(0,c.isObject)(oe))if((0,c.isNil)(this.cachedRecommendedZone)){const de=this.appConfig.grid;oe={name:de.name,address:de.server.replace("http://","").replace("https://","").replace("/","")},this.logger.error(`default zone not valid, using config zone: ${oe.name}`)}else oe=this.cachedRecommendedZone,this.logger.error(`default zone not valid, using cached zone: ${oe.name}`);return this.saveDefaultZone(oe),{vpcId:xe,serverType:N,zones:se,defaultZone:oe,monitorSettings:ue,detectedLocalZone:Z}}saveDefaultZone(X){this.zoneStorageService.setDefaultZone(X).subscribe(()=>c.noop,re=>this.logger.error("failed to set default zone",re))}requestServerInfo(X){let re=null;return this.nesUserInfoService.fetchUserInfoWithStreamingUrl().pipe((0,y.ZZ)(ge=>(0,p.zV)([this.networkConfigurationService.getNetworkOverride(),this.networkConfigurationService.getCurrentCachedZone(),(0,m.of)(ge)])),(0,y.ZZ)(([ge,oe,xe])=>{this.streamingServiceUrl=xe.serviceEndpoint.streamingServiceUrl;const ue=this.getDefaultZone();return this.logger.info("cached zone and override Zone are:",oe,ge),this.cachedRecommendedZone=(0,c.isNil)(ge)?(0,c.isNil)(oe)?null:oe:ge,(0,c.isNil)(this.cachedRecommendedZone)?(this.logger.info("cachedRecommendedZone zone is null. Use new server info"),this.getServerInfo({address:this.streamingServiceUrl,name:""},re,X)):(re=this.checkIfCachedOrOverrideZoneAvailable(ue,ge,oe),this.clearNotAvailableZones(re),re.isOverrideZoneAvailable?(this.logger.info("Override zone available in zonesList. Get serverInfo for override zone"),this.getServerInfo(ge,re,X)):re.isCachedZoneAvailable?(this.logger.info("cached zone available in zonesList. Get serverInfo for cached zone"),this.getServerInfo(oe,re,X)):(this.logger.info("Override or cached zone present but not available in zonesList, clearing NetworkOverride"),this.getServerInfo({address:this.streamingServiceUrl,name:""},re,X)))}))}getServerInfo(X,re,ge){return this.gridSdk.getSpecificServerInfo(X.address,ge).pipe((0,r.T)(oe=>this.processServerInfo(oe)),(0,i.W)(oe=>(this.logger.error("error in fetching serverInfo",oe),re?.isCachedZoneAvailable||re?.isOverrideZoneAvailable?(this.networkConfigurationService.deeplinkOverrideZone&&this.deeplinkZoneOverrideError$.next(!0),this.clearNotAvailableZones({isCachedZoneAvailable:!re.isCachedZoneAvailable,isOverrideZoneAvailable:!re.isOverrideZoneAvailable}),this.getServerInfo({address:this.streamingServiceUrl,name:""},re,ge)):(this.hasServerInfoStreamErrored=!0,(0,_.$)(oe)))),(0,a.M)(oe=>{this.networkConfigurationService.deeplinkOverrideZone&&this.deeplinkZoneOverrideError$.next(!1),this.refreshUiService.setContentExpiryInfo(V.sD.ServerInfo),this.hasServerInfoStreamErrored=!1}))}checkIfCachedOrOverrideZoneAvailable(X,re,ge){let oe,xe;return!(0,c.isNil)(re)&&re.isInternal&&(this.logger.info("Internal override is set"),oe=!0),!(0,c.isNil)(re)&&!oe&&(oe=X===re.defaultZone),(0,c.isNil)(ge)||(xe=X===ge.defaultZone),{isOverrideZoneAvailable:oe,isCachedZoneAvailable:xe}}clearNotAvailableZones(X){X.isOverrideZoneAvailable?X.isCachedZoneAvailable?this.logger.info("Both override and cached zones are available in the zonelist"):(this.logger.info("Cached zone is not available in the zonelist. Clearing cached zone"),this.networkConfigurationService.clearCurrentFingerprintCachedZone().subscribe()):(this.logger.info("Override zone is not available in the zonelist. Clearing override zone"),this.networkConfigurationService.clearNetworkOverride().subscribe())}getServerProperty(X){return this.serverInfoStream.get$().pipe((0,r.T)(X))}get deeplinkZoneOverrideStatus(){return this.deeplinkZoneOverrideError$.asObservable().pipe((0,h.j)(()=>{this.deeplinkZoneOverrideError$=new n.m(1)}))}get vpcId$(){return this.getServerProperty(X=>X.vpcId).pipe((0,i.W)(X=>{if(!this.networkStatusService.isOnline){const re=this.networkStatusService.onlineStatusChanged.pipe((0,O.p)(ge=>ge),(0,S.s)(1),(0,y.ZZ)(()=>this.vpcId$));return(0,P.x)((0,m.of)(null),re)}return(0,_.$)(X)}),(0,i.W)(X=>(0,_.$)(new A.e(X))))}get defaultZone$(){return this.getProperty(X=>X.defaultZone)}get zoneList$(){return this.getProperty(X=>X.zones)}get serverType$(){return this.getProperty(X=>X.serverType)}get monitorSettings$(){return this.hasServerInfoStreamErrored?(0,m.of)(void 0):this.getProperty(X=>X.monitorSettings)}get detectedLocalZone$(){return this.getProperty(X=>X.detectedLocalZone)}getProperty(X){return this.getServerProperty(X)}getZone(X,re){return(0,v.yU)(this.zoneList$,this.defaultZone$).pipe((0,g.$)(),(0,y.ZZ)(ge=>{const[oe,xe]=ge;return X.defaultZone=xe.address,this.serverRouting.getFastestRegionalZone(X,oe,re).pipe((0,a.M)(ue=>{this.logger.info("Got the latency based router zone: ",ue),this.serverInfoStream.refresh()}))}))}getCachedZone(){return this.serverRouting.getCachedServerZone().pipe((0,y.ZZ)(X=>(0,c.isNil)(X)?this.defaultZoneOnError("Empty zone in cache, falling back to default zone"):(0,m.of)(X)),(0,i.W)(X=>this.defaultZoneOnError("No zone in cache, falling back to default zone",X)))}getCachedLatencies(){const X=this.networkConfigurationService.getCurrentCachedLatencies(),re=this.networkConfigurationService.getNetworkOverride();return(0,p.zV)([X,re]).pipe((0,S.s)(1),(0,r.T)(([ge,oe])=>{if(oe&&this.appConfig?.lbrConfig?.applyDeterministicServerRouting){const se="latency@"+oe.address;return{[se]:ge&&ge[se]?ge[se]:"-1"}}if(!ge)return{};const xe=this.appConfig?.lbrConfig?.cachedLatencyCount||L.RQ,ue=Object.keys(ge).sort((se,ce)=>parseInt(ge[se],10)-parseInt(ge[ce],10)).slice(0,xe),N={};return ue.forEach(se=>{N[se]=ge[se]}),N}))}refreshServerInfo(){return this.serverInfoStream.refresh()}getDefaultZone(){return this.streamingServiceUrl?this.streamingServiceUrl.replace("http://","").replace("https://","").replace("/",""):""}}return(J=z).\u0275fac=function(X){return new(X||J)(D.KVO(F.J6),D.KVO(A._),D.KVO(I.Vk),D.KVO(k.b),D.KVO(R.u),D.KVO(G.p),D.KVO(Y.l),D.KVO(K.mZ),D.KVO(x.lS),D.KVO($.JS),D.KVO(V.F4),D.KVO(F.CF))},J.\u0275prov=D.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),z})()},80838:(Ue,W,d)=>{"use strict";d.d(W,{G:()=>n.G});var n=d(23953)},16992:(Ue,W,d)=>{"use strict";d.d(W,{x:()=>S});var n=d(3567),l=d(44098),p=d(81671),m=d(26875),P=d(58527),v=d(7703),O=d(50801);let S=(()=>{var y;class r{constructor(a,h,g){if(this.deeplinkHelperService=h,this.guestModeConfig=p.VN,this.guestMode=!1,this.logger=a.getLogger("GuestModeHelperService"),g.setForceTouchModeCallback(this.getForceTouchModeSettings.bind(this)),(0,l.ED)()){this.guestMode=!0;const c=this.deeplinkHelperService.getUpdatedPartnerId((0,l.BS)(p.aj.PartnerId))||"";this.setGuestModeConfig(c)}}isGuestAppFlow(){return this.isGuestMode&&this.getGuestModeConfig()?.isGuestAppFlow}updateGuestModeConfig(a){if(a){const{allowedRedirectUrls:h,...g}=a;this.guestModeConfig={...this.guestModeConfig,...g},this.logger.info("updated GuestModeConfig",this.guestModeConfig)}}mergeGuestModeConfig(a,h){return a&&h?(0,m.merge)(h,a):h}fetchDefaultGDNMetaData(a){const h=this.getGuestModeConfig()?.metadata,g=this.createDefaultMetdata(a);return this.logger.info("metadata Overrides: ",JSON.stringify(h)),this.logger.info("default MetaData: ",JSON.stringify(g)),g&&h?[(0,m.merge)(g,h)]:[g]}createDefaultMetdata(a){const h={...p.vz};return h.variants[0].id=a,h}getGuestModeConfig(){return this.guestModeConfig}getForceTouchModeSettings(){return n.zk.isTouchPlatform()?this.guestModeConfig?.forceTouchModeSettings:{}}isWhiteLabelingEnabled(){return this.getGuestModeConfig()?.isWhiteLabelingEnabled}hideGuestAppFlowStartButton(){return this.deeplinkHelperService.windowedMode&&this.getGuestModeConfig()?.hideAppStartButton}get isGuestMode(){return this.guestMode}set isGuestMode(a){this.guestMode=a}setGuestModeConfig(a){this.guestModeConfig=p.Uf[a]||p.VN}}return(y=r).\u0275fac=function(a){return new(a||y)(P.KVO(n.J6),P.KVO(v.w),P.KVO(O.qQ))},y.\u0275prov=P.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),r})()},66974:(Ue,W,d)=>{"use strict";d.d(W,{x:()=>x.x,N:()=>I});var n=d(57258),l=d(43848),p=d(59859),m=d(31315),_=d(83915),P=d(65706),v=d(14714),O=d(75707),S=d(3567),y=d(2490),r=d(90929),i=d(78812),a=d(14331),h=d(44098),g=d(87687),c=d(20381),T=d(32727),A=d(90895),L=d(58527),x=d(16992),V=d(43354),D=d(5798),F=d(97273);let I=(()=>{var k;class R{constructor(Y,K,$,ee,J,z,te,X,re,ge){this.guestModeHelperService=K,this.gfnSdkService=$,this.appConfig=ee,this.endpointFactory=J,this.distributedtracingUtilService=z,this.telemetryService=te,this.gameShareUrlService=X,this.experienceControlService=re,this.systemInfoService=ge,this.guestModeExitUrl="",this.guestModeAllowedRedirectUrls=[],this.isGuestFlowConfigFetchedSubject=new n.m(1),this.logger=Y.getLogger("GuestModeService")}getAuthConfigFromNonce(Y,K,$,ee){const z=this.endpointFactory.createEndpoint({config:{timeout:this.appConfig.accountLinking.defaultTimeout??15e3,timeBetweenRetries:0,maxRetries:this.appConfig.accountLinking.defaultRetries??1}}),X=this.createRequestOptions({partnerId:K,cmsId:$,nonce:Y,deviceId:ee},{}),re=z.post(this.buildApiUrl("token"),X);return this.distributedtracingUtilService.handleHttpEndpointSpan(re,X,y.pB.AlsTokenExchange).pipe((0,_.T)(ge=>(this.logger.info("Successfully got JWT token from ALS API"),{authType:"jwt",partnerData:"",partnerSecureData:ge?.partnerSecureData,token:ge?.token})))}buildApiUrl(Y){return this.appConfig.accountLinking?.server+"/v2/"+Y}createRequestOptions(Y={},K={}){return{params:K,body:Y}}get guestModeAllowedRedirectUrlsList(){return this.guestModeAllowedRedirectUrls}set guestModeAllowedRedirectUrlsList(Y){this.guestModeAllowedRedirectUrls=Y}get isGuestFlowConfigFetched$(){return this.isGuestFlowConfigFetchedSubject.asObservable()}getGuestModeExitUrl(){return this.guestModeExitUrl}isStateValid(Y){return!!((0,T.It)(Y)||(0,T.Q2)(Y)||/^[a-zA-Z0-9-]{1,36}$/.test(Y))}createRedirectURLWithState(Y,K,$){return(0,h.K)(Y,K,$)}initializeGuestModeExitUrl(Y,K,$){this.guestModeExitUrl=(0,h.K)(Y,K,$.toString())}updateRedirectURLWithSubErrorCode(Y){this.guestModeExitUrl=(0,h.K)(this.guestModeExitUrl,a.hV.SubStatus,(0,A.yJ)(Y)),this.gameShareUrlService.setExitUrl(this.guestModeExitUrl)}updateGuestModeExitUrl(Y){this.guestModeExitUrl=(0,h.K)(this.guestModeExitUrl,a.hV.Status,Y.toString()),this.gameShareUrlService.setExitUrl(this.guestModeExitUrl)}fetchGuestFlowConfigCloudVariable(Y,K,$,ee){return this.experienceControlService.getCloudVariable(this.appConfig.gxTarget.experiences.guestFlowClientConfig,{partnerId:Y},{useCache:!1,useNetworkTimeoutForCacheFallback:!1},c.Ky.GxTargetGetCloudVariable,c.Id.Other).pipe((0,P.s)(1),(0,_.T)(J=>{this.gxtGuestFlowClientConfig=J.value,this.logger.info("guestFlowClientConfig from gxtarget is: ",this.gxtGuestFlowClientConfig);const z=this.gxtGuestFlowClientConfig.defaultPartnerConfig;let te;$&&(te=this.gxtGuestFlowClientConfig[$]);const X=this.guestModeHelperService.mergeGuestModeConfig(te,z),re=X?.allowedRedirectUrls||[];if(this.guestModeHelperService.updateGuestModeConfig(X),this.logger.info("Final Guest Mode Config: ",JSON.stringify(X)),this.isGuestFlowConfigFetchedSubject.next(),""!==K||0!==re.length){let oe=decodeURIComponent(K);if(!re.includes(oe))return{success:!1,error:g.LQP.RedirectURLNotAllowed};if(""!==ee){if(!this.isStateValid(ee))return{success:!1,error:g.LQP.RedirectURLNotAllowed};oe=this.createRedirectURLWithState(oe,a.hV.State,ee)}else this.logger.info("Optional param state is empty");this.initializeGuestModeExitUrl(oe,a.hV.Status,a.Jv.Success)}return z?.enabled??1?{success:!0,error:g.LQP.None,guestFlowStatusCode:a.Jv.Success}:(this.logger.error("Guest Mode is not enabled for ",Y),{success:!1,error:g.LQP.Unauthorized,guestFlowStatusCode:a.Jv.Campaign_Suspended})}),(0,v.W)(J=>(this.logger.error("Error in fetching guestFlowClientConfig from GXT",J),(0,l.of)({success:!1,error:g.LQP.Unknown}))))}setAuthDataUsingNonce(Y,K,$){return this.systemInfoService.getSystemInfo([S.Lu.DeviceId]).pipe((0,O.ZZ)(ee=>this.getAuthConfigFromNonce(Y,K,parseInt($,10),ee.DeviceId)),(0,_.T)(ee=>ee.token&&0!==ee.token.length?(this.gfnSdkService.setSdkClient(K,ee),{success:!0,error:g.LQP.None,guestFlowStatusCode:a.Jv.Success}):(this.logger.error("Invalid JWT token from ALS API"),{success:!1,error:g.LQP.Unauthorized,guestFlowStatusCode:a.Jv.GFN_Error})),(0,v.W)(ee=>(this.logger.error("Failed to fetch JWT token from ALS API",ee),(0,l.of)(401===ee.status?{success:!1,error:g.LQP.PartnerAuthFailed,guestFlowStatusCode:a.Jv.Partner_Error}:{success:!1,error:g.LQP.Unauthorized,guestFlowStatusCode:a.Jv.GFN_Error}))))}setAuthDataUsingNonceAndUpdateGuestFlowConfig(Y,K,$,ee,J,z){if(!ee)return this.logger.error("No cms-id in deeplink with nonce"),(0,p.$)(g.LQP.BadRequest);const te=this.fetchGuestFlowConfigCloudVariable(K,J,$,z),X=this.setAuthDataUsingNonce(Y,K,$);return(0,m.zV)([te,X]).pipe((0,P.s)(1),(0,O.ZZ)(([re,ge])=>re.success?ge.success?(0,l.of)([re,ge]):(ge?.guestFlowStatusCode&&this.updateGuestModeExitUrl(ge?.guestFlowStatusCode),(0,p.$)(ge.error)):(re?.guestFlowStatusCode&&this.updateGuestModeExitUrl(re?.guestFlowStatusCode),(0,p.$)(re.error))),(0,O.ZZ)(re=>this.gfnSdkService.getAuthInfo()),(0,_.T)(re=>(re.authType===r.hT.JWT&&(this.telemetryService.setEventsCommonData({userId:re.userId,externalUserId:re.externalUserId,idpId:re.idpId},!0),this.experienceControlService.setUserInfo({userId:i.oX.Undefined,idpId:i.oX.Undefined})),!0)))}}return(k=R).\u0275fac=function(Y){return new(Y||k)(L.KVO(S.J6),L.KVO(x.x),L.KVO(r.DL),L.KVO(V.V),L.KVO(D.t),L.KVO(y.Z1),L.KVO(i.H0),L.KVO(F.u),L.KVO(c.BW),L.KVO(S.zW))},k.\u0275prov=L.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),R})()},6693:(Ue,W,d)=>{"use strict";d.d(W,{t:()=>c});var n=d(94485),l=d(5798),p=d(78812),m=d(35225),_=d(3567),P=d(26875),O=d(36466),S=d(35146),y=d(43848),r=d(43354),i=d(75707),a=d(70521),h=d(58527),g=d(92565);let c=(()=>{var T;class A{constructor(x,V,D,F,I,k){this.injector=x,this.statusCodeZeroAnalyzerFactoryService=D,this.localeService=F,this.serviceWorkerService=I,this.externalJsLoadService=k,this.logger=V.getLogger("http-telemetry.service"),this.reverseOriginalService=new Map,Object.keys(m.Uu$).forEach(R=>{this.reverseOriginalService.set(m.Uu$[R],R)}),this.reverseServiceUseCase=new Map,Object.keys(m.OOF).forEach(R=>{this.reverseServiceUseCase.set(m.OOF[R],R)}),this.reverseServiceSubUseCase=new Map,Object.keys(m.c4O).forEach(R=>{this.reverseServiceSubUseCase.set(m.c4O[R],R)}),this.pendingNetworkResponseMap=new Map}getStatusCodeZeroAnalyzer(){if(this.statusCodeZeroAnalyzer)return this.statusCodeZeroAnalyzer;const x=this.injector.get(r.V)?.statusCodeZeroAnalyzerConfig;return this.statusCodeZeroAnalyzer=this.statusCodeZeroAnalyzerFactoryService.createAnalyzer(x),this.statusCodeZeroAnalyzer}initialize(){this.logger.info("Initializing Http Telemetry Service"),l.sl.httpErrorEvents$().subscribe(x=>{this.sendHttpFailureEvent(x)}),l.sl.httpSuccessEvents$().subscribe(x=>{this.sendHTTPSuccessEvent(x)}),this.sendHTTPGetCallsTelemetry(),this.serviceWorkerService.networkResponseReceived.subscribe(x=>{this.handleNetworkResponseReceived(x)},O.l)}handleNetworkResponseReceived(x){const V=x.requestId;if(this.pendingNetworkResponseMap.has(V)){const D=this.pendingNetworkResponseMap.get(V);if(this.pendingNetworkResponseMap.delete(V),x.responseStatusCode<=0||x.responseStatusCode>=400){const F=D.httpSuccessEvent.parameters,I=new m._o$({destinationIp:F.destinationIp,serviceSubUseCase:F.serviceSubUseCase,sourceComponent:F.sourceComponent,serviceUseCase:F.serviceUseCase,originalService:F.originalService,xRequestId:F.xRequestId,url:F.url,retryCount:F.retryCount,wasSWCacheBypassed:F.wasSWCacheBypassed,networkErrorCode:String(x.responseStatusCode),networkErrorMessage:x.responseBody?.substring(0,1024)||""});this.telemetryService.push(I)}else D.httpSuccessEvent.parameters.durationMs=x.responseReceivedTimeMs-D.requestStartTime,this.telemetryService.push(D.httpSuccessEvent)}}sendHTTPGetCallsTelemetry(){this.externalJsLoadService.jsLoadTelemetrySubject$.subscribe(x=>{this.updateAndSendTelemetry(x,m.OOF.FetchJSFile)}),_.zk.isBrowserPlatform()&&(_.cK.retrySubject.subscribe(x=>{this.updateAndSendTelemetry(x,m.OOF.FetchJSFile)}),this.localeService.getLocaleDownloadRetryTelemetryData().subscribe(x=>{this.updateAndSendTelemetry(x,m.OOF.FetchLocaleJson)}))}updateAndSendTelemetry(x,V){const D={includeRequestId:!1,reportRequestData:{originalService:m.Uu$.AwsS3,serviceUseCase:V,serviceSubUseCase:m.c4O.Other,retryCount:x.attemptCount.toString(),requestEndTime:"0",requestStartTime:"0"}};if(x.isSuccess){const I={response:new n.cS({status:200,url:x.fileName}),options:D};this.sendHTTPSuccessEvent(I)}else this.sendHttpFailureEvent({response:{url:x.fileName,status:404},options:D})}getRetryCount(x){return(0,P.isNil)(x)||(0,P.isNil)(x.retryCount)?0:parseInt(x.retryCount,10)}getSWCacheBypassInfo(x){let D,V=m.T80.UNDEFINED;return x.headers&&x.headers[a.tD.SwCacheBypass]&&(D=x.headers[a.tD.SwCacheBypass],V=D===JSON.stringify(!0)?m.T80.TRUE:m.T80.FALSE),{swCacheBypassHeaderValue:D,wasSWCacheBypassed:V}}sendHttpFailureEvent(x){(0,P.isNil)(this.telemetryService)&&(this.telemetryService=this.injector.get(p.H0)),(0,P.isNil)(this.telemetryUtilService)&&(this.telemetryUtilService=this.injector.get(m.jgD));const V=x.response.xRequestId?x.response.xRequestId:"";(0,P.isNil)(this.telemetryService)||(0,P.isNil)(this.telemetryUtilService)?this.logger.warn("Unable to send event for failed http request: ",x.response.url):(0,S.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).pipe((0,i.ZZ)(D=>0!==x.response.status?(0,y.of)({statusCode:x.response.status}):this.getStatusCodeZeroAnalyzer().getFailureCode({requestUrl:x.response.url,uniqueRequestId:V}))).subscribe(D=>{const I=D.cachedDNSEntry?.destinationIp||"",k=this.getSWCacheBypassInfo(x.options);let R="";R=0===x.response.status?x.response.rawResponse?.message??"":JSON.stringify(x.response.rawResponse?.error)??"";const G=new m._o$({sourceComponent:this.telemetryUtilService.getClientType(),originalService:this.getOriginalService(x.options.reportRequestData),serviceUseCase:this.getServiceUseCase(x.options.reportRequestData),serviceSubUseCase:this.getServiceSubUseCase(x.options.reportRequestData),url:x.response.url,networkErrorCode:String(D.statusCode),destinationIp:I,xRequestId:V,retryCount:this.getRetryCount(x.options.reportRequestData),wasSWCacheBypassed:k.wasSWCacheBypassed,networkErrorMessage:R.substring(0,1024)});this.telemetryService.push(G)})}sendHTTPSuccessEvent(x){(0,P.isNil)(this.telemetryService)&&(this.telemetryService=this.injector.get(p.H0)),(0,P.isNil)(this.telemetryUtilService)&&(this.telemetryUtilService=this.injector.get(m.jgD)),(0,P.isNil)(this.telemetryService)||(0,P.isNil)(this.telemetryUtilService)?this.logger.info("Unable to send event for http success request: ",x.response.url):(0,S.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).subscribe(V=>{const D=this.getSWCacheBypassInfo(x.options),F=new m.Bhf({sourceComponent:this.telemetryUtilService.getClientType(),originalService:this.getOriginalService(x.options.reportRequestData),serviceUseCase:this.getServiceUseCase(x.options.reportRequestData),serviceSubUseCase:this.getServiceSubUseCase(x.options.reportRequestData),url:x.response.url,httpStatus:x.response.status,durationMs:parseInt(x.options.reportRequestData.requestEndTime,10)-parseInt(x.options.reportRequestData.requestStartTime,10),destinationIp:"",responseData:"",xRequestId:x.options.includeRequestId?x.options.headers[l.SA.xRequestId]:"",retryCount:this.getRetryCount(x.options.reportRequestData),wasSWCacheBypassed:D.wasSWCacheBypassed});F.parameters.xRequestId&&this.serviceWorkerService.willGFNServiceWorkerHandleRequest(x.response.url,D.swCacheBypassHeaderValue)?this.pendingNetworkResponseMap.set(F.parameters.xRequestId,{httpSuccessEvent:F,requestStartTime:parseInt(x.options.reportRequestData.requestStartTime,10)}):this.telemetryService.push(F)})}getOriginalService(x){return(0,P.isNil)(x)||(0,P.isNil)(x.originalService)||(0,P.isNil)(this.reverseOriginalService.get(x.originalService))?m.Uu$.Other:m.Uu$[this.reverseOriginalService.get(x.originalService)]}getServiceUseCase(x){return(0,P.isNil)(x)||(0,P.isNil)(x.serviceUseCase)||(0,P.isNil)(this.reverseServiceUseCase.get(x.serviceUseCase))?m.OOF.Other:m.OOF[this.reverseServiceUseCase.get(x.serviceUseCase)]}getServiceSubUseCase(x){return(0,P.isNil)(x)||(0,P.isNil)(x.serviceSubUseCase)||(0,P.isNil)(this.reverseServiceSubUseCase.get(x.serviceSubUseCase))?m.c4O.Other:m.c4O[this.reverseServiceSubUseCase.get(x.serviceSubUseCase)]}}return(T=A).\u0275fac=function(x){return new(x||T)(h.KVO(h.zZn),h.KVO(_.J6),h.KVO(_.pZ),h.KVO(_.iH),h.KVO(a.lS),h.KVO(g.C))},T.\u0275prov=h.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),A})()},98231:(Ue,W,d)=>{"use strict";d.d(W,{S:()=>S});var n=d(72147),l=d(65706),p=d(75707),m=d(17698),_=d(74931),P=d(58527),v=d(3567),O=d(24682);let S=(()=>{var y;class r{constructor(a,h,g,c){this.ipcService=a,this.idmService=g,this.bridgeService=c,this.logger=h.getLogger("shared/idm-ipc"),this.ipcService.get$(m.kN.LoginStatusChanged).pipe((0,n.n)(T=>g.refreshUser())).subscribe(()=>{this.logger.info("User refreshed successfully")},T=>{this.logger.error("Failed refresh User with error: ",T)})}sendLoginStatusChange(){this.idmService.accountStatusChanged.pipe((0,l.s)(1),(0,p.ZZ)(a=>this.bridgeService.executeCommand(_.Ts.Common.Ipc.LoginStatus,{data:a}))).subscribe(a=>this.logger.info("success sending LoginStatus",a),a=>this.logger.error("error sending LoginStatus",a))}}return(y=r).\u0275fac=function(a){return new(a||y)(P.KVO(m.Uj),P.KVO(v.J6),P.KVO(O.k_),P.KVO(v.NZ))},y.\u0275prov=P.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),r})()},9801:(Ue,W,d)=>{"use strict";d.d(W,{J:()=>a,a:()=>i});var n=d(35146),l=d(35225),p=d(46356),m=d(8619),_=d(65706),P=d(75707),v=d(58527),O=d(3567),S=d(78812),y=d(61958);const r="loginStartEvent";var i=function(h){return h.isSilentLoginTelemetry="isSilentLoginTelemetry",h.isLoginViaLoginHint="isLoginViaLoginHint",h.None="None",h}(i||{});let a=(()=>{var h;class g{constructor(T,A,L,x,V,D){this.telemetryUtilService=A,this.telemetryService=L,this.starfleetService=x,this.config=V,this.appConfig=D,this.isLoginWallEnabled=!!this.appConfig?.featureEnablement?.showLoginWall,this.logger=T.getLogger("gfn/shared/idm/idmLoginService")}sendLoginSuccessUserSessionEvent(T=i.None){this.telemetryService.getValidUserIdResetObservable().pipe((0,m.p)(A=>!0===A),(0,_.s)(1),(0,P.ZZ)(A=>(this.logger.info("Sending login success user session event"),this.starfleetService.accountStatusChanged.pipe((0,_.s)(1))))).subscribe(A=>{let L=this.isLoginWallEnabled?l.ay7.LoginWithStarfleetViaLoginWall:l.ay7.LoginWithStarfleet;T==i.isSilentLoginTelemetry&&(L=l.ay7.SilentLoginDirectLaunch),T==i.isLoginViaLoginHint&&(L=l.ay7.LoginviaLoginHint);const x=new l.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen(),userAction:L,status:l.fbu.Success,errorDetails:status.toString(),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(x,null,{immediateRequest:!0}),this.logger.info("Sent loginSuccessEvent telemetry")})}sendLoginFailureUserSessionEvent(T=i.None){this.logger.info("Sending login failed user session event"),(0,n.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).pipe((0,P.ZZ)(A=>this.starfleetService.accountStatusChanged.pipe((0,_.s)(1)))).subscribe(A=>{let L=this.isLoginWallEnabled?l.ay7.LoginWithStarfleetViaLoginWall:l.ay7.LoginWithStarfleet;T==i.isSilentLoginTelemetry&&(L=l.ay7.SilentLoginDirectLaunch),T==i.isLoginViaLoginHint&&(L=l.ay7.LoginviaLoginHint);const x=new l.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen(),userAction:L,status:l.fbu.Failure,errorDetails:this.starfleetService.lastError.error_description,totalMs:0,serverErrorCode:this.starfleetService.lastError.error_code,errorUri:this.starfleetService.lastError.error_uri});this.telemetryService.push(x,null,{immediateRequest:!0})})}sendCreateHTTPServerErrorEvent(){this.logger.info("Sending create HTTP server error event");const T=new l.px4({portsUsed:this.config.portNumbers?this.config.portNumbers.toString():"",errorMessage:p.gH.HTTP_START_FAILED});this.telemetryService.push(T)}sendLoginStartEvent(T,A){this.logger.info("Sending login triggered event");const L={loginProviderIdpId:T||""},x=new l.JWD(L);A?sessionStorage.setItem(r,JSON.stringify(L)):this.telemetryService.push(x)}checkAndSendLoginStartEvent(){(0,n.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDefaultClientConsentObserable()).subscribe(T=>{const A=sessionStorage.getItem(r);if(A){const L=new l.JWD(JSON.parse(A));this.telemetryService.push(L),sessionStorage.removeItem(r)}})}}return(h=g).\u0275fac=function(T){return new(T||h)(v.KVO(O.J6),v.KVO(l.jgD),v.KVO(S.H0),v.KVO(p.hr),v.KVO(p.X$),v.KVO(y.Vk))},h.\u0275prov=v.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),g})()},17913:(Ue,W,d)=>{"use strict";d.d(W,{OV:()=>p});var n=d(3567);const p={userId:"",externalId:"",idpId:"",displayName:"",isAuthenticated:!1,technicalConsent:n.Rg.None,behavioralConsent:n.Rg.None,email:"",age:0}},97944:(Ue,W,d)=>{"use strict";d.d(W,{k:()=>oe});var n=d(57258),l=d(43848),p=d(16229),m=d(27731),_=d(63997),P=d(75707),v=d(8619),O=d(99047),S=d(83915),y=d(25577),r=d(14714),i=d(91384),a=d(48765),h=d(65706),g=d(3567),c=d(46356),T=d(79266),A=d(36206),L=d(90929),x=d(44098),V=d(17913),D=d(9801),F=d(32398),I=d(26875),k=d(58527),R=d(20381),G=d(72945),Y=d(14354),K=d(61958),$=d(54292),ee=d(35225),J=d(71927),z=d(74931);let te=(()=>{var xe;class ue{constructor(se,ce,Z,de,ae){this.config=se,this.bridgeService=Z,this.sharedStorage=de,this.dbService=ae,this.storageType=c.eL.SharedStorage,this.logger=ce.getLogger("crimson/NativeAuthService"),this.idTokenRefreshUnderDuration=this.config.idTokenRefreshUnderDuration??0,this.idTokenRefreshUnderDuration<0&&(this.idTokenRefreshUnderDuration=0),this.storageType=this.config?.storageType??c.eL.SharedStorage,this.config.storageType===c.eL.IndexedDB&&(this.globalStore=this.dbService.getGlobalStore(c.EK.DBName))}syncSessionData(){return J.e.loadFrom(this.storageType===c.eL.SharedStorage?this.sharedStorage:this.globalStore,this.idTokenRefreshUnderDuration).pipe((0,P.ZZ)(ce=>{let Z={};return ce?.data?.user?.isAuthenticated&&(Z={clientToken:ce.data?.clientToken,accessToken:ce.data?.accessToken,idToken:ce.data?.idToken,clientTokenExpiry:ce.data?.clientTokenExpiry,accessTokenExpiry:ce.data?.accessTokenExpiry,idTokenExpiry:ce.data?.idTokenExpiry,sub:ce.data.user?.sub,idpName:ce.data.user?.idp_name,idpId:ce.data.user?.idp_id,externalId:ce.data.user?.external_id,preferredUserName:ce.data.user?.preferred_username,trackTechnicalData:ce.data.user?.consent?.trackTechnicalData,trackBehavioralData:ce.data.user?.consent?.trackBehavioralData}),this.bridgeService.executeCommand(z.Ts.Common.Nativeauth.syncSessionData,Z).pipe((0,S.T)(de=>de?new J.e(this.idTokenRefreshUnderDuration,{clientToken:de.clientToken,accessToken:de.accessToken,idToken:de.idToken,clientTokenExpiry:de.clientTokenExpiry,accessTokenExpiry:de.accessTokenExpiry,idTokenExpiry:de.idTokenExpiry,user:{isAuthenticated:!0,sub:de.sub,idp_name:de.idpName,idp_id:de.idpId,external_id:de.externalId,preferred_username:de.preferredUserName,consent:{trackTechnicalData:de.trackTechnicalData,trackBehavioralData:de.trackBehavioralData}}},this.config.storageType??c.eL.SharedStorage):null))}))}}return(xe=ue).\u0275fac=function(se){return new(se||xe)(k.KVO(c.X$),k.KVO(g.J6),k.KVO(g.NZ),k.KVO(G.yQ),k.KVO(g.at))},xe.\u0275prov=k.jDH({token:xe,factory:xe.\u0275fac,providedIn:"root"}),ue})();var ge,X=d(86574),re=d(32362);class oe{get loginProvider(){return this._loginProvider}set loginProvider(ue){this._loginProvider=ue}constructor(ue,N,se,ce,Z,de,ae,pe,_e,ke,De,Me,je,$e){this.loggingService=ue,this.experienceControlService=N,this.sharedStorageService=se,this.gfnSdkService=ce,this.starfleetService=Z,this.router=de,this.appConfig=ae,this.browserSupportService=pe,this.telemetryUtilService=_e,this.idmTelemetryService=ke,this.redirectService=De,this.nativeAuthService=Me,this.uasService=je,this.loginInfoStoreService=$e,this.isStreamer=!1,this._loginProvider=null,this.disableStarfleetUser=!1,this.notifyLogoutStartedSubject=new n.m(1),this.isSameTabLoginFeatureEnabled=!1,this.initSub=new n.m(1),this.accountStatusChanged$=new n.m(1),this.accountStatusChangedWithAge$=new n.m(1),this.getAuthStatus=()=>this.starfleetService.getAuthStatus(),this.cancel=()=>this.starfleetService.cancel(),this.getDeviceDisplayCode=()=>this.starfleetService.getDeviceDisplayCode(),this.logger=ue.getLogger("gfn/shared/idm/idmService"),this.starfleetEnabled=!1,this.idmProvider$=new n.m(1),this.isStreamer=(0,x.I2)(this.router.url),this.isSameTabLoginFeatureEnabled=this.appConfig.starfleet.sameTabLogin}initialize(ue){this.disableStarfleetUser=ue??!1,this.updateIdmProvider(!0),this.accountStatusChanged.subscribe(N=>{g.zk.isAndroidPlatform()&&this.nativeAuthService.syncSessionData().pipe((0,P.ZZ)(se=>this.starfleetService.syncSession(se))).subscribe(se=>this.logger.info("sucess in native session sync"),se=>this.logger.error("error in native session sync",se)),this.setExperienceControlData(N)}),this.checkAndSilentLogin(),this.telemetryUtilService.saveTelmetrySessionIdOnLoginAndLogout(this.sameTabAuthStarted()),this.manageAccountStatusChanged(),this.appConfig?.featureEnablement?.logininfo?.enabled&&this.accountStatusChanged.pipe((0,v.p)(N=>this.appConfig.starfleet.jarvisIdpId===N?.idpId||!N?.isAuthenticated),(0,P.ZZ)(N=>this.loginInfoStoreService.updateSsoLoginInfoEntry(N?.isAuthenticated,N?.idpId,N?.email,g.cq.GFN))).subscribe()}setExperienceControlData(ue){this.experienceControlService.setUserInfo(ue);const N=this.appConfig.gxTarget.denyListExperiences||[];let se=Object.values(this.appConfig.gxTarget.experiences).filter(ce=>!N.includes(ce));!ue.userId&&!(0,x.ED)()&&(se=se.filter(ce=>this.appConfig.gxTarget.deviceIdActivatedExperiences.includes(ce))),this.experienceControlService.setCvList(se),this.experienceControlService.refreshCloudVariables()}verifySsoSharedPageMessage(ue){return ue&&ue.login_hint&&ue.idp_id===this.appConfig.starfleet.jarvisIdpId}gfnStoredLoginInfoApplicableForSso(ue,N,se){return!this.loginInfoStoreService.isEmptySilentLoginInfo(se)&&se.idp_id===ue&&ue===N}isSsoEnabled(){return!this.browserSupportService.isLocalDomain()&&this.appConfig.starfleet.ssoEnabled&&!this.disableStarfleetUser}checkAndSilentLogin(){if(!this.isSsoEnabled())return this.initSub.next(!0),void this.logger.info("SSO not applicable, unblocking login status broadcast");let ue,N,se;this.silentLoginHelperClass=new g.Ts(this.loggingService,this.appConfig.starfleet.ssoSharedPageUrl,this.appConfig.starfleet.maxWaitTimeIframeLoad),this.starfleetService.getAuthStatus().pipe((0,P.ZZ)(ce=>ce.authReturnState===c.l4.LogoutCompleted?this.silentLoginHelperClass.clearUserDetailsFromSharedPage:this.starfleetAccountStatusChangedWrapper()),(0,P.ZZ)(ce=>ce?.isAuthenticated?this.silentLoginHelperClass.saveUserDetailsToSharedPage({login_hint:ce.email,idp_id:ce.idp_id,sub:ce.sub,timestamp:(new Date).toISOString()}):(0,l.of)(null))).subscribe(ce=>this.logger.info("getAuthStatus success"),ce=>this.logger.info("getAuthStatus error:",ce)),(0,p.h)(this.starfleetService.accountStatusChanged.pipe((0,O.$)(),(0,S.T)(ce=>(ue=ce,ue))),this.silentLoginHelperClass.getUserDetailsFromSharedPage.pipe((0,S.T)(ce=>(N=ce??{idp_id:""},N))),this.starfleetService.getAuthStatus().pipe((0,S.T)(ce=>ce.authReturnState===c.l4.LogoutCompleted&&(se=!0,se)))).pipe((0,P.ZZ)(ce=>ue&&ue.isAuthenticated?(this.logger.info("User is already logged in so silent login not required"),(0,l.of)(T.t.LoginSSONotApplicable)):se?(this.logger.info("Returning from Logout so skipping silent login"),(0,l.of)(T.t.LoginSSONotApplicable)):ue&&!ue.isAuthenticated&&N?this.verifySsoSharedPageMessage(N)?(this.logger.info("Silent login starting"),this.starfleetService.login({silentLoginInfo:{silentLoginHelperInstance:this.silentLoginHelperClass,ssoSharedPageData:N}}).pipe((0,y.H)())):(this.logger.info("Silent login not possible due to login hints verification"),(0,l.of)(T.t.LoginSSONotApplicable)):(this.logger.info("Silent login processing ongoing"),(0,l.of)(T.t.LoginSSOProcessing))),(0,r.W)(ce=>(this.logger.error("SSO checking failed with error ",ce),(0,l.of)(T.t.LoginSSONotApplicable))),(0,i.M)(ce=>{ce!==T.t.LoginSSOProcessing&&(this.logger.info("Unblocking login status broadcast"),this.initSub.next(!0)),ce===c.l4.LoginCompleted?this.idmTelemetryService.sendLoginSuccessUserSessionEvent(D.a.isSilentLoginTelemetry):ce!==T.t.LoginSSOProcessing&&ce!==T.t.LoginSSONotApplicable&&this.idmTelemetryService.sendLoginFailureUserSessionEvent(D.a.isSilentLoginTelemetry)}),(0,a.v)(ce=>ce===T.t.LoginSSOProcessing)).subscribe()}updateIdmProvider(ue){this.starfleetEnabled=ue;const N={data:"starfleet"};this.gfnSdkService.getAuthInfo().subscribe(se=>{let ce=null;se.authType===L.hT.IDM&&(ce=se.authToken),this.starfleetService.initialize(!0,!1,ce),this.isStreamer&&this.starfleetService.getAuthToken().subscribe(),this.idmProvider$.next({starfleetEnabled:this.starfleetEnabled,service:this.starfleetService})}),N.data="starfleet",this.sharedStorageService.writeBlock("authProvider",N).subscribe(se=>this.logger.info("success updating authProvider: ",se),se=>this.logger.error("error in updating auth provider: ",se))}handleAccountStatusChanged(ue,N=!1){return!0!==ue.isAuthenticated?(this.logger.info("account status changed, user is logged out"),(0,l.of)(ue)):this.getAuthToken(N).pipe((0,P.ZZ)(se=>null===se?(0,l.of)(F.f.NOT_LOGGED_IN):(this.logger.info("acquiring user at account status changed"),this.uasService.autoEntitleUser(se.token,N))),(0,P.ZZ)(se=>se===F.f.AUTHORIZATION_ERROR&&!1===N?(this.logger.warn("account-status-changed Auth Error retrying"),this.handleAccountStatusChanged(ue,!0)):se===F.f.NOT_LOGGED_IN||se===F.f.UNKNOWN||se===F.f.AUTHORIZATION_ERROR?this.logout(void 0,void 0,void 0,!0).pipe((0,P.ZZ)(ce=>m.t)):(0,l.of)(ue)))}manageAccountStatusChanged(){let ue={};this.starfleetService.accountStatusChanged.pipe((0,P.ZZ)(N=>this.handleAccountStatusChanged(N)),(0,S.T)(N=>{N&&((0,I.isEqual)(ue,N)||(ue.age=N?.age,ue.isNetworkCall=N?.isNetworkCall,(0,I.isEqual)(ue,N)?(this.logger.info("Only AccountStatusChangedWithAge event emitted."),this.accountStatusChangedWithAge$.next(N)):(this.logger.info("AccountStatusChanged event emitted."),this.accountStatusChanged$.next(N),this.accountStatusChangedWithAge$.next(N))),ue=N)})).subscribe()}starfleetAccountStatusChangedWrapper(){return this.initSub.pipe((0,P.ZZ)(ue=>this.accountStatusChanged$))}get accountStatusChanged(){return this.starfleetAccountStatusChangedWrapper().pipe((0,S.T)(ue=>this.disableStarfleetUser?V.OV:this.getUserFromStarfleet(ue)))}get accountStatusChangedWithAge(){return this.accountStatusChangedWithAge$.pipe((0,S.T)(ue=>this.disableStarfleetUser?V.OV:this.getUserFromStarfleet(ue)))}getUserFromStarfleet(ue){return{userId:ue.sub,externalId:ue.external_id,idpId:ue.idp_id,displayName:ue.preferred_username,isAuthenticated:ue.isAuthenticated,technicalConsent:ue.consent?.trackTechnicalData?g.Rg.Full:g.Rg.None,behavioralConsent:ue.consent?.trackBehavioralData?g.Rg.Full:g.Rg.None,targetedAdsOptIn:ue.consent?.targetedAdsOptIn??void 0,email:ue.email,age:ue?.age,isNetworkCall:ue?.isNetworkCall}}get isUserTokenAvailable(){return this.starfleetService.isUserLoggedIn}get isLoggedIn(){return this.starfleetService.isUserLoggedIn}get cachedUser(){return this.getCachedUserForStarfleet().pipe((0,S.T)(ue=>{const N={data:{},expired:!0};return N.expired=ue.expired,ue.data&&(N.data=this.getUserFromStarfleet(ue.data)),N}))}get cachedUserAndAffiliateStatus(){return(0,_.v)(()=>this.getCachedUserAndAffiliateStatusForStarfleet()).pipe((0,S.T)(ue=>{const N={data:[],expired:!0};return N.expired=ue.expired,ue.data&&ue.data.length&&(N.data.push(this.getUserFromStarfleet(ue.data[0])),N.data.push(ue.data[1])),N}))}getCachedUserAndAffiliateStatusForStarfleet(){return this.starfleetAccountStatusChangedWrapper().pipe((0,h.s)(1),(0,P.ZZ)(ue=>ue.isAuthenticated?this.readStoredStarfleetUserAndAffiliateStatus(ue,!0):(0,l.of)({data:[ue,null],expired:!0})))}getCachedUserForStarfleet(){return this.starfleetAccountStatusChangedWrapper().pipe((0,h.s)(1),(0,S.T)(ue=>ue.isAuthenticated?{data:ue,expired:!1}:{data:void 0,expired:!0}))}get cachedAffiliateStatus(){return this.getCachedAffiliateStatusForStarfleet()}getCachedAffiliateStatusForStarfleet(){return this.starfleetAccountStatusChangedWrapper().pipe((0,h.s)(1),(0,P.ZZ)(ue=>ue.isAuthenticated?this.readStoredStarfleetUserAndAffiliateStatus(ue,!1):(0,l.of)({data:void 0,expired:!0})))}readStoredStarfleetUserAndAffiliateStatus(ue,N){return this.sharedStorageService.readBlock(`idm_${ue.sub}`).pipe((0,S.T)(se=>N?{data:[ue,se],expired:!1}:{data:se,expired:!1}))}setCachedAffiliateStatus(ue,N){return this.setCachedAffiliateStatusForStarfleet(ue,N)}setCachedAffiliateStatusForStarfleet(ue,N){return this.sharedStorageService.writeBlock(`idm_${ue||g.Qe}`,N)}getAuthToken(ue,N){return this.starfleetService.getAuthToken(ue,N).pipe((0,S.T)(se=>({token:se=this.disableStarfleetUser?null:se})))}setIdToken(ue){return this.starfleetService.createNewSessionFromIdToken(ue)}login(ue,N,se,ce,Z,de){return this.uasService.onLoginInitiated(se).pipe((0,P.ZZ)(ae=>(0,p.h)(this.starfleetService.login({force:ue,idpId:N,preCreatedWindow:se,deviceName:ce,returnLocationUrl:Z,silentLoginInfo:de,redirect:ae}).pipe((0,i.M)(pe=>{(pe===c.l4.LoginFailed||pe===c.l4.LoginFailedNoRetry)&&this.uasService.onLoginFailed(this.starfleetService.lastError.error_code)})),this.uasService.AutoEntitleState)))}generateLogoutURL(){return this.accountStatusChanged.pipe((0,h.s)(1),(0,P.ZZ)(ue=>this.redirectService.getRedirectUrl(A.r7.GfnAccountManagementSSO,{idpId:ue.idpId,Plt:A.Gl.Browser})))}logout(ue,N,se,ce){this.isSameTabLoginFeatureEnabled&&this.notifyLogoutStartedSubject.next(!0);const Z=this.isSameTabLoginFeatureEnabled&&!ce?this.generateLogoutURL():(0,l.of)(N),de=(se||document.baseURI).split("?")[0];return Z.pipe((0,P.ZZ)(ae=>this.starfleetService.logout(ue,ae,de,ce)))}refreshUser(){return this.starfleetService.refreshUser().pipe((0,S.T)(ue=>this.getUserFromStarfleet(ue)))}getUserServiceEndpoint(ue){return this.getServiceEndpointViaStarfleet(ue)}getClientData(ue,N){return this.starfleetService.getClientData(ue,N)}setClientData(ue,N,se){return this.starfleetService.setClientData(ue,N,se)}appendClientData(ue,N,se){return this.starfleetService.appendClientData(ue,N)}deleteClientData(ue,N,se){return this.starfleetService.deleteClientData(ue,N)}getServiceEndpointViaStarfleet(ue){return this.starfleetAccountStatusChangedWrapper().pipe((0,S.T)(N=>{let se=ue.gfnServiceEndpoints.find(ce=>ce.idpId===N.idp_id);if(!se||this.disableStarfleetUser){this.logger.info("Login provider not found with idp id, returning default provider");const ce=ue.defaultProvider;se=ue.gfnServiceEndpoints.find(Z=>Z.loginProvider===ce)}return{user:this.getUserFromStarfleet(N),serviceEndpoint:se}}))}get accountsUrl$(){return(0,l.of)("")}handleAuthError(ue,N,se,...ce){return this.starfleetService.handleAuthError(ue,N,se,...ce)}getLogoutInitializeNotification(){return this.isSameTabLoginFeatureEnabled?this.notifyLogoutStartedSubject.asObservable():m.t}sameTabAuthStarted(){return this.isSameTabLoginFeatureEnabled?this.starfleetService.sameTabAuthStarted():m.t}cancelLogin(ue){return this.uasService.cancelAutoEntitlement(),this.isLoggedIn.pipe((0,P.ZZ)(N=>N?(this.logger.info("user was logged in, and cancelled during auto entitle"),(0,l.of)({authData:{},isLoggedIn:N})):this.starfleetService.cancelLogin(ue).pipe((0,S.T)(se=>({authData:se,isLoggedIn:N})))),(0,S.T)(N=>(this.logger.info("Cancelled error detected while user logging in",N.authData),(!N.authData.error&&!this.appConfig.starfleet.useAuthorizationCodeFlow||N.isLoggedIn)&&this.logout(N.authData.access_token,null,null,!0).subscribe(),N.authData)))}}(ge=oe).LOGIN_CANCELLED_BY_USER=c.gH.LOGIN_CANCELLED_BY_USER,ge.\u0275fac=function(ue){return new(ue||ge)(k.KVO(g.J6),k.KVO(R.BW),k.KVO(G.yQ),k.KVO(L.DL),k.KVO(c.hr),k.KVO(Y.Ix),k.KVO(K.Vk),k.KVO($.vT),k.KVO(ee.jgD),k.KVO(D.J),k.KVO(A.Q5),k.KVO(te),k.KVO(X.l),k.KVO(re.I))},ge.\u0275prov=k.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})},79266:(Ue,W,d)=>{"use strict";d.d(W,{t:()=>l});var l=function(p){return p.LoginSSONotApplicable="Login SSO not applicable",p.LoginSSOProcessing="Login SSO in progress",p}(l||{})},24682:(Ue,W,d)=>{"use strict";d.d(W,{k_:()=>p.k}),d(79266),d(17913);var p=d(97944)},17698:(Ue,W,d)=>{"use strict";d.d(W,{kN:()=>r.kN,Nc:()=>r.Nc,Uj:()=>a,pQ:()=>r.pQ});var n=d(12532),l=d(91384),p=d(7583);class _{constructor(g,c,T){this.project=g,this.concurrent=c,this.scheduler=T}call(g,c){return c.subscribe(new P(g,this.project,this.concurrent,this.scheduler))}}class P extends p.gn{constructor(g,c,T,A){super(g),this.project=c,this.concurrent=T,this.scheduler=A,this.index=0,this.active=0,this.hasCompleted=!1,T<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(g){const{subscriber:c,result:T,value:A,index:L}=g;c.subscribeToProjection(T,A,L)}_next(g){const c=this.destination;if(c.closed)return void this._complete();const T=this.index++;if(this.active<this.concurrent){c.next(g);try{const{project:A}=this,L=A(g,T);this.scheduler?this.destination.add(this.scheduler.schedule(P.dispatch,0,{subscriber:this,result:L,value:g,index:T})):this.subscribeToProjection(L,g,T)}catch(A){c.error(A)}}else this.buffer.push(g)}subscribeToProjection(g,c,T){this.active++,this.destination.add((0,p.tS)(g,new p.zA(this)))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(g){this._next(g)}notifyComplete(){const g=this.buffer;this.active--,g&&g.length>0&&this._next(g.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var v=d(48765),O=d(26875),S=d(74931),y=d(3567),r=d(85830),i=d(58527);let a=(()=>{var h;class g extends y.jS{constructor(T,A,L){const x=A.getLogger("IpcService");super(T,x),this.logger=x,this.defaultHandlerType=y.Jm.Types.HandlerEventType.IpcEvent,this.registerNewHandler(y.Jm.Types.HandlerEventType.IpcEvent,V=>!0,V=>(Object.values(r.kN).includes(V.type)||this.logger.error("Unrecognized IPC type: ",V.type),V.type),V=>V.content,V=>{const D=JSON.parse(V);return((0,O.isNil)(D)||(0,O.isNil)(D.type)||D.type!==r.kN.QueueEmpty&&(0,O.isNil)(D.content))&&this.logger.error("Improperly formed IPC message received: ",V),D}),L.get$(y.D4.IpcNewMessage).subscribe(()=>this.checkIpcMessages(),V=>{this.logger.error("Error received from nativeEventService for IpcNewMessage event: ",V)})}pushMessage(T){if((0,O.isNil)(T))throw new Error("Must be a valid message");return this.bridgeService.executeCommand(S.Ts.Common.Ipc.Push,{message:T}).pipe((0,l.M)(A=>this.logger.info(A,T)))}checkIpcMessages(){this.bridgeService.executeCommand(S.Ts.Common.Ipc.Pop).pipe(function m(h,g=Number.POSITIVE_INFINITY,c){return g=(g||0)<1?Number.POSITIVE_INFINITY:g,T=>T.lift(new _(h,g,c))}(T=>T?.type===r.kN.QueueEmpty?n.w:(0,O.isNil)(T?.type)?(this.logger.error("Invalid ipc message received: ",T),n.w):this.bridgeService.executeCommand(S.Ts.Common.Ipc.Pop)),(0,v.v)(T=>T?.type!==r.kN.QueueEmpty)).subscribe(T=>{this.processMessage(JSON.stringify(T))})}}return(h=g).\u0275fac=function(T){return new(T||h)(i.KVO(y.NZ),i.KVO(y.J6),i.KVO(y.dU))},h.\u0275prov=i.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),g})()},85830:(Ue,W,d)=>{"use strict";d.d(W,{Nc:()=>p,kN:()=>l,pQ:()=>m});var n=d(74931),l=function(_){return _.SelfUpdate="IPC_SELF_UPDATE_EVENT",_.RecommendedUpdate="IPC_RECOMMENDED_UPDATE_EVENT",_.RequiredUpdate="IPC_REQUIRED_UPDATE_EVENT",_.CriticalUpdate="IPC_CRITICAL_UPDATE_EVENT",_.PushNotification="IPC_PUSH_NOTIFICATION",_.LoginStatusChanged="IPC_LOGIN_STATUS_CHANGED_EVENT",_.CollectClientLogs="IPC_COLLECT_LOGS",_.UpdateExperimentContext="IPC_UPDATE_EXPERIMENT_CONTEXT",_.ProgressUpdate="IPC_PROGRESS_UPDATE",_.QueueEmpty="IPC_QUEUE_EMPTY",_.UploadExceptionInfo="IPC_UPLOAD_EXCEPTION_INFO",_.SelfUpdateStatus="IPC_GET_SELF_UPDATE_STATUS",_.UpdateCheckFailure="IPC_UPDATE_CHECK_FAILURE",_.DownloadPrepareFailure="IPC_DOWNLOAD_PREPARE_FAILURE",_.SelfUpdateThresholdNotReached="IPC_SELF_UPDATE_FAILURE_THRESHOLD_NOT_REACHED",_}(l||{}),p=function(_){return _.ExceptionOccurred="ExceptionOccurred",_.UserFeedBack="UserFeedback",_.LoginFailure="LoginFailure",_}(p||{}),m=n.Or.Common.Ipc.IpcTargets},95318:(Ue,W,d)=>{"use strict";d.d(W,{$_:()=>x,A$:()=>V,Bp:()=>L,E8:()=>m,HP:()=>O,JR:()=>S,Lx:()=>i,V9:()=>T,VQ:()=>h,f$:()=>g,mF:()=>c,oY:()=>n});const n=1e4;var m=function(D){return D.OwnedPlatformSync="PLATFORM_SYNC",D.OwnedManual="MANUAL",D.NotOwned="NOT_OWNED",D}(m||{}),O=function(D){return D.Marquee="MARQUEE",D.Main="MAIN",D.Library="LIBRARY",D.Favorites="FAVORITES",D.LoginWall="LOGINWALL",D}(O||{});const S={genreDefinitions:[],appStoreDefinitions:[],ratingDefinitions:[]},i={items:[]},h={sortOrderDefinitions:[],filterGroupDefinitions:[]};var g=function(D){return D.UNKNOWN="UNKNOWN",D.MOUSE="MOUSE",D.MOUSE_KEYBOARD="MOUSE_KEYBOARD",D.X_INPUT_GAMEPAD="X_INPUT_GAMEPAD",D.DIRECT_INPUT_GAMEPAD="DIRECT_INPUT_GAMEPAD",D.JOYSTICK="JOYSTICK",D.WHEEL="WHEEL",D.TOUCHSCREEN="TOUCHSCREEN",D.WII_CONTROLLER="WII_CONTROLLER",D.KINECT_CONTROLLER="KINECT_CONTROLLER",D.KEYBOARD="KEYBOARD",D.X_INPUT_GAMEPAD_PARTIAL="X_INPUT_GAMEPAD_PARTIAL",D.DIRECT_INPUT_GAMEPAD_PARTIAL="DIRECT_INPUT_GAMEPAD_PARTIAL",D.GAMEPAD="GAMEPAD",D.GAMEPAD_PARTIAL="GAMEPAD_PARTIAL",D.DUALSENSE_GAMEPAD="DUALSENSE_GAMEPAD",D.DUALSHOCK4_GAMEPAD="DUALSHOCK4_GAMEPAD",D}(g||{});const c="CLIENT_UPSELL_MESSAGES",T="LOGIN_WALL";var L=function(D){return D.Manual="MANUAL",D.StoreConnect="STORE_CONNECT",D.StoreReconnect="STORE_RECONNECT",D.StoreResync="STORE_RESYNC",D.ManualPostCancellation="MANUAL_POST_CANCELLATION",D}(L||{}),x=function(D){return D.RTX_ENABLED="RTX_ENABLED",D.HDR_ENABLED="HDR_ENABLED",D.SUPPORTED_AUDIO_FORMATS="SUPPORTED_AUDIO_FORMATS",D.IN_GAME_SETTINGS_PERSISTENCE_ENABLED="IN_GAME_SETTINGS_PERSISTENCE_ENABLED",D.ENABLED_FPS="ENABLED_FPS",D.ENABLE_DEBUG_TOOLS="ENABLE_DEBUG_TOOLS",D.ENABLED_REFLEX="REFLEX_ENABLED",D.BIT_DEPTH="BIT_DEPTH",D.CLOUD_GSYNC="CLOUD_GSYNC",D}(x||{});function V(D){return D?.gfn?.library?.status?D.gfn.library.status:m.NotOwned}},53747:(Ue,W,d)=>{"use strict";d.d(W,{eE:()=>n,mG:()=>l});var n=function(m){return m.DbStoreName="BrowseUxStore",m}(n||{}),l=function(m){return m.showDesktopShortcutPrompt="showDesktopShortcutPrompt",m.showSearchTip="showSearchTip",m.skipGamepadWarningDialog="skipGamepadWarningDialog",m.skipKeyboardMouseWarningDialog="skipKeyboardMouseWarningDialog",m.skipDayPassLowPlayTimeRemainingDialog="skipDayPassLowPlayTimeRemainingDialog",m.skipTimeCapLowPlayTimeRemainingDialog="skipTimeCapLowPlayTimeRemainingDialog",m.skipTimeCapLimitedPlayTimeRemainingDialog="skipTimeCapLimitedPlayTimeRemainingDialog",m}(l||{})},14331:(Ue,W,d)=>{"use strict";d.d(W,{HJ:()=>T,Ix:()=>_,Jv:()=>x,Uf:()=>A,VN:()=>g,aj:()=>P,bE:()=>L,dn:()=>m,eL:()=>O,hV:()=>F,kw:()=>y,mB:()=>i,oT:()=>r,py:()=>v,vz:()=>D}),d(87687);var l=d(95318);const m="TV_BANNER_",_="deeplink";var P=function(I){return I.Action="action",I.CmsId="cms-id",I.GameId="game-id",I.Store="store",I.Zone="zone",I.AssetId="asset-id",I.Locale="lang",I.ShowEvidencePanel="showEvidencePanel",I.SectionId="sectionId",I.Nonce="nonce",I.Redirect="redirect",I.PartnerData="partner-data",I.ExtraData="extra-data",I.UtmSource="utm_source",I.UtmCampaign="utm_campaign",I.UtmMedium="utm_medium",I.UtmTerm="utm_term",I.UtmContent="utm_content",I.PartnerId="partner-id",I.WindowedMode="windowed-mode",I.Branch="branch",I.State="state",I}(P||{}),v=function(I){return I.ViewGame="view-game",I.PlayGame="play-game",I.Games="games",I}(v||{});const O=v.ViewGame;var S=function(I){return I.IsViewGameEnabled="isViewGameEnabled",I.IsPlayGameEnabled="isPlayGameEnabled",I.ShowShortcutButton="showShortcutButton",I.ShowShareButton="showShareButton",I.SendDeeplinkTelemetry="sendDeeplinkTelemetry",I.GuestMode="guestMode",I}(S||{});const y={[S.IsViewGameEnabled]:!0,[S.IsPlayGameEnabled]:!0,[S.ShowShareButton]:!1,[S.ShowShortcutButton]:!1,[S.SendDeeplinkTelemetry]:!1},r={[v.ViewGame]:S.IsViewGameEnabled,[v.PlayGame]:S.IsPlayGameEnabled};var i=function(I){return I.Shortcut="shortcut",I.Application="application",I.Marquee="marquee",I}(i||{}),h=function(I){return I.IsNetworkTestEnabled="isNetworkTestEnabled",I.IsIGOEnabled="isIGOEnabled",I.IsOSCEnabled="isOSCEnabled",I.IsPostSessionTipsEnabled="isPostSessionTipsEnabled",I.IsStreamingTimerEnabled="isStreamingTimerEnabled",I.DisableCloseOnStreamExit="disableCloseOnStreamExit",I.ForceTouchModeSettings="forceTouchModeSettings",I.IsGuestAppFlow="isGuestAppFlow",I.IGOSettings="igoSettings",I.IsWhitelabelingEnabled="isWhiteLabelingEnabled",I.Metadata="metadata",I.HideAppStartButton="hideAppStartButton",I.IsWindowedModeCursorTypeFree="isWindowedModeCursorTypeFree",I}(h||{});const g={[h.HideAppStartButton]:!1,[h.IsWindowedModeCursorTypeFree]:!1,[h.IsNetworkTestEnabled]:!1,[h.IsIGOEnabled]:!0,[h.IsOSCEnabled]:!0,[h.IsPostSessionTipsEnabled]:!1,[h.IsStreamingTimerEnabled]:!0,[h.DisableCloseOnStreamExit]:!1,[h.ForceTouchModeSettings]:{},[h.IsGuestAppFlow]:!0,[h.IGOSettings]:{},[h.IsWhitelabelingEnabled]:!1,[h.Metadata]:{}},c={...g,[h.IsIGOEnabled]:!0,[h.DisableCloseOnStreamExit]:!0,[h.IsGuestAppFlow]:!1},T={DAF_GUESTMODE_25cb5a58:"daf_guestmode_25cb5a58",AC:"82d77512-a90b-42bf-8be9-446fb10341b5",GFN_PLAYTEST:"0F0E5E46-5F1E-42FE-BA5A-74077ED505F1"},A={"AyLZgPglXtCGoG-lPMe0mxYoP6BH9Jva3vLeerYckFA":c,"YwuYeOqCAwvSS9_ohdam7Bn-SQv0b7rLGP2v9lAZWto":c,xfhos6xyQwTHf0I5Scg7LjtfvVw5aeucqdJURXcMBcc:g,H6JxRR6FFDUGwN1fdlgKWBmOPnvDEvEEoudefDooEho:g,"2ZGpTLugwxbQLk8MlqSLFweBjXMJ33xKQdghZfmxTwc":g,"0Xg3tEsmQZqn-zsZgSTIQqJZn5f7X7kuBxE5C9KFsys":g},L={[T.DAF_GUESTMODE_25cb5a58]:"L65LoXgut5_bAQ95JepON01jMMSYxDHB4aa_tHQC-gc"};var x=function(I){return I[I.Success=0]="Success",I[I.Partner_Error=1]="Partner_Error",I[I.GFN_Error=2]="GFN_Error",I[I.Campaign_Suspended=3]="Campaign_Suspended",I[I.GFN_Error_SessionLimitReached=4]="GFN_Error_SessionLimitReached",I}(x||{});const D={id:"dummy-id",appStore:"UNKNOWN",supportedControls:[l.f$.TOUCHSCREEN],contentRatings:null,images:{HERO_IMAGE:"",TV_BANNER:""},variants:[{id:""}]};var F=function(I){return I.Status="status",I.State="state",I.SubStatus="sub-status",I}(F||{})},81671:(Ue,W,d)=>{"use strict";d.d(W,{HD:()=>P,aj:()=>p.aj,Ix:()=>p.Ix,py:()=>p.py,VN:()=>p.VN,vz:()=>p.vz,Uf:()=>p.Uf,mB:()=>p.mB,dn:()=>p.dn}),d(53747),d(5715);var p=d(14331),P=function(a){return a.zoneMaintenance="ZONE_MAINTENANCE_TIMER",a.paste="PASTE",a.sessionLengthTimer="SESSION_LENGTH_TIMER",a}(P||{});d(31877)},5715:(Ue,W,d)=>{"use strict";d.d(W,{O:()=>l});var l=function(p){return p[p.Play=1]="Play",p[p.Pause=2]="Pause",p[p.Resume=3]="Resume",p}(l||{})},31877:(Ue,W,d)=>{"use strict";d.d(W,{IT:()=>P,N1:()=>_,hz:()=>O,q3:()=>S,rz:()=>v,tk:()=>r,wi:()=>y,zZ:()=>l});var l=function(i){return i.UNKNOWN="UNKNOWN",i.LIMITED="LIMITED",i.FULL="FULL",i}(l||{}),_=function(i){return i.UNKNOWN="UNKNOWN",i.RTX_ENABLED="RTX_ENABLED",i.HDR_ENABLED="HDR_ENABLED",i.SUPPORTED_AUDIO_FORMATS="SUPPORTED_AUDIO_FORMATS",i.IN_GAME_SETTINGS_PERSISTENCE_ENABLED="IN_GAME_SETTINGS_PERSISTENCE_ENABLED",i.ENABLED_FPS="ENABLED_FPS",i.ENABLED_DEBUG_TOOLS="ENABLED_DEBUG_TOOLS",i.ENABLED_REFLEX="ENABLED_REFLEX",i.CLOUD_GSYNC="CLOUD_GSYNC",i.ENABLED_L4S="ENABLED_L4S",i.BIT_DEPTH="BIT_DEPTH",i}(_||{}),P=function(i){return i.UNKNOWN="UNKNOWN",i.BALANCED="BALANCED",i.DATA_SAVER="DATA_SAVER",i.COMPETITIVE="COMPETITIVE",i}(P||{}),v=function(i){return i.UNKNOWN="UNKNOWN",i.FREE="FREE",i.PAID="PAID",i.PROMOTION="PROMOTION",i.GIFT_CARD="GIFT_CARD",i}(v||{}),O=function(i){return i.UNKNOWN="UNKNOWN",i.UNLIMITED="UNLIMITED",i.DAY_PASS="DAY_PASS",i.TIME_CAPPED="TIME_CAPPED",i}(O||{}),S=function(i){return i.UNKNOWN="UNKNOWN",i.BETTER_PRODUCT="BETTER_PRODUCT",i.SUPPORT_IN_GAME_SETTINGS_PERSISTENCE="SUPPORT_IN_GAME_SETTINGS_PERSISTENCE",i.HIGHER_SESSION_LENGTH="HIGHER_SESSION_LENGTH",i.LOWER_SESSION_QUEUE_WAIT_TIME="LOWER_SESSION_QUEUE_WAIT_TIME",i.HIGHER_FPS="HIGHER_FPS",i.HIGHER_RESOLUTION="HIGHER_RESOLUTION",i.SUPPORT_HDR="SUPPORT_HDR",i.SUPPORT_RTX="SUPPORT_RTX",i.SUPPORT_REFLEX="SUPPORT_REFLEX",i.AD_FREE_EXPERIENCE="AD_FREE_EXPERIENCE",i.DAY_PASS="DAY_PASS",i.SUPPORT_CLOUD_GSYNC="SUPPORT_CLOUD_GSYNC",i.SUPPORT_L4S="SUPPORT_L4S",i.HIGHER_BIT_DEPTH="HIGHER_BIT_DEPTH",i}(S||{}),y=function(i){return i[i.UNKNOWN=0]="UNKNOWN",i[i.STEREO=2]="STEREO",i[i.UP_TO_5_1_SURROUND_PCM=6]="UP_TO_5_1_SURROUND_PCM",i[i.UP_TO_7_1_SURROUND_PCM=8]="UP_TO_7_1_SURROUND_PCM",i}(y||{}),r=function(i){return i.UNKNOWN="UNKNOWN",i.PROFILE_VSYNC="PROFILE_VSYNC",i.PROFILE_ADJUST_FOR_NETWORK="PROFILE_ADJUST_FOR_NETWORK",i.PROFILE_HDR="PROFILE_HDR",i.PROFILE_REFLEX="PROFILE_REFLEX",i.PROFILE_CLOUD_GSYNC="PROFILE_CLOUD_GSYNC",i.PROFILE_L4S="PROFILE_L4S",i.PROFILE_BIT_DEPTH="PROFILE_BIT_DEPTH",i}(r||{})},18568:(Ue,W,d)=>{"use strict";d.d(W,{jv:()=>A,c4:()=>r,tk:()=>c.tk,IT:()=>c.IT,N1:()=>c.N1,zZ:()=>c.zZ,hz:()=>c.hz,rz:()=>c.rz,q3:()=>c.q3});var n=d(5798),l=d(32727),p=d(35225),m=d(2490),_=d(70521),P=d(75707),v=d(83915),O=d(58527),S=d(61958),y=d(38502);let r=(()=>{var D;class F{constructor(k,R,G,Y){this.appConfig=k,this.endpointFactory=R,this.distributedtracingUtilService=G,this.clientHeaderService=Y;const{defaultRetries:K=0,defaultTimeBetweenRetries:$=0,defaultTimeout:ee=15e3}=k.nes,J={maxRetries:K,timeout:ee,timeBetweenRetries:$};this.subscriptionsEndpoint=this.createEndpoint({config:J}),this.serviceUrlEndpoint=this.createEndpoint({config:{...J,maxRetries:k.nes.serviceUrlsMaxRetries}}),this.productEndpoint=this.createEndpoint(),this.firstFetchSet=new Set}buildUrl(k,R={}){const{useLayoutServer:G=!1}=R;return(0,l.l2)(G?[this.appConfig.nes.layoutServer,this.appConfig.nes.layoutServerVersion,k]:[this.appConfig.nes.server,this.appConfig.nes.version,k])}createEndpoint(k){return this.endpointFactory.createEndpoint(k)}createHeader(k){return{[n.SA.authorization]:`GFNJWT ${k.token}`}}createRequestOptions(k,R,G,Y){const K={params:{...k},includeRequestId:!0,reportRequestData:{...R},includeFullResponse:Y},$=R.serviceUseCase;return K.headers={},G?.token&&(K.headers=this.createHeader(G)),this.firstFetchSet.has($)?K.headers[_.tD.SwCacheBypass]=JSON.stringify(!0):this.firstFetchSet.add($),K}createAndCallNesServerAPI(k,R,G,Y,K,$,ee){return this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}).pipe((0,P.ZZ)(J=>{const z=this.createRequestOptions({serviceName:"gfn_pc",...G},{originalService:p.Uu$.NES,serviceUseCase:R},Y,$);ee&&(J[_.tD.SwNotifyFetch]="true"),Object.assign(z.headers,J);const te=this.subscriptionsEndpoint.get(this.buildUrl(k),z);return this.distributedtracingUtilService.handleHttpEndpointSpan(te,z,m.pB.FetchSubscriptions,K)}))}getUserSubscription(k,R,G){return this.getMesServerAPIResp(k,R,G)}getMesServerAPIResp(k,R,G){return this.createAndCallNesServerAPI("/subscriptions",p.OOF.NES_Get_Subscriptions,k,R,G,!0,!0).pipe((0,v.T)(Y=>{const K={subscription:Y.body,lastFetchDateTime:new Date};return K.isCached=Y.headers.has(_.tD.SwCache),K}))}getClientStreamingQuality(k,R){return this.createAndCallNesServerAPI("/client/streaming-qualities",p.OOF.NES_GetClientStreamingQuality,k,null,R,null,null)}getProductInfo(k){return this.productEndpoint.get(k)}getLoginProviderInfo(k,R){return this.serviceUrlEndpoint.get(this.buildUrl("/serviceUrls",{useLayoutServer:!0}),this.createRequestOptions(null,{originalService:p.Uu$.Cms,serviceUseCase:p.OOF.NES_Get_ServiceUrls},R))}}return(D=F).\u0275fac=function(k){return new(k||D)(O.KVO(S.Vk),O.KVO(n.t),O.KVO(m.Z1),O.KVO(y.y1))},D.\u0275prov=O.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),F})();d(21333);var c=d(31877),A=function(D){return D.UNAVAILABLE="UNAVAILABLE",D.AVAILABLE="AVAILABLE",D.PATCHING="PATCHING",D.SERVER_MAINTENANCE="SERVER_MAINTENANCE",D}(A||{})},22600:(Ue,W,d)=>{"use strict";d.d(W,{l:()=>F});var n=d(59859),l=d(43848),p=d(8619),m=d(65706),_=d(83915),P=d(75707),v=d(91384),O=d(34593),S=d(14714),y=d(26875),i=d(35225),a=d(28711),h=d(38006),g=d(70521),c=d(58527),T=d(18568),A=d(3567),L=d(24682),x=d(78812),V=d(80561),D=d(32727);let F=(()=>{var I;class k{constructor(G,Y,K,$,ee,J,z,te){this.nesSdk=G,this.loggingService=Y,this.idmService=K,this.telemetryService=$,this.oobeService=ee,this.eventStreamFactory=J,this.sharedStorageCachingService=z,this.serviceWorkerService=te,this.isUserInfoAffiliate=!1,this.logger=this.loggingService.getLogger("gfn/shared/NesUserInfoService"),this.serverUrlsStream=this.eventStreamFactory.createStream(()=>this.fetchProviderInfo()),this.userInfoStream=this.eventStreamFactory.createStream(()=>this.userInfoWithStreamingUrl()),this.countryCodeStream=this.eventStreamFactory.createStream(()=>this.fetchCountryCode()),this.initServiceWorkerNotifications()}initServiceWorkerNotifications(){this.serviceWorkerService.swCacheUpdated.pipe((0,p.p)(G=>G.name===g.fR.staleWhileRevalidate.serviceUrls.cacheName),(0,m.s)(1)).subscribe(G=>{this.serverUrlsStream.setData(G.data,!0)})}fetchProviderInfo(){return this.logger.info("Calling NES server urls to get affiliate information"),this.nesSdk.getLoginProviderInfo().pipe((0,_.T)(G=>this.validateLoginProviderInfo(G)))}validateLoginProviderInfo(G){if(this.logger.info("processServiceUrls"),(0,y.isNil)(G)||(0,y.isNil)(G.gfnServiceInfo)||(0,y.isNil)(G.gfnServiceInfo.loginRequired))throw new Error("Server info was invalid.");const Y=G.gfnServiceInfo;if(Y.loginRequired&&((0,y.isNil)(Y.loginPreferredProviders)||(0,y.isEmpty)(Y.loginPreferredProviders)))throw new Error('Missing "loginPreferredProviders".');return G}getServerProperty(G){return this.serverUrlsStream.get$().pipe((0,_.T)(G))}fetchUserInfoWithStreamingUrl(){return this.userInfoStream.get$()}userInfoWithStreamingUrl(){let G;return this.serverUrlsStream.get$().pipe((0,P.ZZ)(Y=>(G=Y,this.idmService.getUserServiceEndpoint(G.gfnServiceInfo))),(0,_.T)(Y=>{const K=Y.serviceEndpoint.loginProvider;return this.sendProviderInfoTelemetry(K,G,Y.user.isAuthenticated),{user:Y.user,serviceEndpoint:Y.serviceEndpoint,isAffiliate:K!==G.gfnServiceInfo.defaultProvider}}),(0,v.M)(Y=>{this.isUserInfoAffiliate=Y.isAffiliate,this.idmService.setCachedAffiliateStatus(Y.user.userId,{loginProvider:Y.serviceEndpoint.loginProvider,loginProviderCode:Y.serviceEndpoint.loginProviderCode,isAffiliate:Y.isAffiliate}).subscribe()}))}cachedUserAndAffiliateStatus(){return this.idmService.cachedUserAndAffiliateStatus}sendProviderInfoTelemetry(G,Y,K){this.oobeService.oobeDialogClosedState.pipe((0,O.Z)(!1)).subscribe(()=>{const $=new i.Zhy({isAffiliateRegion:Y.gfnServiceInfo.loginRequired?i.T80.TRUE:i.T80.FALSE,supportedProviders:(0,y.isEmpty)(Y.gfnServiceInfo.loginPreferredProviders)?"":Y.gfnServiceInfo.loginPreferredProviders.toString(),providerName:K?G:""});this.telemetryService.push($,null,{immediateRequest:!0})})}get providerInfo$(){return this.getServerProperty(G=>(0,y.isNil)(G)||(0,y.isNil)(G.gfnServiceInfo)?null:G.gfnServiceInfo).pipe((0,S.W)(G=>(this.logger.error("failed to get provider info",G),(0,n.$)(G))))}get loginPreferredProviders$(){return this.getServerProperty(G=>(0,y.isNil)(G)||(0,y.isNil)(G.gfnServiceInfo)?null:G.gfnServiceInfo.loginPreferredProviders).pipe((0,S.W)(G=>(this.logger.error("failed to get login provider",G),(0,n.$)(G))))}get loginRequired$(){return this.getServerProperty(G=>!(!G||!G.gfnServiceInfo)&&G.gfnServiceInfo.loginRequired)}fetchProviderUserAction(){return this.logger.info("fetchProviderUserAction"),this.serverUrlsStream.get$().pipe((0,m.s)(1),(0,P.ZZ)(G=>this.idmService.getUserServiceEndpoint(G.gfnServiceInfo)),(0,_.T)(G=>(0,y.isNil)(G)?i.ay7.LoginWithJarvisOAuth:i.ay7.LoginWithFacebook.includes(G.serviceEndpoint.loginProvider.toUpperCase())?i.ay7.LoginWithFacebook:i.ay7.LoginWithGoogle.includes(G.serviceEndpoint.loginProvider.toUpperCase())?i.ay7.LoginWithGoogle:this.isUserInfoAffiliate?i.ay7.LoginWithAffiliate:i.ay7.LoginWithOther))}fetchCountryCode(){return this.serverUrlsStream.get$().pipe((0,_.T)(G=>G.gfnServiceInfo.clientCountryCode),(0,S.W)(G=>(this.logger.error("Could not fetch NES login provider info for country code",G),(0,l.of)(a.d4.US))),(0,P.ZZ)(G=>this.sharedStorageCachingService.saveItem(h.up.CountryCode,G)))}getCountryCode(){return this.countryCodeStream.get$()}}return(I=k).\u0275fac=function(G){return new(G||I)(c.KVO(T.c4),c.KVO(A.J6),c.KVO(L.k_),c.KVO(x.H0),c.KVO(V.Z),c.KVO(D.mZ),c.KVO(h.VC),c.KVO(g.lS))},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),k})()},12860:(Ue,W,d)=>{"use strict";d.d(W,{z:()=>m});var n=d(58527),l=d(61958),p=d(61876);let m=(()=>{var _;class P{constructor(O,S){this.spatialNavigationService=S,this.agreeButtonClicked=new n.bkB,this.tvMode=!!O?.featureEnablement?.tvMode}ngOnInit(){this.currentSpatialNavigationActivation=this.spatialNavigationService.activated,this.spatialNavigationService.enabled&&!this.currentSpatialNavigationActivation&&(this.spatialNavigationService.activated=!0)}onAgreeButtonClicked(){this.agreeButtonClicked.emit()}ngOnDestroy(){this.spatialNavigationService.activated=this.currentSpatialNavigationActivation}}return(_=P).\u0275fac=function(O){return new(O||_)(n.rXU(l.Vk),n.rXU(p.ED))},_.\u0275cmp=n.VBU({type:_,selectors:[["gfn-oobe"]],outputs:{agreeButtonClicked:"agreeButtonClicked"},decls:2,vars:1,consts:[[1,"oobe-dialog"],[1,"oobe-screen",3,"agreeButtonClick","tvMode"]],template:function(O,S){1&O&&(n.j41(0,"div",0)(1,"gfn-oobe-welcome",1),n.bIt("agreeButtonClick",function(){return S.onAgreeButtonClicked()}),n.k0s()()),2&O&&(n.R7$(),n.Y8G("tvMode",S.tvMode))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.oobe-dialog[_ngcontent-%COMP%]{width:705px;height:auto;max-height:100vh;-webkit-backface-visibility:hidden;background:#393939}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.oobe-dialog[_ngcontent-%COMP%]{width:100vw;height:100%}}.oobe-screen[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased;width:100%;height:100%;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:env(safe-area-inset-bottom);max-width:100vw;max-height:100vh}.isLtr[_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%]{padding-left:max(24px,env(safe-area-inset-left))}html[dir=ltr][_ngcontent-%COMP%] .oobe-screen[_ngcontent-%COMP%]{--dummy1: 0;padding-left:max(24px,env(safe-area-inset-left))}.isRtl[_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%]{padding-right:max(24px,env(safe-area-inset-left))}html[dir=rtl][_ngcontent-%COMP%] .oobe-screen[_ngcontent-%COMP%]{--dummy1: 0;padding-right:max(24px,env(safe-area-inset-left))}.isLtr[_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%]{padding-right:max(24px,env(safe-area-inset-right))}html[dir=ltr][_ngcontent-%COMP%] .oobe-screen[_ngcontent-%COMP%]{--dummy2: 0;padding-right:max(24px,env(safe-area-inset-right))}.isRtl[_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .oobe-screen[_ngcontent-%COMP%]{padding-left:max(24px,env(safe-area-inset-right))}html[dir=rtl][_ngcontent-%COMP%] .oobe-screen[_ngcontent-%COMP%]{--dummy2: 0;padding-left:max(24px,env(safe-area-inset-right))}.tv-view[_nghost-%COMP%] .oobe-dialog[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .oobe-dialog[_ngcontent-%COMP%]{width:100vw;height:100vh;display:flex;justify-content:center;align-items:flex-start}"]}),P})()},80561:(Ue,W,d)=>{"use strict";d.d(W,{Z:()=>n.Z,M:()=>v});var n=d(26114),l=d(35225),p=d(26875),m=d(3567),_=d(58527),P=d(78812);let v=(()=>{var O;class S{constructor(r,i){this.telemetryService=r,this.telemetryUtilService=i,this._oobeCompleted=!1,this.asyncActions={}}set oobeCompleted(r){this._oobeCompleted=r}get oobeCompleted(){return this._oobeCompleted}startActionAsync(r){this.asyncActions[r]={currentScreen:this.telemetryService.getScreen(),startTime:Date.now()}}endActionAsync(r,i,a){if(!(0,p.isNil)(r)&&!(0,p.isNil)(this.asyncActions[r])){const h=this.asyncActions[r];i===l.fbu.AppExit&&this.telemetryService.changeSync(!0);const g=new l.BAK({currentScreen:h.currentScreen,clientType:this.telemetryUtilService.getClientType(),userAction:r,status:i,errorDetails:a||"",totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(g,h.startTime),delete this.asyncActions[r]}}sendOobeAcceptEvent(r,i,a){let h=l.Osi.NotShown;i&&(h=a===m.Rg.Full?l.Osi.UserConsented:l.Osi.UserDidNotConsent);const g={currentScreen:this.telemetryService.getScreen(),action:r,technicalConsent:h},c=new l.Uqt(g);this.telemetryService.push(c)}}return(O=S).\u0275fac=function(r){return new(r||O)(_.KVO(P.H0),_.KVO(l.jgD))},O.\u0275prov=_.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),S})()},26114:(Ue,W,d)=>{"use strict";d.d(W,{Z:()=>Y});var n=d(3567),l=d(26875),p=d(57258),m=d(93181),_=d(31315),P=d(43848),v=d(83915),O=d(65706),S=d(55833),y=d(75707),r=d(4208),i=d(74931),a=d(61958),h=d(30691),g=d(12860);var A=d(78812),L=d(81671),x=d(58527),V=d(72945),D=d(26537),F=d(18587),I=d(90929),k=d(66974),R=d(89888),G=d(61876);let Y=(()=>{var K;class ${constructor(J,z,te,X,re,ge,oe,xe,ue,N,se,ce){this.sharedStorageService=J,this.dialog=z,this.appConfig=te,this.systemInfoService=X,this.userConsentService=re,this.localeService=ge,this.gfnSdkService=xe,this.guestModeHelperService=ue,this.unsupportedBrowserService=N,this.bridgeService=se,this.focusManager=ce,this.oobeDialogRef=null,this.isOobeDialogClosedSubject=new p.m(1),this.isLoginWallEnabled=!1,this.logger=oe.getLogger("OobeService/Logger"),this.tvMode=!!te?.featureEnablement?.tvMode,this.nativeEulaAcceptedVersion$=this.bridgeService.executeCommand(i.Ts.Common.Consent.getAccepted).pipe((0,v.T)(Z=>Z.value),(0,O.s)(1),(0,S.t)(1)),this.isLoginWallEnabled=this.appConfig.featureEnablement.showLoginWall}initialize(){n.zk.isAndroidPlatform()&&this.bridgeService.executeCommand(i.Ts.Common.Consent.setCurrent,{value:+this.appConfig.oobe.termsOfUseVersion}).subscribe()}get oobeDialogClosedState(){return this.isOobeDialogClosedSubject.asObservable()}get getProductVersion(){return(0,a.Cl)(this.appConfig)}get getMinOsVersion(){return this.appConfig.oobe.minMacOsVersion}getOobeDataFromSharedStorage(){return this.sharedStorageService.readBlock("oobe")}loadTermsOfUseAcceptedVersion(){return n.zk.isAndroidPlatform()?this.loadTermsOfUseAcceptedVersionForAndroid():this.getOobeDataFromSharedStorage().pipe((0,v.T)(J=>J?.termsOfUseAcceptedVersion||"0"))}loadTermsOfUseAcceptedVersionForAndroid(){return(0,m.p)({oobeData:this.getOobeDataFromSharedStorage(),nativeEulaAcceptedVersion:this.nativeEulaAcceptedVersion$}).pipe((0,v.T)(J=>Math.max(+J.oobeData?.termsOfUseAcceptedVersion||0,J.nativeEulaAcceptedVersion||0).toString()))}isTermsOfUseChangedSinceAccepted(){return this.loadTermsOfUseAcceptedVersion().pipe((0,v.T)(J=>!!(0,l.isNil)(J)||+this.appConfig.oobe.termsOfUseVersion>+J))}saveTermsOfUseAcceptedVersion(){return this.getOobeDataFromSharedStorage().pipe((0,y.ZZ)(J=>(J.termsOfUseAcceptedVersion=this.appConfig.oobe.termsOfUseVersion,n.zk.isAndroidPlatform()&&this.bridgeService.executeCommand(i.Ts.Common.Consent.setAccepted,{value:+this.appConfig.oobe.termsOfUseVersion}).subscribe(),this.saveOobeDataInSharedStorage(J))))}saveOobeDataInSharedStorage(J){return this.sharedStorageService.writeBlock("oobe",J)}launch(){return(0,m.p)({isEulaChanged:this.isTermsOfUseChangedSinceAccepted(),isAnonUser:this.gfnSdkService.getIsAnonymousUser()}).pipe((0,y.ZZ)(J=>!J.isEulaChanged&&!J.isAnonUser||this.guestModeHelperService.isGuestMode?(this.isOobeDialogClosedSubject.next(!0),this.isOobeDialogClosedSubject.complete(),this.logger.event("no oobe setDefaultConsentData"),this.userConsentService.setDefaultConsentData(this.guestModeHelperService.isGuestMode?A.FE:A.bC)):(0,_.zV)([this.localeService.layoutDirectionUpdated$,this.unsupportedBrowserService.shouldDisplayPWAGuidance$]).pipe((0,O.s)(1),(0,y.ZZ)(([z,te])=>window.location.hash.includes(L.py.PlayGame)&&te||this.isLoginWallEnabled&&te?(0,P.of)(!1):this.openOobeDialog()))))}openOobeDialog(){if(this.oobeDialogRef)return(0,P.of)(!1);const J={panelClass:"dialogWelcome",disableClose:!0,autoFocus:!1,maxWidth:"100vw"};return this.tvMode&&(J.height="100%"),this.oobeDialogRef=this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(g.z,J)),this.oobeDialogRef.componentInstance.agreeButtonClicked.pipe((0,O.s)(1),(0,r.Q)(this.oobeDialogRef.afterClosed())).subscribe(z=>{this.oobeDialogRef.close()}),this.oobeDialogRef.afterClosed().pipe((0,v.T)(()=>(this.oobeDialogRef=null,this.isOobeDialogClosedSubject.next(!0),this.isOobeDialogClosedSubject.complete(),this.logger.info("oobe closed"),!0)))}meetSysRequirements(){return this.systemInfoService.getSystemInfo([n.Lu.OSName,n.Lu.OSVersion]).pipe((0,v.T)(J=>{if("macOS"===J.OSName){const z=new h.U(J.OSVersion);let te;te=[0,0],!(0,l.isNil)(this.appConfig.oobe)&&!(0,l.isNil)(this.appConfig.oobe.minMacOsVersion)&&(te=new h.U(this.appConfig.oobe.minMacOsVersion));const X=z.compare(te)!==h.L.Greater;return this.logger.info(`system ${X?"meet":"does not meet"} min. OS requirements - your MAC OS version: `,J.OSVersion),X}return!0}))}}return(K=$).\u0275fac=function(J){return new(J||K)(x.KVO(V.yQ),x.KVO(D.bZ),x.KVO(a.Vk),x.KVO(n.zW),x.KVO(F.F),x.KVO(n.iH),x.KVO(n.J6),x.KVO(I.DL),x.KVO(k.x),x.KVO(R.Lk),x.KVO(n.NZ),x.KVO(G.c_))},K.\u0275prov=x.jDH({token:K,factory:K.\u0275fac,providedIn:"root"}),$})()},28317:(Ue,W,d)=>{"use strict";d.d(W,{td:()=>n.td,V6:()=>n.V6,R6:()=>a,kE:()=>n.kE,f:()=>n.f,BS:()=>n.BS,ED:()=>n.ED,I2:()=>n.I2,tE:()=>n.tE,y1:()=>n.y1});var n=d(44098),l=d(14354),p=d(8619),m=d(72147),_=d(83915),P=d(65706),v=d(34593),O=d(53461),S=d(58527),y=d(3567),r=d(61958),i=d(73718);let a=(()=>{var h;class g{constructor(T,A,L,x){this.router=L,this.gameShareUrlService=x,this.defaultNavigationBehaviorOptions={},this.logger=T.getLogger("gfn/PathService"),this.defaultNavigationBehaviorOptions.skipLocationChange=!!A.client?.skipLocationChange,this.logger.info("Using default navigation options:",this.defaultNavigationBehaviorOptions),this.initNavStartSubscription()}initNavStartSubscription(){this.router.events.pipe((0,p.p)(T=>T instanceof l.Z)).subscribe(T=>{this.currentNavigationStartURL=T.url})}get onExitingStreamer(){return this.router.events.pipe((0,p.p)(T=>T instanceof l.Z&&(0,n.tE)(this.router.url)&&T.url!==n.f.Base&&!(0,n.tE)(T.url)),(0,m.n)(T=>this.router.events.pipe((0,p.p)(A=>A instanceof l.wF||A instanceof l.L6||A instanceof l.j5),(0,_.T)(A=>A instanceof l.wF),(0,P.s)(1))))}isRouteActive(T){return this.router.url.startsWith(T)}getRouteActivatedState(T){return this.router.events.pipe((0,p.p)(A=>A instanceof l.wF),(0,_.T)(A=>this.isRouteActive(T)),(0,v.Z)(this.isRouteActive(T)),(0,O.F)())}navigateByUrl(T,A){return this.router.navigateByUrl(T,{...this.defaultNavigationBehaviorOptions,...A})}navigate(T,A){return this.router.navigate(T,{...this.defaultNavigationBehaviorOptions,...A})}getStreamerExitUrl(){return this.exitUrl?this.exitUrl:n.f.DefaultStreamerExitUrl}setStreamerExitUrl(T){this.exitUrl=T||n.f.DefaultStreamerExitUrl}resetStreamerExitUrl(){this.exitUrl=n.f.DefaultStreamerExitUrl}getCurrentUrl(){let T;return T=this.gameShareUrlService.getIsAddressbarUrlUpdated()?this.gameShareUrlService.getDeeplinkShareUrl():document.baseURI+this.currentNavigationStartURL,this.logger.info("return URL is ",T,this.gameShareUrlService.getIsAddressbarUrlUpdated()),T}isMallUrl(T){return n.Jg.some(L=>T.startsWith(L))}isMallOrSettingsUrl(T){const A=this.isMallUrl(T),L=n.ez.some(x=>T.startsWith(x));return A||L}}return(h=g).\u0275fac=function(T){return new(T||h)(S.KVO(y.J6),S.KVO(r.Vk),S.KVO(l.Ix),S.KVO(i.u))},h.\u0275prov=S.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),g})()},44098:(Ue,W,d)=>{"use strict";d.d(W,{BS:()=>g,ED:()=>T,I2:()=>v,Jg:()=>A,K:()=>c,V6:()=>_,ez:()=>L,f:()=>m,kE:()=>P,tE:()=>O,td:()=>S,y1:()=>a});var n=d(87687),l=d(28711),p=d(81671),m=function(x){return x.Base="/",x.Home="/layout/games",x.Gallery="/layout/gallery",x.Settings="/layout/settings",x.Surveys="/layout/surveys",x.GamesGrid="/layout/games/gameSectionGrid",x.Deeplink="/deeplink",x.PwaWall="/install",x.DefaultStreamerExitUrl="/layout/games",x.LoginWall="/loginwall",x}(m||{}),_=function(x){return x.Home="layout/games",x.BrowserBookmark="",x.DefaultRedirect="layout/games",x.StreamerRoot="streamer",x.PwaWall="install",x}(_||{}),P=function(x){return x.CmsId="cmsId",x.LaunchSource="launchSource",x.ShortName="shortName",x.AppLaunchMode="appLaunchMode",x.SdkClient="sdkClient",x.ParentGameId="parentGameId",x.AccountLinked="accountLinked",x.CascadePreviewToken="cascadePreviewToken",x.Locale="locale",x.PreviewAtTime="previewAtTime",x}(P||{});function v(x){const V=window.location.href;return O(x)||-1!==V.indexOf("launchSource=External")||-1!==V.indexOf("action=play-game")}function O(x){return x.startsWith(`/${_.StreamerRoot}`)}var S=function(x){return x.Mall="GeForceNOW",x.Streamer="GeForceNOWStreamer",x}(S||{});function a(x){const V=x.indexOf("?");return function h(x){let k,V=0,D="",F=n.vhU.Unknown,I="",R=l.NG.Default,G=!1;if(x.has(P.ParentGameId)&&(D=x.get(P.ParentGameId)),x.has(P.CmsId)&&(V=+x.get(P.CmsId)),x.has(P.AppLaunchMode)){const Y=x.get(P.AppLaunchMode);switch(Y){case l.NG.GamepadFriendly:case l.NG.TouchFriendly:R=Y;break;default:R=l.NG.Default}}if(x.has(P.LaunchSource)){const Y=x.get(P.LaunchSource);switch(Y){case n.vhU.GeForceNOW:case n.vhU.External:case n.vhU.Deeplink:F=Y;break;default:F=n.vhU.Unknown}}return x.has(P.ShortName)&&(I=x.get(P.ShortName)),x.has(P.SdkClient)&&(k=x.get(P.SdkClient)),x.has(P.AccountLinked)&&(G="true"===x.get(P.AccountLinked)),{parentGameId:D,cmsId:V,appLaunchMode:R,launchSource:F,shortName:I,sdkClient:k,accountLinked:G}}(new URLSearchParams(x.slice(V)))}function g(x){const V=window?.geForceNowStartLocationHref;if(V?.indexOf("?")>-1){const D=V.slice(V.indexOf("?"));return new URLSearchParams(D).get(x)||null}return null}function c(x,V,D){const F=new RegExp("([?&])"+V+"=.*?(&|$)","i"),I=-1!==x.indexOf("?")?"&":"?";return x.match(F)?x.replace(F,"$1"+V+"="+D+"$2"):x+I+V+"="+D}function T(){return null!==g(p.aj.Nonce)}const A=[m.Home,m.GamesGrid],L=[m.Settings]},14279:(Ue,W,d)=>{"use strict";d.d(W,{T:()=>S});var n=d(80583),l=d(85830),p=d(1646),m=d(32727),_=d(2490),P=d(58527),v=d(3567),O=d(17698);let S=(()=>{var y;class r{constructor(a,h,g){this.distributedTracingUtilService=g,this.messageTypeObservableMap=new Map,this.routePushNotification=c=>{c&&c.messageType?this.messageTypeObservableMap[c.messageType]&&this.messageTypeObservableMap[c.messageType].forEach(T=>{this.logger.info("routing push notification for ",c.messageType),this.logger.trace(m.N_.PushNotification,"Received push notification for",p.MP[c.messageType]),T.next(c)}):this.logger.error("Invalid content received: ",c)},this.logger=a.getLogger("PushNotificationService"),h.get$(l.kN.PushNotification).subscribe(c=>{try{const T=JSON.parse(c).data;T||this.logger.error("Push notification data received is: ",T);const A={messageType:JSON.parse(T?.messageType)},L={};T?.requestMetaData&&JSON.parse(T.requestMetaData)?.traceContext?.forEach(D=>{L[D.key]=D.value});const x=this.distributedTracingUtilService.startSpanUsingContext(_.pB.PushMessageReceived,L);this.distributedTracingUtilService.setSpanAttributes(x,{[_.NS.PushMessageType]:A?.messageType}),this.distributedTracingUtilService.closeSpan(x),T?.regionIdType&&(A.regionIdType=JSON.parse(T.regionIdType)),T?.regionIds&&(A.regionIds=JSON.parse(T.regionIds)),T?.changeIdType&&(A.changeIdType=JSON.parse(T.changeIdType)),T?.changedIds&&(A.changedIds=JSON.parse(T.changedIds)),T?.sessionInfo&&(A.sessionInfo=JSON.parse(T.sessionInfo)),T?.patchingInfo&&(A.patchingInfo=JSON.parse(T.patchingInfo)),T?.accountLinkedInfo&&(A.accountLinkedInfo=JSON.parse(T.accountLinkedInfo)),T?.campaignInfo&&(A.campaignInfo=JSON.parse(T.campaignInfo)),T?.platformSyncInfo&&(A.platformSyncInfo=JSON.parse(T.platformSyncInfo)),this.routePushNotification(A)}catch(T){this.logger.error("Error while parsing push notification",T)}})}registerPushNotification(a){this.logger.info("registerPushNotification map: ",a),this.messageTypeObservableMap[a]||(this.messageTypeObservableMap[a]=[]);const h=new n.B7;return this.messageTypeObservableMap[a].push(h),h.asObservable()}}return(y=r).\u0275fac=function(a){return new(a||y)(P.KVO(v.J6),P.KVO(O.Uj),P.KVO(_.Z1))},y.\u0275prov=P.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),r})()},1646:(Ue,W,d)=>{"use strict";d.d(W,{Ab:()=>O,MP:()=>p,NQ:()=>n,Wq:()=>v,bz:()=>l,xL:()=>S});var n=function(r){return r.Granted="granted",r.Denied="denied",r.Default="default",r}(n||{}),l=function(r){return r.RigIsReady="RigIsReady",r.CountdownTimerBegins="CountdownTimerBegins",r.GracePeriodStart="GracePeriodStart",r}(l||{}),p=function(r){return r.UNKNOWN="UNKNOWN",r.SESSION_CHANGE="SESSION_CHANGE",r.APP_CHANGE="APP_CHANGE",r.PRODUCT_CHANGE="PRODUCT_CHANGE",r.SUBSCRIPTION_CHANGE="SUBSCRIPTION_CHANGE",r.ASSET_CHANGE="ASSET_CHANGE",r.GSWS_SYNC="GSWS_SYNC",r.SERVER_INFO_SYNC="SERVER_INFO_SYNC",r.CONFIGURATION_CHANGE="CONFIGURATION_CHANGE",r.LAYOUT_CHANGE="LAYOUT_CHANGE",r.SECTION_CHANGE="SECTION_CHANGE",r.LINKEDACCOUNT_CHANGE="LINKEDACCOUNT_CHANGE",r.PATCHING_EVENT="PATCHING_EVENT",r.LIBRARY_CHANGE="LIBRARY_CHANGE",r.KV_STORE_CHANGE="KV_STORE_CHANGE",r.PLATFORM_SYNC_CHANGE="PLATFORM_SYNC_CHANGE",r.CAMPAIGN_CHANGE="CAMPAIGN_CHANGE",r.FAVORITES_CHANGE="FAVORITES_CHANGE",r}(p||{}),v=function(r){return r.REGION="REGION",r.VPC="VPC",r}(v||{}),O=function(r){return r.APPID="APPID",r.CMSID="CMSID",r.PANEL="PANEL",r}(O||{});const S=new Map([[l.CountdownTimerBegins,{title:"notification.CountdownTimerBegins",body:"notification.body"}],[l.RigIsReady,{title:"notification.RigIsReady",body:"notification.body"}],[l.GracePeriodStart,{title:"notification.opportunity.queuePaused",body:"notification.opportunity.stayInQueue"}]])},17901:(Ue,W,d)=>{"use strict";d.d(W,{SL:()=>T});var n=d(3567),l=d(43848),p=d(35146),m=d(8619),_=d(83915),P=d(34593),v=d(53461),O=d(55833),S=d(75707),y=d(10174),r=function(L){return L.CacheName="offlineStore",L.DBKey="hitOfflineState",L}(r||{}),h=d(58527),g=d(76706);const c=L=>`(display-mode: ${L})`;let T=(()=>{var L;class x{constructor(D,F,I,k){this.dbService=F,this.dbCacheService=I,this.breakpointObserver=k,this.logger=D.getLogger("gfn-shared/PWAService"),this.isInPWAMode$=void 0!==window.navigator.standalone?(0,l.of)(window.navigator.standalone):(0,p.yU)(k.observe(c("standalone")),k.observe(c("browser"))).pipe((0,m.p)(([R,G])=>R.matches||G.matches),(0,_.T)(([R,G])=>R.matches||this.isInPWAMode()),(0,P.Z)(this.isInPWAMode()),(0,v.F)(),(0,O.t)({bufferSize:1,refCount:!0}))}isInPWAMode(){return window.navigator.standalone||n.zk.isPWAModeOnLGTV()||n.zk.isPWAModeOnSamsungTV()||this.breakpointObserver.isMatched(c("standalone"))}get onPWAModeChange(){return this.isInPWAMode$}initialize(){this.logger.info("initialising Offline Datastore"),this.dbCacheService.getOrCreateCachedGlobalItem(r.CacheName,r.DBKey).sync_().subscribe()}checkForOfflineLaunch(){return this.dbService.getGlobalStore(r.CacheName).length().pipe((0,S.ZZ)(D=>D>0?(this.logger.info("offlineStoreValue is present in database"),this.dbService.getGlobalStore(r.CacheName).clear().pipe((0,y.u)(!0))):(this.logger.info("offlineStoreValue is not present in database"),(0,l.of)(!1))))}}return(L=x).\u0275fac=function(D){return new(D||L)(h.KVO(n.J6),h.KVO(n.at),h.KVO(n.sc),h.KVO(g.QP))},L.\u0275prov=h.jDH({token:L,factory:L.\u0275fac,providedIn:"root"}),x})()},36206:(Ue,W,d)=>{"use strict";d.d(W,{Gl:()=>l.Gl,Q5:()=>n.Q,lp:()=>l.lp,r7:()=>l.r7});var n=d(27561),l=d(81732)},27561:(Ue,W,d)=>{"use strict";d.d(W,{Q:()=>v});var n=d(65706),l=d(83915),p=d(81732),m=d(58527),_=d(3567),P=d(13090);let v=(()=>{var O;class S{constructor(r,i,a){this.localeService=i,this.offDeviceLinkService=a,this.logger=r.getLogger("gfn/RedirectService")}handleUnsupportedAndroidPlatform(){this.redirectTo(p.r7.GfnPcUnsupportedDeviceAndroid,{replace:!0})}handleUnsupportedBrowser(){this.redirectTo(p.r7.GfnPcUnsupportedDevice,{replace:!0,jso:{Plt:p.Gl.Browser}})}redirectTo(r,i){this.getRedirectUrl(r,i?.jso).subscribe(a=>{this.logger.info("Redirecting to",a),i?.replace?window.location.replace(a):window.location.href=a})}redirectToExternalUrl(r,i){i?.replace?window.location.replace(r):window.location.href=r}getRedirectUrl(r,i){return this.localeService.localeChanged.pipe((0,n.s)(1)).pipe((0,l.T)(a=>{let h=`${p.r7.BaseUrl}${a}&page=${r}`;return i&&(h+=`&jso=${window.btoa(JSON.stringify(i))}`),h}))}openRedirectUrl(r,i){this.logger.info("Support Url clicked for: ",r,i);const a=i?{shortUrl:i}:void 0;this.getRedirectUrl(r).pipe((0,n.s)(1)).subscribe(h=>{this.offDeviceLinkService.open(h,a)})}}return(O=S).\u0275fac=function(r){return new(r||O)(m.KVO(_.J6),m.KVO(_.iH),m.KVO(P.n))},O.\u0275prov=m.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),S})()},81732:(Ue,W,d)=>{"use strict";d.d(W,{Gl:()=>n,lp:()=>p,r7:()=>l});var n=function(m){return m.PC="pc",m.Mac="mac",m.Browser="browser",m}(n||{}),l=function(m){return m.BaseUrl="https://www.nvidia.com/content/drivers/redirect.asp?language=",m.NetworkTroubleshoot="gfn_pc_net_help",m.RecommendedRoutersProductPage="gfn_pc_recommended_routers_product_page",m.GfnPcInfo="gfn_pc_info",m.GfnPcHelp="gfn_pc_help",m.TermsConditions="gfn_pc_terms_of_use",m.AccountTerms="nvidia_account_tos",m.OssLicenses="gfn_pc_oss",m.PrivacyPolicy="privacy_policy",m.PrivacyCenter="privacy_portal",m.AccountManagement="nvidia_account_management",m.SysRequirements="gfn_pc_sys_req",m.UdpBufferTips="gfn_pc_net_help_udp_socket",m.GfnPcUnSupportedRegion="gfn_pc_unsupported_region",m.GfnPcUnsupportedDevice="gfn_pc_unsupported_device",m.GfnPcUnsupportedDeviceAndroid="gfn_pc_unsupported_device_android",m.GfnPcUnsupportedBrowser="gfn_pc_unsupported_browser",m.GfnPcNetHelpFirewall="gfn_pc_net_help_firewall",m.GfnPcNetHelpWifi="gfn_pc_net_help_wifi",m.GfnPcHelpUpdate="gfn_pc_help_update",m.GfnPcHelpMissingDecoder="gfn_pc_help_missing_decoder",m.GfnServerStatus="gfn_pc_status",m.GfnPcDirectMouseInputHelp="gfn_pc_direct_mouse_input_help",m.CookiePolicy="nvidia_cookie_policy",m.GfnPcRecommendedGamepads="gfn_pc_recommended_gamepads",m.GfnAccountManagementSSO="nvidia_account_management_default",m.GfnAccountManagement="nvidia_account_management_gfn",m.GfnPcMembershipJoin="gfn_pc_membership",m.GfnPcMembershipUpgrade="gfn_pc_membership_upgrade",m.GfnPcMembershipDayPass="gfn_pc_membership_daypass",m.GfnPcCheckoutDayPass="gfn_pc_checkout_daypass",m.GfnPcRedeemActivationCode="gfn_pc_redeem_activation_code",m.GfnPcHelpKeyboardGamesUnavailable="gfn_pc_help_keyboard_games_unavailable",m.GfnPcHelpTvGamepadOnly="gfn_pc_help_tv_gamepad_only",m.GfnPcWaitList="gfn_pc_waitlist",m.GfnPcAccountNotActivated="gfn_pc_account_not_activated",m.GfnPcKeyboardTroubleshooting="gfn_pc_keyboard_troubleshooting",m.GfnPcCustomProfileLearnMore="gfn_pc_custom_profile_learn_more",m.GfnPcResolutionProfileUpscalingLearnMore="gfn_pc_resolution_upscaling_learn_more",m.GfnPcHdrUnsupportedSystemsLearnMore="gfn_pc_hdr_unsupported_systems_learn_more",m.GfnPcUnsupportedResolutionsLearnMore="gfn_pc_unsupported_resolutions_learn_more",m.GfnPcUnsupportedReflexLearnMore="gfn_pc_unsupported_reflex_learn_more",m.GfnPcHelpConnections="gfn_pc_help_connections",m.GfnPcOpportunityBlockerLearnMore="gfn_pc_ad_blocker_learn_more",m.GdnHomePage="gdn_home_page",m.GdnInvalidDeeplink="gdn_invalid_deeplink",m.GfnPcUdsLearnMore="gfn_pc_uds_learn_more",m.GfnPcAddPlaytime="gfn_pc_checkout_playtime",m.GfnPcViewPlaytime="nvidia_account_management_gfn_playsummary",m.GfnPcHowPlaytimeWorks="gfn_pc_help_playtime",m.GfnPcLimitedFeaturesGamePlay="gfn_pc_help_playtime_limited_features",m.GfnPcSafariBrowserLearnMore="gfn_pc_safari_browser_learn_more",m.GfnPcCloudGsyncLearnMore="gfn_pc_cloud_gsync_learn_more",m.GfnPcl4sLearnMore="gfn_pc_l4s_learn_more",m.GfnPcBrowserPushNotification="gfn_pc_help_browser_push_notification",m.GfnPcDownload="gfn_pc_download",m}(l||{});const p={[l.PrivacyPolicy]:"nvidia.com/privacy",[l.PrivacyCenter]:"nvidia.com/privacy-center",[l.CookiePolicy]:"nvidia.com/cookies",[l.TermsConditions]:"nvidia.com/geforcenow/termsofuse",[l.AccountTerms]:"nvidia.com/account/terms",[l.OssLicenses]:"nvidia.com/geforcenow/oss",[l.GfnPcRecommendedGamepads]:"nvidia.com/gfngamepads",[l.GfnAccountManagement]:"nvidia.com/account/gfn",[l.GfnAccountManagementSSO]:"account.nvidia.com",[l.GfnPcMembershipJoin]:"nvidia.com/gfn/membership",[l.GfnPcMembershipUpgrade]:"nvidia.com/gfn/upgrade",[l.GfnPcMembershipDayPass]:"nvidia.com/gfn/daypassmembership",[l.GfnPcCheckoutDayPass]:"nvidia.com/gfn/daypasscheckout",[l.GfnPcRedeemActivationCode]:"nvidia.com/gfn/activate",[l.GfnServerStatus]:"gfn.link/status",[l.GfnPcHelpTvGamepadOnly]:"geforcenow.com/help/gamepadonly",[l.UdpBufferTips]:"geforcenow.com/help/udp",[l.GfnPcNetHelpFirewall]:"geforcenow.com/help/firewall",[l.GfnPcNetHelpWifi]:"geforcenow.com/help/wifi",[l.GfnPcHelpUpdate]:"geforcenow.com/help/update",[l.GfnPcUnSupportedRegion]:"nvidia.com/geforcenow/availability",[l.GfnPcHelpMissingDecoder]:"geforcenow.com/help/decoder",[l.GfnPcWaitList]:"nvidia.com/geforcenow/waitlist",[l.RecommendedRoutersProductPage]:"geforcenow.com/routers",[l.NetworkTroubleshoot]:"nvidia.com/geforcenow/help/network",[l.GfnPcKeyboardTroubleshooting]:"geforcenow.com/help/keyboard",[l.GfnPcUnsupportedDevice]:"geforcenow.com/unsupported-device",[l.GfnPcUnsupportedBrowser]:"geforcenow.com/unsupported-browser",[l.GfnPcCustomProfileLearnMore]:"geforcenow.com/help/custom-settings",[l.GfnPcUnsupportedResolutionsLearnMore]:"geforcenow.com/help/unsupported-resolutions",[l.GfnPcHelpConnections]:"geforcenow.com/help/connections",[l.GfnPcOpportunityBlockerLearnMore]:"geforcenow.com/help/adblocker",[l.GfnPcAddPlaytime]:"geforcenow.com/addplaytime",[l.GfnPcViewPlaytime]:"nvidia.com/account/gfnplaytime",[l.GfnPcHowPlaytimeWorks]:"geforcenow.com/help/playtime",[l.GfnPcLimitedFeaturesGamePlay]:"geforcenow.com/help/limited",[l.GfnPcSafariBrowserLearnMore]:"geforcenow.com/help/safaribrowser",[l.GfnPcInfo]:"geforcenow.com",[l.GfnPcl4sLearnMore]:"gfn.link/5522",[l.GfnPcBrowserPushNotification]:"geforcenow.com/browser-notifications",[l.GfnPcHdrUnsupportedSystemsLearnMore]:"gfn.link/5390"}},43117:(Ue,W,d)=>{"use strict";d.d(W,{sD:()=>a,F4:()=>ee});var n=d(14354),l=d(3567),p=d(65706),m=d(83915),_=d(91384),P=d(14714),v=d(8619),O=d(14749),S=d(75707),y=d(10174),r=d(44098),i=d(95318),a=function(J){return J.ServerInfo="ServerInfo",J.Apps="Apps",J.Layout="Layout",J.Subscription="Subscription",J.ALS="ALS",J.PanelLibrary="Panel_Library",J.PanelMain="Panel_Main",J.PanelMarquee="Panel_Marquee",J.PanelFavorites="Panel_Favorites",J.UserDatastore="User_Datastore",J.CampaignsData="CampaignsData",J}(a||{});const h={[i.HP.Main]:a.PanelMain,[i.HP.Marquee]:a.PanelMarquee,[i.HP.Library]:a.PanelLibrary,[i.HP.Favorites]:a.PanelFavorites};var g=function(J){return J.OnFocus="onFocus",J.OnScreenChange="onScreenChange",J.OnPushNotification="onPushNotification",J.OnReset="OnReset",J}(g||{}),c=d(80583),T=d(57258),A=d(31315),L=d(43848),x=d(59859),V=d(15652),D=d(3496),F=d(1646),I=d(23953),k=d(20381),R=d(97152),G=d(32727),Y=d(26875),K=d(58527),$=d(14279);let ee=(()=>{var J;class z{constructor(X,re,ge,oe,xe,ue,N,se,ce){this.windowService=re,this.router=ge,this.pushNotificationService=oe,this.experienceControlService=xe,this.pathService=ue,this.idmService=N,this.appConfig=se,this.injector=ce,this.contentExpiryInfo={},this.serverInfoRefresh=new c.B7,this.subscriptionRefresh=new c.B7,this.appsRefresh=new c.B7,this.layoutRefresh=new c.B7,this.skuDataRefresh=new c.B7,this.assetRefresh=new c.B7,this.libraryRefresh=new c.B7,this.panelRefresh=new c.B7,this.patchingInfoRefresh=new c.B7,this.linkedAccountRefresh=new c.B7,this.campaignDataRefresh=new c.B7,this.gxtPunctualUIConfigFetched=new T.m(1),this.scheduledRequests=[],this.syncChangeRefresh=new c.B7,this.favoritesRefresh=new c.B7,this.notificationTimerRaceMap=new Map,this.serverInfoRefresh$=this.serverInfoRefresh.asObservable(),this.subscriptionRefresh$=this.subscriptionRefresh.asObservable(),this.appsRefresh$=this.appsRefresh.asObservable(),this.layoutRefresh$=this.layoutRefresh.asObservable(),this.skuDataRefresh$=this.skuDataRefresh.asObservable(),this.assetRefresh$=this.assetRefresh.asObservable(),this.libraryRefresh$=this.libraryRefresh.asObservable(),this.panelRefresh$=this.panelRefresh.asObservable(),this.patchingInfoRefresh$=this.patchingInfoRefresh.asObservable(),this.linkedAccountRefresh$=this.linkedAccountRefresh.asObservable(),this.campaignDataRefresh$=this.campaignDataRefresh.asObservable(),this.syncChangeRefresh$=this.syncChangeRefresh.asObservable(),this.favoritesRefresh$=this.favoritesRefresh.asObservable(),this.logger=X.getLogger("RefreshUiService"),this.pushNotificationHandlerMap=new Map([[F.MP.APP_CHANGE,{info:[{refreshTrigger:this.appsRefresh,contentExpiryFlagToCheck:a.Apps}]}],[F.MP.SUBSCRIPTION_CHANGE,{info:[{refreshTrigger:this.subscriptionRefresh,contentExpiryFlagToCheck:a.Subscription}],getTimeout:()=>60*Math.random()*1e3}],[F.MP.SERVER_INFO_SYNC,{info:[{refreshTrigger:this.serverInfoRefresh,contentExpiryFlagToCheck:a.ServerInfo}]}],[F.MP.LAYOUT_CHANGE,{info:[{refreshTrigger:this.panelRefresh}],aggregationOverrides:{considerChangedIds:!0},shouldHandle:this.shouldHandleLayoutChangeNotification.bind(this)}],[F.MP.PRODUCT_CHANGE,{info:[{refreshTrigger:this.subscriptionRefresh,contentExpiryFlagToCheck:a.Subscription}]}],[F.MP.ASSET_CHANGE,{info:[{refreshTrigger:this.assetRefresh}],aggregationOverrides:{considerChangedIds:!0},shouldHandle:this.shouldHandleAssetChangeNotification.bind(this)}],[F.MP.PATCHING_EVENT,{info:[{refreshTrigger:this.patchingInfoRefresh}],aggregationOverrides:{bypassAggregation:!0},shouldHandle:this.shouldHandlePatchingNotification.bind(this),getTimeout:()=>60*Math.random()*1e3}],[F.MP.LIBRARY_CHANGE,{info:[{refreshTrigger:this.libraryRefresh,contentExpiryFlagToCheck:a.PanelLibrary}],getTimeout:()=>0}],[F.MP.LINKEDACCOUNT_CHANGE,{info:[{refreshTrigger:this.linkedAccountRefresh,contentExpiryFlagToCheck:a.UserDatastore}],getTimeout:()=>0}],[F.MP.CAMPAIGN_CHANGE,{info:[{refreshTrigger:this.campaignDataRefresh,contentExpiryFlagToCheck:a.CampaignsData}],aggregationOverrides:{considerPropertyPath:"campaignInfo.eventType"}}],[F.MP.PLATFORM_SYNC_CHANGE,{info:[{refreshTrigger:this.syncChangeRefresh,contentExpiryFlagToCheck:a.UserDatastore}],getTimeout:()=>0}],[F.MP.FAVORITES_CHANGE,{info:[{refreshTrigger:this.favoritesRefresh,contentExpiryFlagToCheck:a.PanelFavorites}],getTimeout:()=>0}]])}get getPunctualUIConfig$(){return this.gxtPunctualUIConfigFetched.asObservable()}init(){this.fetchPunctualUIConfigCloudVariable(),this.refreshDataOnScreenChange(),this.refreshDataOnFocusGain(),this.handlePushNotifications()}getContentExpiryInfo(X){return this.contentExpiryInfo[X]}setContentExpiryInfo(X){(0,A.zV)([this.getPunctualUIConfig$,this.idmService.accountStatusChanged]).pipe((0,p.s)(1),(0,m.T)(([re,ge])=>ge.isAuthenticated?re.refreshIntervalLoggedInUser:re.refreshIntervalLoggedOutUser),(0,_.M)(re=>{this.contentExpiryInfo[X]=Date.now()+60*re*1e3})).subscribe(()=>{},re=>this.logger.error("Error setting content expiry info",re))}resetContentExpiryInfo(X){X&&(this.contentExpiryInfo[X]=0)}resetContentExpiryAndRefreshOnFocus(X){if(document.hasFocus()){let re=!1;this.pushNotificationHandlerMap.forEach(ge=>{ge?.info?.forEach(oe=>{oe?.contentExpiryFlagToCheck===X&&!re&&(oe?.refreshTrigger.next({source:g.OnReset}),re=!0)})})}else this.resetContentExpiryInfo(X)}isPushNotificationEnabled$(){let X=(0,L.of)(!1);if(this.appConfig?.featureEnablement?.supportsPushNotifications){if(!l.zk.isBrowserPlatform())return(0,L.of)(!0);{const re=this.injector.get(R.hLj);re&&(X=re.isNotificationAllowed())}}return X.pipe((0,p.s)(1),(0,m.T)(re=>{const ge=re&&Notification?.permission===F.NQ.Granted;return this.logger.info("notificationEnabled: ",ge),ge}))}fetchPunctualUIConfigCloudVariable(){this.experienceControlService.getCloudVariable(this.appConfig.gxTarget.experiences.punctualUIConfig,{},{useCache:!0,useNetworkTimeoutForCacheFallback:!0},k.Ky.GxTargetGetCloudVariable,k.Id.GxTargetGetPunctualUIConfig).pipe((0,p.s)(1),(0,_.M)(X=>{this.gxtPunctualUIConfigFetched.next(X?.value??this.appConfig.defaultPunctualUIConfig)}),(0,P.W)(X=>(this.gxtPunctualUIConfigFetched.next(this.appConfig.defaultPunctualUIConfig),(0,x.$)(X)))).subscribe(()=>this.logger.info("Successfully fetched punctualUIConfig cv"),X=>this.logger.info("Error while fetching punctualUIConfig cv",X))}triggerRefresh(X,re,ge){re.next({source:X,metadata:ge})}isContentExpired(X){return 0===this.contentExpiryInfo[X]||Date.now()>this.contentExpiryInfo[X]}triggerExpiredDataRefresh(X,re){let ge=!1;const oe=re??this.router.url;this.logger.info("triggerExpiredDataRefresh if needed on ",X),this.idmService.accountStatusChanged.pipe((0,p.s)(1),(0,_.M)(xe=>{this.pathService.isMallOrSettingsUrl(oe)&&(this.isContentExpired(a.ServerInfo)&&this.triggerRefresh(X,this.serverInfoRefresh),this.isContentExpired(a.Subscription)&&this.triggerRefresh(X,this.subscriptionRefresh),xe.isAuthenticated&&this.isContentExpired(a.UserDatastore)&&this.triggerRefresh(X,this.linkedAccountRefresh)),r.Jg.includes(oe)&&(this.isContentExpired(a.CampaignsData)&&(this.triggerRefresh(X,this.campaignDataRefresh),ge=!0),this.isContentExpired(a.Apps)&&this.triggerRefresh(X,this.appsRefresh),!ge&&this.isContentExpired(a.Layout)&&(this.triggerRefresh(X,this.layoutRefresh),ge=!0),!ge&&(this.isContentExpired(a.PanelMain)||this.isContentExpired(a.PanelMarquee))&&this.triggerRefresh(X,this.panelRefresh),xe.isAuthenticated&&!ge&&this.isContentExpired(a.PanelLibrary)&&this.triggerRefresh(X,this.libraryRefresh),xe.isAuthenticated&&!ge&&this.isContentExpired(a.PanelFavorites)&&this.triggerRefresh(X,this.favoritesRefresh))})).subscribe()}refreshDataOnFocusGain(){return this.windowService.getFocusEvent().subscribe(()=>{this.triggerExpiredDataRefresh(g.OnFocus)})}refreshDataOnScreenChange(){let X;return this.router.events.pipe((0,v.p)(re=>re instanceof n.ld),(0,O.J)(),(0,m.T)(re=>(X=re[1]&&re[1].urlAfterRedirects,!!this.pathService.isMallOrSettingsUrl(X))),(0,P.W)(re=>(this.logger.error("Error in refreshDataOnScreenChange",re),(0,L.of)(!1)))).subscribe(re=>{re&&this.triggerExpiredDataRefresh(g.OnScreenChange,X)})}refreshCheckForRegionIds(X){const re=this.injector.get(I.G);return X?.regionIdType&&X?.regionIdType===F.Wq.REGION?re?.detectedLocalZone$.pipe((0,p.s)(1),(0,S.ZZ)(ge=>ge?(0,L.of)(ge):(this.logger.info("Detected local zone is empty"),re?.getCachedZone())),(0,m.T)(ge=>{const oe=ge?.address?.split(".",1);if(oe?.length>0){const xe=oe[0].toLowerCase();return this.logger.info("Local-Region Prefix",xe),X?.regionIds?.some(ue=>ue.toLowerCase()===xe)}return!1}),(0,P.W)(ge=>(this.logger.error("Error in getting Local-Region",ge),(0,L.of)(!1)))):re?.vpcId$.pipe((0,p.s)(1),(0,m.T)(ge=>(ge=ge.toLowerCase(),this.logger.info("current VpcID",ge),X?.regionIds.some(oe=>oe.toLowerCase()===ge))),(0,P.W)(ge=>(this.logger.error("Error in getting current VPC ID",ge),(0,L.of)(!1))))}canIgnoreNotification(X,re){if(re?.bypassAggregation)return!1;const ge=this.scheduledRequests.filter(ue=>ue.messageType===X.messageType);if(!ge.length)return!1;if(re?.considerPropertyPath){if(!ge.filter(N=>(0,Y.get)(N,re.considerPropertyPath)===(0,Y.get)(X,re.considerPropertyPath)).length)return!1;this.logger.info("Request of same message type with same property value exists")}if(!re?.considerChangedIds)return this.logger.info("Request of same message type exists, considerChangedIds = false. Ignoring notification"),!0;const oe=ge.filter(ue=>ue.changeIdType===X.changeIdType);if(!oe.length)return!1;const xe=oe[0];return X.changedIds?.forEach(ue=>{xe.changeIds.includes(ue)||xe.changeIds.push(ue)}),this.logger.info("Request of same message type exists, changeIds updated. Ignoring notification"),!0}defaultShouldHandlePushNotification(X,re,ge){return this.logger.info("pushNotification data handling for message type: "+F.MP[X.messageType]),this.logger.info("Is window active: "+document.hasFocus()),this.logger.info("current screen url"+this.router.url),this.canIgnoreNotification(X,ge)?(0,L.of)(!1):document.hasFocus()&&this.pathService.isMallOrSettingsUrl(this.router.url)?X?.regionIds?.length>0?this.refreshCheckForRegionIds(X):(0,L.of)(!0):(re.forEach(oe=>{this.resetContentExpiryInfo(oe?.contentExpiryFlagToCheck)}),(0,L.of)(!1))}handlePushNotifications(){this.pushNotificationHandlerMap.forEach((X,re)=>{this.pushNotificationService.registerPushNotification(re).pipe((0,S.ZZ)(ge=>(0,A.zV)(X?.shouldHandle?[X.shouldHandle(ge,X?.info,X?.aggregationOverrides),(0,L.of)(ge)]:[this.defaultShouldHandlePushNotification(ge,X?.info,X?.aggregationOverrides),(0,L.of)(ge)]))).subscribe(([ge,oe])=>{if(ge){let xe;if(X?.getTimeout)xe=X.getTimeout();else{const se=this.appConfig.punctualUI.notificationProcessingDelay??3e5;xe=Math.random()*se}const ue=(0,G.bz)(),N={requestId:ue,messageType:oe.messageType,changeIds:oe.changedIds??[],changeIdType:oe.changeIdType,considerChangedIds:X.aggregationOverrides?.considerChangedIds};X.aggregationOverrides?.considerPropertyPath&&(0,Y.set)(N,X.aggregationOverrides.considerPropertyPath,(0,Y.get)(oe,X.aggregationOverrides.considerPropertyPath)),this.scheduledRequests.push(N),setTimeout(()=>{const se=this.scheduledRequests.findIndex(Z=>Z.requestId===ue),ce=this.scheduledRequests[se].changeIds;this.scheduledRequests.splice(se,1),oe.changedIds=ce,this.logger.info("Handling Push Messgae for ",F.MP[re]),X?.handle?X?.handle(oe):X?.info.forEach(Z=>{Z?.refreshTrigger.next({source:g.OnPushNotification,metadata:oe})})},xe)}})})}shouldHandleAssetChangeNotification(X,re,ge){return this.defaultShouldHandlePushNotification(X,re,ge).pipe((0,_.M)(oe=>{oe||this.resetContentExpiryInfo(a.Apps)}))}shouldHandleLayoutChangeNotification(X,re,ge){return this.defaultShouldHandlePushNotification(X,re,ge).pipe((0,_.M)(oe=>{oe||(X?.changeIdType===F.Ab.PANEL?X?.changedIds?.forEach(xe=>{this.resetContentExpiryInfo(h[xe])}):this.resetContentExpiryInfo(a.Layout))}))}shouldHandlePatchingNotification(X){return X?.regionIds?.length>0?this.refreshCheckForRegionIds(X):(0,L.of)(!0)}getNotificationObservable(X){switch(X){case F.MP.LIBRARY_CHANGE:return this.libraryRefresh$;case F.MP.FAVORITES_CHANGE:return this.favoritesRefresh$;default:return null}}startNotificationTimerRace(X,re){const ge=new T.m(1),oe=this.getNotificationObservable(X);oe?((0,V.O4)(oe.pipe((0,y.u)(!0)),(0,D.O)(re).pipe((0,y.u)(!1))).subscribe(xe=>{ge.next(xe)}),this.notificationTimerRaceMap.get(X)?.complete(),this.notificationTimerRaceMap.set(X,ge)):this.logger.error(`No notification observable configured for ${X}. Will not initiate race`)}getNotificationTimerRaceResult(X){return this.notificationTimerRaceMap.has(X)||(0,x.$)(`Error: waiting on notification vs timer race for ${X} result without starting it`),this.notificationTimerRaceMap.get(X).asObservable()}}return(J=z).\u0275fac=function(X){return new(X||J)(K.KVO(l.J6),K.KVO(l.s7),K.KVO(n.Ix),K.KVO($.T),K.KVO(k.BW),K.KVO(R.R6l),K.KVO(R.k_2),K.KVO(R.Vk6),K.KVO(K.zZn))},J.\u0275prov=K.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),z})()},93528:(Ue,W,d)=>{"use strict";d.d(W,{a:()=>A});var n=d(75707),l=d(14714),p=d(91384),m=d(83915),_=d(57258),P=d(43848),v=d(36466),O=d(26875),S=d(10785),y=d(25882),r=d(58527),i=d(3567),a=d(51542),h=d(11961),g=d(72945),c=d(14709);const T="remoteOverrides";let A=(()=>{var L;class x{constructor(D,F,I,k,R,G){this.networkConfig=F,this.zoneStorage=I,this.sharedStorageService=k,this.appConfig=R,this.bridgeService=G,this.remoteConfigFetchedSubject=new _.m(1),this.zonePrefixForCachedRCTelemetry="",this.vpcIdForForCachedRCTelemetry="",this.projectRevisionForCachedRCTelemetry="",this.currentRemoteConfigRevision="",this.logger=D.getLogger("shared/remote-config.service"),this.lastCachedZone$=this.networkConfig.getCurrentCachedZone().pipe((0,n.ZZ)(Y=>(0,O.isNil)(Y)||(0,O.isEmpty)(Y)?this.zoneStorage.getDefaultZone():(this.logger.info("got cached zone",Y),(0,P.of)(Y)))),this.lastSavedZone$=this.networkConfig.getNetworkOverride().pipe((0,n.ZZ)(Y=>(0,O.isNil)(Y)||(0,O.isEmpty)(Y)?(this.logger.info("get cached zone"),this.lastCachedZone$):(this.logger.info("got override zone",Y),(0,P.of)(Y))),(0,l.W)(Y=>(this.logger.error("failed to fetch zone",Y),(0,P.of)(null))))}get remoteConfigFetched$(){return this.remoteConfigFetchedSubject.asObservable()}getLastSavedZone(){return this.lastSavedZone$}configureRemoteOverrides(D){D?.isFetchedFromGXT?this.appConfig.setRemoteOverridesFromGXT(D.data,D.metaData?.rcParamNameToLocalConfigKeyPathMap):this.logger.info("configureRemoteOverrides are not from GXT",D)}constructOverrides(D,F,I,k,R){return{metaData:{lastFetchedFrom:D,lastFetchedAt:S.utc().valueOf(),regionName:I,zoneName:k,rcParamNameToLocalConfigKeyPathMap:R},data:F}}saveRemoteOverrides(D){this.logger.info("save remote overides",D);const F={overrideData:{data:D.data}};this.sharedStorageService.writeBlock(T,D).pipe((0,n.ZZ)(()=>(this.logger.info("notify geronimo"),this.bridgeService.executeCommand(y.T.Gfn.Streaming.UpdateRemoteConfig,F)))).subscribe(()=>v.l,I=>this.logger.error("failed to save remoteOverrides",I))}loadPreviousOverrides(){return this.sharedStorageService.readBlock(T).pipe((0,l.W)(D=>(this.logger.info("failed to fetch overrides",D),(0,P.of)({}))))}isValidObject(D,F){return!(0,O.isNil)(D)&&!(0,O.isEmpty)(D)&&!(0,O.isEmpty)(D[F])}isValidString(D){return!(0,O.isNil)(D)&&!(0,O.isEmpty)(D)}getZonePrefix(D){let F="";if(this.isValidObject(D,"address")){const I=D.address.split(".",1);I.length>0&&(F=I[0])}return F}getRemoteConfigOnLaunch(){return this.loadPreviousOverrides().pipe((0,p.M)(D=>{this.zonePrefixForCachedRCTelemetry=D?.metaData?.regionName,this.vpcIdForForCachedRCTelemetry=D?.metaData?.zoneName,D?.isFetchedFromGXT?(this.appConfig.setRemoteOverridesFromGXT(D.data,D?.metaData?.rcParamNameToLocalConfigKeyPathMap),this.projectRevisionForCachedRCTelemetry=D?.data?.debugInfo?.revision):this.logger.info("Saved overrided are not from GXT",D)}))}getCurrentZonePrefix(){return this.logger.info("getCurrentZone"),this.lastSavedZone$.pipe((0,m.T)(D=>{const F=this.getZonePrefix(D);return this.isValidString(F)?F:(this.logger.info("invalid zone",D),null)}))}propagatePreviousOverides(){this.loadPreviousOverrides().subscribe(D=>{this.remoteConfigFetchedSubject.next({overrides:D,config:this.appConfig.get()})})}updateRemoteConfigFromGXT(D,F,I,k){const G=this.constructOverrides("",D,F,I,k);G.isFetchedFromGXT=!0,this.currentRemoteConfigRevision=G?.data?.debugInfo?.revision,this.saveRemoteOverrides(G),this.configureRemoteOverrides(G),this.logger.info("fire config fetched from GXT notification"),this.remoteConfigFetchedSubject.next({overrides:G,config:this.appConfig.get()})}}return(L=x).\u0275fac=function(D){return new(D||L)(r.KVO(i.J6),r.KVO(a.u),r.KVO(h.p),r.KVO(g.yQ),r.KVO(c.oO),r.KVO(i.NZ))},L.\u0275prov=r.jDH({token:L,factory:L.\u0275fac,providedIn:"root"}),x})()},18320:(Ue,W,d)=>{"use strict";d.d(W,{HV:()=>m,RQ:()=>l});const l=5,m="Unknown"},21341:(Ue,W,d)=>{"use strict";d.d(W,{RQ:()=>_.RQ,uU:()=>l.u,bo:()=>n.b});var n=d(47261),l=d(51542);d(26875);var _=d(18320)},51542:(Ue,W,d)=>{"use strict";d.d(W,{u:()=>x});var n=d(57258),l=d(43848),p=d(65706),m=d(99047),_=d(83915),P=d(75707),v=d(53461),O=d(91384),S=d(14714),y=d(3567),r=d(26875),a=d(18320),h=d(58527),g=d(72945),c=d(7703);const T="networkConfig",L="zones";let x=(()=>{var V;class D{constructor(I,k,R,G){this.systemInfo=k,this.sharedStorage=R,this.deeplinkHelperService=G,this.currentFingerprint="",this.networkSessionIdUpdated$=new n.m(1),this.logger=I.getLogger("gfn/networkConfiguration"),this.isBrowserPlatform=y.zk.isBrowserPlatform(),this.deeplinkOverrideZone=this.deeplinkHelperService.getDeeplinkZoneOverride()}get networkSessionId$(){return this.networkSessionIdUpdated$.asObservable()}readNetworkSessionId(){this.getCachedNetworkSessionId().pipe((0,p.s)(1)).subscribe(I=>this.networkSessionIdUpdated$.next(I??""),I=>{this.logger.error("Error fetching cached networkSessionId",I),this.networkSessionIdUpdated$.next("")})}set deeplinkOverrideZone(I){this._deeplinkOverrideZone=I}get deeplinkOverrideZone(){return this._deeplinkOverrideZone}getFingerprint(){return this.systemInfo.getSystemInfo([y.Lu.Network]).pipe((0,m.$)(),(0,_.T)(I=>I.Network),(0,_.T)(I=>(I?.Fingerprint&&this.updateFingerPrintIfChanged(I.Fingerprint),(0,r.isNil)(I)||(0,r.isEmpty)(I.Fingerprint)?null:I.Fingerprint)))}updateFingerPrintIfChanged(I){if(this.currentFingerprint!==I)return this.currentFingerprint=I,this.modifyNetworkConfig(k=>((0,r.isNil)(I)||(k.currentFingerPrint=I),k),"Failed tp update fingerprint").subscribe()}cacheCurrentFingerprint(){return this.getFingerprint().pipe((0,_.T)(I=>!(0,r.isNil)(I)&&(this.lastCachedFingerprint=I,!0)))}getFingerprintInfo(I){return this.getNetworkConfig().pipe((0,_.T)(k=>(0,r.isNil)(k.networks[I])?null:k.networks[I]))}getCurrentFingerprintInfo(){return this.getFingerprint().pipe((0,P.ZZ)(I=>this.getFingerprintInfo(I)))}getCachedZone(I){return this.getNetworkConfig().pipe((0,_.T)(k=>(0,r.isNil)(k.networks[I])||(0,r.isNil)(k.networks[I].lbrZone)?null:k.networks[I].lbrZone))}getCurrentCachedZone(){return this.getFingerprint().pipe((0,P.ZZ)(I=>this.getCachedZone(I)))}getCurrentCachedZone$(){return this.cachedZone$||(this.cachedZone$=new n.m(1),this.getCurrentCachedZone().pipe((0,p.s)(1)).subscribe(I=>this.cachedZone$.next(I))),this.cachedZone$.asObservable().pipe((0,v.F)())}getCachedLatencies(I){return this.getNetworkConfig().pipe((0,_.T)(k=>(0,r.isNil)(k.networks[I])||(0,r.isNil)(k.networks[I].zonesLatencies)?null:k.networks[I].zonesLatencies))}getCurrentCachedLatencies(){return this.getFingerprint().pipe((0,P.ZZ)(I=>this.getCachedLatencies(I)))}getCachedNetworkSessionId(){return this.getFingerprint().pipe((0,P.ZZ)(I=>this.getNetworkConfig().pipe((0,_.T)(k=>(0,r.isNil)(k.networks[I])||(0,r.isNil)(k.networks[I].networkSessionId)?null:k.networks[I].networkSessionId))))}updateCurrentFingerprintNetworkTestFlag(I,k){return this.getFingerprint().pipe((0,P.ZZ)(R=>this.modifyNetworkConfig(G=>{const Y=(0,r.isNil)(R)?this.lastCachedFingerprint:R;return(0,r.isNil)(Y)||(G.networks[Y]=G.networks[Y]||{},(0,r.merge)(G.networks[Y],{runNetworkTest:I,indirectNetworkTestPolicy:k})),G},`Unable to ${I?"set":"reset"} the network test requirement with policy: ${k}.`)))}setCachedLatencies(I,k){const R={},G=[];if(!(0,r.isNil)(k)&&k!==a.HV)for(const Y of k.split(/[|]/)){const K=Y.split(":"),$=2===K.length?Number(K[1]):NaN;isNaN($)||G.push({key:K[0],val:K[1]})}for(const Y of G)R["latency@"+Y.key]=Y.val;return this.modifyNetworkConfig(Y=>(Y.networks[I]=Y.networks[I]||{},Y.networks[I].zonesLatencies=(0,r.isEmpty)(R)?null:R,Y),`Unable to save latency information for ${I}.`)}setCachedZone(I,k){return this.modifyNetworkConfig(R=>(R.networks[I]=R.networks[I]||{},R.networks[I].lbrZone=k,R),`Unable to save zone information for ${I}.`).pipe((0,O.M)(R=>{R&&this.cachedZone$&&this.cachedZone$.next(k)}))}setCachedNetworkSessionId(I){return this.getFingerprint().pipe((0,P.ZZ)(k=>this.modifyNetworkConfig(R=>(R.networks[k]=R.networks[k]||{},R.networks[k].networkSessionId=I,R),`Unable to save networkSessionId information for ${k}.`).pipe((0,O.M)(R=>{R&&this.networkSessionIdUpdated$.next(I)}))))}updateNetworkTestInfoInFingerprint(I,k,R){return this.getFingerprint().pipe((0,P.ZZ)(G=>G?this.modifyNetworkConfig(Y=>(Y.networks[G]=Y.networks[G]||{},Y.networks[G].maxSubscriptionProfile=I,Y.networks[G].networkTestReturn=k,Y.networks[G].lastShownThresholdProfile=R,Y),`Unable to save maxSubscriptionProfile, networkTestReturn, lastShownThresholdProfile information for ${G}.`):(0,l.of)(!1)))}updateNetworkTestThresholdProfile(I){return this.getFingerprint().pipe((0,P.ZZ)(k=>this.modifyNetworkConfig(R=>(R.networks[k]=R.networks[k]||{},R.networks[k].lastShownThresholdProfile=I,R),`Unable to save lastShownThresholdProfile information for ${k}.`)))}clearFingerprintCachedZone(I){return this.modifyNetworkConfig(k=>(this.logger.info("clear Cached Zone for fingerprint: ",I),(0,r.isNil)(k.networks[I])||delete k.networks[I].lbrZone,k),`Unable to clear zone information for ${I}.`)}clearCachedDisplayForFingerprint(I){return this.modifyNetworkConfig(k=>(this.logger.info("clear Cached Display for fingerprint: ",I),(0,r.isNil)(k.networks[I])||delete k.networks[I].maxDisplay,k),`Unable to clear display information for ${I}.`)}clearCachedCurrentFingerprint(){return this.getFingerprint().pipe((0,P.ZZ)(I=>this.modifyNetworkConfig(k=>(this.logger.info("clear the network fingerprint: ",I),(0,r.isNil)(k.networks[I])||delete k.networks[I],k),`Unable to clear information for ${I}.`)))}setZoneList(I){return this.sharedStorage.writeBlock(L,I)}getZoneList(){return this.sharedStorage.readBlock(L)}setFingerprintMaxDisplay(I,k){return this.modifyNetworkConfig(R=>(this.logger.info(`fingerprint ${k} display set to ${I.width}x${I.height}@${I.frameRate}`),R.networks[k]=R.networks[k]||{},R.networks[k].maxDisplay=I,R),`Unable to save information for ${k}.`)}setCurrentFingerprintMaxDisplay(I){return this.getFingerprint().pipe((0,P.ZZ)(k=>this.setFingerprintMaxDisplay(I,k)))}getFingerprintMaxDisplay(I){return this.getNetworkConfig().pipe((0,_.T)(k=>(0,r.isNil)(k.networks[I])||(0,r.isNil)(k.networks[I].maxDisplay)?null:k.networks[I].maxDisplay))}getFingerprintMaxPacketSize(I){return this.getNetworkConfig().pipe((0,_.T)(k=>(0,r.isNil)(k.networks[I])||(0,r.isNil)(k.networks[I].networkTestReturn?.testResult?.maxPacketSize)?null:k.networks[I].networkTestReturn.testResult.maxPacketSize))}getCurrentFingerprintMaxDisplay(){return this.getFingerprint().pipe((0,P.ZZ)(I=>this.getFingerprintMaxDisplay(I)),(0,O.M)(I=>{(0,r.isNil)(I)||this.logger.info(`Get Current maxDisplay: ${I.width}x${I.height}@${I.frameRate}`)}))}getCurrentFingerprintMaxPacketSize(){return this.getFingerprint().pipe((0,P.ZZ)(I=>this.getFingerprintMaxPacketSize(I)),(0,O.M)(I=>{(0,r.isNil)(I)||this.logger.info(`Get Current maxPacketSize: ${I}`)}))}getNetworkOverride(){return this.deeplinkOverrideZone?(0,l.of)(this.deeplinkOverrideZone):this.sharedStorage.readBlock(T).pipe((0,_.T)(I=>I.routingOverride||null))}setNetworkOverride(I){return this.modifyNetworkConfig(k=>(k.routingOverride=I,k),`Unable to save zone override information for ${I}.`)}updateNetworkOverrideNetworkTestFlag(I){return this.modifyNetworkConfig(k=>(k.routingOverride&&(k.routingOverride.runNetworkTest=!!this.isBrowserPlatform||I),k),`Unable to ${I?"set":"clear"} the network test requirement.`)}clearNetworkOverride(){return this.deeplinkOverrideZone?(this.deeplinkOverrideZone=null,(0,l.of)(!0)):this.modifyNetworkConfig(I=>(delete I.routingOverride,I),"Unable to clear zone override.")}clearCurrentFingerprintCachedZone(){return this.logger.info("deleting CachedZone for current fingerprint"),this.getFingerprint().pipe((0,P.ZZ)(I=>this.clearFingerprintCachedZone(I)))}clearCurrentFingerprintMaxDisplay(){return this.logger.info("deleting Cached Display for current fingerprint"),this.getFingerprint().pipe((0,P.ZZ)(I=>this.clearCachedDisplayForFingerprint(I)))}modifyNetworkConfig(I,k){return this.getNetworkConfig().pipe((0,P.ZZ)(R=>this.sharedStorage.writeBlock(T,I(R))),(0,S.W)(this.logError(k,!1)))}getNetworkConfig(){return this.sharedStorage.readBlock(T).pipe((0,_.T)(I=>(0,r.merge)(I,{networks:{}})))}logError(I,k){return R=>(this.logger.error(I,R),(0,l.of)(k))}writeNetworkConfig(I,k){return this.sharedStorage.writeBlock(T,I,k)}}return(V=D).\u0275fac=function(I){return new(I||V)(h.KVO(y.J6),h.KVO(y.zW),h.KVO(g.yQ),h.KVO(c.w))},V.\u0275prov=h.jDH({token:V,factory:V.\u0275fac,providedIn:"root"}),D})()},47261:(Ue,W,d)=>{"use strict";d.d(W,{b:()=>D});var n=d(80583),l=d(26513),p=d(35146),m=d(43848),_=d(59859),P=d(83915),v=d(75707),O=d(10174),S=d(14714),y=d(4208),r=d(99047),i=d(74931),a=d(26875),g=d(18320),c=d(35225),T=d(2490),A=d(58527),L=d(51542),x=d(3567),V=d(78812);let D=(()=>{var F;class I{constructor(R,G,Y,K,$,ee){this.networkConfig=R,this.bridgeService=G,this.telemetryService=Y,this.telemetryUtilService=K,this.distributedTracingUtilService=$,this.lbrCancelled$=new n.B7,this.retriggerPolicy$=new l.t(c.RsW.Manual),this.logger=ee.getLogger("gfn/serverRouting"),this.isLbrInProgress=!1,this.lbrRun=!1}get isLbrRequired(){return this.lbrRequired}set isLbrRequired(R){this.lbrRequired=R}get isLbrRun(){return this.lbrRun}resetLbrStatus(){this.lbrRequired=!1,this.lbrRun=!1}setRetriggerPolicy(R){this.retriggerPolicy$.next(R)}getCachedServerZone(){const R=[this.networkConfig.getNetworkOverride(),this.networkConfig.getCurrentCachedZone()];return(0,p.yU)(...R).pipe((0,P.T)(G=>{const[Y,K]=G;return(0,a.isNil)(Y)?(this.logger.info("DiskCachedZone is: ",K," and cachedZone is: ",this.cachedZone),(0,a.isNil)(this.cachedZone)?K:this.cachedZone):(this.logger.info("Latency-based routing override found.",Y),Y)}))}getFastestRegionalZone(R,G,Y){const K=(0,a.keys)(G);this.isLbrInProgress=!0;const $={user:R.userId,deviceId:R.deviceId,platformId:R.platformId,addresses:K},ee=this.cacheZoneList(G),J=this.networkConfig.getNetworkOverride(),z=this.networkConfig.getCurrentCachedLatencies();return(0,p.yU)(ee,J,z).pipe((0,v.ZZ)(([,te,X])=>(0,a.isNil)(te)?(this.logger.info("override zone is not found, run LBR"),(0,a.isNil)(Y)||this.distributedTracingUtilService.setSpanAttribute(Y,T.NS.UsedLatencyBasedRouting,!0),this.performLbr($,G,te,R.defaultZone)):(this.logger.info("Latency-based routing override found: ",te),(0,a.isNil)(Y)||(this.logger.info("Setting isLBRRun to false"),this.distributedTracingUtilService.setSpanAttribute(Y,T.NS.UsedLatencyBasedRouting,!1)),this.performLbr($,G,te,R.defaultZone).pipe((0,O.u)(te),(0,S.W)(re=>(this.logger.error("Failed to perform LBR, returning overriden zone.",re),(0,m.of)(te)))))))}shouldLbrRun(R){if((0,a.isEmpty)(R))return this.logger.info("Call to ServerInfo failed, therefore run LBR."),this.setRetriggerPolicy(c.RsW.ServerInfoFailed),this.cacheZoneList(R).pipe((0,O.u)(!0));const G=[this.networkConfig.getZoneList(),this.networkConfig.getCurrentFingerprintInfo()];return(0,p.yU)(...G).pipe((0,v.ZZ)(([Y,K])=>{const $=(0,a.isNil)(this.cachedZone)&&!(0,a.isNil)(K)?K.lbrZone:this.cachedZone,ee=(0,a.keys)(R),J=(0,a.keys)(Y);let z=!1;return(0,a.isNil)(K)?(this.logger.info("This fingerprint is observed for the first time, on which LBR was never run."),this.setRetriggerPolicy(c.RsW.FingerprintChanged),z=!0):(0,a.isEmpty)(Y)||(0,a.isNil)(K.zonesLatencies)||-1===(0,a.keys)(K.zonesLatencies)[0].indexOf(".")?(this.logger.info("Zone list or zonesLatencies not saved, therefore run LBR."),this.setRetriggerPolicy(c.RsW.ZoneListEmpty),z=!0):(0,a.isNil)($)?(this.logger.info("The user didn't have a cached zone, therefore run LBR."),this.setRetriggerPolicy(c.RsW.CachedZoneNotStored),z=!0):ee.includes($.address)?(0,a.difference)(ee,J).length>0&&(this.logger.info("New zones have been added to the pool."),this.setRetriggerPolicy(c.RsW.NewZonesAdded),z=!0):(this.logger.info("The user's cached zone is no longer available."),this.setRetriggerPolicy(c.RsW.CachedZoneNotAvailable),z=!0),this.cacheZoneList(R).pipe((0,O.u)(z))}),(0,S.W)(Y=>(this.logger.error("Error trying to determine if LBR should run, therefore run LBR.",Y),this.setRetriggerPolicy(c.RsW.PolicyCheckFailed),this.cacheZoneList(R).pipe((0,O.u)(!0)))))}cacheZoneList(R){return this.networkConfig.setZoneList(R).pipe((0,P.T)(()=>(this.logger.info("Successfully stored zone list in shared storage"),!0)),(0,S.W)(G=>(this.logger.warn("Failed to store zone list: ",G),(0,m.of)(!1))))}performLbr(R,G,Y,K){if((0,a.isEmpty)(G))return this.logger.error("Cannot perform latency based routing as zones is empty"),(0,_.$)("zones is empty.");this.lbrRun=!0;const $=Date.now();return this.networkConfig.getFingerprint().pipe((0,v.ZZ)(ee=>this.bridgeService.executeCommand(i.Ts.Gfn.Serverrouting.PerformRouting,R).pipe((0,y.Q)(this.lbrCancelled$),(0,v.ZZ)(J=>{this.cachedZone=G[J?.url],this.cachedZone.defaultZone=K;const z=this.networkConfig.setCachedZone(ee,this.cachedZone).pipe((0,v.ZZ)(X=>J.cacheResult?(this.isLbrInProgress=!1,(0,m.of)(X)):this.networkConfig.clearFingerprintCachedZone(ee))),te=this.networkConfig.setCachedLatencies(ee,J.results);return this.logRoutingSuccess(J),(0,p.yU)(z,te).pipe((0,v.ZZ)(()=>this.sendRoutingStatusTelemetry(J,Y,J.cacheResult?c.fbu.Success:c.fbu.Other,$)),(0,O.u)(this.cachedZone))}),(0,S.W)(J=>{const z=J,te=(()=>{try{return JSON.parse(z.message)}catch{return this.logger.error(`Unable to determine error from ${z.message}`),{results:g.HV,ipAddresses:g.HV,networkSessionId:g.HV,resultCode:z.code,resultText:z.message}}})();this.logRoutingFailure(te);const X=this.networkConfig.clearFingerprintCachedZone(ee),re=this.networkConfig.setCachedLatencies(ee,te.results);return(0,p.yU)(X,re).pipe((0,v.ZZ)(()=>this.sendRoutingStatusTelemetry(te,Y,c.fbu.ClientError,$)),(0,v.ZZ)(()=>(0,_.$)(J)))}))))}getRoutingInfoWithPolicy(R){return this.retriggerPolicy$.pipe((0,r.$)(),(0,P.T)(G=>(R.policy=G,R)))}sendRoutingStatusTelemetry(R,G,Y,K){const $={clientType:this.telemetryUtilService.getClientType(),serverRecommendedZone:"",clientRecommendedZone:R.url||"",clientRecommendedZoneLatency:R.latency||0,results:R.results,ipAddresses:R.ipAddresses,status:Y,errorCode:""+R.resultCode,errorDetails:R.resultText,networkSessionId:R.networkSessionId,totalMs:Date.now()-K,overrideZone:(0,a.isNil)(G)?"":G.address,overrideActive:(0,a.isNil)(G)?c.T80.FALSE:c.T80.TRUE};return this.getRoutingInfoWithPolicy($).pipe((0,P.T)(ee=>this.telemetryService.push(new c.Q2O(ee))))}logRoutingSuccess(R){this.logger.info(`Latency-based routing ${R.cacheResult?"":"partially"} succeeded with code: '${R.resultText}'`),this.logger.info(`Least latency zone is ${R.url} with ${R.latency}ms`),this.logger.info("Results",R.results),this.logger.info("IP addresses",R.ipAddresses)}logRoutingFailure(R){this.logger.error(`Latency-based routing failed with code: '${R.resultText}'`),this.logger.info("Results",R.results),this.logger.info("IP addresses",R.ipAddresses)}cleanupOnCancel(){return this.lbrCancelled$.next(),this.isLbrInProgress?this.networkConfig.clearCurrentFingerprintCachedZone():(0,m.of)(!0)}}return(F=I).\u0275fac=function(R){return new(R||F)(A.KVO(L.u),A.KVO(x.NZ),A.KVO(V.H0),A.KVO(c.jgD),A.KVO(T.Z1),A.KVO(x.J6))},F.\u0275prov=A.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),I})()},38006:(Ue,W,d)=>{"use strict";d.d(W,{up:()=>n,VC:()=>a});var n=function(h){return h.ServerInfo="ServerInfo",h.AppMetadata="AppMetadata",h.CountryCode="CountryCode",h}(n||{});const l="SharedStorageCache";var p=d(43848),m=d(14714),_=d(75707),P=d(10174),v=d(83915),O=d(26875),S=d(58527),y=d(3567),r=d(72945),i=d(61958);let a=(()=>{var h;class g{constructor(T,A,L){this.sharedStorageService=A,this.appConfig=L,this.logger=T.getLogger("gfn/Shared-Storage-Caching")}readSharedStorageCache(){return this.sharedStorageService.readBlock(l).pipe((0,m.W)(T=>(this.logger.info("Got error reading cache from shared storage:",T),(0,p.of)({}))))}saveItem(T,A){this.logger.info(`Saving the Item ${T} to shared storage cache`);const L={data:A,creationTs:Date.now()};return this.readSharedStorageCache().pipe((0,_.ZZ)(x=>(x[T]=L,this.sharedStorageService.writeBlock(l,x))),(0,m.W)(x=>(this.logger.info(`Error saving the item to the block ${l}: ${x}`),(0,p.of)(L))),(0,P.u)(A))}getItem(T){const A=this.appConfig.sharedStorageCache[T];return this.logger.info(`Get Item ${T}`),this.readSharedStorageCache().pipe((0,v.T)(L=>{const x={};if((0,O.has)(L,T)){this.logger.info(`Found the item ${T} in shared storage cache`);const V=L[T];x.data=V.data,x.expired=V.creationTs+A.cacheDuration<=Date.now()}return x}))}deleteItem(T){return this.logger.info(`Deleting the item: ${T}`),this.readSharedStorageCache().pipe((0,v.T)(A=>(delete A[T],A)),(0,_.ZZ)(A=>this.sharedStorageService.writeBlock(l,A)),(0,m.W)(A=>(this.logger.info(`Error deleting the item ${T} from shared storage cache - ${A}`),(0,p.of)(!1))))}isExpiredValueAllowed(T){return this.appConfig.sharedStorageCache[T].allowExpiredValue}}return(h=g).\u0275fac=function(T){return new(T||h)(S.KVO(y.J6),S.KVO(r.yQ),S.KVO(i.Vk))},h.\u0275prov=S.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),g})()},88610:(Ue,W,d)=>{"use strict";d.d(W,{Ow:()=>O,RX:()=>m,Tx:()=>P,Vd:()=>v,_Y:()=>n,iV:()=>_});var n=function(S){return S[S.MaxGpu=2]="MaxGpu",S[S.MaxDisk=3]="MaxDisk",S[S.MaxDisplay=3]="MaxDisplay",S[S.MaxInputDevicePerType=3]="MaxInputDevicePerType",S}(n||{}),m=function(S){return S[S.UNKNOWN=0]="UNKNOWN",S[S.SUCCESS=1]="SUCCESS",S[S.INVALID_PARAM=2]="INVALID_PARAM",S[S.SYN_FAILED=3]="SYN_FAILED",S[S.FIN_FAILED=4]="FIN_FAILED",S[S.AUTH_FAILED=5]="AUTH_FAILED",S[S.POST_FAILED=6]="POST_FAILED",S[S.TEST_IN_PROGRESS=7]="TEST_IN_PROGRESS",S[S.CANCELED=8]="CANCELED",S[S.CAPACITY_FULL=9]="CAPACITY_FULL",S[S.SESSION_EXIST=10]="SESSION_EXIST",S[S.INVALID_DATA=11]="INVALID_DATA",S[S.SETUP_FAILED=12]="SETUP_FAILED",S[S.RETRYABLE_POST_FAILURE=13]="RETRYABLE_POST_FAILURE",S[S.BLOCK_STREAM=14]="BLOCK_STREAM",S}(m||{}),_=function(S){return S.InitialLaunch="initialLaunch",S.StreamerCefInit="streamerCefInit",S.StreamerJsInit="streamerJsInit",S.UpdateCheck="updateCheck",S.PreStreaming="preStreaming",S.ManualLoginEntry="manualLoginEntry",S.AutoLogin="autoLogin",S.PlatformSelection="platformSelection",S.AccountLinking="accountLinking",S.NesAuthorization="nesAuthorization",S.Lbr="Lbr",S.NetworkTest="networkTest",S.SessionCleanup="sessionCleanup",S.SessionQueue="sessionQueue",S.StartSession="startSession",S.StreamerClientSetupDuration="streamerClientSetupDuration",S.StreamerConnectionDuration="streamerConnectionDuration",S.SeatConfigDuration="seatConfigDuration",S.StreamingStartDuration="streamingStartDuration",S}(_||{}),P=function(S){return S.Enabled="ENABLED",S.Disabled="DISABLED",S}(P||{}),v=function(S){return S.Native="Native",S.Browser="Browser",S.GFNSDK="GFNSDK",S.Undefined="undefined",S}(v||{}),O=function(S){return S.iBeta="iBeta",S.Release="Release",S.Undefined="undefined",S}(O||{})},87687:(Ue,W,d)=>{"use strict";d.d(W,{$1L:()=>yn,$_D:()=>A,$cp:()=>Mt,$sO:()=>Ai,BAK:()=>nr,BEl:()=>$n,Bhf:()=>Pa,EBD:()=>N,Fdg:()=>Jr,GSb:()=>cl,GoL:()=>ga,H9T:()=>ye,HBm:()=>k,HOo:()=>jt,Hgm:()=>G,HjG:()=>re,I0o:()=>Di,IWs:()=>li,Ixb:()=>tr,J64:()=>sr,JWD:()=>An,L15:()=>L,LCb:()=>Ba,LQP:()=>st,LUK:()=>dt,MCB:()=>on,Mwe:()=>Ii,N0J:()=>Qt,O67:()=>pn,OCG:()=>hi,OOF:()=>qt,Osh:()=>ha,Osi:()=>X,Pk9:()=>de,PvP:()=>va,Q2O:()=>oi,QF:()=>r,QQA:()=>ai,RXY:()=>hr,RgL:()=>_,Rhb:()=>Pi,RsW:()=>D,Ssl:()=>di,Sx:()=>Ga,T80:()=>pe,Tb$:()=>Ne,Tjv:()=>Po,Tv4:()=>jn,U1f:()=>Tn,UJ3:()=>se,Uqt:()=>vn,Uu$:()=>a,V_v:()=>h,Xci:()=>ea,YDY:()=>Ti,YRL:()=>za,Yjq:()=>Be,Yno:()=>Co,YwK:()=>Oe,Zhy:()=>Bo,ZpH:()=>Bn,_aO:()=>ar,_b3:()=>zn,_o$:()=>ko,aa0:()=>Yr,ay7:()=>i,c4O:()=>V,cPM:()=>_i,ddl:()=>Sa,deY:()=>lt,duU:()=>R,eK6:()=>je,fbL:()=>Ca,fbu:()=>vt,gho:()=>zs,gvg:()=>ss,h8t:()=>Rn,i6T:()=>rl,iQN:()=>Os,kKp:()=>un,kQl:()=>Zi,kSA:()=>ct,key:()=>Lr,l1U:()=>Ys,mTv:()=>ts,mUs:()=>pi,nzM:()=>gt,p2o:()=>K,px4:()=>gi,qH9:()=>c,sKj:()=>te,t4p:()=>$e,tdz:()=>ee,uKc:()=>Gt,uQS:()=>Vt,uXT:()=>lo,uxn:()=>Qe,vWR:()=>Cl,vhU:()=>_n,w7B:()=>rn,war:()=>Y,xEK:()=>dr,xkk:()=>mn,yEy:()=>x,yj4:()=>ce,zMM:()=>Pt,zTU:()=>ke,zcd:()=>Wt});var l=function(le){return le.Functional="functional",le.Technical="technical",le.Behavioral="behavioral",le}(l||{}),p=function(le){return le.Anonymous="anonymous",le.DeviceOnly="deviceOnly",le.DevicePreferred="devicePreferred",le.UserPreferred="userPreferred",le.UserRequired="userRequired",le}(p||{}),_=function(le){return le.PRODUCT_CHANGE="PRODUCT_CHANGE",le.ASSET_CHANGE="ASSET_CHANGE",le.SESSION_CHANGE="SESSION_CHANGE",le.LAYOUT_CHANGE="LAYOUT_CHANGE",le.GSWS_SYNC="GSWS_SYNC",le.SECTION_CHANGE="SECTION_CHANGE",le.LINKEDACCOUNT_CHANGE="LINKEDACCOUNT_CHANGE",le.APP_CHANGE="APP_CHANGE",le.SERVER_INFO_SYNC="SERVER_INFO_SYNC",le.CONFIGURATION_CHANGE="CONFIGURATION_CHANGE",le.SUBSCRIPTION_CHANGE="SUBSCRIPTION_CHANGE",le.UNKNOWN="UNKNOWN",le.PATCHING_EVENT="PATCHING_EVENT",le.KV_STORE_CHANGE="KV_STORE_CHANGE",le.LIBRARY_CHANGE="LIBRARY_CHANGE",le.PLATFORM_SYNC_CHANGE="PLATFORM_SYNC_CHANGE",le.CAMPAIGN_CHANGE="CAMPAIGN_CHANGE",le.FAVORITES_CHANGE="FAVORITES_CHANGE",le}(_||{}),r=function(le){return le.GameShortcutUrl="GameShortcutUrl",le}(r||{}),i=function(le){return le.AddDesktopShortcut="AddDesktopShortcut",le.LaunchGame="LaunchGame",le.NesAutoAuthorization="NesAutoAuthorization",le.LoginWithJarvisOAuth="LoginWithJarvisOAuth",le.LoginWithFacebook="LoginWithFacebook",le.NesGetCompleteLayouts="NesGetCompleteLayouts",le.LoginWithAffiliate="LoginWithAffiliate",le.LoginWithGoogle="LoginWithGoogle",le.Continue="Continue",le.ManageECommerceSubscription="ManageECommerceSubscription",le.UninstallGame="UninstallGame",le.LoginWithOther="LoginWithOther",le.AddGameToLibrary="AddGameToLibrary",le.Resend="Resend",le.LoginWithStarfleet="LoginWithStarfleet",le.ServiceWorkerActivation="ServiceWorkerActivation",le.SilentLoginDirectLaunch="SilentLoginDirectLaunch",le.LoginviaLoginHint="LoginviaLoginHint",le.SilentLoginRedirectFromDMO="SilentLoginRedirectFromDMO",le.AutoEntitle="AutoEntitle",le.LoginWithStarfleetViaLoginWall="LoginWithStarfleetViaLoginWall",le}(i||{}),a=function(le){return le.Jarvis="Jarvis",le.Gfc="Gfc",le.Lcars="Lcars",le.Grid="Grid",le.Cms="Cms",le.Aem="Aem",le.Survey="Survey",le.DR="DR",le.RemoteConfig="RemoteConfig",le.Starfleet="Starfleet",le.Other="Other",le.Rating="Rating",le.Gfwsl="Gfwsl",le.KVStore="KVStore",le.GxTarget="GxTarget",le.NES="NES",le.ALS="ALS",le.AwsS3="AwsS3",le.PNS="PNS",le.UAS="UAS",le}(a||{}),h=function(le){return le.COMMUNICATION_BANNER="COMMUNICATION_BANNER",le.UXTEST_BANNER="UXTEST_BANNER",le.SURVEY_BANNER="SURVEY_BANNER",le.POST_GAME="POST_GAME",le.FEEDBACK="FEEDBACK",le.NOTIFICATION_BANNER="NOTIFICATION_BANNER",le}(h||{}),c=function(le){return le.Passed="Passed",le.Unknown="Unknown",le.LbrDone="LbrDone",le.Skipped="Skipped",le.DialogShown="DialogShown",le}(c||{}),A=function(le){return le.IO="IO",le.Network="Network",le.General="General",le.JSON="JSON",le.None="None",le.File="File",le.Optimization="Optimization",le.IPC="IPC",le}(A||{}),L=function(le){return le.Success="Success",le.Failure="Failure",le}(L||{}),x=function(le){return le.AutoResume="AutoResume",le.DeviceTransition="DeviceTransition",le.None="None",le}(x||{}),V=function(le){return le.GetFreestyleFeature="GetFreestyleFeature",le.SendUsabilityStudyResponse="SendUsabilityStudyResponse",le.GetDeeplinkSupport="GetDeeplinkSupport",le.GetCloudSearch="GetCloudSearch",le.GetSurveyFeature="GetSurveyFeature",le.GetLayoutRefreshInterval="GetLayoutRefreshInterval",le.GetUsabilityStudy="GetUsabilityStudy",le.GetIgoSupportOnBrowserClient="GetIgoSupportOnBrowserClient",le.GetECommerceFeature="GetECommerceFeature",le.GetKeyboardLayout="GetKeyboardLayout",le.GetAutohighlightFeature="GetAutohighlightFeature",le.GetStarfleetPhase1="GetStarfleetPhase1",le.GetStarfleetPhase2="GetStarfleetPhase2",le.GetQueueETAConfig="GetQueueETAConfig",le.GetUpsellMessage="GetUpsellMessage",le.GetAllCloudVariables="GetAllCloudVariables",le.GetBrowserClientCanary="GetBrowserClientCanary",le.GetReservedSKUEnabled="GetReservedSKUEnabled",le.GetReservedSKUIBetaFlag="GetReservedSKUIBetaFlag",le.GetAnselFeature="GetAnselFeature",le.GetGfnBroadcastFeature="GetGfnBroadcastFeature",le.GetKBLayoutsConfig="GetKBLayoutsConfig",le.GetClipboardPasteConfig="GetClipboardPasteConfig",le.GetPathToPurchaseConfig="GetPathToPurchaseConfig",le.GetEnableRemoteConfigOnGXT="GetEnableRemoteConfigOnGXT",le.GetPunctualUIConfig="GetPunctualUIConfig",le.GetGameOwnershipABConfig="GetGameOwnershipABConfig",le.GetEnableBrowserIGSS="GetEnableBrowserIGSS",le.Other="Other",le}(V||{}),D=function(le){return le.FingerprintChanged="FingerprintChanged",le.ZoneListEmpty="ZoneListEmpty",le.PolicyCheckFailed="PolicyCheckFailed",le.Manual="Manual",le.CachedZoneNotStored="CachedZoneNotStored",le.ServerInfoFailed="ServerInfoFailed",le.CachedZoneNotAvailable="CachedZoneNotAvailable",le.NewZonesAdded="NewZonesAdded",le}(D||{}),k=function(le){return le.App_Exit="App_Exit",le.Dialog_Closed="Dialog_Closed",le.Goto_Settings="Goto_Settings",le.Continue_Login="Continue_Login",le.Proceed_Connect="Proceed_Connect",le.Paste_Confirmation="Paste_Confirmation",le.Continue_Play_Anyway="Continue_Play_Anyway",le.Continue_Add_Playtime="Continue_Add_Playtime",le}(k||{}),R=function(le){return le.Release_Highlights="Release_Highlights",le.Account_Link_Required="Account_Link_Required",le.Account_Link_Expired="Account_Link_Expired",le.Account_Link_Expires_Today="Account_Link_Expires_Today",le.Account_Link_Expires_Soon="Account_Link_Expires_Soon",le.Scheduled_Maintenance_Warning="Scheduled_Maintenance_Warning",le.Unsupported_Browser_Or_Platform_Load="Unsupported_Browser_Or_Platform_Load",le.Unsupported_Browser_Or_Platform_Login="Unsupported_Browser_Or_Platform_Login",le.Unsupported_Browser_Or_Platform_Game_Launch="Unsupported_Browser_Or_Platform_Game_Launch",le.InStream_Paste_Gesture_Dialog="InStream_Paste_Gesture_Dialog",le.Playtime_Not_Added="Playtime_Not_Added",le.Low_State_Game_Launch="Low_State_Game_Launch",le.Limited_State_Game_Launch="Limited_State_Game_Launch",le.Loading_Screen_Upgrade="Loading_Screen_Upgrade",le.Loading_Screen_Get_Day_Pass="Loading_Screen_Get_Day_Pass",le.Loading_Screen_Add_Playtime="Loading_Screen_Add_Playtime",le.Unknown="Unknown",le}(R||{}),G=function(le){return le.NVB_PROFILE_ROAMING_720P_30FPS="NVB_PROFILE_ROAMING_720P_30FPS",le.NVB_PROFILE_GAMING_1080P_60FPS="NVB_PROFILE_GAMING_1080P_60FPS",le.NT_1280_800_60="NT_1280_800_60",le.NVB_PROFILE_PROFESSIONAL="NVB_PROFILE_PROFESSIONAL",le.NVB_PROFILE_GAMING_720P_30FPS="NVB_PROFILE_GAMING_720P_30FPS",le.NT_1920_1200_60="NT_1920_1200_60",le.NT_1920_1200_30="NT_1920_1200_30",le.NT_1366_768_30="NT_1366_768_30",le.NT_1366_768_60="NT_1366_768_60",le.NT_1680_1050_30="NT_1680_1050_30",le.NT_1280_800_30="NT_1280_800_30",le.NT_1440_900_30="NT_1440_900_30",le.NT_1680_1050_60="NT_1680_1050_60",le.NVB_PROFILE_GAMING="NVB_PROFILE_GAMING",le.NVB_PROFILE_ROAMING_720P_60FPS="NVB_PROFILE_ROAMING_720P_60FPS",le.NT_1440_900_60="NT_1440_900_60",le.NVB_PROFILE_GAMING_720P_60FPS="NVB_PROFILE_GAMING_720P_60FPS",le.NVB_PROFILE_GAMING_1080P_30FPS="NVB_PROFILE_GAMING_1080P_30FPS",le.NVB_PROFILE_DEFAULT="NVB_PROFILE_DEFAULT",le}(G||{}),Y=function(le){return le.Nvidia_Access_Denied="Nvidia_Access_Denied",le.Unknown="Unknown",le.Rate_Limited="Rate_Limited",le.Platform_Access_Denied="Platform_Access_Denied",le.Platform_Profile_Denied="Platform_Profile_Denied",le.Success="Success",le.Sync_Failed="Sync_Failed",le.Sync_Denied="Sync_Denied",le.Profile_Not_Created="Profile_Not_Created",le.Sync_Success="Sync_Success",le}(Y||{}),K=function(le){return le.DismissManual="DismissManual",le.Completed="Completed",le.Notify="Notify",le.DismissAppExit="DismissAppExit",le.DismissLogout="DismissLogout",le.DismissSleep="DismissSleep",le.DismissTimeout="DismissTimeout",le.Participate="Participate",le.DismissManualPostMinimize="DismissManualPostMinimize",le.NotifyPostMinimize="NotifyPostMinimize",le.ParticpatePostMinimize="ParticpatePostMinimize",le.Minimized="Minimized",le.Deferred="Deferred",le.LearnMoreClicked="LearnMoreClicked",le}(K||{}),ee=function(le){return le.Dev="Dev",le.Release="Release",le.IBeta="IBeta",le.Autoplay="Autoplay",le}(ee||{}),te=function(le){return le.StreamingClient="StreamingClient",le.MallClient="MallClient",le.StoreLibrary="StoreLibrary",le.Unknown="Unknown",le.BackgroundAgent="BackgroundAgent",le}(te||{}),X=function(le){return le.UserConsented="UserConsented",le.NotShown="NotShown",le.UserDidNotConsent="UserDidNotConsent",le}(X||{}),re=function(le){return le.Adaptive="Adaptive",le.Off="Off",le.On="On",le}(re||{}),N=function(le){return le.UpdBufferTips="UpdBufferTips",le.PlatformSelection="PlatformSelection",le.PlatformChangeConsent="PlatformChangeConsent",le.Redeem="Redeem",le.ManualLogout="ManualLogout",le.StreamerBackNavigation="StreamerBackNavigation",le.Settings="Settings",le.NetworkTroubleshooting="NetworkTroubleshooting",le.AllGames="AllGames",le.JoinGfn="JoinGfn",le.AddGameToLibrary="AddGameToLibrary",le.ManageMembership="ManageMembership",le.ViewMembershipDetails="ViewMembershipDetails",le.MarketingMarquee="MarketingMarquee",le.ReleaseHighlights="ReleaseHighlights",le.ShareGame="ShareGame",le.LaunchGame="LaunchGame",le.AddGameShortcut="AddGameShortcut",le.MyLibrary="MyLibrary",le.ViewGameDetails="ViewGameDetails",le.UninstallGame="UninstallGame",le.AccountManagementSso="AccountManagementSso",le.Upgrade="Upgrade",le.InvokeSearch="InvokeSearch",le.AddBrowserShortcut="AddBrowserShortcut",le.AccountMenu="AccountMenu",le.OpenClientIME="OpenClientIME",le.OpenFeedbackDialog="OpenFeedbackDialog",le.OpenOnScreenKeyboard="OpenOnScreenKeyboard",le.CloseOnScreenKeyboard="CloseOnScreenKeyboard",le.PasteClipboardText="PasteClipboardText",le.ShowVirtualGamepad="ShowVirtualGamepad",le.ToggleMicrophone="ToggleMicrophone",le.ToggleNetworkWarnings="ToggleNetworkWarnings",le.QuitGame="QuitGame",le.LearnMoreAboutStreamingProfiles="LearnMoreAboutStreamingProfiles",le.SeeMore="SeeMore",le.FilterTile="FilterTile",le.PathToPurchase="PathToPurchase",le.PromoCTA="PromoCTA",le.Unmute="Unmute",le.Mute="Mute",le.AddPlaytime="AddPlaytime",le.ViewPlaytime="ViewPlaytime",le.HowPlaytimeWorksKBA="HowPlaytimeWorksKBA",le.LimitedFeaturesKBA="LimitedFeaturesKBA",le.GetDayPass="GetDayPass",le.AddDayPass="AddDayPass",le.RefreshUserSubscription="RefreshUserSubscription",le.AddToFavorite="AddToFavorite",le.RemoveFromFavorite="RemoveFromFavorite",le}(N||{}),se=function(le){return le.Keyboard="Keyboard",le.Gamepad="Gamepad",le.Mouse="Mouse",le.Touch="Touch",le.Unknown="Unknown",le}(se||{}),ce=function(le){return le.Joystick="Joystick",le.Mouse="Mouse",le.Unknown="Unknown",le.Keyboard="Keyboard",le.GamePad="GamePad",le}(ce||{}),de=function(le){return le.StreamerUsedFreeUpsell="StreamerUsedFreeUpsell",le.StreamerQueueUpsell="StreamerQueueUpsell",le.StreamerNoFreeUpsell="StreamerNoFreeUpsell",le.StreamerPostSessionFreeGaaSUpsell="StreamerPostSessionFreeGaaSUpsell",le.StreamerPostSessionUpsell="StreamerPostSessionUpsell",le.StreamerPostSessionAnonGaaSUpsell="StreamerPostSessionAnonGaaSUpsell",le.Standard="Standard",le}(de||{}),pe=function(le){return le.UNDEFINED="UNDEFINED",le.TRUE="TRUE",le.FALSE="FALSE",le}(pe||{}),ke=function(le){return le.AUTH_FAILED="AUTH_FAILED",le.SESSION_EXIST="SESSION_EXIST",le.RETRYABLE_POST_FAILURE="RETRYABLE_POST_FAILURE",le.BLOCK_STREAM="BLOCK_STREAM",le.WIFI_2_4="WIFI_2_4",le.INVALID_PARAM="INVALID_PARAM",le.TEST_IN_PROGRESS="TEST_IN_PROGRESS",le.POST_FAILED="POST_FAILED",le.NA="NA",le.FAILED="FAILED",le.INVALID_DATA="INVALID_DATA",le.CANCELED="CANCELED",le.SETUP_FAILED="SETUP_FAILED",le.PacketLoss="PacketLoss",le.UNKNOWN="UNKNOWN",le.SYN_FAILED="SYN_FAILED",le.FIN_FAILED="FIN_FAILED",le.CAPACITY_FULL="CAPACITY_FULL",le}(ke||{}),je=function(le){return le.Unknown="Unknown",le.NotStarted="NotStarted",le.Started="Started",le.Completed="Completed",le.Canceled="Canceled",le.Paused="Paused",le.Resumed="Resumed",le}(je||{}),$e=function(le){return le.Landscape="Landscape",le.Portrait="Portrait",le.Unknown="Unknown",le}($e||{}),Oe=function(le){return le.Unknown="Unknown",le.Windows="Windows",le.Mac="Mac",le.Android="Android",le.Web="Web",le}(Oe||{}),gt=function(le){return le.PlayGame="PlayGame",le.ViewGame="ViewGame",le.None="None",le}(gt||{}),qt=function(le){return le.GetServerInformation="GetServerInformation",le.JARVIS_Get_User_Token="JARVIS_Get_User_Token",le.Image_Retrieval_Tile_Feature="Image_Retrieval_Tile_Feature",le.JARVIS_Set_Pin="JARVIS_Set_Pin",le.JARVIS_Redeem_Delegate_Token="JARVIS_Redeem_Delegate_Token",le.Append_Client_Data="Append_Client_Data",le.Get_Client_Settings="Get_Client_Settings",le.NES_Cancel_Subscription="NES_Cancel_Subscription",le.Get_Client_Data="Get_Client_Data",le.GetAppVariants="GetAppVariants",le.NES_Update_Subscription="NES_Update_Subscription",le.GetAppData="GetAppData",le.Layout_Get_Tile_Data="Layout_Get_Tile_Data",le.NES_Get_PlayTime="NES_Get_PlayTime",le.InitiateDownload="InitiateDownload",le.DR_Get_Product="DR_Get_Product",le.NES_Install="NES_Install",le.NES_Get_Subscriptions="NES_Get_Subscriptions",le.NES_Get_Products="NES_Get_Products",le.JARVIS_Chain_Session="JARVIS_Chain_Session",le.FCM_Checkin="FCM_Checkin",le.GetPrivacyPolicy="GetPrivacyPolicy",le.NES_Get_Credits="NES_Get_Credits",le.JARVIS_Get_Third_Party_Provider_Info="JARVIS_Get_Third_Party_Provider_Info",le.FCM_Subscribe="FCM_Subscribe",le.FCM_Unregister="FCM_Unregister",le.JARVIS_Request_Email_Verify="JARVIS_Request_Email_Verify",le.JARVIS_Verify_Pin="JARVIS_Verify_Pin",le.GetCloudVariable="GetCloudVariable",le.CheckForUpdate="CheckForUpdate",le.DR_Put_Cart="DR_Put_Cart",le.Get_Client_Token="Get_Client_Token",le.FCM_Unsubscribe="FCM_Unsubscribe",le.Streaming_GetFeedbackToken="Streaming_GetFeedbackToken",le.GetRemoteConfig="GetRemoteConfig",le.Get_Release_Highlights="Get_Release_Highlights",le.Get_User_Info="Get_User_Info",le.PrepareToDownload="PrepareToDownload",le.NES_Get_Resource="NES_Get_Resource",le.DR_Get_Payment="DR_Get_Payment",le.GetFeatureRollout="GetFeatureRollout",le.NES_Get_ServiceUrls="NES_Get_ServiceUrls",le.JARVIS_Get_Login_Token="JARVIS_Get_Login_Token",le.JARVIS_Get_Delegate_Token="JARVIS_Get_Delegate_Token",le.Set_Client_Data="Set_Client_Data",le.Layout_Get_Section="Layout_Get_Section",le.DR_Edit_Payment="DR_Edit_Payment",le.FeedbackHead="FeedbackHead",le.DR_Empty_Cart="DR_Empty_Cart",le.NES_Get_Apps="NES_Get_Apps",le.DR_Get_Orders="DR_Get_Orders",le.FCM_Register="FCM_Register",le.DR_Apply_Shopper="DR_Apply_Shopper",le.DR_Get_Token="DR_Get_Token",le.GetTermsAndConditions="GetTermsAndConditions",le.GetSurvey="GetSurvey",le.Layout_Get_Sections="Layout_Get_Sections",le.JARVIS_Get_Pin="JARVIS_Get_Pin",le.Get_Access_Token="Get_Access_Token",le.Delete_Client_Data="Delete_Client_Data",le.GetRatingsInfo="GetRatingsInfo",le.FeedbackAttachment="FeedbackAttachment",le.Image_Retrieval_Tile_Game="Image_Retrieval_Tile_Game",le.NES_Uninstall="NES_Uninstall",le.DR_Submit_Cart="DR_Submit_Cart",le.GetLayout="GetLayout",le.SendSurveyResponse="SendSurveyResponse",le.Feature_Tile_Image_Retrieval="Feature_Tile_Image_Retrieval",le.JARVIS_Get_Session_Token="JARVIS_Get_Session_Token",le.GetSpecificServerInformation="GetSpecificServerInformation",le.Layout_Manager_Data_Retrieval="Layout_Manager_Data_Retrieval",le.JARVIS_Get_User_Info="JARVIS_Get_User_Info",le.Streaming_GetJarvisDelegateToken="Streaming_GetJarvisDelegateToken",le.NES_Get_Product_Credits="NES_Get_Product_Credits",le.DR_Get_Cart="DR_Get_Cart",le.GetApps="GetApps",le.LinkAccount="LinkAccount",le.UnlinkAccount="UnlinkAccount",le.GetOAuthURL="GetOAuthURL",le.LibrarySync="LibrarySync",le.Other="Other",le.FetchJSFile="FetchJSFile",le.FetchLocaleJson="FetchLocaleJson",le.GetPanel="GetPanel",le.PNS_Registrations="PNS_Registrations",le.PNS_Unregister="PNS_Unregister",le.GetUserAccount="GetUserAccount",le.NES_GetClientStreamingQuality="NES_GetClientStreamingQuality",le.GetCampaigns="GetCampaigns",le.AcquireUser="AcquireUser",le.GetAcquisitionState="GetAcquisitionState",le.GetFilterGroupAndSortOrderDefinitions="GetFilterGroupAndSortOrderDefinitions",le.GetLoginWallData="GetLoginWallData",le.GetLoginWallStrings="GetLoginWallStrings",le.AddFavoriteApp="AddFavoriteApp",le.RemoveFavoriteApp="RemoveFavoriteApp",le.AddOwnedVariant="AddOwnedVariant",le.RemoveOwnedVariant="RemoveOwnedVariant",le.SelectOwnedVariant="SelectOwnedVariant",le}(qt||{}),ye=function(le){return le.Unknown="Unknown",le.Connected="Connected",le.Disconnected="Disconnected",le}(ye||{}),un=function(le){return le.Excellent="Excellent",le.Poor="Poor",le.Bad="Bad",le.Unknown="Unknown",le}(un||{}),ct=function(le){return le.SelfUpdateInstallAuto="SelfUpdateInstallAuto",le.SelfUpdateInstallManual="SelfUpdateInstallManual",le.CustomOfflinePage="CustomOfflinePage",le.LaunchUI="LaunchUI",le.FirstApplicationInstall="FirstApplicationInstall",le.LaunchPwaUI="LaunchPwaUI",le.ScheduledMaintenanceTimer="ScheduledMaintenanceTimer",le.SessionLengthTimer="SessionLengthTimer",le.UDSToastShown="UDSToastShown",le}(ct||{}),Gt=function(le){return le.OobeAgreeAndContinue="OobeAgreeAndContinue",le.OobeTermsOfUseHyperlink="OobeTermsOfUseHyperlink",le}(Gt||{}),pn=function(le){return le.No="No",le.Yes="Yes",le.None="None",le}(pn||{}),st=function(le){return le.GameNotFound="GameNotFound",le.BadRequest="BadRequest",le.Unknown="Unknown",le.ServerError="ServerError",le.ClipboardError="ClipboardError",le.Unauthorized="Unauthorized",le.PartnerAuthFailed="PartnerAuthFailed",le.ZoneNotFound="ZoneNotFound",le.RedirectURLNotAllowed="RedirectURLNotAllowed",le.None="None",le}(st||{}),mn=function(le){return le.AccountLinked="AccountLinked",le.Disconnect="Disconnect",le.ResyncAfterResolve="ResyncAfterResolve",le.ResyncAfterProfileCreate="ResyncAfterProfileCreate",le.Sync="Sync",le.Resync="Resync",le.ReconnectForOnboarding="ReconnectForOnboarding",le.Reconnect="Reconnect",le.ReconnectAfterSyncDenied="ReconnectAfterSyncDenied",le.ResyncAfterSyncFailed="ResyncAfterSyncFailed",le}(mn||{}),Bn=function(le){return le.FingerprintChanged="FingerprintChanged",le.ClientUpdated="ClientUpdated",le.StreamerNetworkError="StreamerNetworkError",le.NetworkTestCancelled="NetworkTestCancelled",le.OverrideFlagSet="OverrideFlagSet",le.MaxDisplayRequired="MaxDisplayRequired",le.PolicyCheckFailed="PolicyCheckFailed",le.Manual="Manual",le.RedResult="RedResult",le.NetworkTestFailed="NetworkTestFailed",le.MaxSubscriptionProfileUpgraded="MaxSubscriptionProfileUpgraded",le}(Bn||{}),dt=function(le){return le.SolidState="SolidState",le.Unknown="Unknown",le.Rotational="Rotational",le}(dt||{}),yn=function(le){return le.Streamer="Streamer",le.Gallery="Gallery",le.Layout_L0="Layout_L0",le.Settings="Settings",le.Layout_L1="Layout_L1",le}(yn||{}),rn=function(le){return le.Other="Other",le.Ethernet="Ethernet",le.Unknown="Unknown",le.Wifi_2_4="Wifi_2_4",le.Wifi_5_0="Wifi_5_0",le.Wifi_6_0="Wifi_6_0",le.Wifi_Unknown="Wifi_Unknown",le}(rn||{}),ai=function(le){return le.Manual="Manual",le.Automatic="Automatic",le}(ai||{}),Ne=function(le){return le.SystemInfo="SystemInfo",le}(Ne||{}),vt=function(le){return le.StreamerConnecting="StreamerConnecting",le.CancelledLoginCompleted="CancelledLoginCompleted",le.RagnarokLaunchError="RagnarokLaunchError",le.Success="Success",le.StreamerQueueUpsell="StreamerQueueUpsell",le.HTTPError="HTTPError",le.StreamerPostSessionFreeGaaSUpsell="StreamerPostSessionFreeGaaSUpsell",le.StreamerQueueApology="StreamerQueueApology",le.StreamerPostSessionUpsell="StreamerPostSessionUpsell",le.NesAuthFailed="NesAuthFailed",le.StreamerPostSessionAnonGaaSUpsell="StreamerPostSessionAnonGaaSUpsell",le.GeronimoLaunchError="GeronimoLaunchError",le.Failure="Failure",le.AppExit="AppExit",le.StreamerUsedFreeUpsell="StreamerUsedFreeUpsell",le.JarvisPinAuthFailed="JarvisPinAuthFailed",le.StreamerLoading="StreamerLoading",le.StreamerNoFreeUpsell="StreamerNoFreeUpsell",le.NesNotEntitled="NesNotEntitled",le.EmailNotVerified="EmailNotVerified",le.ServerError="ServerError",le.ECommercePaywallLaunchError="ECommercePaywallLaunchError",le.NetworkInfoError="NetworkInfoError",le.LoginFailed="LoginFailed",le.GeronimoNetworkTestError="GeronimoNetworkTestError",le.NetworkTestSdkError="NetworkTestSdkError",le.EmptyLibrary="EmptyLibrary",le.GetLayoutError="GetLayoutError",le.ClientError="ClientError",le.ClientOffline="ClientOffline",le.Other="Other",le.ServiceWorkerActivationOngoing="ServiceWorkerActivationOngoing",le.ServiceWorkerActivated="ServiceWorkerActivated",le.UALoginComplete="UALoginComplete",le.UALoginFailed="UALoginFailed",le.UALoginPending="UALoginPending",le.UALoginPendingTimedOut="UALoginPendingTimedOut",le.UALoginPendingSuccess="UALoginPendingSuccess",le.UALoginPendingFailure="UALoginPendingFailure",le.ServiceWorkerRegistrationFailed="ServiceWorkerRegistrationFailed",le.ServiceWorkerRegistrationSuccess="ServiceWorkerRegistrationSuccess",le.ServiceWorkerNotSupported="ServiceWorkerNotSupported",le.ServiceWorkerInstalled="ServiceWorkerInstalled",le.ServiceWorkerActivationError="ServiceWorkerActivationError",le.Registered="Registered",le.NotRegistered="NotRegistered",le.Played="Played",le}(vt||{}),jn=function(le){return le.UpdateSuccess="UpdateSuccess",le.UpdateFailure="UpdateFailure",le.QueryFailure="QueryFailure",le.DownloadStarted="DownloadStarted",le.Query="Query",le.IPCReceived="IPCReceived",le.UpdateInitiated="UpdateInitiated",le.IPCSent="IPCSent",le.DownloadFailure="DownloadFailure",le.Error="Error",le.Optimization="Optimization",le.Downloaded="Downloaded",le.Cancelled="Cancelled",le}(jn||{}),on=function(le){return le.ScreenOobeWelcome="ScreenOobeWelcome",le.ScreenToastMessage="ScreenToastMessage",le.ScreenMainToolbar="ScreenMainToolbar",le.ScreenMarquee="ScreenMarquee",le.ScreenAllGames="ScreenAllGames",le.ScreenAccountMenu="ScreenAccountMenu",le.ScreenSettings="ScreenSettings",le.ScreenAutoLogin="ScreenAutoLogin",le.ScreenMontage="ScreenMontage",le.ScreenEmailVerification="ScreenEmailVerification",le.ScreenPreview="ScreenPreview",le.ScreenGallery="ScreenGallery",le.ScreenStreamer="ScreenStreamer",le.ScreenMyLibrary="ScreenMyLibrary",le.ScreenJoinGfnDialog="ScreenJoinGfnDialog",le.ScreenGridView="ScreenGridView",le.ScreenEvidencePanel="ScreenEvidencePanel",le.ScreenMallHome="ScreenMallHome",le.ScreenPlatformSelectionDialog="ScreenPlatformSelectionDialog",le.ScreenSwitchProvider="ScreenSwitchProvider",le.ScreenUpgradeBanner="ScreenUpgradeBanner",le.ScreenDesktopShortcut="ScreenDesktopShortcut",le.ScreenPlaytimeNotAddedDialog="ScreenPlaytimeNotAddedDialog",le.ScreenAddPlaytimeBanner="ScreenAddPlaytimeBanner",le.ScreenLimitedStateGameLaunchDialog="ScreenLimitedStateGameLaunchDialog",le.ScreenLowStateGameLaunchDialog="ScreenLowStateGameLaunchDialog",le.ScreenLowPlaytimeDayPassBanner="ScreenLowPlaytimeDayPassBanner",le.ScreenDayPassExpiryBanner="ScreenDayPassExpiryBanner",le.ScreenLowPlaytimeDayPassDialog="ScreenLowPlaytimeDayPassDialog",le}(on||{}),_n=function(le){return le.Unknown="Unknown",le.GeForceNOW="GeForceNOW",le.External="External",le.Deeplink="Deeplink",le}(_n||{}),pi=function(le){return le.TOKEN_REGISTRATION="TOKEN_REGISTRATION",le.DISPATCH_NOTIFICATION="DISPATCH_NOTIFICATION",le.DEVICE_REGISTRATION="DEVICE_REGISTRATION",le.CLIENT_SERVER_COMMUNICATION="CLIENT_SERVER_COMMUNICATION",le.SUBSCRIPTION="SUBSCRIPTION",le.PAYLOAD_DECRYPTION="PAYLOAD_DECRYPTION",le.GENERAL="GENERAL",le}(pi||{}),Zi=function(le){return le.Join="Join",le.Close="Close",le.Login="Login",le}(Zi||{}),Lr=function(le){return le.NNS="NNS",le.PNS="PNS",le}(Lr||{}),Qt=function(le){return le.Video="Video",le.Audio="Audio",le}(Qt||{}),di=function(le){return le.Success="Success",le.Failure="Failure",le}(di||{}),zn=function(le){return le.SessionStart="SessionStart",le.SessionStop="SessionStop",le.SessionConsentDenied="SessionConsentDenied",le}(zn||{}),Ti=function(le){return le.Success="Success",le.Failure="Failure",le.Unknown="Unknown",le}(Ti||{}),$n=function(le){return le.Full="Full",le.Low="Low",le.Limited="Limited",le}($n||{}),Pt=function(le){return le.Desktop="Desktop",le.Mobile="Mobile",le.Unknown="Unknown",le}(Pt||{}),Ii=function(le){return le.UpdateCheckAttemptsExhausted="UpdateCheckAttemptsExhausted",le.DownloadAttemptExhausted="DownloadAttemptExhausted",le.InstallationAttemptExhausted="InstallationAttemptExhausted",le.Banner="Banner",le}(Ii||{}),ar=function(le){return le.PopupShown="PopupShown",le.RelaunchNow="RelaunchNow",le.Redirect="Redirect",le}(ar||{});const Jt={CaptureEvent:{name:"CaptureEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},GalleryContentEvent:{name:"GalleryContentEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},ClientAudioError:{name:"ClientAudioError",gdprLevel:l.Technical,personalization:p.UserPreferred},AnselFreestyleError:{name:"AnselFreestyleError",gdprLevel:l.Functional,personalization:p.UserPreferred},HighlightsGameSetting:{name:"HighlightsGameSetting",gdprLevel:l.Functional,personalization:p.UserPreferred},TextSearch:{name:"TextSearch",gdprLevel:l.Behavioral,personalization:p.UserPreferred},Geronimo_Feature_Event:{name:"Geronimo_Feature_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},ProcessStarted:{name:"ProcessStarted",gdprLevel:l.Functional,personalization:p.UserPreferred},MicrophoneSettingChange:{name:"MicrophoneSettingChange",gdprLevel:l.Functional,personalization:p.UserPreferred},MicrophoneInitialized:{name:"MicrophoneInitialized",gdprLevel:l.Functional,personalization:p.UserPreferred},CheckGFN:{name:"CheckGFN",gdprLevel:l.Functional,personalization:p.UserPreferred},UIAction:{name:"UIAction",gdprLevel:l.Functional,personalization:p.UserPreferred},QueueEtaUpgradeClicked:{name:"QueueEtaUpgradeClicked",gdprLevel:l.Functional,personalization:p.UserPreferred},QueueEtaAddPlaytimeClicked:{name:"QueueEtaAddPlaytimeClicked",gdprLevel:l.Technical,personalization:p.UserPreferred},AudioNotificationEvent:{name:"AudioNotificationEvent",gdprLevel:l.Technical,personalization:p.UserPreferred},PopUpDialogClosed:{name:"PopUpDialogClosed",gdprLevel:l.Technical,personalization:p.UserPreferred},NetworkTest_Exception_Event:{name:"NetworkTest_Exception_Event",gdprLevel:l.Technical,personalization:p.UserPreferred},Game_Launch_Event:{name:"Game_Launch_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},LaunchProcess:{name:"LaunchProcess",gdprLevel:l.Functional,personalization:p.UserPreferred},ClientImeOpenEvent:{name:"ClientImeOpenEvent",gdprLevel:l.Technical,personalization:p.UserPreferred},OpenedIGO:{name:"OpenedIGO",gdprLevel:l.Functional,personalization:p.UserPreferred},GalleryPlayedVideo:{name:"GalleryPlayedVideo",gdprLevel:l.Behavioral,personalization:p.UserPreferred},AnselFreestyleFeatureDisabled:{name:"AnselFreestyleFeatureDisabled",gdprLevel:l.Technical,personalization:p.UserPreferred},SettingSnapshot:{name:"SettingSnapshot",gdprLevel:l.Behavioral,personalization:p.UserPreferred},Application_Install:{name:"Application_Install",gdprLevel:l.Functional,personalization:p.UserPreferred},Ragnarok_Exception_Event:{name:"Ragnarok_Exception_Event",gdprLevel:l.Technical,personalization:p.UserPreferred},QueueAbandoned:{name:"QueueAbandoned",gdprLevel:l.Functional,personalization:p.UserPreferred},OwnershipSyncEvent:{name:"OwnershipSyncEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},PopUpDialogShown:{name:"PopUpDialogShown",gdprLevel:l.Functional,personalization:p.UserPreferred},PushNotificationReceived:{name:"PushNotificationReceived",gdprLevel:l.Functional,personalization:p.UserPreferred},UITransition:{name:"UITransition",gdprLevel:l.Behavioral,personalization:p.UserPreferred},OOBE_Accept:{name:"OOBE_Accept",gdprLevel:l.Functional,personalization:p.UserPreferred},RoutingStatus:{name:"RoutingStatus",gdprLevel:l.Functional,personalization:p.UserPreferred},Geronimo_Stream_Exit_Event:{name:"Geronimo_Stream_Exit_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},Ragnarok_Sleep_Event:{name:"Ragnarok_Sleep_Event",gdprLevel:l.Technical,personalization:p.UserPreferred},RagnarokGamepadEvent:{name:"RagnarokGamepadEvent",gdprLevel:l.Technical,personalization:p.UserPreferred},CrashInfo:{name:"CrashInfo",gdprLevel:l.Functional,personalization:p.UserPreferred},HTTPFailure:{name:"HTTPFailure",gdprLevel:l.Functional,personalization:p.UserPreferred},AnselFreestyleSession:{name:"AnselFreestyleSession",gdprLevel:l.Functional,personalization:p.UserPreferred},PushNotificationTokenRegistered:{name:"PushNotificationTokenRegistered",gdprLevel:l.Functional,personalization:p.UserPreferred},AutoUpdate:{name:"AutoUpdate",gdprLevel:l.Functional,personalization:p.UserPreferred},Ragnarok_Stream_Exit_Event:{name:"Ragnarok_Stream_Exit_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},Geronimo_SystemApi_Event:{name:"Geronimo_SystemApi_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},GeronimoGamepadEvent:{name:"GeronimoGamepadEvent",gdprLevel:l.Technical,personalization:p.UserPreferred},ClientMetricEvent:{name:"ClientMetricEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},LayoutTelemetry:{name:"LayoutTelemetry",gdprLevel:l.Functional,personalization:p.UserPreferred},BrowserClientCanary:{name:"BrowserClientCanary",gdprLevel:l.Functional,personalization:p.UserPreferred},HTTPSuccess:{name:"HTTPSuccess",gdprLevel:l.Functional,personalization:p.UserPreferred},SDKCallResult:{name:"SDKCallResult",gdprLevel:l.Functional,personalization:p.UserPreferred},Drag:{name:"Drag",gdprLevel:l.Technical,personalization:p.UserPreferred},HighlightsIndividualGameToggle:{name:"HighlightsIndividualGameToggle",gdprLevel:l.Behavioral,personalization:p.UserPreferred},NetworkTest:{name:"NetworkTest",gdprLevel:l.Functional,personalization:p.UserPreferred},GFNSession:{name:"GFNSession",gdprLevel:l.Functional,personalization:p.UserPreferred},DeeplinkSource:{name:"DeeplinkSource",gdprLevel:l.Functional,personalization:p.UserPreferred},HIDInfo:{name:"HIDInfo",gdprLevel:l.Functional,personalization:p.UserPreferred},NvstDebug_Event:{name:"NvstDebug_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},SystemInfo:{name:"SystemInfo",gdprLevel:l.Functional,personalization:p.UserPreferred},GameSearchFilterEvent:{name:"GameSearchFilterEvent",gdprLevel:l.Behavioral,personalization:p.UserPreferred},GalleryOpenedFileLocation:{name:"GalleryOpenedFileLocation",gdprLevel:l.Behavioral,personalization:p.UserPreferred},Click:{name:"Click",gdprLevel:l.Technical,personalization:p.UserPreferred},AnselFreestyleFilters:{name:"AnselFreestyleFilters",gdprLevel:l.Functional,personalization:p.UserPreferred},GalleryFilterUsed:{name:"GalleryFilterUsed",gdprLevel:l.Behavioral,personalization:p.UserPreferred},Geronimo_Launch_Event:{name:"Geronimo_Launch_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},Nvst_RealTimeMetrics:{name:"Nvst_RealTimeMetrics",gdprLevel:l.Technical,personalization:p.UserPreferred},UserSession:{name:"UserSession",gdprLevel:l.Functional,personalization:p.UserPreferred},Geronimo_Connectivity_Event:{name:"Geronimo_Connectivity_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},NavigationPerformanceMetrics:{name:"NavigationPerformanceMetrics",gdprLevel:l.Technical,personalization:p.UserPreferred},GalleryDeleteCountEvent:{name:"GalleryDeleteCountEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},MontageEvent:{name:"MontageEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},CreateHTTPServerError:{name:"CreateHTTPServerError",gdprLevel:l.Functional,personalization:p.UserPreferred},Geronimo_Debug_Event:{name:"Geronimo_Debug_Event",gdprLevel:l.Technical,personalization:p.UserPreferred},AnselScreenshotEvent:{name:"AnselScreenshotEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},Hit_Event:{name:"Hit_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},CloudSearch:{name:"CloudSearch",gdprLevel:l.Functional,personalization:p.UserPreferred},AuthenticationProvider:{name:"AuthenticationProvider",gdprLevel:l.Functional,personalization:p.UserPreferred},ExperienceControlInfo:{name:"ExperienceControlInfo",gdprLevel:l.Functional,personalization:p.UserPreferred},PageLoadPerformanceMetrics:{name:"PageLoadPerformanceMetrics",gdprLevel:l.Technical,personalization:p.UserPreferred},SettingState:{name:"SettingState",gdprLevel:l.Technical,personalization:p.UserPreferred},DeeplinkShare:{name:"DeeplinkShare",gdprLevel:l.Functional,personalization:p.UserPreferred},Game_Launch_Metrics:{name:"Game_Launch_Metrics",gdprLevel:l.Functional,personalization:p.UserPreferred},NetworkTest_Http_Event:{name:"NetworkTest_Http_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},GalleryAction:{name:"GalleryAction",gdprLevel:l.Functional,personalization:p.UserPreferred},GFNPCLogsInfo:{name:"GFNPCLogsInfo",gdprLevel:l.Functional,personalization:p.UserPreferred},CTATileClickEvent:{name:"CTATileClickEvent",gdprLevel:l.Technical,personalization:p.UserPreferred},StreamingProfile:{name:"StreamingProfile",gdprLevel:l.Technical,personalization:p.UserPreferred},ClientAudioSkewedEvent:{name:"ClientAudioSkewedEvent",gdprLevel:l.Technical,personalization:p.UserPreferred},Geronimo_Http_Event:{name:"Geronimo_Http_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},ClientImeInteractionEvent:{name:"ClientImeInteractionEvent",gdprLevel:l.Technical,personalization:p.UserPreferred},StreamNowButtonClick:{name:"StreamNowButtonClick",gdprLevel:l.Functional,personalization:p.UserPreferred},HighlightCapture:{name:"HighlightCapture",gdprLevel:l.Functional,personalization:p.UserPreferred},GalleryFileRemoved:{name:"GalleryFileRemoved",gdprLevel:l.Behavioral,personalization:p.UserPreferred},Ragnarok_Http_Event:{name:"Ragnarok_Http_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},GalleryFilterEvent:{name:"GalleryFilterEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},MontageAction:{name:"MontageAction",gdprLevel:l.Functional,personalization:p.UserPreferred},UserSurvey:{name:"UserSurvey",gdprLevel:l.Functional,personalization:p.UserPreferred},Ragnarok_Launch_Event:{name:"Ragnarok_Launch_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},PluginAPIStatus:{name:"PluginAPIStatus",gdprLevel:l.Technical,personalization:p.UserPreferred},GPUInfo:{name:"GPUInfo",gdprLevel:l.Functional,personalization:p.UserPreferred},GallerySortEvent:{name:"GallerySortEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},OverrideKeyboardLayout:{name:"OverrideKeyboardLayout",gdprLevel:l.Functional,personalization:p.UserPreferred},Exception:{name:"Exception",gdprLevel:l.Functional,personalization:p.UserPreferred},OpportunityViewStatus:{name:"OpportunityViewStatus",gdprLevel:l.Functional,personalization:p.UserPreferred},HighlightsCancelled:{name:"HighlightsCancelled",gdprLevel:l.Functional,personalization:p.UserPreferred},Ragnarok_Debug_Event:{name:"Ragnarok_Debug_Event",gdprLevel:l.Technical,personalization:p.UserPreferred},GalleryAccess:{name:"GalleryAccess",gdprLevel:l.Functional,personalization:p.UserPreferred},PushNotificationError:{name:"PushNotificationError",gdprLevel:l.Functional,personalization:p.UserPreferred},PushNotificationPurgedEntries:{name:"PushNotificationPurgedEntries",gdprLevel:l.Functional,personalization:p.UserPreferred},FreestyleStylesApplied:{name:"FreestyleStylesApplied",gdprLevel:l.Functional,personalization:p.UserPreferred},MediaPlay:{name:"MediaPlay",gdprLevel:l.Technical,personalization:p.UserPreferred},StatsClosedEvent:{name:"StatsClosedEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},StatsViewChangedEvent:{name:"StatsViewChangedEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},GFNEventStatus:{name:"GFNEventStatus",gdprLevel:l.Functional,personalization:p.UserPreferred},GameplayEntryEvent:{name:"GameplayEntryEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},StreamingQualityChangedEvent:{name:"StreamingQualityChangedEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},ResolutionUpscalingChangedEvent:{name:"ResolutionUpscalingChangedEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},WidgetViewChangedEvent:{name:"WidgetViewChangedEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},NotificationChangedEvent:{name:"NotificationChangedEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},PlaytesterSessionEvent:{name:"PlaytesterSessionEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},System_WifiInfo_Event:{name:"System_WifiInfo_Event",gdprLevel:l.Functional,personalization:p.UserPreferred},ClipboardPasteEvent:{name:"ClipboardPasteEvent",gdprLevel:l.Functional,personalization:p.UserPreferred},StorageUsageMetrics:{name:"StorageUsageMetrics",gdprLevel:l.Technical,personalization:p.UserPreferred},LoginStart:{name:"LoginStart",gdprLevel:l.Functional,personalization:p.UserPreferred},RemoteConfigInfo:{name:"RemoteConfigInfo",gdprLevel:l.Functional,personalization:p.UserPreferred},GameCampaignsUpdate:{name:"GameCampaignsUpdate",gdprLevel:l.Functional,personalization:p.UserPreferred},UDSDialogShown:{name:"UDSDialogShown",gdprLevel:l.Functional,personalization:p.UserPreferred},UDSSuggestionFeedback:{name:"UDSSuggestionFeedback",gdprLevel:l.Functional,personalization:p.UserPreferred},ClientSelfUpdate:{name:"ClientSelfUpdate",gdprLevel:l.Functional,personalization:p.UserPreferred},UserWindowInfo:{name:"UserWindowInfo",gdprLevel:l.Functional,personalization:p.UserPreferred}};class ki{constructor(Nn){this.parameters=Nn,this.ts=(new Date).toISOString()}}class Qe extends ki{constructor(Nn){super(Nn),this.name=Jt.MicrophoneSettingChange.name,this.gdprLevel=Jt.MicrophoneSettingChange.gdprLevel,this.personalization=Jt.MicrophoneSettingChange.personalization}}class Be extends ki{constructor(Nn){super(Nn),this.name=Jt.MicrophoneInitialized.name,this.gdprLevel=Jt.MicrophoneInitialized.gdprLevel,this.personalization=Jt.MicrophoneInitialized.personalization}}class Mt extends ki{constructor(Nn){super(Nn),this.name=Jt.CheckGFN.name,this.gdprLevel=Jt.CheckGFN.gdprLevel,this.personalization=Jt.CheckGFN.personalization}}class Vt extends ki{constructor(Nn){super(Nn),this.name=Jt.UIAction.name,this.gdprLevel=Jt.UIAction.gdprLevel,this.personalization=Jt.UIAction.personalization}}class Rn extends ki{constructor(Nn){super(Nn),this.name=Jt.AudioNotificationEvent.name,this.gdprLevel=Jt.AudioNotificationEvent.gdprLevel,this.personalization=Jt.AudioNotificationEvent.personalization}}class _i extends ki{constructor(Nn){super(Nn),this.name=Jt.PopUpDialogClosed.name,this.gdprLevel=Jt.PopUpDialogClosed.gdprLevel,this.personalization=Jt.PopUpDialogClosed.personalization}}class hr extends ki{constructor(Nn){super(Nn),this.name=Jt.Game_Launch_Event.name,this.gdprLevel=Jt.Game_Launch_Event.gdprLevel,this.personalization=Jt.Game_Launch_Event.personalization}}class Yr extends ki{constructor(Nn){super(Nn),this.name=Jt.ClientImeOpenEvent.name,this.gdprLevel=Jt.ClientImeOpenEvent.gdprLevel,this.personalization=Jt.ClientImeOpenEvent.personalization}}class Os extends ki{constructor(Nn){super(Nn),this.name=Jt.Application_Install.name,this.gdprLevel=Jt.Application_Install.gdprLevel,this.personalization=Jt.Application_Install.personalization}}class li extends ki{constructor(Nn){super(Nn),this.name=Jt.OwnershipSyncEvent.name,this.gdprLevel=Jt.OwnershipSyncEvent.gdprLevel,this.personalization=Jt.OwnershipSyncEvent.personalization}}class dr extends ki{constructor(Nn){super(Nn),this.name=Jt.PopUpDialogShown.name,this.gdprLevel=Jt.PopUpDialogShown.gdprLevel,this.personalization=Jt.PopUpDialogShown.personalization}}class Tn extends ki{constructor(Nn){super(Nn),this.name=Jt.PushNotificationReceived.name,this.gdprLevel=Jt.PushNotificationReceived.gdprLevel,this.personalization=Jt.PushNotificationReceived.personalization}}class vn extends ki{constructor(Nn){super(Nn),this.name=Jt.OOBE_Accept.name,this.gdprLevel=Jt.OOBE_Accept.gdprLevel,this.personalization=Jt.OOBE_Accept.personalization}}class oi extends ki{constructor(Nn){super(Nn),this.name=Jt.RoutingStatus.name,this.gdprLevel=Jt.RoutingStatus.gdprLevel,this.personalization=Jt.RoutingStatus.personalization}}class ko extends ki{constructor(Nn){super(Nn),this.name=Jt.HTTPFailure.name,this.gdprLevel=Jt.HTTPFailure.gdprLevel,this.personalization=Jt.HTTPFailure.personalization}}class lo extends ki{constructor(Nn){super(Nn),this.name=Jt.PushNotificationTokenRegistered.name,this.gdprLevel=Jt.PushNotificationTokenRegistered.gdprLevel,this.personalization=Jt.PushNotificationTokenRegistered.personalization}}class ts extends ki{constructor(Nn){super(Nn),this.name=Jt.AutoUpdate.name,this.gdprLevel=Jt.AutoUpdate.gdprLevel,this.personalization=Jt.AutoUpdate.personalization}}class Ba extends ki{constructor(Nn){super(Nn),this.name=Jt.BrowserClientCanary.name,this.gdprLevel=Jt.BrowserClientCanary.gdprLevel,this.personalization=Jt.BrowserClientCanary.personalization}}class Pa extends ki{constructor(Nn){super(Nn),this.name=Jt.HTTPSuccess.name,this.gdprLevel=Jt.HTTPSuccess.gdprLevel,this.personalization=Jt.HTTPSuccess.personalization}}class Ga extends ki{constructor(Nn){super(Nn),this.name=Jt.Drag.name,this.gdprLevel=Jt.Drag.gdprLevel,this.personalization=Jt.Drag.personalization}}class ss extends ki{constructor(Nn){super(Nn),this.name=Jt.NetworkTest.name,this.gdprLevel=Jt.NetworkTest.gdprLevel,this.personalization=Jt.NetworkTest.personalization}}class va extends ki{constructor(Nn){super(Nn),this.name=Jt.DeeplinkSource.name,this.gdprLevel=Jt.DeeplinkSource.gdprLevel,this.personalization=Jt.DeeplinkSource.personalization}}class Ca extends ki{constructor(Nn){super(Nn),this.name=Jt.HIDInfo.name,this.gdprLevel=Jt.HIDInfo.gdprLevel,this.personalization=Jt.HIDInfo.personalization}}class Pi extends ki{constructor(Nn){super(Nn),this.name=Jt.SystemInfo.name,this.gdprLevel=Jt.SystemInfo.gdprLevel,this.personalization=Jt.SystemInfo.personalization}}class Di extends ki{constructor(Nn){super(Nn),this.name=Jt.Click.name,this.gdprLevel=Jt.Click.gdprLevel,this.personalization=Jt.Click.personalization}}class nr extends ki{constructor(Nn){super(Nn),this.name=Jt.UserSession.name,this.gdprLevel=Jt.UserSession.gdprLevel,this.personalization=Jt.UserSession.personalization}}class Wt extends ki{constructor(Nn){super(Nn),this.name=Jt.NavigationPerformanceMetrics.name,this.gdprLevel=Jt.NavigationPerformanceMetrics.gdprLevel,this.personalization=Jt.NavigationPerformanceMetrics.personalization}}class gi extends ki{constructor(Nn){super(Nn),this.name=Jt.CreateHTTPServerError.name,this.gdprLevel=Jt.CreateHTTPServerError.gdprLevel,this.personalization=Jt.CreateHTTPServerError.personalization}}class tr extends ki{constructor(Nn){super(Nn),this.name=Jt.Hit_Event.name,this.gdprLevel=Jt.Hit_Event.gdprLevel,this.personalization=Jt.Hit_Event.personalization}}class Bo extends ki{constructor(Nn){super(Nn),this.name=Jt.AuthenticationProvider.name,this.gdprLevel=Jt.AuthenticationProvider.gdprLevel,this.personalization=Jt.AuthenticationProvider.personalization}}class ha extends ki{constructor(Nn){super(Nn),this.name=Jt.PageLoadPerformanceMetrics.name,this.gdprLevel=Jt.PageLoadPerformanceMetrics.gdprLevel,this.personalization=Jt.PageLoadPerformanceMetrics.personalization}}class Ys extends ki{constructor(Nn){super(Nn),this.name=Jt.SettingState.name,this.gdprLevel=Jt.SettingState.gdprLevel,this.personalization=Jt.SettingState.personalization}}class Po extends ki{constructor(Nn){super(Nn),this.name=Jt.DeeplinkShare.name,this.gdprLevel=Jt.DeeplinkShare.gdprLevel,this.personalization=Jt.DeeplinkShare.personalization}}class cl extends ki{constructor(Nn){super(Nn),this.name=Jt.Game_Launch_Metrics.name,this.gdprLevel=Jt.Game_Launch_Metrics.gdprLevel,this.personalization=Jt.Game_Launch_Metrics.personalization}}class jt extends ki{constructor(Nn){super(Nn),this.name=Jt.StreamingProfile.name,this.gdprLevel=Jt.StreamingProfile.gdprLevel,this.personalization=Jt.StreamingProfile.personalization}}class zs extends ki{constructor(Nn){super(Nn),this.name=Jt.StreamNowButtonClick.name,this.gdprLevel=Jt.StreamNowButtonClick.gdprLevel,this.personalization=Jt.StreamNowButtonClick.personalization}}class Jr extends ki{constructor(Nn){super(Nn),this.name=Jt.UserSurvey.name,this.gdprLevel=Jt.UserSurvey.gdprLevel,this.personalization=Jt.UserSurvey.personalization}}class Sa extends ki{constructor(Nn){super(Nn),this.name=Jt.PluginAPIStatus.name,this.gdprLevel=Jt.PluginAPIStatus.gdprLevel,this.personalization=Jt.PluginAPIStatus.personalization}}class rl extends ki{constructor(Nn){super(Nn),this.name=Jt.GPUInfo.name,this.gdprLevel=Jt.GPUInfo.gdprLevel,this.personalization=Jt.GPUInfo.personalization}}class ga extends ki{constructor(Nn){super(Nn),this.name=Jt.OpportunityViewStatus.name,this.gdprLevel=Jt.OpportunityViewStatus.gdprLevel,this.personalization=Jt.OpportunityViewStatus.personalization}}class ea extends ki{constructor(Nn){super(Nn),this.name=Jt.PushNotificationError.name,this.gdprLevel=Jt.PushNotificationError.gdprLevel,this.personalization=Jt.PushNotificationError.personalization}}class za extends ki{constructor(Nn){super(Nn),this.name=Jt.PushNotificationPurgedEntries.name,this.gdprLevel=Jt.PushNotificationPurgedEntries.gdprLevel,this.personalization=Jt.PushNotificationPurgedEntries.personalization}}class Co extends ki{constructor(Nn){super(Nn),this.name=Jt.MediaPlay.name,this.gdprLevel=Jt.MediaPlay.gdprLevel,this.personalization=Jt.MediaPlay.personalization}}class Cl extends ki{constructor(Nn){super(Nn),this.name=Jt.PlaytesterSessionEvent.name,this.gdprLevel=Jt.PlaytesterSessionEvent.gdprLevel,this.personalization=Jt.PlaytesterSessionEvent.personalization}}class Ai extends ki{constructor(Nn){super(Nn),this.name=Jt.ClipboardPasteEvent.name,this.gdprLevel=Jt.ClipboardPasteEvent.gdprLevel,this.personalization=Jt.ClipboardPasteEvent.personalization}}class lt extends ki{constructor(Nn){super(Nn),this.name=Jt.StorageUsageMetrics.name,this.gdprLevel=Jt.StorageUsageMetrics.gdprLevel,this.personalization=Jt.StorageUsageMetrics.personalization}}class An extends ki{constructor(Nn){super(Nn),this.name=Jt.LoginStart.name,this.gdprLevel=Jt.LoginStart.gdprLevel,this.personalization=Jt.LoginStart.personalization}}class hi extends ki{constructor(Nn){super(Nn),this.name=Jt.ClientSelfUpdate.name,this.gdprLevel=Jt.ClientSelfUpdate.gdprLevel,this.personalization=Jt.ClientSelfUpdate.personalization}}class sr extends ki{constructor(Nn){super(Nn),this.name=Jt.UserWindowInfo.name,this.gdprLevel=Jt.UserWindowInfo.gdprLevel,this.personalization=Jt.UserWindowInfo.personalization}}},35225:(Ue,W,d)=>{"use strict";d.d(W,{$1L:()=>l.$1L,$_D:()=>l.$_D,BAK:()=>l.BAK,BEl:()=>l.BEl,Bhf:()=>l.Bhf,EBD:()=>l.EBD,Fdg:()=>l.Fdg,GSb:()=>l.GSb,GoL:()=>l.GoL,H9T:()=>l.H9T,HBm:()=>l.HBm,HOo:()=>l.HOo,Hgm:()=>l.Hgm,HjG:()=>l.HjG,IWs:()=>l.IWs,JWD:()=>l.JWD,LCb:()=>l.LCb,MCB:()=>l.MCB,Mwe:()=>l.Mwe,N0J:()=>l.N0J,O67:()=>l.O67,OCG:()=>l.OCG,OOF:()=>l.OOF,Osi:()=>l.Osi,Pk9:()=>l.Pk9,Q2O:()=>l.Q2O,QF:()=>l.QF,QQA:()=>l.QQA,RX8:()=>n.RX,RXY:()=>l.RXY,RgL:()=>l.RgL,RsW:()=>l.RsW,Ssl:()=>l.Ssl,T80:()=>l.T80,Tv4:()=>l.Tv4,Txn:()=>n.Tx,U1f:()=>l.U1f,Uqt:()=>l.Uqt,Uu$:()=>l.Uu$,V_v:()=>l.V_v,Xci:()=>l.Xci,YDY:()=>l.YDY,YRL:()=>l.YRL,Yjq:()=>l.Yjq,Yno:()=>l.Yno,Zhy:()=>l.Zhy,ZpH:()=>l.ZpH,_aO:()=>l._aO,_b3:()=>l._b3,_o$:()=>l._o$,aa0:()=>l.aa0,ay7:()=>l.ay7,c4O:()=>l.c4O,duU:()=>l.duU,eK6:()=>l.eK6,fbu:()=>l.fbu,gvg:()=>l.gvg,iQN:()=>l.iQN,iVs:()=>n.iV,jgD:()=>p.j,kKp:()=>l.kKp,kQl:()=>l.kQl,kSA:()=>l.kSA,key:()=>l.key,mTv:()=>l.mTv,mUs:()=>l.mUs,p2o:()=>l.p2o,px4:()=>l.px4,qH9:()=>l.qH9,sKj:()=>l.sKj,t4p:()=>l.t4p,uKc:()=>l.uKc,uXT:()=>l.uXT,uxn:()=>l.uxn,vhU:()=>l.vhU,w7B:()=>l.w7B,war:()=>l.war,xkk:()=>l.xkk,yEy:()=>l.yEy,zTU:()=>l.zTU});var n=d(88610),l=d(87687),p=d(95346)},95346:(Ue,W,d)=>{"use strict";d.d(W,{j:()=>ue});var n=d(57258),l=d(26513),p=d(35146),m=d(31315),_=d(3496),P=d(43848),v=d(75707),O=d(65706),S=d(83915),y=d(14714),r=d(91384),i=d(8282),a=d(55833),h=d(26875),c=d(3567),T=d(78812),A=d(74931),L=d(88610),x=d(87687),V=d(17698),D=d(32727),F=d(44098),I=d(28711),k=d(14331),R=d(68868),G=d(70710),Y=d(58527),K=d(43354),$=d(72945),ee=d(14709),J=d(90929),z=d(17901),te=d(14354),X=d(66974),re=d(7703);const ge="gfnTelemetry",oe={cmsId:null,shortName:"",appLaunchMode:I.NG.Default,launchSource:x.vhU.Unknown,sdkClient:""},xe="telemetrySessionId";let ue=(()=>{var N;class se{constructor(Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt,qt,ye,Re){this.loggingService=Z,this.appConfig=de,this.sharedStorageService=ae,this.telemetryService=pe,this.systemInfoService=_e,this.ipcService=ke,this.appConfigParams=De,this.gfnsdkService=Me,this.pwaService=je,this.router=$e,this.guestModeHelperService=Oe,this.deeplinkHelper=gt,this.inputModalityService=qt,this.ngZone=ye,this.audioPlayService=Re,this.enableSoundNotification=!1,this.HIDInfo=void 0,this.clientType=x.sKj.Unknown,this.deviceIdSetSubject=new n.m(1),this.sendAppLaunchTelemetrySubject=new l.t(!1),this.streamerTelemetryConfig=oe,this.isBrowserClient=!1,this.isGpuEventSent=!1,this.lastClickInputSource=x.UJ3.Unknown,this.clientVersion="",this.logger=this.loggingService.getLogger("telemetry-util.service"),this.enableSoundNotification=!!de?.featureEnablement?.enableSoundNotification,this.setClientType((0,F.I2)(this.router.url)?F.td.Streamer:F.td.Mall),this.isBrowserClient=c.zk.isBrowserPlatform()}init(Z){this.clientVersion=Z,this.initialize().subscribe(de=>{this.logger.info("Successfully generated and stored device id"),this.deviceIdSetSubject.next(),this.deviceIdSetSubject.complete()},de=>{this.logger.error("Error fetching deviceId: ",de)})}initializeAudioTelemetry(){this.enableSoundNotification&&this.audioPlayService.getAudioTelemetryData().subscribe(Z=>{this.logger.info("Event received from audio service : ",Z),this.sendAudioTelemetry(Z)})}sendAudioTelemetry(Z){this.telemetryService.push(new x.h8t({scenario:Z.eventScenario??"",status:this.transformToEventStatus(Z.eventStatus),errorDetails:(0,D.AA)(Z.errorDetails,T._Y)}))}transformToEventStatus(Z){return x.fbu[c.Hf[Z]]}restoreTelemetrySessionId(){null!==window.sessionStorage.getItem(xe)&&(this.telemetryService.updateTelemetrySessionId(window.sessionStorage.getItem(xe)),window.sessionStorage.removeItem(xe))}saveTelmetrySessionIdOnLoginAndLogout(Z){this.logger.info("Subscribing to Login initiated notification"),Z.subscribe(de=>{this.logger.info("Received notification for ",de),window.sessionStorage.setItem(xe,this.telemetryService.telemetrySessionId),this.logger.info("Completed saving telemetrySessionId")})}initialize(){this.restoreTelemetrySessionId(),this.ngZone.runOutsideAngular(()=>{this.inputModalityService.inputModalityChanged$.subscribe(de=>{switch(de){case R.M.Keyboard:this.lastClickInputSource=x.UJ3.Keyboard;break;case R.M.Gamepad:this.lastClickInputSource=x.UJ3.Gamepad;break;case R.M.Mouse:this.lastClickInputSource=x.UJ3.Mouse;break;case R.M.Touch:this.lastClickInputSource=x.UJ3.Touch}})});const Z=this.systemInfoService.getSystemInfo([c.Lu.DeviceId,c.Lu.Platform,c.Lu.OSVersion,c.Lu.VendorName,c.Lu.SystemName,c.Lu.DeviceType,c.Lu.BrowserName]);return(0,p.yU)(this.systemInfoService.getDeviceOSType(),Z).pipe((0,v.ZZ)(([de,ae])=>{const pe={deviceOS:de,clientType:this.isBrowserClient?L.Vd.Browser:L.Vd.Native,clientVer:this.clientVersion,systemInfo:ae,integrationId:this.getIntegrationId(),productName:this.appConfig.jsEvents.productName,productVersion:(0,G.C)(this.appConfig)};return this.initCommonData(pe)}))}initCommonData(Z){const de=Z.systemInfo;return this.telemetryService.setEventsCommonData({clientVer:Z.clientVer,deviceId:de.DeviceId,platform:this.getCommonPlatformType(de.Platform),clientType:Z.clientType,clientVariant:this.getCommonClientVariant(this.appConfig.build.variant),deviceOS:Z.deviceOS,deviceOSVersion:de.OSVersion,deviceMake:de.VendorName||c.Qe,deviceModel:de.SystemName||c.Qe,deviceType:de.DeviceType||c.Qe,integrationId:Z.integrationId,browserType:de.BrowserName,productName:Z.productName||c.Qe,productVersion:Z.productVersion||c.Qe},!1),this.sharedStorageService.readBlock(ge).pipe((0,v.ZZ)(ae=>(ae.clientVersion=this.appConfig.build.version,ae.deviceId=de.DeviceId,this.sharedStorageService.writeBlock(ge,ae))))}setTelemetryConfig(Z){this.streamerTelemetryConfig=Z??oe,this.sendSystemInfoTelemetry()}getIntegrationId(){let Z=c.Qe;const de=this.deeplinkHelper.getUpdatedPartnerId((0,F.BS)(k.aj.PartnerId));return(this.guestModeHelperService.isGuestMode||this.deeplinkHelper.isSpecialAffiliatePartner(de))&&(Z=de||c.Qe),Z}getPlatformType(Z){switch(Z){case"Mac":return x.YwK.Mac;case"Windows":return x.YwK.Windows;case"Android":case"Shield":return x.YwK.Android;default:return x.YwK.Unknown}}getCurrentUiMode(Z){switch(Z){case A.Or.Common.Systeminfo.UiModeEnum.Desktop:return x.zMM.Desktop;case A.Or.Common.Systeminfo.UiModeEnum.Mobile:return x.zMM.Mobile;default:return x.zMM.Unknown}}getCommonClientVariant(Z){switch(Z){case"ibeta":return L.Ow.iBeta;case"release":return L.Ow.Release;default:return L.Ow.Undefined}}getCommonPlatformType(Z){return c.zk.isBrowserPlatform()?x.YwK.Web:"Windows"===Z?"Win":Z}getProductName(){return this.appConfig.jsEvents.productName}getDisplayDetails(Z){const de=[];for(let ae=0;ae<L._Y.MaxDisplay;ae++){const pe={physicalRes:Z&&Z[ae]&&Z[ae].PhysicalResolution||"",logicalRes:Z&&Z[ae]&&Z[ae].LogicalResolution||"",refreshRate:Z&&Z[ae]&&parseInt(Z[ae].RefreshRate,10)||0,displayNumber:ae};de.push(pe)}return de}getGpuDetails(Z){const de=[];for(let ae=0;ae<L._Y.MaxGpu;ae++){const pe={gpuLongName:"",gpuVDSR:""};pe.gpuLongName=Z&&Z?.GPUData&&Z?.GPUData[ae]&&Z?.GPUData[ae]?.LongGPUName||"",pe.gpuVDSR=Z&&Z?.GPUData&&Z?.GPUData[ae]&&Z?.GPUData[ae]?.VDSR||"",de.push(pe)}return de}getApiStatus(Z){return"Success"===Z?x.L15.Success:x.L15.Failure}getPluginName(Z){if("SystemInfo"===Z)return x.Tb$.SystemInfo}getDiskMediumType(Z){switch(Z){case"SolidState":return x.LUK.SolidState;case"Rotational":return x.LUK.Rotational;default:return x.LUK.Unknown}}getClientVariantType(Z){switch(Z){case"ibeta":return x.tdz.IBeta;case"release":return x.tdz.Release;case"autoplay":return x.tdz.Autoplay;default:return x.tdz.Dev}}getDiskInfo(Z){const de=[];for(let ae=0;ae<L._Y.MaxDisk;ae++){const pe={FreeSpace:0,MediumType:"",TotalSize:0};pe.FreeSpace=Z&&Z[ae]&&Z[ae].FreeSpace&&parseInt(Z[ae].FreeSpace,10)||0,pe.MediumType=Z&&Z[ae]&&this.getDiskMediumType(Z[ae].MediumType)||x.LUK.Unknown,pe.TotalSize=Z&&Z[ae]&&Z[ae].TotalSize&&parseInt(Z[ae].TotalSize,10)||0,de.push(pe)}return de}getInputDeviceInfo(Z,de){let ae;switch(Z){case x.yj4.Keyboard:ae=de.Keyboard;break;case x.yj4.Mouse:ae=de.Mouse;break;case x.yj4.GamePad:ae=de.GamePad;break;case x.yj4.Joystick:ae=de.Joystick}return ae}getNetworkType(Z){let de;switch(Z){case c.Sd.WiFiUnknown:de=x.w7B.Wifi_Unknown;break;case c.Sd.WiFi6_0:de=x.w7B.Wifi_6_0;break;case c.Sd.WiFi5_0:de=x.w7B.Wifi_5_0;break;case c.Sd.WiFi2_4:de=x.w7B.Wifi_2_4;break;case c.Sd.Ethernet:de=x.w7B.Ethernet;break;case c.Sd.Other:de=x.w7B.Other;break;default:de=x.w7B.Unknown}return de}setClientType(Z){this.clientType=Z===F.td.Mall?x.sKj.MallClient:Z===F.td.Streamer?x.sKj.StreamingClient:x.sKj.Unknown}getClientType(){return this.clientType}parseAndSendInputDeviceTelemetry(Z,de){for(let ae=0;ae<L._Y.MaxInputDevicePerType;ae++)if(!(0,h.isUndefined)(de[ae])){const pe={clientType:this.getClientType(),inputDevice:x.yj4[Z],manufacturer:de[ae].manufacturer,versionNumber:de[ae].versionNumber,productID:de[ae].productID,reportIntervalMicroSeconds:isNaN(parseInt(de[ae].reportIntervalUs,10))?0:parseInt(de[ae].reportIntervalUs,10),transport:de[ae].transport,vendorID:de[ae].vendorID},_e=new x.fbL(pe);this.telemetryService.push(_e)}}sendHIDTelemetry(){if((0,h.isUndefined)(this.HIDInfo))this.logger.info("HID info is undefined");else for(const Z in x.yj4)if(this.HIDInfo.hasOwnProperty(x.yj4[Z])){const de=this.getInputDeviceInfo(x.yj4[Z],this.HIDInfo);this.parseAndSendInputDeviceTelemetry(x.yj4[Z],de)}}sendGpuInfoTelemetry(Z){let de;if(Z?de={gpuProduct:Z?.GPU?.PrimaryGPUDriverInfo?.GpuProduct||"",gpuRevision:Z?.GPU?.PrimaryGPUDriverInfo?.GpuRevision||"",gpuBuildNumHi:Z?.GPU?.PrimaryGPUDriverInfo?.GpuBuildNumHi||"",gpuBuildNumLo:Z?.GPU?.PrimaryGPUDriverInfo?.GpuBuildNumLo||"",gpuDriverName:Z?.GPU?.PrimaryGPUDriverInfo?.GpuDriverName||"",gpuDetails:this.getGpuDetails(Z.GPU)}:this.logger.error("No GPU Information available"),(0,h.isUndefined)(de))this.logger.info("GpuInfo event is undefined");else{const ae=new x.i6T(de);this.telemetryService.push(ae),this.isGpuEventSent=!0}}sendApiStatusTelemetry(Z){let de;if(Z?de={apiName:Z.ApiName||"",subApiName:Z.SubApiName||"",errorMessage:Z.ErrorMessage||"",pluginName:this.getPluginName(Z.PluginName),status:this.getApiStatus(Z.ApiStatus)}:this.logger.error("No System Information"),(0,h.isUndefined)(de)||this.getPluginName(Z.PluginName)!==x.Tb$.SystemInfo)this.logger.info("API status info is undefined");else{const ae=new x.ddl(de);this.telemetryService.push(ae)}}prepareSystemInfoTelemetryObject(Z,de){let pe,_e=[];return this.sendApiStatusTelemetry(Z),this.isGpuEventSent||this.sendGpuInfoTelemetry(Z),Z?(_e=this.getDiskInfo(Z.Disk),Z.Display=Z.Display.slice(0,3),Z.GPU&&(Z.GPU.GPUData=Z.GPU?.GPUData?.slice(0,2)??[]),this.HIDInfo=Z.HID,pe={vendorName:Z.VendorName||"",systemName:Z.SystemName||"",userDefaultUILanguage:Z.UserDefaultUILanguage||"",osName:Z.OSName||"",osVersion:Z.OSVersion||"",physicalMemoryCapacity:parseInt(Z.PhysicalMemoryCapacity,10)||0,processorArchitecture:Z.ProcessorArchitecture||"",cpuName:Z.CPUName||"",networkType:Z.Network&&Z.Network.NetworkType?this.getNetworkType(Z.Network.NetworkType):x.w7B.Unknown,gpuCount:Z.GPU?.GPUData?.length||0,gpu0LongName:Z.GPU&&Z.GPU?.GPUData&&Z.GPU?.GPUData[0]&&Z.GPU?.GPUData[0]?.LongGPUName||"",gpu1LongName:Z.GPU&&Z.GPU?.GPUData&&Z.GPU?.GPUData[1]&&Z.GPU?.GPUData[1]?.LongGPUName||"",diskCount:Z.Disk.length||0,disk0FreeSpace:_e[0].FreeSpace||0,disk0MediumType:_e[0].MediumType||x.LUK.Unknown,disk0TotalSize:_e[0].TotalSize||0,disk1FreeSpace:_e[1].FreeSpace||0,disk1MediumType:_e[1].MediumType||x.LUK.Unknown,disk1TotalSize:_e[1].TotalSize||0,disk2FreeSpace:_e[2].FreeSpace||0,disk2MediumType:_e[2].MediumType||x.LUK.Unknown,disk2TotalSize:_e[2].TotalSize||0,displayCount:Z.Display.length||0,displayDetails:this.getDisplayDetails(Z.Display),routerMacAddress:Z.Network&&Z.Network.RouterMACAddress?Z.Network.RouterMACAddress.substring(0,8).toUpperCase():"Unknown",platform:this.getPlatformType(Z.Platform)||x.YwK.Unknown,clientVariant:this.getClientVariantType(this.appConfig.build.variant),launchSource:this.getLaunchSource(),userAgent:Z.BrowserName+" "+Z.BrowserVersion||c.Qe,dxVersion:Z.DxVersion||"",browserName:Z.BrowserName||c.Qe,browserVersion:Z.BrowserVersion||c.Qe,confidenceInBrowser:c.zk.isNativeLikePlatform()?99:Z.ConfidenceInBrowser,isBrowserForged:c.zk.isCefPlatform()?x.T80.UNDEFINED:Z.IsBrowserForged?x.T80.TRUE:x.T80.FALSE,systemInfoGuid:de,clientUrl:this.isBrowserClient?window.location.host+window.location.pathname:"",currentUiMode:this.getCurrentUiMode(Z.CurrentUiMode)}):this.logger.error("No System Information"),pe}getSystemInformationForTelemetry(){let Z=c.lo;return c.zk.isCefPlatform()||(Z=Z.filter(de=>de!==c.Lu.DxVersion)),(0,m.zV)([this.systemInfoService.getSystemInfo(Z),this.systemInfoService.getSystemInfoGuid()]).pipe((0,O.s)(1),(0,S.T)(([de,ae])=>this.prepareSystemInfoTelemetryObject(de,ae)))}getLaunchSource(){return this.gfnsdkService.isThisAGFNSDKSession()&&!this.guestModeHelperService.isGuestMode?this.streamerTelemetryConfig.sdkClient||"Unknown":this.streamerTelemetryConfig.launchSource===x.vhU.External?"External":this.streamerTelemetryConfig.launchSource===x.vhU.GeForceNOW?"Mall":this.streamerTelemetryConfig.launchSource===x.vhU.Deeplink?"Deeplink":"Unknown"}sendLaunchUiTelemetry(){const Z=new x.Ixb({clientType:this.getClientType(),type:x.kSA.LaunchUI});this.telemetryService.push(Z)}sendSystemInfoTelemetry(){this.sharedSystemInfoSub||(this.sharedSystemInfoSub=(0,_.O)(this.appConfig.jsEvents.systemInfoEventDelay).pipe((0,v.ZZ)(()=>this.getSystemInformationForTelemetry()),(0,y.W)(Z=>(this.logger.error("Error when getting system info: ",Z),(0,P.of)(null))),(0,r.M)(Z=>{if((0,h.isUndefined)(Z))this.logger.error("No system information found for telemetry");else{const de=new x.Rhb(Z);this.telemetryService.push(de),this.sendHIDTelemetry()}}),(0,i.u)())),this.sharedSystemInfoSub.subscribe()}sendSDKTelemetry(){this.gfnsdkService.getTelemetryData().subscribe(Z=>{this.logger.info("Parsing sdk client events for ",Z.platformName),this.logger.info(`Sending ${Z.checkGFNItems.length} CheckGFN events`),this.logger.info(`Sending ${Z.streamNowButtonClickItems.length} StreamNowButtonClick events`);for(const de of Z.checkGFNItems)this.telemetryService.push(new x.$cp({status:de.status,timeTaken:de.timeTaken,gfnSDKVersion:de.version,gfnDLLVersion:de.dllVersion,originalTimestamp:de.originalTimestamp,originalSource:Z.platformName||"Unspecified",originalCmsId:de.originalCmsId,originalShortname:de.originalShortname,originalAuthMethod:de.originalAuthMethod}));for(const de of Z.streamNowButtonClickItems)this.logger.info("StreamNowButtonClick event found",this.streamerTelemetryConfig),this.telemetryService.push(new x.gho({status:de.status,timeTaken:de.timeTaken,gfnSDKVersion:de.version,cmsId:""+this.streamerTelemetryConfig.cmsId,gameShortName:this.streamerTelemetryConfig.shortName||"",gfnDLLVersion:de.dllVersion,originalTimestamp:de.originalTimestamp,originalSource:Z.platformName||"Unspecified",originalCmsId:de.originalCmsId,originalShortname:de.originalShortname,originalAuthMethod:de.originalAuthMethod,timeRemaining:de.timeRemaining,hasPartnerData:de.hasPartnerData?x.O67.Yes:x.O67.No,hasPartnerSecureData:de.hasPartnerSecureData?x.O67.Yes:x.O67.No}));this.gfnsdkService.clearTelemetryData(Z)})}sendPwaTelemetry(){this.pwaService.onPWAModeChange.pipe((0,O.s)(1),(0,r.M)(Z=>{if(Z){this.logger.info("Sending PWA launch event");const de=new x.Ixb({clientType:this.getClientType(),type:x.kSA.LaunchPwaUI});this.telemetryService.push(de)}})).subscribe()}sendOfflineLaunchTelemetry(){this.pwaService.checkForOfflineLaunch().subscribe(Z=>{if(Z){this.logger.info("Sending Offline Launch Event");const de=new x.Ixb({clientType:this.getClientType(),type:x.kSA.CustomOfflinePage});this.telemetryService.push(de)}else this.logger.info("No offline data present")})}sendStorageUsageEvent(){if(!this.isBrowserClient)return;const Z=navigator.storage;Z?.estimate?Z.estimate().then(de=>{this.logger.info("Sending storage usage metrics");const ae=new x.deY({totalQuota:de.quota??0,totalUsage:de.usage??0,cacheUsage:de.usageDetails?.caches??0,indexedDBUsage:de.usageDetails?.indexedDB??0,serviceWorkerRegistrationsUsage:de.usageDetails?.serviceWorkerRegistrations??0});this.telemetryService.push(ae)}).catch(de=>{this.logger.error("Failed to obtain storage estimate:",de)}):this.logger.info("StorageManager#estimate is not supported. Skipping sending storage metrics")}sendViewportTelemetry(){const Z=new x.J64({windowInnerHeight:window?.innerHeight??-1,windowInnerWidth:window?.innerWidth??-1,visualViewportHeight:window?.visualViewport?.height??-1,visualViewportWidth:window?.visualViewport?.width??-1,screenOrientationType:window.matchMedia("(orientation: landscape)").matches?x.t4p.Landscape:x.t4p.Portrait});this.telemetryService.push(Z)}sendLaunchTimeTelemetry(){this.deviceIdSetSubject.subscribe(()=>{const Z=this.telemetryService.getLaunchUiEventSent();Z||(this.sendLaunchUiTelemetry(),this.sendSystemInfoTelemetry(),this.sendSDKTelemetry(),this.sendPwaTelemetry(),this.sendOfflineLaunchTelemetry(),this.sendStorageUsageEvent(),this.initializeAudioTelemetry(),this.sendViewportTelemetry(),this.telemetryService.setLaunchUiEventSent(!0)),this.sendAppLaunchTelemetrySubject.next(!Z)})}getAppLaunchTelemetryObservable(){return this.sendAppLaunchTelemetrySubject.asObservable()}getPlatform(){return this.systemInfoService.getSystemInfo([c.Lu.Platform]).pipe((0,S.T)(Z=>this.getPlatformType(Z.Platform)),(0,a.t)(1))}getClientVariant(){return this.getClientVariantType(this.appConfig.build.variant)}sendLoginTelemetry(Z,de,ae,pe){const _e=new x.BAK({clientType:this.getClientType(),currentScreen:ae,userAction:de,status:Z?x.fbu.Success:x.fbu.LoginFailed,errorDetails:Z.toString(),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(_e,pe)}triggerExceptionInfoUpload(Z){Z.logsFeedbackId=this.telemetryService.telemetrySessionId;const de={type:V.kN.UploadExceptionInfo,content:JSON.stringify(Z),sender:this.getClientType()===x.sKj.MallClient?V.pQ.GfnMall:V.pQ.GfnStreamer,recipient:V.pQ.GfnUpdater};this.logger.info("Sending IPC message:",de),this.ipcService.pushMessage(de).subscribe(ae=>this.logger.info("Exception info upload triggered: ",ae),ae=>this.logger.error("Error triggering exception info upload: ",ae))}getXRequestIdForHttpEvent(Z){let de="";return Z&&Z.config&&Z.config.headers&&Z.config.headers["x-request-id"]&&(de=Z.config.headers["x-request-id"]),de}sendUiActionEvent(Z,de){const ae=new x.uQS({actionTaken:Z,uiVariant:de});this.telemetryService.push(ae)}sendJoinTodayAlertDialogUiAction(Z){let de;switch(Z){case I.o.Close:de=x.kQl.Close;break;case I.o.Join:de=x.kQl.Join;break;case I.o.Login:de=x.kQl.Login}de&&this.sendUiActionEvent(de,x.Pk9.Standard)}getJoinTodayAlertDialogHierarchy(Z,de){let ae;switch(Z){case x.MCB.ScreenEvidencePanel:ae=de;break;case x.MCB.ScreenMarquee:ae=`${x.MCB.ScreenMallHome}`;break;default:ae=""}return ae&&(ae=`${ae}/${Z}`),ae}sendUserSessionEvent(Z,de,ae,pe,_e){const ke=_e||this.telemetryService.getScreen(),De=new x.BAK({currentScreen:ke,clientType:this.clientType,userAction:Z,status:de,errorDetails:(0,D.AA)(pe,T._Y),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(De,ae)}sendClickEvent(Z,de,ae,pe=!1,_e="",ke="",De){const Me=pe?`${this.telemetryService.getScreen()}/${ae}`:ae,je=new x.I0o({itemType:Z,itemLabel:de,hierarchy:Me||"",inputSource:this.lastClickInputSource,gameCampaignId:_e??"",additionalData:ke});this.telemetryService.push(je,null,De)}sendDragEvent(Z,de,ae,pe=!1){const _e=pe?`${this.telemetryService.getScreen()}/${ae}`:ae,ke=new x.Sx({itemType:Z,itemLabel:de,hierarchy:_e||""});this.telemetryService.push(ke)}sendPageLoadPerfEvent(Z,{viewDataLoadDuration:de=0,sectionNames:ae=["","","","",""],sectionDataLoadDurations:pe=[0,0,0,0,0],sectionTotalLoadDurations:_e=[0,0,0,0,0],imageLoadDuration:ke=-1,imageCount:De=-1,imageTransferSize:Me=-1,usedJsHeapSize:je=-1}){const $e=new x.Osh({viewName:Z,viewDataLoadDuration:Math.round(de),sectionOneName:ae[0],sectionOneDataLoadDuration:Math.round(pe[0]),sectionOneTotalLoadDuration:Math.round(_e[0]),sectionTwoName:ae[1],sectionTwoDataLoadDuration:Math.round(pe[1]),sectionTwoTotalLoadDuration:Math.round(_e[1]),sectionThreeName:ae[2],sectionThreeDataLoadDuration:Math.round(pe[2]),sectionThreeTotalLoadDuration:Math.round(_e[2]),sectionFourName:ae[3],sectionFourDataLoadDuration:Math.round(pe[3]),sectionFourTotalLoadDuration:Math.round(_e[3]),sectionFiveName:ae[4],sectionFiveDataLoadDuration:Math.round(pe[4]),sectionFiveTotalLoadDuration:Math.round(_e[4]),totalViewLoadDuration:Math.round(_e[4]),imageLoadDuration:Math.round(ke),imageCount:Math.round(De),imageTransferSize:Math.round(Me),usedJsHeapSize:Math.round(je)});this.telemetryService.push($e)}sendNavigationPerfEvent(){const Z=window.performance.timing,de=new x.zcd({domainLookupDuration:Z.domainLookupEnd-Z.domainLookupStart,connectDuration:Z.connectEnd-Z.connectStart,requestResponseDuration:Z.responseEnd-Z.requestStart,responseDuration:Z.responseEnd-Z.responseStart,timeToFirstByte:Z.responseStart-Z.requestStart,pageRenderDuration:Z.domComplete-Z.domLoading,pageLoadDuration:Z.loadEventEnd-Z.fetchStart,redirectDuration:Z.redirectEnd-Z.redirectStart});this.telemetryService.push(de)}sendDeeplinkShareEvent(Z,de,ae=x.LQP.None,pe=""){const _e=new x.Tjv({queryParamsString:Z,shareType:de,serviceName:pe,error:ae});this.telemetryService.push(_e)}sendDeeplinkSourceEvent(Z,de){const ae=new x.PvP(Z);this.telemetryService.push(ae,void 0,de)}sendPopUpDialogShownEvent(Z){const de=new x.xEK({name:Z});this.telemetryService.push(de)}sendPopUpDialogClosedEvent(Z,de,ae=0,pe=0,_e=x.T80.FALSE,ke=x.T80.FALSE){const De=new x.cPM({name:Z,exitTriggerPoint:de,totalMs:ae,inWindowClicks:pe,scrolled:_e,checkBoxChecked:ke});this.telemetryService.push(De)}sendClipboardPasteEvent(Z){const de=new x.$sO({clientClipboardRead:Z.clientClipboardRead,clipboardDataSent:Z.clipboardDataSent,clipboardDataLength:Z.clipboardDataLength,streamSessionId:Z.streamSessionId||"",streamSubSessionId:Z.streamSubSessionId||"",requestId:Z.requestId||""});this.telemetryService.push(de)}sendPlaytesterSessionEvent(Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt){const qt=new x.vWR({userAction:Z,status:de,sessionId:ae??"",streamSessionId:pe??"",gameDeveloperName:_e??"",gameName:ke??"",gameBuildNumber:De??"",cmsId:Me??"",webcamName:je??"",microphoneName:$e??"",microphoneTested:Oe??x.O67.No,errorInfo:gt??""});return this.telemetryService.pushWithPromise(qt,null,{immediateRequest:!0})}}return(N=se).\u0275fac=function(Z){return new(Z||N)(Y.KVO(c.J6),Y.KVO(K.V),Y.KVO($.yQ),Y.KVO(T.H0),Y.KVO(c.zW),Y.KVO(V.Uj),Y.KVO(ee.aT),Y.KVO(J.DL),Y.KVO(z.SL),Y.KVO(te.Ix),Y.KVO(X.x),Y.KVO(re.w),Y.KVO(R.p),Y.KVO(Y.SKi),Y.KVO(c.aP))},N.\u0275prov=Y.jDH({token:N,factory:N.\u0275fac,providedIn:"root"}),se})()},30691:(Ue,W,d)=>{"use strict";d.d(W,{L:()=>p,U:()=>m});var n=d(26875),p=function(_){return _[_.Greater=0]="Greater",_[_.Lesser=1]="Lesser",_[_.Equal=2]="Equal",_}(p||{});class m{constructor(P,v="."){if(this.versionStr=P,this.delimiter=v,(0,n.isNil)(P)||0===P.length)throw new Error("invalid version string: "+P);this.versionComponents=[];const O=P.split(v);for(const S of O)this.versionComponents.push(+S)}static getPaddedFourOctetVersion(P,v="."){if(!P)return P;const O=P.split(v);for(let y=0;y<4-O.length;y++)O.push("0");return O.reduce((y,r)=>`${y}.${r}`)}compare(P){const v=Math.min(this.versionComponents.length,P.versionComponents.length);for(let O=0;O<v;O++)if(this.versionComponents[O]!==P.versionComponents[O])return this.versionComponents[O]>P.versionComponents[O]?p.Lesser:p.Greater;return this.versionComponents.length>P.versionComponents.length?p.Lesser:this.versionComponents.length<P.versionComponents.length?p.Greater:p.Equal}compareMajorVersion(P){const v=Math.min(this.versionComponents.length,P.versionComponents.length);for(let O=0;O<v-1;O++)if(this.versionComponents[O]!==P.versionComponents[O])return this.versionComponents[O]>P.versionComponents[O]?p.Lesser:p.Greater;return this.versionComponents.length>P.versionComponents.length?p.Lesser:this.versionComponents.length<P.versionComponents.length?p.Greater:p.Equal}toString(){return this.versionStr}}},18587:(Ue,W,d)=>{"use strict";d.d(W,{F:()=>I});var n=d(26875),l=d(57258),p=d(93181),m=d(31315),_=d(12532),P=d(43848),v=d(892),O=d(83915),S=d(75707),y=d(14714),r=d(10174),i=d(78812),a=d(74931),h=d(3567),g=d(35225),c=d(8094),T=d(90929),A=d(32727),L=d(58527),x=d(97152),V=d(72945),D=d(24682),F=d(98231);let I=(()=>{var k;class R{constructor(Y,K,$,ee,J,z,te,X,re){this.appConfig=Y,this.loggingService=K,this.sharedStorageService=$,this.idmService=ee,this.telemetryService=J,this.telemetryUtilService=z,this.gfnSdkService=te,this.idmIpcService=X,this.bridgeService=re,this.blockName="userConsentInfo",this.userConsentExpirationHours=24,this.isClientGdprConsentSet=!1,this.isManualLogin=null,this.userConsentSubject=new l.m(1),this.deviceConsentSubject=new l.m(1),this.logger=this.loggingService.getLogger("user-consent.service"),this.initLoginStatusSubscription(),this.sendEventDataElementsToRagnarok()}initUserConsent(){this.sharedStorageService.readBlock(this.blockName).pipe((0,O.T)(Y=>!(0,n.isEmpty)(Y)&&((0,n.isNil)(Y.userId)||(0,n.isEmpty)(Y.userId)?(this.logger.event("no stored consent setDefaultClientConsent",Y.userConsent),this.telemetryService.setDefaultClientConsent(Y.userConsent)):this.telemetryService.setUserConsent([Y]),!0))).subscribe(Y=>{Y?this.logger.info("Consent read from userConsentInfo block sent to jsevents for initialization."):this.logger.error("No client consent sent to jsevents.")},Y=>{this.logger.error("Reading UserConsentInfo block failed with error: ",Y)})}writeUserConsent(Y){return this.sharedStorageService.writeBlock(this.blockName,Y,!0)}getDeviceConsent$(){return this.deviceConsentSubject.asObservable()}getUserConsent$(){return this.userConsentSubject.asObservable()}fetchAndUpdateUserConsent(Y){return(0,p.p)([this.sharedStorageService.readBlock(this.blockName),this.telemetryService.getDefaultClientConsentObserable()]).pipe((0,S.ZZ)(([K,$])=>(K=this.refreshExpiryTime(K),this.updateUserConsentTelemetry(K,Y),this.logger.info("Send app launch telemetry for valid userId"),this.telemetryUtilService.sendLaunchTimeTelemetry(),this.setExpiryIntervalSubscription(Y),this.userConsentSubject.next(K.userConsent),this.writeUserConsent(K))))}sendEventDataElementsToRagnarok(){h.zk.isBrowserPlatform()&&(this.telemetryService.getCommonData$().pipe((0,S.ZZ)(Y=>{const K={commonData:Y,config:{server:this.appConfig.jsEvents.server,version:this.appConfig.jsEvents.version}};return K.commonData.sentTs=void 0,K.commonData.events=void 0,this.bridgeService.executeCommand(a.Ts.Gfn.Streaming.UpdateEventDataElements,K)})).subscribe(),(0,m.zV)([this.getDeviceConsent$(),this.getUserConsent$()]).pipe((0,S.ZZ)(([Y,K])=>{const $={commonData:{}};return $.commonData.deviceGdprFuncOptIn=Y.functional,$.commonData.deviceGdprTechOptIn=Y.technical,$.commonData.deviceGdprBehOptIn=Y.behavioral,$.commonData.gdprFuncOptIn=K.functional,$.commonData.gdprTechOptIn=K.technical,$.commonData.gdprBehOptIn=K.behavioral,this.bridgeService.executeCommand(a.Ts.Gfn.Streaming.UpdateEventDataElements,$)})).subscribe())}createConsentBlock(Y){const K=(0,n.merge)({},i.XZ);return K.userConsent=Y,K}createConsentBlockWithAuthInfo(Y,K){const $=(0,n.merge)(i.XZ,{userId:Y.userId,externalUserId:Y.externalUserId,idpId:Y.idpId});return $.userConsent=K,$}initLoginStatusSubscription(){this.idmService.cachedUser.pipe((0,S.ZZ)(Y=>(this.isManualLogin=!Y.data.isAuthenticated,(0,m.zV)([this.gfnSdkService.getAuthInfo(),this.idmService.accountStatusChanged]).pipe((0,S.ZZ)(([$,ee])=>{let J=ee;if(!J.isAuthenticated&&this.checkIntervalSubscription)this.checkIntervalSubscription.unsubscribe();else if(J.isAuthenticated||$.authType===T.hT.JWT){let z={userId:J.userId,externalUserId:J.externalId,idpId:J.idpId};return $.authType===T.hT.JWT&&(z={userId:$.userId,externalUserId:$.externalUserId,idpId:$.idpId},J={...J,userId:$.userId,externalId:$.externalUserId,idpId:$.idpId}),(""===J.idpId||(0,n.isNil)(J.idpId))&&(z={userId:i.oX.Undefined,externalUserId:J.userId,idpId:i.oX.Undefined}),this.telemetryService.setEventsCommonData(z,!0),this.fetchAndUpdateUserConsent(J)}return J.isAuthenticated?_.w:this.updateUserConsentInfoOnLogout()})))),(0,y.W)(Y=>(this.logger.error("Error in getting/setting consent data on user refresh, Setting to default",Y),(0,P.of)(!1)))).subscribe(Y=>{this.logger.info("Updated user consent result successfully:",Y),this.idmIpcService.sendLoginStatusChange()})}isExpired(Y){let K=!0;const $=new Date;if(Y&&Y.expiryTime){const ee=new Date(Y.expiryTime);this.logger.info("Expiry time "+ee+" now "+$),K=ee<$}return K}refreshExpiryTime(Y){if((0,n.isNil)(Y.expiryTime)||this.telemetryUtilService.getClientType()!==g.sKj.StreamingClient){const K=new Date;K.setDate(K.getDate()+1),Y.expiryTime=K.toISOString(),this.logger.event("LocalConsent expiryTime updated: ",Y)}return Y}updateUserConsentTelemetry(Y,K){K.isAuthenticated&&(Y.userConsent=(0,c.A$)(K),Y.userId=K.userId,Y.externalUserId=K.externalId,Y.idpId=K.idpId,this.telemetryService.setUserConsent([Y]))}checkConsentInterval(){return this.sharedStorageService.readBlock(this.blockName).pipe((0,S.ZZ)(Y=>{if(!(0,n.isEmpty)(Y))return this.isExpired(Y)?this.idmService.refreshUser().pipe((0,r.u)(!0)):(this.logger.info("Consent data is still valid"),this.updateUserConsentTelemetry(Y,this.currentUser),_.w)}))}setExpiryIntervalSubscription(Y){if(this.currentUser=Y,this.telemetryUtilService.getClientType()!==g.sKj.StreamingClient){const K=(0,v.Y)(60*this.userConsentExpirationHours*60*1e3);this.checkIntervalSubscription=K.pipe((0,S.ZZ)(()=>this.checkConsentInterval())).subscribe()}else this.logger.info("Not checking consent info on regular intervals for streamer")}setUpJarvisUserChangedSubscription(){this.idmService.accountStatusChanged.subscribe(Y=>{!Y.isAuthenticated&&!this.telemetryService.getLaunchUiEventSent()&&(this.logger.info("No user present, send launch time telemetry for undefined userId"),this.telemetryUtilService.sendLaunchTimeTelemetry())})}setDefaultConsentData(Y){return this.logger.trace(A.N_.UserDetails,A.YD.UserInfo,"User consent is Behavioral:"+Y.behavioral+" Functional:"+Y.functional+" Technical:"+Y.technical),this.isClientGdprConsentSet?(this.logger.info("Client GDPR consent is already set."),(0,P.of)(!1)):(this.logger.event("client consent not yet set - setDefaultClientConsent",Y),this.telemetryService.setDefaultClientConsent(Y),this.setUpJarvisUserChangedSubscription(),this.isClientGdprConsentSet=!0,this.deviceConsentSubject.next(Y),this.writeUserConsent(this.createConsentBlock(Y)))}setAnonUserConsentData(Y){return this.logger.event("client consent not yet set - setAnonUserConsentData",Y),this.telemetryService.setDefaultClientConsent(Y),this.setUpJarvisUserChangedSubscription(),this.isClientGdprConsentSet=!0,this.gfnSdkService.getAuthInfo().pipe((0,S.ZZ)(K=>this.writeUserConsent(this.createConsentBlockWithAuthInfo(K,Y))))}getAnonUserConsentData(){return this.sharedStorageService.readBlock(this.blockName).pipe((0,S.ZZ)(Y=>(0,P.of)(Y)))}updateUserConsentInfoOnLogout(){return this.sharedStorageService.readBlock(this.blockName).pipe((0,S.ZZ)(Y=>(0,n.isEmpty)(Y)?(this.logger.warn("UserConsentInfo section is empty in sharedstorage"),(0,P.of)(!1)):(Y.userConsent=i.bC,delete Y.userId,Y.externalUserId&&delete Y.externalUserId,Y.idpId&&delete Y.idpId,Y.expiryTime&&delete Y.expiryTime,this.userConsentSubject.next(Y.userConsent),this.writeUserConsent(Y))))}ngOnDestroy(){this.checkIntervalSubscription&&this.checkIntervalSubscription.unsubscribe()}}return(k=R).\u0275fac=function(Y){return new(Y||k)(L.KVO(x.Vk6),L.KVO(h.J6),L.KVO(V.yQ),L.KVO(D.k_),L.KVO(i.H0),L.KVO(g.jgD),L.KVO(T.DL),L.KVO(F.S),L.KVO(h.NZ))},k.\u0275prov=L.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),R})()},90895:(Ue,W,d)=>{"use strict";d.d(W,{yj:()=>y,rc:()=>n.rc,Me:()=>n.Me,yJ:()=>n.yJ,n9:()=>n.n9,zC:()=>n.zC,ZE:()=>n.ZE,u2:()=>n.u2,zy:()=>n.zy,VP:()=>n.VP,WC:()=>n.WC});var n=d(8094),l=d(80583),p=d(17053),m=d(35225),_=d(58527),P=d(3567),v=d(78812),O=function(r){return r.HaveNothing="HAVE_NOTHING",r.HaveMetadata="HAVE_METADATA",r.HaveCurrentData="HAVE_CURRENT_DATA",r.HaveFutureData="HAVE_FUTURE_DATA",r.HaveEnoughData="HAVE_ENOUGH_DATA",r}(O||{}),S=function(r){return r.NetworkEmpty="NETWORK_EMPTY",r.NetworkIdle="NETWORK_IDLE",r.NetworkLoading="NETWORK_LOADING",r.NetworkNoSource="NETWORK_NO_SOURCE",r}(S||{});let y=(()=>{var r;class i{constructor(h,g){this.telemetryService=g,this.mediaPlayExceptionSubject=new l.B7,this.logger=h.getLogger("MediaHelperService")}playMedia(h,g,c){h?.parentElement||this.logger.warn("Attempting to play a media with null parentElement (probably not in DOM?)");const T=A=>{this.logger.info(`${A} - type=${g}, srcObject=${h?.srcObject?"defined":"undefined"}, played=${h?.played}, paused=${h?.paused}, readyState=${this.getVideoState(h?.readyState)}, muted=${h?.muted}`)};return T("Attempting to play media"),new p.c(A=>{const L=h?.play();if(!L)return T("Undefined play result"),A.next(!h?.paused),void A.complete();L.then?.(()=>{T("Successfully played"),this.sendMediaPlayEvent(g,c),A.next(!0)}).catch?.(x=>{T("Failed to play"),this.logger.error(`${g} play failed with error: ${x.name}: ${x.message}`),this.sendMediaPlayEvent(g,c,x),this.mediaPlayExceptionSubject.next(x),A.next(!1)}).finally?.(()=>{A.complete()})})}pauseMedia(h){h?.pause()}mediaPlayFailure$(){return this.mediaPlayExceptionSubject.asObservable()}sendMediaPlayEvent(h,g,c){const T=new m.Yno({streamSessionId:g?.sessionId??"",streamSubSessionId:g?.subSessionId??"",mediaType:"video"===h?m.N0J.Video:m.N0J.Audio,result:void 0===c?m.Ssl.Success:m.Ssl.Failure,errorDetails:c?.message??"",errorName:c?.name??"",isResume:g?.isResumed??m.T80.FALSE});this.telemetryService.push(T)}getVideoState(h){let g;switch(h){case HTMLMediaElement.HAVE_NOTHING:g=O.HaveNothing;break;case HTMLMediaElement.HAVE_METADATA:g=O.HaveMetadata;break;case HTMLMediaElement.HAVE_CURRENT_DATA:g=O.HaveCurrentData;break;case HTMLMediaElement.HAVE_FUTURE_DATA:g=O.HaveFutureData;break;case HTMLMediaElement.HAVE_ENOUGH_DATA:g=O.HaveEnoughData;break;default:g=h}return g}getVideoNetworkState(h){let g;switch(h){case HTMLMediaElement.NETWORK_EMPTY:g=S.NetworkEmpty;break;case HTMLMediaElement.NETWORK_IDLE:g=S.NetworkIdle;break;case HTMLMediaElement.NETWORK_LOADING:g=S.NetworkLoading;break;case HTMLMediaElement.NETWORK_NO_SOURCE:g=S.NetworkNoSource;break;default:g=h}return g}}return(r=i).\u0275fac=function(h){return new(h||r)(_.KVO(P.J6),_.KVO(v.H0))},r.\u0275prov=_.jDH({token:r,factory:r.\u0275fac,providedIn:"root"}),i})()},8094:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A$:()=>formatConsentData,Me:()=>extractCmsId,VP:()=>mapScrimRGBToFontColor,WC:()=>removeSpacesInString,ZE:()=>formatVanityUrlForDisplay,n9:()=>formatTimeInMinutesToString,rc:()=>convertNegativeErrorCodes,u2:()=>getUserFacingDeviceType,yJ:()=>formatHexString,zC:()=>formatUserCodeForDisplay,zy:()=>getUserFacingOSName});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26875),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__),moment__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(10785),moment__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__),crimson__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3567),js_events__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(78812);const minutesInAnHour=60,maxUnsigned32BitInteger=4294967295,HTTP_RESPONSE_STATES={UNDEFINED_RESPONSE:"undefined-response",NULL_URL:"null-url"},formatTimeConfig={HOURS:"hours",MINUTES:"minutes",SECONDS:"seconds"};function formatTimeString(Ue,W){const d=moment.duration(Ue,"seconds"),n=[];if(-1!==W.indexOf(formatTimeConfig.HOURS)){const l=leftPad(d.hours().toString(),"0",2);n.push(l)}if(-1!==W.indexOf(formatTimeConfig.MINUTES)){const l=leftPad(d.minutes().toString(),"0",2);n.push(l)}if(-1!==W.indexOf(formatTimeConfig.SECONDS)){const l=leftPad(d.seconds().toString(),"0",2);n.push(l)}return n.join(":")}function formatHexString(Ue){if(Number.isInteger(Ue)){let W=(Ue>>>=0).toString(16).toUpperCase();return W=leftPad(W,"0",8),"0x"+W}return""}function leftPad(Ue,W,d){const n=d-Ue.length;return n>0?Array(n+1).join(W)+Ue:Ue}function hasValue(Ue,W){return!isNil(Ue)}function getUrl(Ue,W){let d="";return d=isUndefined(Ue)?W+"/"+HTTP_RESPONSE_STATES.UNDEFINED_RESPONSE:isNull(Ue.url)?W+"/"+HTTP_RESPONSE_STATES.NULL_URL:Ue.url,d}function getHttpResponseStatus(Ue){let W;return W=isUndefined(Ue)?HTTP_RESPONSE_STATES.UNDEFINED_RESPONSE:Ue.status,W}function validateObject(Ue,W,d=hasValue){const n=!isNil(Ue);return reduce(W,(l,p)=>l&&d(Ue[p],l),n)}function validateJson(Ue,W,d){const n={isValid:!1,data:null,error:""};try{n.data=JSON.parse(Ue),n.isValid=!0}catch(l){n.error=l.message}return n.isValid=n.isValid&&validateObject(n.data,W,d),n}function extractCmsId(Ue,W){const d=Ue.search("cmsId");if(d<0)return W.info("cmsId not found, ignoring event"),null;let n=Ue.substring(d),l=n.split("&");return l.length<=0?(W.error("cmsId found, but string splitting on & returned 0 strings"),null):(n=l[0],l=n.split("="),l.length<=1?(W.error("cmsId key found, but no value was found"),null):+l[1])}function formatConsentData(Ue){const W=(0,lodash__WEBPACK_IMPORTED_MODULE_0__.merge)({},js_events__WEBPACK_IMPORTED_MODULE_3__.bC);return Ue&&(W.technical=Ue.technicalConsent,W.behavioral=Ue.behavioralConsent),W}function removeSpacesInString(Ue){return Ue.replace(/\s/g,"")}function formatVanityUrlForDisplay(Ue){return Ue.replace(/(^\w+:|^)\/\//,"")}function formatUserCodeForDisplay(Ue){if(Ue.length<6)return Ue;const W=Math.round(Ue.length/2);return Ue.slice(0,W)+" - "+Ue.slice(W)}function getUserFacingOSName(Ue){switch(Ue){case crimson__WEBPACK_IMPORTED_MODULE_2__.t_.WebOS:return"webOS";case crimson__WEBPACK_IMPORTED_MODULE_2__.t_.Tizen:return"Tizen";case crimson__WEBPACK_IMPORTED_MODULE_2__.t_.XBox:return"Xbox";case crimson__WEBPACK_IMPORTED_MODULE_2__.t_.SteamOS:return"SteamOS";case crimson__WEBPACK_IMPORTED_MODULE_2__.t_.Shield:case crimson__WEBPACK_IMPORTED_MODULE_2__.t_.Android:return"Android";default:return}}function getUserFacingDeviceType(Ue){switch(Ue){case crimson__WEBPACK_IMPORTED_MODULE_2__.Y0.TV:return"TV";case crimson__WEBPACK_IMPORTED_MODULE_2__.Y0.Console:return"Console";default:return}}function evalCss(expr){return eval(expr.trim().replace(/calc/g,"").replace(/px/g,"").replace(/100vw/g,window.innerWidth.toString()).replace(/100vh/g,window.innerHeight.toString()).replace(/[^-()\d/*+.]/g,""))}function formatTimeInMinutesToString(Ue){if(0===Ue)return{time:"0m"};let W="";Ue>=minutesInAnHour&&(W+=Math.floor(Ue/minutesInAnHour)+"h");const d=Ue%minutesInAnHour;return d>0&&(W+=" "+d+"m"),{time:W}}function mapScrimRGBToFontColor(Ue){return Ue?.299*Ue.r+.587*Ue.g+.114*Ue.b>150?"black":"white":null}function convertNegativeErrorCodes(Ue){return Ue>=0?Ue:maxUnsigned32BitInteger- -1*Ue+1}},64962:(Ue,W,d)=>{"use strict";d.d(W,{JS:()=>te,Yk:()=>$});const n=Symbol("Comlink.proxy"),l=Symbol("Comlink.endpoint"),p=Symbol("Comlink.releaseProxy"),m=Symbol("Comlink.thrown"),_=X=>"object"==typeof X&&null!==X||"function"==typeof X,O=new Map([["proxy",{canHandle:X=>_(X)&&X[n],serialize(X){const{port1:re,port2:ge}=new MessageChannel;return S(X,re),[ge,[ge]]},deserialize:X=>(X.start(),i(X))}],["throw",{canHandle:X=>_(X)&&m in X,serialize({value:X}){let re;return re=X instanceof Error?{isError:!0,value:{message:X.message,name:X.name,stack:X.stack}}:{isError:!1,value:X},[re,[]]},deserialize(X){throw X.isError?Object.assign(new Error(X.value.message),X.value):X.value}}]]);function S(X,re=self){re.addEventListener("message",function ge(oe){if(!oe||!oe.data)return;const{id:xe,type:ue,path:N}=Object.assign({path:[]},oe.data),se=(oe.data.argumentList||[]).map(D);let ce;try{const Z=N.slice(0,-1).reduce((ae,pe)=>ae[pe],X),de=N.reduce((ae,pe)=>ae[pe],X);switch(ue){case 0:ce=de;break;case 1:Z[N.slice(-1)[0]]=D(oe.data.value),ce=!0;break;case 2:ce=de.apply(Z,se);break;case 3:ce=L(new de(...se));break;case 4:{const{port1:ae,port2:pe}=new MessageChannel;S(X,pe),ce=function A(X,re){return T.set(X,re),X}(ae,[ae])}break;case 5:ce=void 0}}catch(Z){ce={value:Z,[m]:0}}Promise.resolve(ce).catch(Z=>({value:Z,[m]:0})).then(Z=>{const[de,ae]=V(Z);re.postMessage(Object.assign(Object.assign({},de),{id:xe}),ae),5===ue&&(re.removeEventListener("message",ge),r(re))})}),re.start&&re.start()}function r(X){(function y(X){return"MessagePort"===X.constructor.name})(X)&&X.close()}function i(X,re){return h(X,[],re)}function a(X){if(X)throw new Error("Proxy has been released and is not useable")}function h(X,re=[],ge=function(){}){let oe=!1;const xe=new Proxy(ge,{get(ue,N){if(a(oe),N===p)return()=>F(X,{type:5,path:re.map(se=>se.toString())}).then(()=>{r(X),oe=!0});if("then"===N){if(0===re.length)return{then:()=>xe};const se=F(X,{type:0,path:re.map(ce=>ce.toString())}).then(D);return se.then.bind(se)}return h(X,[...re,N])},set(ue,N,se){a(oe);const[ce,Z]=V(se);return F(X,{type:1,path:[...re,N].map(de=>de.toString()),value:ce},Z).then(D)},apply(ue,N,se){a(oe);const ce=re[re.length-1];if(ce===l)return F(X,{type:4}).then(D);if("bind"===ce)return h(X,re.slice(0,-1));const[Z,de]=c(se);return F(X,{type:2,path:re.map(ae=>ae.toString()),argumentList:Z},de).then(D)},construct(ue,N){a(oe);const[se,ce]=c(N);return F(X,{type:3,path:re.map(Z=>Z.toString()),argumentList:se},ce).then(D)}});return xe}function g(X){return Array.prototype.concat.apply([],X)}function c(X){const re=X.map(V);return[re.map(ge=>ge[0]),g(re.map(ge=>ge[1]))]}const T=new WeakMap;function L(X){return Object.assign(X,{[n]:!0})}function V(X){for(const[re,ge]of O)if(ge.canHandle(X)){const[oe,xe]=ge.serialize(X);return[{type:3,name:re,value:oe},xe]}return[{type:0,value:X},T.get(X)||[]]}function D(X){switch(X.type){case 3:return O.get(X.name).deserialize(X.value);case 0:return X.value}}function F(X,re,ge){return new Promise(oe=>{const xe=function I(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}();X.addEventListener("message",function ue(N){!N.data||!N.data.id||N.data.id!==xe||(X.removeEventListener("message",ue),oe(N.data))}),X.start&&X.start(),X.postMessage(Object.assign({id:xe},re),ge)})}var k=d(19392),R=d(892),G=d(43848),Y=d(65706),K=d(10174),$=function(X){return X.Timeout="Timeout",X.Cleared="Cleared",X}($||{}),J=d(58527),z=d(3567);let te=(()=>{var X;class re{constructor(oe){this.logger=oe.getLogger("GfnWebWorkerService")}initialize(){if(typeof Worker<"u"){const oe=new Worker(d.tu(new URL(d.p+d.u(403),d.b)),{type:void 0,name:"gfn-web"});this.gfnWorker=i(oe)}else this.logger.warn("Web workers not supported, will use fallback mechanism");return this.gfnWorker}hash(oe){return(0,k.H)(this.gfnWorker.sha1(oe))}intervalHandler(oe,xe){return this.gfnWorker?(0,k.H)(this.gfnWorker.registerTimer(oe,L(xe))):oe.startTimer?(this.logger.info("Fallback mechanism triggered, starting timer"),this.timer$=(0,R.Y)(oe.timeout).pipe((0,Y.s)(1),(0,K.u)($.Timeout)),this.timer$):(this.logger.info("Fallback mechanism triggered, clearing timer"),this.timer$=null,(0,G.of)($.Cleared))}}return(X=re).\u0275fac=function(oe){return new(oe||X)(J.KVO(z.J6))},X.\u0275prov=J.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),re})()},11961:(Ue,W,d)=>{"use strict";d.d(W,{p:()=>m});var n=d(58527),l=d(72945);const p="defaultZone";let m=(()=>{var _;class P{constructor(O){this.sharedStorage=O}setDefaultZone(O){return this.sharedStorage.writeBlock(p,O)}getDefaultZone(){return this.sharedStorage.readBlock(p)}}return(_=P).\u0275fac=function(O){return new(O||_)(n.KVO(l.yQ))},_.\u0275prov=n.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),P})()},97152:(Ue,W,d)=>{"use strict";d.d(W,{Ut0:()=>Wa.U,BxN:()=>ts,T80:()=>Pt.T80,Tzh:()=>Pg,hLj:()=>ii,niw:()=>Yr.ni,EBD:()=>Pt.EBD,y1M:()=>Gl.y1,aa0:()=>Pt.aa0,HD9:()=>Tu.HD,WWE:()=>Sp,r1C:()=>tr,Yi6:()=>Nt,r7g:()=>At.r7,lph:()=>At.lp,Vk6:()=>Mi.Vk,M0g:()=>Qi,eI8:()=>ld,wCY:()=>dh.w,HBm:()=>Pt.HBm,qr_:()=>Jg,yJU:()=>Ao,fbu:()=>Pt.fbu,$w$:()=>Hr,vhU:()=>Pt.vhU,iVs:()=>Pt.iVs,yEy:()=>Pt.yEy,uBn:()=>xc.u,RXY:()=>Pt.RXY,GSb:()=>Pt.GSb,$vj:()=>gm,q8U:()=>ju,OjG:()=>Yr.Oj,V6C:()=>Ii.V6,BSK:()=>Yt,$1L:()=>Pt.$1L,Gip:()=>lt.G,xDS:()=>tt.x,k_2:()=>Ai.k_,VK0:()=>Kr,kNP:()=>La.kN,Ncz:()=>La.Nc,Uj2:()=>La.Uj,pQj:()=>La.pQ,C$e:()=>Mi.C$,$_h:()=>ft.$_,Br4:()=>yt,Xtz:()=>b_,Yjq:()=>Pt.Yjq,uxn:()=>Pt.uxn,tS_:()=>Yr.tS,lWV:()=>qe.l,uUB:()=>Lt.uU,qIF:()=>io,Kfi:()=>ji,qH9:()=>Pt.qH9,xLz:()=>Dt.xL,Pii:()=>Fi,ZSB:()=>Bg.Z,NmE:()=>mm,Itz:()=>Zl,SLD:()=>hc.SL,R6l:()=>Ii.R6,CC_:()=>td,YDY:()=>Pt.YDY,_b3:()=>Pt._b3,duU:()=>Pt.duU,SBM:()=>po,FFI:()=>Yc,Q5Y:()=>At.Q5,F4T:()=>Ws.F4,wIR:()=>Yu,BEl:()=>Pt.BEl,irY:()=>$r,d5b:()=>Tt,DNU:()=>ko,SCF:()=>is,MCB:()=>Pt.MCB,bo5:()=>Lt.bo,L4P:()=>vn,h$Q:()=>oa,oY8:()=>oi,OUV:()=>Yr.OU,zeh:()=>es,zi2:()=>lC,HFx:()=>w_,HOo:()=>Pt.HOo,xfC:()=>Vr,N1D:()=>as.N1,zZZ:()=>as.zZ,hz6:()=>as.hz,q3U:()=>as.q3,Icg:()=>Nl,O67:()=>Pt.O67,jgD:()=>Pt.jgD,umq:()=>Nc,bzs:()=>Dt.bz,YBo:()=>au.YB,im9:()=>li,FX3:()=>bm.F,OON:()=>zr,_RN:()=>qr,HjG:()=>Pt.HjG,rcS:()=>al.rc,yJs:()=>al.yJ,n96:()=>al.n9,y1F:()=>Ii.y1});var n=d(26537),l=d(3567),p=d(80583),m=d(17053);var P=d(78812);const v={PopUpDialogShown:{name:"PopUpDialogShown",gdprLevel:P.EU.Functional},PopUpDialogClosed:{name:"PopUpDialogClosed",gdprLevel:P.EU.Technical}};var O=function(j){return j.UNDEFINED="UNDEFINED",j.TRUE="TRUE",j.FALSE="FALSE",j}(O||{}),S=function(j){return j.App_Exit="App_Exit",j.Dialog_Closed="Dialog_Closed",j.Goto_Settings="Goto_Settings",j}(S||{}),y=function(j){return j.Release_Highlights="Release_Highlights",j.Account_Link_Required="Account_Link_Required",j.Account_Link_Expired="Account_Link_Expired",j.Account_Link_Expires_Today="Account_Link_Expires_Today",j.Account_Link_Expires_Soon="Account_Link_Expires_Soon",j.Unknown="Unknown",j}(y||{});class r extends P.YH{constructor(Ke){super(Ke),this.name=v.PopUpDialogShown.name,this.gdprLevel=v.PopUpDialogShown.gdprLevel}}class i extends P.YH{constructor(Ke){super(Ke),this.name=v.PopUpDialogClosed.name,this.gdprLevel=v.PopUpDialogClosed.gdprLevel}}var a=d(26875),h=d(4208),g=d(65706),c=d(58527),T=d(61876),A=d(44968),L=d(76706),x=d(61142),V=d(3457),D=d(28139),F=d(29370),I=d(99204),k=d(47973),R=d(44224),G=d(2218),Y=d(60990),K=d(81247),$=d(25369),ee=d(40514),J=d(26513),z=d(892),te=d(27594),X=d(16229),re=d(36877),ge=d(8619),oe=d(73318),xe=d(32727),ae=d(6364),pe=d(11013);function _e(j){return window.__spatialNavigation__?.isScrollContainer(j)??!1}function ke(j){if(!j?.isConnected)return null;let Ke=j;for(;Ke&&!_e(Ke);)Ke=Ke.parentElement;return Ke}var De=d(94222),Me=d(21684),je=d(31308),$e=d(37278);let ye=(()=>{var j;class Ke{get enableLongPressScroll(){return this._enableLongPressScroll}set enableLongPressScroll(C){this._enableLongPressScroll=(0,ae.he)(C)}get repositionFocus(){return this._repositionFocus}set repositionFocus(C){this._repositionFocus=(0,ae.he)(C)}get fixFocusAtScroller(){return this._fixFocusAtScroller}set fixFocusAtScroller(C){this._fixFocusAtScroller=(0,ae.he)(C)}set scrollerElement(C){this._scrollerElement=C}get scrollerElement(){return this._scrollerElement?.isConnected||(this.scrollerElement=this.virtualScrollViewport?this.virtualScrollViewport.getElementRef().nativeElement:ke(this.elementRef.nativeElement)),this._scrollerElement}constructor(C,w,Q,me,Ye,bt,cn,Wn){this.elementRef=C,this.spatialNavigationService=w,this.ngZone=Q,this.focusManager=me,this.interactivityChecker=Ye,this.localeService=bt,this.virtualScrollViewport=cn,this.orientation="horizontal",this._enableLongPressScroll=!0,this._repositionFocus=!1,this._fixFocusAtScroller=!1,this.reachBoundary="remain",this.isScrollingMode=new J.t(!1),this.firstKeydownTime=-1,this.lastKey="",this.destroy$=new p.B7,this.enabled=!1,this.enabled=!!Wn?.spatialNavigationConfig?.longPressScrolling}ngAfterViewInit(){!this.enabled||!this.spatialNavigationService.enabled||(this.scrollerElement=this.virtualScrollViewport?this.virtualScrollViewport.getElementRef().nativeElement:ke(this.elementRef.nativeElement),this.ngZone.runOutsideAngular(()=>{(0,re.R)(this.elementRef.nativeElement,"keydown",{capture:!0}).pipe((0,ge.p)(C=>this.enableLongPressScroll&&this.filterKeyEvent(C)),(0,h.Q)(this.destroy$)).subscribe(this.onKeydown.bind(this)),(0,re.R)(this.elementRef.nativeElement,"keyup").pipe((0,ge.p)(C=>this.enableLongPressScroll&&this.filterKeyEvent(C)),(0,h.Q)(this.destroy$)).subscribe(this.onKeyup.bind(this)),(0,re.R)(this.elementRef.nativeElement,"focusout").pipe((0,ge.p)(C=>!this.elementRef.nativeElement.contains(C.relatedTarget))).subscribe(this.clear.bind(this))}))}ngOnDestroy(){this.isScrollingMode.next(!1),this.isScrollingMode.complete(),this.destroy$.next(),this.destroy$.complete()}shouldEnterScrollerMode(C){return!this.isScrollingMode.getValue()&&C.key===this.lastKey&&(new Date).getTime()-this.firstKeydownTime>400&&this.scrollerElement?.isConnected&&!this.isBoundary((0,oe.G2)(C.key))}fixFocusAtScrollerElement(){this.fixFocusAtScroller&&(this.scrollerElement?.isConnected||(this.isScrollerFocusable=this.interactivityChecker.isFocusable(this.scrollerElement)),this.isScrollerFocusable||this.scrollerElement.setAttribute("tabindex","-1"),this.scrollerElement.focus())}restoreScrollerElement(){this.fixFocusAtScroller&&(this.isScrollerFocusable||this.scrollerElement.removeAttribute("tabindex"))}onKeydown(C){this.lastKey!==C.key&&(this.firstKeydownTime=(new Date).getTime(),this.lastKey=C.key);const w=(0,oe.G2)(C.key);this.shouldEnterScrollerMode(C)&&(this.isScrollingMode.next(!0),this.lastFocusPoint=document.activeElement.getBoundingClientRect(),this.fixFocusAtScrollerElement(),this.doScrolling(w)),this.isScrollingMode.getValue()&&(C.preventDefault(),C.stopPropagation())}clear(){this.firstKeydownTime=-1,this.lastKey=""}onKeyup(){this.clear()}onScrollerKeydown(C){C.preventDefault(),C.stopPropagation()}onScrollerKeyUp(C){if(this.isScrollingMode.getValue()){const w=(0,oe.G2)(C.key);setTimeout(()=>{document.activeElement===this.scrollerElement&&this.repositionFocusFrom((0,oe.On)(w)),this.leaveScrollingMode()})}}getStartingPoint(C){let w=this.lastFocusPoint.left+this.lastFocusPoint.width/2,Q=this.lastFocusPoint.top+this.lastFocusPoint.height/2;const me=this.scrollerElement.getBoundingClientRect();switch(C){case"up":Q=me.y;break;case"down":Q=me.bottom;break;case"left":w=me.x;break;case"right":w=me.right}return{x:w,y:Q}}repositionFocusFrom(C){if(!this.repositionFocus)return;const{x:w,y:Q}=this.getStartingPoint(C);this.spatialNavigationService.setStartingPointAt(w,Q);const me=this.scrollerElement.spatialNavigationSearch(C);me&&this.focusManager.navigateTo(me,C,{preventScroll:!0}),this.lastFocusPoint=void 0}filterKeyEvent(C){return"horizontal"===this.orientation?C.key===xe.F0.ArrowLeft||C.key===xe.F0.ArrowRight:"vertical"===this.orientation&&(C.key===xe.F0.ArrowUp||C.key===xe.F0.ArrowDown)}isBoundary(C){switch(C){case"up":return 0===this.scrollerElement.scrollTop;case"down":return this.scrollerElement.scrollTop+this.scrollerElement.clientHeight>=this.scrollerElement.scrollHeight;case"left":return this.localeService.isRTLLayoutEnabled?this.scrollerElement.scrollLeft-this.scrollerElement.clientWidth<=-this.scrollerElement.scrollWidth:0===this.scrollerElement.scrollLeft;case"right":return this.localeService.isRTLLayoutEnabled?0===this.scrollerElement.scrollLeft:this.scrollerElement.scrollLeft+this.scrollerElement.clientWidth>=this.scrollerElement.scrollWidth}}doScrolling(C){this.ngZone.runOutsideAngular(()=>{const w=(0,z.Y)(0,te.X).pipe((0,h.Q)((0,X.h)(this.destroy$,this.isScrollingMode.pipe((0,ge.p)(Q=>!Q))))).subscribe(Q=>{this.isBoundary(C)?(this.repositionFocusFrom((0,oe.On)(C)),"end"===this.reachBoundary&&this.leaveScrollingMode(),w.unsubscribe()):this.scroll(Q,C)});(0,re.R)(this.scrollerElement,"keydown",{capture:!0}).pipe((0,h.Q)((0,X.h)(this.destroy$,this.isScrollingMode.pipe((0,ge.p)(Q=>!Q))))).subscribe(this.onScrollerKeydown.bind(this)),(0,re.R)(this.scrollerElement,"keyup").pipe((0,h.Q)((0,X.h)(this.destroy$,this.isScrollingMode.pipe((0,ge.p)(Q=>!Q))))).subscribe(this.onScrollerKeyUp.bind(this))})}scroll(C,w){const me=(C<150?function N(j){return 1-Math.cos(j*Math.PI/2)}(C/150):1)*this.getScrollAmount(w);switch(w){case"up":case"down":this.scrollerElement.scrollTop+=me;break;case"left":case"right":this.scrollerElement.scrollLeft+=me}}getScrollAmount(C){return"up"===C||"left"===C?-64:64}leaveScrollingMode(){this.isScrollingMode.next(!1),this.clear(),this.restoreScrollerElement()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(c.aKT),c.rXU(De.E),c.rXU(c.SKi),c.rXU(Me.c),c.rXU(je.Z7),c.rXU(l.iH),c.rXU($e.d6,8),c.rXU(pe.X,8))},j.\u0275dir=c.FsC({type:j,selectors:[["","nvLongPressScroller",""]],inputs:{orientation:"orientation",enableLongPressScroll:"enableLongPressScroll",repositionFocus:"repositionFocus",fixFocusAtScroller:"fixFocusAtScroller",reachBoundary:"reachBoundary"}}),Ke})();var Re=d(33328),Ze=d(65240);const et=["articleContentContainer"];function xt(j,Ke){1&j&&(c.j41(0,"div",6),c.nrm(1,"mat-progress-spinner",7),c.k0s())}function un(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",17)(1,"button",18),c.bIt("click",function(){c.eBV(we);const w=c.XpG(3);return c.Njj(w.closeDialog())}),c.nrm(2,"mat-icon",19),c.k0s()()}}function ct(j,Ke){if(1&j&&(c.j41(0,"span",20),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j){const we=c.XpG(3);c.R7$(),c.JRh(c.bMT(2,1,we.articleDataParams.subTitle))}}function Gt(j,Ke){1&j&&c.nrm(0,"div",21)}function pn(j,Ke){if(1&j&&(c.nrm(0,"span",22),c.nI1(1,"trustAsHtml")),2&j){const we=c.XpG(3);c.Y8G("innerHTML",c.bMT(1,2,we.articleDataParams.content),c.npT),c.BMQ("tabindex",we.scrollable?0:null)}}function st(j,Ke){1&j&&c.nrm(0,"div",23)}function mn(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div")(1,"div",8)(2,"span",9),c.EFF(3),c.nI1(4,"translate"),c.k0s(),c.DNE(5,un,3,0,"div",10),c.k0s(),c.nrm(6,"mat-divider"),c.DNE(7,ct,3,3,"span",11),c.j41(8,"div",12),c.DNE(9,Gt,1,0,"div",13),c.k0s(),c.j41(10,"mat-dialog-content",14,0),c.bIt("scroll",function(w){c.eBV(we);const Q=c.XpG(2);return c.Njj(Q.onScroll(w))}),c.DNE(12,pn,2,4,"span",15),c.k0s(),c.DNE(13,st,1,0,"div",16),c.k0s()}if(2&j){const we=c.XpG(2);c.R7$(3),c.JRh(c.bMT(4,7,we.articleDataParams.title)),c.R7$(2),c.Y8G("ngIf",we.closeButtonVisible),c.R7$(2),c.Y8G("ngIf",we.articleDataParams.subTitle),c.R7$(2),c.Y8G("ngIf",we.showTopOverlay),c.R7$(),c.Y8G("enableLongPressScroll",we.scrollable),c.R7$(2),c.Y8G("ngIf",we.articleDataParams.content),c.R7$(),c.Y8G("ngIf",we.showBottomOverlay)}}function Bn(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",3),c.bIt("click",function(){c.eBV(we);const w=c.XpG();return c.Njj(w.OnDialogClick())}),c.DNE(1,xt,2,0,"div",4)(2,mn,14,9,"div",5),c.k0s()}if(2&j){const we=c.XpG();c.Y8G("ngClass",we.articleDataParams.style),c.R7$(),c.Y8G("ngIf",we.waiting),c.R7$(),c.Y8G("ngIf",!we.waiting)}}let En=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi){this.el=C,this.genericDialog=Q,this.telemetryService=me,this.applicationLifetimeService=Ye,this.dialogRef=bt,this.articleDataParams=cn,this.systemInfoService=Wn,this.breakpointObserver=xi,this.waiting=!0,this.loadingContent=!0,this.showBottomOverlay=!1,this.showTopOverlay=!1,this.showDialog=!1,this.closeButtonVisible=!1,this.scrollable=!1,this.maxScrollPercent=0,this.dialogShownStartTime=0,this.dialogClickedCount=0,this.isTelemetrySent=!1,this.destroy$=new p.B7,this.logger=w.getLogger("information-dialog"),this.logger.info("component created"),this.closeButtonVisible=cn?.enableCloseButton,bt.disableClose=!0,this.isSmallScreen=this.breakpointObserver.isMatched(l.hi.IPhone)}ngOnInit(){this.breakpointObserver.observe([l.hi.IPhone]).pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.isSmallScreen=C.matches}),this.waiting=!0,this.articleDataParams.style="article-content",this.articleSubscription=this.articleDataParams.getArticleCallback().subscribe(C=>{this.waiting=!1,this.dialogShownStartTime=Date.now(),C&&C.body?(this.articleDataParams.title=C.title,this.articleDataParams.subTitle=C.subTitle,this.articleDataParams.content=C.body,this.articleDataParams.style=C.style,this.showBottomOverlay=!0,this.currentDialogName=this.articleDataParams.dialogType,this.showDialog=!0,this.sendDialogShownTelemetry(),this.handleFocusWithScrollbar()):(this.error=!0,this.logger.error("get article returned null"),this.showErrorDialog())},C=>{this.waiting=!1,this.error=!0,this.logger.error("get article information failed with error: ",C),"1"!==this.articleDataParams.isInstallationScenario||(0,a.isNil)(C.status)?this.showErrorDialog():this.dialogRef.close()}),this.applicationLifetimeService.addWorkOnShutdown(()=>new m.c(C=>{C.next(this.sendDialogClosedTelemetry(S.App_Exit)),C.complete()}))}showErrorDialog(){const C=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{icon:"info",bodyText:{text:"releaseHighlights.noInformationAvailable"},primaryButton:{text:"common.close"}}});C.afterClosed().pipe((0,h.Q)(this.destroy$)).subscribe(()=>{this.dialogRef.close()}),C.primaryButtonClick.pipe((0,g.s)(1)).subscribe(()=>C.close()),!(0,a.isNil)(C)&&this.articleDataParams.autoCloseOnError&&setTimeout.call(C,()=>{C.close()},3e3)}onScroll(C){C.stopPropagation(),C.preventDefault();const w=Math.round((C.target.scrollTop+C.target.clientHeight)/C.target.scrollHeight*100);w>this.maxScrollPercent&&(this.maxScrollPercent=w),setTimeout(()=>{this.showTopOverlay=C.target.scrollTop>0,this.showBottomOverlay=w<100})}closeDialog(){this.dialogRef.close()}sendDialogShownTelemetry(){const C=new r({name:this.currentDialogName||y.Unknown});this.telemetryService.push(C)}handleFocusWithScrollbar(){setTimeout(()=>{const C=this.articleContentContainerElement?.nativeElement?.clientHeight,w=this.articleContentContainerElement?.nativeElement?.scrollHeight;this.scrollable=!C||!w||w>C,this.logger.info(`containerHeight: ${C}, scrollHeight: ${w}, dialog is scrollable: ${this.scrollable}`)})}sendDialogClosedTelemetry(C){if(!this.error&&!this.isTelemetrySent){const w=new i({name:this.currentDialogName||y.Unknown,totalMs:0,scrolled:0!==this.maxScrollPercent?O.TRUE:O.FALSE,inWindowClicks:this.dialogClickedCount,exitTriggerPoint:C,checkBoxChecked:O.FALSE});this.telemetryService.push(w,this.dialogShownStartTime,{immediateRequest:!0}),this.isTelemetrySent=!0}}OnDialogClick(){this.dialogClickedCount++}ngOnDestroy(){this.logger.info("destroying article-content dialog"),this.sendDialogClosedTelemetry(S.Dialog_Closed),this.articleSubscription&&this.articleSubscription.unsubscribe(),this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(c.aKT),c.rXU(l.J6),c.rXU(T.uh),c.rXU(P.H0),c.rXU(A.lM),c.rXU(n.CP),c.rXU(n.Vh),c.rXU(l.zW),c.rXU(L.QP))},j.\u0275cmp=c.VBU({type:j,selectors:[["nv-information-dialog"]],viewQuery:function(C,w){if(1&C&&c.GBs(et,5),2&C){let Q;c.mGM(Q=c.lsd())&&(w.articleContentContainerElement=Q.first)}},decls:2,vars:3,consts:[["articleContentContainer",""],["nvSpatialNavigationContainer","","nvTrapFocus","","nvBackToCloseModal",""],["fxLayout","column","class","article-dialog",3,"ngClass","click",4,"ngIf"],["fxLayout","column",1,"article-dialog",3,"click","ngClass"],["fxFlex","","fxFill","","fxLayoutAlign","center center","class","waiting-overlay",4,"ngIf"],[4,"ngIf"],["fxFlex","","fxFill","","fxLayoutAlign","center center",1,"waiting-overlay"],["id","progressIndicator","color","accent","mode","indeterminate","strokeWidth","5","diameter","35","value","15",1,"mat-accent"],["fxLayout","row","fxLayoutAlign","start center"],[1,"font-header6"],["fxFlex","","fxLayoutAlign","end center",4,"ngIf"],["class","font-sub1",4,"ngIf"],[1,"constants-position-relative"],["class","common-overlay scroll-overlay-top-gradient",4,"ngIf"],["cdkMonitorSubtreeFocus","","nvLongPressScroller","","orientation","vertical",1,"font-body2",3,"scroll","enableLongPressScroll"],["class","mat-primary mat-hue-2",3,"innerHTML",4,"ngIf"],["class","common-overlay scroll-overlay-bottom-gradient",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click"],["svgIcon","close"],[1,"font-sub1"],[1,"common-overlay","scroll-overlay-top-gradient"],[1,"mat-primary","mat-hue-2",3,"innerHTML"],[1,"common-overlay","scroll-overlay-bottom-gradient"]],template:function(C,w){1&C&&(c.j41(0,"div",1),c.DNE(1,Bn,3,3,"div",2),c.k0s()),2&C&&(c.AVh("small-screen",w.isSmallScreen),c.R7$(),c.Y8G("ngIf",w.showDialog))},dependencies:[x.YU,x.bT,V.DJ,V.sA,V.G2,V.UI,D.PW,n.Yi,F.An,I.LG,k.iV,R.q,G.R,Y.r,K.D,$.D,ee.e,ye,je.vR,Re.O,Ze.D9],styles:[':root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}html,body{margin:0}img{-webkit-user-drag:none}.no-wrap{white-space:nowrap}@font-face{font-family:"Material Icons 2";font-style:normal;font-weight:400;font-display:block;src:url(MaterialIcons-Regular.1e50f5c2ffa6aba4.eot),url(MaterialIcons-Regular.7ea2023eeca07427.woff2) format("woff2"),url(MaterialIcons-Regular.db852539204b1a34.woff) format("woff"),url(MaterialIcons-Regular.196fa4a92dd6fa73.ttf) format("truetype")}.common-window .material-icons{font-family:"Material Icons 2"}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.cdk-global-overlay-wrapper>.nv-overlay-panel{max-width:calc(100vw - 32px)!important}}.constants-position-relative{position:relative}.constants-position-absolute{position:absolute}.constants-display-none{display:none}:host-context(.isRtl) .flip-rtl-element{transform:scaleX(-1)}html[dir=rtl] .flip-rtl-element{--dummy: 0;transform:scaleX(-1)}.background-image-overlay{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.common-overlay{position:absolute;inset:0;display:flex;z-index:1;background-color:#000000bf}.common-overlay.light-background{background-color:#00000080}.common-overlay.no-background{background-color:transparent}button mat-icon{display:block;color:#ffffffb3}.article-dialog{min-width:408px;max-width:560px;max-height:538px;overflow-x:hidden;border-radius:0;padding:24px}mat-content,mat-dialog-content{overflow-y:overlay;overflow-x:hidden}.article-dialog mat-dialog-content{font-size:12px;font-weight:400;color:#fff9;padding:24px;width:inherit;overflow-x:hidden}.article-dialog.article-content mat-dialog-content{overflow-x:hidden;margin:0 0 5px;padding:0}.article-dialog.article-content{background-image:none;max-height:80vh;min-height:250px;min-width:560px;max-width:678px;transition:all;transform:translate(0) scale(1);animation-delay:0s;transition-delay:0s}@media (max-width: 599px){.article-dialog.article-content{min-width:0}}.article-dialog.dialog-service-container-size{background-image:none;max-height:80vh;min-height:250px;width:560px;max-width:678px;position:relative;transition:all;transform:translate(0) scale(1);animation-delay:0s;transition-delay:0s;background-color:#292929;overflow-y:hidden}.dialog-service-container-size a{border-bottom:1px solid transparent;white-space:nowrap;color:#76b900;opacity:1;text-decoration:none}.dialog-service-container-size a:hover{cursor:pointer;outline:none;border-bottom:1px dotted #76b900}.dialog-service-container-size a.cdk-program-focused,.dialog-service-container-size a.cdk-keyboard-focused,.cdk-keyboard-focused .dialog-service-container-size a:focus,.cdk-program-focused .dialog-service-container-size a:focus{position:relative;--outset: -1px ;--focus-background: rgba(118, 185, 0, .32)}.dialog-service-container-size a.cdk-program-focused:before,.dialog-service-container-size a.cdk-keyboard-focused:before,.cdk-keyboard-focused .dialog-service-container-size a:focus:before,.cdk-program-focused .dialog-service-container-size a:focus:before{content:"";position:absolute;top:var(--outset);right:var(--outset);bottom:var(--outset);left:var(--outset);animation:backgroundColorFadeIn .75s forwards}.dialog-service-container-size a.cdk-program-focused:after,.dialog-service-container-size a.cdk-keyboard-focused:after,.cdk-keyboard-focused .dialog-service-container-size a:focus:after,.cdk-program-focused .dialog-service-container-size a:focus:after{background-color:unset}@keyframes backgroundColorFadeIn{0%{background-color:transparent}to{background-color:var(--focus-background)}}.dialog-service-container-size a:active{opacity:.45}.dialog-service-container-size img{width:512px}.article-dialog.dialog-service-container-size .common-overlay{display:none}.article-dialog.dialog-service-container-size mat-divider{margin-top:16px;margin-bottom:16px}.common-window .dialog-no-transition{transition:none}.article-dialog .scroll-overlay-top-gradient{height:30px;background:linear-gradient(#1c1c1c,#1c1c1c00);top:0}:host-context(.isLtr) .article-dialog .scroll-overlay-top-gradient{margin-left:24px}html[dir=ltr] .article-dialog .scroll-overlay-top-gradient{--dummy3: 0;margin-left:24px}:host-context(.isRtl) .article-dialog .scroll-overlay-top-gradient{margin-right:24px}html[dir=rtl] .article-dialog .scroll-overlay-top-gradient{--dummy3: 0;margin-right:24px}:host-context(.isLtr) .article-dialog .scroll-overlay-top-gradient{margin-right:24px}html[dir=ltr] .article-dialog .scroll-overlay-top-gradient{--dummy4: 0;margin-right:24px}:host-context(.isRtl) .article-dialog .scroll-overlay-top-gradient{margin-left:24px}html[dir=rtl] .article-dialog .scroll-overlay-top-gradient{--dummy4: 0;margin-left:24px}.article-dialog .scroll-overlay-bottom-gradient{height:30px;background:linear-gradient(#1c1c1c00,#1c1c1c);bottom:24px;top:auto}:host-context(.isLtr) .article-dialog .scroll-overlay-bottom-gradient{margin-left:24px}html[dir=ltr] .article-dialog .scroll-overlay-bottom-gradient{--dummy3: 0;margin-left:24px}:host-context(.isRtl) .article-dialog .scroll-overlay-bottom-gradient{margin-right:24px}html[dir=rtl] .article-dialog .scroll-overlay-bottom-gradient{--dummy3: 0;margin-right:24px}:host-context(.isLtr) .article-dialog .scroll-overlay-bottom-gradient{margin-right:24px}html[dir=ltr] .article-dialog .scroll-overlay-bottom-gradient{--dummy4: 0;margin-right:24px}:host-context(.isRtl) .article-dialog .scroll-overlay-bottom-gradient{margin-left:24px}html[dir=rtl] .article-dialog .scroll-overlay-bottom-gradient{--dummy4: 0;margin-left:24px}.mat-mdc-dialog-container{padding-top:32px;z-index:82;transform:none;opacity:1;padding-bottom:24px;background-color:#191919;color:#fff;overflow:hidden}::selection{background:#478b06}.article-dialog mat-dialog-content:last-child,.article-dialog mat-dialog-content ng-form:last-child{margin-bottom:0}.article-dialog mat-dialog-content p:first-child{margin-top:0}.article-dialog mat-dialog-content .last-dialog-child{margin-bottom:0}.article-dialog mat-dialog-content.cdk-keyboard-focused,.article-dialog mat-dialog-content.cdk-program-focused{background-color:#ffffff52;transition:background-color .75s ease}.waiting-overlay{background-color:#0e0e0eb3}.small-screen .article-dialog.dialog-service-container-size{max-height:100vh;width:100vw;height:100vh;max-width:100vw}.small-screen .article-dialog,.small-screen .article-dialog.article-content{min-width:320px;max-height:100vh;min-height:320px;max-width:100vw}@media screen and (max-width: 430px) and (max-height: 932px) and (orientation: portrait){.article-dialog mat-dialog-content{max-height:75vh}.dialog-service-container-size img{width:100%}}@media screen and (max-width: 932px) and (max-height: 430px) and (orientation: landscape){.article-dialog mat-dialog-content{max-height:60vh}:host-context(.isLtr) .article-dialog.dialog-service-container-size{padding-left:max(env(safe-area-inset-left),24px)}html[dir=ltr] .article-dialog.dialog-service-container-size{--dummy1: 0;padding-left:max(env(safe-area-inset-left),24px)}:host-context(.isRtl) .article-dialog.dialog-service-container-size{padding-right:max(env(safe-area-inset-left),24px)}html[dir=rtl] .article-dialog.dialog-service-container-size{--dummy1: 0;padding-right:max(env(safe-area-inset-left),24px)}:host-context(.isLtr) .article-dialog.dialog-service-container-size{padding-right:max(env(safe-area-inset-right),24px)}html[dir=ltr] .article-dialog.dialog-service-container-size{--dummy2: 0;padding-right:max(env(safe-area-inset-right),24px)}:host-context(.isRtl) .article-dialog.dialog-service-container-size{padding-left:max(env(safe-area-inset-right),24px)}html[dir=rtl] .article-dialog.dialog-service-container-size{--dummy2: 0;padding-left:max(env(safe-area-inset-right),24px)}}.tv-view ::-webkit-scrollbar{width:16px}.tv-view .article-dialog{padding:32px}.tv-view .dialog-service-container-size img{width:100%}.tv-view .article-dialog.dialog-service-container-size{max-height:none;height:auto;width:925px;max-width:1920px}.tv-view .article-dialog.dialog-service-container-size mat-divider{margin-top:32px;margin-bottom:32px}\n'],encapsulation:2}),Ke})();var fn=d(56106),nn=(d(97979),d(33955)),yn=d(12949),ri=(d(96501),d(44296),d(48362),d(30783)),Ne=d(20288),it=d(43848),Ut=d(59859),jn=d(3496),wn=d(99047),nt=d(75707),on=d(91384),mt=d(10174),_n=d(79539),wt=d(83915),Un=d(14714),Oi=d(43615),At=d(36206),Hn=function(j){return j.mall="gfnpc mall_client",j.streamer="gfnpc streamer_client",j.browser="gfn_browser_client",j}(Hn||{}),pi=function(j){return j[j.Progress=-1]="Progress",j[j.Excellent=0]="Excellent",j[j.Poor=1]="Poor",j[j.PoorWifi_2_4=2]="PoorWifi_2_4",j[j.Bad=3]="Bad",j[j.Error=4]="Error",j[j.NA=5]="NA",j}(pi||{}),Zi=function(j){return j.Close="Close",j.Continue="Continue",j.TryAgain="TryAgain",j}(Zi||{}),Lr=function(j){return j.NetworkTestFailed="NetworkTestFailed",j.NetworkTestAutoRunDone="NetworkTestAutoRunDone",j.NetworkTestAutoRunTryAgain="NetworkTestAutoRunTryAgain",j.NetworkTestClosed="NetworkTestClosed",j.NetworkTestClosedOnError="NetworkTestClosedOnError",j.LBRAutoRunDone="LBRAutoRunDone",j}(Lr||{}),Kr=function(j){return j.NetworkTestFailed="NetworkTestFailed",j.NetworkTestCancelled="NetworkTestCancelled",j.RedResult="RedResult",j.StreamerNetworkError="StreamerNetworkError",j.StreamerFrameLossTimeoutError="StreamerFrameLossTimeoutError",j.None="None",j}(Kr||{}),ji=function(j){return j.Started="Started",j.Finished="Finished",j}(ji||{}),vi=function(j){return j.NetworkTest="NETWORKTEST",j.Error="ERROR",j}(vi||{}),zn=function(j){return j[j.NCT_R_UNKNOWN=0]="NCT_R_UNKNOWN",j[j.NCT_R_SUCCESS=1]="NCT_R_SUCCESS",j[j.NCT_R_INVALID_PARAM=2]="NCT_R_INVALID_PARAM",j[j.NCT_R_SYN_FAILED=3]="NCT_R_SYN_FAILED",j[j.NCT_R_FIN_FAILED=4]="NCT_R_FIN_FAILED",j[j.NCT_R_AUTH_FAILED=5]="NCT_R_AUTH_FAILED",j[j.NCT_R_POST_FAILED=6]="NCT_R_POST_FAILED",j[j.NCT_R_TEST_IN_PROGRESS=7]="NCT_R_TEST_IN_PROGRESS",j[j.NCT_R_CANCELED=8]="NCT_R_CANCELED",j[j.NCT_R_CAPACITY_FULL=9]="NCT_R_CAPACITY_FULL",j[j.NCT_R_SESSION_EXIST=10]="NCT_R_SESSION_EXIST",j[j.NCT_R_INVALID_DATA=11]="NCT_R_INVALID_DATA",j[j.NCT_R_SETUP_FAILED=12]="NCT_R_SETUP_FAILED",j[j.NCT_R_RETRYABLE_POST_FAILURE=13]="NCT_R_RETRYABLE_POST_FAILURE",j[j.NCT_R_BLOCK_STREAM=14]="NCT_R_BLOCK_STREAM",j}(zn||{}),Ti=function(j){return j[j.Success=0]="Success",j}(Ti||{});const Xt={"WiFi Unknown":"Unknown","WiFi 6.0":"6GHz","WiFi 5.0":"5GHz","WiFi 2.4":"2.4GHz"};var mi=function(j){return j[j.Any=0]="Any",j[j.VPN=1]="VPN",j[j.ZoneOverride=2]="ZoneOverride",j[j.Latency_more_150=3]="Latency_more_150",j[j.Latency_more_80=4]="Latency_more_80",j[j.Wifi_2_4=5]="Wifi_2_4",j[j.Wifi=6]="Wifi",j[j.Bandwidth_less_15=7]="Bandwidth_less_15",j[j.Offline=8]="Offline",j}(mi||{});const $n=[{priority:0,text:"networkTest.youAreOfflineCheckConnection",condition:mi.Offline,hasLink:!1,linkUrl:null},{priority:1,text:"networkTest.disconnectFromVpn",condition:mi.VPN,hasLink:!1,linkUrl:null},{priority:2,text:"networkTest.youHaveZoveOverride",condition:mi.ZoneOverride,hasLink:!1,linkUrl:null},{priority:3,text:"networkTest.farAwayFromServers",condition:mi.Latency_more_150,hasLink:!0,linkUrl:At.r7.GfnServerStatus},{priority:4,text:"networkTest.wifi_2_4_Message",condition:mi.Wifi_2_4,hasLink:!1,linkUrl:null},{priority:5,text:"networkTest.connectToEthernet",condition:mi.Wifi,hasLink:!1,linkUrl:null},{priority:6,text:"networkTest.stopOtherStreaming",condition:mi.Any,hasLink:!1,linkUrl:null},{priority:7,text:"networkTest.restartRouter",condition:mi.Any,hasLink:!1,linkUrl:null},{priority:8,text:"networkTest.farAwayFromServers",condition:mi.Latency_more_80,hasLink:!0,linkUrl:At.r7.GfnServerStatus},{priority:9,text:"networkTest.contactIspProvider",condition:mi.Bandwidth_less_15,hasLink:!1,linkUrl:null}];var Pt=d(35225),Ii=d(28317);const ar=(j,Ke,we)=>({autoRun:j,showAdditionalActions:Ke,progressState:we});function Jt(j,Ke){if(1&j&&c.nrm(0,"gfn-network-icons",10),2&j){const we=c.XpG(3);c.Y8G("progressState",we.progressState)("nvTestData",we.testData)("maxDisplayState",we.maxDisplayState)("isWebRtcNetworkTest",we.isWebRtcNetworkTestEnabled)}}function ki(j,Ke){if(1&j&&c.nrm(0,"gfn-network-completed",15),2&j){const we=c.XpG(4);c.Y8G("nvTestData",we.testData)("isHandset",we.isHandset)}}function Fr(j,Ke){if(1&j&&(c.j41(0,"mat-tab-group",16)(1,"mat-tab",17),c.nI1(2,"translate"),c.nrm(3,"gfn-network-tips",18),c.k0s(),c.j41(4,"mat-tab",17),c.nI1(5,"translate"),c.nrm(6,"gfn-network-completed",15),c.k0s()()),2&j){const we=c.XpG(4);c.R7$(),c.FS9("label",c.bMT(2,5,"common.troubleshootingTips")),c.R7$(2),c.Y8G("networkConditionsData",we.networkConditionsData),c.R7$(),c.FS9("label",c.bMT(5,7,"networkTest.detailsTag")),c.R7$(2),c.Y8G("nvTestData",we.testData)("isHandset",we.isHandset)}}function xo(j,Ke){if(1&j&&(c.qex(0),c.j41(1,"span",19),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.nrm(4,"gfn-network-tips",18),c.j41(5,"span",19),c.EFF(6),c.nI1(7,"translate"),c.k0s(),c.nrm(8,"gfn-network-completed",15),c.bVm()),2&j){const we=c.XpG(4);c.R7$(2),c.JRh(c.bMT(3,5,"common.troubleshootingTips")),c.R7$(2),c.Y8G("networkConditionsData",we.networkConditionsData),c.R7$(2),c.JRh(c.bMT(7,7,"networkTest.detailsTag")),c.R7$(2),c.Y8G("nvTestData",we.testData)("isHandset",we.isHandset)}}function qn(j,Ke){if(1&j&&(c.j41(0,"div",11),c.DNE(1,ki,1,2,"gfn-network-completed",12)(2,Fr,7,9,"mat-tab-group",13)(3,xo,9,9,"ng-container",14),c.k0s()),2&j){const we=c.XpG(3);c.R7$(),c.Y8G("ngIf",!we.showTroubleshootTips),c.R7$(),c.Y8G("ngIf",we.showTroubleshootTips&&!we.isHandset),c.R7$(),c.Y8G("ngIf",we.showTroubleshootTips&&we.isHandset)}}function Sr(j,Ke){if(1&j&&(c.j41(0,"div",7),c.DNE(1,Jt,1,4,"gfn-network-icons",8)(2,qn,4,3,"div",9),c.k0s()),2&j){const we=c.XpG(2);c.R7$(),c.Y8G("ngIf",!we.autoRun||we.autoRun&&-1!==we.progressState),c.R7$(),c.Y8G("ngIf",-1!==we.progressState)}}function ni(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",20)(1,"gfn-network-test-error",21),c.bIt("close",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickClose())})("tryAgain",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickTryAgain())})("continue",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickContinue())}),c.k0s()()}if(2&j){const we=c.XpG(2);c.R7$(),c.Y8G("zoneName",we.zoneName)("networkTestErrorText",we.networkTestErrorText)("showFirewallHelpLink",we.showFirewallHelpLink)("firewallHelpUrl",we.firewallHelpUrl)("firewallHelpShortUrl",we.firewallHelpShortUrl)("firewallLinkText",we.firewallLinkText)("nvClient",we.nvClientApp)}}function he(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",22)(1,"gfn-nw-test-button-placer",23),c.bIt("tryAgain",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickTryAgain())})("close",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickClose())})("continue",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickContinue())}),c.k0s()()}if(2&j){const we=c.XpG(2);c.R7$(),c.Y8G("placementCriteria",c.sMw(1,ar,we.autoRun,we.showAdditionalActions,we.progressState))}}function Ee(j,Ke){if(1&j&&(c.j41(0,"div",1)(1,"div",2)(2,"p"),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.j41(5,"div",3),c.DNE(6,Sr,3,2,"div",4)(7,ni,2,7,"div",5),c.k0s(),c.DNE(8,he,2,5,"div",6),c.k0s()),2&j){const we=c.XpG();c.Y8G("ngSwitch",we.uiState),c.R7$(),c.Y8G("ngClass",we.isHandset?"font-header6":"font-header5"),c.R7$(2),c.JRh(c.bMT(4,6,we.networkTestHeaderText)),c.R7$(3),c.Y8G("ngSwitchCase","NETWORKTEST"),c.R7$(),c.Y8G("ngSwitchCase","ERROR"),c.R7$(),c.Y8G("ngIf","NETWORKTEST"===we.uiState&&-1!==we.progressState)}}let Pe=(()=>{var j;class Ke{constructor(C,w,Q){this.breakpointObserver=w,this.networkTestDialogData=Q,this.buttonClicked=new c.bkB,this.testData={},this.delayRetry=0,this.logger=C.getLogger("libraries/network-test/NetworkTestDialogStateComponent"),this.initData(),this.destroy$=new p.B7}initData(){this.logger.info("Initializing network test dialog data:",this.networkTestDialogData),this.nvClientApp=Pt.sKj.StreamingClient,this.networkTestHeaderText=this.networkTestDialogData.networkTestHeaderText,this.progressState=this.networkTestDialogData.progressState,this.uiState=this.networkTestDialogData.uiState,this.autoRun=this.networkTestDialogData.autoRun,this.showNetworkTest=this.networkTestDialogData.showNetworkTest,this.testData=this.networkTestDialogData.testData,this.maxDisplayState=this.networkTestDialogData.maxDisplayState,this.isHandset=this.networkTestDialogData.isHandset,this.isWebRtcNetworkTestEnabled=this.networkTestDialogData.isWebRtcNetworkTestEnabled,this.networkConditionsData=this.networkTestDialogData.networkConditionsData,this.zoneName=this.networkTestDialogData.zoneName,this.networkTestErrorText=this.networkTestDialogData?.networkTestErrorText,this.showFirewallHelpLink=this.networkTestDialogData?.showFirewallHelpLink,this.firewallHelpUrl=this.networkTestDialogData?.firewallHelpUrl,this.firewallHelpShortUrl=this.networkTestDialogData?.firewallHelpShortUrl,this.firewallLinkText=this.networkTestDialogData?.firewallLinkText,this.showTroubleshootTips=this.networkTestDialogData?.showTroubleshootTips}ngOnInit(){this.breakpointObserver.observe([L.Rp.Handset,L.Rp.Tablet]).pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.isHandset=C.matches})}onClickContinue(){this.buttonClicked.emit(Zi.Continue)}onClickClose(){this.buttonClicked.emit(Zi.Close)}onClickTryAgain(){this.buttonClicked.emit(Zi.TryAgain)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(L.QP),c.rXU(n.Vh))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-dialog-state"]],outputs:{buttonClicked:"buttonClicked"},decls:1,vars:1,consts:[["nvSpatialNavigationContainer","","class","common-ui-network-container",3,"ngSwitch",4,"ngIf"],["nvSpatialNavigationContainer","",1,"common-ui-network-container",3,"ngSwitch"],[1,"common-ui-network-header",3,"ngClass"],[1,"network-test-content"],["fxLayout","column","fxLayoutAlign","center stretch",4,"ngSwitchCase"],["class","network-test-error-container",4,"ngSwitchCase"],["class","nv-button-class","fxLayout","row","fxLayoutAlign","end stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center stretch"],["fxLayout","column",3,"progressState","nvTestData","maxDisplayState","isWebRtcNetworkTest",4,"ngIf"],["class","network-test-results",4,"ngIf"],["fxLayout","column",3,"progressState","nvTestData","maxDisplayState","isWebRtcNetworkTest"],[1,"network-test-results"],[3,"nvTestData","isHandset",4,"ngIf"],["ngClass","mat-tabs-font-button1","mat-stretch-tabs","false","nvMatTabGroupFixUp","",4,"ngIf"],[4,"ngIf"],[3,"nvTestData","isHandset"],["ngClass","mat-tabs-font-button1","mat-stretch-tabs","false","nvMatTabGroupFixUp",""],[3,"label"],[3,"networkConditionsData"],[1,"common-ui-network-title"],[1,"network-test-error-container"],[3,"close","tryAgain","continue","zoneName","networkTestErrorText","showFirewallHelpLink","firewallHelpUrl","firewallHelpShortUrl","firewallLinkText","nvClient"],["fxLayout","row","fxLayoutAlign","end stretch",1,"nv-button-class"],[3,"tryAgain","close","continue","placementCriteria"]],template:function(C,w){1&C&&c.DNE(0,Ee,9,8,"div",0),2&C&&c.Y8G("ngIf",w.showNetworkTest)},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.zone[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),Ke})();var Qe=d(74931),Be=d(57258),Mt=d(36466),Vt=d(31315),Vn=d(35146),si=d(25590),Rn=d(34593),_i=d(72147);var Qr=d(90929),Yr=d(28711),no=d(20381),Tr=d(31877),po=function(j){return j.Balanced="balanced",j.DataSaver="dataSaver",j.Competitive="competitive",j.Custom="custom",j}(po||{}),Os=function(j){return j.balanced="BALANCED",j.dataSaver="DATA_SAVER",j.competitive="COMPETITIVE",j.custom="BALANCED",j}(Os||{}),es=function(j){return j.Low="Low",j.Medium="Medium",j.High="High",j.Off="Off",j}(es||{}),Bs=function(j){return j.Standard="Standard",j.Enhanced="Enhanced",j.AiEnhanced="AI-enhanced",j.NvScaler="NvScaler",j.NvSharpen="NvSharpen",j}(Bs||{}),li=function(j){return j.Standard="Standard",j.Enhanced="Enhanced",j.AiEnhanced="AiEnhanced",j.NvScaler="NvScaler",j.NvSharpen="NvSharpen",j}(li||{}),dr=function(j){return j.Warnings="WARNINGS",j.On="ON",j.Off="OFF",j}(dr||{}),Tn=function(j){return j.Logical="Logical",j.Physical="Physical",j}(Tn||{});const tn=[{value:!0,displayName:"common.auto",enabled:!0},{value:!1,displayName:"settings.streamingProfiles.custom",enabled:!0}];var vn=function(j){return j.Resolution="UpScalingResolutionId",j.AiSharpness="AiSharpnessValue",j.EnhSharpness="EnhancedSharpnessValue",j}(vn||{});const oi={BlockName:"appSettingsConfig",LatencyPropertyName:"advancedLatencyOptimization",DirectInputPropertyName:"directInput",NetworkQuality:"networkQuality",PlayWithMobileNetwork:"playWithMobileNetwork",StreamingProfiles:"streamingProfiles",CustomProfile:"customProfile",DiscordRichPresence:"discordRpEnabled",DirectInputCatalinaOsOrHigher:"directInputCatalinaOsOrHigher",InGameGraphics:"inGameGraphics",UpScalingResolutionId:"upScalingResolutionId",AiSharpnessValue:"aiSharpnessValue",EnhancedSharpnessValue:"enhancedSharpnessValue",UpscalingModeUpdatedByUser:"upscalingModeUpdatedByUser",ClipboardPaste:"clipboardPaste",UdsSnoozeStopDateTime:"udsSnoozeStopDateTime",CustomModeHdr:"customModeHdr",CustomModeReflex:"customModeReflex",CustomModeCloudGsync:"customModeCloudGsync"},Ci_OFF_value=0,Ci_WARNINGS_value=1,or_networkQuality=Ci_WARNINGS_value,yr={BALANCED:{value:po.Balanced,displayName:"settings.streamingProfiles.balanced",translatedDisplayName:""},DATA_SAVER:{value:po.DataSaver,displayName:"settings.streamingProfiles.dataSaver",translatedDisplayName:""},COMPETITIVE:{value:po.Competitive,displayName:"settings.streamingProfiles.competitive",translatedDisplayName:""},CUSTOM:{value:po.Custom,displayName:"settings.streamingProfiles.custom",translatedDisplayName:""}},$r={OFF:{id:0,label:"common.off",value:4,name:es.Off},LOW:{id:1,label:"settings.resolutionUpscaling.sharpnessLow",value:0,name:es.Low},MEDIUM:{id:2,label:"settings.resolutionUpscaling.sharpnessMed",value:2,name:es.Medium},HIGH:{id:3,label:"settings.resolutionUpscaling.sharpnessHigh",value:3,name:es.High}},ko={STANDARD:{id:0,checked:!1,disabled:!1,value:Bs.Standard,displayName:"settings.resolutionUpscaling.standard",resolutionInfo:"settings.resolutionUpscaling.standardInfo"},ENHANCED:{id:1,checked:!0,disabled:!1,value:Bs.Enhanced,displayName:"settings.resolutionUpscaling.enhanced",resolutionInfo:"settings.resolutionUpscaling.enhancedInfo"},AI_ENHANCED:{id:2,checked:!1,disabled:!1,value:Bs.AiEnhanced,displayName:"settings.resolutionUpscaling.aiEnhanced",resolutionInfo:"settings.resolutionUpscaling.aiInfo",error:{1:"",2:"settings.resolutionUpscaling.aiWarning.dispFlagErrMinDrv",4:"",8:"",16:"",32:"",64:"",128:"settings.resolutionUpscaling.aiWarning.dispFlagErrNvPixelsLoad",512:"",1024:"",4096:""}},NV_SCALER:{id:3,value:Bs.NvScaler},NV_SHARP:{id:4,value:Bs.NvSharpen}},qr={ValueOff:{value:0,displayName:"common.off",enabled:!0},ValueOn:{value:1,displayName:"settings.streamingProfiles.on",enabled:!0},ValueAdaptive:{value:2,displayName:"settings.streamingProfiles.adaptive",enabled:!0}},ts={value:8,enabled:!1},Ya={balanced:{name:po.Balanced,description:"settings.streamingProfiles.balancedDescription",width:1920,height:1080,fps:60,maxBitrate:0,dataUsage:10,drc:!0,vSync:qr.ValueAdaptive.value,networkInfo:{},audioMode:Tr.wi.STEREO,bitDepth:ts.value},dataSaver:{name:po.DataSaver,description:"settings.streamingProfiles.dataSaverDescription",width:1280,height:720,fps:60,maxBitrate:12,dataUsage:4,drc:!0,vSync:qr.ValueAdaptive.value,networkInfo:{},audioMode:Tr.wi.STEREO,bitDepth:ts.value},competitive:{name:po.Competitive,description:"settings.streamingProfiles.competitiveDescription",width:1280,height:720,fps:60,maxBitrate:0,dataUsage:6,drc:!0,vSync:qr.ValueOff.value,networkInfo:{},audioMode:Tr.wi.STEREO,bitDepth:ts.value}},Pa={Value240:{value:240,displayName:"240 FPS",enabled:!1},Value120:{value:120,displayName:"120 FPS",enabled:!1},Value60:{value:60,displayName:"60 FPS",enabled:!0},Value30:{value:30,displayName:"30 FPS",enabled:!0}},ss={Ar_16_10:1.6,Ar_16_9:16/9,Ar_4_3:4/3,Ar_5_4:5/4,Ar_19_5_9:2.15,Ar_24_10:2.4,Ar_32_9:32/9,Ar_21_9_1:3440/1440,Ar_21_9_2:2560/1080,Ar_21_9_3:1680/720},Gs=[{ratio:ss.Ar_16_10,formattedRatio:"(16:10)"},{ratio:ss.Ar_16_9,formattedRatio:"(16:9)"},{ratio:ss.Ar_4_3,formattedRatio:"(4:3)"},{ratio:ss.Ar_5_4,formattedRatio:"(5:4)"},{ratio:ss.Ar_19_5_9,formattedRatio:"(19.5:9)"},{ratio:ss.Ar_24_10,formattedRatio:"(24:10)"},{ratio:ss.Ar_32_9,formattedRatio:"(32:9)"},{ratio:ss.Ar_21_9_1,formattedRatio:"(21:9)"},{ratio:ss.Ar_21_9_2,formattedRatio:"(21:9)"},{ratio:ss.Ar_21_9_3,formattedRatio:"(21:9)"}],ln={bitRateMin:5,bitRateMax:75};var Qi=function(j){return j.maxBitrate="maxBitrate",j.maxBitrateValue="maxBitrateValue",j.resolution="resolution",j.frameRate="frameRate",j.drc="drc",j.vSync="vSync",j.hdr="hdr",j.reflex="reflex",j.cloudGsync="cloudGsync",j.l4s="l4s",j.bitDepth="bitDepth",j}(Qi||{});const Vi=[Tr.q3.BETTER_PRODUCT,Tr.q3.HIGHER_RESOLUTION,Tr.q3.HIGHER_FPS,Tr.q3.SUPPORT_HDR,Tr.q3.LOWER_SESSION_QUEUE_WAIT_TIME,Tr.q3.HIGHER_SESSION_LENGTH,Tr.q3.SUPPORT_IN_GAME_SETTINGS_PERSISTENCE,Tr.q3.SUPPORT_CLOUD_GSYNC],Mr=[...Vi,Tr.q3.SUPPORT_REFLEX];var nr=function(j){return j[j.PROFILE_MAXBITRATE=99]="PROFILE_MAXBITRATE",j[j.PROFILE_RESOLUTION=100]="PROFILE_RESOLUTION",j[j.PROFILE_FPS=101]="PROFILE_FPS",j}(nr||{});const en=[{id:nr.PROFILE_MAXBITRATE,label:"settings.streamingProfiles.maxBitrate",displayByDefault:!0},{id:nr.PROFILE_RESOLUTION,label:"settings.streamingProfiles.resolution",displayByDefault:!0,hasBadgeImage:!0},{id:nr.PROFILE_FPS,label:"settings.streamingProfiles.framerate",displayByDefault:!0},{id:Tr.tk.PROFILE_VSYNC,label:"settings.streamingProfiles.vSync",displayByDefault:!0,clientFeatureToggleKey:"platformSupportVsync"},{id:Tr.tk.PROFILE_CLOUD_GSYNC,entitlementFlag:Tr.N1.CLOUD_GSYNC,upsellFlag:Tr.q3.SUPPORT_CLOUD_GSYNC,kbaLinkRedirect:At.r7.GfnPcCloudGsyncLearnMore},{id:Tr.tk.PROFILE_REFLEX,label:"settings.streamingProfiles.reflex",entitlementFlag:Tr.N1.ENABLED_REFLEX,upsellFlag:Tr.q3.SUPPORT_REFLEX},{id:Tr.tk.PROFILE_HDR,label:"settings.streamingProfiles.hdrStreaming",entitlementFlag:Tr.N1.HDR_ENABLED,upsellFlag:Tr.q3.SUPPORT_HDR},{id:Tr.tk.PROFILE_BIT_DEPTH,label:"settings.streamingProfiles.colorPrecision",entitlementFlag:Tr.N1.BIT_DEPTH,upsellFlag:Tr.q3.HIGHER_BIT_DEPTH,remoteFeatureToggleKey:"isBitDepthFeatureEnabled"},{id:Tr.tk.PROFILE_ADJUST_FOR_NETWORK,label:"settings.streamingProfiles.drc",displayByDefault:!0},{id:Tr.tk.PROFILE_L4S,label:"settings.streamingProfiles.l4sSetting",entitlementFlag:Tr.N1.ENABLED_L4S,upsellFlag:Tr.q3.SUPPORT_L4S,kbaLinkRedirect:At.r7.GfnPcl4sLearnMore,shortUrl:At.lp[At.r7.GfnPcl4sLearnMore],remoteFeatureToggleKey:"isL4SFeatureEnabled"}],Wt=[{id:nr.PROFILE_MAXBITRATE,label:"settings.streamingProfiles.maxBitrate",displayByDefault:!0},{id:nr.PROFILE_RESOLUTION,label:"settings.streamingProfiles.resolution",displayByDefault:!0,hasBadgeImage:!0},{id:nr.PROFILE_FPS,label:"settings.streamingProfiles.framerate",displayByDefault:!0},{id:Tr.tk.PROFILE_VSYNC,label:"settings.streamingProfiles.vSync",displayByDefault:!0,clientFeatureToggleKey:"platformSupportVsync"},{id:Tr.tk.PROFILE_ADJUST_FOR_NETWORK,label:"settings.streamingProfiles.drc",displayByDefault:!0}],On={platformSupportsCloudGsync:!1,isVrrCapableDisplay:!1,isGsyncDisplay:!1,cloudGsyncDependencies:{osSupportsCloudGsync:!1,driverSupportsCloudGsync:!1,minFpsForCloudGsync:60}};var Nt=function(j){return j.RESOLUTION_UPSCALE_DEFAULT_OPTION_ID="resolutionUpScaleDefaultOptionId",j.CLIPBOARD_PASTE_FEATURE_CONFIG="clipboardPasteFeatureConfig",j.BACKGROUND_WEBRTC_NETWORK_TEST="webRtcNetworkTestV2",j.ENABLE_BROWSER_IGSS="enableBrowserIGSS",j}(Nt||{});const gi=new Map([[Nt.RESOLUTION_UPSCALE_DEFAULT_OPTION_ID,{defaultValue:ko.STANDARD.id,subUseCaseName:no.Id.Other,mapperFn:j=>j.value[Nt.RESOLUTION_UPSCALE_DEFAULT_OPTION_ID]}],[Nt.CLIPBOARD_PASTE_FEATURE_CONFIG,{defaultValue:{isEnabled:!1,maxPasteBuffer:4096},subUseCaseName:no.Id.GxTargetGetClipboardPasteConfig,mapperFn:j=>j.value}],[Nt.ENABLE_BROWSER_IGSS,{defaultValue:!1,subUseCaseName:no.Id.GxTargetGetEnableBrowserIGSS,mapperFn:j=>j.value[Nt.ENABLE_BROWSER_IGSS]}],[Nt.BACKGROUND_WEBRTC_NETWORK_TEST,{defaultValue:{value:{enabled:!1,supportedZonesList:[],showUI:!1}},subUseCaseName:no.Id.Other,mapperFn:j=>j}]]),Bi=new Map([[Nt.BACKGROUND_WEBRTC_NETWORK_TEST,"webRtcNetworkTestV2"]]);var Mi=d(61958);let tr=(()=>{var j;class Ke{constructor(C,w,Q,me){this.loggingService=C,this.experienceControlService=w,this.configuration=Q,this.idmService=me,this.fetchedFeatureToggleValueMap=new Map,this.logger=this.loggingService.getLogger("CloudVariableHelperService"),this.idmService.accountStatusChanged.subscribe(()=>this.fetchedFeatureToggleValueMap?.clear())}getFeatureToggle(C,w={}){return w.configCheckEnabled&&!this.configuration.featureEnablement[w.useDifferentConfigAttributeName?Bi.get(C):C]?(this.logger.info("Feature disabled in config, returning default value"),(0,it.of)(gi.get(C).defaultValue)):this.fetchedFeatureToggleValueMap.has(C)?(0,it.of)(this.fetchedFeatureToggleValueMap.get(C)):this.fetchFeatureToggle(C,w)}fetchFeatureToggle(C,w={}){return this.experienceControlService.getCloudVariable(this.configuration.gxTarget.experiences[C],{variant:w.buildVariant??null},{useCache:w.useCache??!0,useNetworkTimeoutForCacheFallback:!0},no.Ky.GxTargetGetCloudVariable,gi.get(C).subUseCaseName,void 0,w.bypassClientRequestParamCheckForCache).pipe((0,wt.T)(Q=>{const me=gi.get(C).mapperFn(Q);return this.fetchedFeatureToggleValueMap.set(C,me),me}),(0,Un.W)(Q=>{this.logger.error(`Error while fetching feature toggle ${C}:`,Q);const me=gi.get(C).defaultValue;return(0,it.of)(me)}))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(no.BW),c.KVO(Mi.Vk),c.KVO(Ai.k_))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var mo=d(53461),Bo=d(55833);class is{static getUpScaleSettingList(){return Object.values(ko)}static getSharpnessList(){return Object.values($r)}static getUpScaleSetting(Ke){const we=is.getUpScaleSettingList().find(C=>C.id===Ke);return we&&{...we,checked:!0}}static getSharpnessbyProperty(Ke,we){return Object.values($r).find(C=>C[we]===Ke)||$r.LOW}static getSharpnessbyId(Ke){return is.getSharpnessbyProperty(Ke,"id")}static getSharpnessbyValue(Ke){return is.getSharpnessbyProperty(Ke,"value")}static isEnhanced(Ke){return Ke===ko.ENHANCED.id}static isAiEnhanced(Ke){return Ke===ko.AI_ENHANCED.id}static isNvScaler(Ke){return Ke===ko.NV_SCALER.id}static isNvSharpen(Ke){return Ke===ko.NV_SHARP.id}static isNvScalerOrNvSharpen(Ke){return is.isNvScaler(Ke)||is.isNvSharpen(Ke)}static isSharpnessOff(Ke){return Ke.name===es.Off}}class ha{static getTelemetrySettingDescription(Ke,we){let C="";switch(Ke){case oi.UpScalingResolutionId:C=is.getUpScaleSetting(we).value;break;case oi.AiSharpnessValue:case oi.EnhancedSharpnessValue:C=is.getSharpnessbyValue(we).name;break;case oi.UpscalingModeUpdatedByUser:C=we?Pt.T80.TRUE:Pt.T80.FALSE;break;case oi.NetworkQuality:C=this.getNetworkSettingTelemetryName(we);break;case oi.DiscordRichPresence:case oi.DirectInputPropertyName:case oi.InGameGraphics:case oi.CustomModeHdr:case oi.CustomModeReflex:case oi.CustomModeCloudGsync:C=this.getBooleanSettingTelemetryName(we);break;case oi.StreamingProfiles:C=we}return C}static getNetworkSettingTelemetryName(Ke){let we="";switch(Ke){case 0:we=dr.Off;break;case 1:we=dr.Warnings;break;case 2:we=dr.On}return we}static getBooleanSettingTelemetryName(Ke){return Ke?Pt.Txn.Enabled:Pt.Txn.Disabled}}var Ys=d(87687),Po=d(72945),cl=d(95346);let oa=(()=>{var j;class Ke{get showServerLocationCTA(){return this._showServerLocationCTA}set showServerLocationCTA(C){this._showServerLocationCTA=C}constructor(C,w,Q,me,Ye,bt,cn,Wn){this.loggingService=C,this.sharedStorageService=w,this.bridgeService=Q,this.telemetryService=me,this.telemetryUtilService=Ye,this.appConfig=bt,this.systemInfoService=cn,this._showServerLocationCTA=!1,this.logger=this.loggingService.getLogger("gfn/settingsService"),this.sharedSettingsStream=Wn.createStream(this.getSettingsData.bind(this)),this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.VsyncToggle).subscribe(xi=>{this.platformSupportsVsyncToggle=xi})}get networkWarningsEnabled$(){return this.sharedSettingsStream.get$().pipe((0,wt.T)(C=>(C?.networkQuality??or_networkQuality)===Ci_WARNINGS_value),(0,mo.F)())}setNetworkWarningsEnabled(C){this.logger.info(C?"Enabling":"Disabling","network warnings"),this.storeChangedSettings({settingType:oi.NetworkQuality,selectedOption:C?Ci_WARNINGS_value:Ci_OFF_value})}setPlayWithMobileNetworkEnabled(C){this.logger.info(C?"Enabling":"Disabling","play with mobile network"),this.storeChangedSettings({settingType:oi.PlayWithMobileNetwork,selectedOption:C})}isVsyncChangedAndToggleSupported(){return void 0!==this.currentVsyncValue&&void 0!==this.firstVsyncValue&&this.currentVsyncValue!==this.firstVsyncValue&&!this.platformSupportsVsyncToggle}setVsyncValue(C){void 0===this.firstVsyncValue?this.firstVsyncValue=C:this.currentVsyncValue=C}resetVsyncChanged(){this.firstVsyncValue=void 0,this.currentVsyncValue=void 0}getLinksUrl(C,w){C===Yr.ni.OSS_LICENSES&&(w="en_US");const Q=this.appConfig.redirect.serverUrl+w+"&page="+C;return this.logger.info(C+"url",Q),Q}getIohidConfigurable(){return this.ioHidConfig$||(this.ioHidConfig$=this.bridgeService.executeCommand(Qe.Ts.Common.Applicationcontrol.ReadConfig,{appname:"GeForceNOW"}).pipe((0,Bo.t)(1))),this.ioHidConfig$}getSwitchValue(C,w){let Q=!1;return(0,a.toArray)(C).forEach(Ye=>{if((0,a.includes)(Ye,w))return Q="true"===Ye.split("=")[1].trim(),Q}),Q}getSettingsData(){return this.sharedStorageService.readBlock(oi.BlockName)}storeChangedSettings(C,w=!0){const Q={};this.getSettingsData().subscribe(me=>{(0,a.isNull)(me)?(Q[C.settingType]=C.selectedOption,me=Q):me[C.settingType]=C.selectedOption,this.writeData(me,C,w)})}isCatalinaOsOrHigher(){return this.isMinCatalinaOs$||(this.isMinCatalinaOs$=this.systemInfoService.getSystemInfo([l.Lu.OSName,l.Lu.OSVersion]).pipe((0,wt.T)(C=>{if(this.logger.info("current OS: ",C.OSName,C.OSVersion),"macos"===C.OSName.toLowerCase()){const w=C.OSVersion.split("."),Q=parseInt(w[0],10),me=parseInt(w[1],10);return Q>=10&&me>=15}return!1}),(0,Bo.t)(1))),this.isMinCatalinaOs$}getClientPlatform(){return this.clientPlatform$||(this.clientPlatform$=this.systemInfoService.getSystemInfo([l.Lu.Platform]).pipe((0,wt.T)(C=>{let w;return w=l.zk.isAndroidPlatform()?"android":l.zk.isBrowserPlatform()?"browser":"desktop",w+C.Platform}),(0,Bo.t)(1))),this.clientPlatform$}writeData(C,w,Q=!0){this.sharedStorageService.writeBlock(oi.BlockName,C,!0).subscribe(me=>{Q&&this.sendTelemetry(w),this.sharedSettingsStream.refresh()},me=>{Q&&this.sendTelemetry(w,me.errorMessage)})}sendTelemetry(C,w=""){const Q={clientType:this.telemetryUtilService.getClientType(),settingLabel:C.settingType,settingValue:ha.getTelemetrySettingDescription(C.settingType,C.selectedOption),errorDetails:w},me=new Ys.l1U(Q);this.telemetryService.push(me)}persistInGameGraphicsEnabled(){return this.getSettingsData().pipe((0,wt.T)(C=>!!C?.inGameGraphics&&C.inGameGraphics))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Po.yQ),c.KVO(l.NZ),c.KVO(P.H0),c.KVO(cl.j),c.KVO(Mi.Vk),c.KVO(l.zW),c.KVO(xe.mZ))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();const Ht=Qe.Ts.Gfn.Streaming;let Tt=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye){this.loggingService=C,this.bridgeService=w,this.cloudVarService=Q,this.settingsService=me,this.telemetryService=Ye,this.isUpscalingVisibleSubject=new Be.m(1),this.isAiSupportedSubject=new Be.m(1),this.uiUpScaleDisplaySettingSubject=new Be.m(1),this.aiSharpnessSettingSubject=new Be.m(1),this.enhSharpnessSettingSubject=new Be.m(1),this.nvScalerNvSharpSupportSubject=new Be.m(1),this.logger=this.loggingService.getLogger("gfn/resolutionUpscaleService")}initialize(){this.setUpScalingOnAppLaunch()}saveSetting(C,w,Q=!1){this.settingsService.storeChangedSettings({settingType:oi[C],selectedOption:w},Q),Q&&C===vn.Resolution&&this.settingsService.storeChangedSettings({settingType:oi.UpscalingModeUpdatedByUser,selectedOption:!0})}fetchUpScaleDefaultOptionId(){return this.cloudVarService.getFeatureToggle(Nt.RESOLUTION_UPSCALE_DEFAULT_OPTION_ID).pipe((0,on.M)(C=>{this.logger.info(`Resolution upscale default Id from gxtarget is ${C}`)}))}isValidId(C){return"number"==typeof C&&!Number.isNaN(C)}sendUpscalingErrorTelemetry(C,w){const Q={settingType:C,selectedOption:null};(0,Vn.yU)(this.telemetryService.getDefaultClientConsentObserable(),this.telemetryService.getCommonDataObservable()).pipe((0,g.s)(1)).subscribe(me=>{this.settingsService.sendTelemetry(Q,w.toString())})}getNvScalerNvSharpSupport(){return this.nvScalerNvSharpSupportSubject.asObservable()}setNvScalerNvSharpSupport(C){this.nvScalerNvSharpSupportSubject.next(C)}getUpscalingVisibility(){return this.isUpscalingVisibleSubject.asObservable()}setUpscalingVisibility(C){this.isUpscalingVisibleSubject.next(C)}getAiSupport(){return this.isAiSupportedSubject.asObservable()}setAiSupport(C){this.isAiSupportedSubject.next(C)}getUpScaleDisplaySetting(){return this.uiUpScaleDisplaySettingSubject.asObservable()}setUpScaleDisplaySetting(C){const w=is.isNvScalerOrNvSharpen(C.id)?ko.ENHANCED:is.getUpScaleSetting(C.id);this.uiUpScaleDisplaySettingSubject.next(w)}getAiSharpnessSetting(){return this.aiSharpnessSettingSubject.asObservable()}setAiSharpnessSetting(C){this.aiSharpnessSettingSubject.next(C)}getEnhSharpnessSetting(){return this.enhSharpnessSettingSubject.asObservable()}setEnhSharpnessSetting(C){this.enhSharpnessSettingSubject.next(C)}setUpScalingOnAppLaunch(){if(l.zk.isBrowserLikePlatform())return;const C={filterSupportList:is.getUpScaleSettingList().map(w=>({filterId:w.id}))};this.bridgeService.executeCommand(Ht.GetMagnificationFilterSupportList,C).pipe((0,g.s)(1)).subscribe(w=>{if(this.logger.info("Supported magnification filters.",w),w.filterSupportList){const Q=w.filterSupportList.find(Wn=>is.isEnhanced(Wn.filterId)),me=!!Q?.MagnificationFilterSupport;if(this.setUpscalingVisibility(me),!me)return void this.sendUpscalingErrorTelemetry(li.Enhanced,Q?.FrameFilterErrorInfo);const Ye=w.filterSupportList.find(Wn=>is.isNvScaler(Wn.filterId)),bt=w.filterSupportList.find(Wn=>is.isNvSharpen(Wn.filterId)),cn=w.filterSupportList.find(Wn=>is.isAiEnhanced(Wn.filterId));this.handleUpScaleSetting(Ye,bt,cn)}},w=>{this.logger.error("Magnification filter error.",w)})}handleUpScaleSetting(C,w,Q){const me=!!C?.MagnificationFilterSupport,Ye=!!w?.MagnificationFilterSupport,bt=!!Q?.MagnificationFilterSupport,cn=Q?.FrameFilterErrorInfo,Wn=ko.AI_ENHANCED.error[cn];this.setNvScalerNvSharpSupport({isNvScalerSupported:me,isNvSharpenSupported:Ye}),this.setAiSupport({isAiSupported:bt,aiErrorMessage:Wn}),this.settingsService.getSettingsData().pipe((0,g.s)(1)).subscribe(xi=>{let Yi=xi?.upScalingResolutionId;const fr=xi?.upscalingModeUpdatedByUser,Gr=is.getSharpnessbyValue(xi?.aiSharpnessValue),ao=is.getSharpnessbyValue(xi?.enhancedSharpnessValue);if(this.setAiSharpnessSetting(Gr),this.setEnhSharpnessSetting(ao),bt||(this.sendUpscalingErrorTelemetry(li.AiEnhanced,cn),is.isAiEnhanced(Yi)&&(Yi=null)),this.isValidId(Yi)&&fr)switch(this.setMagnificationFilter(Yi),Yi){case ko.AI_ENHANCED.id:this.setSharpnessFilter(Gr);break;case ko.ENHANCED.id:(me||Ye)&&this.setSharpnessFilter(ao)}else this.fetchUpScaleDefaultOptionId().pipe((0,g.s)(1)).subscribe(Eo=>{this.setMagnificationFilter(Eo),this.saveSetting(vn.Resolution,Eo,!1),(me||Ye)&&this.setSharpnessFilter(ao)},Eo=>{this.logger.error("Failed to get default upscale id from GXT ",Eo)})},xi=>{this.logger.error("Failed to get settings ",xi)})}setMagnificationFilter(C){let w;(0,Vt.zV)([this.getNvScalerNvSharpSupport(),this.getEnhSharpnessSetting()]).pipe((0,g.s)(1)).subscribe(([Q,me])=>{!is.isSharpnessOff(me)&&is.isEnhanced(C)&&(w=Q.isNvScalerSupported&&ko.NV_SCALER.id||Q.isNvSharpenSupported&&ko.NV_SHARP.id),this.processMagnificationFilter(w||C)})}processMagnificationFilter(C){const w=is.getUpScaleSetting(C);w&&this.bridgeService.executeCommand(Ht.SetMagnificationFilter,{filterId:w.id}).pipe((0,g.s)(1)).subscribe(()=>{this.setUpScaleDisplaySetting(w),this.logger.info("Resolution upscaling changed to ",w.id,w.value)},me=>{this.logger.error("Failed to change resolution upscaling to ",w.id,w.value,me)})}setSharpnessFilter(C){const w=C.value;this.bridgeService.executeCommand(Ht.SetMagnificationFilterSharpness,{sharpness:w}).pipe((0,g.s)(1)).subscribe(()=>{this.logger.info("Sharpness changed to ",w)},me=>{this.logger.error("Failed to change sharpness to ",w,me)})}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(l.NZ),c.KVO(tr),c.KVO(oa),c.KVO(P.H0))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Ln=d(56237),jt=d(43780),ti=d(50961),wo=function(j){return j.Windows="Windows",j.Mac="Mac",j}(wo||{});var sa=function(j){return j.Development="dev",j.Staging="stage",j.Preview="preview",j.Production="prod",j}(sa||{}),zr=function(j){return j[j.UnKnown=0]="UnKnown",j[j.ServerError=1]="ServerError",j[j.LoggedOut=2]="LoggedOut",j[j.UnEntitled=3]="UnEntitled",j[j.Entitled=4]="Entitled",j}(zr||{});const eo={eComFeatureEnabled:!1,membershipStatus:zr.UnKnown,subscription:null,product:null,affiliateStatus:null,unentitledUserData:null};var Io=function(j){return j.SettingsMembershipPanel="SETTINGS_MEMBERSHIP_PANEL",j.EntitlementErrorComponent="ENTITLEMENT_ERROR_COMPONENT",j.LoadingComponent="LOADING_COMPONENT",j.ToolbarComponent="TOOLBAR_COMPONENT",j.MembershipUpdateProgressEcomUIState="MEMBERSHIP_UPDATE_PROGRESS_ECOM_UI_STATE",j.MembershipNotUpdatedEcomUIState="MEMBERSHIP_NOT_UPDATED_ECOM_UI_STATE",j.SettingsStreamingProfilePanel="SETTINGS_STREAMING_PROFILE_PANEL",j.SettingsInGameGraphicsPanel="SETTINGS_IN_GAME_GRAPHICS_SETTINGS_PANEL",j.CheckoutUpdateProgressEcomUIState="CHECKOUT_UPDATE_PROGRESS_ECOM_UI_STATE",j.CheckoutNotUpdatedEcomUIState="CHECKOUT_NOT_UPDATED_ECOM_UI_STATE",j.StreamingError="STREAMING_ERROR",j.MembershipTimeNotUpdatedEcomUIState="MEMBERSHIP_TIME_NOT_UPDATED_ECOM_UI_STATE",j.TimeCappedSessionLimitReachedComponent="TIME_CAPPED_SESSION_LIMIT_REACHED_COMPONENT",j.ViewOrAddPlaytimeBannerComponent="TIME_CAPPED_VIEW_ADD_PLAYTIME_BANNER",j}(Io||{}),Jr=function(j){return j[j.InitialState=0]="InitialState",j[j.MembershipUpdateProgress=1]="MembershipUpdateProgress",j[j.MembershipRefreshError=2]="MembershipRefreshError",j[j.MembershipNotUpdated=3]="MembershipNotUpdated",j[j.ExitedToLogin=4]="ExitedToLogin",j[j.CheckoutUpdateProgress=5]="CheckoutUpdateProgress",j[j.CheckoutRefreshError=6]="CheckoutRefreshError",j[j.CheckoutNotUpdated=7]="CheckoutNotUpdated",j[j.MembershipUpdatetimeProgress=8]="MembershipUpdatetimeProgress",j[j.MembershipTimeNotUpdated=9]="MembershipTimeNotUpdated",j[j.AddDayPassMembershipProgress=10]="AddDayPassMembershipProgress",j}(Jr||{}),kr=function(j){return j[j.BridgeState=0]="BridgeState",j[j.Join=1]="Join",j[j.MaxSessionLengthExceeded=2]="MaxSessionLengthExceeded",j[j.QueueLimitExceeded=3]="QueueLimitExceeded",j[j.GaaSFree1HourExceeded=4]="GaaSFree1HourExceeded",j[j.GaaSUnsupportedFreeTitle=5]="GaaSUnsupportedFreeTitle",j[j.GaaSFreeSampleAlreadyUsed=6]="GaaSFreeSampleAlreadyUsed",j[j.GaaSFreeUserCanUpgrade=7]="GaaSFreeUserCanUpgrade",j}(kr||{}),as=d(18568),ho=d(27731),rr=d(15652),ga=d(7583);class qs{constructor(Ke){this.closingNotifier=Ke}call(Ke,we){return we.subscribe(new Ia(Ke,this.closingNotifier))}}class Ia extends ga.gn{constructor(Ke,we){super(Ke),this.buffer=[],this.add((0,ga.tS)(we,new ga.zA(this)))}_next(Ke){this.buffer.push(Ke)}notifyNext(){const Ke=this.buffer;this.buffer=[],this.destination.next(Ke)}}var ea=d(14749);const za=(j,Ke)=>[j,Ke];function dl(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"gfn-join-now",5),c.bIt("primaryButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.onPrimaryButtonClicked(w))})("loginButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.onLoginButtonClicked(w))})("closeButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.oncloseButtonClicked(w))}),c.k0s()}if(2&j){const we=c.XpG();c.Y8G("data",we.data)}}function Co(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"gfn-membership-update-progress",6),c.bIt("primaryButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.onPrimaryButtonClicked(w))})("closeButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.oncloseButtonClicked(w))}),c.k0s()}if(2&j){const we=c.XpG();c.Y8G("data",we.data)}}function js(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"gfn-membership-refresh-error",7),c.bIt("closeButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.oncloseButtonClicked(w))}),c.k0s()}if(2&j){const we=c.XpG();c.Y8G("data",we.data)}}function Ts(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"gfn-membership-not-updated",7),c.bIt("closeButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.oncloseButtonClicked(w))}),c.k0s()}if(2&j){const we=c.XpG();c.Y8G("data",we.data)}}function ks(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"gfn-playtime-update-progress",6),c.bIt("primaryButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.onPrimaryButtonClicked(w))})("closeButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.oncloseButtonClicked(w))}),c.k0s()}if(2&j){const we=c.XpG();c.Y8G("data",we.data)}}function la(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"gfn-playtime-not-updated",7),c.bIt("closeButtonClicked",function(w){c.eBV(we);const Q=c.XpG();return c.Njj(Q.oncloseButtonClicked(w))}),c.k0s()}if(2&j){const we=c.XpG();c.Y8G("data",we.data)}}let vl=(()=>{var j;class Ke{get closeResult(){return[this.isEcomPlanChanged,this.currentUIState]}constructor(C,w){this.dialogRef=C,this.data=w,this.currentUIState=Jr.InitialState,this.ecomUIState=Jr,this.destroy$=new p.B7,this.lastEntitlement=null,this.isEcomPlanChanged=!1,this.membershipUpdateProgressPrimaryButtonClicked=!1}ngOnInit(){this.currentUIState=this.data.ecomUIState,this.initEcommerceSub()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}onPrimaryButtonClicked(C){if(this.currentUIState===Jr.InitialState)this.goToNextEcomDlgUIState(Jr.MembershipUpdateProgress);else if(this.currentUIState===Jr.MembershipUpdateProgress||this.currentUIState===Jr.MembershipUpdatetimeProgress){if(this.data.useCase===kr.GaaSFree1HourExceeded||this.data.useCase===kr.GaaSFreeSampleAlreadyUsed||this.data.useCase===kr.GaaSUnsupportedFreeTitle)return this.goToNextEcomDlgUIState(Jr.ExitedToLogin),this.closeDialog(),void this.data.buttonClickCallback(Jr.ExitedToLogin);this.membershipUpdateProgressPrimaryButtonClicked=!0}}onLoginButtonClicked(C){this.currentUIState===Jr.InitialState&&(this.goToNextEcomDlgUIState(Jr.ExitedToLogin),this.closeDialog())}oncloseButtonClicked(C){this.closeDialog()}initEcommerceSub(){this.data.getUserMembership$.pipe((0,h.Q)(this.destroy$)).subscribe(C=>{const w=(0,a.get)(C,"subscription.productSku"),Q=(0,a.get)(C,"subscription.remainingTimeInMinutes");null!==this.lastEntitlement?(this.isEcomPlanChanged=this.isPlanChanged(w),this.isEcomPlanChanged||this.currentUIState===Jr.MembershipUpdatetimeProgress&&this.isPlaytimeChanged(Q)?this.closeDialog():this.membershipUpdateProgressPrimaryButtonClicked&&this.goToErrorOrRefreshState(C),this.lastEntitlement={productSku:w,remainingTimeInMinutes:Q}):this.lastEntitlement={productSku:w,remainingTimeInMinutes:Q}})}isPlanChanged(C){return this.lastEntitlement.productSku!==C}isPlaytimeChanged(C){return this.lastEntitlement.remainingTimeInMinutes<C}goToErrorOrRefreshState(C){this.goToNextEcomDlgUIState(C.membershipStatus===zr.ServerError||C.membershipStatus===zr.UnKnown?Jr.MembershipRefreshError:this.currentUIState===Jr.MembershipUpdatetimeProgress?Jr.MembershipTimeNotUpdated:Jr.MembershipNotUpdated)}closeDialog(){this.dialogRef.close(this.closeResult)}goToNextEcomDlgUIState(C){this.currentUIState=C}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(n.CP),c.rXU(n.Vh))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-ecom-dialog"]],decls:9,vars:12,consts:[["nvBackToCloseModal","","nvTrapFocus","",3,"ngClass","backToCloseResult"],["fxFlexFill","","fxLayout","column","fxFlex","grow",3,"ngSwitch"],[3,"data","primaryButtonClicked","loginButtonClicked","closeButtonClicked",4,"ngSwitchCase"],[3,"data","primaryButtonClicked","closeButtonClicked",4,"ngSwitchCase"],[3,"data","closeButtonClicked",4,"ngSwitchCase"],[3,"primaryButtonClicked","loginButtonClicked","closeButtonClicked","data"],[3,"primaryButtonClicked","closeButtonClicked","data"],[3,"closeButtonClicked","data"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"div",1),c.DNE(2,dl,1,1,"gfn-join-now",2)(3,Co,1,1,"gfn-membership-update-progress",3)(4,js,1,1,"gfn-membership-refresh-error",4)(5,Ts,1,1,"gfn-membership-not-updated",4)(6,ks,1,1,"gfn-playtime-update-progress",3)(7,la,1,1,"gfn-playtime-not-updated",4),c.nrm(8,"div"),c.k0s()()),2&C&&(c.Y8G("ngClass",c.l_i(9,za,w.data.isStreamerApp?"joinnow-component-container-streamer":"joinnow-component-container-mall",w.data.isCompactDialog?"joinnow-compact-dialog-container":""))("backToCloseResult",w.closeResult),c.R7$(),c.Y8G("ngSwitch",w.currentUIState),c.R7$(),c.Y8G("ngSwitchCase",w.ecomUIState.InitialState),c.R7$(),c.Y8G("ngSwitchCase",w.ecomUIState.MembershipUpdateProgress),c.R7$(),c.Y8G("ngSwitchCase",w.ecomUIState.MembershipRefreshError),c.R7$(),c.Y8G("ngSwitchCase",w.ecomUIState.MembershipNotUpdated),c.R7$(),c.Y8G("ngSwitchCase",w.ecomUIState.MembershipUpdatetimeProgress),c.R7$(),c.Y8G("ngSwitchCase",w.ecomUIState.MembershipTimeNotUpdated))},styles:[":root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.joinnow-component-container-mall,.joinnow-component-container-streamer{width:470px;height:668px}.joinnow-component-container-mall.joinnow-compact-dialog-container,.joinnow-component-container-streamer.joinnow-compact-dialog-container{height:100%}.joinnow-component-container-mall,.joinnow-component-container-streamer,.mat-mdc-dialog-container{border-radius:0;overflow:hidden;transition:height .5s;background-color:#1f2224;padding:0}.joinnow-component-container-streamer{height:618px}@media (max-height: 668px){.joinnow-component-container-mall,.mat-mdc-dialog-container{height:100%}.main-content-mall{height:550px}.main-content-mall .dialog-content{height:136px!important}}@media (max-width: 959.98px) and (orientation: landscape){.joinnow-component-container-mall,.joinnow-component-container-streamer{width:560px;height:-moz-fit-content;height:fit-content}.mat-mdc-dialog-container:has(gfn-ecom-dialog){height:-moz-fit-content;height:fit-content}}@media (max-width: 599.98px) and (orientation: portrait),screen and (max-width: 568px) and (max-height: 320px) and (orientation: landscape){.joinnow-component-container-mall,.joinnow-component-container-streamer{width:calc(100vw - 32px);height:-moz-fit-content;height:fit-content}.mat-mdc-dialog-container:has(gfn-ecom-dialog){height:-moz-fit-content;height:fit-content}}.tv-view .joinnow-component-container-mall,.tv-view .joinnow-component-container-streamer{width:840px;height:925px}\n"],encapsulation:2}),Ke})();var Ws=d(43117),Oa=d(12532),Pr=d(2490),Cl=d(10785),Zo=d(70521),Ai=d(24682),lt=d(80838);const St={id:null,title:null,shortDescription:null,longDescription:null,assets:null};let Ve=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi){this.nesSdk=C,this.idmService=w,this.gridService=Q,this.appConfig=me,this.localeService=Ye,this.sharedStorageService=bt,this.serviceWorkerService=cn,this.distributedTracingUtilService=Wn,this.storageKeySubscription="Subscription",this.storageKeyNesResolutions="NesResolutions_v3",this.subscriptionNetworkFetchedNoUpdate$=new Be.m(1),this.logger=xi.getLogger("NesEntitlementService"),this.processedSubscriptionResponse$=new Be.m(1),this.initServiceWorkerNotifications()}initServiceWorkerNotifications(){this.serviceWorkerService.swCacheUpdated.pipe((0,ge.p)(C=>C.name===Zo.fR.staleWhileRevalidate.subscriptions.cacheName),(0,g.s)(1),(0,nt.ZZ)(C=>{if(C.noDataUpdate)throw this.subscriptionNetworkFetchedNoUpdate$.next(!0),new Error("no update in data");return(0,it.of)(C)}),(0,si.E)(this.idmService.accountStatusChanged),(0,nt.ZZ)(([C,w])=>{this.logger.info("Subscription SW Cache updated, relaying updated data.",C.data);const Q=new URL(C.url);if(Q.searchParams.has("userId")){const me=Q.searchParams.get("userId");return w.isAuthenticated&&w.userId===me?this.handleSubscriptionResponse({subscription:C.data},w):Oa.w}return Oa.w})).subscribe(C=>{this.processedSubscriptionResponse$.next(C)},C=>{this.logger.warn("ending sw cache observable: ",C)}),this.serviceWorkerService.networkResponseReceived.pipe((0,ge.p)(C=>C.cacheName===Zo.fR.staleWhileRevalidate.subscriptions.cacheName&&404===C.responseStatusCode),(0,si.E)(this.idmService.accountStatusChanged),(0,nt.ZZ)(([C,w])=>this.handleSubscriptionResponse(null,w))).subscribe(C=>{const w=this.distributedTracingUtilService.startSpan(Pr.pB.GetEntitlementStatus);this.distributedTracingUtilService.setSpanAttribute(w,Pr.NS.Error,!0),this.processSubscriptionResponse(C,w)})}get subscriptionNetworkFetchedNoUpdate(){return this.subscriptionNetworkFetchedNoUpdate$.asObservable()}getUserEntitlement(C,w,Q,me){if(w?.useCache)return this.getSubscriptionSharedStorageBlock(C).pipe((0,nt.ZZ)(Ye=>{const bt=Ye.data;if(this.cacheIsCurrent(bt,w.cacheLifetimeOverride))return this.returnSubscriptionResponse(bt);if(Q)return(0,Ut.$)(me);{const cn=this.distributedTracingUtilService.startSpan(Pr.pB.GetEntitlementStatus);return this.getUserEntitlementFromServer(cn,C)}}));{const Ye=this.distributedTracingUtilService.startSpan(Pr.pB.GetEntitlementStatus);return this.getUserEntitlementFromServer(Ye,C)}}getClientStreamingQuality(C){if(C?.useCache)return this.unentitledUserData?(0,it.of)(this.unentitledUserData):this.getNesResolutionSharedStorageBlock().pipe((0,nt.ZZ)(w=>{const Q=w.data;if(Q?.resolutions&&Q.resolutions.length>0&&this.cacheIsCurrent(Q,C.cacheLifetimeOverride))return this.unentitledUserData=Q,(0,it.of)(Q);{const me=this.distributedTracingUtilService.startSpan(Pr.pB.ClientStreamingQuality);return this.getClientStreamingQualityFromServer(me)}}));{const w=this.distributedTracingUtilService.startSpan(Pr.pB.ClientStreamingQuality);return this.getClientStreamingQualityFromServer(w)}}getUserEntitlementFromServer(C,w,Q=!1){return this.getVpcIdLocaleAndToken(C,Q).pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye,bt])=>{if(this.logger.info("vpcId and delegate token resolved ",me),(0,a.isNil)(bt))return this.logger.error("invalid auth token"),(0,Ut.$)("failed to get auth token");const cn={languageCode:Ye,vpcId:me,userId:w.userId};return this.distributedTracingUtilService.setSpanAttribute(C,Pr.NS.VpcId,me),this.distributedTracingUtilService.setSpanAttribute(C,Pr.NS.Locale,Ye),this.nesSdk.getUserSubscription(cn,bt,C).pipe((0,nt.ZZ)(Wn=>this.handleSubscriptionResponse(Wn,w)),(0,nt.ZZ)(Wn=>this.processSubscriptionResponse(Wn,C)),(0,Un.W)(Wn=>404===Wn.status?this.handleAndProcessSubscriptionResponse(w,C):this.idmService.handleAuthError(Wn,Q,this.getUserEntitlementFromServer.bind(this),C,w)))}),(0,Un.W)(me=>(this.distributedTracingUtilService.setSpanAttribute(C,Pr.NS.Error,!0),this.distributedTracingUtilService.closeSpan(C),this.handleServerErrorResponse(me,w))))}handleAndProcessSubscriptionResponse(C,w){return this.handleSubscriptionResponse(null,C).pipe((0,nt.ZZ)(Q=>this.processSubscriptionResponse(Q,w)))}processSubscriptionResponse(C,w){return this.processedSubscriptionResponse$.next(C),this.distributedTracingUtilService.closeSpan(w),this.processedSubscriptionResponse$.asObservable()}handleServerErrorResponse(C,w){return this.getUserEntitlement(w,{useCache:!0},!0,C)}handleSubscriptionResponse(C,w){if(!(0,a.isNil)(C?.subscription)&&!(0,a.isNil)(C?.subscription.productUri))return this.nesSdk.getProductInfo(C.subscription.productUri).pipe((0,wt.T)(Q=>({product:Q,...C})),(0,Un.W)(Q=>(this.logger.error("failed to get product info: ",Q),(0,it.of)({product:St,...C}))),(0,nt.ZZ)(Q=>(this.setSubscriptionSharedStorageBlock(Q,w),this.returnSubscriptionResponse(Q))));{const Q={product:St,...C};return this.setSubscriptionSharedStorageBlock(Q,w),this.returnSubscriptionResponse(Q)}}returnSubscriptionResponse(C){const w=(0,a.omit)(C,"cacheRefreshDate");return(0,it.of)(w)}getVpcIdLocaleAndToken(C,w=!1){const Q=this.localeService.localeChanged,me=this.gridService.vpcId$.pipe((0,mo.F)());return(0,Vt.zV)([me,Q]).pipe((0,nt.ZZ)(([Ye,bt])=>this.idmService.getAuthToken(w,C).pipe((0,wt.T)(cn=>[Ye,bt,cn||null]))))}getSubscriptionSharedStorageBlock(C){return this.sharedStorageService.readBlock(this.getSubscriptionStorageKey(C)).pipe((0,nt.ZZ)(w=>(0,it.of)(w||{})))}setSubscriptionSharedStorageBlock(C,w){this.updateExperimentRefreshDate(C);const Q={data:C};this.sharedStorageService.writeBlock(this.getSubscriptionStorageKey(w),Q).subscribe(me=>{this.logger.verbose(`write status to shared storage: ${me}`)},me=>{this.logger.error("Error while writing to shared storage",me)})}updateExperimentRefreshDate(C){return C.cacheRefreshDate=new Date,C}getSubscriptionStorageKey(C){return this.storageKeySubscription+"_"+(C&&C.isAuthenticated?C.userId:void 0)}cacheIsCurrent(C,w=this.appConfig.nes.cacheMaxAge){return-1===w?!!C:!!(C&&Cl(new Date).diff(Cl(this.getExperimentRefreshDate(C)),"minutes")<=w)}getExperimentRefreshDate(C){return C.cacheRefreshDate}getClientStreamingQualityFromServer(C){const w=this.localeService.localeChanged,Q=this.gridService.vpcId$.pipe((0,mo.F)());return(0,Vt.zV)([Q,w]).pipe((0,nt.ZZ)(([me,Ye])=>(this.logger.info("getClientStreamingQualityFromServer vpcId,Locale resolved: ",me),this.nesSdk.getClientStreamingQuality({languageCode:Ye,vpcId:me},C).pipe((0,wt.T)(cn=>(this.logger.info("getClientStreamingQuality response from server: ",cn),this.unentitledUserData=cn,this.setNesResolutionSharedStorageBlock(this.unentitledUserData),this.unentitledUserData)),(0,Un.W)(cn=>(this.logger.error("getClientStreamingQualityFromServer error: ",cn),(0,Ut.$)(cn)))))),(0,Un.W)(me=>(this.logger.error("getClientStreamingQualityFromServer vpcId/Locale error: ",me),(0,Ut.$)(me))),(0,g.s)(1))}getNesResolutionSharedStorageBlock(){return this.sharedStorageService.readBlock(this.storageKeyNesResolutions).pipe((0,nt.ZZ)(C=>(0,it.of)(C||{})))}setNesResolutionSharedStorageBlock(C){const w={data:C};this.updateExperimentRefreshDate(w.data),this.sharedStorageService.writeBlock(this.storageKeyNesResolutions,w).subscribe(Q=>{this.logger.info("write status to shared storage: ",Q)},Q=>{this.logger.error("Error while writing to shared storage",Q)})}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(as.c4),c.KVO(Ai.k_),c.KVO(lt.G),c.KVO(Mi.Vk),c.KVO(l.iH),c.KVO(Po.yQ),c.KVO(Zo.lS),c.KVO(Pr.Z1),c.KVO(l.J6))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var qe=d(22600),hn=d(14354),hi=d(93528);function sr(j,Ke){return j.isLimitedStateAlert===Ke.isLimitedStateAlert&&j.isLowStateAlert===Ke.isLowStateAlert}const le={header:"ecommerce.membershipUpdateProgressDialog.title",description:"ecommerce.membershipUpdateProgressDialog.compactDialogDescription",tvDescription:"ecommerce.membershipUpdateProgressDialog.compactDialogTvDescription",primaryButton:{text:"common.continue",accentColor:!0},secondaryButton:{text:"common.close"}},Nn={header:"ecommerce.membershipNotUpdatedErrorDialog.title",description:"ecommerce.membershipNotUpdatedErrorDialog.description",primaryButton:{text:"common.close"}},Mo={header:"ecommerce.playtimeNotUpdatedDialog.title",description:"ecommerce.playtimeNotUpdatedDialog.description",primaryButton:{text:"common.close"}};let Ao=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls,ws,xl,Au,Fh,Dg){this.localeService=C,this.nesEntitlementService=w,this.systemInfoService=Q,this.telemetryService=me,this.gridService=Ye,this.telemetryUtilService=bt,this.dialog=cn,this.router=Wn,this.bridgeService=xi,this.gfnSdkService=Yi,this.idmService=fr,this.offDeviceLinkService=Gr,this.refreshUiService=ao,this.remoteConfigService=Eo,this.appConfig=ls,this.focusManager=ws,this.genericDialog=xl,this.redirectService=Au,this.refeshUiService=Fh,this.platform$=new Be.m(1),this.userMembership$=new J.t(eo),this.userMembership=Object.assign({},eo),this.isManualLogin=null,this.autoRefreshInterval=432e5,this.refreshEntitlement$=null,this.subscriptionProcessed$=new p.B7,this.userEntitlementSubscription=null,this.jarvisIdpId="",this.lastEntitlement=null,this.minimumNonZeroProgressValue=.5,this.maximumNon100ProgressValue=99.5,this.logger=Dg.getLogger("EcommerceService"),this.tvMode=!!ls?.featureEnablement?.tvMode,this.detectPlatform(),this.redirectUrl=ls.redirect.serverUrl,this.redirectEnv=ls.redirect.environment,this.clientVersion=(0,a.get)(ls,"build.version"),this.canClientHardUpsell=ls.upsellPresentation.canHardUpsell,this.redirectEnvMap=new Map,this.jarvisIdpId=ls.starfleet.jarvisIdpId,this.intervalEventTriggered$=new Be.m(1),this.refreshSubscriptionAfterExpiry=ls.client?.clientSubRefreshAfterExpiryDelayMS,this.timeCappedFeatureEnabled=!!ls?.productV2?.timeCapSKUEnabled,this.initTimerEvents().subscribe(),this.buildRedirectionEnvMap()}initialize(){this.checkUserMembershipStatus(),this.initPushNotifications(),l.zk.isAndroidPlatform()&&this.userMembership$.asObservable().pipe((0,ge.p)(C=>!!C?.subscription?.productSku),(0,nt.ZZ)(C=>this.bridgeService.executeCommand(Qe.Ts.Common.Subscriptioninfo.InitializeSubscriptionProductSku,{value:C.subscription.productSku})),(0,g.s)(1)).subscribe(),this.remoteConfigService.remoteConfigFetched$.subscribe(C=>{C.config?.upsellPresentation&&(!0===C.config.upsellPresentation.canHardUpsell||!1===C.config.upsellPresentation.canHardUpsell)&&(this.canClientHardUpsell=C.config.upsellPresentation.canHardUpsell)}),this.nesEntitlementService.subscriptionNetworkFetchedNoUpdate.pipe((0,g.s)(1),(0,nt.ZZ)(C=>(C&&(this.userMembership.isCached=!1),this.checkEntitlement(!0)))).subscribe()}get closeResult(){return[this.isEcomPlanChanged,this.currentUIState,this.isPlaytimeAdded,this.isDayPassAdded]}checkEntitlement(C){if(!0===this.appConfig.featureEnablement.UASAutoEntitle&&this.userMembership.membershipStatus===zr.UnEntitled){if(!this.userMembership.isCached)return this.logger.info("uas auto entitlement enabled, logging out unentitled user"),this.idmService.logout(null,null,null,!0).pipe((0,mt.u)(C));this.logger.info("unentitled cached user, will not log out")}return(0,it.of)(C)}buildRedirectionEnvMap(){this.redirectEnvMap.set(sa.Development,"d"),this.redirectEnvMap.set(sa.Staging,"s"),this.redirectEnvMap.set(sa.Preview,"w"),this.redirectEnvMap.set(sa.Production,"p")}listenSubscriptionRefreshNotification(){return this.refreshUiService.subscriptionRefresh$.pipe((0,nt.ZZ)(C=>(this.logger.info("Refresh Subscription",C?.source),this.checkUsersEntitlement(!0))))}initPushNotifications(){this.listenSubscriptionRefreshNotification().subscribe()}checkUserMembershipStatus(){this.idmService.accountStatusChanged.pipe(function aa(j){return function(we){return we.lift(new qs(j))}}(this.gridService.vpcId$.pipe((0,Un.W)(()=>(0,it.of)(null)))),(0,ge.p)(C=>C.length>0),(0,nt.ZZ)(C=>(C.length&&(this.user=(0,a.last)(C)),this.logger.info("user account change received authentication status: ",this.user.isAuthenticated),this.userMembership=Object.assign({},eo),this.user.isAuthenticated||(this.userMembership.membershipStatus=zr.LoggedOut),this.userMembership.eComFeatureEnabled=!0,this.checkUsersEntitlement())),(0,Un.W)(C=>(this.logger.error("Error in get userinfo and affiliate status: ",C),(0,it.of)(null)))).subscribe()}checkUsersEntitlement(C=!1){const w=(0,Ii.tE)(this.router.url),Q=!C&&w&&!this.isManualLogin;return this.userMembership.membershipStatus===zr.LoggedOut?this.getClientStreamingQuality(w).pipe((0,nt.ZZ)(me=>(this.logger.info("Got ClientStreamingQuality: ",me),this.userMembership.unentitledUserData=me,this.userMembership$.next({...this.userMembership}),(0,it.of)(null)))):(this.userEntitlementSubscription&&(this.userEntitlementSubscription.unsubscribe(),this.userEntitlementSubscription=null,this.subscriptionProcessed$&&(this.subscriptionProcessed$.complete(),this.subscriptionProcessed$=null,this.subscriptionProcessed$=new p.B7)),this.userEntitlementSubscription=this.nesEntitlementService.getUserEntitlement(this.user,{useCache:Q,cacheLifetimeOverride:w?-1:void 0}).pipe((0,Bo.t)(1),(0,nt.ZZ)(me=>{if(this.userMembership.membershipStatus===zr.LoggedOut)return this.logger.info("user subscription revolved for last user"),ho.t;const{product:Ye,...bt}=me;return this.logger.info("user subscription: ",bt),this.userMembership.subscription=me.subscription,this.userMembership.product=me.product,this.userMembership.isCached=me.isCached,this.userMembership.lastFetchDateTime=new Date,(0,a.isNil)(me.subscription)?(this.userMembership.membershipStatus=zr.UnEntitled,this.getClientStreamingQuality(w).pipe((0,nt.ZZ)(cn=>(this.logger.info("Got ClientResolutions: ",cn),this.userMembership.unentitledUserData=cn,this.userMembership$.next({...this.userMembership}),this.initTimedEntitlementRefresh(),this.subscriptionProcessed$.next(me),(0,it.of)(me))))):(this.userMembership.membershipStatus=zr.Entitled,this.userMembership$.next({...this.userMembership}),this.initTimedEntitlementRefresh(),this.subscriptionProcessed$.next(me),(0,it.of)(me))}),(0,Un.W)(me=>(this.logger.error("error in fetching user entitlement: ",me),this.userMembership.membershipStatus=zr.ServerError,this.userMembership$.next({...this.userMembership}),this.initTimedEntitlementRefresh(),this.subscriptionProcessed$.next(null),(0,it.of)(null))),(0,nt.ZZ)(me=>this.checkEntitlement(me))).subscribe(()=>{this.refreshUiService.setContentExpiryInfo(Ws.sD.Subscription),this.logger.info("User membership fetched")},me=>{this.logger.error("Error while fetched user membership. "+me)}),this.subscriptionProcessed$.asObservable())}getClientStreamingQuality(C){return this.nesEntitlementService.getClientStreamingQuality({useCache:!0,cacheLifetimeOverride:C?-1:void 0}).pipe((0,Bo.t)(1),(0,Un.W)(w=>(this.logger.error("error in fetching client resolutions: ",w),(0,it.of)(null))))}initTimedEntitlementRefresh(){this.refreshEntitlement$&&(this.refreshEntitlement$.unsubscribe(),this.refreshEntitlement$=null),this.refreshEntitlement$=(0,jn.O)(this.autoRefreshInterval).pipe((0,nt.ZZ)(C=>(this.logger.info("auto refreshing entitlement"),this.checkUsersEntitlement())),(0,Oi.j)(()=>{this.refreshEntitlement$=null})).subscribe()}onUserSkuChange(){return this.getUserMembership().pipe((0,ea.J)(),(0,wt.T)(([C,w])=>{const Q=C?.subscription,me=w?.subscription,Ye=Q?.productSku,bt=me?.productSku;return w.eComFeatureEnabled&&w.membershipStatus===zr.Entitled&&void 0!==Ye&&void 0!==bt?{prevMembership:C,newMembership:w,hasSkuChanged:Ye!==bt}:{prevMembership:C,newMembership:w,hasSkuChanged:!1}}),(0,ge.p)(C=>C.hasSkuChanged),(0,Rn.Z)({prevMembership:null,newMembership:null,hasSkuChanged:!1}))}getUserMembership(C=!1){return C?this.checkUsersEntitlement(C).pipe((0,nt.ZZ)(()=>this.userMembership$.asObservable())):this.userMembership$.asObservable()}canHardUpsell(){return this.canClientHardUpsell}refreshUsersEntitlement(){this.checkUsersEntitlement(!0).subscribe()}openAccountManagementPage(C,w){this.openBrowserWindow(C,At.r7.GfnAccountManagement,w,At.lp[At.r7.GfnAccountManagement])}openJoinMembershipPage(C,w){this.openBrowserWindow(C,At.r7.GfnPcMembershipJoin,w,At.lp[At.r7.GfnPcMembershipJoin])}openUpgradeMemberShipPage(C,w){this.openBrowserWindow(C,At.r7.GfnPcMembershipUpgrade,w,At.lp[At.r7.GfnPcMembershipUpgrade])}openDayPassMembershipPage(C,w){this.openBrowserWindow(C,At.r7.GfnPcMembershipDayPass,w,At.lp[At.r7.GfnPcMembershipDayPass])}openDayPassCheckoutPage(C,w){this.openBrowserWindow(C,At.r7.GfnPcCheckoutDayPass,w,At.lp[At.r7.GfnPcCheckoutDayPass])}getUpgradeMembershipUrl(){return this.prepareProductMatrixURL(At.r7.GfnPcMembershipUpgrade)}getRedirectUrlWithIdpId$(C){return this.platform$.pipe((0,g.s)(1),(0,_i.n)(w=>this.redirectService.getRedirectUrl(C,{idpId:this.user.idpId,Plt:w})))}openAccountProfilePage(C,w){this.openBrowserWindow(C,At.r7.GfnAccountManagementSSO,w,At.lp[At.r7.GfnAccountManagementSSO])}openAddPlaytimePage(C,w){this.openBrowserWindow(C,At.r7.GfnPcAddPlaytime,w,At.lp[At.r7.GfnPcAddPlaytime])}openViewPlaytimePage(C,w){this.openBrowserWindow(C,At.r7.GfnPcViewPlaytime,w,At.lp[At.r7.GfnPcViewPlaytime])}openAddPlaytimePageAndDialog(C,w){this.openMembershipPageAndDialog(()=>{this.openAddPlaytimePage(C,w)},C,w,Jr.MembershipUpdatetimeProgress)}openJoinNowDialog(C,w=kr.Join,Q,me=!1){const Ye=this.telemetryService.getScreen();return C=`${C}/${Pt.MCB.ScreenJoinGfnDialog}`,w===kr.MaxSessionLengthExceeded&&this.gfnSdkService.isThisAGFNSDKSession()&&(w=this.featureUpsellAvailable(as.q3.HIGHER_SESSION_LENGTH)?kr.GaaSFreeUserCanUpgrade:kr.GaaSFree1HourExceeded),this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(vl,{autoFocus:!1,disableClose:!0,panelClass:"nv-overlay-panel",data:{isStreamerApp:(0,Ii.tE)(this.router.url),useCase:w,gameLaunchScreen:Ye,ecomUIState:(0,a.isNil)(Q)?Jr.InitialState:Q,getUserMembership$:this.getUserMembership(),isCompactDialog:me,buttonClickCallback:bt=>{bt===Jr.InitialState&&(w===kr.MaxSessionLengthExceeded||w===kr.QueueLimitExceeded?this.openUpgradeMemberShipPage(Ye,C):this.openJoinMembershipPage(Ye,C))}}}))}openBrowserWindow(C,w,Q,me){this.sendClickTelemetryForBrowserWindow(C,w,Q);const Ye=Date.now();this.prepareProductMatrixURL(w).subscribe(bt=>{this.logger.info("opening browser with url: ",bt),this.offDeviceLinkService.open(bt,{shortUrl:me}),this.sendManageSubscriptionTelemetry(!0,C,Ye)},bt=>{this.logger.error("Failed to open web page "+w+" with error: ",bt.message),this.sendManageSubscriptionTelemetry(!1,C,Ye,bt.message)})}openMembershipPageAndDialog(C,w,Q,me){if(this.openProgressDialogSubscription$&&this.openProgressDialogSubscription$.unsubscribe(),this.tvMode){let Ye=At.r7.GfnPcMembershipUpgrade;me===Jr.MembershipUpdatetimeProgress?Ye=At.r7.GfnPcAddPlaytime:me===Jr.AddDayPassMembershipProgress&&(Ye=At.r7.GfnPcCheckoutDayPass),this.sendClickTelemetryForBrowserWindow(w,Ye,Q),this.openProgressDialogSubscription$=this.openProgressDialog(me).pipe((0,g.s)(1)).subscribe()}else C?.(),setTimeout(()=>{this.openProgressDialogSubscription$=this.openProgressDialog(me).pipe((0,g.s)(1)).subscribe()},2e3)}featureEntitled(C){let w=this.userMembership$.value?.subscription?.features?.features?.find(Q=>Q.key===C)?.textValue;return null!=w&&(w=JSON.parse(w),Array.isArray(w)?w.length>0:w)}featureArrayItemEntitled(C,w){let Q=this.userMembership$.value?.subscription?.features?.features?.find(me=>me.key===as.N1[C])?.textValue;return null!=Q&&(Q=JSON.parse(Q),Array.isArray(Q)?Q.some(me=>me.value===w.toString()&&me.isEntitled):Q)}featureArrayUpsellAvailable(C){const w=[];return C?.forEach(Q=>{const me=this.featureUpsellAvailable(Q);w.push(me)}),w}featureUpsellAvailable(C){return this.userMembership$.value.subscription?.upsells?.some(w=>w.key===C&&!0===w.booleanValue)}isFeatureAvailableToUser(C,w){return this.featureEntitled(C)||this.featureUpsellAvailable(w)}getStreamingModeDetails(C){return this.getStreamingProfileFromStreamingQuality(this.getStreamingQuality(C))}getMaxBitrate(){return this.getStreamingQuality()?.maxBitRate}getStreamingQuality(C){const w=C?Os[C]:as.IT.BALANCED;return(this.userMembership$.value.membershipStatus===zr.Entitled?this.userMembership$.value.subscription?.streamingQualities:this.userMembership$.value.unentitledUserData?.streamingQualities)?.find(Ye=>Ye.clientStreamingQualityMode===w)}openProgressDialog(C=Jr.MembershipUpdateProgress){return this.currentUIState=C,C===Jr.MembershipUpdatetimeProgress?this.openPlaytimeUpdateProgressDialog():C===Jr.AddDayPassMembershipProgress?this.openDayPassCheckoutProgressDialog():this.openMembershipUpgradeProgressDialog()}sendClickTelemetryForBrowserWindow(C,w,Q){switch(w){case At.r7.GfnAccountManagement:this.telemetryUtilService.sendClickEvent(Pt.EBD.ManageMembership,"",`${C}/${Q}`,!1);break;case At.r7.GfnPcMembershipJoin:this.telemetryUtilService.sendClickEvent(Pt.EBD.JoinGfn,"",`${C}/${Q}`,!1);break;case At.r7.GfnPcMembershipUpgrade:this.telemetryUtilService.sendClickEvent(Pt.EBD.Upgrade,"",`${C}/${Q}`,!1);break;case At.r7.GfnAccountManagementSSO:this.telemetryUtilService.sendClickEvent(Pt.EBD.AccountManagementSso,"",`${C}/${Q}`,!1);break;case At.r7.GfnPcAddPlaytime:this.telemetryUtilService.sendClickEvent(Pt.EBD.AddPlaytime,"",`${C}/${Q}`,!1);break;case At.r7.GfnPcViewPlaytime:this.telemetryUtilService.sendClickEvent(Pt.EBD.ViewPlaytime,"",`${C}/${Q}`,!1);break;case At.r7.GfnPcMembershipDayPass:this.telemetryUtilService.sendClickEvent(Pt.EBD.GetDayPass,"",`${C}/${Q}`,!1);break;case At.r7.GfnPcCheckoutDayPass:this.telemetryUtilService.sendClickEvent(Pt.EBD.AddDayPass,"",`${C}/${Q}`,!1)}}prepareProductMatrixURL(C){const w=this.localeService.localeChanged.pipe((0,g.s)(1));return(0,Vt.zV)([w,this.platform$,this.idmService.cachedAffiliateStatus]).pipe((0,wt.T)(([Q,me,Ye])=>{const bt={cNm:"gfn",env:this.redirectEnvMap.get(this.redirectEnv),Plt:me,gcV:this.clientVersion,idpId:this.user.idpId,prv:Ye.data?.loginProvider};this.user.idpId===this.jarvisIdpId&&(bt.loginHint=this.user.email),this.logger.info("JSO",bt);const cn=new URL(this.redirectUrl+Q);return cn.searchParams.append("page",C),cn.searchParams.append("jso",btoa(JSON.stringify(bt))),cn.toString()}))}detectPlatform(){l.zk.isCefPlatform()?this.systemInfoService.getSystemInfo([l.Lu.Platform]).subscribe(C=>{this.platform$.next(C.Platform===wo.Mac?At.Gl.Mac:At.Gl.PC)}):this.platform$.next(At.Gl.Browser)}sendManageSubscriptionTelemetry(C,w,Q,me){const Ye=new Pt.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:w,userAction:Pt.ay7.ManageECommerceSubscription,status:C?Pt.fbu.Success:Pt.fbu.ECommercePaywallLaunchError,errorDetails:me||C.toString(),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(Ye,Q)}getStreamingProfileFromStreamingQuality(C){return C?{width:C.resolution.widthInPixels,height:C.resolution.heightInPixels,fps:C.resolution.framesPerSecond,maxBitrateAuto:!C.maxBitRate.bitrateOption,maxBitrate:C.maxBitRate.bitrateValue,drc:this.getStreamingQualityFeatureValue(C,as.tk.PROFILE_ADJUST_FOR_NETWORK),hdrStreaming:this.getStreamingQualityFeatureValue(C,as.tk.PROFILE_HDR),reflex:this.getStreamingQualityFeatureValue(C,as.tk.PROFILE_REFLEX),cloudGsync:this.getStreamingQualityFeatureValue(C,as.tk.PROFILE_CLOUD_GSYNC),l4sEnabled:this.getStreamingQualityFeatureValue(C,as.tk.PROFILE_L4S),vSync:this.getStreamingQualityFeatureValue(C,as.tk.PROFILE_VSYNC),bitDepth:this.getStreamingQualityFeatureValue(C,as.tk.PROFILE_BIT_DEPTH)}:null}getStreamingQualityFeatureValue(C,w){return JSON.parse(C?.features?.find(Q=>Q.key===w)?.textValue)}openMembershipUpgradeProgressDialog(){this.lastEntitlement=null,this.isEcomPlanChanged=!1;let C={headerText:{text:this.tvMode?At.lp[At.r7.GfnPcMembershipUpgrade]:le.header},bodyText:{text:this.tvMode?le.tvDescription:le.description},primaryButton:le.primaryButton,secondaryButton:le.secondaryButton};return(this.tvMode?this.prepareProductMatrixURL(At.r7.GfnPcMembershipUpgrade).pipe((0,wt.T)(Q=>(this.tvMode&&(C={...C,image:{url:Q,shortcutUrl:At.lp[At.r7.GfnPcMembershipUpgrade]}}),C))):(0,it.of)(C)).pipe((0,g.s)(1),(0,nt.ZZ)(Q=>{const me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:Q},{preferredDialogType:T.QO.ThreeQuarterSheet});return this.initializeEcommerceSub(me),(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(!0)),me.afterClosed().pipe((0,mt.u)(!1)),me.secondaryButtonClick.pipe((0,mt.u)(!1))).pipe((0,g.s)(1),(0,nt.ZZ)(Ye=>(this.logger.info("Closing membership upgrade progress dialog"),me.backToCloseResult=this.closeResult,me.close(),this.getUserMembershipSubscription$&&this.getUserMembershipSubscription$.unsubscribe(),Ye?this.checkForMembershipUpgrade():(0,it.of)(Ye))))}))}openDayPassCheckoutProgressDialog(){this.lastEntitlement=null,this.isEcomPlanChanged=!1;let C={headerText:{text:this.tvMode?At.lp[At.r7.GfnPcCheckoutDayPass]:le.header},bodyText:{text:this.tvMode?le.tvDescription:le.description},primaryButton:le.primaryButton,secondaryButton:le.secondaryButton};return(this.tvMode?this.prepareProductMatrixURL(At.r7.GfnPcCheckoutDayPass).pipe((0,wt.T)(Q=>(this.tvMode&&(C={...C,image:{url:Q,shortcutUrl:At.lp[At.r7.GfnPcCheckoutDayPass]}}),C))):(0,it.of)(C)).pipe((0,g.s)(1),(0,nt.ZZ)(Q=>{const me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:Q},{preferredDialogType:T.QO.ThreeQuarterSheet});return this.initializeEcommerceSub(me),(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(!0)),me.afterClosed().pipe((0,mt.u)(!1)),me.secondaryButtonClick.pipe((0,mt.u)(!1))).pipe((0,g.s)(1),(0,nt.ZZ)(Ye=>(this.logger.info("Closing Add Day Pass membership upgrade progress dialog"),me.backToCloseResult=this.closeResult,me.close(),this.getUserMembershipSubscription$&&this.getUserMembershipSubscription$.unsubscribe(),Ye?this.checkForMembershipUpgrade():(0,it.of)(Ye))))}))}openPlaytimeUpdateProgressDialog(){this.lastEntitlement=null,this.isPlaytimeAdded=!1;let C={headerText:{text:this.tvMode?At.lp[At.r7.GfnPcAddPlaytime]:"ecommerce.playtimeAddProgressDialog.title"},bodyText:{text:this.tvMode?"ecommerce.membershipUpdateProgressDialog.compactDialogTvDescription":"ecommerce.membershipUpdateProgressDialog.compactDialogDescription"},primaryButton:le.primaryButton,secondaryButton:le.secondaryButton};return(this.tvMode?this.prepareProductMatrixURL(At.r7.GfnPcAddPlaytime).pipe((0,wt.T)(Q=>(C={...C,image:{url:Q,shortcutUrl:At.lp[At.r7.GfnPcAddPlaytime]}},C))):(0,it.of)(C)).pipe((0,g.s)(1),(0,nt.ZZ)(Q=>{const me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:Q},{preferredDialogType:T.QO.ThreeQuarterSheet});return this.initializeEcommerceSub(me),(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(!0)),me.afterClosed().pipe((0,mt.u)(!1)),me.secondaryButtonClick.pipe((0,mt.u)(!1))).pipe((0,g.s)(1),(0,nt.ZZ)(Ye=>(this.logger.info("Closing add playtime progress dialog"),me.backToCloseResult=this.closeResult,me.close(),this.getUserMembershipSubscription$&&this.getUserMembershipSubscription$.unsubscribe(),Ye?this.checkForMembershipUpgrade(!1):(0,it.of)(Ye))))}))}openMembershipNotUpgradedErrorDialog(){return this.redirectService.getRedirectUrl(At.r7.GfnAccountManagement).pipe((0,wt.T)(C=>({headerText:{text:Nn.header},bodyText:{text:Nn.description,placeholders:this.tvMode?void 0:{membershipStatusUrl:`class="font-body2-link" href="${C}"`}},link:{text:this.tvMode?"ecommerce.viewAccount":void 0,url:this.tvMode?C:void 0,shortUrl:At.lp[At.r7.GfnAccountManagement]},primaryButton:Nn.primaryButton})),(0,nt.ZZ)(C=>{const w=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:C},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(w.primaryButtonClick,w.afterClosed()).pipe((0,g.s)(1),(0,on.M)(()=>{w.close()}))}))}openMembershipRefreshErrorDialog(C=!0){return this.redirectService.getRedirectUrl(At.r7.GfnServerStatus).pipe((0,wt.T)(w=>({headerText:{text:C?Nn.header:Mo.header},bodyText:{text:Nn.description},link:{text:"common.viewServerStatus",url:w,shortUrl:At.lp[At.r7.GfnAccountManagement]},primaryButton:Nn.primaryButton})),(0,nt.ZZ)(w=>{const Q=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:w},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(Q.primaryButtonClick,Q.afterClosed()).pipe((0,g.s)(1),(0,on.M)(()=>{Q.close()}))}))}openPlaytimeUpdateErrorDialog(){return this.redirectService.getRedirectUrl(At.r7.GfnAccountManagement).pipe((0,wt.T)(C=>({headerText:{text:Mo.header},bodyText:{text:Mo.description,placeholders:this.tvMode?void 0:{accountStatusUrl:`class="font-body2-link" href="${C}"`}},link:{text:this.tvMode?"ecommerce.viewAccount":void 0,url:this.tvMode?C:void 0,shortUrl:At.lp[At.r7.GfnAccountManagement]},primaryButton:Mo.primaryButton})),(0,nt.ZZ)(C=>{const w=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:C},{preferredDialogType:T.QO.ThreeQuarterSheet});return this.telemetryUtilService.sendPopUpDialogShownEvent(Pt.duU.Playtime_Not_Added),(0,rr.O4)(w.primaryButtonClick,w.afterClosed()).pipe((0,g.s)(1),(0,on.M)(()=>{w.close()}))}))}initializeEcommerceSub(C){this.getUserMembershipSubscription$=this.getUserMembership().subscribe(w=>{const Q=w?.subscription?.productSku,me=w?.subscription?.remainingTimeInMinutes,Ye=w?.subscription?.subType,bt=w?.subscription?.expirationDateTime;null!==this.lastEntitlement?(this.isEcomPlanChanged=this.isPlanChanged(Q),this.isPlaytimeAdded=this.isPlaytimeChanged(me),this.isDayPassAdded=this.hasDayPassExpiryDateChanged(Ye,bt),(this.isEcomPlanChanged||this.currentUIState===Jr.MembershipUpdatetimeProgress&&this.isPlaytimeAdded||this.isDayPassAdded)&&(C.backToCloseResult=this.closeResult,C.close())):this.lastEntitlement={productSku:Q,remainingTimeInMinutes:me,subType:Ye,expirationDateTime:bt}})}checkForMembershipUpgrade(C=!0){return this.getUserMembership(!0).pipe((0,g.s)(1),(0,nt.ZZ)(w=>{const Q=w?.subscription?.productSku,me=w?.subscription?.remainingTimeInMinutes,Ye=w?.subscription?.subType,bt=w?.subscription?.expirationDateTime;return this.isEcomPlanChanged=this.isPlanChanged(Q),this.isPlaytimeAdded=this.isPlaytimeChanged(me),this.isDayPassAdded=this.hasDayPassExpiryDateChanged(Ye,bt),C&&!this.isEcomPlanChanged&&!this.isDayPassAdded||!C&&!this.isPlaytimeAdded?this.openErrorDialogs(w,C):(0,it.of)(C?this.isEcomPlanChanged||this.isDayPassAdded:this.isPlaytimeAdded)}))}isPlanChanged(C){return this.lastEntitlement.productSku!==C}hasDayPassExpiryDateChanged(C,w){return C===as.hz.DAY_PASS&&this.lastEntitlement.expirationDateTime!==w}isPlaytimeChanged(C){return this.lastEntitlement.remainingTimeInMinutes<C}openErrorDialogs(C,w=!0){return C.membershipStatus===zr.ServerError||C.membershipStatus===zr.UnKnown?this.openMembershipRefreshErrorDialog(w):w?this.openMembershipNotUpgradedErrorDialog():this.openPlaytimeUpdateErrorDialog()}initTimerEvents(){return this.getUserMembership().pipe((0,ea.J)(),(0,wt.T)(([C,w])=>{const Q=C?.subscription,me=w?.subscription,Ye=Q?.productSku,bt=me?.productSku;let cn,Wn;Ye!==bt?this.registerIntervalTimer():(this.isTimeCappedSubscription?(cn=Q?.currentSpanEndDateTime,Wn=me?.currentSpanEndDateTime):Q?.expirationDateTime&&me?.expirationDateTime?(cn=Q?.expirationDateTime,Wn=me?.expirationDateTime):Q?.renewalDateTime&&me?.renewalDateTime&&(cn=Q?.renewalDateTime,Wn=me?.renewalDateTime),cn!==Wn&&this.registerIntervalTimer())}))}get isLimitedState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===as.zZ.LIMITED}get isLimitedPlayableState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===as.zZ.LIMITED&&this.userMembership$.value?.subscription?.currentSubscriptionState?.isGamePlayAllowed}get isLimitedUnplayableState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===as.zZ.LIMITED&&!this.userMembership$.value?.subscription?.currentSubscriptionState?.isGamePlayAllowed}get isFullState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===as.zZ.FULL&&this.userMembership$.value?.subscription?.remainingTimeInMinutes>this.userMembership$.value?.subscription?.notifications?.notifyUserWhenTimeRemainingInMinutes}get isLowState(){return this.userMembership$.value?.subscription?.currentSubscriptionState?.state===as.zZ.FULL&&this.userMembership$.value?.subscription?.remainingTimeInMinutes<=this.userMembership$.value?.subscription?.notifications?.notifyUserWhenTimeRemainingInMinutes}get totalPlaytime(){return(0,a.isUndefined)(this.userMembership$.value?.subscription?.totalTimeInMinutes)?void 0:(0,al.n9)(this.userMembership$.value.subscription.totalTimeInMinutes)}get remainingPlaytime(){return(0,a.isUndefined)(this.userMembership$.value?.subscription?.remainingTimeInMinutes)?void 0:(0,al.n9)(this.userMembership$.value.subscription.remainingTimeInMinutes)}get rolledOverPlaytime(){return this.userMembership$.value?.subscription?.rolledOverTimeInMinutes?(0,al.n9)(this.userMembership$.value.subscription.rolledOverTimeInMinutes):void 0}get remainingPlaytimePercentage(){if((0,a.isUndefined)(this.userMembership$.value?.subscription?.totalTimeInMinutes)||(0,a.isUndefined)(this.userMembership$.value?.subscription?.remainingTimeInMinutes))return 0;{const C=this.userMembership$.value.subscription.remainingTimeInMinutes/this.userMembership$.value.subscription.totalTimeInMinutes*100;return C>this.maximumNon100ProgressValue&&C<100?this.maximumNon100ProgressValue:C<this.minimumNonZeroProgressValue&&C>0?this.minimumNonZeroProgressValue:C}}get onTimeRemainingAlertForBanner(){return this.intervalEventTriggered$.pipe((0,wt.T)(C=>this.checkForLowAndLimitedTime(this.userMembership$.value)),(0,mo.F)(sr))}get isTimeCappedSubscription(){return this.userMembership$.value?.subscription?.subType===as.hz.TIME_CAPPED}get isDayPassSubscription(){return this.userMembership$.value?.subscription?.subType===as.hz.DAY_PASS}get isTimeCapSKUFeatureEnabled(){return this.timeCappedFeatureEnabled}getDayPassExpiryDetails(){return this.onUserSkuChange().pipe((0,wt.T)(C=>{const w=C?.prevMembership?.subscription,Q=C?.newMembership?.subscription,me=w?.productSku,Ye=Q?.productSku;return{show:me!==Ye&&w?.subType===as.hz.DAY_PASS&&this.featureUpsellAvailable(as.q3.DAY_PASS)&&Q?.type===as.rz.FREE,oldSKUShortName:C?.prevMembership?.product?.shortDescription}}))}checkIfNearingExpiry(){return this.getUserMembership().pipe((0,g.s)(1),(0,nt.ZZ)(C=>!this.isDayPassSubscription&&!this.isTimeCappedSubscription||this.isTimeCappedSubscription&&!this.isTimeCapSKUFeatureEnabled?(0,it.of)(!1):this.isLimitedState||this.checkLowPlayTimeCondition(this.userMembership$.value,!0)?this.getUserMembership(!0).pipe((0,g.s)(1),(0,wt.T)(w=>this.isLimitedState?this.isLimitedState:this.checkLowPlayTimeCondition(w,!0))):(0,it.of)(!1)))}getExpiryBannerText(C){return C===as.hz.DAY_PASS?"notification.dayPassExpiryBanner":C!==as.hz.TIME_CAPPED?(this.logger.info(`Unsupported subType:${C}`),""):void 0}clearIntervalTimer(){this.membershipIntervalSub?.unsubscribe(),this.membershipIntervalSub=null}registerIntervalTimer(){let C,w;this.clearIntervalTimer();const Q=this.userMembership$.value?.subscription?.expirationDateTime,me=this.userMembership$.value?.subscription?.currentSpanEndDateTime,Ye=this.userMembership$.value?.subscription?.renewalDateTime;this.isTimeCappedSubscription?C=new Date(me):Q?C=new Date(Q):Ye&&(C=new Date(Ye)),C&&!isNaN(C)&&(this.membershipIntervalSub=(0,jn.O)(0,6e4).subscribe(bt=>{this.intervalEventTriggered$.next(bt),w=C.getTime()-(new Date).getTime(),w<=0?(this.fetchLatestUserSubscriptionAfterExpiry(),this.clearIntervalTimer()):w<6e4&&(this.clearIntervalTimer(),setTimeout(()=>{this.intervalEventTriggered$.next(bt),this.fetchLatestUserSubscriptionAfterExpiry()},w))}))}fetchLatestUserSubscriptionAfterExpiry(){this.refreshSubscriptionAfterExpiry&&!isNaN(this.refreshSubscriptionAfterExpiry)&&setTimeout(()=>{this.refeshUiService.resetContentExpiryAndRefreshOnFocus(Ws.sD.Subscription)},this.refreshSubscriptionAfterExpiry)}isUserUpgraded(C,w,Q){return null!==C&&C?.userId===w&&C?.productSku!==Q}isPlaytimeUpdated(C,w,Q,me){return this.isTimeCapSKUFeatureEnabled&&this.isTimeCappedSubscription&&!this.isUserUpgraded(C,w,Q)&&null!==C&&C?.userId===w&&C?.productSku===Q&&C?.remainingTimeInMinutes<me}checkForLowAndLimitedTime(C){return this.isTimeCappedSubscription&&this.isLimitedState?{isLowStateAlert:!1,isLimitedStateAlert:!0}:this.checkLowPlayTimeCondition(C)?{isLowStateAlert:!0,isLimitedStateAlert:!1}:{isLowStateAlert:!1,isLimitedStateAlert:!1}}checkLowPlayTimeCondition(C,w=!1){const Q=C?.subscription,me=w?Q?.notifications?.notifyUserOnSessionWhenRemainingTimeInMinutes:Q?.notifications?.notifyUserWhenTimeRemainingInMinutes,Ye=Q?.expirationDateTime;let bt;return bt=this.isTimeCappedSubscription?Q?.remainingTimeInMinutes:(new Date(Ye).getTime()-(new Date).getTime())/6e4,void 0!==bt&&void 0!==me&&bt>=0&&bt<=me}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.iH),c.KVO(Ve),c.KVO(l.zW),c.KVO(P.H0),c.KVO(lt.G),c.KVO(Pt.jgD),c.KVO(n.bZ),c.KVO(hn.Ix),c.KVO(l.NZ),c.KVO(Qr.DL),c.KVO(Ai.k_),c.KVO(T.nO),c.KVO(Ws.F4),c.KVO(hi.a),c.KVO(Mi.Vk),c.KVO(T.c_),c.KVO(T.uh),c.KVO(At.Q5),c.KVO(Ws.F4),c.KVO(l.J6))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Wo=d(22355),ta=d(69225),bo=d(97888);let Ns=(()=>{var j;class Ke{get enabled(){return this._enabled}set enabled(C){this._enabled=(0,ae.he)(C)}constructor(C,w){this.element=C,this.focusManager=w,this._enabled=!0,this.restoreFunction=this.focusManager.createRestoreFocusFunction(this.focusManager.currentFocusedElement)}ngAfterViewInit(){this.enabled&&(this.autoFocusChildren.some(w=>w.focusEnabled)||this.focusManager.focusChild(this.element.nativeElement,"initial"))}shouldRestoreFocus(){const C=this.focusManager.currentFocusedElement;return C===document.body||this.element.nativeElement.contains(C)}ngOnDestroy(){this.enabled&&this.shouldRestoreFocus()&&setTimeout(()=>this.restoreFunction())}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(c.aKT),c.rXU(Me.c))},j.\u0275dir=c.FsC({type:j,selectors:[["","nvCaptureRestoreFocus",""]],contentQueries:function(C,w,Q){if(1&C&&c.wni(Q,Wo.N,5),2&C){let me;c.mGM(me=c.lsd())&&(w.autoFocusChildren=me)}},inputs:{enabled:[c.Mj6.None,"nvCaptureRestoreFocus","enabled"]}}),Ke})();const Ka=j=>[j],Sl=j=>({accountManagementLink:j});function Yl(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",14)(1,"button",15),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.closeDialog())}),c.j41(2,"mat-icon",16),c.EFF(3,"close"),c.k0s()()()}}function fc(j,Ke){if(1&j&&(c.j41(0,"div",10)(1,"div",11)(2,"h1",12),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.DNE(5,Yl,4,0,"div",13),c.k0s()),2&j){const we=c.XpG();c.R7$(3),c.JRh(c.bMT(4,2,"common.gfn")),c.R7$(2),c.Y8G("ngIf",!we.isGaaS&&we.closeButtonVisible)}}function _c(j,Ke){1&j&&c.nrm(0,"img",17)}function Ml(j,Ke){1&j&&c.nrm(0,"img",18)}function Ul(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",22),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.closeDialog())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}if(2&j){const we=c.XpG(2);c.R7$(),c.SpI(" ",c.bMT(2,1,we.notNowButtonText)," ")}}function tc(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"span")(1,"button",23),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.joinNowClicked())}),c.EFF(2),c.nI1(3,"translate"),c.k0s()()}if(2&j){const we=c.XpG(2);c.R7$(),c.Y8G("isVisible",we.showLoadingOnJoinNow),c.R7$(),c.SpI(" ",c.bMT(3,2,we.buttonText)," ")}}function Ic(j,Ke){if(1&j&&(c.j41(0,"div",19),c.DNE(1,Ul,3,3,"button",20)(2,tc,4,4,"span",21),c.k0s()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngIf",!we.isGaaS||we.isUpgrade),c.R7$(),c.Y8G("ngIf",we.canHardUpsell)}}function nc(j,Ke){if(1&j&&(c.j41(0,"div",29)(1,"span",30),c.EFF(2),c.nI1(3,"translate"),c.k0s()()),2&j){const we=c.XpG(2);c.R7$(2),c.JRh(c.bMT(3,1,we.upsellMessage))}}function na(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",31),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.joinNowClicked())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}if(2&j){const we=c.XpG(2);c.Y8G("isVisible",we.showLoadingOnJoinNow),c.R7$(),c.SpI(" ",c.bMT(2,2,we.buttonText)," ")}}function ul(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",24),c.DNE(1,nc,4,3,"div",25),c.j41(2,"div",26)(3,"button",27),c.bIt("click",function(){c.eBV(we);const w=c.XpG();return c.Njj(w.closeDialog())}),c.EFF(4),c.nI1(5,"translate"),c.k0s(),c.DNE(6,na,3,4,"button",28),c.k0s()()}if(2&j){const we=c.XpG();c.R7$(),c.Y8G("ngIf",we.upsellMessage),c.R7$(3),c.SpI(" ",c.bMT(5,3,we.queueLimitExceededCloseButtonText)," "),c.R7$(2),c.Y8G("ngIf",we.showUpgradeButtonForQueueLimitExceeded)}}let zl=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt){this.telemetryUtilService=Q,this.spatialNavigationService=me,this.ecomService=Ye,this.redirectService=bt,this.primaryButtonClicked=new c.bkB,this.closeButtonClicked=new c.bkB,this.loginButtonClicked=new c.bkB,this.notNowButtonText="common.notNow",this.showUpgradeButtonForQueueLimitExceeded=!0,this.queueLimitExceededCloseButtonText="common.close",this.queueLimitReached=!1,this.showLoadingOnJoinNow=!1,this.isGaaS=!1,this.isUpgrade=!1,this.canHardUpsell=!0,this.closeButtonVisible=!0,this.destroy$=new p.B7,this.logger=C.getLogger("JoinNowComponent"),this.closeButtonVisible=!w?.featureEnablement?.tvMode}ngOnInit(){switch((this.data.useCase===kr.GaaSFree1HourExceeded||this.data.useCase===kr.GaaSFreeSampleAlreadyUsed||this.data.useCase===kr.GaaSUnsupportedFreeTitle||this.data.useCase===kr.GaaSFreeUserCanUpgrade)&&(this.isGaaS=!0,this.isUpgrade=this.data.useCase===kr.GaaSFreeUserCanUpgrade),this.canHardUpsell=this.ecomService.canHardUpsell(),this.getDialogText(this.data),this.data.useCase){case kr.MaxSessionLengthExceeded:this.sendUpsellTelemetry(Pt.fbu.StreamerPostSessionUpsell);break;case kr.GaaSFreeUserCanUpgrade:this.sendUpsellTelemetry(Pt.fbu.StreamerPostSessionFreeGaaSUpsell);break;case kr.GaaSFree1HourExceeded:this.sendUpsellTelemetry(Pt.fbu.StreamerPostSessionAnonGaaSUpsell);break;case kr.GaaSFreeSampleAlreadyUsed:this.sendUpsellTelemetry(Pt.fbu.StreamerUsedFreeUpsell);break;case kr.GaaSUnsupportedFreeTitle:this.sendUpsellTelemetry(Pt.fbu.StreamerNoFreeUpsell)}this.accountManagementLinkShortUrl=At.lp[At.r7.GfnAccountManagement],this.redirectService.getRedirectUrl(At.r7.GfnAccountManagement).pipe((0,g.s)(1),(0,h.Q)(this.destroy$)).subscribe(C=>{this.accountManagementLink=`href="${C}" class='font-body2-link membership-options-link'`})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}sendUpsellTelemetry(C){this.telemetryUtilService.sendUserSessionEvent(Pt.ay7.LaunchGame,C,0,"",this.data.gameLaunchScreen)}sendUIActionTelemetry(C){let w;switch(this.data.useCase){case kr.MaxSessionLengthExceeded:w=Pt.Pk9.StreamerPostSessionUpsell;break;case kr.QueueLimitExceeded:w=Pt.Pk9.StreamerQueueUpsell;break;case kr.GaaSFree1HourExceeded:w=Pt.Pk9.StreamerPostSessionAnonGaaSUpsell;break;case kr.GaaSUnsupportedFreeTitle:w=Pt.Pk9.StreamerNoFreeUpsell;break;case kr.GaaSFreeSampleAlreadyUsed:w=Pt.Pk9.StreamerUsedFreeUpsell;break;case kr.GaaSFreeUserCanUpgrade:w=Pt.Pk9.StreamerPostSessionFreeGaaSUpsell;break;default:w=Pt.Pk9.StreamerPostSessionUpsell}this.telemetryUtilService.sendUiActionEvent(C,w)}ngAfterViewInit(){const C=document.getElementsByClassName("join-now-login-link"),w=C?.length>0?C[0]:void 0;w&&this.spatialNavigationService.onClick(w).pipe((0,h.Q)(this.destroy$)).subscribe(Q=>{Q&&(this.loginButtonClicked.emit(),this.data.buttonClickCallback(Jr.ExitedToLogin),this.sendUIActionTelemetry(Pt.kQl.Login))})}closeDialog(){this.closeButtonClicked.emit(),this.sendUIActionTelemetry(Pt.kQl.Close)}joinNowClicked(){this.logger.info("User clicked on Join button."),this.data.buttonClickCallback(Jr.InitialState),this.showLoadingOnJoinNow=!0,setTimeout(()=>{this.primaryButtonClicked.emit(),this.showLoadingOnJoinNow=!1},2e3),this.sendUIActionTelemetry(Pt.kQl.Join)}getDialogText(C){if(this.logger.info("Dialog data received from caller: ",C),(0,a.isNil)(C))this.logger.error("recieved null data in join now component");else{switch(this.data.useCase){case kr.MaxSessionLengthExceeded:this.dialogTitle="ecommerce.upgradeDialog.title",this.description="ecommerce.upgradeDialog.description",this.canHardUpsell?(this.buttonText="ecommerce.upgrade",this.notNowButtonText="common.notNow"):this.notNowButtonText="common.close";break;case kr.QueueLimitExceeded:this.queueLimitReached=!0,C.getUserMembership$.pipe((0,g.s)(1)).subscribe(w=>{this.canHardUpsell&&this.ecomService.featureUpsellAvailable(as.q3.LOWER_SESSION_QUEUE_WAIT_TIME)?(this.description="ecommerce.queueLimitReached.upgradable",this.upsellMessage="ecommerce.upsellPromptForBetterQueuePositionA",this.buttonText="ecommerce.upgrade",this.queueLimitExceededCloseButtonText="common.notNow"):(this.description="ecommerce.queueLimitReached.notUpgradable",this.showUpgradeButtonForQueueLimitExceeded=!1)});break;case kr.GaaSFree1HourExceeded:this.dialogTitle="ecommerce.joinNowDialog.gaaSFree1HourExceededTitle",this.description="ecommerce.joinNowDialog.gaaSFree1HourExceededDescription",this.buttonText="common.joinToday";break;case kr.GaaSUnsupportedFreeTitle:this.dialogTitle="common.joinTodayToPlay",this.description="ecommerce.joinNowDialog.gaaSUnsupportedFreeDescription",this.buttonText="common.joinToday";break;case kr.GaaSFreeSampleAlreadyUsed:this.dialogTitle="common.joinTodayToPlay",this.description="ecommerce.joinNowDialog.gaaSFree1HourExceededDescription",this.buttonText="common.joinToday";break;case kr.GaaSFreeUserCanUpgrade:return this.dialogTitle="ecommerce.joinNowDialog.gaaSFreeUserCanUpgradeTitle",this.description="ecommerce.joinNowDialog.gaaSFreeUserCanUpgradeDescription",this.buttonText="ecommerce.upgrade",void(this.notNowButtonText="common.notNow");default:this.canHardUpsell?(this.dialogTitle="common.almostReadyToPlay",this.description="ecommerce.joinNowDialog.selectMembershipDescription",this.buttonText="common.selectMembership",this.notNowButtonText="common.notNow"):(this.dialogTitle="common.membershipRequired",this.description="ecommerce.joinNowDialogSoftUpsell.selectMembershipDescription",this.notNowButtonText="common.close")}this.loginButtonText="common.login"}}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(Mi.Vk),c.rXU(Pt.jgD),c.rXU(T.ED),c.rXU(Ao),c.rXU(At.Q5))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-join-now"]],inputs:{data:"data"},outputs:{primaryButtonClicked:"primaryButtonClicked",closeButtonClicked:"closeButtonClicked",loginButtonClicked:"loginButtonClicked"},decls:14,vars:23,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GaaSUpsellBanner.jpg",4,"ngIf"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",4,"ngIf"],[3,"ngClass"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML","shortUrl"],["fxFlex","none","class","dialog-button","fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","none","fxLayout","column","class","upsell-pane",4,"ngIf"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GaaSUpsellBanner.jpg",1,"dialog-art"],["src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",1,"dialog-art"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","","class","font-button2 not-now-button",3,"click",4,"ngIf"],[4,"ngIf"],["mat-button","",1,"font-button2","not-now-button",3,"click"],["mat-raised-button","","nvProgressCircular","","nvAutoFocus","",1,"font-button2",3,"click","isVisible"],["fxFlex","none","fxLayout","column",1,"upsell-pane"],["fxFlex","","fxLayout","column","fxLayoutAlign","start center","class","upsell-pane-message",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","end end","fxLayoutGap","8px",1,"upgrade-container"],["mat-button","",1,"font-button2",3,"click"],["class","font-button2","mat-raised-button","","color","accent","nvProgressCircular","","nvAutoFocus","",3,"isVisible","click",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start center",1,"upsell-pane-message"],[1,"font-sub2"],["mat-raised-button","","color","accent","nvProgressCircular","","nvAutoFocus","",1,"font-button2",3,"click","isVisible"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.DNE(1,fc,6,4,"div",1),c.j41(2,"div",2),c.DNE(3,_c,1,0,"img",3)(4,Ml,1,0,"img",4),c.j41(5,"div",5)(6,"h2",6),c.EFF(7),c.nI1(8,"translate"),c.k0s(),c.nrm(9,"p",7),c.nI1(10,"translate"),c.nI1(11,"trustAsHtml"),c.k0s()(),c.DNE(12,Ic,3,2,"div",8)(13,ul,7,5,"div",9),c.k0s()),2&C&&(c.Y8G("ngClass",c.eq3(17,Ka,w.data.isStreamerApp?"main-content-streamer":"main-content-mall")),c.R7$(),c.Y8G("ngIf",!w.data.isStreamerApp),c.R7$(2),c.Y8G("ngIf",w.isGaaS),c.R7$(),c.Y8G("ngIf",!w.isGaaS),c.R7$(),c.Y8G("ngClass",c.eq3(19,Ka,w.queueLimitReached?"dialog-content-queue-limit":"dialog-content")),c.R7$(2),c.JRh(c.bMT(8,10,w.dialogTitle)),c.R7$(2),c.Y8G("innerHTML",c.bMT(11,15,c.i5U(10,12,w.description,c.eq3(21,Sl,w.accountManagementLink))),c.npT)("shortUrl",w.accountManagementLinkShortUrl),c.R7$(3),c.Y8G("ngIf",!w.queueLimitReached),c.R7$(),c.Y8G("ngIf",w.queueLimitReached))},dependencies:[V.DJ,V.BO,V.sA,V.G2,V.UI,D.PW,n.BI,F.An,k.iV,x.YU,x.bT,G.R,Y.r,Wo.N,ee.e,ta.q,bo.Aq,Ns,Re.O,Ze.D9],styles:[":root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer,.main-content-mall{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer .custom-title-bar,.main-content-mall .custom-title-bar{width:470px;height:50px}:host-context(.isLtr) .main-content-streamer .custom-title-bar,:host-context(.isLtr) .main-content-mall .custom-title-bar{padding-left:24px}html[dir=ltr] .main-content-streamer .custom-title-bar,html[dir=ltr] .main-content-mall .custom-title-bar{--dummy1: 0;padding-left:24px}:host-context(.isRtl) .main-content-streamer .custom-title-bar,:host-context(.isRtl) .main-content-mall .custom-title-bar{padding-right:24px}html[dir=rtl] .main-content-streamer .custom-title-bar,html[dir=rtl] .main-content-mall .custom-title-bar{--dummy1: 0;padding-right:24px}:host-context(.isLtr) .main-content-streamer .custom-title-bar,:host-context(.isLtr) .main-content-mall .custom-title-bar{padding-right:24px}html[dir=ltr] .main-content-streamer .custom-title-bar,html[dir=ltr] .main-content-mall .custom-title-bar{--dummy2: 0;padding-right:24px}:host-context(.isRtl) .main-content-streamer .custom-title-bar,:host-context(.isRtl) .main-content-mall .custom-title-bar{padding-left:24px}html[dir=rtl] .main-content-streamer .custom-title-bar,html[dir=rtl] .main-content-mall .custom-title-bar{--dummy2: 0;padding-left:24px}.main-content-streamer .custom-title-bar .mat-mdc-dialog-title,.main-content-mall .custom-title-bar .mat-mdc-dialog-title{margin-bottom:0}.main-content-streamer .dialog-art,.main-content-mall .dialog-art{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer .dialog-content,.main-content-mall .dialog-content{padding:24px;height:254px}.main-content-streamer .dialog-content-queue-limit,.main-content-mall .dialog-content-queue-limit{padding:24px;height:91px}.main-content-streamer .dialog-content-queue-limit>p,.main-content-mall .dialog-content-queue-limit>p{text-align:center;margin:4px 0 0}.main-content-streamer .dialog-content-queue-limit>h2,.main-content-mall .dialog-content-queue-limit>h2{display:none}.main-content-streamer .dialog-content>h2,.main-content-mall .dialog-content>h2{margin-top:0}.main-content-streamer .dialog-button,.main-content-mall .dialog-button{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}:host-context(.isLtr) .main-content-streamer .dialog-button button:last-child,:host-context(.isLtr) .main-content-mall .dialog-button button:last-child{margin-left:8px}html[dir=ltr] .main-content-streamer .dialog-button button:last-child,html[dir=ltr] .main-content-mall .dialog-button button:last-child{--dummy3: 0;margin-left:8px}:host-context(.isRtl) .main-content-streamer .dialog-button button:last-child,:host-context(.isRtl) .main-content-mall .dialog-button button:last-child{margin-right:8px}html[dir=rtl] .main-content-streamer .dialog-button button:last-child,html[dir=rtl] .main-content-mall .dialog-button button:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer .upsell-pane,.main-content-mall .upsell-pane{height:215px}.main-content-streamer .upsell-pane-message,.main-content-mall .upsell-pane-message{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer .upgrade-container,.main-content-mall .upgrade-container{margin:8px}.compact-dialog-wrapper,.compact-dialog-wrapper .dialog-content{height:100%}@media (max-width: 469px){.main-content-streamer,.main-content-mall{width:100vw}.main-content-streamer .custom-title-bar,.main-content-mall .custom-title-bar{width:unset}.main-content-streamer .dialog-art,.main-content-mall .dialog-art{width:100vw;height:auto}.main-content-streamer .dialog-content,.main-content-mall .dialog-content,.main-content-streamer .dialog-button,.main-content-mall .dialog-button{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall .dialog-art,.main-content-streamer .dialog-art{display:none}.main-content-mall .custom-title-bar,.main-content-streamer .custom-title-bar{display:none!important}.main-content-mall .dialog-content,.main-content-streamer .dialog-content{height:-moz-fit-content!important;height:fit-content!important}}.tv-view .main-content-mall,.tv-view .main-content-streamer,:host-context(.tv-view) .main-content-mall,:host-context(.tv-view) .main-content-streamer{width:840px;height:925px}.tv-view .main-content-mall .custom-title-bar,.tv-view .main-content-streamer .custom-title-bar,:host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.tv-view) .main-content-streamer .custom-title-bar{width:100%;height:88px}:host-context(.isLtr) .tv-view .main-content-mall .custom-title-bar,:host-context(.isLtr) .tv-view .main-content-streamer .custom-title-bar,:host-context(.isLtr) :host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.isLtr) :host-context(.tv-view) .main-content-streamer .custom-title-bar{padding-left:32px}html[dir=ltr] .tv-view .main-content-mall .custom-title-bar,html[dir=ltr] .tv-view .main-content-streamer .custom-title-bar,html[dir=ltr] :host-context(.tv-view) .main-content-mall .custom-title-bar,html[dir=ltr] :host-context(.tv-view) .main-content-streamer .custom-title-bar{--dummy1: 0;padding-left:32px}:host-context(.isRtl) .tv-view .main-content-mall .custom-title-bar,:host-context(.isRtl) .tv-view .main-content-streamer .custom-title-bar,:host-context(.isRtl) :host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.isRtl) :host-context(.tv-view) .main-content-streamer .custom-title-bar{padding-right:32px}html[dir=rtl] .tv-view .main-content-mall .custom-title-bar,html[dir=rtl] .tv-view .main-content-streamer .custom-title-bar,html[dir=rtl] :host-context(.tv-view) .main-content-mall .custom-title-bar,html[dir=rtl] :host-context(.tv-view) .main-content-streamer .custom-title-bar{--dummy1: 0;padding-right:32px}:host-context(.isLtr) .tv-view .main-content-mall .custom-title-bar,:host-context(.isLtr) .tv-view .main-content-streamer .custom-title-bar,:host-context(.isLtr) :host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.isLtr) :host-context(.tv-view) .main-content-streamer .custom-title-bar{padding-right:32px}html[dir=ltr] .tv-view .main-content-mall .custom-title-bar,html[dir=ltr] .tv-view .main-content-streamer .custom-title-bar,html[dir=ltr] :host-context(.tv-view) .main-content-mall .custom-title-bar,html[dir=ltr] :host-context(.tv-view) .main-content-streamer .custom-title-bar{--dummy2: 0;padding-right:32px}:host-context(.isRtl) .tv-view .main-content-mall .custom-title-bar,:host-context(.isRtl) .tv-view .main-content-streamer .custom-title-bar,:host-context(.isRtl) :host-context(.tv-view) .main-content-mall .custom-title-bar,:host-context(.isRtl) :host-context(.tv-view) .main-content-streamer .custom-title-bar{padding-left:32px}html[dir=rtl] .tv-view .main-content-mall .custom-title-bar,html[dir=rtl] .tv-view .main-content-streamer .custom-title-bar,html[dir=rtl] :host-context(.tv-view) .main-content-mall .custom-title-bar,html[dir=rtl] :host-context(.tv-view) .main-content-streamer .custom-title-bar{--dummy2: 0;padding-left:32px}.tv-view .main-content-mall .dialog-art,.tv-view .main-content-streamer .dialog-art,:host-context(.tv-view) .main-content-mall .dialog-art,:host-context(.tv-view) .main-content-streamer .dialog-art{width:100%;height:auto}.tv-view .main-content-mall .dialog-content,.tv-view .main-content-streamer .dialog-content,:host-context(.tv-view) .main-content-mall .dialog-content,:host-context(.tv-view) .main-content-streamer .dialog-content{padding:32px;height:auto}.tv-view .main-content-mall .dialog-button,.tv-view .main-content-streamer .dialog-button,:host-context(.tv-view) .main-content-mall .dialog-button,:host-context(.tv-view) .main-content-streamer .dialog-button{margin:8px 32px}:host-context(.isLtr) .tv-view .main-content-mall .dialog-button button:last-child,:host-context(.isLtr) .tv-view .main-content-streamer .dialog-button button:last-child,:host-context(.isLtr) :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,:host-context(.isLtr) :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{margin-left:32px}html[dir=ltr] .tv-view .main-content-mall .dialog-button button:last-child,html[dir=ltr] .tv-view .main-content-streamer .dialog-button button:last-child,html[dir=ltr] :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,html[dir=ltr] :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{--dummy3: 0;margin-left:32px}:host-context(.isRtl) .tv-view .main-content-mall .dialog-button button:last-child,:host-context(.isRtl) .tv-view .main-content-streamer .dialog-button button:last-child,:host-context(.isRtl) :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,:host-context(.isRtl) :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{margin-right:32px}html[dir=rtl] .tv-view .main-content-mall .dialog-button button:last-child,html[dir=rtl] .tv-view .main-content-streamer .dialog-button button:last-child,html[dir=rtl] :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,html[dir=rtl] :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{--dummy3: 0;margin-right:32px}:host-context(.isLtr) .tv-view .main-content-mall .dialog-button button:last-child,:host-context(.isLtr) .tv-view .main-content-streamer .dialog-button button:last-child,:host-context(.isLtr) :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,:host-context(.isLtr) :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{margin-right:0}html[dir=ltr] .tv-view .main-content-mall .dialog-button button:last-child,html[dir=ltr] .tv-view .main-content-streamer .dialog-button button:last-child,html[dir=ltr] :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,html[dir=ltr] :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{--dummy4: 0;margin-right:0}:host-context(.isRtl) .tv-view .main-content-mall .dialog-button button:last-child,:host-context(.isRtl) .tv-view .main-content-streamer .dialog-button button:last-child,:host-context(.isRtl) :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,:host-context(.isRtl) :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{margin-left:0}html[dir=rtl] .tv-view .main-content-mall .dialog-button button:last-child,html[dir=rtl] .tv-view .main-content-streamer .dialog-button button:last-child,html[dir=rtl] :host-context(.tv-view) .main-content-mall .dialog-button button:last-child,html[dir=rtl] :host-context(.tv-view) .main-content-streamer .dialog-button button:last-child{--dummy4: 0;margin-left:0}.tv-view .main-content-mall div.dialog-content,:host-context(.tv-view) .main-content-mall div.dialog-content{height:200px}.tv-view .main-content-streamer div.dialog-content,:host-context(.tv-view) .main-content-streamer div.dialog-content{height:288px}\n"],encapsulation:2}),Ke})();var Gn,He=d(81732),Lt=d(21341),Kn=d(27561),ft=d(95318);const Ur="UNKNOWN",ns={store:Ur,label:""};var No=function(j){return j.AccountGamesSyncing="AccountGamesSyncing",j.AccountLinkingSso="AccountLinkingSso",j}(No||{});class ds{static get StoresList(){return this.digitalStoresList||[]}static buildDigitalStoresMapFromList(){this.digitalStoresList?.length&&(this.digitalStoresMap={},this.digitalStoresList.forEach(Ke=>{this.digitalStoresMap[Ke.store]={store:Ke.store,label:Ke.label||"",smallImageUrl:Ke.smallImageUrl||"",largeImageUrl:Ke.largeImageUrl||"",sortOrder:Ke.sortOrder,accountLinkingMetadata:Ke.accountLinkingMetadata}}))}static get StoresMap(){return this.digitalStoresMap||{}}static getStoreInfoForAppstore(Ke){return this.StoresMap[Ke]||this.StoresMap[Ur]||ns}static setAppStoresDefinitions(Ke){Ke?.length&&(this.digitalStoresList=Ke),this.buildDigitalStoresMapFromList()}static setGenreDefinitions(Ke){Ke&&Ke.forEach(we=>this.genreDefinitionsMap.set(we.genre,we.label))}static sortVariants(Ke){Ke.length>1&&Ke.sort((we,C)=>{const w=this.StoresMap[we.appStore]?.sortOrder,Q=this.StoresMap[C.appStore]?.sortOrder;return w-Q})}}(Gn=ds).digitalStoresMap=null,Gn.genreDefinitionsMap=new Map;const Ir="\nquery GetGameSection($vpcId: String!, $locale: String!, $panelNames: [String]!) {\n panels(vpcId: $vpcId, language: $locale, names: $panelNames) {\n id\n name\n sections {\n id\n telemetryName\n type\n title\n seeMoreInfo {\n filterTileId\n title\n filterIds\n minTiles,\n sortOrderId\n }\n items {\n __typename\n ...filterFields\n ...minimalGameFields\n }\n }\n }\n}\n\nfragment filterFields on FilterItem {\n id\n title\n image\n filterIds\n}\n\nfragment minimalGameFields on GameItem {\n app {\n id\n images {\n TV_BANNER\n }\n title\n library {\n favorited\n }\n itemMetadata {\n campaignIds\n }\n variants {\n id\n appStore\n supportedControls\n gfn {\n library {\n status\n selected\n }\n status\n }\n }\n }\n}",Vs="query GetAppDataQueryForAppId($vpcId: String!, $locale: String!, $appIds: [String]!) {\n apps(vpcId: $vpcId, language: $locale, appIds: $appIds) {\n items {\n appStore\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n developerName\n displaysOwnRatingDuringGameplay\n id\n genres\n images {\n GAME_BOX_ART\n GAME_LOGO\n HERO_IMAGE\n SCREENSHOTS\n TV_BANNER\n KEY_ART\n }\n nvidiaTech {\n ANSEL\n FREESTYLE\n HIGHLIGHTS\n }\n title\n shortDescription\n longDescription\n maxLocalPlayers\n maxOnlinePlayers\n supportedControls\n publisherName\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n computedValues {\n earliestStreetDate\n paymentModels {\n __typename\n }\n }\n itemMetadata {\n campaignIds\n }\n variants {\n streetDate\n appStore\n id\n shortName\n supportedControls\n storeUrl\n publisherName\n developerName\n paymentModels {\n __typename\n }\n gfn {\n status\n features {\n ...feature\n }\n }\n }\n }\n }\n}\nfragment feature on GfnSubscriptionFeature {\n __typename\n ... on GfnSubscriptionFeatureValue {\n key\n value\n }\n ... on GfnSubscriptionFeatureValueList {\n key\n values\n }\n}\n",co={StaticAppData:"query GetStaticAppData($locale: String!){\n genreDefinitions(language: $locale){\n genre\n label\n }\n appStoreDefinitions(language: $locale){\n store\n label\n sortOrder\n smallImageUrl\n features {\n __typename\n ... on AccountLinkingSso {\n displayProposition\n supported\n }\n ... on AccountGamesSyncing {\n displayProposition\n supported\n }\n }\n accountLinkingMetadata {\n supportedVariantIds\n isSupported\n isRequired\n label\n }\n }\n ratingDefinitions(language: $locale){\n ratingSystem\n label\n displayInterval\n contentDescriptors{\n key\n label\n sortOrder\n }\n interactiveElements {\n key\n label\n sortOrder\n }\n ratings {\n categoryKey\n description\n label\n minimumAge\n largeImageUrl\n smallImageUrl\n }\n }\n}",UserAccount:"{\n userAccount {\n storesData {\n store\n accountLinkingData {\n userDisplayName\n expiresIn\n userIdentifier\n accountSyncingData {\n totalNumberOfSyncedGfnGames\n syncState\n syncDate\n }\n }\n }\n }\n}",Marquee:"query GetMarquee($vpcId: String!, $locale: String!, $panelNames: [String]!) {\n panels(vpcId: $vpcId, language: $locale, names: $panelNames) {\n id\n name\n sections {\n id\n type\n title\n items {\n __typename\n ...marketingFields\n ...marqueeGameFields\n }\n }\n }\n}\nfragment marketingFields on MarketingItem {\n id\n title\n images {\n MARQUEE_HERO_IMAGE\n HERO_IMAGE\n }\n body\n action {\n uri\n label\n infoText\n }\n}\nfragment marqueeGameFields on GameItem {\n app {\n id\n title\n type\n publisherName\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n images {\n GAME_LOGO\n MARQUEE_HERO_IMAGE\n HERO_IMAGE\n }\n itemMetadata {\n campaignIds\n }\n variants {\n id\n appStore\n supportedControls\n }\n }\n}",Favorites:Ir,LibrarySection:Ir,LibrarySectionWithTime:"\nquery GetGameSection($vpcId: String!, $locale: String!, $panelNames: [String]!) {\n panels(vpcId: $vpcId, language: $locale, names: $panelNames) {\n id\n name\n sections {\n id\n telemetryName\n type\n title\n seeMoreInfo {\n filterTileId\n title\n filterIds\n minTiles,\n sortOrderId\n }\n items {\n __typename\n ...filterFields\n ...minimalGameFields\n }\n }\n }\n}\n\nfragment filterFields on FilterItem {\n id\n title\n image\n filterIds\n}\n\nfragment minimalGameFields on GameItem {\n app {\n id\n images {\n TV_BANNER\n KEY_ART\n }\n title\n library {\n favorited\n }\n itemMetadata {\n campaignIds\n }\n variants {\n id\n appStore\n publisherName\n supportedControls\n gfn {\n library {\n status\n selected\n lastPlayedDate\n }\n status\n }\n contentRatings {\n categoryKey\n type\n }\n }\n }\n}\n",Main:Ir,Campaigns:"query GetCampaignsInfo($locale: String!, $vpcId: String!) {\n campaigns(vpcId: $vpcId, language: $locale) {\n items {\n action {\n label\n url\n }\n id\n images {\n GAME_BOX_ART\n GAME_LOGO\n TV_BANNER\n HERO_IMAGE\n MARQUEE_HERO_IMAGE\n }\n promoText {\n summary\n tag\n }\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n schedule {\n endTime\n startTime\n }\n }\n }\n}",FilterGroupAndSortOrderDefinitions:"query GetFilterGroupAndSortOrderDefinitions($locale: String!) {\n filterGroupDefinitions(language: $locale) {\n id\n label\n filters {\n id\n label\n filters\n }\n }\n sortOrderDefinitions(language: $locale) {\n id\n label\n orderBy\n }\n}",AppsWithSearch:"query GetSearchFilterResults(\n $vpcId: String!,\n $locale: String!,\n $sortString: String!,\n $fetchCount: Int!,\n $cursor: String!,\n $searchString: String!,\n $filters: AppFilterFields!) {\n apps(\n vpcId: $vpcId,\n language: $locale,\n orderBy: $sortString,\n first: $fetchCount,\n after: $cursor,\n searchQuery: $searchString,\n filters: $filters\n ){\n numberReturned\n numberSupported\n pageInfo {\n hasNextPage\n endCursor\n totalCount\n }\n items {\n id\n title\n library {\n favorited\n }\n images {\n TV_BANNER\n }\n variants {\n id\n appStore\n supportedControls\n gfn {\n library {\n status\n selected\n }\n }\n }\n itemMetadata {\n campaignIds\n }\n }\n }\n}",AppsWithoutSearch:"query GetSearchFilterResults(\n $vpcId: String!,\n $locale: String!,\n $sortString: String!,\n $fetchCount: Int!,\n $cursor: String!,\n $filters: AppFilterFields!) {\n apps(\n vpcId: $vpcId,\n language: $locale,\n orderBy: $sortString,\n first: $fetchCount,\n after: $cursor,\n filters: $filters\n ){\n numberReturned\n numberSupported\n pageInfo {\n hasNextPage\n endCursor\n totalCount\n }\n items {\n id\n title\n library {\n favorited\n }\n images {\n TV_BANNER\n }\n variants {\n id\n appStore\n supportedControls\n gfn {\n library {\n status\n selected\n }\n }\n }\n itemMetadata {\n campaignIds\n }\n }\n }\n}",UpsellMessages:"query GetUpsellMessages($locale: String!, $upsellMessageKey: [String]!) {\n clientStrings(language: $locale, keys: $upsellMessageKey)\n}",AppDataForAppId:"query GetAppDataQueryForAppId($vpcId: String!, $locale: String!, $appIds: [String]!) {\n apps(vpcId: $vpcId, language: $locale, appIds: $appIds) {\n items {\n appStore\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n developerName\n displaysOwnRatingDuringGameplay\n id\n genres\n images {\n GAME_BOX_ART\n GAME_LOGO\n HERO_IMAGE\n SCREENSHOTS\n TV_BANNER\n KEY_ART\n }\n nvidiaTech {\n ANSEL\n FREESTYLE\n HIGHLIGHTS\n }\n title\n longDescription\n shortDescription\n maxLocalPlayers\n maxOnlinePlayers\n supportedControls\n publisherName\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n computedValues {\n earliestStreetDate\n paymentModels {\n __typename\n }\n }\n itemMetadata {\n campaignIds\n }\n variants {\n streetDate\n appStore\n id\n shortName\n supportedControls\n storeUrl\n publisherName\n developerName\n paymentModels {\n __typename\n }\n gfn {\n library {\n status\n selected\n }\n status\n features {\n ...feature\n }\n }\n }\n }\n }\n}\nfragment feature on GfnSubscriptionFeature {\n __typename\n ... on GfnSubscriptionFeatureValue {\n key\n value\n }\n ... on GfnSubscriptionFeatureValueList {\n key\n values\n }\n}\n",AppDataForAppIdWithoutMILA:Vs,AppDataForCmsId:"query GetAppDataQueryForCmsId($vpcId: String!, $locale: String!, $cmsIds: [Int]!) {\n apps(vpcId: $vpcId, language: $locale, variantIds: $cmsIds) {\n items {\n appStore\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n developerName\n displaysOwnRatingDuringGameplay\n id\n genres\n images {\n GAME_BOX_ART\n HERO_IMAGE\n SCREENSHOTS\n TV_BANNER\n KEY_ART\n }\n nvidiaTech {\n ANSEL\n FREESTYLE\n HIGHLIGHTS\n }\n title\n shortDescription\n longDescription\n maxLocalPlayers\n maxOnlinePlayers\n supportedControls\n publisherName\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n computedValues {\n earliestStreetDate\n paymentModels {\n __typename\n }\n }\n itemMetadata {\n campaignIds\n }\n variants {\n streetDate\n appStore\n id\n shortName\n supportedControls\n storeUrl\n publisherName\n developerName\n paymentModels {\n __typename\n }\n gfn {\n status\n features {\n ...feature\n }\n }\n }\n }\n }\n}\nfragment feature on GfnSubscriptionFeature {\n __typename\n ... on GfnSubscriptionFeatureValue {\n key\n value\n }\n ... on GfnSubscriptionFeatureValueList {\n key\n values\n }\n}\n",AppDataForCmsIdWithoutVpcId:"query GetAppDataQueryForCmsIdWithoutVpcId($locale: String!, $cmsIds: [Int]!) {\n apps(language: $locale, variantIds: $cmsIds) {\n items {\n appStore\n contentRatings {\n categoryKey\n contentDescriptorKeys\n interactiveElementKeys\n type\n }\n developerName\n displaysOwnRatingDuringGameplay\n id\n genres\n images {\n GAME_BOX_ART\n HERO_IMAGE\n SCREENSHOTS\n TV_BANNER\n KEY_ART\n }\n nvidiaTech {\n ANSEL\n FREESTYLE\n HIGHLIGHTS\n }\n title\n shortDescription\n longDescription\n maxLocalPlayers\n maxOnlinePlayers\n supportedControls\n publisherName\n marqueeScrimPrimaryRGB {\n r\n g\n b\n }\n computedValues {\n earliestStreetDate\n paymentModels {\n __typename\n }\n }\n itemMetadata {\n campaignIds\n }\n variants {\n streetDate\n appStore\n id\n shortName\n supportedControls\n storeUrl\n publisherName\n developerName\n paymentModels {\n __typename\n }\n }\n }\n }\n}",LoginWallData:"query GetLoginWallData($locale: String!, $vpcId: String!, $panelNames: [String]!, $stringsKey: [String]!) {\n panels(language: $locale, vpcId: $vpcId, names: $panelNames) {\n id\n name\n sections {\n telemetryName\n items {\n __typename\n ...gameFields\n }\n }\n }\n clientStrings(language: $locale, keys: $stringsKey)\n}\nfragment gameFields on GameItem {\n app {\n images {\n TV_BANNER\n }\n }\n}",LoginWallStringsOnly:"query GetLoginWallStrings($locale: String!, $stringsKey: [String]!) {\n clientStrings(language: $locale, keys: $stringsKey)\n}",AddFavoriteApp:"mutation AddFavoriteApp($appId: String!, $locale: String!) {\n addFavoriteApp(language: $locale, appId: $appId) {\n app {\n id\n }\n }\n}",RemoveFavoriteApp:"mutation RemoveFavoriteApp($appId: String!, $locale: String!) {\n removeFavoriteApp(language: $locale, appId: $appId) {\n app {\n id\n }\n }\n}",AddOwnedVariant:"mutation AddOwnedVariant($cmsId: String!, $locale: String!) {\n addOwnedVariant(language: $locale, variantId: $cmsId) {\n app {\n id\n }\n }\n}",RemoveOwnedVariant:"mutation RemoveOwnedVariant($cmsId: String!, $locale: String!) {\n removeOwnedVariant(language: $locale, variantId: $cmsId) {\n app {\n id\n }\n }\n}",SelectOwnedVariant:"mutation SelectOwnedVariant($cmsId: String!, $locale: String!) {\n selectOwnedVariant(language: $locale, variantId: $cmsId) {\n app {\n id\n }\n }\n}"},bn={AppsWithSearch:"query GetSearchFilterResults(\n $vpcId: String!,\n $locale: String!,\n $sortString: String!,\n $fetchCount: Int!,\n $cursor: String!,\n $searchString: String!,\n $filters: AppFilterFields!) {\n apps(\n vpcId: $vpcId,\n language: $locale,\n orderBy: $sortString,\n first: $fetchCount,\n after: $cursor,\n searchQuery: $searchString,\n filters: $filters\n ){\n numberReturned\n numberSupported\n pageInfo {\n hasNextPage\n endCursor\n totalCount\n }\n items {\n id\n title\n images {\n TV_BANNER\n }\n variants {\n id\n appStore\n supportedControls\n }\n itemMetadata {\n campaignIds\n }\n }\n }\n}",AppsWithoutSearch:"query GetSearchFilterResults(\n $vpcId: String!,\n $locale: String!,\n $sortString: String!,\n $fetchCount: Int!,\n $cursor: String!,\n $filters: AppFilterFields!) {\n apps(\n vpcId: $vpcId,\n language: $locale,\n orderBy: $sortString,\n first: $fetchCount,\n after: $cursor,\n filters: $filters\n ){\n numberReturned\n numberSupported\n pageInfo {\n hasNextPage\n endCursor\n totalCount\n }\n items {\n id\n title\n images {\n TV_BANNER\n }\n variants {\n id\n appStore\n supportedControls\n }\n itemMetadata {\n campaignIds\n }\n }\n }\n}",Main:"\nquery GetGameSection($vpcId: String!, $locale: String!, $panelNames: [String]!) {\n panels(vpcId: $vpcId, language: $locale, names: $panelNames) {\n id\n name\n sections {\n id\n telemetryName\n type\n title\n seeMoreInfo {\n filterTileId\n title\n filterIds\n minTiles,\n sortOrderId\n }\n items {\n __typename\n ...filterFields\n ...minimalGameFields\n }\n }\n }\n}\n\nfragment filterFields on FilterItem {\n id\n title\n image\n filterIds\n}\n\nfragment minimalGameFields on GameItem {\n app {\n id\n images {\n TV_BANNER\n }\n title\n itemMetadata {\n campaignIds\n }\n variants {\n id\n appStore\n supportedControls\n gfn {\n status\n }\n }\n }\n}",AppDataForAppId:Vs},so={StaticAppData:"1c8e9ae4851b71a2a15583b4ec25bee23cd312ff2e1eae8ace58f9575ad6fda4",UserAccount:"c0d32eea714da66ceaaea8a894fdf26a503270c87b5494897f0579c390e3d479",Marquee:"aa0ab4457d77dfca206b2baff7f317b67a4eadace46f8f18a8f1508669392ccb",Favorites:"c7ebcaec12e9d37cade88e1401adc3d7d2c7454d0c387b12b2818ef765bb200f",LibrarySection:"c7ebcaec12e9d37cade88e1401adc3d7d2c7454d0c387b12b2818ef765bb200f",LibrarySectionWithTime:"49d31d6b7ea37e6676ef6656b9542f3293a161f60e20c593625171fda2f53a58",Main:"c7ebcaec12e9d37cade88e1401adc3d7d2c7454d0c387b12b2818ef765bb200f",Campaigns:"c75162f669ceb2b5d0ce5062474fd65b471a8a13085cbbb885ac1fe6fbbfbf8d",FilterGroupAndSortOrderDefinitions:"0b81ec998250c648401914babb7c71044e6603a16be2dfa537fde471d32233da",AppsWithSearch:"8caabb3cf567fac32675eaaeae1ca84033eff38ab496042fa49fd706b5a71562",AppsWithoutSearch:"b2e70ec5eda3b23ac42d16b102353b40c99fb9de8ab238bdcac5ad9bcc3155a9",UpsellMessages:"f367fe9d438dd1da67e8e9a9055f7219c258ee10bf6f6f48e539f6d5d3fd0120",AppDataForAppId:"a549dfd2accc19ad6db70a0befd45c8be295d47e497d2820ca509e5649117abb",AppDataForAppIdWithoutMILA:"37d32c0aeead1a3e800fde5d198284c7eea9204d6e8a46d695c2cb35091b5ec2",AppDataForCmsId:"144527937c938cdf56db419510c1eb33b71a68309ac7255fff88beb7bd37462f",AppDataForCmsIdWithoutVpcId:"2a0a02a95fb02cd5e62fca9ed82a5677fd8aa6a579a98edbb0764b1b94881956",LoginWallData:"dff6137faf58b66e67b9c1969c9d104324aabfbb467c242334752fc9a5c45887",LoginWallStringsOnly:"600316b112e08d80a3fe4ba16c45f635e690da9e798fe0fb7fc5da547e5e7051",AddFavoriteApp:"0b1463d227991c32ca83569af2470a9b000408fd01cdccc15692c9f0462354c9",RemoveFavoriteApp:"1a15b57e8a23113391e645cc3c672097b86282b60fb95f26b39a005507cd2583",AddOwnedVariant:"881604c8281fc0a106bc14ead8ab1ee02775fd3b847c987beb7153f5bec704ea",RemoveOwnedVariant:"41283cb0b456533f39dc91f65066c3b97dd4766d519c0e2d8e9fed79653dd959",SelectOwnedVariant:"d451d5d385ac4d38bb3eeda49afc269001b7b147fd1fb1f30e9f262d89be3b80"};var gr=function(j){return j.StaticAppData="StaticAppData",j.UserAccount="UserAccount",j.Marquee="Marquee",j.Favorites="Favorites",j.LibrarySection="LibrarySection",j.LibrarySectionWithTime="LibrarySectionWithTime",j.Main="Main",j.Campaigns="Campaigns",j.FilterGroupAndSortOrderDefinitions="FilterGroupAndSortOrderDefinitions",j.AppsWithSearch="AppsWithSearch",j.AppsWithoutSearch="AppsWithoutSearch",j.UpsellMessages="UpsellMessages",j.AppDataForAppId="AppDataForAppId",j.AppDataForAppIdWithoutMILA="AppDataForAppIdWithoutMILA",j.AppDataForCmsId="AppDataForCmsId",j.AppDataForCmsIdWithoutVpcId="AppDataForCmsIdWithoutVpcId",j.LoginWallData="LoginWallData",j.LoginWallStringsOnly="LoginWallStringsOnly",j.AddFavoriteApp="AddFavoriteApp",j.RemoveFavoriteApp="RemoveFavoriteApp",j.AddOwnedVariant="AddOwnedVariant",j.RemoveOwnedVariant="RemoveOwnedVariant",j.SelectOwnedVariant="SelectOwnedVariant",j}(gr||{}),jr=function(j){return j.AppMetadata="appMetaData",j.StaticAppData="staticAppData",j.PanelsMain="panels/MainV2",j.PanelsMarquee="panels/Marquee",j.PanelsLibrary="panels/Library",j.PanelsFavorites="panels/Favorites",j.UserAccount="userAccount",j.ClientStrings="clientStrings",j.Campaigns="campaigns",j.Apps="apps",j.FilterGroupAndSortOrderDefinitions="filterGroupAndSortOrderDefinitions",j.LoginWallData="loginWallData",j.LoginWallStrings="loginWallStrings",j}(jr||{});const $o={[gr.StaticAppData]:{query:co[gr.StaticAppData],cacheKey:jr.StaticAppData,serviceUseCase:Pt.OOF.Other,isUserSpecificQuery:!1,sha256hash:so[gr.StaticAppData]},[gr.UserAccount]:{query:co[gr.UserAccount],cacheKey:jr.UserAccount,serviceUseCase:Pt.OOF.GetUserAccount,isUserSpecificQuery:!0,sha256hash:so[gr.UserAccount]},[gr.Marquee]:{query:co[gr.Marquee],cacheKey:jr.PanelsMarquee,serviceUseCase:Pt.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:so[gr.Marquee]},[gr.LibrarySectionWithTime]:{query:co[gr.LibrarySectionWithTime],cacheKey:jr.PanelsLibrary,serviceUseCase:Pt.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:so[gr.LibrarySectionWithTime]},[gr.LibrarySection]:{query:co[gr.LibrarySection],cacheKey:jr.PanelsLibrary,serviceUseCase:Pt.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:so[gr.LibrarySection]},[gr.Favorites]:{query:co[gr.Favorites],cacheKey:jr.PanelsFavorites,serviceUseCase:Pt.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:so[gr.Favorites]},[gr.Main]:{query:co[gr.Main],cacheKey:jr.PanelsMain,serviceUseCase:Pt.OOF.GetPanel,isUserSpecificQuery:!0,sha256hash:so[gr.Main],serviceUnavailableFallbackQuery:bn[gr.Main]},[gr.Campaigns]:{query:co[gr.Campaigns],cacheKey:jr.Campaigns,serviceUseCase:Pt.OOF.GetCampaigns,isUserSpecificQuery:!0,sha256hash:so[gr.Campaigns]},[gr.AppsWithSearch]:{query:co[gr.AppsWithSearch],cacheKey:jr.Apps,serviceUseCase:Pt.OOF.GetApps,isUserSpecificQuery:!0,sha256hash:so[gr.AppsWithSearch],serviceUnavailableFallbackQuery:bn[gr.AppsWithSearch]},[gr.AppsWithoutSearch]:{query:co[gr.AppsWithoutSearch],cacheKey:jr.Apps,serviceUseCase:Pt.OOF.GetApps,isUserSpecificQuery:!0,sha256hash:so[gr.AppsWithoutSearch],serviceUnavailableFallbackQuery:bn[gr.AppsWithoutSearch]},[gr.FilterGroupAndSortOrderDefinitions]:{query:co[gr.FilterGroupAndSortOrderDefinitions],cacheKey:jr.FilterGroupAndSortOrderDefinitions,serviceUseCase:Pt.OOF.GetFilterGroupAndSortOrderDefinitions,isUserSpecificQuery:!0,sha256hash:so[gr.FilterGroupAndSortOrderDefinitions]},[gr.AppDataForAppId]:{query:co[gr.AppDataForAppId],cacheKey:jr.AppMetadata,serviceUseCase:Pt.OOF.GetAppData,isUserSpecificQuery:!0,sha256hash:so[gr.AppDataForAppId],serviceUnavailableFallbackQuery:bn[gr.AppDataForAppId]},[gr.AppDataForAppIdWithoutMILA]:{query:co[gr.AppDataForAppIdWithoutMILA],cacheKey:jr.AppMetadata,serviceUseCase:Pt.OOF.GetAppData,isUserSpecificQuery:!0,sha256hash:so[gr.AppDataForAppIdWithoutMILA]},[gr.AppDataForCmsId]:{query:co[gr.AppDataForCmsId],cacheKey:jr.AppMetadata,serviceUseCase:Pt.OOF.GetAppData,isUserSpecificQuery:!0,sha256hash:so[gr.AppDataForCmsId]},[gr.AppDataForCmsIdWithoutVpcId]:{query:co[gr.AppDataForCmsIdWithoutVpcId],cacheKey:jr.AppMetadata,serviceUseCase:Pt.OOF.GetAppData,isUserSpecificQuery:!0,sha256hash:so[gr.AppDataForCmsIdWithoutVpcId]},[gr.UpsellMessages]:{query:co[gr.UpsellMessages],cacheKey:jr.ClientStrings,serviceUseCase:Pt.OOF.Other,isUserSpecificQuery:!0,sha256hash:so[gr.UpsellMessages]},[gr.LoginWallData]:{query:co[gr.LoginWallData],cacheKey:jr.LoginWallData,serviceUseCase:Pt.OOF.GetLoginWallData,isUserSpecificQuery:!1,sha256hash:so[gr.LoginWallData]},[gr.LoginWallStringsOnly]:{query:co[gr.LoginWallStringsOnly],cacheKey:jr.LoginWallStrings,serviceUseCase:Pt.OOF.GetLoginWallStrings,isUserSpecificQuery:!1,sha256hash:so[gr.LoginWallStringsOnly]}},Va={[gr.AddFavoriteApp]:{query:co[gr.AddFavoriteApp],serviceUseCase:Pt.OOF.AddFavoriteApp},[gr.RemoveFavoriteApp]:{query:co[gr.RemoveFavoriteApp],serviceUseCase:Pt.OOF.RemoveFavoriteApp},[gr.AddOwnedVariant]:{query:co[gr.AddOwnedVariant],serviceUseCase:Pt.OOF.AddOwnedVariant},[gr.RemoveOwnedVariant]:{query:co[gr.RemoveOwnedVariant],serviceUseCase:Pt.OOF.RemoveOwnedVariant},[gr.SelectOwnedVariant]:{query:co[gr.SelectOwnedVariant],serviceUseCase:Pt.OOF.SelectOwnedVariant}};function Ha(j){return $o[j]}var _s=function(j){return j.Unknown="Unknown",j.Catalog="Catalog",j.Game="Game",j}(_s||{}),Bl=function(j){return j.Unknown="Unknown",j.RedirectCompleted="RedirectCompleted",j.Aborted="Aborted",j.Success="Success",j.Failure="Failure",j}(Bl||{}),go=d(5798),ja=d(80062),Gl=d(38502);let Fe=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt){this.appConfig=C,this.endpointFactory=w,this.distributedtracingUtilService=Q,this.idmService=me,this.clientHeaderService=bt,this.cascadePreviewToken=null,this.lastFetchedStaticAppDataTime=null,this.lastFetchedStaticAppData$=null,this.nvPreviewTime=null,this.logger=Ye.getLogger("LcarsSdkService");const{defaultRetries:cn,defaultTimeBetweenRetries:Wn,defaultTimeout:xi,retryOnTimeout:Yi,exponentialBackoffMaxDelay:fr}=C.lcars;this.queryDataEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:cn,timeout:xi,timeBetweenRetries:Wn,retryOnTimeout:Yi,exponentialBackoffMaxDelay:fr}}),this.firstFetchSet=new Set,this.setCascadePreviewData()}setCascadePreviewData(){this.cascadePreviewToken=(0,Ii.BS)(Ii.kE.CascadePreviewToken),this.cascadePreviewToken?(this.logger.info(`Got cascadePreviewToken: ${this.cascadePreviewToken}`),this.nvPreviewTime=(0,Ii.BS)(Ii.kE.PreviewAtTime),this.logger.info(this.nvPreviewTime?`Got previewAtTime: ${this.nvPreviewTime}`:"No previewAtTime in query params")):this.logger.info("No cascadePreviewToken in query params")}createHeader(C,w,Q,me){const Ye={...w};return Ye["Content-Type"]="application/graphql",this.firstFetchSet.has(C)||me?Ye[Zo.tD.SwCacheBypass]=JSON.stringify(!0):this.firstFetchSet.add(C),Q?.token&&(Ye[go.SA.authorization]=`GFNJWT ${Q.token}`),this.appConfig.lcars.cascadeHeaderValue&&(Ye["NV-Cascade-Content"]=this.appConfig.lcars.cascadeHeaderValue),this.appConfig.lcars.stageHeaderValue&&(Ye["NV-Env"]=this.appConfig.lcars.stageHeaderValue),this.cascadePreviewToken&&(Ye["cache-control"]="no-cache",Ye[Zo.tD.SwCacheBypass]=JSON.stringify(!1),Ye["NV-Additional"]=this.cascadePreviewToken,this.nvPreviewTime&&(Ye["NV-Preview-Time"]=this.nvPreviewTime)),Ye}fetchQueryData(C,w,Q,me,Ye){return(0,Vt.zV)([this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}),this.idmService.accountStatusChanged.pipe((0,g.s)(1))]).pipe((0,nt.ZZ)(([bt,cn])=>{const Wn=Ha(C),xi=Wn.cacheKey;cn.isAuthenticated&&Wn.isUserSpecificQuery&&cn.userId!==this.lastHashedUserId&&(this.userIdHash=(0,ja.sha1)(cn.userId),this.lastHashedUserId=cn.userId);const Yi=Object.assign(xi?{requestType:xi}:null,{extensions:JSON.stringify({persistedQuery:{sha256Hash:Wn.sha256hash}})},cn.isAuthenticated?{huId:this.userIdHash}:null,{variables:w?JSON.stringify(w):null}),fr={headers:this.createHeader(xi,bt,me,Ye),reportRequestData:{originalService:Pt.Uu$.Lcars,serviceUseCase:Wn.serviceUseCase,reportSuccessTelemetry:"true"},params:Yi,includeRequestId:!0},Gr=[];return Object.keys(fr.headers).forEach(Eo=>{"Authorization"!==Eo&&Gr.push(`${Eo}: ${fr.headers[Eo]}`)}),this.logger.info(`Headers for ${C} are: ${Gr}`),this.handleRequest(cn.isAuthenticated&&xi!==jr.AppMetadata||cn.isAuthenticated&&xi===jr.AppMetadata&&me?this.appConfig.lcars.serverUrl:this.appConfig.lcars.serverUrlCDN,fr,Wn,Q)}))}postQueryData(C,w,Q,me=!1){return(0,Vt.zV)([this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}),this.idmService.getAuthToken(me,Q)]).pipe((0,nt.ZZ)(([Ye,bt])=>{const cn=function ic(j){return Va[j]}(C),Wn=Object.assign({query:cn.query},{variables:w?JSON.stringify(w):null}),xi={headers:this.createHeader(null,Ye,bt,!0),reportRequestData:{originalService:Pt.Uu$.Lcars,serviceUseCase:cn.serviceUseCase,reportSuccessTelemetry:"true"},params:Wn,includeRequestId:!0};return this.handlePostRequest(this.appConfig.lcars.serverUrl,xi,Q)}),(0,Un.W)(Ye=>this.idmService.handleAuthError(Ye,me,this.postQueryData.bind(this),C,w,Q)))}handlePostRequest(C,w,Q){const me=this.queryDataEndpoint.post((0,xe.l2)([C]),w);return this.distributedtracingUtilService.handleHttpEndpointSpan(me,w,Pr.pB.LcarsPostQueryData,Q)}handleRequest(C,w,Q,me){const Ye=this.queryDataEndpoint.get((0,xe.l2)([C]),w);return this.distributedtracingUtilService.handleHttpEndpointSpan(Ye,w,Pr.pB.LcarsFetchQueryData,me).pipe((0,Un.W)(bt=>{if(400!==bt?.status||w?.params?.query){if(503===bt?.status&&Q?.serviceUnavailableFallbackQuery){delete w.params.extensions;const cn={...w};cn.params.query=Q.serviceUnavailableFallbackQuery;const Wn=this.queryDataEndpoint.get((0,xe.l2)([C]),cn);return this.distributedtracingUtilService.handleHttpEndpointSpan(Wn,cn,Pr.pB.LcarsFetchQueryData,me)}return(0,Ut.$)(bt)}{const cn={...w};cn.params.query=Q.query;const Wn=this.queryDataEndpoint.get((0,xe.l2)([C]),cn);return this.distributedtracingUtilService.handleHttpEndpointSpan(Wn,cn,Pr.pB.LcarsFetchQueryData,me)}}))}fetchStaticDataQuery(C,w){const Q=Date.now();if(Q-this.lastFetchedStaticAppDataTime>ft.oY){this.lastFetchedStaticAppDataTime=Q;const Ye=Ha(gr.StaticAppData),bt=Object.assign({requestType:Ye.cacheKey},{variables:JSON.stringify(C),extensions:JSON.stringify({persistedQuery:{sha256Hash:Ye.sha256hash}})});this.lastFetchedStaticAppData$=this.clientHeaderService.getCommonHeaders().pipe((0,nt.ZZ)(cn=>{const Wn={headers:this.createHeader(Ye.cacheKey,cn),reportRequestData:{originalService:Pt.Uu$.Lcars,reportSuccessTelemetry:"true"},params:bt,includeRequestId:!0,includeFullResponse:!0},xi=[];return Object.keys(Wn.headers).forEach(Yi=>{xi.push(`${Yi}: ${Wn.headers[Yi]}`)}),this.logger.info(`Headers for static call are: ${xi}`),this.handleRequest(this.appConfig.lcars.serverUrlCDN,Wn,Ye,w)}),(0,Bo.t)(1))}return this.lastFetchedStaticAppData$}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(Mi.Vk),c.KVO(go.t),c.KVO(Pr.Z1),c.KVO(Ai.k_),c.KVO(l.J6),c.KVO(Gl.y1))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var tt=d(66974);let yt=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo){this.lcarsSdk=Q,this.localeService=me,this.idmService=Ye,this.gridService=bt,this.systemInfoService=cn,this.serviceWorkerService=Wn,this.distributedTracingUtilService=xi,this.gfnSdkService=Yi,this.refreshUiService=fr,this.config=Gr,this.guestModeHelperService=ao,this.imageFormatService=Eo,this.layoutDataUpdated$=new p.B7,this.userAccountInfoUpdated$=new p.B7,this.gameMetaDataMap=new Map,this.staticAppDataCurrentEtag=null,this.getAppDataQuery=(ls,ws,xl)=>ls?ws?gr.AppDataForCmsId:gr.AppDataForCmsIdWithoutVpcId:xl?gr.AppDataForAppId:gr.AppDataForAppIdWithoutMILA,this.logger=C.getLogger("LcarsService"),this.fetchStaticDataInfoStream=w.createStream(()=>this.fetchStaticAppDataInfo()),this.AppMetadataStreams=new xe.V$(ls=>this.fetchAppdata(ls)),this.userAccountDataStream=w.createStream(()=>this.fetchUserAccountInfo()),this.fetchClientUpsellMessageStream=w.createStream(()=>this.fetchUpsellMessages()),this.campaignsInfoStream=w.createStream(()=>this.fetchCampaignsInfo()),this.filterGroupSortOrderDefinitionsStream=w.createStream(()=>this.fetchFilterGroupSortOrderDefinitions()),this.initalize(),this.initServiceWorkerNotifications()}initalize(){this.getVpcIdLocaleOsPlatform().subscribe(()=>{},C=>{this.logger.error("Could not fetch vpcId",C)}),this.idmService.accountStatusChanged.subscribe(C=>{!1===this.isUserLoggedIn&&C.isAuthenticated&&(this.refreshAppMetaData=!0,this.refreshClientStrings=!0),void 0!==this.refreshCampaignsInfo&&(this.refreshCampaignsInfo=!0),void 0!==this.refreshFilterGroupSortOrderDefinitions&&(this.refreshFilterGroupSortOrderDefinitions=!0),this.isUserLoggedIn=C.isAuthenticated})}initServiceWorkerNotifications(){const C=Zo.fR.staleWhileRevalidate.lcarsStatic.cacheName,w=Zo.fR.staleWhileRevalidate.lcars.cacheName,Q=Zo.fR.staleWhileRevalidate.lcarsUserAccount.cacheName,me=Zo.fR.staleWhileRevalidate.lcarsClientStrings.cacheName,Ye=[w,C,Q,me];this.serviceWorkerService.swCacheUpdated.pipe((0,ge.p)(bt=>Ye.includes(bt.name))).subscribe(bt=>{switch(bt.name){case C:this.logger.info("Received updated data SW notification for static app data");const cn=bt.data?.data;cn&&this.fetchStaticDataInfoStream.setData(cn,!0);break;case w:this.logger.info("Received updated data SW notification for panels");const Wn=bt.data?.data;this.logPanelsData(Wn.panels),Wn&&this.layoutDataUpdated$.next(Wn);break;case Q:this.logger.info("Received updated data SW notification for user account data");const xi=bt.data?.data;xi&&(this.userAccountDataStream.setData(xi,!1),this.userAccountInfoUpdated$.next(xi));break;case me:this.logger.info("Received updated data SW notification for client string");const Yi=this.processUpsellMessageResponse(bt.data);Yi&&this.fetchClientUpsellMessageStream.setData(Yi,!0)}})}get onUserAccountInfoUpdated$(){return this.userAccountInfoUpdated$.asObservable()}get onLayoutDataUpdated$(){return this.layoutDataUpdated$.asObservable()}getLocaleOsPlatform(){if(this.locale&&this.osPlatformName)return(0,it.of)([this.locale,this.osPlatformName]);{const C=this.localeService.localeChanged,w=this.systemInfoService.getSystemInfo([l.Lu.Platform]);return(0,Vt.zV)([C,w]).pipe((0,nt.ZZ)(([Q,me])=>(this.locale=Q,this.osPlatformName=me.Platform,(0,it.of)([this.locale,this.osPlatformName]))))}}getVpcIdLocaleOsPlatform(){if(this.vpcId&&this.locale&&this.osPlatformName)return(0,it.of)([this.vpcId,this.locale,this.osPlatformName]);{const C=this.gridService.vpcId$.pipe((0,mo.F)());return(0,Vt.zV)([C,this.getLocaleOsPlatform()]).pipe((0,nt.ZZ)(([w,Q])=>(this.vpcId=w,(0,it.of)([this.vpcId,...Q]))))}}getVpcIdLocaleOsPlatformStatusandToken(C=!1,w){const Q=this.idmService.getAuthToken(C,w);return(0,Vt.zV)([Q,this.getVpcIdLocaleOsPlatform()]).pipe((0,g.s)(1),(0,wt.T)(([me,Ye])=>[me||null,...Ye]))}fetchAppdata(C,w=!1){const Q=JSON.parse(C),me=this.getAppDataOptions;if(!Q)return(0,Ut.$)("Error while reading gameId");const Ye=this.distributedTracingUtilService.startSpan(Pr.pB.ClientGetAppMetadata,me.parentSpan),bt={authToken:null,vpcId:null,locale:null,osPlatformName:null},cn=this.gfnSdkService.getAuthType().pipe((0,wt.T)(xi=>xi!==Qr.hT.JWT));return(0,Vt.zV)([this.getVpcIdLocaleOsPlatformStatusandToken(w,Ye),cn]).pipe((0,on.M)(([[xi,Yi,fr,Gr],ao])=>{bt.authToken=xi,bt.vpcId=Yi,bt.locale=fr,bt.osPlatformName=Gr,me?.isCmsId&&ao&&xi&&xi.token?me.useVpcIdWithCmsId=!0:me?.isCmsId&&(bt.authToken=null)})).pipe((0,nt.ZZ)(xi=>{let Yi;const fr={locale:this.locale};if(me.isCmsId){Yi=this.getAppDataQuery(!0,me?.useVpcIdWithCmsId);let Gr=[];(0,a.isArray)(Q)?Gr=Q?.map(ao=>parseInt(ao,10)):"string"==typeof Q?Gr=[parseInt(Q,10)]:"number"==typeof Q&&(Gr=[Q]),fr.cmsIds=Gr,me?.useVpcIdWithCmsId&&(fr.vpcId=this.vpcId)}else Yi=this.getAppDataQuery(!1,!0,me.includeLibraryFields),fr.appIds=[Q],fr.vpcId=this.vpcId;return this.setSpanTags(Ye,void 0,this.vpcId,this.locale,this.isUserLoggedIn),(0,Vt.zV)([this.getStaticAppData().pipe((0,g.s)(1),(0,Un.W)(()=>(0,it.of)(null))),this.lcarsSdk.fetchQueryData(Yi,fr,Ye,bt.authToken)]).pipe((0,nt.ZZ)(([Gr,ao])=>(Gr||this.logger.info("Using default appstore info values for static app data"),0===ao.data.apps.items.length&&this.guestModeHelperService.isGuestMode?(this.logger.info("Appdata is empty for GDN flow, using default metadata"),(0,it.of)(this.guestModeHelperService.fetchDefaultGDNMetaData(Q))):(ao.data.apps.items.forEach(Eo=>{ds.sortVariants(Eo.variants),Eo.variants.forEach(ls=>{ls.appStoreInfo=ds.getStoreInfoForAppstore(ls.appStore)})}),this.refreshAppMetaData=this.refreshAppMetaData?!this.isUserLoggedIn:this.refreshAppMetaData,(0,it.of)(ao.data.apps.items)))),(0,on.M)(()=>this.endSpan(Ye,!1)),(0,Un.W)(Gr=>this.idmService.handleAuthError(Gr,w,this.fetchAppdata.bind(this),C)),(0,Un.W)(Gr=>(this.endSpan(Ye,!0),Gr.status>=300&&this.guestModeHelperService.isGuestMode?(this.logger.info("Appdata fetch fails for GDN, using default metadata"),(0,it.of)(this.guestModeHelperService.fetchDefaultGDNMetaData(Q))):(0,Ut.$)(Gr))))}))}getAppdata(C,w={},Q=!1){return this.getAppDataOptions=w,this.refreshAppMetaData||Q?this.fetchAppdata(JSON.stringify(C)).pipe((0,on.M)(me=>this.AppMetadataStreams.setData(JSON.stringify(C),me))):this.AppMetadataStreams.get$(JSON.stringify(C))}getPanelQuery(C){switch(C.panelName){case ft.HP.Marquee:return gr.Marquee;case ft.HP.Main:return gr.Main;case ft.HP.Library:return C?.fetch?.fetchLibraryWithAdditionalInfo?gr.LibrarySectionWithTime:gr.LibrarySection;case ft.HP.Favorites:return gr.Favorites}}getPanel(C,w,Q=!1){const me=C.currentSpan?C.currentSpan:this.distributedTracingUtilService.startSpan(Pr.pB.ClientGetPanel,C.parentSpan);return this.getVpcIdLocaleOsPlatformStatusandToken(Q,me).pipe((0,nt.ZZ)(([Ye,bt,cn,Wn])=>{const Yi={vpcId:bt,locale:cn,panelName:w,fetch:w===ft.HP.Library?this.config.lcars?.panelFetchQueryOverride:void 0};this.logger.info(`Fetching fresh panel ${w} for trigger ${C?.triggerName} with ${bt}`),this.setSpanTags(me,C.triggerName,bt,cn,this.isUserLoggedIn),this.distributedTracingUtilService.setSpanAttribute(me,Pr.NS.PanelType,w);const fr=this.getPanelQuery(Yi);return this.lcarsSdk.fetchQueryData(fr,{vpcId:bt,locale:cn,panelNames:[w]},me,Ye,C.bypassSwCache).pipe((0,nt.ZZ)(ao=>(this.logPanelsData(ao?.data?.panels),(0,it.of)(ao.data.panels))),(0,on.M)(ao=>this.endSpan(me,!1)))}),(0,Un.W)(Ye=>this.idmService.handleAuthError(Ye,Q,this.getPanel.bind(this),Object.assign({},C,{currentSpan:me}))),(0,Un.W)(Ye=>(this.endSpan(me,!0),(0,Ut.$)(Ye))))}getLoginWallData(){const C=this.distributedTracingUtilService.startSpan(Pr.pB.GetLoginWallData);return this.getVpcIdLocaleOsPlatform().pipe((0,nt.ZZ)(([w,Q,me])=>(this.distributedTracingUtilService.setSpanAttribute(C,Pr.NS.PanelType,ft.HP.LoginWall),this.lcarsSdk.fetchQueryData(gr.LoginWallData,{vpcId:w,locale:Q,panelNames:[ft.HP.LoginWall],stringsKey:[ft.V9]},C).pipe((0,wt.T)(cn=>{const Yi=(cn?.data?.panels[0]).sections[0].items.map(ls=>this.imageFormatService.formatImageServiceUrl(ls.app.images.TV_BANNER,{w:400})),fr=cn?.data?.clientStrings[ft.V9];return{backgroundData:{data:{imageUrls:Yi}},strings:fr}}),(0,on.M)(cn=>this.endSpan(C,!1))))),(0,Un.W)(w=>(this.endSpan(C,!0),(0,Ut.$)(w))))}logPanelsData(C){C?.forEach(w=>{this.logger.info(`Found Panel ${w?.name}`),w?.sections?.forEach(Q=>{this.logger.info(`Found section ${Q?.telemetryName}`),(w.name===ft.HP.Library||w.name===ft.HP.Favorites)&&Q?.items.forEach(me=>{this.logger.info(`Found game ${me?.app?.title} in ${w?.name}`)})})})}getSearchFilterResults(C,w,Q,me,Ye,bt,cn=!1){return this.getVpcIdLocaleOsPlatformStatusandToken(cn).pipe((0,nt.ZZ)(([Wn,xi,Yi,fr])=>{const Gr=w?.length>0,ao={vpcId:xi,locale:Yi,filters:Q,sortString:C,fetchCount:Ye,cursor:me||""};return Gr&&(ao.searchString=w),this.lcarsSdk.fetchQueryData(Gr?gr.AppsWithSearch:gr.AppsWithoutSearch,ao,bt,Wn,!0)}),(0,Un.W)(Wn=>this.idmService.handleAuthError(Wn,cn,this.getSearchFilterResults.bind(this),C,w,Q,me,Ye,bt)))}fetchStaticAppDataInfo(){return this.guestModeHelperService.isGuestAppFlow()?(0,it.of)(void 0):this.getLocaleOsPlatform().pipe((0,nt.ZZ)(([C,w])=>this.lcarsSdk.fetchStaticDataQuery({locale:C}).pipe((0,wt.T)(me=>(this.staticAppDataCurrentEtag=me.headers.get(Zo.tD.ETag),me.body.data)))),(0,Un.W)(C=>(this.logger.error("Error in fetchStaticDataQuery",C),(0,it.of)(ft.JR))))}ensureLatestStaticAppData$(){return this.getLocaleOsPlatform().pipe((0,g.s)(1),(0,nt.ZZ)(([C,w])=>this.lcarsSdk.fetchStaticDataQuery({locale:C}).pipe((0,wt.T)(me=>{const Ye=me.headers.get(Zo.tD.ETag);return!(!Ye||Ye===this.staticAppDataCurrentEtag||(this.logger.info("New StaticAppData recevived and updated"),ds.setGenreDefinitions(me.body.data?.genreDefinitions),ds.setAppStoresDefinitions(me.body.data?.appStoreDefinitions),this.fetchStaticDataInfoStream.setData(me.body.data,!0),this.staticAppDataCurrentEtag=me.headers.get(Zo.tD.ETag),0))}),(0,Un.W)(me=>(this.logger.error("Error while fetching static app data",me),(0,it.of)(!1))))))}getStaticAppData(){return this.fetchStaticDataInfoStream.get$().pipe((0,wt.T)(C=>(ds.setGenreDefinitions(C?.genreDefinitions),ds.setAppStoresDefinitions(C?.appStoreDefinitions),C)))}setSpanTags(C,w,Q,me,Ye){const bt={};w&&(bt[Pr.NS.Trigger]=w),bt[Pr.NS.VpcId]=Q,bt[Pr.NS.Locale]=me,bt[Pr.NS.LoginStatus]=Ye,this.distributedTracingUtilService.setSpanAttributes(C,bt)}endSpan(C,w){C&&(this.distributedTracingUtilService.setSpanAttribute(C,Pr.NS.Error,w),this.distributedTracingUtilService.closeSpan(C))}setMetadataForCmsId(C,w){this.gameMetaDataMap.set(C.toString(),w)}getMetadataByCmsId(C){const w=C.toString();return this.gameMetaDataMap.has(w)?(0,it.of)(this.gameMetaDataMap.get(w)):this.getAppdata(w,{isCmsId:!0}).pipe((0,wt.T)(Q=>Q[0]))}isFeatureSupportedOnVariant(C,w){const Q=C?.gfn?.features;return Q&&Array.isArray(Q)?Q.some(me=>"true"===me.value&&me.key===w):"true"===Q?.value&&Q?.key===w}getLatestUserAccountInfo(){return this.userAccountDataStream.refresh()}fetchUserAccountInfo(C=!1){const w=this.distributedTracingUtilService.startSpan(Pr.pB.UserAccountData);return this.idmService.getAuthToken(C,w).pipe((0,nt.ZZ)(Q=>this.lcarsSdk.fetchQueryData(gr.UserAccount,void 0,w,Q)),(0,wt.T)(Q=>(this.refreshUiService.setContentExpiryInfo(Ws.sD.UserDatastore),this.endSpan(w,!1),Q.data)),(0,Un.W)(Q=>this.idmService.handleAuthError(Q,C,this.fetchUserAccountInfo.bind(this))),(0,Un.W)(Q=>(this.endSpan(w,!0),(0,Ut.$)(Q))))}getUpsellMessages(){return this.refreshClientStrings?this.fetchUpsellMessages().pipe((0,on.M)(C=>this.fetchClientUpsellMessageStream.setData(C,!0))):this.fetchClientUpsellMessageStream.get$()}fetchUpsellMessages(C=!1){const w=[ft.mF],Q=this.distributedTracingUtilService.startSpan(Pr.pB.UpsellMessages),me=this.localeService.localeChanged,Ye=this.idmService.getAuthToken(C,Q);return(0,Vt.zV)([Ye,me]).pipe((0,Bo.t)(1),(0,nt.ZZ)(([bt,cn])=>null===bt.token?(0,it.of)({}):this.lcarsSdk.fetchQueryData(gr.UpsellMessages,{locale:cn,upsellMessageKey:w},Q,bt)),(0,wt.T)(bt=>(this.endSpan(Q,!1),this.refreshClientStrings=!1,this.processUpsellMessageResponse(bt))),(0,Un.W)(bt=>this.idmService.handleAuthError(bt,C,this.fetchUpsellMessages.bind(this))),(0,Un.W)(bt=>(this.endSpan(Q,!0),(0,Ut.$)(bt))))}processUpsellMessageResponse(C){const w=C?.data?.clientStrings?C?.data?.clientStrings[ft.mF]:{};return this.logger.info("UpsellMessage Response: ",w),w}fetchCampaignsInfo(C=!1){if(!this.config.promoUI.isEnabled)return this.logger.info("promo UI feature is disabled"),(0,it.of)(ft.Lx);const w=this.distributedTracingUtilService.startSpan(Pr.pB.CampaignsInfo),Q=this.idmService.getAuthToken(C,w);return(0,Vt.zV)([Q,this.getVpcIdLocaleOsPlatform()]).pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye])=>this.lcarsSdk.fetchQueryData(gr.Campaigns,{locale:Ye[1],vpcId:Ye[0]},w,me)),(0,wt.T)(me=>(this.refreshUiService.setContentExpiryInfo(Ws.sD.CampaignsData),this.endSpan(w,!1),this.refreshCampaignsInfo=!1,me.data.campaigns)),(0,Un.W)(me=>this.idmService.handleAuthError(me,C,this.fetchCampaignsInfo.bind(this))),(0,Un.W)(me=>(this.logger.error("Error in fetching CampaignsInfo",me),this.endSpan(w,!0),(0,Ut.$)(me))))}getCampaignsInfo(){return this.refreshCampaignsInfo?this.fetchCampaignsInfo().pipe((0,on.M)(C=>this.campaignsInfoStream.setData(C,!0))):this.campaignsInfoStream.get$()}refreshCampaignsInfoStream(){this.campaignsInfoStream.refresh()}fetchFilterGroupSortOrderDefinitions(C=!1){const w=this.distributedTracingUtilService.startSpan(Pr.pB.FilterGroupSortOrderDefinitions),Q=this.idmService.getAuthToken(C,w);return(0,Vt.zV)([Q,this.getLocaleOsPlatform()]).pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye])=>this.lcarsSdk.fetchQueryData(gr.FilterGroupAndSortOrderDefinitions,{locale:Ye[0]},w,me)),(0,wt.T)(me=>{this.endSpan(w,!1),this.refreshFilterGroupSortOrderDefinitions=!1;const Ye=me.data.filterGroupDefinitions;Ye.forEach(cn=>{cn.filters.forEach(Wn=>{Wn.filterFields=[];for(let xi=0;xi<Wn.filters.length;xi++){const Yi=JSON.parse(Wn.filters[xi]);Wn.filterFields[xi]=Yi}})});const bt=me.data?.sortOrderDefinitions;return this.logger.info(`Filter group list: ${JSON.stringify(Ye)}`),{sortOrderDefinitions:bt,filterGroupDefinitions:Ye}}),(0,Un.W)(me=>this.idmService.handleAuthError(me,C,this.fetchFilterGroupSortOrderDefinitions.bind(this))),(0,Un.W)(me=>(this.logger.error("Error in fetching fetchFilterGroupSortOrderDefinitions",me),this.endSpan(w,!0),(0,it.of)(ft.VQ))))}getFilterGroupSortOrderDefinitions(){return this.refreshFilterGroupSortOrderDefinitions?this.fetchFilterGroupSortOrderDefinitions().pipe((0,on.M)(C=>this.filterGroupSortOrderDefinitionsStream.setData(C,!0))):this.filterGroupSortOrderDefinitionsStream.get$()}refreshFilterGroupSortOrderDefinitionsStream(){this.filterGroupSortOrderDefinitionsStream.refresh()}getLoginwallStrings(){const C=this.distributedTracingUtilService.startSpan(Pr.pB.GetLoginWallStringsOnly);return this.getLocaleOsPlatform().pipe((0,nt.ZZ)(([w,Q])=>this.lcarsSdk.fetchQueryData(gr.LoginWallStringsOnly,{locale:w,stringsKey:[ft.V9]})),(0,wt.T)(w=>(this.endSpan(C,!1),w?.data?.clientStrings[ft.V9])),(0,Un.W)(w=>(this.endSpan(C,!0),(0,Ut.$)(w))))}addFavoriteApp(C,w=!1){const Q=this.distributedTracingUtilService.startSpan(Pr.pB.AddFavoriteApp);return this.getLocaleOsPlatform().pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye])=>this.lcarsSdk.postQueryData(gr.AddFavoriteApp,{appId:C,locale:me},Q,w)),(0,wt.T)(me=>(this.logger.info("addFavoriteApp response",me),this.endSpan(Q,!1),!0)),(0,Un.W)(me=>(this.logger.error("Error in addFavoriteApp",me),this.endSpan(Q,!0),(0,Ut.$)(me))))}removeFavoriteApp(C,w=!1){const Q=this.distributedTracingUtilService.startSpan(Pr.pB.RemoveFavoriteApp);return this.getLocaleOsPlatform().pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye])=>this.lcarsSdk.postQueryData(gr.RemoveFavoriteApp,{appId:C,locale:me},Q,w)),(0,wt.T)(me=>(this.logger.info("RemoveFavoriteApp response",me),this.endSpan(Q,!1),!0)),(0,Un.W)(me=>404===me?.status?(this.logger.info("Treating 404 for removal of favorite as success"),this.endSpan(Q,!1),(0,it.of)(!0)):(this.logger.error("Error in removeFavoriteApp",me),this.endSpan(Q,!0),(0,Ut.$)(me))))}addOwnedVariant(C,w=!1){const Q=this.distributedTracingUtilService.startSpan(Pr.pB.AddOwnedVariant);return this.getLocaleOsPlatform().pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye])=>this.lcarsSdk.postQueryData(gr.AddOwnedVariant,{cmsId:C,locale:me},Q,w)),(0,wt.T)(me=>(this.logger.info("addOwnedVariant response",me),this.endSpan(Q,!1),!0)),(0,Un.W)(me=>(this.logger.error("Error in addOwnedVariant",me),this.endSpan(Q,!0),(0,it.of)(!1))))}removeOwnedVariant(C,w=!1){const Q=this.distributedTracingUtilService.startSpan(Pr.pB.RemoveOwnedVariant);return this.getLocaleOsPlatform().pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye])=>this.lcarsSdk.postQueryData(gr.RemoveOwnedVariant,{cmsId:C,locale:me},Q,w)),(0,wt.T)(me=>(this.logger.info("removeOwnedVariant response",me),this.endSpan(Q,!1),!0)),(0,Un.W)(me=>404===me?.status?(this.logger.info("Treating 404 for mark as unowned as success"),this.endSpan(Q,!1),(0,it.of)(!0)):(this.logger.error("Error in removeOwnedVariantSpan",me),this.endSpan(Q,!0),(0,Ut.$)(me))))}selectOwnedVariant(C,w=!1){const Q=this.distributedTracingUtilService.startSpan(Pr.pB.SelectOwnedVariant);return this.getLocaleOsPlatform().pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye])=>this.lcarsSdk.postQueryData(gr.SelectOwnedVariant,{cmsId:C,locale:me},Q,w)),(0,wt.T)(me=>(this.logger.info("selectOwnedVariant response",me),this.endSpan(Q,!1),!0)),(0,Un.W)(me=>(this.logger.error("Error in selectOwnedVariant",me),this.endSpan(Q,!0),(0,it.of)(!1))))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(xe.mZ),c.KVO(Fe),c.KVO(l.iH),c.KVO(Ai.k_),c.KVO(lt.G),c.KVO(l.zW),c.KVO(Zo.lS),c.KVO(Pr.Z1),c.KVO(Qr.DL),c.KVO(Ws.F4),c.KVO(Mi.Vk),c.KVO(tt.x),c.KVO(l.Pl))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();d(14279);var Dt=d(1646);let dn=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye){this.serviceWorkerService=w,this.telemetryService=Q,this.configuration=me,this.refreshUiService=Ye,this.logger=C.getLogger("PushNotificationTelemetryService"),this.serviceWorkerService.swPushNotificationTelemetryListener.subscribe(this.onNewTelemetryEvent.bind(this))}sendTokenRegisteredSuccessTelemetry(C){this.fetchFirebaseProjectID().pipe((0,g.s)(1)).subscribe(w=>{this.logger.info("sending Token Registered Success Telemetry"),this.telemetryService.push(this.createPushNotificationTokenRegisteredDef(C,w))},w=>{this.logger.info("Error while fetching firebase Project Id",w),this.telemetryService.push(this.createPushNotificationTokenRegisteredDef(C))})}sendPushNotificationFailureTelemetry(C,w){this.fetchFirebaseProjectID().pipe((0,g.s)(1)).subscribe(Q=>{this.logger.info("sending Token Failure Telemetry"),this.telemetryService.push(this.createPushNotificationErrorDef(C,w,Q))},Q=>{this.logger.info("Error while fetching firebase Project Id",Q),this.telemetryService.push(this.createPushNotificationErrorDef(C,w))})}sendPushNotificationCleanUpTelemetry(C){this.fetchFirebaseProjectID().pipe((0,g.s)(1)).subscribe(w=>{this.logger.info("sending KV Store CleanUp Telemetry"),this.telemetryService.push(this.createPushNotificationPurgedEntriesDef(C,w))},w=>{this.logger.info("Error while fetching firebase Project Id",w),this.telemetryService.push(this.createPushNotificationPurgedEntriesDef(C))})}fetchFirebaseProjectID(){return this.firebaseProjectId=this.configuration?.firebase?.pns?.projectId,(0,it.of)(this.firebaseProjectId)}onNewTelemetryEvent(C){if(this.logger.info("Telemetry message recieved from SW",C),C?.type===Zo.oY.PushNotificationTelemetry&&C?.content){const w=JSON.parse(C?.content);if(this.logger.info("Telemetry Message Type is: ",w?.type),w?.type===Zo._F.PushNotificationReceived){const Q=new Pt.U1f({requestId:w?.data?.requestId??"",projectId:w?.data?.projectId??"",sentTs:w?.data?.sentTs??0,ttl:w?.data?.ttl??0,type:w?.data?.type??Pt.RgL.UNKNOWN});this.telemetryService.push(Q)}else w?.type===Zo._F.PushNotificationError&&this.sendPushNotificationFailureTelemetry(w?.data?.errorDetails,w?.data?.errorCategory)}}createPushNotificationErrorDef(C,w,Q){return new Pt.Xci({errorDetails:C??"",errorCategory:w??Pt.mUs.GENERAL,projectId:Q??""})}createPushNotificationTokenRegisteredDef(C,w){return new Pt.uXT({registrationProvider:C,projectId:w??""})}createPushNotificationPurgedEntriesDef(C,w){return new Pt.YRL({deviceIds:C,projectId:w??""})}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Zo.lS),c.KVO(P.H0),c.KVO(Mi.Vk),c.KVO(Ws.F4))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();const Nr="application/json";var Ji=function(j){return j.Register="PNS_Registrations",j.Unregister="PNS_Unregister",j}(Ji||{});let Ho=(()=>{var j;class Ke{}return(j=Ke).\u0275fac=function(C){return new(C||j)},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac}),Ke})(),Bt=(()=>{var j;class Ke{constructor(C,w,Q){this.serverConfig=C,this.endpointFactory=w,this.distributedTracingUtilService=Q,this.commonHeaders={"Content-Type":Nr,Accept:Nr,"NV-Client-ID":C.clientId},this.endpointConfig={timeout:this.serverConfig.defaultTimeout,exponentialBackoffMaxDelay:this.serverConfig.exponentialBackoffMaxDelay,maxRetries:this.serverConfig.defaultRetries},this.pnsRegisterEndpointUrl=this.preparePnsRegisterEndpoint(),this.pnsUnregisterEndpointUrl=this.preparePnsUnregisterEndpoint()}generateUrl(C){return this.serverConfig.server+"/"+this.serverConfig.version+"/"+C}preparePnsRegisterEndpoint(){return this.endpointFactory.createEndpoint({headers:this.commonHeaders,config:this.endpointConfig,reportRequestData:{originalService:"PNS",serviceUseCase:Ji.Register,reportSuccessTelemetry:"true"}})}preparePnsUnregisterEndpoint(){return this.endpointFactory.createEndpoint({headers:this.commonHeaders,config:this.endpointConfig,reportRequestData:{originalService:"PNS",serviceUseCase:Ji.Unregister,reportSuccessTelemetry:"true"}})}pnsRegister(C,w,Q){return this.commonHeaders=(0,a.merge)(this.commonHeaders,w),this.pnsRegistrationRequest(C,this.commonHeaders,Q)}pnsUnregister(C,w){return this.commonHeaders=(0,a.merge)(this.commonHeaders,w),this.pnsUnregistrationRequest(C,this.commonHeaders)}getCommonHeaders(){return this.commonHeaders}pnsRegistrationRequest(C,w,Q){const me={body:C,headers:w},Ye=this.pnsRegisterEndpointUrl.post(this.generateUrl("registrations"),me);return this.distributedTracingUtilService.handleHttpEndpointSpan(Ye,me,Pr.pB.PnsRegistration,Q)}pnsUnregistrationRequest(C,w){const Q={body:C,headers:w},me=this.pnsUnregisterEndpointUrl.post(this.generateUrl("unregister"),Q);return this.distributedTracingUtilService.handleHttpEndpointSpan(me,Q,Pr.pB.PnsUnregister)}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(Ho),c.KVO(go.t),c.KVO(Pr.Z1))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),ht=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi){this.datePipe=w,this.idmService=Q,this.systemInfoService=me,this.configuration=Ye,this.distributedTracingUtilService=bt,this.pushNotificationTelemetryService=cn,this.clientHeadersService=Wn,this.pnsEndpointSdk=xi,this.sharedStorage=Yi,this.browserProviderId=5,this.client="client_",this.uniqueClientsKey="client_unique_ids",this.dateFormat="yyyy-MM-dd HH:mm:ss +zzzz",this.logger=C.getLogger("PushNotificationRegistationService"),this.commonHeaders$=this.clientHeadersService.getCommonHeaders().pipe((0,g.s)(1))}registerDeviceForPns(C,w){return this.idmService.accountStatusChanged.pipe((0,g.s)(1),(0,ge.p)(Q=>Q.isAuthenticated),(0,_i.n)(Q=>(0,Vt.zV)([(0,it.of)(Q),this.idmService.getAuthToken(!1),this.commonHeaders$,this.systemInfoService.getSystemInfo([l.Lu.DeviceId])])),(0,_i.n)(([Q,me,Ye,bt])=>(this.commonHeaders=Object.assign({},{...Ye,Authorization:`GFNJWT ${me.token}`}),this.cachedPnsData=Object.assign({},{fcmToken:C,authToken:me.token}),this.pnsEndpointSdk.pnsRegister({registrationToken:C,deviceId:bt.DeviceId},this.commonHeaders,w))),(0,wt.T)(Q=>(this.logger.info("PNS registration response: ",Q),this.pushNotificationTelemetryService.sendTokenRegisteredSuccessTelemetry(Pt.key.PNS),!0)),(0,Un.W)(Q=>(this.logger.error("Error registering device with PNS: ",Q),this.pushNotificationTelemetryService.sendPushNotificationFailureTelemetry(JSON.stringify(Q?.status??Q),Pt.mUs.DEVICE_REGISTRATION),w&&(this.distributedTracingUtilService.setSpanAttribute(w,Pr.NS.ErrorDetails,"Error registering device with PNS"),this.distributedTracingUtilService.closeSpan(w)),(0,it.of)(!1))))}unregisterFromPns(C=!0){C&&(this.logger.info("Unregister from PNS on user logout."),this.callUnregister())}callUnregister(C){const w=this.distributedTracingUtilService.startSpan(Pr.pB.PnsUnregister);this.commonHeaders=(0,a.merge)(this.commonHeaders,this.pnsEndpointSdk.getCommonHeaders()),this.cachedPnsData?.fcmToken||C?fetch(this.pnsEndpointSdk.generateUrl("unregister"),{method:"POST",body:JSON.stringify({previousRegistrationTokens:[this.cachedPnsData?.fcmToken??C]}),headers:this.commonHeaders,keepalive:!0}).then(me=>{this.distributedTracingUtilService.closeSpan(w),this.logger.info("Unregister Fetch api call response: ",me.status),204===me.status&&this.sharedStorage.removeBlock("pnsFcmToken").subscribe()}).catch(me=>{this.distributedTracingUtilService.setSpanAttribute(w,Pr.NS.ErrorDetails,"Error unregistering device from PNS"),this.distributedTracingUtilService.closeSpan(w),this.logger.error("Unregister Fetch api call failed: ",me)}):this.logger.error("FCM token was not found, not calling unregister api")}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(x.vh),c.KVO(Ai.k_),c.KVO(l.zW),c.KVO(Mi.Vk),c.KVO(Pr.Z1),c.KVO(dn),c.KVO(Gl.y1),c.KVO(Bt),c.KVO(Po.yQ))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Kt=d(46356),Fn=d(50801);let ii=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr){this.configuration=w,this.idmService=Q,this.serviceWorkerService=me,this.experienceControl=Ye,this.localeService=bt,this.snackbar=cn,this.translateService=Wn,this.projectInterfaceService=xi,this.guestModeHelperService=Yi,this.distributedTracingUtilService=fr,this.pushNotificationRegistationService=Gr,this.throttleTime=2e4,this.snackBarDuration=7e3,this.permissionRequestTracker=new Be.m(1),this.permissionToastDismissTracker=new Be.m(1),this.logger=C.getLogger("BrowserPushNotificationService"),this.firebaseStatusToSpanName=new Map,this.projectInterfaceService.setNotificationAllowedCallBack(this.isNotificationAllowed.bind(this))}init(){this.pushNotificationConfiguration$=this.fetchPushNotificationConfig().pipe((0,Bo.t)(1)),this.registerDeviceForPushNotifications().subscribe(C=>{C?this.logger.info("Device Registration is Sucessful"):this.logger.error("Error while Registering the Device")}),this.initializePushNotifications().subscribe(C=>{C&&this.logger.info("Push Notification is Sucessfully initiated for permission = granted users")}),this.initializePushNotificationKBAUrl(),this.listenToTracingEventsFromServiceWorker(),this.unregisterFromPnsOnUserLogout()}get pushNotificationKBAUrl(){return this.pushNotificationUrl}requestPermissionForPushNotification(){this.setPermissionRequested(),Notification.requestPermission().then(C=>{C===Dt.NQ.Granted?(this.logger.info("Browser Push Notification Permissions are Success"),this.showSuccessMessage(),this.initialize().subscribe(w=>{this.logger.info("Push Notification initialization is Success",w)})):C===Dt.NQ.Denied?(this.logger.info("Browser Push Notification Permissions are denied"),this.showSnackBarWithKBA()):this.logger.info(C===Dt.NQ.Default?"User has closed the Dialog without granting / denying the permissions":"Something unexpected happened, please check further logs")})}initialize(){return this.logger.info("initialize() is called"),this.isNotificationSupported()&&!this.registrationInProgress?(this.registrationInProgress=!0,(0,Vt.zV)([this.pushNotificationConfiguration$,this.idmService.accountStatusChanged]).pipe((0,jt.c)(this.throttleTime),(0,nt.ZZ)(([C,w])=>{if(C&&w.isAuthenticated){this.parentSpan=this.distributedTracingUtilService.startSpan(Pr.pB.PushNotificationRegistration);const Q=JSON.stringify(this.configuration?.firebase?.pns);return this.logger.info("Push Notification Settings are fetched; Sending Push Notification Settings to SW: ",Q),this.serviceWorkerService.postMessageSw({type:Zo.oY.PushNotification,content:Q}),this.registrationInProgress=!1,(0,it.of)(!0)}return this.logger.info("Push Notifications are not Supported for logged out users"),this.registrationInProgress=!1,(0,it.of)(!1)}))):(this.logger.info("Push Notifications are not Supported"),(0,it.of)(!1))}setPermissionToastDismissed(){this.permissionToastDismissTracker.next(!1)}setPermissionRequested(){this.permissionRequestTracker.next(!0)}willBeEnabledOnStreamStart(){return this.isNotificationAllowed().pipe((0,nt.ZZ)(C=>C&&Notification.permission!==Dt.NQ.Granted&&Notification.permission!==Dt.NQ.Denied?(0,rr.O4)(this.permissionRequestTracker.asObservable(),this.permissionToastDismissTracker.asObservable()).pipe((0,g.s)(1),(0,Oi.j)(()=>{this.permissionRequestTracker.complete(),this.permissionRequestTracker=new Be.m(1),this.permissionToastDismissTracker.complete(),this.permissionToastDismissTracker=new Be.m(1)})):(0,it.of)(!1)))}showSuccessMessage(){this.translateService.get("notification.notificationSuccessMessage").pipe((0,g.s)(1)).subscribe(w=>this.snackbar.open(w,"",{duration:this.snackBarDuration,horizontalPosition:"left",panelClass:["nv-hig"]}),w=>{this.logger.info("Error getting the toast message",w)})}showSnackBarWithKBA(){(0,Vt.zV)([this.translateService.get("common.learnMore"),this.translateService.get("notification.notificationBlockMessage")]).pipe((0,wt.T)(([Q,me])=>{this.snackbar.open(me,Q,{duration:this.snackBarDuration,horizontalPosition:"left",panelClass:["nv-hig"]}).onAction().subscribe(Ye=>window.open(this.pushNotificationKBAUrl))})).subscribe(()=>this.logger.info("show Snack Bar With KBA is success"),Q=>this.logger.error("Error while showing snackbar wirh KBAs",Q))}initializePushNotificationKBAUrl(){const C=this.configuration.redirect.serverUrl,w=Yr.ni.GFN_PC_BROWSER_PUSH_NOTIFICATION;this.localeService.localeChanged.subscribe(Q=>{this.pushNotificationUrl=`${C}${Q}&page=${w}`},Q=>{this.logger.error("Some error occured while fetching locale for push Notification KBAUrl",Q)})}initializePushNotifications(){if(this.logger.info("Initialising Push Notifications on Refresh"),this.isNotificationSupported()){if(Notification.permission===Dt.NQ.Granted)return this.logger.info("Permission is granted"),this.initialize();Notification.permission===Dt.NQ.Denied?this.logger.info("Permission is denied"):Notification.permission===Dt.NQ.Default&&this.logger.info("Permission is set to default")}return(0,it.of)(!1)}isNotificationAllowed(){return!this.isNotificationSupported()||this.guestModeHelperService.isGuestMode?(0,it.of)(!1):this.pushNotificationConfiguration$.pipe((0,g.s)(1))}registerDeviceForPushNotifications(){return this.serviceWorkerService.swPushNotificationListener.pipe((0,nt.ZZ)(C=>C?.type===Zo.oY.PushNotification?(this.registrationInProgress=!0,this.logger.info("message recieved from Service Worker, updating the KV Store",C?.content),this.pushNotificationRegistationService.registerDeviceForPns(C.content,this.parentSpan)):(0,it.of)(!1)),(0,nt.ZZ)(C=>C?(this.logger.info("PNS registration response: ",C),this.registrationInProgress=!1,this.parentSpan&&(this.distributedTracingUtilService.setSpanAttribute(this.parentSpan,Pr.NS.Error,!1),this.distributedTracingUtilService.closeSpan(this.parentSpan)),(0,it.of)(!0)):(0,it.of)(!1)),(0,Un.W)(C=>(this.logger.error("Error registering device with PNS: ",C),this.registrationInProgress=!1,(0,it.of)(!1))))}unregisterFromPnsOnUserLogout(){this.idmService.sameTabAuthStarted().pipe((0,on.M)(C=>{C===Kt.l4.LogoutStarted&&this.pushNotificationRegistationService.unregisterFromPns()})).subscribe()}listenToTracingEventsFromServiceWorker(){this.serviceWorkerService.swPushNotificationTracingListener.pipe((0,wt.T)(C=>{if(C?.type===Zo.oY.PushNotificationTracing){this.logger.info("message recieved from Service Worker, updating open traceing flow",C?.content);const w=JSON.parse(C?.content);if(w?.start){const Q=this.distributedTracingUtilService.startSpan(w.spanName,this.parentSpan);this.firebaseStatusToSpanName.set(w.spanName,Q)}else{const Q=this.firebaseStatusToSpanName.get(w.spanName);Q&&(this.logger.info("Closing the Span. Span is open for ",w.spanName),this.distributedTracingUtilService.setSpanAttribute(Q,Pr.NS.Error,w.error),this.distributedTracingUtilService.closeSpan(Q),w.error&&(this.logger.info("Error is received with Close Span Event"),this.distributedTracingUtilService.setSpanAttribute(this.parentSpan,Pr.NS.ErrorDetails,"Unexpected Error with FCM"),this.distributedTracingUtilService.closeSpan(this.parentSpan)))}return!0}return!1}),(0,Un.W)(C=>(this.logger.error("Some error occured while listening to Span Events from SW",C),this.parentSpan&&(this.distributedTracingUtilService.setSpanAttribute(this.parentSpan,Pr.NS.ErrorDetails,"Error while listening to Child Span Events from SW"),this.distributedTracingUtilService.closeSpan(this.parentSpan)),(0,it.of)(!1)))).subscribe(C=>{C?this.logger.info("Child Span is received from SW"):this.logger.error("Error while updating Firebase Spans from SW")})}isNotificationSupported(){return"Notification"in window}fetchPushNotificationConfig(){return this.experienceControl.getCloudVariable(this.configuration.gxTarget.experiences.enableBrowserPushNotification,{},{useCache:!1},no.Ky.GxTargetGetCloudVariable,no.Id.GxTargetGetKBLayoutsConfig).pipe((0,wt.T)(C=>C.value.enableBrowserPushNotifications),(0,Un.W)(C=>(this.logger.error("Failed to resolve gx-target cloud variable:",C),(0,it.of)(!1))))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Mi.Vk),c.KVO(Ai.k_),c.KVO(Zo.lS),c.KVO(no.BW),c.KVO(l.iH),c.KVO(ri.nf),c.KVO(Ze.c$),c.KVO(Fn.qQ),c.KVO(tt.x),c.KVO(Pr.Z1),c.KVO(ht))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),Fi=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt){this.translateService=w,this.localeService=Q,this.bridgeService=me,this.guestModeHelperService=Ye,this.audioPlayService=bt,this.logger=C.getLogger("BrowserNotificationUiService")}show(C){if(!this.guestModeHelperService.isGuestMode&&l.zk.isBrowserPlatform()){this.logger.verbose("inside show method");const w=this.getTitleAndBodyMessage(C),Q={title:w.title,body:w.body,language:this.localeService.getLocale(),direction:this.localeService.isRTLLocale(this.localeService.getLocale())?"rtl":"ltr",tag:C.notificationId,silent:!0};this.bridgeService.executeCommand(Qe.Ts.Common.Clientnotification.ShowClientNotifications,Q).subscribe(me=>{if(me===Qe.Or.Common.Clientnotification.InternalErrorCodeEnum.Success){this.logger.info("Notifications are sent to Framework");const Ye=C.notificationType;(Ye===Dt.bz.RigIsReady||Ye===Dt.bz.CountdownTimerBegins)&&this.audioPlayService.playAudio(Yr.Oj.RigReadyAndStreamerIdleTimeout.type,Ye)}else this.logger.info("Notifications are not sent. Result is ",me)})}}deleteNotification(C){l.zk.isBrowserPlatform()&&this.bridgeService.executeCommand(Qe.Ts.Common.Clientnotification.DeleteNotification,{uniqueId:C}).subscribe(w=>{w===Qe.Or.Common.Clientnotification.InternalErrorCodeEnum.Success?this.logger.info("Notifications is deleted from Notification Center"):this.logger.info("Notifications clear request is not executed. Result is",w)})}clearNotificationsQueue(){l.zk.isBrowserPlatform()&&this.bridgeService.executeCommand(Qe.Ts.Common.Clientnotification.ClearNotificationsQueue,{clear:!0}).subscribe(C=>{C===Qe.Or.Common.Clientnotification.InternalErrorCodeEnum.Success?this.logger.info("Notification Centre is cleared"):this.logger.info("Notifications Centre clear request is not executed. Result is ",C)})}getTitleAndBodyMessage(C){const w=Dt.xL.get(C.notificationType);let Q="";return Q=C.notificationType===Dt.bz.CountdownTimerBegins?this.translateService.instant(w.title,{timeLeft:C.countdownTime}):this.translateService.instant(w.title),{title:Q,body:this.translateService.instant(w.body)}}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Ze.c$),c.KVO(l.iH),c.KVO(l.NZ),c.KVO(tt.x),c.KVO(l.aP))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();d(43354);let Vr=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls){this.loggingService=C,this.sharedStorageService=w,this.systemInfoService=Q,this.bridgeService=me,this.networkConfigService=Ye,this.config=bt,this.ecommerceService=cn,this.idmService=Wn,this.nativeEventService=xi,this.redirectService=Yi,this.lcarsService=fr,this.translateParser=Gr,this.remoteConfigurationService=ao,this.libLoggingService=Eo,this.eventStreamFactory=ls,this.fpsList=[Pa.Value60,Pa.Value30],this.bitDepthListsSubject=new Be.m(1),this.updatedPresetProfiles={...Ya},this.updatedBitrateValues=ln,this.audioChannelCount=Tr.wi.STEREO,this.streamingProfileGuid=(0,xe.bz)(),this.streamingProfileGuidSubject=new Be.m(1),this.isPlatformSupportsUHD$=new Be.m(1),this.isPlatformSupportsFps$=new Be.m(1),this.displayModeChanged$=new p.B7,this.gameFeaturePropertiesSubject$=new Be.m,this.hdrDecodeSupportedSubject$=new J.t(!1),this.hdrRenderingSupportedSubject$=new J.t(!1),this.hdrLearnMoreUrlSubject$=new Be.m,this.isHdrToggleTurnedOffSubject$=new Be.m,this.isReflexToggleTurnedOffSubject$=new Be.m,this.streamingModeSubject$=new Be.m,this.reflexLearnMoreUrlSubject$=new Be.m,this.upsellFlags={},this.deviceCapabilitiesReady$=new Be.m(1),this.modeSelectionReady$=new Be.m(1),this.availableResolutionList$=new Be.m(1),this.subscriptionBitDepthList=[],this.uwResolutions=[],this.isPresetProfileDetailsExpanded=!1,this.isCustomProfileDetailsExpanded=!0,this.logger=this.loggingService.getLogger("streaming-profile.service"),this.isBrowserPlatform=l.zk.isBrowserPlatform(),this.updateConfigurationVariables(),this.registerEvents(),this.initializeMembers()}get SupportedResolutionList(){return this.supportedResolutionList}get UnsupportedDisabledResolutionsList(){return this.unsupportedDisabledResolutionsList}get IsPlatformSupportsHDRDecode(){return this.hdrDecodeSupportedSubject$.value}get IsPlatformSupportsHDRRendering(){return this.hdrRenderingSupportedSubject$.value}get IsPlatformSupportsCloudGsync(){return this.cloudGsyncCapabilities?.platformSupportsCloudGsync}get IsVrrDisplayDetected(){return this.cloudGsyncCapabilities?.isVrrCapableDisplay}get isGsyncDisplay(){return this.cloudGsyncCapabilities?.isGsyncDisplay}get CloudGsyncDependencies(){return this.cloudGsyncCapabilities?.cloudGsyncDependencies}get isL4SFeatureEnabled(){return this.l4SFeatureEnabled}get isBitDepthFeatureEnabled(){return this.bitDepthFeatureEnabled}getAvailableResolutionList(){return this.availableResolutionList$.asObservable()}initializeStreamingProfiles$(C=!1){if(this.initializeStreamingProfilesObservable$)return this.initializeStreamingProfilesObservable$;const w=this.systemInfoService.getSystemInfo([l.Lu.Network]).pipe((0,wt.T)(Q=>Q.Network),(0,mo.F)());return this.initializeStreamingProfilesObservable$=(0,Vt.zV)([w,this.isPlatformSupportsUHD$.asObservable(),this.isPlatformSupportsFps$.asObservable(),this.subscriptionInfoStream.get$()]).pipe((0,nt.ZZ)(([Q,me,Ye,bt])=>(this.networkInfo=Q,this.updateStreamingModeFromEntitlementData(),this.updateMaxBitrate(),this.supportedResolutionList=this.getSupportedResolutionsAndFpsList(bt,me,Ye),this.availableResolutionList=this.supportedResolutionList.filter(cn=>cn.enabled),this.availableResolutionList$.next(this.availableResolutionList),this.getDeviceCapabilities$(C))),(0,on.M)(()=>{this.updateBitDepthList(),this.updateStreamingAudioFormat(this.subscriptionFeatures)}),(0,Bo.t)(1)),this.initializeStreamingProfilesObservable$}clientModeSelectionLogCallback(C){this.libLoggingService.sendLog({logModule:"ClientModeSelection",timeStamp:"",logLevel:"d"===C.level?l.$b.DEBUG:"w"===C.level?l.$b.WARN:l.$b.INFO,logTag:C.tag,logStr:C.message})}setSubscriptionFeaturesAndGetResolutions(C){this.subscriptionFeatures=C.subscription?.features,this.subscriptionStreamingQualities=C.subscription?.streamingQualities,this.subscriptionBitDepthList=this.getSubscriptionBitDepthList(this.subscriptionFeatures);const w=C.membershipStatus!==zr.Entitled;let Q=C.subscription?.features?.resolutions;return w&&(Q=C.unentitledUserData?.resolutions,Q=Q?.map(me=>({...me,isEntitled:!0})),this.subscriptionFeatures={resolutions:Q,features:[]},this.subscriptionStreamingQualities=C.unentitledUserData?.streamingQualities),Q?.sort(function(me,Ye){return Ye.widthInPixels*Ye.heightInPixels-me.widthInPixels*me.heightInPixels}),Q}initSubscriptionInfoStream(){this.subscriptionInfoStream=this.eventStreamFactory.createStream(()=>this.ecommerceService.getUserMembership().pipe((0,ge.p)(C=>C.membershipStatus!==zr.UnKnown),(0,wt.T)(C=>this.setSubscriptionFeaturesAndGetResolutions(C)),(0,ge.p)(C=>C?.length>0),(0,on.M)(()=>this.deviceCapabilitiesFetched$=null)))}getDeviceCapabilities$(C=!1){return this.deviceCapabilitiesFetched$&&!C||(this.deviceCapabilitiesFetched$=(0,Vt.zV)([this.subscriptionInfoStream.get$(),this.modeSelectionReady$.asObservable()]).pipe((0,_i.n)(([w,Q])=>{const me=this.modeSelection.sortModes(w.map(bt=>({width:bt.widthInPixels,height:bt.heightInPixels,fps:bt.framesPerSecond})),{width:0,height:0,fps:0},[{field:"fps-abs",dir:"desc"},{field:"pixel-count-abs",dir:"desc"}]);return this.logger.info("GetDeviceCapabilities parameters: ",me),this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.GetDeviceCapabilities,{supportedModes:me}).pipe((0,wt.T)(bt=>this.processDeviceCapabilitiesResponse(bt)))}),(0,g.s)(1),(0,Bo.t)(1))),this.deviceCapabilitiesFetched$}processDeviceCapabilitiesResponse(C){this.logger.info("GetDeviceCapabilities response: ",C),this.deviceCapabilities=C;const w=this.deviceCapabilities.features.bitDepth>=10,Q=w&&this.deviceCapabilities.features.hdr;return this.hdrDecodeSupportedSubject$.next(w),this.hdrRenderingSupportedSubject$.next(Q),this.logger.info("IsPlatformSupportsHDRStreaming: decode, rendering ",w,Q),this.deviceCapabilitiesReady$.next(),!0}getCachedGxtOverrides(){return this.remoteConfigurationService.loadPreviousOverrides().pipe((0,wt.T)(C=>C?.data&&C?.isFetchedFromGXT?JSON.stringify(C.data):(this.logger.info("No GXT overrides available."),"")),(0,g.s)(1))}initializeMembers(){this.initSubscriptionInfoStream(),this.initializeStreamingProfiles$().subscribe(Mt.l,Mt.l),this.fetchPlatformSupportFps(),this.fetchIsPlatformSupportsUHD(),this.previousStreamingProfile=this.getSpecificPresetProfile(),this.gameFeaturePropertiesInitialized$().subscribe(),this.getCachedGxtOverrides().pipe((0,nt.ZZ)(C=>{let w;return this.modeSelection=new ti.ClientModeSelection(C),this.modeSelection.setLogCallback(Q=>this.clientModeSelectionLogCallback(Q)),""!==C?(w={gxtOverrideData:C},this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.ConfigureStreamingSettings,w)):(this.logger.info("configureStreaming remote overrides are not from GXT"),(0,it.of)(""))})).subscribe(()=>this.modeSelectionReady$.next())}registerEvents(){this.idmService.accountStatusChanged.subscribe(()=>{this.logger.info("Streaming profile reset for user account change."),this.initializeStreamingProfilesObservable$=null,this.clearCachedStreamingProfile()}),this.displayModeChangeListener$().pipe((0,on.M)(()=>this.logger.info("Received Display mode changed event.")),(0,nt.ZZ)(()=>this.getDeviceCapabilities$(!0)),(0,nt.ZZ)(()=>this.fetchPlatformSupportCloudGsync$(!0))).subscribe(()=>{this.displayModeChanged$.next(!0)},C=>{this.logger.error("Error in DisplayModeChange event.",C)})}updateStreamingModeFromEntitlementData(){Object.values(po).filter(C=>C!==po.Custom).forEach(C=>{const w=this.ecommerceService.getStreamingModeDetails(C);let Q=this.updatedPresetProfiles[C];!w||!Q||(Q={...Q,...w},this.updatedPresetProfiles[C]=Q)})}updateMaxBitrate(){const C=this.ecommerceService.getMaxBitrate();C&&(this.updatedBitrateValues.bitRateMin=C.minBitrateValue,this.updatedBitrateValues.bitRateMax=C.maxBitrateValue)}updateBitDepthList(){const C=[],w=[];this.subscriptionBitDepthList.sort((me,Ye)=>Ye.value-me.value);const Q=this.deviceCapabilities.features.sdrBitDepth||this.deviceCapabilities.features.bitDepth||ts.value;this.subscriptionBitDepthList.forEach(me=>{me.value>Q?(me.enabled=!1,w.push(me)):C.push(me)}),this.bitDepthListsSubject.next([C,w])}initializeGameFeatureProperties$(){return this.gameFeatureProperties$||(this.gameFeatureProperties$=(0,Vt.zV)([this.fetchHdrToggleState$(),this.fetchHdrLearnMoreUrl$().pipe((0,g.s)(1)),this.deviceCapabilitiesReady$.asObservable(),this.fetchSelectedStreamingMode$(),this.fetchReflexLearnMoreUrl$().pipe((0,g.s)(1)),this.fetchReflexToggleState$()]).pipe((0,_i.n)(()=>this.gameFeaturePropertiesSubject$.asObservable()),(0,Bo.t)(1))),this.gameFeatureProperties$}updateConfigurationVariables(){this.l4SFeatureEnabled=!!this.config?.productV2?.l4sFeatureEnabled,this.bitDepthFeatureEnabled=!!this.config?.productV2?.bitDepthFeatureEnabled;const C=this.config?.client?.streamingModeResolutionsConfiguration?.resolutionBadges;this.resolutionBadges=C?Object.entries(C).map(w=>w[1]):[],C?.uwQHD?.resolutions&&this.uwResolutions.push(...C.uwQHD.resolutions),C?.uwFHD?.resolutions&&this.uwResolutions.push(...C.uwFHD.resolutions),this.unsupportedResolutionIdentifier=this.config?.client?.streamingModeResolutionsConfiguration?.unsupportedResolutionIdentifier,this.displayUnsupportedResolution=this.config?.client?.streamingModeResolutionsConfiguration?.displayUnsupportedResolution,this.unsupportedFpsIdentifier=this.config?.client?.streamingModeResolutionsConfiguration?.unsupportedFpsIdentifier,this.displayUnsupportedFps=this.config?.client?.streamingModeResolutionsConfiguration?.displayUnsupportedFps,this.uhdResolutionIdentifier=this.config?.client?.streamingModeResolutionsConfiguration?.resolutionIdentifier?.UHD,this.fpsCheckNotNeeded=this.config?.client?.streamingModeResolutionsConfiguration?.fpsCheckNotNeeded,this.platformSupportVsync=!!this.config?.client?.streamingModeResolutionsConfiguration?.platformSupportVsync}gameFeaturePropertiesInitialized$(){return(0,Vt.zV)([this.getIsHdrToggleTurnedOff$(),this.getHdrLearnMoreUrl$(),this.getIsPlatformSupportsHDRDecode$(),this.getIsPlatformSupportsHDRRendering$(),this.getStreamingMode$(),this.getReflexLearnMoreUrl$(),this.getIsReflexToggleTurnedOff$()]).pipe((0,wt.T)(([C,w,Q,me,Ye,bt,cn])=>(this.gameFeaturePropertiesSubject$.next({hdrToggledOff:C,hdrLearnMoreUrl:w,hdrDecodeSupported:Q,hdrRenderSupported:me,streamingMode:Ye,reflexLearnMoreUrl:bt,reflexToggledOff:cn}),!0)),(0,Bo.t)(1))}getIsPlatformSupportsHDRDecode$(){return this.hdrDecodeSupportedSubject$.asObservable()}getIsPlatformSupportsHDRRendering$(){return this.hdrRenderingSupportedSubject$.asObservable()}getIsHdrToggleTurnedOff$(){return this.isHdrToggleTurnedOffSubject$.asObservable()}getHdrLearnMoreUrl$(){return this.hdrLearnMoreUrlSubject$.asObservable()}getStreamingMode$(){return this.streamingModeSubject$.asObservable()}getReflexLearnMoreUrl$(){return this.reflexLearnMoreUrlSubject$.asObservable()}getIsReflexToggleTurnedOff$(){return this.isReflexToggleTurnedOffSubject$.asObservable()}getStreamingProfileGuid(){return this.streamingProfileGuidSubject.asObservable()}updateStreamingProfileGuid(C){(0,a.isEqual)(C,this.previousStreamingProfile)||(this.streamingProfileGuid=(0,xe.bz)(),this.previousStreamingProfile=C),this.streamingProfileGuidSubject.next(this.streamingProfileGuid)}getSpecificPresetProfile(C=po.Balanced){return{...this.updatedPresetProfiles[C]}}getAutoMaxBitrateValue(C,w,Q){const me=[];return me.push({frameRate:Q,height:w,width:C}),this.getAutoMaxBitrateValueForResolutionArray(me).pipe((0,g.s)(1),(0,wt.T)(Ye=>Ye[0].maxBandwidth))}getAutoMaxBitrateValueForResolutionArray(C){return this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.PlatformGetMaxBitRateForArray,{resolutions:C}).pipe((0,g.s)(1),(0,wt.T)(Q=>{this.logger.info("PlatformGetMaxBitRateForArray response: ",Q);const me=Q.resolutions;return me?.forEach(Ye=>{Ye.maxBandwidth=Math.round(Ye.maxBandwidth/1e3)}),me}),(0,Un.W)(Q=>{this.logger.error("Error in PlatformGetMaxBitRateForArray bridge command: ",Q);const me=[];return C.forEach(Ye=>{me.push({width:Ye.width,height:Ye.height,fps:Ye.frameRate,maxBandwidth:0})}),(0,it.of)(me)}))}getResolutionLabel(C,w){return this.resolutionBadges.filter(Q=>Q.resolutions.some(me=>me.height===w&&me.width===C))[0]?.badgeUrl}isCustomDataInSubscription(C){return void 0!==this.availableResolutionList?.some(Q=>Q.height===C.height&&Q.width===C.width&&Q.fpsList?.some(me=>me.value===C.fps&&me.enabled))&&this.isCustomModeFeaturesEntitled(C)}isCustomModeFeaturesEntitled(C){return(!C.cloudGsync||this.ecommerceService.featureEntitled(Tr.N1.CLOUD_GSYNC))&&(!C.hdrStreaming||this.ecommerceService.featureEntitled(Tr.N1.HDR_ENABLED))&&(!C.reflex||this.ecommerceService.featureEntitled(Tr.N1.ENABLED_REFLEX))&&(!C.l4sEnabled||this.ecommerceService.featureEntitled(Tr.N1.ENABLED_L4S))}getProfileNamesList(){return this.isBrowserPlatform||l.zk.isAndroidPlatform()?[yr.BALANCED,yr.CUSTOM]:[yr.BALANCED,yr.DATA_SAVER,yr.COMPETITIVE,yr.CUSTOM]}isVsyncSupported(){return!(l.zk.isAndroidPlatform()||l.zk.isBrowserPlatform())}calculateDataUsage(C,w,Q,me){return this.logger.info("Calculate data usage, params: ",C,w,Q,me),this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.CalculateDataUsage,{width:C,height:w,frameRate:Q,bitRateKbps:1e3*me}).pipe((0,g.s)(1),(0,wt.T)(bt=>(this.logger.info("CalculateDataUsage response: ",bt),bt.dataUsage)),(0,Un.W)(bt=>(this.logger.error("Error in CalculateDataUsage bridge command: ",bt),(0,it.of)(0))))}updateStreamingAudioFormat(C){const w=C?.features?.find(me=>me.key===Tr.N1.SUPPORTED_AUDIO_FORMATS)?.textValue,Q=w&&w!==Tr.wi[0]?Tr.wi[w]:Tr.wi.STEREO;(0,a.isUndefined)(this.deviceCapabilities?.features?.audioChannelCount)||(this.audioChannelCount=Math.min(Q,this.deviceCapabilities.features.audioChannelCount))}getSubscriptionBitDepthList(C){const w=C?.features?.find(Q=>Q.key===Tr.N1.BIT_DEPTH)?.textValue;return w?JSON.parse(w).map(Ye=>({value:JSON.parse(Ye.value),enabled:Ye.isEntitled})):[]}calculateAspectRatio(C,w,Q=!0){const me=C/w;let Ye=Gs[0];for(const bt of Gs)Math.abs(me-bt.ratio)<Math.abs(me-Ye.ratio)&&(Ye=bt);return Q&&this.logger.info("Calculate Formatted Aspect Ratio for resolution: ",C,w,Ye.formattedRatio),Ye.formattedRatio}getResolution(C,w){return{width:C,height:w,ratio:this.calculateAspectRatio(C,w,!1),enabled:!0,label:this.getResolutionLabel(C,w)}}getPrimaryDisplayResolution(C=Tn.Logical){return this.isBrowserPlatform||l.zk.isAndroidPlatform()?this.systemInfoService.getSystemInfo([l.Lu.Display]).pipe((0,wt.T)(w=>{const Q=w.Display,me=Q[0].PhysicalResolution.split("x"),Ye=Q[0].LogicalResolution.split("x");let bt;return this.physicalResolution={width:parseInt(me[0],10),height:parseInt(me[1],10),fps:parseInt(Q[0].RefreshRate,10)},bt=C===Tn.Logical?{width:parseInt(Ye[0],10),height:parseInt(Ye[1],10),fps:parseInt(Q[0].RefreshRate,10)}:this.physicalResolution,this.config.featureEnablement.landscapeOnlyStreaming&&(bt={...bt,width:Math.max(bt.width,bt.height),height:Math.min(bt.width,bt.height)},this.physicalResolution={...this.physicalResolution,width:Math.max(this.physicalResolution.width,this.physicalResolution.height),height:Math.min(this.physicalResolution.width,this.physicalResolution.height)}),this.logger.info(`Primary display ${C} resolution: `,bt),bt})):this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.GetDisplayMode).pipe((0,g.s)(1),(0,wt.T)(w=>{let Q;return this.physicalResolution={width:w.physical.width,height:w.physical.height,fps:w.physical.refreshRate},Q=C===Tn.Logical?{width:w.logical.width,height:w.logical.height,fps:w.logical.refreshRate}:this.physicalResolution,this.logger.info(`Active display mode ${C} resolution: `,w),Q}))}getCurrentPhysicalResolution(){return this.physicalResolution?{horizontalPixels:this.physicalResolution.width,verticalPixels:this.physicalResolution.height}:null}getNetworkType(){switch(this.networkInfo.NetworkType){case l.Sd.WiFi2_4:return 2;case l.Sd.WiFi5_0:return 3;case l.Sd.Ethernet:return 1}return 0}getProfileNameType(C=po.Balanced){switch(C){case po.Competitive:return 2;case po.DataSaver:return 3}return 1}getStreamingProfileName(){return this.sharedStorageService.readBlock(oi.BlockName).pipe((0,wt.T)(C=>{let w=C[oi.StreamingProfiles];return w=(0,a.isUndefined)(w)?po.Balanced:w,w}))}getStreamingProfile(C=0,w){return this.streamingProfile$&&0===C||(this.streamingProfile$=(0,Vt.zV)([this.sharedStorageService.readBlock(oi.BlockName),this.getPrimaryDisplayResolution(),this.networkConfigService.getCurrentFingerprintMaxDisplay(),this.networkConfigService.getCurrentFingerprintMaxPacketSize(),this.initializeStreamingProfiles$()]).pipe((0,g.s)(1),(0,nt.ZZ)(([Q,me,Ye,bt,cn])=>{this.settingsBlock=(0,a.merge)({},Q);let Wn=w??this.settingsBlock[oi.StreamingProfiles];Wn=(0,a.isUndefined)(Wn)?po.Balanced:Wn;const xi=this.getProfileNameType(Wn);let Yi=!1;if(Wn===po.Custom){const ws=this.settingsBlock[oi.CustomProfile];if(!(0,a.isUndefined)(ws)&&this.isCustomDataInSubscription(ws)){const xl={...ws,audioMode:this.audioChannelCount,l4sEnabled:ws.l4sEnabled&&ws.drc};return(0,it.of)(this.setupProfileData(xl,C,Wn,bt,me,Q,Ye))}(0,a.isUndefined)(ws)||(Yi=!0)}const fr=this.getSpecificPresetProfile(Wn!==po.Custom?Wn:po.Balanced),Gr=this.modeSelection.parseSubscription(this.subscriptionFeatures,this.subscriptionStreamingQualities),{desired:ao,options:Eo}=Gr.get(xi);return Eo.selectKind=C,Eo.networkType=this.getNetworkType(),Ye&&0===C&&Wn!==po.Custom&&(Eo.networkMaxMode={...Ye,fps:Ye.frameRate}),Eo.desiredFeatures.vsync=fr.vSync,Eo.desiredFeatures.hdr=fr.hdrStreaming,Eo.desiredFeatures.reflex=fr.reflex,Eo.desiredFeatures.cloudGsync=fr.cloudGsync,Eo.desiredFeatures.audioChannelCount=this.audioChannelCount,(0,Ln.T)(()=>Yi,this.storeCustomProfileData(null,!0).pipe((0,on.M)(()=>this.logger.info("Streaming mode reset to default due to requested features outside entitlement"))),(0,it.of)(!0)).pipe((0,wt.T)(()=>this.getStreamingMode(ao,Eo,xi,fr,Wn,bt,me,Q,Ye,C)))}),(0,Un.W)(Q=>(this.logger.error("Error getting profiles settings from sharedStorage: (default profile data used)",Q),(0,it.of)(this.setupProfileData(this.getSpecificPresetProfile(),C)))),(0,on.M)(Q=>this.updateStreamingProfileGuid(Q)),(0,Bo.t)(1))),this.streamingProfile$}getStreamingMode(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi){const fr=this.modeSelection.selectModeWithProfile(C,this.deviceCapabilities,w,Q);return this.logger.info("modeSelection.selectModeWithProfile: response ",fr),me.width=fr.selectedVideoMode.width,me.height=fr.selectedVideoMode.height,me.fps=fr.selectedVideoMode.fps,me.audioMode=fr.selectedFeatures.audioChannelCount,me.cloudGsync=fr.selectedFeatures.cloudGsync,me.hdrStreaming=fr.selectedFeatures.hdr,me.reflex=fr.selectedFeatures.reflex,me.vSync=fr.selectedFeatures.vsync,me.l4sEnabled=fr.selectedFeatures.l4s,me.bitDepth=fr.selectedFeatures.bitDepth,this.setupProfileData(me,Yi,Ye,bt,cn,Wn,xi)}setupProfileData(C,w,Q,me,Ye,bt,cn){return Q&&(C.name=Q),me&&(C.maxPacketSize=me),Ye&&(C.primaryDisplayResolution=Ye),bt&&(C.sharedSettings=bt),cn&&(C.currentFingerprintMaxDisplay=cn),C.networkInfo=this.networkInfo,0===w&&(C.maxBitrate=1e3*C.maxBitrate),C.aspectRatio=this.calculateAspectRatio(C.width,C.height),this.logger.info("Settings for "+(0===w?"streaming are: ":"display are: "),C),C}clearCachedStreamingProfile(){this.streamingProfile$=null}readCustomProfileData(){return this.sharedStorageService.readBlock(oi.BlockName).pipe((0,wt.T)(C=>(this.settingsBlock=(0,a.merge)({},C),this.logger.info("Read settings block from sharedStorage: ",C),C[oi.CustomProfile])))}storeCustomProfileData(C,w){return this.sharedStorageService.readBlock(oi.BlockName).pipe((0,nt.ZZ)(Q=>(w?delete this.settingsBlock[oi.CustomProfile]:(this.settingsBlock=(0,a.merge)({},Q),this.settingsBlock[oi.CustomProfile]=C),this.sharedStorageService.writeBlock(oi.BlockName,this.settingsBlock))))}getFpsList(){return this.fpsList}getBitDepthLists$(){return this.bitDepthListsSubject.asObservable()}getFpsOption(C){return{value:C.framesPerSecond,displayName:C.framesPerSecond+" FPS",enabled:C.isEntitled}}getSupportedResolutionsAndFpsList(C,w,Q){const me=[];if(this.unsupportedDisabledResolutionsList=[],0===C?.length){this.logger.info("Subscription resolution list is empty using default custom resolution");const Ye=this.getSpecificPresetProfile(),bt=this.getResolution(Ye.width,Ye.height);me.push(bt)}else C.forEach(Ye=>{if(!me.some(bt=>bt.width===Ye.widthInPixels&&bt.height===Ye.heightInPixels)){const bt=this.getResolution(Ye.widthInPixels,Ye.heightInPixels),cn=C.filter(Wn=>Wn.widthInPixels===bt.width&&Wn.heightInPixels===bt.height);if(!w&&bt.height*bt.width>=this.unsupportedResolutionIdentifier)return void(this.displayUnsupportedResolution&&(this.unsupportedDisabledResolutionsList.push(bt),bt.enabled=!1));if(bt.enabled=cn?.some(Wn=>Wn.isEntitled),bt.enabled){bt.fpsList=cn.map(xi=>this.getFpsOption(xi)),bt.fpsList?.sort((xi,Yi)=>Yi.value-xi.value);const Wn=bt.fpsList.filter(xi=>!this.fpsCheckNotNeeded&&xi.value>=this.unsupportedFpsIdentifier);if(Wn.length>0){const xi=[];Wn.forEach(Yi=>{Q||xi.push(Yi)}),xi.length>0&&(bt.fpsList=bt.fpsList.filter(Yi=>!xi.some(fr=>fr.value===Yi.value)),this.displayUnsupportedFps&&(bt.unsupportedFpsList=xi.map(Yi=>({...Yi,enabled:!1}))))}}me.push(bt)}});return me}fetchIsPlatformSupportsUHD(){this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.IsPlatformSupportsUHD).subscribe(C=>{this.logger.info("IsPlatformSupportsUHD response: ",C),this.isPlatformSupportsUHD$.next(C)},C=>{this.logger.error("IsPlatformSupportsUHD error: ",C.toString()),this.isPlatformSupportsUHD$.next(!1)})}fetchPlatformSupportFps(){return this.fpsCheckNotNeeded?(this.logger.info("IsPlatformSupportsFps not checked for unsupported clients. False."),void this.isPlatformSupportsFps$.next(!1)):this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.IsPlatformSupportFps,{frameRates:[{value:this.unsupportedFpsIdentifier}]}).subscribe(C=>{this.logger.info("isPlatformSupportsFps response: ",C),this.isPlatformSupportsFps$.next(C?.frameRates[0]?.supported)},C=>{this.logger.error("isPlatformSupportsFps error: ",C.toString()),this.isPlatformSupportsFps$.next(!1)})}getResolutionUpsellMessage(C,w){const Q=C.subscription?.features?.resolutions?.some(Ye=>Ye.widthInPixels*Ye.heightInPixels>=this.uhdResolutionIdentifier.lowerLimit);return{parameter:w&&Q?"4K":"1440p"}}getFpsUpsellMessage(C,w){return{parameter:C.subscription?.features?.resolutions?.some(Ye=>Ye.framesPerSecond===Pa.Value240.value)&&w?"240":"120"}}getPlatformSpecificBalancedPresetResolution(){const C=this.getSpecificPresetProfile();if(C&&this.availableResolutionList?.length&&!this.availableResolutionList?.some(w=>w.height===C?.height&&w.width===C?.width)){const w=Object.assign({},C);return w.width=this.availableResolutionList[0].width,w.height=this.availableResolutionList[0].height,w.fps=this.availableResolutionList?.find(Q=>Q.width===w.width&&Q.height===w.height)?.fpsList[0]?.value,w}return C}getMaxbitRateList(){return(0,a.cloneDeep)(tn)}getvSyncList(){return(0,a.cloneDeep)([qr.ValueOn,qr.ValueOff,qr.ValueAdaptive])}fetchHdrLearnMoreUrl$(){return this.hdrLearnMoreUrl$||(this.hdrLearnMoreUrl$=this.redirectService.getRedirectUrl(He.r7.GfnPcHdrUnsupportedSystemsLearnMore).pipe((0,on.M)(C=>{this.hdrLearnMoreUrlSubject$.next(C)}),(0,Bo.t)(1))),this.hdrLearnMoreUrl$}fetchHdrToggleState$(C){return C&&this.isHdrToggleTurnedOff$&&(this.isHdrToggleTurnedOff$=null),this.isHdrToggleTurnedOff$||(this.isHdrToggleTurnedOff$=this.sharedStorageService.readBlock(oi.BlockName).pipe((0,wt.T)(w=>{this.settingsBlock=(0,a.merge)({},w);const Q=!(0,a.isUndefined)(this.settingsBlock[oi.StreamingProfiles])&&this.settingsBlock[oi.StreamingProfiles]===po.Custom&&!(0,a.isUndefined)(this.settingsBlock[oi.CustomProfile]?.hdrStreaming)&&!this.settingsBlock[oi.CustomProfile].hdrStreaming;return this.isHdrToggleTurnedOffSubject$.next(Q),Q}),(0,Bo.t)(1))),this.isHdrToggleTurnedOff$}onDisplayModeChanged(){return this.displayModeChanged$.asObservable()}getSettingsValueString(C){return C?"settings.streamingProfiles.on":"common.off"}getVsyncValueString(C){return C===qr.ValueOff.value?"common.off":C===qr.ValueOn.value?"settings.streamingProfiles.on":"settings.streamingProfiles.adaptive"}getHdrLabel(C,w){return this.IsPlatformSupportsHDRDecode?w?"common.off":this.IsPlatformSupportsHDRRendering?C?"settings.streamingProfiles.on":"common.off":"settings.streamingProfiles.hdrDisplayTip":"settings.streamingProfiles.hdrSystemUnsupportedTip"}getCloudGsyncLabel(C,w,Q,me){return this.fetchPlatformSupportCloudGsync$().pipe((0,wt.T)(()=>this.getCloudGsyncLabelSync(C,w,Q,me)))}getCloudGsyncLabelSync(C,w,Q,me){return this.IsPlatformSupportsCloudGsync?w?"common.off":this.IsVrrDisplayDetected?(0,a.isUndefined)(Q)||Q===qr.ValueAdaptive.value?!(0,a.isUndefined)(me)&&me<this.CloudGsyncDependencies?.minFpsForCloudGsync?"settings.streamingProfiles.vrrFpsTip":C?"settings.streamingProfiles.on":"common.off":"settings.streamingProfiles.vrrVsyncTip":"settings.streamingProfiles.vrrNotDetected":"settings.streamingProfiles.hdrSystemUnsupportedTip"}getReflexLabel(C,w){return w||!C?"common.off":"settings.streamingProfiles.on"}getBitRateValues(){return this.updatedBitrateValues}displayModeChangeListener$(){return this.isBrowserPlatform?(0,re.R)(window,"resize").pipe((0,jt.c)(100),(0,ge.p)(()=>!!this.physicalResolution&&this.physicalResolution.width!==Math.floor(window.screen.width*window.devicePixelRatio))):this.nativeEventService.get$(l.D4.DisplayModeChange,l.Jm.Types.HandlerEventType.SimpleWindowEvent)}fetchPlatformSupportCloudGsync$(C){return this.isBrowserPlatform||l.zk.isAndroidPlatform()?(0,it.of)(On):(C&&this.cloudGsyncCapabilities$&&(this.cloudGsyncCapabilities$=null),this.cloudGsyncCapabilities$||(this.cloudGsyncCapabilities$=this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.GetPlatformCloudGsyncCapabilities).pipe((0,g.s)(1),(0,wt.T)(w=>(this.logger.info("fetchPlatformSupportCloudGsync response: ",w),this.cloudGsyncCapabilities=w,this.cloudGsyncCapabilities)),(0,Un.W)(w=>(this.logger.info("fetchPlatformSupportCloudGsync error: ",w),(0,it.of)(null))),(0,Bo.t)(1))),this.cloudGsyncCapabilities$)}fetchReflexLearnMoreUrl$(){return this.reflexLearnMoreUrl$||(this.reflexLearnMoreUrl$=this.redirectService.getRedirectUrl(He.r7.GfnPcUnsupportedReflexLearnMore).pipe((0,on.M)(C=>{this.reflexLearnMoreUrlSubject$.next(C)}),(0,Bo.t)(1))),this.reflexLearnMoreUrl$}fetchSelectedStreamingMode$(C){return C&&this.streamingMode$&&(this.streamingMode$=null),this.streamingMode$||(this.streamingMode$=this.sharedStorageService.readBlock(oi.BlockName).pipe((0,wt.T)(w=>{this.settingsBlock=(0,a.merge)({},w);const Q=(0,a.isUndefined)(this.settingsBlock[oi.StreamingProfiles])?po.Balanced:this.settingsBlock[oi.StreamingProfiles];return this.streamingModeSubject$.next(Q),Q}),(0,Bo.t)(1))),this.streamingMode$}fetchReflexToggleState$(C){return C&&this.isReflexToggleTurnedOff$&&(this.isReflexToggleTurnedOff$=null),this.isReflexToggleTurnedOff$||(this.isReflexToggleTurnedOff$=this.sharedStorageService.readBlock(oi.BlockName).pipe((0,wt.T)(w=>{this.settingsBlock=(0,a.merge)({},w);const Q=(0,a.isUndefined)(this.settingsBlock[oi.StreamingProfiles])||this.settingsBlock[oi.StreamingProfiles]===po.Custom&&((0,a.isUndefined)(this.settingsBlock[oi.CustomProfile]?.reflex)||!this.settingsBlock[oi.CustomProfile].reflex);return this.isReflexToggleTurnedOffSubject$.next(Q),Q}),(0,Bo.t)(1))),this.isReflexToggleTurnedOff$}clearSelectedModeAndToggles(){this.streamingMode$=null,this.isHdrToggleTurnedOff$=null,this.isReflexToggleTurnedOff$=null,this.gameFeatureProperties$=null}getClientUpsellMessages(C=Vi){return(0,Vt.zV)([this.lcarsService.getUpsellMessages(),this.ecommerceService.getUserMembership(),this.isPlatformSupportsUHD$.asObservable(),this.isPlatformSupportsFps$.asObservable(),this.fetchPlatformSupportCloudGsync$(),this.getIsPlatformSupportsHDRDecode$()]).pipe((0,wt.T)(([w,Q,me,Ye])=>{const bt=this.getAllUpsellMessagesFromLCARSResponse(w),cn=this.getResolutionUpsellMessage(Q,me),Wn=this.getFpsUpsellMessage(Q,Ye);return this.clientUpsellMessage=this.updateUpsellMessagesParameters(bt,cn,Wn),this.compileUpsellMessageArray(C)}),(0,Bo.t)(1),(0,Un.W)(()=>(0,it.of)([])))}compileUpsellMessageArray(C){const w=[];return this.updateUpsellFlagValues(),C.forEach(Q=>{if(this.upsellFlags[Q]){const me=this.clientUpsellMessage[Q];me.length>0&&w.push(me)}}),w}updateUpsellFlagValues(){const C=this.ecommerceService.featureArrayUpsellAvailable(Mr);Mr.forEach((w,Q)=>{this.upsellFlags[w]=C[Q]}),this.upsellFlags[Tr.q3.SUPPORT_HDR]=this.upsellFlags[Tr.q3.SUPPORT_HDR]&&this.IsPlatformSupportsHDRDecode,this.upsellFlags[Tr.q3.SUPPORT_CLOUD_GSYNC]=this.upsellFlags[Tr.q3.SUPPORT_CLOUD_GSYNC]&&this.IsPlatformSupportsCloudGsync}updateUpsellMessagesParameters(C,w,Q){let me=C[Tr.q3.HIGHER_RESOLUTION],Ye=C[Tr.q3.HIGHER_FPS];return me=this.translateParser.interpolate(me,{resolution:w.parameter}),C[Tr.q3.HIGHER_RESOLUTION]=me,Ye=this.translateParser.interpolate(Ye,{fps:Q.parameter}),this.ecommerceService.featureUpsellAvailable(Tr.q3.SUPPORT_REFLEX)&&(Ye+=C[Tr.q3.SUPPORT_REFLEX]),C[Tr.q3.HIGHER_FPS]=Ye,C}getAllUpsellMessagesFromLCARSResponse(C){const w={},Q=Object.entries(C);return Mr.forEach(me=>{const Ye=Q.findIndex(bt=>bt[0]===me);w[me]=-1===Ye?"":Q[Ye][1]}),w}getMaxDisplayTestData(C){return this.getStreamingProfile().pipe((0,g.s)(1),(0,wt.T)(w=>{const Q=w?.primaryDisplayResolution;let me=[...this.availableResolutionList];if(C||this.clearCachedStreamingProfile(),(0,a.isNil)(me)||(0,a.isNil)(w)||w.name!==po.Balanced)return null;me=me.sort((cn,Wn)=>Wn.width*Wn.height-cn.width*cn.height);const Ye=this.getCappedFramerate(me,Q);return w.width<Q?.width||w.fps<Ye||w.height<Q?.height?this.isDisplayHighestForAspectRatio(w,me,Ye)?null:w:null}))}getCappedFramerate(C,w){if(!w||C?.length<=0)return Pa.Value60.value;let Q=C.filter(me=>me.height*me.width==w.height*w.width);if(Q?.length<=0&&(Q=C.filter(me=>me.height*me.width<w.height*w.width)),Q?.length>0){const me=Q[0]?.fpsList?.filter(Ye=>Ye.enabled);if(me?.length>0){const Ye=me.filter(bt=>bt.value<=w.fps+1);if(Ye?.length>0)return Ye[0].value}}return w?.fps>=119?Pa.Value120.value:w?.fps>=59?Pa.Value60.value:Pa.Value30.value}isDisplayHighestForAspectRatio(C,w,Q){for(const me of w){if(me.width/me.height!=C.width/C.height)continue;let Ye=me.fpsList.filter(bt=>!0===bt.enabled)[0]?.value;return Ye=Ye<Q?Ye:Q,!(me.width>C.width||Ye>C.fps)}return!0}getProfileSettingOptions(C,w){const Q=[];return(w?Wt:en).forEach(Ye=>Q.push({id:Ye.id,display:this.isDisplaySettingOption(Ye),disabled:this.isSettingOptionDisable(Ye),label:this.getSettingOptionLabel(Ye),value:this.getSettingOptionValue(Ye,C),valuePlaceholder:this.getSettingOptionValuePlaceholder(Ye,C),kbaLinkRedirect:Ye.kbaLinkRedirect,shortUrl:Ye.shortUrl,valueBadgeImage:this.getSettingOptionValueBadgeImage(Ye,C)})),Q}getSettingOptionValueBadgeImage(C,w){return C.hasBadgeImage?this.getResolutionLabel(w.width,w.height):null}isDisplaySettingOption(C){let w=!0;return C.clientFeatureToggleKey?this[C.clientFeatureToggleKey]:(C.remoteFeatureToggleKey&&(w=this[C.remoteFeatureToggleKey]),C.displayByDefault||w&&this.ecommerceService.isFeatureAvailableToUser(C.entitlementFlag,C.upsellFlag))}isSettingOptionDisable(C){return!C.displayByDefault&&this.ecommerceService.featureUpsellAvailable(C.upsellFlag)}getSettingOptionLabel(C){return C.id===Tr.tk.PROFILE_CLOUD_GSYNC?this.isGsyncDisplay?"settings.streamingProfiles.vrrGsyncDisplay":"settings.streamingProfiles.vrrDisplay":C.label}getSettingOptionValue(C,w){switch(C.id){case nr.PROFILE_MAXBITRATE:return 0!==w.maxBitrate?`${w.maxBitrate} Mbps`:"common.auto";case nr.PROFILE_RESOLUTION:return w.width+" x "+w.height+" "+w.aspectRatio;case nr.PROFILE_FPS:return w.fps+" FPS";case Tr.tk.PROFILE_VSYNC:return this.getVsyncValueString(w.vSync);case Tr.tk.PROFILE_CLOUD_GSYNC:return this.getCloudGsyncLabelSync(w.cloudGsync,this.ecommerceService.featureUpsellAvailable(C.upsellFlag));case Tr.tk.PROFILE_REFLEX:return this.getReflexLabel(w.reflex,this.ecommerceService.featureUpsellAvailable(C.upsellFlag));case Tr.tk.PROFILE_HDR:return this.getHdrLabel(w.hdrStreaming,this.ecommerceService.featureUpsellAvailable(C.upsellFlag));case Tr.tk.PROFILE_BIT_DEPTH:return"settings.streamingProfiles.colorPrecisionValue";case Tr.tk.PROFILE_ADJUST_FOR_NETWORK:return this.getSettingsValueString(w.drc);case Tr.tk.PROFILE_L4S:return this.getSettingsValueString(w.l4sEnabled)}}getSettingOptionValuePlaceholder(C,w){return C.id===Tr.tk.PROFILE_BIT_DEPTH?{bitDepth:w.bitDepth}:C.valuePlaceholder}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Po.yQ),c.KVO(l.zW),c.KVO(l.NZ),c.KVO(Lt.uU),c.KVO(Mi.Vk),c.KVO(Ao),c.KVO(Ai.k_),c.KVO(l.dU),c.KVO(Kn.Q),c.KVO(yt),c.KVO(Ze.Sd),c.KVO(hi.a),c.KVO(l.wt),c.KVO(xe.mZ))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Oo=d(51542),uo=d(11961);let io=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls,ws,xl){this.systemInfo=w,this.streamingProfileService=Q,this.idmService=me,this.gridService=Ye,this.bridgeService=bt,this.networkConfigurationService=cn,this.remoteConfigurationService=Wn,this.appConfig=xi,this.gfnSdkService=Yi,this.localeService=fr,this.telemetryUtil=Gr,this.eventStreamFactory=ao,this.cloudVariableHelperService=Eo,this.router=ls,this.clientHeaderService=ws,this.zoneStorage=xl,this.prod="Prod",this.selectedZone$=new Be.m(1),this.messages=new p.B7,this.networkTestCancelled$=new p.B7,this.retriggerPolicy$=new J.t(Pt.ZpH.Manual),this.startedListenToTokenRequest=!1,this.networkTestRun=!1,this.networkTestState$=new p.B7,this.lbrState$=new p.B7,this.networkLinksSubject=new Be.m(1),this.isWebrtcNetworktestEnabledSubject=new Be.m(1),this.isStreamer=!1,this.cachedWebrtcSupportedZonesList=[],this.isWebrtcNTSupportedOnUpdatedZoneSubject=new Be.m(1),this.capableSupportedResolutions=null,this.isInitCalled=!1,this.networkTestFinishedCallbackResult$=new p.B7,this.maxSubscriptionProfile=null,this.logger=C.getLogger("shared/network-test.service"),this.qhdResolutionIdentifier=xi?.client?.streamingModeResolutionsConfiguration?.resolutionIdentifier?.QHD,this.isNetworkTestInProgress=!1,this.initCurrentDisplayResolutionStream(),this.initCurrentMaxSubscriptionProfileStream(),this.initSupportedResolutionsStream(),this.initCapableResolutionsStream(),this.registerDisplayModeChangeEvent(),xi?.networkTest?.prefetchStreams&&(this.currentMaxSubscriptionProfileStream.get$().subscribe(Mt.l,Mt.l),this.currentDisplayResolutionStream.get$().subscribe(Mt.l,Mt.l))}registerDisplayModeChangeEvent(){this.streamingProfileService.onDisplayModeChanged()?.pipe((0,wt.T)(()=>{this.currentDisplayResolutionStream.refresh()})).subscribe()}initCurrentDisplayResolutionStream(){this.currentDisplayResolutionStream=this.eventStreamFactory.createStream(()=>this.streamingProfileService.getPrimaryDisplayResolution().pipe((0,wt.T)(C=>({width:C.width,height:C.height,frameRate:C.fps}))))}initCurrentMaxSubscriptionProfileStream(){this.currentMaxSubscriptionProfileStream=this.eventStreamFactory.createStream(()=>this.streamingProfileService.getAvailableResolutionList().pipe((0,wt.T)(()=>{const C=this.streamingProfileService.getPlatformSpecificBalancedPresetResolution();return this.maxSubscriptionProfile={height:C.height,width:C.width,frameRate:C.fps},this.maxSubscriptionProfile})))}initSupportedResolutionsStream(){this.supportedResolutionsStream=this.eventStreamFactory.createStream(()=>this.streamingProfileService.getAvailableResolutionList().pipe((0,wt.T)(C=>{const w=new Map;return C?.forEach(Q=>{Q.enabled&&Q.fpsList?.forEach(me=>{me.enabled&&w.set(`$h-${Q.height}-w-${Q.width}-f-${me.value}`,{height:Q.height,width:Q.width,frameRate:me.value})})}),Array.from(w.values())})))}initCapableResolutionsStream(){this.capableResolutionsStream=this.eventStreamFactory.createStream(()=>(0,Vt.zV)([this.currentDisplayResolutionStream.get$(),this.supportedResolutionsStream.get$()]).pipe((0,nt.ZZ)(([C,w])=>(this.logger.info("Primary display resolution: ",C.width,"x",C.height," @",C.frameRate),this.getDynamicStreamingProfilesByRatio(w,C.width/C.height,16/9).pipe((0,wt.T)(Ye=>(this.capableSupportedResolutions=Ye,this.capableSupportedResolutions)))))))}initGxTargetConfiguration(C){if(this.isStreamer=(0,Ii.tE)(this.router.url),!C)return this.isWebrtcNetworkTestEnabled=!1,void this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:!1});this.queryGxTarget()}initialize(){this.isInitCalled||(this.isInitCalled=!0,this.networkConfigurationService.readNetworkSessionId(),this.remoteConfig$=this.remoteConfigurationService.remoteConfigFetched$,(0,Vt.zV)([this.webrtcNetworkTestEnabled,this.remoteConfig$]).subscribe(([C,w])=>{C.enabled&&this.configureWebrtcNetworkSettings(w)},C=>this.logger.error("Error fetching remote config and configuring Network Test settings."+C)),this.constructHelpLinks().pipe((0,wt.T)(C=>{this.networkLinksSubject.next(C)})).subscribe())}get isNetworkTestRequired(){return this.networkTestRequired}set isNetworkTestRequired(C){this.networkTestRequired=C}get networkTestMessages(){return this.messages.asObservable()}get zoneName(){return this.selectedZone$}get isNetworkTestRun(){return this.networkTestRun}get networkTestState(){return this.networkTestState$.asObservable()}get lbrState(){return this.lbrState$.asObservable()}get networkLinks(){return this.networkLinksSubject.asObservable()}get webrtcNetworkTestEnabled(){return this.isWebrtcNetworktestEnabledSubject.asObservable()}get webrtcNTSupportForZone(){return this.isWebrtcNTSupportedOnUpdatedZoneSubject.asObservable()}resetNetworkTestStatus(){this.networkTestRun=!1}getRetriggerPolicy(){return this.retriggerPolicy$.asObservable()}setRetriggerPolicy(C){this.retriggerPolicy$.next(C)}setParentSpanForNetworkTest(C){this.parentSpan=C}setNetworkTestState(C){this.networkTestState$.next(C)}setLbrState(C){this.lbrState$.next(C)}sendMessage(C,w){this.messages.next({message:C,data:w})}getNetworkInfo(){return l.zk.isBrowserPlatform()?(0,it.of)({}):this.systemInfo.getSystemInfo([l.Lu.Network]).pipe((0,wt.T)(C=>C.Network))}isSystemOnline(){return window.navigator.onLine}isZoneSupported(C,w){return!!this.allZonesSupported||(this.isProdZone(C)?this.cachedWebrtcSupportedZonesList.includes(w?.address):this.cachedWebrtcSupportedZonesList.includes(C?.address))}isUpdatedZoneSupported(C,w){return this.isWebrtcNTSupportedOnUpdatedZone=this.isZoneSupported(C,w),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(this.isWebrtcNTSupportedOnUpdatedZone),this.isWebrtcNTSupportedOnUpdatedZone}isProdZone(C){return C.name===this.prod}queryGxTarget(){const C=!!this.isStreamer,w=this.gridService.getCachedZone(),Q=this.gridService.detectedLocalZone$,me=this.cloudVariableHelperService.getFeatureToggle(Nt.BACKGROUND_WEBRTC_NETWORK_TEST,{configCheckEnabled:!0,useDifferentConfigAttributeName:!0,buildVariant:this.appConfig.build.variant,useCache:C});this.idmService.accountStatusChanged.pipe((0,ge.p)(Ye=>Ye.isAuthenticated),(0,nt.ZZ)(Ye=>(0,Vn.yU)(w,me,Q))).subscribe(([Ye,bt,cn])=>{this.logger.info("GxTarget webrtc network test response: ",bt.value);const Wn=this.isProdZone(Ye)?cn:null;this.logger.info("Current zone:",Ye,", detected local zone: ",Wn),bt.value.enabled&&bt.value.supportedZonesList&&0!==bt.value.supportedZonesList.length?(this.cachedWebrtcSupportedZonesList=Object.assign([],bt.value.supportedZonesList),this.allZonesSupported=!1,this.isWebrtcNetworkTestEnabled=!0,this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:bt.value.showUI}),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(this.isZoneSupported(Ye,Wn))):bt.value.enabled&&bt.value.supportedZonesList&&0===bt.value.supportedZonesList.length?(this.allZonesSupported=!0,this.isWebrtcNetworkTestEnabled=!0,this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:bt.value.showUI}),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(this.isWebrtcNetworkTestEnabled)):(this.isWebrtcNetworkTestEnabled=!1,this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:bt.value.showUI}),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(this.isWebrtcNetworkTestEnabled))},Ye=>{this.logger.info("Failed to resolve gx-target cloud variable webRtcNetworkTestV2:",Ye),this.isWebrtcNetworkTestEnabled=!1,this.isWebrtcNetworktestEnabledSubject.next({enabled:this.isWebrtcNetworkTestEnabled,showUI:!1}),this.isWebrtcNTSupportedOnUpdatedZoneSubject.next(!1)})}configureWebrtcNetworkSettings(C){let w;const Q=C?.overrides;Q?.isFetchedFromGXT?(w={gxtOverrideData:JSON.stringify(Q?.data)},this.logger.info("Sending rconfig data from GXT to ConfigureNetworkTestSettings"),this.bridgeService.executeCommand(Qe.Ts.Gfn.Networktest.ConfigureNetworkTestSettings,w).subscribe()):this.logger.info("No Network Test remote overrides available.")}getRemoteConfigForIndirectPolicy(C){let w;switch(C){case Kr.RedResult:w=this.appConfig.featureEnablement.networkTestPolicy.isRedResultEnabled;break;case Kr.StreamerFrameLossTimeoutError:w=this.appConfig.featureEnablement.networkTestPolicy.isFrameLossTimeoutErrorEnabled;break;default:w=!0}return w}hasMaxSubscriptionProfileUpgraded(C,w){return!l.zk.isBrowserPlatform()&&(C?w.height*w.width>C.height*C.width:w.width*w.height>=this.qhdResolutionIdentifier.lowerLimit)}shouldNetworkTestRun(){return(0,Vt.zV)([this.networkConfigurationService.getCurrentFingerprintInfo(),this.currentMaxSubscriptionProfileStream.get$().pipe((0,g.s)(1))]).pipe((0,wt.T)(([C,w])=>{let Q=!1;return(0,a.isNil)(C)?(this.logger.info("This fingerprint is observed for the first time, on which Network Test was never run."),this.setRetriggerPolicy(Pt.ZpH.FingerprintChanged),Q=!0):(0,a.isNil)(C.runNetworkTest)?(this.logger.info("Client upgraded to the version having the decoupling feature."),this.setRetriggerPolicy(Pt.ZpH.ClientUpdated),Q=!0):C.runNetworkTest?(Q=this.getRemoteConfigForIndirectPolicy(C.indirectNetworkTestPolicy),this.logger.info(`An indirect policy: ${C.indirectNetworkTestPolicy} got triggered. Network test will ${Q?"":"not "}be run.`),Q&&(C.indirectNetworkTestPolicy.startsWith("Streamer")&&(C.indirectNetworkTestPolicy=Kr.StreamerNetworkError),this.setRetriggerPolicy(C.indirectNetworkTestPolicy))):this.hasMaxSubscriptionProfileUpgraded(C?.maxSubscriptionProfile,w)&&(this.logger.info("Network test should run again as maxSubscriptionProfile has changed"),this.setRetriggerPolicy(Pt.ZpH.MaxSubscriptionProfileUpgraded),Q=!0),Q}),(0,Un.W)(C=>(this.logger.error("Error trying to determine if Network Test should run, therefore run Network Test.",C),this.setRetriggerPolicy(Pt.ZpH.PolicyCheckFailed),(0,it.of)(!0))))}launchNetworkTest(C){return this.networkConfigurationService.getNetworkOverride().pipe((0,si.E)(this.remoteConfig$.pipe((0,Rn.Z)({overrides:{},config:this.appConfig}))),(0,_i.n)(([w,Q])=>(this.appConfig=Q.config,this.startedListenToTokenRequest||this.listenToTokenRequest(),this.executeNetworkTest(C).pipe((0,nt.ZZ)(me=>this.updateNetworkTestOverrideFlag(me)),(0,nt.ZZ)(me=>this.networkTestPolicyChecks(me)),(0,nt.ZZ)(me=>this.updateMaxDisplay(me)),(0,nt.ZZ)(me=>this.updateNetworkTestSession(me))))))}updateNetworkTestSession(C){return C.isSuccess?this.networkConfigurationService.setCachedNetworkSessionId(C.networkSessionId).pipe((0,mt.u)(C)):(0,it.of)(C)}updateNetworkTestInfoInFingerprint(C,w,Q){return C.result.result===zn.NCT_R_SUCCESS&&w&&Q?this.networkConfigurationService.updateNetworkTestInfoInFingerprint(w,C,Q):(0,it.of)(!1)}exceuteNetworkTestFinishedCallback(){this.bridgeService.executeCommand(Qe.Ts.Gfn.Networktest.NetworkTestFinishedCallback).pipe((0,g.s)(1)).subscribe(C=>{this.networkTestFinishedCallbackResult$.next(C)},C=>{this.networkTestFinishedCallbackResult$.error(C)})}executeNetworkTest(C,w=!1){let Q,me,Ye,bt,cn;return this.exceuteNetworkTestFinishedCallback(),(0,Vt.zV)([this.prepareNetworkParams(C,w),this.getResolutionForThresholdComparision()]).pipe((0,nt.ZZ)(([Wn,xi])=>(Q=xi,me=Wn,this.bridgeService.executeCommand(Qe.Ts.Gfn.Networktest.Start,Wn))),(0,nt.ZZ)(Wn=>this.getNetworkTestFinishedCallbackResult$().pipe((0,g.s)(1))),(0,nt.ZZ)(Wn=>(this.logger.info("Network Test result received: ",Wn),Wn?.result?.result===Yr.u7.NCT_R_AUTH_FAILED?!1===w?(this.logger.info("Auth error, attempting to refresh credentials"),(0,Ut.$)(Yr.u7.NCT_R_AUTH_FAILED)):(0,Ut.$)("Auth error, will not attempt to refresh credentials"):(0,it.of)(Wn))),(0,nt.ZZ)(Wn=>(Wn?.result?.result===Yr.u7.NCT_R_SUCCESS&&(Ye=this.selectThresholdForResolution(Wn.testResult.thresholds,Q)),bt=Wn,this.analyzeNetworkTestResults(Wn,Ye))),(0,nt.ZZ)(Wn=>(cn=Wn,this.updateNetworkTestInfoInFingerprint(bt,me?.maxDisplayResolution,Ye?.profile))),(0,wt.T)(Wn=>cn),(0,Un.W)(Wn=>Wn===Yr.u7.NCT_R_AUTH_FAILED?this.executeNetworkTest(C,!0):(this.logger.error("Failed executing Network test command, error: ",Wn),(0,Ut.$)(Wn))))}networkTestPolicyChecks(C){const w=this.appConfig.featureEnablement.networkTestPolicy.isRedResultEnabled&&C.analysis.networkQuality===pi.Bad;let Q=Kr.None;return w&&(Q=Kr.RedResult,this.logger.info("Got a red result on analysis, hence Network Test will run on next streamer launch.")),this.networkConfigurationService.updateCurrentFingerprintNetworkTestFlag(w,Q).pipe((0,mt.u)(C))}updateMaxDisplay(C){return this.appConfig.featureEnablement.dynamicStreamingResolution?(this.logger.info("Dynamic res. is enabled by Remote config"),C.isSuccess?this.networkConfigurationService.setCurrentFingerprintMaxDisplay(C.capableProfile).pipe((0,mt.u)(C)):(0,it.of)(C)):(this.logger.info("Dynamic res. is disabled by remote config, remove maxDisplay from sharedstorage"),this.networkConfigurationService.clearCurrentFingerprintMaxDisplay().pipe((0,mt.u)(C)))}updateNetworkTestOverrideFlag(C){return this.networkConfigurationService.updateNetworkOverrideNetworkTestFlag(!1).pipe((0,wn.$)(),(0,mt.u)(C))}startNetworkTest(C){return this.isNetworkTestInProgress=!0,this.networkTestRun=!0,this.launchNetworkTest(C).pipe((0,h.Q)(this.networkTestCancelled$),(0,on.M)(w=>{this.logger.info("Network Test completed: ",w),this.isNetworkTestInProgress=!1}),(0,Un.W)(w=>(this.isNetworkTestInProgress=!1,this.logger.info("Network Test failed, hence Network Test will run on next streamer launch."),this.networkConfigurationService.updateCurrentFingerprintNetworkTestFlag(!0,Kr.NetworkTestFailed).pipe((0,nt.ZZ)(()=>(0,Ut.$)(w))))))}listenToTokenRequest(){this.logger.info("Network Test starts listening to auth token request: "),this.bridgeService.executeCommand(Qe.Ts.Gfn.Networktest.AuthTokenRequest,{}).pipe((0,nt.ZZ)(()=>(this.logger.info("Got token REQUEST from NetworkTest SDK "),this.idmService.getAuthToken(!1,this.parentSpan))),(0,nt.ZZ)(C=>{if((0,a.isNil)(C)||(0,a.isNil)(C.token))return this.logger.info("Jarvis failed to return token, do not send command UpdateAuthToken..."),(0,it.of)({});{const w={authToken:C.token};return this.logger.info("Sending delegate token to NT2 SDK, using command UpdateAuthToken"),this.bridgeService.executeCommand(Qe.Ts.Gfn.Networktest.UpdateAuthToken,w)}})).subscribe(()=>this.startedListenToTokenRequest=!0,C=>this.logger.error("Error sending oauth token to NetworkTest",C))}sendNetworkTroubleshootClickedTelemetry(C){this.telemetryUtil.sendClickEvent(Pt.EBD.NetworkTroubleshooting,"Network troubleshoot clicked",C)}selectThresholdForResolution(C,w){C.sort((me,Ye)=>{const bt=me.profile.height*me.profile.width-Ye.profile.height*Ye.profile.width;return 0===bt?me.profile.frameRate-Ye.profile.frameRate:bt});let Q=-1;for(let me=C.length-1;me>=0;me--)if(w.width*w.height>=C[me].profile.width*C[me].profile.height){if(me-1>=0){const Ye=C[me],bt=C[me-1];Ye.profile.width===bt.profile.width&&Ye.profile.height===bt.profile.height&&w.frameRate<Ye.profile.frameRate&&(me-=1)}Q=me;break}return-1===Q&&(Q=0),C[Q]}getResolutionForThresholdComparision(){return(0,Vt.zV)([this.currentDisplayResolutionStream.get$().pipe((0,g.s)(1)),this.currentMaxSubscriptionProfileStream.get$().pipe((0,g.s)(1))]).pipe((0,wt.T)(([C,w])=>{let Q;return Q=C.width<=w.width&&C.height<=w.height?C:w,Q}))}roundTestResultNumbers(C){return this.logger.info("Rounding of network test results"),C.testResult.downlinkBandwidth=Math.round(C.testResult.downlinkBandwidth/1e6),C.testResult.uplinkBandwidth=Math.round(C.testResult.uplinkBandwidth/1e6)||0,C.testResult.thresholds?.forEach(w=>{w.bandwidthLimit=Math.round(w.bandwidthLimit),w.bandwidthRecommended=Math.round(w.bandwidthRecommended)}),C.testResult.packetLoss=Math.round(100*C.testResult.packetLoss)/100,C.testResult.latency=Math.round(C.testResult.latency),C.testResult.percentile99thFrameJitter=C.testResult.percentile99thFrameJitter/1e3||0,C}filterResolutionsByRatio(C,w,Q){this.logger.info("filter Resolutions By Ratio, targetRatio: ",w);let me=C?.filter(Ye=>w===Ye.width/Ye.height);return 0===me?.length&&(this.logger.info("filter Resolutions By Ratio, fallbackRatio: ",Q),me=C?.filter(Ye=>Q===Ye.width/Ye.height)),this.streamingProfileService.getAutoMaxBitrateValueForResolutionArray(me)}getDynamicStreamingProfilesByRatio(C,w,Q){return this.filterResolutionsByRatio(C,w,Q).pipe((0,wt.T)(me=>{let Ye=me;Ye.sort((Wn,xi)=>{const Yi=xi.width*xi.height-Wn.width*Wn.height;return 0===Yi?xi.fps-Wn.fps:Yi});const bt=Ye[Ye.length-1],cn=Ye.filter(Wn=>30===Wn.fps&&Wn.width===bt.width&&Wn.height===bt.height);return Ye=Ye.filter(Wn=>30!==Wn.fps).concat(cn),Ye=Ye.map(Wn=>({...Wn,pixelCount:Wn.width*Wn.height})),Ye=(0,a.orderBy)(Ye,["pixelCount","maxBandwidth"],["desc","desc"]),this.logger.info("supportedResolutions filtered by ratio, 30fps removed + smallest resolution with 30fps: ",Ye),Ye}))}getCapableProfileForNetworkTest(C){return this.capableResolutionsStream.get$().pipe((0,g.s)(1),(0,wt.T)(w=>{const Q=w[w.length-1],me=C.testResult.downlinkBandwidth;let Ye={width:Q.width,height:Q.height,frameRate:Q.fps};for(const cn of w)if(me>=cn.maxBandwidth){Ye={frameRate:cn.fps,height:cn.height,width:cn.width};break}return this.logger.info("estimated streaming resolution for Network Test: ",Ye),Ye}),(0,Un.W)(w=>(this.logger.error("Error in estimating streaming resolution for network test. error:",w),this.isWebrtcNetworkTestEnabled?(this.logger.error("Returning dummy profile info for webclient"),(0,it.of)({width:0,height:0,frameRate:0})):(0,Ut.$)("Failed estimating streaming resolution for network test"))))}analyzeNetworkTestResults(C,w,Q=!0){const me=Q?this.roundTestResultNumbers(C):C;return this.logger.info("Network test analysis results are: ",me,this.zone),this.getCapableProfileForNetworkTest(me).pipe((0,wt.T)(Ye=>{const bt=me.result.result!==zn.NCT_R_SUCCESS?pi.NA:this.compareMetric(me.testResult.downlinkBandwidth,w?.bandwidthLimit,w?.bandwidthRecommended,!0),cn=me.result.result!==zn.NCT_R_SUCCESS?pi.NA:this.compareMetric(me.testResult.packetLoss,w?.packetLossLimit,w?.packetLossRecommended,!1),Wn=me.result.result!==zn.NCT_R_SUCCESS?pi.NA:this.compareMetric(me.testResult.latency,w?.latencyLimit,w?.latencyRecommended,!1),xi=me.result.result!==zn.NCT_R_SUCCESS?pi.NA:this.calculateNetworkQuality(bt,cn,Wn);return{bandwidth:{measured:me.testResult.downlinkBandwidth,limit:w?.bandwidthLimit,recommended:w?.bandwidthRecommended},uplinkBandwidth:me.testResult.uplinkBandwidth,latency:{measured:me.testResult.latency,limit:w?.latencyLimit,recommended:w?.latencyRecommended},latencyWithStream:me.testResult.latencyWithStream,measuredPathMtu:me.testResult.measuredPathMtu,frameLoss:{measured:me.testResult.packetLoss,limit:w?.packetLossLimit,recommended:w?.packetLossRecommended},analysis:{networkQuality:xi,bandwidthQuality:bt,frameLossQuality:cn,latencyQuality:Wn},capableProfile:Ye,percentile99thFrameJitter:me.testResult.percentile99thFrameJitter,networkSessionId:me.testResult.networkSessionId,result:me.result.result,isNetworkTest2:!0,isSuccess:me.result.result===zn.NCT_R_SUCCESS,zone:me.testResult.zone?{name:this.zone.name,address:me.testResult.zone}:this.zone,errorDetails:me.testResult.errorDetails||"",thresholds:me.testResult.thresholds,maxUserCapableProfile:this.capableSupportedResolutions[0],maxPacketSize:me.testResult.maxPacketSize,maxTestBandwidthMbps:me.testResult.maxTestBandwidthMbps}}),(0,Un.W)(Ye=>(this.logger.error("Error in analyzing network test result: ",Ye),(0,Ut.$)(Ye))))}calculateNetworkQuality(C,w,Q){let me;return C===pi.Excellent&&w===pi.Excellent&&Q===pi.Excellent?me=pi.Excellent:C===pi.Bad||w===pi.Bad||Q===pi.Bad?me=pi.Bad:(C===pi.Poor||w===pi.Poor||Q===pi.Poor)&&(me=pi.Poor),me}compareMetric(C,w,Q,me){let Ye;return Ye=me?C>=Q?pi.Excellent:C<w?pi.Bad:pi.Poor:C<Q?pi.Excellent:C>=w?pi.Bad:pi.Poor,Ye}getNetworkTestFinishedCallbackResult$(){return this.networkTestFinishedCallbackResult$.asObservable()}runLbrAndSaveOptimalZone(C){return this.gfnSdkService.getAuthType().pipe((0,nt.ZZ)(w=>{let Q=(0,it.of)(null);(w===Qr.hT.IDM||w===Qr.hT.IDM_FALLBACK)&&(Q=this.idmService.accountStatusChanged);const me=[Q,this.systemInfo.getSystemInfo([l.Lu.DeviceId])];return(0,Vn.yU)(...me).pipe((0,_i.n)(([Ye,bt])=>{const cn={userId:Ye&&!(0,a.isEmpty)(Ye.userId)?Ye.userId:"UnknownUser",platformId:C,deviceId:bt.DeviceId};return this.gridService.getZone(cn,this.parentSpan)}))}))}prepareNetworkParams(C,w=!1){return this.logger.info("Getting network test parameters"),(0,Vn.yU)(this.idmService.accountStatusChanged,this.systemInfo.getSystemInfo([l.Lu.DeviceId]),this.currentDisplayResolutionStream.get$().pipe((0,g.s)(1)),this.gridService.getCachedZone(),this.idmService.getAuthToken(w,this.parentSpan),this.gfnSdkService.getAuthInfo(),this.currentMaxSubscriptionProfileStream.get$().pipe((0,g.s)(1)),this.capableResolutionsStream.get$().pipe((0,g.s)(1)),this.clientHeaderService.getCommonHeaders({withClientId:"lcars"})).pipe((0,nt.ZZ)(([Q,me,Ye,bt,cn,Wn,xi,Yi,fr])=>{this.logger.info("Preparing Network Test parameters"),this.zone=bt,this.selectedZone$.next(bt);let Gr=Yr.tS.NVB_AUTH_JWT_GFN,ao=cn.token;(!ao||0===ao.length)&&Wn.authType===Qr.hT.JWT&&(Gr=Yr.tS.NVB_AUTH_JWT,ao=Wn.authToken);const Eo={platformId:C,user:(0,a.isEmpty)(Q.userId)?"UnknownUser":Q.userId,authType:Gr,authToken:ao||"",address:bt.address,deviceId:me.DeviceId,displayResolution:{width:Ye.width,height:Ye.height,frameRate:Ye.frameRate},profiles:Yi.map(ws=>({height:ws.height,width:ws.width,frameRate:ws.fps})),maxDisplayResolution:xi,httpHeaders:this.getHttpHeaders(fr)},ls=(0,a.cloneDeep)(Eo);return delete ls.authToken,this.logger.info("Network test parameters: ",ls),(0,it.of)(Eo)}))}translateGFWSLSupportedString(C){switch(C){case l.t_.XBox:case l.t_.Windows:return"Windows";case l.t_.ChromeOS:return"Chrome OS";case l.t_.MacOS:return"macOS";case l.t_.IOS:case l.t_.IPadOS:return"iOS";case l.t_.Linux:return"Linux";case l.t_.Android:return"Android";case l.t_.WebOS:return"WebOS";case l.t_.Tizen:return"Tizen";case l.t_.SteamOS:return"SteamOS";default:return l.t_.Undefined}}getHttpHeaders(C){return l.zk.isBrowserPlatform()?[]:Object.entries(C).map(([w,Q])=>({headerName:w,headerValue:Q instanceof Array?Q[0]:Q}))}constructHelpLinks(){const C=this.localeService.localeChanged.pipe((0,wn.$)());return(0,Vn.yU)(C,this.systemInfo.getDeviceOSType()).pipe((0,wt.T)(Q=>{const me={cNm:l.zk.isBrowserPlatform()?"gfnb":"gfn",Plt:this.translateGFWSLSupportedString(Q[1])},Ye=new URL(At.r7.BaseUrl+Q[0]);Ye.searchParams.append("page",At.r7.NetworkTroubleshoot),Ye.searchParams.append("jso",btoa(JSON.stringify(me))),this.logger.info("Network Troubleshooting tips link: ",Ye.toString());const bt=At.lp[At.r7.NetworkTroubleshoot],cn=`${At.r7.BaseUrl}${Q[0]}&page=${At.r7.RecommendedRoutersProductPage}`,Wn=At.lp[At.r7.RecommendedRoutersProductPage];return this.logger.info("Recommended Routers link: ",cn),[Ye.toString(),bt,cn,Wn]}))}cleanupOnCancel(){return this.networkTestCancelled$.next(),this.isNetworkTestInProgress?(this.logger.info("Cancelled network test, hence Network Test will run on next streamer launch."),this.networkConfigurationService.updateCurrentFingerprintNetworkTestFlag(!0,Kr.NetworkTestCancelled)):(0,it.of)(!0)}isCachedZone(C,w){return C===w}isSupportedAndCachedZone(C,w,Q){return C?.address&&this.isZoneSupported(C,Q)&&this.isCachedZone(C.address,w?.address)}checkExpiry(C){if(!C?.networkTestExpiry?.expiryTime)return!0;if(C?.networkTestExpiry?.expiryTime){const w=new Date,Q=new Date(C.networkTestExpiry.expiryTime);return this.logger.info("Webrtc Network Test Expiry time "+Q+", time now "+w),Q<w}}isWebrtcNetworkTestExpiryTimeElapsed(C){return(0,Vn.yU)(this.zoneStorage.getDefaultZone(),this.networkConfigurationService.getNetworkConfig(),this.gridService.detectedLocalZone$).pipe((0,wt.T)(([w,Q,me])=>this.isSupportedAndCachedZone(C,Q?.networkTestExpiry?.zone,me)||!C&&this.isSupportedAndCachedZone(w,Q?.networkTestExpiry?.zone,me)?this.checkExpiry(Q):!(!C||!this.isZoneSupported(C,me)||this.isCachedZone(C.address,Q?.networkTestExpiry?.zone.address))||!(C||!this.isZoneSupported(w,me)||this.isCachedZone(w.address,Q?.networkTestExpiry?.zone?.address))))}isWebrtcNetworkTestRequired(C,w=!1){return(0,Vt.zV)([this.webrtcNetworkTestEnabled,this.webrtcNTSupportForZone]).pipe((0,nt.ZZ)(([Q,me])=>(this.isWebrtcNetworkTestEnabled=w?Q.enabled&&!Q.showUI&&me:Q.enabled&&Q.showUI&&me,this.isWebrtcNetworkTestEnabled?this.isWebrtcNetworkTestExpiryTimeElapsed(C).pipe((0,wt.T)(Ye=>Ye?C?C&&C.runNetworkTest?(this.logger.info("Override zone has been set, hence run webrtc network test"),this.setRetriggerPolicy(Pt.ZpH.OverrideFlagSet),!0):(this.logger.info("runNetworkTest for set override zone is false, not running Network test."),!1):(this.logger.info("Webrtc network test is enabled, run Network test."),!0):(this.logger.info("Network Test expiry time has not elapsed yet, not running Network test."),!1))):(this.logger.info("Network Test disabled, skipping Network test."),(0,it.of)(!1)))))}setNetworkTestExpiryTime(){const C=new Date,w=this.appConfig.networkTest?.expiryTime;return this.isWebrtcNetworkTestEnabled&&!(0,a.isNil)(w)?(C.setDate(C.getDate()+w),(0,Vn.yU)(this.gridService.getCachedZone(),this.networkConfigurationService.getNetworkConfig()).pipe((0,_i.n)(([Q,me])=>{this.logger.info(`Updating Network Test Expiry time for zone ${Q.name}: `+C);const Ye={zone:Q,expiryTime:C?.toISOString()};return me=(0,a.extend)(me,{networkTestExpiry:Ye}),this.networkConfigurationService.writeNetworkConfig(me,!0)}),(0,Un.W)(Q=>(this.logger.error("Set Network Test expiry time failed: ",Q),(0,it.of)(!1))))):(0,it.of)(!1)}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(l.zW),c.KVO(Vr),c.KVO(Ai.k_),c.KVO(lt.G),c.KVO(l.NZ),c.KVO(Oo.u),c.KVO(hi.a),c.KVO(Mi.Vk),c.KVO(Qr.DL),c.KVO(l.iH),c.KVO(Pt.jgD),c.KVO(xe.mZ),c.KVO(tr),c.KVO(hn.Ix),c.KVO(Gl.y1),c.KVO(uo.p))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();function rs(j,Ke){if(1&j&&(c.j41(0,"div",1)(1,"a",2),c.EFF(2),c.nI1(3,"translate"),c.k0s()()),2&j){const we=c.XpG();c.R7$(),c.Y8G("href",we.serverStatusUrl,c.B4B)("shortUrl",we.serverStatusShortUrl),c.R7$(),c.SpI(" ",c.bMT(3,3,"common.viewServerStatus")," ")}}let pa=(()=>{var j;class Ke{constructor(C,w){this.networkTestService=C,this.localeService=w,this.serverStatusShortUrl=At.lp[At.r7.GfnServerStatus]}ngOnInit(){this.isOnline=this.networkTestService.isSystemOnline(),this.localeSubscription=this.localeService.localeChanged.subscribe(C=>{this.serverStatusUrl=At.r7.BaseUrl+C+"&page="+At.r7.GfnServerStatus})}ngOnDestroy(){this.localeSubscription&&this.localeSubscription.unsubscribe()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(io),c.rXU(l.iH))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-server-status-link"]],decls:1,vars:1,consts:[["class","redirect-page-div",4,"ngIf"],[1,"redirect-page-div"],["target","_blank",1,"font-body2-link",3,"href","shortUrl"]],template:function(C,w){1&C&&c.DNE(0,rs,4,5,"div",0),2&C&&c.Y8G("ngIf",w.isOnline)},dependencies:[x.bT,Y.r,ee.e,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.zone[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),Ke})(),Rs=(()=>{var j;class Ke{constructor(C,w,Q,me){this.loggingService=C,this.telemetryUtil=w,this.networkTestService=Q,this.telemetryService=me,this.isSilentWebrtcNT=!1,this.logger=this.loggingService.getLogger("shared/network-test-telemetry.service"),this.networkTestService.webrtcNetworkTestEnabled.subscribe(Ye=>{this.isSilentWebrtcNT=Ye.enabled??!1})}getNetworkTestDataWithPolicy(C){return this.networkTestService.getRetriggerPolicy().pipe((0,wn.$)(),(0,wt.T)(w=>(C.policy=w,C)))}sendTestDoneTelemetry(C,w){const Q=this.constructTestDoneTelemetryData(C,w);return this.isSilentWebrtcNT?(Q.policy=Pt.ZpH.Manual,(0,it.of)(this.telemetryService.push(new Pt.gvg(Q),C.startTime))):this.getNetworkTestDataWithPolicy(Q).pipe((0,wt.T)(me=>this.telemetryService.push(new Pt.gvg(me),C.startTime)))}constructTestDoneTelemetryData(C,w){const Q=this.networkTestService.maxSubscriptionProfile,me=w?.maxUserCapableProfile,Ye={networkTestVersion:2,bandwidth:w&&w.bandwidth.measured?w.bandwidth.measured:0,uplinkBandwidth:w&&w.uplinkBandwidth?w.uplinkBandwidth:0,clientType:this.telemetryUtil.getClientType(),displayProfile:(0,a.isNil)(w)?Pt.Hgm.NVB_PROFILE_DEFAULT:this.formatDisplayProfile(w.capableProfile),userCapableProfileWidth:w?.capableProfile?.width||0,userCapableProfileHeight:w?.capableProfile?.height||0,userCapableProfileFrameRate:w?.capableProfile?.frameRate||0,maxUserCapableProfileWidth:me?.width||0,maxUserCapableProfileHeight:me?.height||0,maxUserCapableProfileFrameRate:me?.fps||0,maxSubscriptionProfileWidth:Q?.width||0,maxSubscriptionProfileHeight:Q?.height||0,maxSubscriptionProfileFrameRate:Q?.frameRate||0,maxTestBandwidthMbps:w?.maxTestBandwidthMbps||0,errorCode:(0,a.isNil)(w)?0:w.result,status:C.networkTestTelemetryStatus,errorReason:(0,a.isNil)(w)?this.formatNetworkErrorReason(C.networkTestTelemetryStatus):this.formatNetworkErrorReason(C.networkTestTelemetryStatus,w.result),dataLoss:w&&w.frameLoss.measured?w.frameLoss.measured:0,latency:w&&w.latency.measured?w.latency.measured:0,latencyWithStream:w&&w.latencyWithStream?w.latencyWithStream:0,measuredPathMtu:w&&w.measuredPathMtu?w.measuredPathMtu:0,networkQuality:(0,a.isNil)(w)?Pt.kKp.Unknown:this.formatNetworkQuality(w.analysis.networkQuality),networkSessionId:w&&w.networkSessionId?w.networkSessionId:"",networkTestMode:C.autoRun?Pt.QQA.Automatic:Pt.QQA.Manual,networkType:(0,a.isNil)(w)?Pt.w7B.Unknown:this.telemetryUtil.getNetworkType(C?.testData?.networkInfo?.NetworkType),totalMs:0,VPNConnection:(0,a.isNil)(C?.testData?.networkInfo)||(0,a.isNil)(C.testData.networkInfo?.IsVPN)?Pt.T80.UNDEFINED:"1"===C?.testData?.networkInfo?.IsVPN?Pt.T80.TRUE:Pt.T80.FALSE,zone:(0,a.isNil)(w)?"":w.zone.address,overrideZone:(0,a.isNil)(C.zoneOverride)?"":C.zoneOverride.address,overrideActive:(0,a.isNil)(C.zoneOverride)?Pt.T80.FALSE:Pt.T80.TRUE,percentile99thFrameJitter:w&&w.percentile99thFrameJitter?w.percentile99thFrameJitter:0,resultCode:(0,a.isNil)(w)?0:w.result,errorDetails:(0,a.isNil)(w)?this.formatNetworkErrorReason(C.networkTestTelemetryStatus):C.isWebRtcNetworkTest?w?.errorDetails:this.formatNetworkErrorReason(C.networkTestTelemetryStatus,w.result),policy:Pt.ZpH.Manual,maxPacketSize:w?.maxPacketSize||0};return this.logger.info("Network test telemetry data: ",Ye),Ye}formatDisplayProfile(C){let w=Pt.Hgm.NVB_PROFILE_DEFAULT;return 1366===C.width&&768===C.height?w=30===C.frameRate?Pt.Hgm.NT_1366_768_30:Pt.Hgm.NT_1366_768_60:1920===C.width&&1080===C.height?w=30===C.frameRate?Pt.Hgm.NVB_PROFILE_GAMING_1080P_30FPS:Pt.Hgm.NVB_PROFILE_GAMING_1080P_60FPS:1280===C.width&&720===C.height?w=30===C.frameRate?Pt.Hgm.NVB_PROFILE_GAMING_720P_30FPS:Pt.Hgm.NVB_PROFILE_GAMING_720P_60FPS:1920===C.width&&1200===C.height?w=30===C.frameRate?Pt.Hgm.NT_1920_1200_30:Pt.Hgm.NT_1920_1200_60:1680===C.width&&1050===C.height?w=30===C.frameRate?Pt.Hgm.NT_1680_1050_30:Pt.Hgm.NT_1680_1050_60:1440===C.width&&900===C.height?w=30===C.frameRate?Pt.Hgm.NT_1440_900_30:Pt.Hgm.NT_1440_900_60:1280===C.width&&800===C.height&&(w=30===C.frameRate?Pt.Hgm.NT_1280_800_30:Pt.Hgm.NT_1280_800_60),w}formatNetworkErrorReason(C,w){let Q;return Q=C===Pt.fbu.NetworkTestSdkError?this.formatNetworkTestV2ErrorReason(w):C===Pt.fbu.Success?Pt.zTU.NA:(0,a.isNil)(w)||151!==w?(0,a.isNil)(w)||204!==w?Pt.zTU.UNKNOWN:Pt.zTU.PacketLoss:Pt.zTU.FAILED,Q}formatNetworkTestV2ErrorReason(C){let w;switch(C){case Pt.RX8.UNKNOWN:w=Pt.zTU.UNKNOWN;break;case Pt.RX8.SUCCESS:w=Pt.zTU.NA;break;case Pt.RX8.INVALID_PARAM:w=Pt.zTU.INVALID_PARAM;break;case Pt.RX8.SYN_FAILED:w=Pt.zTU.SYN_FAILED;break;case Pt.RX8.FIN_FAILED:w=Pt.zTU.FIN_FAILED;break;case Pt.RX8.AUTH_FAILED:w=Pt.zTU.AUTH_FAILED;break;case Pt.RX8.POST_FAILED:w=Pt.zTU.POST_FAILED;break;case Pt.RX8.TEST_IN_PROGRESS:w=Pt.zTU.TEST_IN_PROGRESS;break;case Pt.RX8.CANCELED:w=Pt.zTU.CANCELED;break;case Pt.RX8.CAPACITY_FULL:w=Pt.zTU.CAPACITY_FULL;break;case Pt.RX8.SESSION_EXIST:w=Pt.zTU.SESSION_EXIST;break;case Pt.RX8.INVALID_DATA:w=Pt.zTU.INVALID_DATA;break;case Pt.RX8.SETUP_FAILED:w=Pt.zTU.SETUP_FAILED;break;case Pt.RX8.RETRYABLE_POST_FAILURE:w=Pt.zTU.RETRYABLE_POST_FAILURE;break;case Pt.RX8.BLOCK_STREAM:w=Pt.zTU.BLOCK_STREAM;break;default:w=Pt.zTU.UNKNOWN}return w}formatNetworkQuality(C){let w=Pt.kKp.Unknown;switch(C){case pi.Excellent:w=Pt.kKp.Excellent;break;case pi.Poor:w=Pt.kKp.Poor;break;case pi.Bad:w=Pt.kKp.Bad}return w}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Pt.jgD),c.KVO(io),c.KVO(P.H0))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();const ka=(j,Ke,we)=>({autoRun:j,showAdditionalActions:Ke,progressState:we});function Da(j,Ke){if(1&j&&c.nrm(0,"gfn-network-test-analyzer",2),2&j){const we=c.XpG();c.Y8G("data",we.analyzerData)}}function Ql(j,Ke){if(1&j&&c.nrm(0,"gfn-network-completed",16),2&j){const we=c.XpG(4);c.Y8G("nvTestData",we.testData)("isHandset",we.isHandset)}}function vc(j,Ke){if(1&j&&(c.j41(0,"mat-tab-group",17)(1,"mat-tab",18),c.nI1(2,"translate"),c.nrm(3,"gfn-network-tips",19),c.k0s(),c.j41(4,"mat-tab",18),c.nI1(5,"translate"),c.nrm(6,"gfn-network-completed",16),c.k0s()()),2&j){const we=c.XpG(4);c.R7$(),c.FS9("label",c.bMT(2,5,"common.troubleshootingTips")),c.R7$(2),c.Y8G("networkConditionsData",we.networkConditionsData),c.R7$(),c.FS9("label",c.bMT(5,7,"networkTest.detailsTag")),c.R7$(2),c.Y8G("nvTestData",we.testData)("isHandset",we.isHandset)}}function wl(j,Ke){if(1&j&&(c.qex(0),c.j41(1,"span",20),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.nrm(4,"gfn-network-tips",19),c.j41(5,"span",20),c.EFF(6),c.nI1(7,"translate"),c.k0s(),c.nrm(8,"gfn-network-completed",16),c.bVm()),2&j){const we=c.XpG(4);c.R7$(2),c.JRh(c.bMT(3,5,"common.troubleshootingTips")),c.R7$(2),c.Y8G("networkConditionsData",we.networkConditionsData),c.R7$(2),c.JRh(c.bMT(7,7,"networkTest.detailsTag")),c.R7$(2),c.Y8G("nvTestData",we.testData)("isHandset",we.isHandset)}}function Ro(j,Ke){if(1&j&&(c.j41(0,"div",12),c.DNE(1,Ql,1,2,"gfn-network-completed",13)(2,vc,7,9,"mat-tab-group",14)(3,wl,9,9,"ng-container",15),c.k0s()),2&j){const we=c.XpG(3);c.R7$(),c.Y8G("ngIf",!we.showTroubleshootTips),c.R7$(),c.Y8G("ngIf",we.showTroubleshootTips&&!we.isHandset),c.R7$(),c.Y8G("ngIf",we.showTroubleshootTips&&we.isHandset)}}function oc(j,Ke){if(1&j&&(c.j41(0,"div",9),c.nrm(1,"gfn-network-icons",10),c.DNE(2,Ro,4,3,"div",11),c.k0s()),2&j){const we=c.XpG(2);c.R7$(),c.Y8G("progressState",we.progressState)("nvTestData",we.testData)("maxDisplayState",we.maxDisplayState)("isWebRtcNetworkTest",we.isWebRtcNetworkTestEnabled),c.R7$(),c.Y8G("ngIf",-1!==we.progressState)}}function sc(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",21)(1,"gfn-network-test-error",22),c.bIt("close",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickClose())})("tryAgain",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickTryAgain())})("continue",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickContinue())}),c.k0s()()}if(2&j){const we=c.XpG(2);c.R7$(),c.Y8G("zoneName",we.zoneName)("networkTestErrorText",we.networkTestErrorText)("showFirewallHelpLink",we.showFirewallHelpLink)("firewallHelpUrl",we.firewallHelpUrl)("firewallHelpShortUrl",we.firewallHelpShortUrl)("firewallLinkText",we.firewallLinkText)("nvClient",we.nvClientApp)}}function wa(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",23)(1,"gfn-nw-test-button-placer",24),c.bIt("tryAgain",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickTryAgain())})("close",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickClose())})("continue",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onClickContinue())}),c.k0s()()}if(2&j){const we=c.XpG(2);c.R7$(),c.Y8G("placementCriteria",c.sMw(1,ka,we.autoRun,we.showAdditionalActions,we.progressState))}}function yl(j,Ke){if(1&j&&(c.j41(0,"div",3)(1,"div",4)(2,"p"),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.j41(5,"div",5),c.DNE(6,oc,3,5,"div",6)(7,sc,2,7,"div",7),c.k0s(),c.DNE(8,wa,2,5,"div",8),c.k0s()),2&j){const we=c.XpG();c.Y8G("ngSwitch",we.uiState),c.R7$(),c.Y8G("ngClass",we.isHandset?"font-header6":"font-header5"),c.R7$(2),c.JRh(c.bMT(4,6,we.networkTestHeaderText)),c.R7$(3),c.Y8G("ngSwitchCase","NETWORKTEST"),c.R7$(),c.Y8G("ngSwitchCase","ERROR"),c.R7$(),c.Y8G("ngIf","NETWORKTEST"===we.uiState&&-1!==we.progressState)}}let Jl=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls,ws){this.networkTestService=w,this.telemetryUtil=Q,this.networkConfigurationService=me,this.redirectService=Ye,this.applicationLifetimeService=bt,this.networkStatusService=cn,this.streamingProfileService=Wn,this.serverRouting=xi,this.networkTestTelemetryService=Yi,this.appConfig=fr,this.breakpointObserver=Gr,this.dialogRef=ao,this.matDialog=Eo,this.element=ls,this.focusManager=ws,this.nvClientApp=Pt.sKj.MallClient,this.testData={},this.shutdownHandler=null,this.delayRetry=0,this.logger=C.getLogger("libraries/network-test/NetworkTestComponent"),this.destroy$=new p.B7,this.mobileMode=!!this.appConfig?.featureEnablement?.mobileMode,this.networkTestHeaderText="networkTest.networkTestHeader",this.showNetworkTest=!l.zk.isBrowserPlatform()}ngOnInit(){this.autoRun=this.nvClientApp===Pt.sKj.StreamingClient,this.telemetryUtil.setClientType(this.autoRun?Ii.td.Streamer:Ii.td.Mall),this.platform=l.zk.isBrowserPlatform()?Hn.browser:this.autoRun?Hn.streamer:Hn.mall,this.showTroubleshootTips=!1,this.analyzerData={cmsId:this.cmsId},this.networkTestService.initialize(),l.zk.isBrowserPlatform()&&this.networkTestService.webrtcNetworkTestEnabled.pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.isWebRtcNetworkTestEnabled=C.enabled,this.showNetworkTest=C.showUI}),this.networkStatusService.onlineStatusChanged.pipe((0,wn.$)(),(0,nt.ZZ)(C=>C?this.networkTestResult?this.networkTestService.getNetworkInfo().pipe((0,g.s)(1),(0,on.M)(w=>{if(!w)return void this.logger.error("Invalid Network Info");this.testData.networkInfo=w,this.testData.result=this.networkTestResult,this.logger.info("Using existing network test results: ",this.testData.result);const Q=this.populateNetworkTestResultData(this.networkTestResult);this.populateNetworkConditions(),this.uiState=vi.NetworkTest,this.autoRun?this.showAutoNetworkTestResultsDialog(Q):this.focusManager.focusChild(this.element.nativeElement,"initial")}),(0,mt.u)(C)):this.initiateNetworkAnalysis().pipe((0,mt.u)(C)):(this.showNetworkTestError({networkTestStatus:Pt.fbu.ClientOffline,errorDetails:Pt.fbu.ClientOffline,errorCode:Ti.Success}),(0,it.of)(C)))).subscribe(C=>{this.logger.info(`Network analysis was ${C?"":"not "}started on init.`)}),this.networkConfigurationService.getNetworkOverride().pipe((0,g.s)(1)).subscribe(C=>{this.zoneOverride=C}),this.shutdownHandler=this.applicationLifetimeService.addWorkOnShutdown(()=>this.serverRouting.cleanupOnCancel().pipe((0,nt.ZZ)(()=>this.networkTestService.cleanupOnCancel()),(0,mt.u)(void 0))),this.updateZoneName(),this.breakpointObserver.observe([L.Rp.Handset,L.Rp.Tablet]).pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.isHandset=C.matches}),this.setAnalysisState(this.autoRun&&this.progressState===pi.Progress)}initiateNetworkAnalysis(C=!1){return this.attemptLbr().pipe((0,nt.ZZ)(w=>(this.logger.info(`LBR was ${w?"":"not "}attempted.`),this.attemptNetworkTest(C))),(0,on.M)(w=>{this.logger.info(`Network Test was ${w?"":"not "}attempted.`)}))}attemptLbr(){return this.isWebRtcNetworkTestEnabled||this.autoRun&&!this.serverRouting.isLbrRequired?(0,it.of)(!1):(this.networkTestService.setLbrState(ji.Started),this.networkTestService.getNetworkInfo().pipe((0,_n.H)(C=>(0,a.isNil)(C)&&!l.zk.isBrowserPlatform()?(0,Ut.$)("Invalid Network Info"):(this.testData.networkInfo=C,this.progressState=pi.Progress,this.uiState=vi.NetworkTest,this.networkTestService.runLbrAndSaveOptimalZone(this.platform))),(0,g.s)(1),(0,wt.T)(C=>(this.logger.info("LBR attempt succeeded with fetched zone: ",C),!0)),(0,Un.W)(C=>(this.logger.info("LBR attempt failed with: ",C),(0,it.of)("Invalid Network Info"!==C))),(0,on.M)(()=>{this.autoRun&&!this.networkTestService.isNetworkTestRequired&&this.networkTestService.sendMessage(Lr.LBRAutoRunDone,{networkTestStatus:this.progressState,isLbrRun:this.serverRouting.isLbrRun})}),(0,Oi.j)(()=>this.networkTestService.setLbrState(ji.Finished))))}attemptNetworkTest(C=!1){if(!this.autoRun||this.networkTestService.isNetworkTestRequired||C){this.networkTestService.setNetworkTestState(ji.Started),this.showAdditionalActions=!1;const w=Date.now();return this.networkTestService.getNetworkInfo().pipe((0,_n.H)(Q=>(0,a.isNil)(Q)&&!l.zk.isBrowserPlatform()?(0,Ut.$)("Invalid Network Info"):(this.testData.networkInfo=Q,this.progressState=pi.Progress,this.uiState=vi.NetworkTest,(0,jn.O)(this.delayRetry).pipe(()=>this.networkTestService.startNetworkTest(this.platform)))),(0,g.s)(1),(0,nt.ZZ)(Q=>{this.delayRetry=Q.result===zn.NCT_R_CAPACITY_FULL?2*(this.delayRetry||this.appConfig.networkTest.delayFactorCapacityFull):0,this.logger.info(`Network Test Delay Retry Time: ${this.delayRetry}`),this.networkTestTelemetryStatus=Pt.fbu.Success;const me=this.populateNetworkTestResultData(Q);return Q.isSuccess&&this.populateNetworkConditions(),this.autoRun?this.showAutoNetworkTestResultsDialog(me):this.focusManager.focusChild(this.element.nativeElement,"initial"),this.networkTestTelemetryService.sendTestDoneTelemetry({autoRun:this.autoRun,isWebRtcNetworkTest:this.isWebRtcNetworkTestEnabled,testData:this.testData,zoneOverride:this.zoneOverride,networkTestTelemetryStatus:this.networkTestTelemetryStatus,startTime:w},Q).pipe((0,mt.u)(!0))}),(0,Un.W)(Q=>(this.logger.info("Network Test failed, error code: ",Q),this.networkTestTelemetryStatus=Q.status?Pt.fbu.HTTPError:Pt.fbu.Other,this.showNetworkTestError({networkTestStatus:this.networkTestTelemetryStatus,errorDetails:(0,a.toString)(Q&&Q.status||Q),errorCode:Q.code}),this.networkTestTelemetryService.sendTestDoneTelemetry({autoRun:this.autoRun,isWebRtcNetworkTest:this.isWebRtcNetworkTestEnabled,testData:this.testData,zoneOverride:this.zoneOverride,networkTestTelemetryStatus:this.networkTestTelemetryStatus,startTime:w}).pipe((0,mt.u)("Invalid Network Info"!==Q)))),(0,Oi.j)(()=>this.networkTestService.setNetworkTestState(ji.Finished)))}return(0,it.of)(!1)}updateZoneName(){this.logger.info("Subscribe to zone name: "),this.networkTestService.zoneName.pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.zoneName=C.name})}populateNetworkTestResultData(C){if(this.networkTestHeaderText="networkTest.networkTestResultsHeader",this.setAnalysisState(!1),C.isSuccess){if(this.testData.result=C,this.progressState=C.analysis.networkQuality,this.logger.info("Populate Network test result data, result status: ",pi[this.progressState]),(this.progressState!==pi.Excellent||this.testData.networkInfo.NetworkType===l.Sd.WiFi2_4||"1"===this.testData.networkInfo.IsVPN)&&(this.showAdditionalActions=!0),this.showTroubleshootTips=this.progressState===pi.Poor||this.progressState===pi.Bad||this.progressState===pi.Excellent&&(this.testData.networkInfo.NetworkType===l.Sd.WiFi2_4||"1"===this.testData.networkInfo.IsVPN),this.populateMaxDisplayTestData(C),this.autoRun){let w=this.progressState;return this.progressState===pi.Excellent&&(this.testData.networkInfo.NetworkType===l.Sd.WiFi2_4||"1"===this.testData.networkInfo.IsVPN)&&(w=pi.Poor,this.logger.info("Updating network test result status due to criteria: ",w)),this.networkTestService.sendMessage(Lr.NetworkTestAutoRunDone,{networkTestStatus:w}),w}}else this.networkTestTelemetryStatus=Pt.fbu.NetworkTestSdkError,this.showNetworkTestError({networkTestStatus:this.networkTestTelemetryStatus,errorDetails:C.errorDetails||(0,a.toString)(C.result),errorCode:C.result});return this.progressState}showAutoNetworkTestResultsDialog(C){if(this.logger.info("Network test result is: ",pi[this.progressState]),this.progressState!==pi.Excellent||this.progressState===pi.Excellent&&this.progressState!==C){this.logger.info("Network test results are not optimal; showing results dialog");const Q={nvClientApp:Pt.sKj.StreamingClient,networkTestHeaderText:this.networkTestHeaderText,progressState:this.progressState,uiState:this.uiState,autoRun:this.autoRun,showNetworkTest:this.showNetworkTest,testData:this.testData,maxDisplayState:this.maxDisplayState,isHandset:this.isHandset,isWebRtcNetworkTestEnabled:this.isWebRtcNetworkTestEnabled,showTroubleshootTips:this.showTroubleshootTips,networkConditionsData:this.networkConditionsData,zoneName:this.zoneName,networkTestErrorText:this.networkTestErrorText,showFirewallHelpLink:this.showFirewallHelpLink,firewallHelpUrl:this.firewallHelpUrl,firewallHelpShortUrl:this.firewallHelpShortUrl,firewallLinkText:this.firewallLinkText,showAdditionalActions:this.showAdditionalActions};this.streamerNTdialog=this.focusManager.restoreFocusAfterClosed(()=>this.matDialog.open(Pe,{panelClass:["dialog-component-container","dark-hue4-background-dialog"],disableClose:!0,autoFocus:!1,enterAnimationDuration:"0ms",data:Q})),this.streamerNTdialog.componentInstance.buttonClicked.pipe((0,h.Q)(this.destroy$)).subscribe(me=>{switch(me){case Zi.Continue:this.onClickContinue();break;case Zi.Close:this.onClickClose();break;case Zi.TryAgain:this.onClickTryAgain()}})}}populateNetworkConditions(){this.networkConditionsData={isVpn:"1"===this.testData.networkInfo.IsVPN,zoneOverride:this.zoneOverride,bandwidth:this.testData.result.bandwidth.measured,latency:this.testData.result.latency.measured,networkType:this.testData.networkInfo.NetworkType},this.logger.info("Current network conditions: : ",this.networkConditionsData)}populateMaxDisplayTestData(C){(0,a.isNil)(C.capableProfile)||this.testData.networkInfo.NetworkType===l.Sd.WiFi2_4?this.maxDisplayState=null:this.streamingProfileService.getMaxDisplayTestData(this.autoRun).pipe((0,h.Q)(this.destroy$)).subscribe(w=>{this.maxDisplayState=(0,a.isNil)(w)?null:{width:w.width,height:w.height,frameRate:w.fps}})}showNetworkTestError(C){this.logger.info("Error in network test, errorDetails: ",C),this.uiState=vi.Error,C.errorCode===zn.NCT_R_BLOCK_STREAM?(this.networkTestErrorText="common.genericLoadError",this.showFirewallHelpLink=!0,this.redirectService.getRedirectUrl(At.r7.GfnPcNetHelpFirewall).pipe((0,g.s)(1),(0,h.Q)(this.destroy$)).subscribe(w=>{this.firewallHelpUrl=w,this.firewallHelpShortUrl=At.lp[At.r7.GfnPcNetHelpFirewall]}),this.firewallLinkText="networkTest.networkTestFirefallIssue",this.logger.info("Firewall URL: ",this.firewallHelpUrl)):(this.networkTestErrorText=C.networkTestStatus!==Pt.fbu.ClientOffline?"networkTest.encounteredProblem":"common.connectionError",this.showFirewallHelpLink=!1),this.networkTestService.sendMessage(Lr.NetworkTestFailed,C)}setAnalysisState(C){this.analyzerData={...this.analyzerData,isAnalysisDone:!C},this.logger.info("Is Network Test Analysis phase on: ",C," , Is analysis done: ",this.analyzerData?.isAnalysisDone)}onClickTryAgain(){this.networkTestHeaderText="networkTest.networkTestHeader",this.networkStatusService.onlineStatusChanged.pipe((0,wn.$)(),(0,nt.ZZ)(C=>C?(this.autoRun&&(this.streamerNTdialog?.close(),this.networkTestService.sendMessage(Lr.NetworkTestAutoRunTryAgain),this.showNetworkTest=!0,this.setAnalysisState(!0)),this.initiateNetworkAnalysis(!0).pipe((0,mt.u)(C))):(this.uiState=vi.Error,this.showNetworkTestError({networkTestStatus:Pt.fbu.ClientOffline,errorDetails:Pt.fbu.ClientOffline,errorCode:Ti.Success}),(0,it.of)(C)))).subscribe(C=>{this.logger.info(`Network analysis was ${C?"":"not "}started on Try Again.`)})}onClickClose(){this.dialogRef&&this.dialogRef.close(),this.autoRun&&(this.streamerNTdialog?.close(),this.networkTestService.sendMessage(Lr.NetworkTestClosedOnError,{networkTestStatus:this.progressState}))}onClickContinue(){this.showNetworkTest=!1,this.dialogRef&&this.dialogRef.close(),this.autoRun&&this.streamerNTdialog?.close(),this.networkTestService.sendMessage(Lr.NetworkTestClosed,{networkTestStatus:this.progressState})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.streamerNTdialog?.close(),this.serverRouting.cleanupOnCancel().pipe((0,nt.ZZ)(()=>this.networkTestService.cleanupOnCancel()),(0,g.s)(1)).subscribe(()=>{this.logger.info("destroying component: network analysis cleanup is done!"),this.shutdownHandler&&this.shutdownHandler.remove()})}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(io),c.rXU(Pt.jgD),c.rXU(Oo.u),c.rXU(At.Q5),c.rXU(A.lM),c.rXU(l.CF),c.rXU(Vr),c.rXU(Lt.bo),c.rXU(Rs),c.rXU(Mi.Vk),c.rXU(L.QP),c.rXU(n.CP,8),c.rXU(n.bZ),c.rXU(c.aKT),c.rXU(T.c_))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-test"]],inputs:{nvClientApp:"nvClientApp",networkTestResult:"networkTestResult",cmsId:"cmsId"},decls:2,vars:2,consts:[["fxFill","",3,"data",4,"ngIf"],["nvSpatialNavigationContainer","","nvCaptureRestoreFocus","","nvTrapFocus","","class","common-ui-network-container",3,"ngSwitch",4,"ngIf"],["fxFill","",3,"data"],["nvSpatialNavigationContainer","","nvCaptureRestoreFocus","","nvTrapFocus","",1,"common-ui-network-container",3,"ngSwitch"],[1,"common-ui-network-header",3,"ngClass"],[1,"network-test-content"],["fxLayout","column","fxLayoutAlign","center stretch",4,"ngSwitchCase"],["class","network-test-error-container",4,"ngSwitchCase"],["class","nv-button-class","fxLayout","row","fxLayoutAlign","end stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center stretch"],["fxLayout","column",3,"progressState","nvTestData","maxDisplayState","isWebRtcNetworkTest"],["class","network-test-results",4,"ngIf"],[1,"network-test-results"],[3,"nvTestData","isHandset",4,"ngIf"],["ngClass","mat-tabs-font-button1","mat-stretch-tabs","false","nvMatTabGroupFixUp","",4,"ngIf"],[4,"ngIf"],[3,"nvTestData","isHandset"],["ngClass","mat-tabs-font-button1","mat-stretch-tabs","false","nvMatTabGroupFixUp",""],[3,"label"],[3,"networkConditionsData"],[1,"common-ui-network-title"],[1,"network-test-error-container"],[3,"close","tryAgain","continue","zoneName","networkTestErrorText","showFirewallHelpLink","firewallHelpUrl","firewallHelpShortUrl","firewallLinkText","nvClient"],["fxLayout","row","fxLayoutAlign","end stretch",1,"nv-button-class"],[3,"tryAgain","close","continue","placementCriteria"]],template:function(C,w){1&C&&c.DNE(0,Da,1,1,"gfn-network-test-analyzer",0)(1,yl,9,8,"div",1),2&C&&(c.Y8G("ngIf",w.showNetworkTest&&w.autoRun),c.R7$(),c.Y8G("ngIf",w.showNetworkTest&&!w.autoRun))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.zone[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),Ke})(),Vl=(()=>{var j;class Ke{constructor(C){this.networkTestDialogData=C}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(n.Vh))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-test-dialog"]],decls:2,vars:2,consts:[["fxFill",""],["nvBackToCloseModal","","fxFill","",3,"nvClientApp","networkTestResult"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.nrm(1,"gfn-network-test",1),c.k0s()),2&C&&(c.R7$(),c.Y8G("nvClientApp",w.networkTestDialogData.nvClientApp)("networkTestResult",w.networkTestDialogData.networkTestResult))},encapsulation:2}),Ke})();const ol=()=>[],to=(j,Ke)=>({resolution:j,fps:Ke});function Lo(j,Ke){1&j&&(c.j41(0,"div",6),c.nrm(1,"mat-icon",12),c.j41(2,"p",8),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&j&&(c.R7$(3),c.JRh(c.bMT(4,1,"networkTest.networkTestMyComputer")))}function zo(j,Ke){1&j&&(c.j41(0,"div",6),c.nrm(1,"mat-icon",13),c.j41(2,"p",8),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&j&&(c.R7$(3),c.JRh(c.bMT(4,1,"networkTest.myDevice")))}function ps(j,Ke){if(1&j&&(c.qex(0),c.nrm(1,"div",16),c.bVm()),2&j){const we=Ke.index,C=c.XpG(2);c.R7$(),c.Y8G("ngClass",C.progressCount===we?"active":"normal")}}function el(j,Ke){if(1&j&&(c.j41(0,"div",14),c.DNE(1,ps,2,1,"ng-container",15),c.k0s()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngForOf",c.lJ4(1,ol).constructor(we.dotCount))}}function Za(j,Ke){if(1&j&&c.nrm(0,"gfn-network-test-warning",17),2&j){const we=c.XpG();c.Y8G("warningInfo",we.displayData.warningInfo)}}function tl(j,Ke){1&j&&(c.j41(0,"div",6),c.nrm(1,"mat-icon",20),c.j41(2,"p",8),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&j&&(c.R7$(3),c.JRh(c.bMT(4,1,"networkTest.ethernet")))}function Tl(j,Ke){if(1&j&&(c.j41(0,"div",6),c.nrm(1,"mat-icon",21),c.j41(2,"p",8),c.EFF(3),c.nI1(4,"translate"),c.k0s(),c.j41(5,"p",9),c.EFF(6),c.nI1(7,"translate"),c.k0s()()),2&j){const we=c.XpG(2);c.R7$(3),c.JRh(c.bMT(4,2,we.nvTestData.networkInfo.NetworkName)),c.R7$(3),c.JRh(c.bMT(7,4,we.displayData.wifiRouterVersion))}}function Ma(j,Ke){1&j&&(c.j41(0,"div",6),c.nrm(1,"mat-icon",22),c.j41(2,"p",8),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&j&&(c.R7$(3),c.JRh(c.bMT(4,1,"networkTest.genericNetworkName")))}function rd(j,Ke){if(1&j&&(c.qex(0),c.nrm(1,"div",16),c.bVm()),2&j){const we=Ke.index,C=c.XpG(2);c.R7$(),c.Y8G("ngClass",C.progressCount===C.dotCount+we?"active":"normal")}}function Wc(j,Ke){if(1&j&&(c.qex(0),c.nrm(1,"div",16),c.bVm()),2&j){const we=Ke.index,C=c.XpG(2);c.R7$(),c.Y8G("ngClass",C.progressCount===2*C.dotCount+we?"active":"normal")}}function ma(j,Ke){if(1&j&&(c.j41(0,"div",18),c.DNE(1,tl,5,3,"div",3)(2,Tl,8,6,"div",3)(3,Ma,5,3,"div",3),c.j41(4,"div",14),c.DNE(5,rd,2,1,"ng-container",15),c.k0s(),c.j41(6,"div",6),c.nrm(7,"mat-icon",19),c.j41(8,"p",8),c.EFF(9),c.nI1(10,"translate"),c.k0s()(),c.j41(11,"div",14),c.DNE(12,Wc,2,1,"ng-container",15),c.k0s()()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngIf",!we.isWebRtcNetworkTest&&we.displayToggles.isEthernet),c.R7$(),c.Y8G("ngIf",!we.isWebRtcNetworkTest&&!we.displayToggles.isEthernet),c.R7$(),c.Y8G("ngIf",we.isWebRtcNetworkTest),c.R7$(2),c.Y8G("ngForOf",c.lJ4(8,ol).constructor(we.dotCount)),c.R7$(4),c.JRh(c.bMT(10,6,"networkTest.networkTestIsp")),c.R7$(3),c.Y8G("ngForOf",c.lJ4(9,ol).constructor(we.dotCount))}}function ca(j,Ke){1&j&&c.nrm(0,"mat-icon",30)}function yo(j,Ke){if(1&j&&c.nrm(0,"mat-icon",31),2&j){const we=c.XpG(2);c.Y8G("ngClass",we.resultIconClass)}}function Cc(j,Ke){if(1&j&&(c.j41(0,"div",32)(1,"span",33),c.EFF(2),c.nI1(3,"translate"),c.k0s()()),2&j){const we=c.XpG(2);c.R7$(2),c.JRh(c.i5U(3,1,"networkTest.networkTestSupports",c.l_i(4,to,we.displayData.resolution,we.displayData.fps)))}}function Fs(j,Ke){if(1&j&&(c.j41(0,"div",23)(1,"div",24)(2,"div",25)(3,"div",26),c.DNE(4,ca,1,0,"mat-icon",27)(5,yo,1,1,"ng-template",null,1,c.C5r),c.j41(7,"div",28),c.EFF(8),c.nI1(9,"translate"),c.k0s()()(),c.DNE(10,Cc,4,7,"div",29),c.k0s()()),2&j){const we=c.sdS(6),C=c.XpG();c.R7$(4),c.Y8G("ngIf",C.displayToggles.showSuccessIcons)("ngIfElse",we),c.R7$(4),c.JRh(c.bMT(9,4,C.displayData.resultText)),c.R7$(2),c.Y8G("ngIf",C.displayToggles.showBestResolutionText)}}let fe=(()=>{var j;class Ke{constructor(C,w,Q,me){this.breakpointObserver=Q,this.networkTestService=me,this.displayData={},this.displayToggles={},this.isWarningNetworkTest=!1,this.progressCount=-1,this.dotCount=3,this.destroy$=new p.B7,this.breakpointDimension=["(max-width: 412px)"],this.logger=w.getLogger("libraries/network-test/NetworkTestComponent"),this.mobileMode=!!C?.featureEnablement?.mobileMode}ngOnInit(){this.displayToggles.isEthernet=this.nvTestData?.networkInfo?.NetworkType?.includes(l.Sd.Ethernet),this.displayData.wifiRouterVersion=Xt[this.nvTestData?.networkInfo?.NetworkType]||"",this.displayData.header="networkTest.networkTestHeader",this.displayData.zoneName=this.nvTestData?.result?.zone?.name,this.breakpointObserver.observe(this.breakpointDimension).pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.dotCount=C.matches?2:3})}ngOnChanges(){this.logger.info("Network test status changed: ",pi[this.progressState]),(0,a.isNil)(this.progressState)||this.progressState===pi.Progress?this.progressState===pi.Progress&&this.resetProgressState():(this.stopProgressAnimation(),this.updateResultIconClass(this.progressState),this.displayToggles.showResults=!0,this.displayToggles.isVPNConnection="1"===this.nvTestData?.networkInfo?.IsVPN,this.setResultStates(this.progressState),this.setMaxDisplayState(this.maxDisplayState)),this.displayToggles.showDotIcons=this.progressState===pi.Progress||this.displayToggles.isExcellentResult&&this.displayData.warningInfo!==pi.PoorWifi_2_4}updateZoneName(){this.logger.info("Subscribe to zone name: "),this.zoneNameSub&&(this.zoneNameSub.unsubscribe(),this.zoneNameSub=null),this.zoneNameSub=this.networkTestService.zoneName.subscribe(C=>{this.displayData.zoneName=C.name})}updateResultIconClass(C){this.progressState=C,this.resultIconClass=this.progressState===pi.Bad?"error":this.progressState===pi.Poor||this.nvTestData?.networkInfo?.NetworkType===l.Sd.WiFi2_4||"1"===this.nvTestData?.networkInfo?.IsVPN?"warn":"success"}resetProgressState(){this.startProgressAnimation(),this.updateZoneName(),this.displayData.wifiRouterVersion=Xt[this.nvTestData?.networkInfo?.NetworkType]||"",this.displayData.header="networkTest.networkTestHeader",this.resetEthernetState(),this.isWarningNetworkTest=!1}resetEthernetState(){this.nvTestData&&this.nvTestData.networkInfo&&(this.displayToggles={isEthernet:this.nvTestData.networkInfo?.NetworkType?.includes(l.Sd.Ethernet)})}startProgressAnimation(){(0,a.isNil)(this.animationSub)&&(this.animationSub=(0,z.Y)(180).pipe((0,on.M)(()=>{this.progressCount=this.progressCount+1,this.progressCount=this.progressCount%(3*this.dotCount)})).subscribe())}stopProgressAnimation(){this.animationSub&&(this.animationSub.unsubscribe(),this.animationSub=null,this.progressCount=-1)}setResultStates(C){switch(this.displayData.header="networkTest.networkTestResultsHeader",C){case pi.Excellent:this.displayData.resultText=this.displayToggles.isVPNConnection||this.nvTestData?.networkInfo?.NetworkType===l.Sd.WiFi2_4?"networkTest.networkTestPoorWifiMsg":"networkTest.networkTestSuccessMsg",this.displayToggles.isExcellentResult=!0;break;case pi.Poor:this.isWarningNetworkTest=!0,this.displayData.warningInfo=pi.Poor,this.displayData.resultText="networkTest.networkTestPoorWifiMsg";break;case pi.Bad:this.isWarningNetworkTest=!0,this.displayData.warningInfo=pi.Bad,this.displayData.resultText="networkTest.networkTestBadWifiMsg"}this.displayToggles.showSuccessIcons=this.displayToggles.isExcellentResult&&!this.displayToggles.isVPNConnection&&this.nvTestData?.networkInfo?.NetworkType!==l.Sd.WiFi2_4}setMaxDisplayState(C){this.displayToggles.showBestResolutionText=!this.isWebRtcNetworkTest&&!(0,a.isNil)(C),(0,a.isNil)(C)||(this.displayData.resolution=`\u2066${C.width} x ${C.height}\u2069`,this.displayData.fps=C.frameRate)}ngOnDestroy(){this.zoneNameSub&&(this.zoneNameSub.unsubscribe(),this.zoneNameSub=null),this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Mi.Vk),c.rXU(l.J6),c.rXU(L.QP),c.rXU(io))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-icons"]],inputs:{progressState:"progressState",nvTestData:"nvTestData",maxDisplayState:"maxDisplayState",isWebRtcNetworkTest:"isWebRtcNetworkTest"},features:[c.OA$],decls:17,vars:12,consts:[["isWarningView",""],["isWarningIconView",""],[1,"nv-ui-assets"],["class","network-test-icons",4,"ngIf"],["class","nv-dot-icons-container",4,"ngIf","ngIfElse"],["class","network-isp-icons",4,"ngIf"],[1,"network-test-icons"],["svgIcon","storage",1,"nw-icon","custom-svg-icon"],[1,"caption","font-body3"],[1,"caption","zone","font-body3"],[1,"common-ui-errorDetails"],["fxLayout","row","fxLayoutAlign","center start",4,"ngIf"],["svgIcon","desktop_mac",1,"nw-icon","custom-svg-icon"],["svgIcon","devices",1,"nw-icon","custom-svg-icon"],[1,"nv-dot-icons-container"],[4,"ngFor","ngForOf"],[1,"nv-dot-icons","animated",3,"ngClass"],[3,"warningInfo"],[1,"network-isp-icons"],["svgIcon","isp",1,"nw-icon","custom-svg-icon"],["svgIcon","ethernet",1,"nw-icon","custom-svg-icon"],["svgIcon","wifi",1,"nw-icon","custom-svg-icon"],["svgIcon","network_signal",1,"nw-icon","custom-svg-icon"],["fxLayout","row","fxLayoutAlign","center start"],["fxLayout","column","fxLayoutAlign","start center"],[1,"result-text-container"],["fxFlex","","fxLayout","row","fxLayoutAlign","center start",1,"font-sub1"],["class","nv-custom-icons nw-icon-small result-icon success icon-optimized_reg","mat-font-set","material-icons",4,"ngIf","ngIfElse"],[1,"result-text"],["class","result-resolution-container",4,"ngIf"],["mat-font-set","material-icons",1,"nv-custom-icons","nw-icon-small","result-icon","success","icon-optimized_reg"],["mat-font-set","material-icons",1,"nv-custom-icons","nw-icon-small","result-icon","icon-alert-circle_reg",3,"ngClass"],[1,"result-resolution-container"],[1,"font-body3"]],template:function(C,w){if(1&C&&(c.j41(0,"div",2),c.DNE(1,Lo,5,3,"div",3)(2,zo,5,3,"div",3)(3,el,2,2,"div",4)(4,Za,1,1,"ng-template",null,0,c.C5r)(6,ma,13,10,"div",5),c.j41(7,"div",6),c.nrm(8,"mat-icon",7),c.j41(9,"p",8),c.EFF(10),c.nI1(11,"translate"),c.k0s(),c.j41(12,"p",9),c.EFF(13),c.nI1(14,"translate"),c.k0s()()(),c.j41(15,"div",10),c.DNE(16,Fs,11,6,"div",11),c.k0s()),2&C){const Q=c.sdS(5);c.R7$(),c.Y8G("ngIf",!w.mobileMode),c.R7$(),c.Y8G("ngIf",w.mobileMode),c.R7$(),c.Y8G("ngIf",w.displayToggles.showDotIcons)("ngIfElse",Q),c.R7$(3),c.Y8G("ngIf",!w.isWarningNetworkTest),c.R7$(4),c.JRh(c.bMT(11,8,"common.gfn")),c.R7$(3),c.JRh(c.bMT(14,10,w.displayData.zoneName)),c.R7$(3),c.Y8G("ngIf",w.displayToggles.showResults)}},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.zone[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),Ke})();function Ge(j,Ke){1&j&&(c.j41(0,"div",3),c.nrm(1,"mat-icon",21),c.j41(2,"p",5),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&j&&(c.R7$(3),c.JRh(c.bMT(4,1,"networkTest.networkTestMyComputer")))}function It(j,Ke){1&j&&(c.j41(0,"div",3),c.nrm(1,"mat-icon",22),c.j41(2,"p",5),c.EFF(3),c.nI1(4,"translate"),c.k0s()()),2&j&&(c.R7$(3),c.JRh(c.bMT(4,1,"networkTest.myDevice")))}function an(j,Ke){1&j&&c.nrm(0,"gfn-server-status-link",23)}function kn(j,Ke){if(1&j&&c.nrm(0,"a",24),2&j){const we=c.XpG();c.FS9("translate",we.firewallLinkText),c.Y8G("href",we.firewallHelpUrl,c.B4B)("shortUrl",we.firewallHelpShortUrl)}}function Ni(j,Ke){1&j&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.JRh(c.bMT(2,1,"common.quit")))}function cr(j,Ke){1&j&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.JRh(c.bMT(2,1,"common.close")))}let jo=(()=>{var j;class Ke{constructor(C){this.showFirewallHelpLink=!1,this.nvClient=Pt.sKj.MallClient,this.tryAgain=new c.bkB,this.close=new c.bkB,this.continue=new c.bkB,this.networkTestStates=pi,this.mobileMode=!!C?.featureEnablement?.mobileMode}ngOnInit(){this.autoRun=this.nvClient===Pt.sKj.StreamingClient}onClickClose(){this.close.emit()}onClickTryAgain(){this.tryAgain.emit()}onClickContinue(){this.continue.emit()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Mi.Vk))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-test-error"]],inputs:{networkTestErrorText:"networkTestErrorText",zoneName:"zoneName",showFirewallHelpLink:"showFirewallHelpLink",firewallHelpUrl:"firewallHelpUrl",firewallHelpShortUrl:"firewallHelpShortUrl",firewallLinkText:"firewallLinkText",nvClient:"nvClient"},outputs:{tryAgain:"tryAgain",close:"close",continue:"continue"},decls:31,vars:19,consts:[[1,"nv-ui-assets"],["class","network-test-icons",4,"ngIf"],[3,"warningInfo"],[1,"network-test-icons"],["svgIcon","storage",1,"nw-icon","custom-svg-icon"],[1,"caption","font-body3"],[1,"caption","zone","font-body3"],[1,"common-ui-errorDetails"],["fxLayout","row","fxLayoutAlign","center start"],["fxLayout","column","fxLayoutAlign","start center"],[1,"result-text-container"],["fxFlex","","fxLayout","row","fxLayoutAlign","center start",1,"font-sub1"],["mat-font-set","nv-custom-icon",1,"nv-custom-icons","nw-icon-small","result-icon","icon-alert-circle_reg","error"],["fxFlex","","fxLayout","column","fxLayoutAlign","start start"],[1,"result-text"],["class","error-url",4,"ngIf"],["class","font-body2-link",3,"href","shortUrl","translate",4,"ngIf"],[1,"nv-button-class","error-dlg-buttons"],["mat-button","",1,"error-dialog-button","font-button2",3,"click"],["mat-button","","cdkFocusInitial","",1,"error-dialog-button","font-button2","error-background-active-btn",3,"click"],[4,"ngIf"],["svgIcon","desktop_mac",1,"nw-icon","custom-svg-icon"],["svgIcon","devices",1,"nw-icon","custom-svg-icon"],[1,"error-url"],[1,"font-body2-link",3,"href","shortUrl","translate"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.DNE(1,Ge,5,3,"div",1)(2,It,5,3,"div",1),c.nrm(3,"gfn-network-test-warning",2),c.j41(4,"div",3),c.nrm(5,"mat-icon",4),c.j41(6,"p",5),c.EFF(7),c.nI1(8,"translate"),c.k0s(),c.j41(9,"p",6),c.EFF(10),c.nI1(11,"translate"),c.k0s()()(),c.j41(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11),c.nrm(17,"mat-icon",12),c.j41(18,"div",13)(19,"div",14),c.EFF(20),c.nI1(21,"translate"),c.k0s(),c.DNE(22,an,1,0,"gfn-server-status-link",15)(23,kn,1,3,"a",16),c.k0s()()()()()(),c.j41(24,"div",17)(25,"button",18),c.bIt("click",function(){return w.onClickTryAgain()}),c.EFF(26),c.nI1(27,"translate"),c.k0s(),c.j41(28,"button",19),c.bIt("click",function(){return w.onClickClose()}),c.DNE(29,Ni,3,3,"span",20)(30,cr,3,3,"span",20),c.k0s()()),2&C&&(c.R7$(),c.Y8G("ngIf",!w.mobileMode),c.R7$(),c.Y8G("ngIf",w.mobileMode),c.R7$(),c.Y8G("warningInfo",w.networkTestStates.Bad),c.R7$(4),c.JRh(c.bMT(8,11,"common.gfn")),c.R7$(3),c.JRh(c.bMT(11,13,w.zoneName)),c.R7$(10),c.JRh(c.bMT(21,15,w.networkTestErrorText)),c.R7$(2),c.Y8G("ngIf",!w.showFirewallHelpLink),c.R7$(),c.Y8G("ngIf",w.showFirewallHelpLink),c.R7$(3),c.SpI(" ",c.bMT(27,17,"common.tryAgain")," "),c.R7$(3),c.Y8G("ngIf",w.autoRun),c.R7$(),c.Y8G("ngIf",!w.autoRun))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.zone[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),Ke})();var bs=d(51394),da=d(44186);let ir=(()=>{var j;class Ke{constructor(C,w,Q){this.elementRef=C,this.renderer=w,this.matTooltip=Q,this.isTooltipEnabled=!0,this.isMultiLineEllipsis=!1}ngOnInit(){this.domElement=this.elementRef.nativeElement;const C={"text-overflow":"ellipsis",overflow:"hidden","white-space":this.isMultiLineEllipsis?"wrap":"nowrap"};Object.keys(C).forEach(w=>{this.renderer.setStyle(this.domElement,`${w}`,C[w])})}ngAfterViewInit(){this.matTooltip.tooltipClass=this.tooltipClass}onMouseOver(){this.isTooltipEnabled&&(this.isMultiLineEllipsis?this.domElement.offsetHeight<this.domElement.scrollHeight:this.domElement.offsetWidth<this.domElement.scrollWidth)&&(this.matTooltip.message=this.domElement.innerText,this.matTooltip.show())}onMouseOut(){this.matTooltip.hide()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(c.aKT),c.rXU(c.sFG),c.rXU(da.oV))},j.\u0275dir=c.FsC({type:j,selectors:[["","nvEllipsifiedTextWithTooltip",""]],hostBindings:function(C,w){1&C&&c.bIt("mouseover",function(){return w.onMouseOver()})("mouseout",function(){return w.onMouseOut()})},inputs:{tooltipClass:"tooltipClass",isTooltipEnabled:"isTooltipEnabled",isMultiLineEllipsis:"isMultiLineEllipsis"},features:[c.Jv_([da.oV])]}),Ke})();const us=(j,Ke)=>({warn:j,error:Ke});function $c(j,Ke){if(1&j&&(c.j41(0,"div",6)(1,"div",7)(2,"p",10),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.j41(5,"div",11)(6,"p",12),c.EFF(7),c.k0s()(),c.j41(8,"div",8)(9,"p",12),c.EFF(10),c.k0s()(),c.j41(11,"div",8)(12,"p",12),c.EFF(13),c.k0s()()()),2&j){const we=Ke.$implicit;c.R7$(3),c.SpI(" ",c.bMT(4,5,we.settingLabel)," "),c.R7$(2),c.Y8G("ngClass",c.l_i(7,us,we.isPoorValue,we.isBadValue)),c.R7$(2),c.JRh(we.measuredValue),c.R7$(3),c.JRh(we.requiredValue),c.R7$(3),c.JRh(we.recommendedValue)}}function wd(j,Ke){if(1&j&&(c.j41(0,"div",5)(1,"div",6)(2,"div",7),c.EFF(3,"\xa0"),c.k0s(),c.j41(4,"div",8)(5,"p"),c.EFF(6),c.nI1(7,"translate"),c.k0s()(),c.j41(8,"div",8)(9,"p"),c.EFF(10),c.nI1(11,"translate"),c.k0s()(),c.j41(12,"div",8)(13,"p"),c.EFF(14),c.nI1(15,"translate"),c.k0s()()(),c.DNE(16,$c,14,10,"div",9),c.k0s()),2&j){const we=c.XpG();c.R7$(6),c.JRh(c.bMT(7,4,"networkTest.networkTestMeasured")),c.R7$(4),c.JRh(c.bMT(11,6,"networkTest.networkTestRequired")),c.R7$(4),c.JRh(c.bMT(15,8,"common.recommended")),c.R7$(2),c.Y8G("ngForOf",we.propertyData)}}function Ta(j,Ke){if(1&j&&(c.j41(0,"div",5)(1,"div",14)(2,"p"),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.j41(5,"div",6)(6,"p",15),c.EFF(7),c.nI1(8,"translate"),c.k0s(),c.j41(9,"p",16),c.EFF(10),c.k0s()(),c.j41(11,"div",6)(12,"p",15),c.EFF(13),c.nI1(14,"translate"),c.k0s(),c.j41(15,"p",17),c.EFF(16),c.k0s()(),c.j41(17,"div",18)(18,"p",15),c.EFF(19),c.nI1(20,"translate"),c.k0s(),c.j41(21,"p",17),c.EFF(22),c.k0s()()()),2&j){const we=Ke.$implicit;c.R7$(3),c.JRh(c.bMT(4,8,we.settingLabel)),c.R7$(4),c.JRh(c.bMT(8,10,"networkTest.networkTestMeasured")),c.R7$(2),c.Y8G("ngClass",c.l_i(16,us,we.isPoorValue,we.isBadValue)),c.R7$(),c.SpI(" ",we.measuredValue," "),c.R7$(3),c.JRh(c.bMT(14,12,"networkTest.networkTestRequired")),c.R7$(3),c.JRh(we.requiredValue),c.R7$(3),c.JRh(c.bMT(20,14,"common.recommended")),c.R7$(3),c.JRh(we.recommendedValue)}}function xp(j,Ke){if(1&j&&(c.j41(0,"div",5),c.DNE(1,Ta,23,19,"div",13),c.k0s()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngForOf",we.propertyData)}}function Gh(j,Ke){1&j&&(c.qex(0),c.j41(1,"span",19),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.bVm()),2&j&&(c.R7$(2),c.JRh(c.bMT(3,1,"networkTest.overrideZoneWarning")))}let Sc=(()=>{var j;class Ke{constructor(C){this.networkConfigurationService=C}ngOnInit(){this.networkConfigurationService.getNetworkOverride().pipe((0,g.s)(1)).subscribe(C=>{this.showZoneOverrideWarning=!(0,a.isNil)(C)&&this.nvTestData.result.bandwidth.measured>=this.nvTestData.result.bandwidth.recommended&&this.nvTestData.result.frameLoss.measured<this.nvTestData.result.frameLoss.recommended&&this.nvTestData.result.latency.measured<this.nvTestData.result.latency.recommended&&"0"===this.nvTestData.networkInfo.IsVPN&&this.nvTestData.networkInfo.NetworkType!==l.Sd.WiFi2_4}),this.constructResults()}constructResults(){this.propertyData=[{settingLabel:"networkTest.bandwidth",measuredValue:this.nvTestData.result.bandwidth.measured>=this.nvTestData.result.bandwidth.recommended?`> ${this.nvTestData.result.bandwidth.measured}`:this.nvTestData.result.bandwidth.measured,recommendedValue:`> ${this.nvTestData.result.bandwidth.recommended}`,requiredValue:`> ${this.nvTestData.result.bandwidth.limit}`,isPoorValue:(0,a.inRange)(this.nvTestData.result.bandwidth.measured,this.nvTestData.result.bandwidth.limit,this.nvTestData.result.bandwidth.recommended),isBadValue:this.nvTestData.result.bandwidth.measured<=this.nvTestData.result.bandwidth.limit},{settingLabel:"networkTest.packetLoss",measuredValue:this.nvTestData.result.frameLoss.measured.toFixed(1),recommendedValue:`< ${this.nvTestData.result.frameLoss.recommended.toFixed(1)}`,requiredValue:`< ${this.nvTestData.result.frameLoss.limit.toFixed(1)}`,isPoorValue:(0,a.inRange)(this.nvTestData.result.frameLoss.measured,this.nvTestData.result.frameLoss.recommended,this.nvTestData.result.frameLoss.limit),isBadValue:this.nvTestData.result.frameLoss.measured>=this.nvTestData.result.frameLoss.limit},{settingLabel:"networkTest.latency",measuredValue:this.nvTestData.result.latency.measured,recommendedValue:`< ${this.nvTestData.result.latency.recommended}`,requiredValue:`< ${this.nvTestData.result.latency.limit}`,isPoorValue:(0,a.inRange)(this.nvTestData.result.latency.measured,this.nvTestData.result.latency.recommended,this.nvTestData.result.latency.limit),isBadValue:this.nvTestData.result.latency.measured>=this.nvTestData.result.latency.limit}]}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Oo.u))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-completed"]],inputs:{nvTestData:"nvTestData",isHandset:"isHandset"},decls:6,vars:3,consts:[["fxLayout","column","tabindex","0",1,"common-ui-network-content"],["fxLayout","column","fxFlex","",1,"div-table","font-sub2"],["fxLayout","column","fxFlex","",4,"ngIf"],["fxLayout","row",1,"override-warning-container"],[4,"ngIf"],["fxLayout","column","fxFlex",""],["fxLayout","row","fxFlex","",1,"div-table-row"],[1,"div-table-col-header","font-body2"],[1,"div-table-col","font-body2"],["class","div-table-row","fxLayout","row","fxFlex","",4,"ngFor","ngForOf"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3"],[1,"div-table-col","font-body2",3,"ngClass"],["dir","auto"],["fxLayout","column","fxFlex","",4,"ngFor","ngForOf"],[1,"font-sub2"],[1,"font-body3"],["dir","auto",1,"font-sub3",3,"ngClass"],["dir","auto",1,"font-sub3"],["fxLayout","row","fxFlex","",1,"div-table-row","font-body3"],[1,"font-body3-italic"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"div",1),c.DNE(2,wd,17,10,"div",2)(3,xp,2,1,"div",2),c.j41(4,"div",3),c.DNE(5,Gh,4,3,"ng-container",4),c.k0s()()()),2&C&&(c.R7$(2),c.Y8G("ngIf",!w.isHandset),c.R7$(),c.Y8G("ngIf",w.isHandset),c.R7$(2),c.Y8G("ngIf",w.showZoneOverrideWarning))},dependencies:[bs.ig,x.YU,x.Sq,x.bT,V.DJ,V.UI,D.PW,ir,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.zone[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),Ke})();const Xd=j=>({narrowstyle:j});let Du=(()=>{var j;class Ke{constructor(){this.isWifi_2_4=!1,this.isBadNetworkResult=!1}ngOnInit(){switch(this.warningInfo){case pi.PoorWifi_2_4:this.isWifi_2_4=!0;break;case pi.Bad:this.isBadNetworkResult=!0}}}return(j=Ke).\u0275fac=function(C){return new(C||j)},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-test-warning"]],inputs:{warningInfo:"warningInfo"},decls:4,vars:7,consts:[[1,"network-test-warning-icons",3,"ngClass"],[3,"ngClass"],["mat-font-set","material-icons",1,"nv-custom-icons","nw-icon","icon-alert-bang"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.nrm(1,"hr",1)(2,"mat-icon",2)(3,"hr",1),c.k0s()),2&C&&(c.Y8G("ngClass",w.isBadNetworkResult?"redstyle":"yellowstyle"),c.R7$(),c.Y8G("ngClass",c.eq3(3,Xd,w.isWifi_2_4)),c.R7$(2),c.Y8G("ngClass",c.eq3(5,Xd,w.isWifi_2_4)))},dependencies:[F.An,x.YU,D.PW],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.font-size-xxxs[_ngcontent-%COMP%]{font-size:8px}.font-size-xxs[_ngcontent-%COMP%]{font-size:11px}.font-size-sm[_ngcontent-%COMP%]{font-size:12px}.font-size-sm1[_ngcontent-%COMP%]{font-size:13px}.font-size-lg[_ngcontent-%COMP%]{font-size:14px}.font-size-xl[_ngcontent-%COMP%]{font-size:16px}.font-size-xl1[_ngcontent-%COMP%]{font-size:18px}.font-size-20[_ngcontent-%COMP%]{font-size:20px}.font-size-xxl[_ngcontent-%COMP%]{font-size:24px}.font-size-32[_ngcontent-%COMP%]{font-size:32px}.font-size-xxxl[_ngcontent-%COMP%]{font-size:40px}.line-height-sm[_ngcontent-%COMP%]{line-height:.75em}.line-height-sm1[_ngcontent-%COMP%]{line-height:1em}.line-height-14[_ngcontent-%COMP%]{line-height:14px}.line-height-12[_ngcontent-%COMP%]{line-height:12px}.line-height-16[_ngcontent-%COMP%]{line-height:16px}.line-height-md[_ngcontent-%COMP%]{line-height:1.5em}.line-height-lg[_ngcontent-%COMP%]{line-height:3em}.line-height-30[_ngcontent-%COMP%]{line-height:30px}.line-height-36[_ngcontent-%COMP%]{line-height:36px}.line-height-lg1[_ngcontent-%COMP%]{line-height:40px}.font-style-italic[_ngcontent-%COMP%]{font-style:italic}.font-style-bold[_ngcontent-%COMP%]{font-weight:700}.font-style-normal[_ngcontent-%COMP%]{font-weight:400}.font-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.font-lowercase[_ngcontent-%COMP%]{text-transform:lowercase}.text-transform-none[_ngcontent-%COMP%]{text-transform:none}.common-ui-network-container[_ngcontent-%COMP%]{background-color:#1f2224;max-width:789px}.common-ui-network-header[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:0;height:24px}.isLtr[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900;vertical-align:middle;min-width:24px}.isLtr[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.result-text-container[_ngcontent-%COMP%]{margin-bottom:6px}.result-text[_ngcontent-%COMP%]{margin-top:1px}.nw-icon[_ngcontent-%COMP%]{height:24px;line-height:24px;width:auto;speak:none;font-size:48px;font-variant:normal;align-self:center;color:#fff;opacity:.9;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:22px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.icon-alert-bang[_ngcontent-%COMP%]{margin:0}.common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{font-size:24px;color:#76b900}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .result-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.common-ui-network-container[_ngcontent-%COMP%] .result-icon.error[_ngcontent-%COMP%]{color:#ed1c24}.warn[_ngcontent-%COMP%]{color:#ffb538}.error[_ngcontent-%COMP%]{color:#ed1c24}.common-ui-errorDetails[_ngcontent-%COMP%] .success[_ngcontent-%COMP%]{color:#76b900}.flex-1[_ngcontent-%COMP%]{flex:1}.nv-ui-assets[_ngcontent-%COMP%]{height:140px;margin-top:64px;display:flex;flex-direction:row;overflow:hidden;justify-content:center;align-items:baseline}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:79px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:79px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:79px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:79px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:79px}.nv-dot-icons[_ngcontent-%COMP%]{border-radius:50%;width:8px;height:8px;align-self:center;display:-webkit-inline-box;background:#ffffff73}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.animated[_ngcontent-%COMP%]{animation-duration:2s;animation-iteration-count:infinite;animation-fill-mode:both;animation-delay:1s}.caption[_ngcontent-%COMP%]{display:block;max-width:92px;width:12vw;text-align:center;margin-bottom:0}.caption.zone[_ngcontent-%COMP%]{margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.common-ui-errorDetails[_ngcontent-%COMP%]{height:72px;display:flex;justify-content:center;margin:0 24px}.connect-error-details[_ngcontent-%COMP%]{display:flex}.common-ui-network-container[_ngcontent-%COMP%] .common-ui-resultDetails[_ngcontent-%COMP%]{height:24px;margin-bottom:30px;align-self:center;margin-top:22px}.common-ui-network-content[_ngcontent-%COMP%]{height:181px;background-color:#0000004d;overflow-y:auto}.common-ui-network-content[_ngcontent-%COMP%] .nv-button-class[_ngcontent-%COMP%]{height:84px;display:flex}.common-ui-network-content[_ngcontent-%COMP%] .override-warning-container[_ngcontent-%COMP%]{margin-top:5px;padding:0 24px;align-items:center}.common-ui-network-content[_ngcontent-%COMP%] span.icon-alert-circle_reg[_ngcontent-%COMP%]{font-size:11px}.common-ui-network-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0}.div-table[_ngcontent-%COMP%]{display:table!important;width:101%;padding-top:24px;padding-bottom:24px;max-width:100%}.div-table-row[_ngcontent-%COMP%]{display:table-row;width:auto;clear:both;height:28px}.div-table-col[_ngcontent-%COMP%]{display:table-column;width:140px;text-align:center}.isLtr[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{--dummy0: 0;float:right}.div-table-col-header[_ngcontent-%COMP%]{display:table-column;width:236px}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:left}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:left}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isLtr[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ffb538;width:177px}.yellowstyle[_ngcontent-%COMP%] .narrowstyle[_ngcontent-%COMP%]{width:26px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{display:inline-block;border:16px;border-top:.1rem solid #ed1c24;width:177px}.redstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ed1c24}.yellowstyle[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.wifi_2_4_warn[_ngcontent-%COMP%] .nv-custom-icons[_ngcontent-%COMP%]:before{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%] md-icon[_ngcontent-%COMP%]{color:#ffb538}.network-test-warning-icons[_ngcontent-%COMP%]{display:table}.network-assets[_ngcontent-%COMP%]{display:flex}.error-details[_ngcontent-%COMP%]{display:flex;margin-top:24px}.isLtr[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .error-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-details[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .error-details[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.common-ui-error[_ngcontent-%COMP%]{width:480px}.redirect-page-div[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:center}.redirect-page-link[_ngcontent-%COMP%]{text-decoration:none}.vertical-gap-24[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-right:48px}html[dir=ltr][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-right:48px}.isRtl[_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .network-tips-link[_ngcontent-%COMP%]{padding-left:48px}html[dir=rtl][_ngcontent-%COMP%] .network-tips-link[_ngcontent-%COMP%]{--dummy2: 0;padding-left:48px}.network-progress-fill[_ngcontent-%COMP%]{height:50px;background-color:#1f2224}.network-test-icons[_ngcontent-%COMP%]{display:block}.error-dlg-content[_ngcontent-%COMP%]{margin:24px;min-height:32px}.error-dlg-buttons[_ngcontent-%COMP%]{min-height:52px}.isLtr[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .error-dlg-buttons[_ngcontent-%COMP%]{--dummy0: 0;float:left}button.error-dialog-button[_ngcontent-%COMP%]{margin:8px}.error-icon[_ngcontent-%COMP%]{font-size:32px!important}.isLtr[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.error-icon-error-dialog[_ngcontent-%COMP%]{font-size:32px;margin-top:20px;min-width:32px;line-height:5px}.isLtr[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .error-icon-error-dialog[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 8px 23px 23px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 8px 23px 23px}.isRtl[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{margin:23px 23px 23px 8px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .close-dlg-btn[_ngcontent-%COMP%]{--dummy: 0;margin:23px 23px 23px 8px}.active[_ngcontent-%COMP%]{background:#76b900;opacity:1;width:12px;height:12px;margin-bottom:-2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.normal[_ngcontent-%COMP%]{background:#ffffff73;width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.error-background-active-btn[_ngcontent-%COMP%]{background-color:#76b900}.custom-svg-icon[_ngcontent-%COMP%]{width:48px;height:auto}.network-isp-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.network-test-warning-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:12px}.nv-dot-icons-container[_ngcontent-%COMP%]{margin-top:12px}@media (max-width: 960px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:60px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:60px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:60px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:60px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:60px}.network-test-results[_ngcontent-%COMP%]{min-width:80vw}.div-table-col-header[_ngcontent-%COMP%]{width:30%}.div-table-col[_ngcontent-%COMP%]{width:18%}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:120px}}@media (max-width: 790px){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:48px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:48px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:48px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:48px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:48px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:80px}}@media (max-width: 690px){.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:60px}}@media screen and (max-width: 834px) and (max-height: 1194px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:36px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:87px}.nv-dot-icons[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.active[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.normal[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.div-table-col-header[_ngcontent-%COMP%]{width:160px}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape),(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{display:block;max-height:65vh;overflow-y:auto;overflow-x:unset}.common-ui-network-container[_ngcontent-%COMP%]{margin:0;overflow:unset}.common-ui-network-header[_ngcontent-%COMP%]{margin:0}.common-ui-network-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.isLtr[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-network-title[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.common-ui-network-content[_ngcontent-%COMP%]{height:unset;background-color:unset}.nv-ui-assets[_ngcontent-%COMP%]{height:100px;line-height:0;margin-top:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.network-test-icons[_ngcontent-%COMP%]{text-align:center;height:16px;margin-top:0}.network-isp-icons[_ngcontent-%COMP%]{align-items:center}.nv-dot-icons[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.active[_ngcontent-%COMP%]{width:8px;height:8px;margin-bottom:0}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.normal[_ngcontent-%COMP%]{width:4px;height:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:4px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:4px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:4px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:4px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:4px}.custom-svg-icon[_ngcontent-%COMP%]{width:24px;min-height:25px}.caption[_ngcontent-%COMP%]{margin:0 auto;align-self:center}.common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;display:flex;justify-content:center}.isLtr[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=ltr][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.isRtl[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{margin:0 24px}html[dir=rtl][_ngcontent-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px}.network-test-error-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:stretch;max-width:100%}.icon-alert-bang[_ngcontent-%COMP%]{font-size:36px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:57px}.result-text[_ngcontent-%COMP%]{margin-top:0}.network-test-results[_ngcontent-%COMP%]{background-color:#0000004d;padding-top:16px}.mat-mdc-tab-group[_ngcontent-%COMP%]{background-color:#0000004d}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .div-table[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .div-table[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .div-table[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.div-table-row[_ngcontent-%COMP%]{justify-content:space-between;max-width:240px}}@media (max-width: 959.98px) and (orientation: landscape),(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape){.network-test-content[_ngcontent-%COMP%]{max-height:60vh}.network-test-results[_ngcontent-%COMP%]{max-width:536px;min-width:0}.common-ui-network-container[_ngcontent-%COMP%]{width:536px;max-height:80vh}}@media (max-width: 599.98px) and (orientation: portrait){.common-ui-network-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:6px}.isLtr[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nw-icon[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .nw-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}}@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait){.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .nv-dot-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.active[_ngcontent-%COMP%]{width:6px;height:6px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-left:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy3: 0;margin-right:1px}.isLtr[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .active[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .active[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-left:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy3: 0;margin-right:2px}.isLtr[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-right:2px}html[dir=ltr][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-right:2px}.isRtl[_nghost-%COMP%] .normal[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .normal[_ngcontent-%COMP%]{margin-left:2px}html[dir=rtl][_ngcontent-%COMP%] .normal[_ngcontent-%COMP%]{--dummy4: 0;margin-left:2px}.redstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%], .yellowstyle[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{width:40px}.result-text[_ngcontent-%COMP%]{width:70%}}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%]{width:960px;max-width:960px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] .common-ui-network-header[_ngcontent-%COMP%]{height:unset;margin-top:24px}.tv-view[_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:0}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%]{height:277px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-row[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col-header[_ngcontent-%COMP%]{width:320px}.tv-view[_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-network-content[_ngcontent-%COMP%] .div-table-col[_ngcontent-%COMP%]{width:180px}.tv-view[_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-ui-assets[_ngcontent-%COMP%]{height:20vh}.tv-view[_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .common-ui-errorDetails[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .error-dialog-button[_ngcontent-%COMP%]{margin:16px}.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{font-size:40px;width:40px;height:40px}.isLtr.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl.tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl] .tv-view[_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .result-icon.mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]}),Ke})();function wp(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",3),c.bIt("click",function(){c.eBV(we);const w=c.XpG();return c.Njj(w.execLeftButtonAction())}),c.EFF(1),c.nI1(2,"translate"),c.nI1(3,"uppercase"),c.k0s()}if(2&j){const we=c.XpG();c.R7$(),c.SpI(" ",c.bMT(3,3,c.bMT(2,1,we.leftButtonText))," ")}}let kg=(()=>{var j;class Ke{constructor(){this.tryAgain=new c.bkB,this.close=new c.bkB,this.continue=new c.bkB,this.showButton=!0}ngOnInit(){switch(this.placementCriteria.progressState){case pi.Excellent:this.showButton=this.placementCriteria.showAdditionalActions,this.leftButtonText="common.tryAgain",this.rightButtonText=this.placementCriteria.autoRun?"common.continueTitleCase":"common.ok";break;case pi.Bad:this.leftButtonText=this.placementCriteria.autoRun?"networkTest.continueAnyway":"common.close",this.rightButtonText="common.tryAgain";break;default:this.leftButtonText=this.placementCriteria.autoRun?"common.continueTitleCase":"common.close",this.rightButtonText="common.tryAgain"}}execLeftButtonAction(){this.placementCriteria.progressState===pi.Excellent?this.tryAgain.emit():this.placementCriteria.autoRun?this.continue.emit():this.close.emit()}execRightButtonAction(){this.placementCriteria.progressState===pi.Excellent?this.placementCriteria.autoRun?this.continue.emit():this.close.emit():this.tryAgain.emit()}}return(j=Ke).\u0275fac=function(C){return new(C||j)},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-nw-test-button-placer"]],inputs:{placementCriteria:"placementCriteria"},outputs:{tryAgain:"tryAgain",close:"close",continue:"continue"},decls:6,vars:6,consts:[[1,"container"],["mat-button","","cdkFocusInitial","",1,"action-btn","font-button2",3,"click"],["mat-button","","class","font-button2 back-hover-override",3,"click",4,"ngIf"],["mat-button","",1,"font-button2","back-hover-override",3,"click"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"button",1),c.bIt("click",function(){return w.execRightButtonAction()}),c.EFF(2),c.nI1(3,"translate"),c.nI1(4,"uppercase"),c.k0s(),c.DNE(5,wp,4,5,"button",2),c.k0s()),2&C&&(c.R7$(2),c.SpI(" ",c.bMT(4,4,c.bMT(3,2,w.rightButtonText))," "),c.R7$(3),c.Y8G("ngIf",w.showButton))},dependencies:[k.iV,x.bT,x.Pc,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.action-btn[_ngcontent-%COMP%]{height:36px;min-width:64px;border-radius:0;margin:13px 8px;background-color:#76b900}.isLtr[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.back-hover-override[_ngcontent-%COMP%]:hover{background-color:#ffffff0a}.container[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;padding:8px;gap:8px 13px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.container[_ngcontent-%COMP%]{flex-wrap:wrap}}.tv-view[_nghost-%COMP%] .action-btn[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .action-btn[_ngcontent-%COMP%]{height:auto}.tv-view[_nghost-%COMP%] .container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .container[_ngcontent-%COMP%]{padding:16px;gap:16px 32px}"]}),Ke})();var Ks=d(40262);function Td(j,Ke){if(1&j&&(c.qex(0),c.nrm(1,"hr"),c.j41(2,"div",8),c.EFF(3),c.k0s(),c.bVm()),2&j){const we=c.XpG(2);c.R7$(3),c.JRh(we.interactiveElementsText)}}function Id(j,Ke){if(1&j&&(c.j41(0,"div",4)(1,"div")(2,"div",5),c.EFF(3),c.k0s(),c.j41(4,"div",6),c.EFF(5),c.k0s()(),c.DNE(6,Td,4,1,"ng-container",7),c.k0s()),2&j){const we=c.XpG();c.R7$(3),c.JRh(we.ratingClass),c.R7$(2),c.JRh(we.contentDescriptorsText),c.R7$(),c.Y8G("ngIf",we.showInteractiveElements)}}let Ac=(()=>{var j;class Ke{constructor(C,w){this.cdRef=C,this.breakpointObserver=w,this.destroy$=new p.B7}ngOnInit(){this.breakpointObserver.observe([l.hi.IPhone]).pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.isSmallScreen=C.matches}),this.updateFields()}ngOnChanges(){this.updateFields()}updateFields(){this.contentDescriptors&&this.contentDescriptors.length&&(this.contentDescriptorsText=this.contentDescriptors.join(", ")),this.interactiveElements&&this.interactiveElements.length?(this.interactiveElementsText=this.interactiveElements.join(", "),this.showInteractiveElements=!0):this.showInteractiveElements=!1}imageLoaded(){this.ratingImageLoaded=!0,this.cdRef.detectChanges()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(c.gRc),c.rXU(L.QP))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-content-rating"]],inputs:{ratingLogoUrl:"ratingLogoUrl",ratingClass:"ratingClass",contentDescriptors:"contentDescriptors",interactiveElements:"interactiveElements"},features:[c.OA$],decls:4,vars:4,consts:[["fxLayout","row","fxFlex","auto",1,"content-rating-container"],[1,"rating-logo"],[3,"load","src"],["fxLayout","column","class","rating-details",4,"ngIf"],["fxLayout","column",1,"rating-details"],["dir","auto",1,"rating-title","font-sub2"],[1,"font-body3","font-color-tertiary","content-descriptors"],[4,"ngIf"],[1,"font-body3","interactive-elements"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"div",1)(2,"img",2),c.bIt("load",function(){return w.imageLoaded()}),c.k0s()(),c.DNE(3,Id,7,3,"div",3),c.k0s()),2&C&&(c.AVh("small-screen",w.isSmallScreen),c.R7$(2),c.FS9("src",w.ratingLogoUrl,c.B4B),c.R7$(),c.Y8G("ngIf",w.ratingImageLoaded))},dependencies:[x.bT,V.DJ,V.UI],styles:["hr[_ngcontent-%COMP%]{height:1px;background-color:#ffffff4d;border:none;width:100%;margin:0}.rating-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:68px;width:auto}.isLtr[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rating-details[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rating-details[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .rating-details[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .rating-details[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.content-descriptors[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:4px}.interactive-elements[_ngcontent-%COMP%]{padding-top:3px}.content-rating-container.small-screen[_ngcontent-%COMP%] .rating-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:53px}.new-10ft[_nghost-%COMP%] .content-rating-container[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .content-rating-container[_ngcontent-%COMP%]{padding:0;background-image:unset}.new-10ft[_nghost-%COMP%] .rating-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .rating-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:82px;width:auto}.new-10ft[_nghost-%COMP%] .rating-details[_ngcontent-%COMP%] .rating-title[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .rating-details[_ngcontent-%COMP%] .rating-title[_ngcontent-%COMP%]{line-height:1;padding-bottom:8px}.new-10ft[_nghost-%COMP%] .content-descriptors[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .content-descriptors[_ngcontent-%COMP%]{padding:0 0 8px}.new-10ft[_nghost-%COMP%] .interactive-elements[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .interactive-elements[_ngcontent-%COMP%]{padding-top:8px}"]}),Ke})();function Ad(j,Ke){if(1&j&&(c.j41(0,"div",16)(1,"span",17),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.j41(4,"span",18),c.EFF(5),c.nI1(6,"translate"),c.k0s()()),2&j){const we=c.XpG(2);c.R7$(2),c.JRh(c.bMT(3,2,"setup.estimatedWaitTime")),c.R7$(3),c.SpI("\xa0",c.i5U(6,4,we.loadingScreensData.queueTimeKey,we.loadingScreensData.queueTimeValues),"")}}function Mm(j,Ke){if(1&j&&(c.nrm(0,"div",19),c.nI1(1,"translate"),c.nI1(2,"trustAsHtml")),2&j){const we=c.XpG(2);c.Y8G("innerHTML",c.bMT(2,3,c.bMT(1,1,we.loadingScreensData.loadingText)),c.npT)}}function Mc(j,Ke){if(1&j&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"translate"),c.j41(3,"span"),c.EFF(4),c.k0s()()),2&j){const we=c.XpG(3);c.R7$(),c.SpI("",c.bMT(2,2,"setup.gamersAheadOfYou")," "),c.R7$(3),c.SpI(" ",we.loadingScreensData.queuePosition-1,"")}}function Tp(j,Ke){1&j&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.JRh(c.bMT(2,1,"setup.youAreNext")))}function Zd(j,Ke){if(1&j&&(c.j41(0,"div",20),c.DNE(1,Mc,5,4,"span",21)(2,Tp,3,3,"span",21),c.k0s()),2&j){const we=c.XpG(2);c.R7$(),c.Y8G("ngIf",we.loadingScreensData.queuePosition>1),c.R7$(),c.Y8G("ngIf",1===we.loadingScreensData.queuePosition)}}function Vh(j,Ke){1&j&&(c.j41(0,"div",22)(1,"span"),c.EFF(2),c.nI1(3,"translate"),c.k0s()()),2&j&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"setup.opportunity.promptText")," "))}function Hh(j,Ke){1&j&&(c.j41(0,"span",25),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"setup.cleanupPreviousSession")," "))}function Ng(j,Ke){if(1&j&&(c.j41(0,"div",23),c.DNE(1,Hh,3,3,"span",24),c.k0s()),2&j){const we=c.XpG(2);c.R7$(),c.Y8G("ngIf",!we.isGuestAppFlow)}}function Kl(j,Ke){if(1&j&&(c.j41(0,"div",8),c.DNE(1,Ad,7,7,"div",9)(2,Mm,3,5,"div",10)(3,Zd,3,2,"div",11),c.j41(4,"div",12),c.nrm(5,"mat-progress-bar",13),c.k0s(),c.DNE(6,Vh,4,3,"div",14)(7,Ng,2,1,"div",15),c.k0s()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngIf",we.loadingScreensData.queueTimeVisible&&!we.loadingScreensData.queuePositionVisible),c.R7$(),c.Y8G("ngIf",!we.showVideo),c.R7$(),c.Y8G("ngIf",we.loadingScreensData.queuePositionVisible),c.R7$(2),c.Y8G("mode",we.loadingScreensData.progressBar)("value",we.loadingScreensData.progressValue),c.BMQ("tabindex",null),c.R7$(),c.Y8G("ngIf",we.showVideo),c.R7$(),c.Y8G("ngIf",we.showSessionCleanupDesc)}}function Dd(j,Ke){if(1&j&&c.nrm(0,"gfn-content-rating",28),2&j){const we=c.XpG(2);c.Y8G("ratingLogoUrl",we.contentRatingData.ratingLogoUrl)("ratingClass",we.contentRatingData.ratingClass)("contentDescriptors",we.contentRatingData.contentDescriptors)("interactiveElements",we.contentRatingData.interactiveElements)}}function jh(j,Ke){if(1&j&&(c.j41(0,"div",26),c.DNE(1,Dd,1,4,"gfn-content-rating",27),c.k0s()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngIf",!we.isGuestAppFlow)}}function Wh(j,Ke){1&j&&(c.j41(0,"mat-icon"),c.EFF(1,"open_in_new"),c.k0s())}function gh(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",30),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.upgradeButtonClick())}),c.DNE(1,Wh,2,0,"mat-icon",21),c.EFF(2),c.nI1(3,"translate"),c.k0s()}if(2&j){const we=c.XpG(2);c.Y8G("isVisible",we.loadingScreensData.showLoadingOnUpgradePromptButton),c.R7$(),c.Y8G("ngIf",we.loadingScreensData.showUpgradeLinkIcon),c.R7$(),c.SpI(" ",c.bMT(3,3,we.loadingScreensData.upgradePromptButtonText)," ")}}function ph(j,Ke){if(1&j&&(c.qex(0),c.DNE(1,gh,4,5,"button",29),c.bVm()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngIf",we.showUpsellCta)}}function mh(j,Ke){1&j&&(c.j41(0,"mat-icon"),c.EFF(1,"open_in_new"),c.k0s())}function $h(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",30),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.viewAccountButtonClick())}),c.DNE(1,mh,2,0,"mat-icon",21),c.EFF(2),c.nI1(3,"translate"),c.k0s()}if(2&j){const we=c.XpG(2);c.Y8G("isVisible",we.loadingScreensData.showLoadingOnUpgradePromptButton),c.R7$(),c.Y8G("ngIf",we.loadingScreensData.showUpgradeLinkIcon),c.R7$(),c.SpI(" ",c.bMT(3,3,we.loadingScreensData.viewAccountButtonText)," ")}}function od(j,Ke){if(1&j&&c.DNE(0,$h,4,5,"button",29),2&j){const we=c.XpG();c.Y8G("ngIf",we.showUpsellCta)}}let fh=(()=>{var j;class Ke{constructor(C,w){this.guestModeHelperService=w,this.showHeaderSection=!0,this.clickUpgradeButton=new c.bkB,this.clickViewAccountButton=new c.bkB,this.isGuestAppFlow=!1,this.logger=C.getLogger("SmallScreenUiComponent"),this.isGuestAppFlow=w.isGuestAppFlow()}upgradeButtonClick(){this.clickUpgradeButton.emit(!0)}viewAccountButtonClick(){this.clickViewAccountButton.emit(!0)}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(tt.x))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-small-screen-ui"]],inputs:{loadingScreensData:"loadingScreensData",showVideo:"showVideo",showHeaderSection:"showHeaderSection",canShowRating:"canShowRating",showSessionCleanupDesc:"showSessionCleanupDesc",contentRatingData:"contentRatingData",showUpsellCta:"showUpsellCta",canHardUpsell:"canHardUpsell"},outputs:{clickUpgradeButton:"clickUpgradeButton",clickViewAccountButton:"clickViewAccountButton"},decls:9,vars:5,consts:[["viewAccount",""],[1,"small-screen-ui-container"],[1,"small-screen-ui-bottom-sheet-wrapper"],[1,"small-screen-ui-bottom-sheet"],["fxLayout","column",1,"bottom-sheet-container"],["class","header-content-container font-sub2","fxLayout","column",4,"ngIf"],["class","content-rating",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxLayout","column",1,"header-content-container","font-sub2"],["class","font-sub3",4,"ngIf"],["class","font-sub2","cdkMonitorSubtreeFocus","",3,"innerHTML",4,"ngIf"],["class","font-sub3","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"small-screen-ui-progress-bar"],[3,"mode","value"],["class","prompt-text font-sub3",4,"ngIf"],["class","session-cleanup-description",4,"ngIf"],[1,"font-sub3"],[1,"font-color-primary"],[1,"font-sub1"],["cdkMonitorSubtreeFocus","",1,"font-sub2",3,"innerHTML"],["fxLayout","row","fxLayoutAlign","start center",1,"font-sub3"],[4,"ngIf"],[1,"prompt-text","font-sub3"],[1,"session-cleanup-description"],["class","font-sub2",4,"ngIf"],[1,"font-sub2"],[1,"content-rating"],[3,"ratingLogoUrl","ratingClass","contentDescriptors","interactiveElements",4,"ngIf"],[3,"ratingLogoUrl","ratingClass","contentDescriptors","interactiveElements"],["mat-button","","class","upgrade-button text-button-icon font-button2","nvProgressCircular","",3,"isVisible","click",4,"ngIf"],["mat-button","","nvProgressCircular","",1,"upgrade-button","text-button-icon","font-button2",3,"click","isVisible"]],template:function(C,w){if(1&C&&(c.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),c.DNE(4,Kl,8,8,"div",5)(5,jh,2,1,"div",6),c.k0s(),c.DNE(6,ph,2,1,"ng-container",7)(7,od,1,1,"ng-template",null,0,c.C5r),c.k0s()()()),2&C){const Q=c.sdS(8);c.Y8G("@loadingAnimation","SmallScreenFadeIn"),c.R7$(4),c.Y8G("ngIf",w.showHeaderSection),c.R7$(),c.Y8G("ngIf",w.canShowRating),c.R7$(),c.Y8G("ngIf",w.canHardUpsell)("ngIfElse",Q)}},dependencies:[Y.r,ee.e,ta.q,x.bT,V.DJ,V.sA,k.iV,F.An,Ne.HM,Ac,Ze.D9,Re.O],styles:[".small-screen-ui-container[_ngcontent-%COMP%]{z-index:1000;height:50%;width:100%;position:absolute;bottom:0;background:linear-gradient(180deg,#0000,#0000000d 11.44%,#00000026 23.55%,#0000004d 35.87%,#00000080 51.55%,#0009 64.77%,#000000b3 81.94%,#000c);display:flex;justify-content:center}.small-screen-ui-bottom-sheet-wrapper[_ngcontent-%COMP%]{display:flex;width:90%}.small-screen-ui-bottom-sheet[_ngcontent-%COMP%]{z-index:1001;width:-webkit-fill-available;width:-moz-available;display:flex;align-items:end;justify-content:space-between;padding:0 16px 16px;gap:4px}.small-screen-ui-bottom-sheet[_ngcontent-%COMP%] .upgrade-button[_ngcontent-%COMP%]{min-width:auto}.bottom-sheet-container[_ngcontent-%COMP%]{gap:8px}.bottom-sheet-container[_ngcontent-%COMP%] .header-content-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.bottom-sheet-container[_ngcontent-%COMP%] .header-content-container[_ngcontent-%COMP%] .small-screen-ui-progress-bar[_ngcontent-%COMP%], .bottom-sheet-container[_ngcontent-%COMP%] .header-content-container[_ngcontent-%COMP%] .prompt-text[_ngcontent-%COMP%], .bottom-sheet-container[_ngcontent-%COMP%] .header-content-container[_ngcontent-%COMP%] .session-cleanup-description[_ngcontent-%COMP%]{margin-top:8px}.bottom-sheet-container[_ngcontent-%COMP%] .content-rating[_ngcontent-%COMP%]{margin-top:16px}"],data:{animation:[(0,Ks.hZ)("loadingAnimation",[(0,Ks.kY)("void => SmallScreenFadeIn",[(0,Ks.iF)({opacity:"0"}),(0,Ks.i0)("0.3s ease-out",(0,Ks.iF)({opacity:"1"}))]),(0,Ks.kY)("SmallScreenFadeIn => void",[(0,Ks.iF)({opacity:"1"}),(0,Ks.i0)("0.3s ease-in",(0,Ks.iF)({opacity:"0"}))]),(0,Ks.kY)("* => *",[(0,Ks.iF)({opacity:"0"}),(0,Ks.i0)("0.3s ease-out",(0,Ks.iF)({opacity:"1"}))])])]}}),Ke})();var Qa=function(j){return j.Determinate="determinate",j.InDeterminate="indeterminate",j}(Qa||{});let Yc=(()=>{var j;class Ke{constructor(C,w,Q){this.loggingService=C,this.lcarsService=w,this.logger=this.loggingService.getLogger("gfn/content-rating"),this.fetchRatingInfoStream=Q.createStream(me=>this.fetchRatingInfo(me))}getCurrentRating(C,w){return this.fetchRatingInfoStream.get$(C).pipe((0,nt.ZZ)(Q=>{if((0,a.isNil)(Q)||(0,a.isNil)(Q.ratings))return(0,Ut.$)(`ratingInfo is ${JSON.stringify(Q)}`);const me=Q.ratings.find(bt=>bt.categoryKey===w);return(0,a.isNil)(me)?(this.logger.info("no rating found for this rating category:",w),(0,it.of)(null)):(0,it.of)({rating:me,ratingSystem:Q.label,displayInterval:Q.displayInterval})}))}getContentDescriptors(C,w){return this.fetchRatingInfoStream.get$(C).pipe((0,nt.ZZ)(Q=>{if((0,a.isNil)(Q)||(0,a.isEmpty)(Q))return(0,Ut.$)(`ratingInfo is ${JSON.stringify(Q)}`);if((0,a.isNil)(Q.contentDescriptors))return this.logger.info("no content descriptors field"),(0,it.of)([]);let me=Q.contentDescriptors.filter(bt=>(0,a.includes)(w,bt.key));me=(0,a.sortBy)(me,["sortOrder"]);const Ye=me.map(bt=>bt.label);return(0,it.of)(Ye)}))}getInteractiveElements(C,w){return this.fetchRatingInfoStream.get$(C).pipe((0,nt.ZZ)(Q=>{if((0,a.isNil)(Q)||(0,a.isEmpty)(Q))return(0,Ut.$)(`ratingInfo is ${JSON.stringify(Q)}`);if((0,a.isNil)(Q.interactiveElements))return this.logger.info("no interactive elements field"),(0,it.of)([]);let me=Q.interactiveElements.filter(bt=>(0,a.includes)(w,bt.key));me=(0,a.sortBy)(me,["sortOrder"]);const Ye=me.map(bt=>bt.label);return(0,it.of)(Ye)}))}fetchRatingInfo(C,w){return this.lcarsService.getStaticAppData().pipe((0,wt.T)(Q=>(Q?.ratingDefinitions).find(Ye=>Ye.ratingSystem===C)))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(yt),c.KVO(xe._d))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();class Yh{static resizeObserver(Ke,we){let C=null;return new m.c(Q=>{let me=!0;return C=new ResizeObserver(Ye=>{const bt=Ye[0].contentRect.width;me&&Q.next(Ye[0].contentRect.height<=we.maxHeight&&bt<=we.maxWidth&&bt>we.minWidth)}),C.observe(Ke),()=>{me=!1,C?.unobserve(Ke)}})}static onResize(Ke){return new m.c(we=>{let C=!0;const w=new ResizeObserver(Q=>{C&&we.next(Q[0])});return w.observe(Ke),()=>{C=!1,w?.unobserve(Ke)}})}}const zh=j=>({"analysis-done":j});function ym(j,Ke){1&j&&c.nrm(0,"div",6),2&j&&c.Y8G("@networkTestAnalyzerAnimation",void 0)}function Ug(j,Ke){if(1&j&&c.nrm(0,"gfn-small-screen-ui",7),2&j){const we=c.XpG();c.Y8G("showHeaderSection",!we.isAnalysisDone)("canShowRating",we.canShowRating)("loadingScreensData",we.loadingScreensData)("contentRatingData",we.contentRatingData)}}function Ip(j,Ke){if(1&j&&(c.j41(0,"div",16)(1,"span"),c.EFF(2),c.nI1(3,"translate"),c.k0s()()),2&j){const we=c.XpG(2);c.Y8G("@networkTestAnalyzerAnimation",void 0),c.R7$(2),c.SpI("",c.bMT(3,2,we.loadingScreensData.loadingText),"...")}}function pu(j,Ke){if(1&j&&(c.j41(0,"div",17),c.nrm(1,"mat-progress-bar",18),c.k0s()),2&j){const we=c.XpG(2);c.Y8G("@networkTestAnalyzerAnimation",void 0),c.R7$(),c.Y8G("mode",we.loadingScreensData.progressBar)}}function zc(j,Ke){if(1&j&&c.nrm(0,"gfn-content-rating",19),2&j){const we=c.XpG(2);c.Y8G("ratingLogoUrl",we.contentRatingData.ratingLogoUrl)("ratingClass",we.contentRatingData.ratingClass)("contentDescriptors",we.contentRatingData.contentDescriptors)("interactiveElements",we.contentRatingData.interactiveElements)}}function Kh(j,Ke){1&j&&(c.j41(0,"div")(1,"span",20),c.EFF(2),c.nI1(3,"translate"),c.k0s(),c.nrm(4,"mat-icon",21),c.k0s()),2&j&&(c.R7$(2),c.JRh(c.bMT(3,1,"setup.guestApp.poweredBy")))}function Xh(j,Ke){if(1&j&&(c.j41(0,"div",8),c.DNE(1,Ip,4,4,"div",9)(2,pu,2,2,"div",10),c.j41(3,"div",11),c.DNE(4,zc,1,4,"gfn-content-rating",12),c.k0s(),c.j41(5,"div",13)(6,"div",14),c.DNE(7,Kh,5,3,"div",15),c.k0s()()()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngIf",!we.isAnalysisDone),c.R7$(),c.Y8G("ngIf",!we.isAnalysisDone),c.R7$(),c.Y8G("ngClass",c.eq3(6,zh,we.isAnalysisDone)),c.R7$(),c.Y8G("ngIf",!we.isGuestAppFlow),c.R7$(),c.Y8G("@networkTestAnalyzerAnimation",void 0),c.R7$(2),c.Y8G("ngIf",!we.isWhiteLabelingEnabled)}}let Qd=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye){this.ratingService=Q,this.lcarsService=me,this.elementRef=Ye,this.isDefaultGameArtVisible=!0,this.isGuestAppFlow=!1,this.contentRatingData={ratingLogoUrl:"",ratingClass:"",contentDescriptors:[],interactiveElements:[]},this.isWhiteLabelingEnabled=!0,this.isAnalysisDone=!1,this.loadingScreensData={loadingText:"networkTest.networkTestHeader",progressBar:Qa.InDeterminate},this.isSmallScreen=!1,this.canShowRating=!0,this.logger=C.getLogger("NetworkAnalyzerComponent"),this.isGuestAppFlow=w.isGuestAppFlow(),this.isGuestAppFlow&&(this.isWhiteLabelingEnabled=w.isWhiteLabelingEnabled()),this.destroy$=new p.B7}ngOnInit(){this.isAnalysisDone=this.data?.isAnalysisDone,this.appMetadata$=this.lcarsService.getMetadataByCmsId(this.data?.cmsId).pipe((0,Bo.t)()),this.appMetadata$.pipe((0,nt.ZZ)(C=>this.ratingService.getCurrentRating(C.contentRatings.type,C.contentRatings.categoryKey)),(0,wt.T)(C=>{this.contentRatingData.ratingLogoUrl=C.rating.largeImageUrl,this.contentRatingData.ratingClass=C.rating.label}),(0,wn.$)()).subscribe(Mt.l,C=>this.logger.error("failed to fetch rating info",C)),this.appMetadata$.pipe((0,nt.ZZ)(C=>this.ratingService.getContentDescriptors(C.contentRatings.type,C.contentRatings.contentDescriptorKeys)),(0,wt.T)(C=>this.contentRatingData.contentDescriptors=C),(0,wn.$)()).subscribe(Mt.l,C=>this.logger.error("failed to fetch contentDescriptors",C)),this.appMetadata$.pipe((0,nt.ZZ)(C=>this.ratingService.getInteractiveElements(C.contentRatings.type,C.contentRatings.interactiveElementKeys)),(0,wt.T)(C=>this.contentRatingData.interactiveElements=C),(0,wn.$)()).subscribe(Mt.l,C=>this.logger.error("failed to fetch interactiveElements",C))}ngAfterViewInit(){Yh.resizeObserver(this.elementRef.nativeElement,{minWidth:T.rX.MaxS1Width,maxHeight:T.Oh,maxWidth:T.rX.MaxS3Width}).pipe((0,mo.F)(),(0,h.Q)(this.destroy$)).subscribe(C=>{this.logger.info("Is small screen device: ",C),this.isSmallScreen=C},C=>{this.logger.error("Resize Observer error: ",C.toString())})}ngOnChanges(){this.isAnalysisDone=this.data?.isAnalysisDone,this.logger.info("isAnalysisDone changed: ",this.data?.isAnalysisDone)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(tt.x),c.rXU(Yc),c.rXU(yt),c.rXU(c.aKT))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-test-analyzer"]],inputs:{data:"data"},features:[c.OA$],decls:6,vars:3,consts:[["class","analyzer-ui-scrim depth-lowest",4,"ngIf"],[3,"showHeaderSection","canShowRating","loadingScreensData","contentRatingData",4,"ngIf"],["fxLayout","column","fxFlex","",1,"depth-middle","analyzer-ui-container"],[1,"analyzer-ui-top-image"],["src","shared/assets/img/DefaultStreamerBackgroundArt.jpg",1,"game-art"],["class","analyzer-ui-full-scrollable-container","fxLayout","column","fxFlex","",4,"ngIf"],[1,"analyzer-ui-scrim","depth-lowest"],[3,"showHeaderSection","canShowRating","loadingScreensData","contentRatingData"],["fxLayout","column","fxFlex","",1,"analyzer-ui-full-scrollable-container"],["class","analyzer-ui-header",4,"ngIf"],["class","analyzer-ui-progress-bar",4,"ngIf"],[1,"analyzer-ui-primary-content-scrollable-container",3,"ngClass"],[3,"ratingLogoUrl","ratingClass","contentDescriptors","interactiveElements",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start",1,"analyzer-ui-secondary-content-container"],[1,"analyzer-ui-secondary-content"],[4,"ngIf"],[1,"analyzer-ui-header"],[1,"analyzer-ui-progress-bar"],[3,"mode"],[3,"ratingLogoUrl","ratingClass","contentDescriptors","interactiveElements"],[1,"no-wrap","font-sub3"],["svgIcon","nvidia-logo-horiz-rgb-wht-for-screen",1,"poweredByIcon"]],template:function(C,w){1&C&&(c.DNE(0,ym,1,1,"div",0)(1,Ug,1,4,"gfn-small-screen-ui",1),c.j41(2,"div",2)(3,"div",3),c.nrm(4,"img",4),c.k0s(),c.DNE(5,Xh,8,8,"div",5),c.k0s()),2&C&&(c.Y8G("ngIf",!w.isSmallScreen),c.R7$(),c.Y8G("ngIf",w.isSmallScreen),c.R7$(4),c.Y8G("ngIf",!w.isSmallScreen))},styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_nghost-%COMP%]{--full-scrollable-container-left-margin: 40px}.analyzer-ui-container[_ngcontent-%COMP%]{background-color:transparent;overflow:hidden;position:relative}.analyzer-ui-scrim[_ngcontent-%COMP%]{background:linear-gradient(90deg,#000000e6,#000000d9 29%,#000000c9 42%,#000000b3 54%,#0009,#0000007a 74%,#00000054 82%,#0000003b 87%,#00000012 95%,#0000);width:100%;height:100%;position:absolute}.isRtl[_nghost-%COMP%] .analyzer-ui-scrim[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-scrim[_ngcontent-%COMP%]{background:linear-gradient(270deg,#000000e6,#000000d9 29%,#000000c9 42%,#000000b3 54%,#0009,#0000007a 74%,#00000054 82%,#0000003b 87%,#00000012 95%,#0000)}.analyzer-ui-top-image[_ngcontent-%COMP%]{display:none}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{height:100%;width:400px}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:var(--full-scrollable-container-left-margin)}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:var(--full-scrollable-container-left-margin)}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:var(--full-scrollable-container-left-margin)}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:var(--full-scrollable-container-left-margin)}.analyzer-ui-header[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:34px;line-height:48px;letter-spacing:0;font-weight:700;margin-top:48px}.tv-view[_ngcontent-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%]{font-size:68px;line-height:96px}.analyzer-ui-header[_ngcontent-%COMP%] .eta-info[_ngcontent-%COMP%]{margin-top:16px}.analyzer-ui-progress-bar[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:24px}.analyzer-ui-primary-content-scrollable-container[_ngcontent-%COMP%]{height:100%;overflow-y:auto}.analyzer-ui-primary-content-scrollable-container.analysis-done[_ngcontent-%COMP%]{margin-top:24px}.analyzer-ui-secondary-content-container[_ngcontent-%COMP%]{width:calc(100vw - var(--full-scrollable-container-left-margin));margin-top:24px;margin-bottom:24px}.analyzer-ui-secondary-content[_ngcontent-%COMP%]{width:400px}.analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{width:82px;height:15px;vertical-align:middle}.isLtr[_nghost-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{margin-left:10px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:10px}.isRtl[_nghost-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{margin-right:10px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%] .poweredByIcon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:10px}.tv-view[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;width:720px}.tv-view[_nghost-%COMP%] .analyzer-ui-scrim[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:1080px}.tv-view[_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{width:720px}@media (max-width: 479px){.analyzer-ui-scrim[_ngcontent-%COMP%]{background:#191919!important}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--full-scrollable-container-left-margin: 24px;--full-scrollable-container-right-padding: 24px;overflow-y:auto;overflow-x:hidden;width:auto}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:var(--full-scrollable-container-left-margin)}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:var(--full-scrollable-container-left-margin)}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:var(--full-scrollable-container-left-margin)}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:var(--full-scrollable-container-left-margin)}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{padding-right:var(--full-scrollable-container-right-padding)}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:var(--full-scrollable-container-right-padding)}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{padding-left:var(--full-scrollable-container-right-padding)}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:var(--full-scrollable-container-right-padding)}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%]{width:auto}.analyzer-ui-header[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:24px;line-height:32px;letter-spacing:0;font-weight:500;margin-top:24px}.tv-view[_ngcontent-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%]{font-size:48px;line-height:64px}.analyzer-ui-top-image[_ngcontent-%COMP%]{display:block}.analyzer-ui-top-image[_ngcontent-%COMP%] .game-art[_ngcontent-%COMP%]{width:100vw;height:auto}.analyzer-ui-primary-content-scrollable-container[_ngcontent-%COMP%]{overflow-y:initial;height:initial}.analyzer-ui-secondary-content-container[_ngcontent-%COMP%]{flex-direction:column!important;width:100%}}@media (min-width: 480px) and (max-width: 719px){.analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:100%}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{width:83.33%}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:32px}}@media (min-width: 720px) and (max-width: 959px){.analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:100%}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{width:62.5%}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:32px}}@media (min-width: 960px) and (max-width: 1439px){.analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:50%}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{width:50%}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:40px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:40px}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:40px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:40px}}@media (min-width: 1440px) and (max-width: 1919px),(min-width: 1920px){.analyzer-ui-scrim[_ngcontent-%COMP%]{max-width:50%}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{width:33%}.isLtr[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-left:40px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:40px}.isRtl[_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{margin-right:40px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:40px}}@media screen and (min-width: 480px) and (max-width: 719px),screen and (min-width: 481px) and (max-height: 431px){.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;width:auto;display:block!important}.analyzer-ui-full-scrollable-container[_ngcontent-%COMP%] .analyzer-ui-secondary-content[_ngcontent-%COMP%]{width:400px}.analyzer-ui-header[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:24px;line-height:32px;letter-spacing:0;font-weight:500;margin-top:24px}.tv-view[_ngcontent-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .analyzer-ui-header[_ngcontent-%COMP%]{font-size:48px;line-height:64px}.analyzer-ui-progress-bar[_ngcontent-%COMP%]{width:400px}.isLtr[_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .analyzer-ui-progress-bar[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.analyzer-ui-primary-content-scrollable-container[_ngcontent-%COMP%]{overflow-y:hidden;height:initial}.analyzer-ui-secondary-content-container[_ngcontent-%COMP%]{flex-direction:column!important;width:100%}}"],data:{animation:[(0,Ks.hZ)("networkTestAnalyzerAnimation",[(0,Ks.kY)("void => *",[(0,Ks.iF)({opacity:"0"}),(0,Ks.i0)("0.3s ease-in",(0,Ks.iF)({opacity:"1"}))]),(0,Ks.kY)("* => void",[(0,Ks.iF)({opacity:"1"}),(0,Ks.i0)("0.3s ease-out",(0,Ks.iF)({opacity:"0"}))])])]}}),Ke})();var bl=d(68477);const Dc=j=>({troubleshootLink:j}),Ap=j=>({routersLink:j}),Dp=j=>({serversLink:j});function mu(j,Ke){if(1&j&&(c.j41(0,"span",8),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j){const we=c.XpG().$implicit;c.R7$(),c.JRh(c.bMT(2,1,we.text))}}function Rc(j,Ke){if(1&j&&(c.nrm(0,"span",9),c.nI1(1,"translate")),2&j){const we=c.XpG().$implicit,C=c.XpG();c.Y8G("innerHTML",c.i5U(1,1,C.tipLinkString,c.eq3(4,Dp,'href="'+we.linkUrl+'" class="font-body2-link"')),c.npT)}}function Ru(j,Ke){if(1&j&&(c.j41(0,"div")(1,"div",4),c.nrm(2,"span",5),c.DNE(3,mu,3,3,"span",6)(4,Rc,2,6,"span",7),c.k0s()()),2&j){const we=Ke.$implicit;c.R7$(3),c.Y8G("ngIf",!we.hasLink),c.R7$(),c.Y8G("ngIf",we.hasLink)}}let Zh=(()=>{var j;class Ke{constructor(C,w,Q,me){this.localeService=w,this.networkTestService=Q,this.telemetryUtil=me,this.tipLinkString="networkTest.farAwayFromServers",this.logger=C.getLogger("libraries/network-test/NetworkTipsComponent"),this.destroy$=new p.B7}ngOnInit(){this.updateTips(),this.networkTestService.networkLinks.pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.troubleshootLink=C[0],this.troubleshootShortUrl=C[1],this.routersLink=C[2],this.routersShortUrl=C[3]})}ngOnChanges(){this.updateTips()}updateTips(){this.logger.info("update network tips, network conditions: ",this.networkConditionsData),(0,a.isNil)(this.networkConditionsData)||(this.networkConditions=[],this.trobleshootTips=[],this.getNetworkConditions(),this.getTroubleshootTips())}getNetworkConditions(){this.logger.info("Current network conditions passed from parent component: ",this.networkConditionsData),this.networkConditionsData.isVpn&&this.networkConditions.push(mi.VPN),(0,a.isNil)(this.networkConditionsData.zoneOverride)||this.networkConditions.push(mi.ZoneOverride),(0,a.isNil)(this.networkConditionsData.latency)||(this.networkConditionsData.latency>150&&this.networkConditions.push(mi.Latency_more_150),this.networkConditionsData.latency>80&&this.networkConditionsData.latency<=150&&this.networkConditions.push(mi.Latency_more_80)),(0,a.isNil)(this.networkConditionsData.bandwidth)||this.networkConditionsData.bandwidth<15&&this.networkConditions.push(mi.Bandwidth_less_15),(0,a.isNil)(this.networkConditionsData.networkType)||(this.networkConditionsData.networkType===l.Sd.WiFi2_4&&this.networkConditions.push(mi.Wifi_2_4),(this.networkConditionsData.networkType===l.Sd.WiFi2_4||this.networkConditionsData.networkType===l.Sd.WiFi5_0||this.networkConditionsData.networkType===l.Sd.WiFi6_0||this.networkConditionsData.networkType===l.Sd.WiFiUnknown)&&this.networkConditions.push(mi.Wifi)),this.networkConditionsData.isOffline&&this.networkConditions.push(mi.Offline),this.logger.info("Current network conditions are: ",this.networkConditions)}getTroubleshootTips(){const C=[],w=this.networkConditionsData.isOffline?2:this.networkConditionsData.isVpn?1:3;this.networkConditions.forEach(Q=>{const me=(0,a.cloneDeep)($n.find(Ye=>Ye.condition===Q));me.hasLink&&this.localeService.localeChanged.pipe((0,wn.$)()).subscribe(Ye=>{me.linkUrl=`${At.r7.BaseUrl}${Ye}&page=${me.linkUrl}`}),C.push(me)}),$n.forEach(Q=>{Q.condition===mi.Any&&C.push(Q)}),C.sort((Q,me)=>Q.priority-me.priority),this.networkConditionsData.isOffline&&(C[1]=$n.find(Q=>"networkTest.restartRouter"===Q.text)),this.trobleshootTips=C.slice(0,w),this.logger.info("Show top trobleshoot tips for current network: ",this.trobleshootTips)}onClickTroubleshoot(){this.networkTestService.sendNetworkTroubleshootClickedTelemetry(this.telemetryUtil.getClientType())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(l.iH),c.rXU(io),c.rXU(Pt.jgD))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-network-tips"]],inputs:{networkConditionsData:"networkConditionsData"},features:[c.OA$],decls:8,vars:15,consts:[["fxLayout","column","fxLayoutAlign","space-between start",1,"network-tips","tips-results"],[4,"ngFor","ngForOf"],["cdkMonitorSubtreeFocus",""],[1,"font-body3","help-links",3,"click","innerHTML","shortUrl"],["fxLayout","row","fxLayoutAlign","start start"],[1,"bullet-unordered-tips","font-body2"],["class","font-body2",4,"ngIf"],["cdkMonitorSubtreeFocus","","class","font-body2",3,"innerHTML",4,"ngIf"],[1,"font-body2"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"div"),c.DNE(2,Ru,5,2,"div",1),c.k0s(),c.j41(3,"div",2)(4,"span",3),c.nI1(5,"translate"),c.bIt("click",function(){return w.onClickTroubleshoot()}),c.k0s(),c.j41(6,"span",3),c.nI1(7,"translate"),c.bIt("click",function(){return w.onClickTroubleshoot()}),c.k0s()()()),2&C&&(c.R7$(2),c.Y8G("ngForOf",w.trobleshootTips),c.R7$(2),c.Y8G("innerHTML",c.i5U(5,5,"networkTest.viewMoreTroubleshootTips",c.eq3(11,Dc,'href="'+w.troubleshootLink+'" class="font-body3-link", target="_blank"')),c.npT)("shortUrl",w.troubleshootShortUrl),c.R7$(2),c.Y8G("innerHTML",c.i5U(7,8,"networkTest.checkRecommendedRouters",c.eq3(13,Ap,'href="'+w.routersLink+'" class="font-body3-link"')),c.npT)("shortUrl",w.routersShortUrl))},dependencies:[x.Sq,x.bT,V.DJ,V.sA,Y.r,ee.e,je.vR,Ze.D9],styles:['[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.network-tips[_ngcontent-%COMP%]{height:181px;padding:24px;overflow-y:auto}.tips-results[_ngcontent-%COMP%]{background-color:#0000004d}.help-links[_ngcontent-%COMP%]{margin-top:24px}.bullet-unordered-tips[_ngcontent-%COMP%]:before{content:"-"}.isLtr[_nghost-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before, .isLtr [_nghost-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before, .isRtl [_nghost-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .bullet-unordered-tips[_ngcontent-%COMP%]:before{--dummy4: 0;margin-left:8px}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.network-tips[_ngcontent-%COMP%]{height:unset;background-color:unset}}.tv-view[_nghost-%COMP%] .network-tips[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .network-tips[_ngcontent-%COMP%]{height:300px;padding:38px}']}),Ke})();var Jd=d(54676);c.wjB(Jl,[x.YU,x.bT,x.ux,x.e1,V.DJ,V.sA,V.G2,D.PW,bl.mq,bl.T8,Zh,G.R,Jd.sd,K.D,Ns,fe,jo,Sc,kg,Qd],[Ze.D9]),c.wjB(Vl,[V.G2,$.D,Jl],[]),c.wjB(fe,[F.An,x.YU,x.Sq,x.bT,V.DJ,V.sA,V.UI,D.PW,Du],[Ze.D9]),c.wjB(jo,[F.An,k.iV,x.bT,Ze.Mm,V.DJ,V.sA,V.UI,Y.r,ee.e,Du,pa],[Ze.D9]),c.wjB(Qd,[F.An,x.YU,x.bT,V.DJ,V.sA,V.UI,D.PW,Ne.HM,Ac,fh],[Ze.D9]),c.wjB(Pe,[x.YU,x.bT,x.ux,x.e1,V.DJ,V.sA,D.PW,bl.mq,bl.T8,Zh,G.R,Jd.sd,fe,jo,Sc,kg],[Ze.D9]);var qd=d(93181),Jh=d(26114),bm=d(18587),Bg=d(80561);const qh=["welcomeContentContainer"],eu=["welcomeContent"],Rp=j=>({privacyCenterLink:j}),fu=j=>({privacyPolicyLink:j}),eg=j=>({termsOfUseLink:j}),Lu=j=>({"anon-user":j}),sf=j=>({"gray-out":j}),Gg=j=>({cookiePolicyLink:j});function _h(j,Ke){if(1&j&&(c.nrm(0,"h1",15),c.nI1(1,"translate")),2&j){const we=c.XpG();c.Y8G("innerHTML",c.i5U(1,1,"oobe.gfnVersionText",we.gfnVersionText),c.npT)}}function _u(j,Ke){if(1&j&&(c.j41(0,"div",16),c.nrm(1,"mat-icon",17),c.k0s()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngClass",c.eq3(1,sf,!we.turnOnUpIndicator))}}function ac(j,Ke){if(1&j&&(c.nrm(0,"h1",15),c.nI1(1,"translate")),2&j){const we=c.XpG();c.Y8G("innerHTML",c.i5U(1,1,"oobe.gfnVersionText",we.gfnVersionText),c.npT)}}function Pm(j,Ke){if(1&j&&(c.nrm(0,"p",10),c.nI1(1,"translate")),2&j){const we=c.XpG();c.Y8G("innerHTML",c.i5U(1,2,"oobe.oobeCookiePolicyText",c.eq3(5,Gg,we.cookiePolicyLink)),c.npT)("shortUrl",we.cookiePolicyShortUrl)}}function yc(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",18),c.nrm(1,"mat-divider"),c.j41(2,"mat-checkbox",19),c.mxI("ngModelChange",function(w){c.eBV(we);const Q=c.XpG();return c.DH7(Q.anonUserConsent,w)||(Q.anonUserConsent=w),c.Njj(w)}),c.EFF(3),c.nI1(4,"translate"),c.k0s()()}if(2&j){const we=c.XpG();c.R7$(2),c.R50("ngModel",we.anonUserConsent),c.R7$(),c.SpI(" ",c.bMT(4,2,"oobe.oobeAnonUserConsent")," ")}}function Ra(j,Ke){if(1&j&&(c.j41(0,"div",16),c.nrm(1,"mat-icon",20),c.k0s()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngClass",c.eq3(1,sf,!we.turnOnDownIndicator))}}let Vg=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi){this.oobeService=w,this.telemetryService=Q,this.userConsentService=me,this.oobeTelemetryService=Ye,this.gfnSdkService=bt,this.guestModeHelperService=cn,this.spatialNavigationService=Wn,this.redirectService=xi,this.gfnVersionText={productVersion:""},this.privacyPolicyShortUrl=At.lp[At.r7.PrivacyPolicy],this.cookiePolicyShortUrl=At.lp[At.r7.CookiePolicy],this.termsOfUseShortUrl=At.lp[At.r7.TermsConditions],this.privacyCenterShortUrl=At.lp[At.r7.PrivacyCenter],this.welcomeContentViewed=!0,this.welcomeContentVisible=!0,this.anonUserConsent=!1,this.turnOnUpIndicator=!1,this.turnOnDownIndicator=!1,this.agreeButtonClick=new c.bkB,this.logger=C.getLogger("OobeWelcomeComponent"),this.isBrowserPlatform=l.zk.isBrowserPlatform(),this.isAnonUser$=this.guestModeHelperService.isGuestMode?(0,it.of)(!1):this.gfnSdkService.getIsAnonymousUser(),this.destroy$=new p.B7}ngOnInit(){this.gfnVersionText.productVersion=this.oobeService.getProductVersion,this.parentScreen=this.telemetryService.getScreen(),this.telemetryService.setScreen(Pt.MCB.ScreenOobeWelcome);const C=this.redirectService.getRedirectUrl(At.r7.PrivacyPolicy).pipe((0,g.s)(1)),w=this.redirectService.getRedirectUrl(At.r7.TermsConditions).pipe((0,g.s)(1)),Q=this.redirectService.getRedirectUrl(At.r7.CookiePolicy).pipe((0,g.s)(1)),me=this.redirectService.getRedirectUrl(At.r7.PrivacyCenter).pipe((0,g.s)(1));(0,Vn.yU)(C,w,Q,me).pipe((0,h.Q)(this.destroy$)).subscribe(([Ye,bt,cn,Wn])=>{const xi="font-body2-link";this.privacyPolicyLink=`href="${Ye}" class="${xi}"`,this.cookiePolicyLink=`href="${cn}" class="${xi}"`,this.termsOfUseLink=`href="${bt}" class="${xi} no-wrap"`,this.privacyCenterLink=`href="${Wn}" class="${xi}"`}),this.userConsentService.getAnonUserConsentData().pipe((0,h.Q)(this.destroy$)).subscribe(Ye=>{this.anonUserConsent=Ye.userConsent?.technical===P.Rg.Full})}ngAfterViewInit(){this.spatialNavigationService.setStartingPoint(this.welcomeContentElement.nativeElement.firstElementChild),Yh.onResize(this.welcomeContentElement.nativeElement).pipe((0,h.Q)(this.destroy$)).subscribe(C=>this.checkIfWelcomeContentViewed())}onScrollWelcomeContent(){this.checkIfWelcomeContentViewed()}onOrientationChange(){this.welcomeContentContainerElement.nativeElement.scrollTop=0}checkIfWelcomeContentViewed(){const C=this.welcomeContentContainerElement.nativeElement.getBoundingClientRect(),w=this.welcomeContentElement.nativeElement.getBoundingClientRect(),Q=C.bottom,bt=w.bottom;this.welcomeContentVisible=bt<=Q&&w.top>=C.top,this.welcomeContentViewed=bt<=Q,this.tvMode&&(this.turnOnUpIndicator=!(this.welcomeContentVisible||0===this.welcomeContentContainerElement.nativeElement.scrollTop),this.turnOnDownIndicator=!this.welcomeContentVisible&&!this.welcomeContentViewed)}agreeAndContinue(){let C=null,w=null;this.logger.info("oobe, welcome screen - agree and continue clicked"),this.saveTermsSubscription=(0,qd.p)({saveTouResponse:this.oobeService.saveTermsOfUseAcceptedVersion(),isAnonUser:this.isAnonUser$}).pipe((0,on.M)(Q=>{this.logger.info("Success writing accepted version"+Q.saveTouResponse),this.oobeTelemetryService.oobeCompleted=!0}),(0,nt.ZZ)(Q=>(C=Q.isAnonUser,Q.isAnonUser?(this.logger.info("oobe welcome setAnonUserConsentData. TechnicalConsent="+this.anonUserConsent),w=this.anonUserConsent?P.Xj:P.bC,this.userConsentService.setAnonUserConsentData(w)):(this.logger.event("oobe welcome setDefaultConsentData"),w=this.guestModeHelperService.isGuestMode?P.FE:P.bC,this.userConsentService.setDefaultConsentData(w))))).pipe((0,g.s)(1)).subscribe(()=>{this.logger.info("Successfully set default consent data"),this.oobeTelemetryService.sendOobeAcceptEvent(Pt.uKc.OobeAgreeAndContinue,C,w.technical),this.agreeButtonClick.emit()},Q=>{this.logger.error("Failed to set default consent data",Q)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.saveTermsSubscription&&this.saveTermsSubscription.unsubscribe(),this.telemetryService.setScreen(this.parentScreen)}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(Jh.Z),c.rXU(P.H0),c.rXU(bm.F),c.rXU(Bg.M),c.rXU(Qr.DL),c.rXU(tt.x),c.rXU(T.ED),c.rXU(At.Q5))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-oobe-welcome"]],viewQuery:function(C,w){if(1&C&&(c.GBs(qh,5),c.GBs(eu,5)),2&C){let Q;c.mGM(Q=c.lsd())&&(w.welcomeContentContainerElement=Q.first),c.mGM(Q=c.lsd())&&(w.welcomeContentElement=Q.first)}},hostBindings:function(C,w){1&C&&c.bIt("orientationchange",function(){return w.onOrientationChange()},!1,c.tSv)},inputs:{tvMode:"tvMode"},outputs:{agreeButtonClick:"agreeButtonClick"},decls:33,vars:44,consts:[["welcomeContentContainer",""],["welcomeContent",""],["fxFlex","","fxLayout","column","nvSpatialNavigationContainer","","nvTrapFocus","",1,"container"],["fxFlex","1 0 0",1,"welcome-header-container"],[1,"header-logo"],["svgIcon","gfnBranding"],["class","font-header6",3,"innerHTML",4,"ngIf"],["class","indicator-icon","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","8 0 0","nvLongPressScroller","","orientation","vertical","reachBoundary","end",1,"welcome-content-container",3,"scroll"],[1,"welcome-text","font-body2"],["cdkMonitorSubtreeFocus","",3,"innerHTML","shortUrl"],["cdkMonitorSubtreeFocus","",3,"innerHTML","shortUrl",4,"ngIf"],["fxFlex","none","fxLayout","column","class","anon-user-consent-container nv-hig",4,"ngIf"],[1,"welcome-footer-container",3,"ngClass"],["mat-raised-button","","id","agreeAndContinueButton",1,"oobe-action-button","font-button2",3,"click","nvFocusRipple","disabled"],[1,"font-header6",3,"innerHTML"],["fxLayout","row","fxLayoutAlign","center center",1,"indicator-icon"],["svgIcon","carrot_up",3,"ngClass"],["fxFlex","none","fxLayout","column",1,"anon-user-consent-container","nv-hig"],["fxLayoutFill","",1,"anon-user-consent-checkbox","font-body2",3,"ngModelChange","ngModel"],["svgIcon","carrot_down",3,"ngClass"]],template:function(C,w){if(1&C){const Q=c.RV6();c.j41(0,"div",2)(1,"div",3)(2,"div",4),c.nrm(3,"mat-icon",5),c.k0s(),c.DNE(4,_h,2,4,"h1",6)(5,_u,2,3,"div",7),c.k0s(),c.j41(6,"div",8,0),c.bIt("scroll",function(){return c.eBV(Q),c.Njj(w.onScrollWelcomeContent())}),c.DNE(8,ac,2,4,"h1",6),c.j41(9,"div",9,1)(11,"p")(12,"span"),c.EFF(13),c.nI1(14,"translate"),c.k0s()(),c.j41(15,"p"),c.nrm(16,"span",10),c.nI1(17,"translate"),c.k0s(),c.j41(18,"p"),c.nrm(19,"span",10),c.nI1(20,"translate"),c.k0s(),c.DNE(21,Pm,2,7,"p",11),c.j41(22,"p"),c.nrm(23,"span",10),c.nI1(24,"translate"),c.k0s()()(),c.DNE(25,yc,5,4,"div",12),c.nI1(26,"async"),c.j41(27,"div",13),c.nI1(28,"async"),c.DNE(29,Ra,2,3,"div",7),c.j41(30,"button",14),c.bIt("click",function(){return c.eBV(Q),c.Njj(w.agreeAndContinue())}),c.EFF(31),c.nI1(32,"translate"),c.k0s()()()}2&C&&(c.R7$(4),c.Y8G("ngIf",!w.tvMode),c.R7$(),c.Y8G("ngIf",w.tvMode),c.R7$(),c.xc7("overflow-y",w.welcomeContentVisible?"hidden":"auto"),c.R7$(2),c.Y8G("ngIf",w.tvMode),c.R7$(5),c.JRh(c.bMT(14,19,"oobe.oobeStatement")),c.R7$(3),c.Y8G("innerHTML",c.i5U(17,21,"oobe.oobeText",c.eq3(36,Rp,w.privacyCenterLink)),c.npT)("shortUrl",w.privacyCenterShortUrl),c.R7$(3),c.Y8G("innerHTML",c.i5U(20,24,"oobe.oobePrivacyText",c.eq3(38,fu,w.privacyPolicyLink)),c.npT)("shortUrl",w.privacyPolicyShortUrl),c.R7$(2),c.Y8G("ngIf",w.isBrowserPlatform),c.R7$(2),c.Y8G("innerHTML",c.i5U(24,27,"oobe.agreeToTermsOfUse",c.eq3(40,eg,w.termsOfUseLink)),c.npT)("shortUrl",w.termsOfUseShortUrl),c.R7$(2),c.Y8G("ngIf",c.bMT(26,30,w.isAnonUser$)),c.R7$(2),c.Y8G("ngClass",c.eq3(42,Lu,c.bMT(28,32,w.isAnonUser$))),c.R7$(2),c.Y8G("ngIf",w.tvMode),c.R7$(),c.Y8G("nvFocusRipple",!1)("disabled",!w.welcomeContentViewed),c.R7$(),c.SpI(" ",c.bMT(32,34,"oobe.agreeAndContinue")," "))},dependencies:[x.YU,x.bT,fn.BC,fn.vS,V.DJ,V.sA,V.UI,D.PW,k.iV,nn.NZ,R.q,F.An,G.R,Jd.tG,Y.r,K.D,ee.e,bo.Aq,ye,je.vR,x.Jj,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.container[_ngcontent-%COMP%]{outline:none}.welcome-header-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:14px;margin-bottom:14px}.welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:none}.header-logo[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.header-logo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:block;width:186px;height:56px}.welcome-text[_ngcontent-%COMP%]{color:#ffffffbf}.welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:24px;margin-top:14px;margin-bottom:14px}.welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{margin-top:0}.anon-user-consent-container[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden;margin-bottom:16px}.anon-user-consent-container[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%]{margin-bottom:24px}.welcome-footer-container[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:8px}.welcome-footer-container.anon-user[_ngcontent-%COMP%]{margin-top:36px}.welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{margin:8px 0;padding:0 8px;min-width:auto;height:36px;border:none;background-color:#393939;box-shadow:none}.isLtr[_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{float:right}html[dir=ltr][_ngcontent-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{--dummy0: 0;float:right}.isRtl[_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{float:left}html[dir=rtl][_ngcontent-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{--dummy0: 0;float:left}.welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[disabled][_ngcontent-%COMP%]{background-color:#393939;opacity:.38}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.container[_ngcontent-%COMP%]{width:100%;height:100%}.header-logo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:186px;height:auto}.welcome-footer-container[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;display:flex;align-items:center;justify-content:flex-end}}.tv-view[_nghost-%COMP%] .container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .container[_ngcontent-%COMP%]{margin:56px 88px 60px}.tv-view[_nghost-%COMP%] .header-logo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .header-logo[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:100px;width:auto}.tv-view[_nghost-%COMP%] .indicator-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .indicator-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:48px;width:48px}.tv-view[_nghost-%COMP%] .indicator-icon[_ngcontent-%COMP%] .mat-icon.gray-out[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .indicator-icon[_ngcontent-%COMP%] .mat-icon.gray-out[_ngcontent-%COMP%]{color:#ffffff14}.tv-view[_nghost-%COMP%] .welcome-header-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-header-container[_ngcontent-%COMP%]{margin-bottom:16px}.tv-view[_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]{width:1672px;height:587px}.tv-view[_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:0;margin-bottom:58px}.tv-view[_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .tv-view [_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ffffff29}.tv-view[_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-track, .tv-view [_nghost-%COMP%] .welcome-content-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#ffffff14}.tv-view[_nghost-%COMP%] .welcome-text[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-text[_ngcontent-%COMP%]{width:1200px}.tv-view[_nghost-%COMP%] .welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:inherit;margin-top:58px;margin-bottom:58px}.tv-view[_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin-bottom:0;flex:3 0 auto}.tv-view[_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .welcome-footer-container[_ngcontent-%COMP%] button.oobe-action-button[_ngcontent-%COMP%]{padding:0 32px;height:72px;width:-moz-fit-content;width:fit-content;align-self:center}"]}),Ke})();var vu=d(12860);const tu=(j,Ke)=>[j,Ke];function tg(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",15),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.closeClicked())}),c.j41(1,"mat-icon",16),c.EFF(2,"close"),c.k0s()()}}function ku(j,Ke){if(1&j&&(c.j41(0,"div",10)(1,"div",11)(2,"h1",12),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.j41(5,"div",13),c.DNE(6,tg,3,0,"button",14),c.k0s()()),2&j){const we=c.XpG();c.R7$(3),c.JRh(c.bMT(4,2,"common.gfn")),c.R7$(3),c.Y8G("ngIf",we.closeButtonVisible)}}function Nu(j,Ke){1&j&&c.nrm(0,"img",17)}let Kc=(()=>{var j;class Ke{constructor(C,w,Q){this.ecommerceService=w,this.spatialNavigationService=Q,this.primaryButtonClicked=new c.bkB,this.closeButtonClicked=new c.bkB,this.showLoadingOnContinue=!1,this.closeButtonVisible=!0,this.destroy$=new p.B7,this.closeButtonVisible=!C?.featureEnablement?.tvMode}ngOnInit(){this.dialogTitle="ecommerce.membershipUpdateProgressDialog.title",this.description=this.ecommerceService.isDayPassSubscription?"ecommerce.membershipUpdateProgressDialog.compactDialogDescription":"ecommerce.membershipUpdateProgressDialog.description"}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){const C=document.getElementsByClassName("membership-options-link"),w=C?.length>0?C[0]:void 0;w&&this.spatialNavigationService.onClick(w).pipe((0,h.Q)(this.destroy$)).subscribe(Q=>{Q&&this.ecommerceService.openUpgradeMemberShipPage(Ys.MCB.ScreenJoinGfnDialog,Io.MembershipUpdateProgressEcomUIState)})}continueClicked(){this.showLoadingOnContinue=!0,this.ecommerceService.refreshUsersEntitlement(),this.primaryButtonClicked.emit()}closeClicked(){this.closeButtonClicked.emit()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Mi.Vk),c.rXU(Ao),c.rXU(T.ED))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-membership-update-progress"]],inputs:{data:"data"},outputs:{primaryButtonClicked:"primaryButtonClicked",closeButtonClicked:"closeButtonClicked"},decls:18,vars:21,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","navigateAction","focus","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",4,"ngIf"],[1,"dialog-content"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","",1,"font-button2",3,"click"],["mat-raised-button","","nvProgressCircular","","nvAutoFocus","",1,"font-button2","mat-accent",3,"click","isVisible"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",1,"dialog-art"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.DNE(1,ku,7,4,"div",1),c.j41(2,"div",2),c.DNE(3,Nu,1,0,"img",3),c.j41(4,"div",4)(5,"h2",5),c.EFF(6),c.nI1(7,"translate"),c.k0s(),c.nrm(8,"span",6),c.nI1(9,"translate"),c.nI1(10,"trustAsHtml"),c.k0s()(),c.j41(11,"div",7)(12,"button",8),c.bIt("click",function(){return w.closeClicked()}),c.EFF(13),c.nI1(14,"translate"),c.k0s(),c.j41(15,"button",9),c.bIt("click",function(){return w.continueClicked()}),c.EFF(16),c.nI1(17,"translate"),c.k0s()()()),2&C&&(c.Y8G("ngClass",c.l_i(18,tu,w.data.isStreamerApp?"main-content-streamer":"main-content-mall",w.data.isCompactDialog?"compact-dialog-wrapper":"")),c.R7$(),c.Y8G("ngIf",!w.data.isStreamerApp&&!w.data.isCompactDialog),c.R7$(2),c.Y8G("ngIf",!w.data.isCompactDialog),c.R7$(3),c.JRh(c.bMT(7,8,w.dialogTitle)),c.R7$(2),c.Y8G("innerHTML",c.bMT(10,12,c.bMT(9,10,w.description)),c.npT),c.R7$(5),c.SpI(" ",c.bMT(14,14,"common.close")," "),c.R7$(2),c.Y8G("isVisible",w.showLoadingOnContinue),c.R7$(),c.SpI(" ",c.bMT(17,16,"common.continue")," "))},dependencies:[V.DJ,V.sA,V.G2,V.UI,D.PW,n.BI,F.An,k.iV,x.YU,x.bT,G.R,Y.r,Wo.N,ee.e,ta.q,bo.Aq,Ns,Re.O,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}"]}),Ke})();const nu=j=>[j];function ng(j,Ke){1&j&&(c.j41(0,"div",10),c.nrm(1,"div",11),c.k0s())}let md=(()=>{var j;class Ke{constructor(C){this.localeService=C,this.closeButtonClicked=new c.bkB,this.serverStatusShortUrl=At.lp[At.r7.GfnServerStatus]}ngOnInit(){this.localeSubscription=this.localeService.localeChanged.subscribe(C=>{this.serverStatusUrl=At.r7.BaseUrl+C+"&page="+At.r7.GfnServerStatus})}closeClicked(){this.closeButtonClicked.emit()}ngOnDestroy(){this.localeSubscription&&this.localeSubscription.unsubscribe()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.iH))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-membership-refresh-error"]],inputs:{data:"data"},outputs:{closeButtonClicked:"closeButtonClicked"},decls:17,vars:15,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","","fxLayout","column"],["fxLayoutAlign","center center",1,"dialog-art"],["fontSet","nv-custom-icons","fontIcon","icon-alert-circle_reg",1,"nv-custom-icons","membership-error-icon"],[1,"dialog-content","membership-error-text"],[1,"font-body2"],["target","_blank",1,"font-body2-link",3,"href","shortUrl"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","","nvAutoFocus","",1,"font-button1",3,"click"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","end center"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.DNE(1,ng,2,0,"div",1),c.j41(2,"div",2)(3,"div",3),c.nrm(4,"mat-icon",4),c.k0s(),c.j41(5,"div",5)(6,"h2",6),c.EFF(7),c.nI1(8,"translate"),c.k0s(),c.j41(9,"a",7),c.EFF(10),c.nI1(11,"translate"),c.k0s()()(),c.j41(12,"div",8)(13,"button",9),c.bIt("click",function(){return w.closeClicked()}),c.j41(14,"span"),c.EFF(15),c.nI1(16,"translate"),c.k0s()()()()),2&C&&(c.Y8G("ngClass",c.eq3(13,nu,w.data.isStreamerApp?"main-content-streamer":"main-content-mall")),c.R7$(),c.Y8G("ngIf",!w.data.isStreamerApp),c.R7$(6),c.JRh(c.bMT(8,7,"common.genericLoadError")),c.R7$(2),c.Y8G("href",w.serverStatusUrl,c.B4B)("shortUrl",w.serverStatusShortUrl),c.R7$(),c.SpI(" ",c.bMT(11,9,"common.viewServerStatus")," "),c.R7$(5),c.JRh(c.bMT(16,11,"common.close")))},dependencies:[V.DJ,V.sA,V.G2,V.UI,D.PW,F.An,k.iV,x.YU,x.bT,G.R,Y.r,Wo.N,ee.e,Ns,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}.membership-error-icon[_ngcontent-%COMP%]{padding:80px 0 0;margin:0 auto 86px;font-size:80px;width:100%;height:178px;line-height:1;display:block;text-align:center;box-sizing:border-box}.membership-error-text[_ngcontent-%COMP%]{text-align:center}"]}),Ke})();const Xc=(j,Ke)=>[j,Ke];function iu(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",13)(1,"button",14),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.closeClicked())}),c.j41(2,"mat-icon",15),c.EFF(3,"close"),c.k0s()()()}}function qo(j,Ke){if(1&j&&(c.j41(0,"div",9)(1,"div",10)(2,"h1",11),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.DNE(5,iu,4,0,"div",12),c.k0s()),2&j){const we=c.XpG();c.R7$(3),c.JRh(c.bMT(4,2,"common.gfn")),c.R7$(2),c.Y8G("ngIf",we.closeButtonVisible)}}function bc(j,Ke){1&j&&c.nrm(0,"img",16)}let Zc=(()=>{var j;class Ke{constructor(C,w,Q){this.ecommerceService=w,this.spatialNavigationService=Q,this.closeButtonClicked=new c.bkB,this.closeButtonVisible=!0,this.destroy$=new p.B7,this.closeButtonVisible=!C?.featureEnablement?.tvMode}ngOnInit(){this.dialogTitle="ecommerce.membershipNotUpdatedDialog.title",this.description="ecommerce.membershipNotUpdatedDialog.description"}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){const C=document.getElementsByClassName("membership-status-link"),w=C?.length>0?C[0]:void 0;w&&this.spatialNavigationService.onClick(w).pipe((0,h.Q)(this.destroy$)).subscribe(Q=>{Q&&this.ecommerceService.openAccountManagementPage(Pt.MCB.ScreenJoinGfnDialog,Io.MembershipNotUpdatedEcomUIState)})}closeClicked(){this.closeButtonClicked.emit()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Mi.Vk),c.rXU(Ao),c.rXU(T.ED))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-membership-not-updated"]],inputs:{data:"data"},outputs:{closeButtonClicked:"closeButtonClicked"},decls:16,vars:17,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","navigateAction","focus","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",4,"ngIf"],[1,"dialog-content"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","","nvAutoFocus","",1,"font-button2",3,"click"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",1,"dialog-art"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.DNE(1,qo,6,4,"div",1),c.j41(2,"div",2),c.DNE(3,bc,1,0,"img",3),c.j41(4,"div",4)(5,"h2",5),c.EFF(6),c.nI1(7,"translate"),c.k0s(),c.nrm(8,"span",6),c.nI1(9,"translate"),c.nI1(10,"trustAsHtml"),c.k0s()(),c.j41(11,"div",7)(12,"button",8),c.bIt("click",function(){return w.closeClicked()}),c.j41(13,"span"),c.EFF(14),c.nI1(15,"translate"),c.k0s()()()()),2&C&&(c.Y8G("ngClass",c.l_i(14,Xc,w.data.isStreamerApp?"main-content-streamer":"main-content-mall",w.data.isCompactDialog?"compact-dialog-wrapper":"")),c.R7$(),c.Y8G("ngIf",!w.data.isStreamerApp&&!w.data.isCompactDialog),c.R7$(2),c.Y8G("ngIf",!w.data.isCompactDialog),c.R7$(3),c.JRh(c.bMT(7,6,w.dialogTitle)),c.R7$(2),c.Y8G("innerHTML",c.bMT(10,10,c.bMT(9,8,w.description)),c.npT),c.R7$(6),c.JRh(c.bMT(15,12,"common.close")))},dependencies:[V.DJ,V.sA,V.G2,V.UI,D.PW,n.BI,F.An,k.iV,x.YU,x.bT,G.R,Y.r,Wo.N,ee.e,Ns,Re.O,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}"]}),Ke})();const Lc=(j,Ke)=>[j,Ke];function Ol(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",15),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.closeClicked())}),c.j41(1,"mat-icon",16),c.EFF(2,"close"),c.k0s()()}}function sd(j,Ke){if(1&j&&(c.j41(0,"div",10)(1,"div",11)(2,"h1",12),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.j41(5,"div",13),c.DNE(6,Ol,3,0,"button",14),c.k0s()()),2&j){const we=c.XpG();c.R7$(3),c.JRh(c.bMT(4,2,"common.gfn")),c.R7$(3),c.Y8G("ngIf",we.closeButtonVisible)}}function Il(j,Ke){1&j&&c.nrm(0,"img",17)}let Fu=(()=>{var j;class Ke{constructor(C,w){this.ecommerceService=w,this.primaryButtonClicked=new c.bkB,this.closeButtonClicked=new c.bkB,this.showLoadingOnContinue=!1,this.closeButtonVisible=!0,this.closeButtonVisible=!C?.featureEnablement?.tvMode}ngOnInit(){this.dialogTitle="ecommerce.playtimeAddProgressDialog.title",this.description="ecommerce.membershipUpdateProgressDialog.compactDialogDescription"}continueClicked(){this.showLoadingOnContinue=!0,this.ecommerceService.refreshUsersEntitlement(),this.primaryButtonClicked.emit()}closeClicked(){this.closeButtonClicked.emit()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Mi.Vk),c.rXU(Ao))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-playtime-update-progress"]],inputs:{data:"data"},outputs:{primaryButtonClicked:"primaryButtonClicked",closeButtonClicked:"closeButtonClicked"},decls:18,vars:21,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","navigateAction","focus","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",4,"ngIf"],[1,"dialog-content"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","",1,"font-button2",3,"click"],["mat-raised-button","","nvProgressCircular","","nvAutoFocus","",1,"font-button2","mat-accent",3,"click","isVisible"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",1,"dialog-art"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.DNE(1,sd,7,4,"div",1),c.j41(2,"div",2),c.DNE(3,Il,1,0,"img",3),c.j41(4,"div",4)(5,"h2",5),c.EFF(6),c.nI1(7,"translate"),c.k0s(),c.nrm(8,"span",6),c.nI1(9,"translate"),c.nI1(10,"trustAsHtml"),c.k0s()(),c.j41(11,"div",7)(12,"button",8),c.bIt("click",function(){return w.closeClicked()}),c.EFF(13),c.nI1(14,"translate"),c.k0s(),c.j41(15,"button",9),c.bIt("click",function(){return w.continueClicked()}),c.EFF(16),c.nI1(17,"translate"),c.k0s()()()),2&C&&(c.Y8G("ngClass",c.l_i(18,Lc,w.data.isStreamerApp?"main-content-streamer":"main-content-mall",w.data.isCompactDialog?"compact-dialog-wrapper":"")),c.R7$(),c.Y8G("ngIf",!w.data.isStreamerApp&&!w.data.isCompactDialog),c.R7$(2),c.Y8G("ngIf",!w.data.isCompactDialog),c.R7$(3),c.JRh(c.bMT(7,8,w.dialogTitle)),c.R7$(2),c.Y8G("innerHTML",c.bMT(10,12,c.bMT(9,10,w.description)),c.npT),c.R7$(5),c.SpI(" ",c.bMT(14,14,"common.close")," "),c.R7$(2),c.Y8G("isVisible",w.showLoadingOnContinue),c.R7$(),c.SpI(" ",c.bMT(17,16,"common.continue")," "))},dependencies:[V.DJ,V.sA,V.G2,V.UI,D.PW,n.BI,F.An,k.iV,x.YU,x.bT,G.R,Y.r,Wo.N,ee.e,ta.q,bo.Aq,Ns,Re.O,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}"]}),Ke})();const ya=(j,Ke)=>[j,Ke];function Hg(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"div",13)(1,"button",14),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.closeClicked())}),c.j41(2,"mat-icon",15),c.EFF(3,"close"),c.k0s()()()}}function Lp(j,Ke){if(1&j&&(c.j41(0,"div",9)(1,"div",10)(2,"h1",11),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.DNE(5,Hg,4,0,"div",12),c.k0s()),2&j){const we=c.XpG();c.R7$(3),c.JRh(c.bMT(4,2,"common.gfn")),c.R7$(2),c.Y8G("ngIf",we.closeButtonVisible)}}function ig(j,Ke){1&j&&c.nrm(0,"img",16)}let sl=(()=>{var j;class Ke{constructor(C,w,Q){this.ecommerceService=w,this.spatialNavigationService=Q,this.closeButtonClicked=new c.bkB,this.closeButtonVisible=!0,this.destroy$=new p.B7,this.closeButtonVisible=!C?.featureEnablement?.tvMode}ngOnInit(){this.dialogTitle="ecommerce.playtimeNotUpdatedDialog.title",this.description="ecommerce.playtimeNotUpdatedDialog.description"}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){const C=document.getElementsByClassName("account-status-link"),w=C?.length>0?C[0]:void 0;w&&this.spatialNavigationService.onClick(w).pipe((0,h.Q)(this.destroy$)).subscribe(Q=>{Q&&this.ecommerceService.openAccountManagementPage(Pt.MCB.ScreenJoinGfnDialog,Io.MembershipTimeNotUpdatedEcomUIState)})}closeClicked(){this.closeButtonClicked.emit()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Mi.Vk),c.rXU(Ao),c.rXU(T.ED))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-playtime-not-updated"]],inputs:{data:"data"},outputs:{closeButtonClicked:"closeButtonClicked"},decls:16,vars:17,consts:[["fxFlexFill","","fxLayout","column","nvSpatialNavigationContainer","","navigateAction","focus","nvCaptureRestoreFocus","",3,"ngClass"],["fxFlex","none","class","custom-title-bar","fxLayout","row",4,"ngIf"],["fxFlex","none","fxLayout","column"],["class","dialog-art","src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",4,"ngIf"],[1,"dialog-content"],[1,"font-header6"],["cdkMonitorSubtreeFocus","",1,"font-body2",3,"innerHTML"],["fxFlex","none","fxLayout","row","fxLayoutAlign","end center",1,"dialog-button"],["mat-button","","nvAutoFocus","",1,"font-button2",3,"click"],["fxFlex","none","fxLayout","row",1,"custom-title-bar"],["fxFlex","","fxLayoutAlign","start center"],["mat-dialog-title","",1,"font-header6"],["fxFlex","","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center"],["mat-icon-button","",3,"click"],["mat-font-set","material-icons"],["src","shared/assets/img/GFNUpSellBannerKV_v2.jpg",1,"dialog-art"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.DNE(1,Lp,6,4,"div",1),c.j41(2,"div",2),c.DNE(3,ig,1,0,"img",3),c.j41(4,"div",4)(5,"h2",5),c.EFF(6),c.nI1(7,"translate"),c.k0s(),c.nrm(8,"span",6),c.nI1(9,"translate"),c.nI1(10,"trustAsHtml"),c.k0s()(),c.j41(11,"div",7)(12,"button",8),c.bIt("click",function(){return w.closeClicked()}),c.j41(13,"span"),c.EFF(14),c.nI1(15,"translate"),c.k0s()()()()),2&C&&(c.Y8G("ngClass",c.l_i(14,ya,w.data.isStreamerApp?"main-content-streamer":"main-content-mall",w.data.isCompactDialog?"compact-dialog-wrapper":"")),c.R7$(),c.Y8G("ngIf",!w.data.isStreamerApp&&!w.data.isCompactDialog),c.R7$(2),c.Y8G("ngIf",!w.data.isCompactDialog),c.R7$(3),c.JRh(c.bMT(7,6,w.dialogTitle)),c.R7$(2),c.Y8G("innerHTML",c.bMT(10,10,c.bMT(9,8,w.description)),c.npT),c.R7$(6),c.JRh(c.bMT(15,12,"common.close")))},dependencies:[V.DJ,V.sA,V.G2,V.UI,D.PW,n.BI,F.An,k.iV,x.YU,x.bT,G.R,Y.r,Wo.N,ee.e,Ns,Re.O,Ze.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:470px;overflow:hidden;transition:height .5s}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:470px;height:50px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:470px;height:264px;border:transparent;padding-bottom:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:24px;height:254px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%]{padding:24px;height:91px}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{text-align:center;margin:4px 0 0}.main-content-streamer[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content-queue-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}.main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{flex-wrap:nowrap;margin:8px;position:relative;right:0;bottom:0}.isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:8px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane[_ngcontent-%COMP%]{height:215px}.main-content-streamer[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upsell-pane-message[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.15);margin:0 24px;padding:23px 0}.main-content-streamer[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .upgrade-container[_ngcontent-%COMP%]{margin:8px}.compact-dialog-wrapper[_ngcontent-%COMP%], .compact-dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:100%}@media (max-width: 469px){.main-content-streamer[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%]{width:100vw}.main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:unset}.main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100vw;height:auto}.main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{width:unset}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{display:none}.main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{display:none!important}.main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{height:-moz-fit-content!important;height:fit-content!important}}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%]{width:840px;height:925px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{width:100%;height:88px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-right:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{padding-left:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .custom-title-bar[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-art[_ngcontent-%COMP%]{width:100%;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:32px;height:auto}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%]{margin:8px 32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:32px}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-left:32px}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:32px}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy3: 0;margin-right:32px}.isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isLtr .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isLtr [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=ltr] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl[_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl.tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .isRtl .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view .isRtl [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl][_ngcontent-%COMP%] .tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, html[dir=rtl] .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child, .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] .dialog-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.tv-view[_ngcontent-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-mall[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:200px}.tv-view[_ngcontent-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-content-streamer[_ngcontent-%COMP%] div.dialog-content[_ngcontent-%COMP%]{height:288px}"]}),Ke})();c.wjB(vl,function(){return[V.DJ,V.G2,V.UI,D.PW,x.YU,x.ux,x.e1,K.D,$.D,zl,Kc,md,Zc,Fu,sl]},[]);var af=d(92565),Uu=d(54292),Ld=d(97944);let Nc=(()=>{var j;class Ke{get udsSuggestionsShownInStream(){return this._udsSuggestionsShownInStream}set udsSuggestionsShownInStream(C){this._udsSuggestionsShownInStream=C}get snoozeDurationInDays(){return this._snoozeDurationInDays}set snoozeDurationInDays(C){this._snoozeDurationInDays=C}get rawUDSDataFromGS(){return this._rawUDSDataFromGS}set rawUDSDataFromGS(C){this._rawUDSDataFromGS=C}get elapsedTimeInDays(){return this._elapsedTimeInDays}set elapsedTimeInDays(C){this._elapsedTimeInDays=Math.max(0,Math.floor(C/86400))}get sessionDurationInMinsForUDS(){return this._sessionDurationInMins}set sessionDurationInMinsForUDS(C){this._sessionDurationInMins=C/60}updateUDSData(C,w){return this.appConfig?.udsConfig?.useOverriddenSAScores&&C&&this.appConfig?.udsConfig?.saScores&&(C.saScores={...C.saScores,...this.appConfig?.udsConfig?.saScores},w.nonDefaultScores=this.areSAScoresNonDefault(C)||!1,this.logger.info("Overriding saScores ",C.saScores)),{...C,...w}}get streamingResolution(){return this._currentStreamingResolution}set streamingResolution(C){this._currentStreamingResolution=C}get streamingProperties(){return this._currentStreamingProperties}set streamingProperties(C){this._currentStreamingProperties={...C}}emitUDSData(C){return this.udsDataReplaySubject.next(C)}getUDSData$(){return this.udsDataReplaySubject.asObservable()}udsJSBundleLoaded$(){return this.udsJSBundleLoadedReplaySubject.asObservable()}constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr){this.settingsService=C,this.externalJsLoadService=w,this.browserSupportService=Q,this.appConfig=me,this.remoteConfigService=Ye,this.localeService=bt,this.guestModeHelperService=cn,this.ecommerceService=Wn,this.idmService=xi,this.dbCacheService=Yi,this._udsSuggestionsShownInStream=!1,this._rawUDSDataFromGS=null,this.udsDataReplaySubject=new Be.m(1),this.udsJSBundleLoadedReplaySubject=new Be.m(1),this._currentStreamingResolution=null,this._currentStreamingProperties=null,this.udsDBStore=null,this.logger=fr.getLogger("UdsHelperService"),this.udsBundlePath=this.appConfig?.udsConfig.cdnPathIsRelative?this.browserSupportService.getHostBranchName()+this.appConfig?.udsConfig.cdnPath:this.appConfig?.udsConfig.cdnPath}isGapSinceEntitlementAllowed(C,w){if(!w)return this.logger.info("firstEntitlementStartDateTime from GES is empty/null"),!1;const me=86400*C,Ye=(new Date).getTime(),bt=new Date(w).getTime(),cn=Math.max(0,Math.floor((Ye-bt)/1e3));return this.logger.info("elapsedTime since firstEntitlement",cn),this.elapsedTimeInDays=cn,cn<=me}canEnableUDSFeature(){return this.guestModeHelperService.isGuestMode?(0,it.of)(!1):(0,Vt.zV)([this.remoteConfigService.remoteConfigFetched$,this.localeService.localeChanged]).pipe((0,wt.T)(([C,w])=>{let Q=C.config?.udsConfig.canEnableUI;return C.config?.udsConfig.allLocaleSupported||(Q=Q&&C.config?.udsConfig.supportedLocales?.includes(w)),this.logger.info("canEnableUDSUI flag",Q),Q}),(0,Un.W)(C=>(this.logger.error("Error while fetching UDS remote config",C),(0,it.of)(!1))))}canShowUDSSummonedUIIcon(){return(0,Vt.zV)([this.remoteConfigService.remoteConfigFetched$,this.canEnableUDSFeature(),this.getUDSData$()]).pipe((0,wt.T)(([C,w,Q])=>{const me=w&&C.config?.udsConfig.canEnableSummonedUI&&Q?.nonDefaultScores;return this.logger.info("showUDSSummonedUIIcon flag",me),me}),(0,Un.W)(C=>(this.logger.error("Error in canShowUDSSummonedUIIcon",C),(0,it.of)(!1))))}areSAScoresNonDefault(C){if(window?.uds?.areSAScoresNonDefault)return window?.uds?.areSAScoresNonDefault(C)}shouldShowSessionEndUDSDialog(C){return(0,Vt.zV)([this.remoteConfigService.remoteConfigFetched$,this.canEnableUDSFeature(),this.ecommerceService.getUserMembership(),this.isUdsSnoozed()]).pipe((0,g.s)(1),(0,wt.T)(([w,Q,me,Ye])=>{this.logger.info("Session duration ",C),this.logger.info("isUdsSnoozed",Ye),this.sessionDurationInMinsForUDS=C,this.snoozeDurationInDays=w.config?.udsConfig.snoozeDurationInDays;const bt=Q&&w.config?.udsConfig.canEnableEndOfSessionUI&&!Ye&&C>=w.config?.udsConfig.minSessionDurationForUDS&&this.isGapSinceEntitlementAllowed(w.config?.udsConfig.allowedGapSinceEntitlementInDays,me.subscription?.firstEntitlementStartDateTime);return this.logger.info("showUDSDialog flag ",bt),bt}),(0,Un.W)(w=>(this.logger.error("Error in shouldShowSessionEndUDSDialog",w),(0,it.of)(!1))))}snoozeUDS(){const C=24*this.snoozeDurationInDays*60*60*1e3,w={settingType:oi.UdsSnoozeStopDateTime,selectedOption:new Date(Date.now()+C).toISOString()};this.settingsService.storeChangedSettings(w)}isUdsSnoozed(){return this.appConfig.udsConfig?.disableSnooze?(0,it.of)(!1):this.settingsService.getSettingsData().pipe((0,wt.T)(C=>{if(C?.udsSnoozeStopDateTime){const w=new Date(C.udsSnoozeStopDateTime).getTime();if((new Date).getTime()<w)return!0}return!1}))}loadUdsJsBundle(){return this.canEnableUDSFeature().pipe((0,nt.ZZ)(C=>{const w=this.udsBundlePath&&this.externalJsLoadService.isScriptLoaded(this.udsBundlePath);return C?w?(0,it.of)(!0):this.externalJsLoadService.loadJSWithRetry(this.udsBundlePath,this.appConfig.udsConfig.jsLoadConfig):(w&&this.unloadUdsJsBundle(),(0,it.of)(!1))}),(0,Un.W)(C=>(this.logger.error("Error in loading UDS js bundle from CDN",C),(0,it.of)(!1))))}unloadUdsJsBundle(){this.externalJsLoadService.unloadJS(this.udsBundlePath),delete window.uds}initializeUDS(){this.loadUDSData().subscribe(),this.loadUdsJsBundle().subscribe(C=>this.udsJSBundleLoadedReplaySubject.next(C),C=>this.logger.info("Error in loading the UDS JS bundle",C))}persistUDSData(){this.udsDBStore&&this.udsDBStore.status_===l.tO.Saved&&this.getUDSData$().pipe((0,nt.ZZ)(C=>(this.logger.info("Saving into UDSDataStore",C),this.udsDBStore.udsData=C,this.udsDBStore.persist_()))).subscribe()}persistToastShown(){this.udsDBStore&&this.udsDBStore.status_===l.tO.Saved&&(this.udsDBStore.toastShown=!0,this.udsDBStore.persist_().subscribe())}loadUDSData(){return(0,Vt.zV)([this.canEnableUDSFeature(),this.idmService.accountStatusChanged]).pipe((0,ge.p)(([C,w])=>C&&w.isAuthenticated),(0,nt.ZZ)(([C,w])=>(this.logger.info("intializing UDSDataStore"),this.udsDBStore=this.dbCacheService.getOrCreateCachedGlobalItem("UDSDataStore",w.userId),this.udsDBStore.sync_())),(0,on.M)(C=>{this.emitUDSData(this.udsDBStore.udsData)}))}showUDSToast$(){return this.canShowUDSSummonedUIIcon().pipe((0,wt.T)(C=>{const w=C&&!this.udsDBStore.toastShown;return this.logger.info("canShowUDSToast",w),w}))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(oa),c.KVO(af.C),c.KVO(Uu.vT),c.KVO(Mi.Vk),c.KVO(hi.a),c.KVO(l.iH),c.KVO(tt.x),c.KVO(Ao),c.KVO(Ld.k),c.KVO(l.sc),c.KVO(l.J6))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),ld=(()=>{var j;class Ke{constructor(C,w){this.localeService=w,this.logger=C.getLogger("gfn/RedirectService")}getLocalizedDate(C,w=null){return C?this.localeService.localeChanged.pipe((0,g.s)(1),(0,nt.ZZ)(Q=>{const me=new Date(C);if(isNaN(me.getTime()))return(0,Ut.$)("Invalid Date");const Ye=Q.replace("_","-");w||(w={day:"numeric",month:"long",year:"numeric"});const bt=`${me.toLocaleDateString(Ye,w)}`;return(0,it.of)(bt)}),(0,Un.W)(Q=>(this.logger.info("Error while localizing date ",Q),(0,Ut.$)(Q)))):(0,it.of)(null)}getLocalizedTime(C,w=null){return C?this.localeService.localeChanged.pipe((0,g.s)(1),(0,nt.ZZ)(Q=>{const me=new Date(C);if(isNaN(me.getTime()))return(0,Ut.$)("Invalid Date");const Ye=Q.replace("_","-");w||(w={hour:"numeric",minute:"2-digit"});const bt=`${me.toLocaleTimeString(Ye,w)}`;return(0,it.of)(bt)}),(0,Un.W)(Q=>(this.logger.info("Error while localizing time ",Q),(0,Ut.$)(Q)))):(0,it.of)(null)}getLocalizedDateTime(C,w=null,Q=null){return(0,Vt.zV)([this.getLocalizedDate(C,w),this.getLocalizedTime(C,Q)]).pipe((0,g.s)(1),(0,wt.T)(([me,Ye])=>({date:me,time:Ye})))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(l.iH))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();c.wjB(vu.z,function(){return[Vg]},[]);var al=d(90895),La=(d(28507),d(17698));let zg=(()=>{var j;class Ke{constructor(C,w){this.experienceControlService=w,this.logger=C.getLogger("shared/Experience-Ipc")}getCloudVariable(C,w={},Q,me,Ye,bt){return this.experienceControlService.getCloudVariable(C,w,Q,me,Ye,bt).pipe((0,on.M)(cn=>{}),(0,Un.W)(cn=>(0,Ut.$)(cn)))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(no.BW))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Wa=d(30691),Al=function(j){return j[j.Recommended=1]="Recommended",j[j.Required=2]="Required",j[j.Critical=3]="Critical",j}(Al||{}),Fc=function(j){return j.Recommended="recommended",j.Required="required",j.Critical="critical",j}(Fc||{}),Gu=function(j){return j[j.Success=0]="Success",j[j.SubAppRunning=1]="SubAppRunning",j[j.Failed=2]="Failed",j}(Gu||{});const og="updateData";var sg=d(44098);function $p(j,Ke){1&j&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.JRh(c.bMT(2,1,"common.updateRequiredDescription")))}function Yp(j,Ke){1&j&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.JRh(c.bMT(2,1,"common.updateRequiredDescription")))}let Hl=(()=>{var j;class Ke{constructor(C){this.router=C,this.isMall=!(0,sg.I2)(this.router.url)}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(hn.Ix))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-update-in-progress"]],decls:4,vars:2,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"main-content"],[4,"ngIf"],["diameter","60","mode","indeterminate",1,"mat-accent"]],template:function(C,w){1&C&&(c.j41(0,"div",0),c.DNE(1,$p,3,3,"span",1)(2,Yp,3,3,"span",1),c.nrm(3,"mat-spinner",2),c.k0s()),2&C&&(c.R7$(),c.Y8G("ngIf",w.isMall),c.R7$(),c.Y8G("ngIf",!w.isMall))},dependencies:[I.LG,x.bT,V.DJ,V.sA,V.UI,Ze.D9],styles:[".main-content{width:470px;height:240px}.main-content .dialog-content{padding:24px;height:302px}.main-content .dialog-content>h2{margin-top:0}.main-content mat-spinner{margin-top:20px}.mat-mdc-dialog-container{padding:0;border-radius:0}\n"],encapsulation:2}),Ke})();const Vu="command-line";var Is,Jc=function(j){return j.InstallationFailure="InstallationFailure",j.UpdateCheckFailure="UpdateCheckFailure",j.DownloadFailure="DownloadFailure",j}(Jc||{}),ag=d(45628);class dc{constructor(Ke,we,C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr){this.ipcService=Ke,this.nativeEventService=w,this.sharedStorage=Q,this.telemetry=me,this.telemetryUtilService=Ye,this.bridgeService=bt,this.systemInfoService=cn,this.dialog=Wn,this.focusManager=xi,this.genericDialog=Yi,this.redirectService=fr,this.firstRunAfterMajorUpdate=!1,this.firstRunAfterMajorUpdateObservable=new Be.m(1),this.initialAppVersion=null,this.logger=we.getLogger("updateService"),this.updateEventStream=new xe.TE(()=>(this.updateInternalSubject=new p.B7,this.updateInternalSubject.asObservable()),!1),this.baseVersion=new Wa.U((0,Mi.Cl)(C)),this.updateChannel=C.selfUpdate.serverChannel,this.wasUpdatedFromUI=!1,this.updateStartTimestamp=0,this.registerForIpcMessages(),this.registerForWindowEvents(),this.readPreviousVersion().pipe((0,on.M)(Gr=>{this.previousVersion=Gr||dc.zeroVersion}),(0,nt.ZZ)(this.storeCurrentVersion.bind(this)),(0,nt.ZZ)(this.isFirstRunAfterUpdate.bind(this)),(0,nt.ZZ)(Gr=>Gr?this.telemetryUtilService.getAppLaunchTelemetryObservable():(0,it.of)(!1)),(0,nt.ZZ)(Gr=>Gr?this.sendAppLaunchTelemetry(this.previousVersion):(0,it.of)(null))).subscribe(Mt.l,Gr=>{this.logger.error("Received error while reading and updating stored version: ",Gr)},()=>{this.logger.info("Completed reading and updating stored version")}),this.pendingGameLaunchSubject=new Be.m(1),this.osType$=this.systemInfoService.getDeviceOSType().pipe((0,g.s)(1),(0,Bo.t)(1))}registerForIpcMessages(){this.ipcSubscriptions?(this.ipcSubscriptions.forEach((we,C)=>{we.unsubscribe(),this.logger.info("Unregistering for ipc event: ",C)}),this.ipcSubscriptions.clear()):this.ipcSubscriptions=new Map,this.logger.info("Registering for ipc events");const Ke=(we,C)=>this.ipcService.get$(we).pipe((0,nt.ZZ)(w=>(this.logger.info("IPC event call for version",w),this.isUpdateAvailable$().pipe((0,wt.T)(Q=>(this.logger.info("IPC update available response:",Q),Q)),(0,Un.W)(Q=>(this.errorUpdate("Received error when handling ipc update: "+Q),this.sendAppUpdateTelemetry(this.baseVersion,this.getTargetVersion(),Pt.Tv4.Error,"Error on IPC event: "+Q),(0,it.of)(!1)))))),(0,Un.W)(w=>(this.logger.error("Received error on ipc type "+we+": ",w),this.registerForIpcMessages(),(0,it.of)(!1)))).subscribe();this.ipcSubscriptions.set(La.kN.SelfUpdate,Ke(La.kN.SelfUpdate)),this.ipcSubscriptions.set(La.kN.RecommendedUpdate,Ke(La.kN.RecommendedUpdate)),this.ipcSubscriptions.set(La.kN.RequiredUpdate,Ke(La.kN.RequiredUpdate)),this.ipcSubscriptions.set(La.kN.CriticalUpdate,Ke(La.kN.CriticalUpdate))}registerForWindowEvents(){this.windowEventSubscriptions?(this.windowEventSubscriptions.forEach((w,Q)=>{w.unsubscribe(),this.logger.info("Unregistering for window event: ",Q)}),this.windowEventSubscriptions.clear()):this.windowEventSubscriptions=new Map,this.logger.info("Registering for window events");const Ke=this.nativeEventService.get$(l.D4.SelfUpdate,l.Jm.Types.HandlerEventType.StructuredWindowEvent).subscribe(w=>{try{const Q=this.validateUpdateData(this.parseUpdateData(w));(0,a.isNil)(Q)||this.handleIncomingUpdate(Q)}catch(Q){this.errorUpdate(Q),this.sendAppUpdateTelemetry(this.baseVersion,this.getTargetVersion(),Pt.Tv4.UpdateFailure,Q.toString())}},w=>{this.logger.error("Received error from window event "+l.D4.SelfUpdate+": ",w),this.registerForWindowEvents()});this.windowEventSubscriptions.set(l.D4.SelfUpdate,Ke);const we=this.nativeEventService.get$(l.D4.StoredCommandLine,l.Jm.Types.HandlerEventType.StructuredWindowEvent).subscribe(w=>{let Q;try{Q=JSON.parse(w)}catch{return void this.logger.error("Invalid object raised as stored command line: ",w)}(0,a.isNil)(Q[Vu])?this.logger.error("Update command line event raised without data or command-line value: ",Q):this.handlePostUpdateCommandLine(Q[Vu])},w=>{this.logger.error("Received error from window event "+l.D4.StoredCommandLine+": ",w),this.registerForWindowEvents()});this.windowEventSubscriptions.set(l.D4.StoredCommandLine,we);const C=this.nativeEventService.get$(l.D4.UpdateInitiated,l.Jm.Types.HandlerEventType.StructuredWindowEvent).subscribe(()=>{this.sendAppUpdateTelemetry(this.baseVersion,this.getTargetVersion(),Pt.Tv4.UpdateInitiated,null,0,{immediateRequest:!0}),this.showUpdateInProgressDialog()},w=>{this.logger.error("Received error from window event "+l.D4.UpdateInitiated+": ",w),this.registerForWindowEvents()});this.windowEventSubscriptions.set(l.D4.UpdateInitiated,C)}getUpdates$(){return this.updateEventStream.get$()}getPendingGameLaunch$(){return this.pendingGameLaunchSubject.asObservable()}recordUpdateFromUI$(){return this.appendUpdateData({updateFromJS:!0})}updateApplication$(Ke=!1){return this.appendUpdateData({updateFromJS:!0,updateFromStreamer:Ke,updateStartTimestamp:Date.now()}).pipe((0,_i.n)(()=>this.bridgeService.executeCommand(ag.U.GfnUpdate)),(0,wt.T)(we=>we),(0,on.M)(we=>{(0,a.isNil)(we)||(0,a.isNil)(we.status)?this.sendAppUpdateTelemetry(this.baseVersion,this.getTargetVersion(),Pt.Tv4.Error,"Error running update query, invalid result or status"):we.status!==Gu.Success&&this.sendAppUpdateTelemetry(this.baseVersion,this.getTargetVersion(),Pt.Tv4.Error,"Error status returned from update query: "+we.status)}))}showUpdateInProgressDialog(){const Ke={disableClose:!0,autoFocus:!0,panelClass:["confirmation-dialog-set-background","nv-overlay-panel"]};return this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(Hl,Ke))}getUpdateData$(){return this.bridgeService.executeCommand(Qe.Ts.Common.Update.ReadTicket,{}).pipe((0,wt.T)(Ke=>{try{return this.validateUpdateData(Ke)}catch(we){throw this.logger.error("Error when processing ReadTicket result: ",we),new Error(we)}}),(0,Un.W)(Ke=>(this.logger.error("Error reading update ticket data",Ke),(0,it.of)(null))))}getAvailableUpdate$(){return this.getUpdateData$().pipe((0,wt.T)(Ke=>(this.handleIncomingUpdate(Ke),this.pendingUpdate)))}isUpdateAvailable$(){return this.getAvailableUpdate$().pipe((0,wt.T)(Ke=>!(0,a.isNil)(Ke)))}updateRequiredOnLaunch$(){return this.getAvailableUpdate$().pipe((0,wt.T)(Ke=>(0,a.get)(Ke,"severity",Al.Recommended)>Al.Recommended))}isFirstAppRunAfterMajorUpdate$(){return this.firstRunAfterMajorUpdateObservable.asObservable()}parseUpdateData(Ke){let we;try{we=JSON.parse(Ke)}catch{const w="Update ticket raised with improper JSON: "+Ke;throw this.logger.error(w),new Error(w)}if((0,a.isNil)(Ke)||(0,a.isNil)(we)){const C="Update ticket raised with null data: "+Ke;throw this.logger.error(C),new Error(C)}return we}validateUpdateData(Ke){if((0,a.isNil)(Ke)){const C="validateUpdateData called with null updateData";throw this.logger.error(C),new Error(C)}if(!Ke.available||(0,a.isNil)(Ke.severity)||(0,a.isNil)(Ke.version))return this.logger.info("No update available"),null;const we=function Em(j){switch(j){case Fc.Recommended:return Al.Recommended;case Fc.Required:return Al.Required;case Fc.Critical:return Al.Critical;default:return null}}(Ke.severity);if((0,a.isNil)(we)){const C="Unrecognized update severity: "+Ke.severity;throw this.logger.error(C),new Error(C)}return{version:new Wa.U(Ke.version),severity:we}}isUpdateAccepted(Ke){if((0,a.isNil)(Ke))return!1;if((0,a.isNil)(this.pendingUpdate))return this.baseVersion.compare(Ke.version)===Wa.L.Greater;switch(this.pendingUpdate.version.compare(Ke.version)){case Wa.L.Greater:return!0;case Wa.L.Lesser:return this.logger.info("Checked update has a lower version than current pending update: "+this.updateDataToString(Ke)+" < "+this.updateDataToString(this.pendingUpdate)),!1;case Wa.L.Equal:return Ke.severity>this.pendingUpdate.severity||(this.logger.info("Raised update has equal version and lesser or equal severity as current pending update: "+this.updateDataToString(Ke)+" <= "+this.updateDataToString(this.pendingUpdate)),!1)}return!1}handleIncomingUpdate(Ke){this.isUpdateAccepted(Ke)?this.acceptUpdate(Ke):this.ignoreUpdate(Ke)}acceptUpdate(Ke){this.logger.info("Accepting new update data: ",Ke),this.pendingUpdate=Ke,this.updateInternalSubject.next(this.pendingUpdate),this.sendAppUpdateTelemetry(this.baseVersion,Ke.version,Pt.Tv4.IPCReceived)}errorUpdate(Ke){const we="Raising error when processing update: "+Ke;this.logger.error(we),this.updateInternalSubject.error(we)}ignoreUpdate(Ke){this.logger.info("Ignoring update data: ",Ke)}updateDataToString(Ke){return(0,a.isNil)(Ke)?"undefined":Ke.version+":("+Ke.severity+")"}readUpdateData(){return this.sharedStorage.readBlock(og)}writeUpdateData(Ke){return this.sharedStorage.writeBlock(og,Ke)}appendUpdateData(Ke){return this.readUpdateData().pipe((0,nt.ZZ)(we=>{(0,a.isNil)(Ke)&&(we={});const C={...we,...Ke};return this.writeUpdateData(C)}))}isFirstRunAfterUpdate(){return this.readPreviousVersion().pipe((0,on.M)(Ke=>{this.firstRunAfterMajorUpdate=this.baseVersion.compareMajorVersion(Ke)===Wa.L.Lesser,this.firstRunAfterMajorUpdateObservable.next(this.firstRunAfterMajorUpdate&&!this.isFirstApplicationInstall(Ke))}),(0,wt.T)(Ke=>this.baseVersion.compare(Ke)===Wa.L.Lesser))}isFirstApplicationInstall(Ke){return Ke.compare(dc.zeroVersion)===Wa.L.Equal}storeCurrentVersion(){const Ke={currentVersion:this.baseVersion.toString()};return this.isFirstApplicationInstall(this.previousVersion)&&(Ke.initialAppVersion=Wa.U.getPaddedFourOctetVersion(this.baseVersion.toString())),this.appendUpdateData(Ke)}getInitialVersion(){return this.initialAppVersion?(0,it.of)(this.initialAppVersion):this.readUpdateData().pipe((0,wt.T)(Ke=>{const we=Ke?.initialAppVersion;return this.initialAppVersion=we&&new Wa.U(we)||dc.zeroVersion,this.initialAppVersion}))}readPreviousVersion(){return(0,a.isNil)(this.previousVersion)?((0,a.isNil)(this.readPreviousVersionOb$)&&(this.readPreviousVersionOb$=this.readUpdateData().pipe((0,wt.T)(Ke=>{if((0,a.isNil)(Ke))this.logger.info("No update data found in shared storage");else{this.wasUpdatedFromUI=(0,a.get)(Ke,"updateFromJS",!1),this.updateStartTimestamp=(0,a.get)(Ke,"updateStartTimestamp",0);const we=(0,a.get)(Ke,"currentVersion",dc.zeroVersion.toString()),C=new Wa.U(we);if(C.compare(dc.zeroVersion)!==Wa.L.Equal)return C;this.logger.info("No previous version found in shared storage update block")}return dc.zeroVersion}),(0,Un.W)(Ke=>{const we="Error caught when reading update data from shared storage: "+Ke;throw this.logger.error(we),new Error(we)}))),this.readPreviousVersionOb$):(0,it.of)(this.previousVersion)}sendAppUpdateTelemetry(Ke,we,C,w,Q=0,me){this.logger.info("Uploading app update telemetry",Ke,we,C,w,Q,me);const Ye=new Pt.mTv({previousVersion:(0,a.isNil)(Ke)?"":Ke.toString(),targetVersion:(0,a.isNil)(we)?"":we.toString(),status:C,downloadTimeMs:0,upTimeMs:0,installerRuntimeMs:Q,retryCount:0,channel:this.updateChannel,updateUrl:"",errorCategory:(0,a.isNil)(w)?Pt.$_D.None:Pt.$_D.General,errorMessage:(0,a.isNil)(w)?"":w});this.telemetry.push(Ye,0,me)}sendAppLaunchTelemetry(Ke){return this.systemInfoService.getSystemInfo([l.Lu.OSName,l.Lu.OSVersion]).pipe((0,wt.T)(we=>({OSName:we.OSName,OSVersion:we.OSVersion})),(0,Un.W)(we=>(this.logger.error("Received error from getOsInfo, uploading telemetry without os info. Error = ",we),(0,it.of)({OSName:"",OSVersion:""}))),(0,wt.T)(we=>{let C,w;if(Ke===dc.zeroVersion)C="",w=Pt.kSA.FirstApplicationInstall;else{C=Ke.toString(),w=Pt.kSA.SelfUpdateInstallAuto;let Ye=0;this.updateStartTimestamp>0&&(Ye=Date.now()-this.updateStartTimestamp),this.sendAppUpdateTelemetry(this.previousVersion,this.baseVersion,Pt.Tv4.UpdateSuccess,null,Ye)}const Q={clientType:this.telemetryUtilService.getClientType(),type:w,previousAppVersion:C,osName:we.OSName,osVersion:we.OSVersion};this.logger.info("Uploading app install telemetry: ",w);const me=new Pt.iQN(Q);this.telemetry.push(me)}))}handlePostUpdateCommandLine(Ke){const we=(0,al.Me)(Ke,this.logger);(0,a.isNil)(we)||this.isFirstRunAfterUpdate().subscribe(C=>{C&&!this.wasUpdatedFromUI?(this.logger.info("Found cmsId, this is the first run with a new version, and the previous update was not initiated from the UI, so attempting to launch the given cmsId"),this.pendingGameLaunchSubject.next(we)):this.logger.info("found cmsId "+we+", but this is not the first run after an update. Ignoring")})}getTargetVersion(){return(0,a.isNil)(this.pendingUpdate)?null:this.pendingUpdate.version}checkLastInstallationStatus(){this.osType$.pipe((0,ge.p)(Ke=>Ke===l.t_.Windows),(0,nt.ZZ)(()=>this.bridgeService.executeCommand(Qe.Ts.Common.Applicationcontrol.RequestLastInstallerStatus))).subscribe(Ke=>{this.logger.info("RequestLastInstallerStatus response: ",Ke),Ke&&!(0,a.isEmpty)(Ke?.errorcode)?this.showUpdateDownloadFailureErrorDialog(Ke.errorcode):(this.logger.error("RequestLastInstallerStatus data is not valid."),this.checkUpdateDownloadFailure())},Ke=>{this.logger.error("RequestLastInstallerStatus returns error: ",Ke),this.checkUpdateDownloadFailure()}),this.osType$.pipe((0,ge.p)(Ke=>Ke===l.t_.MacOS),(0,on.M)(()=>this.checkUpdateDownloadFailure())).subscribe()}checkUpdateDownloadFailure(){this.ipcService.get$(La.kN.UpdateCheckFailure).subscribe(we=>{this.logger.info("UpdateCheckFailure response: ",we),this.showUpdateDownloadFailureErrorDialog(null,Jc.UpdateCheckFailure,we)},we=>this.logger.error("Error checking UpdateCheckFailure: ",we)),this.ipcService.get$(La.kN.DownloadPrepareFailure).subscribe(we=>{this.logger.info("DownloadPrepareFailure respopnse: ",we),this.showUpdateDownloadFailureErrorDialog(null,Jc.DownloadFailure,we)},we=>this.logger.error("Error checking DownloadPrepareFailure: ",we)),this.ipcService.get$(La.kN.SelfUpdateThresholdNotReached).subscribe(we=>this.logger.info("SelfUpdateThresholdNotReached respopnse: ",we),we=>this.logger.error("Error checking SelfUpdateThresholdNotReached: ",we));const Ke={type:La.kN.SelfUpdateStatus,content:"",sender:La.pQ.GfnMall,recipient:La.pQ.GfnUpdater};this.logger.info("Sending IPC message for checking self update status:",Ke),this.ipcService.pushMessage(Ke).pipe((0,g.s)(1)).subscribe(we=>this.logger.info("SelfUpdateStatus requested: ",we),we=>this.logger.error("Error checking SelfUpdateStatus: ",we))}errorDialogLinkClicked(){this.logger.info("App manual download link clicked"),this.redirectService.openRedirectUrl(At.r7.GfnPcDownload)}showUpdateDownloadFailureErrorDialog(Ke,we=Jc.InstallationFailure,C){let w=Pt.Mwe.InstallationAttemptExhausted;we===Jc.DownloadFailure?w=Pt.Mwe.DownloadAttemptExhausted:we===Jc.UpdateCheckFailure&&(w=Pt.Mwe.UpdateCheckAttemptsExhausted),this.sendSelfUpdateTelemetry(w,Pt._aO.PopupShown,Ke??"",Pt.fbu.Failure,C??"");const cn={text:"notification.getLatestApp",linkClickedCallback:this.errorDialogLinkClicked.bind(this)};let Wn;Ke&&(Wn={text:"error.errorCode",placeholders:{errorCode:Ke}});const fr=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:we===Jc.InstallationFailure||we===Jc.DownloadFailure?"notification.updateFailureTitle":"notification.updateFailureCheckTitle"},bodyText:{text:we===Jc.InstallationFailure||we===Jc.DownloadFailure?"notification.updateFailureNotification":"notification.updateFailureCheckBody"},primaryButton:{text:"common.close"},link:cn,errorCodeText:Ke?Wn:null}});fr.primaryButtonClick.pipe((0,g.s)(1)).subscribe(()=>{this.logger.info("close clicked "),fr.close()})}sendSelfUpdateTelemetry(Ke,we,C,w,Q){const me=new Pt.OCG({category:Ke,action:we,errorDetails:C,status:w,newVersion:Q});this.telemetry.push(me)}}(Is=dc).zeroVersion=new Wa.U("0"),Is.\u0275fac=function(Ke){return new(Ke||Is)(c.KVO(La.Uj),c.KVO(l.J6),c.KVO(Mi.Vk),c.KVO(l.dU),c.KVO(Po.yQ),c.KVO(P.H0),c.KVO(Pt.jgD),c.KVO(l.NZ),c.KVO(l.zW),c.KVO(n.bZ),c.KVO(T.c_),c.KVO(T.uh),c.KVO(At.Q5))},Is.\u0275prov=c.jDH({token:Is,factory:Is.\u0275fac,providedIn:"root"}),d(21333);var Kg=d(33089),Zg=d(64962),Qg=d(8094);let lg=(()=>{var j;class Ke{constructor(C,w,Q){this.idmService=C,this.loggingService=w,this.sharedStorageService=Q,this.currentUserId="undefined",this.currentUserConsent=P.wx,this.userConsentFetchedSubject=new Be.m(1),this.logger=this.loggingService.getLogger("UserConsentWrapperService")}initialize(){this.readSharedStorageConsent(),this.onUserAccountStatusChanged(),this.onJarvisUserDataChanged()}hasUserIdChanged(C){return!(0,a.isEqual)(this.currentUserId,C)}hasUserConsentChanged(C){return!(0,a.isEqual)(this.currentUserConsent,C)}setCurrentUserData(C,w){this.currentUserId=C,this.currentUserConsent=w}readSharedStorageConsent(){this.sharedStorageService.readBlock("userConsentInfo").subscribe(C=>{!(0,a.isUndefined)(C)&&this.hasUserIdChanged(C.userId)&&this.hasUserConsentChanged(C.userConsent)&&(this.setCurrentUserData(C.userId,C.userConsent),this.userConsentFetchedSubject.next({userId:C.userId,externalUserId:C.externalUserId,idpId:C.idpId,userConsent:C.userConsent}))})}onUserAccountStatusChanged(){this.idmService.accountStatusChanged.subscribe(C=>{if(C.isAuthenticated){const w=(0,Qg.A$)(C);this.hasUserIdChanged(C.userId)&&this.hasUserConsentChanged(w)&&(this.setCurrentUserData(C.userId,w),this.userConsentFetchedSubject.next({userId:C.userId,externalUserId:C.externalId,idpId:C.idpId,userConsent:w}))}else this.setCurrentUserData(C.userId,P.bC),this.userConsentFetchedSubject.next({userId:"",externalUserId:"",idpId:"",userConsent:void 0})})}onJarvisUserDataChanged(){this.idmService.accountStatusChanged.subscribe(C=>{if(C.isAuthenticated){const w=(0,Qg.A$)(C);this.hasUserIdChanged(C.userId)&&this.hasUserConsentChanged(w)&&(this.setCurrentUserData(C.userId,w),this.userConsentFetchedSubject.next({userId:C.userId,externalUserId:C.externalId,idpId:C.idpId,userConsent:w}))}else this.hasUserIdChanged(C.userId)&&this.userConsentFetchedSubject.next({userId:"",externalUserId:"",idpId:"",userConsent:void 0})})}getUserConsentFetchedSubjectObservable(){return this.userConsentFetchedSubject.asObservable()}getLogoutInitiatedNotification(){return this.idmService.getLogoutInitializeNotification()}sameTabAuthStarted(){return this.idmService.sameTabAuthStarted()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(Ai.k_),c.KVO(l.J6),c.KVO(Po.yQ))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();const Hu="saveAppInstanceId";let ju=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr){this.appConfig=C,this.systemInfoService=w,this.telemetryService=Q,this.remoteLoggingService=me,this.userConsentWrapperService=Ye,this.loggingService=bt,this.sharedStorageService=cn,this.logQueueService=Wn,this.gfnWebWorkerService=xi,this.telemetryUtilService=Yi,this.injector=fr,this.defaultConsent=P.wx,this.appInstanceIdSubject=new J.t(""),this.appInstanceId=l.Qe,this.waitForLogRestore$=new Be.m(1),this.eventParamIds={streamSessionId:"",surveySessionId:""},this.clientVersion="",this.logger=this.loggingService.getLogger("GfcHelperService")}restoreAllData(){null!==window.sessionStorage.getItem(Hu)&&(this.remoteLoggingService.restoreSavedLogs(),this.appInstanceId=window.sessionStorage.getItem(Hu),window.sessionStorage.removeItem(Hu)),this.waitForLogRestore$.next(!0)}getLogoutInitializeNotification(){this.userConsentWrapperService.getLogoutInitiatedNotification().subscribe(C=>{this.remoteLoggingService.handleExternalUrlLoad()})}saveLogsOnLoginClick(){this.logger.info("Subscribing to Login initiated notification"),this.userConsentWrapperService.sameTabAuthStarted().subscribe(C=>{C===Kt.l4.LoginStarted&&(this.logger.info("Received notification for ",C),window.sessionStorage.setItem(Hu,this.appInstanceId),this.remoteLoggingService.saveLogsToSessionStorage(),this.logger.info("Completed saving appInstanceId and Logs"))})}initialize(C,w=this.eventParamIds){this.clientVersion=C,this.restoreAllData(),this.saveLogsOnLoginClick();const Q=this.appConfig.gfcFeedbackEvents;this.remoteLoggingService.setBufferConfiguration({msBetweenChunkCreation:Q.msBetweenChunkCreation,maxBufferSizeInBytes:Q.maxBufferSizeInBytes,chunksQueueSize:Q.chunksQueueSize,chunkResendRetryLimit:Q.chunkResendRetryLimit}),this.userConsentWrapperService.initialize(),this.prepareAllGfcEventParams(w),this.registerForTimerRequests().subscribe(a.noop,me=>{this.logger.error("Error getting timer updates")}),this.telemetryService.getDefaultClientConsentObserable().subscribe(()=>{this.defaultConsent=P.bC,this.remoteLoggingService.defaultConsentLevel=P.bC}),this.getLogoutInitializeNotification()}onTimerUpdate(C){C===Zg.Yk.Timeout||C===Zg.Yk.Cleared?this.logQueueService.updateTimer(C):this.logger.error("Error polling for idle timeout: ",C)}registerForTimerRequests(){return this.logQueueService.timerSubscriptionChanged().pipe((0,_i.n)(C=>this.gfnWebWorkerService.intervalHandler(C,this.onTimerUpdate.bind(this))))}buildGFNPCLogsFeedbackData(C){return this.systemInfoService.getSystemInfo([l.Lu.BrowserName,l.Lu.BrowserVersion,l.Lu.OSName,l.Lu.OSVersion]).pipe((0,wt.T)(w=>{const Q=(0,a.extend)({},{appInstanceId:C.appInstanceId,streamSessionId:C.streamSessionId||"",browserName:w.BrowserName||"",browserVersion:w.BrowserVersion||"",osName:w.OSName||"",osVersion:w.OSVersion||"",streamSubSessionIds:[],surveySessionId:C.surveySessionId||""});return this.logger.info("Prepared gfc feedback event params."),this.remoteLoggingService.prepareGfcFeedbackEventParams(Q),!0}))}setAppInstanceIdInIndexedDb(C){return this.sharedStorageService.writeBlock("gfc",{appInstanceId:C})}prepareGfnPcLogsEventParams(C){let w;return this.waitForLogRestore$.pipe((0,nt.ZZ)(Q=>(this.appInstanceId===l.Qe&&(this.appInstanceId=(0,xe.bz)()),this.setAppInstanceIdInIndexedDb(this.appInstanceId))),(0,nt.ZZ)(Q=>(w=Q,C.appInstanceId=this.appInstanceId,this.buildGFNPCLogsFeedbackData(C))),(0,on.M)(Q=>{w&&(console.log("Application InstanceId: ",this.appInstanceId),this.appInstanceIdSubject.next(this.appInstanceId))}))}getClientVariantType(C){switch(C){case"ibeta":return l.zg.iBeta;case"release":return l.zg.Release;default:return l.zg.Undefined}}fetchCommonDataFromSystem(C,w){return(0,Vt.zV)([this.systemInfoService.getSystemInfo([l.Lu.DeviceId,l.Lu.OSName,l.Lu.OSVersion,l.Lu.SystemName,l.Lu.DeviceType,l.Lu.BrowserName]),this.userConsentWrapperService.getUserConsentFetchedSubjectObservable()]).pipe((0,wt.T)(([Q,me])=>{const Ye={clientVer:this.clientVersion,deviceId:Q.DeviceId,sessionId:this.telemetryService.telemetrySessionId,feedbackId:this.telemetryService.telemetrySessionId,feedbackName:C,fileList:w,clientType:l.sK.Browser,clientVariant:this.getClientVariantType(this.appConfig.build.variant),deviceOS:Q.OSName,deviceOSVersion:Q.OSVersion??l.Qe,deviceMake:l.Qe,deviceModel:Q.SystemName||l.Qe,deviceType:Q.DeviceType,browserType:Q.BrowserName??l.Qe,integrationId:this.telemetryUtilService.getIntegrationId(),deviceGdprFuncOptIn:this.defaultConsent.functional,deviceGdprTechOptIn:this.defaultConsent.technical,deviceGdprBehOptIn:this.defaultConsent.behavioral,productName:this.appConfig.gfcFeedbackEvents.productName,productVersion:this.clientVersion||l.Qe};return this.logger.trace(xe.N_.UserDetails,xe.YD.UserInfo,"Feedback id is "+Ye.feedbackId),this.logger.trace(xe.N_.UserDetails,xe.YD.UserInfo,"Client version is "+Ye.clientVer),(0,a.isEmpty)(me.userId)||me.userId===l.Qe?(Ye.userId=l.Qe,Ye.externalUserId=l.Qe,Ye.idpId=l.Qe):(Ye.userId=me.userId,Ye.externalUserId=me.externalUserId,Ye.idpId=me.idpId),me?.userConsent&&(Ye.gdprFuncOptIn=me.userConsent.functional,Ye.gdprTechOptIn=me.userConsent.technical,Ye.gdprBehOptIn=me.userConsent.behavioral),Ye}),(0,Un.W)(Q=>(this.logger.error("Error fetching common device info: ",Q),(0,Ut.$)(Q))))}prepareFeedbackEventCommonParameters(){return console.log("telemetry sessionId/feedbackId ",this.telemetryService.telemetrySessionId),this.fetchCommonDataFromSystem("GFNPCLogs",[{name:"mall_console.txt",type:"file/gfnwebobfuscation"}]).pipe((0,_i.n)(w=>(this.remoteLoggingService.prepareFeedbackCommonEventData(w),this.logger.info("Prepared common gfc feedback event params."),(0,it.of)(!0))),(0,Un.W)(w=>(this.logger.error("Error fetching systeminfo or deviceId: ",w),(0,it.of)(!1))))}prepareAllGfcEventParams(C){const w=this.prepareFeedbackEventCommonParameters(),Q=this.prepareGfnPcLogsEventParams(C);(0,Vn.yU)(w,Q).subscribe(me=>{!(0,a.isUndefined)(me)&&me[0]&&me[1]&&this.handleUserConsentUpdates()})}handleUserConsentUpdates(){this.userConsentWrapperService.getUserConsentFetchedSubjectObservable().subscribe(C=>{(0,a.isEmpty)(C.userId)?this.remoteLoggingService.prepareFeedbackCommonEventData({userId:l.Qe}):(C.userId!==l.Qe||!(0,a.isEmpty)(C.userId))&&(this.remoteLoggingService.prepareFeedbackCommonEventData({userId:C.userId}),this.remoteLoggingService.setUserConsent({userId:C.userId,externalUserId:C.externalUserId,idpId:C.idpId,userConsent:C.userConsent}))})}updateEventDataParamIds(C){this.remoteLoggingService.updateEventDataParamIds(C)}getAppInstanceId(){return this.appInstanceIdSubject.asObservable()}terminateRemoteLogSession(){this.logger.info("Terminating log collection."),this.remoteLoggingService.stopFeedbackUpload()}triggerExceptionInfoUpload(C){const w=this.injector.get(Kg.NO);if(w){this.logger.info("EndPoints service available");const{exceptionTrace:Q,...me}=C;(0,Vt.zV)([this.remoteLoggingService.feedbackId$,this.fetchCommonDataFromSystem("GFNUIException")]).pipe((0,g.s)(1),(0,nt.ZZ)(([Ye,bt])=>{this.logger.info("feedbackId:",Ye),bt.clientTs=(new Date).toISOString(),bt.feedbackId=(0,xe.bz)();let cn=!1;bt.gdprTechOptIn===l.Rg.Full&&(bt.fileList=[{name:"exception_trace.txt",type:"file/js-stacktrace"}],cn=!0),this.logger.info("Common data:",bt);const Wn={...bt,parameters:{...me}};return Wn.parameters.logsFeedbackId=Ye,w.sendFeedbackBasedOnTechConsent(Wn,cn,Q)})).subscribe(()=>{this.logger.info("Exception data sent successfully")},Ye=>{this.logger.info("Error uploading exception info:",Ye)})}else this.logger.info("EndPoints service not available, not uploading the feedback event")}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(Mi.Vk),c.KVO(l.zW),c.KVO(P.H0),c.KVO(l.Vn),c.KVO(lg),c.KVO(l.J6),c.KVO(Po.yQ),c.KVO(l.V9),c.KVO(Zg.JS),c.KVO(Pt.jgD),c.KVO(c.zZn))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var cg=Qe.Or.Common.Discord.DiscordAsset;let Jg=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye){this.bridgeService=w,this.settingsService=Q,this.appConfig=me,this.translate=Ye,this.logger=C.getLogger("DiscordService"),this.discordRpEnabled=true,this.featureEnabled=this.appConfig.featureEnablement.discordRichPresence&&l.zk.isCefPlatform()||!1,this.settingsService.getSettingsData().subscribe(bt=>{this.discordRpEnabled=(0,a.get)(bt,"discordRpEnabled",true)},bt=>this.logger.error("Failed to get settings data",bt))}updatePresence(C){!this.featureEnabled||!C||this.translate.get("discord.playing",{title:C}).subscribe(w=>(this.currentPresence={details:w.trim().substring(0,128),largeImageKey:cg.Large},this.discordRpEnabled&&this.updatePresenceCommand(this.currentPresence)))}clearPresence(){!this.featureEnabled||!this.currentPresence||(this.currentPresence=null,this.clearPresenceCommand())}updatePresenceCommand(C){if(!(0,a.isEmpty)(C))return this.logger.info("Updating rich presence with params",C),this.bridgeService.executeCommand(Qe.Ts.Common.Discord.UpdatePresence,C).subscribe()}clearPresenceCommand(){return this.logger.info("Clearing rich presence"),this.bridgeService.executeCommand(Qe.Ts.Common.Discord.ClearPresence,{}).subscribe()}setDiscordEnabled(C){this.discordRpEnabled=C,C?this.updatePresenceCommand(this.currentPresence):this.clearPresenceCommand()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(l.NZ),c.KVO(oa),c.KVO(Mi.Vk),c.KVO(Ze.c$))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();d(98231),d(6693),d(15074);var Sh=d(38006);let ug=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi){this.appConfig=w,this.distributedTracingUtilService=Q,this.systemInfoService=me,this.nesUserInfoService=Ye,this.sharedStorageCachingService=bt,this.localeService=cn,this.router=Wn,this.gridService=xi,this.userConsentService=Yi,this.disableTracingReplaySubject=new Be.m(1),this.globalTagsReplaySubject=new Be.m(1),this.acceptableFunctionalConsentLevels=[l.Rg.Full,l.Rg.Temp],this.logger=C.getLogger("gfn/distributed-tracing-initializer")}initializeDistributedTracing(){this.userConsentService.getUserConsent$().subscribe(w=>{const Q=!this.acceptableFunctionalConsentLevels.includes(w.functional);this.disableTracingReplaySubject.next(Q)});const C={exportConfig:{...this.appConfig.otelTracerConfig},propagationConfig:{openTracingContextPropagation:this.appConfig.openTelemetry.useOpenTracingContextPropagation},statusCodeZeroAnalyzerConfig:this.appConfig.statusCodeZeroAnalyzerConfig,apiTracingConfig:{urlRegex:this.appConfig.distributedTracing.xhrAllowList}};this.distributedTracingUtilService.initializeDistributedTracing(C,this.disableTracingReplaySubject,this.globalTagsReplaySubject),this.setGlobalTags()}setGlobalTags(){const C=(0,it.of)({[Pr.NS.ServiceVersion]:(0,Mi.Cl)(this.appConfig),[Pr.NS.ServiceType]:Pr.Se.Pc_A7,[Pr.NS.SpanKind]:Pr.ls.Client,[Pr.NS.AppName]:(0,Ii.I2)(this.router.url)?Ii.td.Streamer:Ii.td.Mall}),w=this.systemInfoService.getSystemInfo([l.Lu.DeviceId]).pipe((0,wt.T)(cn=>({[Pr.NS.DeviceId]:cn.DeviceId})),(0,Rn.Z)({})),Q=this.systemInfoService.getSystemInfo([l.Lu.OSName,l.Lu.OSVersion,l.Lu.Platform]).pipe((0,wt.T)(cn=>({[Pr.NS.ClientOs]:cn.Platform,[Pr.NS.ClientOsName]:cn.OSName,[Pr.NS.ClientOsVersion]:cn.OSVersion})),(0,Rn.Z)({}),(0,Un.W)(cn=>(this.logger.info(`Error fetching osInfo: ${cn}`),(0,it.of)({})))),me=this.fetchCountryCode().pipe((0,wt.T)(cn=>({[Pr.NS.CountryCode]:cn})),(0,Rn.Z)({})),Ye=this.localeService.localeChanged.pipe((0,wt.T)(cn=>({[Pr.NS.Locale]:cn})),(0,Rn.Z)({})),bt=this.gridService.vpcId$.pipe((0,wt.T)(cn=>({[Pr.NS.VpcId]:cn})),(0,Rn.Z)({}),(0,Un.W)(cn=>(this.logger.info(`Error fetching vpcId: ${cn}`),(0,it.of)({[Pr.NS.VpcId]:Pr.Af.VpcId}))));(0,Vt.zV)([C,w,Q,me,Ye,bt]).subscribe(([cn,Wn,xi,Yi,fr,Gr])=>{const ao=(0,a.merge)({},cn,Wn,xi,Yi,fr,Gr);this.logger.info("Setting the global tags:",ao),this.globalTagsReplaySubject.next(ao)})}fetchCountryCode(){return this.sharedStorageCachingService.getItem(Sh.up.CountryCode).pipe((0,nt.ZZ)(C=>{if((0,a.isNil)(C.data))return this.logger.info("Cound not find countrycode in shared storage so fetching from NES"),this.nesUserInfoService.getCountryCode();if(C.expired){if(!this.sharedStorageCachingService.isExpiredValueAllowed(Sh.up.CountryCode))return this.logger.info("Expired values not allowed for country code hence fetching fresh value from NES"),this.nesUserInfoService.getCountryCode();this.logger.info("The cached country code value is expired so refreshing in backgound"),this.refreshCountryCodeInBackground()}return this.logger.info(`Using the country code from cache ${C.data}`),(0,it.of)(C.data)}))}refreshCountryCodeInBackground(){this.nesUserInfoService.getCountryCode().subscribe()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Mi.Vk),c.KVO(Pr.Z1),c.KVO(l.zW),c.KVO(qe.l),c.KVO(Sh.VC),c.KVO(l.iH),c.KVO(hn.Ix),c.KVO(lt.G),c.KVO(bm.F))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Mh=d(70650),El=d(19392);const qg=["portable","laptop","sub notebook","convertible","detachable","notebook"];var nl=function(j){return j.Unknown="-1",j.Disabled="0",j.Enabled="1",j}(nl||{}),ql=function(j){return j.Locale="Locale",j.SystemInfo="SystemInfo",j.User="User",j.Init="Init",j.Geo="Geo",j}(ql||{});const Qp={hasGeoInfo:!0,hasLocaleInfo:!0,hasSystemInfo:!0,hasUserInfo:!1},tp={additionalHwInfo:!1,geo:!1},gg=[{LCID:[1029],code:"cs-CZ",name:"\u010ce\u0161tina (Czech)",isoThreeLetter:"ces",countryCode:"CZ"},{LCID:[1030],code:"da-DK",name:"Dansk (Danish)",isoThreeLetter:"dan",countryCode:"DK"},{LCID:[1031,3079,5127,4103,2055],code:"de-DE",name:"Deutsch (German)",isoThreeLetter:"deu",countryCode:"DE"},{LCID:[1032],code:"el-GR",name:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac (Greek)",isoThreeLetter:"ell",countryCode:"GR"},{LCID:[1033],code:"en-US",name:"English - United States",isoThreeLetter:"eng",countryCode:"US"},{LCID:[2057,1078,1052,1118,1067,1101,1068,5146,1026,1109,1050,4122,1125,2067,1126,3081,10249,6153,5129,7177,12297,1061,1127,1071,2108,1084,1079,1129,1039,1136,1137,2144,1120,1087,1153,2128,2068,1048,2074,1091,1093,2117,16393,1081,1121,2145,1094,2118,1113,2137,1115,2080,3081,15369,14345,17417,5129,13321,18441],code:"en-GB",name:"English - United Kingdom",isoThreeLetter:"eng",countryCode:"GB"},{LCID:[3082,1069,1027,1034],code:"es-ES",name:"Espa\xf1ol - Espa\xf1a (Spanish - Spain)",isoThreeLetter:"spa",countryCode:"ES"},{LCID:[2058,11274,16394,13322,9226,5130,7178,12298,17418,4106,18442,58378,19466,6154,15370,10250,20490,21514,14346,8202],code:"es-MX",name:"Espa\xf1ol - M\xe9xico (Spanish - Mexico)",isoThreeLetter:"spa",countryCode:"MX"},{LCID:[1035],code:"fi-FI",name:"Suomi (Finnish)",isoThreeLetter:"fin",countryCode:"FI"},{LCID:[1036,2060,11276,3084,9228,12300,15372,5132,13324,6156,14348,58380,8204,10252,4108,7180,1122],code:"fr-FR",name:"Fran\xe7ais (French)",isoThreeLetter:"fra",countryCode:"FR"},{LCID:[1038],code:"hu-HU",name:"Magyar (Hungarian)",isoThreeLetter:"hun",countryCode:"HU"},{LCID:[1040,2064],code:"it-IT",name:"Italiano (Italian)",isoThreeLetter:"ita",countryCode:"IT"},{LCID:[1041],code:"ja-JP",name:"\u65e5\u672c\u8a9e (Japanese)",isoThreeLetter:"jpn",countryCode:"JP"},{LCID:[1042],code:"ko-KR",name:"\ud55c\uad6d\uc5b4 (Korean)",isoThreeLetter:"kor",countryCode:"KR"},{LCID:[1043],code:"nl-NL",name:"Nederlands (Dutch)",isoThreeLetter:"nld",countryCode:"NL"},{LCID:[1044,14],code:"nb-NO",name:"Norsk (Norwegian)",isoThreeLetter:"nor",countryCode:"NO"},{LCID:[1045],code:"pl-PL",name:"Polski (Polish)",isoThreeLetter:"pol",countryCode:"PL"},{LCID:[2070],code:"pt-PT",name:"Portugu\xeas - Portugal (Portuguese - Portugal)",isoThreeLetter:"por",countryCode:"PT"},{LCID:[1046,2070],code:"pt-BR",name:"Portugu\xeas - Brasil (Portuguese - Brazil)",isoThreeLetter:"por",countryCode:"BR"},{LCID:[1049,2092,1059,1088,1104,2073,3098,2115],code:"ru-RU",name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439 (Russian)",isoThreeLetter:"rus",countryCode:"RU"},{LCID:[1051],code:"sk-SK",name:"Sloven\u010dina (Slovak)",isoThreeLetter:"slk",countryCode:"SK"},{LCID:[1060],code:"sl-SI",name:"Sloven\u0161\u010dina (Slovenian)",isoThreeLetter:"slv",countryCode:"SI"},{LCID:[1053],code:"sv-SE",name:"Svenska (Swedish)",isoThreeLetter:"swe",countryCode:"SE"},{LCID:[1054],code:"th-TH",name:"\u0e44\u0e17\u0e22 (Thai)",isoThreeLetter:"tha",countryCode:"TH"},{LCID:[1055],code:"tr-TR",name:"T\xfcrk\xe7e (Turkish)",isoThreeLetter:"tur",countryCode:"TR"},{LCID:[1058],code:"uk-UA",name:"Ukrainian (Ukraine)",isoThreeLetter:"ukr",countryCode:"UA"},{LCID:[2052,804,4],code:"zh-CHS",cmsCode:"zh_CN",name:"\u7b80\u4f53\u4e2d\u6587 (Chinese - Simplified)",isoThreeLetter:"zho",countryCode:"CN"},{LCID:[3076,1028,4100,404,5124,31748],code:"zh-CHT",cmsCode:"zh_TW",name:"\u7e41\u9ad4\u4e2d\u6587 (Chinese - Traditional)",isoThreeLetter:"zho",countryCode:"CN"}];var uf=Qe.Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum;let pg=(()=>{var j;class Ke{}return(j=Ke).\u0275fac=function(C){return new(C||j)},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac}),Ke})(),Fm=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye){this.config=w,this.systemInfoService=Q,this.localeService=me,this.injector=Ye,this.logger=C.getLogger("crimson/sdk/gfwsl/GfwslParamsService"),this.config.includedParams=this.config.includedParams||tp,this.params={gcV:this.config.appVersion},this.hasGeneralSystemInfo=!1,this.hasGenericSystemInfo=!1,this.hasGpuInfo=!1,this.hasLocaleInfo=!1,this.hasUserInfo=!1,this.hasGeoInfo=!1,this.gfwslParamsUpdated$=new J.t(this.getParamEventData(ql.Init))}digestMessage(C){return(0,Mh.A)(function*(){const w=(new TextEncoder).encode(C),Q=yield crypto.subtle.digest("SHA-256",w);return Array.from(new Uint8Array(Q)).map(bt=>bt.toString(16).padStart(2,"0")).join("")})()}getParamEventData(C){return{type:C,hasSystemInfo:this.isSystemInfoComplete(),hasLocaleInfo:this.hasLocaleInfo,hasUserInfo:this.hasUserInfo,hasGeoInfo:this.hasGeoInfo,params:this.params}}isSystemInfoComplete(){return this.hasGeneralSystemInfo&&this.config.includedParams.additionalHwInfo===this.hasGenericSystemInfo&&this.config.includedParams.additionalHwInfo===this.hasGpuInfo}get gfwslParamsUpdated(){return this.gfwslParamsUpdated$}initialize(){this.processSystemInfo(),this.processLocaleInfo(),this.config.includedParams.additionalHwInfo&&(this.hardwareService=this.injector.get(l.SQ),this.hardwareService||this.logger.error("ERROR:: Failed to obtain HardwareInformationService"),this.processGenericInfo(),this.processGpuInfo()),this.config.includedParams.geo&&this.initGeoService(),(0,El.H)(this.digestMessage(this.config.userAgent+"/"+this.params.gcV)).subscribe(C=>{this.params.aiD=C})}onAccountStatusChanged(C,w,Q,me,Ye){this.params.jUid=w?btoa(C):C,this.hasUserInfo=w,this.params.uCst=[Q===P.Rg.Full?nl.Enabled:nl.Disabled,me===P.Rg.Full?nl.Enabled:nl.Disabled,Ye===P.Rg.Full?nl.Enabled:nl.Disabled],this.gfwslParamsUpdated$.next(this.getParamEventData(ql.User))}onGfwslParamsReady(C=Qp){return this.gfwslParamsUpdated$.pipe((0,ge.p)(w=>this.checkAvailableGfwslParams(C,w)),(0,g.s)(1))}initGeoService(){this.processGeoInfo()}checkAvailableGfwslParams(C,w){for(const Q of Object.keys(C))if(C[Q]!==w[Q])return!1;return!0}processSystemInfo(){this.systemInfoService.getSystemInfo([l.Lu.OSName,l.Lu.OSVersion,l.Lu.ProcessorArchitecture,l.Lu.UserDefaultUILanguage,l.Lu.PhysicalMemoryCapacity]).subscribe(C=>{this.params.is6="x64"===C.ProcessorArchitecture?nl.Enabled:nl.Disabled,({ProcessorArchitecture:this.params.pArch,CPUName:this.params.cID}=C),[this.params.osC,this.params.osB]=this.getOSInfo(C.OSName,C.OSVersion),this.params.sM=this.computeMemory(C),this.params.IsB=nl.Disabled,this.params.gIsB=nl.Disabled,this.params.apRT="802.11a",this.userDefaultUILanguage=C.UserDefaultUILanguage,this.params.sdWmfp=nl.Enabled,this.params.O=`${this.params.pArch}/${this.params.osC}`,this.hasGeneralSystemInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(ql.SystemInfo))},C=>{this.logger.error("System info errored out",C)})}processGenericInfo(){this.hardwareService.getGenericInfo(!1).subscribe(C=>{(0,a.isEqual)(C,this.genericInfo)||(this.genericInfo=C,this.params.iLp=qg.includes(C.MoboType?.toLowerCase())?nl.Enabled:nl.Disabled,this.params.isCRD=(C.DriverType?C.DriverType:uf.GameReadyDriver).toString(),this.params.sM=this.computeMemory(C),({DriverVersion:this.params.GFPV,CurrentResolution:this.params.cSR,IsDCHDriverInstalled:this.params.dch}=C),this.params.GFPV=this.params.GFPV?this.params.GFPV:"0.00",this.hasGenericSystemInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(ql.SystemInfo)))},C=>{this.logger.error("Generic info errored out",C)})}computeMemory(C){const w=C.TotalPhysicalMemory&&parseInt(C.TotalPhysicalMemory,10)>.1?C.TotalPhysicalMemory:C.PhysicalMemoryCapacity;return`${(parseInt(w,10)/1024**3).toFixed()}GB`}getOSInfo(C,w){const Q=w.split(".");let me="";return C.match(/windows/i)&&(me=Q.pop()),[Q.join("."),me]}processGpuInfo(){this.hardwareService.getGpuInfo(!1).subscribe(C=>{if(0===(0,a.size)(C.GPU))return void this.logger.error("Empty GPU list in gpu hardware info",C);const w=C.GPU.find(Q=>Q.IsPrimary===nl.Enabled)||C.GPU[0];this.params.IsQ=w.IsQuadro,this.params.D=JSON.parse(`{"VEN_${w.VendorId}&DEV_${w.DeviceId}":"DISPLAY"}`),this.params.dIDa=this.getGpuDeviceIdArray(C),this.params.dFma=this.getGpuDeviceFamilyArray(C),this.params.isO=C.IsOptimus,this.params.isSLI=this.computeSliStatus(C.SLI),this.params.pgpuId=this.getPrimaryGpuId(C),this.hasGpuInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(ql.SystemInfo))},C=>{this.logger.error("GPU info errored out",C)})}getPrimaryGpuId(C){let w=null;return C.GPU.every(Q=>!Q.IsPrimary||(w=Q.GpuHandle,!1)),w}getGpuDeviceIdArray(C){return Array.from(this.getSortedGpuArray(C),(w,Q)=>this.buildGpuDeviceId(w,Q))}getSortedGpuArray(C){return Array.from(C.GPU).sort(w=>w.IsPrimary===nl.Enabled?-1:1)}buildGpuDeviceId(C,w){let Q="";return C.DeviceId&&C.VendorId?(Q=`${C.DeviceId}_${C.VendorId}`,Q=C.SubSystemId&&C.SubVendorId?`${Q}_${C.SubSystemId}_${C.SubVendorId}`:`${Q}_FFFF_FFFF`):(this.logger.error("GPU info has invalid DeviceId and/or VendorId",C),Q="FFFF_FFFF_FFFF_FFFF"),`${Q}_${++w}`}getGpuDeviceFamilyArray(C){return Array.from(this.getSortedGpuArray(C),w=>parseInt(w.GPUArchitecture,10).toString(16))}computeSliStatus(C){return C.SLISupported===nl.Enabled&&C.HasActiveSLITopology===nl.Enabled?C.ActiveTopologyGPUCount:C.SLISupported}processGeoInfo(){this.params.go="",this.hasGeoInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(ql.Geo))}onUserConsentUpdated(C){this.params.uCst=[this.getFunctionalConsent(C),this.getGfwslConsent(C,"trackTechnicalData"),this.getGfwslConsent(C,"trackBehavioralData")]}getFunctionalConsent(C){return this.formatConsentForGfwsl(C.consentSettings?C.consentSettings.trackFunctionalData:{level:P.Rg.None})}formatConsentForGfwsl(C){return C.level===P.Rg.Full?nl.Enabled:nl.Disabled}getGfwslConsent(C,w){return C.consentSettings?this.formatConsentForGfwsl(C.consentSettings[w]):C.privacySettings&&C.privacySettings.dataTracking?this.formatConsentForGfwsl(C.privacySettings.dataTracking[w]):nl.Unknown}processLocaleInfo(){this.localeService.localeChanged.subscribe(C=>{this.setGfwslLocaleParams(C),this.hasLocaleInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(ql.Locale))},C=>{this.logger.error("Locale info errored out",C)})}setGfwslLocaleParams(C){const w=gg.find(me=>me.code===(C??this.userDefaultUILanguage)?.replace("_","-")||me.cmsCode===C),Q=w?.LCID[0].toString();this.params.gLg=w?.code,this.params.lg=Q,this.params.L={CC:w?.isoThreeLetter,LCID:Q}}getParams(C={},w){C=(0,a.omitBy)(C,me=>"string"==typeof me&&"CTP_"===me.slice(0,4));let Q=(0,a.assignIn)({},this.params,C);return w&&(Q=(0,a.pick)(Q,w)),Q}getServer(){return this.config.server}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(pg),c.KVO(l.zW),c.KVO(l.iH),c.KVO(c.zZn))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),Bm=(()=>{var j;class Ke{}return(j=Ke).\u0275fac=function(C){return new(C||j)},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac}),Ke})(),hf=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye){this.endpointFactory=w,this.gfwslParamsService=Q,this.config=me,this.distributedtracingUtilService=Ye,this.logger=C.getLogger("crimson/sdk/aem/AemService"),this.endpointMap=new Map,this.endpointDefinitionMap=new Map,this.endpointRetryConfig={},({defaultRetries:this.endpointRetryConfig.maxRetries,defaultTimeBetweenRetries:this.endpointRetryConfig.timeBetweenRetries,defaultTimeout:this.endpointRetryConfig.timeout}=this.config)}setUrlGenerator(C,w,Q){let me;const Ye=JSON.stringify(this.gfwslParamsService.getParams(Q,w.paramMask));return me=(0,xe.l2)([C,w.classPath,w.clientPath,w.endpointPath]),(0,a.isEmpty)(Ye)||(me=me+"?"+Ye),me}addEndpointDefinitions(C){C.forEach(w=>{const Q=w.name;this.endpointDefinitionMap.set(Q,w),this.endpointMap.set(Q,this.endpointFactory.createEndpoint(w))})}callAemEndpoint(C,w,Q,me={},Ye={},bt){const cn=this.endpointMap.get(C),Wn=this.endpointDefinitionMap.get(C);if(!cn)return(0,Ut.$)(`No endpoint found for ${C}. Add this definition with the initialize call.`);w=this.gfwslParamsService.getParams(w,Wn.paramMask);const xi=this.setUrlGenerator(this.config.server,Wn,w);this.logger.info("Going to call AEM URL:",xi,"with dynamic headers:",Ye);const Yi={config:this.endpointRetryConfig,body:me,headers:{...Wn.headers,...Ye},includeRequestId:!1,reportRequestData:(0,a.isNil)(Q)?{}:{...Q}},fr=cn.makeRequestEx(Wn.method,xi,Yi);return this.distributedtracingUtilService.handleHttpEndpointSpan(fr,Yi,Pr.pB.GetAemReleaseHighlights,bt)}setConfigServer(C){this.config.server=C}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(go.t),c.KVO(Fm),c.KVO(Bm),c.KVO(Pr.Z1))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var cd=function(j){return j.services="services/com.nvidia.services/",j}(cd||{}),uc=function(j){return j.GfeClient="AEMGFEClientContent",j}(uc||{}),yh=function(j){return j.Get="GET",j.Post="POST",j}(yh||{});const Wu="releaseHighlightStatus",yu="releaseHighlightsOnAppUpdate",mg={go:"IN",sM:"32GB",osC:"10.0",osB:"7601",is6:"1",GFPV:"385.69",iLp:"0"},bu={name:"gfnReleaseHighlightsHtml",classPath:cd.services,clientPath:uc.GfeClient,endpointPath:"/getStyledClientReleaseHighlightsHtml",method:yh.Get,paramMask:["cNm","cmID","gcV","lg","gLg","go","cID","dIDa","sM","osC","osB","is6","GFPV","gIsB","iLp","isO","isSLI","cSR","isInst","Plt","clVt"]};let Yu=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi){this.localService=Q,this.matDialog=me,this.aemService=Ye,this.sharedStorage=bt,this.remoteConfigurationService=cn,this.telemetryUtilService=Wn,this.systemInfoService=xi,this.focusManager=Yi,this.releaseHighlightsData={shown:!1},this.aemEndpointDefintions=[],this.aemEndpointDefintions.push(bu),this.logger=w.getLogger("gfn/releaseHighlights"),this.aemService.addEndpointDefinitions(this.aemEndpointDefintions),this.platform$=this.telemetryUtilService.getPlatform(),this.clientVariant=this.telemetryUtilService.getClientVariant(),this.osInfo$=this.systemInfoService.getSystemInfo([l.Lu.OSName]),this.mobileMode=!!C?.featureEnablement?.mobileMode,this.showBackButton=!!C?.backNavigation?.showBackButton}getReleaseHighlight(){return this.getAemReleaseHighlights().pipe((0,wt.T)(C=>({title:"common.releaseHighlights",subTitle:"",body:C.body.gfcontent.body,style:"dialog-service-container-size"})))}getAemReleaseHighlights(){return(0,Vn.yU)(this.localService.localeChanged,this.platform$,this.osInfo$).pipe((0,nt.ZZ)(([C,w,Q])=>this.aemService.callAemEndpoint("gfnReleaseHighlightsHtml",{cmID:"",gcV:this.clientVersion,gLg:C,lg:"",...mg,cNm:l.zk.isNativeLikePlatform()?"gfn":"gfnb",isInst:this.isInstallScenario,Plt:l.zk.isNativeLikePlatform()?w:(0,al.WC)(Q.OSName.toString()),clVt:this.clientVariant},{originalService:Pt.Uu$.Aem,serviceUseCase:Pt.OOF.Get_Release_Highlights},{},{"Content-Type":"text/plain"},void 0)))}updateReleaseHighlightsStatusInSharedStorage(C){return this.sharedStorage.writeBlock(Wu,{appVersion:C,isDialogShown:!0})}showReleaseHighlightsFromRemoteConfig(C){return this.remoteConfigurationService.remoteConfigFetched$.pipe((0,nt.ZZ)(w=>{const Q=new Wa.U(C);if((0,a.isNil)(w.config)||(0,a.isNil)(w.config.releaseHighlights))return this.logger.info("Remote config value not set for Release highlights."),(0,it.of)(!1);{const me=w.config.releaseHighlights.showReleaseHighlightsForAppVersion;return this.logger.info("Remote config value for Release highlights: ",me),Q.compare(new Wa.U(me))===Wa.L.Equal?this.updateReleaseHighlightsStatusInSharedStorage(Q.toString()).pipe((0,nt.ZZ)(()=>(0,it.of)(!0))):(this.logger.info("Remote config version does not match the app versions."),(0,it.of)(!1))}}))}showReleaseHighlightsFromSharedStorage(C){return this.sharedStorage.readBlock(Wu).pipe((0,nt.ZZ)(w=>(0,a.isNil)(w)||(0,a.isEmpty)(w)?(0,it.of)(!0):w.appVersion===C?(0,it.of)(!w.isDialogShown):(this.logger.info("Old version value present in shared storage. Clearing"),this.sharedStorage.writeBlock(Wu,{}).pipe((0,mt.u)(!0)))))}onShowReleaseHighlight(C,w,Q){if(this.clientVersion=w,this.isInstallScenario=Q,!C||!this.releaseHighlightsData.shown){this.releaseHighlightsData.shown=!0;const me={autoFocus:!1,hasBackdrop:!0,disableClose:!1,restoreFocus:!1,panelClass:"dialogPaddingRemove",enterAnimationDuration:"0ms"};return me.data={getArticleCallback:()=>this.getReleaseHighlight(),autoCloseOnError:C,noInformationAvailableTxt:"releaseHighlights.noInformationAvailable",closeTxt:"common.close",dialogType:y.Release_Highlights,isInstallationScenario:this.isInstallScenario,enableCloseButton:this.showBackButton},this.mobileMode&&(me.maxWidth="100vw"),this.focusManager.restoreFocusAfterClosed(()=>this.matDialog.open(En,me)),this.readReleaseHighlightsSkippedStatus(this.clientVersion).pipe((0,nt.ZZ)(Ye=>Ye?this.sharedStorage.writeBlock(yu,{}):(0,it.of)(null))).subscribe()}}updateReleaseHighlightsSkippedStatus(C,w){return this.sharedStorage.writeBlock(yu,{appVersion:C,isSkipped:w})}readReleaseHighlightsSkippedStatus(C){return this.sharedStorage.readBlock(yu).pipe((0,nt.ZZ)(w=>w?w.appVersion===C?(0,it.of)(w.isSkipped):(this.logger.info("Old version value present in shared storage. Clearing"),this.sharedStorage.writeBlock(yu,{}).pipe((0,mt.u)(!1))):(0,it.of)(!1)))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(Mi.Vk),c.KVO(l.J6),c.KVO(l.iH),c.KVO(n.bZ),c.KVO(hf),c.KVO(Po.yQ),c.KVO(hi.a),c.KVO(Pt.jgD),c.KVO(l.zW),c.KVO(T.c_))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var np=d(99443);function zu(j,Ke){function we(){return!we.pred.apply(we.thisArg,arguments)}return we.pred=j,we.thisArg=Ke,we}var su=d(37233),_d=d(32398),Ud=d(9801);function Gm(j,Ke){1&j&&(c.j41(0,"div",9),c.nrm(1,"mat-icon",10),c.k0s())}function Ku(j,Ke){1&j&&(c.j41(0,"span",11),c.EFF(1,"error"),c.k0s())}function Vm(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",12),c.bIt("click",function(){c.eBV(we);const w=c.XpG(2);return c.Njj(w.onCancel())}),c.j41(1,"span",13),c.EFF(2),c.nI1(3,"translate"),c.k0s()()}if(2&j){const we=c.XpG(2);c.R7$(2),c.JRh(c.bMT(3,1,we.cancelButtonText))}}function Hm(j,Ke){if(1&j){const we=c.RV6();c.j41(0,"button",14),c.bIt("click",function(w){c.eBV(we);const Q=c.XpG(2);return c.Njj(Q.onLoginClicked(w))}),c.j41(1,"span",13),c.EFF(2),c.nI1(3,"translate"),c.k0s()()}if(2&j){const we=c.XpG(2);c.R7$(2),c.JRh(c.bMT(3,1,we.tryLoginText))}}function fg(j,Ke){if(1&j&&(c.j41(0,"div",1),c.DNE(1,Gm,2,0,"div",2)(2,Ku,2,0,"span",3),c.j41(3,"div",4)(4,"span"),c.EFF(5),c.nI1(6,"translate"),c.k0s()(),c.j41(7,"span",5),c.EFF(8),c.nI1(9,"translate"),c.k0s(),c.j41(10,"div",6),c.DNE(11,Vm,4,3,"button",7)(12,Hm,4,3,"button",8),c.k0s()()),2&j){const we=c.XpG();c.Y8G("ngClass",we.isStreamer?"main-content-streamer":"main-content-mall")("backToCloseResult",we.backToCloseResult),c.R7$(),c.Y8G("ngIf",!we.showErrorIcon&&we.isStreamer),c.R7$(),c.Y8G("ngIf",we.showErrorIcon&&we.isStreamer),c.R7$(),c.Y8G("ngClass",we.showErrorIcon&&we.isStreamer?"content-header-error font-sub1":"content-header font-header6"),c.R7$(2),c.JRh(c.bMT(6,9,we.headerText)),c.R7$(3),c.JRh(c.bMT(9,11,we.bodyText)),c.R7$(3),c.Y8G("ngIf",we.showCancel),c.R7$(),c.Y8G("ngIf",we.showTryLogin)}}let _g=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls){this.dialogRef=Q,this.genericDialog=me,this.localeService=Ye,this.router=bt,this.telemetryService=cn,this.config=Wn,this.dialogData=xi,this.gfnSdkService=Yi,this.systemInfoService=fr,this.idmTelemetryService=Gr,this.idmService=ao,this.idmLoginService=Eo,this.headerText="",this.bodyText="",this.cancelButtonText="",this.tryLoginText="",this.showCancel=!1,this.showTryLogin=!1,this.isStreamer=!1,this.shouldShowLoginButton=!1,this.showErrorIcon=!1,this.deviceAuthUri="",this.deviceAuthCode="",this.deviceAuthUriComplete="",this.browserPopup=void 0,this.needsWindowWorkaround=!1,this.offDeviceDialogSubscription=null,this.backToCloseResult=Kt.ie.Cancel,this.useDeviceAuthLogin=!!this.config?.useDeviceAuthLogin,this.logger=C.getLogger("loginBridgeState"),this.needsWindowWorkaround=!!w?.featureEnablement?.loginPopupBlockerWorkaround,this.destroy$=new p.B7,this.onLoginClicked=ls.guard(T.HK.Link,this.onLoginClicked.bind(this))}initialize(){this.shouldShowLoginButton?(this.headerText="loginBridgeState.login",this.bodyText="loginBridgeState.loginToGeForceNow",this.tryLoginText="common.login",this.showCancel=!1,this.showTryLogin=!0):this.onTryLogin()}startLoginProcess(){this.logger.trace(xe.N_.UserGesture,xe.YD.Login,xe.PC.open," login operation"),this.idmLoginService.getDeviceName$().pipe((0,g.s)(1),(0,nt.ZZ)(C=>(this.idmTelemetryService.sendLoginStartEvent(this.dialogData.idpId,!1),this.idmService.login(!1,this.dialogData.idpId,this.browserPopup,C))),(0,h.Q)(this.destroy$)).subscribe(C=>{switch(this.logger.info("starfleet login state update",C),C){case Kt.l4.LoginAbortedByUser:this.dialogRef.close(Kt.ie.Cancel);break;case Kt.l4.LoginAbortedAlreadyLoggedIn:this.dialogRef.close(Kt.ie.Success);break;case _d.g.LoggedIn:this.idmTelemetryService.sendLoginSuccessUserSessionEvent(),this.dialogRef.close(Kt.ie.Success);break;case Kt.l4.LoginFailed:case _d.g.Failed:this.onLoginFailed();break;case Kt.l4.LoginFailedNoRetry:case _d.g.LoggedOut:this.onLoginFailed(!1);break;case Kt.l4.LoginFailedToStart:this.onLoginFailed(!1,!1);break;case Kt.l4.LoginInProgressNeedDisplayCode:this.onNeedDisplayCode()}},C=>{this.logger.error("failed to login the user with error",C),this.needsWindowWorkaround&&C===Kt.l4.LoginAlreadyInProgress&&(this.idmService.cancel(),setTimeout(()=>{this.startLoginProcess()}))})}ngOnInit(){this.isStreamer=(0,Ii.tE)(this.router.url),(0,Vt.zV)([this.gfnSdkService.getAuthType(),this.localeService.localeChanged]).pipe((0,nt.ZZ)(([C])=>(this.isStreamer&&C!==Qr.hT.IDM_FALLBACK&&C!==Qr.hT.JWT&&(this.shouldShowLoginButton=!0),this.localeService.localeChanged)),(0,g.s)(1)).subscribe(Mt.l,C=>this.logger.error("error in in locale changed"),()=>this.initialize())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.closeOffDeviceAuthDialog()}onLoginFailed(C=!0,w=!0){if(w?(this.headerText="common.loginUnsuccessful",this.bodyText=C?"loginBridgeState.problemLogInRetry":"loginBridgeState.problemLogIn"):(this.headerText="loginBridgeState.unableToInitiateLogin",this.bodyText="loginBridgeState.poroblemTryingToLogin"),this.showCancel=!0,this.cancelButtonText="common.close",this.showTryLogin=C,this.showErrorIcon=!0,this.tryLoginText="common.retry",!1===w?this.idmTelemetryService.sendCreateHTTPServerErrorEvent():this.idmTelemetryService.sendLoginFailureUserSessionEvent(),this.useDeviceAuthLogin){const Q={panelClass:"dialogPaddingRemove",disableClose:!0,data:{...this.dialogData,headerText:{text:this.headerText},bodyText:{text:this.bodyText},primaryButton:{text:this.cancelButtonText}}};this.openThreeQuarterSheet(Q)}}onCancel(){this.logger.trace(xe.N_.UserGesture,xe.YD.Login,xe.PC.close," Login operation by clicking on cancel button"),this.dialogRef.close("common.close"===this.cancelButtonText?Kt.ie.CloseOnFailure:Kt.ie.Cancel)}onTryLogin(){this.needsWindowWorkaround?(this.browserPopup=window.open("","_blank"),this.headerText="loginBridgeState.login",this.bodyText="loginBridgeState.completeTheLogin",this.tryLoginText="common.login",this.showTryLogin=!0):(this.headerText="loginBridgeState.loginInProgress",this.bodyText="loginBridgeState.browserIsOpen",this.tryLoginText="common.retry",this.showTryLogin=!1),this.cancelButtonText="common.cancelTitleCase",this.showCancel=!0,this.startLoginProcess()}onLoginClicked(C){this.onTryLogin()}onNeedDisplayCode(){this.deviceAuthUri=this.idmService.getDeviceDisplayCode().url,this.deviceAuthUriComplete=this.idmService.getDeviceDisplayCode().url_complete;const C=this.idmService.getDeviceDisplayCode().user_code;if(C&&(this.deviceAuthCode=(0,al.zC)(C),this.cancelButtonText="common.cancelTitleCase",this.showCancel=!0),!this.deviceAuthUri||!this.deviceAuthUriComplete||!C)throw new Error(`Failed to launch login bridge dialog. deviceAuthUri: ${this.deviceAuthUri}, deviceAuthUriComplete: ${this.deviceAuthUriComplete}, rawCode: ${C}`);{const w={panelClass:"dialogPaddingRemove",disableClose:!0,data:{...this.dialogData,headerText:{text:(0,al.ZE)(this.deviceAuthUri)},primaryButton:{text:"common.cancelTitleCase"},bodyText:{text:"loginBridgeState.deviceAuthLogin",placeholders:{authCode:`<div class="font-header3 white">${this.deviceAuthCode}</div>`}},footerText:{text:"loginBridgeState.deviceAuthHint"},image:{url:this.deviceAuthUriComplete}}};this.openThreeQuarterSheet(w)}}openThreeQuarterSheet(C){this.closeOffDeviceAuthDialog(),this.offDeviceAuthDialogRef=this.genericDialog.open(C,{preferredDialogType:T.QO.ThreeQuarterSheet}),this.offDeviceAuthDialogRef.backToCloseResult=this.backToCloseResult,this.offDeviceDialogSubscription=(0,rr.O4)(this.offDeviceAuthDialogRef.primaryButtonClick,this.offDeviceAuthDialogRef.afterClosed()).pipe((0,h.Q)(this.destroy$)).subscribe(()=>{this.closeOffDeviceAuthDialog(),this.onCancel()})}closeOffDeviceAuthDialog(){this.offDeviceDialogSubscription?.unsubscribe(),this.offDeviceDialogSubscription=null,this.offDeviceAuthDialogRef?.close(),this.offDeviceAuthDialogRef=void 0}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(Mi.Vk),c.rXU(n.CP),c.rXU(T.uh),c.rXU(l.iH),c.rXU(hn.Ix),c.rXU(P.H0),c.rXU(Kt.X$),c.rXU(n.Vh),c.rXU(Qr.DL),c.rXU(l.zW),c.rXU(Ud.J),c.rXU(Ai.k_),c.rXU(Cp),c.rXU(T.gE))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-login-bridge-state"]],decls:1,vars:1,consts:[["fxFlex","","fxLayout","column","nvTrapFocus","","nvBackToCloseModal","",3,"ngClass","backToCloseResult",4,"ngIf"],["fxFlex","","fxLayout","column","nvTrapFocus","","nvBackToCloseModal","",3,"ngClass","backToCloseResult"],["class","header-logo",4,"ngIf"],["class","error-icon material-icons",4,"ngIf"],[3,"ngClass"],[1,"font-body2","content-body"],["fxFlex","","fxLayout","row","fxLayoutAlign","end end",1,"content-button"],["mat-button","","class","font-button2 text-button-icon",3,"click",4,"ngIf"],["color","accent","class","retry-button","mat-raised-button","",3,"click",4,"ngIf"],[1,"header-logo"],["svgIcon","gfnBranding"],[1,"error-icon","material-icons"],["mat-button","",1,"font-button2","text-button-icon",3,"click"],[1,"font-button2"],["color","accent","mat-raised-button","",1,"retry-button",3,"click"]],template:function(C,w){1&C&&c.DNE(0,fg,13,13,"div",0),2&C&&c.Y8G("ngIf",!w.useDeviceAuthLogin)},dependencies:[V.DJ,V.sA,V.UI,D.PW,F.An,k.iV,x.YU,x.bT,K.D,$.D,bo.Aq,Ze.D9],styles:[".login-bridge-state-dialog .mat-mdc-dialog-container{border-radius:0}.login-bridge-state-dialog .main-content-streamer{width:470px;height:618px;background-color:#1f2224}.login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{width:200px;height:60px;margin-top:34px}:host-context(.isLtr) .login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{margin-left:24px}html[dir=ltr] .login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{--dummy3: 0;margin-left:24px}:host-context(.isRtl) .login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{margin-right:24px}html[dir=rtl] .login-bridge-state-dialog .main-content-streamer .header-logo mat-icon{--dummy3: 0;margin-right:24px}@keyframes gfn-login-bridge-state_fade{0%{opacity:.7}50%{opacity:.3}to{opacity:.7}}.login-bridge-state-dialog .main-content-streamer .content-header{margin:138px 0 0!important;text-align:center}.login-bridge-state-dialog .main-content-streamer .content-header-error{margin:33px 0 0!important;text-align:center}.login-bridge-state-dialog .main-content-streamer .error-icon{font-size:50px;margin:189px 0 0!important;opacity:.7;text-align:center}.login-bridge-state-dialog .main-content-streamer .content-body{margin:10px 24px 0!important;text-align:center}:host-context(.isLtr) .login-bridge-state-dialog .main-content-streamer .content-button{margin:0 8px 8px 0}html[dir=ltr] .login-bridge-state-dialog .main-content-streamer .content-button{--dummy: 0;margin:0 8px 8px 0}:host-context(.isRtl) .login-bridge-state-dialog .main-content-streamer .content-button{margin:0 0 8px 8px}html[dir=rtl] .login-bridge-state-dialog .main-content-streamer .content-button{--dummy: 0;margin:0 0 8px 8px}:host-context(.isLtr) .login-bridge-state-dialog .main-content-streamer .retry-button{margin:0 0 0 8px}html[dir=ltr] .login-bridge-state-dialog .main-content-streamer .retry-button{--dummy: 0;margin:0 0 0 8px}:host-context(.isRtl) .login-bridge-state-dialog .main-content-streamer .retry-button{margin:0 8px 0 0}html[dir=rtl] .login-bridge-state-dialog .main-content-streamer .retry-button{--dummy: 0;margin:0 8px 0 0}.login-bridge-state-dialog .main-content-mall{width:560px;height:166px;background-color:#393939}:host-context(.isLtr) .login-bridge-state-dialog .main-content-mall .content-header{margin:19px 24px 14px!important}html[dir=ltr] .login-bridge-state-dialog .main-content-mall .content-header{--dummy: 0;margin:19px 24px 14px!important}:host-context(.isRtl) .login-bridge-state-dialog .main-content-mall .content-header{margin:19px 24px 14px!important}html[dir=rtl] .login-bridge-state-dialog .main-content-mall .content-header{--dummy: 0;margin:19px 24px 14px!important}.login-bridge-state-dialog .main-content-mall .content-body{height:52px}:host-context(.isLtr) .login-bridge-state-dialog .main-content-mall .content-body{margin:0 24px!important}html[dir=ltr] .login-bridge-state-dialog .main-content-mall .content-body{--dummy: 0;margin:0 24px!important}:host-context(.isRtl) .login-bridge-state-dialog .main-content-mall .content-body{margin:0 24px!important}html[dir=rtl] .login-bridge-state-dialog .main-content-mall .content-body{--dummy: 0;margin:0 24px!important}:host-context(.isLtr) .login-bridge-state-dialog .main-content-mall .content-button{margin:0 8px 8px 0}html[dir=ltr] .login-bridge-state-dialog .main-content-mall .content-button{--dummy: 0;margin:0 8px 8px 0}:host-context(.isRtl) .login-bridge-state-dialog .main-content-mall .content-button{margin:0 0 8px 8px}html[dir=rtl] .login-bridge-state-dialog .main-content-mall .content-button{--dummy: 0;margin:0 0 8px 8px}:host-context(.isLtr) .login-bridge-state-dialog .main-content-mall .retry-button{margin:0 0 0 8px}html[dir=ltr] .login-bridge-state-dialog .main-content-mall .retry-button{--dummy: 0;margin:0 0 0 8px}:host-context(.isRtl) .login-bridge-state-dialog .main-content-mall .retry-button{margin:0 8px 0 0}html[dir=rtl] .login-bridge-state-dialog .main-content-mall .retry-button{--dummy: 0;margin:0 8px 0 0}.login-bridge-state-dialog .green{color:#76b900}.login-bridge-state-dialog .white{color:#fff}\n"],encapsulation:2}),Ke})();var au=d(89888),Xu=(d(35131),d(86574)),jl=d(53747);const qp=["UNKNOWN","NONE"];var Bd=function(j){return j.onboardingReconnect="onboardingReconnect",j.reconnect="reconnect",j.syncDenied="syncDenied",j}(Bd||{}),vd=function(j){return j.syncFailed="syncFailed",j.profileNotCreated="profileNotCreated",j.privateProfile="privateProfile",j}(vd||{}),pl=function(j){return j.UNKNOWN="UNKNOWN",j.SYNC_FAILED="SYNC_FAILED",j.SYNC_DENIED="SYNC_DENIED",j.PROFILE_NOT_CREATED="PROFILE_NOT_CREATED",j.SYNC_SUCCESS="SYNC_SUCCESS",j}(pl||{});class xh{constructor(Ke=36e5,we=864e5,C=12096e5){this.now=Ke,this.today=we,this.soon=C}}var ml=function(j){return j[j.NotExpired=0]="NotExpired",j[j.ExpiresNow=1]="ExpiresNow",j[j.ExpiresToday=2]="ExpiresToday",j[j.ExpiresSoon=3]="ExpiresSoon",j[j.Expired=4]="Expired",j}(ml||{}),Uc=function(j){return j[j.InitialFetchDone=0]="InitialFetchDone",j[j.LinkingDone=1]="LinkingDone",j[j.LinkingError=2]="LinkingError",j[j.SyncingDone=3]="SyncingDone",j[j.SyncingError=4]="SyncingError",j[j.Disconnected=5]="Disconnected",j[j.Expiring=6]="Expiring",j}(Uc||{});let Zu=(()=>{var j;class Ke{constructor(C,w){this.dialogRef=w,this.destroy$=new p.B7,this.dismissMessageDelay=4e3,this.gfnLink=location.hostname,this.logger=C.getLogger("pwa-wall-help.component")}onClose(){this.dialogRef.close()}onCopy(){(0,El.H)(navigator.clipboard.writeText(this.gfnLink)).pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.successMessageVisible=!0,this.logger.info(`${this.gfnLink} is copied`),setTimeout(()=>{this.successMessageVisible=!1},this.dismissMessageDelay)},C=>{this.logger.error(`${this.gfnLink} is copied failed, error: ${C}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(n.CP))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-pwa-wall-help"]],decls:27,vars:21,consts:[["fxFlex","","fxLayout","column",1,"main-container"],["fxLayout","column",1,"content-container"],["fxLayout","column","fxLayoutAlign","start start"],[1,"font-header6","color-white","prompt-header"],[1,"font-body2"],[1,"link-container","font-body2"],["fxLayoutAlign","start center",1,"gfn-link"],["mat-button","","fxLayout","row","fxLayoutAlign","end center",1,"color-white",3,"click"],[1,"success-message","font-body2"],["fxLayout","row","fxLayoutAlign","end end",1,"button-container"],["mat-button","",3,"click"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),c.EFF(4),c.nI1(5,"translate"),c.k0s(),c.j41(6,"span",4),c.EFF(7),c.nI1(8,"translate"),c.k0s(),c.j41(9,"span",4),c.EFF(10),c.nI1(11,"translate"),c.k0s()(),c.j41(12,"div",5)(13,"span",6),c.EFF(14),c.k0s(),c.j41(15,"button",7),c.bIt("click",function(){return w.onCopy()}),c.j41(16,"span"),c.EFF(17),c.nI1(18,"translate"),c.k0s()()(),c.j41(19,"span",8),c.EFF(20),c.nI1(21,"translate"),c.k0s()(),c.j41(22,"div",9)(23,"button",10),c.bIt("click",function(){return w.onClose()}),c.j41(24,"span"),c.EFF(25),c.nI1(26,"translate"),c.k0s()()()()),2&C&&(c.R7$(4),c.JRh(c.bMT(5,9,"common.setUpOnSafari")),c.R7$(3),c.JRh(c.bMT(8,11,"iosPWA.setUpStep1")),c.R7$(3),c.JRh(c.bMT(11,13,"iosPWA.setUpStep2")),c.R7$(4),c.JRh(w.gfnLink),c.R7$(3),c.JRh(c.bMT(18,15,"iosPWA.copy")),c.R7$(2),c.AVh("visible",w.successMessageVisible),c.R7$(),c.JRh(c.bMT(21,17,"iosPWA.linkCopied")),c.R7$(5),c.JRh(c.bMT(26,19,"common.gotIt")))},dependencies:[V.DJ,V.sA,V.UI,k.iV,Ze.D9],styles:[".main-container[_ngcontent-%COMP%]{width:560px;height:-moz-fit-content;height:fit-content}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{margin:20px 24px 8px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .prompt-header[_ngcontent-%COMP%]{margin-bottom:12px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;margin:16px 0 8px;border:1px solid rgba(255,255,255,.2)}.isLtr[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .link-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{visibility:hidden}.isLtr[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{margin:0 0 8px 8px}html[dir=ltr][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 8px 8px}.isRtl[_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{margin:0 8px 8px 0}html[dir=rtl][_ngcontent-%COMP%] .main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message[_ngcontent-%COMP%]{--dummy: 0;margin:0 8px 8px 0}.main-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .success-message.visible[_ngcontent-%COMP%]{visibility:visible}.main-container[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{margin:0 8px 8px}"]}),Ke})(),op=(()=>{var j;class Ke{constructor(C){this.loggingService=C,this.primaryButtonClick=new c.bkB,this.destroy$=new p.B7}ngOnInit(){this.logger=this.loggingService.getLogger("playtest-error")}onPrimaryButtonClick(){this.primaryButtonClick.emit(!1)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-playtestlive-error"]],inputs:{primaryButton:"primaryButton"},outputs:{primaryButtonClick:"primaryButtonClick"},decls:14,vars:11,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlexFill","",1,"error-dialog-container"],["fxFlex","1 1 auto","fxLayout","column"],[1,"error-dialog-header"],[1,"font-header6"],[1,"error-dialog-body"],[1,"font-body2",3,"innerHtml"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","10px"],["mat-button","","mat-dialog-close","",1,"font-button2","hig-button",3,"click"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),c.EFF(4),c.nI1(5,"translate"),c.k0s()(),c.j41(6,"div",4),c.nrm(7,"span",5),c.nI1(8,"translate"),c.k0s()(),c.j41(9,"mat-dialog-actions",6)(10,"button",7),c.bIt("click",function(){return w.onPrimaryButtonClick()}),c.EFF(11),c.nI1(12,"translate"),c.nI1(13,"uppercase"),c.k0s()()()),2&C&&(c.R7$(4),c.JRh(c.bMT(5,3,"playtestLive.errorDialog.header")),c.R7$(3),c.Y8G("innerHtml",c.bMT(8,5,"playtestLive.errorDialog.notAccessibleError"),c.npT),c.R7$(4),c.SpI(" ",c.bMT(13,9,c.bMT(12,7,"common.ok"))," "))},dependencies:[V.DJ,V.BO,V.sA,V.G2,V.UI,k.iV,n.tx,n.E7,x.Pc,Ze.D9],styles:[".error-dialog-container[_ngcontent-%COMP%]{max-width:100%}.error-dialog-container[_ngcontent-%COMP%] .error-dialog-header[_ngcontent-%COMP%]{margin-bottom:15px}.error-dialog-container[_ngcontent-%COMP%] .error-dialog-body[_ngcontent-%COMP%]{margin-bottom:20px}"]}),Ke})();const Cd={protocol:"",host:"",port:443,app:"",streamName:"",iceServers:[],tcpMuxPolicy:"",mediaElementId:void 0,mediaConstraints:{audio:{deviceId:"",echoCancellation:!0},video:{deviceId:"",width:{min:320,ideal:640,max:640},height:{min:240,ideal:360,max:480},frameRate:30}},connectionParams:{host:"",app:"live"},bandwidth:{audio:56,video:512},cameraWidth:640,cameraHeight:360},im="red5ProPublisherSdk";var Ll=d(14331);const Ou={webcam:"",webcamDevId:"",microphone:"",micDevId:""};let Cg=(()=>{var j;class Ke{constructor(C,w){this.loggingService=C,this.translateService=w,this.audioInputDevices=[],this.videoInputDevices=[],this.logger=this.loggingService.getLogger("GFNWebcamService"),this.mediaSetup=Ou}getMediaDeviceInfo(C){return(0,El.H)(navigator.mediaDevices.enumerateDevices()).pipe((0,g.s)(1),(0,wt.T)(w=>(w.forEach(Q=>{"audioinput"===Q.kind?this.audioInputDevices.push({deviceId:Q.deviceId,label:Q.label,groupId:Q.groupId}):"videoinput"===Q.kind&&this.videoInputDevices.push({deviceId:Q.deviceId,label:Q.label,groupId:Q.groupId})}),this.audioInputDevices=this.audioInputDevices.filter((Q,me,Ye)=>Ye.findIndex(bt=>bt.groupId===Q.groupId)===me),this.videoInputDevices=this.videoInputDevices.filter((Q,me,Ye)=>Ye.findIndex(bt=>bt.groupId===Q.groupId)===me),{videoInput:this.videoInputDevices,audioInput:this.audioInputDevices})))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Ze.c$))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Qu=d(27721),Ps=d(10399);const ff={url:"",deserializer:j=>JSON.parse(j.data),serializer:j=>JSON.stringify(j)};class ll extends p.kQ{constructor(Ke,we){if(super(),Ke instanceof m.c)this.destination=we,this.source=Ke;else{const C=this._config=Object.assign({},ff);if(this._output=new p.B7,"string"==typeof Ke)C.url=Ke;else for(let w in Ke)Ke.hasOwnProperty(w)&&(C[w]=Ke[w]);if(!C.WebSocketCtor&&WebSocket)C.WebSocketCtor=WebSocket;else if(!C.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new Be.m}}lift(Ke){const we=new ll(this._config,this.destination);return we.operator=Ke,we.source=this,we}_resetState(){this._socket=null,this.source||(this.destination=new Be.m),this._output=new p.B7}multiplex(Ke,we,C){const w=this;return new m.c(Q=>{try{w.next(Ke())}catch(Ye){Q.error(Ye)}const me=w.subscribe(Ye=>{try{C(Ye)&&Q.next(Ye)}catch(bt){Q.error(bt)}},Ye=>Q.error(Ye),()=>Q.complete());return()=>{try{w.next(we())}catch(Ye){Q.error(Ye)}me.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Ke,protocol:we,url:C,binaryType:w}=this._config,Q=this._output;let me=null;try{me=we?new Ke(C,we):new Ke(C),this._socket=me,w&&(this._socket.binaryType=w)}catch(bt){return void Q.error(bt)}const Ye=new Ps.y(()=>{this._socket=null,me&&1===me.readyState&&me.close()});me.onopen=bt=>{const{_socket:cn}=this;if(!cn)return me.close(),void this._resetState();const{openObserver:Wn}=this._config;Wn&&Wn.next(bt);const xi=this.destination;this.destination=Qu.v.create(Yi=>{if(1===me.readyState)try{const{serializer:fr}=this._config;me.send(fr(Yi))}catch(fr){this.destination.error(fr)}},Yi=>{const{closingObserver:fr}=this._config;fr&&fr.next(void 0),Yi&&Yi.code?me.close(Yi.code,Yi.reason):Q.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:Yi}=this._config;Yi&&Yi.next(void 0),me.close(),this._resetState()}),xi&&xi instanceof Be.m&&Ye.add(xi.subscribe(this.destination))},me.onerror=bt=>{this._resetState(),Q.error(bt)},me.onclose=bt=>{this._resetState();const{closeObserver:cn}=this._config;cn&&cn.next(bt),bt.wasClean?Q.complete():Q.error(bt)},me.onmessage=bt=>{try{const{deserializer:cn}=this._config;Q.next(cn(bt))}catch(cn){Q.error(cn)}}}_subscribe(Ke){const{source:we}=this;return we?we.subscribe(Ke):(this._socket||this._connectSocket(),this._output.subscribe(Ke),Ke.add(()=>{const{_socket:C}=this;0===this._output.observers.length&&(C&&1===C.readyState&&C.close(),this._resetState())}),Ke)}unsubscribe(){const{_socket:Ke}=this;Ke&&1===Ke.readyState&&Ke.close(),this._resetState(),super.unsubscribe()}}const cu={offerToReceiveAudio:!0,offerToReceiveVideo:!0};let wh=(()=>{var j;class Ke{constructor(C){this.loggingService=C,this.messagesSubject=new p.B7,this.signalingMessages$=this.messagesSubject.asObservable(),this.numIceCandidates=0,this.signalingUrl="",this.streamName="",this.handleICECandidateEvent=w=>{this.logger.info(w),w.candidate&&this.sendCandidateMessage({handleCandidate:this.streamName,data:{candidate:w.candidate}})},this.handleNegotiationNeededEvent=w=>{this.logger.info(w)},this.handleICEConnectionStateChangeEvent=w=>{switch(this.logger.info(w),this.rtcPeerConnection.iceConnectionState){case"closed":case"failed":case"disconnected":this.closeWebRtc()}},this.handleSignalingStateChangeEvent=w=>{"closed"===(this.logger.info(w),this.rtcPeerConnection.signalingState)&&this.closeWebRtc()},this.handleTrackEvent=w=>{this.logger.info(w)},this.reportError=w=>{this.logger.error("got Error: "+w.name)},this.logger=this.loggingService.getLogger("WebrtcService"),this.mediaSetup=Ou}connect(){(!this.socket$||this.socket$.closed)&&(this.socket$=this.createWebSocket(),this.socket$.subscribe(C=>{this.logger.verbose("Received a message: send to msgHandler"),this.messagesSubject.next(C)}))}createWebSocket(){return function Ju(j){return new ll(j)}({url:this.signalingUrl,protocol:"json",openObserver:{next:()=>{this.logger.info("WebrtcService: connected to websocket")}},closeObserver:{next:()=>{this.logger.info("WebrtcService: websocket connection closed"),this.socket$=void 0}}})}setUrlAndStreamName(C,w){this.signalingUrl=C,this.streamName=w,this.logger.info("setUrlAndStreamName "+this.signalingUrl+": "+this.streamName)}initSignalingConnection(){return this.logger.info("initSignalingConnection"),""===this.signalingUrl?(this.logger.error("invalid signaling url"),!1):"ws"!==this.signalingUrl.substr(0,2)?(this.logger.error("invalid protocol requested"),!1):(this.addIncomingMessageHandler(),this.requestMediaDevices().pipe((0,g.s)(1)).subscribe(C=>{this.logger.info("got media: signaling initialized"),this.initRtcPeerConnection()}),!0)}requestMediaDevices(){return new m.c(C=>{this.logger.info("requestMediaDevices");try{this.logger.info("selected devices: "+this.mediaSetup.micDevId+": "+this.mediaSetup.webcamDevId),(0,El.H)(navigator.mediaDevices.getUserMedia({audio:{deviceId:this.mediaSetup.micDevId,echoCancellation:!0},video:{width:864,height:480,deviceId:this.mediaSetup.webcamDevId}})).subscribe(w=>{w.getTracks().forEach(Q=>{this.logger.info("track: "+Q.id+" readyState: "+Q.readyState)}),this.mediaStream=w,C.next()})}catch(w){C.error(w),this.logger.error(`getUserMedia() error: ${w.name}`)}})}initRtcPeerConnection(){this.logger.info("initRtcPeerConnetion"),this.createPeerConnection(),this.mediaStream.getTracks().forEach(C=>this.rtcPeerConnection.addTrack(C,this.mediaStream));try{let C;(0,El.H)(this.rtcPeerConnection.createOffer(cu)).pipe((0,g.s)(1),(0,on.M)(w=>{C=w}),(0,_i.n)(w=>(0,El.H)(this.rtcPeerConnection.setLocalDescription(C)))).subscribe(w=>{this.logger.info("offer created and set"),this.sendOfferMessage({handleOffer:this.streamName,transport:"udp",data:{sdp:C}})})}catch(C){this.handleGetUserMediaError(C)}}addIncomingMessageHandler(){this.connect(),this.logger.info("connect() done: addIncomingMessageHandler"),this.signalingMessages$.subscribe(C=>{if(this.logger.info("Received message obj:"),this.logger.info(C.data),C.data.type)switch(C.data.type){case"status":this.logger.info("Received message status");break;case"offer":this.logger.info("Received message offer"),this.handleOfferMessage(C.data);break;case"answer":this.logger.info("Received message answer"),this.handleAnswerMessage(C.data);break;case"hangup":this.handleHangupMessage(C);break;case"ice-candidate":case"candidate":this.logger.info("Received message ice-candidate"),this.handleICECandidateMessage(C.data.candidate);break;default:this.logger.info("unknown message of type "+C.type)}else C.data.sdp&&(this.logger.info("Received message is SDP"),"answer"===C.data.sdp.type&&(this.logger.info("Received message sdp-answer"),this.handleAnswerMessage(C.data.sdp)))},C=>this.logger.error(C)),this.logger.info("addIncomingMessageHandler done")}sendMessage(C){this.logger.info("sending message: "+C.type),this.socket$.next(C)}sendOfferMessage(C){this.logger.info("sending offerMessage"),this.socket$.next(C)}sendCandidateMessage(C){this.logger.info("sending candidateMessage"),this.socket$.next(C)}sendPublishMessage(C){this.logger.info("sending PUBLISH msg"),this.socket$.next(C)}handleOfferMessage(C){this.logger.info("handle incoming offer"),this.rtcPeerConnection||this.createPeerConnection(),this.mediaStream||this.startWebRtc(),(0,El.H)(this.rtcPeerConnection.setRemoteDescription(new RTCSessionDescription(C))).pipe((0,g.s)(1),(0,on.M)(w=>{this.mediaStream.getTracks().forEach(Q=>this.rtcPeerConnection.addTrack(Q,this.mediaStream)),this.logger.info("setRemoteDescription done")}),(0,_i.n)(w=>(0,El.H)(this.rtcPeerConnection.createAnswer())),(0,on.M)(w=>{this.logger.info(`createAnswer done: ${w}`)}),(0,_i.n)(w=>(0,El.H)(this.rtcPeerConnection.setLocalDescription(w))),(0,g.s)(1),(0,wt.T)(w=>{this.logger.info(`localDescription done: ${this.rtcPeerConnection.localDescription}`),this.sendMessage({type:"answer",data:this.rtcPeerConnection.localDescription})})).subscribe(w=>{this.logger.info("Negotiation succeeded: ",w)},w=>{this.logger.info("Negotiation error: ",w),this.handleGetUserMediaError(w)},()=>{this.logger.info("Negotiation success")})}handleAnswerMessage(C){this.logger.info("handle incoming answer"),this.rtcPeerConnection.setRemoteDescription(C)}handleHangupMessage(C){this.logger.info(C),this.closeWebRtc()}handleICECandidateMessage(C){const w=new RTCIceCandidate(C);this.rtcPeerConnection.addIceCandidate(w).catch(this.reportError),this.numIceCandidates++,this.numIceCandidates>1&&(this.logger.info("PUBLISH NOW"),this.sendPublishMessage({publish:this.streamName,mode:"live",keyFramerate:3e3}))}createPeerConnection(){this.logger.info("creating PeerConnection"),this.rtcPeerConnection=new RTCPeerConnection({iceServers:[{urls:"stun:stun2.l.google.com:19302"}]}),this.rtcPeerConnection.onicecandidate=this.handleICECandidateEvent,this.rtcPeerConnection.oniceconnectionstatechange=this.handleICEConnectionStateChangeEvent,this.rtcPeerConnection.onsignalingstatechange=this.handleSignalingStateChangeEvent,this.rtcPeerConnection.onnegotiationneeded=this.handleNegotiationNeededEvent,this.rtcPeerConnection.ontrack=this.handleTrackEvent}startWebRtc(){this.logger.info("starting local stream"),this.mediaStream.getTracks().forEach(C=>{C.enabled=!0,this.logger.info("track: "+C+" readyState: "+C.readyState)})}closeWebRtc(){this.logger.info("Close webrtc"),this.rtcPeerConnection&&(this.rtcPeerConnection.ontrack=null,this.rtcPeerConnection.onicecandidate=null,this.rtcPeerConnection.oniceconnectionstatechange=null,this.rtcPeerConnection.onsignalingstatechange=null,this.mediaStream.getTracks().forEach(C=>{C.stop()}),this.rtcPeerConnection.getTransceivers().forEach(C=>{C.stop()}),this.rtcPeerConnection.close(),this.rtcPeerConnection=null)}handleGetUserMediaError(C){switch(C?.name){case"NotFoundError":this.logger.info("Unable to start streaming because no camera and/or microphone found");break;case"SecurityError":case"PermissionDeniedError":break;case null:case void 0:this.logger.error("Undefined error message.");break;default:this.logger.error("Error opening your camera and/or microphone: "+C.message)}this.closeWebRtc()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var qu=d(21531);let Sg=(()=>{var j;class Ke{constructor(C){this.loggingService=C,this.logger=this.loggingService.getLogger("Red5PublisherService"),this.mediaSetup=Ou,this.rtcPublisher=new qu.RTCPublisher}startRed5RtcPublish(C){this.logger.info("[startRed5RtcPublish]: started"),this.logger.info("Connecting using rtcConfig: ",C),(0,El.H)(this.rtcPublisher.init(C)).pipe((0,on.M)(this.rtcPublisher.on("*",this.onRed5PublisherEvent.bind(this))),(0,nt.ZZ)(w=>this.rtcPublisher.publish()),(0,g.s)(1)).subscribe(w=>{this.logger.info("[startRed5RtcPublish]: Red5Publish succeeded: ",w)},w=>{this.logger.error("[startRed5RtcPublish]: Publisher Failed",w)})}onRed5PublisherEvent(C){this.logger.info("[onRed5PublisherEvent]:",C.type)}stopRed5RtcPublish(){this.logger.info("[stopRed5RtcPublish]: Stop Red5Pro streaming"),this.rtcPublisher.unpreview(),(0,El.H)(this.rtcPublisher.unpublish()).pipe((0,g.s)(1)).subscribe(C=>{this.rtcPublisher.off("*",this.onRed5PublisherEvent),this.logger.info("[stopRed5RtcPublish]: Unpublish Complete")},C=>{this.logger.error("[stopRed5RtcPublish]: Unpublish Failed: ",C)})}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),td=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao){this.loggingService=C,this.bridgeService=w,this.endpointFactory=Q,this.gfnWebcamService=me,this.dialogService=Ye,this.webrtcService=bt,this.red5PublisherService=cn,this.appConfig=Wn,this.idmService=xi,this.telemetryUtilService=Yi,this.telemetryService=fr,this.projectInterfaceService=Gr,this.networkStatusService=ao,this.clientIngestURL="",this.webCamSupport=im,this.playtestPermissionsGranted=!1,this.validIngest=!1,this.id="",this.heartbeatSubscription=null,this.timerSource=void 0,this.micTested=!1,this.streamerSessionId="",this.vdkSessionId="",this.stop$=new p.B7,this.audioContext=null,this.audioSource=null,this.mediaStream=null,this.isPlaytestLive=!1,this.blockReconnect=!1,this.disablePostSessionTips=!1,this.disableFeedback=!1,this.disableUds=!1,this.audioAnalyzer=null,this.featureFlags={captureWebcam:!0,captureWebcamOptional:!1,captureMicrophone:!0,captureMicrophoneOptional:!1,captureGameplay:!0,captureInput:!0},this.logger=this.loggingService.getLogger("PlaytestLiveService"),this.vdkPlaytestConfig=this.appConfig.vdkPlaytestConfig,this.endPoint=this.createEndpoint(!0)}initialize(){this.appConfig.featureEnablement?.playtest&&(this.projectInterfaceService.streamingSessionSetupSuccess$.subscribe(C=>{this.logger.info("Received streaming streamingSessionSetupSuccess notification:",C),this.setStreamingSessionId(C.sessionId)},C=>{this.logger.error("Error while receiving streamingSessionSetupSuccess:",C)}),this.projectInterfaceService.streamingBegin$.subscribe(C=>{this.logger.info("Received streaming streamingBegin notification:",C),this.startPlaytestLive()},C=>{this.logger.error("Error while receiving streamingBegin:",C)}),this.projectInterfaceService.streamingEnd$.subscribe(C=>{this.logger.info("Received streaming streamingEnd notification:",C),this.stopPlaytestLive()},C=>{this.logger.error("Error while receiving streamingEnd:",C)}))}initiatePlaytestLive(C,w){if(this.appConfig.featureEnablement?.playtest)return this.logger.info("Initiating playtest"),this.streamerSessionId="",this.id=C,this.vdkSessionId=w,this.telemetryService.setEventsCommonData({integrationId:Ll.HJ.GFN_PLAYTEST},!1,!0),(l.zk.isBrowserPlatform()?(0,it.of)(!0):this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.AuthorizeAVDevices,{mic:!0,camera:!0})).pipe((0,nt.ZZ)(cn=>cn?this.idmService.getAuthToken(!1):(0,Ut.$)("AuthorizeAVDevices Error")),(0,nt.ZZ)(cn=>(cn?.token&&(this.authToken=cn.token),this.getSessionInfo())),(0,nt.ZZ)(cn=>cn?(this.featureFlags.captureWebcam=!this.playtestSession.featureFlags.includes("WEBCAM_DISABLED"),this.featureFlags.captureWebcamOptional=this.playtestSession.featureFlags.includes("WEBCAM_OPTIONAL"),this.featureFlags.captureMicrophone=!this.playtestSession.featureFlags.includes("MICROPHONE_DISABLED"),this.featureFlags.captureMicrophoneOptional=this.playtestSession.featureFlags.includes("MICROPHONE_OPTIONAL"),this.featureFlags.captureGameplay=!this.playtestSession.featureFlags.includes("RECORDING_DISABLED"),this.featureFlags.captureInput=!this.playtestSession.featureFlags.includes("INPUT_DISABLED"),this.featureFlags.captureWebcam||this.featureFlags.captureMicrophone||this.featureFlags.captureGameplay||this.featureFlags.captureInput?this.dialogService.openPlaytestLivePermissionHigDialog(this.playtestSession):(0,it.of)(!0)):this.dialogService.openPlaytestLiveErrorDialog()),(0,nt.ZZ)(cn=>cn?this.featureFlags.captureWebcam?this.dialogService.openPlaytestLiveWebcamPreview(this.playtestSession):(0,it.of)(!0):(this.sendTelemetry(Pt._b3.SessionConsentDenied,Pt.YDY.Success),(0,Ut.$)("Permissions not granted"))),(0,nt.ZZ)(cn=>cn?(this.gfnWebcamService.mediaSetup.webcamDevId.match("Disable")&&(this.featureFlags.captureWebcam=!1),this.featureFlags.captureMicrophone=this.featureFlags.captureWebcam,this.featureFlags.captureMicrophoneOptional=!1,this.featureFlags.captureMicrophone?this.dialogService.openPlaytestLiveMicrophonePreview(this.playtestSession):(0,it.of)(!0)):(this.sendTelemetry(Pt._b3.SessionConsentDenied,Pt.YDY.Success),(0,Ut.$)("Webcam permissions not granted"))),(0,nt.ZZ)(cn=>cn?(this.logger.info("Permissions granted"),this.playtestPermissionsGranted=!0,(0,it.of)(!0)):(this.sendTelemetry(Pt._b3.SessionConsentDenied,Pt.YDY.Success),(0,Ut.$)("Launch Cancelled"))),(0,g.s)(1),(0,Un.W)(cn=>(this.logger.error("initiatePlaytestLive error:",cn),(0,Ut.$)("initiatePlaytestLive Error"))))}startMic(C){this.appConfig.featureEnablement?.playtest&&(0,El.H)(navigator.mediaDevices.getUserMedia({audio:{deviceId:C,echoCancellation:!0}})).pipe((0,g.s)(1),(0,h.Q)(this.stop$),(0,on.M)(w=>w.getAudioTracks().some(Q=>Q.enabled&&"live"===Q.readyState)?(0,it.of)(w):(0,Ut.$)("Microphone not ready"))).subscribe(w=>{this.mediaStream=w,this.audioContext=new AudioContext,this.audioAnalyzer=this.audioContext.createAnalyser(),this.audioSource=this.audioContext.createMediaStreamSource(this.mediaStream),this.audioAnalyzer.fftSize=512,this.audioAnalyzer.minDecibels=-127,this.audioAnalyzer.maxDecibels=0,this.audioAnalyzer.smoothingTimeConstant=.4,this.audioSource.connect(this.audioAnalyzer),this.logger.info("Starting mic")},w=>{this.logger.info("Error accessing microphone: ",w)})}stopMic(){this.appConfig.featureEnablement?.playtest&&(this.logger.info("Stopping mic"),this.audioSource&&this.audioAnalyzer&&this.audioSource.disconnect(this.audioAnalyzer),this.audioSource=null,this.audioAnalyzer=null,this.audioContext&&this.audioContext.close(),this.audioContext=null,this.mediaStream&&this.mediaStream.getTracks()?.forEach(C=>{C.stop()}),this.mediaStream=null,this.stop$.next(!0),this.stop$.complete())}disableClientRecord(){return this.appConfig.featureEnablement?.playtest&&this.playtestPermissionsGranted}skipReconnect(){const C=this.appConfig.featureEnablement?.playtest&&this.networkStatusService.isOnline&&this.blockReconnect;return this.disablePostSessionTips=C,C}skipPostSessionTips(){const C=this.appConfig.featureEnablement?.playtest&&this.disablePostSessionTips;return this.disablePostSessionTips=!1,C}skipFeedback(){const C=this.appConfig.featureEnablement?.playtest&&this.disableFeedback;return this.disableFeedback=!1,C}skipUds(){const C=this.appConfig.featureEnablement?.playtest&&this.disableUds;return this.disableUds=!1,C}createEndpoint(C){return this.endpointFactory.createEndpoint({config:{timeout:this.vdkPlaytestConfig.defaultTimeout,timeBetweenRetries:this.vdkPlaytestConfig.defaultTimeBetweenRetries,maxRetries:C?1:3}})}ptmsHeartbeatPing(){const C=`${this.vdkPlaytestConfig.ptmsUrl}/v1/playtest/session/${this.playtestSession.sessionID}/heartbeat`;this.logger.verbose("Heartbeat API call"),this.endPoint.post(C,{headers:{Authorization:`Bearer ${this.authToken}`}}).pipe((0,g.s)(1)).subscribe(Q=>{this.logger.verbose("Heartbeat ping success")},Q=>{401===Q.status?this.idmService.getAuthToken(!0).pipe((0,g.s)(1)).subscribe(me=>{this.logger.info("Heartbeat getAuthToken refreshed"),this.authToken=me.token,this.ptmsHeartbeatPing()}):this.logger.error("Heartbeat ping error: ",Q)})}getIngestUrls(){return this.endPoint.post(`${this.vdkPlaytestConfig.ptmsUrl}/v1/playtest/session/${this.playtestSession.sessionID}/ingest`,{headers:{Authorization:`Bearer ${this.authToken}`}}).pipe((0,on.M)(Q=>{this.validIngest=!0,this.startHeartbeatPing(),this.ingestDetails=Object.assign({},{ingest:Q.ingest},{webcam:Q.webcam},{streamProperties:Q.streamProperties})},Q=>{this.logger.error("Ingest url error: ",Q),(0,Ut.$)("getIngestUrls Error")}))}getSessionInfo(){return this.endPoint.get(`${this.vdkPlaytestConfig.ptmsUrl}/v1/playtest/session/${this.vdkSessionId}`,{headers:{Authorization:`Bearer ${this.authToken}`}}).pipe((0,on.M)(Q=>{this.playtestSession=Q}),(0,Un.W)(Q=>(this.logger.error("getSessionInfo error: ",Q),(0,it.of)(null))))}clientWebcamStart(){try{const C=this.clientIngestURL.lastIndexOf("/"),w=this.clientIngestURL.slice(C+1,this.clientIngestURL.length);if("standardWebrtc"===this.webCamSupport)return this.logger.info("Standard WebRTC streaming started"),this.webrtcService.setUrlAndStreamName(this.clientIngestURL,w),this.webrtcService.mediaSetup.micDevId=this.gfnWebcamService.mediaSetup.micDevId,this.webrtcService.mediaSetup.webcamDevId=this.gfnWebcamService.mediaSetup.webcamDevId,void this.webrtcService.initSignalingConnection();this.webCamSupport===im&&(this.featureFlags.captureMicrophone&&(this.red5PublisherService.mediaSetup.micDevId=this.gfnWebcamService.mediaSetup.micDevId),this.featureFlags.captureWebcam&&(this.red5PublisherService.mediaSetup.webcamDevId=this.gfnWebcamService.mediaSetup.webcamDevId),this.featureFlags.captureMicrophone||this.featureFlags.captureWebcam?(this.ingestDetails.webcam=Object.assign({},this.ingestDetails.webcam,{mediaConstraints:Cd.mediaConstraints,mediaElementId:void 0}),this.ingestDetails.webcam.mediaConstraints.audio.deviceId=this.gfnWebcamService.mediaSetup.micDevId,this.ingestDetails.webcam.mediaConstraints.video.deviceId=this.gfnWebcamService.mediaSetup.webcamDevId,this.ingestDetails.webcam.cameraWidth=Cd.cameraWidth,this.ingestDetails.webcam.cameraHeight=Cd.cameraHeight,this.ingestDetails.webcam.bandwidth=Cd.bandwidth,this.logger.info("Red5Pro startRed5RtcPublish"),this.red5PublisherService.startRed5RtcPublish(this.ingestDetails.webcam)):this.logger.info("Red5Pro startRed5RtcPublish skipped"))}catch{this.logger.info("clientWebcamStart error")}}clientWebcamStop(){try{"standardWebrtc"===this.webCamSupport?this.webrtcService.closeWebRtc():"red5ProPublisherSdk"===this.webCamSupport&&(this.featureFlags.captureMicrophone||this.featureFlags.captureWebcam?(this.logger.info("Red5Pro stopRed5RtcPublish"),this.red5PublisherService.stopRed5RtcPublish()):this.logger.info("Red5Pro stopRed5RtcPublish skipped"))}catch{this.logger.info("clientWebcamStop error")}}setStreamingSessionId(C){this.streamerSessionId=C}startPlaytestLive(){this.blockReconnect=!1,this.disableFeedback=!1,this.disableUds=!1,null!=this.playtestSession&&this.playtestPermissionsGranted&&this.getIngestUrls().pipe((0,g.s)(1)).subscribe(C=>{this.clientWebcamStart(),this.logger.info("Playtest started"),this.isPlaytestLive=!0,this.blockReconnect=!0,this.disableFeedback=!0,this.disableUds=!0,this.sendTelemetry(Pt._b3.SessionStart,Pt.YDY.Success)},C=>{this.logger.info("Playtest broadcast connection error: ",C),this.clientWebcamStop(),this.ptmsStopIngest(),this.heartbeatSubscription?.unsubscribe(),this.heartbeatSubscription=null,this.authToken=null,this.playtestSession=null,this.stopMic(),this.sendTelemetry(Pt._b3.SessionStart,Pt.YDY.Failure),this.telemetryService.setEventsCommonData({integrationId:P.oX.Undefined},!1,!0)})}ptmsStopIngest(){this.validIngest&&this.endPoint.delete(`${this.vdkPlaytestConfig.ptmsUrl}/v1/playtest/session/${this.playtestSession.sessionID}/ingest`,{headers:{Authorization:`Bearer ${this.authToken}`}}).subscribe(Q=>{this.validIngest=!1},Q=>{this.logger.error("Stop ingest error: ",Q),401===Q.status?this.idmService.getAuthToken(!0).pipe((0,g.s)(1)).subscribe(me=>{this.authToken=me.token,this.ptmsStopIngest()}):(0,Ut.$)("ptmsStopIngest Error")})}stopPlaytestLive(){this.isPlaytestLive&&(this.logger.info("Playtest ended"),this.sendTelemetry(Pt._b3.SessionStop,Pt.YDY.Success,!0),this.clientWebcamStop(),this.ptmsStopIngest(),this.heartbeatSubscription?.unsubscribe(),this.heartbeatSubscription=null,this.stopMic(),this.isPlaytestLive=!1,this.dialogService.openPlaytestLiveFeedbackHigDialog(this.playtestSession)),this.playtestPermissionsGranted=!1,this.authToken=null,this.playtestSession=null}startHeartbeatPing(){this.timerSource=(0,jn.O)(1e3,6e4),this.heartbeatSubscription=this.timerSource.subscribe(C=>{this.logger.verbose("HeartBeating every 60 seconds call "),this.ptmsHeartbeatPing()})}sendTelemetry(C,w,Q=!1){var me=this;return(0,Mh.A)(function*(){try{yield me.telemetryUtilService.sendPlaytesterSessionEvent(C,w,me.playtestSession?.sessionID??"",me.streamerSessionId??"",me.playtestSession?.gameInfo?.gameDeveloper??"",me.playtestSession?.gameInfo?.gameName??"",me.playtestSession?.gameInfo?.gameBuild??"",me.playtestSession?.gameInfo?.gameCMSID??"",me.gfnWebcamService.mediaSetup.webcam??"",me.gfnWebcamService.mediaSetup.microphone??"",me.micTested?Pt.O67.Yes:Pt.O67.No,"")}catch(Ye){me.logger.error("Telemetry send failed",Ye)}Q&&me.telemetryService.setEventsCommonData({integrationId:P.oX.Undefined},!1,!0)})()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(l.NZ),c.KVO(go.t),c.KVO(Cg),c.KVO(_p),c.KVO(wh),c.KVO(Sg),c.KVO(Mi.Vk),c.KVO(Ai.k_),c.KVO(Pt.jgD),c.KVO(P.H0),c.KVO(Fn.qQ),c.KVO(l.CF))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();function Pc(j,Ke){1&j&&(c.nrm(0,"span",5),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.privacyPermissionsDialog.permissionGameplay"),c.npT)}function eh(j,Ke){1&j&&(c.nrm(0,"span",5),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.privacyPermissionsDialog.permissionInputs"),c.npT)}function Sd(j,Ke){1&j&&(c.nrm(0,"span",5),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.privacyPermissionsDialog.permissionWebcam"),c.npT)}function Th(j,Ke){1&j&&(c.nrm(0,"span",5),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.privacyPermissionsDialog.permissionMicrophone"),c.npT)}let Mg=(()=>{var j;class Ke{constructor(C,w){this.loggingService=C,this.playtestLiveService=w,this.primaryButtonClick=new c.bkB,this.secondaryButtonClick=new c.bkB,this.destroy$=new p.B7}ngOnInit(){this.logger=this.loggingService.getLogger("PermissionHig"),this.featureFlags=this.playtestLiveService.featureFlags}onPrimaryButtonClick(){this.primaryButtonClick.emit(!0)}onCancelButtonClick(){this.secondaryButtonClick.emit(!0)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(td))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-playtestlive-permissionhig"]],inputs:{primaryButton:"primaryButton"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick"},decls:22,vars:21,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlexFill","",1,"permissionhig-dialog-container"],["fxFlex","1 1 auto","fxLayout","column"],[1,"permissionhig-dialog-header"],[1,"font-header6"],[1,"permissionhig-dialog-body"],[1,"font-body2",3,"innerHtml"],["class","font-body2",3,"innerHtml",4,"ngIf"],["fxLayout","row-reverse","fxLayoutAlign","start center","fxLayoutGap","10px"],["mat-button","",1,"font-button2","hig-button",3,"click","mat-dialog-close"],["mat-button","","mat-dialog-close","",1,"font-button2","hig-button",3,"click"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),c.EFF(4),c.nI1(5,"translate"),c.k0s()(),c.j41(6,"div",4),c.nrm(7,"span",5),c.nI1(8,"translate"),c.DNE(9,Pc,2,3,"span",6)(10,eh,2,3,"span",6)(11,Sd,2,3,"span",6)(12,Th,2,3,"span",6),c.k0s()(),c.j41(13,"mat-dialog-actions",7)(14,"button",8),c.bIt("click",function(){return w.onPrimaryButtonClick()}),c.EFF(15),c.nI1(16,"translate"),c.nI1(17,"uppercase"),c.k0s(),c.j41(18,"button",9),c.bIt("click",function(){return w.onCancelButtonClick()}),c.EFF(19),c.nI1(20,"translate"),c.nI1(21,"uppercase"),c.k0s()()()),2&C&&(c.R7$(4),c.SpI(" ",c.bMT(5,9,"playtestLive.privacyPermissionsDialog.header")," "),c.R7$(3),c.Y8G("innerHtml",c.bMT(8,11,"playtestLive.privacyPermissionsDialog.permissionIntro"),c.npT),c.R7$(2),c.Y8G("ngIf",w.featureFlags.captureGameplay),c.R7$(),c.Y8G("ngIf",w.featureFlags.captureInput),c.R7$(),c.Y8G("ngIf",w.featureFlags.captureWebcam),c.R7$(),c.Y8G("ngIf",w.featureFlags.captureMicrophone),c.R7$(2),c.Y8G("mat-dialog-close",!0),c.R7$(),c.SpI(" ",c.bMT(17,15,c.bMT(16,13,"playtestLive.privacyPermissionsDialog.accept"))," "),c.R7$(4),c.SpI(" ",c.bMT(21,19,c.bMT(20,17,"common.cancel"))," "))},dependencies:[x.bT,V.DJ,V.BO,V.sA,V.G2,V.UI,k.iV,n.tx,n.E7,x.Pc,Ze.D9],styles:[".permissionhig-dialog-container[_ngcontent-%COMP%]{max-width:100%}.permissionhig-dialog-container[_ngcontent-%COMP%] .permissionhig-dialog-header[_ngcontent-%COMP%]{margin-bottom:25px}.permissionhig-dialog-container[_ngcontent-%COMP%] .permissionhig-dialog-body[_ngcontent-%COMP%]{margin-bottom:20px}"]}),Ke})();var il=d(51635);const fl=["disableButton"],Ih=j=>({"microphone-display-none":j});function ap(j,Ke){if(1&j&&(c.j41(0,"mat-option",18),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j){const we=c.XpG();c.Y8G("value",we.selectedMicrophoneId),c.R7$(),c.SpI(" ",c.bMT(2,2,"playtestLive.selectMicrophoneDialog.noMicrophone")," ")}}function Xm(j,Ke){if(1&j&&(c.j41(0,"mat-option",19),c.EFF(1),c.k0s()),2&j){const we=Ke.$implicit;c.Y8G("value",we.deviceId),c.R7$(),c.SpI(" ",we.label," ")}}function _f(j,Ke){1&j&&(c.j41(0,"div",20),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"playtestLive.hardwarePermissionError")," "))}function rm(j,Ke){1&j&&(c.j41(0,"div",20),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"playtestLive.hardwarePermissionErrorOptional")," "))}let Zm=(()=>{var j;class Ke{constructor(C,w,Q,me){this.gfnWebcamService=C,this.loggingService=w,this.playtestLiveService=Q,this.systemInfoService=me,this.primaryButtonClick=new c.bkB,this.micSensitivity=0,this.isMicReady=!1,this.destroy$=new p.B7,this.selectedMicrophoneId="",this.checkboxState=!1,this.stopMicAfterPreview=!1,this.onAudioProcess=()=>{if(this.playtestLiveService.audioAnalyzer){const Ye=new Uint8Array(this.playtestLiveService.audioAnalyzer.frequencyBinCount);this.playtestLiveService.audioAnalyzer.getByteFrequencyData(Ye);let bt=0;const cn=Array.from(Ye);for(const Wn of cn)bt+=Wn;this.micSensitivity=bt/Ye.length}else this.micSensitivity=0}}ngOnInit(){this.logger=this.loggingService.getLogger("MicrophonePreview"),this.featureFlags=this.playtestLiveService.featureFlags,this.audioDevices=[],this.systemInfoService.getDeviceOSType().pipe((0,h.Q)(this.destroy$),(0,g.s)(1)).subscribe(C=>{this.stopMicAfterPreview=!l.zk.isCefPlatform()||C!==l.t_.Windows}),this.gfnWebcamService.getMediaDeviceInfo(this.featureFlags).pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.audioDevices=C.audioInput.map(w=>w),0<this.audioDevices.length&&this.onMicrophoneSelected(this.audioDevices[0].deviceId)},C=>{this.logger.info("Error fetching mic: ",C)}),this.audioIntervalHandle=window.setInterval(this.onAudioProcess,100)}onMicrophoneSelected(C){const w=this.audioDevices.find(Q=>Q.deviceId===C);w&&(this.selectedMicrophoneId=w.deviceId,this.gfnWebcamService.mediaSetup.microphone=w.label,this.gfnWebcamService.mediaSetup.micDevId=w.deviceId,this.playtestLiveService.stopMic(),this.playtestLiveService.startMic(w.deviceId),this.isMicReady=!0)}onPrimaryButtonClick(){this.primaryButtonClick.emit(!0)}onDisableChange(){this.checkboxState?(this.playtestLiveService.stopMic(),this.gfnWebcamService.mediaSetup.microphone="Disable",this.gfnWebcamService.mediaSetup.micDevId="Disable"):this.onMicrophoneSelected(this.selectedMicrophoneId)}isSelectorEmpty(){return 0===this.audioDevices.length||!this.audioDevices[0].deviceId||0===this.audioDevices[0].deviceId.length}ngOnDestroy(){window.clearInterval(this.audioIntervalHandle),this.audioIntervalHandle=null,this.stopMicAfterPreview?(this.logger.info("Stopping mic after preview"),this.playtestLiveService.stopMic()):this.logger.info("Not stopping mic after preview"),this.destroy$.next(!0),this.destroy$.complete(),this.audioDevices=[]}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Cg),c.rXU(l.J6),c.rXU(td),c.rXU(l.zW))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-playtestlive-microphonepreview"]],viewQuery:function(C,w){if(1&C&&c.GBs(fl,5),2&C){let Q;c.mGM(Q=c.lsd())&&(w.disableButton=Q.first)}},inputs:{primaryButton:"primaryButton"},outputs:{primaryButtonClick:"primaryButtonClick"},decls:33,vars:39,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlexFill","",1,"microphone-dialog-container"],["fxFlex","1 1 auto","fxLayout","column"],[1,"microphone-dialog-header"],[1,"font-header6"],["fxFlex","0 0 auto","fxLayout","row","fxLayoutAlign","center center",1,"microphone-dialog-select","font-body2"],[3,"valueChange","selectionChange","disableOptionCentering","value","disabled"],["selected","",3,"value",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutGap","15px",1,"microphone-dialog-preview"],[1,"font-body2","nowrap"],["mode","determinate",1,"mic-progress",3,"value"],[1,"microphone-dialog-disable"],[3,"ngModelChange","change","ngClass","ngModel"],[1,"font-body2","font-color-warning",3,"ngClass"],["class","font-body2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","10px"],["mat-button","","mat-dialog-close","",1,"font-button2","hig-button"],["mat-button","",1,"font-button2","hig-button",3,"mat-dialog-close","disabled"],["selected","",3,"value"],[3,"value"],[1,"font-body2"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),c.EFF(4),c.nI1(5,"translate"),c.k0s()(),c.j41(6,"div",4)(7,"mat-select",5),c.mxI("valueChange",function(me){return c.DH7(w.selectedMicrophoneId,me)||(w.selectedMicrophoneId=me),me}),c.bIt("selectionChange",function(me){return w.onMicrophoneSelected(me.value)}),c.DNE(8,ap,3,4,"mat-option",6)(9,Xm,2,2,"mat-option",7),c.k0s()(),c.j41(10,"div",8)(11,"span",9),c.EFF(12),c.nI1(13,"translate"),c.k0s(),c.nrm(14,"mat-progress-bar",10),c.k0s(),c.j41(15,"div",11)(16,"mat-checkbox",12),c.mxI("ngModelChange",function(me){return c.DH7(w.checkboxState,me)||(w.checkboxState=me),me}),c.bIt("change",function(){return w.onDisableChange()}),c.EFF(17),c.nI1(18,"translate"),c.k0s(),c.j41(19,"div",13),c.EFF(20),c.nI1(21,"translate"),c.k0s()(),c.DNE(22,_f,3,3,"div",14)(23,rm,3,3,"div",14),c.k0s(),c.j41(24,"mat-dialog-actions",15)(25,"button",16),c.EFF(26),c.nI1(27,"translate"),c.nI1(28,"uppercase"),c.k0s(),c.j41(29,"button",17),c.EFF(30),c.nI1(31,"translate"),c.nI1(32,"uppercase"),c.k0s()()()),2&C&&(c.R7$(4),c.SpI(" ",c.bMT(5,19,"playtestLive.selectMicrophoneDialog.selectYourMicrophone")," "),c.R7$(3),c.Y8G("disableOptionCentering",!0),c.R50("value",w.selectedMicrophoneId),c.Y8G("disabled",w.checkboxState||w.isSelectorEmpty()),c.R7$(),c.Y8G("ngIf",w.isSelectorEmpty()),c.R7$(),c.Y8G("ngForOf",w.audioDevices),c.R7$(3),c.SpI(" ",c.bMT(13,21,"playtestLive.selectMicrophoneDialog.inputLevel")," "),c.R7$(2),c.Y8G("value",w.checkboxState?0:w.micSensitivity),c.R7$(2),c.Y8G("ngClass",c.eq3(35,Ih,!w.featureFlags.captureMicrophoneOptional)),c.R50("ngModel",w.checkboxState),c.R7$(),c.JRh(c.bMT(18,23,"playtestLive.selectMicrophoneDialog.disableMicrophone")),c.R7$(2),c.Y8G("ngClass",c.eq3(37,Ih,!w.isSelectorEmpty()||w.featureFlags.captureMicrophoneOptional)),c.R7$(),c.SpI(" ",c.bMT(21,25,"playtestLive.selectMicrophoneDialog.requireMicrophone")," "),c.R7$(2),c.Y8G("ngIf",w.isSelectorEmpty()&&!w.featureFlags.captureMicrophoneOptional),c.R7$(),c.Y8G("ngIf",w.isSelectorEmpty()&&w.featureFlags.captureMicrophoneOptional),c.R7$(3),c.SpI(" ",c.bMT(28,29,c.bMT(27,27,"common.cancel"))," "),c.R7$(3),c.Y8G("mat-dialog-close",!0)("disabled",w.isSelectorEmpty()&&(!w.featureFlags.captureMicrophoneOptional||!w.checkboxState)),c.R7$(),c.SpI(" ",c.bMT(32,33,c.bMT(31,31,"playtestLive.joinPlaytest"))," "))},dependencies:[x.YU,x.Sq,x.bT,fn.BC,fn.vS,V.DJ,V.BO,V.sA,V.G2,V.UI,D.PW,k.iV,nn.NZ,n.tx,n.E7,yn.VO,il.wT,Ne.HM,Jd.tG,x.Pc,Ze.D9],styles:[".isLtr[_nghost-%COMP%] .mat-select-trigger, .isLtr [_nghost-%COMP%] .mat-select-trigger{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .mat-select-trigger{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .mat-select-trigger, .isRtl [_nghost-%COMP%] .mat-select-trigger{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .mat-select-trigger{--dummy2: 0;padding-left:10px}.isLtr[_nghost-%COMP%] .mat-select-trigger, .isLtr [_nghost-%COMP%] .mat-select-trigger{padding-left:10px}html[dir=ltr][_ngcontent-%COMP%] .mat-select-trigger{--dummy1: 0;padding-left:10px}.isRtl[_nghost-%COMP%] .mat-select-trigger, .isRtl [_nghost-%COMP%] .mat-select-trigger{padding-right:10px}html[dir=rtl][_ngcontent-%COMP%] .mat-select-trigger{--dummy1: 0;padding-right:10px}.microphone-dialog-container[_ngcontent-%COMP%]{max-width:100%}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-header[_ngcontent-%COMP%]{margin-bottom:15px}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-select[_ngcontent-%COMP%]{height:48px;margin-bottom:16px;background:#494949}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-preview[_ngcontent-%COMP%], .microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-disable[_ngcontent-%COMP%]{margin-bottom:10px}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-dialog-disable[_ngcontent-%COMP%] .font-color-warning[_ngcontent-%COMP%]{color:#ffb43e}.microphone-dialog-container[_ngcontent-%COMP%] .mic-progress[_ngcontent-%COMP%]{margin-top:8px}.microphone-dialog-container[_ngcontent-%COMP%] .nowrap[_ngcontent-%COMP%]{white-space:nowrap}.microphone-dialog-container[_ngcontent-%COMP%] .microphone-display-none[_ngcontent-%COMP%]{display:none}"]}),Ke})();const lp=["webcamHolder"],om=["disableButton"],th=j=>({"webcam-hidden":j}),cp=j=>({"webcam-display-none":j});function dp(j,Ke){if(1&j&&(c.j41(0,"mat-option",19),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j){const we=c.XpG();c.Y8G("value",we.selectedWebcamId),c.R7$(),c.SpI(" ",c.bMT(2,2,"playtestLive.selectWebcamDialog.noWebcam")," ")}}function up(j,Ke){if(1&j&&(c.j41(0,"mat-option",20),c.EFF(1),c.k0s()),2&j){const we=Ke.$implicit;c.Y8G("value",we.deviceId),c.R7$(),c.SpI(" ",we.label," ")}}function yg(j,Ke){1&j&&(c.j41(0,"div",23),c.nrm(1,"mat-progress-spinner",24),c.k0s())}function Gc(j,Ke){if(1&j&&(c.j41(0,"div",21),c.DNE(1,yg,2,0,"div",22),c.k0s()),2&j){const we=c.XpG();c.R7$(),c.Y8G("ngIf",we.showSpinner)}}function du(j,Ke){1&j&&(c.j41(0,"div",29),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"playtestLive.hardwarePermissionError")," "))}function hp(j,Ke){1&j&&(c.j41(0,"div",29),c.EFF(1),c.nI1(2,"translate"),c.k0s()),2&j&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"playtestLive.hardwarePermissionErrorOptional")," "))}function Qm(j,Ke){if(1&j&&(c.j41(0,"div",25)(1,"div",26)(2,"div",27),c.EFF(3),c.nI1(4,"translate"),c.k0s(),c.DNE(5,du,3,3,"div",28)(6,hp,3,3,"div",28),c.k0s()()),2&j){const we=c.XpG();c.R7$(3),c.SpI(" ",c.bMT(4,3,"playtestLive.selectWebcamDialog.noWebcam")," "),c.R7$(2),c.Y8G("ngIf",!we.featureFlags.captureWebcamOptional),c.R7$(),c.Y8G("ngIf",we.featureFlags.captureWebcamOptional)}}function sm(j,Ke){if(1&j&&(c.j41(0,"button",30),c.EFF(1),c.nI1(2,"translate"),c.nI1(3,"uppercase"),c.k0s()),2&j){const we=c.XpG();c.Y8G("mat-dialog-close",!0)("disabled",!we.isWebcamReady),c.R7$(),c.SpI(" ",c.bMT(3,5,c.bMT(2,3,"playtestLive.selectWebcamDialog.next"))," ")}}function am(j,Ke){if(1&j&&(c.j41(0,"button",30),c.EFF(1),c.nI1(2,"translate"),c.nI1(3,"uppercase"),c.k0s()),2&j){const we=c.XpG();c.Y8G("mat-dialog-close",!0)("disabled",!we.isWebcamReady&&!we.checkboxState),c.R7$(),c.SpI(" ",c.bMT(3,5,c.bMT(2,3,"playtestLive.joinPlaytest"))," ")}}let nh=(()=>{var j;class Ke{constructor(C,w,Q){this.gfnWebcamService=C,this.loggingService=w,this.playtestLiveService=Q,this.secondaryButtonClick=new c.bkB,this.destroy$=new p.B7,this.isWebcamReady=!1,this.selectedWebcamId="",this.checkboxState=!1,this.showSpinner=!0,this.spinnerTimeout=null}startSpinner(){this.stopSpinner(),this.showSpinner=!0,this.spinnerTimeout=(0,jn.O)(7e3).subscribe(()=>{this.stopSpinner()})}stopSpinner(){this.spinnerTimeout?.unsubscribe(),this.spinnerTimeout=null,this.showSpinner=!1}ngOnInit(){this.logger=this.loggingService.getLogger("WebcamPreview"),this.featureFlags=this.playtestLiveService.featureFlags,this.videoDevices=[],this.startSpinner(),this.gfnWebcamService.getMediaDeviceInfo(this.featureFlags).pipe((0,h.Q)(this.destroy$)).subscribe(C=>{this.videoDevices=C.videoInput.map(w=>w),0<this.videoDevices.length?this.onWebcamSelected(this.videoDevices[0].deviceId):this.stopSpinner()},C=>{this.logger.info("Error fetching webcam: ",C),this.stopSpinner()})}onWebcamSelected(C){const w=this.videoDevices.find(Q=>Q.deviceId===C);this.isWebcamReady=!1,this.startSpinner(),w&&(this.selectedWebcamId=w.deviceId,(0,El.H)(navigator.mediaDevices.getUserMedia({audio:!1,video:{width:512,deviceId:w.deviceId}})).pipe((0,g.s)(1),(0,h.Q)(this.destroy$),(0,on.M)(Q=>Q.getVideoTracks().some(me=>me.enabled&&"live"===me.readyState)?(0,it.of)(Q):(0,Ut.$)("Webcam not ready"))).subscribe(Q=>{this.clearTracks(),this.webcamHolder.nativeElement.srcObject=Q,this.webcamHolder.nativeElement.onloadedmetadata=me=>{this.stopSpinner(),this.isWebcamReady=!0,this.webcamHolder.nativeElement.play(),this.gfnWebcamService.mediaSetup.webcam=w.label,this.gfnWebcamService.mediaSetup.webcamDevId=w.deviceId}},Q=>{this.stopSpinner(),this.isWebcamReady=!1,this.clearTracks(),this.logger.info("Error accessing your webcam: ",Q)}))}onDisableChange(){this.checkboxState?(this.stopSpinner(),this.isWebcamReady=!1,this.clearTracks(),this.gfnWebcamService.mediaSetup.webcam="Disable",this.gfnWebcamService.mediaSetup.webcamDevId="Disable"):this.onWebcamSelected(this.selectedWebcamId)}isSelectorEmpty(){return 0===this.videoDevices.length||!this.videoDevices[0].deviceId||0===this.videoDevices[0].deviceId.length}clearTracks(){this.webcamHolder?.nativeElement?.srcObject?.getTracks()?.forEach(w=>w.stop())}ngOnDestroy(){this.stopSpinner(),this.clearTracks(),this.checkboxState&&(this.gfnWebcamService.mediaSetup.webcam="Disable",this.gfnWebcamService.mediaSetup.webcamDevId="Disable"),this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(Cg),c.rXU(l.J6),c.rXU(td))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-playtestlive-webcampreview"]],viewQuery:function(C,w){if(1&C&&(c.GBs(lp,5),c.GBs(om,5)),2&C){let Q;c.mGM(Q=c.lsd())&&(w.webcamHolder=Q.first),c.mGM(Q=c.lsd())&&(w.disableButton=Q.first)}},outputs:{secondaryButtonClick:"secondaryButtonClick"},decls:29,vars:33,consts:[["webcamHolder",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlexFill","",1,"webcam-dialog-container"],["fxFlex","1 1 auto","fxLayout","column"],[1,"webcam-dialog-header"],[1,"font-header6"],["fxFlex","0 0 auto","fxLayout","row","fxLayoutAlign","center center",1,"webcam-dialog-select","font-body2"],[3,"valueChange","selectionChange","disableOptionCentering","value","disabled"],["selected","",3,"value",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","0 0 auto",1,"webcam-dialog-preview"],[1,"video-preview",3,"ngClass"],["class","video-box",4,"ngIf"],["class","video-text-box",4,"ngIf"],[1,"webcam-dialog-disable"],[3,"ngModelChange","change","ngClass","ngModel"],[1,"font-body2","font-color-warning",3,"ngClass"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","10px"],["mat-button","","mat-dialog-close","",1,"font-button2","hig-button"],["mat-button","","class","font-button2 hig-button",3,"mat-dialog-close","disabled",4,"ngIf"],["selected","",3,"value"],[3,"value"],[1,"video-box"],["class","hig-dialog-spinner","fxLayout","column","fxLayoutAlign","center center","fxFlex","1 1 auto",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","1 1 auto",1,"hig-dialog-spinner"],["mode","indeterminate","diameter","48","strokeWidth","4","color","accent"],[1,"video-text-box"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","1 1 auto"],[1,"no-webcam-header","font-sub1"],["class","font-body2",4,"ngIf"],[1,"font-body2"],["mat-button","",1,"font-button2","hig-button",3,"mat-dialog-close","disabled"]],template:function(C,w){if(1&C){const Q=c.RV6();c.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4),c.EFF(4),c.nI1(5,"translate"),c.k0s()(),c.j41(6,"div",5)(7,"mat-select",6),c.mxI("valueChange",function(Ye){return c.eBV(Q),c.DH7(w.selectedWebcamId,Ye)||(w.selectedWebcamId=Ye),c.Njj(Ye)}),c.bIt("selectionChange",function(Ye){return c.eBV(Q),c.Njj(w.onWebcamSelected(Ye.value))}),c.DNE(8,dp,3,4,"mat-option",7)(9,up,2,2,"mat-option",8),c.k0s()(),c.j41(10,"div",9),c.nrm(11,"video",10,0),c.DNE(13,Gc,2,1,"div",11)(14,Qm,7,5,"div",12),c.k0s(),c.j41(15,"div",13)(16,"mat-checkbox",14),c.mxI("ngModelChange",function(Ye){return c.eBV(Q),c.DH7(w.checkboxState,Ye)||(w.checkboxState=Ye),c.Njj(Ye)}),c.bIt("change",function(){return c.eBV(Q),c.Njj(w.onDisableChange())}),c.EFF(17),c.nI1(18,"translate"),c.k0s(),c.j41(19,"div",15),c.EFF(20),c.nI1(21,"translate"),c.k0s()()(),c.j41(22,"mat-dialog-actions",16)(23,"button",17),c.EFF(24),c.nI1(25,"translate"),c.nI1(26,"uppercase"),c.k0s(),c.DNE(27,sm,4,7,"button",18)(28,am,4,7,"button",18),c.k0s()()}2&C&&(c.R7$(4),c.JRh(c.bMT(5,17,"playtestLive.selectWebcamDialog.selectYourWebcam")),c.R7$(3),c.Y8G("disableOptionCentering",!0),c.R50("value",w.selectedWebcamId),c.Y8G("disabled",w.checkboxState||w.isSelectorEmpty()),c.R7$(),c.Y8G("ngIf",w.isSelectorEmpty()),c.R7$(),c.Y8G("ngForOf",w.videoDevices),c.R7$(2),c.Y8G("ngClass",c.eq3(27,th,w.checkboxState||!w.isWebcamReady)),c.R7$(2),c.Y8G("ngIf",w.showSpinner||w.checkboxState||!w.isWebcamReady||w.isSelectorEmpty()),c.R7$(),c.Y8G("ngIf",!w.showSpinner&&!w.checkboxState&&(w.isSelectorEmpty()||!w.isWebcamReady)),c.R7$(2),c.Y8G("ngClass",c.eq3(29,cp,!w.featureFlags.captureWebcamOptional)),c.R50("ngModel",w.checkboxState),c.R7$(),c.JRh(c.bMT(18,19,"playtestLive.selectWebcamDialog.disableWebcam")),c.R7$(2),c.Y8G("ngClass",c.eq3(31,cp,w.featureFlags.captureWebcamOptional||!w.isSelectorEmpty())),c.R7$(),c.SpI(" ",c.bMT(21,21,"playtestLive.selectWebcamDialog.requireWebcam")," "),c.R7$(4),c.SpI(" ",c.bMT(26,25,c.bMT(25,23,"common.cancel"))," "),c.R7$(3),c.Y8G("ngIf",w.featureFlags.captureMicrophone&&!w.checkboxState),c.R7$(),c.Y8G("ngIf",!w.featureFlags.captureMicrophone||w.checkboxState))},dependencies:[x.YU,x.Sq,x.bT,fn.BC,fn.vS,V.DJ,V.BO,V.sA,V.G2,V.UI,D.PW,k.iV,nn.NZ,I.LG,n.tx,n.E7,yn.VO,il.wT,Jd.tG,x.Pc,Ze.D9],styles:[".isLtr[_nghost-%COMP%] .mat-select-trigger, .isLtr [_nghost-%COMP%] .mat-select-trigger{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .mat-select-trigger{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .mat-select-trigger, .isRtl [_nghost-%COMP%] .mat-select-trigger{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .mat-select-trigger{--dummy2: 0;padding-left:10px}.isLtr[_nghost-%COMP%] .mat-select-trigger, .isLtr [_nghost-%COMP%] .mat-select-trigger{padding-left:10px}html[dir=ltr][_ngcontent-%COMP%] .mat-select-trigger{--dummy1: 0;padding-left:10px}.isRtl[_nghost-%COMP%] .mat-select-trigger, .isRtl [_nghost-%COMP%] .mat-select-trigger{padding-right:10px}html[dir=rtl][_ngcontent-%COMP%] .mat-select-trigger{--dummy1: 0;padding-right:10px}.webcam-dialog-container[_ngcontent-%COMP%]{max-width:100%}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-header[_ngcontent-%COMP%]{margin-bottom:15px}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-select[_ngcontent-%COMP%]{height:48px;margin-bottom:16px;background:#494949}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%]{height:288px;margin-bottom:10px;position:relative}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%] .video-preview[_ngcontent-%COMP%]{object-fit:cover;height:100%;width:100%;position:absolute}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%] .video-box[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;background:#292929}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%] .video-text-box[_ngcontent-%COMP%]{height:100%;width:76%;left:12%;position:absolute;text-align:center}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-preview[_ngcontent-%COMP%] .video-text-box[_ngcontent-%COMP%] .no-webcam-header[_ngcontent-%COMP%]{margin-bottom:5px}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-disable[_ngcontent-%COMP%]{margin-bottom:10px}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-dialog-disable[_ngcontent-%COMP%] .font-color-warning[_ngcontent-%COMP%]{color:#ffb43e}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-hidden[_ngcontent-%COMP%]{visibility:hidden}.webcam-dialog-container[_ngcontent-%COMP%] .webcam-display-none[_ngcontent-%COMP%]{display:none}"]}),Ke})();function gp(j,Ke){1&j&&(c.nrm(0,"div",8),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackIntro"),c.npT)}function Gd(j,Ke){1&j&&(c.nrm(0,"div",8),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackGameplay"),c.npT)}function xs(j,Ke){1&j&&(c.nrm(0,"div",8),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackInputs"),c.npT)}function bg(j,Ke){1&j&&(c.nrm(0,"div",8),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackWebcam"),c.npT)}function dd(j,Ke){1&j&&(c.nrm(0,"div",8),c.nI1(1,"translate")),2&j&&c.Y8G("innerHtml",c.bMT(1,1,"playtestLive.playtestFeedbackDialog.feedbackMicrophone"),c.npT)}let ih=(()=>{var j;class Ke{constructor(C,w){this.loggingService=C,this.playtestLiveService=w,this.primaryButtonClick=new c.bkB,this.destroy$=new p.B7}ngOnInit(){this.logger=this.loggingService.getLogger("FeedbackHig"),this.featureFlags=this.playtestLiveService.featureFlags}onPrimaryButtonClick(){this.primaryButtonClick.emit(!0)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.rXU(l.J6),c.rXU(td))},j.\u0275cmp=c.VBU({type:j,selectors:[["gfn-playtestlive-feedbackhig"]],inputs:{primaryButton:"primaryButton"},outputs:{primaryButtonClick:"primaryButtonClick"},decls:17,vars:14,consts:[["fxLayout","column",1,"feedbackhig-dialog-container"],[1,"feedbackhig-dialog-header"],[1,"font-header6"],[1,"feedbackhig-dialog-intro"],["class","font-body2",3,"innerHtml",4,"ngIf"],[1,"feedbackhig-dialog-items"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","10px"],["mat-button","",1,"font-button2","hig-button",3,"click","mat-dialog-close"],[1,"font-body2",3,"innerHtml"]],template:function(C,w){1&C&&(c.j41(0,"div",0)(1,"span",1)(2,"span",2),c.EFF(3),c.nI1(4,"translate"),c.k0s()(),c.j41(5,"span",3),c.DNE(6,gp,2,3,"div",4),c.k0s(),c.j41(7,"span",5),c.DNE(8,Gd,2,3,"div",4)(9,xs,2,3,"div",4)(10,bg,2,3,"div",4)(11,dd,2,3,"div",4),c.k0s(),c.j41(12,"mat-dialog-actions",6)(13,"button",7),c.bIt("click",function(){return w.onPrimaryButtonClick()}),c.EFF(14),c.nI1(15,"translate"),c.nI1(16,"uppercase"),c.k0s()()()),2&C&&(c.R7$(3),c.SpI(" ",c.bMT(4,8,"playtestLive.playtestFeedbackDialog.header")," "),c.R7$(3),c.Y8G("ngIf",w.featureFlags.captureWebcam||w.featureFlags.captureMicrophone||w.featureFlags.captureGameplay||w.featureFlags.captureInput),c.R7$(2),c.Y8G("ngIf",w.featureFlags.captureGameplay),c.R7$(),c.Y8G("ngIf",w.featureFlags.captureInput),c.R7$(),c.Y8G("ngIf",w.featureFlags.captureWebcam),c.R7$(),c.Y8G("ngIf",w.featureFlags.captureMicrophone),c.R7$(2),c.Y8G("mat-dialog-close",!0),c.R7$(),c.SpI(" ",c.bMT(16,12,c.bMT(15,10,"common.done"))," "))},dependencies:[x.bT,V.DJ,V.BO,V.sA,k.iV,n.tx,n.E7,x.Pc,Ze.D9],styles:[".feedbackhig-dialog-container[_ngcontent-%COMP%]{max-width:100%}.feedbackhig-dialog-container[_ngcontent-%COMP%] .feedbackhig-dialog-header[_ngcontent-%COMP%]{margin-bottom:20px}.feedbackhig-dialog-container[_ngcontent-%COMP%] .feedbackhig-dialog-intro[_ngcontent-%COMP%]{margin-bottom:10px}.feedbackhig-dialog-container[_ngcontent-%COMP%] .feedbackhig-dialog-items[_ngcontent-%COMP%]{margin-bottom:20px}"]}),Ke})();var lm=d(5715),ba=d(74150);let Pg=(()=>{var j;class Ke{allowEarlyLayoutFetch(){this.startLayoutFetchSubject.next()}get startLayoutFetch$(){return this.startLayoutFetchSubject.asObservable()}get filterPanelToggled$(){return this.filterPanelToggled.asObservable()}get streamingTerminated$(){return this.streamingTerminated.asObservable()}get selectedParentId(){return this._selectedParentId}get enableGridResizing$(){return this.enableGridResizing}get gridSectionEvidencePanelOpenStatus$(){return this.isGridSectionEvidencePanelOpen.asObservable()}updateGridSectionEvidencePanelOpenStatus(C){this.isGridSectionEvidencePanelOpen.next(C)}browseStore(C){return C.pipe((0,g.s)(1),(0,wt.T)(w=>(this.browseDbStore=this.dbCacheService.getOrCreateCachedGlobalItem(jl.eE.DbStoreName,w.userId||l.Qe),this.logger.info("DB store initialize",jl.eE.DbStoreName),this.browseDbStore)))}applyClassOnBody(C){document?document.getElementsByTagName("body")[0].classList.add(C):this.logger.error("Can not add the class, document is undefined")}updateInitialScale(){const C=window.devicePixelRatio;if(C){const w=1/C;this.meta.updateTag({content:`width=device-width, initial-scale=${w}, viewport-fit=cover, minimum-scale=${w}, maximum-scale=${w}`},"name=viewport")}else this.logger.info("Invalid devicePixelRatio. Not updating the initial scale.")}get gridViewEvidencePanelGameId(){return this._gridViewEvidencePanelGameId}get enableOverrideToolLink(){return this.overrideToolPath&&this.browserSupportService.isStagingOrDevDomain()&&this.pwaService.isInPWAMode()}constructor(C,w,Q,me,Ye,bt,cn,Wn,xi){this.appConfig=w,this.dbCacheService=Q,this.systemInfoService=me,this.sharedStorageService=Ye,this.distributedTracingBootstrapService=bt,this.meta=cn,this.browserSupportService=Wn,this.pwaService=xi,this.marqueeControl=lm.O.Play,this.enableGridResizing=new p.B7,this.isGridSectionEvidencePanelOpen=new J.t(!1),this.filterPanelToggled=new Be.m(1),this.streamingTerminated=new p.B7,this.startLayoutFetchSubject=new Be.m(1),this.logger=C.getLogger("gfn/shared/browseUx"),this._selectedParentId="",this.tvMode=!!w?.featureEnablement?.tvMode,this.overrideToolPath=this.appConfig?.client?.overrideToolPath;const Yi=!!w?.featureEnablement?.new10ftUx;this.tvMode&&(this.applyClassOnBody("tv-view"),w?.client?.updateInitalScale&&this.updateInitialScale()),Yi&&this.applyClassOnBody("new-10ft")}initialize(){this.setMarqueeControlAction(lm.O.Play)}getUserPreference(C,w){return this.browseStore(w).pipe((0,nt.ZZ)(Q=>Q.sync_()),(0,wt.T)(Q=>Q[C]))}setGridViewEvidencePanelGameId(C){this._gridViewEvidencePanelGameId=C}setUserPreference(C,w){return this.browseDbStore.sync_().pipe((0,nt.ZZ)(()=>(this.browseDbStore[C]=w,this.browseDbStore.persist_())))}setMarqueeControlAction(C){this.marqueeControl=C}getMarqueeControlAction(){return this.marqueeControl}setSelectedParentId(C){this._selectedParentId=C}emitFilterPanelToggled(C,w){this.filterPanelToggled.next({opened:C,mode:w})}emitStreamingTerminated(){this.streamingTerminated.next()}getVersionString(){return(0,Vt.zV)([this.systemInfoService.getSystemInfo([l.Lu.UserDefaultUILanguage,l.Lu.ProductName]),this.distributedTracingBootstrapService.fetchCountryCode()]).pipe((0,g.s)(1),(0,wt.T)(([C,w])=>{if(l.zk.isAndroidPlatform())return`${(0,Mi.Cl)(this.appConfig)} ${w}/${C.UserDefaultUILanguage}/${C.ProductName}`;{const Q=this.getClientVersionInfo();if(!Q)return"";let me="",Ye="";return Q.variant.length>0&&(me=Q.variant.charAt(0)),Q.type.length>0&&(Ye=Q.type.charAt(0)),Q.version+(me&&Ye?"/":"")+me+Ye+" "+w+"/"+C.UserDefaultUILanguage}}))}readLaunchMetaData(C){return this.sharedStorageService.readBlock(Yr.OU.parentIdToLaunchMetaDataMap+"/"+C)}writeLaunchMetaData(C,w){return this.sharedStorageService.writeBlock(Yr.OU.parentIdToLaunchMetaDataMap+"/"+C,w)}deleteLaunchMetaData(C){return this.sharedStorageService.removeBlock(Yr.OU.parentIdToLaunchMetaDataMap+"/"+C)}openOverrideToolPage(){this.tvMode?location.href=this.overrideToolPath:window.open(this.overrideToolPath,"_blank")}getClientVersionInfo(){return{version:this.appConfig.build.version,variant:this.appConfig.build.variant,type:this.appConfig.build.type}}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Mi.Vk),c.KVO(l.sc),c.KVO(l.zW),c.KVO(Po.yQ),c.KVO(ug),c.KVO(ba.W8),c.KVO(Uu.vT),c.KVO(hc.SL))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Og=function(j){return j.Back="Back",j.Logout="Logout",j}(Og||{}),Ss=function(j){return j.MarkAsOwned="MarkAsOwned",j.ManuallyMarkAsOwned="ManuallyMarkAsOwned",j.Cancel="Cancel",j.Reconnect="Reconnect",j.Connect="Connect",j.GoToConnection="GoToConnection",j.Resync="Resync",j.NotNow="NotNow",j.Done="Done",j}(Ss||{});const Oc_body_text="layout.inLineAccountLinkingPrompt.body",Oc_body_textWithoutURL="layout.inLineAccountLinkingPrompt.bodyWithoutURL",Oc_primaryButton={text:"layout.accountLinkingPrompt.connect",accentColor:!0},Oc_checkbox_text="common.dontShowThisAgain",Oc_checkbox_initialState=!1,Oc_tvLink_text="pathToPurchase.title",cm_body_text="layout.inLineSyncInProgress.body",Ah_connectBody_text="layout.inLineAccountConnected.body",Ah_reconnectBody_text="layout.inLineAccountConnected.reconnectBody",Ah_primaryButton={text:"common.done"},Dh_body_text="layout.inLineSyncFailure.failedSync.body",Dh_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},Eu_body_text="layout.inLineSyncFailure.notPublicIssue.body",Eu_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},rh_body_text="layout.inLineSyncFailure.profileNotCreated.body",rh_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},xu_body_text="layout.inLineSyncFailure.permissionFailure.body",xu_primaryButton={text:"accountConnection.goToConnection",accentColor:!0},Rh_body_text="layout.inLineLibrarySynced.body",Rh_primaryButton={text:"common.done"},wu_body_text="layout.inLineNoGameSynced.body",wu_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},wu_tvLink_text="pathToPurchase.title",uu_body_text="layout.manuallyOwnPrompt.body",uu_body_textWithoutURL="layout.manuallyOwnPrompt.bodyWithoutURL",uu_genericBody_text="layout.manuallyOwnPrompt.genericBody",uu_genericBody_textWithoutURL="layout.manuallyOwnPrompt.genericBodyWithoutURL",uu_primaryButton={text:"layout.manuallyOwnPrompt.primaryButton",accentColor:!0},uu_tvLink_text="pathToPurchase.title",Eg_body_text="layout.resyncGameStore.body",Eg_primaryButton={text:"accountConnection.refreshLibrary",accentColor:!0},Eg_tvLink_text="pathToPurchase.title",pp={header:"common.joinTodayToPlay",headerOnTv:"layout.joinTodayAlertDialogText.headerTextOnTv",body:{text:"layout.joinTodayAlertDialogText.bodyText",textWithoutLink:"layout.joinTodayAlertDialogText.bodyTextWithoutLink"},primaryButton:{text:"common.joinToday",accentColor:!0},secondaryButton:{text:"common.cancel"},loginButton:{text:"common.login"}},Jm={header:"loginBridgeState.loginToGeForceNow",headerOnTv:"loginBridgeState.loginToGeForceNow",body:{text:"layout.joinTodayAlertDialogText.bodyTextWithoutLink",textWithoutLink:"layout.joinTodayAlertDialogText.bodyTextWithoutLink"},primaryButton:{text:"common.login",accentColor:!0},secondaryButton:{text:"common.cancel"},loginButton:{text:"common.login",accentColor:!0}},mp_body_text="common.connectionError",mp_primaryButton={text:"common.close",accentColor:!0},oh_body_text="layout.mobileDataWarning.body",oh_primaryButton={text:"common.allow",accentColor:!0},sh_body={text:"multiplatform.dialog.description"},sh_primaryButton={text:"common.continue",isDisabled:!0},dm_body_text="fencedStatus.patchingSupplementalText",dm_primaryButton_text="common.close",fp_body_text="fencedStatus.offlineSupplementalTextShortMessage",fp_primaryButton_text="common.close",hu_body_text="layout.gamepadWarningAlert.body",hu_checkbox_text="common.dontShowThisAgain",hu_checkbox_initialState=!1,hu_primaryButton={text:"common.continue",accentColor:!0},Na_body_text="layout.keyboardMouseWarningAlert.body",Na_checkbox_text="common.dontShowThisAgain",Na_checkbox_initialState=!1,Na_primaryButton={text:"common.continue",accentColor:!0},Aa_body_text="layout.dayPassLowPlayTimeAlert.body",Aa_body_bodyEcomRestricted="layout.dayPassLowPlayTimeAlert.bodyEcomRestricted",Aa_body_bodyEcomRestrictedTV="layout.dayPassLowPlayTimeAlert.bodyEcomRestrictedTV",Aa_checkbox_text="common.dontShowThisAgain",Aa_checkbox_initialState=!1,Aa_primaryButton={text:"common.playAnyway",accentColor:!0},Aa_secondaryButton_text="common.cancel",Aa_secondaryButton_id="cancel",Aa_augmentedButton_text="ecommerce.membership.addDays",Aa_augmentedButton_ecomRestricted="ecommerce.viewAccount",Vc_body_text="timeCapTimeAlert.timeCapLowPlayTimeAlert.body",Vc_body_bodyEcomRestricted="timeCapTimeAlert.timeCapLowPlayTimeAlert.bodyEcomRestricted",Vc_checkbox_text="timeCapTimeAlert.dontShowAgain",Vc_checkbox_initialState=!1,Vc_primaryButton={text:"common.playAnyway",accentColor:!0},Xl_header="timeCapSessionLimitReached.outOfPlaytime",Xl_body_text="timeCapTimeAlert.timeCapLimitedPlayTimeAlert.body",Xl_body_bodyUnplayable="timeCapTimeAlert.timeCapLimitedPlayTimeAlert.bodyUnplayable",Xl_checkbox_text="timeCapTimeAlert.dontShowAgain",Xl_checkbox_initialState=!1,Xl_primaryButton={text:"ecommerce.addPlaytime",accentColor:!0},Xl_primaryViewPlaytimeButton={text:"ecommerce.viewPlaytime",accentColor:!0},Lh_primaryButton={text:"common.gotIt"},xg_body_unsupportedBrowserWithNativeApps="layout.universalUnsupportedDialogText.unsupportedBrowserWithNativeAppsBodyText",xg_primaryButton={text:"common.close"},um_primaryButton={text:"common.continueAnyway"},um_secondaryButton={text:"common.cancel"};let _p=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls){this.appConfig=w,this.dialog=Q,this.browseUxService=me,this.translateService=Ye,this.telemetryUtilService=bt,this.sharedStorageService=cn,this.idmService=Wn,this.redirectService=xi,this.genericDialog=Yi,this.ecomService=fr,this.unsupportedBrowserService=Gr,this.bridgeService=ao,this.focusManager=Eo,this.fullPageDialog=ls,this.logger=C.getLogger("DialogService"),this.tvMode=!!w?.featureEnablement?.tvMode}get threeQuarterSheetBackgroundData(){return this._threeQuarterSheetDialogData}set threeQuarterSheetBackgroundData(C){this._threeQuarterSheetDialogData=C}openJoinTodayAlertDialog(C,w,Q){const me=this.ecomService.canHardUpsell(),Ye=me?pp:Jm,bt=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:this.tvMode?Ye.headerOnTv:Ye.header},bodyText:{text:this.tvMode?Ye.body.textWithoutLink:Ye.body.text,placeholders:{loginLink:'class="font-body2-link membership-login-link"'}},primaryButton:me?{...Ye.primaryButton}:this.tvMode?null:{...Ye.loginButton},secondaryButton:this.tvMode?{...Ye.loginButton}:{...Ye.secondaryButton},threeQuarterSheetData:{augmentedButtons:[{text:Ye.secondaryButton.text,id:"cancel"}],...Q}}},{preferredDialogType:this.tvMode?T.QO.ThreeQuarterSheet:void 0});let cn=null;const Wn=bt.afterOpened().pipe((0,nt.ZZ)(Yi=>{if(this.tvMode)return bt.secondaryButtonClick;if(!me)return bt.primaryButtonClick;{const fr=document.getElementsByClassName("membership-login-link");if(fr&&fr[0])return(0,re.R)(fr,"click")}return Oa.w}),(0,g.s)(1));this.appConfig.featureEnablement.UASAutoEntitle?cn=(0,rr.O4)(Wn,bt.primaryButtonClick):(cn=Wn,bt.primaryButtonClick.subscribe(()=>{this.telemetryUtilService.sendJoinTodayAlertDialogUiAction(Yr.o.Join),this.ecomService.openJoinMembershipPage(C,w)},Yi=>{this.logger.error("join today dialog:",Yi)}));const xi=this.tvMode?bt.augmentedButtonClick.pipe((0,ge.p)(Yi=>"cancel"===Yi)):bt.secondaryButtonClick;return(0,rr.O4)(xi.pipe((0,mt.u)(Yr.o.Close)),bt.afterClosed().pipe((0,mt.u)(Yr.o.Close)),cn.pipe((0,mt.u)(Yr.o.Login))).pipe((0,wt.T)(Yi=>(this.telemetryUtilService.sendJoinTodayAlertDialogUiAction(Yi),bt.close(),Yi)))}openUnsupportedBrowserDialog(C,w){let Q;this.openGFNUnsupportedDialog(!1,C,w).pipe((0,g.s)(1),(0,nt.ZZ)(me=>(Q=me,(0,rr.O4)(Q.afterClosed().pipe((0,mt.u)(Yr.Io.Cancel)),Q.primaryButtonClick.pipe((0,mt.u)(Yr.Io.Cancel))))),(0,on.M)(me=>{this.telemetryUtilService.sendPopUpDialogClosedEvent(Pt.duU.Unsupported_Browser_Or_Platform_Game_Launch,Pt.HBm.Dialog_Closed),Q.close()})).subscribe()}openUnsupportedSystemSoftBlockerDialog(C){let w;return this.openGFNUnsupportedDialog(!0,C).pipe((0,g.s)(1),(0,nt.ZZ)(Q=>(w=Q,(0,rr.O4)(Q.secondaryButtonClick.pipe((0,mt.u)(Yr.nw.Cancel)),Q.primaryButtonClick.pipe((0,mt.u)(Yr.nw.Continue)),Q.afterClosed().pipe((0,mt.u)(Yr.nw.Cancel))))),(0,wt.T)(Q=>(this.telemetryUtilService.sendPopUpDialogClosedEvent(Pt.duU.Unsupported_Browser_Or_Platform_Login,Q===Yr.nw.Continue?Pt.HBm.Continue_Login:Pt.HBm.Dialog_Closed),w.close(),Q)))}openGFNUnsupportedDialog(C,w,Q){return this.unsupportedBrowserService.getDialogLink$(w).pipe((0,g.s)(1),(0,wt.T)(me=>{const Ye=this.tvMode?{text:xg_body_unsupportedBrowserWithNativeApps,placeholders:{vanityUrl:me.shortUrl}}:void 0;return this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:this.unsupportedBrowserService.getUnsupportedHeaderText(w)},link:me,bodyText:Ye,primaryButton:C?{...um_primaryButton}:{...xg_primaryButton},secondaryButton:C?{...um_secondaryButton}:void 0,threeQuarterSheetData:Q}},{preferredDialogType:T.QO.ThreeQuarterSheet})}),(0,on.M)(me=>{this.telemetryUtilService.sendPopUpDialogShownEvent(C?Pt.duU.Unsupported_Browser_Or_Platform_Login:Pt.duU.Unsupported_Browser_Or_Platform_Game_Launch)}))}openConnectionErrorDialog(){const C=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"common.genericLoadError"},bodyText:{text:mp_body_text},primaryButton:{...mp_primaryButton}}});C.primaryButtonClick.pipe((0,g.s)(1)).subscribe(()=>C.close())}openMobileDataWarningDialog(C){const w=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.mobileDataWarning.title"},bodyText:{text:oh_body_text},primaryButton:{...oh_primaryButton},secondaryButton:{text:"common.cancel"},threeQuarterSheetData:C}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(w.primaryButtonClick.pipe((0,mt.u)(!0)),w.secondaryButtonClick.pipe((0,mt.u)(!1))).pipe((0,on.M)(()=>w.close()))}setDigitalStore(C,w,Q){const me=C?.label;return""!==me?this.translateService.get(w,{digitalStore:me}):this.translateService.get(Q)}openMultiPlatformSelectionDialog(C,w,Q){const me=C.map(Wn=>{const xi=Wn.appStoreInfo.label;return Object.assign({value:""===xi?Wn.publisherName:xi},Wn.appStoreInfo.smallImageUrl?{imageUrl:Wn.appStoreInfo.smallImageUrl}:null)}),bt={panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"common.beforeYouPlay"},bodyText:{...sh_body},primaryButton:{...sh_primaryButton},secondaryButton:{text:"common.cancel"},radioButtonOptions:me}},cn=this.genericDialog.open(bt);return cn.radioButtonClick.pipe((0,g.s)(1),(0,on.M)(()=>{bt.data.primaryButton.isDisabled=!1})).subscribe(),(0,rr.O4)(cn.primaryButtonClick.pipe((0,mt.u)(!0)),cn.secondaryButtonClick.pipe((0,mt.u)(!1)),cn.afterClosed().pipe((0,mt.u)(!1))).pipe((0,wt.T)(Wn=>{if(cn.close(),Wn){const xi=(Wn=>{let xi;const Yi=ds.StoresList.find(fr=>fr.label===Wn);return xi=C.find(Yi?fr=>fr.appStore===Yi.store:fr=>fr.publisherName===Wn&&""===fr.appStoreInfo.label),xi})(cn.radioOptionSelected);return this.telemetryUtilService.sendClickEvent(Pt.EBD.PlatformSelection,xi.appStore,`${w}/${Pt.MCB.ScreenPlatformSelectionDialog}`),xi}return null}))}openFencedStatusErrorDialog(C){this.logger.info("Show fenced error dialog for",C);const w=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:C===as.jv.PATCHING?"fencedStatus.gamePatching":"fencedStatus.gameOffline"},bodyText:{text:C===as.jv.PATCHING?dm_body_text:fp_body_text},primaryButton:{text:C===as.jv.PATCHING?dm_primaryButton_text:fp_primaryButton_text}}});w.primaryButtonClick.pipe((0,g.s)(1)).subscribe(()=>w.close())}openGamepadRequiredDialog(C){return(0,Vt.zV)([this.redirectService.getRedirectUrl(At.r7.GfnPcRecommendedGamepads),this.browseUxService.getUserPreference(jl.mG.skipGamepadWarningDialog,this.idmService.accountStatusChanged)]).pipe((0,nt.ZZ)(([w,Q])=>{if(Q)return(0,it.of)(!0);const me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"layout.gamepadWarningAlert.title"},bodyText:{text:hu_body_text,placeholders:this.tvMode?void 0:{gamePadURL:`class="font-body2-link" href="${w}"`}},checkbox:{text:this.tvMode?"layout.continueDontShowAgain":hu_checkbox_text,initialState:hu_checkbox_initialState,primaryActionInThreeQuarterSheet:!0},primaryButton:{...hu_primaryButton},secondaryButton:{text:"common.cancel"},link:{text:this.tvMode?"layout.gamepadWarningAlert.supportedGamepad":void 0,url:this.tvMode?w:void 0,shortUrl:At.lp[At.r7.GfnPcRecommendedGamepads]},threeQuarterSheetData:C}});return(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(!0)),me.secondaryButtonClick.pipe((0,mt.u)(!1)),me.afterClosed().pipe((0,mt.u)(!1))).pipe((0,wt.T)(Ye=>(me.close(),Ye&&this.browseUxService.setUserPreference(jl.mG.skipGamepadWarningDialog,me.checkboxState).pipe((0,g.s)(1)).subscribe(),Ye)))}))}openKeyboardMouseRequiredDialog(C){return this.browseUxService.getUserPreference(jl.mG.skipKeyboardMouseWarningDialog,this.idmService.accountStatusChanged).pipe((0,nt.ZZ)(Q=>{if(Q)return(0,it.of)(!0);const me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"layout.keyboardMouseWarningAlert.title"},bodyText:{text:Na_body_text},checkbox:{text:this.tvMode?"layout.continueDontShowAgain":Na_checkbox_text,initialState:Na_checkbox_initialState,primaryActionInThreeQuarterSheet:!0},primaryButton:{...Na_primaryButton},secondaryButton:{text:"common.quit"},threeQuarterSheetData:C}});return(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(!0)),me.secondaryButtonClick.pipe((0,mt.u)(!1)),me.afterClosed().pipe((0,mt.u)(!1))).pipe((0,on.M)(()=>me.close()),(0,nt.ZZ)(Ye=>Ye?this.browseUxService.setUserPreference(jl.mG.skipKeyboardMouseWarningDialog,me.checkboxState).pipe((0,mt.u)(Ye)):(0,it.of)(Ye)))}))}openGameShortcutDialog(C,w,Q,me,Ye,bt,cn){const Wn=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{image:{caption:"interface.gametitle",captionPlaceholder:{title:C},description:"gameShortcut.createShortcutGuidance",url:w,shortcutUrl:Q,isDraggableUrl:!0,dragStartCallback:this.onGameShortcutDragStart.bind(this,Ye,bt,cn)},headerText:{text:"gameShortcut.createShortcutTitle"},primaryButton:{...Lh_primaryButton}}});(0,rr.O4)(Wn.primaryButtonClick.pipe((0,mt.u)(!0)),Wn.afterClosed().pipe((0,mt.u)(!0)),me).subscribe(()=>{Wn.close()})}onGameShortcutDragStart(C,w,Q){Q&&this.telemetryUtilService.sendDragEvent(Pt.QF.GameShortcutUrl,C,w)}openTimeCapLimitedPlaytimeDialog(C,w){const Q=this.ecomService.canHardUpsell(),me=(0,Vt.zV)([this.browseUxService.getUserPreference(jl.mG.skipTimeCapLimitedPlayTimeRemainingDialog,this.idmService.accountStatusChanged),this.ecomService.getUserMembership()]),Ye=this.ecomService.getRedirectUrlWithIdpId$(At.r7.GfnPcLimitedFeaturesGamePlay).pipe((0,wt.T)(bt=>({headerText:{text:Xl_header},bodyText:{text:Xl_body_text,placeholders:this.tvMode?void 0:{limitedFeatureUrl:`class="font-body2-link" href="${bt}"`}},checkbox:{text:this.tvMode?"timeCapTimeAlert.dontShowAgainButton":Xl_checkbox_text,initialState:Xl_checkbox_initialState,primaryActionInThreeQuarterSheet:!1},link:{text:this.tvMode?"ecommerce.limitedFeatures":void 0,url:this.tvMode?bt:void 0,shortUrl:At.lp[At.r7.GfnPcLimitedFeaturesGamePlay],linkClickedCallback:this.limitedFeatureKBAClicked.bind(this,C)},primaryButton:Q?{...Xl_primaryButton}:{...Xl_primaryViewPlaytimeButton},secondaryButton:{text:"common.playAnyway"}})));return me.pipe((0,g.s)(1),(0,nt.ZZ)(([bt,cn])=>{if(!this.canShowTimeAlertDialog(bt,cn.subscription?.currentSpanEndDateTime,jl.mG.skipTimeCapLimitedPlayTimeRemainingDialog)&&w)return(0,it.of)(null);if(!w){const Wn={headerText:{text:Xl_header},bodyText:{text:Xl_body_bodyUnplayable},primaryButton:Q?{...Xl_primaryButton}:{...Xl_primaryViewPlaytimeButton},secondaryButton:{text:"common.notNow"}};return(0,it.of)(Wn)}return Ye}),(0,g.s)(1),(0,nt.ZZ)(bt=>{if(null===bt)return(0,it.of)(!0);let cn=Pt.HBm.Dialog_Closed;const Wn=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:bt});return(0,rr.O4)(Wn.primaryButtonClick.pipe((0,on.M)(()=>{Q?this.ecomService.openAddPlaytimePageAndDialog(Pt.MCB.ScreenLimitedStateGameLaunchDialog,C):this.ecomService.openViewPlaytimePage(Pt.MCB.ScreenLimitedStateGameLaunchDialog,C),cn=Pt.HBm.Continue_Add_Playtime}),(0,mt.u)(!1)),w?Wn.secondaryButtonClick.pipe((0,on.M)(()=>cn=Pt.HBm.Continue_Play_Anyway),(0,mt.u)(!0)):Wn.secondaryButtonClick.pipe((0,mt.u)(!1)),Wn.afterClosed().pipe((0,mt.u)(!1))).pipe((0,g.s)(1),(0,on.M)(()=>Wn.close()),(0,nt.ZZ)(xi=>(this.telemetryUtilService.sendPopUpDialogClosedEvent(Pt.duU.Limited_State_Game_Launch,cn,0,0,Pt.T80.FALSE,Wn.checkboxState?Pt.T80.TRUE:Pt.T80.FALSE),xi&&w?this.ecomService.getUserMembership().pipe((0,g.s)(1),(0,nt.ZZ)(Yi=>this.browseUxService.setUserPreference(jl.mG.skipTimeCapLimitedPlayTimeRemainingDialog,{value:Wn.checkboxState,expirationDateTime:Yi.subscription.currentSpanEndDateTime}).pipe((0,mt.u)(xi)))):(0,it.of)(xi))))}))}limitedFeatureKBAClicked(C){this.telemetryUtilService.sendClickEvent(Pt.EBD.LimitedFeaturesKBA,"",C,!1)}addPlayTimeClicked(C){this.ecomService.openAddPlaytimePageAndDialog(Pt.MCB.ScreenLowStateGameLaunchDialog,C)}viewPlayTimeClicked(C){this.ecomService.openViewPlaytimePage(Pt.MCB.ScreenLowStateGameLaunchDialog,C)}openTimeCapLowPlaytimeDialog(C){return(0,Vt.zV)([this.browseUxService.getUserPreference(jl.mG.skipTimeCapLowPlayTimeRemainingDialog,this.idmService.accountStatusChanged),this.ecomService.getUserMembership()]).pipe((0,g.s)(1),(0,nt.ZZ)(([w,Q])=>{const me=this.ecomService.canHardUpsell();return this.canShowTimeAlertDialog(w,Q.subscription?.currentSpanEndDateTime,jl.mG.skipTimeCapLowPlayTimeRemainingDialog)?(0,Vt.zV)([this.redirectService.getRedirectUrl(At.r7.GfnPcViewPlaytime),this.ecomService.getUserMembership()]).pipe((0,g.s)(1),(0,nt.ZZ)(([Ye,bt])=>{const cn={text:me?Vc_body_text:Vc_body_bodyEcomRestricted,placeholders:{remainingTime:(0,al.n9)(bt.subscription.remainingTimeInMinutes).time,managePlaytime:me||this.tvMode?void 0:`class="font-body2-link" href="${Ye}"`,addingMorePlaytime:!this.tvMode&&me?'class="font-body2-link add-playtime-link"':void 0}};let Wn;this.tvMode&&(Wn={text:me?"timeCapTimeAlert.timeCapLowPlayTimeAlert.addPlayTime":"ecommerce.viewPlaytime",url:void 0,shortUrl:void 0,linkClickedCallback:me?this.addPlayTimeClicked.bind(this,C):this.viewPlayTimeClicked.bind(this,C)});const xi={headerText:{text:"timeCapTimeAlert.timeCapLowPlayTimeAlert.title"},bodyText:cn,checkbox:{text:this.tvMode?"timeCapTimeAlert.dontShowAgainButton":Vc_checkbox_text,initialState:Vc_checkbox_initialState,primaryActionInThreeQuarterSheet:!0},link:Wn,primaryButton:{...Vc_primaryButton},secondaryButton:{text:"common.cancel"}},Yi=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:xi}),fr=Yi.afterOpened().pipe((0,nt.ZZ)(Gr=>{if(!me||this.tvMode)return ho.t;{const ao=document.getElementsByClassName("add-playtime-link");if(ao&&ao[0])return(0,re.R)(ao,"click")}}),(0,g.s)(1),(0,on.M)(()=>{this.ecomService.openAddPlaytimePageAndDialog(Pt.MCB.ScreenLowStateGameLaunchDialog,C)}));return(0,rr.O4)(Yi.primaryButtonClick.pipe((0,mt.u)(!0)),Yi.secondaryButtonClick.pipe((0,mt.u)(!1)),this.tvMode?Yi.linkClick.pipe((0,mt.u)(!1)):fr.pipe((0,mt.u)(!1)),Yi.afterClosed().pipe((0,mt.u)(!1))).pipe((0,g.s)(1),(0,on.M)(()=>Yi.close()),(0,nt.ZZ)(Gr=>(this.telemetryUtilService.sendPopUpDialogClosedEvent(Pt.duU.Low_State_Game_Launch,Gr?Pt.HBm.Continue_Play_Anyway:Pt.HBm.Dialog_Closed,0,0,Pt.T80.FALSE,Yi.checkboxState?Pt.T80.TRUE:Pt.T80.FALSE),Gr?this.browseUxService.setUserPreference(jl.mG.skipTimeCapLowPlayTimeRemainingDialog,{value:Yi.checkboxState,expirationDateTime:bt.subscription.currentSpanEndDateTime}).pipe((0,mt.u)(Gr)):(0,it.of)(Gr))))})):(0,it.of)(!0)}))}showTimeAlertDialog(C,w){return this.ecomService.getUserMembership().pipe((0,g.s)(1),(0,nt.ZZ)(Q=>this.ecomService.isDayPassSubscription?this.openLowPlayTimeRemainingDialog(C,w):this.ecomService.isLimitedState?this.openTimeCapLimitedPlaytimeDialog(w,this.ecomService.isLimitedPlayableState):this.openTimeCapLowPlaytimeDialog(w)))}openMembershipPageWithDayPassCallback(C,w){this.ecomService.openMembershipPageAndDialog(()=>{this.ecomService.openDayPassCheckoutPage(Pt.MCB.ScreenLowPlaytimeDayPassDialog,w)},Pt.MCB.ScreenLowPlaytimeDayPassDialog,w,Jr.AddDayPassMembershipProgress)}openLowPlayTimeRemainingDialog(C,w){return(0,Vt.zV)([this.browseUxService.getUserPreference(jl.mG.skipDayPassLowPlayTimeRemainingDialog,this.idmService.accountStatusChanged),this.ecomService.getUserMembership()]).pipe((0,g.s)(1),(0,nt.ZZ)(([Q,me])=>this.canShowTimeAlertDialog(Q,me.subscription.expirationDateTime,jl.mG.skipDayPassLowPlayTimeRemainingDialog)?this.redirectService.getRedirectUrl(At.r7.GfnAccountManagement).pipe((0,g.s)(1),(0,nt.ZZ)(Ye=>{const bt=this.ecomService.canHardUpsell(),cn={text:bt?Aa_body_text:this.tvMode?Aa_body_bodyEcomRestrictedTV:Aa_body_bodyEcomRestricted,placeholders:{skuShortName:me.product?.shortDescription,remainingTime:Cl(me.subscription?.expirationDateTime).fromNow(!0),manageAccount:bt||this.tvMode?void 0:`class="font-body2-link manage-account-link" href="${Ye}"`,addDaysLink:!this.tvMode&&bt?'class="font-body2-link add-more-days-link"':void 0,linkClickedCallback:this.openMembershipPageWithDayPassCallback.bind(this,Pt.MCB.ScreenLowPlaytimeDayPassDialog,w)}},Wn={secondaryButton:{text:Aa_secondaryButton_text}};this.tvMode&&(Wn.secondaryButton.text=Aa_augmentedButton_text,Wn.threeQuarterSheetData={augmentedButtons:[{text:Aa_secondaryButton_text,id:Aa_secondaryButton_id}]}),bt||(Wn.secondaryButton.text=this.tvMode?Aa_augmentedButton_ecomRestricted:Aa_secondaryButton_text);const xi=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"layout.dayPassLowPlayTimeAlert.title"},bodyText:cn,checkbox:{text:this.tvMode?"common.playAnywayDontShowAgain":Aa_checkbox_text,initialState:Aa_checkbox_initialState,primaryActionInThreeQuarterSheet:!0},primaryButton:{...Aa_primaryButton},...Wn}}),Yi=xi.afterOpened().pipe((0,nt.ZZ)(Gr=>{if(bt&&!this.tvMode){const ao=document.getElementsByClassName("add-more-days-link");if(ao&&ao[0])return(0,re.R)(ao,"click")}else{if(bt||this.tvMode)return this.tvMode?xi.secondaryButtonClick:Oa.w;{const ao=document.getElementsByClassName("manage-account-link");if(ao&&ao[0])return(0,re.R)(ao,"click")}}}),(0,g.s)(1),(0,on.M)(()=>{bt?this.openMembershipPageWithDayPassCallback(Pt.MCB.ScreenLowPlaytimeDayPassDialog,w):this.ecomService.openAccountManagementPage(Pt.MCB.ScreenLowPlaytimeDayPassDialog,w)})),fr=this.tvMode?xi.augmentedButtonClick.pipe((0,ge.p)(Gr=>"cancel"===Gr)):xi.secondaryButtonClick;return(0,rr.O4)(xi.primaryButtonClick.pipe((0,mt.u)(!0)),fr.pipe((0,mt.u)(!1)),Yi.pipe((0,mt.u)(!1)),xi.afterClosed().pipe((0,mt.u)(!1))).pipe((0,on.M)(()=>xi.close()),(0,nt.ZZ)(Gr=>Gr?this.browseUxService.setUserPreference(jl.mG.skipDayPassLowPlayTimeRemainingDialog,{value:xi.checkboxState,expirationDateTime:me.subscription.expirationDateTime}).pipe((0,mt.u)(Gr)):(0,it.of)(Gr)))})):(0,it.of)(!0)))}canShowTimeAlertDialog(C,w,Q){return!C||(!C?.value||C?.expirationDateTime!==w)&&(this.removeTimeAlertDialogPreference(Q),!0)}removeTimeAlertDialogPreference(C){return this.browseUxService.setUserPreference(C,null).pipe((0,g.s)(1)).subscribe()}openAccountLinkingExpirationDialog(C,w=!1,Q=!1,me=!1,Ye=!1){const bt=C.expirationStatus;let cn;bt===ml.Expired?cn="accountConnection.accountLinking.warningExpiredDialog":bt===ml.ExpiresNow&&(cn="accountConnection.accountLinking.warningSoonDialog");let xi=me?"accountConnection.reconnect":"accountConnection.goToConnection";Q&&(xi="accountConnection.goToConnection");const Yi=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"accountConnection.reconnectAccount"},translateValues:{arg:C.storeName},bodyText:{text:cn},primaryButton:{text:xi,accentColor:!0},secondaryButton:{text:w?"common.cancel":"common.notNow"}}},{preferredDialogType:T.QO.ThreeQuarterSheet,disableFocusRestore:Ye});return(0,rr.O4)(Yi.primaryButtonClick.pipe((0,mt.u)(me?Ss.Reconnect:Ss.GoToConnection)),Yi.secondaryButtonClick.pipe((0,mt.u)(w?Ss.Cancel:Ss.NotNow)),Yi.afterClosed().pipe((0,mt.u)(null))).pipe((0,g.s)(1),(0,nt.ZZ)(fr=>null===fr?(0,it.of)(null):(Yi.close(),fr===Ss.Reconnect&&this.appConfig.featureEnablement.loginPopupBlockerWorkaround?(0,it.of)(fr):Yi.afterClosed().pipe((0,mt.u)(fr)))))}openAccountLinkingConnectingDialog(C,w,Q=!1){const me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:w?"accountConnection.accountLinking.reconnectingAccount":"accountConnection.accountLinking.connectionProgressTitle"},bodyText:{text:w?"accountConnection.accountLinking.reconnectInProgress":"accountConnection.accountLinking.connectionProgress"},primaryButton:{text:"common.cancel"}}},{preferredDialogType:T.QO.ThreeQuarterSheet,disableFocusRestore:Q});return(0,rr.O4)(C,me.primaryButtonClick.pipe((0,mt.u)("")),me.afterClosed().pipe((0,mt.u)(null))).pipe((0,Un.W)(()=>(0,it.of)("")),(0,nt.ZZ)(Ye=>null===Ye?(0,it.of)(Ye):(me.close(),me.afterClosed().pipe((0,mt.u)(Ye)))))}openOffDeviceAccountLinkingDialog(C,w,Q=!1){let me;const Ye=w.pipe((0,nt.ZZ)(bt=>{const cn=this.appConfig.featureEnablement.preferBottomSheetForLogin,Wn=cn?{link:{url:bt.verificationUriComplete,text:""}}:{image:{url:bt.verificationUriComplete}},xi={preferredDialogType:cn?T.QO.BottomSheet:T.QO.ThreeQuarterSheet,disableFocusRestore:Q};return me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:(0,al.ZE)(bt.verificationUri)},bodyText:{text:"loginBridgeState.deviceAuthLogin",placeholders:{authCode:`<div class="font-header3 white">${(0,al.zC)(bt.userCode)}</div>`}},footerText:{text:"layout.gameOwnershipPrompt.offDeviceHint"},...Wn,primaryButton:{text:"common.cancel"}}},{...xi}),(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(!1)),me.afterClosed().pipe((0,mt.u)(null)))}));return(0,rr.O4)(C,Ye).pipe((0,Un.W)(()=>(0,it.of)(!1)),(0,nt.ZZ)(bt=>null===bt?(0,it.of)(!1):(me.close(),me.afterClosed().pipe((0,mt.u)(bt)))))}openAccountLinkingErrorDialog(C,w=!0){const Q=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"accountConnection.accountLinking.connectionFailedTitle"},bodyText:{text:"accountConnection.accountLinking.connectionFailed",placeholders:{arg:C}},primaryButton:{text:"common.close"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet,disableFocusRestore:w});return(0,rr.O4)(Q.primaryButtonClick.pipe((0,mt.u)(!1)),Q.afterClosed().pipe((0,mt.u)(null))).pipe((0,g.s)(1),(0,nt.ZZ)(me=>null===me?(0,it.of)(me):(Q.close(),Q.afterClosed().pipe((0,mt.u)(me)))))}openPlaytestLiveErrorDialog(){return this.dialog.open(op,{panelClass:"nv-hig",width:"560px",disableClose:!0,backdropClass:"dialog-backdrop"}).afterClosed()}openPlaytestLivePermissionHigDialog(C){const w=this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(Mg,{panelClass:"nv-hig",width:"560px",disableClose:!0,backdropClass:["dialog-backdrop","nv-overlay-panel"]}));return(0,rr.O4)(w.componentInstance.primaryButtonClick.pipe((0,mt.u)(!0)),w.componentInstance.secondaryButtonClick.pipe((0,mt.u)(!1))).pipe((0,on.M)(()=>w.close()),(0,wt.T)(Q=>Q||!1))}openPlaytestLiveFeedbackHigDialog(C){return this.dialog.open(ih,{panelClass:"nv-hig",width:"560px",disableClose:!0,backdropClass:"dialog-backdrop"}).afterClosed()}openPlaytestLiveWebcamPreview(C){return this.dialog.open(nh,{panelClass:"nv-hig",width:"560px",height:"540px",disableClose:!0,backdropClass:"dialog-backdrop"}).afterClosed()}openPlaytestLiveMicrophonePreview(C){return this.dialog.open(Zm,{panelClass:"nv-hig",width:"560px",height:"540px",disableClose:!0,backdropClass:"dialog-backdrop"}).afterClosed()}openPwaWallHelpDialog(){this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(Zu,{autoFocus:!0,hasBackdrop:!0,panelClass:["dialogPaddingRemove","nv-overlay-panel"]}))}showPlatformOverridePermissionDialog(C,w,Q){const me=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"multiplatform.switchDialog.title"},bodyText:{text:"multiplatform.switchDialog.description",placeholders:{currentStore:w,newStore:Q}},primaryButton:{text:"common.continue"},secondaryButton:{text:"common.cancel"}}});return(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(!0)),me.secondaryButtonClick.pipe((0,mt.u)(!1)),me.afterClosed().pipe((0,mt.u)(null))).pipe((0,g.s)(1),(0,on.M)(Ye=>{me.close(),null!==Ye&&this.telemetryUtilService.sendClickEvent(Pt.EBD.PlatformChangeConsent,Q,`${C}/ContinueClicked=${Ye}`)}))}showExitAppDialog(){const C=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"layout.exitAppPrompt.headerText"},primaryButton:{text:"layout.exitAppPrompt.primaryButton"},secondaryButton:{text:"common.cancelTitleCase"}}});return(0,rr.O4)(C.primaryButtonClick.pipe((0,mt.u)(!0)),C.secondaryButtonClick.pipe((0,mt.u)(!1)),C.afterClosed().pipe((0,mt.u)(!1))).pipe((0,g.s)(1),(0,on.M)(()=>C.close()))}showLoginFailedDialog(C){let w;return this.redirectService.getRedirectUrl(At.r7.GfnServerStatus).pipe((0,wt.T)(Q=>[Q,At.lp[At.r7.GfnServerStatus]]),(0,nt.ZZ)(([Q,me])=>(w=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{link:this.tvMode?{text:"loginWall.gfnServiceStatus",shortUrl:me,url:Q}:void 0,headerText:{text:"loginWall.loginFailed"},bodyText:{text:"loginWall.genericErrorWithStatusURL",placeholders:{serverStatusURL:this.tvMode?void 0:`class="font-body2-link" href="${Q}"`}},primaryButton:C?{text:"common.retry",accentColor:!0}:null,secondaryButton:{text:"common.close"}}},{preferredDialogType:T.QO.ThreeQuarterSheet}),(0,rr.O4)(w.primaryButtonClick.pipe((0,mt.u)(!0)),w.secondaryButtonClick.pipe((0,mt.u)(!1)),w.afterClosed().pipe((0,mt.u)(!1))))),(0,g.s)(1),(0,on.M)(()=>w.close()))}showProviderSwitchDialog(C,w){const Q=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"common.productName"},bodyText:{text:"loginWall.providerSwitchDialogBody",placeholders:{versionString:C,providerString:w}},primaryButton:{text:"settings.provider.switchProvider"},secondaryButton:{text:"common.close"}}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(Q.primaryButtonClick.pipe((0,mt.u)(!0)),Q.secondaryButtonClick.pipe((0,mt.u)(!1)),Q.afterClosed().pipe((0,mt.u)(!1))).pipe((0,on.M)(me=>{Q.close()}))}getPlatformSelectionPatchingStatusText(C){return C===as.jv.PATCHING?{text:"fencedStatus.patchingStatus"}:C===as.jv.SERVER_MAINTENANCE?{text:"fencedStatus.offlineStatus"}:void 0}getPlatformSelectionButtonLabel(C){return"Play"===C?"common.continue":"GetGame"===C?"multiplatform.dialog.getGameButton":"common.select"}getStoreLabel(C){return""===C.appStoreInfo.label?C.publisherName:C.appStoreInfo.label}getFencedStatus(C){return C?.gfn?.status??as.jv.UNAVAILABLE}shouldDisablePlatformSelectionButton(C,w,Q){return"Play"===Q&&(C!==as.jv.AVAILABLE||!w)}shouldDisplayPlatformSelectionButton(C,w){return"GetGame"!==C||!!w?.storeUrl}getSelectorCardSecondaryInfo(C,w){let me;switch((0,ft.A$)(C)){case ft.E8.OwnedManual:case ft.E8.OwnedPlatformSync:me="layout.owned";break;default:me=null}return{matIcon:w.selectedPlatformVariant?.id===C?.id?"check":null,text:me}}buildPlatformSelectionCardData(C){return C.variants.map(w=>{const Q=this.getFencedStatus(w),me={selectorCardIcon:{url:w.appStoreInfo.smallImageUrl,caption:this.getStoreLabel(w)},selectorCardButtons:C.buttons.filter(Ye=>this.shouldDisplayPlatformSelectionButton(Ye,w)).map(Ye=>({text:this.getPlatformSelectionButtonLabel(Ye),isDisabled:this.shouldDisablePlatformSelectionButton(Q,C.isInputSupported,Ye),id:{storeId:w.id,buttonId:Ye}})),secondaryInfo:this.getSelectorCardSecondaryInfo(w,C)};return C?.showPatchingText&&(me.selectorCardStatusText=this.getPlatformSelectionPatchingStatusText(Q)),me})}storeSelectionDialog(C,w){const Q={header:{text:C.gameName},backgroundImageUrl:C.heroImageURL,title:{text:"layout.evidenceMetadata.selectPlatfrom"},content:this.buildPlatformSelectionCardData(C)},me=this.fullPageDialog.open(Q,w),Ye=me.componentInstance.buttonClick.pipe((0,ge.p)(Wn=>"Play"===Wn.id.buttonId),(0,g.s)(1)),bt=me.componentInstance.buttonClick.pipe((0,ge.p)(Wn=>"Play"!==Wn.id.buttonId&&"GetGame"!==Wn.id.buttonId),(0,g.s)(1)),cn=me.componentInstance.buttonClick.pipe((0,ge.p)(Wn=>"GetGame"===Wn.id.buttonId),(0,_i.n)(Wn=>this.openPurchaseDialog({gameName:C.gameName,isInputSupported:C.isInputSupported,selectedPlatformVariant:C.variants.find(xi=>xi.id===Wn.id.storeId),heroImageURL:C.heroImageURL}).pipe((0,ge.p)(xi=>!!xi),(0,wt.T)(()=>Wn))));return(0,rr.O4)(Ye,bt,cn,me.afterClosed().pipe((0,mt.u)(!1),(0,g.s)(1))).pipe((0,wt.T)(Wn=>{if(me.close(),Wn)return C.variants.find(xi=>xi.id===Wn.id.storeId)}))}openStoreSelectorFullPageDialog(C,w){const Q=["Play"];return C.showGetGame&&Q.push("GetGame"),this.storeSelectionDialog({...C,buttons:Q,showPatchingText:!0},w)}openAddToLibraryFullPageDialog(C,w){return this.storeSelectionDialog({...C,buttons:["AddToLibrary"]},w)}openGetGameFullPageDialog(C,w){if(C.selectedPlatformVariant){const Q=C.selectedPlatformVariant;return this.openPurchaseDialog({gameName:C.gameName,isInputSupported:C.isInputSupported,selectedPlatformVariant:Q,heroImageURL:C.heroImageURL},w).pipe((0,wt.T)(me=>me&&Q||null))}return this.storeSelectionDialog({...C,buttons:["GetGame"]},w)}openChangeGameStoreFullPageDialog(C,w){return this.storeSelectionDialog({...C,buttons:["ChangeGameStore"],showCurrentSelection:!0},w)}openAccountProfileDialog(){return this.redirectService.getRedirectUrl(At.r7.GfnAccountManagementSSO).pipe((0,g.s)(1),(0,wt.T)(w=>({headerText:{text:At.lp[At.r7.GfnAccountManagementSSO]},image:{url:w},bodyText:{text:"offDeviceLink.title"},primaryButton:{text:"offDeviceLink.button"},secondaryButton:{text:"toolbar.logout"}}))).pipe((0,nt.ZZ)(w=>{const Q=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:w},{preferredDialogType:T.QO.ThreeQuarterSheet}),me=Q.secondaryButtonClick.pipe((0,nt.ZZ)(()=>this.openLogoutConfirmationDialog()),(0,nt.ZZ)(Ye=>Ye?(0,it.of)(Og.Logout):ho.t),(0,h.Q)(Q.afterClosed()));return(0,rr.O4)(Q.primaryButtonClick.pipe((0,mt.u)(Og.Back)),Q.afterClosed().pipe((0,mt.u)(Og.Back)),me).pipe((0,g.s)(1),(0,on.M)(()=>Q.close()))}))}openLogoutConfirmationDialog(){const w=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"accountProfile.logoutConfirmationDialogTitle"},bodyText:{text:"accountProfile.logoutConfirmationDialogText"},primaryButton:{text:"offDeviceLink.button"},secondaryButton:{text:"accountProfile.logoutConfirmationDialogButtonText"}}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(w.primaryButtonClick.pipe((0,mt.u)(!1)),w.afterClosed().pipe((0,mt.u)(!1)),w.secondaryButtonClick.pipe((0,mt.u)(!0))).pipe((0,on.M)(()=>w.close()))}showInLineLinkDialog(C,w=!1){const Q=C.gameInfo.storeUrl,me=C.isAccountLinkingSsoRequired;let Ye={text:Q?Oc_body_text:Oc_body_textWithoutURL,placeholders:{storeUrl:!this.tvMode&&Q?`class="font-body2-link" href="${Q}"`:void 0}};C.showOnboardingReconnect&&(Ye={text:"accountConnection.newFeature",placeholders:void 0});const bt=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"accountConnection.connectAccount"},translateValues:{arg:C.gameInfo.appStoreLabel},bodyText:Ye,primaryButton:{...Oc_primaryButton},secondaryButton:me?{text:"common.cancel"}:{text:"common.notNow"},checkbox:me?void 0:{text:this.tvMode?"layout.inLineAccountLinkingPrompt.dontShowAgainButton":Oc_checkbox_text,initialState:Oc_checkbox_initialState,primaryActionInThreeQuarterSheet:!1},link:C.gameInfo.storeUrlClickedCallback&&this.tvMode?{text:Oc_tvLink_text,linkClickedCallback:C.gameInfo.storeUrlClickedCallback}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData,descriptionList:C.descriptionIconList}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(bt.primaryButtonClick.pipe((0,mt.u)(Ss.Connect)),bt.secondaryButtonClick.pipe((0,mt.u)(me?Ss.Cancel:w?Ss.NotNow:Ss.ManuallyMarkAsOwned)),bt.afterClosed().pipe((0,mt.u)(null))).pipe((0,nt.ZZ)(cn=>{if(null===cn)return(0,it.of)({dialogAction:cn,checkBoxState:!1});const Wn=bt.checkboxState;return bt.close(),cn===Ss.Connect&&this.appConfig.featureEnablement.loginPopupBlockerWorkaround?(0,it.of)({dialogAction:cn,checkBoxState:Wn}):bt.afterClosed().pipe((0,mt.u)({dialogAction:cn,checkBoxState:Wn}))}))}openInlineSyncInProgressDialog(C,w,Q){const me=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{disableBackToClose:!0,showSpinner:!0,headerText:{text:"layout.inLineSyncInProgress.header"},bodyText:{text:cm_body_text,placeholders:{storeName:Q}},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return C.pipe((0,nt.ZZ)(Ye=>Ye?w.pipe((0,nt.ZZ)(bt=>(me.close(),me.afterClosed().pipe((0,mt.u)(bt))))):(me.close(),me.afterClosed().pipe((0,mt.u)(!1)))))}profileNotCreatedDialog(C,w){const Q=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineSyncFailure.errorHeader"},translateValues:{storeName:C},bodyText:{text:rh_body_text,placeholders:{storeName:C,redirectUrl:this.tvMode?void 0:`class="font-body2-link" href="${w}"`}},primaryButton:{...rh_primaryButton},secondaryButton:{text:"common.notNow"},link:w?{text:this.tvMode?"layout.inLineSyncFailure.profileNotCreated.tvLink":void 0,placeholders:{storeName:C},url:this.tvMode?w:void 0}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(Q.primaryButtonClick.pipe((0,mt.u)(Ss.Resync)),Q.secondaryButtonClick.pipe((0,mt.u)(Ss.ManuallyMarkAsOwned)),Q.afterClosed().pipe((0,mt.u)(null))).pipe((0,nt.ZZ)(me=>null===me?(0,it.of)(me):(Q.close(),Q.afterClosed().pipe((0,mt.u)(me)))))}profileNotPublicIssueDialog(C,w,Q){const me=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineSyncFailure.errorHeader"},translateValues:{storeName:C},bodyText:{text:Eu_body_text,placeholders:{userName:Q,storeName:C,redirectUrl:this.tvMode?void 0:`class="font-body2-link" href="${w}"`}},primaryButton:{...Eu_primaryButton},secondaryButton:{text:"common.notNow"},link:w?{text:this.tvMode?"layout.inLineSyncFailure.notPublicIssue.tvLink":void 0,url:this.tvMode?w:void 0}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(Ss.Resync)),me.secondaryButtonClick.pipe((0,mt.u)(Ss.ManuallyMarkAsOwned)),me.afterClosed().pipe((0,mt.u)(null))).pipe((0,nt.ZZ)(Ye=>null===Ye?(0,it.of)(Ye):(me.close(),me.afterClosed().pipe((0,mt.u)(Ye)))))}permissionFailureDialog(C){const w=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"accountConnection.reconnectAccount"},translateValues:{arg:C},bodyText:{text:xu_body_text},primaryButton:{...xu_primaryButton},secondaryButton:{text:"common.close"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(w.primaryButtonClick.pipe((0,mt.u)(Ss.GoToConnection)),w.secondaryButtonClick.pipe((0,mt.u)(Ss.Cancel)),w.afterClosed().pipe((0,mt.u)(null))).pipe((0,nt.ZZ)(Q=>null===Q?(0,it.of)(Q):(w.close(),w.afterClosed().pipe((0,mt.u)(Q)))))}syncFailureDialog(C){const w=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineSyncFailure.failedSync.header"},bodyText:{text:Dh_body_text,placeholders:{appStore:C}},primaryButton:{...Dh_primaryButton},secondaryButton:{text:"common.close"},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(w.primaryButtonClick.pipe((0,mt.u)(Ss.Resync)),w.secondaryButtonClick.pipe((0,mt.u)(Ss.Cancel)),w.afterClosed().pipe((0,mt.u)(null))).pipe((0,nt.ZZ)(Q=>null===Q?(0,it.of)(Q):(w.close(),w.afterClosed().pipe((0,mt.u)(Q)))))}showLibrarySyncedDialog(C,w,Q){const me=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineLibrarySynced.header"},translateValues:{storeApp:C},bodyText:{text:Rh_body_text,placeholders:{noOfGames:w,userName:Q}},primaryButton:{...Rh_primaryButton},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(Ss.Done)),me.afterClosed().pipe((0,mt.u)(Ss.Done))).pipe((0,on.M)(()=>me.close()))}noGameSyncedDialog(C,w,Q){const me=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineNoGameSynced.header"},bodyText:{text:wu_body_text,placeholders:{storeName:C,userName:Q,storeUrl:w.storeUrl&&!this.tvMode?`class="font-body2-link" href="${w.storeUrl}"`:void 0}},primaryButton:{...wu_primaryButton},secondaryButton:{text:"common.notNow"},link:w.storeUrlClickedCallback&&this.tvMode?{text:wu_tvLink_text,linkClickedCallback:w.storeUrlClickedCallback}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(Ss.Resync)),me.secondaryButtonClick.pipe((0,mt.u)(Ss.ManuallyMarkAsOwned)),me.afterClosed().pipe((0,mt.u)(null))).pipe((0,nt.ZZ)(Ye=>null===Ye?(0,it.of)(Ye):(me.close(),me.afterClosed().pipe((0,mt.u)(Ye)))))}markGameAsManuallyOwned(C){const w=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.manuallyOwnPrompt.header"},bodyText:{text:C.appStoreLabel?C.storeUrl?uu_body_text:uu_body_textWithoutURL:C.storeUrl?uu_genericBody_text:uu_genericBody_textWithoutURL,placeholders:{appStore:C.appStoreLabel,storeUrl:C.storeUrl&&!this.tvMode?`class="font-body2-link" href="${C.storeUrl}"`:void 0}},primaryButton:{...uu_primaryButton},secondaryButton:{text:"common.cancel"},link:C.storeUrlClickedCallback&&this.tvMode?{text:uu_tvLink_text,linkClickedCallback:C.storeUrlClickedCallback}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(w.primaryButtonClick.pipe((0,mt.u)(Ss.MarkAsOwned)),w.secondaryButtonClick.pipe((0,mt.u)(Ss.Cancel)),w.afterClosed().pipe((0,mt.u)(null))).pipe((0,on.M)(()=>w.close()))}openInLineConnectSuccessDialog(C,w,Q){const me=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.inLineAccountConnected.header"},translateValues:{storeName:C},bodyText:{text:Q?Ah_reconnectBody_text:Ah_connectBody_text,placeholders:{userName:w}},primaryButton:{...Ah_primaryButton},threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(me.primaryButtonClick.pipe((0,mt.u)(!0)),me.afterClosed().pipe((0,mt.u)(!1))).pipe((0,nt.ZZ)(Ye=>null===Ye?(0,it.of)(Ye):(me.close(),me.afterClosed().pipe((0,mt.u)(Ye)))))}openResyncGameStore(C,w){const Q=this.genericDialog.open({disableClose:!0,panelClass:"dialogPaddingRemove",data:{headerText:{text:"layout.resyncGameStore.header"},translateValues:{appStore:C.appStoreLabel},bodyText:{text:Eg_body_text,placeholders:{userName:w,storeUrl:C.storeUrl&&!this.tvMode?`class="font-body2-link" href="${C.storeUrl}"`:void 0}},primaryButton:{...Eg_primaryButton},secondaryButton:{text:"common.notNow"},link:C.storeUrlClickedCallback&&this.tvMode?{text:Eg_tvLink_text,linkClickedCallback:C.storeUrlClickedCallback}:void 0,threeQuarterSheetData:this.threeQuarterSheetBackgroundData}},{preferredDialogType:T.QO.ThreeQuarterSheet});return(0,rr.O4)(Q.primaryButtonClick.pipe((0,mt.u)(Ss.Resync)),Q.secondaryButtonClick.pipe((0,mt.u)(Ss.ManuallyMarkAsOwned)),Q.afterClosed().pipe((0,mt.u)(null))).pipe((0,nt.ZZ)(me=>null===me?(0,it.of)(me):(Q.close(),Q.afterClosed().pipe((0,mt.u)(me)))))}openPurchaseDialog(C,w){if(!C.selectedPlatformVariant.storeUrl)return(0,it.of)(void 0);const Q=this.getPlatformSelectionPatchingStatusText(this.getFencedStatus(C.selectedPlatformVariant)),me=this.fullPageDialog.open({header:{text:C.gameName,translated:!0},title:{text:"pathToPurchase.title"},subtitle:{text:"pathToPurchase.subtitle"},backgroundImageUrl:C.heroImageURL,content:{choiceChipTitle:{text:this.getStoreLabel(C.selectedPlatformVariant),translated:!0},choiceChipIcon:{text:C.selectedPlatformVariant.appStoreInfo?.smallImageUrl??""},choiceChipContent:[{stepTitle:{text:"pathToPurchase.step1"},stepDescription:{text:"pathToPurchase.scanQrCode"},stepImage:{text:"",url:C.selectedPlatformVariant.storeUrl}},{stepTitle:{text:"pathToPurchase.step2"},stepDescription:{text:"pathToPurchase.getDigitalVersion"},stepImage:{matIcon:"phone_illustration",text:""}},{stepTitle:{text:"pathToPurchase.step3"},stepDescription:{text:"pathToPurchase.backAndPlay"},stepImage:{matIcon:"tv_illustration",text:""}}],choiceChipButtons:[{text:"common.close",isDisabled:!!Q,spinnerOverlay:!1,id:"close"}],choiceChipStatusText:{title:Q}}},w);return(0,rr.O4)(me.componentInstance.buttonClick,me.afterClosed().pipe((0,mt.u)(void 0))).pipe((0,wt.T)(Ye=>!!Ye&&(me.close(),!0)))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Mi.Vk),c.KVO(n.bZ),c.KVO(Pg),c.KVO(Ze.c$),c.KVO(Pt.jgD),c.KVO(Po.yQ),c.KVO(Ai.k_),c.KVO(At.Q5),c.KVO(T.uh),c.KVO(Ao),c.KVO(au.Lk),c.KVO(l.NZ),c.KVO(T.c_),c.KVO(T.Vm))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();let Cp=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls,ws,xl,Au,Fh,Dg){this.idmService=w,this.networkStatusService=Q,this.nesUserInfoService=me,this.telemetryUtilService=Ye,this.dialog=bt,this.configuration=cn,this.telemetryService=Wn,this.ecommerceService=xi,this.gfnSdkService=Yi,this.router=fr,this.unsupportedBrowserService=Gr,this.dialogService=ao,this.genericDialog=Eo,this.pathService=ls,this.idmTelemetryService=ws,this.focusManager=xl,this.uasService=Au,this.starfleetConfig=Fh,this.systemInfoService=Dg,this.cancelTimeoutExpired=!1,this.cancelTimer=null,this.loginListener=null,this.joinNowSubscription=null,this.logger=C.getLogger("gfn/shared/idm/idmLoginService"),this.tvMode=!!cn?.featureEnablement?.tvMode,this.useDeviceAuthLogin=!!this.starfleetConfig?.useDeviceAuthLogin,this.hideSystemName=!!cn?.starfleet?.hideSystemName}initialize(){this.configuration.starfleet.sameTabLogin&&(this.idmTelemetryService.checkAndSendLoginStartEvent(),this.idmService.getAuthStatus().pipe((0,g.s)(1),(0,nt.ZZ)(C=>(this.logger.info("Received authStatus ",C),C.authReturnState===Kt.l4.LoginCompleted||C.authReturnState===Kt.l4.LoginFailed?null===C.error?this.idmTelemetryService.sendLoginSuccessUserSessionEvent():(this.displayLoginErrorMessages(C.error),this.idmTelemetryService.sendLoginFailureUserSessionEvent()):C.authReturnState===Kt.l4.LogoutCompleted&&null!==C.error&&this.displayLogoutErrorMessages(C),(0,it.of)(!0)))).subscribe()),this.checkAutoEntitleState()}checkAutoEntitleState(){this.configuration.featureEnablement.UASAutoEntitle&&this.configuration.uasConfig.sameTab&&this.configuration.uasConfig.redirectUrlIsRelative&&this.uasService.AutoEntitleState.pipe((0,ge.p)(C=>C===_d.g.Failed||C===_d.g.LoggedOut),(0,g.s)(1)).subscribe(C=>this.displayLoginErrorMessages(C),C=>this.logger.error("error in getting Auto Entitle state"))}login(C,w=!1){return(0,Vt.zV)([this.unsupportedBrowserService.unsupportedBrowserState$,this.unsupportedBrowserService.shouldDisplayPWAGuidance$]).pipe((0,g.s)(1),(0,nt.ZZ)(([me,Ye])=>l.zk.isNativeLikePlatform()||me.unsupportedState===au.B_.None?(0,it.of)(!0):me.unsupportedState===au.B_.PWARequired&&Ye?(this.pathService.navigate([Ii.V6.PwaWall],{skipLocationChange:!1}),(0,it.of)(!1)):this.dialogService.openUnsupportedSystemSoftBlockerDialog(me).pipe((0,wt.T)(bt=>(bt===Yr.nw.Cancel&&this.logger.info("User cancelled the login"),bt===Yr.nw.Continue))))).pipe((0,g.s)(1),(0,nt.ZZ)(me=>me?this.nesUserInfoService.providerInfo$.pipe((0,nt.ZZ)(Ye=>{let bt=null;return 1===Ye?.loginPreferredProviders?.length&&C!==Pt.MCB.ScreenSwitchProvider&&Ye.gfnServiceEndpoints.forEach(cn=>{cn.loginProvider===Ye.loginPreferredProviders[0]&&(bt=cn.idpId)}),this.handleStarfleetLogin(C,w,bt)}),(0,Un.W)(Ye=>(this.logger.error("Failed to get idpId",Ye),this.handleStarfleetLogin(C,w,null)))):(0,it.of)(!1)))}setUpDialog(C){const w={panelClass:["login-bridge-state-dialog","dialogPaddingRemove","nv-overlay-panel"],disableClose:!0};return w.data={idpId:C},this.tvMode&&(w.maxWidth="100vw"),this.clearCancelTimer(),this.cancelTimer=setTimeout(()=>{this.idmService.cancelLogin(!0).subscribe(),this.cancelTimeoutExpired=!0,this.listenForErrorSubscription&&this.listenForErrorSubscription.unsubscribe()},this.configuration.starfleet.httpServerDuration),this.cancelTimeoutExpired=!1,w}clearCancelTimer(){this.cancelTimer&&clearTimeout(this.cancelTimer),this.cancelTimer=null}handleStarfleetLogin(C,w=!1,Q){return(0,it.of)(null).pipe((0,nt.ZZ)(me=>(0,Vt.zV)([(0,it.of)(Q),this.gfnSdkService.getAuthType()])),(0,nt.ZZ)(([me,Ye])=>{if(Ye===Qr.hT.IDM||Ye===Qr.hT.INVALID){if(this.idmTelemetryService.sendLoginStartEvent(me,this.configuration.starfleet.sameTabLogin),this.configuration.starfleet.sameTabLogin){const bt=this.pathService.getCurrentUrl();return this.idmService.login(!1,me,void 0,void 0,bt).pipe((0,Un.W)(cn=>(this.logger.error("failed to login the user with error",cn),(0,it.of)(cn))))}{const bt=this.setUpDialog(me);return this.dialog.open(_g,bt).afterClosed().pipe((0,nt.ZZ)(cn=>{switch(this.clearCancelTimer(),cn){case Kt.ie.Success:return(0,it.of)(!0);case Kt.ie.Failure:case Kt.ie.CloseOnFailure:return(0,it.of)(!1);case Kt.ie.Cancel:return this.cancelTimeoutExpired||this.handleBridgeStateCancel(),(0,Ii.tE)(this.router.url)?this.handleStarfleetLogin(C,w,me):(0,it.of)(!1)}}))}}return Ye===Qr.hT.IDM_FALLBACK?(this.loginListener=new np.h,this.bringUpJoinNowDialog(me),this.loginListener):(this.logger.error("Attempted to open the login screen during a valid GaaS session"),(0,it.of)(!1))}))}resolveEcomUseCase(){return this.ecomUseCase?(0,it.of)({}):this.gfnSdkService.getAuthInfo().pipe((0,on.M)(C=>{C.timeRemaining&&0===Number(C.timeRemaining)?this.ecomUseCase=kr.GaaSFreeSampleAlreadyUsed:C.authToken?C.timeRemaining&&3601===Number(C.timeRemaining)?this.ecomUseCase=kr.GaaSFree1HourExceeded:C.timeRemaining&&3602===Number(C.timeRemaining)&&(this.ecomUseCase=kr.GaaSFreeUserCanUpgrade):this.ecomUseCase=kr.GaaSUnsupportedFreeTitle,this.idmService.loginProvider&&(this.idmService.loginProvider=null)}))}bringUpJoinNowDialog(C){const[w,Q]=function gf(j,Ke,we){return[(0,ge.p)(Ke,we)(new m.c((0,su.i)(j))),(0,ge.p)(zu(Ke,we))(new m.c((0,su.i)(j)))]}(this.resolveEcomUseCase().pipe((0,nt.ZZ)(()=>this.ecommerceService.openJoinNowDialog(C,this.ecomUseCase,Jr.InitialState).afterClosed()),(0,Bo.t)(1)),me=>!!me&&me[1]===Jr.ExitedToLogin);w.pipe((0,nt.ZZ)(()=>{this.joinNowSubscription&&this.joinNowSubscription.unsubscribe(),this.idmService.loginProvider&&(this.idmService.loginProvider=null);const me=this.setUpDialog(C);return this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(_g,me)).afterClosed()})).subscribe(me=>{switch(me){case Kt.ie.Success:this.loginListener.next(me);break;case Kt.ie.Failure:this.bringUpJoinNowDialog(C);break;case Kt.ie.Cancel:this.cancelTimeoutExpired||this.handleBridgeStateCancel(),this.gfnSdkService.isThisAGFNSDKSession()&&this.bringUpJoinNowDialog(C)}}),Q.subscribe(([me])=>{me?this.loginListener.next(me):this.bringUpJoinNowDialog(C)})}handleBridgeStateCancel(C=!1){this.listenForErrorSubscription=this.idmService.cancelLogin(C).pipe((0,wt.T)(w=>{if(w){const Q=new Pt.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen(),userAction:Pt.ay7.LoginWithStarfleet,status:Pt.fbu.CancelledLoginCompleted,errorDetails:status.toString(),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(Q)}})).subscribe(Mt.l,w=>{this.logger.info("Error detected while listening for UserCancelled Error",w)})}displayLoginErrorMessages(C){let w,Q;switch(this.logger.info("Auth error in login: ",C),C){case Kt.gH.ACCOUNT_LOCKED:w="starfleet.accountLockedErrorMessage",Q="starfleet.accountLockedHeader";break;case Kt.gH.AGE_RESTRICTED:w="starfleet.ageReStrictiveErrorMessage",Q="starfleet.ageReStrictiveHeader";break;case Kt.gH.ACCOUNT_INACTIVE:w="starfleet.accountInActiveErrorMessage",Q="starfleet.accountInActiveHeader";break;default:w="starfleet.genericErrorMessage",Q="common.loginUnsuccessful"}const me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:Q},bodyText:{text:w},primaryButton:{text:"starfleet.loginPrimaryButton"},secondaryButton:{text:"common.cancel"}}});(0,rr.O4)(me.secondaryButtonClick.pipe((0,g.s)(1)),me.primaryButtonClick.pipe((0,g.s)(1),(0,nt.ZZ)(Ye=>this.login(Pt.MCB.ScreenAccountMenu)))).subscribe(Ye=>{me.close()})}displayLogoutErrorMessages(C){let w,Q;this.logger.info("logout error: ",C.error),C.error===Kt.gH.LOGOUT_NOT_SUPPORTED?(Q={headerText:{text:"starfleet.logoutErrorheader"},bodyText:{text:"starfleet.logoutErrorMessageLogoutNotsupported"},primaryButton:{text:"common.continue"},secondaryButton:{text:"common.notNow"}},w=C.logoutNotSupportedRedirectUrl):Q={headerText:{text:"starfleet.logoutErrorheader"},bodyText:{text:"starfleet.logoutErrorMessageGeneric"},primaryButton:{text:"starfleet.logoutPrimaryButtonGeneric"}};const me=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:Q});(0,rr.O4)((0,Ln.T)(()=>C.error===Kt.gH.LOGOUT_NOT_SUPPORTED,(0,it.of)(1).pipe((0,nt.ZZ)(Ye=>me.secondaryButtonClick.pipe((0,g.s)(1)))),ho.t),me.primaryButtonClick.pipe((0,g.s)(1),(0,wt.T)(Ye=>{C.error===Kt.gH.LOGOUT_NOT_SUPPORTED&&(w?window.open(w,"_blank"):this.logger.error("redirectUrl is empty in LogOut Error scenario ",w,C.error))}))).subscribe(()=>me.close())}getDeviceName$(){return this.useDeviceAuthLogin?this.systemInfoService.getSystemInfo([l.Lu.OSName,l.Lu.DeviceType,l.Lu.SystemName]).pipe((0,g.s)(1),(0,wt.T)(C=>{const w=(0,al.zy)(C.OSName),Q=(0,al.u2)(C.DeviceType),me=this.hideSystemName?void 0:C.SystemName;if(!w||!Q)return void this.logger.info("OsName or DeviceType not found: ",w,Q);const Ye=`${w} ${Q}`;return this.logger.info("DeviceName created: ",Ye),me?`${Ye} ${me}`:Ye}),(0,Un.W)(C=>(this.logger.error("Error creating deviceName: ",C),(0,it.of)(void 0)))):(0,it.of)(void 0)}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Ai.k_),c.KVO(l.CF),c.KVO(qe.l),c.KVO(Pt.jgD),c.KVO(n.bZ),c.KVO(Mi.Vk),c.KVO(P.H0),c.KVO(Ao),c.KVO(Qr.DL),c.KVO(hn.Ix),c.KVO(au.Lk),c.KVO(_p),c.KVO(T.uh),c.KVO(Ii.R6),c.KVO(Ud.J),c.KVO(T.c_),c.KVO(Xu.l),c.KVO(Kt.X$),c.KVO(l.zW))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Tu=d(81671),Lf=d(41346),s=function(j){return j.RegistrationFailed="RegistrationFailed",j.RegistrationSuccess="RegistrationSuccess",j.NotSupported="NotSupported",j.Installed="Installed",j.ActivationOngoing="ActivationOngoing",j.Activated="Activated",j.ActivationError="ActivationError",j}(s||{});const M=new Map([[s.RegistrationFailed,Ys.fbu.ServiceWorkerRegistrationFailed],[s.RegistrationSuccess,Ys.fbu.ServiceWorkerRegistrationSuccess],[s.NotSupported,Ys.fbu.ServiceWorkerNotSupported],[s.Installed,Ys.fbu.ServiceWorkerInstalled],[s.ActivationOngoing,Ys.fbu.ServiceWorkerActivationOngoing],[s.Activated,Ys.fbu.ServiceWorkerActivated],[s.ActivationError,Ys.fbu.ServiceWorkerActivationError]]);let Yt=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn){this.serviceWorkerService=C,this.appConfig=w,this.experienceControlService=me,this.router=Ye,this.deeplinkHelperService=bt,this.telemetryUtilService=cn,this.telemetryService=Wn,this.appStartTs=Date.now(),this.refreshing=!1,this.updateServiceWorkerSilently=!1,this.swUpdateCheckInterval=144e5,this.appLaunchWindow=1e4,this.lastUpdateCheckTimestamp=Date.now(),this.timeCheckInterval=6e4,this.serviceWorkerInstalledOnce=new Be.m(1),this.swActivationTimedOut=new p.B7,this.shouldReloadOnActivation=!0,this.telemetryEventProcessingComplete=new p.B7,this.logger=Q.getLogger("shared/service-worker-update.service"),this.appLaunchWindow=this.appConfig.selfUpdate.appLaunchWindow||this.appLaunchWindow,this.swUpdateCheckInterval=Math.max(this.appConfig.selfUpdate.swUpdateCheckInterval||this.swUpdateCheckInterval,3e4)}initialize(){this.serviceWorkerService.serviceWorkerSupported()?(this.serviceWorkerService.swUpdateReadyCached.subscribe(C=>{this.logger.info("Initialize: SW update event was cached")}),this.serviceWorkerService.swActivated.subscribe(C=>{this.logger.info("Initialize: SW activated"),this.serviceWorkerInstalledOnce.next(!0)}),this.serviceWorkerService.swIsActive()&&(this.logger.info("Initialize: SW already active"),this.serviceWorkerInstalledOnce.next(!0)),this.handleServiceWorkerActivated(),this.handleServiceWorkerInstalled(),this.autoUpdateOnAppLaunch(),this.periodicallyCheckForUpdates(),this.handleServiceWorkerActivationRequest()):this.logger.info("Initialize: Service worker not supported"),this.sendServiceWorkerLaunchTelemetry()}get swActivationTimedOutNotification(){return this.swActivationTimedOut.asObservable()}updateReady(){return this.serviceWorkerService.swUpdateReadyCached.pipe((0,on.M)(C=>this.logger.info("swUpdateCache returned event => ",C)),(0,ge.p)(C=>null!==C&&!this.isSwUpdateWithinAppLaunchWindow(C.ts)&&!C.firstInstallation),(0,nt.ZZ)(C=>this.getWaitingSWClientVersion()),(0,ge.p)(C=>C&&C.data.clientVersionString!==this.appConfig.build.version),(0,on.M)(C=>this.logger.info("GFN SW Update Ready (outside app launch window)",C)))}checkForUpdates(){return this.withinAppLaunchWindow()?(this.logger.info("GFN SW Update skip update check in App launch window"),(0,it.of)({updateAvailable:!1,error:null})):this.checkForUpdatesInternal()}checkForUpdatesInternal(C){return this.lastUpdateCheckTimestamp=Date.now(),this.serviceWorkerInstalledOnce.pipe((0,g.s)(1),(0,nt.ZZ)(w=>this.checkForCanaryUpdate(C)),(0,nt.ZZ)(w=>(0,El.H)(this.serviceWorkerService.checkForUpdates()).pipe((0,g.s)(1))))}getCookie(C){const w=C.length+1;return document.cookie.split(";").map(Q=>Q.trim()).filter(Q=>Q.substring(0,w)===`${C}=`).map(Q=>decodeURIComponent(Q.substring(w)))[0]||"A"}sendCanaryTelemetry(C="",w="",Q=""){if("B"===C||"B"===Q){const me=new Pt.LCb({currentOriginCookieValue:C,gxtResponseValue:w,newOriginCookieValue:Q});this.telemetryService.push(me)}}checkForCanaryUpdate(C){if(C||(0,Ii.tE)(this.router.url)||(0,Ii.tE)(document.location.hash.substr(1)))return this.logger.info("in streamer path or skip checking Canary update",C),(0,it.of)(!0);this.logger.info("checking GXT Canary Targeting");const w=location.pathname.indexOf("index.html"),Q=-1===w?location.pathname:location.pathname.substr(0,w),me=this.getCookie("Request-Origin");let Ye="",bt="";return this.experienceControlService.getCloudVariable(this.appConfig.gxTarget.experiences.browserClientCanary,{domain:document.location.hostname,path:document.location.pathname},void 0,no.Ky.GxTargetGetCloudVariable,no.Id.GxTargetGetBrowserClientCanary).pipe((0,wt.T)(cn=>(this.logger.info("browser client canary GXT: ",cn.value.isCanaryEnabled),Ye=JSON.stringify(cn),cn.value.isCanaryEnabled?(document.cookie=`Request-Origin=B; path=${Q}; max-age=31536000; samesite=strict`,bt="B"):(document.cookie=`Request-Origin=A; path=${Q}; max-age=31536000; samesite=strict`,bt="A"),this.sendCanaryTelemetry(me,Ye,bt),!0)),(0,Un.W)(cn=>(null===cn.err&&"Empty cloud variable"===cn.errorMessage?(Ye=JSON.stringify(cn),this.logger.info("current path is not targeted, clearing cookie"),document.cookie=`Request-Origin=A; path=${Q}; expires=${new Date(0).toUTCString()}`,bt="A"):(this.logger.error("error in fetching Canary GXT, keeping data as it is",cn),bt=me),this.sendCanaryTelemetry(me,Ye,bt),(0,it.of)(!0))))}activateServiceWorker(){return this.logger.info("GFN SW Activation requested"),this.serviceWorkerService.activateServiceWorker()}reloadTab(){this.refreshing||(this.logger.info("Reloading the Tab"),window.location.reload()),this.refreshing=!0}finalizeActivation(){this.serviceWorkerService.postMessageSw({type:Zo.oY.GetClientVersion,content:""}),this.serviceWorkerService.swAssociatedClientVersion.pipe((0,g.s)(1)).subscribe(C=>{this.logger.info("Client Version of Associated SW and client is",C,this.appConfig.build.version),C!==this.appConfig.build.version&&this.shouldReloadOnActivation?this.reloadTab():this.swActivationTimedOut.next(!1)})}isSwUpdateWithinAppLaunchWindow(C){return C-this.appStartTs<this.appLaunchWindow}withinAppLaunchWindow(){return Date.now()-this.appStartTs<this.appLaunchWindow}periodicallyCheckForUpdates(){l.zk.isBrowserPlatform()?this.updateIntervalSub?this.logger.info("GFN SW Periodic Check: Already initialized"):(this.logger.info(`GFN SW Periodic Check: Init - time check interval: ${this.timeCheckInterval}, update check interval: ${this.swUpdateCheckInterval}`),this.updateIntervalSub=(0,z.Y)(this.timeCheckInterval).pipe((0,ge.p)(C=>Date.now()-this.lastUpdateCheckTimestamp>=this.swUpdateCheckInterval),(0,nt.ZZ)(C=>this.checkForUpdates())).subscribe(C=>{this.logger.info("GFN SW Periodic Check: Result",C)},C=>this.logger.error("GFN SW Periodic Check: Error -",C.toString()))):this.logger.info("GFN SW Periodic Check: Skipping as not browser platform.")}clearUpdateCheckInterval(){this.updateIntervalSub?.unsubscribe(),this.updateIntervalSub=null}autoUpdateOnAppLaunch(){this.logger.info("GFN SW Auto Update: Init"),this.checkForUpdatesInternal(!l.zk.isBrowserPlatform()).pipe((0,ge.p)(C=>C.updateAvailable&&this.withinAppLaunchWindow()&&this.deeplinkHelperService.allowApplicationReload()),(0,nt.ZZ)(C=>(this.logger.info("GFN SW Auto Update: Within launch window, requesting to activate."),this.activateServiceWorker()))).subscribe(C=>{this.logger.info("GFN SW Auto Update: Activation result",C)},C=>this.logger.error("GFN SW Auto Update: Request failed",C.toString()))}handleServiceWorkerActivatedInternal(C){this.logger.info("GFN SW Activated: New Service worker activated",C),C?.firstInstallation||this.refreshing||l.zk.isCefPlatform()?(this.logger.info("GFN SW Activated: Will not reload."),this.updateServiceWorkerSilently=!1):this.updateServiceWorkerSilently?(this.logger.info("GFN SW Activated: Updated silently."),this.updateServiceWorkerSilently=!1,this.serviceWorkerService.clearSwUpdateCache()):(this.logger.info("GFN SW Activated: Reloading the page."),this.finalizeActivation())}handleServiceWorkerActivated(){this.logger.info("GFN SW Activated: Init"),this.serviceWorkerService.swActivated.pipe((0,nt.ZZ)(C=>(this.sendServiceWorkerStateTelemetry(s.Activated,!0),(0,it.of)(C).pipe((0,Lf.o)(w=>this.telemetryEventProcessingComplete.asObservable()))))).subscribe(C=>{this.handleServiceWorkerActivatedInternal(C)},C=>this.logger.error("GFN SW Activated: Error -",C.toString()))}handleServiceWorkerInstalled(){this.serviceWorkerService.swUpdateReady.subscribe(C=>{this.sendServiceWorkerStateTelemetry(s.Installed,!0)})}sendServiceWorkerLaunchTelemetry(){(0,Vn.yU)(this.telemetryService.getDefaultClientConsentObserable(),this.telemetryService.getCommonDataObservable()).pipe((0,g.s)(1)).subscribe(C=>{if(this.serviceWorkerService.serviceWorkerSupported()){const w=this.serviceWorkerService.getSWRegistrationInfo();w&&this.sendServiceWorkerStateTelemetry(w.isSuccess?s.RegistrationSuccess:s.RegistrationFailed,!1,JSON.stringify(w.error))}else this.sendServiceWorkerStateTelemetry(s.NotSupported)})}sendServiceWorkerStateTelemetry(C,w=!1,Q=""){const me={immediateRequest:w};(C===s.Activated||C===s.ActivationOngoing)&&(me.afterDone=()=>{this.telemetryEventProcessingComplete.next(!0)});const Ye=new Pt.BAK({clientType:this.telemetryUtilService.getClientType(),currentScreen:this.telemetryService.getScreen()||Pt.MCB.ScreenMallHome,userAction:Pt.ay7.ServiceWorkerActivation,status:M.get(C),errorDetails:Q.substring(0,1024),totalMs:0,errorUri:"",serverErrorCode:""});this.telemetryService.push(Ye,void 0,me)}getWaitingSWClientVersion(){return(0,El.H)(navigator.serviceWorker.getRegistration()).pipe((0,nt.ZZ)(C=>{const w=new MessageChannel;return C?.waiting?(C.waiting.postMessage({type:Zo.oY.GetClientVersionWaitingSW},[w.port2]),w.port1.start(),(0,re.R)(w.port1,"message")):(0,it.of)(!1)}))}handleServiceWorkerActivationRequest(){this.logger.info("SWAR: Init"),this.serviceWorkerService.swActivationRequested.pipe((0,nt.ZZ)(C=>(0,z.Y)(750).pipe((0,h.Q)(this.serviceWorkerService.swActivated),(0,g.s)(1))),(0,nt.ZZ)(C=>this.getWaitingSWClientVersion()),(0,nt.ZZ)(C=>{this.shouldReloadOnActivation=!1,this.logger.info("SWAR: max time after activation requested, reloading ",C);let Q,w="";return C&&C.data.clientVersionString!==this.appConfig.build.version?(Q=this.telemetryEventProcessingComplete.asObservable(),w=C.data.clientVersionString):Q=(0,it.of)(!1),this.sendServiceWorkerStateTelemetry(s.ActivationOngoing,!0,w),Q})).subscribe(C=>{C?this.reloadTab():this.swActivationTimedOut.next(!1)},C=>{this.sendServiceWorkerStateTelemetry(s.ActivationError,!1,`SWAR: Error ${C}`),this.logger.error("SWAR: Error",C)})}isFirstInstallation(){return!this.serviceWorkerService.swIsActive()}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(Zo.lS),c.KVO(Mi.Vk),c.KVO(l.J6),c.KVO(no.BW),c.KVO(hn.Ix),c.KVO(dh.w),c.KVO(Pt.jgD),c.KVO(P.H0))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();d(62879),d(42629);let Hr=(()=>{var j;class Ke{constructor(C){this.logger=C.getLogger("gfn/shared/GameLaunchAnalyticsService"),this.resetGameLaunchMetadata(!1)}getGameLaunchMetadata(){return{...this.gameLaunchMetadata}}updateGameLaunchChangeMetadata(){this.logger.info(this.gameLaunchMetadata.launchTs?"Game change accepted - updating GameLaunchData":"No game launch info exists, adding GameChangeDialog info"),this.gameLaunchMetadata.isFromGameChangeDialog=!0}setGameLaunchMetadata(C,w,Q,me){this.gameLaunchMetadata={shortName:C,launchTs:w,epicAccountLinked:Q,isMallRunning:me}}resetGameLaunchMetadata(C){this.logger.info("Cleared game launch metadata"),this.gameLaunchMetadata={shortName:"",launchTs:0,epicAccountLinked:!1,isMallRunning:C}}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),Ko=(()=>{var j;class Ke{constructor(C,w){this.router=C,this.pathService=w,this.backNavigationUrls=new Array,this.lastNavigationRoute=null,this.namedBackNavigationUrls=new Map}get lastNavigationUrl(){return this.lastNavigationRoute}get backNavigationRoute(){return this.lastNavigationRoute=this.backNavigationUrls.pop(),this.lastNavigationRoute}set backNavigationRoute(C){this.lastNavigationRoute=C,this.backNavigationUrls.push(C)}setNamedBackNavigationUrl(C,w){this.namedBackNavigationUrls.set(C,w)}getNamedBackNavigationUrl(C){return this.namedBackNavigationUrls.get(C)||""}clearState(){this.backNavigationUrls=new Array,this.lastNavigationRoute=null,this.namedBackNavigationUrls.clear()}navigateToPreviousRoute(C){const w=this.backNavigationRoute;C&&this.namedBackNavigationUrls.has(C)?this.pathService.navigateByUrl(this.getNamedBackNavigationUrl(C)):(0,a.isNil)(w)?this.pathService.navigateByUrl(Ii.f.Home):this.pathService.navigateByUrl(this.router.url===w?this.backNavigationRoute:w)}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(hn.Ix),c.KVO(Ii.R6))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Fo=function(j){return j.Search="Search",j.Survey="Survey",j}(Fo||{}),mr=d(1794),os=function(j){return j.MallScreen="SCREEN_MALL",j.SurveyScreen="SCREEN_SURVEY",j.FeedbackScreen="SCREEN_FEEDBACK",j.PostGameScreen="SCREEN_POSTGAME",j}(os||{}),ua=function(j){return j.Stage="STAGE",j.Prod="PROD",j}(ua||{}),_o=d(72271);let Nl=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls,ws,xl,Au,Fh,Dg,qm,ef,Pp,Mf,yf,Bf){this.idmService=C,this.systemInfoService=w,this.experienceControlWrapperService=Q,this.telemetryService=me,this.distributedTracingBootstrapService=bt,this.router=cn,this.browserSupportService=Wn,this.telemetryUtilService=xi,this.customLocationService=Yi,this.pathService=fr,this.localeService=Gr,this.nesUserInfoService=ao,this.gridService=Eo,this.ecommerceService=ls,this.appConfig=ws,this.experienceControlService=xl,this.gfnSdkService=Au,this.applicationLifetimeService=Fh,this.libraryLoggingService=Dg,this.browseUxService=qm,this.bridgeService=ef,this.ipcService=Pp,this.gfcHelperService=Mf,this.distributedTracingUtilService=yf,this.offDeviceLinkService=Bf,this.surveyUrlSubject=new Be.m,this.participatedInSurvey=!1,this.surveyTimeout={},this.notificationTimers={},this.surveyActionDuration=0,this.surveyMinimized$=new p.B7,this.logger=Ye.getLogger("SurveyService"),this.logger.info("Init SDK"),this.sdk=new mr.SurveySdkService,this.surveySdkClientConfig={url:ws.surveyEndpoint.server,defaultRetries:ws.surveyEndpoint.defaultRetries,defaultTimeBetweenRetries:ws.surveyEndpoint.defaultTimeBetweenRetries,defaultTimeout:ws.surveyEndpoint.defaultTimeout,env:ws.surveyEndpoint.server.includes("stg")?ua.Stage:ua.Prod,clientId:ws.surveyEndpoint.clientId,clientVersion:(0,Mi.Cl)(ws),clientVariant:this.telemetryUtilService.getCommonClientVariant(ws.build.variant)},this.clientSurveyResults=new Map,this.surveyEventReferenceSubmittedMap=new Map,this.surveyEventReferenceDismissedMap=new Map,this.surveyEventReferenceErrorMap=new Map,this.surveyEventReferenceSubmissionErrorMap=new Map,this.surveyEventReferenceTimeoutMap=new Map,this.surveyEventReferenceCloseDialogMap=new Map,this.surveyEventReferenceLogListenerMap=new Map,this.surveyEventReferenceMinimizedMap=new Map,this.surveyEventReferenceDeferredMap=new Map,this.logger.info("surveySdkClientConfig: ",this.surveySdkClientConfig)}initialize(){this.applicationLifetimeService.addWorkOnShutdown(()=>(this.clientSurveyResults.forEach((C,w)=>{this.sendUserSurveyTelemetry(Pt.p2o.DismissAppExit,this.getSurveyHierarchy(w),w,C)}),(0,it.of)(void 0)))}handleClientSurveyResponse(C,w,Q){if(C){this.logger.info("Got User Survey, data is: ",C),this.surveyActionDuration=Date.now();const me=C;this.clientSurveyResults.set(me.triggerType,me),this.distributedTracingUtilService.setSpanAttributes(w,{[mr.SurveySdkSpanTagNames.SurveyId]:me.surveyId}),(me.triggerType===mr.TriggerType.SurveyBanner||me.triggerType===mr.TriggerType.UXTestBanner||me.triggerType===mr.TriggerType.CommunicationBanner)&&this.surveyUrlSubject.next(me.surveyContainerUrl),this.subscribeToSurveyEvents(me)}else this.logger.info("Cannot get User Survey data");this.sendSurveyHttpSuccessTelemetry({url:C?.config?.url,httpStatus:C?.status,durationMs:Q,xRequestId:C?.xRequestId},Pt.OOF.GetSurvey,Pt.c4O.GetUsabilityStudy),this.distributedTracingUtilService.closeSpan(w)}handleUsabilityStudyError(C,w){return this.logger.error("Check for survey failed. Sending HTTPFailure telemetry: ",C),this.distributedTracingUtilService.setSpanAttribute(w,Pr.NS.Error,!0),this.distributedTracingUtilService.closeSpan(w),this.sendSurveyFailureTelemetry(C,Pt.OOF.GetSurvey,Pt.c4O.GetUsabilityStudy),this.resetClientSurveyResult(),(0,it.of)(void 0)}getBannerNotificationTimer(){const C=this.notificationTimers?.SURVEY_BANNER,w=this.notificationTimers?.UXTEST_BANNER;return this.clientSurveyResults.get(mr.TriggerType.SurveyBanner)?C:this.clientSurveyResults.get(mr.TriggerType.UXTestBanner)?w:3e5}checkUserAuthenticatedForSurveys(C){if(this.logger.info("check User Authenticated For Surveys"),!C.isAuthenticated){let w=os.MallScreen;this.participatedInSurvey&&(w=os.SurveyScreen,this.customLocationService.navigateToPreviousRoute(Fo.Survey));const Q=this.getSurveyBannerInProgress();return Q&&(Q.triggerType!==mr.TriggerType.CommunicationBanner?this.declineSurveys(Pt.p2o.DismissLogout,w,Q).subscribe():this.resetClientSurveyResult(Q)),!1}return!0}checkSurveyEnabledForTriggerType(C,w){if(C){const Q=C.value;switch(w){case mr.TriggerType.SurveyBanner:return Q.enableBannerSurvey;case mr.TriggerType.Feedback:return Q.enableUserFeedback;case mr.TriggerType.PostGame:return Q.enablePostSessionSurvey;default:return!1}}return!1}checkForAvailableSurveyBanner(C,w="0",Q="",me=0){return this.idmService.accountStatusChanged.pipe((0,nt.ZZ)(Ye=>Ye.isAuthenticated?this.isSurveyBannerAvailableForTriggers(Ye,C).pipe((0,wn.$)(),(0,nt.ZZ)(bt=>bt?(this.logger.info("Survey feature enabled"),this.getAvailableSurveyBannerForTriggers(Ye,C,w,Q,me).pipe((0,Un.W)(()=>(0,it.of)(null)))):(this.logger.info("Survey feature is not enabled"),(0,it.of)(null)))):(this.logger.info("checkForAvailableSurveyBanner user logged out"),this.checkUserAuthenticatedForSurveys(Ye)?void 0:(0,it.of)(void 0))))}isSurveyBannerAvailableForTriggers(C,w){const Q=[this.appConfig.gxTarget.experiences.survey];w.includes(mr.TriggerType.UXTestBanner)&&Q.push(this.appConfig.gxTarget.experiences.usabilityStudy),w.includes(mr.TriggerType.CommunicationBanner)&&Q.push(this.appConfig.gxTarget.experiences.communicationSurvey),this.availableFeatures=[];const me=this.getSurveyFeaturesEnablement(C,Q).pipe((0,g.s)(1),(0,wt.T)(([...bt])=>{this.availableFeatures=bt;const cn=bt[0],Wn=w.indexOf(mr.TriggerType.UXTestBanner),xi=-1!==Wn?bt[Wn]:null,Yi=w.indexOf(mr.TriggerType.CommunicationBanner),fr=-1!==Yi?bt[Yi]:null,Gr=this.checkSurveyEnabledForTriggerType(cn,w[0]);return w.includes(mr.TriggerType.UXTestBanner)||w.includes(mr.TriggerType.CommunicationBanner)?!!(Gr||xi||fr):Gr}),(0,Un.W)(bt=>(this.logger.error("Failed to get survey feature enablement"),(0,it.of)(void 0)))),Ye=(0,it.of)(w.includes(mr.TriggerType.NotificationBanner));return(0,Vt.zV)([me,Ye]).pipe((0,wt.T)(([bt,cn])=>bt||cn))}getAvailableSurveyBannerForTriggers(C,w,Q="0",me="",Ye=0,bt=!1){const cn=me||this.cachedStreamingSessionId;return(0,Vt.zV)([this.systemInfoService.getSystemInfo([l.Lu.DeviceId]),this.distributedTracingBootstrapService.fetchCountryCode(),this.prepareClientParams(Q,cn,Ye,bt),this.systemInfoService.getDeviceOSType()]).pipe((0,_n.H)(([Wn,xi,Yi,fr])=>{if(this.logger.info("ClientParams passed getAvailableSurveyBannerForTriggers: ",Yi,Wn.DeviceId,xi),!this.checkUserAuthenticatedForSurveys(C)||(this.currentUser=C,!this.getDataForGetUserSurveyApi(w)))return(0,it.of)(void 0);this.sdk.initializeClientConfig(this.surveySdkClientConfig,{collector_host:"lightstep.kaizen.nvidia.com",collector_port:443,component_name:this.appConfig.otelTracerConfig.componentName,disable_clock_skew_correction:!0,access_token:this.appConfig.otelTracerConfig.accessToken}),this.initGlobalTagsForOpenTracing(Wn.DeviceId,this.osInfo,xi,C.userId,C.idpId);const ao=this.startGetSurveyClientSpan(!1),ls=(this.distributedTracingUtilService.inject(ao),this.getCommonParams(fr));this.logger.info("ClientParams passed to survey sdk: ",this.surveyClientParams,ls);const ws=performance.now();return(0,El.H)(this.sdk.getUserSurvey(C.userId,C.idpId,Wn.DeviceId,this.surveyTimeout,this.surveyClientParams,this.requestedTriggerTypes,this.surveyClientParams.locale,ls.deviceOS,ls.deviceType,ls.deviceMake,ls.deviceModel,ls.deviceOSVersion,ls.clientType,ls.browserType)).pipe((0,on.M)(xl=>{const Au=performance.now();this.handleClientSurveyResponse(xl,ao,Au-ws)}),(0,wt.T)(xl=>l.zk.isBrowserPlatform()&&this.router.url===Ii.f.Surveys&&!xl?void this.browserSupportService.goToPreviousPage():xl),(0,Un.W)(xl=>this.handleUsabilityStudyError(xl,ao)))}))}isSurveyFeatureAvailable(C){const w=[this.appConfig.gxTarget.experiences.survey];C.includes(mr.TriggerType.UXTestBanner)&&w.push(this.appConfig.gxTarget.experiences.usabilityStudy),C.includes(mr.TriggerType.CommunicationBanner)&&w.push(this.appConfig.gxTarget.experiences.communicationSurvey);let Q=!1;return(0,Vn.yU)(this.idmService.accountStatusChanged,this.gfnSdkService.getAuthInfo()).pipe((0,on.M)(([me,Ye])=>{Q=Ye.authType===Qr.hT.JWT}),(0,ge.p)(([me,Ye])=>Q||me.isAuthenticated),(0,_n.H)(([me,Ye])=>{let bt;return bt=Q?{userId:Ye.userId||"",idpId:Ye.idpId||""}:this.getUserInfoFromUser(me),this.availableFeatures=[],this.getSurveyFeaturesEnablement(bt,w)}),(0,wt.T)(([...me])=>{this.availableFeatures=me;const Ye=me[0],bt=C.indexOf(mr.TriggerType.UXTestBanner),cn=-1!==bt?me[bt]:null,Wn=C.indexOf(mr.TriggerType.CommunicationBanner),xi=-1!==Wn?me[Wn]:null,Yi=this.checkSurveyEnabledForTriggerType(Ye,C[0]);return C.includes(mr.TriggerType.UXTestBanner)||C.includes(mr.TriggerType.CommunicationBanner)||C.includes(mr.TriggerType.NotificationBanner)?!!(Yi||cn||xi):Yi}),(0,Un.W)(me=>(this.logger.error("Failed to get survey feature enablement"),(0,it.of)(void 0))))}getAvailableSurvey(C,w="0",Q="",me=0,Ye=!1){const bt=Q||this.cachedStreamingSessionId;return(0,Vt.zV)([this.idmService.accountStatusChanged,this.systemInfoService.getSystemInfo([l.Lu.DeviceId]),this.distributedTracingBootstrapService.fetchCountryCode(),this.systemInfoService.getDeviceOSType(),this.prepareClientParams(w,bt,me,Ye)]).pipe((0,_n.H)(([cn,Wn,xi,Yi])=>{if(!this.checkUserAuthenticatedForSurveys(cn)||(this.currentUser=cn,!this.getDataForGetUserSurveyApi(C)))return(0,it.of)(void 0);this.sdk.initializeClientConfig(this.surveySdkClientConfig,{collector_host:"lightstep.kaizen.nvidia.com",collector_port:443,component_name:this.appConfig.otelTracerConfig.componentName,disable_clock_skew_correction:!0,access_token:this.appConfig.otelTracerConfig.accessToken}),this.initGlobalTagsForOpenTracing(Wn.DeviceId,this.osInfo,xi,cn.userId,cn.idpId);const Gr=this.startGetSurveyClientSpan(!1),Eo=(this.distributedTracingUtilService.inject(Gr),this.getCommonParams(Yi));this.logger.info("ClientParams passed to survey sdk: ",this.surveyClientParams,Eo);const ls=performance.now();return(0,El.H)(this.sdk.getUserSurvey(cn.userId,cn.idpId,Wn.DeviceId,this.surveyTimeout,this.surveyClientParams,this.requestedTriggerTypes,this.surveyClientParams.locale,Eo.deviceOS,Eo.deviceType,Eo.deviceMake,Eo.deviceModel,Eo.deviceOSVersion,Eo.clientType,Eo.browserType)).pipe((0,on.M)(ws=>{const xl=performance.now();this.handleClientSurveyResponse(ws,Gr,xl-ls)}),(0,wt.T)(ws=>l.zk.isBrowserPlatform()&&this.router.url===Ii.f.Surveys&&!ws?void this.browserSupportService.goToPreviousPage():ws),(0,Un.W)(ws=>this.handleUsabilityStudyError(ws,Gr)))}))}getDataForGetUserSurveyApi(C){this.requestedTriggerTypes=[],this.logger.info("getAvailableSurvey, available Features: ",this.availableFeatures);const w=this.availableFeatures[0],Q=C.indexOf(mr.TriggerType.UXTestBanner),me=-1!==Q?this.availableFeatures[Q]:null,Ye=C.indexOf(mr.TriggerType.CommunicationBanner),bt=-1!==Ye?this.availableFeatures[Ye]:null,cn=C.includes(mr.TriggerType.NotificationBanner),Wn=w||me;return Wn||cn?(this.surveySdkClientConfig.surveyContainerBaseUrl=Wn.value.containerBaseUrl,w&&(this.surveyTimeout.SURVEY_BANNER=w.value.surveyTimeoutSec),me&&(this.surveyTimeout.UXTEST_BANNER=me.value.surveyTimeoutSec),w&&(this.notificationTimers.SURVEY_BANNER=w.value.notificationTimeoutMs),me&&(this.notificationTimers.UXTEST_BANNER=me.value.notificationTimeoutMs),me&&C.includes(mr.TriggerType.UXTestBanner)&&this.requestedTriggerTypes.push(mr.TriggerType.UXTestBanner),bt&&bt.value.enableOCTSurvey&&C.includes(mr.TriggerType.CommunicationBanner)&&this.requestedTriggerTypes.push(mr.TriggerType.CommunicationBanner),w&&C.forEach(xi=>{xi!==mr.TriggerType.UXTestBanner&&xi!==mr.TriggerType.CommunicationBanner&&this.requestedTriggerTypes.push(xi)}),cn&&this.requestedTriggerTypes.push(mr.TriggerType.NotificationBanner),this.logger.info("RequestedTriggerTypes: ",this.requestedTriggerTypes),this.logger.info("Successfully preapared Data for GetUserSurvey Api"),!0):(this.logger.error("Failed to preapsre Data for GetUserSurvey Api"),!1)}prepareClientParams(C,w,Q,me){const Ye=me?(0,it.of)({NetworkType:l.Sd.Unknown}):this.systemInfoService.getSystemInfo([l.Lu.Network]).pipe((0,wt.T)(bt=>bt.Network));return(0,Vn.yU)(Ye,this.systemInfoService.getSystemInfo([l.Lu.OSName,l.Lu.OSVersion,l.Lu.Platform,l.Lu.DeviceType,l.Lu.VendorName,l.Lu.SystemName,l.Lu.OSVersion,l.Lu.BrowserName,l.Lu.BrowserVersion]),this.localeService.localeChanged,this.nesUserInfoService.fetchUserInfoWithStreamingUrl(),this.gridService.getCachedZone(),this.ecommerceService.getUserMembership().pipe((0,ge.p)(bt=>bt.membershipStatus!==zr.UnKnown&&bt.membershipStatus!==zr.LoggedOut)),this.gfcHelperService.getAppInstanceId()).pipe((0,nt.ZZ)(([bt,cn,Wn,xi,Yi,fr,Gr])=>(this.osInfo={OSName:cn.OSName,OSVersion:cn.OSVersion,Platform:cn.Platform},this.systemInfo=cn,this.surveyClientParams={gfnSessionId:w||"",application:"GFN",serverType:"GRID",userSubscriptionLevelSKU:fr.membershipStatus===zr.Entitled?fr.subscription.productSku:"",network:bt&&bt.NetworkType?bt.NetworkType:l.Sd.Unknown,locale:Wn,affiliate:xi?.serviceEndpoint?xi.serviceEndpoint.loginProvider:"",datacenter:Yi.name||"",browser:cn.BrowserName||"",browserVersion:cn.BrowserVersion||"",cmsId:C,sessionDurationMin:Q,osName:this.experienceControlService.getSupportedOSName(this.osInfo.OSName),selectedCmsId:this.browseUxService.selectedParentId||"",surveySessionId:l.zk.isBrowserPlatform()&&Gr||"",productName:this.telemetryUtilService.getProductName(),productVersion:(0,Mi.Cl)(this.appConfig)},(0,it.of)(this.surveyClientParams))))}unsubscribeFromLogListener(C){this.surveyEventReferenceLogListenerMap.get(C).unsubscribe()}getBannerSurveyTriggerType(){const C=this.getSurveyBannerInProgress();return C?C.triggerType:null}setStreamingSessionId(C){this.cachedStreamingSessionId=C}declineSurveys(C,w,Q){if(this.logger.info("Decline User Surveys Async:",Q),Q&&!(0,a.isEmpty)(Q)&&this.currentUser&&this.currentUser.isAuthenticated){this.logger.info("Declining the surveys for id: ",Q.surveyId);const me=this.startDismissSurveyClientSpan(Q.surveyId),bt=(this.distributedTracingUtilService.inject(me),performance.now());return(0,El.H)(this.sdk.declineUserSurvey(this.currentUser.userId,Q.surveyId,!1)).pipe((0,wt.T)(cn=>{const Wn=performance.now();return this.distributedTracingUtilService.closeSpan(me),this.sendUserSurveyTelemetry(C,w,Q.triggerType,Q),this.sendSurveyHttpSuccessTelemetry({url:cn?.config?.url,httpStatus:cn?.status,durationMs:Wn-bt,xRequestId:cn?.xRequestId},Pt.OOF.SendSurveyResponse,Pt.c4O.SendUsabilityStudyResponse),this.resetClientSurveyResult(Q),!0}),(0,Un.W)(cn=>(this.logger.error("Declining the survey failed sending HTTPFailure telemetry: ",cn),this.distributedTracingUtilService.closeSpan(me),this.sendSurveyFailureTelemetry(cn,Pt.OOF.SendSurveyResponse,Pt.c4O.SendUsabilityStudyResponse),this.resetClientSurveyResult(Q),(0,it.of)(!1))))}return this.logger.error("Something went wrong in declining the survey Removing the notification",Q),this.resetClientSurveyResult(Q),(0,it.of)(!1)}primarySurveyBannerAction(){const C=this.getSurveyBannerInProgress();let w;this.logger.info("onClickParticipate for id: ",C.surveyId),C.triggerType===mr.TriggerType.NotificationBanner?(w=Pt.p2o.LearnMoreClicked,this.offDeviceLinkService.open(C.notificationUrl)):(this.participatedInSurvey=!0,this.router.url!==Ii.f.Surveys&&(this.customLocationService.setNamedBackNavigationUrl(Fo.Survey,this.router.url),this.appConfig.featureEnablement?.surveyInNative?this.bridgeService.executeCommand(Qe.Ts.Common.Survey.Launch,{url:C.surveyContainerUrl,triggerType:C.triggerType,surveyId:C.surveyId}).subscribe(()=>{}):this.pathService.navigate([Ii.f.Surveys],{skipLocationChange:!0})),w=C.surveyVisited?Pt.p2o.ParticpatePostMinimize:Pt.p2o.Participate),this.sendUserSurveyTelemetry(w,os.MallScreen,C?.triggerType,C)}getSurveyUrl(){return this.surveyUrlSubject.asObservable()}isSurveyInProgress(){return this.participatedInSurvey}getSurveyBannerInProgress(){return this.clientSurveyResults.get(mr.TriggerType.CommunicationBanner)||this.clientSurveyResults.get(mr.TriggerType.UXTestBanner)||this.clientSurveyResults.get(mr.TriggerType.SurveyBanner)||this.clientSurveyResults.get(mr.TriggerType.NotificationBanner)}subscribeToSurveyEvents(C){const w=C.triggerType,Q=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.Minimized},()=>this.surveyEventListnerMinimized(w));this.surveyEventReferenceMinimizedMap.set(w,Q);const me=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.Deferred},()=>this.surveyEventListnerDeferred(w));this.surveyEventReferenceDeferredMap.set(w,me);const Ye=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.Submitted},()=>this.surveyEventListenerSubmitted(w));this.surveyEventReferenceSubmittedMap.set(w,Ye);const bt=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.Dismissed},()=>this.surveyEventListenerDismissed(w));this.surveyEventReferenceDismissedMap.set(w,bt);const cn=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.Errored},()=>this.surveyEventListenerErrored(w));this.surveyEventReferenceErrorMap.set(w,cn);const Wn=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.SubmissionErrored},()=>this.surveyEventListenerSubmissionErrored(w));this.surveyEventReferenceSubmissionErrorMap.set(w,Wn);const xi=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.Timeout},()=>this.surveyEventListenerTimeout(w));this.surveyEventReferenceTimeoutMap.set(w,xi);const Yi=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.CloseDialog},()=>this.surveyEventListenerCloseDialog(w));this.surveyEventReferenceCloseDialogMap.set(w,Yi),this.logger.info("Survey Event Reference Close Dialog Map:",this.surveyEventReferenceCloseDialogMap.size);const fr=(0,mr.subscribeToIFrameEvents)({surveyId:C.surveyId,type:mr.SurveyEventType.Log},Gr=>this.libraryLoggingService.sendLog(Gr));this.surveyEventReferenceLogListenerMap.set(w,fr)}getSurveyHierarchy(C){switch(C){case mr.TriggerType.CommunicationBanner:return this.isSurveyInProgress()?os.SurveyScreen:os.MallScreen;case mr.TriggerType.SurveyBanner:case mr.TriggerType.UXTestBanner:return os.SurveyScreen;case mr.TriggerType.Feedback:return os.FeedbackScreen;case mr.TriggerType.PostGame:return os.PostGameScreen;default:return os.SurveyScreen}}surveyEventListnerMinimized(C){this.logger.info("Survey has minimized; triggerType: ",C),this.unsubscribeFromLogListener(C),this.surveyMinimize(C)}surveyEventListnerDeferred(C){this.logger.info("Survey has deferred; triggerType: ",C),this.sendUserSurveyTelemetry(Pt.p2o.Deferred,this.getSurveyHierarchy(C),C,this.clientSurveyResults.get(C)),C!==mr.TriggerType.Feedback&&C!==mr.TriggerType.PostGame&&this.customLocationService.navigateToPreviousRoute(Fo.Survey),this.surveyEventReferenceDeferredMap.get(C).unsubscribe(),this.unsubscribeFromLogListener(C)}triggerSurveyLogUpload(C){if(l.zk.isBrowserPlatform())this.gfcHelperService.updateEventDataParamIds({surveySessionId:C||""});else{const Q={type:La.kN.CollectClientLogs,content:JSON.stringify({name:La.Nc.UserFeedBack,surveySessionId:C||""}),sender:this.telemetryUtilService.getClientType()===Pt.sKj.MallClient?La.pQ.GfnMall:La.pQ.GfnStreamer,recipient:La.pQ.GfnUpdater};this.logger.info("Sending IPC message for uploading survey logs:",Q),this.ipcService.pushMessage(Q).pipe((0,g.s)(1)).subscribe(me=>this.logger.info("Survey logs upload triggered: ",me),me=>this.logger.error("Error triggering Survey logs upload: ",me))}}surveyEventListenerSubmitted(C){this.logger.info("Survey has been submitted; triggerType: ",C);const w=this.clientSurveyResults.get(C)?.surveySessionId;this.triggerSurveyLogUpload(w),this.sendUserSurveyTelemetry(Pt.p2o.Completed,this.getSurveyHierarchy(C),C,this.clientSurveyResults.get(C)),this.surveyEventReferenceSubmittedMap.get(C).unsubscribe(),this.unsubscribeFromLogListener(C)}surveyEventListenerDismissed(C){this.logger.info("Survey has been dismissed"),this.sendUserSurveyTelemetry(Pt.p2o.DismissManual,this.getSurveyHierarchy(C),C,this.clientSurveyResults.get(C)),this.surveyEventReferenceDismissedMap.get(C).unsubscribe(),this.unsubscribeFromLogListener(C)}surveyEventListenerTimeout(C){this.logger.info("Survey has been timed-out; triggerType: ",C),this.sendUserSurveyTelemetry(Pt.p2o.DismissTimeout,this.getSurveyHierarchy(C),C,this.clientSurveyResults.get(C)),(C===mr.TriggerType.PostGame||C===mr.TriggerType.Feedback)&&this.customLocationService.navigateToPreviousRoute(Fo.Survey),this.surveyEventReferenceTimeoutMap.get(C).unsubscribe(),this.unsubscribeFromLogListener(C)}surveyEventListenerCloseDialog(C){this.logger.info("User closed dialog from Survey; triggerType: ",C);const w=this.clientSurveyResults.get(C);this.resetClientSurveyResult(w),C!==mr.TriggerType.Feedback&&C!==mr.TriggerType.PostGame&&this.customLocationService.navigateToPreviousRoute(Fo.Survey),[mr.TriggerType.Feedback,mr.TriggerType.PostGame].includes(C)&&this.sendUserSurveyTelemetry(Pt.p2o.DismissManual,this.getSurveyHierarchy(C),C,w),this.surveyEventReferenceCloseDialogMap.get(C).unsubscribe(),this.unsubscribeFromLogListener(C)}surveyEventListenerErrored(C){this.logger.info("Survey has error");const w=this.clientSurveyResults.get(C);this.resetClientSurveyResult(w),this.surveyEventReferenceErrorMap.get(C).unsubscribe(),this.unsubscribeFromLogListener(C)}surveyEventListenerSubmissionErrored(C){this.logger.info("Survey has submission error");const w=this.clientSurveyResults.get(C);this.resetClientSurveyResult(w),this.surveyEventReferenceSubmissionErrorMap.get(C).unsubscribe(),this.unsubscribeFromLogListener(C)}sendUserSurveyTelemetry(C,w,Q,me){if(this.logger.info("Sending survey telemetry: ",C),me){const Ye=new Pt.Fdg({hierarchy:w,status:C,surveyId:me.surveyId,durationMs:this.getUserActionDuration(C),surveyTrigger:Pt.V_v[Q.toString()]});this.telemetryService.push(Ye,null,{immediateRequest:!0}),(C===Pt.p2o.Completed||C===Pt.p2o.DismissManual||C===Pt.p2o.DismissTimeout||C===Pt.p2o.Deferred||C===Pt.p2o.DismissManualPostMinimize)&&this.resetClientSurveyResult(me)}}surveyMinimize(C){const w=this.clientSurveyResults.get(C);w.surveyVisited=!0,this.sendUserSurveyTelemetry(Pt.p2o.Minimized,this.getSurveyHierarchy(C),C,w),this.participatedInSurvey=!1,this.customLocationService.navigateToPreviousRoute(Fo.Survey),this.router.events.pipe((0,ge.p)(Q=>Q instanceof hn.wF),(0,wn.$)(),(0,on.M)(()=>{this.surveyMinimized$.next(C)})).subscribe()}getMinimizedSurvey$(){return this.surveyMinimized$.asObservable().pipe((0,nt.ZZ)(C=>(0,it.of)(this.clientSurveyResults.get(C))))}getUserInfoFromUser(C){return{userId:C?.userId||"",idpId:C?.idpId||""}}getSurveyFeaturesEnablement(C,w){const Q=[];return w.forEach((me,Ye)=>{const bt=this.experienceControlWrapperService.getCloudVariable(me,{variant:this.appConfig.build.variant},void 0,no.Ky.GxTargetGetCloudVariable,no.Id.GxTargetGetSurveyFeature,(0,it.of)(C)).pipe((0,Un.W)(cn=>(this.logger.info("FeatureEnablement error: ",cn),(0,it.of)(null))));Q.push(bt)}),(0,Vn.yU)(...Q)}startGetSurveyClientSpan(C=!1){const w=this.distributedTracingUtilService.startSpan(Pr.pB.ClientGetSurvey);return w&&this.distributedTracingUtilService.setSpanAttributes(w,{[mr.SurveySdkSpanTagNames.ReadOnly]:C}),w}startDismissSurveyClientSpan(C){const w=this.distributedTracingUtilService.startSpan(Pr.pB.ClientDismissSurvey);return w&&this.distributedTracingUtilService.setSpanAttributes(w,{[mr.SurveySdkSpanTagNames.SurveyId]:C}),w}initGlobalTagsForOpenTracing(C,w,Q,me,Ye){const bt={[Pr.NS.ServiceVersion]:this.appConfig.build.version,[Pr.NS.ServiceType]:Pr.Se.Pc_A7,[Pr.NS.SpanKind]:Pr.ls.Client,[Pr.NS.AppName]:(0,Ii.I2)(this.router.url)?Ii.td.Streamer:Ii.td.Mall,[Pr.NS.DeviceId]:C,[Pr.NS.ClientOs]:w.Platform,[Pr.NS.ClientOsName]:w.OSName,[Pr.NS.ClientOsVersion]:w.OSVersion,[Pr.NS.CountryCode]:Q,[mr.SurveySdkSpanTagNames.ClientVariant]:this.surveySdkClientConfig.clientVariant,[mr.SurveySdkSpanTagNames.ClientVersion]:this.getClientVersionRevision(this.surveySdkClientConfig.clientVersion),[mr.SurveySdkSpanTagNames.Environment]:this.surveySdkClientConfig.env,[mr.SurveySdkSpanTagNames.UserId]:me,[mr.SurveySdkSpanTagNames.IdpId]:Ye};this.sdk.updateGlobalTags(bt)}getClientVersionRevision(C){return 4===C.split(".").length?C.substring(0,C.lastIndexOf(".")+1).concat("x"):C}resetClientSurveyResult(C){this.logger.info("Resetting client survey result"),this.participatedInSurvey=!1,C&&this.clientSurveyResults.delete(C.triggerType)}getUserActionDuration(C){return C===Pt.p2o.Notify?0:Date.now()-this.surveyActionDuration}sendSurveyHttpSuccessTelemetry(C,w,Q){const me=new Pt.Bhf({sourceComponent:this.telemetryUtilService.getClientType(),originalService:Pt.Uu$.GxTarget,serviceUseCase:w,serviceSubUseCase:Q,url:C.url||"",httpStatus:C.httpStatus||200,durationMs:Math.round(C.durationMs)||0,destinationIp:"",responseData:"",xRequestId:C.xRequestId||"",retryCount:0,wasSWCacheBypassed:Pt.T80.UNDEFINED});this.telemetryService.push(me)}sendSurveyFailureTelemetry(C,w,Q){const me=new Pt._o$({sourceComponent:this.telemetryUtilService.getClientType(),originalService:Pt.Uu$.GxTarget,serviceUseCase:w,serviceSubUseCase:Q,url:C?.config?.url||"",networkErrorCode:String(C&&C.response?C.response.status:0),destinationIp:"",xRequestId:C&&C.xRequestId?C.xRequestId:"",retryCount:0,wasSWCacheBypassed:Pt.T80.UNDEFINED,networkErrorMessage:C?.response?.message?.substring(0,1024)||""});this.telemetryService.push(me)}getCommonParams(C){const w=l.zk.isBrowserPlatform();return{deviceOS:C,deviceType:this.systemInfo.DeviceType||P.oX.Undefined,deviceMake:this.systemInfo.VendorName||P.oX.Undefined,deviceModel:this.systemInfo.SystemName||P.oX.Undefined,deviceOSVersion:this.systemInfo.OSVersion,clientType:w?_o.CommonClientType.Browser:_o.CommonClientType.Native,browserType:this.systemInfo.BrowserName}}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(Ai.k_),c.KVO(l.zW),c.KVO(zg),c.KVO(P.H0),c.KVO(l.J6),c.KVO(ug),c.KVO(hn.Ix),c.KVO(Uu.vT),c.KVO(Pt.jgD),c.KVO(Ko),c.KVO(Ii.R6),c.KVO(l.iH),c.KVO(qe.l),c.KVO(lt.G),c.KVO(Ao),c.KVO(Mi.Vk),c.KVO(no.BW),c.KVO(Qr.DL),c.KVO(A.lM),c.KVO(l.wt),c.KVO(Pg),c.KVO(l.NZ),c.KVO(La.Uj),c.KVO(ju),c.KVO(Pr.Z1),c.KVO(T.nO))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var hc=d(17901),xc=d(73718),gc=d(8282),ud=d(12962),Hd=d(86447);class Iu{constructor(Ke,we,C,w,Q,me,Ye,bt=[],cn,Wn){this.type=Ke,this.logger=we,this.appConfig=C,this.telemetryService=w,this.settingsService=Q,this.localeService=me,this.translateService=Ye,this.enabledGamesList=bt,this.digitalStoreMetadata=cn,this.userAccountData=Wn,this._isSyncScheduled=!1,this.inProgress=!1,this.syncInProgress=!1,this.inErrorState=!1,this.isResync=!1,this.errorText="",this.errorArg="",this.errorDialogUrl="",this.showReconnect=!1,this.reconnectReason=null,this.resyncReason=null,this.prevResyncReason=null,this.hideOnboardingReconnect=!1,this.inProgressDisconnect=!1,this.reconnectInProgress=!1,this.showSyncDeniedReconnect=!1,this.accountLinkedTime=null}get expirationTime(){let Ke;if(this.appConfig.accountLinking?.expirationDate)Ke=new Date(this.appConfig.accountLinking?.expirationDate),Number.isNaN(Ke.getTime())&&(Ke=null);else{const we=parseInt(this.userAccountData?.accountLinkingData.expiresIn,10);Ke=we&&-1!==we?this.getExpirationFromNow(1e3*we):null,(!Ke||-1===parseInt(Ke,10))&&(Ke=null)}return Ke}get isSyncScheduled(){return this._isSyncScheduled}set isSyncScheduled(Ke){this._isSyncScheduled=Ke}get loggedIn(){return!!this.storeData?.store}get fancyTimestamp(){return this.syncTime?Cl(this.syncTime).fromNow():Cl(new Date).fromNow()}get persona(){return this.userAccountData.accountLinkingData?.userDisplayName||this.translateService.instant("accountConnection.connected")}get name(){return this.digitalStoreInfo.accountLinkingMetadata.label}get appStoreName(){return this.digitalStoreInfo?.label}get platform(){return this.type.toUpperCase()}get numberOfSyncedGames(){return this.userAccountData?.accountLinkingData?.accountSyncingData?.totalNumberOfSyncedGfnGames||0}get expirations(){return new xh(this.appConfig.accountLinking?.expiringNow?1e3*this.appConfig.accountLinking.expiringNow:void 0,this.appConfig.accountLinking?.expiringToday?1e3*this.appConfig.accountLinking.expiringToday:void 0,this.appConfig.accountLinking?.expiringSoon?1e3*this.appConfig.accountLinking.expiringSoon:void 0)}get syncDate(){return this.userAccountData?.accountLinkingData?.accountSyncingData?.syncDate}get syncTime(){return this.syncDate?new Date(this.syncDate):null}get userId(){return this.userAccountData?.accountLinkingData?.userIdentifier}updateLinkTime(){this.accountLinkedTime=Date.now()}getExpirationFromNow(Ke){if("number"!=typeof Ke||-1===Ke)return null;const we=this.accountLinkedTime??Date.now();return new Date(we+Ke)}get expires(){const Ke=parseInt(this.userAccountData.accountLinkingData.expiresIn,10);return Ke&&-1!==Ke?this.getExpirationFromNow(1e3*Ke):null}get gamesList(){return this.enabledGamesList}get digitalStoreInfo(){return this.digitalStoreMetadata}get storeData(){return this.userAccountData}get isAccountSyncingSupported(){return this.digitalStoreInfo.features.filter(Ke=>Ke.__typename===No.AccountGamesSyncing).some(Ke=>!0===Ke.supported)}get isAccountLinkingSupported(){return this.digitalStoreInfo.features.filter(Ke=>Ke.__typename===No.AccountLinkingSso).some(Ke=>!0===Ke.supported)}set userAccountInfo(Ke){this.userAccountData=Ke}set syncData(Ke){this.userAccountData.accountLinkingData.accountSyncingData=Ke}get isExpired(){return!(!this.isAccountLinkingSupported||null===this.expirationTime)&&(0===this.expirationTime.getTime()||this.expirationTime.getTime()<Date.now())}get isConnected(){return!!this.storeData?.store}get state(){return this.userAccountData?.accountLinkingData?.accountSyncingData?.syncState}set state(Ke){this.userAccountData.accountLinkingData.accountSyncingData.syncState=Ke}get isSynced(){return this.isConnected&&this.state&&this.isAccountSyncSupported}get showOnboardingReconnect(){return this.isConnected&&this.isAccountSyncSupported&&!this.state&&!this.hideOnboardingReconnect&&this.appConfig.accountLinking.newFeatureAddition.includes(this.type)}get isAccountLinkingSsoAvailable(){return this.isAccountLinkingSupported}get isAccountSyncSupported(){return this.isAccountSyncingSupported}get icon(){return this.digitalStoreInfo.smallImageUrl||""}get isAccountLinkingSsoRequired(){return!!this.digitalStoreInfo.accountLinkingMetadata.isRequired}get isAccountLinked(){return this.isAccountLinkingSsoAvailable&&this.isConnected}resetResyncReconnectReasons(){this.reconnectReason=null,this.prevResyncReason=null}updateProviderState(){if(this.inProgress=!1,this.inProgressDisconnect=!1,this.syncInProgress=!1,this.inErrorState=!1,this.showReconnect=!1,this.showSyncDeniedReconnect=!1,this.prevResyncReason=this.resyncReason,this.resyncReason=null,this.isAccountLinkingSsoAvailable&&(this.errorText="",this.errorArg="",this.inErrorState=!1,this.isAccountLinkingSupported)){const Ke=this.getExpirationStatus();if(this.loggedIn&&Ke!==ml.NotExpired)switch(this.logger.info("Updating provider state for expiry",Ke),this.inErrorState=!0,this.showReconnect=!0,Ke){case ml.Expired:this.errorText="accountConnection.accountLinking.warningExpired";break;case ml.ExpiresNow:case ml.ExpiresToday:this.errorText="accountConnection.accountLinking.warningToday";break;case ml.ExpiresSoon:this.errorText="accountConnection.accountLinking.warning",this.errorArg=Cl(this.expirationTime).fromNow()}}this.isConnected&&this.isAccountSyncSupported&&this.state&&this.isSyncFailure()&&(this.logger.info(`Updating provider state for sync errors ${this.state} for ${this.type}`),this.errorText="accountConnection.accountSyncing.gameSyncFailed",this.errorArg="",this.inErrorState=!0,this.resyncReason=vd.syncFailed,"STEAM"===this.type&&(this.state===pl.SYNC_DENIED?(this.errorDialogUrl=this.settingsService.getLinksUrl(Yr.ni.STEAM_ACCOUNT_SETTINGS,this.localeService.getLocale()),this.resyncReason=vd.privateProfile,this.errorText="accountConnection.accountSyncing.warning",this.errorArg=`<a class="font-body2-link" href="${this.errorDialogUrl}">`):this.state===pl.PROFILE_NOT_CREATED&&(this.errorDialogUrl=`https://steamcommunity.com/profiles//${this.userId}`,this.errorText="accountConnection.accountSyncing.requirement",this.errorArg=`<a class="font-body2-link" href="${this.errorDialogUrl}">`,this.resyncReason=vd.profileNotCreated)),"UPLAY"===this.type&&this.state===pl.SYNC_DENIED&&(this.errorText="",this.showSyncDeniedReconnect=!0))}isSyncFailure(){return!this.state||this.state!==pl.SYNC_SUCCESS}getExpirationStatus(){return this.isExpired?ml.Expired:this.checkExpiration(this.expirations.now)?ml.ExpiresNow:this.checkExpiration(this.expirations.today)?ml.ExpiresToday:this.checkExpiration(this.expirations.soon)?ml.ExpiresSoon:ml.NotExpired}checkExpiration(Ke){return!!this.isExpired||this.expirationTime?.getTime()<Date.now()+Ke}onConnectStart(){this.logger.trace(xe.N_.UserGesture,"Connecting to your accounts"),this.inProgress=!0,this.reconnectInProgress=!1,this.hideOnboardingReconnect=!0}onConnectEnd(){this.inProgress=!1}onReconnectStart(Ke){this.logger.trace(xe.N_.UserGesture,"Reconnecting to your connected account"),this.reconnectReason=Ke?Bd.onboardingReconnect:this.showSyncDeniedReconnect&&"UPLAY"===this.type?Bd.syncDenied:Bd.reconnect,this.inProgress=!0,this.reconnectInProgress=!0,this.hideOnboardingReconnect=!0}onReconnectEnd(){this.inProgress=!1,this.reconnectInProgress=!1}onSyncStart(){this.inProgress=!0,this.syncInProgress=!0}onSyncEnd(){this.inProgress=!1,this.syncInProgress=!1}onResyncStart(){this.isResync=!0,this.logger.trace(xe.N_.UserGesture,"Resyncing to your connected account"),this.syncInProgress=!0,this.inProgress=!0}onResyncEnd(){this.isResync=!1,this.inProgress=!1,this.syncInProgress=!1}onDisconnectStart(){this.logger.trace(xe.N_.UserGesture,"Disconnecting from your account"),this.inProgress=!0,this.inProgressDisconnect=!0}onDisconnectEnd(){this.inProgress=!1,this.inProgressDisconnect=!1,this.inErrorState=!1,this.showReconnect=!1}}let gu=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye){this.appConfig=w,this.endpointFactory=Q,this.idmService=me,this.distributedtracingUtilService=Ye,this.logger=C.getLogger("ALSService");const{defaultRetries:bt,defaultTimeout:cn,exponentialBackoffMaxDelay:Wn,defaultTimeBetweenRetries:xi}=w.accountLinking;this.alsEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:bt,timeout:cn,exponentialBackoffMaxDelay:Wn,timeBetweenRetries:xi}})}createHeader(C){return{[go.SA.authorization]:`Bearer ${C.token}`}}createRequestOptions(C={},w={},Q,me,Ye=!1){return{headers:Q?this.createHeader(Q):{},params:w,body:C,reportRequestData:{reportSuccessTelemetry:"true",originalService:Pt.Uu$.ALS,serviceUseCase:me},includeFullResponse:Ye}}get redirectFinishedUrl(){return this.appConfig.accountLinking.redirectFinishedUrl}providerSync(C,w,Q){const me=this.createRequestOptions({},{},w,Pt.OOF.LibrarySync,!0),Ye=this.buildApiUrl("sync/").concat(C),bt=this.alsEndpoint.post(Ye,me);return this.distributedtracingUtilService.handleHttpEndpointSpan(bt,me,Pr.pB.AlsSync,Q).pipe((0,wt.T)(cn=>(this.logger.info("Syncing result",cn),202===cn?.status)),(0,Un.W)(cn=>(this.logger.error(`Error syncing ${C} account provider: `,cn),(0,it.of)(!1))))}buildApiUrl(C){return this.appConfig.accountLinking?.server+"/v1/"+C}getLoginUrl(C,w,Q,me=!1){let Ye=this.appConfig.accountLinking.redirectUrl;return this.appConfig.accountLinking.redirectUrlIsRelative&&(Ye=window.location.origin+Ye),w&&w>0&&(Ye=Ye.replace("{portnumber}",w.toString())),this.idmService.getAuthToken(me,Q).pipe((0,nt.ZZ)(bt=>{const cn=this.createRequestOptions({},{platform:C,redirect_uri:Ye,client_id:this.appConfig.accountLinking.clientId},bt,Pt.OOF.GetOAuthURL),Wn=this.alsEndpoint.get(this.buildApiUrl("login_url"),cn);return this.distributedtracingUtilService.handleHttpEndpointSpan(Wn,cn,Pr.pB.AlsGetLoginUrl,Q).pipe((0,wt.T)(xi=>xi.login_url))}),(0,Un.W)(bt=>this.idmService.handleAuthError(bt,me,this.getLoginUrl.bind(this),C,w,Q)))}postLoginUrl(C,w,Q=!1){return this.idmService.getAuthToken(Q,w).pipe((0,nt.ZZ)(me=>{const Ye=this.createRequestOptions({platform:C,client_id:this.appConfig.accountLinking.clientId},{},me,Pt.OOF.GetOAuthURL),bt=this.alsEndpoint.post(this.buildApiUrl("login_url"),Ye);return this.distributedtracingUtilService.handleHttpEndpointSpan(bt,Ye,Pr.pB.AlsPostLoginUrl,w)}),(0,Un.W)(me=>this.idmService.handleAuthError(me,Q,this.postLoginUrl.bind(this),C,w)))}postToken(C,w){const Q=this.createRequestOptions({client_id:this.appConfig.accountLinking.clientId,device_code:C},{},void 0,Pt.OOF.Other),me=this.alsEndpoint.post(this.buildApiUrl("token"),Q);return this.distributedtracingUtilService.handleHttpEndpointSpan(me,Q,Pr.pB.AlsPostToken,w)}disconnect(C,w,Q,me=!1){return this.idmService.getAuthToken(me,Q).pipe((0,nt.ZZ)(Ye=>{const bt=this.createRequestOptions({},{},Ye,Pt.OOF.UnlinkAccount),cn=this.alsEndpoint.delete(this.buildApiUrl(`linking/${w}`),bt);return this.distributedtracingUtilService.handleHttpEndpointSpan(cn,bt,Pr.pB.AlsDeleteLinking,Q)}),(0,mt.u)(!0),(0,Un.W)(Ye=>this.idmService.handleAuthError(Ye,me,this.disconnect.bind(this),C,w,Q)),(0,Un.W)(Ye=>(this.logger.error(`error disconnecting from ${C} account provider: `,Ye),(0,it.of)(!0))))}postRequestToSync(C,w,Q=!1){return this.idmService.getAuthToken(Q,w).pipe((0,nt.ZZ)(me=>this.providerSync(C,me,w)),(0,Un.W)(me=>(this.logger.error("Error while syncing",me),this.idmService.handleAuthError(me,Q,this.postRequestToSync.bind(this),C,w))),(0,Un.W)(()=>(0,it.of)(!1)))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Mi.Vk),c.KVO(go.t),c.KVO(Ai.k_),c.KVO(Pr.Z1))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();const Ig="timeout_";let Zl=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls,ws,xl,Au,Fh,Dg){this.bridgeService=w,this.appConfig=Q,this.idmService=me,this.telemetryService=Ye,this.localeService=bt,this.settingsService=cn,this.distributedtracingUtilService=Wn,this.dialogService=xi,this.lcarsService=Yi,this.translateService=fr,this.refreshUiService=Gr,this.router=ao,this.customLocationService=Eo,this.guestModeHelperService=ls,this.alsSdkService=ws,this.sharedStorageService=xl,this.snackbar=Au,this.telemetryUtilService=Fh,this.dialog=Dg,this.showBorderOnSettingsIntegration=!1,this.ctaVisibilityPreference=new Be.m(1),this.providerOperationSub=new p.B7,this.triggerLibraryRefreshSub=new p.B7,this.removeOnboarding=new p.B7,this.isBrowserClient=!1,this.initialized=!1,this.accountLinkingEnabled=!1,this.isInitalized=!1,this.checkIfGamesAutoSynced=!1,this.accountProviders=new Map,this.accountLinkingDataSubject=new Be.m(1),this.pendingGamesListEnablement=null,this.launchCTA=new Be.m(1),this.logger=C.getLogger("OwnershipSyncService"),this.needsWindowWorkaround=!!Q?.featureEnablement?.loginPopupBlockerWorkaround,this.isBrowserClient=l.zk.isBrowserPlatform(),this.linkedAccountChangedNotification$=this.getLinkChangeNotificationData().pipe((0,gc.u)())}get shouldShowCTADefault(){return!0}get waitForAccountLinkingData(){return this.accountLinkingDataSubject.asObservable()}get isAccountLinkingEnabled(){let C=!1;return this.accountProviders.forEach(w=>{w.isAccountLinkingSupported&&(C=!0)}),this.accountLinkingEnabled&&C}initialize(){this.initialized||(this.idmService.accountStatusChanged.subscribe(C=>{this.logger.info("Account status changed, updating account linking data"),this.accountProviders?.forEach(w=>{w.showOnboardingReconnect&&!C.isAuthenticated&&this.removeOnboarding.next({providerType:w.type,state:!0})}),this.pendingGamesListEnablement?.unsubscribe(),this.cancelPendingCTA(),C.isAuthenticated&&this.initializeAccountConnections().subscribe(()=>{this.initExpirationCheck(),this.initialized=!0},w=>{this.logger.error("Error in initialization of ALS/Ownership service",w)})}),this.readShowIntegrationTilePreference().pipe((0,g.s)(1)).subscribe(C=>this.ctaVisibilityPreference.next(C),Mt.l))}notifyLibraryUpdated(){this.libraryUpdated$?.next()}startWaitingForLibraryUpdate(){this.libraryUpdated$?.complete(),this.libraryUpdated$=null,this.libraryUpdated$=new Be.m(1)}getLinkChangeNotificationData(){return this.refreshUiService.linkedAccountRefresh$.pipe((0,wt.T)(C=>(this.logger.info("Refresh ALS triggered",C?.source),C?.metadata)))}getSyncChangeNotificationData(){return this.refreshUiService.syncChangeRefresh$.pipe((0,wt.T)(C=>(this.logger.info("Refresh sync change triggered",C?.source),C?.metadata)))}initializeAccountConnections(){return this.logger.info("Initializing account connections"),this.accountLinkingEnabled=!1,(0,Vt.zV)([this.lcarsService.getStaticAppData(),this.getUserAccountData()]).pipe((0,wt.T)(([C,w])=>(this.processLcarsResponse(C.appStoreDefinitions,w),!0)),(0,Un.W)(C=>(this.logger.error("Failure querying data from LCARS: ",C),(0,it.of)(!1))))}getUserAccountData(){return(0,X.h)(this.lcarsService.getLatestUserAccountInfo().pipe((0,g.s)(1)),this.lcarsService.onUserAccountInfoUpdated$).pipe((0,wt.T)(w=>{const Q=w.userAccount.storesData;return Q.length?Q:[]}),(0,Un.W)(w=>(this.logger.error("Error in fetching user account info:",w),(0,it.of)([]))))}sortFeaturesData(C){const w=[];return Object.values(No).forEach(Q=>{const me=C.findIndex(Ye=>Ye.__typename===Q);-1!==me&&w.push(C[me])}),w}processLcarsResponse(C,w){C?.length&&(C.filter(Q=>!qp.includes(Q.store)).forEach(Q=>{const me=Q.store;Q.features=this.sortFeaturesData(Q.features),Q.features?.forEach(Ye=>{const bt=Q.accountLinkingMetadata.supportedVariantIds||[];if(Object.values(No).includes(Ye.__typename)&&Ye.supported){this.logger.info(`Processing LCARS data, digital store for ${Q.store}:`,Q);const cn=this.getStoreSpecificUserAccountData(Q.store,w);this.logger.info(`StoresData for ${Q.store}:`,cn),Ye.__typename===No.AccountLinkingSso&&(this.accountLinkingEnabled=!0),this.accountProviders.has(me)?(this.logger.info("Existing provider, updating userAccount info",me),this.accountProviders.get(me).userAccountInfo=cn):(this.logger.info("Setting provider",me),this.accountProviders.set(me,new Iu(me,this.logger,this.appConfig,this.telemetryService,this.settingsService,this.localeService,this.translateService,bt,Q,cn)))}})}),this.updateAccountConnections(!1,Uc.InitialFetchDone),this.isInitalized||(this.logger.info("Register for account linking push notifications"),this.registerAccountLinkingServiceNotifications(),this.isInitalized=!0),this.accountLinkingDataSubject.next(!0),this.accountLinkingEnabled&&this.checkAccountExpiration())}getStoreSpecificUserAccountData(C,w){return w.find(Q=>Q.store===C)??null}updateAccountConnections(C,w,Q=!1,me){me?(me.updateLinkTime(),this.logger.info(`Updating account info from lcars for ${me.platform}`),me.updateProviderState(),this.onProviderDataUpdate(me.type,w,C,Q)):this.accountProviders.forEach(Ye=>{Ye.updateLinkTime(),this.logger.info(`Updating account info from lcars for ${Ye.platform}`),Ye.updateProviderState(),this.onProviderDataUpdate(Ye.type,w,C,Q)})}initExpirationCheck(){(0,z.Y)(36e5).pipe((0,ge.p)(()=>this.accountLinkingEnabled)).subscribe(()=>{this.checkAccountExpiration()})}checkAccountExpiration(){this.accountProviders.forEach(C=>{if(C.isAccountLinkingSsoAvailable&&C.isConnected){const w=C.getExpirationStatus();w!==ml.NotExpired&&(this.logger.info(`Account Linking expired state ${w} for ${C.type}`),C.updateProviderState(),this.providerOperationSub.next({provider:C.type,operation:Uc.Expiring}))}})}registerAccountLinkingServiceNotifications(){this.linkedAccountChangedNotification$.pipe((0,_i.n)(C=>this.updateLinkedAccount(C))).subscribe(),this.getSyncChangeNotificationData().pipe((0,on.M)(C=>this.updateSyncAccount(C))).subscribe()}updateSyncAccount(C){if(C?.platformSyncInfo){this.logger.info("Refresh sync data as per push notification");const w=this.accountProviders.get(C.platformSyncInfo.platformCode);w?(w.syncData={totalNumberOfSyncedGfnGames:C.platformSyncInfo.syncGameCount,syncState:C.platformSyncInfo.syncState||pl.UNKNOWN,syncDate:C.platformSyncInfo.syncDate},this.updateAccountConnections(!0,Uc.SyncingDone,w.isResync,w),w.onSyncEnd(),w.isSyncScheduled=!1):this.logger.error("Missing provider in notification data",C.platformSyncInfo.platformCode)}else this.logger.info("Refresh sync data for conditional triggers"),this.syncAccountLinking(!1).pipe((0,g.s)(1)).subscribe()}updateLinkedAccount(C){if(C){if(!C?.accountLinkedInfo)return this.logger.error("Missing accountLinkedInfo field in notification",C),(0,it.of)(!1);const w=C.accountLinkedInfo.accountType;if(!w)return this.logger.error(`Unknown accountType ${C.accountLinkedInfo.accountType} in notification`),(0,it.of)(!1);const Q=this.accountProviders.get(w);if(!Q)return this.logger.error(`Unknown accountType ${C.accountLinkedInfo.accountType} in notification`),(0,it.of)(!1);if(Q.isSyncScheduled)return this.logger.info("Ignoring push notification, as a sync is scheduled for the provider"),(0,it.of)(!1);const me=C.accountLinkedInfo.linked;return me||!me&&Q.loggedIn?(this.logger.info("Account syncing triggered due to push notification"),this.syncAccountLinking(!1,Q).pipe((0,on.M)(()=>this.checkAccountExpiration()),(0,g.s)(1))):(0,it.of)(!0)}return this.logger.info("Refresh ALS for conditional triggers"),this.syncAccountLinking(!1).pipe((0,on.M)(()=>this.checkAccountExpiration()),(0,g.s)(1))}syncAccountLinking(C,w,Q=!1){return this.logger.info(`Syncing Account Linking data for ${w?.type}`),this.lcarsService.getLatestUserAccountInfo().pipe((0,wt.T)(me=>(this.logger.info(`User Account data for ${w?.type}: `,me),w?w.userAccountInfo=this.getStoreSpecificUserAccountData(w.digitalStoreInfo.store,me.userAccount.storesData):this.accountProviders.forEach(Ye=>{Ye.userAccountInfo=this.getStoreSpecificUserAccountData(Ye.digitalStoreInfo.store,me.userAccount.storesData)}),this.updateAccountConnections(C,Uc.SyncingDone,Q,w),!0)),(0,Un.W)(me=>(this.logger.error("Error syncing account linking providers: ",me),(0,it.of)(!1))))}waitForAl(){return this.guestModeHelperService.isGuestMode?(0,it.of)(!0):this.accountLinkingDataSubject.asObservable()}isSyncingOrLinkingSupported(C,w){return this.waitForAl().pipe((0,g.s)(1),(0,wt.T)(()=>{this.logger.info(`Checking account linking/syncing availability for game ${w} on ${C}`),this.initialized||this.logger.warn("Attempting to check availability for game before initialization is complete..");const Q=this.accountProviders?.get(C);return!(!Q||!Q.isAccountSyncSupported&&(!Q.isAccountLinkingSupported||Q.gamesList.length&&!Q.gamesList.includes(w)))}))}getValueProp(C){const w=this.accountProviders.get(C);return w?w.digitalStoreInfo.features.filter(me=>me.displayProposition).map(me=>({matIcon:me.supported?"check_circle":"cancel",text:me.displayProposition})):null}getAccountLinkingStateForGame(C="",w){const Q=w.toString();return this.waitForAl().pipe((0,g.s)(1),(0,wt.T)(()=>{this.logger.info(`Checking account linking availability for game ${w} on ${C}`),this.initialized||this.logger.warn("Attempting to check against the list of account-linking availability for game before initialization is complete. Cloud variables may not have been loaded.");const me=this.accountProviders.get(C);if(!me||!me.isAccountLinkingSupported)return this.logger.info(`Account linking not available for ${C}`),{isEnabled:!1,isRequired:!1};const Ye=me;return!Ye.gamesList?.length||Ye.gamesList.includes(Q)?(this.logger.info(`Account linking is available for ${C} and for the game, ${w}`),{isEnabled:!0,isRequired:!!Ye?.isAccountLinkingSsoRequired}):(this.logger.info(`Account linking is not available for ${C} and for the game, ${w}`),{isEnabled:!1,isRequired:!1})}))}isAccountLinkEnabledForGame(C="",w){const Q=w.toString();return this.waitForAl().pipe((0,g.s)(1),(0,wt.T)(()=>{this.logger.info(`Checking account linking enablement for game ${w} on ${C}`),this.initialized||this.logger.warn("Attempting to check against the list of account-linking enabled games before initialization is complete. Cloud variables may not have been loaded.");const me=this.accountProviders.get(C);if(!me||!me.isAccountLinkingSupported)return this.logger.info(`Account linking not provided for ${C}`),!1;const Ye=me;return!Ye.gamesList?.length||Ye.gamesList.includes(Q)?(this.logger.info("Account linking was enabled for the game, "+(Ye.isConnected&&!Ye.isExpired?"and account was linked and not expired":"but account was not linked or expired")),Ye.isConnected&&!Ye.isExpired):(this.logger.info(`Account linking is not available for ${C} and the game, ${Q}`),!1)}))}isAccountLinked(C=""){if(this.isAccountLinkingAvailable(C)){const w=this.accountProviders.get(C);return w?.isConnected&&!w?.isExpired}return!1}isAccountSyncedOrLinkComplete(C){const w=this.accountProviders.get(C);return w?.isConnected||w?.isSynced}isAccountLinkingAvailable(C=""){const w=this.accountProviders.get(C);return!(!w||!w.isAccountLinkingSupported)}resync(C,w){if(!this.initialized)return(0,it.of)(!1);const Q=this.accountProviders.get(C);return Q?(Q.onResyncStart(),this.sync(C,!0,!1,w)):(0,it.of)(!0)}connect(C,w,Q=!1,me=!1,Ye=!1,bt,cn=!1){const Wn=this.accountProviders.get(C),xi=Wn.name;return this.connectFlow(C,Q,me,bt,cn).pipe((0,nt.ZZ)(Yi=>Yi?(this.logger.info("Account linking succeed, showing toast message"),this.handleConnectLoginSuccess(Wn,xi,w,Q,Ye,bt)):(this.logger.error("Account linking failed, showing error dialog"),this.dialogService.openAccountLinkingErrorDialog(xi,cn))))}connectFlow(C,w=!1,Q=!1,me,Ye=!1){if(!this.initialized)return(0,it.of)(!1);const bt=this.accountProviders.get(C);if(bt){const cn=this.distributedtracingUtilService.startSpan(Pr.pB.AlsUserLogin,me);return this.distributedtracingUtilService.setSpanAttribute(cn,Pr.NS.AccountLinkingProvider,C),w?(bt.onReconnectStart(Q),this.removeOnboarding.next({providerType:C,state:!0})):bt.onConnectStart(),(this.appConfig.featureEnablement?.openLinksOffDevice?this.doLoginOffDevice(bt,cn,Ye):this.doLogin(bt,C,w,cn,Ye)).pipe((0,Un.W)(Yi=>(this.logger.error("Error logging in: ",Yi),(0,it.of)(!1))),(0,on.M)(Yi=>{Yi?(this.logger.info("Account linking succeed"),this.distributedtracingUtilService.setSpanAttribute(cn,Pr.NS.Error,!1)):(this.distributedtracingUtilService.setSpanAttribute(cn,Pr.NS.Error,!0),this.logger.error("Account linking failed"),this.providerOperationSub.next({provider:C,operation:Uc.LinkingError}))}),(0,Oi.j)(()=>{cn&&this.distributedtracingUtilService.closeSpan(cn),w?bt.onReconnectEnd():bt.onConnectEnd()}))}return(0,it.of)(!1)}handleConnectLoginSuccess(C,w,Q,me,Ye=!1,bt){let cn;return Ye&&C.isAccountSyncingSupported?this.syncInline(C,Q,!1):(Ye?(this.logger.info("Opening inline connect success dialog"),cn=this.dialogService.openInLineConnectSuccessDialog(w,C.persona,me)):cn=this.translateService.get(me?"accountConnection.accountLinking.accountReconnected":"accountConnection.accountLinking.accountConnected",{arg:w}).pipe((0,on.M)(xi=>{this.logger.info("Showing connection success toast"),this.snackbar.open(xi,"",{duration:5e3,horizontalPosition:"left",verticalPosition:"bottom",panelClass:["nv-hig"]})})),cn.pipe((0,wt.T)(()=>C.isAccountSyncingSupported?(this.sync(C.type,!1,Ye,bt).pipe((0,g.s)(1)).subscribe(Mt.l,Wn=>this.logger.error("Error occurred while syncing",Wn)),!0):(C.updateProviderState(),this.logger.info("Connection successful, provider does not support syncing"),!0))))}disconnect(C,w=!1,Q){if(!this.initialized)return(0,it.of)(!1);this.logger.info(`Disconnecting account "${C}"`);const me=this.accountProviders.get(C);me.showOnboardingReconnect&&this.removeOnboarding.next({providerType:C,state:!0}),me.onDisconnectStart();const Ye=me.isAccountSyncSupported;return Ye&&this.startWaitingForLibraryUpdate(),this.alsSdkService.disconnect(C,me.platform,Q).pipe((0,nt.ZZ)(()=>{if(!Ye||w)return this.logger.info("Not proceeding to wait for library change trigger"),(0,it.of)(null);const bt=this.appConfig?.accountLinking?.disconnectWaitInterval,cn=this.appConfig?.accountLinking?.defaultDisconnectWaitInterval,Wn=bt?bt[Ig+me.type.toLowerCase()]??cn:cn;return this.handleLibraryRefreshOnSyncChange(Wn,me)}),(0,wt.T)(()=>(this.handleDisconnectSuccess(C,!w),!0)),(0,Un.W)(()=>(me.onDisconnectEnd(),this.logger.error("Disconnecting account error"),(0,it.of)(!1))))}handleLibraryRefreshOnSyncChange(C,w,Q=!1,me=null){const Ye=new J.t(!1),bt=this.refreshUiService.libraryRefresh$.pipe((0,g.s)(1)).subscribe(cn=>Ye.next(!0));return(0,jn.O)(C).pipe((0,nt.ZZ)(()=>null!==me?me:(0,it.of)(null)),(0,nt.ZZ)(cn=>null===cn||cn?(this.logger.info("Not refreshing userAccount"),(0,it.of)(null)):(this.logger.info("Refreshing user account stream after waiting"),this.syncAccountLinking(!0,w,Q))),(0,nt.ZZ)(cn=>(null!==cn&&(w.onSyncEnd(),w.onResyncEnd(),w.isSyncScheduled=!1),Ye)),(0,nt.ZZ)(cn=>Ye),(0,on.M)(cn=>{cn?this.logger.info("Received library refresh notification after account disconnect, not triggering manual refresh"):(this.logger.info("Did not receive library refresh notification in time, triggering manual refresh"),this.triggerLibraryRefreshSub.next(!0))}),(0,nt.ZZ)(cn=>this.libraryUpdated$?this.libraryUpdated$.asObservable().pipe((0,g.s)(1),(0,mt.u)(cn),(0,ud.o)(this.appConfig.accountLinking.inlineSyncMaxWaitForLibraryUpdate,(0,it.of)(cn))):(0,it.of)(cn)),(0,Oi.j)(()=>{bt?.unsubscribe(),Ye?.complete()}))}reconnect(C,w,Q,me=!1){return this.needsWindowWorkaround&&(this.blankWindow=window.open("","_blank")),this.disconnect(C,!0,Q).pipe((0,nt.ZZ)(Ye=>Ye?this.connect(C,null,!0,w,!1,Q,me):(0,it.of)(Ye)),(0,on.M)(()=>{this.blankWindow?.close(),this.blankWindow=null}))}handleDisconnectSuccess(C,w=!0){const Q=this.accountProviders.get(C);w&&this.sendOwnershipDisconnectTelemetry(C),Q.userAccountInfo=null,this.providerOperationSub.next({provider:C,operation:Uc.Disconnected}),Q.onDisconnectEnd()}accountSyncLibraryRefresh(C,w=!1){C.isSyncScheduled=!0;const Q=new J.t(!1),me=this.refreshUiService.syncChangeRefresh$.pipe((0,g.s)(1)).subscribe(Wn=>Q.next(!0)),Ye=this.appConfig?.accountLinking?.syncWaitInterval,bt=this.appConfig?.accountLinking?.defaultSyncWaitInterval,cn=Ye?Ye[Ig+C.type.toLowerCase()]??bt:bt;return this.handleLibraryRefreshOnSyncChange(cn,C,w,Q).pipe((0,wt.T)(Wn=>!C.isSyncFailure()),(0,Oi.j)(()=>{me?.unsubscribe(),Q?.complete()}))}sync(C,w=!1,Q=!1,me){if(this.logger.info("Calling asynchronous sync for",C),!this.initialized)return(0,it.of)(!1);const Ye=this.accountProviders.get(C);if(!Ye)return(0,it.of)(!1);let bt;Ye.onSyncStart(),Ye.isAccountSyncingSupported&&this.startWaitingForLibraryUpdate();const cn=this.alsSdkService.postRequestToSync(C,me),Wn=this.accountSyncLibraryRefresh(Ye,w);return bt=Q?this.dialogService.openInlineSyncInProgressDialog(cn,Wn,Ye.name):cn.pipe((0,nt.ZZ)(xi=>(this.logger.info("Sync result",xi),xi?Wn:(Ye.state=pl.UNKNOWN,(0,it.of)(xi))))),bt.pipe((0,on.M)(xi=>{xi||(Ye.onSyncEnd(),Ye.onResyncEnd(),this.onProviderDataUpdate(Ye.type,Uc.SyncingError,!0,w))}))}onLibraryRefreshRequested(){return this.triggerLibraryRefreshSub.asObservable()}providerOperationUpdate(){return this.providerOperationSub.asObservable()}onboardingStatusChange(){return this.removeOnboarding.asObservable()}getEnabledAccountProviders(){return[...this.accountProviders.values()].sort((C,w)=>C.digitalStoreInfo.sortOrder-w.digitalStoreInfo.sortOrder)}getGameLaunchInfo(C){const w=this.accountProviders.get(C);if(!w)return null;const Q=this.getValueProp(C);return{isAccountLinked:w.isAccountLinked,expirationStatus:w.getExpirationStatus(),isAccountLinkingSsoRequired:w.isAccountLinkingSsoRequired,providerType:C,storeName:w.name,isAccountLinkingSsoAvailable:w.isAccountLinkingSsoAvailable,descriptionIconList:Q,showOnboardingReconnect:w.showOnboardingReconnect}}getNotificationInfo(C){const w=this.accountProviders.get(C);return w?{loggedIn:w.loggedIn,isAccountLinkingSsoAvailable:w.isAccountLinkingSsoAvailable,icon:w.icon,expirationStatus:w.getExpirationStatus(),showOnboardingReconnect:w.showOnboardingReconnect,storeName:w.name}:null}getAccountLinkingAnalyticsInfo(){const C=[];return this.accountProviders.forEach(w=>{C.push({isAccountSyncSupported:w.isAccountSyncSupported,isSynced:w.isSynced,isAccountLinkingSsoAvailable:w.isAccountLinkingSsoAvailable,isAccountLinked:w.isAccountLinked,providerType:w.type})}),C}parseLoginResult(C){if(C?.platform)return this.logger.info(`Account Linking login successful for ${C.platform}. Expires in ${C.expires_in}`),this.updateUserAccountPostLogin(C),C;if(C){if(C.error)throw new Error(C.error_description??C.error);const w=new URL(C),Q={display_name:w.searchParams.get("display_name"),expires_in:w.searchParams.get("expires_in"),platform:w.searchParams.get("platform"),error:w.searchParams.get("error"),error_description:w.searchParams.get("error_description")};if(Q.error)throw new Error(Q.error_description??Q.error);return this.logger.info(`Account Linking login successful for ${Q.platform}. Expires in ${Q.expires_in}`),this.updateUserAccountPostLogin(Q),Q}return this.logger.info("Account Linking login response invalid."),{}}updateUserAccountPostLogin(C){const Q=this.accountProviders.get(C.platform);Q&&(Q.userAccountInfo={store:C.platform,accountLinkingData:{expiresIn:C.expires_in,userDisplayName:C.display_name}},Q.updateLinkTime())}get getCTAVisibilityPreference$(){return this.ctaVisibilityPreference.asObservable()}updateIntegrationTileVisibilityPreference(C){this.ctaVisibilityPreference.next(C),this.writeShowIntegrationTilePreference(C)}getCTACountInfo(){const{totalValidConnected:C,totalAvailableProviders:w}=this.getConnectedAccountInfo();return{connectedCount:C.length,availableCount:w.length}}getConnectedAccountInfo(){const C=Array.from(this.accountProviders.values());return{totalValidConnected:C.filter(Q=>!Q.isAccountLinkingSupported&&!Q.isAccountSyncingSupported||(Q.isAccountLinked&&!Q.isExpired||Q.isSynced)),totalAvailableProviders:C}}readShowIntegrationTilePreference(){return this.idmService.cachedUser.pipe((0,nt.ZZ)(C=>this.sharedStorageService.readBlock("ALSPreference_"+C.data.userId)),(0,wt.T)(C=>null==C?.showIntegrationTile?this.shouldShowCTADefault:C.showIntegrationTile),(0,Un.W)(C=>(0,it.of)(this.shouldShowCTADefault)))}writeShowIntegrationTilePreference(C){this.idmService.cachedUser.pipe((0,nt.ZZ)(w=>(0,qd.p)([(0,it.of)(w.data.userId),this.sharedStorageService.readBlock("ALSPreference_"+w.data.userId)])),(0,nt.ZZ)(([w,Q])=>(Q.showIntegrationTile=C,this.sharedStorageService.writeBlock("ALSPreference_"+w,Q)))).subscribe(Mt.l,Mt.l)}shouldHighlightSettingsIntegration(){return this.showBorderOnSettingsIntegration}triggerHighlightOnSettingsIntegration(){this.showBorderOnSettingsIntegration=!0}markSettingsIntegrationRenderComplete(){this.showBorderOnSettingsIntegration=!1}onCancelCTA(){return this.launchCTA.asObservable()}cancelPendingCTA(){this.launchCTA.next(!0),this.launchCTA.complete(),this.launchCTA=new Be.m(1)}openExpirationDialog(C,w=!1,Q=!1,me=!1){const Ye=this.getGameLaunchInfo(C);return this.logger.info("Game launch info:",Ye),this.dialogService.openAccountLinkingExpirationDialog({isAccountLinkingSsoRequired:Ye.isAccountLinkingSsoRequired,expirationStatus:Ye.expirationStatus,providerType:Ye.providerType,storeName:Ye.storeName},Ye.isAccountLinkingSsoRequired,w,Q,me)}openAccountLinkingDialog(C,w,Q=!1,me=!1,Ye=!1){const bt=this.getGameLaunchInfo(C.appStore);this.logger.info("Game launch info:",bt);let cn=Pt.duU.Account_Link_Required;const Wn=bt.isAccountLinked,xi=bt.showOnboardingReconnect,Yi=bt.expirationStatus,fr=Yi===ml.Expired||Yi===ml.ExpiresNow;if(Wn&&fr)return cn=ml.Expired?Pt.duU.Account_Link_Expired:Pt.duU.Account_Link_Expires_Soon,this.telemetryUtilService.sendPopUpDialogShownEvent(cn),this.openExpirationDialog(C.appStore,!1,me,Ye).pipe((0,nt.ZZ)(Gr=>{let ao=!w;const Eo=Gr===Ss.GoToConnection;return Eo&&(ao=!1,this.dialog.closeAll(),this.navigateToAccountsSection()),Gr===Ss.Reconnect?(this.telemetryUtilService.sendPopUpDialogClosedEvent(cn,Pt.HBm.Proceed_Connect),this.proceedToConnect(C,!0,xi,Q,Ye)):(this.telemetryUtilService.sendPopUpDialogClosedEvent(cn,Eo?Pt.HBm.Goto_Settings:Pt.HBm.Dialog_Closed),(0,it.of)({returnValue:ao,dialogShown:!0}))}));if(!Wn||Wn&&!fr&&xi){const Gr=C.accountLinkingStoreLabel,ao=Gr?Gr+"_":"";return this.idmService.cachedUser.pipe((0,nt.ZZ)(Eo=>this.sharedStorageService.readBlock("accountInlineLinking_"+ao+Eo.data.userId)),(0,nt.ZZ)(Eo=>{if(this.logger.info("Account linking data",Eo),!Eo.hideInlineAccountLinkingDialog||bt.isAccountLinkingSsoRequired){const ls={isAccountLinkingSsoRequired:bt.isAccountLinkingSsoRequired,descriptionIconList:bt.descriptionIconList,gameInfo:C,showOnboardingReconnect:bt.showOnboardingReconnect};return this.telemetryUtilService.sendPopUpDialogShownEvent(cn),this.dialogService.showInLineLinkDialog(ls,!0).pipe((0,nt.ZZ)(ws=>ws.dialogAction===Ss.Connect?(this.telemetryUtilService.sendPopUpDialogClosedEvent(cn,Pt.HBm.Proceed_Connect),this.proceedToConnect(C,!1,xi,Q,Ye)):(this.telemetryUtilService.sendPopUpDialogClosedEvent(cn,Pt.HBm.Dialog_Closed),ws.checkBoxState&&this.onInlineLinkDialogDismiss(ao),(0,it.of)({returnValue:!w,dialogShown:!0}))))}return(0,it.of)({returnValue:!0,dialogShown:!1})}))}return(0,it.of)({returnValue:!0,dialogShown:!1})}proceedToConnect(C,w,Q,me,Ye){return this.connect(C.appStore,C,w,Q,me,void 0,Ye).pipe((0,nt.ZZ)(bt=>(0,it.of)({returnValue:bt,dialogShown:!0})))}onProviderDataUpdate(C,w,Q,me){this.providerOperationSub.next({provider:C,operation:w}),Q&&this.sendOwnershipSyncTelemetry(me,C)}doLogin(C,w,Q,me,Ye=!1){let bt;return bt=this.isBrowserClient?this.doLoginBrowser(C,me):this.doLoginNative(C,me),this.dialogService.openAccountLinkingConnectingDialog(bt,Q,Ye).pipe((0,nt.ZZ)(cn=>cn?(this.logger.info("Data received from AL service: ",cn),this.onProviderDataUpdate(w,Uc.LinkingDone,!C.isAccountSyncSupported,!1),(0,it.of)(!0)):(0,it.of)(!1)))}doLoginOffDevice(C,w,Q=!1){const me=this.alsSdkService.postLoginUrl(C.platform,w).pipe((0,Bo.t)(1)),Ye=new Be.m(1);let bt;const cn=me.pipe((0,on.M)(xi=>{bt=this.linkedAccountChangedNotification$.pipe((0,ge.p)(Yi=>!!Yi&&(Yi.accountLinkedInfo.accountType===C.type&&Yi.accountLinkedInfo.linked)),(0,g.s)(1)).subscribe(()=>Ye.next())}),(0,nt.ZZ)(xi=>{const Yi=Math.max(1,Math.floor(xi.expires_in/xi.interval)-1);return this.alsSdkService.postToken(xi.device_code,w).pipe((0,Hd.l)(fr=>fr.pipe((0,nt.ZZ)((Gr,ao)=>{if(ao+1>Yi)return this.logger.error("Off device login failed because number of retry has reached maximal value"),(0,Ut.$)(Gr);const ls=Gr.rawResponse;return 400===Gr.status&&"authorization_pending"===ls?.error?.error?(0,jn.O)(1e3*xi.interval):void 0}))))}),(0,nt.ZZ)(xi=>{const fr=(0,jn.O)(this.appConfig.accountLinking?.offDeviceNotificationTimeout??3e4).pipe((0,nt.ZZ)(()=>this.syncAccountLinking(!0,C)));return(0,rr.O4)(Ye.asObservable(),fr).pipe((0,g.s)(1),(0,mt.u)(!0))})),Wn=me.pipe((0,wt.T)(xi=>({userCode:xi.user_code,verificationUri:xi.verification_uri,verificationUriComplete:xi.verification_uri_complete})));return this.dialogService.openOffDeviceAccountLinkingDialog(cn,Wn,Q).pipe((0,on.M)(xi=>{bt?.unsubscribe(),Ye?.complete()}))}doLoginBrowser(C,w){let Q;this.blankWindow?(Q=this.blankWindow,this.blankWindow=null):Q=window.open("","_blank");const me=this.alsSdkService.getLoginUrl(C.type.toUpperCase(),void 0,w).pipe((0,nt.ZZ)(bt=>(Q.location.href=bt,(0,re.R)(window,"message"))),(0,ge.p)(bt=>this.validateMessageEvent(bt)),(0,wt.T)(bt=>this.getOAuthLoginData(bt)),(0,wt.T)(bt=>this.parseLoginResult(bt)),(0,wt.T)(bt=>{const cn=new URL(this.alsSdkService.redirectFinishedUrl);return cn.searchParams.append("platform",C.platform),cn.searchParams.append("ui_locales",this.localeService.getLocale()),bt.display_name&&cn.searchParams.append("display_name",bt.display_name),Q.location.href=cn.href,bt}),(0,Un.W)(bt=>{this.logger.error("error retrieving login url ",bt.message);const cn=new URL(this.alsSdkService.redirectFinishedUrl);return cn.searchParams.append("platform",C.platform),cn.searchParams.append("ui_locales",this.localeService.getLocale()),cn.searchParams.append("error","accountlink_fail"),Q.location.href=cn.href,(0,it.of)("")})),Ye=(0,z.Y)(500).pipe((0,ge.p)(()=>Q.closed),(0,mt.u)(""),(0,g.s)(1));return(0,rr.O4)(Ye,me)}doLoginNative(C,w){let Q=this.appConfig.starfleet?.portNumbers;0===Q.length&&(Q=[4444]);const me=new p.B7,Ye=new p.B7;return this.bridgeService.executeCommand(Qe.Ts.Common.Httpserver.StartHttpServer,{ports:Q,redirectUrl:"",redirectParams:[]}).pipe((0,nt.ZZ)(bt=>{if("httpRequest"===bt?.callbackReason){const cn=this.parseLoginResult(bt.url),Wn=[`ui_locales=${this.localeService.getLocale()}`,`platform=${C.platform}`];return cn.display_name&&Wn.push(`display_name=${cn.display_name}`),this.bridgeService.executeCommand(Qe.Ts.Common.Httpserver.SendRedirectResponse,{redirectUrl:this.alsSdkService.redirectFinishedUrl,redirectParams:Wn}).pipe((0,on.M)(()=>{Ye.next(cn),Ye.complete()}))}return"httpRequestAborted"===bt?.callbackReason?(0,it.of)(!0).pipe((0,on.M)(()=>{Ye.next(),Ye.complete()})):"serverCreated"===bt?.callbackReason?(this.logger.info("HTTP server port is: ",bt.portNumber),me.next(bt.portNumber),(0,it.of)(!0)):(0,Ut.$)("Error in HTTP server response for account login")}),(0,Un.W)(bt=>(this.logger.error("Error creating HTTP server for account login",bt),this.bridgeService.executeCommand(Qe.Ts.Common.Httpserver.SendRedirectResponse,{redirectUrl:this.alsSdkService.redirectFinishedUrl,redirectParams:[`ui_locales=${this.localeService.getLocale()}`,`platform=${C.platform}`,"error=server_error"]}).pipe((0,on.M)(()=>{me.error(bt),Ye.error(bt)})))),(0,Oi.j)(()=>{Ye.complete(),me.complete()})).subscribe(),me.pipe((0,_n.H)(bt=>this.alsSdkService.getLoginUrl(C.type.toUpperCase(),bt,w)),(0,_n.H)(bt=>(this.appConfig.accountLinking.useNativeAuthCommands?this.bridgeService.executeCommand(Qe.Ts.Common.Nativeauth.initiateLogInALS,{url:bt}).pipe((0,g.s)(1)).subscribe():window.open(bt,"_blank"),Ye.asObservable())),(0,g.s)(1),(0,ud.o)(3e5,(0,it.of)("")),(0,Oi.j)(()=>{this.logger.info("Closing HTTP server"),this.bridgeService.executeCommand(Qe.Ts.Common.Httpserver.StopHttpServer).subscribe()}))}validateMessageEvent(C){let w=C&&C.data;return w=w&&C.origin===window.location.origin,!!w}getOAuthLoginData(C){const w=C.data?.key;if(!w)return{};const Q=window.localStorage.getItem(w);window.localStorage.removeItem(w);try{return JSON.parse(Q).data}catch{return this.logger.error("malformed access code object",Q),null}}getGameSyncStatus(C){switch(C){case pl.UNKNOWN:return Pt.war.Unknown;case pl.SYNC_SUCCESS:return Pt.war.Sync_Success;case pl.PROFILE_NOT_CREATED:return Pt.war.Profile_Not_Created;case pl.SYNC_DENIED:return Pt.war.Sync_Denied;case pl.SYNC_FAILED:return Pt.war.Sync_Failed;default:return Pt.war.Unknown}}sendOwnershipSyncTelemetry(C,w){const Q=this.accountProviders.get(w);let me=Q.isSynced?C?Pt.xkk.Resync:Pt.xkk.Sync:Pt.xkk.AccountLinked;if(Q.reconnectReason)switch(Q.reconnectReason){case Bd.onboardingReconnect:me=Pt.xkk.ReconnectForOnboarding;break;case Bd.syncDenied:me=Pt.xkk.ReconnectAfterSyncDenied;break;case Bd.reconnect:me=Pt.xkk.Reconnect}else if(Q.prevResyncReason)switch(Q.prevResyncReason){case vd.profileNotCreated:me=Pt.xkk.ResyncAfterProfileCreate;break;case vd.privateProfile:me=Pt.xkk.ResyncAfterResolve;break;case vd.syncFailed:me=Pt.xkk.ResyncAfterSyncFailed}const Ye=new Pt.IWs({userAction:me,state:Q.isConnected?Pt.H9T.Connected:Pt.H9T.Disconnected,status:this.getGameSyncStatus(Q.state),serviceProviderName:w||"",totalNumberOfGfnSupportedGames:Q.numberOfSyncedGames,syncDate:Q.syncDate||""});this.telemetryService.push(Ye),Q.resetResyncReconnectReasons()}sendOwnershipDisconnectTelemetry(C){const w=this.accountProviders.get(C),Q=this.accountProviders.get(C)?.syncDate||"",me=new Pt.IWs({userAction:Pt.xkk.Disconnect,state:Pt.H9T.Disconnected,status:Pt.war.Sync_Success,serviceProviderName:C||"",totalNumberOfGfnSupportedGames:0,syncDate:Q});this.telemetryService.push(me),w.resetResyncReconnectReasons()}navigateToAccountsSection(){this.triggerHighlightOnSettingsIntegration(),this.customLocationService.backNavigationRoute=this.router.url,this.cancelPendingCTA(),this.router.navigate([Ii.f.Settings],{skipLocationChange:!0,fragment:"settings_integrations"})}handleConnectFlow(C,w,Q=!1){return this.connect(C.type,w,Q,!1,!0).pipe((0,nt.ZZ)(me=>me?(0,it.of)(me):(0,Ut.$)("Account connection failed")))}handleInlineLinkingDialog(C,w){let Q,me=!1;return this.idmService.cachedUser.pipe((0,g.s)(1),(0,nt.ZZ)(Ye=>{const bt=w.accountLinkingStoreLabel;return Q=bt?bt+"_":"",this.sharedStorageService.readBlock("accountInlineLinking_"+Q+Ye.data.userId)}),(0,nt.ZZ)(Ye=>{if(Ye.hideInlineAccountLinkingDialog)return(0,it.of)({dialogAction:Ss.ManuallyMarkAsOwned,checkBoxState:!1});me=!0;const bt={isAccountLinkingSsoRequired:C.isAccountLinkingSsoRequired,descriptionIconList:this.getValueProp(w.appStore),gameInfo:w,showOnboardingReconnect:C.showOnboardingReconnect};return this.dialogService.showInLineLinkDialog(bt)}),(0,wt.T)(Ye=>(me&&Ye.checkBoxState&&Ye.dialogAction===Ss.ManuallyMarkAsOwned&&this.onInlineLinkDialogDismiss(Q),Ye.dialogAction)))}onInlineLinkDialogDismiss(C){this.idmService.cachedUser.pipe((0,nt.ZZ)(w=>(0,qd.p)([(0,it.of)(w.data.userId),this.sharedStorageService.readBlock("accountInlineLinking_"+C+w.data.userId)])),(0,nt.ZZ)(([w,Q])=>(Q.hideInlineAccountLinkingDialog=!0,this.sharedStorageService.writeBlock("accountInlineLinking_"+C+w,Q))),(0,g.s)(1)).subscribe()}checkForConnection(C){const w=this.accountProviders.get(C.appStore);let Q=ft.Bp.Manual;return this.isSyncingOrLinkingSupported(C.appStore,C.variant.id).pipe((0,g.s)(1),(0,nt.ZZ)(me=>{if(!w)return this.dialogService.markGameAsManuallyOwned(C);if(!me)return this.dialogService.markGameAsManuallyOwned(C);if(!this.isAccountSyncedOrLinkComplete(C.appStore))return this.handleInlineLinkingDialog(w,C);if(w.isSynced&&w.isSyncFailure())return this.handleSyncErrors(w);const Ye=w.getExpirationStatus();return Ye===ml.Expired||Ye===ml.ExpiresNow?this.openExpirationDialog(C.appStore,!0):w.isSynced?this.dialogService.openResyncGameStore(C,w.persona):this.dialogService.markGameAsManuallyOwned(C)}),(0,nt.ZZ)(me=>{switch(me){case Ss.Connect:Q=ft.Bp.StoreConnect;break;case Ss.Reconnect:Q=ft.Bp.StoreReconnect;break;case Ss.Resync:Q=ft.Bp.StoreResync;break;case Ss.Cancel:Q=ft.Bp.ManualPostCancellation}return this.handleDialogActions(me,w,C)}),(0,wt.T)(me=>({checkIfGamesAutoSynced:this.checkIfGamesAutoSynced,markAsOwnedTrigger:Q})))}handleDialogActions(C,w,Q){switch(this.checkIfGamesAutoSynced=!1,C){case Ss.ManuallyMarkAsOwned:return this.handleManuallyMarkAsOwned(w,Q);case Ss.MarkAsOwned:return(0,it.of)(!0);case Ss.Connect:return this.handleConnectFlow(w,Q);case Ss.Reconnect:return this.handleConnectFlow(w,Q,!0);case Ss.Resync:return this.syncInline(w,Q,!0);case Ss.GoToConnection:return this.dialog.closeAll(),this.navigateToAccountsSection(),(0,Ut.$)("Dialog dismissed , navigating to settings page");case Ss.Done:return this.checkIfGamesAutoSynced=!0,(0,it.of)(!0);case Ss.NotNow:return(0,it.of)(!0);default:return(0,Ut.$)("DIALOG_DISMISSED")}}handleManuallyMarkAsOwned(C,w){return this.dialogService.markGameAsManuallyOwned(w).pipe((0,nt.ZZ)(Q=>this.handleDialogActions(Q,C,w)))}syncInline(C,w,Q){return this.sync(C.type,Q,!0).pipe((0,g.s)(1),(0,nt.ZZ)(me=>me?0!==C.numberOfSyncedGames?(this.logger.info(`${C.numberOfSyncedGames} Games synced after syncing account`),this.dialogService.showLibrarySyncedDialog(C.appStoreName,C.numberOfSyncedGames,C.persona)):(this.logger.info("0 Games synced after syncing account"),this.dialogService.noGameSyncedDialog(C.appStoreName,w,C.persona)):this.handleSyncErrors(C)),(0,nt.ZZ)(me=>this.handleDialogActions(me,C,w)))}handleSyncErrors(C){switch(C.state){case pl.PROFILE_NOT_CREATED:return this.dialogService.profileNotCreatedDialog(C.name,C.errorDialogUrl);case pl.SYNC_DENIED:return"STEAM"===C.type?this.dialogService.profileNotPublicIssueDialog(C.name,C.errorDialogUrl,C.persona):this.dialogService.permissionFailureDialog(C.name);default:return this.dialogService.syncFailureDialog(C.name)}}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(l.NZ),c.KVO(Mi.Vk),c.KVO(Ai.k_),c.KVO(P.H0),c.KVO(l.iH),c.KVO(oa),c.KVO(Pr.Z1),c.KVO(_p),c.KVO(yt),c.KVO(Ze.c$),c.KVO(Ws.F4),c.KVO(hn.Ix),c.KVO(Ko),c.KVO(tt.x),c.KVO(gu),c.KVO(Po.yQ),c.KVO(ri.nf),c.KVO(Pt.jgD),c.KVO(n.bZ))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Md=function(j){return j.denied="denied",j}(Md||{}),ch=function(j){return j.clientAddedData="CLIENT_ADDED_DATA",j.clientRemovedData="CLIENT_REMOVED_DATA",j.clientDataResponse="CLIENT_DATA_RESPONSE",j.serverDataRequest="SERVER_DATA_REQUEST",j}(ch||{});let Sp=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn){this.cloudVarService=w,this.settingsService=Q,this.bridgeService=me,this.distributedTracingUtilService=Ye,this.telemetryUtilService=bt,this.guestModeService=cn,this.guestModeHelperService=Wn,this.detectClipboardChange=new J.t(!1),this.desktopPasteTelemetry={clientClipboardRead:Pt.T80.UNDEFINED,clipboardDataSent:Pt.T80.UNDEFINED,clipboardDataLength:0,streamSessionId:"",streamSubSessionId:"",requestId:""},this.isGuestAppFlow=!1,this.logger=C.getLogger("ClipboardService"),this.isGuestAppFlow=this.guestModeHelperService.isGuestAppFlow()}setDefaultClipboardSetting(){(0,Ln.T)(()=>this.isGuestAppFlow,(0,Vt.zV)([this.guestModeService.isGuestFlowConfigFetched$,this.gxtClipboardPasteConfig()]),(0,Vt.zV)([(0,it.of)(null),this.gxtClipboardPasteConfig()])).pipe((0,g.s)(1),(0,nt.ZZ)(([C,w])=>(this.isGuestAppFlow&&(this.guestModeConfig=this.guestModeHelperService.getGuestModeConfig()),this.logger.info("Guest mode config for Paste: ",this.guestModeConfig?.igoSettings?.pasteDefaultOn," and Gxt config: ",w),w?.isEnabled&&w?.maxPasteBuffer?(this.isPasteFeatureOn=w?.isEnabled,void 0!==this.guestModeConfig?.igoSettings?.pasteDefaultOn&&(this.isPasteFeatureOn=this.isPasteFeatureOn&&this.guestModeConfig?.igoSettings?.pasteDefaultOn),this.settingsService.getSettingsData().pipe((0,g.s)(1))):(this.logger.info("Skip default setting as clipboard paste disabled"),(0,it.of)(null))))).subscribe(C=>{C&&!C.hasOwnProperty(oi.ClipboardPaste)&&(this.logger.info("Setting clipboard paste as enabled: ",this.isPasteFeatureOn," by default"),this.settingsService.storeChangedSettings({settingType:oi.ClipboardPaste,selectedOption:this.isPasteFeatureOn??!0}))})}init(){return this.detectClipboardChange||(this.detectClipboardChange=new J.t(!1)),this.detectClipboardChange.asObservable().pipe((0,nt.ZZ)(()=>this.clipboardFeatureConfig()),(0,nt.ZZ)(C=>null!==C?C.isEnabled&&C.maxPasteBuffer?this.readText().pipe((0,wt.T)(w=>this.getTextContent(w,C.maxPasteBuffer)),(0,nt.ZZ)(w=>this.sendClientDataAvailable(!!w))):(this.logger.info("Clipboard paste feature not enabled due to user settings"),(0,it.of)(!1)):(this.logger.info("Clipboard paste feature not enabled"),this.detectClipboardChange.complete(),this.detectClipboardChange=null,Oa.w)),(0,Un.W)(C=>(this.logger.error("Error while sending clipboard availability",C),(0,it.of)(!1))))}setStreamingIds(C,w){this.desktopPasteTelemetry.streamSessionId=C,this.desktopPasteTelemetry.streamSubSessionId=w}sendClientDataAvailable(C){this.clipboardAvailableSpan=this.distributedTracingUtilService.startSpan(Pr.pB.ClientClipboardAvailable);const w=[],Q=this.distributedTracingUtilService.inject(this.clipboardAvailableSpan);Object.keys(Q)?.forEach(cn=>{w.push({key:cn,value:Q[cn]})});const me={messageType:Tu.HD.paste,pasteData:{type:C?ch.clientAddedData:ch.clientRemovedData},tracingData:{traceId:this.clipboardAvailableSpan.spanContext().traceId,traceContext:w}},Ye=JSON.stringify(me);return this.logger.info("Sending clipboard data available type",me.pasteData.type),this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.SendClipboardUpdate,{clipboardInfo:Ye},!1).pipe((0,on.M)(cn=>{this.distributedTracingUtilService.closeSpan(this.clipboardAvailableSpan),this.logger.info("Clipboard available data sent",cn)}),(0,Un.W)(()=>(this.logger.error("Bridge command for SendClipboardUpdate failed"),this.distributedTracingUtilService.closeSpan(this.clipboardAvailableSpan),(0,it.of)(!1))))}sendClipboardContentInternal(C,w,Q){const me=w.spanContext().traceId,Ye=[],bt=this.distributedTracingUtilService.inject(w);Object.keys(bt)?.forEach(Yi=>{Ye.push({key:Yi,value:bt[Yi]})});const cn={messageType:Tu.HD.paste,pasteData:{type:C?ch.clientDataResponse:ch.clientRemovedData},tracingData:{requestId:Q,traceId:me,traceContext:Ye}};C&&(cn.pasteData.data=C);const xi={clipboardInfo:JSON.stringify(cn)};return this.logger.info("Sending clipboard data type",cn.pasteData.type),this.desktopPasteTelemetry.clipboardDataLength=C?.length??0,this.desktopPasteTelemetry.clipboardDataSent=this.desktopPasteTelemetry.clientClipboardRead===Pt.T80.FALSE?Pt.T80.UNDEFINED:C?Pt.T80.TRUE:Pt.T80.FALSE,this.desktopPasteTelemetry.requestId=Q,this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.SendClipboardUpdate,xi,!1)}readText(){return navigator.clipboard?(0,El.H)(navigator.clipboard.readText()).pipe((0,Un.W)(C=>(this.logger.info(`Clipboard readText: ${C}`),(0,it.of)(null)))):(this.logger.warn("navigator.clipboard is undefined, readText() probably is being used in non secure context."),(0,it.of)(null))}sendClipboardData(C){const w={};C?.traceContext?.forEach(me=>{w[me.key]=me.value});const Q=this.distributedTracingUtilService.startSpanUsingContext(Pr.pB.ClientDesktopPaste,w);this.clipboardFeatureConfig().pipe((0,g.s)(1),(0,nt.ZZ)(me=>null!==me?(this.desktopPasteTelemetry.clientClipboardRead=me.maxPasteBuffer?Pt.T80.TRUE:Pt.T80.FALSE,me.isEnabled&&me.maxPasteBuffer?this.readText().pipe((0,wt.T)(Ye=>this.getTextContent(Ye,me.maxPasteBuffer)),(0,nt.ZZ)(Ye=>this.sendClipboardContentInternal(Ye,Q,C?.requestId))):(this.logger.info("Clipboard paste feature disabled due to user settings"),this.sendClipboardContentInternal(null,Q,C?.requestId))):(this.logger.info("Clipboard paste feature disabled"),this.sendClipboardContentInternal(null,Q,C?.requestId)))).subscribe(me=>{this.distributedTracingUtilService.closeSpan(Q),this.logger.info("Clipboard data sent",me),this.telemetryUtilService.sendClipboardPasteEvent(this.desktopPasteTelemetry)},me=>{this.distributedTracingUtilService.setSpanAttribute(Q,Pr.NS.Error,!0),this.distributedTracingUtilService.closeSpan(Q),this.logger.error("Error sending custom Message")})}gxtClipboardPasteConfig(){return this.cloudVarService.getFeatureToggle(Nt.CLIPBOARD_PASTE_FEATURE_CONFIG,{configCheckEnabled:!1})}willBeEnabledOnStreamStart(){return this.clipboardFeatureConfig().pipe((0,wt.T)(C=>C?.isEnabled??!1),(0,g.s)(1))}clipboardFeatureConfig(){return this.gxtClipboardPasteConfig().pipe((0,g.s)(1),(0,nt.ZZ)(C=>C?.isEnabled&&C?.maxPasteBuffer?this.checkReadPermissions().pipe((0,nt.ZZ)(w=>{const Q={isEnabled:!1,maxPasteBuffer:0};return w!==Md.denied?this.settingsService.getSettingsData().pipe((0,wt.T)(me=>me?.clipboardPaste?C:Q)):(0,it.of)(Q)})):(0,it.of)(null)))}checkReadPermissions(){const C={name:"clipboard-read"};try{return(0,El.H)(navigator.permissions.query(C)).pipe((0,wt.T)(w=>w.state),(0,Un.W)(w=>(this.logger.error("Error reading clipboard permissions",w),(0,it.of)(Md.denied))))}catch{return this.logger.error("Error while reading browser clipboard permissions"),(0,it.of)(Md.denied)}}getTextContent(C,w){return new Blob([C]).size<=w?C:(this.logger.warn("Invalid text on clipboard"),null)}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(tr),c.KVO(oa),c.KVO(l.NZ),c.KVO(Pr.Z1),c.KVO(Pt.jgD),c.KVO(tt.N),c.KVO(tt.x))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var Ag=d(16421);let gm=(()=>{var j;class Ke{get activated(){return!!this.bindCommandSubscriptions}set activated(C){C!==this.activated&&(C?this.start():this.stop())}constructor(C,w,Q){this.gamepadService=w,this.ngZone=Q,this.bindCommandSubscriptions=null,this.logger=C.getLogger("GamepadNavigationService")}start(){this.logger.info("Initializing gamepad navigation by synthesizing keyboard events"),this.bindCommandSubscriptions=new Ps.y,this.bindCommandSubscriptions.add(this.bindCommand("ArrowUp",this.gamepadService.upPressed$)),this.bindCommandSubscriptions.add(this.bindCommand("ArrowDown",this.gamepadService.downPressed$)),this.bindCommandSubscriptions.add(this.bindCommand("ArrowLeft",this.gamepadService.leftPressed$)),this.bindCommandSubscriptions.add(this.bindCommand("ArrowRight",this.gamepadService.rightPressed$)),this.bindCommandSubscriptions.add(this.bindCommand("Enter",this.gamepadService.onButtonPressed$(Ag.dt.A,{repeat:!0}),{synthesizeClick:!0})),this.bindCommandSubscriptions.add(this.bindCommand("Escape",this.gamepadService.onButtonPressed$(Ag.dt.B,{repeat:!0})))}stop(){this.logger.info("Stop synthesizing gamepad input as keyboard events"),this.bindCommandSubscriptions.unsubscribe(),this.bindCommandSubscriptions=null}bindCommand(C,w,Q){const me=!!Q?.synthesizeClick;let bt,Ye=!1;return this.ngZone.runOutsideAngular(()=>w.pipe((0,on.M)(cn=>{const Wn=(0,xe.Qt)(),xi=Wn instanceof HTMLButtonElement||Wn instanceof HTMLAnchorElement&&Wn.hasAttribute("href");me&&cn&&xi&&(bt=Wn)}),(0,_i.n)(cn=>cn?(0,it.of)("keydown"):Ye?(0,it.of)("keyup"):ho.t)).subscribe(cn=>{const Wn=(0,xe.Qt)();(0,xe.m1)(Wn,cn,C),Ye="keydown"===cn,me&&"keyup"===cn&&bt===Wn&&((0,xe.nK)(Wn),bt=void 0)}))}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Ag.bi),c.KVO(c.SKi))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();var dh=d(7703),hd=function(j){return j[j.AdStateUnknown=0]="AdStateUnknown",j[j.AdNotStarted=1]="AdNotStarted",j[j.AdStarted=2]="AdStarted",j[j.AdPaused=3]="AdPaused",j[j.AdResumed=4]="AdResumed",j[j.AdFinished=5]="AdFinished",j[j.AdCanceled=6]="AdCanceled",j}(hd||{});let mm=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye){this.loggingService=C,this.idmService=w,this.bridgeService=Q,this.mediaHelperService=me,this.telemetryService=Ye,this.totalAdPausedDurationInMs=0,this.adStartedTs=0,this.adEndedTs=0,this.wasAdPausedAtLeastOnce=!1,this._currentStreamingProperties=null,this.logger=this.loggingService.getLogger("OpportunityHelperService")}get streamingProperties(){return this._currentStreamingProperties}set streamingProperties(C){this._currentStreamingProperties={...C}}updateAdState(C,w,Q,me=!1){return this.computeOpportunityPausedDuration(C,w,Q?.perfNowCts),C.pausedTimeInMs=Math.round(this.totalAdPausedDurationInMs),me?(0,it.of)(null):(this.sendTelemetry({status:this.mapOpportunityStatus(C.adAction),watchedTimeInMs:C?.watchedTimeInMs,pausedTimeInMs:C?.pausedTimeInMs,errorInfo:Q?.errorInfo},w),this.bridgeService.executeCommand(Qe.Ts.Gfn.Streaming.UpdateAdState,C))}processVideoEvents(C,w,Q,me,Ye=!1,bt=!1){C||this.logger.error("Video Element is null or undefined: ",C),this.logger.info("Process video request: ",C?.currentSrc,Qe.Or.Gfn.Streaming.AdAction[w.adAction],` , skipMediaPlay: ${Ye}, skipProcessing: ${bt}`);let cn=!1;Ye||w.adAction!==Qe.Or.Gfn.Streaming.AdAction.PAUSE?!Ye&&w.adAction===Qe.Or.Gfn.Streaming.AdAction.START||w.adAction===Qe.Or.Gfn.Streaming.AdAction.RESUME?(this.logger.info("Resume: Attempt playing media: ",Qe.Or.Gfn.Streaming.AdAction[w.adAction]),cn=!0):Ye&&w.adAction===Qe.Or.Gfn.Streaming.AdAction.START&&this.logger.info("Skip playing the media for AdAction.START as the ad would be auto played already."):(this.mediaHelperService.pauseMedia(C),this.wasAdPausedAtLeastOnce=!0);const Wn=Math.floor(Date.now()/1e3);return(cn?this.mediaHelperService.playMedia(C,"video").pipe((0,g.s)(1)):(0,it.of)(null)).pipe((0,nt.ZZ)(Yi=>(0,Vn.yU)((0,it.of)(Yi),this.updateAdState({adId:w.adId,adAction:w.adAction,clientTimestamp:w?.clientTimestamp??Wn,watchedTimeInMs:w?.watchedTimeInMs,cancelReason:w?.cancelReason},Q,me,bt))),(0,wt.T)(Yi=>(this.logger.info("Media play result: ",Yi[0]),this.logger.info(bt?"Ad state update was skipped: ":"Ad state update sent for: ",Qe.Or.Gfn.Streaming.AdAction[w.adAction]),this.resetValues(w),Yi[0])),(0,Un.W)(Yi=>(this.logger.error("Error updating ad state: ",Qe.Or.Gfn.Streaming.AdAction[w.adAction],bt," Error: ",Yi.toString()),this.resetValues(w),Oa.w)))}setTelemetryHelperData(C){this.cmsId=C}isOpportunityViewingOver(C){return C?.adAction===Qe.Or.Gfn.Streaming.AdAction.FINISH||C?.adAction===Qe.Or.Gfn.Streaming.AdAction.CANCEL}computeOpportunityPausedDuration(C,w,Q){if(C?.adAction===Qe.Or.Gfn.Streaming.AdAction.START)this.adStartedTs=Q;else if(this.isOpportunityViewingOver(C)){if(this.wasAdPausedAtLeastOnce){this.adEndedTs=Q;const me=this.adEndedTs-this.adStartedTs,Ye=1e3*w.adLengthInSeconds;this.logger.info("Time taken to view ad in ms: ",me,", total ad length in ms: ",Ye),me>Ye?this.totalAdPausedDurationInMs=me-Ye:this.logger.info("Ad is being terminated before completely watching it.")}this.logger.info("totalAdPausedDurationInMs: ",this.totalAdPausedDurationInMs)}}resetValues(C){this.isOpportunityViewingOver(C)&&(this.adStartedTs=this.adEndedTs=this.totalAdPausedDurationInMs=0,this.wasAdPausedAtLeastOnce=!1)}sendTelemetry(C,w){this.idmService.accountStatusChanged.pipe((0,g.s)(1),(0,wt.T)(Q=>{const me=new Pt.GoL({cmsId:this.cmsId??"",url:w.adUrl??"",receipt:w.adId??"",status:C.status??Pt.eK6.Unknown,durationInSec:w.adLengthInSeconds??0,watchedTimeInMs:C.watchedTimeInMs??0,pausedTimeInMs:C.pausedTimeInMs??0,errorInfo:C.errorInfo??"",currentScreenOrientation:window.matchMedia("(orientation: landscape)").matches?Pt.t4p.Landscape:Pt.t4p.Portrait,targetedAdsOptIn:void 0===Q?.targetedAdsOptIn?Pt.T80.UNDEFINED:!0===Q?.targetedAdsOptIn?Pt.T80.TRUE:Pt.T80.FALSE,sessionId:this.streamingProperties?.sessionId??"",subSessionId:this.streamingProperties?.subSessionId??""});this.telemetryService.push(me)})).subscribe()}mapOpportunityStatus(C){let w;switch(C){case Qe.Or.Gfn.Streaming.AdAction.START:w=Pt.eK6.Started;break;case Qe.Or.Gfn.Streaming.AdAction.CANCEL:w=Pt.eK6.Canceled;break;case Qe.Or.Gfn.Streaming.AdAction.PAUSE:w=Pt.eK6.Paused;break;case Qe.Or.Gfn.Streaming.AdAction.RESUME:w=Pt.eK6.Resumed;break;case Qe.Or.Gfn.Streaming.AdAction.FINISH:w=Pt.eK6.Completed;break;default:w=Pt.eK6.Unknown}return w}convertToAdState(C){let w;switch(C){case Qe.Or.Gfn.Streaming.AdAction.START:w=hd.AdStarted;break;case Qe.Or.Gfn.Streaming.AdAction.CANCEL:w=hd.AdCanceled;break;case Qe.Or.Gfn.Streaming.AdAction.PAUSE:w=hd.AdPaused;break;case Qe.Or.Gfn.Streaming.AdAction.RESUME:w=hd.AdResumed;break;case Qe.Or.Gfn.Streaming.AdAction.FINISH:w=hd.AdFinished;break;default:w=hd.AdStateUnknown}return w}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Ai.k_),c.KVO(l.NZ),c.KVO(al.yj),c.KVO(P.H0))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();new Wa.U("2.0.56.999");var Nf=d(36666),yp=function(j){return j.GameTile="TV_BANNER",j.MaqueeTile="MARQUEE_HERO_IMAGE",j.MaqueeGameLogo="GAME_LOGO",j.MaqueeCascadeImage="assets.cascade.geforce.com/images/",j}(yp||{});const Ff=[yp.GameTile,yp.MaqueeCascadeImage,yp.MaqueeTile,yp.MaqueeGameLogo];var fa=function(j){return j.CommonJSInitStart="CommonJSInitStart",j.CommonJSInitEnd="CommonJSInitEnd",j.LayoutSpinnerStart="LayoutSpinnerStart",j.LayoutSpinnerEnd="LayoutSpinnerEnd",j.LayoutJSInitStart="LayoutJSInitStart",j.LayoutJSInitEnd="LayoutJSInitEnd",j.LayoutDataFetchStart="LayoutDataFetchStart",j.LayoutDataFetchEnd="LayoutDataFetchEnd",j.LayoutDataRenderStart="LayoutDataRenderStart",j.LayoutDataRenderEnd="LayoutDataRenderEnd",j.LoginWallCheckStart="LoginWallCheckStart",j.LoginWallCheckEnd="LoginWallCheckEnd",j.LoginWallDataFetchStart="LoginWallDataFetchStart",j.LoginWallDataFetchEnd="LoginWallDataFetchEnd",j.LoginWallRenderStart="LoginWallRenderStart",j.LoginWallRenderEnd="LoginWallRenderEnd",j}(fa||{}),ra=function(j){return j.CEFLoad="CEFLoad",j.TotalJSModuleLoad="TotalJSModuleLoad",j.CommonJSModuleLoad="CommonJSModuleLoad",j.LayoutJSModuleLoad="LayoutJSModuleLoad",j.LayoutDataLoad="LayoutDataLoad",j.LayoutSpinner="LayoutSpinner",j.LayoutDataRendering="LayoutDataRendering",j.CompleteLayout="CompleteLayout",j.LoginWallCheck="LoginWallCheck",j.LoginWallDataFetch="LoginWallDataFetch",j.LoginWallRendering="LoginWallRendering",j}(ra||{});const Qf=[{name:ra.CommonJSModuleLoad,start:fa.CommonJSInitStart,end:fa.CommonJSInitEnd},{name:ra.LoginWallCheck,start:fa.LoginWallCheckStart,end:fa.LoginWallCheckEnd},{name:ra.LayoutJSModuleLoad,start:fa.LayoutJSInitStart,end:fa.LayoutJSInitEnd},{name:ra.LayoutDataLoad,start:fa.LayoutDataFetchStart,end:fa.LayoutDataFetchEnd},{name:ra.LayoutSpinner,start:fa.LayoutSpinnerStart,end:fa.LayoutSpinnerEnd},{name:ra.LayoutDataRendering,start:fa.LayoutDataRenderStart,end:fa.LayoutDataRenderEnd}],Jf=[{name:ra.CommonJSModuleLoad,start:fa.CommonJSInitStart,end:fa.CommonJSInitEnd},{name:ra.LoginWallCheck,start:fa.LoginWallCheckStart,end:fa.LoginWallCheckEnd},{name:ra.LoginWallDataFetch,start:fa.LoginWallDataFetchStart,end:fa.LoginWallDataFetchEnd},{name:ra.LoginWallRendering,start:fa.LoginWallRenderStart,end:fa.LoginWallRenderEnd}];let qf=(()=>{var j;class Ke{constructor(C,w,Q){this.telemetryUtilService=w,this.bridgeService=Q,this.imageLoadDuration=0,this.imageCount=0,this.imageTransferSize=0,this.usedJsHeapSize=0,this.resourceComputationDone=!1,this.imgTimingMap=new Map,this.logger=C.getLogger("AppLaunchPerformanceService"),this.isPerfTelemetryInitiatedOnce=!1,this.isLayoutLoadAbandoned=!1,this.layoutDurations=new Map,Qf.forEach(me=>{this.layoutDurations.set(me.name,0)}),this.layoutDurations.set(ra.CEFLoad,-1),this.loginWallDurations=new Map,Jf.forEach(me=>{this.loginWallDurations.set(me.name,0)})}fetchCEFStartupTime(){return this.bridgeService.executeCommand(Qe.Ts.Common.Applicationinfo.GetApplicationTimeInfo,{type:Qe.Or.Common.Applicationinfo.ApplicationTimeType.Launch}).pipe((0,wt.T)(C=>{const w=window.jsInitStartTs-C.startTime;return this.layoutDurations.set(ra.CEFLoad,w),!0}),(0,Un.W)(C=>(0,it.of)(!1)))}onCommonJSLoadEnd(){performance.mark(fa.CommonJSInitEnd)}onLoginWallDataFetchStart(){performance.mark(fa.LoginWallDataFetchStart)}onLoginWallDataFetchEnd(){performance.mark(fa.LoginWallDataFetchEnd)}onLoginWallRenderStart(){performance.mark(fa.LoginWallRenderStart)}onLoginWallRenderEnd(){performance.mark(fa.LoginWallRenderEnd),this.computeLoginWallDuration()}onLoginWallCheckStart(){performance.mark(fa.LoginWallCheckStart)}onLoginWallCheckEnd(){performance.mark(fa.LoginWallCheckEnd)}onLayoutDataFetchStart(){this.isPerfTelemetryInitiatedOnce||performance.mark(fa.LayoutDataFetchStart)}onLayoutDataFetchEnd(){this.isPerfTelemetryInitiatedOnce||(performance.mark(fa.LayoutDataFetchEnd),performance.mark(fa.LayoutSpinnerEnd))}onLayoutComponentDataRenderingStart(){this.isPerfTelemetryInitiatedOnce||performance.mark(fa.LayoutDataRenderStart)}computeLoginWallDuration(){Jf.forEach(Q=>{try{const me=performance.measure(Q.name,Q.start,Q.end);this.loginWallDurations.set(Q.name,me.duration)}catch{this.loginWallDurations.set(Q.name,-1)}});let C="Stage wise durations for loginwall:\n";this.loginWallDurations.forEach((Q,me)=>{C+=`${me}: ${Q}\n`});const w=this.loginWallDurations.get(ra.CommonJSModuleLoad)+this.loginWallDurations.get(ra.LoginWallCheck)+this.loginWallDurations.get(ra.LoginWallRendering);C=`${C}Total duration: ${w}`,this.logger.info(C)}computeLayoutDuration(){Qf.forEach(me=>{try{const Ye=performance.measure(me.name,me.start,me.end);this.layoutDurations.set(me.name,Ye.duration)}catch{this.layoutDurations.set(me.name,-1)}});const C=this.layoutDurations.get(ra.CommonJSModuleLoad)+this.layoutDurations.get(ra.LayoutJSModuleLoad);this.layoutDurations.set(ra.TotalJSModuleLoad,C);const w=this.layoutDurations.get(ra.CommonJSModuleLoad)+this.layoutDurations.get(ra.LayoutJSModuleLoad)+this.layoutDurations.get(ra.LoginWallCheck)+this.layoutDurations.get(ra.LayoutDataLoad)+this.layoutDurations.get(ra.LayoutDataRendering);this.layoutDurations.set(ra.CompleteLayout,w);let Q="Stage wise durations for layout:\n";this.layoutDurations.forEach((me,Ye)=>{Q+=`${Ye}: ${me}\n`}),this.logger.info(Q)}onLayoutComponentDataRenderingEnd(){this.isPerfTelemetryInitiatedOnce||(performance.mark(fa.LayoutDataRenderEnd),(0,Ln.T)(l.zk.isCefPlatform,this.fetchCEFStartupTime(),(0,it.of)(!1)).pipe((0,g.s)(1)).subscribe(C=>{this.computeLayoutDuration(),this.computeResourceLoadMetrics(),this.isPerfTelemetryInitiatedOnce=!0}))}onLayoutComponentInit(){this.isPerfTelemetryInitiatedOnce||performance.mark(fa.LayoutSpinnerStart)}onLayoutLoadAbandoned(){this.isLayoutLoadAbandoned=!0}computeResourceLoadMetrics(){this.observer=new PerformanceObserver(C=>this.perfResourceElementObserverCallback(C)),this.observer.observe({entryTypes:[l.uP.Element,l.uP.Resource]}),setTimeout(()=>{this.observer&&this.observer.disconnect(),this.usedJsHeapSize=this.getUsedJsHeapSize(),this.resourceComputationDone=!0,this.imgTimingMap.clear(),this.sendLayoutPerformanceTelemetry()},1e4)}perfResourceElementObserverCallback(C){try{C.getEntries().forEach(w=>{if(w instanceof PerformanceResourceTiming&&w.initiatorType===l.fV.Image&&this.isResourceConsidered(w.name)){const Q=this.imgTimingMap.get(w.name);if(Q&&w.connectStart){const me=Q-w.connectStart;me<0&&this.logger.error(`Negative duration for entry ${JSON.stringify(w.toJSON())}, with loadTime ${Q}`),this.imageLoadDuration+=me,this.imgTimingMap.delete(w.name),this.imageCount++}else this.imgTimingMap.set(w.name,w.connectStart);w.transferSize&&(this.imageTransferSize+=w.transferSize)}else if(w.entryType===l.uP.Element){const Q=this.imgTimingMap.get(w.url);if(w.loadTime&&Q){const me=w.loadTime-Q;me<0&&this.logger.error(`Negative duration for entry ${JSON.stringify(w.toJSON())}, with startime ${Q}`),this.imageLoadDuration+=me,this.imgTimingMap.delete(w.url),this.imageCount++}else this.imgTimingMap.set(w.url,w.loadTime)}})}catch(w){this.logger.error("Error occured in perfResourceElementObserverCallback ",w),this.observer.disconnect(),this.observer=null,this.imageCount=-1,this.imageLoadDuration=-1,this.imageTransferSize=-1}}isResourceConsidered(C){return Ff.some(w=>C.includes(w))}getUsedJsHeapSize(){return performance?.memory?.usedJSHeapSize??-1}sendLayoutPerformanceTelemetry(){const C=window.geForceNowStartLocationHash;this.isLayoutLoadAbandoned||C?.length&&!C.includes(Ii.V6.DefaultRedirect)||!this.resourceComputationDone?this.logger.warn(`Abort sendLayoutPerformanceTelemetry, isLayoutLoadAbandoned: ${this.isLayoutLoadAbandoned}, startHash: ${C}`):(this.telemetryUtilService.sendPageLoadPerfEvent(Pt.$1L.Layout_L0,{viewDataLoadDuration:this.layoutDurations.get(ra.LayoutDataLoad),sectionNames:[ra.CEFLoad,ra.TotalJSModuleLoad,ra.LayoutSpinner,ra.LayoutDataRendering,ra.CompleteLayout],sectionDataLoadDurations:[0,0,0,0,0],sectionTotalLoadDurations:[this.layoutDurations.get(ra.CEFLoad),this.layoutDurations.get(ra.TotalJSModuleLoad),this.layoutDurations.get(ra.LayoutSpinner),this.layoutDurations.get(ra.LayoutDataRendering),this.layoutDurations.get(ra.CompleteLayout)],imageLoadDuration:this.imageLoadDuration,imageCount:this.imageCount,imageTransferSize:this.imageTransferSize,usedJsHeapSize:this.usedJsHeapSize}),this.telemetryUtilService.sendNavigationPerfEvent())}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Pt.jgD),c.KVO(l.NZ))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),b_=(()=>{var j;class Ke{constructor(C,w,Q,me,Ye,bt,cn,Wn,xi,Yi,fr,Gr,ao,Eo,ls,ws,xl,Au,Fh,Dg,qm){this.idmService=w,this.idmLoginService=Q,this.pathService=me,this.nesUserInfoService=Ye,this.lcarsService=bt,this.deeplinkHelperService=cn,this.imageFormatService=Wn,this.redirectService=xi,this.browseUxService=Yi,this.appConfig=fr,this.genericDialog=Gr,this.unsupportedBrowserService=ao,this.settingsService=Eo,this.localeService=ls,this.appLaunchPerformanceService=ws,this.translateService=xl,this.idmTelemetryService=Au,this.loginHintService=Fh,this.snackbar=Dg,this.oobeService=qm,this.backToCloseResult=Kt.ie.Cancel,this.handleRoute=(ef,Pp)=>{this.appLaunchPerformanceService.onLoginWallCheckStart();const Mf=Pp.url,yf=Mf?.includes(Ii.f.LoginWall),Bf=Mf?.includes(Ii.f.Deeplink),bf=ef.queryParamMap;return Bf&&this.deeplinkHelperService.setDeeplinkZoneOverride(bf,Pp.url),(0,Ii.ED)()?(this.appLaunchPerformanceService.onLoginWallCheckEnd(),(0,it.of)(!0)):this.isLoginWallEnabled().pipe((0,nt.ZZ)(Op=>Op?this.getURLAfterLoginCheck(yf):(0,it.of)(yf?Ii.f.Home:void 0)),(0,nt.ZZ)(Op=>Bf?this.getURLAfterDeeplinkCheck(bf,Op):(0,it.of)(Op)),(0,nt.ZZ)(Op=>Op?(this.appLaunchPerformanceService.onLoginWallCheckEnd(),this.pathService.navigateByUrl(Op,{state:{initialURL:Mf,queryParamMap:bf}})):(yf||(this.loginWallFlowComplete$.next(!0),this.browseUxService.allowEarlyLayoutFetch()),this.appLaunchPerformanceService.onLoginWallCheckEnd(),(0,it.of)(!0))))},this.logger=C.getLogger("LoginWallService"),this.loginProviderInfo$=new Be.m(1),this.ssoLoginInfo$=new Be.m(1),this.unsupportedScenarioInfo$=new Be.m(1),this.loginWallBackgroundData$=new Be.m(1),this.loginWallStrings$=new Be.m(1),this.clientVersionString$=new Be.m(1),this.pwaInfo$=new Be.m(1),this.loginStatus$=new p.B7,this.loginWallFlowComplete$=new Be.m(1),this.needsWindowWorkaround=!!fr?.featureEnablement?.loginPopupBlockerWorkaround,this.enableFocusOnDefaultCTA$=new Be.m(1),this.offDeviceDialogClosedStateSubject=new J.t(!0)}initializeNavigateOnLogoutSubscription(){this.idmService.accountStatusChanged.pipe((0,Nf.i)(1),(0,ge.p)(C=>!C.isAuthenticated)).subscribe(C=>this.pathService.navigateByUrl(Ii.f.LoginWall))}getSpecificProviderInfo(C){return this.nesUserInfoService.providerInfo$.pipe((0,g.s)(1),(0,wt.T)(w=>{const Q=w?.gfnServiceEndpoints?.find(Ye=>Ye.loginProvider===C);return{allowProviderSwitch:!0,idpId:Q?.idpId,defaultProvider:Q?.loginProviderDisplayName,countryCode:w?.clientCountryCode}}))}fetchSsoLoginInfo(){(this.appConfig?.featureEnablement?.logininfo?.enabled?this.loginHintService.getSsoLoginInfo():(0,it.of)(null)).subscribe(w=>{this.ssoLoginInfo$.next(w)},w=>{this.logger.error("Error fetching sso login info entry",w),this.ssoLoginInfo$.next(null)})}ssoLoginHint(){return this.ssoLoginInfo$.pipe((0,wt.T)(C=>C?.login_hint))}fetchProviderInfo(){this.nesUserInfoService.loginPreferredProviders$.pipe((0,nt.ZZ)(C=>1!==C?.length?(0,it.of)({allowProviderSwitch:!1}):this.getSpecificProviderInfo(C[0]))).subscribe(C=>{this.loginProviderInfo$.next(C)},C=>{this.logger.error("Error showing switch provider picker.",C),this.loginProviderInfo$.next({allowProviderSwitch:!1})})}isLoginWallEnabled(){return(0,it.of)(this.appConfig.featureEnablement.showLoginWall)}showGameNotFoundToastMessage(){this.idmService.accountStatusChanged.pipe((0,g.s)(1),(0,nt.ZZ)(C=>C.isAuthenticated?(0,it.of)(null):this.translateService.get("loginWall.gameNotAvailable"))).subscribe(C=>{if(C)return this.snackbar.open(C,"",{duration:8e3,horizontalPosition:"left",panelClass:["nv-hig"]})},Mt.l)}getURLAfterDeeplinkCheck(C,w){return this.deeplinkHelperService.performHandlingCheck(C).pipe((0,nt.ZZ)(Q=>{if(!Q.canHandle)return this.logger.info("Cannot handle deeplink"),(0,it.of)(null);const me=C.has(Tu.aj.CmsId);return this.lcarsService.getAppdata(C.get(me?Tu.aj.CmsId:Tu.aj.GameId),{isCmsId:me})}),(0,wt.T)(Q=>Q&&Q[0]?w:(this.showGameNotFoundToastMessage(),Ii.f.Home)),(0,Un.W)(Q=>(this.logger.error("Error while fetching game metadata: ",Q),(0,it.of)(Ii.f.Home))))}getURLAfterLoginCheck(C){return this.idmService.accountStatusChanged.pipe((0,g.s)(1),(0,wt.T)(w=>w.isAuthenticated?C?Ii.f.Home:void 0:C?void 0:Ii.f.LoginWall))}getBackgroundContentParameters(C){if(this.returnLocationURL?.includes(Ii.f.Deeplink)){const Q=C.has(Tu.aj.CmsId);return{contentType:_s.Game,isCmsId:Q,contentId:C.get(Q?Tu.aj.CmsId:Tu.aj.GameId)}}return{contentType:_s.Catalog}}fetchUnsupportedScenarioInfo(){this.unsupportedBrowserService.unsupportedBrowserState$.pipe((0,nt.ZZ)(C=>(0,Vt.zV)([this.unsupportedBrowserService.getDialogLink$(C),(0,it.of)(this.unsupportedBrowserService.getUnsupportedHeaderText(C))])),(0,g.s)(1)).subscribe(([C,w])=>{this.unsupportedScenarioInfo$.next({text:w,link:C})})}fetchClientVersion(){this.browseUxService.getVersionString().pipe((0,g.s)(1)).subscribe(C=>{this.clientVersionString$.next(C)})}checkForOOBEClosed(){this.oobeService.oobeDialogClosedState.pipe((0,ge.p)(C=>C)).subscribe(C=>this.enableFocusOnDefaultCTA$.next())}enableFocusOnDefaultCTA(){return this.enableFocusOnDefaultCTA$.asObservable()}fetchPWAInfo(){const C=this.localeService.localeChanged.pipe((0,wt.T)(w=>this.settingsService.getLinksUrl(Yr.ni.GFN_PC_FAQ_IOS,w)));(0,Vt.zV)([this.unsupportedBrowserService.shouldDisplayPWAGuidance$,C]).pipe((0,g.s)(1)).subscribe(([w,Q])=>{this.pwaInfo$.next({shouldShowPWAGuidance:w,faqUrl:Q})})}isSameTabLoginEnabled(){return(0,it.of)(this.appConfig.starfleet.sameTabLogin)}getUnsupportedScenarioInfo(){return this.unsupportedScenarioInfo$.asObservable()}getServerErrorURLs(){return this.redirectService.getRedirectUrl(At.r7.GfnServerStatus).pipe((0,wt.T)(C=>[C,At.lp[At.r7.GfnServerStatus]]))}onLoginWallFlowCompleted$(){return this.isLoginWallEnabled().pipe((0,nt.ZZ)(C=>C?this.loginWallFlowComplete$.asObservable():(0,it.of)(!0)),(0,mo.F)())}getPWAInfo(){return this.pwaInfo$.asObservable()}initiateContentFetch(C){this.appLaunchPerformanceService.onLoginWallDataFetchStart();const w=this.getBackgroundContentParameters(C);if(w.contentType===_s.Game){const Q=this.lcarsService.getAppdata(w.contentId,{isCmsId:w.isCmsId}),me=this.lcarsService.getLoginwallStrings();(0,Vt.zV)([Q,me]).pipe((0,g.s)(1)).subscribe(([Ye,bt])=>{const cn=Ye[0]?.images,Wn=Ye[0]?.marqueeScrimPrimaryRGB,xi=[];Ye[0].variants.forEach(fr=>{const Gr=ds.getStoreInfoForAppstore(fr.appStore),ao=Gr?.smallImageUrl;xi.push({logo:ao,label:""===Gr?.label?Ye[0].publisherName:Gr.label})});const Yi={backgroundImageUrl:cn?.HERO_IMAGE,gameTitle:Ye[0].title,logoImageUrl:cn?.GAME_LOGO?this.imageFormatService.formatImageServiceUrl(cn?.GAME_LOGO,{w:360}):"",appStoresInfo:xi,useDarkTheme:"black"===(0,al.VP)(Wn),scrimColor:Wn?`${Wn.r??0}, ${Wn.g??0}, ${Wn.b??0}`:"0, 0, 0"};this.appLaunchPerformanceService.onLoginWallDataFetchEnd(),this.loginWallBackgroundData$.next({data:Yi}),this.loginWallStrings$.next(bt)},Ye=>{this.logger.error("Error while fetching login wall data for deeplink.",Ye),this.appLaunchPerformanceService.onLoginWallDataFetchEnd(),this.loginWallBackgroundData$.next(null)})}else this.lcarsService.getLoginWallData().pipe((0,g.s)(1)).subscribe(Ye=>{const cn={imageUrls:Ye.backgroundData.data.imageUrls};this.appLaunchPerformanceService.onLoginWallDataFetchEnd(),this.loginWallBackgroundData$.next({data:cn}),this.loginWallStrings$.next(Ye.strings)},Ye=>{this.logger.error("Error while fetching game catalog data.",Ye),this.appLaunchPerformanceService.onLoginWallDataFetchEnd(),this.loginWallBackgroundData$.next(null)})}cancelLogin(){this.idmService.cancelLogin(!1).subscribe(C=>{(0,a.isEmpty)(C)&&this.loginStatus$.next({loginProcessComplete:!0,state:Bl.Unknown})})}initializeNavigationSubscription(){if(this.postLoginSubscription)return;const C=this.loginStatus$.pipe((0,ge.p)(Q=>Q.state===Bl.Success)),w=this.idmService.accountStatusChanged.pipe((0,ge.p)(Q=>Q.isAuthenticated));this.postLoginSubscription=(0,rr.O4)([C,w]).pipe((0,g.s)(1)).subscribe(Q=>{this.pathService.navigateByUrl(this.returnLocationURL),this.postLoginSubscription=null},Q=>{this.logger.error("Error in postLoginSubscription. ",Q),this.postLoginSubscription=null})}getLoginStatus$(){return this.loginStatus$.asObservable()}attemptLogin(C=!1){this.initializeNavigationSubscription();const w=this.appConfig.starfleet.sameTabLogin;this.needsWindowWorkaround&&!w&&(this.browserPopup=window.open("","_blank"));const Q=this.loginProviderInfo$.pipe((0,g.s)(1),(0,wt.T)(Ye=>Ye.idpId));let me=!1;(0,Vt.zV)([this.idmLoginService.getDeviceName$(),Q,this.ssoLoginInfo$]).pipe((0,g.s)(1),(0,nt.ZZ)(([Ye,bt,cn])=>{let Wn;return this.idmTelemetryService.sendLoginStartEvent(bt,w),this.idmService.gfnStoredLoginInfoApplicableForSso(bt,this.appConfig.starfleet.jarvisIdpId,cn)&&!C&&(Wn={silentLoginHelperInstance:null,ssoSharedPageData:{idp_id:cn?.idp_id,login_hint:cn?.login_hint}},me=!0),this.idmService.login(!1,C?null:bt,this.browserPopup,Ye,document.baseURI+this.returnLocationURL,Wn)}),(0,wt.T)(Ye=>{this.logger.info("starfleet login state update",Ye);const bt={loginProcessComplete:!1,state:Bl.Unknown,errorMessage:"",retryAvailable:!0},cn=me?Ud.a.isLoginViaLoginHint:Ud.a.None;switch(Ye){case Kt.l4.LoginRedirectCompleted:bt.state=Bl.RedirectCompleted;break;case Kt.l4.LoginAbortedByUser:bt.loginProcessComplete=!0,bt.state=Bl.Aborted;break;case _d.g.LoggedIn:bt.loginProcessComplete=!0,bt.state=Bl.Success,this.idmTelemetryService.sendLoginSuccessUserSessionEvent(cn),this.closeOffDeviceAuthDialog(bt.state);break;case Kt.l4.LoginFailed:case _d.g.Failed:bt.loginProcessComplete=!0,bt.state=Bl.Failure,this.idmTelemetryService.sendLoginFailureUserSessionEvent(cn),this.closeOffDeviceAuthDialog(bt.state);break;case Kt.l4.LoginFailedNoRetry:case _d.g.LoggedOut:bt.state=Bl.Failure,bt.retryAvailable=!1,bt.loginProcessComplete=!0,this.idmTelemetryService.sendLoginFailureUserSessionEvent(cn),this.closeOffDeviceAuthDialog(bt.state);break;case Kt.l4.LoginFailedToStart:bt.state=Bl.Failure,bt.loginProcessComplete=!0,this.idmTelemetryService.sendCreateHTTPServerErrorEvent(),this.closeOffDeviceAuthDialog(bt.state);break;case Kt.l4.LoginInProgressNeedDisplayCode:this.onNeedDisplayCode()}return this.loginStatus$.next(bt),bt})).subscribe()}onNeedDisplayCode(){const C=this.idmService.getDeviceDisplayCode().url,w=this.idmService.getDeviceDisplayCode().url_complete,Q=this.idmService.getDeviceDisplayCode().user_code;let me;if(Q&&(me=(0,al.zC)(Q)),!C||!w||!Q)throw new Error(`Failed to launch login bridge dialog. deviceAuthUri: ${C}, deviceAuthUriComplete: ${w}, rawCode: ${Q}`);{const Ye=this.appConfig.featureEnablement.preferBottomSheetForLogin?{link:{url:w,text:""}}:{image:{url:w}},bt={panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:(0,al.ZE)(C)},primaryButton:{text:"common.cancelTitleCase"},bodyText:{text:"loginBridgeState.deviceAuthLogin",placeholders:{authCode:`<div class="font-header3 white">${me}</div>`}},footerText:{text:"loginBridgeState.deviceAuthHint"},...Ye}};this.openOffDeviceLoginDialog(bt)}}openOffDeviceLoginDialog(C){this.closeOffDeviceAuthDialog(),this.offDeviceAuthDialogRef=this.genericDialog.open(C,{preferredDialogType:this.appConfig.featureEnablement.preferBottomSheetForLogin?T.QO.BottomSheet:T.QO.ThreeQuarterSheet}),this.offDeviceAuthDialogRef.backToCloseResult=this.backToCloseResult,this.offDeviceDialogClosedStateSubject.next(!1),this.offDeviceAuthDialogRef.afterClosed().pipe((0,g.s)(1)).subscribe(Q=>{this.offDeviceDialogClosedStateSubject.next(!0)}),this.offDeviceDialogSubscription=(0,rr.O4)([this.offDeviceAuthDialogRef.primaryButtonClick,this.offDeviceAuthDialogRef.afterClosed()]).subscribe(()=>{this.cancelLogin(),this.closeOffDeviceAuthDialog()})}isOffDeviceDialogClosed(){return this.offDeviceDialogClosedStateSubject.asObservable()}closeOffDeviceAuthDialog(C){if(this.offDeviceAuthDialogRef){const w=C??Bl.Unknown;this.offDeviceDialogSubscription?.unsubscribe(),this.offDeviceDialogSubscription=null,this.offDeviceAuthDialogRef?.close(),this.offDeviceAuthDialogRef=void 0,this.loginStatus$.next({loginProcessComplete:!0,state:w,errorMessage:"",retryAvailable:!0})}}get returnLocationURL(){return this._returnLocationURL??Ii.f.Home}updateReturnLocationURL(C){this._returnLocationURL=C?C===Ii.f.Base?Ii.f.Home:C:Ii.f.Home}getDefaultLoginProviderInfo(){return this.loginProviderInfo$.asObservable()}getLoginWallBackgroundContent(){return this.loginWallBackgroundData$.asObservable()}getLoginWallStrings(){return this.loginWallStrings$.asObservable()}getClientVersionString(){return this.clientVersionString$.asObservable()}getLearnMoreUrl(){return this.redirectService.getRedirectUrl(At.r7.GfnPcInfo).pipe((0,g.s)(1),(0,wt.T)(C=>({redirectURL:C,shortURL:At.lp[At.r7.GfnPcInfo]})))}getBackgroundInfo(C){return this.getBackgroundContentParameters(C).contentType===_s.Game?(0,it.of)({contentType:_s.Game,fallbackImageUrls:[""]}):(0,it.of)({contentType:_s.Catalog,fallbackImageUrls:["assets/img/LoginWallFallbackTile.png"]})}initialize(){this.isLoginWallEnabled().pipe((0,g.s)(1),(0,ge.p)(C=>C)).subscribe(C=>{this.initializeNavigateOnLogoutSubscription(),this.fetchSsoLoginInfo(),this.fetchProviderInfo(),this.fetchUnsupportedScenarioInfo(),this.fetchClientVersion(),this.fetchPWAInfo(),this.checkForOOBEClosed()})}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(l.J6),c.KVO(Ai.k_),c.KVO(Cp),c.KVO(Ii.R6),c.KVO(qe.l),c.KVO(yt),c.KVO(dh.w),c.KVO(l.Pl),c.KVO(At.Q5),c.KVO(Pg),c.KVO(Mi.Vk),c.KVO(T.uh),c.KVO(au.Lk),c.KVO(oa),c.KVO(l.iH),c.KVO(qf),c.KVO(Ze.c$),c.KVO(Ud.J),c.KVO(l.IU),c.KVO(ri.nf),c.KVO(Bg.Z))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),lC=(()=>{var j;class Ke{constructor(){this.streamerConfig=new J.t(this.createStreamerConfigFromSearchParameters())}get activeConfig(){return(0,xe.eJ)(this.streamerConfig.value)}set activeConfig(C){this.streamerConfig.next((0,xe.eJ)(C))}get config$(){return this.streamerConfig.asObservable()}createStreamerConfigFromSearchParameters(){const C=window.location.hash;return(0,Ii.y1)(C)}}return(j=Ke).\u0275fac=function(C){return new(C||j)},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})(),w_=(()=>{var j;class Ke{constructor(C,w){this.guestModeHelperService=C,this.oscEnabled=!!w.featureEnablement?.osc}isOscEnabled(){return this.guestModeHelperService.isGuestMode?this.oscEnabled&&this.guestModeHelperService.getGuestModeConfig()?.isOSCEnabled||this.guestModeHelperService.getForceTouchModeSettings()?.useOsc:this.oscEnabled}}return(j=Ke).\u0275fac=function(C){return new(C||j)(c.KVO(tt.x),c.KVO(Mi.Vk))},j.\u0275prov=c.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),Ke})();d(68868)},25167:(Ue,W,d)=>{"use strict";d.d(W,{s:()=>c});var n=d(80583),l=d(31315),p=d(43848),m=d(35146),_=d(25590),P=d(65706),v=d(83915),O=d(74931),S=d(3567),y=d(97152),r=d(27862),i=d(25216),a=d(16706),h=d(58527),g=d(78812);let c=(()=>{var T;class A{constructor(x,V,D,F,I,k,R,G,Y,K,$,ee,J,z,te){this.telemetryService=V,this.streamerConfigService=D,this.streamingManagerService=F,this.networkConfigurationService=I,this.streamingProfileService=k,this.bridgeService=R,this.networkTestService=G,this.serverRoutingService=Y,this.gameLaunchAnalyticsService=K,this.pathService=$,this.guestModeHelperService=ee,this.ownershipSyncService=J,this.ecommerceService=z,this.sharedSettingsService=te,this.oobeShown=!1,this.gameLaunchStepList=[i.H.UpdateCheck,i.H.PreStreaming,i.H.Authentication,i.H.PlatformSelection,i.H.AccountLinking,i.H.Authorization,i.H.NetworkTest,i.H.Loading],this.overlappingDurations=[y.iVs.Lbr,y.iVs.SessionQueue],this.seatSetupDurations=[y.iVs.StreamerClientSetupDuration,y.iVs.StreamerConnectionDuration,y.iVs.SeatConfigDuration,y.iVs.StreamingStartDuration,y.iVs.SessionQueue],this.seatSetupOverlappingDurations=[y.iVs.StreamerConnectionDuration,y.iVs.SeatConfigDuration,y.iVs.SessionQueue],this.gameFeatureState=[{name:"",state:""}],this.seatSetupSequence$=new n.B7,this.seatSetupSequenceCount=[],this.logger=x.getLogger("gameSessionAnalyticsService"),this.resetNetworkTestResult(),this.resetResumeType(),this.resetGameLaunchDurationsMatrix(),this.resetdialogInteractionDurations(),this.pathService.onExitingStreamer.subscribe(X=>{X&&this.cleanupGameLaunchMetrics()}),this.seatSetupEventSequence=[],this.recordAndLogSeatSetupSequence()}resetNetworkTestResult(){this.networkTestUIResult=y.qH9.Unknown}resetResumeType(){this.resumeType=y.yEy.None}getStreamingManagerCallbacks(x){return{callbackContext:this,onStateBegin:()=>{},onStateEnd:this.generateCallback(x).bind(this),onTerminalError:V=>this.onErrorState(x,V)}}initGameSessionAnalytics(){this.gameLaunchStepList.forEach(x=>{this.streamingManagerService.register(x,this.getStreamingManagerCallbacks(x))}),this.networkTestService.lbrState.subscribe(x=>{this.streamingManagerService.inActiveState()?x===y.Kfi.Started?this.startGameLaunchDuration(y.iVs.Lbr):x===y.Kfi.Finished&&this.stopGameLaunchDuration(y.iVs.Lbr):this.logger.info("Skipping LBR duation measrement since not triggered from Game Launch path")})}handleGeronimoLaunchResult(x,V=""){this.sendGameLaunchDurationEvent(x,V)}nextSeatSeatupEvent(x,V){this.seatSetupSequence$.next([x,V])}recordAndLogSeatSetupSequence(){this.seatSetupSequence$.subscribe(([x,V])=>{V?(this.logger.info("Seat setup sequence and count is ",this.seatSetupSequenceCount),this.seatSetupSequenceCount=[]):0!==this.seatSetupSequenceCount.length&&this.seatSetupSequenceCount.slice(-1)[0][0]!==x||0===this.seatSetupSequenceCount.length?this.seatSetupSequenceCount.push([x,1]):this.seatSetupSequenceCount[this.seatSetupSequenceCount.length-1][1]+=1})}handleGameLaunchFailure(x){this.sendGameLaunchDurationEvent(x)}updateGameLaunchDurations(x,V){this.updateSeatSetupEventSequence(V),this.stopGameLaunchDuration(x),V?(this.seatSetupOverlappingDurations.includes(V)&&this.gameLaunchDurations.get(V).duration&&(this.gameLaunchDurations.get(V).previousDurationCarry=this.gameLaunchDurations.get(V).duration),this.gameLaunchDurations.get(V).start=Date.now()):this.logger.info("Game launch durations measured upto session start: ",this.gameLaunchDurations)}moveGameLaunchDuration(x,V){this.gameLaunchDurations.get(x).start=this.gameLaunchDurations.get(V).start,this.gameLaunchDurations.get(x).duration=this.gameLaunchDurations.get(V).duration,this.gameLaunchDurations.get(V).start=0,this.gameLaunchDurations.get(V).duration=0}startGameLaunchDuration(x){x===y.iVs.StreamerClientSetupDuration&&(this.seatSetupEventSequence=[],this.updateSeatSetupEventSequence(y.iVs.StreamerClientSetupDuration)),this.gameLaunchDurations.get(x).start&&this.resetGameLaunchDuration(x),this.logger.info("starting game launch step duration",x),this.gameLaunchDurations.get(x).start=x===y.iVs.StreamerJsInit?window.jsInitStartTs:Date.now()}stopGameLaunchDuration(x){const V=this.gameLaunchDurations.get(x).start;this.logger.info("Current step: ",x," , Time stamp: ",V),this.gameLaunchDurations.get(x).duration=0!==V?Date.now()-V:0,this.seatSetupOverlappingDurations.includes(x)&&this.gameLaunchDurations.get(x).previousDurationCarry&&(this.gameLaunchDurations.get(x).duration+=this.gameLaunchDurations.get(x).previousDurationCarry,this.gameLaunchDurations.get(x).previousDurationCarry=0),this.logger.info("Game launch duration for ",x," is: ",this.gameLaunchDurations.get(x).duration)}resetGameLaunchDuration(x){this.logger.info("reset game launch duration for step: ",x),this.gameLaunchDurations.get(x).duration=0,this.gameLaunchDurations.get(x).start=0,this.gameLaunchDurations.get(x).previousDurationCarry=0}setIsOobeShown(x){this.oobeShown=x}setDialogInteractionDuration(x,V){this.dialogInteractionDurations.set(x,V)}setNetworkTestUIResult(x){this.networkTestUIResult=x}setAuthenticationStatus(x){this.authenticationStatus=x}setResumeType(x){this.resumeType=x}getVSyncMode(x){return x===y._RN.ValueAdaptive.value?y.HjG.Adaptive:x===y._RN.ValueOn.value?y.HjG.On:y.HjG.Off}sendStreamingProfileEvent(){(0,l.zV)([this.streamingProfileService.getStreamingProfile(),this.sharedSettingsService.persistInGameGraphicsEnabled()]).pipe((0,_.E)(this.streamingProfileService.getStreamingProfileGuid()),(0,P.s)(1)).subscribe(([[x,V],D])=>{const F={profileName:x.name,resolutionHeight:x.height,resolutionWidth:x.width,aspectRatio:x.aspectRatio,framerate:x.fps,maxBitrate:x.maxBitrate,DRC:x.drc?y.T80.TRUE:y.T80.FALSE,vSyncSetting:this.getVSyncMode(x.vSync),streamingProfileGuid:D,hdrEnabled:x.hdrStreaming?y.T80.TRUE:y.T80.FALSE,reflexEnabled:x.reflex?y.T80.TRUE:y.T80.FALSE,cloudGsyncEnabled:x.cloudGsync?y.T80.TRUE:y.T80.FALSE,inGameGraphicsSetting:V?y.T80.TRUE:y.T80.FALSE,audioChannelCount:x.audioMode,l4sEnabled:x.l4sEnabled?y.T80.TRUE:y.T80.FALSE,bitDepth:x?.bitDepth??y.BxN.value};this.telemetryService.push(new y.HOo(F))},x=>{this.logger.error("Failed to get streaming profile settings: ",x)})}resetGameLaunchDurationsMatrix(){this.seatSetupEventSequence=[],this.gameLaunchDurations=new Map;for(const x in y.iVs)this.gameLaunchDurations.hasOwnProperty(x)||this.gameLaunchDurations.set(y.iVs[x],{start:0,duration:0,previousDurationCarry:0})}resetdialogInteractionDurations(){this.dialogInteractionDurations=new Map;for(const x in r.U)this.dialogInteractionDurations.hasOwnProperty(x)||this.dialogInteractionDurations.set(r.U[x],0)}calculateLaunchDuration(){const x=this.gameLaunchAnalyticsService.getGameLaunchMetadata(),V=x.launchTs,D=this.gameLaunchDurations.get(y.iVs.StreamerJsInit).start;this.logger.info("initiallaunchts",V,"currentTs",Date.now());const F=this.streamerConfigService.activeConfig.launchSource;if(S.zk.isCefPlatform()){let I=0,k=0;return this.logger.info("Mall is running:",x.isMallRunning),x.isMallRunning?(this.isWarmLaunch=!0,k=0,I=F===y.vhU.GeForceNOW||x.isFromGameChangeDialog?0:D-V,this.updateGameLaunchStartupDurations({start:V,duration:k,previousDurationCarry:0}),(0,p.of)(I)):this.bridgeService.executeCommand(O.Ts.Common.Applicationinfo.GetApplicationTimeInfo,{type:O.Or.Common.Applicationinfo.ApplicationTimeType.Launch}).pipe((0,v.T)(R=>(this.isWarmLaunch=R.isWarmLaunch||!1,this.logger.info("applaunchtimeinfo",R),x.isFromGameChangeDialog||(V>0&&V>R.startTime&&(k=V-R.startTime),I=D-R.startTime),this.updateGameLaunchStartupDurations({start:V,duration:k,previousDurationCarry:0},{start:R.startTime,duration:I,previousDurationCarry:0}),I)))}return 0!==V&&this.updateGameLaunchStartupDurations({start:V,duration:D-V,previousDurationCarry:0}),(0,p.of)(0)}updateGameLaunchStartupDurations(x,V){x&&(this.gameLaunchDurations.get(y.iVs.InitialLaunch).start=x.start,this.gameLaunchDurations.get(y.iVs.InitialLaunch).duration=x.duration),V&&(this.gameLaunchDurations.get(y.iVs.StreamerCefInit).start=V.start,this.gameLaunchDurations.get(y.iVs.StreamerCefInit).duration=V.duration)}onErrorState(x,V){if(x===V.errorSourceState)switch(V.errorSourceState){case i.H.Authentication:this.logger.info(`Error ${V.errorData.errorCode} occured on state Authentication`),this.sendGameLaunchSourceInfoTelemetry();break;case i.H.Authorization:{this.logger.info(`Error ${V.errorData.errorCode} occured on state Authorization`);const D={isResume:!1,status:V.errorData.errorCode===a._U.NotEntitled?y.fbu.NesNotEntitled:y.fbu.NesAuthFailed,errorDetails:V.errorData.errorCode.toString()};this.sendGameLaunchDurationEvent(D);break}}}generateCallback(x){return()=>{this.onStateEndInternal(x)}}onStateEndInternal(x){switch(x){case i.H.Init:this.startGameLaunchDuration(y.iVs.UpdateCheck);break;case i.H.UpdateCheck:this.updateGameLaunchDurations(y.iVs.UpdateCheck,y.iVs.PreStreaming);break;case i.H.PreStreaming:{this.stopGameLaunchDuration(y.iVs.PreStreaming);const V=Date.now();this.gameLaunchDurations.get(y.iVs.ManualLoginEntry).start=V,this.gameLaunchDurations.get(y.iVs.AutoLogin).start=V;break}case i.H.Authentication:this.authenticationStatus!==r.J.AUTO_LOGIN?(this.resetGameLaunchDuration(y.iVs.AutoLogin),this.updateGameLaunchDurations(y.iVs.ManualLoginEntry,y.iVs.PlatformSelection)):(this.resetGameLaunchDuration(y.iVs.ManualLoginEntry),this.updateGameLaunchDurations(y.iVs.AutoLogin,y.iVs.PlatformSelection)),this.sendGameLaunchSourceInfoTelemetry();break;case i.H.PlatformSelection:this.updateGameLaunchDurations(y.iVs.PlatformSelection,y.iVs.AccountLinking);break;case i.H.AccountLinking:this.updateGameLaunchDurations(y.iVs.AccountLinking,y.iVs.NesAuthorization);break;case i.H.Authorization:this.updateGameLaunchDurations(y.iVs.NesAuthorization,y.iVs.NetworkTest);break;case i.H.NetworkTest:this.updateGameLaunchDurations(y.iVs.NetworkTest,y.iVs.StartSession),this.startGameLaunchDuration(y.iVs.StreamerClientSetupDuration);break;case i.H.Loading:this.sendStreamingProfileEvent()}}updateSeatSetupEventSequence(x){this.seatSetupDurations.includes(x)&&this.seatSetupEventSequence.push(x)}getSeatSetupEventSequence(){return this.seatSetupEventSequence}resetSeatSetupEventSequence(x){x?(this.seatSetupEventSequence=[],this.resetGameLaunchDuration(y.iVs.StreamerClientSetupDuration),this.resetGameLaunchDuration(y.iVs.StreamerConnectionDuration),this.resetGameLaunchDuration(y.iVs.SeatConfigDuration),this.resetGameLaunchDuration(y.iVs.StreamingStartDuration)):this.seatSetupEventSequence.length>=1&&this.updateGameLaunchDurations(this.seatSetupEventSequence[this.seatSetupEventSequence.length-1],void 0)}setGameFeatureState(x){this.logger.info("Game feature updated",x),this.gameFeatureState=x}getAccountLinksData(){const x=this.ownershipSyncService.getAccountLinkingAnalyticsInfo(),V=[];for(const D of x)D.isAccountSyncSupported?V.push(D.providerType+(D.isSynced?"_SYNCED":"_UNSYNCED")):D.isAccountLinkingSsoAvailable&&V.push(D.providerType+(D.isAccountLinked?"_LINKED":"_UNLINKED"));return V}sendGameLaunchSourceInfoTelemetry(){const x=this.streamerConfigService.activeConfig.shortName??"",V=this.streamerConfigService.activeConfig.launchSource,F=this.gameLaunchAnalyticsService.getGameLaunchMetadata().epicAccountLinked?y.T80.TRUE:y.T80.FALSE;this.logger.info("Game launch source for game: ",x," is :",V),(0,m.yU)(this.telemetryService.getDefaultClientConsentObserable(),this.telemetryService.getCommonDataObservable()).subscribe(I=>{this.logger.info("Sending Game launch event for game: ",x);const k=this.guestModeHelperService.isGuestMode?{useBeacon:!0}:null;this.telemetryService.push(new y.RXY({gameShortName:x,gameLaunchSource:V,epicAccountLinked:F,accountLinks:this.getAccountLinksData()}),null,k)})}getNetworkTestDuration(){const x=this.gameLaunchDurations.get(y.iVs.NetworkTest).duration,V=this.gameLaunchDurations.get(y.iVs.Lbr).duration;return x>0?x-V:0}getStartSessionDuration(){const x=this.gameLaunchDurations.get(y.iVs.StartSession).duration,V=this.gameLaunchDurations.get(y.iVs.SessionQueue).duration;return x>0?x-V:0}getTotalGameLaunchDuration(){let x=0;return this.gameLaunchDurations.forEach((V,D)=>{!this.overlappingDurations.includes(D)&&!this.seatSetupEventSequence.includes(D)&&(x+=V.duration)}),x-=this.getTotaldialogInteractionDuration(),x}getTotaldialogInteractionDuration(){let x=0;return this.dialogInteractionDurations.forEach(V=>{x+=V}),x}getGameLaunchTelemetryStatus(x){return x&&Object.values(y.fbu).includes(x.status)?x.status:y.fbu.Success}sendGameLaunchDurationEvent(x,V=""){const D=this.streamerConfigService.activeConfig.shortName??"",F=this.streamerConfigService.activeConfig.launchSource,I=this.gameLaunchAnalyticsService.getGameLaunchMetadata(),k=I.shortName;if(this.logger.info(`Sending game launch metrics for game: ${D}, game in `,`metadata: ${k}, and game was launched via ${F}.`),k&&k!==D&&F!==y.vhU.External&&F!==y.vhU.Deeplink)return this.logger.error(`Event not sent! Game launched: ${D}, is different from the game launch info in `,`memory: ${k}, and game was launched via mallclient.`),void this.cleanupGameLaunchMetrics();const R=this.calculateLaunchDuration(),G=this.networkConfigurationService.getNetworkOverride();(0,m.yU)(G,R).pipe((0,P.s)(1)).subscribe(([Y,K])=>{const $=y.iVs,ee=new y.GSb({lbrDuration:this.gameLaunchDurations.get($.Lbr).duration,initialLaunchDuration:this.gameLaunchDurations.get($.InitialLaunch).duration,totalLaunchDuration:this.getTotalGameLaunchDuration(),platformSelectionDuration:this.gameLaunchDurations.get($.PlatformSelection).duration-this.dialogInteractionDurations.get(r.U.PlatformSelection),accountLinkingDuration:this.gameLaunchDurations.get($.AccountLinking).duration-this.dialogInteractionDurations.get(r.U.AccountLinking),nesAuthorizationDuration:this.gameLaunchDurations.get($.NesAuthorization).duration,geronimoLaunchDuration:0,manualLoginEntryDuration:this.gameLaunchDurations.get($.ManualLoginEntry).duration,lbrRun:this.serverRoutingService.isLbrRun?y.T80.TRUE:y.T80.FALSE,resumeType:this.resumeType,networkTestDuration:this.getNetworkTestDuration(),isResume:x&&!0===x.isResume?y.T80.TRUE:y.T80.FALSE,networkTestUiResult:this.networkTestUIResult,accountLinked:this.streamerConfigService.activeConfig.accountLinked?y.T80.TRUE:y.T80.FALSE,overrideActive:Y?y.T80.TRUE:y.T80.FALSE,sessionCleanupDuration:this.gameLaunchDurations.get($.SessionCleanup).duration,sessionQueueDuration:this.gameLaunchDurations.get($.SessionQueue).duration,autoLoginDuration:this.gameLaunchDurations.get($.AutoLogin).duration,streamerCefStartupDuration:this.gameLaunchDurations.get($.StreamerCefInit).duration,networkTestRun:this.networkTestService.isNetworkTestRun?y.T80.TRUE:y.T80.FALSE,gameLaunchSource:F,oobeShown:this.oobeShown?y.T80.TRUE:y.T80.FALSE,isWarmLaunch:this.isWarmLaunch?y.T80.TRUE:y.T80.FALSE,streamerJsStartupDuration:this.gameLaunchDurations.get($.StreamerJsInit).duration,sessionId:V||"",oobeCheckDuration:this.gameLaunchDurations.get($.PreStreaming).duration,startSessionDuration:this.getStartSessionDuration(),overrideZone:Y?.address??"",isFromGameChangeDialog:I.isFromGameChangeDialog?y.T80.TRUE:y.T80.FALSE,gameShortName:D,updateCheckDuration:this.gameLaunchDurations.get($.UpdateCheck).duration,status:this.getGameLaunchTelemetryStatus(x),errorDetails:x?x.errorDetails:"",streamerClientSetupDuration:this.gameLaunchDurations.get(y.iVs.StreamerClientSetupDuration).duration,streamerConnectionDuration:this.gameLaunchDurations.get(y.iVs.StreamerConnectionDuration).duration,seatConfigDuration:this.gameLaunchDurations.get(y.iVs.SeatConfigDuration).duration,streamingStartDuration:this.gameLaunchDurations.get(y.iVs.StreamingStartDuration).duration,featuresState:this.gameFeatureState,accountLinks:this.getAccountLinksData(),remainingPlaytimeState:this.ecommerceService.isLimitedState?y.BEl.Limited:y.BEl.Full});this.logger.info("Printing seat setup event sequence ",this.seatSetupEventSequence),this.telemetryService.push(ee,null,this.guestModeHelperService.isGuestMode?{useBeacon:!0}:null),this.cleanupGameLaunchMetrics()})}cleanupGameLaunchMetrics(){this.serverRoutingService.resetLbrStatus(),this.networkTestService.resetNetworkTestStatus(),this.resetNetworkTestResult(),this.resetResumeType(),this.resetGameLaunchDurationsMatrix(),this.gameLaunchAnalyticsService.resetGameLaunchMetadata(!0),this.resetdialogInteractionDurations()}}return(T=A).\u0275fac=function(x){return new(x||T)(h.KVO(S.J6),h.KVO(g.H0),h.KVO(y.zi2),h.KVO(i.cp),h.KVO(y.uUB),h.KVO(y.xfC),h.KVO(S.NZ),h.KVO(y.qIF),h.KVO(y.bo5),h.KVO(y.$w$),h.KVO(y.R6l),h.KVO(y.xDS),h.KVO(y.Itz),h.KVO(y.yJU),h.KVO(y.h$Q))},T.\u0275prov=h.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),A})()},27862:(Ue,W,d)=>{"use strict";d.d(W,{J:()=>n,U:()=>l});var n=function(p){return p[p.AUTO_LOGIN=0]="AUTO_LOGIN",p[p.MANUAL_LOGIN=1]="MANUAL_LOGIN",p[p.EMAIL_VERIFICATION=2]="EMAIL_VERIFICATION",p}(n||{}),l=function(p){return p.PlatformSelection="platformSelection",p.AccountLinking="accountLinking",p}(l||{})},97663:(Ue,W,d)=>{"use strict";d.d(W,{z:()=>S});var n=d(2490),l=d(25216),p=d(26875),_=d(97152),P=d(58527),v=d(3567),O=d(78812);let S=(()=>{var y;class r{constructor(a,h,g,c,T){this.streamingManagerService=h,this.distributedTracingUtilService=g,this.networkConfigurationService=c,this.telemetryService=T,this.gameLaunchStepList=[l.H.UpdateCheck,l.H.PreStreaming,l.H.Authentication,l.H.PlatformSelection,l.H.AccountLinking,l.H.Authorization,l.H.NetworkTest,l.H.Loading],this.logger=a.getLogger("gameSessionDistributedTracingService"),this.streamerStateToSpanMap=new Map}getSpanName(a){switch(a){case l.H.UpdateCheck:return n.pB.UpdateCheck;case l.H.PreStreaming:return n.pB.PreStreaming;case l.H.Authentication:return n.pB.StreamerAuthentication;case l.H.PlatformSelection:return n.pB.PlatformSelection;case l.H.AccountLinking:return n.pB.AccountLinking;case l.H.Authorization:return n.pB.StreamerAuthorization;case l.H.NetworkTest:return n.pB.StreamerNetworktest;case l.H.Loading:return n.pB.SessionLoading;default:return a.name}}getStreamingManagerCallbacks(a){return{callbackContext:this,onStateBegin:this.generateBeginStateCallback(a).bind(this),onStateEnd:this.generateEndStateCallback(a).bind(this),onTerminalError:h=>this.onErrorState(a,h)}}generateBeginStateCallback(a){return()=>{this.logger.info("Generating Span for state:",a.name);const h=this.getSpanName(a),g=this.distributedTracingUtilService.startSpan(h,this.gameLaunchSpan);this.streamerStateToSpanMap.set(a,g)}}generateEndStateCallback(a){return()=>{const h=this.streamerStateToSpanMap.get(a);(0,p.isNil)(h)||(this.logger.info("Closing span for state:",a.name),a===l.H.Authentication&&this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.LoginWindowShown,this.telemetryService.getScreen()!==_.MCB.ScreenAutoLogin),this.distributedTracingUtilService.closeSpan(h))}}onErrorState(a,h){if(a===h.errorSourceState){(0,p.isNil)(this.gameLaunchSpan)||(this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.Error,!0),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.FailurePoint,h.errorSourceState.name),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.ErrorType,h.errorData.errorType),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.ErrorCode,h.errorData.errorCode),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.HttpStatusCode,h.errorData.httpErrorCode));const g=this.streamerStateToSpanMap.get(a);(0,p.isNil)(g)||this.distributedTracingUtilService.setSpanAttribute(g,n.NS.Error,!0)}this.closeGameLaunchSpan()}subscribeToOverrideZone(){this.networkConfigurationService.getNetworkOverride().subscribe(a=>{(0,p.isNil)(this.gameLaunchSpan)||(this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.RoutingOverrideUsed,!(0,p.isNil)(a)),(0,p.isNil)(a)||(this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.OverrideZoneName,a.name),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.OverrideZoneAddress,a.address)))})}closeGameLaunchSpan(a){(0,p.isNil)(this.gameLaunchSpan)||((0,p.isNil)(a)||(this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.IsSessionAutoResumed,a.isResume),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.ErrorDetails,a.errorDetails),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.Error,a.status!==_.fbu.Success)),this.distributedTracingUtilService.closeSpan(this.gameLaunchSpan))}initGameSessionDistributedTracing(){this.gameLaunchStepList.forEach(a=>{this.streamingManagerService.register(a,this.getStreamingManagerCallbacks(a))})}startGameLaunchSpan(a){this.gameLaunchSpan=this.distributedTracingUtilService.startSpan(n.pB.GameLaunch),this.subscribeToOverrideZone(),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.LaunchSource,a.launchSource),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.CmsId,a.cmsId),this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.ShortName,a.shortName)}setAttributeOnGameLaunchSpan(a,h){(0,p.isNil)(this.gameLaunchSpan)||this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,a,h)}updateGeronimoLaunchInfo(a,h){(0,p.isNil)(this.gameLaunchSpan)||this.distributedTracingUtilService.setSpanAttribute(this.gameLaunchSpan,n.NS.SessionId,h),this.closeGameLaunchSpan(a)}getCurrentActiveSpan(){return this.streamerStateToSpanMap.get(this.streamingManagerService.getCurrentState())}}return(y=r).\u0275fac=function(a){return new(a||y)(P.KVO(v.J6),P.KVO(l.cp),P.KVO(n.Z1),P.KVO(_.uUB),P.KVO(O.H0))},y.\u0275prov=P.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),r})()},16485:(Ue,W,d)=>{"use strict";d.d(W,{fz:()=>v,Gm:()=>T,cD:()=>m});var n=d(83915),l=d(26875),p=d(74931),m=function(L){return L[L.Closed=0]="Closed",L[L.Open=1]="Open",L[L.OpenWithInput=2]="OpenWithInput",L}(m||{});const P="OsrHandler has already been destroyed";let v=(()=>{class x{constructor(D,F,I,k,R){this.bridgeService=F,this.spatialNavigationService=k,this.gamepadNavigationService=R,this.desiredOsrState=m.Closed,this.logTag="",this.logger=D.getLogger("gfn/osr-handler"),this.destroyed=!1,this.logTag=I,x.registeredHandlers.push(this),this.logger.info("Created new OSR component",this.logTag)}static getStringListOfRegisteredHandlers(){let D="";return this.registeredHandlers.forEach(F=>D+=`\nState: ${F.desiredOsrState}, Parent: ${F.logTag}`),D}static clearHandlers(){this.registeredHandlers=[]}static getHighestRequestedState(){return 0===x.registeredHandlers.length?m.Closed:x.registeredHandlers.reduce((D,F)=>D.desiredOsrState>F.desiredOsrState?D:F).desiredOsrState}convertOsrReturnToOsrState(D,F){switch(D){case"osrOpen":return F?m.OpenWithInput:m.Open;case"osrClose":return m.Closed;default:return this.logger.error("Unknown osr return string: "+D+" returning closed"),m.Closed}}open(D=!1){if(this.destroyed)throw new Error(P);return this.desiredOsrState=D?m.OpenWithInput:m.Open,this.executeCommandForDesiredState(x.getHighestRequestedState())}close(){if(this.destroyed)throw new Error(P);return this.desiredOsrState=m.Closed,this.executeCommandForDesiredState(x.getHighestRequestedState())}closeAndDestroy(){if(this.destroyed)throw new Error(P);return this.desiredOsrState=m.Closed,this.destroyed=!0,x.registeredHandlers=(0,l.without)(x.registeredHandlers,this),this.executeCommandForDesiredState(x.getHighestRequestedState())}executeCommandForDesiredState(D){this.logger.info("List of all handlers, highest requested state:",D,x.getStringListOfRegisteredHandlers());let I,F=!1;switch(D){case m.OpenWithInput:F=!0,I=this.openOsrInternal(F);break;case m.Open:I=this.openOsrInternal(F);break;case m.Closed:I=this.closeOsrInternal();break;default:this.logger.error("Unknown desired osr state: "+D+" calling close"),I=this.closeOsrInternal()}return I.pipe((0,n.T)(k=>this.convertOsrReturnToOsrState(k,F)))}openOsrInternal(D){return this.spatialNavigationService.activated=D,this.gamepadNavigationService.activated=D,this.bridgeService.executeCommand(p.Ts.Gfn.Streaming.OpenOsr,{enableInput:D})}closeOsrInternal(){return this.spatialNavigationService.activated=!1,this.gamepadNavigationService.activated=!1,this.bridgeService.executeCommand(p.Ts.Gfn.Streaming.CloseOsr)}}return x.registeredHandlers=[],x})();var O=d(26537),S=d(16490),y=d(61876),r=d(65706),i=d(75707),a=d(14714),h=d(58527),g=d(3567),c=d(97152);let T=(()=>{var L;class x{constructor(D,F,I,k){this.loggingService=D,this.bridgeService=F,this.spatialNavigationService=I,this.gamepadNavigationService=k,this.logger=D.getLogger("gfn/osr-handler-service")}createOsrHandler(D){return this.logger.info("Creating new OsrHandler instance"),new v(this.loggingService,this.bridgeService,D,this.spatialNavigationService,this.gamepadNavigationService)}attachOsrHandlerForModal(D,F){let I,k,R;if(D instanceof O.CP)I="MatDialogRef",k=D.afterOpened(),R=D.afterClosed();else if(D instanceof S.eN)I="MatBottomSheetRef",k=D.afterOpened(),R=D.afterDismissed();else{if(!(D instanceof y.f$))throw new Error("not a supported type.");I="NvHigGenericDialogRef",k=D.afterOpened(),R=D.afterClosed()}if(!k||!R)throw new Error("Either afterOpen$ or afterClosed$ is not assigned.");return this.withOsrHandler(I,k,R,F),D}withOsrHandler(D,F,I,k){const R=this.createOsrHandler(D);return F.pipe((0,r.s)(1),(0,i.ZZ)(()=>R.open(k)),(0,i.ZZ)(()=>I.pipe((0,r.s)(1),(0,i.ZZ)(()=>R.closeAndDestroy()))),(0,a.W)(G=>(this.logger.info(`open osr failed. message: ${G.message}`),R.closeAndDestroy())),(0,r.s)(1)).subscribe(),R}}return(L=x).\u0275fac=function(D){return new(D||L)(h.KVO(g.J6),h.KVO(g.NZ),h.KVO(y.ED),h.KVO(c.$vj))},L.\u0275prov=h.jDH({token:L,factory:L.\u0275fac,providedIn:"root"}),x})()},16706:(Ue,W,d)=>{"use strict";d.d(W,{_U:()=>P,gn:()=>_});var _=function(O){return O[O.InvalidParams=0]="InvalidParams",O[O.NetworkError=1]="NetworkError",O[O.ZeroCmsId=2]="ZeroCmsId",O[O.ScheduledMaintenance=3]="ScheduledMaintenance",O[O.UnsupportedPlatform=4]="UnsupportedPlatform",O[O.UnsupportedBrowser=5]="UnsupportedBrowser",O[O.PWARequired=6]="PWARequired",O[O.NativeAppOnly=7]="NativeAppOnly",O[O.GenericUnsupportedError=8]="GenericUnsupportedError",O[O.OpportunityAborted=9]="OpportunityAborted",O}(_||{}),P=function(O){return O[O.UnsupportedRegion=0]="UnsupportedRegion",O[O.NotAffiliateEntitled=1]="NotAffiliateEntitled",O[O.NotEntitled=2]="NotEntitled",O[O.Unknown=3]="Unknown",O}(P||{})},93455:(Ue,W,d)=>{"use strict";d.d(W,{R3:()=>un,ac:()=>En,vy:()=>Bn,uw:()=>zt,E3:()=>Ne});var n=d(26875),l=d(36203),p=d(97152);d(16706);var S=d(25216);d(90929);var i=d(3567);d(2490),d(27862),d(97663),d(25167);var V=d(78812),D=d(68130),I=d(74931);d(61876),d(44968),d(1794),d(57388),d(72945);var ke=d(26513),De=d(80583),Me=d(43848),je=d(31315),$e=d(72147),Oe=d(53461),gt=d(55833),qt=d(14714),ye=d(83915),Re=d(8619),Ze=d(58527),et=d(20381),xt=d(67017);let un=(()=>{var vt;class Ct{get imeInputInProgress(){return this.imeOpened.value}get imeOpened$(){return this.imeOpened.asObservable()}get imeInputAction$(){return this.imeInputActionSubject.asObservable()}get imeInputTextVisible$(){return this.imeInputTextVisibleSubject.asObservable()}constructor(Ut,jn,wn,nt,on,mt,_n,wt,Un,Oi,At){this.configuration=wn,this.streamingService=nt,this.telemetryService=on,this.streamerManagerService=mt,this.bridgeService=_n,this.experienceControl=wt,this.keyboardLayoutService=Un,this.networkStatusService=Oi,this.appConfig=At,this.activeUiHandle=null,this.imeEnabled=!1,this.imeOpened=new ke.t(!1),this.imeInputActionSubject=new De.B7,this.imeInputTextVisibleSubject=new De.B7,this.logger=jn.getLogger("ClientImeLoaderService"),this.mobileMode=!!this.appConfig?.featureEnablement?.mobileMode,this.tvMode=!!this.appConfig?.featureEnablement?.tvMode,this.isImeConfigEnabled$=(0,Me.of)(wn.featureEnablement.clientIME).pipe((0,$e.n)(Hn=>Hn&&this.mobileMode?Ut.accountStatusChanged.pipe((0,$e.n)(pi=>this.queryGxTargetForBrowserClientIME(pi)),(0,Oe.F)()):(0,Me.of)(Hn)),(0,gt.t)(1)),this.isImeEnabled$=(0,je.zV)([this.isImeConfigEnabled$,this.networkStatusService.onlineStatusChanged]).pipe((0,$e.n)(([Hn,pi])=>(this.logger.info("Client IME support changes to",Hn?"supported":"unsupported"),pi?this.mobileMode||this.tvMode?(0,Me.of)(Hn):i.zk.isBrowserPlatform()?this.keyboardLayoutService.readCachedKeyboardLayout().pipe((0,$e.n)(Zi=>(this.logger.info("Keyboard layout cache read response: ",Zi),Zi&&Object.keys(Zi).length>0?(0,Me.of)(Zi?.params?.isOtherLayout):(0,Me.of)(this.keyboardLayoutService.isOtherDefaultLayout)))):(0,je.zV)([this.keyboardLayoutService.getKeyboardLayoutsList(),this.keyboardLayoutService.onKBLayoutChange$,this.keyboardLayoutService.readCachedKeyboardLayout()]).pipe((0,$e.n)(([Zi,Lr,Kr])=>{if(!(0,n.isNil)(Kr)&&!(0,n.isEmpty)(Kr))return(0,Me.of)(Kr.params?.isOtherLayout);{const Qt=Zi;this.logger.info("kbChanged: ",Lr);const di=Qt.find(ji=>ji.code===Lr);return(0,Me.of)(void 0===di)}})):(this.logger.info("Returning false. isOnline: ",pi),(0,Me.of)(!1)))),(0,qt.W)(Hn=>(this.logger.error("Error detected while checking whether the clientIME feature is enabled",Hn),(0,Me.of)(!1))))}queryGxTargetForBrowserClientIME(Ut){const jn=(0,Me.of)({userId:Ut?.userId??"",idpId:Ut?.idpId??""});return this.experienceControl.getCloudVariable(this.configuration.gxTarget.experiences.isBrowserClientIMESupported,{},void 0,void 0,void 0,jn).pipe((0,ye.T)(wn=>wn.value.isBrowserClientIMESupported),(0,qt.W)(wn=>(this.logger.info("Failed to resolve gx-target cloud variable:",wn),(0,Me.of)(!1))))}initialize(){this.streamerManagerService.register(S.H.Streaming,{callbackContext:this,onStateBegin:this.onStateBegin,onStateEnd:this.onStateEnd},S.$R.Primary),this.isImeEnabled$.subscribe(jn=>{this.logger.info("Cient IME",jn?"enabled":"disabled"),this.imeEnabled=jn}),this.streamingService.streamingEvent$.pipe((0,Re.p)(jn=>jn.event===l.CW.SESSION_SETUP_SUCCESS)).subscribe(jn=>{this.sessionStartTime=Date.now()},jn=>{this.logger.error("Error encountered while getting session setup time: ",jn)})}onStateBegin(Ut){this.activeUiHandle=Ut.handle}onStateEnd(){this.activeUiHandle=null,this.imeOpened.next(!1)}initImeInputHandler(Ut){this.imeEnabled?!1===this.imeInputInProgress&&this.activeUiHandle?.show(["input"]).subscribe(jn=>{this.imeOpened.next(!0),this.shownImeInputHandle=jn,this.logger.info("IME window opened");const wn=new p.aa0({streamDuration:0,source:""});wn.parameters.source=Ut,wn.parameters.streamDuration=Date.now()-this.sessionStartTime,this.telemetryService.push(wn)},jn=>{this.logger.info("Failed to open IME window")}):this.logger.error("Client IME is disabled!")}closeImeInputHandler(){this.shownImeInputHandle.hide(),this.imeOpened.next(!1),this.logger.info("IME window closed")}sendUnicodeInput(Ut){const wn=(new TextEncoder).encode(Ut);return this.bridgeService.executeCommand(I.Ts.Gfn.Streaming.SendUnicode,{unicodeInput:wn})}controlImeInput(Ut){this.imeInputActionSubject.next(Ut)}emitImeInputTextVisibility(Ut){this.imeInputTextVisibleSubject.next(Ut)}}return(vt=Ct).\u0275fac=function(Ut){return new(Ut||vt)(Ze.KVO(p.k_2),Ze.KVO(i.J6),Ze.KVO(p.Vk6),Ze.KVO(D.I),Ze.KVO(V.H0),Ze.KVO(S.cp),Ze.KVO(i.NZ),Ze.KVO(et.BW),Ze.KVO(xt.F),Ze.KVO(i.CF),Ze.KVO(p.Vk6))},vt.\u0275prov=Ze.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"}),Ct})();d(50801);var Bn=function(vt){return vt.HotKey="Hotkey",vt.Igo="IGO",vt.Osc="OSC",vt}(Bn||{}),En=function(vt){return vt.Send="Send",vt.ToggleTextVisibility="ToggleTextVisibility",vt}(En||{}),Cn=d(3496),fn=d(75707),dt=d(91384),nn=d(4208),yn=d(27721),Xn=d(12532);class ai{constructor(Ct,it){this.count=Ct,this.source=it}call(Ct,it){return it.subscribe(new ri(Ct,this.count,this.source))}}class ri extends yn.v{constructor(Ct,it,Ut){super(Ct),this.count=it,this.source=Ut}complete(){if(!this.isStopped){const{source:Ct,count:it}=this;if(0===it)return super.complete();it>-1&&(this.count=it-1),Ct.subscribe(this._unsubscribeAndRecycle())}}}let Ne=(()=>{var vt;class Ct{get qualityInfo$(){return(0,Cn.O)(this.appConfig.networkIndicators.initializationDelay).pipe((0,fn.ZZ)(()=>this.quality$),(0,gt.t)(1))}constructor(Ut,jn,wn){this.streamingService=jn,this.appConfig=wn,this.quality$=new De.B7,this.logger=Ut.getLogger("gfn/NetworkBarsUiService")}initializeStreamingUi(){this.logger.info("initializeStreamingUi");const Ut=this.streamingService.streamingEvent$.pipe((0,Re.p)(jn=>jn.event===l.CW.STREAMING_QUALITY),(0,ye.T)(jn=>jn));this.terminated$=this.streamingService.streamingEvent$.pipe((0,Re.p)(jn=>jn.event===l.CW.STREAMING_TERMINATED),(0,ye.T)(jn=>jn),(0,dt.M)(jn=>this.logger.info("got terminated event"))),this.onFrameLossWarning=this.streamingService.streamingEvent$.pipe((0,Re.p)(jn=>jn.event===l.CW.STREAMING_FRAME_LOSS_WARNING),(0,dt.M)(jn=>this.logger.info("got onFrameLossWarning event",jn))),this.onFrameLossCleared=this.streamingService.streamingEvent$.pipe((0,Re.p)(jn=>jn.event===l.CW.STREAMING_FRAME_LOSS_CLEARED),(0,dt.M)(jn=>this.logger.info("got onFrameLossCleared event",jn))),this.onStreamingFirstFrame=this.streamingService.streamingEvent$.pipe((0,Re.p)(jn=>jn.event===l.CW.STREAMING_FIRST_FRAME),(0,dt.M)(jn=>this.logger.info("got onStreamingFirstFrame event",jn))),Ut.pipe((0,nn.Q)(this.terminated$),function rn(vt=-1){return Ct=>0===vt?(0,Xn.I)():Ct.lift(new ai(vt<0?-1:vt-1,Ct))}()).subscribe(jn=>this.quality$.next(jn),jn=>this.logger.error("subscribe failed",jn))}}return(vt=Ct).\u0275fac=function(Ut){return new(Ut||vt)(Ze.KVO(i.J6),Ze.KVO(l.IC),Ze.KVO(p.Vk6))},vt.\u0275prov=Ze.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"}),Ct})(),zt=(()=>{var vt;class Ct{get isInStreamingPasteEnabled(){return this.isInStreamingPasteEnabled$}get pasteInputInProgress(){return this.inStreamPasteWindowOpened.value}get pasteWindowOpened$(){return this.inStreamPasteWindowOpened.asObservable()}constructor(Ut,jn,wn,nt,on,mt){this.streamerManagerService=jn,this.bridgeService=wn,this.settingsService=nt,this.guestModeHelperService=on,this.appConfig=mt,this.activeUiHandle=null,this.isPasteEnabled=!1,this.inStreamPasteWindowOpened=new ke.t(!1),this.logger=Ut.getLogger("InstreamPasteService"),this.isClipboardConfigEnabled=!!this.appConfig?.client?.needsDialogForInStreamPaste,this.guestModeHelperService.isGuestAppFlow()&&(this.guestModeConfig=this.guestModeHelperService.getGuestModeConfig()),this.isInStreamingPasteEnabled$=this.settingsService.getSettingsData().pipe((0,$e.n)(_n=>{this.logger.info("Clipboard config value :",this.isClipboardConfigEnabled?"supported":"unsupported"),this.logger.info("Clipboard paste enablement from settings :",_n?.clipboardPaste?"enabled":"disabled");let wt=this.isClipboardConfigEnabled;return void 0!==this.guestModeConfig?.igoSettings?.pasteDefaultOn&&(wt=wt&&this.guestModeConfig?.igoSettings?.pasteDefaultOn),(0,Me.of)(wt&&_n?.clipboardPaste)}),(0,qt.W)(_n=>(this.logger.error("Failed to fetch paste config: ",_n),(0,Me.of)(!1))))}initialize(){this.streamerManagerService.register(S.H.Streaming,{callbackContext:this,onStateBegin:this.onStateBegin,onStateEnd:this.onStateEnd},S.$R.Primary),this.isInStreamingPasteEnabled.subscribe(jn=>{this.logger.info("Clipboard Status on Safari Mac ",jn?"enabled":"disabled"),this.isPasteEnabled=jn})}onStateBegin(Ut){this.activeUiHandle=Ut.handle}onStateEnd(){this.activeUiHandle=null,this.inStreamPasteWindowOpened.next(!1)}initPasteInputHandler(){this.isPasteEnabled?!1===this.pasteInputInProgress&&this.activeUiHandle?.show(["paste"]).subscribe(Ut=>{this.inStreamPasteWindowOpened.next(!0),this.shownPasteInputHandle=Ut,this.logger.info("Paste window opened")},Ut=>{this.logger.info("Failed to open Paste window")}):this.logger.error("Feature is disabled!")}closeInStreamPasteHandler(){this.shownPasteInputHandle?.hide(),this.inStreamPasteWindowOpened.next(!1),this.logger.info("Paste window is closed")}sendUnicodeInput(Ut){const wn=(new TextEncoder).encode(Ut);return this.bridgeService.executeCommand(I.Ts.Gfn.Streaming.SendUnicode,{unicodeInput:wn})}}return(vt=Ct).\u0275fac=function(Ut){return new(Ut||vt)(Ze.KVO(i.J6),Ze.KVO(S.cp),Ze.KVO(i.NZ),Ze.KVO(p.h$Q),Ze.KVO(p.xDS),Ze.KVO(p.Vk6))},vt.\u0275prov=Ze.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"}),Ct})()},25216:(Ue,W,d)=>{"use strict";d.d(W,{Tw:()=>I,cp:()=>ue,$R:()=>x,H:()=>Y});var Y,N,n=d(43848),l=d(80583),p=d(26513),m=d(63997),_=d(31315),P=d(17053),v=d(75707),O=d(91384),S=d(83915),y=d(99047),r=d(43615),i=d(55833),a=d(26875),h=d(3567),g=d(44968),c=d(74931),T=d(97152),A=d(16485),L=d(23355),x=function(N){return N.Primary="primary",N.Quit="quit",N.StreamingTimer="streamingTimer",N}(x||{}),V=function(N){return N[N.GenericError=0]="GenericError",N[N.NesAuthError=1]="NesAuthError",N[N.GeronimoError=2]="GeronimoError",N[N.PreStreamGeronimoError=3]="PreStreamGeronimoError",N[N.EntitlementError=4]="EntitlementError",N}(V||{});class F{constructor(se,ce){this.errorType=se,this.errorCode=ce}}class I extends F{constructor(se){super(V.GeronimoError,I.extractErrorCode(se)),this.errorEventInfo=se}static extractErrorCode(se){return se.event===L.CW.STREAMING_TERMINATED?se.reason:se.result.result}}(N=Y||(Y={})).Init={name:"Init",supportedRouterTags:[],defaultOsrState:A.cD.Closed,enableBackNavigation:!1},N.UpdateCheck={name:"UpdateCheck",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!1},N.PreStreaming={name:"PreStreaming",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.OpenWithInput,enableBackNavigation:!1},N.Authentication={name:"Authentication",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!1},N.Authorization={name:"Authorization",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!0},N.PlatformSelection={name:"PlatformSelection",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!0},N.AccountLinking={name:"AccountLinking",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!0},N.NetworkTest={name:"NetworkTest",supportedRouterTags:[x.Primary,x.Quit],defaultOsrState:A.cD.Open,enableBackNavigation:!0},N.Loading={name:"Loading",supportedRouterTags:[x.Primary,x.Quit],defaultOsrState:A.cD.Open,enableBackNavigation:!0},N.PostSessionConnection={name:"PostSessionConnection",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!1},N.Streaming={name:"Streaming",supportedRouterTags:[x.Primary,x.StreamingTimer,x.Quit],defaultOsrState:A.cD.Closed,enableBackNavigation:!1},N.PostStreaming={name:"PostStreaming",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!1},N.Done={name:"Done",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.OpenWithInput,enableBackNavigation:!1},N.Error={name:"Error",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!1},N.ResumableError={name:"ResumableError",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!1},N.TerminalError={name:"TerminalError",supportedRouterTags:[x.Primary],defaultOsrState:A.cD.Open,enableBackNavigation:!1};class K{constructor(se){this.callbacks=se,this.callbacks.onStateBegin=this.callbacks.onStateBegin.bind(this.callbacks.callbackContext),this.callbacks.onStateEnd&&(this.callbacks.onStateEnd=this.callbacks.onStateEnd.bind(this.callbacks.callbackContext)),this.callbacks.onResumableError&&(this.callbacks.onResumableError=this.callbacks.onResumableError.bind(this.callbacks.callbackContext)),this.callbacks.onTerminalError&&(this.callbacks.onTerminalError=this.callbacks.onTerminalError.bind(this.callbacks.callbackContext))}begin(se){this.callbacks.onStateBegin(se)}end(){this.callbacks.onStateEnd&&this.callbacks.onStateEnd()}resumableError(se){this.callbacks.onResumableError&&this.callbacks.onResumableError(se)}terminalError(se){this.callbacks.onTerminalError&&this.callbacks.onTerminalError(se)}}class ${constructor(se,ce){this.parent=se,this.id=ce,this.hidden=!1}hide(){if(this.hidden)throw new Error("Cannot hide UI that has already been hidden");this.hidden=!0,this.parent.hide(this.id)}}const J={path:["empty"],id:0},z={x:0,y:0,w:0,h:0};var te=d(16706),X=d(70521),re=d(58527),ge=d(61142),oe=d(50801);const xe=()=>(0,n.of)(!0);let ue=(()=>{var N;class se{constructor(Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt,qt,ye,Re,Ze,et,xt,un,ct){this.loggingService=de,this.bridgeService=ae,this.pathService=pe,this.location=ke,this.applicationLifetimeService=De,this.streamerConfigService=Me,this.gfcHelperService=je,this.gameShareUrlService=$e,this.streamingProfileService=Oe,this.ownershipSyncService=gt,this.projectInterfaceService=qt,this.redirectService=ye,this.serviceWorkerService=Re,this.gfnSwUpdateService=Ze,this.notificationUiService=et,this.deeplinkHelperService=xt,this.guestModeHelperService=un,this.ecommerceService=ct,this.restrictedStates=[Y.Init,Y.Done],this.pathSegments=[],this.exitStreamerNotify$=new l.B7,this.logger=this.loggingService.getLogger("gfn/StreamerManagerService"),this.nextShowIdNumber=1,this.currentState=Y.Init,this.currentStateChange$=new p.t(this.currentState),this.stateRegistrations=new Map,this.currentViewStacks=new Map,this.stateMachineConnections=new Map,this.stateMachineConnections.set(Y.Init,Y.UpdateCheck),this.stateMachineConnections.set(Y.UpdateCheck,Y.PreStreaming),this.stateMachineConnections.set(Y.PreStreaming,Y.Authentication),this.stateMachineConnections.set(Y.Authentication,Y.PlatformSelection),this.stateMachineConnections.set(Y.PlatformSelection,Y.AccountLinking),this.stateMachineConnections.set(Y.AccountLinking,Y.Authorization),this.stateMachineConnections.set(Y.Authorization,Y.NetworkTest),this.stateMachineConnections.set(Y.NetworkTest,Y.Loading),this.stateMachineConnections.set(Y.Loading,Y.Streaming),this.stateMachineConnections.set(Y.Streaming,Y.PostSessionConnection),this.stateMachineConnections.set(Y.PostSessionConnection,Y.PostStreaming),this.stateMachineConnections.set(Y.PostStreaming,Y.Done),this.stateMachineConnections.set(Y.ResumableError,Y.Loading),this.lastWindowSize=null,this.defaultOsrHandler=_e.createOsrHandler("StreamerManagerService"),this.pathSegments=T.V6C.StreamerRoot.split("/"),this.projectInterfaceService.setExitStreamerCallBack(this.exitStreamer.bind(this))}register(Z,de,ae=x.Primary){Z.supportedRouterTags.includes(ae)||this.logAndThrowError("Router tag "+ae+" is not supported in state "+Z.name),(0,a.includes)(this.restrictedStates,Z)&&this.logAndThrowError("Cannot register handler for state "+Z+" as it is a restricted state"),this.currentState===Y.Init?(this.stateRegistrations.has(Z)||this.stateRegistrations.set(Z,[]),this.stateRegistrations.get(Z).push({callbacks:new K(de),handle:new se.InternalUIHandleImpl(this,Z,ae,this.loggingService),tag:ae})):this.logAndThrowError("Cannot register new UI handlers after the Streamer state machine has begun")}initiateStreamer(){this.inActiveState()&&this.logAndThrowError(`InitiateStreamer called in illegal state ${this.currentState.name}`),this.currentState===Y.Done&&(this.exitCurrentState(),this.enterState(Y.Init)),0!==this.streamerConfigService.activeConfig.cmsId||this.streamerConfigService.activeConfig.parentGameId?(this.currentStateChangeSubscription||(this.currentStateChangeSubscription=this.getCurrentStateChanges().pipe((0,v.ZZ)(Z=>(this.logger.info("UpdateStreamerStatus with state",Z?.name),this.bridgeService.executeCommand(c.Ts.Gfn.Gfnsdkhost.UpdateStreamerStatus,{status:Z.name})))).subscribe(()=>{},()=>{})),this.shutdownRequestedWorkHandle||(this.shutdownRequestedWorkHandle=this.applicationLifetimeService.addWorkOnShutdownRequested(()=>this.exitStreamer({skipsNavigation:!0}).pipe((0,O.M)(Z=>{Z&&(this.shutdownRequestedWorkHandle.remove(),this.shutdownRequestedWorkHandle=null)}),(0,S.T)(Z=>!Z)))),this.shutdownWorkHandle||(this.shutdownWorkHandle=this.applicationLifetimeService.addWorkOnShutdown(()=>(this.inDoneState()||this.goToDone({skipsNavigation:!0}),(0,n.of)(void 0)))),this.advanceState()):this.goToError({errorType:V.GenericError,errorCode:te.gn.ZeroCmsId})}exitStreamer(Z){return this.inDoneState()?(0,n.of)(!0):this.exitStreamer$?(this.logger.warn("An exit request is still in progress. New request will not be made."),this.exitStreamer$):(0,m.v)(()=>{const de=this.getCurrentState(),ae=this.stateRegistrations.has(de)?this.stateRegistrations.get(de).map(pe=>pe.handle.exitGuard().pipe((0,y.$)())):[(0,n.of)(!0)];return this.exitStreamer$=(0,_.zV)(ae).pipe((0,S.T)(pe=>!pe.includes(!1)),(0,O.M)(pe=>{pe&&this.goToDone(Z)}),(0,r.j)(()=>{this.exitStreamer$=null}),(0,i.t)({refCount:!1,bufferSize:1})),this.exitStreamer$})}getCurrentState(){return this.currentState}getCurrentStateChanges(){return this.currentStateChange$.asObservable()}inErrorState(){return this.isErrorState(this.currentState)}inTerminalState(){return this.inDoneState()}inDoneState(){return this.currentState===Y.Done}inActiveState(){return this.currentState!==Y.Init&&this.currentState!==Y.Done}updateDefaultOsrState(Z,de){if(null==de||Z!==de){let ae;switch(Z){case A.cD.Open:ae=this.defaultOsrHandler.open();break;case A.cD.OpenWithInput:ae=this.defaultOsrHandler.open(!0);break;case A.cD.Closed:ae=this.defaultOsrHandler.close();break;default:this.logger.error("Unrecognized osr state: ",Z),ae=this.defaultOsrHandler.close()}ae.subscribe({next:pe=>{this.logger.info("Updated osr state to: "+pe)},error:pe=>{this.logger.error("Failed to update osr state: "+pe)}})}}exitCurrentState(){this.stateRegistrations.has(this.currentState)&&this.stateRegistrations.get(this.currentState).forEach(Z=>{Z.handle.disable(),Z.callbacks.end()}),this.resetViewStacks()}enterState(Z,de){return this.currentState=Z,this.logger.info("Entering state: ",Z),this.currentStateChange$.next(this.currentState),!(0,a.includes)(this.restrictedStates,Z)&&this.stateRegistrations.has(Z)?(this.stateRegistrations.get(Z).forEach(ae=>{const pe={handle:ae.handle,data:de};ae.handle.enable(),ae.callbacks.begin(pe)}),!0):Z===Y.Done&&(this.exit(de),!0)}exit(Z){!this.streamerConfigService.activeConfig?.sdkClient||!h.zk.isCefPlatform()||this.guestModeHelperService.isGuestMode&&this.guestModeHelperService.getGuestModeConfig()?.disableCloseOnStreamExit?(this.streamingProfileService.clearCachedStreamingProfile(),this.notificationUiService.clearNotificationsQueue(),this.deeplinkHelperService.postStreamingCleanUp(),this.ecommerceService.registerIntervalTimer(),this.projectInterfaceService.notifyStreamerFlowExit(),h.zk.isCefPlatform()?this.bridgeService.executeCommand(c.Ts.Gfn.Streaming.Cleanup).pipe((0,r.j)(()=>this.handleExit(Z))).subscribe():(this.gfnSwUpdateService.periodicallyCheckForUpdates(),this.handleExit(Z))):this.applicationLifetimeService.shutdownApplication(g.pu.ApplicationRequestedExit)}handleExit(Z){if(h.zk.isCefPlatform()&&this.restoreWindow(),h.zk.isBrowserPlatform()&&(this.gfcHelperService.terminateRemoteLogSession(),this.serviceWorkerService.postMessageSw({type:X.oY.GameExit})),!Z?.skipsNavigation)if(null!=Z?.exitUrl||null!=Z?.exitCommandData)if(Z?.exitCommandData)this.logger.info("Exit navigation by command:",Z.exitCommandData),this.pathService.navigate(Z.exitCommandData.commands,Z.exitCommandData.options??{skipLocationChange:!0});else{const ae=Z?.exitUrl??T.V6C.Home;this.logger.info("Exiting to "+ae),this.pathService.navigateByUrl(ae,{skipLocationChange:!0})}else{this.updateAddressBar();const ae=this.gameShareUrlService.getExitUrl();ae.includes("http")?this.redirectService.redirectToExternalUrl(ae,{replace:!0}):this.pathService.navigateByUrl(ae,{skipLocationChange:!0})}}updateAddressBar(){this.logger.info(`UpdateAddressBar called. Current Streamer State: ${this.currentState.name}`),this.gameShareUrlService.setShareUrlInAddressBar()}enterErrorState(Z,de){return this.isErrorState(Z)||this.logAndThrowError("enterErrorState called with a non-error state: "+Z.name),this.logger.info("Advancing to error state: ",Z.name),this.currentState=Z,this.currentStateChange$.next(this.currentState),!!this.stateRegistrations.has(Z)&&(this.stateRegistrations.get(Z).forEach(ae=>{const pe={handle:ae.handle,errorUIHandle:ae.handle,data:de};ae.handle.enable(),ae.callbacks.begin(pe)}),!0)}advanceState(){if(this.inTerminalState())this.logger.info("Not advancing from terminal state: "+this.currentState.name);else if(this.stateMachineConnections.has(this.currentState)){const Z=this.stateMachineConnections.get(this.currentState);this.updateDefaultOsrState(Z.defaultOsrState,this.currentState.defaultOsrState),this.exitCurrentState(),this.logger.info("Advancing to state: "+this.stateMachineConnections.get(this.currentState).name),this.enterState(this.stateMachineConnections.get(this.currentState))||(this.logger.info("Skipping state with no registered handlers: "+this.currentState.name),this.advanceState())}else this.logAndThrowError("No state to advance to from state: "+this.currentState.name)}updateDisplays(){this.logger.info("UpdateDisplays called");const Z={};this.currentViewStacks.forEach((ae,pe)=>{if(ae.length>0){const _e=ae[ae.length-1];Z[pe]=_e.path.slice(),_e.data&&Z[pe].push(_e.data)}});const de=this.pathService.navigate([...this.pathSegments,{outlets:Z}],{skipLocationChange:!0});return de.then(()=>{if(this.streamerConfigService.activeConfig.launchSource===T.vhU.GeForceNOW&&h.zk.isBrowserPlatform()){if(this.inDoneState())return void this.location.replaceState(this.gameShareUrlService.getExitUrl());this.updateAddressBar()}}),de}show(Z,de,ae){this.logger.info(`Show called for routerTag: ${Z}, path: ${de}`),this.currentViewStacks.has(Z)||this.currentViewStacks.set(Z,[J]);const pe=this.nextShowIdNumber++;return this.currentViewStacks.get(Z).push({path:de,id:pe,data:ae}),new P.c(_e=>{this.updateDisplays().then(()=>{_e.next(pe)}).catch(ke=>{_e.error(ke)})})}hide(Z){this.logger.info(`Hide called with id:${Z}`),0===Z&&this.logAndThrowError("Cannot hide default UI element"),this.currentViewStacks.forEach((de,ae)=>{de.forEach((pe,_e)=>{if(pe.id===Z)return de.splice(_e,1),void this.updateDisplays()})})}goToDone(Z){this.inDoneState()?this.logger.warn("Already in Done state, no transition to make"):(this.updateDefaultOsrState(Y.Done.defaultOsrState),this.exitCurrentState(),this.enterState(Y.Done,Z))}goToError(Z){(this.inTerminalState()||this.inErrorState())&&this.logAndThrowError("Cannot enter Error state from Error or terminal state: "+this.currentState.name);const de={errorSourceState:this.currentState,errorData:Z};this.exitCurrentState(),this.enterErrorState(Y.Error,de)}goToResumableError(Z){this.currentState!==Y.Error&&this.logAndThrowError("Invalid state to call goToResumableError from: "+this.currentState.name),this.stateRegistrations.forEach((de,ae)=>{de.forEach(pe=>{pe.callbacks.resumableError(Z)})}),this.exitCurrentState(),this.enterErrorState(Y.ResumableError,Z)}goToTerminalError(Z){this.currentState!==Y.Error&&this.logAndThrowError("Invalid state to call goToTerminalError from: "+this.currentState.name),this.stateRegistrations.forEach((de,ae)=>{de.forEach(pe=>{pe.callbacks.terminalError(Z)})}),this.exitCurrentState(),this.enterErrorState(Y.TerminalError,Z)}restoreWindow(){this.lastWindowSize?(this.lastWindowSize=null,this.bridgeService.executeCommand(c.Ts.Common.Windowcontrol.RestoreFromFullScreen).subscribe(()=>{})):this.logger.info("Not restoring window as there was no change in size")}fullscreenWindow(){this.lastWindowSize={width:window.innerWidth,height:window.innerHeight},this.logger.info("Fullscreening window"),this.bridgeService.executeCommand(c.Ts.Common.Windowcontrol.Resize,z).subscribe(()=>{})}resetViewStacks(){this.logger.info("Resetting view stacks"),this.currentViewStacks.clear(),this.currentViewStacks.set(x.Primary,[J]),this.currentViewStacks.set(x.Quit,[J]),this.updateDisplays()}isErrorState(Z){return Z===Y.Error||Z===Y.ResumableError||Z===Y.TerminalError}logAndThrowError(Z){throw this.logger.error(Z),new Error(Z)}}return(N=se).InternalUIHandleImpl=class{constructor(ce,Z,de,ae){this.parent=ce,this.routerTag=de,this.exitGuard=xe,this.enabled=!0,this.logger=ae.getLogger(["gfn","StreamerManagerService","InternalUIHandle",Z.name,de].join("/"))}disable(){this.enabled=!1,this.exitGuard=xe}enable(){this.enabled=!0}goToError(ce){this.checkEnabled(),this.parent.goToError(ce)}goToNext(){this.checkEnabled(),this.parent.advanceState()}goToDone(ce){return this.checkEnabled(),this.parent.exitStreamer(ce).toPromise()}goToResumableError(ce){this.checkEnabled(),this.parent.goToResumableError(ce)}goToTerminalError(ce){this.checkEnabled(),this.parent.goToTerminalError(ce)}show(ce,Z){return this.checkEnabled(),this.parent.show(this.routerTag,ce,Z).pipe((0,S.T)(de=>new $(this,de)))}hide(ce){this.checkEnabled(),this.parent.hide(ce)}restoreWindow(){this.checkEnabled(),this.parent.restoreWindow()}fullscreenWindow(){this.checkEnabled(),this.parent.fullscreenWindow()}setExitGuard(ce){this.checkEnabled(),this.exitGuard=ce}checkEnabled(){if(!this.enabled){const ce="Cannot use a disabled UI handle, likely due to using the handle after the streamer state advanced";throw this.logger.error(ce),new Error(ce)}}},N.\u0275fac=function(Z){return new(Z||N)(re.KVO(T.Vk6),re.KVO(h.J6),re.KVO(h.NZ),re.KVO(T.R6l),re.KVO(A.Gm),re.KVO(ge.aZ),re.KVO(g.lM),re.KVO(T.zi2),re.KVO(T.q8U),re.KVO(T.uBn),re.KVO(T.xfC),re.KVO(T.Itz),re.KVO(oe.qQ),re.KVO(T.Q5Y),re.KVO(X.lS),re.KVO(T.BSK),re.KVO(T.Pii),re.KVO(T.wCY),re.KVO(T.xDS),re.KVO(T.yJU))},N.\u0275prov=re.jDH({token:N,factory:N.\u0275fac,providedIn:"root"}),se})()},23355:(Ue,W,d)=>{"use strict";d.d(W,{CW:()=>_,JY:()=>S,Jt:()=>l,TP:()=>P,XK:()=>h,b5:()=>p,fZ:()=>m,hY:()=>y,o2:()=>v,qF:()=>n});var n=function(g){return g[g.NVB_PROFILE_GAMING=0]="NVB_PROFILE_GAMING",g[g.NVB_PROFILE_PROFESSIONAL=1]="NVB_PROFILE_PROFESSIONAL",g[g.NVB_PROFILE_GAMING_720P_30FPS=2]="NVB_PROFILE_GAMING_720P_30FPS",g[g.NVB_PROFILE_GAMING_720P_60FPS=3]="NVB_PROFILE_GAMING_720P_60FPS",g[g.NVB_PROFILE_GAMING_1080P_30FPS=4]="NVB_PROFILE_GAMING_1080P_30FPS",g[g.NVB_PROFILE_GAMING_1080P_60FPS=5]="NVB_PROFILE_GAMING_1080P_60FPS",g[g.NVB_PROFILE_ROAMING_720P_30FPS=6]="NVB_PROFILE_ROAMING_720P_30FPS",g[g.NVB_PROFILE_ROAMING_720P_60FPS=7]="NVB_PROFILE_ROAMING_720P_60FPS",g}(n||{}),l=function(g){return g[g.NVB_R_UDP_BUFFER_TOO_SMALL=2148204566]="NVB_R_UDP_BUFFER_TOO_SMALL",g[g.NVB_R_FIREWALL_BLOCK=2148016156]="NVB_R_FIREWALL_BLOCK",g[g.NVB_R_WIFI_CONNECTIVITY_ISSUE1=2147745808]="NVB_R_WIFI_CONNECTIVITY_ISSUE1",g[g.NVB_R_WIFI_CONNECTIVITY_ISSUE2=2147745799]="NVB_R_WIFI_CONNECTIVITY_ISSUE2",g[g.NVB_R_WIFI_CONNECTIVITY_ISSUE3=2147745796]="NVB_R_WIFI_CONNECTIVITY_ISSUE3",g[g.VIDEO_DECODER_CREATION_FAILED=67174402]="VIDEO_DECODER_CREATION_FAILED",g[g.VIDEO_DECODER_ERROR_MASK=790289]="VIDEO_DECODER_ERROR_MASK",g[g.NVST_NETERR_CLIENT_DISCONNECT_UNINTENDED_NO_VIDEO_PACKETS_RECENTLY=2147745808]="NVST_NETERR_CLIENT_DISCONNECT_UNINTENDED_NO_VIDEO_PACKETS_RECENTLY",g[g.NVST_DISCONN_SERVER_VFP_PROTECTED_CONTENT=2148438786]="NVST_DISCONN_SERVER_VFP_PROTECTED_CONTENT",g[g.GFNPC_CLIENT_FRAME_LOSS_TIMEOUT_ERROR=3237150722]="GFNPC_CLIENT_FRAME_LOSS_TIMEOUT_ERROR",g[g.GFNPC_CLIENT_SESSION_IN_INITIALIZING_STATE=3237150723]="GFNPC_CLIENT_SESSION_IN_INITIALIZING_STATE",g[g.GFNPC_CLIENT_VIDEO_PLAY_FAIL=3237150724]="GFNPC_CLIENT_VIDEO_PLAY_FAIL",g[g.GFNPC_CLIENT_AUDIO_PLAY_FAIL=3237150725]="GFNPC_CLIENT_AUDIO_PLAY_FAIL",g[g.GFNPC_CLIENT_GAME_LAUNCHED_IN_NEW_TAB=3237150726]="GFNPC_CLIENT_GAME_LAUNCHED_IN_NEW_TAB",g[g.GFNPC_CLIENT_OPPORTUNITY_ABORTED=3237150727]="GFNPC_CLIENT_OPPORTUNITY_ABORTED",g[g.GFNPC_CLIENT_GUESTMODE_SESSION_LIMIT_PER_DEVICE_REACHED=3237093682]="GFNPC_CLIENT_GUESTMODE_SESSION_LIMIT_PER_DEVICE_REACHED",g[g.GUEST_MODE_CAMAPAIGN_DISABLED=3237093705]="GUEST_MODE_CAMAPAIGN_DISABLED",g}(l||{}),p=function(g){return g[g.NVB_R_UNKNOWN=-1]="NVB_R_UNKNOWN",g[g.NVB_R_SUCCESS=0]="NVB_R_SUCCESS",g[g.NVB_R_UNINITIALIZED=1]="NVB_R_UNINITIALIZED",g[g.NVB_R_CALLBACKS_NOT_REGISTERED=2]="NVB_R_CALLBACKS_NOT_REGISTERED",g[g.NVB_R_NOT_SUPPORTED=3]="NVB_R_NOT_SUPPORTED",g[g.NVB_R_VERSION_MISMATCH=4]="NVB_R_VERSION_MISMATCH",g[g.NVB_R_UPGRADE_RECOMMENDED=5]="NVB_R_UPGRADE_RECOMMENDED",g[g.NVB_R_OS_ERROR=6]="NVB_R_OS_ERROR",g[g.NVB_R_INVALID_PARAM=101]="NVB_R_INVALID_PARAM",g[g.NVB_R_INVALID_CLIENT_OBJECT=102]="NVB_R_INVALID_CLIENT_OBJECT",g[g.NVB_R_INVALID_SERVER_NAME=103]="NVB_R_INVALID_SERVER_NAME",g[g.NVB_R_INVALID_PORT_NUMBER=104]="NVB_R_INVALID_PORT_NUMBER",g[g.NVB_R_INVALID_VIDEO_DECODER=105]="NVB_R_INVALID_VIDEO_DECODER",g[g.NVB_R_INVALID_AUDIO_RENDERER=106]="NVB_R_INVALID_AUDIO_RENDERER",g[g.NVB_R_INVALID_AUTH_TYPE=107]="NVB_R_INVALID_AUTH_TYPE",g[g.NVB_R_INVALID_STREAM_SETTINGS=108]="NVB_R_INVALID_STREAM_SETTINGS",g[g.NVB_R_INVALID_CERTIFICATE=109]="NVB_R_INVALID_CERTIFICATE",g[g.NVB_R_INVALID_PRIVATE_KEY=110]="NVB_R_INVALID_PRIVATE_KEY",g[g.NVB_R_INVALID_CERTIFICATE_KEY_PAIR=111]="NVB_R_INVALID_CERTIFICATE_KEY_PAIR",g[g.NVB_R_REINITIALIZE_ERROR=112]="NVB_R_REINITIALIZE_ERROR",g[g.NVB_R_INVALID_PROFILE=113]="NVB_R_INVALID_PROFILE",g[g.NVB_R_INVALID_INPUT_DEVICE=114]="NVB_R_INVALID_INPUT_DEVICE",g[g.NVB_R_INVALID_STATS_OPTION=115]="NVB_R_INVALID_STATS_OPTION",g[g.NVB_R_INVALID_FEATURECONTROL_TYPE=116]="NVB_R_INVALID_FEATURECONTROL_TYPE",g[g.NVB_R_NETWORK_ERROR=151]="NVB_R_NETWORK_ERROR",g[g.NVB_R_SOCKET_ERROR=152]="NVB_R_SOCKET_ERROR",g[g.NVB_R_ADDRESS_RESOLVE_FAILED=153]="NVB_R_ADDRESS_RESOLVE_FAILED",g[g.NVB_R_CONNECT_FAILED=154]="NVB_R_CONNECT_FAILED",g[g.NVB_R_SSL_ERROR=155]="NVB_R_SSL_ERROR",g[g.NVB_R_CONNECTION_TIMEOUT=156]="NVB_R_CONNECTION_TIMEOUT",g[g.NVB_R_DATA_RECEIVE_TIMEOUT=157]="NVB_R_DATA_RECEIVE_TIMEOUT",g[g.NVB_R_PEER_NO_RESPONSE=158]="NVB_R_PEER_NO_RESPONSE",g[g.NVB_R_UNEXPECTED_HTTPREDIRECT=159]="NVB_R_UNEXPECTED_HTTPREDIRECT",g[g.NVB_R_NETWORK_CAPABLE=201]="NVB_R_NETWORK_CAPABLE",g[g.NVB_R_INSUFFICIENT_NETWORK_CAPABILITY=202]="NVB_R_INSUFFICIENT_NETWORK_CAPABILITY",g[g.NVB_R_MINIMUM_NETWORK_CAPABILITY=203]="NVB_R_MINIMUM_NETWORK_CAPABILITY",g[g.NVB_R_BLOCK_STREAM=204]="NVB_R_BLOCK_STREAM",g[g.NVB_R_AUTH_ERR_UNKNOWN=252]="NVB_R_AUTH_ERR_UNKNOWN",g[g.NVB_R_AUTH_ERR_DEFUNCT_TOKEN=253]="NVB_R_AUTH_ERR_DEFUNCT_TOKEN",g[g.NVB_R_AUTH_ERR_UNAUTHORIZED_CLIENT=254]="NVB_R_AUTH_ERR_UNAUTHORIZED_CLIENT",g[g.NVB_R_AUTH_ERR_UNSUPPORTED_PROTOCOL=255]="NVB_R_AUTH_ERR_UNSUPPORTED_PROTOCOL",g[g.NVB_R_AUTH_ERR_UNREACHABLE_AUTH_SERVER=256]="NVB_R_AUTH_ERR_UNREACHABLE_AUTH_SERVER",g[g.NVB_R_AUTH_ERR_UNSUPPORTED_TOKEN_FORMAT=257]="NVB_R_AUTH_ERR_UNSUPPORTED_TOKEN_FORMAT",g[g.NVB_R_AUTH_ERR_TOKEN_NOT_UPDATED=258]="NVB_R_AUTH_ERR_TOKEN_NOT_UPDATED",g[g.NVB_R_SESSION_NOT_ACTIVE=301]="NVB_R_SESSION_NOT_ACTIVE",g[g.NVB_R_SESSION_LIMIT_REACHED=302]="NVB_R_SESSION_LIMIT_REACHED",g[g.NVB_R_INSUFFICIENT_RESOURCES=303]="NVB_R_INSUFFICIENT_RESOURCES",g[g.NVB_R_EULA_NOT_ACCEPTED=304]="NVB_R_EULA_NOT_ACCEPTED",g[g.NVB_R_APP_TITLE_FENCED=305]="NVB_R_APP_TITLE_FENCED",g[g.NVB_R_INVALID_APP_IDENTIFIER=306]="NVB_R_INVALID_APP_IDENTIFIER",g[g.NVB_R_PREFERRED_CONTROLLER_NOT_FOUND=307]="NVB_R_PREFERRED_CONTROLLER_NOT_FOUND",g[g.NVB_R_NO_ACTIVE_SESSION_FOUND=308]="NVB_R_NO_ACTIVE_SESSION_FOUND",g[g.NVB_R_SESSION_NOT_PAUSED=309]="NVB_R_SESSION_NOT_PAUSED",g[g.NVB_R_SESSION_TERMINATED_MULTIPLE_LOGIN=310]="NVB_R_SESSION_TERMINATED_MULTIPLE_LOGIN",g[g.NVB_R_SESSION_TERMINATED_ANOTHER_CLIENT=311]="NVB_R_SESSION_TERMINATED_ANOTHER_CLIENT",g[g.NVB_R_STREAMER_UNINITIALIZED=341]="NVB_R_STREAMER_UNINITIALIZED",g[g.NVB_R_STREAMER_NETWORK_ERROR=342]="NVB_R_STREAMER_NETWORK_ERROR",g[g.NVB_R_STREAMER_CONNECT_FAILED=343]="NVB_R_STREAMER_CONNECT_FAILED",g[g.NVB_R_USER_IS_NOT_ENTITLED=351]="NVB_R_USER_IS_NOT_ENTITLED",g[g.NVB_R_GES_NOT_REACHABLE=352]="NVB_R_GES_NOT_REACHABLE",g[g.NVB_R_USER_NOT_REGISTERED_IN_GES=353]="NVB_R_USER_NOT_REGISTERED_IN_GES",g[g.NVB_R_NO_ENTITLEMENT_TIME_REMAINING=354]="NVB_R_NO_ENTITLEMENT_TIME_REMAINING",g[g.NVB_R_SERVER_ERROR=501]="NVB_R_SERVER_ERROR",g[g.NVB_R_SERVER_OUT_OF_SERVICE=502]="NVB_R_SERVER_OUT_OF_SERVICE",g[g.NVB_R_SEVER_MAINTENANCE_MODE=503]="NVB_R_SEVER_MAINTENANCE_MODE",g[g.NVB_R_INVALID_SERVER_RESPONSE=504]="NVB_R_INVALID_SERVER_RESPONSE",g[g.NVB_R_TOO_MANY_SERVER_REQUESTS=505]="NVB_R_TOO_MANY_SERVER_REQUESTS",g[g.NVB_R_APPLICATION_PATCHING=506]="NVB_R_APPLICATION_PATCHING",g[g.NVB_R_APP_MAINTENANCE_STATUS=3237290296]="NVB_R_APP_MAINTENANCE_STATUS",g[g.NVB_R_REQUIRED_SEAT_INSTANCE_TYPE_NOT_SUPPORTED=3237290301]="NVB_R_REQUIRED_SEAT_INSTANCE_TYPE_NOT_SUPPORTED",g[g.NVB_R_SERVER_SESSION_QUEUE_LENGTH_EXCEEDED=3237290302]="NVB_R_SERVER_SESSION_QUEUE_LENGTH_EXCEEDED",g[g.NVB_R_REGION_NOT_SUPPORTED_FOR_STREAMING=3237290303]="NVB_R_REGION_NOT_SUPPORTED_FOR_STREAMING",g[g.NVB_R_SESSION_GAME_BINARIES_NOT_AVAILABLE_IN_REGION=3237290306]="NVB_R_SESSION_GAME_BINARIES_NOT_AVAILABLE_IN_REGION",g[g.NVB_R_SESSION_IN_QUEUE_ABANDONED=3237093701]="NVB_R_SESSION_IN_QUEUE_ABANDONED",g[g.NVB_R_SESSION_ICE_CONNECTION_FAILED=3237093894]="NVB_R_SESSION_ICE_CONNECTION_FAILED",g[g.NVB_R_SERVER_ERROR_BEGIN=61440]="NVB_R_SERVER_ERROR_BEGIN",g[g.NVB_R_SERVER_ERROR_MAX=553648127]="NVB_R_SERVER_ERROR_MAX",g[g.NVB_R_SESSION_REMOVED_FROM_QUEUE_MAINTENANCE=3237290311]="NVB_R_SESSION_REMOVED_FROM_QUEUE_MAINTENANCE",g[g.NVB_R_ZONE_MAITENANCE_STATUS=3237290312]="NVB_R_ZONE_MAITENANCE_STATUS",g[g.NVB_R_GFN_GAME_NOT_OWNED_BY_USER=15806465]="NVB_R_GFN_GAME_NOT_OWNED_BY_USER",g[g.NVB_R_INSTANCE_TYPE_NOT_SUPPORTED_IN_SINGLE_REGION=3237290315]="NVB_R_INSTANCE_TYPE_NOT_SUPPORTED_IN_SINGLE_REGION",g[g.NVB_R_SESSION_WAITING_ADS_TIME_EXPIRED=3237290319]="NVB_R_SESSION_WAITING_ADS_TIME_EXPIRED",g[g.NVB_R_USER_CANCELED_WATCHING_ADS=3237290320]="NVB_R_USER_CANCELED_WATCHING_ADS",g}(p||{}),m=function(g){return g[g.NVB_SN_STREAMING_PROPERTIES=0]="NVB_SN_STREAMING_PROPERTIES",g[g.NVB_SN_STREAMER_CONNECTED=1]="NVB_SN_STREAMER_CONNECTED",g[g.NVB_SN_STREAMING_QUALITY_CHANGED=2]="NVB_SN_STREAMING_QUALITY_CHANGED",g[g.NVB_SN_SERVER_INITIATED_PAUSE=3]="NVB_SN_SERVER_INITIATED_PAUSE",g[g.NVB_SN_SERVER_INITIATED_RESUME=4]="NVB_SN_SERVER_INITIATED_RESUME",g[g.NVB_SN_CONTROLLER_MAPPING_CHANGED=5]="NVB_SN_CONTROLLER_MAPPING_CHANGED",g[g.NVB_SN_APPROACHING_IDLE_TIMEOUT=11]="NVB_SN_APPROACHING_IDLE_TIMEOUT",g[g.NVB_SN_APPROACHING_SESSION_MAX_TIMELIMIT=12]="NVB_SN_APPROACHING_SESSION_MAX_TIMELIMIT",g[g.NVB_SN_APPROACHING_ENTITLEMENT_TIMEOUT=13]="NVB_SN_APPROACHING_ENTITLEMENT_TIMEOUT",g[g.NVB_SN_CLEAR_IDLE_TIMEOUT=14]="NVB_SN_CLEAR_IDLE_TIMEOUT",g[g.NVB_SN_WARNING_MAX=20]="NVB_SN_WARNING_MAX",g[g.NVB_SN_FRAME_STATISTICS=21]="NVB_SN_FRAME_STATISTICS",g[g.NVB_SN_SUMMARY_STATISTICS=22]="NVB_SN_SUMMARY_STATISTICS",g[g.NVB_SN_TERMINATION_BEGIN=50]="NVB_SN_TERMINATION_BEGIN",g[g.NVB_SN_STREAMING_START_FAILED=51]="NVB_SN_STREAMING_START_FAILED",g[g.NVB_SN_STOPPED_BY_USER=52]="NVB_SN_STOPPED_BY_USER",g[g.NVB_SN_STOPPED_UNINTENTIONALLY=53]="NVB_SN_STOPPED_UNINTENTIONALLY",g[g.NVB_SN_ENTITLEMENT_TIMEOUT=54]="NVB_SN_ENTITLEMENT_TIMEOUT",g[g.NVB_SN_STREAMER_NETWORK_ERROR=55]="NVB_SN_STREAMER_NETWORK_ERROR",g[g.NVB_SN_EXITED_DUE_TO_USER_IDLE_TIMEOUT=56]="NVB_SN_EXITED_DUE_TO_USER_IDLE_TIMEOUT",g[g.NVB_SN_EXITED_DUE_TO_SESSION_TIMELIMIT=57]="NVB_SN_EXITED_DUE_TO_SESSION_TIMELIMIT",g[g.NVB_SN_TERMINATED_BY_OPERATOR=58]="NVB_SN_TERMINATED_BY_OPERATOR",g[g.NVB_SN_PAUSED_BY_USER=59]="NVB_SN_PAUSED_BY_USER",g[g.NVB_SN_TERMINATED_BY_PM=60]="NVB_SN_TERMINATED_BY_PM",g[g.NVB_SN_TERMINATED_WINDOWED_MODE=61]="NVB_SN_TERMINATED_WINDOWED_MODE",g[g.NVB_SN_TERMINATED_GAME_EXITED=62]="NVB_SN_TERMINATED_GAME_EXITED",g[g.NVB_SN_TERMINATED_UNAUTHROIZED_PROCESS_ACCESS=63]="NVB_SN_TERMINATED_UNAUTHROIZED_PROCESS_ACCESS",g[g.NVB_SN_TERMINATED_MULTIPLE_LOGIN=64]="NVB_SN_TERMINATED_MULTIPLE_LOGIN",g[g.NVB_SN_TERMINATED_MALICIOUS_PROCESS_ACCESS=65]="NVB_SN_TERMINATED_MALICIOUS_PROCESS_ACCESS",g[g.NVB_SN_TERMINATED_UNKNOWN_PROCESS_ACCESS=66]="NVB_SN_TERMINATED_UNKNOWN_PROCESS_ACCESS",g[g.NVB_SN_TERMINATED_MINER_PROCESS_ACCESS=67]="NVB_SN_TERMINATED_MINER_PROCESS_ACCESS",g[g.NVB_SN_TERMINATED_FULL_TDR_OCCURRED=68]="NVB_SN_TERMINATED_FULL_TDR_OCCURRED",g[g.NVB_SN_TERMINATED_ANOTHER_CLIENT=69]="NVB_SN_TERMINATED_ANOTHER_CLIENT",g[g.NVB_SN_TERMINATED_GAME_NOT_OWNED_BY_USER=72]="NVB_SN_TERMINATED_GAME_NOT_OWNED_BY_USER",g[g.NVB_SN_PM_TERMINATED_MAINTENANCE_MODE=73]="NVB_SN_PM_TERMINATED_MAINTENANCE_MODE",g[g.NVB_SN_TERMINATION_MAX=200]="NVB_SN_TERMINATION_MAX",g[g.NVB_SN_TERMINATED_DUE_TO_SYSTEM_SLEEP=301]="NVB_SN_TERMINATED_DUE_TO_SYSTEM_SLEEP",g[g.NVB_SN_PAUSED_DUE_TO_SYSTEM_SLEEP=302]="NVB_SN_PAUSED_DUE_TO_SYSTEM_SLEEP",g[g.NVB_SN_INIT_FAILED_DUE_TO_SYSTEM_SLEEP=303]="NVB_SN_INIT_FAILED_DUE_TO_SYSTEM_SLEEP",g[g.NVB_SN_INIT_PAUSED_DUE_TO_SYSTEM_SLEEP=304]="NVB_SN_INIT_PAUSED_DUE_TO_SYSTEM_SLEEP",g[g.SERVER_DISCONNECTED_MULTIPLE_TAB=15868752]="SERVER_DISCONNECTED_MULTIPLE_TAB",g}(m||{}),_=function(g){return g.STREAMING_BEGIN="STREAMING_BEGIN",g.SESSION_SETUP_SUCCESS="SESSION_SETUP_SUCCESS",g.SESSION_SETUP_FAILURE="SESSION_SETUP_FAILURE",g.STREAMING_TERMINATED="STREAMING_TERMINATED",g.ACTIVE_SESSIONS="ACTIVE_SESSIONS",g.GET_SESSION_INFO="GET_SESSION_INFO",g.STOP_RESULT="STOP_RESULT",g.SESSION_RESUME_FAILURE="SESSION_RESUME_FAILURE",g.STREAMING_WARNINGS="STREAMING_WARNINGS",g.SESSION_SETUP_PROGRESS="SESSION_SETUP_PROGRESS",g.ANALYTICS_EVENT="ANALYTICS_EVENT",g.SUMMARY_STATS="SUMMARY_STATS",g.FRAME_STATS="FRAME_STATS",g.UPDATE_AUTH_TOKEN="UPDATE_AUTH_TOKEN",g.STREAMING_QUALITY="STREAMING_QUALITY",g.STREAMING_FIRST_FRAME="STREAMING_FIRST_FRAME",g.STREAMING_PROPERTY_UPDATE="STREAMING_PROPERTY_UPDATE",g.STREAMING_FRAME_LOSS_WARNING="STREAMING_FRAME_LOSS_WARNING",g.STREAMING_FRAME_LOSS_ERROR="STREAMING_FRAME_LOSS_ERROR",g.STREAMING_FRAME_LOSS_CLEARED="STREAMING_FRAME_LOSS_CLEARED",g.BROWSER_ANALYTICS_EVENT="BROWSER_ANALYTICS_EVENT",g.SERENITY_EVENT="SERENITY_EVENT",g.STREAMING_CLIENT_MESSAGE="STREAMING_CLIENT_MESSAGE",g.TEXT_COMPOSITION="TEXT_COMPOSITION",g}(_||{}),P=function(g){return g[g.NVB_SESSION_STATUS_UNKNOWN=-1]="NVB_SESSION_STATUS_UNKNOWN",g[g.NVB_SESSION_INITIALIZING=0]="NVB_SESSION_INITIALIZING",g[g.NVB_SESSION_READY_FOR_CONNECT=1]="NVB_SESSION_READY_FOR_CONNECT",g[g.NVB_SESSION_STREAMING=2]="NVB_SESSION_STREAMING",g[g.NVB_SESSION_WAITING_FOR_RECONNECT=3]="NVB_SESSION_WAITING_FOR_RECONNECT",g[g.NVB_SESSION_PAUSED_INTENTIONAL=4]="NVB_SESSION_PAUSED_INTENTIONAL",g[g.NVB_SESSION_PAUSED_UNINTENTIONAL=5]="NVB_SESSION_PAUSED_UNINTENTIONAL",g[g.NVB_SESSION_RESUMING=6]="NVB_SESSION_RESUMING",g[g.NVB_SESSION_FINISHED=7]="NVB_SESSION_FINISHED",g}(P||{}),v=function(g){return g[g.NVB_SSS_CONNECTING=0]="NVB_SSS_CONNECTING",g[g.NVB_SSS_QUEUEPOSITION=1]="NVB_SSS_QUEUEPOSITION",g[g.NVB_SSS_CONFIGURING=2]="NVB_SSS_CONFIGURING",g[g.NVB_SSS_STARTINGSTREAMER=3]="NVB_SSS_STARTINGSTREAMER",g[g.NVB_SSS_SEATREADY=4]="NVB_SSS_SEATREADY",g[g.NVB_SSS_PREVIOUS_SESSION_CLEANUP=5]="NVB_SSS_PREVIOUS_SESSION_CLEANUP",g}(v||{}),S=function(g){return g.STREAMING_CONNECTION_LOST="STREAMING_CONNECTION_LOST",g.STREAMING_CONNECTION_FOUND="STREAMING_CONNECTION_FOUND",g}(S||{}),y=function(g){return g[g.RESUMABLE=0]="RESUMABLE",g[g.NOT_RESUMABLE=1]="NOT_RESUMABLE",g[g.NO_AUTH_TOKEN=2]="NO_AUTH_TOKEN",g}(y||{}),h=function(g){return g[g.UNKNOWN=0]="UNKNOWN",g[g.RESOLUTION=1]="RESOLUTION",g[g.BIT_DEPTH=2]="BIT_DEPTH",g}(h||{})},95294:(Ue,W,d)=>{"use strict";d.d(W,{U:()=>l});var n=d(23355);class l{constructor(){this.result=n.b5.NVB_R_SESSION_NOT_ACTIVE,this.extendedError=[]}}},36203:(Ue,W,d)=>{"use strict";d.d(W,{CW:()=>l.CW,IC:()=>n.I,Jt:()=>l.Jt,XK:()=>l.XK,b5:()=>l.b5,fZ:()=>l.fZ});var n=d(68130),l=d(23355);d(95294)},68130:(Ue,W,d)=>{"use strict";d.d(W,{I:()=>pe});var n=d(3567),l=d(74931),p=d(8282),m=d(4208),_=d(75707),P=d(8619),v=d(83915),O=d(91384),S=d(53461),y=d(65706),r=d(14714),i=d(10174),a=d(99047),h=d(48765),g=d(27721);class T{constructor(ke,De){this.bufferSize=ke,this.startBufferEvery=De,this.subscriberClass=De&&ke!==De?L:A}call(ke,De){return De.subscribe(new this.subscriberClass(ke,this.bufferSize,this.startBufferEvery))}}class A extends g.v{constructor(ke,De){super(ke),this.bufferSize=De,this.buffer=[]}_next(ke){const De=this.buffer;De.push(ke),De.length==this.bufferSize&&(this.destination.next(De),this.buffer=[])}_complete(){const ke=this.buffer;ke.length>0&&this.destination.next(ke),super._complete()}}class L extends g.v{constructor(ke,De,Me){super(ke),this.bufferSize=De,this.startBufferEvery=Me,this.buffers=[],this.count=0}_next(ke){const{bufferSize:De,startBufferEvery:Me,buffers:je,count:$e}=this;this.count++,$e%Me==0&&je.push([]);for(let Oe=je.length;Oe--;){const gt=je[Oe];gt.push(ke),gt.length===De&&(je.splice(Oe,1),this.destination.next(gt))}}_complete(){const{buffers:ke,destination:De}=this;for(;ke.length>0;){let Me=ke.shift();Me.length>0&&De.next(Me)}super._complete()}}var x=d(26513),V=d(80583),D=d(3496),F=d(43848),I=d(31315),k=d(35146),R=d(12532),G=d(36466),Y=d(27731),K=d(16229),$=d(19392),ee=d(59859),J=d(23355),z=d(26875),te=d(95294),X=d(97152),re=d(2490),ge=d(90929),oe=d(25216),xe=d(58527),ue=d(72945),N=d(25167),se=d(97663),ce=d(67017),Z=d(50801),de=d(70521);function ae(_e,ke){return _e.sessionId===ke.sessionId||_e.subSessionId===ke.subSessionId}let pe=(()=>{var _e;class ke{get streamingProperties(){return this.sharedStreamingProperties}get hasFirstFrameBeenReceived(){return this._hasFirstFrameBeenReceived}get isStreamingOn(){return this.isStreaming}get connectivityEvent$(){return this.connectivityEventSub.asObservable()}get startRequests$(){return this.startRequestsSub.asObservable()}get resumeType(){return this.isResume?this.isAutoResumedSession?X.yEy.AutoResume:X.yEy.DeviceTransition:X.yEy.None}get streamingEvent$(){return this._streamingEvent$}get dismissPushNotificationSnackbarSubject(){return this.dismissSnackbar}get dismissPushNotificationSnackbarObs$(){return this.dismissSnackbar.asObservable()}constructor(Me,je,$e,Oe,gt,qt,ye,Re,Ze,et,xt,un,ct,Gt,pn,st,mn,Bn,En,Cn,fn,dt,nn,yn,Xn,rn,ai,ri,Ne){this.bridgeService=je,this.windowService=$e,this.sharedStorageService=Oe,this.gameSessionAnalyticsService=gt,this.gameSessionDistributedTracingService=qt,this.idmService=ye,this.gfnSdkService=Re,this.appConfig=Ze,this.discordService=et,this.networkStatusService=xt,this.distributedTracingUtilService=un,this.networkConfigurationService=ct,this.gfcHelperService=Gt,this.keyboardLayoutService=pn,this.streamerConfigService=st,this.surveyService=mn,this.projectInterfaceService=Bn,this.serviceWorkerService=En,this.networkStatus=Cn,this.streamingProfileService=fn,this.systemInfoService=dt,this.deeplinkHelperService=nn,this.clipboardService=yn,this.clientHeaderService=Xn,this.ratingService=rn,this.browseUxService=ai,this.udsHelperService=ri,this.opportunityHelperService=Ne,this.$streamingCodecName=new x.t(null),this.connectivityEventSub=new V.B7,this.startRequestsSub=new V.B7,this.dismissSnackbar=new V.B7,this.validResumeErrorCodes=[J.fZ.NVB_SN_STREAMER_NETWORK_ERROR,J.fZ.NVB_SN_STOPPED_UNINTENTIONALLY,J.fZ.NVB_SN_PAUSED_DUE_TO_SYSTEM_SLEEP,J.fZ.NVB_SN_INIT_PAUSED_DUE_TO_SYSTEM_SLEEP],this.validSleepErrorCodes=[J.fZ.NVB_SN_STREAMER_NETWORK_ERROR,J.fZ.NVB_SN_STOPPED_BY_USER],this.isVideoReceived=!1,this._hasFirstFrameBeenReceived=!1,this.isStreaming=!1,this.resumableSession=!1,this.waitForStop=!1,this.shuttingDownFromSleep=!1,this.sharedStreamingProperties={sessionId:null,subSessionId:null,streams:null},this.isResume=!1,this.autoResuming=!1,this.sessionStartAttempts=0,this.isAutoResumedSession=!1,this.terminatingAutoResume$=new V.B7,this.cancelTimerSubject=new V.B7,this.reconnectTimeout=(0,D.O)(this.appConfig.streamer.reconnectTimeout).pipe((0,p.u)(),(0,m.Q)(this.cancelTimerSubject)),this.nvstNetworkErrorCodes=/^8004([A-F0-9]{4})/,this.isAuthTokenRefreshedOnce=!1,this.logger=Me.getLogger("streamingService"),this.resetStreamingServiceFlags(),this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.initializeCallbackHandlers(),this.registerCallback$=this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.RegisterCallback),this._streamingEvent$=this.registerCallback$.pipe((0,_.ZZ)(zt=>{const vt=this.callbackHandler.get(zt.event);return vt?vt.call(this,zt):(0,F.of)(zt)}),(0,p.u)()),this.streamingEvent$.subscribe(()=>{},zt=>this.logger.error("callback error",zt),()=>this.logger.info("callback complete")),this.activeSessionsEvent$=this.streamingEvent$.pipe((0,P.p)(zt=>zt.event===J.CW.ACTIVE_SESSIONS),(0,v.T)(zt=>zt)),this.getSessionInfoEvent$=this.streamingEvent$.pipe((0,P.p)(zt=>zt.event===J.CW.GET_SESSION_INFO),(0,v.T)(zt=>zt)),this.stopEvent$=this.streamingEvent$.pipe((0,P.p)(zt=>zt.event===J.CW.STOP_RESULT),(0,O.M)(zt=>{this.waitForStop=!1,this.updateSessionId(zt.sessionId,zt.subSessionId)})),this.sessionSetupProgressEvent$=this.streamingEvent$.pipe((0,P.p)(zt=>zt.event===J.CW.SESSION_SETUP_PROGRESS),(0,v.T)(zt=>zt)),this.sessionSetupProgressEvent$.pipe((0,S.F)(ae)).subscribe(zt=>this.updateSessionId(zt.sessionId,zt.subSessionId)),(0,I.zV)([this.streamingProfileService.getStreamingProfileGuid(),this.systemInfoService.getSystemInfoGuid()]).pipe((0,_.ZZ)(([zt,vt])=>this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.UpdateEventInfoGuids,{streamingProfileGuid:zt,systemInfoGuid:vt}))).subscribe(),this.initProjectInterfaceNotifications(),this.registerStreamingCodec()}getStreamingCodec(){return this.$streamingCodecName.asObservable()}registerStreamingCodec(){n.zk.isCefPlatform()&&(this.logger.info("Registering codec callback"),this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.StreamingCodecNotification).subscribe(Me=>{this.logger.info("Received Codec ",Me),this.$streamingCodecName.next(Me)}))}sessionTerminationListener(Me){let je="";this.swListenerSubscription=(0,k.yU)(this.serviceWorkerService.swNotifyListener,this.sessionSetupProgressEvent$).pipe((0,y.s)(1),(0,_.ZZ)(([$e,Oe])=>(this.logger.info("Msg received from SW to stop streaming: ",$e),je=$e.content,this.checkIfStopSessionCanBeInitiated(Oe.state)?(this.logger.info("Session is not initialized, we can safely stop it"),this.stopStreaming(!1,J.Jt.GFNPC_CLIENT_GAME_LAUNCHED_IN_NEW_TAB)):R.w)),(0,_.ZZ)($e=>{if(this.logger.info("Session is stopped:",$e),$e){const gt=new oe.Tw({event:J.CW.STREAMING_TERMINATED,reason:J.fZ.NVB_SN_TERMINATED_ANOTHER_CLIENT,latestStreamedAppName:je});Me(gt)}return R.w}),(0,r.W)($e=>(this.logger.error("Some unexpected error occured: ",$e),R.w))).subscribe()}checkIfStopSessionCanBeInitiated(Me){return Me===J.o2.NVB_SSS_CONNECTING||Me===J.o2.NVB_SSS_PREVIOUS_SESSION_CLEANUP||Me===J.o2.NVB_SSS_QUEUEPOSITION}unsubscribeSessionTerminationListener(){this.swListenerSubscription?.unsubscribe()}initProjectInterfaceNotifications(){this.streamingEvent$.subscribe(Me=>{switch(Me.event){case J.CW.SESSION_SETUP_SUCCESS:this.projectInterfaceService.notifyStreamingSessionSetupSuccess({event:Me.event,sessionId:Me.sessionId,subSessionId:Me.subSessionId});break;case J.CW.STREAMING_BEGIN:this.projectInterfaceService.notifyStreamingBegin({event:Me.event});break;case J.CW.STOP_RESULT:case J.CW.STREAMING_TERMINATED:case J.CW.SESSION_SETUP_FAILURE:const Oe={event:Me.event,errorCode:Me.reason,isResumable:this.isResumableNetworkErrorCode(Me)};this.projectInterfaceService.notifyStreamingEnd(Oe),this.browseUxService.emitStreamingTerminated()}},G.l)}updateKeyboardLayout(){return(0,I.zV)([this.systemInfoService.getDeviceOSType().pipe((0,y.s)(1)),this.keyboardLayoutService.readCachedKeyboardLayout()]).pipe((0,O.M)(([Me,je])=>{this.logger.info("Keyboard layout cache read response for prepare:",je);let $e=je?.code;!$e&&n.zk.isBrowserPlatform()&&($e=this.keyboardLayoutService.getDefaultKBLayoutCode()),this.logger.info("Updating the keyboard layout data to be passed to the streamer:",$e),this.keyboardLayoutCode=$e,this.projectInterfaceService.setIsNonEnglishKeyboardLayout(this.keyboardLayoutService.isNonEnglishKeyboardLayout($e,Me))},Me=>this.logger.info("Keyboard layout cache read error:",Me)),(0,i.u)(null))}updateStreamingContentRating(){let Me;return Me=this.streamingParams.contentRating?.type&&this.streamingParams.contentRating?.categoryKey&&this.streamingParams.contentRating?.contentDescriptorKeys?(0,k.yU)(this.ratingService.getCurrentRating(this.streamingParams.contentRating.type,this.streamingParams.contentRating.categoryKey).pipe((0,r.W)(je=>(0,F.of)(null))),this.ratingService.getContentDescriptors(this.streamingParams.contentRating.type,this.streamingParams.contentRating.contentDescriptorKeys).pipe((0,r.W)(je=>(0,F.of)([])))):(0,F.of)([null,[]]),Me.pipe((0,y.s)(1),(0,O.M)(([je,$e])=>{let Oe="";$e&&$e.length&&(Oe=$e.join(", ")),this.startParamsContentRating=void 0,(0,z.isNil)(je)||(this.startParamsContentRating={displayIntervalMin:je.displayInterval,ratingClassText:je.rating.label,largeImageUrl:je.rating.largeImageUrl,smallImageUrl:je.rating.smallImageUrl,contentDescriptorText:Oe,ratingSystem:this.streamingParams?.contentRating?.type??"",categoryKey:this.streamingParams?.contentRating?.categoryKey??"",contentDescriptorKeys:this.streamingParams?.contentRating?.contentDescriptorKeys??[],interactiveElementKeys:this.streamingParams?.contentRating?.interactiveElementKeys??[]})}),(0,v.T)(je=>{}))}initializeCallbackHandlers(){this.callbackHandler=new Map,this.callbackHandler.set(J.CW.SESSION_SETUP_SUCCESS,this.onSessionSetupSuccess),this.callbackHandler.set(J.CW.STREAMING_BEGIN,this.onStreamingBegin),this.callbackHandler.set(J.CW.SESSION_SETUP_FAILURE,this.onSetupFailure),this.callbackHandler.set(J.CW.STREAMING_TERMINATED,this.onStreamingTerminated),this.callbackHandler.set(J.CW.UPDATE_AUTH_TOKEN,this.onUpdateAuthToken),this.callbackHandler.set(J.CW.STREAMING_FIRST_FRAME,this.onStreamingFirstFrame),this.callbackHandler.set(J.CW.SESSION_RESUME_FAILURE,this.onSessionResumeFailure),this.callbackHandler.set(J.CW.SESSION_SETUP_PROGRESS,this.onSessionSetupProgress),this.callbackHandler.set(J.CW.STREAMING_FRAME_LOSS_WARNING,this.onFrameLossWarning),this.callbackHandler.set(J.CW.STREAMING_FRAME_LOSS_ERROR,this.onFrameLossError),this.callbackHandler.set(J.CW.STREAMING_FRAME_LOSS_CLEARED,this.onFrameLossCleared)}mapSleepErrorCode(Me){return this.shuttingDownFromSleep&&(0,z.includes)(this.validSleepErrorCodes,Me.reason)&&(this.logger.info("Valid error reason for sleep, replacing reason but leaving error code."),Me.reason=J.fZ.NVB_SN_TERMINATED_DUE_TO_SYSTEM_SLEEP,this.shuttingDownFromSleep=!1),Me}onUpdateAuthToken(Me){this.logger.info("getDelegateToken");const je=this.distributedTracingUtilService.startSpanUsingContext("StreamerUpdateAuthToken",Me.spanData);return this.idmService.getAuthToken(!1,je).pipe((0,r.W)($e=>(this.logger.info("Catch delegateToken error"),(0,F.of)({token:""}))),(0,_.ZZ)($e=>this.processDelegateToken($e||null)),(0,v.T)($e=>Me))}processDelegateToken(Me){this.logger.info("processDelegateToken");let je="";return null!==Me&&(je=JSON.stringify({access_token:Me.token})),this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.SetAuthToken,{token:je})}onStreamingBegin(Me){return this.logger.info("onStreamingBegin"),this.discordService.updatePresence(this.streamingParams.appName),this.distributedTracingUtilService.closeSpan(this.streamingSpan),this.isStreaming=!0,this.sessionStartAttempts=0,this.appConfig?.client?.needsDialogForInStreamPaste||(this.clipboardInitSub=this.clipboardService.init().subscribe(),this.clipboardAvailableSub=this.windowService.getFocusEvent().subscribe(()=>{this.clipboardService.detectClipboardChange?.next(!0)})),this.networkConfigurationService.cacheCurrentFingerprint().pipe((0,r.W)(je=>(this.logger.error("Unable to cache current fingerprint: ",je),(0,F.of)(!1))),(0,_.ZZ)(je=>this.autoResuming?(this.logger.info("auto resuming, suppress onStreamingBegin "),this.connectivityEventSub.next({event:J.JY.STREAMING_CONNECTION_FOUND}),this.cancelTimerSubject.next(!0),this.resetAutoResumingState(),this.sendStreamingBeginTelemetry(),Y.t):(this.logger.info("not auto-resuming, stream starting"),this.gameSessionAnalyticsService.updateGameLaunchDurations(X.iVs.StartSession,void 0),this.gameSessionAnalyticsService.updateGameLaunchDurations(X.iVs.StreamingStartDuration,void 0),this.gameSessionAnalyticsService.nextSeatSeatupEvent(null,!0),this.sendStreamingBeginTelemetry(),(0,F.of)(Me))))}sendStreamingBeginTelemetry(){this.logger.info("sending telemetry, onStreamingBegin");const Me={status:X.fbu.Success,isResume:this.isResume,errorDetails:"0x00000000"};this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.gameSessionAnalyticsService.handleGeronimoLaunchResult(Me,this.sharedStreamingProperties.sessionId),this.gameSessionDistributedTracingService.updateGeronimoLaunchInfo(Me,this.sharedStreamingProperties.sessionId)}onStreamingFirstFrame(Me){return this.logger.info("onStreamingFirstFrame"),this.isVideoReceived=!0,this._hasFirstFrameBeenReceived=!0,(0,F.of)(Me)}onSetupFailure(Me){return this.logger.error("onSetupFailure",Me),this.waitForStop=!1,this.updateSessionId(Me.sessionId,Me.subSessionId),!1===this.isAuthTokenRefreshedOnce&&Me.result.result===J.b5.NVB_R_AUTH_ERR_UNKNOWN?(this.logger.info("Failed with NVB_R_AUTH_ERR_UNKNOWN starting with refreshed token"),this.isAuthTokenRefreshedOnce=!0,this.setAuthInfo(!0).pipe((0,_.ZZ)(()=>this.start()),(0,_.ZZ)(()=>Y.t))):1===this.sessionStartAttempts&&Me.result.result===J.b5.NVB_R_SESSION_LIMIT_REACHED?(this.logger.info("Attempted to launch a session resulted in session limit reached, stopping or resuming active session"),this.gameSessionAnalyticsService.moveGameLaunchDuration(X.iVs.SessionCleanup,X.iVs.StartSession),this.gameSessionAnalyticsService.resetSeatSetupEventSequence(!0),this.gameSessionAnalyticsService.nextSeatSeatupEvent(null,!0),this.sessionCleanup(Me).pipe((0,y.s)(1),(0,O.M)(()=>{this.gameSessionAnalyticsService.updateGameLaunchDurations(X.iVs.SessionCleanup,X.iVs.StartSession),this.gameSessionAnalyticsService.startGameLaunchDuration(X.iVs.StreamerClientSetupDuration)}),(0,_.ZZ)(je=>je.error?this.forwardSetupFailure({event:J.CW.SESSION_SETUP_FAILURE,result:{requestId:0,result:je.result},sessionId:""}):this.start(je.sessionId).pipe((0,_.ZZ)(()=>Y.t))))):this.forwardSetupFailure(Me)}forwardSetupFailure(Me){this.gameSessionAnalyticsService.updateGameLaunchDurations(X.iVs.StartSession,void 0),this.gameSessionAnalyticsService.resetSeatSetupEventSequence(!1),this.gameSessionAnalyticsService.nextSeatSeatupEvent(null,!0);const je=this.getErrorCode(Me.result),$e={status:"0x00000000"!==je?n.zk.isCefPlatform()?X.fbu.GeronimoLaunchError:X.fbu.RagnarokLaunchError:X.fbu.Success,isResume:this.isResume,errorDetails:je.toString()};return this.logger.info("received session error : ",$e),this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.gameSessionAnalyticsService.handleGeronimoLaunchResult($e,Me.sessionId),this.gameSessionDistributedTracingService.updateGeronimoLaunchInfo($e,Me.sessionId),this.sessionStartAttempts=0,(0,F.of)(Me)}getErrorCode(Me){let je;return je=(0,z.isArray)(Me.extendedError)&&Me.extendedError.length>0?Me.extendedError[0]:Me.result,(0,X.yJs)(je)}onSessionResumeFailure(Me){return this.waitForStop=!1,this.autoResuming?this.hasSessionTimedOut?(this.logger.info("returning cached terminated event"),(0,F.of)(this.prevTerminatedInfo)):(this.logger.info("auto resume failed, retrying",Me),this.resumeableTerminateWrapper(this.prevTerminatedInfo,!0)):(this.logger.error("onResumeFailure",Me),this.sendResumeFailureTelemetryData({status:n.zk.isCefPlatform()?X.fbu.GeronimoLaunchError:X.fbu.RagnarokLaunchError,errorDetails:(0,z.propertyOf)(Me)("result").toString()}),this.updateSessionId(Me.sessionId,Me.subSessionId),(0,F.of)(Me))}resetAutoResumingState(){this.autoResuming=!1,this.prevTerminatedInfo=null}updateNetorkTestIndirectPolicy(Me,je){return Me?this.networkConfigurationService.updateCurrentFingerprintNetworkTestFlag(Me,je):(0,F.of)(!1)}getStreamerNetworkErrorInfo(Me,je){const $e=je.toString(16).toUpperCase();let Oe=[!1];return Me===J.fZ.NVB_SN_STREAMER_NETWORK_ERROR&&this.nvstNetworkErrorCodes.test($e)?Oe=[!0,X.VK0.StreamerNetworkError]:this.appConfig.featureEnablement.networkTestPolicy.isFrameLossTimeoutErrorEnabled&&Me===J.fZ.NVB_SN_PAUSED_BY_USER&&je===J.Jt.GFNPC_CLIENT_FRAME_LOSS_TIMEOUT_ERROR&&(Oe=[!0,X.VK0.StreamerFrameLossTimeoutError]),this.logger.info(`Network test should${Oe[0]?"":" not"} be triggered from network error code: 0x${$e}`),Oe}saveUDSDataFromGS(Me){this.logger.info("UDS Data on session termination ",Me),this.udsHelperService.rawUDSDataFromGS=Me}onStreamingTerminated(Me){Me=this.mapSleepErrorCode(Me),this.logger.info("onStreamingTerminated",Me),this.discordService.clearPresence(),this.isStreaming=!1,this.waitForStop=!1,this.clipboardAvailableSub?.unsubscribe(),this.clipboardInitSub?.unsubscribe(),this.saveUDSDataFromGS(Me?.udsData);const[je,$e]=this.getStreamerNetworkErrorInfo(Me.reason,Me.extendedCode);return this.updateNetorkTestIndirectPolicy(je,$e).pipe((0,r.W)(Oe=>(this.logger.error("Unable to update streamer network test policy: ",Oe),(0,F.of)(!1))),(0,_.ZZ)(Oe=>this.isVideoReceived&&this.isResumableNetworkErrorCode(Me)?(this.resumableSession=!0,this.isVideoReceived=!1,this.logger.info("session is resumable, sending STREAMING_CONNECTION_LOST event"),this.connectivityEventSub.next({event:J.JY.STREAMING_CONNECTION_LOST}),this.appConfig.featureEnablement?.autoResumeDisabled?(0,F.of)(Me):(this.reconnectTimeout.pipe((0,y.s)(1)).subscribe(()=>{this.hasSessionTimedOut=!0,this.logger.info("hasSessionTimedOut set to true")}),this.resumeableTerminateWrapper(Me,!1))):(this.logger.info("clear state"),this.resumableSession=!1,this.clearSessionId(!this.isSessionResumable()),(0,F.of)(Me))))}isResumableNetworkErrorCode(Me){return this.logger.info("isNetworkErrorCode? :",Me),Me.isResumable&&Me.reason!==J.fZ.NVB_SN_TERMINATED_DUE_TO_SYSTEM_SLEEP}resumeableTerminateWrapper(Me,je){const $e=this.terminatingAutoResume$.asObservable().pipe((0,i.u)(null)),Oe=this.resumableTerminate(Me),gt=je?(0,D.O)(this.appConfig.streamer.reconnectRefreshInterval).pipe((0,_.ZZ)(()=>Oe)):Oe;return(0,K.h)(gt,$e).pipe((0,a.$)(),(0,h.v)(()=>!1===this.isStreaming),(0,_.ZZ)(qt=>((0,z.isNil)(qt)?this.logger.info("Terminate Fired!"):this.logger.info("Auto resume failed!"),(0,F.of)(Me))))}resumableTerminate(Me){if(this.networkStatusService.isOnline)return this.attemptAutoResume(Me);{const je=this.networkStatusService.onlineStatusChanged.pipe((0,P.p)($e=>!0===$e));return(0,K.h)(this.reconnectTimeout,je).pipe((0,a.$)(),(0,_.ZZ)($e=>!0===$e?this.attemptAutoResume(Me):(this.logger.info("Network timed out!"),(0,F.of)(Me))))}}attemptAutoResume(Me){const je=this.startSessionsPollingSpan(re.pB.GetSessionInfo);return this.getSessionInfo(this.sharedStreamingProperties.sessionId,je).pipe((0,_.ZZ)($e=>this.getSessionInfoEvent$),(0,O.M)($e=>{this.logger.info("getSessionInfo - sessionInfo",$e),this.logger.info("update resumable state and clear"),this.distributedTracingUtilService.closeSpan(je),this.updateResumableSession($e)}),(0,a.$)(),(0,_.ZZ)($e=>this.resumableSession?(this.logger.info("auto resuming.... calling gfnResume"),this.autoResuming=!0,this.prevTerminatedInfo=Me,this.autoResume().pipe((0,_.ZZ)(()=>(this.isAutoResumedSession=!0,this.logger.info("auto-resume invoked"),Y.t)),(0,r.W)(Oe=>(this.logger.error("auto-resume failed",Oe),this.resetAutoResumingState(),this.clearSessionId(!this.isSessionResumable()),(0,F.of)(Me))))):(this.logger.info("fire terminated",this.resumableSession,this.networkStatusService.isOnline),(0,F.of)(Me))),(0,r.W)($e=>(this.logger.info("attemptAutoResume error:",$e),(0,F.of)(Me))))}autoResume(){return this.isResume=!0,this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.networkConfigurationService.networkSessionId$.pipe((0,y.s)(1),(0,_.ZZ)(Me=>this.gfnResume(Me).pipe((0,O.M)(je=>{this.waitForStop=je,this.startRequestsSub.next()}))))}clearSessionId(Me=!1){this.sharedStreamingProperties.sessionId=null,this.sharedStreamingProperties.subSessionId=null,Me&&(this.logger.info("clear old streaming sessionId from sharedstorage.json."),this.updateSessionId())}updateResumableSession(Me){this.logger.info("updateResumableSession"),this.resumableSession=!0,this.getResumableState(Me.result,Me.sessions)===J.hY.NOT_RESUMABLE&&(this.resumableSession=!1),this.logger.info("updateResumableSession resumeable",this.resumableSession)}onSessionSetupSuccess(Me){return this.sharedStreamingProperties.sessionId=Me.sessionId,this.sharedStreamingProperties.subSessionId=Me.subSessionId,this.updateSessionId(Me.sessionId,Me.subSessionId),this.sharedStreamingProperties.streams=Me.streams,this.logger.info("streams: "+JSON.stringify(this.sharedStreamingProperties.streams)),this.surveyService.setStreamingSessionId(this.sharedStreamingProperties.sessionId),this.clipboardService.setStreamingIds(this.sharedStreamingProperties.sessionId,this.sharedStreamingProperties.subSessionId),this.autoResuming?(this.logger.info("auto resuming, suppress success"),Y.t):(this.logger.info("streaming mode is",Me.streamingMode),(0,F.of)(Me))}onSessionSetupProgress(Me){return this.autoResuming?Y.t:(0,F.of)(Me)}onFrameLossError(Me){return this.logger.info("onFrameLossError"),this.pauseStreaming(J.Jt.GFNPC_CLIENT_FRAME_LOSS_TIMEOUT_ERROR).pipe((0,v.T)(je=>Me),(0,r.W)(je=>(this.logger.error("pauseStreaming failed",je),(0,F.of)(Me))))}onFrameLossWarning(Me){return this.logger.info("onFrameLossWarning"),(0,F.of)(Me)}onFrameLossCleared(Me){return this.logger.info("onFrameLossCleared"),(0,F.of)(Me)}updateSessionId(Me,je){this.logger.info("Update session Id"),this.updateSessionIdsForSharedServices(Me,je),this.sharedStorageService.writeBlock("streamingSessionId",{sessionId:Me||null}).subscribe(G.l,Oe=>{this.logger.error("Failed to update the session Id in shared storage. Error:",Oe)})}updateSessionIdsForSharedServices(Me,je){Me&&(this.gfcHelperService.updateEventDataParamIds({streamSessionId:Me,streamSubSessionId:je}),this.opportunityHelperService.streamingProperties={sessionId:Me,subSessionId:je})}gfnStart(Me){return this.gameSessionAnalyticsService.updateGameLaunchDurations(X.iVs.StreamerClientSetupDuration,X.iVs.StreamerConnectionDuration),this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.Start,Me)}gfnPrepare(Me){return this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.Prepare,Me)}getActiveSessions(Me){return this.logger.info("getActiveSessions"),this.setAuthInfo().pipe((0,_.ZZ)(()=>this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.GetActiveSessions,{spanData:(0,z.isNil)(Me)?{}:this.distributedTracingUtilService.inject(Me)})))}getSessionInfo(Me,je){return this.logger.info("getSessionInfo"),this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.GetSessionInfo,{session:Me,spanData:je?this.distributedTracingUtilService.inject(je):{}})}start(Me){const je=(0,z.pick)(this.streamingParams,["appId","appLaunchMode","frameStatsEnabled","summaryStatsEnabled","maxLocalPlayers","advancedLatencyOptimization","networkPacketCaptureEnabled","metaData","frameLossWarningTimeout","frameLossErrorTimeout","address","serverType","port","partnerCustomData","streamingProfile","locale","accountLinked","persistingInGameSettings","gameShortName","networkSessionId","audioModeFormat","supportedControls","heroImage","gameDisplayOwnRating","storeName","appName","subscriptionLongDesc","providerName","zoneName","userAge","serverLocation","gpuNameMap"]);this.keyboardLayoutCode&&(je.keyboardLayout=this.keyboardLayoutCode,je.allowKeyboardLayoutChange=!1),je.contentRating=this.startParamsContentRating,this.streamingSpan=this.distributedTracingUtilService.startSpan(re.pB.StartStreaming,this.gameSessionDistributedTracingService.getCurrentActiveSpan()),je.metaData.ClientImeSupport=this.appConfig.featureEnablement.serverIME?"0":"1";const $e=this.streamingProfileService.getCurrentPhysicalResolution();$e&&(je.metaData.clientPhysicalResolution=JSON.stringify($e)),je.session=Me,(0,z.isNil)(Me)||(this.isResume=!0,this.gameSessionAnalyticsService.setResumeType(this.resumeType)),(0,z.isNil)(this.streamingSpan)||(je.spanData=this.distributedTracingUtilService.inject(this.streamingSpan));const{partnerCustomData:Oe,...gt}=je;return this.logger.info("start",gt),this.sessionStartAttempts+=1,this.gfnStart(je).pipe((0,O.M)(qt=>{this.waitForStop=qt,this.startRequestsSub.next()}))}setAuthInfo(Me=!1){return this.gfnSdkService.getAuthInfo().pipe((0,_.ZZ)($e=>$e.authType===ge.hT.JWT?(0,F.of)({tokenType:X.tS_.NVB_AUTH_JWT,token:$e.authToken}):this.idmService.getAuthToken(Me,this.streamingSpan).pipe((0,v.T)(Oe=>({tokenType:X.tS_.NVB_AUTH_JWT_GFN,token:Oe.token})))),(0,_.ZZ)($e=>this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.SetAuthInfo,$e)))}startSessionsPollingSpan(Me){return this.distributedTracingUtilService.startSpan(Me,this.gameSessionDistributedTracingService.getCurrentActiveSpan())}getSessionState(Me){if(Me){this.logger.info("Recovering active session from session result Info.");const je=Me.sessions?Me.sessions:[],$e=this.getResumableState(Me.result,je);return this.logger.info("resumable state",Me,$e),(0,F.of)({resultInfo:Me.result,sessions:je,resumableState:$e})}{this.logger.info("pollActiveSessions");const je=this.startSessionsPollingSpan(re.pB.GetActiveSessions);return this.getActiveSessions(je).pipe((0,_.ZZ)($e=>this.activeSessionsEvent$),(0,v.T)($e=>{const Oe=this.getResumableState($e.result,$e.sessions);return this.logger.info("resumable state",$e,Oe),{resultInfo:$e.result,sessions:$e.sessions,resumableState:Oe}}),(0,a.$)(),(0,O.M)(()=>this.distributedTracingUtilService.closeSpan(je)))}}setupSession(Me){if(this.logger.info("setupSession",Me),(0,z.isNil)(Me))throw new Error("Invalid session state");const je=(0,z.get)(Me,"resultInfo.result"),$e={error:!this.isSuccess(je),result:je};if($e.error)return this.logger.error("unexpected result code in sessions",$e.result),(0,F.of)($e);const Oe=Me.sessions;let gt=Oe.length;const qt=[];for(const Re of Oe)Re.appId===this.streamingParams.appId?Re.status!==J.TP.NVB_SESSION_INITIALIZING?(this.logger.info("resuming session",Re.sessionId),gt--,$e.sessionId=Re.sessionId,$e.appLaunchMode=Re.appLaunchMode):(this.logger.info("found session in initializing state, stopping it"),qt.push(Re.sessionId)):qt.push(Re.sessionId);this.logger.info("stopEventsToWaitFor",gt,$e.sessionId);let ye=(0,F.of)($e);if(gt>0){const Re=(0,$.H)(qt).pipe((0,O.M)(Ze=>this.logger.info("Stopping session ",Ze)),(0,_.ZZ)(Ze=>this.stopStreamingInternal(Ze)),(0,r.W)(Ze=>(this.logger.error("Caught error while stopping stream ",Ze),(0,F.of)(null))));ye=this.stopEvent$.pipe(function c(_e,ke=null){return function(Me){return Me.lift(new T(_e,ke))}}(gt),(0,i.u)($e)),Re.subscribe(Ze=>this.logger.info("Stopped session: ",Ze),Ze=>{this.logger.error("Failed to stop session: ",Ze),this.gameSessionAnalyticsService.handleGameLaunchFailure({status:X.fbu.HTTPError,errorDetails:Ze&&Ze.status?Ze.status.toString():""})},()=>this.logger.info("Finished stopping all sessions"))}return ye}sessionCleanup(Me){return this.getSessionState(Me).pipe((0,_.ZZ)(je=>this.setupSession(je)))}isSuccess(Me){return Me===J.b5.NVB_R_SUCCESS||Me===J.b5.NVB_R_UPGRADE_RECOMMENDED||Me===J.b5.NVB_R_NO_ACTIVE_SESSION_FOUND||Me===J.b5.NVB_R_SESSION_LIMIT_REACHED}getResumableState(Me,je){if(Me.result===J.b5.NVB_R_AUTH_ERR_TOKEN_NOT_UPDATED)return this.logger.info("getResumableState - token not updated"),J.hY.NO_AUTH_TOKEN;if(!this.isSuccess(Me.result))return this.logger.info("getResumableState - failure",Me.result),J.hY.NOT_RESUMABLE;for(const $e of je)if($e.appId===this.streamingParams.appId&&this.isResumableSessionState($e))return this.logger.info("getResumableState - found resumable state"),J.hY.RESUMABLE;return this.logger.info("getResumableState - no resumable sessions found"),J.hY.NOT_RESUMABLE}isResumableSessionState(Me){return Me.status===J.TP.NVB_SESSION_READY_FOR_CONNECT||Me.status===J.TP.NVB_SESSION_PAUSED_INTENTIONAL||Me.status===J.TP.NVB_SESSION_PAUSED_UNINTENTIONAL||Me.status===J.TP.NVB_SESSION_STREAMING}stopStreamingInternal(Me,je){return this.logger.info("calling stopstreaming internal"),this.setAuthInfo().pipe((0,_.ZZ)(()=>this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.Stop,{session:Me,reasonCode:je})))}pauseStreamingInternal(Me){return this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.PauseStreaming,{reasonCode:Me})}gfnResume(Me){return this.setAuthInfo().pipe((0,_.ZZ)(()=>this.bridgeService.executeCommand(l.Ts.Gfn.Streaming.Resume,{networkSessionId:Me})))}sendResumeFailureTelemetryData(Me){this.gameSessionAnalyticsService.handleGameLaunchFailure({isResume:!0,status:Me.status,errorDetails:Me.errorDetails})}resetStreamingServiceFlags(){this.isVideoReceived=!1,this._hasFirstFrameBeenReceived=!1,this.isStreaming=!1,this.resumableSession=!1,this.waitForStop=!1,this.shuttingDownFromSleep=!1,this.sharedStreamingProperties={sessionId:null,subSessionId:null},this.isResume=!1,this.autoResuming=!1,this.sessionStartAttempts=0,this.isAutoResumedSession=!1,this.prevTerminatedInfo=null,this.hasSessionTimedOut=!1,this.isAuthTokenRefreshedOnce=!1}stopStreaming(Me=!1,je){if(this.clipboardAvailableSub?.unsubscribe(),this.clipboardInitSub?.unsubscribe(),Me&&(this.logger.info("System is sleeping, shutting down stream."),this.shuttingDownFromSleep=!0),this.logger.info("stop streaming called, waitForStop:",this.waitForStop," isStreaming:",this.isStreaming),!this.waitForStop&&!this.isStreaming&&!this.isSessionResumable())return this.clearSessionId(!0),(0,F.of)(!0);let $e=this.streamingEvent$.pipe((0,P.p)(Oe=>Oe.event===J.CW.STREAMING_TERMINATED||Oe.event===J.CW.STOP_RESULT));return this.networkStatus.isOnline||(this.logger.info("Stop Streaming when user is offline"),$e=(0,F.of)({event:J.CW.STREAMING_TERMINATED})),(0,k.yU)(this.stopStreamingInternal(this.sharedStreamingProperties.sessionId,je),$e).pipe((0,a.$)(),(0,v.T)(Oe=>Oe[0]),(0,r.W)(Oe=>(this.logger.error("Caught error while stopping the streaming",Oe),(0,F.of)(!1))))}pauseStreaming(Me){return this.logger.info("pause streaming called, isStreaming:",this.isStreaming),this.pauseStreamingInternal(Me)}getPrepareParameters(Me){let je=J.qF.NVB_PROFILE_GAMING_1080P_60FPS;(this.windowService.window.screen.height<1080||this.windowService.window.screen.width<1920)&&(je=J.qF.NVB_PROFILE_GAMING_720P_60FPS);const $e=(0,z.pick)(Me,["address","serverType","port","deviceId","advancedLatencyOptimization","directInput","streamingProfile","appName","locale"]);return this.clientHeaderService.getCommonHeaders({withClientId:"lcars"}).pipe((0,v.T)(Oe=>{const gt=Object.entries(Oe).map(([ye,Re])=>({headerName:ye,headerValue:Re instanceof Array?Re[0]:Re}));return{...$e,profile:je,cmsId:Me.appId.toString(),shortName:Me.gameShortName,clientAppVersion:this.appConfig.build.version,clientHeaders:gt}}))}startStreaming(Me){return this.streamingParams=Me,this.hasSessionTimedOut&&(this.hasSessionTimedOut=!1,this.cancelTimerSubject.next(!0)),this.sessionStartAttempts=0,this.getPrepareParameters(Me).pipe((0,O.M)(je=>this.logger.info("prepare params",je)),(0,_.ZZ)(je=>this.gfnPrepare(je)),(0,_.ZZ)(je=>this.setAuthInfo()),(0,_.ZZ)(je=>this.processPartnerData()),(0,_.ZZ)(je=>this.updateKeyboardLayout()),(0,_.ZZ)(je=>this.updateStreamingContentRating()),(0,_.ZZ)(je=>this.start()))}processPartnerData(){let Me=!1;const je=this.deeplinkHelperService.getDeeplinkPartnerData();return je&&(this.logger.info("Found partner-data in play-game deeplink"),this.streamingParams.metaData.partnerData=je,Me=!0),this.gfnSdkService.isThisAGFNSDKSession()?(0,I.zV)([this.gfnSdkService.getPartnerData(),this.gfnSdkService.getPartnerSecureData()]).pipe((0,v.T)(([$e,Oe])=>($e&&$e.length>0?(this.streamingParams.metaData.partnerData=$e,this.logger.info("partnerData passed from GFN SDK"),Me=!0):this.logger.info("No partnerData passed from GFN SDK"),Oe&&Oe.length>0?(this.streamingParams.partnerCustomData=Oe,this.logger.info("partnerSecureData passed from GFN SDK"),Me=!0):this.logger.info("No partnerSecureData passed from GFN SDK"),Me))):(Me||this.logger.info("No partnerData and partnerSecureData present"),(0,F.of)(Me))}isSessionResumable(){return this.resumableSession}isResumed(){return this.isResume}terminateAutoResume(){this.terminatingAutoResume$.next()}resume(){return this.logger.info("resuming...."),(0,I.zV)([this.getSessionState(),this.networkConfigurationService.networkSessionId$.pipe((0,y.s)(1))]).pipe((0,_.ZZ)(([Me,je])=>{if(this.resumableSession=Me.resumableState===J.hY.RESUMABLE,this.resumableSession)return this.logger.info("resumable session found"),this.isAutoResumedSession=!1,this.isResume=!0,this.gameSessionAnalyticsService.setResumeType(this.resumeType),this.gfnResume(je).pipe((0,O.M)($e=>{this.waitForStop=$e,this.startRequestsSub.next()}));{this.logger.error("no resumable sessions found");const $e=new te.U;return this.sendResumeFailureTelemetryData({status:X.fbu.ClientError,errorDetails:$e.result.toString()}),(0,ee.$)($e)}}))}}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)(xe.KVO(n.J6),xe.KVO(n.NZ),xe.KVO(n.s7),xe.KVO(ue.yQ),xe.KVO(N.s),xe.KVO(se.z),xe.KVO(X.k_2),xe.KVO(ge.DL),xe.KVO(X.Vk6),xe.KVO(X.qr_),xe.KVO(n.CF),xe.KVO(re.Z1),xe.KVO(X.uUB),xe.KVO(X.q8U),xe.KVO(ce.F),xe.KVO(X.zi2),xe.KVO(X.Icg),xe.KVO(Z.qQ),xe.KVO(de.lS),xe.KVO(n.CF),xe.KVO(X.xfC),xe.KVO(n.zW),xe.KVO(X.wCY),xe.KVO(X.WWE),xe.KVO(X.y1M),xe.KVO(X.FFI),xe.KVO(X.Tzh),xe.KVO(X.umq),xe.KVO(X.NmE))},_e.\u0275prov=xe.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"}),ke})()},90851:(Ue,W,d)=>{"use strict";d.r(W),d.d(W,{BrowserModule:()=>ee});var n=d(61142),l=d(14354),p=d(51006),m=d(17617),_=d(3567),P=d(62668),v=d(80583),O=d(4208),S=d(75707),y=d(74931),r=d(1331),i=d(58527),a=d(65240),h=d(43664),g=d(52834),c=d(15332),T=d(55962),A=d(3457),L=d(99204),x=d(97979),V=d(29370),D=d(51635);function F(J,z){1&J&&i.nrm(0,"mat-icon",5)}let I=(()=>{var J;class z{constructor(){}}return(J=z).\u0275fac=function(X){return new(X||J)},J.\u0275cmp=i.VBU({type:J,selectors:[["nv-browser-item"]],inputs:{item:"item",activeItem:"activeItem",noChevron:"noChevron"},decls:6,vars:5,consts:[["matRipple","",1,"browser-item","hig-button-overlay"],["fxLayout","row","fxLayoutAlign","start center",1,"browser-card"],[1,"icon-normal","icon-details",3,"svgIcon"],[1,"font-body1","font-color-primary"],["svgIcon","chevron_right","class","icon-normal",4,"ngIf"],["svgIcon","chevron_right",1,"icon-normal"]],template:function(X,re){1&X&&(i.j41(0,"mat-card",0)(1,"mat-card-content",1),i.nrm(2,"mat-icon",2),i.j41(3,"span",3),i.EFF(4),i.k0s(),i.DNE(5,F,1,0,"mat-icon",4),i.k0s()()),2&X&&(i.AVh("focus",re.activeItem===re.item),i.R7$(2),i.Y8G("svgIcon",re.item.icon),i.R7$(2),i.JRh(re.item.name),i.R7$(),i.Y8G("ngIf",!re.noChevron))},dependencies:[n.bT,A.DJ,A.sA,x._m,x.Rm,V.An,D.r6],styles:[".browser-item[_ngcontent-%COMP%]{width:512px;height:48px;padding:0;box-sizing:border-box;background-color:transparent;box-shadow:none;border-radius:0}.icon-details[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .icon-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-details[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-details[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .icon-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-details[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-details[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.browser-card[_ngcontent-%COMP%]{width:100%;text-align:center;word-wrap:break-word;padding:12px 16px}.browser-card[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{width:24px;height:24px;font-size:24px}.browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:calc(100% - 64px);padding:0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.isLtr[_nghost-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .browser-card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}"]}),z})();function k(J,z){if(1&J){const te=i.RV6();i.j41(0,"nv-browser-item",8),i.bIt("dblclick",function(){const re=i.eBV(te).$implicit,ge=i.XpG(2);return i.Njj(ge.goDownOneLevel(re))}),i.k0s()}if(2&J){const te=z.$implicit,X=i.XpG(2);i.Y8G("item",te)("activeItem",X.browserSelection)("noChevron","file"===te.icon)}}function R(J,z){if(1&J){const te=i.RV6();i.j41(0,"div",6)(1,"nv-virtual-grid-container",7),i.mxI("selectedItemChange",function(re){i.eBV(te);const ge=i.XpG();return i.DH7(ge.browserSelection,re)||(ge.browserSelection=re),i.Njj(re)}),i.bIt("selectedItemChange",function(re){i.eBV(te);const ge=i.XpG();return i.Njj(ge.selectedItemChanged(re))})("keydown",function(re){i.eBV(te);const ge=i.XpG();return i.Njj(ge.selectBrowserItem(re))}),i.DNE(2,k,1,3,"ng-template",null,0,i.C5r),i.k0s()()}if(2&J){const te=i.sdS(3),X=i.XpG();i.R7$(),i.Y8G("useFocusOutline",!1)("items",X.dataItems),i.R50("selectedItem",X.browserSelection),i.Y8G("itemHeight",48)("topBottomPad",0)("marginBottom",0)("itemWidth",480)("marginRight",0)("rightMarginReq",!1)("template",te)}}function G(J,z){1&J&&i.nrm(0,"mat-spinner",11)}function Y(J,z){if(1&J&&(i.j41(0,"div",9),i.DNE(1,G,1,0,"mat-spinner",10),i.k0s()),2&J){const te=i.XpG();i.R7$(),i.Y8G("ngIf",te.waiting)}}const $=[{path:"",component:(()=>{var J;class z{constructor(X,re,ge,oe,xe,ue,N,se,ce,Z){this.loggingService=X,this.route=re,this.navigationService=ge,this.osService=oe,this.bridgeService=xe,this.translateService=ue,this.dialog=N,this.appBarService=se,this.galleryService=ce,this.igoConfig=Z,this.destroy$=new v.B7,this.includeFiles=!1,this.dataItems=[],this.preFetchedItems=[],this.enableNetworkDrives=!1,this.waiting=!1,this.error=!1,this.getFolderListing$=void 0,this.enumDrives=void 0,this.checkMarkVisible=!1,this.saveChangeDisabled=!0,this.logger=this.loggingService.getLogger("NvBrowser")}ngOnInit(){this.title=this.route.snapshot.paramMap.get("title"),this.startFolder=this.route.snapshot.paramMap.get("location"),this.source=this.route.snapshot.paramMap.get("source"),this.caller=this.route.snapshot.paramMap.get("caller"),this.includeFiles="true"===this.route.snapshot.paramMap.get("files"),this.setupReturn(this.caller),this.dirSeparator=this.osService.getDirSeparator(),this.windows=this.osService.getOSType()===_.aI.Windows,this.systemName=this.translateService.instant(this.windows?"browser.ThisPC":"browser.ThisMac"),this.enableExternalDrives=JSON.parse(this.route.snapshot.paramMap.get("external")),this.disableSel=!1,"GFE"===this.igoConfig.branding&&(this.enableNetworkDrives=!0),("undefined"===this.startFolder||""===this.startFolder)&&(this.startFolder=this.galleryService.getVideoFolder()),this.initialFolder=this.startFolder;const X=this.initialFolder.length-1;X>0&&"\\"===this.initialFolder[X]&&(this.initialFolder=this.initialFolder.slice(0,-1)),this.logger.info("Source: ",this.source),this.logger.info("External drives are valid: ",this.enableExternalDrives),this.logger.info("Network drives are valid: ",this.enableNetworkDrives),this.logger.info("Display files also: ",this.includeFiles),this.appBarService.setAll({title:this.title,navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,O.Q)(this.destroy$)).subscribe(ge=>{"nav"===ge?this.onBackClicked():"check"===ge&&this.onUseLocClicked()}),this.navigationService.escapeEvent().pipe((0,O.Q)(this.destroy$)).subscribe(()=>{this.onBackClicked()}),this.bridgeService.executeCommand(y.Ts.Common.Gallery.EnumerateDrives).subscribe(ge=>{this.enumDrives=ge,this.logger.info("Enumerated Drives: ",ge),this.getFolderData(this.startFolder)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}clearData(){this.waiting=!0,this.preFetchedItems.length=0,this.dataItems=this.preFetchedItems.slice(),this.browserSelection=void 0}getFolderData(X){this.clearData(),this.getFolderListing$&&(this.getFolderListing$.unsubscribe(),this.getFolderListing$=void 0);const ge=this.bridgeService.executeCommand(y.Ts.Common.Gallery.GetFolderListing,{directory:X,excludeDirectoryType:this.source===r.QAj.Temporary?y.Or.Common.Gallery.ExcludeDirectoryType.hiddenAndEmpty:y.Or.Common.Gallery.ExcludeDirectoryType.hidden}).pipe((0,O.Q)(this.destroy$));this.getFolderListing$=ge.subscribe(oe=>{setTimeout(()=>{this.preFetchedItems.length=0,oe.directories.forEach(xe=>{this.shouldFolderBeExcluded(X,xe)||this.preFetchedItems.push({name:xe,icon:"folder"})}),this.includeFiles&&oe.files.forEach(xe=>{this.shouldFileBeExcluded(xe.name)||this.preFetchedItems.push({name:xe.name,icon:"file"})}),this.dataItems=this.preFetchedItems.slice(),this.waiting=!1,this.error=!1},0)},oe=>{this.logger.info("GetFolderListing error: ",oe),this.waiting=!1,this.error=!0})}selectedItemChanged(X){this.browserSelection=X,this.controlCheckmark()}goDownOneLevel(X){const re=this.startFolder===this.systemName;if(0===this.startFolder.length||re)if(re&&!this.windows)this.startFolder=this.dirSeparator+X.name;else{this.disableSel=!1,this.startFolder="";const ge=X.name.lastIndexOf(this.dirSeparator);this.startFolder=-1===ge?X.name:X.name.substr(0,ge)}else this.startFolder=this.startFolder+this.dirSeparator+X.name;this.browserSelection=void 0,this.controlCheckmark(),this.getFolderData(this.startFolder)}goUpOneLevel(){if(this.startFolder===this.systemName)return;if(this.isRootOfDrive(this.startFolder))return void(this.windows?(this.logger.info("At root of drive: ",this.startFolder),this.disableSel=!0,this.processDrives()):(this.startFolder=this.systemName,this.getFolderData("/")));const X=this.startFolder.lastIndexOf(this.dirSeparator);this.startFolder=this.startFolder.substr(0,X),this.browserSelection=void 0,this.controlCheckmark(),this.getFolderData(this.startFolder)}processUpButton(X){("Enter"===X.key||" "===X.key)&&this.goUpOneLevel()}controlCheckmark(){const X=this.saveChangeDisabled,re=this.buildFolder();this.saveChangeDisabled=re===this.initialFolder,X!==this.saveChangeDisabled&&(this.checkMarkVisible?(this.appBarService.deleteIcon("check"),this.checkMarkVisible=!1):(this.appBarService.addIcon({id:"check",icon:"check",tooltip:"tooltips.Done"}),this.checkMarkVisible=!0))}buildFolder(){let X="";return this.startFolder!==this.systemName&&(X=this.startFolder,this.browserSelection&&X[X.length-1]!==this.dirSeparator&&(X+=this.dirSeparator)),this.browserSelection&&(!this.windows&&this.startFolder===this.systemName&&(X+=this.dirSeparator),X+=this.browserSelection.name),X}onUseLocClicked(){const X=this.buildFolder();X!==this.initialFolder&&"broadcast"!==this.caller?this.dialog.openAlertDialog({title:"confirmation.confirmFileLocationTitle",query:"confirmation.confirmFileLocationChange",queryParam:{arg:X},action1:"confirmation.NotRightNow",action2:"confirmation.yes"}).pipe((0,O.Q)(this.destroy$),(0,S.ZZ)(ge=>ge.afterClosed())).subscribe(ge=>{ge===r.SFy.Action2?this.onUseClick(X):this.onBackClicked()}):this.onUseClick(X)}setupReturn(X){switch(X){case"storage":this.returnPath="../settings/storage";break;case"broadcast":this.returnPath="../settings/broadcast";break;case"perfmon":this.returnPath="../performance/performance-menu";break;default:this.logger.error("Missing return path! ",X)}this.logger.info("Return to: ",this.returnPath)}onUseClick(X){this.navigationService.navigate([this.returnPath,{folder:X,source:this.source}],{relativeTo:this.route.parent,skipLocationChange:!0},r.jby.settings)}onBackClicked(){this.logger.info("Back clicked"),this.navigationService.navigate([this.returnPath],{relativeTo:this.route.parent,skipLocationChange:!0},r.jby.settings)}selectBrowserItem(X){("Enter"===X.key||" "===X.key)&&this.browserSelection&&this.goDownOneLevel(this.browserSelection)}isRootOfDrive(X){return X.split(this.dirSeparator).length===(this.windows?1:2)}shouldFolderBeExcluded(X,re){if(re.startsWith("$"))return!0;const ge=X===this.dirSeparator?X+re:X+this.dirSeparator+re;let oe=!1;return this.enumDrives&&this.enumDrives.drives.forEach(xe=>{xe.name!==ge||"fixed"===xe.type||this.enableExternalDrives&&"external"===xe.type||(oe=!0)}),oe}shouldFileBeExcluded(X){const re=X.toLowerCase(),ge=re.lastIndexOf(".");return-1!==ge&&"png"!==re.slice(ge+1)}getDriveImage(X){switch(X){case"network":return"browser_diskdrive_network";case"removable":return"browser_disk_drive_removable";default:return"browser_diskdrive"}}processDrives(){this.preFetchedItems.length=0,this.enumDrives&&this.enumDrives.drives.forEach(X=>{if("fixed"===X.type||this.enableExternalDrives&&"external"===X.type||this.enableNetworkDrives&&"network"===X.type){let ge=X.name;const oe=X.name.length-1;X.name[oe]===this.dirSeparator&&(ge=X.name.slice(0,oe)),this.preFetchedItems.push({name:ge,icon:this.getDriveImage(X.type)})}this.startFolder=this.systemName,this.dataItems=this.preFetchedItems.slice(),this.browserSelection=this.dataItems[0]})}}return(J=z).\u0275fac=function(X){return new(X||J)(i.rXU(_.J6),i.rXU(l.nX),i.rXU(r.o_p),i.rXU(r.aTF),i.rXU(_.NZ),i.rXU(a.c$),i.rXU(r.eo6),i.rXU(r.gZv),i.rXU(r.AFS),i.rXU(r.k$F))},J.\u0275cmp=i.VBU({type:J,selectors:[["igo-browser"]],decls:6,vars:5,consts:[["browserTemplate",""],["fxLayout","column","fxFlex","",1,"page-padding"],[1,"virtual-grid"],["caller","browser",3,"clicked","keydown","pathLocation","openFunction","disabled"],["fxFlex","grow",4,"ngIf"],["fxLayoutAlign","center center","fxFlex","grow",4,"ngIf"],["fxFlex","grow"],["tabIndex","0","fxFlex","","fxLayout","row",1,"virtual-grid",3,"selectedItemChange","keydown","useFocusOutline","items","selectedItem","itemHeight","topBottomPad","marginBottom","itemWidth","marginRight","rightMarginReq","template"],[3,"dblclick","item","activeItem","noChevron"],["fxLayoutAlign","center center","fxFlex","grow"],["diameter","40","color","accent",4,"ngIf"],["diameter","40","color","accent"]],template:function(X,re){1&X&&(i.j41(0,"div",1)(1,"div",2)(2,"nv-folder-browser",3),i.bIt("clicked",function(){return re.goUpOneLevel()})("keydown",function(oe){return re.processUpButton(oe)}),i.k0s()(),i.nrm(3,"nv-divider",2),i.DNE(4,R,4,10,"div",4)(5,Y,2,1,"div",5),i.k0s()),2&X&&(i.R7$(2),i.Y8G("pathLocation",re.startFolder)("openFunction",!1)("disabled",re.disableSel),i.R7$(2),i.Y8G("ngIf",!re.waiting&&!re.error),i.R7$(),i.Y8G("ngIf",re.waiting||re.error))},dependencies:[n.bT,h.$,g.I,c.O,T.e,A.DJ,A.sA,A.UI,L.LG,I],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.location-pad[_ngcontent-%COMP%], .virtual-grid[_ngcontent-%COMP%]{padding:0}.individual-item-padding[_ngcontent-%COMP%]{padding:12px 16px}.page-padding[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}[_nghost-%COMP%]{padding:0}"]}),z})(),data:{level:9}}];let ee=(()=>{var J;class z{}return(J=z).\u0275fac=function(X){return new(X||J)},J.\u0275mod=i.$C({type:J}),J.\u0275inj=i.G2t({imports:[n.MD,P.G,p.YF,m.i,l.iI.forChild($),(0,_.BU)()]}),z})()},18880:(Ue,W,d)=>{"use strict";d.d(W,{Q6:()=>z,SF:()=>J});var n=d(26537),l=d(58527),p=d(3567),m=d(61142),_=d(3457),P=d(28139),v=d(56106),O=d(47973),S=d(51394),y=d(99204),r=d(20288),i=d(33955),a=d(31308),h=d(54676),g=d(65240);const c=te=>({spinnerContent:te}),T=()=>({progressBarContent:!0}),A=te=>({background:te});function L(te,X){if(1&te&&l.nrm(0,"mat-progress-spinner",11),2&te){const re=l.XpG(2);l.Y8G("diameter",48)("mode",re.data.progressMode)("value",re.value)}}function x(te,X){if(1&te&&(l.j41(0,"div",8),l.DNE(1,L,1,3,"mat-progress-spinner",9),l.nrm(2,"span",10),l.nI1(3,"translate"),l.k0s()),2&te){const re=l.XpG();l.Y8G("ngClass",l.eq3(6,c,re.data.spinner)),l.R7$(),l.Y8G("ngIf",re.data.spinner),l.R7$(),l.Y8G("innerHtml",l.i5U(3,3,re.data.query,re.data.queryParam),l.npT)}}function V(te,X){if(1&te){const re=l.RV6();l.j41(0,"div",19)(1,"mat-checkbox",20),l.mxI("ngModelChange",function(oe){l.eBV(re);const xe=l.XpG().$implicit;return l.DH7(xe.state,oe)||(xe.state=oe),l.Njj(oe)}),l.bIt("change",function(){l.eBV(re);const oe=l.XpG().index,xe=l.XpG(2);return l.Njj(xe.onStateChanged(oe))}),l.EFF(2),l.nI1(3,"translate"),l.k0s()()}if(2&te){const re=l.XpG().$implicit;l.R7$(),l.R50("ngModel",re.state),l.R7$(),l.JRh(l.bMT(3,2,re.label))}}function D(te,X){if(1&te&&(l.j41(0,"div"),l.DNE(1,V,4,4,"div",18),l.k0s()),2&te){const re=X.$implicit;l.R7$(),l.Y8G("ngIf",re.label)}}function F(te,X){if(1&te){const re=l.RV6();l.j41(0,"div",12),l.nrm(1,"span",10),l.nI1(2,"translate"),l.j41(3,"div")(4,"div",13)(5,"mat-checkbox",14),l.mxI("ngModelChange",function(oe){l.eBV(re);const xe=l.XpG();return l.DH7(xe.masterState,oe)||(xe.masterState=oe),l.Njj(oe)}),l.bIt("change",function(){l.eBV(re);const oe=l.XpG();return l.Njj(oe.onStateChanged())}),l.EFF(6),l.nI1(7,"translate"),l.k0s()(),l.j41(8,"div",15),l.DNE(9,D,2,1,"div",16),l.k0s()(),l.nrm(10,"span",17),l.nI1(11,"translate"),l.k0s()}if(2&te){const re=l.XpG();l.R7$(),l.Y8G("innerHtml",l.i5U(2,6,re.data.query,re.data.queryParam),l.npT),l.R7$(4),l.R50("ngModel",re.masterState),l.Y8G("indeterminate",re.checkIndeterminate()),l.R7$(),l.JRh(l.bMT(7,9,re.data.state)),l.R7$(3),l.Y8G("ngForOf",re.data.subActions),l.R7$(),l.Y8G("innerHtml",l.i5U(11,11,re.data.hint,re.data.hintParam),l.npT)}}function I(te,X){if(1&te&&l.nrm(0,"mat-progress-bar",24),2&te){const re=l.XpG(2);l.Y8G("mode",re.data.progressMode)("value",re.value)}}function k(te,X){if(1&te&&(l.j41(0,"div",25),l.EFF(1),l.k0s()),2&te){const re=l.XpG(2);l.R7$(),l.SpI("",re.value,"%")}}function R(te,X){if(1&te&&(l.j41(0,"div",21),l.nrm(1,"span",10),l.nI1(2,"translate"),l.DNE(3,I,1,2,"mat-progress-bar",22)(4,k,2,1,"div",23),l.k0s()),2&te){const re=l.XpG();l.Y8G("ngClass",l.lJ4(7,T)),l.R7$(),l.Y8G("innerHtml",l.i5U(2,4,re.data.query,re.data.queryParam),l.npT),l.R7$(2),l.Y8G("ngIf",re.data.progressBar),l.R7$(),l.Y8G("ngIf",re.data.progressPercentage)}}function G(te,X){if(1&te&&(l.j41(0,"button",26),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&te){const re=l.XpG();l.Y8G("mat-dialog-close",re.getRetValue1())("ngStyle",l.eq3(5,A,re.data.action1Color)),l.R7$(),l.SpI(" ",l.bMT(2,3,re.data.action1)," ")}}function Y(te,X){if(1&te&&(l.j41(0,"button",27),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&te){const re=l.XpG();l.Y8G("mat-dialog-close",re.retVals.Action2),l.R7$(),l.SpI(" ",l.bMT(2,2,re.data.action2)," ")}}function K(te,X){if(1&te&&(l.j41(0,"button",27),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&te){const re=l.XpG();l.Y8G("mat-dialog-close",re.retVals.Action3),l.R7$(),l.SpI(" ",l.bMT(2,2,re.data.action3)," ")}}var J=function(te){return te.Action1="action1",te.Action2="action2",te.Action3="action3",te.Action4="",te}(J||{});let z=(()=>{var te;class X{constructor(ge,oe){this.data=ge,this.localeSerive=oe,this.masterState=!0,this.retVals=J,this.direction="ltr",this.value=0,ge.spinner&&(ge.progressBar=!1),void 0===ge.progressMode&&(ge.progressMode="indeterminate"),this.direction=this.localeSerive.isRTLLayoutEnabled?"rtl":"ltr"}set dialogData(ge){this.data=ge}get dialogData(){return this.data}onStateChanged(ge){if(void 0===ge)this.data.subActions.forEach(oe=>{oe.state=this.masterState});else{let oe=!0;this.data.subActions.forEach(xe=>{xe.state&&(oe=!1)}),this.masterState=!oe}}getRetValue1(){return this.masterState?this.retVals.Action1:this.retVals.Action4}checkIndeterminate(){if(0===this.data.subActions.length)return!1;let ge=!1;return this.data.subActions.forEach(oe=>{oe.state!==this.masterState&&(ge=!0)}),ge}}return(te=X).\u0275fac=function(ge){return new(ge||te)(l.rXU(n.Vh),l.rXU(p.iH))},te.\u0275cmp=l.VBU({type:te,selectors:[["nv-hig-alert-dialog"]],inputs:{value:"value",dialogData:"dialogData"},decls:11,vars:11,consts:[[3,"dir"],["mat-dialog-title","",1,"font-header6"],["mat-dialog-content","","class","font-body2","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","14px",3,"ngClass",4,"ngIf"],["mat-dialog-content","","class","font-body2","fxLayout","column","fxLayoutAlign","start left","fxLayoutGap","16px",4,"ngIf"],["mat-dialog-content","","class","font-body2","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","8px",3,"ngClass",4,"ngIf"],["mat-dialog-actions","",3,"align"],["mat-button","","class","font-button2 hig-button",3,"mat-dialog-close","ngStyle",4,"ngIf"],["mat-button","","class","font-button2 hig-button",3,"mat-dialog-close",4,"ngIf"],["mat-dialog-content","","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","14px",1,"font-body2",3,"ngClass"],["color","accent","fxFlex","none",3,"diameter","mode","value",4,"ngIf"],["cdkMonitorSubtreeFocus","",3,"innerHtml"],["color","accent","fxFlex","none",3,"diameter","mode","value"],["mat-dialog-content","","fxLayout","column","fxLayoutAlign","start left","fxLayoutGap","16px",1,"font-body2"],[1,"checkbox"],[1,"font-body2",3,"ngModelChange","change","ngModel","indeterminate"],[1,"subcheckboxsize"],[4,"ngFor","ngForOf"],[1,"hinttext",3,"innerHtml"],["class","subcheckbox",4,"ngIf"],[1,"subcheckbox"],[1,"font-body2",3,"ngModelChange","change","ngModel"],["mat-dialog-content","","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","8px",1,"font-body2",3,"ngClass"],["class","mat-accent",3,"mode","value",4,"ngIf"],["fxLayoutAlign","start start",4,"ngIf"],[1,"mat-accent",3,"mode","value"],["fxLayoutAlign","start start"],["mat-button","",1,"font-button2","hig-button",3,"mat-dialog-close","ngStyle"],["mat-button","",1,"font-button2","hig-button",3,"mat-dialog-close"]],template:function(ge,oe){1&ge&&(l.j41(0,"div",0)(1,"span",1),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.DNE(4,x,4,8,"div",2)(5,F,12,14,"div",3)(6,R,5,8,"div",4),l.j41(7,"div",5),l.DNE(8,G,3,7,"button",6)(9,Y,3,4,"button",7)(10,K,3,4,"button",7),l.k0s()()),2&ge&&(l.FS9("dir",oe.direction),l.R7$(2),l.JRh(l.bMT(3,9,oe.data.title)),l.R7$(2),l.Y8G("ngIf",void 0===oe.data.progressBar&&void 0===oe.data.hint||oe.data.spinner),l.R7$(),l.Y8G("ngIf",oe.data.hint),l.R7$(),l.Y8G("ngIf",oe.data.progressBar),l.R7$(),l.Y8G("align","end"),l.R7$(),l.Y8G("ngIf",oe.data.action1),l.R7$(),l.Y8G("ngIf",oe.data.action2),l.R7$(),l.Y8G("ngIf",oe.data.action3))},dependencies:[m.YU,m.Sq,m.bT,m.B3,_.DJ,_.BO,_.sA,_.UI,P.PW,P.eI,v.BC,v.vS,O.iV,S.ig,y.LG,r.HM,i.NZ,n.tx,n.BI,n.Yi,n.E7,a.vR,h.tG,g.D9],styles:[".spinnerContent[_ngcontent-%COMP%]{overflow:hidden!important}.progressBarContent[_ngcontent-%COMP%]{padding-top:16px}.checkbox[_ngcontent-%COMP%]{margin-bottom:0!important}.subcheckboxsize[_ngcontent-%COMP%]{max-height:240px;overflow-y:auto}.isLtr[_nghost-%COMP%] .subcheckbox[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .subcheckbox[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .subcheckbox[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .subcheckbox[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .subcheckbox[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .subcheckbox[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.hinttext[_ngcontent-%COMP%]{padding-bottom:28px}"]}),X})()},28138:(Ue,W,d)=>{"use strict";d.d(W,{U:()=>O});var n=d(61142),l=d(51006),p=d(17617),m=d(3567),_=d(61876),P=d(58527);let O=(()=>{var S;class y{constructor(i){if(i)throw new Error("CoreModule already loaded; Import in root module only.")}}return(S=y).\u0275fac=function(i){return new(i||S)(P.KVO(S,12))},S.\u0275mod=P.$C({type:S}),S.\u0275inj=P.G2t({imports:[n.MD,l.YF,p.i,(0,m.BU)(),_.bm]}),y})()},1331:(Ue,W,d)=>{"use strict";d.d(W,{wzr:()=>ue.wz,T7s:()=>N.T7,J7_:()=>N.J7,gZv:()=>S,lyd:()=>Jt.ly,_Cw:()=>K,$jZ:()=>Dn.$,m_A:()=>De.m_,Azv:()=>Fr.Az,eCB:()=>Fr.eC,XBk:()=>Fr.XB,NXI:()=>Fr.NX,gXb:()=>De.gX,uk:()=>Un,eo6:()=>ae.e,Rvq:()=>ke.R,O5:()=>N.O5,dJT:()=>Ct.dJ,_Fy:()=>wt,XyZ:()=>N.Xy,hot:()=>Ct.ho,QAj:()=>xe.QA,AFS:()=>qt,Wro:()=>xe.Wr,sT2:()=>Ct.sT,x_y:()=>_e.x_,P8t:()=>Ct.P8,SFy:()=>Ut.SF,f2G:()=>N.f2,pWC:()=>xe.pW,g8X:()=>c.g8,DXY:()=>c.DX,QSC:()=>c.QS,fvX:()=>I.f,EMD:()=>Fr.EM,Q20:()=>Fr.Q2,Lxc:()=>Fr.Lx,Zt_:()=>Fr.Zt,K_i:()=>Fr.K_,k$F:()=>T.k,AHe:()=>xo.A,xT0:()=>Jt.xT,xT8:()=>Jt.Qe,rMY:()=>Ii,iuc:()=>Zt,f1P:()=>Fr.f1,TEj:()=>Fr.TE,NpC:()=>Fr.Np,oXh:()=>Fr.oX,YQZ:()=>De.YQ,UZ:()=>N.UZ,o_p:()=>$n.o,$0i:()=>_e.$0,xdE:()=>on,h8x:()=>Zi,BO6:()=>Oi,aTF:()=>A,Ng:()=>N.Ng,Bqk:()=>_.B,Jkt:()=>ue.Jk,mbZ:()=>ue.mb,EdA:()=>ue.Ed,lb6:()=>L.lb,VHt:()=>L.VH,auo:()=>L.au,hc_:()=>L.hc,zET:()=>ye.z,si$:()=>Fr.si,pwE:()=>Fr.pw,Vq5:()=>Fr.Vq,Btx:()=>N.Bt,jyV:()=>Ct.jy,Vlf:()=>Lr,Pev:()=>gt,R8Z:()=>pi,P15:()=>se.P,m$j:()=>mi,W1J:()=>De.W1,naB:()=>Ct.n,onG:()=>mt,jby:()=>N.jb,rJX:()=>xn,QYS:()=>L.QY,BKk:()=>Xt,O67:()=>N.O6,xRl:()=>ce.x,g7b:()=>Zn,VuP:()=>At,SIx:()=>_n,b4n:()=>st,Bni:()=>Fr.Bn}),d(28138);var l=d(80583),p=d(26513),m=d(58527),_=d(11728);let S=(()=>{var qn;class Sr{constructor(he){this.oscDisplayService=he,this.actionClicked=new l.B7,this.iconsChanged=new p.t([]),this.titleChanged=new p.t({title:"",params:{}}),this.navButtonChanged=new p.t(""),this.activeChanged=new p.t(!1),this.iconList=[],this.actionClicked$=this.actionClicked.asObservable(),this.icons$=this.iconsChanged.asObservable(),this.title$=this.titleChanged.asObservable(),this.navButton$=this.navButtonChanged.asObservable(),this.active$=this.activeChanged.asObservable()}reset(){this.titleChanged.next({title:"",params:{}}),this.iconsChanged.next([]),this.navButtonChanged.next(""),this.activeChanged.next(!1)}setTitle(he,Ee={}){this.titleChanged.next({title:he,params:Ee})}setNavButton(he){this.navButtonChanged.next(he)}setNavButtonArrow(){this.setNavButton("arrow_left")}setNavButtonClose(){this.setNavButton("close")}setActive(he){this.activeChanged.next(he)}addIcon(he){this.iconList.push(he),this.iconsChanged.next(this.iconList)}deleteIcon(he){const Ee=this.iconList.findIndex(Pe=>Pe.id===he);-1!==Ee&&(this.iconList.splice(Ee,1),this.iconsChanged.next(this.iconList))}setIcons(he){this.iconList=he.slice(),this.iconsChanged.next(this.iconList)}setAll(he){this.reset(),this.setTitle(he.title,he.params),this.setActive(he.active),this.setIcons(he.icons),he.navButton&&""!==he.navButton?this.setNavButton(he.navButton):he.navButtonArrow?this.setNavButtonArrow():he.navButtonClose&&this.setNavButtonClose()}clearIcons(){this.iconList=[],this.iconsChanged.next(this.iconList)}getIcons(){return this.iconList}clickIcon(he){"closeIgo"===he&&this.closeIgo(),this.actionClicked.next(he)}clickBack(){this.clickIcon("nav")}closeIgo(){this.oscDisplayService.closeOSC()}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(_.B))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();var y=d(83915),r=d(75707),i=d(14714),a=d(43848),h=d(3567),g=d(74931),c=d(73934),T=d(12137);let A=(()=>{var qn;class Sr{constructor(he,Ee,Pe,Qe,Be){this.igoConfig=Ee,this.systemInfoService=Pe,this.bridgeService=Qe,this.hotKeyHelper=Be,this.logger=he.getLogger("OsService")}init(){return this.logger.info("Initialize"),"GFE"===this.igoConfig.branding?this.systemInfoService.getSystemInfo([h.Lu.Platform]).pipe((0,y.T)(he=>(this.logger.info("Platform: ",he.Platform),this.isWindows=he.Platform===h.aI.Windows,this.isOptimus=!1,!0)),(0,r.ZZ)(()=>this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetGPUInfo)),(0,y.T)(he=>(this.isOptimus="1"===he.IsOptimus,this.logger.info("IsOptimus: ",this.isOptimus),!0)),(0,i.W)(()=>(0,a.of)(!0))):this.systemInfoService.getSystemInfo([h.Lu.Platform,h.Lu.Network]).pipe((0,y.T)(he=>(this.logger.info("Platform: ",he.Platform),this.isWindows=he.Platform===h.aI.Windows,this.isOptimus=!1,this.networkInfo=he.Network,this.logger.info("NetworkInfo: ",this.networkInfo),!0)))}getDirSeparator(){return"GFE"===this.igoConfig.branding||this.isWindows?"\\":"/"}getFileBaseSize(){return this.isWindows?1024:1e3}getQuitHotkey(){return this.bridgeService.executeCommand(g.Ts.Share.Shareserver.GetHotkeyShortcut,{hotkey:c.g8.QuitGame}).pipe((0,y.T)(he=>he.keys),(0,y.T)(he=>this.hotKeyHelper.shortcutToString(he)))}getOSType(){return this.isWindows?h.aI.Windows:h.aI.Mac}getIsOptimus(){return this.isOptimus}getNetworkInfo(){return this.networkInfo}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(T.k),m.KVO(h.zW),m.KVO(h.NZ),m.KVO(h.Ho))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();var L=d(10132),V=(d(34414),d(26875)),I=(d(76560),d(50801),d(72428)),R=d(892),G=d(91384),Y=function(qn){return qn[qn.Empty=0]="Empty",qn[qn.Partial=1]="Partial",qn[qn.Full=2]="Full",qn}(Y||{});let K=(()=>{var qn;class Sr{constructor(he,Ee,Pe){this.osService=Ee,this.bridgeService=Pe,this.videoPath="",this.directoryListOutdated=!0,this.directoryListUpdateCounts=!1,this.files=[],this.directoryList=[],this.directories=[],this.populatedFolder=[[],[],[],[],[]],this.folderData=[],this.fileData=[],this.mainCache=[],this.folderCache=[],this.cacheEntries=5,this.initialized=!1,this.ageCounter=0,this.dataIndex=0,this.freeInterval=3e5,this.minEntryAge=12e5,this.active=!1,this.logger=he.getLogger("CacheService")}resetCacheEntry(he){this.folderCache[he]={dirty:!0,crc:0,path:"",age:0,time:0,loaded:Y.Empty}}init(){if(this.logger.info("Initialize"),this.dirSeparator=this.osService.getDirSeparator(),!this.initialized){this.directoryListOutdated=!0,this.mainCache[0]={dirty:!0,crc:0,path:""};for(let he=0;he<this.cacheEntries;he++)this.resetCacheEntry(he);this.cacheTimerOn(),this.initialized=!0,this.logger.info("Initialize complete")}}reInit(){this.cacheTimerOff(),this.initialized=!1,this.init()}galleryActive(he){this.active=he}cacheTimerOn(){this.cacheTimer||(this.cacheTimer=(0,R.Y)(this.freeInterval).subscribe(()=>{if(this.logger.info("cacheTimer called"),this.active)return;let he=2147483647,Ee=-1;const Qe=(new Date).getTime();for(let Be=0;Be<this.cacheEntries;Be++)0!==this.folderCache[Be].age&&this.folderCache[Be].age<he&&Qe-this.folderCache[Be].time>this.minEntryAge&&(Ee=Be,he=this.folderCache[Be].age);0!==he&&-1!==Ee&&(this.logger.info("resetting cache entry: "+Ee+" age was: "+he),this.folderData[Ee].directories.length=0,this.folderData[Ee].files.length=0,this.folderCache[Ee].loaded===Y.Full&&(this.fileData[Ee].popFolder.length=0),this.resetCacheEntry(Ee)),this.checkCacheState()}))}cacheTimerOff(){this.logger.info("cacheTimerOff called"),this.cacheTimer&&(this.cacheTimer.unsubscribe(),this.cacheTimer=void 0)}checkCacheState(){let he=!0;this.folderCache.forEach(Ee=>{Ee.loaded!==Y.Empty&&(he=!1)}),he&&this.cacheTimerOff()}setRecordingPaths(he){this.videoPath=he,this.reInit()}getCurrentPopFolder(){return this.populatedFolder[this.dataIndex]}resetCurrentPopFolder(){this.populatedFolder[this.dataIndex].length=0}useCacheData(he,Ee){let Pe=!1;if(he!==this.videoPath){const Qe=this.folderCache.findIndex(si=>si.path===he);if(-1===Qe)return!1;Pe=!this.folderCache[Qe].dirty&&this.folderCache[Qe].path===he;const Be=Pe&&this.folderCache[Qe].loaded!==Y.Empty,Mt=Pe&&this.folderCache[Qe].loaded===Y.Full;this.dataIndex=Qe;const Vn=(new Date).getTime();return Ee?(Be&&(this.logger.info("useCacheData, updating partial!"),this.files=this.folderData[Qe].files,this.directories=this.folderData[Qe].directories,this.counts=this.folderData[Qe].counts,this.logger.info("useCacheData, updating partial - DONE!!"),this.folderCache[Qe].time=Vn),Be):(Mt&&(this.logger.info("useCacheData, updating full!"),this.populatedFolder[Qe]=this.fileData[Qe].popFolder,this.counts=this.folderData[Qe].counts,this.logger.info("useCacheData, updating full - DONE!!"),this.folderCache[Qe].time=Vn),Mt)}return Pe=!this.mainCache[0].dirty&&this.mainCache[0].path===he,Pe}setCacheNotDirty(he){if(he===this.videoPath)this.mainCache[0].dirty=!1;else{const Ee=this.folderCache.findIndex(Pe=>Pe.path===he);-1!==Ee&&(this.folderCache[Ee].dirty=!1)}}setCacheLoadedPartial(he){const Ee=this.folderCache.findIndex(Pe=>Pe.path===he);-1!==Ee&&(this.folderCache[Ee].loaded=Y.Partial,this.folderData[Ee]={files:this.files,directories:this.directories,counts:this.counts})}setCacheLoaded(he){const Ee=this.folderCache.findIndex(Pe=>Pe.path===he);-1!==Ee&&(this.folderCache[Ee].loaded=Y.Full,this.fileData[Ee]={popFolder:this.populatedFolder[Ee]})}setFileCounts(he,Ee){const Pe=this.folderCache.findIndex(Qe=>Qe.path===Ee);-1!==Pe?this.folderData[Pe].counts=he:this.logger.error("Could not find cache entry")}getVideoPathCRC(){return this.getGalleryFolderCRC(this.videoPath).pipe((0,y.T)(he=>{const Ee=this.mainCache[0].crc!==he.crc;return this.mainCache[0]={dirty:Ee,crc:he.crc,path:this.videoPath},Ee}),(0,i.W)(he=>(this.logger.info("getVideoPathCRC error: ",he),(0,a.of)(!0))))}getCachedDataCRC(he){void 0===he&&(this.logger.info("getCachedDataCRC: input undefined will use video path"),he=this.videoPath);let Ee=-1;if(he===this.videoPath)return this.getVideoPathCRC();if(Ee=this.folderCache.findIndex(Pe=>Pe.path===he),-1===Ee&&(Ee=this.folderCache.findIndex(Pe=>Pe.path===he)),-1===Ee){let Pe=2147483647;for(let Qe=0;Qe<this.cacheEntries;Qe++)this.folderCache[Qe].dirty&&this.folderCache[Qe].age<Pe&&(Ee=Qe,Pe=this.folderCache[Qe].age)}if(-1===Ee){let Pe=2147483647;for(let Qe=0;Qe<this.cacheEntries;Qe++)this.folderCache[Qe].age<Pe&&(Ee=Qe,Pe=this.folderCache[Qe].age)}return Ee>=this.cacheEntries&&this.logger.error("folder cache has bad indexing!"),this.logger.info("Using index: "+Ee),this.getGalleryFolderCRC(he).pipe((0,r.ZZ)(Pe=>{const Qe=this.folderCache[Ee].crc!==Pe.crc,Mt=Qe||this.folderCache[Ee].loaded===Y.Empty;this.ageCounter++;const Vn=(new Date).getTime();return this.folderCache[Ee]={dirty:Mt,crc:Pe.crc,path:he,age:this.ageCounter,time:Vn,loaded:Qe?Y.Empty:this.folderCache[Ee].loaded},this.cacheTimerOn(),(0,a.of)(!0)}),(0,i.W)(Pe=>(this.logger.info("getCachedDataCRC error: ",Pe),this.resetCacheEntry(Ee),(0,a.of)(!1))))}getGalleryFolderCRC(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetFolderCRC,{directory:he})}getDirectoryListCRC(){return this.getVideoPathCRC().pipe((0,G.M)(he=>{this.directoryListOutdated=he}))}getNewDirectoryList(){return this.directoryListOutdated?(this.directoryList.length=0,this.directoryListUpdateCounts=!0,this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetFolderListing,{directory:this.videoPath,shouldGetOnlyNv:!0,excludeDirectoryType:g.Or.Common.Gallery.ExcludeDirectoryType.empty}).pipe((0,y.T)(Ee=>(this.setDirectoryList(Ee.directories),this.logger.info("New Directories: ",this.directoryList),this.directoryList)))):(this.logger.info("Current Directories: ",this.directoryList),this.directoryListUpdateCounts=!1,(0,a.of)(this.directoryList))}getDirectoryList(){return this.getDirectoryListCRC().pipe((0,r.ZZ)(()=>this.getNewDirectoryList()))}setDirectoryList(he){this.directoryList=he.slice(),this.directoryListOutdated=!1}updateDirectoryList(he){if(this.directoryList.length){let Ee=he.lastIndexOf(this.dirSeparator);const Pe=he.substr(0,Ee);Ee=Pe.lastIndexOf(this.dirSeparator)+1;const Qe=Pe.substr(Ee);this.directoryList.find(Be=>Be===Qe)||this.flushDirectoryList()}}flushDirectoryList(){this.directoryListOutdated=!0}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(A),m.KVO(h.NZ))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();var $=d(35146),ee=d(17053),J=d(31315),z=d(19392),te=d(79539),X=d(99047),re=d(8619),ge=d(10174),oe=d(25577),xe=d(45152),ue=d(23860),N=d(53914),se=d(83934),ce=d(98005),Z=d(27211),de=d(65240),ae=d(24964),pe=d(61142),_e=d(59002),ke=d(2688),De=d(51830),gt=function(qn){return qn[qn.BackNav=0]="BackNav",qn[qn.ForwardNav=1]="ForwardNav",qn[qn.DeleteFile=2]="DeleteFile",qn}(gt||{});let qt=(()=>{var qn;class Sr{get fileDataChangeListener(){return this.currentFileData$.asObservable()}get currentFileData(){return this.currentFileData$.getValue()}set currentFileData(he){this.logger.info("Updating metadata"),this.currentFileData$.next(he)}get filesSelectedDataChangeListener(){return this.currentSelectedFilesData$.asObservable()}get currentSelectedFilesData(){return this.currentSelectedFilesData$.getValue()}set currentSelectedFilesData(he){this.currentSelectedFilesData$.next(he)}listenForTrackerEvents(){return this.trackerCallback$.asObservable()}listenForDelayedEvents(){return this.delayedCallback$.asObservable()}isHighlightCanceled(){return this.canceledCallback$.asObservable()}refreshEvent(){return this.refreshEvent$.asObservable()}recentEvent(){return this.recentEvent$.asObservable()}previewPaneEvent(){return this.previewPaneEvent$.asObservable()}lowDiskSpaceEvent(){const he=this.checkDiskSpace().subscribe(()=>{he.unsubscribe()});return this.lowDiskSpaceEvent$.asObservable()}lowDiskSpaceValue(){return this.lowDiskSpaceEvent$.getValue()}captureSaved(){return this.captureSaved$.asObservable()}get previewWindowCloseNotify(){return this.previewWindowCloseNotify$.asObservable()}closePreviewWindow(he){this.previewWindowCloseNotify$.next(he)}constructor(he,Ee,Pe,Qe,Be,Mt,Vt,Vn,si,Rn,_i,wr,hr,Qr,Yr){this.bridgeService=Ee,this.osService=Pe,this.cacheService=Qe,this.sdkService=Be,this.notifierService=Mt,this.oscDisplayService=Vt,this.telemetry=Vn,this.telemetryIgo=si,this.translateService=Rn,this.dialogHelper=_i,this.datePipe=wr,this.gfnInfoService=hr,this.featureSupportService=Qr,this.shadowPlayService=Yr,this.videoPath="",this.thumbWidth=128,this.thumbHeight=128,this.directories=[],this.workingFolder="",this.lastUserSelectedFolder="",this.previewCaller=void 0,this.mostLikelyResolution={width:1920,height:1080},this.currentFileData$=new p.t(null),this.currentSelectedFilesData$=new p.t([]),this.captureSaved$=new p.t(""),this.gameDetails={cmsId:"",drsName:"",drsProfileName:""},this.activeFilter=0,this.fileCounts=new xe.Tk,this.topLevelCounts=[],this.updatingTracker=!1,this.highlightSummaryIsOpen=!1,this.trackerCallback$=new l.B7,this.delayedCallback$=new l.B7,this.canceledCallback$=new l.B7,this.refreshEvent$=new l.B7,this.recentEvent$=new l.B7,this.lowDiskSpaceEvent$=new p.t(!1),this.previewPaneEvent$=new l.B7,this.previewWindowCloseNotify$=new l.B7,this.isNvApp=!1,this.logger=he.getLogger("GalleryService"),this.isNvApp=this.featureSupportService.isNvApp()}init(){this.logger.info("Initialize"),this.dirSeparator=this.osService.getDirSeparator(),this.bridgeService.executeCommand(g.Ts.Common.Gallery.GalleryNotifications).pipe((0,te.H)(he=>this.galleryEvent(he))).subscribe(),this.checkDiskSpace().pipe((0,X.$)()).subscribe(),this.gfnInfoService.streamingTerminated().pipe().subscribe(()=>{this.setLastUserSelectedFolder("")}),this.shadowPlayService.registerAppStartedEvent().subscribe(he=>{this.setLastUserSelectedFolder(""),this.gameDetails.cmsId=he.appStarted.cmsId.toString(),this.gameDetails.drsName=he.appStarted.DRSAppName,this.gameDetails.drsProfileName=he.appStarted.profileName}),this.bridgeService.executeCommand(g.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,re.p)(he=>!!he?.gameExited)).subscribe(he=>{this.onGameExit()}),this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetSettings).pipe((0,r.ZZ)(he=>(this.checkDiskLimits(he.settings.capacity),he.settings.path?this.initPathItems(he.settings.path).pipe((0,y.T)(Ee=>he)):(0,a.of)(he))),(0,G.M)(he=>{this.telemetry.updateGallerySettings(he)}),(0,r.ZZ)(he=>this.featureSupportService.isGFEMode()?this.bridgeService.executeCommand(g.Ts.Common.Gallery.MigrateHighlightsTracker):(0,a.of)(null))).subscribe()}hasAnyEntries(){if(this.topLevelCounts.length>0){let he=0;return this.topLevelCounts.forEach(Ee=>{he+=Ee.totalCount}),console.log("gallery entries: ",he),he>0}return!1}checkDiskLimits(he){this.logger.info("Disk Limits: ",he),he.enabled&&he.capacityPercent/100*he.totalDiskSpaceMB<=he.usageMB&&(this.logger.info("Gallery is full"),this.notifierService.show(ue.Ed.GalleryIsFull))}initPathItems(he){this.videoPath=he,this.cacheService.setRecordingPaths(this.videoPath);const Ee=this.videoPath.split(":")[0];return this.logger.info("Drive Letter: ",Ee),Ee.length&&this.getDriveSize(Ee),this.getFolders().pipe((0,G.M)(()=>{this.logger.info("Initialize complete")}))}pathChanged(){return this.logger.info("Re-initializing Gallery Service"),this.workingFolder="",this.setLastUserSelectedFolder(""),this.directories=[],this.topLevelCounts=[],this.cacheService.flushDirectoryList(),this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetSettings).pipe((0,r.ZZ)(Ee=>(this.checkDiskLimits(Ee.settings.capacity),this.initPathItems(Ee.settings.path))),(0,ge.u)(!0))}getDriveSize(he){this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetDriveInfo,{drive:he}).subscribe(Pe=>{this.currentDriveSize=Pe.totalSpaceMB,this.currentDriveFreeSpace=Pe.freeSpaceMB,this.logger.info("Drive info: ",Pe)})}buildPath(he){return""===he?this.videoPath:this.videoPath+this.dirSeparator+he}setWorkingFolder(he){const Ee=this.buildPath(he);return this.cacheService.getCachedDataCRC(Ee).pipe((0,r.ZZ)(Pe=>this.getUsableData(he)),(0,r.ZZ)(Pe=>(this.cacheService.useCacheData(Ee,!1),(0,a.of)(this.cacheService.files.length))))}getWorkingFolder(){return""!==this.workingFolder&&this.directories.length&&(this.directories.find(Ee=>Ee===this.workingFolder)||(this.workingFolder="")),""===this.workingFolder&&this.directories.length&&(this.workingFolder=this.directories[0]),this.workingFolder}setLastUserSelectedFolder(he){this.lastUserSelectedFolder=he}getLastUserSelectedFolder(){return this.lastUserSelectedFolder}getVideoFolder(){return this.videoPath}saveCurrentLocation(he){this.currentLocation=he}getCurrentLocation(){return this.currentLocation}setGalleryThumbSize(he){this.thumbWidth=he,this.thumbHeight=he}populateDirectoryStats(){if(this.directories.length>0&&this.cacheService.directoryListUpdateCounts){this.topLevelCounts=[];const he=[];return this.directories.forEach(Ee=>{he.push(this.getAppStats(Ee))}),(0,$.yU)(...he).pipe((0,y.T)(()=>this.directories))}return(0,a.of)(this.directories)}getFolders(){return this.cacheService.getDirectoryList().pipe((0,r.ZZ)(he=>(this.directories=he,this.populateDirectoryStats())))}showFolderContents(he){return""===he?""===this.workingFolder?this.workingFolder=he=this.directories[0]:he=this.workingFolder:this.workingFolder=he,this.logger.info("Working Folder: ",this.workingFolder),this.setWorkingFolder(he).pipe((0,y.T)(()=>this.cacheService.getCurrentPopFolder()))}getCurrentFolderCount(){return this.fileCounts}getUsableData(he){this.logger.info("GetUsableData Dir: ",he);const Ee=this.buildPath(he);if(this.cacheService.useCacheData(Ee,!0))return this.logger.info("GetUsableData - Using cached data"),this.fileCounts=this.cacheService.counts,this.telemetryIgo.setGalleryAccessCached(!0),this.telemetryIgo.setGalleryFolderCounts(this.cacheService.counts.images,this.cacheService.counts.total-this.cacheService.counts.images),(0,a.of)(!0);this.telemetryIgo.setGalleryAccessCached(!1);let Pe=[];return this.bridgeService.executeCommand(g.Ts.Share.Shareserver.GetApplicationConfigs,{}).pipe((0,G.M)(Qe=>{if(Qe&&Qe.apps.length){const Be=Qe.apps.find(Mt=>Mt.app.profileName===he||Mt.app.name===he);Be&&(Pe=Be.highlights.map(Mt=>({name:Mt.name,displayName:"",count:0,enabled:!0})),Pe.forEach(Mt=>{const Vt=`highlightLabels.${Mt.name}`,Vn=this.translateService.instant(Vt);Mt.displayName=Vn===Vt?Mt.name:Vn}))}}),(0,i.W)(()=>(0,a.of)(!1)),(0,r.ZZ)(()=>this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetAppUGC,{appName:he})),(0,y.T)(Qe=>{this.cacheService.resetCurrentPopFolder();const Be=[],Mt=this.cacheService.getCurrentPopFolder();let Vt=0,Vn=0,si=0,Rn=0;return Qe.ugc&&Qe.ugc.forEach((_i,wr)=>{Vn+=_i.fileSubType===g.Or.Common.Gallery.SubType.InstantReplay?1:0,Vt+=_i.fileSubType===g.Or.Common.Gallery.SubType.Manual?1:0,_i.fileType===g.Or.Common.Gallery.FileType.video&&_i.fileSubType!==g.Or.Common.Gallery.SubType.InstantReplay&&_i.fileSubType!==g.Or.Common.Gallery.SubType.Manual&&_i.fileSubType!==g.Or.Common.Gallery.SubType.Highlight&&(Vt+=1),si+=_i.fileType===g.Or.Common.Gallery.FileType.image?1:0,Rn+=_i.fileSubType===g.Or.Common.Gallery.SubType.Highlight?1:0;const hr=_i.path.lastIndexOf(this.dirSeparator),Yr={name:_i.path.substr(hr+1),type:_i.fileType,subtype:_i.fileSubType,source:_i.fileSource,thumbnail:""};Be.push(Yr);const no={fullFilename:_i.path,file:Yr,folder:he,index:wr,duration:_i.duration,date:_i.date,fileSize:_i.fileSizeKB.toString(),audiotype:_i.audiotype,hlName:_i.highlightName,hlId:_i.id,hlGroup:_i.highlightGroupId,cancel:!1,data:null};Mt.push(no),Pe.some(Tr=>{if(Tr.name===_i.highlightName)return Tr.count++,!0})}),this.cacheService.files=Be,this.cacheService.setCacheLoadedPartial(Ee),this.logger.info("Files: "+Qe.ugc.length+" Highlights : "+Rn+" Recordings: "+Vt+" IR: "+Vn+" Images: "+si),this.fileCounts={total:Qe.ugc.length,highlights:Rn,videos:Vt,instantReplays:Vn,images:si,highlightBreakDown:Pe},this.telemetryIgo.setGalleryFolderCounts(si,Qe.ugc.length-si),this.cacheService.setFileCounts(this.fileCounts,Ee),!0}))}getAppStats(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetAppStats,{appName:he}).pipe((0,y.T)(Pe=>{this.logger.info("App Stats: "+he+" SS: "+Pe.screenshots+" V: "+Pe.videos);const Qe=this.topLevelCounts.findIndex(Be=>Be.folder===he);return Qe>=0?this.topLevelCounts[Qe].totalCount=Pe.screenshots+Pe.videos:this.topLevelCounts.push({folder:he,totalCount:Pe.screenshots+Pe.videos}),Pe}))}getMetaData(he,Ee=!0){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetFileMetadata,{file:he,width:Ee?this.thumbWidth:void 0,height:Ee?this.thumbHeight:void 0})}getImageFileDimensions(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetImageFileDimensions,{file:he})}getFileData(he,Ee,Pe){const Qe=this.cacheService.getCurrentPopFolder();return void 0===Qe||Qe.length<=Ee||he!==Qe[0].folder||""===Qe[Ee].file.name?(0,a.of)(void 0):this.getMetaData(Qe[Ee].fullFilename,Pe).pipe((0,X.$)(),(0,y.T)(Be=>{const Mt=this.cacheService.getCurrentPopFolder();if(void 0===Mt||Mt.length<=Ee||he!==Mt[0].folder)return;const Vt=Mt[Ee],Vn=Mt[Ee].file,si=void 0===Be.audiotype?xe.gE.Unknown:Be.audiotype;return Vn.type===xe.Wr.Video&&Vn.subtype===xe.so.Normal&&si===g.Or.Common.Gallery.AudioType.Separate&&(Vn.subtype=xe.so.Mta),Vt.audiotype=si,Vt.duration=void 0===Be.duration?"":Be.duration,Vt.memeTop=Be.memeInfo?Be.memeInfo.topBarText:"",Vt.memeBottom=Be.memeInfo?Be.memeInfo.bottomBarText:"",Vt.data=void 0===Be.thumbnail?null:Be.thumbnail,Vt}),(0,i.W)(Be=>(this.logger.error("GetMetaData failed: ",Be),(0,a.of)(void 0))))}fillInFileData(he){return this.getFileData(he.folder,he.index,!0)}removeItem(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.RemoveGalleryItem,{file:he,forceDelete:!1}).pipe((0,r.ZZ)(Pe=>{const Qe=he.lastIndexOf(this.dirSeparator),Be=he.substr(Qe+1,he.length-1);return this.logger.info("File deleted: ",Be),this.cleanupLocalHighlightsListAfterDelete(he),(0,a.of)(!0)}),(0,i.W)(Pe=>(this.logger.info("File remove failed: ",Pe),this.notifierService.show(ue.Ed.FailedToRemove,"",""),(0,a.of)(!1))))}getThumbnailForFile(he,Ee=70,Pe=70){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetThumbnail,{file:he,width:Ee,height:Pe}).pipe((0,y.T)(Be=>Be.thumbnail))}eventCaptureSaved(he){const Ee=he.captureSaved.ugc.fileSource===g.Or.Common.Gallery.Source.GFE_SDK&&he.captureSaved.ugc.fileSubType===g.Or.Common.Gallery.SubType.Highlight,Pe=he.captureSaved.ugc.fileType===g.Or.Common.Gallery.FileType.image,Qe=he.captureSaved.ugc.fileSource===g.Or.Common.Gallery.Source.GFE_Ansel;if(he.captureSaved.unannounced||this.getThumbnailForFile(he.captureSaved.ugc.path).subscribe(Be=>{if(Ee){const Mt=`highlightLabels.${he.captureSaved.ugc.highlightName}`;this.translateService.get(Mt).subscribe(Vt=>{Vt===Mt&&(Vt=he.captureSaved.ugc.highlightName),this.notifierService.show(ue.Ed.HighlightsSaved,Vt,"","",Be)})}else if(Qe){let Mt="";switch(he.captureSaved.ugc.fileSubType){case g.Or.Common.Gallery.SubType.Normal_Ansel:Mt="nvcamera.screenshot";break;case g.Or.Common.Gallery.SubType.SuperResolution:case g.Or.Common.Gallery.SubType.SuperResolution_Oversized:Mt="nvcamera.highResolutionPhoto";break;case g.Or.Common.Gallery.SubType.SubType_360Mono:Mt="nvcamera.360PhotoSphere";break;case g.Or.Common.Gallery.SubType.Stereo:Mt="nvcamera.screenshot3D";break;case g.Or.Common.Gallery.SubType.SubType_360Stereo:Mt="nvcamera.360PhotoSphere3D"}this.notifierService.show(ue.Ed.HighlightsSaved,Mt,"","",Be)}else Pe?this.notifierService.show(ue.Ed.ScreenshotSaved,"","","",Be):"Manual"===he.captureSaved.ugc.fileSubType?this.notifierService.show(ue.Ed.RecordStopped,"","","",Be):"InstantReplay"===he.captureSaved.ugc.fileSubType&&this.notifierService.show(ue.Ed.InstantReplaySaved,"","","",Be)}),this.highlightSummaryIsOpen?void 0===this.highlightsSummaryData.highlights.find(Be=>Be.path===he.captureSaved.ugc.path)&&this.highlightsSummaryData.highlights.push({id:he.captureSaved.ugc.id,path:he.captureSaved.ugc.path,fileType:he.captureSaved.ugc.fileType,highlightdefinitionId:he.captureSaved.ugc.highlightDefinitionId,highlightName:he.captureSaved.ugc.highlightName,highlightGroupId:he.captureSaved.ugc.highlightGroupId,highlightTags:he.captureSaved.ugc.highlightTags,highlightSignificance:he.captureSaved.ugc.highlightSignificance}):this.cacheService.updateDirectoryList(he.captureSaved.ugc.path),Ee){const Be={id:he.captureSaved.ugc.id,groupId:he.captureSaved.ugc.highlightGroupId,filename:he.captureSaved.ugc.path,name:he.captureSaved.ugc.highlightName,cancel:!1};if(this.delayedCallback$.observers.length){const Mt=he.captureSaved.ugc.DRSProfileName,Vt=0===this.directories.length,Vn=!Vt&&void 0===this.directories.find(_i=>_i===Mt),si=!Vt&&!Vn&&this.workingFolder!==Mt,Rn=Vt||Vn||si;if(this.logger.info("Special cases: "+Vt+" "+Vn+" "+si),Rn){const _i=this.workingFolder;this.showFolderContents(he.captureSaved.ugc.DRSProfileName).subscribe(()=>{this.saveDelayedHighlight(Be),this.workingFolder=_i})}else this.saveDelayedHighlight(Be)}this.telemetry.sendHighlightCapture({shortName:this.sdkService.sdkInstance.appShortName},this.sdkService.sdkInstance.sdkVersion,this.durationToSeconds(he.captureSaved.ugc.duration),he.captureSaved.ugc.highlightDefinitionId,"image"===he.captureSaved.ugc.fileType?N.cM.image:N.cM.video,N.tT.Success,{cmsId:he?.captureSaved?.ugc?.cmsId.toString(),drsName:he?.captureSaved?.ugc?.DRSName,drsProfileName:he?.captureSaved?.ugc?.DRSProfileName})}return this.captureSaved$.observers.length&&this.captureSaved$.next(he.captureSaved.ugc.path),!Ee&&this.refreshEvent$.observers.length&&this.refreshEvent$.next({folder:he.captureSaved.ugc.DRSProfileName}),this.getFolders().pipe((0,G.M)(Be=>this.updateRecentList()),(0,y.T)(Be=>!0))}durationToSeconds(he){const Ee=he.lastIndexOf(":"),Pe=he.slice(Ee+1),Qe=he.slice(0,Ee),Be=Qe.lastIndexOf(":"),Mt=Qe.slice(Be+1),Vt=he.slice(0,Be);return Number(Pe)+60*Number(Mt)+3600*Number(Vt)}updateRecentList(){this.recentEvent$.observers.length&&this.recentEvent$.next()}updateAfterFileCreation(he){this.refreshEvent$.observers.length&&this.refreshEvent$.next({folder:he}),this.updateRecentList(),this.logger.info("Update Recent and Gallery complete")}getMissingItem(he){const Ee=he.filename;let Pe=Ee.lastIndexOf(this.dirSeparator);const Qe=Ee.slice(Pe+1),Be=Ee.slice(0,Pe);Pe=Be.lastIndexOf(this.dirSeparator);const Mt=Be.slice(Pe+1);if(this.workingFolder!==Mt)return(0,a.of)(void 0);const Vt=this.cacheService.getCurrentPopFolder(),Vn=Vt.findIndex(si=>he.id===si.hlId);return-1===Vn?(this.refreshEvent$.observers.length&&this.refreshEvent$.next({folder:Mt}),(0,a.of)(void 0)):(Vt[Vn].fullFilename=Ee,Vt[Vn].file.name=Qe,this.getFileData(Mt,Vn,!0))}getCurrentDropdownCount(he){return this.getAppStats(he).pipe((0,y.T)(Ee=>{const Pe=this.topLevelCounts.findIndex(Qe=>Qe.folder===he);return-1!==Pe?(this.topLevelCounts[Pe].totalCount=Ee.screenshots+Ee.videos,this.topLevelCounts[Pe].totalCount):0}))}saveDelayedHighlight(he){if(he.cancel)return this.logger.info("Canceling Highlight"),void this.canceledCallback$.next({hlEvent:xe.pW.HIGHLIGHT_COMPLETED,args:he});const Ee=this.getMissingItem(he).subscribe(Pe=>{Pe&&(this.delayedCallback$.next({hlEvent:xe.pW.HIGHLIGHT_COMPLETED,args:Pe}),Ee.unsubscribe())})}updateFolderSync(he,Ee){return new ee.c(Pe=>{this.updateFolder(he,Ee).subscribe(()=>{Pe.next(),Pe.complete(),this.logger.info("Complete")})})}updateFolder(he,Ee){let Pe={};if(Ee===xe.QA.Highlights)Pe={userGalleryPath:he};else if(Ee===xe.QA.Temporary){const Be=he.lastIndexOf(this.dirSeparator),Mt=he.length-1;Be===Mt&&(he=he.slice(0,Mt)),Pe={tempFolderPath:he}}return this.bridgeService.executeCommand(g.Ts.Common.Gallery.SetSettings,{settings:Pe}).pipe((0,y.T)(()=>!0),(0,ge.u)(!0))}galleryEvent(he){if(he){if(he.captureSaved)return this.logger.info("Gallery event: CaptureSaved:",he),this.eventCaptureSaved(he);if(he.openSummary)this.logger.info("Gallery event: OpenSummary"),this.eventOpenSummary(he);else if(he.highlightCanceled)this.logger.info("Gallery event: HighlightCanceled"),this.eventHighlightCanceled(he);else if(he.ugcDeleted)this.logger.info("Gallery event: UgcDeleted"),this.eventUGCDeleted(he);else if(he.checkDiskSpace)this.logger.info("Gallery event: CheckDiskSpace"),this.lowDiskSpace(he);else if(void 0!==he.galleryIsFull)this.logger.info("Gallery event: GalleryIsFull"),!0===he.galleryIsFull&&this.notifierService.show(ue.Ed.GalleryIsFull);else if(he.highlightCaptureFailed)this.logger.info("Gallery event: HighlightCaptureFailed"),this.checkCaptureFailure(he);else if(he.galleryPathUpdateStatus){switch(he.galleryPathUpdateStatus.status){case g.Or.Common.Gallery.GalleryPathUpdateStatus.TrackerUpdateInProgress:this.updatingTracker=!0;break;case g.Or.Common.Gallery.GalleryPathUpdateStatus.TrackerUpdateComplete:case g.Or.Common.Gallery.GalleryPathUpdateStatus.CancelUpdateComplete:this.updatingTracker=!1}this.trackerCallback$.next({trackerEvent:he.galleryPathUpdateStatus.status})}else this.logger.info("Unknown or unhandled Event Type: ",he)}else this.logger.info("Event: undefined or null");return(0,a.of)(!1)}galleryTrackerChangePath(){return new ee.c(he=>{this.pathChanged().subscribe(()=>{he.next(),he.complete(),this.logger.info("ChangePath Complete")})})}getRecentData(he,Ee){this.setGalleryThumbSize(he);const Pe=[];return Pe.length=0,this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetRecentUGC,{count:Ee}).pipe((0,r.ZZ)(Mt=>{if(!Mt||!Mt.recents||!Mt.recents.length)return this.logger.info("No recent items to view!"),(0,$.yU)((0,a.of)(!1));const Vt=Math.min(Ee,Mt.recents.length);for(let si=0;si<Vt;si++){const Rn=Mt.recents[si].path;let _i=Rn.lastIndexOf(this.dirSeparator);const wr=Rn.substr(_i+1,Rn.length-1);let hr=Rn.substr(0,_i);_i=hr.lastIndexOf(this.dirSeparator),hr=hr.substr(_i+1,hr.length-1);const Yr={fullFilename:Rn,file:{name:wr,type:Mt.recents[si].fileType,subtype:Mt.recents[si].fileSubType,source:Mt.recents[si].fileSource,thumbnail:""},folder:hr,index:si,duration:Mt.recents[si].duration,date:Mt.recents[si].date,fileSize:Mt.recents[si].fileSizeKB.toString(),audiotype:Mt.recents[si].audiotype,hlName:Mt.recents[si].highlightName,hlId:Mt.recents[si].id,hlGroup:Mt.recents[si].highlightGroupId,cancel:!1,data:null};Pe.push(Yr)}this.logger.info("Viewing "+Pe.length+" recent items");const Vn=[];return Pe.forEach(si=>{Vn.push(this.getRecentMetaData(si,he))}),(0,$.yU)(...Vn)}),(0,y.T)(()=>(this.logger.info("Recent MetaData complete!"),Pe)))}setHighlightsSummaryOpen(he){this.highlightSummaryIsOpen=he}getRecentMetaData(he,Ee){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetFileMetadata,{file:he.fullFilename,width:Ee,height:Ee}).pipe((0,y.T)(Qe=>void 0===Qe.fileType?(this.logger.info("metadata not available for file ",he.fullFilename),!1):("video"===Qe.fileType&&void 0!==he.duration&&(he.duration=Qe.duration),he.date=Qe.date,he.fileSize=Qe.fileSizeKB+"",he.audiotype=Qe.audiotype,he.data=Qe.thumbnail,!0)))}eventOpenSummary(he){const Ee=this.sdkService.sdkInstance.profileName;if(!Ee||0===Ee.length)return void this.logger.error("Missing game name");this.highlightSummaryIsOpen=!0,this.highlightsSummaryData={sdkVersion:this.sdkService.sdkInstance.sdkVersion,profileName:Ee,appShortName:this.sdkService.sdkInstance.appShortName,name:this.sdkService.sdkInstance.name,highlights:he.openSummary.ugc};const Pe={callbackData:JSON.stringify({openedFromSDK:!0})};this.telemetryIgo.beginStartupTimer(N.gh.highlightsButton),this.oscDisplayService.openOSC("sidebar/gallery",Pe)}eventHighlightCanceled(he){this.canceledCallback$.observers.length&&this.saveDelayedHighlight({id:he.highlightCanceled.highlight.id,groupId:he.highlightCanceled.highlight.groupId,filename:"",name:"",cancel:!0}),this.telemetryIgo.sendHighlightCancelled({shortName:this.sdkService.sdkInstance.appShortName},this.sdkService.sdkInstance.name,this.sdkService.sdkInstance.sdkVersion)}eventUGCDeleted(he){const Ee=he.ugcDeleted.ugc,Pe=Ee.path;let Qe=Pe.lastIndexOf(this.dirSeparator);const Be=Pe.slice(0,Qe);Qe=Be.lastIndexOf(this.dirSeparator);const Mt=Be.slice(Qe+1);this.getFolders().subscribe(()=>this.updateRecentList()),this.workingFolder===Mt&&(-1===this.cacheService.getCurrentPopFolder().findIndex(si=>Ee.id===si.hlId)||this.refreshEvent$.observers.length&&this.refreshEvent$.next({folder:Mt,filename:Pe}))}lowDiskSpace(he){this.lowDiskSpaceEvent$.next(he.checkDiskSpace.lowDiskSpace)}checkCaptureFailure(he){this.logger.info("checkCaptureFailure: ",he),(he.highlightCaptureFailed.errorCode===g.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_NO_DISC_SPACE||he.highlightCaptureFailed.errorCode===g.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_BOUNDS||he.highlightCaptureFailed.errorCode===g.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_NO_GALLERY_SPACE)&&(this.notifierService.show(ue.Ed.NoSpaceCaptureNotSaved,"commonLabels.Highlights"),this.isNvApp&&this.telemetry.sendHighlightCapture({shortName:this.sdkService.sdkInstance.appShortName},this.sdkService.sdkInstance.sdkVersion,null,null,null,he.highlightCaptureFailed.errorCode.toString()))}onGameExit(){this.gameDetails={cmsId:"",drsName:"",drsProfileName:""}}checkDiskSpace(){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.CheckDiskSpace,{}).pipe((0,y.T)(Ee=>(this.lowDiskSpace({checkDiskSpace:{lowDiskSpace:Ee.lowDiskSpace}}),Ee.lowDiskSpace)))}cleanupLocalHighlightsListAfterDelete(he){if(this.highlightsSummaryData&&this.highlightsSummaryData.highlights.length>0){const Ee=this.highlightsSummaryData.highlights.find(Pe=>Pe.path===he);if(Ee){this.logger.info("Highlight to delete: ",Ee);const Pe=this.highlightsSummaryData.highlights.indexOf(Ee);Pe>-1&&this.highlightsSummaryData.highlights.splice(Pe,1)}}}getHighlightsToUse(he){return he?(this.highlightSummaryIsOpen=!0,this.highlightsSummaryData):{sdkVersion:"",profileName:"",appShortName:"",name:"",highlights:void 0}}generateGalleryFilename(he,Ee,Pe=new Date){return`${this.videoPath}${this.dirSeparator}${he}${this.dirSeparator}${he} ${this.datePipe.transform(Pe,"yyyy.MM.dd - HH.mm.ss.SS")}.${Ee}`}previewPaneSendEvent(he){this.previewPaneEvent$.next(he)}setPreviewCaller(he){this.previewCaller=he}getPreviewCaller(){return this.previewCaller}showDeleteSnackbar(he){let Ee=!0;const Pe=he.length,Qe=1===Pe?"confirmation.deletedTitle":"confirmation.deletedTitleMulti";return he.length<=0?(0,a.of)(!1):new ee.c(Vt=>{(0,J.zV)([this.translateService.get(Qe,{arg:Pe}),this.translateService.get("confirmation.undo")]).pipe((0,r.ZZ)(([Vn,si])=>{const Rn=this.dialogHelper.openSnackBar(Vn,si);return Rn.onAction().subscribe(()=>{Ee=!1}),Rn.afterDismissed()}),(0,r.ZZ)(()=>(0,z.H)(he)),(0,r.ZZ)(Vn=>Ee?(this.telemetryIgo.sendGalleryFileRemoved(Vn),this.removeItem(Vn.fullFilename)):(0,a.of)(!1)),(0,oe.H)()).subscribe(Vn=>{Vt.next(Vn),Vt.complete()})})}getCurrentGameDetails(){return this.gameDetails}sendDiskSpaceChangedTelemetry(he){this.featureSupportService.isGFEMode()&&this.telemetry.sendIGOSettings(this.gameDetails,N.ld,he?"true":"false")}sendDiskSpaceSliderChangedTelemetry(he){this.featureSupportService.isGFEMode()&&this.telemetry.sendIGOSettings(this.gameDetails,N.q6,he.toString())}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(h.NZ),m.KVO(A),m.KVO(K),m.KVO(se.P),m.KVO(ue.mb),m.KVO(_.B),m.KVO(ce.x),m.KVO(Z.S),m.KVO(de.c$),m.KVO(ae.e),m.KVO(pe.vh),m.KVO(_e.x_),m.KVO(ke.R),m.KVO(De.W1))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();var ye=d(33452),Re=d(93455),Ze=d(43780),et=d(65706),xt=d(97152);let ct=(()=>{var qn;class Sr{constructor(he,Ee,Pe,Qe,Be){this.injector=Ee,this.hotkeyService=Pe,this.configuration=Qe,this.hotkeyShareService=Be,this.instreamPasteService=null,this.logger=he.getLogger("IGO CustomPasteService"),this.configuration?.client?.needsDialogForInStreamPaste&&(this.instreamPasteService=this.injector.get(Re.uw))}init(){this.logger.info("Initializing CustomPasteService"),this.hotkeyShareService.removeFromIgnoredHotkeysSet(c.g8.InStreamPaste),this.hotkeyService.listen(c.g8.InStreamPaste).pipe((0,Ze.c)(333),(0,r.ZZ)(()=>this.instreamPasteService.isInStreamingPasteEnabled.pipe((0,et.s)(1)))).subscribe(he=>{this.logger.info("In Stream Paste Window opening triggered"),he?(this.logger.info("In Stream Paste feature is enabled, opening Clipboard window"),this.instreamPasteService.initPasteInputHandler()):this.logger.info("In Stream Paste feature is disabled")})}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(m.zZn),m.KVO(c.QS),m.KVO(xt.Vk6),m.KVO(I.f))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();var Gt=d(57412);let st=(()=>{var qn;class Sr{constructor(he,Ee,Pe,Qe,Be){this.bridgeService=Ee,this.hotkeyService=Pe,this.oscDisplayService=Qe,this.igoConfig=Be,this.throttleMs=333,this.$webcamState=new p.t(!1),this.webcamInfo={present:!1,enabled:!1,visible:!1,preview:!1,queuePreview:!1,position:g.Or.Share.Shareserver.OverlayPositionEnum.rightTop,size:g.Or.Share.Shareserver.OverlaySizeEnum.small},this.logger=he.getLogger("WebcamService")}init(){if("GFE"===this.igoConfig.branding){this.hotkeyService.listen(c.g8.CameraToggle).pipe((0,Ze.c)(this.throttleMs)).subscribe(()=>{this.toggleWebcam()}),this.initializeWebcam(),this.getWebcamOverlaySettings();let he=!1;this.oscDisplayService.getCurrentOpenState().subscribe(Ee=>{he&&this.getCurrentWebcamStates(Ee),he=!0})}}getCurrentWebcamStates(he){"open"===he&&!0===this.webcamInfo.preview?this.enableWebcamPreview(!1):"closed"===he&&(this.webcamInfo.preview=this.webcamInfo.queuePreview,this.enableWebcamPreview(this.webcamInfo.queuePreview))}initializeWebcam(){this.getWebcamPresent().subscribe(he=>{this.logger.info("Webcam present: ",he),this.webcamInfo.present=he,he&&(this.getWebcamEnable().subscribe(Ee=>{this.webcamInfo.enabled=Ee,this.$webcamState.next(this.webcamInfo.enabled),this.logger.info("Webcam Enabled: ",Ee)}),this.getWebcamShown().subscribe(Ee=>{this.webcamInfo.visible=Ee,this.logger.info("Webcam Shown: ",Ee)}),this.getWebcamPreviewState().subscribe(Ee=>{this.webcamInfo.preview=this.webcamInfo.queuePreview=Ee,this.logger.info("Webcam Preview: ",Ee)}))})}getWebcamState(){return this.$webcamState.asObservable()}getWebcamPresent(){return this.bridgeService.executeCommand(g.Ts.Share.Shareserver.GetWebcamPresent).pipe((0,y.T)(he=>(this.logger.info("GetWebcamPresent returns: ",he),he.present),he=>(this.logger.info("GetWebcamPresent error: ",he),!1)))}getWebcamEnable(){return this.bridgeService.executeCommand(g.Ts.Share.Shareserver.GetWebcamEnable).pipe((0,y.T)(he=>(this.logger.info("GetWebcamEnable returns: ",he),he.status),he=>(this.logger.info("GetWebcamEnable error: ",he),!1)))}enableWebcam(he){this.bridgeService.executeCommand(g.Ts.Share.Shareserver.EnableWebcam,{status:he}).subscribe(Pe=>{this.logger.info("EnableWebcam returns: ",Pe),this.webcamInfo.enabled=he},Pe=>{this.logger.info("EnableWebcam error: ",Pe)})}getWebcamShown(){return this.bridgeService.executeCommand(g.Ts.Share.Shareserver.GetWebcamShown).pipe((0,y.T)(he=>(this.logger.info("GetWebcamShown returns: ",he),he.shown),he=>(this.logger.info("GetWebcamShown error: ",he),!1)))}toggleWebcam(){this.bridgeService.executeCommand(g.Ts.Share.Shareserver.ToggleWebcam).subscribe(he=>{this.logger.info("ToggleWebcam returns: ",he),this.webcamInfo.enabled=!this.webcamInfo.enabled,this.$webcamState.next(this.webcamInfo.enabled)},he=>{this.logger.info("ToggleWebcam error: ",he)})}getWebcamPreviewState(){return this.bridgeService.executeCommand(g.Ts.Share.Shareserver.GetWebcamPreviewState).pipe((0,y.T)(he=>(this.logger.info("GetWebcamPreviewState returns: ",he),he.enabled),he=>(this.logger.info("GetWebcamPreviewState error: ",he),!1)))}enableWebcamPreview(he){this.bridgeService.executeCommand(g.Ts.Share.Shareserver.EnableWebcamPreview,{enable:he}).subscribe(Pe=>{this.logger.info("EnableWebcamPreview returns: ",Pe)},Pe=>{this.logger.info("EnableWebcamPreview error: ",Pe)})}queueWebcamPreview(he){this.webcamInfo.queuePreview=he}getWebcamOverlaySettings(){this.bridgeService.executeCommand(g.Ts.Share.Shareserver.GetIndicatorOverlaySettings,{id:g.Or.Share.Shareserver.IndicatorEnum.webcam}).subscribe(Ee=>{this.logger.info("GetIndicatorOverlaySettings returns: ",Ee),this.webcamInfo.position=Ee.position,this.webcamInfo.size=Ee.size},Ee=>{this.logger.info("GetIndicatorOverlaySettings error: ",Ee)})}setWebcamOverlaySettings(he,Ee){this.bridgeService.executeCommand(g.Ts.Share.Shareserver.SetIndicatorOverlaySettings,{id:g.Or.Share.Shareserver.IndicatorEnum.webcam,enable:this.webcamInfo.enabled,position:he,size:Ee}).subscribe(Qe=>{this.logger.info("SetIndicatorOverlaySettings returns: ",Qe),this.webcamInfo.position=he,this.webcamInfo.size=Ee},Qe=>{this.logger.info("SetIndicatorOverlaySettings error: ",Qe)})}getWebcamInfo(){return this.webcamInfo}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(h.NZ),m.KVO(c.QS),m.KVO(_.B),m.KVO(T.k))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();var mn=d(16229),Bn=d(59859),En=d(93181),Cn=d(36466),fn=d(72147),dt=d(8282),nn=d(4208),yn=d(93702),Xn=d(40198),rn=d(65726),ai=d(43615),ri=d(27721);class zt{constructor(Sr,ni,he,Ee){this.predicate=Sr,this.source=ni,this.yieldIndex=he,this.thisArg=Ee}call(Sr,ni){return ni.subscribe(new vt(Sr,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class vt extends ri.v{constructor(Sr,ni,he,Ee,Pe){super(Sr),this.predicate=ni,this.source=he,this.yieldIndex=Ee,this.thisArg=Pe,this.index=0}notifyComplete(Sr){const ni=this.destination;ni.next(Sr),ni.complete(),this.unsubscribe()}_next(Sr){const{predicate:ni,thisArg:he}=this,Ee=this.index++;try{ni.call(he||this,Sr,Ee,this.source)&&this.notifyComplete(this.yieldIndex?Ee:Sr)}catch(Pe){this.destination.error(Pe)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}var Ct=d(22123),it=d(78812),Ut=d(18880),jn=d(19724),wn=d(30254),nt=function(qn){return qn.anselEnabledResponse="anselEnabledResponse",qn.anselEnabledState="anselEnabledState",qn.procInfo="procInfo",qn.captureTypesList="captureTypesList",qn.sdkIntegration="sdkIntegration",qn.rollRange="rollRange",qn.fovRange="fovRange",qn.setRollFovResponse="setRollFovResponse",qn.screenResolution="screenResolution",qn.highResResolutions="highResResolutions",qn.panoramaResolutions="panoramaResolutions",qn.captureShotStarted="captureShotStarted",qn.captureShotProgress="captureShotProgress",qn.captureShotFinished="captureShotFinished",qn.captureShotProcessingFinished="captureShotProcessingFinished",qn.captureShotCancel="captureShotCancel",qn.features="features",qn.filtersList="filtersList",qn.resetFilter="resetFilter",qn.insertFilter="insertFilter",qn.removeFilter="removeFilter",qn.moveFilter="moveFilter",qn.filterStackInfo="filterStackInfo",qn.filterDetails="filterDetails",qn.setFilterAttribute="setFilterAttribute",qn.setFovResponse="setFovResponse",qn.setRollResponse="setRollResponse",qn.fovValue="fovValue",qn.resetEntireStack="resetEntireStack",qn.nvCameraReady="nvCameraReady",qn.anselStatusReport="anselStatusReport",qn.ngxAIUpResProgress="ngxAIUpResProgress",qn.ngxAIUpResCaptureDone="ngxAIUpResCaptureDone",qn.cancelPendingOperations="cancelPendingOperations",qn}(nt||{}),on=function(qn){return qn[qn.slider=1]="slider",qn[qn.boolean=2]="boolean",qn[qn.button=3]="button",qn[qn.list=4]="list",qn[qn.edit=5]="edit",qn[qn.label=6]="label",qn[qn.pulldown=7]="pulldown",qn[qn.radiobutton=9]="radiobutton",qn}(on||{}),mt=function(qn){return qn.HotKey="HK",qn.Ui="UI",qn}(mt||{}),_n=function(qn){return qn.Top="Top",qn.Bottom="Bottom",qn}(_n||{}),wt=function(qn){return qn.MoveUp="MoveUp",qn.MoveDown="MoveDown",qn.Add="Add",qn.Delete="Delete",qn.Clicked="Clicked",qn.ApplyStyle="ApplyStyle",qn.None="None",qn}(wt||{}),Un=function(qn){return qn.Keyboard="Keyboard",qn.Mouse="Mouse",qn.Gamepad="Gamepad",qn}(Un||{}),Oi=function(qn){return qn.UpdateStyleFail="updateStyleFail",qn.ApplyStyleFail="applyStyleFail",qn.RemoveFilterSuccess="RemoveFilterSuccess",qn.CaptureFinished="CaptureFinished",qn.CaptureFailed="CaptureFailed",qn}(Oi||{}),At=function(qn){return qn.SUCCESS="Success",qn.ERROR_RESTART="Error occured, please restart the game",qn.ERROR_SUPPORTED_GAME="Supported game required",qn.ERROR_SESSION_NOT_ALLOWED="Session not allowed",qn.ERROR_TIMEOUT="Timeout has occurred",qn.ERROR_SYSTEM_OFFLINE="System is offline",qn}(At||{});const Hn={GPUArchitecture:"0x00000160",ExGPUArchImplementation:[8,7],OSBuildNumber:17134};var pi=function(qn){return qn[qn.KeyZ=0]="KeyZ",qn[qn.KeyX=1]="KeyX",qn[qn.KeyY=2]="KeyY",qn[qn.KeyW=3]="KeyW",qn[qn.KeyS=4]="KeyS",qn[qn.KeyA=5]="KeyA",qn[qn.KeyD=6]="KeyD",qn}(pi||{});let Zi=(()=>{var qn;class Sr{get pageLaunchStart(){return this._pageLaunchStart}set pageLaunchStart(he){this._pageLaunchStart=he}getFetchedSystemInfo(){return this.systemInfo}get pageLaunchMode(){return this._pageLaunchMode}set pageLaunchMode(he){this._pageLaunchMode=he}get currentGameInfo(){if(this.igoConfig.GFNCefClient){const he=this.gfnInfoService.getstreamerConfig();return this.currentGameStreamInfo={procId:void 0,cmsId:he?.cmsId,drsName:void 0,drsProfileName:void 0,shortName:he?.shortName,drsWhitelist:void 0},this.logger.info("Current Streaming Game:",this.currentGameStreamInfo),this.currentGameStreamInfo}return this.currentGFEGameInfo}passFilterStateToTelemetry(){this.telemetryService.updateAnselFilterAppliedField(this.ppeFiltersState?.deepDvc||this.ppeFiltersState?.nis||this.ppeFiltersState?.trueHdr||this.isModsAppliedCurrently)}updatePpeState(he,Ee){switch(he){case wn.VL:this.ppeFiltersState.deepDvc=Ee;break;case wn.on:this.ppeFiltersState.nis=Ee;break;case wn.Ow:this.ppeFiltersState.trueHdr=Ee;break;default:return void this.logger.error("Incorrect filter ID passed")}this.passFilterStateToTelemetry()}constructor(he,Ee,Pe,Qe,Be,Mt,Vt,Vn,si,Rn,_i,wr,hr,Qr,Yr,no,Tr,ro,po){this.injector=he,this.igoConfig=Ee,this.loggingService=Pe,this.bridgeService=Qe,this.hotkeyService=Be,this.oscDisplayService=Mt,this.translateService=Vt,this.shadowPlayService=Vn,this.galleryService=si,this.localeService=Rn,this.telemetryService=_i,this.telemetryIgoService=wr,this.oscNotificationService=hr,this.dialogHelperService=Qr,this.dbService=Yr,this.networkStatusService=no,this.systemInfoService=Tr,this.gfnInfoService=ro,this.featureSupportService=po,this.gfnRTSPAccountedLatency=3e3,this.nvCameraStrictTimeout=250,this.nvCameraDefaultTimeout=2e3,this.nvCameraRelaxedTimeout=15e3,this.throttleDuration=500,this.nvCameraMenuOpenTimeout=3e3,this.dbStorageName="NvCamera",this.filterPresetsStorageKeyName="FilterPresets_v1",this.previewSupported=!0,this.freestylePreviewPrefix="Preview_",this.freestylePreviewExtension=".png",this.driverStorePathKey="DriverStore",this.previewInProgress=!1,this.isNvCameraEnabled=!1,this.isGameFilterEnabled=!1,this.isPhotoModeEnabled=!1,this.isRedirectionEnable=!1,this.notifications$=new l.B7,this.currentUIMode=void 0,this.currentProcessInfo=void 0,this.currentGameStreamInfo=void 0,this.currentGFEGameInfo=void 0,this.currentGameChromaInfo=void 0,this.currentFreestyleGameInfo=void 0,this.systemInfo=void 0,this.isDevServer=!1,this.filterPresetsData=void 0,this.isModsAppliedCurrently=!1,this.isAIUpresSupported=void 0,this.isNvCameraReady=!1,this.nvcameraOperationUnderProgress=!1,this.uiRunning=new p.t(!1),this.gameFilterStyleToggleHotkey=new p.t(""),this.cachedFeaturesAvailable=void 0,this.currentGameSlots=void 0,this.keyMatchCount=[0,0],this.invalidSequence=[!1,!1],this.sourceTrigger=mt.HotKey,this.snackBarRef=void 0,this.restartRequired=!1,this.statusOfCaptureEnhance=!0,this.isSystemOnline=!1,this.nvCameraTimedOut=!1,this.gameFilterDisable=new p.t(!0),this.photoModeDisable=new p.t(!0),this.previewPaths=[],this.panningUsed=!1,this.panningWithGC=!1,this.panningWithKB=!1,this.panningWithMouse=!1,this.usedController=!1,this.usedKeyboard=!1,this.usedMouse=!1,this.gridUsed=!1,this.menuLaunchTime=0,this.previousSlotApplied=-1,this.isAppStartedReceived=!1,this.gameFilterMenu=!1,this.slotsUsed=new Set,this.navigationInputDevice={KEYBOARD:!1,MOUSE:!1,GAMEPAD:!1},this.dialogRef=void 0,this.menuCloseInProgress$=new p.t(!1),this.gameDetails={cmsId:"",drsName:"",drsProfileName:""},this.isAIDVCEnabled=!1,this.isAIHDREnabled=!1,this.isNIS2Enabled=!1,this.ppeFiltersState={nis:!1,deepDvc:!1,trueHdr:!1},this.lastSlotChanged$=new p.t(void 0),this.modsAppliedOnGameLaunch$=new l.B7,this.nvcameraGameStarted$=new l.B7,this.isPpeFeaturesEnabled=!1,this._pageLaunchStart=0,this._pageLaunchMode=jn.gv.UsingUI,this.alertDialogData={title:"nvcamera.GameFilter",query:"",queryParam:{arg:""},action1:void 0,action2:void 0,spinner:void 0,progressBar:void 0,progressPercentage:void 0},this.preResetSessionData={uiMode:void 0,modsApplied:!1,currentGameInfo:void 0},this.appConfig=null,this.streamerStateSubscription=void 0,this.featureResult={gameFilterSupport:!1,photoModeSupport:!1},this.chromaDBResult=void 0,this.globalToggleChangedFromIGO$=new l.B7,this.isGameRestartRequestedfromCTA=!1,this.logger=this.loggingService.getLogger("NvCameraService"),this.dBStore=this.dbService.getGlobalStore(this.dbStorageName),this.igoConfig.GFNCefClient||(this.lcarsService=this.injector.get(Gt.B))}init(){return this.logger.info("Initialize , feature support: ",this.igoConfig.NvCameraFeaturesEnabled),this.igoConfig.GFNCefClient&&(this.nvCameraStrictTimeout+=this.gfnRTSPAccountedLatency,this.nvCameraDefaultTimeout+=this.gfnRTSPAccountedLatency,this.nvCameraRelaxedTimeout+=this.gfnRTSPAccountedLatency,this.appConfig=this.injector.get(xt.Vk6),this.appConfig||this.logger.info("ERROR:: Failed to obtain appConfig")),this.getSystemInfo().subscribe(he=>{this.logger.info("System Info: ",he)}),this.igoConfig.GFNCefClient&&this.updateStreamerState(),this.isPpeFeaturesEnabled=this.featureSupportService.isPpeEnabled(),this.checkFeatureSupport().toPromise().then(he=>(this.logger.info("Photo Mode supported = ",this.isPhotoModeSupported()),this.logger.info("Game Filter supported = ",this.isGameFilterSupported()),this.logger.info("initialized"),!0),he=>(this.logger.error("failed to initialize, error: ",he.message),!1))}queryChromaDB(){return this.igoConfig.GFNCefClient?this.chromaDBResult?(this.logger.info("Skipping Chroma query, already populated:",this.chromaDBResult),(0,a.of)(this.chromaDBResult)):this.isChromaApproved():(this.chromaDBResult={photoModeSupport:this.isPhotoModeSupported(),gameFilterSupport:this.isGameFilterSupported()},(0,a.of)(this.chromaDBResult))}isChromaApproved(){return this.isDevServer?(this.logger.info("Skipping launch checks, isDevServer: ",this.isDevServer),this.chromaDBResult={gameFilterSupport:!0,photoModeSupport:!0},(0,a.of)(this.chromaDBResult)):this.currentGameInfo?.cmsId?this.gfnInfoService.getAppMetadataUsingCmsId(this.currentGameInfo?.cmsId).pipe((0,y.T)(he=>(this.logger.info("isFreestyleSupported: ",he.nvidiaTech.FREESTYLE),this.logger.info("isAnselSupported: ",he.nvidiaTech.ANSEL),this.chromaDBResult={gameFilterSupport:he.nvidiaTech.FREESTYLE,photoModeSupport:he.nvidiaTech.ANSEL},this.chromaDBResult)),(0,i.W)(he=>(this.logger.error(`Unable to obtain game meta data ${he}`),this.chromaDBResult={gameFilterSupport:!0,photoModeSupport:!0},(0,a.of)(this.chromaDBResult)))):(this.logger.error("CmsId not available to query"),(0,a.of)(void 0))}isFeatureAvailable(){return"GFE"===this.igoConfig.branding?(0,a.of)({photoModeSupport:this.isPhotoModeSupported(),gameFilterSupport:this.isGameFilterSupported()}):(this.isSystemOnline=this.networkStatusService.isOnline,this.isSystemOnline?this.queryChromaDB().pipe((0,y.T)(he=>{if(this.featureResult=he,this.featureResult.gameFilterSupport||this.featureResult.photoModeSupport)if(!this.isNvCameraReady&&this.isAppStartedReceived)this.logger.info("Checking if nvcamera is ready"),this.checkNvCameraReady();else if(this.isNvCameraReady)this.setAnselFreestyleState();else{const Ee="NvCamera is not ready";this.featureResult.gameFilterSupport&&this.sendFeatureDisableErrorTelemetry(N.O5.GameFilter,N.bG.featureNotAvailable,Ee),this.featureResult.photoModeSupport&&this.sendFeatureDisableErrorTelemetry(N.O5.PhotoMode,N.bG.featureNotAvailable,Ee)}return this.featureResult}),(0,i.W)(he=>(this.logger.error("Unable to get chroma results, using defaults."+he),this.featureResult={gameFilterSupport:!0,photoModeSupport:!0},(0,a.of)(this.featureResult)))):void 0)}isGameFilterSupported(){return this.isNvCameraEnabled&&this.isGameFilterEnabled}isPhotoModeSupported(){return this.isNvCameraEnabled&&this.isPhotoModeEnabled}isPhotoModeLiteSupported(){return this.isNvCameraEnabled&&this.isPhotoModeEnabled&&!this.igoConfig.GFNCefClient}listenNotification(he){return this.notifications$.asObservable().pipe((0,re.p)(Ee=>he.some(Pe=>!!Ee[Pe])))}captureNormalScreenshot(){this.shadowPlayService.captureScreenshot()}monitorHotKey(he,Ee,Pe=!1,Qe=!0){const Be=Pe?1:0,Mt=Ee,Vt=Ee.length;if(0===Vt)return!1;let Vn=!1,si=he.key;switch(si=h.SV[si]?h.SV[si]:si.charCodeAt(0),Qe){case!0:if(!this.invalidSequence[Be]&&!this.keyMatchCount[Be]&&Mt[Vt-1]===si)for(let Rn=0;Rn<Vt-1;Rn++)18===Mt[Rn]&&he.altKey&&this.keyMatchCount[Be]++,17===Mt[Rn]&&he.ctrlKey&&this.keyMatchCount[Be]++,16===Mt[Rn]&&he.shiftKey&&this.keyMatchCount[Be]++;if(Mt[this.keyMatchCount[Be]]===si){this.keyMatchCount[Be]++,this.keyMatchCount[Be]===Vt&&(Vn=!0,this.keyMatchCount[Be]=0,this.invalidSequence[Be]=!1);break}if(this.keyMatchCount[Be]){let Rn=!1;for(let _i=0;_i<this.keyMatchCount[Be];_i++)Rn=Mt[_i]===si;if(Rn)break}this.invalidSequence[Be]=!0,this.keyMatchCount[Be]=0;break;default:this.keyMatchCount[Be]=0}return Vn}get gfStyleToggleHotkey$(){return this.gameFilterStyleToggleHotkey.asObservable()}getNListenForGameFilterHotkey(){const he=this.getHotkeyStringForActiveSlot().pipe((0,G.M)(Pe=>{this.gameFilterStyleToggleHotkey.next(Pe)})),Ee=[g.Or.Share.Shareserver.HotkeyEnum.FreeStyleToggleStyle1,g.Or.Share.Shareserver.HotkeyEnum.FreeStyleToggleStyle2,g.Or.Share.Shareserver.HotkeyEnum.FreeStyleToggleStyle3].map(Pe=>this.hotkeyService.listen(Pe).pipe((0,fn.n)(Qe=>this.hotkeyService.getHotkeyString(Qe)),(0,G.M)(Qe=>{this.gameFilterStyleToggleHotkey.next(Qe)})));return(0,mn.h)(...Ee,he)}launchPhotoModeMenu(he=mt.HotKey){this.pageLaunchStart=Date.now(),this.logger.info("launchPhotoModeMenu"),this.isPhotoModeSupported()?(this.nvcameraOperationUnderProgress&&this.logger.info("Nvcamera operation underway, cancel menu launch"),this.currentUIMode=N.O5.PhotoMode,this.sourceTrigger=he,this.menuLaunchTime=Date.now(),this.tryLaunchMenu(g.Or.Common.Nvcamera.FeaturesSupported.sdk).subscribe(()=>{this.logger.info("launchPhotoModeMenu successfull, AI Upres supported",this.isAIUpresSupported)},Ee=>{this.errorHandlingForLaunchMenu(g.Or.Common.Nvcamera.FeaturesSupported.sdk,Ee.message),this.logger.error("launchPhotoModeMenu error: ",Ee.message)})):this.logger.info("Photo Mode not supported, should not be here")}launchGameFilterMenu(he=mt.HotKey){this.logger.info("launchGameFilterMenu"),this.pageLaunchStart=Date.now(),this.gameFilterMenu=!0,this.isGameFilterSupported()||this.featureSupportService.isPpeEnabled()?(this.nvcameraOperationUnderProgress&&this.logger.info("Nvcamera operation underway, cancel menu launch"),this.currentUIMode=N.O5.GameFilter,this.sourceTrigger=he,this.menuLaunchTime=Date.now(),this.tryLaunchMenu(g.Or.Common.Nvcamera.FeaturesSupported.mods).subscribe(()=>{this.logger.info("launchGameFilterMenu successful")},Ee=>{this.errorHandlingForLaunchMenu(g.Or.Common.Nvcamera.FeaturesSupported.mods,Ee.message),this.logger.error("launchGameFilterMenu error: ",Ee.message)})):this.logger.info("Game Filter not supported, should not be here")}postMenuClose(he,Ee=!1){this.currentUIMode=void 0,this.isModsAppliedCurrently=Ee,this.passFilterStateToTelemetry(),this.telemetryService.setModsActiveStatus(Ee),this.currentGameInfo&&(this.telemetryService.sendAnselFreestyleSession(he,Date.now()-this.menuLaunchTime,this.navigationInputDevice.KEYBOARD,this.navigationInputDevice.MOUSE,this.navigationInputDevice.GAMEPAD,this.currentGameInfo.cmsId.toString(),this.currentGameInfo.shortName,this.currentGameInfo.drsName,this.currentGameInfo.drsProfileName,this.panningUsed,this.panningWithKB,this.panningWithMouse),this.sendAnselFreestyleFiltersTelemetry(he))}closeMenu(he,Ee=!1){return(0,a.of)(he).pipe((0,r.ZZ)(Pe=>{if(Pe===N.O5.GameFilter)return(0,a.of)(void 0);let Qe;if(this.currentUIMode=void 0,this.isModsAppliedCurrently)Qe=this.currentGameSlots.modsSlotsInfo.lastSlotIdx,Ee=!0,this.logger.info("reapplying mods after photo mode session");else{if(this.isPpeFeaturesEnabled)return this.logger.info("reapplying ppefilter after photo mode session"),this.getLastSlotChangedUpdates().pipe((0,et.s)(1));Qe=0}return(0,a.of)(Qe)}),(0,r.ZZ)(Pe=>void 0!==Pe?this.applySlot(Pe,!0,N.O5.GameFilter):(0,a.of)(g.Or.Common.Nvcamera.AnselStatusEnum.ok)),(0,i.W)(Pe=>(this.logger.error("error while closing the menu: ",Pe),(0,a.of)(g.Or.Common.Nvcamera.AnselStatusEnum.ok))),(0,i.W)(Pe=>(this.logger.error("applySlot failed",Pe),(0,a.of)(Pe))),(0,r.ZZ)(()=>this.configureNvCameraSession(!1,!1,Ee,this.nvCameraDefaultTimeout)),(0,G.M)(()=>{this.logger.info("Menu closed successfully",he),this.postMenuClose(he,Ee)}),(0,i.W)(Pe=>{throw this.postMenuClose(he,Ee),Pe}))}getFilterList(){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.SetFilter,{enable:!1},nt.filtersList,this.nvCameraRelaxedTimeout)}setFilter(he,Ee,Pe,Qe){const Be=this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.SetFilter,{enable:he,stackId:Ee,filterId:Pe},nt.filterDetails,this.nvCameraRelaxedTimeout).pipe((0,dt.u)());return this.igoConfig.GFNCefClient&&this.customizeAndShowAlert(Qe,wt.Add),Be}customizeAndShowAlert(he,Ee){if(this.dialogRef)this.logger.error("Something messed up, should not be here, current dialog is already up");else{let Pe,Qe;if(Qe=this.getCurrentModSlotName(),Ee===wt.MoveUp||Ee===wt.MoveDown||Ee===wt.Add||Ee===wt.Delete)this.currentUIMode===N.O5.PhotoMode||this.currentUIMode===N.O5.PhotoModeLight?(Pe="nvcamera.UpdatingFilters",Qe=""):Qe?Pe="commonLabels.Updating":(Pe="nvcamera.UpdatingStyle",Qe=this.getCurrentSlotIndex());else{if(Ee!==wt.ApplyStyle)return;this.currentUIMode===N.O5.PhotoMode||this.currentUIMode===N.O5.PhotoModeLight?(Pe="nvcamera.ApplyingFilters",Qe=""):Qe?Pe="commonLabels.Applying":(Pe="nvcamera.ApplyingStyle",Qe=this.getCurrentSlotIndex())}this.showAlert(void 0,Pe,Qe,"confirmation.cancel",void 0,!0,!1,"indeterminate",he,{next:Mt=>{if(Mt===Ut.SF.Action1){this.logger.info("User cancelled the ongoing filter operation : ",Mt);this.notifications$.next({cancelPendingOperations:{}}),this.closeAlert()}},error:Mt=>{this.logger.error("failed in showAlert",Mt),this.closeAlert()},complete:()=>{this.closeAlert()}})}}showAlert(he,Ee,Pe,Qe,Be,Mt,Vt,Vn,si,Rn){this.dialogRef||(this.alertDialogData.title=he||(this.currentUIMode===N.O5.PhotoMode?"nvcamera.PhotoMode":"nvcamera.GameFilter"),this.alertDialogData.query=Ee,this.alertDialogData.queryParam={arg:Pe},this.alertDialogData.action1=Qe,this.alertDialogData.action2=Be,this.alertDialogData.spinner=Mt,this.alertDialogData.progressBar=Vt,this.alertDialogData.progressPercentage=Vt&&"determinate"===Vn,this.alertDialogData.progressMode=Vn,this.dialogHelperService.openAlertDialog(this.alertDialogData).pipe((0,G.M)(_i=>this.dialogRef=_i),(0,r.ZZ)(_i=>_i.afterClosed()),(0,nn.Q)(si)).subscribe(Rn))}closeAlert(){this.dialogRef&&(this.dialogRef.close(),this.dialogRef=void 0)}showSnack(he,Ee){let Pe,Qe;if(this.closeAlert(),Qe=this.getCurrentModSlotName(),he===Oi.UpdateStyleFail)Qe?Pe="snacks.UnableToUpdate":(Pe=this.igoConfig.GFNCefClient?"snacks.UnableToUpdateStyle":"snacks.UnableToUpdateProfile",Qe=this.getCurrentSlotIndex());else if(he===Oi.ApplyStyleFail)Qe?Pe="snacks.UnableToApply":(Pe=this.igoConfig.GFNCefClient?"snacks.UnableToApplyStyle":"snacks.UnableToApplyProfile",Qe=this.getCurrentSlotIndex());else if(he===Oi.RemoveFilterSuccess)Qe=Ee,Pe="1"===Qe?"snacks.RemovedFilter":"snacks.RemovedFilters";else{if(he!==Oi.CaptureFailed)return;Pe="nvcamera.UnableToPhotograph",Qe=void 0}this.translateService.get(Pe,{arg:Qe}).subscribe(Be=>{this.snackBarRef=this.dialogHelperService.openSnackBar(Be)})}setFilterAttribute(he,Ee,Pe,Qe,Be,Mt){return Qe===on.boolean&&(Mt.forEach((Vn,si)=>{Mt[si]=!!Vn}),Be="bool"),this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.SetFilterAttribute,{filter:he,controlId:Pe,controlType:Qe,stackId:Ee,dataType:Be,values:Mt},nt.setFilterAttribute,this.nvCameraDefaultTimeout).pipe((0,y.T)(Vn=>{if(Vn.setFilterAttribute.status)return Vn.setFilterAttribute.status;throw new Error(g.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}setFilterWithAttributes(he){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.SetFilter,{enable:!0,stackId:he.stackIdx,filterId:he.id},nt.filterDetails,this.nvCameraRelaxedTimeout).pipe((0,r.ZZ)(Ee=>(0,z.H)(Ee.filterDetails.controls)),(0,te.H)(Ee=>this.setFilterAttribute(he.id,he.stackIdx,Ee.id,on[Ee.controlType],Ee.dataType,[he.controls[Ee.id].currentValue])),(0,i.W)(Ee=>(this.logger.error("setFilterAttribute failed: ",Ee),(0,a.of)(Ee))),(0,yn.o)(1))}resetEntireStack(){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.ResetFilterStack,{},nt.resetEntireStack,this.nvCameraRelaxedTimeout).pipe((0,y.T)(he=>{if(he.resetEntireStack.status)return he.resetEntireStack.status;throw new Error(g.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}removeFilter(he){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.RemoveFilter,{stackId:he},nt.removeFilter,this.nvCameraRelaxedTimeout).pipe((0,y.T)(Ee=>{if(Ee.removeFilter.status)return Ee.removeFilter.status;throw new Error(g.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}resetFilterControls(he,Ee){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.ResetFilter,{resetAll:he,stackId:Ee},nt.resetFilter,this.nvCameraRelaxedTimeout).pipe((0,y.T)(Pe=>{if(Pe.resetFilter.status)return Pe.resetFilter.status;throw new Error(g.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}setGridOfThirds(he){return this.gridUsed=he,this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.SetCameraGridOfThirds,{enableGoT:he})}getFreestyleWhitelisted(he){return this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.GetFreestyleWhitelisted,{profileName:he})}getCaptureTypes(){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.GetAnselCaptureTypes,{},nt.captureTypesList,this.nvCameraRelaxedTimeout)}getCaptureResolutions(he){let Ee;return Ee=he===g.Or.Common.Nvcamera.CaptureTypes.regular||he===g.Or.Common.Nvcamera.CaptureTypes.stereoRegular?nt.screenResolution:he===g.Or.Common.Nvcamera.CaptureTypes.highRes?nt.highResResolutions:nt.panoramaResolutions,this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.GetCaptureResolutions,{captureType:he},Ee,this.nvCameraRelaxedTimeout)}getCameraRange(he,Ee){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.GetCameraRangeFovRoll,{getCameraRoll:he,getCameraFov:Ee},he?nt.rollRange:nt.fovRange,this.nvCameraRelaxedTimeout)}SetCameraControlFovRoll(he,Ee,Pe){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.SetCameraControlFovRoll,{setFovRollEnable:he,setRollValue:void 0!==Ee?Math.round(Ee):void 0,setFovValue:void 0!==Pe?Math.round(Pe):void 0},nt.setRollFovResponse,this.nvCameraRelaxedTimeout)}GetCameraControlFov(he){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.GetCameraControlFov,{setFovRollEnable:he},nt.fovValue,this.nvCameraRelaxedTimeout)}captureScreenshot(he,Ee){if(this.igoConfig.GFNCefClient)return this.shadowPlayService.captureCustomScreenshot("photoMode","placeholder.png",this.getActiveModsSlot(this.currentUIMode).id);this.telemetryIgoService.startAnselScreenshot();let Pe,Qe,Be=Object();return new ee.c(Mt=>{let Vn,si;he?(Vn=[nt.ngxAIUpResProgress,nt.ngxAIUpResCaptureDone],si=g.Ts.Common.Nvcamera.StartNgxAIUpRes,Pe=Ee?.upResScale.toString(),Qe=Ee?.width.toString()+"x"+Ee?.height.toString(),Be={upResScale:Ee?.upResScale,screenshotResolution:Ee?.width.toString()+"x"+Ee?.height.toString()}):(Vn=[nt.captureShotStarted,nt.captureShotFinished,nt.captureShotProcessingFinished,nt.captureShotProgress,nt.anselStatusReport],si=g.Ts.Common.Nvcamera.CaptureScreenshot);const Rn=this.listenNotification(Vn).pipe((0,Xn.w)(9e5)).subscribe(_i=>{Mt.next(_i),_i.captureShotProcessingFinished&&!he?(Rn.unsubscribe(),Mt.complete(),this.anselFreestyleCaptureTelemetry(jn.db.ScreenshotCaptured)):_i.ngxAIUpResCaptureDone&&(Rn.unsubscribe(),Mt.complete(),this.anselFreestyleCaptureTelemetry(jn.db.ScreenshotCaptured,Be))},_i=>{this.logger.info("listenerCaptureShotFinished timed out"),Mt.error(_i),this.anselFreestyleCaptureTelemetry(jn.db.ScreenshotFailed),Rn.unsubscribe()});this.bridgeService.executeCommand(si,Ee).subscribe(_i=>{this.logger.info(si,"command issued: ",_i)},_i=>{this.logger.info("nvcameraRequestWithWait",si," failed"),Mt.error(_i),Rn.unsubscribe()})})}cancelCurrentCapture(){return this.igoConfig.GFNCefClient?(0,a.of)(g.Or.Common.Nvcamera.AnselStatusEnum.ok):(this.anselFreestyleCaptureTelemetry(jn.db.ScreenshotCancelled),this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.CancelCapture,{},nt.captureShotCancel,this.nvCameraRelaxedTimeout).pipe((0,y.T)(he=>{if(he.captureShotCancel.status)return he.captureShotCancel.status;throw new Error(g.Or.Common.Nvcamera.AnselStatusEnum.failed)})))}getLastSlotChangedUpdates(){return this.lastSlotChanged$.asObservable()}triggerPpeFilterSlotChange(he){this.lastSlotChanged$.next(he)}applySlot(he,Ee=!1,Pe=N.O5.GameFilter,Qe=!1){let Be;return this.logger.info("applyslot index:",he),this.logger.info("applyslot feature:",Pe),Be=Pe===N.O5.GameFilter?this.currentGameSlots.modsSlotsInfo:this.currentGameSlots.anselSlotsInfo,(Ee=(Ee=Ee||0===he)||!this.isModsAppliedCurrently)||Be.lastSlotIdx!==he?(2!==Be.slots.length&&(Be.lastSlotIdx=he),this.resetEntireStack().pipe((0,r.ZZ)(()=>{if(0===he)return(0,a.of)(g.Or.Common.Nvcamera.AnselStatusEnum.ok);const Mt=Be.slots[he].filterStack.filters;return Qe&&this.modsAppliedOnGameLaunch$.next(he),this.applyFilters(Mt,wt.ApplyStyle)}),(0,r.ZZ)(()=>(Pe===N.O5.GameFilter&&(this.triggerPpeFilterSlotChange(he),this.previousSlotApplied>=0&&this.slotSwitchingTelemetry(this.previousSlotApplied,he),this.previousSlotApplied=he),(0,a.of)(g.Or.Common.Nvcamera.AnselStatusEnum.ok))))):(this.logger.info("slot is already applied, skipping"),(0,a.of)(g.Or.Common.Nvcamera.AnselStatusEnum.ok))}enableModsAndApplySlot(he,Ee=!1){return this.logger.info("enableModsAndApplySlot index = ",he),this.nvcameraOperationUnderProgress=!0,this.tryStartNvCameraSession(g.Or.Common.Nvcamera.FeaturesSupported.mods).pipe((0,r.ZZ)(()=>this.checkAndUpdateSavedFilterPaths()),(0,r.ZZ)(()=>this.applySlot(he,!0,N.O5.GameFilter,Ee)),(0,rn.c)(this.nvCameraStrictTimeout),(0,r.ZZ)(()=>(this.isModsAppliedCurrently=!0,this.passFilterStateToTelemetry(),this.telemetryService.setModsActiveStatus(!0),this.configureNvCameraSession(!1,!1,!0,this.nvCameraDefaultTimeout))),(0,ai.j)(()=>{this.nvcameraOperationUnderProgress=!1}))}applyFilters(he,Ee){if(he.length>0){const Pe=(0,z.H)(he).pipe((0,te.H)(Qe=>this.setFilterAndAttributes(Qe,Qe.stackIdx)),(0,nn.Q)(this.listenNotification([nt.cancelPendingOperations])),(0,i.W)(Qe=>(this.logger.error("setFilterAndAttributes failed: ",Qe),(0,a.of)(Qe))),(0,yn.o)(1),(0,dt.u)());return this.igoConfig.GFNCefClient&&this.customizeAndShowAlert(Pe,Ee),Pe}return(0,a.of)(g.Or.Common.Nvcamera.AnselStatusEnum.ok)}checkPreviewEnabled(){return!(this.currentUIMode!==N.O5.GameFilter||!this.previewSupported)||(this.logger.info("Freestyle previews not enabled."+this.currentUIMode),!1)}showPreviewImg(he,Ee,Pe,Qe){if(!this.checkPreviewEnabled())return;if(void 0===he){const Mt=this.getActiveModsSlot(this.currentUIMode);if(void 0===Mt)return void this.logger.info("Active mod slot cannot be undefined");he=Mt.id}const Be=this.slotsPreviewInfo[he];void 0===Qe&&(Qe=Be.previewPath),this.galleryService.getThumbnailForFile(Qe,Ee,Pe).subscribe(Mt=>{if(this.resetPreviewStatus(),void 0===Mt)return this.logger.info("Image thumbnail cannot be undefined."),void(Be.previewAvailable=!1);this.logger.info("Freestyle preview available for slot: "+Be.id),Be.previewImgData=Mt,Be.previewAvailable=!0},Mt=>{this.logger.info("Freestyle preview not available for slot: "+Be.id),Be.previewAvailable=!1,this.resetPreviewStatus()})}resetPreviewStatus(){this.previewInProgress&&(this.logger.info("Freestyle preview shot completed."),this.previewInProgress=!1)}setPreviewDetails(he,Ee,Pe){this.logger.info("Setting preview details"),this.checkPreviewEnabled()&&(this.slotsPreviewInfo||this.initializePreviewInfo(),this.shadowPlayService.getFreestylePreviewBasePath().subscribe(Qe=>{const Be=Qe.previewBasePath;this.logger.info("Freestyle preview base folder"+Be);for(const Mt of he)Mt.id&&(this.slotsPreviewInfo[Mt.id].previewPath=Be+"\\"+this.freestylePreviewPrefix+Mt.id+this.freestylePreviewExtension,this.logger.info("Preview path for Slot: "+Mt.id+" is "+this.slotsPreviewInfo[Mt.id].previewPath),this.previewPaths.push(this.slotsPreviewInfo[Mt.id].previewPath));this.sendPreviewPathToGalleryPlugin()},Qe=>{this.logger.info("Error occured in setting preview details :"+Qe)}))}sendPreviewPathToGalleryPlugin(){this.bridgeService.executeCommand(g.Ts.Common.Gallery.PreviewPathInfo,{paths:this.previewPaths}).subscribe(()=>{this.previewPaths=[]})}updatePreview(he,Ee,Pe){let Qe;if(!this.checkPreviewEnabled())return;this.currentGameSlots&&this.currentGameSlots.modsSlotsInfo&&(Qe=this.getActiveModsSlot(this.currentUIMode));const Be=Qe?Qe.id:Pe;0===Be||this.previewInProgress||(this.previewInProgress=!0,this.triggerPreview(this.freestylePreviewPrefix+Be+this.freestylePreviewExtension,Be).subscribe(Vt=>{this.showPreviewImg(Be,he,Ee,Vt.filePath)},Vt=>{this.logger.info("Error in capturing screenshot for preview"),this.previewInProgress=!1}))}triggerPreview(he,Ee){return this.shadowPlayService.captureCustomScreenshot("freestyle",he,Ee)}getAvailableFeatureSet(){return this.cachedFeaturesAvailable?(0,a.of)(this.cachedFeaturesAvailable):this.queryFeatureSet(this.isNvCameraReady?this.nvCameraDefaultTimeout:this.nvCameraStrictTimeout)}queryFeatureSet(he){return this.cachedFeaturesAvailable=void 0,this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.GetFeatureSet,{},nt.features,he).pipe((0,y.T)(Ee=>{const Pe=Ee?.features?.featureSet??[];return this.cachedFeaturesAvailable={[g.Or.Common.Nvcamera.FeaturesSupported.sdk]:Pe.includes(g.Or.Common.Nvcamera.FeaturesSupported.sdk),[g.Or.Common.Nvcamera.FeaturesSupported.mods]:Pe.includes(g.Or.Common.Nvcamera.FeaturesSupported.mods),[g.Or.Common.Nvcamera.FeaturesSupported.allowOffline]:Pe.includes(g.Or.Common.Nvcamera.FeaturesSupported.allowOffline)},this.cachedFeaturesAvailable}),(0,i.W)(Ee=>(this.cachedFeaturesAvailable={[g.Or.Common.Nvcamera.FeaturesSupported.sdk]:!1,[g.Or.Common.Nvcamera.FeaturesSupported.mods]:!1,[g.Or.Common.Nvcamera.FeaturesSupported.allowOffline]:!1},(0,a.of)(this.cachedFeaturesAvailable))))}closeGameFilterMenu(he){this.menuCloseInProgress$.next(!0),this.closeMenu(N.O5.GameFilter,he.isleaveFilters).subscribe(Ee=>{this.changeUIRunning(!1),this.igoConfig.GFNCefClient||this.setDynamicHotkey(!0,[c.g8.OpenFreestyle]),this.logger.info("GameFilter menu closed successfully: ",Ee)},Ee=>{this.changeUIRunning(!1),this.igoConfig.GFNCefClient||this.setDynamicHotkey(!0,[c.g8.OpenFreestyle]),this.logger.error("error while closing GameFilter menu: ",Ee)})}closePhotoModeMenu(he){this.menuCloseInProgress$.next(!0),(he.isAnselLite?(0,a.of)(null):this.setGridOfThirds(!1)).pipe((0,r.ZZ)(()=>he.isShowError||this.restartRequired?(this.changeUIRunning(!1),(0,a.of)(!0)):this.closeMenu(N.O5.PhotoMode,!1))).subscribe(Ee=>{this.changeUIRunning(!1),this.igoConfig.GFNCefClient||this.setDynamicHotkey(!0,[c.g8.OpenAnsel,c.g8.Screenshot]),this.logger.info("Photo mode menu closed successfully: ",Ee)},Ee=>{this.changeUIRunning(!1),this.igoConfig.GFNCefClient||this.setDynamicHotkey(!0,[c.g8.OpenAnsel,c.g8.Screenshot]),this.logger.error("error while closing Photo mode menu: ",Ee)})}configureNvCameraSession(he,Ee,Pe,Qe){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.SetAnselEnable,{sessionEnable:he,pauseOnEnable:Ee,leaveFiltersOn:Pe},nt.anselEnabledResponse,Qe).pipe((0,G.M)(()=>{he||this.saveFilterPresetsData()}),(0,y.T)(Be=>{if(Be.anselEnabledResponse.capture)return Be.anselEnabledResponse.capture;throw new Error(g.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}getCurrentGameChromaInfo(){return this.currentGameChromaInfo}getNvCameraSessionState(){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.GetAnselEnabledStatus,{},nt.anselEnabledState,this.nvCameraRelaxedTimeout).pipe((0,y.T)(he=>{if(void 0!==he.anselEnabledState.status)return he.anselEnabledState.status;throw new Error(g.Or.Common.Nvcamera.AnselStatusEnum.failed)}))}getProcessInfo(){return this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.GetProcessInfo,{},nt.procInfo,this.nvCameraRelaxedTimeout).pipe((0,y.T)(he=>he),(0,i.W)(he=>(this.logger.error("GetProcessInfo failed:",he),(0,a.of)(void 0))))}getNvCameraSettings(){return this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.GetNvCameraConfig)}checkFeatureSupport(){return this.isPhotoModeEnabled=this.igoConfig.PhotoModeEnabled,this.isGameFilterEnabled=this.igoConfig.GameFilterEnabled,this.isNvCameraEnabled="DISABLED"!==this.igoConfig.NvCameraFeaturesEnabled&&(this.isPhotoModeEnabled||this.isGameFilterEnabled),this.getGlobalToggle().pipe((0,r.ZZ)(he=>{if(this.igoConfig.GFNCefClient)return(0,a.of)(!0);const Ee=he&&this.isNvCameraEnabled;return this.configureNvcameraSettings(Ee,Ee)}),(0,r.ZZ)(he=>(this.logger.info("configureNvcameraSettings response: ",he),this.registerNotifications(),this.setHotkeyForSlotToggle(this.isGameFilterSupported()))),(0,r.ZZ)(()=>void 0!==this.isAIUpresSupported?(0,a.of)(this.isAIUpresSupported):this.getAiUpresSupported()),(0,y.T)(he=>(this.isAIUpresSupported=he,this.logger.info("AIUpres supported",this.isAIUpresSupported),!0)),(0,i.W)(he=>{throw this.logger.error("checkFeatureSupport failed: ",he),he}))}configureNvcameraSettings(he,Ee){return this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.SetNvCameraConfig,{ipcEnable:he,freestyleEnable:Ee}).pipe((0,y.T)(Pe=>(this.logger.info("ConfigureNvcameraSettings returned: ",Pe),!0)),(0,i.W)(Pe=>(this.logger.info("ConfigureNvcameraSettings returned: ",Pe),(0,a.of)(!1))))}changeUIRunning(he){this.uiRunning.next(he),he||this.menuCloseInProgress$.next(!1)}checkAndLaunchPhotoModeMenu(){this.pageLaunchMode=jn.gv.UsingHotkey,this.igoConfig.GFNCefClient&&this.currentUIMode!==N.O5.PhotoMode?this.isSystemOnline&&this.queryChromaDB().subscribe(he=>{he.photoModeSupport&&this.togglePhotoModeUI()}):this.togglePhotoModeUI()}waitForMenuToClose(he){this.menuCloseInProgress$.pipe((0,Xn.w)(this.nvCameraMenuOpenTimeout),function Ne(qn,Sr){if("function"!=typeof qn)throw new TypeError("predicate is not a function");return ni=>ni.lift(new zt(qn,ni,!1,Sr))}(Ee=>!1===Ee),(0,et.s)(1)).subscribe(Ee=>{this.logger.info("Previous menu closed "),he===N.O5.PhotoMode?this.launchPhotoModeMenu():he===N.O5.GameFilter&&this.launchGameFilterMenu()},Ee=>{this.logger.error("Previous session did not close in time: ",Ee)})}togglePhotoModeUI(){if(this.logger.info("UI running status PhotoModeUI",this.uiRunning.getValue(),this.menuCloseInProgress$.getValue()),this.uiRunning.getValue())if(this.menuCloseInProgress$.getValue())this.waitForMenuToClose(N.O5.PhotoMode);else{if(this.currentUIMode===N.O5.GameFilter){const he=this.uiRunning.subscribe(Ee=>{Ee||(this.launchPhotoModeMenu(),he.unsubscribe())})}this.oscDisplayService.closeOSC()}else this.launchPhotoModeMenu()}toggleGameFilterUI(){if(this.logger.info("UI running status GameFilterUI",this.uiRunning.getValue()),this.pageLaunchMode=jn.gv.UsingHotkey,this.uiRunning.getValue())if(this.menuCloseInProgress$.getValue())this.waitForMenuToClose(N.O5.GameFilter);else{if(this.currentUIMode===(N.O5.PhotoMode||N.O5.PhotoModeLight)){const he=this.uiRunning.subscribe(Ee=>{Ee||(this.launchGameFilterMenu(),he.unsubscribe())})}this.oscDisplayService.closeOSC()}else this.launchGameFilterMenu()}registerHotkey(he,Ee){this.hotkeyService.listen(he).pipe((0,Ze.c)(this.throttleDuration)).subscribe(()=>{Ee()})}registerNotifications(){this.isNvCameraEnabled&&(this.isPhotoModeSupported()&&this.registerHotkey(c.g8.OpenAnsel,this.checkAndLaunchPhotoModeMenu.bind(this)),this.isGameFilterSupported()&&(this.registerHotkey(c.g8.FreeStyleToggleStyle1,this.applyOrToggleStyleAt.bind(this,1)),this.registerHotkey(c.g8.FreeStyleToggleStyle2,this.applyOrToggleStyleAt.bind(this,2)),this.registerHotkey(c.g8.FreeStyleToggleStyle3,this.applyOrToggleStyleAt.bind(this,3)),this.igoConfig.GFNCefClient||this.registerHotkey(c.g8.OpenFreestyle,this.toggleGameFilterUI.bind(this))),this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.NvCameraResponseNotification).subscribe(he=>{this.handleNotifications(he)}),this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.NvCameraFilterResponseNotification).subscribe(he=>{this.handleNotifications(he)}),this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.NgxAIUpResNotifications).subscribe(he=>{this.handleNotifications(he)}),this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.NvCameraUIControlNotificationData).subscribe(he=>{this.handleNotifications(he)}),this.bridgeService.executeCommand(g.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,re.p)(he=>!!he.gameExited||!!he.disableHDR)).subscribe(he=>{he.gameExited?this.onGameExit(he.gameExited):this.anselSnapWhenHDRScreenshotError()}),this.shadowPlayService.registerAppStartedEvent().subscribe(he=>{this.isAppStartedReceived=!0,this.logger.info("App Start Data: ",he),he&&(this.currentGFEGameInfo={procId:he.appStarted.pid,cmsId:he.appStarted.cmsId,drsName:he.appStarted.DRSAppName,drsProfileName:he.appStarted.profileName,shortName:he.appStarted.shortName,drsWhitelist:!1}),this.gameDetails.cmsId=this.currentGameInfo.cmsId.toString(),this.gameDetails.drsName=this.currentGameInfo.drsName,this.gameDetails.drsProfileName=this.currentGameInfo.drsProfileName}),this.listenNotification([nt.nvCameraReady]).pipe((0,rn.c)(this.nvCameraDefaultTimeout)).subscribe(he=>{this.onNvCameraReady(he)}),this.igoConfig.GFNCefClient||this.shadowPlayService.getNvCameraToggleStateUpdates().pipe((0,r.ZZ)(he=>this.configureNvcameraSettings(he&&this.isNvCameraEnabled))).subscribe(),this.getCmsData().subscribe())}anselSnapWhenHDRScreenshotError(){this.isNvCameraReady?(this.uiRunning.getValue()?(0,a.of)(!0):this.tryStartNvCameraSession(g.Or.Common.Nvcamera.FeaturesSupported.mods)).pipe((0,te.H)(Ee=>Ee?this.captureScreenshot(!1,void 0):(0,a.of)(Ee)),(0,i.W)(Ee=>(this.logger.info("NvCamera session declined for anselSnapWhenHDRScreenshotError",Ee),this.oscNotificationService.show(ue.Ed.HDRErrorScreenshot),(0,Bn.$)(Ee)))).subscribe():this.oscNotificationService.show(ue.Ed.HDRErrorScreenshot)}applyOrToggleStyleAt(he){if(this.logger.info("Hotkey toggle style no ",he),this.nvcameraOperationUnderProgress)return void this.logger.info("Filter operations under progress, ignoring hotkey");if(this.uiRunning.getValue())return void this.logger.info("UI is up, ignoring hotkey");let Ee,Pe=!1;this.isModsAppliedCurrently&&this.currentGameSlots.modsSlotsInfo.lastSlotIdx===he?(Ee=this.enableModsAndApplySlot(0),this.previousStyleApplied=""):(Ee=this.checkSlotsForCurrentGame().pipe((0,r.ZZ)(Qe=>this.enableModsAndApplySlot(he))),Pe=!0),Ee.subscribe(Qe=>{this.logger.info("Status of applyOrToggleStyleAt = ",Qe),Pe&&this.sendAnselFreestyleFiltersTelemetry(N.O5.GameFilter)},Qe=>{this.logger.info("Error in applyOrToggleStyleAt. Error = ",Qe),Pe&&(this.nvCameraTimedOut=!0,this.sendAnselFreestyleErrorTelemetry(N.T7.anselFreeStyle,N.O5.GameFilter),this.anselFreestyleErrorTelemetry(N.T7.anselFreeStyle,N.O5.GameFilter,"Nvcamera timed out"))})}getHotkeyNum(he){return this.hotkeyService.getHotkeyNum(he)}getHotkeyStringForSlot(he){switch(he){case 1:return this.hotkeyService.getHotkeyString(c.g8.FreeStyleToggleStyle1);case 2:return this.hotkeyService.getHotkeyString(c.g8.FreeStyleToggleStyle2);case 3:return this.hotkeyService.getHotkeyString(c.g8.FreeStyleToggleStyle3);default:return(0,a.of)(void 0)}}handleNotifications(he){this.logger.info("NvCamera Notification: ",he),this.notifications$.next(he)}saveFilterPresetsData(he=null){(he=he||this.filterPresetsData)&&this.dBStore.setItem(this.filterPresetsStorageKeyName,JSON.stringify(he)).subscribe(()=>{this.logger.info("Filter presets data storage updated")},Ee=>{this.logger.error("Error while updating filter presets data storage: ",Ee)})}loadFilterPresetsData(){return this.filterPresetsData?(0,a.of)(!0):(this.filterPresetsData=new Ct.Jm,this.dBStore.getItem(this.filterPresetsStorageKeyName).pipe((0,y.T)(he=>(he?this.filterPresetsData.deserialize(JSON.parse(he))?this.logger.info("Filter presets data loaded from the storage"):(this.logger.error("Failed to parse stored filter presets data, stored data: ",JSON.stringify(he)),this.filterPresetsData=new Ct.Jm):this.logger.info("Filter presets data not found in the storage"),!0)),(0,i.W)(he=>(this.logger.error("Could not load filter presets data from the storage: ",JSON.stringify(he)),(0,a.of)(!0)))))}processSlotsForPathUpdates(he,Ee){let Pe,Qe;return he.some(Be=>Be.filterStack.filters.length>0&&(Be.filterStack.filters.some(Mt=>{const Vt=Mt.id;if(!Pe){if(!Vt.includes(this.driverStorePathKey))return!1;if(Qe=Vt.substring(0,Vt.lastIndexOf("\\")+1),Ee===Qe)return Pe=!1,!0;Pe=!0,this.logger.info("Driverstore path has changed, updating saved filter presets")}const Vn=Vt.substring(Vt.lastIndexOf("\\")+1);Mt.id=Ee+Vn}),!Pe)),Pe}checkAndUpdateSavedFilterPaths(){return this.igoConfig.GFNCefClient||!this.currentGameSlots?(0,a.of)(!1):this.getFilterList().pipe((0,y.T)(he=>{let Pe;he.filtersList.filtersListArray.some(Mt=>{const Vt=Mt.id;return!!Vt.includes(this.driverStorePathKey)&&(Pe=Vt.substring(0,Vt.lastIndexOf("\\")+1),!0)});const Qe=this.processSlotsForPathUpdates(this.currentGameSlots.modsSlotsInfo.slots,Pe),Be=this.processSlotsForPathUpdates(this.currentGameSlots.anselSlotsInfo.slots,Pe);return(Qe||Be)&&this.saveFilterPresetsData(),!0}),(0,i.W)(he=>(this.logger.error("Error in checkAndUpdateSavedFilterPaths():",he),(0,a.of)(!1))))}loadSlotsForCurrentGame(){return this.loadFilterPresetsData().pipe((0,G.M)(()=>{let he="";he=this.isDevServer?"devserver":this.igoConfig.GFNCefClient?this.currentGameInfo.cmsId.toString():this.currentProcessInfo.procPath,this.filterPresetsData.filterPresets[he]?this.logger.info("Saved filter presets loaded for the game"):(this.logger.info("No saved filter presets found for the game"),this.filterPresetsData.filterPresets[he]=new Ct.n,this.igoConfig.GFNCefClient||(this.filterPresetsData.filterPresets[he].modsSlotsInfo.lastSlotIdx=1)),this.currentGameSlots=this.filterPresetsData.filterPresets[he]}))}getHotkeyStringForActiveSlot(){return this.isNvCameraReady?this.checkSlotsForCurrentGame().pipe((0,r.ZZ)(Ee=>this.currentGameSlots.modsSlotsInfo.lastSlotIdx>0?this.getHotkeyStringForSlot(this.currentGameSlots.modsSlotsInfo.lastSlotIdx):(0,a.of)(void 0))):(0,a.of)("None")}checkSlotsForCurrentGame(){return this.currentGameSlots?(0,a.of)(!0):this.getProcessInfo().pipe((0,re.p)(he=>!!he),(0,r.ZZ)(he=>(this.currentProcessInfo=he[nt.procInfo],this.loadSlotsForCurrentGame())))}initializePreviewInfo(){if(!this.slotsPreviewInfo){this.slotsPreviewInfo=[];for(let he=0;he<=Ct.Zi;he++)this.slotsPreviewInfo.push(new Ct.Bv(he))}}deletePreviews(){if(this.slotsPreviewInfo)for(let he=0;he<=Ct.Zi;he++)this.slotsPreviewInfo[he].previewPath&&this.bridgeService.executeCommand(g.Ts.Common.Gallery.DeletePreview,{previewFilepath:this.slotsPreviewInfo[he].previewPath}).subscribe()}tryLaunchMenu(he){this.nvcameraOperationUnderProgress=!0;let Ee=!1;return this.tryStartNvCameraSession(he).pipe((0,r.ZZ)(Pe=>(Ee=Pe,this.checkSlotsForCurrentGame())),(0,r.ZZ)(()=>this.checkAndUpdateSavedFilterPaths()),(0,y.T)(()=>(this.logger.info("Launching UI Menu"),this.restartRequired=!1,he===g.Or.Common.Nvcamera.FeaturesSupported.mods?Ee?this.oscDisplayService.openOSC("sidebar/nvcamera/game-filters",{showError:!1,errorType:At.SUCCESS,nvCameraSessionExists:!0}):(this.currentUIMode=N.O5.GameFilter,this.oscDisplayService.openOSC("sidebar/nvcamera/game-filters",{showError:!0,errorType:At.ERROR_SUPPORTED_GAME,nvCameraSessionExists:!1})):he===g.Or.Common.Nvcamera.FeaturesSupported.sdk&&this.oscDisplayService.openOSC("sidebar/nvcamera/photo-mode",{UIMode:this.currentUIMode,isAIUpresEnabled:this.isAIUpresSupported,showError:!1,errorType:At.SUCCESS}),!0)),(0,ai.j)(()=>{this.nvcameraOperationUnderProgress=!1}))}setNvcameraCmsInfo(){this.currentFreestyleGameInfo&&this.currentFreestyleGameInfo.cmsId&&this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.SetCMSInfo,{cmsId:this.currentFreestyleGameInfo.cmsId.toString(),shortName:this.currentFreestyleGameInfo.shortName}).subscribe()}getGPUInfo(){return this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetGPUInfo)}getGenericInfo(){return this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetGenericInfo)}getSystemInfo(){return this.systemInfo?(0,a.of)(this.systemInfo):(this.systemInfo={cpuName:"",gpuName:"",systemType:"",isOptimus:!1,osVersion:"",ddVersion:""},this.igoConfig.GFNCefClient?(0,a.of)(this.systemInfo):(0,En.p)([this.systemInfoService.getSystemInfo([h.Lu.CPUName,h.Lu.GPU,h.Lu.OSVersion]),this.getGPUInfo(),this.getGenericInfo()]).pipe((0,y.T)(([he,Ee,Pe])=>{this.systemInfo.cpuName=he.CPUName;const Qe=he.GPU?.GPUData?.length??0;let Be=0;for(;Be<Qe-1;Be++)this.systemInfo.gpuName+=he.GPU?.GPUData[Be]?.LongGPUName+", ";return this.systemInfo.gpuName+=he.GPU?.GPUData[Be]?.LongGPUName??"",this.systemInfo.osVersion=he.OSVersion,this.systemInfo.isOptimus="1"===Ee.IsOptimus,this.systemInfo.systemType=Pe.MoboType,this.systemInfo.ddVersion=Pe.DriverVersion,this.systemInfo}),(0,i.W)(he=>(this.logger.error("Error while fetching system info ",he),(0,a.of)(this.systemInfo)))))}getGlobalToggle(){return this.shadowPlayService.getNvCameraToggleState()}setGlobalToggle(he){return this.logger.info("setGlobalToggle:",he),this.globalToggleChangedFromIGO$.next(he),(0,En.p)([this.shadowPlayService.setNvCameraToggleState(he),this.configureNvcameraSettings(he,he)]).pipe((0,y.T)(()=>(this.logger.info("setGlobalToggle successfull"),!0)))}listenToNvCameraGlobalToggleChanges(){return this.globalToggleChangedFromIGO$.asObservable()}getIsGameRestartRequestedfromCTA(){return this.isGameRestartRequestedfromCTA}setIsGameRestartRequestedfromCTA(he){this.isGameRestartRequestedfromCTA=he}isFreestyleSupportedGame(){return this.currentGameInfo?.drsWhitelist}checkIfCurrentGameIsAllowlisted(){return this.igoConfig.GFNCefClient?this.chromaDBResult?.gameFilterSupport:this.currentGameChromaInfo?.nvidiaTech?.FREESTYLE}checkFeatureLaunch(he){let Ee=At.SUCCESS;switch(this.isSystemOnline=this.networkStatusService.isOnline,this.currentGameInfo&&(this.igoConfig.GFNCefClient||this.currentFreestyleGameInfo?.procId===this.currentGameInfo.procId)&&(this.currentFreestyleGameInfo=this.currentGameInfo),he){case N.O5.PhotoModeLight:case N.O5.GameFilter:if(this.isSystemOnline)return this.queryChromaDB().pipe((0,y.T)(()=>(this.currentFreestyleGameInfo&&void 0!==this.currentFreestyleGameInfo.cmsId&&this.checkIfCurrentGameIsAllowlisted()?(this.logger.info("Game whitelisted in ChromaDB"),Ee=At.SUCCESS):(this.logger.info("Game blacklisted in ChromaDB: ",this.currentFreestyleGameInfo),Ee=At.ERROR_SUPPORTED_GAME),Ee)),(0,i.W)(Pe=>(Ee=this.igoConfig.GFNCefClient?At.ERROR_SYSTEM_OFFLINE:this.cachedFeaturesAvailable?.[g.Or.Common.Nvcamera.FeaturesSupported.allowOffline]?At.SUCCESS:At.ERROR_SUPPORTED_GAME,(0,a.of)(Ee))));Ee=this.igoConfig.GFNCefClient?At.ERROR_SYSTEM_OFFLINE:this.cachedFeaturesAvailable?.[g.Or.Common.Nvcamera.FeaturesSupported.allowOffline]?At.SUCCESS:At.ERROR_SUPPORTED_GAME;break;case N.O5.PhotoMode:break;default:this.logger.error("Unknown feature: "+he)}return(0,a.of)(Ee)}nvcameraRequestWithWait(he,Ee,Pe,Qe){return new ee.c(Be=>{this.logger.info("command: ",he.method),this.logger.info("params: ",Ee);const Mt=this.listenNotification([Pe]).pipe((0,Xn.w)(Qe)).subscribe(Vt=>{Be.next(Vt),Mt.unsubscribe(),Be.complete()},Vt=>{this.logger.error("nvcameraRequestWithWait ",he.method," timed out"),Be.error(Vt)});this.bridgeService.executeCommand(he,Ee).subscribe(Vt=>{this.logger.info(he.method,"command issued: ",Vt)},Vt=>{this.logger.error("nvcameraRequestWithWait",he.method," failed"),Be.error(Vt),Mt.unsubscribe()})})}enableNvCameraSession(){return this.configureNvCameraSession(!0,this.currentUIMode===N.O5.PhotoMode,!1,this.nvCameraDefaultTimeout).pipe((0,y.T)(Ee=>{const Pe=[g.Or.Common.Nvcamera.AnselStatusEnum.ok,g.Or.Common.Nvcamera.AnselStatusEnum.alreadyEnabled];if(Pe.push(this.currentUIMode===N.O5.PhotoMode?g.Or.Common.Nvcamera.AnselStatusEnum.okAnsel:g.Or.Common.Nvcamera.AnselStatusEnum.okModsOnly),Pe.includes(Ee))return!0;throw new Error(At.ERROR_SESSION_NOT_ALLOWED)}))}tryStartNvCameraSession(he){return this.igoConfig.GFNCefClient?this.enableNvCameraSession():this.getAvailableFeatureSet().pipe((0,y.T)(Ee=>{if(Ee?.[he])return he===g.Or.Common.Nvcamera.FeaturesSupported.sdk?N.O5.PhotoMode:N.O5.GameFilter;if(he===g.Or.Common.Nvcamera.FeaturesSupported.sdk&&Ee?.[g.Or.Common.Nvcamera.FeaturesSupported.mods]&&this.isPhotoModeLiteSupported())return this.currentUIMode=N.O5.PhotoModeLight,N.O5.PhotoModeLight;throw new Error(At.ERROR_SUPPORTED_GAME)}),(0,r.ZZ)(Ee=>this.checkFeatureLaunch(Ee)),(0,G.M)(Ee=>{if(Ee!==At.SUCCESS)throw new Error(Ee)}),(0,r.ZZ)(()=>this.enableNvCameraSession()))}gameStartedNotify(){return this.nvcameraGameStarted$.asObservable()}modsSlotappliedComplete(){return this.modsAppliedOnGameLaunch$.asObservable()}ensureChromaDataIsAvailableForGame(){return this.logger.info("ensureChromaDataIsAvailableForGame"),this.lcarsService?.getCurrentAppChromaInfo().pipe((0,re.p)(he=>!!he&&void 0!==he.pid&&he.pid===this.currentFreestyleGameInfo.procId&&!this.isPreviousSessionRunning()),(0,y.T)(he=>(this.currentGameChromaInfo=he,this.currentGameChromaInfo?.nvidiaTech?.FREESTYLE||(this.nvcameraGameStarted$.next(!0),this.modsAppliedOnGameLaunch$.next(0)),this.logger.info("Chroma info fetched successfully for the current nvcamera game ",he),!0)),(0,et.s)(1),(0,Xn.w)(this.lcarsService.lcarsResponseTimeout))}onNvCameraReady(he){this.statusOfCaptureEnhance&&(he.nvCameraReady.deviceCreationCounter>0&&(this.logger.info("nvcamera ready notification received"),this.isNvCameraReady=!0,this.gameFilterDisable.next(!1),this.photoModeDisable.next(!1),this.queryFeatureSet(this.nvCameraRelaxedTimeout).subscribe()),this.getProcessInfo().pipe((0,re.p)(Ee=>!!Ee),(0,r.ZZ)(Ee=>(this.currentProcessInfo=Ee[nt.procInfo],this.currentFreestyleGameInfo={procId:Ee[nt.procInfo].procId,cmsId:void 0,drsName:void 0,drsProfileName:void 0,shortName:void 0,drsWhitelist:!1},this.igoConfig.GFNCefClient||!this.networkStatusService.isOnline?(0,a.of)(!1):this.ensureChromaDataIsAvailableForGame())),(0,re.p)(Ee=>Ee),(0,r.ZZ)(()=>this.loadSlotsForCurrentGame()),(0,r.ZZ)(()=>{const Ee=this.currentGameSlots.modsSlotsInfo.lastSlotIdx;return Ee>0?(this.nvcameraGameStarted$.next(!0),this.enableModsAndApplySlot(Ee,!0).pipe((0,y.T)(Pe=>(this.logger.info("slot",Ee,"filters applied automatically"),this.sendAnselFreestyleFiltersTelemetry(N.O5.GameFilter,!0),Pe)))):(0,a.of)(g.Or.Common.Nvcamera.AnselStatusEnum.ok)}),(0,r.ZZ)(Ee=>this.getHotkeyStringForActiveSlot().pipe((0,y.T)(Pe=>(this.gameFilterStyleToggleHotkey.next(Pe),Ee))))).subscribe(Cn.l,Ee=>{this.logger.error("failed to apply slot automatically: ",Ee.message)}))}resetState(he=null){if(this.logger.info("resetState"),this.igoConfig.GFNCefClient)this.preResetSessionData.currentGameInfo=this.currentGameInfo,this.preResetSessionData.uiMode=this.currentUIMode,this.preResetSessionData.modsApplied=this.isModsAppliedCurrently;else{const Ee=he?.exitAppPID;if(this.logger.info("currentProcessInfo:",this.currentProcessInfo),this.currentProcessInfo&&this.currentProcessInfo.procId!==Ee&&-1!==Ee)return void this.logger.info("gameExit ignored for Pid:",Ee);this.currentProcessInfo&&this.currentProcessInfo.procId===Ee&&(this.currentFreestyleGameInfo=void 0,this.currentGameChromaInfo=void 0)}this.cachedFeaturesAvailable=void 0,this.currentGameSlots=void 0,this.currentUIMode=void 0,this.isModsAppliedCurrently=!1,this.passFilterStateToTelemetry(),this.gameFilterDisable.next(!0),this.photoModeDisable.next(!0),this.isNvCameraReady=!1,this.currentProcessInfo=void 0,this.telemetryService.setModsActiveStatus(!1),this.saveFilterPresetsData(),this.restartRequired=!1,this.currentGFEGameInfo=void 0,this.currentGameStreamInfo=void 0,this.previewInProgress=!1,this.deletePreviews(),this.slotsPreviewInfo=void 0,this.chromaDBResult=void 0,this.isAppStartedReceived=!1,this.isGameRestartRequestedfromCTA=!1,this.isAIDVCEnabled=!1,this.isAIHDREnabled=!1,this.isNIS2Enabled=!1}onGameExit(he){if(!this.igoConfig.GFNCefClient)return this.resetState(he)}sanitize(he){return Math.floor(he*Ct.US)/Ct.US}fillSingleSliderControl(he,Ee,Pe,Qe){Qe.id=Ee.id,Qe.dataType=Ee.dataType,Qe.dimension=Pe,Qe.measureUnit=Ee.measureUnit||"",Qe.minValue=Math.round(Ee.minValue[Pe]*Ct.Af)/Ct.Af,Qe.maxValue=Math.round(Ee.maxValue[Pe]*Ct.Af)/Ct.Af,Qe.stepSize=Math.round(Ee.stepSize[Pe]*Ct.Af)/Ct.Af,Qe.currentValue=Math.round(Ee.currentValue[Pe]*Ct.Af)/Ct.Af,Qe.uiMinValue=Ee.uiMinValueV1?Ee.uiMinValueV1[Pe]:Ee.uiMinValue,Qe.uiMaxValue=Ee.uiMaxValueV1?Ee.uiMaxValueV1[Pe]:Ee.uiMaxValue,Qe.uiStepSize=this.sanitize(Ee.uiStepSize[Pe]),0===Qe.uiStepSize&&(Qe.uiStepSize=Math.abs(Qe.uiMaxValue-Qe.uiMinValue)/100),Qe.uiMinValue!==Qe.uiMaxValue?(Qe.currentUIValue=Math.round(this.normalizeSliderValue(Ee.currentValue[Pe]*Ct.Af/Ct.Af,Qe.minValue,Qe.maxValue,Qe.uiMinValue,Qe.uiMaxValue)*Ct.US)/Ct.US,Qe.defaultValue=Math.round(this.normalizeSliderValue(Ee.defaultValue[Pe]*Ct.Af/Ct.Af,Qe.minValue,Qe.maxValue,Qe.uiMinValue,Qe.uiMaxValue)*Ct.US)/Ct.US):(Qe.currentUIValue=Qe.uiMaxValue,Qe.defaultValue=Qe.uiMaxValue),"int"===Ee.dataType&&(Qe.stepSize=Qe.uiStepSize=1)}fillSingleEditControl(he,Ee,Pe,Qe){Qe.id=Ee.id,Qe.dataType=Ee.dataType,Qe.dimension=Pe,Qe.currentValue=Ee.currentValue[Pe],Qe.minValue=Ee.minValue[Pe],Qe.maxValue=Ee.maxValue[Pe]}createFilterControls(he,Ee){he&&he.filterDetails&&(Ee.controls=[],he.filterDetails.controls?.forEach((Pe,Qe,Be)=>{const Mt={};Mt.controlType=Pe.controlType,Mt.displayName=Pe.displayName,Mt.currentValueArray=[];const Vt=(Pe.defaultValue||Pe.currentValue||[Pe.defaultId]).length;if("slider"===Pe.controlType){if(1===Vt)this.fillSingleSliderControl(Ee,Pe,0,Mt),Mt.currentValueArray[0]=Mt.currentValue;else if(Vt>1){Mt.controlType="multislider",Mt.subControls=[],Mt.id=Pe.id,Mt.dataType=Pe.dataType;for(let Vn=0;Vn<Vt;Vn++){const si={};si.displayName=Pe.uiDisplayNameV1?Pe.uiDisplayNameV1[Vn]:"",this.fillSingleSliderControl(Ee,Pe,Vn,si),Mt.currentValueArray[Vn]=si.currentValue,Mt.subControls.push(si)}}}else if("boolean"===Pe.controlType)Mt.id=Pe.id,Mt.controlType=Pe.controlType,Mt.dataType="bool",Mt.dimension=0,Mt.currentValue=!!Pe.currentValue[0],Mt.currentValueArray[0]=Mt.currentValue;else if("pulldown"===Pe.controlType||"radiobutton"===Pe.controlType)Mt.id=Pe.id,Mt.dimension=0,Mt.dataType="int",Mt.pullDownOrRadioButtonItems=Pe.uiDisplayNameV1,Mt.currentValueArray[0]=Pe.currentId;else{if("edit"!==Pe.controlType)return void this.logger.error("unknown filter control type:",Pe.controlType);if(1===Vt)this.fillSingleEditControl(Ee,Pe,0,Mt),Mt.currentValueArray[0]=Mt.currentValue;else if(Vt>1){Mt.controlType="multiedit",Mt.id=Pe.id,Mt.dataType=Pe.dataType,Mt.subControls=[];for(let Vn=0;Vn<Vt;Vn++){const si={};si.displayName=Pe.uiDisplayNameV1?Pe.uiDisplayNameV1[Vn]:"",this.fillSingleEditControl(Ee,Pe,Vn,si),Mt.currentValueArray[Vn]=si.currentValue,Mt.subControls.push(si)}}}Ee.controls.push(Mt)}))}togglePanning(){this.enableAnselRedirection(!this.isRedirectionEnable)}gfnMouseEvent(he,Ee,Pe,Qe){return this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.MouseEventToNvcamera,{eventName:he,button:Ee,coordinateX:Pe,coordinateY:Qe}).subscribe()}gfnKBEvent(he,Ee,Pe,Qe){return this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.KeyboardEventToNvcamera,{eventName:he,keyCode:Ee,code:Pe,shiftKey:Qe}).subscribe()}enableAnselRedirection(he,Ee,Pe){if(Ee=g.Or.Common.Nvcamera.Hid.mouse,this.isRedirectionEnable===he)return;let Qe;this.isRedirectionEnable=he,this.isInDesktopMode().pipe((0,r.ZZ)(Be=>{if(Be){if(this.currentUIMode!==N.O5.PhotoMode)return(0,a.of)(!1);Qe=g.Or.Common.Nvcamera.Mode.windowedSDK}else if(this.currentUIMode===N.O5.PhotoMode)Qe=g.Or.Common.Nvcamera.Mode.fullscreenSDK;else{if(this.currentUIMode!==N.O5.PhotoModeLight)return(0,a.of)(!1);Qe=g.Or.Common.Nvcamera.Mode.fullscreenNoSDK}return this.igoConfig.GFNCefClient?(0,a.of)(!1):this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.SetAnselRedirection,{enable:he,mode:Qe,hid:Ee})})).subscribe(Be=>{this.logger.info("EnableAnselRedirection status: ",Be)},Be=>{this.logger.error("EnableAnselRedirection error: ",Be)})}getRedirectionState(){return this.isRedirectionEnable}isInDesktopMode(){return this.oscDisplayService.getCurrentDesktopMode().pipe((0,X.$)(),(0,y.T)(he=>(this.logger.info("Current display mode is ",he),"desktop"===he)))}setLanguageAndGetFilterList(){return this.localeService.localeChanged.pipe((0,X.$)(),(0,r.ZZ)(he=>(this.logger.info("locale changed to:",he),this.bridgeService.executeCommand(g.Ts.Common.Nvcamera.SetLanguage,{langId:he}))),(0,r.ZZ)(()=>this.getFilterList()))}getCurrentUIMode(){return this.currentUIMode}setCurrentModSlotName(he){this.currentGameSlots.modsSlotsInfo.slots[this.currentGameSlots.modsSlotsInfo.lastSlotIdx].slotName=he}getCurrentModSlotName(){if(this.isAnyGameFilterSlotSelected()){const he=this.currentGameSlots.modsSlotsInfo.slots[this.currentGameSlots.modsSlotsInfo.lastSlotIdx].slotName;return he&&""!==he.trim()?he:void 0}}getCurrentSlotIndex(){return this.isAnyGameFilterSlotSelected()?this.currentGameSlots.modsSlotsInfo.lastSlotIdx.toString():""}getActiveModsSlot(he){let Ee;return Ee=he===N.O5.GameFilter?this.currentGameSlots.modsSlotsInfo:this.currentGameSlots.anselSlotsInfo,Ee.slots[Ee.lastSlotIdx]}isAnyGameFilterSlotSelected(){return!!this.statusOfCaptureEnhance&&this.currentGameSlots&&this.currentGameSlots.modsSlotsInfo.lastSlotIdx>0}isAnyGameFilterSlotSelectedNvApp(){return this.currentGameSlots&&this.currentGameSlots.modsSlotsInfo.lastSlotIdx>0}isPreviousSessionRunning(){return this.currentFreestyleGameInfo&&this.currentFreestyleGameInfo.cmsId}getCmsData(){let he=!1;return this.shadowPlayService.registerAppStartedEvent().pipe((0,r.ZZ)(Ee=>(this.logger.info("app notification:",Ee),he=!0,this.isAppStartedReceived=!0,this.currentGameInfo&&this.currentGameInfo.drsWhitelist?(0,a.of)(void 0):this.isPreviousSessionRunning()?(this.logger.info("not updating current app data"),(0,a.of)(void 0)):(this.logger.info("updating current app data"),Ee&&(this.currentGFEGameInfo={procId:Ee.appStarted.pid,cmsId:Ee.appStarted.cmsId,chromaAppId:Ee.appStarted.ChromaAppId,drsName:Ee.appStarted.DRSAppName,drsProfileName:Ee.appStarted.profileName,shortName:Ee.appStarted.shortName,drsWhitelist:!1}),this.igoConfig.GFNCefClient?(0,a.of)({}):this.getFreestyleWhitelisted(Ee.appStarted.DRSAppName)))),(0,G.M)(Ee=>{this.logger.info("getFreestyleWhitelisted",Ee),this.currentGameInfo.drsWhitelist=!!Ee&&Ee.freestyleWhitelisted,he&&!this.currentGameInfo.drsWhitelist&&(this.nvcameraGameStarted$.next(!0),this.modsAppliedOnGameLaunch$.next(0))}),(0,i.W)(Ee=>(he=!1,this.logger.error("getFreestyleWhitelisted failed"+JSON.stringify(Ee)),(0,a.of)())))}setAnselFreestyleState(){this.gameFilterDisable.value&&this.gameFilterDisable.next(!1),this.photoModeDisable.value&&this.photoModeDisable.next(!1)}checkNvCameraReady(){this.queryFeatureSet(this.nvCameraRelaxedTimeout).pipe((0,G.M)(he=>{he&&(he[g.Or.Common.Nvcamera.FeaturesSupported.mods]||he[g.Or.Common.Nvcamera.FeaturesSupported.sdk])&&(this.isNvCameraReady=!0,this.logger.info("Setting NvCamera ready"),this.setAnselFreestyleState())})).subscribe()}setNavigationInputDevice(he=[],Ee=[]){if(he.length===Ee.length)for(let Pe=0;Pe<he.length;Pe++)switch(he[Pe]){case Un.Keyboard:this.navigationInputDevice.KEYBOARD=!!Ee[Pe];break;case Un.Mouse:this.navigationInputDevice.MOUSE=!!Ee[Pe];break;case Un.Gamepad:this.navigationInputDevice.GAMEPAD=!!Ee[Pe]}}sendAnselFreestyleFiltersTelemetry(he,Ee=!1){let Pe="",Qe="",Be="",Mt="",Vt=0;he===N.O5.GameFilter&&(this.currentGameSlots.modsSlotsInfo.slots.forEach(Vn=>{const si=Vn.filterStack.filters.length;let Rn="";if(si){this.slotsUsed.add(Vt);for(let _i=0;_i<si;_i++)Rn+=_i<si-1?Vn.filterStack.filters[_i].name+", ":Vn.filterStack.filters[_i].name}else this.slotsUsed.delete(Vt);switch(Vt){case 1:Pe=Rn;break;case 2:Qe=Rn;break;case 3:Be=Rn}if(Vt===this.currentGameSlots.modsSlotsInfo.lastSlotIdx&&(Mt=Rn,this.previousStyleApplied!==Mt))for(let _i=0;_i<si;_i++)this.telemetryService.sendAnselFreestyleFilters(Vn.filterStack.filters[_i].name,he,this.currentGameInfo.cmsId.toString(),this.currentGameInfo.shortName,this.currentGameInfo.drsName,this.currentGameInfo.drsProfileName);Vt++}),""!==Mt&&this.previousStyleApplied!==Mt&&this.telemetryService.sendFreestyleSlotTelemetry(Pe,Qe,Be,Mt,this.currentGameSlots.modsSlotsInfo.lastSlotIdx,this.slotsUsed.size,Ee,this.currentGameInfo.cmsId.toString(),this.currentGameInfo.shortName,this.currentGameInfo.drsName,this.currentGameInfo.drsProfileName)),this.previousStyleApplied=Mt}sendAnselScreenshotTelemetry(he,Ee){let Pe="",Qe=0,Be=this.currentGameInfo;Be||(Be=this.preResetSessionData.currentGameInfo),he===N.J7.completed&&this.currentGameSlots.anselSlotsInfo.slots.forEach(Mt=>{const Vt=Mt.filterStack.filters.length;let Vn="";if(Vt)for(let si=0;si<Vt;si++)this.telemetryService.sendAnselFreestyleFilters(Mt.filterStack.filters[si].name,N.O5.PhotoMode,Be?.cmsId.toString(),Be?.shortName,Be?.drsName,Be?.drsProfileName),Vn+=si<Vt-1?Mt.filterStack.filters[si].name+", ":Mt.filterStack.filters[si].name;1===Qe&&(Pe=Vn),Qe++}),this.telemetryService.sendAnselScreenshotTelemetry(he,Be?.cmsId,Be?.shortName,Ee.screenshotType,Ee.screenshotResolution,this.panningUsed,Ee.mode,Ee.totalMs,Ee.gridUsed,Ee.roll,Ee.fov,Pe,Ee.errorType,Ee.errorString)}sendAnselFreestyleErrorTelemetry(he,Ee,Pe){this.getSystemInfo().subscribe(Qe=>{let Be=N.nt.unsupportedGame,Mt=this.currentGameInfo;Pe?(Be=N.nt.streamerError,Mt||(Mt=this.preResetSessionData.currentGameInfo)):Mt&&!this.checkIfCurrentGameIsAllowlisted()?Be=N.nt.gameBlacklisted:this.nvCameraTimedOut&&(Be=N.nt.nvCameraTimedOut,this.nvCameraTimedOut=!1),Mt&&this.telemetryService.sendAnselFreestyleErrorTelemetry(he,Ee,Mt.cmsId.toString(),Mt.shortName,Mt.drsName,Mt.drsProfileName,Qe.cpuName,Qe.gpuName,Qe.osVersion,Qe.isOptimus,Qe.systemType,Qe.ddVersion,Be,Pe)})}errorHandlingForLaunchMenu(he,Ee){Ee!==At.ERROR_SUPPORTED_GAME&&(this.currentUIMode=void 0),this.igoConfig.GFNCefClient?he===g.Or.Common.Nvcamera.FeaturesSupported.sdk?(Ee===At.ERROR_SESSION_NOT_ALLOWED?this.oscNotificationService.show(ue.Ed.PhotoModeNotAllowed):this.photoModeDisable.next(!0),this.sendFeatureDisableErrorTelemetry(N.O5.PhotoMode,N.bG.nvCameraSessionConfigurationFailed,JSON.stringify(Ee))):he===g.Or.Common.Nvcamera.FeaturesSupported.mods&&(this.gameFilterDisable.next(!0),this.sendFeatureDisableErrorTelemetry(N.O5.GameFilter,N.bG.nvCameraSessionConfigurationFailed,JSON.stringify(Ee))):Ee!==At.ERROR_SESSION_NOT_ALLOWED||he!==g.Or.Common.Nvcamera.FeaturesSupported.sdk?Ee===At.ERROR_RESTART?(this.restartRequired=!0,he===g.Or.Common.Nvcamera.FeaturesSupported.mods?this.oscDisplayService.openOSC("sidebar/nvcamera/game-filters",{showError:!1,errorType:At.ERROR_RESTART}):he===g.Or.Common.Nvcamera.FeaturesSupported.sdk&&this.oscDisplayService.openOSC("sidebar/nvcamera/photo-mode",{showError:!1,errorType:At.ERROR_RESTART})):he===g.Or.Common.Nvcamera.FeaturesSupported.mods?this.oscDisplayService.openOSC("sidebar/nvcamera/game-filters",{showError:!0,errorType:Ee}):he===g.Or.Common.Nvcamera.FeaturesSupported.sdk&&this.oscDisplayService.openOSC("sidebar/nvcamera/photo-mode",{UIMode:this.currentUIMode,isAIUpresEnabled:!1,showError:!0,errorType:Ee}):this.oscNotificationService.show(this.igoConfig.GFNCefClient?ue.Ed.PhotoModeNotAllowed:ue.Ed.PhotoModeNotAllowedNvApp)}onCaptureEnhanceToggle(){this.statusOfCaptureEnhance&&this.isNvCameraReady?this.applySlot(this.currentGameSlots.modsSlotsInfo.lastSlotIdx,!0).subscribe(he=>{this.logger.info("applySlot success")},he=>{this.logger.error("applySlot failed:",he)}):!this.statusOfCaptureEnhance&&this.isNvCameraReady&&this.resetEntireStack().subscribe(he=>{this.logger.info("resetEntireStack success")},he=>{this.logger.error("resetEntireStack failed:",he)}),this.setHotkeyForSlotToggle(this.statusOfCaptureEnhance&&this.isGameFilterSupported()).subscribe()}setHotkeyForSlotToggle(he){return this.igoConfig.GFNCefClient?(0,a.of)(!1):this.bridgeService.executeCommand(g.Ts.Share.Shareserver.SetHotkeyDynamicEnable,{enable:he,keys:[c.g8.FreeStyleToggleStyle1,c.g8.FreeStyleToggleStyle2,c.g8.FreeStyleToggleStyle3]}).pipe((0,y.T)(Ee=>(this.logger.info("SetHotkeyDynamicEnable returned: ",Ee),!0)),(0,i.W)(Ee=>(this.logger.error("SetHotkeyDynamicEnable failed: ",Ee),(0,a.of)(!1))))}setDynamicHotkey(he,Ee){this.igoConfig.GFNCefClient||this.bridgeService.executeCommand(g.Ts.Share.Shareserver.SetHotkeyDynamicEnable,{enable:he,keys:Ee}).subscribe(Pe=>{this.logger.info("SetHotkeyDynamicEnable returned: ",Pe)},Pe=>{this.logger.error("SetHotkeyDynamicEnable failed: ",Pe)})}formatDataForUnifiedIPC(he,Ee){if(!he||!he.controls||!Array.isArray(he.controls)||0===he.controls.length)return this.logger.error("Fields missing (Filter / Controls). Abort formatting..."),null;const Pe={filterId:void 0,stackIdx:void 0,controls:[void 0]},Qe={slider:1,multislider:1,boolean:2,edit:5,multiedit:5,pulldown:7};return Pe.filterId=he.id,Pe.stackIdx=Ee,Pe.controls=[],he.controls.forEach(function(Be){Pe.controls.push({id:Be.id,type:Qe[Be.controlType],values:Be.currentValueArray,dataType:Be.dataType})}),Pe}setFilterAndAttributes(he,Ee){this.logger.info("service.setFilterAndAttributes(). Try to formatDataForUnifiedIPC().");const Pe=this.formatDataForUnifiedIPC(he,Ee);return Pe?(this.logger.info("SetFilterAndAttributes request: ",Pe),this.nvcameraRequestWithWait(g.Ts.Common.Nvcamera.SetFilterAndAttributes,{filterId:Pe.filterId,stackIdx:Pe.stackIdx,controls:Pe.controls},nt.filterDetails,this.nvCameraRelaxedTimeout).pipe((0,y.T)(Qe=>Qe.filterDetails.filter.status?Qe.filterDetails.filter.status:g.Or.Common.Nvcamera.AnselStatusEnum.failed),(0,yn.o)(1))):(this.logger.error("Fallback to old API (setFilterType)."),this.setFilterWithAttributes(he))}normalizeSliderValue(he,Ee,Pe,Qe,Be){return(he-Ee)/(Pe-Ee)*(Be-Qe)+Qe}startNvCameraSession(){return this.currentUIMode=N.O5.GameFilter,this.tryStartNvCameraSession(g.Or.Common.Nvcamera.FeaturesSupported.mods).pipe((0,r.ZZ)(()=>this.checkAndUpdateSavedFilterPaths()))}getAiUpresSupported(){return this.igoConfig.GFNCefClient?(0,a.of)(!1):this.systemInfoService.getSystemInfo([h.Lu.OSVersion]).pipe((0,y.T)(he=>{const Ee=he.OSVersion.split(".");return Hn.OSBuildNumber<=parseInt(Ee[Ee.length-1],10)}),(0,r.ZZ)(he=>he?this.getGPUInfo():(0,a.of)(void 0)),(0,y.T)(he=>{if(he){const Ee=(0,V.find)(he.GPU,{IsPrimary:"1"})||he.GPU[0],Pe=Ee.GPUArchitecture,Qe=void 0!==Ee.GPUArchImplementation?parseInt(Ee.GPUArchImplementation,16):void 0,Be=parseInt(Hn.GPUArchitecture,16)<=parseInt(Pe,10),Mt=Be&&Qe&&!Hn.ExGPUArchImplementation.includes(Qe);return!(!Be||!Mt)}return!1}),(0,i.W)(he=>(this.logger.error("Error in checking AIUpresSupport: ",he),(0,a.of)(!1))))}updateStreamerState(){this.streamerStateSubscription&&(this.streamerStateSubscription.unsubscribe(),this.streamerStateSubscription=void 0),this.streamerStateSubscription=this.oscDisplayService.streamerState$.subscribe(he=>{if(he){if(this.logger.info("streaming state change: ",he.name),["Error","TerminalError","ResumableError"].indexOf(he.name)>=0&&(this.isModsAppliedCurrently||this.preResetSessionData.modsApplied||this.currentUIMode)){const Pe="State: "+he.name+", modsActive: "+(this.isModsAppliedCurrently||this.preResetSessionData.modsApplied)+", UI mode: "+(this.currentUIMode?this.currentUIMode:this.preResetSessionData.uiMode||"Other");this.logger.info("StreamerError errorString = ",Pe),this.sendAnselFreestyleErrorTelemetry(N.T7.anselFreestyleGeneralFailure,this.currentUIMode||N.O5.GameFilter,Pe)}"Done"===he.name&&this.resetState()}})}sendFunctionalityErrorTelemetry(he){this.sendAnselFreestyleErrorTelemetry(N.T7.anselFreestyleGeneralFailure,this.currentUIMode||N.O5.GameFilter,he)}sendFeatureDisableErrorTelemetry(he,Ee,Pe){let Qe=this.currentGameInfo;Qe||(Qe=this.preResetSessionData.currentGameInfo),this.telemetryService.sendAnselFreestyleFeatureDisableTelemetry(Qe?.cmsId.toString(),Qe?.shortName.toString(),he||N.O5.GameFilter,Ee,Pe||"Unknown Error")}transformGFEFilterData(he){this.logger.info("transformGFEFilterData");const Ee=[];return he?(he.forEach((Pe,Qe)=>{const Be={filterDetails:{filter:{status:g.Or.Common.Nvcamera.AnselStatusEnum.ok,stackIdx:Qe,id:Pe.id,filterDisplayName:Pe.title},controls:[]}};function Mt(si,Rn,_i){Rn.minValue.push(si.range?.min),Rn.maxValue.push(si.range?.max),Rn.defaultValue.push(si.default),Rn.currentValue.push(si.value),"int"===Rn.dataType&&(si.step=1),Rn.stepSize.push(si.step),Rn.uiMinValueV1.push(si.uiRange?.min[_i]),Rn.uiMaxValueV1.push(si.uiRange?.max[_i]),Rn.uiMinValue=si.uiRange?.min[0],Rn.uiMaxValue=si.uiRange?.min[0],0===si.step&&(si.step=((Rn.uiMaxValueV1?Rn.uiMaxValueV1[_i]:Rn.uiMaxValue)-(Rn.uiMinValueV1?Rn.uiMinValueV1[_i]:Rn.uiMinValue))/100,Rn.uiStepSize.push(si.step))}function Vt(si,Rn,_i){Rn.minValue.push(si.min),Rn.maxValue.push(si.max),Rn.defaultValue.push(si.value),Rn.currentValue.push(si.value)}Pe.controls?.forEach(si=>{const Rn={};switch(Rn.id=si.id,Rn.displayName=si.title,si.type){case"sidebar-slider":Rn.controlType="slider",Rn.dataType=si.dataType,Rn.uiDisplayNameV1=[""],Rn.minValue=[],Rn.maxValue=[],Rn.defaultValue=[],Rn.currentValue=[],Rn.stepSize=[],Rn.uiStepSize=[],Rn.uiMinValueV1=[],Rn.uiMaxValueV1=[],Rn.uiMinValue=[],Rn.uiMaxValue=[],Rn.uiDisplayNameV1=[""],Mt(si,Rn,0),Rn.uiDisplayNameV1=[""];break;case"sidebar-multislider":Rn.controlType="slider",Rn.dataType=si.dataType,Rn.minValue=[],Rn.maxValue=[],Rn.defaultValue=[],Rn.currentValue=[],Rn.stepSize=[],Rn.uiStepSize=[],Rn.uiMinValueV1=[],Rn.uiMaxValueV1=[],Rn.uiMinValue=[],Rn.uiMaxValue=[],Rn.uiDisplayNameV1=[""],si.subcontrols?.forEach((_i,wr)=>{Rn.uiDisplayNameV1.push(_i.title),Mt(_i,Rn,wr)});break;case"sidebar-boolean":Rn.controlType="boolean",Rn.dataType="bool",Rn.currentValue=si.value;break;case"sidebar-list":Rn.controlType="pulldown",Rn.defaultId=si.title,Rn.currentId=si.title,Rn.uiDisplayNameV1=[],si.items.forEach(_i=>{Rn.uiDisplayNameV1.push(_i.title)});break;case"sidebar-edit":Rn.controlType="edit",Rn.dataType=si.dataType,Rn.uiDisplayNameV1=[""],Rn.minValue=[],Rn.maxValue=[],Rn.defaultValue=[],Rn.currentValue=[],Vt(si,Rn);break;case"sidebar-multiedit":Rn.controlType="edit",Rn.dataType=si.dataType,Rn.minValue=[],Rn.maxValue=[],Rn.defaultValue=[],Rn.currentValue=[],Rn.uiDisplayNameV1=[""],si.subcontrols?.forEach((_i,wr)=>{Rn.uiDisplayNameV1.push(_i.title),Vt(_i,Rn)})}Be.filterDetails.controls.push(Rn)});const Vn=new Ct.dJ(Pe.id,Pe.title,!1,Qe);this.createFilterControls(Be,Vn),Ee.push(Vn)}),Ee):(this.logger.info("Invalid filter stack data from gfe backup"),Ee)}loadGFEMigrationData(he){try{const Ee=new Ct.Jm,Pe=he.ModsSlotStorage,Qe=he.ModsDataStorage,Be=3;return Pe&&Qe?(this.logger.info("Porting GFE backup data"),Object.keys(Pe).forEach(Vt=>{let Vn;for(Ee.filterPresets[Vt]=new Ct.n,Vn=0;Vn<Be;Vn++){const si=Qe[Vt]?.lastSlot;Ee.filterPresets[Vt].modsSlotsInfo.lastSlotIdx=si>=0?si:0,Ee.filterPresets[Vt].modsSlotsInfo.slots[Vn+1].filterStack.filters=this.transformGFEFilterData(Pe[Vt][Vn]?.activeFilterStack)}Ee.filterPresets[Vt].anselSlotsInfo.lastSlotIdx=1,Ee.filterPresets[Vt].anselSlotsInfo.slots[1].filterStack.filters=this.transformGFEFilterData(Pe[Vt][Vn]?.activeFilterStack)}),this.dBStore.setItem(this.filterPresetsStorageKeyName,JSON.stringify(Ee)).pipe((0,G.M)(Vt=>this.logger.info("Filter presets migrated from GFE")))):(this.logger.info("No filter presets found in gfe backup"),(0,a.of)(null))}catch{return this.logger.error("Error while migrating filter presets from GFE"),(0,a.of)(null)}}slotSwitchingTelemetry(he,Ee){let Pe="",Qe="";if(this.logger.info("oldSlotID "+he+" newSlotID "+Ee),he===Ee)return;this.isAIDVCEnabled&&(Qe=wn.Qu.RTX_DVC),this.isAIHDREnabled&&(Qe=Qe?wn.Qu.RTX_HDR+","+Qe:wn.Qu.RTX_HDR),this.isNIS2Enabled&&Qe&&(Qe=wn.Qu.NIS2+","+Qe),this.currentGameSlots.modsSlotsInfo.slots[he].filterStack.filters.forEach(Mt=>{Pe=Pe?Mt.name+","+Pe:Mt.name}),(this.isAIDVCEnabled||this.isAIHDREnabled||this.isNIS2Enabled)&&(Pe=Qe+","+Pe);let Be="";this.currentGameSlots.modsSlotsInfo.slots[Ee].filterStack.filters.forEach(Mt=>{Be=Be?Be+","+Mt.name:Mt.name}),(this.isAIDVCEnabled||this.isAIHDREnabled||this.isNIS2Enabled)&&(Be=Qe+","+Be),this.telemetryService.sendProcessingFilter(this.gameDetails,this.systemInfo.ddVersion,jn.Bs.FiltersSlotChanged,he,Pe,Ee,Be,"",!0)}setAIDVCEnabled(he){this.isAIDVCEnabled=he}setAIHDREnabled(he){this.isAIHDREnabled=he}setNIS2Enabled(he){this.isNIS2Enabled=he}filterAddedTelemetry(he){this.telemetryService.sendProcessingFilter(this.gameDetails,this.systemInfo.ddVersion,jn.Bs.FiltersAdded,0,he,0,"","",!0)}filterAppliedTelemetry(he,Ee=!1){let Pe="";this.isAIDVCEnabled&&(Pe=wn.Qu.RTX_DVC+","),this.isAIHDREnabled&&(Pe=Pe+wn.Qu.RTX_HDR+","),this.isNIS2Enabled&&(Pe=Pe+wn.Qu.NIS2+",");let Qe="";(this.isAIDVCEnabled||this.isAIHDREnabled||this.isNIS2Enabled)&&(this.currentUIMode===N.O5.GameFilter||Ee)&&(Qe=Pe?Pe.slice(0,-1):"");const Be=he||this.currentGameSlots?.anselSlotsInfo?.lastSlotIdx,Mt=this.currentUIMode===N.O5.GameFilter||Ee?this.currentGameSlots?.modsSlotsInfo?.slots[he]:this.currentGameSlots?.anselSlotsInfo?.slots[this.currentGameSlots?.anselSlotsInfo?.lastSlotIdx];Mt||Ee?(Mt&&Mt.filterStack.filters.forEach(Vt=>{Qe=Qe?Qe+","+Vt.name:Vt.name}),Qe?(this.logger.info("filters applied, sending telemetry"),this.telemetryService.sendProcessingFilter(this.gameDetails,this.systemInfo.ddVersion,jn.Bs.FiltersApplied,Be,Qe,0,"","",!0)):this.logger.info("No filters applied, skipping telemetry")):this.logger.info("slotsInfo missing")}anselFreestyleCaptureTelemetry(he,Ee){let Pe="";const Qe=this.currentUIMode===N.O5.PhotoMode?jn.Uk.Ansel:jn.Uk.AnselLite;this.currentGameSlots.anselSlotsInfo.slots[this.currentGameSlots.anselSlotsInfo.lastSlotIdx].filterStack.filters.forEach(Mt=>{Pe=Pe?Pe+","+Mt.name:Mt.name}),this.isInDesktopMode().subscribe(Mt=>{this.telemetryIgoService.sendAnselFreestyleCaptureEvent(this.gameDetails,"",this.systemInfo.ddVersion,this.systemInfo.gpuName,he,Qe,Mt?N.ri.windowed:N.ri.fullscreen,Ee?Ee.screenshotResolution:"",Ee?Ee.upResScale:0,Pe,this.gridUsed,this.panningUsed)})}getScreenshotHotkey(){return this.hotkeyService.getHotkeyString(c.g8.Screenshot)}processingControlSettingsTelemetry(he){if(!this.igoConfig.GFNCefClient){const Pe=this.currentUIMode===N.O5.GameFilter?this.currentGameSlots?.modsSlotsInfo?.slots[he]:this.currentGameSlots?.anselSlotsInfo?.slots[this.currentGameSlots?.anselSlotsInfo?.lastSlotIdx];if(!Pe)return;this.isInDesktopMode().subscribe(Qe=>{const Be=Qe?N.ri.windowed:N.ri.fullscreen;Pe.filterStack.filters.forEach(Mt=>{Mt.controls.forEach(Vt=>{let Vn="";switch(Vt.controlType){case"boolean":Vn=Vt.currentValue?.toString();case"slider":Vn=Vt.currentUIValue?.toString();case"multislider":Vn=Vt.currentValueArray?.toString();default:Vn=Vt.currentValueArray?.toString()}this.sendSingleControlSettingsTelemetry(Mt.name,Vt.displayName,Vn,Be)})})})}}sendSingleControlSettingsTelemetry(he,Ee,Pe,Qe){this.telemetryService.sendProcessingControlSettings(this.gameDetails,he,Ee,Pe,Qe)}anselFreestyleErrorTelemetry(he,Ee,Pe){if(!this.igoConfig.GFNCefClient){let Qe=N.nt.unsupportedGame;this.gameDetails&&!this.checkIfCurrentGameIsAllowlisted()?Qe=N.nt.gameBlacklisted:this.nvCameraTimedOut&&(Qe=N.nt.nvCameraTimedOut),this.telemetryService.sendAnselFreestyleError(this.gameDetails,he,Qe,Pe,it.oX.Undefined,jn.Uk[this.currentUIMode],this.sourceTrigger===mt.Ui,this.systemInfo.gpuName,this.systemInfo.ddVersion,this.systemInfo.isOptimus,this.systemInfo.systemType)}}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(m.zZn),m.KVO(T.k),m.KVO(h.J6),m.KVO(h.NZ),m.KVO(c.QS),m.KVO(_.B),m.KVO(de.c$),m.KVO(De.W1),m.KVO(qt),m.KVO(h.iH),m.KVO(ce.x),m.KVO(Z.S),m.KVO(ue.mb),m.KVO(ae.e),m.KVO(h.at),m.KVO(h.CF),m.KVO(h.zW),m.KVO(_e.x_),m.KVO(ke.R))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})(),Lr=(()=>{var qn;class Sr{constructor(he,Ee,Pe,Qe,Be,Mt,Vt,Vn,si){this.loggingService=he,this.bridgeService=Ee,this.featureSupportService=Pe,this.nvCameraService=Qe,this.dbService=Be,this.translateService=Mt,this.oscDisplayService=Vt,this.lcarsService=Vn,this.shadowPlayService=si,this.nisStateInfo=void 0,this.currentGameInfo=void 0,this.isSystemOnline=!1,this.vibranceDefaultValue=0,this.sharpenDefaultValue=0,this.deepDvcStateAtGameLaunch=[],this.deepDvcStateAtAppLaunch=void 0,this.trueHdrStateAtGameLaunch=[],this.trueHdrStateAtAppLaunch=void 0,this.nis2StateAtGameLaunch=[],this.nis2StateAtAppLaunch=void 0,this.ppeFilterSlotData=void 0,this.currentGameSlotIndex=1,this.hardConstraintSupportFailure=0,this.softConstraintSupportFailure=0,this.isAppStartedReceived=!1,this.isPpeFeaturesEnabled=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.dbStorageName="PpeFilters",this.filterPresetsStorageKeyName="PpeFilterPresets",this.staticFilterListStrings=[],this.disabledDueToGlobalToggle=!1,this.instantEnableSupported=!1,this.deepDvcInitialized$=new l.B7,this.nisInitialized$=new l.B7,this.trueHdrInitialized$=new l.B7,this.ppeGameStartedNotify$=new l.B7,this.gameLaunchTelemetry=!1,this.rtxDvcGameEnableState=!1,this.rtxHdrGameEnableState=!1,this.logger=this.loggingService.getLogger("PpeService"),this.isAIDVCSupported=!1,this.isAIHDRSupported=!1,this.isNIS2Supported=!1,this.isAIDVCEnabled=!1,this.isAIHDREnabled=!1,this.isNIS2Enabled=!1,this.isAIDVCAddSuccess=!1,this.isAIHDRAddSuccess=!1,this.isPpeFeaturesEnabled=this.featureSupportService.isPpeEnabled(),this.dBStore=this.dbService.getGlobalStore(this.dbStorageName)}init(){this.isPpeFeaturesEnabled=this.featureSupportService.isPpeEnabled(),this.isPpeFeaturesEnabled&&(this.logger.info(" Ppe Service Init"),this.resetGameInfo(),this.registerNotifications(),this.sendGameLaunchAutoAppliedTelemetry(),this.getDeepDVCSystemSupport().pipe((0,y.T)(he=>{this.logger.info("aidvcSupport values : ",he),this.isAIDVCSupported=0===he.errorCode}),(0,i.W)(he=>(this.logger.error("aidvcSupport Error ",he),this.isAIDVCSupported=!1,(0,a.of)(he)))).subscribe(),this.getGlobalRTXHDRSupport().pipe((0,y.T)(he=>{this.logger.info("globalRTXhdrSupport values : ",he),this.isAIHDRSupported=he.globalSupport,this.hardConstraintSupportFailure=this.isAIHDRSupported?0:1}),(0,i.W)(he=>(this.logger.error("rtxHdrSupport Error : ",he),this.isAIHDRSupported=!1,this.hardConstraintSupportFailure=1,(0,a.of)(he)))).subscribe(),this.getNIS2SystemSupport().pipe((0,y.T)(he=>{this.logger.info("nis2Support values : ",he),this.isNIS2Supported=he.supported}),(0,i.W)(he=>(this.logger.error("nis2Support Error ",he),this.isNIS2Supported=!1,(0,a.of)(he)))).subscribe())}changeDeepDvcFilterSettings(he){return this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.SetAIDVCState,he)}changeTrueHdrFilterSettings(he){return this.oscDisplayService.setRtxHdrStatus(he.enabled),this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.SetAIHDRState_V2,he)}changeNis2FilterSettings(he){return this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.SetNIS2Sharpen,he)}disableAIDVC(he){const Ee={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:!1,saturation:this.deepDvcParametersValue.saturation,intensity:this.deepDvcParametersValue.intensity,saveEnabled:!!he,saveIntensity:!0,saveSaturation:!0,applyEffectInRealTime:!0,isUseGlobal:!1};return this.deepDvcParametersValue&&he&&(this.deepDvcParametersValue.enabled=!1),this.logger.info("PPE filter DeepDVC is being disabled ",Ee),this.changeDeepDvcFilterSettings(Ee).pipe((0,G.M)(()=>this.nvCameraService.updatePpeState(wn.VL,!1)))}disableAIHDR(he){const Ee={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:!1,peakBrightness:this.trueHdrParametersValue.peakBrightness,middleGrey:this.trueHdrParametersValue.middleGrey,contrast:this.trueHdrParametersValue.contrast,saturation:this.trueHdrParametersValue.saturation,saveEnabled:!!he,savePeakBrightness:!0,saveMiddleGrey:!0,saveContrast:!0,saveSaturation:!0,applyEffectInRealTime:this.isAIHDRSupported&&this.trueHdrStateAtAppLaunch?.enabled,isUseGlobal:!1};return this.trueHdrParametersValue&&he&&(this.trueHdrParametersValue.enabled=!1),this.logger.info("PPE filter TrueHDR is being disabled ",Ee),this.changeTrueHdrFilterSettings(Ee).pipe((0,G.M)(()=>this.nvCameraService.updatePpeState(wn.Ow,!1)))}saveAIDVCState(){return this.getDeepDVCStateInfo().pipe((0,r.ZZ)(he=>{if(this.deepDvcParametersValue){const Ee=this.deepDvcParametersValue.enabled!==he.enabled,Pe=this.deepDvcParametersValue.intensity!==he.intensity,Qe=this.deepDvcParametersValue.saturation!==he.saturation;if(Ee||Pe||Qe){const Mt={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:this.deepDvcParametersValue.enabled,intensity:this.deepDvcParametersValue.intensity,saturation:this.deepDvcParametersValue.saturation,saveEnabled:Ee,saveIntensity:Pe,saveSaturation:Qe,applyEffectInRealTime:!1,isUseGlobal:!1};return this.logger.info("DeepDVC Drs is being updated ",Mt,this.deepDvcParametersValue),this.changeDeepDvcFilterSettings(Mt)}}return(0,a.of)(null)})).subscribe(()=>{this.nvCameraService.isInDesktopMode().subscribe(he=>{const Ee=he?N.ri.windowed:N.ri.fullscreen;this.deepDvcParametersValue&&(this.nvCameraService.sendSingleControlSettingsTelemetry(wn.Qu.RTX_DVC,wn.ke.filterDetails.controls[0].displayName,this.deepDvcParametersValue.intensity.toString(),Ee),this.nvCameraService.sendSingleControlSettingsTelemetry(wn.Qu.RTX_DVC,wn.ke.filterDetails.controls[1].displayName,this.deepDvcParametersValue.saturation.toString(),Ee))})})}saveAIHDRState(){return this.getTrueHDRStateInfo().pipe((0,r.ZZ)(he=>{if(this.trueHdrParametersValue){const Ee=this.trueHdrParametersValue.enabled!==he.enabled,Pe=this.trueHdrParametersValue.peakBrightness!==he.peakBrightness,Qe=this.trueHdrParametersValue.middleGrey!==he.middleGrey,Be=this.trueHdrParametersValue.contrast!==he.contrast,Mt=this.trueHdrParametersValue.saturation!==he.saturation;if(Ee||Pe||Qe||Be||Mt){const Vn={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:this.trueHdrParametersValue.enabled,peakBrightness:this.trueHdrParametersValue.peakBrightness,middleGrey:this.trueHdrParametersValue.middleGrey,contrast:this.trueHdrParametersValue.contrast,saturation:this.trueHdrParametersValue.saturation,saveEnabled:Ee,savePeakBrightness:Pe,saveMiddleGrey:Qe,saveContrast:Be,saveSaturation:Mt,applyEffectInRealTime:!1,isUseGlobal:!1};return this.logger.info("TrueHDR Drs is being updated ",Vn,this.trueHdrParametersValue),this.changeTrueHdrFilterSettings(Vn)}}return(0,a.of)(null)})).subscribe(()=>{this.nvCameraService.isInDesktopMode().subscribe(he=>{const Ee=he?N.ri.windowed:N.ri.fullscreen;this.trueHdrParametersValue&&(this.nvCameraService.sendSingleControlSettingsTelemetry(wn.Qu.RTX_HDR,wn.J1.filterDetails.controls[0].displayName,this.trueHdrParametersValue.peakBrightness.toString(),Ee),this.nvCameraService.sendSingleControlSettingsTelemetry(wn.Qu.RTX_HDR,wn.J1.filterDetails.controls[1].displayName,this.trueHdrParametersValue.middleGrey.toString(),Ee),this.nvCameraService.sendSingleControlSettingsTelemetry(wn.Qu.RTX_HDR,wn.J1.filterDetails.controls[2].displayName,this.trueHdrParametersValue.contrast.toString(),Ee),this.nvCameraService.sendSingleControlSettingsTelemetry(wn.Qu.RTX_HDR,wn.J1.filterDetails.controls[3].displayName,this.trueHdrParametersValue.saturation.toString(),Ee))})})}saveNIS2State(){return this.getNIS2StateInfo().pipe((0,r.ZZ)(he=>{if(this.nis2ParametersValue){const Pe=this.nis2ParametersValue.sharpen!==he.sharpen;if(Pe){const Qe={processId:this.currentGameInfo.procId,sharpen:this.nis2ParametersValue.sharpen,saveToDRS:Pe};return this.logger.info("NIS2 Drs is being updated ",Qe,this.nis2ParametersValue),this.changeNis2FilterSettings(Qe)}}return(0,a.of)(null)})).subscribe(()=>{this.nis2ParametersValue&&this.nvCameraService.isInDesktopMode().subscribe(he=>{const Ee=he?N.ri.windowed:N.ri.fullscreen;this.nvCameraService.sendSingleControlSettingsTelemetry(wn.Qu.NIS2,wn.$k.filterDetails.controls[0].displayName,this.nis2ParametersValue.sharpen.toString(),Ee)})})}restoreAIDVC(he){const Ee={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:he.enabled,saturation:he.saturation,intensity:he.intensity,saveEnabled:!1,saveIntensity:!1,saveSaturation:!1,applyEffectInRealTime:!0,isUseGlobal:!1};return this.deepDvcParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:he.enabled,intensity:he.intensity,saturation:he.saturation},this.logger.info("Restoring AIDVC state ",Ee),this.changeDeepDvcFilterSettings(Ee)}restoreAIHDR(he){const Ee={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:he.enabled,peakBrightness:he.peakBrightness,middleGrey:he.middleGrey,contrast:he.contrast,saturation:he.saturation,saveEnabled:!1,savePeakBrightness:!1,saveMiddleGrey:!1,saveContrast:!1,saveSaturation:!1,applyEffectInRealTime:!0,isUseGlobal:!1};return this.trueHdrParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:he.enabled,peakBrightness:he.peakBrightness,middleGrey:he.middleGrey,contrast:he.contrast,saturation:he.saturation},this.logger.info("Restoring AIHDR state ",Ee),this.changeTrueHdrFilterSettings(Ee)}restoreNIS2(he){const Ee={processId:this.currentGameInfo.procId,sharpen:he.sharpen,saveToDRS:!1};return this.nis2ParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:he.enabled,sharpen:he.sharpen},this.logger.info("Restoring NIS2 state ",Ee),this.changeNis2FilterSettings(Ee)}sendGameLaunchAutoAppliedTelemetry(){(0,mn.h)(this.nvCameraService.gameStartedNotify(),this.ppeGameStartedNotify$).pipe((0,re.p)(he=>!this.gameLaunchTelemetry),(0,te.H)(he=>(this.gameLaunchTelemetry=!0,(0,$.yU)(this.deepDvcInitialized$.asObservable(),this.nisInitialized$.asObservable(),this.trueHdrInitialized$.asObservable(),this.nvCameraService.modsSlotappliedComplete()))),(0,y.T)(([he,Ee,Pe,Qe])=>(null!==Qe&&this.nvCameraService.filterAppliedTelemetry(Qe,!0),this.gameLaunchTelemetry=!1,null))).subscribe()}restorePPEFilters(he=!1){this.disabledDueToGlobalToggle||!this.ppeFilterSlotData||this.ppeFilterSlotData&&this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName]<=0||(he&&this.ppeGameStartedNotify$.next(!0),(0,a.of)(this.isAIDVCSupportedInChroma()).pipe((0,r.ZZ)(Ee=>Ee?this.getDeepDVCSystemSupport():(this.logger.info("Game is denylisted for AI DVC"),(0,a.of)({errorCode:wn.O3.FEATURE_SUPPORT_ERROR_ERROR}))),(0,y.T)(Ee=>(this.logger.info("getDeepDVCSystemSupport ",Ee),this.instantEnableSupported=Ee.instantEnableSupported,Ee.errorCode===wn.O3.FEATURE_SUPPORT_ERROR_OK?(this.isAIDVCSupported=!0,this.isPpeFiltersVisible=this.isPpeFiltersVisible||this.isAIDVCSupported,!0):(this.isAIDVCSupported=!1,this.isPpeFiltersVisible=this.isPpeFiltersVisible||this.isAIDVCSupported,this.deepDvcInitialized$.next(!1),!1))),(0,re.p)(Ee=>!!Ee),(0,r.ZZ)(Ee=>(this.logger.info("getDeepDVCSystemSupport response",Ee),this.getDeepDVCStateInfo())),(0,r.ZZ)(Ee=>{if(this.isAIDVCEnabled=Ee.enabled,this.nvCameraService.setAIDVCEnabled(this.isAIDVCEnabled),this.deepDvcInitialized$.next(Ee.enabled),this.deepDvcStateAtAppLaunch={cmsId:this.currentGameInfo.cmsId,enabled:Ee.enabled,saturation:Ee.saturation,intensity:Ee.intensity},this.logger.info("AIDVC values at app launch ",this.deepDvcStateAtAppLaunch),this.isAIDVCEnabled){let Pe=-1;return this.deepDvcStateAtGameLaunch&&(Pe=this.deepDvcStateAtGameLaunch.findIndex(Qe=>Qe.cmsId===this.currentGameInfo.cmsId)),-1!==Pe?this.deepDvcStateAtGameLaunch[Pe]=this.deepDvcStateAtAppLaunch:this.deepDvcStateAtGameLaunch.push(this.deepDvcStateAtAppLaunch),this.restoreAIDVC(Ee)}return(0,a.of)(!1)}),(0,i.W)(Ee=>(this.deepDvcInitialized$.next(!1),this.nvCameraService.updatePpeState(wn.VL,!1),this.logger.info("Restore AIDVC Filter error : ",Ee),(0,a.of)(!1)))).subscribe(Ee=>{this.nvCameraService.updatePpeState(wn.VL,!!Ee),this.logger.info("Restore AIDVC Filter response",Ee)}),this.getRTXHDRSupportperDisplay().pipe((0,r.ZZ)(Ee=>(this.logger.info("getRTXHDRSupportperDisplay : ",Ee),this.isAIHDRSupported=Ee.isSupported,this.getErrorCodeList(Ee.errorCode),this.isPpeFiltersVisible=this.isAIHDRSupported?this.isPpeFiltersVisible||this.isAIHDRSupported:this.isPpeFiltersVisible||!this.hardConstraintSupportFailure,this.maxPeakBrightness=Ee.maxPeakBrightness,this.minPeakBrightness=Ee.minPeakBrightness,(0,a.of)(Ee.isSupported))),(0,r.ZZ)(Ee=>(this.logger.info("getRTXHDRSupportperDisplay response",Ee),this.getTrueHDRStateInfo())),(0,r.ZZ)(Ee=>{if(this.isAIHDREnabled=Ee.enabled,this.nvCameraService.setAIHDREnabled(this.isAIHDREnabled),this.trueHdrInitialized$.next(!0),this.trueHdrStateAtAppLaunch={cmsId:this.currentGameInfo.cmsId,enabled:Ee.enabled,peakBrightness:Ee.peakBrightness,middleGrey:Ee.middleGrey,contrast:Ee.contrast,saturation:Ee.saturation},this.logger.info("AIHDR values at app launch ",this.trueHdrStateAtAppLaunch),Ee.supported&&this.isAIHDREnabled){let Pe=-1;return this.trueHdrStateAtGameLaunch&&(Pe=this.trueHdrStateAtGameLaunch.findIndex(Qe=>Qe.cmsId===this.currentGameInfo.cmsId)),-1!==Pe?this.trueHdrStateAtGameLaunch[Pe]=this.trueHdrStateAtAppLaunch:this.trueHdrStateAtGameLaunch.push(this.trueHdrStateAtAppLaunch),this.restoreAIHDR(Ee)}return(0,a.of)(!1)}),(0,i.W)(Ee=>(this.trueHdrInitialized$.next(!1),this.logger.info("Restore AIHDR Filter error : ",Ee),this.nvCameraService.updatePpeState(wn.Ow,!1),(0,a.of)(!1)))).subscribe(Ee=>{this.nvCameraService.updatePpeState(wn.Ow,!!Ee),this.logger.info("Restore AIHDR Filter response",Ee)}),this.getNIS2SystemSupport().pipe((0,r.ZZ)(Ee=>(this.logger.info("getNIS2SystemSupport ",Ee),this.isNIS2Supported=Ee.supported,Ee.supported||this.nisInitialized$.next(!1),(0,a.of)(!!Ee.supported))),(0,re.p)(Ee=>!!Ee),(0,r.ZZ)(Ee=>(this.logger.info("getNIS2SystemSupport response",Ee),this.getNIS2StateInfo())),(0,r.ZZ)(Ee=>{if(this.isNIS2Enabled=Ee.enabled,this.isPpeFiltersVisible=this.isPpeFiltersVisible||this.isNIS2Enabled,this.nvCameraService.setNIS2Enabled(this.isNIS2Enabled),this.nisInitialized$.next(!0),this.nis2StateAtAppLaunch={cmsId:this.currentGameInfo.cmsId,enabled:this.isNIS2Enabled,sharpen:Ee.sharpen},this.logger.info("NIS2 values at app launch ",this.nis2StateAtAppLaunch),this.isNIS2Enabled){let Pe=-1;return this.nis2StateAtGameLaunch&&(Pe=this.nis2StateAtGameLaunch.findIndex(Qe=>Qe.cmsId===this.currentGameInfo.cmsId)),-1!==Pe?this.nis2StateAtGameLaunch[Pe]=this.nis2StateAtAppLaunch:this.nis2StateAtGameLaunch.push(this.nis2StateAtAppLaunch),this.restoreNIS2(Ee)}return(0,a.of)(!1)}),(0,i.W)(Ee=>(this.nisInitialized$.next(!1),this.logger.info("Restore NIS2 Filter error : ",Ee),this.nvCameraService.updatePpeState(wn.on,!1),(0,a.of)(!1)))).subscribe(Ee=>{this.nvCameraService.updatePpeState(wn.on,!!Ee),this.logger.info("Restore NIS2 Filter response",Ee)}))}isAIDVCSupportedInChroma(){return!(!this.currentGameChromaInfo||!this.currentGameInfo)&&this.currentGameChromaInfo.pid===this.currentGameInfo.procId&&this.currentGameChromaInfo?.nvidiaTech?.RTXDVC}ensureChromaDataIsAvailableForGame(){return this.lcarsService.getCurrentAppChromaInfo().pipe((0,re.p)(he=>!!he&&void 0!==he.pid&&he.pid===this.currentGameInfo.procId&&!this.nvCameraService.isPreviousSessionRunning()),(0,y.T)(he=>{this.currentGameChromaInfo=he}),(0,et.s)(1),(0,Xn.w)(this.lcarsService.lcarsResponseTimeout))}registerNotifications(){this.getCmsData().subscribe(),this.bridgeService.executeCommand(g.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,re.p)(he=>!!he?.gameExited)).subscribe(he=>{this.onGameAppExit(he)}),this.shadowPlayService.registerAppStartedEvent().pipe((0,re.p)(he=>!!he?.appStarted),(0,r.ZZ)(he=>(this.logger.info(" App Start Data: ",he),this.nvCameraService.isPreviousSessionRunning()?this.logger.info("APP updte skipped since previous NvCamera session running"):(this.isAppStartedReceived=!0,this.isPpeSupportedGame=!0,he&&(this.currentGameInfo={procId:he.appStarted.pid,cmsId:he.appStarted.cmsId,drsName:he.appStarted.DRSAppName,drsProfileName:he.appStarted.profileName,shortName:he.appStarted.shortName,drsWhitelist:!1})),this.nvCameraService.getGlobalToggle())),(0,r.ZZ)(he=>(this.disabledDueToGlobalToggle=!he||this.nvCameraService.getIsGameRestartRequestedfromCTA(),this.loadPpeSlotsForCurrentGame())),(0,r.ZZ)(()=>this.ensureChromaDataIsAvailableForGame())).subscribe(()=>{this.disabledDueToGlobalToggle?this.logger.info("Restore PPE filter skipped"):(this.logger.info("Checking Restore PPE filter"),this.restorePPEFilters(!0))}),this.nvCameraService.getLastSlotChangedUpdates().subscribe(he=>this.onSlotChanged(he))}getCmsData(){return this.shadowPlayService.registerAppStartedEvent().pipe((0,r.ZZ)(he=>(this.logger.info("app notification:",he),he.appStarted?this.nvCameraService.isPreviousSessionRunning()?(this.logger.info("Preious session running in NvCamera"),(0,a.of)(void 0)):(this.isAppStartedReceived=!0,this.isPpeSupportedGame=!0,this.logger.info("updating current app data"),he?(this.currentGameInfo={procId:he.appStarted.pid,cmsId:he.appStarted.cmsId,drsName:he.appStarted.DRSAppName,drsProfileName:he.appStarted.profileName,shortName:he.appStarted.shortName,drsWhitelist:!1},this.checkFreestyleWhitelisted()):(0,a.of)(null)):(0,a.of)(void 0))),(0,G.M)(he=>{he&&(this.currentGameInfo.drsWhitelist=he.freestyleWhitelisted)}),(0,i.W)(he=>(this.logger.error("Unable to fetch drs whitelist data: "+he),(0,a.of)(null))))}updateNIS2State(he){this.nisStateInfo.enabled=he.enabled,this.nisStateInfo.sharpen=he.sharpen,this.setSharpness(he.sharpen,!1)}onGameAppExit(he){this.logger.info(" GameApp exit ProcessID:",he.exitAppPID),this.isAppStartedReceived=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.instantEnableSupported=!1;const Ee=this.deepDvcStateAtGameLaunch.findIndex(Be=>Be.cmsId===this.currentGameInfo.cmsId);this.deepDvcStateAtGameLaunch.splice(Ee,1);const Pe=this.trueHdrStateAtGameLaunch.findIndex(Be=>Be.cmsId===this.currentGameInfo.cmsId);this.trueHdrStateAtGameLaunch.splice(Pe,1);const Qe=this.trueHdrStateAtGameLaunch.findIndex(Be=>Be.cmsId===this.currentGameInfo.cmsId);this.nis2StateAtGameLaunch.splice(Qe,1),this.savePpeFilterPresetsData(),this.resetGameInfo(),this.ResetGraphicsSettingValues()}getDeepDVCSystemSupport(){return this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetAIDVCSupport)}getGlobalRTXHDRSupport(){return this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetAIHDRSupport_V2)}getRTXHDRSupportperDisplay(){return this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetAIHDRDisplayInfoForProcess,{processId:this.currentGameInfo.procId})}getNIS2SystemSupport(){return this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetNIS2State,{processId:0,cmsId:0})}runTimeChangeControlValue(he){const Ee=he.controls;if(Ee&&he.id===wn.VL&&(this.isAIDVCEnabled||this.instantEnableSupported)){const Pe={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:!0,saturation:Ee[1].currentUIValue,intensity:Ee[0].currentUIValue,saveEnabled:!1,saveIntensity:!1,saveSaturation:!1,applyEffectInRealTime:!0,isUseGlobal:!1};return this.deepDvcParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:Pe.enabled,intensity:Pe.intensity,saturation:Pe.saturation},this.logger.info("DeepDVC filter values updated and are being applied ",Pe),this.changeDeepDvcFilterSettings(Pe)}if(Ee&&he.id===wn.VL&&!this.isAIDVCEnabled)return this.deepDvcParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:!0,intensity:Ee[0].currentUIValue,saturation:Ee[1].currentUIValue},this.logger.info("DeepDVC filter values updated and are being saved ",this.deepDvcParametersValue),(0,a.of)(!0);if(Ee&&he.id===wn.Ow){let Pe,Qe,Be,Mt;if(this.maxPeakBrightness<=this.minPeakBrightness?(Pe=this.maxPeakBrightness,Qe=Ee[0].currentUIValue,Be=Ee[1].currentUIValue,Mt=Ee[2].currentUIValue):(Pe=Ee[0].currentUIValue,Qe=Ee[1].currentUIValue,Be=Ee[2].currentUIValue,Mt=Ee[3].currentUIValue),this.isAIHDREnabled){const Vt={cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId,enabled:!0,peakBrightness:Pe,middleGrey:Qe,contrast:Be,saturation:Mt,saveEnabled:!this.isAIHDRSupported,savePeakBrightness:!1,saveMiddleGrey:!1,saveContrast:!1,saveSaturation:!1,applyEffectInRealTime:this.isAIHDRSupported&&this.trueHdrStateAtAppLaunch.enabled,isUseGlobal:!1};return this.trueHdrParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:Vt.enabled,peakBrightness:Vt.peakBrightness,middleGrey:Vt.middleGrey,contrast:Vt.contrast,saturation:Vt.saturation},this.logger.info("TrueHDR filter values updated and are being applied ",Vt),this.changeTrueHdrFilterSettings(Vt)}return this.trueHdrParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:!0,peakBrightness:Pe,middleGrey:Qe,contrast:Be,saturation:Mt},this.logger.info("TrueHDR filter values updated and are being saved ",this.trueHdrParametersValue),(0,a.of)(!0)}if(Ee&&he.id===wn.on&&this.isNIS2Enabled){const Pe={processId:this.currentGameInfo.procId,sharpen:Ee[0].currentUIValue,saveToDRS:!1};return this.nis2ParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:this.isNIS2Enabled,sharpen:Pe.sharpen},this.logger.info("NIS2 filter values updated and are being applied ",Pe),this.changeNis2FilterSettings(Pe)}return Ee&&he.id===wn.on&&!this.isNIS2Enabled?(this.nis2ParametersValue={cmsId:this.currentGameInfo.cmsId,enabled:this.isNIS2Enabled,sharpen:Ee[0].currentUIValue},this.logger.info("NIS2 filter values updated and are being saved ",this.nis2ParametersValue),(0,a.of)(!0)):void 0}getDeepDVCStateInfo(){return this.logger.info(" : getDeepDVCStateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetAIDVCState,{cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId})}getAIDVCRealTimeStateInfo(){return this.logger.info(" : getAIDVCRealTimeStateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetRealtimeAIDVCState,{processId:this.currentGameInfo.procId})}getTrueHDRStateInfo(){return this.logger.info(" : getTrueHDRStateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetAIHDRState_V2,{cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId})}getTrueHDRRealTimeStateInfo(){return this.logger.info(" : getTrueHDRRealTimeStateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetAIHDRRealTimeState,{processId:this.currentGameInfo.procId})}getNIS2StateInfo(){return this.logger.info(" : getNIS2StateInfo currentGameInfo : ",this.currentGameInfo),this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetNIS2State,{cmsId:this.currentGameInfo.cmsId,processId:this.currentGameInfo.procId})}savePpeFilterPresetsData(){this.ppeFilterSlotData&&this.dBStore.setItem(this.filterPresetsStorageKeyName,JSON.stringify(this.ppeFilterSlotData)).subscribe(()=>{this.logger.info("Filter presets data storage updated")},he=>{this.logger.error("Error while updating filter presets data storage: ",he)})}loadPpeFilterPresetsData(){return this.ppeFilterSlotData?(0,a.of)(!0):(this.ppeFilterSlotData=new wn.qp,this.dBStore.getItem(this.filterPresetsStorageKeyName).pipe((0,y.T)(he=>{if(he)try{this.ppeFilterSlotData=JSON.parse(he),this.logger.info("Ppe Filter slots data found in the storage")}catch(Ee){this.logger.error("Failed to parse stored Ppe Filter slots data exception : ",Ee)}else this.logger.info("Ppe Filter slots data not found in the storage");return!0}),(0,i.W)(he=>(this.logger.error("Could not load filter presets data from the storage: ",JSON.stringify(he)),(0,a.of)(!0)))))}loadPpeSlotsForCurrentGame(){return this.loadPpeFilterPresetsData().pipe((0,G.M)(()=>{let he=-1;he=this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName],-1===he||void 0===he?(this.logger.info("No saved Ppe filter presets found for the game"),this.currentGameSlotIndex=1):(this.logger.info("Saved Ppe filter presets loaded for the game",he),this.currentGameSlotIndex=he)}))}updatePpeFilterSlotIndex(he){this.currentGameSlotIndex=he,this.ppeFilterSlotData&&(this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName]=he)}isAnyPpeFilterSlotSelected(){return this.ppeFilterSlotData?.ppeFilterSlot?.[this.currentGameInfo.drsProfileName]>0}getCurrentPpeSlotIndex(){return this.isAnyPpeFilterSlotSelected()?this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName].toString():""}getCurrentPpeSlotNumber(){return this.isAnyPpeFilterSlotSelected()?this.ppeFilterSlotData.ppeFilterSlot[this.currentGameInfo.drsProfileName]:null}getAiDvcErrorCodeList(he,Ee){let Pe=0,Qe=0;const Be=he?g.Or.Share.Graphicssetting.AidvcUnSupportedErrors:g.Or.Share.Graphicssetting.AidvcRealTimeErrors,Mt=Object.keys(Be).filter(Vt=>isNaN(Number(Vt))).map((Vt,Vn)=>{if(Pe=he&&Object.values(wn.X4).includes(Vt)?1:0,Qe=Ee&1<<Be[Vt],Qe)return this.isAIDVCSupported=!Pe,this.constructErrorItem(Be[Vt],!!Pe,!!Qe)});return this.logger.info("AiDvc ErrorList : "+JSON.stringify(Mt)),Mt}getErrorCodeList(he){this.logger.info(" : Support ErrorCodes : ",he),this.hardConstraintSupportFailure=0,this.softConstraintSupportFailure=1;let Ee=0,Pe=0;const Qe=Object.keys(g.Or.Share.Graphicssetting.AihdrUnSupportedErrors).filter(Be=>isNaN(Number(Be))).map((Be,Mt)=>{if(Ee=Object.values(wn.X4).includes(Be)?1:0,Pe=he&1<<g.Or.Share.Graphicssetting.AihdrUnSupportedErrors[Be],Ee&&Pe&&(this.hardConstraintSupportFailure=Ee&&Pe),Pe)return this.isAIHDRSupported=!1,this.constructErrorItem(g.Or.Share.Graphicssetting.AihdrUnSupportedErrors[Be],!!Ee,!!Pe)});return he&&!this.hardConstraintSupportFailure&&(this.softConstraintSupportFailure=1),this.logger.info("ErrorList : "+JSON.stringify(Qe)),Qe}constructErrorItem(he,Ee,Pe){return{errorId:he,hardConstraint:Ee,valueSet:Pe}}setSharpness(he,Ee){return(0,a.of)(!1)}setVibrance(he,Ee){return(0,a.of)(!1)}reapplyDesktopSharpness(){this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.GetNIS2State,{cmsId:0,processId:0}).pipe((0,r.ZZ)(he=>(this.logger.info("NIS2 Desktop/Global info",he),this.bridgeService.executeCommand(g.Ts.Share.Graphicssetting.SetNIS2Sharpen,{processId:0,sharpen:he.sharpen,saveToDRS:!1}))),(0,i.W)(he=>(this.logger.error("on NIS2 reapplyDesktopSharpness Error ",he),(0,a.of)([]))))}getAllStaticFilterList(){return this.staticFilterListStrings=[],this.featureSupportService.isPpeEnabled()&&(this.isAIDVCSupported&&(this.staticFilterListStrings.push({id:"2",name:this.translateService.instant("nvcamera.AiDigitalVibrance"),isVisible:!0,isPPEFilter:!0,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:[]}),this.isPpeFiltersVisible=this.isAppStartedReceived),(this.isAIHDRSupported||!this.isAIHDRSupported&&!this.hardConstraintSupportFailure)&&(this.staticFilterListStrings.push({id:"2",name:this.translateService.instant("nvcamera.TrueHDRTitle"),isVisible:!0,isPPEFilter:!0,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:[]}),this.isPpeFiltersVisible=this.isAppStartedReceived),this.isNIS2Supported&&(this.staticFilterListStrings.push({id:"2",name:this.translateService.instant("nvcamera.NIS"),isVisible:!0,isPPEFilter:!0,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:[]}),this.isPpeFiltersVisible=this.isAppStartedReceived)),Ct.$1.forEach(he=>{this.staticFilterListStrings.push({id:"1",name:this.translateService.instant("nvcamera."+he),isVisible:!0,isPPEFilter:!1,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:[]})}),this.staticFilterListStrings}ResetGraphicsSettingValues(){this.reapplyDesktopSharpness(),this.isAIDVCAddSuccess=!1,this.isAIHDRAddSuccess=!1}resetGameInfo(){this.currentGameInfo={procId:0,cmsId:0,drsName:"",drsProfileName:"",shortName:"",drsWhitelist:!1},this.nvCameraService.updatePpeState(wn.on,!1),this.nvCameraService.updatePpeState(wn.Ow,!1),this.nvCameraService.updatePpeState(wn.VL,!1),this.currentGameChromaInfo=void 0}initializeNISInfo(){this.nisStateInfo={supported:!1,enabled:!1,cmsId:0,selectedResolutionIndex:0,resolutions:[],sharpen:0}}initializeAIDVCInfo(){this.deepDvcParametersValue={cmsId:0,enabled:!1,intensity:0,saturation:0}}initializeAIHDRInfo(){this.trueHdrParametersValue={cmsId:0,enabled:!1,peakBrightness:0,middleGrey:0,contrast:0,saturation:0}}checkFreestyleWhitelisted(){return this.nvCameraService.getFreestyleWhitelisted(this.currentGameInfo.drsName).pipe((0,y.T)(he=>(this.currentGameInfo.drsWhitelist=he.freestyleWhitelisted,he.freestyleWhitelisted)),(0,i.W)(he=>(this.logger.info("getFreestyleWhitelisted error : ",he),this.currentGameInfo.drsWhitelist=!1,(0,a.of)(he))))}isFreestyleSupportedGame(){return this.currentGameInfo?.drsWhitelist}onSlotChanged(he){this.logger.info("onSlotChanged slotIdx : ",he),this.isPpeFeaturesEnabled&&this.isPpeSupportedGame&&(this.updatePpeFilterSlotIndex(he),0===he?(this.deepDvcParametersValue?.enabled&&(this.isAIDVCSupportedInChroma()?(this.logger.info("Disabling AI DVC"),this.disableAIDVC(he).subscribe()):this.logger.info("Game is black listed for AI DVC. AI DVC disable not required")),this.trueHdrParametersValue?.enabled&&this.disableAIHDR(he).subscribe()):he&&he>0?(this.deepDvcParametersValue?.enabled&&(this.isAIDVCSupportedInChroma()?(this.logger.info("Restoring AI DVC"),this.restoreAIDVC(this.deepDvcParametersValue).pipe((0,et.s)(1),(0,r.ZZ)(()=>this.getAIDVCRealTimeStateInfo()),(0,y.T)(Ee=>(this.logger.info("RtxDvc Game support ",Ee),this.rtxDvcGameEnableState=!!Ee&&Ee.enabled,this.rtxDvcGameEnableState))).subscribe()):(this.logger.info("Game is deny listed for AI DVC. AI DVC will not be restored"),this.rtxDvcGameEnableState=!1)),this.trueHdrParametersValue?.enabled&&(this.logger.info("Restoring RTX HDR"),this.restoreAIHDR(this.trueHdrParametersValue).pipe((0,et.s)(1),(0,r.ZZ)(()=>this.getTrueHDRRealTimeStateInfo()),(0,y.T)(Ee=>(this.logger.info("RtxHdr Game support ",Ee),this.rtxHdrGameEnableState=!!Ee&&Ee.enabled,this.rtxHdrGameEnableState))).subscribe())):this.logger.info("Slot changed notification ignored",he))}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(h.NZ),m.KVO(ke.R),m.KVO(Zi),m.KVO(h.at),m.KVO(de.c$),m.KVO(_.B),m.KVO(Gt.B),m.KVO(De.W1))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})(),Zt=(()=>{var qn;class Sr{constructor(he,Ee,Pe,Qe,Be){this.loggingService=he,this.osService=Ee,this.bridgeService=Pe,this.galleryService=Be,this.uploadDataList=[],this.memeQueue=[],this.DefaultMemeMaxLength=80,this.upperMemeMaxed=this.DefaultMemeMaxLength,this.lowerMemeMaxed=this.DefaultMemeMaxLength,this.saveBitmap=!0,this.idTracker=0,this.dirSeparator="",this.logger=this.loggingService.getLogger("MemeService"),this.renderer=Qe.createRenderer(null,null)}init(){this.logger.info("Initializing Meme Service"),this.dirSeparator=this.osService.getDirSeparator(),this.galleryService.captureSaved().subscribe(he=>{if(this.memeQueue.length>0){const Ee=this.memeQueue.find(Pe=>Pe.source===he);Ee&&(this.saveMemeStrings(Ee).subscribe(),this.memeQueue=this.memeQueue.filter(Pe=>Pe.source!==he))}})}createMeme(he){this.memeParams=he,this.memeCanvasData="",this.logger.info("Meme params: ",he),0!==he.width&&setTimeout(()=>{if(this.memeCanvasData=this.createMemeCanvasForGIFTranscoder(this.memeParams.width,this.memeParams.height),this.saveBitmap){const Pe=this.writeEncryptedBmp(this.memeCanvasData).subscribe(()=>{Pe.unsubscribe()})}const Ee=this.setupTranscode(!1).subscribe(Pe=>{Pe&&this.logger.info("Transcode Meme/GIF complete!",he),Ee.unsubscribe()})})}createGIF(he){this.gifParams=he,this.logger.info("GIF params: ",he),setTimeout(()=>{const Ee=this.setupTranscode(!0).subscribe(Pe=>{Pe&&this.logger.info("Transcode GIF complete!",he),Ee.unsubscribe()})})}setupTranscode(he){const Qe={file:he?this.gifParams.file:this.memeParams.file,targetPath:"",maxFileSizeMB:he?void 0:200,quality:"medium",newHeight:720,newFps:"high",newDuration:he?this.gifParams.duration:this.memeParams.duration,userData:this.idTracker,memeImage:he?"":this.memeCanvasData};return this.getTemporaryFolderPath().pipe((0,r.ZZ)(Be=>(this.idTracker++,Be[Be.length-1]===this.dirSeparator&&(Be=Be.slice(0,-1)),Qe.targetPath=Be,this.saveUploadData(this.idTracker,Qe))),(0,r.ZZ)(()=>this.gifTranscode(Qe)))}saveUploadData(he,Ee){return this.getMemeStrings(Ee.file).pipe((0,y.T)(Pe=>(this.uploadData={id:he,folder:Ee.targetPath,fileSize:0,type:"video",subtype:"",videoUploadTitle:"",privacy:"",destination:"",fileSource:"",highlightDefinitionId:"",conversionStartTime:"",DRSName:"",DRSProfileName:"",fullFilename:Ee.file,fileName:"",containsMeme:""===Ee.memeImage?"No":"Yes",topMemeLength:Pe.top.length,bottomMemeLength:Pe.bottom.length},-1===this.findUploadDataInList(this.uploadData.id)&&(this.uploadDataList.push(this.uploadData),this.logger.info("Stored UploadData: ",this.uploadData)),!0)))}findUploadDataInList(he){let Ee=-1;return this.uploadDataList.forEach(function(Pe,Qe){Pe.id===he&&(Ee=Qe)}),Ee}getFilename(he){return/.*[\\/](.*)/.exec(he)[1]}getTemporaryFolderPath(){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetSettings).pipe((0,y.T)(he=>he.settings.tempFolderPath))}createMemeCanvasForGIFTranscoder(he,Ee){this.logger.info("Begin creating Bitmap at: "+he+"x"+Ee);const Pe=he,Qe=Ee,Be=this.renderer.createElement("canvas");Be.width=Pe,Be.height=Qe;const Mt=Be.getContext("2d");Mt.fillStyle="rgba(0,0,0,0)",Mt.fillRect(0,0,Pe,Qe);const Vt=this.memeParams.topFontSize*(Pe/this.memeParams.clientWidth),Vn=this.memeParams.bottomFontSize*(Pe/this.memeParams.clientWidth),si=this.memeParams.strokeColor||"black",Rn=this.memeParams.fillColor||"white";let _i=Vt.toFixed(0);Mt.font=_i+"px NVIDIA",this.logger.info("Video Font top: ",Mt.font);let wr=this.calculateFontWidth(Vt,this.memeParams.topString),hr=Math.floor(Pe/2-wr/2),Qr=parseInt(_i,10);this.logger.info("Top string at x: "+hr+" y: "+Qr),Mt.strokeStyle=si,Mt.lineWidth=this.getLineWidth(_i),Mt.strokeText(this.memeParams.topString,hr,Qr,wr),Mt.fillStyle=Rn,Mt.fillText(this.memeParams.topString,hr,Qr,wr),_i=Vn.toFixed(0),Mt.font=_i+"px NVIDIA",this.logger.info("Video Font bottom: ",Mt.font),wr=this.calculateFontWidth(Vn,this.memeParams.bottomString);const Yr=.025*Qe;hr=Math.floor(Pe/2-wr/2),Qr=Math.floor(Qe-Yr),this.logger.info("Bottom string at x: "+hr+" y: "+Qr),Mt.strokeStyle=si,Mt.lineWidth=this.getLineWidth(_i),Mt.strokeText(this.memeParams.bottomString,hr,Qr,wr),Mt.fillStyle=Rn,Mt.fillText(this.memeParams.bottomString,hr,Qr,wr),this.logger.info("Canvas created");const no=this.CanvasToBMPToDataURL(Be);return this.logger.info("BMP Image created"),no}calculateFontWidth(he,Ee){const Qe=this.renderer.createElement("canvas").getContext("2d");return Qe.font=he+"px NVIDIA",Qe.measureText(Ee).width}getLineWidth(he){const Ee=parseInt(he,10),Pe=Math.round((Ee+20)/20);return Math.min(Pe,5)}toArrayBuffer(he){const Ee=he.width,Pe=he.height,Qe=4*Ee,Be=he.getContext("2d").getImageData(0,0,Ee,Pe),Mt=new Uint32Array(Be.data.buffer),Vt=4*Math.floor((32*Ee+31)/32),si=56+Vt*Pe,Rn=new ArrayBuffer(si),_i=new DataView(Rn);let ro,po,hr=0,Qr=0,Yr=0,no=0,Tr=0;for(Os(19778),es(si),hr+=4,es(54),es(40),es(Ee),es(Pe),Os(1),Os(32),hr+=24,Yr=Pe-1;Yr>=0;){for(no=54+Yr*Vt,Qr=0;Qr<Qe;)po=Mt[Tr++],ro=po>>>24,_i.setUint32(no+Qr,po<<8|ro),Qr+=4;Yr--}return Rn;function Os(Bs){_i.setUint16(hr,Bs,!0),hr+=2}function es(Bs){_i.setUint32(hr,Bs,!0),hr+=4}}CanvasToBMPToDataURL(he){const Ee=new Uint8Array(this.toArrayBuffer(he)),Pe=Ee.length;let Qe="",Be=0;for(;Be<Pe;)Qe+=String.fromCharCode(Ee[Be++]);return btoa(Qe)}saveMemeStrings(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.AddMeme,{file:he.source,memeInfo:{topBarText:he.top,bottomBarText:he.bottom}}).pipe((0,y.T)(Pe=>(this.logger.info("AddMeme complete: ",Pe),!0),Pe=>(this.logger.error("AddMeme failed: ",Pe),!1)),(0,i.W)(Pe=>(this.logger.info("AddMeme error: ",Pe),(0,a.of)(!1))))}getMemeStrings(he){const Ee={top:"",bottom:"",source:he,color:""};return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetFileMetadata,{file:he}).pipe((0,y.T)(Pe=>(Ee.top=Pe.memeInfo.topBarText,Ee.bottom=Pe.memeInfo.bottomBarText,Ee)),(0,i.W)(Pe=>(this.logger.info("Get Meme Strings from metaData error: ",Pe),(0,a.of)(Ee))))}clearMemeStrings(he){this.logger.info("Source to clear: ",he),this.saveMemeStrings({top:"",bottom:"",source:he,color:""}).subscribe()}queueToUpdateMeme(he,Ee,Pe){const Qe={top:"",bottom:"",source:he,color:""};(""!==Ee||""!==Pe)&&(Qe.top=Ee,Qe.bottom=Pe),this.memeQueue.push(Qe)}writeEncryptedBmp(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.WriteEncryptedBitmap,{bitmapImage:he}).pipe((0,y.T)(Pe=>(this.logger.info("WriteEncryptedBmp complete: ",Pe),!0),Pe=>(this.logger.error("WriteEncryptedBmp failed: ",Pe),!1)),(0,i.W)(Pe=>(this.logger.info("WriteEncryptedBitmap error: ",Pe),(0,a.of)(!1))))}gifTranscode(he){const Ee={file:he.file,targetPath:he.targetPath,maxFileSizeMB:he.maxFileSizeMB,quality:he.quality,newHeight:he.newHeight,newFps:he.newFps,newDuration:he.newDuration,userData:he.userData.toString(),memeImage:he.memeImage};return this.logger.info("Final Transcode parameters: ",Ee),this.bridgeService.executeCommand(g.Ts.Common.Gallery.TranscodeMediaFile,Ee).pipe((0,y.T)(Pe=>{this.logger.info("gifTranscode complete: ",Pe);const Qe=parseInt(Pe.userData,10),Be=this.findUploadDataInList(Qe);return this.logger.info("UserData: ",this.uploadDataList[Be]),Pe.newFile},Pe=>{this.logger.info("gifTranscode failed: ",Pe)}),(0,i.W)(Pe=>(this.logger.info("gifTranscode error: ",Pe),(0,a.of)(void 0))))}setUpperMemeMaxed(he){this.upperMemeMaxed=he}setLowerMemeMaxed(he){this.lowerMemeMaxed=he}isUpperMemeMaxed(){return this.upperMemeMaxed}isLowerMemeMaxed(){return this.lowerMemeMaxed}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(A),m.KVO(h.NZ),m.KVO(m._9s),m.KVO(qt))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})(),Zn=(()=>{var qn;class Sr{constructor(he,Ee){this.loggingService=he,this.bridgeService=Ee,this.logger=this.loggingService.getLogger("TrimService")}init(){this.logger.info("Initializing Trim Service")}trim(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.Trim,he).pipe((0,y.T)(Ee=>(this.logger.info("Trim complete: ",Ee),!0),Ee=>(this.logger.info("Trim failed: ",Ee),!0)),(0,i.W)(Ee=>(this.logger.info("Trim error: ",Ee),(0,a.of)(!1))))}moveFile(he,Ee){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.MoveFile,{source:he,destination:Ee})}copyFile(he,Ee){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.CopyFile,{source:he,destination:Ee})}deleteFile(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.RemoveGalleryItem,{file:he})}overwriteOriginal(he,Ee){return this.logger.info("Overwriting original!"),this.deleteFile(Ee).pipe((0,r.ZZ)(()=>(this.logger.info("Original deleted!"),this.moveFile(he,Ee))))}getMetaData(he){return this.bridgeService.executeCommand(g.Ts.Common.Gallery.GetFileMetadata,{file:he})}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(h.NZ))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();var Dn=d(44202),zn=d(36203),Ti=function(qn){return qn.Normal="normal-color",qn.Bright="bright-color",qn.Warning="warning-color",qn.Error="error-color",qn}(Ti||{}),Xt=function(qn){return qn[qn.Off=0]="Off",qn[qn.Standard=1]="Standard",qn[qn.Compact=2]="Compact",qn}(Xt||{});let xn=(()=>{var qn;class Sr{constructor(he,Ee,Pe,Qe,Be,Mt,Vt,Vn){this.injector=he,this.igoConfig=Ee,this.loggingService=Pe,this.hotkeyService=Qe,this.osdService=Be,this.bridgeService=Mt,this.systemInfoService=Vt,this.featureSupportService=Vn,this.throttleDuration=500,this.statsWindowPosition=L.VH.rightTop,this.statsWindowSize=L.QY.standard,this.statsRunning=!1,this.mrPosition=L.VH.none,this.irPosition=L.VH.none,this.hlPosition=L.VH.none,this.micPosition=L.VH.none,this.mrState=!1,this.irState=!1,this.hlState=!1,this.micState=!1,this.statistics$=new l.B7,this.statsHotkey$=new l.B7,this.totalDroppedFrames=0,this.previousPacketLoss=0,this.networkData={roundTripDelay:0,streamingFps:0,gameEngineFps:0,frameLoss:"0",totalFrameLoss:"0",packetLoss:"0",totalPacketLoss:"0",totalAvailableBandwidth:0,bandwidthUsed:0,bandwidthPrecentage:0,networkName:"",connectionType:"",isVpnOn:!1,resolution:"",resolutionLabel:"",serverLoc:"",hdrStreamingStatus:"",streamingCodec:"",bitDepth:void 0},this.colorDataEnabled=!0,this.colorData={roundTripDelay:Ti.Bright,streamingFps1:Ti.Bright,streamingFps2:Ti.Normal,gameEngineFps:Ti.Bright,packetLoss1:Ti.Bright,packetLoss2:Ti.Normal,packetLossTotal:Ti.Normal,frameLoss:Ti.Normal,frameLossTotal:Ti.Normal,totalAvailableBandwidth:Ti.Normal,connectionType:Ti.Normal,vpnIndicator:Ti.Normal,resolution:Ti.Normal,serverLoc:Ti.Normal},this.statsStateSubject=new p.t(Xt.Off),this.statsEvent={state:Xt.Off,position:this.statsWindowPosition,size:this.statsWindowSize,data:this.networkData,colors:this.colorData},this.zone="",this.zoneDefault="",this.hdrSupportedForCurrentGame=!1,this.streamingStatsSubject=new l.B7,this.statsStopListening=new l.B7,this.stopPerf=new l.B7,this.totalBlockedTime=0,this.hdrStreamingStatus="","GFN"===this.igoConfig.branding&&(this.gridService=this.injector.get(xt.Gip),this.gfnInfoService=this.injector.get(_e.x_),this.streamingService=this.injector.get(zn.IC),this.translateService=this.injector.get(de.c$),this.logger=this.loggingService.getLogger("StatisticsService"))}init(){this.logger.info("Initializing Statistics Service"),this.hotkeyService.listen(c.g8.StatisticsToggle).subscribe(()=>{this.logger.info("Hotkey for Statistics toggle pressed.");const he=this.statsStateSubject.getValue();let Ee;Ee=this.featureSupportService.isISSOCompactMode()?he===Xt.Off?Xt.Compact:Xt.Off:he===Xt.Compact?Xt.Off:he+1,this.statsStateSubject.next(Ee),this.toggleStatistics(),this.statsHotkey$.next(Ee)}),this.streamingService.streamingEvent$.pipe((0,re.p)(he=>he.event===zn.CW.STREAMING_TERMINATED||he.event===zn.CW.STOP_RESULT)).subscribe(()=>{this.killStats()}),this.gfnInfoService.getHDRSupportInfo().subscribe(he=>{this.hdrSupportedForCurrentGame=he,this.logger.info("HDR support for current game: ",this.hdrSupportedForCurrentGame)}),this.featureSupportService.isIssoPerfOptimizationEnabled()?(this.logger.info("Optimization enabled to improve perf on switching ISSO off"),this.statsStateSubject.asObservable().pipe((0,r.ZZ)(he=>(this.logger.info("Toggling ISSO ",he),this.bridgeService.executeCommand(g.Ts.Gfn.Streaming.ToggleISSOStats,{enableIsso:he!==Xt.Off})))).subscribe(he=>{this.logger.info("ToggleISSOStats success ",he)},he=>this.logger.error("ToggleISSOStats failed ",he.toString())),this.streamingStatsObservable=this.streamingStatsSubject.asObservable()):(this.logger.info("Optimization for ISSO disabled"),this.streamingStatsObservable=this.bridgeService.executeCommand(g.Ts.Gfn.Streaming.GetStreamStats,{}))}getStatsDetails(){this.featureSupportService.isIssoPerfOptimizationEnabled||this.logger.info("Optimization for ISSO disabled, so skipping"),this.bridgeService.executeCommand(g.Ts.Gfn.Streaming.GetStreamStats,{}).pipe((0,nn.Q)(this.statsStopListening),(0,G.M)(he=>{this.streamingStatsSubject.next(he)})).subscribe()}toggleStatistics(){this.statsWindowPosition=this.osdService.getPosition(L.lb.Statistics),this.statsWindowSize=this.osdService.getStatsSize(),this.logger.info("Stat Position: "+this.statsWindowPosition+" Size: "+this.statsWindowSize),this.statsRunning?(this.statsRunning=this.statsStateSubject.getValue()!==Xt.Off,this.sendUICurrentData()):(this.sendUICurrentData(),this.updateStatsData(),this.getStatsDetails())}updateStatsData(){if(this.statsStateSubject.getValue()!==Xt.Off){const he=!this.statsRunning;this.statsRunning=!0;const Ee=[];he&&(this.zone=this.zoneDefault="",Ee.push(this.gridService?.defaultZone$.pipe((0,G.M)(Pe=>{Pe&&(this.zoneDefault=Pe.name)}))),Ee.push(this.gridService?.detectedLocalZone$.pipe((0,G.M)(Pe=>{Pe&&(this.zone=Pe.name)})))),Ee.push(this.systemInfoService.getSystemInfo([h.Lu.Network]).pipe((0,G.M)(Pe=>{this.networkInfo=Pe.Network}))),Ee.push(this.streamingStatsObservable.pipe((0,G.M)(Pe=>{this.streamingStats=Pe}))),Ee.push((0,a.of)(this.gfnInfoService.getHDRStreamingStatus()).pipe((0,G.M)(Pe=>{this.hdrStreamingStatus=Pe?"commonLabels.Active":this.gfnInfoService.getIsHDrFeatureAvailable()&&this.hdrSupportedForCurrentGame?"commonLabels.Inactive":""}))),(0,$.yU)(...Ee).pipe((0,et.s)(1)).subscribe(()=>{this.updateUIData(),this.getStatsData()},Pe=>{this.logger.error("UpdateStats Error: ",Pe.toString()),he&&(this.statsRunning=!1),this.getStatsData()})}else this.statsStopListening.next(!0)}getStatsData(){setTimeout(()=>{this.updateStatsData()},1e3)}sendUICurrentData(){this.statsEvent={state:this.statsStateSubject.getValue(),position:this.statsWindowPosition,size:this.statsWindowSize,data:this.networkData,colors:this.colorData},this.statistics$.next(this.statsEvent)}updateUIData(){const he=this.streamingStats,Ee=he.streamStats.frameWidth,Pe=he.streamStats.frameHeight,Qe=this.gfnInfoService.getFormattedAspectRatio(Ee,Pe),Be=this.translateService.instant("settings.gameplay.ResView",{resWidth:Ee,resHeight:Pe,aspectRatio:Qe}),Mt=this.gfnInfoService.getResolutionLabel(he.streamStats.frameWidth,he.streamStats.frameHeight);this.totalDroppedFrames+=he.streamStats.droppedFrames;const Vt=he.streamStats.packetloss-this.previousPacketLoss;this.previousPacketLoss=he.streamStats.packetloss;const Vn=he.streamStats.bandwidth||0,Rn=he.streamStats.bandwidthUtilization,_i=Math.round((he.streamStats.streamBitrate||0)/1e3),wr=Math.round(Vn/1e3);let hr=he.streamStats.serverZone?.toUpperCase().replace(/-/g,"\u2011");hr=void 0===hr||""===hr?"--":hr;const Qr=""===this.zone?this.zoneDefault:this.zone,Yr=void 0!==this.networkInfo?.NetworkName&&""!==this.networkInfo?.NetworkName,no=void 0!==this.networkInfo?.NetworkType&&""!==this.networkInfo?.NetworkType;let ro,Tr="";if(h.zk.isNativeLikePlatform()?(Tr="",ro=this.gfnInfoService.getColorBitDepth()):(Tr=he.streamStats?.codec,ro=he.streamStats?.bitDepth),this.networkData={roundTripDelay:he.streamStats.roundTripDelayMs||0,streamingFps:he.streamStats.frameRate||0,gameEngineFps:he.streamStats.avgGameFrameRate||0,frameLoss:he.streamStats.droppedFrames.toString(),totalFrameLoss:this.totalDroppedFrames.toString(),packetLoss:Vt.toString(),totalPacketLoss:he.streamStats.packetloss.toString(),totalAvailableBandwidth:wr,bandwidthUsed:_i,bandwidthPrecentage:Rn,networkName:Yr?this.networkInfo?.NetworkName:"--",connectionType:no?this.networkInfo?.NetworkType:"--",isVpnOn:"1"===this.networkInfo?.IsVPN,resolution:Be,resolutionLabel:Mt,serverLoc:Qr+" ("+hr+")",hdrStreamingStatus:this.hdrStreamingStatus,streamingCodec:Tr,bitDepth:ro},this.colorDataEnabled){const po=this.networkData.roundTripDelay<=40?Ti.Bright:this.networkData.roundTripDelay<=80?Ti.Warning:Ti.Error;let Os=Ti.Normal;this.networkData.connectionType?.includes("2.4")&&(Os=Ti.Warning),this.colorData={roundTripDelay:po,streamingFps1:Ti.Bright,streamingFps2:Ti.Normal,gameEngineFps:Ti.Bright,packetLoss1:0===Vt?Ti.Bright:Ti.Error,packetLoss2:0===Vt?Ti.Normal:Ti.Error,packetLossTotal:0===he.streamStats.packetloss?Ti.Normal:Ti.Error,frameLoss:0===he.streamStats.droppedFrames?Ti.Normal:Ti.Error,frameLossTotal:0===this.totalDroppedFrames?Ti.Normal:Ti.Error,totalAvailableBandwidth:Ti.Normal,connectionType:Os,vpnIndicator:"1"===this.networkInfo?.IsVPN?Ti.Warning:Ti.Normal,resolution:Ti.Normal,serverLoc:Ti.Normal}}this.sendUICurrentData()}getStatisticsEvents(){return this.statistics$.asObservable()}statisticsLayoutChanged(){this.toggleStatistics()}statisticsStateChanged(he){this.statsStateSubject.next(he),this.toggleStatistics()}statisticsHotkeyPressed(){return this.statsHotkey$.asObservable()}getStatsState(){return this.statsStateSubject.getValue()}killStats(){this.totalDroppedFrames=0,this.previousPacketLoss=0,this.statsRunning=!1,this.statsStateSubject.next(Xt.Off),this.sendUICurrentData()}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(m.zZn),m.KVO(T.k),m.KVO(h.J6),m.KVO(c.QS),m.KVO(L.au),m.KVO(h.NZ),m.KVO(h.zW),m.KVO(ke.R))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})(),mi=(()=>{var qn;class Sr{constructor(he,Ee,Pe,Qe,Be,Mt,Vt,Vn,si,Rn,_i,wr,hr,Qr,Yr,no,Tr,ro,po,Os,es,Bs,li){this.loggingService=he,this.osService=Ee,this.hotkey=Pe,this.oscDisplay=Qe,this.cacheService=Be,this.oscNotification=Mt,this.galleryService=Vt,this.sdkGalleryService=Vn,this.shadowPlayService=si,this.webcamService=Rn,this.igoConfig=_i,this.nvcamera=wr,this.ppeService=hr,this.osdService=Qr,this.telemetryHelperService=Yr,this.gfnInfo=no,this.memeService=Tr,this.oscDisplayService=ro,this.trimService=po,this.clientInputService=Os,this.featureSupportService=es,this.statisticsService=Bs,this.injector=li,this.logger=this.loggingService.getLogger("IGO ServiceLoader"),this.isInitialised=!1}init(){return this.logger.info("Serviceloaderservice init"),this.featureSupportService.init().pipe((0,y.T)(he=>(this.logger.info("Feature Support Data: ",he),!!this.isInitialised||(this.featureSupportService.isGFEMode()&&(this.lcarsService=this.injector.get(Gt.B),this.perfMonService=this.injector.get(ye.z)),!!he?.igo&&(he?.initData?(this.isInitialised=!0,this.initSelectiveServices(he)):(this.isInitialised=!0,this.initAllServices(),this.igoConfig.RecordingFeaturesDisabled=!0,setTimeout(()=>this.oscDisplayService.openOSC(),1e3)),!0)))))}initAllServices(){this.initBaseServices(),this.shadowPlayService.init(),this.webcamService.init(),this.nvcamera.init(),this.ppeService.init(),this.clientInputService.init(),this.featureSupportService.isGFEMode()?(this.perfMonService?.init(),this.lcarsService?.init()):this.statisticsService.init()}initSelectiveServices(he){he.hotkey&&this.hotkey.init(),he.oscDisplay&&this.oscDisplay.init(),he.os&&this.osService.init().subscribe(()=>{he.oscNotification&&this.oscNotification.init(),he.cache&&this.cacheService.init(),he.gallery&&this.galleryService.init(),he.sdkGallery&&this.sdkGalleryService.init(),he.meme&&this.memeService.init(),he.trim&&this.trimService.init(),he.telemetryHelper&&this.telemetryHelperService.init()}),he.gfnInfo&&this.gfnInfo.init(),he.osd&&this.osdService.init(),he.shadowPlay&&this.shadowPlayService.init(),he.webcam&&this.webcamService.init(),he.nvcamera&&this.nvcamera.init(),he.ppe&&this.ppeService.init(),he.clientInput&&this.clientInputService.init(),he.statistics&&this.statisticsService.init(),he.inStreamPaste&&(this.customPasteService=this.injector.get(ct),this.customPasteService?.init()),this.featureSupportService.isGFEMode()&&(this.lcarsService?.init(),he.perfMon&&this.perfMonService?.init())}initBaseServices(){this.hotkey.init(),this.oscDisplay.init(),this.osService.init().subscribe(()=>{this.oscNotification.init(),this.cacheService.init(),this.galleryService.init(),this.sdkGalleryService.init(),this.memeService.init(),this.trimService.init(),this.telemetryHelperService.init()}),this.gfnInfo.init(),this.osdService.init()}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(A),m.KVO(c.QS),m.KVO(_.B),m.KVO(K),m.KVO(ue.mb),m.KVO(qt),m.KVO(se.P),m.KVO(De.W1),m.KVO(st),m.KVO(T.k),m.KVO(Zi),m.KVO(Lr),m.KVO(L.au),m.KVO(ce.x),m.KVO(_e.x_),m.KVO(Zt),m.KVO(_.B),m.KVO(Zn),m.KVO(Dn.$),m.KVO(ke.R),m.KVO(xn),m.KVO(m.zZn))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();var $n=d(72582),Pt=d(25373);let Ii=(()=>{var qn;class Sr{constructor(he,Ee){this.loggingService=he,this.bridgeService=Ee,this.logger=this.loggingService.getLogger("KeyboardService")}onKeyDown(he,Ee){switch(he.key){case"ArrowDown":Ee===_n.Bottom?(he.stopPropagation(),he.preventDefault()):(this.bridgeService.executeCommand(g.Ts.Share.Osc.GenerateKeyboardMessage,{keycode:Pt.wn,keymodifier:0}).subscribe(Pe=>{this.logger.info("ArrowDown pressed"+Pe)}),he.stopPropagation());break;case"ArrowUp":Ee===_n.Top?(he.stopPropagation(),he.preventDefault()):(this.bridgeService.executeCommand(g.Ts.Share.Osc.GenerateKeyboardMessage,{keycode:Pt.wn,keymodifier:Pt.FX}).subscribe(Pe=>{this.logger.info("ArrowUp pressed"+Pe)}),he.stopPropagation())}}}return(qn=Sr).\u0275fac=function(he){return new(he||qn)(m.KVO(h.J6),m.KVO(h.NZ))},qn.\u0275prov=m.jDH({token:qn,factory:qn.\u0275fac,providedIn:"root"}),Sr})();d(78854);var Jt=d(43827),Fr=(d(10918),d(27271)),xo=d(72438)},45152:(Ue,W,d)=>{"use strict";d.d(W,{QA:()=>p,Tk:()=>S,Wr:()=>l,gE:()=>m,pW:()=>a,so:()=>_});var n=d(74931),l=function(L){return L.Video="video",L.Image="image",L.Other="other",L}(l||{}),p=function(L){return L.Temporary="temporary",L.Highlights="highlights",L}(p||{}),m=n.Or.Common.Gallery.AudioType,_=function(L){return L.Normal="Normal",L.SuperResolution="SuperResolution",L.SuperResolutionOversized="SuperResolution_Oversized",L.Mono360="360Mono",L.Stereo="Stereo",L.Stereo360="360Stereo",L.Exr="Exr",L.Live="Live",L.Offline="Offline",L.Highlights="Highlight",L.Mta="MTA",L.NormalAnsel="Normal_Ansel",L.Gif="AnimatedGif",L.InstantReplay="InstantReplay",L.Manual="Manual",L.Screenshot="Screenshot",L}(_||{});class S{constructor(){this.total=0,this.highlights=0,this.videos=0,this.instantReplays=0,this.images=0,this.highlightBreakDown=[]}}var a=function(L){return L.HIGHLIGHT_COMPLETED="highlightCompleted",L.MOVE_STARTED="moveStarted",L.MOVE_INPROGRESS="moveInProgress",L.MOVE_DONE="moveDone",L}(a||{})},12137:(Ue,W,d)=>{"use strict";d.d(W,{k:()=>n});class n{}},10918:(Ue,W,d)=>{"use strict";d.d(W,{w:()=>l,z:()=>n});const n={igo:!0,shadowPlay:!0,webcam:!1,nvcamera:!0,ppe:!0,graphics:!0,clientInput:!1,hotkey:!0,oscDisplay:!0,os:!0,oscNotification:!0,cache:!0,gallery:!0,sdkGallery:!0,telemetryHelper:!0,meme:!1,trim:!1,gfnInfo:!1,osd:!0,gfnMicrophone:!1,statistics:!1,gamepadOrientedMode:!1,virtualKeyboard:!1,controlUGC:!1,connectionStatus:!1,isKBMGameSupported:!0,inputControlHints:!1,nvKeyboardSupported:!1,clientIME:!1,useGamepadLSControl:!1,shortcutControls:!1,title:!0,feedback:!0,links:!0,gameplay:!0,virtualKeyboardOnMobile:!0,perfMon:!0,reflexAnalyzer:!0,inStreamPaste:!1},l={initData:{},...n}},22123:(Ue,W,d)=>{"use strict";d.d(W,{$1:()=>L,Af:()=>_,Bv:()=>g,Jm:()=>A,P8:()=>S,US:()=>P,Zi:()=>m,dJ:()=>i,ho:()=>a,jy:()=>r,n:()=>T,sT:()=>y});var n=d(26875);const m=3,_=100,P=100,S=!0,y="nvcamera.GameFilter",r="nvcamera.PhotoMode";class i{constructor(V,D,F,I,k=[],R=!1,G=!1,Y=[],K=!1){this.id=V,this.name=D,this.isSelected=F,this.stackIdx=I,this.controls=k,this.isPPEFilter=R,this.isExpanded=G,this.errorCodes=Y,this.isVisible=K}}class a{constructor(){this.filters=[],this.selectedFilterCount=0,this.upButtonDisabled=!0,this.downButtonDisabled=!0}moveSelectionUp(){const V=this.filters.length,D=new Set;for(let F=V-2;F>=0;F--)this.filters[F].isSelected&&!this.filters[F+1].isSelected&&(this.swapFilters(F,F+1),D.add(F),D.add(F+1));return D}moveSelectionDown(){const V=this.filters.length,D=new Set;for(let F=1;F<V;F++)this.filters[F].isSelected&&!this.filters[F-1].isSelected&&(this.swapFilters(F,F-1),D.add(F),D.add(F-1));return D}deleteSelection(){const V=this.getIndicesOfSelection();return(0,n.remove)(this.filters,function(D){return D.isSelected}),this.selectedFilterCount=this.selectedFilterCount-V.length,V.reverse()}filterClicked(V,D){V.isSelected!==D&&(D?this.selectedFilterCount++:this.selectedFilterCount--),V.isSelected=D}getIndicesOfSelection(){const V=[];return this.filters.forEach((D,F,I)=>{D.isSelected&&V.push(F)}),V}getSelectedFilters(){return this.filters.filter(V=>V.isSelected)}swapFilters(V,D){if(V<0||V>=this.filters.length||D<0||D>=this.filters.length)return;const F=this.filters[V];this.filters[V]=this.filters[D],this.filters[D]=F,this.filters[V].stackIdx=V,this.filters[D].stackIdx=D}deserialize(V){if(!V.filters)return!1;const D=this;return D.selectedFilterCount=V.selectedFilterCount,D.upButtonDisabled=V.upButtonDisabled,D.downButtonDisabled=V.downButtonDisabled,V.filters.forEach((F,I)=>{const k=new i(F.id,F.name,F.isSelected,F.stackIdx,F.controls);D.filters[I]=k}),!0}}class h{constructor(V,D){this.filterStack=new a,this.id=V,this.altText=D,this.slotName=void 0}deserialize(V){if(!V.filterStack)return!1;const D=this;return D.id=V.id,D.altText=V.altText,D.slotName=V.slotName,D.slotHotkey=V.slotHotkey,D.filterStack.deserialize(V.filterStack)}}class g{constructor(V){this.previewAvailable=!1,this.id=V}}class c{createEmptySlots(V){const D=[];for(let F=0;F<V;F++){const I=0===F?"settings.None":F.toString();D.push(new h(F,I))}return D}constructor(V){this.lastSlotIdx=0,this.slots=this.createEmptySlots(V),2===V&&(this.lastSlotIdx=1)}deserialize(V){const D=this;if(!V.slots||V.slots.length!==D.slots.length)return!1;let F;return D.lastSlotIdx=V.lastSlotIdx,D.slots.every((I,k)=>(F=I.deserialize(V.slots[k]),F)),F}}class T{constructor(){this.anselSlotsInfo=new c(2),this.modsSlotsInfo=new c(m+1)}deserialize(V){return!(!V.anselSlotsInfo||!V.modsSlotsInfo)&&(this.anselSlotsInfo.deserialize(V.anselSlotsInfo)&&this.modsSlotsInfo.deserialize(V.modsSlotsInfo))}}class A{constructor(){this.filterPresets={}}deserialize(V){if(!V.filterPresets)return!1;const D=this;let F;return Object.keys(V.filterPresets).every(I=>(D.filterPresets[I]=new T,F=D.filterPresets[I].deserialize(V.filterPresets[I]),F)),F}}const L=["Auto Depth of Field","Black & White","Brightness/Contrast","Color","Colorblind","Depth of Field","Details","Letterbox","Night mode","Old film","Painterly","Sharpen","Sharpen+","SpecialFX","Splitscreen","Tilt-shift","Vignette","Watercolor"]},43827:(Ue,W,d)=>{"use strict";d.d(W,{Qe:()=>n,ly:()=>l,xT:()=>m});var n=function(_){return _.off="off",_.on="on",_.recording="recording",_}(n||{}),l=function(_){return _.active="Active",_.stopped="Stopped",_.paused="Paused",_}(l||{}),m=function(_){return _.low="Low",_.medium="Medium",_.high="High",_.ultra="Ultra",_.custom="Custom",_}(m||{})},44202:(Ue,W,d)=>{"use strict";d.d(W,{$:()=>i});var n=d(93455),l=d(43848),p=d(80583),m=d(8619),_=d(43780),P=d(75707),v=d(65706),O=d(73934),S=d(58527),y=d(3567),r=d(12137);let i=(()=>{var a;class h{get inputControlUIOpened$(){return this.inputUISubject.asObservable().pipe((0,m.p)(c=>!0===c))}get inputControlUIClosed$(){return this.inputUISubject.asObservable().pipe((0,m.p)(c=>!1===c))}get systemKeyboardState$(){return this.systemVirtualKeyboardService.keyboardVisible$}get imeOpened$(){return this.clientImeLoaderService?.imeOpened$??(0,l.of)(!1)}get isImeEnabled$(){return this.clientImeLoaderService?.isImeEnabled$??(0,l.of)(!1)}get imeInputInProgress(){return this.clientImeLoaderService?.imeInputInProgress??!1}get imeInputTextVisible$(){return this.clientImeLoaderService?.imeInputTextVisible$??(0,l.of)(!1)}constructor(c,T,A,L,x){this.igoConfig=T,this.injector=A,this.hotkeyService=L,this.systemVirtualKeyboardService=x,this.inputUISubject=new p.B7,this.clientImeLoaderService=null,this.throttleMs=333,this.logger=c.getLogger("IGO ClientInputService"),this.igoConfig.GFNCefClient&&(this.clientImeLoaderService=this.injector.get(n.R3))}init(){this.logger.info("Initializing ClientInputService"),this.igoConfig.GFNCefClient&&this.hotkeyService.listen(O.g8.NativeKeyboardInputDialog).pipe((0,_.c)(this.throttleMs),(0,P.ZZ)(()=>this.clientImeLoaderService.isImeEnabled$.pipe((0,v.s)(1)))).subscribe(c=>{this.clientImeLoaderService.imeInputInProgress?this.clientImeLoaderService.closeImeInputHandler():(this.logger.info("ClientIME window opening triggered"),c?(this.logger.info("ClientIME feature is enabled, opening IME window"),this.clientImeLoaderService.initImeInputHandler(n.vy.HotKey)):this.logger.info("ClientIME feature is disabled"))})}toggleInputUI(c){this.inputUISubject.next(c)}initImeInput(c){this.clientImeLoaderService?.initImeInputHandler(c)}controlImeInput(c){this.clientImeLoaderService?.controlImeInput(c)}closeImeInput(){this.clientImeLoaderService?.closeImeInputHandler()}}return(a=h).\u0275fac=function(c){return new(c||a)(S.KVO(y.J6),S.KVO(r.k),S.KVO(S.zZn),S.KVO(O.QS),S.KVO(y.zH))},a.\u0275prov=S.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),h})()},24964:(Ue,W,d)=>{"use strict";d.d(W,{e:()=>r});var n=d(8619),l=d(65706),p=d(75707),m=d(83915),_=d(18880),P=d(58527),v=d(11728),O=d(26537),S=d(30783),y=d(61876);let r=(()=>{var i;class a{constructor(g,c,T,A){this.oscDisplayService=g,this.dialog=c,this.snackbar=T,this.focusManager=A}openAlertDialog(g,c=!0,T=!0){const A={panelClass:["nv-hig","nv-igo","nv-overlay-panel"],disableClose:c,autoFocus:!1,data:g};return this.oscDisplayService.getCanShowUI().pipe((0,n.p)(L=>L),(0,l.s)(1),(0,p.ZZ)(()=>this.oscDisplayService.getCurrentOpenState()),(0,l.s)(1),(0,m.T)(L=>{const x="open"!==L;x&&this.oscDisplayService.openOSC("");const V=this.focusManager.restoreFocusAfterClosed(()=>this.dialog.open(_.Q6,A));return V.afterClosed().subscribe(D=>{T&&(D=!0),x&&D&&this.oscDisplayService.closeOSC()}),V}))}closeAll(){this.dialog.closeAll()}openSnackBar(g,c="",T=5e3){return this.snackbar.open(g,c,{duration:T,horizontalPosition:"left",panelClass:["nv-hig","nv-igo"]})}closeSnackBar(){this.snackbar.dismiss()}}return(i=a).\u0275fac=function(g){return new(g||i)(P.KVO(v.B),P.KVO(O.bZ),P.KVO(S.nf),P.KVO(y.c_))},i.\u0275prov=P.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),a})()},2688:(Ue,W,d)=>{"use strict";d.d(W,{R:()=>A});var n=d(61142),l=d(43848),p=d(65706),m=d(75707),_=d(10174),P=d(14714),v=d(83915),O=d(74931),S=d(3567),y=d(97152),r=d(10918),i=d(10132),a=d(58527),h=d(12137),g=d(54292),c=d(93012),T=d(50801);let A=(()=>{var L;class x{constructor(D,F,I,k,R,G,Y,K){this.injector=F,this.bridgeService=I,this.igoConfig=k,this.systemInfoService=R,this.browserSupportService=G,this.projectInterfaceService=K,this.useAlternateHotkeyForIGO=!1,this.isGuestAppFlow=!1,this.logger=D.getLogger("igo/FeatureSupportService"),this.isBrowserPlatform=S.zk.isBrowserPlatform(),"GFE"===this.igoConfig.branding&&this.applyNvAPPModeClassOnBody(),this.isCaptureSupported=!0,"GFN"===this.igoConfig.branding&&(this.guestModeHelperService=this.injector.get(y.xDS),this.appConfig=this.injector.get(y.Vk6),this.tvMode=!!this.appConfig?.featureEnablement?.tvMode,this.isMobileMode=!!this.appConfig?.featureEnablement?.mobileMode,this.isVirtualKbEnabled=!!this.appConfig.featureEnablement.virtualKeyboard,this.inputHintsEnabled=!!this.appConfig.featureEnablement.inputControlHints,this.nvKeyboardSupported=Y.enabled,this.clientImeEnabled=!!this.appConfig.featureEnablement.clientIME,this.useGamepadLSControl=!!this.appConfig.featureEnablement.useGamepadLSControl,this.useAlternateHotkeyForIGO=!!this.appConfig.featureEnablement.useAlternateHotkeyForIGO,this.isGuestAppFlow=this.guestModeHelperService.isGuestAppFlow(),this.isVirtualControllerEnabled=!!this.appConfig.featureEnablement?.virtualController,this.blurInputOnSoftKeyboardDismissal=!!this.appConfig?.featureEnablement?.blurInputOnSoftKeyboardDismissal,this.displayOnscreenKeyboardUsage=!!this.appConfig?.igo?.displayOnscreenKeyboardUsage),this.initFeatureControl()}setIgoFeatureSupportData(D){return{igo:!0,shadowPlay:this.isShadowPlayEnabled(),webcam:this.isWebcamEnabled(),nvcamera:this.isNvcameraEnabled(),ppe:this.isPpeEnabled(),graphics:this.isGraphicsEnabled(),clientInput:!0,hotkey:!0,oscDisplay:!0,os:!0,oscNotification:!0,cache:!0,gallery:this.isGalleryEnabled(),sdkGallery:this.isSdkGalleryEnabled(),telemetryHelper:!0,meme:this.isMemeEnabled(),trim:this.isTrimEnabled(),gfnInfo:!0,osd:!0,gfnMicrophone:this.evaluateGfnMicEnablement(D),statistics:this.isStatisticsEnabled(),gamepadOrientedMode:this.isGamepadOrientedMode(),virtualKeyboard:this.isVirtualKeyboardEnabled(),controlUGC:this.isControlUGCEnabled(),connectionStatus:this.isConnectionStatusEnabled(),isKBMGameSupported:this.isKeyboardMouseGamesAllowed(),inputControlHints:this.isInputControlHintsEnabled(),nvKeyboardSupported:this.isNvKeyboardSupported(),clientIME:this.isClientImeEnabled(),useGamepadLSControl:this.isGamepadLSControlUsed(),shortcutControls:this.areShortcutsOveridden(),title:this.showTitle(),feedback:this.showFeedbackSetting(),links:this.showLinks(),gameplay:this.isGameplaySupported(),virtualKeyboardOnMobile:this.isVirtualKeyboardOnMobileSupported(),perfMon:this.isPerfOverlayEnabled(),reflexAnalyzer:this.isReflexAnalyzerEnabled(),inStreamPaste:this.needsDialogForInStreamPaste()}}initFeatureControl(){this.featureControl$="GFN"===this.igoConfig.branding&&this.igoConfig.IGOFeatureEnabled?this.systemInfoService.getSystemInfo([S.Lu.DeviceType]).pipe((0,p.s)(1),(0,m.ZZ)(D=>(this.cachedDeviceType=D.DeviceType,this.isGuestAppFlow&&(this.guestModeConfig=this.guestModeHelperService.getGuestModeConfig()),(0,l.of)(this.setIgoFeatureSupportData(D.DeviceType))))):(0,l.of)(r.z)}evaluateGfnMicEnablement(D){return D!==S.Y0.TV&&!this.isGfnMobileMode()&&(this.guestModeConfig?.igoSettings?.isMicFeatureEnabled??!0)}init(){let D;return this.featureControl$.pipe((0,m.ZZ)(F=>(D=F,this.injector.get(n.hj,Promise.resolve(null)))),(0,m.ZZ)(F=>this.bridgeService.executeCommand(O.Ts.Share.Shareserver.GetInitData)),(0,m.ZZ)(F=>(F&&(this.isCaptureSupported=F.captureSupported),D.igo?(this.igoSupportData={initData:F,...D},(0,l.of)(this.igoSupportData)):(this.logger.info("Disabling IGO due to feature toggle"),this.igoSupportData=r.w,this.bridgeService.executeCommand(O.Ts.Share.Shareserver.SetCaptureSupported,{supported:!1}).pipe((0,_.u)(this.igoSupportData))))),(0,P.W)(F=>(this.logger.info("Error occured while fetching GetInitDataReturn : ",F),(0,l.of)(this.igoSupportData))))}isShadowPlayEnabled(){return!this.isBrowserPlatform&&this.isCaptureSupported}isIgoWithoutBrowserPlatform(){return!this.isBrowserPlatform}isWebcamEnabled(){return!this.isGFEMode()&&!this.isBrowserPlatform}isNvcameraEnabled(){return!this.isBrowserPlatform}isPpeEnabled(){return"GFN"!==this.igoConfig.branding}isGraphicsEnabled(){return!1}isGalleryEnabled(){return!this.isBrowserPlatform&&this.isCaptureSupported}isSdkGalleryEnabled(){return!this.isBrowserPlatform}isMemeEnabled(){return!this.isBrowserPlatform}isTrimEnabled(){return!this.isBrowserPlatform}isMicrophoneEnabled(){return"GFN"!==this.igoConfig.branding}isIssoPerfOptimizationEnabled(){return"GFN"===this.igoConfig.branding&&!!this.appConfig?.igo?.isso?.perfOptimizationEnabled}showPerfLogging(){return"GFN"!==this.igoConfig.branding}isNvApp(){return"GFN"!==this.igoConfig.branding}isGfnMicrophoneEnabled(){return"GFN"===this.igoConfig.branding?this.systemInfoService.getSystemInfo([S.Lu.DeviceType]).pipe((0,p.s)(1),(0,v.T)(D=>this.evaluateGfnMicEnablement(D.DeviceType))):(0,l.of)(!1)}isStatisticsEnabled(){return!("GFE"===this.igoConfig.branding||this.isGuestAppFlow&&!this.guestModeConfig?.igoSettings?.isInGameStatisticsEnabled)}isGamepadOrientedMode(){return this.appConfig?.igo?.enableGamepadMode&&"GFN"===this.igoConfig.branding}isISSOCompactMode(){return this.appConfig?.igo?.isso?.compactOnly&&"GFN"===this.igoConfig.branding}issoLayoutPref(){return this.appConfig?.igo?.isso?.layoutPreference||y.C$e.Default}applyNvAPPModeClassOnBody(){document?document.getElementsByTagName("body")[0].classList.add("nvapp-igo-view"):this.logger.error("Can not add the class, document is undefined")}isTVMode(){return this.tvMode&&"GFN"===this.igoConfig.branding}isVirtualKeyboardEnabled(){return this.isVirtualKbEnabled&&"GFN"===this.igoConfig.branding}isSystemEnabled(){return this.systemInfoService.getDeviceOSType().pipe((0,p.s)(1),(0,v.T)(D=>{const F=D===S.t_.Windows,k=D===S.t_.MacOS;return this.isBrowserPlatform?F||D===S.t_.ChromeOS||k||D===S.t_.XBox:F||k}))}isControlUGCEnabled(){return!this.isBrowserPlatform&&"GFN"===this.igoConfig.branding}isConnectionStatusEnabled(){return"GFN"===this.igoConfig.branding}isKeyboardMouseGamesAllowed(){return"GFN"!==this.igoConfig.branding||this.appConfig?.client?.supportsKeyboardMouseGames}isInputControlHintsEnabled(){return this.inputHintsEnabled&&"GFN"===this.igoConfig.branding}isGfnBrowserDevMode(){return"GFN"===this.igoConfig.branding&&this.isBrowserPlatform&&this.browserSupportService.isStagingOrDevDomain()}isNvKeyboardSupported(){return this.nvKeyboardSupported&&"GFN"===this.igoConfig.branding}isClientImeEnabled(){return this.clientImeEnabled&&"GFN"===this.igoConfig.branding}isGamepadLSControlUsed(){return this.useGamepadLSControl&&"GFN"===this.igoConfig.branding}usesAlternateHotkeyForIGO(){return this.useAlternateHotkeyForIGO&&"GFN"===this.igoConfig.branding}isGfnMobileMode(){return this.isMobileMode&&"GFN"===this.igoConfig.branding}areShortcutsOveridden(){return!!this.isGuestAppFlow&&!!this.guestModeConfig?.igoSettings?.shortcutControls}getHotkeyShortcutsOverrides(){return this.guestModeConfig?.igoSettings?.shortcutControls}showTitle(){return!this.isGuestAppFlow}showFeedbackSetting(){return!this.isGuestAppFlow}showLinks(){return!this.isGuestAppFlow}isGameplaySupported(){return!this.isGuestAppFlow}showTimeLeftMessage(){return!this.isGuestAppFlow}getOverriddenMicPosition(){return!1===this.guestModeConfig?.igoSettings?.isMicFeatureEnabled?i.VH.none:this.guestModeConfig?.igoSettings?.micIconPosition??null}getOverriddenNetworkStatusIconPosition(){return this.guestModeConfig?.igoSettings?.networkStatusIndicatorPosition??null}getOverriddenStatisticsPosition(){return this.guestModeConfig?.igoSettings?.statisticsPosition??null}getIgoOverrideSettings(){return this.isGuestAppFlow?this.guestModeConfig?.igoSettings:null}getForceTouchModeSettings(){return this.projectInterfaceService.getForceTouchMode()}isVirtualControllerSupported(){let D;return this.isGuestAppFlowWrapper()?(D=!1,D=this.isVirtualControllerEnabled&&(this.guestModeConfig?.igoSettings?.virtualGamepad??D)):D=this.isVirtualControllerEnabled,D}isVirtualKeyboardOnMobileSupported(){let D=!0;return this.isGuestAppFlowWrapper()&&(D=this.guestModeConfig?.igoSettings?.virtualKeyboard??D),D}hideExitFullScreenOption(){return this.isGuestAppFlowWrapper()||this.appConfig?.igo?.hideExitFullScreenOption}isGuestAppFlowWrapper(){return this.guestModeHelperService?.isGuestAppFlow()}isGFEMode(){return"GFN"!==this.igoConfig.branding}isRunTimeMaxBitRateConfigSupported(){return S.zk.isNativeLikePlatform()||this.isBrowserPlatform&&!this.isMobileMode}isRunTimeVSYNCConfigSupported(){return!S.zk.isBrowserPlatform()}isRunTimeAdjustPoorNetworkToggleSupported(){return S.zk.isNativeLikePlatform()||this.isBrowserPlatform&&!this.isMobileMode}isPerfOverlayEnabled(){return this.isGFEMode()}isRectOptimizationEnabled(){return!0}isReflexAnalyzerEnabled(){return this.isPerfOverlayEnabled()}needsDialogForInStreamPaste(){return"GFN"===this.igoConfig.branding&&!!this.appConfig?.client?.needsDialogForInStreamPaste}shouldBlurInputOnSoftKeyboardDismissal(){return this.blurInputOnSoftKeyboardDismissal}showOnscreenKeyboardUsageNotification(){return this.displayOnscreenKeyboardUsage}}return(L=x).\u0275fac=function(D){return new(D||L)(a.KVO(S.J6),a.KVO(a.zZn),a.KVO(S.NZ),a.KVO(h.k),a.KVO(S.zW),a.KVO(g.vT),a.KVO(c.RF),a.KVO(T.qQ))},L.\u0275prov=a.jDH({token:L,factory:L.\u0275fac,providedIn:"root"}),x})()},59002:(Ue,W,d)=>{"use strict";d.d(W,{$0:()=>re,Fm:()=>X,x_:()=>ge});var n=d(8619),l=d(83915),p=d(65706),m=d(43780),_=d(25590),P=d(75707),v=d(91384),O=d(14714),S=d(3567),y=d(74931),r=d(50801),i=d(57388),a=d(36203),h=d(93455),g=d(97152),c=d(26513),T=d(80583),A=d(43848),L=d(31315),x=d(3496),V=d(1794),F=d(54292),I=d(73934),k=d(20381),R=d(23860),G=d(58527),Y=d(12137),K=d(2688),$=d(11728),ee=d(72428),J=d(44202),z=d(65240),te=function(oe){return oe[oe.MIN_COMPACT_ICON_DURATION=1e3]="MIN_COMPACT_ICON_DURATION",oe[oe.MIN_EXPANDED_NETWORK_MESSAGE_DURATION=6e3]="MIN_EXPANDED_NETWORK_MESSAGE_DURATION",oe}(te||{}),X=function(oe){return oe[oe.RECORD_SPECIAL_CASE_NONE=0]="RECORD_SPECIAL_CASE_NONE",oe[oe.RECORD_SPECIAL_CASE_4K=1]="RECORD_SPECIAL_CASE_4K",oe[oe.RECORD_SPECIAL_CASE_PLAYTEST=2]="RECORD_SPECIAL_CASE_PLAYTEST",oe}(X||{}),re=function(oe){return oe[oe.NORMAL=0]="NORMAL",oe[oe.WARNING=1]="WARNING",oe[oe.ALERT=2]="ALERT",oe}(re||{});let ge=(()=>{var oe;class xe{constructor(N,se,ce,Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt,qt){this.injector=N,this.igoConfig=se,this.featureSupportService=ce,this.browserSupportService=Z,this.oscDisplayService=de,this.projectInterfaceService=ae,this.loggingService=pe,this.bridgeService=_e,this.hotkeyService=ke,this.hotkeyShareService=De,this.microphoneService=Me,this.notifierService=je,this.clientInputService=$e,this.dbService=Oe,this.systemInfoService=gt,this.translateService=qt,this.streamingEndTime=-1,this.appTitle="",this.appInstanceId="",this.currentGameProfileName="",this.gfnEnabled=!1,this.imeEnabled=!1,this.throttleMs=333,this.isGfnMicEnabled=!1,this.hdrStreamingStatus=!1,this.$disableRecordSpecialCase=new c.t(X.RECORD_SPECIAL_CASE_NONE),this.$gpuFriendlyName=new c.t(""),this.$streamingTerminated=new T.B7,this.$networkState=new c.t(re.NORMAL),this.subscriptions=[],this.networkStatusInit=!1,this.globalStore=null,this.igoNotifications="IgoNotifications",this.netWorkNotificationEnabled=!1,this.getGameHdrSupportInfo=new T.B7,this.micIconStatus=new c.t(!1),this.logger=this.loggingService.getLogger("GfnInfoService"),this.globalStore=this.dbService.getGlobalStore(this.igoNotifications)}init(){this.logger.info("GfnInfo service init"),!0===this.igoConfig.GFNCefClient&&this.igoConfig.IGOFeatureEnabled&&(this.streamerConfigService=this.injector.get(g.zi2),this.streamerHelperService=this.injector.get(g.HFx),this.streamingProfileService=this.injector.get(g.xfC),this.playtestLiveService=this.injector.get(g.CC_),this.cloudVariableHelperService=this.injector.get(g.r1C),this.ecommerceService||(this.ecommerceService=this.injector.get(g.yJU)),this.streamingService||(this.streamingService=this.injector.get(a.IC),this.logger.info("StreamingService not injected init")),this.streamingService.streamingEvent$.pipe((0,n.p)(N=>N.event===a.CW.SESSION_SETUP_SUCCESS)).subscribe(N=>{this.onSessionSetupSuccess(N),this.onGetGpuName(N),this.onGetGameName()}),this.streamingService.streamingEvent$.pipe((0,n.p)(N=>N.event===a.CW.STREAMING_CLIENT_MESSAGE)).subscribe(N=>{this.processStreamingClientMessage(N)}),this.streamingService.streamingEvent$.pipe((0,n.p)(N=>N.event===a.CW.STREAMING_BEGIN)).subscribe(()=>{this.appTitle=this.streamingService.streamingParams.appName,this.streamingEndTime=-1,this.getHDRGameSupportInfo()}),this.streamingService.streamingEvent$.pipe((0,n.p)(N=>N.event===a.CW.STREAMING_BEGIN||N.event===a.CW.STOP_RESULT||N.event===a.CW.STREAMING_TERMINATED),(0,l.T)(N=>(this.logger.info("Microphone Icon Status update ",N.event),N.event===a.CW.STREAMING_BEGIN?this.micIconStatus.next(!0):(N.event===a.CW.STOP_RESULT||N.event===a.CW.STREAMING_TERMINATED)&&this.micIconStatus.next(!1),!0))).subscribe(),this.feedbackService=this.injector.get(i.n1),this.surveyService=this.injector.get(g.Icg),this.nesUserInfoService=this.injector.get(g.lWV),this.gfcHelperService=this.injector.get(g.q8U),this.lcarsService=this.injector.get(g.Br4),this.appConfig||(this.appConfig=this.injector.get(g.Vk6)),S.zk.isBrowserPlatform()&&this.gfcHelperService.getAppInstanceId().subscribe(N=>{this.appInstanceId=N}),this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,p.s)(1)).subscribe(N=>{this.isGfnMicEnabled=N,N?(this.hotkeyService.startListeningToHotkey(I.g8.MicToggle).pipe((0,p.s)(1)).subscribe(),this.hotkeyService.listen(I.g8.MicToggle).pipe((0,m.c)(this.throttleMs),(0,_.E)(this.microphoneService.currentMicState$)).subscribe(([se,ce])=>{ce!==r.EO.PermissionPending&&ce!==r.EO.PermissionDenied&&this.microphoneService.toggleMicrophone()}),this.streamingService.streamingEvent$.pipe((0,n.p)(se=>se.event===a.CW.STREAMING_BEGIN)).subscribe(()=>{this.microphoneService.start(this.streamingService.streamingProperties.sessionId,this.streamingService.streamingProperties.subSessionId)})):!N&&!this.featureSupportService.isShadowPlayEnabled()&&this.hotkeyService.stopListeningToHotkey(I.g8.MicToggle)}),this.streamingService.streamingEvent$.pipe((0,n.p)(N=>N.event===a.CW.STREAMING_TERMINATED||N.event===a.CW.STOP_RESULT)).subscribe(()=>{this.isGfnMicEnabled&&this.microphoneService.stop(),this.$gpuFriendlyName.next(""),this.$streamingTerminated.next(!0),this.$networkState.next(re.NORMAL),this.networkNotificationSubscription&&(this.networkNotificationSubscription.unsubscribe(),this.networkNotificationSubscription=void 0)}),this.idmService=this.injector.get(g.k_2),this.idmService.accountStatusChanged.subscribe(N=>{this.feedbackService.onAccountStatusChanged({userId:N.userId,externalUserId:N.externalId,idpId:N.idpId,isAuthenticated:N.isAuthenticated})}),this.gfnEnabled=!0,this.projectInterfaceService.triggerQuitStreaming.subscribe(N=>{N&&this.quitStreaming()}),this.clientInputService.isImeEnabled$.subscribe(N=>{this.logger.info("Checking ClientIME enablement value ",N),this.imeEnabled=N,this.imeEnabled?(this.hotkeyShareService.removeFromIgnoredHotkeysSet(I.g8.NativeKeyboardInputDialog),this.hotkeyService.startListeningToHotkey(I.g8.NativeKeyboardInputDialog).subscribe()):this.hotkeyService.stopListeningToHotkey(I.g8.NativeKeyboardInputDialog)},N=>{this.logger.info("Error getting ClientIME enablement value, defaulting to false",N),this.hotkeyService.stopListeningToHotkey(I.g8.NativeKeyboardInputDialog),this.imeEnabled=!1}),this.releaseHighlights=this.injector.get(g.wIR),this.networkConfigurationService=this.injector.get(g.uUB),this.networkBarsUiService=this.injector.get(h.E3),this.settingsService=this.injector.get(g.h$Q),this.networkConfigurationService.getNetworkOverride().subscribe(N=>{null!=N&&(this.currentServer1={server:N.name})}),this.networkConfigurationService.getCurrentCachedZone().subscribe(N=>{null!=N&&(this.currentServer2={server:N.name})}),S.zk.isBrowserPlatform()||this.registerHDRStreamingStatusNotification(),this.streamingService.streamingEvent$.pipe((0,n.p)(N=>(N.event===a.CW.STREAMING_PROPERTY_UPDATE&&N)?.updateType===a.XK.BIT_DEPTH)).subscribe(N=>{this.colorBitDepth=N?.bitDepth,this.logger.info("Received color bit depth ",this.colorBitDepth)}),this.projectInterfaceService.exitStreamerFlowNotify.subscribe(N=>{this.logger.info("Streamer exit notification received"),this.colorBitDepth=void 0})),"GFN"===this.igoConfig.branding&&(this.experienceControlService=this.injector.get(k.BW),this.experienceControlService.batchCvsFetchedStatus$.pipe((0,p.s)(1),(0,P.ZZ)(N=>N?this.isIgssEnabledInConfig():(0,A.of)(!0))).subscribe(),this.checkIfOscEnabled())}checkIfOscEnabled(){this.streamerHelperService.isOscEnabled()?(this.logger.info("Open IGO hotkey blocked for OSC enabled clients on GDN"),this.hotkeyService.updateBlockedHotkeysList(I.g8.OpenIGO,!0)):this.logger.info("OSC is disabled, so Open IGO hotkey will not be blocked")}getstreamerConfig(){return this.streamerConfigService.activeConfig}updateSessionLengthTime(N){const se=N?.message?.timerData;se&&se.beforeEventMS?this.streamingEndTime=Date.now()+se.beforeEventMS:this.logger.error("Missing timerData params:",JSON.stringify(se))}processStreamingClientMessage(N){const se=N;se?.message?.messageType===g.HD9.sessionLengthTimer&&this.updateSessionLengthTime(se)}getStreamingEndTime(){return this.streamingEndTime}getStreamingTitle(){return this.appTitle}quitGfnStreaming(){this.gfnEnabled&&(this.oscDisplayService.closeOSC(F.oy.QuitGath),this.quitStreaming())}quitStreaming(){this.projectInterfaceService.exitStreamerCallBack().pipe((0,p.s)(1)).subscribe(()=>this.oscDisplayService.gfnQuitting())}exitFullScreen(){this.browserSupportService.exitFullscreen()}sendFeeback(N){if(this.feedbackService.setUpToastContainer(N),!this.gfnEnabled)return;const se=()=>this.streamerConfigService.config$.pipe((0,P.ZZ)(de=>this.surveyService.getAvailableSurvey([V.TriggerType.Feedback],`${de.cmsId}`,this.streamingService.streamingProperties.sessionId))),ce=()=>this.surveyService.isSurveyFeatureAvailable([V.TriggerType.Feedback]),Z=()=>this.surveyService.surveyEventListenerCloseDialog(V.TriggerType.Feedback);this.nesUserInfoService.fetchUserInfoWithStreamingUrl().pipe((0,P.ZZ)(de=>this.feedbackService.initializeFeedback(de.serviceEndpoint.loginProvider,se,ce,this.appInstanceId)),(0,n.p)(de=>de),(0,p.s)(1)).subscribe(()=>{this.feedbackService.onOpenFeedbackDialog(Z)})}getAppMetadataUsingCmsId(N){return this.lcarsService.getMetadataByCmsId(N)}getAppMetaDataUsingParentId(N){return this.lcarsService.getAppdata(N).pipe((0,l.T)(se=>se[0]))}getRecordSpecialCase(){return this.$disableRecordSpecialCase.asObservable()}onSessionSetupSuccess(N){if(this.logger.info("OnSessionSetupSuccess EventInfo: ",N),this.hasWarningBeenShown=this.hasAlertBeenShown=this.ignoreQScore=!1,this.getNetworkNotificationStateFromMall(),this.networkStatusInit||(this.networkStatusInit=!0,this.networkStatus()),!this.featureSupportService.isControlUGCEnabled()||!this.igoConfig.ControlUGCEnabled)return void this.$disableRecordSpecialCase.next(X.RECORD_SPECIAL_CASE_NONE);const se=N.streamSettings[0].videoSettings.resolution.width,ce=N.streamSettings[0].videoSettings.resolution.height,Z=N.streamSettings[0].videoSettings.frameRate,ae=se*ce;this.logger.info("videoSettings.resolution.width : ",se),this.logger.info("videoSettings.resolution.height: ",ce),this.playtestLiveService.disableClientRecord()?(this.logger.info("SpecialCase: PLAYTEST"),this.$disableRecordSpecialCase.next(X.RECORD_SPECIAL_CASE_PLAYTEST)):ae>=4953600&&Z>=120||Z>=240?(this.logger.info("Streaming at 4K like resolution with fps >= 120"),this.$disableRecordSpecialCase.next(X.RECORD_SPECIAL_CASE_4K)):ae>=4953600?(this.logger.info("Streaming at 4K, check if transcode to 1440p is supported for record"),this.bridgeService.executeCommand(y.Ts.Share.Shareserver.GetIf4KRecordingFallbackAvailable).subscribe(pe=>{this.logger.info("GetIf4KRecordingFallbackAvailable result:",pe),pe?(this.logger.info("SpecialCase: NONE"),this.$disableRecordSpecialCase.next(X.RECORD_SPECIAL_CASE_NONE)):(this.logger.info("SpecialCase: 4K"),this.$disableRecordSpecialCase.next(X.RECORD_SPECIAL_CASE_4K))},pe=>{this.logger.error("GetIf4KRecordingFallbackAvailable error:",pe),this.logger.info("SpecialCase: 4K"),this.$disableRecordSpecialCase.next(X.RECORD_SPECIAL_CASE_4K)})):(this.logger.info("SpecialCase: NONE"),this.$disableRecordSpecialCase.next(X.RECORD_SPECIAL_CASE_NONE))}getGpuName(){return this.$gpuFriendlyName.asObservable()}getCodec(){return this.streamingService||(this.streamingService=this.injector.get(a.IC),this.logger.info("StreamingService not injected getCodec")),this.streamingService.getStreamingCodec()}onGetGpuName(N){this.$gpuFriendlyName.next(N.gpuType)}streamingTerminated(){return this.$streamingTerminated.asObservable()}onGetGameName(){const N=this.bridgeService.executeCommand(y.Ts.Share.Shareserver.RegisterAppNotifications).pipe((0,n.p)(se=>!!se?.appStarted)).subscribe(se=>{this.currentGameProfileName=se.appStarted.profileName,N.unsubscribe()})}showReleaseHighlight(N){this.releaseHighlights.onShowReleaseHighlight(!1,N,"0")}getCurrentServer(){const N=null==this.currentServer1;return N&&null==this.currentServer2?{server:"Auto"}:N?this.currentServer2:this.currentServer1}networkStatus(){const N=(0,L.zV)([this.networkBarsUiService.qualityInfo$,this.systemInfoService.getSystemInfo([S.Lu.DeviceType]).pipe((0,p.s)(1))]).pipe((0,n.p)(()=>!this.ignoreQScore),(0,v.M)(()=>{this.ignoreQScore=!0})).subscribe(([se,ce])=>{let Z=!1;if(this.netWorkNotificationEnabled)if(this.isQosUnderThreshold(se.streamQuality))if(se.streamQuality>this.appConfig.networkIndicators.alertThreshold){const de=!(this.hasWarningBeenShown||this.hasAlertBeenShown),ae="notification.network.spottyConnection";this.hasWarningBeenShown=!0,de?(Z=!1,this.notifierService.show(R.Ed.NetworkSpottyConnection,ae)):(Z=!0,this.$networkState.next(re.WARNING))}else{if(this.hasAlertBeenShown)Z=!0,this.$networkState.next(re.ALERT);else{Z=!1;const ae=ce.DeviceType===S.Y0.Phone?R.wz.Message1:this.featureSupportService.isGuestAppFlowWrapper()?R.wz.Message2:R.wz.None;this.notifierService.show(R.Ed.NetworkBadConnection,"","","","",{useAlternativeMessage:ae})}this.hasAlertBeenShown=!0}else this.$networkState.next(re.NORMAL);else Z=!1;this.delayTimer(Z)});this.subscriptions.push(N)}getHDRSupportInfo(){return this.getGameHdrSupportInfo.asObservable()}getTimerSubString(){return this.ecommerceService.getUserMembership().pipe((0,O.W)(N=>(this.logger.error("User Membership fetch failed ",N),(0,A.of)(null))),(0,l.T)(N=>{const se=this.appConfig?.productV2?.timeCapSKUEnabled,ce=N?.product?.shortDescription,Z=N?.subscription?.subType===g.hz6.TIME_CAPPED;return se&&Z?N?.subscription?.currentSubscriptionState?.state===g.zZZ.LIMITED&&N?.subscription?.currentSubscriptionState?.isGamePlayAllowed?(this.logger.info("User in limited playable state"),ce?this.translateService.instant("mainMenu.GfnLimitedStateWarningShortDescr",{arg:ce}):this.translateService.instant("mainMenu.GfnLimitedStateWarning")):(this.logger.info("User not in limited playable state"),ce??null):(this.logger.info("Time Capped SKU feature NOT enabled ",se,Z),ce??null)}))}getHDRGameSupportInfo(){const N=this.getstreamerConfig().cmsId;let se;se=N?this.getAppMetadataUsingCmsId(N):this.getAppMetaDataUsingParentId(this.streamerConfigService.activeConfig.parentGameId),se.pipe((0,l.T)(ce=>{const de=ce.variants.some(ae=>this.lcarsService.isFeatureSupportedOnVariant(ae,g.$_h[g.N1D.HDR_ENABLED]));this.getGameHdrSupportInfo.next(de)})).subscribe()}getIsHDrFeatureAvailable(){return this.ecommerceService.isFeatureAvailableToUser(g.N1D.HDR_ENABLED,g.q3U.SUPPORT_HDR)}getResolutionLabel(N,se){return this.streamingProfileService.getResolutionLabel(N,se)}getHDRStreamingStatus(){return this.hdrStreamingStatus}isPlatformSupportsHDRDecode(){return this.streamingProfileService.IsPlatformSupportsHDRDecode}getFormattedAspectRatio(N,se){return this.streamingProfileService.calculateAspectRatio(N,se)}getNetworkNotificationStateFromMall(){this.networkNotificationSubscription=this.settingsService?.networkWarningsEnabled$.subscribe(N=>{this.netWorkNotificationEnabled=N,this.globalStore.setItem("noteConnectionStatus",N).pipe((0,p.s)(1)).subscribe(()=>{this.logger.info("Network Notification enabled: ",N)},se=>{this.logger.error(`Unable to set noteConnectionStatus in store ${this.igoNotifications}`,se)})})}getNetworkWarningsEnabledState(){return this.settingsService?.networkWarningsEnabled$??(0,A.of)(!1)}getNetworkState(){return this.$networkState.asObservable()}delayTimer(N){const ce=(0,x.O)(N?te.MIN_COMPACT_ICON_DURATION:te.MIN_EXPANDED_NETWORK_MESSAGE_DURATION).subscribe(()=>{this.ignoreQScore=!1});this.subscriptions.push(ce)}isQosUnderThreshold(N){return N<=this.appConfig.networkIndicators.warningThreshold}getColorBitDepth(){return this.colorBitDepth}registerHDRStreamingStatusNotification(){this.bridgeService.executeCommand(y.Ts.Gfn.Streaming.RegisterHDRStreamingStatusNotification).subscribe(N=>{this.hdrStreamingStatus=N,this.logger.info("registerHDRStreamingStatusNotification: HDR streaming status: ",N)},N=>{this.logger.error("registerHDRStreamingStatusNotification error:",N)})}isIgssEnabledInConfig(){return S.zk.isNativeLikePlatform()?(0,A.of)(!0):this.cloudVariableHelperService.getFeatureToggle(g.Yi6.ENABLE_BROWSER_IGSS).pipe((0,p.s)(1))}showMicIcon(){return this.micIconStatus.asObservable()}checkIfBitDepthAvailable(){return this.ecommerceService||(this.ecommerceService=this.injector.get(g.yJU)),this.appConfig||(this.appConfig=this.injector.get(g.Vk6)),!!this.appConfig?.productV2?.bitDepthFeatureEnabled&&this.ecommerceService?.isFeatureAvailableToUser(g.N1D.BIT_DEPTH,g.q3U.HIGHER_BIT_DEPTH)}}return(oe=xe).\u0275fac=function(N){return new(N||oe)(G.KVO(G.zZn),G.KVO(Y.k),G.KVO(K.R),G.KVO(F.vT),G.KVO($.B),G.KVO(r.qQ),G.KVO(S.J6),G.KVO(S.NZ),G.KVO(I.QS),G.KVO(ee.f),G.KVO(r.CQ),G.KVO(R.mb),G.KVO(J.$),G.KVO(S.at),G.KVO(S.zW),G.KVO(z.c$))},oe.\u0275prov=G.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),xe})()},34414:(Ue,W,d)=>{"use strict";d.d(W,{R:()=>_});var n=d(3567),l=d(76560),p=d(58527),m=d(97152);let _=(()=>{var P;class v{constructor(S){this.guestModeHelperService=S}get(S,y){const r=S===n.t_.MacOS?l.oO:l.vO;return this.guestModeHelperService.isGuestAppFlow()&&((S===n.t_.MacOS?l.kO:l.Hu)?.forEach((a,h)=>{void 0!==r.get(h)&&r.set(h,a)}),S===n.t_.MacOS&&y===n.dZ.SAFARI&&l.Gj?.forEach((a,h)=>{void 0!==r.get(h)&&r.set(h,a)})),r}}return(P=v).\u0275fac=function(S){return new(S||P)(p.KVO(m.xDS))},P.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}),v})()},73934:(Ue,W,d)=>{"use strict";d.d(W,{g8:()=>I,DX:()=>k,QS:()=>R});var n=d(80583),l=d(93181),p=d(43848),m=d(8619),_=d(83915),P=d(75707),v=d(14714),O=d(65706),S=d(10174),y=d(91384),r=d(3567),i=d(74931),a=d(26875);class h{constructor(Y){this.osrName=Y}}const c={CMD:new h("cmd"),N0:new h("0"),ALT:new h("alt"),TAB:new h("tab"),CTRL:new h("ctrl")};var T=d(36466),A=d(58527);let L=(()=>{var G;class Y{constructor($,ee,J){this.bridgeService=ee,this.systemInfoService=J,this.keyPressCallback$=new n.B7,this.keyBindings=new Map,this.platformUniqueKeys=new Map,this.logger=$.getLogger("gfn/KeybindingService"),this.setPlatformUniqueKeys(),this.init()}registerKeyBinding($,ee){if(0===$.length)throw Error("Key combination cannot have length 0");for(const z of $)if(this.platformUniqueKeys.has(z)&&!this.platformUniqueKeys.get(z).includes(ee))throw Error(`Key ${z.osrName} is not supported by current platform`);const J=this.generateKeyBindingName($);if(this.keyBindings.has(J))throw Error("Key combination already exists in keyBindings");return this.keyBindings.set(J,$),this.osrRegisterCustomKeyPress(J,J).subscribe(T.l,z=>{this.logger.error(`Failed to register ${J} with error`,z)}),new Y.KeyBindImpl(J,this,this.keyPressCallback$.pipe((0,m.p)(z=>z===J)))}unregisterKeyBinding($){if(!this.keyBindings.has($))throw Error(`Key binding ${$} does not exist and cannot be unregisterd.`);this.keyBindings.delete($),this.osrUnregisterCustomKeyPress($).subscribe(T.l,ee=>{this.logger.error(`Failed to unregister ${$} with error`,ee)})}generateKeyBindingName($){return(0,a.map)($,"osrName").join("-")}init(){this.registerKeybindingCallback()}setPlatformUniqueKeys(){this.platformUniqueKeys.set(c.CMD,[r.t_.MacOS])}registerKeybindingCallback(){this.logger.info("osrRegisterKeyPressCallback"),this.systemInfoService.getDeviceOSType().pipe((0,P.ZZ)($=>this.bridgeService.executeCommand(i.Ts.Gfn.Streaming.OsrRegisterKeyPressCallback,{osType:$}))).subscribe($=>{if(null!==$){const ee=$.toString();this.checkIfKeyBindingIsPresent(ee)?this.logger.info("Keybinding is present ",ee):this.logger.error("Unhandled custom keypress event type: ",ee)}else this.logger.error("null custom keypress event: ",$)},$=>{this.logger.error("osrRegisterKeyPressCallback callback failure",$)})}checkIfKeyBindingIsPresent($){let ee=!1;const J=$.split("-").slice().sort();return Array.from(this.keyBindings?.keys())?.forEach(te=>{const X=te?.split("-").slice().sort();(0,a.isEqual)(J,X)&&(ee=!0,this.keyPressCallback$.next(te),this.logger.info("keyPressCallback$ is updated with ",te))}),ee}osrRegisterCustomKeyPress($,ee){return this.logger.info("osrRegisterCustomKeyPress",$,ee),this.bridgeService.executeCommand(i.Ts.Gfn.Streaming.OsrRegisterCustomKeyPress,{name:$,keyCombination:ee})}osrUnregisterCustomKeyPress($){return this.logger.info("osrUnregisterCustomKeyPress",$),this.bridgeService.executeCommand(i.Ts.Gfn.Streaming.OsrUnregisterCustomKeyPress,{keyCombination:$})}}return(G=Y).KeyBindImpl=class{constructor(K,$,ee){this.keyBindingName=K,this.parent=$,this.keyPressed$=new n.B7,ee.subscribe(this.keyPressed$)}get onKeyPressed$(){return this.keyPressed$.asObservable()}unregister(){this.parent.unregisterKeyBinding(this.keyBindingName),this.keyPressed$.complete()}},G.\u0275fac=function($){return new($||G)(A.KVO(r.J6),A.KVO(r.NZ),A.KVO(r.zW))},G.\u0275prov=A.jDH({token:G,factory:G.\u0275fac,providedIn:"root"}),Y})();var x=d(25216),V=d(12137),D=d(72428),F=d(34414),I=i.Or.Share.Shareserver.HotkeyEnum,k=function(G){return G.Valid="Valid",G.Invalid="Invalid",G.InUse="InUse",G.Error="Error",G}(k||{});let R=(()=>{var G;class Y{listen($){return this.hkCallback$.pipe((0,m.p)(ee=>ee===$))}listenPTT(){return this.hkPTTCallback$.asObservable()}constructor($,ee,J,z,te,X,re,ge){this.loggingService=$,this.bridgeService=ee,this.igoConfig=J,this.injector=z,this.hotkeyShareService=te,this.hotKeyHelper=X,this.systemInfoService=re,this.hotkeyDefaultMappingService=ge,this.hkCallback$=new n.B7,this.hkPTTCallback$=new n.B7,this.hotkeyList={},this.gfnHotkeyMappings={},this.keybindingService=null,this.streamerManagerService=null,this.blockHotkeys=!1,this.blockedHotkeysMap=new Map,this.logger=this.loggingService.getLogger("HotkeyService")}init(){this.logger.info("Hotkey service init"),!0===this.igoConfig.GFNCefClient&&this.igoConfig.IGOFeatureEnabled&&(this.keybindingService=this.injector.get(L),this.streamerManagerService=this.injector.get(x.cp)),this.getAllHotkeys(),this.bridgeService.executeCommand(i.Ts.Share.Shareserver.RegisterHotkeyNotifications).subscribe($=>this.hotkeyEvent($))}updateBlockedHotkeysList($,ee){ee?this.blockedHotkeysMap.set($,!0):!ee&&this.blockedHotkeysMap.has($)?this.blockedHotkeysMap.delete($):this.logger.error("Incorrect combination of hotkey and update",$,ee)}hotkeyEvent($){null===$||(this.logger.info("Hotkey: ",$),this.blockHotkeys||void 0===$.hotkey)||("PTT"===$.hotkey?this.hkPTTCallback$.next("Down"===$.state):this.hkCallback$.next($.hotkey))}getAllHotkeys(){const $=Object.keys(I).map(J=>I[J]),ee=[];$.forEach(J=>{const z=I[J];ee.push(this.getHotkeyNum(z).pipe((0,_.T)(te=>(this.logger.info(`Hot key mapping for ${z} :`,te),this.hotkeyList[z]=te,!0))))}),(0,l.p)(ee).subscribe(()=>{$.forEach(J=>{const z=I[J];this.keybindingService&&this.hotkeyList[z]&&this.hotkeyList[z].length>0&&this.registerGfnHotkey(z,this.hotkeyList[z])})})}getHotkeyNum($){return this.hotkeyList[$]?(0,p.of)(this.hotkeyList[$]):this.bridgeService.executeCommand(i.Ts.Share.Shareserver.GetHotkeyShortcut,{hotkey:$}).pipe((0,_.T)(ee=>ee.keys))}getHotkeyString($){return this.hotkeyList[$]?(0,p.of)(this.hotKeyHelper.shortcutToString(this.hotkeyList[$])):this.getHotkeyNum($).pipe((0,_.T)(ee=>this.hotKeyHelper.shortcutToString(ee)))}setHotkeyString($,ee){return this.checkIfValidGfnHotkey(ee).pipe((0,P.ZZ)(J=>J?this.bridgeService.executeCommand(i.Ts.Share.Shareserver.SetHotkeyShortcut,{hotkey:$,keys:ee}):(0,p.of)({_return_internal:i.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Error_InvalidArg})),(0,_.T)(J=>J._return_internal===i.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Success_Ok?(this.keybindingService&&(this.gfnHotkeyMappings[$]&&(this.gfnHotkeyMappings[$].unregister(),this.gfnHotkeyMappings[$]=void 0),(1!==ee.length||0!==ee[0])&&this.registerGfnHotkey($,ee)),this.hotkeyList[$]=ee,k.Valid):J._return_internal===i.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Error_InvalidArg?k.Invalid:J._return_internal===i.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Error_HotkeyInUse?k.InUse:(this.logger.info("SetHotkeyShortcut Unhandled result: ",J._return_internal),k.Error)),(0,v.W)(J=>(this.logger.info("SetHotkeyShortcut failed: ",J),(0,p.of)(k.Error))))}checkForDup($,ee){let J=!1;const z=$.slice().sort();return ee.forEach(te=>{if(this.hotkeyList[te].length){const X=this.hotkeyList[te].slice().sort();(0,a.isEqual)(z,X)&&(J=!0)}}),J}checkIdenticalEntry($,ee){if(!$||!this.hotkeyList[ee])return!1;const J=$.slice().sort(),z=this.hotkeyList[ee].slice().sort();return(0,a.isEqual)(J,z)}checkIfModifierKey($){let ee=!1;return r.$f.forEach(J=>{J===$&&(ee=!0)}),ee}checkIfWinKey($){return 91===$||92===$}checkIfValidGfnHotkey($){if(!this.keybindingService||!$||0===$.length||1===$.length&&0===$[0])return(0,p.of)(!0);const z=$.map(te=>this.hotKeyHelper.processKey(te).toLowerCase()).map(te=>new h(te)).map(te=>te.osrName).join("-");return this.bridgeService.executeCommand(i.Ts.Gfn.Streaming.OsrCheckKeyPressCombination,{keyCombination:z}).pipe((0,v.W)(te=>(this.logger.info("Check KeyPress Combo err: ",te),(0,p.of)(!0))))}registerGfnHotkey($,ee){if(this.hotkeyShareService.isHotkeyInIgnoredSet($))return void this.logger.info("Skip register gfn hotkey",$);const z=ee.map(te=>this.hotKeyHelper.processKey(te).toLowerCase()).map(te=>new h(te));this.gfnHotkeyMappings[$]&&this.gfnHotkeyMappings[$].unregister(),(1!==ee.length||0!==ee[0])&&this.systemInfoService.getDeviceOSType().pipe((0,O.s)(1)).subscribe(te=>{this.gfnHotkeyMappings[$]=this.keybindingService.registerKeyBinding(z,te),this.gfnHotkeyMappings[$]&&this.gfnHotkeyMappings[$].onKeyPressed$.subscribe(()=>{this.logger.info("key pressed: ",$),this.blockHotkeys||this.streamerManagerService.getCurrentState()!==x.H.Streaming||this.blockedHotkeysMap.has($)?this.logger.info("Hotkey ignored ",$,this.blockHotkeys,this.streamerManagerService.getCurrentState()):this.hkCallback$.next($)})})}blockAllHotkeys($){return this.blockHotkeys=$,this.bridgeService.executeCommand(i.Ts.Share.Shareserver.SetHotkeyMonitoring,{enable:!$}).pipe((0,_.T)(ee=>(this.logger.info("setHotkeyMonitoring returned: ",ee),!0)),(0,v.W)(ee=>(this.logger.error("setHotkeyMonitoring failed: ",ee),(0,p.of)(!1))))}stopListeningToHotkey($){this.hotkeyList[$]&&this.hotkeyList[$].length<=0||(this.keybindingService&&this.gfnHotkeyMappings[$]&&(this.gfnHotkeyMappings[$].unregister(),this.gfnHotkeyMappings[$]=void 0),this.logger.info("Stop listening to hotkey",$),this.hotkeyShareService.addToIgnoredHotkeysSet($))}startListeningToHotkey($){if(void 0===this.hotkeyList[$]||this.hotkeyList[$].length<=0)return(0,p.of)(!0);const ee=this.hotkeyShareService.isHotkeyInIgnoredSet($);return this.logger.info("Start listening to hotkey",$,ee),ee&&this.hotkeyShareService.removeFromIgnoredHotkeysSet($),this.keybindingService?this.resolveInnerConflicts($):(0,p.of)(!0)}resolveInnerConflicts($){const ee=[];return this.systemInfoService.getDeviceOSType().pipe((0,O.s)(1),(0,_.T)(J=>{this.removeMappings($,ee,J),ee&&ee.length>0&&ee.forEach(z=>{this.setHotkeyString(z,this.hotkeyDefaultMappingService.get(J).get(z)).subscribe(te=>{te===k.Valid?this.logger.info("Resolve Conflicts result is: ",te):this.logger.error("Some Error occurred while resolving conflicts")})}),this.registerGfnHotkey($,this.hotkeyList[$])}),(0,S.u)(!0))}removeMappings($,ee,J){const z=this.findDuplicate($,ee,J);void 0!==z&&(this.gfnHotkeyMappings[z]&&(this.gfnHotkeyMappings[z].unregister(),this.gfnHotkeyMappings[z]=void 0),ee.push(z),this.removeMappings(z,ee,J))}findDuplicate($,ee,J){let z;return Object.keys(I).map(X=>I[X]).forEach(X=>{const re=I[X];if(re!==$&&this.hotkeyList[re]?.length>0)if(0===ee.length)this.checkIdenticalEntry(this.hotkeyList[re],$)&&(z=re);else{const ge=this.hotkeyDefaultMappingService.get(J).get($);z=ge&&this.checkIdenticalEntry(ge,re)?re:void 0}}),this.logger.info("duplicate hotkey found: ",z),z}resetToDefaults(){return this.logger.info("resetToDefaults"),this.bridgeService.executeCommand(i.Ts.Share.Shareserver.ResetHotkeysToDefault).pipe((0,v.W)(()=>(0,p.of)(!0)),(0,y.M)(()=>{this.hotkeyList={},this.keybindingService&&Object.keys(I).map(ee=>I[ee]).forEach(ee=>{this.gfnHotkeyMappings[ee]&&(this.gfnHotkeyMappings[ee].unregister(),this.gfnHotkeyMappings[ee]=void 0)}),this.getAllHotkeys()}),(0,S.u)(!0))}}return(G=Y).\u0275fac=function($){return new($||G)(A.KVO(r.J6),A.KVO(r.NZ),A.KVO(V.k),A.KVO(A.zZn),A.KVO(D.f),A.KVO(r.Ho),A.KVO(r.zW),A.KVO(F.R))},G.\u0275prov=A.jDH({token:G,factory:G.\u0275fac,providedIn:"root"}),Y})()},72428:(Ue,W,d)=>{"use strict";d.d(W,{f:()=>_});var n=d(74931),l=d(58527),p=d(3567),m=n.Or.Share.Shareserver.HotkeyEnum;let _=(()=>{var P;class v{constructor(S){this.ignoredHotkeysSet=new Set([m.DVRSave,m.InStreamPaste]),this.logger=S.getLogger("HotkeyShareService")}addToIgnoredHotkeysSet(S){this.ignoredHotkeysSet.add(S),this.logger.info("Added hotkey to ignore set:",S)}removeFromIgnoredHotkeysSet(S){this.ignoredHotkeysSet.delete(S),this.logger.info("Removed hotkey from ignore set:",S)}isHotkeyInIgnoredSet(S){return this.ignoredHotkeysSet.has(S)}}return(P=v).\u0275fac=function(S){return new(S||P)(l.KVO(p.J6))},P.\u0275prov=l.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}),v})()},72438:(Ue,W,d)=>{"use strict";d.d(W,{A:()=>O});var n=d(80583),l=d(43848),p=d(74931),m=d(91384),_=d(14714),P=d(58527),v=d(3567);let O=(()=>{var S;class y{constructor(i,a){this.loggingService=i,this.bridgeService=a,this.localConfigChangedNotification=new n.B7,this.generateExceptionFlag=!1,this.logger=this.loggingService.getLogger("IgoPiplLocaleConfigService"),this.registerForlocaleChangeNotification()}getLocaleOverride(){return this.bridgeService.executeCommand(p.Ts.Common.Nvlocalizedconfig.GetLocalizationData)}setServerURL(i){this.serverURL=i}generateException(){this.generateExceptionFlag=!0}getGenerateExceptionFlag(){return this.generateExceptionFlag}getServerURL(){return this.serverURL}localConfigChangeNotification(){return this.localConfigChangedNotification.asObservable()}registerForlocaleChangeNotification(){this.bridgeService.executeCommand(p.Ts.Common.Nvlocalizedconfig.LocalizationDataChangeNotification).pipe((0,m.M)(i=>{this.logger.info("Received Localization Data Change Notification: ",i),i?.jsEvents?.server!==this.getServerURL()?this.localConfigChangedNotification.next(i):this.logger.info("Telemetry URL unchanged ",i?.jsEvents?.server)}),(0,_.W)(i=>(this.logger.error("Failed to get overrides",i),(0,l.of)(!1)))).subscribe()}}return(S=y).\u0275fac=function(i){return new(i||S)(P.KVO(v.J6),P.KVO(v.NZ))},S.\u0275prov=P.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),y})()},57412:(Ue,W,d)=>{"use strict";d.d(W,{B:()=>L});var n=d(26513),l=d(43848),p=d(36466),m=d(75707),_=d(91384),P=d(8619),v=d(25590),O=d(83915),S=d(14714),y=d(26875),i=d(32727),a=d(74931),h=d(78854),g=d(51830),c=d(58527),T=d(3567),A=d(5798);let L=(()=>{var x;class V{constructor(F,I,k,R,G){this.injector=F,this.loggingService=I,this.endpointFactory=k,this.bridgeService=R,this.localeService=G,this.currentGameChromaInfo$=new n.t({}),this.lcarsResponseTimeout=3e4,this.logger=this.loggingService.getLogger("LcarsService")}populateIgoAppConfig(F){this.logger.info("AppConfig populated"),this.igoAppConfig=F}init(){this.shadowPlayService=this.injector.get(g.W1),this.registerAppNotifications()}getCurrentAppChromaInfo(){return this.currentGameChromaInfo$.asObservable()}registerAppNotifications(){this.listenToAppStartedNotification(),this.listenToAppExitNotification(),this.listenToLocalChangedEvent()}listenToAppStartedNotification(){let F;this.shadowPlayService.registerAppStartedEvent().pipe((0,m.ZZ)(I=>{const k=I.appStarted.ChromaAppId;if(F=I,!k||"None"===k){const R={};return R.id=k,R.nvidiaTech={FREESTYLE:!0,RTXDVC:!0},R.title="",(0,l.of)(R)}return this.getAppAssetsByAppId(F)}),(0,_.M)(I=>{if(!I?.nvidiaTech)return void this.logger.error("erroneous LCARS response:",I);const k={};k.cmsId=F.appStarted.cmsId,k.pid=F.appStarted.pid,k.id=I.id,k.title=I.title,k.nvidiaTech=I.nvidiaTech,this.logger.info("App chroma info fetched for ",k.title),this.currentGameChromaInfo$.next(k)})).subscribe(p.l,I=>{this.logger.error("error to register for app started notification:",I)})}listenToAppExitNotification(){this.bridgeService.executeCommand(a.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,P.p)(F=>!!F.gameExited),(0,v.E)(this.currentGameChromaInfo$.asObservable()),(0,_.M)(([F,I])=>{F.gameExited.exitAppPID===I?.pid&&this.currentGameChromaInfo$.next({})})).subscribe(p.l,F=>{this.logger.error("error to register for app exit notification:",F)})}listenToLocalChangedEvent(){this.localeService.localeChanged.pipe((0,_.M)(F=>{this.currentLocale=F})).subscribe(p.l,F=>{this.logger.error("failed to apply slot automatically: ",F.message)})}fetchAppsAndGamesAssets(F,I){const k=Object.assign({requestType:I},{query:F}),R={headers:this.createHeader(),params:k};return this.queryDataEndpoint=this.endpointFactory.createEndpoint({config:{timeout:this.igoAppConfig.lcarsConfig.defaultTimeout,timeBetweenRetries:this.igoAppConfig.lcarsConfig.defaultTimeBetweenRetries,maxRetries:this.igoAppConfig.lcarsConfig.defaultRetries}}),this.queryDataEndpoint.get((0,i.l2)([this.igoAppConfig.lcarsConfig.serverUrlCDN]),R).pipe((0,O.T)(K=>{const $=K?.data?.apps.items;return(0,y.isEmpty)($)?[]:$}))}getAppAssetsByAppId(F){const k=this.getAppAssetsQueryOptions(this.currentLocale,F.appStarted.ChromaAppId),R=(0,h.a)(k);return this.fetchAppsAndGamesAssets(R,h.c.AppMetaData).pipe((0,O.T)(G=>G[0]),(0,S.W)(G=>{this.logger.error("Error while chroma app metadata query",G);const Y={};return Y.cmsId=F.appStarted.cmsId,Y.pid=F.appStarted.pid,this.currentGameChromaInfo$.next(Y),(0,l.of)(null)}))}getAppAssetsQueryOptions(F,I){return{language:F,appIds:this.forMatStringsArray(Array.isArray(I)?I:[I])}}forMatStringsArray(F){return F.map(I=>JSON.stringify(I)).join(",")}createHeader(){return{"NV-Client-ID":this.igoAppConfig.lcarsConfig.clientId,"NV-Client-Version":this.igoAppConfig.build.version,"Content-Type":"application/graphql"}}}return(x=V).\u0275fac=function(F){return new(F||x)(c.KVO(c.zZn),c.KVO(T.J6),c.KVO(A.t),c.KVO(T.NZ),c.KVO(T.iH))},x.\u0275prov=c.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),V})()},78854:(Ue,W,d)=>{"use strict";d.d(W,{a:()=>l,c:()=>n});var n=function(p){return p.AppMetaData="appMetaData",p}(n||{});const l=p=>`{\n apps(\n language: "${p.language}",\n appIds:[${p.appIds}]) {\n items {\n id\n title\n nvidiaTech {\n ANSEL\n FREESTYLE\n RTXDVC\n REFLEX\n REFLEXFLASHINDICATOR\n REFLEXFIAUTO\n REFLEXSTATS\n }\n }\n }}`},72582:(Ue,W,d)=>{"use strict";d.d(W,{o:()=>v});var n=d(80583),l=d(58527),p=d(3567),m=d(98005),_=d(27211),P=d(14354);let v=(()=>{var O;class S{escapeEvent(){return this.escapeCallback$.asObservable()}centerPaneClosedEvent(){return this.centerPaneCallback$.asObservable()}constructor(r,i,a,h){this.telemetryHelperService=i,this.telemetryIgoService=a,this.router=h,this.disableEscape=!1,this.escapeCallback$=new n.B7,this.centerPaneCallback$=new n.B7,this.centerPaneOpened=!1,this.logger=r.getLogger("NavigationService")}navigate(r,i,a){this.disableEscape=!1;const h=Date.now();return a?this.router.navigate(r,i).then(g=>(this.telemetryIgoService.trackNavigation(h,a),g)):this.router.navigate(r,i)}goToNextNavState(){this.disableEscape||(this.centerPaneOpened?this.centerPaneCallback$.next():this.escapeCallback$.next(),this.centerPaneOpened=!1),this.disableEscape=!1}openCenterPane(r){this.centerPaneOpened&&!r&&this.centerPaneCallback$.next(),this.centerPaneOpened=r}disableEscapeEvent(r){this.disableEscape=r}disableCenterPaneCallback(){this.centerPaneOpened=!1}}return(O=S).\u0275fac=function(r){return new(r||O)(l.KVO(p.J6),l.KVO(m.x),l.KVO(_.S),l.KVO(P.Ix))},O.\u0275prov=l.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),S})()},11728:(Ue,W,d)=>{"use strict";d.d(W,{B:()=>re});var n=d(14354),l=d(26513),p=d(57258),m=d(80583),_=d(43848),P=d(31315),v=d(27731),O=d(16229),S=d(10174),y=d(75707),r=d(8619),i=d(65706),a=d(14714),h=d(72147),g=d(91384),c=d(36666),T=d(3567),A=d(74931),L=d(44968),x=d(16421),V=d(73934),D=d(23860),F=d(53914),I=d(16485),k=d(25216),R=d(54292),G=d(58527),Y=d(2688),K=d(12137),$=d(27211),ee=d(72582),J=d(26537),z=d(30783),te=d(50801),X=d(44202);let re=(()=>{var ge;class oe{getCurrentOpenStateImmediate(){return this.currentOpenState$.value}getCurrentOpenState(){return this.currentOpenState$.asObservable()}getCurrentDesktopModeImmediate(){return"desktop"===this.currentDesktopMode$.value}getCurrentDesktopMode(){return this.currentDesktopMode$.asObservable()}getLastActiveWindow(){return this.lastActiveWindow}getCanShowUI(){return this.showUI$.asObservable()}getIsUIAllowed(){return this.showUI$.value}getHideSidebar(){return this.hideSidebar}getSidebarVisibilityChange$(){return this.sideBarVisible$.asObservable()}setHideSidebar(ue){this.hideSidebar=ue,this.sideBarVisible$.next(!ue)}setOutsideClickState(ue){this.clickOutsideSidebarState=ue}getOutsideClickState(){return this.clickOutsideSidebarState}getRtxHdrStatus$(){return this.rtxHdrState$.asObservable()}getRtxHdrEnable(){return!this.inDesktopMode&&this.rtxHdrState$.value}setRtxHdrStatus(ue){this.rtxHdrState$.next(ue)}getNativeHdrStatus$(){return this.nativeHdrState$.asObservable()}getNativeHdrEnable(){return this.nativeHdrState$.value}isDisplayStateCheckComplete(){return this.hdrStateCheckStatus$.asObservable()}constructor(ue,N,se,ce,Z,de,ae,pe,_e,ke,De,Me,je,$e,Oe,gt){this.featureSupportService=ue,this.hotkeyService=N,this.notifierService=se,this.loggingService=ce,this.bridgeService=Z,this.injector=de,this.ngZone=ae,this.igoConfig=pe,this.telemetryIgo=_e,this.navigationService=ke,this.dialog=De,this.snackBar=Me,this.browserSupportService=je,this.projectInterfaceService=$e,this.gamepadService=Oe,this.clientInputService=gt,this.transitioning=!1,this.openNoInput=0,this.openWithInput=!1,this.needToOpen=!1,this.paintingAllowed=!0,this.lastActiveWindow=null,this.inDesktopMode=null,this.inFakeFSMode=null,this.inGamepadOrientedMode=null,this.isGfnBrowserDevMode=null,this.isGfnMobileMode=null,this.appInFocus=null,this.needTransitionWorkaround=!1,this.pathSegments=[],this.startingState="sidebar/main-menu",this.startingStateName=F.jb.mainMenu,this.osrHandler=null,this.applicationLifetime=null,this.quitShownHandle=null,this.useAlternateHotkeyForIGO=!1,this.currentOpenState$=new l.t("closed"),this.currentDesktopMode$=new l.t("desktop"),this.currentDisplayMode$=new l.t({}),this.showUI$=new l.t(!0),this.gfnStreamerService=null,this.storeDelayedState=void 0,this.osdDisplayRect=[],this.notificationDisplayRect=[],this.hideSidebar=!1,this.sideBarVisible$=new p.m(1),this.rtxHdrState$=new l.t(!1),this.nativeHdrState$=new l.t(!1),this.hdrStateCheckStatus$=new l.t(!1),this.visibileNotificationCount=0,this.notificationVisible$=new m.B7,this.forceOSDDisplayRectUpdate$=new m.B7,this.clickOutsideSidebarState=!0,this.streamerState$=new l.t(void 0),this.logger=this.loggingService.getLogger("OscDisplayService"),this.inGamepadOrientedMode=ue.isGamepadOrientedMode(),this.isGfnBrowserDevMode=ue.isGfnBrowserDevMode(),this.isGfnMobileMode=ue.isGfnMobileMode(),pe.Path&&(this.pathSegments=pe.Path.split("/"))}doOpenWindow(ue,N=!1){return T.zk.isBrowserPlatform()&&ue&&this.browserSupportService.setExitPath(R.oy.IGO),null!==this.osrHandler?this.osrHandler.open(ue).pipe((0,S.u)(null)):(!ue&&N?setTimeout(()=>{this.openNoInput>0&&!this.openWithInput&&this.setDisplayRects().subscribe()},1e3):ue?this.unsetDisplayRects().subscribe():this.setDisplayRects().subscribe(),this.bridgeService.executeCommand(A.Ts.Share.Osc.OpenWindow,{enableInput:ue}))}doCloseWindow(ue){T.zk.isBrowserPlatform()&&this.browserSupportService.resetExitPath(),null===this.osrHandler?(this.unsetDisplayRects().subscribe(),this.hdrStateCheckStatus$.next(!1),this.bridgeService.executeCommand(A.Ts.Share.Osc.CloseWindow).subscribe()):this.osrHandler.close().subscribe()}setDisplayRects(){return this.featureSupportService.isRectOptimizationEnabled()&&"GFE"===this.igoConfig.branding?(this.logger.info("setDisplayRects, visibileNotificationCount:",this.visibileNotificationCount),(0,_.of)(this.visibileNotificationCount).pipe((0,y.ZZ)(ue=>ue>0?this.notificationVisible$.asObservable():(0,_.of)(!1)),(0,r.p)(ue=>!ue),(0,i.s)(1),(0,y.ZZ)(()=>{if(this.openWithInput)return this.logger.info("skipping setDisplayRects, interactive IGO up"),(0,_.of)("true");const ue=this.osdDisplayRect;return this.logger.info("setDisplayRects:",ue),this.bridgeService.executeCommand(A.Ts.Share.Osc.SetDisplayRects,{displayRects:ue})}),(0,a.W)(()=>(0,_.of)("Error setting display rects")))):(0,_.of)("")}unsetDisplayRects(){return this.featureSupportService.isRectOptimizationEnabled()&&"GFE"===this.igoConfig.branding?(this.logger.info("unsetDisplayRects"),this.bridgeService.executeCommand(A.Ts.Share.Osc.SetDisplayRects,{displayRects:[]}).pipe((0,a.W)(()=>(0,_.of)("Error setting display rects")))):(0,_.of)("")}init(){if(this.logger.info("initialized osc display"),this.router=this.injector.get(n.Ix),!0===this.igoConfig.GFNCefClient&&this.igoConfig.IGOFeatureEnabled){const se=this.injector.get(I.Gm);se&&(this.osrHandler=se.createOsrHandler("OscDisplayService")),this.applicationLifetime=this.injector.get(L.lM),this.applicationLifetime&&(this.quitShownHandle=this.applicationLifetime.addWorkOnShutdownRequested(this.gfnQuitting.bind(this))),this.showUI$.next(!1),this.gfnStreamerService=this.injector.get(k.cp),this.gfnStreamerService.getCurrentStateChanges().subscribe(ce=>{this.logger.info("streaming state change: ",ce),this.streamerState$.next(ce),ce===k.H.Streaming?this.gfnStreamingEnter():this.gfnStreamingExit()}),this.projectInterfaceService.triggerCloseIGO.subscribe(ce=>{ce&&this.closeOSC(R.oy.QuitGath)}),this.clientInputService.inputControlUIOpened$.subscribe(()=>{this.closeOSC()}),this.clientInputService.imeOpened$.subscribe(ce=>{ce&&this.closeOSC()})}this.router.events.subscribe(se=>{se instanceof n.Z?this.preNavigate(se.url):se instanceof n.wF&&this.postNavigate()}),this.useAlternateHotkeyForIGO=this.featureSupportService.usesAlternateHotkeyForIGO(),this.bridgeService.executeCommand(A.Ts.Share.Shareserver.RegisterWindowStateChangeNotifications).subscribe(se=>this.windowEvent(se));const ue=(0,P.zV)([this.projectInterfaceService.enableListener,this.getCanShowUI()]).pipe((0,h.n)(([se,ce])=>se&&ce?this.useAlternateHotkeyForIGO?this.gamepadService.onButtonComboPressed$([x.dt.DpadUp,x.dt.LeftBumper]).pipe((0,r.p)(Z=>Z),(0,g.M)(Z=>this.logger.info("IGO hotkey combination buttons pressed."))):this.getCurrentOpenState().pipe((0,h.n)(Z=>{const de=this.gamepadService.onButtonPressed$(x.dt.Start).pipe((0,r.p)(ae=>!1===ae));return"closed"===Z?this.gamepadService.onButtonLongPressed$(x.dt.Start):de.pipe((0,c.i)(1))})):v.t)),N=this.inGamepadOrientedMode?(0,O.h)(this.hotkeyService.listen(V.g8.OpenIGO),ue):this.hotkeyService.listen(V.g8.OpenIGO);this.isGfnMobileMode||N.subscribe(()=>this.toggleOSCFromHotkey()),this.igoConfig.GFNCefClient||(this.bridgeService.executeCommand(A.Ts.Share.Osc.RegisterCloseCommand).subscribe(()=>{this.closeOSC()}),this.bridgeService.executeCommand(A.Ts.Share.Osc.RegisterResizeEvent).subscribe(()=>{this.handleOSCResize()}))}preNavigate(ue){"/"!==ue&&(this.bridgeService.executeCommand(A.Ts.Share.Osc.SetPainting,{enablePainting:!1}).subscribe(),this.paintingAllowed=!1),this.needToOpen&&(this.needToOpen=!1,this.doOpenWindow(!0).subscribe(N=>{N&&"noWindow"!==N&&(this.lastActiveWindow=N),this.notifyOverlayState(!0),this.telemetryIgo.sendStartupTelemetry()}))}postNavigate(){this.needTransitionWorkaround?(this.needTransitionWorkaround=!1,this.router.navigate([...this.pathSegments,{outlets:{igo:[this.startingState]}}]),this.logger.info("Going to starting state now")):(this.paintingAllowed||(this.bridgeService.executeCommand(A.Ts.Share.Osc.SetPainting,{enablePainting:!0}).subscribe(),this.paintingAllowed=!0),this.transitioning=!1)}windowEvent(ue){if(null!=ue)if(this.logger.info("Window event: ",ue),"dismiss"===ue.windowMsg)this.closeOSC();else if("fullscreenTransition"===ue.windowMsg)null!==this.inDesktopMode&&(this.openNoInput||this.openWithInput)&&this.getFSMode().subscribe(N=>{if(this.logger.info("new display state: ",N),this.logger.info("current display state: ",this.currentDisplayMode),!N)return;const se=!N.fullscreen;let ce=!1;!se&&this.currentDisplayMode&&(N.width!==this.currentDisplayMode.width||N.height!==this.currentDisplayMode.height)&&(ce=!0),this.currentDisplayMode=N,(se!==this.inDesktopMode||!se&&N.borderlessMode!==this.inFakeFSMode||ce)&&(this.inDesktopMode=se,this.inFakeFSMode=N.borderlessMode,this.currentDisplayMode$.next(this.currentDisplayMode),this.triggerForcedDisplayRectUpdate(),this.transitionDisplayFullscreen(),this.logger.info("closing OSC because of state change"))});else if("overlayToggle"===ue.windowMsg)this.toggleOSCFromHotkey();else if("showHotkeyMessage"===ue.windowMsg){const N="GFE"===this.igoConfig.branding?"product.NVIDIA":"product.GFN",se="GFE"===this.igoConfig.branding?D.Ed.OpenShareNvApp:D.Ed.OpenShare;this.inGamepadOrientedMode&&!this.useAlternateHotkeyForIGO?this.notifierService.show(se,N,"","","",{useAlternativeMessage:D.wz.Message1}):this.inGamepadOrientedMode&&this.useAlternateHotkeyForIGO?this.notifierService.show(se,"notification.HotkeyForXbox",N):!this.featureSupportService.isGuestAppFlowWrapper()||this.featureSupportService.isGfnMobileMode()||this.featureSupportService.getForceTouchModeSettings()?.useOsc?!this.isGfnMobileMode&&!this.featureSupportService.getForceTouchModeSettings()?.useOsc&&this.hotkeyService.getHotkeyString(A.Or.Share.Shareserver.HotkeyEnum.OpenIGO).subscribe(ce=>{ce&&ce.length&&this.notifierService.show(se,ce,N)}):(0,P.zV)([this.hotkeyService.getHotkeyString(A.Or.Share.Shareserver.HotkeyEnum.OpenIGO),this.featureSupportService.isGfnMicrophoneEnabled()]).pipe((0,i.s)(1)).subscribe(([ce,Z])=>{ce&&ce.length&&this.notifierService.show(se,ce,"","","",{useAlternativeMessage:Z?D.wz.Message2:D.wz.Message3,useAlternativeIcon:!0})})}}gfnStreamingEnter(){this.showUI$.next(!0),this.bridgeService.executeCommand(A.Ts.Gfn.Streaming.OsrSetOverlayResolution,{width:1920,height:1080}).subscribe(),this.storeDelayedState&&this.storeDelayedState.state&&this.storeDelayedState.state.length>0&&setTimeout(()=>{this.openOSC(this.storeDelayedState.state,this.storeDelayedState.stateParams),this.storeDelayedState=void 0},500)}gfnStreamingExit(){this.getIsUIAllowed()&&(this.showUI$.next(!1),this.closeAll(),this.bridgeService.executeCommand(A.Ts.Gfn.Streaming.OsrSetOverlayResolution,{width:0,height:0}).subscribe())}gfnQuitting(){return this.openWithInput&&this.closeOSC(),(0,_.of)(!1)}getFSMode(){return this.bridgeService.executeCommand(A.Ts.Share.Osc.FullscreenState)}getAppInFocus(){return this.appInFocus}requestAppInFocus(){return this.bridgeService.executeCommand(A.Ts.Share.Shareserver.GetCaptureProcessInfo,{appType:A.Or.Share.Shareserver.AppType.in_focus}).pipe((0,y.ZZ)(ue=>(this.logger.info("requestAppInFocus: success ",ue),this.appInFocus=ue,(0,_.of)(!0))),(0,a.W)(ue=>(this.logger.info("requestAppInFocus: error ",ue),(0,_.of)(!0))))}closeAll(){for(this.openWithInput&&this.closeOSC();this.openNoInput>0;)this.closeNonInteractiveOSC();this.doCloseWindow()}openOSC(ue=null,N={}){this.transitioning||(this.clientInputService.imeInputInProgress&&setTimeout(()=>{this.clientInputService.closeImeInput()}),this.clientInputService.toggleInputUI(!1),this.requestAppInFocus().subscribe(()=>{this.openSelectedOSC(ue,N)}))}openSelectedOSC(ue=null,N={}){if(this.showUI$.value)return!ue&&""!==ue&&(ue=this.startingState),this.router.url===this.startingState&&(this.needTransitionWorkaround=!0,ue=null,this.logger.info("Need transition workaround")),this.openWithInput||(this.transitioning=!0,this.openWithInput=!0,this.needToOpen=!0,this.currentOpenState$.next("open")),this.checkDisplayState(),ue&&""!==ue?void this.navigationService.navigate([...this.pathSegments,{outlets:{igo:[...ue.split("/"),N]}}],{skipLocationChange:!0},this.startingStateName):(this.preNavigate("/"),void this.postNavigate());this.storeDelayedState={state:ue,stateParams:N}}navigateToNull(){return this.navigationService.navigate([...this.pathSegments,{outlets:{igo:null}}],{skipLocationChange:!0},F.jb.none)}closeOSC(ue){!this.openWithInput||this.transitioning||(this.dialog.closeAll(),this.snackBar.dismiss(),this.appInFocus=null,this.openWithInput=!1,this.navigateToNull().then(N=>{N||(this.logger.info("navigation failed, retrying"),setTimeout(()=>{this.navigateToNull()},100))},N=>{this.logger.info("navigation rejected: ",N),setTimeout(()=>{this.navigateToNull()},100)}),this.currentOpenState$.next("closed"),this.notifyOverlayState(!1),this.openNoInput>0?(this.logger.info("Open OSC without input"),this.doOpenWindow(!1,!0).subscribe(),setTimeout(()=>{this.setDisplayRects().subscribe()})):(this.logger.info("Close OSC"),this.doOpenWindow(!1,!0).subscribe(),setTimeout(()=>{0===this.openNoInput&&!this.openWithInput&&this.doCloseWindow(ue)},1e3)))}openNonInteractiveOSC(){if(this.logger.info("openNonInteractiveOSC"),!this.showUI$.value)return;this.checkDisplayState();const ue=0===this.openNoInput;this.openNoInput+=1,ue?this.openWithInput||(this.logger.info("Open OSC without input"),this.doOpenWindow(!1).subscribe()):this.logger.info("Non-interactive overlay already up")}closeNonInteractiveOSC(){0!==this.openNoInput&&(this.openNoInput-=1,this.openNoInput<0&&(this.openNoInput=0),setTimeout(()=>{0===this.openNoInput&&!this.openWithInput&&(this.logger.info("Close OSC"),this.doCloseWindow(R.oy.OscNotification))},5e3))}convertRect(ue){return ue.map(N=>({x:Math.round(N.x),y:Math.round(N.y),width:Math.round(N.width),height:Math.round(N.height)}))}setOSDDisplayRectangles(ue){this.osdDisplayRect=this.convertRect(ue),this.openNoInput>0&&!this.openWithInput&&this.setDisplayRects().subscribe()}setNotificationDisplayRectangles(ue){this.notificationDisplayRect=this.convertRect(ue),this.openNoInput>0&&!this.openWithInput&&this.setDisplayRects().subscribe()}transitionDisplayFullscreen(){if(!(this.openNoInput<=0)||this.openWithInput){if(this.openWithInput){if(!(this.dialog.openDialogs.length>0))return this.logger.info("Interactive ui is up during FS transition, closing it"),void this.closeOSC();this.logger.info("Dialog open during FS transition")}this.doCloseWindow(),setTimeout(()=>{this.logger.info("Reopening OSC after state change"),this.doOpenWindow(this.openWithInput).subscribe(()=>{this.inDesktopMode&&this.ngZone.run(()=>{this.logger.info("Refreshing ui on switching to DT mode")})}),this.currentDesktopMode$.next(this.inDesktopMode?"desktop":"fullscreen")},1e3)}}setNotificationStart(){this.visibileNotificationCount++,this.notificationVisible$.next(!0),this.unsetDisplayRects().subscribe()}setNotificationStop(){this.visibileNotificationCount--,this.visibileNotificationCount<0&&(this.logger.error("Something is wrong, visibileNotificationCount < 0"),this.visibileNotificationCount=0),0===this.visibileNotificationCount&&this.notificationVisible$.next(!1),this.setDisplayRects().subscribe()}registerForcedDisplayRectUpdate(){return this.forceOSDDisplayRectUpdate$.asObservable()}triggerForcedDisplayRectUpdate(){this.forceOSDDisplayRectUpdate$.next(!0)}getCurrentDisplayMode(){return this.currentDisplayMode$.asObservable()}checkDisplayState(){this.getFSMode().subscribe(ue=>{if(!ue)return;this.logger.info("display state:",ue);const se=this.inDesktopMode!==!ue.fullscreen||ue.width!==this.currentDisplayMode?.width||ue.height!==this.currentDisplayMode?.height;this.currentDisplayMode=ue,this.inDesktopMode=!ue.fullscreen,this.inDesktopMode&&(ue.hdrMode=!1),se&&this.currentDisplayMode$.next(this.currentDisplayMode),this.nativeHdrState$.next(ue.hdrMode)},ue=>{this.logger.info("Could not query fs state: ",ue),this.inDesktopMode=!0,this.hdrStateCheckStatus$.next(!0)},()=>{this.currentDesktopMode$.next(this.inDesktopMode?"desktop":"fullscreen"),this.hdrStateCheckStatus$.next(!0)})}notifyOverlayState(ue){}toggleOSCFromHotkey(){this.transitioning||(this.openWithInput?this.closeOSC():(this.telemetryIgo.beginStartupTimer(F.gh.openHotkey),this.openOSC()))}handleOSCResize(){this.logger.info("handleOSCResize"),this.triggerForcedDisplayRectUpdate()}}return(ge=oe).\u0275fac=function(ue){return new(ue||ge)(G.KVO(Y.R),G.KVO(V.QS),G.KVO(D.mb),G.KVO(T.J6),G.KVO(T.NZ),G.KVO(G.zZn),G.KVO(G.SKi),G.KVO(K.k),G.KVO($.S),G.KVO(ee.o),G.KVO(J.bZ),G.KVO(z.nf),G.KVO(R.vT),G.KVO(te.qQ),G.KVO(x.bi),G.KVO(X.$))},ge.\u0275prov=G.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"}),oe})()},23860:(Ue,W,d)=>{"use strict";d.d(W,{Ed:()=>O,Jk:()=>S,mb:()=>i,wz:()=>y});var n=d(80583),l=d(43848),p=d(93181),m=d(14714),_=d(91384),P=d(58527),v=d(3567),O=function(a){return a[a.Empty=0]="Empty",a[a.OpenShare=1]="OpenShare",a[a.OpenShareNvApp=2]="OpenShareNvApp",a[a.InstantReplayStarted=3]="InstantReplayStarted",a[a.InstantReplayStopped=4]="InstantReplayStopped",a[a.InstantReplaySaving=5]="InstantReplaySaving",a[a.InstantReplaySaved=6]="InstantReplaySaved",a[a.RecordStarted=7]="RecordStarted",a[a.RecordSaving=8]="RecordSaving",a[a.RecordStopped=9]="RecordStopped",a[a.ScreenshotSaved=10]="ScreenshotSaved",a[a.PhotographicScreenshotSavedToGallery=11]="PhotographicScreenshotSavedToGallery",a[a.WarningFullscreenGameRequired=12]="WarningFullscreenGameRequired",a[a.WarningRecordingStopToCustomize=13]="WarningRecordingStopToCustomize",a[a.WarningHighlightsStopToCustomize=14]="WarningHighlightsStopToCustomize",a[a.WarningRecordingStopToUseFeature=15]="WarningRecordingStopToUseFeature",a[a.WarningInstantReplayStopToUseFeature=16]="WarningInstantReplayStopToUseFeature",a[a.WarningSupportedGameRequired=17]="WarningSupportedGameRequired",a[a.WarningNvidiaGpuRequired=18]="WarningNvidiaGpuRequired",a[a.HighlightsSaved=19]="HighlightsSaved",a[a.FailedToRemove=20]="FailedToRemove",a[a.GalleryIsFull=21]="GalleryIsFull",a[a.DiskSpaceIsLow=22]="DiskSpaceIsLow",a[a.NoSpaceCaptureNotSaved=23]="NoSpaceCaptureNotSaved",a[a.NoSpaceCaptureNotStarted=24]="NoSpaceCaptureNotStarted",a[a.ErrorRestartGame=25]="ErrorRestartGame",a[a.PhotoModeNotAllowedNvApp=26]="PhotoModeNotAllowedNvApp",a[a.PhotoModeNotAllowed=27]="PhotoModeNotAllowed",a[a.CustomOverlaySlotEmpty=28]="CustomOverlaySlotEmpty",a[a.ManualRecordRunning=29]="ManualRecordRunning",a[a.ConnectingToGfnBroadcast=30]="ConnectingToGfnBroadcast",a[a.ConnectedToGfnBroadcast=31]="ConnectedToGfnBroadcast",a[a.FailedToConnectGfnBroadcast=32]="FailedToConnectGfnBroadcast",a[a.DisconnectedFromGfnBroadcast=33]="DisconnectedFromGfnBroadcast",a[a.NetworkSpottyConnection=34]="NetworkSpottyConnection",a[a.NetworkBadConnection=35]="NetworkBadConnection",a[a.OnscreenKeyboardUsage=36]="OnscreenKeyboardUsage",a[a.HDRErrorRecord=37]="HDRErrorRecord",a[a.HDRErrorScreenshot=38]="HDRErrorScreenshot",a[a.HDRErrorHighlight=39]="HDRErrorHighlight",a[a.PerfMonLogging=40]="PerfMonLogging",a[a.PerfMonRectAlignmentWarning=41]="PerfMonRectAlignmentWarning",a[a.PerfMonRfiWarning=42]="PerfMonRfiWarning",a[a.ProtectedContentWarning=43]="ProtectedContentWarning",a}(O||{}),S=function(a){return a[a.Empty=0]="Empty",a[a.OpenOverlay=1]="OpenOverlay",a[a.ConnectionStatus=2]="ConnectionStatus",a[a.SaveIRToGallery=3]="SaveIRToGallery",a[a.SaveMRToGallery=4]="SaveMRToGallery",a[a.SaveSSToGallery=5]="SaveSSToGallery",a[a.SaveHLToGallery=6]="SaveHLToGallery",a[a.IROnOff=7]="IROnOff",a[a.MROn=8]="MROn",a[a.RecordHDRError=9]="RecordHDRError",a[a.HighlightHDRError=10]="HighlightHDRError",a[a.ScreenshotHDRError=11]="ScreenshotHDRError",a[a.ProtectedContentWarning=12]="ProtectedContentWarning",a}(S||{}),y=function(a){return a[a.None=0]="None",a[a.Message1=1]="Message1",a[a.Message2=2]="Message2",a[a.Message3=3]="Message3",a}(y||{});const r={useAlternativeMessage:y.None,useAlternativeIcon:!1,useAlternativeIconClass:""};let i=(()=>{var a;class h{constructor(c,T){this.loggingService=c,this.dbService=T,this.notification$=new n.B7,this.globalStore=null,this.igoNotifications="IgoNotifications",this.globalToggleStore="GlobalToggle",this.globalState=!0,this.initialState=!0,this.controls=[{saveStr:"noteOverlay",control:S.OpenOverlay,enable:this.initialState,controlledNotifiers:[O.OpenShare,O.OpenShareNvApp]},{saveStr:"noteSaveIR",control:S.SaveIRToGallery,enable:this.initialState,controlledNotifiers:[O.InstantReplaySaving,O.InstantReplaySaved]},{saveStr:"noteSaveMR",control:S.SaveMRToGallery,enable:this.initialState,controlledNotifiers:[O.RecordSaving,O.RecordStopped]},{saveStr:"noteSaveSS",control:S.SaveSSToGallery,enable:this.initialState,controlledNotifiers:[O.ScreenshotSaved,O.PhotographicScreenshotSavedToGallery]},{saveStr:"noteSaveHL",control:S.SaveHLToGallery,enable:this.initialState,controlledNotifiers:[O.HighlightsSaved]},{saveStr:"noteOnOffIR",control:S.IROnOff,enable:this.initialState,controlledNotifiers:[O.InstantReplayStarted,O.InstantReplayStopped]},{saveStr:"noteOnMR",control:S.MROn,enable:this.initialState,controlledNotifiers:[O.RecordStarted]},{saveStr:"noteConnectionStatus",control:S.ConnectionStatus,enable:this.initialState,controlledNotifiers:[O.NetworkSpottyConnection,O.NetworkBadConnection]},{saveStr:"noteHDRErrorScreenshot",control:S.ScreenshotHDRError,enable:this.initialState,controlledNotifiers:[O.HDRErrorScreenshot]},{saveStr:"noteHDRErrorHighlight",control:S.HighlightHDRError,enable:this.initialState,controlledNotifiers:[O.HDRErrorHighlight]},{saveStr:"noteHDRErrorRecord",control:S.RecordHDRError,enable:this.initialState,controlledNotifiers:[O.HDRErrorRecord]},{saveStr:"noteProtectedContentWarning",control:S.ProtectedContentWarning,enable:this.initialState,controlledNotifiers:[O.ProtectedContentWarning]}],this.logger=this.loggingService.getLogger("OscNotificationService"),this.globalStore=this.dbService.getGlobalStore(this.igoNotifications)}getOscEvents(){return this.notification$.asObservable()}showInternal(c,T,A="",L="",x="",V="",D=r){this.isNotificationBlocked(c)||this.notification$.next({selection:c,arg1:A,arg2:L,flip:T,thumb:V,alternateNotificationData:D})}show(c,T="",A="",L="",x="",V=r){this.showInternal(c,!1,T,A,L,x,V)}flipTo(c,T="",A="",L="",x="",V=r){this.showInternal(c,!0,T,A,L,x,V)}init(){const c=this.globalStore.getItem(this.globalToggleStore).subscribe(T=>{void 0!==T&&(this.globalState=T)},T=>{this.logger.error("Failed to read global notification state",T)},()=>{c.unsubscribe()});this.controls.forEach(T=>{const A=this.globalStore.getItem(T.saveStr).subscribe(L=>{T.enable=void 0===L?this.initialState:L},L=>{this.logger.error("Failed to read Notification Control in database: ",L)},()=>{A.unsubscribe()})})}getNotificationControls(){return this.controls}setNotificationControl(c,T){const A=this.controls.find(x=>x.control===c);A&&(A.enable=T);const L=this.globalStore.setItem(A.saveStr,A.enable).subscribe(()=>{L.unsubscribe(),this.logger.info("Notification Control Stored: "+A.saveStr+" Value: "+A.enable)})}isNotificationBlocked(c){let T=!1;return this.controls.forEach(A=>{A.controlledNotifiers.forEach(L=>{L===c&&(T=!A.enable||!this.globalState)})}),T}getGlobalToggle(){return this.globalState}setGlobalToggle(c){this.globalState=c;const T=this.globalStore.setItem(this.globalToggleStore,this.globalState).subscribe({complete:()=>{T.unsubscribe()}})}loadGFEMigrationData(c){const T=c["notification-settings"];if(!T)return this.logger.info("No valid notification data found in GFE backup"),(0,l.of)(null);this.logger.info("Porting GFE backup data");const A={noteOverlay:"openShare",noteSaveIR:"savedIR",noteSaveMR:"savedMR",noteSaveSS:"savedSS",noteSaveHL:"savedHL",noteOnOffIR:"IROnOff",noteOnMR:"MRStarted",noteHDRErrorScreenshot:"screenshotHDRError",noteHDRErrorHighlight:"hlHDRError",noteHDRErrorRecord:"recordHDRError",noteProtectedContentWarning:"protectedContentWarning"};let L=!0;const x=[];return Object.keys(A).forEach(V=>{const D=T[A[V]];void 0!==D&&x.push(this.globalStore.setItem(V,D).pipe((0,m.W)(F=>(this.logger.error("GFE migrations indexDb update failed",F),(0,l.of)(null))))),D&&(L=!1)}),L&&x.push(this.globalStore.setItem(this.globalToggleStore,!1).pipe((0,m.W)(V=>(this.logger.error("GFE migrations indexDb update failed",V),(0,l.of)(null))))),(0,p.p)(x).pipe((0,_.M)(V=>this.logger.info("Notification data migrated from GFE")))}}return(a=h).\u0275fac=function(c){return new(c||a)(P.KVO(v.J6),P.KVO(v.at))},a.\u0275prov=P.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),h})()},10132:(Ue,W,d)=>{"use strict";d.d(W,{QY:()=>c,VH:()=>h,au:()=>T,hc:()=>g,lb:()=>a});var n=d(80583),l=d(35146),p=d(43848),m=d(93181),_=d(91384),P=d(10174),v=d(14714),O=d(33452),S=d(58527),y=d(3567),r=d(12137),i=d(2688),a=function(A){return A.Recording="Recording",A.IR="IR",A.Highlights="Highlights",A.Broadcast="Broadcast",A.Mic="Mic",A.ViewerCount="ViewerCount",A.Comments="Comments",A.Webcam="Webcam",A.WebcamSize="WebcamSize",A.GfnMic="GfnMic",A.PerfLogging="PerfLogging",A.Statistics="Statistics",A.StatsSize="StatsSize",A.Network="Network",A.Performance="Performance",A}(a||{}),h=function(A){return A.rightTop="rightTop",A.rightCenter="rightCenter",A.rightBottom="rightBottom",A.centerBottom="centerBottom",A.leftBottom="leftBottom",A.leftCenter="leftCenter",A.leftTop="leftTop",A.centerTop="centerTop",A.none="none",A}(h||{}),g=function(A){return A.small="small",A.medium="medium",A.large="large",A}(g||{}),c=function(A){return A.compact="compact",A.standard="standard",A}(c||{});let T=(()=>{var A;class L{constructor(V,D,F,I,k){this.injector=V,this.dbService=D,this.igoConfig=F,this.featureSupportService=I,this.loggingService=k,this.osdChanged$=new n.B7,this.globalStore=null,this.dbStoreName="IgoIndicatorSettings",this.overlaySettings={Recording:h.rightTop,IR:h.rightTop,Highlights:h.rightTop,Mic:h.rightTop,Broadcast:h.rightTop,ViewerCount:h.rightTop,Comments:h.rightTop,GfnMic:h.rightTop,Statistics:h.none,StatsSize:c.compact,Network:h.none,Performance:h.rightTop,PerfLogging:h.rightTop},this.logger=this.loggingService.getLogger("OsdService"),"GFN"===this.igoConfig.branding?this.overlaySettings.Statistics=h.rightTop:(this.perfMonService=this.injector.get(O.z),this.overlaySettings.Recording=h.rightBottom,this.overlaySettings.IR=h.rightBottom,this.overlaySettings.Mic=h.rightBottom,this.overlaySettings.Highlights=h.rightBottom,this.overlaySettings.PerfLogging=h.rightBottom),this.featureSupportService.isConnectionStatusEnabled()&&this.featureSupportService.isGfnMobileMode()&&(this.overlaySettings.Network=h.rightTop),this.globalStore=this.dbService.getGlobalStore(this.dbStoreName)}init(){const V=[];Object.keys(this.overlaySettings).forEach(D=>{this.getAndSetOverriddenPositionSetting(D);const F=this.globalStore.getItem(D).pipe((0,_.M)(I=>{const k=h[I],R=c[I];void 0!==k?this.overlaySettings[D]=k:void 0!==R&&(this.overlaySettings[D]=R)}));V.push(F)}),(0,l.yU)(...V).subscribe(()=>{this.perfMonService?.setPerfOverlayQuadrant(this.overlaySettings[a.Performance]),this.triggerChange(null)}),this.perfMonService?.listenVisibilityChanges().subscribe(D=>{this.logger.info("listenVisibilityChanges:",D),this.overlaySettings.Performance===h.none&&D&&(this.overlaySettings.Performance=h.rightTop,this.saveOverlaySettings().subscribe()),this.triggerChange(a.Performance)})}saveOverlaySettings(V=!1){const D=[];return Object.keys(this.overlaySettings).forEach(F=>{const I=this.globalStore.setItem(F,this.overlaySettings[F]);D.push(I)}),(0,l.yU)(...D).pipe((0,_.M)(()=>{V||this.triggerChange(null)}),(0,P.u)(!0))}getPosition(V){return this.overlaySettings[V]}setPosition(V,D){this.overlaySettings[V]=D,V===a.Performance&&this.perfMonService.setPerfOverlayQuadrant(D)}getStatsSize(){return this.overlaySettings[a.StatsSize]}setStatsSize(V){this.overlaySettings[a.StatsSize]=V}getOsdIndicatorSize(V){return this.overlaySettings[V]}setOsdIndicatorSize(V,D){this.overlaySettings[V]=D}listenChanges(){return this.osdChanged$.asObservable()}triggerChange(V){this.osdChanged$.next(V)}indexDbUpdateGfeMigration(V,D){return this.globalStore.setItem(V,D).pipe((0,v.W)(F=>(this.logger.error("GFE migrations indexDb update failed",F),(0,p.of)(null))))}loadGFEMigrationData(V){const D=V["osd-storage"];if(!D)return this.logger.info("No valid data found in GFE backup"),(0,p.of)(null);this.logger.info("Porting GFE backup data");const F={RightTop:h.rightTop,RightBottom:h.rightBottom,LeftBottom:h.leftBottom,LeftTop:h.leftTop},I=[];if(D.Status?.enabled){const k=D.Status.position;F[k]&&(I.push(this.indexDbUpdateGfeMigration(a.Recording,F[k])),I.push(this.indexDbUpdateGfeMigration(a.IR,F[k])),I.push(this.indexDbUpdateGfeMigration(a.Mic,F[k])),I.push(this.indexDbUpdateGfeMigration(a.Highlights,F[k])))}if(D.Performance?.enabled){const k=D.Performance.position;F[k]&&I.push(this.indexDbUpdateGfeMigration(a.Performance,F[k]))}return(0,m.p)(I).pipe((0,_.M)(k=>this.logger.info("OSD settings migrated from GFE")))}getAndSetOverriddenPositionSetting(V){let D=null;V===a.GfnMic?D=this.featureSupportService.getOverriddenMicPosition()??null:V===a.Network?D=this.featureSupportService.getOverriddenNetworkStatusIconPosition()??null:V===a.Statistics&&(D=this.featureSupportService.getOverriddenStatisticsPosition()??null),D&&(this.overlaySettings[V]=D)}}return(A=L).\u0275fac=function(V){return new(V||A)(S.KVO(S.zZn),S.KVO(y.at),S.KVO(r.k),S.KVO(i.R),S.KVO(y.J6))},A.\u0275prov=S.jDH({token:A,factory:A.\u0275fac,providedIn:"root"}),L})()},27271:(Ue,W,d)=>{"use strict";d.d(W,{Az:()=>V,Bn:()=>v,EM:()=>Y,GA:()=>m,K_:()=>G,Lx:()=>k,NX:()=>L,Ne:()=>n,Np:()=>S,Or:()=>r,Q2:()=>I,TE:()=>P,UY:()=>K,Vq:()=>g,XB:()=>x,Zt:()=>R,eC:()=>D,f1:()=>O,it:()=>l,ix:()=>A,j9:()=>F,nN:()=>h,oX:()=>i,pw:()=>a,s0:()=>y,si:()=>c,v4:()=>p});const n=500,l=20,p=5e3,m=3e4;var P=function($){return $[$.FPS=0]="FPS",$[$.GPU=1]="GPU",$[$.CPU=2]="CPU",$[$.Latency=3]="Latency",$}(P||{});const v=["white","red","#76b900","blue","black","custom"],O=[{id:P.FPS,name:"settings.gameplay.FPS",shortName:"settings.gameplay.FPS"},{id:P.GPU,name:"perfmon.GPUName",shortName:"perfmon.GPU"},{id:P.CPU,name:"perfmon.CPUName",shortName:"perfmon.CPU"},{id:P.Latency,name:"perfmon.latency",shortName:"perfmon.latencyShortName"}];var S=function($){return $[$.FPS=0]="FPS",$[$.Basic=1]="Basic",$[$.Advanced=2]="Advanced",$[$.Latency=3]="Latency",$[$.Custom=4]="Custom",$}(S||{}),y=function($){return $[$.FPS=0]="FPS",$[$.Basic=1]="Basic",$[$.Advanced=2]="Advanced",$[$.Custom=3]="Custom",$}(y||{});const r=S.Basic,i=[{id:S.FPS,name:"settings.gameplay.FPS",metrics:["fps"]},{id:S.Basic,name:"perfmon.basic",metrics:["fps","gpuUtil","cpuUtil","avgPCLatency"]},{id:S.Advanced,name:"perfmon.advanced",metrics:["fps","fps1pc","fpsMax","fpsMin","frameTime","gpuUtil","gpuTemp","gpuClock","gpuVoltage","gpuPower","gpuFanSpeed","vramClock","cpuUtil","cpuTemp","cpuClock","renderLatency","avgPCLatency"]},{id:S.Latency,name:"perfmon.latency",metrics:["fps","renderLatency","avgPCLatency","reflexMonitorPosition","mouseLatency","avgMouseLatency","pcDisplayLatency","avgPcDisplayLatency","systemLatency","avgSystemLatency"]},{id:S.Custom,name:"settings.gameplay.Custom",metrics:["fps","fps1pc","fpsMax","fpsMin","frameTime","gpuUtil","gpuTemp","gpuClock","gpuVoltage","gpuPower","gpuFanSpeed","vramClock","cpuUtil","cpuTemp","cpuClock","renderLatency","avgPCLatency","reflexMonitorPosition","mouseLatency","avgMouseLatency","pcDisplayLatency","avgPcDisplayLatency","systemLatency","avgSystemLatency"]}];var a=function($){return $[$.Linear=0]="Linear",$[$.Double=1]="Double",$[$.Stacked=2]="Stacked",$}(a||{});const h=a.Linear;var g=function($){return $[$.Standard=0]="Standard",$[$.Enhanced=1]="Enhanced",$}(g||{}),c=function($){return $[$.Standard=0]="Standard",$[$.Large=1]="Large",$}(c||{}),T=function($){return $[$.White=0]="White",$[$.Red=1]="Red",$[$.Green=2]="Green",$[$.Blue=3]="Blue",$[$.Black=4]="Black",$[$.Custom=5]="Custom",$}(T||{});const A=g.Standard,L=c.Standard,x=T.White,V=0,D="#76b900";var F=function($){return $.FPS="FPS",$.Basic="Basic",$.Advanced="Advanced",$.Latency="Latency",$}(F||{});const I=60,k=35,R=40,G=35,Y=30;function K(){return[{metricId:"fps",name:"perfmon.framRate",shortName:"settings.gameplay.FPS",category:P.FPS,visible:!1,value:void 0,unit:void 0,defaultValue:"N/A"},{metricId:"fps1pc",name:"perfmon.fps1pc",shortName:"perfmon.fps1pcShort",category:P.FPS,visible:!1,value:void 0,unit:"perfmon.fps1pcUnit",defaultValue:"N/A"},{metricId:"fpsMax",name:"perfmon.fpsMax",shortName:"perfmon.fpsMaxShort",category:P.FPS,visible:!1,value:void 0,unit:"perfmon.fpsMaxUnit"},{metricId:"fpsMin",name:"perfmon.fpsMin",shortName:"perfmon.fpsMinShort",category:P.FPS,visible:!1,value:void 0,unit:"perfmon.fpsMinUnit"},{metricId:"frameTime",name:"perfmon.frameTime",shortName:"perfmon.frameTimeShort",category:P.FPS,visible:!1,value:void 0,unit:"perfmon.milliseconds"},{metricId:"gpuUtil",name:"perfmon.gpuUtil",shortName:"perfmon.gpuUtilShort",category:P.GPU,visible:!1,value:void 0,unit:"perfmon.percentage"},{metricId:"gpuTemp",name:"perfmon.gpuTemp",shortName:"perfmon.gpuTempShort",category:P.GPU,visible:!1,value:void 0,unit:"perfmon.degreeCelcius"},{metricId:"gpuClock",name:"perfmon.gpuClock",shortName:"perfmon.gpuClockShort",category:P.GPU,visible:!1,value:void 0,unit:"perfmon.megaHertz"},{metricId:"gpuVoltage",name:"perfmon.gpuVoltage",shortName:"perfmon.gpuVoltageShort",category:P.GPU,visible:!1,value:void 0,unit:"perfmon.volt"},{metricId:"gpuPower",name:"perfmon.gpuPower",shortName:"perfmon.gpuPowerShort",category:P.GPU,visible:!1,value:void 0,unit:"perfmon.watt"},{metricId:"gpuFanSpeed",name:"perfmon.gpuFanSpeed",shortName:"perfmon.gpuFanSpeedShort",category:P.GPU,visible:!1,value:void 0,unit:"perfmon.rpm"},{metricId:"vramClock",name:"perfmon.vramClock",shortName:"perfmon.vramClockShort",category:P.GPU,visible:!1,value:void 0,unit:"perfmon.megaHertz"},{metricId:"cpuUtil",name:"perfmon.cpuUtil",shortName:"perfmon.cpuUtilShort",category:P.CPU,visible:!1,value:void 0,unit:"perfmon.percentage"},{metricId:"cpuTemp",name:"perfmon.cpuTemp",shortName:"perfmon.cpuTempShort",category:P.CPU,visible:!1,value:void 0,unit:"perfmon.degreeCelcius"},{metricId:"cpuClock",name:"perfmon.cpuClock",shortName:"perfmon.cpuClockShort",category:P.CPU,visible:!1,value:void 0,unit:"perfmon.megaHertz"},{metricId:"renderLatency",name:"perfmon.renderLatency",shortName:"perfmon.renderLatencyShort",category:P.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"avgPCLatency",name:"perfmon.avgPCLatency",shortName:"perfmon.avgPCLatencyShort",category:P.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"reflexMonitorPosition",name:"perfmon.reflexMonitorPosition",shortName:"perfmon.reflexMonitorPositionShort",category:P.Latency,visible:!1,value:void 0,unit:"",defaultValue:"N/A"},{metricId:"mouseLatency",name:"perfmon.mouseLatency",shortName:"perfmon.mouseLatencyShort",category:P.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"avgMouseLatency",name:"perfmon.avgMouseLatency",shortName:"perfmon.avgMouseLatencyShort",category:P.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"pcDisplayLatency",name:"perfmon.pcDisplayLatency",shortName:"perfmon.pcDisplayLatencyShort",category:P.Latency,visible:!1,value:void 0,useCachedValue:!0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"avgPcDisplayLatency",name:"perfmon.avgPcDisplayLatency",shortName:"perfmon.avgPcDisplayLatencyShort",category:P.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"systemLatency",name:"perfmon.systemLatency",shortName:"perfmon.systemLatencyShort",category:P.Latency,visible:!1,value:void 0,useCachedValue:!0,unit:"perfmon.milliseconds",defaultValue:"N/A"},{metricId:"avgSystemLatency",name:"perfmon.avgSystemLatency",shortName:"perfmon.avgSystemLatencyShort",category:P.Latency,visible:!1,value:void 0,unit:"perfmon.milliseconds",defaultValue:"N/A"}]}},33452:(Ue,W,d)=>{"use strict";d.d(W,{z:()=>Y});var n=d(80583),l=d(26513),p=d(43848),m=d(12532),_=d(83915),P=d(91384),v=d(75707),O=d(14714),S=d(8619),y=d(43780),r=d(65706),i=d(40198),a=d(74931),h=d(11728),g=d(27271),c=d(73934),T=d(51830),A=d(53914),L=d(19724),x=d(10132),V=d(23860),D=d(58527),F=d(65240),I=d(3567),k=d(2688),R=d(27211),G=d(57412);let Y=(()=>{var K;class ${constructor(J,z,te,X,re,ge,oe,xe,ue,N){this.injector=J,this.translateService=z,this.loggingService=te,this.dbService=X,this.bridgeService=re,this.hotkeyService=ge,this.featureSupportService=oe,this.oscNotificationService=xe,this.telemetryIgoService=ue,this.lcarsService=N,this.PerfMonStorageKeyName="PerfMonPersistedData",this.throttleDuration=500,this.gpuData=[],this.perfData=[],this.perfOverlayVisibilityChanged$=new n.B7,this.perfOverlayCoordinatesChanged$=new n.B7,this.perfLoggingIndicator$=new l.t(!1),this.fpsMetricVisible=!1,this.isPerfTrackingActive=!1,this.perfStatsSubscriberCount=0,this.stopPerfTrackingTimer=void 0,this.isPerfMenuLaunched=!1,this.legacyRFISupportedCMSIDs=[],this.latestRFISupportedCMSIDs=[],this.ReflexStatsSupportedCMSIDs=[],this.ReflexIntegratedCMSIDs=[],this.islatestRFISupported=!1,this.islegacyRFISupported=!1,this.isReflexStatsSupported=!1,this.cachedReflexStatsSupported=!1,this.isReflexIntegrated=!1,this.runningRFISupportedGamePID=void 0,this.currentDisplayMode={},this.currentGameInfo=void 0,this.isAppStartedReceived=!1,this.gameDetails={cmsId:"",drsName:"",drsProfileName:""},this.logger=this.loggingService.getLogger("PerfMonService"),this.dBStore=this.dbService.getGlobalStore("PerfMon")}init(){this.logger.info("Initialize"),this.oscDisplayService=this.injector.get(h.B),this.shadowPlayService=this.injector.get(T.W1),this.getIsRLASupported().subscribe(J=>{this.isRLAEnabled=J}),this.registerPerfStatsNotifications(),this.setHotkeys(!0),this.registerHotkeyNotifications(),this.registerAppNotifications(),this.registerDisplayNotifications(),this.initStatsAndLoadData()}listenVisibilityChanges(){return this.perfOverlayVisibilityChanged$.asObservable()}getPerfLoggingStatus(){return this.perfLoggingIndicator$.asObservable()}getPerfOverlayVisiblity(){return this.perfmonData?.isPerfOverlayVisible}getFpsMetricVisible(){return this.perfmonData.activeMetricSetId!==g.Np.FPS||this.fpsMetricVisible}setPerfOverlayVisiblity(J){this.logger.info("setPerfOverlayVisiblity: ",J),(this.islegacyRFISupported||this.islatestRFISupported)&&this.isRLAEnabled&&!this.flashIndicatorStatus&&this.setFlashIndicatorVisibility(J),this.togglePerfOverlay(J,!1)}getIsRLASupported(){return this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.GetRLAMonitorSupport).pipe((0,_.T)(J=>(this.logger.info("RLA Monitor Status: ",J.supported),J.supported)))}getIsPerfOverlayEnabled(){return this.isPerfOverlayEnabled}setIsPerfOverlayEnabled(J){this.logger.info("setIsPerfOverlayEnabled: ",J),this.isPerfOverlayEnabled!==J&&(this.isPerfOverlayEnabled=J,this.setPerfOverlayVisiblity(J))}getCustomActiveMetricSetId(J){let z=g.s0.FPS;return J===g.Np.FPS?z=g.s0.FPS:J===g.Or?z=g.s0.Basic:J===g.Np.Advanced?z=g.s0.Advanced:(J===g.Np.Latency||J===g.Np.Custom)&&(z=g.s0.Custom),z}getMetricSet(){return void 0===this.perfmonData.activeMetricSetId?g.Or:this.perfmonData.activeMetricSetId}setMetricSet(J){this.logger.info("setMetricSet:",J),this.perfmonData.activeMetricSetId=J,this.togglePerfOverlay(!0,!1)}getActiveLayout(){return void 0===this.perfmonData?.activeLayout?g.nN:this.perfmonData.activeLayout}setActiveLayout(J){this.perfmonData.activeLayout=J,this.logger.info("setActiveLayout:",this.perfmonData.activeLayout),this.togglePerfOverlay(!0,!1),this.telemetryIgoService.sendIGOSettings(this.gameDetails,A.E6,L.Eq[g.pw[this.perfmonData.activeLayout]])}getVisibilityMode(){return void 0===this.perfmonData?.perfOverlayVisibilityMode?g.ix:this.perfmonData.perfOverlayVisibilityMode}setVisibilityMode(J){this.logger.info("setVisibilityMode:",J),this.perfmonData.perfOverlayVisibilityMode=J,this.togglePerfOverlay(!0,!1),this.telemetryIgoService.sendIGOSettings(this.gameDetails,A.ft,L.Om[g.Vq[this.perfmonData.perfOverlayVisibilityMode]])}getOverlayFontSize(){return void 0===this.perfmonData?.perfOverlayFontSize?g.NX:this.perfmonData.perfOverlayFontSize}setOverlayFontSize(J){this.perfmonData.perfOverlayFontSize=J,this.togglePerfOverlay(!0,!1)}getOverlayFontColor(){return void 0===this.perfmonData?.perfOverlayFontColor?g.XB:this.perfmonData.perfOverlayFontColor}setOverlayFontColor(J){this.perfmonData.perfOverlayFontColor=J,this.togglePerfOverlay(!0,!1)}getOverlayBackgroundOpacity(){return void 0===this.perfmonData?.perfOverlayFontColor?g.Az:this.perfmonData.perfOverlayBackgroundOpacity}setOverlayBackgroundOpacity(J){this.perfmonData.perfOverlayBackgroundOpacity=J,this.togglePerfOverlay(!0,!1)}getOverlayCustomFontColor(){return void 0===this.perfmonData?.perfOverlayCustomFontColor?g.eC:this.perfmonData.perfOverlayCustomFontColor}setOverlayCustomFontColor(J){this.perfmonData.perfOverlayCustomFontColor=J,this.togglePerfOverlay(!0,!1)}validateCustomFontColorInput(J){return new RegExp("^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$").test(J)}getPerfData(J){return this.perfData[J]}launchPerformanceMenu(){this.logger.info("launchPerformanceMenu"),this.oscDisplayService.openOSC("sidebar/performance/performance-menu")}getIsValidGameRunning(){return this.isValidGameRunning}isPerformanceAvailable(){return this.featureSupportService.isPerfOverlayEnabled()}getLoggingState(){return this.logger.info("getLoggingState:",this.perfmonData.isLogging),this.perfmonData?.isLogging}toggleLogging(J,z=!0){this.logger.info("toggleLogging"),this.perfmonData.isLogging=void 0===J?!this.perfmonData.isLogging:J,this.perfmonData.isLogging?(this.startPerfTracking(),this.telemetryIgoService.startStatsLoggingSession(z?L.gv.UsingHotkey:L.gv.UsingUI)):(this.stopPerfTracking(),this.telemetryIgoService.sendStatsLoggingSession(this.gameDetails)),this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.LoggingToggle,{path:this.perfmonData.logPath,enable:this.perfmonData.isLogging}).subscribe(X=>{this.logger.info("toggleLogging:",X)},X=>{this.logger.info("toggleLogging:",X)}),this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible),this.perfLoggingIndicator$.next(this.perfmonData.isLogging),this.perfmonData.isLogging&&this.oscNotificationService.show(V.Ed.PerfMonLogging),this.savePersistedData()}getPerfOverlayAbsolutePosition(J=null){if(this.logger.info("getPerfOverlayAbsolutePosition"),this.perfmonData){if(!this.perfmonData.perfOverlayAbsolutePosition){if(!J)return this.perfmonData.perfOverlayAbsolutePosition;this.updatePerformancePositionCoordinates(J)}return this.perfmonData.perfOverlayAbsolutePosition}}setPerfOverlayAbsolutePosition(J,z=!1){this.logger.info("setPerfOverlayAbsolutePosition",J),this.perfmonData.perfOverlayAbsolutePosition=J,z||this.perfOverlayCoordinatesChanged$.next(J),this.savePersistedData(),this.telemetryIgoService.sendIGOSettings(this.gameDetails,A.Ls,J?.x.toString()),this.telemetryIgoService.sendIGOSettings(this.gameDetails,A.Qi,J?.y.toString())}listenPerfOverlayCoordinateChanges(){return this.perfOverlayCoordinatesChanged$.asObservable()}setPerfOverlayQuadrant(J){this.logger.info("setPerfOverlayQuadrant",J),this.perfOverlayQuadrant=J}checkPerformancePositionCoordinates(){this.perfmonData.perfOverlayAbsolutePosition||(this.perfmonData.perfOverlayAbsolutePosition={x:void 0,y:void 0},this.updatePerformancePositionCoordinates(this.perfOverlayQuadrant))}updatePerformancePositionCoordinates(J,z=null){if(this.logger.info("updatePerformancePositionCoordinates",J),this.perfmonData&&(z=z||this.perfmonData.perfOverlayAbsolutePosition))switch(J){case x.VH.rightTop:z.x=100,z.y=0;break;case x.VH.rightCenter:z.x=100,z.y=50;break;case x.VH.rightBottom:z.x=100,z.y=100;break;case x.VH.centerBottom:z.x=50,z.y=100;break;case x.VH.leftBottom:z.x=0,z.y=100;break;case x.VH.leftCenter:z.x=0,z.y=50;break;case x.VH.leftTop:z.x=0,z.y=0;break;case x.VH.centerTop:z.x=50,z.y=0;break;default:z.x=void 0,z.y=void 0}}startPerfTracking(){this.logger.info("startPerfTracking:",this.perfStatsSubscriberCount,this.isPerfTrackingActive),this.clearPerfTrackingStopTimer(),this.perfStatsSubscriberCount++,this.isPerfTrackingActive||this.enablePerfTracking(!0)}stopPerfTracking(){if(this.logger.info("stopPerfTracking:",this.perfStatsSubscriberCount,this.isPerfTrackingActive),this.isPerfTrackingActive||this.logger.error("something went wrong, isPerfTrackingActive:",this.isPerfTrackingActive),this.perfStatsSubscriberCount--,this.perfStatsSubscriberCount<0)this.logger.error("something went wrong, perfSubscriberCount:",this.perfStatsSubscriberCount),this.perfStatsSubscriberCount=0;else if(this.perfStatsSubscriberCount>0)return;0===this.perfStatsSubscriberCount&&(void 0!==this.stopPerfTrackingTimer&&(this.logger.error("something went wrong, stopPerfTracking timer already running"),this.clearPerfTrackingStopTimer()),this.stopPerfTrackingTimer=setTimeout(()=>{this.enablePerfTracking(!1)},g.GA))}updateDefaultLoggingPath(){this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.GetDefaultLoggingPath).subscribe(J=>{this.logger.info("GetDefaultLoggingPath:",J),this.perfmonData.logPath=J.path.logpath},J=>{this.logger.error("GetDefaultLoggingPath error:",J)})}getLoggingPath(){return this.perfmonData.logPath}setLoggingPath(J){this.perfmonData.logPath=J,this.savePersistedData()}updateMetricVisibility(J){void 0===J.value&&J.defaultValue?(J.value=J.defaultValue,J.visible=this.perfmonData.activeMetricSetId!==g.Np.FPS,J.isUnitHidden=!0):(J.visible=void 0!==J.value,J.isUnitHidden=void 0===J.value||J.defaultValue&&J.value===J.defaultValue)}updateCustomMetricSet(){this.perfmonData.customMetrics.length=0,this.perfData[0]&&this.perfData[0].forEach(J=>{J.isCustomSelected&&this.perfmonData.customMetrics.push(J.metricId)}),this.savePersistedData()}checkSystemLatency(){return!!this.perfData[0]&&!!this.perfData[0].find(z=>"systemLatency"===z.metricId).isCustomSelected}loadGFEMigrationData(J){const z=J.overclockings;if(!z)return this.logger.info("No valid data found in GFE backup"),(0,p.of)(null);this.logger.info("Porting GFE backup data");const te={isPerfOverlayVisible:!!z.isPerfOverlayVisible,activeMetricSetId:g.Or,activeLayout:g.nN,perfOverlayVisibilityMode:g.ix,perfOverlayAbsolutePosition:null,isLogging:!1,logPath:z.loggingPath||"",customMetrics:[...g.oX.find(re=>re.id===g.Or).metrics],rectAlignmentStatus:!0,flashIndicatorStatus:!1,avgSampleSize:20,perfOverlayFontSize:g.NX,perfOverlayFontColor:g.XB,perfOverlayBackgroundOpacity:g.Az,perfOverlayCustomFontColor:g.eC},X=J["osd-storage"];if(X?.Performance.view)switch(X?.Performance.view){case g.j9.FPS:te.activeMetricSetId=g.Np.FPS;break;case g.j9.Basic:te.activeMetricSetId=g.Np.Basic;break;case g.j9.Advanced:te.activeMetricSetId=g.Np.Advanced;break;case g.j9.Latency:te.activeMetricSetId=g.Np.Latency}return this.dBStore.setItem(this.PerfMonStorageKeyName,te).pipe((0,P.M)(re=>this.logger.info("Statistics overlay settings migrated from GFE")))}getIsRLAEnabled(){return this.isRLAEnabled}isReflexAnalyzerAvailable(){return this.featureSupportService.isReflexAnalyzerEnabled()}isRLASupportedDriver(){this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.CheckRLASupportedDriver).subscribe(J=>{this.logger.info("getSupportedDD response:",J),this.isRLAsupportedDD=J.supported},J=>{this.logger.error("error in getSupportedDD:",J),this.isRLAsupportedDD=!1})}getIsRLASupportedDD(){return this.isRLAsupportedDD}updateRectAlignStatus(J){this.perfmonData.rectAlignmentStatus=J,this.savePersistedData(),this.logger.info("Storing current rectangle alignment status to local storage - "+this.perfmonData.rectAlignmentStatus),this.telemetryIgoService.sendIGOSettings(this.gameDetails,A.Q3,J?.toString())}getRectAlignStatus(){return void 0===this.perfmonData.rectAlignmentStatus&&(this.perfmonData.rectAlignmentStatus=!0),this.perfmonData.rectAlignmentStatus}setRectAlignStatusOnInit(){return this.perfmonData.rectAlignmentStatus}setFlashIndicatorVisibility(J){this.reflexFlashIndicatorVisibility=J,this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.ShowFlashIndicator,{isVisible:this.reflexFlashIndicatorVisibility}).subscribe(z=>{this.logger.info("setFlashIndicatorVisibility response:",z)},z=>{this.logger.error("error in setFlashIndicatorVisibility:",z)})}getFlashIndicatorStatus(){return this.flashIndicatorStatus=this.perfmonData.flashIndicatorStatus,this.flashIndicatorStatus}setFlashIndicatorSize(J){this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.SetFlashIndicatorSize,{size:J}).subscribe(z=>{this.logger.info("SetFlashIndicatorSize response:",z)},z=>{this.logger.error("error in setFlashIndicatorSize:",z)})}updateFlashIndicatorStatus(J){this.perfmonData.flashIndicatorStatus=J,this.flashIndicatorStatus=J,this.savePersistedData(),this.logger.info("Storing current Flash Indicator status to local storage - "+this.perfmonData.flashIndicatorStatus),this.telemetryIgoService.sendIGOSettings(this.gameDetails,A.uA,J?.toString())}getCustAvgSampleSize(){return this.perfmonData.avgSampleSize?this.perfmonData.avgSampleSize:g.it}updateCustAvgSampleSize(J){this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.SetMetricSampleSize,{sampleSize:J}).subscribe(z=>{this.logger.info("updateCustAvgSampleSize response:",z),this.perfmonData.avgSampleSize=J,this.savePersistedData()},z=>{this.logger.error("error in setCustAvgOnInit:",z)}),this.telemetryIgoService.sendIGOSettings(this.gameDetails,A.oi,J.toString())}setCustAvgOnInit(){const J=this.getCustAvgSampleSize();this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.SetMetricSampleSize,{sampleSize:J}).subscribe(z=>{this.logger.info("setCustAvgOnInit response:",z)},z=>{this.logger.error("error in setCustAvgOnInit:",z)})}resetAverages(){this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.ResetAverageMetrics).subscribe(J=>{this.logger.info("resetAverages response:",J)},J=>{this.logger.error("error in resetAverages:",J)}),this.telemetryIgoService.sendIGOSettings(this.gameDetails,A.QT,"true")}alignMonitoringRect(){this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.AlignLatencyMonitoringRectangle).subscribe(J=>{this.logger.info("alignMonitoringRect response:",J)},J=>{this.logger.error("error in alignMonitoringRect:",J)})}getCurrentDisplayMode(){return this.currentDisplayMode}setPerfMenuLaunched(J){this.isPerfMenuLaunched=J,!J&&!this.perfmonData.isPerfOverlayVisible&&this.clearCachedMetricValues()}clearCachedMetricValues(){this.getPerfData(0)?.forEach(J=>{J.useCachedValue&&(J.cachedValue=void 0)})}clearPerfTrackingStopTimer(){this.stopPerfTrackingTimer&&(clearTimeout(this.stopPerfTrackingTimer),this.stopPerfTrackingTimer=void 0)}enablePerfTracking(J){this.logger.info("enablePerfTracking:",J),this.isPerfTrackingActive=J,this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.EnablePerfStatsNotification,{intervalMS:g.Ne,isEnable:J}).subscribe(te=>{this.logger.info("enablePerfTracking result:",te)},te=>{this.logger.error("enablePerfTracking error:",te),this.isPerfTrackingActive=!1})}loadCustomMetricSet(){this.perfData[0]&&this.perfmonData.customMetrics.forEach(J=>{this.perfData[0].find(z=>z.metricId===J).isCustomSelected=!0})}savePersistedData(J=null){this.dBStore.setItem(this.PerfMonStorageKeyName,J=J||this.perfmonData).subscribe(z=>{this.logger.info("Perstisted data saved successfully ",z)},z=>{this.logger.error("Error while saving the persisted data ",z)})}initStatsAndLoadData(){this.initPerfStats().pipe((0,v.ZZ)(()=>this.loadPerfMonData()),(0,_.T)(()=>(this.perfmonData.isPerfOverlayVisible&&(this.perfmonData.isPerfOverlayVisible=!1,this.togglePerfOverlay(!0,!1)),setTimeout(()=>{this.perfmonData.perfOverlayAbsolutePosition&&this.perfOverlayCoordinatesChanged$.next(this.perfmonData.perfOverlayAbsolutePosition)},250),this.isReflexAnalyzerAvailable&&(this.setCustAvgOnInit(),this.isRLASupportedDriver(),this.getFlashIndicatorStatus()&&this.setFlashIndicatorSize(!0)),!0))).subscribe()}getDefaultPerfMonData(){return this.perfmonData={isPerfOverlayVisible:!1,activeMetricSetId:g.Or,activeLayout:g.nN,perfOverlayVisibilityMode:g.ix,perfOverlayAbsolutePosition:null,isLogging:!1,logPath:"",customMetrics:[...g.oX.find(J=>J.id===g.Or).metrics],rectAlignmentStatus:!0,flashIndicatorStatus:!1,avgSampleSize:20,perfOverlayFontSize:g.NX,perfOverlayFontColor:g.XB,perfOverlayBackgroundOpacity:g.Az,perfOverlayCustomFontColor:g.eC},this.updateDefaultLoggingPath(),this.perfmonData}loadPerfMonData(){return this.dBStore.getItem(this.PerfMonStorageKeyName).pipe((0,_.T)(J=>J?(this.logger.info("Loaded perfmon data from the storage"),this.perfmonData=J,this.perfmonData.isLogging=!1,!0):(this.logger.info("No perfmon data found in storage"),this.perfmonData=this.getDefaultPerfMonData(),!1)),(0,O.W)(J=>(this.logger.error("Could not load perfmon data from the storage: ",JSON.stringify(J)),this.perfmonData=this.getDefaultPerfMonData(),(0,p.of)(!1))),(0,P.M)(()=>{this.loadCustomMetricSet()}))}registerAppNotifications(){this.shadowPlayService.registerAppStartedEvent().pipe((0,v.ZZ)(J=>(this.logger.info("app notification:",J),this.onGameStart(J),(0,p.of)(J))),(0,v.ZZ)(()=>this.getRFIDataForLaunchedGame())).subscribe(),this.bridgeService.executeCommand(a.Ts.Share.Shareserver.RegisterGeneralNotifications).pipe((0,S.p)(J=>!!J?.gameExited)).subscribe(J=>{this.onGameExit()})}setProcessID(J){return this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.SetProcessId,{processId:J}).pipe((0,P.M)(z=>{this.isValidGameRunning=!0}))}onGameStart(J){this.logger.info(" App Start Data: ",J),this.isAppStartedReceived=!0,J&&(this.currentGameInfo={procId:J.appStarted.pid,cmsId:J.appStarted.cmsId,drsName:J.appStarted.DRSAppName,drsProfileName:J.appStarted.profileName,shortName:J.appStarted.shortName,drsWhitelist:!1}),this.gameDetails.cmsId=this.currentGameInfo.cmsId.toString(),this.gameDetails.drsName=this.currentGameInfo.drsName,this.gameDetails.drsProfileName=this.currentGameInfo.drsProfileName,this.getPerfOverlayVisiblity()&&this.telemetryIgoService.sendStatsOverlaySession(this.gameDetails,L.B_[g.Np[this.perfmonData.activeMetricSetId]],this.perfmonData.perfOverlayAbsolutePosition.x,this.perfmonData.perfOverlayAbsolutePosition.y,L.Om[g.Vq[this.perfmonData.perfOverlayVisibilityMode]],L.Eq[g.pw[this.perfmonData.activeLayout]],!0),this.setProcessID(J.appStarted.pid).subscribe(),void 0===this.perfmonData.rectAlignmentStatus&&(this.perfmonData.rectAlignmentStatus=!0),this.perfmonData.rectAlignmentStatus&&this.isRLAsupportedDD&&this.isRLAEnabled&&(this.isPerfTrackingActive?this.alignMonitoringRect():(this.startPerfTracking(),setTimeout(()=>{this.alignMonitoringRect(),!this.perfmonData.isPerfOverlayVisible&&!this.perfmonData.isLogging&&this.stopPerfTracking()},g.v4)))}onGameExit(){this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.SetProcessId,{processId:0}).subscribe(J=>{this.isValidGameRunning=!1,this.isAppStartedReceived=!1}),this.gameDetails={cmsId:"",drsName:"",drsProfileName:""},this.clearCachedMetricValues()}registerPerfStatsNotifications(){this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.RegisterPerfStatsNotifications).subscribe(J=>{this.updatePerfStats(J)},J=>{this.logger.error("error:",J)})}registerDisplayNotifications(){this.logger.info("registerDisplayNotifications"),this.oscDisplayService.getCurrentDesktopMode().pipe((0,P.M)(()=>{this.perfmonData&&(this.logger.info("registerDisplayNotifications, isPerfOverlayVisible:",this.perfmonData.isPerfOverlayVisible),this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible))})).subscribe(),this.oscDisplayService.getCurrentDisplayMode().pipe((0,P.M)(J=>{this.currentDisplayMode=J})).subscribe()}setHotkeys(J){this.bridgeService.executeCommand(a.Ts.Share.Shareserver.SetHotkeyDynamicEnable,{enable:J,keys:[c.g8.PMOCOverlay,c.g8.PMOCLoggingToggle,c.g8.PMOCOverlayCycle,c.g8.PMOCOverlayVisibility,c.g8.PMOCResetAverageMetrics]}).subscribe(z=>{this.logger.info("result:",z)},z=>{this.logger.error("error:",z)})}registerHotkey(J,z){this.hotkeyService.listen(J).pipe((0,y.c)(this.throttleDuration)).subscribe(()=>{z()})}registerHotkeyNotifications(){this.registerHotkey(c.g8.PMOCOverlay,this.togglePerfOverlay.bind(this)),this.registerHotkey(c.g8.PMOCLoggingToggle,this.toggleLogging.bind(this)),this.registerHotkey(c.g8.PMOCOverlayCycle,this.cyclePerfOverlayMetrics.bind(this)),this.registerHotkey(c.g8.PMOCOverlayVisibility,this.toggleEnhancedMode.bind(this)),this.registerHotkey(c.g8.PMOCResetAverageMetrics,this.resetAverages.bind(this))}togglePerfOverlay(J,z=!0){this.checkPerformancePositionCoordinates();const te=this.perfmonData.isPerfOverlayVisible;this.logger.info("togglePerfOverlay, oldState:",te,"forceOperation:",J),this.perfmonData.isPerfOverlayVisible=void 0!==J?J:!this.perfmonData.isPerfOverlayVisible,this.perfmonData.isPerfOverlayVisible?(this.isPerfOverlayEnabled=!0,te||this.startPerfTracking()):this.stopPerfTracking(),this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible);const X=this.checkSystemLatency(),re=[g.Np.Latency];X&&re.push(g.Np.Custom),(this.islegacyRFISupported||this.islatestRFISupported)&&this.isRLAEnabled&&!this.flashIndicatorStatus&&(this.perfmonData.isPerfOverlayVisible&&re.includes(this.perfmonData.activeMetricSetId)?this.setFlashIndicatorVisibility(!0):this.setFlashIndicatorVisibility(!1)),this.savePersistedData(),!this.perfmonData.isPerfOverlayVisible&&!this.isPerfMenuLaunched&&this.clearCachedMetricValues(),te!==this.perfmonData.isPerfOverlayVisible&&(this.perfmonData.isPerfOverlayVisible?this.telemetryIgoService.startStatsOverlaySession(z?L.gv.UsingHotkey:L.gv.UsingUI):this.telemetryIgoService.sendStatsOverlaySession(this.gameDetails,L.B_[g.Np[this.perfmonData.activeMetricSetId]],this.perfmonData.perfOverlayAbsolutePosition.x,this.perfmonData.perfOverlayAbsolutePosition.y,L.Om[g.Vq[this.perfmonData.perfOverlayVisibilityMode]],L.Eq[g.pw[this.perfmonData.activeLayout]],!1))}cyclePerfOverlayMetrics(){if(!this.perfmonData.isPerfOverlayVisible)return;this.logger.info("cyclePerfOverlay, current metricSet:",this.perfmonData.activeMetricSetId,this.isRLAEnabled);let J=0;J=this.isRLAEnabled?(this.perfmonData.activeMetricSetId+1)%5:this.perfmonData.activeMetricSetId===g.Np.Advanced?(this.perfmonData.activeMetricSetId+2)%5:(this.perfmonData.activeMetricSetId+1)%5,this.oscDisplayService.unsetDisplayRects().subscribe(),this.setMetricSet(J)}toggleEnhancedMode(){this.perfmonData.isPerfOverlayVisible&&(this.logger.info("toggleEnhancedMode, current mode:",this.perfmonData.perfOverlayVisibilityMode),this.oscDisplayService.unsetDisplayRects().subscribe(),this.setVisibilityMode((this.perfmonData.perfOverlayVisibilityMode+1)%2))}initPerfStats(){return this.bridgeService.executeCommand(a.Ts.Share.Nvperfmon.GetGpuInfo).pipe((0,_.T)(J=>(this.gpuData=J.gpus,this.logger.info("GPUData",this.gpuData),this.gpuData.forEach((z,te)=>{this.perfData[te]=(0,g.UY)()}),!0)),(0,O.W)(J=>(this.logger.error("error:",J),(0,p.of)(!1))))}round(J,z){return Math.round(J*(z=Math.pow(10,z)))/z}fillPerfMetrics(J,z){const te=this.perfData[z],X=J.gpusPerfStats.find(ge=>ge.gpuIndex===z);let re=0;te.forEach(ge=>{let oe;if(X&&ge.category===g.TE.GPU){if(oe=X[ge.metricId],"gpuFanSpeed"===ge.metricId&&oe&&oe.length>0){let xe=0;for(let ue=0;ue<oe.length;ue++)xe+=parseInt(oe[ue].fanSpeed,10);oe=Math.trunc(xe/oe.length)}}else oe=J[ge.metricId];"reflexMonitorPosition"!==ge.metricId&&(oe>0&&ge.category===g.TE.FPS?oe=Math.round(oe):oe>0&&(ge.category===g.TE.Latency||"renderLatency"===ge.metricId)?oe=this.round(oe,1).toFixed(1):oe>0&&"gpuVoltage"===ge.metricId?oe=this.round(oe,3).toFixed(3):void 0!==oe&&(oe=this.round(oe,1))),ge.value=oe,ge.useCachedValue&&(void 0!==ge.value?ge.cachedValue=ge.value:ge.value=ge.cachedValue),this.updateMetricVisibility(ge),ge.visible&&(re+=1)}),re!==this.visibleMetricCount&&(this.logger.info("visibile metric count changed"),this.visibleMetricCount=re,this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible))}checkFPSViewVisibility(J){this.perfmonData.activeMetricSetId===g.Np.FPS&&(void 0===J||this.fpsMetricVisible?void 0===J&&this.fpsMetricVisible&&(this.fpsMetricVisible=!1,this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible)):(this.fpsMetricVisible=!0,this.perfOverlayVisibilityChanged$.next(this.perfmonData.isPerfOverlayVisible)))}updatePerfStats(J){J&&J.gpusPerfStats&&J.gpusPerfStats.length>0?(J.gSyncLamp&&(Object.keys(J.gSyncLamp).forEach(z=>{if("lamEnabled"===z)J.gSyncLamp[z]!==this.isLAMSupported&&(this.logger.info("Lam metrics support recieved"),this.logger.info("stats:",J),this.isLAMSupported=J.gSyncLamp[z]);else if("reflexMonitorPosition"===z){const te=J.gSyncLamp[z];J[z]="("+te.topleftx+", "+te.toplefty+")"}else if(z.toLowerCase().includes("mouselatency")){const te=J.gSyncLamp[z].latency;J[z]=te&&te>0?te/1e3:void 0}else{const te=J.gSyncLamp[z];J[z]=te&&te>0?te/1e3:void 0}}),delete J.gSyncLamp),this.gpuData.forEach(z=>{this.fillPerfMetrics(J,z.index),this.checkFPSViewVisibility(J.fps)})):this.logger.error("No GPU stats present, ignore this FvSDK sample:",J)}getRFIDataForLaunchedGame(){return this.ensureChromaDataIsAvailableForGame().pipe((0,_.T)(J=>{if(!this.perfmonData||!J)return;this.islatestRFISupported=J.nvidiaTech.REFLEXFIAUTO,this.islegacyRFISupported=J.nvidiaTech.REFLEXFLASHINDICATOR,this.isReflexIntegrated=J.nvidiaTech.REFLEX,(this.islatestRFISupported||this.islegacyRFISupported)&&(this.runningRFISupportedGamePID=J.pid);const z=this.checkSystemLatency(),te=[g.Np.Latency];z&&te.push(g.Np.Custom),this.islatestRFISupported||this.islegacyRFISupported?this.perfmonData.flashIndicatorStatus?this.setFlashIndicatorSize(this.perfmonData.flashIndicatorStatus):this.setFlashIndicatorVisibility(this.perfmonData.isPerfOverlayVisible&&te.includes(this.perfmonData.activeMetricSetId)):this.setFlashIndicatorVisibility(!1),this.perfmonData.isPerfOverlayVisible&&this.isRLAEnabled&&this.isValidGameRunning&&(this.islegacyRFISupported?(this.logger.info("Toggle legacy RFI from in-game settings"),this.oscNotificationService.show(V.Ed.PerfMonRfiWarning)):this.islegacyRFISupported||this.islatestRFISupported||(this.logger.info("RFI not supported"),this.oscNotificationService.show(V.Ed.PerfMonRectAlignmentWarning)))}),(0,O.W)(J=>(this.logger.error("Unable to obtain game meta data:",J),m.w)))}ensureChromaDataIsAvailableForGame(){return this.lcarsService.getCurrentAppChromaInfo().pipe((0,S.p)(J=>!!J&&void 0!==J.pid&&J.pid===this.currentGameInfo.procId),(0,_.T)(J=>(this.logger.info("Chroma info fetched successfully for the current reflex game ",J),J)),(0,r.s)(1),(0,i.w)(this.lcarsService.lcarsResponseTimeout))}}return(K=$).\u0275fac=function(J){return new(J||K)(D.KVO(D.zZn),D.KVO(F.c$),D.KVO(I.J6),D.KVO(I.at),D.KVO(I.NZ),D.KVO(c.QS),D.KVO(k.R),D.KVO(V.mb),D.KVO(R.S),D.KVO(G.B))},K.\u0275prov=D.jDH({token:K,factory:K.\u0275fac,providedIn:"root"}),$})()},30254:(Ue,W,d)=>{"use strict";d.d(W,{$k:()=>T,J1:()=>c,O3:()=>l,Ow:()=>a,Qu:()=>L,VL:()=>r,X4:()=>p,ag:()=>_,dz:()=>h,ke:()=>g,lR:()=>v,on:()=>i,qp:()=>A,sg:()=>S});var n=d(74931),l=function(x){return x[x.FEATURE_SUPPORT_ERROR_OK=0]="FEATURE_SUPPORT_ERROR_OK",x[x.FEATURE_SUPPORT_ERROR_ERROR=1]="FEATURE_SUPPORT_ERROR_ERROR",x[x.FEATURE_SUPPORT_ERROR_MINIMUM_DRIVER_VERSION_NOT_MET=2]="FEATURE_SUPPORT_ERROR_MINIMUM_DRIVER_VERSION_NOT_MET",x[x.FEATURE_SUPPORT_ERROR_OS_HDR_DISABLED=3]="FEATURE_SUPPORT_ERROR_OS_HDR_DISABLED",x}(l||{}),p=function(x){return x[x.GPU_INCOMPATIBLE=0]="GPU_INCOMPATIBLE",x[x.CLIENT_VIRTUALIZATION_ENABLED=1]="CLIENT_VIRTUALIZATION_ENABLED",x[x.OS_INCOMPATIBLE=2]="OS_INCOMPATIBLE",x[x.MSHYBRID_ENABLED=8]="MSHYBRID_ENABLED",x[x.DISPLAY_INCOMPATIBLE=10]="DISPLAY_INCOMPATIBLE",x[x.NO_DISPLAY_CONNECTED=11]="NO_DISPLAY_CONNECTED",x[x.GAME_DENYLISTED=21]="GAME_DENYLISTED",x}(p||{}),m=function(x){return x[x.MULTI_MON_DETECTED=3]="MULTI_MON_DETECTED",x[x.HDR_DISABLED=4]="HDR_DISABLED",x[x.SOC_FEATURE_ENABLED=5]="SOC_FEATURE_ENABLED",x[x.SLI_ENABLED=6]="SLI_ENABLED",x[x.SURROUND_ENABLED=7]="SURROUND_ENABLED",x[x.MSHYBRID_ENABLED_DDS_IGPU=9]="MSHYBRID_ENABLED_DDS_IGPU",x[x.USE_ALTERNATE_DISPLAY=12]="USE_ALTERNATE_DISPLAY",x[x.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET",x}(m||{});const _={[m.MULTI_MON_DETECTED]:"nvcamera.PpeError.multiMonitor",[m.MINIMUM_DRIVER_VERSION_NOT_MET]:"nvcamera.PpeError.minDriver",[m.HDR_DISABLED]:"nvcamera.PpeError.osAndAutoHdrAndGameHdr",[m.SLI_ENABLED]:"nvcamera.PpeError.sli",[m.SURROUND_ENABLED]:"nvcamera.PpeError.surround",[m.SOC_FEATURE_ENABLED]:"nvcamera.PpeError.socFeatures",[m.USE_ALTERNATE_DISPLAY]:"nvcamera.PpeError.alternateDisplay",[m.MSHYBRID_ENABLED_DDS_IGPU]:"nvcamera.PpeError.msHybridDDS"};var P=function(x){return x[x.INGAMEHDR_AUTOHDR_ENABLED=0]="INGAMEHDR_AUTOHDR_ENABLED",x}(P||{});const v={[P.INGAMEHDR_AUTOHDR_ENABLED]:"nvcamera.PpeError.AutoHdrAndGameHdr"};var O=function(x){return x[x.DRS_REGKEY_NOT_SET=0]="DRS_REGKEY_NOT_SET",x[x.UNSUPPORTED_PRESENTATION_MODE=1]="UNSUPPORTED_PRESENTATION_MODE",x[x.GAME_HDR_ENABLED=2]="GAME_HDR_ENABLED",x[x.OS_HDR_DISABLED=3]="OS_HDR_DISABLED",x[x.SOC_FEATURES_ENABLED=4]="SOC_FEATURES_ENABLED",x[x.MISTMATCHED_DISPLAY=5]="MISTMATCHED_DISPLAY",x[x.API_NOT_SUPPORTED=6]="API_NOT_SUPPORTED",x}(O||{});const S={[O.DRS_REGKEY_NOT_SET]:"nvcamera.PpeError.featureDisabled",[O.UNSUPPORTED_PRESENTATION_MODE]:"nvcamera.PpeError.iFlip",[O.GAME_HDR_ENABLED]:"nvcamera.PpeError.osAndAutoHdrAndGameHdr",[O.OS_HDR_DISABLED]:"nvcamera.PpeError.osAndAutoHdrAndGameHdr",[O.SOC_FEATURES_ENABLED]:"nvcamera.PpeError.socFeatures",[O.MISTMATCHED_DISPLAY]:"nvcamera.PpeError.mismatchedDisplay",[O.API_NOT_SUPPORTED]:"nvcamera.PpeError.unsupportedApi"},r="sqhfx7",i="nXEC17",a="ydzplY",h="ydznXE",g={filterDetails:{filter:{status:n.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:"Intensity (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[50],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100},{id:0,displayName:"Saturation Boost (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[25],currentValue:[25],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100}]}},c={filterDetails:{filter:{status:n.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:"Peak brightness (nits)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[1],currentValue:[1],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100},{id:0,displayName:"Middle greys (nits)",controlType:"slider",measureUnit:"nits",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[50],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100},{id:0,displayName:"Contrast (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[0],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100},{id:0,displayName:"Saturation (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[0],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100}]}},T={filterDetails:{filter:{status:n.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:"Sharpen (%)",controlType:"slider",measureUnit:"%",dataType:n.Or.Common.Nvcamera.DataType.uint,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[50],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100}]}};class A{constructor(){this.ppeFilterSlot={}}}var L=function(x){return x.RTX_DVC="RTX Dynamic Vibrance",x.RTX_HDR="RTX HDR",x.NIS2="Sharpen (Image Scaling)",x}(L||{})},83934:(Ue,W,d)=>{"use strict";d.d(W,{P:()=>k});var n=d(26513),l=d(35146),p=d(43848),m=d(36466),_=d(91384),P=d(75707),v=d(83915),O=d(14714),S=d(74931),y=d(23860),r=d(53914),i=d(18880),a=d(97152),h=d(59002),g=d(58527),c=d(3567),T=d(65240),A=d(12137),L=d(98005),x=d(27211),V=d(24964),D=d(5798),F=d(73934);let k=(()=>{var R;class G{get streamerConfig(){return this.streamerConfigService.activeConfig}isHighlightsActive(){return this.highlightsActive$.asObservable()}overrideHighlightSettings(){return this.overrideHighlightUI}cachedAHLGameShortName(){return this.cachedShortName}constructor(K,$,ee,J,z,te,X,re,ge,oe,xe,ue){this.injector=K,this.bridgeService=ee,this.translateService=J,this.igoConfig=z,this.oscNotificationService=te,this.telemetry=X,this.telemetryIgo=re,this.dialogHelper=ge,this.endpointFactory=oe,this.hotkeyService=xe,this.gfnInfoService=ue,this.disableRecordSpecialCase=h.Fm.RECORD_SPECIAL_CASE_4K,this.appShortName="",this.scopes=[],this.highlightsActive=!1,this.overrideHighlightUI=!1,this.sdkHighlightSupported=!1,this.cachedShortName="",this.sdkInstance={appShortName:"",profileName:"",name:"",sdkVersion:""},this.highlightsActive$=new n.t(!1),this.gameSpecificHlData=[],this.subActions=[],this.isNvApp=!1,this.logger=$.getLogger("SdkHighlightsService"),this.isNvApp="GFE"===this.igoConfig.branding}init(){this.logger.info("Initialize"),this.gfnInfoService.getRecordSpecialCase().subscribe(K=>{this.logger.info("disableRecordSpecialCase mode: ",K),this.disableRecordSpecialCase=K}),this.bridgeService.executeCommand(S.Ts.Share.Shareserver.RegisterSDKNotifications).subscribe(K=>this.highlightsEvent(K)),this.bridgeService.executeCommand(S.Ts.Share.Shareserver.GetHighlightsActive).subscribe(K=>{K&&this.highlightsActive$.next(!this.disableRecordSpecialCase&&K.active)})}getPermissionsData(K){const $=[];$.push(this.bridgeService.executeCommand(S.Ts.Share.Shareserver.GetApplicationConfigs,{}).pipe((0,_.M)(ee=>{if(this.gameSpecificHlData.length=0,ee){const J=ee.apps.findIndex(z=>z.app.profileName===K);-1!==J&&(this.gameSpecificHlData=ee.apps[J].highlights,this.gameSpecificHlData.forEach(z=>z.userEnabled=!0))}}))),$.push(this.hotkeyService.blockAllHotkeys(!0).pipe((0,_.M)(()=>{this.logger.info("Hotkeys disabled")}))),setTimeout(()=>{(0,l.yU)(...$).subscribe(()=>{this.askToSetPermissions(K)})},2e3)}askToSetPermissions(K){this.logger.info("permissions request");let $="GFE"===this.igoConfig.branding?"product.NVAPP":"product.GFN";$=this.translateService.instant($);let ee="GFE"===this.igoConfig.branding?"confirmation.HighlightsTitle":$;ee=this.translateService.instant(ee);const J="GFE"===this.igoConfig.branding?"confirmation.HighlightsPermissionsNvApp":"confirmation.HighlightsPermissions",z="GFE"===this.igoConfig.branding?"confirmation.HighlightsHintNvApp":"confirmation.HighlightsHint";this.subActions.length=0,this.gameSpecificHlData.length>0&&this.gameSpecificHlData.forEach(X=>{const re=`highlightLabels.${X.name}`;let ge=this.translateService.instant(re);ge===re&&(ge=X.name),this.subActions.push({label:ge,state:X.userEnabled})}),this.dialogHelper.openAlertDialog({title:ee,query:J,queryParam:{arg:K},state:"confirmation.HighlightsMainCheckbox",hint:z,hintParam:{arg:$},action1:"confirmation.LetsGo",action1Color:"#76b900",subActions:this.subActions}).pipe((0,P.ZZ)(X=>X.afterClosed())).subscribe(X=>{X===i.SF.Action1?this.allowHighlights():this.disallowHighlights(),this.hotkeyService.blockAllHotkeys(!1).subscribe()})}highlightsEvent(K){this.logger.info("Event: ",K),K?K.requestPermissions?this.eventRequestPermissions(K):K.createInstance?this.eventCreateInstance(K):K.destroyInstance?this.eventDestroyInstance(K):K.updatePermissions?(this.sdkInstance.appShortName=K.updatePermissions.app.appShortName,this.sdkInstance.profileName=K.updatePermissions.app.profileName,this.sdkInstance.name=K.updatePermissions.app.name):K.actionStatus?this.eventActionStatus(K):K.openGroup||K.closeGroup||(K.highlightSessionStatus?(this.highlightsActive=K.highlightSessionStatus.enable,this.highlightsActive$.next(K.highlightSessionStatus.enable)):K.manualRecordRunning?"GFE"===this.igoConfig.branding&&this.oscNotificationService.show(y.Ed.ManualRecordRunning,K.manualRecordRunning.manualRecordGameName,K.manualRecordRunning.gameName):this.logger.info("Unknown or unhandled Event Type: ",K)):this.logger.info("Event: undefined or null")}eventRequestPermissions(K){this.appShortName=K.requestPermissions.app.appShortName,this.scopes=K.requestPermissions.scopes,this.getPermissionsData(K.requestPermissions.app.profileName)}eventCreateInstance(K){this.sdkInstance.appShortName=K.createInstance.app.appShortName,this.sdkInstance.profileName=K.createInstance.app.profileName,this.sdkInstance.name=K.createInstance.app.name,this.sdkInstance.sdkVersion=K.createInstance.sdkVersion}sendHighlightFailureTelemetry(K){!this.isNvApp||!K?.actionStatus?.app?.name||!K?.actionStatus?.status||this.telemetry.sendHighlightCapture({shortName:K.actionStatus.app.name},null,null,null,null,K.actionStatus.status)}eventActionStatus(K){const $=K.actionStatus;"HighlightsSaveVideo"!==K.actionStatus.action&&"HighlightsSaveScreenshot"!==K.actionStatus.action||"NVGSDK_ERR_CAP_LIMIT_REACHED"!==K.actionStatus.status?"HighlightsSaveVideo"!==K.actionStatus.action&&"HighlightsSaveScreenshot"!==K.actionStatus.action||"NVGSDK_ERR_DISK_LIMIT_REACHED"!==K.actionStatus.status?"NVGSDK_SUCCESS"!==K.actionStatus.status&&(void 0===K.actionStatus.status?K.actionStatus.status="NVGSDK_ERR_NOT_SET":this.sendHighlightFailureTelemetry(K),this.logger.info("Event not handled: ",K)):(this.logger.info("Capture failed due to disk space limit"),this.oscNotificationService.show(y.Ed.NoSpaceCaptureNotSaved,"commonLabels.Highlights")):(this.logger.info("Capture failed due to cap space limit"),this.oscNotificationService.show(y.Ed.NoSpaceCaptureNotSaved,"commonLabels.Highlights")),this.telemetryIgo.recordSDKCallResult($.action,$.status,$.statusInternalCode,{shortName:$.app.appShortName},$.sdkVersion?$.sdkVersion:""),$.action===r.rV.connect&&!this.isNvApp&&this.getStateOfCurrentGame(K.actionStatus.app).subscribe(ee=>{ee.permissionParams.permissions.length>0&&this.telemetry.sendHighlightsGameSetting({},ee.state,ee.state?r.Bt.alreadyOn:r.Bt.alreadyOff)})}eventDestroyInstance(K){this.sdkInstance.appShortName="",this.sdkInstance.profileName="",this.sdkInstance.name="",this.sdkInstance.sdkVersion=""}fillPermissions(K){const $={app:{},permissions:[]};return $.app.appShortName=this.appShortName,this.scopes.forEach((ee,J)=>{$.permissions[J]={scope:ee,permission:K}}),$}setPermissions(K){const $=this.fillPermissions(K);return this.bridgeService.executeCommand(S.Ts.Share.Shareserver.SetSDKPermissions,$).pipe((0,v.T)(ee=>(this.logger.info("SetSDKPermissions "+(K===S.Or.Share.Shareserver.SdkPermissions.granted?"granted":"denied")+" for: ",this.appShortName),this.gameSpecificHlData.length>0&&this.updateHighlightsSettings(),!0)),(0,O.W)(ee=>(this.logger.info("SetSDKPermissions failed: ",ee),(0,p.of)(!1))))}updateHighlightsSettings(){const $={app:{appShortName:this.sdkInstance.appShortName,profileName:this.sdkInstance.profileName,name:this.sdkInstance.name},highlightDefinitions:this.gameSpecificHlData};$.highlightDefinitions.forEach(ee=>{const J=`highlightLabels.${ee.name}`;let z=this.translateService.instant(J);z===J&&(z=ee.name),ee.userEnabled=this.subActions.find(te=>te.label===z).state}),this.bridgeService.executeCommand(S.Ts.Share.Shareserver.SetHighlightsConfig,$).subscribe(()=>{})}allowHighlights(){this.setPermissions(S.Or.Share.Shareserver.SdkPermissions.granted).subscribe(),this.telemetry.sendHighlightsGameSetting({shortName:this.sdkInstance.appShortName},!0,r.Bt.initial,null,r.f2.gameToggle,this.sdkInstance.profileName)}disallowHighlights(){this.setPermissions(S.Or.Share.Shareserver.SdkPermissions.denied).subscribe(),this.telemetry.sendHighlightsGameSetting({shortName:this.sdkInstance.appShortName},!1,r.Bt.initial,null,r.f2.gameToggle,this.sdkInstance.profileName)}getStateOfCurrentGame(K){return this.bridgeService.executeCommand(S.Ts.Share.Shareserver.GetSDKPermissions,{app:K}).pipe((0,v.T)(J=>{let z=!1;for(let X=0;X<J.permissions.length;X++)z=J.permissions[X].permission===S.Or.Share.Shareserver.SdkPermissions.granted||z,this.logger.info(J.permissions[X].scope+" permissions for: "+K.profileName+" are: "+J.permissions[X].permission);return{permissionParams:{app:K,permissions:J.permissions},state:z}}))}setStateOfCurrentGame(K){for(let ee=0;ee<K.permissionParams.permissions.length;ee++)K.permissionParams.permissions[ee].permission=K.state?S.Or.Share.Shareserver.SdkPermissions.granted:S.Or.Share.Shareserver.SdkPermissions.denied;return this.bridgeService.executeCommand(S.Ts.Share.Shareserver.SetSDKPermissions,K.permissionParams).pipe((0,v.T)(()=>{this.logger.info("Permissions for: "+K.permissionParams.app.profileName+" changed to: "+K.permissionParams.permissions[0].permission)}))}IsSDKHighlightSupportedGame(K){return this.lcarsService.getMetadataByCmsId(K).pipe((0,v.T)($=>{if($){if(this.logger.info("isHighlightsSupported: ",$.nvidiaTech?.HIGHLIGHTS),$.nvidiaTech?.HIGHLIGHTS)return this.sdkHighlightSupported=!0,void(this.overrideHighlightUI=!1);this.sdkHighlightSupported=!1}else this.logger.info("isHighlightsSupported value not found for the game")})).subscribe(m.l,$=>{this.sdkHighlightSupported=!1,this.overrideHighlightUI=!1,this.logger.error("Unable to obtain game meta data.",$)})}createEndpoint(){return this.endpointFactory.createEndpoint({config:{timeout:1e4,timeBetweenRetries:3e4,maxRetries:2}})}toggleAutohighlight(K){!0===this.igoConfig.GFNCefClient&&(this.streamerConfigService=this.injector.get(a.zi2),this.lcarsService=this.injector.get(a.Br4),this.IsSDKHighlightSupportedGame(this.streamerConfig.cmsId),this.enableAutohighlight(K))}enableAutohighlight(K){const $={toggle:K};K||this.sdkHighlightSupported?(this.overrideHighlightUI=!1,this.cachedShortName=""):(this.overrideHighlightUI=!0,this.cachedShortName=this.streamerConfig.shortName,this.logger.info("AHL disabled on a supported game: ",this.cachedShortName)),this.sdkHighlightSupported?this.logger.info("AHL not supported for ",this.streamerConfig.shortName):this.bridgeService.executeCommand(S.Ts.Share.Shareserver.ToggleAutoHighlight,$).pipe((0,v.T)(ee=>(this.logger.info("ToggleAutoHighlight returns: ",ee),ee)),(0,O.W)(ee=>(this.logger.info("ToggleAutoHighlight error: ",ee),(0,p.of)(!1)))).subscribe()}toggleSdkHighlights(K){!0===this.igoConfig.GFNCefClient&&this.bridgeService.executeCommand(S.Ts.Share.Shareserver.DisableRecordSpecialCase,{specialCase:K?h.Fm.RECORD_SPECIAL_CASE_NONE:h.Fm.RECORD_SPECIAL_CASE_4K}).pipe((0,v.T)(ee=>(this.logger.info("DisableRecordSpecialCase returns: ",ee),ee)),(0,O.W)(ee=>(this.logger.info("DisableRecordSpecialCase error: ",ee),(0,p.of)(!1)))).subscribe()}}return(R=G).\u0275fac=function(K){return new(K||R)(g.KVO(g.zZn),g.KVO(c.J6),g.KVO(c.NZ),g.KVO(T.c$),g.KVO(A.k),g.KVO(y.mb),g.KVO(L.x),g.KVO(x.S),g.KVO(V.e),g.KVO(D.t),g.KVO(F.QS),g.KVO(h.x_))},R.\u0275prov=g.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),G})()},51830:(Ue,W,d)=>{"use strict";d.d(W,{W1:()=>Z,YQ:()=>re,gX:()=>ce,m_:()=>xe});var n=d(26513),l=d(80583),p=d(93181),m=d(43848),_=d(31315),P=d(17053),v=d(35146),O=d(8619),S=d(65706),y=d(43780),r=d(75707),i=d(83915),a=d(14714),h=d(91384),g=d(26875),T=d(74931),A=d(78812),L=d(50801),x=d(23860),V=d(73934),D=d(53914),F=d(43827),I=d(22123),k=d(18880),R=d(59002),G=d(58527),Y=d(3567),K=d(11728),$=d(98005),ee=d(24964),J=d(12137),z=d(83934),te=d(2688),X=d(27211),re=T.Or.Share.Shareserver.MicModeEnum,ge=T.Or.Share.Shareserver.Resolution,oe=T.Or.Share.Shareserver.Quality,xe=T.Or.Share.Shareserver.Codec,se=T.Or.Share.Shareserver.DeviceTypeEnum,ce=T.Or.Share.Shareserver.DeviceStateTypeEnum;let Z=(()=>{var de;class ae{constructor(_e,ke,De,Me,je,$e,Oe,gt,qt,ye,Re,Ze,et,xt){this.bridgeService=ke,this.oscNotificationService=De,this.hotkeyService=Me,this.oscDisplayService=je,this.telemetry=$e,this.dialogHelper=Oe,this.igoConfig=gt,this.gfnInfoService=qt,this.sdkHighlightService=ye,this.microphoneService=Re,this.featureSupportService=Ze,this.telemetryIgoService=et,this.dbService=xt,this.ShadowplayStorageKeyName="ShadowplayPersistedData",this.disableRecordSpecialCase=R.Fm.RECORD_SPECIAL_CASE_4K,this.$mrState=new n.t(!1),this.$irState=new n.t(F.Qe.off),this.$micState=new n.t(re.off),this.$hlBadState=new n.t(!1),this.$micDeviceState=new l.B7,this.$camDeviceState=new l.B7,this.$micPttHotkey=new n.t(!1),this.$freestyleAnselState=new l.B7,this.$videoSpecsInitState=new n.t(!1),this.$appStartedEvent=new l.B7,this._mrStartTime=null,this.isDTCaptureSupported=!1,this.notebookCoProc=!1,this.captureState=null,this.isGfnMicrophoneEnabled=!1,this.maxIRTime=15,this.throttleMs=333,this.microphoneSpecs=[],this.currentMicIndex=-1,this.isNvApp=!1,this.isAV1RecSupported=!1,this.protectedContentFail=!1,this.protectedContentFailRecordSave=!1,this.captureScreenshot=void 0,this.enableInstantReplay=void 0,this.disableInstantReplay=void 0,this.saveIR=void 0,this.startManualRecord=void 0,this.stopAndSaveManualRecord=void 0,this.logger=_e.getLogger("ShadowPlayService"),this.dBStore=this.dbService.getGlobalStore("Shadowplay"),this.isNvApp=this.featureSupportService.isNvApp()}throttled(_e){return(0,g.throttle)(_e,1e3,{trailing:!1})}init(){this.captureScreenshot=this.throttled(this._captureScreenshot),this.enableInstantReplay=this.throttled(this._enableInstantReplay),this.disableInstantReplay=this.throttled(this._disableInstantReplay),this.saveIR=this.throttled(this._saveIR),this.startManualRecord=this.throttled(this._startManualRecord),this.stopAndSaveManualRecord=this.throttled(this._stopAndSaveManualRecord),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.RegisterCaptureStateChangeNotifications).pipe((0,O.p)(ke=>ke.captureMode!==T.Or.Share.Shareserver.CaptureModeEnum.gameCast)).subscribe(ke=>this.handleCaptureEvent(ke)),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.RegisterGeneralNotifications).subscribe(ke=>this.handleGeneralNotification(ke)),this.gfnInfoService.getRecordSpecialCase().subscribe(ke=>{this.logger.info("disableRecordSpecialCase mode: ",ke),this.disableRecordSpecialCase=ke,this.sdkHighlightService.toggleAutohighlight(!this.disableRecordSpecialCase),this.sdkHighlightService.toggleSdkHighlights(!this.disableRecordSpecialCase)}),this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,S.s)(1)).subscribe(ke=>{if(this.isGfnMicrophoneEnabled=ke,ke)this.microphoneService.currentMicState$.subscribe(De=>{this.setMicMode(De===L.EO.Unmuted?re.on:re.off)});else{const De=this.getMicrophoneData().subscribe(()=>{De.unsubscribe()});this.hotkeyService.listen(V.g8.MicToggle).pipe((0,y.c)(this.throttleMs)).subscribe(()=>{let Me=this.$micState.getValue();Me=Me===re.ptt||Me===re.on?re.off:re.on,this.setMicMode(Me)}),this.hotkeyService.listenPTT().pipe((0,y.c)(this.throttleMs)).subscribe(Me=>{this.$micPttHotkey.next(Me),this.setMicPTTMode(Me?re.on:re.off)})}}),this.hotkeyService.listen(V.g8.DVRToggle).pipe((0,y.c)(this.throttleMs)).subscribe(()=>{this.disableRecordSpecialCase||(this.$irState.getValue()===F.Qe.off?this.enableInstantReplay():this.disableInstantReplay())}),this.hotkeyService.listen(V.g8.DVRSave).pipe((0,y.c)(this.throttleMs)).subscribe(()=>{this.disableRecordSpecialCase||(this.$irState.getValue()===F.Qe.recording?this.saveIR():this.logger.info("Attempted to save and instant replay while instant replay was disabled"))}),this.hotkeyService.listen(V.g8.RecordToggle).pipe((0,y.c)(this.throttleMs)).subscribe(()=>{this.disableRecordSpecialCase||(this.$mrState.getValue()?this.stopAndSaveManualRecord():this.startManualRecord())}),this.hotkeyService.listen(V.g8.Screenshot).pipe((0,y.c)(this.throttleMs)).subscribe(()=>{R.Fm.RECORD_SPECIAL_CASE_PLAYTEST!==this.disableRecordSpecialCase&&this.captureScreenshot()}),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetCaptureState).subscribe(ke=>{this.captureState=ke.state}),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetDesktopCaptureSupportReason).subscribe(ke=>{if(this.logger.info("Desktop Support Reason: ",ke),this.isDTCaptureSupported=ke.support,!this.isDTCaptureSupported){const De=ke.desktopCaptureUnsupportedReason[0];(De.indexOf("notebookDriver")>=0||De.indexOf("notebookCoProc")>=0||De.indexOf("notebookDGpu")>=0||De.indexOf("hideCheckboxAOSP")>=0)&&(this.notebookCoProc=!0)}},ke=>{this.logger.info("Desktop support query failed")});const _e=this.getInstantReplayMaxLength().subscribe(ke=>{this.maxIRTime=ke,this.logger.info("IR Length: "+ke+" seconds"),_e.unsubscribe()});(0,p.p)([this.getInstantReplayEnableStatus(),this.getInstantReplayRunningStatus()]).subscribe(([ke,De])=>{De?this.$irState.next(F.Qe.recording):ke&&this.$irState.next(F.Qe.on),(De||ke)&&this.hotkeyService.startListeningToHotkey(V.g8.DVRSave).subscribe()}),this.isNvApp&&(this.getVideoSpecs().pipe((0,r.ZZ)(()=>this.loadShadowplayData()),(0,S.s)(1),(0,i.T)(()=>{this.isAV1RecSupported=!!this.videoSpecs?.codecs?.length,this.$videoSpecsInitState.next(!0),this.telemetryIgoService.updateVideoSpecSettings(this.videoSpecs)})).subscribe(),this.getMicMode().pipe((0,S.s)(1)).subscribe(ke=>{this.telemetryIgoService.updateMicMode(ke)}),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.RegisterAppNotifications).pipe((0,O.p)(ke=>!!ke?.appStarted)).subscribe(ke=>{this.$appStartedEvent.next(ke)}),setTimeout(()=>{this.getLastLaunchedApp()},0))}get mrStartTime(){return this._mrStartTime}get videoCaptureReturnLocation(){return this._videoCaptureReturnLocation}set videoCaptureReturnLocation(_e){this._videoCaptureReturnLocation=_e}getShowCodecMessage(){return this.isAV1RecSupported&&this.spData.showCodecMessage}dismissShowCodecMessage(){this.spData.showCodecMessage=!1,this.savePersistedData()}getDefaultShadowplayData(){return this.spData={showCodecMessage:!0},this.spData}savePersistedData(_e=null){this.dBStore.setItem(this.ShadowplayStorageKeyName,_e=_e||this.spData).subscribe(ke=>{this.logger.info("Persisted data saved successfully ",ke)},ke=>{this.logger.error("Error while saving the persisted data ",ke)})}loadShadowplayData(){return this.dBStore.getItem(this.ShadowplayStorageKeyName).pipe((0,i.T)(_e=>_e?(this.logger.info("Loaded sp data from the storage"),this.spData=_e,!0):(this.logger.info("No sp data found in storage"),this.spData=this.getDefaultShadowplayData(),!1)),(0,a.W)(_e=>(this.logger.error("Could not load sp data from the storage: ",JSON.stringify(_e)),this.spData=this.getDefaultShadowplayData(),(0,m.of)(!1))))}handleCaptureEvent(_e){this.logger.info("Capture Event:",_e);const ke=!this.isNvApp||_e?.errorType;switch(_e.captureMode){case T.Or.Share.Shareserver.CaptureModeEnum.screenshot:this.logger.info("screenshot capture event"),ke&&this.telemetry.sendCaptureEvent(D.db.screenshotSaved,_e.captureMethod,_e.recordWidth,_e.recordHeight,_e.recordFramerate,_e.recordCodec,_e.colorSpaceRange,_e.errorType,_e.errorDetails);break;case T.Or.Share.Shareserver.CaptureModeEnum.manual:this.logger.info("Manual capture"),_e.recordingState===T.Or.Share.Shareserver.RecordingState.started?this.disableRecordSpecialCase||(this.oscNotificationService.show(x.Ed.RecordStarted),this.$mrState.next(!0),this._mrStartTime=Date.now(),ke&&this.telemetry.sendCaptureEvent(D.db.startManualCapture,_e.captureMethod,_e.recordWidth,_e.recordHeight,_e.recordFramerate,_e.recordCodec,_e.colorSpaceRange,_e.errorType,_e.errorDetails)):_e.recordingState===T.Or.Share.Shareserver.RecordingState.available&&(this.protectedContentFailRecordSave||this.oscNotificationService.show(x.Ed.RecordSaving),this.protectedContentFailRecordSave=!1,this.$mrState.next(!1),this._mrStartTime=null,ke&&this.telemetry.sendCaptureEvent(D.db.stopAndSaveManualCapture,_e.captureMethod,_e.recordWidth,_e.recordHeight,_e.recordFramerate,_e.recordCodec,_e.colorSpaceRange,_e.errorType,_e.errorDetails));break;case T.Or.Share.Shareserver.CaptureModeEnum.dvr:this.logger.info("DVR");const De=this.$irState.value===F.Qe.on||this.$irState.value===F.Qe.recording;_e.recordingState===T.Or.Share.Shareserver.RecordingState.enabled?this.disableRecordSpecialCase||(this.oscNotificationService.show(x.Ed.InstantReplayStarted),this.logger.info("IR Enabled"),this.$irState.next(F.Qe.on),ke&&this.telemetry.sendCaptureEvent(D.db.turnOnInstantReplay,_e.captureMethod,_e.recordWidth,_e.recordHeight,_e.recordFramerate,_e.recordCodec,_e.colorSpaceRange,_e.errorType,_e.errorDetails)):_e.recordingState===T.Or.Share.Shareserver.RecordingState.started?this.disableRecordSpecialCase||(this.logger.info("IR Started"),this.$irState.next(F.Qe.recording)):_e.recordingState===T.Or.Share.Shareserver.RecordingState.available?this.disableRecordSpecialCase||(this.logger.info("IR Available"),this.$irState.next(F.Qe.on)):_e.recordingState===T.Or.Share.Shareserver.RecordingState.saved?this.disableRecordSpecialCase||(this.logger.info("IR Saved"),this.oscNotificationService.show(x.Ed.InstantReplaySaving),ke&&this.telemetry.sendCaptureEvent(D.db.instantReplaySaved,_e.captureMethod,_e.recordWidth,_e.recordHeight,_e.recordFramerate,_e.recordCodec,_e.colorSpaceRange,_e.errorType,_e.errorDetails)):_e.recordingState===T.Or.Share.Shareserver.RecordingState.disabled&&(this.oscNotificationService.show(x.Ed.InstantReplayStopped),this.logger.info("IR Disabled"),this.$irState.next(F.Qe.off),ke&&this.telemetry.sendCaptureEvent(D.db.turnOffInstantReplay,_e.captureMethod,_e.recordWidth,_e.recordHeight,_e.recordFramerate,_e.recordCodec,_e.colorSpaceRange,_e.errorType,_e.errorDetails));const Me=this.$irState.value===F.Qe.on||this.$irState.value===F.Qe.recording;Me!==De&&(Me?this.hotkeyService.startListeningToHotkey(V.g8.DVRSave).subscribe():this.hotkeyService.stopListeningToHotkey(V.g8.DVRSave));break;case T.Or.Share.Shareserver.CaptureModeEnum.gearHighlight:this.logger.info("Gear Highlight"),_e.recordingState===T.Or.Share.Shareserver.RecordingState.enabled?(this.logger.info("Gear Highlights Enabled"),this.$hlBadState.next(!1)):_e.recordingState===T.Or.Share.Shareserver.RecordingState.disabled&&(this.logger.info("Gear Highlights Disabled"),this.$hlBadState.next(!0));break;default:this.logger.info("Other",_e.captureMode)}}handleGeneralNotification(_e){if(this.logger.info("General Event: ",_e),_e.captureFailed)this.handleError();else if(_e.galleryIsFull)this.logger.info("Gallery is full"),this.oscNotificationService.show(x.Ed.GalleryIsFull);else if(_e.diskSpaceIsLow)this.logger.info("Gallery disk space is low"),this.oscNotificationService.show(x.Ed.DiskSpaceIsLow);else if(_e.deviceChange)_e.deviceChange.device===se.mic?(this.logger.info("Microphone has been ",_e.deviceChange.state),this.$micDeviceState.next(_e.deviceChange.state)):_e.deviceChange.device===se.webcam&&(this.logger.info("Camera has been ",_e.deviceChange.state),this.$camDeviceState.next(_e.deviceChange.state));else if(_e.disableHDR)switch(_e.disableHDR.captureMode){case T.Or.Share.Shareserver.CaptureModeEnum.manual:this.oscNotificationService.show(x.Ed.HDRErrorRecord);break;case T.Or.Share.Shareserver.CaptureModeEnum.highlight:this.oscNotificationService.show(x.Ed.HDRErrorHighlight)}else if(_e.protectedContentRunning){this.logger.info("Protected content notification ",_e.protectedContentRunning.appname);const ke=_e.protectedContentRunning.appname?_e.protectedContentRunning.appname.replace(".exe",""):"notification.ProtectedContentGeneric";this.protectedContentFail=!0,this.protectedContentFailRecordSave=!0,setTimeout(()=>{this.oscNotificationService.show(x.Ed.ProtectedContentWarning,ke)},1e3)}else _e.freeStyleAnselState&&this.$freestyleAnselState.next(_e.freeStyleAnselState.enable)}handleError(){!1===this.isDTCaptureSupported&&!0===this.notebookCoProc&&("PID"===this.captureState?(this.oscNotificationService.show(x.Ed.WarningSupportedGameRequired),this.logger.info("Supported game required")):(this.oscNotificationService.show(x.Ed.WarningFullscreenGameRequired),this.logger.info("Fullscreen game required")))}getMRState(){return this.$mrState.asObservable()}getIRState(){return this.$irState.asObservable()}getMICState(){return this.$micState.asObservable()}getHLBadState(){return this.$hlBadState.asObservable()}getMICDeviceState(){return this.$micDeviceState.asObservable()}getCAMDeviceState(){return this.$camDeviceState.asObservable()}micPttHotkeyPressed(){return this.$micPttHotkey.asObservable()}isNotebookCoProcSystem(){return this.notebookCoProc}doWeNeedToAskPermission(){return(0,_.zV)([this.isCaptureControlPIDModeValid(),this.isInDesktopMode(),this.getDesktopCaptureSupported(),this.getDesktopCaptureEnabled()]).pipe((0,i.T)(([_e,ke,De,Me])=>(this.logger.info("isCaptureControlPIDModeValid: ",_e),this.logger.info("isInDesktopMode: ",ke),this.logger.info("isDesktopCaptureSupported: ",De),this.logger.info("isDesktopCaptureEnabled: ",Me),!(!ke||Me||_e)&&(!0===this.notebookCoProc?("PID"===this.captureState?(this.oscNotificationService.show(x.Ed.WarningSupportedGameRequired),this.logger.info("Supported game required")):(this.oscNotificationService.show(x.Ed.WarningFullscreenGameRequired),this.logger.info("Fullscreen game required")),!1):De))))}isCaptureControlPIDModeValid(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetCaptureControlPIDMode).pipe((0,i.T)(_e=>(this.logger.info("Is Capture Control PID mode valid: ",_e),_e.valid)))}isInDesktopMode(){return this.oscDisplayService.getCurrentDesktopMode().pipe((0,S.s)(1),(0,i.T)(_e=>(this.logger.info("Desktop mode: ",_e),"desktop"===_e)))}getDesktopCaptureSupported(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetDesktopCaptureSupported).pipe((0,i.T)(_e=>(this.logger.info("DesktopCapture Supported: ",_e.support),_e.support)))}getDesktopCaptureEnabled(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetDesktopCaptureEnabled).pipe((0,i.T)(_e=>(this.logger.info("DesktopCapture Enabled: ",_e.enable),_e.enable)))}SetDesktopCaptureEnabled(_e){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SetDesktopCaptureEnabled,{enable:_e}).pipe((0,i.T)(De=>(this.logger.info("SetDesktopCaptureEnabled: ",De),!0)),(0,a.W)(De=>(this.logger.error("Error in SetDesktopCaptureEnabled: ",De),(0,m.of)(!1))))}handlePrivacyAndAvailability(_e){return this.doWeNeedToAskPermission().pipe((0,r.ZZ)(ke=>ke?"GFE"===this.igoConfig.branding?(this.dialogHelper.closeAll(),this.askToEnableDTCapture(_e)):(0,m.of)(!1):(0,m.of)(!0)))}sendCaptureTelemetryNvApp(_e,ke){if(!this.isNvApp)return;let De;De=_e===D.db.turnOnInstantReplay||_e===D.db.turnOffInstantReplay?(0,m.of)(null):this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetCaptureProcessInfo,{appType:T.Or.Share.Shareserver.AppType.capture}).pipe((0,S.s)(1),(0,a.W)(Me=>(this.logger.error("GetCaptureProcessInfo failed with ",Me.toString()),(0,m.of)(null)))),De.pipe((0,i.T)(Me=>{this.telemetry.sendCaptureEvent(_e,null,null,null,null,null,null,ke?ke.toString():A.oX.Undefined,null,null,{drsName:Me?.drsName,drsProfileName:Me?.profileName})})).subscribe()}checkFailure(_e,ke,De){this.logger.info("Check Failure for ",ke," returns: ",_e),_e._return_internal===T.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_NO_DISC_SPACE||_e._return_internal===T.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_BOUNDS||_e._return_internal===T.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_NO_GALLERY_SPACE?"mainMenu.ManualRecord"===ke?this.oscNotificationService.show(x.Ed.NoSpaceCaptureNotStarted):this.oscNotificationService.show(x.Ed.NoSpaceCaptureNotSaved,ke):_e._return_internal===T.Or.Share.Shareserver.InternalErrorCodeEnum.ShadowPlay_E_FAIL_CAPTURE_DISABLED&&(this.logger.info("Record failure due to protected content",this.protectedContentFail),this.protectedContentFail||this.oscNotificationService.show(x.Ed.WarningSupportedGameRequired,ke),this.protectedContentFail=!1),this.sendCaptureTelemetryNvApp(De,_e?._return_status)}askToEnableDTCapture(_e){this.logger.info("askToEnableDTCapture request for: ",_e);let ke="",De="";switch(_e){case"ss":ke="mainMenu.Screenshot",De="confirmation.CaptureScreenshot";break;case"mr":ke="mainMenu.ManualRecord",De="confirmation.CaptureRecording";break;case"br":ke="settings.Broadcast",De="confirmation.CaptureBroadcasting"}return this.dialogHelper.openAlertDialog({title:ke,query:De,queryParam:"",action1:"confirmation.NotRightNow",action2:"confirmation.yes"},!0,!1).pipe((0,r.ZZ)(je=>je.afterClosed()),(0,r.ZZ)(je=>je===k.SF.Action2?this.SetDesktopCaptureEnabled(!0):(0,m.of)(!1)),(0,i.T)(je=>"ss"!==_e&&je))}_captureScreenshot(){this.handlePrivacyAndAvailability("ss").subscribe(ke=>{ke&&(this.logger.info("Taking screenshot"),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.CaptureScreenshot).subscribe(De=>{this.checkFailure(De,"mainMenu.Screenshot",D.db.screenshotSaved)},De=>{this.sendCaptureTelemetryNvApp(D.db.screenshotSaved,De),this.logger.error("CaptureScreenshot failed: ",De)}),this.telemetry.startCaptureEvent(D.db.screenshotSaved))})}captureCustomScreenshot(_e,ke,De){return this.logger.info("Got custom screenshot request: Filename "+ke),new P.c(Me=>{const je=this.bridgeService.executeCommand(T.Ts.Share.Shareserver.CustomScreenshotNotifications).subscribe($e=>{Me.next($e),je.unsubscribe(),Me.complete()},$e=>{Me.error($e)});this.bridgeService.executeCommand(T.Ts.Share.Shareserver.CaptureCustomScreenshot,{controller:_e,screenshotName:ke,slotId:De}).subscribe($e=>{($e._return_code||$e._return_internal!==T.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Success_Ok&&$e._return_internal!==T.Or.Share.Shareserver.InternalErrorCodeEnum.GXP_Success_NoError)&&(this.logger.info("Internal error while capturing screenshot."+$e.return_code),Me.error($e.return_code),je.unsubscribe())},$e=>{this.logger.info("Error while initializing custom screenshot"),Me.error($e),je.unsubscribe()})})}_enableInstantReplay(){return this.logger.info("IR Enabled"),this.telemetry.startCaptureEvent(D.db.turnOnInstantReplay),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.EnableInstantReplay,{enable:!0}).subscribe(_e=>{this.checkFailure(_e,"mainMenu.InstantReplay",D.db.turnOnInstantReplay)},_e=>{this.sendCaptureTelemetryNvApp(D.db.turnOnInstantReplay,_e),this.logger.error("EnableInstantReplay (enable) failed: ",_e)})}_disableInstantReplay(){return this.logger.info("IR Disabled"),this.telemetry.startCaptureEvent(D.db.turnOffInstantReplay),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.EnableInstantReplay,{enable:!1}).subscribe(_e=>{this.checkFailure(_e,"mainMenu.InstantReplay",D.db.turnOffInstantReplay)},_e=>{this.sendCaptureTelemetryNvApp(D.db.turnOffInstantReplay,_e),this.logger.error("EnableInstantReplay (disable) failed: ",_e)})}_saveIR(){return this.logger.info("IR saved"),this.telemetry.startCaptureEvent(D.db.instantReplaySaved),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SaveInstantReplay).subscribe(_e=>{this.checkFailure(_e,"mainMenu.InstantReplay",D.db.instantReplaySaved)},_e=>{this.sendCaptureTelemetryNvApp(D.db.instantReplaySaved,_e),this.logger.error("SaveInstantReplay failed: ",_e)})}_startManualRecord(){this.logger.info("Try manual"),this.handlePrivacyAndAvailability("mr").subscribe(ke=>{if(ke)return this.logger.info("Manual Record started"),this.telemetry.startCaptureEvent(D.db.startManualCapture),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.EnableRecord,{enable:!0}).subscribe(De=>{this.checkFailure(De,"mainMenu.ManualRecord",D.db.startManualCapture)},De=>{this.sendCaptureTelemetryNvApp(D.db.startManualCapture,De),this.logger.error("EnableRecord (start) failed: ",De)})})}_stopAndSaveManualRecord(){return this.logger.info("Manual Record saved"),this.telemetry.startCaptureEvent(D.db.stopAndSaveManualCapture),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.EnableRecord,{enable:!1}).subscribe(_e=>{this.checkFailure(_e,"mainMenu.ManualRecord",D.db.stopAndSaveManualCapture)},_e=>{this.sendCaptureTelemetryNvApp(D.db.stopAndSaveManualCapture,_e),this.logger.error("EnableRecord (save) failed: ",_e)})}getInstantReplayRunningStatus(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetInstantReplayRunningStatus).pipe((0,i.T)(_e=>(this.logger.info("GetInstantReplayRunningStatus returns: ",_e),_e.status)))}getInstantReplayEnableStatus(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetInstantReplayEnableStatus).pipe((0,i.T)(_e=>(this.logger.info("GetInstantReplayEnableStatus returns: ",_e),_e.status)))}getInstantReplayMaxLength(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetInstantReplaySettings).pipe((0,i.T)(_e=>(this.logger.info("GetInstantReplaySettings returns: ",_e),this.telemetry.updateReplayLength(_e.replayLengthSeconds),_e.replayLengthSeconds)))}getMicMode(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetMicMode).pipe((0,i.T)(_e=>(this.logger.info("GetMicMode returns: ",_e),this.$micState.next(_e.mode),_e.mode)),(0,a.W)(_e=>(this.logger.error("GetMicMode error: ",_e),(0,m.of)(re.off))))}setMicMode(_e){const ke={mode:_e},De=_e!==re.off;return!this.isGfnMicrophoneEnabled&&"GFN"===this.igoConfig.branding&&(this.logger.info(" SetMicState with ",De),this.bridgeService.executeCommand(T.Ts.Gfn.Streaming.SetMicState,{enable:De}).subscribe(Me=>{},Me=>{this.logger.error(" SetMicState: ",Me)})),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SetMicMode,ke).subscribe(Me=>{this.$micState.next(_e),this.telemetryIgoService.updateMicMode(_e)},Me=>{this.logger.error(" SetMicMode: ",Me)})}setMicPTTMode(_e){const ke=!this.$mrState.getValue(),De=this.$irState.getValue()!==F.Qe.recording,Me=this.$micState.getValue()!==re.ptt;if(!(ke&&De||Me))return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.MicPTTMode,{mode:_e}).subscribe($e=>{this.logger.info("SetMicPTTMode results: ",$e)},$e=>{this.logger.info("SetMicPTTMode error: ",$e)})}getFreestylePreviewBasePath(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetFreestylePreviewBasePath,{})}GetSupportedBitrates(_e,ke){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetSupportedBitrates,{quality:_e,resolution:ke})}GetSupportedBitratesFramerates(_e,ke,De,Me){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetSupportedBitratesFramerates,{quality:_e,resolution:ke,codec:De,framerate:Me})}GetQualityDefaultData(_e){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetQualityDefaultData,{quality:_e})}setInstantReplaySettings(_e){return this.logger.info("setInstantReplaySettings params: ",_e),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SetInstantReplaySettings,_e).pipe((0,i.T)(ke=>(this.logger.info("SetInstantReplaySettings returns: ",ke),!0)))}getRecordSettings(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetRecordSettings).pipe((0,i.T)(_e=>(this.logger.info("GetRecordSettings returns: ",_e),_e)))}setRecordSettings(_e){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SetRecordSettings,_e).subscribe(ke=>{this.logger.info("SetRecordSettings returns: ",ke)})}getBroadcastSettings(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetBroadcastSettings).pipe((0,i.T)(_e=>(this.logger.info("GetBroadcastSettings returns: ",_e),_e)))}convertResolution(_e){switch(_e){case"In-game":default:return ge.In_game;case"2160p 4K":return ge.Resolution_2160p_4K;case"4320p 8K":return ge.Resolution_4320p_8K;case"1440p HD":return ge.Resolution_1440p_HD;case"1080p HD":return ge.Resolution_1080p_HD;case"720p HD":return ge.Resolution_720p_HD;case"480p":return ge.Resolution_480p;case"360p":return ge.Resolution_360p;case"240p":return ge.Resolution_240p;case"Exact":return ge.Exact}}convertCodec(_e){return"AV1"===_e?xe.AV1:xe.H264_HEVC}getVideoSpecsInit(){return(0,_.zV)([this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetSupportedResolutionsCodecs),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetSupportedFramerates),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetInstantReplaySettings)]).pipe((0,i.T)(([_e,ke,De])=>{const Me=oe[De.quality],je=this.convertResolution(De.resolution),$e=this.convertCodec(De.codec);return this.videoSpecs={resolutions:_e.resolutions,frameRates:ke.framerates,codecs:_e.codecs,frameRatesDefault:void 0,codecDefault:_e.defaultCodec,bitRatesMin:void 0,bitRatesMax:void 0,bitRatesDefault:void 0,recQualitySP:Me,recQualityIgo:this.convertQualitySpToIgo(Me),recResolution:je,recFramerate:De.framerate,recBitrate:De.bitrateBps,recReplayLength:De.replayLengthSeconds,recCodec:$e},this.videoSpecs}),(0,a.W)(_e=>(this.logger.error("Error in getVideoSpecsInit: ",_e),(0,m.of)(this.videoSpecs))))}getVideoSpecs(){return this.getVideoSpecsInit().pipe((0,r.ZZ)(_e=>this.GetSupportedBitratesFramerates(_e.recQualitySP,_e.recResolution,_e.recCodec,_e.recFramerate)),(0,i.T)(_e=>(this.videoSpecs.bitRatesMin=_e.bitrateBpsMin,this.videoSpecs.bitRatesMax=_e.bitrateBpsMax,this.videoSpecs.bitRatesDefault=_e.bitrateBpsDefault,this.videoSpecs.frameRates=_e.fpsList.slice(0,_e.supportedFPSCount),this.videoSpecs.frameRatesDefault=_e.fpsDefault,this.videoSpecs)),(0,a.W)(_e=>(this.logger.error("Error in getVideoSpecs: ",_e),(0,m.of)(this.videoSpecs))))}convertQualitySpToIgo(_e){switch(_e){case oe.Average:return F.xT.low;case oe.Good:return F.xT.medium;case oe.VeryGood:return F.xT.high;case oe.UltraGood:return F.xT.ultra;case oe.Custom:return F.xT.custom;default:this.logger.info("Invalid Quality: ",_e)}}convertQualityIgoToSp(_e){switch(_e){case F.xT.low:return oe.Average;case F.xT.medium:return oe.Good;case F.xT.high:return oe.VeryGood;case F.xT.ultra:return oe.UltraGood;case F.xT.custom:return oe.Custom;default:this.logger.info("Invalid Quality: ",_e)}}setVideoSpecs(_e,ke){if(!ke)return this.videoSpecs={...this.videoSpecs,recReplayLength:_e.recReplayLength},this.setVideoSpecsNUpdateIRMaxTime({replayLengthSeconds:_e.recReplayLength});if(void 0===this.videoSpecs)return this.logger.error("setVideoSpecs input is undefined!"),(0,m.of)(!1);this.videoSpecs.recQualitySP=this.convertQualityIgoToSp(_e.recQualityIgo),this.videoSpecs.recResolution=_e.recResolution,this.videoSpecs.recFramerate=_e.recFramerate,this.videoSpecs.recBitrate=_e.recBitrate,this.videoSpecs.recReplayLength=_e.recReplayLength,this.videoSpecs.recCodec=_e.recCodec;const De={quality:this.videoSpecs.recQualitySP,resolution:_e.recResolution,framerate:_e.recFramerate,bitrateBps:_e.recBitrate,replayLengthSeconds:_e.recReplayLength,codec:_e.recCodec};return _e.recQualityIgo===F.xT.custom?(this.videoSpecs.recQualityIgo=F.xT.custom,this.videoSpecs.recQualitySP=oe.Custom,this.GetSupportedBitratesFramerates(De.quality,De.resolution,De.codec,De.framerate).pipe((0,r.ZZ)(Me=>((De.bitrateBps<Me.bitrateBpsMin||De.bitrateBps>Me.bitrateBpsMax)&&(De.bitrateBps=this.videoSpecs.recBitrate=Me.bitrateBpsDefault),Me.fpsList.indexOf(De.framerate)<0&&(De.framerate=Me.fpsDefault),this.setVideoSpecsNUpdateIRMaxTime(De).pipe((0,h.M)(je=>{je&&this.telemetryIgoService.updateVideoSpecSettings(this.videoSpecs)})))))):(this.videoSpecs.recQualityIgo=_e.recQualityIgo,this.setVideoSpecsNUpdateIRMaxTime(De).pipe((0,h.M)(Me=>{Me&&this.telemetryIgoService.updateVideoSpecSettings(this.videoSpecs)})))}setVideoSpecsNUpdateIRMaxTime(_e){return this.setInstantReplaySettings(_e).pipe((0,i.T)(()=>(this.maxIRTime=this.videoSpecs.recReplayLength,!0)))}getMicCount(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetMicCount).pipe((0,i.T)(_e=>_e.present),(0,a.W)(_e=>(this.logger.error("GetMicCount error: ",_e),(0,m.of)(0))))}getMicSettings(_e){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetMicSettings,_e).pipe((0,i.T)(ke=>(this.microphoneSpecs[_e.index]=ke,!0)),(0,a.W)(ke=>(this.logger.error("GetMicSettings error: ",ke),(0,m.of)(!1))))}getCurrentMicSettings(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetMicSettings,{index:-1}).pipe((0,i.T)(ke=>ke.index),(0,a.W)(ke=>(this.logger.error("getCurrentMicSettings error: ",ke),(0,m.of)(0))))}getLastLaunchedApp(){this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetCaptureProcessInfo,{appType:T.Or.Share.Shareserver.AppType.last_proc}).pipe((0,h.M)(_e=>{this.logger.info("getLastAppInfo: ",_e);const ke={};ke.appStarted=_e,this.$appStartedEvent.next(ke)}),(0,a.W)(_e=>(this.logger.error("getLastAppInfo failed:",_e),(0,m.of)(null)))).subscribe()}setMicSettings(_e){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SetMicSettings,{index:_e.index,muted:_e.micSpecs[_e.index]?.muted??!1,volumePercent:_e.micSpecs[_e.index]?.volumePercent??0,boostPercent:_e.micSpecs[_e.index]?.boostPercent??0}).pipe((0,a.W)(De=>(this.logger.error("setMicSettings error: ",De),(0,m.of)(!1))))}getAudioSettings(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetAudioSettings).pipe((0,i.T)(_e=>({systemVolumePercent:_e.systemVolumePercent,separateTracks:_e.separateTracks})),(0,a.W)(_e=>(this.logger.error("GetAudioSettings error: ",_e),(0,m.of)({systemVolumePercent:0,separateTracks:!1}))))}setAudioSettings(_e){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SetAudioSettings,_e).pipe((0,a.W)(ke=>(this.logger.error("setAudioSettings error: ",ke),(0,m.of)(!1))))}getMicrophoneData(){this.microphoneSpecs.length=0;let _e=0;return this.getMicCount().pipe((0,r.ZZ)(ke=>{if(_e=ke,0===_e)return(0,m.of)({index:-1,micSpecs:void 0});const De=[];for(let Me=0;Me<_e;Me++)De.push(this.getMicSettings({index:Me}));return(0,v.yU)(...De)}),(0,r.ZZ)(()=>this.getCurrentMicSettings()),(0,i.T)(ke=>{this.logger.info("All Mic Data: ",this.microphoneSpecs),this.logger.info("Current Index: ",ke);const De=[];if(this.microphoneSpecs?.length)if(this.microphoneSpecs.forEach((je,$e)=>{De[$e]={index:je.index,name:je.name,id:je.id,muted:je.muted,enabled:je.enabled,volumePercent:je.volumePercent,boostPercent:je.boostPercent}}),De[ke]?.enabled)this.currentMicIndex=ke;else{this.currentMicIndex=-1;for(let je=0;je<_e;je++)if(De[je]?.enabled){this.currentMicIndex=De[je].index;break}}return{index:this.currentMicIndex,micSpecs:De}}))}isCurrentMicAvailable(){return this.currentMicIndex<0?(0,m.of)(!1):this.getMicrophoneData().pipe((0,i.T)(()=>this.microphoneSpecs[this.currentMicIndex]?.enabled))}syncShadowPlaySettings(_e){return this.logger.info("syncShadowPlaySettings"),this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SyncShadowPlaySettings,{isGFEMigration:_e}).pipe((0,i.T)(De=>(this.logger.info("SyncShadowPlaySettings successful:",De),!0)),(0,a.W)(De=>(this.logger.error("SyncShadowPlaySettings failed:",De),(0,m.of)(!1))))}getNvCameraToggleStateUpdates(){return this.$freestyleAnselState.asObservable()}getVideoSpecsInitStateUpdates(){return this.$videoSpecsInitState.asObservable()}getNvCameraToggleState(){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.GetNvCameraToggleState).pipe((0,i.T)(_e=>{let ke=_e?.enable;return this.logger.info("nvcamera toggle state:",ke),void 0===ke&&(this.logger.info("Nvcamera toggle setting not present, using default"),ke=I.P8),ke}),(0,a.W)(_e=>(this.logger.error("Error while fetching nvcamera toggle state:",_e),(0,m.of)(I.P8))))}setNvCameraToggleState(_e){return this.bridgeService.executeCommand(T.Ts.Share.Shareserver.SetNvCameraToggleState,{enable:_e}).pipe((0,h.M)(()=>{this.logger.info("nvcamera toggle state set successfully")}),(0,a.W)(De=>(this.logger.error("Error while setting nvcamera toggle state:",De),(0,m.of)(null))))}registerAppStartedEvent(){return this.$appStartedEvent.asObservable()}}return(de=ae).\u0275fac=function(_e){return new(_e||de)(G.KVO(Y.J6),G.KVO(Y.NZ),G.KVO(x.mb),G.KVO(V.QS),G.KVO(K.B),G.KVO($.x),G.KVO(ee.e),G.KVO(J.k),G.KVO(R.x_),G.KVO(z.P),G.KVO(L.CQ),G.KVO(te.R),G.KVO(X.S),G.KVO(Y.at))},de.\u0275prov=G.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),ae})()},19724:(Ue,W,d)=>{"use strict";d.d(W,{B_:()=>F,Bl:()=>ue,Bs:()=>P,CV:()=>L,E5:()=>J,Ef:()=>X,Eq:()=>D,Jt:()=>c,Kl:()=>xe,MB:()=>T,Om:()=>V,Pm:()=>A,Qz:()=>x,RT:()=>ge,T8:()=>I,T_:()=>g,Uk:()=>h,_5:()=>G,aR:()=>re,bH:()=>ee,cB:()=>z,cM:()=>_,db:()=>S,gv:()=>O,jG:()=>K,jQ:()=>Y,l4:()=>$,rP:()=>m,sI:()=>te,x4:()=>v});var l=function(N){return N.Functional="functional",N.Technical="technical",N.Behavioral="behavioral",N}(l||{}),p=function(N){return N.Anonymous="anonymous",N.DeviceOnly="deviceOnly",N.DevicePreferred="devicePreferred",N.UserPreferred="userPreferred",N.UserRequired="userRequired",N}(p||{}),m=function(N){return N.New="New",N.Saved="Saved",N.Removed="Removed",N}(m||{}),_=function(N){return N.Image="Image",N.Video="Video",N}(_||{}),P=function(N){return N.FiltersAdded="FiltersAdded",N.FiltersSlotChanged="FiltersSlotChanged",N.FiltersApplied="FiltersApplied",N}(P||{}),v=function(N){return N.SessionProviderSettings="SessionProviderSettings",N.SessionLogin="SessionLogin",N.SessionMenuLaunch="SessionMenuLaunch",N.SessionHotkeySettings="SessionHotkeySettings",N}(v||{}),O=function(N){return N.UsingHotkey="UsingHotkey",N.UsingUI="UsingUI",N}(O||{}),S=function(N){return N.ScreenshotCaptured="ScreenshotCaptured",N.ScreenshotCancelled="ScreenshotCancelled",N.ScreenshotFailed="ScreenshotFailed",N.MRStart="MRStart",N.MRSave="MRSave",N.IRStart="IRStart",N.IRSave="IRSave",N.IRStop="IRStop",N.DetectValidGame="DetectValidGame",N}(S||{}),h=function(N){return N.Ansel="Ansel",N.Freestyle="Freestyle",N.AnselLite="AnselLite",N}(h||{}),g=function(N){return N.alwayson="alwayson",N.ptt="ptt",N.off="off",N.unknown="unknown",N}(g||{}),c=function(N){return N.Average="Average",N.Good="Good",N.VeryGood="VeryGood",N.UltraGood="UltraGood",N.Custom="Custom",N}(c||{}),T=function(N){return N.LeftTop="LeftTop",N.CenterTop="CenterTop",N.RightTop="RightTop",N.RightCenter="RightCenter",N.RightBottom="RightBottom",N.CenterBottom="CenterBottom",N.LeftBottom="LeftBottom",N.LeftCenter="LeftCenter",N.Nowhere="Nowhere",N.NA="NA",N}(T||{}),A=function(N){return N.FirstScreen="FirstScreen",N.Cached="Cached",N.FullLoad="FullLoad",N}(A||{}),L=function(N){return N.PreferencesScreen="PreferencesScreen",N.UploadScreen="UploadScreen",N.ProviderTrigger="ProviderTrigger",N.CustomizeScreen="CustomizeScreen",N.ProviderStop="ProviderStop",N.ProviderPause="ProviderPause",N.ProviderResume="ProviderResume",N.CameraPreviewOn="CameraPreviewOn",N.KeyboardShortcutScreen="KeyboardShortcutScreen",N.AnselBringup="AnselBringup",N.GalleryPopulateFolders="GalleryPopulateFolders",N.GalleryPopulateFiles="GalleryPopulateFiles",N.Screenshot="Screenshot",N.CloseOsc="CloseOsc",N}(L||{}),x=function(N){return N.Overlay="Overlay",N.Logging="Logging",N}(x||{}),V=function(N){return N.Standard="Standard",N.Enhanced="Enhanced",N}(V||{}),D=function(N){return N.Linear="Linear",N.Double="Double",N.Stacked="Stacked",N}(D||{}),F=function(N){return N.FPS="FPS",N.Basic="Basic",N.Advanced="Advanced",N.Latency="Latency",N.Custom="Custom",N}(F||{}),I=function(N){return N.UNDEFINED="UNDEFINED",N.TRUE="TRUE",N.FALSE="FALSE",N}(I||{});const k={HighlightCapture:{name:"HighlightCapture",gdprLevel:l.Functional,personalization:p.DevicePreferred},ProcessingFilter:{name:"ProcessingFilter",gdprLevel:l.Functional,personalization:p.DevicePreferred},AudioSettingsEvent:{name:"AudioSettingsEvent",gdprLevel:l.Functional,personalization:p.DevicePreferred},HighlightsGameSetting:{name:"HighlightsGameSetting",gdprLevel:l.Functional,personalization:p.DevicePreferred},ProcessingControlSettings:{name:"ProcessingControlSettings",gdprLevel:l.Functional,personalization:p.DevicePreferred},SessionEvent:{name:"SessionEvent",gdprLevel:l.Functional,personalization:p.DevicePreferred},AnselFreestyleCapture:{name:"AnselFreestyleCapture",gdprLevel:l.Functional,personalization:p.DevicePreferred},CaptureEvent:{name:"CaptureEvent",gdprLevel:l.Functional,personalization:p.DevicePreferred},AnselFreestyleError:{name:"AnselFreestyleError",gdprLevel:l.Functional,personalization:p.DevicePreferred},IgoSettings:{name:"IgoSettings",gdprLevel:l.Functional,personalization:p.DevicePreferred},UIPerfEvent:{name:"UIPerfEvent",gdprLevel:l.Functional,personalization:p.DevicePreferred},HTTPCallResult:{name:"HTTPCallResult",gdprLevel:l.Functional,personalization:p.DevicePreferred},NotificationSettings:{name:"NotificationSettings",gdprLevel:l.Functional,personalization:p.DevicePreferred},StatsSession:{name:"StatsSession",gdprLevel:l.Functional,personalization:p.DevicePreferred}};class R{constructor(se){this.parameters=se,this.ts=(new Date).toISOString()}}class G extends R{constructor(se){super(se),this.name=k.HighlightCapture.name,this.gdprLevel=k.HighlightCapture.gdprLevel,this.personalization=k.HighlightCapture.personalization}}class Y extends R{constructor(se){super(se),this.name=k.ProcessingFilter.name,this.gdprLevel=k.ProcessingFilter.gdprLevel,this.personalization=k.ProcessingFilter.personalization}}class K extends R{constructor(se){super(se),this.name=k.AudioSettingsEvent.name,this.gdprLevel=k.AudioSettingsEvent.gdprLevel,this.personalization=k.AudioSettingsEvent.personalization}}class $ extends R{constructor(se){super(se),this.name=k.HighlightsGameSetting.name,this.gdprLevel=k.HighlightsGameSetting.gdprLevel,this.personalization=k.HighlightsGameSetting.personalization}}class ee extends R{constructor(se){super(se),this.name=k.ProcessingControlSettings.name,this.gdprLevel=k.ProcessingControlSettings.gdprLevel,this.personalization=k.ProcessingControlSettings.personalization}}class J extends R{constructor(se){super(se),this.name=k.SessionEvent.name,this.gdprLevel=k.SessionEvent.gdprLevel,this.personalization=k.SessionEvent.personalization}}class z extends R{constructor(se){super(se),this.name=k.AnselFreestyleCapture.name,this.gdprLevel=k.AnselFreestyleCapture.gdprLevel,this.personalization=k.AnselFreestyleCapture.personalization}}class te extends R{constructor(se){super(se),this.name=k.CaptureEvent.name,this.gdprLevel=k.CaptureEvent.gdprLevel,this.personalization=k.CaptureEvent.personalization}}class X extends R{constructor(se){super(se),this.name=k.AnselFreestyleError.name,this.gdprLevel=k.AnselFreestyleError.gdprLevel,this.personalization=k.AnselFreestyleError.personalization}}class re extends R{constructor(se){super(se),this.name=k.IgoSettings.name,this.gdprLevel=k.IgoSettings.gdprLevel,this.personalization=k.IgoSettings.personalization}}class ge extends R{constructor(se){super(se),this.name=k.UIPerfEvent.name,this.gdprLevel=k.UIPerfEvent.gdprLevel,this.personalization=k.UIPerfEvent.personalization}}class xe extends R{constructor(se){super(se),this.name=k.NotificationSettings.name,this.gdprLevel=k.NotificationSettings.gdprLevel,this.personalization=k.NotificationSettings.personalization}}class ue extends R{constructor(se){super(se),this.name=k.StatsSession.name,this.gdprLevel=k.StatsSession.gdprLevel,this.personalization=k.StatsSession.personalization}}},53914:(Ue,W,d)=>{"use strict";d.d(W,{$l:()=>ct,Af:()=>i,Bt:()=>h,C0:()=>mn,Cd:()=>se,E6:()=>l,HZ:()=>xe,J7:()=>te,JD:()=>nn,Jf:()=>ee,LA:()=>xt,LL:()=>fn,Ls:()=>m,Ng:()=>X,O5:()=>c,O6:()=>L,OH:()=>ye,OU:()=>Y,Q3:()=>P,QT:()=>S,Qi:()=>_,Qq:()=>Bn,T7:()=>J,UZ:()=>F,VT:()=>Ze,Vd:()=>ai,XW:()=>st,Xy:()=>I,YB:()=>qt,Y_:()=>ue,Yj:()=>K,aM:()=>dt,bG:()=>ge,cM:()=>a,cO:()=>Gt,db:()=>R,eL:()=>V,f2:()=>g,ft:()=>p,gh:()=>x,jb:()=>k,k8:()=>oe,ld:()=>y,nt:()=>z,oi:()=>O,pG:()=>G,q6:()=>r,rV:()=>T,ri:()=>N,tT:()=>D,uA:()=>v,xg:()=>Z,yQ:()=>$,zg:()=>ri});var n=d(78812);const l="StatsLayout",p="StatsVisibility",m="StatsPositionX",_="StatsPositionY",P="RectAlignment",v="FlashIndicatorStatus",O="CustAvgSampleSize",S="ResetAverages",y="DiskSpaceLimit",r="DiskSpaceLimitSlider";var i=function(Ne){return Ne.gfn="GFN",Ne.standalone="Standalone",Ne}(i||{}),a=function(Ne){return Ne.image="Image",Ne.video="Video",Ne.none="None",Ne}(a||{}),h=function(Ne){return Ne.initial="Initial",Ne.settings="Settings",Ne.alreadyOn="AlreadyOn",Ne.alreadyOff="AlreadyOff",Ne}(h||{}),g=function(Ne){return Ne.individualToggle="IndividualToggle",Ne.gameToggle="GameToggle",Ne.featureToggle="FeatureToggle",Ne}(g||{}),c=function(Ne){return Ne.GameFilter="Freestyle",Ne.PhotoMode="Ansel",Ne.PhotoModeLight="AnselLite",Ne}(c||{}),T=function(Ne){return Ne.connect="Connect",Ne.disconnect="Disconnect",Ne.requestpermissions="RequestPermissions",Ne.getlanguage="GetLanguage",Ne.highlightsconfigure="HighlightsConfigure",Ne.highlightsopengroup="HighlightsOpenGroup",Ne.highlightsclosegroup="HighlightsCloseGroup",Ne.highlightssavevideo="HighlightsSaveVideo",Ne.highlightssavescreenshot="HighlightsSaveScreenshot",Ne.highlightsopensummary="HighlightsOpenSummary",Ne.highlightsgetcount="HighlightsGetCount",Ne.highlightsgetuserconfig="HighlightsGetUserConfig",Ne.opsoptimize="OpsOptimize",Ne.unknown="UNKNOWN",Ne}(T||{}),L=function(Ne){return Ne.on="Yes",Ne.true="Yes",Ne.yes="Yes",Ne.off="No",Ne.false="No",Ne.no="No",Ne}(L||{}),x=function(Ne){return Ne.openHotkey="OpenHotkey",Ne.highlightsButton="HighlightsButton",Ne}(x||{}),V=function(Ne){return Ne.internal="Internal",Ne.external="External",Ne.network="Network",Ne.unknown="Unknown",Ne}(V||{}),D=function(Ne){return Ne.Success="Success",Ne.Failure="Failure",Ne}(D||{}),F=function(Ne){return Ne.root="Root",Ne.folder="Folder",Ne.content="Content",Ne}(F||{}),I=function(Ne){return Ne.none="None",Ne.screenshot="Screenshot",Ne.video="Video",Ne.ir="InstantReplay",Ne.highlight="Highlight",Ne}(I||{}),k=function(Ne){return Ne.none="None",Ne.settings="Settings",Ne.galleryMain="GalleryMain",Ne.galleryImagePreview="GalleryImagePreview",Ne.galleryVideoPreview="GalleryVideoPreview",Ne.browser="FolderBrowser",Ne.mainMenu="MainMenu",Ne.general="General",Ne.highlights="HighlightsSettings",Ne.videoCapture="VideoCaptureSettings",Ne.storage="StorageSettings",Ne.shortcuts="HotkeySettings",Ne.headsup="HUDSettings",Ne.notifications="NotificationSettings",Ne.audioCapture="AudioCaptureSettings",Ne.broadcast="BroadcastSettings",Ne.gfnBroadcast="GfnBroadcast",Ne.connect="ConnectSettings",Ne.connectOauth="ConnectOauth",Ne.broadcastLive="BroadcastLive",Ne.share="Share",Ne.privacy="Privacy",Ne.system="System",Ne.gameplay="Gameplay",Ne.debug="Debug",Ne.graphics="Graphics",Ne.instantReplay="InstantReplay",Ne}(k||{}),R=function(Ne){return Ne.startManualCapture="StartManualCapture",Ne.stopAndSaveManualCapture="StopAndSaveManualCapture",Ne.turnOnInstantReplay="TurnOnInstantReplay",Ne.instantReplaySaved="InstantReplaySaved",Ne.turnOffInstantReplay="TurnOffInstantReplay",Ne.screenshotSaved="ScreenshotSaved",Ne}(R||{}),G=function(Ne){return Ne.upperRight="UpperRight",Ne.lowerRight="LowerRight",Ne.lowerLeft="LowerLeft",Ne.upperLeft="UpperLeft",Ne.none="None",Ne}(G||{}),Y=function(Ne){return Ne.standard="Standard",Ne.compact="Compact",Ne}(Y||{}),K=function(Ne){return Ne.balanced="Balanced",Ne.dataSaver="DataSaver",Ne.competitive="Competitive",Ne.custom="Custom",Ne}(K||{}),$=function(Ne){return Ne.recording="Recording",Ne.iR="IR",Ne.highlights="Highlights",Ne.mic="Mic",Ne.statistics="Statistics",Ne.network="Network",Ne}($||{}),ee=function(Ne){return Ne.empty="Empty",Ne.openOverlay="OpenOverlay",Ne.connectionStatus="ConnectionStatus",Ne.saveIRToGallery="SaveIRToGallery",Ne.saveMRToGallery="SaveMRToGallery",Ne.saveSSToGallery="SaveSSToGallery",Ne.saveHLToGallery="SaveHLToGallery",Ne.iROnOff="IROnOff",Ne.mROn="MROn",Ne}(ee||{}),J=function(Ne){return Ne.anselFreeStyle="AnselFreestyleNoResponse",Ne.anselFreestyleGeneralFailure="AnselFreestyleGeneralFailure",Ne.anselFailedToStart="AnselFailedToStart",Ne.anselNoSpaceLeft="AnselNoSpaceLeft",Ne.anselPermissionDenied="AnselPermissionDenied",Ne.anselInvalidRequest="AnselInvalidRequest",Ne.anselFreestyleAlreadyEnabled="AnselFreestyleAlreadyEnabled",Ne.anselFreestyleAlreadyDisabled="AnselFreestyleAlreadyDisabled",Ne.anselOutOfRange="AnselOutOfRange",Ne.anselFreestyleAlreadySet="AnselFreestyleAlreadySet",Ne.anselFreestyleIncompatibleVersion="AnselFreestyleIncompatibleVersion",Ne.anselFreestyleAppFatalError="AnselFreestyleAppFatalError",Ne.anselFreestyleAppNonFatalError="AnselFreestyleAppNonFatalError",Ne.anselFreestyleUnsupportedGameError="AnselFreestyleUnsupportedGameError",Ne.anselFreestyleMenuLaunchError="AnselFreestyleMenuLaunchError",Ne}(J||{}),z=function(Ne){return Ne.nvCameraTimedOut="NvCameraTimedOut",Ne.gameBlacklisted="GameBlackListed",Ne.unsupportedGame="UnSupportedGame",Ne.streamerError="StreamerError",Ne}(z||{}),te=function(Ne){return Ne.started="Started",Ne.completed="Completed",Ne.cancelled="Cancelled",Ne.failed="Failed",Ne}(te||{}),X=function(Ne){return Ne.anselScreenshotTimeoutFailure="AnselScreenshotTimeoutFailure",Ne.anselScreenshotUnknownFailure="AnselScreenshotUnknownFailure",Ne.anselScreenshotNoFailure="AnselScreenshotNoFailure",Ne}(X||{}),ge=function(Ne){return Ne.nvCameraReadyNotificationNotReceived="NvCameraReadyNotificationNotReceived",Ne.featureNotAvailable="FeatureNotAvailable",Ne.nvCameraSessionConfigurationFailed="NvCameraSessionConfigurationFailed",Ne.featureDisabledReasonUnknown="FeatureDisabledReasonUnknown",Ne}(ge||{}),oe=function(Ne){return Ne.start="Start",Ne.stop="Stop",Ne.pause="Pause",Ne.resume="Resume",Ne}(oe||{}),xe=function(Ne){return Ne.adobe="Adobe",Ne.facebook="Facebook",Ne.lightstream="Lightstream",Ne.twitch="Twitch",Ne.youtube="YouTube",Ne}(xe||{}),ue=function(Ne){return Ne.failedToStart="FailedToStart",Ne.failedToStop="FailedToStop",Ne.timeoutError="TimeoutError",Ne.unknownError="UnknownError",Ne}(ue||{}),N=function(Ne){return Ne.fullscreen="Fullscreen",Ne.windowed="Windowed",Ne}(N||{});class se extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="GFNSession"}}class Z extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Behavioral,this.name="SettingSnapshot"}}class qt{get streamerConfig(){return this.streamerConfigService?.activeConfig}constructor(zt,vt){this.bridgeService=zt,this.streamerConfigService=vt}generateFinalizedEvent(zt,vt){return zt.cmsId=zt.cmsId||(this.streamerConfig?this.streamerConfig.cmsId.toString():""),zt.shortName=zt.shortName||(this.streamerConfig?this.streamerConfig.shortName:""),new vt(zt)}}class ye extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="AnselFreestyleSession"}}class Ze extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="AnselFreestyleFilters"}}class xt extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="FreestyleStylesApplied"}}class ct extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="AnselScreenshotEvent"}}class Gt extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="AnselFreestyleError"}}class st extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Technical,this.name="AnselFreestyleFeatureDisabled"}}class mn extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="BroadcastEvent"}}class Bn extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="BroadcastError"}}class fn extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="GameplayEntryEvent"}}class dt extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="StreamingQualityChangedEvent"}}class nn extends n.YH{constructor(){super(...arguments),this.gdprLevel=n.EU.Functional,this.name="ResolutionUpscalingChangedEvent"}}var ai=function(Ne){return Ne.Native="Native",Ne}(ai||{}),ri=function(Ne){return Ne.Release="Release",Ne.IBeta="iBeta",Ne.Undefined="undefined",Ne.Dev="Dev",Ne}(ri||{})},27211:(Ue,W,d)=>{"use strict";d.d(W,{S:()=>p});var n=d(53914),l=d(43848);class p{constructor(){this.clientHost=n.Af.standalone,this.modsActive=!1}toTelemetryBoolean(_){return _?n.O6.yes:n.O6.no}setModsActiveStatus(_){this.modsActive=_}sendHighlightCapture(_,P,v,O,S,y,r,i){}sendHighlightsGameSetting(_,P,v,O,S,y){}sendProcessingFilter(_,P,v,O,S,y,r,i,a){}sendProcessingControlSettings(_,P,v,O,S){}sendIGOSettings(_,P,v){}sendStatsSession(_,P,v,O,S,y,r,i,a){}sendUIPerfEvent(_,P,v,O,S,y){}init(){}initCommonData(){return(0,l.of)(null)}sendAudioTelemetry(_){}sendCaptureEvent(_,P,v,O,S,y,r,i,a,h,g,c,T,A,L){}startAnselScreenshot(){}sendAnselFreestyleCaptureEvent(_,P,v,O,S,y,r,i,a,h,g,c){}sendAnselFreestyleError(_,P,v,O,S,y,r,i,a,h,g){}updateVideoSpecSettings(_){}updateMicMode(_){}startStatsLoggingSession(_){}sendStatsLoggingSession(_){}sendStatsOverlaySession(_,P,v,O,S,y,r=!1){}startStatsOverlaySession(_){}sendStartupTelemetry(){}beginStartupTimer(_){}trackNavigation(_,P=n.jb.none){}sendHighlightsIndividualGameToggle(_,P,v){}sendHighlightCancelled(_,P,v){}getHighlightsEnabled(){return null}recordSDKCallResult(_,P,v,O,S){}sendSDKCallResults(_,P){}sendGalleryOpenedFileLocation(){}sendGalleryFileRemoved(_){}sendGalleryPlayedVideo(_,P){}sendGalleryFilterUsed(_){}sendGalleryFileAccess(_){}sendGalleryAccess(){}startGalleryAccess(_){}setGalleryAccessCached(_){}setGalleryFolderCounts(_,P){}sendStatsClosedTelemetry(_,P,v){}sendStatsViewChanged(_,P,v){}sendWidgetViewChanged(_,P,v){}sendNotificationChanged(_,P){}sendSessionEvent(_,P,v,O,S,y,r,i){}sendNotificationSettingsTelemetry(_){}}},98005:(Ue,W,d)=>{"use strict";d.d(W,{x:()=>K});var n=d(74931),l=d(57258),p=d(17053),m=d(93181),_=d(43848),P=d(83915),v=d(75707),O=d(18612),S=d(93702),y=d(67110),r=d(97462),a=d(91384),h=d(53914),g=d(68130),c=d(23355),T=d(97152),A=d(61958),L=d(10132),x=d(23860),V=d(27211),D=d(58527),F=d(3567),I=d(12137),k=d(73934),R=d(44968),G=d(72438),Y=d(78812);let K=(()=>{var $;class ee{constructor(z,te,X,re,ge,oe,xe,ue,N,se,ce,Z){this.loggingService=z,this.bridgeService=te,this.igoConfig=X,this.injector=re,this.hotkeyService=ge,this.appLifetimeService=oe,this.dbService=xe,this.osdService=ue,this.notificationService=N,this.igoPiplLocaleConfigService=se,this.systemInfoService=ce,this.telemetryService=Z,this.commonData={},this.clientHost=h.Af.standalone,this.driveTypeMap={unknown:h.eL.unknown,removable:h.eL.external,fixed:h.eL.internal,network:h.eL.network},this.captureEventsMap={},this.screenPosMap={},this.statsFormat={},this.profileNameMap={},this.widgetIndicatorMap={},this.notificationMap={},this.cachedSessionId="",this.irBufLength=new l.m(1),this.gallerySettings=new l.m(1),this.modsActive=!1,this.uiPerfEventData=new Map,this.anselFilterApplied=!1,this.isNvApp=!1,this.logger=this.loggingService.getLogger("TelemetryHelperService"),this.screenPosMap[L.VH.leftBottom]=h.pG.lowerLeft,this.screenPosMap[L.VH.leftTop]=h.pG.upperLeft,this.screenPosMap[L.VH.rightBottom]=h.pG.lowerRight,this.screenPosMap[L.VH.rightTop]=h.pG.upperRight,this.screenPosMap[L.VH.none]=h.pG.none,this.statsFormat[L.QY.standard]=h.OU.standard,this.statsFormat[L.QY.compact]=h.OU.compact,this.profileNameMap[T.SBM.Balanced]=h.Yj.balanced,this.profileNameMap[T.SBM.DataSaver]=h.Yj.dataSaver,this.profileNameMap[T.SBM.Competitive]=h.Yj.competitive,this.profileNameMap[T.SBM.Custom]=h.Yj.custom,this.widgetIndicatorMap[L.lb.Recording]=h.yQ.recording,this.widgetIndicatorMap[L.lb.IR]=h.yQ.iR,this.widgetIndicatorMap[L.lb.Highlights]=h.yQ.highlights,this.widgetIndicatorMap[L.lb.Mic]=h.yQ.mic,this.widgetIndicatorMap[L.lb.GfnMic]=h.yQ.mic,this.widgetIndicatorMap[L.lb.Statistics]=h.yQ.statistics,this.widgetIndicatorMap[L.lb.Network]=h.yQ.network,this.notificationMap[x.Jk.Empty]=h.Jf.empty,this.notificationMap[x.Jk.OpenOverlay]=h.Jf.openOverlay,this.notificationMap[x.Jk.ConnectionStatus]=h.Jf.connectionStatus,this.notificationMap[x.Jk.SaveIRToGallery]=h.Jf.saveIRToGallery,this.notificationMap[x.Jk.SaveMRToGallery]=h.Jf.saveMRToGallery,this.notificationMap[x.Jk.SaveSSToGallery]=h.Jf.saveSSToGallery,this.notificationMap[x.Jk.SaveHLToGallery]=h.Jf.saveHLToGallery,this.notificationMap[x.Jk.IROnOff]=h.Jf.iROnOff,this.notificationMap[x.Jk.MROn]=h.Jf.mROn,this.isNvApp="GFE"===this.igoConfig.branding}init(){let z;this.logger.info("Initializing telemetry"),this.sessionStartTime=Date.now(),this.telemetryHelperIGOService=this.injector.get(V.S),"GFN"===this.igoConfig.branding?(this.streamingService=this.injector.get(g.I),z=this.injector.get(T.zi2),this.appConfig=this.injector.get(A.Vk),this.streamingSubscription=this.streamingService.streamingEvent$.subscribe(te=>{te.event===c.CW.SESSION_SETUP_SUCCESS&&(this.sendSettingsTelemetry(),this.cachedSessionId=this.streamingService.streamingProperties.sessionId||"",this.streamingSubscription.unsubscribe())}),this.gridService=this.injector.get(T.Gip),this.gridService.getCachedZone().subscribe(te=>{this.zone=te})):this.registerForlocaleChangeNotification(),this.perGameEventFactory=new h.YB(this.bridgeService,z),this.clientHost="GFN"===this.igoConfig.branding?h.Af.gfn:h.Af.standalone,"GFN"===this.igoConfig.branding?this.appLifetimeService.addWorkOnShutdown(()=>new p.c(te=>{te.next(this.sendExitTelemetry()),te.complete()})):this.telemetryHelperIGOService.initCommonData().subscribe(te=>{this.commonData=te}),this.telemetryHelperIGOService.init()}registerForlocaleChangeNotification(){this.igoPiplLocaleConfigService.localConfigChangeNotification().subscribe(z=>{const te=z?.jsEvents?.server;te?this.telemetryService.setServerConfig(te):this.logger.error("Telemetry Server URL empty in local config ",z)})}getLocaleOverride(){return this.bridgeService.executeCommand(n.Ts.Common.Nvlocalizedconfig.GetLocalizationData)}sendExitTelemetry(){this.telemetryHelperIGOService.sendSDKCallResults(!1,!0);const z=this.perGameEventFactory.generateFinalizedEvent({wasHighlightsAvailable:this.toTelemetryBoolean(this.telemetryHelperIGOService.getHighlightsEnabled()),sessionDurationMs:Date.now()-this.sessionStartTime,sessionId:this.cachedSessionId},h.Cd);this.telemetryService.push(z,0,{appExit:!0})}sendSettingsTelemetry(){const z=this.dbService.getGlobalStore("IGOTelemetry");z.getItem("lastSettingsSendTime").subscribe(te=>{this.logger.info("sendTime: ",te,"alwaysSend: ",this.appConfig?this.appConfig.featureEnablement?this.appConfig.featureEnablement.alwaysSendSettingsTelemetry:"No featureEnablement in config":"No appConfig"),(this.appConfig&&this.appConfig.featureEnablement&&this.appConfig.featureEnablement.alwaysSendSettingsTelemetry||!te||Date.now()-te>6048e5)&&(this.logger.info("Sending settings"),this.doSendSettingsTelemetry(),z.setItem("lastSettingsSendTime",Date.now()))})}doSendSettingsTelemetry(){let te=0,X=0,re=0,ge=h.eL.unknown;const oe={clientHost:this.clientHost,gallerySizeMB:0,gallerySpaceUsedPercent:0,typeOfStorageDrive:ge,areGlobalHighlightsOn:this.toTelemetryBoolean(!1),openIGOHotkey:"",numGalleryImages:0,numGalleryVideos:0,instantReplayBufferLength:0,galleryTotalSizeMB:0,screenshotHotkey:"",irToggleHotkey:"",saveIRHotkey:"",mrHotkey:"",statsHotkey:"",recordingHUDLocation:this.screenPosMap[this.osdService.getPosition(L.lb.Recording)],instantReplayHUDLocation:this.screenPosMap[this.osdService.getPosition(L.lb.IR)],highlightsHUDLocation:this.screenPosMap[this.osdService.getPosition(L.lb.Highlights)],micHUDLocation:this.screenPosMap[this.osdService.getPosition(L.lb.Mic)],connectionStatusHUDLocation:this.screenPosMap[this.osdService.getPosition(L.lb.Network)],statsLocation:this.screenPosMap[this.osdService.getPosition(L.lb.Statistics)],statsFormat:this.statsFormat[this.osdService.getStatsSize()],irSavedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[x.Jk.SaveIRToGallery-1].enable),mrSavedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[x.Jk.SaveMRToGallery-1].enable),screenshotSavedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[x.Jk.SaveSSToGallery-1].enable),irToggleIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[x.Jk.IROnOff-1].enable),mrStartedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[x.Jk.MROn-1].enable),highlightSavedIndicatorOn:this.toTelemetryBoolean(this.notificationService.getNotificationControls()[x.Jk.SaveHLToGallery-1].enable)},xe=(0,m.p)([this.bridgeService.executeCommand(n.Ts.Common.Gallery.EnumerateDrives),this.gallerySettings]).pipe((0,P.T)(([N,se])=>{if(se.settings.path)for(const ce of N.drives)if(se.settings.path.startsWith(ce.name))return ge=this.driveTypeMap[ce.type]||h.eL.unknown,ge;return ge})),ue=this.gallerySettings.pipe((0,P.T)(N=>(N.settings.capacity&&(te=N.settings.capacity.enabled?Math.round(N.settings.capacity.capacityPercent*N.settings.capacity.totalDiskSpaceMB):0,X=N.settings.capacity.usageMB,re=N.settings.capacity.totalDiskSpaceMB),oe.gallerySizeMB=X,oe.gallerySpaceUsedPercent=te>0?Math.round(100*X/te):0,oe.galleryTotalSizeMB=re,N)),(0,v.ZZ)(N=>N.settings.path?this.bridgeService.executeCommand(n.Ts.Common.Gallery.GetFolderListing,{directory:N.settings.path,shouldGetOnlyNv:!0,excludeDirectoryType:n.Or.Common.Gallery.ExcludeDirectoryType.empty}):(0,_.of)(null)),(0,P.T)(N=>N&&N.directories.length>0?N.directories:[""]),(0,v.ZZ)(N=>(0,_.of)(...N)),(0,v.ZZ)(N=>0===N.length?(0,_.of)({screenshots:0,videos:0}):this.bridgeService.executeCommand(n.Ts.Common.Gallery.GetAppStats,{appName:N})),function i($,ee){return arguments.length>=2?function(z){return(0,r.F)((0,O.S)($,ee),(0,S.o)(1),(0,y.U)(ee))(z)}:function(z){return(0,r.F)((0,O.S)((te,X,re)=>$(te,X,re+1)),(0,S.o)(1))(z)}}((N,se)=>(N.numImages+=se.screenshots,N.numVideos+=se.videos,N),{numImages:0,numVideos:0}),(0,a.M)(N=>{oe.numGalleryImages=N.numImages,oe.numGalleryVideos=N.numVideos}),(0,v.ZZ)(()=>xe),(0,a.M)(N=>{oe.typeOfStorageDrive=N||h.eL.unknown}),(0,v.ZZ)(()=>this.bridgeService.executeCommand(n.Ts.Share.Shareserver.GetHighlightsEnable)),(0,a.M)(N=>{oe.areGlobalHighlightsOn=this.toTelemetryBoolean(N.enable)}),(0,v.ZZ)(()=>this.irBufLength),(0,a.M)(N=>{oe.instantReplayBufferLength=N}),(0,v.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.OpenIGO)),(0,a.M)(N=>{oe.openIGOHotkey=N}),(0,v.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.Screenshot)),(0,a.M)(N=>{oe.screenshotHotkey=N}),(0,v.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.DVRToggle)),(0,a.M)(N=>{oe.irToggleHotkey=N}),(0,v.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.DVRSave)),(0,a.M)(N=>{oe.saveIRHotkey=N}),(0,v.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.RecordToggle)),(0,a.M)(N=>{oe.mrHotkey=N}),(0,v.ZZ)(()=>this.hotkeyService.getHotkeyString(n.Or.Share.Shareserver.HotkeyEnum.StatisticsToggle)),(0,a.M)(N=>{oe.statsHotkey=N})).subscribe(()=>{this.logger.info("Actually sending settings telemetry",oe);const N=new h.xg(oe);this.telemetryService.push(N,0,{immediateRequest:!0}),ue.unsubscribe()})}updateReplayLength(z){this.irBufLength.next(z),this.irBufLength.complete()}updateGallerySettings(z){this.gallerySettings.next(z),this.gallerySettings.complete()}toTelemetryBoolean(z){return z?h.O6.yes:h.O6.no}updateAnselFilterAppliedField(z){this.anselFilterApplied=z}sendHighlightCapture(z,te,X,re,ge,oe,xe){this.telemetryHelperIGOService.sendHighlightCapture(z,te,X,re,ge,xe,oe,this.anselFilterApplied)}sendProcessingControlSettings(z,te,X,re,ge){this.telemetryHelperIGOService.sendProcessingControlSettings(z,te,X,re,ge)}sendProcessingFilter(z,te,X,re,ge,oe,xe,ue,N){this.telemetryHelperIGOService.sendProcessingFilter(z,te,X,re,ge,oe,xe,ue,N)}sendIGOSettings(z,te,X){this.telemetryHelperIGOService.sendIGOSettings(z,te,X)}startUIPerfEvent(z){this.uiPerfEventData.set(z,Date.now())}sendUIPerfEvent(z,te,X,re){if(!this.uiPerfEventData.has(te))return void this.logger.error("Cannot send stats ui perf telemetry, timer was never started");const ge=this.uiPerfEventData.get(te)-Date.now();this.telemetryHelperIGOService.sendUIPerfEvent(z,te,ge,ge,X,re),this.uiPerfEventData.delete(te)}sendHighlightsGameSetting(z,te,X,re,ge,oe){this.telemetryHelperIGOService.sendHighlightsGameSetting(z,te,X,re,ge,oe)}startCaptureEvent(z){this.captureEventsMap[z]=Date.now()}sendCaptureEvent(z,te,X,re,ge,oe,xe,ue,N,se,ce){this.isNvApp||this.captureEventsMap[z]?(this.telemetryHelperIGOService.sendCaptureEvent(z,te,X,re,ge,oe,xe,ue,N,Date.now()-this.captureEventsMap[z],se,ce,this.osdService.getPosition(L.lb.IR),this.osdService.getPosition(L.lb.Performance),this.anselFilterApplied),this.isNvApp||(this.captureEventsMap[z]=0)):this.logger.error("Attempted to end a performance measurement for "+z+" without starting it!")}sendAnselFreestyleSession(z,te,X,re,ge,oe,xe,ue,N,se,ce,Z){if("GFN"===this.igoConfig.branding){const de=this.perGameEventFactory.generateFinalizedEvent({mode:z,totalMs:te,usedKeyboard:this.toTelemetryBoolean(X),usedMouse:this.toTelemetryBoolean(re),cmsId:oe||"",shortName:xe||"",panningUsed:this.toTelemetryBoolean(se),panningWithKB:this.toTelemetryBoolean(ce),panningWithMouse:this.toTelemetryBoolean(Z)},h.OH);this.telemetryService.push(de)}}sendAnselFreestyleFilters(z,te,X,re,ge,oe){if("GFN"===this.igoConfig.branding){const xe=this.perGameEventFactory.generateFinalizedEvent({mode:te,filterName:z||"",cmsId:X||"",shortName:re||""},h.VT);this.telemetryService.push(xe)}}sendFreestyleSlotTelemetry(z,te,X,re,ge,oe,xe,ue,N,se,ce){if("GFN"===this.igoConfig.branding){const Z=this.perGameEventFactory.generateFinalizedEvent({usedStyles:oe,style1Filters:z,style2Filters:te,style3Filters:X,activeStyle:ge||0,activeFilters:re,cmsId:ue||"",shortName:N||"",persistedFilters:this.toTelemetryBoolean(xe),usedMenu:this.toTelemetryBoolean(!xe)},h.LA);this.telemetryService.push(Z)}}sendAnselScreenshotTelemetry(z,te,X,re,ge,oe,xe,ue,N,se,ce,Z,de,ae){if("GFN"===this.igoConfig.branding){const pe=new h.$l({state:z,cmsId:te||0,shortName:X||"",screenshotType:re,screenshotResolution:ge,panningUsed:this.toTelemetryBoolean(oe),mode:xe,totalMs:ue||0,gridUsed:this.toTelemetryBoolean(N),installedDDVersion:z===h.J7.failed&&this.zone.name||"",gpuName:z===h.J7.failed&&this.zone.address||"",errorType:de,errorString:ae,roll:se,fov:ce,stackedFilters:Z});this.telemetryService.push(pe)}}sendAnselFreestyleErrorTelemetry(z,te,X,re,ge,oe,xe,ue,N,se,ce,Z,de,ae){if("GFN"===this.igoConfig.branding){const pe=this.perGameEventFactory.generateFinalizedEvent({errorType:z,errorSubType:de,errorString:ae||"",mode:te,serverGPUType:this.zone.name,serverOSVersion:this.zone.address,usedMenu:h.O6.true,cmsId:X||"",shortName:re||""},h.cO);this.telemetryService.push(pe)}}sendAnselFreestyleFeatureDisableTelemetry(z,te,X,re,ge){if("GFN"===this.igoConfig.branding){const oe=this.perGameEventFactory.generateFinalizedEvent({cmsId:"",shortName:te||"",mode:X,errorType:re,errorInfo:ge||"",serverInfo:this.zone.address||""},h.XW);this.telemetryService.push(oe)}}sendBroadcastEventTelemetry(z,te,X,re,ge){if("GFN"===this.igoConfig.branding){const oe=this.perGameEventFactory.generateFinalizedEvent({cmsId:"",shortName:te||"",action:X||h.k8.start,provider:h.HZ.lightstream,timeMs:0,modsActive:this.toTelemetryBoolean(this.modsActive)},h.C0);this.telemetryService.push(oe)}}sendBroadcastErrorTelemetry(z,te,X,re,ge){if("GFN"===this.igoConfig.branding){const oe=this.perGameEventFactory.generateFinalizedEvent({cmsId:"",shortName:te||"",errorType:X||h.Y_.unknownError,provider:h.HZ.lightstream,errorString:ge||""},h.Qq);this.telemetryService.push(oe)}}setModsActiveStatus(z){this.modsActive=z}sendStatsViewChanged(z,te,X){this.telemetryHelperIGOService.sendStatsViewChanged(z,this.statsFormat[te],this.screenPosMap[X])}sendGameplayEntrySetting(z){const te=this.perGameEventFactory.generateFinalizedEvent({clientHost:this.clientHost,sessionId:this.cachedSessionId,profile:this.profileNameMap[z]},h.LL);this.logger.info("Gameplay Profile Entry Telemetry: ",te),this.telemetryService.push(te)}sendStatsClosedTelemetry(z,te,X){this.telemetryHelperIGOService.sendStatsClosedTelemetry(z,this.screenPosMap[te],this.statsFormat[X])}sendStreamingQualityChanged(z){const te=this.perGameEventFactory.generateFinalizedEvent({clientHost:this.clientHost,sessionId:this.cachedSessionId,maxBitrateAuto:this.toTelemetryBoolean(z.maxBitrateAuto),maxBitrateAutoChanged:this.toTelemetryBoolean(z.maxBitrateAutoChanged),maxBitrate:z.maxBitrate,maxBitrateChanged:this.toTelemetryBoolean(z.MaxBitrateChanged),vsync:z.vSync,vsyncChanged:this.toTelemetryBoolean(z.vSyncChanged),drc:this.toTelemetryBoolean(z.drc),drcChanged:this.toTelemetryBoolean(z.drcChanged)},h.aM);this.logger.info("StreamingQuality Changed Telemetry: ",te),this.telemetryService.push(te)}sendResolutionUpscalingChanged(z){const te=this.perGameEventFactory.generateFinalizedEvent({clientHost:this.clientHost,sessionId:this.cachedSessionId,upscaleMode:z.upscaleMode,detailEnhancement:z.detailEnhancement},h.JD);this.logger.info("ResolutionUpscaling Changed Telemetry: ",te),this.telemetryService.push(te)}sendWidgetViewChanged(z,te){this.telemetryHelperIGOService.sendWidgetViewChanged(z,this.screenPosMap[te],this.widgetIndicatorMap[z])}sendNotificationChanged(z,te){this.telemetryHelperIGOService.sendNotificationChanged(this.notificationMap[z],te)}sendAnselFreestyleError(z,te,X,re,ge,oe,xe,ue,N,se,ce){this.telemetryHelperIGOService.sendAnselFreestyleError(z,te,X,re,ge,oe,xe,ue,N,se,ce)}}return($=ee).\u0275fac=function(z){return new(z||$)(D.KVO(F.J6),D.KVO(F.NZ),D.KVO(I.k),D.KVO(D.zZn),D.KVO(k.QS),D.KVO(R.lM),D.KVO(F.at),D.KVO(L.au),D.KVO(x.mb),D.KVO(G.A),D.KVO(F.zW),D.KVO(Y.H0))},$.\u0275prov=D.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),ee})()},47629:(Ue,W,d)=>{"use strict";d.r(W),d.d(W,{GalleryModule:()=>$e});var n=d(61142),l=d(14354),p=d(51006),m=d(17617),_=d(3567),P=d(62668),v=d(80583),O=d(43848),S=d(19392),y=d(4208),r=d(75707),i=d(83915),a=d(91384),h=d(8619),g=d(25577),c=d(26875),T=d(74931),A=d(1331),L=d(19724),x=d(58527),V=d(59002),D=d(27211),F=d(43664),I=d(83486),k=d(52834),R=d(15332),G=d(67904),Y=d(3457),K=d(56106),$=d(47973),ee=d(29370),J=d(26945),z=d(33955),te=d(51635),X=d(54676),re=d(65240);const ge=["grid"],oe=["accordion"],xe=Oe=>({arg:Oe});function ue(Oe,gt){if(1&Oe){const qt=x.RV6();x.j41(0,"button",22),x.bIt("click",function(){x.eBV(qt);const Re=x.XpG().$implicit,Ze=x.XpG(2);return x.Njj(Ze.onMenuChanged(Re))}),x.j41(1,"div",23)(2,"div",24),x.EFF(3),x.nI1(4,"translate"),x.k0s()()()}if(2&Oe){const qt=x.XpG().$implicit;x.R7$(2),x.AVh("active",qt.active),x.R7$(),x.SpI(" ",x.i5U(4,3,qt.label,x.eq3(6,xe,qt.value))," ")}}function N(Oe,gt){1&Oe&&(x.j41(0,"button",31),x.nrm(1,"mat-icon",16),x.k0s())}function se(Oe,gt){if(1&Oe){const qt=x.RV6();x.qex(0),x.j41(1,"div",23)(2,"mat-checkbox",32),x.mxI("ngModelChange",function(Re){const Ze=x.eBV(qt).$implicit;return x.DH7(Ze.enabled,Re)||(Ze.enabled=Re),x.Njj(Re)}),x.bIt("change",function(){const Re=x.eBV(qt).$implicit,Ze=x.XpG(4);return x.Njj(Ze.onHighlightFilterChanged(Re))}),x.k0s(),x.j41(3,"span",33),x.bIt("click",function(){const Re=x.eBV(qt).$implicit,Ze=x.XpG(4);return x.Njj(Ze.onHighlightFilterClicked(Re))}),x.EFF(4),x.k0s()(),x.bVm()}if(2&Oe){const qt=gt.$implicit;x.R7$(2),x.R50("ngModel",qt.enabled),x.R7$(2),x.JRh(qt.displayName+" ("+qt.count+")")}}function ce(Oe,gt){if(1&Oe){const qt=x.RV6();x.j41(0,"mat-expansion-panel",25)(1,"mat-expansion-panel-header",26)(2,"div",13)(3,"button",27),x.bIt("click",function(Re){x.eBV(qt);const Ze=x.XpG().$implicit,et=x.XpG(2);return Re.stopPropagation(),x.Njj(et.onMenuChanged(Ze))}),x.j41(4,"div",28),x.EFF(5),x.nI1(6,"translate"),x.k0s()(),x.DNE(7,N,2,0,"button",29),x.k0s()(),x.j41(8,"div",30),x.DNE(9,se,5,2,"ng-container",18),x.k0s()()}if(2&Oe){const qt=x.XpG().$implicit,ye=x.XpG(2);x.R7$(4),x.AVh("active",qt.active),x.R7$(),x.SpI(" ",x.i5U(6,5,qt.label,x.eq3(8,xe,qt.value))," "),x.R7$(2),x.Y8G("ngIf",0!==ye.highlightsCount),x.R7$(2),x.Y8G("ngForOf",qt.children)}}function Z(Oe,gt){if(1&Oe&&(x.qex(0),x.DNE(1,ue,5,8,"button",20)(2,ce,10,10,"mat-expansion-panel",21),x.bVm()),2&Oe){const qt=gt.$implicit;x.R7$(),x.Y8G("ngIf",!qt.children),x.R7$(),x.Y8G("ngIf",qt.children)}}function de(Oe,gt){if(1&Oe){const qt=x.RV6();x.qex(0),x.j41(1,"nv-dropdown",9),x.bIt("selectionChanged",function(Re){x.eBV(qt);const Ze=x.XpG();return x.Njj(Ze.onDropdownChanged(Re))}),x.k0s(),x.j41(2,"mat-accordion",10)(3,"mat-expansion-panel",11,2),x.bIt("opened",function(){x.eBV(qt);const Re=x.XpG();return x.Njj(Re.accordionOpen=!0)})("closed",function(){x.eBV(qt);const Re=x.XpG();return x.Njj(Re.accordionOpen=!1)}),x.j41(5,"mat-expansion-panel-header",12)(6,"div",13)(7,"div",14),x.EFF(8),x.nI1(9,"translate"),x.k0s(),x.j41(10,"div",15),x.nrm(11,"mat-icon",16),x.k0s()()(),x.j41(12,"div",17),x.DNE(13,Z,3,2,"ng-container",18),x.nrm(14,"div",19),x.k0s()()(),x.nrm(15,"nv-divider"),x.bVm()}if(2&Oe){const qt=x.XpG();x.R7$(),x.Y8G("textFont16",!0)("isBackgroundColorReq",!1)("selection",qt.dropdownIndex)("disabled",qt.dropdownDisabled1||qt.lowDiskSpace)("input",qt.dropdownInput),x.R7$(2),x.AVh("extra-bottom",qt.accordionOpen),x.Y8G("@.disabled",qt.delay)("disabled",qt.dropdownDisabled2||qt.lowDiskSpace),x.R7$(5),x.SpI(" ",x.bMT(9,11,"gallery.ViewSettings")," "),x.R7$(5),x.Y8G("ngForOf",qt.menuItems)}}function ae(Oe,gt){1&Oe&&x.nrm(0,"div")}function pe(Oe,gt){if(1&Oe&&(x.j41(0,"div",34)(1,"div",35),x.EFF(2),x.nI1(3,"translate"),x.k0s()()),2&Oe){const qt=x.XpG();x.R7$(2),x.JRh(x.i5U(3,1,qt.emptyContainerString,qt.emptyContainerParams))}}function _e(Oe,gt){if(1&Oe){const qt=x.RV6();x.j41(0,"nv-gallery-item",37),x.bIt("click",function(){const Re=x.eBV(qt).$implicit,Ze=x.XpG(2);return x.Njj(Ze.openFile(Re))}),x.k0s()}if(2&Oe){const qt=gt.$implicit,ye=gt.scroll,Re=x.XpG(2);x.Y8G("item",qt)("scrolling",ye)("activeItem",Re.galleryOpenItem)("thumbSize",Re.thumbSize)("initialDelay",Re.delay)}}function ke(Oe,gt){if(1&Oe){const qt=x.RV6();x.j41(0,"nv-virtual-grid-container",36,3),x.bIt("multiSelectMode",function(Re){x.eBV(qt);const Ze=x.XpG();return x.Njj(Ze.onMultiSelectMode(Re))})("multiSelectList",function(Re){x.eBV(qt);const Ze=x.XpG();return x.Njj(Ze.onMultiSelectList(Re))}),x.mxI("selectedItemChange",function(Re){x.eBV(qt);const Ze=x.XpG();return x.DH7(Ze.gallerySelection,Re)||(Ze.gallerySelection=Re),x.Njj(Re)}),x.bIt("selectedItemChange",function(Re){x.eBV(qt);const Ze=x.XpG();return x.Njj(Ze.selectedItemChanged(Re))})("keydown",function(Re){x.eBV(qt);const Ze=x.XpG();return x.Njj(Ze.openGalleryItem(Re))}),x.DNE(2,_e,1,5,"ng-template",null,4,x.C5r),x.k0s()}if(2&Oe){const qt=x.sdS(3),ye=x.XpG();x.Y8G("items",ye.galleryItems),x.R50("selectedItem",ye.gallerySelection),x.Y8G("itemHeight",ye.thumbSize)("marginBottom",5)("itemWidth",ye.thumbSize)("marginRight",5)("template",qt)("topBottomPad",0)}}let De=(()=>{var Oe;class gt{constructor(ye,Re,Ze,et,xt,un,ct,Gt,pn,st,mn,Bn,En,Cn,fn,dt,nn){this.loggingService=ye,this.route=Re,this.osService=Ze,this.galleryService=et,this.bridgeService=xt,this.sdkService=un,this.oscDisplayService=ct,this.cacheService=Gt,this.telemetry=pn,this.navigationService=st,this.dialogHelper=mn,this.igoConfig=Bn,this.appBarService=En,this.gfnInfoService=Cn,this.nvCameraService=fn,this.featureSupportService=dt,this.telemetryIgo=nn,this.destroy$=new v.B7,this.previewOpen=!1,this.initComplete=!1,this.accordionOpen=!1,this.lowDiskSpace=!1,this.originalItems=[],this.useItems=[],this.galleryItems=[],this.dropdownDisabled1=!1,this.dropdownDisabled2=!1,this.noEntriesYet=!1,this.emptyString="",this.emptyContainerVisible=!1,this.emptyContainerString="",this.emptyContainerParams={},this.emptyHideDropdown=!1,this.thumbSize=116,this.delay=!0,this.highlightsCount=0,this.currentDropdownSelection="",this.dropdownIndex=-1,this.addMenu=!0,this.menuItems=[],this.menuStrings=[],this.filters=["all","highlight","video","instantreplay","image"],this.telemetryFilters=[A.XyZ.none,A.XyZ.highlight,A.XyZ.video,A.XyZ.ir,A.XyZ.screenshot],this.activeFilter=this.filters[0],this.multiSelectMode=!1,this.multiSelectList=void 0,this.isNvApp=!1,this.openFromSdk=!1,this.recentHighlightsIndex=1,this.highlightsGame="",this.hlPending=!1,this.currentDesktopMode="desktop",this.logger=this.loggingService.getLogger("Gallery"),this.setAppBarInitial(),this.appBarService.actionClicked$.pipe((0,y.Q)(this.destroy$)).subscribe(yn=>{this.appBarClicked(yn)}),this.isNvApp=this.featureSupportService.isNvApp()}ngOnInit(){this.dirSeparator=this.osService.getDirSeparator(),this.telemetryIgo.startGalleryAccess(A.UZ.root),this.galleryService.setGalleryThumbSize(this.thumbSize),this.cacheService.galleryActive(!0),this.handleView(),this.initializeFilters(),this.backCallback$=this.navigationService.escapeEvent().subscribe(()=>{this.onBackClicked()}),this.galleryService.filesSelectedDataChangeListener.pipe((0,y.Q)(this.destroy$)).subscribe(()=>{this.handleView()}),this.galleryService.lowDiskSpaceEvent().pipe((0,y.Q)(this.destroy$)).subscribe(ye=>{this.lowDiskSpace=ye,this.logger.info("The disk space is low: ",ye),this.handleView()}),this.initializeView().pipe((0,y.Q)(this.destroy$)).subscribe(()=>{this.telemetryIgo.sendGalleryAccess(),this.delayedHighlightSubscription$=this.galleryService.listenForDelayedEvents().subscribe(ye=>{ye.hlEvent===A.pWC.HIGHLIGHT_COMPLETED&&(this.resetView(ye.args),this.processDelayedHighlight(ye.args))}),this.canceledHighlightSubscription$=this.galleryService.isHighlightCanceled().subscribe(ye=>{ye.hlEvent===A.pWC.HIGHLIGHT_COMPLETED&&this.processCanceledHighlight(ye.args)}),this.refreshGallerySubscription$=this.galleryService.refreshEvent().subscribe(ye=>{this.currentDropdownSelection===ye.folder&&(ye.filename?this.originalItems.findIndex(Ze=>Ze.fullFilename===ye.filename)>=0?this.reloadItems():this.checkForZeroEntryDropdown():this.reloadItems())}),this.initComplete=!0}),setTimeout(()=>this.delay=!1,300),this.galleryService.previewPaneEvent().pipe((0,y.Q)(this.destroy$)).subscribe(ye=>{this.previewEvent(ye)}),this.oscDisplayService.getCurrentDesktopMode().pipe((0,y.Q)(this.destroy$)).subscribe(ye=>{this.currentDesktopMode=ye})}setAppBarInitial(){this.appBarService.setTitle("gallery.Gallery"),this.appBarService.setActive(!1),this.appBarService.setNavButtonArrow(),this.appBarService.setIcons([{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}])}initializeFilters(){this.menuStrings=["filterMenu.ShowAll","filterMenu.Highlights","filterMenu.VideoRecordings","filterMenu.InstantReplay","filterMenu.Screenshots"],this.menuStrings.forEach(ye=>{this.menuItems.push({label:ye,value:0,active:!1,children:null})})}setupFilterList(){const ye=(0,c.cloneDeep)(this.galleryService.fileCounts);if(ye.highlights=0,this.openFromSdk&&(ye.total=0,ye.videos=0,ye.instantReplays=0,ye.images=0),this.useItems.forEach(Re=>{ye.highlights+="Highlight"===Re.file.subtype?1:0,this.openFromSdk&&(ye.total++,ye.videos+="Manual"===Re.file.subtype?1:0,ye.instantReplays+="InstantReplay"===Re.file.subtype?1:0,ye.images+="image"===Re.file.type?1:0)}),this.menuItems[0].value=ye.total,this.menuItems[1].value=ye.highlights,this.menuItems[2].value=ye.videos,this.menuItems[3].value=ye.instantReplays,this.menuItems[4].value=ye.images,ye.highlightBreakDown&&ye.highlightBreakDown.length){if(this.openFromSdk){const Re=this.galleryService.highlightsSummaryData.highlights;ye.highlightBreakDown.forEach(Ze=>{Ze.count=Re.filter(et=>""!==et.path&&et.highlightName===Ze.name).length})}this.menuItems[1].children=ye.highlightBreakDown}else this.menuItems[1].children=[];this.logger.info("File counts: ",ye),this.highlightsCount=ye.highlights,0!==ye.total&&!this.openFromSdk&&(1===this.galleryService.activeFilter&&0===ye.highlights||2===this.galleryService.activeFilter&&0===ye.videos||3===this.galleryService.activeFilter&&0===ye.instantReplays||4===this.galleryService.activeFilter&&0===ye.images)&&(this.menuItems[this.galleryService.activeFilter].active=!1,this.galleryService.activeFilter=0,this.activeFilter=this.filters[0],this.menuItems[0].active=!0)}initializeDropdown(ye){const Re=ye,Ze=Re.length;if(0===Ze)return this.dropdownDisabled1=this.dropdownDisabled2=!0,this.dropdownInput=["settings.NoGamesFound"],this.dropdownFolders=[""],this.noEntriesYet=!0,void this.handleView();const et=this.galleryService.topLevelCounts.slice();this.dropdownInput=[],this.dropdownFolders=[];for(let xt=0;xt<Ze;xt++){const un=et.find(Gt=>Gt.folder===Re[xt]);let ct=un?un.totalCount:0;this.openFromSdk&&(ct=this.highlightsData.highlights.length,this.dropdownDisabled1=!0,this.dropdownDisabled2=!1),this.dropdownInput.push(`${Re[xt]} (${ct})`),this.dropdownFolders.push(Re[xt])}}getGameToUse(ye,Re,Ze){return""!==Ze?Ze:Re&&""!==Re?Re:ye}initializeView(){this.logger.info("Event Capture: Folders IN"),this.isNvApp&&this.telemetry.startUIPerfEvent(L.CV.GalleryPopulateFolders);let ye=!1;if(this.route.snapshot.params.callbackData)try{const Re=JSON.parse(this.route.snapshot.params.callbackData);Re&&Re.openedFromSDK&&(ye=Re.openedFromSDK)}catch{}return this.logger.info("InitializeView openViaSDK: ",ye),this.highlightsData=this.galleryService.getHighlightsToUse(ye),this.galleryService.highlightSummaryIsOpen&&ye?(this.openFromSdk=!0,this.activeFilter=this.filters[this.recentHighlightsIndex],this.highlightsGame=this.highlightsData.profileName,this.menuItems[this.recentHighlightsIndex].active=!0):(this.activeFilter=this.filters[this.galleryService.activeFilter],this.menuItems[this.galleryService.activeFilter].active=!0),this.galleryService.getFolders().pipe((0,r.ZZ)(Re=>{const Ze=this.gfnInfoService.currentGameProfileName,et=this.nvCameraService.currentGameInfo?.drsProfileName?.replace(/[\\/:*?"<>|]/g," "),xt=this.galleryService.getLastUserSelectedFolder(),un=this.openFromSdk||Ze||et,ct=this.getGameToUse(Ze,et,xt),Gt=this.openFromSdk?this.highlightsData.profileName:ct;let pn=void 0!==Re.find(mn=>mn===Gt);this.openFromSdk&&!pn&&(Re.push(Gt),Re.sort(),pn=!0),this.initializeDropdown(Re);const st=un&&pn?Gt:this.galleryService.getWorkingFolder();return""===st?(0,O.of)([]):(this.currentDropdownSelection=st,this.dropdownIndex=this.dropdownFolders.indexOf(st),this.logger.info("Event Capture: Folders OUT"),this.isNvApp&&(this.telemetry.sendUIPerfEvent(this.galleryService.getCurrentGameDetails(),L.CV.GalleryPopulateFolders,Re.length,this.currentDesktopMode),this.telemetry.startUIPerfEvent(L.CV.GalleryPopulateFiles)),this.logger.info("Event Capture: "+this.currentDropdownSelection+" Thumbnails IN"),this.galleryService.showFolderContents(this.currentDropdownSelection))}),(0,i.T)(Re=>{this.processGalleryContent(Re),this.logger.info("Event Capture: "+this.currentDropdownSelection+" Thumbnails OUT");let Ze=this.galleryService.getCurrentFolderCount()?.total;return Ze||(Ze=0),this.isNvApp&&this.telemetry.sendUIPerfEvent(this.galleryService.getCurrentGameDetails(),L.CV.GalleryPopulateFiles,Ze,this.currentDesktopMode),!0}))}resetView(ye){this.initComplete&&!this.openFromSdk&&(this.emptyContainerVisible&&this.noEntriesYet?(this.emptyContainerVisible=!1,this.noEntriesYet=!1,this.dropdownDisabled1=this.dropdownDisabled2=!1,this.cacheService.flushDirectoryList(),this.initializeView().pipe((0,y.Q)(this.destroy$)).subscribe()):void 0===this.dropdownFolders.find(Re=>Re===ye.folder)?(this.logger.info("Folder not found...adding!"),this.galleryService.getFolders().pipe((0,y.Q)(this.destroy$)).subscribe(Re=>{this.initializeDropdown(Re)})):(this.logger.info("Folder found...updating count!"),this.fixMissingCounts(ye.folder)))}processGalleryContent(ye){if(this.hlPending=this.isHighlightInUGCPending(ye),this.checkForZeroEntryDropdown(),!ye.length&&!this.hlPending)return this.setupFilterList(),!1;this.emptyString=void 0,this.handleView(),this.originalItems=ye.slice(),this.preFilterData(!0)}isHighlightInUGCPending(ye){let Re=0;if(ye)return ye.forEach(Ze=>{""===Ze.fullFilename&&Re++}),!!Re}handleView(){this.emptyContainerVisible=!!(this.lowDiskSpace||this.noEntriesYet||this.emptyString),this.emptyHideDropdown=!1,this.lowDiskSpace?(this.emptyContainerString="mainMenu.LowDiskSpace",this.emptyContainerParams={},this.emptyHideDropdown=!0):this.noEntriesYet?(this.emptyContainerString="gallery.NoEntriesYet",this.emptyContainerParams={},this.emptyHideDropdown=!0):this.emptyString&&(this.emptyContainerString=this.emptyString,this.emptyContainerParams={arg1:this.currentDropdownSelection})}checkForZeroEntryDropdown(){const ye=this.openFromSdk&&0!==this.galleryService.highlightsSummaryData.highlights.length,Ze=this.galleryService.topLevelCounts.slice().find(xt=>xt.folder===this.currentDropdownSelection);this.emptyString=Ze&&Ze.totalCount||this.hlPending||ye?void 0:"gallery.ZeroEntries",this.handleView()}preFilterData(ye){this.useItems=this.openFromSdk&&this.currentDropdownSelection===this.highlightsGame?this.originalItems.filter(Ze=>this.galleryService.highlightsSummaryData.highlights.find(et=>Ze.hlId===et.id)):this.originalItems.slice();const Re=(new Date).toISOString();this.useItems.forEach(Ze=>{""===Ze.date&&(Ze.date=Re)}),ye&&this.setupFilterList(),this.filterData()}filterData(){this.activeFilter===this.filters[0]?this.galleryItems=this.useItems:this.activeFilter===this.filters[1]?this.galleryItems=this.useItems.filter(ye=>{if("Highlight"===ye.file.subtype){if(this.menuItems[1].children&&ye.hlName){const Re=this.menuItems[1].children.find(Ze=>Ze.name===ye.hlName);if(Re)return Re.enabled}return!0}return!1}):this.activeFilter===this.filters[2]?this.galleryItems=this.useItems.filter(ye=>"Manual"===ye.file.subtype||"video"===ye.file.type&&"InstantReplay"!==ye.file.subtype&&"Manual"!==ye.file.subtype&&"Highlight"!==ye.file.subtype):this.activeFilter===this.filters[3]?this.galleryItems=this.useItems.filter(ye=>"InstantReplay"===ye.file.subtype):this.activeFilter===this.filters[4]&&(this.galleryItems=this.useItems.filter(ye=>ye.file.type===this.activeFilter)),this.multiSelectMode&&this.onCancelMultiSelectClicked(),this.gallerySelection&&this.galleryItems.findIndex(ye=>ye===this.gallerySelection)<0&&(this.gallerySelection=void 0)}ngOnDestroy(){this.dialogHelper.closeSnackBar(),this.update$&&this.update$.unsubscribe(),this.backCallback$&&this.backCallback$.unsubscribe(),this.centerPaneCallback$&&this.centerPaneCallback$.unsubscribe(),this.delayedHighlightSubscription$&&this.delayedHighlightSubscription$.unsubscribe(),this.canceledHighlightSubscription$&&this.canceledHighlightSubscription$.unsubscribe(),this.refreshGallerySubscription$&&this.refreshGallerySubscription$.unsubscribe(),this.destroy$.next(!0),this.destroy$.unsubscribe(),this.cacheService.galleryActive(!1),this.galleryService.setHighlightsSummaryOpen(!1)}onBackClicked(){setTimeout(()=>{this.logger.info("Back clicked"),this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},A.jby.mainMenu)})}onOpenClicked(){if(this.logger.info("Open clicked"),!this.gallerySelection)return void this.logger.info("no selected item");let ye=this.gallerySelection.fullFilename;const Re=ye.lastIndexOf(this.dirSeparator);if(-1!==Re&&(ye=ye.slice(0,Re)),""!==ye){this.oscDisplayService.closeOSC();const Ze=this.bridgeService.executeCommand(T.Ts.Common.Applicationinfo.OpenDirectoryBrowser,{name:ye}).subscribe(()=>{Ze.unsubscribe()});this.telemetryIgo.sendGalleryOpenedFileLocation()}}arrayDeleteFile(ye,Re){const Ze=Re.indexOf(ye);Ze>=0&&Re.splice(Ze,1)}onRemoveClicked(){if(this.logger.info("Remove clicked"),!this.gallerySelection)return void this.logger.info("no selected item");let ye;ye=this.multiSelectMode?this.multiSelectList:[this.gallerySelection];const Re=this.multiSelectMode&&this.multiSelectList.length>1,un={title:Re?"confirmation.confirmDeleteTitleMulti":"confirmation.confirmDeleteTitle",query:Re?"confirmation.confirmDeleteMulti":"confirmation.confirmDelete",queryParam:{arg1:Re?this.multiSelectList.length:"0"},action1:"confirmation.NotRightNow",action2:"confirmation.remove"};let ct=!1;const Gt=this.galleryItems.slice(),pn=this.useItems.slice(),st=this.originalItems.slice(),mn=(0,c.cloneDeep)(this.menuItems),Bn=this.dropdownInput.slice(),En=(0,c.cloneDeep)(this.galleryService.topLevelCounts),Cn=()=>{this.menuItems.forEach((fn,dt)=>{fn.value=mn[dt].value}),this.galleryService.topLevelCounts.forEach((fn,dt)=>{fn.totalCount=En[dt].totalCount}),mn[1].value>0&&this.menuItems[1].children.forEach((fn,dt)=>{fn.count=mn[1].children[dt].count}),this.checkForZeroEntryDropdown(),setTimeout(()=>{this.originalItems=st,this.useItems=pn,this.galleryItems=Gt,this.dropdownInput=Bn},0)};this.dialogHelper.openAlertDialog(un).pipe((0,y.Q)(this.destroy$),(0,r.ZZ)(fn=>fn.afterClosed()),(0,a.M)(()=>{this.multiSelectMode&&this.onCancelMultiSelectClicked()}),(0,h.p)(fn=>fn===A.SFy.Action2),(0,a.M)(()=>this.closePreview()),(0,r.ZZ)(()=>(0,S.H)(ye)),(0,a.M)(fn=>{if(this.arrayDeleteFile(fn,this.galleryItems),this.arrayDeleteFile(fn,this.useItems),this.arrayDeleteFile(fn,this.originalItems),this.galleryService.topLevelCounts.slice().forEach(nn=>{if(fn.folder===nn.folder){const yn=this.dropdownFolders.indexOf(nn.folder);let Xn=0;this.openFromSdk?Xn=this.galleryItems.length:(Xn=nn.totalCount||0,Xn>0&&Xn--),nn.totalCount=Xn,yn>=0&&(this.dropdownInput[yn]=`${nn.folder} (${Xn})`)}this.dropdownInput=this.dropdownInput.slice()}),this.menuItems[0].value--,fn.file.subtype===T.Or.Common.Gallery.SubType.Highlight&&(this.menuItems[1].value--,fn.hlName)){const nn=this.menuItems[1].children.find(yn=>yn.name===fn.hlName);nn&&nn.count--}(fn.file.subtype===T.Or.Common.Gallery.SubType.Manual||fn.file.type===T.Or.Common.Gallery.FileType.video&&fn.file.subtype!==T.Or.Common.Gallery.SubType.InstantReplay&&fn.file.subtype!==T.Or.Common.Gallery.SubType.Manual&&fn.file.subtype!==T.Or.Common.Gallery.SubType.Highlight)&&this.menuItems[2].value--,fn.file.subtype===T.Or.Common.Gallery.SubType.InstantReplay&&this.menuItems[3].value--,fn.file.type===T.Or.Common.Gallery.FileType.image&&this.menuItems[4].value--}),(0,g.H)(),(0,a.M)(()=>this.checkForZeroEntryDropdown()),(0,a.M)(()=>this.galleryItems=this.galleryItems.slice()),(0,r.ZZ)(()=>this.galleryService.showDeleteSnackbar(ye)),(0,a.M)(fn=>ct=fn),(0,h.p)(fn=>!0===fn),(0,r.ZZ)(()=>this.galleryService.getCurrentDropdownCount(this.currentDropdownSelection)),(0,a.M)(()=>{this.galleryService.topLevelCounts.slice().forEach(dt=>{const nn=this.dropdownFolders.indexOf(dt.folder);nn>=0&&(this.dropdownInput[nn]=`${dt.folder} (${this.openFromSdk?this.galleryItems.length:dt.totalCount||0})`)}),this.dropdownInput=this.dropdownInput.slice()})).subscribe(()=>{},()=>{ct||Cn()},()=>{ct||Cn()})}selectedItemChanged(ye){this.gallerySelection=ye,this.multiSelectMode||(this.galleryService.currentSelectedFilesData=[ye])}onDropdownChanged(ye){this.logger.info("Dropdown selection changed to: "+ye),this.closePreview(),this.dialogHelper.closeSnackBar(),this.dropdownIndex=ye,this.currentDropdownSelection=this.dropdownFolders[ye],this.galleryService.setLastUserSelectedFolder(this.currentDropdownSelection),this.reloadItems()}reloadItems(){this.logger.info("Event Capture: "+this.currentDropdownSelection+" Thumbnails IN"),this.telemetry.startUIPerfEvent(L.CV.GalleryPopulateFiles),this.telemetryIgo.startGalleryAccess(A.UZ.folder),this.update$&&this.update$.unsubscribe(),this.gallerySelection=void 0,this.originalItems=[],this.useItems=[],this.galleryItems=[],this.update$=this.galleryService.showFolderContents(this.currentDropdownSelection).subscribe(ye=>{this.processGalleryContent(ye),this.logger.info("Event Capture: "+this.currentDropdownSelection+" Thumbnails OUT"),this.fixMissingCounts(this.currentDropdownSelection),this.telemetryIgo.sendGalleryAccess()})}openFile(ye){!ye.fullFilename||this.multiSelectMode||(this.galleryService.currentFileData=this.gallerySelection,this.galleryOpenItem=this.gallerySelection,this.telemetryIgo.startGalleryAccess(A.UZ.content),this.previewOpen?this.telemetryIgo.sendGalleryFileAccess(ye):(this.centerPaneOpened(),this.galleryService.setPreviewCaller(A.jby.galleryMain),this.navigationService.navigate([{outlets:{centerPane:"center-view/preview"}}],{relativeTo:this.route,skipLocationChange:!0},"image"===ye.file.type?A.jby.galleryImagePreview:A.jby.galleryVideoPreview).then(()=>{this.telemetryIgo.sendGalleryFileAccess(ye)})))}centerPaneOpened(){this.previewOpen||(this.navigationService.openCenterPane(!0),this.previewOpen=!0,this.centerPaneCallback$=this.navigationService.centerPaneClosedEvent().subscribe(()=>{this.galleryOpenItem=void 0,this.previewOpen=!1,this.centerPaneCallback$.unsubscribe(),this.centerPaneCallback$=void 0}))}closePreview(){this.previewOpen?this.galleryService.closePreviewWindow(!0):this.logger.info("Ignoring close preview window request")}onMenuChanged(ye){this.dialogHelper.closeSnackBar(),this.logger.info("Menu changed to: ",ye),this.menuItems.forEach(Ze=>Ze.active=!1);const Re=this.menuItems.findIndex(Ze=>Ze===ye);ye.active=!0,this.openFromSdk||(this.galleryService.activeFilter=Re),this.activeFilter=this.filters[Re],this.preFilterData(!1),this.checkForZeroEntryDropdown(),this.telemetryIgo.sendGalleryFilterUsed(this.telemetryFilters[Re])}onHighlightFilterChanged(ye){this.dialogHelper.closeSnackBar(),this.preFilterData(!1),this.checkForZeroEntryDropdown()}onHighlightFilterClicked(ye){this.dialogHelper.closeSnackBar(),ye.enabled=!ye.enabled,this.preFilterData(!1)}openGalleryItem(ye){"Enter"===ye.key&&this.gallerySelection?this.openFile(this.gallerySelection):"Delete"===ye.key&&this.onRemoveClicked()}onMultiSelectMode(ye){this.multiSelectMode=ye,ye&&this.previewOpen&&this.closePreview()}onMultiSelectList(ye){this.multiSelectList=ye.slice(0),this.changeAppBarSelected(this.multiSelectList.length),this.galleryService.currentSelectedFilesData=this.multiSelectList}onCancelMultiSelectClicked(){this.virtualGrid.cancelMultiSelect()}fixMissingCounts(ye){const Re=this.dropdownFolders.indexOf(ye);if(-1!==Re){const Ze=this.galleryService.getCurrentDropdownCount(ye).subscribe(et=>{this.openFromSdk&&(et=this.galleryItems.length),this.dropdownInput[Re]=`${ye} (${et})`,this.dropdownInput=this.dropdownInput.slice(),this.setupFilterList(),this.handleView(),Ze.unsubscribe()})}}processCanceledHighlight(ye){const Re=this.galleryItems.slice(),Ze=Re.findIndex(et=>et.hlId===ye.id);-1!==Ze?(this.logger.info("Canceled item: ",Re[Ze]),Re[Ze].cancel=!0,this.galleryItems=Re.slice()):this.logger.info("highlightUpdate could not find a match...skipping")}processDelayedHighlight(ye){const Re=this.galleryItems.findIndex(Ze=>Ze.hlId===ye.hlId);-1!==Re?(Object.assign(this.galleryItems[Re],ye),this.fixMissingCounts(this.galleryItems[Re].folder)):this.logger.info("highlightUpdate could not find a match...skipping")}appBarClicked(ye){this.dialogHelper.closeSnackBar(),setTimeout(()=>{"nav"===ye?this.multiSelectMode?this.onCancelMultiSelectClicked():this.onBackClicked():"delete"===ye&&this.onRemoveClicked()},0)}changeAppBarSelected(ye){0===ye?this.setAppBarInitial():1===ye?(this.appBarService.setActive(!0),this.appBarService.setNavButtonClose(),this.appBarService.setTitle("gallery.OneSelected"),this.appBarService.setIcons([{id:"delete",icon:"delete_forever",tooltip:"tooltips.Remove"}])):ye>1&&this.appBarService.setTitle("gallery.XSelected",{arg:ye})}previewEvent(ye){if(ye===A.Pev.DeleteFile)this.gallerySelection=this.galleryOpenItem,this.onRemoveClicked();else if(ye===A.Pev.BackNav||ye===A.Pev.ForwardNav){let Re=this.galleryItems.indexOf(this.galleryOpenItem);if(Re<0)return;ye===A.Pev.BackNav?Re-=1:Re+=1,Re=Re>=this.galleryItems.length?0:Re<0?this.galleryItems.length-1:Re,this.gallerySelection=this.galleryItems[Re],this.openFile(this.gallerySelection)}}}return(Oe=gt).\u0275fac=function(ye){return new(ye||Oe)(x.rXU(_.J6),x.rXU(l.nX),x.rXU(A.aTF),x.rXU(A.AFS),x.rXU(_.NZ),x.rXU(A.P15),x.rXU(A.Bqk),x.rXU(A._Cw),x.rXU(A.xRl),x.rXU(A.o_p),x.rXU(A.eo6),x.rXU(A.k$F),x.rXU(A.gZv),x.rXU(V.x_),x.rXU(A.h8x),x.rXU(A.Rvq),x.rXU(D.S))},Oe.\u0275cmp=x.VBU({type:Oe,selectors:[["igo-gallery"]],viewQuery:function(ye,Re){if(1&ye&&(x.GBs(ge,5),x.GBs(oe,5)),2&ye){let Ze;x.mGM(Ze=x.lsd())&&(Re.virtualGrid=Ze.first),x.mGM(Ze=x.lsd())&&(Re.accordion=Ze.first)}},decls:8,vars:4,consts:[["noGrid",""],["useGrid",""],["accordion",""],["grid",""],["galleryTemplate",""],["fxLayout","column","fxFlex",""],["fxFlex","grow","fxLayout","column"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"",3,"selectionChanged","textFont16","isBackgroundColorReq","selection","disabled","input"],["displayMode","flat",1,"accordion","nv-item-row"],["hideToggle","true",1,"nv-item-row","view-panel",3,"opened","closed","disabled"],["matRipple","","collapsedHeight","48px","expandedHeight","48px",1,"hig-button-overlay"],["fxLayout","row","fxLayoutAlign","start center","fxFlexFill",""],["fxFlex","grow",1,"accordion-label","accordion-left-padding","font-body1","font-color-primary"],["fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","accordion-chevron-padding-header"],["svgIcon","chevron_down",1,"accordion-chevron"],["fxLayout","column",1,"max-accordion-height"],[4,"ngFor","ngForOf"],["fxFlex","none",1,"nv-gap-16"],["mat-button","","class","complex-button accordion-chevron-padding","fxFlex","none",3,"click",4,"ngIf"],["fxFlex","none","class","accordion-nested","hideToggle","true",4,"ngIf"],["mat-button","","fxFlex","none",1,"complex-button","accordion-chevron-padding",3,"click"],["fxLayout","row","fxLayoutAlign","start center"],["fxFlex","shrink",1,"font-body1","accordion-item"],["fxFlex","none","hideToggle","true",1,"accordion-nested"],["collapsedHeight","48px","expandedHeight","36px"],["mat-button","","fxFlex","grow",1,"font-body1","accordion-label","accordion-item","accordion-nested-left-padding",3,"click"],[1,"font-body1"],["mat-button","","fxFlex","none","class","nv-item-icon complex-button accordion-nested-right","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column",1,"indent"],["mat-button","","fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","complex-button","accordion-nested-right"],["fxFlex","none",3,"ngModelChange","change","ngModel"],["fxFlex","shrink",1,"font-body2","check-label",3,"click"],["fxFlex","","fxLayout","row","fxLayoutAlign","center center",1,"emptyContainer"],[1,"font-body2","emptyMessage"],["tabIndex","0","fxFlex","","fxLayout","row","multiSelect","true","chunkFileMetadata","true",1,"virtual-grid-side-padding",3,"multiSelectMode","multiSelectList","selectedItemChange","keydown","items","selectedItem","itemHeight","marginBottom","itemWidth","marginRight","template","topBottomPad"],[3,"click","item","scrolling","activeItem","thumbSize","initialDelay"]],template:function(ye,Re){if(1&ye&&(x.j41(0,"div",5)(1,"div",6),x.DNE(2,de,16,13,"ng-container",7)(3,ae,1,0,"div",8)(4,pe,4,4,"ng-template",null,0,x.C5r)(6,ke,4,8,"ng-template",null,1,x.C5r),x.k0s()()),2&ye){const Ze=x.sdS(5),et=x.sdS(7);x.R7$(2),x.Y8G("ngIf",!Re.emptyHideDropdown),x.R7$(),x.Y8G("ngIf",Re.emptyContainerVisible)("ngIfThen",Ze)("ngIfElse",et)}},dependencies:[n.Sq,n.bT,F.$,I.T,k.I,R.O,G.v,Y.DJ,Y.sA,Y.G2,Y.UI,K.BC,K.vS,$.iV,ee.An,J.BS,J.GK,J.Z2,z.NZ,te.r6,X.tG,re.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.emptyContainer[_ngcontent-%COMP%]{align-items:center}[_nghost-%COMP%]{padding:16px 0}.isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .mat-button-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .mat-button-padding[_ngcontent-%COMP%]{margin-right:22px}html[dir=ltr][_ngcontent-%COMP%] .mat-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:22px}.isRtl[_nghost-%COMP%] .mat-button-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .mat-button-padding[_ngcontent-%COMP%]{margin-left:22px}html[dir=rtl][_ngcontent-%COMP%] .mat-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:22px}.isLtr[_nghost-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .mat-sub-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.emptyMessage[_ngcontent-%COMP%]{height:52px;margin:0 24px;max-width:400px;text-align:center}.virtual-grid-side-padding[_ngcontent-%COMP%]{padding:0 16px}.gallery-scroller[_ngcontent-%COMP%]{padding:16px 24px}.accordion[_ngcontent-%COMP%]{padding:0}.isLtr[_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-chevron-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .accordion-nested-right[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-nested-right[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-nested-right[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .accordion-nested-right[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-nested-right[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-nested-right[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .accordion-nested-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.isLtr[_nghost-%COMP%] .accordion-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-left-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .accordion-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-left-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .accordion-chevron-padding-header[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.extra-bottom[_ngcontent-%COMP%]{margin-bottom:-16px}.accordion-label[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .accordion-label[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .accordion-label[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.accordion-item[_ngcontent-%COMP%]{padding:12px 16px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;min-width:0;width:0}.isLtr[_nghost-%COMP%] .accordion-item[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-item[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .accordion-item[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .accordion-item[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-item[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .accordion-item[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.check-label[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;min-width:0;width:0;padding-top:8px;padding-bottom:8px}.isLtr[_nghost-%COMP%] .check-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .check-label[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .check-label[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .check-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .check-label[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .check-label[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.active[_ngcontent-%COMP%]{color:#76b900}.icon-dimensions[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{margin-right:-24px!important}html[dir=ltr][_ngcontent-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px!important}.isRtl[_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{margin-left:-24px!important}html[dir=rtl][_ngcontent-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px!important}.isLtr[_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{padding-right:24px!important}html[dir=ltr][_ngcontent-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px!important}.isRtl[_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{padding-left:24px!important}html[dir=rtl][_ngcontent-%COMP%] .mat-expansion-panel.view-panel[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px!important}.max-accordion-height[_ngcontent-%COMP%]{max-height:526px;overflow:overlay}.isLtr[_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.isLtr[_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .max-accordion-height[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.isLtr[_nghost-%COMP%] .indent[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .indent[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .indent[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .indent[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .indent[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .indent[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}"]}),gt})();var Me=d(27216);const je=[{path:"",component:De,data:{level:1}},{path:"center-view",component:Me.VI,outlet:"centerPane",children:[{path:"preview",component:Me.MG}]}];let $e=(()=>{var Oe;class gt{}return(Oe=gt).\u0275fac=function(ye){return new(ye||Oe)},Oe.\u0275mod=x.$C({type:Oe}),Oe.\u0275inj=x.G2t({imports:[n.MD,_._N,P.G,p.YF,m.i,l.iI.forChild(je),(0,_.BU)()]}),gt})()},35371:(Ue,W,d)=>{"use strict";d.d(W,{h:()=>Sr});var n=d(40262),l=d(80583),p=d(43848),m=d(93181),_=d(14714),P=d(75707),v=d(4208),O=d(43780),S=d(91384),y=d(83915),r=d(74931),i=d(1331),a=d(54292),h=d(58527),g=d(3567),c=d(26537),T=d(50801),A=d(61142),L=d(14354),x=d(3457),V=d(65706),D=d(29370);const F=["statusIndicator"];function I(ni,he){if(1&ni&&(h.j41(0,"div",4),h.nrm(1,"mat-icon",5),h.k0s()),2&ni){const Ee=h.XpG(2);h.R7$(),h.Y8G("svgIcon",Ee.icon)}}function k(ni,he){if(1&ni&&(h.j41(0,"div",2),h.DNE(1,I,2,1,"div",3),h.k0s()),2&ni){const Ee=h.XpG();h.R7$(),h.Y8G("ngIf",Ee.icon)}}let R=(()=>{var ni;class he{set mode(Pe){const Qe=i.lb6[Pe];this._mode=void 0!==Qe?Qe:i.lb6.Recording,this.setup()}get mode(){return this._mode}constructor(Pe,Qe,Be,Mt,Vt){this.injector=Pe,this.sdkService=Qe,this.shadowplayService=Be,this.featureSupportService=Mt,this.changed=new h.bkB,this.showHighlights=!1,this.showMic=!1,this.showRecording=!1,this.showPerfLogging=!1,this.showAny=!1,this.icon="",this.destroy$=new l.B7,this.IRState=!1,this.MRState=!1,this.HLBadState=!1,this.viewInit=!1,this.logger=Vt.getLogger("SPStatus")}ngAfterViewInit(){this.viewInit=!0,setTimeout(()=>this.setup(),0)}setup(){this.mode===i.lb6.Highlights?(this.icon="highlights",this.SetHighlightIcon()):this.mode===i.lb6.Recording?this.icon="record":this.mode===i.lb6.IR?this.icon="replay":this.mode===i.lb6.Mic?this.icon="mic":this.mode===i.lb6.PerfLogging&&(this.icon="text_snippet"),this.viewInit&&(this.destroy$.next(),this.destroy$.complete(),this.destroy$=new l.B7,this.sdkService.isHighlightsActive().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.updateHighlights(Pe)}),this.shadowplayService.getMICState().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.updateMic(Pe)}),this.shadowplayService.getMRState().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.updateRecording(Pe,!0)}),this.shadowplayService.getIRState().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.updateRecording(Pe===i.xT8.recording,!1)}),this.shadowplayService.getHLBadState().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.updateHLBadState(Pe)}),this.featureSupportService.showPerfLogging()&&(this.perfMonService=this.injector.get(i.zET),this.perfMonService.getPerfLoggingStatus().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.showPerfLogging=Pe,this.updateShowAny()})))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}SetHighlightIcon(){this.mode===i.lb6.Highlights&&this.showHighlights&&(this.icon=this.HLBadState?"highlights_disabled":"highlights")}updateHighlights(Pe){this.showHighlights=!(!Pe&&!1!==Pe)&&Pe,this.SetHighlightIcon(),this.updateShowAny()}updateHLBadState(Pe){this.HLBadState=!(!Pe&&!1!==Pe)&&Pe,this.SetHighlightIcon(),this.updateShowAny()}updateMic(Pe){const Qe=Pe!==i.YQZ.off;this.showMic=!(!Qe&&!1!==Qe)&&Qe,this.updateShowAny()}updateRecording(Pe,Qe){let Be=!1;(Pe||!1===Pe)&&(Be=Pe),Qe?this.MRState=Be:this.IRState=Be,this.showRecording=this.MRState||this.IRState,this.updateShowAny()}updateShowAny(){const Pe=this.mode===i.lb6.Highlights&&this.showHighlights||this.mode===i.lb6.Recording&&this.MRState||this.mode===i.lb6.IR&&this.IRState||this.mode===i.lb6.Mic&&this.showMic&&(this.showRecording||this.showHighlights)||this.mode===i.lb6.PerfLogging&&this.showPerfLogging;Pe!==this.showAny&&(this.showAny=Pe,this.changed.emit())}getDimensions(){return this.statusIndicator?this.statusIndicator.nativeElement.getBoundingClientRect():null}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(h.zZn),h.rXU(i.P15),h.rXU(i.W1J),h.rXU(i.Rvq),h.rXU(g.J6))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["nv-shadowplay-status"]],viewQuery:function(Pe,Qe){if(1&Pe&&h.GBs(F,7),2&Pe){let Be;h.mGM(Be=h.lsd())&&(Qe.statusIndicator=Be.first)}},inputs:{mode:"mode"},outputs:{changed:"changed"},decls:3,vars:1,consts:[["statusIndicator",""],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["class","osd-general osd-status-image","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"osd-general","osd-status-image"],[3,"svgIcon"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div",null,0),h.DNE(2,k,2,1,"div",1),h.k0s()),2&Pe&&(h.R7$(2),h.Y8G("ngIf",Qe.showAny))},dependencies:[A.bT,x.DJ,x.sA,D.An],styles:[".osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}.osd-status-image[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#000c}.osd-status-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;line-height:18px;font-size:18px;height:18px;width:18px}.osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:row-reverse}"]}),he})();var G=d(59002);const Y=["microphoneStatusIndicator"];function K(ni,he){1&ni&&h.nrm(0,"mat-icon",6)}function $(ni,he){1&ni&&h.nrm(0,"mat-icon",7)}function ee(ni,he){if(1&ni&&(h.j41(0,"div",2)(1,"div",3),h.DNE(2,K,1,0,"mat-icon",4)(3,$,1,0,"mat-icon",5),h.k0s()()),2&ni){const Ee=h.XpG();h.R7$(),h.Y8G("ngSwitch",Ee.currentMicButtonState),h.R7$(),h.Y8G("ngSwitchCase",Ee.micStates.Unmuted),h.R7$(),h.Y8G("ngSwitchCase",Ee.micStates.Muted)}}let J=(()=>{var ni;class he{constructor(Pe,Qe,Be,Mt){this.microphoneService=Pe,this.igoConfig=Qe,this.injector=Be,this.loggingService=Mt,this.showAny=!0,this.showIcon=!1,this.micStates=T.EO,this.viewInit=!1,this.componentDestroy=new l.B7,this.changed=new h.bkB,this.logger=this.loggingService.getLogger("MicrophoneStatusComponentIgo"),this.setup()}ngOnInit(){"GFN"===this.igoConfig.branding&&(this.gfnInfoService=this.injector.get(G.x_),this.gfnInfoService?this.gfnInfoService.showMicIcon().pipe((0,y.T)(Pe=>{this.logger.info("ShowIcon Status updated to ",Pe),this.showIcon=Pe}),(0,v.Q)(this.componentDestroy)).subscribe():this.logger.error("GfnInfoService injection failed"))}setup(){this.viewInit&&(this.micStateSub=this.microphoneService.currentMicState$.subscribe(Pe=>{switch(this.currentMicButtonState=Pe,this.currentMicButtonState){case T.EO.Unmuted:case T.EO.Muted:this.showAny=!0,this.changed.emit();break;default:this.showAny=!1,this.changed.emit()}}))}ngAfterViewInit(){this.viewInit=!0,setTimeout(()=>this.setup(),0)}ngOnDestroy(){this.micStateSub?.unsubscribe(),this.componentDestroy.next(!0),this.componentDestroy.complete()}getDimensions(){return this.microphoneStatusIndicator?this.microphoneStatusIndicator.nativeElement.getBoundingClientRect():null}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(T.CQ),h.rXU(i.k$F),h.rXU(h.zZn),h.rXU(g.J6))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["nv-microphone-status"]],viewQuery:function(Pe,Qe){if(1&Pe&&h.GBs(Y,7),2&Pe){let Be;h.mGM(Be=h.lsd())&&(Qe.microphoneStatusIndicator=Be.first)}},outputs:{changed:"changed"},decls:3,vars:1,consts:[["microphoneStatusIndicator",""],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxLayout","row","fxLayoutAlign","center center",1,"osd-general","osd-status-image",3,"ngSwitch"],["svgIcon","mic",4,"ngSwitchCase"],["svgIcon","mic_off",4,"ngSwitchCase"],["svgIcon","mic"],["svgIcon","mic_off"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div",null,0),h.DNE(2,ee,4,3,"div",1),h.k0s()),2&Pe&&(h.R7$(2),h.Y8G("ngIf",Qe.showAny&&Qe.showIcon))},dependencies:[A.bT,A.ux,A.e1,x.DJ,x.sA,D.An],styles:[".osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}.osd-status-image[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#000c}.osd-status-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;line-height:18px;font-size:18px;height:18px;width:18px}"]}),he})();var z=d(20381),te=d(97152),X=d(65240),re=d(74150),ge=d(43664);const oe=["statsOverlay"];function xe(ni,he){if(1&ni&&(h.j41(0,"div",13),h.nrm(1,"mat-icon",14),h.j41(2,"span",15),h.EFF(3),h.k0s()()),2&ni){const Ee=h.XpG(2);h.R7$(2),h.AVh("font-sub3",Ee.rowLayout)("font-header6",!Ee.rowLayout),h.R7$(),h.JRh(Ee.userVisibleGpuName)}}function ue(ni,he){if(1&ni&&(h.j41(0,"div",7)(1,"span",8),h.EFF(2),h.k0s(),h.j41(3,"div",9)(4,"span",10),h.EFF(5),h.nI1(6,"translate"),h.nI1(7,"uppercase"),h.k0s(),h.j41(8,"span",10),h.EFF(9),h.nI1(10,"translate"),h.nI1(11,"uppercase"),h.k0s()()()),2&ni){const Ee=h.XpG(2);h.R7$(),h.ZvI("font-header4 compact-text-spacing2 ",Ee.colors.gameEngineFps,""),h.R7$(),h.JRh(Ee.gameEngineFpsString),h.R7$(3),h.JRh(h.bMT(7,8,h.bMT(6,6,"statistics.FPS"))),h.R7$(4),h.JRh(h.bMT(11,12,h.bMT(10,10,Ee.gameEngine)))}}function N(ni,he){if(1&ni&&(h.j41(0,"div",3),h.nrm(1,"div",16),h.j41(2,"div",17)(3,"span",10),h.EFF(4),h.k0s()()()),2&ni){const Ee=h.XpG(2);h.R7$(3),h.AVh("font-sub3",Ee.rowLayout),h.R7$(),h.JRh(Ee.networkData.serverLoc)}}function se(ni,he){if(1&ni&&(h.j41(0,"span"),h.EFF(1),h.k0s()),2&ni){const Ee=h.XpG(4);h.ZvI("standard-post ",Ee.colors.vpnIndicator,""),h.R7$(),h.JRh(Ee.vpnString)}}function ce(ni,he){if(1&ni&&(h.j41(0,"div")(1,"span",19),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.j41(4,"div",20)(5,"span",21),h.EFF(6),h.nI1(7,"translate"),h.k0s(),h.j41(8,"div",22)(9,"span"),h.EFF(10),h.k0s(),h.DNE(11,se,2,4,"span",32),h.k0s()(),h.j41(12,"div",33)(13,"span",21),h.EFF(14),h.nI1(15,"translate"),h.k0s(),h.j41(16,"span",31),h.EFF(17),h.k0s()()()),2&ni){const Ee=h.XpG(3);h.R7$(2),h.JRh(h.bMT(3,9,"statistics.Subheader3")),h.R7$(4),h.JRh(h.bMT(7,11,"statistics.ConnectionType")),h.R7$(3),h.ZvI("standard-base ",Ee.colors.connectionType,""),h.R7$(),h.JRh(Ee.networkData.connectionType),h.R7$(),h.Y8G("ngIf",Ee.vpnPresent),h.R7$(3),h.JRh(h.bMT(15,13,"statistics.NetworkName")),h.R7$(3),h.JRh(Ee.ssid)}}function Z(ni,he){if(1&ni&&h.nrm(0,"img",34),2&ni){const Ee=h.XpG(3);h.Y8G("src",Ee.networkData.resolutionLabel,h.B4B)}}function de(ni,he){if(1&ni&&(h.j41(0,"div",30)(1,"span",21),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.j41(4,"span",31),h.EFF(5),h.nI1(6,"translate"),h.k0s()()),2&ni){const Ee=h.XpG(3);h.R7$(2),h.JRh(h.bMT(3,2,"settings.streamingProfiles.hdrStreaming")),h.R7$(3),h.JRh(h.bMT(6,4,Ee.networkData.hdrStreamingStatus))}}function ae(ni,he){if(1&ni&&(h.j41(0,"div",30)(1,"span",21),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.j41(4,"span",31),h.EFF(5),h.nI1(6,"translate"),h.k0s()()),2&ni){const Ee=h.XpG(3);h.R7$(2),h.JRh(h.bMT(3,2,"settings.streamingProfiles.codecName")),h.R7$(3),h.JRh(h.bMT(6,4,Ee.codecNameString))}}function pe(ni,he){if(1&ni&&(h.j41(0,"div",3)(1,"span",18),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.j41(4,"span",19),h.EFF(5),h.nI1(6,"translate"),h.k0s(),h.j41(7,"div",20)(8,"span",21),h.EFF(9),h.nI1(10,"translate"),h.k0s(),h.j41(11,"div",22)(12,"span"),h.EFF(13),h.k0s(),h.j41(14,"span"),h.EFF(15),h.nI1(16,"translate"),h.k0s()()(),h.j41(17,"div",23)(18,"span",21),h.EFF(19),h.nI1(20,"translate"),h.k0s(),h.j41(21,"div",22)(22,"span"),h.EFF(23),h.k0s(),h.j41(24,"span"),h.EFF(25),h.nI1(26,"translate"),h.k0s()()(),h.j41(27,"span",19),h.EFF(28),h.nI1(29,"translate"),h.k0s(),h.j41(30,"div",20)(31,"span",21),h.EFF(32),h.nI1(33,"translate"),h.k0s(),h.j41(34,"div",22)(35,"span"),h.EFF(36),h.k0s(),h.j41(37,"span"),h.EFF(38),h.nI1(39,"translate"),h.k0s()()(),h.j41(40,"div",23)(41,"span",21),h.EFF(42),h.nI1(43,"translate"),h.k0s(),h.j41(44,"div",22)(45,"span",24),h.EFF(46),h.k0s(),h.j41(47,"span",25),h.EFF(48),h.nI1(49,"translate"),h.k0s(),h.j41(50,"span",25),h.EFF(51),h.k0s()()(),h.DNE(52,ce,18,15,"div",26),h.nrm(53,"nv-divider"),h.j41(54,"span",27),h.EFF(55),h.nI1(56,"translate"),h.k0s(),h.j41(57,"div",20)(58,"span",21),h.EFF(59),h.nI1(60,"translate"),h.k0s(),h.j41(61,"div",22)(62,"span"),h.EFF(63),h.k0s(),h.DNE(64,Z,1,1,"img",28),h.k0s()(),h.DNE(65,de,7,6,"div",29)(66,ae,7,6,"div",29),h.j41(67,"div",30)(68,"span",21),h.EFF(69),h.nI1(70,"translate"),h.k0s(),h.j41(71,"span",31),h.EFF(72),h.k0s()()()),2&ni){const Ee=h.XpG(2);h.R7$(2),h.JRh(h.bMT(3,48,"statistics.Header1")),h.R7$(3),h.JRh(h.bMT(6,50,"statistics.Subheader1")),h.R7$(4),h.JRh(h.bMT(10,52,"statistics.FrameLoss")),h.R7$(3),h.ZvI("standard-base ",Ee.colors.frameLoss,""),h.R7$(),h.JRh(Ee.networkData.frameLoss),h.R7$(),h.ZvI("standard-post ",Ee.colors.frameLossTotal,""),h.R7$(),h.Lme("(",Ee.networkData.totalFrameLoss," ",h.bMT(16,54,"statistics.Total"),")"),h.R7$(4),h.JRh(h.bMT(20,56,"statistics.PacketLoss")),h.R7$(3),h.ZvI("standard-base ",Ee.colors.packetLoss2,""),h.R7$(),h.JRh(Ee.networkData.packetLoss),h.R7$(),h.ZvI("standard-post ",Ee.colors.packetLossTotal,""),h.R7$(),h.Lme("(",Ee.networkData.totalPacketLoss," ",h.bMT(26,58,"statistics.Total"),")"),h.R7$(3),h.JRh(h.bMT(29,60,"statistics.Subheader2")),h.R7$(4),h.JRh(h.bMT(33,62,"statistics.TotalAvailable")),h.R7$(3),h.ZvI("standard-base ",Ee.colors.totalAvailableBandwidth,""),h.R7$(),h.JRh(Ee.networkData.totalAvailableBandwidth),h.R7$(),h.ZvI("standard-post ",Ee.colors.totalAvailableBandwidth,""),h.R7$(),h.JRh(h.bMT(39,64,"statistics.Mbps")),h.R7$(4),h.JRh(h.bMT(43,66,"statistics.BandwidthUsed")),h.R7$(4),h.JRh(Ee.networkData.bandwidthUsed),h.R7$(2),h.JRh(h.bMT(49,68,"statistics.Mbps")),h.R7$(3),h.SpI("(",Ee.networkData.bandwidthPrecentage,"%)"),h.R7$(),h.Y8G("ngIf",Ee.isConnectionStatsAvailable),h.R7$(3),h.JRh(h.bMT(56,70,"statistics.Header2")),h.R7$(4),h.JRh(h.bMT(60,72,"statistics.Resolution")),h.R7$(3),h.ZvI("standard-wrap ",Ee.colors.resolution,""),h.R7$(),h.JRh(Ee.networkData.resolution),h.R7$(),h.Y8G("ngIf",Ee.networkData.resolutionLabel),h.R7$(),h.Y8G("ngIf",!!Ee.networkData.hdrStreamingStatus),h.R7$(),h.Y8G("ngIf",!!Ee.codecNameString),h.R7$(3),h.JRh(h.bMT(70,74,"statistics.ServerLocation")),h.R7$(3),h.JRh(Ee.networkData.serverLoc)}}function _e(ni,he){if(1&ni&&(h.j41(0,"div",2)(1,"div",3),h.DNE(2,xe,4,5,"div",4),h.j41(3,"div",5),h.DNE(4,ue,12,14,"div",6),h.j41(5,"div",7)(6,"span",8),h.EFF(7),h.k0s(),h.j41(8,"div",9)(9,"span",10),h.EFF(10),h.nI1(11,"translate"),h.nI1(12,"uppercase"),h.k0s(),h.j41(13,"span",10),h.EFF(14),h.nI1(15,"translate"),h.nI1(16,"uppercase"),h.k0s()()(),h.j41(17,"div",11)(18,"span",8),h.EFF(19),h.k0s(),h.j41(20,"div",9)(21,"span",10),h.EFF(22),h.nI1(23,"translate"),h.k0s(),h.j41(24,"span",10),h.EFF(25),h.nI1(26,"translate"),h.nI1(27,"uppercase"),h.k0s()()()(),h.DNE(28,N,5,3,"div",12)(29,pe,73,76,"div",12),h.k0s()()),2&ni){const Ee=h.XpG();h.R7$(2),h.Y8G("ngIf",!Ee.hideGpuName),h.R7$(),h.Y8G("fxLayout",Ee.rowLayout?"column":"row"),h.R7$(),h.Y8G("ngIf",Ee.isso12Enabled),h.R7$(2),h.ZvI("font-header4 compact-text-spacing2 ",Ee.colors.streamingFps1,""),h.R7$(),h.JRh(Ee.networkData.streamingFps),h.R7$(3),h.JRh(h.bMT(12,19,h.bMT(11,17,"statistics.FPS"))),h.R7$(4),h.JRh(h.bMT(16,23,h.bMT(15,21,"statistics.Stream"))),h.R7$(4),h.ZvI("font-header4 compact-text-spacing2 ",Ee.colors.roundTripDelay,""),h.R7$(),h.JRh(Ee.networkData.roundTripDelay),h.R7$(3),h.JRh(h.bMT(23,25,"statistics.Millisec")),h.R7$(3),h.JRh(h.bMT(27,29,h.bMT(26,27,"statistics.Ping"))),h.R7$(3),h.Y8G("ngIf",Ee.useSize===Ee.compact),h.R7$(),h.Y8G("ngIf",Ee.useSize===Ee.standard)}}let ke=(()=>{var ni;class he{constructor(Pe,Qe,Be,Mt,Vt,Vn,si,Rn,_i,wr,hr,Qr,Yr){this.injector=Pe,this.igoConfig=Qe,this.loggingService=Be,this.statisticsService=Mt,this.gfnInfoService=Vt,this.oscDisplayService=Vn,this.osdService=si,this.translateService=Rn,this.telemetryService=_i,this.experienceControlService=wr,this.domSanitizer=hr,this.featureSupportService=Qr,this.matIconRegistry=Yr,this.destroy$=new l.B7,this.statsState=i.BKk.Off,this.colors=void 0,this.useSize=i.QYS.standard,this.compact=i.QYS.compact,this.standard=i.QYS.standard,this.vpnText="",this.vpnString="",this.vpnPresent=!1,this.naText="",this.ssid="",this.statsStarted=0,this.isConnectionStatsAvailable=!g.zk.isBrowserPlatform(),this.gpuFriendlyName="",this.userVisibleGpuName="",this.hideGpuName=!0,this.isso12Enabled=!1,this.gameEngineFpsString="",this.rowLayout=!1,this.appConfig=null,this.uiOpen=!1,this.isGuestAppFlow=!1,this.showBitDepth=!1,this.changed=new h.bkB,this.logger=this.loggingService.getLogger("StatisticsOverlayComponent"),this.isGuestAppFlow=this.featureSupportService.isGuestAppFlowWrapper(),this.matIconRegistry.addSvgIcon("gpuBranding",this.domSanitizer.bypassSecurityTrustResourceUrl("./assets/img/geforce_mark.svg")),this.rowLayout=this.featureSupportService.issoLayoutPref()===te.C$e.Row}ngOnInit(){this.logger.info("init"),this.vpnText="("+this.translateService.instant("statistics.Vpn")+")",this.naText=this.translateService.instant("statistics.NotAvailable"),this.gameEngine=this.isGuestAppFlow?"statistics.AppEngine":"statistics.GameEngine"}ngAfterViewInit(){this.logger.info("ngAfterViewInit"),this.showBitDepth=this.gfnInfoService.checkIfBitDepthAvailable(),this.events=this.statisticsService.getStatisticsEvents().subscribe(Pe=>{if(this.logger.info("Got message: ",Pe),Pe.state===i.BKk.Standard&&this.statsState!==i.BKk.Standard)this.useSize=i.QYS.standard,this.handleUIEvent(Pe.state);else{if(Pe.state===i.BKk.Off&&this.statsState!==i.BKk.Off)return this.uiOpen&&(this.oscDisplayService.closeNonInteractiveOSC(),this.uiOpen=!1),this.statsState=Pe.state,this.changed.emit(),void this.overlayClosed();if(Pe.state===i.BKk.Compact&&this.statsState!==i.BKk.Compact)this.useSize=i.QYS.compact,this.handleUIEvent(Pe.state);else if(Pe.state===i.BKk.Off&&this.statsState===i.BKk.Off)return}this.osdService.setStatsSize(this.useSize),this.isso12Enabled=0!==Pe.data.gameEngineFps,this.gameEngineFpsString=Pe.data.gameEngineFps>999?"---":Pe.data.gameEngineFps.toString(),this.networkData=Pe.data,this.colors=Pe.colors,this.vpnString=Pe.data.isVpnOn?this.vpnText:"",this.vpnPresent=Pe.data.isVpnOn,this.ssid="Ethernet"===Pe.data.connectionType?this.naText:Pe.data.networkName,g.zk.isNativeLikePlatform()||(this.codecName=Pe.data?.streamingCodec),this.getCodecString(Pe.data?.bitDepth)}),this.appConfig||"GFN"!==this.igoConfig.branding||(this.appConfig=this.injector.get(te.Vk6),this.appConfig)?(this.gfnInfoService.getGpuName().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.gpuFriendlyName=Pe,""===Pe?(this.hideGpuName=!0,this.userVisibleGpuName=""):this.getGpuMappings()}),g.zk.isCefPlatform()&&this.gfnInfoService.getCodec().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.codecName=Pe?.codec})):this.logger.info("ERROR:: Failed to obtain appConfig")}ngOnDestroy(){this.statsState!==i.BKk.Off&&(this.statsState=i.BKk.Off,this.overlayClosed()),this.events&&(this.events.unsubscribe(),this.events=void 0),this.getCloudVarSub&&(this.getCloudVarSub.unsubscribe(),this.getCloudVarSub=void 0),this.destroy$.next(!0),this.destroy$.unsubscribe()}getCodecString(Pe){const Qe=this.codecName;if(this.showBitDepth&&Pe){let Be="";if(Qe===r.Or.Gfn.Streaming.Codec.AV1)Be="settings.streamingProfiles.codecAV1_bit";else if(Qe===r.Or.Gfn.Streaming.Codec.H264)Be="settings.streamingProfiles.codecH264_bit";else{if(Qe!==r.Or.Gfn.Streaming.Codec.H265)return void this.logger.error("Unsupported Codec Name received:",Qe);Be="settings.streamingProfiles.codecH265_bit"}this.translateService.get(Be,{bitDepth:Pe}).subscribe(Mt=>{this.codecNameString=Mt})}else Qe===r.Or.Gfn.Streaming.Codec.AV1?this.codecNameString="settings.streamingProfiles.codecAV1":Qe===r.Or.Gfn.Streaming.Codec.H264?this.codecNameString="settings.streamingProfiles.codecH264":Qe===r.Or.Gfn.Streaming.Codec.H265?this.codecNameString="settings.streamingProfiles.codecH265":this.logger.error("Unsupported Codec Name received:",Qe)}handleUIEvent(Pe){this.uiOpen||(this.oscDisplayService.openNonInteractiveOSC(),this.uiOpen=!0),this.statsStarted=Date.now(),this.statsState=Pe,this.openedPosition=this.getPosition(),this.changed.emit()}overlayClosed(){const Pe=Date.now()-this.statsStarted;this.telemetryService.sendStatsClosedTelemetry(Pe,this.openedPosition,this.useSize)}getPosition(){return this.osdService.getPosition(i.lb6.Statistics)}getDimensions(){return this.statsOverlay?this.statsOverlay.nativeElement.getBoundingClientRect():null}getGpuMappings(){this.getCloudVarSub=this.experienceControlService.getCloudVariable(this.appConfig.gxTarget.experiences.enableGpuNameMappingV2,{},{useCache:!0,useNetworkTimeoutForCacheFallback:!0},z.Ky.GxTargetGetCloudVariable,z.Id.Other).pipe((0,y.T)(Pe=>{Pe.value.enableGpuNameMapping&&this.findVisibleGpuName(Pe.value.gpuNameMap)}),(0,_.W)(Pe=>(this.logger.info("GxTargetGetFeatureEnabled fetch error",Pe),this.hideGpuName=!0,(0,p.of)(!0)))).subscribe()}findVisibleGpuName(Pe){const Qe=Pe.findIndex(Be=>Be.gpuName===this.gpuFriendlyName);Qe>=0&&(this.hideGpuName=!1,this.userVisibleGpuName=this.isGuestAppFlow?Pe[Qe].mappedGdnGpuName:Pe[Qe].mappedGpuName,this.logger.info("GPU VisibleName: ",this.userVisibleGpuName))}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(h.zZn),h.rXU(i.k$F),h.rXU(g.J6),h.rXU(i.rJX),h.rXU(i.x_y),h.rXU(i.Bqk),h.rXU(i.auo),h.rXU(X.c$),h.rXU(i.xRl),h.rXU(z.BW),h.rXU(re.up),h.rXU(i.Rvq),h.rXU(D.tp))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["nv-statistics-overlay"]],viewQuery:function(Pe,Qe){if(1&Pe&&h.GBs(oe,7),2&Pe){let Be;h.mGM(Be=h.lsd())&&(Qe.statsOverlay=Be.first)}},outputs:{changed:"changed"},decls:3,vars:3,consts:[["statsOverlay",""],["class","stat-window osd-general font-body2",4,"ngIf"],[1,"stat-window","osd-general","font-body2"],["fxLayout","column"],["class","gpu-window","fxLayout","row",4,"ngIf"],["fxLayoutAlign","space-between center",3,"fxLayout"],["class","compact-box box-space",4,"ngIf"],[1,"compact-box","box-space"],["fxFlexAlign","center"],[1,"compact-text-spacing1"],[1,"compact-text"],[1,"compact-box"],["fxLayout","column",4,"ngIf"],["fxLayout","row",1,"gpu-window"],["svgIcon","gpuBranding",1,"gpu-icon"],[1,"gpu-name"],[1,"nv-gap-8"],["fxFlex","","fxLayoutAlign","center center",1,"server-box"],[1,"font-header6","header-text","header-first"],[1,"font-sub2","subheader-text1","normal-color"],["fxLayout","row",1,"font-body2","standard-holder","margin-bottom-9"],["fxFlex","",1,"standard-label"],["fxLayoutAlign","end start",1,"standard-data"],["fxLayout","row",1,"font-body2","standard-holder","margin-bottom-12"],[1,"standard-base"],[1,"standard-post"],[4,"ngIf"],[1,"font-header6","header-text"],["class","resolution-label",3,"src",4,"ngIf"],["class","font-body2 standard-holder extra-bottom","fxLayout","row",4,"ngIf"],["fxLayout","row",1,"font-body2","standard-holder","extra-bottom"],[1,"standard-base","standard-data"],[3,"class",4,"ngIf"],["fxLayout","row",1,"font-body2","standard-holder"],[1,"resolution-label",3,"src"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div",null,0),h.DNE(2,_e,30,31,"div",1),h.k0s()),2&Pe&&(h.AVh("row-layout",Qe.rowLayout),h.R7$(2),h.Y8G("ngIf",0!==Qe.statsState))},dependencies:[A.bT,x.DJ,x.sA,x.R$,x.UI,D.An,ge.$,A.Pc,X.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.stat-window[_ngcontent-%COMP%]{background-color:#000;transform:scale(.8)}.isLtr[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%]{padding:16px}html[dir=ltr][_ngcontent-%COMP%] .stat-window[_ngcontent-%COMP%]{--dummy: 0;padding:16px}.isRtl[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%]{padding:16px}html[dir=rtl][_ngcontent-%COMP%] .stat-window[_ngcontent-%COMP%]{--dummy: 0;padding:16px}.gpu-window[_ngcontent-%COMP%]{margin-bottom:14px}.gpu-name[_ngcontent-%COMP%]{color:#fff}.isLtr[_nghost-%COMP%] .gpu-name[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .gpu-name[_ngcontent-%COMP%]{padding:1px 0 0 4px}html[dir=ltr][_ngcontent-%COMP%] .gpu-name[_ngcontent-%COMP%]{--dummy: 0;padding:1px 0 0 4px}.isRtl[_nghost-%COMP%] .gpu-name[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .gpu-name[_ngcontent-%COMP%]{padding:1px 4px 0 0}html[dir=rtl][_ngcontent-%COMP%] .gpu-name[_ngcontent-%COMP%]{--dummy: 0;padding:1px 4px 0 0}.gpu-icon[_ngcontent-%COMP%]{height:28px}.isLtr[_nghost-%COMP%] .box-space[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .box-space[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .box-space[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .box-space[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .box-space[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .box-space[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.compact-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:112px;background-color:#393939}.server-box[_ngcontent-%COMP%]{width:100%;height:24px;background-color:#393939}.compact-text[_ngcontent-%COMP%]{line-height:20px;font-size:12px;font-weight:700;color:#ffffffb3;text-align:center;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.isLtr[_nghost-%COMP%] .compact-text[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .compact-text[_ngcontent-%COMP%]{padding:0 8px}html[dir=ltr][_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%]{--dummy: 0;padding:0 8px}.isRtl[_nghost-%COMP%] .compact-text[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .compact-text[_ngcontent-%COMP%]{padding:0 8px}html[dir=rtl][_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%]{--dummy: 0;padding:0 8px}.compact-text-spacing1[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:0;margin-bottom:8px}.compact-text-spacing2[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:2px}.compact-text-empty[_ngcontent-%COMP%]{margin-bottom:20px}.header-first[_ngcontent-%COMP%]{margin-top:24px}.header-text[_ngcontent-%COMP%], .subheader-text1[_ngcontent-%COMP%]{margin-bottom:12px}.standard-holder[_ngcontent-%COMP%]{line-height:24px}.standard-holder.margin-bottom-9[_ngcontent-%COMP%]{margin-bottom:9px}.standard-holder.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.standard-label[_ngcontent-%COMP%]{width:150px}.isLtr[_nghost-%COMP%] .standard-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-label[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .standard-label[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .standard-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-label[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .standard-label[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.standard-data[_ngcontent-%COMP%]{width:185px}.isLtr[_nghost-%COMP%] .standard-data[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-data[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .standard-data[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .standard-data[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-data[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .standard-data[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.standard-base[_ngcontent-%COMP%], .standard-post[_ngcontent-%COMP%], .standard-wrap[_ngcontent-%COMP%]{font-weight:500}.isLtr[_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .standard-wrap[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-wrap[_ngcontent-%COMP%]{text-align:right}html[dir=ltr][_ngcontent-%COMP%] .standard-base[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .standard-wrap[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.isRtl[_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .standard-wrap[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-wrap[_ngcontent-%COMP%]{text-align:left}html[dir=rtl][_ngcontent-%COMP%] .standard-base[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .standard-wrap[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.standard-wrap[_ngcontent-%COMP%]{white-space:nowrap}.isLtr[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{padding-left:3px}html[dir=ltr][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy1: 0;padding-left:3px}.isRtl[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{padding-right:3px}html[dir=rtl][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy1: 0;padding-right:3px}.extra-bottom[_ngcontent-%COMP%]{margin-bottom:8px}.resolution-label[_ngcontent-%COMP%]{margin-top:5px;height:14px}.isLtr[_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%]{margin-left:7px}html[dir=ltr][_ngcontent-%COMP%] .resolution-label[_ngcontent-%COMP%]{--dummy3: 0;margin-left:7px}.isRtl[_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%]{margin-right:7px}html[dir=rtl][_ngcontent-%COMP%] .resolution-label[_ngcontent-%COMP%]{--dummy3: 0;margin-right:7px}.separator[_ngcontent-%COMP%]{font-weight:500}.isLtr[_nghost-%COMP%] .separator[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .separator[_ngcontent-%COMP%]{padding-left:3px}html[dir=ltr][_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{--dummy1: 0;padding-left:3px}.isRtl[_nghost-%COMP%] .separator[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .separator[_ngcontent-%COMP%]{padding-right:3px}html[dir=rtl][_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{--dummy1: 0;padding-right:3px}.isLtr[_nghost-%COMP%] .separator[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .separator[_ngcontent-%COMP%]{padding-right:3px}html[dir=ltr][_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{--dummy2: 0;padding-right:3px}.isRtl[_nghost-%COMP%] .separator[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .separator[_ngcontent-%COMP%]{padding-left:3px}html[dir=rtl][_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{--dummy2: 0;padding-left:3px}.bright-color[_ngcontent-%COMP%]{color:#fff}.normal-color[_ngcontent-%COMP%]{color:#ffffffb3}.warning-color[_ngcontent-%COMP%]{color:#ffb43e}.error-color[_ngcontent-%COMP%]{color:#e02828}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%]{width:576px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:48px;height:48px;width:48px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{width:100%}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%]{line-height:32px;font-size:24px}.tv-view[_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .standard-holder[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stat-window[_ngcontent-%COMP%] .standard-holder[_ngcontent-%COMP%]{line-height:38px}.row-layout[_ngcontent-%COMP%] .stat-window[_ngcontent-%COMP%]{background-color:#000000bf;width:200px;margin:0;padding:4px}.row-layout[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%]{margin-bottom:3px;align-items:center}.row-layout[_ngcontent-%COMP%] .gpu-window[_ngcontent-%COMP%] .gpu-icon[_ngcontent-%COMP%]{height:16px}.row-layout[_ngcontent-%COMP%] .gpu-name[_ngcontent-%COMP%]{padding:0}.row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{width:-webkit-fill-available;width:-moz-available;width:stretch;align-items:center;margin:1px 0;background:#636363;height:28px;flex-direction:row}.isLtr[_nghost-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{padding:0 4px 0 8px}html[dir=ltr][_ngcontent-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{--dummy: 0;padding:0 4px 0 8px}.isRtl[_nghost-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{padding:0 8px 0 4px}html[dir=rtl][_ngcontent-%COMP%] .row-layout[_ngcontent-%COMP%] .compact-box[_ngcontent-%COMP%]{--dummy: 0;padding:0 8px 0 4px}.row-layout[_ngcontent-%COMP%] .compact-text-spacing1[_ngcontent-%COMP%]{margin:0;align-items:center;flex-grow:1;justify-content:space-between;flex-direction:row}.row-layout[_ngcontent-%COMP%] .compact-text-spacing2[_ngcontent-%COMP%]{line-height:16px;font-size:16px;margin:0}.row-layout[_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%]{font-size:12px;line-height:16px;font-weight:400}.row-layout[_ngcontent-%COMP%] .server-box[_ngcontent-%COMP%]{background-color:unset;margin-bottom:4px}.row-layout[_ngcontent-%COMP%] .server-box[_ngcontent-%COMP%] .compact-text[_ngcontent-%COMP%]{font-weight:500}"]}),he})();var De=d(31315),Me=d(53461),je=d(28139);const $e=["networkStatusIndicator"],Oe=(ni,he)=>({"icon-warning":ni,"icon-error":he});function gt(ni,he){if(1&ni&&(h.j41(0,"div",2)(1,"div",3),h.nrm(2,"mat-icon",4),h.k0s()()),2&ni){const Ee=h.XpG();h.R7$(2),h.Y8G("ngClass",h.l_i(1,Oe,Ee.iconWarning,Ee.iconAlert))}}let qt=(()=>{var ni;class he{constructor(Pe,Qe){this.gfnInfoService=Pe,this.showAny=!0,this.iconWarning=!1,this.iconAlert=!1,this.viewInit=!1,this.changed=new h.bkB,this.logger=Qe.getLogger("NetworkStatusComponent"),this.setup()}setup(){if(!this.viewInit)return;const Pe=this.gfnInfoService.getNetworkWarningsEnabledState(),Qe=this.gfnInfoService.getNetworkState();this.networkStateSub=(0,De.zV)([Pe,Qe]).pipe((0,Me.F)()).subscribe(([Be,Mt])=>{this.showAny=Be&&Mt!==i.$0i.NORMAL,this.iconWarning=Mt===i.$0i.WARNING,this.iconAlert=Mt===i.$0i.ALERT,this.changed.emit()})}ngAfterViewInit(){this.viewInit=!0,setTimeout(()=>this.setup(),0)}ngOnDestroy(){this.networkStateSub?.unsubscribe()}getDimensions(){return this.networkStatusIndicator?this.networkStatusIndicator.nativeElement.getBoundingClientRect():null}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(i.x_y),h.rXU(g.J6))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["nv-network-status"]],viewQuery:function(Pe,Qe){if(1&Pe&&h.GBs($e,7),2&Pe){let Be;h.mGM(Be=h.lsd())&&(Qe.networkStatusIndicator=Be.first)}},outputs:{changed:"changed"},decls:3,vars:1,consts:[["networkStatusIndicator",""],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxLayout","row","fxLayoutAlign","center center",1,"osd-general","osd-status-image"],["svgIcon","network_signal",3,"ngClass"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div",null,0),h.DNE(2,gt,3,4,"div",1),h.k0s()),2&Pe&&(h.R7$(2),h.Y8G("ngIf",Qe.showAny))},dependencies:[A.YU,A.bT,x.DJ,x.sA,je.PW,D.An],styles:[".osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.osd-status-image[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#000c}.osd-status-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{line-height:18px;font-size:18px;height:18px;width:18px}"]}),he})();const ye=["perfOverlay"],Re=(ni,he)=>({"perf-overlay-container":ni,"perf-overlay-container-enhanced":he}),Ze=ni=>({"metric-row":ni}),et=ni=>({"metric-stacked":ni}),xt=ni=>({padding:ni});function un(ni,he){if(1&ni&&(h.j41(0,"span",11),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ni){const Ee=h.XpG(2).$implicit,Pe=h.XpG(3);h.Y8G("ngStyle",Pe.metricNameStyle),h.R7$(),h.JRh(h.bMT(2,2,Pe.getCategoryName(Ee)))}}function ct(ni,he){if(1&ni&&(h.j41(0,"span",11),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ni){const Ee=h.XpG(2).$implicit,Pe=h.XpG(5);h.Y8G("ngStyle",Pe.metricNameStyle),h.R7$(),h.JRh(h.bMT(2,2,Pe.getMetricName(Ee)))}}function Gt(ni,he){if(1&ni&&(h.j41(0,"span",18),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ni){const Ee=h.XpG(2).$implicit;h.R7$(),h.SpI("\xa0",h.bMT(2,1,Ee.unit),"")}}function pn(ni,he){if(1&ni&&(h.j41(0,"div",14),h.DNE(1,ct,3,4,"span",8),h.j41(2,"div",15)(3,"span",16),h.EFF(4),h.k0s(),h.DNE(5,Gt,3,3,"span",17),h.k0s()()),2&ni){const Ee=h.XpG().$implicit,Pe=h.XpG(5);h.R7$(),h.Y8G("ngIf",Pe.showMetricName()),h.R7$(),h.Y8G("ngStyle",Pe.metricInfoStyle),h.R7$(),h.Y8G("ngStyle",h.eq3(5,xt,Pe.isFpsOnlyView?"0 0 0 4px":null)),h.R7$(),h.JRh(Ee.value),h.R7$(),h.Y8G("ngIf",!Ee.isUnitHidden)}}function st(ni,he){if(1&ni&&(h.j41(0,"div",12),h.DNE(1,pn,6,7,"div",13),h.k0s()),2&ni){const Ee=he.$implicit,Pe=h.XpG(5);h.Y8G("ngClass",h.eq3(2,et,Pe.showMetricName())),h.R7$(),h.Y8G("ngIf",Ee.visible)}}function mn(ni,he){if(1&ni&&(h.j41(0,"div",7),h.DNE(1,un,3,4,"span",8)(2,st,2,4,"div",9),h.nrm(3,"div",10),h.k0s()),2&ni){const Ee=h.XpG().$implicit,Pe=h.XpG(3);h.R7$(),h.Y8G("ngIf",Pe.showCategoryName()),h.R7$(),h.Y8G("ngForOf",Ee)}}function Bn(ni,he){if(1&ni&&(h.j41(0,"div"),h.DNE(1,mn,4,2,"div",6),h.k0s()),2&ni){const Ee=he.$implicit,Pe=h.XpG(3);h.R7$(),h.Y8G("ngIf",Pe.showCategory(Ee))}}function En(ni,he){if(1&ni&&(h.j41(0,"div",5),h.DNE(1,Bn,2,1,"div",3),h.k0s()),2&ni){const Ee=h.XpG(),Pe=Ee.$implicit;h.Y8G("ngClass",h.eq3(2,Ze,!Ee.first)),h.R7$(),h.Y8G("ngForOf",Pe)}}function Cn(ni,he){if(1&ni&&(h.qex(0),h.DNE(1,En,2,4,"div",4),h.bVm()),2&ni){const Ee=he.index,Pe=h.XpG();h.R7$(),h.Y8G("ngIf",Pe.showRow(Ee))}}let yn=(()=>{var ni;class he{constructor(Pe,Qe){this.loggingService=Pe,this.perfMonService=Qe,this.destroy$=new l.B7,this.activeMetrics=[],this.throttleDuration=500,this.metricRows=[],this.isEnhancedMode=!1,this.isStackedLayout=!1,this.isRLAEnabled=!1,this.isFpsOnlyView=!1,this.created=new h.bkB,this.logger=this.loggingService.getLogger("PerformanceOverlayComponent"),this.logger.info("constructor")}ngAfterContentInit(){this.logger.info("ngAfterViewInit"),this.updateAndFormatMetricSet(),this.perfMonService.getActiveLayout(),this.created.emit()}ngOnInit(){this.logger.info("ngOnInit"),this.perfMonService.listenVisibilityChanges().pipe((0,v.Q)(this.destroy$)).subscribe(()=>{this.updateAndFormatMetricSet()})}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.destroy$.next(!0),this.destroy$.unsubscribe()}showDivider(Pe,Qe,Be){return!(this.isStackedLayout||this.metricSet.id===i.NpC.FPS||!Qe?.length||Pe.length===Be+1||0===Pe[Be+1].filter(Mt=>Mt.visible).length)&&(Qe[0]?.category!==i.TEj.FPS||Qe[0]?.visible)}showMetricName(){return this.isStackedLayout&&this.metricSet.id!==i.NpC.FPS}getMetricName(Pe){return this.activeLayout===i.pwE.Stacked?Pe.shortName:Pe.name}showCategoryName(){return!this.isStackedLayout&&this.metricSet.id!==i.NpC.FPS}getCategoryName(Pe){const Qe=Pe.filter(Be=>Be.visible);return Qe.length>0?i.f1P[Qe[0].category].shortName:""}showCategory(Pe){return Pe.filter(Be=>Be.visible).length>0}showRow(Pe){return!this.isStackedLayout||this.metricRows[Pe][0][0]?.visible}showRowMargin(Pe){return!this.isStackedLayout||this.metricRows[Pe][0][0]?.visible}getDimensions(){this.logger.info("getDimensions");const Pe=this.perfOverlayComponent?this.perfOverlayComponent.nativeElement.getBoundingClientRect():null;if(Pe){Pe.width=Math.round(Pe.width)+26,Pe.x=Math.round(Pe.x);const Qe=this.getOverlayLogicalWidth();Pe.x=Pe.x-Math.round(Pe.x/Qe*26),Pe.x<0&&(Pe.x=0),Pe.x+Pe.width>Qe&&(Pe.x=Qe-Pe.width)}return Pe}getOverlayLogicalWidth(){const Pe=this.perfMonService.getCurrentDisplayMode();let Qe;if(Pe&&Pe.width&&Pe.height){const Vt=Math.min(Pe.height/1080,Pe.width/1920);Qe=Pe.width/Vt}else Qe=1920;return this.logger.info("overlayLogicalWidth:",Qe),Qe}groupMetricCategories(Pe){const Qe=[];return Object.values(i.TEj).filter(Mt=>!isNaN(Number(Mt))).forEach(Mt=>{const Vt=Pe.filter(Vn=>Vn.category===Mt);Qe.push(Vt)}),Qe}updateAndFormatMetricSet(){this.logger.info("updateAndFormatMetricSet");const Pe=this.perfMonService.getMetricSet();this.metricSet=i.oXh.find(Be=>Be.id===Pe);const Qe=this.perfMonService.getPerfData(0);switch(this.activeMetrics=[],this.metricSet?.metrics.forEach(Be=>{const Mt=Qe?.find(Vt=>Vt.metricId===Be);Mt&&(Pe!==i.NpC.Custom||Mt.isCustomSelected)&&(this.perfMonService.updateMetricVisibility(Mt),this.activeMetrics.push(Mt))}),this.logger.info("activeView:",this.metricSet.id),this.isFpsOnlyView=this.metricSet.id===i.NpC.FPS,this.metricRows=[],this.activeLayout=this.perfMonService.getActiveLayout(),this.logger.info("activeLayout:",this.activeLayout),this.isStackedLayout=this.activeLayout===i.pwE.Stacked,this.activeLayout){case i.pwE.Linear:const Be=this.groupMetricCategories(this.activeMetrics);this.metricRows.push(Be);break;case i.pwE.Double:const Mt=this.groupMetricCategories(this.activeMetrics);this.metricSet.id===i.NpC.FPS?this.metricRows.push([Mt[0]]):(this.metricRows.push(Mt.splice(0,2)),this.metricRows.push(Mt.splice(-2)));break;case i.pwE.Stacked:this.activeMetrics.forEach(Vt=>{const Vn=[];Vn.push([Vt]),this.metricRows.push(Vn)})}this.isEnhancedMode=this.perfMonService.getOverlayFontSize()===i.si$.Large}get metricInfoStyle(){return{"min-width":this.isFpsOnlyView?"0":null,color:5===this.perfMonService?.getOverlayFontColor()?this.perfMonService?.getOverlayCustomFontColor():i.Bni[this.perfMonService?.getOverlayFontColor()]}}get metricNameStyle(){return{color:5===this.perfMonService?.getOverlayFontColor()?this.perfMonService?.getOverlayCustomFontColor():i.Bni[this.perfMonService?.getOverlayFontColor()]}}get backgroundOpacityStyle(){return{"background-color":"rgba(0, 0, 0, "+(this.perfMonService.getOverlayBackgroundOpacity()/100).toString()+")"}}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(g.J6),h.rXU(i.zET))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["nv-performance-overlay"]],viewQuery:function(Pe,Qe){if(1&Pe&&h.GBs(ye,7),2&Pe){let Be;h.mGM(Be=h.lsd())&&(Qe.perfOverlayComponent=Be.first)}},outputs:{created:"created"},decls:4,vars:6,consts:[["perfOverlay",""],["fxLayout","column",1,"osd-general"],[3,"ngClass","ngStyle"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",3,"ngClass",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end"],["class","metric-name",3,"ngStyle",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"nv-horizontal-gap-4"],[1,"metric-name",3,"ngStyle"],[3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","row","fxLayoutAlign","center center",1,"metric-info",3,"ngStyle"],[1,"metric-value",3,"ngStyle"],["class","metric-unit",4,"ngIf"],[1,"metric-unit"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div",1,0)(2,"div",2),h.DNE(3,Cn,2,1,"ng-container",3),h.k0s()()),2&Pe&&(h.R7$(2),h.Y8G("ngClass",h.l_i(3,Re,Qe.activeMetrics.length>0,Qe.isEnhancedMode))("ngStyle",Qe.backgroundOpacityStyle),h.R7$(),h.Y8G("ngForOf",Qe.metricRows))},dependencies:[A.YU,A.Sq,A.bT,A.B3,x.DJ,x.sA,je.PW,je.eI,X.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.osd-general[_ngcontent-%COMP%]{opacity:.9}.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top left}.isLtr.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-topleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top center}.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-top:5px;transform-origin:top right}.isLtr.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-topright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center right}.isLtr.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-centerright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom left}.isLtr.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-bottomleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-bottomcenter[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomcenter [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom center}.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-bottom:5px;transform-origin:bottom right}.isLtr.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=ltr] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:5px}.isRtl.osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=rtl] .osd-bottomright[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:5px}.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{transform-origin:center left}.isLtr.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isLtr .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isLtr [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-left:5px}html[dir=ltr] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-left:5px}.isRtl.osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl.osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .isRtl .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft .isRtl [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{margin-right:5px}html[dir=rtl] .osd-centerleft[_nghost-%COMP%] .osd-general[_ngcontent-%COMP%], .osd-centerleft [_nghost-%COMP%] .osd-general[_ngcontent-%COMP%]{--dummy3: 0;margin-right:5px}.osd-topright[_nghost-%COMP%], .osd-topright [_nghost-%COMP%], .osd-bottomright[_nghost-%COMP%], .osd-bottomright [_nghost-%COMP%], .osd-centerright[_nghost-%COMP%], .osd-centerright [_nghost-%COMP%], .osd-topright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-topright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-centerright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright [_nghost-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse}.perf-overlay-container[_ngcontent-%COMP%]{padding:10px}.metric-row[_ngcontent-%COMP%]{margin-top:10px}.metric-name[_ngcontent-%COMP%]{font-size:14px;line-height:14px;font-weight:400;max-width:120px}.metric-info[_ngcontent-%COMP%]{min-width:34px}.metric-value[_ngcontent-%COMP%]{font-size:14px;line-height:14px;font-weight:700}.isLtr[_nghost-%COMP%] .metric-value[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .metric-value[_ngcontent-%COMP%]{padding:0 0 0 6px}html[dir=ltr][_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{--dummy: 0;padding:0 0 0 6px}.isRtl[_nghost-%COMP%] .metric-value[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .metric-value[_ngcontent-%COMP%]{padding:0 6px 0 0}html[dir=rtl][_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{--dummy: 0;padding:0 6px 0 0}.metric-unit[_ngcontent-%COMP%]{font-size:12px;line-height:12px;font-weight:700}.metric-category[_ngcontent-%COMP%]{width:100%}.divider[_ngcontent-%COMP%]{border-left:1px solid white;height:100%}.isLtr[_nghost-%COMP%] .divider[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .divider[_ngcontent-%COMP%]{margin:0 10px}html[dir=ltr][_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{--dummy: 0;margin:0 10px}.isRtl[_nghost-%COMP%] .divider[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .divider[_ngcontent-%COMP%]{margin:0 10px}html[dir=rtl][_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{--dummy: 0;margin:0 10px}.metric-stacked[_ngcontent-%COMP%]{width:188px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .perf-overlay-container[_ngcontent-%COMP%]{padding:15px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-info[_ngcontent-%COMP%]{min-width:51px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:21px;line-height:21px}.isLtr[_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{padding:0 0 0 9px}html[dir=ltr][_ngcontent-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{--dummy: 0;padding:0 0 0 9px}.isRtl[_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{padding:0 9px 0 0}html[dir=rtl][_ngcontent-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{--dummy: 0;padding:0 9px 0 0}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-name[_ngcontent-%COMP%]{max-width:175px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-row[_ngcontent-%COMP%]{margin-top:15px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-unit[_ngcontent-%COMP%]{font-size:18px;line-height:18px}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{border-left:1.5px solid white}.perf-overlay-container-enhanced[_ngcontent-%COMP%] .metric-stacked[_ngcontent-%COMP%]{width:282px}"]}),he})();function Xn(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div",8)(1,"div",6)(2,"div")(3,"nv-performance-overlay",9),h.bIt("created",function(){h.eBV(Ee);const Qe=h.XpG().$implicit,Be=h.XpG();return h.Njj(Be.onPerfOverlayComponentCreated(Qe.value))})("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("Performance"))}),h.k0s()()()()}if(2&ni){const Ee=h.XpG().$implicit;h.Mz_("id","perfOverlayDiv",Ee.key,""),h.Y8G("ngClass",Ee.value)}}function rn(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div")(1,"nv-shadowplay-status",10),h.bIt("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("PerfLogging"))}),h.k0s()()}}function ai(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div")(1,"nv-shadowplay-status",11),h.bIt("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("Recording"))}),h.k0s()()}}function ri(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div")(1,"nv-shadowplay-status",12),h.bIt("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("IR"))}),h.k0s()()}}function Ne(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div")(1,"nv-shadowplay-status",13),h.bIt("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("Highlights"))}),h.k0s()()}}function zt(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div")(1,"nv-shadowplay-status",14),h.bIt("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("Mic"))}),h.k0s()()}}function vt(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div")(1,"nv-microphone-status",15),h.bIt("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("GfnMic"))}),h.k0s()()}}function Ct(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div")(1,"nv-network-status",15),h.bIt("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("Network"))}),h.k0s()()}}function it(ni,he){if(1&ni){const Ee=h.RV6();h.j41(0,"div")(1,"nv-statistics-overlay",15),h.bIt("changed",function(){h.eBV(Ee);const Qe=h.XpG(2);return h.Njj(Qe.updateVisibility("Statistics"))}),h.k0s()()}}function Ut(ni,he){if(1&ni&&(h.j41(0,"div",2),h.DNE(1,Xn,4,3,"div",3),h.j41(2,"div",4)(3,"div",5)(4,"div",6),h.DNE(5,rn,2,0,"div",7),h.k0s(),h.j41(6,"div",6),h.DNE(7,ai,2,0,"div",7),h.k0s(),h.j41(8,"div",6),h.DNE(9,ri,2,0,"div",7),h.k0s(),h.j41(10,"div",6),h.DNE(11,Ne,2,0,"div",7),h.k0s(),h.j41(12,"div",6),h.DNE(13,zt,2,0,"div",7),h.k0s(),h.j41(14,"div",6),h.DNE(15,vt,2,0,"div",7),h.k0s(),h.j41(16,"div",6),h.DNE(17,Ct,2,0,"div",7),h.k0s()(),h.j41(18,"div",6),h.DNE(19,it,2,0,"div",7),h.k0s()()()),2&ni){const Ee=he.$implicit,Pe=h.XpG();h.Y8G("ngClass",Pe.productClass),h.R7$(),h.Y8G("ngIf",Pe.isPerfOverlayVisible(Ee.key)),h.R7$(),h.Y8G("ngClass",Ee.value),h.R7$(3),h.Y8G("ngIf",Pe.visibility.PerfLogging===Ee.key),h.R7$(2),h.Y8G("ngIf",Pe.visibility.Recording===Ee.key),h.R7$(2),h.Y8G("ngIf",Pe.visibility.IR===Ee.key),h.R7$(2),h.Y8G("ngIf",Pe.visibility.Highlights===Ee.key),h.R7$(2),h.Y8G("ngIf",Pe.isMicEnabled&&Pe.visibility.Mic===Ee.key),h.R7$(2),h.Y8G("ngIf",Pe.isGfnMicEnabled&&Pe.visibility.GfnMic===Ee.key),h.R7$(2),h.Y8G("ngIf",Pe.visibility.Network===Ee.key),h.R7$(2),h.Y8G("ngIf",Pe.visibility.Statistics===Ee.key)}}let jn=(()=>{var ni;class he{constructor(Pe,Qe,Be,Mt,Vt,Vn,si){this.injector=Pe,this.loggingService=Qe,this.oscDisplayService=Be,this.osdService=Mt,this.featureSupportService=Vt,this.renderer=Vn,this.shadowPlayService=si,this.destroy$=new l.B7,this.isGFN=!0,this.isMicEnabled=!1,this.isGfnMicEnabled=!1,this.micSwitchState=i.YQZ.off,this.presentMic=!1,this.productClass="",this.visibility={Recording:i.VHt.none,IR:i.VHt.none,Highlights:i.VHt.none,Mic:i.VHt.none,ViewerCount:i.VHt.none,Comments:i.VHt.none,GfnMic:i.VHt.none,Statistics:i.VHt.none,Network:i.VHt.none,Performance:i.VHt.none,PerfLogging:i.VHt.none},this.quadrants={leftTop:"osd-topleft",centerTop:"osd-topcenter",rightTop:"osd-topright",leftCenter:"osd-centerleft",rightCenter:"osd-centerright",leftBottom:"osd-bottomleft",centerBottom:"osd-bottomcenter",rightBottom:"osd-bottomright"},this.anythingVisible=!1,this.logger=this.loggingService.getLogger("OsdComponent"),this.productClass=this.featureSupportService.isGFEMode()?"osd-container-nvapp":"osd-container-gfn",this.featureSupportService.isGFEMode()&&(this.perfMonService=this.injector.get(i.zET),this.isGFN=!1)}ngAfterContentInit(){setTimeout(()=>{this.updatePositions(),this.updateVisibility()},10),this.listener=this.osdService.listenChanges().subscribe(()=>{setTimeout(()=>{this.updatePositions(),this.updateVisibility()},0)}),this.featureSupportService.isGFEMode()&&(this.perfOverlayCoordinatesListner=this.perfMonService?.listenPerfOverlayCoordinateChanges().subscribe(()=>{setTimeout(()=>{this.updatePerfOverlayCoordinates(!0)},50)}))}ngOnInit(){this.gfnMicEnableSub=this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,V.s)(1)).subscribe(Pe=>this.isGfnMicEnabled=Pe),this.featureSupportService.isGFEMode()&&(this.isMicAvailable(),this.setupMic(),this.shadowPlayService.getMICDeviceState().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{(Pe===i.gXb.plugged_in||Pe===i.gXb.plugged_out)&&Pe===i.gXb.plugged_in&&(this.setupMic(),this.micSwitchState===i.YQZ.on&&(this.isMicEnabled=!0)),this.isMicAvailable()}),this.shadowPlayService.getMICState().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.micSwitchState=Pe,this.isMicEnabled=!(Pe!==i.YQZ.on||!this.presentMic)}),this.shadowPlayService.micPttHotkeyPressed().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.micSwitchState===i.YQZ.ptt&&this.presentMic&&(this.isMicEnabled=Pe)}),this.oscDisplayService.registerForcedDisplayRectUpdate().pipe((0,v.Q)(this.destroy$)).subscribe(()=>this.updateRects()))}onPerfOverlayComponentCreated(Pe){const Qe=this.indicatorDisribution(),Be=this.visibility[i.lb6.Performance];Be in Qe&&Qe[Be]>0?(this.logger.info("Quadrant changed and overlapping ",Pe,Be),this.updatePerfOverlayCoordinates()):(this.logger.info("Quadrant changed and no overlapping ",Pe,Be),this.updatePerfOverlayCoordinates())}setupMic(){this.shadowPlayService.getMicMode().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.micSwitchState=Pe,this.isMicEnabled=Pe===i.YQZ.on,Pe===i.YQZ.ptt&&(this.presentMic=!0)})}isMicAvailable(){this.shadowPlayService.getMicrophoneData().pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{-1===Pe.index?(this.isMicEnabled=!1,this.presentMic=!1):this.presentMic=!0})}indicatorDisribution(){const Pe={};return this.statusShadowplayChildren.forEach(Qe=>{if(Qe.showAny){const Be=this.visibility[Qe.mode];Pe[Be]=Be in Pe?Pe[Be]+1:1}}),Pe}detectIndicator(Pe){(0,p.of)(1).subscribe(()=>{this.logger.info("Received inidcator update notification ",Pe),this.statusShadowplayChildren.find(Be=>Be.mode===Pe).showAny?this.logger.info("Displaying indicator ",Pe," In Quadrant ",this.visibility[Pe]):this.logger.info("Hiding indicator ",Pe),this.updatePerfOverlayCoordinates()})}getCoordinateLimits(Pe=1){const Qe=window.innerWidth;let Be=0;Be=this.perfMonService.getVisibilityMode()===i.Vq5.Enhanced?this.perfMonService.getActiveLayout()===i.pwE.Double||this.perfMonService.getActiveLayout()===i.pwE.Linear?i.Q20:i.Zt_:this.perfMonService.getActiveLayout()===i.pwE.Double||this.perfMonService.getActiveLayout()===i.pwE.Linear?i.Lxc:i.K_i;const Vn=window.innerHeight;return{upperPercentX:(Qe-Be)/Qe*100,lowerPercentX:Be/Qe*100,upperPercentY:(Vn-i.EMD*Pe)/Vn*100,lowerPercentY:i.EMD*Pe/Vn*100}}quadrantCalculation(Pe,Qe){let Be,Mt;const Vt=this.indicatorDisribution();if(Pe>50&&Qe>50)Be=i.VHt.rightBottom;else if(Pe>50&&Qe<50)Be=i.VHt.rightTop;else if(Pe<50&&Qe>50)Be=i.VHt.leftBottom;else{if(!(Pe<50&&Qe<50))return{quadrant:i.VHt.none,xLim:null};Be=i.VHt.leftTop}return Be in Vt&&Vt[Be]>0?(Mt=this.getCoordinateLimits(Vt[Be]),Be===i.VHt.rightTop&&Pe>=Mt.upperPercentX&&Qe<=Mt.lowerPercentY?{quadrant:i.VHt.rightTop,xLim:Mt.upperPercentX}:Be===i.VHt.rightBottom&&Pe>=Mt.upperPercentX&&Qe>=Mt.upperPercentY?{quadrant:i.VHt.rightBottom,xLim:Mt.upperPercentX}:Be===i.VHt.leftTop&&Pe<=Mt.lowerPercentX&&Qe<=Mt.lowerPercentY?{quadrant:i.VHt.leftTop,xLim:Mt.lowerPercentX}:Be===i.VHt.leftBottom&&Pe<=Mt.lowerPercentX&&Qe>=Mt.upperPercentY?{quadrant:i.VHt.leftBottom,xLim:Mt.lowerPercentX}:{quadrant:i.VHt.none,xLim:null}):{quadrant:i.VHt.none,xLim:null}}checkIfBarCanBeScrolled(Pe,Qe){return this.quadrantCalculation(Pe,Qe).xLim}updatePerfOverlayCoordinates(Pe=!1){if(!this.featureSupportService.isGFEMode())return;const Qe={x:-1,y:-1},Be=this.perfMonService?.getPerfOverlayAbsolutePosition(null);if(!Be)return;Qe.y=Be.y;const Mt=Be.x,Vt=this.checkIfBarCanBeScrolled(Mt,Qe.y);if(Qe.x=Vt||Mt,!Qe||(-1===Qe.x||101===Qe.x)&&(-1===Qe.y||101===Qe.y)||50===Qe.x&&(-1===Qe.y||101===Qe.y)||50===Qe.y&&(-1===Qe.x||101===Qe.x))return;const Vn=this.visibility[i.lb6.Performance];this.logger.info("updatePerfOverlayCoordinates:",Qe,"perfOverlayDiv"+Vn);const si=document.getElementById("perfOverlayDiv"+Vn);if(si){const Rn=Qe.x.toString()+"%",_i="unset",wr=Qe.y.toString()+"%",hr="unset",Qr="translate(-"+Qe.x+"%,-"+Qe.y+"%)";this.renderer.setStyle(si,"left",Rn),this.renderer.setStyle(si,"top",wr),this.renderer.setStyle(si,"right",_i),this.renderer.setStyle(si,"bottom",hr),this.renderer.setStyle(si,"transform",Qr),this.logger.info("updatePerfOverlayCoordinates updated")}Pe&&this.updateRects()}updatePositions(){Object.keys(this.visibility).forEach(Pe=>{this.visibility[Pe]=this.osdService.getPosition(i.lb6[Pe])})}updateRects(){const Pe=[];this.statusShadowplayChildren.forEach(Qe=>{Qe.showAny&&Pe.push(Qe.getDimensions())}),this.statusMicrophoneChild?.showAny&&Pe.push(this.statusMicrophoneChild.getDimensions()),this.featureSupportService.isGFEMode()?this.performanceOverlayChild&&Pe.push(this.performanceOverlayChild.getDimensions()):this.statisticsOverlayChild?.statsState!==i.BKk.Off&&Pe.push(this.statisticsOverlayChild.getDimensions()),this.statusNetworkChild?.showAny&&Pe.push(this.statusNetworkChild.getDimensions()),this.oscDisplayService.setOSDDisplayRectangles(Pe)}updateVisibility(Pe=null){this.isGFN||(this.logger.info("updateVisibility ",Pe),Pe&&this.detectIndicator(Pe));const Qe=this.anythingVisible;let Be=!1;this.statusShadowplayChildren.forEach(Mt=>{Mt.showAny&&(Be=!0)}),this.statusMicrophoneChild?.showAny&&(Be=!0),this.featureSupportService.isGFEMode()?this.performanceOverlayChild&&(Be=!0):this.statisticsOverlayChild?.statsState!==i.BKk.Off&&(Be=!0),this.statusNetworkChild?.showAny&&(Be=!0),this.anythingVisible=Be,setTimeout(()=>{this.updateRects(),Qe!==this.anythingVisible&&(this.anythingVisible?this.oscDisplayService.openNonInteractiveOSC():this.oscDisplayService.closeNonInteractiveOSC())},0)}isPerfOverlayVisible(Pe){return!!this.featureSupportService.isPerfOverlayEnabled()&&this.visibility.Performance===Pe&&this.perfMonService?.getPerfOverlayVisiblity()&&this.perfMonService.getFpsMetricVisible()}ngOnDestroy(){this.listener.unsubscribe(),this.perfOverlayCoordinatesListner?.unsubscribe(),this.gfnMicEnableSub?.unsubscribe(),this.destroy$.next(!0),this.destroy$.complete()}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(h.zZn),h.rXU(g.J6),h.rXU(i.Bqk),h.rXU(i.auo),h.rXU(i.Rvq),h.rXU(h.sFG),h.rXU(i.W1J))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["nv-osd"]],viewQuery:function(Pe,Qe){if(1&Pe&&(h.GBs(J,5),h.GBs(ke,5),h.GBs(qt,5),h.GBs(yn,5),h.GBs(R,5)),2&Pe){let Be;h.mGM(Be=h.lsd())&&(Qe.statusMicrophoneChild=Be.first),h.mGM(Be=h.lsd())&&(Qe.statisticsOverlayChild=Be.first),h.mGM(Be=h.lsd())&&(Qe.statusNetworkChild=Be.first),h.mGM(Be=h.lsd())&&(Qe.performanceOverlayChild=Be.first),h.mGM(Be=h.lsd())&&(Qe.statusShadowplayChildren=Be)}},decls:3,vars:4,consts:[[3,"hidden"],["class","osd-container",3,"ngClass",4,"ngFor","ngForOf"],[1,"osd-container",3,"ngClass"],["fxLayout","row",3,"id","ngClass",4,"ngIf"],["fxLayout","row",3,"ngClass"],["fxLayout","column","fxFlex","none",1,"osd-column"],["fxLayout","row","fxFlex","none"],[4,"ngIf"],["fxLayout","row",3,"id","ngClass"],[3,"created","changed"],["mode","PerfLogging",3,"changed"],["mode","Recording",3,"changed"],["mode","IR",3,"changed"],["mode","Highlights",3,"changed"],["mode","Mic",3,"changed"],[3,"changed"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div",0),h.DNE(1,Ut,20,11,"div",1),h.nI1(2,"keyvalue"),h.k0s()),2&Pe&&(h.Y8G("hidden",!Qe.anythingVisible),h.R7$(),h.Y8G("ngForOf",h.bMT(2,2,Qe.quadrants)))},dependencies:[A.YU,A.Sq,A.bT,x.DJ,x.UI,je.PW,R,J,ke,qt,yn,A.lG],styles:[".osd-container[_ngcontent-%COMP%]{position:fixed;left:0;right:0;max-width:100%;pointer-events:none;z-index:0}.osd-container-nvapp[_ngcontent-%COMP%]{margin:11px;height:calc(100vh - 22px)}.osd-container-gfn[_ngcontent-%COMP%]{margin:24px 0;height:calc(100vh - 48px)}.perf-overlay[_ngcontent-%COMP%]{top:25%!important;right:0!important}.osd-topleft[_ngcontent-%COMP%]{left:0;top:0;position:absolute;transform-origin:left top}.osd-topright[_ngcontent-%COMP%]{right:env(safe-area-inset-right);top:0;position:absolute;transform-origin:right top}.osd-topcenter[_ngcontent-%COMP%]{right:50%;top:0;position:absolute;transform:translate(50%);transform-origin:center top}.osd-centerright[_ngcontent-%COMP%]{right:0;top:50%;position:absolute;transform:translateY(-50%);transform-origin:right center}.osd-centerleft[_ngcontent-%COMP%]{left:0;top:50%;position:absolute;transform:translateY(-50%);transform-origin:left center}.osd-bottomleft[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute;transform-origin:left bottom}.osd-bottomleft[_ngcontent-%COMP%] > .osd-column[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.osd-bottomright[_ngcontent-%COMP%]{right:0;bottom:0;position:absolute;transform-origin:right bottom}.osd-bottomright[_ngcontent-%COMP%] > .osd-column[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.osd-bottomcenter[_ngcontent-%COMP%]{right:50%;bottom:0;position:absolute;transform:translate(50%);transform-origin:center bottom}.osd-bottomcenter[_ngcontent-%COMP%] > .osd-column[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.osd-topright[_ngcontent-%COMP%], .osd-bottomright[_ngcontent-%COMP%], .osd-bottomcenter[_ngcontent-%COMP%], .osd-topright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .osd-bottomright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:row-reverse!important}.isRtl[_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomright[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomright[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-topright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] .osd-bottomcenter[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:row!important}.isRtl[_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomleft[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomleft[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-topleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-centerleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .osd-bottomleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .osd-bottomleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:row-reverse!important}"]}),he})();var wn=d(16421),nt=d(93455),on=d(36877),mt=d(16229),_n=d(27731),wt=d(72147),Un=d(8619),Oi=d(10174),At=d(99047),Hn=d(23860),pi=d(16485),Zi=d(61876),Lr=d(93012);let Kr=(()=>{var ni;class he{constructor(){this.hint="",this.svgIcon=""}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)},ni.\u0275cmp=h.VBU({type:ni,selectors:[["igo-gamepad-control-hint"]],inputs:{hint:"hint",svgIcon:"svgIcon"},decls:5,vars:4,consts:[["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"hint-container"],[3,"svgIcon"],[1,"hint-bar"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div",0),h.nrm(1,"mat-icon",1),h.j41(2,"span",2),h.EFF(3),h.nI1(4,"translate"),h.k0s()()),2&Pe&&(h.R7$(),h.Y8G("svgIcon",Qe.svgIcon),h.R7$(2),h.JRh(h.bMT(4,2,Qe.hint)))},dependencies:[D.An,x.DJ,x.sA,x.UI,X.D9],styles:[".hint-container[_ngcontent-%COMP%]{height:48px}.hint-container[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;flex:1 0 48px;z-index:1}.hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%]{width:100%;font-size:24px;line-height:48px;background-color:#191919cc;white-space:nowrap;position:relative}.isLtr[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%]{padding:0 24px 0 48px}html[dir=ltr][_ngcontent-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%]{--dummy: 0;padding:0 24px 0 48px}.isRtl[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%]{padding:0 48px 0 24px}html[dir=rtl][_ngcontent-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%]{--dummy: 0;padding:0 48px 0 24px}.isLtr[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%]{transform:translate(-24px)}.isRtl[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .hint-bar[_ngcontent-%COMP%]{transform:translate(24px)}"]}),he})();const Qt=["textInput"];function di(ni,he){if(1&ni&&h.nrm(0,"igo-gamepad-control-hint",5),2&ni){const Ee=h.XpG(2);h.Y8G("hint",Ee.toggleHint)("svgIcon",Ee.toggleIcon)}}function ji(ni,he){if(1&ni&&h.nrm(0,"igo-gamepad-control-hint",5),2&ni){const Ee=h.XpG(2);h.Y8G("hint",Ee.clientImeHint)("svgIcon",Ee.clientImeIcon)}}function vi(ni,he){if(1&ni&&h.nrm(0,"igo-gamepad-control-hint",5),2&ni){const Ee=h.XpG(2);h.Y8G("hint",Ee.mouseHint)("svgIcon",Ee.mouseIcon)}}function Zt(ni,he){if(1&ni&&h.nrm(0,"igo-gamepad-control-hint",5),2&ni){const Ee=h.XpG(2);h.Y8G("hint",Ee.textVisibilityHint)("svgIcon",Ee.textVisibilityIcon)}}function Zn(ni,he){if(1&ni&&(h.j41(0,"div",3)(1,"div",4),h.nrm(2,"igo-gamepad-control-hint",5),h.DNE(3,di,1,2,"igo-gamepad-control-hint",6)(4,ji,1,2,"igo-gamepad-control-hint",6)(5,vi,1,2,"igo-gamepad-control-hint",6)(6,Zt,1,2,"igo-gamepad-control-hint",6),h.k0s()()),2&ni){const Ee=h.XpG();h.R7$(2),h.Y8G("hint",Ee.escapeHint)("svgIcon",Ee.escapeIcon),h.R7$(),h.Y8G("ngIf",Ee.isDefaultMode),h.R7$(),h.Y8G("ngIf",Ee.isClientImeEnabled),h.R7$(),h.Y8G("ngIf",Ee.isJoystickEnabled),h.R7$(),h.Y8G("ngIf",Ee.isClientImeMode)}}var Dn=function(ni){return ni.Default="Default",ni.ClientIme="ClientIme",ni}(Dn||{}),zn=function(ni){return ni.B="B",ni.Y="Y",ni.X="X",ni.RT="RT",ni.RS="RS",ni.LS="LS",ni}(zn||{});let Ti=(()=>{var ni;class he{get nvKeyboardOpened(){return!!this.nvKeyboardRef}get keyboardOpened(){return this.systemKeyboardOpened||this.nvKeyboardOpened}get isClientImeMode(){return this.currentMode===Dn.ClientIme}get isDefaultMode(){return this.currentMode===Dn.Default}constructor(Pe,Qe,Be,Mt,Vt,Vn,si,Rn,_i,wr,hr){this.loggingService=Pe,this.ngZone=Qe,this.clientInputService=Be,this.bridgeService=Mt,this.gamepadService=Vt,this.oscNotificationService=Vn,this.systemInfoService=si,this.spatialNavigationService=Rn,this.nvKeyboardService=_i,this.featureSupportService=wr,this.gamepadNavigationService=hr,this.controlHintVisible=!1,this.isJoystickEnabled=!0,this.isClientImeEnabled=!1,this.currentMode=Dn.Default,this.logger=Pe.getLogger("IGOInputControlComponent"),this.destroy$=new l.B7,this.escapeHint="clientInput.CloseHint",this.toggleHint="clientInput.HideKeyboardHint",this.clientImeHint="clientInput.NativeKeyboardInputHint",this.mouseHint="clientInput.MouseHint",this.textVisibilityHint="clientInput.HideImeInputTextHint",this.nvKeyboardSupported=this.featureSupportService.isNvKeyboardSupported(),this.isClientImeEnabled=this.featureSupportService.isClientImeEnabled()}ngOnInit(){this.clientInputService.imeInputTextVisible$.pipe((0,v.Q)(this.destroy$)).subscribe(Pe=>{this.imeInputTextVisible=Pe,this.updateToggleHint()}),this.clientInputService.imeOpened$.pipe((0,Me.F)(),(0,v.Q)(this.destroy$)).subscribe(Pe=>{this.switchInputMode(Pe?Dn.ClientIme:Dn.Default)}),this.nvKeyboardSupported?(this.osrHandler=new pi.fz(this.loggingService,this.bridgeService,"nvKeyboard",this.spatialNavigationService,this.gamepadNavigationService),this.escapeIcon="gamepad_blue_b",this.toggleIcon="gamepad_blue_y",this.clientImeIcon="gamepad_blue_rt",this.mouseIcon="gamepad_blue_rs"):(this.escapeIcon="gamepad_b_hint",this.toggleIcon="gamepad_y_hint",this.clientImeIcon="gamepad_rt_hint",this.mouseIcon=this.featureSupportService.isGamepadLSControlUsed()?"gamepad_ls_hint":"gamepad_rs_hint"),this.textVisibilityIcon="gamepad_blue_x"}ngAfterViewInit(){this.systemInfoService.getDeviceOSType().pipe((0,V.s)(1),(0,wt.n)(Rn=>(0,De.zV)([(0,p.of)(Rn),Rn===g.t_.XBox?(0,p.of)(!1):this.clientInputService.systemKeyboardState$])),(0,v.Q)(this.destroy$)).subscribe(([Rn,_i])=>{this.isXboxOs=Rn===g.t_.XBox,this.systemKeyboardOpened=_i,this.updateToggleHint(),this.featureSupportService.showOnscreenKeyboardUsageNotification()&&this.systemKeyboardOpened&&!this.isUsagePresented&&(this.oscNotificationService.show(Hn.Ed.OnscreenKeyboardUsage),this.isUsagePresented=!0),this.featureSupportService.shouldBlurInputOnSoftKeyboardDismissal()&&!this.systemKeyboardOpened&&document.activeElement===this.inputElement?.nativeElement&&this.inputElement.nativeElement.blur()});const Pe=this.gamepadService.rightStickMoved$.pipe((0,Un.p)(Rn=>!0===Rn),(0,Oi.u)(zn.RS)),Qe=this.gamepadService.onButtonPressed$(wn.dt.RightTrigger).pipe((0,Un.p)(Rn=>!0===Rn),(0,Oi.u)(zn.RT)),Be=this.gamepadService.onButtonPressed$(wn.dt.Y).pipe((0,Un.p)(Rn=>!0===Rn),(0,Oi.u)(zn.Y)),Mt=this.gamepadService.onButtonPressed$(wn.dt.X).pipe((0,Un.p)(Rn=>!0===Rn),(0,Oi.u)(zn.X)),Vt=this.gamepadService.onButtonPressed$(wn.dt.B).pipe((0,Un.p)(Rn=>!0===Rn),(0,Oi.u)(zn.B)),Vn=this.ngZone.runOutsideAngular(()=>(0,on.R)(document,"keydown").pipe((0,Un.p)(Rn=>"Escape"===Rn.key),(0,Oi.u)(zn.B))),si=(0,mt.h)(Pe,Qe,Be,Mt,Vt,Vn).pipe((0,v.Q)(this.clientInputService.inputControlUIClosed$));this.clientInputService.inputControlUIClosed$.pipe((0,v.Q)(this.destroy$)).subscribe(()=>{this.showInputUI(!1)}),this.clientInputService.inputControlUIOpened$.pipe((0,P.ZZ)(()=>(this.showInputUI(!0),this.inputControlHintsEnabled?si:_n.t)),(0,v.Q)(this.destroy$)).subscribe(Rn=>{switch(Rn){case zn.RS:this.isDefaultMode&&this.keyboardOpened&&this.toggleKeyboard(!1);break;case zn.RT:this.isClientImeMode?this.clientInputService.controlImeInput(nt.ac.Send):this.nvKeyboardOpened?(this.nvKeyboardRef.afterDismissed().pipe((0,V.s)(1),(0,v.Q)(this.destroy$)).subscribe(()=>{this.clientInputService.initImeInput(nt.vy.Igo)}),this.nvKeyboardRef.dismiss()):this.clientInputService.initImeInput(nt.vy.Igo);break;case zn.Y:this.isDefaultMode&&this.toggleKeyboard(!this.keyboardOpened,!0);break;case zn.X:this.isClientImeMode&&this.clientInputService.controlImeInput(nt.ac.ToggleTextVisibility);break;case zn.B:this.isDefaultMode&&(this.keyboardOpened?this.toggleKeyboard(!1):this.clientInputService.toggleInputUI(!1))}})}openNvKeyboard(){this.nvKeyboardRef=this.nvKeyboardService.open(),this.switchInputMode(Dn.Default),(0,mt.h)(this.nvKeyboardRef.afterOpened().pipe((0,V.s)(1),(0,Oi.u)(!0)),this.nvKeyboardRef.afterDismissed().pipe((0,V.s)(1),(0,Oi.u)(!1))).pipe((0,S.M)(Pe=>{Pe?this.openOsr():(this.closeOsr(),this.nvKeyboardRef=void 0,this.updateToggleHint())}),(0,wt.n)(Pe=>this.nvKeyboardService.onInput$.pipe((0,At.$)(Qe=>"keyup"===Qe.type&&"Escape"===Qe.key))),(0,v.Q)(this.destroy$)).subscribe(Pe=>{this.nvKeyboardOpened&&(this.activateNvKeyboard(!1),Pe.stopPropagation())})}activateNvKeyboard(Pe){Pe&&!this.nvKeyboardOpened?this.openNvKeyboard():!Pe&&this.nvKeyboardOpened&&this.nvKeyboardRef.dismiss()}showInputUI(Pe){this.controlHintVisible=this.inputControlHintsEnabled&&Pe,this.toggleKeyboard(Pe),this.enableJoystickMouse(this.inputControlHintsEnabled&&Pe)}switchInputMode(Pe){this.controlHintVisible&&(this.currentMode=Pe,this.isClientImeMode?(this.escapeHint="clientInput.CancelHint",this.clientImeHint="clientInput.SendHint",this.enableJoystickMouse(!1)):(this.escapeHint="clientInput.CloseHint",this.clientImeHint="clientInput.NativeKeyboardInputHint",this.enableJoystickMouse(!0)),this.updateToggleHint())}enableJoystickMouse(Pe){this.isJoystickEnabled=Pe,this.bridgeService.executeCommand(r.Ts.Gfn.Streaming.ToggleJoystickMouse,{enable:Pe}).pipe((0,V.s)(1),(0,v.Q)(this.destroy$)).subscribe()}toggleSystemKeyboardForXbox(Pe,Qe=!1){Qe?(this.inputElement?.nativeElement.blur(),this.inputElement?.nativeElement.focus(),this.logger.info("Force open virtual keyboard on Xbox.")):this.toggleSystemKeyboard(Pe)}toggleKeyboard(Pe,Qe=!1){this.nvKeyboardSupported?this.activateNvKeyboard(Pe):this.isXboxOs?this.toggleSystemKeyboardForXbox(Pe,Qe):this.toggleSystemKeyboard(Pe)}toggleSystemKeyboard(Pe){const Qe=this.inputElement?.nativeElement;Qe&&(Pe?Qe.focus():Qe.blur())}updateToggleHint(){this.isDefaultMode?this.toggleHint=this.keyboardOpened?this.systemKeyboardOpened&&this.nvKeyboardSupported?"clientInput.AppKeyboardHint":"clientInput.HideKeyboardHint":"clientInput.ShowKeyboardHint":this.isClientImeMode&&(this.textVisibilityHint=this.imeInputTextVisible?"clientInput.HideImeInputTextHint":"clientInput.ShowImeInputTextHint")}openOsr(){this.osrHandler.open(!0).pipe((0,V.s)(1)).subscribe(Pe=>{this.logger.info("Opened osr with state "+Pe)},Pe=>{this.logger.error("Received error when opening osr: ",Pe)})}closeOsr(){this.osrHandler.close().pipe((0,V.s)(1)).subscribe(Pe=>{this.logger.info("Closed osr, state after close: "+Pe)},Pe=>{this.logger.error("Received error when closing osr: ",Pe)})}ngOnDestroy(){this.nvKeyboardRef?.dismiss(),this.destroy$.next(!0),this.destroy$.complete()}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(g.J6),h.rXU(h.SKi),h.rXU(i.$jZ),h.rXU(g.NZ),h.rXU(wn.bi),h.rXU(Hn.mb),h.rXU(g.zW),h.rXU(Zi.ED),h.rXU(Lr.RF),h.rXU(i.Rvq),h.rXU(te.$vj))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["igo-input-control"]],viewQuery:function(Pe,Qe){if(1&Pe&&h.GBs(Qt,5),2&Pe){let Be;h.mGM(Be=h.lsd())&&(Qe.inputElement=Be.first)}},inputs:{inputControlHintsEnabled:"inputControlHintsEnabled"},decls:3,vars:1,consts:[["textInput",""],["autocomplete","off","autocorrect","off","autocapitalize","off","type","text","id","hiddentext","tabIndex","-1",1,"hidden-text-input"],["class","input-control",4,"ngIf"],[1,"input-control"],["fxFlex","","fxLayout","column","fxLayoutGap","24px",1,"icon-hint-container"],[3,"hint","svgIcon"],[3,"hint","svgIcon",4,"ngIf"]],template:function(Pe,Qe){1&Pe&&(h.nrm(0,"input",1,0),h.DNE(2,Zn,7,6,"div",2)),2&Pe&&(h.R7$(2),h.Y8G("ngIf",Qe.controlHintVisible))},dependencies:[A.bT,x.DJ,x.BO,x.UI,Kr],styles:[".hidden-text-input[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:50px;opacity:0;pointer-events:none;caret-color:transparent;font-size:24em}.input-control[_ngcontent-%COMP%]{position:absolute;top:64px}.isLtr[_nghost-%COMP%] .input-control[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .input-control[_ngcontent-%COMP%]{left:64px}.isRtl[_nghost-%COMP%] .input-control[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .input-control[_ngcontent-%COMP%]{right:64px}"]}),he})();var Xt=d(892),xn=d(26875);const mi=[{id:i.EdA.OpenShare,icon:"nvidia_symbol",iconColor:"icon-preview notifier-icon-large",iconBackground:"icon-green-bg",message:"notification.OpenShare",alternateNotificationData:{alternativeMessage1:"notification.OpenShareGamepad",alternativeMessage2:"notification.guestApp.OpenShare",alternativeMessage3:"notification.guestApp.OpenShareBasic",alternativeIcon:"info",alternativeIconClass:"notifier-icon-setting"}},{id:i.EdA.OpenShareNvApp,icon:"nvidia_symbol",iconColor:"icon-preview notifier-icon-large",iconBackground:"icon-green-bg",message:"notification.OpenShareNvApp",alternateNotificationData:{alternativeMessage1:"notification.OpenShareGamepadNvApp",alternativeMessage2:"notification.guestApp.OpenShare",alternativeIcon:"info",alternativeIconClass:"notifier-icon-setting"}},{id:i.EdA.PerfMonLogging,icon:"nvidia_symbol",iconColor:"icon-preview notifier-icon-large",iconBackground:"icon-green-bg",message:"notification.PerfMonLogging"},{id:i.EdA.PerfMonRectAlignmentWarning,icon:"alert_circle",iconColor:"icon-normal",message:"settings.RLARectangle"},{id:i.EdA.PerfMonRfiWarning,icon:"audio",iconColor:"icon-normal",message:"settings.RLAIndicator"},{id:i.EdA.InstantReplayStarted,icon:"replay",iconColor:"icon-highlighted",message:"notification.InstantReplayStarted"},{id:i.EdA.InstantReplayStopped,icon:"replay",iconColor:"icon-normal",message:"notification.InstantReplayStopped"},{id:i.EdA.InstantReplaySaving,icon:"replay",iconColor:"icon-highlighted",message:"notification.InstantReplaySaving"},{id:i.EdA.InstantReplaySaved,icon:"replay",iconColor:"icon-highlighted",message:"notification.InstantReplaySaved"},{id:i.EdA.RecordStarted,icon:"record",iconColor:"icon-highlighted",message:"notification.ManualRecordStarted"},{id:i.EdA.RecordSaving,icon:"record",iconColor:"icon-normal",message:"notification.ManualRecordSaving"},{id:i.EdA.RecordStopped,icon:"record",iconColor:"icon-normal",message:"notification.ManualRecordStopped"},{id:i.EdA.ScreenshotSaved,icon:"gallery",iconColor:"icon-normal",message:"notification.ScreenshotSaved"},{id:i.EdA.PhotographicScreenshotSavedToGallery,icon:"gallery",iconColor:"icon-normal",message:"notification.PhotographicScreenshotSavedToGallery"},{id:i.EdA.WarningFullscreenGameRequired,icon:"warning",iconColor:"icon-warning",message:"notification.WarningFullscreenGameRequired"},{id:i.EdA.WarningRecordingStopToCustomize,icon:"warning",iconColor:"icon-warning",message:"notification.WarningStopRecordingToCustomize"},{id:i.EdA.WarningHighlightsStopToCustomize,icon:"warning",iconColor:"icon-warning",message:"notification.WarningStopHighlightsToCustomize"},{id:i.EdA.WarningRecordingStopToUseFeature,icon:"warning",iconColor:"icon-warning",message:"notification.WarningStopRecording"},{id:i.EdA.WarningInstantReplayStopToUseFeature,icon:"warning",iconColor:"icon-warning",message:"notification.WarningStopInstantReplay"},{id:i.EdA.WarningSupportedGameRequired,icon:"alert_circle",iconColor:"icon-normal",message:"notification.WarningGameRequired"},{id:i.EdA.WarningNvidiaGpuRequired,icon:"warning",iconColor:"icon-warning",message:"notification.WarningNvidiaGpuRequired"},{id:i.EdA.HighlightsSaved,icon:"highlights",iconColor:"icon-normal",message:"notification.HighlightsSaved"},{id:i.EdA.FailedToRemove,icon:"warning",iconColor:"icon-warning",message:"notification.FailedToRemove"},{id:i.EdA.GalleryIsFull,icon:"warning",iconColor:"icon-warning",message:"notification.GalleryIsFull"},{id:i.EdA.DiskSpaceIsLow,icon:"warning",iconColor:"icon-warning",message:"notification.DiskSpaceIsLow"},{id:i.EdA.NoSpaceCaptureNotSaved,icon:"warning",iconColor:"icon-warning",message:"notification.NoSpaceCaptureNotSaved"},{id:i.EdA.NoSpaceCaptureNotStarted,icon:"warning",iconColor:"icon-warning",message:"notification.NoSpaceCaptureNotStarted"},{id:i.EdA.ErrorRestartGame,icon:"warning",iconColor:"icon-warning",message:"notification.ErrorRestartGame"},{id:i.EdA.PhotoModeNotAllowedNvApp,icon:"alert_circle",iconColor:"icon-normal",message:"notification.PhotoModeNotAllowed"},{id:i.EdA.PhotoModeNotAllowed,icon:"warning",iconColor:"icon-warning",message:"notification.PhotoModeNotAllowed"},{id:i.EdA.CustomOverlaySlotEmpty,icon:"warning",iconColor:"icon-warning",message:"notification.CustomOverlaySlotEmpty"},{id:i.EdA.ManualRecordRunning,icon:"warning",iconColor:"icon-warning",message:"notification.ManualRecordRunning"},{id:i.EdA.ConnectingToGfnBroadcast,icon:"broadcast",iconColor:"icon-highlighted",message:"notification.ConnectingTo"},{id:i.EdA.ConnectedToGfnBroadcast,icon:"check",iconColor:"icon-highlighted",message:"notification.ConnectedTo"},{id:i.EdA.FailedToConnectGfnBroadcast,icon:"warning",iconColor:"icon-warning",message:"notification.FailedConnect"},{id:i.EdA.DisconnectedFromGfnBroadcast,icon:"close",iconColor:"icon-highlighted",message:"notification.DisconnectedFrom"},{id:i.EdA.NetworkSpottyConnection,icon:"network_signal",iconColor:"icon-warning",message:"notification.network.spottyConnection"},{id:i.EdA.NetworkBadConnection,icon:"network_signal",iconColor:"icon-error",message:"notification.network.badNetworkMessage",alternateNotificationData:{alternativeMessage1:"notification.network.badNetworkMessageShort",alternativeMessage2:"notification.network.guestApp.badNetworkMessage"}},{id:i.EdA.OnscreenKeyboardUsage,icon:"remote",iconColor:"icon-normal",message:"notification.OnscreenKeyboardUsage"},{id:i.EdA.HDRErrorHighlight,icon:"warning",iconColor:"icon-warning",message:"notification.HDRErrorHighlight"},{id:i.EdA.HDRErrorRecord,icon:"warning",iconColor:"icon-warning",message:"notification.HDRErrorRecord"},{id:i.EdA.HDRErrorScreenshot,icon:"warning",iconColor:"icon-warning",message:"notification.HDRErrorScreenshot"},{id:i.EdA.ProtectedContentWarning,icon:"alert_circle",iconColor:"icon-normal",message:"notification.ProtectedContentApp"}],$n=(ni,he)=>({"notifier-black-rtxhdr":ni,"notifier-black-nativehdr":he});function Pt(ni,he){if(1&ni&&h.nrm(0,"img",6),2&ni){const Ee=h.XpG();h.Y8G("src",Ee.notifierIconPath,h.B4B)}}function Ii(ni,he){if(1&ni&&h.nrm(0,"mat-icon",7),2&ni){const Ee=h.XpG();h.ZvI("mat-icon notifier-icon ",Ee.notifierIconColor,""),h.Y8G("svgIcon",Ee.notifierIcon)}}let ar=(()=>{var ni;class he{constructor(Pe,Qe,Be,Mt,Vt,Vn,si,Rn,_i){this.loggingService=Pe,this.oscDisplayService=Qe,this.oscNotificationService=Be,this.el=Mt,this.renderer=Vt,this.translateService=Vn,this.featureSupportService=Rn,this.igoConfig=_i,this.isOpen=!1,this.doFlip=!1,this.flipToMessage="",this.flipToIcon="",this.flipToIconColor="",this.flipToIconBackground="",this.flipToIconPath="",this.countDown=0,this.notifierMessage="",this.notifierIconPath="",this.notifierIcon="",this.notifierIconColor="",this.notifierIconBackground="",this.countDownStart=5,this.isRTLLayout=!1,this.tvMode=!1,this.rtxHdrMode=!1,this.nativeHdrMode=!1,this.logger=this.loggingService.getLogger("NvOscNotifierComponent"),this.isRTLLayout=si.isRTLLayoutEnabled,this.tvMode=this.featureSupportService.isTVMode()}ngAfterViewInit(){this.renderer.addClass(this.el.nativeElement,"notifier-slider"),this.igoConfig.GFNCefClient||this.oscDisplayService.isDisplayStateCheckComplete().pipe((0,Un.p)(Boolean),(0,V.s)(1)).subscribe(()=>{this.rtxHdrMode=this.oscDisplayService.getRtxHdrEnable(),this.nativeHdrMode=!this.rtxHdrMode&&this.oscDisplayService.getNativeHdrEnable()}),this.events=this.oscNotificationService.getOscEvents().subscribe(Pe=>{const{thumb:Qe,...Be}=Pe;this.logger.info("got message: ",Be),this.oscDisplayService.getIsUIAllowed()&&(Pe.selection===i.EdA.Empty?this.close():this.setupNotifier(Pe))})}ngOnDestroy(){this.events.unsubscribe()}changeClass(Pe){"tall"===Pe?(this.renderer.removeClass(this.el.nativeElement,"notifier-large"),this.renderer.addClass(this.el.nativeElement,"notifier-tall")):"large"===Pe?(this.renderer.removeClass(this.el.nativeElement,"notifier-tall"),this.renderer.addClass(this.el.nativeElement,"notifier-large")):"small"===Pe&&(this.renderer.removeClass(this.el.nativeElement,"notifier-tall"),this.renderer.removeClass(this.el.nativeElement,"notifier-large"))}getWidthOfText(Pe,Qe,Be){return this.renderer.createElement("canvas").getContext("2d").measureText(Pe).width}close(){this.isOpen=!1,this.renderer.removeClass(this.el.nativeElement,"notifier-flip"),this.renderer.removeClass(this.el.nativeElement,this.isRTLLayout?"notifier-open-rtl":"notifier-open"),setTimeout(()=>{this.oscDisplayService.setNotificationStop(),this.oscDisplayService.closeNonInteractiveOSC()},1e3)}flip(){this.renderer.addClass(this.el.nativeElement,"notifier-flip")}open(Pe=!1){this.isOpen=!0;const Qe=this.tvMode?592:330,Mt=this.tvMode?"28px":"18px";DOMRect.fromRect({x:1920-Qe,y:90,width:Qe,height:this.tvMode?309:240}),this.oscDisplayService.setNotificationStart(),this.oscDisplayService.openNonInteractiveOSC();const Vn=this.getWidthOfText(this.notifierMessage,"NVIDIA",Mt);this.changeClass(Vn>(this.tvMode?500:525)?"tall":Vn>(this.tvMode?250:270)?"large":"small"),this.renderer.addClass(this.el.nativeElement,this.isRTLLayout?"notifier-open-rtl":"notifier-open");const _i=(0,Xt.Y)(1e3).subscribe(()=>{if(this.countDown<0&&this.doFlip){this.countDown=Pe?2*this.countDownStart:this.countDownStart,this.flip(),this.doFlip=!1;const wr=(0,Xt.Y)(250).subscribe(()=>{this.notifierIcon=this.flipToIcon,this.notifierIconColor=this.flipToIconColor,this.notifierIconBackground=this.flipToIconBackground,this.notifierIconPath=this.flipToIconPath,this.notifierMessage=this.flipToMessage,wr.unsubscribe()})}else this.countDown<0?(this.countDown=0,this.close(),_i.unsubscribe()):this.countDown--})}setupNotifier(Pe){const Qe=(0,xn.find)(mi,Vn=>Vn.id===Pe.selection);let Be=Pe.arg1;(0,xn.isString)(Be)&&""!==Be&&(Be=this.translateService.instant(Be,{}));let Mt=Pe.arg2;(0,xn.isString)(Mt)&&""!==Mt&&(Mt=this.translateService.instant(Mt,{})),""!==Pe.thumb&&(Qe.img=Pe.thumb,Qe.icon="");const Vt=this.translateService.instant(this.pickAlternateMessages(Pe.alternateNotificationData.useAlternativeMessage,Qe),{arg1:Be,arg2:Mt});if(Pe.flip)this.flipToIcon=Pe.alternateNotificationData?.useAlternativeIcon?Qe.alternateNotificationData.alternativeIcon:Qe.icon||"",this.flipToIconColor=Pe.alternateNotificationData?.useAlternativeIcon?Qe.alternateNotificationData.alternativeIconClass:Qe.iconColor||"",this.flipToIconBackground=Pe.alternateNotificationData?.useAlternativeIcon?"":Qe.iconBackground||"",this.flipToIconPath=Qe.img||"",this.flipToMessage=Vt,this.doFlip=!0;else{this.notifierMessage=Vt,this.notifierIcon=Pe.alternateNotificationData?.useAlternativeIcon?Qe.alternateNotificationData?.alternativeIcon:Qe.icon||"",this.notifierIconColor=Pe.alternateNotificationData?.useAlternativeIcon?Qe.alternateNotificationData?.alternativeIconClass:Qe.iconColor||"",this.notifierIconBackground=Pe.alternateNotificationData?.useAlternativeIcon?"":Qe.iconBackground||"",this.notifierIconPath=Qe.img||"";const Vn=Pe.selection===i.EdA.ProtectedContentWarning;this.countDown=Vn?2*this.countDownStart:this.countDownStart,this.open(Vn)}}pickAlternateMessages(Pe,Qe){let Be="";switch(Pe){case i.wzr.None:Be=Qe.message;break;case i.wzr.Message1:Be=Qe.alternateNotificationData?.alternativeMessage1;break;case i.wzr.Message2:Be=Qe.alternateNotificationData?.alternativeMessage2;break;case i.wzr.Message3:Be=Qe.alternateNotificationData?.alternativeMessage3}return Be}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(g.J6),h.rXU(i.Bqk),h.rXU(i.mbZ),h.rXU(h.aKT),h.rXU(h.sFG),h.rXU(X.c$),h.rXU(g.iH),h.rXU(i.Rvq),h.rXU(i.k$F))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["nv-osc-notifier"]],decls:7,vars:10,consts:[[1,"notifier-black","mat-elevation-z6",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"notifier"],["fxFlex","none","fxLayout","row","fxLayoutAlign","center center"],["class","notifier-icon","fxFlex","none",3,"src",4,"ngIf"],[3,"svgIcon","class",4,"ngIf"],["fxLayout","column",1,"font-body2","notifier-text"],["fxFlex","none",1,"notifier-icon",3,"src"],[3,"svgIcon"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div",0)(1,"div",1)(2,"div",2),h.DNE(3,Pt,1,1,"img",3)(4,Ii,1,4,"mat-icon",4),h.k0s(),h.j41(5,"div",5),h.EFF(6),h.k0s()()()),2&Pe&&(h.Y8G("ngClass",h.l_i(7,$n,Qe.rtxHdrMode,Qe.nativeHdrMode)),h.R7$(2),h.ZvI("notifier-icon-container ",Qe.notifierIconBackground,""),h.R7$(),h.Y8G("ngIf",Qe.notifierIconPath),h.R7$(),h.Y8G("ngIf",Qe.notifierIcon),h.R7$(2),h.JRh(Qe.notifierMessage))},dependencies:[A.YU,A.bT,x.DJ,x.sA,x.UI,je.PW,D.An],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((100vw - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.notifier-slider[_nghost-%COMP%]{perspective:800px}.notifier-black[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;overflow:hidden;width:300px;height:90px;top:105px;z-index:200;background-color:#000000d9}.isLtr[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{right:-100%;transition:right .25s cubic-bezier(.4,0,1,1) .25s,border-left-width .25s cubic-bezier(.4,0,1,1) 0s;border-left:300px solid #76b900}.isRtl[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{left:-100%;transition:left .25s cubic-bezier(.4,0,1,1) .25s,border-right-width .25s cubic-bezier(.4,0,1,1) 0s;border-right:300px solid #76b900}.notifier-black-rtxhdr[_ngcontent-%COMP%]{background-color:#000000eb}.notifier-black-nativehdr[_ngcontent-%COMP%]{background-color:#0009}.notifier-large[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{width:330px;height:124px;top:90px}.notifier-tall[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{width:330px;height:150px;top:90px}.notifier[_ngcontent-%COMP%]{width:100%;height:100%;opacity:0;transition-property:opacity 0s linear 0s}.notifier-icon-container[_ngcontent-%COMP%]{margin:10px 16px;height:70px;width:70px}.notifier-icon[_ngcontent-%COMP%]{box-sizing:border-box;width:48px;height:48px;font-size:48px}.notifier-icon-large[_ngcontent-%COMP%]{width:60px;height:60px}.notifier-icon-setting[_ngcontent-%COMP%]{opacity:.7}.notifier-text[_ngcontent-%COMP%]{width:calc(100% - 102px)}.isLtr[_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .notifier-text[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .notifier-text[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}@media screen and (max-width: 430px) and (max-height: 932px) and (orientation: portrait),screen and (max-width: 932px) and (max-height: 430px) and (orientation: landscape){.notifier-black[_ngcontent-%COMP%]{width:211px;height:48px;top:72px}.isLtr[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{right:-241px;border-left:211px solid #76b900}.isRtl[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{left:-241px;border-right:211px solid #76b900}.notifier-icon-container[_ngcontent-%COMP%]{margin:8px 16px;width:32px;height:32px}.notifier-icon[_ngcontent-%COMP%]{width:28px;height:28px}.notifier-text[_ngcontent-%COMP%]{width:calc(100% - 64px)}.isLtr[_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%]{padding-right:14px}html[dir=ltr][_ngcontent-%COMP%] .notifier-text[_ngcontent-%COMP%]{--dummy2: 0;padding-right:14px}.isRtl[_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notifier-text[_ngcontent-%COMP%]{padding-left:14px}html[dir=rtl][_ngcontent-%COMP%] .notifier-text[_ngcontent-%COMP%]{--dummy2: 0;padding-left:14px}}.notifier-open[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{transition:right .25s cubic-bezier(0,0,.2,1) 0s,border-left-width .25s cubic-bezier(0,0,.2,1) .25s;right:0;border-left-width:5px}.notifier-open[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%] > .notifier[_ngcontent-%COMP%]{transition:opacity .5s linear .5s;opacity:1}.notifier-open-rtl[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{transition:left .25s cubic-bezier(0,0,.2,1) 0s,border-right-width .25s cubic-bezier(0,0,.2,1) .25s;left:0;border-right-width:5px}.notifier-open-rtl[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%] > .notifier[_ngcontent-%COMP%]{transition:opacity .5s linear .5s;opacity:1}.notifier-flip[_nghost-%COMP%] > .notifier-green[_ngcontent-%COMP%], .notifier-flip[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{transition:transform 1s;transform-style:preserve-3d;transform:rotateX(180deg)}.notifier-flip[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%] > .notifier[_ngcontent-%COMP%]{transition:transform 1s;transform-style:preserve-3d;transform:rotateX(-180deg)}.tv-view[_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notifier-black[_ngcontent-%COMP%]{width:429px;height:154px}.tv-view[_nghost-%COMP%] .notifier-icon-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notifier-icon-container[_ngcontent-%COMP%]{margin:16px 24px;width:114px;height:114px}.tv-view[_nghost-%COMP%] .notifier-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notifier-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .notifier-icon-large[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notifier-icon-large[_ngcontent-%COMP%]{width:82px;height:82px;font-size:82px}.tv-view .notifier-large[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{width:562px;height:204px}.tv-view .notifier-tall[_nghost-%COMP%] > .notifier-black[_ngcontent-%COMP%]{width:562px;height:250px}"]}),he})(),Jt=(()=>{var ni;class he{constructor(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)},ni.\u0275cmp=h.VBU({type:ni,selectors:[["igo-nv-grid"]],decls:10,vars:34,consts:[[1,"grid-svg","pos-abs"],[1,"grid-line-white"],[1,"grid-line-white","pos-abs"],[1,"grid-line-black"]],template:function(Pe,Qe){1&Pe&&(h.j41(0,"div"),h.qSk(),h.j41(1,"svg",0),h.nrm(2,"line",1)(3,"line",1)(4,"line",2)(5,"line",1)(6,"line",3)(7,"line",3)(8,"line",3)(9,"line",3),h.k0s()()),2&Pe&&(h.R7$(),h.BMQ("width",Qe.windowWidth)("height",Qe.windowHeight),h.R7$(),h.BMQ("x1",0)("x2",Qe.windowWidth)("y1",Qe.windowHeight/3)("y2",Qe.windowHeight/3),h.R7$(),h.BMQ("x1",0)("x2",Qe.windowWidth)("y1",2*Qe.windowHeight/3)("y2",2*Qe.windowHeight/3),h.R7$(),h.BMQ("x1",Qe.windowWidth/3)("x2",Qe.windowWidth/3)("y1",0)("y2",Qe.windowHeight),h.R7$(),h.BMQ("x1",2*Qe.windowWidth/3)("x2",2*Qe.windowWidth/3)("y1",0)("y2",Qe.windowHeight),h.R7$(),h.BMQ("x1",0)("x2",Qe.windowWidth)("y1",Qe.windowHeight/3)("y2",Qe.windowHeight/3),h.R7$(),h.BMQ("x1",0)("x2",Qe.windowWidth)("y1",2*Qe.windowHeight/3)("y2",2*Qe.windowHeight/3),h.R7$(),h.BMQ("x1",Qe.windowWidth/3)("x2",Qe.windowWidth/3)("y1",0)("y2",Qe.windowHeight),h.R7$(),h.BMQ("x1",2*Qe.windowWidth/3)("x2",2*Qe.windowWidth/3)("y1",0)("y2",Qe.windowHeight))},styles:[".grid-line-white[_ngcontent-%COMP%]{stroke:#fff;stroke-width:5}.grid-line-black[_ngcontent-%COMP%]{stroke:#000;stroke-width:2}.grid-svg[_ngcontent-%COMP%]{z-index:-1}.pos-abs[_ngcontent-%COMP%]{position:absolute}"]}),he})();const ki=["textInput"];function Fr(ni,he){1&ni&&h.nrm(0,"igo-nv-grid")}function xo(ni,he){if(1&ni&&(h.j41(0,"div",4),h.nrm(1,"router-outlet",5,0),h.k0s()),2&ni){const Ee=h.sdS(2),Pe=h.XpG();h.Y8G("@slideInOut",Pe.prepareRoute(Ee))("@slideInOutRTL",Pe.prepareRouteRtl(Ee))}}function qn(ni,he){if(1&ni&&h.nrm(0,"igo-input-control",6),2&ni){const Ee=h.XpG();h.Y8G("inputControlHintsEnabled",Ee.inputControlHintsEnabled)}}let Sr=(()=>{var ni;class he{constructor(Pe,Qe,Be,Mt,Vt,Vn,si,Rn,_i,wr,hr,Qr){this.injector=Mt,this.bridgeService=Vt,this.igoConfig=Vn,this.navigationService=si,this.oscDisplayService=Rn,this.matDialog=_i,this.localeService=wr,this.projectInterfaceService=hr,this.hotkeyService=Qr,this.uiStateSub=void 0,this.destroy$=new l.B7,this.curUIState="closed",this.showGrid=!1,this.throttleDuration=500,this.slideInOutParams={left_void:"-100%",right_void:"0",left_igo:"0",right_igo:"100%"},this.inputControlHintsEnabled=!1,this.virtualKbEnabled=!1,this.sidebarEnabled=!0,this.logger=Qe.getLogger("IGO"),Be.isGFEMode()&&(this.nvcameraService=this.injector.get(i.h8x),this.oscNotificationService=this.injector.get(i.mbZ),this.osdService=this.injector.get(i.auo),this.shadowPlayService=this.injector.get(i.W1J),this.perfMonService=this.injector.get(i.zET)),(Be.isGFEMode()?this.handleGFEtoNvAppMigration():(0,p.of)(!0)).pipe((0,_.W)(no=>(this.logger.info("handleGFEtoNvAppMigration failed",no),(0,p.of)(null))),(0,P.ZZ)(()=>Pe.init())).subscribe(no=>{no&&(this.logger.info("IGO singleton services initialized"),Vn.GFNCefClient&&Vn.IGOFeatureEnabled&&(this.virtualKbEnabled=Be.isVirtualKeyboardEnabled(),this.inputControlHintsEnabled=Be.isInputControlHintsEnabled(),this.sidebarEnabled=!Be.isGfnMobileMode()&&!Be.getForceTouchModeSettings()?.useOsc))}),this.uiStateSub=this.oscDisplayService.getCurrentOpenState().pipe((0,v.Q)(this.destroy$)).subscribe(no=>{this.curUIState=no}),this.hotkeyService.listen(i.g8X.QuitGame).pipe((0,O.c)(this.throttleDuration),(0,v.Q)(this.destroy$)).subscribe(()=>{this.quitStreaming()})}onkeydown(Pe){if(this.igoConfig.IGOFeatureEnabled&&"Escape"===Pe.key&&"open"===this.curUIState){if(this.matDialog.openDialogs.length>0)return;this.logger.info("IGO Detected Escape"),this.navigationService.goToNextNavState(),this.preventDefaultAndStopPropagation(Pe)}}quitStreaming(){"open"===this.curUIState?(this.logger.info("IGO detected Quit Wih open state"),this.oscDisplayService.closeOSC(a.oy.QuitGath)):this.logger.info("IGO detected Quit with closed state"),this.projectInterfaceService.quitStreaming()}preventDefaultAndStopPropagation(Pe){Pe.preventDefault(),Pe.stopPropagation()}handleGFEtoNvAppMigration(){this.logger.info("handleGFEtoNvAppMigration");let Pe=!1;return(0,m.p)([this.bridgeService.executeCommand(r.Ts.Share.Shareserver.HandleHighlightsGfeConfig),this.bridgeService.executeCommand(r.Ts.Share.Shareserver.GetExportedGFESettingsData)]).pipe((0,_.W)(Qe=>(this.logger.error("GFE migration fetch failed",Qe),(0,p.of)([null,{isValidGFEDataFound:!1,gfeData:null}]))),(0,P.ZZ)(([Qe,Be])=>{if(!Be.isValidGFEDataFound||!Be.gfeData)return this.logger.info("No valid gfe settings backup found"),this.shadowPlayService.syncShadowPlaySettings(!1);let Mt={};try{Mt=JSON.parse(Be.gfeData),this.logger.info("gfeData found in the storage")}catch(Vt){Mt=null,this.logger.error("Failed to parse stored gfeData exception ",Vt)}return Mt?(Pe=!0,(0,m.p)([this.nvcameraService?.loadGFEMigrationData(Mt).pipe((0,_.W)(Vt=>(this.logger.error("GFE migration failed for nvcameraservice",Vt),(0,p.of)(null))))??(0,p.of)(null),this.oscNotificationService?.loadGFEMigrationData(Mt).pipe((0,_.W)(Vt=>(this.logger.error("GFE migration failed for oscNotificationService",Vt),(0,p.of)(null))))??(0,p.of)(null),this.osdService?.loadGFEMigrationData(Mt).pipe((0,_.W)(Vt=>(this.logger.error("GFE migration failed for osdService",Vt),(0,p.of)(null))))??(0,p.of)(null),this.perfMonService?.loadGFEMigrationData(Mt).pipe((0,_.W)(Vt=>(this.logger.error("GFE migration failed for perfMonService",Vt),(0,p.of)(null))))??(0,p.of)(null),this.shadowPlayService.syncShadowPlaySettings(!0).pipe((0,_.W)(Vt=>(this.logger.error("GFE migration failed for shadowPlayService",Vt),(0,p.of)(null))))]).pipe((0,S.M)(Vt=>this.logger.info("GFE settings migrated successfully")))):(this.logger.error("Failed to parse GFE backup data, ignoring it"),this.shadowPlayService.syncShadowPlaySettings(!1))}),(0,y.T)(Qe=>!0))}setShowGrid(Pe){this.showGrid=Pe}getShowGrid(){return this.showGrid}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}prepareRoute(Pe){return!this.localeService.isRTLLayoutEnabled&&Pe&&Pe.isActivated&&Pe.activatedRoute?"igo":"void"}prepareRouteRtl(Pe){return this.localeService.isRTLLayoutEnabled&&Pe&&Pe.isActivated&&Pe.activatedRoute?"igo":"void"}}return(ni=he).\u0275fac=function(Pe){return new(Pe||ni)(h.rXU(i.m$j),h.rXU(g.J6),h.rXU(i.Rvq),h.rXU(h.zZn),h.rXU(g.NZ),h.rXU(i.k$F),h.rXU(i.o_p),h.rXU(i.Bqk),h.rXU(c.bZ),h.rXU(g.iH),h.rXU(T.qQ),h.rXU(i.QSC))},ni.\u0275cmp=h.VBU({type:ni,selectors:[["nv-igo"]],viewQuery:function(Pe,Qe){if(1&Pe&&h.GBs(ki,5),2&Pe){let Be;h.mGM(Be=h.lsd())&&(Qe.inputElement=Be.first)}},hostBindings:function(Pe,Qe){1&Pe&&h.bIt("keydown",function(Mt){return Qe.onkeydown(Mt)},!1,h.EBC)},decls:5,vars:3,consts:[["outletigo","outlet"],[4,"ngIf"],["class","sidebar","fxFlexFill","",4,"ngIf"],[3,"inputControlHintsEnabled",4,"ngIf"],["fxFlexFill","",1,"sidebar"],["name","igo"],[3,"inputControlHintsEnabled"]],template:function(Pe,Qe){1&Pe&&(h.nrm(0,"nv-osc-notifier")(1,"nv-osd"),h.DNE(2,Fr,1,0,"igo-nv-grid",1)(3,xo,3,2,"div",2)(4,qn,1,1,"igo-input-control",3)),2&Pe&&(h.R7$(2),h.Y8G("ngIf",Qe.showGrid),h.R7$(),h.Y8G("ngIf",Qe.sidebarEnabled),h.R7$(),h.Y8G("ngIf",Qe.virtualKbEnabled))},dependencies:[A.bT,L.n3,x.G2,jn,Ti,ar,Jt],styles:["[_nghost-%COMP%]{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden!important;-webkit-user-select:none;user-select:none;cursor:default;margin:0;background:#0000!important;pointer-events:none}.sidebar[_ngcontent-%COMP%]{position:relative;overflow:hidden}"],data:{animation:[(0,n.hZ)("slideInOut",[(0,n.kY)("void => igo",[(0,n.iF)({opacity:0,left:"-100%"}),(0,n.i0)("300ms cubic-bezier(0, 0, 0.2, 1)",(0,n.iF)({opacity:1,left:"0"}))]),(0,n.kY)("igo => void",[(0,n.P)(":leave",[(0,n.iF)({opacity:1,left:"0"}),(0,n.i0)("300ms cubic-bezier(0.4, 0, 1, 1)",(0,n.iF)({opacity:0,left:"-100%"}))])])]),(0,n.hZ)("slideInOutRTL",[(0,n.kY)("void => igo",[(0,n.iF)({opacity:0,right:"-100%"}),(0,n.i0)("300ms cubic-bezier(0, 0, 0.2, 1)",(0,n.iF)({opacity:1,right:"0"}))]),(0,n.kY)("igo => void",[(0,n.P)(":leave",[(0,n.iF)({opacity:1,right:"0"}),(0,n.i0)("300ms cubic-bezier(0.4, 0, 1, 1)",(0,n.iF)({opacity:0,right:"-100%"}))])])])]}}),he})()},23540:(Ue,W,d)=>{"use strict";d.r(W),d.d(W,{MainMenuModule:()=>wn});var n=d(61142),l=d(14354),p=d(51006),m=d(3567),_=d(17617),P=d(62668),v=d(58527),O=d(80583),S=d(93181),y=d(892),r=d(4208),i=d(65706),a=d(74931),h=d(1331),g=d(93455),c=d(54292),T=d(50801),A=d(59002),L=d(10785),x=d(19724),V=d(3457),D=d(43664),F=d(43822),I=d(93662),k=d(52834),R=d(62141),G=d(54676),Y=d(43780),K=d(75707),$=d(8619),ee=d(91384),J=d(81616),z=d(6754),te=d(67904),X=d(37278);const re=["scroller"];function ge(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"div",9)(1,"nv-virtual-grid-item",10)(2,"nv-gallery-item",11),v.bIt("click",function(){const wt=v.eBV(mt).$implicit,Un=v.XpG(2);return v.Njj(Un.openFile(wt.item))})("mousedown",function(){const wt=v.eBV(mt).$implicit,Un=v.XpG(2);return v.Njj(Un.selectedItemChanged(wt.item))}),v.k0s()()()}if(2&nt){const mt=on.$implicit,_n=v.XpG(2);v.R7$(),v.Y8G("item",mt)("selectedItemIndex",_n.selectedItemIndex)("itemWidth",_n.displayThumbnailSize)("itemHeight",_n.displayThumbnailSize),v.R7$(),v.Y8G("item",mt.item)("activeItem",_n.recentSelection)("thumbSize",_n.displayThumbnailSize)}}function oe(nt,on){if(1&nt){const mt=v.RV6();v.qex(0),v.nrm(1,"div",2),v.j41(2,"div",3)(3,"nv-item-button",4),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.recentGoLeft())}),v.k0s(),v.j41(4,"div",5)(5,"cdk-virtual-scroll-viewport",6,0),v.bIt("keydown",function(wt){v.eBV(mt);const Un=v.XpG();return v.Njj(Un.keydownRecent(wt))}),v.DNE(7,ge,3,7,"div",7),v.k0s()(),v.j41(8,"nv-item-button",8),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.recentGoRight())}),v.k0s()(),v.bVm()}if(2&nt){const mt=v.XpG();v.R7$(3),v.Y8G("disabled",mt.leftDisabled),v.R7$(2),v.Y8G("itemSize",mt.displayThumbnailSize),v.R7$(2),v.Y8G("cdkVirtualForOf",mt.recentList),v.R7$(),v.Y8G("disabled",mt.rightDisabled)}}let xe=(()=>{var nt;class on{constructor(_n,wt,Un,Oi,At){this.loggingService=_n,this.route=wt,this.navigationService=Un,this.galleryService=Oi,this.dialogHelper=At,this.destroy$=new O.B7,this.previewOpen=!1,this.recentList=[],this.displayThumbnailSize=86,this.recentItemsToDisplay=10,this.recentItemsVisible=4,this.requestThumbnailSize=128,this._selectedItem=void 0,this.selectedItemIndex=-1,this.leftDisabled=!1,this.rightDisabled=!1,this.logger=this.loggingService.getLogger("RecentView")}ngOnInit(){this.initializeRecent(),this.galleryService.recentEvent().pipe((0,r.Q)(this.destroy$),(0,Y.c)(1e3)).subscribe(()=>{this.initializeRecent(),this.scroller&&this.scroller.scrollToIndex(0,"smooth")}),this.galleryService.previewPaneEvent().pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.previewEvent(_n)})}ngOnDestroy(){this.dialogHelper.closeSnackBar(),this.destroy$.next(!0),this.destroy$.unsubscribe(),this.centerPaneCallback$&&this.centerPaneCallback$.unsubscribe()}initializeRecent(_n=0){this.galleryService.getRecentData(this.requestThumbnailSize,this.recentItemsToDisplay).pipe((0,r.Q)(this.destroy$)).subscribe(wt=>{this.logger.info("RecentList length",wt.length),wt.length>0&&(this._selectedItem=wt[_n],this.recentList=wt.map((Un,Oi)=>(Un===this._selectedItem&&(this.selectedItemIndex=Oi),{index:Oi,selected:Un===this._selectedItem,element:void 0,item:Un})),this.chevronControl())})}keydownRecent(_n){("Enter"===_n.key||" "===_n.key)&&this.recentList.length>0&&this.selectedItemIndex>=0&&this.selectedItemIndex<this.recentList.length?this.openFile(this.recentList[this.selectedItemIndex].item):"ArrowLeft"===_n.key?this.recentGoLeft():"ArrowRight"===_n.key&&this.recentGoRight()}openFile(_n){this.dialogHelper.closeSnackBar(),this.recentSelection=this.recentList.find(wt=>wt.item.fullFilename===_n.fullFilename).item,this.galleryService.currentFileData=this.recentSelection,this.previewOpen||(this.centerPaneOpened(),this.galleryService.setPreviewCaller(h.jby.mainMenu),this.navigationService.navigate([{outlets:{centerPane:"center-view/preview"}}],{relativeTo:this.route,skipLocationChange:!0},"image"===_n.file.type?h.jby.galleryImagePreview:h.jby.galleryVideoPreview))}centerPaneOpened(){this.previewOpen||(this.navigationService.openCenterPane(!0),this.previewOpen=!0,this.centerPaneCallback$=this.navigationService.centerPaneClosedEvent().subscribe(()=>{this.recentSelection=void 0,this.previewOpen=!1,this.centerPaneCallback$.unsubscribe(),this.centerPaneCallback$=void 0}))}closePreview(){this.previewOpen?this.galleryService.closePreviewWindow(!0):this.logger.info("Ignoring close preview window request")}selectedItemChanged(_n){this.selectedItemIndex>=0&&this.selectedItemIndex<this.recentList.length&&(this.recentList[this.selectedItemIndex].selected=!1),this.selectedItemIndex=this.recentList.findIndex(wt=>wt.item.fullFilename===_n.fullFilename),-1!==this.selectedItemIndex&&(this.logger.info("SelectedItemChanged item: ",_n.file.name),this.recentList[this.selectedItemIndex].selected=!0,this.chevronControl())}recentNav(_n,wt=!1){let Un=this.selectedItemIndex;this.recentList[this.selectedItemIndex].selected=!1,_n?Un--:Un++,Un=wt?Un>=this.recentList.length?0:Un<0?this.recentList.length-1:Un:Un>=this.recentList.length?this.recentList.length-1:Un<0?0:Un,this.scroller.scrollToIndex(Un,"smooth"),this.selectedItemIndex=Un,this.recentList[this.selectedItemIndex].selected=!0,this.previewOpen&&this.openFile(this.recentList[Un].item),this.chevronControl()}recentGoLeft(){this.recentNav(!0)}recentGoRight(){this.recentNav(!1)}chevronControl(){this.recentList.length<=this.recentItemsVisible?(this.leftDisabled=!0,this.rightDisabled=!0):0===this.selectedItemIndex?(this.leftDisabled=!0,this.rightDisabled=!1):this.selectedItemIndex===this.recentList.length-1?(this.leftDisabled=!1,this.rightDisabled=!0):(this.leftDisabled=!1,this.rightDisabled=!1)}deleteCurrentFile(){this.logger.info("Remove clicked");const wt=this.recentList[this.selectedItemIndex].item;this.dialogHelper.openAlertDialog({title:"confirmation.confirmDeleteTitle",query:"confirmation.confirmDelete",queryParam:"",action1:"confirmation.NotRightNow",action2:"confirmation.remove"}).pipe((0,r.Q)(this.destroy$),(0,K.ZZ)(Un=>Un.afterClosed()),(0,$.p)(Un=>Un===h.SFy.Action2),(0,ee.M)(()=>{this.closePreview(),this.recentList.splice(this.selectedItemIndex,1),this.selectedItemIndex>=this.recentList.length&&(this.selectedItemIndex=this.recentList.length-1),this.recentList.length>0&&(this.recentList[this.selectedItemIndex].selected=!0),this.recentList=this.recentList.slice()}),(0,K.ZZ)(()=>this.galleryService.showDeleteSnackbar([wt])),(0,$.p)(Un=>!1===Un),(0,ee.M)(()=>this.initializeRecent(this.selectedItemIndex))).subscribe()}previewEvent(_n){this.logger.info("PreviewEvent:",_n),_n===h.Pev.DeleteFile?this.deleteCurrentFile():(_n===h.Pev.BackNav||_n===h.Pev.ForwardNav)&&(this.recentNav(_n===h.Pev.BackNav,!0),this.openFile(this.recentList[this.selectedItemIndex].item))}}return(nt=on).\u0275fac=function(_n){return new(_n||nt)(v.rXU(m.J6),v.rXU(l.nX),v.rXU(h.o_p),v.rXU(h.AFS),v.rXU(h.eo6))},nt.\u0275cmp=v.VBU({type:nt,selectors:[["nv-recent-view"]],viewQuery:function(_n,wt){if(1&_n&&v.GBs(re,5),2&_n){let Un;v.mGM(Un=v.lsd())&&(wt.scroller=Un.first)}},decls:1,vars:1,consts:[["scroller",""],[4,"ngIf"],[1,"nv-gap-8"],["fxLayout","row","fxLayoutAlign","center center","fxFlexFill",""],["svgIcon","chevron_left",3,"clicked","disabled"],[1,"recent-layout"],["fxFlex","","orientation","horizontal","tabIndex","0",1,"recent-container",3,"keydown","itemSize"],["class","recent-item",4,"cdkVirtualFor","cdkVirtualForOf"],["svgIcon","chevron_right",1,"right-button-padding",3,"clicked","disabled"],[1,"recent-item"],[3,"item","selectedItemIndex","itemWidth","itemHeight"],["nvHoverFocus","",3,"click","mousedown","item","activeItem","thumbSize"]],template:function(_n,wt){1&_n&&v.DNE(0,oe,9,4,"ng-container",1),2&_n&&v.Y8G("ngIf",wt.recentList.length>0)},dependencies:[n.bT,V.DJ,V.sA,V.G2,V.UI,F.j,J.U,k.I,z.m,te.v,X.yg,X.E$,X.d6],styles:[".nv-gap-1{height:1px}.nv-gap-4{height:4px}.nv-horizontal-gap-4{width:4px}.nv-gap-8{height:8px}.nv-horizontal-gap-8{width:8px}.nv-gap-12{height:12px}.nv-gap-14{height:14px}.nv-gap-16{height:16px}.nv-gap-24{height:24px}.nv-horizontal-gap-24{width:24px}.nv-gap-32{height:32px}.nv-horizontal-gap-32{width:32px}.nv-gap-40{height:40px}.nv-gap-48{height:48px}:host-context(.isRtl) .flip-rtl-element{transform:scaleX(-1)}html[dir=rtl] .flip-rtl-element{--dummy: 0;transform:scaleX(-1)}.background-image-overlay{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}:host[disabled] .nv-item *{cursor:default}.nv-item-icon{width:36px;height:36px}.nv-item-icon mat-icon{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row{padding:0 24px}.nv-item-labels{padding:8px 0;height:100%}.nv-label{padding:8px 0}.default-cursor{cursor:default}.disabled-opacity{opacity:.38}:host-context(.tv-view) ::ng-deep .nv-item-icon{width:40px;height:40px}:host-context(.tv-view) ::ng-deep .nv-item-icon mat-icon,:host-context(.tv-view) ::ng-deep .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}:host{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.recent-layout{height:86px;width:376px}:host-context(.isLtr) .right-button-padding{padding-left:8px}html[dir=ltr] .right-button-padding{--dummy1: 0;padding-left:8px}:host-context(.isRtl) .right-button-padding{padding-right:8px}html[dir=rtl] .right-button-padding{--dummy1: 0;padding-right:8px}.recent-container{height:86px;overflow-y:hidden;overflow-x:scroll}.recent-container::-webkit-scrollbar{width:0;height:0}.recent-container .cdk-virtual-scroll-content-wrapper{display:flex;flex-direction:row}:host-context(.isLtr) .left-button-padding{padding-right:8px}html[dir=ltr] .left-button-padding{--dummy2: 0;padding-right:8px}:host-context(.isRtl) .left-button-padding{padding-left:8px}html[dir=rtl] .left-button-padding{--dummy2: 0;padding-left:8px}.center-text{text-align:center}.recent-item{width:86px;height:100%}:host-context(.isLtr) .recent-item{padding-left:8px}html[dir=ltr] .recent-item{--dummy1: 0;padding-left:8px}:host-context(.isRtl) .recent-item{padding-right:8px}html[dir=rtl] .recent-item{--dummy1: 0;padding-right:8px}\n"],encapsulation:2}),on})();var ue=d(28139),N=d(29370),se=d(65240);const ce=["*"];function Z(nt,on){if(1&nt&&v.nrm(0,"div",7),2&nt){const mt=v.XpG();v.AVh("font-color-secondary",!mt.tvMode&&!mt.isNvApp)("font-color-tertiary",!mt.tvMode&&mt.isNvApp)("disabled-opacity",mt.tvMode&&!mt.disabled),v.Y8G("ngClass",mt.tvMode?"font-body3":"font-body2")("translate",mt.subTitle)("translateParams",mt.subTitleArg)}}let de=(()=>{var nt;class on{constructor(_n){this.featureSupportService=_n,this.icon=void 0,this.titleString=void 0,this.subTitle=void 0,this.subTitleArg=void 0,this.disabled=!1,this.subtitleVisible=!0,this.sidePaddingRotary=!1,this.tvMode=!1,this.isNvApp=!1,this.tvMode=this.featureSupportService.isTVMode(),this.isNvApp=this.featureSupportService.isNvApp()}}return(nt=on).\u0275fac=function(_n){return new(_n||nt)(v.rXU(h.Rvq))},nt.\u0275cmp=v.VBU({type:nt,selectors:[["nv-main-menu-item"]],inputs:{icon:"icon",titleString:"titleString",subTitle:"subTitle",subTitleArg:"subTitleArg",disabled:"disabled",subtitleVisible:"subtitleVisible",sidePaddingRotary:"sidePaddingRotary"},ngContentSelectors:ce,decls:10,vars:17,consts:[["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon"],[3,"svgIcon"],["fxFlexAlign","center","fxLayout","column","fxLayoutAlign","start start","fxFlex","grow"],[1,"nv-menu-item-title"],[3,"ngClass","font-color-secondary","font-color-tertiary","disabled-opacity","translate","translateParams",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","none"],[3,"ngClass","translate","translateParams"]],template:function(_n,wt){1&_n&&(v.NAR(),v.j41(0,"div",0)(1,"div",1),v.nrm(2,"mat-icon",2),v.k0s(),v.j41(3,"div",3)(4,"div",4),v.EFF(5),v.nI1(6,"translate"),v.k0s(),v.DNE(7,Z,1,9,"div",5),v.k0s(),v.j41(8,"div",6),v.SdG(9),v.k0s()()),2&_n&&(v.AVh("igo-menu-item",!wt.sidePaddingRotary)("igo-menu-item-rotary",wt.sidePaddingRotary)("disabled-opacity",wt.disabled)("sub-title",wt.subTitle),v.R7$(),v.AVh("svg-icon-details",!wt.tvMode),v.R7$(),v.Y8G("svgIcon",wt.icon),v.R7$(),v.AVh("nv-item-labels",wt.tvMode),v.R7$(2),v.JRh(v.bMT(6,15,wt.titleString)),v.R7$(2),v.Y8G("ngIf",wt.subTitle&&wt.subtitleVisible))},dependencies:[n.YU,n.bT,V.DJ,V.sA,V.R$,V.UI,ue.PW,N.An,se.Mm,se.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}.igo-menu-item[_ngcontent-%COMP%]{padding:12px 16px}.igo-menu-item.sub-title[_ngcontent-%COMP%]{padding:14px 16px}.isLtr[_nghost-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%]{padding:12px 2px 12px 16px}html[dir=ltr][_ngcontent-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%]{--dummy: 0;padding:12px 2px 12px 16px}.isRtl[_nghost-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%]{padding:12px 16px 12px 2px}html[dir=rtl][_ngcontent-%COMP%] .igo-menu-item-rotary[_ngcontent-%COMP%]{--dummy: 0;padding:12px 16px 12px 2px}.isLtr[_nghost-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%]{padding:14px 2px 14px 16px}html[dir=ltr][_ngcontent-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%]{--dummy: 0;padding:14px 2px 14px 16px}.isRtl[_nghost-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%]{padding:14px 16px 14px 2px}html[dir=rtl][_ngcontent-%COMP%] .igo-menu-item-rotary.sub-title[_ngcontent-%COMP%]{--dummy: 0;padding:14px 16px 14px 2px}.svg-icon-details[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .svg-icon-details[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .svg-icon-details[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .svg-icon-details[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .svg-icon-details[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .svg-icon-details[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .svg-icon-details[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.subtitle-carousal-color[_ngcontent-%COMP%]{color:#fff9}.nv-menu-item-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .nv-menu-item-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-menu-item-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-menu-item-title[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .nv-menu-item-title[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .nv-menu-item-title[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] .igo-menu-item[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .igo-menu-item[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .igo-menu-item.sub-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .igo-menu-item.sub-title[_ngcontent-%COMP%]{padding:16px 0}.tv-view[_nghost-%COMP%] .nv-item-labels, .tv-view [_nghost-%COMP%] .nv-item-labels{padding:0;height:-moz-fit-content;height:fit-content}.isLtr.tv-view[_nghost-%COMP%] .nv-item-labels, .isLtr.tv-view [_nghost-%COMP%] .nv-item-labels, .isLtr .tv-view[_nghost-%COMP%] .nv-item-labels, .isLtr .tv-view [_nghost-%COMP%] .nv-item-labels, .tv-view .isLtr[_nghost-%COMP%] .nv-item-labels, .tv-view .isLtr [_nghost-%COMP%] .nv-item-labels{padding-left:16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .nv-item-labels, .tv-view [_nghost-%COMP%] .nv-item-labels{--dummy1: 0;padding-left:16px}.isRtl.tv-view[_nghost-%COMP%] .nv-item-labels, .isRtl.tv-view [_nghost-%COMP%] .nv-item-labels, .isRtl .tv-view[_nghost-%COMP%] .nv-item-labels, .isRtl .tv-view [_nghost-%COMP%] .nv-item-labels, .tv-view .isRtl[_nghost-%COMP%] .nv-item-labels, .tv-view .isRtl [_nghost-%COMP%] .nv-item-labels{padding-right:16px}html[dir=rtl] .tv-view[_nghost-%COMP%] .nv-item-labels, .tv-view [_nghost-%COMP%] .nv-item-labels{--dummy1: 0;padding-right:16px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%]{height:40px;width:40px}.tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.tv-view[_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-menu-item-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}"]}),on})();const ae=["tc"],pe=nt=>({arg:nt}),_e=(nt,on,mt)=>({arg:nt,arg2:on,arg3:mt}),ke=nt=>({hotkey:nt});function De(nt,on){if(1&nt&&(v.qex(0),v.j41(1,"nv-main-menu-item",14)(2,"div",15),v.EFF(3),v.k0s()(),v.nrm(4,"nv-divider",10),v.bVm()),2&nt){const mt=v.XpG();v.R7$(),v.Y8G("subTitle",mt.userShortDescription),v.R7$(),v.AVh("nv-item-labels",mt.tvMode),v.R7$(),v.JRh(mt.timeLeftInStream),v.R7$(),v.Y8G("marginNotReq",mt.tvMode)}}function Me(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"div",16)(1,"div",17)(2,"div",18)(3,"span",19),v.EFF(4),v.nI1(5,"translate"),v.k0s(),v.nrm(6,"span",20),v.j41(7,"span",21),v.EFF(8),v.nI1(9,"translate"),v.k0s(),v.nrm(10,"span",22),v.k0s()(),v.j41(11,"div",23)(12,"button",24),v.bIt("click",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.onCodecClick())}),v.EFF(13),v.nI1(14,"translate"),v.k0s(),v.nrm(15,"span",25),v.j41(16,"button",24),v.bIt("click",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.onCodecClick(!0))}),v.EFF(17),v.nI1(18,"translate"),v.k0s()()()}2&nt&&(v.R7$(4),v.SpI(" ",v.bMT(5,4,"mainMenu.showCodecMsg"),""),v.R7$(4),v.JRh(v.bMT(9,6,"mainMenu.showCodecMsgSub")),v.R7$(5),v.SpI(" ",v.bMT(14,8,"mainMenu.openSettings")," "),v.R7$(4),v.SpI(" ",v.bMT(18,10,"mainMenu.codecMsgDismiss")," "))}function je(nt,on){1&nt&&(v.qex(0),v.nrm(1,"nv-recent-view"),v.bVm())}function $e(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"div",26)(1,"nv-item-button",27),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.onGalleryClicked())}),v.k0s(),v.DNE(2,je,2,0,"ng-container",3),v.k0s()}if(2&nt){const mt=v.XpG();v.R7$(),v.Y8G("chevron",!mt.lowDiskSpace)("disabled",mt.lowDiskSpace),v.R7$(),v.Y8G("ngIf",mt.showRecent)}}function Oe(nt,on){if(1&nt&&(v.j41(0,"span",41),v.EFF(1),v.k0s()),2&nt){const mt=v.XpG(3);v.R7$(),v.JRh(mt.mrTime)}}function gt(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-main-menu-item",37),v.DNE(1,Oe,2,1,"span",38),v.nrm(2,"div",39),v.j41(3,"nv-item-button",40),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onClickManualRecord())}),v.k0s()()}if(2&nt){const mt=v.XpG(2);v.Y8G("subTitle",mt.mrHotkeyText)("subTitleArg",v.eq3(8,pe,mt.mrHotkey))("subtitleVisible",!(mt.isGamepadOrientedMode&&!mt.disableRecordSpecialCase))("disabled",mt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==mt.disableRecordSpecialCase),v.R7$(),v.Y8G("ngIf",mt.mrTime),v.R7$(2),v.Y8G("svgIcon",mt.isRecording?"stop":"play_arrow")("tooltip",mt.isRecording?"tooltips.StopAndSave":"tooltips.Start")("disabled",mt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==mt.disableRecordSpecialCase)}}function qt(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-item-button",42),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onClickManualRecord())}),v.k0s()}if(2&nt){const mt=v.XpG(2);v.Y8G("urlIcon",mt.isRecording?"stop":"play_arrow")("subTitle",mt.mrHotkeyText)("subTitleArg",v.eq3(6,pe,mt.mrHotkey))("mainMenuUse",!0)("subText",mt.mrTime)("disabled",mt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==mt.disableRecordSpecialCase)}}function ye(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-item-button",45),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG(3);return v.Njj(wt.onClickIRSave())}),v.k0s()}if(2&nt){const mt=v.XpG(3);v.Y8G("disabled",mt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==mt.disableRecordSpecialCase)}}function Re(nt,on){if(1&nt&&(v.j41(0,"nv-main-menu-item",43),v.DNE(1,ye,1,1,"nv-item-button",44),v.k0s()),2&nt){const mt=v.XpG(2);v.Y8G("subTitle",mt.irHotkeyText)("subTitleArg",v.sMw(5,_e,mt.irHotkey,mt.irMin,mt.irSec))("subtitleVisible",!mt.isGamepadOrientedMode)("disabled",!mt.isSaveEnabled||mt.disableRecordSpecialCase),v.R7$(),v.Y8G("ngIf",mt.isSaveEnabled)}}function Ze(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-item-button",46),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onInstantReplayClicked())})("secondButtonclicked",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onClickIRSave())}),v.k0s()}if(2&nt){const mt=v.XpG(2);v.Y8G("subTitle",mt.irHotkeyText)("subTitleArg",v.sMw(5,_e,mt.irHotkey,mt.irMin,mt.irSec))("secondButton",mt.isSaveEnabled)("chevron",!0)("disabled",mt.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==mt.disableRecordSpecialCase)}}function et(nt,on){1&nt&&v.nrm(0,"div",6)}function xt(nt,on){1&nt&&v.nrm(0,"div",6)}function un(nt,on){if(1&nt){const mt=v.RV6();v.qex(0),v.DNE(1,xt,1,0,"div",32),v.j41(2,"nv-item-button",47),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onPhotoModeClicked())}),v.k0s(),v.bVm()}if(2&nt){const mt=v.XpG(2);v.R7$(),v.Y8G("ngIf",mt.tvMode),v.R7$(),v.Y8G("chevron",!0)("subTitle",mt.photoModeSubTitle)("subTitleArg",v.eq3(6,pe,mt.photoModeHotkey))("subtitleVisible",!(mt.isGamepadOrientedMode&&!mt.photoModeDisabled))("disabled",mt.photoModeDisabled)}}function ct(nt,on){1&nt&&v.nrm(0,"div",6)}function Gt(nt,on){if(1&nt){const mt=v.RV6();v.qex(0),v.DNE(1,ct,1,0,"div",32),v.j41(2,"nv-item-button",48),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onHighLightsClicked())}),v.k0s(),v.bVm()}if(2&nt){const mt=v.XpG(2);v.R7$(),v.Y8G("ngIf",mt.tvMode),v.R7$(),v.Y8G("chevron",!0)("subTitle",mt.hlL0Text)("subtitleVisible",!0)("disabled",!1)}}function pn(nt,on){1&nt&&v.nrm(0,"div",6)}function st(nt,on){if(1&nt){const mt=v.RV6();v.qex(0),v.DNE(1,pn,1,0,"div",32),v.j41(2,"nv-item-button",49),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onGamesFilterClicked())}),v.k0s(),v.bVm()}if(2&nt){const mt=v.XpG(2);v.R7$(),v.Y8G("ngIf",mt.tvMode),v.R7$(),v.Y8G("chevron",!0)("subTitle",mt.getGameFilterSubTitle().subTitle)("subTitleArg",mt.getGameFilterSubTitle().args)("subtitleVisible",!(mt.isGamepadOrientedMode&&"None"!==mt.gfStyleToggleHotkey))("disabled",mt.gameFilterDisabled)}}function mn(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"mat-slide-toggle",52),v.bIt("change",function(wt){v.eBV(mt);const Un=v.XpG(3);return v.Njj(Un.onToggleMicSwitch(wt))}),v.k0s()}if(2&nt){const mt=v.XpG(3);v.Y8G("checked",mt.micSwitchState)}}function Bn(nt,on){if(1&nt&&(v.j41(0,"nv-main-menu-item",50),v.DNE(1,mn,1,1,"mat-slide-toggle",51),v.k0s()),2&nt){const mt=v.XpG(2);v.Y8G("subTitle",mt.micHotkeyText)("subTitleArg",v.eq3(4,pe,mt.micHotkeyArg))("subtitleVisible",mt.isKBMGamesAllowed&&mt.micSubtitleVisible),v.R7$(),v.Y8G("ngIf",mt.useMicSwitch)}}function En(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-rotary",53),v.bIt("selectionChanged",function(wt){v.eBV(mt);const Un=v.XpG(2);return v.Njj(Un.onRotaryMic(wt))}),v.k0s()}if(2&nt){const mt=v.XpG(2);v.Y8G("input",mt.micRotaryOptions)("initialState",mt.micRotaryInit)("subTitle",mt.micHotkeyText)("subTitleArg",v.eq3(5,pe,mt.micHotkeyArg))("width",mt.rotaryWidth)}}function Cn(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"div"),v.nrm(1,"nv-divider"),v.DNE(2,gt,4,10,"nv-main-menu-item",28)(3,qt,1,8,"nv-item-button",29)(4,Re,2,9,"nv-main-menu-item",30)(5,Ze,1,9,"nv-item-button",31)(6,et,1,0,"div",32),v.j41(7,"nv-item-button",33),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.onScreenshotClicked())}),v.k0s(),v.DNE(8,un,3,8,"ng-container",3)(9,Gt,3,5,"ng-container",3)(10,st,3,6,"ng-container",3),v.nrm(11,"nv-divider",10),v.DNE(12,Bn,2,6,"nv-main-menu-item",34),v.j41(13,"div",35),v.DNE(14,En,1,7,"nv-rotary",36),v.k0s()()}if(2&nt){const mt=v.XpG();v.R7$(2),v.Y8G("ngIf",mt.isGfn),v.R7$(),v.Y8G("ngIf",!mt.isGfn),v.R7$(),v.Y8G("ngIf",mt.isGfn),v.R7$(),v.Y8G("ngIf",!mt.isGfn),v.R7$(),v.Y8G("ngIf",mt.tvMode),v.R7$(),v.Y8G("subTitle",mt.screenShotSubTitle)("subTitleArg",v.eq3(17,pe,mt.screenshotHotkey))("subtitleVisible",!mt.isGamepadOrientedMode)("urlIcon",mt.screenShotUrlIcon)("mainMenuUse",mt.screenShotMainMenuUse)("disabled",mt.recordSpecialCase.RECORD_SPECIAL_CASE_PLAYTEST===mt.disableRecordSpecialCase),v.R7$(),v.Y8G("ngIf",mt.photoMode),v.R7$(),v.Y8G("ngIf",mt.sdkGalleryEnable&&!mt.isGfn),v.R7$(),v.Y8G("ngIf",mt.gameFilter),v.R7$(),v.Y8G("marginNotReq",mt.tvMode),v.R7$(),v.Y8G("ngIf",!mt.isGfnMicEnabled&&!mt.showMicRotary),v.R7$(2),v.Y8G("ngIf",!mt.isGfnMicEnabled&&mt.showMicRotary)}}function fn(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-item-button",54),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.onIMEClicked())}),v.k0s()}if(2&nt){const mt=v.XpG();v.Y8G("subTitle",mt.imeHotkeyText)("subTitleArg",v.eq3(3,pe,mt.imeHotkeyArg))("subtitleVisible",mt.isKBMGamesAllowed)}}function dt(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-rotary",57),v.bIt("selectionChanged",function(wt){v.eBV(mt);const Un=v.XpG(2);return v.Njj(Un.onChangeWebcam(wt))}),v.k0s()}if(2&nt){const mt=v.XpG(2);v.Y8G("input",mt.webcamRotaryOptions)("initialState",mt.webcamRotaryInit)("width",mt.rotaryWidth)}}function nn(nt,on){if(1&nt&&(v.qex(0),v.nrm(1,"div",6),v.j41(2,"nv-main-menu-item",55),v.DNE(3,dt,1,3,"nv-rotary",56),v.k0s(),v.bVm()),2&nt){const mt=v.XpG();v.R7$(2),v.Y8G("subTitle",mt.camHotkeyText)("subTitleArg",v.eq3(4,pe,mt.camHotkeyArg))("subtitleVisible",!(mt.isGamepadOrientedMode&&mt.camHotkeyArg.length>0)),v.R7$(),v.Y8G("ngIf",mt.showWebcamRotary)}}function yn(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-item-button",59),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onToggleMicrophone())}),v.k0s()}if(2&nt){const mt=v.XpG(2);v.Y8G("subTitle",mt.micHotkeyText)("disabled",mt.isGfnMicButtonDisabled)}}function Xn(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-main-menu-item",50)(1,"mat-slide-toggle",52),v.bIt("change",function(){v.eBV(mt);const wt=v.XpG(2);return v.Njj(wt.onToggleMicrophone())}),v.k0s()()}if(2&nt){const mt=v.XpG(2);v.Y8G("subTitle",mt.micHotkeyText)("subTitleArg",v.eq3(4,pe,mt.micHotkeyArg))("subtitleVisible",mt.isGfnMicEnabled),v.R7$(),v.Y8G("checked",mt.gfnMicSwitchState)}}function rn(nt,on){if(1&nt&&(v.qex(0),v.DNE(1,yn,1,2,"nv-item-button",58)(2,Xn,2,6,"nv-main-menu-item",34),v.bVm()),2&nt){const mt=v.XpG();v.R7$(),v.Y8G("ngIf",mt.isGfnMicBlocked||mt.isGfnMicButtonDisabled),v.R7$(),v.Y8G("ngIf",!mt.isGfnMicBlocked&&!mt.isGfnMicButtonDisabled)}}function ai(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-item-button",60),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.openVirtualKeyboard())}),v.k0s()}if(2&nt){const mt=v.XpG();v.Y8G("titleString",mt.virtualKbTitleString)}}function ri(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-main-menu-item",61)(1,"nv-rotary",57),v.bIt("selectionChanged",function(wt){v.eBV(mt);const Un=v.XpG();return v.Njj(Un.onChangeStats(wt))}),v.k0s()()}if(2&nt){const mt=v.XpG();v.Y8G("subTitle",mt.statsHotkeyText)("subTitleArg",v.eq3(7,pe,mt.statsHotkeyArg))("subtitleVisible",mt.isKBMGamesAllowed)("sidePaddingRotary",!mt.tvMode),v.R7$(),v.Y8G("input",mt.statsRotaryOptions)("initialState",mt.statsRotatyState)("width",mt.rotaryWidth)}}function Ne(nt,on){if(1&nt){const mt=v.RV6();v.qex(0),v.j41(1,"nv-item-button",62),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.onPerformanceClicked())}),v.k0s(),v.bVm()}if(2&nt){const mt=v.XpG();v.R7$(),v.Y8G("chevron",!0)("titleFontBold",!0)("subTitleArg",v.eq3(3,ke,mt.perfOverlayHotkey))}}function zt(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-item-button",63),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.exitFullScreen())}),v.k0s()}}function vt(nt,on){if(1&nt){const mt=v.RV6();v.j41(0,"nv-item-button",64),v.bIt("clicked",function(){v.eBV(mt);const wt=v.XpG();return v.Njj(wt.quitGfn())}),v.k0s()}if(2&nt){const mt=v.XpG();v.Y8G("titleArg",v.eq3(3,pe,mt.gfnTitle))("subTitle",mt.gfnQuitHotkey)("subtitleVisible",mt.isKBMGamesAllowed)}}let it=(()=>{var nt;class on{constructor(_n,wt,Un,Oi,At,Hn,pi,Zi,Lr,Kr,Qt,di,ji,vi,Zt,Zn,Dn,zn){this.injector=_n,this.loggingService=wt,this.route=Un,this.navigationService=Oi,this.hotkeyService=At,this.galleryService=Hn,this.shadowPlayService=pi,this.webcamService=Zi,this.nvcameraService=Lr,this.oscDisplayService=Kr,this.igoConfig=Qt,this.appBarService=di,this.osService=ji,this.featureSupportService=vi,this.microphoneService=Zt,this.clientInputService=Zn,this.bridgeService=Dn,this.ppeService=zn,this.destroy$=new O.B7,this.screenshotHotkey="",this.mrHotkey="",this.mrHotkeyText="",this.mrTime="",this.isRecording=!1,this.irToggleHotkey="",this.irSaveHotkey="",this.gfStyleToggleHotkey="None",this.minSeconds=15,this.irMin="",this.irSec="",this.irSeconds=0,this.irState=h.xT8.off,this.isIROn=!1,this.isSaveEnabled=!1,this.irHotkey="",this.irHotkeyText="",this.micHotkey="",this.micHotkeyPTT="",this.micHotkeyText="",this.micHotkeyArg="",this.micSubtitleVisible=!1,this.statsHotkey="",this.statsHotkeyText="",this.statsHotkeyArg="",this.imeHotkeyText="",this.imeHotkeyArg="",this.imeEnabled=!1,this.imeHotkey="",this.camHotkeyText="",this.camHotkeyArg="",this.disableRecordSpecialCase=A.Fm.RECORD_SPECIAL_CASE_4K,this.recordSpecialCase=A.Fm,this.photoMode=!1,this.photoModeDisabled=!1,this.photoModeHotkey="",this.gameFilter=!1,this.gameFilterDisabled=!1,this.lowDiskSpace=!1,this.enableLanguage=!1,this.initialLangIndex=5,this.gfnIntegration=!1,this.timeLeftInStream=void 0,this.gfnTitle="",this.gfnQuitHotkey="",this.micRotaryOptions=["commonLabels.Off","mainMenu.AlwaysOn","mainMenu.PushToTalk"],this.micState=h.YQZ.off,this.micRotaryInit=0,this.showMicRotary=!1,this.useMicSwitch=!1,this.micSwitchState=!1,this.micCount=0,this.rotaryWidth=132,this.webcamRotaryOptions=["commonLabels.Off","mainMenu.CaptureOnly","mainMenu.PreviewCapture"],this.webcamRotaryInit=0,this.statsRotaryOptions=["commonLabels.Off","settings.stats.Standard","settings.stats.Compact"],this.statsRotatyState=h.BKk.Off,this.throttleDuration=500,this.showRecent=!1,this.bcHotkey="",this.bcSubtitle="",this.showWebcamControls=!1,this.showWebcamRotary=!1,this.webcamHotkey="",this.isGalleryEnabled=!1,this.isShadowPlayEnabled=!1,this.isWebcamEnabled=!1,this.isBrowserPlatform=!1,this.isGfnMicEnabled=!1,this.isStatisticsEnabled=!1,this.isVirtualKeyboardEnabled=!1,this.isGfnMicBlocked=!0,this.isGfnMicButtonDisabled=!1,this.gfnMicSwitchState=!1,this.isGamepadOrientedMode=!1,this.tvMode=!1,this.isKBMGamesAllowed=!0,this.virtualKbTitleString="",this.showExitOption=!0,this.showTimeLeft=!1,this.isPerformanceAvailable=!1,this.perfOverlayHotkey="",this.sdkGalleryEnable=!1,this.isGfn=!1,this.irL1FlagEnabled=!1,this.screenShotSubTitle=void 0,this.screenShotUrlIcon=void 0,this.screenShotMainMenuUse=void 0,this.photoModeSubTitle=void 0,this.gameFilterSubtitle=void 0,this.gameFilterSubtitleArg=void 0,this.userShortDescription=void 0,this.titleFormat="New AV1 Recording Format Available",this.titleFormatSub="Switch to AV1 format for better compression and quality. You can adjust the codec",this.opens="OPEN SETTINGS",this.dismiss="DISMISS",this.titleParamsFormat={},this.titleParamsFormatSub={},this.showCodecMsg=!1,this.logger=this.loggingService.getLogger("MainMenu"),this.featureSupportService.isGFEMode()?this.perfmonService=this.injector.get(h.zET):(this.gfnInfoService=this.injector.get(h.x_y),this.statisticsService=this.injector.get(h.rJX)),this.isGalleryEnabled=this.featureSupportService.isGalleryEnabled(),this.sdkGalleryEnable=this.featureSupportService.isSdkGalleryEnabled(),this.isShadowPlayEnabled=this.featureSupportService.isShadowPlayEnabled(),this.isWebcamEnabled=this.featureSupportService.isWebcamEnabled(),this.isBrowserPlatform=m.zk.isBrowserPlatform(),this.isStatisticsEnabled=this.featureSupportService.isStatisticsEnabled(),this.isVirtualKeyboardEnabled=this.featureSupportService.isVirtualKeyboardEnabled(),this.isGamepadOrientedMode=this.featureSupportService.isGamepadOrientedMode(),this.tvMode=this.featureSupportService.isTVMode(),this.isKBMGamesAllowed=this.featureSupportService.isKeyboardMouseGamesAllowed(),this.showExitOption=!this.featureSupportService.hideExitFullScreenOption(),this.isGfn="GFN"===this.igoConfig.branding,this.virtualKbTitleString="mainMenu.VirtualKeyboard",this.appBarService.setAll({title:"GFN"===Qt.branding?this.featureSupportService.showTitle()?"product.GFN":"":"product.NVIDIA",icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"},{id:"settings",icon:"settings",tooltip:"tooltips.Settings"}]}),this.gfnIntegration="GFN"===Qt.branding,this.gfnIntegration?(this.showTimeLeft=this.featureSupportService.showTimeLeftMessage(),this.useMicSwitch=!0,this.rotaryWidth=68,this.gfnTitle=this.gfnInfoService?.getStreamingTitle(),this.osService.getQuitHotkey().pipe((0,r.Q)(this.destroy$)).subscribe(Ti=>{this.logger.info("Quit Game hotkey: ",Ti),this.gfnQuitHotkey=Ti===m.rB[0]?"":Ti}),this.featureSupportService.showFeedbackSetting()&&this.appBarService.addIcon({id:"feedback",icon:"feedback",tooltip:"tooltips.Feedback"}),this.clientInputService.isImeEnabled$.pipe((0,r.Q)(this.destroy$)).subscribe(Ti=>{this.logger.info("Checking ClientIME enablement value ",Ti),this.imeEnabled=Ti},Ti=>{this.logger.info("Error getting ClientIME enablement value, defaulting to false",Ti),this.imeEnabled=!1}),this.gfnInfoService?.getRecordSpecialCase().pipe((0,r.Q)(this.destroy$)).subscribe(Ti=>{this.logger.info("disableRecordSpecialCase mode: ",Ti),this.disableRecordSpecialCase=Ti}),this.gfnInfoService.getTimerSubString().pipe((0,r.Q)(this.destroy$)).subscribe(Ti=>{this.userShortDescription=Ti})):this.disableRecordSpecialCase=A.Fm.RECORD_SPECIAL_CASE_NONE,this.appBarService.actionClicked$.pipe((0,r.Q)(this.destroy$)).subscribe(Ti=>{"settings"===Ti?this.onSettingsClicked():"feedback"===Ti&&this.gfnInfoService?.sendFeeback(this.tc)})}screenShotKeyDetails(){this.isGfn?(this.screenShotSubTitle=this.screenshotHotkey,this.screenShotUrlIcon=void 0,this.screenShotMainMenuUse=void 0):(this.screenShotSubTitle="mainMenu.ScreenShotText",this.screenShotUrlIcon="photo_camera",this.screenShotMainMenuUse="true")}photoModeKeyDetails(_n){this.photoModeSubTitle=this.isGfn?_n:"mainMenu.PhotoModeText"}onInstantReplayClicked(){this.logger.info("Instant Replay clicked"),this.navigationService.navigate(["../instantReplay"],{relativeTo:this.route.parent,skipLocationChange:!0},h.jby.instantReplay)}ngOnInit(){if(this.shadowPlayService.getVideoSpecsInitStateUpdates().pipe((0,r.Q)(this.destroy$)).subscribe(()=>{this.showCodecMsg=this.shadowPlayService.getShowCodecMessage()}),this.isGalleryEnabled&&(this.showRecent=this.galleryService.hasAnyEntries()&&!this.galleryService.lowDiskSpaceValue()),this.igoConfig.GFNCefClient?this.featureSupportService.isNvcameraEnabled()&&(this.nvcameraService.isFeatureAvailable().pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.photoMode=_n.photoModeSupport,this.gameFilter=_n.gameFilterSupport,this.getHotkeyAndStyleSlotString()}),this.nvcameraService.gameFilterDisable.pipe((0,r.Q)(this.destroy$)).subscribe(_n=>this.gameFilterDisabled=_n),this.nvcameraService.photoModeDisable.pipe((0,r.Q)(this.destroy$)).subscribe(_n=>this.photoModeDisabled=_n)):(this.photoMode=this.nvcameraService.isPhotoModeSupported(),this.gameFilter=this.nvcameraService.isGameFilterSupported(),this.featureSupportService.isPpeEnabled()&&(this.gameFilter=!0),this.getHotKeyStringForAnselNFreestyle(),this.isPerformanceAvailable=this.perfmonService.isPerformanceAvailable()),this.backCallback$=this.navigationService.escapeEvent().subscribe(()=>{this.oscDisplayService.closeOSC()}),"GFE"===this.igoConfig.branding){this.getPerformanceSubTitle(),this.showWebcamControls=!0,this.webcamInfo=this.webcamService.getWebcamInfo(),this.showWebcamRotary=this.webcamInfo.present,this.webcamRotaryInit=this.webcamInfo.enabled?this.webcamInfo.preview?2:1:0,this.logger.info("Webcam Info:",this.webcamInfo);let _n=!0;this.shadowPlayService.getMicCount().pipe((0,r.Q)(this.destroy$)).subscribe(wt=>{this.micCount=wt,0===wt?(this.showMicRotary=!1,this.createMicSubtitle()):this.shadowPlayService.isCurrentMicAvailable().pipe((0,r.Q)(this.destroy$)).subscribe(Un=>{this.showMicRotary=Un,this.createMicSubtitle()})}),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.CameraToggle).pipe((0,r.Q)(this.destroy$)).subscribe(wt=>{this.logger.info("Webcam hotkey: ",wt),this.webcamHotkey=wt,this.showWebcamRotary&&this.createCameraSubtitle()}),this.webcamService.getWebcamState().pipe((0,r.Q)(this.destroy$)).subscribe(wt=>{_n||(this.webcamRotaryInit=wt?this.webcamInfo.preview?2:1:0),_n=!1}),this.shadowPlayService.getCAMDeviceState().pipe((0,r.Q)(this.destroy$)).subscribe(wt=>{(wt===h.gXb.plugged_in||wt===h.gXb.plugged_out)&&(this.showWebcamRotary=wt===h.gXb.plugged_in,this.webcamInfo.present=wt===h.gXb.plugged_in,this.createCameraSubtitle())})}this.isGalleryEnabled&&(this.galleryService.lowDiskSpaceEvent().pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{_n!==this.lowDiskSpace&&(this.showRecent=this.galleryService.hasAnyEntries()&&!_n),this.lowDiskSpace=_n,this.logger.info("The disk space is low: ",_n)}),this.galleryService.recentEvent().pipe((0,r.Q)(this.destroy$)).subscribe(()=>{this.showRecent=this.galleryService.hasAnyEntries()&&!this.lowDiskSpace})),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.Screenshot).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{A.Fm.RECORD_SPECIAL_CASE_PLAYTEST===this.disableRecordSpecialCase?this.screenshotHotkey="mainMenu.DisabledForPlaytest":(this.logger.info("Screenshot hotkey: ",_n),this.screenshotHotkey=_n),this.screenShotKeyDetails()}),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.NativeKeyboardInputDialog).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("IME hotkey: ",_n),this.imeHotkey=_n}),this.disableRecordSpecialCase||(this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.RecordToggle).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("Manual record hotkey: ",_n),this.mrHotkey=_n}),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.DVRToggle).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("Instant replay toggle hotkey: ",_n),this.irToggleHotkey=_n}),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.DVRSave).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("Instant replay save hotkey: ",_n),this.irSaveHotkey=_n})),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.MicToggle).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("Microphone hotkey: ",_n),this.micHotkey=_n}),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.PTT).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("Microphone PTT hotkey: ",_n),this.micHotkeyPTT=_n}),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.BroadcastToggle).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("Broadcast toggle hotkey: ",_n),this.bcHotkey=_n}),this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.StatisticsToggle).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("Statistics hotkey: ",_n),this.statsHotkey=_n,this.statsHotkeyText="mainMenu.ChangeFormat",this.statsHotkeyArg=this.statsHotkey}),this.isShadowPlayEnabled&&(this.shadowPlayService.getIRState().pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.irState=_n,this.setIRHotkeyFormat()}),this.shadowPlayService.getMRState().pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.isRecording=_n,this.setMRHotkeyFormat()}),(0,S.p)([this.shadowPlayService.getInstantReplayRunningStatus(),this.shadowPlayService.getInstantReplayMaxLength()]).pipe((0,r.Q)(this.destroy$)).subscribe(([_n,wt])=>{this.irState=_n?h.xT8.recording:this.irState,this.irSeconds=void 0===wt?this.minSeconds:wt,this.setIRHotkeyFormat()}),this.bridgeService.executeCommand(a.Ts.Share.Shareserver.GetHighlightsEnable,{}).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.hlL0Text=_n.enable?"mainMenu.HighlightL0Enabled":"mainMenu.HighlightL0Disabled"})),(0,y.Y)(500).pipe((0,r.Q)(this.destroy$)).subscribe(()=>{this.isShadowPlayEnabled&&(this.mrTime=this.shadowPlayService.mrStartTime?this.getFormattedTime(this.shadowPlayService.mrStartTime):""),this.gfnIntegration&&this.updateStreamingTimeLeft()}),this.setupIME(),this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,i.s)(1)).subscribe(_n=>{this.isGfnMicEnabled=_n,_n?this.setupGfnMicrophone():this.isShadowPlayEnabled&&(this.setupMic(),this.shadowPlayService.getMICState().pipe((0,r.Q)(this.destroy$)).subscribe(wt=>{this.micState=wt,this.micSwitchState=wt!==h.YQZ.off,this.micRotaryInit=this.getMicState(wt),this.createMicSubtitle()}),this.shadowPlayService.getMICDeviceState().pipe((0,r.Q)(this.destroy$)).subscribe(wt=>{(wt===h.gXb.plugged_in||wt===h.gXb.plugged_out)&&(this.showMicRotary=wt===h.gXb.plugged_in,this.createMicSubtitle())}))}),this.gfnIntegration&&this.updateStreamingTimeLeft(),this.statisticsService?.statisticsHotkeyPressed().pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.statsRotatyState=_n}),this.statsRotatyState=this.statisticsService?.getStatsState()}ngOnDestroy(){this.backCallback$&&this.backCallback$.unsubscribe(),this.destroy$.next(!0),this.destroy$.unsubscribe()}getHotkeyAndStyleSlotString(){this.getHotKeyStringForAnselNFreestyle()}getHotKeyStringForAnselNFreestyle(){this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.OpenAnsel).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.logger.info("Photo mode hotkey: ",_n),this.photoModeKeyDetails(_n),this.photoModeHotkey=_n}),this.logger.info("getHotKeyStringForAnselNFreestyle"),this.isGfn||this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.OpenFreestyle).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.gameFilterHotkey=_n}),this.nvcameraService.gfStyleToggleHotkey$.pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.gfStyleToggleHotkey=_n}),this.nvcameraService.getNListenForGameFilterHotkey().pipe((0,r.Q)(this.destroy$)).subscribe()}createCameraSubtitle(){this.webcamInfo.present?(this.camHotkeyText="mainMenu.Toggle",this.camHotkeyArg=this.webcamHotkey):(this.camHotkeyText="mainMenu.NotAvailable",this.camHotkeyArg="")}setIRHotkeyFormat(){this.isIROn=this.irState!==h.xT8.off;const _n=this.isGfn&&this.irState===h.xT8.recording||!this.isGfn&&this.isIROn;if(this.isSaveEnabled=this.irState===h.xT8.recording,this.irHotkey=_n?this.irSaveHotkey:this.irToggleHotkey,this.irSec="",this.irMin="",this.disableRecordSpecialCase)this.irHotkeyText=A.Fm.RECORD_SPECIAL_CASE_PLAYTEST===this.disableRecordSpecialCase?"mainMenu.DisabledForPlaytest":"mainMenu.DisableRecord";else if(_n)if(this.irSeconds<60)this.irSec=this.irSeconds.toString(),this.irHotkeyText="mainMenu.SaveLastSecs";else{const wt=Math.floor(this.irSeconds/60);this.irSec=(this.irSeconds-60*wt).toString(),this.irMin=wt.toString(),this.irHotkeyText="mainMenu.SaveLast"}else this.irHotkeyText="mainMenu.Toggle"}setMRHotkeyFormat(){this.mrHotkeyText=this.disableRecordSpecialCase?A.Fm.RECORD_SPECIAL_CASE_PLAYTEST===this.disableRecordSpecialCase?"mainMenu.DisabledForPlaytest":"mainMenu.DisableRecord":this.isRecording?"mainMenu.StopAndSave":"mainMenu.Start"}onBCStateChange(_n){this.bcState=_n,this.bcSubtitle=_n===h.lyd.active||_n===h.lyd.paused?"mainMenu.Stop":""}getFormattedTime(_n){return this.formatTime(_n,Date.now())}formatTime(_n,wt){const Un=Math.max(0,Math.floor((wt-_n)/1e3));return L.utc(1e3*Un).format("HH:mm:ss")}updateStreamingTimeLeft(){const _n=this.gfnInfoService?.getStreamingEndTime();_n>0&&(this.timeLeftInStream=this.formatTime(Date.now(),_n))}onScreenshotClicked(){this.logger.info("Screenshot button clicked"),this.shadowPlayService.captureScreenshot()}onIMEClicked(){this.oscDisplayService.closeOSC(c.oy.IGO),this.clientInputService.initImeInput(g.vy.Igo)}onClickIRStart(){this.logger.info("IR Start clicked"),this.shadowPlayService.enableInstantReplay()}onClickIRSave(){this.logger.info("IR Save clicked"),this.shadowPlayService.saveIR()}onClickIRStop(){this.logger.info("IR Stop clicked"),this.shadowPlayService.disableInstantReplay()}onToggleIR(_n){this.logger.info("on toggle IR: ",_n.checked),_n.checked?this.onClickIRStart():this.onClickIRStop()}onClickManualRecord(){this.logger.info("Manual Record clicked"),this.isRecording?this.shadowPlayService.stopAndSaveManualRecord():this.shadowPlayService.startManualRecord()}onRotaryMic(_n){this.logger.info("Microphone Rotary: ",_n);const wt=this.getMicRotaryInit(_n);this.micState=wt,this.micRotaryInit=_n,this.createMicSubtitle(),this.shadowPlayService.setMicMode(wt)}onToggleMicSwitch(_n){const wt=_n.checked?h.YQZ.on:h.YQZ.off;this.micSwitchState=_n.checked,this.micState=wt,this.createMicSubtitle(),this.shadowPlayService.setMicMode(wt)}onToggleMicrophone(){this.microphoneService.toggleMicrophone()}onChangeStats(_n){this.statisticsService.statisticsStateChanged(_n)}onPerformanceClicked(){this.logger.info("Performance clicked"),this.perfmonService.launchPerformanceMenu()}onCodecClick(_n=!1){this.logger.info("Codec MSG clicked"),this.shadowPlayService.dismissShowCodecMessage(),_n||(this.shadowPlayService.videoCaptureReturnLocation="../main-menu",this.navigationService.navigate(["../settings/video"],{relativeTo:this.route.parent,skipLocationChange:!0},h.jby.videoCapture)),this.showCodecMsg=!1}getPerformanceSubTitle(){this.hotkeyService.getHotkeyString(a.Or.Share.Shareserver.HotkeyEnum.PMOCOverlay).pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.perfOverlayHotkey=_n})}getMicRotaryInit(_n){switch(_n){case 0:default:return h.YQZ.off;case 1:return h.YQZ.on;case 2:return h.YQZ.ptt}}getMicState(_n){switch(_n){case h.YQZ.off:default:return 0;case h.YQZ.on:return 1;case h.YQZ.ptt:return 2}}onBroadcastClicked(){this.logger.info("Broadcast clicked"),this.shadowPlayService.handlePrivacyAndAvailability("br").pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{_n&&this.navigationService.navigate(["../content/share"],{relativeTo:this.route.parent,skipLocationChange:!0},h.jby.broadcast)})}onChangeWebcam(_n){this.logger.info("Webcam changed: ",_n),this.webcamRotaryInit=_n,this.webcamService.enableWebcam(0!==_n),this.webcamService.queueWebcamPreview(2===_n)}onGalleryClicked(){this.logger.info("Gallery clicked"),this.navigationService.navigate(["../gallery"],{relativeTo:this.route.parent,skipLocationChange:!0},h.jby.galleryMain)}onSettingsClicked(){this.logger.info("Settings clicked"),this.navigationService.navigate(["../settings/settings"],{relativeTo:this.route.parent,skipLocationChange:!0},h.jby.settings)}onPhotoModeClicked(){this.logger.info("Photo mode clicked"),this.nvcameraService.pageLaunchMode=x.gv.UsingUI,this.nvcameraService.launchPhotoModeMenu(h.onG.Ui)}onHighLightsClicked(){this.logger.info("Highlights mode clicked"),this.navigationService.navigate(["../settings/highlights"],{relativeTo:this.route.parent,skipLocationChange:!0},h.jby.highlights)}onGamesFilterClicked(){this.logger.info("Games Filter mode clicked"),this.nvcameraService.pageLaunchMode=x.gv.UsingUI,this.nvcameraService.launchGameFilterMenu(h.onG.Ui)}createGfnMicSubtitle(){this.isGfnMicBlocked?(this.micHotkeyText=m.zk.isCefPlatform()?"mainMenu.MicBlockedMessage":"mainMenu.MicDisabled",this.micHotkeyArg=""):this.isGfnMicButtonDisabled?(this.micHotkeyText="mainMenu.MicNotFoundMessage",this.micHotkeyArg=""):(this.micHotkeyText="mainMenu.Toggle",this.micHotkeyArg=this.micHotkey)}createMicSubtitle(){this.showMicRotary||this.useMicSwitch?(this.micHotkeyText="mainMenu.Toggle",this.micHotkeyArg=this.micHotkey,this.micState===h.YQZ.ptt&&(this.micHotkeyText="mainMenu.ActivatePushToTalk",this.micHotkeyArg=this.micHotkeyPTT),"None"===this.micHotkeyArg&&(this.micSubtitleVisible=!1)):(this.micHotkeyText=0===this.micCount?"mainMenu.NotAvailable":"mainMenu.Disabled",this.micHotkeyArg="",this.micSubtitleVisible=!0)}setupGfnMicrophone(){this.microphoneService.currentMicState$.pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.isGfnMicBlocked=_n===T.EO.PermissionPending||_n===T.EO.PermissionDenied,this.isGfnMicButtonDisabled=_n===T.EO.NoMicFound,this.gfnMicSwitchState=_n===T.EO.Unmuted,this.logger.info("Microphone blocked?",this.isGfnMicBlocked),this.logger.info("Microphone button disabled?",this.isGfnMicButtonDisabled),this.createGfnMicSubtitle()})}setupMic(){this.shadowPlayService.getMicMode().pipe((0,r.Q)(this.destroy$)).subscribe(_n=>{this.micState=_n,this.micSwitchState=_n!==h.YQZ.off,this.micRotaryInit=this.getMicState(_n),this.createMicSubtitle()})}setupIME(){this.imeHotkeyText="mainMenu.OpenClose",this.imeHotkeyArg=this.imeHotkey}getGameFilterSubTitle(){const _n=this.nvcameraService.isAnyGameFilterSlotSelected(),wt=this.nvcameraService.isAnyGameFilterSlotSelectedNvApp()||this.ppeService.isAnyPpeFilterSlotSelected(),Un=this.nvcameraService.isAppStartedReceived,Oi=this.nvcameraService.isAnyGameFilterSlotSelectedNvApp()?this.nvcameraService.getCurrentSlotIndex():this.ppeService.getCurrentPpeSlotIndex(),At={subTitle:"",args:{}};if(this.gameFilterDisabled)At.subTitle="nvcamera.NotCurrentlyAvailable";else{const Hn=this.nvcameraService.getCurrentModSlotName();_n&&this.isGfn?Hn||"None"!==this.gfStyleToggleHotkey?Hn&&"None"!==this.gfStyleToggleHotkey?(At.subTitle="nvcamera.StyleAndHotkeySubtitle",At.args={hotkey:this.gfStyleToggleHotkey,styleName:Hn}):Hn?(At.subTitle="nvcamera.StyleOnlySubtitle",At.args={styleName:Hn}):"None"!==this.gfStyleToggleHotkey&&(At.subTitle="nvcamera.HotkeyOnlySubtitle",At.args={hotkey:this.gfStyleToggleHotkey,slotIndex:this.nvcameraService.getCurrentSlotIndex()}):(At.subTitle="nvcamera.Style",At.args={arg:this.nvcameraService.getCurrentSlotIndex()}):!this.isGfn&&Un&&!wt&&this.gameFilterHotkey?(At.subTitle="nvcamera.GameFilterNoneSelected",At.args={hotkey:this.gameFilterHotkey}):!this.isGfn&&Un&&wt&&this.gameFilterHotkey?(At.subTitle="nvcamera.GameFilterSupportedGameProfile",At.args={hotkey:this.gameFilterHotkey,slotIndex:Oi}):this.isGfn||Un?At.subTitle="nvcamera.None":(At.subTitle="nvcamera.GameFilterUnsupportedGame",At.args={hotkey:this.gameFilterHotkey})}return At}getPhotoModeSubTitle(){return this.photoModeDisabled?"nvcamera.NotCurrentlyAvailable":this.photoModeHotkey}quitGfn(){this.gfnInfoService?.quitGfnStreaming()}exitFullScreen(){this.gfnInfoService?.exitFullScreen()}openVirtualKeyboard(){this.clientInputService.toggleInputUI(!0)}}return(nt=on).\u0275fac=function(_n){return new(_n||nt)(v.rXU(v.zZn),v.rXU(m.J6),v.rXU(l.nX),v.rXU(h.o_p),v.rXU(h.QSC),v.rXU(h.AFS),v.rXU(h.W1J),v.rXU(h.b4n),v.rXU(h.h8x),v.rXU(h.Bqk),v.rXU(h.k$F),v.rXU(h.gZv),v.rXU(h.aTF),v.rXU(h.Rvq),v.rXU(T.CQ),v.rXU(h.$jZ),v.rXU(m.NZ),v.rXU(h.Vlf))},nt.\u0275cmp=v.VBU({type:nt,selectors:[["app-main-menu"]],viewQuery:function(_n,wt){if(1&_n&&v.GBs(ae,5,v.c1b),2&_n){let Un;v.mGM(Un=v.lsd())&&(wt.tc=Un.first)}},decls:20,vars:13,consts:[["tc",""],["fxLayout","column","fxFlex",""],["fxFlex","grow"],[4,"ngIf"],[1,"nv-gap-1"],["class","codec-padding","fxLayout","column",4,"ngIf"],[1,"nv-gap-16"],["fxLayout","column",4,"ngIf"],["svgIcon","keyboard","titleString","mainMenu.NativeKeyboardInputDialog",3,"subTitle","subTitleArg","subtitleVisible","clicked",4,"ngIf"],["svgIcon","keyboard",3,"titleString","clicked",4,"ngIf"],[3,"marginNotReq"],["icon","analytics","titleString","settings.stats.Statistics",3,"subTitle","subTitleArg","subtitleVisible","sidePaddingRotary",4,"ngIf"],["svgIcon","fullscreen_exit","titleString","mainMenu.ExitFullscreen",3,"clicked",4,"ngIf"],["svgIcon","logout","titleString","mainMenu.QuitGame",3,"titleArg","subTitle","subtitleVisible","clicked",4,"ngIf"],["icon","time","titleString","mainMenu.GfnSessionTimer",3,"subTitle"],[1,"font-body2"],["fxLayout","column",1,"codec-padding"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlexAlign","center","fxLayout","column","fxLayoutAlign","start start","fxFlex","",1,"codec-text-padding"],[1,"font-body1","font-color-primary"],[1,"nv-gap-14"],[1,"font-body2","font-color-secondary"],[1,"nv-gap-32"],["fxLayout","row","fxLayoutAlign","end end"],["fxLayoutAlign","end end",1,"font-body2","codec-options-padding",3,"click"],[1,"nv-horizontal-gap-8"],["fxLayout","column"],["svgIcon","gallery","titleString","gallery.Gallery",3,"clicked","chevron","disabled"],["icon","record","titleString","mainMenu.ManualRecord",3,"subTitle","subTitleArg","subtitleVisible","disabled",4,"ngIf"],["titleString","mainMenu.ManualRecord","svgIcon","record",3,"urlIcon","subTitle","subTitleArg","mainMenuUse","subText","disabled","clicked",4,"ngIf"],["icon","replay","titleString","mainMenu.InstantReplay",3,"subTitle","subTitleArg","subtitleVisible","disabled",4,"ngIf"],["titleString","mainMenu.InstantReplay","svgIcon","replay",3,"subTitle","subTitleArg","secondButton","chevron","disabled","clicked","secondButtonclicked",4,"ngIf"],["class","nv-gap-16",4,"ngIf"],["svgIcon","image","titleString","mainMenu.Screenshot",3,"clicked","subTitle","subTitleArg","subtitleVisible","urlIcon","mainMenuUse","disabled"],["icon","mic","titleString","mainMenu.Microphone",3,"subTitle","subTitleArg","subtitleVisible",4,"ngIf"],[1,"rotary-side-padding"],["svgIcon","mic","title","mainMenu.Microphone",3,"input","initialState","subTitle","subTitleArg","width","selectionChanged",4,"ngIf"],["icon","record","titleString","mainMenu.ManualRecord",3,"subTitle","subTitleArg","subtitleVisible","disabled"],["class","font-body2 timer-spacing",4,"ngIf"],["fxFlex","none",1,"nv-horizontal-gap-24"],[3,"clicked","svgIcon","tooltip","disabled"],[1,"font-body2","timer-spacing"],["titleString","mainMenu.ManualRecord","svgIcon","record",3,"clicked","urlIcon","subTitle","subTitleArg","mainMenuUse","subText","disabled"],["icon","replay","titleString","mainMenu.InstantReplay",3,"subTitle","subTitleArg","subtitleVisible","disabled"],["svgIcon","save","tooltip","tooltips.Save",3,"disabled","clicked",4,"ngIf"],["svgIcon","save","tooltip","tooltips.Save",3,"clicked","disabled"],["titleString","mainMenu.InstantReplay","svgIcon","replay",3,"clicked","secondButtonclicked","subTitle","subTitleArg","secondButton","chevron","disabled"],["svgIcon","photo_camera","titleString","nvcamera.PhotoMode",3,"clicked","chevron","subTitle","subTitleArg","subtitleVisible","disabled"],["svgIcon","highlights","titleString","filter.Highlights",3,"clicked","chevron","subTitle","subtitleVisible","disabled"],["svgIcon","freestyle","titleString","nvcamera.GameFilter",3,"clicked","chevron","subTitle","subTitleArg","subtitleVisible","disabled"],["icon","mic","titleString","mainMenu.Microphone",3,"subTitle","subTitleArg","subtitleVisible"],["class","mic-spacing",3,"checked","change",4,"ngIf"],[1,"mic-spacing",3,"change","checked"],["svgIcon","mic","title","mainMenu.Microphone",3,"selectionChanged","input","initialState","subTitle","subTitleArg","width"],["svgIcon","keyboard","titleString","mainMenu.NativeKeyboardInputDialog",3,"clicked","subTitle","subTitleArg","subtitleVisible"],["icon","videocam","titleString","mainMenu.Webcam",3,"subTitle","subTitleArg","subtitleVisible"],[3,"input","initialState","width","selectionChanged",4,"ngIf"],[3,"selectionChanged","input","initialState","width"],["svgIcon","mic","titleString","mainMenu.Microphone",3,"subTitle","disabled","clicked",4,"ngIf"],["svgIcon","mic","titleString","mainMenu.Microphone",3,"clicked","subTitle","disabled"],["svgIcon","keyboard",3,"clicked","titleString"],["icon","analytics","titleString","settings.stats.Statistics",3,"subTitle","subTitleArg","subtitleVisible","sidePaddingRotary"],["svgIcon","analytics","titleString","perfmon.performance","subTitle","perfmon.togglePerfOverlay",3,"clicked","chevron","titleFontBold","subTitleArg"],["svgIcon","fullscreen_exit","titleString","mainMenu.ExitFullscreen",3,"clicked"],["svgIcon","logout","titleString","mainMenu.QuitGame",3,"clicked","titleArg","subTitle","subtitleVisible"]],template:function(_n,wt){1&_n&&(v.j41(0,"div",1)(1,"div",2),v.DNE(2,De,5,5,"ng-container",3),v.nrm(3,"div",4),v.DNE(4,Me,19,12,"div",5),v.nrm(5,"div",6),v.DNE(6,$e,3,3,"div",7)(7,Cn,15,19,"div",3)(8,fn,1,5,"nv-item-button",8)(9,nn,4,6,"ng-container",3)(10,rn,3,2,"ng-container",3)(11,ai,1,1,"nv-item-button",9),v.k0s(),v.qex(12),v.nrm(13,"nv-divider",10),v.DNE(14,ri,2,9,"nv-main-menu-item",11)(15,Ne,2,5,"ng-container",3)(16,zt,1,0,"nv-item-button",12)(17,vt,1,5,"nv-item-button",13),v.bVm(),v.nrm(18,"div",null,0),v.k0s()),2&_n&&(v.R7$(2),v.Y8G("ngIf",wt.gfnIntegration&&wt.showTimeLeft&&wt.timeLeftInStream),v.R7$(2),v.Y8G("ngIf",wt.showCodecMsg),v.R7$(2),v.Y8G("ngIf",wt.isGalleryEnabled),v.R7$(),v.Y8G("ngIf",wt.isShadowPlayEnabled),v.R7$(),v.Y8G("ngIf",wt.imeEnabled&&wt.isKBMGamesAllowed),v.R7$(),v.Y8G("ngIf",wt.isWebcamEnabled&&wt.showWebcamControls),v.R7$(),v.Y8G("ngIf",wt.isGfnMicEnabled),v.R7$(),v.Y8G("ngIf",wt.isVirtualKeyboardEnabled),v.R7$(2),v.Y8G("marginNotReq",wt.tvMode),v.R7$(),v.Y8G("ngIf",wt.isStatisticsEnabled),v.R7$(),v.Y8G("ngIf",wt.isPerformanceAvailable),v.R7$(),v.Y8G("ngIf",wt.gfnIntegration&&wt.isBrowserPlatform&&!wt.tvMode&&wt.showExitOption),v.R7$(),v.Y8G("ngIf",wt.gfnIntegration))},dependencies:[n.bT,V.DJ,V.sA,V.R$,V.UI,D.$,F.j,I.X,k.I,R.P2,G.tG,xe,de,se.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.timer-spacing[_ngcontent-%COMP%]{padding:2px 0 8px}.mic-spacing[_ngcontent-%COMP%]{padding:8px}.main-item-height[_ngcontent-%COMP%]{height:60px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}.codec-padding[_ngcontent-%COMP%]{padding:22px 8px 8px;background-color:#393939}.codec-text-padding[_ngcontent-%COMP%]{padding:0 16px}.codec-options-padding[_ngcontent-%COMP%]{padding:8px;color:#fff}.codec-options-padding[_ngcontent-%COMP%]:hover{background-color:#494949;cursor:pointer}.codec-options-padding[_ngcontent-%COMP%]:focus{background-color:#494949}[_nghost-%COMP%]{padding:0 0 16px}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:24px}"]}),on})();var Ut=d(27216);const jn=[{path:"",component:it,data:{level:0}},{path:"center-view",component:Ut.VI,outlet:"centerPane",children:[{path:"preview",component:Ut.MG}]}];let wn=(()=>{var nt;class on{}return(nt=on).\u0275fac=function(_n){return new(_n||nt)},nt.\u0275mod=v.$C({type:nt}),nt.\u0275inj=v.G2t({imports:[n.MD,p.YF,P.G,_.i,l.iI.forChild(jn),(0,m.BU)()]}),on})()},17617:(Ue,W,d)=>{"use strict";d.d(W,{i:()=>R});var n=d(56106),l=d(97979),p=d(99204),m=d(20288),_=d(47973),P=d(96501),v=d(44296),O=d(48362),S=d(44224),y=d(29370),r=d(12949),i=d(62141),a=d(49678),h=d(26945),g=d(50599),c=d(33955),T=d(26537),A=d(37278),L=d(30783),x=d(44186),V=d(51635),D=d(31308),F=d(61876),I=d(58527);const k=[n.YN,_.wG,l.ic,P.Wh,v.bB,O.s5,p.D6,m.PO,S.w,y.m_,r.Ve,i.jm,a.Wk,g.fS,A.E9,h.MY,c.Dy,T.hM,L.$D,x.uc,V.pZ,D.Pd,F.bm];let R=(()=>{var G;class Y{}return(G=Y).\u0275fac=function($){return new($||G)},G.\u0275mod=I.$C({type:G}),G.\u0275inj=I.G2t({providers:[{provide:T.di,useValue:{exitAnimationDuration:"0ms",enterAnimationDuration:"0ms"}}],imports:[n.YN,k,n.YN,_.wG,l.ic,P.Wh,v.bB,O.s5,p.D6,m.PO,S.w,y.m_,r.Ve,i.jm,a.Wk,g.fS,A.E9,h.MY,c.Dy,T.hM,L.$D,x.uc,V.pZ,D.Pd,F.bm]}),Y})()},95843:(Ue,W,d)=>{"use strict";d.r(W),d.d(W,{NvcameraModule:()=>Bs});var n=d(61142),l=d(14354),p=d(20288),m=d(51006),_=d(3567),P=d(62668),v=d(17617),O=d(80583),S=d(892),y=d(4208),r=d(1331),i=d(58527),a=d(65240),h=d(43664),g=d(52834),c=d(21254),T=d(3457),A=d(28139),L=d(22355),x=d(35146),V=d(43848),D=d(19392),F=d(93181),I=d(3496),k=d(8619),R=d(91384),G=d(75707),Y=d(14714),K=d(65706),$=d(83915),ee=d(93702),J=d(79539),z=d(86447),te=d(41346),X=d(30254),re=d(74931),ge=d(33668),oe=d(19724),xe=d(27211),ue=d(83486),N=d(56106),se=d(49678),ce=d(54676);function Z(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"mat-radio-button",2),i.bIt("change",function(){const vn=i.eBV(Tn).index,oi=i.XpG();return i.Njj(oi.onChange(vn))}),i.EFF(1),i.k0s()}if(2&li){const Tn=dr.$implicit;i.Y8G("value",Tn),i.R7$(),i.SpI(" ",Tn," ")}}let de=(()=>{var li;class dr{constructor(){this.disable=!1,this.changedSelection=new i.bkB}ngOnInit(){this.setEntry()}onChange(tn){this.selection!==tn&&(this.selection=tn,this.changedSelection.emit(tn),this.setEntry())}setEntry(){this.input&&this.input.length>0?((this.selection<0||this.selection>=this.input.length)&&(this.selection=0),this.entry=this.input[this.selection],this.disable=!!this.disabled||this.input.length<2):(this.entry="",this.disable=!0)}}return(li=dr).\u0275fac=function(tn){return new(tn||li)},li.\u0275cmp=i.VBU({type:li,selectors:[["nv-radio-button"]],inputs:{selection:"selection",input:"input",disabled:"disabled"},outputs:{changedSelection:"changedSelection"},decls:2,vars:3,consts:[["fxLayout","column",3,"ngModelChange","ngModel","disabled"],["class","nv-radio-button",3,"value","change",4,"ngFor","ngForOf"],[1,"nv-radio-button",3,"change","value"]],template:function(tn,vn){1&tn&&(i.j41(0,"mat-radio-group",0),i.mxI("ngModelChange",function(Ci){return i.DH7(vn.entry,Ci)||(vn.entry=Ci),Ci}),i.DNE(1,Z,2,2,"mat-radio-button",1),i.k0s()),2&tn&&(i.R50("ngModel",vn.entry),i.Y8G("disabled",vn.disable),i.R7$(),i.Y8G("ngForOf",vn.input))},dependencies:[n.Sq,T.DJ,N.BC,N.vS,se.VT,se._g,ce.tG,g.I],styles:[".nv-radio-button{padding:8px}\n"],encapsulation:2}),dr})();var ae=d(43822),pe=d(44296),_e=d(29370),ke=d(62141),De=d(26945),Me=d(5428);let je=(()=>{var li;class dr{constructor(tn,vn,oi,Ci,or){this.nvCameraService=tn,this.loggingService=vn,this.cdr=oi,this.igoConfig=Ci,this.injector=or,this.disabled=!1,this.logger=this.loggingService.getLogger("FilterSlider")}ngOnInit(){this.igoConfig.GFNCefClient||(this.ppeService=this.injector.get(r.Vlf))}onSliderMoved(tn){this.control.currentUIValue!==tn.value&&(this.control.currentUIValue=tn.value,this.onSliderValueChanged())}onSliderValueChanged(){this.cdr.detectChanges(),this.control.currentValue=this.nvCameraService.normalizeSliderValue(this.control.currentUIValue,this.control.uiMinValue,this.control.uiMaxValue,this.control.minValue,this.control.maxValue),this.filter.controls[this.control.id].currentValueArray[this.control.dimension]=this.control.currentValue,this.filter.isPPEFilter?this.ppeService.runTimeChangeControlValue(this.filter).subscribe():this.nvCameraService.setFilterAttribute(this.filter.id,this.filter.stackIdx,this.control.id,r.xdE.slider,this.control.dataType,this.filter.controls[this.control.id].currentValueArray).subscribe(tn=>{this.logger.info("slider change successful = "+tn)},tn=>{this.logger.error("slider change failed = "+JSON.stringify(tn))})}}return(li=dr).\u0275fac=function(tn){return new(tn||li)(i.rXU(r.h8x),i.rXU(_.J6),i.rXU(i.gRc),i.rXU(r.k$F),i.rXU(i.zZn))},li.\u0275cmp=i.VBU({type:li,selectors:[["igo-filter-slider"]],inputs:{control:"control",filter:"filter",disabled:"disabled"},decls:6,vars:9,consts:[["fxLayout","column"],["fxLayout","row",1,"title-padding","font-body1"],["fxFlex","grow"],["fxFlex","none"],["fxFlex","","valueEntry","true","formatTextAs","Decimal",1,"slider-left-padding",3,"input","valueChange","min","max","step","value","default","disabled"]],template:function(tn,vn){1&tn&&(i.j41(0,"div",0)(1,"div",1)(2,"div",2),i.EFF(3),i.k0s()(),i.j41(4,"div",3)(5,"nv-hig-slider",4),i.bIt("input",function(Ci){return vn.onSliderMoved(Ci)})("valueChange",function(){return vn.onSliderValueChanged()}),i.k0s()()()),2&tn&&(i.R7$(),i.AVh("title-disabled-font",vn.disabled),i.R7$(2),i.JRh(vn.control.displayName),i.R7$(2),i.Y8G("min",vn.control.uiMinValue)("max",vn.control.uiMaxValue)("step",vn.control.uiStepSize)("value",vn.control.currentUIValue)("default",vn.control.defaultValue)("disabled",vn.disabled))},dependencies:[g.I,T.DJ,T.UI,Me.t],styles:[".title-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.title-disabled-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffff61}.tv-view[_ngcontent-%COMP%] .title-disabled-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .title-disabled-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .title-disabled-font[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .title-disabled-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .title-disabled-font[_ngcontent-%COMP%]{color:#ffffffd9}.slider-left-padding[_ngcontent-%COMP%]{padding-top:2.5px;padding-bottom:2.5px}.isLtr[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}"]}),dr})(),$e=(()=>{var li;class dr{constructor(tn,vn){this.nvCameraService=tn,this.loggingService=vn,this.logger=this.loggingService.getLogger("FilterEditbox")}editBoxChanged(tn){this.control.currentValueArray[this.control.dimension]=parseFloat(tn),this.nvCameraService.setFilterAttribute(this.filter.id,this.filter.stackIdx,this.control.id,r.xdE.edit,this.control.dataType,this.control.currentValueArray).subscribe(vn=>{this.logger.info("editbox value change successful = "+vn)},vn=>{this.logger.error("editbox value change failed = "+JSON.stringify(vn))})}}return(li=dr).\u0275fac=function(tn){return new(tn||li)(i.rXU(r.h8x),i.rXU(_.J6))},li.\u0275cmp=i.VBU({type:li,selectors:[["igo-filter-editbox"]],inputs:{control:"control",filter:"filter"},decls:6,vars:4,consts:[["fxLayout","row"],["fxFlex","grow"],[3,"textChange","text","placeholderText","disabled","textMaxLength"]],template:function(tn,vn){1&tn&&(i.j41(0,"div",0)(1,"div",1),i.EFF(2),i.k0s()(),i.j41(3,"div",0)(4,"div",1)(5,"nv-input",2),i.mxI("textChange",function(Ci){return i.DH7(vn.control.currentValue,Ci)||(vn.control.currentValue=Ci),Ci}),i.bIt("textChange",function(Ci){return vn.editBoxChanged(Ci)}),i.k0s()()()),2&tn&&(i.R7$(2),i.JRh(vn.control.displayName),i.R7$(3),i.R50("text",vn.control.currentValue),i.Y8G("disabled",!1)("textMaxLength",100))},dependencies:[g.I,c.Q,T.DJ,T.UI],encapsulation:2}),dr})();const Oe=li=>({activeFilterCount:li}),gt=()=>[],qt=li=>({availableFilterCount:li});function ye(li,dr){1&li&&(i.j41(0,"div")(1,"span",7),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&li&&(i.R7$(2),i.JRh(i.bMT(3,1,"nvcamera.NONEStateDescription")))}function Re(li,dr){1&li&&(i.j41(0,"span",13),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&li&&(i.R7$(),i.JRh(i.bMT(2,1,"nvcamera.HeaderTitleFilters")))}function Ze(li,dr){if(1&li&&(i.j41(0,"span",13),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&li){const Tn=i.XpG(3);i.R7$(),i.JRh(i.i5U(2,1,"nvcamera.ActiveFilters",i.eq3(4,Oe,Tn.filterStack.filters.length+Tn.ppeFilterStack.filters.length)))}}function et(li,dr){if(1&li&&(i.j41(0,"div",11),i.DNE(1,Re,3,3,"span",12)(2,Ze,3,6,"span",12),i.k0s()),2&li){const Tn=i.XpG(2);i.R7$(),i.Y8G("ngIf",!Tn.isNewFilterUI),i.R7$(),i.Y8G("ngIf",Tn.isNewFilterUI&&(Tn.nvCameraReady||Tn.isPpeFiltersVisible)&&!Tn.disabledDueToGlobalToggle)}}function xt(li,dr){if(1&li){const Tn=i.RV6();i.qex(0),i.j41(1,"nv-item-button",14),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.moveSelectedFiltersUp())}),i.k0s(),i.j41(2,"nv-item-button",15),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.moveSelectedFiltersDown())}),i.k0s(),i.j41(3,"nv-item-button",16),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.deleteSelectedFilters())}),i.k0s(),i.bVm()}if(2&li){const Tn=i.XpG(2);i.R7$(),i.Y8G("disabled",Tn.filterStack.upButtonDisabled),i.R7$(),i.Y8G("disabled",Tn.filterStack.downButtonDisabled)}}function un(li,dr){if(1&li){const Tn=i.RV6();i.qex(0),i.j41(1,"nv-item-button",14),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.moveSelectedFiltersUp())}),i.k0s(),i.j41(2,"nv-item-button",15),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.moveSelectedFiltersDown())}),i.k0s(),i.j41(3,"nv-item-button",17),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.deleteSelectedFilters())}),i.k0s(),i.bVm()}if(2&li){const Tn=i.XpG(2);i.R7$(),i.Y8G("disabled",Tn.filterStack.upButtonDisabled||0===Tn.filterStack.selectedFilterCount||Tn.ppeFilterStack.selectedFilterCount>0),i.R7$(),i.Y8G("disabled",Tn.filterStack.downButtonDisabled||0===Tn.filterStack.selectedFilterCount||Tn.ppeFilterStack.selectedFilterCount>0),i.R7$(),i.Y8G("disabled",Tn.filterStack.selectedFilterCount+Tn.ppeFilterStack.selectedFilterCount===0)}}function ct(li,dr){1&li&&(i.qex(0),i.nrm(1,"nv-item-button",22),i.bVm()),2&li&&(i.R7$(),i.Y8G("disabled",!0))}function Gt(li,dr){if(1&li&&(i.qex(0),i.nrm(1,"nv-item-button",23),i.bVm()),2&li){i.XpG();const Tn=i.sdS(4);i.R7$(),i.Y8G("matMenuTriggerFor",Tn)}}function pn(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"button",25),i.bIt("click",function(){i.eBV(Tn);const vn=i.XpG().$implicit,oi=i.XpG(3);return i.Njj(oi.onFilterAdded(vn))}),i.j41(1,"span",26),i.EFF(2),i.k0s()()}if(2&li){const Tn=i.XpG().$implicit;i.R7$(2),i.JRh(Tn.name)}}function st(li,dr){if(1&li&&(i.qex(0),i.DNE(1,pn,3,1,"button",24),i.bVm()),2&li){const Tn=dr.$implicit;i.R7$(),i.Y8G("ngIf",Tn.isVisible)}}function mn(li,dr){if(1&li&&(i.j41(0,"div",18),i.DNE(1,ct,2,1,"ng-container",2)(2,Gt,2,1,"ng-container",2),i.j41(3,"mat-menu",19,0)(5,"div",20),i.DNE(6,st,2,1,"ng-container",21),i.k0s()()()),2&li){const Tn=i.XpG(2);i.R7$(),i.Y8G("ngIf",Tn.isFilterDropdownDisabled()),i.R7$(),i.Y8G("ngIf",!Tn.isFilterDropdownDisabled()),i.R7$(4),i.Y8G("ngForOf",Tn.filterList)}}function Bn(li,dr){if(1&li&&(i.j41(0,"div",8),i.DNE(1,et,3,2,"div",9)(2,xt,4,2,"ng-container",2)(3,un,4,3,"ng-container",2)(4,mn,7,3,"div",10),i.k0s()),2&li){const Tn=i.XpG();i.R7$(),i.Y8G("ngIf",Tn.isAppStartedReceived||Tn.nvCameraReady),i.R7$(),i.Y8G("ngIf",!Tn.isNewFilterUI&&Tn.filterStack.selectedFilterCount>0),i.R7$(),i.Y8G("ngIf",Tn.isNewFilterUI&&Tn.isAppStartedReceived&&Tn.filterStack.filters.length+Tn.ppeFilterStack.filters.length>0&&!Tn.disabledDueToGlobalToggle),i.R7$(),i.Y8G("ngIf",!Tn.isNewFilterUI)}}function En(li,dr){1&li&&(i.j41(0,"div",27)(1,"mat-icon",28),i.EFF(2,"info"),i.k0s(),i.j41(3,"span"),i.EFF(4),i.nI1(5,"translate"),i.k0s()()),2&li&&(i.R7$(4),i.JRh(i.bMT(5,1,"nvcamera.AddFilterMessage")))}function Cn(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"button",41),i.bIt("click",function(vn){i.eBV(Tn);const oi=i.XpG().$implicit,Ci=i.XpG(2);return i.Njj(Ci.isNewFilterUI?Ci.onFilterClickedNvApp(oi,oi.isSelected,vn):Ci.onFilterClicked(oi,!0,vn))}),i.nrm(1,"mat-icon",42),i.k0s()}}function fn(li,dr){if(1&li&&(i.j41(0,"div"),i.nrm(1,"igo-filter-slider",46),i.k0s()),2&li){const Tn=i.XpG().$implicit,tn=i.XpG().$implicit,vn=i.XpG(2);i.R7$(),i.Y8G("control",Tn)("filter",tn)("disabled",vn.ppeGameRelaunchInfo(tn))}}function dt(li,dr){if(1&li&&(i.j41(0,"div",50),i.nrm(1,"igo-filter-slider",46),i.k0s()),2&li){const Tn=dr.$implicit,tn=i.XpG(3).$implicit,vn=i.XpG(2);i.R7$(),i.Y8G("control",Tn)("filter",tn)("disabled",vn.ppeGameRelaunchInfo(tn))}}function nn(li,dr){if(1&li&&(i.j41(0,"div",47)(1,"div",48)(2,"div",11)(3,"span"),i.EFF(4),i.k0s()()(),i.DNE(5,dt,2,3,"div",49),i.k0s()),2&li){const Tn=i.XpG().$implicit;i.R7$(4),i.JRh(Tn.displayName),i.R7$(),i.Y8G("ngForOf",Tn.subControls)}}function yn(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",48)(1,"div",11),i.EFF(2),i.k0s(),i.j41(3,"div",18)(4,"mat-slide-toggle",51),i.mxI("ngModelChange",function(vn){i.eBV(Tn);const oi=i.XpG().$implicit;return i.DH7(oi.currentValue,vn)||(oi.currentValue=vn),i.Njj(vn)}),i.bIt("change",function(){i.eBV(Tn);const vn=i.XpG().$implicit,oi=i.XpG().$implicit,Ci=i.XpG(2);return i.Njj(Ci.onBooleanToggled(vn,oi))}),i.k0s()()()}if(2&li){const Tn=i.XpG().$implicit;i.R7$(2),i.JRh(Tn.displayName),i.R7$(2),i.R50("ngModel",Tn.currentValue)}}function Xn(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",52)(1,"div",53)(2,"div",11),i.EFF(3),i.k0s()(),i.j41(4,"div",54)(5,"nv-dropdown",55),i.bIt("selectionChanged",function(vn){i.eBV(Tn);const oi=i.XpG().$implicit,Ci=i.XpG().$implicit,or=i.XpG(2);return i.Njj(or.pullDownOrRadioButtonChanged(vn,oi,Ci))}),i.k0s()()()}if(2&li){const Tn=i.XpG().$implicit;i.R7$(3),i.JRh(Tn.displayName),i.R7$(2),i.Y8G("maxHeight",300)("selection",Tn.currentValueArray[0])("disabled",!1)("input",Tn.pullDownOrRadioButtonItems)}}function rn(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",52)(1,"div",53)(2,"div",11),i.EFF(3),i.k0s()(),i.j41(4,"div",54)(5,"nv-radio-button",56),i.bIt("changedSelection",function(vn){i.eBV(Tn);const oi=i.XpG().$implicit,Ci=i.XpG().$implicit,or=i.XpG(2);return i.Njj(or.pullDownOrRadioButtonChanged(vn,oi,Ci))}),i.k0s()()()}if(2&li){const Tn=i.XpG().$implicit;i.R7$(3),i.JRh(Tn.displayName),i.R7$(2),i.Y8G("selection",Tn.currentValueArray[0])("disabled",!1)("input",Tn.pullDownOrRadioButtonItems)}}function ai(li,dr){if(1&li&&(i.j41(0,"div",47),i.nrm(1,"igo-filter-editbox",57),i.k0s()),2&li){const Tn=i.XpG().$implicit,tn=i.XpG().$implicit;i.R7$(),i.Y8G("control",Tn)("filter",tn)}}function ri(li,dr){if(1&li&&(i.j41(0,"div",50),i.nrm(1,"igo-filter-editbox",57),i.k0s()),2&li){const Tn=dr.$implicit,tn=i.XpG(3).$implicit;i.R7$(),i.Y8G("control",Tn)("filter",tn)}}function Ne(li,dr){if(1&li&&(i.j41(0,"div",47)(1,"div",53)(2,"div",11),i.EFF(3),i.k0s()(),i.DNE(4,ri,2,2,"div",49),i.k0s()),2&li){const Tn=i.XpG().$implicit;i.R7$(3),i.JRh(Tn.displayName),i.R7$(),i.Y8G("ngForOf",Tn.subControls)}}function zt(li,dr){if(1&li&&(i.j41(0,"div",43),i.DNE(1,fn,2,3,"div",2)(2,nn,6,2,"div",6)(3,yn,5,2,"div",44)(4,Xn,6,5,"div",45)(5,rn,6,4,"div",45)(6,ai,2,2,"div",6)(7,Ne,5,2,"div",6),i.k0s()),2&li){const Tn=dr.$implicit;i.R7$(),i.Y8G("ngIf","slider"===Tn.controlType),i.R7$(),i.Y8G("ngIf","multislider"===Tn.controlType),i.R7$(),i.Y8G("ngIf","boolean"===Tn.controlType),i.R7$(),i.Y8G("ngIf","pulldown"===Tn.controlType),i.R7$(),i.Y8G("ngIf","radiobutton"===Tn.controlType),i.R7$(),i.Y8G("ngIf","edit"===Tn.controlType),i.R7$(),i.Y8G("ngIf","multiedit"===Tn.controlType)}}function vt(li,dr){1&li&&(i.j41(0,"li"),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&li&&(i.R7$(),i.JRh(i.bMT(2,1,"nvcamera.NISNote")))}function Ct(li,dr){1&li&&(i.j41(0,"li"),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&li&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"nvcamera.PPEFilterNote2")," "))}function it(li,dr){if(1&li&&(i.j41(0,"li"),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&li){const Tn=i.XpG().$implicit,tn=i.XpG(5);i.R7$(),i.SpI(" ",i.bMT(2,1,tn.getPpeErrorString(Tn.errorId))," ")}}function Ut(li,dr){if(1&li&&(i.j41(0,"ul"),i.DNE(1,it,3,3,"li",2),i.k0s()),2&li){const Tn=dr.$implicit;i.R7$(),i.Y8G("ngIf",Tn&&Tn.valueSet)}}function jn(li,dr){if(1&li&&(i.j41(0,"div"),i.DNE(1,Ut,2,1,"ul",21),i.k0s()),2&li){const Tn=i.XpG(2).$implicit;i.R7$(),i.Y8G("ngForOf",Tn.errorCodes)}}function wn(li,dr){if(1&li&&(i.j41(0,"ul")(1,"li"),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&li){const Tn=dr.$implicit;i.R7$(2),i.SpI(" ",i.bMT(3,1,Tn)," ")}}function nt(li,dr){if(1&li&&(i.j41(0,"div"),i.DNE(1,wn,4,3,"ul",21),i.k0s()),2&li){const Tn=i.XpG(4);i.R7$(),i.Y8G("ngForOf",Tn.aiDvcRealTimeErrorStringList)}}function on(li,dr){if(1&li&&(i.j41(0,"ul")(1,"li"),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&li){const Tn=dr.$implicit;i.R7$(2),i.SpI(" ",i.bMT(3,1,Tn)," ")}}function mt(li,dr){if(1&li&&(i.j41(0,"div"),i.DNE(1,on,4,3,"ul",21),i.k0s()),2&li){const Tn=i.XpG(4);i.R7$(),i.Y8G("ngForOf",Tn.aiHdrRealTimeErrorStringList)}}function _n(li,dr){if(1&li&&(i.j41(0,"div",58)(1,"mat-icon",28),i.EFF(2,"info"),i.k0s(),i.j41(3,"div",59)(4,"span")(5,"ul")(6,"li"),i.EFF(7),i.nI1(8,"translate"),i.k0s(),i.DNE(9,vt,3,3,"li",2)(10,Ct,3,3,"li",2),i.k0s(),i.DNE(11,jn,2,1,"div",2)(12,nt,2,1,"div",2)(13,mt,2,1,"div",2),i.k0s()()()),2&li){const Tn=i.XpG().$implicit,tn=i.XpG(2);i.R7$(7),i.JRh(i.bMT(8,6,"nvcamera.PPEFilterNote1")),i.R7$(2),i.Y8G("ngIf",Tn.id===tn.nisId),i.R7$(),i.Y8G("ngIf",tn.ppeGameRelaunchInfo(Tn)),i.R7$(),i.Y8G("ngIf",Tn.errorCodes.length),i.R7$(),i.Y8G("ngIf",Tn.id===tn.deepDvcId&&!tn.aiDvcGameEnableState&&tn.rtxDvcRealTimeErrorCode),i.R7$(),i.Y8G("ngIf",Tn.id===tn.trueHdrId&&tn.getRtxHdrStateAtAppLaunch()&&!tn.trueHdrGameEnableState)}}function wt(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"mat-expansion-panel",32)(1,"mat-expansion-panel-header",33)(2,"div",34),i.bIt("click",function(vn){const oi=i.eBV(Tn).$implicit,Ci=i.XpG(2);return i.Njj(Ci.onFilterTitleClicked(oi,vn))}),i.j41(3,"div",35)(4,"div",36)(5,"span"),i.EFF(6),i.k0s()()(),i.DNE(7,Cn,2,0,"button",37),i.k0s()(),i.j41(8,"div",38),i.DNE(9,zt,8,7,"div",39)(10,_n,14,8,"div",40),i.k0s()()}if(2&li){const Tn=dr.$implicit,tn=i.XpG(2);i.AVh("active",Tn.isSelected),i.Y8G("expanded",Tn.isExpanded),i.R7$(6),i.SpI(" ",Tn.name," "),i.R7$(),i.Y8G("ngIf",Tn.controls.length>0),i.R7$(2),i.Y8G("ngForOf",Tn.controls),i.R7$(),i.Y8G("ngIf",tn.isNewFilterUI&&Tn.isPPEFilter)}}function Un(li,dr){if(1&li&&(i.j41(0,"div",29)(1,"mat-accordion",30),i.DNE(2,wt,11,7,"mat-expansion-panel",31),i.k0s()()),2&li){const Tn=i.XpG();i.R7$(),i.Y8G("@.disabled",Tn.disableAnimation),i.R7$(),i.Y8G("ngForOf",i.lJ4(2,gt).concat(Tn.ppeFilterStack.filters,Tn.filterStack.filters.slice().reverse()))}}function Oi(li,dr){1&li&&i.nrm(0,"nv-divider")}function At(li,dr){if(1&li&&(i.j41(0,"div",64),i.EFF(1),i.k0s()),2&li){const Tn=i.XpG().$implicit,tn=i.XpG(2);i.AVh("side-padding",tn.isNewFilterUI),i.R7$(),i.SpI(" ",Tn.name," ")}}function Hn(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"nv-item-button",65),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG().$implicit,oi=i.XpG(2);return i.Njj(oi.onFilterAdded(vn))}),i.k0s()}if(2&li){const Tn=i.XpG().$implicit;i.Y8G("titleString",Tn.name)}}function pi(li,dr){if(1&li&&(i.j41(0,"div"),i.DNE(1,At,2,3,"div",62)(2,Hn,1,1,"nv-item-button",63),i.k0s()),2&li){const Tn=i.XpG(2);i.R7$(),i.Y8G("ngIf",0===Tn.currentActiveSlotIndex||!Tn.nvCameraReady&&!Tn.isPpeFiltersVisible||!Tn.globalToggle||Tn.isGameRestartRequestedfromCTA),i.R7$(),i.Y8G("ngIf",0!==Tn.currentActiveSlotIndex&&(Tn.nvCameraReady||Tn.isPpeSupportedGame&&Tn.isPpeFiltersVisible)&&Tn.globalToggle&&!Tn.isGameRestartRequestedfromCTA)}}function Zi(li,dr){if(1&li&&(i.j41(0,"div",47)(1,"div",60)(2,"span",61),i.EFF(3),i.nI1(4,"translate"),i.k0s()(),i.DNE(5,pi,3,2,"div",21),i.k0s()),2&li){const Tn=i.XpG();i.R7$(),i.AVh("side-padding",Tn.isNewFilterUI),i.R7$(2),i.JRh(i.i5U(4,4,"nvcamera.AvailableFilters",i.eq3(7,qt,Tn.filterListRender.length))),i.R7$(2),i.Y8G("ngForOf",Tn.filterListRender)}}let Lr=(()=>{var li;class dr{constructor(tn,vn,oi,Ci,or,yr,$r,ko){this.nvCameraService=tn,this.loggingService=vn,this.cdr=oi,this.igoConfig=Ci,this.translateService=or,this.ppeService=yr,this.oscDisplayService=$r,this.telemetryIgo=ko,this.panelOpenState=!1,this.disableAnimation=!0,this.defaultFilter="",this.filterList=[],this.multiFilterInstanceAvailable=!1,this._ppeFilterStack=new r.hot,this.destroy$=new O.B7,this.deepDvcId=X.VL,this.nisId=X.on,this.trueHdrId=X.Ow,this.filterListRender=[],this.isNewFilterUI=!1,this.availableFilterMessage="",this.isAppStartedReceived=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.nvCameraReady=!1,this.isNis2Enabled=!1,this.isFreestyleSupportedGame=!1,this.ppeFilterTitleInfo=!0,this.aiDvcGameEnableState=!1,this.trueHdrGameEnableState=!1,this.aiDvcStateAtAppLaunch=null,this.aiHdrStateAtAppLaunch=null,this.aiDvcRealTimeErrorStringList=[],this.aiHdrRealTimeErrorStringList=[],this.rtxDvcRealTimeErrorCode=0,this.globalToggle=r.P8t,this.isGameRestartRequestedfromCTA=!1,this.disabledDueToGlobalToggle=!1,this.realtimeRtxDvcStatePollingInterval=50,this.realtimeRtxDvcStatePollingDuration=500,this.instantEnableSupported=!1,this.rtxHdrMinMiddleGrey=10,this.freestyleFilterFinalized$=new O.B7,this.deepDvcFinalized$=new O.B7,this.trueHdrFinalized$=new O.B7,this.nisFinalized$=new O.B7,this.logger=this.loggingService.getLogger("FilterSection"),this.isAppStartedReceived=this.nvCameraService.isAppStartedReceived,this.isPpeSupportedGame=this.ppeService.isPpeSupportedGame,this.nvCameraReady=this.nvCameraService.isNvCameraReady,this.isNis2Enabled=this.ppeService.isNIS2Enabled,this.aiDvcStateAtAppLaunch=this.ppeService.deepDvcStateAtAppLaunch,this.aiHdrStateAtAppLaunch=this.ppeService.trueHdrStateAtAppLaunch,this.isFreestyleSupportedGame=this.nvCameraService.isFreestyleSupportedGame(),this.isGameRestartRequestedfromCTA=this.nvCameraService.getIsGameRestartRequestedfromCTA(),this.instantEnableSupported=this.ppeService.instantEnableSupported}ngOnInit(){this.isNewFilterUI=!this.igoConfig.GFNCefClient,this.isPpeFiltersVisible=this.ppeService.isPpeFiltersVisible&&!this.isUsedForPhotoMode,this.igoConfig.GFNCefClient||(this.sendSessionEventTelemetry(),this.isUsedForPhotoMode&&(this.markFilterFetchFinalize(X.VL),this.markFilterFetchFinalize(X.on),this.markFilterFetchFinalize(X.Ow))),this.ppeService.isPpeFeaturesEnabled&&this.isPpeSupportedGame&&this.isPpeFiltersVisible&&this.nvCameraService.getGlobalToggle().subscribe(tn=>{this.globalToggle=tn,this.disabledDueToGlobalToggle=!this.globalToggle||this.isGameRestartRequestedfromCTA,this.disabledDueToGlobalToggle||this.createPPEFiltersList()}),this.nvCameraService.setLanguageAndGetFilterList().subscribe(tn=>{tn.filtersList.filtersListArray.forEach(oi=>{this.filterList.push({id:oi.id,name:oi.name,isVisible:oi.id!==X.on,isFeatureEnabled:!1,isExpanded:!1,errorCodesList:null})}),this.refreshFilterList(X.dz),this.filterList.length>0&&(this.defaultFilter=this.filterList[0].id),this.logger.info("initialized")},tn=>{this.logger.error("error during filter section init = "+tn),this.nvCameraService.sendFunctionalityErrorTelemetry("FunctionalError - FilterSection Init Failed: "+tn),this.refreshFilterList(X.dz)}),(!this.isAppStartedReceived||this.isAppStartedReceived&&!this.nvCameraReady&&!this.isPpeFiltersVisible)&&this.isNewFilterUI&&this.refreshFilterList(),this.disableUpDownButton(r._Fy.None)}ngAfterViewInit(){setTimeout(()=>this.disableAnimation=!1),this.oscDisplayService.getSidebarVisibilityChange$().pipe((0,k.p)(tn=>!tn),(0,y.Q)(this.destroy$),(0,R.M)(tn=>this.menuTrigger?.closeMenu())).subscribe()}set filterStack(tn){this._filterStack=tn,this.refreshFilterList()}get filterStack(){return this._filterStack}set currentSlotIndex(tn){this.currentActiveSlotIndex=tn}set setUseCase(tn){this.isUsedForPhotoMode=tn}get ppeFilterStack(){return this._ppeFilterStack}markFilterFetchFinalize(tn){switch(tn){case X.VL:this.deepDvcFinalized$.next(!0);break;case X.on:this.nisFinalized$.next(!0);break;case X.Ow:this.trueHdrFinalized$.next(!0);break;case X.dz:this.freestyleFilterFinalized$.next(!0)}}refreshFilterList(tn){this.multiFilterInstanceAvailable||this.nvCameraService.getGlobalToggle().pipe((0,R.M)(vn=>{if(this.globalToggle=vn,(!this.isAppStartedReceived||!vn||this.isGameRestartRequestedfromCTA||!this.isPpeSupportedGame&&!this.isFreestyleSupportedGame||this.isAppStartedReceived&&!this.nvCameraReady&&!this.isPpeFiltersVisible)&&this.isNewFilterUI)return this.filterListRender=this.ppeService.staticFilterListStrings.filter(oi=>!(this.isUsedForPhotoMode&&oi.isPPEFilter)),void this.markFilterFetchFinalize(tn);0!==this.currentActiveSlotIndex?(this.filterListRender=[],this.filterList.forEach(oi=>{oi.isVisible=!0,oi.isVisible=!(this.filterStack.filters.findIndex(Ci=>Ci.id===oi.id)>-1||this.ppeFilterStack.filters.findIndex(Ci=>Ci.id===oi.id)>-1),oi.isVisible&&(oi.isPPEFilter?this.filterListRender.splice(0,0,oi):this.filterListRender.push(oi))})):this.filterListRender=this.ppeService.staticFilterListStrings,this.markFilterFetchFinalize(tn)})).subscribe()}isFilterDropdownDisabled(){return!this.multiFilterInstanceAvailable&&this.filterStack.filters.length===this.filterList.length}constructPPEFilters(tn,vn,oi,Ci,or){return{id:tn,name:vn,isVisible:!1,isPPEFilter:!0,isFeatureEnabled:oi,isExpanded:Ci,errorCodesList:or}}constructDeepDvcFilterControls(tn,vn){return{filterDetails:{filter:{status:re.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:this.translateService.instant("nvcamera.AiDigitalVibranceIntensity"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[tn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100},{id:1,displayName:this.translateService.instant("nvcamera.AiDigitalVibranceBoost"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[0],maxValue:[100],defaultValue:[25],currentValue:[vn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100}]}}}constructTrueHdrFilterControls(tn,vn,oi,Ci,or,yr){let $r=[];return $r=yr>or?[{id:0,displayName:this.translateService.instant("nvcamera.AIHdrbrightness"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[or],maxValue:[yr],defaultValue:[yr],currentValue:[tn],stepSize:[5],uiStepSize:[5],uiMinValueV1:[or],uiMaxValueV1:[yr],uiDisplayNameV1:[""],uiMinValue:or,uiMaxValue:yr},{id:1,displayName:this.translateService.instant("nvcamera.AIHdrMiddleGreys"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[this.rtxHdrMinMiddleGrey],maxValue:[100],defaultValue:[25],currentValue:[vn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[this.rtxHdrMinMiddleGrey],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:this.rtxHdrMinMiddleGrey,uiMaxValue:100},{id:2,displayName:this.translateService.instant("nvcamera.AIHdrContrast"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[oi],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100},{id:3,displayName:this.translateService.instant("nvcamera.AIHdrSaturation"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[Ci],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100}]:[{id:0,displayName:this.translateService.instant("nvcamera.AIHdrMiddleGreys"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[this.rtxHdrMinMiddleGrey],maxValue:[100],defaultValue:[25],currentValue:[vn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[this.rtxHdrMinMiddleGrey],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:this.rtxHdrMinMiddleGrey,uiMaxValue:100},{id:1,displayName:this.translateService.instant("nvcamera.AIHdrContrast"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[oi],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100},{id:2,displayName:this.translateService.instant("nvcamera.AIHdrSaturation"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[-100],maxValue:[100],defaultValue:[0],currentValue:[Ci],stepSize:[1],uiStepSize:[1],uiMinValueV1:[-100],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:-100,uiMaxValue:100}],{filterDetails:{filter:{status:re.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:$r}}}constructNis2FilterControls(tn){return{filterDetails:{filter:{status:re.Or.Common.Nvcamera.AnselStatusEnum.ok},controls:[{id:0,displayName:this.translateService.instant("nvcamera.NISSharpen"),controlType:"slider",measureUnit:"%",dataType:re.Or.Common.Nvcamera.DataType.int,minValue:[0],maxValue:[100],defaultValue:[50],currentValue:[tn],stepSize:[1],uiStepSize:[1],uiMinValueV1:[0],uiMaxValueV1:[100],uiDisplayNameV1:[""],uiMinValue:0,uiMaxValue:100}]}}}createAIDVCFilter(tn,vn,oi){const Ci=this.constructPPEFilters(this.deepDvcId,this.translateService.instant("nvcamera.AiDigitalVibrance"),tn.enabled,!1,vn);if(Ci.isVisible=!Ci.isFeatureEnabled,tn&&tn.enabled){const or=this.constructDeepDvcFilterControls(tn.intensity,tn.saturation),yr=new r.dJT(Ci.id,Ci.name,!1,this.filterStack.filters.length,null,!0,!this.ppeService.isAIDVCSupported,vn,!1);this.ppeFilterStack.filters.push(yr),this.nvCameraService.createFilterControls(or,yr)}this.filterList.splice(0,0,Ci),this.refreshFilterList(X.VL)}createAIHDRFilter(tn,vn,oi){const Ci=this.constructPPEFilters(this.trueHdrId,this.translateService.instant("nvcamera.TrueHDRTitle"),tn.enabled,!1,vn);if(Ci.isVisible=!Ci.isFeatureEnabled,this.trueHdrState&&this.trueHdrState.enabled){const or=this.constructTrueHdrFilterControls(tn.peakBrightness,tn.middleGrey,tn.contrast,tn.saturation,this.trueHDRPeakBrightnessMax<=this.trueHDRPeakBrightnessMin?this.trueHDRPeakBrightnessMax:this.trueHDRPeakBrightnessMin,this.trueHDRPeakBrightnessMax),yr=new r.dJT(Ci.id,Ci.name,!1,this.filterStack.filters.length,null,!0,!this.ppeService.isAIHDRSupported,vn,!1);this.ppeFilterStack.filters.push(yr),this.nvCameraService.createFilterControls(or,yr)}this.filterList.splice(0,0,Ci),this.refreshFilterList(X.Ow)}sendSessionEventTelemetry(){(0,x.yU)(this.freestyleFilterFinalized$,this.deepDvcFinalized$,this.trueHdrFinalized$,this.nisFinalized$).pipe((0,y.Q)(this.destroy$)).subscribe(tn=>{this.telemetryIgo.sendSessionEvent(oe.x4.SessionMenuLaunch,"",Date.now()-this.nvCameraService.pageLaunchStart,this.isUsedForPhotoMode?oe.Uk.Ansel:oe.Uk.Freestyle,this.nvCameraService.getFetchedSystemInfo()?.ddVersion,this.nvCameraService.pageLaunchMode,"",""),this.nvCameraService.pageLaunchStart=0})}createPPEFiltersList(){if(!this.isNewFilterUI)return;let tn=[];this.ppeService.isAIDVCSupportedInChroma()?this.ppeService.getDeepDVCSystemSupport().pipe((0,G.ZZ)(Ci=>(this.logger.info("DeepDvc system support ",Ci),this.instantEnableSupported=Ci.instantEnableSupported,Ci.errorCode&&(tn=this.ppeService.getAiDvcErrorCodeList(!0,Ci.errorCode)),Ci.errorCode!==X.O3.FEATURE_SUPPORT_ERROR_OK?this.ppeService.isAIDVCSupported=!1:(this.deepDvcFinalized$.next(!0),this.ppeService.isAIDVCSupported=!0),(0,V.of)(this.ppeService.isAIDVCSupported))),(0,k.p)(Ci=>!!Ci),(0,G.ZZ)(Ci=>(this.logger.info("getDenyListData AIDVC response",Ci),this.ppeService.getDeepDVCStateInfo())),(0,G.ZZ)(Ci=>(this.logger.info("DeepDvc state received ",Ci),this.aiDvcState=Ci,this.aiDvcState.enabled&&this.currentActiveSlotIndex?this.ppeService.restoreAIDVC(this.aiDvcState):(0,V.of)(!1))),(0,G.ZZ)(Ci=>(this.logger.info("Restore AIDVC State response",Ci),this.aiDvcState.enabled?this.getRtxDvcRealTimeState():(0,V.of)(!1))),(0,G.ZZ)(Ci=>(this.logger.info("AIDVC Game support ",Ci),this.createAIDVCFilter(this.aiDvcState,tn,Ci),(0,V.of)(null))),(0,Y.W)(Ci=>{this.logger.info("Create DeepDVC Filter error : ",Ci);const or=this.constructPPEFilters(this.deepDvcId,this.translateService.instant("nvcamera.AiDigitalVibrance"),!1,!1,tn);return this.filterList.splice(0,0,or),this.refreshFilterList(X.VL),(0,V.of)(!1)}),(0,K.s)(1)).subscribe(Ci=>{this.logger.info("Create DeepDVC Filter response",Ci)}):this.deepDvcFinalized$.next(!0);let vn=0,oi=[];this.ppeService.getRTXHDRSupportperDisplay().pipe((0,G.ZZ)(Ci=>(this.logger.info("RtxHdr system support per display",Ci),this.ppeService.isAIHDRSupported=Ci.isSupported,vn=Ci.errorCode,this.trueHDRPeakBrightnessMin=Ci.minPeakBrightness,this.trueHDRPeakBrightnessMax=Ci.maxPeakBrightness,this.ppeService.maxPeakBrightness=Ci.maxPeakBrightness,this.ppeService.minPeakBrightness=Ci.minPeakBrightness,oi=this.ppeService.getErrorCodeList(Ci.errorCode),this.ppeService.hardConstraintSupportFailure?(this.trueHdrFinalized$.next(!0),(0,V.of)(!1)):(0,V.of)(!0))),(0,k.p)(Ci=>!!Ci),(0,G.ZZ)(Ci=>(this.logger.info("getDenyListData AIHDR response",Ci),this.ppeService.getTrueHDRStateInfo())),(0,G.ZZ)(Ci=>(this.logger.info("TrueHdr state received ",Ci),this.trueHdrState=Ci,this.trueHdrState.peakBrightness<this.trueHDRPeakBrightnessMin&&(this.trueHdrState.peakBrightness=this.trueHDRPeakBrightnessMin),this.trueHdrState.peakBrightness>this.trueHDRPeakBrightnessMax&&(this.trueHdrState.peakBrightness=this.trueHDRPeakBrightnessMax),this.trueHdrState.supported&&this.trueHdrState.enabled&&this.currentActiveSlotIndex&&this.ppeService.restoreAIHDR(this.trueHdrState),this.trueHdrState.supported?(0,V.of)(!0):(this.ppeService.getErrorCodeList(Ci.supportError),this.ppeService.hardConstraintSupportFailure?(this.trueHdrFinalized$.next(!0),(0,V.of)(!1)):(0,V.of)(!0)))),(0,k.p)(Ci=>!!Ci),(0,G.ZZ)(Ci=>(this.logger.info("Restore AIHDR State response",Ci),this.ppeService.trueHdrStateAtAppLaunch?.enabled?(this.logger.info("AIHDR was enabled at launch"),this.ppeService.getTrueHDRRealTimeStateInfo()):(this.logger.info("AIHDR was disabled at launch"),(0,V.of)(!1)))),(0,G.ZZ)(Ci=>(this.logger.info("TrueHdr Game support ",Ci),this.trueHdrGameEnableState=!!Ci&&Ci.enabled,this.ppeService.rtxHdrGameEnableState=this.trueHdrGameEnableState,this.aiHdrRealTimeErrorStringList=this.getAiHdrRealTimeErrorString(Ci.errorCode),this.createAIHDRFilter(this.trueHdrState,oi,Ci),(0,V.of)(null))),(0,Y.W)(Ci=>(this.logger.info("Create trueHDR Filter error : ",Ci),this.trueHdrFinalized$.next(!0),(0,V.of)(!1))),(0,K.s)(1)).subscribe(),this.ppeService.getNIS2SystemSupport().pipe((0,G.ZZ)(Ci=>(this.logger.info("NIS2 system support ",Ci),Ci.supported?(this.ppeService.isNIS2Supported=!0,(0,V.of)(!0)):(this.ppeService.isNIS2Supported=!1,this.nisFinalized$.next(!0),(0,V.of)(!1)))),(0,k.p)(Ci=>!!Ci),(0,G.ZZ)(()=>this.ppeService.currentGameInfo.cmsId?(0,V.of)(!0):(this.nisFinalized$.next(!0),(0,V.of)(!1))),(0,k.p)(Ci=>!!Ci),(0,G.ZZ)(Ci=>(this.logger.info("get supported game response",Ci),this.ppeService.getNIS2StateInfo())),(0,G.ZZ)(Ci=>{this.logger.info("NIS2 state received ",Ci);const or=this.constructPPEFilters(this.nisId,this.translateService.instant("nvcamera.NIS"),Ci.enabled,!1,[]);if(Ci.enabled){or.isVisible=!1;const yr=this.constructNis2FilterControls(Ci.sharpen),$r=new r.dJT(or.id,or.name,!1,this.filterStack.filters.length,null,!0);this.ppeFilterStack.filters.push($r),this.nvCameraService.createFilterControls(yr,$r),this.filterList.splice(0,0,or),this.refreshFilterList(X.on)}else this.nisFinalized$.next(!0);return(0,V.of)(null)}),(0,Y.W)(Ci=>(this.nisFinalized$.next(!0),this.logger.info("Create NIS2 Filter error : ",Ci),(0,V.of)(!1))),(0,K.s)(1)).subscribe()}onPPEFilterApplied(tn){let vn;switch(tn.id){case this.deepDvcId:vn=this.ppeService.getDeepDVCStateInfo().pipe((0,$.T)(Ci=>(this.logger.info("DeepDvc state received ",Ci),this.constructDeepDvcFilterControls(Ci.intensity,Ci.saturation))));break;case this.trueHdrId:vn=this.ppeService.getTrueHDRStateInfo().pipe((0,$.T)(Ci=>(this.logger.info("TrueHdr state received ",Ci),Ci.peakBrightness<this.trueHDRPeakBrightnessMin&&(Ci.peakBrightness=this.trueHDRPeakBrightnessMin),Ci.peakBrightness>this.trueHDRPeakBrightnessMax&&(Ci.peakBrightness=this.trueHDRPeakBrightnessMax),Ci.peakBrightness||(Ci.peakBrightness=this.trueHDRPeakBrightnessMax),this.constructTrueHdrFilterControls(Ci.peakBrightness,Ci.middleGrey,Ci.contrast,Ci.saturation,this.trueHDRPeakBrightnessMax<=this.trueHDRPeakBrightnessMin?this.trueHDRPeakBrightnessMax:this.trueHDRPeakBrightnessMin,this.trueHDRPeakBrightnessMax))));break;case this.nisId:vn=this.ppeService.getNIS2StateInfo().pipe((0,$.T)(Ci=>(this.logger.info("NIS2 state received ",Ci),this.constructNis2FilterControls(Ci.sharpen))))}if(!vn)return void this.logger.error("Should not be here, filter:",tn);const oi=new r.dJT(tn.id,tn.name,!1,this.filterStack.filters.length,null,!0,tn.id===this.trueHdrId&&!this.ppeService.isAIHDRSupported,tn.errorCodesList,!1);vn.subscribe(Ci=>{this.nvCameraService.createFilterControls(Ci,oi),this.ppeService.runTimeChangeControlValue(oi).subscribe(or=>{if(or){if(!0===or||0===or._return_code){this.ppeFilterStack.filters.push(oi);const yr=this.filterList.indexOf(tn);yr>-1&&(this.filterList[yr].isVisible=!1,this.filterList[yr].isFeatureEnabled=!0),tn.id===this.deepDvcId&&(this.ppeService.isAIDVCAddSuccess=!0,this.nvCameraService.filterAddedTelemetry(X.Qu.RTX_DVC),this.nvCameraService.updatePpeState(this.deepDvcId,!0),this.getRtxDvcRealTimeState().subscribe()),tn.id===this.trueHdrId&&(this.ppeService.isAIHDRAddSuccess=!0,this.nvCameraService.filterAddedTelemetry(X.Qu.RTX_HDR),this.nvCameraService.updatePpeState(this.trueHdrId,!0),this.ppeService.getTrueHDRRealTimeStateInfo().subscribe($r=>{this.logger.info("TrueHdr Game support ",$r),this.trueHdrGameEnableState=!!$r&&$r.enabled,this.ppeService.rtxHdrGameEnableState=this.trueHdrGameEnableState,this.aiHdrRealTimeErrorStringList=this.getAiHdrRealTimeErrorString($r.errorCode)})),tn.id===this.nisId&&this.nvCameraService.updatePpeState(this.nisId,!0)}this.logger.info("PPE filter added successfully")}}),(0,Y.W)(or=>(this.logger.error("PPE filter addition failed",or),or))})}removeFilterFromAvailable(tn){const vn=this.filterListRender.findIndex(oi=>oi.name===tn.name);vn>-1&&this.filterListRender.splice(vn,1)}onFilterAdded(tn){if(this.logger.info("onFilterAdded: ",tn.name),this.removeFilterFromAvailable(tn),tn.isPPEFilter){const oi=this.filterList.indexOf(tn);return oi>-1&&(this.filterList[oi].isFeatureEnabled=!0),this.onPPEFilterApplied(tn)}const vn=new O.B7;this.disableUpDownButton(r._Fy.Add),this.nvCameraService.setFilter(!0,this.filterStack.filters.length,tn.id,vn).subscribe(oi=>{const Ci=new r.dJT(tn.id,tn.name,!1,this.filterStack.filters.length);if(this.filterStack.filters.push(Ci),!this.multiFilterInstanceAvailable){const or=this.filterList.indexOf(tn);or>-1&&(this.filterList[or].isVisible=!1)}this.nvCameraService.createFilterControls(oi,Ci),vn.next(!0),vn.complete(),this.logger.info("filter applied succesfully ",tn.name)},oi=>{this.logger.error("failed to apply filter with error: ",oi),vn.next(!1),vn.complete(),this.nvCameraService.showSnack(r.BO6.UpdateStyleFail)})}onFilterClicked(tn,vn,oi){if(tn.isPPEFilter)tn.id!==X.on&&(tn.isExpanded=!tn.isExpanded),this.ppeFilterStack.filterClicked(tn,vn);else{tn.isExpanded=!tn.isExpanded,this.filterStack.filterClicked(tn,vn);const Ci=this.filterStack.getIndicesOfSelection();this.disableUpDownButton(r._Fy.Clicked,Ci)}}onFilterClickedNvApp(tn,vn,oi){tn.isPPEFilter?(tn.id!==X.on&&(tn.isExpanded=!tn.isExpanded),this.ppeFilterStack.filterClicked(tn,!vn)):(tn.isExpanded=!tn.isExpanded,this.filterStack.filterClicked(tn,!vn))}onFilterTitleClicked(tn,vn){if(vn.stopPropagation(),tn.isPPEFilter)tn.id===X.on?(this.ppeFilterStack.filterClicked(tn,!1),tn.isExpanded=!tn.isExpanded):this.ppeFilterStack.filterClicked(tn,!tn.isSelected);else{this.filterStack.filterClicked(tn,!tn.isSelected);const oi=this.filterStack.getIndicesOfSelection();this.disableUpDownButton(r._Fy.Clicked,oi)}}onPPEFilterClicked(tn){tn.isExpanded=!tn.isExpanded}onPPEFilterTitleClicked(tn){tn.isExpanded=!tn.isExpanded,this.onPPEFilterClicked(tn)}disableUpDownButton(tn,vn){let oi=0;switch(vn&&(oi=vn.length),tn){case r._Fy.MoveUp:this.filterStack.downButtonDisabled=!1;for(let Ci=0;Ci<oi;Ci++)if(this.filterStack.filters&&vn[Ci]===this.filterStack.filters.length-1){this.filterStack.upButtonDisabled=!0;break}break;case r._Fy.MoveDown:this.filterStack.upButtonDisabled=!1;for(let Ci=0;Ci<oi;Ci++)if(0===vn[Ci]){this.filterStack.downButtonDisabled=!0;break}break;case r._Fy.Add:this.filterStack.upButtonDisabled=!1;break;case r._Fy.Clicked:case r._Fy.None:oi>0&&(this.filterStack.downButtonDisabled=0===vn[0],this.filterStack.filters&&(this.filterStack.upButtonDisabled=vn[oi-1]===this.filterStack.filters.length-1))}}onBooleanToggled(tn,vn){this.cdr.detectChanges(),tn.currentValueArray=[tn.currentValue],this.nvCameraService.setFilterAttribute(vn.id,vn.stackIdx,tn.id,r.xdE.boolean,tn.dataType,tn.currentValueArray).subscribe(Ci=>{this.logger.info("attribute change successful = "+Ci)},Ci=>{this.logger.error("attribute change failed = "+JSON.stringify(Ci))})}updateFilters(tn,vn){if(this.disableUpDownButton(vn,Array.from(tn)),tn.size>0){const oi=[];tn.forEach(Ci=>{oi.push(this.filterStack.filters[Ci])}),this.nvCameraService.applyFilters(oi,vn).subscribe(Ci=>{this.logger.info("Filter sequence changed successfully")},Ci=>{this.logger.error("Failed updating filter sequence, error: ",Ci),this.nvCameraService.showSnack(r.BO6.UpdateStyleFail)})}}moveSelectedFiltersUp(){const tn=this.filterStack.moveSelectionUp();this.updateFilters(tn,r._Fy.MoveUp)}moveSelectedFiltersDown(){const tn=this.filterStack.moveSelectionDown();this.updateFilters(tn,r._Fy.MoveDown)}deletePPEFIlters(){const tn=this.ppeFilterStack.getIndicesOfSelection();return 0===tn.length?(0,V.of)(!1):(0,D.H)(tn).pipe((0,G.ZZ)(vn=>this.ppeFilterStack.filters[vn].id===X.VL?this.ppeService.disableAIDVC(this.currentActiveSlotIndex):this.ppeFilterStack.filters[vn].id===X.Ow?this.ppeService.disableAIHDR(this.currentActiveSlotIndex):void 0),(0,ee.o)(1),(0,R.M)(()=>{this.ppeFilterStack.deleteSelection()}),(0,Y.W)(vn=>(this.logger.error("filter deletion failed",vn),(0,V.of)(!1))))}deleteNvCameraFilters(){const tn=this.filterStack.deleteSelection();let vn=0;return this.filterStack.filters.forEach(()=>{this.filterStack.filters[vn].stackIdx=vn++}),0===tn.length?(0,V.of)(re.Or.Common.Nvcamera.AnselStatusEnum.ok):(0,D.H)(tn).pipe((0,J.H)(oi=>this.nvCameraService.removeFilter(oi)),(0,ee.o)(1),(0,Y.W)(oi=>(this.logger.error("filter deletion failed",oi),(0,V.of)(re.Or.Common.Nvcamera.AnselStatusEnum.failed))))}deleteSelectedFilters(){let tn="confirmation.confirmFilterDelete";const vn=this.filterStack.getIndicesOfSelection().length+this.ppeFilterStack.getIndicesOfSelection().length,oi=vn.toString();if(0===vn)return;vn>1&&(tn="confirmation.confirmFiltersDelete");let Ci=!1;const or={next:yr=>{yr===r.SFy.Action1?Ci=!1:yr===r.SFy.Action2&&(Ci=!0)},error:yr=>{this.logger.error("failed in showAlert",yr),this.nvCameraService.closeAlert()},complete:()=>{if(this.nvCameraService.closeAlert(),Ci){if(!this.multiFilterInstanceAvailable){const $r=[].concat(this.filterStack.getSelectedFilters(),this.ppeFilterStack.getSelectedFilters());$r.reverse(),$r.forEach(ko=>{const qr={id:ko.id,name:ko.name};this.logger.error(" : selectedFilters filterToAdd : ",qr);const lo=this.filterList.findIndex(ts=>ts.id===qr.id);lo>-1&&(this.filterList[lo].isVisible=!0,ko.isPPEFilter?(this.filterListRender.splice(0,0,this.filterList[lo]),ko.id===this.deepDvcId&&this.ppeService.deepDvcParametersValue&&(this.ppeService.deepDvcParametersValue.enabled=!1),ko.id===this.trueHdrId&&this.ppeService.trueHdrParametersValue&&(this.ppeService.trueHdrParametersValue.enabled=!1)):this.filterListRender.push(this.filterList[lo]))})}const yr=(0,F.p)([this.deletePPEFIlters(),this.deleteNvCameraFilters()]).pipe((0,R.M)(()=>{this.refreshFilterList(),this.nvCameraService.showSnack(r.BO6.RemoveFilterSuccess,oi)}));this.igoConfig.GFNCefClient?this.nvCameraService.customizeAndShowAlert(yr,r._Fy.Delete):yr.subscribe()}}};this.igoConfig.GFNCefClient||1!==vn?this.nvCameraService.showAlert("confirmation.remove",tn,oi,"confirmation.NotRightNow","confirmation.remove",!1,void 0,void 0,this.destroy$,or):(this.logger.info("Only single filter selected"),(0,V.of)(r.SFy.Action2).subscribe(or))}pullDownOrRadioButtonChanged(tn,vn,oi){vn.currentValueArray[0]=tn,this.nvCameraService.setFilterAttribute(oi.id,oi.stackIdx,vn.id,r.xdE[vn.controlType],vn.dataType,vn.currentValueArray).subscribe(Ci=>{this.logger.info("value change successful for "+vn.controlType+"="+Ci)},Ci=>{this.logger.error("value change failed for "+vn.controlType+"="+JSON.stringify(Ci))})}ppeGameRelaunchInfo(tn){if(tn.id===this.deepDvcId&&this.ppeService.deepDvcStateAtAppLaunch){let vn;return vn=this.instantEnableSupported?!this.aiDvcGameEnableState:!this.ppeService.deepDvcStateAtAppLaunch.enabled&&this.ppeService.isAIDVCAddSuccess,vn}if(tn.id===this.trueHdrId&&this.ppeService.trueHdrStateAtAppLaunch){const vn=!this.ppeService.trueHdrStateAtAppLaunch.enabled&&this.ppeService.isAIHDRAddSuccess||!this.ppeService.isAIHDRSupported||!this.ppeService.rtxHdrGameEnableState;return vn&&this.oscDisplayService.setRtxHdrStatus(!1),vn}}disablePeakBrightnessSlider(tn){return tn.id===this.trueHdrId&&this.trueHDRPeakBrightnessMax<=this.trueHDRPeakBrightnessMin}ppeFilterInfoIconVisibilty(tn){return tn.id===this.deepDvcId?this.ppeService.deepDvcParametersValue.enabled:tn.id===this.trueHdrId?this.ppeService.trueHdrParametersValue.enabled:void 0}getListOfErrorStrings(tn){tn.forEach(oi=>{(void 0).push(this.getPpeErrorString(oi.errorId))})}getPpeErrorString(tn){return tn>=1?(this.oscDisplayService.setRtxHdrStatus(!1),X.ag[tn]):""}getAidvcRealTimeErrorString(tn,vn){const oi=this.ppeService.getAiDvcErrorCodeList(tn,vn),Ci=[];return oi.forEach(or=>{or&&Ci.push(X.lR[or.errorId])}),Ci}getAiHdrRealTimeErrorString(tn){const vn=this.ppeService.getErrorCodeList(tn),oi=[];return vn.forEach(Ci=>{Ci&&Ci.errorId&&oi.push(X.sg[Ci.errorId])}),oi}getRtxDvcRealTimeState(){const tn=Date.now();return this.ppeService.getAIDVCRealTimeStateInfo().pipe((0,$.T)(vn=>{if(this.logger.info("RTXDVC gameSupport response : ",vn),this.aiDvcGameEnableState=!!vn&&vn.enabled,this.ppeService.rtxDvcGameEnableState=this.aiDvcGameEnableState,this.rtxDvcRealTimeErrorCode=vn?vn.errorCode:0,this.aiDvcRealTimeErrorStringList=this.getAidvcRealTimeErrorString(!1,vn.errorCode),Date.now()-tn<this.realtimeRtxDvcStatePollingDuration){if(!vn.enabled&&!vn.errorCode)throw new Error("gameSupport");return vn}return!0}),(0,z.l)(vn=>vn.pipe((0,R.M)(()=>{this.logger.info("Retrying getAIDVCRealTimeStateInfo")}),(0,te.o)(()=>(0,I.O)(this.realtimeRtxDvcStatePollingInterval)))))}getRtxHdrStateAtAppLaunch(){return!!this.aiHdrStateAtAppLaunch&&this.aiHdrStateAtAppLaunch.enabled}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.ppeService.isPpeFeaturesEnabled&&(this.ppeService.isAIDVCSupported&&(this.ppeService.saveAIDVCState(),this.aiDvcGameEnableState=!1,this.instantEnableSupported=!1),this.trueHdrGameEnableState=!1,this.ppeService.saveAIHDRState(),this.ppeService.isNIS2Supported&&this.ppeService.saveNIS2State()),this.destroy$.next(!0),this.destroy$.unsubscribe()}}return(li=dr).\u0275fac=function(tn){return new(tn||li)(i.rXU(r.h8x),i.rXU(_.J6),i.rXU(i.gRc),i.rXU(r.k$F),i.rXU(a.c$),i.rXU(r.Vlf),i.rXU(r.Bqk),i.rXU(xe.S))},li.\u0275cmp=i.VBU({type:li,selectors:[["app-filter-section"]],viewQuery:function(tn,vn){if(1&tn&&i.GBs(ge.Cp,5),2&tn){let oi;i.mGM(oi=i.lsd())&&(vn.menuTrigger=oi.first)}},inputs:{filterStack:"filterStack",currentSlotIndex:"currentSlotIndex",setUseCase:"setUseCase"},decls:8,vars:6,consts:[["menu","matMenu"],["fxLayout","column",1,"filter-section"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","active-filter-header-padding",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","section-padding font-body2 font-color-tertiary side-padding",4,"ngIf"],["class","filter-stack-section",4,"ngIf"],["fxLayout","column",4,"ngIf"],[1,"font-body1","font-color-tertiary","side-padding"],["fxLayout","row","fxLayoutAlign","start center",1,"active-filter-header-padding"],["fxFlex","grow",4,"ngIf"],["fxFlex","none",4,"ngIf"],["fxFlex","grow"],["class","font-body2 font-color-tertiary left-side-padding",4,"ngIf"],[1,"font-body2","font-color-tertiary","left-side-padding"],["fxFlex","none","svgIcon","arrow_up","tooltip","tooltips.MoveUp",1,"filter-button-dimensions",3,"clicked","disabled"],["fxFlex","none","svgIcon","arrow_down","tooltip","tooltips.MoveDown",1,"filter-button-dimensions",3,"clicked","disabled"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",1,"filter-button-dimensions",3,"clicked"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",1,"filter-button-dimensions","nvapp-right-side-padding-delete",3,"clicked","disabled"],["fxFlex","none"],["xPosition","before","yPosition","below","overlapTrigger","false",1,"nv-igo"],[1,"filtermenu"],[4,"ngFor","ngForOf"],["svgIcon","add","tooltip","tooltips.AddFilter",1,"filter-button-dimensions","right-side-padding-add",3,"disabled"],["svgIcon","add","tooltip","tooltips.AddFilter",1,"filter-button-dimensions","right-side-padding-add",3,"matMenuTriggerFor"],["mat-menu-item","","class","nv-dropdown-menu hig-button-overlay","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngIf"],["mat-menu-item","","fxLayout","row","fxLayoutAlign","start center",1,"nv-dropdown-menu","hig-button-overlay",3,"click"],[1,"font-body1","filter-dropdown-button"],["fxLayout","row","fxLayoutAlign","start center",1,"section-padding","font-body2","font-color-tertiary","side-padding"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg","icon-padding"],[1,"filter-stack-section"],["multi","",1,"filter-stack"],["hideToggle","true",3,"expanded","active",4,"ngFor","ngForOf"],["hideToggle","true",3,"expanded"],["collapsedHeight","48px","expandedHeight","48px"],["fxLayout","row","fxLayoutAlign","start center","fxFlexFill","",1,"filter-item","selectable","left-side-padding",3,"click"],["fxLayout","row","fxFlex","",1,"font-body1","font-color-primary"],["fxLayout","column","fxLayoutAlign","start center"],["fxFlex","none","class","nv-item-icon complex-button chevron-down-padding font-body1","fxLayout","row","fxLayoutAlign","center center",3,"click",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",1,"font-body1","side-padding","bottom-padding"],["style","width: 100%;",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","complex-button","chevron-down-padding","font-body1",3,"click"],["svgIcon","chevron_down",1,"accordion-chevron"],[2,"width","100%"],["fxLayout","row","class","section-padding",4,"ngIf"],["fxLayout","column","fxLayoutGap","8px",4,"ngIf"],["fxFlex","",3,"control","filter","disabled"],["fxLayout","column"],["fxLayout","row",1,"section-padding"],["fxFlex","none","class","subcontrols","fxLayoutGap","12px",4,"ngFor","ngForOf"],["fxFlex","none","fxLayoutGap","12px",1,"subcontrols"],[3,"ngModelChange","change","ngModel"],["fxLayout","column","fxLayoutGap","8px"],["fxLayout","row"],["fxLayout","row","fxFlex","none"],["fxFlex","",3,"selectionChanged","maxHeight","selection","disabled","input"],[3,"changedSelection","selection","disabled","input"],["fxFlex","",3,"control","filter"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","column",1,"font-body2"],["fxLayoutAlign","start center",1,"section-padding"],[1,"font-sub2","font-color-tertiary"],["class","font-body1 filter-item",3,"side-padding",4,"ngIf"],["urlIcon","add",3,"titleString","clicked",4,"ngIf"],[1,"font-body1","filter-item"],["urlIcon","add",3,"clicked","titleString"]],template:function(tn,vn){1&tn&&(i.j41(0,"div",1),i.DNE(1,ye,4,3,"div",2)(2,Bn,5,4,"div",3)(3,En,6,3,"div",4)(4,Un,3,3,"div",5)(5,Oi,1,0,"nv-divider",2),i.j41(6,"div"),i.DNE(7,Zi,6,9,"div",6),i.k0s()()),2&tn&&(i.R7$(),i.Y8G("ngIf",vn.isAppStartedReceived&&0===vn.currentActiveSlotIndex&&!vn.disabledDueToGlobalToggle),i.R7$(),i.Y8G("ngIf",0!==vn.currentActiveSlotIndex),i.R7$(),i.Y8G("ngIf",0!==vn.currentActiveSlotIndex&&vn.isAppStartedReceived&&(vn.nvCameraReady||vn.isPpeSupportedGame&&vn.isPpeFiltersVisible)&&vn.isNewFilterUI&&vn.filterStack.filters.length+vn.ppeFilterStack.filters.length===0&&!vn.disabledDueToGlobalToggle),i.R7$(),i.Y8G("ngIf",0!==vn.currentActiveSlotIndex&&vn.isAppStartedReceived&&!vn.disabledDueToGlobalToggle),i.R7$(),i.Y8G("ngIf",vn.isNewFilterUI),i.R7$(2),i.Y8G("ngIf",vn.isNewFilterUI))},dependencies:[h.$,ue.T,de,ae.j,g.I,n.Sq,n.bT,T.DJ,T.BO,T.sA,T.G2,T.UI,N.BC,N.vS,pe.pI,pe.gy,pe.fS,_e.An,ke.P2,De.BS,De.GK,De.Z2,ce.tG,je,$e,a.D9],styles:['@charset "UTF-8";.filter-section[_ngcontent-%COMP%]{width:512px;min-width:512px;max-width:512px}.filtermenu[_ngcontent-%COMP%]{max-height:494px;width:280px;overflow:auto}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding-photo-mode[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nv-dropdown-menu[_ngcontent-%COMP%]{box-sizing:border-box;margin:0;width:100%;height:36px}.nv-dropdown-menu[_ngcontent-%COMP%]:first-of-type{margin-top:8px}.nv-dropdown-menu[_ngcontent-%COMP%] .span[_ngcontent-%COMP%]{width:194px}.filter-dropdown-button[_ngcontent-%COMP%]{padding:0 16px}.filter-title[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.accordion-body[_ngcontent-%COMP%]{padding:16px 24px}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{background-color:#fff0}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[disabled][_ngcontent-%COMP%]{opacity:.38}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]:not(:disabled):hover{background-color:#ffffff14}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]:not(:disabled):focus{background-color:#ffffff52;transition:background-color .75s ease}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]:not(:disabled):active{background-color:#fff6}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel.active[_ngcontent-%COMP%]{background-color:#ffffff29}.filter-stack[_ngcontent-%COMP%] .mat-expansion-panel-spacing[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.chevron-down-padding[_ngcontent-%COMP%]{height:24px;width:24px}.isLtr[_nghost-%COMP%] .subcontrols[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .subcontrols[_ngcontent-%COMP%]{padding:10px 0 0 20px}html[dir=ltr][_ngcontent-%COMP%] .subcontrols[_ngcontent-%COMP%]{--dummy: 0;padding:10px 0 0 20px}.isRtl[_nghost-%COMP%] .subcontrols[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .subcontrols[_ngcontent-%COMP%]{padding:10px 20px 0 0}html[dir=rtl][_ngcontent-%COMP%] .subcontrols[_ngcontent-%COMP%]{--dummy: 0;padding:10px 20px 0 0}.filter-item[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.filter-item.selectable[_ngcontent-%COMP%]:hover{background-color:#ffffff14}.active-filter-header-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .rightmost-button-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.filter-button-dimensions[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .filter-button-dimensions[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:12px}.isLtr[_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .left-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .left-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .left-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding-delete[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr][_ngcontent-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl[_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}.isLtr[_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .right-side-padding-add[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr.nvapp-igo-view[_nghost-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%]{padding-right:0}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{--dummy2: 0;padding-right:0}.isRtl.nvapp-igo-view[_nghost-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%]{padding-left:0}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{--dummy2: 0;padding-left:0}.isLtr.nvapp-igo-view[_nghost-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%]{padding-left:0}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{--dummy1: 0;padding-left:0}.isRtl.nvapp-igo-view[_nghost-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%]{padding-right:0}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{--dummy1: 0;padding-right:0}.isLtr.nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.icon-alert-circle_reg[_ngcontent-%COMP%]{line-height:inherit;font-style:normal}.isLtr[_nghost-%COMP%] .error-list[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .error-list[_ngcontent-%COMP%]{margin-left:20px}html[dir=ltr][_ngcontent-%COMP%] .error-list[_ngcontent-%COMP%]{--dummy3: 0;margin-left:20px}.isRtl[_nghost-%COMP%] .error-list[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .error-list[_ngcontent-%COMP%]{margin-right:20px}html[dir=rtl][_ngcontent-%COMP%] .error-list[_ngcontent-%COMP%]{--dummy3: 0;margin-right:20px}ul[_ngcontent-%COMP%]{list-style-image:none;padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"\\2022";font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;display:inline-block;width:4px}.tv-view[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .tv-view[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .tv-view [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .new-10ft [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{color:#ffffffd9}.isLtr[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .isLtr [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .isRtl [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--dummy1: 0;padding-right:8px}.isLtr[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .isLtr [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before, .isRtl [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{--dummy2: 0;padding-left:8px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex}.isLtr[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.filterdisplayname[disabled][_ngcontent-%COMP%]{opacity:.08}.section-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}']}),dr})();const Kr=()=>({active:!1,"preview-panel__preview-pane-basic":!0}),Qt=(li,dr,Tn)=>({active:li,"preview-panel__preview-pane-basic":dr,"preview-panel__preview-pane":Tn});function di(li,dr){if(1&li&&i.nrm(0,"div",9),2&li){const Tn=i.XpG(2);i.Y8G("ngClass",i.lJ4(2,Kr))("tabindex",Tn.restartGame||!Tn.isAppStartedReceived?-1:0)}}function ji(li,dr){if(1&li&&(i.j41(0,"div"),i.DNE(1,di,1,3,"div",8),i.k0s()),2&li){const Tn=i.XpG();i.R7$(),i.Y8G("ngForOf",Tn.slots)}}function vi(li,dr){if(1&li&&i.nrm(0,"div",9),2&li){const Tn=i.XpG(2);i.Y8G("ngClass",i.lJ4(2,Kr))("tabindex",Tn.restartGame||!Tn.isPpeSupportedGame&&!Tn.isPpeFiltersVisible&&!Tn.isNvCameraReady||Tn.disabledDueToGlobalToggle?-1:0)}}function Zt(li,dr){if(1&li&&(i.j41(0,"div"),i.DNE(1,vi,1,3,"div",8),i.k0s()),2&li){const Tn=i.XpG();i.R7$(),i.Y8G("ngForOf",Tn.slots)}}function Zn(li,dr){if(1&li&&i.nrm(0,"img",14),2&li){const Tn=i.XpG().$implicit,tn=i.XpG(2);i.Y8G("src",tn.slotsPreview[Tn.id].previewImgData,i.B4B)}}function Dn(li,dr){if(1&li&&(i.j41(0,"span",15),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&li){const Tn=i.XpG().$implicit;i.R7$(),i.JRh(i.bMT(2,1,Tn.altText))}}function zn(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",11),i.bIt("click",function(){const vn=i.eBV(Tn).$implicit,oi=i.XpG(2);return i.Njj(oi.onSlotSelection(vn))})("keydown.enter",function(){const vn=i.eBV(Tn).$implicit,oi=i.XpG(2);return i.Njj(oi.onSlotSelection(vn))}),i.DNE(1,Zn,1,1,"img",12)(2,Dn,3,3,"span",13),i.k0s()}if(2&li){const Tn=dr.$implicit,tn=i.XpG(2);i.Y8G("ngClass",i.sMw(5,Qt,tn.isSlotActive(Tn),tn.restartGame,!tn.restartGame))("nvAutoFocus",tn.isSlotActive(Tn))("tabindex",tn.restartGame||!tn.isAppStartedReceived&&!tn.disabledDueToGlobalToggle?-1:0),i.R7$(),i.Y8G("ngIf",tn.checkPreviewForSlot(Tn.id)),i.R7$(),i.Y8G("ngIf",!tn.checkPreviewForSlot(Tn.id))}}function Ti(li,dr){if(1&li&&(i.j41(0,"div"),i.DNE(1,zn,3,9,"div",10),i.k0s()),2&li){const Tn=i.XpG();i.R7$(),i.Y8G("ngForOf",Tn.slots)}}function Xt(li,dr){1&li&&i.nrm(0,"nv-divider")}function xn(li,dr){1&li&&(i.j41(0,"div",22),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&li&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"nvcamera.EditFieldTitleHotkey")," "))}function mi(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",16)(1,"div",17)(2,"div",18),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"nv-input",19),i.mxI("textChange",function(vn){i.eBV(Tn);const oi=i.XpG();return i.DH7(oi.slotNameEditBox.activeSlotName,vn)||(oi.slotNameEditBox.activeSlotName=vn),i.Njj(vn)}),i.bIt("textChange",function(vn){i.eBV(Tn);const oi=i.XpG();return i.Njj(oi.slotNameEditBox.onEditboxChanged(vn))}),i.k0s(),i.DNE(6,xn,3,3,"div",20),i.j41(7,"nv-input",21),i.mxI("textChange",function(vn){i.eBV(Tn);const oi=i.XpG();return i.DH7(oi.hotKeyEditBox.slotHK,vn)||(oi.hotKeyEditBox.slotHK=vn),i.Njj(vn)}),i.bIt("textChange",function(vn){i.eBV(Tn);const oi=i.XpG();return i.Njj(oi.hotKeyEditBox.onEditboxChanged(vn))})("click",function(){i.eBV(Tn);const vn=i.XpG();return i.Njj(vn.changeHotKey())})("keydown.enter",function(){i.eBV(Tn);const vn=i.XpG();return i.Njj(vn.changeHotKey())}),i.k0s()()()}if(2&li){const Tn=i.XpG();i.R7$(3),i.JRh(i.bMT(4,11,"nvcamera.EditFieldTitleGameName")),i.R7$(2),i.R50("text",Tn.slotNameEditBox.activeSlotName),i.Y8G("placeholderText",Tn.slotNameEditBox.placeHolder)("disabled",Tn.slotNameEditBox.disabled)("characterCounter",Tn.slotNameEditBox.characterCounter)("textMaxLength",Tn.slotNameEditBox.slotTextMaxLen),i.R7$(),i.Y8G("ngIf",!Tn.isNewFilterUI||!Tn.isNewFilterUI&&0!==Tn.activeSlotIndex),i.R7$(),i.R50("text",Tn.hotKeyEditBox.slotHK),i.Y8G("disabled",Tn.hotKeyEditBox.disabled)("readonly",!0)("textMaxLength",Tn.hotKeyEditBox.slotTextMaxLen)}}function $n(li,dr){1&li&&i.nrm(0,"nv-divider")}function Pt(li,dr){if(1&li&&(i.j41(0,"div",23),i.nrm(1,"app-filter-section",24),i.k0s()),2&li){const Tn=i.XpG();i.R7$(),i.Y8G("setUseCase",!1)("currentSlotIndex",Tn.activeSlotIndex)("filterStack",Tn.getFilterStack())}}let Ii=(()=>{var li;class dr{constructor(tn,vn,oi,Ci,or,yr,$r,ko,qr,lo,ts,Ls){this.loggingService=tn,this.router=vn,this.route=oi,this.translateService=Ci,this.nvCameraService=or,this.ppeService=yr,this.navigationService=$r,this.oscDisplayService=ko,this.keyboardService=qr,this.appBarService=lo,this.telemetryService=ts,this.igoConfig=Ls,this.destroy$=new O.B7,this.currentGameName="PUBG Lowlight",this.slotHotkey="Alt + F1",this.panelOpenState=!1,this.activeSlotIndex=null,this.positionEnum=r.SIx,this.slotNameEditBox={activeSlotName:"",title:"Name",placeHolder:{text:"nvcamera.Style",arg:0},slotTextMaxLen:30,disabled:!1,characterCounter:!0,onEditboxChanged:Xr=>{this.nvCameraService.setCurrentModSlotName(Xr)}},this.hotKeyEditBox={slotHK:"Alt+3",slotTextMaxLen:100,disabled:!0,onEditboxChanged:Xr=>{this.logger.info("In progress")}},this.previewRefreshDelay=1e3,this.previewImgWidth=116,this.previewImgHeight=116,this.showError=!1,this.captureEnhanceSwitch=this.nvCameraService.statusOfCaptureEnhance,this.restartGame=!1,this.isNewFilterUI=!1,this.isPPEEnabled=!1,this.isAppStartedReceived=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.isNvCameraReady=!1,this.isNis2Enabled=!1,this.disabledDueToGlobalToggle=!1,this.slotsName="",this.hotkeyEnum=[r.g8X.OpenFreestyle],this.logger=this.loggingService.getLogger("GameFilter"),this.isNewFilterUI=!this.igoConfig.GFNCefClient,this.slotsName=this.isNewFilterUI?"nvcamera.Profiles":"nvcamera.Styles",this.appBarService.setAll({title:r.sT2,navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,y.Q)(this.destroy$)).subscribe(Xr=>{"nav"===Xr&&this.onBackClicked()})}ngOnInit(){return this.logger.info("Game filter INIT"),this.nvCameraService.changeUIRunning(!0),this.telemetryInit(),this.navigationService.escapeEvent().pipe((0,y.Q)(this.destroy$)).subscribe(()=>{"UI"===this.nvCameraService.sourceTrigger?(this.logger.info("Return to Main Menu"),this.onBackClicked()):"HK"===this.nvCameraService.sourceTrigger&&this.oscDisplayService.closeOSC()}),this.isGFNClient=this.igoConfig.GFNCefClient,this.isGFNClient||(this.nvCameraService.getHotkeyNum(r.g8X.OpenFreestyle).pipe((0,y.Q)(this.destroy$)).subscribe(tn=>{this.freestyleHotkey=tn}),this.nvCameraService.isInDesktopMode().subscribe(tn=>{this.oscFullscreen=!tn,this.oscFullscreen&&this.nvCameraService.setDynamicHotkey(!1,this.hotkeyEnum)})),this.isAppStartedReceived=this.nvCameraService.isAppStartedReceived,this.isPpeSupportedGame=this.ppeService.isPpeSupportedGame,this.isPpeFiltersVisible=this.ppeService.isPpeFiltersVisible,this.showError="true"===this.route.snapshot.params.showError,this.errorType=this.route.snapshot.params.errorType,this.nvCameraSessionExists=this.route.snapshot.params.nvCameraSessionExists,this.isPPEEnabled=this.ppeService.isPpeFeaturesEnabled,this.isNvCameraReady=this.nvCameraService.isNvCameraReady,this.isNis2Enabled=this.ppeService.isNIS2Enabled,this.restartGame=this.nvCameraService.restartRequired,this.ppeService.getAllStaticFilterList(),!this.isAppStartedReceived&&this.isGFNClient?this.showErrorMessage():this.nvCameraService.getGlobalToggle().subscribe(tn=>{this.disabledDueToGlobalToggle=!tn||this.nvCameraService.getIsGameRestartRequestedfromCTA()}),this.showError?this.isPPEEnabled?(this.emptySlots=new r.naB,this.slots=this.emptySlots.modsSlotsInfo.slots,this.showError=!1,this.restartGame=!1,this.activeSlotIndex=this.nvCameraService.currentGameSlots?this.nvCameraService.currentGameSlots.modsSlotsInfo.lastSlotIdx:this.ppeService.currentGameSlotIndex,this.previewEnabled=!!this.isNewFilterUI,this.nvCameraService.setPreviewDetails(this.slots,this.previewImgWidth,this.previewImgHeight),this.triggerPreview(),this.slotsPreview=this.nvCameraService.slotsPreviewInfo,void this.sendGameFilterErrorTelemetry()):void this.showErrorMessage():this.restartGame?(this.emptySlots=new r.naB,void(this.slots=this.emptySlots.modsSlotsInfo.slots)):(this.nvCameraSessionExists||this.nvCameraService.startNvCameraSession().subscribe(tn=>{this.nvCameraSessionExists=!!tn}),this.slots=this.nvCameraService.currentGameSlots?.modsSlotsInfo.slots,this.activeSlotIndex=this.isPPEEnabled?this.nvCameraService.isAnyGameFilterSlotSelected()?this.nvCameraService.currentGameSlots?.modsSlotsInfo.lastSlotIdx:this.ppeService.currentGameSlotIndex:this.nvCameraService.currentGameSlots?.modsSlotsInfo.lastSlotIdx,this.slotNameEditBox.activeSlotName=this.nvCameraService.getCurrentModSlotName(),this.slotNameEditBox.placeHolder.arg=this.activeSlotIndex,this.previewEnabled=!!this.isNewFilterUI||this.nvCameraService.checkPreviewEnabled(),this.logger.info("current active slot = ",this.activeSlotIndex),this.nvCameraService.setPreviewDetails(this.slots,this.previewImgWidth,this.previewImgHeight),this.triggerPreview(),this.slotsPreview=this.nvCameraService.slotsPreviewInfo,this.nvCameraService.applySlot(this.activeSlotIndex).subscribe(tn=>{this.logger.info("initialized successfully: ",tn)},tn=>{this.logger.error("error during init: ",tn)}),void this.nvCameraService.getHotkeyStringForSlot(this.activeSlotIndex).pipe((0,y.Q)(this.destroy$)).subscribe(tn=>{this.hotKeyEditBox.slotHK=tn,this.hotKeyEditBox.disabled=void 0===this.hotKeyEditBox.slotHK||"None"===this.hotKeyEditBox.slotHK}))}ngOnDestroy(){this.logger.info("Game filter destroying");let tn=!1;this.nvCameraService.resetPreviewStatus(),this.destroy$.next(!0),this.destroy$.unsubscribe(),this.nvCameraService.isFreestyleSupportedGame()&&!this.disabledDueToGlobalToggle&&(this.nvCameraService.filterAppliedTelemetry(this.activeSlotIndex),this.nvCameraService.processingControlSettingsTelemetry(this.activeSlotIndex)),this.showError||this.nvCameraService.restartRequired?this.nvCameraService.changeUIRunning(!1):(this.slots&&this.activeSlotIndex&&this.slots[this.activeSlotIndex].filterStack.filters.length>0&&(tn=!0),this.nvCameraService.closeGameFilterMenu({isleaveFilters:tn})),this.nvCameraService.gameFilterMenu=!1}showErrorMessage(){switch(this.errorType){case r.VuP.ERROR_TIMEOUT:this.nvCameraService.nvCameraTimedOut=!0,this.errorMsg="notification.WarningGameRequired",this.nvCameraService.sendAnselFreestyleErrorTelemetry(r.T7s.anselFreestyleUnsupportedGameError,r.O5.GameFilter);break;case r.VuP.ERROR_SUPPORTED_GAME:this.errorMsg="notification.WarningGameRequired",this.nvCameraService.sendAnselFreestyleErrorTelemetry(r.T7s.anselFreestyleUnsupportedGameError,r.O5.GameFilter);break;case r.VuP.ERROR_RESTART:this.errorMsg="notification.ErrorRestartGame",this.nvCameraService.sendAnselFreestyleErrorTelemetry(r.T7s.anselFreestyleMenuLaunchError,r.O5.GameFilter);break;default:this.logger.error("Unknown error msg type: "+this.errorType),this.errorMsg="notification.WarningGameRequired",this.nvCameraService.sendAnselFreestyleErrorTelemetry(r.T7s.anselFreestyleGeneralFailure,r.O5.GameFilter)}}sendGameFilterErrorTelemetry(){switch(this.errorType){case r.VuP.ERROR_TIMEOUT:this.nvCameraService.anselFreestyleErrorTelemetry(r.T7s.anselFreestyleUnsupportedGameError,r.O5.GameFilter,"Nvcamera timed out");break;case r.VuP.ERROR_SUPPORTED_GAME:this.nvCameraService.anselFreestyleErrorTelemetry(r.T7s.anselFreestyleUnsupportedGameError,r.O5.GameFilter,"Unsupported game");break;case r.VuP.ERROR_RESTART:this.nvCameraService.anselFreestyleErrorTelemetry(r.T7s.anselFreestyleMenuLaunchError,r.O5.GameFilter,"Game restart required");break;default:this.logger.error("Unknown error msg type: "+this.errorType),this.nvCameraService.anselFreestyleErrorTelemetry(r.T7s.anselFreestyleGeneralFailure,r.O5.GameFilter,"Unknown error")}}triggerPreview(){this.nvCameraService.updatePreview(this.previewImgWidth,this.previewImgHeight,this.ppeService.currentGameSlotIndex),(0,S.Y)(this.previewRefreshDelay).pipe((0,y.Q)(this.destroy$)).subscribe(vn=>{this.nvCameraService.updatePreview(this.previewImgWidth,this.previewImgHeight,this.ppeService.currentGameSlotIndex)})}checkPreviewForSlot(tn){return!this.restartGame&&!!this.slotsPreview&&this.previewEnabled&&this.slotsPreview[tn]?.previewAvailable}onBackClicked(){this.logger.info("Back clicked"),this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},r.jby.mainMenu),this.nvCameraService.setNavigationInputDevice([r.uk.Mouse],[r.O67.yes])}onSlotSelection(tn){if(!this.restartGame&&this.isAppStartedReceived){if(this.logger.info("slot switching : ",JSON.stringify(tn)),this.logger.info(" : this.nvCameraSessionExists : ",this.nvCameraSessionExists),this.isPPEEnabled&&this.ppeService.isPpeSupportedGame&&(this.nvCameraService.triggerPpeFilterSlotChange(tn.id),!this.nvCameraSessionExists))return this.emptySlots=new r.naB,this.slots=this.emptySlots.modsSlotsInfo.slots,this.showError=!1,this.restartGame=!1,this.activeSlotIndex=tn.id,this.slotNameEditBox.activeSlotName=tn.altText,this.slotNameEditBox.placeHolder.arg=this.activeSlotIndex,void this.nvCameraService.updatePreview(this.previewImgWidth,this.previewImgHeight,tn.id);this.nvCameraSessionExists&&this.nvCameraService.applySlot(tn.id).subscribe(vn=>{this.nvCameraService.updatePreview(this.previewImgWidth,this.previewImgHeight,tn.id),this.logger.info("slot switched successfully: ",vn)},vn=>{this.logger.error("slot switch failed with error: ",vn),this.nvCameraService.showSnack(r.BO6.ApplyStyleFail)}),this.activeSlotIndex=this.nvCameraService.currentGameSlots.modsSlotsInfo.lastSlotIdx,this.slotNameEditBox.activeSlotName=this.nvCameraService.getCurrentModSlotName(),this.slotNameEditBox.placeHolder.arg=this.activeSlotIndex,this.nvCameraService.getHotkeyStringForSlot(tn.id).pipe((0,y.Q)(this.destroy$)).subscribe(vn=>{this.hotKeyEditBox.slotHK=vn})}}isSlotActive(tn){return this.restartGame?0===tn.id:!(this.isPPEEnabled&&!this.isAppStartedReceived)&&this.activeSlotIndex===tn.id}onKeyDown(tn,vn){this.oscFullscreen&&this.nvCameraService.monitorHotKey(tn,this.freestyleHotkey)?this.oscDisplayService.closeOSC():("Tab"===tn.code&&this.nvCameraService.setNavigationInputDevice([r.uk.Keyboard],[r.O67.yes]),this.keyboardService.onKeyDown(tn,vn))}onMouseDown(){this.nvCameraService.setNavigationInputDevice([r.uk.Mouse],[r.O67.yes])}changeHotKey(){this.navigationService.navigate(["../settings/shortcuts",{caller:"../nvcamera/game-filters"}],{relativeTo:this.route.parent,skipLocationChange:!0},r.jby.mainMenu)}setToggleState(tn){this.captureEnhanceSwitch=tn.captureEnhanceState,this.captureEnhanceSwitch&&this.nvCameraService.restartRequired&&(this.restartGame=!0)}telemetryInit(){this.nvCameraService.navigationInputDevice.KEYBOARD=!1,this.nvCameraService.navigationInputDevice.MOUSE=!1,this.nvCameraService.panningUsed=!1,this.nvCameraService.panningWithKB=!1,this.nvCameraService.panningWithMouse=!1}getFilterStack(){return this.slots&&this.activeSlotIndex?this.slots[this.activeSlotIndex].filterStack:null}}return(li=dr).\u0275fac=function(tn){return new(tn||li)(i.rXU(_.J6),i.rXU(l.Ix),i.rXU(l.nX),i.rXU(a.c$),i.rXU(r.h8x),i.rXU(r.Vlf),i.rXU(r.o_p),i.rXU(r.Bqk),i.rXU(r.rMY),i.rXU(r.gZv),i.rXU(r.xRl),i.rXU(r.k$F))},li.\u0275cmp=i.VBU({type:li,selectors:[["app-game-filters"]],decls:15,vars:14,consts:[["fxLayout","column","fxFlex","",3,"keydown","mousedown"],["fxFlex","none",1,"font-sub2","font-color-tertiary","section-titles-padding"],["fxFlex","","fxLayout","column",1,"game-filters-layout"],["fxFlex","none",1,"preview-panel","side-padding"],[4,"ngIf"],["class","game-info-section","fxFlex","none",4,"ngIf"],["class","filter-section-embed","fxFlex","none","fxLayout","column",4,"ngIf"],["fxFlex","none",1,"nv-gap-24"],["fxFlex","","fxLayoutAlign","center center",3,"ngClass","tabindex",4,"ngFor","ngForOf"],["fxFlex","","fxLayoutAlign","center center",3,"ngClass","tabindex"],["fxFlex","","fxLayoutAlign","center center",3,"ngClass","nvAutoFocus","tabindex","click","keydown.enter",4,"ngFor","ngForOf"],["fxFlex","","fxLayoutAlign","center center",3,"click","keydown.enter","ngClass","nvAutoFocus","tabindex"],[3,"src",4,"ngIf"],["class","font-body2",4,"ngIf"],[3,"src"],[1,"font-body2"],["fxFlex","none",1,"game-info-section"],["fxLayout","column"],[1,"font-body2","side-padding"],[1,"side-padding",3,"textChange","text","placeholderText","disabled","characterCounter","textMaxLength"],["class","font-body2 nv-label side-padding",4,"ngIf"],[1,"side-padding",3,"textChange","click","keydown.enter","text","disabled","readonly","textMaxLength"],[1,"font-body2","nv-label","side-padding"],["fxFlex","none","fxLayout","column",1,"filter-section-embed"],[3,"setUseCase","currentSlotIndex","filterStack"]],template:function(tn,vn){1&tn&&(i.j41(0,"div",0),i.bIt("keydown",function(Ci){return vn.onKeyDown(Ci)})("mousedown",function(){return vn.onMouseDown()}),i.qex(1),i.j41(2,"div",1),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"div",2)(6,"div",3),i.DNE(7,ji,2,1,"div",4)(8,Zt,2,1,"div",4)(9,Ti,2,1,"div",4),i.k0s(),i.DNE(10,Xt,1,0,"nv-divider",4)(11,mi,8,13,"div",5)(12,$n,1,0,"nv-divider",4)(13,Pt,2,3,"div",6),i.k0s(),i.nrm(14,"div",7),i.bVm(),i.k0s()),2&tn&&(i.R7$(2),i.AVh("disabled-opacity",vn.restartGame||!vn.isAppStartedReceived||vn.disabledDueToGlobalToggle||vn.isAppStartedReceived&&!vn.isNvCameraReady&&!vn.isPpeFiltersVisible),i.R7$(),i.SpI(" ",i.bMT(4,12,vn.slotsName)," "),i.R7$(2),i.AVh("disabled-opacity",vn.restartGame||!vn.isAppStartedReceived||vn.isAppStartedReceived&&!vn.isNvCameraReady&&!vn.isPpeFiltersVisible||vn.disabledDueToGlobalToggle),i.R7$(2),i.Y8G("ngIf",vn.isNewFilterUI&&!vn.isAppStartedReceived),i.R7$(),i.Y8G("ngIf",vn.isNewFilterUI&&vn.isAppStartedReceived&&(!vn.isPpeFiltersVisible&&!vn.isNvCameraReady||vn.disabledDueToGlobalToggle)),i.R7$(),i.Y8G("ngIf",vn.isAppStartedReceived&&(vn.isPpeSupportedGame&&vn.isPpeFiltersVisible||vn.isNvCameraReady)&&!vn.disabledDueToGlobalToggle),i.R7$(),i.Y8G("ngIf",vn.isAppStartedReceived&&(vn.isNvCameraReady||vn.isPpeFiltersVisible)&&!vn.disabledDueToGlobalToggle),i.R7$(),i.Y8G("ngIf",!vn.restartGame&&!vn.isNewFilterUI&&0!==vn.activeSlotIndex),i.R7$(),i.Y8G("ngIf",!vn.restartGame&&!vn.isNewFilterUI&&0!==vn.activeSlotIndex),i.R7$(),i.Y8G("ngIf",!vn.restartGame&&(vn.isNewFilterUI||0!==vn.activeSlotIndex)))},dependencies:[h.$,g.I,c.Q,n.YU,n.Sq,n.bT,T.DJ,T.sA,T.UI,A.PW,L.N,Lr,a.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{overflow-y:auto;overflow-x:hidden;padding-top:16px;padding-bottom:16px}.isLtr [_nghost-%COMP%]{margin-right:-24px}html[dir=ltr] [_nghost-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl [_nghost-%COMP%]{margin-left:-24px}html[dir=rtl] [_nghost-%COMP%]{--dummy4: 0;margin-left:-24px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.section-titles-padding[_ngcontent-%COMP%]{padding:12px 16px}.active[_ngcontent-%COMP%]{border:1px solid #76b900!important}.preview-panel[_ngcontent-%COMP%]{width:100%;max-width:116px;min-width:116px;height:116px}.preview-panel__preview-pane[_ngcontent-%COMP%], .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{width:116px;height:116px;min-width:116px;border:1px solid rgba(255,255,255,.7);display:inline-block;text-align:center;vertical-align:middle}.isLtr[_nghost-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{margin:0 5px 0 0}html[dir=ltr][_ngcontent-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{--dummy: 0;margin:0 5px 0 0}.isRtl[_nghost-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{margin:0 0 0 5px}html[dir=rtl][_ngcontent-%COMP%] .preview-panel__preview-pane[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .preview-panel__preview-pane-basic[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 0 5px}.preview-panel__preview-pane[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:114px;border:inherit}.preview-panel__preview-pane[_ngcontent-%COMP%]:hover{border:1px solid #76b900;cursor:pointer}.preview-panel__preview-pane[_ngcontent-%COMP%]:focus{border:1px solid #76b900;cursor:pointer}.preview-panel__preview-pane--selected[_ngcontent-%COMP%]{background-color:#76b900}.game-info-section[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:24px;height:24px;font-size:24px}.filter-section-embed[_ngcontent-%COMP%]{box-sizing:border-box;background-clip:content-box}.max-warning-area[_ngcontent-%COMP%]{margin:16px 0 0}.limit-padding[_ngcontent-%COMP%]{padding:8px 0}"]}),dr})();var ar=d(36877),Jt=d(43780),ki=d(18880),Fr=d(35371),xo=d(47973);const qn=li=>({"camera-helper-empty-state-margin":li});function Sr(li,dr){1&li&&i.nrm(0,"div",14)}function ni(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div")(1,"nv-item-button",15),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.hideUI())}),i.k0s()()}if(2&li){const Tn=i.XpG(2);i.R7$(),i.Y8G("subTitle",Tn.getHidePanelSubTitle())("disabled",Tn.snapDisabled)}}function he(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div")(1,"div",16),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"nv-dropdown",17),i.bIt("selectionChanged",function(vn){i.eBV(Tn);const oi=i.XpG(3);return i.Njj(oi.methodChanged(vn))}),i.k0s()()}if(2&li){const Tn=i.XpG(3);i.R7$(2),i.JRh(i.bMT(3,4,Tn.methodTitle)),i.R7$(2),i.Y8G("selection",Tn.methodSelection)("disabled",!1)("input",Tn.methodInput)}}function Ee(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",21)(1,"div",22),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"mat-slide-toggle",23),i.mxI("ngModelChange",function(vn){i.eBV(Tn);const oi=i.XpG(3);return i.DH7(oi.hdrSwitch,vn)||(oi.hdrSwitch=vn),i.Njj(vn)}),i.bIt("change",function(vn){i.eBV(Tn);const oi=i.XpG(3);return i.Njj(oi.hdrSwitchChange(vn))}),i.k0s()()}if(2&li){const Tn=i.XpG(3);i.R7$(2),i.JRh(i.bMT(3,3,"nvcamera.SaveAsHDR")),i.R7$(2),i.R50("ngModel",Tn.hdrSwitch),i.Y8G("disabled",Tn.restartGame)}}function Pe(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div")(1,"div",16),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"nv-dropdown",17),i.bIt("selectionChanged",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.captureChanged(vn))}),i.k0s(),i.nrm(5,"div",18),i.DNE(6,he,5,6,"div",1),i.nrm(7,"div",18),i.j41(8,"div",16),i.EFF(9),i.nI1(10,"translate"),i.k0s(),i.j41(11,"nv-dropdown",17),i.bIt("selectionChanged",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.resolutionChanged(vn))}),i.k0s(),i.nrm(12,"div",19),i.DNE(13,Ee,5,5,"div",20),i.nrm(14,"div",18),i.k0s()}if(2&li){const Tn=i.XpG(2);i.R7$(2),i.JRh(i.bMT(3,12,Tn.captureTitle)),i.R7$(2),i.Y8G("selection",Tn.captureTypeSelection)("disabled",!1)("input",Tn.captureTypeInput)("disabled",Tn.restartGame),i.R7$(2),i.Y8G("ngIf",!Tn.methodDisabled),i.R7$(3),i.JRh(i.bMT(10,14,Tn.resolutionTitle)),i.R7$(2),i.Y8G("selection",Tn.resolutionSelection)("disabled",!1)("input",Tn.resolutionInput)("disabled",Tn.restartGame),i.R7$(2),i.Y8G("ngIf",Tn.isHDRCaptureSupported)}}function Qe(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div")(1,"div",24)(2,"div",25)(3,"div",26),i.EFF(4),i.nI1(5,"translate"),i.k0s()(),i.j41(6,"nv-hig-slider",27),i.bIt("input",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.onResolutionSliderChange(vn.value))})("valueChange",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.onResolutionSliderChange(vn))}),i.k0s(),i.j41(7,"div",28),i.EFF(8),i.k0s()()()}if(2&li){const Tn=i.XpG(2);i.R7$(3),i.AVh("nvapp-side-padding",!Tn.isGFNClient),i.R7$(),i.SpI(" ",i.bMT(5,11,Tn.resolutionTitle)," "),i.R7$(2),i.AVh("nvapp-slider-padding",!Tn.isGFNClient),i.Y8G("min",Tn.resolutionSlider.min)("max",Tn.resolutionSlider.max)("step",Tn.resolutionSlider.step)("value",Tn.resolutionSlider.value)("disabled",Tn.showError||Tn.restartGame||Tn.resolutionSlider.max===Tn.resolutionSlider.min),i.R7$(2),i.SpI(" ",Tn.resolutionSlider.label," ")}}function Be(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",29)(1,"div",30),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"mat-slide-toggle",31),i.mxI("ngModelChange",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.DH7(oi.gridSwitch,vn)||(oi.gridSwitch=vn),i.Njj(vn)}),i.bIt("change",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.gridSwitchChange(vn))}),i.k0s()()}if(2&li){const Tn=i.XpG(2);i.R7$(2),i.SpI(" ",i.bMT(3,3,"nvcamera.ShowGrid")," "),i.R7$(2),i.R50("ngModel",Tn.gridSwitch),i.Y8G("disabled",Tn.showError||Tn.restartGame)}}function Mt(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"mat-accordion")(1,"mat-expansion-panel",32)(2,"mat-expansion-panel-header",33)(3,"div",34)(4,"div",35),i.EFF(5),i.nI1(6,"translate"),i.k0s(),i.j41(7,"button",36),i.nrm(8,"mat-icon",37),i.k0s()()(),i.j41(9,"div",24)(10,"div",38)(11,"div",39),i.EFF(12),i.nI1(13,"translate"),i.k0s()(),i.j41(14,"nv-hig-slider",40),i.bIt("input",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.onRotationSliderChange(vn.value))})("valueChange",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.onRotationSliderChange(vn))}),i.k0s()(),i.nrm(15,"div",18),i.j41(16,"div",24)(17,"div",25)(18,"div",41),i.EFF(19),i.nI1(20,"translate"),i.k0s()(),i.j41(21,"nv-hig-slider",40),i.bIt("input",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.onFOVSliderChange(vn.value))})("valueChange",function(vn){i.eBV(Tn);const oi=i.XpG(2);return i.Njj(oi.onFOVSliderChange(vn))}),i.k0s()()()()}if(2&li){const Tn=i.XpG(2);i.Y8G("@.disabled",Tn.disableAnimation),i.R7$(),i.Y8G("expanded",!Tn.isGFNClient),i.R7$(4),i.JRh(i.bMT(6,16,"mainMenu.Webcam")),i.R7$(2),i.Y8G("disabled",Tn.showError||Tn.restartGame),i.R7$(5),i.SpI(" ",i.bMT(13,18,"nvcamera.Roll")," "),i.R7$(2),i.Y8G("min",Tn.rollSlider.min)("max",Tn.rollSlider.max)("step",Tn.rollSlider.step)("value",Tn.rollSlider.value)("disabled",Tn.showError||Tn.restartGame),i.R7$(5),i.SpI(" ",i.bMT(20,20,"nvcamera.FOV")," "),i.R7$(2),i.Y8G("min",Tn.fovSlider.min)("max",Tn.fovSlider.max)("step",Tn.fovSlider.step)("value",Tn.fovSlider.value)("disabled",Tn.showError||Tn.restartGame)}}function Vt(li,dr){if(1&li&&(i.j41(0,"div",42)(1,"mat-icon",43),i.EFF(2,"info"),i.k0s(),i.j41(3,"span"),i.EFF(4),i.nI1(5,"translate"),i.k0s()()),2&li){const Tn=i.XpG(2);i.Y8G("ngClass",i.eq3(4,qn,Tn.showError||Tn.restartGame)),i.R7$(4),i.JRh(i.bMT(5,2,"nvcamera.CameraHelper"))}}function Vn(li,dr){1&li&&i.nrm(0,"nv-divider")}function si(li,dr){1&li&&(i.j41(0,"div",44)(1,"div",25)(2,"div",45),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"div",46),i.nrm(6,"nv-item-button",47),i.k0s()()()),2&li&&(i.R7$(3),i.JRh(i.bMT(4,2,"nvcamera.HeaderTitleFilters")),i.R7$(3),i.Y8G("disabled",!0))}function Rn(li,dr){1&li&&i.nrm(0,"nv-divider",48)}function _i(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",49)(1,"nv-item-button",50),i.bIt("clicked",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.hideUI())}),i.k0s(),i.j41(2,"p",51),i.EFF(3),i.nI1(4,"translate"),i.k0s()()}if(2&li){const Tn=i.XpG(2);i.R7$(),i.Y8G("disabled",Tn.snapDisabled),i.R7$(2),i.JRh(i.bMT(4,2,"nvcamera.HideShowPanel"))}}function wr(li,dr){if(1&li){const Tn=i.RV6();i.j41(0,"div",52)(1,"button",53),i.bIt("click",function(){i.eBV(Tn);const vn=i.XpG(2);return i.Njj(vn.onSnapClicked())}),i.EFF(2),i.nI1(3,"translate"),i.k0s()()}if(2&li){const Tn=i.XpG(2);i.R7$(),i.Y8G("disabled",Tn.snapDisabled),i.R7$(),i.SpI(" ",i.bMT(3,2,"nvcamera.Snap")," ")}}function hr(li,dr){if(1&li&&(i.qex(0),i.j41(1,"div",2),i.DNE(2,Sr,1,0,"div",3),i.j41(3,"div",4),i.DNE(4,ni,2,2,"div",1)(5,Pe,15,16,"div",1)(6,Qe,9,13,"div",1)(7,Be,5,5,"div",5),i.nrm(8,"nv-divider"),i.DNE(9,Mt,22,22,"mat-accordion",1)(10,Vt,6,6,"div",6)(11,Vn,1,0,"nv-divider",1),i.j41(12,"div",7),i.nrm(13,"app-filter-section",8),i.k0s()(),i.DNE(14,si,7,4,"div",9)(15,Rn,1,0,"nv-divider",10),i.j41(16,"div",11),i.DNE(17,_i,5,4,"div",12)(18,wr,4,4,"div",13),i.k0s()(),i.bVm()),2&li){const Tn=i.XpG();i.R7$(),i.AVh("disabled-opacity",!Tn.isGFNClient&&(Tn.showError||Tn.restartGame)),i.R7$(),i.Y8G("ngIf",Tn.isGFNClient),i.R7$(),i.AVh("disabled-opacity",Tn.restartGame),i.R7$(),i.Y8G("ngIf",Tn.isGFNClient),i.R7$(),i.Y8G("ngIf",!1),i.R7$(),i.Y8G("ngIf",!Tn.isGFNClient&&(Tn.isAIUpresEnabled||Tn.showError||Tn.restartGame)),i.R7$(),i.Y8G("ngIf",Tn.isGridSupported),i.R7$(2),i.Y8G("ngIf",!Tn.isAnselLite),i.R7$(),i.Y8G("ngIf",!Tn.isGFNClient),i.R7$(),i.Y8G("ngIf",!Tn.isAnselLite&&!(Tn.showError||Tn.restartGame)),i.R7$(2),i.Y8G("setUseCase",!0)("currentSlotIndex",1)("filterStack",Tn.slots[Tn.activeSlotIndex].filterStack),i.R7$(),i.Y8G("ngIf",Tn.restartGame&&Tn.isGFNClient),i.R7$(),i.Y8G("ngIf",!Tn.isGFNClient),i.R7$(2),i.Y8G("ngIf",!Tn.isGFNClient),i.R7$(),i.Y8G("ngIf",!Tn.captureInProgress)}}const Yr=["clientdiv"],no={0:1,1:16,2:2,3:32,4:64},Tr={ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,Digit1:49,KeyA:65,KeyD:68,KeyE:69,KeyQ:81,KeyR:82,KeyS:83,KeyW:87,KeyX:88,KeyZ:90},es=[{path:"game-filters",component:Ii,data:{level:1}},{path:"photo-mode",component:(()=>{var li;class dr{constructor(tn,vn,oi,Ci,or,yr,$r,ko,qr,lo,ts,Ls){this.loggingService=tn,this.oscNotificationService=vn,this.nvcameraService=oi,this.galleryService=Ci,this.route=or,this.navigationService=yr,this.oscDisplayService=$r,this.keyboardService=ko,this.nvIgoComponent=qr,this.appBarService=lo,this.igoConfig=ts,this.ppeService=Ls,this.destroy$=new O.B7,this.rollValEmitter$=new O.B7,this.fovValEmitter$=new O.B7,this.sliderThrottleDurationGFN=200,this.sliderThrottleDurationGFE=0,this.isHDRCaptureSupported=!1,this.isGridSupported=!0,this.snapDisabled=!1,this.methodDisabled=!0,this.hdrSwitch=!1,this.gridSwitch=!1,this.captureTypeSelection=0,this.resolutionSelection=0,this.methodSelection=0,this.captureTitle="nvcamera.Capture",this.captureTypeInput=[],this.methodTitle="nvcamera.Method",this.methodInput=[],this.resolutionTitle="nvcamera.Resolution",this.resolutionInput=["2560 x 1440"],this.enableFOV=!1,this.activeSlotIndex=null,this.ngxSrcFilePathArray=[],this.captureInProgress=!1,this.captureProgress=0,this.positionEnum=r.SIx,this.restartGame=!1,this.showError=!1,this.disableAnimation=!0,this.oscFullscreen=!1,this.hotkeyEnum=[r.g8X.OpenAnsel,r.g8X.Screenshot],this.fovSlider={min:0,max:0,step:1,default:0,value:0},this.rollSlider={min:0,max:0,step:1,default:0,value:0},this.resolutionSlider={min:0,max:0,step:1,default:0,value:0,label:""},this.uiMode=r.O5.PhotoModeLight,this.isAnselLite=!1,this.currentCapture=null,this.currentMethod=void 0,this.shouldReenableAiDvc=!1,this.shouldReenableAiHdr=!1,this.captureMenuMap=new Map([[re.Or.Common.Nvcamera.CaptureTypes.regular,{type:re.Or.Common.Nvcamera.CaptureTypes.regular,title:"nvcamera.screenshot",resolutionsAvailable:[],supported:!0}],[re.Or.Common.Nvcamera.CaptureTypes.highRes,{type:re.Or.Common.Nvcamera.CaptureTypes.highRes,title:"nvcamera.highResolutionPhoto",resolutionsAvailable:[],supported:!0}],[re.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama,{type:re.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama,title:"nvcamera.360PhotoSphere",resolutionsAvailable:[],supported:!1}],[re.Or.Common.Nvcamera.CaptureTypes.stereoRegular,{type:re.Or.Common.Nvcamera.CaptureTypes.stereoRegular,title:"nvcamera.screenshot3D",resolutionsAvailable:[],supported:!1}],[re.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama,{type:re.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama,title:"nvcamera.360PhotoSphere3D",resolutionsAvailable:[],supported:!1}]]),this.HighResMethod=[{id:"nvcamera.MethodStandard",supported:!1},{id:"nvcamera.MethodEnhanced",supported:!1},{id:"nvcamera.MethodAIUpRes",supported:!1}],this.getRollText=function(){const Xr=this.rollSlider.value;return 0===Xr?Xr+"\xb0":this.translateService.instant(Xr<0?"nvcamera.degreeLeft":"nvcamera.degreeRight",{arg1:Math.abs(Xr)})},this.getFOVText=function(){return(Math.round(1e3*this.fovSlider.value)/1e3).toFixed()+"\xb0"},this.logger=this.loggingService.getLogger("PhotoMode"),this.uiMode=this.route.snapshot.params.UIMode,this.isGFNClient=this.igoConfig.GFNCefClient,this.isAIUpresEnabled="true"===this.route.snapshot.params.isAIUpresEnabled&&!this.isGFNClient,this.isAnselLite=this.uiMode===r.O5.PhotoModeLight,this.logger.info("isAnselLite",this.isAnselLite),this.logger.info("isRTXEnable",this.isAIUpresEnabled),this.appBarService.setAll({title:r.jyV,navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,y.Q)(this.destroy$)).subscribe(Xr=>{"nav"===Xr&&this.onBackClicked()})}onKeyDownEvent(tn){if(this.checkHideUIKey(tn.key))this.hideUI();else if(this.oscFullscreen){if(this.nvcameraService.monitorHotKey(tn,this.anselHotkey))return void this.oscDisplayService.closeOSC();if(this.nvcameraService.monitorHotKey(tn,this.screenshotHotkey,!0))return void this.nvcameraService.captureNormalScreenshot()}"Tab"===tn.code&&this.nvcameraService.setNavigationInputDevice([r.uk.Keyboard],[r.O67.yes]),this.nvcameraService.getRedirectionState()&&tn.code in r.R8Z&&(this.nvcameraService.panningWithKB=!0)}hideUI(){const tn=!this.oscDisplayService.getHideSidebar();this.oscDisplayService.setHideSidebar(tn),this.logger.info("Hide UI",tn)}setupHighResMethodInput(){this.methodInput=[],this.HighResMethod.forEach(tn=>{tn.supported&&(this.methodInput.push(tn.id),void 0===this.currentMethod&&(this.currentMethod=tn))})}checkHideUIKey(tn){return this.isMacPlatform||!this.isGFNClient?"h"===tn||"H"===tn:"Insert"===tn}setupcaptureTypeInput(){const tn=[];this.isGFNClient?(this.captureTypeInput.push(this.captureMenuMap.get(re.Or.Common.Nvcamera.CaptureTypes.regular).title),this.currentCapture=this.captureMenuMap.get(re.Or.Common.Nvcamera.CaptureTypes.regular),this.setResolutionAvailable(this.currentCapture.type),this.logger.info("valid captures: ",this.captureTypeInput)):this.nvcameraService.getCaptureTypes().subscribe(vn=>{this.captureMenuMap.forEach(oi=>{oi.supported=oi.supported&&vn.captureTypesList.captures.includes(oi.type),oi.type===re.Or.Common.Nvcamera.CaptureTypes.highRes&&(this.HighResMethod.forEach(Ci=>{"nvcamera.MethodAIUpRes"===Ci.id&&(Ci.supported=Ci.supported&&this.isAIUpresEnabled,oi.supported=oi.supported||Ci.supported),oi.supported||(Ci.supported=!1)}),this.setupHighResMethodInput()),oi.supported&&(null===this.currentCapture&&(this.currentCapture=oi),tn.push(oi.title))}),this.captureTypeInput=tn,this.nvcameraService.getCaptureResolutions(this.currentCapture.type).subscribe(oi=>{this.currentCapture.resolutionsAvailable.push({width:oi.screenResolution.width,height:oi.screenResolution.height,multiplier:void 0}),this.currentMethod=this.HighResMethod[2];const or=this.captureMenuMap.get(re.Or.Common.Nvcamera.CaptureTypes.highRes);this.setResolutionAvailable(or.type),this.resolutionSlider={min:0,max:or.resolutionsAvailable.length,step:1,default:0,value:0,label:this.getResolutionSliderLabel(this.currentCapture.resolutionsAvailable[0])}})})}getResolutionSliderLabel(tn){return tn?tn.width+" x "+tn.height:""}captureChanged(tn){let vn;this.logger.info("capture changed",tn),this.captureTypeSelection=tn,this.captureMenuMap.forEach(oi=>{oi.title===this.captureTypeInput[tn]&&(vn=oi)}),this.currentCapture=vn,this.currentMethod=void 0,this.methodDisabled=this.currentCapture.type!==re.Or.Common.Nvcamera.CaptureTypes.highRes,this.methodDisabled||this.setupHighResMethodInput(),this.logger.info("capture changed, current capture",this.currentCapture),this.setResolutionAvailable(this.currentCapture.type)}methodChanged(tn){this.logger.info("method changed ",tn),this.methodSelection=tn,this.HighResMethod.forEach(vn=>{vn.id!==this.methodInput[tn]||(this.currentMethod=vn)}),this.setResolutionAvailable(this.currentCapture.type)}setResolutionAvailable(tn){this.logger.info("setResolutionAvailable",tn,this.currentMethod);const vn=this.captureMenuMap.get(tn);if(vn){if(vn.type===re.Or.Common.Nvcamera.CaptureTypes.highRes&&"nvcamera.MethodAIUpRes"===this.currentMethod.id)return this.fillRTXHighResResolutionSlider(vn),this.logger.info("super res ",vn.resolutionsAvailable),void this.updateResolution(vn.type);this.nvcameraService.getCaptureResolutions(vn.type).subscribe(oi=>{switch(this.logger.info("response",vn.type),vn.resolutionsAvailable=[],vn.type){case re.Or.Common.Nvcamera.CaptureTypes.regular:case re.Or.Common.Nvcamera.CaptureTypes.stereoRegular:vn.resolutionsAvailable.push({width:oi.screenResolution.width,height:oi.screenResolution.height,multiplier:void 0}),this.logger.info("regular res ",vn);break;case re.Or.Common.Nvcamera.CaptureTypes.highRes:vn.resolutionsAvailable=oi.highResResolutions.resolutionArray,this.logger.info("super resolution ",vn.resolutionsAvailable);break;case re.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama:case re.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama:const or=8,yr=tn===re.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama?2:1;this.logger.info("paranoma res",oi);const $r=oi.panoramaResolutions.minX,qr=(oi.panoramaResolutions.maxX-$r)/8;for(let lo=0;lo<=or;lo++)vn.resolutionsAvailable.push({width:$r+qr*lo,height:($r+qr*lo)/yr,multiplier:void 0});this.logger.info("Panaroma res ",vn.resolutionsAvailable)}this.currentCaptureResolution=vn.resolutionsAvailable[0],this.updateResolution(vn.type)},oi=>{this.logger.error("getCaptureResolutions error: ",oi)})}}fillRTXHighResResolutionSlider(tn){let $r=1;tn.resolutionsAvailable=[];const ko=this.captureMenuMap.get(re.Or.Common.Nvcamera.CaptureTypes.regular).resolutionsAvailable[0];ko.width*ko.height>3686400&&($r=0);for(let qr=0;qr<=$r;qr++){const lo={multiplier:0,width:0,height:0};if(lo.multiplier=qr>0?2*tn.resolutionsAvailable[qr-1].multiplier:qr+2,lo.width=ko.width*lo.multiplier,lo.height=ko.height*lo.multiplier,!this.isGFNClient&&lo.width*lo.height>33177600)return this.logger.info("Max resolution allowed is 8k"),void(this.currentCaptureResolution={multiplier:0,width:ko.width,height:ko.height});tn.resolutionsAvailable.push(lo)}this.currentCaptureResolution=tn.resolutionsAvailable[0]}setUpCameraControls(){this.nvcameraService.getCameraRange(!0,!1).subscribe(tn=>{this.rollSlider.min=tn.rollRange.min,this.rollSlider.max=tn.rollRange.max},tn=>{this.logger.error("getCameraRange error: ",tn)}),this.nvcameraService.getCameraRange(!1,!0).subscribe(tn=>{this.fovSlider.min=tn.fovRange.min,this.fovSlider.max=tn.fovRange.max},tn=>{this.logger.error("getCameraRange error: ",tn)}),this.nvcameraService.GetCameraControlFov(!1).subscribe(tn=>{this.fovSlider.default=Math.round(tn.fovValue.fov),this.fovSlider.value=this.fovSlider.default,this.enableFOV=!0},tn=>{this.logger.error("GetCameraControlFov error: ",tn)})}ngOnInit(){if(this.logger.info("Initializing photo mode component"),this.nvcameraService.changeUIRunning(!0),this.isMacPlatform=navigator.platform.toUpperCase().indexOf("MAC")>=0,this.telemetryInit(),this.navigationService.escapeEvent().pipe((0,y.Q)(this.destroy$)).subscribe(()=>{"UI"===this.nvcameraService.sourceTrigger?(this.logger.info("Return to Main Menu"),this.onBackClicked()):"HK"===this.nvcameraService.sourceTrigger&&this.oscDisplayService.closeOSC()}),this.isGFNClient||(this.nvcameraService.getHotkeyNum(r.g8X.OpenAnsel).pipe((0,y.Q)(this.destroy$)).subscribe(or=>{this.anselHotkey=or}),this.nvcameraService.getHotkeyNum(r.g8X.Screenshot).pipe((0,y.Q)(this.destroy$)).subscribe(or=>{this.screenshotHotkey=or}),this.nvcameraService.isInDesktopMode().subscribe(or=>{this.oscFullscreen=!or,this.oscFullscreen&&this.nvcameraService.setDynamicHotkey(!1,this.hotkeyEnum)})),this.showError="true"===this.route.snapshot.params.showError,this.errorType=this.route.snapshot.params.errorType,this.showError)return this.snapDisabled=!0,this.showErrorMessage(),void this.createEmptySlots();if(this.restartGame=this.nvcameraService.restartRequired,this.restartGame)return this.snapDisabled=!0,void this.createEmptySlots();!this.showError&&!this.isGFNClient&&this.nvcameraService.getGlobalToggle().subscribe(or=>{this.showError=!or||this.nvcameraService.getIsGameRestartRequestedfromCTA()||this.restartGame}),this.shouldReenableAiDvc=this.ppeService.isAIDVCEnabled,this.shouldReenableAiHdr=this.ppeService.isAIHDREnabled;const tn=this.ppeService.isAIDVCEnabled?this.ppeService.disableAIDVC(null):(0,V.of)(null),vn=this.ppeService.isAIHDREnabled?this.ppeService.disableAIHDR(null):(0,V.of)(null);(0,F.p)([tn,vn]).pipe((0,y.Q)(this.destroy$)).subscribe({next:or=>this.logger.info("Disabled PPE service filters"),error:or=>this.logger.info("Error disabling PPE service filters:",or)}),this.nvcameraService.setNvcameraCmsInfo(),this.slots=this.nvcameraService.currentGameSlots.anselSlotsInfo.slots,this.activeSlotIndex=this.nvcameraService.currentGameSlots.anselSlotsInfo.lastSlotIdx,this.setupcaptureTypeInput(),this.isAnselLite||(this.logger.info("Setting cameracontrols"),this.setUpCameraControls()),this.nvcameraService.applySlot(this.activeSlotIndex,!0,this.uiMode).pipe((0,K.s)(1)).subscribe(or=>{this.logger.info("initialized successfully: ",or)},or=>{this.logger.error("error during init: ",or)}),this.navigationService.navigate([{outlets:{centerPane:"client-area"}}],{relativeTo:this.route.parent,skipLocationChange:!0}),(0,ar.R)(document,"keydown").pipe((0,y.Q)(this.destroy$)).subscribe(or=>{this.onKeyDownEvent(or)});const Ci=this.isGFNClient?this.sliderThrottleDurationGFN:this.sliderThrottleDurationGFE;this.fovValEmitter$.pipe((0,Jt.c)(Ci),(0,y.Q)(this.destroy$)).subscribe(or=>{this.nvcameraService.SetCameraControlFovRoll(!0,void 0,or).subscribe()}),this.rollValEmitter$.pipe((0,Jt.c)(Ci),(0,y.Q)(this.destroy$)).subscribe(or=>{this.nvcameraService.SetCameraControlFovRoll(!0,or,void 0).subscribe()}),this.oscDisplayService.setOutsideClickState(!1),this.logger.info("Initialization done")}ngAfterViewInit(){setTimeout(()=>this.disableAnimation=!1)}createEmptySlots(){const tn=new r.naB;this.slots=tn.modsSlotsInfo.slots,this.activeSlotIndex=0,this.ppeService.getAllStaticFilterList()}updateResolution(tn){let vn,oi;this.resolutionInput=[];for(let Ci=0;Ci<this.currentCapture.resolutionsAvailable.length;Ci++)switch(this.currentCapture.type){case re.Or.Common.Nvcamera.CaptureTypes.regular:case re.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama:case re.Or.Common.Nvcamera.CaptureTypes.stereoRegular:case re.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama:vn=this.currentCapture.resolutionsAvailable[Ci],oi=vn.width+"x"+vn.height,this.resolutionInput.push(oi);break;case re.Or.Common.Nvcamera.CaptureTypes.highRes:vn=this.currentCapture.resolutionsAvailable[Ci],oi=vn.multiplier+"X - "+vn.width+"x"+vn.height,this.resolutionInput.push(oi)}this.resolutionSelection=0}resolutionChanged(tn){this.logger.info(" resolution changed",tn),this.resolutionSelection=tn,this.currentCaptureResolution=this.currentCapture.resolutionsAvailable[tn],this.logger.info("currentCaptureResolution changed",this.currentCaptureResolution)}close(){return this.logger.info("close"),this.navigationService.navigate([{outlets:{centerPane:null}}],{relativeTo:this.route.parent,skipLocationChange:!0})}ngOnDestroy(){this.logger.info("ngOnDestroy"),this.destroy$.next(!0),this.destroy$.complete(),(this.shouldReenableAiDvc||this.shouldReenableAiHdr)&&(this.shouldReenableAiDvc=!1,this.shouldReenableAiHdr=!1,this.ppeService.restorePPEFilters(),this.logger.info("Restoring PPE filters")),this.nvcameraService.isFreestyleSupportedGame()&&!this.showError&&(this.nvcameraService.filterAppliedTelemetry(),this.nvcameraService.processingControlSettingsTelemetry()),this.captureInProgress&&this.onCaptureCancel(),this.nvcameraService.closeAlert(),this.nvcameraService.enableAnselRedirection(!1),this.oscDisplayService.setHideSidebar(!1),this.nvIgoComponent.setShowGrid(!1),this.logger.info("Before closePhotoModeMenu");const tn={isAnselLite:this.isAnselLite,isShowError:this.showError};this.oscDisplayService.setOutsideClickState(!0),this.nvcameraService.closePhotoModeMenu(tn)}gridSwitchChange(tn){this.logger.info("grid of thirds changed",this.gridSwitch),this.isAnselLite||this.igoConfig.GFNCefClient?this.nvIgoComponent.setShowGrid(this.gridSwitch):this.nvcameraService.setGridOfThirds(this.gridSwitch).subscribe()}hdrSwitchChange(tn){this.logger.info("inside hdrSwitchChange",tn)}onRotationSliderChange(tn){this.rollSlider.value!==tn&&(this.rollSlider.value=tn,this.rollValEmitter$.next(this.rollSlider.value))}onFOVSliderChange(tn){!this.enableFOV||this.fovSlider.value===tn||(this.fovSlider.value=tn,this.fovValEmitter$.next(this.fovSlider.value))}onCaptureDone(tn){this.logger.info("Capture Done"),this.captureInProgress=!1,tn?this.nvcameraService.closeAlert():this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.dialogData.progressMode="indeterminate",this.nvcameraService.dialogRef.componentInstance.dialogData.query="nvcamera.FinalizingScene",this.nvcameraService.dialogRef.componentInstance.dialogData.progressPercentage=!1)}onCaptureFinished(){this.logger.info("Capture Finished"),this.captureInProgress=!1,this.nvcameraService.closeAlert()}onCaptureCancel(){this.nvcameraService.cancelCurrentCapture().subscribe(),this.captureInProgress=!1,this.nvcameraService.closeAlert(),this.screenshotFinishTime=Date.now(),this.sendAnselScreenshotTelemetry(r.J7_.cancelled)}startNGXCapture(){if(this.logger.info("startNGXCapture",this.ngxSrcFilePathArray),this.ngxSrcFilePathArray.length>0){const tn=this.captureMenuMap.get(re.Or.Common.Nvcamera.CaptureTypes.regular);let vn=this.ngxSrcFilePathArray[0];return"png"!==vn.slice(vn.length-3,vn.length)&&(vn=this.ngxSrcFilePathArray[0].slice(0,vn.length-4),vn=vn.concat(".png"),this.ngxSrcFilePathArray.push(vn)),this.nvcameraService.captureScreenshot(!0,{inputFile:vn,upResEffect:2,upResScale:this.currentCaptureResolution.multiplier,width:tn.resolutionsAvailable[0].width,height:tn.resolutionsAvailable[0].height})}}processNGXNotification(tn,vn){tn.ngxAIUpResProgress?(this.logger.info("progress: ",tn.ngxAIUpResProgress.progress),this.captureProgress=tn.ngxAIUpResProgress.progress,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=Math.round(this.captureProgress))):tn.ngxAIUpResCaptureDone&&(this.captureProgress=100,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=this.captureProgress),setTimeout(()=>{this.galleryService.removeItem(this.ngxSrcFilePathArray.pop()).subscribe(oi=>{this.logger.info("NGX shot src file deleted",oi)})},2e3),setTimeout(()=>{this.onCaptureDone(!0)},500),vn.unsubscribe())}processNvCameraCaptureNotification(tn,vn,oi){tn.captureShotProgress?(this.captureProgress=tn.captureShotProgress.currentShot/vn*100,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=Math.round(this.captureProgress))):(tn.captureShotFinished||tn.captureShotProcessingFinished)&&(this.captureProgress=100,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=this.captureProgress),tn.captureShotFinished?setTimeout(()=>{this.onCaptureDone(!1)},500):(setTimeout(()=>{this.onCaptureFinished()},500),oi.unsubscribe()))}gfnSnap(){this.logger.info("Capturing GFN Ansel snap"),this.captureProgress=0,this.captureInProgress=!0,this.nvcameraService.showAlert("nvcamera.PhotoMode","nvcamera.PhotographingScene",void 0,"confirmation.cancel",void 0,!1,!0,"determinate",this.destroy$,{next:oi=>{oi===ki.SF.Action1&&(this.logger.info("User cancelled current capture"),this.onCaptureCancel())},error:oi=>{},complete:()=>{}}),this.screenshotStartTime=Date.now(),this.sendAnselScreenshotTelemetry(r.J7_.started),this.nvcameraService.captureScreenshot(!1,void 0).subscribe(oi=>{},oi=>{this.logger.info("GFN screenshot capture failed"),this.onCaptureFinished(),this.nvcameraService.showSnack(r.BO6.CaptureFailed),this.screenshotFinishTime=Date.now(),this.sendAnselScreenshotTelemetry(r.J7_.failed,r.Ng.anselScreenshotTimeoutFailure,oi)},()=>{this.logger.info("GFN screenshot capture successful"),this.captureProgress=100,this.nvcameraService.dialogRef&&(this.nvcameraService.dialogRef.componentInstance.value=this.captureProgress),setTimeout(()=>{this.onCaptureFinished()},500),this.screenshotFinishTime=Date.now(),this.sendAnselScreenshotTelemetry(r.J7_.completed)})}onSnapClicked(){if(this.isGFNClient)return void this.gfnSnap();if(null===this.currentCapture||void 0===this.currentCaptureResolution)return void this.logger.info("failed to request capture");this.logger.info("Capturing snap: ",this.currentCapture.type);const tn=!(this.currentCapture.type===re.Or.Common.Nvcamera.CaptureTypes.sphericalPanorama||this.currentCapture.type===re.Or.Common.Nvcamera.CaptureTypes.stereoSphericalPanorama),vn=this.currentCapture.type===re.Or.Common.Nvcamera.CaptureTypes.highRes&&"nvcamera.MethodAIUpRes"===this.currentMethod.id;let oi=Object(),Ci=0;if(vn){const yr=this.captureMenuMap.get(re.Or.Common.Nvcamera.CaptureTypes.regular);oi={captureType:yr.type,resolutionMultiplier:yr.resolutionsAvailable[0].multiplier,width:yr.resolutionsAvailable[0].width,height:yr.resolutionsAvailable[0].height,panoramaWidth:void 0,panoramaHeight:void 0,saveAsExr:!1,enhance:!1}}else oi={captureType:this.currentCapture.type,resolutionMultiplier:this.currentCaptureResolution.multiplier,width:tn?this.currentCaptureResolution.width:void 0,height:tn?this.currentCaptureResolution.height:void 0,panoramaWidth:tn?void 0:this.currentCaptureResolution.width,panoramaHeight:tn?void 0:this.currentCaptureResolution.height,saveAsExr:this.hdrSwitch,enhance:this.currentMethod?"nvcamera.MethodEnhance"===this.currentMethod.id:void 0};const or=this.nvcameraService.captureScreenshot(!1,oi).pipe((0,k.p)(yr=>!vn||!!yr.captureShotProcessingFinished||!!yr.captureShotStarted),(0,G.ZZ)(yr=>{if(yr.captureShotStarted)this.captureProgress=0,this.captureInProgress=!0,Ci=yr.captureShotStarted.shotCount,this.nvcameraService.showAlert("nvcamera.PhotoMode","nvcamera.PhotographingScene",void 0,"confirmation.cancel",void 0,!1,!0,"determinate",this.destroy$,{next:qr=>{qr===ki.SF.Action1&&(this.logger.info("User cancelled current capture"),this.onCaptureCancel())},error:qr=>{},complete:()=>{}});else if(vn&&yr&&yr.captureShotProcessingFinished)return this.logger.info("captureShotProcessingFinished",yr.captureShotProcessingFinished.path),this.ngxSrcFilePathArray.push(yr.captureShotProcessingFinished.path),this.startNGXCapture();return(0,V.of)(yr)})).subscribe(yr=>{vn?this.processNGXNotification(yr,or):this.processNvCameraCaptureNotification(yr,Ci,or)},yr=>{this.logger.error("error occured",yr),or.unsubscribe()})}onBackClicked(){this.logger.info("Back clicked"),this.close().then(function(){this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},r.jby.mainMenu)}.bind(this))}onMouseDown(tn){0===tn.button&&(this.logger.info("Disable Ansel redirection"),window.document.body.style.cursor="auto",this.nvcameraService.enableAnselRedirection(!1),this.nvcameraService.setNavigationInputDevice([r.uk.Mouse],[r.O67.yes]))}onKeyDown(tn,vn){this.keyboardService.onKeyDown(tn,vn)}telemetryInit(){this.nvcameraService.navigationInputDevice.KEYBOARD=!1,this.nvcameraService.navigationInputDevice.MOUSE=!1,this.nvcameraService.panningUsed=!1,this.nvcameraService.panningWithKB=!1,this.nvcameraService.panningWithMouse=!1}sendAnselScreenshotTelemetry(tn,vn,oi){let Ci=Object();Ci={roll:Math.round(this.rollSlider.value),fov:Math.round(this.fovSlider.value),gridUsed:this.gridSwitch,screenshotResolution:this.currentCaptureResolution?.width.toString()+"x"+this.currentCaptureResolution?.height.toString(),screenshotType:this.currentCapture.type[0].toUpperCase()+this.currentCapture.type.slice(1),mode:r.O5.PhotoMode,errorType:r.Ng.anselScreenshotNoFailure,errorString:"",totalMs:0},tn!==r.J7_.started&&(Ci.totalMs=this.screenshotFinishTime-this.screenshotStartTime),tn===r.J7_.failed&&(Ci.errorType=vn,Ci.errorString=oi||"Unknown error"),this.nvcameraService.sendAnselScreenshotTelemetry(tn,Ci)}showErrorMessage(){switch(this.errorType){case r.VuP.ERROR_TIMEOUT:this.nvcameraService.nvCameraTimedOut=!0,this.errorMsg="notification.WarningGameRequired",this.nvcameraService.sendAnselFreestyleErrorTelemetry(r.T7s.anselFreestyleUnsupportedGameError,r.O5.PhotoMode),this.nvcameraService.anselFreestyleErrorTelemetry(r.T7s.anselFreestyleUnsupportedGameError,r.O5.PhotoMode,"Nvcamera timed out");break;case r.VuP.ERROR_SUPPORTED_GAME:this.errorMsg="notification.WarningGameRequired",this.nvcameraService.sendAnselFreestyleErrorTelemetry(r.T7s.anselFreestyleUnsupportedGameError,r.O5.PhotoMode),this.nvcameraService.anselFreestyleErrorTelemetry(r.T7s.anselFreestyleUnsupportedGameError,r.O5.PhotoMode,"Unsupported game");break;case r.VuP.ERROR_RESTART:this.errorMsg="notification.ErrorRestartGame",this.nvcameraService.sendAnselFreestyleErrorTelemetry(r.T7s.anselFreestyleMenuLaunchError,r.O5.PhotoMode),this.nvcameraService.anselFreestyleErrorTelemetry(r.T7s.anselFreestyleMenuLaunchError,r.O5.PhotoMode,"Game restart required");break;default:this.logger.error("Unknown error msg type: "+this.errorType),this.errorMsg="",this.nvcameraService.sendAnselFreestyleErrorTelemetry(r.T7s.anselFreestyleGeneralFailure,r.O5.PhotoMode),this.nvcameraService.anselFreestyleErrorTelemetry(r.T7s.anselFreestyleGeneralFailure,r.O5.PhotoMode,"Unknown error")}}getHidePanelSubTitle(){return this.isMacPlatform?"H":"nvcamera.Insert"}onResolutionSliderChange(tn){tn>0?(this.currentCapture=this.captureMenuMap.get(re.Or.Common.Nvcamera.CaptureTypes.highRes),this.currentCaptureResolution=this.currentCapture.resolutionsAvailable[tn-1]):(this.currentCapture=this.captureMenuMap.get(re.Or.Common.Nvcamera.CaptureTypes.regular),this.currentCaptureResolution=this.currentCapture.resolutionsAvailable[0]),this.resolutionSlider.label=this.getResolutionSliderLabel(this.currentCaptureResolution)}}return(li=dr).\u0275fac=function(tn){return new(tn||li)(i.rXU(_.J6),i.rXU(r.mbZ),i.rXU(r.h8x),i.rXU(r.AFS),i.rXU(l.nX),i.rXU(r.o_p),i.rXU(r.Bqk),i.rXU(r.rMY),i.rXU(Fr.h),i.rXU(r.gZv),i.rXU(r.k$F),i.rXU(r.Vlf))},li.\u0275cmp=i.VBU({type:li,selectors:[["app-photo-mode"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","",3,"mousedown","keydown"],[4,"ngIf"],["fxLayout","column","fxFlex",""],["fxFlex","none","class","nv-gap-16",4,"ngIf"],["fxFlex","grow",1,"photo-mode-layout","photo-mode-layout-maxwidth"],["fxLayout","row","fxLayoutAlign","start center","class","section-padding",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","font-body2 font-color-tertiary nvapp-side-padding camera-helper-padding",3,"ngClass",4,"ngIf"],["fxLayout","column",1,"nv-item","filter_section"],[3,"setUseCase","currentSlotIndex","filterStack"],["fxLayout","column","class","disabled-opacity",4,"ngIf"],["class","divider_fixed",4,"ngIf"],["fxFlex","none","fxLayout","row","fxLayoutAlign","space-between center",1,"snap_fixed"],["fxFlex","none","fxLayout","row",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end end","class","nvapp-side-padding",4,"ngIf"],["fxFlex","none",1,"nv-gap-16"],["svgIcon","eye_off","titleString","nvcamera.HidePanel",3,"clicked","subTitle","disabled"],[1,"font-body2","nv-label"],[3,"selectionChanged","selection","disabled","input"],[1,"nv-gap-8"],[1,"nv-gap-16"],["fxLayout","row","fxLayoutAlign","start center","class","toggle-height",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"toggle-height"],["fxFlex","grow",1,"font-body2"],["fxFlex","none",3,"ngModelChange","change","ngModel","disabled"],["fxLayout","column"],["fxLayout","row"],["fxFlex","grow",1,"font-body2","section-padding"],["fxFlex","",3,"input","valueChange","min","max","step","value","disabled"],["fxLayoutAlign","center center",1,"font-body2"],["fxLayout","row","fxLayoutAlign","start center",1,"section-padding"],["fxFlex","grow",1,"font-body1","font-color-primary","nvapp-left-side-padding"],["fxFlex","none",1,"nvapp-right-side-padding",3,"ngModelChange","change","ngModel","disabled"],["hideToggle","true",1,"matExpansionPanel",3,"expanded"],["collapsedHeight","40px","expandedHeight","40px",1,"font-sub1"],["fxLayout","row","fxLayoutAlign","start center","fxFlexFill","",1,"nvapp-side-padding"],["fxFlex","",1,"font-sub1"],["mat-button","","fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","complex-button","camera-button",3,"disabled"],["svgIcon","chevron_down",1,"accordion-chevron"],["fxLayout","row",1,"nvapp-side-padding"],["fxFlex","grow",1,"font-body1","section-padding"],["fxFlex","","valueEntry","true","formatTextAs","Decimal",1,"nvapp-slider-padding",3,"input","valueChange","min","max","step","value","disabled"],["fxFlex","grow",1,"font-body1","section-padding","nvapp-side-padding"],["fxLayout","row","fxLayoutAlign","start center",1,"font-body2","font-color-tertiary","nvapp-side-padding","camera-helper-padding",3,"ngClass"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg","icon-padding"],["fxLayout","column",1,"disabled-opacity"],["fxFlex","grow",1,"font-sub1","nv-label"],[1,"filter-add-margin"],["fxFlex","none","svgIcon","add",1,"filter-add-margin",3,"disabled"],[1,"divider_fixed"],["fxFlex","none","fxLayout","row"],["svgIcon","eye_off",1,"eye_off_button",3,"clicked","disabled"],[1,"font-body1","section-padding","message-text"],["fxLayout","row","fxLayoutAlign","end end",1,"nvapp-side-padding"],["mat-button","",1,"font-button2","hig-button","snap-button","snap-button-nvapp",3,"click","disabled"]],template:function(tn,vn){1&tn&&(i.j41(0,"div",0),i.bIt("mousedown",function(Ci){return vn.onMouseDown(Ci)})("keydown",function(Ci){return vn.onKeyDown(Ci)}),i.DNE(1,hr,19,19,"ng-container",1),i.k0s()),2&tn&&(i.R7$(),i.Y8G("ngIf",!vn.isGFNClient||!vn.showError))},dependencies:[h.$,ue.T,ae.j,g.I,n.YU,n.bT,T.DJ,T.sA,T.G2,T.UI,A.PW,N.BC,N.vS,xo.iV,_e.An,ke.P2,De.BS,De.GK,De.Z2,Me.t,ce.tG,Lr,a.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{overflow-x:hidden}.photo-mode-layout[_ngcontent-%COMP%]{box-sizing:border-box;background-clip:content-box;scrollbar-gutter:auto}.isLtr[_nghost-%COMP%] .photo-mode-layout[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .photo-mode-layout[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .photo-mode-layout[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .photo-mode-layout[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .photo-mode-layout[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .photo-mode-layout[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.photo-mode-layout-maxwidth[_ngcontent-%COMP%]{max-width:512px}.camera-button[_ngcontent-%COMP%]{height:24px;width:24px}.section-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}[_nghost-%COMP%]{padding:16px 0;overflow-y:auto}.isLtr[_nghost-%COMP%] div.filter-add-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] div.filter-add-margin[_ngcontent-%COMP%]{padding-right:32px!important}html[dir=ltr][_ngcontent-%COMP%] div.filter-add-margin[_ngcontent-%COMP%]{--dummy2: 0;padding-right:32px!important}.isRtl[_nghost-%COMP%] div.filter-add-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] div.filter-add-margin[_ngcontent-%COMP%]{padding-left:32px!important}html[dir=rtl][_ngcontent-%COMP%] div.filter-add-margin[_ngcontent-%COMP%]{--dummy2: 0;padding-left:32px!important}.isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.isLtr[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-left-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-right-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{padding:16px 0}.nvapp-igo-view[_nghost-%COMP%] .filter_section[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .filter_section[_ngcontent-%COMP%]{padding-bottom:97px}.nvapp-igo-view[_nghost-%COMP%] .snap_fixed[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .snap_fixed[_ngcontent-%COMP%]{position:fixed;bottom:0;width:512px;height:64px;background-color:#191919;z-index:1}.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px;margin-bottom:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.isLtr.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .eye_off_button[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.nvapp-igo-view[_nghost-%COMP%] .message-text[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .message-text[_ngcontent-%COMP%]{margin-top:0;margin-bottom:16px}.nvapp-igo-view[_nghost-%COMP%] .divider_fixed[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .divider_fixed[_ngcontent-%COMP%]{position:fixed;bottom:64px;background-color:#191919;width:512px;z-index:1}.nvapp-igo-view[_nghost-%COMP%] .snap-button-nvapp[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .snap-button-nvapp[_ngcontent-%COMP%]{margin-bottom:16px}.limit-padding[_ngcontent-%COMP%]{padding:8px 0}.max-warning-area[_ngcontent-%COMP%]{margin:16px 0 0}.toggle-height[_ngcontent-%COMP%]{height:36px}.snap-button[_ngcontent-%COMP%]{background-color:#76b900}.matExpansionPanel[_ngcontent-%COMP%]{overflow:visible}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.icon-alert-circle_reg[_ngcontent-%COMP%]{line-height:inherit;font-style:normal}.camera-helper-empty-state-margin[_ngcontent-%COMP%]{margin-bottom:-16px}.camera-helper-padding[_ngcontent-%COMP%]{padding-top:16px}"]}),dr})(),data:{level:1}},{path:"client-area",component:(()=>{var li;class dr{constructor(tn,vn,oi){this.loggingService=tn,this.nvcameraService=vn,this.igoConfig=oi,this.destroy$=new O.B7,this.dragX=0,this.dragY=0,this.logger=this.loggingService.getLogger("client-area")}onMouseDown(tn){this.nvcameraService.getCurrentUIMode()===r.O5.PhotoMode&&0===tn.button&&(this.logger.info("Ansel SDK redirection toggle"),window.document.body.style.cursor="none",this.nvcameraService.enableAnselRedirection(!0),this.nvcameraService.panningUsed=!0,this.nvcameraService.panningWithMouse=!0)}onMouseUp(tn){0===tn.button&&(window.document.body.style.cursor="auto")}onMouseClick(tn){this.nvcameraService.getCurrentUIMode()===r.O5.PhotoModeLight&&0===tn.button&&(this.logger.info("Ansel NoSDK redirection toggle"),window.document.body.style.cursor="none",this.nvcameraService.togglePanning())}ngOnInit(){this.logger.info("Ansel ClientArea initialized")}ngAfterViewInit(){if(this.igoConfig.GFNCefClient){const tn=(0,ar.R)(document,"keydown").pipe((0,Jt.c)(200),(0,y.Q)(this.destroy$)),vn=(0,ar.R)(document,"keyup").pipe((0,y.Q)(this.destroy$)),oi=(0,ar.R)(this.clientRef.nativeElement,"mousedown").pipe((0,y.Q)(this.destroy$)),Ci=(0,ar.R)(this.clientRef.nativeElement,"mouseup").pipe((0,y.Q)(this.destroy$)),or=(0,ar.R)(this.clientRef.nativeElement,"mousemove").pipe((0,y.Q)(this.destroy$)),yr=oi.pipe((0,G.ZZ)(($r,ko)=>0===$r.button?or.pipe((0,y.Q)(Ci)):(0,V.of)($r)));tn.subscribe($r=>{Tr[$r.code]&&this.nvcameraService.gfnKBEvent("keyDown",Tr[$r.code],$r.code,$r.shiftKey)}),vn.subscribe($r=>{Tr[$r.code]&&this.nvcameraService.gfnKBEvent("keyUp",Tr[$r.code],$r.code,$r.shiftKey)}),yr.pipe((0,R.M)($r=>{this.dragX+=$r.movementX,this.dragY+=$r.movementY}),(0,Jt.c)(100)).subscribe($r=>{this.nvcameraService.gfnMouseEvent("drag",no[$r.button],this.dragX,this.dragY),this.dragX=0,this.dragY=0}),Ci.subscribe($r=>{this.dragX=0,this.dragY=0,this.nvcameraService.gfnMouseEvent("up",no[$r.button],0,0)}),oi.subscribe($r=>{this.dragX=0,this.dragY=0,this.nvcameraService.gfnMouseEvent("down",no[$r.button],$r.movementX,$r.movementY)})}}ngOnDestroy(){this.logger.info("Ansel ClientArea destroyed"),this.destroy$.next(!0),this.destroy$.unsubscribe(),this.nvcameraService.enableAnselRedirection(!1)}}return(li=dr).\u0275fac=function(tn){return new(tn||li)(i.rXU(_.J6),i.rXU(r.h8x),i.rXU(r.k$F))},li.\u0275cmp=i.VBU({type:li,selectors:[["nv-client-area"]],viewQuery:function(tn,vn){if(1&tn&&i.GBs(Yr,5),2&tn){let oi;i.mGM(oi=i.lsd())&&(vn.clientRef=oi.first)}},decls:2,vars:0,consts:[["clientdiv",""],[1,"client-area",3,"mousedown","mouseup","click"]],template:function(tn,vn){if(1&tn){const oi=i.RV6();i.j41(0,"div",1,0),i.bIt("mousedown",function(or){return i.eBV(oi),i.Njj(vn.onMouseDown(or))})("mouseup",function(or){return i.eBV(oi),i.Njj(vn.onMouseUp(or))})("click",function(or){return i.eBV(oi),i.Njj(vn.onMouseClick(or))}),i.k0s()}},styles:[".client-area[_ngcontent-%COMP%]{position:fixed;width:100vw;height:100vh;overflow:auto}"]}),dr})(),outlet:"centerPane"}];let Bs=(()=>{var li;class dr{}return(li=dr).\u0275fac=function(tn){return new(tn||li)},li.\u0275mod=i.$C({type:li}),li.\u0275inj=i.G2t({imports:[P.G,n.MD,m.YF,p.PO,v.i,l.iI.forChild(es),(0,_.BU)()]}),dr})()},39216:(Ue,W,d)=>{"use strict";d.r(W),d.d(W,{SettingsModule:()=>Ai});var n=d(61142),l=d(14354),p=d(51006),m=d(3567),_=d(62668),P=d(17617),v=d(1331),O=d(80583),S=d(4208),y=d(59002),r=d(58527);let i=(()=>{var lt;class An{constructor(Ve,qe,hn,hi=null,sr=null){this.navigationService=Ve,this.route=qe,this.appBarService=hn,this.dialog=hi,this.gfnInfoService=sr,this.destroy$=new O.B7,this.caller="../settings/settings",this.disableRecordSpecialCase=y.Fm.RECORD_SPECIAL_CASE_NONE}bar(Ve=""){this.appBarService.setAll({title:Ve,navButtonArrow:!0,icons:[{id:"closeIgo",icon:"close",tooltip:"tooltips.Close"}]}),this.appBarService.actionClicked$.pipe((0,S.Q)(this.destroy$)).subscribe(qe=>{"nav"===qe&&this.onBackClicked()})}ngOnInit(){this.navigationService.escapeEvent().pipe((0,S.Q)(this.destroy$)).subscribe(()=>{this.onBackClicked()}),this.caller=this.route.snapshot.paramMap.get("caller")||this.caller,this.gfnInfoService&&this.gfnInfoService.getRecordSpecialCase().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.disableRecordSpecialCase=Ve})}ngOnDestroy(){this.dialog&&this.dialog.closeSnackBar(),this.destroy$.next(!0),this.destroy$.unsubscribe()}onBackClicked(){this.navigationService.navigate([this.caller],{relativeTo:this.route.parent,skipLocationChange:!0})}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.gZv),r.rXU(v.eo6),r.rXU(v.x_y))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-settings-base"]],decls:0,vars:0,template:function(Ve,qe){},encapsulation:2}),An})();var a=d(43664),h=d(43822),g=d(3457);function c(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",13),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.generalClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)("tvRightIconExtraPadding",!1)}function T(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",14),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.gameplayClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)("tvRightIconExtraPadding",!1)}function A(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",15),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.systemClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)("tvRightIconExtraPadding",!1)}function L(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",16),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.shortcutsClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)("tvRightIconExtraPadding",!1)}function x(lt,An){1<&&r.nrm(0,"nv-divider")}function V(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",17),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.highlightsClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)}function D(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",18),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.audioCaptureClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)}function F(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",19),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.videoCaptureClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)}function I(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",20),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.storageClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)}function k(lt,An){1<&&r.nrm(0,"nv-divider")}function R(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",21),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.debugClicked())}),r.k0s()}2<&&r.Y8G("chevron",!0)}let G=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn){super(qe,hn,hi),this.loggingService=Ve,this.igoConfig=sr,this.featureSupportService=le,this.injector=Nn,this.showGFEExtensions=!1,this.showAudio=!1,this.showSystem=!1,this.shadowPlayEnable=!1,this.sdkGalleryEnable=!1,this.showGeneral=!1,this.showGameplay=!1,this.showGraphics=!1,this.showDebug=!1,this.showShortcutControls=!1,this.tvMode=!1,this.isGfn=!1,super.bar("settings.Settings"),this.logger=this.loggingService.getLogger("Settings"),this.logger.info("Constructor"),this.shadowPlayEnable=this.featureSupportService.isShadowPlayEnabled(),this.sdkGalleryEnable=this.featureSupportService.isSdkGalleryEnabled(),this.showShortcutControls=this.featureSupportService.isKeyboardMouseGamesAllowed(),this.tvMode=this.featureSupportService.isTVMode(),this.isGfn="GFN"===this.igoConfig.branding}ngOnInit(){super.ngOnInit(),"GFE"===this.igoConfig.branding&&(this.showAudio=!0,this.showGFEExtensions=!0),"GFN"===this.igoConfig.branding&&(this.showGeneral=!0,this.showSystem=!0,this.showGameplay=this.featureSupportService.isGameplaySupported(),this.featureSupportService.isSystemEnabled().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>this.showSystem=Ve))}ngOnDestroy(){super.ngOnDestroy(),this.backCallback$&&this.backCallback$.unsubscribe()}generalClicked(){this.logger.info("General clicked"),this.navigationService.navigate(["../settings/general"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.general)}systemClicked(){this.logger.info("System clicked"),this.navigationService.navigate(["../settings/system"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.system)}gameplayClicked(){this.logger.info("Gameplay clicked"),this.navigationService.navigate(["../settings/gameplay"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.gameplay)}debugClicked(){this.logger.info("Debug clicked"),this.navigationService.navigate(["../settings/debug"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.debug)}highlightsClicked(){this.logger.info("highlights clicked"),this.navigationService.navigate(["../settings/highlights"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.highlights)}videoCaptureClicked(){this.logger.info("video capture clicked"),this.navigationService.navigate(["../settings/video"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.videoCapture)}audioCaptureClicked(){this.logger.info("audio capture clicked"),this.navigationService.navigate(["../settings/audio"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.audioCapture)}storageClicked(){this.logger.info("storage clicked"),this.navigationService.navigate(["../settings/storage"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.storage)}shortcutsClicked(){this.logger.info("shortcuts clicked"),this.navigationService.navigate(["../settings/shortcuts"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.shortcuts)}headsupClicked(){this.logger.info("headsup clicked"),this.navigationService.navigate(["../settings/hud"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.headsup)}notificationsClicked(){this.logger.info("notifications clicked"),this.navigationService.navigate(["../settings/notifications"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.notifications)}onBackClicked(){this.logger.info("Back clicked"),this.navigationService.navigate(["../main-menu"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.mainMenu)}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.gZv),r.rXU(v.k$F),r.rXU(v.Rvq),r.rXU(r.zZn))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-settings"]],features:[r.Vt3],decls:14,vars:16,consts:[["fxLayout","column","fxFlex","",3,"fxLayoutGap"],["svgIcon","info","titleString","settings.General",3,"chevron","tvRightIconExtraPadding","clicked",4,"ngIf"],["svgIcon","gameplay","titleString","settings.Gameplay",3,"chevron","tvRightIconExtraPadding","clicked",4,"ngIf"],["svgIcon","desktop","titleString","settings.System",3,"chevron","tvRightIconExtraPadding","clicked",4,"ngIf"],["svgIcon","keyboard","titleString","settings.KeyboardShortcuts",3,"chevron","tvRightIconExtraPadding","clicked",4,"ngIf"],["svgIcon","heads_up_display","titleString","settings.HeadsUpDisplay",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","bell","titleString","settings.Notifications",3,"clicked","chevron","tvRightIconExtraPadding"],[4,"ngIf"],["svgIcon","highlights","titleString","commonLabels.Highlights",3,"chevron","clicked",4,"ngIf"],["svgIcon","audio","titleString","audio.Audio",3,"chevron","clicked",4,"ngIf"],["svgIcon","videocam","titleString","settings.VideoCapture",3,"chevron","clicked",4,"ngIf"],["svgIcon","storage","titleString","settings.FilesAndDiskSpace",3,"chevron","clicked",4,"ngIf"],["svgIcon","wrench","titleString","settings.Debug",3,"chevron","clicked",4,"ngIf"],["svgIcon","info","titleString","settings.General",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","gameplay","titleString","settings.Gameplay",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","desktop","titleString","settings.System",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","keyboard","titleString","settings.KeyboardShortcuts",3,"clicked","chevron","tvRightIconExtraPadding"],["svgIcon","highlights","titleString","commonLabels.Highlights",3,"clicked","chevron"],["svgIcon","audio","titleString","audio.Audio",3,"clicked","chevron"],["svgIcon","videocam","titleString","settings.VideoCapture",3,"clicked","chevron"],["svgIcon","storage","titleString","settings.FilesAndDiskSpace",3,"clicked","chevron"],["svgIcon","wrench","titleString","settings.Debug",3,"clicked","chevron"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0),r.DNE(1,c,1,2,"nv-item-button",1)(2,T,1,2,"nv-item-button",2)(3,A,1,2,"nv-item-button",3)(4,L,1,2,"nv-item-button",4),r.j41(5,"nv-item-button",5),r.bIt("clicked",function(){return qe.headsupClicked()}),r.k0s(),r.j41(6,"nv-item-button",6),r.bIt("clicked",function(){return qe.notificationsClicked()}),r.k0s(),r.DNE(7,x,1,0,"nv-divider",7)(8,V,1,1,"nv-item-button",8)(9,D,1,1,"nv-item-button",9)(10,F,1,1,"nv-item-button",10)(11,I,1,1,"nv-item-button",11)(12,k,1,0,"nv-divider",7)(13,R,1,1,"nv-item-button",12),r.k0s()),2&Ve&&(r.Y8G("fxLayoutGap",qe.tvMode?"24px":"8px"),r.R7$(),r.Y8G("ngIf",qe.showGeneral),r.R7$(),r.Y8G("ngIf",qe.showGameplay),r.R7$(),r.Y8G("ngIf",qe.showSystem),r.R7$(),r.Y8G("ngIf",qe.showShortcutControls),r.R7$(),r.Y8G("chevron",!0)("tvRightIconExtraPadding",!1),r.R7$(),r.Y8G("chevron",!0)("tvRightIconExtraPadding",!1),r.R7$(),r.Y8G("ngIf",qe.sdkGalleryEnable||qe.shadowPlayEnable),r.R7$(),r.Y8G("ngIf",qe.sdkGalleryEnable&&qe.isGfn),r.R7$(),r.Y8G("ngIf",qe.showAudio&&qe.shadowPlayEnable),r.R7$(),r.Y8G("ngIf",qe.shadowPlayEnable),r.R7$(),r.Y8G("ngIf",qe.shadowPlayEnable),r.R7$(),r.Y8G("ngIf",qe.showDebug),r.R7$(),r.Y8G("ngIf",qe.showDebug))},dependencies:[n.bT,a.$,h.j,g.DJ,g.BO,g.UI],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{padding:16px 0}.isLtr[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.toggle-height[_ngcontent-%COMP%]{height:36px}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:32px}"]}),An})();var Y=d(65706),K=d(97152),$=d(78812),ee=d(74931),J=d(10785),z=d(29370),te=d(90929),X=d(61876),re=d(56106),ge=d(33955),oe=d(54676),xe=d(65240);function ue(lt,An){1<&&r.nrm(0,"div",13)}function N(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",20),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG(2);return r.Njj(qe.onShowReleaseHighlight())}),r.k0s()}}function se(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",14),r.DNE(1,N,1,0,"nv-item-button",15),r.j41(2,"nv-item-button",16),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.openURL(qe.termsConditions,qe.termsConditionsShortUrl))}),r.k0s(),r.j41(3,"nv-item-button",17),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.openURL(qe.accountTerms,qe.accountTermsShortUrl))}),r.k0s(),r.j41(4,"nv-item-button",18),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.openURL(qe.privacyPolicy,qe.privacyPolicyShortUrl))}),r.k0s(),r.j41(5,"nv-item-button",19),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.openURL(qe.ossLicense,qe.ossLicensesShortUrl))}),r.k0s()()}if(2<){const St=r.XpG();r.Y8G("fxLayoutGap",St.tvMode?"32px":""),r.R7$(),r.Y8G("ngIf",St.enableReleaseHighlights)}}function ce(lt,An){if(1<&&r.nrm(0,"nv-divider",21),2<){const St=r.XpG();r.Y8G("marginNotReq",St.tvMode)}}function Z(lt,An){if(1<&&(r.j41(0,"span",24),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG(2);r.R7$(),r.JRh(r.i5U(2,1,"settings.general.nextBillingDate",St.currentMembership))}}function de(lt,An){if(1<&&(r.j41(0,"div",22)(1,"span",6),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.DNE(4,Z,3,4,"span",23),r.k0s()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(),r.HbH(St.tvMode?"font-body2":"font-body1"),r.R7$(),r.JRh(r.bMT(3,6,St.membership)),r.R7$(2),r.Y8G("ngIf",St.validMembership)}}function ae(lt,An){if(1<){const St=r.RV6();r.j41(0,"div"),r.nrm(1,"nv-divider"),r.j41(2,"div",25),r.EFF(3),r.nI1(4,"translate"),r.nI1(5,"translate"),r.k0s(),r.j41(6,"div",5)(7,"mat-checkbox",26),r.mxI("ngModelChange",function(qe){r.eBV(St);const hn=r.XpG();return r.DH7(hn.technicalConsentModel,qe)||(hn.technicalConsentModel=qe),r.Njj(qe)}),r.bIt("change",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.technicalConsentCheckboxChange())}),r.j41(8,"span",27),r.EFF(9),r.nI1(10,"translate"),r.k0s()()()()}if(2<){const St=r.XpG();r.R7$(3),r.SpI(" ",r.bMT(5,7,r.bMT(4,5,"settings.Privacy"))," "),r.R7$(4),r.HbH(St.tvMode?"font-body3":"font-body2"),r.R50("ngModel",St.technicalConsentModel),r.R7$(2),r.JRh(r.bMT(10,9,"settings.privacy.ShareData"))}}let pe=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao,Wo,ta,bo,Ns,Ka,Sl,Yl){super(hn,hi,sr,null,le),this.injector=Ve,this.loggingService=qe,this.localeService=Nn,this.appConfig=So,this.oscDisplayService=Mo,this.bridgeService=Ao,this.telemetryUtilService=Wo,this.matIconRegistry=ta,this.userConsentService=bo,this.gfnSdkService=Ns,this.dateFormatterService=Ka,this.featureSupportService=Sl,this.offDeviceLinkService=Yl,this.validMembership=!1,this.showLinksAndMembershipDetails=!0,this.tvMode=!1,this.termsConditionsShortUrl=K.lph[K.r7g.TermsConditions],this.accountTermsShortUrl=K.lph[K.r7g.AccountTerms],this.ossLicensesShortUrl=K.lph[K.r7g.OssLicenses],this.privacyPolicyShortUrl=K.lph[K.r7g.PrivacyPolicy],super.bar("commonLabels.General"),this.logger=this.loggingService.getLogger("General"),this.isAnonUser$=this.gfnSdkService.getIsAnonymousUser(),this.tvMode=!!So?.featureEnablement?.tvMode}ngOnInit(){this.logger.info("Entered General"),super.ngOnInit(),this.settingsService=this.injector.get(K.h$Q),this.ecommerceService=this.injector.get(K.yJU),this.showLinksAndMembershipDetails=!this.featureSupportService.isGuestAppFlowWrapper(),this.productName=this.featureSupportService.isGuestAppFlowWrapper()?"product.NVIDIAGDN":"product.NVIDIAGFN",this.nvSettingsParams={version:this.appConfig.build.version,variant:this.appConfig.build.variant,type:this.appConfig.build.type};let hi="",sr="";this.nvSettingsParams.variant.length>0&&(hi=this.nvSettingsParams.variant.charAt(0)),this.nvSettingsParams.type.length>0&&(sr=this.nvSettingsParams.type.charAt(0)),this.translateValues={versionValue:this.nvSettingsParams.version+"/"+hi+sr},this.currentYear={year:(new Date).getFullYear()},this.enableReleaseHighlights=this.appConfig.featureEnablement.releaseHighlights,this.localeSubscription=this.localeService.localeChanged.subscribe(le=>{this.termsConditions=this.settingsService.getLinksUrl(K.niw.TERMS_CONDITIONS,le),this.accountTerms=this.settingsService.getLinksUrl(K.niw.ACCOUNT_TERMS,le),this.ossLicense=this.settingsService.getLinksUrl(K.niw.OSS_LICENSES,le),this.privacyPolicy=this.settingsService.getLinksUrl(K.niw.PRIVACY_POLICY,le)}),this.getUserMembershipInfo(),this.userConsentService.getAnonUserConsentData().pipe((0,S.Q)(this.destroy$)).subscribe(le=>{this.technicalConsentModel=le.userConsent?.technical===$.Rg.Full})}ngOnDestroy(){this.localeSubscription&&(this.localeSubscription.unsubscribe(),this.localeSubscription=null),this.ecommerceSubscription&&(this.ecommerceSubscription.unsubscribe(),this.ecommerceSubscription=null),super.ngOnDestroy()}openURL(Ve,qe){this.logger.info("Open URL: ",Ve),this.oscDisplayService.closeOSC(),this.bridgeService.executeCommand(ee.Ts.Common.Windowcontrol.Minimize).pipe((0,S.Q)(this.destroy$)).subscribe(),this.offDeviceLinkService.open(Ve,{shortUrl:qe})}onShowReleaseHighlight(){this.gfnInfoService.showReleaseHighlight(this.appConfig.build.version),this.sendReleaseHighlightsClickedTelemetry()}sendReleaseHighlightsClickedTelemetry(){this.telemetryUtilService.sendClickEvent(K.EBD.ReleaseHighlights,"","General section",!0)}getUserMembershipInfo(){this.ecommerceSubscription=this.ecommerceService.getUserMembership(!0).subscribe(Ve=>{if(this.logger.info("User membership: ",Ve),this.membership=Ve?.product?.longDescription??"settings.general.membershipStatus",Ve.subscription?.renewalDateTime){this.validMembership=!0;const qe=Ve.subscription?.renewalDateTime;if(J(qe,J.ISO_8601).isValid()){const hn=qe.toString();this.dateFormatterService.getLocalizedDate(hn).pipe((0,Y.s)(1),(0,S.Q)(this.destroy$)).subscribe(hi=>{this.currentMembership={date:hi}},hi=>{this.logger.info("Error while getting localized date ",hi),this.currentMembership={date:J(qe).format("LL")}})}else this.logger.error("Invalid date or date format",qe)}else this.validMembership=!1},Ve=>{this.logger.error("GetUserMembership error - ",Ve.toString())})}technicalConsentCheckboxChange(){this.userConsentService.setAnonUserConsentData(this.technicalConsentModel?$.Xj:$.bC).pipe((0,S.Q)(this.destroy$)).subscribe(()=>this.logger.info("Successfully set consent data"),qe=>this.logger.error("Failed to set consent data",qe)),this.settingsService.sendTelemetry({settingType:"GaaSTechnicalConsent",selectedOption:this.technicalConsentModel})}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(r.zZn),r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.gZv),r.rXU(v.x_y),r.rXU(m.iH),r.rXU(K.Vk6),r.rXU(v.Bqk),r.rXU(m.NZ),r.rXU(K.jgD),r.rXU(z.tp),r.rXU(K.FX3),r.rXU(te.DL),r.rXU(K.eI8),r.rXU(v.Rvq),r.rXU(X.nO))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-general"]],features:[r.Vt3],decls:21,vars:27,consts:[["fxLayout","column","fxFlex","",1,"settings-general"],[1,"settings-container"],["fxLayout","row",1,"release-info-container",3,"fxLayoutAlign"],[1,"setting-about-icon"],["svgIcon","nvidia_symbol","tabindex","-1","fxFlex","grow"],["fxLayout","column"],[1,"font-color-primary"],[1,"font-color-tertiary"],["fxFlex","",4,"ngIf"],["fxLayout","column",3,"fxLayoutGap",4,"ngIf"],[3,"marginNotReq",4,"ngIf"],["fxLayout","column","class","settings-data1","fxLayoutAlign","start start",3,"side-padding",4,"ngIf"],[4,"ngIf"],["fxFlex",""],["fxLayout","column",3,"fxLayoutGap"],["titleString","common.releaseHighlights","urlIcon","launch",3,"clicked",4,"ngIf"],["titleString","settings.general.terms","urlIcon","launch",3,"clicked"],["titleString","settings.general.accountTerms","urlIcon","launch",3,"clicked"],["titleString","settings.general.privacyPolicy","urlIcon","launch",3,"clicked"],["titleString","settings.general.osslicense","urlIcon","launch",3,"clicked"],["titleString","common.releaseHighlights","urlIcon","launch",3,"clicked"],[3,"marginNotReq"],["fxLayout","column","fxLayoutAlign","start start",1,"settings-data1"],["class","font-body2 font-color-tertiary",4,"ngIf"],[1,"font-body2","font-color-tertiary"],[1,"settings-privacy-gfn-heading","font-body1","label-color"],[3,"ngModelChange","change","ngModel"],[1,"settings-privacy-consent-label"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),r.nrm(4,"mat-icon",4),r.k0s(),r.j41(5,"div",5)(6,"div",6),r.EFF(7),r.nI1(8,"translate"),r.k0s(),r.j41(9,"div",7),r.EFF(10),r.nI1(11,"translate"),r.k0s(),r.j41(12,"div",7),r.EFF(13),r.nI1(14,"translate"),r.k0s()(),r.DNE(15,ue,1,0,"div",8),r.k0s(),r.DNE(16,se,6,2,"div",9)(17,ce,1,1,"nv-divider",10)(18,de,5,8,"div",11)(19,ae,11,11,"div",12),r.nI1(20,"async"),r.k0s()()),2&Ve&&(r.R7$(2),r.AVh("side-padding",!qe.tvMode),r.Y8G("fxLayoutAlign",qe.tvMode?"center start":"center center"),r.R7$(4),r.HbH(qe.tvMode?"font-body2":"font-body1"),r.R7$(),r.SpI(" ",r.bMT(8,17,qe.productName)," "),r.R7$(2),r.HbH(qe.tvMode?"font-body3":"font-body2"),r.R7$(),r.SpI(" ",r.i5U(11,19,"settings.general.version",qe.translateValues)," "),r.R7$(2),r.HbH(qe.tvMode?"font-body3":"font-body2"),r.R7$(),r.SpI(" ",r.i5U(14,22,"settings.general.nvidiaRightsReserved",qe.currentYear)," "),r.R7$(2),r.Y8G("ngIf",!qe.tvMode),r.R7$(),r.Y8G("ngIf",qe.showLinksAndMembershipDetails),r.R7$(),r.Y8G("ngIf",qe.showLinksAndMembershipDetails),r.R7$(),r.Y8G("ngIf",qe.showLinksAndMembershipDetails),r.R7$(),r.Y8G("ngIf",r.bMT(20,25,qe.showLinksAndMembershipDetails&&qe.isAnonUser$)))},dependencies:[n.bT,a.$,h.j,g.DJ,g.BO,g.sA,g.UI,re.BC,re.vS,z.An,ge.NZ,oe.tG,n.Jj,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.settings-general[_ngcontent-%COMP%]{max-width:100%;padding:16px 0;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-general[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-general[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-general[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-general[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-general[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-general[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.settings-data1[_ngcontent-%COMP%]{padding:8px 0 14px}.settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{background:#76b900;color:#fff;width:60px;height:60px}.isLtr[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:16px 16px 16px 0}html[dir=ltr][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy: 0;margin:16px 16px 16px 0}.isRtl[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:16px 0 16px 16px}html[dir=rtl][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy: 0;margin:16px 0 16px 16px}.settings-privacy-consent-label[_ngcontent-%COMP%]{white-space:normal}.isLtr[_nghost-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%]{margin:12px 0 8px}html[dir=ltr][_ngcontent-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%]{--dummy: 0;margin:12px 0 8px}.isRtl[_nghost-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%]{margin:12px 0 8px}html[dir=rtl][_ngcontent-%COMP%] .settings-privacy-gfn-heading[_ngcontent-%COMP%]{--dummy: 0;margin:12px 0 8px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr.tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%]{margin:16px 0 32px}html[dir=ltr] .tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%]{--dummy: 0;margin:16px 0 32px}.isRtl.tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%]{margin:16px 0 32px}html[dir=rtl] .tv-view[_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .release-info-container[_ngcontent-%COMP%]{--dummy: 0;margin:16px 0 32px}.tv-view[_nghost-%COMP%] .settings-general[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-general[_ngcontent-%COMP%]{padding:32px}.tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{background:#76b900;color:#fff;width:96px;height:96px}.isLtr.tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0 24px 0 0}html[dir=ltr] .tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy: 0;margin:0 24px 0 0}.isRtl.tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0 0 0 24px}html[dir=rtl] .tv-view[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 0 24px}"]}),An})();var _e=d(27211),ke=d(12137),De=d(81616),Me=d(52834),je=d(47973),$e=d(51394),Oe=d(26945);function gt(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",13)(1,"div",14)(2,"mat-checkbox",15),r.mxI("ngModelChange",function(qe){const hn=r.eBV(St).$implicit;return r.DH7(hn.value,qe)||(hn.value=qe),r.Njj(qe)}),r.bIt("change",function(){const qe=r.eBV(St).index,hn=r.XpG().index,hi=r.XpG();return r.Njj(hi.checkChanged(hn,qe))}),r.k0s(),r.j41(3,"span",16),r.bIt("click",function(qe){const hn=r.eBV(St).index,hi=r.XpG().index,sr=r.XpG();return r.Njj(sr.entryClicked(qe,hi,hn))}),r.EFF(4),r.nI1(5,"translate"),r.k0s()()()}if(2<){const St=An.$implicit;r.R7$(2),r.R50("ngModel",St.value),r.R7$(2),r.JRh(r.bMT(5,2,St.label))}}function qt(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",2)(1,"mat-accordion",3)(2,"mat-expansion-panel",4)(3,"mat-expansion-panel-header",5)(4,"div",6)(5,"div",7),r.bIt("click",function(qe){const hn=r.eBV(St).index,hi=r.XpG();return r.Njj(hi.entryClicked(qe,hn,-1))}),r.EFF(6),r.k0s(),r.j41(7,"button",8),r.nrm(8,"mat-icon",9),r.k0s()()(),r.DNE(9,gt,6,4,"div",10),r.k0s()(),r.j41(10,"div",11)(11,"mat-checkbox",12),r.mxI("ngModelChange",function(qe){const hn=r.eBV(St).$implicit;return r.DH7(hn.value,qe)||(hn.value=qe),r.Njj(qe)}),r.bIt("click",function(qe){return r.eBV(St),r.Njj(qe.stopPropagation())})("change",function(){const qe=r.eBV(St).index,hn=r.XpG();return r.Njj(hn.checkChanged(qe,-1))}),r.k0s()()()}if(2<){const St=An.$implicit,Ve=An.index,qe=r.XpG();r.R7$(6),r.SpI(" ",St.item," "),r.R7$(3),r.Y8G("ngForOf",St.subitems),r.R7$(2),r.R50("ngModel",St.value),r.Y8G("indeterminate",qe.checkIndeterminate(Ve))}}let ye=(()=>{var lt;class An{constructor(){this.changed=new r.bkB}emitChanged(Ve,qe,hn){this.changed.emit({index:Ve,subindex:qe,value:hn})}checkChanged(Ve,qe){const hn=-1!==qe?this.list[Ve].subitems[qe].value:this.list[Ve].value;-1===qe?(this.list[Ve].subitems.forEach(hi=>{hi.value!==hn&&(hi.value=hn)}),this.emitChanged(Ve,-1,hn)):this.checkIndeterminate(Ve)?this.emitChanged(Ve,qe,hn):(this.list[Ve].value!==hn&&(this.list[Ve].value=hn),this.emitChanged(Ve,-1,hn))}entryClicked(Ve,qe,hn){Ve.stopPropagation();const hi=this.list[qe];if(-1!==hn){const sr=hi.subitems[hn];sr.value=!sr.value}else hi.value=!hi.value;this.checkChanged(qe,hn)}checkIndeterminate(Ve){if(0===this.list[Ve].subitems.length)return!1;let qe=!1;const hn=this.list[Ve].subitems[0].value;return this.list[Ve].subitems.forEach(hi=>{hi.value!==hn&&(qe=!0)}),qe}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)},lt.\u0275cmp=r.VBU({type:lt,selectors:[["nv-accordion"]],inputs:{list:"list"},outputs:{changed:"changed"},decls:2,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start start"],["class","accordion-item","fxFlex","grow",4,"ngFor","ngForOf"],["fxFlex","grow",1,"accordion-item"],["multi","","displayMode","flat"],["hideToggle","true"],["collapsedHeight","48px","expandedHeight","48px"],["fxLayout","row","fxLayoutAlign","start center","fxFlexFill",""],["dir","auto","fxFlex","grow",1,"font-body1","accordion-label","accordion-header-label",3,"click"],["mat-button","","fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon","complex-button"],["svgIcon","chevron_down",1,"accordion-chevron"],["class","accordion-subitem","fxLayout","column","fxLayoutAlign","space-between center",4,"ngFor","ngForOf"],[1,"checkbox-overlay"],["fxFlex","none",1,"igo-notification-mat",3,"ngModelChange","click","change","ngModel","indeterminate"],["fxLayout","column","fxLayoutAlign","space-between center",1,"accordion-subitem"],["fxLayout","row","fxLayoutAlign","start center",1,"checkbox-item"],["fxFlex","none",1,"igo-notification-mat",3,"ngModelChange","change","ngModel"],["fxFlex","shrink",1,"font-body1","accordion-label",3,"click"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0),r.DNE(1,qt,12,4,"div",1),r.k0s()),2&Ve&&(r.R7$(),r.Y8G("ngForOf",qe.list))},dependencies:[n.Sq,g.DJ,g.sA,g.G2,g.UI,re.BC,re.vS,je.iV,$e.ig,z.An,Oe.BS,Oe.GK,Oe.Z2,ge.NZ,oe.tG,xe.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}.checkbox-item[_ngcontent-%COMP%]{min-width:0}.accordion-label[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;min-width:0;width:0;padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .accordion-label[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-label[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .accordion-label[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.isLtr[_nghost-%COMP%] .accordion-header-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-header-label[_ngcontent-%COMP%]{padding-left:40px}html[dir=ltr][_ngcontent-%COMP%] .accordion-header-label[_ngcontent-%COMP%]{--dummy1: 0;padding-left:40px}.isRtl[_nghost-%COMP%] .accordion-header-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-header-label[_ngcontent-%COMP%]{padding-right:40px}html[dir=rtl][_ngcontent-%COMP%] .accordion-header-label[_ngcontent-%COMP%]{--dummy1: 0;padding-right:40px}.accordion-item[_ngcontent-%COMP%]{width:100%;padding:0;position:relative}.checkbox-overlay[_ngcontent-%COMP%]{position:absolute;top:0}.isLtr[_nghost-%COMP%] .checkbox-overlay[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .checkbox-overlay[_ngcontent-%COMP%]{left:0}html[dir=ltr][_ngcontent-%COMP%] .checkbox-overlay[_ngcontent-%COMP%]{--dummy5: 0;left:0}.isRtl[_nghost-%COMP%] .checkbox-overlay[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .checkbox-overlay[_ngcontent-%COMP%]{right:0}html[dir=rtl][_ngcontent-%COMP%] .checkbox-overlay[_ngcontent-%COMP%]{--dummy5: 0;right:0}.accordion-subitem[_ngcontent-%COMP%]{display:flex;flex-direction:row}.isLtr[_nghost-%COMP%] .accordion-subitem[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .accordion-subitem[_ngcontent-%COMP%]{padding:0 0 0 16px}html[dir=ltr][_ngcontent-%COMP%] .accordion-subitem[_ngcontent-%COMP%]{--dummy: 0;padding:0 0 0 16px}.isRtl[_nghost-%COMP%] .accordion-subitem[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .accordion-subitem[_ngcontent-%COMP%]{padding:0 16px 0 0}html[dir=rtl][_ngcontent-%COMP%] .accordion-subitem[_ngcontent-%COMP%]{--dummy: 0;padding:0 16px 0 0}.accordion-subitem[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]}),An})();var Re=d(28139),Ze=d(62141);const et=lt=>({"toggle-height":lt});function xt(lt,An){1<&&(r.j41(0,"span",7),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"mainMenu.DisableRecord")))}function un(lt,An){1<&&(r.j41(0,"span",7),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"mainMenu.DisabledForPlaytest")))}function ct(lt,An){1<&&(r.j41(0,"div",9),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"settings.HighlightsHelper1")," "))}function Gt(lt,An){if(1<&&(r.qex(0),r.DNE(1,ct,3,3,"div",8),r.bVm()),2<){const St=r.XpG(),Ve=r.sdS(11);r.R7$(),r.Y8G("ngIf",!St.hlCaptureSwitchModel&&!St.disableRecordSpecialCase)("ngIfElse",Ve)}}function pn(lt,An){1<&&(r.j41(0,"span",14),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.SpI("",r.bMT(2,1,"settings.SupportedGames")," "))}function st(lt,An){1<&&(r.j41(0,"div",15)(1,"mat-icon",16),r.EFF(2,"info"),r.k0s(),r.j41(3,"div",17),r.EFF(4),r.nI1(5,"translate"),r.k0s()()),2<&&(r.R7$(4),r.SpI(" ",r.bMT(5,1,"settings.SupportedGamesRequired")," "))}function mn(lt,An){if(1<){const St=r.RV6();r.qex(0)(1),r.j41(2,"div",10),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.bVm(),r.j41(5,"nv-item-button",11),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.onVideoCapureClicked())}),r.k0s(),r.nrm(6,"nv-divider"),r.DNE(7,pn,3,3,"span",12)(8,st,6,3,"div",13),r.bVm()}if(2<){const St=r.XpG(),Ve=r.sdS(11);r.R7$(3),r.SpI(" ",r.bMT(4,4,St.hlL1Text)," "),r.R7$(4),r.Y8G("ngIf",St.hlCaptureSwitchModel),r.R7$(),r.Y8G("ngIf",St.hlCaptureSwitchModel&&!St.disableRecordSpecialCase&&!St.highlightGamesPresent)("ngIfElse",Ve)}}function Bn(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-accordion",20),r.bIt("changed",function(qe){r.eBV(St);const hn=r.XpG(3);return r.Njj(hn.accordionChanged(qe))}),r.k0s()}if(2<){const St=r.XpG(3);r.Y8G("list",St.gamesInfo)}}function En(lt,An){if(1<&&(r.j41(0,"div")(1,"div",18),r.DNE(2,Bn,1,1,"nv-accordion",19),r.k0s()()),2<){const St=r.XpG(2);r.R7$(2),r.Y8G("ngIf",St.hlCaptureSwitchModel&&St.highlightGamesPresent)}}function Cn(lt,An){if(1<&&r.DNE(0,En,3,1,"div",6),2<){const St=r.XpG();r.Y8G("ngIf",!St.disableRecordSpecialCase)}}let fn=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao,Wo,ta){super(hn,hi,Mo,null,Wo.GFNCefClient?Ve.get(v.x_y):null),this.injector=Ve,this.loggingService=qe,this.bridgeService=sr,this.sdkHighlightsService=le,this.telemetry=Nn,this.telemetryIgo=So,this.translateService=Ao,this.igoConfig=Wo,this.shadowPlayService=ta,this.highlightGamesPresent=!1,this.highlightsHelper="",this.gamesInfo=[],this.recordSpecialCase=y.Fm,this.highlightsOnL0=!1,this.isNvAPP=!1,super.bar("commonLabels.Highlights"),this.logger=this.loggingService.getLogger("Highlights"),this.highlightsOnL0=!0!==Wo.GFNCefClient,this.isNvAPP="GFE"===this.igoConfig.branding}ngOnInit(){super.ngOnInit(),this.highlightsOnL0&&this.nonGfnOverwrides(),this.bridgeService.executeCommand(ee.Ts.Share.Shareserver.GetHighlightsEnable,{}).pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.hlCaptureSwitchModel=Ve.enable&&!this.disableRecordSpecialCase,this.logger.info("Highlights enabled: ",this.hlCaptureSwitchModel),this.hlL1Text=Ve.enable?"settings.HighlightsHelper3":"settings.HighlightsHelper1"}),this.bridgeService.executeCommand(ee.Ts.Share.Shareserver.GetApplicationConfigs,{}).pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{Ve&&0!==Ve.apps.length?(this.highlightGamesPresent=!0,this.gameData=Ve,this.loadHighlightsLists()):this.logger.info("No game data to initialize")})}nonGfnOverwrides(){this.caller="../main-menu"}onVideoCapureClicked(){this.shadowPlayService.videoCaptureReturnLocation="../settings/highlights",this.navigationService.navigate(["../settings/video"],{relativeTo:this.route.parent,skipLocationChange:!0},v.jby.videoCapture)}loadHighlightsLists(){this.gamesInfo.length=0,this.gameData.apps.forEach(Ve=>{if(0!==Ve.permissions.length){if(this.sdkHighlightsService.overrideHighlightSettings()&&this.sdkHighlightsService.cachedAHLGameShortName()===Ve.app.appShortName)return void this.logger.info("Highlights settings not shown for: ",Ve.app.appShortName);const qe=[];let hn=!1;for(let sr=0;sr<Ve.permissions.length;sr++)hn=Ve.permissions[sr].permission===ee.Or.Share.Shareserver.SdkPermissions.granted||hn;Ve.highlights.forEach(sr=>{const le=`highlightLabels.${sr.name}`;let Nn=this.translateService.instant(le);Nn===le&&(Nn=sr.name),qe.push({label:Nn,value:sr.userEnabled&&hn})}),this.gamesInfo.push({item:Ve.app.profileName||Ve.app.name,value:hn,subitems:qe})}})}accordionChanged(Ve){const qe=this.gamesInfo[Ve.index];-1!==Ve.subindex?this.highlightStateChanged(qe,qe.subitems[Ve.subindex],Ve.value,!1):this.highlightStateChanged(qe,void 0,Ve.value,!0)}hlCaptureSwitchChange(Ve){this.logger.info("hlCapture switch changed: ",this.hlCaptureSwitchModel);const qe={enable:this.hlCaptureSwitchModel};this.hlL1Text=this.hlCaptureSwitchModel?"settings.HighlightsHelper3":"settings.HighlightsHelper1",this.bridgeService.executeCommand(ee.Ts.Share.Shareserver.SetHighlightsEnable,qe).pipe((0,S.Q)(this.destroy$)).subscribe(hn=>{this.logger.info("Highlights capture enabled: ",hn)}),this.telemetry.sendHighlightsGameSetting({shortName:"None",cmsId:"None"},this.hlCaptureSwitchModel,v.Btx.settings,null,v.f2G.featureToggle)}gameStateChanged(Ve,qe){let hn,hi;this.gameData.apps.forEach(So=>{So.app.profileName===Ve.item&&(hn=So.permissions.slice(),hi=So.app)});const Nn=this.sdkHighlightsService.setStateOfCurrentGame({permissionParams:{permissions:hn,app:hi},state:qe}).subscribe(()=>{Nn.unsubscribe()})}highlightStateChanged(Ve,qe,hn,hi){let sr,le;this.gameData.apps.forEach(Mo=>{Mo.app.profileName===Ve.item&&(sr=Mo.highlights.slice(),le=Mo.app)});const Nn={app:le,highlightDefinitions:sr};let So=!1;Nn.highlightDefinitions.forEach(Mo=>{(hi||Mo.name===qe.label||this.translateService.instant(`highlightLabels.${Mo.name}`)===qe.label)&&(this.logger.info(`Highlight state updated ${Mo.name} to: ${hn}`),Mo.userEnabled=hn),Mo.userEnabled&&(So=!0)}),this.bridgeService.executeCommand(ee.Ts.Share.Shareserver.SetHighlightsConfig,Nn).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{this.isNvAPP?this.telemetry.sendHighlightsGameSetting({shortName:le.appShortName},hi?hn:qe.value,v.Btx.settings,hi?null:qe.label,hi?v.f2G.gameToggle:v.f2G.individualToggle):hi?this.logger.info("Highlight state updated ALL to: "+hn):(this.logger.info("Highlight state updated: "+qe.label+" to: "+hn),this.telemetryIgo.sendHighlightsIndividualGameToggle({shortName:le.appShortName},qe.label,qe.value)),this.gameStateChanged(Ve,So)})}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(r.zZn),r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(m.NZ),r.rXU(v.P15),r.rXU(v.xRl),r.rXU(_e.S),r.rXU(v.gZv),r.rXU(xe.c$),r.rXU(ke.k),r.rXU(v.W1J))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-highlights"]],features:[r.Vt3],decls:12,vars:12,consts:[["showHighlights",""],["fxLayout","column","fxFlex","",1,"settings-highlights","nv-hig"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center",1,"padding-nvapp","title-padding-top",3,"ngClass"],["fxFlex","grow",1,"font-sub1","font-color-primary"],["fxFlex","none","md-invert","","nvHoverFocus","",1,"settings-padding",3,"ngModelChange","change","ngModel","disabled"],["class","font-body2 disabled-opacity padding-nvapp",4,"ngIf"],[4,"ngIf"],[1,"font-body2","disabled-opacity","padding-nvapp"],["class","helper-text-div font-body2",4,"ngIf","ngIfElse"],[1,"helper-text-div","font-body2"],[1,"font-body2","font-color-tertiary","padding-nvapp","title-padding-bottom"],["urlIcon","settings","titleString","mainMenu.VideoCaptureShortcut","subTitle","mainMenu.VideoCaptureShortcutSub","mainMenuUse","true",3,"clicked"],["class","font-body2 padding-nvapp nv-sub-text-padding",4,"ngIf"],["fxLayout","row","class","padding-nvapp nv-sub-text-padding",4,"ngIf","ngIfElse"],[1,"font-body2","padding-nvapp","nv-sub-text-padding"],["fxLayout","row",1,"padding-nvapp","nv-sub-text-padding"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg"],[1,"font-body2","gameRequirement-alignment-padding"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start",1,"settings-layout"],[3,"list","changed",4,"ngIf"],[3,"changed","list"]],template:function(Ve,qe){if(1&Ve){const hn=r.RV6();r.j41(0,"div",1)(1,"div",2)(2,"div",3),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"mat-slide-toggle",4),r.mxI("ngModelChange",function(sr){return r.eBV(hn),r.DH7(qe.hlCaptureSwitchModel,sr)||(qe.hlCaptureSwitchModel=sr),r.Njj(sr)}),r.bIt("change",function(sr){return r.eBV(hn),r.Njj(qe.hlCaptureSwitchChange(sr))}),r.k0s()(),r.DNE(6,xt,3,3,"span",5)(7,un,3,3,"span",5)(8,Gt,2,2,"ng-container",6)(9,mn,9,6,"ng-container",6)(10,Cn,1,1,"ng-template",null,0,r.C5r),r.k0s()}2&Ve&&(r.R7$(),r.Y8G("ngClass",r.eq3(10,et,!qe.highlightsOnL0)),r.R7$(2),r.SpI(" ",r.bMT(4,8,"settings.CaptureHighlights")," "),r.R7$(2),r.R50("ngModel",qe.hlCaptureSwitchModel),r.Y8G("disabled",qe.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==qe.disableRecordSpecialCase),r.R7$(),r.Y8G("ngIf",qe.recordSpecialCase.RECORD_SPECIAL_CASE_4K===qe.disableRecordSpecialCase),r.R7$(),r.Y8G("ngIf",qe.recordSpecialCase.RECORD_SPECIAL_CASE_PLAYTEST===qe.disableRecordSpecialCase),r.R7$(),r.Y8G("ngIf",!qe.highlightsOnL0),r.R7$(),r.Y8G("ngIf",qe.highlightsOnL0))},dependencies:[n.YU,n.bT,a.$,h.j,De.U,Me.I,ye,g.DJ,g.sA,g.UI,Re.PW,re.BC,re.vS,z.An,Ze.P2,oe.tG,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.settings-highlights[_ngcontent-%COMP%]{max-width:100%;padding:16px 0;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-highlights[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-highlights[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-highlights[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-highlights[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-highlights[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-highlights[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.settings-layout[_ngcontent-%COMP%] nv-accordion[_ngcontent-%COMP%]{width:480px}.isLtr[_nghost-%COMP%] .settings-layout[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-layout[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr][_ngcontent-%COMP%] .settings-layout[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl[_nghost-%COMP%] .settings-layout[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-layout[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl][_ngcontent-%COMP%] .settings-layout[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.nv-sub-text-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.helper-text-div[_ngcontent-%COMP%]{height:60px;padding:0 16px}.toggle-height[_ngcontent-%COMP%]{height:40px}.hlTitleNvAppColor[_ngcontent-%COMP%]{color:#ffffffb3}.isLtr[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.title-padding-top[_ngcontent-%COMP%]{padding-top:14px}.title-padding-bottom[_ngcontent-%COMP%]{padding-bottom:14px}.icon-alert-circle_reg[_ngcontent-%COMP%]{line-height:inherit;font-style:normal}.isLtr[_nghost-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-alert-circle_reg[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nv-custom-icons[_ngcontent-%COMP%]{color:#ffffffb3}.gameRequirement-alignment-padding[_ngcontent-%COMP%]{padding-top:2px;padding-bottom:2px}"]}),An})();var dt=d(93662),nn=d(21254),yn=d(5428);const Xn=(lt,An)=>({"padding-left.px":lt,"padding-right.px":An}),rn=(lt,An)=>({"stats-small":lt,"stats-large":An});function ai(lt,An){if(1<){const St=r.RV6();r.qex(0,21),r.j41(1,"div",22)(2,"span",23),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"nv-input",24),r.mxI("textChange",function(qe){r.eBV(St);const hn=r.XpG(2);return r.DH7(hn.performanceCustomFontColor,qe)||(hn.performanceCustomFontColor=qe),r.Njj(qe)}),r.bIt("textChange",function(qe){r.eBV(St);const hn=r.XpG(2);return r.Njj(hn.perfMonCustomFontColorChanged(qe))}),r.k0s()(),r.bVm()}if(2<){const St=r.XpG(2);r.R7$(3),r.JRh(r.bMT(4,6,"perfmon.customColorCode")),r.R7$(2),r.Y8G("readonly",!1)("textMaxLength",7),r.R50("text",St.performanceCustomFontColor),r.Y8G("isColorCode",!0)("defaultColorCode",St.getCustomFontColorText())}}function ri(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",9)(1,"div",10),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.qex(4),r.j41(5,"nv-rotary",11),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.Performance,qe))}),r.k0s(),r.bVm(),r.qex(6),r.j41(7,"div",12),r.EFF(8),r.nI1(9,"translate"),r.k0s(),r.j41(10,"nv-hig-slider",13),r.bIt("input",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.performanceHorizontalSliderChanged(qe.value))}),r.k0s(),r.bVm(),r.qex(11),r.j41(12,"div",12),r.EFF(13),r.nI1(14,"translate"),r.k0s(),r.j41(15,"nv-hig-slider",13),r.bIt("input",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.performanceVerticalSliderChanged(qe.value))}),r.k0s(),r.bVm(),r.nrm(16,"div",14),r.qex(17,15),r.j41(18,"nv-rotary",16),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.perfMonLayoutRotaryChanged(qe))}),r.k0s(),r.bVm(),r.qex(19),r.j41(20,"div",12),r.EFF(21),r.nI1(22,"translate"),r.k0s(),r.j41(23,"nv-hig-slider",13),r.bIt("input",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.perfMonBackgroundOpacitySliderChanged(qe.value))}),r.k0s(),r.bVm(),r.nrm(24,"div",14),r.qex(25,17),r.j41(26,"nv-rotary",18),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.perfMonFontSizeRotaryChanged(qe))}),r.k0s(),r.bVm(),r.qex(27,17),r.j41(28,"nv-rotary",19),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.perfMonFontColorRotaryChanged(qe))}),r.k0s(),r.bVm(),r.DNE(29,ai,6,8,"ng-container",20),r.nrm(30,"nv-divider"),r.k0s()}if(2<){const St=r.XpG();r.R7$(2),r.SpI(" ",r.bMT(3,30,"perfmon.performance")," "),r.R7$(3),r.AVh("rotary-side-padding",!St.tvMode),r.Y8G("input",St.rotaryOptionsPerformance)("initialState",St.rotaryInit.Performance),r.R7$(3),r.SpI(" ",r.bMT(9,32,"perfmon.horizontalPosition")," "),r.R7$(2),r.Y8G("min",0)("max",100)("step",1)("tickInterval",50)("value",St.performancePosition.x),r.R7$(3),r.SpI(" ",r.bMT(14,34,"perfmon.verticalPosition")," "),r.R7$(2),r.Y8G("min",0)("max",100)("step",1)("tickInterval",50)("value",St.performancePosition.y),r.R7$(3),r.Y8G("input",St.layoutRotaryOptions)("initialState",St.performanceLayout),r.R7$(3),r.SpI(" ",r.bMT(22,36,"perfmon.backgroundOpacity")," "),r.R7$(2),r.Y8G("min",0)("max",100)("step",1)("tickInterval",50)("value",St.performanceBackgroundOpacity),r.R7$(3),r.Y8G("input",St.fontSizeRotaryOptions)("initialState",St.performanceFontSize),r.R7$(2),r.Y8G("input",St.fontColorRotaryOptions)("initialState",St.performanceFontColor),r.R7$(),r.Y8G("ngIf",St.showCustomColorSection())}}function Ne(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",32),r.k0s())}function zt(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",33),r.k0s())}function vt(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",34),r.k0s())}function Ct(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",35),r.k0s())}function it(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",36),r.k0s())}function Ut(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",36),r.k0s())}function jn(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",37),r.k0s())}function wn(lt,An){if(1<&&(r.j41(0,"div")(1,"div",28)(2,"div",29),r.DNE(3,Ne,2,0,"div",30)(4,zt,2,0,"div",30)(5,vt,2,0,"div",30)(6,Ct,2,0,"div",30)(7,it,2,0,"div",30)(8,Ut,2,0,"div",30)(9,jn,2,0,"div",30),r.k0s()()()),2<){const St=An.$implicit,Ve=r.XpG(2);r.R7$(),r.Y8G("ngClass",St.value),r.R7$(2),r.Y8G("ngIf",Ve.isPerfOverlaySupported&&Ve.visibility.Performance===St.key),r.R7$(),r.Y8G("ngIf",Ve.shadowPlayEnabled&&Ve.visibility.Recording===St.key),r.R7$(),r.Y8G("ngIf",Ve.sdkGalleryEnabled&&Ve.visibility.IR===St.key),r.R7$(),r.Y8G("ngIf",Ve.sdkGalleryEnabled&&Ve.visibility.Highlights===St.key),r.R7$(),r.Y8G("ngIf",Ve.micEnabled&&Ve.visibility.Mic===St.key),r.R7$(),r.Y8G("ngIf",Ve.gfnMicEnabled&&Ve.visibility.GfnMic===St.key),r.R7$(),r.Y8G("ngIf",Ve.showConnectionStatus&&Ve.visibility.Network===St.key)}}function nt(lt,An){if(1<&&(r.j41(0,"div",40)(1,"div",41),r.nrm(2,"mat-icon",32),r.k0s()()),2<){const St=r.XpG(3);r.Y8G("ngClass",r.l_i(1,rn,St.statSize===St.statsSizes[0],St.statSize===St.statsSizes[1]))}}function on(lt,An){if(1<&&(r.j41(0,"div")(1,"div",38),r.DNE(2,nt,3,4,"div",39),r.k0s()()),2<){const St=An.$implicit,Ve=r.XpG(2);r.R7$(),r.Y8G("ngClass",St.value)("ngStyle",r.l_i(3,Xn,Ve.statsOffset,Ve.statsOffset)),r.R7$(),r.Y8G("ngIf",Ve.showStats&&Ve.visibility.Statistics===St.key)}}function mt(lt,An){if(1<&&(r.j41(0,"div")(1,"div",25),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"div",26),r.DNE(5,wn,10,8,"div",27),r.nI1(6,"keyvalue"),r.DNE(7,on,3,6,"div",27),r.nI1(8,"keyvalue"),r.k0s(),r.nrm(9,"div"),r.k0s()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(),r.Y8G("ngClass",St.tvMode?"font-body3 font-color-tertiary":"font-sub2 font-color-tertiary"),r.R7$(),r.SpI(" ",r.bMT(3,10,"settings.Layout")," "),r.R7$(3),r.Y8G("ngForOf",r.bMT(6,12,St.quadrants)),r.R7$(2),r.Y8G("ngForOf",r.bMT(8,14,St.statsQuadrants)),r.R7$(2),r.AVh("nv-gap-16",St.tvMode)("nv-gap-8",!St.tvMode)}}function _n(lt,An){if(1<){const St=r.RV6();r.qex(0),r.j41(1,"div")(2,"nv-rotary",42),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.Recording,qe))}),r.k0s()(),r.bVm()}if(2<){const St=r.XpG();r.R7$(),r.AVh("rotary-side-padding",!St.tvMode),r.R7$(),r.Y8G("input",St.rotaryOptions)("initialState",St.rotaryInit.Recording)}}function wt(lt,An){if(1<){const St=r.RV6();r.qex(0),r.j41(1,"div")(2,"nv-rotary",43),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.IR,qe))}),r.k0s(),r.j41(3,"nv-rotary",44),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.Highlights,qe))}),r.k0s()(),r.bVm()}if(2<){const St=r.XpG();r.R7$(),r.AVh("rotary-side-padding",!St.tvMode),r.R7$(),r.Y8G("input",St.rotaryOptions)("initialState",St.rotaryInit.IR),r.R7$(),r.Y8G("input",St.rotaryOptions)("initialState",St.rotaryInit.Highlights)}}function Un(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-rotary",45),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.Mic,qe))}),r.k0s()}if(2<){const St=r.XpG();r.Y8G("input",St.rotaryOptions)("initialState",St.rotaryInit.Mic)}}function Oi(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-rotary",45),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.GfnMic,qe))}),r.k0s()}if(2<){const St=r.XpG();r.Y8G("input",St.rotaryOptions)("initialState",St.rotaryInit.GfnMic)}}function At(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-rotary",46),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.PerfLogging,qe))}),r.k0s()}if(2<){const St=r.XpG();r.Y8G("input",St.rotaryOptions)("initialState",St.rotaryInit.PerfLogging)}}function Hn(lt,An){if(1<){const St=r.RV6();r.j41(0,"div"),r.nrm(1,"div"),r.j41(2,"div",47),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"nv-rotary",48),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.Network,qe))}),r.k0s()()}if(2<){const St=r.XpG();r.AVh("rotary-side-padding",!St.tvMode),r.R7$(),r.AVh("nv-gap-16",St.tvMode)("nv-gap-8",!St.tvMode),r.R7$(),r.Y8G("ngClass",St.tvMode?"font-body3 nv-label":"font-sub2"),r.R7$(),r.SpI(" ",r.bMT(4,10,"settings.Network")," "),r.R7$(2),r.Y8G("input",St.rotaryOptions)("initialState",St.rotaryInit.Network)}}function pi(lt,An){if(1<){const St=r.RV6();r.j41(0,"div"),r.nrm(1,"div"),r.j41(2,"div",47),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"nv-rotary",49),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryChanged(hn.indicators.Statistics,qe))}),r.k0s()()}if(2<){const St=r.XpG();r.AVh("rotary-side-padding",!St.tvMode),r.R7$(),r.AVh("nv-gap-16",St.tvMode)("nv-gap-8",!St.tvMode),r.R7$(),r.Y8G("ngClass",St.tvMode?"font-body3 nv-label":"font-sub2"),r.R7$(),r.SpI(" ",r.bMT(4,10,"settings.stats.Statistics")," "),r.R7$(2),r.Y8G("input",St.rotaryStatsOptions)("initialState",St.rotaryInit.Statistics)}}function Zi(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",33),r.k0s())}function Lr(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",34),r.k0s())}function Kr(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",35),r.k0s())}function Qt(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",36),r.k0s())}function di(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",36),r.k0s())}function ji(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",37),r.k0s())}function vi(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",52),r.k0s())}function Zt(lt,An){if(1<&&(r.j41(0,"div")(1,"div",28)(2,"div",29),r.DNE(3,Zi,2,0,"div",30)(4,Lr,2,0,"div",30)(5,Kr,2,0,"div",30)(6,Qt,2,0,"div",30)(7,di,2,0,"div",30)(8,ji,2,0,"div",30)(9,vi,2,0,"div",30),r.k0s()()()),2<){const St=An.$implicit,Ve=r.XpG(2);r.R7$(),r.Y8G("ngClass",St.value),r.R7$(2),r.Y8G("ngIf",Ve.shadowPlayEnabled&&Ve.visibility.Recording===St.key),r.R7$(),r.Y8G("ngIf",Ve.sdkGalleryEnabled&&Ve.visibility.IR===St.key),r.R7$(),r.Y8G("ngIf",Ve.sdkGalleryEnabled&&Ve.visibility.Highlights===St.key),r.R7$(),r.Y8G("ngIf",Ve.micEnabled&&Ve.visibility.Mic===St.key),r.R7$(),r.Y8G("ngIf",Ve.gfnMicEnabled&&Ve.visibility.GfnMic===St.key),r.R7$(),r.Y8G("ngIf",Ve.showConnectionStatus&&Ve.visibility.Network===St.key),r.R7$(),r.Y8G("ngIf",Ve.showPerfLogging&&Ve.visibility.PerfLogging===St.key)}}function Zn(lt,An){1<&&(r.j41(0,"div",31),r.nrm(1,"mat-icon",32),r.k0s())}function Dn(lt,An){if(1<&&(r.j41(0,"div")(1,"div",38),r.DNE(2,Zn,2,0,"div",30),r.k0s()()),2<){const St=An.$implicit,Ve=r.XpG(2);r.R7$(),r.Y8G("ngClass",St.value)("ngStyle",r.l_i(3,Xn,Ve.statsOffset,Ve.statsOffset)),r.R7$(),r.Y8G("ngIf",Ve.isPerfOverlaySupported&&Ve.visibility.Performance===St.key)}}function zn(lt,An){if(1<&&(r.j41(0,"div",40)(1,"div",41),r.nrm(2,"mat-icon",32),r.k0s()()),2<){const St=r.XpG(3);r.Y8G("ngClass",r.l_i(1,rn,St.statSize===St.statsSizes[0],St.statSize===St.statsSizes[1]))}}function Ti(lt,An){if(1<&&(r.j41(0,"div")(1,"div",38),r.DNE(2,zn,3,4,"div",39),r.k0s()()),2<){const St=An.$implicit,Ve=r.XpG(2);r.R7$(),r.Y8G("ngClass",St.value)("ngStyle",r.l_i(3,Xn,Ve.statsOffset,Ve.statsOffset)),r.R7$(),r.Y8G("ngIf",Ve.showStats&&Ve.visibility.Statistics===St.key)}}function Xt(lt,An){if(1<&&(r.qex(0),r.j41(1,"div",50),r.nrm(2,"div",14),r.j41(3,"div",51),r.EFF(4),r.nI1(5,"translate"),r.k0s(),r.j41(6,"div",26),r.DNE(7,Zt,10,8,"div",27),r.nI1(8,"keyvalue"),r.DNE(9,Dn,3,6,"div",27),r.nI1(10,"keyvalue"),r.DNE(11,Ti,3,6,"div",27),r.nI1(12,"keyvalue"),r.k0s(),r.nrm(13,"div",14),r.k0s(),r.bVm()),2<){const St=r.XpG();r.R7$(4),r.SpI(" ",r.bMT(5,4,"settings.Preview")," "),r.R7$(3),r.Y8G("ngForOf",r.bMT(8,6,St.quadrants)),r.R7$(2),r.Y8G("ngForOf",r.bMT(10,8,St.quadrants)),r.R7$(2),r.Y8G("ngForOf",r.bMT(12,10,St.statsQuadrants))}}let mi=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao){super(hn,hi,le),this.injector=Ve,this.loggingService=qe,this.osdService=sr,this.featureSupportService=Nn,this.telemetryService=So,this.oscDisplayService=Mo,this.hotkeyService=Ao,this.showStats=!1,this.showConnectionStatus=!1,this.quadrants={},this.rotaryOptionsGFN=["settings.UpperRight","settings.LowerRight","settings.LowerLeft","settings.UpperLeft","settings.None"],this.rotaryOptionsNvApp=["settings.UpperRight","settings.CenterRight","settings.LowerRight","settings.LowerCenter","settings.LowerLeft","settings.CenterLeft","settings.UpperLeft","settings.UpperCenter","settings.None"],this.rotaryStatsOptions=["settings.UpperRight","settings.LowerRight","settings.LowerLeft","settings.UpperLeft"],this.layoutRotaryOptions=["perfmon.linear","perfmon.double","perfmon.stacked"],this.visibilityRotaryOptions=["settings.gameplay.Standard","settings.gameplay.Enhanced"],this.rotarySizeOptions=["settings.Small","settings.Medium","settings.Large"],this.rotarySizeSpOptions=[ee.Or.Share.Shareserver.OverlaySizeEnum.small,ee.Or.Share.Shareserver.OverlaySizeEnum.medium,ee.Or.Share.Shareserver.OverlaySizeEnum.large],this.fontSizeRotaryOptions=["perfmon.standard","perfmon.large"],this.fontColorRotaryOptions=["perfmon.white","perfmon.red","perfmon.green","perfmon.blue","perfmon.black","perfmon.custom"],this.visibility={Recording:v.VHt.none,IR:v.VHt.none,Highlights:v.VHt.none,Mic:v.VHt.none,ViewerCount:v.VHt.none,Comments:v.VHt.none,GfnMic:v.VHt.none,Statistics:v.VHt.none,Network:v.VHt.none,Performance:v.VHt.none,PerfLogging:v.VHt.none},this.active={Recording:!0,IR:!0,Highlights:!0,Mic:!0,ViewerCount:!1,Comments:!1,GfnMic:!0,Statistics:!1,StatsSize:!1,Network:!1,Performance:!0,PerfLogging:!0},this.quadrantsGFN={rightTop:"hud-topright",rightBottom:"hud-bottomright",leftBottom:"hud-bottomleft",leftTop:"hud-topleft"},this.quadrantsNvApp={rightTop:"hud-topright",rightCenter:"hud-centerright",rightBottom:"hud-bottomright",centerBottom:"hud-bottomcenter",leftBottom:"hud-bottomleft",leftCenter:"hud-centerleft",leftTop:"hud-topleft",centerTop:"hud-topcenter"},this.statsQuadrants={rightTop:"stats-topright",rightBottom:"stats-bottomright",leftBottom:"stats-bottomleft",leftTop:"stats-topleft"},this.rotaryInit={Recording:0,IR:0,Highlights:0,Mic:0,ViewerCount:0,Comments:0,GfnMic:0,Statistics:0,StatsSize:0,Network:0,Performance:0,PerfLogging:0,PerfFontSize:0,PerfFontColor:0},this.initRotaryPosition={Recording:v.VHt.none,IR:v.VHt.none,Highlights:v.VHt.none,Mic:v.VHt.none,ViewerCount:v.VHt.none,Comments:v.VHt.none,BrowserMic:v.VHt.none,Statistics:v.VHt.none,StatsSize:v.VHt.none,Network:v.VHt.none},this.positionGFN=[v.VHt.rightTop,v.VHt.rightBottom,v.VHt.leftBottom,v.VHt.leftTop,v.VHt.none],this.positionNvApp=[v.VHt.rightTop,v.VHt.rightCenter,v.VHt.rightBottom,v.VHt.centerBottom,v.VHt.leftBottom,v.VHt.leftCenter,v.VHt.leftTop,v.VHt.centerTop,v.VHt.none],this.size=[v.hc_.small,v.hc_.medium,v.hc_.large],this.indicators=v.lb6,this.shadowPlayEnabled=!1,this.sdkGalleryEnabled=!1,this.micEnabled=!1,this.gfnMicEnabled=!1,this.statisticsEnabled=!1,this.showPerfLogging=!1,this.connectionStatusEnabled=!1,this.isPerfOverlaySupported=!1,this.widgetsChanged=!1,this.statsSizes=[v.QYS.compact,v.QYS.standard],this.statSize=v.QYS.compact,this.statsOffset=5,this.statsChanged=!1,this.initNetworkOverlay={position:v.VHt.none,size:v.QYS.compact},this.previewTitle="",this.isNvApp=!1,this.performancePosition={x:void 0,y:void 0},this.toggleVisibilityHotkeyParam={},this.performanceBackgroundOpacity=v.Azv,this.performanceFontSize=v.NXI,this.performanceFontColor=v.XBk,this.performanceCustomFontColor=v.eCB,super.bar("settings.HeadsUpDisplay"),this.featureSupportService.isPerfOverlayEnabled()?(this.perfMonService=this.injector.get(v.zET),this.isPerfOverlaySupported=!0):this.featureSupportService.isStatisticsEnabled()&&(this.statisticsService=this.injector.get(v.rJX),this.statisticsEnabled=!0),this.logger=this.loggingService.getLogger("HUD"),this.sdkGalleryEnabled=this.featureSupportService.isSdkGalleryEnabled(),this.shadowPlayEnabled=this.featureSupportService.isShadowPlayEnabled(),this.micEnabled=this.featureSupportService.isMicrophoneEnabled(),this.showPerfLogging=this.featureSupportService.showPerfLogging(),this.connectionStatusEnabled=this.featureSupportService.isConnectionStatusEnabled(),this.tvMode=this.featureSupportService.isGamepadOrientedMode(),this.isNvApp=this.featureSupportService.isGFEMode(),this.position=this.positionGFN,this.positionPerformance=this.positionNvApp,this.rotaryOptions=this.rotaryOptionsGFN,this.rotaryOptionsPerformance=this.rotaryOptionsNvApp.filter(Wo=>"settings.None"!==Wo),this.quadrants=this.isNvApp?this.quadrantsNvApp:this.quadrantsGFN,this.previewTitle=this.isNvApp?"settings.Preview":"settings.Layout",this.cornerNotInUseOffset=this.isNvApp?0:8,this.logger.info("Constructor")}onBackClicked(){this.oscDisplayService.openOSC(this.route.snapshot.params?.caller||"sidebar/settings/settings")}ngOnInit(){super.ngOnInit(),this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,S.Q)(this.destroy$),(0,Y.s)(1)).subscribe(Ve=>{this.gfnMicEnabled=Ve}),this.showStats=this.statisticsEnabled,this.active.Statistics=this.statisticsEnabled,this.active.StatsSize=this.statisticsEnabled,this.showConnectionStatus=this.connectionStatusEnabled,this.active.Network=this.connectionStatusEnabled,this.featureSupportService.isPerfOverlayEnabled()&&(this.performanceLayout=this.perfMonService?.getActiveLayout(),this.performanceVisibilityMode=this.perfMonService?.getVisibilityMode(),this.performanceBackgroundOpacity=this.perfMonService?.getOverlayBackgroundOpacity(),this.performanceFontSize=this.perfMonService?.getOverlayFontSize(),this.performanceFontColor=this.perfMonService?.getOverlayFontColor(),this.performanceCustomFontColor=this.perfMonService?.getOverlayCustomFontColor(),this.perfMonService?.checkPerformancePositionCoordinates(),this.hotkeyService.getHotkeyString(v.g8X.PMOCOverlayVisibility).subscribe(Ve=>{this.toggleVisibilityHotkeyParam={hotkey:Ve}}),this.logger.info("performanceVisibilityMode:",this.performanceVisibilityMode)),Object.keys(v.lb6).forEach(Ve=>{if(this.active[Ve]){const qe=v.lb6[Ve],hn=this.osdService.getPosition(qe),hi=Ve===v.lb6.Performance?this.positionPerformance.findIndex(sr=>sr===hn):this.position.findIndex(sr=>sr===hn);this.logger.info("key: "+Ve+" type: "+qe+" pos: "+hn+" index: "+hi),-1!==hi?(this.rotaryInit[Ve]=hi,this.visibility[Ve]=hn,this.initRotaryPosition[Ve]=hn,Ve===v.lb6.Statistics&&(this.initNetworkOverlay.position=hn,this.anyWidgetsInCorner())):("StatsSize"===Ve&&this.showStats?(this.visibility[Ve]=this.visibility[v.lb6.Statistics],this.statSize=this.osdService.getStatsSize(),this.rotaryInit[Ve]=this.statsSizes.findIndex(sr=>sr===this.statSize),this.initNetworkOverlay.size=this.statSize):(this.visibility[Ve]=v.VHt.none,this.rotaryInit[Ve]=this.position.findIndex(sr=>sr===v.VHt.none),this.logger.error("unsupported position: ",hn)),this.initRotaryPosition[Ve]=this.visibility[Ve])}Ve===v.lb6.Performance&&(this.performancePosition=this.perfMonService?.getPerfOverlayAbsolutePosition(),this.anyWidgetsInCorner())}),this.statisticsService?.statisticsHotkeyPressed().pipe((0,S.Q)(this.destroy$)).subscribe(()=>{this.visibility.StatsSize=this.visibility[v.lb6.Statistics],this.statSize=this.osdService.getStatsSize(),this.rotaryInit.StatsSize=this.statsSizes.findIndex(Ve=>Ve===this.statSize),this.initNetworkOverlay.size=this.statSize})}perfMonLayoutRotaryChanged(Ve){this.logger.info("perfMonLayoutRotaryChanged:",Ve),this.performanceLayout=Ve,this.perfMonService?.setActiveLayout(Ve)}perfMonVisibilityRotaryChanged(Ve){this.logger.info("perfMonVisibilityRotaryChanged:",Ve),this.performanceVisibilityMode=Ve,this.perfMonService?.setVisibilityMode(Ve)}perfMonBackgroundOpacitySliderChanged(Ve){this.logger.info("perfMonBackgroundOpacitySliderChanged:",Ve/100),this.perfMonService?.setOverlayBackgroundOpacity(Ve)}perfMonFontSizeRotaryChanged(Ve){this.logger.info("perfMonFontSizeRotaryChanged:",Ve),this.perfMonService?.setOverlayFontSize(Ve)}perfMonFontColorRotaryChanged(Ve){this.logger.info("perfMonFontColorRotaryChanged:",Ve),this.performanceFontColor=Ve,this.perfMonService?.setOverlayFontColor(Ve)}perfMonCustomFontColorChanged(Ve){if(this.logger.info("perfMonCustomFontColorChanged:",Ve),this.perfMonService.validateCustomFontColorInput(Ve))this.performanceCustomFontColor=Ve,this.perfMonService?.setOverlayCustomFontColor(Ve);else{this.logger.error("Invalid custom color input : ",Ve);const qe=this.perfMonService?.getOverlayCustomFontColor();this.performanceCustomFontColor=qe}}showCustomColorSection(){return 5===this.performanceFontColor}ngOnDestroy(){this.processHudTelemetry(),super.ngOnDestroy()}anyWidgetsInCorner(){let Ve;Ve=this.isNvApp?this.visibility[v.lb6.Performance]:this.visibility[v.lb6.Statistics];let qe=!1;Ve===v.VHt.none?qe=!1:(this.visibility[v.lb6.Recording]===Ve||this.visibility[v.lb6.IR]===Ve||this.visibility[v.lb6.Highlights]===Ve||this.visibility[this.gfnMicEnabled?v.lb6.GfnMic:v.lb6.Mic]===Ve||this.visibility[v.lb6.Network]===Ve||this.visibility[v.lb6.PerfLogging]===Ve)&&(qe=!0),this.statsOffset=qe?this.tvMode?66:40:this.cornerNotInUseOffset}rotaryChanged(Ve,qe,hn=!1){this.logger.info("Rotary changed: ",Ve,this.rotaryOptions[qe],hn);const hi=Ve===v.lb6.Performance?this.positionPerformance[qe]:this.position[qe];this.osdService.setPosition(Ve,hi),this.visibility[Ve]=hi,Ve===v.lb6.Statistics?(this.statisticsService?.statisticsLayoutChanged(),this.statsChanged=!0):Ve===v.lb6.Performance?hn||(this.perfMonService?.setIsPerfOverlayEnabled(hi!==v.VHt.none),this.perfMonService?.updatePerformancePositionCoordinates(hi,this.performancePosition),this.perfMonService?.setPerfOverlayAbsolutePosition(this.performancePosition,!0)):this.widgetsChanged=!0,this.osdService.saveOverlaySettings(hn).subscribe(),this.anyWidgetsInCorner()}performanceHorizontalSliderChanged(Ve){this.logger.info("performanceHorizontalSliderChanged",this.performancePosition,Ve);const qe=this.performancePosition.x;if(qe===Ve)return;const hi=this.osdService.getPosition(v.lb6.Performance);let sr;if(this.logger.info("oldValue",qe),this.logger.info("oldQuadrant",hi),50!==Ve||-1===hi.indexOf("Center")){if(50===qe?Ve>50?sr=hi.replace("center","right"):Ve<50&&(sr=hi.replace("center","left")):qe<50?Ve>50?sr=hi.replace("left","right"):50===Ve&&(sr=hi.replace("left","center")):qe>50&&(Ve<50?sr=hi.replace("right","left"):50===Ve&&(sr=hi.replace("right","center"))),sr){const le=this.positionPerformance.findIndex(Nn=>sr===Nn);this.rotaryInit.Performance=le,this.rotaryChanged(v.lb6.Performance,le,!0)}this.performancePosition.x=Ve,this.perfMonService?.setPerfOverlayAbsolutePosition(this.performancePosition)}}performanceVerticalSliderChanged(Ve){this.logger.info("performanceVerticalSliderChanged",this.performancePosition,Ve);const qe=this.performancePosition.y;if(qe===Ve)return;const hi=this.osdService.getPosition(v.lb6.Performance);let sr;if(this.logger.info("oldValue",qe),this.logger.info("oldQuadrant",hi),50!==Ve||-1===hi.indexOf("center")){if(50===qe?Ve>50?sr=hi.replace("Center","Bottom"):Ve<50&&(sr=hi.replace("Center","Top")):qe<50?Ve>50?sr=hi.replace("Top","Bottom"):50===Ve&&(sr=hi.replace("Top","Center")):qe>=50&&(Ve<50?sr=hi.replace("Bottom","Top"):50===Ve&&(sr=hi.replace("Bottom","Center"))),sr){const le=this.positionPerformance.findIndex(Nn=>sr===Nn);this.rotaryInit.Performance=le,this.rotaryChanged(v.lb6.Performance,le,!0)}this.performancePosition.y=Ve,this.perfMonService?.setPerfOverlayAbsolutePosition(this.performancePosition)}}sanitizePositionCoordinate(Ve){return Ve<0?Ve=0:Ve>100&&(Ve=100),Ve}processHudTelemetry(){if(this.statsChanged){const Ve=this.osdService.getStatsSize(),qe=this.osdService.getPosition(v.lb6.Statistics);if(this.initNetworkOverlay.position!==qe||this.initNetworkOverlay.size!==Ve){const hi=this.statisticsService?.getStatsState()!==v.BKk.Off;this.telemetryService.sendStatsViewChanged(hi,Ve,qe)}}if(this.widgetsChanged){this.initRotaryPosition[v.lb6.Network]!==this.visibility[v.lb6.Network]&&this.telemetryService.sendWidgetViewChanged(v.lb6.Network,this.visibility[v.lb6.Network]),this.initRotaryPosition[v.lb6.IR]!==this.visibility[v.lb6.IR]&&this.telemetryService.sendWidgetViewChanged(v.lb6.IR,this.visibility[v.lb6.IR]),this.initRotaryPosition[v.lb6.Recording]!==this.visibility[v.lb6.Recording]&&this.telemetryService.sendWidgetViewChanged(v.lb6.Recording,this.visibility[v.lb6.Recording]),this.initRotaryPosition[v.lb6.Highlights]!==this.visibility[v.lb6.Highlights]&&this.telemetryService.sendWidgetViewChanged(v.lb6.Highlights,this.visibility[v.lb6.Highlights]);const Ve=this.gfnMicEnabled?v.lb6.GfnMic:v.lb6.Mic;this.initRotaryPosition[Ve]!==this.visibility[Ve]&&this.telemetryService.sendWidgetViewChanged(Ve,this.visibility[Ve])}}getCustomFontColorText(){return this.perfMonService?.getOverlayCustomFontColor()}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(r.zZn),r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.auo),r.rXU(v.gZv),r.rXU(v.Rvq),r.rXU(v.xRl),r.rXU(v.Bqk),r.rXU(v.QSC))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-hud"]],features:[r.Vt3],decls:16,vars:18,consts:[["fxLayout","column","fxFlex",""],["fxFlex","grow"],["fxLayout","column",4,"ngIf"],[3,"side-padding",4,"ngIf"],[1,"font-color-tertiary","gfn-section-head-padding",3,"ngClass"],[4,"ngIf"],["title","settings.Microphone",3,"input","initialState","selectionChanged",4,"ngIf"],["title","settings.PerfLogging",3,"input","initialState","selectionChanged",4,"ngIf"],[3,"rotary-side-padding",4,"ngIf"],["fxLayout","column"],[1,"font-sub2","font-color-tertiary","section-lable-padding","side-padding"],["title","perfmon.performanceOverlay",3,"selectionChanged","input","initialState"],[1,"font-body1","nvapp-slider-header-padding","side-padding"],["valueEntry","true",1,"slider-side-padding",3,"input","min","max","step","tickInterval","value"],[1,"nv-gap-16"],[1,"font-body2","font-color-tertiary","margin-gap"],["title","settings.Layout",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],[1,"font-body2","font-color-tertiary"],["title","perfmon.fontSize",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],["title","perfmon.fontColor",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],["class","font-body1 font-color-tertiary margin-gap","fxflex","column",4,"ngIf"],["fxflex","column",1,"font-body1","font-color-tertiary","margin-gap"],["fxflex","column",1,"input-side-padding"],[1,"font-body1","nvapp-slider-header-padding","custom-color-input"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","auto",3,"textChange","readonly","textMaxLength","text","isColorCode","defaultColorCode"],[1,"gfn-section-head-padding",3,"ngClass"],[1,"hud-window"],[4,"ngFor","ngForOf"],["fxLayout","column",3,"ngClass"],["fxLayout","column","fxFlex","none"],["class","hud-icons","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"hud-icons"],["svgIcon","analytics"],["svgIcon","record"],["svgIcon","replay"],["svgIcon","highlights"],["svgIcon","mic"],["svgIcon","network_signal"],["fxFlex","none",3,"ngClass","ngStyle"],["fxLayout","row","fxLayoutAlign","center center",3,"ngClass",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",3,"ngClass"],["fxLayoutAlign","center center",1,"hud-icons"],["title","settings.Record",3,"selectionChanged","input","initialState"],["title","settings.InstantReplay",3,"selectionChanged","input","initialState"],["title","commonLabels.Highlights",3,"selectionChanged","input","initialState"],["title","settings.Microphone",3,"selectionChanged","input","initialState"],["title","settings.PerfLogging",3,"selectionChanged","input","initialState"],[1,"font-color-tertiary","nv-label",3,"ngClass"],["title","settings.ConnectionStatus",3,"selectionChanged","input","initialState"],["title","settings.stats.Position",3,"selectionChanged","input","initialState"],[1,"side-padding"],[1,"font-sub2","font-color-tertiary","section-lable-padding"],["svgIcon","text_snippet"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0)(1,"div",1),r.DNE(2,ri,31,38,"div",2)(3,mt,10,16,"div",3),r.j41(4,"div",4),r.EFF(5),r.nI1(6,"translate"),r.k0s(),r.DNE(7,_n,3,4,"ng-container",5)(8,wt,4,6,"ng-container",5),r.j41(9,"div"),r.DNE(10,Un,1,2,"nv-rotary",6)(11,Oi,1,2,"nv-rotary",6)(12,At,1,2,"nv-rotary",7),r.k0s(),r.DNE(13,Hn,6,12,"div",8)(14,pi,6,12,"div",8)(15,Xt,14,12,"ng-container",5),r.k0s()()),2&Ve&&(r.R7$(2),r.Y8G("ngIf",qe.isNvApp),r.R7$(),r.Y8G("ngIf",!qe.isNvApp),r.R7$(),r.AVh("side-padding",!qe.tvMode),r.Y8G("ngClass",qe.tvMode?"font-body3 nv-label":"font-sub2"),r.R7$(),r.SpI(" ",r.bMT(6,16,"settings.StatusIndicators")," "),r.R7$(2),r.Y8G("ngIf",qe.shadowPlayEnabled),r.R7$(),r.Y8G("ngIf",qe.sdkGalleryEnabled),r.R7$(),r.AVh("rotary-side-padding",!qe.tvMode),r.R7$(),r.Y8G("ngIf",qe.micEnabled),r.R7$(),r.Y8G("ngIf",qe.gfnMicEnabled),r.R7$(),r.Y8G("ngIf",qe.showPerfLogging),r.R7$(),r.Y8G("ngIf",qe.showConnectionStatus),r.R7$(),r.Y8G("ngIf",qe.showStats),r.R7$(),r.Y8G("ngIf",qe.isNvApp))},dependencies:[n.YU,n.Sq,n.bT,n.B3,a.$,dt.X,nn.Q,g.DJ,g.sA,g.UI,Re.PW,Re.eI,z.An,yn.t,n.lG,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.hud-window[_ngcontent-%COMP%]{position:relative;height:264px;width:100%;background-color:#393939}.hud-icons[_ngcontent-%COMP%]{width:24px;height:24px;background-color:#000000b3}.hud-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:14px;height:14px;font-size:14px;color:#fff}.hud-topleft[_ngcontent-%COMP%]{left:0;top:0;position:absolute;transform-origin:left top}.hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.hud-topright[_ngcontent-%COMP%]{right:0;top:0;position:absolute;transform-origin:right top}.hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-topcenter[_ngcontent-%COMP%]{right:50%;top:0;position:absolute;transform-origin:center top}.hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-topcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-centerright[_ngcontent-%COMP%]{right:0;top:50%;position:absolute;transform:translateY(-50%);transform-origin:right center}.hud-centerright[_ngcontent-%COMP%] .first[_ngcontent-%COMP%]{margin-top:0}.hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-centerright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-centerleft[_ngcontent-%COMP%]{left:0;top:50%;position:absolute;transform:translateY(-50%);transform-origin:left center}.hud-centerleft[_ngcontent-%COMP%] .first[_ngcontent-%COMP%]{margin-top:0}.hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:8px}.isLtr[_nghost-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-centerleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.gfn-section-head-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.hud-bottomleft[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute;flex-direction:column-reverse!important;transform-origin:left bottom}.hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:8px}.isLtr[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.hud-bottomright[_ngcontent-%COMP%]{right:0;bottom:0;position:absolute;flex-direction:column-reverse!important;transform-origin:right bottom}.hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:8px}.isLtr[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-bottomcenter[_ngcontent-%COMP%]{right:50%;bottom:0;position:absolute;flex-direction:column-reverse!important;transform:translate(50%);transform-origin:center bottom}.hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:8px}.isLtr[_nghost-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hud-bottomcenter[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hud-bottomright[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .hud-bottomleft[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .hud-bottomcenter[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column-reverse!important}[_nghost-%COMP%]{padding:16px 0;overflow-y:scroll}.nvapp-slider-header-padding[_ngcontent-%COMP%], .section-lable-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.stats-small[_ngcontent-%COMP%]{width:49px;height:24px;background-color:#000}.stats-large[_ngcontent-%COMP%]{width:49px;height:88px;background-color:#000}.layout-text-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%]{color:#ffffffd9}.stats-topleft[_ngcontent-%COMP%]{left:0;top:0;padding-top:8px;position:absolute;transform-origin:left top}.stats-topright[_ngcontent-%COMP%]{right:0;top:0;padding-top:8px;position:absolute;transform-origin:right top}.stats-bottomleft[_ngcontent-%COMP%]{left:0;bottom:0;padding-bottom:8px;position:absolute;flex-direction:column-reverse!important;transform-origin:left bottom}.stats-bottomright[_ngcontent-%COMP%]{right:0;bottom:0;padding-bottom:8px;position:absolute;flex-direction:column-reverse!important;transform-origin:right bottom}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:24px}.tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft.tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] .layout-text-font[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] .hud-window[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-window[_ngcontent-%COMP%]{height:358px}.tv-view[_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%]{width:48px;height:48px}.tv-view[_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.tv-view[_nghost-%COMP%] .stats-small[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-small[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .stats-large[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-large[_ngcontent-%COMP%]{height:48px;width:88px}.tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:12px}.isLtr.tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:12px}html[dir=ltr] .tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:12px}.isRtl.tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:12px}html[dir=rtl] .tv-view[_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:12px}.tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-top:12px}.isLtr.tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:12px}html[dir=ltr] .tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:12px}.isRtl.tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:12px}html[dir=rtl] .tv-view[_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-topright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:12px}.tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:12px}.isLtr.tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:12px}html[dir=ltr] .tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:12px}.isRtl.tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:12px}html[dir=rtl] .tv-view[_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomleft[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:12px}.tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-bottom:12px}.isLtr.tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-right:12px}html[dir=ltr] .tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:12px}.isRtl.tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{margin-left:12px}html[dir=rtl] .tv-view[_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hud-bottomright[_ngcontent-%COMP%] .hud-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:12px}.tv-view[_nghost-%COMP%] .stats-topleft[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-topleft[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .stats-topright[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-topright[_ngcontent-%COMP%]{padding-top:12px}.tv-view[_nghost-%COMP%] .stats-bottomleft[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-bottomleft[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .stats-bottomright[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .stats-bottomright[_ngcontent-%COMP%]{padding-bottom:12px}.tv-view[_nghost-%COMP%] .gfn-section-head-padding[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .gfn-section-head-padding[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.margin-gap[_ngcontent-%COMP%]{margin-top:15px}.visibility-subtitle[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:15px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}.isLtr[_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .slider-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.custom-color-input[_ngcontent-%COMP%]{width:317px;height:24px;color:#fff}.isLtr[_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .input-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .input-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .input-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .input-side-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .input-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}"]}),An})();var $n=d(19724);function Pt(lt,An){1<&&r.nrm(0,"div",8)}function Ii(lt,An){1<&&(r.j41(0,"div",9),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"settings.NotificationsEnable")," "))}function ar(lt,An){1<&&(r.j41(0,"div",9),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"settings.NotificationsEnableNvApp")," "))}function Jt(lt,An){if(1<&&(r.qex(0),r.DNE(1,Pt,1,0,"div",6)(2,Ii,3,3,"div",7)(3,ar,3,3,"div",7),r.bVm()),2<){const St=r.XpG();r.R7$(),r.Y8G("ngIf",St.tvMode),r.R7$(),r.Y8G("ngIf",!St.isNvApp),r.R7$(),r.Y8G("ngIf",St.isNvApp)}}function ki(lt,An){1<&&(r.j41(0,"div",9),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"settings.NotificationsDisable")," "))}function Fr(lt,An){1<&&r.nrm(0,"div",16)}function xo(lt,An){if(1<&&(r.j41(0,"div",17),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG(2).$implicit,Ve=r.XpG(2);r.AVh("font-color-tertiary",Ve.tvMode)("font-body3",Ve.tvMode)("font-body2",!Ve.tvMode),r.R7$(),r.SpI(" ",r.bMT(2,7,St.header)," ")}}function qn(lt,An){if(1<){const St=r.RV6();r.j41(0,"div")(1,"mat-checkbox",18),r.mxI("ngModelChange",function(qe){r.eBV(St);const hn=r.XpG(2).$implicit;return r.DH7(hn.state,qe)||(hn.state=qe),r.Njj(qe)}),r.bIt("change",function(){r.eBV(St);const qe=r.XpG(2).index,hn=r.XpG(2);return r.Njj(hn.onStateChanged(qe))}),r.EFF(2),r.nI1(3,"translate"),r.k0s()()}if(2<){const St=r.XpG(2).$implicit,Ve=r.XpG(2);r.R7$(),r.AVh("igo-notification-mat",Ve.isNvApp&&!Ve.tvMode),r.R50("ngModel",St.state),r.R7$(),r.JRh(r.bMT(3,4,St.text))}}function Sr(lt,An){if(1<&&(r.qex(0),r.DNE(1,Fr,1,0,"div",14)(2,xo,3,9,"div",15)(3,qn,4,6,"div",13),r.bVm()),2<){const St=r.XpG(),Ve=St.$implicit,qe=St.index,hn=r.XpG(2);r.R7$(),r.Y8G("ngIf",Ve.header&&qe>0&&hn.tvMode),r.R7$(),r.Y8G("ngIf",Ve.header),r.R7$(),r.Y8G("ngIf",Ve.text)}}function ni(lt,An){if(1<&&(r.j41(0,"div"),r.DNE(1,Sr,4,3,"ng-container",13),r.k0s()),2<){const St=An.$implicit;r.R7$(),r.Y8G("ngIf",St.enable)}}function he(lt,An){if(1<&&(r.DNE(0,ki,3,3,"div",7),r.nrm(1,"nv-divider",10),r.j41(2,"div",11),r.DNE(3,ni,2,1,"div",12),r.k0s()),2<){const St=r.XpG();r.Y8G("ngIf",St.isNvApp),r.R7$(3),r.Y8G("ngForOf",St.notifications)}}let Ee=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao){super(qe,hn,sr,null,Ao),this.loggingService=Ve,this.notificationService=hi,this.featureSupportService=Nn,this.telemetryService=So,this.telemetryIgoService=Mo,this.notificationSettingChanged=!1,this.initialState=void 0,this.showNotifications=void 0,this.notifications=[{header:"commonLabels.General",enable:!0},{control:v.Jkt.OpenOverlay,text:this.featureSupportService.isGuestAppFlowWrapper()?"settings.guestApp.IngameOverlayNoThe":"settings.IngameOverlayNoThe",state:this.initialState,enable:!0},{header:"settings.Network",enable:this.featureSupportService.isConnectionStatusEnabled()},{control:v.Jkt.ConnectionStatus,text:"settings.ConnectionStatus",state:this.initialState,enable:this.featureSupportService.isConnectionStatusEnabled()},{header:"gallery.Gallery",enable:this.featureSupportService.isSdkGalleryEnabled()},{control:v.Jkt.SaveHLToGallery,text:"notification.HighlightSaved",state:this.initialState,enable:this.featureSupportService.isSdkGalleryEnabled()},{control:v.Jkt.SaveMRToGallery,text:"notification.ManualRecordStopped",state:this.initialState,enable:this.featureSupportService.isSdkGalleryEnabled()},{control:v.Jkt.SaveIRToGallery,text:"notification.InstantReplaySaved",state:this.initialState,enable:this.featureSupportService.isSdkGalleryEnabled()},{control:v.Jkt.SaveSSToGallery,text:"notification.ScreenshotSaved",state:this.initialState,enable:this.featureSupportService.isSdkGalleryEnabled()},{header:"settings.RecordAndIR",enable:this.featureSupportService.isShadowPlayEnabled()},{control:v.Jkt.IROnOff,text:"settings.IRStatus",state:this.initialState,enable:this.featureSupportService.isShadowPlayEnabled()},{control:v.Jkt.MROn,text:"settings.MRStatus",state:this.initialState,enable:this.featureSupportService.isShadowPlayEnabled()},{header:"settings.HDR",enable:this.featureSupportService.isGFEMode()&&this.featureSupportService.isShadowPlayEnabled()},{control:v.Jkt.HighlightHDRError,text:"settings.HDRHighlight",state:this.initialState,enable:this.featureSupportService.isGFEMode()&&this.featureSupportService.isShadowPlayEnabled()},{control:v.Jkt.RecordHDRError,text:"settings.HDRRecord",state:this.initialState,enable:this.featureSupportService.isGFEMode()&&this.featureSupportService.isShadowPlayEnabled()},{control:v.Jkt.ScreenshotHDRError,text:"settings.HDRScreenshot",state:this.initialState,enable:this.featureSupportService.isGFEMode()&&this.featureSupportService.isShadowPlayEnabled()}],this.sdkGalleryEnable=!1,this.shadowplayEnable=!1,this.tvMode=!1,this.isNvApp=!1,super.bar("settings.Notifications"),this.logger=this.loggingService.getLogger("Notifications"),this.sdkGalleryEnable=this.featureSupportService.isSdkGalleryEnabled(),this.shadowplayEnable=this.featureSupportService.isShadowPlayEnabled(),this.init(),this.isNvApp=this.featureSupportService.isNvApp(),this.notifications=this.notifications.filter(Wo=>!Wo.productFilter||Wo.productFilter===le.branding)}ngOnDestroy(){this.isNvApp&&this.notificationSettingChanged?this.sendNotificationSettingsChangeTelemetry():this.logger.info("Notification settings telemetry will not be sent")}init(){let Ve=[];Ve=this.notificationService.getNotificationControls(),this.notifications.forEach(qe=>{if(qe.control){const hn=Ve.find(hi=>hi.control===qe.control);hn&&(qe.state=hn.enable)}}),this.showNotifications=this.notificationService.getGlobalToggle(),this.gfnInfoService.settingsService?.networkWarningsEnabled$.pipe((0,S.Q)(this.destroy$)).subscribe(qe=>{this.logger.info("Connection Status Indicator is: "+(qe?"On":"Off"));const hn=this.notifications.find(hi=>hi.control===v.Jkt.ConnectionStatus);hn&&(hn.state=qe)}),this.tvMode=this.featureSupportService.isTVMode()}onStateChanged(Ve){this.notificationSettingChanged=!0;const qe=this.notifications[Ve].state,hn=this.notifications[Ve].control;this.logger.info("Notification Control Changed, Index: "+Ve+" State: "+qe),hn===v.Jkt.ConnectionStatus&&this.gfnInfoService.settingsService?.setNetworkWarningsEnabled(qe),this.notificationService.setNotificationControl(hn,qe),this.telemetryService.sendNotificationChanged(hn,qe)}notificationsToggleEvent(Ve){this.notificationSettingChanged=!0,this.notificationService.setGlobalToggle(Ve.checked),this.telemetryService.sendNotificationChanged(v.Jkt.Empty,Ve.checked)}sendNotificationSettingsChangeTelemetry(){const Ve=this.notificationService.getNotificationControls(),qe={showNotifications:$n.T8.FALSE,openIGO:$n.T8.FALSE,savedHL:$n.T8.FALSE,savedMR:$n.T8.FALSE,savedIR:$n.T8.FALSE,savedSS:$n.T8.FALSE,irOnOff:$n.T8.FALSE,mrStarted:$n.T8.FALSE,hdrHighlight:$n.T8.FALSE,hdrRecord:$n.T8.FALSE,hdrScreenshot:$n.T8.FALSE};Ve.forEach(hn=>{switch(hn?.control){case v.Jkt.IROnOff:qe.irOnOff=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.MROn:qe.mrStarted=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.OpenOverlay:qe.openIGO=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.SaveHLToGallery:qe.savedHL=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.SaveMRToGallery:qe.savedMR=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.SaveIRToGallery:qe.savedIR=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.SaveSSToGallery:qe.savedSS=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.HighlightHDRError:qe.hdrHighlight=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.RecordHDRError:qe.hdrRecord=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;case v.Jkt.ScreenshotHDRError:qe.hdrScreenshot=hn.enable?$n.T8.TRUE:$n.T8.FALSE;break;default:this.logger.info("Notification control missing ",hn?.control)}}),qe.showNotifications=this.notificationService.getGlobalToggle()?$n.T8.TRUE:$n.T8.FALSE,this.telemetryIgoService.sendNotificationSettingsTelemetry(qe)}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.mbZ),r.rXU(v.gZv),r.rXU(v.k$F),r.rXU(v.Rvq),r.rXU(v.xRl),r.rXU(_e.S),r.rXU(v.x_y))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-notifications"]],features:[r.Vt3],decls:9,vars:8,consts:[["notificationson",""],["fxLayout","column","fxFlex","",1,"nv-hig"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","grow",1,"font-color-primary"],["fxFlex","none",1,"settings-padding",3,"ngModelChange","change","ngModel"],[4,"ngIf","ngIfElse"],["class","nv-gap-8",4,"ngIf"],["class","font-color-secondary notification-label",4,"ngIf"],[1,"nv-gap-8"],[1,"font-color-secondary","notification-label"],["marginNotReq","true"],["fxFlex","grow"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","nv-gap-16",4,"ngIf"],["class","notification-label",3,"font-color-tertiary","font-body3","font-body2",4,"ngIf"],[1,"nv-gap-16"],[1,"notification-label"],[1,"font-color-primary",3,"ngModelChange","change","ngModel"]],template:function(Ve,qe){if(1&Ve){const hn=r.RV6();r.j41(0,"div",1)(1,"div",2)(2,"div",3),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"mat-slide-toggle",4),r.mxI("ngModelChange",function(sr){return r.eBV(hn),r.DH7(qe.showNotifications,sr)||(qe.showNotifications=sr),r.Njj(sr)}),r.bIt("change",function(sr){return r.eBV(hn),r.Njj(qe.notificationsToggleEvent(sr))}),r.k0s()(),r.DNE(6,Jt,4,3,"ng-container",5)(7,he,4,2,"ng-template",null,0,r.C5r),r.k0s()}if(2&Ve){const hn=r.sdS(8);r.R7$(),r.AVh("toggle-height",!qe.tvMode),r.R7$(2),r.JRh(r.bMT(4,6,"settings.ShowNotifications")),r.R7$(2),r.R50("ngModel",qe.showNotifications),r.R7$(),r.Y8G("ngIf",!qe.showNotifications)("ngIfElse",hn)}},dependencies:[n.Sq,n.bT,a.$,g.DJ,g.sA,g.UI,re.BC,re.vS,Ze.P2,ge.NZ,oe.tG,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.notification-label[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.isLtr[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.toggle-height[_ngcontent-%COMP%]{padding-top:14px}[_nghost-%COMP%]{padding:16px}.font-color-primary[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .font-color-primary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-color-primary[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .font-color-primary[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .font-color-primary[_ngcontent-%COMP%]{color:#ffffffd9}.font-color-secondary.notification-label[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-color-secondary.notification-label[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] .font-color-secondary.notification-label[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .font-color-secondary.notification-label[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:32px}.tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] mat-checkbox.font-color-primary[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft.tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] div.font-color-secondary.notification-label[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] .toggle-height[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .toggle-height[_ngcontent-%COMP%]{height:40px}.tv-view[_nghost-%COMP%] .notification-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .notification-label[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}"]}),An})();var Pe=d(43615),Qe=d(75707),Be=d(8619),Mt=d(91384),Vt=d(26875);const Vn=["shortcutDiv"],si=["shortcutSpan"],Rn=lt=>({"shortcut-hover-selected":lt}),_i=(lt,An)=>({"shortcut-scroll":lt,"shortcut-noscroll":An});let wr=(()=>{var lt;class An{set shortcutString(Ve){Ve&&(this.scString=Ve,setTimeout(()=>{const qe=this.shortcutdiv.nativeElement.offsetWidth,hn=this.shortcutspan.nativeElement.offsetWidth;this.logger.info("Div Width: "+qe+" Span Width: ",+hn),this.enableScrolling=hn>qe}))}set deviceOS(Ve){this._deviceOS=Ve}constructor(Ve,qe){this.loggingService=Ve,this.featureSupportService=qe,this.dimmed=!1,this.selected=!1,this.id=void 0,this.shortcutData=new r.bkB,this.enableScrolling=!1,this.tvMode=!1,this.logger=this.loggingService.getLogger("NvShortcut"),this.destroy$=new O.B7,this.tvMode=this.featureSupportService.isTVMode()}ngOnInit(){this.comboKeyHelper=new m.Qv(this.loggingService,this._deviceOS,!!m.zk.isBrowserPlatform())}selectShortcut(){this.logger.info("Select shortcut: ",this.scString),this.comboKeyHelper.resetCurrentKeyCombo()}isShortcutSelected(){return this.selected}processKeyUpEvent(Ve){this.comboKeyHelper.isMetaKey(Ve)||this.comboKeyHelper.isEscapeKey(Ve)||this.comboKeyHelper.shouldIgnore(Ve)||this.comboKeyHelper.isKeyDownOnly||(this.comboKeyHelper.isDownSet?(this.comboKeyHelper.resetDownStatus(),this.comboKeyHelper.logEvent(Ve,!0),this.comboKeyHelper.loadKey(Ve),this.logger.info("CurrentKeyCombo: ",this.comboKeyHelper.loadedKeyCombo),this.shortcutData.emit(this.comboKeyHelper.loadedKeyCombo.slice()),this.selectShortcut()):this.comboKeyHelper.isResetKey(Ve)&&(this.logger.info("Resetting key"),this.comboKeyHelper.loadKey(Ve),this.shortcutData.emit(this.comboKeyHelper.loadedKeyCombo.slice()),this.selectShortcut()))}processKeyDownEvent(Ve){this.comboKeyHelper.setDown(),this.comboKeyHelper.processKeyDownEvent(Ve),this.comboKeyHelper.isKeyDownOnly&&this.comboKeyHelper.shortcutData.pipe((0,Y.s)(1)).subscribe(qe=>{const hn=this.getModifierKeys(qe);qe.length!==hn&&this.shortcutData.emit(this.rearrangeShortcutKeys(qe))})}rearrangeShortcutKeys(Ve=[]){let qe=[];return qe=Ve.sort((hn,hi)=>hn-hi),this.cmdKeyIsPresent(Ve)&&(qe=qe.slice(0,Ve.length-1),qe.unshift(m.SV.Cmd)),qe}cmdKeyIsPresent(Ve){return-1!==Ve.indexOf(m.SV.Cmd)}getModifierKeys(Ve){let qe=0;return Ve.forEach(hn=>{this.checkIfModifierKey(hn)&&qe++}),qe}checkIfModifierKey(Ve){let qe=!1;return m.$f.forEach(hn=>{hn===Ve&&(qe=!0)}),qe}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(v.Rvq))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["nv-shortcut"]],viewQuery:function(Ve,qe){if(1&Ve&&(r.GBs(Vn,7),r.GBs(si,7)),2&Ve){let hn;r.mGM(hn=r.lsd())&&(qe.shortcutdiv=hn.first),r.mGM(hn=r.lsd())&&(qe.shortcutspan=hn.first)}},inputs:{shortcutName:"shortcutName",shortcutNameParams:"shortcutNameParams",dimmed:"dimmed",shortcutString:"shortcutString",deviceOS:"deviceOS"},outputs:{shortcutData:"shortcutData"},decls:11,vars:17,consts:[["shortcutDiv",""],["shortcutSpan",""],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","16px"],["fxFlex","grow"],[1,"font-body1","font-color-primary"],["fxFlex","none","tabindex","0",1,"shortcut-box","shortcut-hover",3,"click","keydown","keyup","ngClass"],["fxLayoutAlign","start center",1,"shortcut-box-nested",3,"ngClass"],["fxLayoutAlign","start center",1,"font-body2",3,"ngClass"]],template:function(Ve,qe){if(1&Ve){const hn=r.RV6();r.j41(0,"div",2)(1,"div",3)(2,"span",4),r.EFF(3),r.nI1(4,"translate"),r.k0s()(),r.j41(5,"div",5),r.bIt("click",function(){return r.eBV(hn),r.Njj(qe.selectShortcut())})("keydown",function(sr){return r.eBV(hn),r.Njj(qe.processKeyDownEvent(sr))})("keyup",function(sr){return r.eBV(hn),r.Njj(qe.processKeyUpEvent(sr))}),r.j41(6,"div",6,0)(8,"span",7,1),r.EFF(10),r.k0s()()()()}2&Ve&&(r.AVh("list-padding",!qe.tvMode),r.R7$(3),r.JRh(r.i5U(4,9,qe.shortcutName,qe.shortcutNameParams)),r.R7$(2),r.Y8G("ngClass",r.eq3(12,Rn,qe.isShortcutSelected())),r.R7$(),r.Y8G("ngClass",r.l_i(14,_i,qe.enableScrolling,!qe.enableScrolling)),r.R7$(2),r.AVh("disabled-opacity",qe.dimmed),r.Y8G("ngClass",qe.tvMode?"font-color-secondary":"shortcut-keys-color"),r.R7$(2),r.JRh(qe.scString))},dependencies:[n.YU,g.DJ,g.BO,g.sA,g.UI,Re.PW,xe.D9],styles:[".shortcut-box[_ngcontent-%COMP%]{width:120px;height:40px;box-sizing:border-box;border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:1px;background:#393939}.shortcut-box[_ngcontent-%COMP%]:focus:not([disabled]){border-bottom:2px solid #76b900;padding-bottom:0;cursor:pointer}.shortcut-box[_ngcontent-%COMP%]:hover:not([disabled]){cursor:pointer}.shortcut-box-nested[_ngcontent-%COMP%]{margin-top:10px}.isLtr[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin-left:12px}html[dir=ltr][_ngcontent-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy3: 0;margin-left:12px}.isRtl[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin-right:12px}html[dir=rtl][_ngcontent-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy3: 0;margin-right:12px}.isLtr[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin-right:12px}html[dir=ltr][_ngcontent-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy4: 0;margin-right:12px}.isRtl[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin-left:12px}html[dir=rtl][_ngcontent-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy4: 0;margin-left:12px}.shortcut-noscroll[_ngcontent-%COMP%], .shortcut-scroll[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:96px;height:24px}.shortcut-scroll[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:0;left:0;white-space:nowrap;transform:translate(0);transition:1s}.list-padding[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.shortcut-scroll[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{transform:translate(calc(96px - 100%))}.shortcut-keys-color[_ngcontent-%COMP%]{color:#ffffffbf}.tv-view[_nghost-%COMP%] .shortcut-box[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-box[_ngcontent-%COMP%]{height:72px;width:140px;display:flex;justify-content:center}.tv-view[_nghost-%COMP%] .shortcut-noscroll[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-noscroll[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .shortcut-scroll[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-scroll[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}.isLtr.tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin:16px 8px 16px 16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy: 0;margin:16px 8px 16px 16px}.isRtl.tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{margin:16px 16px 16px 8px}html[dir=rtl] .tv-view[_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-box-nested[_ngcontent-%COMP%]{--dummy: 0;margin:16px 16px 16px 8px}.nvapp-igo-view[_nghost-%COMP%] .list-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .list-padding[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}"]}),An})();var hr=ee.Or.Share.Shareserver.HotkeyEnum;function Qr(lt,An){if(1<&&(r.j41(0,"div",12),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG(2).$implicit,Ve=r.XpG(2);r.AVh("font-body3",Ve.tvMode)("font-sub2",!Ve.tvMode),r.R7$(),r.SpI(" ",r.bMT(2,5,St.header)," ")}}function Yr(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-shortcut",13),r.bIt("shortcutData",function(qe){r.eBV(St);const hn=r.XpG(2).index,hi=r.XpG(2);return r.Njj(hi.onShortcutChanged(qe,hn))})("focusin",function(){r.eBV(St);const qe=r.XpG(4);return r.Njj(qe.itemToggled())})("focusout",function(){r.eBV(St);const qe=r.XpG(4);return r.Njj(qe.itemToggled())}),r.k0s()}if(2<){const St=r.XpG(2).$implicit,Ve=r.XpG(2);r.Y8G("shortcutName",St.description)("shortcutNameParams",St.descriptionParams)("shortcutString",St.key)("deviceOS",Ve.deviceOS)("dimmed",St.disabled)}}function no(lt,An){1<&&r.nrm(0,"div",14)}function Tr(lt,An){if(1<&&(r.qex(0),r.DNE(1,Qr,3,7,"div",9)(2,Yr,1,5,"nv-shortcut",10)(3,no,1,0,"div",11),r.bVm()),2<){const St=r.XpG().$implicit,Ve=r.XpG(2);r.R7$(),r.Y8G("ngIf",St.header),r.R7$(),r.Y8G("ngIf",St.name),r.R7$(),r.Y8G("ngIf",St.name&&Ve.tvMode)}}function ro(lt,An){if(1<&&(r.j41(0,"div"),r.DNE(1,Tr,4,3,"ng-container",8),r.k0s()),2<){const St=An.$implicit;r.R7$(),r.Y8G("ngIf",!St.hide)}}function po(lt,An){1<&&r.nrm(0,"div",15)}function Os(lt,An){1<&&r.nrm(0,"div",16)}function es(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",1)(1,"div",2)(2,"div",3),r.DNE(3,ro,2,1,"div",4),r.k0s(),r.nrm(4,"nv-divider"),r.j41(5,"nv-item-button",5),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.resetClicked())}),r.k0s(),r.DNE(6,po,1,0,"div",6)(7,Os,1,0,"div",7),r.k0s()()}if(2<){const St=r.XpG();r.R7$(3),r.Y8G("ngForOf",St.hotkeys),r.R7$(3),r.Y8G("ngIf",St.tvMode),r.R7$(),r.Y8G("ngIf",!St.tvMode)}}let Bs=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao,Wo,ta,bo,Ns,Ka,Sl,Yl){super(qe,hn,Wo),this.loggingService=Ve,this.bridgeService=hi,this.hotkeyService=sr,this.shadowplayService=le,this.translate=Nn,this.dialogHelperService=So,this.igoConfig=Mo,this.osService=Ao,this.dialogHelper=ta,this.featureSupportService=bo,this.hotKeyHelper=Ns,this.hotkeyShareService=Ka,this.systemInfoService=Sl,this.clientInputService=Yl,this.blocking=!1,this.snackBarRef=void 0,this.renderTemplate=!1,this.tvMode=!1,this.isNvApp=!1,this.hotkeys=[{header:"settings.General"},{name:hr.OpenIGO,description:this.featureSupportService.isGuestAppFlowWrapper()?"settings.guestApp.IngameOverlay":"settings.IngameOverlay",key:"",protect:!0},{name:hr.MicToggle,description:"settings.ToggleMic",key:""},{name:hr.PTT,description:"settings.ActivatePushToTalkNoArg",key:"",hide:!this.featureSupportService.isGFEMode()||!this.featureSupportService.isIgoWithoutBrowserPlatform()},{name:hr.NativeKeyboardInputDialog,description:"settings.NativeKeyboardInputDialog",key:"",hide:this.featureSupportService.isGFEMode()},{name:hr.QuitGame,description:this.featureSupportService.isGuestAppFlowWrapper()?"settings.guestApp.QuitGameHotKey":"settings.QuitGameHotKey",key:"",hide:this.featureSupportService.isGFEMode()},{header:"settings.Statistics",hide:!this.featureSupportService.isStatisticsEnabled()},{name:hr.StatisticsToggle,description:"settings.StatisticsChangeFormat",key:"",hide:!this.featureSupportService.isStatisticsEnabled()},{header:"perfmon.performanceMonitor",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:hr.PMOCOverlay,description:"perfmon.performanceMonitorDescription",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:hr.PMOCOverlayCycle,description:"perfmon.cycleMetricsDescription",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:hr.PMOCOverlayVisibility,description:"perfmon.toggleVisibilityDescription",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:hr.PMOCLoggingToggle,description:"perfmon.startStopLogging",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{name:hr.PMOCResetAverageMetrics,description:"reflexAnalyzer.resetAverage",key:"",hide:!this.featureSupportService.isPerfOverlayEnabled()},{header:"settings.Record",hide:!this.featureSupportService.isShadowPlayEnabled()},{name:hr.RecordToggle,description:"settings.ToggleManualRecord",key:"",hide:!this.featureSupportService.isShadowPlayEnabled()},{name:hr.DVRToggle,description:"settings.ToggleIROnOff",key:"",hide:!this.featureSupportService.isShadowPlayEnabled()},{name:hr.DVRSave,description:"settings.SaveLastNMins",key:"",hide:!this.featureSupportService.isShadowPlayEnabled()},{header:"settings.Capture",hide:!this.featureSupportService.isGalleryEnabled()},{name:hr.Screenshot,description:"settings.SaveAScreenshot",key:"",hide:!this.featureSupportService.isGalleryEnabled()},{header:"nvcamera.GameFilter",hide:!this.featureSupportService.isNvcameraEnabled()},{name:hr.OpenFreestyle,description:"settings.EditFilters",key:"",hide:!this.featureSupportService.isNvcameraEnabled()||!this.featureSupportService.isGFEMode()},{name:hr.FreeStyleToggleStyle1,description:this.featureSupportService.isPpeEnabled()?"settings.ToggleProfileInGF":"settings.ToggleStyleInGF",descriptionParams:{styleNo:1},key:"",hide:!this.featureSupportService.isNvcameraEnabled()},{name:hr.FreeStyleToggleStyle2,description:this.featureSupportService.isPpeEnabled()?"settings.ToggleProfileInGF":"settings.ToggleStyleInGF",descriptionParams:{styleNo:2},key:"",hide:!this.featureSupportService.isNvcameraEnabled()},{name:hr.FreeStyleToggleStyle3,description:this.featureSupportService.isPpeEnabled()?"settings.ToggleProfileInGF":"settings.ToggleStyleInGF",descriptionParams:{styleNo:3},key:"",hide:!this.featureSupportService.isNvcameraEnabled()},{header:"nvcamera.PhotoMode",hide:!this.featureSupportService.isNvcameraEnabled()},{name:hr.OpenAnsel,description:"settings.PhotographTheScene",key:"",hide:!this.featureSupportService.isNvcameraEnabled()}],super.bar("settings.KeyboardShortcuts"),this.logger=this.loggingService.getLogger("Shortcuts"),this.logger.info("Constructor to be deleted"),this.tvMode=this.featureSupportService.isTVMode(),this.isNvApp=this.featureSupportService.isNvApp()}ngOnInit(){this.hotkeyService.blockAllHotkeys(!0).subscribe(()=>{super.ngOnInit(),this.init()})}init(){if(this.logger.info("Hotkey list is ",this.hotkeys),this.systemInfoService.getDeviceOSType().pipe((0,S.Q)(this.destroy$),(0,Y.s)(1)).subscribe(qe=>{this.deviceOS=qe,this.renderTemplate=!0}),"GFN"===this.igoConfig.branding&&this.featureSupportService.isGfnMicrophoneEnabled().pipe((0,S.Q)(this.destroy$),(0,Y.s)(1)).subscribe(qe=>{this.hotkeys.find(hi=>hi.name===hr.MicToggle).hide=!qe&&!this.featureSupportService.isShadowPlayEnabled()}),this.igoConfig.GFNCefClient){const qe=this.hotkeys.find(hn=>hn.name===hr.NativeKeyboardInputDialog);this.clientInputService.isImeEnabled$.pipe((0,S.Q)(this.destroy$)).subscribe(hn=>{this.logger.info("Checking ClientIME enablement value ",hn),qe.hide=m.zk.isBrowserPlatform()&&!hn,hn?(this.hotkeyShareService.removeFromIgnoredHotkeysSet(hr.NativeKeyboardInputDialog),this.hotkeyService.startListeningToHotkey(hr.NativeKeyboardInputDialog).pipe((0,S.Q)(this.destroy$)).subscribe(hi=>{hi&&this.getAllHotkeys()}),""===qe.key&&this.hotkeyService.getHotkeyString(qe.name).subscribe(hi=>{qe.key=hi})):(this.hotkeyService.stopListeningToHotkey(hr.NativeKeyboardInputDialog),this.getAllHotkeys())},hn=>{this.logger.info("Error getting ClientIME enablement value, hiding the setting",hn),this.hotkeyService.stopListeningToHotkey(hr.NativeKeyboardInputDialog)})}else this.hotkeyService.stopListeningToHotkey(hr.NativeKeyboardInputDialog),this.getAllHotkeys();const Ve=this.hotkeys.find(qe=>qe.name===hr.DVRSave);if(Ve&&!Ve.hide)if("en_US"===this.translate.currentLang){const qe=this.shadowplayService.maxIRTime;if(qe<60){const hn=qe.toString();Ve.description="settings.SaveLastXSecs",Ve.descriptionParams={arg1:hn}}else{const hn=Math.floor(qe/60).toString(),hi=(qe%60).toString();Ve.description="settings.SaveLastXMins",Ve.descriptionParams={arg1:hn,arg2:hi}}}else{const qe=(this.shadowplayService.maxIRTime/60).toFixed(2).replace(".00","");Ve.description="settings.SaveLastNMins",Ve.descriptionParams={args:qe}}}getAllHotkeys(){this.hotkeys.forEach(Ve=>{Ve.name&&!Ve.hide&&this.hotkeyService.getHotkeyString(Ve.name).pipe((0,S.Q)(this.destroy$)).subscribe(qe=>{qe&&qe.length&&(this.logger.info("Hotkey: ",qe),"None"===qe?this.translate.get("settings.None").subscribe(hn=>{Ve.key=hn,Ve.disabled=!0}):(Ve.key=qe,Ve.disabled=!1))})})}ngOnDestroy(){this.hotkeyService.blockAllHotkeys(!1).subscribe(()=>{super.ngOnDestroy()})}isResetKey(Ve){return 1===Ve.length&&(Ve[0]===m.SV.Space||Ve[0]===m.SV.Backspace||Ve[0]===m.SV.Delete)}itemToggled(){this.blocking=!this.blocking,this.logger.info(this.blocking?"Item Clicked - Block":"Item Unclicked - Unblock"),this.hotkeyService.blockAllHotkeys(this.blocking).pipe((0,S.Q)(this.destroy$)).subscribe()}onShortcutChanged(Ve,qe){if(!Ve.length||this.hotkeyService.checkIdenticalEntry(Ve,this.hotkeys[qe].name))return;if(this.isResetKey(Ve)){if(this.hotkeys[qe].protect)return;Ve.length=0,Ve[0]=0;const Nn=(0,Vt.cloneDeep)(this.hotkeys[qe]);return Nn.disabled=!0,this.translate.get("settings.None").subscribe(So=>{Nn.key=So}),void this.setHotkeyString(Ve,qe,Nn)}let hn=0;Ve.forEach(Nn=>{this.hotkeyService.checkIfModifierKey(Nn)&&hn++});let hi=!1;if(this.osService.getOSType()===m.aI.Windows&&Ve.forEach(Nn=>{this.hotkeyService.checkIfWinKey(Nn)&&(hi=!0)}),hi||Ve.length-hn>1)return void this.translate.get("snacks.HotkeyInvalid").subscribe(Nn=>{this.snackBarRef=this.dialogHelperService.openSnackBar(Nn)});const sr=[];if(this.hotkeys.forEach(Nn=>{Nn.name&&!Nn.hide&&sr.push(Nn.name)}),this.hotkeyService.checkForDup(Ve,sr))return void this.translate.get("snacks.HotkeyInUseInternal").subscribe(Nn=>{this.snackBarRef=this.dialogHelperService.openSnackBar(Nn)});this.snackBarRef&&(this.snackBarRef.dismiss(),this.snackBarRef=void 0);const le=(0,Vt.cloneDeep)(this.hotkeys[qe]);le.key=this.hotKeyHelper.shortcutToString(Ve),le.disabled=!1,this.setHotkeyString(Ve,qe,le)}setHotkeyString(Ve,qe,hn){this.hotkeyService.setHotkeyString(hn.name,Ve).pipe((0,S.Q)(this.destroy$)).subscribe(hi=>{hi!==v.DXY.Valid?hi===v.DXY.Invalid?this.translate.get("snacks.HotkeyInvalid").subscribe(sr=>{this.snackBarRef=this.dialogHelperService.openSnackBar(sr)}):hi===v.DXY.InUse?this.translate.get("snacks.HotkeyInUseInternal").subscribe(sr=>{this.snackBarRef=this.dialogHelperService.openSnackBar(sr)}):hi===v.DXY.Error&&this.logger.error("setHotkeyString failed, should not get here"):setTimeout(()=>{this.hotkeys[qe]=hn,this.itemToggled()})})}enableHotkeyAndUnclick(Ve){if(!this.igoConfig.GFNCefClient)return this.bridgeService.executeCommand(ee.Ts.Share.Shareserver.SetHotkeyDynamicEnable,{enable:!0,keys:[Ve.name]}).pipe((0,Pe.j)(()=>{this.itemToggled()})).subscribe()}resetClicked(){this.dialogHelper.openAlertDialog({title:"confirmation.resetToDefaultsTitle",query:"confirmation.resetToDefaultsDescription",queryParam:"",action1:"confirmation.NotRightNow",action2:"confirmation.yes"}).pipe((0,S.Q)(this.destroy$),(0,Qe.ZZ)(qe=>qe.afterClosed()),(0,Be.p)(qe=>qe===v.SFy.Action2),(0,Qe.ZZ)(()=>this.hotkeyService.resetToDefaults()),(0,Mt.M)(()=>this.init())).subscribe()}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(m.NZ),r.rXU(v.QSC),r.rXU(v.W1J),r.rXU(xe.c$),r.rXU(v.eo6),r.rXU(v.k$F),r.rXU(v.aTF),r.rXU(v.gZv),r.rXU(v.eo6),r.rXU(v.Rvq),r.rXU(m.Ho),r.rXU(v.fvX),r.rXU(m.zW),r.rXU(v.$jZ))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-shortcuts"]],features:[r.Vt3],decls:1,vars:1,consts:[["fxFlex","grow",4,"ngIf"],["fxFlex","grow"],["fxLayout","column","fxFlex",""],["fxFlex","grow",1,"shortcut-list"],[4,"ngFor","ngForOf"],["svgIcon","reset","titleString","settings.ResetToDefaults",3,"clicked"],["fxFlex","none","class","nv-gap-24",4,"ngIf"],["fxFlex","none","class","nv-gap-16",4,"ngIf"],[4,"ngIf"],["class","font-color-tertiary header-padding",3,"font-body3","font-sub2",4,"ngIf"],[3,"shortcutName","shortcutNameParams","shortcutString","deviceOS","dimmed","shortcutData","focusin","focusout",4,"ngIf"],["class","nv-gap-8",4,"ngIf"],[1,"font-color-tertiary","header-padding"],[3,"shortcutData","focusin","focusout","shortcutName","shortcutNameParams","shortcutString","deviceOS","dimmed"],[1,"nv-gap-8"],["fxFlex","none",1,"nv-gap-24"],["fxFlex","none",1,"nv-gap-16"]],template:function(Ve,qe){1&Ve&&r.DNE(0,es,8,3,"div",0),2&Ve&&r.Y8G("ngIf",qe.renderTemplate)},dependencies:[n.Sq,n.bT,a.$,h.j,wr,g.DJ,g.UI,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.header-padding[_ngcontent-%COMP%]{padding:8px 0}[_nghost-%COMP%]{overflow-y:auto;box-sizing:border-box}.isLtr [_nghost-%COMP%]{margin-right:-24px}html[dir=ltr] [_nghost-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl [_nghost-%COMP%]{margin-left:-24px}html[dir=rtl] [_nghost-%COMP%]{--dummy4: 0;margin-left:-24px}.shortcut-list[_ngcontent-%COMP%]{padding:8px 16px;overflow-y:overlay}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nvapp-igo-view[_nghost-%COMP%], .nvapp-igo-view [_nghost-%COMP%]{padding:0}.nvapp-igo-view[_nghost-%COMP%] .header-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .header-padding[_ngcontent-%COMP%]{padding-top:8px}.nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding:16px 0 0;overflow-y:overlay}.isLtr.nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr.nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view .isLtr[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view .isLtr [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr] .nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl.nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl.nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view .isRtl[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view .isRtl [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl] .nvapp-igo-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{padding:0 24px}.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-top:24px;overflow-y:overlay}.isLtr.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr] .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl] .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.isLtr.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr] .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl.tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl] .tv-view[_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .shortcut-list[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}"]}),An})();var li=d(93181),dr=d(55962);function Tn(lt,An){1<&&(r.j41(0,"div",12)(1,"div",13),r.EFF(2),r.nI1(3,"translate"),r.k0s()()),2<&&(r.R7$(2),r.JRh(r.bMT(3,1,"settings.DiskSpaceHelper")))}function tn(lt,An){1<&&(r.j41(0,"div",12)(1,"div",14),r.EFF(2),r.nI1(3,"translate"),r.k0s()()),2<&&(r.R7$(2),r.SpI(" ",r.bMT(3,1,"settings.DiskSpaceLimitGeneric")," "))}function vn(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",15)(1,"nv-hig-slider",16),r.mxI("valueChange",function(qe){r.eBV(St);const hn=r.XpG();return r.DH7(hn.diskSpaceSliderValue,qe)||(hn.diskSpaceSliderValue=qe),r.Njj(qe)}),r.bIt("valueChange",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.onDiskSpaceSliderChanged(qe))}),r.k0s(),r.j41(2,"span",17),r.EFF(3),r.nI1(4,"translate"),r.k0s()()}if(2<){const St=r.XpG();r.R7$(),r.Y8G("min",St.diskSpaceSliderStep)("max",St.diskSpaceSliderMax),r.R50("value",St.diskSpaceSliderValue),r.Y8G("step",St.diskSpaceSliderStep),r.R7$(2),r.JRh(r.i5U(4,5,St.diskSpaceString,St.diskSpaceParams))}}function oi(lt,An){1<&&(r.j41(0,"div",18),r.nrm(1,"mat-icon",19),r.j41(2,"div",20),r.EFF(3),r.nI1(4,"translate"),r.k0s()()),2<&&(r.R7$(3),r.JRh(r.bMT(4,1,"settings.IncreaseDiskSpaceLimit")))}let Ci=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao,Wo,ta){super(Nn,So,Ao,Mo),this.loggingService=Ve,this.bridgeService=qe,this.osService=hn,this.galleryService=hi,this.sdkHighlightsService=sr,this.shadowPlayService=le,this.translate=Wo,this.igoConfig=ta,this.initializing=!0,this.highlightsActive=!1,this.disableFolders=!1,this.irInProgress=!1,this.mrInProgress=!1,this.availDiskSpaceSwitchModel=!1,this.diskSpaceSliderValue=100,this.prevDiskSpaceSliderValue=this.diskSpaceSliderValue,this.diskSpaceSliderMax=100,this.diskSpaceSliderStep=10,this.diskSpaceSliderValueDefault=100,this.totalMB=10,this.diskSpaceWarning=!1,this.tickValues=[10,20,30,40,50,60,70,80,90,100],this.sliderInitComplete=!1,this.diskSpaceParams={},this.currentStorageLocation=void 0,this.tempStorageLocation=void 0,this.originalStorageLocation=void 0,this.externalDrivesValid=!1,this.cancelDisabled=!1,this.dialogRef=void 0,this.isGfn=!0,super.bar("settings.FilesAndDiskSpace"),this.logger=this.loggingService.getLogger("Storage"),this.logger.info("Constructor"),this.myRoute=So,this.isGfn="GFE"!==this.igoConfig.branding}ngOnInit(){super.ngOnInit(),this.sdkHighlightsService.isHighlightsActive().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.highlightsActive=Ve,this.checkFolderState()}),this.shadowPlayService.getMRState().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.mrInProgress=Ve,this.checkFolderState()}),this.shadowPlayService.getIRState().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.irInProgress=Ve===v.xT8.recording,this.checkFolderState()}),this.startupInit()}startupInit(){const Ve=this.myRoute.snapshot.paramMap.get("folder"),qe=this.myRoute.snapshot.paramMap.get("source");if(this.dirSeparator=this.osService.getDirSeparator(),this.fileBaseSize=this.osService.getFileBaseSize(),"GFE"===this.igoConfig.branding&&(this.externalDrivesValid=!0),this.galleryService.listenForTrackerEvents().pipe((0,S.Q)(this.destroy$)).subscribe(hn=>{this.trackEventProgress(hn)}),this.galleryService.updatingTracker)this.originalStorageLocation=this.galleryService.getVideoFolder(),this.currentStorageLocation=this.galleryService.getCurrentLocation(),this.dialog.openAlertDialog({title:"confirmation.confirmFileLocationTitle",query:"confirmation.changingLocation",queryParam:{arg:this.currentStorageLocation},action1:"confirmation.cancel",spinner:!0}).pipe((0,S.Q)(this.destroy$),(0,Mt.M)(hi=>this.dialogRef=hi),(0,Qe.ZZ)(hi=>hi.afterClosed())).subscribe(hi=>{hi===v.SFy.Action1&&this.onCancelClicked()});else if(Ve&&qe){let hn="";qe===v.QAj.Highlights?(this.originalStorageLocation=this.galleryService.getVideoFolder(),this.currentStorageLocation=Ve,this.galleryService.saveCurrentLocation(Ve),hn=this.currentStorageLocation):qe===v.QAj.Temporary&&(this.originalStorageLocation=void 0,this.tempStorageLocation=Ve,hn=Ve),this.dialog.openAlertDialog({title:"confirmation.confirmFileLocationTitle",query:"confirmation.changingLocation",queryParam:{arg:hn},action1:"confirmation.cancel",spinner:!0}).pipe((0,S.Q)(this.destroy$),(0,Mt.M)(sr=>this.dialogRef=sr),(0,Qe.ZZ)(sr=>sr.afterClosed())).subscribe(sr=>{sr===v.SFy.Action1&&this.onCancelClicked()}),this.galleryService.updateFolderSync(hn,qe).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{qe===v.QAj.Temporary&&(this.dialogRef&&this.dialogRef.close(),this.init(),this.initializing=!1)})}else this.initializing=!1,this.init()}init(){(0,li.p)([this.bridgeService.executeCommand(ee.Ts.Common.Gallery.GetSettings),this.shadowPlayService.getIRState().pipe((0,Y.s)(1)),this.shadowPlayService.getMRState().pipe((0,Y.s)(1))]).pipe((0,S.Q)(this.destroy$)).subscribe(([Ve,qe,hn])=>{this.settingsParams=Ve,this.availDiskSpaceSwitchModel=Ve.settings.capacity.enabled,this.totalMB=Ve.settings.capacity.totalDiskSpaceMB,this.diskSpaceSliderValue=Ve.settings.capacity.capacityPercent,this.diskSpaceUsage=Math.floor(Ve.settings.capacity.usageMB),this.prevDiskSpaceSliderValue=this.diskSpaceSliderValue,this.setSliderValue(),void 0===this.currentStorageLocation&&(this.currentStorageLocation=Ve.settings.path),void 0===this.tempStorageLocation&&(this.tempStorageLocation=Ve.settings.tempFolderPath),this.sliderInitComplete=!0,this.mrInProgress=hn,this.irInProgress=qe===v.xT8.recording,this.checkFolderState()})}checkFolderState(){this.disableFolders=this.highlightsActive||this.mrInProgress||this.irInProgress,this.disableFolders&&this.translate.get("snacks.StopRecording").subscribe(Ve=>{this.dialog.openSnackBar(Ve)})}availDiskSpaceSwitchChange(Ve){this.logger.info("availDiskSpace switch changed: ",this.availDiskSpaceSwitchModel),this.setSliderValue(),this.settingsParams.settings.capacity.enabled=this.availDiskSpaceSwitchModel,this.bridgeService.executeCommand(ee.Ts.Common.Gallery.SetSettings,this.settingsParams).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{this.prevDiskSpaceSliderValue=this.diskSpaceSliderValue}),this.galleryService.sendDiskSpaceChangedTelemetry(this.availDiskSpaceSwitchModel)}formatDiskSpaceString(Ve){const qe=this.fileBaseSize*this.fileBaseSize;return Ve<this.fileBaseSize?`\u2066${Ve.toFixed(1)} MB\u2069`:Ve<qe?`\u2066${(Ve/this.fileBaseSize).toFixed(1)} GB\u2069`:`\u2066${(Ve/qe).toFixed(1)} TB\u2069`}setSliderValue(){if(this.availDiskSpaceSwitchModel){const Ve=this.diskSpaceSliderValue/100*this.totalMB;this.diskSpaceString="settings.DiskSpaceUsage",this.diskSpaceParams={arg1:this.formatDiskSpaceString(this.diskSpaceUsage),arg2:this.formatDiskSpaceString(Ve)},this.diskSpaceWarning=!(this.diskSpaceUsage<Ve)}else this.diskSpaceString="settings.NoMax",this.diskSpaceWarning=!1}onDiskSpaceSliderChanged(Ve){if(this.sliderInitComplete&&(this.logger.info("Disk Space slider changed to: ",this.diskSpaceSliderValue),this.setSliderValue(),this.prevDiskSpaceSliderValue!==this.diskSpaceSliderValue)){this.settingsParams.settings.capacity.capacityPercent=this.diskSpaceSliderValue;const qe=this.settingsParams;this.logger.info("New disk space settings: ",this.settingsParams),this.bridgeService.executeCommand(ee.Ts.Common.Gallery.SetSettings,qe).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{this.prevDiskSpaceSliderValue=this.diskSpaceSliderValue}),this.galleryService.sendDiskSpaceSliderChangedTelemetry(this.diskSpaceSliderValue)}}terminateLocationChange(Ve){this.logger.info("Terminating location change"),Ve&&(this.logger.info("Undoing location change"),this.currentStorageLocation=this.originalStorageLocation),this.dialogRef&&(this.dialogRef.close(),this.dialogRef=void 0);const qe=this.galleryService.galleryTrackerChangePath().subscribe(()=>{this.init(),this.initializing=!1,this.cancelDisabled=!1,qe.unsubscribe()})}onCancelClicked(){this.cancelDisabled=!0,void 0!==this.originalStorageLocation&&this.bridgeService.executeCommand(ee.Ts.Common.Gallery.CancelPathUpdate).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{this.logger.info("Cancel command complete")})}trackEventProgress(Ve){switch(Ve.trackerEvent){case ee.Or.Common.Gallery.GalleryPathUpdateStatus.TrackerUpdateComplete:this.cancelDisabled=!0,this.terminateLocationChange(!1);break;case ee.Or.Common.Gallery.GalleryPathUpdateStatus.CancelUpdateComplete:this.terminateLocationChange(!0)}}keyUpEvent(Ve){"Control"===Ve.key&&"GFN"===this.igoConfig.branding&&(this.externalDrivesValid=!1)}keyDownEvent(Ve){"Control"===Ve.key&&"GFN"===this.igoConfig.branding&&(this.externalDrivesValid=!0)}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(m.NZ),r.rXU(v.aTF),r.rXU(v.AFS),r.rXU(v.P15),r.rXU(v.W1J),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.eo6),r.rXU(v.gZv),r.rXU(xe.c$),r.rXU(v.k$F))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-storage"]],features:[r.Vt3],decls:15,vars:16,consts:[["fxLayout","column","fxFlex",""],["fxFlex","grow"],[1,"limit-padding"],["fxLayout","row","fxLayoutAlign","start center"],["fxFlex","grow",1,"font-body1","font-color-primary"],["fxFlex","none",3,"ngModelChange","change","ngModel"],["fxLayout","column","fxLayoutAlign","start start",4,"ngIf"],[1,"slider-area"],["fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["class","max-warning-area","fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","center center",4,"ngIf"],["title","settings.TemporaryFilesLocation","showTitle","true","source","temporary","caller","storage",3,"keydown","keyup","pathLocation","disabled","external"],["title","settings.FilesLocation","showTitle","true","source","highlights","caller","storage",3,"keydown","keyup","pathLocation","disabled","external"],["fxLayout","column","fxLayoutAlign","start start"],[1,"font-sub2","font-color-tertiary"],[1,"font-sub2","font-color-tertiary","limit-subtext-padding"],["fxLayout","column","fxLayoutAlign","start center"],["fxFlexFill","",1,"nvapp-slider-padding",3,"valueChange","min","max","value","step"],[1,"font-body2","slider-subtext-padding"],["fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","center center",1,"max-warning-area"],["svgIcon","warning",1,"mat-icon","icon-warning","max-warning-icon"],[1,"font-body2","limit-padding"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),r.EFF(5),r.nI1(6,"translate"),r.k0s(),r.j41(7,"mat-slide-toggle",5),r.mxI("ngModelChange",function(hi){return r.DH7(qe.availDiskSpaceSwitchModel,hi)||(qe.availDiskSpaceSwitchModel=hi),hi}),r.bIt("change",function(hi){return qe.availDiskSpaceSwitchChange(hi)}),r.k0s()(),r.DNE(8,Tn,4,3,"div",6)(9,tn,4,3,"div",6),r.j41(10,"div",7),r.DNE(11,vn,5,8,"div",8),r.k0s(),r.DNE(12,oi,5,3,"div",9),r.k0s(),r.j41(13,"nv-folder-browser",10),r.bIt("keydown",function(hi){return qe.keyDownEvent(hi)})("keyup",function(hi){return qe.keyUpEvent(hi)}),r.k0s(),r.j41(14,"nv-folder-browser",11),r.bIt("keydown",function(hi){return qe.keyDownEvent(hi)})("keyup",function(hi){return qe.keyUpEvent(hi)}),r.k0s()()()),2&Ve&&(r.R7$(4),r.AVh("nvapp-title-bottom-padding",qe.availDiskSpaceSwitchModel&&qe.isGfn),r.R7$(),r.SpI(" ",r.bMT(6,14,"settings.SetDiskSpaceLimit")," "),r.R7$(2),r.R50("ngModel",qe.availDiskSpaceSwitchModel),r.R7$(),r.Y8G("ngIf",!qe.availDiskSpaceSwitchModel&&qe.isGfn),r.R7$(),r.Y8G("ngIf",!qe.isGfn),r.R7$(2),r.Y8G("ngIf",qe.availDiskSpaceSwitchModel),r.R7$(),r.Y8G("ngIf",qe.availDiskSpaceSwitchModel&&qe.diskSpaceWarning),r.R7$(),r.Y8G("pathLocation",qe.tempStorageLocation)("disabled",qe.disableFolders)("external",qe.externalDrivesValid),r.R7$(),r.Y8G("pathLocation",qe.currentStorageLocation)("disabled",qe.disableFolders)("external",qe.externalDrivesValid))},dependencies:[n.bT,Me.I,dr.e,g.DJ,g.BO,g.sA,g.G2,g.UI,re.BC,re.vS,z.An,Ze.P2,yn.t,oe.tG,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.limit-padding[_ngcontent-%COMP%]{padding:14px 16px}.max-warning-area[_ngcontent-%COMP%]{margin:16px 0 0}.slider-subtext-padding[_ngcontent-%COMP%]{padding-bottom:8px}.max-warning-icon[_ngcontent-%COMP%]{width:24px;height:24px;font-size:24px}[_nghost-%COMP%]{padding:16px 0}.isLtr[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.isLtr[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .nvapp-slider-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.nvapp-igo-view[_nghost-%COMP%] .limit-padding[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .limit-padding[_ngcontent-%COMP%]{padding:14px 16px 0}.limit-subtext-padding[_ngcontent-%COMP%], .nvapp-title-bottom-padding[_ngcontent-%COMP%]{padding-bottom:14px}"]}),An})();var or=d(43848),yr=d(14714);const $r=lt=>({"disabled-opacity":lt});function ko(lt,An){1<&&(r.j41(0,"div",15),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"capture.DesktopHelp1")," "))}function qr(lt,An){1<&&(r.j41(0,"div",15),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"capture.DesktopHelp2")," "))}function lo(lt,An){1<&&(r.j41(0,"div",16)(1,"div",17)(2,"div",18),r.nrm(3,"mat-icon",19),r.k0s(),r.j41(4,"div",20),r.EFF(5),r.nI1(6,"translate"),r.k0s()()()),2<&&(r.R7$(5),r.SpI(" ",r.bMT(6,1,"audio.StopToChange")," "))}function ts(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",7)(1,"div",8)(2,"div",9),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"mat-slide-toggle",10),r.mxI("ngModelChange",function(qe){r.eBV(St);const hn=r.XpG();return r.DH7(hn.dtCaptureState,qe)||(hn.dtCaptureState=qe),r.Njj(qe)}),r.bIt("change",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.dtCaptureChanged(qe))}),r.k0s(),r.nrm(6,"div",11),r.k0s(),r.DNE(7,ko,3,3,"div",12)(8,qr,3,3,"div",12)(9,lo,7,3,"div",13),r.nrm(10,"nv-divider",14),r.k0s()}if(2<){const St=r.XpG();r.R7$(2),r.AVh("disabled-opacity",!St.enableDTCapture),r.R7$(),r.SpI(" ",r.bMT(4,8,"settings.DesktopCapture")," "),r.R7$(2),r.Y8G("disabled",!St.enableDTCapture),r.R50("ngModel",St.dtCaptureState),r.R7$(2),r.Y8G("ngIf",!St.dtCaptureState),r.R7$(),r.Y8G("ngIf",St.dtCaptureState),r.R7$(),r.Y8G("ngIf",!St.enableDTCapture)}}function Ls(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",21)(1,"div",22),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"mat-slide-toggle",23),r.mxI("ngModelChange",function(qe){r.eBV(St);const hn=r.XpG();return r.DH7(hn.irEnabled,qe)||(hn.irEnabled=qe),r.Njj(qe)}),r.bIt("change",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.irToggleEvent(qe))}),r.k0s()()}if(2<){const St=r.XpG();r.R7$(2),r.SpI(" ",r.bMT(3,3,"mainMenu.InstantReplay")," "),r.R7$(2),r.R50("ngModel",St.irEnabled),r.Y8G("disabled",St.recordSpecialCase.RECORD_SPECIAL_CASE_NONE!==St.disableRecordSpecialCase)}}function Xr(lt,An){1<&&(r.j41(0,"span",24),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"mainMenu.DisableRecord")))}function Hs(lt,An){1<&&(r.j41(0,"span",24),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"mainMenu.DisabledForPlaytest")))}function Ua(lt,An){1<&&(r.j41(0,"div",29),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"settings.IRTurnOn")," "))}function Ya(lt,An){if(1<){const St=r.RV6();r.qex(0),r.j41(1,"div",30),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"nv-hig-slider",31),r.mxI("valueChange",function(qe){r.eBV(St);const hn=r.XpG(3);return r.DH7(hn.seconds,qe)||(hn.seconds=qe),r.Njj(qe)}),r.bIt("valueChange",function(){r.eBV(St);const qe=r.XpG(3);return r.Njj(qe.updateIRMaxLength())}),r.k0s(),r.bVm()}if(2<){const St=r.XpG(3);r.R7$(2),r.SpI(" ",r.i5U(3,5,"settings.IRMaxHelp",St.irMaxLenString)," "),r.R7$(2),r.Y8G("min",St.minSeconds)("max",St.maxSeconds)("step",St.step),r.R50("value",St.seconds)}}function Ba(lt,An){if(1<&&(r.j41(0,"div",26),r.DNE(1,Ua,3,3,"div",27)(2,Ya,5,8,"ng-container",28),r.k0s()),2<){const St=r.XpG(2);r.R7$(),r.Y8G("ngIf",!St.irEnabled&&!St.disableRecordSpecialCase),r.R7$(),r.Y8G("ngIf",St.irEnabled&&!St.disableRecordSpecialCase)}}function Pa(lt,An){if(1<){const St=r.RV6();r.qex(0),r.j41(1,"div",34),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"nv-hig-slider",35),r.mxI("valueChange",function(qe){r.eBV(St);const hn=r.XpG(3);return r.DH7(hn.seconds,qe)||(hn.seconds=qe),r.Njj(qe)}),r.bIt("valueChange",function(){r.eBV(St);const qe=r.XpG(3);return r.Njj(qe.updateIRMaxLength())}),r.k0s(),r.bVm()}if(2<){const St=r.XpG(3);r.R7$(),r.Y8G("ngClass",r.eq3(10,$r,St.irEnabled)),r.R7$(),r.SpI(" ",r.i5U(3,7,"settings.IRMaxHelpNvApp",St.irMaxLenString)," "),r.R7$(2),r.Y8G("min",St.minSeconds)("max",St.maxSeconds)("step",St.step)("disabled",St.irEnabled),r.R50("value",St.seconds)}}function ys(lt,An){1<&&(r.j41(0,"div",17)(1,"div",18),r.nrm(2,"mat-icon",19),r.k0s(),r.j41(3,"div",20),r.EFF(4),r.nI1(5,"translate"),r.k0s()()),2<&&(r.R7$(4),r.SpI(" ",r.bMT(5,1,"settings.IRDisabledHelp")," "))}function Ga(lt,An){if(1<&&(r.j41(0,"div",26)(1,"div",32),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.DNE(4,Pa,5,12,"ng-container",28)(5,ys,6,3,"div",33),r.k0s()),2<){const St=r.XpG(2);r.R7$(2),r.SpI(" ",r.bMT(3,3,"settings.IRLength")," "),r.R7$(2),r.Y8G("ngIf",St.sliderVisible),r.R7$(),r.Y8G("ngIf",St.irEnabled)}}function To(lt,An){if(1<&&(r.j41(0,"div",3),r.DNE(1,Ba,3,2,"div",25)(2,Ga,6,5,"div",25),r.k0s()),2<){const St=r.XpG();r.R7$(),r.Y8G("ngIf",!St.gfeMode),r.R7$(),r.Y8G("ngIf",St.gfeMode)}}function ss(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-rotary",47),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG(2);return r.Njj(hn.codecChanged(qe))}),r.k0s()}if(2<){const St=r.XpG(2);r.Y8G("input",St.codecOptions)("initialState",St.codecInitState)("disabled",St.disableUI)}}function Gs(lt,An){1<&&(r.j41(0,"span",48),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"capture.CodecHelp")))}function va(lt,An){1<&&(r.j41(0,"div",3)(1,"div",49)(2,"div",50),r.nrm(3,"mat-icon",19),r.k0s(),r.j41(4,"div",51),r.EFF(5),r.nI1(6,"translate"),r.k0s()()()),2<&&(r.R7$(5),r.SpI(" ",r.bMT(6,1,"settings.StopRecording")," "))}function Ca(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",3),r.nrm(1,"nv-divider"),r.j41(2,"span",36),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"span",37),r.EFF(6),r.nI1(7,"translate"),r.k0s(),r.j41(8,"nv-rotary",38),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.qualityChanged(qe))}),r.k0s(),r.j41(9,"nv-rotary",39),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.resolutionChanged(qe))}),r.k0s(),r.j41(10,"nv-rotary",40),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.frameRateChanged(qe))}),r.k0s(),r.DNE(11,ss,1,3,"nv-rotary",41)(12,Gs,3,3,"span",42),r.j41(13,"span",43),r.EFF(14),r.nI1(15,"translate"),r.k0s(),r.j41(16,"div",44)(17,"div",45)(18,"nv-hig-slider",46),r.mxI("valueChange",function(qe){r.eBV(St);const hn=r.XpG();return r.DH7(hn.bitrate,qe)||(hn.bitrate=qe),r.Njj(qe)}),r.bIt("valueChange",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.bitrateChanged())}),r.k0s()()(),r.DNE(19,va,7,3,"div",6),r.k0s()}if(2<){const St=r.XpG();r.R7$(3),r.JRh(r.bMT(4,22,"capture.OutputFormat")),r.R7$(3),r.JRh(r.bMT(7,24,"capture.OutputFormatHelp")),r.R7$(2),r.Y8G("input",St.qualityOptions)("initialState",St.qualityInitState)("disabled",St.disableUI),r.R7$(),r.Y8G("input",St.resolutionOptions)("initialState",St.resolutionInitState)("disabled",St.disableUI),r.R7$(),r.Y8G("input",St.frameRateOptions)("initialState",St.frameRateInitState)("disabled",St.disableFrameRateRotary||St.disableUI),r.R7$(),r.Y8G("ngIf",St.showCodecRotary),r.R7$(),r.Y8G("ngIf",St.showCodecRotary&&St.isLegacyCodec),r.R7$(),r.AVh("disabled-opacity",St.disableUI),r.R7$(),r.JRh(r.bMT(15,26,"capture.BitRateMbps")),r.R7$(4),r.Y8G("min",St.minBitrate)("max",St.maxBitrate),r.R50("value",St.bitrate),r.Y8G("step",St.stepBitrate)("disabled",St.disableUI),r.R7$(),r.Y8G("ngIf",St.disableUI)}}let Qi=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao){super(qe,hn,hi,sr,le),this.loggingService=Ve,this.shadowPlayService=Nn,this.igoConfig=So,this.sdkHighlightsService=Mo,this.translateService=Ao,this.minSeconds=15,this.maxSeconds=1200,this.step=5,this.seconds=this.minSeconds,this.irEnabled=!1,this.irRunning=!1,this.irMaxLenString={arg:""},this.irStatusString="",this.mrInProgress=!1,this.highlightsActive=!1,this.disableUI=!1,this.sliderVisible=!1,this.recordSpecialCase=y.Fm,this.disableFrameRateRotary=!1,this.showCodecRotary=!1,this.isLegacyCodec=!1,this.qualityOptions=["capture.Low","capture.Medium","capture.High","capture.Custom"],this.qualityValuesIgo=[v.xT0.low,v.xT0.medium,v.xT0.high,v.xT0.custom],this.qualityInitState=0,this.resolutionOptions=["No data!"],this.resolutionInitState=0,this.frameRateOptions=["No data!"],this.frameRateInitState=0,this.codecOptions=["No data!"],this.codecInitState=0,this.disableFrameRateWhenRes8k=!1,this.minBitrate=10,this.maxBitrate=130,this.stepBitrate=5,this.bitrate=50,this.bitrateMaxString={},this.bitrateMinString={},this.videoSpecs={resolutions:void 0,codecs:void 0,codecDefault:void 0,frameRates:void 0,frameRatesDefault:void 0,bitRatesMin:void 0,bitRatesMax:void 0,bitRatesDefault:void 0,recQualitySP:void 0,recQualityIgo:void 0,recResolution:void 0,recFramerate:void 0,recBitrate:void 0,recReplayLength:void 0,recCodec:void 0},this.gfeMode=!1,this.showVideoSpecs=!1,this.showDTCapture=!1,this.dcSupported=!1,this.dtCaptureState=!1,this.enableDTCapture=!1,super.bar("settings.VideoCapture"),this.logger=this.loggingService.getLogger("Video"),this.shadowPlayService.videoCaptureReturnLocation&&(this.caller=this.shadowPlayService.videoCaptureReturnLocation,this.shadowPlayService.videoCaptureReturnLocation=null)}ngOnInit(){super.ngOnInit(),this.init()}ngOnDestroy(){this.gfeMode&&this.menuClosed(),super.ngOnDestroy()}init(){this.gfeMode="GFE"===this.igoConfig.branding,this.gfeMode&&(this.showVideoSpecs=!0,this.showDTCapture=!this.shadowPlayService.isNotebookCoProcSystem()),this.maxSeconds=this.gfeMode?1200:300,this.irMaxLenString.arg=this.maxSeconds/60+"",(0,li.p)([this.shadowPlayService.getDesktopCaptureSupported(),this.shadowPlayService.getDesktopCaptureEnabled(),this.shadowPlayService.getInstantReplayEnableStatus(),this.shadowPlayService.getInstantReplayRunningStatus(),this.shadowPlayService.getInstantReplayMaxLength(),this.shadowPlayService.getMRState().pipe((0,Y.s)(1))]).pipe((0,S.Q)(this.destroy$)).subscribe(([Ve,qe,hn,hi,sr,le])=>{this.logger.info("IR Enabled: "+hn+" Running: "+hi),this.irEnabled=hn,this.irStatusString=this.irEnabled?"settings.IRTurnOff":"settings.IRTurnOn",this.irRunning=hi,this.mrInProgress=le,this.sliderVisible=this.gfeMode||this.irEnabled,this.checkCurrentState(),this.seconds=void 0===sr?this.minSeconds:sr,this.logger.info("IR Length: "+this.seconds),this.dcSupported=!0,this.checkDTCapture(),this.logger.info("DT Supported: "+Ve+" DT Enabled: "+qe),this.logger.info("Running IR: "+hn+" MR: "+le),Ve&&(this.dtCaptureState=qe)}),this.shadowPlayService.getIRState().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.irEnabled=Ve!==v.xT8.off,this.irStatusString=this.irEnabled?"settings.IRTurnOff":"settings.IRTurnOn",this.irRunning=Ve===v.xT8.recording,this.sliderVisible=this.gfeMode||this.irEnabled,this.logger.info("ir state: ",this.irEnabled),this.checkCurrentState(),this.checkDTCapture()}),this.shadowPlayService.getMRState().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.mrInProgress=Ve,this.checkCurrentState(),this.checkDTCapture()}),this.sdkHighlightsService.isHighlightsActive().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.highlightsActive=Ve,this.checkCurrentState(),this.checkDTCapture()}),this.gfeMode&&this.initializeVideoSpecs(!0,!0,!0,!0,!0)}checkCurrentState(){this.gfeMode&&(this.disableUI=this.irRunning||this.mrInProgress||this.highlightsActive)}updateIRMaxLength(){this.seconds<this.minSeconds||this.seconds>this.maxSeconds||(this.logger.info("New IR Length: ",this.seconds),this.videoSpecs.recReplayLength=this.seconds,this.updateVideoSpecs())}irToggleEvent(Ve){this.logger.info("on toggle IR: ",Ve.checked),Ve.checked?this.shadowPlayService.enableInstantReplay():this.shadowPlayService.disableInstantReplay()}setCustomMode(){const Ve=this.qualityValuesIgo.findIndex(qe=>qe===v.xT0.custom);this.videoSpecs.recQualityIgo=v.xT0.custom,this.qualityInitState=Ve}updateVideoSpecs(Ve=!1,qe=!1,hn=!1,hi=!0,sr=!1){this.shadowPlayService.setVideoSpecs(this.videoSpecs,this.gfeMode).pipe((0,S.Q)(this.destroy$),(0,Mt.M)(le=>{le&&this.gfeMode&&this.initializeVideoSpecs(Ve,qe,hn,hi,sr)}),(0,yr.W)(le=>(this.logger.error("Error in updateVideoSpecs: ",le),(0,or.of)(!1)))).subscribe()}qualityChanged(Ve){this.logger.info("Quality changed index: "+Ve),this.videoSpecs.recQualityIgo=this.qualityValuesIgo[Ve],this.qualityInitState=Ve,this.updateVideoSpecs(!0,!0,!0,!0,!0)}resolutionChanged(Ve){this.videoSpecs.resolutions&&Ve<this.videoSpecs.resolutions.length?(this.logger.info("Resolution changed index: "+Ve),this.videoSpecs.recResolution=this.videoSpecs.resolutions[Ve],this.videoSpecs.recBitrate=0,this.resolutionInitState=Ve,this.setCustomMode(),this.videoSpecs.recQualitySP=this.shadowPlayService.convertQualityIgoToSp(this.videoSpecs.recQualityIgo),this.updateVideoSpecs(!1,!1,!0)):this.logger.error("Issue with changing resolution: ",Ve)}frameRateChanged(Ve){this.videoSpecs.frameRates&&Ve<this.videoSpecs.frameRates.length?(this.logger.info("FrameRate changed index: "+Ve),this.videoSpecs.recFramerate=this.videoSpecs.frameRates[Ve],this.frameRateInitState=Ve,this.videoSpecs.recBitrate=0,this.setCustomMode(),this.updateVideoSpecs(!1,!1,!1)):this.logger.error("Issue with changing frame rate: ",Ve)}bitrateChanged(){this.bitrate<this.minBitrate||this.bitrate>this.maxBitrate||(this.logger.info("New Bitrate value: ",this.bitrate,this.qualityChanged),this.videoSpecs.recBitrate=1e6*this.bitrate,this.setCustomMode(),this.updateVideoSpecs(!1,!1,!1,!1))}codecChanged(Ve){this.videoSpecs?.codecs&&Ve<this.videoSpecs.codecs.length?(this.logger.info("Codec changed index: "+Ve),this.shadowPlayService.getShowCodecMessage()&&this.shadowPlayService.dismissShowCodecMessage(),this.videoSpecs.recCodec=this.videoSpecs.codecs[Ve],this.videoSpecs.recBitrate=0,this.logger.info("Codec info: ",this.videoSpecs.recCodec),this.codecInitState=Ve,this.setCustomMode(),this.videoSpecs.recQualitySP=this.shadowPlayService.convertQualityIgoToSp(this.videoSpecs.recQualityIgo),this.isLegacyCodec=this.videoSpecs.codecs[Ve]===v.m_A.H264_HEVC,this.updateVideoSpecs()):this.logger.error("Issue with changing codec: ",Ve)}initializeVideoSpecs(Ve=!1,qe=!1,hn=!1,hi=!0,sr=!1){return this.shadowPlayService.getVideoSpecs().pipe((0,S.Q)(this.destroy$),(0,Mt.M)(le=>{if(this.videoSpecs={...le},this.logger.info("VideoSpecs:",this.videoSpecs),this.minBitrate=this.videoSpecs.bitRatesMin/1e6,this.maxBitrate=this.videoSpecs.bitRatesMax/1e6,hi&&(this.bitrate=this.videoSpecs.recQualityIgo===v.xT0.custom&&this.videoSpecs.recBitrate?this.videoSpecs.recBitrate/1e6:this.videoSpecs.bitRatesDefault/1e6),this.bitrateMinString=this.minBitrate+"",this.bitrateMaxString=this.maxBitrate+"",Ve&&this.qualityValuesIgo.forEach((Nn,So)=>{Nn===this.videoSpecs.recQualityIgo&&(this.qualityInitState=So)}),qe){const Nn=[];let So=0;this.videoSpecs.resolutions.forEach((Mo,Ao)=>{const Wo="In-game"===Mo?this.translateService.instant("capture.InGame"):Mo;Nn.push(Wo),this.videoSpecs.recQualityIgo===v.xT0.custom?Mo===this.videoSpecs.recResolution&&(So=Ao):So=0}),this.resolutionOptions.length=0,this.resolutionOptions=Nn,this.resolutionInitState=So}if(hn){const Nn=[];let So;this.videoSpecs.frameRates.length||this.videoSpecs.frameRates.push(30),this.videoSpecs.frameRates.forEach((Ao,Wo)=>{Nn.push(Ao+" FPS"),this.videoSpecs.recQualityIgo===v.xT0.custom?Ao===this.videoSpecs.recFramerate&&(So=Wo):Ao===this.videoSpecs.frameRatesDefault&&(So=Wo)}),this.frameRateOptions=[...Nn],this.frameRateInitState=So,this.disableFrameRateRotary=this.videoSpecs.frameRates.length<=1&&this.videoSpecs.recQualityIgo===v.xT0.custom}if(sr){const Nn=[];let So=0;this.videoSpecs.codecs.forEach((Mo,Ao)=>{const Wo="H264/HEVC"===Mo?this.translateService.instant("capture.CodecH264HEVC"):Mo;Nn.push(Wo),this.videoSpecs.recQualityIgo===v.xT0.custom?Mo===this.videoSpecs.recCodec&&(So=Ao):Mo===this.videoSpecs.codecDefault&&(So=Ao)}),this.codecOptions.length=0,this.codecOptions=Nn,this.codecInitState=So,this.showCodecRotary=!!this.videoSpecs.codecs.length,this.isLegacyCodec=this.videoSpecs.codecs[So]===v.m_A.H264_HEVC}}),(0,yr.W)(le=>(this.logger.error("Error in initializeVideoSpecs: ",le),(0,or.of)(this.videoSpecs)))).subscribe()}dtCaptureChanged(Ve){this.logger.info("DT Capture changed: ",Ve.checked),this.shadowPlayService.SetDesktopCaptureEnabled(Ve.checked).pipe((0,S.Q)(this.destroy$)).subscribe()}checkDTCapture(){this.enableDTCapture=this.dcSupported&&!this.irRunning&&!this.irEnabled&&!this.mrInProgress&&!this.highlightsActive}menuClosed(){this.updateVideoSpecs(!1,!1,!1)}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.gZv),r.rXU(v.eo6),r.rXU(v.x_y),r.rXU(v.W1J),r.rXU(v.k$F),r.rXU(v.P15),r.rXU(xe.c$))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-video"]],features:[r.Vt3],decls:9,vars:6,consts:[["fxLayout","column","fxFlex",""],["fxFlex","grow","fxLayout","column"],["class","side-padding","fxLayout","column",4,"ngIf"],["fxLayout","column"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","font-body3 disabled-opacity side-padding",4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxLayout","column",1,"side-padding"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center",1,"desktop-capture-padding-top"],["fxFlex","grow",1,"font-body1","font-color-primary"],["fxFlex","none",1,"settings-padding",3,"ngModelChange","change","disabled","ngModel"],[1,"nv-gap-8"],["class","font-body2 font-color-tertiary desktop-capture-padding-bottom",4,"ngIf"],["fxLayout","column","class","desktop-capture-help-padding",4,"ngIf"],["marginNotReq","true"],[1,"font-body2","font-color-tertiary","desktop-capture-padding-bottom"],["fxLayout","column",1,"desktop-capture-help-padding"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","none",1,"alert-icon-deatils"],["svgIcon","alert_circle",1,"icon-disabled"],[1,"font-body2","font-color-tertiary","irenabled-disable-help"],["fxFlex","none","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","grow",1,"font-sub1","side-padding","gfn-ir-title-padding"],["fxFlex","none",1,"settings-padding","side-padding","gfn-ir-title-padding",3,"ngModelChange","change","ngModel","disabled"],[1,"font-body3","disabled-opacity","side-padding"],["class","side-padding",4,"ngIf"],[1,"side-padding"],["class","font-body2 gfn-ir-sutitle-padding",4,"ngIf"],[4,"ngIf"],[1,"font-body2","gfn-ir-sutitle-padding"],[1,"font-body2","font-color-tertiary","gfn-ir-subtitle-padding"],["valueEntry","true","formatTextAs","Time",1,"slider-left-padding",3,"valueChange","min","max","step","value"],[1,"font-body1","font-color-primary","instant-replay-length-padding-top"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"font-body2","font-color-tertiary","instant-replay-length-padding-bottom",3,"ngClass"],["valueEntry","true","formatTextAs","Time",1,"slider-left-padding",3,"valueChange","min","max","step","disabled","value"],[1,"font-body1","font-color-primary","instant-replay-length-padding-top","side-padding"],[1,"font-body2","font-color-tertiary","instant-replay-length-padding-bottom","side-padding"],["title","capture.Quality",1,"rotary-side-padding",3,"selectionChanged","input","initialState","disabled"],["title","capture.Resolution",1,"rotary-side-padding",3,"selectionChanged","input","initialState","disabled"],["title","capture.FrameRate",1,"rotary-side-padding",3,"selectionChanged","input","initialState","disabled"],["class","rotary-side-padding","title","capture.Codec",3,"input","initialState","disabled","selectionChanged",4,"ngIf"],["class","font-body2 font-color-tertiary codec-rotary-padding-bottom side-padding",4,"ngIf"],[1,"font-body1","font-color-primary","bitrate-header","side-padding"],["fxLayout","column",1,"font-body2","font-color-tertiary","side-padding"],["fxFlex","grow","fxLayoutAlign","space-between center"],["fxFlexFill","","valueEntry","true",1,"slider-left-padding",3,"valueChange","min","max","value","step","disabled"],["title","capture.Codec",1,"rotary-side-padding",3,"selectionChanged","input","initialState","disabled"],[1,"font-body2","font-color-tertiary","codec-rotary-padding-bottom","side-padding"],["fxLayout","row","fxLayoutAlign","start center",1,"bitrate-header","side-padding"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","none",1,"warning-icon"],[1,"font-body2","recording-disable-msg","font-color-tertiary"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0)(1,"div",1),r.DNE(2,ts,11,10,"div",2),r.j41(3,"div",3),r.DNE(4,Ls,5,5,"div",4)(5,Xr,3,3,"span",5)(6,Hs,3,3,"span",5)(7,To,3,2,"div",6)(8,Ca,20,28,"div",6),r.k0s()()()),2&Ve&&(r.R7$(2),r.Y8G("ngIf",qe.showDTCapture),r.R7$(2),r.Y8G("ngIf",!qe.gfeMode),r.R7$(),r.Y8G("ngIf",qe.recordSpecialCase.RECORD_SPECIAL_CASE_4K===qe.disableRecordSpecialCase&&!qe.gfeMode),r.R7$(),r.Y8G("ngIf",qe.recordSpecialCase.RECORD_SPECIAL_CASE_PLAYTEST===qe.disableRecordSpecialCase&&!qe.gfeMode),r.R7$(),r.Y8G("ngIf",qe.recordSpecialCase.RECORD_SPECIAL_CASE_NONE===qe.disableRecordSpecialCase),r.R7$(),r.Y8G("ngIf",qe.showVideoSpecs))},dependencies:[n.YU,n.bT,a.$,dt.X,Me.I,g.DJ,g.sA,g.G2,g.UI,Re.PW,re.BC,re.vS,z.An,Ze.P2,yn.t,oe.tG,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.warning-icon[_ngcontent-%COMP%]{height:24px;width:24px}.isLtr[_nghost-%COMP%] .warning-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .warning-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .warning-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .warning-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .settings-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}.desktop-capture-padding-top[_ngcontent-%COMP%]{padding-top:14px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.irenabled-disable-help[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px;height:24px}.desktop-capture-help-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.instant-replay-length-padding-top[_ngcontent-%COMP%]{padding-top:10px}.instant-replay-length-padding-bottom[_ngcontent-%COMP%]{padding-bottom:10px}.desktop-capture-padding-bottom[_ngcontent-%COMP%]{padding-bottom:14px}.dt-help-height[_ngcontent-%COMP%]{height:24px}.codec-rotary-padding-bottom[_ngcontent-%COMP%]{padding-bottom:10px}.bitrate-header[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.warning-icon[_ngcontent-%COMP%] mat-icon.icon-disabled[_ngcontent-%COMP%]{color:#fff9}.slider-left-padding[_ngcontent-%COMP%]{padding-top:2.5px;padding-bottom:2.5px}.isLtr[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.alert-icon-deatils[_ngcontent-%COMP%]{width:24px;height:24px}.isLtr[_nghost-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .alert-icon-deatils[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}[_nghost-%COMP%]{padding-top:16px}.gfn-ir-title-padding[_ngcontent-%COMP%]{padding-top:14px}.gfn-ir-subtitle-padding[_ngcontent-%COMP%]{padding-bottom:14px}"]}),An})();var yi=d(83486);function Di(lt,An){1<&&(r.j41(0,"div",14)(1,"div",15),r.nrm(2,"mat-icon",16),r.k0s(),r.j41(3,"span",17),r.EFF(4),r.nI1(5,"translate"),r.k0s()()),2<&&(r.R7$(4),r.JRh(r.bMT(5,1,"capture.StopToChange")))}function zi(lt,An){if(1<){const St=r.RV6();r.j41(0,"div"),r.nrm(1,"nv-divider",9),r.j41(2,"div",10)(3,"span"),r.EFF(4),r.nI1(5,"translate"),r.k0s()(),r.j41(6,"div",11)(7,"nv-rotary",12),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.audioTracksChanged(qe))}),r.k0s()(),r.DNE(8,Di,6,3,"div",13),r.k0s()}if(2<){const St=r.XpG();r.R7$(2),r.AVh("disabled-opacity",St.audioTracksDisabled),r.R7$(2),r.JRh(r.bMT(5,8,"audio.AudioTracks")),r.R7$(3),r.Y8G("input",St.audioTracks)("initialState",St.audioTracksInitState)("subTitle",St.audioTrackDescription)("disabled",St.audioTracksDisabled),r.R7$(),r.Y8G("ngIf",St.audioTracksDisabled)}}let Ki=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So){super(qe,hn,So),this.loggingService=Ve,this.shadowPlayService=hi,this.sdkHighlightsService=sr,this.translateService=le,this.telemetryService=Nn,this.minVolume=0,this.maxVolume=100,this.stepVolume=1,this.systemVolume=100,this.volume=100,this.volumeDisabled=!1,this.boost=0,this.boostDisabled=!0,this.audioTracks=["audio.SingleTrack","audio.SeparateTrack"],this.audioTracksInitState=0,this.micSelection=0,this.microphone=[],this.dropdownDisabled=!1,this.mrInProgress=!1,this.irInProgress=!1,this.highlightsActive=!1,this.audioTracksDisabled=!1,this.noMicStr="",this.audioDisabledStr="",this.multiTrackAudioAvailable=!0,this.audioTrackDescription="",this.audioSpecs={systemVolumePercent:0,separateTracks:!1},super.bar("audio.Audio"),this.logger=this.loggingService.getLogger("Audio"),this.logger.info("Constructor"),this.translateService.get("audio.NoMic").subscribe(Mo=>{this.noMicStr=Mo}),this.translateService.get("audio.Disabled").subscribe(Mo=>{this.audioDisabledStr=Mo})}ngOnInit(){super.ngOnInit(),this.initializeMicData(),this.shadowPlayService.getMICDeviceState().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.logger.info("MicDeviceState: ",Ve),(Ve===v.gXb.plugged_in||Ve===v.gXb.plugged_out)&&this.initializeMicData()}),this.shadowPlayService.getAudioSettings().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.logger.info("AudioSettings: ",Ve),this.audioSpecs=Ve,this.systemVolume=Ve.systemVolumePercent,this.audioTracksInitState=Ve.separateTracks?1:0,this.audioTrackDescription=this.audioTracksInitState?"audio.TwoTrackDescription":"audio.OneTrackDescription"}),(0,li.p)([this.shadowPlayService.getMRState().pipe((0,Y.s)(1)),this.shadowPlayService.getInstantReplayRunningStatus(),this.sdkHighlightsService.isHighlightsActive().pipe((0,Y.s)(1))]).pipe((0,S.Q)(this.destroy$)).subscribe(([Ve,qe,hn])=>{this.mrInProgress=Ve,this.irInProgress=qe,this.highlightsActive=hn,this.logger.info("InUse MR: "+this.mrInProgress+" IR: "+this.irInProgress+" HL: "+this.highlightsActive),this.audioTracksDisabled=this.mrInProgress||this.irInProgress||this.highlightsActive})}ngOnDestroy(){this.telemetryService.sendAudioTelemetry({systemVolume:this.systemVolume||0,micVolume:this.volume||0,micBoost:this.boost||0,micSrc:(this.micSelection>this.microphone.length||-1===this.micSelection?$.oX.Undefined:this.microphone[this.micSelection])||$.oX.Undefined,isMultiTrack:this.audioSpecs?.separateTracks?$n.T8.TRUE:$n.T8.FALSE}),this.destroy$.next(!0)}initializeMicData(){this.shadowPlayService.getMicrophoneData().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.logger.info("MicrophoneData: ",Ve),this.allMicSpecs=Ve;const qe=Ve.index,hn=[];if(-1===qe||0===this.allMicSpecs.micSpecs.length)this.boostDisabled=!0,this.volumeDisabled=!0,this.dropdownDisabled=!0,hn.push(this.noMicStr),this.micSelection=0;else{let hi=-1;this.allMicSpecs.micSpecs.forEach((sr,le)=>{sr.enabled&&hn.push(sr.name),le===qe&&(hi=le)}),-1===hi?(this.boostDisabled=!0,this.volumeDisabled=!0,this.dropdownDisabled=!0,hn.push(this.noMicStr)):(this.volume=Ve.micSpecs[hi]?.volumePercent??0,this.boost=Ve.micSpecs[hi]?.boostPercent??0,this.boostDisabled=this.volume<this.maxVolume,this.micSelection=hi,this.volumeDisabled=!1,this.dropdownDisabled=!1,this.boostDisabled=this.volume<this.maxVolume)}this.microphone=hn,this.logger.info("Mics avail: ",this.microphone),this.logger.info("MicSelection: ",this.micSelection)})}systemVolumeChanged(){this.logger.info("System Volume Changed: ",this.systemVolume),this.audioSpecs.systemVolumePercent=this.systemVolume,this.shadowPlayService.setAudioSettings(this.audioSpecs).pipe((0,S.Q)(this.destroy$)).subscribe()}audioTracksChanged(Ve){this.logger.info("Audio Tracks Changed: ",Ve),this.audioSpecs.separateTracks=!!Ve,this.audioTrackDescription=this.audioSpecs.separateTracks?"audio.TwoTrackDescription":"audio.OneTrackDescription",this.shadowPlayService.setAudioSettings(this.audioSpecs).pipe((0,S.Q)(this.destroy$)).subscribe()}micChanged(Ve){this.logger.info("Microphone Changed: ",Ve),this.allMicSpecs.index=Ve,this.volume=this.allMicSpecs.micSpecs[Ve]?.volumePercent??0,this.boost=this.allMicSpecs.micSpecs[Ve]?.boostPercent??0,this.boostDisabled=this.volume<this.maxVolume,this.allMicSpecs.micSpecs[Ve]&&(this.allMicSpecs.micSpecs[Ve].muted=!1),this.shadowPlayService.setMicSettings(this.allMicSpecs).pipe((0,S.Q)(this.destroy$)).subscribe()}volumeChanged(){this.logger.info("Volume Changed: ",this.volume);const Ve=this.allMicSpecs.index;this.allMicSpecs.micSpecs[Ve]?(this.allMicSpecs.micSpecs[Ve].volumePercent=this.volume,this.boostDisabled=this.volume<this.maxVolume,this.shadowPlayService.setMicSettings(this.allMicSpecs).pipe((0,S.Q)(this.destroy$)).subscribe()):this.logger.error("No data initialized for selected mic, data:",this.allMicSpecs)}boostChanged(){this.logger.info("Boost Changed: ",this.boost),this.allMicSpecs.micSpecs.forEach(Ve=>{Ve.boostPercent=this.boost}),this.shadowPlayService.setMicSettings(this.allMicSpecs).pipe((0,S.Q)(this.destroy$)).subscribe()}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.W1J),r.rXU(v.P15),r.rXU(xe.c$),r.rXU(_e.S),r.rXU(v.gZv))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-audio"]],features:[r.Vt3],decls:27,vars:40,consts:[["fxLayout","column","fxFlex",""],[1,"font-sub2","font-color-tertiary","left-data","side-padding"],[1,"font-body1","header1","side-padding"],["valueEntry","true","formatTextAs","Percent",1,"slider-left-padding",3,"valueChange","min","max","step","value"],[1,"font-body2","font-color-tertiary","left-data","side-padding"],[1,"dropdown-extra-padding",3,"selectionChanged","selection","input","disabled"],["fxFlex","none",1,"nv-gap-8"],["valueEntry","true","formatTextAs","Percent",1,"slider-left-padding",3,"valueChange","min","max","step","value","disabled"],[4,"ngIf"],["marginNotReq","true"],[1,"left-data","font-sub2","font-color-tertiary","side-padding"],[1,"rotary-side-padding"],["title","audio.Format",3,"selectionChanged","input","initialState","subTitle","disabled"],["class","side-padding","fxLayout","row","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start",1,"side-padding"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon"],["svgIcon","alert_circle",1,"icon-normal"],["fxFlexAlign","center",1,"font-body2"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0)(1,"span",1),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"span",2),r.EFF(5),r.nI1(6,"translate"),r.k0s(),r.j41(7,"nv-hig-slider",3),r.mxI("valueChange",function(hi){return r.DH7(qe.systemVolume,hi)||(qe.systemVolume=hi),hi}),r.bIt("valueChange",function(){return qe.systemVolumeChanged()}),r.k0s(),r.nrm(8,"nv-divider"),r.j41(9,"span",4),r.EFF(10),r.nI1(11,"translate"),r.k0s(),r.j41(12,"span",2),r.EFF(13),r.nI1(14,"translate"),r.k0s(),r.j41(15,"nv-dropdown",5),r.bIt("selectionChanged",function(hi){return qe.micChanged(hi)}),r.k0s(),r.nrm(16,"div",6),r.j41(17,"span",2),r.EFF(18),r.nI1(19,"translate"),r.k0s(),r.j41(20,"nv-hig-slider",7),r.mxI("valueChange",function(hi){return r.DH7(qe.volume,hi)||(qe.volume=hi),hi}),r.bIt("valueChange",function(){return qe.volumeChanged()}),r.k0s(),r.nrm(21,"div",6),r.j41(22,"span",2),r.EFF(23),r.nI1(24,"translate"),r.k0s(),r.j41(25,"nv-hig-slider",7),r.mxI("valueChange",function(hi){return r.DH7(qe.boost,hi)||(qe.boost=hi),hi}),r.bIt("valueChange",function(){return qe.boostChanged()}),r.k0s(),r.DNE(26,zi,9,10,"div",8),r.k0s()),2&Ve&&(r.R7$(2),r.JRh(r.bMT(3,28,"audio.SystemSounds")),r.R7$(3),r.JRh(r.bMT(6,30,"audio.Volume")),r.R7$(2),r.Y8G("min",qe.minVolume)("max",qe.maxVolume)("step",qe.stepVolume),r.R50("value",qe.systemVolume),r.R7$(3),r.JRh(r.bMT(11,32,"settings.Microphone")),r.R7$(3),r.JRh(r.bMT(14,34,"audio.Source")),r.R7$(2),r.Y8G("selection",qe.micSelection)("input",qe.microphone)("disabled",qe.dropdownDisabled),r.R7$(2),r.AVh("disabled-opacity",qe.volumeDisabled),r.R7$(),r.JRh(r.bMT(19,36,"audio.Volume")),r.R7$(2),r.Y8G("min",qe.minVolume)("max",qe.maxVolume)("step",qe.stepVolume),r.R50("value",qe.volume),r.Y8G("disabled",qe.volumeDisabled),r.R7$(2),r.AVh("disabled-opacity",qe.boostDisabled),r.R7$(),r.JRh(r.bMT(24,38,"audio.Boost")),r.R7$(2),r.Y8G("min",qe.minVolume)("max",qe.maxVolume)("step",qe.stepVolume),r.R50("value",qe.boost),r.Y8G("disabled",qe.boostDisabled),r.R7$(),r.Y8G("ngIf",qe.multiTrackAudioAvailable))},dependencies:[n.bT,a.$,yi.T,dt.X,Me.I,g.DJ,g.sA,g.R$,g.UI,z.An,yn.t,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}[_nghost-%COMP%]{padding:16px 0}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.left-data[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.slider-left-padding[_ngcontent-%COMP%]{padding-top:2.5px;padding-bottom:2.5px}.isLtr[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.isLtr[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .slider-left-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.dropdown-extra-padding[_ngcontent-%COMP%]{padding-top:2px;padding-bottom:2px}.header1[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.header2[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}"]}),An})();var Vi=d(67017),Mr=d(60990),nr=d(40514);const en=lt=>({"side-padding font-body1 font-color-primary":lt}),Wt=(lt,An)=>({"font-sub2 nv-lable":lt,"font-body1 font-color-primary":An}),On=lt=>({"icon-padding side-padding":lt}),Nt=lt=>({shortcutKey:lt});function gi(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-item-button",12),r.bIt("clicked",function(){r.eBV(St);const qe=r.XpG(2);return r.Njj(qe.openURL(qe.learnMoreUrl))}),r.k0s()}}function Bi(lt,An){if(1<){const St=r.RV6();r.j41(0,"div")(1,"div",6)(2,"div",7)(3,"div",8),r.EFF(4),r.nI1(5,"translate"),r.k0s(),r.nrm(6,"div",9),r.nI1(7,"translate"),r.k0s(),r.j41(8,"mat-slide-toggle",10),r.mxI("ngModelChange",function(qe){r.eBV(St);const hn=r.XpG();return r.DH7(hn.isClipboardPasteOn,qe)||(hn.isClipboardPasteOn=qe),r.Njj(qe)}),r.bIt("change",function(){r.eBV(St);const qe=r.XpG();return r.Njj(qe.onSettingsChanged())}),r.k0s()(),r.DNE(9,gi,1,0,"nv-item-button",11),r.nrm(10,"nv-divider"),r.k0s()}if(2<){const St=r.XpG();r.R7$(),r.AVh("side-padding",!St.tvMode),r.R7$(2),r.AVh("nv-label",St.tvMode)("clipboard-title-font",!St.tvMode),r.Y8G("ngClass",r.l_i(18,Wt,St.tvMode,!St.tvMode)),r.R7$(),r.SpI(" ",r.bMT(5,13,"clipboardPaste.title")," "),r.R7$(2),r.AVh("description-padding",!St.tvMode),r.Y8G("innerHtml",r.i5U(7,15,St.clipboardPasteDescription,St.hotkey),r.npT),r.R7$(2),r.R50("ngModel",St.isClipboardPasteOn),r.R7$(),r.Y8G("ngIf",!St.learnMoreCustomizationNeeded)}}function Mi(lt,An){if(1<&&(r.qex(0),r.j41(1,"div",13),r.nrm(2,"mat-icon",14),r.k0s(),r.nrm(3,"span",15),r.nI1(4,"translate"),r.bVm()),2<){const St=r.XpG();r.R7$(),r.AVh("nv-item-icon",St.tvMode),r.Y8G("ngClass",r.eq3(7,On,!St.tvMode)),r.R7$(2),r.Y8G("innerHTML",r.i5U(4,4,St.otherLayoutDescription,r.eq3(9,Nt,St.imeHotkeyCombo)),r.npT)}}let tr=(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao,Wo,ta,bo){super(hn,hi,le,sr),this.loggingService=Ve,this.bridgeService=qe,this.keyboardLayoutService=Nn,this.clipboardService=So,this.settingsService=Mo,this.oscDisplayService=Ao,this.appConfig=Wo,this.localeService=ta,this.featureSupportService=bo,this.kbLayoutDisabled=!1,this.isOtherKBLayoutSelected=!1,this.nvPlaceholderIndex=-1,this.isPlatformBrowser=m.zk.isBrowserPlatform(),this.learnMoreUrl="",this.learnMoreCustomizationNeeded=!1,this.hotkey={},this.tvMode=!1,super.bar("settings.System"),this.logger=this.loggingService.getLogger("System"),this.logger.info("Constructor"),this.myRoute=hi,this.hotkey={pasteHotkey:this.appConfig?.client?.needsDialogForInStreamPaste?"cmd+V":"Ctrl+V"},this.tvMode=this.featureSupportService.isTVMode()}ngOnInit(){super.ngOnInit(),this.learnMoreCustomizationNeeded=this.featureSupportService.isGuestAppFlowWrapper(),this.otherLayoutDescription="settings.keyboardLayout.otherLayoutDescription",this.keyboardLayoutService.fetchClientIMEHotkeys.pipe((0,S.Q)(this.destroy$)).subscribe(hn=>{this.imeHotkeyCombo=`<b> ${hn} </b>`}),this.keyboardLayoutService.readCachedKeyboardLayout().pipe((0,S.Q)(this.destroy$)).subscribe(hn=>this.onKBLayoutChange(hn)),this.initialize(),this.clipboardService.gxtClipboardPasteConfig().pipe((0,Y.s)(1)).subscribe(hn=>{this.isClipboardPasteEnable=hn?.isEnabled||!1}),this.settingsService.getSettingsData().pipe((0,Y.s)(1)).subscribe(hn=>{this.isClipboardPasteOn=hn?.clipboardPaste||!1;const hi=this.learnMoreCustomizationNeeded?"guestApp.":"";this.clipboardPasteDescription=this.isClipboardPasteOn?`clipboardPaste.${hi}turnOff`:`clipboardPaste.${hi}turnOn`});const Ve=this.appConfig.redirect.serverUrl,qe=K.niw.GFN_PC_HELP_PASTE;this.localeService.localeChanged.pipe((0,S.Q)(this.destroy$)).subscribe(hn=>{this.learnMoreUrl=`${Ve}${hn}&page=${qe}`},hn=>{this.logger.error("Locale info errored out",hn)})}openURL(Ve){this.logger.info("Open URL: ",Ve),this.oscDisplayService.closeOSC(),this.bridgeService.executeCommand(ee.Ts.Common.Windowcontrol.Minimize).pipe((0,S.Q)(this.destroy$)).subscribe(),window.open(Ve)}initialize(){this.keyboardLayoutService.getKeyboardLayoutsList().pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.keyboardLayouts=Ve,this.setDataForNvDropdown(),this.isPlatformBrowser?this.addPlaceholderOption(this.keyboardLayoutService.getBrowserPlaceholder()):this.initializeNativePlaceholder(),this.initializeSelectionFromCache()},Ve=>{this.logger.info("Error getting the list of keyboard layouts : ",Ve)})}onSettingsChanged(){const Ve=this.learnMoreCustomizationNeeded?"guestApp.":"";this.clipboardPasteDescription=this.isClipboardPasteOn?`clipboardPaste.${Ve}turnOff`:`clipboardPaste.${Ve}turnOn`,this.isClipboardPasteOn?this.clipboardService.detectClipboardChange?.next(!0):this.clipboardService.sendClientDataAvailable(!1).pipe((0,Y.s)(1)).subscribe(),this.saveClipboardConfigToSharedStorage(this.isClipboardPasteOn)}saveClipboardConfigToSharedStorage(Ve){this.settingsService.storeChangedSettings({settingType:K.oY8.ClipboardPaste,selectedOption:Ve})}onKBLayoutChange(Ve){this.logger.info("IGO Keyboard layout changed to: "+(Ve?.code||"Auto/Default"));const qe={};Ve?.code?(qe.kbLayout=Ve.code,qe.allowKeyboardLayoutChange=!1):m.zk.isBrowserPlatform()?qe.kbLayout=this.keyboardLayoutService.getDefaultKBLayoutCode():(qe.kbLayout="",qe.allowKeyboardLayoutChange=!0),this.logger.info(`Params: kbLayout:${qe.kbLayout}, allowKeyboardLayoutChange:${qe.allowKeyboardLayoutChange}`),(0,Vt.isEmpty)(qe)||this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.SetKeyboardLayout,qe).pipe((0,S.Q)(this.destroy$)).subscribe(hn=>{this.logger.info("Keyboard layout changed from IGO response: "+hn)},hn=>{this.logger.info("Some error while changing keyboard layout from IGO : "+hn)})}onKBLayoutSelect(Ve){if(this.logger.info("Keyboard layout changed from IGO selectedIndex: "+Ve),Ve>=0){const qe=this.nvKeyboardLayouts.filter((hn,hi)=>hi===Ve)[0];if(this.logger.info("selectedVal: "+qe),qe){const hn=this.getKeyboardLayoutByName(qe);this.logger.info("selectedKeyboardLayout: "+hn),this.selectKeyboardLayout(hn)}}}addPlaceholderOption(Ve){if(this.logger.info("adding Auto/Default option: "+Ve),Ve)if(-1!==this.nvPlaceholderIndex&&this.nvKeyboardLayouts[this.nvPlaceholderIndex]){const qe=this.nvKeyboardLayouts.slice();qe[this.nvPlaceholderIndex]=Ve,this.nvKeyboardLayouts=qe.slice()}else this.nvKeyboardLayouts=[Ve,...this.nvKeyboardLayouts],this.nvPlaceholderIndex=0,this.kbLayoutSelection>0&&this.kbLayoutSelection++}getKeyboardLayoutByName(Ve){return this.keyboardLayouts?.filter(qe=>qe.name===Ve)[0]}setDataForNvDropdown(){const Ve=this.keyboardLayouts;Ve&&Ve.length>0&&(this.nvKeyboardLayouts=Ve.map(qe=>qe.name))}setKBLayoutSelection(Ve){Ve?.name?(this.logger.info(`Selecting ${Ve.name} option in nv-dropdown.`),this.kbLayoutSelection=this.nvKeyboardLayouts.indexOf(Ve.name)):Ve||(this.logger.info("Selecting Auto/Default option in nv-dropdown."),this.nvPlaceholderIndex>=0&&(this.kbLayoutSelection=this.nvPlaceholderIndex))}selectKeyboardLayout(Ve){this.logger.info("Keyboard layout override event triggered"),this.keyboardLayoutService.selectKeyboardLayout(Ve,this.previousKeyboardLayout,this.detectedKeyboardLayout),Ve?(this.setOtherKBLayoutFlag(Ve.params?.isOtherLayout),this.previousKeyboardLayout=Ve):m.zk.isBrowserPlatform()?(this.setOtherKBLayoutFlag(this.keyboardLayoutService.isOtherDefaultLayout),this.previousKeyboardLayout=this.keyboardLayoutService.getDefaultKBLayout(),this.logger.info(`Default (${this.previousKeyboardLayout?.name}) ${this.previousKeyboardLayout?.code} keyboard layout selected.`)):(this.previousKeyboardLayout=this.detectedKeyboardLayout,this.logger.info("Auto keyboard layout selected."),this.keyboardLayoutService.isAutoOtherKBLayout(this.keyboardLayouts).pipe((0,S.Q)(this.destroy$)).subscribe(qe=>{this.setOtherKBLayoutFlag(qe)})),this.setKBLayoutSelection(Ve)}initializeNativePlaceholder(){this.keyboardLayoutService.onKBLayoutChange$.pipe((0,S.Q)(this.destroy$)).subscribe(Ve=>{this.logger.info("Detected Keyboard Layout from OS: ",Ve),this.detectedKeyboardLayout=this.keyboardLayouts.find(qe=>qe.code===Ve&&!qe.params?.isOtherLayout),this.logger.info("detectedKeyboardLayout: ",this.detectedKeyboardLayout),null!=this.detectedKeyboardLayout?this.addPlaceholderOption(this.keyboardLayoutService.getNativePlaceholder(this.detectedKeyboardLayout)):(this.addPlaceholderOption(this.keyboardLayoutService.getNativePlaceholder(null)),this.detectedKeyboardLayout={name:"",code:Ve}),this.previousKeyboardLayout=this.detectedKeyboardLayout},Ve=>{this.logger.info("Failed to detect Keyboard Layout from OS. Defaulting to fallback placeholder.",Ve),this.addPlaceholderOption(this.keyboardLayoutService.getNativePlaceholder(this.detectedKeyboardLayout))})}setOtherKBLayoutFlag(Ve){this.isOtherKBLayoutSelected=Ve}initializeSelectionFromCache(){this.keyboardLayoutService.readCachedKeyboardLayout().pipe((0,Y.s)(1)).subscribe(Ve=>{let qe;if(this.logger.info("Keyboard layout cache read response : ",Ve),Ve&&Object.keys(Ve).length>0){const hn=Ve.params?.isOtherLayout;this.setOtherKBLayoutFlag(hn),qe=this.keyboardLayouts.find(hn?hi=>hi.code===Ve.code&&hi.params?.isOtherLayout:hi=>hi.code===Ve.code&&!hi.params?.isOtherLayout),qe?this.previousKeyboardLayout=qe:this.isPlatformBrowser?(this.setOtherKBLayoutFlag(this.keyboardLayoutService.isOtherDefaultLayout),this.logger.info(`Browser Platform - cached ${Ve.code} keyboardLayout not found in keyboardLayouts list. Applying Default keyboard layout.`),this.keyboardLayoutService.removeCachedKeyboardLayout().pipe((0,S.Q)(this.destroy$)).subscribe(hi=>this.logger.info("Keyboard layout cache cleared : ",hi),hi=>this.logger.info("Keyboard layout cache clear failed : ",hi)),this.previousKeyboardLayout=this.keyboardLayoutService.getDefaultKBLayout()):this.previousKeyboardLayout=this.detectedKeyboardLayout}else this.isPlatformBrowser?(this.setOtherKBLayoutFlag(this.keyboardLayoutService.isOtherDefaultLayout),this.logger.info("Browser Platform detected with empty cache."),this.previousKeyboardLayout=this.keyboardLayoutService.getDefaultKBLayout()):this.keyboardLayoutService.isAutoOtherKBLayout(this.keyboardLayouts).pipe((0,S.Q)(this.destroy$)).subscribe(hn=>{this.setOtherKBLayoutFlag(hn)});this.setKBLayoutSelection(qe)},Ve=>this.logger.info("Keyboard layout cache read error : ",Ve))}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(m.NZ),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.eo6),r.rXU(v.gZv),r.rXU(Vi.F),r.rXU(K.WWE),r.rXU(K.h$Q),r.rXU(v.Bqk),r.rXU(K.Vk6),r.rXU(m.iH),r.rXU(v.Rvq))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-system"]],features:[r.Vt3],decls:9,vars:16,consts:[["fxLayout","column","fxFlex","",1,"settings-system","nv-hig"],[4,"ngIf"],[1,"igo-keyboard-layout-container"],[1,"nv-label",3,"ngClass"],[3,"selectionChanged","isBackgroundColorReq","selection","disabled","input","dividerIndex","maxHeight"],["fxLayout","row",1,"settings-desc","nv-label"],["fxLayout","row","fxLayoutAlign","start",1,"clipboard-option-container"],["fxLayout","column"],[1,"font-sub2","clipboard-title",3,"ngClass"],[1,"clipboard-description",3,"innerHtml"],[1,"clipboard-toggle",3,"ngModelChange","change","ngModel"],["titleString","common.learnMore","urlIcon","launch",3,"clicked",4,"ngIf"],["titleString","common.learnMore","urlIcon","launch",3,"clicked"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"ngClass"],["svgIcon","info",1,"icon-info"],[3,"innerHTML"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0),r.DNE(1,Bi,11,21,"div",1),r.j41(2,"div",2)(3,"div",3),r.EFF(4),r.nI1(5,"translate"),r.k0s(),r.j41(6,"nv-dropdown",4),r.bIt("selectionChanged",function(hi){return qe.onKBLayoutSelect(hi)}),r.k0s(),r.j41(7,"div",5),r.DNE(8,Mi,5,11,"ng-container",1),r.k0s()()()),2&Ve&&(r.R7$(),r.Y8G("ngIf",qe.isClipboardPasteEnable),r.R7$(2),r.Y8G("ngClass",r.eq3(14,en,!qe.tvMode)),r.R7$(),r.SpI(" ",r.bMT(5,12,"settings.KeyboardLayout")," "),r.R7$(2),r.Y8G("isBackgroundColorReq",qe.tvMode)("selection",qe.kbLayoutSelection)("disabled",qe.kbLayoutDisabled)("input",qe.nvKeyboardLayouts)("dividerIndex",1)("maxHeight",350),r.R7$(),r.AVh("other-kb-layout",!qe.tvMode),r.R7$(),r.Y8G("ngIf",qe.isOtherKBLayoutSelected))},dependencies:[n.YU,n.bT,a.$,yi.T,h.j,Me.I,g.DJ,g.sA,g.UI,Re.PW,re.BC,re.vS,z.An,Ze.P2,oe.tG,Mr.r,nr.e,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.clipboard-title[_ngcontent-%COMP%]{text-transform:lowercase}.clipboard-title[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.learn-more[_ngcontent-%COMP%]{margin-top:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16x}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16x}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16x}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16x}.clipboard-title-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffffe6;padding-top:14px;padding-bottom:0}.tv-view[_ngcontent-%COMP%] .clipboard-title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .clipboard-title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .clipboard-title-font[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .clipboard-title-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .clipboard-title-font[_ngcontent-%COMP%]{color:#ffffffd9}.settings-system[_ngcontent-%COMP%]{max-width:100%;padding:16px 0;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-system[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-system[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-system[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-system[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-system[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-system[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.settings-system[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{color:#ffffffb3}.clipboard-toggle[_ngcontent-%COMP%]{padding-top:10px}.isLtr[_nghost-%COMP%] .clipboard-toggle[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .clipboard-toggle[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .clipboard-toggle[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .clipboard-toggle[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .clipboard-toggle[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .clipboard-toggle[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.settings-desc[_ngcontent-%COMP%] .icon-info[_ngcontent-%COMP%]{color:#fff9!important}.clipboard-description[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;color:#fff9}.tv-view[_ngcontent-%COMP%] .clipboard-description[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .clipboard-description[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .clipboard-description[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] .clipboard-description[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .clipboard-description[_ngcontent-%COMP%]{color:#ffffffd9}.isLtr[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.other-kb-layout[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px}.description-padding[_ngcontent-%COMP%]{padding-bottom:14px}.nv-label[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .nv-label[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-label[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] .nv-label[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .nv-label[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] .settings-system[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-system[_ngcontent-%COMP%]{padding:32px}.tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%]{margin-bottom:16px}.tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft.tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] .clipboard-option-container[_ngcontent-%COMP%] div.clipboard-description[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-label[_ngcontent-%COMP%]{font-size:28px;line-height:40px}"]}),An})();var mo=d(31315),Bo=d(83915),is=d(2688);const ha=lt=>({arg:lt}),Ys=lt=>({"standard-holder24 standard-holder24-margin":lt}),Po=(lt,An,St,Ve)=>({"left-data":lt,header_max_bit:An,"streaming-setting-name-padding":St,"setting-name-padding-top":Ve}),cl=(lt,An)=>({"toggle-padding header3":lt,"toggle-padding-top":An}),oa=(lt,An)=>({header4:lt,"setting-subname-padding-bottom":An}),Ht=(lt,An)=>({"font-color-tertiary slider-text":lt,"slider-value-text":An}),Tt=lt=>({bitRateValue:lt}),Ln=lt=>({bitDepth:lt}),jt=lt=>({"section-title-font side-padding":lt}),ti=lt=>({"font-sub3":lt});function br(lt,An){if(1<&&(r.j41(0,"span",26),r.EFF(1),r.k0s()),2<){const St=r.XpG();r.AVh("profile-description-font",!St.tvMode),r.R7$(),r.JRh(St.bitRateString)}}function wo(lt,An){if(1<){const St=r.RV6();r.j41(0,"mat-slide-toggle",27),r.mxI("ngModelChange",function(qe){r.eBV(St);const hn=r.XpG();return r.DH7(hn.enableBitRateSlider,qe)||(hn.enableBitRateSlider=qe),r.Njj(qe)}),r.bIt("change",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.maxBitRateToggleEvent(qe))}),r.k0s()}if(2<){const St=r.XpG();r.Y8G("ngClass",r.l_i(2,cl,St.tvMode,!St.tvMode)),r.R50("ngModel",St.enableBitRateSlider)}}function zs(lt,An){if(1<&&(r.j41(0,"div",28),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG();r.Y8G("ngClass",r.l_i(4,oa,St.tvMode,!St.tvMode)),r.R7$(),r.SpI(" ",r.bMT(2,2,"settings.gameplay.MaxBitRateHelp")," ")}}function sa(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",29)(1,"div",30)(2,"nv-hig-slider",31),r.mxI("valueChange",function(qe){r.eBV(St);const hn=r.XpG();return r.DH7(hn.bitRate,qe)||(hn.bitRate=qe),r.Njj(qe)}),r.bIt("input",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.onBitRateSliderChanged(qe))}),r.k0s()(),r.j41(3,"span",32),r.EFF(4),r.nI1(5,"translate"),r.k0s()()}if(2<){const St=r.XpG();r.AVh("slider_padding",St.tvMode),r.R7$(2),r.AVh("slider-padding",!St.tvMode),r.Y8G("min",St.BitRateValues.bitRateMin)("max",St.BitRateValues.bitRateMax),r.R50("value",St.bitRate),r.Y8G("step",St.bitRateStep),r.R7$(),r.Y8G("ngClass",r.l_i(13,Ht,St.tvMode,!St.tvMode)),r.R7$(),r.JRh(r.i5U(5,10,"settings.gameplay.bitRateValue",r.eq3(16,Tt,St.bitRate)))}}function fs(lt,An){if(1<&&r.nrm(0,"img",33),2<){const St=r.XpG();r.Y8G("src",St.resolutionLabel,r.B4B)}}function zr(lt,An){if(1<&&(r.j41(0,"div",36)(1,"span",16),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"div",7)(5,"span",37),r.EFF(6),r.nI1(7,"translate"),r.k0s()()()),2<){const St=r.XpG(2);r.R7$(2),r.JRh(r.bMT(3,2,"settings.gameplay.VSync")),r.R7$(4),r.JRh(r.bMT(7,4,St.vsyncString))}}function eo(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",38)(1,"nv-rotary",39),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG(2);return r.Njj(hn.rotaryVSyncChanged(qe))}),r.k0s()()}if(2<){const St=r.XpG(2);r.R7$(),r.Y8G("input",St.rotaryVSyncOptions)("initialState",St.vSyncSelection)("disabled",St.vsyncDisabled1||St.vsyncDisabled2||St.cloudGsyncDisablingVsync)}}function Io(lt,An){if(1<&&(r.j41(0,"div"),r.DNE(1,zr,8,6,"div",34)(2,eo,2,3,"div",35),r.k0s()),2<){const St=r.XpG();r.R7$(),r.Y8G("ngIf",!St.custom),r.R7$(),r.Y8G("ngIf",St.custom)}}function Jr(lt,An){1<&&(r.j41(0,"span",42),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"settings.streamingProfiles.vrrDisplay")))}function kr(lt,An){1<&&(r.j41(0,"span",42),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"settings.streamingProfiles.vrrGsyncDisplay")))}function Sa(lt,An){if(1<&&(r.j41(0,"div",5),r.DNE(1,Jr,3,3,"span",40)(2,kr,3,3,"span",40),r.j41(3,"div",7)(4,"span",41),r.EFF(5),r.nI1(6,"translate"),r.k0s()()()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(),r.Y8G("ngIf",!St.isGsyncDisplay),r.R7$(),r.Y8G("ngIf",St.isGsyncDisplay),r.R7$(3),r.JRh(r.bMT(6,5,St.cloudGsyncStatus))}}function rl(lt,An){if(1<&&(r.j41(0,"div",5)(1,"span",42),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"div",7)(5,"span",41),r.EFF(6),r.nI1(7,"translate"),r.k0s()()()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(2),r.JRh(r.bMT(3,4,"settings.streamingProfiles.reflex")),r.R7$(4),r.JRh(r.bMT(7,6,St.reflexStatus))}}function as(lt,An){if(1<&&(r.j41(0,"div",5)(1,"span",16),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"div",7)(5,"span",19),r.EFF(6),r.nI1(7,"translate"),r.k0s()()()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(),r.AVh("streaming-setting-name-font",!St.tvMode)("font-color-primary",St.tvMode),r.R7$(),r.JRh(r.bMT(3,12,"settings.streamingProfiles.hdrStreaming")),r.R7$(2),r.AVh("font-color-secondary",St.tvMode),r.R7$(),r.AVh("profile-description-font",!St.tvMode),r.R7$(),r.JRh(r.bMT(7,14,St.hdrStatus))}}function ho(lt,An){if(1<&&(r.j41(0,"div",5)(1,"span",42),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"div",7)(5,"span",41),r.EFF(6),r.nI1(7,"translate"),r.k0s()()()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(2),r.JRh(r.bMT(3,4,"settings.streamingProfiles.colorPrecision")),r.R7$(4),r.JRh(r.i5U(7,6,"settings.streamingProfiles.colorPrecisionValue",r.eq3(9,Ln,St.bitDepthValue)))}}function rr(lt,An){if(1<&&(r.j41(0,"span",20),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG(2);r.AVh("font-color-secondary",St.tvMode)("profile-description-font",!St.tvMode),r.R7$(),r.JRh(r.bMT(2,5,St.drcString))}}function ga(lt,An){if(1<){const St=r.RV6();r.j41(0,"mat-slide-toggle",47),r.mxI("ngModelChange",function(qe){r.eBV(St);const hn=r.XpG(2);return r.DH7(hn.adjustPoorNetwork,qe)||(hn.adjustPoorNetwork=qe),r.Njj(qe)}),r.bIt("change",function(qe){r.eBV(St);const hn=r.XpG(2);return r.Njj(hn.adjustPoorNetworkToggleEvent(qe))}),r.k0s()}if(2<){const St=r.XpG(2);r.R50("ngModel",St.adjustPoorNetwork)}}function aa(lt,An){if(1<&&(r.j41(0,"div",43)(1,"div",44),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.DNE(4,rr,3,7,"span",45)(5,ga,1,1,"mat-slide-toggle",46),r.k0s()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(),r.AVh("streaming-setting-name-font",!St.tvMode)("font-color-primary",St.tvMode)("font-sub1",!St.tvMode),r.R7$(),r.SpI(" ",r.bMT(3,11,"settings.gameplay.AdjustPoorNetwork")," "),r.R7$(2),r.Y8G("ngIf",!St.enableDrcSlider),r.R7$(),r.Y8G("ngIf",St.enableDrcSlider)}}function qs(lt,An){if(1<&&(r.j41(0,"span",19),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG(2);r.AVh("profile-description-font",!St.tvMode),r.R7$(),r.JRh(r.bMT(2,3,St.l4sStatus))}}function Ia(lt,An){if(1<&&(r.j41(0,"span",19),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG(2);r.AVh("profile-description-font",!St.tvMode),r.R7$(),r.JRh(r.bMT(2,3,"settings.streamingProfiles.l4sTipText"))}}function ea(lt,An){if(1<&&(r.j41(0,"div",5)(1,"span",16),r.EFF(2),r.nI1(3,"translate"),r.k0s(),r.j41(4,"div",7),r.DNE(5,qs,3,5,"span",48)(6,Ia,3,5,"span",48),r.k0s()()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(),r.AVh("streaming-setting-name-font",!St.tvMode)("font-color-primary",St.tvMode),r.R7$(),r.JRh(r.bMT(3,11,"settings.streamingProfiles.l4sSetting")),r.R7$(2),r.AVh("font-color-secondary",St.tvMode),r.R7$(),r.Y8G("ngIf",!St.showl4sTipText),r.R7$(),r.Y8G("ngIf",St.showl4sTipText)}}function za(lt,An){if(1<){const St=r.RV6();r.j41(0,"nv-rotary",52),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG(2);return r.Njj(hn.rotaryDetailEnhancementChanged(qe,!0))}),r.k0s()}if(2<){const St=r.XpG(2);r.Y8G("input",St.detailEnhancementOptions)("initialState",St.activeSharpnessSetting.id)}}function dl(lt,An){if(1<){const St=r.RV6();r.j41(0,"div",49),r.nrm(1,"nv-divider"),r.j41(2,"span",2),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"nv-rotary",50),r.bIt("selectionChanged",function(qe){r.eBV(St);const hn=r.XpG();return r.Njj(hn.rotaryUpscaleModeChanged(qe,!0))}),r.k0s(),r.DNE(6,za,1,2,"nv-rotary",51),r.k0s()}if(2<){const St=r.XpG();r.R7$(2),r.AVh("font-color-tertiary",St.tvMode),r.Y8G("ngClass",r.eq3(9,jt,!St.tvMode)),r.R7$(),r.JRh(r.bMT(4,7,"settings.gameplay.ResolutionUpscaling")),r.R7$(2),r.Y8G("input",St.upscaleModeRotaryOptions)("initialState",St.upscaleMode.id),r.R7$(),r.Y8G("ngIf",St.showSharpnessEnhanced||St.isAiSelected)}}function Co(lt,An){1<&&(r.j41(0,"span"),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"commonLabels.On")))}function js(lt,An){1<&&(r.j41(0,"span"),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<&&(r.R7$(),r.JRh(r.bMT(2,1,"commonLabels.Off")))}function Ts(lt,An){if(1<&&(r.j41(0,"span",59),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG(2);r.AVh("profile-description-font",!St.tvMode)("font-color-tertiary",St.tvMode),r.R7$(),r.JRh(r.bMT(2,5,"settings.gameplay.IggsDescription"))}}function ks(lt,An){if(1<&&(r.j41(0,"span",59),r.EFF(1),r.nI1(2,"translate"),r.k0s()),2<){const St=r.XpG(2);r.AVh("profile-description-font",!St.tvMode)("font-color-tertiary",St.tvMode),r.R7$(),r.JRh(r.bMT(2,5,"settings.gameplay.IggsDescriptionOff"))}}function la(lt,An){if(1<&&(r.j41(0,"div",53),r.nrm(1,"nv-divider",54),r.j41(2,"div",55)(3,"span",56),r.EFF(4),r.nI1(5,"translate"),r.k0s(),r.j41(6,"div",57),r.DNE(7,Co,3,3,"span",21)(8,js,3,3,"span",21),r.k0s()(),r.DNE(9,Ts,3,7,"span",58)(10,ks,3,7,"span",58),r.k0s()),2<){const St=r.XpG();r.AVh("side-padding",!St.tvMode),r.R7$(3),r.AVh("streaming-setting-name-font",!St.tvMode)("font-color-primary",St.tvMode),r.R7$(),r.JRh(r.bMT(5,14,"settings.gameplay.InGameGraphicsSettings")),r.R7$(2),r.AVh("profile-description-font",!St.tvMode),r.Y8G("ngClass",r.eq3(16,ti,St.tvMode)),r.R7$(),r.Y8G("ngIf",St.saveInGameGraphics),r.R7$(),r.Y8G("ngIf",!St.saveInGameGraphics),r.R7$(),r.Y8G("ngIf",St.saveInGameGraphics),r.R7$(),r.Y8G("ngIf",!St.saveInGameGraphics)}}let vl=(()=>{var lt;class An extends i{get bitRate(){return this._bitRate}set bitRate(Ve){Ve!==this._bitRate&&(this._bitRate=Ve,this.logger.info("BitRate Slider value: ",Ve),this.bitRateChange.emit(this._bitRate))}constructor(Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao,Wo,ta){super(hn,hi,sr,null,le),this.injector=Ve,this.loggingService=qe,this.translateService=Nn,this.bridgeService=So,this.ecommerceService=Mo,this.telemetryHelperService=Ao,this.resolutionUpscaleService=Wo,this.featureSupportService=ta,this.custom=!1,this.qualityHeader="",this.qualityHelper="",this.gbPerHour=0,this.enableBitRateSlider=!1,this.hideBitRateSlider=!1,this.bitRateString="",this.bitRateStep=1,this.resolution="",this.resolutionLabel="",this.frameRate="",this.adjustPoorNetwork=void 0,this.vsyncString="",this.vSyncSelection=0,this.rotaryVSyncOptions=["commonLabels.Off","commonLabels.On","settings.gameplay.Adaptive"],this.vsyncDisabled1=!1,this.vsyncDisabled2=!1,this.cloudGsyncDisablingVsync=!1,this.showVsync=!0,this.showDrc=!0,this.hdrStatus="",this.showReflex=!1,this.reflexStatus="",this.showCloudGsync=!1,this.cloudGsyncStatus="",this.isCloudGsyncEnabled=!1,this.isGsyncDisplay=!1,this.l4sStatus="",this.showl4sTipText=!1,this.showBitDepth=!1,this.showInGameGraphicsSection=!1,this.upscalingShow=!1,this.showSharpnessEnhanced=!1,this.isAiSelected=!1,this.upscaleFilters=[],this.upscaleModeRotaryOptions=[],this.telemetryUpscalingData={upscaleMode:0,detailEnhancement:0},this.telemetryUpscalingDataUponEntry={upscaleMode:0,detailEnhancement:0},this.detailEnhancementOptions=[],this.sharpnessTurnedOff=!1,this.enableDrcSlider=!1,this.drcString="commonLabels.On",this.tvMode=!1,this.bitRateChange=new r.bkB,this._bitRate=0,super.bar("settings.Gameplay"),this.logger=this.loggingService.getLogger("Gameplay"),this.showDrc=this.featureSupportService.isRunTimeAdjustPoorNetworkToggleSupported(),this.showVsync=this.featureSupportService.isRunTimeVSYNCConfigSupported(),this.tvMode=this.featureSupportService.isTVMode()}ngOnInit(){super.ngOnInit(),this.streamingProfileService=this.injector.get(K.xfC),this.settingsService=this.injector.get(K.h$Q),(0,mo.zV)([this.ecommerceService.getUserMembership(),this.streamingProfileService.initializeStreamingProfiles$()]).pipe((0,S.Q)(this.destroy$)).subscribe(([Ve,qe])=>{this.ecommerceService.isFeatureAvailableToUser(K.N1D.IN_GAME_SETTINGS_PERSISTENCE_ENABLED,K.q3U.SUPPORT_IN_GAME_SETTINGS_PERSISTENCE)&&this.detectInGameGraphics(Ve),this.showHDR=this.ecommerceService.isFeatureAvailableToUser(K.N1D.HDR_ENABLED,K.q3U.SUPPORT_HDR),this.getSettingsData(),this.BitRateValues=this.streamingProfileService.getBitRateValues()}),this.isHdrUpsell=this.ecommerceService.featureUpsellAvailable(K.q3U.SUPPORT_HDR)}ngOnDestroy(){this.streamingQualityCheckExitTelemetry(),this.resolutionUpscalingCheckExitTelemetry(),super.ngOnDestroy()}getSettingsData(){(0,mo.zV)([this.settingsService.getSettingsData(),this.streamingProfileService.getStreamingProfile(),this.gfnInfoService.isIgssEnabledInConfig(),this.streamingProfileService.readCustomProfileData()]).pipe((0,S.Q)(this.destroy$)).subscribe(([Ve,qe,hn,hi])=>{this.logger.info("Shared Settings: ",Ve),this.logger.info("Current Profile: ",qe);const sr={...qe};sr.maxBitrate/=1e3,this.gameLaunchedWithL4S=sr?.l4sEnabled,this.selectedProfile=(0,Vt.isNil)(Ve.streamingProfiles)?K.SBM.Balanced:Ve.streamingProfiles,this.selectedProfile!==K.SBM.Custom?(this.custom=!1,this.presetProfileData=sr,this.logger.info("Preset Profile Data: ",this.presetProfileData),this.streamingProfileService.calculateDataUsage(this.presetProfileData.width,this.presetProfileData.height,this.presetProfileData.fps,this.presetProfileData.maxBitrate).subscribe(le=>{this.presetProfileData.dataUsage=le,this.processPresetData()}),this.telemetryHelperService.sendGameplayEntrySetting(this.selectedProfile),this.queryUpscalingFilters(Ve.upScalingResolutionId,Ve.aiSharpnessValue)):(this.custom=!0,this.presetProfileData=null,this.isIgssEnabled=hn,this.getCustomData(hi??sr),this.telemetryHelperService.sendGameplayEntrySetting(this.selectedProfile),this.queryUpscalingFilters(Ve.upScalingResolutionId,Ve.aiSharpnessValue))})}processPresetData(){this.selectedProfile===K.SBM.Balanced?(this.qualityHeader="settings.gameplay.Balanced",this.qualityHelper="settings.gameplay.BalancedHelp",this.vsyncString="settings.gameplay.Adaptive",this.translateService.get("commonLabels.Auto").subscribe(hi=>{this.bitRateString=hi})):this.selectedProfile===K.SBM.DataSaver?(this.qualityHeader="settings.gameplay.DataSaver",this.qualityHelper="settings.gameplay.DataSaverHelp",this.vsyncString="settings.gameplay.Adaptive",this.translateService.get("settings.gameplay.bitRateValue",{bitRateValue:this.presetProfileData.maxBitrate}).subscribe(hi=>{this.bitRateString=hi})):this.selectedProfile===K.SBM.Competitive&&(this.qualityHeader="settings.gameplay.Competitive",this.qualityHelper="settings.gameplay.CompetitiveHelp",this.vsyncString="commonLabels.Off",this.translateService.get("commonLabels.Auto").subscribe(hi=>{this.bitRateString=hi})),this.gbPerHour=this.presetProfileData.dataUsage;const Ve=this.getResolution(this.presetProfileData.width,this.presetProfileData.height);this.setResolution(Ve),this.frameRate=this.presetProfileData.fps.toString(),this.hdrStatus=this.streamingProfileService.getHdrLabel(this.presetProfileData.hdrStreaming,this.isHdrUpsell),this.checkifCloudGsyncEnabled(this.presetProfileData.cloudGsync),this.checkifReflexEnabled(this.presetProfileData.reflex),this.checkifL4SEnabled(this.presetProfileData.l4sEnabled),this.checkIfBitDepthEnabled(this.presetProfileData.bitDepth)}getCustomData(Ve){this.customData=Ve,this.logger.info("Custom Data: ",this.customData),this.customDataUponEntry=(0,Vt.cloneDeep)(this.customData),this.processCustomData()}storeCustomProfileData(){return this.logger.info("StoreCustomProfileData: ",this.customData),this.streamingProfileService.storeCustomProfileData(this.customData).pipe((0,Mt.M)(Ve=>Ve))}updateDataUsage(){return this.streamingProfileService.calculateDataUsage(this.customData.width,this.customData.height,this.customData.fps,this.customData.maxBitrateAuto?0:this.customData.maxBitrate).pipe((0,S.Q)(this.destroy$),(0,Qe.ZZ)(Ve=>(this.customData.dataUsage=Ve,this.gbPerHour=this.customData.dataUsage,this.storeCustomProfileData().pipe((0,Y.s)(1),(0,Mt.M)(()=>this.logger.info("Custom profile data stored successfully")),(0,yr.W)(qe=>(this.logger.error("Error storing custom profile data: ",qe),(0,or.of)(!1)))))))}storeVSyncInStreamerConfig(Ve){this.settingsService.setVsyncValue(Ve)}getResolution(Ve,qe){const hi={width:Ve,height:qe,ratio:this.streamingProfileService.calculateAspectRatio(Ve,qe),enabled:!0};return this.resolutionLabel=this.streamingProfileService.getResolutionLabel(Ve,qe),hi}setResolution(Ve){this.translateService.get("settings.gameplay.ResView",{resWidth:Ve.width,resHeight:Ve.height,aspectRatio:Ve.ratio}).subscribe(qe=>{this.resolution=qe}),this.logger.info("Resolution String: ",this.resolution)}onCustomProfileFieldChange(Ve){let qe=!0;switch(Ve){case K.M0g.maxBitrateValue:qe=!1,this.streamingProfileService.getAutoMaxBitrateValue(this.customData.width,this.customData.height,this.customData.fps).pipe((0,S.Q)(this.destroy$),(0,Qe.ZZ)(hn=>(this.customData.maxBitrate=hn,this.bitRate=this.customData.maxBitrate,this.customData.maxBitrateAuto?this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.SetStreamingMaxBitrate,{streamIdx:0,kbps:1e3*this.customData.maxBitrate}):(0,or.of)(!0))),(0,Qe.ZZ)(()=>(this.customData.maxBitrateAuto&&(this.customData.maxBitrate=0,this.bitRate=0),this.updateDataUsage()))).subscribe();break;case K.M0g.vSync:this.storeVSyncInStreamerConfig(this.customData.vSync);break;case K.M0g.drc:this.gameLaunchedWithL4S&&(this.showl4sTipText=!this.customData.drc,this.logger.info("Updating L4s state on drc toggle",this.customData.drc),this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.SetStreamingL4sState,{streamIdx:0,enabled:this.customData.drc}).subscribe(()=>this.logger.info("Updated L4s state on drc toggle"),hi=>this.logger.error("Failed to set L4s state on drc toggle",hi)))}qe&&this.updateDataUsage().pipe((0,S.Q)(this.destroy$)).subscribe()}processCustomData(){this.qualityHeader="settings.gameplay.Custom",this.qualityHelper="settings.gameplay.CustomHelp",this.gbPerHour=this.customData.dataUsage,this.bitRate=this.customData.maxBitrate;const Ve=this.getResolution(this.customData.width,this.customData.height);this.setResolution(Ve);const qe=this.customData.fps;this.frameRate=qe.toString(),this.featureSupportService.isRunTimeMaxBitRateConfigSupported()&&this.isIgssEnabled?this.enableBitRateSlider=!this.customData.maxBitrateAuto&&!this.hideBitRateSlider:(this.hideBitRateSlider=!0,0===this.bitRate&&this.translateService.get("commonLabels.Auto").subscribe(hi=>this.bitRateString=hi)),this.showVsync&&(this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.VsyncToggle).pipe((0,S.Q)(this.destroy$)).subscribe(hi=>{this.vsyncDisabled1=!hi,this.logger.info("VsyncDisabled1 is: ",this.vsyncDisabled1)},hi=>{this.logger.error("vSyncToggle failed: "+hi)}),(0,mo.zV)([this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.GetDisplayMode),this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.GetVSyncAutoDisableThresholdStreamingFPS),this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.GetVSyncAutoDisableThresholdDisplayHz)]).pipe((0,S.Q)(this.destroy$)).subscribe(([hi,sr,le])=>{this.logger.info("GetVSyncAutoDisableThresholdStreamingFPS: ",sr),this.logger.info("GetVSyncAutoDisableThresholdDisplayHz: ",le),this.logger.info("RefreshRate: ",hi.logical.refreshRate),this.vsyncDisabled2=qe===sr&&hi.logical.refreshRate<le,this.logger.info("VsyncDisabled2 is: ",this.vsyncDisabled2)}),this.vsyncString="commonLabels.Off",this.vSyncSelection=this.customData.vSync,this.logger.info("VSync init state: ",this.vSyncSelection)),this.showDrc&&(this.isIgssEnabled?(this.enableDrcSlider=!0,this.adjustPoorNetwork=this.customData.drc):this.drcString=this.customData.drc?"commonLabels.On":"commonLabels.Off"),this.hideBitRateSlider&&0!==this.bitRate&&this.translateService.get("settings.gameplay.bitRateValue",{bitRateValue:this.bitRate}).subscribe(hi=>{this.bitRateString=hi}),this.hdrStatus=this.streamingProfileService.getHdrLabel(this.customData.hdrStreaming,this.isHdrUpsell),this.checkifCloudGsyncEnabled(this.customData.cloudGsync),this.cloudGsyncDisablingVsync=!!this.customData.cloudGsync,this.checkifReflexEnabled(this.customData.reflex),this.checkifL4SEnabled(this.gameLaunchedWithL4S,!0),this.checkIfBitDepthEnabled(this.customData.bitDepth)}queryUpscalingFilters(Ve,qe){this.upscaleFilters=[K.DNU.STANDARD,K.DNU.ENHANCED],(0,mo.zV)([this.resolutionUpscaleService.getUpscalingVisibility(),this.resolutionUpscaleService.getAiSupport(),this.resolutionUpscaleService.getUpScaleDisplaySetting(),this.resolutionUpscaleService.getAiSharpnessSetting(),this.resolutionUpscaleService.getEnhSharpnessSetting()]).pipe((0,Y.s)(1),(0,S.Q)(this.destroy$)).subscribe(([hn,hi,sr,le,Nn])=>{if(this.upscaleModeRotaryOptions=[],this.detailEnhancementOptions=[],sr){switch(this.upscalingShow=hn,this.upscaleMode=sr,this.aiSharpnessId=le?.id,this.enhancedSharpnessId=Nn?.id,hi?.isAiSupported&&this.upscaleFilters.push(K.DNU.AI_ENHANCED),this.upscaleModeRotaryOptions=this.upscaleFilters.map(Mo=>Mo.displayName),this.telemetryUpscalingData.upscaleMode=this.upscaleModeRotaryOptions.findIndex(Mo=>Mo===this.upscaleMode.displayName),this.detailEnhancementOptions=[],K.SCF.getSharpnessList().forEach(Mo=>{this.detailEnhancementOptions.push(Mo.label)}),this.upscaleMode.id){case K.DNU.AI_ENHANCED.id:this.telemetryUpscalingData.detailEnhancement=this.aiSharpnessId,this.activeSharpnessSetting=K.SCF.getSharpnessbyId(this.aiSharpnessId);break;case K.DNU.ENHANCED.id:case K.DNU.NV_SCALER.id:case K.DNU.NV_SHARP.id:this.telemetryUpscalingData.detailEnhancement=this.enhancedSharpnessId,this.activeSharpnessSetting=K.SCF.getSharpnessbyId(this.enhancedSharpnessId)}this.telemetryUpscalingDataUponEntry=(0,Vt.cloneDeep)(this.telemetryUpscalingData),this.rotaryUpscaleModeChanged(this.upscaleMode.id,!1)}else this.upscalingShow=!1},hn=>{this.logger.error("Failed to get resolution upscale information ",hn)})}maxBitRateToggleEvent(Ve){this.logger.info("Max Bit Rate changed: ",Ve.checked),this.customData.maxBitrateAuto=!Ve.checked,this.onCustomProfileFieldChange(K.M0g.maxBitrateValue)}onBitRateSliderChanged(Ve){Ve.value!==this.customData.maxBitrate&&(this.logger.info("BitRate slider changed to: ",Ve.value),this.customData.maxBitrate=this.bitRate=Ve.value,this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.SetStreamingMaxBitrate,{streamIdx:0,kbps:1e3*Ve.value}).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{this.logger.info("Set Max BitRate: ",this.customData.maxBitrate),this.onCustomProfileFieldChange()},hi=>{this.logger.error("Failed to change Max Bitrate : "+hi)}))}rotaryVSyncChanged(Ve){this.logger.info("VSync Rotary changed: ",this.rotaryVSyncOptions[Ve]);const qe=this.vSyncSelection;this.vSyncSelection=Ve,this.customData.vSync=Ve,this.onCustomProfileFieldChange(K.M0g.vSync);const hn=this.rotaryVSyncOptions[qe]===this.rotaryVSyncOptions[0]||this.rotaryVSyncOptions[Ve]===this.rotaryVSyncOptions[0],hi=this.rotaryVSyncOptions[qe]===this.rotaryVSyncOptions[0],sr=this.rotaryVSyncOptions[Ve]!==this.rotaryVSyncOptions[0];this.logger.info("CurrentState: "+qe+" RotaryValue: "+Ve),this.logger.info("ChangeEnable: ",hn+" NewEnable: "+hi),this.logger.info("ChangeState: "+sr+" NewState: "+Ve),hn?this.setVsyncEnabled(hi).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{sr&&this.controlVsyncState(Ve)}):this.controlVsyncState(Ve),this.isCloudGsyncEnabled&&(this.customData.cloudGsync=!1,this.onCustomProfileFieldChange(K.M0g.cloudGsync),this.checkifCloudGsyncEnabled(this.customData.cloudGsync))}controlVsyncState(Ve){this.toggleVsyncOnAdaptive(Ve).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{})}setVsyncEnabled(Ve){return this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.SetVsyncEnabled,{enabled:Ve}).pipe((0,Bo.T)(()=>(this.logger.info("Enable Vsync: ",Ve),!0)))}toggleVsyncOnAdaptive(Ve){return this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.SetAdaptiveFramePacingEnabled,{enabled:"settings.gameplay.Adaptive"===this.rotaryVSyncOptions[Ve]}).pipe((0,Bo.T)(()=>(this.logger.info("Set Vsync to: ",this.rotaryVSyncOptions[Ve]),!0)))}adjustPoorNetworkToggleEvent(Ve){this.logger.info("Adjust Poor Network changed: ",Ve.checked),this.customData.drc=Ve.checked,this.bridgeService.executeCommand(ee.Ts.Gfn.Streaming.SetDrcDfcState,{streamIdx:0,enabled:Ve.checked}).pipe((0,S.Q)(this.destroy$)).subscribe(()=>{this.logger.info("AdjustPoorNetwork: ",this.customData.drc),this.onCustomProfileFieldChange(K.M0g.drc)},hi=>{this.logger.error("Failed to change Adjust Poor Network Conditions : "+hi)})}rotaryUpscaleModeChanged(Ve,qe,hn){this.logger.info("Upscale Mode Rotary changed index: ",Ve),this.telemetryUpscalingData.upscaleMode=Ve,this.upscaleMode=this.upscaleFilters.find(hi=>hi.displayName===this.upscaleModeRotaryOptions[Ve]),this.resolutionUpscaleService.setMagnificationFilter(this.upscaleMode.id),hn||this.resolutionUpscaleService.saveSetting(K.L4P.Resolution,this.upscaleMode.id,qe),this.showSharpnessEnhanced=!1,this.isAiSelected=!1,K.SCF.isEnhanced(this.upscaleMode.id)&&this.resolutionUpscaleService.getNvScalerNvSharpSupport().pipe((0,Y.s)(1),(0,S.Q)(this.destroy$)).subscribe(hi=>{this.showSharpnessEnhanced=hi.isNvScalerSupported||hi.isNvSharpenSupported,this.showSharpnessEnhanced&&this.rotaryDetailEnhancementChanged(this.enhancedSharpnessId,!1)}),K.SCF.isAiEnhanced(this.upscaleMode.id)&&(this.rotaryDetailEnhancementChanged(this.aiSharpnessId,!1),this.isAiSelected=!0)}rotaryDetailEnhancementChanged(Ve,qe,hn){let hi;switch(this.logger.info("Detail Enhancement Rotary changed, index: ",Ve),this.telemetryUpscalingData.detailEnhancement=Ve,this.activeSharpnessSetting=K.SCF.getSharpnessbyId(Ve),this.sharpnessTurnedOff=K.SCF.isSharpnessOff(this.activeSharpnessSetting),this.upscaleMode.id){case K.DNU.AI_ENHANCED.id:this.aiSharpnessId=this.activeSharpnessSetting.id,this.resolutionUpscaleService.setAiSharpnessSetting(this.activeSharpnessSetting),hi=K.L4P.AiSharpness;break;case K.DNU.ENHANCED.id:case K.DNU.NV_SCALER.id:case K.DNU.NV_SHARP.id:this.enhancedSharpnessId=this.activeSharpnessSetting.id,this.resolutionUpscaleService.setEnhSharpnessSetting(this.activeSharpnessSetting),hi=K.L4P.EnhSharpness,this.showSharpnessEnhanced&&this.resolutionUpscaleService.setMagnificationFilter(this.sharpnessTurnedOff?K.DNU.ENHANCED.id:this.upscaleMode.id)}this.resolutionUpscaleService.setSharpnessFilter(this.activeSharpnessSetting),hn||this.resolutionUpscaleService.saveSetting(hi,this.activeSharpnessSetting.value,!0)}detectInGameGraphics(Ve){this.saveInGameGraphics=!1,this.saveInGameGraphicsEnabled=this.ecommerceService.featureEntitled(K.N1D.IN_GAME_SETTINGS_PERSISTENCE_ENABLED),this.logger.info("Setting availability received from subscrption: ",this.saveInGameGraphicsEnabled),this.showInGameGraphicsSection=Ve.membershipStatus===K.OON.Entitled,this.saveInGameGraphicsEnabled&&this.settingsService.persistInGameGraphicsEnabled().pipe((0,S.Q)(this.destroy$)).subscribe(qe=>{this.logger.info("Setting updated from storage: ",qe),this.saveInGameGraphics=qe})}streamingQualityCheckExitTelemetry(){if(!(0,Vt.isEqual)(this.customData,this.customDataUponEntry)){this.logger.info("Streaming Quality Changed!");const Ve={maxBitrateAuto:this.customData.maxBitrateAuto,maxBitrateAutoChanged:!1,maxBitrate:this.customData.maxBitrate,MaxBitrateChanged:!1,vSync:this.customData.vSync,vSyncChanged:!1,drc:this.customData.drc,drcChanged:!1};this.customData.drc!==this.customDataUponEntry.drc&&(Ve.drcChanged=!0),this.customData.vSync!==this.customDataUponEntry.vSync&&(Ve.vSyncChanged=!0),this.customData.maxBitrateAuto!==this.customDataUponEntry.maxBitrateAuto&&(Ve.maxBitrateAutoChanged=!0),this.customData.maxBitrate!==this.customDataUponEntry.maxBitrate&&(Ve.MaxBitrateChanged=!0),this.telemetryHelperService.sendStreamingQualityChanged(Ve)}}resolutionUpscalingCheckExitTelemetry(){this.upscalingShow&&!(0,Vt.isEqual)(this.telemetryUpscalingData,this.telemetryUpscalingDataUponEntry)&&(this.logger.info("Resolution Upscaling Changed!"),this.telemetryUpscalingData.upscaleMode!==this.telemetryUpscalingDataUponEntry.upscaleMode&&this.logger.info("Upscale Selection Changed: ",this.telemetryUpscalingData.upscaleMode),this.telemetryUpscalingData.detailEnhancement!==this.telemetryUpscalingDataUponEntry.detailEnhancement&&this.logger.info("Upscale Detail Enhancement Changed: ",this.telemetryUpscalingData.detailEnhancement),this.telemetryHelperService.sendResolutionUpscalingChanged(this.telemetryUpscalingData))}checkifReflexEnabled(Ve){if(!this.ecommerceService.isFeatureAvailableToUser(K.N1D.ENABLED_REFLEX,K.q3U.SUPPORT_REFLEX))return;const qe=Ve&&this.ecommerceService.featureEntitled(K.N1D.ENABLED_REFLEX);this.logger.info("Checking Reflex status tobe shown ",Ve,qe),this.showReflex=!0,this.reflexStatus=this.streamingProfileService.getReflexLabel(qe,!1)}checkifCloudGsyncEnabled(Ve){this.ecommerceService.isFeatureAvailableToUser(K.N1D.CLOUD_GSYNC,K.q3U.SUPPORT_CLOUD_GSYNC)?(this.isCloudGsyncEnabled=Ve&&this.ecommerceService.featureEntitled(K.N1D.CLOUD_GSYNC),this.logger.info("Checking cloud gsync status to be shown: (value, enabled): ",Ve,this.isCloudGsyncEnabled),this.showCloudGsync=!0,this.cloudGsynLabelSubscription$&&this.cloudGsynLabelSubscription$.unsubscribe(),this.cloudGsynLabelSubscription$=this.streamingProfileService.getCloudGsyncLabel(this.isCloudGsyncEnabled,!1).pipe((0,S.Q)(this.destroy$)).subscribe(qe=>{this.isGsyncDisplay=this.streamingProfileService.isGsyncDisplay,this.cloudGsyncStatus=qe})):this.logger.info("VRR display not available to user/platform.")}checkifL4SEnabled(Ve,qe=!1){if(!this.streamingProfileService.isL4SFeatureEnabled||!this.ecommerceService.isFeatureAvailableToUser(K.N1D.ENABLED_L4S,K.q3U.SUPPORT_L4S))return;const hn=Ve&&this.ecommerceService.featureEntitled(K.N1D.ENABLED_L4S);this.logger.info("Checking L4S state to be shown: ",Ve,hn),this.showL4S=!0,this.l4sStatus=Ve?"settings.streamingProfiles.on":"common.off",qe&&(this.showl4sTipText=!this.customData.drc&&this.gameLaunchedWithL4S)}checkIfBitDepthEnabled(Ve){this.gfnInfoService.checkIfBitDepthAvailable()&&(this.logger.info("BitDepth value to be shown: ",Ve),this.showBitDepth=!0,this.bitDepthValue=Ve)}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(r.zZn),r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.gZv),r.rXU(v.x_y),r.rXU(xe.c$),r.rXU(m.NZ),r.rXU(K.yJU),r.rXU(v.xRl),r.rXU(K.d5b),r.rXU(is.R))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-gameplay"]],inputs:{bitRate:"bitRate"},outputs:{bitRateChange:"bitRateChange"},features:[r.Vt3],decls:55,vars:95,consts:[["fxLayout","column","fxFlex","",1,"settings-gameplay"],["fxLayout","column",1,"settings-container",3,"fxLayoutGap"],[1,"left-data",3,"ngClass"],[1,"header1",3,"ngClass"],[1,"header2",3,"ngClass"],["fxLayout","row",1,"standard-holder24"],["fxFlex","",1,"left-data",3,"ngClass"],["fxLayoutAlign","end start",1,"standard-data"],[1,"standard-base","font-color-secondary","right-data"],["fxFlex","","fxLayout","column"],["fxFlex","","fxLayout","row",3,"ngClass"],["fxFlex","",3,"ngClass"],["class","font-color-secondary right-data","fxLayoutAlign","center",3,"profile-description-font",4,"ngIf"],["fxFlex","none",3,"ngClass","ngModel","ngModelChange","change",4,"ngIf"],["fxFlex","grow","class","font-color-tertiary",3,"ngClass",4,"ngIf"],["fxLayout","column","fxFlex","grow","class","font-color-tertiary",3,"slider_padding",4,"ngIf"],["fxFlex","",1,"left-data"],[1,"standard-base","right-data",3,"ngClass"],["class","standard-base right-data resolution-label",3,"src",4,"ngIf"],[1,"standard-base","right-data"],[1,"standard-post","right-data"],[4,"ngIf"],["class","standard-holder24","fxLayout","row",3,"side-padding",4,"ngIf"],["fxFlex","none","fxLayoutAlign","start center",3,"side-padding",4,"ngIf"],["fxFlex","none","fxLayout","column",4,"ngIf"],["fxLayout","column",3,"side-padding",4,"ngIf"],["fxLayoutAlign","center",1,"font-color-secondary","right-data"],["fxFlex","none",3,"ngModelChange","change","ngClass","ngModel"],["fxFlex","grow",1,"font-color-tertiary",3,"ngClass"],["fxLayout","column","fxFlex","grow",1,"font-color-tertiary"],["fxFlex","grow","fxLayoutAlign","space-between center"],["fxFlexFill","",3,"valueChange","input","min","max","value","step"],["fxLayoutAlign","center",3,"ngClass"],[1,"standard-base","right-data","resolution-label",3,"src"],["class","font-color-primary standard-holder24 side-padding","fxLayout","row",4,"ngIf"],["class","standard-holder24 rotary-side-padding","fxFlex","grow",4,"ngIf"],["fxLayout","row",1,"font-color-primary","standard-holder24","side-padding"],[1,"streaming-setting-name-font","standard-post","left-data"],["fxFlex","grow",1,"standard-holder24","rotary-side-padding"],["title","settings.gameplay.VSync",3,"selectionChanged","input","initialState","disabled"],["fxFlex","","class","streaming-setting-name-font left-data",4,"ngIf"],[1,"standard-base","right-data","profile-description-font"],["fxFlex","",1,"streaming-setting-name-font","left-data"],["fxFlex","none","fxLayoutAlign","start center"],["fxFlex","grow",1,"left-data"],["class","standard-post right-data",3,"font-color-secondary","profile-description-font",4,"ngIf"],["fxFlex","none","class","toggle-padding",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxFlex","none",1,"toggle-padding",3,"ngModelChange","change","ngModel"],["class","standard-base right-data",3,"profile-description-font",4,"ngIf"],["fxFlex","none","fxLayout","column"],["title","settings.gameplay.UpscaleMode",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],["class","rotary-side-padding","title","settings.gameplay.DetailEnhancement",3,"input","initialState","selectionChanged",4,"ngIf"],["title","settings.gameplay.DetailEnhancement",1,"rotary-side-padding",3,"selectionChanged","input","initialState"],["fxLayout","column"],["marginNotReq","true"],["fxLayout","row"],["fxFlex","",1,"header1"],["fxFlex","none","fxLayoutAlign","end start",1,"standard-base","font-color-secondary","header1a",3,"ngClass"],["class","header2",3,"profile-description-font","font-color-tertiary",4,"ngIf"],[1,"header2"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0)(1,"div",1)(2,"span",2),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"span",3),r.EFF(6),r.nI1(7,"translate"),r.k0s(),r.j41(8,"span",4),r.EFF(9),r.nI1(10,"translate"),r.k0s(),r.j41(11,"div",5)(12,"span",6),r.EFF(13),r.nI1(14,"translate"),r.k0s(),r.j41(15,"div",7)(16,"span",8),r.EFF(17),r.nI1(18,"translate"),r.k0s()()(),r.j41(19,"div",9)(20,"div",10)(21,"span",11),r.EFF(22),r.nI1(23,"translate"),r.k0s(),r.DNE(24,br,2,3,"span",12)(25,wo,1,5,"mat-slide-toggle",13),r.k0s(),r.DNE(26,zs,3,7,"div",14)(27,sa,6,18,"div",15),r.k0s(),r.j41(28,"div",5)(29,"span",16),r.EFF(30),r.nI1(31,"translate"),r.k0s(),r.j41(32,"div",7)(33,"span",17),r.EFF(34),r.k0s(),r.DNE(35,fs,1,1,"img",18),r.k0s()(),r.j41(36,"div",5)(37,"span",16),r.EFF(38),r.nI1(39,"translate"),r.k0s(),r.j41(40,"div",7)(41,"span",19),r.EFF(42),r.k0s(),r.j41(43,"span",20),r.EFF(44),r.nI1(45,"translate"),r.k0s()()(),r.DNE(46,Io,3,2,"div",21)(47,Sa,7,7,"div",22)(48,rl,8,8,"div",22)(49,as,8,16,"div",22)(50,ho,8,11,"div",22)(51,aa,6,13,"div",23)(52,ea,7,13,"div",22),r.k0s(),r.DNE(53,dl,7,11,"div",24)(54,la,11,18,"div",25),r.k0s()),2&Ve&&(r.R7$(),r.Y8G("fxLayoutGap",qe.tvMode?"16px":""),r.R7$(),r.Y8G("ngClass",qe.tvMode?"font-color-tertiary":"side-padding section-title-font"),r.R7$(),r.JRh(r.bMT(4,67,"settings.gameplay.StreamingQuality")),r.R7$(2),r.Y8G("ngClass",qe.tvMode?"font-color-primary":"side-padding profile-name-font"),r.R7$(),r.JRh(r.bMT(7,69,qe.qualityHeader)),r.R7$(2),r.Y8G("ngClass",qe.tvMode?"font-color-tertiary":"side-padding profile-description-font"),r.R7$(),r.JRh(r.bMT(10,71,qe.qualityHelper)),r.R7$(2),r.AVh("standard-holder24-margin",qe.tvMode)("side-padding",!qe.tvMode),r.R7$(),r.Y8G("ngClass",qe.tvMode?"font-color-primary":"streaming-setting-name-font"),r.R7$(),r.JRh(r.bMT(14,73,"settings.gameplay.GameplayData")),r.R7$(3),r.AVh("profile-description-font",!qe.tvMode),r.R7$(),r.JRh(r.i5U(18,75,"settings.gameplay.GBPerHour",r.eq3(86,ha,qe.gbPerHour))),r.R7$(2),r.AVh("side-padding",!qe.tvMode),r.R7$(),r.Y8G("ngClass",r.eq3(88,Ys,qe.hideBitRateSlider&&qe.tvMode)),r.R7$(),r.AVh("streaming-setting-name-font",!qe.tvMode)("font-color-primary",qe.tvMode),r.Y8G("ngClass",r.ziG(90,Po,qe.tvMode&&qe.hideBitRateSlider,qe.tvMode&&!qe.hideBitRateSlider,!(qe.tvMode||qe.custom&&!qe.enableBitRateSlider&&!qe.hideBitRateSlider),!qe.tvMode&&qe.custom&&!qe.enableBitRateSlider&&!qe.hideBitRateSlider)),r.R7$(),r.SpI(" ",r.bMT(23,78,"settings.gameplay.MaxBitRate")," "),r.R7$(2),r.Y8G("ngIf",!qe.custom||qe.hideBitRateSlider),r.R7$(),r.Y8G("ngIf",qe.custom&&!qe.hideBitRateSlider),r.R7$(),r.Y8G("ngIf",qe.custom&&!qe.enableBitRateSlider&&!qe.hideBitRateSlider),r.R7$(),r.Y8G("ngIf",qe.enableBitRateSlider&&!qe.hideBitRateSlider),r.R7$(),r.AVh("standard-holder24-margin",qe.tvMode)("side-padding",!qe.tvMode),r.R7$(),r.AVh("font-color-primary",qe.tvMode)("streaming-setting-name-font",!qe.tvMode),r.R7$(),r.JRh(r.bMT(31,80,"settings.gameplay.Resolution")),r.R7$(3),r.Y8G("ngClass",qe.tvMode?"font-color-secondary":"profile-description-font"),r.R7$(),r.JRh(qe.resolution),r.R7$(),r.Y8G("ngIf",qe.resolutionLabel),r.R7$(),r.AVh("side-padding",!qe.tvMode)("standard-holder24-margin",qe.tvMode),r.R7$(),r.AVh("font-color-primary",qe.tvMode)("streaming-setting-name-font",!qe.tvMode),r.R7$(),r.JRh(r.bMT(39,82,"settings.gameplay.FrameRate")),r.R7$(2),r.AVh("font-color-secondary",qe.tvMode),r.R7$(),r.AVh("profile-description-font",!qe.tvMode),r.R7$(),r.JRh(qe.frameRate),r.R7$(),r.AVh("profile-description-font",!qe.tvMode),r.R7$(),r.JRh(r.bMT(45,84,"settings.gameplay.FPS")),r.R7$(2),r.Y8G("ngIf",qe.showVsync),r.R7$(),r.Y8G("ngIf",qe.showCloudGsync),r.R7$(),r.Y8G("ngIf",qe.showReflex),r.R7$(),r.Y8G("ngIf",qe.showHDR),r.R7$(),r.Y8G("ngIf",qe.showBitDepth),r.R7$(),r.Y8G("ngIf",qe.showDrc),r.R7$(),r.Y8G("ngIf",qe.showL4S),r.R7$(),r.Y8G("ngIf",qe.upscalingShow),r.R7$(),r.Y8G("ngIf",qe.showInGameGraphicsSection))},styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.settings-gameplay[_ngcontent-%COMP%]{max-width:100%;padding:16px 0;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px}.isLtr[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.right-data[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;margin-top:14px;margin-bottom:14px}.tv-view[_ngcontent-%COMP%] .right-data[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .right-data[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .right-data[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.isLtr[_nghost-%COMP%] .rotary-right-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-right-margin[_ngcontent-%COMP%]{margin-right:-16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-16px}.isRtl[_nghost-%COMP%] .rotary-right-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-right-margin[_ngcontent-%COMP%]{margin-left:-16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-16px}.left-data[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:12px}.slider-padding[_ngcontent-%COMP%]{padding-top:4px;padding-bottom:4px}.isLtr[_nghost-%COMP%] .slider-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .slider-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .slider-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.streaming-setting-name-padding[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.bit-rate-helper-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;margin-top:12px;margin-bottom:12px}.tv-view[_ngcontent-%COMP%] .bit-rate-helper-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .bit-rate-helper-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .bit-rate-helper-title[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.toggle-padding-top[_ngcontent-%COMP%]{padding-top:12px}.slider-text[_ngcontent-%COMP%]{margin-top:0;margin-bottom:8px}.slider-value-text[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;color:#ffffffb3;padding-top:8px;padding-bottom:8px}.tv-view[_ngcontent-%COMP%] .slider-value-text[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .slider-value-text[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .slider-value-text[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.header1[_ngcontent-%COMP%], .header1a[_ngcontent-%COMP%]{margin-top:14px}.header2[_ngcontent-%COMP%]{margin-top:0;margin-bottom:14px}.header3[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:4px}.header_max_bit[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:4px}.slider_padding[_ngcontent-%COMP%]{margin-top:8px}.header4[_ngcontent-%COMP%]{margin-bottom:14px}.standard-holder24[_ngcontent-%COMP%]{line-height:24px!important}.standard-holder24-margin[_ngcontent-%COMP%]{margin-bottom:9px}.isLtr[_nghost-%COMP%] .standard-data[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-data[_ngcontent-%COMP%]{margin-left:26px}html[dir=ltr][_ngcontent-%COMP%] .standard-data[_ngcontent-%COMP%]{--dummy3: 0;margin-left:26px}.isRtl[_nghost-%COMP%] .standard-data[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-data[_ngcontent-%COMP%]{margin-right:26px}html[dir=rtl][_ngcontent-%COMP%] .standard-data[_ngcontent-%COMP%]{--dummy3: 0;margin-right:26px}.isLtr[_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{text-align:right}html[dir=ltr][_ngcontent-%COMP%] .standard-base[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.isRtl[_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-base[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{text-align:left}html[dir=rtl][_ngcontent-%COMP%] .standard-base[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.setting-name-padding-top[_ngcontent-%COMP%]{padding-top:12px}.setting-subname-padding-bottom[_ngcontent-%COMP%]{padding-bottom:12px}.isLtr[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{padding-left:3px}html[dir=ltr][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy1: 0;padding-left:3px}.isRtl[_nghost-%COMP%] .standard-post[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .standard-post[_ngcontent-%COMP%]{padding-right:3px}html[dir=rtl][_ngcontent-%COMP%] .standard-post[_ngcontent-%COMP%]{--dummy1: 0;padding-right:3px}.isLtr[_nghost-%COMP%] .toggle-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .toggle-padding[_ngcontent-%COMP%]{padding-right:10px}html[dir=ltr][_ngcontent-%COMP%] .toggle-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:10px}.isRtl[_nghost-%COMP%] .toggle-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .toggle-padding[_ngcontent-%COMP%]{padding-left:10px}html[dir=rtl][_ngcontent-%COMP%] .toggle-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:10px}.resolution-label[_ngcontent-%COMP%]{margin-top:16px;height:16px}.isLtr[_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%]{margin-left:7px}html[dir=ltr][_ngcontent-%COMP%] .resolution-label[_ngcontent-%COMP%]{--dummy3: 0;margin-left:7px}.isRtl[_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .resolution-label[_ngcontent-%COMP%]{margin-right:7px}html[dir=rtl][_ngcontent-%COMP%] .resolution-label[_ngcontent-%COMP%]{--dummy3: 0;margin-right:7px}.section-title-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;color:#fff9}.tv-view[_ngcontent-%COMP%] .section-title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .section-title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .section-title-font[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.profile-name-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .profile-name-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .profile-name-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .profile-name-font[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .profile-name-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .profile-name-font[_ngcontent-%COMP%]{color:#ffffffd9}.profile-description-font[_ngcontent-%COMP%]{color:#ffffffb3}.streaming-setting-name-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .streaming-setting-name-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .streaming-setting-name-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .streaming-setting-name-font[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .streaming-setting-name-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .streaming-setting-name-font[_ngcontent-%COMP%]{color:#ffffffd9}.streaming-setting-value-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;font-weight:500;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .streaming-setting-value-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .streaming-setting-value-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .streaming-setting-value-font[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-right:4px}html[dir=ltr][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:4px}.isRtl[_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{padding-left:4px}html[dir=rtl][_ngcontent-%COMP%] .rotary-side-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:4px}.font-color-tertiary[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-color-tertiary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-color-tertiary[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] .font-color-tertiary[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .font-color-tertiary[_ngcontent-%COMP%]{color:#ffffffd9}.font-color-tertiary.left-data[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-color-tertiary.left-data[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-color-tertiary.left-data[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-color-tertiary.left-data[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft[_nghost-%COMP%] .font-color-tertiary.left-data[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .font-color-tertiary.left-data[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft.tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] div.font-color-primary[_ngcontent-%COMP%], .new-10ft.tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] span.font-color-primary[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%]{margin-top:12px;font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-primary.header1[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft.tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] div.font-color-tertiary[_ngcontent-%COMP%], .new-10ft.tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] span.font-color-tertiary[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.right-data[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.right-data[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.tv-view[_nghost-%COMP%] .header2[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .header2[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:4px}.tv-view[_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .settings-gameplay[_ngcontent-%COMP%]{padding:40px}"]}),An})();var Ws=d(29326);const Pr=[{LCID:[1026],code:"bg_BG",name:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 (Bulgerian)",isoThreeLetter:"bgr",countryCode:"BG"},{LCID:[1029],code:"cs_CZ",name:"\u010de\u0161tina (Czech)",isoThreeLetter:"ces",countryCode:"CZ"},{LCID:[1030],code:"da_DK",name:"Dansk (Danish)",isoThreeLetter:"dan",countryCode:"DK"},{LCID:[1031,3079,5127,4103,2055],code:"de_DE",name:"Deutsch (German)",isoThreeLetter:"deu",countryCode:"DE"},{LCID:[1032],code:"el_GR",name:"\u03b5\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac (Greek)",isoThreeLetter:"ell",countryCode:"GR"},{LCID:[1033],code:"en_US",name:"English (United States)",isoThreeLetter:"eng",countryCode:"US"},{LCID:[2057,1078,1052,1118,1067,1101,1068,5146,1026,1109,1050,4122,1125,2067,1126,3081,10249,6153,5129,7177,12297,1061,1127,1071,2108,1084,1079,1129,1039,1136,1137,2144,1120,1087,1153,2128,2068,1048,2074,1091,1093,2117,16393,1081,1121,2145,1094,2118,1113,2137,1115,2080,3081,15369,14345,17417,5129,13321,18441],code:"en_GB",name:"English (United Kingdom)",isoThreeLetter:"eng",countryCode:"GB"},{LCID:[3082,1069,1027,1034],code:"es_ES",name:"Espa\xf1ol (Spanish - Spain)",isoThreeLetter:"spa",countryCode:"ES"},{LCID:[3082,11274,16394,13322,9226,5130,7178,12298,17418,4106,18442,58378,2058,19466,6154,15370,10250,20490,21514,14346,8202],code:"es_MX",name:"Espa\xf1ol (Spanish - Mexico)",isoThreeLetter:"spa",countryCode:"MX"},{LCID:[1035],code:"fi_FI",name:"Suomi (Finnish)",isoThreeLetter:"fin",countryCode:"FI"},{LCID:[1036,2060,11276,3084,9228,12300,15372,5132,13324,6156,14348,58380,8204,10252,4108,7180,1122],code:"fr_FR",name:"Fran\xe7ais (French)",isoThreeLetter:"fra",countryCode:"FR"},{LCID:[1050],code:"hr_HR",name:"Hrvatski (Croatian)",isoThreeLetter:"hrv",countryCode:"HR"},{LCID:[1038],code:"hu_HU",name:"Magyar (Hungarian)",isoThreeLetter:"hun",countryCode:"HU"},{LCID:[1040,2064],code:"it_IT",name:"Italiano (Italian - Italy)",isoThreeLetter:"ita",countryCode:"IT"},{LCID:[1041],code:"ja_JP",name:"\u65e5\u672c\u8a9e (Japanese)",isoThreeLetter:"jpn",countryCode:"JP"},{LCID:[1042],code:"ko_KR",name:"\ud55c\uad6d\uc5b4 (Korean)",isoThreeLetter:"kor",countryCode:"KR"},{LCID:[1043],code:"nl_NL",name:"Nederlands (Dutch - Netherlands)",isoThreeLetter:"nld",countryCode:"NL"},{LCID:[1044,14],code:"nb_NO",name:"Norsk (Norwegian)",isoThreeLetter:"nor",countryCode:"NO"},{LCID:[1045],code:"pl_PL",name:"Polski (Polish)",isoThreeLetter:"pol",countryCode:"PL"},{LCID:[2070],code:"pt_PT",name:"Portugu\xeas (Portuguese - Portugal)",isoThreeLetter:"por",countryCode:"PT"},{LCID:[1046,2070],code:"pt_BR",name:"Portugu\xeas-Brasil (Portuguese - Brazil)",isoThreeLetter:"por",countryCode:"BR"},{LCID:[1048],code:"ro_RO",name:"Rom\xe2n\u0103 (Romanian)",isoThreeLetter:"rou",countryCode:"RO"},{LCID:[1049,2092,1059,1088,1104,2073,3098,2115,1058],code:"ru_RU",name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439 (Russian)",isoThreeLetter:"rus",countryCode:"RU"},{LCID:[1051],code:"sk_SK",name:"slovensk\xfdch (Slovak)",isoThreeLetter:"slk",countryCode:"SK"},{LCID:[1060],code:"sl_SI",name:"slovenski (Slovenian)",isoThreeLetter:"slv",countryCode:"SI"},{LCID:[1053],code:"sv_SE",name:"Svenska (Swedish)",isoThreeLetter:"swe",countryCode:"SE"},{LCID:[1054],code:"th_TH",name:"\u0e44\u0e17\u0e22 (Thai)",isoThreeLetter:"tha",countryCode:"TH"},{LCID:[1055],code:"tr_TR",name:"T\xfcrk\xe7e (Turkish)",isoThreeLetter:"tur",countryCode:"TR"},{LCID:[1058],code:"uk_UA",name:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 (Ukrainian)",isoThreeLetter:"ukr",countryCode:"UA"},{LCID:[2052,804,4],code:"zh_CN",cmsCode:"zh_CN",name:"\u7b80\u4f53\u4e2d\u6587 (Chinese - Simplified)",isoThreeLetter:"zho",countryCode:"CN"},{LCID:[3076,1028,4100,404,5124,31748],code:"zh_TW",cmsCode:"zh_TW",name:"\u7e41\u9ad4\u4e2d\u6587 (Chinese - Traditional)",isoThreeLetter:"zho",countryCode:"CN"}],Zo=[{path:"settings",component:G,data:{level:1}},{path:"general",component:pe,data:{level:2}},{path:"system",component:tr,data:{level:2}},{path:"gameplay",component:vl,data:{level:2}},{path:"debug",component:(()=>{var lt;class An extends i{constructor(Ve,qe,hn,hi,sr){super(qe,hn,hi),this.loggingService=Ve,this.localeService=sr,this.languages=Ws.l.supportedLang,this.languageNames=[],this.initialLangIndex=5,super.bar("settings.Debug"),this.logger=this.loggingService.getLogger("Debug")}ngOnInit(){super.ngOnInit(),this.clientLocales=Pr,this.processLanguage()}processLanguage(){this.languages.forEach((Ve,qe)=>{const hn=this.getLanguageName(qe);this.logger.info("Language: "+Ve+" name: "+hn),this.languageNames.push(hn)}),this.localeService.localeChanged.pipe((0,Y.s)(1)).subscribe(Ve=>{this.logger.info("Current Locale: ",Ve),this.languages.forEach((qe,hn)=>{qe===Ve&&(this.initialLangIndex=hn)})})}getLanguageName(Ve){return this.clientLocales.find(qe=>qe.code===this.languages[Ve]).name}languageChanged(Ve){this.logger.info("Language changed to: "+this.languages[Ve]+" name: "+this.languageNames[Ve]),this.localeService.setLocale(this.languages[Ve])}}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)(r.rXU(m.J6),r.rXU(v.o_p),r.rXU(l.nX),r.rXU(v.gZv),r.rXU(m.iH))},lt.\u0275cmp=r.VBU({type:lt,selectors:[["igo-debug"]],features:[r.Vt3],decls:6,vars:6,consts:[["fxLayout","column","fxFlex","",1,"settings-debug"],[1,"settings-container"],[1,"font-body1","nv-label","label-color"],[3,"selectionChanged","maxHeight","selection","input"]],template:function(Ve,qe){1&Ve&&(r.j41(0,"div",0)(1,"div",1)(2,"div",2),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"nv-dropdown",3),r.bIt("selectionChanged",function(hi){return qe.languageChanged(hi)}),r.k0s()()()),2&Ve&&(r.R7$(3),r.JRh(r.bMT(4,4,"settings.general.displayLanguage")),r.R7$(2),r.Y8G("maxHeight",300)("selection",qe.initialLangIndex)("input",qe.languageNames))},dependencies:[yi.T,g.DJ,g.UI,xe.D9],styles:[".nv-gap-1[_ngcontent-%COMP%]{height:1px}.nv-gap-4[_ngcontent-%COMP%]{height:4px}.nv-horizontal-gap-4[_ngcontent-%COMP%]{width:4px}.nv-gap-8[_ngcontent-%COMP%]{height:8px}.nv-horizontal-gap-8[_ngcontent-%COMP%]{width:8px}.nv-gap-12[_ngcontent-%COMP%]{height:12px}.nv-gap-14[_ngcontent-%COMP%]{height:14px}.nv-gap-16[_ngcontent-%COMP%]{height:16px}.nv-gap-24[_ngcontent-%COMP%]{height:24px}.nv-horizontal-gap-24[_ngcontent-%COMP%]{width:24px}.nv-gap-32[_ngcontent-%COMP%]{height:32px}.nv-horizontal-gap-32[_ngcontent-%COMP%]{width:32px}.nv-gap-40[_ngcontent-%COMP%]{height:40px}.nv-gap-48[_ngcontent-%COMP%]{height:48px}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}[_nghost-%COMP%]{flex:1;position:absolute;width:100%;height:100%;box-sizing:border-box}.settings-debug[_ngcontent-%COMP%]{max-width:100%;padding:24px;overflow-y:overlay}.isLtr[_nghost-%COMP%] .settings-debug[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-debug[_ngcontent-%COMP%]{margin-right:-24px}html[dir=ltr][_ngcontent-%COMP%] .settings-debug[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-24px}.isRtl[_nghost-%COMP%] .settings-debug[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-debug[_ngcontent-%COMP%]{margin-left:-24px}html[dir=rtl][_ngcontent-%COMP%] .settings-debug[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-24px}.label-color[_ngcontent-%COMP%]{color:#ffffffe6}.settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px}.isLtr[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .settings-container[_ngcontent-%COMP%] .setting-about-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}"]}),An})(),data:{level:2}},{path:"highlights",component:fn,data:{level:2}},{path:"hud",component:mi,data:{level:2}},{path:"notifications",component:Ee,data:{level:2}},{path:"shortcuts",component:Bs,data:{level:2}},{path:"storage",component:Ci,data:{level:2}},{path:"video",component:Qi,data:{level:2}},{path:"audio",component:Ki,data:{level:2}},{path:"system",component:tr,data:{level:2}}];let Ai=(()=>{var lt;class An{}return(lt=An).\u0275fac=function(Ve){return new(Ve||lt)},lt.\u0275mod=r.$C({type:lt}),lt.\u0275inj=r.G2t({imports:[n.MD,_.G,p.YF,P.i,l.iI.forChild(Zo),(0,m.BU)()]}),An})();r.wjB(vl,function(){return[n.YU,n.bT,a.$,dt.X,Me.I,g.DJ,g.BO,g.sA,g.G2,g.UI,Re.PW,re.BC,re.vS,Ze.P2,yn.t,oe.tG]},function(){return[xe.D9]})},76560:(Ue,W,d)=>{"use strict";d.d(W,{Gj:()=>v,Hu:()=>_,kO:()=>P,oO:()=>m,vO:()=>p});const l=d(74931).Or.Share.Shareserver.HotkeyEnum,p=new Map([[l.OpenIGO,[17,71]],[l.Screenshot,[17,49]],[l.OpenAnsel,[17,50]],[l.RecordToggle,[17,57]],[l.DVRSave,[17,48]],[l.DVRToggle,[17,16,48]],[l.MicToggle,[17,77]],[l.FreeStyleToggleStyle1,[]],[l.FreeStyleToggleStyle2,[]],[l.FreeStyleToggleStyle3,[]],[l.NativeKeyboardInputDialog,[17,75]],[l.ConnectGfnBroadcastToggle,[]],[l.QuitGame,[18,115]],[l.StatisticsToggle,[17,78]]]),m=new Map([[l.OpenIGO,[65335,71]],[l.Screenshot,[65335,49]],[l.OpenAnsel,[65335,50]],[l.RecordToggle,[65335,57]],[l.DVRSave,[65335,48]],[l.DVRToggle,[65335,16,48]],[l.MicToggle,[65335,77]],[l.FreeStyleToggleStyle1,[]],[l.FreeStyleToggleStyle2,[]],[l.FreeStyleToggleStyle3,[]],[l.NativeKeyboardInputDialog,[65335,75]],[l.ConnectGfnBroadcastToggle,[]],[l.QuitGame,[65335,81]],[l.StatisticsToggle,[65335,78]],[l.InStreamPaste,[65335,86]]]),_=new Map([[l.StatisticsToggle,[17,16,69]]]),P=new Map([[l.StatisticsToggle,[65335,16,69]]]),v=new Map([[l.MicToggle,[65335,16,77]],[l.QuitGame,[65335,16,88]]])},67904:(Ue,W,d)=>{"use strict";d.d(W,{v:()=>V});var n=d(65726),l=d(99047),p=d(75707),m=d(58527),_=d(1331),P=d(65240),v=d(61142),O=d(3457),S=d(28139),y=d(97979),r=d(99204),i=d(29370);const a=(D,F)=>({"width.px":D,"height.px":F});function h(D,F){if(1&D&&(m.j41(0,"div",10)(1,"span",11),m.EFF(2),m.k0s()()),2&D){const I=m.XpG();m.R7$(2),m.JRh(I.highlightName)}}function g(D,F){if(1&D&&(m.j41(0,"div",12)(1,"span",11),m.EFF(2),m.k0s()()),2&D){const I=m.XpG();m.R7$(2),m.JRh(I.duration)}}function c(D,F){if(1&D&&m.nrm(0,"img",13),2&D){const I=m.XpG();m.Y8G("src",I.item.data,m.B4B)("ngStyle",m.l_i(2,a,I.thumbSize,I.thumbSize))}}function T(D,F){if(1&D){const I=m.RV6();m.j41(0,"div",14),m.bIt("click",function(R){return m.eBV(I),m.Njj(R.stopPropagation())}),m.k0s()}}function A(D,F){1&D&&m.nrm(0,"mat-spinner",15)}function L(D,F){1&D&&m.nrm(0,"mat-icon",16)}function x(D,F){1&D&&m.nrm(0,"div",17)}let V=(()=>{var D;class F{constructor(k,R){this.galleryService=k,this.translateService=R,this.initialDelay=!1}ngAfterViewInit(){this.item&&!this.item.data&&this.scrolling&&(this.metadataReq$=this.scrolling.pipe((0,n.c)(this.initialDelay?300:0),(0,l.$)(k=>!1===k),(0,p.ZZ)(()=>this.galleryService.fillInFileData(this.item))).subscribe())}ngOnDestroy(){this.metadataReq$&&this.metadataReq$.unsubscribe()}get highlightName(){const k=`highlightLabels.${this.item.hlName}`;let R=this.translateService.instant(k);return R===k&&(R=this.item.hlName),R}get duration(){let k="";return void 0!==this.item.duration&&(k="00:"===this.item.duration.slice(0,3)?this.item.duration.slice(3):this.item.duration.slice(0)),k}}return(D=F).\u0275fac=function(k){return new(k||D)(m.rXU(_.AFS),m.rXU(P.c$))},D.\u0275cmp=m.VBU({type:D,selectors:[["nv-gallery-item"]],inputs:{item:"item",scrolling:"scrolling",activeItem:"activeItem",thumbSize:"thumbSize",initialDelay:"initialDelay"},decls:11,vars:11,consts:[[1,"gallery-item",3,"ngStyle"],["class","gallery-overlay-hlname-div gallery-overlay",4,"ngIf"],["class","gallery-overlay-duration-div gallery-overlay",4,"ngIf"],[3,"src","ngStyle",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"gallery-overlay"],["class","gallery-inprogress",3,"click",4,"ngIf"],["diameter","32","tabindex","-1","color","accent",4,"ngIf"],["svgIcon","alert_circle","class","icon-normal gallery-overlay-play-icon","tabindex","-1",4,"ngIf"],["class","gallery-active",4,"ngIf"],[1,"gallery-image"],[1,"gallery-overlay-hlname-div","gallery-overlay"],[1,"font-body2"],[1,"gallery-overlay-duration-div","gallery-overlay"],[3,"src","ngStyle"],[1,"gallery-inprogress",3,"click"],["diameter","32","tabindex","-1","color","accent"],["svgIcon","alert_circle","tabindex","-1",1,"icon-normal","gallery-overlay-play-icon"],[1,"gallery-active"]],template:function(k,R){1&k&&(m.j41(0,"mat-card",0)(1,"mat-card-content"),m.DNE(2,h,3,1,"div",1)(3,g,3,1,"div",2)(4,c,1,5,"img",3),m.j41(5,"div",4),m.DNE(6,T,1,0,"div",5)(7,A,1,0,"mat-spinner",6)(8,L,1,0,"mat-icon",7),m.k0s(),m.DNE(9,x,1,0,"div",8),m.nrm(10,"div",9),m.k0s()()),2&k&&(m.Y8G("ngStyle",m.l_i(8,a,R.thumbSize,R.thumbSize)),m.R7$(2),m.Y8G("ngIf",R.item.hlName),m.R7$(),m.Y8G("ngIf",R.item.duration),m.R7$(),m.Y8G("ngIf",R.item.data),m.R7$(2),m.Y8G("ngIf",!R.item.data),m.R7$(),m.Y8G("ngIf",!R.item.data&&!R.item.cancel),m.R7$(),m.Y8G("ngIf",R.item.cancel),m.R7$(),m.Y8G("ngIf",R.item===R.activeItem))},dependencies:[v.bT,v.B3,O.DJ,O.sA,S.eI,y._m,y.Rm,r.LG,i.An],styles:[".gallery-item[_ngcontent-%COMP%]{padding:0;box-sizing:border-box;background-color:#191919;box-shadow:none;border-radius:0}[_nghost-%COMP%]:hover .gallery-image[_ngcontent-%COMP%]{border-color:#ffffffb3;border-width:1px;border-style:solid;background-color:#ffffff14}[_nghost-%COMP%]:active .gallery-image[_ngcontent-%COMP%]{background-color:#ffffff52}.gallery-overlay[_ngcontent-%COMP%], .gallery-active[_ngcontent-%COMP%], .gallery-image[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;top:0;left:0;height:100%;width:100%;pointer-events:none}.gallery-inprogress[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;z-index:99;height:100%;width:100%;box-sizing:border-box;border-style:dashed;border-width:2px;color:#ffffff61}.gallery-overlay-play-icon[_ngcontent-%COMP%]{width:33px;height:33px;font-size:33px;margin:0;opacity:.95}.gallery-overlay-common[_ngcontent-%COMP%], .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .gallery-overlay-hlname-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:absolute;color:#fff;white-space:normal;background-color:#00000080;padding:0}.gallery-active[_ngcontent-%COMP%]{border:2px solid #76b900;z-index:1}.gallery-overlay-hlname-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin:0 2px 2px;padding:0 5px;max-width:calc(100% - 14px);bottom:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{padding:0 5px}.isLtr[_nghost-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin:2px 0 0 2px}html[dir=ltr][_ngcontent-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{--dummy: 0;margin:2px 0 0 2px}.isRtl[_nghost-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin:2px 2px 0 0}html[dir=rtl][_ngcontent-%COMP%] .gallery-overlay-duration-div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{--dummy: 0;margin:2px 2px 0 0}"]}),F})()},43664:(Ue,W,d)=>{"use strict";d.d(W,{$:()=>p});var n=d(58527),l=d(44224);let p=(()=>{var m;class _{constructor(){this.marginNotReq=!1}}return(m=_).\u0275fac=function(v){return new(v||m)},m.\u0275cmp=n.VBU({type:m,selectors:[["nv-divider"]],inputs:{marginNotReq:"marginNotReq"},decls:1,vars:2,consts:[[1,"nv-divider"]],template:function(v,O){1&v&&n.nrm(0,"mat-divider",0),2&v&&n.AVh("nv-divider-side-margin",O.marginNotReq)},dependencies:[l.q],styles:[".nv-divider[_ngcontent-%COMP%]{margin:16px}.isLtr[_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.isLtr[_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .nv-divider-side-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}"]}),_})()},83486:(Ue,W,d)=>{"use strict";d.d(W,{T:()=>L});var n=d(58527),l=d(44296),p=d(1331),m=d(61142),_=d(3457),P=d(28139),v=d(51394),O=d(44224),S=d(29370),y=d(51635),r=d(31308),i=d(52834),a=d(65240);const h=["dropdownContainer"],g=x=>({"max-height.px":x}),c=(x,V)=>({"subitem-left-padding-gfn":x,"subitem-left-padding-nvapp":V});function T(x,V){1&x&&n.nrm(0,"mat-divider")}function A(x,V){if(1&x){const D=n.RV6();n.qex(0),n.j41(1,"button",10),n.bIt("click",function(){const I=n.eBV(D).index,k=n.XpG();return n.Njj(k.itemSelect(I))}),n.j41(2,"div",11),n.EFF(3),n.nI1(4,"translate"),n.k0s()(),n.DNE(5,T,1,0,"mat-divider",12),n.bVm()}if(2&x){const D=V.$implicit,F=V.index,I=n.XpG();n.R7$(),n.AVh("active",F==I.selection),n.Y8G("ngClass",n.l_i(8,c,!I.tvMode&&!I.isNvapp,!I.tvMode&&I.isNvapp)),n.R7$(),n.Y8G("ngClass",I.tvMode?"font-body2":"font-body1 font-color-primary subitem-left-padding"),n.R7$(),n.SpI(" ",n.bMT(4,6,D)," "),n.R7$(2),n.Y8G("ngIf",F===I.dividerIndex)}}let L=(()=>{var x;class V{set disabled(F){this.disabledState=F,this.disable=F||!!(this.input&&this.input.length<2)}get input(){return this._input}set input(F){this._input=F,this.setEntry()}set dividerIndex(F){this._dividerIndex=F}get dividerIndex(){return this._dividerIndex}set selection(F){this._selection=F,this.setEntry()}get selection(){return this._selection}constructor(F,I){this.navigationService=F,this.featureSupportService=I,this.disabledState=void 0,this.disable=!1,this.menuOpen=!1,this._input=[],this.isBackgroundColorReq=!0,this._dividerIndex=-1,this._selection=0,this.tvMode=!1,this.isNvapp=!1,this.selectionChanged=new n.bkB,this.tvMode=this.featureSupportService.isTVMode(),this.isNvapp=this.featureSupportService.isNvApp()}setEntry(){this.input&&this.input.length>0?((this.selection<0||this.selection>=this.input.length)&&(this.selection=0),this.entry=this.input[this.selection],this.disable=!!this.disabledState||this.input.length<2):(this.entry="",this.disable=!0)}ngOnInit(){this.setEntry()}itemSelect(F){this.selection!==F&&(this.selection=F,this.selectionChanged.emit(F),this.navigationService.disableEscapeEvent(!1),this.setEntry())}buttonToggle(F){setTimeout(()=>{if(this.menuOpen=F,this.navigationService.disableEscapeEvent(F),F){const I=this.dropdownContainer.nativeElement.offsetWidth;this.menuItems.forEach((k,R)=>{k._getHostElement().style.width=I+"px",this.selection===R&&k.focus()})}})}}return(x=V).\u0275fac=function(F){return new(F||x)(n.rXU(p.o_p),n.rXU(p.Rvq))},x.\u0275cmp=n.VBU({type:x,selectors:[["nv-dropdown"]],viewQuery:function(F,I){if(1&F&&(n.GBs(h,5),n.GBs(l.gy,5)),2&F){let k;n.mGM(k=n.lsd())&&(I.dropdownContainer=k.first),n.mGM(k=n.lsd())&&(I.menuItems=k)}},inputs:{maxHeight:"maxHeight",disabled:"disabled",input:"input",textFont16:"textFont16",isBackgroundColorReq:"isBackgroundColorReq",dividerIndex:"dividerIndex",selection:"selection"},outputs:{selectionChanged:"selectionChanged"},decls:12,vars:17,consts:[["dropdownContainer",""],["menu","matMenu"],["fxFlex","grow",1,"nv-dropdown"],["fxFlex","","matRipple","","fxLayout","row","fxLayoutAlign","start center","cdkMonitorElementFocus","",1,"nv-dropdown-label","hig-button-overlay",3,"menuOpened","menuClosed","matMenuTriggerFor","ngClass","disabled"],["dir","auto","fxFlex","",1,"menu-text",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon","arrow-icon"],["svgIcon","chevron_down",1,"icon-normal","osc-item-icon","arrow-icon"],["xPosition","after","yPosition","below","overlapTrigger","false",1,"nv-igo","mat-menu-max-height"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["mat-menu-item","","fxLayout","row","fxLayoutAlign","start center",1,"nv-dropdown-menu","hig-button-overlay",3,"click","ngClass"],["dir","auto",3,"ngClass"],[4,"ngIf"]],template:function(F,I){if(1&F){const k=n.RV6();n.j41(0,"div",2,0)(2,"button",3),n.bIt("menuOpened",function(){return n.eBV(k),n.Njj(I.buttonToggle(!0))})("menuClosed",function(){return n.eBV(k),n.Njj(I.buttonToggle(!1))}),n.j41(3,"div",4),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.j41(6,"div",5),n.nrm(7,"mat-icon",6),n.k0s()(),n.j41(8,"mat-menu",7,1)(10,"div",8),n.DNE(11,A,6,11,"ng-container",9),n.k0s()()()}if(2&F){const k=n.sdS(9);n.AVh("nv-dropdown-z",I.menuOpen),n.R7$(2),n.AVh("nv-dropdown-background-color",I.isBackgroundColorReq),n.Y8G("matMenuTriggerFor",k)("ngClass",I.tvMode?"font-body3":"nvapp-padding")("disabled",I.disable),n.R7$(),n.AVh("font-color-primary",!I.tvMode),n.Y8G("ngClass",I.textFont16?"font-body1":"font-body2"),n.R7$(),n.SpI(" ",n.bMT(5,13,I.entry)," "),n.R7$(6),n.Y8G("ngStyle",n.eq3(15,g,I.maxHeight)),n.R7$(),n.Y8G("ngForOf",I.input)}},dependencies:[m.YU,m.Sq,m.bT,m.B3,_.DJ,_.sA,_.UI,P.PW,P.eI,v.ig,O.q,l.pI,l.gy,l.fS,S.An,y.r6,r.vR,i.I,a.D9],styles:[":host-context(.isRtl) .flip-rtl-element{transform:scaleX(-1)}html[dir=rtl] .flip-rtl-element{--dummy: 0;transform:scaleX(-1)}.background-image-overlay{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}:host[disabled] .nv-item *{cursor:default}.nv-item-icon{width:36px;height:36px}.nv-item-icon mat-icon{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row{padding:0 24px}.nv-item-labels{padding:8px 0;height:100%}.nv-label{padding:8px 0}.default-cursor{cursor:default}.disabled-opacity{opacity:.38}:host-context(.tv-view) ::ng-deep .nv-item-icon{width:40px;height:40px}:host-context(.tv-view) ::ng-deep .nv-item-icon mat-icon,:host-context(.tv-view) ::ng-deep .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}.nv-dropdown{width:100%;height:100%}:host-context(.isLtr) .nvapp-padding{padding-right:16px}html[dir=ltr] .nvapp-padding{--dummy2: 0;padding-right:16px}:host-context(.isRtl) .nvapp-padding{padding-left:16px}html[dir=rtl] .nvapp-padding{--dummy2: 0;padding-left:16px}:host-context(.isLtr) .nvapp-padding{padding-left:16px}html[dir=ltr] .nvapp-padding{--dummy1: 0;padding-left:16px}:host-context(.isRtl) .nvapp-padding{padding-right:16px}html[dir=rtl] .nvapp-padding{--dummy1: 0;padding-right:16px}.nv-dropdown-background-color{background-color:#393939}.nv-dropdown-label .menu-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:456px}:host-context(.isLtr) .nv-dropdown-label .menu-text{text-align:left}html[dir=ltr] .nv-dropdown-label .menu-text{--dummy0: 0;text-align:left}:host-context(.isRtl) .nv-dropdown-label .menu-text{text-align:right}html[dir=rtl] .nv-dropdown-label .menu-text{--dummy0: 0;text-align:right}:host-context(.isLtr) .nv-dropdown-label .menu-text{padding:12px 0}html[dir=ltr] .nv-dropdown-label .menu-text{--dummy: 0;padding:12px 0}:host-context(.isRtl) .nv-dropdown-label .menu-text{padding:12px 0}html[dir=rtl] .nv-dropdown-label .menu-text{--dummy: 0;padding:12px 0}.tv-view .nv-dropdown-label .menu-text{max-width:100%}:host-context(.isLtr) .tv-view .nv-dropdown-label .menu-text{padding:16px 0 16px 8px}html[dir=ltr] .tv-view .nv-dropdown-label .menu-text{--dummy: 0;padding:16px 0 16px 8px}:host-context(.isRtl) .tv-view .nv-dropdown-label .menu-text{padding:16px 8px 16px 0}html[dir=rtl] .tv-view .nv-dropdown-label .menu-text{--dummy: 0;padding:16px 8px 16px 0}.nv-dropdown-z{z-index:9999}button.nv-dropdown-menu{box-sizing:border-box;margin:0;width:100%;height:unset}button.nv-dropdown-menu div{padding:8px 16px;overflow:hidden;text-overflow:ellipsis}:host-context(.isLtr) button.nv-dropdown-menu div{text-align:left}html[dir=ltr] button.nv-dropdown-menu div{--dummy0: 0;text-align:left}:host-context(.isRtl) button.nv-dropdown-menu div{text-align:right}html[dir=rtl] button.nv-dropdown-menu div{--dummy0: 0;text-align:right}button.nv-dropdown-menu.active div{color:#76b900}.nv-igo.mat-menu-max-height{max-height:872px}.nv-igo.mat-menu-max-height .mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}:host-context(.isLtr) .subitem-left-padding-gfn{padding-left:16px}html[dir=ltr] .subitem-left-padding-gfn{--dummy1: 0;padding-left:16px}:host-context(.isRtl) .subitem-left-padding-gfn{padding-right:16px}html[dir=rtl] .subitem-left-padding-gfn{--dummy1: 0;padding-right:16px}:host-context(.isLtr) .subitem-left-padding-nvapp{padding-left:32px}html[dir=ltr] .subitem-left-padding-nvapp{--dummy1: 0;padding-left:32px}:host-context(.isRtl) .subitem-left-padding-nvapp{padding-right:32px}html[dir=rtl] .subitem-left-padding-nvapp{--dummy1: 0;padding-right:32px}\n"],encapsulation:2}),V})()},55962:(Ue,W,d)=>{"use strict";d.d(W,{e:()=>a});var n=d(58527),l=d(1331),p=d(14354),m=d(3567);const _=["browser"],P=["locspan"],v=["entireItem"];function O(h,g){1&h&&(n.j41(0,"button",13),n.nI1(1,"translate"),n.nrm(2,"mat-icon",14),n.k0s()),2&h&&n.Y8G("matTooltip",n.bMT(1,1,"tooltips.ChangeLocation"))}function S(h,g){if(1&h&&(n.j41(0,"div",10)(1,"div",11),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,O,3,3,"button",12),n.k0s()),2&h){const c=n.XpG();n.R7$(2),n.SpI(" ",n.bMT(3,2,c.title)," "),n.R7$(2),n.Y8G("ngIf",c.openFunction)}}function y(h,g){if(1&h){const c=n.RV6();n.j41(0,"button",15,2),n.nI1(2,"translate"),n.bIt("click",function(){n.eBV(c);const A=n.XpG();return n.Njj(A.goUpOneLevel())}),n.nrm(3,"mat-icon",16),n.k0s()}2&h&&n.Y8G("matTooltip",n.bMT(2,1,"tooltips.ParentFolder"))}function r(h,g){if(1&h){const c=n.RV6();n.j41(0,"nv-item-button",23),n.bIt("clicked",function(){n.eBV(c);const A=n.XpG(2);return n.Njj(A.clearEntry())}),n.k0s()}}function i(h,g){if(1&h){const c=n.RV6();n.j41(0,"div",17),n.nrm(1,"div",18),n.DNE(2,r,1,0,"nv-item-button",19),n.j41(3,"div",20),n.nrm(4,"div",18),n.j41(5,"div",21)(6,"nv-item-button",22),n.bIt("clicked",function(){n.eBV(c);const A=n.XpG();return n.Njj(A.openBrowser())}),n.k0s()()()()}if(2&h){const c=n.XpG();n.R7$(2),n.Y8G("ngIf",c.showClose),n.R7$(4),n.Y8G("disabled",c.disabled)}}let a=(()=>{var h;class g{constructor(T,A,L,x,V){this.route=T,this.navigationService=A,this.renderer=L,this.loggingService=x,this.featureSupportService=V,this.enableScrolling=!1,this.useIcon="folder",this.validEntry=!1,this.fileMode=!1,this.showClose=!1,this.textLarge=!0,this.textMedium=!1,this.textSmall=!1,this.titleClass="",this.isNvApp=!1,this._openFunction=!0,this._files="",this.clicked=new n.bkB,this.selected=new n.bkB,this.goUpOneLevel=function(){this.clicked.emit()},this.logger=this.loggingService.getLogger("NvFolderBrowser"),this.isNvApp=this.featureSupportService.isNvApp()}get showTitle(){return this._showTitle}set showTitle(T){this._showTitle=T,this.checkOverrides()}get openFunction(){return this._openFunction}set openFunction(T){this._openFunction=T,this.checkOverrides()}get files(){return this._files}set files(T){this._files=T,this.useIcon="true"===T?"file":"folder",this.fileMode="true"===T}set pathLocation(T){T&&setTimeout(()=>{this.location=T,this.validEntry=""!==T,this.showClose=this.validEntry&&this.openFunction&&this.fileMode,this.checkOverrides();const A=this.getWidthOfText(this.location,"NVIDIA","14px"),x=this.locspan.nativeElement.offsetWidth-(this.entireItem.nativeElement.offsetWidth-this.locspan.nativeElement.offsetWidth)-8;this.enableScrolling=A.valueOf()>x,this.logger.info("Text Width: "+A+" Element Width: "+x+" Enable scroll: "+this.enableScrolling)})}get pathLocation(){return this.location}checkOverrides(){this.textMedium=this.showClose||!this._openFunction||this._openFunction&&!this._showTitle,this.textSmall=this.showClose&&(!this._openFunction||this._openFunction&&!this._showTitle),this.textLarge=!this.textMedium&&!this.textSmall,this.logger.info("Large: "+this.textLarge+" Medium: "+this.textMedium+" Small: "+this.textSmall),this.titleClass="font-body1 font-color-primary"}getFormat(){switch(this.caller){case"storage":case"perfmon":return"font-body2 font-color-tertiary";case"browser":return"font-body1 font-color-primary";case"broadcast":return"text-pad font-body2 disabled-opacity"}}openBrowser(){this.logger.info("Folder Browser source:",this.source),this.logger.info("Folder Browser caller:",this.caller),this.navigationService.navigate(["../browser",{title:this.title,location:this.pathLocation,source:this.source,external:this.external,caller:this.caller,files:this.files}],{relativeTo:this.route.parent,skipLocationChange:!0},l.jby.browser)}clearEntry(){setTimeout(()=>{this.location="",this.validEntry=!1,this.showClose=!1,this.enableScrolling=!1,this.checkOverrides(),this.selected.emit(this.source)})}focus(){this.element.nativeElement.focus()}getWidthOfText(T,A,L){const V=this.renderer.createElement("canvas").getContext("2d");return V.font=L+" "+A,V.measureText(T).width}}return(h=g).\u0275fac=function(T){return new(T||h)(n.rXU(p.nX),n.rXU(l.o_p),n.rXU(n.sFG),n.rXU(m.J6),n.rXU(l.Rvq))},h.\u0275cmp=n.VBU({type:h,selectors:[["nv-folder-browser"]],viewQuery:function(T,A){if(1&T&&(n.GBs(_,5),n.GBs(P,7),n.GBs(v,7)),2&T){let L;n.mGM(L=n.lsd())&&(A.element=L.first),n.mGM(L=n.lsd())&&(A.locspan=L.first),n.mGM(L=n.lsd())&&(A.entireItem=L.first)}},inputs:{title:"title",source:"source",placeholder:"placeholder",caller:"caller",disabled:"disabled",external:"external",showTitle:"showTitle",openFunction:"openFunction",files:"files",pathLocation:"pathLocation"},outputs:{clicked:"clicked",selected:"selected"},decls:10,vars:20,consts:[["entireItem",""],["locspan",""],["browser",""],["fxLayout","column","fxLayoutAlign","start center",1,"nv-folder-title",3,"click","ngClass"],["class","title","fxFlexFill","","fxFlex","grow","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","grow","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","none",3,"click","ngClass"],["tabindex","-1"],["class","nv-item-icon browse-btn icon-normal folder-icon-height","matTooltipClass","nv-igo igo-tooltip",3,"matTooltip","click",4,"ngIf"],["fxLayoutAlign","start center",4,"ngIf"],["fxFlexFill","","fxFlex","grow","fxLayout","row","fxLayoutAlign","start center",1,"title"],["fxFlex","grow",1,"title-font","title-padding-left"],["class","folder-icon-height","matTooltipClass","nv-igo igo-tooltip",3,"matTooltip",4,"ngIf"],["matTooltipClass","nv-igo igo-tooltip",1,"folder-icon-height",3,"matTooltip"],["svgIcon","folder",1,"icon-normal","title-padding-right"],["matTooltipClass","nv-igo igo-tooltip",1,"nv-item-icon","browse-btn","icon-normal","folder-icon-height",3,"click","matTooltip"],["svgIcon","browser_nav_up"],["fxLayoutAlign","start center"],["fxFlex","none",1,"nv-horizontal-gap-8"],["svgIcon","close",3,"clicked",4,"ngIf"],[1,"open-btn-area"],[1,"open-btn-hover"],["svgIcon","image","tooltip","tooltips.SelectImage",3,"clicked","disabled"],["svgIcon","close",3,"clicked"]],template:function(T,A){if(1&T){const L=n.RV6();n.j41(0,"div",3),n.bIt("click",function(){return n.eBV(L),n.Njj(A.openBrowser())}),n.DNE(1,S,5,4,"div",4),n.j41(2,"div",5,0)(4,"div",6,1),n.bIt("click",function(){return n.eBV(L),n.Njj(A.openFunction?A.openBrowser():A.goUpOneLevel())}),n.j41(6,"span",7),n.EFF(7),n.k0s()(),n.DNE(8,y,4,3,"button",8)(9,i,7,2,"div",9),n.k0s()()}2&T&&(n.AVh("disable-hover",A.disabled),n.Y8G("ngClass",A.showTitle?"padding-top-with-title":"padding-top-without-title"),n.R7$(),n.Y8G("ngIf",A.showTitle),n.R7$(),n.AVh("nv-folder-browser-selector","broadcast"===A.caller),n.R7$(2),n.AVh("nv-folder-text",A.enableScrolling)("nv-folder-text-noscroll",!A.enableScrolling)("nv-folder-text-large",A.textLarge)("nv-folder-text-medium",A.textMedium)("nv-folder-text-small",A.textSmall),n.Y8G("ngClass",A.getFormat()),n.R7$(3),n.JRh(A.location?A.location:A.placeholder),n.R7$(),n.Y8G("ngIf",!A.openFunction),n.R7$(),n.Y8G("ngIf","broadcast"===A.caller))},styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}.nv-folder-title[_ngcontent-%COMP%]:hover{background:#ffffff14;cursor:pointer}.disable-hover[_ngcontent-%COMP%]{pointer-events:none}.nv-folder-browser-selector[_ngcontent-%COMP%]{background-color:#393939;height:52px}.isLtr[_nghost-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-folder-browser-selector[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.padding-top-with-title[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px}.folder-icon-height[_ngcontent-%COMP%]{height:24px}.padding-top-without-title[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.nv-folder-text-noscroll[_ngcontent-%COMP%], .nv-folder-text[_ngcontent-%COMP%]{border:0;margin:0;height:24px;box-sizing:border-box;overflow:hidden;position:relative}.nv-folder-text-noscroll[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .nv-folder-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:nowrap}.nv-folder-text-noscroll.nv-folder-text-large[_ngcontent-%COMP%], .nv-folder-text.nv-folder-text-large[_ngcontent-%COMP%]{width:480px}.nv-folder-text-noscroll.nv-folder-text-medium[_ngcontent-%COMP%], .nv-folder-text.nv-folder-text-medium[_ngcontent-%COMP%]{width:436px}.nv-folder-text-noscroll.nv-folder-text-small[_ngcontent-%COMP%], .nv-folder-text.nv-folder-text-small[_ngcontent-%COMP%]{width:360px}.nv-folder-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;transform:translate(0);transition:1s;top:0;left:0}.nv-folder-text[_ngcontent-%COMP%]:hover.nv-folder-text-large span[_ngcontent-%COMP%]{transform:translate(calc(480px - 100%))}.nv-folder-text[_ngcontent-%COMP%]:hover.nv-folder-text-medium span[_ngcontent-%COMP%]{transform:translate(calc(436px - 100%))}.nv-folder-text[_ngcontent-%COMP%]:hover.nv-folder-text-small span[_ngcontent-%COMP%]{transform:translate(calc(360px - 100%))}.isLtr[_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .browse-btn[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .browse-btn[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.browse-btn[disabled][_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{opacity:.38}.open-btn-area[_ngcontent-%COMP%]{background-color:#191919;height:52px}.open-btn-hover[_ngcontent-%COMP%]{margin-top:8px;height:36px}.isLtr[_nghost-%COMP%] .title-padding-left[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .title-padding-left[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .title-padding-left[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .title-padding-left[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .title-padding-left[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .title-padding-left[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .title-padding-right[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .title-padding-right[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .title-padding-right[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .title-padding-right[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .title-padding-right[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .title-padding-right[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.title-padding-top[_ngcontent-%COMP%]{padding-top:14px}.title-padding-bottom[_ngcontent-%COMP%]{padding-bottom:14px}.title-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .title-font[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .title-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .title-font[_ngcontent-%COMP%]{color:#ffffffd9}.path-padding[_ngcontent-%COMP%]{padding:12px 16px}.isLtr[_nghost-%COMP%] .path-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .path-padding[_ngcontent-%COMP%]{padding-right:0}html[dir=ltr][_ngcontent-%COMP%] .path-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-right:0}.isRtl[_nghost-%COMP%] .path-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .path-padding[_ngcontent-%COMP%]{padding-left:0}html[dir=rtl][_ngcontent-%COMP%] .path-padding[_ngcontent-%COMP%]{--dummy2: 0;padding-left:0}.nvapp-igo-view[_nghost-%COMP%] .nv-folder-text.nv-folder-text-medium[_ngcontent-%COMP%], .nvapp-igo-view [_nghost-%COMP%] .nv-folder-text.nv-folder-text-medium[_ngcontent-%COMP%]{width:436px}"]}),g})()},21254:(Ue,W,d)=>{"use strict";d.d(W,{Q:()=>i});var n=d(58527),l=d(61142),p=d(3457),m=d(56106),_=d(74292),P=d(50599),v=d(52834),O=d(65240);const S=a=>({arg:a});function y(a,h){if(1&a&&(n.j41(0,"div",5)(1,"mat-hint"),n.EFF(2),n.k0s()()),2&a){const g=n.XpG(),c=n.sdS(3);n.R7$(2),n.Lme("",(null==c.value?null:c.value.length)||0,"/",g.textMaxLength,"")}}let i=(()=>{var a;class h{constructor(){this.characterCounter=!1,this.isColorCode=!1,this.textChange=new n.bkB,this.stringChange=new n.bkB,this.focus=new n.bkB,this.blur=new n.bkB}updateSource(){this.isColorCode&&!this.validateCustomFontColorInput(this.text)&&(this.text=this.defaultColorCode),this.textChange.emit(this.text)}textInput(c){const T=c.target;T&&this.textMaxLength<=T.value.length?T.value=this.text=T.value.slice(0,this.textMaxLength):this.text=T.value,this.stringChange.emit(this.text)}onFocus(){this.focus.emit()}onBlur(){this.blur.emit()}validateCustomFontColorInput(c){return new RegExp("^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$").test(c)}}return(a=h).\u0275fac=function(c){return new(c||a)},a.\u0275cmp=n.VBU({type:a,selectors:[["nv-input"]],inputs:{textMaxLength:"textMaxLength",text:"text",disabled:"disabled",characterCounter:"characterCounter",readonly:"readonly",tabindex:"tabindex",placeholderText:"placeholderText",isColorCode:"isColorCode",defaultColorCode:"defaultColorCode"},outputs:{textChange:"textChange",stringChange:"stringChange",focus:"focus",blur:"blur"},decls:6,vars:11,consts:[["input",""],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex",""],["type","text","fxLayoutAlign","center center","matInput","","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"font-body2","nv-input",3,"ngModelChange","change","input","focus","blur","placeholder","ngModel","disabled","readonly","tabindex"],["fxLayoutAlign","end","class","font-body2",4,"ngIf"],["fxLayoutAlign","end",1,"font-body2"]],template:function(c,T){if(1&c){const A=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"input",3,0),n.nI1(4,"translate"),n.mxI("ngModelChange",function(x){return n.eBV(A),n.DH7(T.text,x)||(T.text=x),n.Njj(x)}),n.bIt("change",function(){return n.eBV(A),n.Njj(T.updateSource())})("input",function(x){return n.eBV(A),n.Njj(T.textInput(x))})("focus",function(){return n.eBV(A),n.Njj(T.onFocus())})("blur",function(){return n.eBV(A),n.Njj(T.onBlur())}),n.k0s(),n.DNE(5,y,3,2,"div",4),n.k0s()()}2&c&&(n.R7$(2),n.Y8G("placeholder",n.i5U(4,6,null==T.placeholderText?null:T.placeholderText.text,n.eq3(9,S,null==T.placeholderText?null:T.placeholderText.arg))),n.R50("ngModel",T.text),n.Y8G("disabled",T.disabled)("readonly",T.readonly)("tabindex",T.tabindex),n.R7$(3),n.Y8G("ngIf",T.characterCounter))},dependencies:[l.bT,p.DJ,p.sA,p.UI,m.me,m.BC,m.vS,_.MV,P.fg,v.I,O.D9],styles:[".nv-input[_ngcontent-%COMP%]{height:52px;width:100%;margin:8px 0;background-color:#393939;border:0;caret-color:#76b900;box-sizing:border-box;padding:16px 16px 15px;border-bottom:1px solid rgba(255,255,255,.3);color:#ffffffbf}.nv-input[_ngcontent-%COMP%]:disabled{color:#ffffff61;cursor:default}.nv-input[_ngcontent-%COMP%]:focus{padding-bottom:14px;border-bottom:2px solid #76b900}[_ngcontent-%COMP%]::placeholder{color:#ffffff61}input[_ngcontent-%COMP%]:focus::-webkit-input-placeholder{color:transparent}"]}),h})()},43822:(Ue,W,d)=>{"use strict";d.d(W,{j:()=>I});var n=d(58527),l=d(1331),p=d(61142),m=d(3457),_=d(28139),P=d(47973),v=d(29370),O=d(44186),S=d(65240),y=d(52834);const r=["button"],i=k=>({"default-cursor":k}),a=(k,R,G)=>({"font-sub1":k,"font-body1 font-color-primary":R,"nv-url-main-title":G}),h=k=>({"nv-last-icon":k});function g(k,R){if(1&k&&(n.j41(0,"div",10),n.nrm(1,"mat-icon",11),n.k0s()),2&k){const G=n.XpG();n.AVh("svg-icon-right-margin",(G.titleString||G.subTitle)&&!G.tvMode)("single-icon-top-padding",!G.titleString&&!G.tvMode)("svg-icon-details",G.titleString&&!G.tvMode)("svg-icon-top-padding",G.titleString&&G.subTitle&&!G.tvMode)("svg-icon-top-padding-no-subtitle",G.titleString&&!G.subTitle&&!G.tvMode),n.R7$(),n.FS9("svgIcon",G.svgIcon)}}function c(k,R){if(1&k&&n.nrm(0,"span",15),2&k){const G=n.XpG(2);n.Y8G("ngClass",n.sMw(3,a,G.titleFontBold,!G.tvMode&&!G.titleFontBold,G.tvMode&&!G.titleFontBold))("translate",G.titleString)("translateParams",G.titleArg)}}function T(k,R){if(1&k&&n.nrm(0,"span",16),2&k){const G=n.XpG(2);n.AVh("disabled-opacity",G.tvMode&&!G.disabled),n.Y8G("translate",G.subTitle)("translateParams",G.subTitleArg)}}function A(k,R){if(1&k&&(n.j41(0,"div",12),n.DNE(1,c,1,7,"span",13)(2,T,1,4,"span",14),n.k0s()),2&k){const G=n.XpG();n.AVh("nv-item-labels",G.tvMode&&G.svgIcon)("nv-button-top-padding-no-subtitle",!G.subTitle&&!G.tvMode)("nv-button-top-padding",G.subTitle&&!G.tvMode),n.R7$(),n.Y8G("ngIf",G.titleString),n.R7$(),n.Y8G("ngIf",G.subTitle&&G.subtitleVisible)}}function L(k,R){if(1&k&&(n.j41(0,"div",10),n.nrm(1,"mat-icon",11),n.k0s()),2&k){const G=n.XpG();n.AVh("svg-icon-right-margin",G.titleString||G.subTitle),n.R7$(),n.FS9("svgIcon",G.svgIcon)}}function x(k,R){if(1&k){const G=n.RV6();n.j41(0,"div",17)(1,"button",18),n.bIt("click",function(K){n.eBV(G);const $=n.XpG();return n.Njj($.onSecondButtonClick(K))}),n.j41(2,"div",19),n.nrm(3,"mat-icon",20),n.k0s()()()}}function V(k,R){if(1&k&&(n.j41(0,"div",21),n.EFF(1),n.k0s()),2&k){const G=n.XpG();n.R7$(),n.SpI(" ",G.subText," ")}}function D(k,R){if(1&k&&(n.j41(0,"div",22),n.nrm(1,"mat-icon",23),n.k0s()),2&k){const G=n.XpG();n.AVh("single-icon-top-padding",!G.titleString&&!G.tvMode)("svg-icon-details",G.titleString&&!G.tvMode)("svg-icon-top-padding",G.titleString&&G.subTitle&&!G.tvMode)("svg-icon-top-padding-no-subtitle",G.titleString&&!G.subTitle&&!G.tvMode)("nv-url-icon-right",G.tvMode&&G.tvRightIconExtraPadding),n.Y8G("ngClass",n.eq3(11,h,G.titleString))}}function F(k,R){if(1&k&&(n.j41(0,"div",22),n.nrm(1,"mat-icon",11),n.k0s()),2&k){const G=n.XpG();n.AVh("single-icon-top-padding",!G.titleString&&!G.tvMode)("svg-icon-details",G.titleString&&!G.tvMode)("svg-icon-top-padding",G.titleString&&G.subTitle&&!G.tvMode)("svg-icon-top-padding-no-subtitle",G.titleString&&!G.subTitle&&!G.tvMode)("nv-url-icon-right",G.tvMode&&G.tvRightIconExtraPadding),n.Y8G("ngClass",n.eq3(12,h,G.titleString)),n.R7$(),n.FS9("svgIcon",G.urlIcon)}}let I=(()=>{var k;class R{constructor(Y){this.featureSupportService=Y,this.svgIcon=void 0,this.urlIcon=void 0,this.iconOnRight=!1,this.disabled=!1,this.focusEnabled=!0,this.titleString=void 0,this.titleArg=void 0,this.tooltip=void 0,this.subTitle=void 0,this.subTitleArg=void 0,this.chevron=!1,this.subtitleVisible=!0,this.secondButton=!1,this.mainMenuUse=!1,this.subText=void 0,this.titleFontBold=!1,this.rotaryButtonSub=!1,this.tvRightIconExtraPadding=!0,this.tabindex=0,this.useItemLableForClass=!1,this.tvMode=!1,this.clicked=new n.bkB,this.secondButtonclicked=new n.bkB,this.onClick=function(){this.clicked.emit()},this.onSecondButtonClick=function(K){K.stopPropagation(),this.secondButtonclicked.emit()},this.tvMode=this.featureSupportService.isTVMode()}ngOnInit(){this.useItemLableForClass=this.urlIcon&&!this.mainMenuUse}focus(){this.element.nativeElement.focus()}}return(k=R).\u0275fac=function(Y){return new(Y||k)(n.rXU(l.Rvq))},k.\u0275cmp=n.VBU({type:k,selectors:[["nv-item-button"]],viewQuery:function(Y,K){if(1&Y&&n.GBs(r,7),2&Y){let $;n.mGM($=n.lsd())&&(K.element=$.first)}},inputs:{svgIcon:"svgIcon",urlIcon:"urlIcon",iconOnRight:"iconOnRight",disabled:"disabled",focusEnabled:"focusEnabled",titleString:"titleString",titleArg:"titleArg",tooltip:"tooltip",subTitle:"subTitle",subTitleArg:"subTitleArg",chevron:"chevron",subtitleVisible:"subtitleVisible",secondButton:"secondButton",mainMenuUse:"mainMenuUse",subText:"subText",titleFontBold:"titleFontBold",rotaryButtonSub:"rotaryButtonSub",tvRightIconExtraPadding:"tvRightIconExtraPadding",tabindex:"tabindex"},outputs:{clicked:"clicked",secondButtonclicked:"secondButtonclicked"},decls:11,vars:21,consts:[["button",""],["mat-button","","fxFlex","","matTooltipClass","nv-igo igo-tooltip",1,"nv-item-button-container","complex-button","font-body2",3,"click","disabled","tabindex","ngClass","matTooltip"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start",1,"nv-url-width"],["class","nv-item-icon","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"svg-icon-right-margin","single-icon-top-padding","svg-icon-details","svg-icon-top-padding","svg-icon-top-padding-no-subtitle",4,"ngIf"],["class","nv-url-titles","fxFlexAlign","center","fxLayout","column","fxLayoutAlign","start start","fxFlex","",3,"nv-item-labels","nv-button-top-padding-no-subtitle","nv-button-top-padding",4,"ngIf"],["class","nv-item-icon","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"svg-icon-right-margin",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","none",4,"ngIf"],["class","nv-url-icon nv-subtext","fxLayout","column","fxLayoutAlign","center center","fxFlex","none",4,"ngIf"],["class","nv-url-icon","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"ngClass","single-icon-top-padding","svg-icon-details","svg-icon-top-padding","svg-icon-top-padding-no-subtitle","nv-url-icon-right",4,"ngIf"],["class","nv-url-icon","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"single-icon-top-padding","svg-icon-details","svg-icon-top-padding","svg-icon-top-padding-no-subtitle","nv-url-icon-right","ngClass",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon"],[3,"svgIcon"],["fxFlexAlign","center","fxLayout","column","fxLayoutAlign","start start","fxFlex","",1,"nv-url-titles"],["class","",3,"ngClass","translate","translateParams",4,"ngIf"],["class","nv-subtitle-font",3,"disabled-opacity","translate","translateParams",4,"ngIf"],[1,"",3,"ngClass","translate","translateParams"],[1,"nv-subtitle-font",3,"translate","translateParams"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","none"],["mat-button","",1,"nv-item-button-container","complex-button","font-body2","second-button-padding",3,"click"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-url-icon"],["svgIcon","save"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","none",1,"nv-url-icon","nv-subtext"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-url-icon",3,"ngClass"],["svgIcon","chevron_right"]],template:function(Y,K){if(1&Y){const $=n.RV6();n.j41(0,"button",1,0),n.nI1(2,"translate"),n.bIt("click",function(){return n.eBV($),n.Njj(K.onClick())}),n.j41(3,"div",2),n.DNE(4,g,2,11,"div",3)(5,A,3,8,"div",4)(6,L,2,3,"div",5)(7,x,4,0,"div",6)(8,V,2,1,"div",7)(9,D,2,13,"div",8)(10,F,2,14,"div",9),n.k0s()()}2&Y&&(n.AVh("padding-nvapp",K.titleString&&!K.tvMode)("disabled-opacity",K.disabled)("rounded-button-sub",K.rotaryButtonSub),n.Y8G("disabled",K.disabled)("tabindex",K.tabindex)("ngClass",n.eq3(19,i,!K.focusEnabled))("matTooltip",n.bMT(2,17,K.tooltip)),n.R7$(4),n.Y8G("ngIf",K.svgIcon&&!K.iconOnRight),n.R7$(),n.Y8G("ngIf",K.titleString||K.subTitle),n.R7$(),n.Y8G("ngIf",K.svgIcon&&K.iconOnRight),n.R7$(),n.Y8G("ngIf",K.secondButton),n.R7$(),n.Y8G("ngIf",K.subText),n.R7$(),n.Y8G("ngIf",K.chevron),n.R7$(),n.Y8G("ngIf",K.urlIcon))},dependencies:[p.YU,p.bT,m.DJ,m.sA,m.R$,m.UI,_.PW,P.iV,v.An,O.oV,S.Mm,y.I,S.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}.nv-item-button-container[_ngcontent-%COMP%]{max-width:512px}.isLtr[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.isLtr[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .padding-nvapp[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.nv-subtitle-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;color:#fff9}.tv-view[_ngcontent-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%]{color:#ffffffd9}.isLtr[_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .svg-icon-right-margin[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.single-icon-top-padding[_ngcontent-%COMP%]{padding-top:0;width:24px;height:24px}.second-button-padding[_ngcontent-%COMP%]{width:24px;height:24px;margin-top:14px}.isLtr[_nghost-%COMP%] .second-button-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .second-button-padding[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .second-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .second-button-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .second-button-padding[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .second-button-padding[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.rounded-button-sub[_ngcontent-%COMP%]{padding:14px;border-radius:50%!important}.svg-icon-top-padding[_ngcontent-%COMP%]{margin-top:14px}.svg-icon-top-padding-no-subtitle[_ngcontent-%COMP%]{margin-top:12px}.nv-item-button-container[disabled][_ngcontent-%COMP%]{opacity:.38}.nv-url-color[_ngcontent-%COMP%]{color:#ffffffe6}.nv-button-top-padding-no-subtitle[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.nv-button-top-padding[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px}.isLtr[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.url-icon-margin-top[_ngcontent-%COMP%]{margin-top:14px}.svg-icon-details[_ngcontent-%COMP%]{width:24px;height:24px}.nv-url-icon[_ngcontent-%COMP%]{width:24px;height:24px;box-sizing:border-box mat-icon;box-sizing-color:rgba(255,255,255,.9);box-sizing-width:24px;box-sizing-height:24px;box-sizing-font-size:24px}.nv-subtext[_ngcontent-%COMP%]{margin-top:14px}.isLtr[_nghost-%COMP%] .nv-subtext[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-subtext[_ngcontent-%COMP%]{margin-right:24px}html[dir=ltr][_ngcontent-%COMP%] .nv-subtext[_ngcontent-%COMP%]{--dummy4: 0;margin-right:24px}.isRtl[_nghost-%COMP%] .nv-subtext[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-subtext[_ngcontent-%COMP%]{margin-left:24px}html[dir=rtl][_ngcontent-%COMP%] .nv-subtext[_ngcontent-%COMP%]{--dummy4: 0;margin-left:24px}.nv-url-width[_ngcontent-%COMP%]{max-width:100%}.width-nvapp[_ngcontent-%COMP%]{width:412px}.isLtr[_nghost-%COMP%] .nv-first-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-first-icon[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-first-icon[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .nv-first-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-first-icon[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-first-icon[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr[_nghost-%COMP%] .nv-last-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-last-icon[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr][_ngcontent-%COMP%] .nv-last-icon[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl[_nghost-%COMP%] .nv-last-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-last-icon[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl][_ngcontent-%COMP%] .nv-last-icon[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.nv-url-titles[_ngcontent-%COMP%]{white-space:normal}.isLtr[_nghost-%COMP%] .nv-url-titles[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-url-titles[_ngcontent-%COMP%]{text-align:left}html[dir=ltr][_ngcontent-%COMP%] .nv-url-titles[_ngcontent-%COMP%]{--dummy0: 0;text-align:left}.isRtl[_nghost-%COMP%] .nv-url-titles[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-url-titles[_ngcontent-%COMP%]{text-align:right}html[dir=rtl][_ngcontent-%COMP%] .nv-url-titles[_ngcontent-%COMP%]{--dummy0: 0;text-align:right}.nv-url-main-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .nv-url-main-title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-url-main-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-main-title[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .nv-url-main-title[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .nv-url-main-title[_ngcontent-%COMP%]{color:#ffffffd9}.nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] .nv-item-button-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-button-container[_ngcontent-%COMP%]{max-width:690px}.tv-view[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.new-10ft.tv-view[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] .nv-subtitle-font[_ngcontent-%COMP%]{color:#ffffffd9}.isLtr.tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr] .tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl.tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl] .tv-view[_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding:0;height:-moz-fit-content;height:fit-content}.isLtr.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding-left:16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-left:16px}.isRtl.tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{padding-right:16px}html[dir=rtl] .tv-view[_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-labels[_ngcontent-%COMP%]{--dummy1: 0;padding-right:16px}.tv-view[_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%]{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.tv-view[_nghost-%COMP%] .nv-url-icon-right[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-url-icon-right[_ngcontent-%COMP%]{margin:6px 0}.tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.nv-url-main-title[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft.tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .new-10ft.tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .new-10ft .tv-view[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .new-10ft .tv-view [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .new-10ft[_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%], .tv-view .new-10ft [_nghost-%COMP%] span.nv-url-main-title.nv-url-color[_ngcontent-%COMP%]{color:#ffffffd9}"]}),R})()},93662:(Ue,W,d)=>{"use strict";d.d(W,{X:()=>i});var n=d(58527),l=d(40262),p=d(3567),m=d(1331);const _=["button"],P=["container"],v=["items"];function O(a,h){if(1&a&&(n.j41(0,"div",12),n.nrm(1,"mat-icon",13),n.k0s()),2&a){const g=n.XpG();n.AVh("nv-icon-padding-subtitle",g.title&&g.subTitle)("nv-icon-padding-nosubtitle",g.title&&!g.subTitle),n.R7$(),n.FS9("svgIcon",g.svgIcon)}}function S(a,h){if(1&a&&n.nrm(0,"span",17),2&a){const g=n.XpG(2);n.AVh("subtitle-font",!g.tvMode),n.Y8G("translate",g.subTitle)("translateParams",g.subTitleArg)}}function y(a,h){if(1&a&&(n.j41(0,"div",14),n.nrm(1,"span",15),n.DNE(2,S,1,4,"span",16),n.k0s()),2&a){const g=n.XpG();n.AVh("disabled-opacity",g.disabled)("nv-item-rotary-padding-subtitle",g.title&&g.subTitle)("nv-item-rotary-padding-nosubtitle",g.title&&!g.subTitle),n.R7$(),n.AVh("title-font",!g.tvMode),n.Y8G("translate",g.title),n.R7$(),n.Y8G("ngIf",g.subTitle)}}function r(a,h){if(1&a&&(n.j41(0,"div",18),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&a){const g=h.$implicit,c=n.XpG();n.xc7("width",c.tvMode?c.tvModeWidth:c.width,"px"),n.AVh("disabled-opacity",c.disabled),n.R7$(),n.SpI(" ",n.bMT(2,5,g)," ")}}let i=(()=>{var a;class h{set input(c){this._input=c,this.displayList=c.slice()}get input(){return this._input}set initialState(c){this._initialState=c,this.initialized&&c!==this.selectedIndex&&(this.ngOnInit(),this.ngAfterViewInit())}get initialState(){return this._initialState}constructor(c,T,A){this.animationBuilder=c,this.subTitle=void 0,this.subTitleArg=void 0,this.disabled=!1,this.width=120,this.title=void 0,this._initialState=0,this.continuous=!0,this.svgIcon=void 0,this.selectionChanged=new n.bkB,this.displayIndex=0,this.selectedIndex=-1,this.initialized=!1,this.isRTLLayout=!1,this.tvModeWidth=180,this.tvMode=!1,this.isRTLLayout=T.isRTLLayoutEnabled,this.tvMode=A.isTVMode()}moveToLeft(){if(!(!1===this.continuous&&0===this.selectedIndex||this.disabled||0===this.input.length)){if(0===this.displayIndex){const c=this.displayList.pop();this.displayList.unshift(c),this.displayIndex=1,this.animateTo(this.displayIndex,!0)}this.displayIndex--,this.selectedIndex=(this.input.length+this.selectedIndex-1)%this.input.length,this.selectionChanged.emit(this.selectedIndex),this.animateTo(this.displayIndex,!1)}}moveToRight(){if(!(!1===this.continuous&&this.selectedIndex===this.input.length-1||this.disabled||0===this.input.length)){if(this.displayIndex+1===this.displayList.length){const c=this.displayList.shift();this.displayList.push(c),this.displayIndex--,this.animateTo(this.displayIndex,!0)}this.displayIndex++,this.selectedIndex=(this.selectedIndex+1)%this.input.length,this.selectionChanged.emit(this.selectedIndex),this.animateTo(this.displayIndex,!1)}}goLeft(c){c?.preventDefault(),this.isRTLLayout?this.moveToRight():this.moveToLeft()}goRight(c){c?.preventDefault(),this.isRTLLayout?this.moveToLeft():this.moveToRight()}ngOnChanges(c){for(const T of Object.keys(c))"input"===T&&(c[T].currentValue.length-1<this.initialState&&(this.initialState=0),(0===this.initialState||this.initialState===this.input.length-1)&&(this.ngOnInit(),this.ngAfterViewInit()))}ngOnInit(){this.displayIndex=this.selectedIndex=this.initialState,this.displayList=this.input?this.input.slice():void 0}ngAfterViewInit(){this.animateTo(this.displayIndex,!0),this.initialized=!0}animateTo(c,T){let A=c*this.container.nativeElement.offsetWidth;this.isRTLLayout||(A*=-1),this.animationBuilder.build([(0,l.i0)(T?0:"250ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,l.iF)({transform:`translateX(${A}px)`}))]).create(this.itemContainer.nativeElement).play()}focus(){this.element.nativeElement.focus()}}return(a=h).\u0275fac=function(c){return new(c||a)(n.rXU(l.S6),n.rXU(p.iH),n.rXU(m.Rvq))},a.\u0275cmp=n.VBU({type:a,selectors:[["nv-rotary"]],viewQuery:function(c,T){if(1&c&&(n.GBs(_,5),n.GBs(P,7),n.GBs(v,7)),2&c){let A;n.mGM(A=n.lsd())&&(T.element=A.first),n.mGM(A=n.lsd())&&(T.container=A.first),n.mGM(A=n.lsd())&&(T.itemContainer=A.first)}},inputs:{input:"input",subTitle:"subTitle",subTitleArg:"subTitleArg",disabled:"disabled",width:"width",title:"title",initialState:"initialState",continuous:"continuous",svgIcon:"svgIcon"},outputs:{selectionChanged:"selectionChanged"},features:[n.OA$],decls:12,vars:12,consts:[["container",""],["items",""],["fxLFlex","","fxLayout","column",1,"nv-item-rotary",3,"keydown.arrowleft","keydown.arrowright"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start"],["class","nv-item-icon nv-icon-dimensions","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"nv-icon-padding-subtitle","nv-icon-padding-nosubtitle",4,"ngIf"],["class","font-color-primary","fxFlex","grow","fxLayout","column","fxLayoutAlign","start start",3,"disabled-opacity","nv-item-rotary-padding-subtitle","nv-item-rotary-padding-nosubtitle",4,"ngIf"],["cdkMonitorElementFocus","","fxLayout","row","fxLayoutAlign","start center",1,"nv-rotary-buttons-container"],["svgIcon","chevron_left",3,"clicked","rotaryButtonSub","disabled","tabindex"],[1,"nv-rotary-data-container"],["fxLayout","row","fxLayoutAlign","start center"],["class","font-color-primary nv-item-rotary-position","fxFlex","none",3,"disabled-opacity","width",4,"ngFor","ngForOf"],["fxLayout","row","svgIcon","chevron_right",3,"clicked","rotaryButtonSub","disabled","tabindex"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"nv-item-icon","nv-icon-dimensions"],[3,"svgIcon"],["fxFlex","grow","fxLayout","column","fxLayoutAlign","start start",1,"font-color-primary"],[3,"translate"],[3,"subtitle-font","translate","translateParams",4,"ngIf"],[3,"translate","translateParams"],["fxFlex","none",1,"font-color-primary","nv-item-rotary-position"]],template:function(c,T){if(1&c){const A=n.RV6();n.j41(0,"div",2),n.bIt("keydown.arrowleft",function(x){return n.eBV(A),n.Njj(T.goLeft(x))})("keydown.arrowright",function(x){return n.eBV(A),n.Njj(T.goRight(x))}),n.j41(1,"div",3),n.DNE(2,O,2,5,"div",4)(3,y,3,10,"div",5),n.j41(4,"div",6)(5,"nv-item-button",7),n.bIt("clicked",function(x){return n.eBV(A),n.Njj(T.goLeft(x))}),n.k0s(),n.j41(6,"div",8,0)(8,"div",9,1),n.DNE(10,r,3,7,"div",10),n.k0s()(),n.j41(11,"nv-item-button",11),n.bIt("clicked",function(x){return n.eBV(A),n.Njj(T.goRight(x))}),n.k0s()()()()}2&c&&(n.R7$(2),n.Y8G("ngIf",T.svgIcon),n.R7$(),n.Y8G("ngIf",T.title),n.R7$(),n.BMQ("tabindex",0),n.R7$(),n.Y8G("rotaryButtonSub",!T.tvMode)("disabled",T.disabled)("tabindex",-1),n.R7$(),n.xc7("width",T.tvMode?T.tvModeWidth:T.width,"px"),n.R7$(4),n.Y8G("ngForOf",T.displayList),n.R7$(),n.Y8G("rotaryButtonSub",!T.tvMode)("disabled",T.disabled)("tabindex",-1))},styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}.nv-rotary-buttons-container.cdk-keyboard-focused[_ngcontent-%COMP%], .nv-rotary-buttons-container.cdk-program-focused[_ngcontent-%COMP%]{background:#ffffff52;transition:background-color .75s ease}.nv-rotary-data-container[_ngcontent-%COMP%]{text-align:center;display:block;overflow:hidden}.nv-rotary-data-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:6000px}.nv-item-rotary[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0}.tv-view[_ngcontent-%COMP%] .nv-item-rotary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-rotary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-rotary[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .nv-item-rotary[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .nv-item-rotary[_ngcontent-%COMP%]{color:#ffffffd9}.title-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:16px;line-height:24px;letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .title-font[_ngcontent-%COMP%]{font-size:32px;line-height:48px}.new-10ft[_nghost-%COMP%] .title-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .title-font[_ngcontent-%COMP%]{color:#ffffffd9}.subtitle-font[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;color:#fff9}.tv-view[_ngcontent-%COMP%] .subtitle-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .subtitle-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .subtitle-font[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] .subtitle-font[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .subtitle-font[_ngcontent-%COMP%]{color:#ffffffd9}.nv-icon-padding-subtitle[_ngcontent-%COMP%]{margin-top:14px}.isLtr[_nghost-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-icon-padding-subtitle[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{margin-top:12px}.isLtr[_nghost-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .nv-icon-padding-nosubtitle[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.nv-icon-dimensions[_ngcontent-%COMP%]{width:24px;height:24px}.nv-item-rotary-padding-subtitle[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px}.nv-item-rotary-padding-nosubtitle[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.nv-item-rotary-botpadding-subtitle[_ngcontent-%COMP%]{padding-top:14px}.nv-item-rotary-position[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffb3;font-weight:400;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0;color:#ffffffe6}.tv-view[_ngcontent-%COMP%] .nv-item-rotary-position[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-item-rotary-position[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-item-rotary-position[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.new-10ft[_nghost-%COMP%] .nv-item-rotary-position[_ngcontent-%COMP%], .new-10ft [_nghost-%COMP%] .nv-item-rotary-position[_ngcontent-%COMP%]{color:#ffffffd9}.tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:14px;line-height:20px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-item-rotary[_ngcontent-%COMP%]{font-size:28px;line-height:40px}.tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-weight:500;font-style:normal;text-transform:none;font-size:12px;line-height:16px;letter-spacing:0}.tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view.tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view.tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view .tv-view[_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%], .tv-view .tv-view [_nghost-%COMP%] div.nv-item-rotary-position[_ngcontent-%COMP%]{font-size:24px;line-height:32px}.tv-view[_nghost-%COMP%] div.nv-item-rotary-padding-nosubtitle[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] div.nv-item-rotary-padding-nosubtitle[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}"]}),h})()},36842:(Ue,W,d)=>{"use strict";d.d(W,{xN:()=>T});var n=d(58527),l=d(51635),p=d(72653),m=d(61142),_=d(3457),P=d(28139);const v=["thumb"],O=["trackContainer"],S=["ticksContainer"],y=(x,V)=>({position:"absolute",width:x,left:V});function r(x,V){if(1&x&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&x){const D=n.XpG().$implicit;n.R7$(),n.JRh(D)}}function i(x,V){if(1&x&&(n.j41(0,"div",11)(1,"div"),n.EFF(2,"|"),n.k0s(),n.DNE(3,r,2,1,"div",12),n.k0s()),2&x){const D=V.index,F=n.XpG();n.Y8G("ngStyle",n.l_i(2,y,F.tickWidth+"px",F.ticksOffset[D])),n.R7$(3),n.Y8G("ngIf",!F.noTickText)}}const a=(0,p.BQ)({passive:!1}),h=-4294967295,c=(0,l.BF)((0,l.Ob)(class g{constructor(V){this.el=V}}));let T=(()=>{var x;class V extends c{get tabIndexReal(){return this.tabIndex.toString()}onFocus(){this.sliderDimensions=this.getSliderDimensions()}onmouseenter(){this.disabled||this.el.nativeElement.focus()}onclick(F){if(this.disabled)return;this.el.nativeElement.focus(),this.sliderDimensions=this.getSliderDimensions();const I=this.percentToValue(this.positionToPercent(F.clientX)),k=this.minMaxValidator(this.stepValidator(I));this.setValue(k)}onkeydown(F){if(this.disabled)return;if("."===F.key&&this.defaultValue!==h)return F.preventDefault(),F.stopPropagation(),void this.setValue(this.defaultValue);let I;"ArrowLeft"===F.key?I=-this.step:"ArrowRight"===F.key&&(I=this.step),I&&((F.metaKey||F.ctrlKey||F.altKey)&&(I*=4),F.preventDefault(),F.stopPropagation(),this.setValue(this.value+I,this.skipSnapWhenKbInput))}get activeTrackStyle(){return this.colorLeftActive?{left:"0",width:100*this.clamp(this.sliderPercent)+"%"}:this.activeTrackHidden||!this.isRangeSlider?{width:"0"}:{left:100*(this.clamp((this.rangeMin-this.min)/(this.max-this.min))||0)+"%",width:100*(this.clamp((this.rangeMax-this.rangeMin)/(this.max-this.min))||0)+"%"}}get thumbContainerStyle(){let F=this.sliderPercent;return F=this.clamp(F),{left:100*F+"%"}}get ticksStyle(){return{left:0-this.tickWidth/2+"px",width:this.tickWidth*this.trackTicks.length+"px"}}updateValue(){!this.initialized||this.isBeingDestroyed||(this.sanitizeMinMax(),this.sliderDimensions=this.getSliderDimensions(),this.setWidthOnMin&&(this.hostWidth=100-this.min+"%"),this.setValue(this.value),this.changeDetector.detectChanges())}constructor(F,I,k,R,G){super(F),this.renderer=I,this.changeDetector=k,this._ngZone=G,this.min=h,this.max=h,this.value=h,this.valueChange=new n.bkB,this.lastValue=h,this.sliderPercent=0,this.isBeingDestroyed=!1,this.step=1,this.defaultValue=h,this.rangeMin=h,this.rangeMax=h,this.isRangeSlider=!1,this.ticks=[],this.activeTrackHidden=!1,this.onlyThumbs=!1,this.snapToDefault=!1,this.skipSnapWhenKbInput=!1,this.setWidthOnMin=!1,this.noTickText=!1,this.colorLeftActive=!1,this.sliderDimensions=null,this.initialized=!1,this.isSliding=!1,this.trackTicks=[],this.ticksOffset=[],this.tickWidth=0,this.padLeft="0",this.padRight="0",this.pointerMove=Y=>{if(this.isSliding){Y.preventDefault();const K=L(Y);this.setSliderFromPosition(K.x)}},this.pointerUp=Y=>{this.isSliding&&(Y.preventDefault(),this.removeGlobalEvents(),this.isSliding=!1)},this.pointerDown=Y=>{this.disabled||this.isSliding||!A(Y)&&0!==Y.button||this.runInsideZone(()=>{this.isSliding=!0,Y.preventDefault(),this.onmouseenter(),this.bindGlobalEvents(Y);const K=L(Y);this.setSliderFromPosition(K.x)})},this.tabIndex=parseInt(R,10)||0,this.changeDetector.detach(),this.runOutsizeZone(()=>{const Y=this.el.nativeElement;Y.addEventListener("mousedown",this.pointerDown,a),Y.addEventListener("touchstart",this.pointerDown,a)})}ngOnInit(){this.initialized=!0,this.updateValue(),this.redrawTicks(),this.isBeingDestroyed=!1}ngOnDestroy(){this.isBeingDestroyed=!0;const F=this.el.nativeElement;F.removeEventListener("mousedown",this.pointerDown,a),F.removeEventListener("touchstart",this.pointerDown,a),this.removeGlobalEvents()}ngOnChanges(F){for(const I of Object.keys(F))"rangeMin"===I&&(this.isRangeSlider=!0),this.initialized&&(("min"===I||"max"===I||"ticks"===I||"step"===I)&&this.redrawTicks(),("min"===I||"max"===I||"value"===I||"rangeMin"===I||"rangeMax"===I)&&setTimeout(()=>this.updateValue(),0))}clamp(F){return Math.max(0,Math.min(F||0,1))}getSliderDimensions(){return this.trackContainer?this.trackContainer.nativeElement.getBoundingClientRect():null}positionToPercent(F){return this.sliderDimensions?Math.max(0,Math.min(1,(F-this.sliderDimensions.left)/this.sliderDimensions.width)):0}percentToValue(F){return this.min+F*(this.max-this.min)}valueToPercent(F){return this.min===this.max?1:(F-this.min)/(this.max-this.min)||0}minMaxValidator(F){return Math.max(this.rangeMin,Math.min(this.rangeMax,F))}stepValidator(F){const I=Math.round((F-this.min)/this.step)*this.step+this.min;return Math.round(1e3*I)/1e3}endSetValue(F){this.value=F,this.sliderPercent=this.valueToPercent(this.value),this.initialized&&this.value!==this.lastValue&&(this.lastValue!==h&&(this.valueChange.emit(this.value),this.changeDetector.detectChanges()),this.lastValue=this.value)}setValue(F,I=!1){if(F=this.minMaxValidator(this.stepValidator(F)),this.snapToDefault&&!I&&this.defaultValue!==h&&this.max!==h&&this.min!==h){if(this.defaultValue===this.min||this.defaultValue===this.max)return void this.endSetValue(F);const k=(this.max-this.min)/20;F>this.defaultValue-k&&F<this.defaultValue+k&&(F=this.minMaxValidator(this.stepValidator(this.defaultValue)))}this.endSetValue(F)}setSliderFromPosition(F){this.setValue(this.percentToValue(this.positionToPercent(F)))}sanitizeMinMax(){this.min!==h&&this.max!==h&&(this.rangeMin!==h&&(this.rangeMin=Math.max(this.min,Math.min(this.max,this.rangeMin))),this.rangeMax!==h&&(this.rangeMax=Math.max(this.min,Math.min(this.max,this.rangeMax))),this.isRangeSlider||(this.rangeMin=this.min,this.rangeMax=this.max),this.rangeMin>this.value&&this.setValue(this.rangeMin),this.rangeMax<this.value&&this.setValue(this.rangeMax))}getWidthOfText(F,I){const R=this.renderer.createElement("canvas").getContext("2d");return R.font=I,R.measureText(F).width}redrawTicks(){if(this.min===h||this.max===h||0===this.ticks.length||this.step===h||!this.thumb||!this.ticksContainer)return;const F=Math.floor((this.max-this.min)/this.step);this.trackTicks=[];for(let J=0;J<=F;J++){const z=J*this.step+this.min;this.ticks.indexOf(z)<0||this.trackTicks.push(z)}const I=this.thumb.nativeElement.offsetWidth/2,R=window.getComputedStyle(this.ticksContainer.nativeElement).font||"12px NVIDIA",Y=Math.max(this.getWidthOfText(this.trackTicks[0]+"",R)/2,I);this.padLeft=Y+"px";const $=Math.max(this.getWidthOfText(this.trackTicks[this.trackTicks.length-1]+"",R)/2,I);this.padRight=$+"px";const ee=this.getSliderDimensions().width-Y-$;this.tickWidth=ee/(this.trackTicks.length-1);for(let J=0;J<this.trackTicks.length;J++)this.ticksOffset[J]=(this.trackTicks[J]-this.min)/(this.max-this.min)*ee+"px";this.changeDetector.detectChanges()}bindGlobalEvents(F){if(typeof document<"u"&&document){const I=document.body,k=A(F),G=k?"touchend":"mouseup";I.addEventListener(k?"touchmove":"mousemove",this.pointerMove,a),I.addEventListener(G,this.pointerUp,a),k&&I.addEventListener("touchcancel",this.pointerUp,a)}}removeGlobalEvents(){if(typeof document<"u"&&document){const F=document.body;F.removeEventListener("mousemove",this.pointerMove,a),F.removeEventListener("mouseup",this.pointerUp,a),F.removeEventListener("touchmove",this.pointerMove,a),F.removeEventListener("touchend",this.pointerUp,a),F.removeEventListener("touchcancel",this.pointerUp,a)}}runInsideZone(F){this._ngZone?this._ngZone.run(F):F()}runOutsizeZone(F){this._ngZone?this._ngZone.runOutsideAngular(F):F()}}return(x=V).\u0275fac=function(F){return new(F||x)(n.rXU(n.aKT),n.rXU(n.sFG),n.rXU(n.gRc),n.kS0("tabindex"),n.rXU(n.SKi))},x.\u0275cmp=n.VBU({type:x,selectors:[["nv-slider"]],viewQuery:function(F,I){if(1&F&&(n.GBs(v,7),n.GBs(O,7),n.GBs(S,7)),2&F){let k;n.mGM(k=n.lsd())&&(I.thumb=k.first),n.mGM(k=n.lsd())&&(I.trackContainer=k.first),n.mGM(k=n.lsd())&&(I.ticksContainer=k.first)}},hostVars:7,hostBindings:function(F,I){1&F&&n.bIt("focus",function(){return I.onFocus()})("mouseenter",function(){return I.onmouseenter()})("click",function(R){return I.onclick(R)})("keydown",function(R){return I.onkeydown(R)}),2&F&&(n.Mr5("tabIndex",I.tabIndexReal),n.xc7("width",I.hostWidth)("padding-left",I.padLeft)("padding-right",I.padRight))},inputs:{min:"min",max:"max",value:"value",step:"step",defaultValue:"defaultValue",rangeMin:"rangeMin",rangeMax:"rangeMax",ticks:"ticks",activeTrackHidden:"activeTrackHidden",onlyThumbs:"onlyThumbs",snapToDefault:"snapToDefault",skipSnapWhenKbInput:"skipSnapWhenKbInput",setWidthOnMin:"setWidthOnMin",noTickText:"noTickText",colorLeftActive:"colorLeftActive",disabled:"disabled"},outputs:{valueChange:"valueChange"},features:[n.Vt3,n.OA$],decls:11,vars:4,consts:[["trackContainer",""],["ticksContainer",""],["thumb",""],[1,"nv-slider-wrapper"],[1,"nv-track-container"],[1,"nv-track"],[1,"nv-track-fill",3,"ngStyle"],["fxLayout","row","fxLayoutAlign","start start",1,"nv-track-ticks",3,"ngStyle"],["fxLayout","column","fxLayoutAlign","start center",3,"ngStyle",4,"ngFor","ngForOf"],[1,"nv-thumb-container",3,"ngStyle"],[1,"nv-thumb"],["fxLayout","column","fxLayoutAlign","start center",3,"ngStyle"],[4,"ngIf"]],template:function(F,I){1&F&&(n.j41(0,"div",3)(1,"div",4,0),n.nrm(3,"div",5)(4,"div",6),n.j41(5,"div",7,1),n.DNE(7,i,4,5,"div",8),n.k0s()(),n.j41(8,"div",9),n.nrm(9,"div",10,2),n.k0s()()),2&F&&(n.R7$(4),n.Y8G("ngStyle",I.activeTrackStyle),n.R7$(),n.Y8G("ngStyle",I.ticksStyle),n.R7$(2),n.Y8G("ngForOf",I.trackTicks),n.R7$(),n.Y8G("ngStyle",I.thumbContainerStyle))},dependencies:[m.Sq,m.bT,m.B3,_.DJ,_.sA,P.eI],styles:['[_nghost-%COMP%]{min-height:24px;min-width:14px;position:relative;display:block;cursor:pointer}[_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}[_nghost-%COMP%] .nv-slider-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .nv-track-container[_ngcontent-%COMP%]{width:100%;position:absolute;top:10px;height:4px}[_nghost-%COMP%] .nv-track[_ngcontent-%COMP%], [_nghost-%COMP%] .nv-track-fill[_ngcontent-%COMP%]{position:absolute;left:0;right:0;height:100%;background-color:#393939}[_nghost-%COMP%] .nv-track-fill[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%] .nv-track-ticks[_ngcontent-%COMP%]{position:absolute;height:32px;top:0;font-size:14px;font-weight:400;line-height:16px;color:#393939;text-align:center}[_nghost-%COMP%] .nv-thumb-container[_ngcontent-%COMP%]{position:absolute;left:0;top:50%;transform:translate3d(-50%,-50%,0);border-radius:50%}[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]{z-index:1;position:absolute;left:-8px;top:4px;box-sizing:border-box;width:16px;height:16px;border:1px solid #000000;background-color:#fff;border-radius:50%}[_nghost-%COMP%]:focus .nv-thumb[_ngcontent-%COMP%]{background-color:#76b900}.gif-right-bar[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]{width:0}.gif-right-bar[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]:before{top:-17px;left:4px;border-bottom:4px solid #76b900;border-right:1px solid #76b900;border-left:1px solid #76b900;border-top:4px solid #76b900}.trim-slider[_nghost-%COMP%]{cursor:default}.trim-slider[_nghost-%COMP%] .nv-track[_ngcontent-%COMP%], .trim-slider[_nghost-%COMP%] .nv-track-fill[_ngcontent-%COMP%]{background-color:transparent}.trim-slider[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]{border:none}.trim-slider[_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;top:-5px;height:0;left:3px;box-sizing:border-box;border-bottom:5px solid #393939;border-right:5px solid transparent;border-left:5px solid transparent}.trim-slider[_nghost-%COMP%]:focus .nv-thumb[_ngcontent-%COMP%]:before{border-bottom:5px solid #76b900}[_nghost-%COMP%]:not([disabled]) .nv-thumb[_ngcontent-%COMP%]{cursor:pointer}[disabled][_nghost-%COMP%]{cursor:default;opacity:.35}[disabled][_nghost-%COMP%] .nv-thumb[_ngcontent-%COMP%]{background-color:#393939}'],changeDetection:0}),V})();function A(x){return"t"===x.type[0]}function L(x){const V=A(x)?x.touches[0]||x.changedTouches[0]:x;return{x:V.clientX,y:V.clientY}}},15332:(Ue,W,d)=>{"use strict";d.d(W,{O:()=>V});var n=d(58527),l=d(26875),m=d(26513),_=d(16229),P=d(62931),v=d(10174),O=d(10785);const y=["scroller"],r=["labeloverlay"],i=(D,F)=>({$implicit:D,scroll:F});function a(D,F){if(1&D&&(n.j41(0,"div",9),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&D){const I=n.XpG(),k=I.$implicit,R=I.first,G=n.XpG();n.AVh("divider-pad-chunk",G.chunkFileMetadata&&!R)("divider-pad",R||!G.chunkFileMetadata),n.R7$(),n.SpI(" ",n.bMT(2,5,k[0].divider)," ")}}function h(D,F){}function g(D,F){if(1&D&&(n.j41(0,"nv-virtual-grid-item",12),n.DNE(1,h,0,0,"ng-template",13),n.k0s()),2&D){const I=F.$implicit,k=n.XpG(3);n.Y8G("useOutline",k.useFocusOutline)("showFocusAlways",k.showFocusAlways)("item",I)("selectedItemIndex",k.selectedItemIndex)("itemWidth",k.itemWidth)("itemHeight",k.itemHeight)("multiSelectAvailable",k.multiSelect)("multiSelectModeOn",k.multiSelectModeOn),n.R7$(),n.Y8G("ngTemplateOutlet",k.template)("ngTemplateOutletContext",n.l_i(10,i,I.item,k.scrolling$.asObservable()))}}function c(D,F){if(1&D&&(n.j41(0,"div",10),n.DNE(1,g,2,13,"nv-virtual-grid-item",11),n.k0s()),2&D){const I=n.XpG().$implicit,k=n.XpG();n.Y8G("fxLayoutGap",k.marginRight+"px"),n.R7$(),n.Y8G("ngForOf",I)}}function T(D,F){if(1&D&&n.nrm(0,"div"),2&D){const I=n.XpG(2);n.xc7("padding-bottom",I.topBottomPad,"px")("width","100%")}}function A(D,F){if(1&D&&(n.j41(0,"div"),n.DNE(1,a,3,7,"div",6)(2,c,2,2,"div",7)(3,T,1,4,"div",8),n.k0s()),2&D){const I=F.$implicit,k=F.last,R=n.XpG();n.xc7("margin-bottom",k||I[0].divider?0:R.marginBottom,"px"),n.R7$(),n.Y8G("ngIf",I[0].divider),n.R7$(),n.Y8G("ngIf",!I[0].divider),n.R7$(),n.Y8G("ngIf",k)}}function L(D,F){if(1&D&&n.nrm(0,"div"),2&D){const I=n.XpG(2);n.xc7("height",I.topBottomPad,"px")}}function x(D,F){if(1&D&&(n.j41(0,"div")(1,"div",14),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nrm(4,"div"),n.DNE(5,L,1,2,"div",15),n.k0s()),2&D){const I=F.$implicit,k=F.first,R=F.last,G=n.XpG();n.R7$(),n.AVh("divider-pad-chunk",G.chunkFileMetadata&&!k)("divider-pad",k||!G.chunkFileMetadata),n.R7$(),n.SpI(" ",n.bMT(3,8,I.text)," "),n.R7$(2),n.xc7("height",I.contentHeight,"px"),n.R7$(),n.Y8G("ngIf",R)}}let V=(()=>{var D;class F{get selectedItem(){return this._selectedItem}set selectedItem(k){const R=this._selectedItem;if(this._selectedItem=k,this.initialized&&R!==this._selectedItem){const G=this.list.findIndex(Y=>Y.item===k);G>=0&&(this.setCurrentItem(this.list[G]),this.ensureItemVisible(G))}}set items(k){k&&this.list&&0===k.length&&0===this.list.length||(this.list=k?k.map((R,G)=>(R===this._selectedItem&&(this.selectedItemIndex=G),{index:G,selected:R===this._selectedItem,element:void 0,divider:void 0,item:R})):k,this.refresh())}onkeydown(k){this.handleKeyPress(k)}onFocus(){if(!this.list||this.list.length<=0)return;let k=this.selectedItemIndex;k<0&&(k=0),this.setCurrentItem(this.list[k])}setContent(k,R){this.list=k,this.itemsPerRow=R}setTopIndex(k){this.topIndex=k}setCurrentItem(k){const R=this._multiSelectList.length>0,G=this.getItem(this.selectedItemIndex);if(!R){if(G){if(G.index===k.index)return;G.selected=!1}k&&(k.selected=!0)}this._selectedItem=k.item,this.selectedItemIndex=k.index,this.selectedItemChange.emit(this._selectedItem)}multiSelectClick(k){if(!k)return;if(!this.multiSelectModeOn){const G=this.getItem(this.selectedItemIndex);G&&(G.selected=!1)}this._multiSelectList.includes(k)?((0,l.pull)(this._multiSelectList,k),k.selected=!1):(k.selected=!0,k.element&&(this._selectedItem=k.item,this.selectedItemIndex=k.index),this._multiSelectList.push(k));const R=this.multiSelectModeOn;this.multiSelectModeOn=this._multiSelectList.length>0,R!==this.multiSelectModeOn&&this.multiSelectMode.emit(this.multiSelectModeOn),this.multiSelectList.emit(this._multiSelectList.map(G=>G.item))}cancelMultiSelect(){this._multiSelectList.slice(0).forEach(k=>this.multiSelectClick(k)),this.selectedItem&&(this.selectedItem.selected=!0)}constructor(k,R){this.element=k,this.renderer=R,this.itemsPerRow=1,this.topIndex=0,this.initialized=!1,this.scrolling$=new m.t(!1),this.maxRows=6,this.marginBottom=0,this.marginRight=0,this.multiSelect=!1,this.useFocusOutline=!0,this.showFocusAlways=!1,this.chunkFileMetadata=!1,this.stickyHeaders=!0,this.topBottomPad=0,this.rightMarginReq=!0,this.headerSizeChunk=55,this.headerSize=44,this._selectedItem=void 0,this.selectedItemIndex=-1,this.selectedItemChange=new n.bkB,this._multiSelectList=[],this.multiSelectModeOn=!1,this.multiSelectMode=new n.bkB,this.multiSelectList=new n.bkB,this.handleKeyPress=void 0,this.handleKeyPress=(0,l.throttle)(this._handleKeyPress,100)}nullTime(k){return k.startOf("day")}getStringForDay(k){const R=this.nullTime(O());if(k.isSame(R,"day"))return"commonLabels.Today";if(R.subtract(1,"days"),k.isSame(R,"day"))return"commonLabels.Yesterday";R.add(1,"days");const G=O().startOf("month").subtract(1,"month");return k.isSameOrAfter(G,"month")?k.isSame(R,"year")?k.format("dddd, MMMM D"):k.format("dddd, LL"):k.isSame(R,"year")?k.format("MMMM"):k.format("MMMM YYYY")}newHeader(k){return{index:-1,selected:!1,element:void 0,divider:k,item:void 0}}isSameRow(k,R){const G=O().startOf("month").subtract(1,"month");return k.isSameOrAfter(G,"month")?k.isSame(R,"day"):k.isSame(R,"month")}pushRow(k,R,G=!1){const Y=this.itemHeight+this.marginBottom;return this.rows.push(k),this.itemOffsets.push(R+=Y),this.stickyHeaders&&(this.dividers[this.dividers.length-1].contentHeight+=Y),R}chunkFiles(){let k=this.nullTime(O()).add(1,"years"),R=[],G=0;this.itemOffsets=[0],this.rows=[],this.dividers=[],this.list.sort((Y,K)=>new Date(K.item.date).getTime()-new Date(Y.item.date).getTime()),this.list.map((Y,K)=>(Y.index=K,Y)),this.list.forEach((Y,K)=>{if(!Y.item)return;(0===K||K===this.list.length-1)&&(G+=this.topBottomPad);const ee=O(Y.item.date);this.isSameRow(ee,k)?(R.push(Y),R.length>=this.itemsPerRow&&(G=this.pushRow(R,G),R=[])):(R.length>0&&(G=this.pushRow(R,G),R=[]),this.stickyHeaders?(this.dividers.push({text:this.getStringForDay(ee),contentHeight:0}),this.rows.push([this.newHeader(" ")])):this.rows.push([this.newHeader(this.getStringForDay(ee))]),G+=1!==this.itemOffsets.length&&this.chunkFileMetadata?this.headerSizeChunk:this.headerSize,this.itemOffsets.push(G),k=ee,R.push(Y))}),R.length>0&&(G=this.pushRow(R,G,!0)),this.rows=this.rows.slice(),this.itemOffsets=this.itemOffsets.slice()}refresh(){if(!this.initialized)return;const k=this.element.nativeElement.offsetWidth;this.itemsPerRow=Math.floor(k/this.itemWidth),this.itemsPerRow*this.itemWidth+(this.itemsPerRow-1)*this.marginRight>k&&(this.itemsPerRow-=1),this.maxRows=Math.floor(this.element.nativeElement.offsetHeight/(this.itemHeight+this.marginBottom)),setTimeout(()=>{if(this.chunkFileMetadata)this.chunkFiles();else{this.rows=(0,l.chunk)(this.list,this.itemsPerRow),this.itemOffsets=[0];let G=0;this.rows.forEach((Y,K)=>{G+=this.itemHeight+this.marginBottom,(K===this.rows.length-1||0===K)&&(G+=this.topBottomPad),this.itemOffsets.push(G)})}this.list&&this.list.length>0?(this.selectedItemIndex=this.list.findIndex(G=>G.item===this._selectedItem),!this.selectedItemIndex&&this.list&&this.setCurrentItem(this.list[0])):this.selectedItemIndex=0,setTimeout(()=>this.ensureItemVisible(this.selectedItemIndex),0)},0)}getNewIndexRow(k,R,G){let Y=R+k;for(;Y>0&&Y<this.rows.length&&this.rows[Y][0].divider;)Y+=k;return Y<0?0:Y>=this.rows.length?this.list.length-1:(G=Math.min(this.rows[Y].length-1,G),this.rows[Y][G].index)}_handleKeyPress(k){if(!this.list)return;let R=this.list.findIndex($=>$.item===this._selectedItem);const G=this.rows.findIndex($=>$.findIndex(ee=>ee.item===this._selectedItem)>=0),Y=this.rows[G].findIndex($=>$.item===this._selectedItem);R=-1===R?0:R;const K=this.list.length-1;if("ArrowLeft"===k.key)R-=1;else if("ArrowRight"===k.key)R+=1;else if("ArrowUp"===k.key)R=this.getNewIndexRow(-1,G,Y);else if("ArrowDown"===k.key)R=this.getNewIndexRow(1,G,Y);else if("Home"===k.key)R=0;else if("End"===k.key)R=K;else if("PageDown"===k.key)R+=this.itemsPerRow*this.maxRows;else if("PageUp"===k.key)R-=this.itemsPerRow*this.maxRows;else if(" "===k.key)return void this.multiSelectClick(this.list[R]);R=Math.max(0,Math.min(R,K)),this.selectedItemIndex!==R&&(this.setCurrentItem(this.list[R]),this.ensureItemVisible(R))}ensureItemVisible(k,R="auto"){if(null==k||k<0||k>=this.list.length)return;const G=this.rows.findIndex(ee=>ee.findIndex(J=>J.item===this._selectedItem)>=0);this.maxRows=Math.floor(this.element.nativeElement.offsetHeight/(this.itemHeight+this.marginBottom));const $=G-Math.round(this.maxRows/2);if(this.topIndex<$||this.topIndex>G-2*this.maxRows){const J=Math.max(0,Math.min($,this.rows.length-this.maxRows+1));this.scroller.scrollToOffset(this.itemOffsets[J],R)}}getItem(k=this.selectedItemIndex){return null!=k&&k>=0&&k<this.list.length?this.list[k]:null}ngAfterViewInit(){this.initialized=!0;const k=this.scroller.elementScrolled().pipe((0,P.B)(250),(0,v.u)(!1)),R=this.scroller.elementScrolled().pipe((0,v.u)(!0));this.scrollingSub$=(0,_.h)(R,k).subscribe(Y=>this.scrolling$.next(Y));const G=this.element?.nativeElement?.querySelector(".cdk-virtual-scroll-spacer");setTimeout(()=>{this.renderer.appendChild(G,this.labelElement.nativeElement),this.refresh()},0)}ngOnDestroy(){this.scrollingSub$&&this.scrollingSub$.unsubscribe()}}return(D=F).\u0275fac=function(k){return new(k||D)(n.rXU(n.aKT),n.rXU(n.sFG))},D.\u0275cmp=n.VBU({type:D,selectors:[["nv-virtual-grid-container"]],viewQuery:function(k,R){if(1&k&&(n.GBs(y,7),n.GBs(y,7,n.aKT),n.GBs(r,7,n.aKT)),2&k){let G;n.mGM(G=n.lsd())&&(R.scroller=G.first),n.mGM(G=n.lsd())&&(R.viewportElement=G.first),n.mGM(G=n.lsd())&&(R.labelElement=G.first)}},hostBindings:function(k,R){1&k&&n.bIt("keydown",function(Y){return R.onkeydown(Y)})("focus",function(){return R.onFocus()})},inputs:{itemHeight:"itemHeight",itemWidth:"itemWidth",marginBottom:"marginBottom",marginRight:"marginRight",multiSelect:"multiSelect",template:"template",useFocusOutline:"useFocusOutline",showFocusAlways:"showFocusAlways",chunkFileMetadata:"chunkFileMetadata",stickyHeaders:"stickyHeaders",topBottomPad:"topBottomPad",rightMarginReq:"rightMarginReq",selectedItem:"selectedItem",items:"items"},outputs:{selectedItemChange:"selectedItemChange",multiSelectMode:"multiSelectMode",multiSelectList:"multiSelectList"},decls:7,vars:5,consts:[["scroller",""],["labeloverlay",""],["fxFlex","",1,"scroll-container",3,"scrolledIndexChange","itemOffsets"],[3,"margin-bottom",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"labels"],[4,"ngFor","ngForOf"],["class","font-sub2 font-color-tertiary",3,"divider-pad-chunk","divider-pad",4,"ngIf"],["fxLayout","row",3,"fxLayoutGap",4,"ngIf"],[3,"paddingBottom","width",4,"ngIf"],[1,"font-sub2","font-color-tertiary"],["fxLayout","row",3,"fxLayoutGap"],[3,"useOutline","showFocusAlways","item","selectedItemIndex","itemWidth","itemHeight","multiSelectAvailable","multiSelectModeOn",4,"ngFor","ngForOf"],[3,"useOutline","showFocusAlways","item","selectedItemIndex","itemWidth","itemHeight","multiSelectAvailable","multiSelectModeOn"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"font-body2","divider-sticky"],[3,"height",4,"ngIf"]],template:function(k,R){if(1&k){const G=n.RV6();n.j41(0,"cdk-virtual-scroll-viewport",2,0),n.bIt("scrolledIndexChange",function(K){return n.eBV(G),n.Njj(R.setTopIndex(K))}),n.DNE(2,A,4,5,"div",3),n.k0s(),n.j41(3,"div",null,1)(5,"div",4),n.DNE(6,x,6,10,"div",5),n.k0s()()}2&k&&(n.AVh("scroll-container-right-margin",R.rightMarginReq),n.Y8G("itemOffsets",R.itemOffsets),n.R7$(2),n.Y8G("cdkVirtualForOf",R.rows),n.R7$(4),n.Y8G("ngForOf",R.dividers))},styles:[".scroll-container[_ngcontent-%COMP%], .scroll-container[_ngcontent-%COMP%] .cdk-virtual-scroll-content-wrapper[_ngcontent-%COMP%]{height:100%}.isLtr[_nghost-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%]{margin-right:-16px}html[dir=ltr][_ngcontent-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-right:-16px}.isRtl[_nghost-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%]{margin-left:-16px}html[dir=rtl][_ngcontent-%COMP%] .scroll-container-right-margin[_ngcontent-%COMP%]{--dummy4: 0;margin-left:-16px}.labels[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;pointer-events:none}.divider-pad[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px;height:20px}.divider-sticky[_ngcontent-%COMP%]{position:sticky;padding-top:12px;padding-bottom:12px;height:20px;background-color:#191919}.divider-pad-chunk[_ngcontent-%COMP%]{padding-top:23px;padding-bottom:12px;height:20px}"]}),F})()},6754:(Ue,W,d)=>{"use strict";d.d(W,{m:()=>r});var n=d(58527),l=d(15332),p=d(61142),m=d(3457),_=d(28139),P=d(29370);const v=["*"],O=(i,a)=>({"width.px":i,"height.px":a,position:"relative"});function S(i,a){if(1&i&&n.nrm(0,"div",3),2&i){const h=n.XpG();n.AVh("selected",h.item.index==h.selectedItemIndex)("showFocusAlways",h.showFocusAlways)}}function y(i,a){if(1&i){const h=n.RV6();n.j41(0,"div",4)(1,"mat-icon",5),n.bIt("click",function(c){n.eBV(h);const T=n.XpG();return n.Njj(T.onMultiSelectClick(c))}),n.k0s()()}if(2&i){const h=n.XpG();n.AVh("checked",h.multiSelectModeOn&&h.item.selected)("multiOn",h.multiSelectModeOn)("multiFocus",h.item.index==h.selectedItemIndex)}}let r=(()=>{var i;class a{get item(){return this._item}set item(g){this._item=g,this._item.element=this.el}onMouseDown(){this.parent&&this.parent.setCurrentItem(this.item)}onClick(g){this.parent&&this.multiSelectModeOn&&this.parent.multiSelectClick(this.item)}onMultiSelectClick(g){this.parent&&this.parent.multiSelectClick(this.item),g.stopImmediatePropagation(),g.preventDefault()}constructor(g,c){this.el=g,this.parent=c,this.multiSelectAvailable=!1,this.multiSelectModeOn=!1,this.useOutline=!0,this.selectedItemIndex=-1,this.showFocusAlways=!1}}return(i=a).\u0275fac=function(g){return new(g||i)(n.rXU(n.aKT),n.rXU(l.O,8))},i.\u0275cmp=n.VBU({type:i,selectors:[["nv-virtual-grid-item"]],inputs:{itemWidth:"itemWidth",itemHeight:"itemHeight",multiSelectAvailable:"multiSelectAvailable",multiSelectModeOn:"multiSelectModeOn",useOutline:"useOutline",selectedItemIndex:"selectedItemIndex",showFocusAlways:"showFocusAlways",item:"item"},ngContentSelectors:v,decls:4,vars:6,consts:[[3,"mousedown","click","ngStyle"],["class","overlay selected-overlay",3,"selected","showFocusAlways",4,"ngIf"],["class","overlay hover-overlay hover-highlight","fxLayout","row","fxLayoutAlign","end start",3,"checked","multiOn","multiFocus",4,"ngIf"],[1,"overlay","selected-overlay"],["fxLayout","row","fxLayoutAlign","end start",1,"overlay","hover-overlay","hover-highlight"],[1,"multi-select-circle",3,"click"]],template:function(g,c){1&g&&(n.NAR(),n.j41(0,"div",0),n.bIt("mousedown",function(){return c.onMouseDown()})("click",function(A){return c.onClick(A)}),n.SdG(1),n.DNE(2,S,1,4,"div",1)(3,y,2,6,"div",2),n.k0s()),2&g&&(n.Y8G("ngStyle",n.l_i(3,O,c.itemWidth,c.itemHeight)),n.R7$(2),n.Y8G("ngIf",c.useOutline),n.R7$(),n.Y8G("ngIf",c.multiSelectAvailable))},dependencies:[p.bT,p.B3,m.DJ,m.sA,_.eI,P.An],styles:['.overlay[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;top:0;left:0;height:100%;width:100%;pointer-events:none}:focus[_nghost-%COMP%] .selected[_ngcontent-%COMP%], :focus [_nghost-%COMP%] .selected[_ngcontent-%COMP%], .showFocusAlways.selected[_ngcontent-%COMP%]{background:#0000}.hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{color:transparent;width:20px;height:20px;font-size:20px;pointer-events:auto}.isLtr[_nghost-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{margin:5px 5px 0 0}html[dir=ltr][_ngcontent-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{--dummy: 0;margin:5px 5px 0 0}.isRtl[_nghost-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{margin:5px 0 0 5px}html[dir=rtl][_ngcontent-%COMP%] .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{--dummy: 0;margin:5px 0 0 5px}.hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:before{content:"radio_button_unchecked"}.hover-overlay.checked[_ngcontent-%COMP%]{background:#0000003d!important}.hover-overlay.checked[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:before{color:#fff!important;content:"check_circle"!important}.hover-overlay.multiOn[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], :focus[_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], :focus [_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%], [_nghost-%COMP%]:hover .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]{color:#ffffffb3}.hover-overlay.multiOn[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:hover:before, .hover-overlay.multiOn[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:focus:before, :focus[_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:hover:before, :focus [_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:hover:before, :focus[_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:focus:before, :focus [_nghost-%COMP%] .hover-overlay.multiFocus[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:focus:before, [_nghost-%COMP%]:hover .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:hover:before, [_nghost-%COMP%]:hover .hover-overlay[_ngcontent-%COMP%] .multi-select-circle[_ngcontent-%COMP%]:focus:before{color:#fff}[_nghost-%COMP%]:hover .hover-highlight[_ngcontent-%COMP%]{background:#0000001f}']}),a})()},70410:(Ue,W,d)=>{"use strict";d.d(W,{M:()=>qt});var n=d(80583),l=d(43848),p=d(4208),m=d(91384),_=d(75707),P=d(14714),v=d(83915),O=d(3567),S=d(74931),y=d(1331),r=d(58527),i=d(14354),a=d(65240),h=d(27211);const g=["image"],c=["video"],T=["previewMeme"],A=(ye,Re)=>({"width.px":ye,"height.px":Re}),L=(ye,Re)=>({"viewer-video-counter-short":ye,"viewer-video-counter-long":Re});function x(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"nv-item-button",17),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.closePreview())}),r.k0s()}}function V(ye,Re){if(1&ye&&(r.j41(0,"span",14),r.EFF(1),r.k0s()),2&ye){const Ze=r.XpG();r.R7$(),r.JRh(Ze.dimensions)}}function D(ye,Re){1&ye&&r.nrm(0,"mat-icon",28)}function F(ye,Re){1&ye&&r.nrm(0,"mat-icon",29)}function I(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"div",23)(1,"button",24),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.navLeft())}),r.DNE(2,D,1,0,"mat-icon",25),r.k0s(),r.j41(3,"button",26),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.navRight())}),r.DNE(4,F,1,0,"mat-icon",27),r.k0s()()}if(2&ye){const Ze=r.XpG(2);r.R7$(2),r.Y8G("ngIf",Ze.chevronVisible),r.R7$(2),r.Y8G("ngIf",Ze.chevronVisible)}}function k(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"nv-item-button",34),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.editMeme())}),r.k0s()}}function R(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"div",30),r.DNE(1,k,1,0,"nv-item-button",31),r.j41(2,"nv-item-button",32),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.openInFolder())}),r.k0s(),r.j41(3,"nv-item-button",33),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.deleteItem())}),r.k0s()()}if(2&ye){const Ze=r.XpG(2);r.R7$(),r.Y8G("ngIf",Ze.showEditControls)}}function G(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"button",38),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.cancelEdit())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&ye&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"confirmation.cancel")," "))}function Y(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"button",39),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.save())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}if(2&ye){const Ze=r.XpG(3);r.Y8G("disabled",!Ze.enableSaveButton),r.R7$(),r.SpI(" ",r.bMT(2,2,"confirmation.save")," ")}}function K(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"button",38),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.previewDone())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&ye&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"confirmation.done")," "))}function $(ye,Re){if(1&ye&&(r.j41(0,"div",35),r.DNE(1,G,3,3,"button",36)(2,Y,3,4,"button",37)(3,K,3,3,"button",36),r.k0s()),2&ye){const Ze=r.XpG(2);r.R7$(),r.Y8G("ngIf",Ze.memeOn),r.R7$(),r.Y8G("ngIf",Ze.memeOn),r.R7$(),r.Y8G("ngIf",!Ze.memeOn)}}function ee(ye,Re){if(1&ye){const Ze=r.RV6();r.qex(0),r.j41(1,"div",18),r.bIt("mouseenter",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.mouseInPreview(!0))})("mouseleave",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.mouseInPreview(!1))}),r.nrm(2,"img",19,0)(4,"nv-preview-meme",null,1),r.DNE(6,I,5,2,"div",20),r.k0s(),r.DNE(7,R,4,1,"div",21)(8,$,4,3,"div",22),r.bVm()}if(2&ye){const Ze=r.XpG();r.R7$(2),r.xc7("width",Ze.contentDimensions.width,"px")("height",Ze.contentDimensions.height,"px"),r.Y8G("src",Ze.fileSrc,r.B4B),r.R7$(4),r.Y8G("ngIf",!Ze.memeOn),r.R7$(),r.Y8G("ngIf",!Ze.memeOn),r.R7$(),r.Y8G("ngIf",Ze.showEditControls)}}function J(ye,Re){1&ye&&r.nrm(0,"mat-icon",28)}function z(ye,Re){1&ye&&r.nrm(0,"mat-icon",29)}function te(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"div",23)(1,"button",24),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.navLeft())}),r.DNE(2,J,1,0,"mat-icon",25),r.k0s(),r.j41(3,"div",41),r.nrm(4,"mat-icon",42),r.j41(5,"span",43),r.EFF(6),r.nI1(7,"translate"),r.k0s(),r.j41(8,"div",44)(9,"span",43),r.EFF(10),r.nI1(11,"translate"),r.k0s(),r.j41(12,"nv-item-button",45),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.openInFolder())}),r.k0s()()(),r.j41(13,"button",26),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.navRight())}),r.DNE(14,z,1,0,"mat-icon",27),r.k0s()()}if(2&ye){const Ze=r.XpG(2);r.R7$(2),r.Y8G("ngIf",Ze.chevronVisible),r.R7$(4),r.JRh(r.bMT(7,4,"tooltips.PreviewImageError")),r.R7$(4),r.JRh(r.bMT(11,6,"tooltips.OpenFileLocation")),r.R7$(4),r.Y8G("ngIf",Ze.chevronVisible)}}function X(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"div",30)(1,"nv-item-button",32),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.openInFolder())}),r.k0s(),r.j41(2,"nv-item-button",33),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.deleteItem())}),r.k0s()()}}function re(ye,Re){if(1&ye){const Ze=r.RV6();r.qex(0),r.j41(1,"div",18),r.bIt("mouseenter",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.mouseInPreview(!0))})("mouseleave",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.mouseInPreview(!1))}),r.nrm(2,"video",40,2),r.DNE(4,te,15,8,"div",20),r.k0s(),r.DNE(5,X,3,0,"div",21),r.bVm()}if(2&ye){const Ze=r.XpG();r.R7$(2),r.Y8G("ngStyle",r.l_i(3,A,Ze.contentDimensions.width,Ze.contentDimensions.height)),r.R7$(2),r.Y8G("ngIf",!Ze.memeOn),r.R7$(),r.Y8G("ngIf",!Ze.memeOn)}}function ge(ye,Re){1&ye&&r.nrm(0,"mat-icon",28)}function oe(ye,Re){1&ye&&r.nrm(0,"mat-icon",64)}function xe(ye,Re){1&ye&&r.nrm(0,"mat-progress-spinner",65)}function ue(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"div",41),r.nrm(1,"mat-icon",66),r.j41(2,"span",43),r.EFF(3),r.nI1(4,"translate"),r.k0s(),r.j41(5,"div",44)(6,"span",43),r.EFF(7),r.nI1(8,"translate"),r.k0s(),r.j41(9,"nv-item-button",45),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.openInFolder())}),r.k0s()()()}2&ye&&(r.R7$(3),r.JRh(r.bMT(4,2,"tooltips.PlaybackError")),r.R7$(4),r.JRh(r.bMT(8,4,"tooltips.OpenFileLocation")))}function N(ye,Re){1&ye&&r.nrm(0,"mat-icon",29)}function se(ye,Re){if(1&ye){const Ze=r.RV6();r.qex(0),r.j41(1,"div",58),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.toggleMediaPlay())}),r.j41(2,"button",59),r.bIt("click",function(xt){r.eBV(Ze);const un=r.XpG(2);return xt.stopPropagation(),r.Njj(un.navLeft())})("keydown",function(xt){return r.eBV(Ze),r.Njj(xt.stopPropagation())}),r.DNE(3,ge,1,0,"mat-icon",25),r.k0s(),r.DNE(4,oe,1,0,"mat-icon",60)(5,xe,1,0,"mat-progress-spinner",61)(6,ue,10,6,"div",62),r.j41(7,"button",63),r.bIt("click",function(xt){r.eBV(Ze);const un=r.XpG(2);return xt.stopPropagation(),r.Njj(un.navRight())})("keydown",function(xt){return r.eBV(Ze),r.Njj(xt.stopPropagation())}),r.DNE(8,N,1,0,"mat-icon",27),r.k0s()(),r.bVm()}if(2&ye){const Ze=r.XpG(2);r.R7$(3),r.Y8G("ngIf",Ze.chevronVisible),r.R7$(),r.Y8G("ngIf",Ze.isPaused&&Ze.useDisplay===Ze.displayTypes.NORMAL&&!Ze.sliderMoving&&Ze.isVideoPlayable),r.R7$(),r.Y8G("ngIf",Ze.useDisplay===Ze.displayTypes.SPINNER),r.R7$(),r.Y8G("ngIf",!Ze.isVideoPlayable||Ze.useDisplay===Ze.displayTypes.ERROR),r.R7$(2),r.Y8G("ngIf",Ze.chevronVisible)}}function ce(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"nv-hig-slider",67),r.mxI("valueChange",function(xt){r.eBV(Ze);const un=r.XpG(2);return r.DH7(un.sliderPosition,xt)||(un.sliderPosition=xt),r.Njj(xt)}),r.bIt("input",function(xt){r.eBV(Ze);const un=r.XpG(2);return r.Njj(un.sliderChanged(xt))})("mousedown",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.sliderInteraction(!0))})("mouseup",function(){r.eBV(Ze);const xt=r.XpG(2);return r.Njj(xt.sliderInteraction(!1))},!1,r.tSv),r.k0s()}if(2&ye){const Ze=r.XpG(2);r.Y8G("step",Ze.step),r.R50("value",Ze.sliderPosition),r.Y8G("animating",!Ze.isPaused)("disabled",!Ze.isVideoPlayable||Ze.useDisplay===Ze.displayTypes.ERROR)}}function Z(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"nv-ranged-slider",68),r.mxI("valueChange",function(xt){r.eBV(Ze);const un=r.XpG(2);return r.DH7(un.sliderPosition,xt)||(un.sliderPosition=xt),r.Njj(xt)})("leftPositionChange",function(xt){r.eBV(Ze);const un=r.XpG(2);return r.DH7(un.sliderTrimLeft,xt)||(un.sliderTrimLeft=xt),r.Njj(xt)})("rightPositionChange",function(xt){r.eBV(Ze);const un=r.XpG(2);return r.DH7(un.sliderTrimRight,xt)||(un.sliderTrimRight=xt),r.Njj(xt)}),r.bIt("leftPositionChange",function(xt){r.eBV(Ze);const un=r.XpG(2);return r.Njj(un.onLeftSliderChange(xt))})("rightPositionChange",function(xt){r.eBV(Ze);const un=r.XpG(2);return r.Njj(un.onRightSliderChange(xt))})("valueChange",function(xt){r.eBV(Ze);const un=r.XpG(2);return r.Njj(un.sliderChanged(xt))}),r.k0s()}if(2&ye){const Ze=r.XpG(2);r.R50("value",Ze.sliderPosition)("leftPosition",Ze.sliderTrimLeft)("rightPosition",Ze.sliderTrimRight),r.Y8G("disableTrim",Ze.disableTrimSliders)}}function de(ye,Re){1&ye&&r.nrm(0,"div",69)}function ae(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"nv-item-button",34),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.editMeme())}),r.k0s()}}function pe(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"nv-item-button",32),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.openInFolder())}),r.k0s()}}function _e(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"nv-item-button",33),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.deleteItem())}),r.k0s()}}function ke(ye,Re){if(1&ye&&(r.qex(0),r.nrm(1,"div",70),r.j41(2,"div",71),r.DNE(3,ae,1,0,"nv-item-button",31)(4,pe,1,0,"nv-item-button",72)(5,_e,1,0,"nv-item-button",73),r.k0s(),r.bVm()),2&ye){const Ze=r.XpG(2);r.R7$(3),r.Y8G("ngIf",Ze.showEditControls),r.R7$(),r.Y8G("ngIf",!Ze.showShareButton),r.R7$(),r.Y8G("ngIf",!Ze.showShareButton)}}function De(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"button",38),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.cancelEdit())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&ye&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"confirmation.cancel")," "))}function Me(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"button",39),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.save())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}if(2&ye){const Ze=r.XpG(3);r.Y8G("disabled",!Ze.enableSaveButton),r.R7$(),r.SpI(" ",r.bMT(2,2,"confirmation.save")," ")}}function je(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"button",38),r.bIt("click",function(){r.eBV(Ze);const xt=r.XpG(3);return r.Njj(xt.previewDone())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&ye&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"confirmation.done")," "))}function $e(ye,Re){if(1&ye&&(r.j41(0,"div",35),r.DNE(1,De,3,3,"button",36)(2,Me,3,4,"button",37)(3,je,3,3,"button",36),r.k0s()),2&ye){const Ze=r.XpG(2);r.R7$(),r.Y8G("ngIf",Ze.memeOn),r.R7$(),r.Y8G("ngIf",Ze.memeOn),r.R7$(),r.Y8G("ngIf",!Ze.memeOn)}}function Oe(ye,Re){if(1&ye){const Ze=r.RV6();r.j41(0,"div",46)(1,"div",47),r.bIt("keydown",function(xt){r.eBV(Ze);const un=r.XpG();return r.Njj(un.processToggleMedia(xt))})("mouseenter",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.mouseInPreview(!0))})("mouseleave",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.mouseInPreview(!1))}),r.j41(2,"video",48,2),r.bIt("loadeddata",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.onLoadedData())})("error",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.loadFromDragNDrop())}),r.k0s(),r.nrm(4,"nv-preview-meme",null,1),r.DNE(6,se,9,5,"ng-container",15),r.k0s(),r.j41(7,"div",49)(8,"nv-item-button",50),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.toggleMediaPlay())}),r.k0s(),r.DNE(9,ce,1,4,"nv-hig-slider",51)(10,Z,1,4,"nv-ranged-slider",52),r.j41(11,"div",53)(12,"span",54),r.EFF(13),r.k0s()(),r.j41(14,"nv-item-button",55),r.bIt("clicked",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.muteUnmute())}),r.k0s(),r.j41(15,"nv-hig-slider",56),r.mxI("valueChange",function(xt){r.eBV(Ze);const un=r.XpG();return r.DH7(un.volume,xt)||(un.volume=xt),r.Njj(xt)}),r.bIt("valueChange",function(){r.eBV(Ze);const xt=r.XpG();return r.Njj(xt.volumeChanged())}),r.k0s(),r.DNE(16,de,1,0,"div",57)(17,ke,6,3,"ng-container",15),r.k0s(),r.DNE(18,$e,4,3,"div",22),r.k0s()}if(2&ye){const Ze=r.XpG();r.R7$(2),r.Y8G("src",Ze.fileSrc,r.B4B)("ngStyle",r.l_i(20,A,Ze.contentDimensions.width,Ze.contentDimensions.height)),r.R7$(4),r.Y8G("ngIf",!Ze.memeOn),r.R7$(2),r.Y8G("svgIcon",Ze.isPaused?"play_arrow":"pause")("tooltip",Ze.isPaused?"tooltips.Play":"tooltips.Pause")("disabled",!Ze.isVideoPlayable||Ze.useDisplay===Ze.displayTypes.ERROR),r.R7$(),r.Y8G("ngIf",!Ze.memeOn),r.R7$(),r.Y8G("ngIf",Ze.memeOn),r.R7$(),r.Y8G("ngClass",r.l_i(23,L,!Ze.longDuration,Ze.longDuration)),r.R7$(),r.AVh("disabled-opacity",!Ze.isVideoPlayable||Ze.useDisplay===Ze.displayTypes.ERROR),r.R7$(),r.JRh(Ze.videoTime),r.R7$(),r.Y8G("svgIcon",0===Ze.volume?"volume_off":"volume")("tooltip",0===Ze.volume?"tooltips.Unmute":"tooltips.Mute")("disabled",!Ze.isVideoPlayable||Ze.useDisplay===Ze.displayTypes.ERROR),r.R7$(),r.R50("value",Ze.volume),r.Y8G("disabled",!Ze.isVideoPlayable||Ze.useDisplay===Ze.displayTypes.ERROR),r.R7$(),r.Y8G("ngIf",Ze.memeOn&&Ze.showEditControls),r.R7$(),r.Y8G("ngIf",!Ze.memeOn),r.R7$(),r.Y8G("ngIf",Ze.showEditControls)}}let qt=(()=>{var ye;class Re{set imageRef(et){this.image=et?et.nativeElement:null}set videoRef(et){this.video&&""!==this.video.src&&(!et||this.video!==et.nativeElement)&&(this.video.src="",this.hasPlayedVideo=!1,this.video.load()),et?(this.video=et.nativeElement,this.video.focus()):this.video=null}constructor(et,xt,un,ct,Gt,pn,st,mn,Bn,En,Cn,fn,dt,nn){this.loggingService=et,this.galleryService=xt,this.bridgeService=un,this.renderer=ct,this.route=Gt,this.telemetry=pn,this.navigationService=st,this.osService=mn,this.oscDisplayService=Bn,this.igoConfig=En,this.trimService=Cn,this.dialogHelper=fn,this.translateService=dt,this.telemetryIgo=nn,this.destroy$=new n.B7,this.fileMetaData=void 0,this.videoParams={trimmed:!1,startMs:0,durationMs:0,sliderPosition:0,sliderTrimRight:100,sliderTrimLeft:0,start:0,stop:0,volumeChanged:!1,volume:100,mute:!1},this.description="",this.fileName="",this.fullFilename="",this.dimensions="",this.contentDimensions={width:1280,height:720},this.fileSize="",this.volume=100,this.savedVolume=100,this.step=.1,this.sliderTrimLeft=0,this.sliderTrimRight=100,this.sliderPosition=0,this.spaceBetween=4,this.sliderTrimLeftMax=100-this.spaceBetween,this.sliderTrimRightMin=this.spaceBetween,this.trimmed=!1,this.trimCounter=0,this.isPaused=!0,this.playbackTimer=null,this.displayTypes={NORMAL:0,SPINNER:1,ERROR:2},this.useDisplay=this.displayTypes.SPINNER,this.sliderMoving=!1,this.longDuration=!1,this.hasPlayedVideo=!1,this.storedStreamVolume=1,this.showEditControls=!1,this.showShareButton=!1,this.enableShareButton=!1,this.enableSaveButton=!1,this.disableTrimSliders=!1,this.memeOn=!1,this.memed=!1,this.chevronVisible=!1,this.dialogRef=void 0,this.logger=this.loggingService.getLogger("Gallery/Preview")}ngOnInit(){this.logger.info("Initializing Preview Component"),this.showShareButton?this.navigationService.disableCenterPaneCallback():this.navigationService.centerPaneClosedEvent().pipe((0,p.Q)(this.destroy$)).subscribe(()=>{this.closePreview()}),this.galleryService.fileDataChangeListener.pipe((0,p.Q)(this.destroy$)).subscribe(et=>{this.initializeData(et),this.checkIfDataIsEdited()}),this.oscDisplayService.setOutsideClickState(!1),this.galleryService.previewWindowCloseNotify.pipe((0,p.Q)(this.destroy$)).subscribe(et=>{this.closePreview()})}ngOnDestroy(){this.logger.info("Destroying view!"),this.destroy$.next(!0),this.destroy$.complete(),this.navigationService.openCenterPane(!1),this.restoreVolume(),this.playbackTimer&&(clearInterval(this.playbackTimer),this.playbackTimer=null),this.video&&""!==this.video.src&&(this.video.src="",this.video.load()),this.oscDisplayService.setOutsideClickState(!0)}rampVolumeDown(et=1){this.igoConfig.GFNCefClient&&this.bridgeService.executeCommand(S.Ts.Gfn.Streaming.GetStreamVolume).pipe((0,m.M)(xt=>{this.storedStreamVolume=xt}),(0,_.ZZ)(()=>this.bridgeService.executeCommand(S.Ts.Gfn.Streaming.SetStreamVolume,{volume:.1,rampDurationSeconds:et})),(0,P.W)(()=>(0,l.of)("Error ramping volume down"))).subscribe()}restoreVolume(et=1){this.igoConfig.GFNCefClient&&this.bridgeService.executeCommand(S.Ts.Gfn.Streaming.SetStreamVolume,{volume:this.storedStreamVolume,rampDurationSeconds:et}).pipe((0,P.W)(()=>(0,l.of)("Error restoring volume"))).subscribe()}formatFilesizeString(et){return et<1e3?et+" KB":et<1e6?(et/1e3).toFixed(2)+" MB":(et/1e6).toFixed(2)+" GB"}initializeData(et){if(et){if(this.logger.info("Loading preview file"),(void 0===this.fileMetaData||et.fullFilename!==this.fileMetaData.fullFilename)&&(this.useDisplay=this.displayTypes.SPINNER,this.isVideoPlayable=!0),this.video&&!this.isPaused&&this.pauseMedia(),et.file.type===y.Wro.Image){const xt=et.fullFilename.split(".").pop();this.isImageJXR="jxr"===xt}else this.isImageJXR=!1;if(this.fileMetaData=et,this.isVideo=et.file.type===y.Wro.Video,this.fileName=et.file.name,et.hlName){const xt=`highlightLabels.${et.hlName}`,un=this.translateService.instant(xt);this.description=et.folder+" - "+(un===xt?et.hlName:un)}else this.description=et.folder;this.fileSize=this.formatFilesizeString(parseInt(et.fileSize,10)),this.fileSrc=O.fg+et.fullFilename,this.fullFilename=et.fullFilename,this.isVideo?this.updateContentDimensions(this.galleryService.mostLikelyResolution):this.galleryService.getImageFileDimensions(et.fullFilename).subscribe(xt=>{xt&&xt.width&&xt.height?(this.dimensions=xt.width+"x"+xt.height,this.galleryService.mostLikelyResolution.width=xt.width,this.galleryService.mostLikelyResolution.height=xt.height,this.updateContentDimensions({width:xt.width,height:xt.height})):this.dimensions="",this.onLoadedMeme()}),this.playbackTimer&&(clearInterval(this.playbackTimer),this.playbackTimer=null),this.restoreVolume(),this.isPaused=!0,this.sliderPosition=this.sliderTrimLeft=0,this.sliderTrimRight=100,this.contextIcon=this.isVideo?"video":"image"}}loadFromDragNDrop(){if(this.logger.info("Loading via dragNdrop"),!this.galleryService.currentFileData)return void this.logger.error("Loading a file after gallery moved on");const et=this.renderer.listen("document","dragover",un=>{un.stopPropagation(),un.preventDefault(),un.dataTransfer.dropEffect="copy"}),xt=this.renderer.listen("document","drop",un=>{if(un.stopPropagation(),un.preventDefault(),!un.dataTransfer.files||!un.dataTransfer.files[0])return void this.logger.error("bad drop, no file list");if(!this.galleryService.currentFileData)return this.logger.error("Loading a file after gallery moved on"),et(),void xt();const ct=un.dataTransfer.files[0];if(ct.name===this.galleryService.currentFileData.fullFilename){this.logger.info("Loading file");const Gt=URL.createObjectURL(ct);this.isVideo?(this.video.src=Gt,this.video.onerror=pn=>{this.logger.error("A video error occured",pn),this.useDisplay=this.displayTypes.ERROR,this.isVideoPlayable=!1},this.video.load()):this.image.src=Gt}else this.logger.error("bad drag file: "+this.galleryService.currentFileData.fullFilename+"-"+ct.name);et(),xt()});this.bridgeService.executeCommand(S.Ts.Share.Osc.DropUrl,{url:this.galleryService.currentFileData.fullFilename}).subscribe()}updateContentDimensions(et){const xt=et.width/et.height,un=this.contentDimensions.width/this.contentDimensions.height;Math.round(1e3*xt)!==Math.round(1e3*un)&&(xt>=Math.round(1.7777777777777777)?(this.contentDimensions.width=1280,this.contentDimensions.height=Math.round(this.contentDimensions.width/xt)):(this.contentDimensions.height=720,this.contentDimensions.width=Math.round(this.contentDimensions.height*xt)),this.logger.info("Updating content dimensions to ",this.contentDimensions))}onLoadedData(){this.logger.info("Video ready"),this.isVideoPlayable=!(!this.video.videoWidth||!this.video.videoHeight||this.useDisplay===this.displayTypes.ERROR),this.volume=100*this.video.volume,this.useDisplay=this.displayTypes.NORMAL,this.dimensions=this.video.videoWidth+"x"+this.video.videoHeight,this.galleryService.mostLikelyResolution.width=this.video.videoWidth,this.galleryService.mostLikelyResolution.height=this.video.videoHeight,this.setVideoTime(),this.updateContentDimensions(this.galleryService.mostLikelyResolution),this.onLoadedMeme()}onLoadedMeme(){this.showMeme({filename:this.fullFilename,contentWidth:this.contentDimensions.width,contentHeight:this.contentDimensions.height,duration:this.isVideo?this.video.duration:0,videoWidth:this.isVideo?this.video.videoWidth:this.contentDimensions.width,videoHeight:this.isVideo?this.video.videoHeight:this.contentDimensions.height})}sliderChanged(et){this.video&&this.useDisplay===this.displayTypes.NORMAL&&(et&&et.value&&(this.sliderPosition=et.value),this.sliderPosition!==this.lastPosition&&Math.round(this.sliderPosition/this.step)!==Math.round(this.lastPosition/this.step)&&(this.calculateVideoTime(this.sliderPosition),this.setVideoTime()),this.sliderTrimRight<=this.sliderPosition&&!this.isPaused&&setTimeout(()=>{this.logger.info("Video end reached, pausing"),this.pauseMedia()}))}toggleMediaPlay(){if(this.video&&this.isVideoPlayable&&this.useDisplay===this.displayTypes.NORMAL)if(this.video.paused){this.hasPlayedVideo||(this.hasPlayedVideo=!0,this.telemetryIgo.sendGalleryPlayedVideo(this.galleryService.currentFileData.fullFilename,this.galleryService.currentFileData.hlName)),Math.ceil(this.video.currentTime/this.video.duration*100/this.step)>=this.sliderTrimRight/this.step&&(this.logger.info("Restarting video..."),this.calculateVideoTime(this.sliderTrimLeft)),this.logger.info("Starting video"),this.rampVolumeDown(),this.video.play(),this.isPaused=!1,this.setEditPlayState();const et=this.getTrimStopPosition();this.playbackTimer=setInterval(()=>{this.video?(this.sliderMoving||(this.sliderPosition=this.lastPosition=this.video.currentTime/this.video.duration*100),this.setVideoTime(),(this.trimmed&&this.video.currentTime>=et||!this.trimmed&&this.video.currentTime>=this.video.duration)&&this.pauseMedia()):this.pauseMedia()})}else this.pauseMedia()}pauseMedia(){this.logger.info("Pausing video"),this.video?.pause(),this.isPaused=!0,this.setEditPlayState(),this.restoreVolume(),this.playbackTimer&&(this.logger.info("Clearing Interval on pause"),clearInterval(this.playbackTimer),this.playbackTimer=null)}processToggleMedia(et){this.memeOn||("Enter"===et.key||" "===et.key)&&this.toggleMediaPlay()}setEditPlayState(){this.memeOn&&this.previewMeme&&(this.previewMeme.editMeme(),this.disableTrimSliders=!this.isPaused)}setVideoTime(){this.longDuration=!(this.video.duration<3600);const et=Math.floor(this.video.duration),xt=et*(this.sliderTrimRight-this.sliderTrimLeft)/100,un=Math.floor(xt/3600),ct=Math.floor(xt/60-60*un),Gt=Math.floor(xt-3600*un-60*ct),pn=("00"+un).slice(-2).toString(),st=("00"+ct).slice(-2).toString(),mn=("00"+Gt).slice(-2).toString(),Bn=Math.abs(this.sliderPosition-this.sliderTrimLeft)*et/100,En=Math.floor(Bn/3600),Cn=Math.floor(Bn/60-60*En),fn=Math.floor(Bn-3600*En-60*Cn);if(this.longDuration){const dt=pn+":"+st+":"+mn,nn=("00"+En).slice(-2).toString()+":"+("00"+Cn).slice(-2).toString()+":"+("00"+fn).slice(-2).toString();this.videoTime=nn+" / "+dt}else{const dt=st+":"+mn,nn=("00"+Cn).slice(-2).toString()+":"+("00"+fn).slice(-2).toString();this.videoTime=nn+" / "+dt}}volumeChanged(){this.video&&(this.logger.info("Volume changed to "+this.volume),this.video.volume=this.volume/100)}processToggleMute(et){("Enter"===et.key||" "===et.key)&&this.muteUnmute()}muteUnmute(){this.video&&(this.volume?(this.logger.info("Muting video"),this.savedVolume=this.volume,this.volume=0):(this.logger.info("UnMuting video"),this.volume=this.savedVolume||50),this.volumeChanged())}sliderInteraction(et){et&&this.video&&!this.isPaused?this.sliderMoving=!0:!et&&this.sliderMoving&&(this.sliderMoving=!1,this.isPaused&&this.toggleMediaPlay())}closePreview(){this.navigationService.navigate([{outlets:{centerPane:null}}],{relativeTo:this.route.parent.parent,skipLocationChange:!0},y.jby.galleryMain)}openInFolder(){let et=this.fullFilename;const xt=this.osService.getDirSeparator(),un=et.lastIndexOf(xt);if(-1!==un&&(et=et.slice(0,un)),""!==et){this.oscDisplayService.closeOSC();const ct=this.bridgeService.executeCommand(S.Ts.Common.Applicationinfo.OpenDirectoryBrowser,{name:et}).subscribe(()=>{ct.unsubscribe()});this.telemetryIgo.sendGalleryOpenedFileLocation()}}editMeme(){this.logger.info("Editing Open"),!this.memeOn&&!this.isPaused&&this.isVideo&&this.toggleMediaPlay(),this.showEditControls&&this.previewMeme&&(this.memeOn=!0,this.previewMeme.editMeme(),this.checkIfDataIsEdited())}checkIfDataIsEdited(){this.trimmed=0!==this.sliderTrimLeft||100!==this.sliderTrimRight,this.enableSaveButton=this.trimmed||this.memed,this.previewMeme&&this.previewMeme.editStartedEvent().pipe((0,p.Q)(this.destroy$)).subscribe(et=>{this.memed=et,this.enableSaveButton=this.trimmed||this.memed})}showMeme(et){this.logger.info("Show Meme"),(this.showEditControls||this.showShareButton)&&this.previewMeme&&setTimeout(()=>{this.memeOn=!1,this.previewMeme.displayMeme(et),this.checkIfDataIsEdited()})}cancelEdit(){this.logger.info("Cancel Editing"),this.memed=this.memeOn=!1,this.previewMeme.cancelMeme(),this.sliderPosition=this.sliderTrimLeft=0,this.sliderTrimRight=100,this.trimmed=!1}previewDone(){this.logger.info("Preview Done"),this.closePreview()}navLeft(){this.galleryService.previewPaneSendEvent(y.Pev.BackNav)}navRight(){this.galleryService.previewPaneSendEvent(y.Pev.ForwardNav)}deleteItem(){this.galleryService.previewPaneSendEvent(y.Pev.DeleteFile)}trim(et,xt){return this.trimService.trim({input:this.fileMetaData.fullFilename,output:et,headTrimMs:this.videoParams.startMs,lengthMs:this.videoParams.durationMs}).pipe((0,_.ZZ)(()=>(this.logger.info("Trim complete!"),this.trimService.getMetaData(this.fileMetaData.fullFilename))),(0,v.T)(ct=>(this.logger.info("Return Data: ",ct),xt&&(this.fileMetaData.date=ct.date,this.fileMetaData.fileSize=ct.fileSizeKB.toString(),this.fileMetaData.duration=ct.duration.slice(ct.duration.indexOf(":")+1)),this.logger.info("Trim post processing complete!"),this.initializeData(this.fileMetaData),this.checkIfDataIsEdited(),this.useDisplay=this.displayTypes.NORMAL,this.sliderPosition=0,this.calculateVideoTime(this.sliderPosition),this.setVideoTime(),xt&&setTimeout(()=>{this.video.src="",this.video.load(),this.trimCounter++,this.video.src=this.fileSrc+"?"+this.trimCounter.toString(),this.video.load()},10),setTimeout(()=>{this.galleryService.updateAfterFileCreation(this.fileMetaData.folder)},10),!0)))}save(){if(0===this.sliderTrimLeft&&100===this.sliderTrimRight)return this.memed=this.memeOn=!1,void this.previewMeme.editMeme();this.dialogHelper.openAlertDialog({title:"confirmation.TrimVideo",query:"confirmation.ConfirmSaveChanges",queryParam:"",action1:"confirmation.cancel",action2:"confirmation.TrimOriginal",action3:"confirmation.SaveANewClip"},!1).pipe((0,p.Q)(this.destroy$),(0,m.M)(xt=>this.dialogRef=xt),(0,_.ZZ)(xt=>xt.afterClosed())).subscribe(xt=>{if(xt===y.SFy.Action2||xt===y.SFy.Action3){this.useDisplay=this.displayTypes.SPINNER;const un=xt===y.SFy.Action2;this.memed=this.memeOn=!1,this.setVideoTrimParams(!0);let ct=this.fileMetaData.fullFilename;un||(ct=this.createOutputFilename(this.fileMetaData.fullFilename,this.videoParams.start,this.videoParams.stop)),this.previewMeme.editMeme(un?void 0:ct,!0),this.trim(ct,un).pipe((0,p.Q)(this.destroy$)).subscribe()}})}sliderUpdate(et){setTimeout(()=>{this.sliderPosition=et,this.checkIfDataIsEdited(),this.calculateVideoTime(et),this.setVideoTime()})}calculateVideoTime(et){isNaN(et)&&(et=0);const xt=et/100*this.video.duration;this.video.currentTime=isFinite(xt)?xt:0}onLeftSliderChange(et){this.logger.info("L-SliderChange: ",et),this.sliderUpdate(et)}onRightSliderChange(et){this.logger.info("R-SliderChange: ",et),this.sliderUpdate(et)}setVideoTrimParams(et){const xt=this.sliderTrimLeft*this.video.duration*10,un=xt/1e3,ct=(this.sliderTrimRight-this.sliderTrimLeft)*this.video.duration*10;this.videoParams={trimmed:et,startMs:xt,durationMs:ct,sliderPosition:this.sliderPosition,sliderTrimRight:this.sliderTrimRight,sliderTrimLeft:this.sliderTrimLeft,start:un,stop:un+ct/1e3,volume:this.volume,mute:0===this.volume,volumeChanged:100!==this.volume},this.logger.info("Video Parameters for Trim: ",this.videoParams)}getTrimStopPosition(){return(this.sliderTrimLeft*this.video.duration*10+(this.sliderTrimRight-this.sliderTrimLeft)*this.video.duration*10)/1e3}createOutputFilename(et,xt,un){let ct="";const Gt=et.lastIndexOf(".");return Gt>=0&&(ct=et.slice(0,Gt)),ct+="-"+Math.floor(xt)+"-"+Math.floor(un)+"-"+Date.now()+".mp4",ct}mouseInPreview(et){this.chevronVisible=et}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(r.rXU(O.J6),r.rXU(y.AFS),r.rXU(O.NZ),r.rXU(r.sFG),r.rXU(i.nX),r.rXU(y.xRl),r.rXU(y.o_p),r.rXU(y.aTF),r.rXU(y.Bqk),r.rXU(y.k$F),r.rXU(y.g7b),r.rXU(y.eo6),r.rXU(a.c$),r.rXU(h.S))},ye.\u0275cmp=r.VBU({type:ye,selectors:[["igo-preview"]],viewQuery:function(et,xt){if(1&et&&(r.GBs(g,5),r.GBs(c,5),r.GBs(T,5)),2&et){let un;r.mGM(un=r.lsd())&&(xt.imageRef=un.first),r.mGM(un=r.lsd())&&(xt.videoRef=un.first),r.mGM(un=r.lsd())&&(xt.previewMeme=un.first)}},decls:18,vars:9,consts:[["image",""],["previewMeme",""],["video",""],["fxLayout","row","fxFill","","fxLayoutAlign","center center",1,"right-half"],["fxLayout","column","fxLayoutAlign","start start","cdkTrapFocus","",1,"center-pane","mat-elevation-z16"],["fxLayout","column","fxLayoutAlign","start stretch",1,"infopanel"],["fxLayout","row","fxLayoutAlign","start center"],["fxFlex","none","fxLayout","row","fxLayoutAlign","center center",1,"nv-item-icon"],[3,"svgIcon"],["fxFlex","grow",1,"preview-info-title","font-body1"],["svgIcon","close",3,"clicked",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","24px",1,"info-subtext"],["fxFlex","",1,"font-body2","secondary-color"],["class","font-body2 secondary-color","fxFlex","none",4,"ngIf"],["fxFlex","none",1,"font-body2","secondary-color"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",4,"ngIf"],["svgIcon","close",3,"clicked"],[1,"preview-container",3,"mouseenter","mouseleave"],["alt","","tabIndex","-1",1,"preview-content",3,"src"],["class","navigation-buttons","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px","class","viewer-media-toolbar",4,"ngIf"],["class","viewer-bottom-toolbar","fxFlexFill","","fxLayout","row","fxLayoutAlign","end end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"navigation-buttons"],["fxFlex","none","mat-button","",1,"complex-button","button-left",3,"click"],["svgIcon","chevron_left","class","nav-button",4,"ngIf"],["fxFlex","none","mat-button","",1,"complex-button","button-right",3,"click"],["svgIcon","chevron_right","class","nav-button",4,"ngIf"],["svgIcon","chevron_left",1,"nav-button"],["svgIcon","chevron_right",1,"nav-button"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px",1,"viewer-media-toolbar"],["fxFlex","none","svgIcon","edit","tooltip","tooltips.Edit",3,"clicked",4,"ngIf"],["fxFlex","none","svgIcon","folder_open","tooltip","tooltips.OpenLocation",3,"clicked"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",3,"clicked"],["fxFlex","none","svgIcon","edit","tooltip","tooltips.Edit",3,"clicked"],["fxFlexFill","","fxLayout","row","fxLayoutAlign","end end",1,"viewer-bottom-toolbar"],["mat-button","","class","font-button2 hig-button",3,"click",4,"ngIf"],["mat-button","","class","font-button2 hig-button",3,"disabled","click",4,"ngIf"],["mat-button","",1,"font-button2","hig-button",3,"click"],["mat-button","",1,"font-button2","hig-button",3,"click","disabled"],["tabIndex","-1",1,"preview-content",3,"ngStyle"],["fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","8px",1,"video_box_error"],["svgIcon","image_off",1,"icon-normal","icon64"],[1,"video-text-error","font-body1"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","2px"],["svgIcon","open_in_new","tooltip","tooltips.OpenLocation",1,"font-body1",3,"clicked"],["fxLayout","column","fxLayoutAlign","start start"],[1,"preview-container",3,"keydown","mouseenter","mouseleave"],["type","video/mp4","tabIndex","-1",1,"preview-content",3,"loadeddata","error","src","ngStyle"],["dir","ltr","fxFlexFill","","fxLayout","row","fxLayoutAlign","start center",1,"viewer-media-toolbar"],["fxFlex","none",1,"viewer-playpause-button",3,"clicked","svgIcon","tooltip","disabled"],["fxFlex","grow","min","0","max","100",3,"step","value","animating","disabled","valueChange","input","mousedown","mouseup",4,"ngIf"],["fxFlex","grow",3,"value","leftPosition","rightPosition","disableTrim","valueChange","leftPositionChange","rightPositionChange",4,"ngIf"],["fxLayout","","fxLayoutAlign","center center",3,"ngClass"],[1,"font-body2"],["fxFlex","none",1,"viewer-video-volume-button",3,"clicked","svgIcon","tooltip","disabled"],["min","0","max","100",1,"viewer-video-volume-slider",3,"valueChange","value","disabled"],["fxFlex","none","class","nv-horizontal-gap-24",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"video-overlay-button",3,"click"],["fxFlex","none","mat-button","",1,"complex-button","button-left",3,"click","keydown"],["svgIcon","play_arrow","class","icon-preview video-overlay-button-icon circle-play",4,"ngIf"],["id","progressIndicator","class","md-accent","mode","indeterminate",4,"ngIf"],["class","video_box_error","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","8px",4,"ngIf"],["fxFlex","none","mat-button","",1,"complex-button","button-right",3,"click","keydown"],["svgIcon","play_arrow",1,"icon-preview","video-overlay-button-icon","circle-play"],["id","progressIndicator","mode","indeterminate",1,"md-accent"],["svgIcon","video_off",1,"icon-normal","icon64"],["fxFlex","grow","min","0","max","100",3,"valueChange","input","mousedown","mouseup","step","value","animating","disabled"],["fxFlex","grow",3,"valueChange","leftPositionChange","rightPositionChange","value","leftPosition","rightPosition","disableTrim"],["fxFlex","none",1,"nv-horizontal-gap-24"],["fxFlex","none",1,"padding-left","nv-horizontal-gap-32"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px"],["fxFlex","none","svgIcon","folder_open","tooltip","tooltips.OpenLocation",3,"clicked",4,"ngIf"],["fxFlex","none","svgIcon","delete_forever","tooltip","tooltips.Remove",3,"clicked",4,"ngIf"]],template:function(et,xt){1&et&&(r.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),r.nrm(5,"mat-icon",8),r.k0s(),r.j41(6,"div",9),r.EFF(7),r.k0s(),r.DNE(8,x,1,0,"nv-item-button",10),r.k0s(),r.j41(9,"div",11)(10,"span",12),r.EFF(11),r.k0s(),r.DNE(12,V,2,1,"span",13),r.j41(13,"span",14),r.EFF(14),r.k0s()()(),r.DNE(15,ee,9,8,"ng-container",15)(16,re,6,6,"ng-container",15)(17,Oe,19,26,"div",16),r.k0s()()),2&et&&(r.R7$(5),r.Y8G("svgIcon",xt.contextIcon),r.R7$(2),r.JRh(xt.description),r.R7$(),r.Y8G("ngIf",!xt.showShareButton),r.R7$(3),r.JRh(xt.fileName),r.R7$(),r.Y8G("ngIf",xt.isVideoPlayable&&xt.useDisplay!==xt.displayTypes.ERROR||!xt.isVideo&&!xt.isImageJXR),r.R7$(2),r.JRh(xt.fileSize),r.R7$(),r.Y8G("ngIf",!xt.isVideo&&!xt.isImageJXR),r.R7$(),r.Y8G("ngIf",xt.isImageJXR),r.R7$(),r.Y8G("ngIf",xt.isVideo))},styles:[".isLtr[_nghost-%COMP%] .right-half[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .right-half[_ngcontent-%COMP%]{padding-left:48px}html[dir=ltr][_ngcontent-%COMP%] .right-half[_ngcontent-%COMP%]{--dummy1: 0;padding-left:48px}.isRtl[_nghost-%COMP%] .right-half[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .right-half[_ngcontent-%COMP%]{padding-right:48px}html[dir=rtl][_ngcontent-%COMP%] .right-half[_ngcontent-%COMP%]{--dummy1: 0;padding-right:48px}.isLtr[_nghost-%COMP%] .padding-left[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .padding-left[_ngcontent-%COMP%]{padding-left:2%}html[dir=ltr][_ngcontent-%COMP%] .padding-left[_ngcontent-%COMP%]{--dummy1: 0;padding-left:2%}.isRtl[_nghost-%COMP%] .padding-left[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .padding-left[_ngcontent-%COMP%]{padding-right:2%}html[dir=rtl][_ngcontent-%COMP%] .padding-left[_ngcontent-%COMP%]{--dummy1: 0;padding-right:2%}.center-pane[_ngcontent-%COMP%]{min-width:768px;max-width:1328px;min-height:656px;max-height:960px;display:inline-block;background:#191919}.infopanel[_ngcontent-%COMP%]{margin:16px 16px 0;width:calc(100% - 32px)}.info-subtext[_ngcontent-%COMP%]{margin:0 8px}.preview-content[_ngcontent-%COMP%]{max-width:1280px;min-width:960px;max-height:720px;min-height:536px;margin:24px 24px 0;object-fit:contain!important;transition:width .15s ease-out,height .15s ease-out}.preview-container[_ngcontent-%COMP%]{position:relative}.navigation-buttons[_ngcontent-%COMP%]{position:absolute;inset:0;margin:24px 24px 0}.video-overlay-button[_ngcontent-%COMP%]{position:absolute;inset:24px 24px 4px;opacity:.95}.video-overlay-button-icon[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;padding:16px}.circle-play[_ngcontent-%COMP%]{width:48px;height:48px;border-radius:50%;background-color:#191919}.isLtr[_nghost-%COMP%] .button-left[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .button-left[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr][_ngcontent-%COMP%] .button-left[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl[_nghost-%COMP%] .button-left[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .button-left[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl][_ngcontent-%COMP%] .button-left[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.isLtr[_nghost-%COMP%] .button-right[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .button-right[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .button-right[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .button-right[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .button-right[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .button-right[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.icon48[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px}.icon64[_ngcontent-%COMP%]{width:64px;height:64px;font-size:64px;color:#fff}.nav-button[_ngcontent-%COMP%]{color:#ffffffb3;padding:6px;font-size:32px;width:36px;height:36px;border-radius:50%;background-color:#191919}.video-moment-error[_ngcontent-%COMP%]{position:absolute;text-align:center;vertical-align:middle}.video-box-error[_ngcontent-%COMP%]{margin-top:80px;text-align:center;display:table}.video-box-error[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle!important}.viewer-media-toolbar[_ngcontent-%COMP%]{width:100%;max-height:68px;padding:16px 24px}.viewer-bottom-toolbar[_ngcontent-%COMP%]{width:100%;height:40px;padding:0 8px 8px 24px}.viewer-playpause-button[_ngcontent-%COMP%]{margin:0 8px 0 0}.isLtr[_nghost-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%]{padding-right:1%}html[dir=ltr][_ngcontent-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:1%}.isRtl[_nghost-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%]{padding-left:1%}html[dir=rtl][_ngcontent-%COMP%] .viewer-playpause-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:1%}.viewer-video-counter-short[_ngcontent-%COMP%]{min-width:100px;margin:0 0 0 16px}.viewer-video-counter-long[_ngcontent-%COMP%]{min-width:130px;margin:0 0 0 16px}.viewer-video-volume-slider[_ngcontent-%COMP%]{min-width:80px}.viewer-video-volume-button[_ngcontent-%COMP%]{margin:0 0 0 16px}.isLtr[_nghost-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%]{padding-right:1%}html[dir=ltr][_ngcontent-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:1%}.isRtl[_nghost-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%]{padding-left:1%}html[dir=rtl][_ngcontent-%COMP%] .viewer-video-volume-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:1%}"]}),Re})()},40418:(Ue,W,d)=>{"use strict";d.d(W,{k:()=>a});var n=d(58527),l=d(40262),p=d(14354),m=d(80583),_=d(8619),P=d(65706),v=d(4208),O=d(3567),S=d(61876),y=d(1331);const r=["content"],i=(h,g)=>({"sidebar-color-rtxhdr":h,"sidebar-color-nativehdr":g});let a=(()=>{var h;class g{getHideSidebar(){return this.oscDisplayService.getHideSidebar()}constructor(T,A,L,x,V,D){this.spatialNavigationService=A,this.focusManager=L,this.router=x,this.oscDisplayService=V,this.igoConfig=D,this.isRTLLayout=!1,this.destroy$=new m.B7,this.isGfn=!1,this.rtxHdrMode=!1,this.nativeHdrMode=!1,this.isRTLLayout=T.isRTLLayoutEnabled}ngOnInit(){this.oscDisplayService.setHideSidebar(!1),this.isGfn=this.igoConfig.GFNCefClient,this.isGfn||this.oscDisplayService.isDisplayStateCheckComplete().pipe((0,_.p)(Boolean),(0,P.s)(1)).subscribe(()=>{this.rtxHdrMode=this.oscDisplayService.getRtxHdrEnable(),this.nativeHdrMode=!this.rtxHdrMode&&this.oscDisplayService.getNativeHdrEnable()})}ngAfterViewInit(){this.isGfn||this.oscDisplayService.getRtxHdrStatus$().pipe((0,v.Q)(this.destroy$)).subscribe(T=>{this.rtxHdrMode=!this.oscDisplayService.getCurrentDesktopModeImmediate()&&T,this.rtxHdrMode&&(this.nativeHdrMode=!1)}),this.spatialNavigationService.enabled&&(this.oscDisplayService.getSidebarVisibilityChange$().pipe((0,_.p)(T=>T),(0,v.Q)(this.destroy$)).subscribe(()=>{this.focusManager.focusChild(this.content.nativeElement,"initial")}),this.router.events.pipe((0,v.Q)(this.destroy$)).subscribe(T=>{if(T instanceof p.wF){const A=Array.from(this.content.nativeElement.children).reverse().find(L=>L instanceof HTMLElement&&L.tagName.includes("IGO-"));A instanceof HTMLElement&&this.focusManager.focusChild(A,"initial")}}))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}prepareRoute(T){return!this.isRTLLayout&&T&&T.activatedRouteData&&T.activatedRouteData.level}prepareRouteRtl(T){return this.isRTLLayout&&T&&T.activatedRouteData&&T.activatedRouteData.level}onMouseDown(T){0===T.button&&!this.isGfn&&this.oscDisplayService.getOutsideClickState()&&T.clientX>this.content.nativeElement.offsetWidth&&this.oscDisplayService.closeOSC()}}return(h=g).\u0275fac=function(T){return new(T||h)(n.rXU(O.iH),n.rXU(S.ED),n.rXU(S.c_),n.rXU(p.Ix),n.rXU(y.Bqk),n.rXU(y.k$F))},h.\u0275cmp=n.VBU({type:h,selectors:[["nv-sidebar"]],viewQuery:function(T,A){if(1&T&&n.GBs(r,5,n.aKT),2&T){let L;n.mGM(L=n.lsd())&&(A.content=L.first)}},decls:8,vars:8,consts:[["content",""],["outlet","outlet"],["fxLayout","row","fxFill","",3,"mousedown"],["fxLayout","column",1,"sidebar"],["fxFlex","","fxLayout","column","nvSpatialNavigationContainer","","containFocus","false","captureFocusForChild","true",1,"sidebar-content",3,"ngClass"],["name","centerPane"]],template:function(T,A){if(1&T){const L=n.RV6();n.j41(0,"div",2),n.bIt("mousedown",function(V){return n.eBV(L),n.Njj(A.onMouseDown(V))}),n.j41(1,"div",3),n.nrm(2,"nv-app-bar"),n.j41(3,"div",4,0),n.nrm(5,"router-outlet",null,1),n.k0s()(),n.nrm(7,"router-outlet",5),n.k0s()}if(2&T){const L=n.sdS(6);n.R7$(),n.xc7("display",A.getHideSidebar()?"none":"inherit"),n.R7$(2),n.Y8G("ngClass",n.l_i(5,i,A.rtxHdrMode,A.nativeHdrMode))("@slideFadeAnimation",A.prepareRoute(L))("@slideFadeAnimationRtl",A.prepareRouteRtl(L))}},styles:["[_nghost-%COMP%]{pointer-events:auto;position:absolute;width:100%;height:100%}.sidebar[_ngcontent-%COMP%]{display:inline-block;height:100%;width:512px;min-width:512px;box-shadow:2px 0 8px 1px #000000bf}.sidebar-content[_ngcontent-%COMP%]{background:#191919;overflow:hidden;position:relative}.sidebar-color-rtxhdr[_ngcontent-%COMP%]{background:#070707}.sidebar-color-nativehdr[_ngcontent-%COMP%]{background:#393939}.tv-view[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .sidebar[_ngcontent-%COMP%]{width:690px}"],data:{animation:[(0,l.hZ)("slideFadeAnimation",[(0,l.kY)("void => 0, 0 => void",[]),(0,l.kY)(":increment",[(0,l.P)(":leave",[(0,l.iF)({opacity:1})]),(0,l.P)(":enter",[(0,l.iF)({opacity:1,left:"-100%","background-color":"inherit","z-index":999,"box-shadow":"2px 0 8px 1px rgba(0, 0, 0, 0.75)"}),(0,l.i0)("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,l.iF)({left:"0"}))]),(0,l.P)(":leave",[(0,l.iF)({opacity:"0"})]),(0,l.P)(":enter",[(0,l.iF)({"background-color":"unset","z-index":"unset","box-shadow":"unset"})])]),(0,l.kY)(":decrement",[(0,l.P)(":leave",[(0,l.iF)({opacity:1,left:"0","background-color":"inherit","z-index":999,"box-shadow":"2px 0 8px 1px rgba(0, 0, 0, 0.75)"}),(0,l.i0)("300ms cubic-bezier(0.4, 0.0, 1, 1)",(0,l.iF)({left:"-100%"})),(0,l.iF)({"background-color":"unset"})],{optional:!0})])]),(0,l.hZ)("slideFadeAnimationRtl",[(0,l.kY)("void => 0, 0 => void",[]),(0,l.kY)(":increment",[(0,l.P)(":leave",[(0,l.iF)({opacity:1})]),(0,l.P)(":enter",[(0,l.iF)({opacity:1,right:"-100%","background-color":"inherit","z-index":999,"box-shadow":"2px 0 8px 1px rgba(0, 0, 0, 0.75)"}),(0,l.i0)("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,l.iF)({right:"0"}))]),(0,l.P)(":leave",[(0,l.iF)({opacity:"0"})]),(0,l.P)(":enter",[(0,l.iF)({"background-color":"unset","z-index":"unset","box-shadow":"unset"})])]),(0,l.kY)(":decrement",[(0,l.P)(":leave",[(0,l.iF)({opacity:1,right:"0","background-color":"inherit","z-index":999,"box-shadow":"2px 0 8px 1px rgba(0, 0, 0, 0.75)"}),(0,l.i0)("300ms cubic-bezier(0.4, 0.0, 1, 1)",(0,l.iF)({right:"-100%"})),(0,l.iF)({"background-color":"unset"})],{optional:!0})])])]}}),g})()},52834:(Ue,W,d)=>{"use strict";d.d(W,{I:()=>p});var n=d(6364),l=d(58527);let p=(()=>{var m;class _{get disabled(){return this._disabled}set disabled(v){this._disabled=(0,n.he)(v),this._disabled?this.el.nativeElement.setAttribute("disabled",""):this.el.nativeElement.removeAttribute("disabled")}constructor(v){this.el=v,this._disabled=!1}}return(m=_).\u0275fac=function(v){return new(v||m)(l.rXU(l.aKT))},m.\u0275dir=l.FsC({type:m,selectors:[["disabled"],["","disabled",""]],inputs:{disabled:"disabled"}}),_})()},81616:(Ue,W,d)=>{"use strict";d.d(W,{U:()=>l});var n=d(58527);let l=(()=>{var p;class m{constructor(P){this.element=P,this.focusEnabled=!0}onmouseenter(){!1!==this.focusEnabled&&this.element.nativeElement.focus()}onmouseleave(){!1!==this.focusEnabled&&this.element.nativeElement.blur()}}return(p=m).\u0275fac=function(P){return new(P||p)(n.rXU(n.aKT))},p.\u0275dir=n.FsC({type:p,selectors:[["","nvHoverFocus",""]],hostBindings:function(P,v){1&P&&n.bIt("mouseenter",function(){return v.onmouseenter()})("mouseleave",function(){return v.onmouseleave()})},inputs:{focusEnabled:[n.Mj6.None,"nvHoverFocus","focusEnabled"]}}),m})()},27216:(Ue,W,d)=>{"use strict";d.d(W,{VI:()=>_,MG:()=>r.M,kc:()=>l.k}),d(62668);var l=d(40418),p=d(58527),m=d(14354);let _=(()=>{var g;class c{constructor(){}}return(g=c).\u0275fac=function(A){return new(A||g)},g.\u0275cmp=p.VBU({type:g,selectors:[["nv-center-pane"]],decls:1,vars:0,template:function(A,L){1&A&&p.nrm(0,"router-outlet")},dependencies:[m.n3],encapsulation:2}),c})();d(83486),d(43822),d(36842),d(93662),d(55962);var r=d(70410);d(15332),d(45152),d(43827)},62668:(Ue,W,d)=>{"use strict";d.d(W,{G:()=>Bn});var n=d(61142),l=d(14354),p=d(51006),m=d(17617),_=d(61876),P=d(40418),v=d(43822),O=d(93662),S=d(58527),y=d(36842),r=d(52834);let i=(()=>{var En;class Cn{get leftPosition(){return this._leftPosition}set leftPosition(dt){this._leftPosition!==dt&&(this._leftPosition=dt,this.trimChanged(),this.leftPositionChange.emit(this._leftPosition))}get rightPosition(){return this._rightPosition}set rightPosition(dt){this._rightPosition!==dt&&(this._rightPosition=dt,this.trimChanged(),this.rightPositionChange.emit(this._rightPosition))}get value(){return this._value}set value(dt){dt!==this._value&&(this._value=dt,this.valueChange.emit(this._value))}constructor(){this._leftPosition=0,this.leftPositionChange=new S.bkB,this._rightPosition=100,this.rightPositionChange=new S.bkB,this.valueChange=new S.bkB,this._value=0,this.step=1,this.disabled=!1,this.disableTrim=!1,this.spaceBetween=4,this.leftMax=100-this.spaceBetween,this.rightMin=this.spaceBetween}trimChanged(){this.leftMax=this.rightPosition-this.spaceBetween,this.rightMin=this.leftPosition+this.spaceBetween}}return(En=Cn).\u0275fac=function(dt){return new(dt||En)},En.\u0275cmp=S.VBU({type:En,selectors:[["nv-ranged-slider"]],inputs:{leftPosition:"leftPosition",rightPosition:"rightPosition",value:"value",step:"step",disabled:"disabled",disableTrim:"disableTrim"},outputs:{leftPositionChange:"leftPositionChange",rightPositionChange:"rightPositionChange",valueChange:"valueChange"},decls:5,vars:22,consts:[[1,"ranged-slider-padding"],[1,"ranged-slider-wrapper"],[3,"valueChange","disabled","min","max","step","value","rangeMin","rangeMax"],[1,"trim-slider","left-slider",3,"valueChange","disabled","onlyThumbs","min","max","step","rangeMin","rangeMax","value"],[1,"trim-slider","right-slider",3,"valueChange","setWidthOnMin","disabled","onlyThumbs","min","max","step","value"]],template:function(dt,nn){1&dt&&(S.j41(0,"div",0)(1,"div",1)(2,"nv-slider",2),S.mxI("valueChange",function(Xn){return S.DH7(nn.value,Xn)||(nn.value=Xn),Xn}),S.k0s(),S.j41(3,"nv-slider",3),S.mxI("valueChange",function(Xn){return S.DH7(nn.leftPosition,Xn)||(nn.leftPosition=Xn),Xn}),S.bIt("valueChange",function(){return nn.trimChanged()}),S.k0s(),S.j41(4,"nv-slider",4),S.mxI("valueChange",function(Xn){return S.DH7(nn.rightPosition,Xn)||(nn.rightPosition=Xn),Xn}),S.bIt("valueChange",function(){return nn.trimChanged()}),S.k0s()()()),2&dt&&(S.R7$(2),S.Y8G("disabled",nn.disabled)("min",0)("max",100)("step",nn.step),S.R50("value",nn.value),S.Y8G("rangeMin",nn.leftPosition)("rangeMax",nn.rightPosition),S.R7$(),S.Y8G("disabled",nn.disableTrim)("onlyThumbs",!0)("min",0)("max",100)("step",nn.step)("rangeMin",0)("rangeMax",nn.leftMax),S.R50("value",nn.leftPosition),S.R7$(),S.Y8G("setWidthOnMin",!0)("disabled",nn.disableTrim)("onlyThumbs",!0)("min",nn.rightMin)("max",100)("step",nn.step),S.R50("value",nn.rightPosition))},dependencies:[y.xN,r.I],styles:[".ranged-slider-padding[_ngcontent-%COMP%]{padding:0 5px}.ranged-slider-wrapper[_ngcontent-%COMP%]{text-align:center;vertical-align:middle;position:relative}.ranged-slider-wrapper[_ngcontent-%COMP%] nv-slider[_ngcontent-%COMP%]{padding:0!important}.ranged-slider-wrapper[_ngcontent-%COMP%] .left-slider[_ngcontent-%COMP%], .ranged-slider-wrapper[_ngcontent-%COMP%] .right-slider[_ngcontent-%COMP%]{position:absolute;top:20px;width:100%}.ranged-slider-wrapper[_ngcontent-%COMP%] .left-slider[_ngcontent-%COMP%]{left:0}.ranged-slider-wrapper[_ngcontent-%COMP%] .right-slider[_ngcontent-%COMP%]{min-width:14px;right:0}"]}),Cn})();var a=d(55962),h=d(15332),g=d(6754),c=d(3567),T=d(1331),A=d(80583),L=d(4208),x=d(3457),V=d(28139),D=d(21254);const F=["memeTopString"],I=["memeBottomString"],k=["memeTopSpan"],R=["memeBottomSpan"],G=En=>({top:En});function Y(En,Cn){if(1&En&&(S.j41(0,"div",6)(1,"div",7,0)(3,"span",null,1),S.EFF(5),S.k0s()(),S.j41(6,"div",8,2)(8,"span",null,3),S.EFF(10),S.k0s()()()),2&En){const fn=S.XpG();S.R7$(),S.Y8G("ngStyle",S.eq3(4,G,fn.topOffset)),S.R7$(4),S.JRh(fn.upperMeme),S.R7$(),S.Y8G("ngStyle",S.eq3(6,G,fn.bottomOffset)),S.R7$(4),S.JRh(fn.lowerMeme)}}function K(En,Cn){if(1&En){const fn=S.RV6();S.j41(0,"div",9)(1,"div",10)(2,"nv-input",11),S.mxI("textChange",function(nn){S.eBV(fn);const yn=S.XpG();return S.DH7(yn.upperMeme,nn)||(yn.upperMeme=nn),S.Njj(nn)}),S.bIt("stringChange",function(nn){S.eBV(fn);const yn=S.XpG();return S.Njj(yn.upperMemeChanged(nn))}),S.k0s(),S.j41(3,"nv-input",11),S.mxI("textChange",function(nn){S.eBV(fn);const yn=S.XpG();return S.DH7(yn.lowerMeme,nn)||(yn.lowerMeme=nn),S.Njj(nn)}),S.bIt("stringChange",function(nn){S.eBV(fn);const yn=S.XpG();return S.Njj(yn.lowerMemeChanged(nn))}),S.k0s()()()}if(2&En){const fn=S.XpG();S.R7$(2),S.R50("text",fn.upperMeme),S.Y8G("placeholderText",fn.upperPlaceHolder)("disabled",!1)("textMaxLength",fn.topMeme.maxLength),S.R7$(),S.R50("text",fn.lowerMeme),S.Y8G("placeholderText",fn.lowerPlaceHolder)("disabled",!1)("textMaxLength",fn.bottomMeme.maxLength)}}let J=(()=>{var En;class Cn{editStartedEvent(){return this.editStartedEvent$.asObservable()}constructor(dt,nn,yn){this.loggingService=dt,this.renderer=nn,this.memeService=yn,this.destroy$=new A.B7,this.memeData={filename:"",duration:0,videoWidth:0,videoHeight:0,contentWidth:0,contentHeight:0},this.memeStringsOnOpenUpper="",this.memeStringsOnOpenLower="",this.memeChanged=!1,this.memeOn=!1,this.memesValid=!1,this.DefaultMemeMaxLength=80,this.upperMeme="",this.lowerMeme="",this.upperPlaceHolder={text:"gallery.TopTextHere",arg:""},this.lowerPlaceHolder={text:"gallery.BottomTextHere",arg:""},this.topOffset="",this.bottomOffset="",this.maxFontSizeUI=65,this.minFontSizeUI=40,this.topOffsetDefault=0,this.bottomOffsetDefault=640,this.totalLRMargin=80,this.usableWidth=0,this.memeColor="white",this.strokeColor="black",this.topMeme=void 0,this.bottomMeme=void 0,this.editStartedEvent$=new A.B7,this.logger=this.loggingService.getLogger("Gallery/Preview-Meme")}ngOnInit(){this.logger.info("Initializing Preview-Meme Component")}ngOnDestroy(){this.logger.info("Destroying view!"),this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){this.topMeme={string:this.upperMeme,fontSize:this.maxFontSizeUI,previousWidth:0,maxLength:this.DefaultMemeMaxLength,id:this.upperString},this.bottomMeme={string:this.lowerMeme,fontSize:this.maxFontSizeUI,previousWidth:0,maxLength:this.DefaultMemeMaxLength,id:this.lowerString}}editMeme(dt,nn){this.memeOn=!this.memeOn,this.memeOn?this.setupMemeUI():(this.memeChanged||dt)&&(nn?this.memeService.queueToUpdateMeme(dt||this.memeData.filename,this.topMeme.string,this.bottomMeme.string):this.saveMeme(this.memeData.filename))}share(dt,nn){this.destination=dt,this.metaData=nn,this.memesValid?this.processMeme(nn.file.type===T.Wro.Image):this.processGIF()}displayMeme(dt){this.memeOn=!1,this.memeData=dt,this.setupMemeUI()}cancelMeme(){this.memeOn=!1,this.topMeme.string=this.upperMeme=this.memeStringsOnOpenUpper,this.bottomMeme.string=this.lowerMeme=this.memeStringsOnOpenLower,this.setMemeDataTop(),this.setMemeDataBottom(),this.checkMemeValidity()}upperMemeChanged(dt){this.logger.info("Upper Meme changed: ",dt),this.topMeme.string=this.upperMeme=dt,this.setMemeDataTop(),this.checkMemeValidity(),this.editingStarted()}lowerMemeChanged(dt){this.logger.info("Lower Meme changed: ",dt),this.bottomMeme.string=this.lowerMeme=dt,this.setMemeDataBottom(),this.checkMemeValidity(),this.editingStarted()}editingStarted(){this.memeChanged=this.topMeme.string!==this.memeStringsOnOpenUpper||this.bottomMeme.string!==this.memeStringsOnOpenLower,this.editStartedEvent$.next(this.memeChanged)}checkMemeValidity(){this.memesValid=0!==this.upperMeme.length||0!==this.lowerMeme.length}saveMeme(dt){if(""===this.topMeme.string&&""===this.bottomMeme.string)return void this.memeService.clearMemeStrings(dt);const nn={top:this.topMeme.string,bottom:this.bottomMeme.string,source:dt,color:this.memeColor};this.logger.info("Saving meme data: ",nn),this.memeService.saveMemeStrings(nn).pipe((0,L.Q)(this.destroy$)).subscribe()}processMeme(dt){let nn=this.memeData.contentWidth,yn=this.memeData.contentHeight;this.logger.info("Meme max height: ",720),nn>720&&(nn=720,yn=nn*(this.memeData.contentWidth/this.memeData.contentHeight)),this.logger.info("Meme size: "+yn+"x"+nn),this.memeService.createMeme({file:this.memeData.filename,duration:dt?1:this.memeData.duration,width:yn,height:nn,clientWidth:this.memeData.videoWidth,clientHeight:this.memeData.videoHeight,topString:this.upperMeme,topFontSize:this.topMeme.fontSize,bottomString:this.lowerMeme,bottomFontSize:this.bottomMeme.fontSize,fillColor:this.memeColor,strokeColor:this.strokeColor,destination:this.destination,metaData:this.metaData})}processGIF(){let dt=this.memeData.contentWidth,nn=this.memeData.contentHeight;this.logger.info("GIF max height: ",720),dt>720&&(dt=720,nn=dt*(this.memeData.contentWidth/this.memeData.contentHeight)),this.logger.info("Meme size: "+nn+"x"+dt),this.memeService.createGIF({file:this.memeData.filename,duration:this.memeData.duration,width:nn,height:dt,clientWidth:this.memeData.videoWidth,clientHeight:this.memeData.videoHeight,destination:this.destination,metaData:this.metaData})}setMemeDataTop(){if(this.logger.info("MemeTop: ",this.upperMeme),""===this.upperMeme)return;this.topMeme.fontSize=this.adjustFontSize(this.topMeme,!0);const dt=this.upperString.nativeElement;null!==dt&&(dt.style.fontSize=this.topMeme.fontSize+"px"),this.upperMeme=this.topMeme.string,this.logger.info("MemeTop Processed: ",this.upperMeme),this.logger.info("MemeTop Offset: ",this.topOffset)}setMemeDataBottom(){if(this.logger.info("MemeBottom: ",this.lowerMeme),""===this.lowerMeme)return;this.bottomMeme.fontSize=this.adjustFontSize(this.bottomMeme,!1);const dt=this.lowerString.nativeElement;null!==dt&&(dt.style.fontSize=this.bottomMeme.fontSize+"px",this.bottomOffset=this.bottomOffsetDefault+(this.maxFontSizeUI-this.bottomMeme.fontSize)+"px"),this.lowerMeme=this.bottomMeme.string,this.logger.info("MemeBottom Processed: ",this.lowerMeme),this.logger.info("MemeBottom Offset: ",this.bottomOffset)}adjustFontSize(dt,nn){let yn=dt.fontSize,Xn=this.getWidthOfText(dt.string,yn);const rn=yn;if(this.logger.info("length: "+Xn+" UsableWidth: "+this.usableWidth+" fontSize: "+yn+" minFontSize: "+this.minFontSizeUI),Xn>this.usableWidth&&yn===this.minFontSizeUI)return this.truncateString(dt),this.setMax(dt,nn),yn;if(dt.maxLength=this.DefaultMemeMaxLength,this.setMax(dt,nn),Xn>this.usableWidth&&yn>this.minFontSizeUI){for(;Xn>this.usableWidth&&yn>this.minFontSizeUI;)yn--,Xn=this.getWidthOfText(dt.string,yn);rn!==yn&&this.logger.info("shrink meme font from: "+rn+"px to: "+yn+"px"),Xn>this.usableWidth&&yn===this.minFontSizeUI&&(this.logger.info("Special case. Length: "+Xn+" usableWidth: "+this.usableWidth),Xn=this.truncateString(dt))}else if(Xn<dt.previousWidth&&yn<this.maxFontSizeUI){for(;Xn<this.usableWidth&&yn<this.maxFontSizeUI;)yn++,Xn=this.getWidthOfText(dt.string,yn);yn=Xn>this.usableWidth?yn-1:yn,rn!==yn&&this.logger.info("Grow meme font from: "+rn+"px to: "+yn+"px")}return dt.previousWidth=Xn,yn}setupMemeUI(){this.initViewer(),this.memeService.getMemeStrings(this.memeData.filename).pipe((0,L.Q)(this.destroy$)).subscribe(dt=>{this.memeStringsOnOpenUpper=dt.top,this.memeStringsOnOpenLower=dt.bottom,void 0!==dt.source&&dt.source===this.memeData.filename&&(""!==dt.top||""!==dt.bottom?(this.logger.info("Using previous meme strings: ",dt),this.upperMeme=this.topMeme.string=dt.top,this.lowerMeme=this.bottomMeme.string=dt.bottom,this.initViewer(),this.checkMemeValidity()):this.memeReset())})}initViewer(){this.usableWidth=this.memeData.contentWidth-this.totalLRMargin-100,this.logger.info("Video Width: "+this.memeData.contentWidth+" Height: "+this.memeData.contentHeight),this.logger.info("Usable Width: ",this.usableWidth),setTimeout(()=>{this.setMemeDataTop(),this.setMemeDataBottom(),this.setupMemeColor()})}memeReset(){this.topMeme.string=this.upperMeme="",this.bottomMeme.string=this.lowerMeme="",this.memeService.createMeme({file:"",duration:0,width:0,height:0,clientWidth:0,clientHeight:0,topString:"",topFontSize:0,bottomString:"",bottomFontSize:0,fillColor:"",strokeColor:"",destination:"",metaData:void 0})}getWidthOfText(dt,nn){const Xn=this.renderer.createElement("canvas").getContext("2d");return Xn.font=nn+"px NVIDIA",Xn.measureText(dt).width}truncateString(dt){let nn=this.getWidthOfText(dt.string,this.minFontSizeUI);for(;nn>this.usableWidth;)dt.string=dt.string.substring(0,dt.string.length-1),nn=this.getWidthOfText(dt.string,this.minFontSizeUI),this.logger.info("Trunc meme chars: "+dt.string.length+" width: "+nn+" String: "+dt.string);return dt.maxLength=dt.string.length,nn}setMax(dt,nn){nn?this.memeService.setUpperMemeMaxed(dt.maxLength):this.memeService.setLowerMemeMaxed(dt.maxLength)}setupMemeColor(){if(void 0===this.upperSpan||void 0===this.lowerSpan)return;const dt=this.memeColor,nn=[];nn[0]=this.upperSpan.nativeElement,nn[1]=this.lowerSpan.nativeElement,nn.forEach(function(yn){null!==yn&&("white"===dt?(yn.style.textShadow="-3px -3px 0 black, 3px -3px 0 black, -3px 3px 0 black, 3px 3px 0 black",yn.style.color="white"):(yn.style.textShadow="-3px -3px 0 white, 3px -3px 0 white, -3px 3px 0 white, 3px 3px 0 white",yn.style.color="black"))})}}return(En=Cn).\u0275fac=function(dt){return new(dt||En)(S.rXU(c.J6),S.rXU(S.sFG),S.rXU(T.iuc))},En.\u0275cmp=S.VBU({type:En,selectors:[["nv-preview-meme"]],viewQuery:function(dt,nn){if(1&dt&&(S.GBs(F,5),S.GBs(I,5),S.GBs(k,5),S.GBs(R,5)),2&dt){let yn;S.mGM(yn=S.lsd())&&(nn.upperString=yn.first),S.mGM(yn=S.lsd())&&(nn.lowerString=yn.first),S.mGM(yn=S.lsd())&&(nn.upperSpan=yn.first),S.mGM(yn=S.lsd())&&(nn.lowerSpan=yn.first)}},decls:2,vars:2,consts:[["memeTopString",""],["memeTopSpan",""],["memeBottomString",""],["memeBottomSpan",""],["class","video-overlay-button","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["class","video-overlay-button","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center",1,"video-overlay-button"],[1,"meme-text","meme-top",3,"ngStyle"],[1,"meme-text","meme-bottom",3,"ngStyle"],["fxLayoutAlign","center center",1,"video-overlay-button"],["fxLayout","column",1,"meme-overlay"],[3,"textChange","stringChange","text","placeholderText","disabled","textMaxLength"]],template:function(dt,nn){1&dt&&S.DNE(0,Y,11,8,"div",4)(1,K,4,8,"div",5),2&dt&&(S.Y8G("ngIf",nn.memeOn||nn.memesValid),S.R7$(),S.Y8G("ngIf",nn.memeOn))},dependencies:[n.bT,n.B3,x.DJ,x.sA,V.eI,r.I,D.Q],styles:[".video-overlay-button[_ngcontent-%COMP%]{position:absolute;inset:24px 24px 4px;opacity:.95}.meme-overlay[_ngcontent-%COMP%]{position:absolute;width:800px;z-index:9999}.meme-text[_ngcontent-%COMP%], .meme-text[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:pre;overflow:hidden;text-align:center}.meme-top[_ngcontent-%COMP%]{top:0;position:absolute}.meme-bottom[_ngcontent-%COMP%]{top:640px;position:absolute}"]}),Cn})();var z=d(70410),te=d(40262),X=d(43848),re=d(72147),ge=d(91384),oe=d(8619),xe=d(65706),ue=d(47973),N=d(29370),se=d(44186),ce=d(6364),Z=d(11013);let de=(()=>{var En;class Cn{get disabled(){return this.tooltip.disabled}set disabled(dt){this.tooltip.disabled=(0,ce.he)(dt)||this.shouldDisableTooltip}constructor(dt,nn){this.tooltip=nn,this.shouldDisableTooltip=!1,this.shouldDisableTooltip=!!dt?.mobileMode||!!dt?.tvMode}ngOnInit(){this.shouldDisableTooltip&&(this.tooltip.disabled=!0)}}return(En=Cn).\u0275fac=function(dt){return new(dt||En)(S.rXU(Z.X,8),S.rXU(se.oV))},En.\u0275dir=S.FsC({type:En,selectors:[["","matTooltip","","nvTooltipDisabled",""],["","matTooltip","","nvDisableTooltipIfNeeded","",3,"matTooltipDisabled",""]],inputs:{disabled:[S.Mj6.None,"nvTooltipDisabled","disabled"]}}),Cn})();var ae=d(65240);const pe=["activecolor"],_e=["defaultcolor"],ke=(En,Cn)=>({"default-color-rtxhdr":En,"default-color-nativehdr":Cn}),De=(En,Cn)=>({active_color:En,default_color:Cn}),Me=(En,Cn)=>({value:En,params:Cn}),je=En=>({navButton_margin:En});function $e(En,Cn){if(1&En){const fn=S.RV6();S.j41(0,"button",11),S.nI1(1,"translate"),S.bIt("click",function(){S.eBV(fn);const nn=S.XpG().$implicit,yn=S.XpG();return S.Njj(yn.iconClicked(nn))}),S.nrm(2,"mat-icon",6),S.k0s()}if(2&En){const fn=S.XpG().$implicit,dt=S.XpG();S.AVh("icon-details",!dt.tvMode),S.Y8G("@icon",void 0)("nvTooltipDisabled",!fn.tooltip)("matTooltip",S.bMT(1,6,fn.tooltip)),S.R7$(2),S.Y8G("svgIcon",fn.icon)}}function Oe(En,Cn){if(1&En&&(S.qex(0),S.DNE(1,$e,3,8,"button",10),S.bVm()),2&En){const fn=Cn.$implicit;S.R7$(),S.Y8G("ngIf",fn.icon)}}function gt(En,Cn){1&En&&(S.j41(0,"div",16)(1,"mat-icon",17),S.EFF(2,"info"),S.k0s(),S.j41(3,"span",18),S.EFF(4),S.nI1(5,"translate"),S.k0s()()),2&En&&(S.R7$(4),S.JRh(S.bMT(5,1,"nvcamera.SupportedGameWarning")))}function qt(En,Cn){if(1&En&&(S.j41(0,"div",19)(1,"span",18),S.EFF(2),S.nI1(3,"translate"),S.k0s()()),2&En){const fn=S.XpG(2);S.R7$(2),S.Lme("",S.bMT(3,2,"nvcamera.CurrentlyPlaying")," ",fn.gameName,"")}}function ye(En,Cn){if(1&En){const fn=S.RV6();S.qex(0),S.j41(1,"button",24),S.bIt("click",function(){S.eBV(fn);const nn=S.XpG(3);return S.Njj(nn.onNvCameraToggleAction())}),S.j41(2,"span",25),S.EFF(3),S.nI1(4,"translate"),S.k0s()(),S.bVm()}2&En&&(S.R7$(3),S.JRh(S.bMT(4,1,"nvcamera.GameFiltersDisabledCTA")))}function Re(En,Cn){if(1&En&&(S.j41(0,"div",20)(1,"div",21)(2,"mat-icon",17),S.EFF(3,"info"),S.k0s(),S.j41(4,"span",22),S.EFF(5),S.nI1(6,"translate"),S.k0s()(),S.DNE(7,ye,5,3,"ng-container",23),S.k0s()),2&En){const fn=S.XpG(2);S.R7$(5),S.JRh(S.bMT(6,2,fn.nvCameraToggleCTAText)),S.R7$(2),S.Y8G("ngIf",fn.showNvCameraToggleCTAButton)}}function Ze(En,Cn){if(1&En&&(S.j41(0,"div",12),S.DNE(1,gt,6,3,"div",13)(2,qt,4,4,"div",14)(3,Re,8,4,"div",15),S.k0s()),2&En){const fn=S.XpG();S.Y8G("ngClass",S.l_i(4,ke,fn.rtxHdrMode,fn.nativeHdrMode)),S.R7$(),S.Y8G("ngIf",fn.showSupportedGameRequired),S.R7$(),S.Y8G("ngIf",fn.showGameName),S.R7$(),S.Y8G("ngIf",fn.showNvCameraToggleCTA)}}let et=(()=>{var En;class Cn{constructor(dt,nn,yn,Xn,rn,ai,ri,Ne){this.appBarService=nn,this.localeService=yn,this.featureSupportService=Xn,this.ppeService=rn,this.nvCameraService=ai,this.oscDisplayService=ri,this.igoConfig=Ne,this.destroy$=new A.B7,this.tvMode=!1,this.icons=[{},{},{},{},{}],this.title="",this.titleParams={},this.navButton="",this.showNavButton=!1,this.activeColor="",this.defaultColor="",this.navButtonMarginValue="",this.isAppStartedReceived=!1,this.gameName="",this.isPPEEnabled=!1,this.isPpeSupportedGame=!1,this.isPpeFiltersVisible=!1,this.isNvCameraReady=!1,this.isFreestyleSupportedGame=!1,this.showGameName=!1,this.showSupportedGameRequired=!1,this.showNvCameraToggleCTA=!1,this.nvCameraToggleCTAText="",this.showNvCameraToggleCTAButton=!1,this.isGameRestartRequestedFromCTA=!1,this.showGameFilterPhotoModeSection=!1,this.rtxHdrMode=!1,this.nativeHdrMode=!1,this.tvMode=this.featureSupportService.isTVMode(),this.marginValue=this.tvMode?"38px":"8px",this.logger=dt.getLogger("NvAppBarComponent")}setupListeners(){this.appBarService.icons$.pipe((0,L.Q)(this.destroy$)).subscribe(dt=>{let nn=4;for(dt.forEach(yn=>{nn>=0&&(this.icons[nn--]=yn)});nn>=0;)this.icons[nn--]={}}),this.igoConfig.GFNCefClient||this.oscDisplayService.getRtxHdrStatus$().pipe((0,L.Q)(this.destroy$)).subscribe(dt=>{this.rtxHdrMode=!this.oscDisplayService.getCurrentDesktopModeImmediate()&&dt,this.rtxHdrMode&&(this.nativeHdrMode=!1)}),this.appBarService.title$.pipe((0,L.Q)(this.destroy$)).subscribe(dt=>{this.title=dt.title,this.titleParams=dt.params}),this.appBarService.title$.pipe((0,L.Q)(this.destroy$),(0,re.n)(dt=>(this.title=dt.title,this.titleParams=dt.params,this.title===T.sT2||this.title===T.jyV?this.nvCameraService.getGlobalToggle():(0,X.of)(void 0))),(0,ge.M)(dt=>{if(this.nvcameraToggle=dt,void 0!==this.nvcameraToggle){if(this.isAppStartedReceived=this.ppeService.isAppStartedReceived,this.isAppStartedReceived){const nn=this.nvCameraService.getCurrentGameChromaInfo();nn&&nn.title?this.gameName=nn.title:this.ppeService.currentGameInfo&&(this.gameName=this.ppeService.currentGameInfo.drsProfileName)}this.isPPEEnabled=this.featureSupportService.isPpeEnabled(),this.isPpeSupportedGame=this.ppeService.isPpeSupportedGame,this.isPpeFiltersVisible=this.ppeService.isPpeFiltersVisible,this.isNvCameraReady=this.nvCameraService.isNvCameraReady,this.isFreestyleSupportedGame=this.nvCameraService.isFreestyleSupportedGame(),this.isGameRestartRequestedFromCTA=this.nvCameraService.getIsGameRestartRequestedfromCTA(),this.title===T.sT2?(this.showSupportedGameRequired=!this.isAppStartedReceived||!this.isFreestyleSupportedGame&&!this.isPpeFiltersVisible,this.showGameName=!this.showSupportedGameRequired&&this.nvcameraToggle&&!this.isGameRestartRequestedFromCTA,this.nvCameraToggleCTAText=this.isGameRestartRequestedFromCTA?"nvcamera.GameFIltersEnabledOnFly":"nvcamera.TurnOnGameFilters"):(this.showGameName=!1,this.showSupportedGameRequired=!this.isAppStartedReceived||!this.isFreestyleSupportedGame&&!this.isNvCameraReady,this.nvCameraToggleCTAText=this.isGameRestartRequestedFromCTA?"nvcamera.PhotoModeEnabledOnFly":"nvcamera.TurnOnPhotoMode",this.showGameFilterPhotoModeSection=this.isPPEEnabled&&this.showSupportedGameRequired),this.showNvCameraToggleCTA=!this.showSupportedGameRequired&&(!this.nvcameraToggle||this.isGameRestartRequestedFromCTA),this.showNvCameraToggleCTA&&(this.showNvCameraToggleCTAButton=!this.isGameRestartRequestedFromCTA),this.showGameFilterPhotoModeSection=this.title===T.sT2?this.isPPEEnabled:this.isPPEEnabled&&(this.showSupportedGameRequired||this.showNvCameraToggleCTA)}else this.showGameFilterPhotoModeSection=!1,this.showGameName=!1,this.showSupportedGameRequired=!1,this.showNvCameraToggleCTA=!1})).subscribe(),this.appBarService.navButton$.pipe((0,L.Q)(this.destroy$)).subscribe(dt=>{this.navButton=dt,this.showNavButton=""!==this.navButton}),this.appBarService.active$.pipe((0,L.Q)(this.destroy$)).subscribe(dt=>{this.active=dt})}ngOnInit(){this.igoConfig.GFNCefClient||this.oscDisplayService.isDisplayStateCheckComplete().pipe((0,oe.p)(Boolean),(0,xe.s)(1)).subscribe(()=>{this.rtxHdrMode=this.oscDisplayService.getRtxHdrEnable(),this.nativeHdrMode=!this.rtxHdrMode&&this.oscDisplayService.getNativeHdrEnable()})}ngAfterViewInit(){setTimeout(()=>{this.activeColor=getComputedStyle(this.activeElement.nativeElement).backgroundColor,this.defaultColor=getComputedStyle(this.defaultElement.nativeElement).backgroundColor,this.navButtonMarginValue=this.localeService.isRTLLayoutEnabled?`0 0 0 ${this.marginValue}`:`0 ${this.marginValue} 0 0`,this.setupListeners()},0)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}backClicked(){this.appBarService.clickBack()}iconClicked(dt){this.appBarService.clickIcon(dt.id)}iconTrack(dt,nn){return dt}onNvCameraToggleAction(){this.logger.info("onNvCameraToggleAction"),this.nvCameraService.setGlobalToggle(!0).subscribe(),this.showNvCameraToggleCTAButton=!1,this.nvCameraToggleCTAText=this.title===T.sT2?"nvcamera.GameFIltersEnabledOnFly":"nvcamera.PhotoModeEnabledOnFly",this.nvCameraService.setIsGameRestartRequestedfromCTA(!0)}}return(En=Cn).\u0275fac=function(dt){return new(dt||En)(S.rXU(c.J6),S.rXU(T.gZv),S.rXU(c.iH),S.rXU(T.Rvq),S.rXU(T.Vlf),S.rXU(T.h8x),S.rXU(T.Bqk),S.rXU(T.k$F))},En.\u0275cmp=S.VBU({type:En,selectors:[["nv-app-bar"]],viewQuery:function(dt,nn){if(1&dt&&(S.GBs(pe,7),S.GBs(_e,7)),2&dt){let yn;S.mGM(yn=S.lsd())&&(nn.activeElement=yn.first),S.mGM(yn=S.lsd())&&(nn.defaultElement=yn.first)}},decls:12,vars:36,consts:[["activecolor",""],["defaultcolor",""],[1,"dummy-color-getter"],[1,"default-color",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"appbar","default-color","mat-elevation-z4",3,"ngClass"],["mat-button","","fxLayout","row","fxLayoutAlign","center center",1,"item-empty","nv-item-icon","font-body1","complex-button",3,"click","tabIndex"],[1,"flip-rtl-element",3,"svgIcon"],["fxFlex","",1,"title"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","appbar default-color mat-elevation-z4 ppe-extra-tab",3,"ngClass",4,"ngIf"],["mat-button","","matTooltipClass","nv-igo igo-tooltip","class","app-bar-icons font-body1 nv-item-icon complex-button","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",3,"nvTooltipDisabled","matTooltip","icon-details","click",4,"ngIf"],["mat-button","","matTooltipClass","nv-igo igo-tooltip","fxLayout","row","fxLayoutAlign","center center","fxFlex","none",1,"app-bar-icons","font-body1","nv-item-icon","complex-button",3,"click","nvTooltipDisabled","matTooltip"],[1,"appbar","default-color","mat-elevation-z4","ppe-extra-tab",3,"ngClass"],["class","font-sub3","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","gamename",4,"ngIf"],["class","font-sub3","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"font-sub3"],["mat-font-set","material-icons",1,"nv-custom-icons","icon-alert-circle_reg","icon-padding-right"],[1,"font-body2"],[1,"gamename"],["fxLayout","row","fxLayoutAlign","space-between center",1,"font-sub3"],["fxLayout","row","fxLayoutAlign","start center"],[1,"font-body2","cta-text"],[4,"ngIf"],["mat-button","",3,"click"],[1,"font-body1"]],template:function(dt,nn){if(1&dt){const yn=S.RV6();S.nrm(0,"div",2,0)(2,"div",3,1),S.j41(4,"div",4)(5,"button",5),S.bIt("click",function(){return S.eBV(yn),S.Njj(nn.backClicked())}),S.nrm(6,"mat-icon",6),S.k0s(),S.j41(7,"div",7),S.EFF(8),S.nI1(9,"translate"),S.k0s(),S.DNE(10,Oe,2,1,"ng-container",8),S.k0s(),S.DNE(11,Ze,4,7,"div",9)}2&dt&&(S.R7$(2),S.Y8G("ngClass",S.l_i(19,ke,nn.rtxHdrMode,nn.nativeHdrMode)),S.R7$(2),S.AVh("active",nn.active),S.Y8G("@active",S.l_i(25,Me,nn.active,S.l_i(22,De,nn.activeColor,nn.defaultColor)))("ngClass",S.l_i(28,ke,nn.rtxHdrMode,nn.nativeHdrMode)),S.R7$(),S.AVh("icon-details",!nn.tvMode),S.Y8G("@navButton",S.l_i(33,Me,nn.showNavButton,S.eq3(31,je,nn.navButtonMarginValue)))("tabIndex",nn.showNavButton?"0":"-1"),S.R7$(),S.Y8G("svgIcon",nn.navButton),S.R7$(),S.AVh("text-padding",!nn.tvMode&&nn.showNavButton),S.R7$(),S.JRh(S.i5U(9,16,nn.title,nn.titleParams)),S.R7$(2),S.Y8G("ngForOf",nn.icons)("ngForTrackBy",nn.iconTrack),S.R7$(),S.Y8G("ngIf",nn.showGameFilterPhotoModeSection))},dependencies:[n.YU,n.Sq,n.bT,x.DJ,x.sA,x.UI,V.PW,ue.iV,N.An,se.oV,de,ae.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.background-image-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[disabled][_nghost-%COMP%] .nv-item[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default}.nv-item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.nv-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3;width:24px;height:24px;font-size:24px}.nv-item-row[_ngcontent-%COMP%]{padding:0 24px}.nv-item-labels[_ngcontent-%COMP%]{padding:8px 0;height:100%}.nv-label[_ngcontent-%COMP%]{padding:8px 0}.default-cursor[_ngcontent-%COMP%]{cursor:default}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.tv-view[_nghost-%COMP%] .nv-item-icon, .tv-view [_nghost-%COMP%] .nv-item-icon{width:40px;height:40px}.tv-view[_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon mat-icon, .tv-view[_nghost-%COMP%] .nv-item-icon .mat-icon, .tv-view [_nghost-%COMP%] .nv-item-icon .mat-icon{font-size:32px;height:32px;width:32px}.appbar[_ngcontent-%COMP%]{padding:8px 16px;transition:background-color .15s linear;height:56px}.appbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:NVIDIA,sans-serif;color:#ffffffe6;font-style:normal;text-transform:none;font-size:20px;line-height:28px;letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .appbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:40px;line-height:56px}.isLtr[_nghost-%COMP%] .text-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .text-padding[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .text-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .text-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .text-padding[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .text-padding[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.game-name-height[_ngcontent-%COMP%]{height:36px}.dummy-color-getter[_ngcontent-%COMP%]{background:#76b900}.default-color[_ngcontent-%COMP%]{background:#393939}.default-color-rtxhdr[_ngcontent-%COMP%]{background:#272727}.default-color-nativehdr[_ngcontent-%COMP%]{background:#595959}.item-empty[_ngcontent-%COMP%]{width:0;max-width:24px}.isLtr[_nghost-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.icon-details[_ngcontent-%COMP%]{height:24px;width:24px}.appbar.active[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff}.isLtr[_nghost-%COMP%] .icon-padding-right[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-padding-right[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-padding-right[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl[_nghost-%COMP%] .icon-padding-right[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-padding-right[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-padding-right[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.ppe-extra-tab[_ngcontent-%COMP%]{border-top:1px solid;border-color:#000;height:-moz-fit-content;height:fit-content}.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%]{padding:30px 32px;height:90px}.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.isLtr.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-right:0}html[dir=ltr] .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-right:0}.isRtl.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-left:0}html[dir=rtl] .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy4: 0;margin-left:0}.isLtr.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl] .tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .app-bar-icons[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.tv-view[_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .item-empty[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .appbar[_ngcontent-%COMP%] .item-empty[_ngcontent-%COMP%]{width:0;max-width:40px}.gamename[_ngcontent-%COMP%]{display:flex;justify-content:space-between;text-align:center;height:36px;align-items:center}.default-color-game[_ngcontent-%COMP%]{background:#636363}.cta-text[_ngcontent-%COMP%]{text-align:start;overflow-wrap:break-word}"],data:{animation:[(0,te.hZ)("navButton",[(0,te.wk)("true",(0,te.iF)({"flex-basis":"36px",margin:"{{ navButton_margin }}",opacity:1}),{params:{navButton_margin:"0 8px 0 0"}}),(0,te.wk)("false",(0,te.iF)({"flex-basis":"0",margin:"0 0 0 0",opacity:0})),(0,te.kY)("true <=> false",(0,te.i0)(150))]),(0,te.hZ)("icon",[(0,te.kY)(":enter",[(0,te.iF)({opacity:0}),(0,te.i0)(150,(0,te.iF)({opacity:1}))]),(0,te.kY)(":leave",[(0,te.i0)(150,(0,te.iF)({opacity:0}))])]),(0,te.hZ)("active",[(0,te.wk)("true",(0,te.iF)({"background-color":"{{active_color}}"}),{params:{active_color:"transparent"}}),(0,te.wk)("false",(0,te.iF)({"background-color":"{{default_color}}"}),{params:{default_color:"transparent"}}),(0,te.kY)("true <=> false",[(0,te.Os)([(0,te.P)("@*",[(0,te.MA)()]),(0,te.i0)(150)])])])]}}),Cn})();var xt=d(2218),un=d(31308),ct=d(37278),Gt=d(80362),pn=d(51394),st=d(99204),mn=d(5428);let Bn=(()=>{var En;class Cn{}return(En=Cn).\u0275fac=function(dt){return new(dt||En)},En.\u0275mod=S.$C({type:En}),En.\u0275inj=S.G2t({imports:[n.MD,l.iI,p.YF,m.i,c._N,_.bm,(0,c.BU)()]}),Cn})();S.wjB(P.k,function(){return[n.YU,l.n3,x.DJ,x.G2,x.UI,V.PW,xt.R,et]},[]),S.wjB(O.X,function(){return[n.Sq,n.bT,x.DJ,x.sA,x.UI,N.An,un.vR,ae.Mm,v.j,r.I]},function(){return[ae.D9]}),S.wjB(h.O,function(){return[n.Sq,n.bT,n.T3,x.DJ,x.BO,x.UI,ct.E$,ct.d6,Gt.i4,g.m]},function(){return[ae.D9]}),S.wjB(a.e,function(){return[n.YU,n.bT,x.DJ,x.sA,x.G2,x.UI,V.PW,N.An,se.oV,v.j,r.I]},function(){return[ae.D9]}),S.wjB(z.M,function(){return[n.YU,n.bT,n.B3,x.DJ,x.BO,x.sA,x.G2,x.UI,V.PW,V.eI,ue.iV,pn.ig,st.LG,N.An,un.kB,mn.t,v.j,i,r.I,J]},function(){return[ae.D9]})},29326:(Ue,W,d)=>{"use strict";d.d(W,{l:()=>n});const n={supportedLang:["bg_BG","cs_CZ","da_DK","de_DE","el_GR","en_GB","en_US","es_ES","es_MX","fi_FI","fr_FR","hr_HR","hu_HU","it_IT","ja_JP","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ro_RO","ru_RU","sk_SK","sl_SI","sv_SE","th_TH","tr_TR","uk_UA","zh_CN","zh_TW"]}},7539:(Ue,W,d)=>{"use strict";var n=d(74150),l=d(58527),p=d(40262);function v(Bt){return new l.wOt(3e3,!1)}function Z(Bt){switch(Bt.length){case 0:return new p.sf;case 1:return Bt[0];default:return new p.ui(Bt)}}function de(Bt,Te,ze=new Map,Ie=new Map){const ht=[],Kt=[];let Fn=-1,ii=null;if(Te.forEach(Fi=>{const Hi=Fi.get("offset"),Er=Hi==Fn,Vr=Er&&ii||new Map;Fi.forEach((Oo,uo)=>{let io=uo,Do=Oo;if("offset"!==uo)switch(io=Bt.normalizePropertyName(io,ht),Do){case p.FX:Do=ze.get(uo);break;case p.kp:Do=Ie.get(uo);break;default:Do=Bt.normalizeStyleValue(uo,io,Do,ht)}Vr.set(io,Do)}),Er||Kt.push(Vr),ii=Vr,Fn=Hi}),ht.length)throw function ee(Bt){return new l.wOt(3502,!1)}();return Kt}function ae(Bt,Te,ze,Ie){switch(Te){case"start":Bt.onStart(()=>Ie(ze&&pe(ze,"start",Bt)));break;case"done":Bt.onDone(()=>Ie(ze&&pe(ze,"done",Bt)));break;case"destroy":Bt.onDestroy(()=>Ie(ze&&pe(ze,"destroy",Bt)))}}function pe(Bt,Te,ze){const Kt=_e(Bt.element,Bt.triggerName,Bt.fromState,Bt.toState,Te||Bt.phaseName,ze.totalTime??Bt.totalTime,!!ze.disabled),Fn=Bt._data;return null!=Fn&&(Kt._data=Fn),Kt}function _e(Bt,Te,ze,Ie,ht="",Kt=0,Fn){return{element:Bt,triggerName:Te,fromState:ze,toState:Ie,phaseName:ht,totalTime:Kt,disabled:!!Fn}}function ke(Bt,Te,ze){let Ie=Bt.get(Te);return Ie||Bt.set(Te,Ie=ze),Ie}function De(Bt){const Te=Bt.indexOf(":");return[Bt.substring(1,Te),Bt.slice(Te+1)]}const Me=typeof document>"u"?null:document.documentElement;function je(Bt){const Te=Bt.parentNode||Bt.host||null;return Te===Me?null:Te}let Oe=null,gt=!1;function Ze(Bt,Te){for(;Te;){if(Te===Bt)return!0;Te=je(Te)}return!1}function et(Bt,Te,ze){if(ze)return Array.from(Bt.querySelectorAll(Te));const Ie=Bt.querySelector(Te);return Ie?[Ie]:[]}let un=(()=>{var Bt;class Te{validateStyleProperty(Ie){return function qt(Bt){Oe||(Oe=function Re(){return typeof document<"u"?document.body:null}()||{},gt=!!Oe.style&&"WebkitAppearance"in Oe.style);let Te=!0;return Oe.style&&!function $e(Bt){return"ebkit"==Bt.substring(1,6)}(Bt)&&(Te=Bt in Oe.style,!Te&>&&(Te="Webkit"+Bt.charAt(0).toUpperCase()+Bt.slice(1)in Oe.style)),Te}(Ie)}matchesElement(Ie,ht){return!1}containsElement(Ie,ht){return Ze(Ie,ht)}getParentElement(Ie){return je(Ie)}query(Ie,ht,Kt){return et(Ie,ht,Kt)}computeStyle(Ie,ht,Kt){return Kt||""}animate(Ie,ht,Kt,Fn,ii,Fi=[],Hi){return new p.sf(Kt,Fn)}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275prov=l.jDH({token:Bt,factory:Bt.\u0275fac}),Te})();class ct{}ct.NOOP=new un;class Gt{}const st=1e3,En="ng-enter",Cn="ng-leave",fn="ng-trigger",dt=".ng-trigger",nn="ng-animating",yn=".ng-animating";function Xn(Bt){if("number"==typeof Bt)return Bt;const Te=Bt.match(/^(-?[\.\d]+)(m?s)/);return!Te||Te.length<2?0:rn(parseFloat(Te[1]),Te[2])}function rn(Bt,Te){return"s"===Te?Bt*st:Bt}function ai(Bt,Te,ze){return Bt.hasOwnProperty("duration")?Bt:function ri(Bt,Te,ze){let ht,Kt=0,Fn="";if("string"==typeof Bt){const ii=Bt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ii)return Te.push(v()),{duration:0,delay:0,easing:""};ht=rn(parseFloat(ii[1]),ii[2]);const Fi=ii[3];null!=Fi&&(Kt=rn(parseFloat(Fi),ii[4]));const Hi=ii[5];Hi&&(Fn=Hi)}else ht=Bt;if(!ze){let ii=!1,Fi=Te.length;ht<0&&(Te.push(function O(){return new l.wOt(3100,!1)}()),ii=!0),Kt<0&&(Te.push(function S(){return new l.wOt(3101,!1)}()),ii=!0),ii&&Te.splice(Fi,0,v())}return{duration:ht,delay:Kt,easing:Fn}}(Bt,Te,ze)}function vt(Bt,Te,ze){Te.forEach((Ie,ht)=>{const Kt=mt(ht);ze&&!ze.has(ht)&&ze.set(ht,Bt.style[Kt]),Bt.style[Kt]=Ie})}function Ct(Bt,Te){Te.forEach((ze,Ie)=>{const ht=mt(Ie);Bt.style[ht]=""})}function it(Bt){return Array.isArray(Bt)?1==Bt.length?Bt[0]:(0,p.K2)(Bt):Bt}const jn=new RegExp("{{\\s*(.+?)\\s*}}","g");function wn(Bt){let Te=[];if("string"==typeof Bt){let ze;for(;ze=jn.exec(Bt);)Te.push(ze[1]);jn.lastIndex=0}return Te}function nt(Bt,Te,ze){const Ie=`${Bt}`,ht=Ie.replace(jn,(Kt,Fn)=>{let ii=Te[Fn];return null==ii&&(ze.push(function r(Bt){return new l.wOt(3003,!1)}()),ii=""),ii.toString()});return ht==Ie?Bt:ht}const on=/-+([a-z0-9])/g;function mt(Bt){return Bt.replace(on,(...Te)=>Te[1].toUpperCase())}function Oi(Bt,Te,ze){switch(Te.type){case p.If.Trigger:return Bt.visitTrigger(Te,ze);case p.If.State:return Bt.visitState(Te,ze);case p.If.Transition:return Bt.visitTransition(Te,ze);case p.If.Sequence:return Bt.visitSequence(Te,ze);case p.If.Group:return Bt.visitGroup(Te,ze);case p.If.Animate:return Bt.visitAnimate(Te,ze);case p.If.Keyframes:return Bt.visitKeyframes(Te,ze);case p.If.Style:return Bt.visitStyle(Te,ze);case p.If.Reference:return Bt.visitReference(Te,ze);case p.If.AnimateChild:return Bt.visitAnimateChild(Te,ze);case p.If.AnimateRef:return Bt.visitAnimateRef(Te,ze);case p.If.Query:return Bt.visitQuery(Te,ze);case p.If.Stagger:return Bt.visitStagger(Te,ze);default:throw function i(Bt){return new l.wOt(3004,!1)}()}}function At(Bt,Te){return window.getComputedStyle(Bt)[Te]}const Hn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class pi extends Gt{normalizePropertyName(Te,ze){return mt(Te)}normalizeStyleValue(Te,ze,Ie,ht){let Kt="";const Fn=Ie.toString().trim();if(Hn.has(ze)&&0!==Ie&&"0"!==Ie)if("number"==typeof Ie)Kt="px";else{const ii=Ie.match(/^[+-]?[\d\.]+([a-z]*)$/);ii&&0==ii[1].length&&ht.push(function a(Bt,Te){return new l.wOt(3005,!1)}())}return Fn+Kt}}const vi="*";const zn=new Set(["true","1"]),Ti=new Set(["false","0"]);function Xt(Bt,Te){const ze=zn.has(Bt)||Ti.has(Bt),Ie=zn.has(Te)||Ti.has(Te);return(ht,Kt)=>{let Fn=Bt==vi||Bt==ht,ii=Te==vi||Te==Kt;return!Fn&&ze&&"boolean"==typeof ht&&(Fn=ht?zn.has(Bt):Ti.has(Bt)),!ii&&Ie&&"boolean"==typeof Kt&&(ii=Kt?zn.has(Te):Ti.has(Te)),Fn&&ii}}const mi=new RegExp("s*:selfs*,?","g");function $n(Bt,Te,ze,Ie){return new Ii(Bt).build(Te,ze,Ie)}class Ii{constructor(Te){this._driver=Te}build(Te,ze,Ie){const ht=new ki(ze);return this._resetContextStyleTimingState(ht),Oi(this,it(Te),ht)}_resetContextStyleTimingState(Te){Te.currentQuerySelector="",Te.collectedStyles=new Map,Te.collectedStyles.set("",new Map),Te.currentTime=0}visitTrigger(Te,ze){let Ie=ze.queryCount=0,ht=ze.depCount=0;const Kt=[],Fn=[];return"@"==Te.name.charAt(0)&&ze.errors.push(function h(){return new l.wOt(3006,!1)}()),Te.definitions.forEach(ii=>{if(this._resetContextStyleTimingState(ze),ii.type==p.If.State){const Fi=ii,Hi=Fi.name;Hi.toString().split(/\s*,\s*/).forEach(Er=>{Fi.name=Er,Kt.push(this.visitState(Fi,ze))}),Fi.name=Hi}else if(ii.type==p.If.Transition){const Fi=this.visitTransition(ii,ze);Ie+=Fi.queryCount,ht+=Fi.depCount,Fn.push(Fi)}else ze.errors.push(function g(){return new l.wOt(3007,!1)}())}),{type:p.If.Trigger,name:Te.name,states:Kt,transitions:Fn,queryCount:Ie,depCount:ht,options:null}}visitState(Te,ze){const Ie=this.visitStyle(Te.styles,ze),ht=Te.options&&Te.options.params||null;if(Ie.containsDynamicStyles){const Kt=new Set,Fn=ht||{};Ie.styles.forEach(ii=>{ii instanceof Map&&ii.forEach(Fi=>{wn(Fi).forEach(Hi=>{Fn.hasOwnProperty(Hi)||Kt.add(Hi)})})}),Kt.size&&ze.errors.push(function c(Bt,Te){return new l.wOt(3008,!1)}(0,Kt.values()))}return{type:p.If.State,name:Te.name,style:Ie,options:ht?{params:ht}:null}}visitTransition(Te,ze){ze.queryCount=0,ze.depCount=0;const Ie=Oi(this,it(Te.animation),ze),ht=function Zt(Bt,Te){const ze=[];return"string"==typeof Bt?Bt.split(/\s*,\s*/).forEach(Ie=>function Zn(Bt,Te,ze){if(":"==Bt[0]){const Fi=function Dn(Bt,Te){switch(Bt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(ze,Ie)=>parseFloat(Ie)>parseFloat(ze);case":decrement":return(ze,Ie)=>parseFloat(Ie)<parseFloat(ze);default:return Te.push(function G(Bt){return new l.wOt(3016,!1)}()),"* => *"}}(Bt,ze);if("function"==typeof Fi)return void Te.push(Fi);Bt=Fi}const Ie=Bt.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Ie||Ie.length<4)return ze.push(function R(Bt){return new l.wOt(3015,!1)}()),Te;const ht=Ie[1],Kt=Ie[2],Fn=Ie[3];Te.push(Xt(ht,Fn)),"<"==Kt[0]&&(ht!=vi||Fn!=vi)&&Te.push(Xt(Fn,ht))}(Ie,ze,Te)):ze.push(Bt),ze}(Te.expr,ze.errors);return{type:p.If.Transition,matchers:ht,animation:Ie,queryCount:ze.queryCount,depCount:ze.depCount,options:qn(Te.options)}}visitSequence(Te,ze){return{type:p.If.Sequence,steps:Te.steps.map(Ie=>Oi(this,Ie,ze)),options:qn(Te.options)}}visitGroup(Te,ze){const Ie=ze.currentTime;let ht=0;const Kt=Te.steps.map(Fn=>{ze.currentTime=Ie;const ii=Oi(this,Fn,ze);return ht=Math.max(ht,ze.currentTime),ii});return ze.currentTime=ht,{type:p.If.Group,steps:Kt,options:qn(Te.options)}}visitAnimate(Te,ze){const Ie=function xo(Bt,Te){if(Bt.hasOwnProperty("duration"))return Bt;if("number"==typeof Bt)return Sr(ai(Bt,Te).duration,0,"");const ze=Bt;if(ze.split(/\s+/).some(Kt=>"{"==Kt.charAt(0)&&"{"==Kt.charAt(1))){const Kt=Sr(0,0,"");return Kt.dynamic=!0,Kt.strValue=ze,Kt}const ht=ai(ze,Te);return Sr(ht.duration,ht.delay,ht.easing)}(Te.timings,ze.errors);ze.currentAnimateTimings=Ie;let ht,Kt=Te.styles?Te.styles:(0,p.iF)({});if(Kt.type==p.If.Keyframes)ht=this.visitKeyframes(Kt,ze);else{let Fn=Te.styles,ii=!1;if(!Fn){ii=!0;const Hi={};Ie.easing&&(Hi.easing=Ie.easing),Fn=(0,p.iF)(Hi)}ze.currentTime+=Ie.duration+Ie.delay;const Fi=this.visitStyle(Fn,ze);Fi.isEmptyStep=ii,ht=Fi}return ze.currentAnimateTimings=null,{type:p.If.Animate,timings:Ie,style:ht,options:null}}visitStyle(Te,ze){const Ie=this._makeStyleAst(Te,ze);return this._validateStyleAst(Ie,ze),Ie}_makeStyleAst(Te,ze){const Ie=[],ht=Array.isArray(Te.styles)?Te.styles:[Te.styles];for(let ii of ht)"string"==typeof ii?ii===p.kp?Ie.push(ii):ze.errors.push(new l.wOt(3002,!1)):Ie.push(new Map(Object.entries(ii)));let Kt=!1,Fn=null;return Ie.forEach(ii=>{if(ii instanceof Map&&(ii.has("easing")&&(Fn=ii.get("easing"),ii.delete("easing")),!Kt))for(let Fi of ii.values())if(Fi.toString().indexOf("{{")>=0){Kt=!0;break}}),{type:p.If.Style,styles:Ie,easing:Fn,offset:Te.offset,containsDynamicStyles:Kt,options:null}}_validateStyleAst(Te,ze){const Ie=ze.currentAnimateTimings;let ht=ze.currentTime,Kt=ze.currentTime;Ie&&Kt>0&&(Kt-=Ie.duration+Ie.delay),Te.styles.forEach(Fn=>{"string"!=typeof Fn&&Fn.forEach((ii,Fi)=>{const Hi=ze.collectedStyles.get(ze.currentQuerySelector),Er=Hi.get(Fi);let Vr=!0;Er&&(Kt!=ht&&Kt>=Er.startTime&&ht<=Er.endTime&&(ze.errors.push(function L(Bt,Te,ze,Ie,ht){return new l.wOt(3010,!1)}()),Vr=!1),Kt=Er.startTime),Vr&&Hi.set(Fi,{startTime:Kt,endTime:ht}),ze.options&&function Ut(Bt,Te,ze){const Ie=Te.params||{},ht=wn(Bt);ht.length&&ht.forEach(Kt=>{Ie.hasOwnProperty(Kt)||ze.push(function y(Bt){return new l.wOt(3001,!1)}())})}(ii,ze.options,ze.errors)})})}visitKeyframes(Te,ze){const Ie={type:p.If.Keyframes,styles:[],options:null};if(!ze.currentAnimateTimings)return ze.errors.push(function x(){return new l.wOt(3011,!1)}()),Ie;let Kt=0;const Fn=[];let ii=!1,Fi=!1,Hi=0;const Er=Te.steps.map(pa=>{const Rs=this._makeStyleAst(pa,ze);let ka=null!=Rs.offset?Rs.offset:function Fr(Bt){if("string"==typeof Bt)return null;let Te=null;if(Array.isArray(Bt))Bt.forEach(ze=>{if(ze instanceof Map&&ze.has("offset")){const Ie=ze;Te=parseFloat(Ie.get("offset")),Ie.delete("offset")}});else if(Bt instanceof Map&&Bt.has("offset")){const ze=Bt;Te=parseFloat(ze.get("offset")),ze.delete("offset")}return Te}(Rs.styles),Da=0;return null!=ka&&(Kt++,Da=Rs.offset=ka),Fi=Fi||Da<0||Da>1,ii=ii||Da<Hi,Hi=Da,Fn.push(Da),Rs});Fi&&ze.errors.push(function V(){return new l.wOt(3012,!1)}()),ii&&ze.errors.push(function D(){return new l.wOt(3200,!1)}());const Vr=Te.steps.length;let Oo=0;Kt>0&&Kt<Vr?ze.errors.push(function F(){return new l.wOt(3202,!1)}()):0==Kt&&(Oo=1/(Vr-1));const uo=Vr-1,io=ze.currentTime,Do=ze.currentAnimateTimings,rs=Do.duration;return Er.forEach((pa,Rs)=>{const ka=Oo>0?Rs==uo?1:Oo*Rs:Fn[Rs],Da=ka*rs;ze.currentTime=io+Do.delay+Da,Do.duration=Da,this._validateStyleAst(pa,ze),pa.offset=ka,Ie.styles.push(pa)}),Ie}visitReference(Te,ze){return{type:p.If.Reference,animation:Oi(this,it(Te.animation),ze),options:qn(Te.options)}}visitAnimateChild(Te,ze){return ze.depCount++,{type:p.If.AnimateChild,options:qn(Te.options)}}visitAnimateRef(Te,ze){return{type:p.If.AnimateRef,animation:this.visitReference(Te.animation,ze),options:qn(Te.options)}}visitQuery(Te,ze){const Ie=ze.currentQuerySelector,ht=Te.options||{};ze.queryCount++,ze.currentQuery=Te;const[Kt,Fn]=function ar(Bt){const Te=!!Bt.split(/\s*,\s*/).find(ze=>":self"==ze);return Te&&(Bt=Bt.replace(mi,"")),Bt=Bt.replace(/@\*/g,dt).replace(/@\w+/g,ze=>dt+"-"+ze.slice(1)).replace(/:animating/g,yn),[Bt,Te]}(Te.selector);ze.currentQuerySelector=Ie.length?Ie+" "+Kt:Kt,ke(ze.collectedStyles,ze.currentQuerySelector,new Map);const ii=Oi(this,it(Te.animation),ze);return ze.currentQuery=null,ze.currentQuerySelector=Ie,{type:p.If.Query,selector:Kt,limit:ht.limit||0,optional:!!ht.optional,includeSelf:Fn,animation:ii,originalSelector:Te.selector,options:qn(Te.options)}}visitStagger(Te,ze){ze.currentQuery||ze.errors.push(function I(){return new l.wOt(3013,!1)}());const Ie="full"===Te.timings?{duration:0,delay:0,easing:"full"}:ai(Te.timings,ze.errors,!0);return{type:p.If.Stagger,animation:Oi(this,it(Te.animation),ze),timings:Ie,options:null}}}class ki{constructor(Te){this.errors=Te,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function qn(Bt){return Bt?(Bt={...Bt}).params&&(Bt.params=function Jt(Bt){return Bt?{...Bt}:null}(Bt.params)):Bt={},Bt}function Sr(Bt,Te,ze){return{duration:Bt,delay:Te,easing:ze}}function ni(Bt,Te,ze,Ie,ht,Kt,Fn=null,ii=!1){return{type:1,element:Bt,keyframes:Te,preStyleProps:ze,postStyleProps:Ie,duration:ht,delay:Kt,totalTime:ht+Kt,easing:Fn,subTimeline:ii}}class he{constructor(){this._map=new Map}get(Te){return this._map.get(Te)||[]}append(Te,ze){let Ie=this._map.get(Te);Ie||this._map.set(Te,Ie=[]),Ie.push(...ze)}has(Te){return this._map.has(Te)}clear(){this._map.clear()}}const Qe=new RegExp(":enter","g"),Mt=new RegExp(":leave","g");function Vt(Bt,Te,ze,Ie,ht,Kt=new Map,Fn=new Map,ii,Fi,Hi=[]){return(new Vn).buildKeyframes(Bt,Te,ze,Ie,ht,Kt,Fn,ii,Fi,Hi)}class Vn{buildKeyframes(Te,ze,Ie,ht,Kt,Fn,ii,Fi,Hi,Er=[]){Hi=Hi||new he;const Vr=new Rn(Te,ze,Hi,ht,Kt,Er,[]);Vr.options=Fi;const Oo=Fi.delay?Xn(Fi.delay):0;Vr.currentTimeline.delayNextStep(Oo),Vr.currentTimeline.setStyles([Fn],null,Vr.errors,Fi),Oi(this,Ie,Vr);const uo=Vr.timelines.filter(io=>io.containsAnimation());if(uo.length&&ii.size){let io;for(let Do=uo.length-1;Do>=0;Do--){const rs=uo[Do];if(rs.element===ze){io=rs;break}}io&&!io.allowOnlyTimelineStyles()&&io.setStyles([ii],null,Vr.errors,Fi)}return uo.length?uo.map(io=>io.buildKeyframes()):[ni(ze,[],[],[],0,Oo,"",!1)]}visitTrigger(Te,ze){}visitState(Te,ze){}visitTransition(Te,ze){}visitAnimateChild(Te,ze){const Ie=ze.subInstructions.get(ze.element);if(Ie){const ht=ze.createSubContext(Te.options),Kt=ze.currentTimeline.currentTime,Fn=this._visitSubInstructions(Ie,ht,ht.options);Kt!=Fn&&ze.transformIntoNewTimeline(Fn)}ze.previousNode=Te}visitAnimateRef(Te,ze){const Ie=ze.createSubContext(Te.options);Ie.transformIntoNewTimeline(),this._applyAnimationRefDelays([Te.options,Te.animation.options],ze,Ie),this.visitReference(Te.animation,Ie),ze.transformIntoNewTimeline(Ie.currentTimeline.currentTime),ze.previousNode=Te}_applyAnimationRefDelays(Te,ze,Ie){for(const ht of Te){const Kt=ht?.delay;if(Kt){const Fn="number"==typeof Kt?Kt:Xn(nt(Kt,ht?.params??{},ze.errors));Ie.delayNextStep(Fn)}}}_visitSubInstructions(Te,ze,Ie){let Kt=ze.currentTimeline.currentTime;const Fn=null!=Ie.duration?Xn(Ie.duration):null,ii=null!=Ie.delay?Xn(Ie.delay):null;return 0!==Fn&&Te.forEach(Fi=>{const Hi=ze.appendInstructionToTimeline(Fi,Fn,ii);Kt=Math.max(Kt,Hi.duration+Hi.delay)}),Kt}visitReference(Te,ze){ze.updateOptions(Te.options,!0),Oi(this,Te.animation,ze),ze.previousNode=Te}visitSequence(Te,ze){const Ie=ze.subContextCount;let ht=ze;const Kt=Te.options;if(Kt&&(Kt.params||Kt.delay)&&(ht=ze.createSubContext(Kt),ht.transformIntoNewTimeline(),null!=Kt.delay)){ht.previousNode.type==p.If.Style&&(ht.currentTimeline.snapshotCurrentStyles(),ht.previousNode=si);const Fn=Xn(Kt.delay);ht.delayNextStep(Fn)}Te.steps.length&&(Te.steps.forEach(Fn=>Oi(this,Fn,ht)),ht.currentTimeline.applyStylesToKeyframe(),ht.subContextCount>Ie&&ht.transformIntoNewTimeline()),ze.previousNode=Te}visitGroup(Te,ze){const Ie=[];let ht=ze.currentTimeline.currentTime;const Kt=Te.options&&Te.options.delay?Xn(Te.options.delay):0;Te.steps.forEach(Fn=>{const ii=ze.createSubContext(Te.options);Kt&&ii.delayNextStep(Kt),Oi(this,Fn,ii),ht=Math.max(ht,ii.currentTimeline.currentTime),Ie.push(ii.currentTimeline)}),Ie.forEach(Fn=>ze.currentTimeline.mergeTimelineCollectedStyles(Fn)),ze.transformIntoNewTimeline(ht),ze.previousNode=Te}_visitTiming(Te,ze){if(Te.dynamic){const Ie=Te.strValue;return ai(ze.params?nt(Ie,ze.params,ze.errors):Ie,ze.errors)}return{duration:Te.duration,delay:Te.delay,easing:Te.easing}}visitAnimate(Te,ze){const Ie=ze.currentAnimateTimings=this._visitTiming(Te.timings,ze),ht=ze.currentTimeline;Ie.delay&&(ze.incrementTime(Ie.delay),ht.snapshotCurrentStyles());const Kt=Te.style;Kt.type==p.If.Keyframes?this.visitKeyframes(Kt,ze):(ze.incrementTime(Ie.duration),this.visitStyle(Kt,ze),ht.applyStylesToKeyframe()),ze.currentAnimateTimings=null,ze.previousNode=Te}visitStyle(Te,ze){const Ie=ze.currentTimeline,ht=ze.currentAnimateTimings;!ht&&Ie.hasCurrentStyleProperties()&&Ie.forwardFrame();const Kt=ht&&ht.easing||Te.easing;Te.isEmptyStep?Ie.applyEmptyStep(Kt):Ie.setStyles(Te.styles,Kt,ze.errors,ze.options),ze.previousNode=Te}visitKeyframes(Te,ze){const Ie=ze.currentAnimateTimings,ht=ze.currentTimeline.duration,Kt=Ie.duration,ii=ze.createSubContext().currentTimeline;ii.easing=Ie.easing,Te.styles.forEach(Fi=>{ii.forwardTime((Fi.offset||0)*Kt),ii.setStyles(Fi.styles,Fi.easing,ze.errors,ze.options),ii.applyStylesToKeyframe()}),ze.currentTimeline.mergeTimelineCollectedStyles(ii),ze.transformIntoNewTimeline(ht+Kt),ze.previousNode=Te}visitQuery(Te,ze){const Ie=ze.currentTimeline.currentTime,ht=Te.options||{},Kt=ht.delay?Xn(ht.delay):0;Kt&&(ze.previousNode.type===p.If.Style||0==Ie&&ze.currentTimeline.hasCurrentStyleProperties())&&(ze.currentTimeline.snapshotCurrentStyles(),ze.previousNode=si);let Fn=Ie;const ii=ze.invokeQuery(Te.selector,Te.originalSelector,Te.limit,Te.includeSelf,!!ht.optional,ze.errors);ze.currentQueryTotal=ii.length;let Fi=null;ii.forEach((Hi,Er)=>{ze.currentQueryIndex=Er;const Vr=ze.createSubContext(Te.options,Hi);Kt&&Vr.delayNextStep(Kt),Hi===ze.element&&(Fi=Vr.currentTimeline),Oi(this,Te.animation,Vr),Vr.currentTimeline.applyStylesToKeyframe(),Fn=Math.max(Fn,Vr.currentTimeline.currentTime)}),ze.currentQueryIndex=0,ze.currentQueryTotal=0,ze.transformIntoNewTimeline(Fn),Fi&&(ze.currentTimeline.mergeTimelineCollectedStyles(Fi),ze.currentTimeline.snapshotCurrentStyles()),ze.previousNode=Te}visitStagger(Te,ze){const Ie=ze.parentContext,ht=ze.currentTimeline,Kt=Te.timings,Fn=Math.abs(Kt.duration),ii=Fn*(ze.currentQueryTotal-1);let Fi=Fn*ze.currentQueryIndex;switch(Kt.duration<0?"reverse":Kt.easing){case"reverse":Fi=ii-Fi;break;case"full":Fi=Ie.currentStaggerTime}const Er=ze.currentTimeline;Fi&&Er.delayNextStep(Fi);const Vr=Er.currentTime;Oi(this,Te.animation,ze),ze.previousNode=Te,Ie.currentStaggerTime=ht.currentTime-Vr+(ht.startTime-Ie.currentTimeline.startTime)}}const si={};class Rn{constructor(Te,ze,Ie,ht,Kt,Fn,ii,Fi){this._driver=Te,this.element=ze,this.subInstructions=Ie,this._enterClassName=ht,this._leaveClassName=Kt,this.errors=Fn,this.timelines=ii,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=si,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Fi||new _i(this._driver,ze,0),ii.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(Te,ze){if(!Te)return;const Ie=Te;let ht=this.options;null!=Ie.duration&&(ht.duration=Xn(Ie.duration)),null!=Ie.delay&&(ht.delay=Xn(Ie.delay));const Kt=Ie.params;if(Kt){let Fn=ht.params;Fn||(Fn=this.options.params={}),Object.keys(Kt).forEach(ii=>{(!ze||!Fn.hasOwnProperty(ii))&&(Fn[ii]=nt(Kt[ii],Fn,this.errors))})}}_copyOptions(){const Te={};if(this.options){const ze=this.options.params;if(ze){const Ie=Te.params={};Object.keys(ze).forEach(ht=>{Ie[ht]=ze[ht]})}}return Te}createSubContext(Te=null,ze,Ie){const ht=ze||this.element,Kt=new Rn(this._driver,ht,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ht,Ie||0));return Kt.previousNode=this.previousNode,Kt.currentAnimateTimings=this.currentAnimateTimings,Kt.options=this._copyOptions(),Kt.updateOptions(Te),Kt.currentQueryIndex=this.currentQueryIndex,Kt.currentQueryTotal=this.currentQueryTotal,Kt.parentContext=this,this.subContextCount++,Kt}transformIntoNewTimeline(Te){return this.previousNode=si,this.currentTimeline=this.currentTimeline.fork(this.element,Te),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(Te,ze,Ie){const ht={duration:ze??Te.duration,delay:this.currentTimeline.currentTime+(Ie??0)+Te.delay,easing:""},Kt=new wr(this._driver,Te.element,Te.keyframes,Te.preStyleProps,Te.postStyleProps,ht,Te.stretchStartingKeyframe);return this.timelines.push(Kt),ht}incrementTime(Te){this.currentTimeline.forwardTime(this.currentTimeline.duration+Te)}delayNextStep(Te){Te>0&&this.currentTimeline.delayNextStep(Te)}invokeQuery(Te,ze,Ie,ht,Kt,Fn){let ii=[];if(ht&&ii.push(this.element),Te.length>0){Te=(Te=Te.replace(Qe,"."+this._enterClassName)).replace(Mt,"."+this._leaveClassName);let Hi=this._driver.query(this.element,Te,1!=Ie);0!==Ie&&(Hi=Ie<0?Hi.slice(Hi.length+Ie,Hi.length):Hi.slice(0,Ie)),ii.push(...Hi)}return!Kt&&0==ii.length&&Fn.push(function k(Bt){return new l.wOt(3014,!1)}()),ii}}class _i{constructor(Te,ze,Ie,ht){this._driver=Te,this.element=ze,this.startTime=Ie,this._elementTimelineStylesLookup=ht,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(ze),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ze,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(Te){const ze=1===this._keyframes.size&&this._pendingStyles.size;this.duration||ze?(this.forwardTime(this.currentTime+Te),ze&&this.snapshotCurrentStyles()):this.startTime+=Te}fork(Te,ze){return this.applyStylesToKeyframe(),new _i(this._driver,Te,ze||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(Te){this.applyStylesToKeyframe(),this.duration=Te,this._loadKeyframe()}_updateStyle(Te,ze){this._localTimelineStyles.set(Te,ze),this._globalTimelineStyles.set(Te,ze),this._styleSummary.set(Te,{time:this.currentTime,value:ze})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(Te){Te&&this._previousKeyframe.set("easing",Te);for(let[ze,Ie]of this._globalTimelineStyles)this._backFill.set(ze,Ie||p.kp),this._currentKeyframe.set(ze,p.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(Te,ze,Ie,ht){ze&&this._previousKeyframe.set("easing",ze);const Kt=ht&&ht.params||{},Fn=function Qr(Bt,Te){const ze=new Map;let Ie;return Bt.forEach(ht=>{if("*"===ht){Ie??=Te.keys();for(let Kt of Ie)ze.set(Kt,p.kp)}else for(let[Kt,Fn]of ht)ze.set(Kt,Fn)}),ze}(Te,this._globalTimelineStyles);for(let[ii,Fi]of Fn){const Hi=nt(Fi,Kt,Ie);this._pendingStyles.set(ii,Hi),this._localTimelineStyles.has(ii)||this._backFill.set(ii,this._globalTimelineStyles.get(ii)??p.kp),this._updateStyle(ii,Hi)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((Te,ze)=>{this._currentKeyframe.set(ze,Te)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((Te,ze)=>{this._currentKeyframe.has(ze)||this._currentKeyframe.set(ze,Te)}))}snapshotCurrentStyles(){for(let[Te,ze]of this._localTimelineStyles)this._pendingStyles.set(Te,ze),this._updateStyle(Te,ze)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const Te=[];for(let ze in this._currentKeyframe)Te.push(ze);return Te}mergeTimelineCollectedStyles(Te){Te._styleSummary.forEach((ze,Ie)=>{const ht=this._styleSummary.get(Ie);(!ht||ze.time>ht.time)&&this._updateStyle(Ie,ze.value)})}buildKeyframes(){this.applyStylesToKeyframe();const Te=new Set,ze=new Set,Ie=1===this._keyframes.size&&0===this.duration;let ht=[];this._keyframes.forEach((ii,Fi)=>{const Hi=new Map([...this._backFill,...ii]);Hi.forEach((Er,Vr)=>{Er===p.FX?Te.add(Vr):Er===p.kp&&ze.add(Vr)}),Ie||Hi.set("offset",Fi/this.duration),ht.push(Hi)});const Kt=[...Te.values()],Fn=[...ze.values()];if(Ie){const ii=ht[0],Fi=new Map(ii);ii.set("offset",0),Fi.set("offset",1),ht=[ii,Fi]}return ni(this.element,ht,Kt,Fn,this.duration,this.startTime,this.easing,!1)}}class wr extends _i{constructor(Te,ze,Ie,ht,Kt,Fn,ii=!1){super(Te,ze,Fn.delay),this.keyframes=Ie,this.preStyleProps=ht,this.postStyleProps=Kt,this._stretchStartingKeyframe=ii,this.timings={duration:Fn.duration,delay:Fn.delay,easing:Fn.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let Te=this.keyframes,{delay:ze,duration:Ie,easing:ht}=this.timings;if(this._stretchStartingKeyframe&&ze){const Kt=[],Fn=Ie+ze,ii=ze/Fn,Fi=new Map(Te[0]);Fi.set("offset",0),Kt.push(Fi);const Hi=new Map(Te[0]);Hi.set("offset",hr(ii)),Kt.push(Hi);const Er=Te.length-1;for(let Vr=1;Vr<=Er;Vr++){let Oo=new Map(Te[Vr]);const uo=Oo.get("offset");Oo.set("offset",hr((ze+uo*Ie)/Fn)),Kt.push(Oo)}Ie=Fn,ze=0,ht="",Te=Kt}return ni(this.element,Te,this.preStyleProps,this.postStyleProps,Ie,ze,ht,!0)}}function hr(Bt,Te=3){const ze=Math.pow(10,Te-1);return Math.round(Bt*ze)/ze}function Yr(Bt,Te,ze,Ie,ht,Kt,Fn,ii,Fi,Hi,Er,Vr,Oo){return{type:0,element:Bt,triggerName:Te,isRemovalTransition:ht,fromState:ze,fromStyles:Kt,toState:Ie,toStyles:Fn,timelines:ii,queriedElements:Fi,preStyleProps:Hi,postStyleProps:Er,totalTime:Vr,errors:Oo}}const no={};class Tr{constructor(Te,ze,Ie){this._triggerName=Te,this.ast=ze,this._stateStyles=Ie}match(Te,ze,Ie,ht){return function po(Bt,Te,ze,Ie,ht){return Bt.some(Kt=>Kt(Te,ze,Ie,ht))}(this.ast.matchers,Te,ze,Ie,ht)}buildStyles(Te,ze,Ie){let ht=this._stateStyles.get("*");return void 0!==Te&&(ht=this._stateStyles.get(Te?.toString())||ht),ht?ht.buildStyles(ze,Ie):new Map}build(Te,ze,Ie,ht,Kt,Fn,ii,Fi,Hi,Er){const Vr=[],Oo=this.ast.options&&this.ast.options.params||no,io=this.buildStyles(Ie,ii&&ii.params||no,Vr),Do=Fi&&Fi.params||no,rs=this.buildStyles(ht,Do,Vr),pa=new Set,Rs=new Map,ka=new Map,Da="void"===ht,Ql={params:Os(Do,Oo),delay:this.ast.options?.delay},vc=Er?[]:Vt(Te,ze,this.ast.animation,Kt,Fn,io,rs,Ql,Hi,Vr);let wl=0;return vc.forEach(Ro=>{wl=Math.max(Ro.duration+Ro.delay,wl)}),Vr.length?Yr(ze,this._triggerName,Ie,ht,Da,io,rs,[],[],Rs,ka,wl,Vr):(vc.forEach(Ro=>{const oc=Ro.element,sc=ke(Rs,oc,new Set);Ro.preStyleProps.forEach(yl=>sc.add(yl));const wa=ke(ka,oc,new Set);Ro.postStyleProps.forEach(yl=>wa.add(yl)),oc!==ze&&pa.add(oc)}),Yr(ze,this._triggerName,Ie,ht,Da,io,rs,vc,[...pa.values()],Rs,ka,wl))}}function Os(Bt,Te){const ze={...Te};return Object.entries(Bt).forEach(([Ie,ht])=>{null!=ht&&(ze[Ie]=ht)}),ze}class es{constructor(Te,ze,Ie){this.styles=Te,this.defaultParams=ze,this.normalizer=Ie}buildStyles(Te,ze){const Ie=new Map,ht=Os(Te,this.defaultParams);return this.styles.styles.forEach(Kt=>{"string"!=typeof Kt&&Kt.forEach((Fn,ii)=>{Fn&&(Fn=nt(Fn,ht,ze));const Fi=this.normalizer.normalizePropertyName(ii,ze);Fn=this.normalizer.normalizeStyleValue(ii,Fi,Fn,ze),Ie.set(ii,Fn)})}),Ie}}class li{constructor(Te,ze,Ie){this.name=Te,this.ast=ze,this._normalizer=Ie,this.transitionFactories=[],this.states=new Map,ze.states.forEach(ht=>{this.states.set(ht.name,new es(ht.style,ht.options&&ht.options.params||{},Ie))}),Tn(this.states,"true","1"),Tn(this.states,"false","0"),ze.transitions.forEach(ht=>{this.transitionFactories.push(new Tr(Te,ht,this.states))}),this.fallbackTransition=function dr(Bt,Te,ze){return new Tr(Bt,{type:p.If.Transition,animation:{type:p.If.Sequence,steps:[],options:null},matchers:[(Fn,ii)=>!0],options:null,queryCount:0,depCount:0},Te)}(Te,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(Te,ze,Ie,ht){return this.transitionFactories.find(Fn=>Fn.match(Te,ze,Ie,ht))||null}matchStyles(Te,ze,Ie){return this.fallbackTransition.buildStyles(Te,ze,Ie)}}function Tn(Bt,Te,ze){Bt.has(Te)?Bt.has(ze)||Bt.set(ze,Bt.get(Te)):Bt.has(ze)&&Bt.set(Te,Bt.get(ze))}const tn=new he;class vn{constructor(Te,ze,Ie){this.bodyNode=Te,this._driver=ze,this._normalizer=Ie,this._animations=new Map,this._playersById=new Map,this.players=[]}register(Te,ze){const Ie=[],Kt=$n(this._driver,ze,Ie,[]);if(Ie.length)throw function J(Bt){return new l.wOt(3503,!1)}();this._animations.set(Te,Kt)}_buildPlayer(Te,ze,Ie){const ht=Te.element,Kt=de(this._normalizer,Te.keyframes,ze,Ie);return this._driver.animate(ht,Kt,Te.duration,Te.delay,Te.easing,[],!0)}create(Te,ze,Ie={}){const ht=[],Kt=this._animations.get(Te);let Fn;const ii=new Map;if(Kt?(Fn=Vt(this._driver,ze,Kt,En,Cn,new Map,new Map,Ie,tn,ht),Fn.forEach(Er=>{const Vr=ke(ii,Er.element,new Map);Er.postStyleProps.forEach(Oo=>Vr.set(Oo,null))})):(ht.push(function z(){return new l.wOt(3300,!1)}()),Fn=[]),ht.length)throw function te(Bt){return new l.wOt(3504,!1)}();ii.forEach((Er,Vr)=>{Er.forEach((Oo,uo)=>{Er.set(uo,this._driver.computeStyle(Vr,uo,p.kp))})});const Hi=Z(Fn.map(Er=>{const Vr=ii.get(Er.element);return this._buildPlayer(Er,new Map,Vr)}));return this._playersById.set(Te,Hi),Hi.onDestroy(()=>this.destroy(Te)),this.players.push(Hi),Hi}destroy(Te){const ze=this._getPlayer(Te);ze.destroy(),this._playersById.delete(Te);const Ie=this.players.indexOf(ze);Ie>=0&&this.players.splice(Ie,1)}_getPlayer(Te){const ze=this._playersById.get(Te);if(!ze)throw function X(Bt){return new l.wOt(3301,!1)}();return ze}listen(Te,ze,Ie,ht){const Kt=_e(ze,"","","");return ae(this._getPlayer(Te),Ie,Kt,ht),()=>{}}command(Te,ze,Ie,ht){if("register"==Ie)return void this.register(Te,ht[0]);if("create"==Ie)return void this.create(Te,ze,ht[0]||{});const Kt=this._getPlayer(Te);switch(Ie){case"play":Kt.play();break;case"pause":Kt.pause();break;case"reset":Kt.reset();break;case"restart":Kt.restart();break;case"finish":Kt.finish();break;case"init":Kt.init();break;case"setPosition":Kt.setPosition(parseFloat(ht[0]));break;case"destroy":this.destroy(Te)}}}const oi="ng-animate-queued",or="ng-animate-disabled",qr=[],lo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ts={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ls="__ng_removed";class Xr{get params(){return this.options.params}constructor(Te,ze=""){this.namespaceId=ze;const Ie=Te&&Te.hasOwnProperty("value");if(this.value=function Ga(Bt){return Bt??null}(Ie?Te.value:Te),Ie){const{value:Kt,...Fn}=Te;this.options=Fn}else this.options={};this.options.params||(this.options.params={})}absorbOptions(Te){const ze=Te.params;if(ze){const Ie=this.options.params;Object.keys(ze).forEach(ht=>{null==Ie[ht]&&(Ie[ht]=ze[ht])})}}}const Hs="void",Ua=new Xr(Hs);class Ya{constructor(Te,ze,Ie){this.id=Te,this.hostElement=ze,this._engine=Ie,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+Te,ln(ze,this._hostClassName)}listen(Te,ze,Ie,ht){if(!this._triggers.has(ze))throw function re(Bt,Te){return new l.wOt(3302,!1)}();if(null==Ie||0==Ie.length)throw function ge(Bt){return new l.wOt(3303,!1)}();if(!function ss(Bt){return"start"==Bt||"done"==Bt}(Ie))throw function oe(Bt,Te){return new l.wOt(3400,!1)}();const Kt=ke(this._elementListeners,Te,[]),Fn={name:ze,phase:Ie,callback:ht};Kt.push(Fn);const ii=ke(this._engine.statesByElement,Te,new Map);return ii.has(ze)||(ln(Te,fn),ln(Te,fn+"-"+ze),ii.set(ze,Ua)),()=>{this._engine.afterFlush(()=>{const Fi=Kt.indexOf(Fn);Fi>=0&&Kt.splice(Fi,1),this._triggers.has(ze)||ii.delete(ze)})}}register(Te,ze){return!this._triggers.has(Te)&&(this._triggers.set(Te,ze),!0)}_getTrigger(Te){const ze=this._triggers.get(Te);if(!ze)throw function xe(Bt){return new l.wOt(3401,!1)}();return ze}trigger(Te,ze,Ie,ht=!0){const Kt=this._getTrigger(ze),Fn=new Pa(this.id,ze,Te);let ii=this._engine.statesByElement.get(Te);ii||(ln(Te,fn),ln(Te,fn+"-"+ze),this._engine.statesByElement.set(Te,ii=new Map));let Fi=ii.get(ze);const Hi=new Xr(Ie,this.id);if(!(Ie&&Ie.hasOwnProperty("value"))&&Fi&&Hi.absorbOptions(Fi.options),ii.set(ze,Hi),Fi||(Fi=Ua),Hi.value!==Hs&&Fi.value===Hi.value){if(!function zi(Bt,Te){const ze=Object.keys(Bt),Ie=Object.keys(Te);if(ze.length!=Ie.length)return!1;for(let ht=0;ht<ze.length;ht++){const Kt=ze[ht];if(!Te.hasOwnProperty(Kt)||Bt[Kt]!==Te[Kt])return!1}return!0}(Fi.params,Hi.params)){const Do=[],rs=Kt.matchStyles(Fi.value,Fi.params,Do),pa=Kt.matchStyles(Hi.value,Hi.params,Do);Do.length?this._engine.reportError(Do):this._engine.afterFlush(()=>{Ct(Te,rs),vt(Te,pa)})}return}const Oo=ke(this._engine.playersByElement,Te,[]);Oo.forEach(Do=>{Do.namespaceId==this.id&&Do.triggerName==ze&&Do.queued&&Do.destroy()});let uo=Kt.matchTransition(Fi.value,Hi.value,Te,Hi.params),io=!1;if(!uo){if(!ht)return;uo=Kt.fallbackTransition,io=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:Te,triggerName:ze,transition:uo,fromState:Fi,toState:Hi,player:Fn,isFallbackTransition:io}),io||(ln(Te,oi),Fn.onStart(()=>{Pi(Te,oi)})),Fn.onDone(()=>{let Do=this.players.indexOf(Fn);Do>=0&&this.players.splice(Do,1);const rs=this._engine.playersByElement.get(Te);if(rs){let pa=rs.indexOf(Fn);pa>=0&&rs.splice(pa,1)}}),this.players.push(Fn),Oo.push(Fn),Fn}deregister(Te){this._triggers.delete(Te),this._engine.statesByElement.forEach(ze=>ze.delete(Te)),this._elementListeners.forEach((ze,Ie)=>{this._elementListeners.set(Ie,ze.filter(ht=>ht.name!=Te))})}clearElementCache(Te){this._engine.statesByElement.delete(Te),this._elementListeners.delete(Te);const ze=this._engine.playersByElement.get(Te);ze&&(ze.forEach(Ie=>Ie.destroy()),this._engine.playersByElement.delete(Te))}_signalRemovalForInnerTriggers(Te,ze){const Ie=this._engine.driver.query(Te,dt,!0);Ie.forEach(ht=>{if(ht[Ls])return;const Kt=this._engine.fetchNamespacesByElement(ht);Kt.size?Kt.forEach(Fn=>Fn.triggerLeaveAnimation(ht,ze,!1,!0)):this.clearElementCache(ht)}),this._engine.afterFlushAnimationsDone(()=>Ie.forEach(ht=>this.clearElementCache(ht)))}triggerLeaveAnimation(Te,ze,Ie,ht){const Kt=this._engine.statesByElement.get(Te),Fn=new Map;if(Kt){const ii=[];if(Kt.forEach((Fi,Hi)=>{if(Fn.set(Hi,Fi.value),this._triggers.has(Hi)){const Er=this.trigger(Te,Hi,Hs,ht);Er&&ii.push(Er)}}),ii.length)return this._engine.markElementAsRemoved(this.id,Te,!0,ze,Fn),Ie&&Z(ii).onDone(()=>this._engine.processLeaveNode(Te)),!0}return!1}prepareLeaveAnimationListeners(Te){const ze=this._elementListeners.get(Te),Ie=this._engine.statesByElement.get(Te);if(ze&&Ie){const ht=new Set;ze.forEach(Kt=>{const Fn=Kt.name;if(ht.has(Fn))return;ht.add(Fn);const Fi=this._triggers.get(Fn).fallbackTransition,Hi=Ie.get(Fn)||Ua,Er=new Xr(Hs),Vr=new Pa(this.id,Fn,Te);this._engine.totalQueuedPlayers++,this._queue.push({element:Te,triggerName:Fn,transition:Fi,fromState:Hi,toState:Er,player:Vr,isFallbackTransition:!0})})}}removeNode(Te,ze){const Ie=this._engine;if(Te.childElementCount&&this._signalRemovalForInnerTriggers(Te,ze),this.triggerLeaveAnimation(Te,ze,!0))return;let ht=!1;if(Ie.totalAnimations){const Kt=Ie.players.length?Ie.playersByQueriedElement.get(Te):[];if(Kt&&Kt.length)ht=!0;else{let Fn=Te;for(;Fn=Fn.parentNode;)if(Ie.statesByElement.get(Fn)){ht=!0;break}}}if(this.prepareLeaveAnimationListeners(Te),ht)Ie.markElementAsRemoved(this.id,Te,!1,ze);else{const Kt=Te[Ls];(!Kt||Kt===lo)&&(Ie.afterFlush(()=>this.clearElementCache(Te)),Ie.destroyInnerAnimations(Te),Ie._onRemovalComplete(Te,ze))}}insertNode(Te,ze){ln(Te,this._hostClassName)}drainQueuedTransitions(Te){const ze=[];return this._queue.forEach(Ie=>{const ht=Ie.player;if(ht.destroyed)return;const Kt=Ie.element,Fn=this._elementListeners.get(Kt);Fn&&Fn.forEach(ii=>{if(ii.name==Ie.triggerName){const Fi=_e(Kt,Ie.triggerName,Ie.fromState.value,Ie.toState.value);Fi._data=Te,ae(Ie.player,ii.phase,Fi,ii.callback)}}),ht.markedForDestroy?this._engine.afterFlush(()=>{ht.destroy()}):ze.push(Ie)}),this._queue=[],ze.sort((Ie,ht)=>{const Kt=Ie.transition.ast.depCount,Fn=ht.transition.ast.depCount;return 0==Kt||0==Fn?Kt-Fn:this._engine.driver.containsElement(Ie.element,ht.element)?1:-1})}destroy(Te){this.players.forEach(ze=>ze.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,Te)}}class Ba{_onRemovalComplete(Te,ze){this.onRemovalComplete(Te,ze)}constructor(Te,ze,Ie,ht){this.bodyNode=Te,this.driver=ze,this._normalizer=Ie,this.scheduler=ht,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Kt,Fn)=>{}}get queuedPlayers(){const Te=[];return this._namespaceList.forEach(ze=>{ze.players.forEach(Ie=>{Ie.queued&&Te.push(Ie)})}),Te}createNamespace(Te,ze){const Ie=new Ya(Te,ze,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ze)?this._balanceNamespaceList(Ie,ze):(this.newHostElements.set(ze,Ie),this.collectEnterElement(ze)),this._namespaceLookup[Te]=Ie}_balanceNamespaceList(Te,ze){const Ie=this._namespaceList,ht=this.namespacesByHostElement;if(Ie.length-1>=0){let Fn=!1,ii=this.driver.getParentElement(ze);for(;ii;){const Fi=ht.get(ii);if(Fi){const Hi=Ie.indexOf(Fi);Ie.splice(Hi+1,0,Te),Fn=!0;break}ii=this.driver.getParentElement(ii)}Fn||Ie.unshift(Te)}else Ie.push(Te);return ht.set(ze,Te),Te}register(Te,ze){let Ie=this._namespaceLookup[Te];return Ie||(Ie=this.createNamespace(Te,ze)),Ie}registerTrigger(Te,ze,Ie){let ht=this._namespaceLookup[Te];ht&&ht.register(ze,Ie)&&this.totalAnimations++}destroy(Te,ze){Te&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const Ie=this._fetchNamespace(Te);this.namespacesByHostElement.delete(Ie.hostElement);const ht=this._namespaceList.indexOf(Ie);ht>=0&&this._namespaceList.splice(ht,1),Ie.destroy(ze),delete this._namespaceLookup[Te]}))}_fetchNamespace(Te){return this._namespaceLookup[Te]}fetchNamespacesByElement(Te){const ze=new Set,Ie=this.statesByElement.get(Te);if(Ie)for(let ht of Ie.values())if(ht.namespaceId){const Kt=this._fetchNamespace(ht.namespaceId);Kt&&ze.add(Kt)}return ze}trigger(Te,ze,Ie,ht){if(To(ze)){const Kt=this._fetchNamespace(Te);if(Kt)return Kt.trigger(ze,Ie,ht),!0}return!1}insertNode(Te,ze,Ie,ht){if(!To(ze))return;const Kt=ze[Ls];if(Kt&&Kt.setForRemoval){Kt.setForRemoval=!1,Kt.setForMove=!0;const Fn=this.collectedLeaveElements.indexOf(ze);Fn>=0&&this.collectedLeaveElements.splice(Fn,1)}if(Te){const Fn=this._fetchNamespace(Te);Fn&&Fn.insertNode(ze,Ie)}ht&&this.collectEnterElement(ze)}collectEnterElement(Te){this.collectedEnterElements.push(Te)}markElementAsDisabled(Te,ze){ze?this.disabledNodes.has(Te)||(this.disabledNodes.add(Te),ln(Te,or)):this.disabledNodes.has(Te)&&(this.disabledNodes.delete(Te),Pi(Te,or))}removeNode(Te,ze,Ie){if(To(ze)){this.scheduler?.notify();const ht=Te?this._fetchNamespace(Te):null;ht?ht.removeNode(ze,Ie):this.markElementAsRemoved(Te,ze,!1,Ie);const Kt=this.namespacesByHostElement.get(ze);Kt&&Kt.id!==Te&&Kt.removeNode(ze,Ie)}else this._onRemovalComplete(ze,Ie)}markElementAsRemoved(Te,ze,Ie,ht,Kt){this.collectedLeaveElements.push(ze),ze[Ls]={namespaceId:Te,setForRemoval:ht,hasAnimation:Ie,removedBeforeQueried:!1,previousTriggersValues:Kt}}listen(Te,ze,Ie,ht,Kt){return To(ze)?this._fetchNamespace(Te).listen(ze,Ie,ht,Kt):()=>{}}_buildInstruction(Te,ze,Ie,ht,Kt){return Te.transition.build(this.driver,Te.element,Te.fromState.value,Te.toState.value,Ie,ht,Te.fromState.options,Te.toState.options,ze,Kt)}destroyInnerAnimations(Te){let ze=this.driver.query(Te,dt,!0);ze.forEach(Ie=>this.destroyActiveAnimationsForElement(Ie)),0!=this.playersByQueriedElement.size&&(ze=this.driver.query(Te,yn,!0),ze.forEach(Ie=>this.finishActiveQueriedAnimationOnElement(Ie)))}destroyActiveAnimationsForElement(Te){const ze=this.playersByElement.get(Te);ze&&ze.forEach(Ie=>{Ie.queued?Ie.markedForDestroy=!0:Ie.destroy()})}finishActiveQueriedAnimationOnElement(Te){const ze=this.playersByQueriedElement.get(Te);ze&&ze.forEach(Ie=>Ie.finish())}whenRenderingDone(){return new Promise(Te=>{if(this.players.length)return Z(this.players).onDone(()=>Te());Te()})}processLeaveNode(Te){const ze=Te[Ls];if(ze&&ze.setForRemoval){if(Te[Ls]=lo,ze.namespaceId){this.destroyInnerAnimations(Te);const Ie=this._fetchNamespace(ze.namespaceId);Ie&&Ie.clearElementCache(Te)}this._onRemovalComplete(Te,ze.setForRemoval)}Te.classList?.contains(or)&&this.markElementAsDisabled(Te,!1),this.driver.query(Te,".ng-animate-disabled",!0).forEach(Ie=>{this.markElementAsDisabled(Ie,!1)})}flush(Te=-1){let ze=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ie,ht)=>this._balanceNamespaceList(Ie,ht)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ie=0;Ie<this.collectedEnterElements.length;Ie++)ln(this.collectedEnterElements[Ie],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Ie=[];try{ze=this._flushAnimations(Ie,Te)}finally{for(let ht=0;ht<Ie.length;ht++)Ie[ht]()}}else for(let Ie=0;Ie<this.collectedLeaveElements.length;Ie++)this.processLeaveNode(this.collectedLeaveElements[Ie]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Ie=>Ie()),this._flushFns=[],this._whenQuietFns.length){const Ie=this._whenQuietFns;this._whenQuietFns=[],ze.length?Z(ze).onDone(()=>{Ie.forEach(ht=>ht())}):Ie.forEach(ht=>ht())}}reportError(Te){throw function ue(Bt){return new l.wOt(3402,!1)}()}_flushAnimations(Te,ze){const Ie=new he,ht=[],Kt=new Map,Fn=[],ii=new Map,Fi=new Map,Hi=new Map,Er=new Set;this.disabledNodes.forEach(to=>{Er.add(to);const Lo=this.driver.query(to,".ng-animate-queued",!0);for(let zo=0;zo<Lo.length;zo++)Er.add(Lo[zo])});const Vr=this.bodyNode,Oo=Array.from(this.statesByElement.keys()),uo=Ca(Oo,this.collectedEnterElements),io=new Map;let Do=0;uo.forEach((to,Lo)=>{const zo=En+Do++;io.set(Lo,zo),to.forEach(ps=>ln(ps,zo))});const rs=[],pa=new Set,Rs=new Set;for(let to=0;to<this.collectedLeaveElements.length;to++){const Lo=this.collectedLeaveElements[to],zo=Lo[Ls];zo&&zo.setForRemoval&&(rs.push(Lo),pa.add(Lo),zo.hasAnimation?this.driver.query(Lo,".ng-star-inserted",!0).forEach(ps=>pa.add(ps)):Rs.add(Lo))}const ka=new Map,Da=Ca(Oo,Array.from(pa));Da.forEach((to,Lo)=>{const zo=Cn+Do++;ka.set(Lo,zo),to.forEach(ps=>ln(ps,zo))}),Te.push(()=>{uo.forEach((to,Lo)=>{const zo=io.get(Lo);to.forEach(ps=>Pi(ps,zo))}),Da.forEach((to,Lo)=>{const zo=ka.get(Lo);to.forEach(ps=>Pi(ps,zo))}),rs.forEach(to=>{this.processLeaveNode(to)})});const Ql=[],vc=[];for(let to=this._namespaceList.length-1;to>=0;to--)this._namespaceList[to].drainQueuedTransitions(ze).forEach(zo=>{const ps=zo.player,el=zo.element;if(Ql.push(ps),this.collectedEnterElements.length){const ma=el[Ls];if(ma&&ma.setForMove){if(ma.previousTriggersValues&&ma.previousTriggersValues.has(zo.triggerName)){const ca=ma.previousTriggersValues.get(zo.triggerName),yo=this.statesByElement.get(zo.element);if(yo&&yo.has(zo.triggerName)){const Cc=yo.get(zo.triggerName);Cc.value=ca,yo.set(zo.triggerName,Cc)}}return void ps.destroy()}}const Za=!Vr||!this.driver.containsElement(Vr,el),tl=ka.get(el),Tl=io.get(el),Ma=this._buildInstruction(zo,Ie,Tl,tl,Za);if(Ma.errors&&Ma.errors.length)return void vc.push(Ma);if(Za)return ps.onStart(()=>Ct(el,Ma.fromStyles)),ps.onDestroy(()=>vt(el,Ma.toStyles)),void ht.push(ps);if(zo.isFallbackTransition)return ps.onStart(()=>Ct(el,Ma.fromStyles)),ps.onDestroy(()=>vt(el,Ma.toStyles)),void ht.push(ps);const rd=[];Ma.timelines.forEach(ma=>{ma.stretchStartingKeyframe=!0,this.disabledNodes.has(ma.element)||rd.push(ma)}),Ma.timelines=rd,Ie.append(el,Ma.timelines),Fn.push({instruction:Ma,player:ps,element:el}),Ma.queriedElements.forEach(ma=>ke(ii,ma,[]).push(ps)),Ma.preStyleProps.forEach((ma,ca)=>{if(ma.size){let yo=Fi.get(ca);yo||Fi.set(ca,yo=new Set),ma.forEach((Cc,Fs)=>yo.add(Fs))}}),Ma.postStyleProps.forEach((ma,ca)=>{let yo=Hi.get(ca);yo||Hi.set(ca,yo=new Set),ma.forEach((Cc,Fs)=>yo.add(Fs))})});if(vc.length){const to=[];vc.forEach(Lo=>{to.push(function se(Bt,Te){return new l.wOt(3505,!1)}())}),Ql.forEach(Lo=>Lo.destroy()),this.reportError(to)}const wl=new Map,Ro=new Map;Fn.forEach(to=>{const Lo=to.element;Ie.has(Lo)&&(Ro.set(Lo,Lo),this._beforeAnimationBuild(to.player.namespaceId,to.instruction,wl))}),ht.forEach(to=>{const Lo=to.element;this._getPreviousPlayers(Lo,!1,to.namespaceId,to.triggerName,null).forEach(ps=>{ke(wl,Lo,[]).push(ps),ps.destroy()})});const oc=rs.filter(to=>Ki(to,Fi,Hi)),sc=new Map;va(sc,this.driver,Rs,Hi,p.kp).forEach(to=>{Ki(to,Fi,Hi)&&oc.push(to)});const yl=new Map;uo.forEach((to,Lo)=>{va(yl,this.driver,new Set(to),Fi,p.FX)}),oc.forEach(to=>{const Lo=sc.get(to),zo=yl.get(to);sc.set(to,new Map([...Lo?.entries()??[],...zo?.entries()??[]]))});const Jl=[],Vl=[],ol={};Fn.forEach(to=>{const{element:Lo,player:zo,instruction:ps}=to;if(Ie.has(Lo)){if(Er.has(Lo))return zo.onDestroy(()=>vt(Lo,ps.toStyles)),zo.disabled=!0,zo.overrideTotalTime(ps.totalTime),void ht.push(zo);let el=ol;if(Ro.size>1){let tl=Lo;const Tl=[];for(;tl=tl.parentNode;){const Ma=Ro.get(tl);if(Ma){el=Ma;break}Tl.push(tl)}Tl.forEach(Ma=>Ro.set(Ma,el))}const Za=this._buildAnimation(zo.namespaceId,ps,wl,Kt,yl,sc);if(zo.setRealPlayer(Za),el===ol)Jl.push(zo);else{const tl=this.playersByElement.get(el);tl&&tl.length&&(zo.parentPlayer=Z(tl)),ht.push(zo)}}else Ct(Lo,ps.fromStyles),zo.onDestroy(()=>vt(Lo,ps.toStyles)),Vl.push(zo),Er.has(Lo)&&ht.push(zo)}),Vl.forEach(to=>{const Lo=Kt.get(to.element);if(Lo&&Lo.length){const zo=Z(Lo);to.setRealPlayer(zo)}}),ht.forEach(to=>{to.parentPlayer?to.syncPlayerEvents(to.parentPlayer):to.destroy()});for(let to=0;to<rs.length;to++){const Lo=rs[to],zo=Lo[Ls];if(Pi(Lo,Cn),zo&&zo.hasAnimation)continue;let ps=[];if(ii.size){let Za=ii.get(Lo);Za&&Za.length&&ps.push(...Za);let tl=this.driver.query(Lo,yn,!0);for(let Tl=0;Tl<tl.length;Tl++){let Ma=ii.get(tl[Tl]);Ma&&Ma.length&&ps.push(...Ma)}}const el=ps.filter(Za=>!Za.destroyed);el.length?Qi(this,Lo,el):this.processLeaveNode(Lo)}return rs.length=0,Jl.forEach(to=>{this.players.push(to),to.onDone(()=>{to.destroy();const Lo=this.players.indexOf(to);this.players.splice(Lo,1)}),to.play()}),Jl}afterFlush(Te){this._flushFns.push(Te)}afterFlushAnimationsDone(Te){this._whenQuietFns.push(Te)}_getPreviousPlayers(Te,ze,Ie,ht,Kt){let Fn=[];if(ze){const ii=this.playersByQueriedElement.get(Te);ii&&(Fn=ii)}else{const ii=this.playersByElement.get(Te);if(ii){const Fi=!Kt||Kt==Hs;ii.forEach(Hi=>{Hi.queued||!Fi&&Hi.triggerName!=ht||Fn.push(Hi)})}}return(Ie||ht)&&(Fn=Fn.filter(ii=>!(Ie&&Ie!=ii.namespaceId||ht&&ht!=ii.triggerName))),Fn}_beforeAnimationBuild(Te,ze,Ie){const Kt=ze.element,Fn=ze.isRemovalTransition?void 0:Te,ii=ze.isRemovalTransition?void 0:ze.triggerName;for(const Fi of ze.timelines){const Hi=Fi.element,Er=Hi!==Kt,Vr=ke(Ie,Hi,[]);this._getPreviousPlayers(Hi,Er,Fn,ii,ze.toState).forEach(uo=>{const io=uo.getRealPlayer();io.beforeDestroy&&io.beforeDestroy(),uo.destroy(),Vr.push(uo)})}Ct(Kt,ze.fromStyles)}_buildAnimation(Te,ze,Ie,ht,Kt,Fn){const ii=ze.triggerName,Fi=ze.element,Hi=[],Er=new Set,Vr=new Set,Oo=ze.timelines.map(io=>{const Do=io.element;Er.add(Do);const rs=Do[Ls];if(rs&&rs.removedBeforeQueried)return new p.sf(io.duration,io.delay);const pa=Do!==Fi,Rs=function yi(Bt){const Te=[];return Di(Bt,Te),Te}((Ie.get(Do)||qr).map(wl=>wl.getRealPlayer())).filter(wl=>!!wl.element&&wl.element===Do),ka=Kt.get(Do),Da=Fn.get(Do),Ql=de(this._normalizer,io.keyframes,ka,Da),vc=this._buildPlayer(io,Ql,Rs);if(io.subTimeline&&ht&&Vr.add(Do),pa){const wl=new Pa(Te,ii,Do);wl.setRealPlayer(vc),Hi.push(wl)}return vc});Hi.forEach(io=>{ke(this.playersByQueriedElement,io.element,[]).push(io),io.onDone(()=>function ys(Bt,Te,ze){let Ie=Bt.get(Te);if(Ie){if(Ie.length){const ht=Ie.indexOf(ze);Ie.splice(ht,1)}0==Ie.length&&Bt.delete(Te)}return Ie}(this.playersByQueriedElement,io.element,io))}),Er.forEach(io=>ln(io,nn));const uo=Z(Oo);return uo.onDestroy(()=>{Er.forEach(io=>Pi(io,nn)),vt(Fi,ze.toStyles)}),Vr.forEach(io=>{ke(ht,io,[]).push(uo)}),uo}_buildPlayer(Te,ze,Ie){return ze.length>0?this.driver.animate(Te.element,ze,Te.duration,Te.delay,Te.easing,Ie):new p.sf(Te.duration,Te.delay)}}class Pa{constructor(Te,ze,Ie){this.namespaceId=Te,this.triggerName=ze,this.element=Ie,this._player=new p.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(Te){this._containsRealPlayer||(this._player=Te,this._queuedCallbacks.forEach((ze,Ie)=>{ze.forEach(ht=>ae(Te,Ie,void 0,ht))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(Te.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(Te){this.totalTime=Te}syncPlayerEvents(Te){const ze=this._player;ze.triggerCallback&&Te.onStart(()=>ze.triggerCallback("start")),Te.onDone(()=>this.finish()),Te.onDestroy(()=>this.destroy())}_queueEvent(Te,ze){ke(this._queuedCallbacks,Te,[]).push(ze)}onDone(Te){this.queued&&this._queueEvent("done",Te),this._player.onDone(Te)}onStart(Te){this.queued&&this._queueEvent("start",Te),this._player.onStart(Te)}onDestroy(Te){this.queued&&this._queueEvent("destroy",Te),this._player.onDestroy(Te)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(Te){this.queued||this._player.setPosition(Te)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(Te){const ze=this._player;ze.triggerCallback&&ze.triggerCallback(Te)}}function To(Bt){return Bt&&1===Bt.nodeType}function Gs(Bt,Te){const ze=Bt.style.display;return Bt.style.display=Te??"none",ze}function va(Bt,Te,ze,Ie,ht){const Kt=[];ze.forEach(Fi=>Kt.push(Gs(Fi)));const Fn=[];Ie.forEach((Fi,Hi)=>{const Er=new Map;Fi.forEach(Vr=>{const Oo=Te.computeStyle(Hi,Vr,ht);Er.set(Vr,Oo),(!Oo||0==Oo.length)&&(Hi[Ls]=ts,Fn.push(Hi))}),Bt.set(Hi,Er)});let ii=0;return ze.forEach(Fi=>Gs(Fi,Kt[ii++])),Fn}function Ca(Bt,Te){const ze=new Map;if(Bt.forEach(ii=>ze.set(ii,[])),0==Te.length)return ze;const ht=new Set(Te),Kt=new Map;function Fn(ii){if(!ii)return 1;let Fi=Kt.get(ii);if(Fi)return Fi;const Hi=ii.parentNode;return Fi=ze.has(Hi)?Hi:ht.has(Hi)?1:Fn(Hi),Kt.set(ii,Fi),Fi}return Te.forEach(ii=>{const Fi=Fn(ii);1!==Fi&&ze.get(Fi).push(ii)}),ze}function ln(Bt,Te){Bt.classList?.add(Te)}function Pi(Bt,Te){Bt.classList?.remove(Te)}function Qi(Bt,Te,ze){Z(ze).onDone(()=>Bt.processLeaveNode(Te))}function Di(Bt,Te){for(let ze=0;ze<Bt.length;ze++){const Ie=Bt[ze];Ie instanceof p.ui?Di(Ie.players,Te):Te.push(Ie)}}function Ki(Bt,Te,ze){const Ie=ze.get(Bt);if(!Ie)return!1;let ht=Te.get(Bt);return ht?Ie.forEach(Kt=>ht.add(Kt)):Te.set(Bt,Ie),ze.delete(Bt),!0}class Vi{constructor(Te,ze,Ie,ht){this._driver=ze,this._normalizer=Ie,this._triggerCache={},this.onRemovalComplete=(Kt,Fn)=>{},this._transitionEngine=new Ba(Te.body,ze,Ie,ht),this._timelineEngine=new vn(Te.body,ze,Ie),this._transitionEngine.onRemovalComplete=(Kt,Fn)=>this.onRemovalComplete(Kt,Fn)}registerTrigger(Te,ze,Ie,ht,Kt){const Fn=Te+"-"+ht;let ii=this._triggerCache[Fn];if(!ii){const Fi=[],Er=$n(this._driver,Kt,Fi,[]);if(Fi.length)throw function $(Bt,Te){return new l.wOt(3404,!1)}();ii=function Bs(Bt,Te,ze){return new li(Bt,Te,ze)}(ht,Er,this._normalizer),this._triggerCache[Fn]=ii}this._transitionEngine.registerTrigger(ze,ht,ii)}register(Te,ze){this._transitionEngine.register(Te,ze)}destroy(Te,ze){this._transitionEngine.destroy(Te,ze)}onInsert(Te,ze,Ie,ht){this._transitionEngine.insertNode(Te,ze,Ie,ht)}onRemove(Te,ze,Ie){this._transitionEngine.removeNode(Te,ze,Ie)}disableAnimations(Te,ze){this._transitionEngine.markElementAsDisabled(Te,ze)}process(Te,ze,Ie,ht){if("@"==Ie.charAt(0)){const[Kt,Fn]=De(Ie);this._timelineEngine.command(Kt,ze,Fn,ht)}else this._transitionEngine.trigger(Te,ze,Ie,ht)}listen(Te,ze,Ie,ht,Kt){if("@"==Ie.charAt(0)){const[Fn,ii]=De(Ie);return this._timelineEngine.listen(Fn,ze,ii,Kt)}return this._transitionEngine.listen(Te,ze,Ie,ht,Kt)}flush(Te=-1){this._transitionEngine.flush(Te)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(Te){this._transitionEngine.afterFlushAnimationsDone(Te)}}class nr{constructor(Te,ze,Ie){this._element=Te,this._startStyles=ze,this._endStyles=Ie,this._state=0;let ht=nr.initialStylesByElement.get(Te);ht||nr.initialStylesByElement.set(Te,ht=new Map),this._initialStyles=ht}start(){this._state<1&&(this._startStyles&&vt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vt(this._element,this._initialStyles),this._endStyles&&(vt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(nr.initialStylesByElement.delete(this._element),this._startStyles&&(Ct(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ct(this._element,this._endStyles),this._endStyles=null),vt(this._element,this._initialStyles),this._state=3)}}function en(Bt){let Te=null;return Bt.forEach((ze,Ie)=>{(function Wt(Bt){return"display"===Bt||"position"===Bt})(Ie)&&(Te=Te||new Map,Te.set(Ie,ze))}),Te}nr.initialStylesByElement=new WeakMap;class On{constructor(Te,ze,Ie,ht){this.element=Te,this.keyframes=ze,this.options=Ie,this._specialStyles=ht,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Ie.duration,this._delay=Ie.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Te=>Te()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const Te=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,Te,this.options),this._finalKeyframe=Te.length?Te[Te.length-1]:new Map;const ze=()=>this._onFinish();this.domPlayer.addEventListener("finish",ze),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",ze)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(Te){const ze=[];return Te.forEach(Ie=>{ze.push(Object.fromEntries(Ie))}),ze}_triggerWebAnimation(Te,ze,Ie){return Te.animate(this._convertKeyframesToObject(ze),Ie)}onStart(Te){this._originalOnStartFns.push(Te),this._onStartFns.push(Te)}onDone(Te){this._originalOnDoneFns.push(Te),this._onDoneFns.push(Te)}onDestroy(Te){this._onDestroyFns.push(Te)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(Te=>Te()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(Te=>Te()),this._onDestroyFns=[])}setPosition(Te){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=Te*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const Te=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Ie,ht)=>{"offset"!==ht&&Te.set(ht,this._finished?Ie:At(this.element,ht))}),this.currentSnapshot=Te}triggerCallback(Te){const ze="start"===Te?this._onStartFns:this._onDoneFns;ze.forEach(Ie=>Ie()),ze.length=0}}class Nt{validateStyleProperty(Te){return!0}validateAnimatableStyleProperty(Te){return!0}matchesElement(Te,ze){return!1}containsElement(Te,ze){return Ze(Te,ze)}getParentElement(Te){return je(Te)}query(Te,ze,Ie){return et(Te,ze,Ie)}computeStyle(Te,ze,Ie){return At(Te,ze)}animate(Te,ze,Ie,ht,Kt,Fn=[]){const Fi={duration:Ie,delay:ht,fill:0==ht?"both":"forwards"};Kt&&(Fi.easing=Kt);const Hi=new Map,Er=Fn.filter(uo=>uo instanceof On);(function wt(Bt,Te){return 0===Bt||0===Te})(Ie,ht)&&Er.forEach(uo=>{uo.currentSnapshot.forEach((io,Do)=>Hi.set(Do,io))});let Vr=function Ne(Bt){return Bt.length?Bt[0]instanceof Map?Bt:Bt.map(Te=>new Map(Object.entries(Te))):[]}(ze).map(uo=>new Map(uo));Vr=function Un(Bt,Te,ze){if(ze.size&&Te.length){let Ie=Te[0],ht=[];if(ze.forEach((Kt,Fn)=>{Ie.has(Fn)||ht.push(Fn),Ie.set(Fn,Kt)}),ht.length)for(let Kt=1;Kt<Te.length;Kt++){let Fn=Te[Kt];ht.forEach(ii=>Fn.set(ii,At(Bt,ii)))}}return Te}(Te,Vr,Hi);const Oo=function Mr(Bt,Te){let ze=null,Ie=null;return Array.isArray(Te)&&Te.length?(ze=en(Te[0]),Te.length>1&&(Ie=en(Te[Te.length-1]))):Te instanceof Map&&(ze=en(Te)),ze||Ie?new nr(Bt,ze,Ie):null}(Te,Vr);return new On(Te,Vr,Fi,Oo)}}const tr="@.disabled";class mo{constructor(Te,ze,Ie,ht){this.namespaceId=Te,this.delegate=ze,this.engine=Ie,this._onDestroy=ht,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(Te){this.delegate.destroyNode?.(Te)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(Te,ze){return this.delegate.createElement(Te,ze)}createComment(Te){return this.delegate.createComment(Te)}createText(Te){return this.delegate.createText(Te)}appendChild(Te,ze){this.delegate.appendChild(Te,ze),this.engine.onInsert(this.namespaceId,ze,Te,!1)}insertBefore(Te,ze,Ie,ht=!0){this.delegate.insertBefore(Te,ze,Ie),this.engine.onInsert(this.namespaceId,ze,Te,ht)}removeChild(Te,ze,Ie){this.engine.onRemove(this.namespaceId,ze,this.delegate)}selectRootElement(Te,ze){return this.delegate.selectRootElement(Te,ze)}parentNode(Te){return this.delegate.parentNode(Te)}nextSibling(Te){return this.delegate.nextSibling(Te)}setAttribute(Te,ze,Ie,ht){this.delegate.setAttribute(Te,ze,Ie,ht)}removeAttribute(Te,ze,Ie){this.delegate.removeAttribute(Te,ze,Ie)}addClass(Te,ze){this.delegate.addClass(Te,ze)}removeClass(Te,ze){this.delegate.removeClass(Te,ze)}setStyle(Te,ze,Ie,ht){this.delegate.setStyle(Te,ze,Ie,ht)}removeStyle(Te,ze,Ie){this.delegate.removeStyle(Te,ze,Ie)}setProperty(Te,ze,Ie){"@"==ze.charAt(0)&&ze==tr?this.disableAnimations(Te,!!Ie):this.delegate.setProperty(Te,ze,Ie)}setValue(Te,ze){this.delegate.setValue(Te,ze)}listen(Te,ze,Ie){return this.delegate.listen(Te,ze,Ie)}disableAnimations(Te,ze){this.engine.disableAnimations(Te,ze)}}class Bo extends mo{constructor(Te,ze,Ie,ht,Kt){super(ze,Ie,ht,Kt),this.factory=Te,this.namespaceId=ze}setProperty(Te,ze,Ie){"@"==ze.charAt(0)?"."==ze.charAt(1)&&ze==tr?this.disableAnimations(Te,Ie=void 0===Ie||!!Ie):this.engine.process(this.namespaceId,Te,ze.slice(1),Ie):this.delegate.setProperty(Te,ze,Ie)}listen(Te,ze,Ie){if("@"==ze.charAt(0)){const ht=function is(Bt){switch(Bt){case"body":return document.body;case"document":return document;case"window":return window;default:return Bt}}(Te);let Kt=ze.slice(1),Fn="";return"@"!=Kt.charAt(0)&&([Kt,Fn]=function ha(Bt){const Te=Bt.indexOf(".");return[Bt.substring(0,Te),Bt.slice(Te+1)]}(Kt)),this.engine.listen(this.namespaceId,ht,Kt,Fn,ii=>{this.factory.scheduleListenerCallback(ii._data||-1,Ie,ii)})}return this.delegate.listen(Te,ze,Ie)}}class Ys{constructor(Te,ze,Ie){this.delegate=Te,this.engine=ze,this._zone=Ie,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,ze.onRemovalComplete=(ht,Kt)=>{const Fn=Kt?.parentNode(ht);Fn&&Kt.removeChild(Fn,ht)}}createRenderer(Te,ze){const ht=this.delegate.createRenderer(Te,ze);if(!Te||!ze?.data?.animation){const Hi=this._rendererCache;let Er=Hi.get(ht);return Er||(Er=new mo("",ht,this.engine,()=>Hi.delete(ht)),Hi.set(ht,Er)),Er}const Kt=ze.id,Fn=ze.id+"-"+this._currentId;this._currentId++,this.engine.register(Fn,Te);const ii=Hi=>{Array.isArray(Hi)?Hi.forEach(ii):this.engine.registerTrigger(Kt,Fn,Te,Hi.name,Hi)};return ze.data.animation.forEach(ii),new Bo(this,Fn,ht,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(Te,ze,Ie){if(Te>=0&&Te<this._microtaskId)return void this._zone.run(()=>ze(Ie));const ht=this._animationCallbacksBuffer;0==ht.length&&queueMicrotask(()=>{this._zone.run(()=>{ht.forEach(Kt=>{const[Fn,ii]=Kt;Fn(ii)}),this._animationCallbacksBuffer=[]})}),ht.push([ze,Ie])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}var Po=d(61142);const Tt=[{provide:Gt,useFactory:function oa(){return new pi}},{provide:Vi,useClass:(()=>{var Bt;class Te extends Vi{constructor(Ie,ht,Kt){super(Ie,ht,Kt,(0,l.WQX)(l.An2,{optional:!0}))}ngOnDestroy(){this.flush()}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)(l.KVO(Po.qQ),l.KVO(ct),l.KVO(Gt))},Bt.\u0275prov=l.jDH({token:Bt,factory:Bt.\u0275fac}),Te})()},{provide:l._9s,useFactory:function Ht(Bt,Te,ze){return new Ys(Bt,Te,ze)},deps:[n.B7,Vi,l.SKi]}],Ln=[{provide:ct,useFactory:()=>new Nt},{provide:l.bc$,useValue:"BrowserAnimations"},...Tt],jt=[{provide:ct,useClass:un},{provide:l.bc$,useValue:"NoopAnimations"},...Tt];let ti=(()=>{var Bt;class Te{static withConfig(Ie){return{ngModule:Te,providers:Ie.disableAnimations?jt:Ln}}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275mod=l.$C({type:Bt}),Bt.\u0275inj=l.G2t({providers:Ln,imports:[n.Bb]}),Te})();var sa=d(94485),fs=d(17617),zr=d(3567),eo=d(74931),Io=d(43848),Jr=d(75707),kr=d(14714),Sa=d(91384),rl=d(20381),as=d(31315),ho=d(26875),rr=d(78812),ga=d(57258),aa=d(83915);const ea={userId:"",core:{displayName:"",primaryEmail:"",birthdate:"",preferredLocale:"",primaryEmailVerified:"",created:"",lastLogin:"",passwordLastChanged:"",linkedAccounts:{}},privacySettings:{},isAuthenticated:!1};class za{constructor(){}}class dl{static encode(Te){const ze=new dl;return ze.data=window.btoa(encodeURIComponent(JSON.stringify(Te))),ze}static decode(Te){return JSON.parse(decodeURIComponent(window.atob(Te.data)))}}class Co{static loadFrom(Te,ze){const Ie=(0,ho.isEmpty)(ze)?"session":`sdk/${ze}/session`;return Te.readBlock(Ie).pipe((0,Jr.ZZ)(ht=>(0,Io.of)(new Co(dl.decode(ht)))))}constructor(Te){this.data=(0,ho.isNil)(Te)?{userToken:null,user:ea}:Te}get user(){return this.data.user}set user(Te){this.data.user=Te}get sessionToken(){return this.sessionTokenString}set sessionToken(Te){this.sessionTokenString=Te}get userToken(){return this.data.userToken}set userToken(Te){this.data.userToken=Te}hasUserToken(){return!(0,ho.isNil)(this.data.userToken)}hasSessionToken(){return!(0,ho.isNil)(this.sessionToken)}writeTo(Te,ze){const Ie=(0,ho.isEmpty)(ze)?"session":`sdk/${ze}/session`;return Te.writeBlock(Ie,dl.encode(this.data))}get affiliateStatus(){return this.data.isAffiliated}set affiliateStatus(Te){this.data.isAffiliated=Te}get expiry(){return this.data.expiry}set expiry(Te){this.data.expiry=Te}}var Ws=function(Bt){return Bt.ShowLoginDialogStarted="Showing Login Dialog",Bt.ShowLoginDialogCompleted="Login Dialog Shown",Bt.LoginStarted="Login Started",Bt.LoginCompleted="Login Completed",Bt.LoginAbortedByUser="Login Aborted: User Cancelled Login",Bt.LoginAbortedAlreadyLoggedIn="Login Aborted: Already Logged In",Bt.LoginFailed="Login Failed",Bt.LogoutStarted="Logout Started",Bt.LogoutCompleted="Logout Complted",Bt.LogoutFailed="Logout Failed",Bt}(Ws||{});let Oa=(()=>{var Bt;class Te{}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275prov=l.jDH({token:Bt,factory:Bt.\u0275fac}),Te})();var Pr=function(Bt){return Bt.Browser="Browser",Bt.Cef="Cef",Bt.Android="Android",Bt}(Pr||{}),Cl=d(35146),Zo=d(59859),Ai=d(99047),lt=d(10174),An=d(8619),St=d(43615),Ve=d(32727),qe=d(21333);class hn extends qe.yN{constructor(Te){super("Could not fetch delegate token",Te)}}class hi extends qe.yN{constructor(){super("invalid or missing userSession parameter",null)}}var sr=d(90929),le=d(27731),Nn=d(15652),So=d(93181),Mo=d(65706),Ao=d(5798),Wo=d(2490),ta=d(14709);const bo="JARVIS",Ns=".com",Sl=3e4,fc=2,_c=1e3;let Ml=(()=>{var Bt;class Te{constructor(Ie,ht,Kt,Fn,ii,Fi,Hi,Er){this.jarvisConfig=Ie,this.endpointFactory=ht,this.bridgeService=Kt,this.systemInfoService=Fn,this.distributedtracingUtilService=ii,this.appConfig=Fi;const{defaultRetries:Vr=fc,defaultTimeBetweenRetries:Oo=_c,defaultTimeout:uo=Sl}=Ie,rs={config:{maxRetries:Vr,timeout:uo,timeBetweenRetries:Oo}},pa={config:{timeout:1e4,maxRetries:Vr,timeBetweenRetries:Oo}};this.endpointDelegateRequest=this.endpointFactory.createEndpoint(rs),this.endpointDelegateRedeem=this.endpointFactory.createEndpoint(rs),this.endpointUserLogin=this.endpointFactory.createEndpoint(rs),this.endpointClientLogin=this.endpointFactory.createEndpoint(rs),this.endpointClientChain=this.endpointFactory.createEndpoint(rs),this.endpointProfileUser=this.endpointFactory.createEndpoint(rs),this.endpointThirdPartyProvider=this.endpointFactory.createEndpoint(rs),this.endpointRequestVerify=this.endpointFactory.createEndpoint(rs),this.endpointProxyCall=this.endpointFactory.createEndpoint(rs),this.endpointPingServer=this.endpointFactory.createEndpoint(pa),this.logger=Hi.getLogger("libraries/jarvis-http.service"),this.fastestDomainStream=Er.createStream(this.getFastestJarvisDomain.bind(this))}get accountsUrl$(){return this.fastestDomainStream.get$().pipe((0,Mo.s)(1),(0,aa.T)(Ie=>this.jarvisConfig.accountsUrl.replace(Ns,Ie)))}get serverUrl$(){return this.fastestDomainStream.get$().pipe((0,Mo.s)(1),(0,aa.T)(Ie=>this.jarvisConfig.url.replace(Ns,Ie)))}getFastestJarvisDomain(){const Ie={reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Ping"}};let ht=0;const Kt=this.distributedtracingUtilService.startSpan(Wo.pB.GetFastestDomain),Fn=[],ii=Date.now();return this.jarvisConfig.urlDomains.forEach(Fi=>{const Hi=this.jarvisConfig.url.replace(`${Ns}/api/1`,`${Fi}/ping`),Er=this.endpointPingServer.get(Hi,Ie).pipe((0,Sa.M)(()=>this.logger.info("url",Hi,"response time",Date.now()-ii)));Fn.push(this.distributedtracingUtilService.handleHttpEndpointSpan(Er,Ie,Wo.pB.JarvisPing,Kt).pipe((0,lt.u)(Fi),(0,Sa.M)(()=>{this.logger.info(`Jarvis domain set to ${Fi}`),Kt&&this.distributedtracingUtilService.setSpanAttribute(Kt,Wo.NS.Error,!1)}),(0,kr.W)(Vr=>(this.logger.error(`Ping request to ${Hi} failed with error ${Vr}`),ht++,ht>=this.jarvisConfig.urlDomains.length?(this.logger.error("All pings to jarvis servers failed, selecting default"),Kt&&this.distributedtracingUtilService.setSpanAttribute(Kt,Wo.NS.Error,!0),(0,Io.of)(Ns)):le.t))))}),(0,Nn.O4)(Fn).pipe((0,Sa.M)(Fi=>{Kt&&this.distributedtracingUtilService.setSpanAttribute(Kt,Wo.NS.FastestJarvisDomain,Fi),this.distributedtracingUtilService.closeSpan(Kt)}))}getLoginToken(Ie){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing accessCode parameter");const Kt={body:{grant_type:"authorization_code",scope:"Any",code:Ie,redirect_uri:this.jarvisConfig.redirectUrl,client_id:this.jarvisConfig.clientId},reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Get_Login_Token"}};return this.serverUrl$.pipe((0,Jr.ZZ)(Fn=>this.endpointDelegateRequest.post(`${Fn}/oauth/resource`,Kt)))}getDelegateToken(Ie,ht,Kt){if((0,ho.isNil)(Ie)||0===Ie.trim().length)return(0,Zo.$)(new hi);const ii={body:{clientId:ht},headers:this.getJarvisAuthorizeHeaders(`${Ie}:`),reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Get_Delegate_Token"}},Fi=this.serverUrl$.pipe((0,Jr.ZZ)(Hi=>this.endpointUserLogin.post(`${Hi}/authentication/delegate/request`,ii)));return this.distributedtracingUtilService.handleHttpEndpointSpan(Fi,ii,Wo.pB.DelegateToken,Kt)}proxyPost(Ie,ht,Kt,Fn){const ii={body:Fn,headers:this.getJarvisAuthorizeHeaders(`${Ie}:`),params:Kt};return this.serverUrl$.pipe((0,Jr.ZZ)(Fi=>this.endpointProxyCall.post(`${Fi}/proxy/${ht}`,ii)))}redeemDelegateToken(Ie,ht){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing delegateToken parameter");return(0,So.p)([this.systemInfoService.getSystemInfo([zr.Lu.DeviceId]),this.serverUrl$]).pipe((0,Jr.ZZ)(([Kt,Fn])=>{const Fi={body:{clientId:this.jarvisConfig.clientId,clientDescription:this.jarvisConfig.clientDescription,deviceId:Kt.DeviceId,scope:ht||"session_token"},headers:this.getJarvisAuthorizeHeaders(`${Ie}:`),reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Redeem_Delegate_Token"}};return this.endpointDelegateRedeem.post(`${Fn}/authentication/delegate/redeem`,Fi)}))}getUserToken(Ie){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing loginToken parameter");return(0,So.p)([this.systemInfoService.getSystemInfo([zr.Lu.SystemName,zr.Lu.DeviceId]),this.serverUrl$]).pipe((0,Jr.ZZ)(([ht,Kt])=>{const ii={body:{clientId:this.jarvisConfig.clientId,clientDescription:this.jarvisConfig.clientDescription,deviceDescription:ht.SystemName,deviceId:ht.DeviceId},headers:this.getJarvisAuthorizeHeaders(`${Ie}:`),reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Get_User_Token"}};return this.endpointUserLogin.post(`${Kt}/authentication/user/login`,ii)}),(0,kr.W)(ht=>(this.logger.error("Error while accessing the endpoint",ht),(0,Zo.$)(ht))))}getSessionToken(Ie){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing userToken parameter");return(0,So.p)([this.systemInfoService.getSystemInfo([zr.Lu.DeviceId]),this.serverUrl$]).pipe((0,Jr.ZZ)(([ht,Kt])=>{const ii={body:{clientCapabilities:["OAuthPortal"],clientId:this.jarvisConfig.clientId,clientDescription:this.jarvisConfig.clientDescription.replace("{VERSION}",this.appConfig.get().build.version),deviceId:ht.DeviceId},headers:this.getJarvisAuthorizeHeaders(`${Ie}:`),reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Get_Session_Token"}};return this.endpointClientLogin.post(`${Kt}/authentication/client/login`,ii)}))}chainSession(Ie){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing userSession parameter");return(0,So.p)([this.systemInfoService.getSystemInfo([zr.Lu.DeviceId]),this.serverUrl$]).pipe((0,Jr.ZZ)(([ht,Kt])=>{const ii={body:{clientId:this.jarvisConfig.clientId,deviceId:ht.DeviceId},headers:this.getJarvisAuthorizeHeaders(`${Ie}:`),reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Chain_Session"}};return this.endpointClientChain.post(`${Kt}/authentication/client/chain`,ii)}))}getUserInfo(Ie){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing sessionToken parameter");const ht={headers:this.getJarvisAuthorizeHeaders(`${Ie}:`),reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Get_User_Info"}};return this.serverUrl$.pipe((0,Jr.ZZ)(Kt=>this.endpointProfileUser.get(`${Kt}/profile/user`,ht)))}getProviderInfo(Ie){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing sessionToken parameter");const ht={headers:this.getJarvisAuthorizeHeaders(`${Ie}:`),reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Get_Third_Party_Provider_Info"}};return this.serverUrl$.pipe((0,Jr.ZZ)(Kt=>this.endpointThirdPartyProvider.get(`${Kt}/authentication/hints/token/linkedaccount`,ht)))}requestEmailVerify(Ie){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing emailAddress parameter");const ht={body:{email:Ie},reportRequestData:{originalService:bo,serviceUseCase:"JARVIS_Request_Email_Verify"}};return this.serverUrl$.pipe((0,Jr.ZZ)(Kt=>this.endpointRequestVerify.post(`${Kt}/profile/user/email/requestverify`,ht)))}getJarvisAuthorizeHeaders(Ie){const ht=window.btoa(Ie);return{[Ao.SA.authorization]:`Basic ${ht}`}}getDeviceId(){return this.bridgeService.executeCommand(eo.Od.GenericCommand("QUERY_DEVICE_ID","",""),{})}getSharedUserData(Ie,ht,Kt){if((0,ho.isNil)(Ie)||0===Ie.trim().length)throw new Error("invalid or missing userSession parameter");const Fn={headers:this.getJarvisAuthorizeHeaders(`${Ie}:`)};return this.serverUrl$.pipe((0,Jr.ZZ)(ii=>this.endpointUserLogin.get(`${ii}/datastore/user/shared/${ht}/client/${Kt}`,Fn)))}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)(l.KVO(Oa),l.KVO(Ao.t),l.KVO(zr.NZ),l.KVO(zr.zW),l.KVO(Wo.Z1),l.KVO(ta.oO),l.KVO(zr.J6),l.KVO(Ve.mZ))},Bt.\u0275prov=l.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Te})();var Ul=d(26513),tc=d(36877),Ic=d(892),nc=d(72147),na=d(28653),ul=d(25590),zl=d(34593);let Lt=(()=>{var Bt;class Te{constructor(Ie,ht,Kt,Fn){this.bridgeService=Ie,this.nativeEventService=Kt,this.distributedTracingUtilService=Fn,this.checkWindowOpenInterval=200,this.loginWindow=null,this.isWindowOpen=new Ul.t(!1),this.logger=ht.getLogger("jarvis/o-auth")}oAuthLogin(Ie,ht){if(!Ie||0===Ie.trim().length)throw new Error("invalid or missing Login Url");if(!ht)throw new Error("invalid or missing OAuth Config");const Kt=this.getWindowParamsString(ht.windowParams),Fn=this.distributedTracingUtilService.startSpan(Wo.pB.JarvisOAuth);Ie=this.distributedTracingUtilService.getFormattedUrlForHttpPopupSpan(Ie,Fn);const ii=(0,tc.R)(window,"message").pipe((0,An.p)(Hi=>this.validateMessageEvent(Hi)),(0,aa.T)(Hi=>(this.logger.info("Captured OAuth data via post message:",Hi.data),Hi.data.error?this.distributedTracingUtilService.closeHttpPopupSpan(Fn,!0,Hi.data.error):this.distributedTracingUtilService.closeHttpPopupSpan(Fn,!1,{failedUrl:Ie,errorCode:"",errorText:""}),this.loginWindow.close(),this.isWindowOpen.next(!1),this.getMessageAccessCode(Hi))),(0,Ai.$)());this.loginWindow=window.open(Ie,ht.popUpWindowName,Kt),this.logger.info("login window opened with url",Ie),this.isWindowOpen.next(!0);const Fi=(0,tc.R)(window,"focus").pipe((0,nc.n)(Hi=>(Hi&&Hi.preventDefault(),this.bridgeService.executeCommand(eo.Ts.Common.Windowcontrol.Focus,{name:"app_oauth_window_with_back_button"})))).subscribe(Hi=>{},Hi=>{this.logger.error("Failed to set focus with error: ",Hi)});if(ht.useAppUrl){const Hi=(0,Ic.Y)(this.checkWindowOpenInterval).pipe((0,na.j)(()=>!this.loginWindow.closed),(0,aa.T)(Vr=>(this.isWindowOpen.next(!1),Fi.unsubscribe(),null)),(0,Ai.$)()),Er=this.nativeEventService.getNativeEvent$(zr.D4.RouteChange).pipe((0,An.p)(Vr=>Vr.newRoute.startsWith("oauth/")),(0,aa.T)(Vr=>(this.isWindowOpen.next(!1),Fi.unsubscribe(),this.loginWindow.close(),this.getUrlAccessCode(Vr.newRoute))),(0,Ai.$)());return(0,Nn.O4)(Hi,Er)}return(0,Ic.Y)(this.checkWindowOpenInterval).pipe((0,na.j)(()=>!this.loginWindow.closed),(0,ul.E)(ii.pipe((0,zl.Z)(null))),(0,aa.T)(([Hi,Er])=>(this.isWindowOpen.next(!1),Fi.unsubscribe(),Er)),(0,Ai.$)())}checkIsWindowOpen(){return this.isWindowOpen.asObservable()}tryCloseOAuthWindow(){null!==this.loginWindow&&!this.loginWindow.closed&&this.loginWindow.close()}getWindowParamsString(Ie={}){let ht="";Ie.toolbar&&(ht+=`toolbar=${Ie.toolbar},`),Ie.location&&(ht+=`location=${Ie.location},`),Ie.menubar&&(ht+=`menubar=${Ie.menubar},`),Ie.fullscreen&&(ht+=`fullscreen=${Ie.fullscreen},`),Ie.resizable&&(ht+=`resizable=${Ie.resizable},`),Ie.scrollbars&&(ht+=`scrollbars=${Ie.scrollbars},`);const Kt=Ie.width?Ie.width:window.innerWidth,Fn=Ie.height?Ie.height:window.innerHeight,ii=Ie.top?Ie.top:window.screenY+window.innerHeight/2-Fn/2;return ht+=`width=${Kt},`,ht+=`height=${Fn},`,ht+=`left=${Ie.left?Ie.left:window.screenX+window.innerWidth/2-Kt/2},`,ht+=`top=${ii},`,ht}validateMessageEvent(Ie){let ht=Ie&&Ie.data;return zr.zk.isBrowserPlatform()&&(ht=ht&&Ie.origin===window.location.origin&&"oauth"===Ie.data.key),!!ht}getCodeFromLocalStorage(Ie){const ht=window.localStorage.getItem(Ie);window.localStorage.removeItem(Ie);try{return JSON.parse(ht)}catch{return this.logger.error("malformed access code object",ht),null}}getMessageAccessCode(Ie){let ht;return ht=zr.zk.isBrowserPlatform()?this.getCodeFromLocalStorage((0,ho.get)(Ie,"data.key")):Ie.data,(0,ho.get)(ht,"code")}getUrlAccessCode(Ie){const ht=Ie.indexOf("?")>-1?Ie.split("?"):Ie.split("#/");if(ht.length>1){let Kt=new URLSearchParams(ht[1]).get("code");const Fn=new URLSearchParams(ht[1]).get("access_token");return Kt?Kt=Kt.split("#/")[0]:Fn&&(Kt=Fn),Kt}return""}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)(l.KVO(zr.NZ),l.KVO(zr.J6),l.KVO(zr.dU),l.KVO(Wo.Z1))},Bt.\u0275prov=l.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Te})();var Kn=d(72945),ft=function(Bt){return Bt.ALREADY_LOGGED_IN="Already logged in",Bt.USER_ABORTED_LOGIN="User aborted login",Bt}(ft||{});let Gn=(()=>{var Bt;class Te extends za{constructor(Ie,ht,Kt,Fn,ii,Fi,Hi,Er,Vr,Oo){super(),this.config=Ie,this.jarvisHttpService=Kt,this.oAuthService=Fn,this.sharedStorage=ii,this.bridgeService=Fi,this.localeService=Hi,this.networkStatus=Vr,this.gfnSdkService=Oo,this.SAFE_RETRY_COUNT=5,this.activelyRenewingsession=!1,this.loginTransitionSubject=new ga.m(1),this.logger=ht.getLogger("jarvis/desktop"),this.logger.info("initialize"),Ie.sdkClient&&this.logger.info("Running in GFN SDK mode for SDK client",Ie.sdkClient),window.name!==Ie.appWindowName&&(window.name=Ie.appWindowName),this.sessionTokenSubscription=Er.createStream(this.getSession.bind(this)),this.jarvisUserSubscription=Er.createStream(this.getCurrentUser.bind(this)),this.refreshUser()}get sessionToken(){return this.sessionTokenSubscription.get$().pipe((0,Ai.$)())}handleError(Ie,ht){this.logger.error(Ie),ht.next(!1),ht.complete()}clearCookies(){const Ie=this.bridgeService.executeCommand(eo.Ts.Common.Applicationcontrol.DeleteCookies,{url:".facebook.com",cookiename:""}),ht=this.bridgeService.executeCommand(eo.Ts.Common.Applicationcontrol.DeleteCookies,{url:".google.com",cookiename:""});return(0,Cl.yU)(Ie,ht)}updateTransitionState(Ie,ht,Kt){const Fn=Ie?"loading":"not loading";(0,ho.isNil)(Kt)?(this.logger.info(`Jarvis state has changed to [${ht}] and is now ${Fn}`),this.loginTransitionSubject.next({state:ht,isLoading:Ie})):(this.logger.error(`Jarvis state has changed to [${ht}] and is now ${Fn} with error: ${Kt}`),this.loginTransitionSubject.next({state:ht,isLoading:Ie,error:Kt}))}login(Ie=!1,ht){this.updateTransitionState(!0,Ws.ShowLoginDialogStarted);const Kt=new ga.m(1);return(0,Cl.yU)(this.jarvisUserSubscription.get$(),this.localeService.localeChanged).pipe((0,Ai.$)(),(0,Jr.ZZ)(([Fn,ii])=>Fn.userId===ea.userId||Ie?(this.authServiceSubscription&&this.authServiceSubscription.unsubscribe(),this.buildJarvisUrl(this.config,ii,ht)):(this.updateTransitionState(!1,Ws.ShowLoginDialogCompleted),(0,Zo.$)(ft.ALREADY_LOGGED_IN))),(0,Jr.ZZ)(Fn=>this.clearCookies().pipe((0,lt.u)(Fn))),(0,Sa.M)(()=>this.updateTransitionState(!1,Ws.ShowLoginDialogCompleted)),(0,Jr.ZZ)(Fn=>this.oAuthService.oAuthLogin(Fn,this.config.oAuthConfig)),(0,Jr.ZZ)(Fn=>(0,ho.isNil)(Fn)?(0,Zo.$)(ft.USER_ABORTED_LOGIN):(0,Io.of)(Fn)),(0,Sa.M)(()=>this.updateTransitionState(!0,Ws.LoginStarted)),(0,Jr.ZZ)(Fn=>this.attemptLogin(Fn))).subscribe(()=>{Kt.next(!0),Kt.complete(),this.updateTransitionState(!1,Ws.LoginCompleted)},Fn=>{switch(Fn){case ft.ALREADY_LOGGED_IN:Kt.next(!0),Kt.complete(),this.updateTransitionState(!1,Ws.LoginAbortedAlreadyLoggedIn);break;case ft.USER_ABORTED_LOGIN:Kt.next(!0),Kt.complete(),this.updateTransitionState(!1,Ws.LoginAbortedByUser);break;default:this.updateTransitionState(!1,Ws.LoginFailed,Fn),this.handleError(Fn,Kt)}}),Kt.asObservable()}logout(){this.updateTransitionState(!0,Ws.LogoutStarted);const Ie=new ga.m(1);return this.storeSession(new Co).subscribe(ht=>{this.sessionTokenSubscription.refresh().pipe((0,Jr.ZZ)(()=>this.jarvisUserSubscription.refresh())).subscribe(()=>{this.logger.info("Logging out user."),Ie.next(!0),Ie.complete(),this.updateTransitionState(!1,Ws.LogoutCompleted)})},ht=>(this.updateTransitionState(!1,Ws.LogoutFailed,ht),this.handleError(ht,Ie))),Ie.asObservable()}refreshUser(){return this.refreshSession().pipe((0,Jr.ZZ)(Ie=>this.jarvisUserSubscription.refresh()))}refreshSession(){return this.activelyRenewingsession?this.sessionToken:(this.activelyRenewingsession=!0,this.sessionTokenSubscription.refresh().pipe((0,Sa.M)(()=>this.activelyRenewingsession=!1)))}requestVerificationEmail(Ie){return this.jarvisHttpService.requestEmailVerify(Ie).pipe((0,lt.u)(!0),(0,kr.W)(ht=>(this.logger.error(ht),(0,Io.of)(!1))))}getDelegateToken(Ie,ht=!1,Kt){return this.safelyFetchData(Fn=>Fn.hasSessionToken()?this.jarvisHttpService.getDelegateToken(Fn.sessionToken,Ie,Kt).pipe((0,aa.T)(ii=>({delegateToken:ii.delegateToken,expiration:new Date(ii.expiration)})),(0,kr.W)((ii,Fi)=>(this.logger.warn("Could not get delegate token.",ii),(0,Zo.$)(ii)))):(0,Io.of)(null),null,ht).pipe((0,kr.W)(Fn=>(0,Zo.$)(Fn instanceof hi?Fn:new hn(Fn))))}proxyPost(Ie,ht,Kt,Fn){return this.safelyFetchData(ii=>ii.hasSessionToken()?this.jarvisHttpService.proxyPost(ii.sessionToken,Ie+"/"+ht,Kt,Fn):(0,Io.of)(null),null,!0)}get accountsUrl$(){return this.jarvisHttpService.accountsUrl$}get accountStatusChanged(){let Ie;return this.jarvisUserSubscription.get$().pipe((0,An.p)(ht=>(0,ho.isNil)(Ie)||!(0,ho.isEqual)(Ie.userId,ht.userId)||!(0,ho.isEqual)(Ie.core.primaryEmailVerified,ht.core.primaryEmailVerified)),(0,Sa.M)(ht=>{Ie=ht}))}getThirdPartyProviderInfo(){return this.safelyFetchData(Ie=>Ie.hasSessionToken()?this.jarvisHttpService.getProviderInfo(Ie.sessionToken).pipe((0,aa.T)(ht=>(this.logger.info("Provider received: ",ht),ht)),(0,kr.W)(ht=>(this.logger.error("Error to fetch Provider: ",ht),404===ht.status?(this.logger.info("Handling as user logged in through native provider"),(0,Io.of)(null)):(0,Zo.$)(ht)))):(0,Zo.$)("Has no session token"),null,!0)}get jarvisUserDataChanged(){let Ie;return this.jarvisUserSubscription.get$().pipe((0,An.p)(ht=>!(0,ho.isEqual)(Ie,ht)),(0,aa.T)(ht=>(Ie=ht,{newJarvisUser:ht,oldJarvisUser:Ie})))}get loginTransitionState(){return this.loginTransitionSubject.asObservable()}get isUserTokenAvailable(){return(0,ho.isNil)(this.session)?(this.logger.info("Loading session object from shared storage to check if user token is present"),Co.loadFrom(this.sharedStorage,this.config.sdkClient).pipe((0,aa.T)(Ie=>Ie.hasUserToken()),(0,kr.W)(()=>(0,Io.of)(!1)))):(0,Io.of)(this.session.hasUserToken())}getSharedUserData(Ie,ht,Kt=!1){return this.safelyFetchData(Fn=>Fn.hasSessionToken()?this.jarvisHttpService.getSharedUserData(Fn.sessionToken,Ie,ht):(0,Io.of)(null),null,Kt)}getStoredSessionProperty(Ie){let ht;return(0,ho.isNil)(this.session)?(this.logger.info("Reading session from sharedstorage"),ht=Co.loadFrom(this.sharedStorage,this.config.sdkClient).pipe((0,kr.W)(()=>(0,Io.of)(new Co)))):(this.logger.info("Session Info available in memory"),ht=(0,Io.of)(this.session)),ht.pipe((0,aa.T)(Kt=>{const Fn=Ie(Kt);let ii=!1;const Fi=new Date;return ii=!(!(0,ho.isNil)(Kt.expiry)&&!(0,ho.isNil)(Fn))||new Date(Kt.expiry)<=Fi,{data:Fn,expired:ii}}))}get cachedUser(){return this.logger.info("Fetching the cached user"),this.getStoredSessionProperty(Ie=>Ie.user)}get cachedUserAndAffiliateStatus(){return this.logger.info("Fetching the cached user and affiliate status"),this.getStoredSessionProperty(Ie=>[Ie.user,Ie.affiliateStatus])}get cachedAffiliateStatus(){return this.logger.info("Fetching cached affiliate status"),this.getStoredSessionProperty(Ie=>Ie.affiliateStatus)}setCachedAffiliateStatus(Ie){return Ie!==this.session.affiliateStatus?(this.logger.info("Updating the affiliate status to:",Ie),this.session.affiliateStatus=Ie,this.storeSession(this.session).pipe((0,lt.u)(Ie))):(this.logger.info("Skipping the affiliate status update shared storage"),(0,Io.of)(Ie))}attemptLogin(Ie){const ht=new Co;return this.jarvisHttpService.getLoginToken(Ie).pipe((0,Jr.ZZ)(Kt=>this.jarvisHttpService.getUserToken(Kt.loginToken)),(0,Jr.ZZ)(Kt=>(ht.userToken=Kt.userToken,this.logger.info("Storing session containing only userToken to sharedStorage"),this.storeSession(ht))),(0,Jr.ZZ)(Kt=>this.sessionTokenSubscription.refresh()),(0,Jr.ZZ)(Kt=>(ht.sessionToken=Kt.sessionToken,ht.expiry=Kt.expiry,this.session=ht,this.jarvisUserSubscription.refresh())),(0,Jr.ZZ)(Kt=>(ht.user=Kt,this.logger.info("Storing complete session to sharedStorage"),this.storeSession(ht))))}fetchSession(){return this.activelyRenewingsession=!0,this.jarvisHttpService.getSessionToken(this.session.userToken).pipe((0,Sa.M)(()=>this.activelyRenewingsession=!1),(0,Jr.ZZ)(Ie=>(this.session.sessionToken=Ie.sessionToken,this.session.expiry=Ie.expiration,(0,Io.of)(this.session))),(0,kr.W)(Ie=>(this.logger.info("Error refreshing session with jarvis:",Ie),(0,Ve.gX)(Ie)?(this.logger.info("The session refresh failed due to timeout or connection issues. So, will not log out the user"),(0,Io.of)(this.session)):(this.logger.info("Error thrown from server. Hence, logging the user out"),(0,Io.of)(new Co)))))}buildJarvisUrl(Ie,ht,Kt){return this.jarvisHttpService.serverUrl$.pipe((0,aa.T)(Fn=>{let ii=":server/oauth/authorize?response_type=code&scope=user_token&client_id=:clientId&redirect_uri=:redirectUri&prompt=login&locale=:locale";return ii=ii.replace(":server",Fn),ii=ii.replace(":clientId",Ie.clientId),ii=ii.replace(":redirectUri",encodeURIComponent(Ie.redirectUrl)),ii=ii.replace(":locale",ht),!(0,ho.isNil)(Kt)&&!(0,ho.isEmpty)(Kt)&&(ii+="&preferred_auth=:preferredAuth",ii=ii.replace(":preferredAuth",Kt.toString())),ii}))}safelyFetchData(Ie,ht,Kt=!1){return this.sessionToken.pipe((0,Jr.ZZ)(Fn=>(0,ho.isNil)(this.session)||this.session.hasSessionToken()||!this.session.hasUserToken()?(0,Io.of)(Fn):this.sessionTokenSubscription.refresh()),(0,Jr.ZZ)(Fn=>Ie(Fn)),(0,kr.W)(Fn=>401===Fn.status?this.refreshSession().pipe((0,kr.W)(ii=>(this.logger.error("Failed to fetchSession",ii),this.logoutAndReturnObservable(ht))),(0,Jr.ZZ)(ii=>this.safelyFetchData(Ie,ht,Kt))):Kt?(0,Zo.$)(Fn):(this.logger.error(Fn),(0,Io.of)(ht))))}logoutAndReturnObservable(Ie){return this.logout(),(0,Io.of)(Ie)}getCurrentUser(){return this.safelyFetchData(Ie=>{if(this.logger.info("Getting current user"),this.logger.info(`hasSessionToken: ${Ie.hasSessionToken()}, hasUserToken: ${Ie.hasUserToken()}`),!this.networkStatus.isOnline&&Ie.hasUserToken())return this.logger.info("User is offline and session has user token. So returning cached user"),(0,Io.of)(Ie.user);if(Ie.hasSessionToken()){const ht=!(0,ho.isNil)(Ie.user)&&!(0,ho.isNil)(Ie.user.core.primaryEmailVerified);return this.jarvisHttpService.getUserInfo(Ie.sessionToken).pipe((0,aa.T)(Kt=>(Kt.isAuthenticated=!0,Kt)),(0,Jr.ZZ)(Kt=>(Ie.user=Kt,(0,ho.isNil)(Kt.core.primaryEmailVerified)||ht?(0,Io.of)(Ie):(this.logger.info("Primary Email Verified Info Updated. Hence saving userInfo to shared storage"),this.storeSession(Ie)))),(0,kr.W)(Kt=>(this.logger.info("Error fetching userInfo from jarvis:",Kt),(0,Ve.gX)(Kt)?(this.logger.info("UserInfo refresh failed due to timeout or connection issue. So, will not log out the user"),(0,Io.of)(Ie.user)):(this.logger.info("Error to is thrown by jarvis server. Will rethrow this error"),(0,Zo.$)(Kt)))),(0,aa.T)(Kt=>Ie.user))}return Ie.hasUserToken()&&!(0,ho.isNil)(Ie.user)?(this.logger.info("Session fetch failed due to timeout or connection issue, not logging out the user"),(0,Io.of)(Ie.user)):(0,Io.of)(ea)},ea)}getSession(){return!this.config.sdkClient||!(0,ho.isNil)(this.session)&&this.session.hasUserToken()?this.networkStatus.isOnline?this.renewSession():this.loadSessionFromSharedStorage():this.getSessionFromSdk()}renewSession(){return this.activelyRenewingsession=!0,this.loadSessionFromSharedStorage().pipe((0,Jr.ZZ)(Ie=>Ie.hasUserToken()?this.fetchSession():(0,Io.of)(Ie)),(0,Jr.ZZ)(Ie=>this.storeSession(Ie)),(0,kr.W)(Ie=>(this.logger.info("Error saving session to shared storage:",Ie),(0,Io.of)(new Co))),(0,St.j)(()=>this.activelyRenewingsession=!1))}loadSessionFromSharedStorage(Ie){return Co.loadFrom(this.sharedStorage,Ie?void 0:this.config.sdkClient).pipe((0,Jr.ZZ)(ht=>(this.logger.info("Loaded session successfully from shared storage"),this.session=ht,ht.hasUserToken()?(0,Io.of)(ht):Ie||(0,ho.isEmpty)(this.config.sdkClient)?(this.logger.info("Stored session does not have user token. Hence, logging the user out"),(0,Io.of)(new Co)):this.loadSessionFromSharedStorage(!0))),(0,kr.W)(ht=>(this.logger.info("Error loading session from shared storage. Hence logging out the user.",ht),this.session=new Co,(0,Io.of)(this.session))))}storeSession(Ie){return this.session=Ie,this.session.writeTo(this.sharedStorage,this.config.sdkClient).pipe((0,Jr.ZZ)(ht=>(0,Io.of)(this.session)),(0,kr.W)(ht=>(this.logger.info("Error saving session to shared storage:",ht),(0,Zo.$)(ht))))}getSessionFromSdk(){if(!this.networkStatus.isOnline||!(0,ho.isNil)(this.session)&&this.session.hasSessionToken())return(0,Io.of)(this.session);this.activelyRenewingsession=!0;const Ie="sdk/"+this.config.sdkClient;return this.sharedStorage.removeBlock(`${Ie}/session`).pipe((0,Jr.ZZ)(ht=>(this.logger.info("Cleared the stored session for SDK node",Ie,ht),this.gfnSdkService.getAuthInfo())),(0,Jr.ZZ)(ht=>(this.logger.info("Reading delegate token passed by SDK client",this.config.sdkClient),ht.authType===sr.hT.IDM?this.jarvisHttpService.redeemDelegateToken(ht.authToken):(0,Zo.$)("Token was an authN JWT, could not redeem"))),(0,Jr.ZZ)(ht=>(this.session=new Co,this.session.sessionToken=ht.sessionToken,this.storeSession(this.session))),(0,kr.W)(()=>(this.logger.error("Unable to redeem delegate token from SDK client",this.config.sdkClient),this.renewSession())),(0,St.j)(()=>{this.activelyRenewingsession=!1}))}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)(l.KVO(Oa),l.KVO(zr.J6),l.KVO(Ml),l.KVO(Lt),l.KVO(Kn.yQ),l.KVO(zr.NZ),l.KVO(zr.iH),l.KVO(Ve.mZ),l.KVO(zr.CF),l.KVO(sr.DL))},Bt.\u0275prov=l.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Te})();const lr={provide:za,useFactory:function bi(Bt,Te,ze,Ie,ht,Kt,Fn,ii,Fi,Hi){switch(Bt.platformType){case Pr.Browser:case Pr.Cef:return Bt.redirectUrl=Bt.redirectUrlIsRelative?window.location.origin+Bt.redirectUrl:Bt.redirectUrl,new Gn(Bt,Te,Ie,ht,Kt,ze,ii,Fn,Fi,Hi);default:Te.getLogger("jarvisServiceCreator").error("Cannot create JarvisService for unknown platform type: "+Bt.platformType)}},deps:[Oa,zr.J6,zr.NZ,Ml,Lt,Kn.yQ,Ve.mZ,zr.iH,zr.CF,sr.DL]};var Ur=d(99204);const ns=[Ur.D6];let No=(()=>{var Bt;class Te{static configure(Ie){return{ngModule:Te,providers:[{provide:Oa,useValue:Ie},lr,Lt]}}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275mod=l.$C({type:Bt}),Bt.\u0275inj=l.G2t({providers:[lr],imports:[sa.q1,Po.MD,ns,Ur.D6]}),Te})();var ds=d(50801),Yo=d(1331);const Ds={defaultLoggingLevel:zr.q_.Info};var Vo=d(29326);const Es={bridge:{mocks:[]},logger:Ds,window:{name:zr.Sg.Igo},locale:Vo.l,configFileName:"../www/assets/config/config.json",production:!0};var Ea=function(Bt){return Bt.dev="Dev",Bt.GenerateException="GeneralException",Bt}(Ea||{});class kt{}class Ot{}const pt={build:{version:"0.0.0.1",type:"dev",branch:"",hash:"",variant:"dev"},ab:{server:"https://gx-target-experiments-frontend-api.gx.nvidia.com",featureRolloutAPIVersion:"v3",defaultRetries:2,defaultTimeout:3e4,defaultTimeBetweenRetries:1e4,networkTimeoutForCacheFallback:500,allCvNetworkTimeoutForCacheFallback:2e3,cacheMaxAge:1440,clientId:"37592259939409600",experiences:{nvappFeatureToggle:"appRemoteConfig"},denyListExperiences:[],deviceIdActivatedExperiences:[]},jsEventsConfig:{server:"",version:"v1.0",schemaVersion:"3.0",defaultRetries:2,defaultTimeBetweenRetries:1e3,defaultTimeout:3e4,msBetweenSendRequest:5e3,maxEventsPerRequest:128,clientId:"12546161697959406",systemInfoEventDelay:1e4,productName:"NvApp"},otelTracerConfig:{accessToken:"EEdnetVL0JJ5Wt2/hZor1SAIprMQ926Zyyh3fCATtlc8ZDzAx7EE/fsS93UhoPWXQgsorfkTApfopEuLYbQ=",collectorUrl:"https://prod.otel.kaizen.nvidia.com/traces/otlp/v0.9",componentName:"nvapp-prod"},lcarsConfig:{serverUrl:"",serverUrlCDN:"",clientId:"",defaultRetries:2,defaultTimeout:3e3,defaultTimeBetweenRetries:1e3}},Ar=[{provide:Yo.k$F,useFactory:function Vs(){return(0,ho.merge)({IGOFeatureEnabled:!0,branding:"GFE",GFNCefClient:!1,OSDEnabled:!0,NvCameraFeaturesEnabled:"PRODUCTION",PhotoModeEnabled:!0,GameFilterEnabled:!0,LanguageSelectionEnabled:!1,RecordingFeaturesDisabled:!1,StatisticsEnabled:!0,ControlUGCEnabled:!1},((0,l.naY)(),{}))}},{provide:ta.aT,useValue:{filePath:Es.configFileName}},ta.LV,(0,ta.XR)(kt),{provide:Ot,useFactory:function Ui(Bt){const Te=pt;return Te.build.version=Bt?.build?.version,Te.lcarsConfig.serverUrl=Bt?.lcars?.serverUrl,Te.lcarsConfig.serverUrlCDN=Bt?.lcars?.serverUrlCDN,Te.lcarsConfig.clientId=Bt?.lcars?.clientId,Te},deps:[kt]},{provide:l.hnV,useFactory:function hl(Bt,Te,ze){const Ie=ze.getLogger("appConfig/loadOverrides");return()=>(0,as.zV)([Bt.getLocaleOverride(),Te.readBlock("overrides")]).pipe((0,Sa.M)(([ht,Kt])=>{let Fn;Ie.info("localeOverrides:",ht),Ie.info("toolOverrides:",Kt),ht?.jsEvents?.server&&(Fn=ht?.jsEvents?.server),Kt?.jsEvents?.server&&(Fn=Kt?.jsEvents?.server),Kt?.jsEvents?.schemaVersion&&(pt.jsEventsConfig.schemaVersion=Kt?.jsEvents?.schemaVersion),Bt.setServerURL(Fn),Kt?.build?.variant===Ea.GenerateException&&(Ie.info("Setting Exception flag"),Bt.generateException())}),(0,kr.W)(ht=>(Ie.error("Failed to fetch overrides",ht),(0,Io.of)(!0)))).toPromise()},multi:!0,deps:[Yo.AHe,Kn.yQ,zr.J6]},{provide:Oa,useFactory:function xa(){return(0,ho.merge)({platformType:Pr.Cef,oAuthConfig:{popUpWindowName:"app_oauth_window_with_back_button",windowParams:{width:500,height:600,top:264,left:710},useAppUrl:!0},appWindowName:"igoclient",url:"https://accounts.nvgs.nvidia.com/api/1",urlDomains:[".com",".cn"],clientId:"144326972728672375",deviceId:"igoclient",redirectUrl:"https://rds-assets.nvidia.com/main/redirect/redirect-gfe-share-oauth.html",clientDescription:"GFE In-Game Overlay v{VERSION}",accountsUrl:"https://accounts.nvidia.com",sdkClient:void 0,defaultTimeout:3e4,pingTimeout:1e4,defaultRetries:2,defaultTimeBetweenRetries:1e4},(0,l.naY)()?{url:"https://partner.nvgs.nvidia.com/api/1",accountsUrl:"https://partner.nvgs.nvidia.com"}:{})},deps:[Ot]},{provide:rr.i1,useFactory:function gs(Bt,Te){const ze=Te.getServerURL();return(0,ho.merge)({...Bt.jsEventsConfig,server:ze})},deps:[Ot,Yo.AHe]},{provide:rl.y2,useFactory:function ut(Bt){return{appWindowName:zr.Sg.Gfe,storage:rr.P6.IndexedDb,clientVersion:Bt.build.version,clientVariant:Bt.build.variant,openTracingConfig:Bt.otelTracerConfig,piplExemption:!0,...Bt.ab}},deps:[Ot]},{provide:ds.j6,useFactory:function Pn(){return{waitForDialogClose:!1}}},{provide:qe.sT,useFactory:function ia(){return{exceptionTimeLimiter:6e4,clientName:"NVAPP_OSC_UI",isExceptionEnabled:!0,devMode:!1}}}];var Or=d(57412),pr=d(35371);let co=(()=>{var Bt;class Te{constructor(Ie,ht,Kt,Fn,ii,Fi,Hi){this.localeService=Ie,this.experienceControlService=ht,this.appConfig=Kt,this.bridgeService=Fn,this.igoPiplLocaleConfigService=Fi,this.lcarsService=Hi,this.logger=ii.getLogger("igo/AppComponent"),this.lcarsService.populateIgoAppConfig(this.appConfig),this.updateLocaleAndRegisterForUpdates()}ngOnInit(){this.experienceControlService.initialize(rl.sK.NvAppClient,(0,Io.of)("")),this.experienceControlService.setUserInfo({userId:zr.Qe,idpId:zr.Qe}),this.experienceControlService.setCvList(Object.values(this.appConfig.ab.experiences)),this.experienceControlService.refreshCloudVariables(),this.experienceControlService.getCloudVariable(this.appConfig.ab.experiences.nvappFeatureToggle,{},{useCache:!1,useNetworkTimeoutForCacheFallback:!0},rl.Ky.GxTargetGetCloudVariable,rl.Id.Other).subscribe(Ie=>{const ht={processCountReduction:Ie?.value?.processCountReduction,hevcRecording:Ie?.value?.hevcRecording,lightstepToggle:Ie?.value?.lightstepToggle};this.logger.info("Received response for ",Ie,ht),this.writeToOverrideJson(ht.processCountReduction)},Ie=>{this.logger.info("GX CV fetch failed ",Ie),this.writeToOverrideJson(!1)}),this.igoPiplLocaleConfigService.getGenerateExceptionFlag()&&(this.logger.info("Generating Exception for QA testing"),setTimeout(()=>{throw new Error("Software Testing: Generating exception for QA verification IGO")},1e3))}updateLocaleAndRegisterForUpdates(){this.updateLocale(),this.handleLocalChangedUpdates()}updateLocale(){this.localeService.isRTLLocaleSupported=!0,this.bridgeService.executeCommand(eo.Ts.Share.Graphicssetting.GetUserPreferredLanguage).pipe((0,Jr.ZZ)(Ie=>{const ht=Ie.languageCode.replace("-","_");return this.logger.info("Fetched saved language code:",ht),this.localeService.setLocale(ht)}),(0,kr.W)(Ie=>(this.logger.error("Error while fetching saved language, using system language, error:",Ie),this.localeService.useDefaultLocale()))).subscribe(Ie=>{this.logger.info("locale saved to:",Ie)})}handleLocalChangedUpdates(){this.bridgeService.executeCommand(eo.Ts.Share.Graphicssetting.RegisterUserPreferredLanguageChangeNotification).pipe((0,Sa.M)(()=>{this.logger.info("Registered for locale changed updates")}),(0,kr.W)(Ie=>(this.logger.error("Failed to registered for locale changed updates:",Ie),(0,Io.of)()))).subscribe(),this.bridgeService.executeCommand(eo.Ts.Share.Graphicssetting.UserPreferredLanguageChangeNotification).pipe((0,Jr.ZZ)(Ie=>{if(this.logger.info("Locale changed by the user, new locale:",Ie.languageCode),!Ie.languageCode)return(0,Io.of)(null);const ht=Ie.languageCode.replace("-","_");return this.localeService.setLocale(ht)}),(0,kr.W)(Ie=>(this.logger.error("Error while setting language, error:",Ie),(0,Io.of)(null)))).subscribe(Ie=>{this.logger.info("locale saved to:",Ie)})}writeToOverrideJson(Ie){const ht={appname:"Nvidia Overlay",data:["nv-combine-processes="+Ie.toString()]};this.bridgeService.executeCommand(eo.Ts.Common.Applicationcontrol.WriteConfig,ht).subscribe(Kt=>{this.logger.info("Write to override succesfull ",Kt)},Kt=>{this.logger.info("Write to override failed with error ",Kt)})}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)(l.rXU(zr.iH),l.rXU(rl.BW),l.rXU(Ot),l.rXU(zr.NZ),l.rXU(zr.J6),l.rXU(Yo.AHe),l.rXU(Or.B))},Bt.\u0275cmp=l.VBU({type:Bt,selectors:[["app-root"]],decls:1,vars:0,template:function(Ie,ht){1&Ie&&l.nrm(0,"nv-igo")},dependencies:[pr.h],styles:["[_nghost-%COMP%] ::-webkit-scrollbar-track{background:#ffffff14}[_nghost-%COMP%] ::-webkit-scrollbar-thumb{background:#ffffff29}[_nghost-%COMP%] ::-webkit-scrollbar-thumb:hover{background:#ffffff52}[_nghost-%COMP%] ::-webkit-scrollbar-thumb:active{background:#ffffff7a}"]}),Te})();var bn=d(14354);const gr=[{path:"sidebar",component:d(27216).kc,outlet:"igo",children:[{path:"main-menu",loadChildren:()=>Promise.resolve().then(d.bind(d,23540)).then(Bt=>Bt.MainMenuModule)},{path:"gallery",loadChildren:()=>Promise.resolve().then(d.bind(d,47629)).then(Bt=>Bt.GalleryModule)},{path:"settings",loadChildren:()=>Promise.resolve().then(d.bind(d,39216)).then(Bt=>Bt.SettingsModule)},{path:"browser",loadChildren:()=>Promise.resolve().then(d.bind(d,90851)).then(Bt=>Bt.BrowserModule)},{path:"nvcamera",loadChildren:()=>Promise.resolve().then(d.bind(d,95843)).then(Bt=>Bt.NvcameraModule)},{path:"performance",loadChildren:()=>d.e(137).then(d.bind(d,46137)).then(Bt=>Bt.PerformanceModule)},{path:"instantReplay",loadChildren:()=>d.e(832).then(d.bind(d,87832)).then(Bt=>Bt.InstantReplayModule)}]}];let jr=(()=>{var Bt;class Te{}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275mod=l.$C({type:Bt}),Bt.\u0275inj=l.G2t({imports:[bn.iI.forRoot(gr,{useHash:!0,preloadingStrategy:bn.Kp}),bn.iI]}),Te})();var $o=d(28138),Va=d(51006),Ha=d(65240),ic=d(62668);let gl=(()=>{var Bt;class Te{}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275mod=l.$C({type:Bt}),Bt.\u0275inj=l.G2t({imports:[Po.MD,Va.YF,fs.i,ic.G,(0,zr.BU)()]}),Te})();var hs=d(29370),Ed=d(93012);let Xa=(()=>{var Bt;class Te{}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275mod=l.$C({type:Bt}),Bt.\u0275inj=l.G2t({imports:[Po.MD,hs.m_,Va.YF,Ed.me,(0,zr.BU)()]}),Te})();var qa=d(39216);let xd=(()=>{var Bt;class Te{}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275mod=l.$C({type:Bt}),Bt.\u0275inj=l.G2t({imports:[Po.MD,bn.iI,Va.YF,fs.i,Ha.h.forChild(),gl,Xa,qa.SettingsModule]}),Te})();d(90851),d(47629),d(23540),d(95843);var Kd=d(27211),go=d(19724),ja=d(53914),Gl=d(10132);let Fe=(()=>{var Bt;class Te extends Kd.S{constructor(Ie,ht,Kt,Fn,ii){super(),this.loggingService=Ie,this.telemetryService=ht,this.igoAppConfig=Kt,this.systemInfoService=Fn,this.bridgeService=ii,this.logger=this.loggingService.getLogger("TelemetryHelperNVAPPService")}init(){}sendHighlightCapture(Ie,ht,Kt,Fn,ii,Fi,Hi,Er){const Oo=new go._5({result:Hi||rr.oX.Undefined,sessionId:rr.oX.Undefined,cmsId:Ie?.cmsId||rr.oX.Undefined,drsName:Fi?.drsName||rr.oX.Undefined,drsProfileName:Fi?.drsProfileName||rr.oX.Undefined,sdkVersion:ht||rr.oX.Undefined,contentType:ii===ja.cM.image?go.cM.Image:go.cM.Video,highlightType:Fn||rr.oX.Undefined,videoLengthMs:Kt||0,modsActive:Er?go.T8.TRUE:go.T8.FALSE,highlightAction:go.rP.New});this.telemetryService.push(Oo)}sendHighlightsGameSetting(Ie,ht,Kt,Fn,ii,Fi){const Hi={cmsId:rr.oX.Undefined,drsName:Ie.shortName||rr.oX.Undefined,drsProfileName:Fi||rr.oX.Undefined,permissionSource:Kt||rr.oX.Undefined,highlightType:Fn||rr.oX.Undefined,settingName:ii||rr.oX.Undefined,settingValue:ht?.toString()||rr.oX.Undefined},Er=new go.l4(Hi);this.telemetryService.push(Er)}sendProcessingFilter(Ie,ht,Kt,Fn,ii,Fi,Hi,Er,Vr){const uo=new go.jQ({cmsId:Ie?.cmsId||rr.oX.Undefined,drsName:Ie?.drsName||rr.oX.Undefined,drsProfileName:Ie?.drsProfileName||rr.oX.Undefined,installedDDVersion:ht||rr.oX.Undefined,action:Kt,slotID:Fn||0,slotFilters:ii||rr.oX.Undefined,newSlotID:Fi||0,newSlotFilters:Hi||rr.oX.Undefined,persistedFilters:Er||rr.oX.Undefined,usedMenu:Vr?go.T8.TRUE:go.T8.FALSE});this.logger.info("NewProcessingFilterData : ",uo),this.telemetryService.push(uo)}sendProcessingControlSettings(Ie,ht,Kt,Fn,ii){const Hi=new go.bH({cmsId:Ie?.cmsId||rr.oX.Undefined,drsName:Ie?.drsName||rr.oX.Undefined,drsProfileName:Ie.drsProfileName||rr.oX.Undefined,processingFilter:ht,processingFilterAttribute:Kt,processingFilterAttributeValue:Fn,gameLaunchMode:ii});this.telemetryService.push(Hi)}sendAnselFreestyleError(Ie,ht,Kt,Fn,ii,Fi,Hi,Er,Vr,Oo,uo){const Do=new go.Ef({cmsId:Ie?.cmsId||rr.oX.Undefined,drsName:Ie?.drsName||rr.oX.Undefined,drsProfileName:Ie?.drsProfileName||rr.oX.Undefined,errorType:ht||rr.oX.Undefined,errorSubType:Kt||rr.oX.Undefined,errorString:Fn||rr.oX.Undefined,sessionId:ii||rr.oX.Undefined,captureMode:Fi,usedMenu:Hi?go.T8.TRUE:go.T8.FALSE,gpuName:Er||rr.oX.Undefined,installedDDVersion:Vr||rr.oX.Undefined,isOptimus:Oo?go.T8.TRUE:go.T8.FALSE,systemType:uo||rr.oX.Undefined});this.telemetryService.push(Do)}sendStatsSession(Ie,ht,Kt,Fn,ii,Fi,Hi,Er,Vr){const uo=new go.Bl({cmsId:Ie?.cmsId||rr.oX.Undefined,drsName:Ie?.drsName||rr.oX.Undefined,drsProfileName:Ie?.drsProfileName||rr.oX.Undefined,sessionType:ht,triggerMode:Kt,totalMs:Fn||0,view:ii,positionX:Fi||0,positionY:Hi||0,visibilityMode:Er,layout:Vr});this.logger.info("statsSessionEventData: ",uo),this.telemetryService.push(uo)}sendIGOSettings(Ie,ht,Kt){const ii=new go.aR({cmsId:Ie?.cmsId||"",drsName:Ie.drsName||"",drsProfileName:Ie.drsProfileName,settingName:ht,settingValue:Kt});this.logger.info("statsSessionEventData: ",ii),this.telemetryService.push(ii)}setGalleryAccessCached(Ie){this.galleryAccessCached=Ie}sendUIPerfEvent(Ie,ht,Kt,Fn,ii,Fi){const Hi=this.galleryAccessCached?go.Pm.Cached:go.Pm.FullLoad,Vr=new go.RT({cmsId:Ie?.cmsId,drsName:Ie.drsName,drsProfileName:Ie.drsProfileName,perfEnum:ht,averageMs:Kt,totalMs:Fn,numItems:ii,screenState:Fi,galleryAccessType:Hi});this.logger.info("uiPerfEventData: ",Vr),this.telemetryService.push(Vr)}getCommonPlatformType(Ie){return"Windows"===Ie?"Win":Ie}getClientVariantType(Ie){switch(Ie){case"ibeta":return ja.zg.IBeta;case"release":return ja.zg.Release;default:return ja.zg.Undefined}}translateConsent(Ie){return{functional:Ie?.hasFunctionalConsent?rr.Rg.Full:rr.Rg.None,technical:Ie?.hasTechnicalConsent?rr.Rg.Full:rr.Rg.None,behavioral:Ie?.hasBehavioralConsent?rr.Rg.Full:rr.Rg.None,required:Ie?.hasRequiredConsent?rr.Rg.Full:rr.Rg.None}}registerForConsentChangeNotification(){this.bridgeService.executeCommand(eo.Ts.Common.Nvaccount.PrivacySettingsConsentInformationChangedNotification).subscribe(Ie=>{if(this.logger.info("Updated device consent received ",Ie),Ie?.deviceConsent){const ht=this.translateConsent(Ie?.deviceConsent);this.telemetryService.setDeviceConsent(ht)}else this.logger.error("Empty device consent received",Ie)},Ie=>this.logger.error("PrivacySettingsConsentInformationChangedNotification failed with ",Ie)),this.bridgeService.executeCommand(eo.Ts.Common.Nvaccount.UserConsentChangedNotification).pipe((0,aa.T)(Ie=>{if(Ie&&Ie?.userId){this.logger.info("Received User consent change notification ");const ht={userId:Ie.userId?.userId||"undefined",externalUserId:Ie?.userId?.externalUserId||"undefined",idpId:Ie?.userId?.identityProviderId||"undefined"},Fn={userConsent:this.translateConsent(Ie?.consentLevel),userId:Ie?.userId?.userId||"undefined",externalUserId:Ie?.userId?.externalUserId||"undefined",idpId:Ie?.userId?.identityProviderId||"undefined"};this.telemetryService.setEventsCommonData(ht,!0),this.telemetryService.setUserConsent([Fn])}else this.logger.error("Empty UserId ");return Ie},Ie=>{this.logger.info("UserConsentChange Error ",Ie)}),(0,Sa.M)(Ie=>{Ie.userId?this.setTelemtryInfoToShadowPlayParameters({userId:Ie.userId.userId,externalUserId:Ie.userId.externalUserId,idpId:Ie.userId.identityProviderId}):this.logger.info("Empty user id received")})).subscribe(),this.bridgeService.executeCommand(eo.Ts.Common.Nvaccount.UserIdChangedNotification).pipe((0,aa.T)(Ie=>{Ie&&!Ie.userId?(this.logger.info("Logout detected, clearing the user ID ",Ie),this.resetUserId()):Ie?this.logger.info("Login Detected "):(this.logger.info("Logout detected, clearing the user ID, empty Object ",Ie),this.resetUserId())},Ie=>{this.logger.error("UserIdChange Error ",Ie)})).subscribe()}resetUserId(){this.telemetryService.setEventsCommonData({userId:"undefined"},!0),this.setTelemtryInfoToShadowPlayParameters({userId:"undefined",externalUserId:"undefined",idpId:"undefined"})}getConsentDetails(){return this.bridgeService.executeCommand(eo.Ts.Common.Nvaccount.GetUserAccountAndDeviceConsent)}startStatsLoggingSession(Ie){this.statsLoggingSessionStartTime=Date.now(),this.statsLoggingSessionTrigger=Ie}sendStatsLoggingSession(Ie){this.statsLoggingSessionStartTime?(this.sendStatsSession(Ie,go.Qz.Logging,this.statsLoggingSessionTrigger,Date.now()-this.statsLoggingSessionStartTime,go.B_.Basic,0,0,go.Om.Standard,go.Eq.Linear),this.statsLoggingSessionStartTime=void 0):this.logger.error("Cannot send stats logging telemetry, timer was never started")}startStatsOverlaySession(Ie){this.statsOverlaySessionStartTime=Date.now(),this.statsOverlaySessionTrigger=Ie}sendStatsOverlaySession(Ie,ht,Kt,Fn,ii,Fi,Hi=!1){this.statsOverlaySessionStartTime?(this.sendStatsSession(Ie,go.Qz.Overlay,this.statsOverlaySessionTrigger,Hi?0:Date.now()-this.statsOverlaySessionStartTime,ht,Kt,Fn,ii,Fi),Hi||(this.statsOverlaySessionStartTime=void 0)):this.logger.error("Cannot send stats overlay telemetry, timer was never started")}initCommonData(){return this.registerForConsentChangeNotification(),(0,So.p)([this.getConsentDetails(),this.systemInfoService.getSystemInfo([zr.Lu.DeviceId,zr.Lu.Platform,zr.Lu.OSVersion,zr.Lu.VendorName,zr.Lu.SystemName,zr.Lu.DeviceType,zr.Lu.BrowserName]),this.systemInfoService.getDeviceOSType()]).pipe((0,aa.T)(([Ie,ht,Kt])=>{this.logger.info("Setting events common data. userId and deviceId ");const Fn=this.translateConsent(Ie?.deviceConsent);this.telemetryService.setDeviceConsent(Fn);const ii={deviceId:ht.DeviceId,clientType:ja.Vd.Native,clientVer:this.igoAppConfig.build.version||rr.oX.Undefined,platform:this.getCommonPlatformType(ht.Platform),deviceOSVersion:ht.OSVersion,deviceMake:ht.VendorName||rr.oX.Undefined,deviceModel:ht.SystemName||rr.oX.Undefined,deviceType:ht.DeviceType,browserType:ht.BrowserName,productName:this.igoAppConfig.jsEventsConfig.productName||rr.oX.Undefined,productVersion:this.igoAppConfig.build.version||rr.oX.Undefined,deviceOS:Kt,userId:Ie?.userAccount?.userId?.userId||rr.oX.Undefined,externalUserId:Ie?.userAccount?.userId?.externalUserId||rr.oX.Undefined,idpId:Ie?.userAccount?.userId?.identityProviderId||rr.oX.Undefined};if(this.telemetryService.setEventsCommonData(ii,!!Ie?.userAccount?.userId),Ie?.userAccount?.userId){const Hi={userConsent:this.translateConsent(Ie?.userAccount?.consentLevel),userId:Ie.userAccount?.userId?.userId||rr.oX.Undefined,externalUserId:Ie.userAccount?.userId?.externalUserId||rr.oX.Undefined,idpId:Ie?.userAccount?.userId?.identityProviderId||rr.oX.Undefined};this.telemetryService.setUserConsent([Hi])}else this.logger.info("User Not logged in by default and userConsent will not be set");return ii}),(0,Sa.M)(Ie=>{Ie?.userId&&Ie?.userId!==rr.oX.Undefined?this.setTelemtryInfoToShadowPlayParameters({userId:Ie.userId,externalUserId:Ie.externalUserId,idpId:Ie.externalUserId}):(this.logger.info("IGO launched with user logged out"),this.setTelemtryInfoToShadowPlayParameters({userId:"undefined",externalUserId:"undefined",idpId:"undefined"}))}))}sendAudioTelemetry(Ie){const ht=new go.jG(Ie);this.telemetryService.push(ht)}setTelemtryInfoToShadowPlayParameters(Ie){this.bridgeService.executeCommand(eo.Ts.Share.Shareserver.SetTelemtryInfoToShadowPlay,Ie).subscribe(ht=>this.logger.info("Succefully passed user id to Shadowplay",ht),ht=>this.logger.info("User ID pass to Shadowplay failed ",ht))}captureActionTranslate(Ie){switch(Ie){case ja.db.instantReplaySaved:return go.db.IRSave;case ja.db.screenshotSaved:return go.db.ScreenshotCaptured;case ja.db.stopAndSaveManualCapture:return go.db.MRSave;case ja.db.startManualCapture:return go.db.MRStart;case ja.db.turnOffInstantReplay:return go.db.IRStop;case ja.db.turnOnInstantReplay:return go.db.IRStart;default:return go.db.DetectValidGame}}micModeTranslate(Ie){switch(Ie){case eo.Or.Share.Shareserver.MicModeEnum.on:case eo.Or.Share.Shareserver.MicModeEnum.alwayson:return go.T_.alwayson;case eo.Or.Share.Shareserver.MicModeEnum.off:return go.T_.off;case eo.Or.Share.Shareserver.MicModeEnum.ptt:return go.T_.ptt;default:return go.T_.unknown}}videoQualityTranslate(Ie){switch(Ie){case eo.Or.Share.Shareserver.Quality.GamecastAverage:case eo.Or.Share.Shareserver.Quality.GamecastFBLAverage:case eo.Or.Share.Shareserver.Quality.GamecastYTLAverage:case eo.Or.Share.Shareserver.Quality.Average:return go.Jt.Average;case eo.Or.Share.Shareserver.Quality.GamecastFBLGood:case eo.Or.Share.Shareserver.Quality.GamecastYTLGood:case eo.Or.Share.Shareserver.Quality.GamecastGood:case eo.Or.Share.Shareserver.Quality.Good:return go.Jt.Good;case eo.Or.Share.Shareserver.Quality.VeryGood:case eo.Or.Share.Shareserver.Quality.GamecastFBLVeryGood:case eo.Or.Share.Shareserver.Quality.GamecastVeryGood:case eo.Or.Share.Shareserver.Quality.GamecastYTLVeryGood:return go.Jt.VeryGood;case eo.Or.Share.Shareserver.Quality.Custom:return go.Jt.Custom;case eo.Or.Share.Shareserver.Quality.UltraGood:case eo.Or.Share.Shareserver.Quality.GamecastUltraGood:case eo.Or.Share.Shareserver.Quality.GamecastYTLUltraGood:return go.Jt.UltraGood;default:return go.Jt.Average}}indicatorPositionTranslate(Ie){switch(Ie){case Gl.VH.rightTop:return go.MB.RightTop;case Gl.VH.rightCenter:return go.MB.RightCenter;case Gl.VH.rightBottom:return go.MB.RightBottom;case Gl.VH.centerBottom:return go.MB.CenterBottom;case Gl.VH.leftBottom:return go.MB.LeftBottom;case Gl.VH.leftCenter:return go.MB.LeftCenter;case Gl.VH.leftTop:return go.MB.LeftTop;case Gl.VH.centerTop:return go.MB.CenterTop;case Gl.VH.none:return go.MB.Nowhere;default:return go.MB.NA}}sendNotificationSettingsTelemetry(Ie){const ht=new go.Kl(Ie);this.telemetryService.push(ht)}updateVideoSpecSettings(Ie){this.videoSpec=Ie}updateMicMode(Ie){this.micMode=Ie}sendCaptureEvent(Ie,ht,Kt,Fn,ii,Fi,Hi,Er,Vr,Oo,uo,io,Do,rs,pa){const Rs={cmsId:io?.cmsId||rr.oX.Undefined,drsName:io?.drsName||rr.oX.Undefined,drsProfileName:io?.drsProfileName||rr.oX.Undefined,captureAction:this.captureActionTranslate(Ie),totalMs:uo||0,micModeType:this.micModeTranslate(this.micMode),qualityType:this.videoQualityTranslate(this.videoSpec?.recQualitySP),resolution:rr.oX.Undefined,recordCodec:rr.oX.Undefined,colorSpaceRange:rr.oX.Undefined,bitRate:this.videoSpec?.recBitrate||0,frameRate:this.videoSpec?.recFramerate||0,fpsOverlayPos:this.indicatorPositionTranslate(rs),statusOverlayPos:this.indicatorPositionTranslate(Do),freestyleActive:pa?go.T8.TRUE:go.T8.FALSE,result:Er?Er.toString():rr.oX.Undefined},ka=new go.sI(Rs);this.telemetryService.push(ka)}sendSessionEvent(Ie,ht,Kt,Fn,ii,Fi,Hi,Er){const Oo=new go.E5({action:Ie,screenState:ht||rr.oX.Undefined,totalMs:Kt||0,menuName:Fn||rr.oX.Undefined,installedDDVersion:ii||rr.oX.Undefined,triggerMode:Fi,hotkeyID:Hi||rr.oX.Undefined,hotkey:Hi||rr.oX.Undefined});this.telemetryService.push(Oo)}startAnselScreenshot(){this.anselScreenshotStartTime=Date.now()}sendAnselFreestyleCaptureEvent(Ie,ht,Kt,Fn,ii,Fi,Hi,Er,Vr,Oo,uo,io){if(!this.anselScreenshotStartTime)return void this.logger.error("Cannot send Ansel Screenshot telemetry, timer was never started");const Do={cmsId:Ie?.cmsId||rr.oX.Undefined,drsName:Ie?.drsName||rr.oX.Undefined,drsProfileName:Ie?.drsProfileName||rr.oX.Undefined,dliSRVersion:ht||rr.oX.Undefined,installedDDVersion:Kt||rr.oX.Undefined,gpuName:Fn||rr.oX.Undefined,captureAction:ii,totalMs:Date.now()-this.anselScreenshotStartTime||0,captureMode:Fi,gameLaunchMode:Hi||rr.oX.Undefined,screenshotResolution:Er||rr.oX.Undefined,superResolutionFactor:Vr||0,stackedFilters:Oo||rr.oX.Undefined,gridUsed:uo?go.T8.TRUE:go.T8.FALSE,panningUsed:io?go.T8.TRUE:go.T8.FALSE},rs=new go.cB(Do);this.telemetryService.push(rs),this.anselScreenshotStartTime=void 0}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)(l.KVO(zr.J6),l.KVO(rr.H0),l.KVO(Ot),l.KVO(zr.zW),l.KVO(zr.NZ))},Bt.\u0275prov=l.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:null}),Te})();var tt=d(80583),yt=d(3496),rt=d(65726),Dt=d(19392),dn=d(7583);function Jn(Bt,Te){return Te?ze=>ze.pipe(Jn((Ie,ht)=>(0,Dt.H)(Bt(Ie,ht)).pipe((0,aa.T)((Kt,Fn)=>Te(Ie,Kt,ht,Fn))))):ze=>ze.lift(new $i(Bt))}class $i{constructor(Te){this.project=Te}call(Te,ze){return ze.subscribe(new Nr(Te,this.project))}}class Nr extends dn.gn{constructor(Te,ze){super(Te),this.project=ze,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(Te){this.hasSubscription||this.tryNext(Te)}tryNext(Te){let ze;const Ie=this.index++;try{ze=this.project(Te,Ie)}catch(ht){return void this.destination.error(ht)}this.hasSubscription=!0,this._innerSub(ze)}_innerSub(Te){const ze=new dn.zA(this),Ie=this.destination;Ie.add(ze);const ht=(0,dn.tS)(Te,ze);ht!==ze&&Ie.add(ht)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(Te){this.destination.next(Te)}notifyError(Te){this.destination.error(Te)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var Ji=d(26537);let Ho=(()=>{var Bt;class Te extends qe.tg{constructor(Ie,ht,Kt,Fn){super(Ie.getLogger("ExceptionIgoService"),ht,Fn),this.exceptionInfoService=Kt,this.exceptionDataList=new Map,this.exceptionEvent$=new tt.B7,this.unsubscribeDelayTimer=3e5}handleClientSideException(Ie,ht){this.registerExceptionLimiter(),this.timeLimiter=ht.exceptionTimeLimiter,this.exceptionEvent$.next(Ie)}registerExceptionLimiter(){let Ie;this.exceptionEvent$.pipe((0,An.p)(ht=>(Ie={message:ht.message,fileName:"",stackFrameSource:"",exceptionTrace:ht.exceptionString},!this.exceptionMatchFound(ht.name,Ie))),(0,Jr.ZZ)(ht=>"UnsubscriptionError"===ht?.name?(this.logger.info("Unsubscription error received, delayed",this.unsubscribeDelayTimer),(0,Io.of)(ht).pipe((0,rt.c)(this.unsubscribeDelayTimer))):(this.logger.info("Not a Unsubscription error received"),(0,Io.of)(ht))),(0,Sa.M)(ht=>{this.exceptionDataList.set(ht.name,Ie),this.sendExceptionInfo(ht)}),Jn(()=>(this.logger.info("Exception rate limit timer started: ",this.timeLimiter),(0,yt.O)(this.timeLimiter)))).subscribe(()=>{this.clearExceptionDataList()})}exceptionMatchFound(Ie,ht){let Kt=!1;return!(0,ho.isNil)(this.exceptionDataList)&&!(0,ho.isEmpty)(this.exceptionDataList)&&this.exceptionDataList.has(Ie)&&(Kt=(0,ho.isEqual)(ht,this.exceptionDataList.get(Ie))),Kt}clearExceptionDataList(){this.logger.info("clearing exception data list"),this.exceptionDataList.clear()}sendExceptionInfo(Ie){this.igoAppConfiguration=this.injector.get(Ot),this.exceptionInfoService.sendExceptionInfo(zr.T6.OSC,this.igoAppConfiguration?.build?.version||zr.Qe,Ie.name,Ie.message,Ie.exceptionString).pipe((0,Mo.s)(1)).subscribe(ht=>{ht&&this.logger.info("Send Exception Info service called with response:",ht)},ht=>{this.logger.error("Error sending Exception Params with error: ",ht)})}}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)(l.KVO(zr.J6),l.KVO(l.zZn),l.KVO(zr.FK),l.KVO(Ji.bZ))},Bt.\u0275prov=l.jDH({token:Bt,factory:Bt.\u0275fac}),Te})();d(88058);let cs=(()=>{var Bt;class Te{}return(Bt=Te).\u0275fac=function(Ie){return new(Ie||Bt)},Bt.\u0275mod=l.$C({type:Bt,bootstrap:[co]}),Bt.\u0275inj=l.G2t({providers:[{provide:l.zcH,useClass:Ho},{provide:Kd.S,useClass:Fe},Ar],imports:[n.Bb,ti,sa.q1,fs.i,(0,zr.BY)(),zr._N.configure(Es),$o.U,xd,ic.G,jr,[No]]}),Te})();Es.production&&(0,l.SmG)(),n.sG().bootstrapModule(cs).catch(Bt=>console.log(Bt))},50961:function(Ue,W,d){"use strict";var n=this&&this.__createBinding||(Object.create?function(ee,J,z,te){void 0===te&&(te=z);var X=Object.getOwnPropertyDescriptor(J,z);(!X||("get"in X?!J.__esModule:X.writable||X.configurable))&&(X={enumerable:!0,get:function(){return J[z]}}),Object.defineProperty(ee,te,X)}:function(ee,J,z,te){void 0===te&&(te=z),ee[te]=J[z]}),l=this&&this.__exportStar||function(ee,J){for(var z in ee)"default"!==z&&!Object.prototype.hasOwnProperty.call(J,z)&&n(J,ee,z)};Object.defineProperty(W,"__esModule",{value:!0}),W.ClientModeSelection=W.LogLevel=W.VsyncType=W.SelectKind=W.NetworkType=W.Profile=void 0;const p=d(20701);var ee;function i(ee,J,z){return{width:ee,height:J,fps:z}}function a(ee,J,z){return z.map(te=>i(ee,J,te))}function h(ee){return ee.width*ee.height}function T(ee,J){const z={...J};if(!ee.scaleFactor)return z;const re=Math.min(ee.width/J.width,ee.height/J.height);return z.scaleFactor=Math.max(100,Math.round(ee.scaleFactor/re)),z}function L(ee){return void 0!==ee&&!!ee.width&&!!ee.height&&!!ee.fps}function x(ee,J){var z;return!!J.features.hdr&&!(null===(z=ee.desiredFeatures)||void 0===z||!z.hdr)}function k(ee,J,z,te){var X,re,ge;const oe=function V(ee,J){var z,te;return Math.min(J.features.vsync||0,null!==(te=null===(z=ee.desiredFeatures)||void 0===z?void 0:z.vsync)&&void 0!==te?te:0)}(ee,J),xe=function D(ee,J){var z,te;const X=J.features.audioChannelCount||2,re=null!==(te=null===(z=ee.desiredFeatures)||void 0===z?void 0:z.audioChannelCount)&&void 0!==te?te:X;return Math.min(X,re)}(ee,J),ue=function F(ee,J){var z,te;const X=J.features.sdrBitDepth||J.features.bitDepth||8,re=null!==(te=null===(z=ee.desiredFeatures)||void 0===z?void 0:z.bitDepth)&&void 0!==te?te:X;return Math.min(X,re)}(ee,J),N=function I(ee,J,z){var te;return!!J.features.cloudGsync&&z.fps>=(J.features.minimumFpsForCloudGsync||0)&&!(null===(te=ee.desiredFeatures)||void 0===te||!te.cloudGsync)}(ee,J,z);return{vsync:oe,vvsync:!!J.features.vvsync&&!(null===(X=ee.desiredFeatures)||void 0===X||!X.vvsync),hdr:te,reflex:(N||240===z.fps)&&!!J.features.reflex&&!(null===(re=ee.desiredFeatures)||void 0===re||!re.reflex),audioChannelCount:xe,bitDepth:ue,cloudGsync:N,l4s:!!J.features.l4s&&!(null===(ge=ee.desiredFeatures)||void 0===ge||!ge.l4s)}}function R(ee){return ee.map(G).join(", ")}function G(ee){return`${ee.width}x${ee.height}@${ee.fps}`}function Y(ee){switch(ee){case p.ClientStreamingQualityMode.BALANCED:return 1;case p.ClientStreamingQualityMode.COMPETITIVE:return 2;case p.ClientStreamingQualityMode.DATA_SAVER:return 3;default:return}}function K(ee){return i(ee.widthInPixels,ee.heightInPixels,ee.framesPerSecond)}function $(ee){switch(ee){case"STEREO":default:return 2;case"UP_TO_5_1_SURROUND_PCM":return 6;case"UP_TO_7_1_SURROUND_PCM":return 8}}l(d(20701),W),(ee=W.Profile||(W.Profile={}))[ee.CUSTOM=0]="CUSTOM",ee[ee.BALANCED=1]="BALANCED",ee[ee.COMPETITIVE=2]="COMPETITIVE",ee[ee.DATA_SAVER=3]="DATA_SAVER",function(ee){ee[ee.OTHER=0]="OTHER",ee[ee.ETHERNET=1]="ETHERNET",ee[ee.WIFI2_4=2]="WIFI2_4",ee[ee.WIFI5_0=3]="WIFI5_0"}(W.NetworkType||(W.NetworkType={})),function(ee){ee[ee.STREAM=0]="STREAM",ee[ee.DISPLAY=1]="DISPLAY"}(W.SelectKind||(W.SelectKind={})),function(ee){ee[ee.OFF=0]="OFF",ee[ee.ON=1]="ON",ee[ee.ADAPTIVE=2]="ADAPTIVE"}(W.VsyncType||(W.VsyncType={})),function(ee){ee.DEBUG="d",ee.INFO="i",ee.WARNING="w"}(W.LogLevel||(W.LogLevel={})),W.ClientModeSelection=class r{constructor(J){if(this.config={},J.length){const{params:z}=JSON.parse(J);if(z)for(const te of z.filter(X=>"clientModeSelection"===X.name))this.config=Object.assign(this.config,te.value)}}selectModeWithProfile(J,z,te,X){if(te=this.fillDefaults(te),0===X){const ge=x(te,z);return{selectedVideoMode:T(z.displayMode,J),selectedEncodeMode:this.selectEncodeMode(z,J),selectedFeatures:k(te,z,J,ge)}}let re;return re=2!==X?[{field:"aspect",dir:"asc"},{field:te.preferFpsOverResolution?"fps":"pixel-count",dir:"asc"},{field:te.preferFpsOverResolution?"pixel-count":"fps",dir:"asc"}]:[{field:"fps-abs",dir:"desc"},{field:"aspect",dir:"asc"},{field:"pixel-count",dir:"asc"}],this.selectModeWithPriorityImpl(J,z,te,re,X)}selectModeWithPriority(J,z,te,X){return te=this.fillDefaults(te),this.selectModeWithPriorityImpl(J,z,te,X)}filterModes(J,z,te){const X=[];for(const re of J)for(const ge of z)if(te??1){if(h(re)<=h(ge)&&re.fps<=ge.fps){X.push(re);break}}else if(re.width<=ge.width&&re.height<=ge.height&&re.fps<=ge.fps){X.push(re);break}return X}sortModes(J,z,te,X){var re;const ge=h(z),oe=z.width/z.height,xe=null!==(re=X??this.config.aspectRatioDiffThreshold)&&void 0!==re?re:.05;return J.map(N=>N).sort((N,se)=>{for(const ce of te)switch(ce.field){case"aspect":{const Z=Math.abs(N.width/N.height-oe)-Math.abs(se.width/se.height-oe);if(Math.abs(Z)>xe)return"asc"===ce.dir?Z:-Z;break}case"fps-abs":{const Z=N.fps-se.fps;if(0!==Z)return"asc"===ce.dir?Z:-Z;break}case"fps":{const Z=Math.abs(N.fps-z.fps)-Math.abs(se.fps-z.fps);if(0!==Z)return"asc"===ce.dir?Z:-Z;break}case"pixel-count-abs":{const Z=h(N)-h(se);if(0!==Z)return"asc"===ce.dir?Z:-Z;break}case"pixel-count":{const Z=Math.abs(h(N)-ge)-Math.abs(h(se)-ge);if(0!==Z)return"asc"===ce.dir?Z:-Z;break}}return 0})}parseSubscription(J,z){var te,X,re;const ge=J.resolutions.filter(ue=>ue.isEntitled).map(K),oe={bitDepth:8,audioChannelCount:2};for(const ue of J.features)switch(ue.key){case p.SubscriptionFeatureMetadataKey.HDR_ENABLED:oe.hdr="true"===ue.textValue;break;case p.SubscriptionFeatureMetadataKey.SUPPORTED_AUDIO_FORMATS:oe.audioChannelCount=$(ue.textValue);break;case p.SubscriptionFeatureMetadataKey.ENABLED_REFLEX:oe.reflex="true"===ue.textValue;break;case p.SubscriptionFeatureMetadataKey.BIT_DEPTH:break;case p.SubscriptionFeatureMetadataKey.CLOUD_GSYNC:oe.cloudGsync="true"===ue.textValue;break;case p.SubscriptionFeatureMetadataKey.ENABLED_L4S:oe.l4s="true"===ue.textValue}const xe=new Map;for(const ue of z){const N=Y(ue.clientStreamingQualityMode);if(void 0===N)continue;let se=K(ue.resolution);(3===N||2===N)&&(null===(te=this.config.fixDataSaverCompetitive1280)||void 0===te||te)&&1280===se.width&&720===se.height&&(this.log("i","Overriding competitive and data saver desired resolutions to 1280x800"),se=i(1280,800,se.fps));const ce={...oe};for(const Z of ue.features)switch(Z.key){case p.StreamingQualityModeFeatureMetadataKey.PROFILE_HDR:ce.hdr="true"===Z.textValue;break;case p.StreamingQualityModeFeatureMetadataKey.PROFILE_REFLEX:ce.reflex="true"===Z.textValue;break;case p.StreamingQualityModeFeatureMetadataKey.PROFILE_VSYNC:ce.vsync=parseInt(null!==(X=Z.textValue)&&void 0!==X?X:"0",10);break;case p.StreamingQualityModeFeatureMetadataKey.PROFILE_CLOUD_GSYNC:ce.cloudGsync="true"===Z.textValue;break;case p.StreamingQualityModeFeatureMetadataKey.PROFILE_L4S:ce.l4s="true"===Z.textValue;break;case p.StreamingQualityModeFeatureMetadataKey.PROFILE_BIT_DEPTH:ce.bitDepth=parseInt(null!==(re=Z.textValue)&&void 0!==re?re:"8",10)}xe.set(N,{options:{supportedModes:ge,desiredFeatures:ce},desired:se}),1===N&&xe.set(0,{options:{supportedModes:ge,desiredFeatures:{...ce}},desired:{...se}})}return xe.has(0)||xe.set(0,{options:{supportedModes:ge,desiredFeatures:oe}}),xe}getDefaultModes(){return[a(3840,2160,[120,60]),a(3456,2160,[120,60]),a(3840,1600,[120,60]),a(3440,1440,[120,60]),a(3840,1080,[120,60]),a(2560,1600,[120,60]),a(2560,1440,[120,60]),a(2560,1080,[120,60]),a(1920,1200,[240,120,60]),a(1920,1080,[240,120,60]),a(1600,1200,[120,60]),a(1680,1050,[120,60]),a(1600,900,[120,60]),a(1280,1024,[120,60]),a(1440,900,[120,60]),a(1680,720,[120,60]),a(1366,768,[120,60]),a(1280,800,[120,60]),a(1112,834,[120,60]),a(1280,720,[120,60]),a(1376,640,[120,60]),a(1024,768,[120,60])].flat(1)}deserializeDeviceCapabilities(J){return JSON.parse(J)}serializeSelectResult(J){const{selectedVideoMode:z,selectedFeatures:te}=J,X=[{widthInPixels:z.width,heightInPixels:z.height,framesPerSecond:z.fps,dpi:z.scaleFactor,sdrHdrMode:te.hdr?1:0}],ge={bitDepth:te.bitDepth<=8?0:1,cloudGsync:te.cloudGsync,reflex:te.reflex,enabledL4S:te.l4s};let oe;oe=te.audioChannelCount>=8?3:te.audioChannelCount>=6?2:1;const xe={...J,clientRequestMonitorSettings:X,requestedStreamingFeatures:ge,requestedAudioFormat:oe};return JSON.stringify(xe)}isModeSupported(J,z){return J.maxSupportedModes?J.maxSupportedModes.some(te=>te.width>=z.width&&te.height>=z.height&&te.fps>=z.fps):(this.log("w","isModeSupported: Max supported modes weren't provided, assuming mode isn't supported"),!1)}isResolutionSupported(J,z,te){return this.isModeSupported(J,i(z,te,1))}isFpsSupported(J,z){return this.isModeSupported(J,i(1,1,z))}setLogCallback(J){this.logCallback=J}setTelemetryCallback(J){this.telemetryCallback=J}selectModeWithPriorityImpl(J,z,te,X,re){var ge,oe,xe,ue,N,se,ce;let Z=te.networkMaxMode;if(1===re&&(null===(ge=this.config.overrideBalanced240fps)||void 0===ge||ge)){const pe=h(i(3440,1440,0));h(J)>=pe&&J.fps>=120&&(J=i(J.width,J.height,240),this.log("i","Overrode desired fps to 240"),Z&&120===Z.fps&&(Z=i(Z.width,Z.height,240),this.log("i","Overrode network max fps to 240")))}2!==re&&(null===(oe=this.config.useNetworkType)||void 0===oe||oe)&&(2===te.networkType||3===te.networkType)&&(J=i(J.width,J.height,Math.min(J.fps,60)),this.log("d","Limited mode to 60fps because of WIFI"));const de=x(te,z);let ae;if(null!==(xe=te.supportedModes)&&void 0!==xe&&xe.length){this.log("d",`Selecting mode based on supported modes: ${R(te.supportedModes)}`);let pe=this.getTargetMode(z,te);2===re&&(pe=function A(ee,J,z,te){let X=function g(ee,J){const z=h(ee),te=h(J);return Math.sqrt(te/z)}(ee,J);return z&&(X=Math.max(z,X)),te&&(X=Math.min(te,X)),i(ee.width*X,ee.height*X,J.fps)}(pe,J));let _e=this.sortModes(te.supportedModes,pe,X,te.aspectRatioDiffThreshold);const ke=($e,Oe,gt)=>{const qt=_e;_e=this.filterModes(qt,Oe,gt);const ye=qt.length-_e.length;ye>0&&this.log("d",`Filtered out ${ye} modes because of ${$e} (${R(Oe)})`)},De=null===(ue=z.maxSupportedModes)||void 0===ue?void 0:ue.filter($e=>void 0===$e.hdr||$e.hdr===de);if(De?.length&&ke("device max supported modes",De,null===(N=this.config.useMaxSupportedModesPixelCount)||void 0===N||N),ke("desired mode",[J]),1===re&&1!==te.selectKind&&Z&&(!(null!==(se=this.config.useNetworkMaxMode)&&void 0!==se)||se)&&ke("network max mode",[Z]),(!te.preferLargerResolutionIfCloser||L(z.maxAutoMode))&&ke("device target resolution",[i(pe.width,pe.height,1/0)]),ke("device target fps",[i(1/0,1/0,pe.fps+(null!==(ce=te.largerFpsThreshold)&&void 0!==ce?ce:1))]),_e.length)ae=_e[0];else{this.log("i","No modes fit the filtering criteria, falling back to the nearest supported mode");const $e=X.map(Oe=>{switch(Oe.field){case"aspect":return Oe;case"pixel-count":return{field:"pixel-count-abs",dir:"asc"};case"fps":return{field:"fps-abs",dir:"asc"};case"pixel-count-abs":case"fps-abs":return{field:Oe.field,dir:"asc"}}});_e=this.sortModes(te.supportedModes,pe,$e),ae=_e[0]}this.log("i",`Selected mode: ${G(ae)}`)}else ae=J,this.log("i",`No supported modes provided, selected mode: ${G(ae)}`);return te.usePhysicalResolution&&(ae=T(z.displayMode,ae)),{selectedVideoMode:ae,selectedEncodeMode:this.selectEncodeMode(z,ae),selectedFeatures:k(te,z,ae,de)}}selectEncodeMode(J,z){var te;if(null===(te=J.maxEncodeModes)||void 0===te||!te.length)return i(0,0,0);const X=[i(3440,1440,120),i(0,0,240)];for(const oe of X)if(h(z)>=h(oe)&&z.fps>=oe.fps)return this.log("i",`Disabling encode because selected video mode is larger than ${G(oe)}`),i(0,0,0);const ge=J.maxEncodeModes.map(oe=>{const N=Math.max(z.width/oe.width,z.height/oe.height,1);return{width:Math.round(z.width/N),height:Math.round(z.height/N),fps:Math.min(z.fps,oe.fps),scale:N}}).sort((oe,xe)=>{const ue=xe.fps-oe.fps;return 0!==ue?ue:oe.scale-xe.scale})[0];return i(ge.width,ge.height,ge.fps)}fillDefaults(J){var z,te,X;return{preferFpsOverResolution:null!==(z=this.config.preferFpsOverResolution)&&void 0!==z&&z,preferLargerResolutionIfCloser:null===(te=this.config.preferLargerResolutionIfCloser)||void 0===te||te,largerFpsThreshold:this.config.largerFpsThreshold,usePhysicalResolution:null!==(X=this.config.usePhysicalResolution)&&void 0!==X&&X,selectKind:0,...J}}getTargetMode(J,z){return L(J.maxAutoMode)?J.maxAutoMode:z.usePhysicalResolution?J.displayMode:function c(ee){const J={...ee};return ee.scaleFactor&&100!==ee.scaleFactor&&(J.width/=ee.scaleFactor/100,J.height/=ee.scaleFactor/100,J.scaleFactor=void 0),J}(J.displayMode)}log(J,z){var te;null===(te=this.logCallback)||void 0===te||te.call(this,{level:J,tag:"mode-selection",message:z})}}},20701:(Ue,W)=>{"use strict";var p;Object.defineProperty(W,"__esModule",{value:!0}),W.SubscriptionFeatureMetadataKey=W.StreamingQualityModeFeatureMetadataKey=W.ClientStreamingQualityMode=void 0,(p=W.ClientStreamingQualityMode||(W.ClientStreamingQualityMode={})).UNKNOWN="UNKNOWN",p.BALANCED="BALANCED",p.DATA_SAVER="DATA_SAVER",p.COMPETITIVE="COMPETITIVE",function(p){p.UNKNOWN="UNKNOWN",p.PROFILE_VSYNC="PROFILE_VSYNC",p.PROFILE_ADJUST_FOR_NETWORK="PROFILE_ADJUST_FOR_NETWORK",p.PROFILE_HDR="PROFILE_HDR",p.PROFILE_REFLEX="PROFILE_REFLEX",p.PROFILE_CLOUD_GSYNC="PROFILE_CLOUD_GSYNC",p.PROFILE_L4S="PROFILE_L4S",p.PROFILE_BIT_DEPTH="PROFILE_BIT_DEPTH"}(W.StreamingQualityModeFeatureMetadataKey||(W.StreamingQualityModeFeatureMetadataKey={})),function(p){p.UNKNOWN="UNKNOWN",p.RTX_ENABLED="RTX_ENABLED",p.HDR_ENABLED="HDR_ENABLED",p.SUPPORTED_AUDIO_FORMATS="SUPPORTED_AUDIO_FORMATS",p.IN_GAME_SETTINGS_PERSISTENCE_ENABLED="IN_GAME_SETTINGS_PERSISTENCE_ENABLED",p.ENABLED_FPS="ENABLED_FPS",p.ENABLED_DEBUG_TOOLS="ENABLED_DEBUG_TOOLS",p.ENABLED_REFLEX="ENABLED_REFLEX",p.BIT_DEPTH="BIT_DEPTH",p.CLOUD_GSYNC="CLOUD_GSYNC",p.ENABLED_L4S="ENABLED_L4S"}(W.SubscriptionFeatureMetadataKey||(W.SubscriptionFeatureMetadataKey={}))},92950:function(Ue,W,d){"use strict";var n=this&&this.__createBinding||(Object.create?function(p,m,_,P){void 0===P&&(P=_);var v=Object.getOwnPropertyDescriptor(m,_);(!v||("get"in v?!m.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return m[_]}}),Object.defineProperty(p,P,v)}:function(p,m,_,P){void 0===P&&(P=_),p[P]=m[_]}),l=this&&this.__exportStar||function(p,m){for(var _ in p)"default"!==_&&!Object.prototype.hasOwnProperty.call(m,_)&&n(m,p,_)};Object.defineProperty(W,"__esModule",{value:!0}),l(d(91743),W)},91743:(Ue,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.LogImpl=void 0;class d{constructor(l,p){this.module=l,this.enabled=!0,this.shouldLogToConsole=!1,this.queue=[],p&&(void 0!==p.enable&&(this.enabled=p.enable),void 0!==p.enableConsoleLogging&&(this.shouldLogToConsole=p.enableConsoleLogging)),this._nop=(m,_,...P)=>{},this._d=(m,_,...P)=>this.handleLog("DEBUG",m,_,P),this._i=(m,_,...P)=>this.handleLog("INFO",m,_,P),this._w=(m,_,...P)=>this.handleLog("WARN",m,_,P),this._e=(m,_,...P)=>this.handleLog("ERROR",m,_,P)}get d(){return this.enabled?this.shouldLogToConsole?console.debug.bind(console,"%s DEBUG [%s] %s@@",this.renderDate(new Date)):this._d:this._nop}get w(){return this.enabled?this.shouldLogToConsole?console.warn.bind(console,"%s WARN [%s] %s@@",this.renderDate(new Date)):this._w:this._nop}get i(){return this.enabled?this.shouldLogToConsole?console.info.bind(console,"%s INFO [%s] %s@@",this.renderDate(new Date)):this._i:this._nop}get e(){return this.shouldLogToConsole?console.error.bind(console,"%s ERROR [%s] %s@@",this.renderDate(new Date)):this._e}setLogCallback(l){this.callback=l,this.callback&&this.queue.length&&window.setTimeout(()=>{this.executeLogCallback(!0)})}isCallbackRegistered(){return!!this.callback}sanitize(l){if(!l)return l;const p=[{secretBlock:/(partnerCustomData" *: *")((\\"|[^"])*)(?=")/g,replaceStr:"$1***"},{secretBlock:/("clientIp" *: *")(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?=")/g,replaceStr:"$1***"}];for(const m of p)l=l.replace(m.secretBlock,m.replaceStr);return l}stringifyArgs(...l){return l.length?`##${JSON.stringify(l)}`:""}executeLogCallback(l){this.callback&&this.queue.length&&(this.callback(this.queue[0]),this.queue.shift(),l&&this.queue.length&&window.setTimeout(()=>{this.executeLogCallback(!0)}))}handleLog(l,p,m,_){let P=`${m}${this.stringifyArgs(..._)}`,v={timestamp:this.renderDate(new Date),level:l,tag:this.module+"/"+p,message:P};this.queue.push(v),this.callback?window.setTimeout(()=>{this.executeLogCallback(!1)}):this.queue.length>d.MAX_QUEUE_SIZE&&this.queue.shift()}renderDate(l){const p=(a,h,g)=>{const c=h-a.length;if(c>0){let T="";for(let A=0;A<c;A++)T+=g;return T+=a,T}return a};let i="";return i=p(l.getFullYear().toString(),4,"0")+"-"+(p((l.getMonth()+1).toString(),2,"0")+"-")+(a=>p(a.getDate().toString(),2,"0"))(l)+" "+(a=>p(a.getHours().toString(),2,"0"))(l)+":"+(a=>p(a.getMinutes().toString(),2,"0"))(l)+":"+(a=>p(a.getSeconds().toString(),2,"0"))(l)+"."+(a=>p(a.getMilliseconds().toString(),3,"0"))(l),i}}W.LogImpl=d,d.MAX_QUEUE_SIZE=50},62879:Ue=>{Ue.exports=function(W){var d={};function n(l){if(d[l])return d[l].exports;var p=d[l]={i:l,l:!1,exports:{}};return W[l].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=W,n.c=d,n.d=function(l,p,m){n.o(l,p)||Object.defineProperty(l,p,{enumerable:!0,get:m})},n.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},n.t=function(l,p){if(1&p&&(l=n(l)),8&p||4&p&&"object"==typeof l&&l&&l.__esModule)return l;var m=Object.create(null);if(n.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:l}),2&p&&"string"!=typeof l)for(var _ in l)n.d(m,_,function(P){return l[P]}.bind(null,_));return m},n.n=function(l){var p=l&&l.__esModule?function(){return l.default}:function(){return l};return n.d(p,"a",p),p},n.o=function(l,p){return Object.prototype.hasOwnProperty.call(l,p)},n.p="",n(n.s=2)}([
/*!*********************************!*\
!*** ./node_modules/sdp/sdp.js ***!
\*********************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
function(W,d,n){"use strict";var l={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};l.localCName=l.generateIdentifier(),l.splitLines=function(p){return p.trim().split("\n").map(function(m){return m.trim()})},l.splitSections=function(p){return p.split("\nm=").map(function(_,P){return(P>0?"m="+_:_).trim()+"\r\n"})},l.getDescription=function(p){var m=l.splitSections(p);return m&&m[0]},l.getMediaSections=function(p){var m=l.splitSections(p);return m.shift(),m},l.matchPrefix=function(p,m){return l.splitLines(p).filter(function(_){return 0===_.indexOf(m)})},l.parseCandidate=function(p){for(var m,_={foundation:(m=0===p.indexOf("a=candidate:")?p.substring(12).split(" "):p.substring(10).split(" "))[0],component:parseInt(m[1],10),protocol:m[2].toLowerCase(),priority:parseInt(m[3],10),ip:m[4],address:m[4],port:parseInt(m[5],10),type:m[7]},P=8;P<m.length;P+=2)switch(m[P]){case"raddr":_.relatedAddress=m[P+1];break;case"rport":_.relatedPort=parseInt(m[P+1],10);break;case"tcptype":_.tcpType=m[P+1];break;case"ufrag":_.ufrag=m[P+1],_.usernameFragment=m[P+1];break;default:_[m[P]]=m[P+1]}return _},l.writeCandidate=function(p){var m=[];m.push(p.foundation),m.push(p.component),m.push(p.protocol.toUpperCase()),m.push(p.priority),m.push(p.address||p.ip),m.push(p.port);var _=p.type;return m.push("typ"),m.push(_),"host"!==_&&p.relatedAddress&&p.relatedPort&&(m.push("raddr"),m.push(p.relatedAddress),m.push("rport"),m.push(p.relatedPort)),p.tcpType&&"tcp"===p.protocol.toLowerCase()&&(m.push("tcptype"),m.push(p.tcpType)),(p.usernameFragment||p.ufrag)&&(m.push("ufrag"),m.push(p.usernameFragment||p.ufrag)),"candidate:"+m.join(" ")},l.parseIceOptions=function(p){return p.substr(14).split(" ")},l.parseRtpMap=function(p){var m=p.substr(9).split(" "),_={payloadType:parseInt(m.shift(),10)};return m=m[0].split("/"),_.name=m[0],_.clockRate=parseInt(m[1],10),_.channels=3===m.length?parseInt(m[2],10):1,_.numChannels=_.channels,_},l.writeRtpMap=function(p){var m=p.payloadType;void 0!==p.preferredPayloadType&&(m=p.preferredPayloadType);var _=p.channels||p.numChannels||1;return"a=rtpmap:"+m+" "+p.name+"/"+p.clockRate+(1!==_?"/"+_:"")+"\r\n"},l.parseExtmap=function(p){var m=p.substr(9).split(" ");return{id:parseInt(m[0],10),direction:m[0].indexOf("/")>0?m[0].split("/")[1]:"sendrecv",uri:m[1]}},l.writeExtmap=function(p){return"a=extmap:"+(p.id||p.preferredId)+(p.direction&&"sendrecv"!==p.direction?"/"+p.direction:"")+" "+p.uri+"\r\n"},l.parseFmtp=function(p){for(var _,m={},P=p.substr(p.indexOf(" ")+1).split(";"),v=0;v<P.length;v++)m[(_=P[v].trim().split("="))[0].trim()]=_[1];return m},l.writeFmtp=function(p){var m="",_=p.payloadType;if(void 0!==p.preferredPayloadType&&(_=p.preferredPayloadType),p.parameters&&Object.keys(p.parameters).length){var P=[];Object.keys(p.parameters).forEach(function(v){P.push(p.parameters[v]?v+"="+p.parameters[v]:v)}),m+="a=fmtp:"+_+" "+P.join(";")+"\r\n"}return m},l.parseRtcpFb=function(p){var m=p.substr(p.indexOf(" ")+1).split(" ");return{type:m.shift(),parameter:m.join(" ")}},l.writeRtcpFb=function(p){var m="",_=p.payloadType;return void 0!==p.preferredPayloadType&&(_=p.preferredPayloadType),p.rtcpFeedback&&p.rtcpFeedback.length&&p.rtcpFeedback.forEach(function(P){m+="a=rtcp-fb:"+_+" "+P.type+(P.parameter&&P.parameter.length?" "+P.parameter:"")+"\r\n"}),m},l.parseSsrcMedia=function(p){var m=p.indexOf(" "),_={ssrc:parseInt(p.substr(7,m-7),10)},P=p.indexOf(":",m);return P>-1?(_.attribute=p.substr(m+1,P-m-1),_.value=p.substr(P+1)):_.attribute=p.substr(m+1),_},l.parseSsrcGroup=function(p){var m=p.substr(13).split(" ");return{semantics:m.shift(),ssrcs:m.map(function(_){return parseInt(_,10)})}},l.getMid=function(p){var m=l.matchPrefix(p,"a=mid:")[0];if(m)return m.substr(6)},l.parseFingerprint=function(p){var m=p.substr(14).split(" ");return{algorithm:m[0].toLowerCase(),value:m[1]}},l.getDtlsParameters=function(p,m){return{role:"auto",fingerprints:l.matchPrefix(p+m,"a=fingerprint:").map(l.parseFingerprint)}},l.writeDtlsParameters=function(p,m){var _="a=setup:"+m+"\r\n";return p.fingerprints.forEach(function(P){_+="a=fingerprint:"+P.algorithm+" "+P.value+"\r\n"}),_},l.parseCryptoLine=function(p){var m=p.substr(9).split(" ");return{tag:parseInt(m[0],10),cryptoSuite:m[1],keyParams:m[2],sessionParams:m.slice(3)}},l.writeCryptoLine=function(p){return"a=crypto:"+p.tag+" "+p.cryptoSuite+" "+("object"==typeof p.keyParams?l.writeCryptoKeyParams(p.keyParams):p.keyParams)+(p.sessionParams?" "+p.sessionParams.join(" "):"")+"\r\n"},l.parseCryptoKeyParams=function(p){if(0!==p.indexOf("inline:"))return null;var m=p.substr(7).split("|");return{keyMethod:"inline",keySalt:m[0],lifeTime:m[1],mkiValue:m[2]?m[2].split(":")[0]:void 0,mkiLength:m[2]?m[2].split(":")[1]:void 0}},l.writeCryptoKeyParams=function(p){return p.keyMethod+":"+p.keySalt+(p.lifeTime?"|"+p.lifeTime:"")+(p.mkiValue&&p.mkiLength?"|"+p.mkiValue+":"+p.mkiLength:"")},l.getCryptoParameters=function(p,m){return l.matchPrefix(p+m,"a=crypto:").map(l.parseCryptoLine)},l.getIceParameters=function(p,m){var _=l.matchPrefix(p+m,"a=ice-ufrag:")[0],P=l.matchPrefix(p+m,"a=ice-pwd:")[0];return _&&P?{usernameFragment:_.substr(12),password:P.substr(10)}:null},l.writeIceParameters=function(p){return"a=ice-ufrag:"+p.usernameFragment+"\r\na=ice-pwd:"+p.password+"\r\n"},l.parseRtpParameters=function(p){for(var m={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},P=l.splitLines(p)[0].split(" "),v=3;v<P.length;v++){var O=P[v],S=l.matchPrefix(p,"a=rtpmap:"+O+" ")[0];if(S){var y=l.parseRtpMap(S),r=l.matchPrefix(p,"a=fmtp:"+O+" ");switch(y.parameters=r.length?l.parseFmtp(r[0]):{},y.rtcpFeedback=l.matchPrefix(p,"a=rtcp-fb:"+O+" ").map(l.parseRtcpFb),m.codecs.push(y),y.name.toUpperCase()){case"RED":case"ULPFEC":m.fecMechanisms.push(y.name.toUpperCase())}}}return l.matchPrefix(p,"a=extmap:").forEach(function(i){m.headerExtensions.push(l.parseExtmap(i))}),m},l.writeRtpDescription=function(p,m){var _="";_+="m="+p+" ",_+=m.codecs.length>0?"9":"0",_+=" UDP/TLS/RTP/SAVPF ",_+=m.codecs.map(function(v){return void 0!==v.preferredPayloadType?v.preferredPayloadType:v.payloadType}).join(" ")+"\r\n",_+="c=IN IP4 0.0.0.0\r\n",_+="a=rtcp:9 IN IP4 0.0.0.0\r\n",m.codecs.forEach(function(v){_+=l.writeRtpMap(v),_+=l.writeFmtp(v),_+=l.writeRtcpFb(v)});var P=0;return m.codecs.forEach(function(v){v.maxptime>P&&(P=v.maxptime)}),P>0&&(_+="a=maxptime:"+P+"\r\n"),_+="a=rtcp-mux\r\n",m.headerExtensions&&m.headerExtensions.forEach(function(v){_+=l.writeExtmap(v)}),_},l.parseRtpEncodingParameters=function(p){var y,m=[],_=l.parseRtpParameters(p),P=-1!==_.fecMechanisms.indexOf("RED"),v=-1!==_.fecMechanisms.indexOf("ULPFEC"),O=l.matchPrefix(p,"a=ssrc:").map(function(a){return l.parseSsrcMedia(a)}).filter(function(a){return"cname"===a.attribute}),S=O.length>0&&O[0].ssrc,r=l.matchPrefix(p,"a=ssrc-group:FID").map(function(a){return a.substr(17).split(" ").map(function(g){return parseInt(g,10)})});r.length>0&&r[0].length>1&&r[0][0]===S&&(y=r[0][1]),_.codecs.forEach(function(a){if("RTX"===a.name.toUpperCase()&&a.parameters.apt){var h={ssrc:S,codecPayloadType:parseInt(a.parameters.apt,10)};S&&y&&(h.rtx={ssrc:y}),m.push(h),P&&((h=JSON.parse(JSON.stringify(h))).fec={ssrc:S,mechanism:v?"red+ulpfec":"red"},m.push(h))}}),0===m.length&&S&&m.push({ssrc:S});var i=l.matchPrefix(p,"b=");return i.length&&(i=0===i[0].indexOf("b=TIAS:")?parseInt(i[0].substr(7),10):0===i[0].indexOf("b=AS:")?1e3*parseInt(i[0].substr(5),10)*.95-16e3:void 0,m.forEach(function(a){a.maxBitrate=i})),m},l.parseRtcpParameters=function(p){var m={},_=l.matchPrefix(p,"a=ssrc:").map(function(O){return l.parseSsrcMedia(O)}).filter(function(O){return"cname"===O.attribute})[0];_&&(m.cname=_.value,m.ssrc=_.ssrc);var P=l.matchPrefix(p,"a=rtcp-rsize");m.reducedSize=P.length>0,m.compound=0===P.length;var v=l.matchPrefix(p,"a=rtcp-mux");return m.mux=v.length>0,m},l.parseMsid=function(p){var m,_=l.matchPrefix(p,"a=msid:");if(1===_.length)return{stream:(m=_[0].substr(7).split(" "))[0],track:m[1]};var P=l.matchPrefix(p,"a=ssrc:").map(function(v){return l.parseSsrcMedia(v)}).filter(function(v){return"msid"===v.attribute});return P.length>0?{stream:(m=P[0].value.split(" "))[0],track:m[1]}:void 0},l.parseSctpDescription=function(p){var P,m=l.parseMLine(p),_=l.matchPrefix(p,"a=max-message-size:");_.length>0&&(P=parseInt(_[0].substr(19),10)),isNaN(P)&&(P=65536);var v=l.matchPrefix(p,"a=sctp-port:");if(v.length>0)return{port:parseInt(v[0].substr(12),10),protocol:m.fmt,maxMessageSize:P};if(l.matchPrefix(p,"a=sctpmap:").length>0){var S=l.matchPrefix(p,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(S[0],10),protocol:S[1],maxMessageSize:P}}},l.writeSctpDescription=function(p,m){var _=[];return _="DTLS/SCTP"!==p.protocol?["m="+p.kind+" 9 "+p.protocol+" "+m.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+m.port+"\r\n"]:["m="+p.kind+" 9 "+p.protocol+" "+m.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+m.port+" "+m.protocol+" 65535\r\n"],void 0!==m.maxMessageSize&&_.push("a=max-message-size:"+m.maxMessageSize+"\r\n"),_.join("")},l.generateSessionId=function(){return Math.random().toString().substr(2,21)},l.writeSessionBoilerplate=function(p,m,_){var v=void 0!==m?m:2;return"v=0\r\no="+(_||"thisisadapterortc")+" "+(p||l.generateSessionId())+" "+v+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},l.writeMediaSection=function(p,m,_,P){var v=l.writeRtpDescription(p.kind,m);if(v+=l.writeIceParameters(p.iceGatherer.getLocalParameters()),v+=l.writeDtlsParameters(p.dtlsTransport.getLocalParameters(),"offer"===_?"actpass":"active"),v+="a=mid:"+p.mid+"\r\n",v+=p.direction?"a="+p.direction+"\r\n":p.rtpSender&&p.rtpReceiver?"a=sendrecv\r\n":p.rtpSender?"a=sendonly\r\n":p.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",p.rtpSender){var O="msid:"+P.id+" "+p.rtpSender.track.id+"\r\n";v+="a="+O,v+="a=ssrc:"+p.sendEncodingParameters[0].ssrc+" "+O,p.sendEncodingParameters[0].rtx&&(v+="a=ssrc:"+p.sendEncodingParameters[0].rtx.ssrc+" "+O,v+="a=ssrc-group:FID "+p.sendEncodingParameters[0].ssrc+" "+p.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return v+="a=ssrc:"+p.sendEncodingParameters[0].ssrc+" cname:"+l.localCName+"\r\n",p.rtpSender&&p.sendEncodingParameters[0].rtx&&(v+="a=ssrc:"+p.sendEncodingParameters[0].rtx.ssrc+" cname:"+l.localCName+"\r\n"),v},l.getDirection=function(p,m){for(var _=l.splitLines(p),P=0;P<_.length;P++)switch(_[P]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return _[P].substr(2)}return m?l.getDirection(m):"sendrecv"},l.getKind=function(p){return l.splitLines(p)[0].split(" ")[0].substr(2)},l.isRejected=function(p){return"0"===p.split(" ",2)[1]},l.parseMLine=function(p){var _=l.splitLines(p)[0].substr(2).split(" ");return{kind:_[0],port:parseInt(_[1],10),protocol:_[2],fmt:_.slice(3).join(" ")}},l.parseOLine=function(p){var _=l.matchPrefix(p,"o=")[0].substr(2).split(" ");return{username:_[0],sessionId:_[1],sessionVersion:parseInt(_[2],10),netType:_[3],addressType:_[4],address:_[5]}},l.isValidSDP=function(p){if("string"!=typeof p||0===p.length)return!1;for(var m=l.splitLines(p),_=0;_<m.length;_++)if(m[_].length<2||"="!==m[_].charAt(1))return!1;return!0},W.exports=l},
/*!******************************************************************!*\
!*** ./node_modules/rtcpeerconnection-shim/rtcpeerconnection.js ***!
\******************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
function(W,d,n){"use strict";var l=n(
/*! sdp */
0);function m(y,r,i,a,h){var g=l.writeRtpDescription(y.kind,r);if(g+=l.writeIceParameters(y.iceGatherer.getLocalParameters()),g+=l.writeDtlsParameters(y.dtlsTransport.getLocalParameters(),"offer"===i?"actpass":h||"active"),g+="a=mid:"+y.mid+"\r\n",g+=y.rtpSender&&y.rtpReceiver?"a=sendrecv\r\n":y.rtpSender?"a=sendonly\r\n":y.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",y.rtpSender){var c=y.rtpSender._initialTrackId||y.rtpSender.track.id;y.rtpSender._initialTrackId=c;var T="msid:"+(a?a.id:"-")+" "+c+"\r\n";g+="a="+T,g+="a=ssrc:"+y.sendEncodingParameters[0].ssrc+" "+T,y.sendEncodingParameters[0].rtx&&(g+="a=ssrc:"+y.sendEncodingParameters[0].rtx.ssrc+" "+T,g+="a=ssrc-group:FID "+y.sendEncodingParameters[0].ssrc+" "+y.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return g+="a=ssrc:"+y.sendEncodingParameters[0].ssrc+" cname:"+l.localCName+"\r\n",y.rtpSender&&y.sendEncodingParameters[0].rtx&&(g+="a=ssrc:"+y.sendEncodingParameters[0].rtx.ssrc+" cname:"+l.localCName+"\r\n"),g}function P(y,r){var i={codecs:[],headerExtensions:[],fecMechanisms:[]},a=function(g,c){g=parseInt(g,10);for(var T=0;T<c.length;T++)if(c[T].payloadType===g||c[T].preferredPayloadType===g)return c[T]},h=function(g,c,T,A){var L=a(g.parameters.apt,T),x=a(c.parameters.apt,A);return L&&x&&L.name.toLowerCase()===x.name.toLowerCase()};return y.codecs.forEach(function(g){for(var c=0;c<r.codecs.length;c++){var T=r.codecs[c];if(g.name.toLowerCase()===T.name.toLowerCase()&&g.clockRate===T.clockRate){if("rtx"===g.name.toLowerCase()&&g.parameters&&T.parameters.apt&&!h(g,T,y.codecs,r.codecs))continue;(T=JSON.parse(JSON.stringify(T))).numChannels=Math.min(g.numChannels,T.numChannels),i.codecs.push(T),T.rtcpFeedback=T.rtcpFeedback.filter(function(A){for(var L=0;L<g.rtcpFeedback.length;L++)if(g.rtcpFeedback[L].type===A.type&&g.rtcpFeedback[L].parameter===A.parameter)return!0;return!1});break}}}),y.headerExtensions.forEach(function(g){for(var c=0;c<r.headerExtensions.length;c++){var T=r.headerExtensions[c];if(g.uri===T.uri){i.headerExtensions.push(T);break}}}),i}function v(y,r,i){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[r][y].indexOf(i)}function O(y,r){var i=y.getRemoteCandidates().find(function(a){return r.foundation===a.foundation&&r.ip===a.ip&&r.port===a.port&&r.priority===a.priority&&r.protocol===a.protocol&&r.type===a.type});return i||y.addRemoteCandidate(r),!i}function S(y,r){var i=new Error(r);return i.name=y,i.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[y],i}W.exports=function(y,r){function i(A,L){L.addTrack(A),L.dispatchEvent(new y.MediaStreamTrackEvent("addtrack",{track:A}))}function h(A,L,x,V){var D=new Event("track");D.track=L,D.receiver=x,D.transceiver={receiver:x},D.streams=V,y.setTimeout(function(){A._dispatchEvent("track",D)})}var g=function(A){var L=this,x=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(D){L[D]=x[D].bind(x)}),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",A=JSON.parse(JSON.stringify(A||{})),this.usingBundle="max-bundle"===A.bundlePolicy,"negotiate"===A.rtcpMuxPolicy)throw S("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(A.rtcpMuxPolicy||(A.rtcpMuxPolicy="require"),A.iceTransportPolicy){case"all":case"relay":break;default:A.iceTransportPolicy="all"}switch(A.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:A.bundlePolicy="balanced"}if(A.iceServers=function _(y,r){var i=!1;return(y=JSON.parse(JSON.stringify(y))).filter(function(a){if(a&&(a.urls||a.url)){var h=a.urls||a.url;a.url&&!a.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var g="string"==typeof h;return g&&(h=[h]),h=h.filter(function(c){return 0!==c.indexOf("turn:")||-1===c.indexOf("transport=udp")||-1!==c.indexOf("turn:[")||i?0===c.indexOf("stun:")&&r>=14393&&-1===c.indexOf("?transport=udp"):(i=!0,!0)}),delete a.url,a.urls=g?h[0]:h,!!h.length}})}(A.iceServers||[],r),this._iceGatherers=[],A.iceCandidatePoolSize)for(var V=A.iceCandidatePoolSize;V>0;V--)this._iceGatherers.push(new y.RTCIceGatherer({iceServers:A.iceServers,gatherPolicy:A.iceTransportPolicy}));else A.iceCandidatePoolSize=0;this._config=A,this.transceivers=[],this._sdpSessionId=l.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(g.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(g.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),g.prototype.onicecandidate=null,g.prototype.onaddstream=null,g.prototype.ontrack=null,g.prototype.onremovestream=null,g.prototype.onsignalingstatechange=null,g.prototype.oniceconnectionstatechange=null,g.prototype.onconnectionstatechange=null,g.prototype.onicegatheringstatechange=null,g.prototype.onnegotiationneeded=null,g.prototype.ondatachannel=null,g.prototype._dispatchEvent=function(A,L){this._isClosed||(this.dispatchEvent(L),"function"==typeof this["on"+A]&&this["on"+A](L))},g.prototype._emitGatheringStateChange=function(){var A=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",A)},g.prototype.getConfiguration=function(){return this._config},g.prototype.getLocalStreams=function(){return this.localStreams},g.prototype.getRemoteStreams=function(){return this.remoteStreams},g.prototype._createTransceiver=function(A,L){var V={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:A,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&this.transceivers.length>0)V.iceTransport=this.transceivers[0].iceTransport,V.dtlsTransport=this.transceivers[0].dtlsTransport;else{var D=this._createIceAndDtlsTransports();V.iceTransport=D.iceTransport,V.dtlsTransport=D.dtlsTransport}return L||this.transceivers.push(V),V},g.prototype.addTrack=function(A,L){if(this._isClosed)throw S("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");if(this.transceivers.find(function(F){return F.track===A}))throw S("InvalidAccessError","Track already exists.");for(var V,D=0;D<this.transceivers.length;D++)!this.transceivers[D].track&&this.transceivers[D].kind===A.kind&&(V=this.transceivers[D]);return V||(V=this._createTransceiver(A.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(L)&&this.localStreams.push(L),V.track=A,V.stream=L,V.rtpSender=new y.RTCRtpSender(A,V.dtlsTransport),V.rtpSender},g.prototype.addStream=function(A){var L=this;if(r>=15025)A.getTracks().forEach(function(V){L.addTrack(V,A)});else{var x=A.clone();A.getTracks().forEach(function(V,D){var F=x.getTracks()[D];V.addEventListener("enabled",function(I){F.enabled=I.enabled})}),x.getTracks().forEach(function(V){L.addTrack(V,x)})}},g.prototype.removeTrack=function(A){if(this._isClosed)throw S("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(A instanceof y.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var L=this.transceivers.find(function(D){return D.rtpSender===A});if(!L)throw S("InvalidAccessError","Sender was not created by this connection.");var x=L.stream;L.rtpSender.stop(),L.rtpSender=null,L.track=null,L.stream=null,-1===this.transceivers.map(function(D){return D.stream}).indexOf(x)&&this.localStreams.indexOf(x)>-1&&this.localStreams.splice(this.localStreams.indexOf(x),1),this._maybeFireNegotiationNeeded()},g.prototype.removeStream=function(A){var L=this;A.getTracks().forEach(function(x){var V=L.getSenders().find(function(D){return D.track===x});V&&L.removeTrack(V)})},g.prototype.getSenders=function(){return this.transceivers.filter(function(A){return!!A.rtpSender}).map(function(A){return A.rtpSender})},g.prototype.getReceivers=function(){return this.transceivers.filter(function(A){return!!A.rtpReceiver}).map(function(A){return A.rtpReceiver})},g.prototype._createIceGatherer=function(A,L){var x=this;if(L&&A>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var V=new y.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(V,"state",{value:"new",writable:!0}),this.transceivers[A].bufferedCandidateEvents=[],this.transceivers[A].bufferCandidates=function(D){var F=!D.candidate||0===Object.keys(D.candidate).length;V.state=F?"completed":"gathering",null!==x.transceivers[A].bufferedCandidateEvents&&x.transceivers[A].bufferedCandidateEvents.push(D)},V.addEventListener("localcandidate",this.transceivers[A].bufferCandidates),V},g.prototype._gather=function(A,L){var x=this,V=this.transceivers[L].iceGatherer;if(!V.onlocalcandidate){var D=this.transceivers[L].bufferedCandidateEvents;this.transceivers[L].bufferedCandidateEvents=null,V.removeEventListener("localcandidate",this.transceivers[L].bufferCandidates),V.onlocalcandidate=function(F){if(!(x.usingBundle&&L>0)){var I=new Event("icecandidate");I.candidate={sdpMid:A,sdpMLineIndex:L};var k=F.candidate,R=!k||0===Object.keys(k).length;if(R)("new"===V.state||"gathering"===V.state)&&(V.state="completed");else{"new"===V.state&&(V.state="gathering"),k.component=1,k.ufrag=V.getLocalParameters().usernameFragment;var G=l.writeCandidate(k);I.candidate=Object.assign(I.candidate,l.parseCandidate(G)),I.candidate.candidate=G,I.candidate.toJSON=function(){return{candidate:I.candidate.candidate,sdpMid:I.candidate.sdpMid,sdpMLineIndex:I.candidate.sdpMLineIndex,usernameFragment:I.candidate.usernameFragment}}}var Y=l.getMediaSections(x._localDescription.sdp);Y[I.candidate.sdpMLineIndex]+=R?"a=end-of-candidates\r\n":"a="+I.candidate.candidate+"\r\n",x._localDescription.sdp=l.getDescription(x._localDescription.sdp)+Y.join("");var K=x.transceivers.every(function($){return $.iceGatherer&&"completed"===$.iceGatherer.state});"gathering"!==x.iceGatheringState&&(x.iceGatheringState="gathering",x._emitGatheringStateChange()),R||x._dispatchEvent("icecandidate",I),K&&(x._dispatchEvent("icecandidate",new Event("icecandidate")),x.iceGatheringState="complete",x._emitGatheringStateChange())}},y.setTimeout(function(){D.forEach(function(F){V.onlocalcandidate(F)})},0)}},g.prototype._createIceAndDtlsTransports=function(){var A=this,L=new y.RTCIceTransport(null);L.onicestatechange=function(){A._updateIceConnectionState(),A._updateConnectionState()};var x=new y.RTCDtlsTransport(L);return x.ondtlsstatechange=function(){A._updateConnectionState()},x.onerror=function(){Object.defineProperty(x,"state",{value:"failed",writable:!0}),A._updateConnectionState()},{iceTransport:L,dtlsTransport:x}},g.prototype._disposeIceAndDtlsTransports=function(A){var L=this.transceivers[A].iceGatherer;L&&(delete L.onlocalcandidate,delete this.transceivers[A].iceGatherer);var x=this.transceivers[A].iceTransport;x&&(delete x.onicestatechange,delete this.transceivers[A].iceTransport);var V=this.transceivers[A].dtlsTransport;V&&(delete V.ondtlsstatechange,delete V.onerror,delete this.transceivers[A].dtlsTransport)},g.prototype._transceive=function(A,L,x){var V=P(A.localCapabilities,A.remoteCapabilities);L&&A.rtpSender&&(V.encodings=A.sendEncodingParameters,V.rtcp={cname:l.localCName,compound:A.rtcpParameters.compound},A.recvEncodingParameters.length&&(V.rtcp.ssrc=A.recvEncodingParameters[0].ssrc),A.rtpSender.send(V)),x&&A.rtpReceiver&&V.codecs.length>0&&("video"===A.kind&&A.recvEncodingParameters&&r<15019&&A.recvEncodingParameters.forEach(function(D){delete D.rtx}),V.encodings=A.recvEncodingParameters.length?A.recvEncodingParameters:[{}],V.rtcp={compound:A.rtcpParameters.compound},A.rtcpParameters.cname&&(V.rtcp.cname=A.rtcpParameters.cname),A.sendEncodingParameters.length&&(V.rtcp.ssrc=A.sendEncodingParameters[0].ssrc),A.rtpReceiver.receive(V))},g.prototype.setLocalDescription=function(A){var x,V,L=this;if(-1===["offer","answer"].indexOf(A.type))return Promise.reject(S("TypeError",'Unsupported type "'+A.type+'"'));if(!v("setLocalDescription",A.type,L.signalingState)||L._isClosed)return Promise.reject(S("InvalidStateError","Can not set local "+A.type+" in state "+L.signalingState));if("offer"===A.type)x=l.splitSections(A.sdp),V=x.shift(),x.forEach(function(F,I){var k=l.parseRtpParameters(F);L.transceivers[I].localCapabilities=k}),L.transceivers.forEach(function(F,I){L._gather(F.mid,I)});else if("answer"===A.type){x=l.splitSections(L._remoteDescription.sdp),V=x.shift();var D=l.matchPrefix(V,"a=ice-lite").length>0;x.forEach(function(F,I){var k=L.transceivers[I],R=k.iceGatherer,G=k.iceTransport,Y=k.dtlsTransport,K=k.localCapabilities,$=k.remoteCapabilities;if(!(l.isRejected(F)&&0===l.matchPrefix(F,"a=bundle-only").length||k.rejected)){var J=l.getIceParameters(F,V),z=l.getDtlsParameters(F,V);D&&(z.role="server"),(!L.usingBundle||0===I)&&(L._gather(k.mid,I),"new"===G.state&&G.start(R,J,D?"controlling":"controlled"),"new"===Y.state&&Y.start(z));var te=P(K,$);L._transceive(k,te.codecs.length>0,!1)}})}return L._localDescription={type:A.type,sdp:A.sdp},L._updateSignalingState("offer"===A.type?"have-local-offer":"stable"),Promise.resolve()},g.prototype.setRemoteDescription=function(A){var L=this;if(-1===["offer","answer"].indexOf(A.type))return Promise.reject(S("TypeError",'Unsupported type "'+A.type+'"'));if(!v("setRemoteDescription",A.type,L.signalingState)||L._isClosed)return Promise.reject(S("InvalidStateError","Can not set remote "+A.type+" in state "+L.signalingState));var x={};L.remoteStreams.forEach(function(G){x[G.id]=G});var V=[],D=l.splitSections(A.sdp),F=D.shift(),I=l.matchPrefix(F,"a=ice-lite").length>0,k=l.matchPrefix(F,"a=group:BUNDLE ").length>0;L.usingBundle=k;var R=l.matchPrefix(F,"a=ice-options:")[0];return L.canTrickleIceCandidates=!!R&&R.substr(14).split(" ").indexOf("trickle")>=0,D.forEach(function(G,Y){var K=l.splitLines(G),$=l.getKind(G),ee=l.isRejected(G)&&0===l.matchPrefix(G,"a=bundle-only").length,J=K[0].substr(2).split(" ")[2],z=l.getDirection(G,F),te=l.parseMsid(G),X=l.getMid(G)||l.generateIdentifier();if(ee||"application"===$&&("DTLS/SCTP"===J||"UDP/DTLS/SCTP"===J))L.transceivers[Y]={mid:X,kind:$,protocol:J,rejected:!0};else{!ee&&L.transceivers[Y]&&L.transceivers[Y].rejected&&(L.transceivers[Y]=L._createTransceiver($,!0));var re,ge,oe,xe,ue,N,se,ce,Z,ae,pe,de=l.parseRtpParameters(G);ee||(ae=l.getIceParameters(G,F),(pe=l.getDtlsParameters(G,F)).role="client"),se=l.parseRtpEncodingParameters(G);var _e=l.parseRtcpParameters(G),ke=l.matchPrefix(G,"a=end-of-candidates",F).length>0,De=l.matchPrefix(G,"a=candidate:").map(function(gt){return l.parseCandidate(gt)}).filter(function(gt){return 1===gt.component});if(("offer"===A.type||"answer"===A.type)&&!ee&&k&&Y>0&&L.transceivers[Y]&&(L._disposeIceAndDtlsTransports(Y),L.transceivers[Y].iceGatherer=L.transceivers[0].iceGatherer,L.transceivers[Y].iceTransport=L.transceivers[0].iceTransport,L.transceivers[Y].dtlsTransport=L.transceivers[0].dtlsTransport,L.transceivers[Y].rtpSender&&L.transceivers[Y].rtpSender.setTransport(L.transceivers[0].dtlsTransport),L.transceivers[Y].rtpReceiver&&L.transceivers[Y].rtpReceiver.setTransport(L.transceivers[0].dtlsTransport)),"offer"!==A.type||ee)"answer"!==A.type||ee||(ge=(re=L.transceivers[Y]).iceGatherer,oe=re.iceTransport,xe=re.dtlsTransport,ue=re.rtpReceiver,N=re.sendEncodingParameters,ce=re.localCapabilities,L.transceivers[Y].recvEncodingParameters=se,L.transceivers[Y].remoteCapabilities=de,L.transceivers[Y].rtcpParameters=_e,De.length&&"new"===oe.state&&(!I&&!ke||k&&0!==Y?De.forEach(function(gt){O(re.iceTransport,gt)}):oe.setRemoteCandidates(De)),(!k||0===Y)&&("new"===oe.state&&oe.start(ge,ae,"controlling"),"new"===xe.state&&xe.start(pe)),!P(re.localCapabilities,re.remoteCapabilities).codecs.filter(function(gt){return"rtx"===gt.name.toLowerCase()}).length&&re.sendEncodingParameters[0].rtx&&delete re.sendEncodingParameters[0].rtx,L._transceive(re,"sendrecv"===z||"recvonly"===z,"sendrecv"===z||"sendonly"===z),!ue||"sendrecv"!==z&&"sendonly"!==z?delete re.rtpReceiver:(Z=ue.track,te?(x[te.stream]||(x[te.stream]=new y.MediaStream),i(Z,x[te.stream]),V.push([Z,ue,x[te.stream]])):(x.default||(x.default=new y.MediaStream),i(Z,x.default),V.push([Z,ue,x.default]))));else{(re=L.transceivers[Y]||L._createTransceiver($)).mid=X,re.iceGatherer||(re.iceGatherer=L._createIceGatherer(Y,k)),De.length&&"new"===re.iceTransport.state&&(!ke||k&&0!==Y?De.forEach(function(gt){O(re.iceTransport,gt)}):re.iceTransport.setRemoteCandidates(De)),ce=y.RTCRtpReceiver.getCapabilities($),r<15019&&(ce.codecs=ce.codecs.filter(function(gt){return"rtx"!==gt.name})),N=re.sendEncodingParameters||[{ssrc:1001*(2*Y+2)}];var je,Me=!1;"sendrecv"===z||"sendonly"===z?(Me=!re.rtpReceiver,ue=re.rtpReceiver||new y.RTCRtpReceiver(re.dtlsTransport,$),Me&&(Z=ue.track,te&&"-"===te.stream||(te?(x[te.stream]||(x[te.stream]=new y.MediaStream,Object.defineProperty(x[te.stream],"id",{get:function(){return te.stream}})),Object.defineProperty(Z,"id",{get:function(){return te.track}}),je=x[te.stream]):(x.default||(x.default=new y.MediaStream),je=x.default)),je&&(i(Z,je),re.associatedRemoteMediaStreams.push(je)),V.push([Z,ue,je]))):re.rtpReceiver&&re.rtpReceiver.track&&(re.associatedRemoteMediaStreams.forEach(function(gt){var qt=gt.getTracks().find(function(ye){return ye.id===re.rtpReceiver.track.id});qt&&function a(A,L){L.removeTrack(A),L.dispatchEvent(new y.MediaStreamTrackEvent("removetrack",{track:A}))}(qt,gt)}),re.associatedRemoteMediaStreams=[]),re.localCapabilities=ce,re.remoteCapabilities=de,re.rtpReceiver=ue,re.rtcpParameters=_e,re.sendEncodingParameters=N,re.recvEncodingParameters=se,L._transceive(L.transceivers[Y],!1,Me)}}}),void 0===L._dtlsRole&&(L._dtlsRole="offer"===A.type?"active":"passive"),L._remoteDescription={type:A.type,sdp:A.sdp},L._updateSignalingState("offer"===A.type?"have-remote-offer":"stable"),Object.keys(x).forEach(function(G){var Y=x[G];if(Y.getTracks().length){if(-1===L.remoteStreams.indexOf(Y)){L.remoteStreams.push(Y);var K=new Event("addstream");K.stream=Y,y.setTimeout(function(){L._dispatchEvent("addstream",K)})}V.forEach(function($){Y.id===$[2].id&&h(L,$[0],$[1],[Y])})}}),V.forEach(function(G){G[2]||h(L,G[0],G[1],[])}),y.setTimeout(function(){L&&L.transceivers&&L.transceivers.forEach(function(G){G.iceTransport&&"new"===G.iceTransport.state&&G.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),G.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},g.prototype.close=function(){this.transceivers.forEach(function(A){A.iceTransport&&A.iceTransport.stop(),A.dtlsTransport&&A.dtlsTransport.stop(),A.rtpSender&&A.rtpSender.stop(),A.rtpReceiver&&A.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},g.prototype._updateSignalingState=function(A){this.signalingState=A;var L=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",L)},g.prototype._maybeFireNegotiationNeeded=function(){var A=this;"stable"!==this.signalingState||!0===this.needNegotiation||(this.needNegotiation=!0,y.setTimeout(function(){if(A.needNegotiation){A.needNegotiation=!1;var L=new Event("negotiationneeded");A._dispatchEvent("negotiationneeded",L)}},0))},g.prototype._updateIceConnectionState=function(){var A,L={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(V){V.iceTransport&&!V.rejected&&L[V.iceTransport.state]++}),A="new",L.failed>0?A="failed":L.checking>0?A="checking":L.disconnected>0?A="disconnected":L.new>0?A="new":L.connected>0?A="connected":L.completed>0&&(A="completed"),A!==this.iceConnectionState){this.iceConnectionState=A;var x=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",x)}},g.prototype._updateConnectionState=function(){var A,L={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(V){V.iceTransport&&V.dtlsTransport&&!V.rejected&&(L[V.iceTransport.state]++,L[V.dtlsTransport.state]++)}),L.connected+=L.completed,A="new",L.failed>0?A="failed":L.connecting>0?A="connecting":L.disconnected>0?A="disconnected":L.new>0?A="new":L.connected>0&&(A="connected"),A!==this.connectionState){this.connectionState=A;var x=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",x)}},g.prototype.createOffer=function(){var A=this;if(A._isClosed)return Promise.reject(S("InvalidStateError","Can not call createOffer after close"));var L=A.transceivers.filter(function(I){return"audio"===I.kind}).length,x=A.transceivers.filter(function(I){return"video"===I.kind}).length,V=arguments[0];if(V){if(V.mandatory||V.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==V.offerToReceiveAudio&&(L=!0===V.offerToReceiveAudio?1:!1===V.offerToReceiveAudio?0:V.offerToReceiveAudio),void 0!==V.offerToReceiveVideo&&(x=!0===V.offerToReceiveVideo?1:!1===V.offerToReceiveVideo?0:V.offerToReceiveVideo)}for(A.transceivers.forEach(function(I){"audio"===I.kind?--L<0&&(I.wantReceive=!1):"video"===I.kind&&--x<0&&(I.wantReceive=!1)});L>0||x>0;)L>0&&(A._createTransceiver("audio"),L--),x>0&&(A._createTransceiver("video"),x--);var D=l.writeSessionBoilerplate(A._sdpSessionId,A._sdpSessionVersion++);A.transceivers.forEach(function(I,k){var R=I.track,G=I.kind,Y=I.mid||l.generateIdentifier();I.mid=Y,I.iceGatherer||(I.iceGatherer=A._createIceGatherer(k,A.usingBundle));var K=y.RTCRtpSender.getCapabilities(G);r<15019&&(K.codecs=K.codecs.filter(function(ee){return"rtx"!==ee.name})),K.codecs.forEach(function(ee){"H264"===ee.name&&void 0===ee.parameters["level-asymmetry-allowed"]&&(ee.parameters["level-asymmetry-allowed"]="1"),I.remoteCapabilities&&I.remoteCapabilities.codecs&&I.remoteCapabilities.codecs.forEach(function(J){ee.name.toLowerCase()===J.name.toLowerCase()&&ee.clockRate===J.clockRate&&(ee.preferredPayloadType=J.payloadType)})}),K.headerExtensions.forEach(function(ee){(I.remoteCapabilities&&I.remoteCapabilities.headerExtensions||[]).forEach(function(z){ee.uri===z.uri&&(ee.id=z.id)})});var $=I.sendEncodingParameters||[{ssrc:1001*(2*k+1)}];R&&r>=15019&&"video"===G&&!$[0].rtx&&($[0].rtx={ssrc:$[0].ssrc+1}),I.wantReceive&&(I.rtpReceiver=new y.RTCRtpReceiver(I.dtlsTransport,G)),I.localCapabilities=K,I.sendEncodingParameters=$}),"max-compat"!==A._config.bundlePolicy&&(D+="a=group:BUNDLE "+A.transceivers.map(function(I){return I.mid}).join(" ")+"\r\n"),D+="a=ice-options:trickle\r\n",A.transceivers.forEach(function(I,k){D+=m(I,I.localCapabilities,"offer",I.stream,A._dtlsRole),D+="a=rtcp-rsize\r\n",I.iceGatherer&&"new"!==A.iceGatheringState&&(0===k||!A.usingBundle)&&(I.iceGatherer.getLocalCandidates().forEach(function(R){R.component=1,D+="a="+l.writeCandidate(R)+"\r\n"}),"completed"===I.iceGatherer.state&&(D+="a=end-of-candidates\r\n"))});var F=new y.RTCSessionDescription({type:"offer",sdp:D});return Promise.resolve(F)},g.prototype.createAnswer=function(){var A=this;if(A._isClosed)return Promise.reject(S("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==A.signalingState&&"have-local-pranswer"!==A.signalingState)return Promise.reject(S("InvalidStateError","Can not call createAnswer in signalingState "+A.signalingState));var L=l.writeSessionBoilerplate(A._sdpSessionId,A._sdpSessionVersion++);A.usingBundle&&(L+="a=group:BUNDLE "+A.transceivers.map(function(D){return D.mid}).join(" ")+"\r\n"),L+="a=ice-options:trickle\r\n";var x=l.getMediaSections(A._remoteDescription.sdp).length;A.transceivers.forEach(function(D,F){if(!(F+1>x)){if(D.rejected)return"application"===D.kind?L+="DTLS/SCTP"===D.protocol?"m=application 0 DTLS/SCTP 5000\r\n":"m=application 0 "+D.protocol+" webrtc-datachannel\r\n":"audio"===D.kind?L+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===D.kind&&(L+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(L+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+D.mid+"\r\n");var I;D.stream&&("audio"===D.kind?I=D.stream.getAudioTracks()[0]:"video"===D.kind&&(I=D.stream.getVideoTracks()[0]),I&&r>=15019&&"video"===D.kind&&!D.sendEncodingParameters[0].rtx&&(D.sendEncodingParameters[0].rtx={ssrc:D.sendEncodingParameters[0].ssrc+1}));var k=P(D.localCapabilities,D.remoteCapabilities);!k.codecs.filter(function(G){return"rtx"===G.name.toLowerCase()}).length&&D.sendEncodingParameters[0].rtx&&delete D.sendEncodingParameters[0].rtx,L+=m(D,k,"answer",D.stream,A._dtlsRole),D.rtcpParameters&&D.rtcpParameters.reducedSize&&(L+="a=rtcp-rsize\r\n")}});var V=new y.RTCSessionDescription({type:"answer",sdp:L});return Promise.resolve(V)},g.prototype.addIceCandidate=function(A){var x,L=this;return A&&void 0===A.sdpMLineIndex&&!A.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(V,D){if(!L._remoteDescription)return D(S("InvalidStateError","Can not add ICE candidate without a remote description"));if(A&&""!==A.candidate){var I=A.sdpMLineIndex;if(A.sdpMid)for(var k=0;k<L.transceivers.length;k++)if(L.transceivers[k].mid===A.sdpMid){I=k;break}var R=L.transceivers[I];if(!R)return D(S("OperationError","Can not add ICE candidate"));if(R.rejected)return V();var G=Object.keys(A.candidate).length>0?l.parseCandidate(A.candidate):{};if("tcp"===G.protocol&&(0===G.port||9===G.port)||G.component&&1!==G.component)return V();if((0===I||I>0&&R.iceTransport!==L.transceivers[0].iceTransport)&&!O(R.iceTransport,G))return D(S("OperationError","Can not add ICE candidate"));var Y=A.candidate.trim();0===Y.indexOf("a=")&&(Y=Y.substr(2)),(x=l.getMediaSections(L._remoteDescription.sdp))[I]+="a="+(G.type?Y:"end-of-candidates")+"\r\n",L._remoteDescription.sdp=l.getDescription(L._remoteDescription.sdp)+x.join("")}else for(var F=0;F<L.transceivers.length&&(L.transceivers[F].rejected||(L.transceivers[F].iceTransport.addRemoteCandidate({}),(x=l.getMediaSections(L._remoteDescription.sdp))[F]+="a=end-of-candidates\r\n",L._remoteDescription.sdp=l.getDescription(L._remoteDescription.sdp)+x.join(""),!L.usingBundle));F++);V()})},g.prototype.getStats=function(A){if(A&&A instanceof y.MediaStreamTrack){var L=null;if(this.transceivers.forEach(function(V){V.rtpSender&&V.rtpSender.track===A?L=V.rtpSender:V.rtpReceiver&&V.rtpReceiver.track===A&&(L=V.rtpReceiver)}),!L)throw S("InvalidAccessError","Invalid selector.");return L.getStats()}var x=[];return this.transceivers.forEach(function(V){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(D){V[D]&&x.push(V[D].getStats())})}),Promise.all(x).then(function(V){var D=new Map;return V.forEach(function(F){F.forEach(function(I){D.set(I.id,I)})}),D})},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach(function(A){var L=y[A];if(L&&L.prototype&&L.prototype.getStats){var x=L.prototype.getStats;L.prototype.getStats=function(){return x.apply(this).then(function(V){var D=new Map;return Object.keys(V).forEach(function(F){V[F].type=function p(y){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[y.type]||y.type}(V[F]),D.set(F,V[F])}),D})}}});var T=["createOffer","createAnswer"];return T.forEach(function(A){var L=g.prototype[A];g.prototype[A]=function(){var x=arguments;return"function"==typeof x[0]||"function"==typeof x[1]?L.apply(this,[arguments[2]]).then(function(V){"function"==typeof x[0]&&x[0].apply(null,[V])},function(V){"function"==typeof x[1]&&x[1].apply(null,[V])}):L.apply(this,arguments)}}),(T=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach(function(A){var L=g.prototype[A];g.prototype[A]=function(){var x=arguments;return"function"==typeof x[1]||"function"==typeof x[2]?L.apply(this,arguments).then(function(){"function"==typeof x[1]&&x[1].apply(null)},function(V){"function"==typeof x[2]&&x[2].apply(null,[V])}):L.apply(this,arguments)}}),["getStats"].forEach(function(A){var L=g.prototype[A];g.prototype[A]=function(){var x=arguments;return"function"==typeof x[1]?L.apply(this,arguments).then(function(){"function"==typeof x[1]&&x[1].apply(null)}):L.apply(this,arguments)}}),g}},
/*!************************!*\
!*** multi ./index.js ***!
\************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
function(W,d,n){W.exports=n(
/*! ./index.js */
4)},
/*!**********************************!*\
!*** .-core/dist/networktest.js ***!
\**********************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
function(W,d,n){"use strict";var l={P:"NetworkTest_Http_Event",O:"NetworkTest_Exception_Event"};function p(de,ae,pe,_e,ke,De,Me,je,$e){return{name:l.O,R:"technical",networkSessionId:de,message:ae,stacktrace:pe,filename:_e,lineno:ke,colno:De,handled:Me?"TRUE":"FALSE",category:$e,zoneAddress:je}}function m(de,ae,pe){return{name:l.P,R:"functional",url:de,verb:ae,statusCode:"0",requestStatusCode:"",networkSessionId:pe,requestId:"",serverId:"",callDuration:0}}var _={o:{},I:{type:"UNKNOWN"},N:!1,S:!1,s:!0,u:!1};function P(de,ae,pe,_e,ke){_e=`${_e}${function O(...de){return de.length?`##${JSON.stringify(de)}`:""}(...ke)}`,ae={timeStamp:v(),logLevel:ae,logtag:pe,logstr:_e},de.h&&de.h.emit("Log",ae)}function v(){var de=new Date;const ae=(_e,ke,De)=>{if(0<(ke-=_e.length)){let Me="";for(let je=0;je<ke;je++)Me+=De;return Me+=_e}return _e};return ae(de.getFullYear().toString(),4,"0")+"-"+ae((de.getMonth()+1).toString(),2,"0")+"-"+ae(de.getDate().toString(),2,"0")+" "+ae(de.getHours().toString(),2,"0")+":"+ae(de.getMinutes().toString(),2,"0")+":"+ae(de.getSeconds().toString(),2,"0")+"."+ae(de.getMilliseconds().toString(),3,"0")}var S=new class{constructor(){this.h=null,this.g=()=>{},this.i=(de,ae,...pe)=>P(this,"DEBUG",de,ae,pe),this.l=(de,ae,...pe)=>P(this,"INFO",de,ae,pe),this.m=(de,ae,...pe)=>P(this,"WARN",de,ae,pe),this.j=(de,ae,...pe)=>P(this,"ERROR",de,ae,pe)}get a(){return _.u?console.debug.bind(console,"%s DEBUG [%s] %s@@",v()):_.s?this.i:this.g}get f(){return _.u?console.warn.bind(console,"%s WARN [%s] %s@@",v()):_.s?this.m:this.g}get c(){return _.u?console.info.bind(console,"%s INFO [%s] %s@@",v()):_.s?this.l:this.g}get b(){return _.u?console.error.bind(console,"%s ERROR [%s] %s@@",v()):this.j}};function y(de){return!!/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(de)}function r(de){var ae=1;for(let pe=1;pe<de;pe++)ae*=10;return(ae=""+Math.floor(Math.random()*ae)).padEnd(de,"0")}function i(){return!!window.chrome}function a(){const de=i(),ae=window.navigator,pe=ae.vendor,_e=-1<ae.userAgent.indexOf("OPR"),ke=-1<ae.userAgent.indexOf("Edge");return!!ae.userAgent.match("CriOS")||null!==de&&typeof de<"u"&&"Google Inc."===pe&&!1===_e&&!1===ke}function h(){return/^(?!.*chrome).*safari/i.test(navigator.userAgent)}var g={method:"GET",headers:{},body:"",w:0,timeout:0};function c(de,ae=g,pe){let _e=void 0===ae.w?1:ae.w+1;const ke=_e;let Me,De=!1,je=500;const $e=new Promise((Oe,gt)=>{const qt=Re=>{Me=void 0,gt(Re)},ye=()=>{if(De)qt({aborted:!0,B:ke-_e-1});else{var Re=new XMLHttpRequest;Re.onreadystatechange=()=>{if(De){var xt={aborted:!0,B:ke-_e-1};Me=void 0,gt(xt)}else 4==Re.readyState&&(_e--,0==Re.status?0<_e?(S.a("utils","Network error, retries left: "+_e),window.setTimeout(ye,je),je+=500):(Me=void 0,gt(xt={code:2001,B:ke-_e-1})):0<_e&&(504==Re.status||502==Re.status||408==Re.status)?(S.a("utils","Server timeout error, retries left: "+_e),window.setTimeout(ye,je),je+=500):(Me=void 0,Oe(xt={status:Re.status,data:Re.responseText,B:ke-_e-1})))};var Ze=()=>{var xt,un;Re.open(null!==(xt=ae.method)&&void 0!==xt?xt:"GET",de,!0),ae.timeout&&(Re.timeout=ae.timeout),void 0!==ae.headers&&Object.keys(ae.headers).forEach(ct=>{Re.setRequestHeader(ct,ae.headers[ct])}),navigator.onLine?(Me=()=>Re.abort(),Re.send(null!==(un=ae.body)&&void 0!==un?un:"")):qt({code:2002,description:"No network",B:ke-_e-1})},et=(xt,un)=>{un&&(ae.headers=ae.headers||{},ae.headers.Authorization=xt+un),Ze()};if(pe)switch(pe.type){case 0:void 0!==pe.authTokenCallback&&pe.authTokenCallback?pe.authTokenCallback().then(xt=>{et("Basic ",xt)},()=>{Me=void 0,gt({code:2003,description:"Auth token not updated",B:ke-_e-1})}):Ze();break;case 1:et("GFNJWT ",pe.token);break;case 2:et("GFNPartnerJWT ",pe.token);break;default:qt({code:2004,description:"Invalid Auth type provided"})}else Ze()}};ye()});return Object.assign($e,{abort:()=>{De=!0,Me?.()}})}let T,L;function A(){if(!T){let de="Unknown",ae="Unknown";try{if(navigator.platform.includes("Win")){de="Windows";let pe=navigator.userAgent;switch(pe.substring(pe.indexOf("(")+1,pe.indexOf(";"))){case"Win16":ae="3.11";break;case"Windows 95":case"Win95":case"Windows_95":ae="95";break;case"Windows 98":case"Win98":ae="98";break;case"Windows NT 5.0":case"Windows 2000":ae="2000";break;case"Windows NT 5.1":case"Windows XP":ae="XP";break;case"Windows NT 5.2":ae="Server 2003";break;case"Windows NT 6.0":ae="Vista";break;case"Windows NT 6.1":ae="7";break;case"Windows NT 6.2":case"WOW64":ae="8";break;case"Windows 10.0":case"Windows NT 10.0":ae="10";break;case"Windows NT 4.0":case"WinNT4.0":case"WinNT":case"Windows NT":ae="NT 4.0";break;case"Windows ME":ae="ME"}}else if(navigator.platform.includes("Mac")){de="MacOSX";let pe=navigator.userAgent,_e=pe.substring(0,pe.indexOf(")"));ae=_e.substring(_e.lastIndexOf(" ")+1)}else if(navigator.userAgent.includes("CrOS")){de="ChromeOS";let pe=navigator.userAgent,_e=pe.substring(0,pe.indexOf(")"));ae=_e.substring(_e.lastIndexOf(" ")+1)}else navigator.platform.includes("Linux")&&(de="Linux")}catch(pe){S.b("utils","Exception in getting useragent: ",pe)}T={name:de,version:ae}}return T}function x(){if(!L)e:{let de="Unknown",ae="Unknown";try{if(a()){de="Chrome";const pe=navigator.userAgent.match(/Chrome\/([^ ]*)/);pe&&(ae=pe[1])}else if(h()){de="Safari";const pe=navigator.userAgent.match(/Version\/([^ ]*).*?Safari\/([^ ]*)/);if(pe){ae=pe[1],L={name:de,version:ae,webkit:pe[2]};break e}}}catch(pe){S.b("utils","Exception in getting browser: ",pe)}L={name:de,version:ae}}return L}function V(){const de=A(),ae=x();return"GFN-PC/1.0 (WebRTC) NetworkTest/0.0.44 "+de.name+"/"+de.version+" "+ae.name+"/"+ae.version+" (master-5957640)"}function D(de,ae){for(let pe=0;pe<ae.length&&pe<de.length;++pe){const _e=de[pe],ke=ae[pe];if(_e>ke)break;if(_e<ke)return!1}return!0}function F(de){let ae=1e3;return 0<de&&4095>de&&(ae=1e3+de),ae}function I(de,ae,pe,_e,ke,De,Me,je){de.a.emit("NetworkTestAnalytics",p(de.sessionId,ae,pe,_e,ke,De,Me,de.zone,je??""))}var k=class{constructor(de,ae,pe){this.sessionId=de,this.a=ae,this.zone=pe}};function G(de,ae){if(!a())return de;let pe=de.split("\r\n"),_e=-1;for(let ke=0;ke<pe.length;ke++)if(0===pe[ke].indexOf("m=video")){_e=ke;break}if(-1===_e)return console.debug("Could not find m=","video"),de;for(console.debug("Found m=","video"," at line:",_e),_e++;0===pe[_e].indexOf("i=")||0===pe[_e].indexOf("c=");)_e++;return 0===pe[_e].indexOf("b")&&_e++,(de=pe.slice(0,_e)).push("a=fmtp:96 x-google-max-bitrate="+ae),de.push("a=fmtp:96 x-google-min-bitrate=3000"),de.push("a=fmtp:96 x-google-start-bitrate=3000"),de.concat(pe.slice(_e,pe.length)).join("\r\n")}function K(de){let ae=de.l+"/sign_in?peer_id="+de.name;S.c("ntrtcclient","sign in url: "+ae);let pe=m(ae,"GET",de.c.sessionId);pe.serverId=de.c.zone;let ke,_e=performance.now();const De=$e=>{de.A=void 0,pe.statusCode=String($e),ke=performance.now(),pe.callDuration=Math.round(ke-_e),de.h.emit("NetworkTestAnalytics",pe)},Me=($e,Oe,gt)=>{De($e),S.b("ntrtcclient","Sign in request failed. status:"+$e+" errorCode "+Oe),J(de,{code:Oe,description:"Netsession sign in request failed with error",errorDetail:gt??"SIGNIN_FAILED"})};let je=1e4;_.o.signInTimeout&&0<_.o.signInTimeout&&(je=_.o.signInTimeout,S.c("ntrtcclient","Sign in timeout changed to: "+je)),de.A=c(ae,{method:"GET",headers:de.m,w:3,timeout:je/4}),de.A.then($e=>{200===$e.status?(De($e.status),S.a("ntrtcclient","Sign in response: ["+$e.data+"]"),de.id=parseInt($e.data.split("\n")[0].split(",")[1]),S.a("ntrtcclient","server provided client id: "+de.id),function z(de){de.j=window.setTimeout(()=>{if(de.j=0,!de.C){let ae=4e3,pe="SIGNALING_TIMEOUT";de.K?de.L?de.M&&(ae=4010,pe="FIN_FAILED"):(ae=4008,pe="PEERCONNECTION_FAILED"):(ae=4007,pe="PEERCONNECTION_FAILED"),J(de,{code:ae,description:"Fail with timeout to run network test",errorDetail:pe}),S.b("ntrtcclient","iceCandidateFlag "+de.b)}},3e4)}(de),te(de)):Me($e.status,F($e.status))}).catch($e=>{var Oe;(null==$e||!$e.aborted)&&($e.code?(S.b("ntrtcclient","Sigin request failed with "+$e.code),Me(0,$e.code)):(Me(0,2005),null!=$e&&$e.stack&&(S.b("ntrtcclient","exception while performing streamer sign in request: "+$e),null===(Oe=de.f)||void 0===Oe||I(Oe,"exception while performing streamer sign in request",$e.stack,"ntrtcclient.ts",0,0,!0))))})}function $(de){if(de.C=!0,de.c&&(de.A&&(de.A.abort(),de.A=void 0),de.D&&(de.D.abort(),de.D=null),de.a&&de.a.close(),0!==de.j&&(window.clearTimeout(de.j),de.j=0),0!=de.id)){let ae=de.l+"/sign_out?peer_id="+de.id,pe=m(ae,"GET",de.c.sessionId);pe.serverId=de.c.zone;let ke,_e=performance.now();c(ae,{headers:de.m}).then(De=>{void 0!==De.status&&(pe.statusCode=String(De.status)),ke=performance.now(),pe.callDuration=Math.round(ke-_e),de.h.emit("NetworkTestAnalytics",pe),200==De.status?S.c("ntrtcclient","Successfully signed out from streaming server"):S.b("ntrtcclient","Error during signout from streaming server: "+De.status)}).catch(()=>{ke=performance.now(),pe.callDuration=Math.round(ke-_e),de.h.emit("NetworkTestAnalytics",pe),S.b("ntrtcclient","Network error while sending the singout request")})}}function ee(de,ae){Object.keys(de.m).forEach(pe=>{ae.setRequestHeader(pe,de.m[pe])})}function J(de,ae){de.C||(window.clearInterval(de.H),de.C=!0,0!==de.j&&(window.clearTimeout(de.j),de.j=0),de.h.emit("NetworkTestCompleted",{sessionId:de.c.sessionId,error:ae,zone:de.c.zone}),S.b("ntrtcclient","Stopping Stream with error "+ae.code))}function te(de){let ae=m("","GET",de.c.sessionId);ae.serverId=de.c.zone;let pe=performance.now(),_e=!1,ke=!1;const De=new XMLHttpRequest;de.D=De,De.onloadend=()=>{if(!_e){if(200==De.status){S.a("ntrtcclient","hanging get request succeeded response:\n"+De.responseText);var je=De.getResponseHeader("Pragma");S.a("ntrtcclient","peer Id header"+je),null!=je&&je.length?(je=parseInt(je))!=de.id&&(S.a("ntrtcclient","* message from remote peer:"+je),function X(de,ae,pe){S.a("ntrtcclient","* handlePeerMessage from remote peer "+ae),S.a("ntrtcclient","*[Message] <\n"+pe+"\n>");const _e=ke=>{S.b("ntrtcclient","handlePeerMessage: failed with errorCode "+ke.code),ke.errorDetail="PEERCONNECTION_FAILED",J(de,ke)};try{let ke=JSON.parse(pe);if(void 0!==ke.type&&"offer"===ke.type)(function oe(de,ae){S.a("ntrtcclient","attempting peer connection to: "+ae);try{let pe={iceServers:[{urls:"stun:stun.gamestream.nvidia.com:19302"}]};S.a("ntrtcclient","* configuration:"+JSON.stringify(pe)),S.a("ntrtcclient","* options :"+JSON.stringify({optional:[{DtlsSrtpKeyAgreement:!0},{ca:!0},{aa:!0}]})),de.a=new RTCPeerConnection(pe);const _e=()=>{de.b|=16,!(4&de.b)&&J(de,{code:4004,errorDetail:"PEERCONNECTION_FAILED"})};de.a.onconnectionstatechange=()=>{if(de.a)switch(S.a("ntrtcclient","pc state: "+de.a.connectionState),de.a.connectionState){case"disconnected":case"failed":_e()}else S.b("ntrtcclient","pc is null")},de.a.oniceconnectionstatechange=()=>{if(de.a)switch(S.a("ntrtcclient","peer iceConnectionState state: "+de.a.iceConnectionState),de.a.iceConnectionState){case"new":de.b|=1;break;case"checking":de.b|=2;break;case"connected":de.b|=4;break;case"completed":de.b|=8;break;case"failed":_e();break;case"disconnected":de.b|=32;break;case"closed":de.b|=64,32&de.b&&J(de,{code:4005,errorDetail:"PEERCONNECTION_FAILED"})}else S.b("ntrtcclient","pc is null")},de.a.ondatachannel=ke=>{S.a("ntrtcclient","Server created a DataChannel: "+ke.channel.label),"control_channel"==ke.channel.label&&(ke.channel.onopen=()=>{S.c("ntrtcclient","ntrtcclient","Control channel opened"),de.J=ke.channel;{let De=5e3;_.o.finTimeout&&0<_.o.finTimeout&&(De=_.o.finTimeout,S.c("ntrtcclient","fin timeout changed to: "+De)),window.setTimeout(()=>{var je,Me={fin:{sessionId:de.c.sessionId,packetsLost:de.i,packetsReceived:de.v}};try{"open"===(null===(je=de.J)||void 0===je?void 0:je.readyState)?de.J.send(JSON.stringify(Me)):(S.f("ntrtcclient","Couldn't send control channel message"),J(de,{code:4009,errorDetail:"FIN_FAILED"}))}catch($e){S.b("ntrtcclient","sendControlMessage exception: "+$e),de.f&&I(de.f,"sendControlMessage exception",$e.stack,"ntrtcclient.ts",0,0,!0),J(de,{code:2005,errorDetail:"FIN_FAILED"})}de.M=!0},De),de.H=window.setInterval(()=>function re(de){de.a.getReceivers().forEach(function(ae){ae.getStats().then(function(pe){pe.forEach(function(_e){"inbound-rtp"===_e.type&&"video"===_e.kind&&"inbound-rtp"===_e.type&&"video"===_e.kind&&(de.i=_e.packetsLost,de.v=_e.packetsReceived,S.c("ntrtcclient","PLCalc: "+100*de.i/(de.v+de.i)+",L:"+de.i+", R:"+de.v))})})})}(de),500)}},ke.channel.onerror=()=>{de.C||(S.b("ntrtcclient","ntrtcclient","Control channel error"),J(de,{code:4006,errorDetail:"FIN_FAILED"}))},ke.channel.onclose=()=>{S.c("ntrtcclient","ntrtcclient","Control channel closed")},ke.channel.onmessage=De=>{try{let Me=JSON.parse(De.data);S.a("ntrtcclient","Received message on control channel: "+JSON.stringify(Me)),Me.finAck?(De=Me).finAck&&(de.g.downlinkBandwidth=Math.round(1.15*De.finAck.downlinkBandwidth*100)/100,52428800<de.g.downlinkBandwidth&&(S.c("ntrtcclient","actual downlinkBandwidth: "+de.g.downlinkBandwidth+"ceiled to 52428800"),de.g.downlinkBandwidth=52428800),de.g.packetLoss=100*De.finAck.packetLoss/100,-1!=de.i&&0!=de.v&&(de.g.packetLoss=100*de.i/(de.i+de.v),S.c("ntrtcclient","(PL v1.0) server Reported PL is "+De.finAck.packetLoss+"client reported PL is:"+de.g.packetLoss)),de.g.latency=Math.round(100*De.finAck.latency)/100,de.g.networkTestThreshold=de.c.networkTestThreshold,S.c("ntrtcclient","NetworkTest result: "+JSON.stringify(de.g)),de.h.emit("NetworkTestCompleted",{sessionId:de.c.sessionId,testResult:de.g,zone:de.c.zone}),window.clearInterval(de.H)):S.b("ntrtcclient","Unhandled Message")}catch(Me){S.b("ntrtcclient","ntrtcclient","Error in control_channel message handling: "+Me),de.f&&I(de.f,"Error in control_channel message handling",Me.stack,"ntrtcclient.ts",0,0,!0)}})},a()||de.a.addEventListener("icecandidate",ke=>{console.trace("* event: icecandidate ----\x3e "),de.a&&de.a.canTrickleIceCandidates&&de.a.onicecandidate&&de.a.onicecandidate(ke)}),de.a.onicecandidate=ke=>{S.c("ntrtcclient","* pc.onicecandidate event="+ke),ke.candidate?(S.c("ntrtcclient","# pc.onicecandidate "+ke.candidate.candidate),ge(de,ae,JSON.stringify({sdpMLineIndex:ke.candidate.sdpMLineIndex,sdpMid:ke.candidate.sdpMid,candidate:ke.candidate.candidate})),de.K=!0):S.a("ntrtcclient","# End of candidates.")},de.a.ba=()=>{S.c("ntrtcclient","streaming session connecting")},de.a.onopen=()=>{S.c("ntrtcclient","streaming session connected")},de.a.ontrack=ke=>{S.c("ntrtcclient","Received remote stream:"+ke.streams[0].id)}}catch(pe){S.b("ntrtcclient","Exception in creating peer connection: "+pe),de.f&&I(de.f,"Exception in creating peer connection",pe.stack,"ntrtcclient.ts",0,0,!0)}})(de,ae),de.a.setRemoteDescription(new RTCSessionDescription(ke)).then(()=>{S.a("ntrtcclient","onRemoteSdpSuccess");let De={mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0,audio:!0,video:{width:{min:""},height:{min:""},frameRate:{min:""}}}};De.mandatory.video.width.min=de.F.networkTestProfile[0].width.toString(),De.mandatory.video.height.min=de.F.networkTestProfile[0].height.toString(),De.mandatory.video.frameRate.min=de.F.networkTestProfile[0].frameRate.toString(),S.a("ntrtcclient","* mediaConstraints >>> "+JSON.stringify(De)),de.a.createAnswer(De).then(Me=>{S.a("ntrtcclient","* respond to remote peer with an ANSWER");let je="50000";S.a("ntrtcclient","* setLocalDescription >>> : \n"+Me.sdp),void 0!==Me.sdp&&(Me.sdp=function R(de,ae){let pe=de.split("\r\n"),_e=-1;for(let ke=0;ke<pe.length;ke++)if(0===pe[ke].indexOf("m=video")){_e=ke;break}if(-1===_e)return console.debug("Could not find m=","video"),de;for(console.debug("Found m=","video"," at line:",_e),_e++;0===pe[_e].indexOf("i=")||0===pe[_e].indexOf("c=");)_e++;return 0===pe[_e].indexOf("b")?(console.debug("Override b=AS: line at line",_e),pe[_e]="b=AS:"+ae,pe.join("\r\n")):(console.debug("Adding new b line before line",_e),(de=pe.slice(0,_e)).push("b=AS:"+ae),(de=de.concat(pe.slice(_e,pe.length))).join("\r\n"))}(Me.sdp,je),a()&&(Me.sdp=G(Me.sdp,je)),Me.sdp=function Y(de){let ae=de.split("\r\n"),pe=-1;for(var _e=0;_e<ae.length;_e++)if(0===ae[_e].indexOf("m=audio")){pe=_e;break}if(-1===pe)return console.debug("Could not find m=","audio"),de;console.debug("Found m=","audio"," at line:",pe),_e=ae[pe].split(" ")[3];for(let ke=pe;ke<ae.length;ke++)if(0===ae[ke].indexOf("a=fmtp:"+_e+" ")){pe=ke;break}return pe===ae.length?(console.debug("Could not find fmtp for m=","audio",": ",_e),de):(de=ae[pe],console.debug("Found fmtp=",de),de+=";stereo=1",console.debug("Modified fmtp = "+de),(_e=ae.slice(0,pe-1)).push(de),(_e=_e.concat(ae.slice(pe))).join("\r\n"))}(Me.sdp),S.a("ntrtcclient","* >>> MODIFIED SDP : \n"+Me.sdp)),de.a.setLocalDescription(Me).then(()=>{S.a("ntrtcclient","setLocalDescription succeeded"),void 0===Me.sdp||a()||(Me.sdp=G(Me.sdp,je));let $e=JSON.stringify(Me);ge(de,ae,$e)}).catch($e=>{S.b("ntrtcclient","setLocalDescription failed. Error: "+$e),_e({code:4001})})}).catch(Me=>{S.a("ntrtcclient","Create answer error:",Me)})}).catch(De=>{S.b("ntrtcclient","onRemoteSdpError: ",De),_e({code:4002})});else if(ke.candidate){S.a("ntrtcclient","Adding ICE candidate ");let De=function xe(de,ae){if(S.a("ntrtcclient","checking for ice candidate update"),""!=de.G){for((ae=ae.split(" "))[0]="candidate:"+r(10),ae[3]=ae[3].slice(0,4)+r(6),ae[4]=de.G,de=6;de<ae.length-1;de++)"network-id"===ae[de]&&(ae[de+1]+="1");return de=ae.join(" "),S.c("ntrtcclient","Ice candidate overridden to: "+de),de}return S.a("ntrtcclient","using server provided ice candidates"),ae}(de,ke.candidate);S.a("ntrtcclient","updated ice candidate: "+De);let Me=new RTCIceCandidate({sdpMLineIndex:ke.sdpMLineIndex,candidate:De});de.a.addIceCandidate(Me).then(()=>{S.a("ntrtcclient","add ice candidate succeeded"),de.L=!0}).catch(je=>{S.b("ntrtcclient","add ice candidate failed "+je)}),S.a("ntrtcclient","add ice candidate --")}}catch(ke){"BYE"===pe?_e({code:4003}):(S.b("ntrtcclient","Invalid handlePeerMessage Response: "+ke),de.f&&I(de.f,"Invalid handlePeerMessage Response",ke.stack,"ntrtcclient.ts",0,0,!0))}}(de,je,De.responseText)):S.b("ntrtcclient","hanging get response doesnt have peer id")}else ke||504===De.status||(S.b("ntrtcclient",0===De.status?"hanging get request failed without a response":"hanging get request failed. status: "+De.status),ae.statusCode=String(De.status),ae.callDuration=Math.round(performance.now()-pe),de.h.emit("NetworkTestAnalytics",ae));window.setTimeout(()=>te(de),ke||200===De.status||504===De.status?0:2e3)}},De.onabort=()=>{_e=!0},De.ontimeout=()=>{ke=!0};let Me=de.l+"/wait?peer_id="+de.id;ae.url=Me,S.a("ntrtcclient","performing hanging get: "+Me),De.open("GET",Me),De.timeout=1e4,ee(de,De),De.send()}function ge(de,ae,pe){S.a("ntrtcclient","* sendDataToPeer - remote peer "+ae+" data to send <\n"+pe+"\n>");let _e=m("","POST",de.c.sessionId);_e.serverId=de.c.zone;let De,ke=performance.now();try{let Me=de.l+"/message?peer_id="+de.id+"&to="+ae;_e.url=Me;let je=new XMLHttpRequest;je.onreadystatechange=()=>{4==je.readyState&&(_e.statusCode=String(je.status),De=performance.now(),_e.callDuration=Math.round(De-ke),de.h.emit("NetworkTestAnalytics",_e),200==je.status?S.c("ntrtcclient","successfully sent message to peer: "+ae):S.b("ntrtcclient","failed to send message to peer: "+ae))},je.open("POST",Me,!0),je.setRequestHeader("Content-Type","text/plain"),ee(de,je),je.send(pe)}catch(Me){S.b("ntrtcclient","send to peer error: "+Me),de.f&&I(de.f,"send to peer error",Me.stack,"ntrtcclient.ts",0,0,!0)}}var ue=class{constructor(de){this.M=this.K=this.L=!1,this.h=de,this.name="peer-"+r(10),S.a("ntrtcclient","Generated stream client name is: "+this.name),this.id=0,this.c=null,this.A=void 0,this.D=null,this.l="",this.J=this.a=null,this.C=!1,this.b=0,this.m={},this.f=null,this.g={downlinkBandwidth:0,packetLoss:0,latency:0,networkTestThreshold:{latencyLimit:0,latencyRecommended:0,packetLossLimit:0,packetLossRecommended:0,bandwidthLimit:0,bandwidthRecommended:0}},this.j=0,this.G="",this.H=0,this.i=-1,this.v=0}start(de,ae){this.f=new k(de.sessionId,this.h,de.serverId),this.c=de,this.F=ae,V(),S.c("ntrtcclient","NetworkTestRtcClient: serialized session : "+JSON.stringify(de)),"https"==de.protocol&&(this.m["nv-sessionid"]=de.sessionId,this.m["nv-serverId"]=de.serverId),0==ae.serverAddress.indexOf("prod.")&&(ae.serverAddress=de.zone+ae.serverAddress.substr(4),S.a("ntrtcclient","serverAddress adjusted to Zone value: "+ae.serverAddress)),this.l=de.protocol+"://"+ae.serverAddress+":"+de.port,"PassThruSessionId"==de.sessionId&&(this.l=de.protocol+"://"+de.address+":"+de.port),this.G=de.address,K(this)}},N=class{constructor(de){this.protocol="https://",this.c=de,this.a=g,this.a.timeout=8e3,this.a.w=3,V(),this.a.headers["Content-Type"]="application/json",this.a.headers["x-nv-client-identity"]=V(),this.a.headers["nv-client-identity"]=V(),this.a.headers["x-nv-client-version"]="1.0",this.zone=""}b(de){let ae={netTestRequestData:{clientPlatformName:de.platformId,netTestProfile:{widthInPixels:de.networkTestProfile[0].width,heightInPixels:de.networkTestProfile[0].height,framesPerSecond:de.networkTestProfile[0].frameRate}}};this.zone=de.serverAddress;let pe={method:"POST",headers:this.a.headers,body:JSON.stringify(ae),w:this.a.w,timeout:this.a.timeout};S.a("ntsessionrequest"," The serialized POST request object : "+pe.body);let _e=this.protocol+de.serverAddress+"/v2/nettestsession";return new Promise((ke,De)=>{let $e,Me=m(_e,"POST",""),je=performance.now();const Oe=()=>{$e=performance.now(),Me.callDuration=Math.round($e-je),this.c.emit("NetworkTestAnalytics",Me)},gt=qt=>{var ye;return Oe(),{error:{code:qt,description:"Netsession post request failed with error",errorDetail:"POST_FAILED"},sessionId:null!==(ye=this.sessionId)&&void 0!==ye?ye:"undefined",zone:this.zone}};c(_e,pe,de.authInfo).then(qt=>{if(S.a("ntsessionrequest","post session request completed with status code: "+qt.status+"data: "+qt.data),$e=performance.now(),void 0===qt.status)return S.b("ntsessionrequest","Failed to get status from response"),Me.statusCode="1701",De(gt(2e3));if(Me.statusCode=String(qt.status),void 0!==qt.data){var ye=JSON.parse(qt.data);ye.requestStatus&&(Me.requestId=ye.requestStatus.requestId,Me.serverId=ye.requestStatus.serverId,Me.requestStatusCode=String(ye.requestStatus.statusCode),this.zone=ye.requestStatus.serverId,S.a("ntsessionrequest","now we have Zone info from nettestsession as:"+this.zone))}let Re;if(void 0!==ye.netTestSession){if(this.sessionId=Me.networkSessionId=ye.netTestSession.sessionId,S.a("ntsessionrequest","Network test session Id: "+this.sessionId),!(0<ye.netTestSession.connectionInfo.length))return S.b("ntsessionrequest","Connection Info is not valid"),De(gt(2e3));Re={address:(ye=ye.netTestSession).connectionInfo[0].ip,port:ye.connectionInfo[0].port,sessionId:ye.sessionId,networkTestThreshold:{bandwidthRecommended:ye.netTestThresholds.recommendedBandwidthMBPS,bandwidthLimit:ye.netTestThresholds.requiredBandwidthMBPS,latencyRecommended:ye.netTestThresholds.recommendedLatencyMS,latencyLimit:ye.netTestThresholds.requiredLatencyMS,packetLossRecommended:ye.netTestThresholds.recommendedPacketLossPct,packetLossLimit:ye.netTestThresholds.requiredPacketLossPct},protocol:5==ye.connectionInfo[0].appLevelProtocol?"https":"http",serverId:ye.serverId}}return 200!==qt.status?1401==(qt=F(qt.status))||1403==qt?(S.b("ntsessionrequest","Failed with unauthorize error"),De(gt(1401))):De(gt(qt)):void 0===Re?(S.b("ntsessionrequest","Failed to parse netTestSession"),De(gt(2e3))):(Re.zone=this.zone,Oe(),void ke(Re))}).catch(qt=>{let ye;qt instanceof SyntaxError?(S.b("ntsessionrequest","Session Response: "+qt+": "+JSON.stringify(qt)),ye=2e3):qt.code?(S.b("ntsessionrequest","session request failed with "+qt.code),ye=qt.code):(ye=2001,S.b("ntsessionrequest","Session Fail with network error"+qt+":"+JSON.stringify(qt))),De(gt(ye))})})}},se=class extends N{constructor(de){super(de)}b(de){return S.a("ntsessionrequest","Passthrough network test session"),new Promise(ae=>{window.setTimeout(()=>{let pe={sessionId:"PassThruSessionId",address:de.serverAddress,port:49100,networkTestThreshold:{bandwidthLimit:25,bandwidthRecommended:50,latencyLimit:80,latencyRecommended:40,packetLossRecommended:1,packetLossLimit:3,percentile99thFrameJitterRecommended:40,percentile99thFrameJitterLimit:80},protocol:"http",serverId:""};S.a("ntsessionrequest","Passthru: returning a fake session: "+pe.sessionId),ae(pe)},1)})}},ce=class{constructor(){this.c=new Map}addListener(de,ae){let pe=this.c.get(de);void 0!==pe?pe.push(ae):this.c.set(de,[ae])}removeListener(de,ae){if((de=this.c.get(de))&&de.length){let pe=0;for(;pe<de.length;pe++)if(de[pe]===ae){de.splice(pe,1);break}}}hasListener(de){return void 0!==(de=this.c.get(de))&&0<de.length}emit(de,...ae){try{let pe=this.c.get(de);pe&&pe.forEach(function(_e){window.setTimeout(_e,0,...ae)})}catch(pe){S.b("eventemitter","Exception in emit: "+pe)}}};window.NetworkTest=window.NetworkTest||{},window.NetworkTest.getNetworkTestExceptionTelemetryEvent=p,window.NetworkTest.getNetworkTestHttpTelemetryEvent=m,window.NetworkTest.GdprLevel={W:"functional",X:"technical",U:"behavioral"},window.NetworkTest.BooleanType={Y:"TRUE",V:"FALSE",Z:"UNDEFINED"},window.NetworkTest.EventName=l,window.NetworkTest.NetworkTestApp=class extends ce{constructor(){super(),this.g=this.b=null,this.m=this.l.bind(this),this.j=this.i.bind(this),this.sessionId="undefined",this.zone="",this.a={platformId:"gfn_browser_client",deviceId:"",serverAddress:"",networkTestProfile:[{width:1920,height:1080,frameRate:60}]},this.f=new k(this.sessionId,this,this.a.serverAddress),this.addListener("NetworkTestCompleted",this.h.bind(this)),window.addEventListener("error",this.j)}i(de){return S.b("networktestapp","window unhandled error at "+de.filename+" "+de.lineno+":"+de.colno),this.emit("NetworkTestCompleted",{sessionId:this.sessionId,error:{code:2005,description:"Quitting due to Unhandled exception",errorDetail:"UNKNOWN"},zone:this.zone}),I(this.f,de.error&&de.error.message?de.error.message:de.message,de.error&&de.error.stack?de.error.stack:"No Stack",de.filename,de.lineno,de.colno,!1,"UnhandledException"),!1}l(){this.b&&($(this.b),this.b=null)}h(){S.a("networktestapp","Network Test Completed."),window.removeEventListener("unload",this.m),this.b&&($(this.b),this.b=null)}startNetworkTest(de){if(S.h=this,!de)return S.b("networktestapp","Network test param is not valid"),!1;if(!de.serverAddress||!de.serverAddress.length)return S.b("networktestapp","Server address is not valid"),!1;if(this.f.zone=de.serverAddress,!de.networkTestProfile||1>de.networkTestProfile.length)return S.b("networktestapp","Invalid network test profile"),!1;if(Object.keys(de).forEach(ae=>{this.a[ae]=de[ae]||this.a[ae]}),y(this.a.serverAddress))S.a("networktestapp","creating passthru server"),this.g=new se(this);else{if(this.a.serverAddress.startsWith("mock://"))S.a("networktestapp","Creating Mock server"),this.a.serverAddress=this.a.serverAddress.replace("mock://","");else if(!de.authInfo||!de.authInfo.authTokenCallback&&!de.authInfo.token)return S.b("networktestapp","Auth Info is not provided"),!1;this.g=new N(this)}return this.zone=this.a.serverAddress,this.g.b(this.a).then(ae=>{var pe;this.sessionId=ae.sessionId,this.zone=null!==(pe=ae.zone)&&void 0!==pe?pe:this.zone,S.a("networktestapp","Received session: "+this.sessionId),this.f.sessionId=this.sessionId,this.b=new ue(this),this.b.start(ae,this.a)}).catch(ae=>{var pe,_e,ke,De;ae.sessionId&&(this.sessionId=ae.sessionId),ae.zone=this.zone,ae.error&&ae.error.code?(S.b("networktestapp","session request failed. error: "+ae.error.code),this.emit("NetworkTestCompleted",ae)):(this.emit("NetworkTestCompleted",{sessionId:this.sessionId,error:{code:2005,description:"Quitting due to exception",errorDetail:"UNKNOWN"}}),S.b("networktestapp","Exception happened in session call: "+ae),I(this.f,"Exception happened in session call",null!==(pe=ae.stack)&&void 0!==pe?pe:"No Stack",null!==(_e=ae.filename)&&void 0!==_e?_e:"",null!==(ke=ae.lineno)&&void 0!==ke?ke:0,null!==(De=ae.colno)&&void 0!==De?De:0,!0))}),!0}},window.NetworkTest.ConfigureNetworkTestSettings=function(de){var ae,pe,_e;if(console.log(de),_.I.type="OTHER",de.gxtOverrideData){const ke=JSON.parse(de.gxtOverrideData);if(_.I={type:"GXT",version:null===(ae=ke.$)||void 0===ae?void 0:ae.da},ke.T)for(const De of ke.T)"rtcNetworkTest"==De.name&&(_.o=De.value)}else de.remoteConfigData&&(_.I={type:"RCONFIG",version:de.remoteConfigData.version},de.remoteConfigData.rtcnetworktest&&(_.o=JSON.parse(de.remoteConfigData.rtcnetworktest)));if(de.overrideData){const ke=new URLSearchParams(de.overrideData.toLowerCase());"lean"===ke.get("mode")?(_.S=!0,_.s=!1,_.N=!0):"dev"===ke.get("mode")&&(_.N=!0),_.s=null!==(pe=(de=De=>{if(De=ke.get(De))switch(De){case"enable":case"on":case"1":case"true":return!0;case"disable":case"off":case"0":case"false":return!1}})("log"))&&void 0!==pe?pe:_.s,_.u=_.s&&(null!==(_e=de("console"))&&void 0!==_e?_e:_.u)}},window.NetworkTest.NetworkTestSettings=_,window.NetworkTest.IsValidIPv4=y,window.NetworkTest.GetRandNumericString=r,window.NetworkTest.IsChromium=i,window.NetworkTest.IsChrome=a,window.NetworkTest.IsSafari=h,window.NetworkTest.performHttpRequest=c,window.NetworkTest.getPlatform=A,window.NetworkTest.getBrowser=x,window.NetworkTest.getAppUserAgent=V,window.NetworkTest.IsTouchDevice=function(){return window.matchMedia("(pointer:coarse)").matches},window.NetworkTest.getNewGuid=function(){let de=new Uint8Array(36);window.crypto.getRandomValues(de);let ae="";for(let pe=0;36>pe;pe++){let _e=de[pe]%16;8==pe||13==pe||18==pe||23==pe?ae+="-":14==pe?ae+="4":(19==pe&&(_e=3&_e|8),ae+=_e.toString(16))}return ae},window.NetworkTest.isChromeVersionAtLeast=function(de,ae,pe,_e,ke){if("Chrome"!=de.name)return!1;ae=[ae,pe??0,_e??0,ke??0];try{return D(de.version.split(".").map(Me=>Number.parseInt(Me)),ae)}catch{S.f("utils","Failed to parse Chrome version")}return!0},window.NetworkTest.isSafariVersionAtLeast=function(de,ae,pe,_e){if("Safari"!=de.name)return!1;ae=[ae,pe??0,_e??0];try{return D(de.version.split(".").map(De=>Number.parseInt(De)),ae)}catch{S.f("utils","Failed to parse Safari application version")}return!0},window.NetworkTest.isSafariWebKitVersionAtLeast=function(de,ae,pe,_e){if("Safari"!=de.name||!de.webkit)return!1;ae=[ae,pe??0,_e??0];try{return D(de.webkit.split(".").map(De=>Number.parseInt(De)),ae)}catch{S.f("utils","Failed to parse Safari WebKit version")}return!0},window.NetworkTest.getHttpNtErrorCode=F,window.NetworkTest.CLIENT_IDENTIFICATION="GFN-PC",window.NetworkTest.CLIENT_VERSION="1.0",window.NetworkTest.DEFAULT_PORT=49100,window.NetworkTest.UNDEFINED_SESSION_ID="undefined",window.NetworkTest.DefaultHttpRequestOptions=g,window.NetworkTest.CHANGELIST="master-5957640"},
/*!*******************************!*\
!*** ./index.js + 16 modules ***!
\*******************************/
/*! exports provided: getNetworkTestExceptionTelemetryEvent, getNetworkTestHttpTelemetryEvent, GdprLevel, BooleanType, EventName, NetworkTestApp, ConfigureNetworkTestSettings, NetworkTestSettings, IsValidIPv4, GetRandNumericString, IsChromium, IsChrome, IsSafari, performHttpRequest, getPlatform, getBrowser, getAppUserAgent, IsTouchDevice, getNewGuid, isChromeVersionAtLeast, isSafariVersionAtLeast, isSafariWebKitVersionAtLeast, getHttpNtErrorCode, CLIENT_IDENTIFICATION, CLIENT_VERSION, DEFAULT_PORT, UNDEFINED_SESSION_ID, DefaultHttpRequestOptions, CHANGELIST */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rtcpeerconnection-shim/rtcpeerconnection.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/sdp/sdp.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: multi ./index.js (referenced with single entry) */
function(W,d,n){"use strict";n.r(d),n.d(d,"getNetworkTestExceptionTelemetryEvent",function(){return fn}),n.d(d,"getNetworkTestHttpTelemetryEvent",function(){return dt}),n.d(d,"GdprLevel",function(){return nn}),n.d(d,"BooleanType",function(){return yn}),n.d(d,"EventName",function(){return Xn}),n.d(d,"NetworkTestApp",function(){return rn}),n.d(d,"ConfigureNetworkTestSettings",function(){return ai}),n.d(d,"NetworkTestSettings",function(){return ri}),n.d(d,"IsValidIPv4",function(){return Ne}),n.d(d,"GetRandNumericString",function(){return zt}),n.d(d,"IsChromium",function(){return vt}),n.d(d,"IsChrome",function(){return Ct}),n.d(d,"IsSafari",function(){return it}),n.d(d,"performHttpRequest",function(){return Ut}),n.d(d,"getPlatform",function(){return jn}),n.d(d,"getBrowser",function(){return wn}),n.d(d,"getAppUserAgent",function(){return nt}),n.d(d,"IsTouchDevice",function(){return on}),n.d(d,"getNewGuid",function(){return mt}),n.d(d,"isChromeVersionAtLeast",function(){return _n}),n.d(d,"isSafariVersionAtLeast",function(){return wt}),n.d(d,"isSafariWebKitVersionAtLeast",function(){return Un}),n.d(d,"getHttpNtErrorCode",function(){return Oi}),n.d(d,"CLIENT_IDENTIFICATION",function(){return At}),n.d(d,"CLIENT_VERSION",function(){return Hn}),n.d(d,"DEFAULT_PORT",function(){return pi}),n.d(d,"UNDEFINED_SESSION_ID",function(){return Zi}),n.d(d,"DefaultHttpRequestOptions",function(){return Lr}),n.d(d,"CHANGELIST",function(){return Kr});var l={};n.r(l),n.d(l,"shimGetUserMedia",function(){return V}),n.d(l,"shimGetDisplayMedia",function(){return D}),n.d(l,"shimMediaStream",function(){return F}),n.d(l,"shimOnTrack",function(){return I}),n.d(l,"shimGetSendersWithDtmf",function(){return k}),n.d(l,"shimGetStats",function(){return R}),n.d(l,"shimSenderReceiverGetStats",function(){return G}),n.d(l,"shimAddTrackRemoveTrackWithNative",function(){return Y}),n.d(l,"shimAddTrackRemoveTrack",function(){return K}),n.d(l,"shimPeerConnection",function(){return $}),n.d(l,"fixNegotiationNeeded",function(){return ee});var p={};n.r(p),n.d(p,"shimGetUserMedia",function(){return X}),n.d(p,"shimGetDisplayMedia",function(){return re}),n.d(p,"shimPeerConnection",function(){return ge}),n.d(p,"shimReplaceTrack",function(){return oe});var m={};n.r(m),n.d(m,"shimGetUserMedia",function(){return xe}),n.d(m,"shimGetDisplayMedia",function(){return ue}),n.d(m,"shimOnTrack",function(){return N}),n.d(m,"shimPeerConnection",function(){return se}),n.d(m,"shimSenderGetStats",function(){return ce}),n.d(m,"shimReceiverGetStats",function(){return Z}),n.d(m,"shimRemoveStream",function(){return de}),n.d(m,"shimRTCDataChannel",function(){return ae}),n.d(m,"shimAddTransceiver",function(){return pe}),n.d(m,"shimGetParameters",function(){return _e}),n.d(m,"shimCreateOffer",function(){return ke}),n.d(m,"shimCreateAnswer",function(){return De});var _={};n.r(_),n.d(_,"shimLocalStreamsAPI",function(){return Me}),n.d(_,"shimRemoteStreamsAPI",function(){return je}),n.d(_,"shimCallbacksAPI",function(){return $e}),n.d(_,"shimGetUserMedia",function(){return Oe}),n.d(_,"shimConstraints",function(){return gt}),n.d(_,"shimRTCIceServerUrls",function(){return qt}),n.d(_,"shimTrackEventTransceiver",function(){return ye}),n.d(_,"shimCreateOfferLegacy",function(){return Re}),n.d(_,"shimAudioContext",function(){return Ze});var P={};n.r(P),n.d(P,"shimRTCIceCandidate",function(){return un}),n.d(P,"shimMaxMessageSize",function(){return ct}),n.d(P,"shimSendThrowTypeError",function(){return Gt}),n.d(P,"shimConnectionState",function(){return pn}),n.d(P,"removeAllowExtmapMixed",function(){return st});let v=!0,O=!0;function S(Qt,di,ji){const vi=Qt.match(di);return vi&&vi.length>=ji&&parseInt(vi[ji],10)}function y(Qt,di,ji){if(!Qt.RTCPeerConnection)return;const vi=Qt.RTCPeerConnection.prototype,Zt=vi.addEventListener;vi.addEventListener=function(Dn,zn){if(Dn!==di)return Zt.apply(this,arguments);const Ti=Xt=>{const xn=ji(Xt);xn&&(zn.handleEvent?zn.handleEvent(xn):zn(xn))};return this._eventMap=this._eventMap||{},this._eventMap[di]||(this._eventMap[di]=new Map),this._eventMap[di].set(zn,Ti),Zt.apply(this,[Dn,Ti])};const Zn=vi.removeEventListener;vi.removeEventListener=function(Dn,zn){if(Dn!==di||!this._eventMap||!this._eventMap[di])return Zn.apply(this,arguments);if(!this._eventMap[di].has(zn))return Zn.apply(this,arguments);const Ti=this._eventMap[di].get(zn);return this._eventMap[di].delete(zn),0===this._eventMap[di].size&&delete this._eventMap[di],0===Object.keys(this._eventMap).length&&delete this._eventMap,Zn.apply(this,[Dn,Ti])},Object.defineProperty(vi,"on"+di,{get(){return this["_on"+di]},set(Dn){this["_on"+di]&&(this.removeEventListener(di,this["_on"+di]),delete this["_on"+di]),Dn&&this.addEventListener(di,this["_on"+di]=Dn)},enumerable:!0,configurable:!0})}function r(Qt){return"boolean"!=typeof Qt?new Error("Argument type: "+typeof Qt+". Please use a boolean."):(v=Qt,Qt?"adapter.js logging disabled":"adapter.js logging enabled")}function i(Qt){return"boolean"!=typeof Qt?new Error("Argument type: "+typeof Qt+". Please use a boolean."):(O=!Qt,"adapter.js deprecation warnings "+(Qt?"disabled":"enabled"))}function a(){if("object"==typeof window){if(v)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function h(Qt,di){O&&console.warn(Qt+" is deprecated, please use "+di+" instead.")}function g(Qt){const{navigator:di}=Qt,ji={browser:null,version:null};if(typeof Qt>"u"||!Qt.navigator)return ji.browser="Not a browser.",ji;if(di.mozGetUserMedia)ji.browser="firefox",ji.version=S(di.userAgent,/Firefox\/(\d+)\./,1);else if(di.webkitGetUserMedia||!1===Qt.isSecureContext&&Qt.webkitRTCPeerConnection&&!Qt.RTCIceGatherer)ji.browser="chrome",ji.version=S(di.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(di.mediaDevices&&di.userAgent.match(/Edge\/(\d+).(\d+)$/))ji.browser="edge",ji.version=S(di.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!Qt.RTCPeerConnection||!di.userAgent.match(/AppleWebKit\/(\d+)\./))return ji.browser="Not a supported browser.",ji;ji.browser="safari",ji.version=S(di.userAgent,/AppleWebKit\/(\d+)\./,1),ji.supportsUnifiedPlan=Qt.RTCRtpTransceiver&&"currentDirection"in Qt.RTCRtpTransceiver.prototype}return ji}function c(Qt){return"[object Object]"===Object.prototype.toString.call(Qt)}function T(Qt){return c(Qt)?Object.keys(Qt).reduce(function(di,ji){const vi=c(Qt[ji]),Zt=vi?T(Qt[ji]):Qt[ji],Zn=vi&&!Object.keys(Zt).length;return void 0===Zt||Zn?di:Object.assign(di,{[ji]:Zt})},{}):Qt}function A(Qt,di,ji){!di||ji.has(di.id)||(ji.set(di.id,di),Object.keys(di).forEach(vi=>{vi.endsWith("Id")?A(Qt,Qt.get(di[vi]),ji):vi.endsWith("Ids")&&di[vi].forEach(Zt=>{A(Qt,Qt.get(Zt),ji)})}))}function L(Qt,di,ji){const vi=ji?"outbound-rtp":"inbound-rtp",Zt=new Map;if(null===di)return Zt;const Zn=[];return Qt.forEach(Dn=>{"track"===Dn.type&&Dn.trackIdentifier===di.id&&Zn.push(Dn)}),Zn.forEach(Dn=>{Qt.forEach(zn=>{zn.type===vi&&zn.trackId===Dn.id&&A(Qt,zn,Zt)})}),Zt}const x=a;function V(Qt){const di=Qt&&Qt.navigator;if(!di.mediaDevices)return;const ji=g(Qt),vi=function(zn){if("object"!=typeof zn||zn.mandatory||zn.optional)return zn;const Ti={};return Object.keys(zn).forEach(Xt=>{if("require"===Xt||"advanced"===Xt||"mediaSource"===Xt)return;const xn="object"==typeof zn[Xt]?zn[Xt]:{ideal:zn[Xt]};void 0!==xn.exact&&"number"==typeof xn.exact&&(xn.min=xn.max=xn.exact);const mi=function($n,Pt){return $n?$n+Pt.charAt(0).toUpperCase()+Pt.slice(1):"deviceId"===Pt?"sourceId":Pt};if(void 0!==xn.ideal){Ti.optional=Ti.optional||[];let $n={};"number"==typeof xn.ideal?($n[mi("min",Xt)]=xn.ideal,Ti.optional.push($n),$n={},$n[mi("max",Xt)]=xn.ideal,Ti.optional.push($n)):($n[mi("",Xt)]=xn.ideal,Ti.optional.push($n))}void 0!==xn.exact&&"number"!=typeof xn.exact?(Ti.mandatory=Ti.mandatory||{},Ti.mandatory[mi("",Xt)]=xn.exact):["min","max"].forEach($n=>{void 0!==xn[$n]&&(Ti.mandatory=Ti.mandatory||{},Ti.mandatory[mi($n,Xt)]=xn[$n])})}),zn.advanced&&(Ti.optional=(Ti.optional||[]).concat(zn.advanced)),Ti},Zt=function(zn,Ti){if(ji.version>=61)return Ti(zn);if((zn=JSON.parse(JSON.stringify(zn)))&&"object"==typeof zn.audio){const Xt=function(xn,mi,$n){mi in xn&&!($n in xn)&&(xn[$n]=xn[mi],delete xn[mi])};Xt((zn=JSON.parse(JSON.stringify(zn))).audio,"autoGainControl","googAutoGainControl"),Xt(zn.audio,"noiseSuppression","googNoiseSuppression"),zn.audio=vi(zn.audio)}if(zn&&"object"==typeof zn.video){let Xt=zn.video.facingMode;Xt=Xt&&("object"==typeof Xt?Xt:{ideal:Xt});const xn=ji.version<66;if(Xt&&("user"===Xt.exact||"environment"===Xt.exact||"user"===Xt.ideal||"environment"===Xt.ideal)&&(!di.mediaDevices.getSupportedConstraints||!di.mediaDevices.getSupportedConstraints().facingMode||xn)){let mi;if(delete zn.video.facingMode,"environment"===Xt.exact||"environment"===Xt.ideal?mi=["back","rear"]:("user"===Xt.exact||"user"===Xt.ideal)&&(mi=["front"]),mi)return di.mediaDevices.enumerateDevices().then($n=>{let Pt=($n=$n.filter(Ii=>"videoinput"===Ii.kind)).find(Ii=>mi.some(ar=>Ii.label.toLowerCase().includes(ar)));return!Pt&&$n.length&&mi.includes("back")&&(Pt=$n[$n.length-1]),Pt&&(zn.video.deviceId=Xt.exact?{exact:Pt.deviceId}:{ideal:Pt.deviceId}),zn.video=vi(zn.video),x("chrome: "+JSON.stringify(zn)),Ti(zn)})}zn.video=vi(zn.video)}return x("chrome: "+JSON.stringify(zn)),Ti(zn)},Zn=function(zn){return ji.version>=64?zn:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[zn.name]||zn.name,message:zn.message,constraint:zn.constraint||zn.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(di.getUserMedia=function(zn,Ti,Xt){Zt(zn,xn=>{di.webkitGetUserMedia(xn,Ti,mi=>{Xt&&Xt(Zn(mi))})})}.bind(di),di.mediaDevices.getUserMedia){const zn=di.mediaDevices.getUserMedia.bind(di.mediaDevices);di.mediaDevices.getUserMedia=function(Ti){return Zt(Ti,Xt=>zn(Xt).then(xn=>{if(Xt.audio&&!xn.getAudioTracks().length||Xt.video&&!xn.getVideoTracks().length)throw xn.getTracks().forEach(mi=>{mi.stop()}),new DOMException("","NotFoundError");return xn},xn=>Promise.reject(Zn(xn))))}}}function D(Qt,di){if((!Qt.navigator.mediaDevices||!("getDisplayMedia"in Qt.navigator.mediaDevices))&&Qt.navigator.mediaDevices){if("function"!=typeof di)return void console.error("shimGetDisplayMedia: getSourceId argument is not a function");Qt.navigator.mediaDevices.getDisplayMedia=function(vi){return di(vi).then(Zt=>{const Zn=vi.video&&vi.video.width,Dn=vi.video&&vi.video.height;return vi.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:Zt,maxFrameRate:vi.video&&vi.video.frameRate||3}},Zn&&(vi.video.mandatory.maxWidth=Zn),Dn&&(vi.video.mandatory.maxHeight=Dn),Qt.navigator.mediaDevices.getUserMedia(vi)})}}}function F(Qt){Qt.MediaStream=Qt.MediaStream||Qt.webkitMediaStream}function I(Qt){if("object"==typeof Qt&&Qt.RTCPeerConnection&&!("ontrack"in Qt.RTCPeerConnection.prototype)){Object.defineProperty(Qt.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(ji){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=ji)},enumerable:!0,configurable:!0});const di=Qt.RTCPeerConnection.prototype.setRemoteDescription;Qt.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=vi=>{vi.stream.addEventListener("addtrack",Zt=>{let Zn;Zn=Qt.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(zn=>zn.track&&zn.track.id===Zt.track.id):{track:Zt.track};const Dn=new Event("track");Dn.track=Zt.track,Dn.receiver=Zn,Dn.transceiver={receiver:Zn},Dn.streams=[vi.stream],this.dispatchEvent(Dn)}),vi.stream.getTracks().forEach(Zt=>{let Zn;Zn=Qt.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(zn=>zn.track&&zn.track.id===Zt.id):{track:Zt};const Dn=new Event("track");Dn.track=Zt,Dn.receiver=Zn,Dn.transceiver={receiver:Zn},Dn.streams=[vi.stream],this.dispatchEvent(Dn)})},this.addEventListener("addstream",this._ontrackpoly)),di.apply(this,arguments)}}else y(Qt,"track",di=>(di.transceiver||Object.defineProperty(di,"transceiver",{value:{receiver:di.receiver}}),di))}function k(Qt){if("object"==typeof Qt&&Qt.RTCPeerConnection&&!("getSenders"in Qt.RTCPeerConnection.prototype)&&"createDTMFSender"in Qt.RTCPeerConnection.prototype){const di=function(Zt,Zn){return{track:Zn,get dtmf(){return void 0===this._dtmf&&(this._dtmf="audio"===Zn.kind?Zt.createDTMFSender(Zn):null),this._dtmf},_pc:Zt}};if(!Qt.RTCPeerConnection.prototype.getSenders){Qt.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const Zt=Qt.RTCPeerConnection.prototype.addTrack;Qt.RTCPeerConnection.prototype.addTrack=function(zn,Ti){let Xt=Zt.apply(this,arguments);return Xt||(Xt=di(this,zn),this._senders.push(Xt)),Xt};const Zn=Qt.RTCPeerConnection.prototype.removeTrack;Qt.RTCPeerConnection.prototype.removeTrack=function(zn){Zn.apply(this,arguments);const Ti=this._senders.indexOf(zn);-1!==Ti&&this._senders.splice(Ti,1)}}const ji=Qt.RTCPeerConnection.prototype.addStream;Qt.RTCPeerConnection.prototype.addStream=function(Zn){this._senders=this._senders||[],ji.apply(this,[Zn]),Zn.getTracks().forEach(Dn=>{this._senders.push(di(this,Dn))})};const vi=Qt.RTCPeerConnection.prototype.removeStream;Qt.RTCPeerConnection.prototype.removeStream=function(Zn){this._senders=this._senders||[],vi.apply(this,[Zn]),Zn.getTracks().forEach(Dn=>{const zn=this._senders.find(Ti=>Ti.track===Dn);zn&&this._senders.splice(this._senders.indexOf(zn),1)})}}else if("object"==typeof Qt&&Qt.RTCPeerConnection&&"getSenders"in Qt.RTCPeerConnection.prototype&&"createDTMFSender"in Qt.RTCPeerConnection.prototype&&Qt.RTCRtpSender&&!("dtmf"in Qt.RTCRtpSender.prototype)){const di=Qt.RTCPeerConnection.prototype.getSenders;Qt.RTCPeerConnection.prototype.getSenders=function(){const vi=di.apply(this,[]);return vi.forEach(Zt=>Zt._pc=this),vi},Object.defineProperty(Qt.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&(this._dtmf="audio"===this.track.kind?this._pc.createDTMFSender(this.track):null),this._dtmf}})}}function R(Qt){if(!Qt.RTCPeerConnection)return;const di=Qt.RTCPeerConnection.prototype.getStats;Qt.RTCPeerConnection.prototype.getStats=function(){const[vi,Zt,Zn]=arguments;if(arguments.length>0&&"function"==typeof vi)return di.apply(this,arguments);if(0===di.length&&(0===arguments.length||"function"!=typeof vi))return di.apply(this,[]);const Dn=function(Ti){const Xt={};return Ti.result().forEach(mi=>{const $n={id:mi.id,timestamp:mi.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[mi.type]||mi.type};mi.names().forEach(Pt=>{$n[Pt]=mi.stat(Pt)}),Xt[$n.id]=$n}),Xt},zn=function(Ti){return new Map(Object.keys(Ti).map(Xt=>[Xt,Ti[Xt]]))};return arguments.length>=2?di.apply(this,[function(Xt){Zt(zn(Dn(Xt)))},vi]):new Promise((Ti,Xt)=>{di.apply(this,[function(xn){Ti(zn(Dn(xn)))},Xt])}).then(Zt,Zn)}}function G(Qt){if(!("object"==typeof Qt&&Qt.RTCPeerConnection&&Qt.RTCRtpSender&&Qt.RTCRtpReceiver))return;if(!("getStats"in Qt.RTCRtpSender.prototype)){const ji=Qt.RTCPeerConnection.prototype.getSenders;ji&&(Qt.RTCPeerConnection.prototype.getSenders=function(){const Zn=ji.apply(this,[]);return Zn.forEach(Dn=>Dn._pc=this),Zn});const vi=Qt.RTCPeerConnection.prototype.addTrack;vi&&(Qt.RTCPeerConnection.prototype.addTrack=function(){const Zn=vi.apply(this,arguments);return Zn._pc=this,Zn}),Qt.RTCRtpSender.prototype.getStats=function(){const Zn=this;return this._pc.getStats().then(Dn=>L(Dn,Zn.track,!0))}}if(!("getStats"in Qt.RTCRtpReceiver.prototype)){const ji=Qt.RTCPeerConnection.prototype.getReceivers;ji&&(Qt.RTCPeerConnection.prototype.getReceivers=function(){const Zt=ji.apply(this,[]);return Zt.forEach(Zn=>Zn._pc=this),Zt}),y(Qt,"track",vi=>(vi.receiver._pc=vi.srcElement,vi)),Qt.RTCRtpReceiver.prototype.getStats=function(){const Zt=this;return this._pc.getStats().then(Zn=>L(Zn,Zt.track,!1))}}if(!("getStats"in Qt.RTCRtpSender.prototype)||!("getStats"in Qt.RTCRtpReceiver.prototype))return;const di=Qt.RTCPeerConnection.prototype.getStats;Qt.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof Qt.MediaStreamTrack){const vi=arguments[0];let Zt,Zn,Dn;return this.getSenders().forEach(zn=>{zn.track===vi&&(Zt?Dn=!0:Zt=zn)}),this.getReceivers().forEach(zn=>(zn.track===vi&&(Zn?Dn=!0:Zn=zn),zn.track===vi)),Dn||Zt&&Zn?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):Zt?Zt.getStats():Zn?Zn.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return di.apply(this,arguments)}}function Y(Qt){Qt.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(Dn=>this._shimmedLocalStreams[Dn][0])};const di=Qt.RTCPeerConnection.prototype.addTrack;Qt.RTCPeerConnection.prototype.addTrack=function(Dn,zn){if(!zn)return di.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const Ti=di.apply(this,arguments);return this._shimmedLocalStreams[zn.id]?-1===this._shimmedLocalStreams[zn.id].indexOf(Ti)&&this._shimmedLocalStreams[zn.id].push(Ti):this._shimmedLocalStreams[zn.id]=[zn,Ti],Ti};const ji=Qt.RTCPeerConnection.prototype.addStream;Qt.RTCPeerConnection.prototype.addStream=function(Dn){this._shimmedLocalStreams=this._shimmedLocalStreams||{},Dn.getTracks().forEach(Xt=>{if(this.getSenders().find(mi=>mi.track===Xt))throw new DOMException("Track already exists.","InvalidAccessError")});const zn=this.getSenders();ji.apply(this,arguments);const Ti=this.getSenders().filter(Xt=>-1===zn.indexOf(Xt));this._shimmedLocalStreams[Dn.id]=[Dn].concat(Ti)};const vi=Qt.RTCPeerConnection.prototype.removeStream;Qt.RTCPeerConnection.prototype.removeStream=function(Dn){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[Dn.id],vi.apply(this,arguments)};const Zt=Qt.RTCPeerConnection.prototype.removeTrack;Qt.RTCPeerConnection.prototype.removeTrack=function(Dn){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Dn&&Object.keys(this._shimmedLocalStreams).forEach(zn=>{const Ti=this._shimmedLocalStreams[zn].indexOf(Dn);-1!==Ti&&this._shimmedLocalStreams[zn].splice(Ti,1),1===this._shimmedLocalStreams[zn].length&&delete this._shimmedLocalStreams[zn]}),Zt.apply(this,arguments)}}function K(Qt){if(!Qt.RTCPeerConnection)return;const di=g(Qt);if(Qt.RTCPeerConnection.prototype.addTrack&&di.version>=65)return Y(Qt);const ji=Qt.RTCPeerConnection.prototype.getLocalStreams;Qt.RTCPeerConnection.prototype.getLocalStreams=function(){const xn=ji.apply(this);return this._reverseStreams=this._reverseStreams||{},xn.map(mi=>this._reverseStreams[mi.id])};const vi=Qt.RTCPeerConnection.prototype.addStream;Qt.RTCPeerConnection.prototype.addStream=function(xn){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},xn.getTracks().forEach(mi=>{if(this.getSenders().find(Pt=>Pt.track===mi))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[xn.id]){const mi=new Qt.MediaStream(xn.getTracks());this._streams[xn.id]=mi,this._reverseStreams[mi.id]=xn,xn=mi}vi.apply(this,[xn])};const Zt=Qt.RTCPeerConnection.prototype.removeStream;function Zn(Xt,xn){let mi=xn.sdp;return Object.keys(Xt._reverseStreams||[]).forEach($n=>{const Pt=Xt._reverseStreams[$n];mi=mi.replace(new RegExp(Xt._streams[Pt.id].id,"g"),Pt.id)}),new RTCSessionDescription({type:xn.type,sdp:mi})}Qt.RTCPeerConnection.prototype.removeStream=function(xn){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},Zt.apply(this,[this._streams[xn.id]||xn]),delete this._reverseStreams[this._streams[xn.id]?this._streams[xn.id].id:xn.id],delete this._streams[xn.id]},Qt.RTCPeerConnection.prototype.addTrack=function(xn,mi){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const $n=[].slice.call(arguments,1);if(1!==$n.length||!$n[0].getTracks().find(ar=>ar===xn))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(ar=>ar.track===xn))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const Ii=this._streams[mi.id];if(Ii)Ii.addTrack(xn),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const ar=new Qt.MediaStream([xn]);this._streams[mi.id]=ar,this._reverseStreams[ar.id]=mi,this.addStream(ar)}return this.getSenders().find(ar=>ar.track===xn)},["createOffer","createAnswer"].forEach(function(Xt){const xn=Qt.RTCPeerConnection.prototype[Xt],mi={[Xt](){const $n=arguments;return arguments.length&&"function"==typeof arguments[0]?xn.apply(this,[Ii=>{const ar=Zn(this,Ii);$n[0].apply(null,[ar])},Ii=>{$n[1]&&$n[1].apply(null,Ii)},arguments[2]]):xn.apply(this,arguments).then(Ii=>Zn(this,Ii))}};Qt.RTCPeerConnection.prototype[Xt]=mi[Xt]});const zn=Qt.RTCPeerConnection.prototype.setLocalDescription;Qt.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function Dn(Xt,xn){let mi=xn.sdp;return Object.keys(Xt._reverseStreams||[]).forEach($n=>{const Pt=Xt._reverseStreams[$n],Ii=Xt._streams[Pt.id];mi=mi.replace(new RegExp(Pt.id,"g"),Ii.id)}),new RTCSessionDescription({type:xn.type,sdp:mi})}(this,arguments[0]),zn.apply(this,arguments)):zn.apply(this,arguments)};const Ti=Object.getOwnPropertyDescriptor(Qt.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(Qt.RTCPeerConnection.prototype,"localDescription",{get(){const Xt=Ti.get.apply(this);return""===Xt.type?Xt:Zn(this,Xt)}}),Qt.RTCPeerConnection.prototype.removeTrack=function(xn){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!xn._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(xn._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let $n;this._streams=this._streams||{},Object.keys(this._streams).forEach(Pt=>{this._streams[Pt].getTracks().find(ar=>xn.track===ar)&&($n=this._streams[Pt])}),$n&&(1===$n.getTracks().length?this.removeStream(this._reverseStreams[$n.id]):$n.removeTrack(xn.track),this.dispatchEvent(new Event("negotiationneeded")))}}function $(Qt){const di=g(Qt);if(!Qt.RTCPeerConnection&&Qt.webkitRTCPeerConnection&&(Qt.RTCPeerConnection=Qt.webkitRTCPeerConnection),!Qt.RTCPeerConnection)return;const ji=0===Qt.RTCPeerConnection.prototype.addIceCandidate.length;di.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(Zt){const Zn=Qt.RTCPeerConnection.prototype[Zt],Dn={[Zt](){return arguments[0]=new("addIceCandidate"===Zt?Qt.RTCIceCandidate:Qt.RTCSessionDescription)(arguments[0]),Zn.apply(this,arguments)}};Qt.RTCPeerConnection.prototype[Zt]=Dn[Zt]});const vi=Qt.RTCPeerConnection.prototype.addIceCandidate;Qt.RTCPeerConnection.prototype.addIceCandidate=function(){return ji||arguments[0]?di.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():vi.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function ee(Qt){const di=g(Qt);y(Qt,"negotiationneeded",ji=>{const vi=ji.target;if(!(di.version<72||vi.getConfiguration&&"plan-b"===vi.getConfiguration().sdpSemantics)||"stable"===vi.signalingState)return ji})}var z=n(1),te=n.n(z);function X(Qt){const di=Qt&&Qt.navigator,vi=di.mediaDevices.getUserMedia.bind(di.mediaDevices);di.mediaDevices.getUserMedia=function(Zt){return vi(Zt).catch(Zn=>Promise.reject(function(Zt){return{name:{PermissionDeniedError:"NotAllowedError"}[Zt.name]||Zt.name,message:Zt.message,constraint:Zt.constraint,toString(){return this.name}}}(Zn)))}}function re(Qt){"getDisplayMedia"in Qt.navigator&&Qt.navigator.mediaDevices&&(Qt.navigator.mediaDevices&&"getDisplayMedia"in Qt.navigator.mediaDevices||(Qt.navigator.mediaDevices.getDisplayMedia=Qt.navigator.getDisplayMedia.bind(Qt.navigator)))}function ge(Qt){const di=g(Qt);if(Qt.RTCIceGatherer&&(Qt.RTCIceCandidate||(Qt.RTCIceCandidate=function(Zt){return Zt}),Qt.RTCSessionDescription||(Qt.RTCSessionDescription=function(Zt){return Zt}),di.version<15025)){const vi=Object.getOwnPropertyDescriptor(Qt.MediaStreamTrack.prototype,"enabled");Object.defineProperty(Qt.MediaStreamTrack.prototype,"enabled",{set(Zt){vi.set.call(this,Zt);const Zn=new Event("enabled");Zn.enabled=Zt,this.dispatchEvent(Zn)}})}Qt.RTCRtpSender&&!("dtmf"in Qt.RTCRtpSender.prototype)&&Object.defineProperty(Qt.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new Qt.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),Qt.RTCDtmfSender&&!Qt.RTCDTMFSender&&(Qt.RTCDTMFSender=Qt.RTCDtmfSender);const ji=te()(Qt,di.version);Qt.RTCPeerConnection=function(Zt){return Zt&&Zt.iceServers&&(Zt.iceServers=function J(Qt,di){let ji=!1;return(Qt=JSON.parse(JSON.stringify(Qt))).filter(vi=>{if(vi&&(vi.urls||vi.url)){var Zt=vi.urls||vi.url;vi.url&&!vi.urls&&h("RTCIceServer.url","RTCIceServer.urls");const Zn="string"==typeof Zt;return Zn&&(Zt=[Zt]),Zt=Zt.filter(Dn=>{if(0===Dn.indexOf("stun:"))return!1;const zn=Dn.startsWith("turn")&&!Dn.startsWith("turn:[")&&Dn.includes("transport=udp");return zn&&!ji?(ji=!0,!0):zn&&!ji}),delete vi.url,vi.urls=Zn?Zt[0]:Zt,!!Zt.length}})}(Zt.iceServers),a("ICE servers after filtering:",Zt.iceServers)),new ji(Zt)},Qt.RTCPeerConnection.prototype=ji.prototype}function oe(Qt){Qt.RTCRtpSender&&!("replaceTrack"in Qt.RTCRtpSender.prototype)&&(Qt.RTCRtpSender.prototype.replaceTrack=Qt.RTCRtpSender.prototype.setTrack)}function xe(Qt){const di=g(Qt),ji=Qt&&Qt.navigator,vi=Qt&&Qt.MediaStreamTrack;if(ji.getUserMedia=function(Zt,Zn,Dn){h("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),ji.mediaDevices.getUserMedia(Zt).then(Zn,Dn)},!(di.version>55&&"autoGainControl"in ji.mediaDevices.getSupportedConstraints())){const Zt=function(Dn,zn,Ti){zn in Dn&&!(Ti in Dn)&&(Dn[Ti]=Dn[zn],delete Dn[zn])},Zn=ji.mediaDevices.getUserMedia.bind(ji.mediaDevices);if(ji.mediaDevices.getUserMedia=function(Dn){return"object"==typeof Dn&&"object"==typeof Dn.audio&&(Dn=JSON.parse(JSON.stringify(Dn)),Zt(Dn.audio,"autoGainControl","mozAutoGainControl"),Zt(Dn.audio,"noiseSuppression","mozNoiseSuppression")),Zn(Dn)},vi&&vi.prototype.getSettings){const Dn=vi.prototype.getSettings;vi.prototype.getSettings=function(){const zn=Dn.apply(this,arguments);return Zt(zn,"mozAutoGainControl","autoGainControl"),Zt(zn,"mozNoiseSuppression","noiseSuppression"),zn}}if(vi&&vi.prototype.applyConstraints){const Dn=vi.prototype.applyConstraints;vi.prototype.applyConstraints=function(zn){return"audio"===this.kind&&"object"==typeof zn&&(zn=JSON.parse(JSON.stringify(zn)),Zt(zn,"autoGainControl","mozAutoGainControl"),Zt(zn,"noiseSuppression","mozNoiseSuppression")),Dn.apply(this,[zn])}}}}function ue(Qt,di){Qt.navigator.mediaDevices&&"getDisplayMedia"in Qt.navigator.mediaDevices||Qt.navigator.mediaDevices&&(Qt.navigator.mediaDevices.getDisplayMedia=function(vi){if(!vi||!vi.video){const Zt=new DOMException("getDisplayMedia without video constraints is undefined");return Zt.name="NotFoundError",Zt.code=8,Promise.reject(Zt)}return!0===vi.video?vi.video={mediaSource:di}:vi.video.mediaSource=di,Qt.navigator.mediaDevices.getUserMedia(vi)})}function N(Qt){"object"==typeof Qt&&Qt.RTCTrackEvent&&"receiver"in Qt.RTCTrackEvent.prototype&&!("transceiver"in Qt.RTCTrackEvent.prototype)&&Object.defineProperty(Qt.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function se(Qt){const di=g(Qt);if("object"!=typeof Qt||!Qt.RTCPeerConnection&&!Qt.mozRTCPeerConnection)return;if(!Qt.RTCPeerConnection&&Qt.mozRTCPeerConnection&&(Qt.RTCPeerConnection=Qt.mozRTCPeerConnection),di.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(Zt){const Zn=Qt.RTCPeerConnection.prototype[Zt],Dn={[Zt](){return arguments[0]=new("addIceCandidate"===Zt?Qt.RTCIceCandidate:Qt.RTCSessionDescription)(arguments[0]),Zn.apply(this,arguments)}};Qt.RTCPeerConnection.prototype[Zt]=Dn[Zt]}),di.version<68){const Zt=Qt.RTCPeerConnection.prototype.addIceCandidate;Qt.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():Zt.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const ji={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},vi=Qt.RTCPeerConnection.prototype.getStats;Qt.RTCPeerConnection.prototype.getStats=function(){const[Zn,Dn,zn]=arguments;return vi.apply(this,[Zn||null]).then(Ti=>{if(di.version<53&&!Dn)try{Ti.forEach(Xt=>{Xt.type=ji[Xt.type]||Xt.type})}catch(Xt){if("TypeError"!==Xt.name)throw Xt;Ti.forEach((xn,mi)=>{Ti.set(mi,Object.assign({},xn,{type:ji[xn.type]||xn.type}))})}return Ti}).then(Dn,zn)}}function ce(Qt){if("object"!=typeof Qt||!Qt.RTCPeerConnection||!Qt.RTCRtpSender||Qt.RTCRtpSender&&"getStats"in Qt.RTCRtpSender.prototype)return;const di=Qt.RTCPeerConnection.prototype.getSenders;di&&(Qt.RTCPeerConnection.prototype.getSenders=function(){const Zt=di.apply(this,[]);return Zt.forEach(Zn=>Zn._pc=this),Zt});const ji=Qt.RTCPeerConnection.prototype.addTrack;ji&&(Qt.RTCPeerConnection.prototype.addTrack=function(){const Zt=ji.apply(this,arguments);return Zt._pc=this,Zt}),Qt.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Z(Qt){if("object"!=typeof Qt||!Qt.RTCPeerConnection||!Qt.RTCRtpSender||Qt.RTCRtpSender&&"getStats"in Qt.RTCRtpReceiver.prototype)return;const di=Qt.RTCPeerConnection.prototype.getReceivers;di&&(Qt.RTCPeerConnection.prototype.getReceivers=function(){const vi=di.apply(this,[]);return vi.forEach(Zt=>Zt._pc=this),vi}),y(Qt,"track",ji=>(ji.receiver._pc=ji.srcElement,ji)),Qt.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function de(Qt){!Qt.RTCPeerConnection||"removeStream"in Qt.RTCPeerConnection.prototype||(Qt.RTCPeerConnection.prototype.removeStream=function(ji){h("removeStream","removeTrack"),this.getSenders().forEach(vi=>{vi.track&&ji.getTracks().includes(vi.track)&&this.removeTrack(vi)})})}function ae(Qt){Qt.DataChannel&&!Qt.RTCDataChannel&&(Qt.RTCDataChannel=Qt.DataChannel)}function pe(Qt){if("object"!=typeof Qt||!Qt.RTCPeerConnection)return;const di=Qt.RTCPeerConnection.prototype.addTransceiver;di&&(Qt.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const vi=arguments[1],Zt=vi&&"sendEncodings"in vi;Zt&&vi.sendEncodings.forEach(Dn=>{if("rid"in Dn&&!/^[a-z0-9]{0,16}$/i.test(Dn.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in Dn&&!(parseFloat(Dn.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in Dn&&!(parseFloat(Dn.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const Zn=di.apply(this,arguments);if(Zt){const{sender:Dn}=Zn,zn=Dn.getParameters();"encodings"in zn||(zn.encodings=vi.sendEncodings,Dn.sendEncodings=vi.sendEncodings,this.setParametersPromises.push(Dn.setParameters(zn).then(()=>{delete Dn.sendEncodings}).catch(()=>{delete Dn.sendEncodings})))}return Zn})}function _e(Qt){if("object"!=typeof Qt||!Qt.RTCRtpSender)return;const di=Qt.RTCRtpSender.prototype.getParameters;di&&(Qt.RTCRtpSender.prototype.getParameters=function(){var vi=di.apply(this,arguments);return"sendEncodings"in this?Object.assign({},{encodings:this.sendEncodings},vi):vi})}function ke(Qt){if("object"!=typeof Qt||!Qt.RTCPeerConnection)return;const di=Qt.RTCPeerConnection.prototype.createOffer;Qt.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>di.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):di.apply(this,arguments)}}function De(Qt){if("object"!=typeof Qt||!Qt.RTCPeerConnection)return;const di=Qt.RTCPeerConnection.prototype.createAnswer;Qt.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>di.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):di.apply(this,arguments)}}function Me(Qt){if("object"==typeof Qt&&Qt.RTCPeerConnection){if("getLocalStreams"in Qt.RTCPeerConnection.prototype||(Qt.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in Qt.RTCPeerConnection.prototype)){const di=Qt.RTCPeerConnection.prototype.addTrack;Qt.RTCPeerConnection.prototype.addStream=function(vi){this._localStreams||(this._localStreams=[]),this._localStreams.includes(vi)||this._localStreams.push(vi),vi.getAudioTracks().forEach(Zt=>di.call(this,Zt,vi)),vi.getVideoTracks().forEach(Zt=>di.call(this,Zt,vi))},Qt.RTCPeerConnection.prototype.addTrack=function(vi,...Zt){return Zt&&Zt.forEach(Zn=>{this._localStreams?this._localStreams.includes(Zn)||this._localStreams.push(Zn):this._localStreams=[Zn]}),di.apply(this,arguments)}}"removeStream"in Qt.RTCPeerConnection.prototype||(Qt.RTCPeerConnection.prototype.removeStream=function(ji){this._localStreams||(this._localStreams=[]);const vi=this._localStreams.indexOf(ji);if(-1===vi)return;this._localStreams.splice(vi,1);const Zt=ji.getTracks();this.getSenders().forEach(Zn=>{Zt.includes(Zn.track)&&this.removeTrack(Zn)})})}}function je(Qt){if("object"==typeof Qt&&Qt.RTCPeerConnection&&("getRemoteStreams"in Qt.RTCPeerConnection.prototype||(Qt.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in Qt.RTCPeerConnection.prototype))){Object.defineProperty(Qt.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(ji){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=ji),this.addEventListener("track",this._onaddstreampoly=vi=>{vi.streams.forEach(Zt=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(Zt))return;this._remoteStreams.push(Zt);const Zn=new Event("addstream");Zn.stream=Zt,this.dispatchEvent(Zn)})})}});const di=Qt.RTCPeerConnection.prototype.setRemoteDescription;Qt.RTCPeerConnection.prototype.setRemoteDescription=function(){const vi=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(Zt){Zt.streams.forEach(Zn=>{if(vi._remoteStreams||(vi._remoteStreams=[]),vi._remoteStreams.indexOf(Zn)>=0)return;vi._remoteStreams.push(Zn);const Dn=new Event("addstream");Dn.stream=Zn,vi.dispatchEvent(Dn)})}),di.apply(vi,arguments)}}}function $e(Qt){if("object"!=typeof Qt||!Qt.RTCPeerConnection)return;const di=Qt.RTCPeerConnection.prototype,ji=di.createOffer,vi=di.createAnswer,Zt=di.setLocalDescription,Zn=di.setRemoteDescription,Dn=di.addIceCandidate;di.createOffer=function(Xt,xn){const $n=ji.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return xn?($n.then(Xt,xn),Promise.resolve()):$n},di.createAnswer=function(Xt,xn){const $n=vi.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return xn?($n.then(Xt,xn),Promise.resolve()):$n};let zn=function(Ti,Xt,xn){const mi=Zt.apply(this,[Ti]);return xn?(mi.then(Xt,xn),Promise.resolve()):mi};di.setLocalDescription=zn,zn=function(Ti,Xt,xn){const mi=Zn.apply(this,[Ti]);return xn?(mi.then(Xt,xn),Promise.resolve()):mi},di.setRemoteDescription=zn,zn=function(Ti,Xt,xn){const mi=Dn.apply(this,[Ti]);return xn?(mi.then(Xt,xn),Promise.resolve()):mi},di.addIceCandidate=zn}function Oe(Qt){const di=Qt&&Qt.navigator;if(di.mediaDevices&&di.mediaDevices.getUserMedia){const ji=di.mediaDevices,vi=ji.getUserMedia.bind(ji);di.mediaDevices.getUserMedia=Zt=>vi(gt(Zt))}!di.getUserMedia&&di.mediaDevices&&di.mediaDevices.getUserMedia&&(di.getUserMedia=function(vi,Zt,Zn){di.mediaDevices.getUserMedia(vi).then(Zt,Zn)}.bind(di))}function gt(Qt){return Qt&&void 0!==Qt.video?Object.assign({},Qt,{video:T(Qt.video)}):Qt}function qt(Qt){if(!Qt.RTCPeerConnection)return;const di=Qt.RTCPeerConnection;Qt.RTCPeerConnection=function(vi,Zt){if(vi&&vi.iceServers){const Zn=[];for(let Dn=0;Dn<vi.iceServers.length;Dn++){let zn=vi.iceServers[Dn];!zn.hasOwnProperty("urls")&&zn.hasOwnProperty("url")?(h("RTCIceServer.url","RTCIceServer.urls"),zn=JSON.parse(JSON.stringify(zn)),zn.urls=zn.url,delete zn.url,Zn.push(zn)):Zn.push(vi.iceServers[Dn])}vi.iceServers=Zn}return new di(vi,Zt)},Qt.RTCPeerConnection.prototype=di.prototype,"generateCertificate"in di&&Object.defineProperty(Qt.RTCPeerConnection,"generateCertificate",{get:()=>di.generateCertificate})}function ye(Qt){"object"==typeof Qt&&Qt.RTCTrackEvent&&"receiver"in Qt.RTCTrackEvent.prototype&&!("transceiver"in Qt.RTCTrackEvent.prototype)&&Object.defineProperty(Qt.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Re(Qt){const di=Qt.RTCPeerConnection.prototype.createOffer;Qt.RTCPeerConnection.prototype.createOffer=function(vi){if(vi){typeof vi.offerToReceiveAudio<"u"&&(vi.offerToReceiveAudio=!!vi.offerToReceiveAudio);const Zt=this.getTransceivers().find(Dn=>"audio"===Dn.receiver.track.kind);!1===vi.offerToReceiveAudio&&Zt?"sendrecv"===Zt.direction?Zt.setDirection?Zt.setDirection("sendonly"):Zt.direction="sendonly":"recvonly"===Zt.direction&&(Zt.setDirection?Zt.setDirection("inactive"):Zt.direction="inactive"):!0===vi.offerToReceiveAudio&&!Zt&&this.addTransceiver("audio"),typeof vi.offerToReceiveVideo<"u"&&(vi.offerToReceiveVideo=!!vi.offerToReceiveVideo);const Zn=this.getTransceivers().find(Dn=>"video"===Dn.receiver.track.kind);!1===vi.offerToReceiveVideo&&Zn?"sendrecv"===Zn.direction?Zn.setDirection?Zn.setDirection("sendonly"):Zn.direction="sendonly":"recvonly"===Zn.direction&&(Zn.setDirection?Zn.setDirection("inactive"):Zn.direction="inactive"):!0===vi.offerToReceiveVideo&&!Zn&&this.addTransceiver("video")}return di.apply(this,arguments)}}function Ze(Qt){"object"!=typeof Qt||Qt.AudioContext||(Qt.AudioContext=Qt.webkitAudioContext)}var et=n(0),xt=n.n(et);function un(Qt){if(!Qt.RTCIceCandidate||Qt.RTCIceCandidate&&"foundation"in Qt.RTCIceCandidate.prototype)return;const di=Qt.RTCIceCandidate;Qt.RTCIceCandidate=function(vi){if("object"==typeof vi&&vi.candidate&&0===vi.candidate.indexOf("a=")&&((vi=JSON.parse(JSON.stringify(vi))).candidate=vi.candidate.substr(2)),vi.candidate&&vi.candidate.length){const Zt=new di(vi),Zn=xt.a.parseCandidate(vi.candidate),Dn=Object.assign(Zt,Zn);return Dn.toJSON=function(){return{candidate:Dn.candidate,sdpMid:Dn.sdpMid,sdpMLineIndex:Dn.sdpMLineIndex,usernameFragment:Dn.usernameFragment}},Dn}return new di(vi)},Qt.RTCIceCandidate.prototype=di.prototype,y(Qt,"icecandidate",ji=>(ji.candidate&&Object.defineProperty(ji,"candidate",{value:new Qt.RTCIceCandidate(ji.candidate),writable:"false"}),ji))}function ct(Qt){if(!Qt.RTCPeerConnection)return;const di=g(Qt);"sctp"in Qt.RTCPeerConnection.prototype||Object.defineProperty(Qt.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const Dn=Qt.RTCPeerConnection.prototype.setRemoteDescription;Qt.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===di.browser&&di.version>=76){const{sdpSemantics:Ti}=this.getConfiguration();"plan-b"===Ti&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(function(zn){if(!zn||!zn.sdp)return!1;const Ti=xt.a.splitSections(zn.sdp);return Ti.shift(),Ti.some(Xt=>{const xn=xt.a.parseMLine(Xt);return xn&&"application"===xn.kind&&-1!==xn.protocol.indexOf("SCTP")})}(arguments[0])){const Ti=function(zn){const Ti=zn.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===Ti||Ti.length<2)return-1;const Xt=parseInt(Ti[1],10);return Xt!=Xt?-1:Xt}(arguments[0]),Xt=function(zn){let Ti=65536;return"firefox"===di.browser&&(Ti=di.version<57?-1===zn?16384:2147483637:di.version<60?57===di.version?65535:65536:2147483637),Ti}(Ti),xn=function(zn,Ti){let Xt=65536;"firefox"===di.browser&&57===di.version&&(Xt=65535);const xn=xt.a.matchPrefix(zn.sdp,"a=max-message-size:");return xn.length>0?Xt=parseInt(xn[0].substr(19),10):"firefox"===di.browser&&-1!==Ti&&(Xt=2147483637),Xt}(arguments[0],Ti);let mi;mi=0===Xt&&0===xn?Number.POSITIVE_INFINITY:0===Xt||0===xn?Math.max(Xt,xn):Math.min(Xt,xn);const $n={};Object.defineProperty($n,"maxMessageSize",{get:()=>mi}),this._sctp=$n}return Dn.apply(this,arguments)}}function Gt(Qt){if(!Qt.RTCPeerConnection||!("createDataChannel"in Qt.RTCPeerConnection.prototype))return;function di(vi,Zt){const Zn=vi.send;vi.send=function(){const zn=arguments[0];if("open"===vi.readyState&&Zt.sctp&&(zn.length||zn.size||zn.byteLength)>Zt.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+Zt.sctp.maxMessageSize+" bytes)");return Zn.apply(vi,arguments)}}const ji=Qt.RTCPeerConnection.prototype.createDataChannel;Qt.RTCPeerConnection.prototype.createDataChannel=function(){const Zt=ji.apply(this,arguments);return di(Zt,this),Zt},y(Qt,"datachannel",vi=>(di(vi.channel,vi.target),vi))}function pn(Qt){if(!Qt.RTCPeerConnection||"connectionState"in Qt.RTCPeerConnection.prototype)return;const di=Qt.RTCPeerConnection.prototype;Object.defineProperty(di,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(di,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(ji){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),ji&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=ji)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(ji=>{const vi=di[ji];di[ji]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=Zt=>{const Zn=Zt.target;if(Zn._lastConnectionState!==Zn.connectionState){Zn._lastConnectionState=Zn.connectionState;const Dn=new Event("connectionstatechange",Zt);Zn.dispatchEvent(Dn)}return Zt},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),vi.apply(this,arguments)}})}function st(Qt){if(!Qt.RTCPeerConnection)return;const di=g(Qt);if("chrome"===di.browser&&di.version>=71||"safari"===di.browser&&di.version>=605)return;const ji=Qt.RTCPeerConnection.prototype.setRemoteDescription;Qt.RTCPeerConnection.prototype.setRemoteDescription=function(Zt){return Zt&&Zt.sdp&&-1!==Zt.sdp.indexOf("\na=extmap-allow-mixed")&&(Zt.sdp=Zt.sdp.split("\n").filter(Zn=>"a=extmap-allow-mixed"!==Zn.trim()).join("\n")),ji.apply(this,arguments)}}(function mn({window:Qt}={},di={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const ji=a,vi=g(Qt),Zt={browserDetails:vi,commonShim:P,extractVersion:S,disableLog:r,disableWarnings:i};switch(vi.browser){case"chrome":if(!l||!$||!di.shimChrome)return ji("Chrome shim is not included in this adapter release."),Zt;if(null===vi.version)return ji("Chrome shim can not determine version, not shimming."),Zt;ji("adapter.js shimming chrome."),Zt.browserShim=l,V(Qt),F(Qt),$(Qt),I(Qt),K(Qt),k(Qt),R(Qt),G(Qt),ee(Qt),un(Qt),pn(Qt),ct(Qt),Gt(Qt),st(Qt);break;case"firefox":if(!m||!se||!di.shimFirefox)return ji("Firefox shim is not included in this adapter release."),Zt;ji("adapter.js shimming firefox."),Zt.browserShim=m,xe(Qt),se(Qt),N(Qt),de(Qt),ce(Qt),Z(Qt),ae(Qt),pe(Qt),_e(Qt),ke(Qt),De(Qt),un(Qt),pn(Qt),ct(Qt),Gt(Qt);break;case"edge":if(!p||!ge||!di.shimEdge)return ji("MS edge shim is not included in this adapter release."),Zt;ji("adapter.js shimming edge."),Zt.browserShim=p,X(Qt),re(Qt),ge(Qt),oe(Qt),ct(Qt),Gt(Qt);break;case"safari":if(!_||!di.shimSafari)return ji("Safari shim is not included in this adapter release."),Zt;ji("adapter.js shimming safari."),Zt.browserShim=_,qt(Qt),Re(Qt),$e(Qt),Me(Qt),je(Qt),ye(Qt),Oe(Qt),Ze(Qt),un(Qt),ct(Qt),Gt(Qt),st(Qt);break;default:ji("Unsupported browser!")}})({window}),n(3);var fn=NetworkTest.getNetworkTestExceptionTelemetryEvent,dt=NetworkTest.getNetworkTestHttpTelemetryEvent,nn=NetworkTest.GdprLevel,yn=NetworkTest.BooleanType,Xn=NetworkTest.EventName,rn=NetworkTest.NetworkTestApp,ai=NetworkTest.ConfigureNetworkTestSettings,ri=NetworkTest.NetworkTestSettings,Ne=NetworkTest.IsValidIPv4,zt=NetworkTest.GetRandNumericString,vt=NetworkTest.IsChromium,Ct=NetworkTest.IsChrome,it=NetworkTest.IsSafari,Ut=NetworkTest.performHttpRequest,jn=NetworkTest.getPlatform,wn=NetworkTest.getBrowser,nt=NetworkTest.getAppUserAgent,on=NetworkTest.IsTouchDevice,mt=NetworkTest.getNewGuid,_n=NetworkTest.isChromeVersionAtLeast,wt=NetworkTest.isSafariVersionAtLeast,Un=NetworkTest.isSafariWebKitVersionAtLeast,Oi=NetworkTest.getHttpNtErrorCode,At=NetworkTest.CLIENT_IDENTIFICATION,Hn=NetworkTest.CLIENT_VERSION,pi=NetworkTest.DEFAULT_PORT,Zi=NetworkTest.UNDEFINED_SESSION_ID,Lr=NetworkTest.DefaultHttpRequestOptions,Kr=NetworkTest.CHANGELIST}])},29184:(Ue,W,d)=>{"use strict";d.r(W),d.d(W,{DiagConsoleLogger:()=>z,DiagLogLevel:()=>c,INVALID_SPANID:()=>Gt,INVALID_SPAN_CONTEXT:()=>st,INVALID_TRACEID:()=>pn,ProxyTracer:()=>jn,ProxyTracerProvider:()=>on,ROOT_CONTEXT:()=>ee,SamplingDecision:()=>mt,SpanKind:()=>_n,SpanStatusCode:()=>wt,TraceFlags:()=>ct,ValueType:()=>je,baggageEntryMetadataFromString:()=>Y,context:()=>Dn,createContextKey:()=>K,createNoopMeter:()=>Me,createTraceState:()=>Zn,default:()=>Qe,defaultTextMapGetter:()=>$e,defaultTextMapSetter:()=>Oe,diag:()=>zn,isSpanContextValid:()=>Ne,isValidSpanId:()=>ri,isValidTraceId:()=>ai,metrics:()=>$n,propagation:()=>ni,trace:()=>Pe});var n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},l="1.4.1",p=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,_=function m(Be){var Mt=new Set([Be]),Vt=new Set,Vn=Be.match(p);if(!Vn)return function(){return!1};var si_major=+Vn[1],si_minor=+Vn[2],si_patch=+Vn[3];if(null!=Vn[4])return function(hr){return hr===Be};function Rn(wr){return Vt.add(wr),!1}function _i(wr){return Mt.add(wr),!0}return function(hr){if(Mt.has(hr))return!0;if(Vt.has(hr))return!1;var Qr=hr.match(p);if(!Qr)return Rn(hr);var Yr_minor=+Qr[2],Yr_patch=+Qr[3];return null!=Qr[4]||si_major!==+Qr[1]?Rn(hr):0===si_major?si_minor===Yr_minor&&si_patch<=Yr_patch?_i(hr):Rn(hr):si_minor<=Yr_minor?_i(hr):Rn(hr)}}(l),P=l.split(".")[0],v=Symbol.for("opentelemetry.js.api."+P),O=n;function S(Be,Mt,Vt,Vn){var si;void 0===Vn&&(Vn=!1);var Rn=O[v]=null!==(si=O[v])&&void 0!==si?si:{version:l};if(!Vn&&Rn[Be]){var _i=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+Be);return Vt.error(_i.stack||_i.message),!1}return Rn.version!==l?(_i=new Error("@opentelemetry/api: Registration of version v"+Rn.version+" for "+Be+" does not match previously registered API v"+l),Vt.error(_i.stack||_i.message),!1):(Rn[Be]=Mt,Vt.debug("@opentelemetry/api: Registered a global for "+Be+" v"+l+"."),!0)}function y(Be){var Mt,Vt,Vn=null===(Mt=O[v])||void 0===Mt?void 0:Mt.version;if(Vn&&_(Vn))return null===(Vt=O[v])||void 0===Vt?void 0:Vt[Be]}function r(Be,Mt){Mt.debug("@opentelemetry/api: Unregistering a global for "+Be+" v"+l+".");var Vt=O[v];Vt&&delete Vt[Be]}var h=function(){function Be(Mt){this._namespace=Mt.namespace||"DiagComponentLogger"}return Be.prototype.debug=function(){for(var Mt=[],Vt=0;Vt<arguments.length;Vt++)Mt[Vt]=arguments[Vt];return g("debug",this._namespace,Mt)},Be.prototype.error=function(){for(var Mt=[],Vt=0;Vt<arguments.length;Vt++)Mt[Vt]=arguments[Vt];return g("error",this._namespace,Mt)},Be.prototype.info=function(){for(var Mt=[],Vt=0;Vt<arguments.length;Vt++)Mt[Vt]=arguments[Vt];return g("info",this._namespace,Mt)},Be.prototype.warn=function(){for(var Mt=[],Vt=0;Vt<arguments.length;Vt++)Mt[Vt]=arguments[Vt];return g("warn",this._namespace,Mt)},Be.prototype.verbose=function(){for(var Mt=[],Vt=0;Vt<arguments.length;Vt++)Mt[Vt]=arguments[Vt];return g("verbose",this._namespace,Mt)},Be}();function g(Be,Mt,Vt){var Vn=y("diag");if(Vn)return Vt.unshift(Mt),Vn[Be].apply(Vn,function(Be,Mt,Vt){if(Vt||2===arguments.length)for(var Rn,Vn=0,si=Mt.length;Vn<si;Vn++)(Rn||!(Vn in Mt))&&(Rn||(Rn=Array.prototype.slice.call(Mt,0,Vn)),Rn[Vn]=Mt[Vn]);return Be.concat(Rn||Array.prototype.slice.call(Mt))}([],function(Be,Mt){var Vt="function"==typeof Symbol&&Be[Symbol.iterator];if(!Vt)return Be;var si,_i,Vn=Vt.call(Be),Rn=[];try{for(;(void 0===Mt||Mt-- >0)&&!(si=Vn.next()).done;)Rn.push(si.value)}catch(wr){_i={error:wr}}finally{try{si&&!si.done&&(Vt=Vn.return)&&Vt.call(Vn)}finally{if(_i)throw _i.error}}return Rn}(Vt),!1))}var c=function(Be){return Be[Be.NONE=0]="NONE",Be[Be.ERROR=30]="ERROR",Be[Be.WARN=50]="WARN",Be[Be.INFO=60]="INFO",Be[Be.DEBUG=70]="DEBUG",Be[Be.VERBOSE=80]="VERBOSE",Be[Be.ALL=9999]="ALL",Be}(c||{}),V=function(){function Be(){function Mt(si){return function(){for(var Rn=[],_i=0;_i<arguments.length;_i++)Rn[_i]=arguments[_i];var wr=y("diag");if(wr)return wr[si].apply(wr,function(Be,Mt,Vt){if(Vt||2===arguments.length)for(var Rn,Vn=0,si=Mt.length;Vn<si;Vn++)(Rn||!(Vn in Mt))&&(Rn||(Rn=Array.prototype.slice.call(Mt,0,Vn)),Rn[Vn]=Mt[Vn]);return Be.concat(Rn||Array.prototype.slice.call(Mt))}([],function(Be,Mt){var Vt="function"==typeof Symbol&&Be[Symbol.iterator];if(!Vt)return Be;var si,_i,Vn=Vt.call(Be),Rn=[];try{for(;(void 0===Mt||Mt-- >0)&&!(si=Vn.next()).done;)Rn.push(si.value)}catch(wr){_i={error:wr}}finally{try{si&&!si.done&&(Vt=Vn.return)&&Vt.call(Vn)}finally{if(_i)throw _i.error}}return Rn}(Rn),!1))}}var Vt=this;Vt.setLogger=function(si,Rn){var _i,wr,hr;if(void 0===Rn&&(Rn={logLevel:c.INFO}),si===Vt){var Qr=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return Vt.error(null!==(_i=Qr.stack)&&void 0!==_i?_i:Qr.message),!1}"number"==typeof Rn&&(Rn={logLevel:Rn});var Yr=y("diag"),no=function T(Be,Mt){function Vt(Vn,si){var Rn=Mt[Vn];return"function"==typeof Rn&&Be>=si?Rn.bind(Mt):function(){}}return Be<c.NONE?Be=c.NONE:Be>c.ALL&&(Be=c.ALL),Mt=Mt||{},{error:Vt("error",c.ERROR),warn:Vt("warn",c.WARN),info:Vt("info",c.INFO),debug:Vt("debug",c.DEBUG),verbose:Vt("verbose",c.VERBOSE)}}(null!==(wr=Rn.logLevel)&&void 0!==wr?wr:c.INFO,si);if(Yr&&!Rn.suppressOverrideMessage){var Tr=null!==(hr=(new Error).stack)&&void 0!==hr?hr:"<failed to generate stacktrace>";Yr.warn("Current logger will be overwritten from "+Tr),no.warn("Current logger will overwrite one already registered from "+Tr)}return S("diag",no,Vt,!0)},Vt.disable=function(){r("diag",Vt)},Vt.createComponentLogger=function(si){return new h(si)},Vt.verbose=Mt("verbose"),Vt.debug=Mt("debug"),Vt.info=Mt("info"),Vt.warn=Mt("warn"),Vt.error=Mt("error")}return Be.instance=function(){return this._instance||(this._instance=new Be),this._instance},Be}(),I=function(){function Be(Mt){this._entries=Mt?new Map(Mt):new Map}return Be.prototype.getEntry=function(Mt){var Vt=this._entries.get(Mt);if(Vt)return Object.assign({},Vt)},Be.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(Mt){var Vt=function(Be,Mt){var Vt="function"==typeof Symbol&&Be[Symbol.iterator];if(!Vt)return Be;var si,_i,Vn=Vt.call(Be),Rn=[];try{for(;(void 0===Mt||Mt-- >0)&&!(si=Vn.next()).done;)Rn.push(si.value)}catch(wr){_i={error:wr}}finally{try{si&&!si.done&&(Vt=Vn.return)&&Vt.call(Vn)}finally{if(_i)throw _i.error}}return Rn}(Mt,2);return[Vt[0],Vt[1]]})},Be.prototype.setEntry=function(Mt,Vt){var Vn=new Be(this._entries);return Vn._entries.set(Mt,Vt),Vn},Be.prototype.removeEntry=function(Mt){var Vt=new Be(this._entries);return Vt._entries.delete(Mt),Vt},Be.prototype.removeEntries=function(){for(var Mt,Vt,Vn=[],si=0;si<arguments.length;si++)Vn[si]=arguments[si];var Rn=new Be(this._entries);try{for(var _i=function(Be){var Mt="function"==typeof Symbol&&Symbol.iterator,Vt=Mt&&Be[Mt],Vn=0;if(Vt)return Vt.call(Be);if(Be&&"number"==typeof Be.length)return{next:function(){return Be&&Vn>=Be.length&&(Be=void 0),{value:Be&&Be[Vn++],done:!Be}}};throw new TypeError(Mt?"Object is not iterable.":"Symbol.iterator is not defined.")}(Vn),wr=_i.next();!wr.done;wr=_i.next())Rn._entries.delete(wr.value)}catch(Qr){Mt={error:Qr}}finally{try{wr&&!wr.done&&(Vt=_i.return)&&Vt.call(_i)}finally{if(Mt)throw Mt.error}}return Rn},Be.prototype.clear=function(){return new Be},Be}(),k=Symbol("BaggageEntryMetadata"),R=V.instance();function G(Be){return void 0===Be&&(Be={}),new I(new Map(Object.entries(Be)))}function Y(Be){return"string"!=typeof Be&&(R.error("Cannot create baggage metadata from unknown type: "+typeof Be),Be=""),{__TYPE__:k,toString:function(){return Be}}}function K(Be){return Symbol.for(Be)}var ee=new(function(){return function Be(Mt){var Vt=this;Vt._currentContext=Mt?new Map(Mt):new Map,Vt.getValue=function(Vn){return Vt._currentContext.get(Vn)},Vt.setValue=function(Vn,si){var Rn=new Be(Vt._currentContext);return Rn._currentContext.set(Vn,si),Rn},Vt.deleteValue=function(Vn){var si=new Be(Vt._currentContext);return si._currentContext.delete(Vn),si}}}()),J=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],z=function(){return function Be(){function Mt(Vn){return function(){for(var si=[],Rn=0;Rn<arguments.length;Rn++)si[Rn]=arguments[Rn];if(console){var _i=console[Vn];if("function"!=typeof _i&&(_i=console.log),"function"==typeof _i)return _i.apply(console,si)}}}for(var Vt=0;Vt<J.length;Vt++)this[J[Vt].n]=Mt(J[Vt].c)}}(),te=function(){var Be=function(Mt,Vt){return(Be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Vn,si){Vn.__proto__=si}||function(Vn,si){for(var Rn in si)Object.prototype.hasOwnProperty.call(si,Rn)&&(Vn[Rn]=si[Rn])})(Mt,Vt)};return function(Mt,Vt){if("function"!=typeof Vt&&null!==Vt)throw new TypeError("Class extends value "+String(Vt)+" is not a constructor or null");function Vn(){this.constructor=Mt}Be(Mt,Vt),Mt.prototype=null===Vt?Object.create(Vt):(Vn.prototype=Vt.prototype,new Vn)}}(),X=function(){function Be(){}return Be.prototype.createHistogram=function(Mt,Vt){return ae},Be.prototype.createCounter=function(Mt,Vt){return de},Be.prototype.createUpDownCounter=function(Mt,Vt){return pe},Be.prototype.createObservableGauge=function(Mt,Vt){return ke},Be.prototype.createObservableCounter=function(Mt,Vt){return _e},Be.prototype.createObservableUpDownCounter=function(Mt,Vt){return De},Be.prototype.addBatchObservableCallback=function(Mt,Vt){},Be.prototype.removeBatchObservableCallback=function(Mt){},Be}(),re=function(){return function Be(){}}(),ge=function(Be){function Mt(){return null!==Be&&Be.apply(this,arguments)||this}return te(Mt,Be),Mt.prototype.add=function(Vt,Vn){},Mt}(re),oe=function(Be){function Mt(){return null!==Be&&Be.apply(this,arguments)||this}return te(Mt,Be),Mt.prototype.add=function(Vt,Vn){},Mt}(re),xe=function(Be){function Mt(){return null!==Be&&Be.apply(this,arguments)||this}return te(Mt,Be),Mt.prototype.record=function(Vt,Vn){},Mt}(re),ue=function(){function Be(){}return Be.prototype.addCallback=function(Mt){},Be.prototype.removeCallback=function(Mt){},Be}(),N=function(Be){function Mt(){return null!==Be&&Be.apply(this,arguments)||this}return te(Mt,Be),Mt}(ue),se=function(Be){function Mt(){return null!==Be&&Be.apply(this,arguments)||this}return te(Mt,Be),Mt}(ue),ce=function(Be){function Mt(){return null!==Be&&Be.apply(this,arguments)||this}return te(Mt,Be),Mt}(ue),Z=new X,de=new ge,ae=new xe,pe=new oe,_e=new N,ke=new se,De=new ce;function Me(){return Z}var je=function(Be){return Be[Be.INT=0]="INT",Be[Be.DOUBLE=1]="DOUBLE",Be}(je||{}),$e={get:function(Be,Mt){if(null!=Be)return Be[Mt]},keys:function(Be){return null==Be?[]:Object.keys(Be)}},Oe={set:function(Be,Mt,Vt){null!=Be&&(Be[Mt]=Vt)}},ye=function(){function Be(){}return Be.prototype.active=function(){return ee},Be.prototype.with=function(Mt,Vt,Vn){for(var si=[],Rn=3;Rn<arguments.length;Rn++)si[Rn-3]=arguments[Rn];return Vt.call.apply(Vt,function(Be,Mt,Vt){if(Vt||2===arguments.length)for(var Rn,Vn=0,si=Mt.length;Vn<si;Vn++)(Rn||!(Vn in Mt))&&(Rn||(Rn=Array.prototype.slice.call(Mt,0,Vn)),Rn[Vn]=Mt[Vn]);return Be.concat(Rn||Array.prototype.slice.call(Mt))}([Vn],function(Be,Mt){var Vt="function"==typeof Symbol&&Be[Symbol.iterator];if(!Vt)return Be;var si,_i,Vn=Vt.call(Be),Rn=[];try{for(;(void 0===Mt||Mt-- >0)&&!(si=Vn.next()).done;)Rn.push(si.value)}catch(wr){_i={error:wr}}finally{try{si&&!si.done&&(Vt=Vn.return)&&Vt.call(Vn)}finally{if(_i)throw _i.error}}return Rn}(si),!1))},Be.prototype.bind=function(Mt,Vt){return Vt},Be.prototype.enable=function(){return this},Be.prototype.disable=function(){return this},Be}(),et="context",xt=new ye,un=function(){function Be(){}return Be.getInstance=function(){return this._instance||(this._instance=new Be),this._instance},Be.prototype.setGlobalContextManager=function(Mt){return S(et,Mt,V.instance())},Be.prototype.active=function(){return this._getContextManager().active()},Be.prototype.with=function(Mt,Vt,Vn){for(var si,Rn=[],_i=3;_i<arguments.length;_i++)Rn[_i-3]=arguments[_i];return(si=this._getContextManager()).with.apply(si,function(Be,Mt,Vt){if(Vt||2===arguments.length)for(var Rn,Vn=0,si=Mt.length;Vn<si;Vn++)(Rn||!(Vn in Mt))&&(Rn||(Rn=Array.prototype.slice.call(Mt,0,Vn)),Rn[Vn]=Mt[Vn]);return Be.concat(Rn||Array.prototype.slice.call(Mt))}([Mt,Vt,Vn],function(Be,Mt){var Vt="function"==typeof Symbol&&Be[Symbol.iterator];if(!Vt)return Be;var si,_i,Vn=Vt.call(Be),Rn=[];try{for(;(void 0===Mt||Mt-- >0)&&!(si=Vn.next()).done;)Rn.push(si.value)}catch(wr){_i={error:wr}}finally{try{si&&!si.done&&(Vt=Vn.return)&&Vt.call(Vn)}finally{if(_i)throw _i.error}}return Rn}(Rn),!1))},Be.prototype.bind=function(Mt,Vt){return this._getContextManager().bind(Mt,Vt)},Be.prototype._getContextManager=function(){return y(et)||xt},Be.prototype.disable=function(){this._getContextManager().disable(),r(et,V.instance())},Be}(),ct=function(Be){return Be[Be.NONE=0]="NONE",Be[Be.SAMPLED=1]="SAMPLED",Be}(ct||{}),Gt="0000000000000000",pn="00000000000000000000000000000000",st={traceId:pn,spanId:Gt,traceFlags:ct.NONE},mn=function(){function Be(Mt){void 0===Mt&&(Mt=st),this._spanContext=Mt}return Be.prototype.spanContext=function(){return this._spanContext},Be.prototype.setAttribute=function(Mt,Vt){return this},Be.prototype.setAttributes=function(Mt){return this},Be.prototype.addEvent=function(Mt,Vt){return this},Be.prototype.setStatus=function(Mt){return this},Be.prototype.updateName=function(Mt){return this},Be.prototype.end=function(Mt){},Be.prototype.isRecording=function(){return!1},Be.prototype.recordException=function(Mt,Vt){},Be}(),Bn=K("OpenTelemetry Context Key SPAN");function En(Be){return Be.getValue(Bn)||void 0}function Cn(){return En(un.getInstance().active())}function fn(Be,Mt){return Be.setValue(Bn,Mt)}function dt(Be){return Be.deleteValue(Bn)}function nn(Be,Mt){return fn(Be,new mn(Mt))}function yn(Be){var Mt;return null===(Mt=En(Be))||void 0===Mt?void 0:Mt.spanContext()}var Xn=/^([0-9a-f]{32})$/i,rn=/^[0-9a-f]{16}$/i;function ai(Be){return Xn.test(Be)&&Be!==pn}function ri(Be){return rn.test(Be)&&Be!==Gt}function Ne(Be){return ai(Be.traceId)&&ri(Be.spanId)}function zt(Be){return new mn(Be)}var vt=un.getInstance(),Ct=function(){function Be(){}return Be.prototype.startSpan=function(Mt,Vt,Vn){if(void 0===Vn&&(Vn=vt.active()),Vt?.root)return new mn;var Rn=Vn&&yn(Vn);return function it(Be){return"object"==typeof Be&&"string"==typeof Be.spanId&&"string"==typeof Be.traceId&&"number"==typeof Be.traceFlags}(Rn)&&Ne(Rn)?new mn(Rn):new mn},Be.prototype.startActiveSpan=function(Mt,Vt,Vn,si){var Rn,_i,wr;if(!(arguments.length<2)){2===arguments.length?wr=Vt:3===arguments.length?(Rn=Vt,wr=Vn):(Rn=Vt,_i=Vn,wr=si);var hr=_i??vt.active(),Qr=this.startSpan(Mt,Rn,hr),Yr=fn(hr,Qr);return vt.with(Yr,wr,void 0,Qr)}},Be}(),Ut=new Ct,jn=function(){function Be(Mt,Vt,Vn,si){this._provider=Mt,this.name=Vt,this.version=Vn,this.options=si}return Be.prototype.startSpan=function(Mt,Vt,Vn){return this._getTracer().startSpan(Mt,Vt,Vn)},Be.prototype.startActiveSpan=function(Mt,Vt,Vn,si){var Rn=this._getTracer();return Reflect.apply(Rn.startActiveSpan,Rn,arguments)},Be.prototype._getTracer=function(){if(this._delegate)return this._delegate;var Mt=this._provider.getDelegateTracer(this.name,this.version,this.options);return Mt?(this._delegate=Mt,this._delegate):Ut},Be}(),nt=new(function(){function Be(){}return Be.prototype.getTracer=function(Mt,Vt,Vn){return new Ct},Be}()),on=function(){function Be(){}return Be.prototype.getTracer=function(Mt,Vt,Vn){var si;return null!==(si=this.getDelegateTracer(Mt,Vt,Vn))&&void 0!==si?si:new jn(this,Mt,Vt,Vn)},Be.prototype.getDelegate=function(){var Mt;return null!==(Mt=this._delegate)&&void 0!==Mt?Mt:nt},Be.prototype.setDelegate=function(Mt){this._delegate=Mt},Be.prototype.getDelegateTracer=function(Mt,Vt,Vn){var si;return null===(si=this._delegate)||void 0===si?void 0:si.getTracer(Mt,Vt,Vn)},Be}(),mt=function(Be){return Be[Be.NOT_RECORD=0]="NOT_RECORD",Be[Be.RECORD=1]="RECORD",Be[Be.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",Be}(mt||{}),_n=function(Be){return Be[Be.INTERNAL=0]="INTERNAL",Be[Be.SERVER=1]="SERVER",Be[Be.CLIENT=2]="CLIENT",Be[Be.PRODUCER=3]="PRODUCER",Be[Be.CONSUMER=4]="CONSUMER",Be}(_n||{}),wt=function(Be){return Be[Be.UNSET=0]="UNSET",Be[Be.OK=1]="OK",Be[Be.ERROR=2]="ERROR",Be}(wt||{}),Un="[_0-9a-z-*/]",Hn=new RegExp("^(?:[a-z]"+Un+"{0,255}|[a-z0-9]"+Un+"{0,240}@[a-z]"+Un+"{0,13})$"),pi=/^[ -~]{0,255}[!-~]$/,Zi=/,|=/,Zt=function(){function Be(Mt){this._internalState=new Map,Mt&&this._parse(Mt)}return Be.prototype.set=function(Mt,Vt){var Vn=this._clone();return Vn._internalState.has(Mt)&&Vn._internalState.delete(Mt),Vn._internalState.set(Mt,Vt),Vn},Be.prototype.unset=function(Mt){var Vt=this._clone();return Vt._internalState.delete(Mt),Vt},Be.prototype.get=function(Mt){return this._internalState.get(Mt)},Be.prototype.serialize=function(){var Mt=this;return this._keys().reduce(function(Vt,Vn){return Vt.push(Vn+"="+Mt.get(Vn)),Vt},[]).join(",")},Be.prototype._parse=function(Mt){Mt.length>512||(this._internalState=Mt.split(",").reverse().reduce(function(Vt,Vn){var si=Vn.trim(),Rn=si.indexOf("=");if(-1!==Rn){var _i=si.slice(0,Rn),wr=si.slice(Rn+1,Vn.length);(function Lr(Be){return Hn.test(Be)})(_i)&&function Kr(Be){return pi.test(Be)&&!Zi.test(Be)}(wr)&&Vt.set(_i,wr)}return Vt},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},Be.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},Be.prototype._clone=function(){var Mt=new Be;return Mt._internalState=new Map(this._internalState),Mt},Be}();function Zn(Be){return new Zt(Be)}var Dn=un.getInstance(),zn=V.instance(),Xt=new(function(){function Be(){}return Be.prototype.getMeter=function(Mt,Vt,Vn){return Z},Be}()),xn="metrics",$n=function(){function Be(){}return Be.getInstance=function(){return this._instance||(this._instance=new Be),this._instance},Be.prototype.setGlobalMeterProvider=function(Mt){return S(xn,Mt,V.instance())},Be.prototype.getMeterProvider=function(){return y(xn)||Xt},Be.prototype.getMeter=function(Mt,Vt,Vn){return this.getMeterProvider().getMeter(Mt,Vt,Vn)},Be.prototype.disable=function(){r(xn,V.instance())},Be}().getInstance(),Pt=function(){function Be(){}return Be.prototype.inject=function(Mt,Vt){},Be.prototype.extract=function(Mt,Vt){return Mt},Be.prototype.fields=function(){return[]},Be}(),Ii=K("OpenTelemetry Baggage Key");function ar(Be){return Be.getValue(Ii)||void 0}function Jt(){return ar(un.getInstance().active())}function ki(Be,Mt){return Be.setValue(Ii,Mt)}function Fr(Be){return Be.deleteValue(Ii)}var xo="propagation",qn=new Pt,ni=function(){function Be(){this.createBaggage=G,this.getBaggage=ar,this.getActiveBaggage=Jt,this.setBaggage=ki,this.deleteBaggage=Fr}return Be.getInstance=function(){return this._instance||(this._instance=new Be),this._instance},Be.prototype.setGlobalPropagator=function(Mt){return S(xo,Mt,V.instance())},Be.prototype.inject=function(Mt,Vt,Vn){return void 0===Vn&&(Vn=Oe),this._getGlobalPropagator().inject(Mt,Vt,Vn)},Be.prototype.extract=function(Mt,Vt,Vn){return void 0===Vn&&(Vn=$e),this._getGlobalPropagator().extract(Mt,Vt,Vn)},Be.prototype.fields=function(){return this._getGlobalPropagator().fields()},Be.prototype.disable=function(){r(xo,V.instance())},Be.prototype._getGlobalPropagator=function(){return y(xo)||qn},Be}().getInstance(),he="trace",Pe=function(){function Be(){this._proxyTracerProvider=new on,this.wrapSpanContext=zt,this.isSpanContextValid=Ne,this.deleteSpan=dt,this.getSpan=En,this.getActiveSpan=Cn,this.getSpanContext=yn,this.setSpan=fn,this.setSpanContext=nn}return Be.getInstance=function(){return this._instance||(this._instance=new Be),this._instance},Be.prototype.setGlobalTracerProvider=function(Mt){var Vt=S(he,this._proxyTracerProvider,V.instance());return Vt&&this._proxyTracerProvider.setDelegate(Mt),Vt},Be.prototype.getTracerProvider=function(){return y(he)||this._proxyTracerProvider},Be.prototype.getTracer=function(Mt,Vt){return this.getTracerProvider().getTracer(Mt,Vt)},Be.prototype.disable=function(){r(he,V.instance()),this._proxyTracerProvider=new on},Be}().getInstance();const Qe={context:Dn,diag:zn,metrics:$n,propagation:ni,trace:Pe}},56123:(Ue,W,d)=>{var n=d(8536).default;(()=>{var l={393:
/*!*****************************************!*\
!*** ../ragnarok-core/dist/ragnarok.js ***!
\*****************************************/(P,v,O)=>{var S=!0,y=!1;function r(s){if(s)switch(s){case"enable":case"on":case"1":case"true":return!0;case"disable":case"off":case"0":case"false":return!1}}var a=O(
/*! @gamestream/core */
778),h=O(
/*! @opentelemetry/api */
754),g=new a.LogImpl("R",{enable:S,Sg:y});function c(){return L||(L=new A),L}function T(s,M,B){const q=s.g.startSpan(M);return h.context.with(h.trace.setSpan(h.context.active(),q),n(function*(){try{const Se=B();return Se instanceof Promise?yield Se:Se}finally{q.end()}}))}var L,A=class{constructor(){this.g=h.trace.getTracer("gfn-web-gamestream","2.0")}},x=class{constructor(s,M){var B;this.g=0,this.h=this.o=!1,this.promise=new Promise((q,Se)=>{this.C=q,this.m=Se}),null!=M&&M.aborted?(this.h=!0,this.m()):(this.j=M,this.l=this.s.bind(this),null===(B=this.j)||void 0===B||B.addEventListener("abort",this.l),this.g=window.setTimeout(this.v.bind(this),s))}cancel(){var s;null===(s=this.j)||void 0===s||s.removeEventListener("abort",this.l),this.g&&(window.clearTimeout(this.g),this.g=0),this.j=void 0}s(){this.h=!0,this.m(),this.cancel()}v(){this.o=!0,this.C(),this.g=0,this.cancel()}};function V(s){return"Xbox"===s.os&&"Edge"===s.browser}function D(s){return"iOS"===s.os||"iPadOS"===s.os}function F(s){return!!/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(s)}function I(s){return"0x"+("00000000"+(s>>>0).toString(16).toUpperCase()).slice(-8)}function k(s){return s?"iOS"===s.os:/iPhone|iPod/.test(navigator.userAgent)}function R(s){return"WebOS"===s.os}function G(s){return"ChromeOS"===s.os}function Y(s){return"Windows"===s.os}function K(s){return"macOS"===s.os}function $(s){return"Tizen"===s.os}var ee={method:"GET",headers:{},body:"",retryCount:0,timeout:0,keepalive:!1};function J(){const s=h.trace.getActiveSpan();s&&s.setAttribute("error","true")}function z(s,M=ee,B,q){var Se;const be=null!==(Se=M.method)&&void 0!==Se?Se:"GET";return T(c(),be,()=>{var Je=M.headers;const _t=h.trace.getActiveSpan();if(_t){var Yt=new Map([["component","rtcutils-core"],["component.version","2.0"],["http.method",be],["http.url",s],["type",""],["http.hostname",""],["http.path",""]]);try{const $t=new URL(s);Yt.set("type",$t.protocol),Yt.set("http.hostname",$t.hostname),Yt.set("http.path",$t.pathname)}catch{g.e("{d988e7f}","{997fb3a}")}for(const[$t,Sn]of Yt)_t.setAttribute($t,Sn);_t.setAttributes(Je)}return function te(s,M=ee,B,q){var Se,be;let Je=void 0===M.retryCount?1:M.retryCount+1;const _t=Je,Yt=null!==(Se=M.hg)&&void 0!==Se?Se:500;let $t=Yt;const Sn=null!==(be=M.method)&&void 0!==be?be:"GET";let In=new Headers;const ci=q??new AbortController;return(Si=>{if(Si)switch(Si.type){case 1:Si.token&&In.set("authorization","GFNJWT "+Si.token);break;case 2:Si.token&&In.set("authorization","GFNPartnerJWT auth="+Si.token)}void 0!==M.headers&&Object.keys(M.headers).forEach(er=>{In.set(er,M.headers[er])}),Si={},h.propagation.inject(h.context.active(),Si);for(const[er,fi]of Object.entries(Si))In.set(er,fi)})(B),new Promise((Si,er)=>{const fi=ur=>{J(),er(ur)},Ri=()=>{if(navigator.onLine){let Hr,vr={method:Sn,headers:In,mode:"cors",keepalive:M.keepalive,signal:ci.signal,cache:"no-store"};"GET"!==Sn&&"HEAD"!==Sn&&(vr.body=M.body);const Ko=[0,DOMException.NETWORK_ERR,DOMException.TIMEOUT_ERR,503],Fo=M.timeout?new x(M.timeout):void 0,mr=[];mr.push(fetch(s,vr)),Fo&&mr.push(Fo.promise),Promise.race(mr).then(os=>{if(null!=Fo&&Fo.o)throw g.w("{d988e7f}","{5a69b89}",s),{code:DOMException.TIMEOUT_ERR,message:"Timeout while performing HTTP request"};if(os instanceof globalThis.Response)return Hr=os.status,os.text()}).then(os=>{if(!os&&Ko.includes(Hr)){if(1<Je)throw{code:Hr,message:"Internal server error."};g.w("{d988e7f}","{d639e52}",Hr,_t)}var Ja=(os={status:Hr,data:os??"",Kc:_t-Je}).status;const Us=h.trace.getActiveSpan();Us&&(Us.setAttribute("error","false"),Us.setAttribute("http.status_code",Ja.toString())),Si(os)}).catch(os=>{const Ja=Us=>[0,DOMException.NETWORK_ERR,DOMException.TIMEOUT_ERR].includes(Us)?(g.d("{d988e7f}","{0a9fabe}"),3237089282):Us==DOMException.ABORT_ERR?(g.d("{d988e7f}","{235387a}"),15867905):(g.w("{d988e7f}","{f116c88}",Us),3237089284);os instanceof Error?g.d("{d988e7f}","{b6e778a}",os.message):g.d("{d988e7f}","{ec768a1}",JSON.stringify(os),os),0==(os=(Us=>{let ua=0;return null!=Us&&Us.code?ua=Us?.code:null!=Us&&Us.name&&("AbortError"===Us.name?ua=DOMException.ABORT_ERR:"NetworkError"===Us.name?ua=DOMException.NETWORK_ERR:"TimeoutError"===Us.name&&(ua=DOMException.TIMEOUT_ERR)),ua})(os))&&M.keepalive&&(M.keepalive=!1),Ko.includes(os)?(vr=>{if(1<Je){Je--,g.d("{d988e7f}","{97555ed}",vr,Je);const Hr=new x($t,ci.signal);return Hr.promise.then(Ri).catch(Ko=>{Hr.h?(Ko={code:15867905,Kc:_t-Je},J(),er(Ko)):(g.w("{d988e7f}","{d3ca39d}",JSON.stringify(Ko)),Ko={code:3237089284,Kc:_t-Je},J(),er(Ko))}),$t+=Yt,!0}return!1})(os)||(g.w("{d988e7f}","{dff1a05}",_t,os),fi({code:Ja(os),Kc:_t-Je})):fi({code:Ja(os),Kc:_t-Je})}).finally(()=>{Fo?.cancel()})}else fi({code:3237089281,description:"No network",Kc:_t-Je})};Ri()})}(s,M,B,q)})}function X(){var s,M;return null===(M=null===(s=window.matchMedia)||void 0===s?void 0:s.call(window,"(pointer:coarse)"))||void 0===M?void 0:M.matches}function re(){var s,M;return!!window.TouchEvent&&(null===(M=null===(s=window.matchMedia)||void 0===s?void 0:s.call(window,"(any-pointer:coarse)"))||void 0===M?void 0:M.matches)}function ge(s){return"Tizen"===s.os||"WebOS"===s.os}function oe(){let s=new Uint8Array(36);window.crypto.getRandomValues(s);let M="";for(let B=0;36>B;B++){let q=s[B]%16;8==B||13==B||18==B||23==B?M+="-":14==B?M+="4":(19==B&&(q=3&q|8),M+=q.toString(16))}return g.i("{d988e7f}","{534eaf4}",M),M}function xe(s,M){for(let B=0;B<M.length&&B<s.length;++B){const q=s[B],Se=M[B];if(q>Se)return!0;if(q<Se)return!1}if(s.length<M.length)for(s=s.length;s<M.length;++s)if(0<M[s])return!1;return!0}function ue(s,M,B,q,Se){if("Chrome"!=s.browser)return!1;M=[M,B??0,q??0,Se??0];try{return xe(s.browserBestVer.split(".").map(Je=>Number.parseInt(Je)),M)}catch{g.w("{d988e7f}","{bcd8f94}")}return!0}function N(s,M,B,q){if(!D(s))return!1;try{return se(s.osVer,M,B,q)}catch{g.w("{d988e7f}","{cf4149f}")}return!M}function se(s,M,B,q){s=s.replace(/[^0-9.]/,"").split(".").map(be=>Number.parseInt(be));const Se=[B,q??0];return 1===s.length&&s.push(0),M?s.every((be,Je)=>be===Se[Je]):xe(s,Se)}function ce(s,M=500){const B=new AbortController;return window.setTimeout(()=>{B.abort()},M),fetch(s,{method:"OPTIONS",signal:B.signal}).then(q=>q).catch(q=>{throw q})}function Z(s,M,B){return{code:s,description:M,error:null!==B?B:void 0}}function de(s){switch(s){case"ETHERNET":return"ETHERNET";case"WIFI":case"WIFI_2_4":return"WIFI_2_4";case"WIFI_5_0":return"WIFI_5_0";case"MOBILE":return"MOBILE";case"MOBILE_2G":return"MOBILE_2G";case"MOBILE_3G":return"MOBILE_3G";case"MOBILE_4G":return"MOBILE_4G";case"MOBILE_5G":return"MOBILE_5G";case"OTHER":case"BLUETOOTH":case"WIMAX":return"OTHER";default:return"UNKNOWN"}}var ae=class{constructor(s){this.s=new Map,this.sa=s}addListener(s,M){var B=this.s.get(s);void 0!==B?B.add(M):((B=new Set).add(M),this.s.set(s,B))}removeListener(s,M){s=this.s.get(s),s?.delete(M)}removeAllListenersOfEvent(s){this.s.delete(s)}removeAllListeners(){this.s.clear()}hasListener(s){return void 0!==(s=this.s.get(s))&&0<s.size}emit(s,...M){try{let B=this.s.get(s);if(B)for(const q of B)this.sa?q(...M):window.setTimeout(q,0,...M)}catch(B){console.log("Exception in emit: "+B)}}};function pe(s,M){var B=Oe,q=gt;let Se=[];var be=s;let Je=[];do{Je.push(be),be=Object.getPrototypeOf(be)}while(""!=be.name);Je.reverse();for(let _t of Je)Se.push(_t.toString().replace(/(extends )[^ {]*\.([^ ]*[ {])/,"$1$2"));return Se.push(`${B.toString()}`),M?(Se.push(`${M.toString()}`),Se.push(`onconnect = (event) => { ${M.name}(${s.name}, event, ${B.name}); };`)):Se.push(`onmessage = (event) => { ${B.name}(${s.name}, event); };`),Se.push(`${q.toString()}`),Se.push(`onerror = (event) => { ${q.name}(event); };`),URL.createObjectURL(new Blob(Se,{type:"text/javascript"}))}function _e(s,M,B){if(!s.prototype.mb)throw Error("Invalid Worker class provided");s=pe(s);const q=new Worker(s);URL.revokeObjectURL(s),je(q,M,B)}function ke(s,M,B){var q=window;if(typeof q.SharedWorker>"u")throw Error("SharedWorker not supported");if(!s.prototype.mb)throw Error("Invalid Worker class provided");return s=pe(s,$e),q=new q.SharedWorker(s),URL.revokeObjectURL(s),je(q,M,B),q}const De=new Map;function Me(s){if(!De.has(s)){s.postMessage.bind(s)({Pb:2,data:null});var M=window.setTimeout(()=>{const B=De.get(s);B&&(clearTimeout(B),De.delete(s)),s instanceof Worker?s.terminate():s instanceof MessagePort&&s.close()},150);De.set(s,M)}}function je(s,M,B){const q="port"in s?s.port:s,Se=q.postMessage.bind(q);let be=!1;const Je=_t=>{be||(be=!0,g.e("{10ca8e2}","{03baf25}",_t,typeof _t),Me(q),B(_t))};q.onmessage=_t=>{let Yt=(_t=_t.data).data;switch(_t.Pb){case 1:Se({Pb:3,data:null});break;case 4:M(Yt),Me(q);break;case 5:Je(Yt)}},"onmessageerror"in q&&(q.onmessageerror=Je),s.onerror=Je,Se({Pb:0,data:null})}function $e(s,M,B){const q=globalThis;q.port=M.ports[0],q.port.onmessage=B.bind(self,s)}function Oe(s,M){var B;const q=globalThis;q.Md=null!==(B=q.Md)&&void 0!==B?B:{},M=(B=M.data).Pb,B=B.data;let Se="port"in q?q.port:self;switch(M){case 0:var be=new s;q.Md[s.name]=be,Se.postMessage({Pb:1,data:null});break;case 2:null===(be=self?.close)||void 0===be||be.call(self);break;case 3:Promise.resolve(q.Md[s.name].mb()).then(Je=>{Se.postMessage({Pb:4,data:Je})});break;default:throw Error(`Unknown message: ${M}:${B}`)}}function gt(s){const M=globalThis;("port"in M?M.port:self).postMessage({Pb:5,data:s})}function Ze(){return Ze=n(function*(s){var M=Promise,B=M.all,q=function un(s){return new Promise(M=>{let B=!1;const q=Yt=>{if(s.ka)clearTimeout(s.ka),s.ka=0;else if(B)return g.w("{3c72abb}","{c1bb269}"),void yn(s,"GL",s.Ce-performance.now());if(!s.oc){var $t=Yt.Qf;if($t.startsWith("ANGLE")){var Sn=$t.split(",");1<Sn?.length&&(s.gpuDetail=Sn[1].trim())}else s.gpuDetail=$t;Sn=$t.toLowerCase(),$t.includes("SraKmd")?(s.J=!0,$t.includes("SraKmd_arden")&&(s.Da=!0),($t=/D3D11-(\d{2,}\.\d{1,}\.\d{5,}\.\d{4,})/.exec($t))&&1<$t.length&&(s.v=$t[1])):$t.includes("AMD")&&Sn.includes("vangogh")&&(s.Bb=!0),s.Ee=Yt.Gf,s.oc=!0}M()};let Se=!1,be=!1;const Je=Yt=>{"string"==typeof Yt?Xn(s,"GL",Yt):"data"in Yt?rn(s,"GL",Yt):ai(s,"GL",Yt),be=!0,g.e("{3c72abb}","{9e45306}",Yt)};let _t=0;try{self.OffscreenCanvas&&(Se=!0,_e(Zi,q,Je),_t=150)}catch(Yt){be=!0,ri(s,"GL",Yt),g.w("{3c72abb}","{caf8cd7}",Yt)}window.setTimeout(()=>{s.oc||(s.ka=window.setTimeout(()=>{s.ka=0,s.Ce=performance.now(),be?g.w("{3c72abb}","{fbe663c}"):Se?(g.w("{3c72abb}","{2577061}"),Ne(s,"GL")):(g.i("{3c72abb}","{95c252e}"),zt(s,"GL"));const Yt=(new Zi).mb();q(Yt),B=!0},_t))},0)})}(s),Se=function ct(s){return new Promise(M=>{if(navigator.userAgentData){var B=$t=>{var Sn;if(!s.Rf){var In=$t.model,ci=$t.platform,Si=$t.platformVersion,er=$t.uaFullVersion,fi=$t.bitness;""==In&&""==ci&&""==Si&&""==er?s.lb&&s.R||s.Ka||null==fi||s.R&&!s.$||(s.o=!0):""==fi&&"Android"!=ci&&(s.o=!0),In&&("Xbox"===In?s.ca=!0:In.startsWith("AFT")?(s.ef=!0,s.N=!0):In.includes("BRAVIA")?(s.N=!0,s.Xe=!0):"Chromecast"===In?(s.N=!0,s.cf=!0,s.deviceName="CHROMECAST"):"SHIELD Android TV"===In?(s.N=!0,s.mf=!0,s.deviceName="SHIELDTV"):In.startsWith("MiTV")?(s.N=!0,s.hf=!0,s.deviceName="MITV"):In.startsWith("TVision")&&(s.N=!0,s.uf=!0,s.deviceName="TVISION")),"Windows"===ci?s.P=!0:"macOS"===ci?s.L=!0:"Chrome OS"===ci||"ChromeOS"===ci?s.O=!0:"Chromium OS"===ci?s.ea=!0:"Android"===ci?s.da=!0:"Linux"===ci&&(""==Si?(s.da=!0,s.vf=!0):s.na=!0),In=ur=>{if(ur&&"string"==typeof ur)return ur.replace(/[-._,:;|#@]/g,".")};ci=ur=>s.P&&!s.ca?(ur=>{if(!ur||!s.qa||95>+s.qa)return ur;switch(ur.split(".").map(vr=>Number.parseInt(vr))[0]){case 0:return"8-";case 1:return"10.0.10240";case 2:return"10.0.10586";case 3:return"10.0.14393";case 4:return"10.0.15063";case 5:return"10.0.16299";case 6:return"10.0.17134";case 7:return"10.0.17763";case 8:return"10.0.18362+";case 9:return"10.0.9";case 10:return"10.0.19041+";case 11:return"10.0.11";case 12:return"10.0.12";case 13:return"11.0.0";case 14:return"11.0.22000.0";case 15:return"11.0.22621.0";default:return"11.0.22621.0+"}})(ur):ur,$t.brands&&0<$t.brands.length&&function vt(s,M){var B;s.ra=!0,M.mobile&&(s.Mb=!0);var q=M.brands||[];M=0;for(const Se of q){const be=Se.version;"Google Chrome"===(q=Se.brand)?(s.ta=!0,s.m=be):"Microsoft Edge"===q?(s.$a=!0,s.m=be):"Opera"===q?(s.ua=!0,s.m=be):"Yandex"===q?(s.ab=!0,s.m=be):"Chromium"===q?(s.Z=!0,s.m=null!==(B=s.m)&&void 0!==B?B:be,s.qa=be):"Android WebView"===q?(s.Ie=!0,s.m=be):M++}2<M&&(s.Ge=!0)}(s,$t),s.browserFullVer=In(er),s.sg=Si,s.v=null!==(Sn=s.v)&&void 0!==Sn?Sn:ci(In(Si)),s.Rf=!0}},q=$t=>{$t&&(s.sa&&(clearTimeout(s.sa),s.sa=0),B($t),M())},Se=!1,be=!1,_t=0;try{if(self.SharedWorker){Se=!0;var Yt=ke(Lr,q,$t=>{"string"==typeof $t?Xn(s,"HE",$t):"data"in $t?rn(s,"HE",$t):ai(s,"HE",$t),be=!0,g.e("{3c72abb}","{217e106}",$t)});_t=300}}catch($t){be=!0,g.w("{3c72abb}","{a583546}",$t),ri(s,"HE",$t)}s.sa=window.setTimeout(()=>{Yt&&Me("port"in Yt?Yt.port:Yt),be?g.w("{3c72abb}","{dbf4b42}"):Se?(g.w("{3c72abb}","{0bf7a38}"),Ne(s,"HE"),s.af=!0):(g.i("{3c72abb}","{7a82b59}"),zt(s,"HE")),(new Lr).mb().then($t=>{q($t)})},_t)}else M()})}(s),be=function Gt(s){return pn.apply(this,arguments)}(s),Je=function xt(s){const M=window.speechSynthesis;if(M){const B=M.getVoices;let q=B?.call(M)||[];return new Promise(Se=>{if(!B||q.length)et(s,q),Se();else{let be=0;const Je=()=>{q=B.call(M);const _t=performance.now();0==q.length&&(0==be||600>_t-be)?(s.T&&clearTimeout(s.T),s.T=window.setTimeout(Je,150)):(s.T&&(clearTimeout(s.T),s.T=0),et(s,q),Se())};void 0!==M.onvoiceschanged&&(M.onvoiceschanged=Je),window.setTimeout(()=>{q=B.call(M),q.length?Je():(s.T=window.setTimeout(Je,150),be=performance.now())},0)}})}return new Promise(B=>{B()})}(s),_t=function st(s){return new Promise(M=>{var B=navigator.userAgent;B&&(B=B.match(s.ye))&&(s.rg=B?.[1],s.qg=B?.[2]),M()})}(s),Yt=function mn(s){var M,B,q,Se,be,Je,_t,Yt,$t,Sn,In,ci,Si,er,fi;const Ri=window,ur=Ri.hasOwnProperty,vr=Ri.navigator;ur.call(Ri,"MSMediaKeys")?s.Ke=!0:ur.call(Ri,"_firefoxTV_cachedScrollPosition")?s.Me=!0:void 0!==Ri.__edgeActiveElement||Ri.__edgeTrackingPreventionStatistics?s.bb=!0:Ri.safari?s.Ue=!0:Ri.opr?s.Oe=!0:Ri.oprt?s.ee=!0:vr.brave?s.va=!0:void 0!==Ri.OperaTouch||Ri.ethereum?(s.lb=!0,s.R=!0):Ri.yandex?s.ya=!0:Ri.QuickAccess?s.xa=!0:Ri.chrome?s.$=!0:Ri.netscape?s.wa=!0:Ri.__firefox__?s.cb=!0:Ri.__gCrWeb?s.Va=!0:Ri.ReactNativeWebView&&(s.Qe=!0),void 0!==Ri.contacts||void 0!==Ri.ContactsManager?s.R=!0:ur.call(Ri,"onwebOSAccessibilityAlertDone")||Ri.webOSSystem||ur.call(Ri,"onwebosaccessibilityalertdone")?s.Af=!0:Ri.tizen||Ri.TizenTVApiInfo||Ri.addEdgeEffectONSCROLLTizenUIF||Ri.tizentvwasm?s.Ka=!0:Ri.HardkeyEvent&&(s.xf=!0);const Hr=Ri.Intl;!(null===(M=vr.mediaCapabilities)||void 0===M)&&M.decodingInfo&&(s.oe=!0),Ri.BigInt&&(s.fg=!0,Ri.BigInt64Array&&(s.ge=!0)),Ri.PerformanceNavigationTiming&&(s.Be=!0),Ri.WebAssembly&&Ri.WebAssembly.Exception&&(s.Ne=!0),Ri.BroadcastChannel&&(s.he=!0),Ri.GPUBuffer&&(s.se=!0),Ri.SharedWorker&&(s.He=!0),Ri.MediaRecorder&&(s.xe=!0),Ri.CSSCounterStyleRule&&(s.je=!0),null!=(M=null===(B=Ri.ArrayBuffer)||void 0===B?void 0:B.prototype)&&M.hasOwnProperty("transfer")&&(s.cg=!0),ur.call(Ri,"ondevicelight")&&(s.pe=!0),!(null===(q=Ri.AbortSignal)||void 0===q)&&q.abort&&(s.bg=!0),ur.call(Ri,"onbeforeinput")&&(s.eg=!0),Hr&&(Hr.DisplayNames&&(s.Pa=!0),s.te="pinyin"==(null===(Se=new Hr.Collator("zh",{collation:"pinyin"}).resolvedOptions())||void 0===Se?void 0:Se.collation)),Ri.Credential&&(s.ne=!0),!(null===(be=Ri.browser)||void 0===be)&&be.runtime&&(s.ie=!0),Ri.LargestContentfulPaint&&(s.ve=!0),!(null===(Je=Ri.CSS)||void 0===Je)&&Je.registerProperty&&(s.le=!0),null!=(B=null===(_t=Ri.HTMLElement)||void 0===_t?void 0:_t.prototype)&&B.hasOwnProperty("autofocus")&&(s.re=!0),vr.contacts&&(s.me=!0),Ri.TrustedHTML&&(s.Je=!0),Ri.WakeLock&&(s.Le=!0),!(null===(Yt=Ri.Promise)||void 0===Yt)&&Yt.any&&(s.De=!0),Ri.FileSystemHandle&&(s.qe=!0),!(null===($t=Ri.Atomics)||void 0===$t)&&$t.waitAsync&&(s.dg=!0),!(null===(In=null===(Sn=Ri.CSS)||void 0===Sn?void 0:Sn.supports)||void 0===In)&&In.call(Sn,"aspect-ratio: auto")&&(s.ke=!0),Ri.ReadableStreamBYOBReader&&(s.Fe=!0),!(null===(Si=null===(ci=Ri.CSS)||void 0===ci?void 0:ci.supports)||void 0===Si)&&Si.call(ci,"overflow: clip")&&(s.ze=!0),null!=(_t=null===(er=Ri.InputEvent)||void 0===er?void 0:er.prototype)&&_t.hasOwnProperty("isComposing")&&(s.ue=!0),er=null===(fi=Ri.HTMLVideoElement)||void 0===fi?void 0:fi.prototype,s.Pe=er?.hasOwnProperty("webkitSupportsPresentationMode")}(s),$t=function Bn(s){var M,B,q,Se;const be=window.RequestCrowNativeApi;if(be){let Je=0;const _t=new Promise((ci,Si)=>{Je=window.setTimeout(()=>{Si("timeout")},100)}),Yt=window.zoneless,$t=null!==(B=null===(M=Yt?.windowAddEventListener)||void 0===M?void 0:M.bind(window))&&void 0!==B?B:window.addEventListener.bind(window),Sn=null!==(Se=null===(q=Yt?.windowRemoveEventListener)||void 0===q?void 0:q.bind(window))&&void 0!==Se?Se:window.removeEventListener.bind(window);let In;return M=new Promise(ci=>{In=Si=>{ci(Si.detail)},$t("CrowNativeApiEvent",In),be(JSON.stringify({Wg:"RequestBrowserVersion"}))}).then(ci=>{var Si;(ci=null===(Si=ci.browserVersion)||void 0===Si?void 0:Si.match(s.ye))&&(s.browserFullVer=ci?.[1],s.m=ci?.[2])}),Promise.race([M,_t]).catch(()=>{g.d("{3c72abb}","{841bf6f}")}).finally(()=>{window.clearTimeout(Je),Sn("CrowNativeApiEvent",In)})}return Promise.resolve()}(s),Sn=function En(s){return new Promise(M=>{let B=!1;const q=Yt=>{if(s.pa)clearTimeout(s.pa),s.pa=0;else if(B)return g.w("{3c72abb}","{b02109c}"),void yn(s,"Plat",s.ag-performance.now());s.pc||("MacIntel"===(Yt=Yt.platform)?s.ga=!0:"iPhone"===Yt?s.Na=!0:"Win32"===Yt?s.ja=!0:"iPad"===Yt?s.Nb=!0:"FreeBSD amd64"===Yt?s.oa=!0:"Windows"===Yt&&(s.ja=!0,s.aa=!0),Yt.startsWith("Linux")&&(s.S=!0),s.pc=!0),M()};let Se=!1,be=!1;const Je=Yt=>{"string"==typeof Yt?Xn(s,"Plat",Yt):"data"in Yt?rn(s,"Plat",Yt):ai(s,"Plat",Yt),be=!0,g.e("{3c72abb}","{6350135}",Yt)};let _t=0;try{Se=!0,_e(Qt,q,Je),_t=150}catch(Yt){be=!0,ri(s,"Plat",Yt),g.w("{3c72abb}","{79668e5}",Yt)}window.setTimeout(()=>{s.pc||(s.pa=window.setTimeout(()=>{s.pa=0,s.ag=performance.now(),be?g.w("{3c72abb}","{d9e1e01}"):Se?(g.w("{3c72abb}","{a8d68cb}"),Ne(s,"Plat")):(g.i("{3c72abb}","{53e2225}"),zt(s,"Plat"));const Yt=(new Qt).mb();q(Yt),B=!0},_t))},0)})}(s),In=function Cn(s){const M=window;M.ApplePaySession&&M.ApplePaySession.canMakePayments&&(s.qc=!0)}(s),ci=function fn(s){var M=navigator.plugins;for(const B of M)"Native Client"!==(M=B.name)&&(M.startsWith("Microsoft Edge PDF")?s.If=!0:M.startsWith("Chrome PDF")?s.Bf=!0:M.startsWith("Chromium PDF")?s.Ef=!0:M.startsWith("PPAPI SAMSUNGHEALTH")&&(s.Ka=!0))}(s);navigator.maxTouchPoints&&0<navigator.maxTouchPoints&&(s.fa=!0),yield B.call(M,[q,Se,be,Je,_t,Yt,$t,Sn,In,ci,void 0,dt(s),nn(s)]).then(()=>{var Si,er,fi,Ri,ur,vr,Hr,Ko,Fo,mr,os,Ja,Us,ua,kl,Wl,$l,_o,Nl,hc;if(s.ra&&((s.ga!=s.L||s.ja!=s.P)&&(s.o=!0),(s.O||s.ea||s.da||s.na)&&!s.S&&(s.o=!0),s.m&&s.browserFullVer&&!Ut(s.m,s.browserFullVer)&&(s.ua?s.qa&&!Ut(s.qa,s.browserFullVer)&&(s.o=!0):s.o=!0),(s.O&&!s.ta||s.ea&&!s.Z)&&(s.o=!0),s.Sa?(s.U&&!s.P||s.F&&!s.L)&&(s.o=!0):s.Ta?s.O||(s.o=!0):s.Ua?s.o=!0:s.U||!s.F||s.L||(s.o=!0),s.s=s.ra&&!s.o,s.W=s.ra&&s.o),!s.Ee&&s.$)s.g="Unknown",s.h="Unknown",s.aa=!0,s.l=3,s.v="0",s.m="0",s.browserFullVer="0",g.d("{3c72abb}","{049d298}");else if(s.Ta)s.g="ChromeOS",jn(s);else if(s.Sa)jn(s),s.U?s.g="Windows":s.F?(s.g="macOS",s.j="APPLE"):s.s?s.P?s.g="Windows":s.L?(s.g="macOS",s.j="APPLE"):s.O||s.ea?(s.g="ChromeOS",s.aa=!0,s.l=7):s.na&&(s.g=wn(s)):s.ja?s.g="Windows":s.ga?(s.g="macOS",s.j="APPLE"):s.S?s.g=wn(s):s.oa?s.g="FreeBSD":(s.g="Unknown",s.l=5,g.d("{3c72abb}","{101497c}"));else if(s.Ua)nt(s),s.U?s.g="Windows":s.F?(s.g="macOS",s.j="APPLE"):s.Ve?(s.g="Android",on(s)):s.S?s.g=wn(s):s.oa?s.g="FreeBSD":(s.g="Unknown",s.l=5,g.d("{3c72abb}","{49fcccb}"));else if(s.Re)s.h="Edge",s.sc?s.s&&s.ca||s.J?(s.g="Xbox",s.j="MICROSOFT",s.Da?s.M="XBOXSERIES":s.J&&(s.M="XBOXONE")):s.g="Windows":s.F?(s.g="macOS",s.j="APPLE"):s.Qa?(s.g="Android",on(s)):s.s?s.ca?(s.g="Xbox",s.j="MICROSOFT",s.Da?s.M="XBOXSERIES":s.J&&(s.M="XBOXONE")):s.P?s.g="Windows":s.L?(s.g="macOS",s.j="APPLE"):s.O||s.ea?(s.g="ChromeOS",s.aa=!0,s.l=7):s.da?(s.g="Android",on(s)):s.na&&(s.g=wn(s)):s.ja?s.g="Windows":s.ga?(s.g="macOS",s.j="APPLE"):s.R?(s.g="Android",on(s)):s.S?s.g=wn(s):s.oa?s.g="FreeBSD":(s.g="Unknown",s.l=5);else if(s.U)s.sc?mt(s):(mt(s),s.aa=!0,s.l=5);else if(s.F)_n(s);else if(s.Qa)wt(s);else if(s.s&&(s.ca||s.P)||s.ja||s.J)mt(s);else if(s.s&&s.L||s.Nb||s.Na||s.ga)_n(s);else if(s.s&&(s.O||s.ea))s.g="ChromeOS",jn(s);else if(s.xf)s.g="ccOS",s.j="HKMC",s.h="Chromium";else if(s.s&&s.da||s.R)wt(s);else if(s.s&&s.na)s.g=wn(s),s.Mb||s.fa?(s.h="Unknown",s.l=3):Un(s)||(s.h="Unknown",s.l=5,g.d("{3c72abb}","{54c6569}"));else if(s.Af)s.g="WebOS",s.j="LG",s.h="Chromium",s.browserFullVer=null!==(_o=s.browserFullVer)&&void 0!==_o?_o:s.rg,s.m=null!==(Nl=s.m)&&void 0!==Nl?Nl:s.qg,s.W=!1;else if(s.Ka){if(s.g="Tizen",s.h="Samsung",null!==(hc=window.webapis)&&void 0!==hc&&hc.productinfo)try{s.v=window.webapis.productinfo.getFirmware(),s.deviceName=window.webapis.productinfo.getRealModel(),s.Za=window.webapis.productinfo.getLicensedVendor()}catch{g.e("{3c72abb}","{bc7dd9b}")}else g.e("{3c72abb}","{844af47}"),s.v="0",s.deviceName="";s.j="Samsung"!==s.Za&&s.Za?"TIZENLICENSED":"SAMSUNG",_o=/(([0-9]+\.)*[0-9]+)\/(([0-9]+\.)*[0-9]+)/,(Nl=navigator.userAgent)&&(_o=Nl.match(_o),s.browserFullVer=_o?.[0],(_o=_o?.[1])&&(_o=_o.split("."),s.m=_o?.[0]))}else s.S?s.Me?(s.g="Android",s.j="AMAZON",nt(s),s.H="TV"):s.xa?(s.g="Android",s.j="SAMSUNG",s.h="Samsung",on(s)):Un(s)?s.W?s.g=wn(s):!s.Ef||s.Bf||s.If?s.S&&(s.g="Linux"):(s.g=wn(s),s.h="Chromium",s.l=7):(s.g="Unknown",s.h="Unknown",s.l=0,g.d("{3c72abb}","{be86380}")):s.oa?(s.g="FreeBSD",s.$?s.h="Chrome":s.wa?nt(s):(s.h="Unknown",s.l=3,g.d("{3c72abb}","{a2c16e4}"))):s.Va||s.cb||s.bb?(s.Na=!0,_n(s),s.l=7):s.xa?(wt(s),s.l=7):(s.g="Unknown",s.h="Unknown",s.l=0,g.d("{3c72abb}","{f2eecc9}"));switch(s.W&&(s.v="0",s.m="0",s.browserFullVer="0"),s.we=performance.now(),s.u.os=null!==(Si=s.g)&&void 0!==Si?Si:"Unknown",s.u.browser=null!==(er=s.h)&&void 0!==er?er:"Unknown",s.u.osRawVer=null!==(fi=s.sg)&&void 0!==fi?fi:"0",s.u.osVer=null!==(Ri=s.v)&&void 0!==Ri?Ri:"0",s.u.browserVer=null!==(ur=s.m)&&void 0!==ur?ur:"0",Si=null!==(vr=s.browserFullVer)&&void 0!==vr?vr:void 0,s.u.browserFullVer=Si??"0",s.u.browserBestVer=null!==(Hr=Si??s.u.browserVer)&&void 0!==Hr?Hr:"0",s.u.confidence=null!==(Ja=null!==(os=null!==(mr=null!==(Fo=null!==(Ko=s.l)&&void 0!==Ko?Ko:"Unknown"===s.g?0:void 0)&&void 0!==Fo?Fo:"Unknown"===s.h?5:void 0)&&void 0!==mr?mr:s.af?6:void 0)&&void 0!==os?os:s.W?8:void 0)&&void 0!==Ja?Ja:10,s.u.forging=null!==(Us=s.aa)&&void 0!==Us&&Us,s.u.spoofing=null!==(ua=s.W)&&void 0!==ua&&ua,s.u.vendor=null!==(kl=s.j)&&void 0!==kl?kl:"",s.u.vendorFull=null!==(Wl=s.Za)&&void 0!==Wl?Wl:s.u.vendor,vr=void 0,s.u.os){case"ChromeOS":vr="CHROMEOS";break;case"Windows":vr="WINDOWS";break;case"macOS":vr="MACOS";break;case"Linux":vr="LINUX";break;case"iOS":vr="IOS";break;case"iPadOS":vr="IPADOS";break;case"Tizen":vr="TIZEN";break;case"WebOS":vr="WEBOS";break;case"Android":vr="ANDROID";break;case"Xbox":vr="XBOX";break;case"SteamOS":vr="STEAMOS";break;case"ccOS":vr="CCOS"}s.u.deviceOS=vr,"iPadOS"!==s.u.os||s.Pe?s.Bb?s.u.deviceModel="STEAMDECK":s.M&&(s.u.deviceModel=s.M):s.u.deviceModel="VISIONPRO",s.u.deviceType=null!==($l=s.H)&&void 0!==$l?$l:function qt(s,M){if("STEAMDECK"===M)return"CONSOLE";switch(s){case"iOS":return"PHONE";case"iPadOS":return"TABLET";case"Xbox":return"CONSOLE";case"WebOS":case"Tizen":return"TV";default:return"DESKTOP"}}(s.u.os,s.u.deviceModel),s.u.totalTime=s.we-s.start,s.u.gpuDetail=s.gpuDetail})}),Ze.apply(this,arguments)}function et(s,M){if(!s.$f){for(const B of M)(M=B.voiceURI||"").startsWith("Chrome OS")?s.Ta=!0:M.startsWith("Google")?s.Sa=!0:M.includes("moz-tts")?(M.includes("android")&&(s.Ve=!0,s.R=!0),s.Ua=!0):"English United States"==M&&(s.Qa=!0),M.includes("Microsoft")?(s.U=!0,M.includes("Online")?s.Re=!0:s.sc=!0):M.includes("com.apple")?(s.F=!0,M.includes("Ellen")&&(s.fe=!0)):"Zuzana"==M&&(s.F=!0);s.Ye=s.F||s.U||s.Sa||s.Ta||s.Ua||s.Qa,s.$f=!0}}function pn(){return pn=n(function*(s){s.rc=!!window.chrome&&(yield function Ct(){return it.apply(this,arguments)}())}),pn.apply(this,arguments)}function dt(s){const M=window;s.mc=M.matchMedia("(hover: hover)").matches,s.nc=M.matchMedia("(hover: none)").matches,s.kc=M.matchMedia("(pointer: coarse)").matches,s.lc=M.matchMedia("(pointer: fine)").matches}function nn(s){return new Promise(M=>{const B=Yt=>{s.Oa&&(clearTimeout(s.Oa),s.Oa=0),Yt.Gd&&(s.wf=Yt.Gd,s.lg=Yt.qd,s.jg=Yt.Ld),M()};let q=!1,Se=!1;const be=Yt=>{"string"==typeof Yt?Xn(s,"TV",Yt):"data"in Yt?rn(s,"TV",Yt):ai(s,"TV",Yt),Se=!0,g.e("{3c72abb}","{f49e1b4}",Yt)};let _t,Je=0;try{self.SharedWorker&&(q=!0,_t=ke(Kr,B,be),Je=150)}catch(Yt){Se=!0,g.w("{3c72abb}","{2066dd6}",Yt),ri(s,"TV",Yt)}s.Oa=window.setTimeout(()=>{_t&&Me("port"in _t?_t.port:_t),Se?g.w("{3c72abb}","{cdb3848}"):q?(g.w("{3c72abb}","{f01188c}"),Ne(s,"TV")):(g.i("{3c72abb}","{db9e3f4}"),zt(s,"TV")),(new Kr).mb().then(Yt=>{B(Yt)})},Je)})}function yn(s,M,B){s.G?Il(s.G,"WorkerOverlongDelay",M,B.toString()):s.C.push({type:"WorkerOverlongDelay",name:M,data:B})}function Xn(s,M,B){s.G?Il(s.G,"WebWorkerProblem",M,B):s.C.push({type:"ErrorString",name:M,data:B})}function rn(s,M,B){s.G?Il(s.G,"WorkerMessageProblem",JSON.stringify(B)):s.C.push({type:"MessageEvent",name:M,data:B})}function ai(s,M,B){s.G?Il(s.G,"WorkerProblem",M,`${B.message} in ${B.filename}@${B.lineno}:${B.colno}`,JSON.stringify(B.error)):s.C.push({type:"ErrorEvent",name:M,data:B})}function ri(s,M,B){var q;s.G?Il(s.G,"WorkerCreateFailure",M,null!==(q=B?.stack)&&void 0!==q?q:"",JSON.stringify(B)):s.C.push({type:"WorkerCreateFailure",name:M,data:B})}function Ne(s,M){s.G?Il(s.G,"WorkerTimeout",M):s.C.push({type:"WorkerTimeout",name:M})}function zt(s,M){s.G?Il(s.G,"WorkerUnused",M):s.C.push({type:"WorkerUnused",name:M})}function it(){return(it=n(function*(){if(!window.createImageBitmap)return!1;const s=yield fetch("data:image/avif;base64,AAAAGGZ0eXBhdmlmAAAAAGF2aWZtaWYxAAADm21ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAHBpY3QAAAAAAAAAAAAAAAAAAAAADnBpdG0AAAAAAAEAAAAiaWxvYwAAAABEQAABAAEAAAAAA7sAAQAAAAAAAAAjAAAAI2lpbmYAAAAAAAEAAAAVaW5mZQIAAAAAAQAAYXYwMQAAAAMbaXBycAAAAvxpcGNvAAACrGNvbHJwcm9mAAACoGxjbXMEMAAAbW50clJHQiBYWVogB+UACAAJAAsAEAAFYWNzcE1TRlQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANZGVzYwAAASAAAABAY3BydAAAAWAAAAA2d3RwdAAAAZgAAAAUY2hhZAAAAawAAAAsclhZWgAAAdgAAAAUYlhZWgAAAewAAAAUZ1hZWgAAAgAAAAAUclRSQwAAAhQAAAAgZ1RSQwAAAhQAAAAgYlRSQwAAAhQAAAAgY2hybQAAAjQAAAAkZG1uZAAAAlgAAAAkZG1kZAAAAnwAAAAkbWx1YwAAAAAAAAABAAAADGVuVVMAAAAkAAAAHABHAEkATQBQACAAYgB1AGkAbAB0AC0AaQBuACAAcwBSAEcAQm1sdWMAAAAAAAAAAQAAAAxlblVTAAAAGgAAABwAUAB1AGIAbABpAGMAIABEAG8AbQBhAGkAbgAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEIAAAXe///zJQAAB5MAAP2Q///7of///aIAAAPcAADAblhZWiAAAAAAAABvoAAAOPUAAAOQWFlaIAAAAAAAACSfAAAPhAAAtsRYWVogAAAAAAAAYpcAALeHAAAY2XBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbY2hybQAAAAAAAwAAAACj1wAAVHwAAEzNAACZmgAAJmcAAA9cbWx1YwAAAAAAAAABAAAADGVuVVMAAAAIAAAAHABHAEkATQBQbWx1YwAAAAAAAAABAAAADGVuVVMAAAAIAAAAHABzAFIARwBCAAAADGF2MUOBDQwAAAAAFGlzcGUAAAAAAAAAEAAAABAAAAAoY2xhcAAAAAEAAAABAAAAAQAAAAH////xAAAAAv////EAAAACAAAAF2lwbWEAAAAAAAAAAQABBIGCA4QAAAArbWRhdBIACgkfzP/IIEBA0oAyFGW+OwPr0bIHHHHBATZPtaQ3RWTA").then(M=>M.blob());return createImageBitmap(s).then(()=>!0,()=>!1)})).apply(this,arguments)}function Ut(s,M){if(s==M)return!1;let B=/^(\d+)[.]?(.*)/;if(s=B.exec(s),M=B.exec(M),null==s){if(null==M)return!0}else if(null!=M&&s[1]==M[1]&&""==s[2])return!0;return!1}function jn(s){s.h="Chrome",!s.m&&s.ve&&(s.m=s.le?s.re?s.me?s.Pa?s.Je?s.Le?s.De?s.qe?s.dg?s.ke?s.Fe?s.ze?"90+":"89":"88":"87":"86":"85":"84":"83":"81":"80":"79":"78":"77")}function wn(s){return s.Bb?"SteamOS":"Linux"}function nt(s){s.h="Firefox",s.m=s.te?s.Pa?s.eg?s.bg?s.pe?"88":"89+":"87":"86":"85":"84-"}function on(s){var M,B,q,Se;s.s&&s.N?s.H="TV":s.Mb||s.fa||!s.wf?(!s.mc||s.lc)&&(s.da?s.vf?s.nc&&s.kc||(s.H="DESKTOP"):s.mc&&s.lc&&(s.H="DESKTOP"):s.nc&&s.kc||(s.H="DESKTOP")):(s.H="TV",s.j=null!==(B=null!==(M=s.j)&&void 0!==M?M:s.lg)&&void 0!==B?B:"",s.deviceName=null!==(Se=null!==(q=s.deviceName)&&void 0!==q?q:s.jg)&&void 0!==Se?Se:"UNKNOWN",s.l=7),s.H||(s.H=600<=(screen.width<screen.height?screen.width:screen.height)?"TABLET":"PHONE")}function mt(s){s.g="Windows",Un(s)||(s.h="Unknown",s.l=5,g.d("{3c72abb}","{44ce1e0}"))}function _n(s){s.j="APPLE",s.s&&s.L?(s.g="macOS",Un(s)||(s.h="Unknown",s.l=5,g.d("{3c72abb}","{b80b712}"))):s.ga?s.fa?(s.g="iPadOS",At(s)):(s.g="macOS",Un(s)||(s.h="Unknown",s.l=5,g.d("{3c72abb}","{0f3296f}")),"Safari"==s.h&&(s.m=s.ue?"16.4+":"16.3-")):s.Na?(s.g="iOS",At(s)):s.Nb?(s.g="iPadOS",At(s)):(s.aa=!0,s.l=5,s.fa?(s.g="iOS",At(s),g.d("{3c72abb}","{cf1c572}")):(s.g="macOS",s.h="Unknown",g.d("{3c72abb}","{1eb1815}")))}function wt(s){s.g="Android",s.wa?nt(s):s.xa?(s.h="Samsung",s.j="SAMSUNG"):s.va?s.h="Brave":s.ya?s.h="Yandex":s.lb?s.h="Opera":s.s?s.$a?s.h="Edge":s.ua?s.h="Opera":s.ab?s.h="Yandex":s.ta||s.Ie?(jn(s),Oi(s)):s.Z&&(s.h="Chromium",Oi(s)):s.$?s.rc?jn(s):s.h=s.fa?"Edge":"Silk":(jn(s),s.l=7),on(s)}function Un(s){var M;if(s.wa)nt(s);else if(s.Oe)s.h="Opera";else if(s.va)s.h="Brave";else if(s.ya)s.h="Yandex";else if(s.$)s.J?(s.g="Xbox",s.j="MICROSOFT",s.h="Edge",s.Da?s.M="XBOXSERIES":s.J&&(s.M="XBOXONE")):s.s?s.ca?(s.g="Xbox",s.j="MICROSOFT",s.h="Edge"):s.$a?s.h="Edge":s.ua?s.h="Opera":s.ab?s.h="Yandex":s.ta?jn(s):s.Z&&!s.Ge&&(s.h="Chromium"):s.rc?s.s&&s.Z?(s.h="Chromium",s.l=9):s.Ye?s.h="Chromium":(s.h="Chromium",s.l=7):(s.h="Edge",s.g=null!==(M=s.g)&&void 0!==M?M:"Unknown",s.l=7);else if(s.Ue||s.qc)s.h="Safari";else{if(!s.Ke)return!1;s.J&&(s.g="Xbox",s.j="MICROSOFT"),s.h="Edge_Legacy"}return!0}function Oi(s){s.ef?(s.j="AMAZON",s.Z&&(s.h="Silk")):s.Xe?s.j="SONY":s.cf?s.j="GOOGLE":s.mf?s.j="NVIDIA":s.hf?s.j="XIAOMI":s.uf&&(s.j="TVISION")}function At(s){s.v=s.fg?s.Pa?s.ge?s.je?s.cg?"17.4+":"17+":s.He?"16+":s.se?s.fe?"15.6+":"15.5+":s.he?"15.4+":s.Ne?"15.2+":s.Be?"15.1+":"15+":"14.5+":s.xe?"14.3+":"14+":s.oe?"13+":"12-";var M=s.v;const B=!s.ne&&!(M.startsWith("12")||M.startsWith("13"));M=!s.ie&&!(M.startsWith("12")||M.startsWith("13")||M.startsWith("14")||M.startsWith("15")),s.cb?s.h="Firefox":s.ee?s.h="Opera":s.va?s.h="Brave":s.ya?s.h="Yandex":s.bb?s.h="Edge":s.Va?s.h="Chrome":!s.qc||B||M?s.Qe?s.h="ReactNative":B?(s.h="Unknown",s.l=7,g.d("{3c72abb}","{5a39f60}")):(s.h="Unknown",s.l=5,g.d("{3c72abb}","{147d6b4}")):s.h="Safari"}function Hn(s){var B,M=di;null===(B=M.G)||void 0===B||Il(B,"TelemetryHandlerChanged"),M.G=s;for(const q of M.C)switch(s=q.name,B=q.data,q.type){case"ErrorEvent":ai(M,s,B);break;case"MessageEvent":rn(M,s,B);break;case"WorkerUnused":zt(M,s);break;case"WorkerTimeout":Ne(M,s);break;case"WorkerCreateFailure":ri(M,s,B);break;case"ErrorString":Xn(M,s,B);break;case"WorkerOverlongDelay":yn(M,s,B)}M.C=[]}class Zi{mb(){const M=(self.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas")).getContext("webgl"),B=M&&M.getExtension("WEBGL_debug_renderer_info");return B?{qd:M&&M.getParameter(B.UNMASKED_VENDOR_WEBGL),Qf:M&&M.getParameter(B.UNMASKED_RENDERER_WEBGL),Gf:!0}:{qd:"",Qf:"",Gf:!1}}}class Lr{mb(){const M=navigator.userAgentData;return M?M.getHighEntropyValues("platform architecture uaFullVersion platformVersion model bitness".split(" ")).then(B=>(B||(B={}),B.brands||(B.brands=M.brands),B.mobile||(B.mobile=M.mobile),B)):Promise.resolve(void 0)}}class Kr{mb(){let M={Gd:!1,Ld:"",qd:""};if(navigator.userAgent){var B=navigator.userAgent.toUpperCase();const q="BRAVIA TIZEN PHILIPSTV GOOGLETV CRKEY CHROMECAST SHIELDTV".split(" "),Se="SONY SAMSUNG PHILIPS GOOGLE GOOGLE GOOGLE NVIDIA".split(" ");if(RegExp("BRAVIA|SMARTTV|SMART-TV|PHILIPSTV|GOOGLETV|CRKEY|CHROMECAST|SHIELD Android TV","i").test(B)&&(M.Gd=!0,B=B.match(q.join("|"))))for(let be=0;be<q.length;be++)B[0]==q[be]&&(M.Ld=q[be],M.qd=Se[be],"CRKEY"==B[0]&&(M.Ld="CHROMECAST"))}return Promise.resolve(M)}}class Qt{mb(){return{platform:navigator.platform}}}const di=new class pi{constructor(){this.we=this.start=0,this.sc=this.Re=this.F=this.U=this.Qa=this.Ve=this.Ua=this.Sa=this.Ta=!1,this.fe=!0,this.pc=this.Rf=this.oc=this.$f=this.Kf=this.af=this.W=this.s=this.o=this.ra=this.Ee=this.lc=this.kc=this.nc=this.mc=this.ue=this.Pe=this.ze=this.Fe=this.ke=this.dg=this.qe=this.De=this.Le=this.Je=this.me=this.re=this.le=this.ve=this.cg=this.je=this.He=this.ie=this.ne=this.qc=this.te=this.Pa=this.eg=this.bg=this.pe=this.xe=this.se=this.he=this.Ne=this.Be=this.oe=this.ge=this.fg=this.rc=this.wf=this.N=this.vf=this.na=this.da=this.ea=this.O=this.L=this.P=this.uf=this.hf=this.mf=this.cf=this.Xe=this.ef=this.ca=this.Bb=this.Da=this.J=this.fa=this.Mb=this.Ge=this.Ie=this.Z=this.ab=this.ua=this.$a=this.ta=this.If=this.Ef=this.Bf=this.xf=this.Ka=this.Af=this.R=this.oa=this.S=this.Nb=this.ja=this.Na=this.ga=this.Qe=this.xa=this.ya=this.va=this.lb=this.ee=this.Oe=this.Me=this.cb=this.wa=this.Va=this.$=this.Ue=this.bb=this.Ke=this.Ye=!1,this.ag=this.Ce=this.pa=this.Oa=this.sa=this.ka=this.T=0,this.gpuDetail="",this.u={os:"Unknown",osRawVer:"0",osVer:"0",browser:"Unknown",browserVer:"0",browserFullVer:"0",browserBestVer:"0",forging:!0,spoofing:!0,confidence:0,totalTime:0,vendor:"",gpuDetail:""},this.C=[],this.ye=/Chrome\/(([0-9]+)\.[0-9]+\.[0-9]+\.[0-9]+)/}};function ji(){performance.mark("platformBegin");var s=di;return s.Ae||(s.Ae=function ye(s){return s.start=performance.now(),new Promise(M=>{s.Kf?M(s.u):function Re(s){return Ze.apply(this,arguments)}(s).then(()=>{s.Kf=!0,M(s.u)})})}(s)),s.Ae}var vi=class extends ae{constructor(s){super(s),this.U=[]}$(s){s={logModule:"R",timeStamp:s.timestamp,logLevel:s.level,logtag:s.tag,logstr:s.message},this.hasListener("Log")?this.emit("Log",s):this.U.push(s)}addListener(s,M){if(super.addListener(s,M),"Log"==s&&0<this.U.length){for(const B of this.U)this.emit("Log",B);this.U=[]}}};function Zt(s){switch(s){case"CONSOLE":return"Console";case"TABLET":return"Tablet";case"PHONE":return"Phone";case"TV":return"TV";case"LAPTOP":return"Laptop";case"DESKTOP":return"Desktop";default:return"undefined"}}function Zn(s){switch(s){case"Chrome":return"Chrome";case"Safari":return"Safari";case"Yandex":return"Yandex";case"Edge":return"Edge";case"Edge_Legacy":return"Edge_legacy";case"Firefox":return"Firefox";case"Samsung":return"Samsung";case"Chromium":return"Chromium";case"Opera":return"Opera";case"Brave":return"Brave";case"Silk":return"Silk";default:return"undefined"}}function Dn(s){switch(s){case"Windows":return"Windows";case"macOS":return"MacOS";case"ChromeOS":return"ChromeOS";case"Linux":return"Linux";case"iOS":return"iOS";case"iPadOS":return"iPadOS";case"Tizen":return"Tizen";case"WebOS":return"WebOS";case"Xbox":return"Xbox";case"Android":return"Android";case"SteamOS":return"SteamOS";default:return"undefined"}}class zn{constructor(M){M=this.g=M,this.j={os:Dn(M.os),browser:Zn(M.browser),deviceType:Zt(M.deviceType)},this.l={os:Ti(Dn((M=this.g).os)),browser:xn(Zn(M.browser)),deviceType:Xt(Zt(M.deviceType))}}get m(){return this.j}get o(){return this.l}get h(){return this.g}}var Ti=s=>{switch(s){case"Windows":return"WINDOWS";case"MacOS":return"MACOS";case"Linux":return"LINUX";case"ChromeOS":return"CHROMEOS";case"iOS":return"IOS";case"iPadOS":return"IPADOS";case"WebOS":return"WEBOS";case"Tizen":return"TIZEN";case"Xbox":return"XBOX";case"Android":return"ANDROID";case"SteamOS":return"STEAMOS";case"Shield":return"SHIELD";default:return"UNKNOWN"}},Xt=s=>{switch(s){case"Desktop":default:return"DESKTOP";case"Laptop":return"LAPTOP";case"TV":return"TV";case"Phone":return"PHONE";case"Tablet":return"TABLET";case"Console":return"CONSOLE"}},xn=s=>{switch(s){case"Chrome":return"CHROME";case"Safari":return"SAFARI";case"Yandex":return"YANDEX";case"Edge":return"EDGE";case"Edge_legacy":return"EDGE_LEGACY";case"Firefox":return"FIREFOX";case"Samsung":return"SAMSUNG";case"Chromium":return"CHROMIUM";case"Opera":return"OPERA";case"Brave":return"BRAVE";case"Silk":return"SILK";default:return"UNKNOWN"}};let mi;function $n(s){s.splice(0,s.length)}var Pt=class extends Array{constructor(){super(),this.push=this.h}h(...s){return s=Array.prototype.push.apply(this,s),this.g&&this.g(),s}},Ii=class{constructor(s){this.name="",this.gdprLevel="behavioral",this.parameters=s,this.ts=(new Date).toISOString()}},ar=class extends Ii{constructor(s){super(s),this.name="GS_DebugInfo",this.gdprLevel="technical"}},Jt=class extends Ii{constructor(s){super(s),this.name="GS_ExceptionInfo",this.gdprLevel="technical"}},ki=class extends Ii{constructor(s){super(s),this.name="GS_ClientMetricEvent",this.gdprLevel="functional"}},Fr=class extends Ii{constructor(s){super(s),this.name="GS_Sleep_Event",this.gdprLevel="technical"}},xo=class extends Ii{constructor(s){super(s),this.name="GS_WsCallResult",this.gdprLevel="functional"}},qn=class extends Ii{constructor(s){super(s),this.name="GS_HttpCallResult",this.gdprLevel="functional"}};function Sr(s,M){s.l.length&&!s.o&&(s.o=window.setTimeout(()=>function Ee(s){if(s.l.length&&s.m){var M=he(s,s.l);s.l=[],z(s.m,{...s.L,body:M}).then(B=>{200<=B.status&&299>=B.status||g.e("{95feb49}","{1dc64ee}",B.status)}).catch(B=>{g.e("{95feb49}","{a0b4bea}",B)}).finally(()=>{s.o=0,s.l.length&&Sr(s,2e3)})}else s.o=0}(s),M))}function ni(s,M){if(s.g)switch(M.gdprLevel){case"functional":return"Full"===s.g.deviceGdprFuncOptIn||"Temp"===s.g.deviceGdprFuncOptIn;case"technical":return"Full"===s.g.gdprTechOptIn;case"behavioral":return"Full"===s.g.gdprBehOptIn}return!1}function he(s,M){var B;(s={...s.g,events:[]}).sentTs=(new Date).toISOString();for(const q of M)M={name:q.name,ts:q.ts,parameters:q.parameters},null===(B=s.events)||void 0===B||B.push(M);return JSON.stringify(s)}var Pe=class{constructor(s){this.telemetryEventIds={},this.m="",this.l=[],this.o=0,this.L={method:"POST",headers:{"Content-Type":"application/json"},body:"",retryCount:3,timeout:2e3},this.F=s}configure(s){if(!s.option)return g.e("{95feb49}","{e936979}"),!1;if("function"==typeof s.option){g.i("{95feb49}","{01ded8b}"),this.s=s.option,this.m=void 0,this.o&&(window.clearTimeout(this.o),this.o=0);for(const M of this.l)this.s(M);this.l=[]}else{if("string"!=typeof s.option)return g.e("{95feb49}","{328a30f}"),!1;g.i("{95feb49}","{c76ea37}"),this.m=s.option,this.s=void 0,this.g&&Sr(this)}return!0}updateTelemetryCommonData(s){var M,B,q,Se,be,Je,_t,Yt,$t,Sn;const In=null===(M=this.g)||void 0===M?void 0:M.sessionId;this.g={...s,events:[]},this.g.clientId=this.F.clientId,this.g.eventSchemaVer=this.F.eventSchemaVer,this.g.deviceMake=null!==(B=this.g.deviceMake)&&void 0!==B?B:"undefined",this.g.deviceModel=null!==(q=this.g.deviceModel)&&void 0!==q?q:"undefined",this.g.integrationId=null!==(Se=this.g.integrationId)&&void 0!==Se?Se:"undefined",this.g.userId=null!==(be=this.g.userId)&&void 0!==be?be:"undefined",this.g.externalUserId=null!==(Je=this.g.externalUserId)&&void 0!==Je?Je:"undefined",this.g.idpId=null!==(_t=this.g.idpId)&&void 0!==_t?_t:"undefined",this.g.eventProtocol=null!==($t=null===(Yt=this.g)||void 0===Yt?void 0:Yt.eventProtocol)&&void 0!==$t?$t:"1.5",this.g.eventSysVer="2.0",this.g.sessionId=null!==(Sn=this.g.sessionId)&&void 0!==Sn?Sn:In,this.g.sessionId||(this.g.sessionId=oe(),g.i("{95feb49}","{7d66b6c}",this.g.sessionId)),this.L.headers["X-Event-Protocol"]=this.g.eventProtocol,this.m&&(this.l=this.l.filter(ci=>ni(this,ci)),Sr(this))}updateTelemetryEventIds(s){this.telemetryEventIds={...s}}h(s,M){s={name:s.name,parameters:s.parameters,gdprLevel:s.gdprLevel,ts:s.ts,clientConfig:this.F},this.s?this.s(s):this.m&&this.g?ni(this,s)&&(M?(M=he(this,[s]),s=navigator.sendBeacon(this.m,new Blob([M],{type:"text/plain"})),g.i("{95feb49}","{6267b70}",s,M)):(this.l.push(s),Sr(this))):this.l.push(s)}};window.RtcUtils=window.RtcUtils||{};var Qe={Ga:{},Tb:{type:"UNKNOWN",version:""},Kd:!0,Ze:!1,de:!0,ce:!1};function Be(s){var M,B,q,Se,be;if(g.i("{11b33a0}","{e65e133}",JSON.stringify(s)),function i(s){var M,B;if(s.overrideData){const q=new URLSearchParams(s.overrideData.toLowerCase());"lean"===q.get("mode")&&(S=!1),y=(S=null!==(M=(s=Se=>r(Se=q.get(Se)))("log"))&&void 0!==M?M:S)&&(null!==(B=s("console"))&&void 0!==B?B:y)}}(s),s.gxtOverrideData){const Je=JSON.parse(s.gxtOverrideData);if(Je.params)for(const _t of Je.params)"pmCommunication"===_t.name&&(Qe.Ga.pmCommunication=_t.value,Qe.Tb={type:"GXT",version:_t.version})}if(s.overrideData){const Je=new URLSearchParams(s.overrideData.toLowerCase());Qe.Kd=null!==(M=(s=_t=>r(_t=Je.get(_t)))("log"))&&void 0!==M?M:Qe.Kd,Qe.Ze=Qe.Kd&&(null!==(B=s("console"))&&void 0!==B?B:Qe.Ze),Qe.de=null!==(q=s("websocketsignaling"))&&void 0!==q?q:Qe.de,Qe.ce=null!==(Se=s("webrtcstreamer"))&&void 0!==Se?Se:Qe.ce,Qe.hdr=null!==(be=s("hdr"))&&void 0!==be?be:Qe.hdr}}var Mt=class extends Ii{constructor(s){super(s),this.name="GridServer_GameLaunch_Request",this.gdprLevel="functional"}};const Vt={clientName:"GFN_GridServer",clientId:"93289439828086895",eventSchemaVer:"2.1"};function si(s,M,B){var Se,be,Je;return{requestedZoneAddress:s,zoneName:"",networkSessionId:null!==(Se=no.telemetryEventIds.networkTestId)&&void 0!==Se?Se:"",sessionId:B??"",subSessionId:"",resumeType:M?"MANUAL":"NONE",overrideConfigType:Qe.Tb.type,overrideConfigVersion:Qe.Tb.version,result:"",codec:"UNKNOWN",ipVersion:"UNKNOWN",launchDuration:0,networkType:no.networkType,streamingProfileGuid:null!==(be=no.telemetryEventIds.streamingProfileGuid)&&void 0!==be?be:"",systemInfoGuid:null!==(Je=no.telemetryEventIds.systemInfoGuid)&&void 0!==Je?Je:"",cmsId:String(no.cmsId)}}function Rn(s){var M=no;s=new qn({callDuration:s.callDuration,verb:s.verb,sessionId:s.sessionId,subSessionId:s.subSessionId,serverId:s.serverId,url:s.url,overrideConfigType:Qe.Tb.type,overrideConfigVersion:Qe.Tb.version,requestStatusCode:s.requestStatusCode,requestId:s.requestId,networkType:M.networkType,statusCode:s.statusCode,cmsId:String(M.cmsId),moduleName:"GRID_SERVER",response:s.response}),M.h(s)}function _i(s){var B,q,M=no;s.launchDuration=Math.round(s.launchDuration),(s=new Mt(s)).parameters.sessionId||(s.parameters.sessionId=M.sessionId),s.parameters.subSessionId||(s.parameters.subSessionId=M.subSessionId),s.parameters.systemInfoGuid=null!==(B=M.telemetryEventIds.systemInfoGuid)&&void 0!==B?B:"",s.parameters.streamingProfileGuid=null!==(q=M.telemetryEventIds.streamingProfileGuid)&&void 0!==q?q:"",M.h(s)}function hr(s,M,B){var Se,be,q=no;if(50<=q.v)var Je=!1;else{var _t=null!==(Je=q.j.get(M))&&void 0!==Je?Je:0;10<=_t?Je=!1:(q.v++,q.j.set(M,_t+1),Je=!0)}Je&&(!Se&&s&&(Se=s.name+": "+s.message),s=new Jt({filename:B,lineno:0,stacktrace:null!==(be=s?.stack)&&void 0!==be?be:"",colno:0,handled:"TRUE",category:Se??"",message:M,moduleName:"GRID_SERVER",sessionId:q.sessionId,subSessionId:q.subSessionId}),q.h(s))}function Qr(s){var M=no;M.subSessionId=s,M.j.clear(),M.v=0}var no=new class Yr extends Pe{constructor(){super(Vt),this.networkType="UNKNOWN",this.subSessionId=this.sessionId=this.cmsId="",this.j=new Map,this.v=0}setNetworkType(M){this.networkType=de(M)}};function Tr(s){switch(s){case 15867905:case 15867906:case 15867907:return!0;default:return!1}}function ro(s){switch(s){case"ready_for_connection":case"streaming":case"paused":return!0;default:return!1}}function Bs(s){switch(s){case 1:return"initializing";case 2:return"ready_for_connection";case 3:return"streaming";case 4:case 5:return"paused";case 6:return"resuming";case 7:return"finished";default:return"unknown"}}function li(s){switch(s){case 3237085186:return"invalid operation";case 15859712:return"success";case 3237093379:case 3237093381:return"Invalid server response";case 3237093384:return"Exception";case 15867907:case 15867905:case 15867906:return"cancelled";case 15868417:return"no network";case 3237089282:return"network error";default:return"server error"}}function dr(s,M){var B,q;return function po(s,M){if(s["content-type"]="application/json",void 0!==M.deviceOs&&(s["nv-device-os"]=M.deviceOs),void 0!==M.deviceType&&(s["nv-device-type"]=M.deviceType),void 0!==M.deviceMake&&(s["nv-device-make"]=M.deviceMake),void 0!==M.deviceModel&&(s["nv-device-model"]=M.deviceModel),void 0!==M.clientType&&(s["nv-client-type"]=M.clientType),void 0!==M.clientAppVersion&&(s["nv-client-version"]=M.clientAppVersion),void 0!==M.clientStreamer&&(s["nv-client-streamer"]=M.clientStreamer),void 0!==M.clientId&&(s["nv-client-id"]=M.clientId),void 0!==M.deviceId&&(s["x-device-id"]=M.deviceId),void 0!==M.browserType&&(s["nv-browser-type"]=M.browserType),M.clientHeaders)for(const[B,q]of M.clientHeaders)"x-nv-client-identity"!==(M=B).toLowerCase()&&(s[M.toLowerCase()]=q)}(s.o.headers,M),s.s.set("component","gridserver-core"),s.s.set("component.version","2.0"),s.s.set("client.name","GFN-PC"),s.s.set("client.version","28.0"),s.s.set("client.os",null!==(B=M.deviceOs)&&void 0!==B?B:""),s.s.set("client.os.version",null!==(q=M.deviceOsVer)&&void 0!==q?q:""),s.serverAddress=M.serverAddress,s.clientPlatformName=M.clientPlatformName,s.deviceId=M.deviceId,(s.serverAddress.startsWith("mockpm://")||"mockpm.com"===s.serverAddress.toLocaleLowerCase())&&(s.serverAddress=s.serverAddress.replace("mockpm://",""),s.protocol="http://"),s.u||"browser"!==s.clientPlatformName||ji().then(Se=>{s.u=Se}),!0}function Tn(s){const M=h.trace.getActiveSpan();if(M)for(const[B,q]of s.s)M.setAttribute(B,q)}function tn(s,M,B,q,Se){const be=oe();return new Promise((Je,_t)=>{const Yt=!!Se;var $t=()=>{var In;const ci={code:3237085186,subSessionId:be};oi(ci.code);const Si=si(null!==(In=M.serverAddress)&&void 0!==In?In:"",Yt,Se);Si.result=I(ci.code),Si.subSessionId=be,_i(Si),Je(ci)};if(vn(s))if(s.J())g.e("{1daeef1}","{3753849}"),$t();else{no.cmsId=M.appId,Qr(be),$t=lo(s,M,Se);var Sn=new URL($t).hostname;s.g={resolve:Je,reject:_t,sessionId:Se,subSessionId:be,Uf:q,Hd:Number.MAX_VALUE,bd:!1,Sc:B,Id:si(Sn,Yt),startTime:performance.now()},_t=ts(s,M,Yt,be),or(s,Yt?1:0,$t,_t,B).then(In=>{!Yt&&15859712===In.result&&In.session&&g.i("{1daeef1}","{7c01bce}",In.session.sessionId),s.O(In)}).catch(In=>{s.N(In)})}else g.e("{1daeef1}","{3781843}"),$t()}).catch(Je=>(s.l.clear(),$n(s.h),s.g=void 0,yr(Je,"startOrResumeSession"),oi(3237093384),{code:3237093384,subSessionId:be}))}function vn(s){return-1===s.C.type||!!s.C.token}function oi(s,M){const B=h.trace.getActiveSpan();B&&(Tr(s)?(B.setAttribute("error",!1),B.setAttribute("error.description",li(s))):15859712==s?B.setAttribute("error",!1):(B.setAttribute("error",!0),B.setAttribute("error.description",M??li(s))))}function Ci(s,M){let B=s.protocol;return M&&s.v.has(M)?void 0!==(s=s.v.get(M))&&(B+=s.server,0!=s.port&&(B+=":"+s.port)):B+=s.serverAddress,B+"/v2/session/"+M}function or(s,M,B,q,Se,be){var Je;const _t=ci=>!Tr(ci)&&(15859712!==ci||3!==M);let Yt={method:(()=>{switch(M){case 0:return"POST";case 2:return"DELETE";case 1:case 4:return"PUT";default:return"GET"}})(),headers:s.o.headers,body:q,retryCount:s.o.retryCount,timeout:s.o.timeout};(2===M||4===M)&&(Yt.keepalive=!0,s.u&&"Chrome"==s.u.browser&&!ue(s.u,81)&&(Yt.keepalive=!1));const $t=performance.now();let Sn=function Vn(s,M,B){return{url:s,verb:M,statusCode:"0",requestStatusCode:"",sessionId:B??"",subSessionId:no.subSessionId,requestId:"",serverId:"",callDuration:0,response:"None"}}(B,null!==(Je=Yt.method)&&void 0!==Je?Je:"",be);Sn.statusCode="0";let In="";return z(B,Yt,s.C,Se).then(ci=>{In=ci.data;var Si=performance.now();if(Sn.statusCode=ci.status.toString(),Sn.callDuration=Math.round(Si-$t),!ci.data)throw g.e("{1daeef1}","{ea40865}"),new SyntaxError("The response from server does not contain any data");try{var er=JSON.parse(ci.data)}catch(Fo){throw Sn.response=ci.data,Fo}if(!er.requestStatus)throw g.e("{1daeef1}","{862f264}",g.sanitize(ci.data)),new SyntaxError("RequestStatus missing in response");ci=er.requestStatus.serverId.toUpperCase(),Sn.requestId=er.requestStatus.requestId,Sn.serverId=ci,Sn.requestStatusCode=er.requestStatus.statusDescription;var ur,vr,Hr,fi=3237093632;if(void 0!==(Si=er.requestStatus).statusCode){var Ri=Si.statusCode;1==Ri?fi=15859712:0<Ri&&255>Ri&&(fi=3237093632+Ri),3237093636!=fi&&3237093672!=fi||!Si.unifiedErrorCode||(fi=Si.unifiedErrorCode)}if(Si.unifiedErrorCode&&g.i("{1daeef1}","{d2c9cc8}",I(Si.unifiedErrorCode)),ci={result:fi,hd:er,serverId:ci},Si=er.requestStatus,fi=h.trace.getActiveSpan()){Ri=new Map([["host.dc",null!==(ur=Si.serverId)&&void 0!==ur?ur:""],["request.id",null!==(vr=Si.requestId)&&void 0!==vr?vr:""],["request.status",null!==(Hr=Si.statusDescription)&&void 0!==Hr?Hr:""]]);for(const[Fo,mr]of Ri)fi.setAttribute(Fo,mr)}if(5===M)(er=er.sessions)&&(ci.activeSessions=ko(s,er));else if(2!==M){var Ko;(ur=er.session)&&(ci.session=$r(s,ur),vr=h.trace.getActiveSpan(),vr?.setAttribute("session.status",null!==(Ko=ur.status)&&void 0!==Ko?Ko:""),Sn.sessionId=ci.session.sessionId),(er=er.otherUserSessions)&&(ci.activeSessions=ko(s,er),ci.activeSessions.length&&g.d("{1daeef1}","{ba4be1c}",ci.activeSessions.length))}return Sn&&_t(ci.result)&&(Rn(Sn),Sn=void 0),ci}).catch(ci=>{let Si={result:3237089282};const er=performance.now();if(ci.code){var fi=3237093384;3237089281===(ci=ci.code)?fi=15868417:3237089282===ci?fi=3237089282:3237093377===ci?fi=3237093377:3237093379===ci?fi=3237093379:3237089283===ci?fi=3237089283:15867905==ci&&(fi=15867907),Si.result=fi}else fi=!1,(ci instanceof SyntaxError||ci instanceof TypeError&&ci.message&&ci.message.includes("Cannot read property"))&&(fi=!0,g.e("{1daeef1}","{d8979bb}",ci.name,ci.message)),fi?(Si.result=3237093379,g.e("{1daeef1}","{04bcd6f}",g.sanitize(In))):(Si.result=3237093384,g.e("{1daeef1}","{94d55bb}",ci,ci.stack),hr(ci,"performSessionRequest","sessioncontrolimpl.ts"));return Sn&&_t(Si.result)&&(Sn.callDuration=Math.round(er-$t),Rn(Sn)),g.e("{1daeef1}","{9c647aa}",Yt.method,B),g.e("{1daeef1}","{200d7ba}",Si.result,li(Si.result)),Si})}function yr(s,M){g.e("{1daeef1}","{32f1296}",M,s.message),g.e("{1daeef1}","{94d55bb}",s,s.stack),hr(s,M,"sessioncontrolimpl.ts")}function $r(s,M){var B;let q={sessionId:M.sessionId,subSessionId:"",appId:0,appLaunchMode:0,state:Bs(M.status),zoneAddress:"",zoneName:"",deviceId:"",gpuType:"",monitorSettings:[],connectionInfo:[],finalizedStreamingFeatures:M.finalizedStreamingFeatures};if(q.appId=M.sessionRequestData?M.sessionRequestData.appId:0,M.connectionInfo){var Se=M.connectionInfo;if("browser"===s.clientPlatformName){let Je=!1;for(var be of Se)if(2===be.usage){Je=!0,q.connectionInfo.push(be);const _t={ip:"",port:49100,appLevelProtocol:5,protocol:1,usage:14};be=be.ip.split("."),_t.ip=be[0]+"-"+be[1]+"-"+be[2]+"-"+be[3],_t.ip+=M.sessionControlInfo.ip.substring(M.sessionControlInfo.ip.indexOf(".")),g.d("{1daeef1}","{cf7d7ea}",_t.ip),q.connectionInfo.push(_t);break}Je||(q.connectionInfo=Se)}else q.connectionInfo=Se}switch(M.monitorSettings&&(q.monitorSettings=M.monitorSettings),M.gpuType&&(q.gpuType=M.gpuType),null===(B=M.sessionRequestData)||void 0===B?void 0:B.appLaunchMode){case 3:q.appLaunchMode=2;break;case 2:q.appLaunchMode=1}return M.sessionControlInfo&&(B=M.sessionControlInfo.ip,M=M.sessionControlInfo.port,B&&M&&(s.v.has(q.sessionId)&&(Se=s.v.get(q.sessionId),Se?.server===B&&Se?.port===M||g.i("{1daeef1}","{f09f5be}",q.sessionId,Se?.server,Se?.port,B,M)),s.v.set(q.sessionId,{server:B,port:M})),q.zoneAddress=B,q.zoneName=B.split(".")[0].toUpperCase()),q}function ko(s,M){return M.map(B=>$r(s,B))}function qr(s,M,B,q,Se,be,Je){const _t=()=>{Tn(s);let In=Ci(s,M),ci={action:6,adUpdates:Array.from(s.h)};g.d("{1daeef1}","{dbca4b1}",JSON.stringify(ci)),$n(s.h),or(s,4,In,JSON.stringify(ci),B,M).then(Si=>{q(Si)}).catch(Si=>Se(Si))};for(var Yt=s.h.length-1,$t=0;1<=Yt;)3===s.h[Yt].adAction&&2===s.h[Yt-1].adAction?(s.h.splice(Yt-1,2),$t++,Yt-=2):3===s.h[Yt-1].adAction?Yt--:Yt-=2;$t&&g.d("{1daeef1}","{98a2816}",$t),$t=!1,Yt=1e3*s.m.adsWaitTimeoutS;const Sn=s.h.length;if(Sn&&(4===s.h[Sn-1].adAction&&1<s.l.size||2===s.h[Sn-1].adAction?Yt=s.m.adsThrottleIntervalMS:$t=!0),$t)T(c(),"AdUpdateRequest",_t);else{$t=new Promise(ci=>{s.h.g=ci});const In=new x(Yt,B.signal);Promise.race([In.promise,$t]).then(()=>{s.h.g=void 0,In.cancel(),s.h.length?s.h.length==Sn?T(c(),"AdUpdateRequest",_t):qr(s,M,B,q,Se,be,Je):(g.w("{1daeef1}","{5e1dfd0}"),Je())}).catch(ci=>{s.h.g=void 0,In.h?(g.i("{1daeef1}","{d7114d7}"),be()):Se(ci)})}}function lo(s,M,B){var q,Se,be;return B?s=Ci(s,B):(B=null!==(q=M.serverAddress)&&void 0!==q?q:s.serverAddress,s=s.protocol+B+"/v2/session"),(s+="?keyboardLayout="+(null!==(Se=M.keyboardLayout)&&void 0!==Se?Se:"en_US"))+"&languageCode="+(null!==(be=M.clientLocale)&&void 0!==be?be:"en_US")}function ts(s,M,B,q){var Se,be,Je,_t,Yt,$t,Sn,In,ci;let Si;switch(M.appLaunchMode){case 2:g.d("{1daeef1}","{6d5cf87}"),Si=3;break;case 1:Si=2;break;default:Si=1}let er=null!==(Je=null===(be=null===(Se=M.monitorSettings)||void 0===Se?void 0:Se[0])||void 0===be?void 0:be.sdrHdrMode)&&void 0!==Je?Je:0;if(Qe.hdr){er=1;for(const fi of M.monitorSettings)fi.sdrHdrMode=1}Se={audioMode:2,remoteControllersBitmap:null!==(_t=M.remoteControllersBitmap)&&void 0!==_t?_t:0,sdrHdrMode:er,networkTestSessionId:null,availableSupportedControllers:[],clientVersion:"28.0",deviceHashId:s.deviceId,internalTitle:null,clientPlatformName:s.clientPlatformName,metaData:[{key:"SubSessionId",value:q},{key:"wssignaling",value:Qe.de?"1":"0"}],surroundAudioInfo:0,clientTimezoneOffset:null!==(Yt=M.clientTimeZoneOffset)&&void 0!==Yt?Yt:-6e4*(new Date).getTimezoneOffset(),clientIdentification:"GFN-PC",parentSessionId:null,appId:M.appId,streamerVersion:1,clientRequestMonitorSettings:M.monitorSettings,appLaunchMode:Si,sdkVersion:"1.0",enhancedStreamMode:1,useOps:!0,clientDisplayHdrCapabilities:null,accountLinked:null!==($t=M.accountLinked)&&void 0!==$t&&$t,partnerCustomData:null!==(Sn=M.partnerCustomData)&&void 0!==Sn?Sn:"",enablePersistingInGameSettings:null!==(In=M.enablePersistingInGameSettings)&&void 0!==In&&In,secureRTSPSupported:!1,userAge:null!==(ci=M.userAge)&&void 0!==ci?ci:0,requestedStreamingFeatures:M.streamingFeatures},Qe.ce||"browser"===s.clientPlatformName?Se.metaData.push({key:"GSStreamerType",value:"WebRTC"}):Se.secureRTSPSupported=!0;for(const fi in M.metaData)Se.metaData.push({key:fi,value:M.metaData[fi]});return s=JSON.stringify(B?{action:2,data:"RESUME",sessionRequestData:Se,metaData:[]}:{sessionRequestData:Se}),g.i("{1daeef1}","{c6c3ed4}",B?"PUT":"POST",g.sanitize(s)),s}function Hs(s,M,B,q){var Se,be,Je;if(s.g)try{const _t={code:M,subSessionId:null!==(Se=s.g.subSessionId)&&void 0!==Se?Se:"",session:s.g.ug,zoneName:B,activeSessions:q},Yt=s.g.Id;Yt.result=I(M),Yt.zoneName=B??"",Yt.sessionId=null!==(be=s.g.sessionId)&&void 0!==be?be:"",Yt.launchDuration+=performance.now()-s.g.startTime,_i(s.g.Id),oi(M),g.d("{1daeef1}","{c4902fa}",I(M),null!==(Je=s.g.sessionId)&&void 0!==Je?Je:""),s.g.resolve(_t),s.g=void 0,s.l.clear(),$n(s.h)}catch(_t){s.g&&(s.g.reject(_t),s.g=void 0)}}var Ua=class{constructor(){var s,M,B,q,Se,be,Je,_t,Yt,$t,Sn,In,ci,Si,er,fi,Ri,ur,vr,Hr,Ko,Fo;let mr;this.v=new Map,this.o={...ee},this.C={type:1},this.s=new Map,this.protocol="https://",this.h=new Pt,this.l=new Map,this.clientPlatformName=this.deviceId=this.serverAddress="",mr=0+(null!==(M=null===(s=Qe.Ga.pmCommunication)||void 0===s?void 0:s.httpConnectionTimeout)&&void 0!==M?M:0),mr+=null!==(q=null===(B=Qe.Ga.pmCommunication)||void 0===B?void 0:B.httpDataReceiveTimeout)&&void 0!==q?q:0,this.o.timeout=mr?1e3*mr:13e3,this.o.retryCount=null!==(be=null===(Se=Qe.Ga.pmCommunication)||void 0===Se?void 0:Se.httpRetryCount)&&void 0!==be?be:3,this.o.hg=null!==(_t=null===(Je=Qe.Ga.pmCommunication)||void 0===Je?void 0:Je.httpBackOffDelay)&&void 0!==_t?_t:500,this.m={wg:null!==($t=null===(Yt=Qe.Ga.pmCommunication)||void 0===Yt?void 0:Yt.pollingIntervalMin)&&void 0!==$t?$t:1e3,vg:null!==(In=null===(Sn=Qe.Ga.pmCommunication)||void 0===Sn?void 0:Sn.pollingIntervalMax)&&void 0!==In?In:1e4,step:null!==(Si=null===(ci=Qe.Ga.pmCommunication)||void 0===ci?void 0:ci.pollingIntervalStep)&&void 0!==Si?Si:1e3,Jf:null!==(fi=null===(er=Qe.Ga.pmCommunication)||void 0===er?void 0:er.pollingQueueSizePerStep)&&void 0!==fi?fi:50,adsPollingIntervalMinMS:null!==(ur=null===(Ri=Qe.Ga.pmCommunication)||void 0===Ri?void 0:Ri.adsPollingIntervalMinMS)&&void 0!==ur?ur:3e3,adsThrottleIntervalMS:null!==(Hr=null===(vr=Qe.Ga.pmCommunication)||void 0===vr?void 0:vr.adsThrottleIntervalMS)&&void 0!==Hr?Hr:2e3,adsWaitTimeoutS:null!==(Fo=null===(Ko=Qe.Ga.pmCommunication)||void 0===Ko?void 0:Ko.adsWaitTimeoutS)&&void 0!==Fo?Fo:600}}setAuthInfo(s){this.C=s}setNetworkType(s){no.setNetworkType(s)}startSession(s,M,B){return T(c(),"StartSession",()=>(Tn(this),tn(this,s,M,B)))}resumeSession(s,M,B,q){return T(c(),"ResumeSession",()=>(Tn(this),tn(this,M,B,q,s)))}deleteSession(s,M){return T(c(),"DeleteSession",()=>(Tn(this),vn(this)?or(this,2,Ci(this,s),"",M,s).then(q=>(15859712==q.result?(this.v.delete(s),g.d("{1daeef1}","{6206c13}",s)):g.e("{1daeef1}","{4de47e3}",s,I(q.result)),oi(q.result),q.result)).catch(q=>(yr(q,"deleteSession"),oi(3237093384),3237093384)):(g.e("{1daeef1}","{4fed44a}"),oi(3237085186),Promise.resolve(3237085186))))}getActiveSessions(s){return T(c(),"GetSessionList",()=>(Tn(this),vn(this)?or(this,5,this.protocol+this.serverAddress+"/v2/session","",s).then(M=>(oi((M={code:M.result,activeSessions:M.activeSessions,zoneName:M.serverId}).code),15859712!==M.code?g.e("{1daeef1}","{9d2bb75}",I(M.code)):g.d("{1daeef1}","{081857f}"),M)).catch(M=>(yr(M,"getActiveSessions"),oi((M={code:3237093384}).code),M)):(g.e("{1daeef1}","{dc27839}"),oi(3237085186),Promise.resolve({code:3237085186}))))}getSessionInfo(s,M){return T(c(),"GetSession",()=>or(this,3,Ci(this,s),"",M,s).then(q=>(15859712!==(q={code:q.result,session:q.session,zoneName:q.serverId}).code?g.e("{1daeef1}","{021d0f4}",I(q.code)):g.d("{1daeef1}","{fa53c7c}"),q)).catch(q=>(yr(q,"getSessionInfo"),oi((q={code:3237093384}).code),q)))}J(){return!!this.g}updateAdState(s){if(!this.J())return g.e("{1daeef1}","{20d9281}"),3237085186;const M=this.l.get(s.adId);if(!M)return g.e("{1daeef1}","{74daa9c}",s.adId),3237093386;const B=function Os(s){switch(s){case 1:return 2;case 2:return 3;case 3:return 4;case 4:return 5;case 5:return 6;default:return 0}}(s.adAction);if(!function es(s,M){switch(M){case 2:return 1==s||0==s;case 3:case 5:return 2==s||4==s;case 4:return 3==s;case 6:return 5!=s;default:return!1}}(M.cd,B))return g.e("{1daeef1}","{09d8184}",s.adAction,s.adId,M.cd),3237093386;if(this.h.length){const q=this.h[this.h.length-1].adId;if(q!==s.adId){const Se=this.h[this.h.length-1].adAction;if(4!=Se&&5!=Se)return g.e("{1daeef1}","{c161587}",q),3237093386}}return s.clientTimestamp||(s.clientTimestamp=Math.round(Date.now()/1e3)),this.h.push(s),M.cd=B,this.l.set(s.adId,M),15859712}M(){var s,M;this.g&&or(this,3,Ci(this,null!==(s=this.g.sessionId)&&void 0!==s?s:""),"",this.g.Sc,null!==(M=this.g.sessionId)&&void 0!==M?M:"").then(q=>{this.O(q)}).catch(q=>{this.N(q)})}N(s){g.e("{1daeef1}","{e3be7ea}",s.message),hr(s,"processSessionSetupException","sessioncontrolimpl.ts"),Hs(this,3237093384)}O(s){var M,B,q;if(this.g){var Se=()=>{Hs(this,be.bd?15867906:15867905)},be=this.g;if(s.session&&(s.session.subSessionId=this.g.subSessionId,this.g.ug=s.session,this.g.sessionId=s.session.sessionId,be.bd=1==s.hd.session.seatSetupInfo.seatSetupStep),15859712===s.result&&s.session){const Je=s.session;"ready_for_connection"===Je.state||"streaming"===Je.state?("streaming"==Je.state&&function wr(){var s=no;const M=new ar({key1:"InvalidSessionStateTransition",key2:"Streaming",key3:"",key4:"",key5:"",moduleName:"GRID_SERVER",networkType:s.networkType,overrideConfigType:Qe.Tb.type,overrideConfigVersion:Qe.Tb.version,cmsId:String(s.cmsId),sessionId:s.sessionId,subSessionId:s.subSessionId});s.h(M)}(),g.i("{1daeef1}","{30d6f44}",null!==(M=this.g.sessionId)&&void 0!==M?M:""),Hs(this,15859712,s.serverId)):"initializing"==Je.state||"resuming"==Je.state?(M=function Ls(s,M,B,q){var Se,be,Je,_t,Yt,$t,Sn="Configuring",In=0;if(M.seatSetupInfo)switch(M.seatSetupInfo.seatSetupStep){case 0:Sn="Connecting";break;case 1:Sn="InQueue",In=M.seatSetupInfo.queuePosition<B?M.seatSetupInfo.queuePosition:B;break;case 5:Sn="PreviousSessionCleanup";break;default:In=0}if(B={sessionId:M.sessionId,subSessionId:q,queuePosition:In,eta:null!==(be=null===(Se=M.seatSetupInfo)||void 0===Se?void 0:Se.seatSetupEta)&&void 0!==be?be:0,progressState:Sn,isAdsRequired:M.sessionAdsRequired,ads:[]},Se=new Map(s.l),s.l.clear(),M.sessionAds)for(be=M.sessionAds.length,Sn=0;Sn<be;Sn++){if(5==(q=M.sessionAds[Sn]).adState||6==q.adState)continue;s.l.set(In=q.adId,{Xg:q.adState,cd:null!==(_t=null===(Je=Se.get(In))||void 0===Je?void 0:Je.cd)&&void 0!==_t?_t:0}),In={adId:In,adState:q.adState,adUrl:q.adUrl,adLengthInSeconds:q.adLengthInSeconds,adMediaFiles:[]};const ci=null!==($t=null===(Yt=q.adMediaFiles)||void 0===Yt?void 0:Yt.length)&&void 0!==$t?$t:0;for(let Si=0;Si<ci;Si++){const er=q.adMediaFiles[Si];In.adMediaFiles.push({mediaFileUrl:er.mediaFileUrl,encodingProfile:er.encodingProfile})}B.ads.push(In)}return B}(this,s.hd.session,this.g.Hd,this.g.subSessionId),this.g.Uf(M),be.bd&&(this.g.Hd=M.queuePosition),M.ads.length?qr(this,null!==(B=be.sessionId)&&void 0!==B?B:"",be.Sc,this.O.bind(this),this.N.bind(this),Se,this.M.bind(this)):new x(function Xr(s,M){let B=s.m.wg;return 1===M.seatSetupInfo.seatSetupStep&&0!=s.m.Jf&&(B+=Math.floor(M.seatSetupInfo.queuePosition/s.m.Jf)*s.m.step),M.sessionAdsRequired&&(B=Math.max(B,s.m.adsPollingIntervalMinMS)),Math.min(B,s.m.vg)}(this,s.hd.session),null===(q=this.g.Sc)||void 0===q?void 0:q.signal).promise.then(this.M.bind(this)).catch(Se)):(g.e("{1daeef1}","{ce47cd1}",g.sanitize(JSON.stringify(s.hd))),Hs(this,3237093378,s.serverId))}else 15867907===s.result?Se():Hs(this,s.result,s.serverId,s.activeSessions)}}},Ya={Success:15859712,InvalidOperation:3237085186,NetworkError:3237089282,GetActiveSessionServerError:3237089283,AuthTokenNotUpdated:3237093377,SessionFinishedState:3237093378,ResponseParseFailure:3237093379,InvalidServerResponse:3237093381,PutOrPostInProgress:3237093382,GridServerNotInitialized:3237093383,DOMExceptionInSessionControl:3237093384,InvalidAdStateTransition:3237093386,SessionServerErrorBegin:3237093632,RequestForbidden:3237093634,ServerInternalTimeout:3237093635,ServerInternalError:3237093636,ServerInvalidRequest:3237093637,ServerInvalidRequestVersion:3237093638,SessionListLimitExceeded:3237093639,InvalidRequestDataMalformed:3237093640,InvalidRequestDataMissing:3237093641,RequestLimitExceeded:3237093642,SessionLimitExceeded:3237093643,InvalidRequestVersionOutOfDate:3237093644,SessionEntitledTimeExceeded:3237093645,AuthFailure:3237093646,InvalidAuthenticationMalformed:3237093647,InvalidAuthenticationExpired:3237093648,InvalidAuthenticationNotFound:3237093649,EntitlementFailure:3237093650,InvalidAppIdNotAvailable:3237093651,InvalidAppIdNotFound:3237093652,InvalidSessionIdMalformed:3237093653,InvalidSessionIdNotFound:3237093654,EulaUnAccepted:3237093655,MaintenanceStatus:3237093656,ServiceUnAvailable:3237093657,SteamGuardRequired:3237093658,SteamLoginRequired:3237093659,SteamGuardInvalid:3237093660,SteamProfilePrivate:3237093661,InvalidCountryCode:3237093662,InvalidLanguageCode:3237093663,MissingCountryCode:3237093664,MissingLanguageCode:3237093665,SessionNotPaused:3237093666,EmailNotVerified:3237093667,InvalidAuthenticationUnsupportedProtocol:3237093668,InvalidAuthenticationUnknownToken:3237093669,InvalidAuthenticationCredentials:3237093670,SessionNotPlaying:3237093671,InvalidServiceResponse:3237093672,AppPatching:3237093673,GameNotFound:3237093674,NotEnoughCredits:3237093675,InvitationOnlyRegistration:3237093676,RegionNotSupportedForRegistration:3237093677,SessionTerminatedByAnotherClient:3237093678,DeviceIdAlreadyUsed:3237093679,ServiceNotExist:3237093680,SessionExpired:3237093681,SessionLimitPerDeviceReached:3237093682,ForwardingZoneOutOfCapacity:3237093683,RegionNotSupportedIndefinitely:3237093684,RegionBanned:3237093685,RegionOnHoldForFree:3237093686,RegionOnHoldForPaid:3237093687,AppMaintenanceStatus:3237093688,ResourcePoolNotConfigured:3237093689,InsufficientVmCapacity:3237093690,InsufficientRouteCapacity:3237093691,InsufficientScratchSpaceCapacity:3237093692,RequiredSeatInstanceTypeNotSupported:3237093693,ServerSessionQueueLengthExceeded:3237093694,RegionNotSupportedForStreaming:3237093695,SessionForwardRequestAllocationTimeExpired:3237093696,SessionForwardGameBinariesNotAvailable:3237093697,GameBinariesNotAvailableInRegion:3237093698,UekRetrievalFailed:3237093699,EntitlementFailureForResource:3237093700,SessionInQueueAbandoned:3237093701,MemberTerminated:3237093702,SessionRemovedFromQueueMaintenance:3237093703,ZoneMaintenanceStatus:3237093704,GuestModeCampaignDisabled:3237093705,RegionNotSupportedAnonymousAccess:3237093706,InstanceTypeNotSupportedInSingleRegion:3237093707,InvalidZoneForQueuedSession:3237093710,SessionWaitingAdsTimeExpired:3237093711,UserCancelledWatchingAds:3237093712,StreamingNotAllowedInLimitedMode:3237093713,ForwardRequestJPMFailed:3237093714,MaxSessionNumberLimitExceeded:3237093715,GuestModePartnerCapacityDisabled:3237093716,SessionRejectedNoCapacity:3237093717,SessionServerErrorEnd:3237093887,SessionSetupCancelled:15867905,SessionSetupCancelledDuringQueuing:15867906,RequestCancelled:15867907,NoInternetDuringSessionSetup:15868417},Ba=a.Og;function ys(s){var M={ip:"",port:0,protocol:""};for(const B of s.connectionInfo)if(14===B.usage){M.ip=B.ip,M.port=B.port,M.protocol=5===B.appLevelProtocol?"https":"http",M.resourcePath=B.resourcePath;break}M={signalConnectionInfo:M,mediaConnectionInfo:s.connectionInfo,streamInfo:[],clientLocale:"",...s};for(const B of s.monitorSettings)M.streamInfo.push({width:B.widthInPixels,height:B.heightInPixels,fps:B.framesPerSecond,sdrHdrMode:B.sdrHdrMode});return M}function Ga(s){let M=[];if(s)for(const B of s)M.push({sessionId:B.sessionId,appId:B.appId,state:B.state,appLaunchMode:B.appLaunchMode});return M}function ss(){return(ss=n(function*(s){g.d("{6bae601}","{1aef200}"),s.serverAddress?(yield or(s,5,s.protocol+s.serverAddress+"/v2/session","").then(M=>{let B={sessionList:Ga(M.activeSessions)};if(15859712!=M.result){let q={code:M.result,description:li(M.result)};B.error=q,g.e("{6bae601}","{9d2bb75}",I(q.code))}else g.d("{6bae601}","{081857f}");oi(M.result),s.j.emit("ActiveSessionsResult",B)}).catch(M=>{g.e("{6bae601}","{63f9b57}",M.message),g.e("{6bae601}","{94d55bb}",M,M.stack),hr(M,"getAllActiveSessions","gridserver.ts"),M={sessionList:[],error:{code:3237093384,description:li(3237093384)}},oi(3237093384),s.j.emit("ActiveSessionsResult",M)}),g.d("{6bae601}","{a9e5439}")):(s.j.emit("ActiveSessionsResult",{sessionList:[],error:{code:3237093383,description:"GridServer not initialized"}}),oi(3237093383))})).apply(this,arguments)}function Gs(s,M,B=""){g.d("{6bae601}","{1e04fe6}",B,M),s.subSessionId=M,no.sessionId=B,Qr(M);const q=s.P.get(M);void 0===q||""===q?s.P.set(M,B):g.w("{6bae601}","{7dd264b}",B)}function Ca(s){return oi(s.code,s.description),Promise.reject(s)}function ln(s,M){s.zoneAddress=M.zoneAddress||s.zoneAddress,s.zoneName=M.zoneName||s.zoneName,s.gpuType=M.gpuType||s.gpuType}var yi=class extends Ua{constructor(s,M){super(),this.subSessionId="",this.P=new Map,this.R=!1,this.L=new Map,this.S=B=>{this.j.emit("TelemetryEvent",B)},this.T=B=>{this.j.emit("SessionUpdate",B),this.j.emit("ProgressUpdate",{sessionId:B.sessionId,subSessionId:B.subSessionId,queuePosition:B.queuePosition,eta:B.eta,state:B.progressState})},this.u=s,this.j=new vi(M),g.isCallbackRegistered()||(this.R=!0,g.setLogCallback(this.j.$.bind(this.j))),no.configure({option:this.S})}initialize(s){var M;g.i("{6bae601}","{6802390}","0.0.1548"),dr(this,{deviceId:null!==(M=s.deviceHashId)&&void 0!==M?M:"",...s,clientStreamer:s.clientStreamer.toString()}),(s=no).telemetryEventIds={},s.sessionId="",s.subSessionId="",s.cmsId="",g.d("{6bae601}","{5af3344}")}uninitialize(){this.cancelSessionSetup(),this.R&&g.setLogCallback(),this.j.removeAllListeners()}addListener(s,M){this.j.addListener(s,M)}removeListener(s,M){this.j.removeListener(s,M)}updateTelemetryEventIds(s){no.updateTelemetryEventIds(s)}getAllActiveSessions(){T(c(),"GetSessionList",()=>(Tn(this),function To(s){return ss.apply(this,arguments)}(this)))}getSessionId(){var s;return null!==(s=this.P.get(this.subSessionId))&&void 0!==s?s:""}getSubSessionId(){return this.subSessionId}putOrPostSession(s,M,B){return T(c(),B?"PutSession":"PostSession",()=>(Tn(this),function va(s,M,B){var q;const Se=!!B;if(Gs(s,oe(),B),!s.serverAddress)return Ca({code:3237093383,description:"GridServer not initialized"});if(s.F)return Ca({code:3237093382,description:"Previous PutOrPost call is still in progress"});no.cmsId=M.appId,s.zoneName=void 0,s.zoneAddress=void 0,s.gpuType=void 0;const be=si(s.serverAddress,Se,B);be.networkSessionId=null!==(q=M.networkSessionId)&&void 0!==q?q:"",M=function Pa(s){var M;const B={monitorSettings:[],...s};if(0===B.monitorSettings.length)for(const q of null!==(M=s.streamParams)&&void 0!==M?M:[])B.monitorSettings.push({heightInPixels:q.height,framesPerSecond:q.fps,widthInPixels:q.width});return B}(M);let Je=lo(s,M,B),_t=ts(s,M,Se,s.subSessionId),Yt=performance.now();return new Promise(($t,Sn)=>{const In=new AbortController;s.F=In,or(s,Se?1:0,Je,_t,In,B).then(ci=>{var Si,er,fi,Ri,ur;let vr;be.launchDuration=Math.round(performance.now()-Yt),!(null===(Si=ci.session)||void 0===Si)&&Si.sessionId&&(be.sessionId=null===(er=ci.session)||void 0===er?void 0:er.sessionId,B=null===(fi=ci.session)||void 0===fi?void 0:fi.sessionId),s.zoneName=ci.serverId||s.zoneName,ci.session&&(vr=ys(ci.session),vr.subSessionId=s.subSessionId,ln(s,vr)),be.zoneName=null!==(Ri=s.zoneName)&&void 0!==Ri?Ri:"",In.signal.aborted&&!Tr(ci.result)&&(ci.result=15867905,g.d("{6bae601}","{3ec0e11}")),15859712==ci.result?(g.d("{6bae601}","{30536f4}",B),Gs(s,s.getSubSessionId(),B),"ready_for_connection"==(null===(ur=ci.session)||void 0===ur?void 0:ur.state)?(be.result=I(15859712),_i(be)):s.L.set(be.sessionId,be),oi(ci.result),$t(vr)):(15867907===ci.result&&(ci.result=15867905),ci={code:ci.result,sessionId:B,description:li(ci.result),sessionList:Ga(ci.activeSessions)},g.e("{6bae601}","{17f93f3}",I(ci.code)),be.result=I(ci.code),_i(be),oi(ci.code),Sn(ci))}).catch(ci=>{let Si={code:3237093384,sessionId:B,description:li(3237093384)};g.e("{6bae601}","{4318505}",ci.message),g.e("{6bae601}","{94d55bb}",ci,ci.stack),hr(ci,"putOrPostSession","gridserver.ts"),be.result=I(Si.code),_i(be),oi(Si.code),Sn(Si)})}).finally(()=>{s.F=void 0})}(this,s,B)))}getSession(s,M){return T(c(),"GetSession",()=>(Tn(this),function Pi(s,M,B){return s.serverAddress?B?new Promise((q,Se)=>{var be=Ci(s,M),Je=new URL(be).hostname;(be=s.L.get(M))?s.L.delete(M):(g.e("{6bae601}","{bb9b2e3}",M),be=si(Je,!1,M)),Je=new AbortController,s.H=Je,s.g={resolve:q,reject:Se,sessionId:M,subSessionId:s.subSessionId,Uf:s.T,Hd:Number.MAX_VALUE,bd:!1,Sc:Je,startTime:performance.now(),Id:be},s.M()}).then(q=>{let Se;if(q.session&&(Se=ys(q.session),ln(s,Se)),15859712===q.code&&Se)return Se;throw{code:q.code,description:li(q.code)}}).finally(()=>{s.l.clear(),$n(s.h),s.g=void 0}):(B=Ci(s,M),or(s,3,B,"",void 0,M).then(q=>{if(oi(q.result),15859712===q.result&&q.session)return ys(q.session);throw{code:q.result,description:li(q.result)}})):Ca({code:3237093383,description:"GridServer not initialized"})}(this,s,M)))}sendDeleteRequest(s){return T(c(),"DeleteSession",()=>(Tn(this),function Qi(s,M){if(!s.serverAddress)return Ca({code:3237093383,description:"Gridserver not initialized"});let B=Ci(s,M);return new Promise((q,Se)=>{g.d("{6bae601}","{bbad3ce}",M),or(s,2,B,"",void 0,M).then(be=>{if(15859712==be.result)g.d("{6bae601}","{6206c13}",M),q();else{let Je={code:be.result,description:li(be.result),sessionId:M};g.e("{6bae601}","{4de47e3}",M,I(be.result)),Se(Je)}oi(be.result)}).catch(be=>{const Je={code:3237093384,description:li(3237093384)};g.e("{6bae601}","{c4f620c}",be.message),g.e("{6bae601}","{94d55bb}",be,be.stack),hr(be,"sendDeleteRequestImpl","gridserver.ts"),Se(Je)})})}(this,s)))}cancelSessionSetup(){var s,M;g.i("{6bae601}","{c73e640}"),null===(s=this.F)||void 0===s||s.abort(),null===(M=this.H)||void 0===M||M.abort(),this.H=this.F=void 0}getZoneName(){var s;return null!==(s=this.zoneName)&&void 0!==s?s:""}getZoneAddress(){var s;return null!==(s=this.zoneAddress)&&void 0!==s?s:""}getGpuType(){var s;return null!==(s=this.gpuType)&&void 0!==s?s:""}J(){return!!this.H}},Di=class extends yi{constructor(){super()}getAllActiveSessions(){window.setTimeout(()=>{g.d("{6bae601}","{b575263}"),this.j.emit("ActiveSessionsResult",{sessionList:[]})},1)}putOrPostSession(s){var M;return g.d("{6bae601}","{71c010f}"),Gs(this,oe(),null!==(M=s.sessionId)&&void 0!==M?M:"PassThruSessionId"),new Promise(B=>{window.setTimeout(()=>{let q={sessionId:this.getSessionId(),subSessionId:this.getSubSessionId(),appId:parseInt(s.appId),state:"ready_for_connection",signalConnectionInfo:{ip:"",port:49100,protocol:"http"},mediaConnectionInfo:[],streamInfo:[],appLaunchMode:s.appLaunchMode?s.appLaunchMode:0,zoneName:this.getZoneName(),zoneAddress:this.getZoneAddress(),gpuType:this.getGpuType(),clientLocale:"",finalizedStreamingFeatures:{}};if(this.serverAddress&&(q.signalConnectionInfo.ip=this.serverAddress),s.connectionInfo){q.mediaConnectionInfo=s.connectionInfo;for(const Se of q.mediaConnectionInfo)14===Se.usage&&(q.signalConnectionInfo.ip=Se.ip,q.signalConnectionInfo.port=Se.port,q.signalConnectionInfo.protocol=5===Se.appLevelProtocol?"https":"http",q.signalConnectionInfo.resourcePath=Se.resourcePath,g.d("{6bae601}","{c6b8e0f}",Se.ip,Se.port))}if(q.signalConnectionInfo.ip||g.e("{6bae601}","{a43f57e}"),s.monitorSettings)for(const Se of s.monitorSettings)q.streamInfo.push({width:Se.widthInPixels,height:Se.heightInPixels,fps:Se.framesPerSecond,sdrHdrMode:Se.sdrHdrMode});else for(const Se of s.streamParams)q.streamInfo.push({width:Se.width,height:Se.height,fps:Se.fps});g.d("{6bae601}","{07dc276}",q.sessionId),B(q)},1)})}getSession(){return new Promise((s,M)=>{M({code:-1,description:"PassthruPollingNotSupported"})})}sendDeleteRequest(){return new Promise(s=>{s()})}updateAdState(){return-1}},zi={VIDEO:"video",AUDIO:"audio"},Ki={Unknown:0,ApproachingEntitlementTimeout:1,ApproachingIdleTimeout:2,ApproachingSessionMaxTimeLimit:3,ClearUserIdleTimeOut:4},Vi={allowUnconfined:!1,preventNavigation:!1},Mr=class{constructor(){this.g=1}};function nr(s){if(!((15868672^s)>>8))return 256;let M=32769;switch(s){case 15859712:case 15867908:case 15868418:M=0;break;case 3237093894:case 3237093899:M=32776;break;case 3237093898:M=32772;break;case 3237093900:M=32773;break;case 3237093901:M=32770;break;case 15867910:M=1;break;default:g.d("{c00be32}","{233ad08}",I(s))}return M}function Wt(s){let M=15868672;switch(s){case 256:M=15868704;break;case 257:M=15868705;break;case 258:M=15868706;break;case 259:M=15868707;break;case 260:M=15868708;break;case 261:M=15868709;break;case 262:M=15868710;break;case 263:M=15868711;break;case 264:M=15868712;break;case 265:M=15868713;break;case 266:M=15868714;break;case 267:M=15868715;break;case 268:M=15868716;break;case 269:M=15868719;break;case 270:M=15868688;break;case 512:M=15868736;break;case 513:M=15868737;break;case 514:M=15868738;break;case 515:M=15868739;break;case 516:M=15868740;break;case 517:M=15868741;break;case 518:M=15868742;break;case 519:M=15868743;break;case 520:M=15868744;break;case 521:M=15868745;break;case 33025:M=3237094145;break;case 33026:M=3237094146;break;case 33027:M=3237094147;break;case 33028:M=3237094148;break;case 33029:M=3237094149;break;case 33030:M=3237094150;break;case 33031:M=3237094151;break;case 33032:M=3237094152;break;case 33034:M=3237094153;break;case 33035:M=3237094154;break;case 33040:M=3237094155;break;case 33041:M=3237094156;break;case 33042:M=3237094157;break;case 37634:M=15868718;break;case 32768:M=3237094158;break;case 768:M=15868717;break;case 0:M=15868752;break;default:g.d("{c00be32}","{1be40ed}",I(s))}return M}function Nt(){return Mi||(Mi=new Bi),Mi}function gi(s){"white"===s.h?s.g&&(s.g.clearColor(1,0,0,1),s.g.clear(s.g.COLOR_BUFFER_BIT),s.h="red"):s.g&&(s.g.clearColor(1,1,1,1),s.g.clear(s.g.COLOR_BUFFER_BIT),s.h="white")}var Mi,qs,Ia,ea,za,dl,Co,js,Ts,ks,la,vl,Ws,Oa,Pr,Cl,Zo,Ai,lt,An,St,Ve,qe,hn,hi,sr,le,Nn,So,Mo,Ao,Wo,ta,bo,Ns,Ka,Sl,Yl,Bi=class{constructor(){this.g=null,this.h=""}initialize(s,M){this.u=M,M="ragnarok-latency-indicator";var B=document.getElementById(M);if(B&&B instanceof HTMLCanvasElement&&B.parentElement===s.parentElement)s=B;else{if(B)do{M="ragnarok-latency-indicator"+Math.round(1e4*Math.random()),B=document.getElementById(M)}while(B);(B=document.createElement("canvas")).id=M,B.style.position="fixed",D(this.u)?(B.style.bottom="env(safe-area-inset-bottom, 0)",B.style.right="max(24px, env(safe-area-inset-right, 0))"):(B.style.bottom="0",B.style.right="0"),B.style.width="40px",B.style.height="40px",B.style.zIndex="300",B.style.pointerEvents="none",s.insertAdjacentElement("afterend",B),s=B}this.j=s,this.j.style.display="block",this.g=this.j.getContext("webgl"),gi(this)}},tr={},mo="",Bo={type:"UNKNOWN",version:""},is=!1,ha=!0,Ys=!1,Po=!0,cl=!0,oa=!0,Ht=0,Tt=0,Ln=0,jt=!1,ti=!0,br=!1,wo=!0,zs=!1,sa=!1,fs=!1,zr=!1,eo=!0,Io=!1,Jr=!0,kr=!0,Sa=!0,rl=!0,as=!0,ho=0,rr=!0,ga=!0,aa={};function fc(s){if(s&&(s=Number.parseInt(s),!Number.isNaN(s)))return s}function _c(s){var M,B,q,Se,be,Je,_t,Yt,$t,Sn,In,ci,Si,er,fi,Ri,ur,vr,Hr,Ko,Fo,mr,os,Ja,Us,ua,kl,Wl,$l,_o,Nl,hc,xc,gc,ud,Hd,Iu,jd,gu,kh,Tg,lh,Ig,Zl,Md,ch,Sp,Ag,gm,dh,pm,hd,Ms,$s;if(g.i("{fbd6ce8}","{4acfb3a}",JSON.stringify(s)),s.clientConfigOverride&&(mo=s.clientConfigOverride),s.gxtOverrideData){var Wd=JSON.parse(s.gxtOverrideData);if(Wd.params)for(var nd of Wd.params)"ragnarok"===nd.name&&(tr=nd.value,Bo={type:"GXT",version:nd.version})}else s.remoteConfigData&&s.remoteConfigData.ragnarok&&(tr=JSON.parse(s.remoteConfigData.ragnarok),Bo={type:"RCONFIG",version:null!==(Wd=s.remoteConfigData.version)&&void 0!==Wd?Wd:""});if(s.isInternalUser&&(qs=s.isInternalUser),s.overrideData){nd=new URLSearchParams(s.overrideData);let ec=new URLSearchParams;for(const[$s,mm]of nd.entries())ec.append($s.toLowerCase(),mm);if("lean"===(null===(M=ec.get("mode"))||void 0===M?void 0:M.toLowerCase())?(is=!0,Ia=oa=cl=Po=ha=!1,qs=ea=!0):"dev"===(null===(B=ec.get("mode"))||void 0===B?void 0:B.toLowerCase())&&(qs=ea=!0),M=$s=>{e:{if($s=ec.get($s))switch($s.toLowerCase()){case"enable":case"on":case"1":case"true":$s=!0;break e;case"disable":case"off":case"0":case"false":$s=!1;break e}$s=void 0}return $s},Wd=$s=>fc($s=ec.get($s)),B=$s=>(($s=ec.get($s))&&($s=Number.parseFloat($s),!Number.isNaN($s))||($s=void 0),$s),nd=($s,mm)=>null===($s=ec.get($s))?mm:$s||void 0,Ys=(ha=null!==(q=M("log"))&&void 0!==q?q:ha)&&(null!==(Se=M("console"))&&void 0!==Se?Se:Ys),Po=null!==(be=M("gamepad"))&&void 0!==be?be:Po,cl=null!==(Je=M("webrtcstats"))&&void 0!==Je?Je:cl,oa=null!==(_t=M("statsupload"))&&void 0!==_t?_t:oa,Ia=null!==(Yt=M("mic"))&&void 0!==Yt?Yt:Ia,za=null!==($t=M("mousefilter"))&&void 0!==$t?$t:za,dl=null!==(Sn=M("unadjustedmovement"))&&void 0!==Sn?Sn:dl,0<(Ht=null!==(In=Wd("bitrate"))&&void 0!==In?In:Ht)&&100>=Ht&&(Ht*=1e3),zr=null!==(ci=M("gamepadtest"))&&void 0!==ci?ci:zr,(q=ec.get("resolution"))&&(2==(be=q.toLowerCase().split("x")).length?(Se=parseInt(be[0]),be=parseInt(be[1]),Se&&be?(Tt=Se,Ln=be):g.e("{fbd6ce8}","{c87835d}",q)):g.e("{fbd6ce8}","{c87835d}",q)),ho=null!==(Si=Wd("fps"))&&void 0!==Si?Si:ho,jt=null!==(er=M("gamepadraf"))&&void 0!==er?er:jt,Co=null!==(fi=Wd("gamepadpoll"))&&void 0!==fi?fi:Co,ti=null!==(Ri=M("advancedgestures"))&&void 0!==Ri?Ri:ti,br=null!==(ur=M("forcetouchdevice"))&&void 0!==ur?ur:br,void 0!==(Si=M("touch"))&&(js=Si?2:0,br=Si),zs=null!==(vr=M("storetouch"))&&void 0!==vr?vr:zs,sa=null!==(Hr=M("storetouchgesture"))&&void 0!==Hr?Hr:sa,wo=null!==(Ko=M("touchwarp"))&&void 0!==Ko?Ko:wo,fs=null!==(Fo=M("latency"))&&void 0!==Fo?Fo:fs,Ts=nd("deviceos",Ts),ks=nd("devicetype",ks),la=nd("clientstreamer",la),vl=nd("clienttype",vl),Ws=nd("clientplatformname",Ws),Oa=nd("clientid",Oa),null!==(vr=ec.get("applaunchmode"))&&(js=fc(vr)),eo=null!==(mr=M("rsdmm"))&&void 0!==mr?mr:eo,Io=null!==(os=M("rsdmmtoggle"))&&void 0!==os?os:Io,null===(Ja=M("ioswars"))||void 0===Ja||Ja||(as=rl=Jr=Sa=kr=!1),kr=null!==(Us=M("audioreset"))&&void 0!==Us?Us:kr,Jr=null!==(ua=M("sourcereset"))&&void 0!==ua?ua:Jr,Sa=null!==(kl=M("autoplaychange"))&&void 0!==kl?kl:Sa,Pr=null!==(Wl=B("bitsperpixel"))&&void 0!==Wl?Wl:Pr,Cl=null!==($l=B("bitsperpixel1440p"))&&void 0!==$l?$l:Cl,Zo=null!==(_o=M("1440p"))&&void 0!==_o?_o:Zo,ea=null!==(Nl=M("stutter"))&&void 0!==Nl?Nl:ea,ec.has("meta")){Ai={};for(const $s of ec.getAll("meta"))2===(mr=$s.split("~")).length&&(Ai[mr[0]]=mr[1])}lt=null!==(hc=M("haptics"))&&void 0!==hc?hc:lt,An=null!==(xc=M("av1"))&&void 0!==xc?xc:An,St=null!==(gc=$s=($s=ec.get($s="codeclist"))?$s.split(","):void 0)&&void 0!==gc?gc:St,qs=null!==(ud=M("internaluser"))&&void 0!==ud?ud:qs,Ve=null!==(Hd=M("hdr"))&&void 0!==Hd?Hd:Ve,rr=null!==(Iu=M("hotkeys"))&&void 0!==Iu?Iu:rr,qe=null!==(jd=M("forcehotkeys"))&&void 0!==jd?jd:qe,hn=null!==(gu=M("synthesizegamepadhid"))&&void 0!==gu?gu:hn,hi=null!==(kh=M("synthesizedds4disabled"))&&void 0!==kh?kh:hi,sr=null!==(Tg=M("synthesizedds5disabled"))&&void 0!==Tg?Tg:sr,le=null!==(lh=M("synthesizedds4fromds5disabled"))&&void 0!==lh?lh:le,Nn=null!==(Ig=M("synthesizedds5fromds4disabled"))&&void 0!==Ig?Ig:Nn,So=null!==(Zl=M("synthesizedds4fromgenericenabled"))&&void 0!==Zl?Zl:So,Mo=null!==(Md=M("synthesizedds5fromgenericenabled"))&&void 0!==Md?Md:Mo,Ao=null!==(ch=M("synthesizedds4allgamesenabled"))&&void 0!==ch?ch:Ao,Wo=null!==(Sp=M("synthesizedds5allgamesenabled"))&&void 0!==Sp?Sp:Wo,ta=null!==(Ag=M("forceserverds4"))&&void 0!==Ag?Ag:ta,bo=null!==(gm=M("forceserverds5"))&&void 0!==gm?gm:bo,Ns=null!==(dh=ec.get("cursor"))&&void 0!==dh?dh:Ns,Ka=null!==(pm=M("pointerlockescape"))&&void 0!==pm?pm:Ka,ga=null!==(hd=M("computepressure"))&&void 0!==hd?hd:ga,Sl=null!==(Ms=M("disableworkerws"))&&void 0!==Ms?Ms:Sl}Be(s),Yl&&Ml()}function Ml(){var s=tr.avp;s&&(tr={...tr,...s}),(s=Qe.Ga.pmCommunication)&&(s=s.avp)&&(Qe.Ga.pmCommunication={...Qe.Ga.pmCommunication,...s})}function Ul(s,M){var B,q,Se,be;s.G.za(void 0,null!==(B=M?.message)&&void 0!==B?B:"",null!==(q=M?.filename)&&void 0!==q?q:"",null!==(Se=M?.lineno)&&void 0!==Se?Se:0,null!==(be=M?.colno)&&void 0!==be?be:0,!0,"WorkerError")}function tc(s){s.perf.RAFTS=0,s.perf.DCSend=0,s.perf.GetStats=0,s.perf.FrameInfo=0}function nc(){var s=He;s.h=!1,s.g&&(g.d("{1f5ec29}","{76b05dd}"),s.g.postMessage({stopStats:!0}))}function na(s){return performance.now()-s.j}function ul(s,M){var q,B=He;B.h&&(M={webrtcStats:{type:M,stats:s},ackid:null===(q=B.s)||void 0===q?void 0:q.g++},B.g&&B.g.postMessage(M,s))}var He=new class{constructor(){this.h=!1,this.g=null,this.j=0,this.o=[],this.m=[],this.v=!1,this.perf={RAFTS:0,DCSend:0,GetStats:0,FrameInfo:0},g.i("{1f5ec29}","{139da36}");try{const s=URL.createObjectURL(new Blob(['\nvar p={size:70,version:1,name:"DEPR"},r={size:80,version:3,name:"RTPV"},t={size:48,version:1,name:"RTPA"},aa={size:88,version:1,name:"TRAA"},ba={size:44,version:1,name:"TRAV"},ca={size:12,version:1,name:"VFMD"},da={size:20,version:1,name:"PFDA"},ea={size:0,version:1,name:""};function u(a,b=!1){const d=a.m+1;try{let f;a.sessionId&&(f="x-nv-sessionid."+a.sessionId);let l=a.url;b&&(l+="&reconnect=1");let e=new WebSocket(l,f);e.onopen=()=>{var c;a.h("{48fa30b}"+d);if(e===a.g){null===(c=a.j)||void 0===c?void 0:c.F();for(const g of a.l)g.stats?e.send(g.stats):e.send(JSON.stringify(g));for(const g of a.s)w(a,g);a.s=[]}};e.onclose=c=>{var g;a.h("{6406bff}"+d);e===a.g&&(null===(g=a.j)||void 0===g?void 0:g.D({error:a.u,code:c.code,reason:c.reason,wasClean:c.wasClean}),x(a),a.u=\n!1)};e.onerror=()=>{a.h("{7605058}"+d);e===a.g&&(a.u=!0)};e.onmessage=c=>{if(a.j)try{let h=JSON.parse(c.data);a.o||a.h("{523f5b9}");y(a);if(!h.hb){if(void 0!==h.ack){var g=h.ack;for(let m=a.l.length-1;0<=m;m--)a.l[m].ackid<=g&&a.l.splice(m,1)}if(void 0!==h.ackid){if(a.maxReceivedAckId<h.ackid&&(a.j.v(h),a.maxReceivedAckId=h.ackid),a.g){let m=JSON.stringify({ack:a.maxReceivedAckId});a.h("{903be10}"+m);a.g.send(m)}}else void 0===h.ack&&a.j.v(h)}}catch(h){a.C("Error in local websocket message handling: "+\nh+\' "\'+c.data+\'"\')}};a.g=e}catch(f){a.g=void 0,a.C("WebSocket creation exception: "+f+" for socket "+a.m)}a.m=d}function z(a){0!==a.o&&(self.clearTimeout(a.o),a.o=0)}function x(a){a.g&&(a.g.onclose=null,a.g.onerror=null,a.g.onmessage=null,a.g.onopen=null,a.g=void 0)}function y(a){z(a);a.o=self.setTimeout(()=>{var b;a.h("{6c3505a}"+(null===(b=a.g)||void 0===b?void 0:b.readyState)+"{754f60b}"+a.m);a.g||u(a,!0);y(a)},3E3)}\nfunction w(a,b){void 0!==b.ackid&&void 0!==b.ackid&&a.l.push(b);a.g&&(b.stats?a.g.send(b.stats):a.g.send(JSON.stringify(b)))}\nvar fa=class{constructor(){var a=A,b=B;this.sessionId=C;this.u=!1;this.l=[];this.s=[];this.maxReceivedAckId=this.o=0;this.url="";this.m=0;this.h=a;this.C=b}initialize(a,b,d,f=!1){this.url=a;this.maxReceivedAckId=b;this.j=d;u(this,f);this.h("{fcf6f89}"+this.m)}uninitialize(a){var b;this.maxReceivedAckId=0;this.l=[];this.s=[];this.j=void 0;z(this);null===(b=this.g)||void 0===b?void 0:b.close(a);x(this);this.h("{986b258}"+a+"{754f60b}"+this.m)}send(a){this.j&&(this.g||u(this,!0),this.g&&this.g.readyState===\nWebSocket.OPEN?w(this,a):this.s.push(a))}};const E=self;let F=[],I=[];function J(a){a.h&&(a.j("{890d3ae}"+a.h),a.h=0);a.g.clear()}function ha(a){var b=K;let d=b.g.get(a.type);d||(d=[],b.g.set(a.type,d));for(const f of a.stats)d.push(f)}function ia(a){switch(a){case 0:return p;case 1:return r;case 2:return t;case 3:return ba;case 4:return aa;case 5:return ca;case 6:return da;default:return ea}}\nlet K=new class{constructor(a){this.j=a;this.g=new Map;this.h=0;J(this)}size(){let a=0;for(let [,b]of this.g){let d=b;for(let f of d)a+=f.byteLength}return a+=9*this.g.size}write(a,b){var d=b;for(let [g,h]of this.g){b=g;var f=h,l=d,e=d;d=f.length;var c=ia(b);let m=c.name,q=new DataView(a.buffer);for(let k=0;4>k;k++)q.setUint8(e+k,m.charCodeAt(k));q.setUint8(e+4,c.version);q.setUint16(e+5,d,!0);q.setUint16(e+7,c.size,!0);l=d=l+9;e=a;c=0;for(let k of f)f=new Uint8Array(k),e.set(f,d+c),c+=k.byteLength;\nd=l+c;1===b&&this.h++}return d}}(A),C="",L="",M=null,N=void 0,O=0,P=[],Q=[],R=[],S=[],T=[],U=0;function A(a){E.postMessage({log:a})}function B(a){E.postMessage({exception:a})}function V(){F=[];I=[];J(K);P=[];Q=[];R=[];S=[];T=[]}function W(a,b,d,f,l,e){for(let c=0;4>c;c++)a.setUint8(b+c,d.charCodeAt(c));a.setUint8(b+4,f);a.setUint16(b+5,l,!0);a.setUint16(b+7,e,!0)}function X(a){return 0>a?Math.max(a,-2147483648):Math.min(a,4294967295)}\nfunction Y(){if((F.length||I.length||K.size())&&M)try{M.ackid=U;var a=JSON.stringify(M),b=a.length,d=b+2,f=new ArrayBuffer(d);const D=new DataView(f);D.setUint16(0,b);for(b=2;b<d;++b)D.setUint8(b,a.charCodeAt(b-2));var l=new Uint8Array(f),e=13*F.length,c=72*I.length,g=12*P.length,h=10*Q.length,m=12*R.length,q=16*S.length;const G=8*T.length;let v=9+l.length;e&&(v+=9+e);c&&(v+=9+c);g&&(v+=9+g);h&&(v+=9+h);m&&(v+=9+m);q&&(v+=9+q);G&&(v+=9+G);v+=K.size();const H=new ArrayBuffer(v);var k=new DataView(H);\na=0;(new Uint8Array(H)).set(l);a+=l.length;W(k,a,"BPRF",1,0,0);a+=9;if(e){W(k,a,"PERF",2,F.length,13);a+=9;l=k;d=a;for(f=0;f<F.length;f++)l.setFloat64(d,F[f].RAFTS,!0),l.setUint16(d+8,Math.min(1E3*F[f].DCSend,65535),!0),l.setUint16(d+10,Math.min(1E3*F[f].GetStats,65535),!0),l.setUint8(d+12,F[f].FrameInfo),d+=13;a+=e}if(c){W(k,a,"EVNT",1,I.length,72);a+=9;e=k;l=a;for(d=0;d<I.length;d++){e.setFloat64(l,I[d].TS,!0);l+=8;var n=I[d].eventtype;for(f=0;f<n.length&&63>f;f++)e.setUint8(l+f,n.charCodeAt(f));\ne.setUint8(l+f,0);l+=64}a+=c}if(g){W(k,a,"SQEV",1,P.length,12);a+=9;c=k;n=a;for(e=0;e<P.length;e++)c.setUint8(n,P[e].qualityScore),c.setUint8(n+1,P[e].bandwidthScore),c.setUint8(n+2,P[e].latencyScore),c.setUint8(n+3,P[e].networkLossScore),c.setFloat64(n+4,P[e].timestamp,!0),n+=12;a+=g}if(h){W(k,a,"MTBD",1,Q.length,10);a+=9;g=k;c=a;for(n=0;n<Q.length;n++)g.setFloat64(c,Q[n].timestamp,!0),g.setUint16(c+8,Math.min(Q[n].duration,65535),!0),c+=10;a+=h}if(m){W(k,a,"INPT",1,R.length,12);a+=9;h=k;g=a;for(c=\n0;c<R.length;c++)h.setFloat64(g,R[c].timestamp,!0),h.setUint16(g+8,Math.min(R[c].bufferedAmount,65535),!0),h.setUint16(g+10,Math.min(R[c].maxSchedulingDelay,65535),!0),g+=12;a+=m}if(q){W(k,a,"GRBG",1,S.length,16);a+=9;m=k;h=a;for(g=0;g<S.length;g++)m.setFloat64(h,S[g].timestamp,!0),m.setInt32(h+8,X(S[g].deltaUsedHeapSize),!0),m.setInt32(h+12,X(S[g].deltaTotalHeapSize),!0),h+=16;a+=q}if(G){W(k,a,"MKPT",1,T.length,8);a+=9;q=k;k=a;for(m=0;m<T.length;m++)q.setFloat64(k,T[m],!0),k+=8;a+=G}let ja=new Uint8Array(H);\nK.write(ja,a);null===N||void 0===N?void 0:N.send({stats:H,ackid:U})}catch(D){B("Exception in perf/stats upload. Error : "+D.message+" stack: "+D.stack)}V()}function ka(a){E.postMessage({wsMessage:a})}function la(a){E.postMessage({wsClose:a})}function ma(){E.postMessage({wsOpen:!0})}function Z(){E.postMessage({wsOpening:!0})}function na(a,b){N=new fa;N.initialize(L,a,{v:ka,F:ma,D:la,G:Z},b);Z()}\nE.onmessage=function(a){try{const b=a.data;b.initMessage?(C=b.initMessage.sessionId,E.postMessage({initialized:!0})):b.perf?F.push(b.perf):b.clientEvent?I.push(b.clientEvent):b.startStats?(M=b.startStats.statsHeader,O=self.setInterval(()=>Y(),5E3),E.postMessage({statsStarted:!0}),A("{5209d98}")):b.stopStats?(self.clearInterval(O),Y(),V(),A("{b58b6ad}")):b.webrtcStats?(b.ackid&&(U=b.ackid),b.webrtcStats.stats&&ha(b.webrtcStats)):b.sq?P.push(b.sq):b.startWebSocket?(L=b.startWebSocket.signInURL,na(b.startWebSocket.maxReceivedAckId,\nb.startWebSocket.reconnect)):b.stopWebSocket?(null===N||void 0===N?void 0:N.uninitialize(),N=void 0):b.send?null===N||void 0===N?void 0:N.send(b.send):b.duration?Q.push(b.duration):b.inputChannelStats?R.push(b.inputChannelStats):b.garbageCollectionStats?S.push(b.garbageCollectionStats):b.qosMarker&&T.push(b.qosMarker)}catch(b){B("Worker onmessage exception: "+b)}};\n\n\n'],{type:"text/javascript"}));this.g=new Worker(s),URL.revokeObjectURL(s),this.g.onmessage=this.F.bind(this),this.g.onerror=this.C.bind(this),g.i("{1f5ec29}","{62dee75}")}catch(s){g.e("{1f5ec29}","{50fa2e5}",s.message),this.m.push({name:"RagnarokWorkerProblem",error:JSON.stringify(s)})}}startWebSocket(s,M,B,q){this.l=B,s={startWebSocket:{signInURL:s,maxReceivedAckId:M,reconnect:q}},this.g&&(this.g.postMessage(s),g.d("{1f5ec29}","{b3f6faa}"))}stopWebSocket(){this.g&&(g.d("{1f5ec29}","{7ac815d}"),this.g.postMessage({stopWebSocket:!0})),this.l=void 0}initialize(s,M,B){if(this.G=M,this.s=B,0<this.m.length){for(const q of this.m)Il(M,q.name,q.error);this.m=[]}if(0<this.o.length){for(const q of this.o)Ul(this,q);this.o=[]}this.h=!1,tc(this),0===this.j&&(this.j=performance.now()),this.g?(this.g.postMessage({initMessage:{sessionId:s}}),g.d("{1f5ec29}","{404f264}")):g.e("{1f5ec29}","{c62bf29}")}F(s){(s=s.data).initialized?(g.i("{1f5ec29}","{6ccab8d}"),this.v=!0):s.statsStarted?(this.h=!0,g.d("{1f5ec29}","{e98d45f}")):s.log?g.i("{cbf9f59}","{0b0c6f9}",s.log):s.exception?g.i("{cbf9f59}","{0b0c6f9}",s.exception):s.wsClose?this.l?_g(this.l,s.wsClose):g.e("{1f5ec29}","{900a6f2}"):s.wsMessage?this.l?au(this.l,s.wsMessage):g.e("{1f5ec29}","{900a6f2}"):s.wsOpening?this.l?g.i("{93c7910}","{6423101}"):g.e("{1f5ec29}","{900a6f2}"):s.wsOpen&&(this.l?jm(this.l):g.e("{1f5ec29}","{900a6f2}"))}C(s){this.G?Ul(this,s):this.o.push(s)}};function Lt(){const s=gs();if(s){const M=s.destination.maxChannelCount;return s.close(),g.i("{d988e7f}","{fa78e0a}",M),M}return g.w("{d988e7f}","{d018fac}"),2}function ft(s){return s[0]<s[1]?[s[1],s[0]]:s}function Gn(s,M,B){var q=screen.width,Se=screen.height,be=!!(1&B);const Je=!!(2&B);var _t=!!(4&B);if((_t||8&B)&&(q=3840,Se=2160),M&&0<M.length){[q,Se]=ft([q,Se]),Je&&1366<=q&&0===s&&(q=1600,Se=1200);const Yt=q/Se,$t=q*Se;return(q=M.filter(Sn=>120>Sn.frameRate)).length&&(M=q),M.sort((Sn,In)=>{var ci=Sn.resolution,Si=In.resolution,er=Math.abs(ci.width/ci.height-Yt)-Math.abs(Si.width/Si.height-Yt);if(.05<Math.abs(er))return er;er=0===s?-1:1;const fi=(1===s?1:-1)*(Sn.frameRate-In.frameRate),Ri=(ci=ci.width*ci.height)-(Si=Si.width*Si.height);return ci<=$t?Si<=$t?Sn.frameRate!==In.frameRate?fi:er*Ri:-1:Si<=$t?1:Ri||fi}),M[0]}if(M={resolution:{width:1280,height:720},frameRate:60},be){let[Yt,$t]=ft([q,Se]);2<Yt/$t&&(M.resolution={width:1376,height:640})}else Je?0!=s?M.resolution={width:1024,height:768}:([q]=ft([q,Se]),M.resolution=1024>=q?{width:1024,height:768}:1366>q?{width:1112,height:834}:{width:1600,height:1200}):(be=[[1920,1200],[1920,1080],[1280,1024],[1600,1200]],_t&&be.unshift([3840,2160]),_t=[[1280,800],[1280,720],[1280,1024],[1024,768]],q=function Kn(s,M){if(0==M.length)return s;class B{constructor(be,Je){this.w=be,this.g=Je,this.a=be/Je}j(be){return.05>Math.abs(be.a-this.a)?be:be.a>this.a?new B(Math.floor(this.a/be.a*be.w),be.g):new B(be.w,Math.floor(be.a/this.a*be.g))}h(){return[this.w,this.g]}}M=M.map(Se=>new B(Se[0],Se[1]));const q=new B(s[0],s[1]);s=M[0];for(let Se=1;Se<M.length;Se++){let be=M[Se];Math.abs(q.a-be.a)<Math.abs(q.a-s.a)&&(s=be)}return(M=s.j(q)).w>s.w?s.h():M.h()}(q=[q,Se],0==s?be:_t),M.resolution={width:q[0],height:q[1]});return M}function bi(s){var M;let B=0;return k(s)&&(B|=1),(s?"iPadOS"===s.os:/^(?!.*chrome).*safari/i.test(navigator.userAgent)&&!k()&&X())&&(B|=2),!(null===(M=window.webapis)||void 0===M)&&M.productinfo&&window.webapis.productinfo.isUdPanelSupported()&&(B|=4),window.lge_webrtc_hevc_support&&(B|=8),B}function Ur(){return getComputedStyle(document.documentElement)?(getComputedStyle(document.documentElement).getPropertyValue("--sat")||(document.documentElement.style.setProperty("--sat","env(safe-area-inset-top)"),document.documentElement.style.setProperty("--sar","env(safe-area-inset-right)"),document.documentElement.style.setProperty("--sab","env(safe-area-inset-bottom)"),document.documentElement.style.setProperty("--sal","env(safe-area-inset-left)")),{top:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sat")),left:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sal")),bottom:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sab")),right:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sar"))}):{top:0,left:0,bottom:0,right:0}}function ns(s,M){return 0>s?0:s>M?M:s}function No(s){var M=Ur();M.top=Math.max(M.top,21),M.bottom=ns(M.bottom,10);let B={x:s.clientX,y:s.clientY},q=.5;return 0<M.top&&s.clientY-s.radiusY<M.top?q-=.5*(M=ns(M=(M.top-(s.clientY-Math.min(s.radiusY,21)))/s.radiusY,1))*M:0<M.bottom&&s.clientY+s.radiusY>window.innerHeight-M.bottom&&(q+=.5*(M=ns(M=(s.clientY+Math.min(s.radiusY,10)-(window.innerHeight-M.bottom))/s.radiusY,1))*M),B.y=ns(B.y-s.radiusY+2*q*s.radiusY,window.innerHeight),B}function ds(s){let M=s;if(tr.offlineErrorsStreaming&&tr.offlineErrorsStreaming.includes(I(s)))M=15868418;else if(tr.offlineErrorsSessionSetup&&tr.offlineErrorsSessionSetup.includes(I(s)))M=15868417;else switch(s){case 3237093906:case 3237093899:M=15868418;break;case 3237089282:M=15868417}return M!==s&&g.i("{d988e7f}","{b84d4c8}",I(s),I(M)),M}function Yo(s,M){let B=s;if(tr.sleepErrorsStreaming&&tr.sleepErrorsStreaming.includes(I(s)))B=15867908;else if(tr.sleepErrorsSessionSetup&&tr.sleepErrorsSessionSetup.includes(I(s)))B=15867909;else switch(s){case 3237093906:D(M)&&(B=15867908);break;case 3237094159:B=15867908;break;case 3237093654:B=15867909}return B!==s&&g.i("{d988e7f}","{49e2182}",I(s),I(B)),B}function Go(s,M,B,q,Se=1){const be=4294967295&Math.floor(s*Se);s=Math.floor(s/4294967296*Se),q?(M.setUint32(B,be,!0),M.setUint32(B+4,s,!0)):(M.setUint32(B,s,!1),M.setUint32(B+4,be,!1))}function Ds(s,M){let B=!1;switch(s){case 3237093896:case 3237093897:case 3237093898:case 3237093906:case 3237093899:case 3237093901:case 15868418:case 3237094159:B=!0;break;case 15867908:D(M)&&(B=!0)}return B}function Qo(s,M){return 2764800<=(s*=M)&&4953600>s}function Vo(s){switch(s){case"H264":return"H264";case"H265":return"HEVC";case"AV1":return"AV1";default:return"UNKNOWN"}}function Ir(s){var M;return s=G(s)||Y(s)||K(s)||"Linux"===s.os||D(s),null!==(M=tr.enableCpm)&&void 0!==M?M:s}function fo(s){return void 0!==s?s?"TRUE":"FALSE":"UNDEFINED"}function Es(s){return s?"MANUAL":"NONE"}let Vs=[];function ia(s){return`${s.width.toFixed()}x${s.height.toFixed()}`}function hl(s,M,B){try{const q=document.createElement("a");q.style.display="none";const Se=URL.createObjectURL(new Blob(s,{type:B}));return q.href=Se,q.download=M,document.body.appendChild(q),q.click(),URL.revokeObjectURL(Se),document.body.removeChild(q),!0}catch(q){return g.e("{d988e7f}","{8d57ba9}",q),!1}}function gs(s){const M=window.AudioContext||window.webkitAudioContext||void 0;if(M)return s?new M({sampleRate:s}):new M;g.w("{d988e7f}","{b74c037}")}function kt(){var s;return!(null===(s=globalThis.PointerEvent)||void 0===s||!s.prototype)}function Ot(s,M,B){return pt.apply(this,arguments)}function pt(){return(pt=n(function*(s,M,B){var q;const Se=new RTCPeerConnection;try{yield Se.setRemoteDescription({type:"offer",sdp:M}).catch(Yt=>{throw Error("Audio munging setRemoteDescription failed. "+Yt)});const be=yield Se.createAnswer();yield Se.setLocalDescription({type:"answer",sdp:null===(q=be.sdp)||void 0===q?void 0:q.replace("opus/48000/2","multiopus/48000/"+s).replace("useinbandfec=1",B)}).catch(Yt=>{throw Error("Audio munging setLocalDescription failed. "+Yt)});const Je=Se.getReceivers()[0];if(!Je.getParameters)return g.w("{d988e7f}","{4be0bf6}"),2;const{codecs:_t}=Je.getParameters();if(1!==_t.length||"audio/multiopus"!==_t[0].mimeType||_t[0].channels!==s)throw Error("Audio munging failed "+_t[0]);return g.i("{d988e7f}","{8919816}",s,_t[0]),s}catch(be){return g.e("{d988e7f}","{4984c00}",s,be),2}finally{Se.close()}})).apply(this,arguments)}function Pn(){return(Pn=n(function*(){let s=2;var M="minptime=10;useinbandfec=1;channel_mapping=0,4,1,2,3,5;num_streams=4;coupled_streams=2";const B=Ot(6,"v=0\no=- 0 3 IN IP4 127.0.0.1\ns=-\nt=0 0\na=fingerprint:sha-256 A7:24:72:CA:6E:02:55:39:BA:66:DF:6E:CC:4C:D8:B0:1A:BF:1A:56:65:7D:F4:03:AD:7E:77:43:2A:29:EC:93\nm=audio 9 UDP/TLS/RTP/SAVPF 100 101\nc=IN IP4 0.0.0.0\na=rtcp-mux\na=sendonly\na=mid:audio\na=setup:actpass\na=ice-ufrag:ETEn\na=ice-pwd:OtSK0WpNtpUjkY4+86js7Z/l\r\na=rtpmap:100 multiopus/48000/6\r\na=fmtp:100 "+M+"\r\na=rtpmap:101 opus/48000/2\na=fmtp:101 minptime=10;useinbandfec=1\n",M);M=Ot(8,"v=0\no=- 0 3 IN IP4 127.0.0.1\ns=-\nt=0 0\na=fingerprint:sha-256 A7:24:72:CA:6E:02:55:39:BA:66:DF:6E:CC:4C:D8:B0:1A:BF:1A:56:65:7D:F4:03:AD:7E:77:43:2A:29:EC:93\nm=audio 9 UDP/TLS/RTP/SAVPF 100 101\nc=IN IP4 0.0.0.0\na=rtcp-mux\na=sendonly\na=mid:audio\na=setup:actpass\na=ice-ufrag:ETEn\na=ice-pwd:OtSK0WpNtpUjkY4+86js7Z/l\r\na=rtpmap:100 multiopus/48000/8\r\na=fmtp:100 "+(M="minptime=10;useinbandfec=1;channel_mapping=0,6,1,2,3,4,5,7;num_streams=5;coupled_streams=3")+"\r\na=rtpmap:101 opus/48000/2\na=fmtp:101 minptime=10;useinbandfec=1\n",M),yield Promise.all([B,M]).then(q=>{s=Math.max(Number(q[0]),Number(q[1]))}),g.i("{d988e7f}","{dc7ee29}",s)})).apply(this,arguments)}function Qn(s){var M;return(null!==(M=tr.usePerfNowCaptureTimestamp)&&void 0!==M?M:!window.chrome)?na(He):s-He.j}function Ui(s,M=!1){return M=M?No(s):{x:s.clientX,y:s.clientY},{identifier:s.identifier,clientX:M.x,clientY:M.y,deltaX:0,deltaY:0}}function Ar(s,M,B){let q=!1;const Se=M.changedTouches,be=Qn(M.timeStamp);for(let Je=0;Je<Se.length;Je++){const _t=Se[Je],Yt=s.h.findIndex($t=>$t.identifier==_t.identifier);-1!=Yt&&(q=!0,gi(Nt()),s.h.splice(Yt,1),0===s.h.length?(0!==s.l?(window.clearTimeout(s.l),s.l=0,B&&Ng(s.j,s.target,be,Ui(_t,!0),s.m)):(2===s.g||4===s.g)&&ti&&Mc(s.j,be),s.m=0,s.g=0):5===s.g?s.g=0:6===s.g&&(ti&&Tp(s.j),s.g=0))}Zd(s.j)&&q&&M.preventDefault()}var Or=class{constructor(s,M,B,q){this.target=s,this.videoAddEventListener=M,this.videoRemoveEventListener=B,this.j=q,this.h=[],this.g=this.m=this.l=0,this.C=Se=>{let be=!1;const Je=Se.changedTouches,_t=Qn(Se.timeStamp);for(let Yt=0;Yt<Je.length;Yt++){const $t=Je[Yt];$t.target===this.target&&(be=!0,gi(Nt()),0===this.h.length?(this.g=1,this.l=window.setTimeout(()=>{this.l=0,1===this.m&&(this.g=2,ti&&Mm(this.j,this.target,_t,Ui($t)))},500)):1!==this.g&&(2===this.g||4===this.g?ti&&Mc(this.j,_t):6===this.g&&ti&&Tp(this.j),this.g=0),this.h.push(Ui($t)),this.h.length>this.m&&(this.m=this.h.length))}Zd(this.j)&&be&&Se.preventDefault()},this.v=Se=>{let be=!1;for(var Je of this.h)Je.deltaX=0,Je.deltaY=0;Je=Se.changedTouches;const _t=Qn(Se.timeStamp);let Yt=[];for(let In=0;In<Je.length;In++){const ci=Je[In],Si=this.h.findIndex(er=>er.identifier==ci.identifier);if(-1!=Si){be=!0;var $t=this.h[Si],Sn=ci.clientX-$t.clientX;$t=ci.clientY-$t.clientY;let er=!1;0!==this.l?(10<Math.abs(Sn)||10<Math.abs($t))&&(window.clearTimeout(this.l),this.l=0,er=!0):er=!0,er&&(Sn={identifier:ci.identifier,clientX:ci.clientX,clientY:ci.clientY,deltaX:Sn,deltaY:$t},Yt.push(Si),this.h[Si]=Sn)}}0<Yt.length&&0===this.l&&0!==this.g&&(1===this.h.length?(1===this.g?this.g=3:2===this.g&&(this.g=4),ti&&function Vh(s,M,B,q){1!==s.I.ma||s.kb||void 0!==s.s?od(s,s.I.offsetX+q.deltaX,s.I.offsetY+q.deltaY,s.I.ma):zc(s,M,q,B)}(this.j,this.target,_t,this.h[0])):2===this.h.length?5===this.g?ti&&this.j.scroll(this.target,_t,this.h):6===this.g?ti&&Hh(this.j,this.h):1===this.g&&(0<this.h[0].deltaY*this.h[1].deltaY&&(Math.sign(this.h[0].deltaX)===Math.sign(this.h[1].deltaX)||10>Math.abs(this.h[0].deltaX)&&10>Math.abs(this.h[1].deltaX))?(this.g=5,ti&&this.j.scroll(this.target,_t,this.h)):(this.g=6,ti&&Hh(this.j,this.h))):this.g=0),Zd(this.j)&&be&&Se.preventDefault()},this.o=Se=>{Ar(this,Se,!1)},this.s=Se=>{Ar(this,Se,!0)}}start(){const s={passive:!ti};this.videoAddEventListener("touchstart",this.C,s),this.videoAddEventListener("touchmove",this.v,s),this.videoAddEventListener("touchcancel",this.o,s),this.videoAddEventListener("touchend",this.s,s)}stop(){if(this.videoRemoveEventListener("touchstart",this.C),this.videoRemoveEventListener("touchmove",this.v),this.videoRemoveEventListener("touchcancel",this.o),this.videoRemoveEventListener("touchend",this.s),this.h=[],0!==this.l&&(window.clearTimeout(this.l),this.l=0),this.m=0,ti)switch(this.g){case 6:Tp(this.j);break;case 2:case 4:Mc(this.j,performance.now())}this.g=0}};function pr(s,M){s.clientX=M.pageX-s.j.ob,s.clientY=M.pageY-s.j.vertical,s.radiusX=M.radiusX,s.radiusY=M.radiusY}function co(s){const M=No(s);s.h=.01<Math.abs(M.y-s.clientY),s.clientX=M.x,s.clientY=M.y}class bn{constructor(M,B,q){this.radiusY=this.radiusX=this.clientY=this.clientX=0,this.h=!1,this.identifier=M.identifier,this.g=B,this.j=q,pr(this,M),wo?co(this):this.h=!1}update(M){pr(this,M),this.h&&co(this)}}class so{constructor(M,B,q,Se,be){this.h=B,this.id=M.identifier,this.v=q,this.l=M.pageX,this.m=M.pageY,this.o=M.radiusX,this.s=M.radiusY,this.g=Se,this.j=be}}function gr(s,M,B,q){var Se,be=0;for(let er of M){if(40<be)return void g.e("{ec05004}","{2faaf33}",M.length-be);var Je=null===(Se=s.g.get(er.identifier))||void 0===Se?void 0:Se.g;if(void 0===Je)g.e("{ec05004}","{960ee4f}",er.identifier);else{var _t=s.m*er.clientX,Yt=s.o*er.clientY,$t=s.m*er.radiusX,Sn=s.o*er.radiusY,In=65535+$t,ci=-Sn;if(Sn=65535+Sn,_t<-$t||_t>In||Yt<ci||Yt>Sn)switch(B){case 2:case 8:break;default:continue}_t=Math.min(Math.max(_t,0),65535),Yt=Math.min(Math.max(Yt,0),65535);e:{$t=s.P,In=B,ci=er.radiusX,Sn=er.radiusY;var Si=q;if(40<=be){Je=!1;break e}const fi=18+16*be;$t.gb.setUint8(fi,Je),$t.gb.setUint8(fi+1,In),$t.gb.setUint16(fi+2,_t,!1),$t.gb.setUint16(fi+4,Yt,!1),$t.gb.setUint8(fi+6,ci),$t.gb.setUint8(fi+7,Sn),Go(Si,$t.gb,fi+8,!1,1e3),Je=!0}if(!Je){s.l+=M.length-be;break}be++}}0!=be&&(be>M.length?g.w("{ec05004}","{4e60a66}",be,M.length):((s=s.P).gb.setUint16(14,be=8+16*(M=be),!1),s.gb.setUint16(16,M,!1),M=10,3<=s.La&&(be++,M--),be=new DataView(s.gb.buffer,M,be),hs(s),hs(s,be)||g.e("{ec05004}","{56a8404}")))}function jr(s,M,B){var q=performance.now(),Se=Qn(M.timeStamp);let be=!1,Je=[];const _t=M.changedTouches;let Yt=[];for(let $t=0;$t<_t.length;$t++){const Sn=_t[$t];if(Sn.target===s.target){let In=s.g.get(Sn.identifier);Je.push(Sn.identifier),In&&(be=!0,gi(Nt()),In.update(Sn),Yt.push(In),zs&&s.h.push(new so(Sn,In.g,B,q,M.timeStamp)))}}gr(s,Yt,B,Se);for(const $t of Je)(Se=(B=s).g.get(q=$t))&&(B.g.delete(q),B.s.delete(Se.g));zs&&(s.N=0==s.g.size),Zd(s.j)&&be&&M.preventDefault()}var $o=class{constructor(s,M,B,q,Se){this.target=s,this.videoAddEventListener=M,this.videoRemoveEventListener=B,this.P=q,this.j=Se,this.o=this.m=0,this.F={ob:1,vertical:1},this.g=new Map,this.s=new Set,this.l=0,this.h=[],this.v=0,this.N=!0,this.M=be=>{const Je=performance.now(),_t=Qn(be.timeStamp);let Yt=!1;this.j.ic(!1);const $t=be.changedTouches;let Sn=[];for(let ci=0;ci<$t.length;ci++){const Si=$t[ci];if(Si.target===this.target){Yt=!0,gi(Nt());var In=Si;let er=0;for(;this.s.has(er);)er++;let fi=new bn(In,er,this.F);this.g.set(In.identifier,fi),this.s.add(er),Sn.push(In=fi),zs&&this.h.push(new so(Si,In.g,1,Je,be.timeStamp))}}gr(this,Sn,1,_t),zs&&sa&&8==this.g.size&&this.N&&(this.C(),this.O()),Zd(this.j)&&Yt&&be.preventDefault()},this.L=be=>{const Je=performance.now(),_t=Qn(be.timeStamp);let Yt=!1;const $t=be.changedTouches;let Sn=[];for(let In=0;In<$t.length;In++){const ci=$t[In];if(ci.target===this.target){let Si=this.g.get(ci.identifier);Si&&(Yt=!0,Si.update(ci),Sn.push(Si),zs&&this.h.push(new so(ci,Si.g,4,Je,be.timeStamp)))}}gr(this,Sn,4,_t),Zd(this.j)&&Yt&&be.preventDefault()},this.H=be=>{jr(this,be,8)},this.J=be=>{jr(this,be,2)},this.C=this.S.bind(this),this.O=this.R.bind(this)}S(){const s=this.h.length;if(s){var M=this.h[s-1].g-3e4,B=-1;for(let q=0;q<s&&this.h[q].g<M;q++)B=q;this.h.splice(0,B+1)}}R(){for(let s of this.h)g.d("{ec05004}","{3c6a946}",s.j.toFixed(2),s.g.toFixed(2),s.id,s.h,s.v,s.l.toFixed(2),s.m.toFixed(2),s.o.toFixed(0),s.s.toFixed(0));this.h=[]}start(){this.l=0;const s={passive:!1};this.videoAddEventListener("touchstart",this.M,s),this.videoAddEventListener("touchmove",this.L,s),this.videoAddEventListener("touchcancel",this.H,s),this.videoAddEventListener("touchend",this.J,s),zs&&(g.d("{ec05004}","{72764d2}",performance.now()),this.h=[],this.v=window.setInterval(this.C,6e4)),this.j.ic(!1)}stop(){zs&&(this.v&&clearTimeout(this.v),this.C(),this.O()),this.g.size&&(gr(this,Array.from(this.g.values()),8,performance.now()),this.g.clear(),this.s.clear()),this.l&&g.w("{ec05004}","{10858ae}",this.l);const s={passive:!1};this.videoRemoveEventListener("touchstart",this.M,s),this.videoRemoveEventListener("touchmove",this.L,s),this.videoRemoveEventListener("touchcancel",this.H,s),this.videoRemoveEventListener("touchend",this.J,s)}},Va=new Map([["Escape",27],["Digit0",48],["Digit1",49],["Digit2",50],["Digit3",51],["Digit4",52],["Digit5",53],["Digit6",54],["Digit7",55],["Digit8",56],["Digit9",57],["Minus",189],["Equal",187],["Backspace",8],["Tab",9],["KeyQ",81],["KeyW",87],["KeyE",69],["KeyR",82],["KeyT",84],["KeyY",89],["KeyU",85],["KeyI",73],["KeyO",79],["KeyP",80],["BracketLeft",219],["BracketRight",221],["Enter",13],["ControlLeft",162],["KeyA",65],["KeyS",83],["KeyD",68],["KeyF",70],["KeyG",71],["KeyH",72],["KeyJ",74],["KeyK",75],["KeyL",76],["Semicolon",186],["Quote",222],["Backquote",192],["ShiftLeft",160],["Backslash",220],["KeyZ",90],["KeyX",88],["KeyC",67],["KeyV",86],["KeyB",66],["KeyN",78],["KeyM",77],["Comma",188],["Period",190],["Slash",191],["ShiftRight",161],["NumpadMultiply",106],["AltLeft",164],["Space",32],["CapsLock",20],["F1",112],["F2",113],["F3",114],["F4",115],["F5",116],["F6",117],["F7",118],["F8",119],["F9",120],["F10",121],["Pause",19],["ScrollLock",145],["Numpad7",103],["Numpad8",104],["Numpad9",105],["NumpadSubtract",109],["Numpad4",100],["Numpad5",101],["Numpad6",102],["NumpadAdd",107],["Numpad1",97],["Numpad2",98],["Numpad3",99],["Numpad0",96],["NumpadDecimal",110],["PrintScreen",42],["IntlBackslash",226],["F11",122],["F12",123],["NumpadEqual",187],["F13",124],["F14",125],["F15",126],["F16",127],["F17",128],["F18",129],["F19",130],["F20",131],["F21",132],["F22",133],["F23",134],["F24",135],["KanaMode",233],["Lang2",25],["Lang1",21],["IntlRo",194],["Convert",234],["NonConvert",235],["IntlYen",193],["NumpadComma",188],["NumpadEnter",13],["ControlRight",163],["NumpadDivide",111],["PrintScreen",42],["AltRight",165],["NumLock",144],["Pause",19],["Home",36],["ArrowUp",38],["PageUp",33],["ArrowLeft",37],["ArrowRight",39],["End",35],["ArrowDown",40],["PageDown",34],["Insert",45],["Delete",46],["MetaLeft",91],["OSLeft",91],["MetaRight",92],["OSRight",92],["Lang2",25],["Lang1",21],["NumpadClear",12],["NumpadClearEntry",12]]),Ha=new Map([["HanjaMode",25],["HangulMode",21]]),ic=new Map([["1",{vkCode:49,shift:!1}],["2",{vkCode:50,shift:!1}],["3",{vkCode:51,shift:!1}],["4",{vkCode:52,shift:!1}],["5",{vkCode:53,shift:!1}],["6",{vkCode:54,shift:!1}],["7",{vkCode:55,shift:!1}],["8",{vkCode:56,shift:!1}],["9",{vkCode:57,shift:!1}],["0",{vkCode:48,shift:!1}],["!",{vkCode:49,shift:!0}],["@",{vkCode:50,shift:!0}],["#",{vkCode:51,shift:!0}],["$",{vkCode:52,shift:!0}],["%",{vkCode:53,shift:!0}],["^",{vkCode:54,shift:!0}],["&",{vkCode:55,shift:!0}],["*",{vkCode:56,shift:!0}],["(",{vkCode:57,shift:!0}],[")",{vkCode:48,shift:!0}],["-",{vkCode:189,shift:!1}],["_",{vkCode:189,shift:!0}],["=",{vkCode:187,shift:!1}],["+",{vkCode:187,shift:!0}],[",",{vkCode:188,shift:!1}],["<",{vkCode:188,shift:!0}],[".",{vkCode:190,shift:!1}],[">",{vkCode:190,shift:!0}],[";",{vkCode:186,shift:!1}],[":",{vkCode:186,shift:!0}],["/",{vkCode:191,shift:!1}],["?",{vkCode:191,shift:!0}],["`",{vkCode:192,shift:!1}],["~",{vkCode:192,shift:!0}],["[",{vkCode:219,shift:!1}],["{",{vkCode:219,shift:!0}],["\\",{vkCode:220,shift:!1}],["|",{vkCode:220,shift:!0}],["]",{vkCode:221,shift:!1}],["}",{vkCode:221,shift:!0}],["'",{vkCode:222,shift:!1}],['"',{vkCode:222,shift:!0}],[" ",{vkCode:32,shift:!1}],["A",{vkCode:65,shift:!0}],["B",{vkCode:66,shift:!0}],["C",{vkCode:67,shift:!0}],["D",{vkCode:68,shift:!0}],["E",{vkCode:69,shift:!0}],["F",{vkCode:70,shift:!0}],["G",{vkCode:71,shift:!0}],["H",{vkCode:72,shift:!0}],["I",{vkCode:73,shift:!0}],["J",{vkCode:74,shift:!0}],["K",{vkCode:75,shift:!0}],["L",{vkCode:76,shift:!0}],["M",{vkCode:77,shift:!0}],["N",{vkCode:78,shift:!0}],["O",{vkCode:79,shift:!0}],["P",{vkCode:80,shift:!0}],["Q",{vkCode:81,shift:!0}],["R",{vkCode:82,shift:!0}],["S",{vkCode:83,shift:!0}],["T",{vkCode:84,shift:!0}],["U",{vkCode:85,shift:!0}],["V",{vkCode:86,shift:!0}],["W",{vkCode:87,shift:!0}],["X",{vkCode:88,shift:!0}],["Y",{vkCode:89,shift:!0}],["Z",{vkCode:90,shift:!0}],["a",{vkCode:65,shift:!1}],["b",{vkCode:66,shift:!1}],["c",{vkCode:67,shift:!1}],["d",{vkCode:68,shift:!1}],["e",{vkCode:69,shift:!1}],["f",{vkCode:70,shift:!1}],["g",{vkCode:71,shift:!1}],["h",{vkCode:72,shift:!1}],["i",{vkCode:73,shift:!1}],["j",{vkCode:74,shift:!1}],["k",{vkCode:75,shift:!1}],["l",{vkCode:76,shift:!1}],["m",{vkCode:77,shift:!1}],["n",{vkCode:78,shift:!1}],["o",{vkCode:79,shift:!1}],["p",{vkCode:80,shift:!1}],["q",{vkCode:81,shift:!1}],["r",{vkCode:82,shift:!1}],["s",{vkCode:83,shift:!1}],["t",{vkCode:84,shift:!1}],["u",{vkCode:85,shift:!1}],["v",{vkCode:86,shift:!1}],["w",{vkCode:87,shift:!1}],["x",{vkCode:88,shift:!1}],["y",{vkCode:89,shift:!1}],["z",{vkCode:90,shift:!1}]]);class gl extends DataView{constructor(M,B,q,Se){super(M,B,q),this.shift=0,this.setUint8=(be,Je)=>super.setUint8(be+this.shift,Je),this.setUint16=(be,Je,_t)=>super.setUint16(be+this.shift,Je,_t),this.setUint32=(be,Je,_t)=>super.setUint32(be+this.shift,Je,_t),this.setInt8=(be,Je)=>super.setInt8(be+this.shift,Je),this.setInt16=(be,Je,_t)=>super.setInt16(be+this.shift,Je,_t),this.setInt32=(be,Je,_t)=>super.setInt32(be+this.shift,Je,_t),this.setFloat32=(be,Je,_t)=>super.setFloat32(be+this.shift,Je,_t),this.setFloat64=(be,Je,_t)=>super.setFloat64(be+this.shift,Je,_t),this.shift=Se??0}}function hs(s,M,B=!0,q="input_channel_v1"){if("gamepad_channel_v1"!=q&&0<s.ia.h&&(M=s.Ff(M)),void 0===M)return!1;const Se=window.performance.now();var be=s.Ba;if(be.aa?(Yh(be),be=!1):be=!0,!be)return!1;if("gamepad_channel_v1"===(be=!1,2<s.La&&B&&(9>M.byteOffset?g.w("{57a6a4d}","{0fc6121}"):((M=new DataView(M.buffer,M.byteOffset-9,9+M.byteLength)).setUint8(0,35),Go(na(He),M,1,!1,1e3))),B=-1,q)&&void 0!==s.Xc&&(B=s.Xc,s.Xc=(s.Xc+1)%65536),0<=B){if(3>M.byteOffset)return g.e("{57a6a4d}","{e9ac06c}"),!1;(M=new DataView(M.buffer,M.byteOffset-3,3+M.byteLength)).setUint8(0,37),M.setUint16(1,B)}try{let Je=performance.now();switch(q){case"gamepad_channel_v1":s.Aa.send(M);break;case"input_channel_v1":s.Ja.send(M);break;default:throw Error(`Invalid input channel ${q}`)}Xu(s.D,performance.now()-Je);const _t=window.performance.now();s.V.jd+=1,5<(M=_t-Se)&&(s.V.ld+=1),10<M&&(s.V.kd+=1),be=!0}catch(Je){Je.stack&&!Je.stack.includes("Could not send data")&&(g.e("{57a6a4d}","{7a6bf7c}",Je),qa(s)&&s.G.za(Je,"sendinput exception","{57a6a4d}.ts",0,0,!0))}return be}function Ed(s,M,B){const q=s.fb(22);q.setUint32(0,10,!0),q.setUint16(4,0,!1),q.setUint16(6,-M,!1),q.setUint16(8,0,!1),q.setUint32(10,0),Go(B,q,14,!1,1e3);try{hs(s,q)}catch(Se){g.e("{57a6a4d}","{3d81a57}",Se),s.G.za(Se,"send mousewheel exception","{57a6a4d}.ts",0,0,!0)}}function Xa(s,M,B,q,Se,be,Je=0){let _t=s.I.eb;s=s.I.Wa;let Yt=7;q&&(Yt=5);let $t=0;return 5==Yt&&($t=4),M.setUint32(B,Yt,!0),M.setUint16(B+4,Se,!1),M.setUint16(B+6,be,!1),M.setUint16(B+8,0,!1),M.setUint32(B+10+$t,0,!1),Go(Je,M,B+14+$t,!1,1e3),$t&&(M.setUint16(B+10,_t,!1),M.setUint16(B+12,s,!1)),B+(q?26:22)}function qa(s){return"open"===s.Ja.readyState&&(!s.Aa||"open"===s.Aa.readyState)}function xd(s,M,B,q=0){const Se=s.fb(26);Xa(s,Se,0,!0,M,B,q);try{qa(s)&&hs(s,Se)}catch(be){g.e("{57a6a4d}","{dba1265}",be),s.G.za(be,"send CursorPos exception","{57a6a4d}.ts",0,0,!0)}}function _s(s,M,B,q,Se=0){if(4!==M&&3!==M)g.e("{57a6a4d}","{66e269d}",M);else{var be=s.fb(18);be.setUint32(0,M,!0),be.setUint16(4,B,!1),be.setUint16(6,q,!1),be.setUint16(8,0,!1),Go(Se,be,10,!1,1e3),hs(s,be)}}function rc(s,M,B,q,Se,be,Je=0,_t=0){s.setUint32(M,12,!0),s.setUint16(M+4,26,!0),s.setUint16(M+6,B,!0),s.setUint16(M+8,_t,!0),s.setUint16(M+10,20,!0),s.setUint16(M+12,q,!0),s.setUint16(M+14,Se,!0),s.setInt16(M+16,Math.round(32767.5*(be[0]+1))-32768,!0),s.setInt16(M+18,Math.round(32767.5*(1-be[1]))-32768,!0),s.setInt16(M+20,Math.round(32767.5*(be[2]+1))-32768,!0),s.setInt16(M+22,Math.round(32767.5*(1-be[3]))-32768,!0),s.setUint16(M+24,0,!0),s.setUint16(M+26,85,!0),s.setUint16(M+28,0,!0),Go(Je,s,M+30,!0,1e3)}function Bl(s,M,B,q,Se,be=0,Je=0){return rc(s=s.fb(38),0,q,M,B,Se,be,Je),s}function Kd(s,M,B){return(s=s.fb(10)).setUint32(0,18,!0),s.setUint8(4,M),s.setUint8(5,B),s.setUint32(6,1),s}var go=class{constructor(s,M,B,q,Se,be,Je,_t){this.La=this.sd=0,this.buffer=new ArrayBuffer(1150),this.ig=new DataView(this.buffer),this.Kg=new ArrayBuffer(658),this.gb=new DataView(this.Kg),this.Eb=new DataView(new ArrayBuffer(176)),this.Jg=new ArrayBuffer(100),this.Jb=0,this.Ff=this.xg,this.fb=this.mg,this.Oc=[],this.Ba=s,this.ia=M,this.D=Se,this.I=q,this.Ja=be,this.Ja.onmessage=Yt=>{if(Yt=new DataView(Yt.data),0===this.La){let $t=Yt.getUint16(0,!0);526==$t?(this.Dd=this.pg.bind(this),this.La=Yt.getUint16(2,!0)):(this.Dd=this.Zc.bind(this),this.La=$t),2==this.La?this.ia.m=!0:2<this.La&&(this.ia.m=!0,this.Ff=this.yg,this.fb=this.ng),g.i("{57a6a4d}","{68c4654}",this.La)}else this.Dd(Yt,0)},this.Aa=_t,this.G=Je,this.V=B,this.Dd=this.Zc.bind(this),this.gb.setUint8(9,34),this.gb.setUint32(10,24,!0),this.Aa&&(this.Xc=1)}pg(s,M){var B=s.getUint16(M,!0);if(267===B)this.Zc(s,M+2);else switch(M=255&B){case 32:case 33:case 34:case 35:case 36:case 255:if(34===(B=M))switch(B=s.getUint32(1,!0)){case 267:this.Zc(s,5);break;case 17:if(6<=(M=s.getUint8(5))&&9>=M){B=M-6;var q=s.getUint8(8),Se=s.getUint8(9);if(5!==q||1&~Se)g.w("{57a6a4d}","{d8b7bec}",q,Se,M);else{M=s.getUint8(12)<<8;const be=s.getUint8(13)<<8;for(const Je of this.Oc){q=M,Se=be;const _t=(s=Je).U.get(B);void 0!==_t&&Vl(s,_t,q,Se)}}}else g.w("{57a6a4d}","{6135ec1}",M);break;default:g.w("{57a6a4d}","{25be6a3}",B)}else g.d("{57a6a4d}","{ba4ff6a}",B);break;default:g.w("{57a6a4d}","{aea35b8}",B)}}Zc(s,M){var B=s.getUint16(M,!0);if(1==B)if(6>(B=s.getUint16(M+2,!0)))g.e("{57a6a4d}","{1527181}",B);else{6<B&&g.w("{57a6a4d}","{78db114}",B),B=s.getUint16(M+4,!0);var q=s.getUint16(M+6,!0);s=s.getUint16(M+8,!0);for(const Je of this.Oc){var Se=q,be=s;const _t=(M=Je).Xb.get(B);void 0!==_t&&Vl(M,_t,Se,be)}}else g.w("{57a6a4d}","{c7cf6da}",B)}Ib(s,M){const B=this.fb(18);B.setUint32(0,8,!0),B.setUint8(4,s+1),B.setUint8(5,0),B.setUint32(6,0),Go(M,B,10,!1,1e3);try{hs(this,B)}catch(q){g.e("{57a6a4d}","{b258856}",q),this.G.za(q,"send mousedown exception","{57a6a4d}.ts",0,0,!0)}}Ab(s,M){const B=this.fb(18);B.setUint32(0,9,!0),B.setUint8(4,s+1),B.setUint8(5,0),B.setUint32(6,0),Go(M,B,10,!1,1e3);try{hs(this,B)}catch(q){g.e("{57a6a4d}","{c1ae1fc}",q),this.G.za(q,"send mouseup exception","{57a6a4d}.ts",0,0,!0)}}Td(){const s=this.fb(10);s.setUint32(0,2,!0);try{this.Ja.send(s),g.d("{57a6a4d}","{5693344}")}catch(M){g.e("{57a6a4d}","{ab52f04}",M),this.G.za(M,"heartbeat exception","{57a6a4d}.ts",0,0,!0)}}xg(s){0!==this.Jb&&(window.clearTimeout(this.Jb),this.Jb=0);var M=performance.now();this.sd=M;for(var B=1,q=0;q<this.ia.h;){B+=2;var Se=this.ia.g[q].jb;if(0<Se){B+=19;for(var be=0;be<Se;be++)B+=1+(this.ia.g[q+be].ib?26:22);q+=Se}else B+=this.ia.g[q].ib?26:22,q++}(B+=s?2+s.byteLength:0)>this.buffer.byteLength?(B=new DataView(new ArrayBuffer(B)),this.V.gd++):B=new DataView(this.buffer,0,B),B.setUint8(0,255);var Je=1;for(q=0;q<this.ia.h;){if(Se=Je,Je+=2,0<(be=this.ia.g[q]).jb){var _t=B,Yt=q,$t=M,Sn=this.ia.g[Yt],In=Je;Je+=19;for(let ci=0;ci<Sn.jb;++ci){const Si=this.ia.g[Yt+ci];_t.setUint8(Je,Si.ib?26:22),Je=Xa(this,_t,++Je,Si.ib,Si.x,Si.y,Si.captureTimestamp)}Yt=In,In=Je-In,Sn=Sn.wc,_t.setUint8(Yt,32),_t.setUint16(Yt+1,In,!1),Go($t,_t,Yt+3,!1,1e3),Go(Sn,_t,Yt+11,!1,1e3),q+=be.jb}else Je=Xa(this,B,Je,be.ib,be.x,be.y,be.captureTimestamp),q++;B.setUint16(Se,Je-Se-2)}if(this.ia.j=0,s)for(B.setUint16(Je,s.byteLength),Je+=2,M=0;M<s.byteLength;M++)B.setUint8(Je+M,s.getUint8(M));return B}yg(s){var M;if(s&&s.buffer!=this.buffer)return hs(this),s;0!==this.Jb&&(window.clearTimeout(this.Jb),this.Jb=0),this.sd=performance.now();for(var B=0,q=-1,Se=0;Se<this.ia.h;Se++)0<this.ia.g[Se].jb?(B+=9,q=this.ia.g[Se].jb):0===q&&(B+=9),B+=3+(this.ia.g[Se].ib?26:22),q--;if(B+=null!==(M=s?.byteLength)&&void 0!==M?M:0,(M=9+B)>this.buffer.byteLength){if(M=new DataView(new ArrayBuffer(M),M-B,B),this.V.gd++,s)for(B=M.byteLength-s.byteLength,q=0;q<s.byteLength;q++)M.setUint8(B+q,s.getUint8(q))}else M=new DataView(this.buffer,this.buffer.byteLength-B,B);for(s=0,B=-1,q=0;q<this.ia.h;q++)0<(Se=this.ia.g[q]).jb?(B=Se.jb,M.setUint8(s,36),Go(Se.wc,M,s+1,!1,1e3),s+=9):0===B&&(M.setUint8(s,36),Go(0,M,s+1,!1,1e3),s+=9),M.setUint8(s,33),M.setUint16(s+1,Se.ib?26:22),s=Xa(this,M,s+3,Se.ib,Se.x,Se.y,Se.captureTimestamp),B--;return this.ia.j=0,M}mg(s){return new gl(this.Jg,0,s)}ng(s){const M=this.buffer.byteLength-(s+=1);return s=new gl(this.buffer,M,s,1),this.ig.setUint8(M,34),s}sendTextInput(s){let M=0,B=new DataView(s,0,s.byteLength),q=new ArrayBuffer(1021);for(;M<s.byteLength;){let be;if(1016>=s.byteLength-M)be=s.byteLength-M;else{be=M+1016;var Se=!1;for(let Je=0;4>Je;Je++){if(128!=(192&B.getUint8(be))){Se=!0;break}be--}if(!Se){g.e("{57a6a4d}","{938b0d3}");break}be-=M}(Se=new DataView(q,0,be+5)).setUint8(0,34),Se.setUint32(1,23,!0),new Uint8Array(q).set(new Uint8Array(s,M,be),5),M+=be,hs(this,Se,!1)}}stop(){0<this.Ja.bufferedAmount&&g.w("{57a6a4d}","{5e5b9e5}",this.Ja.bufferedAmount),this.Aa&&0<this.Aa.bufferedAmount&&g.w("{57a6a4d}","{1785a7c}",this.Aa.bufferedAmount)}get zg(){return this.La}get tg(){return this.sd}Db(s){hs(this,s=Bl(this,0,0,0,[0,0,0,0],0,s))}Yc(s,M,B,q,Se,be,Je=0,_t){2<this.La?(this.Eb.setUint8(s=(this.Aa?12:9)+41*s,33),this.Eb.setUint16(s+1,38),rc(this.Eb,s+3,B,q,Se,be,Je,_t)):2==this.La?(this.Eb.setUint16(s=1+40*s,38),rc(this.Eb,s+2,B,q,Se,be,Je,_t)):hs(this,B=Bl(this,q,Se,B,be,Je,_t))}Wb(s,M,B,q,Se=0){hs(this,s=Bl(this,s,M,B,q,0,Se))}Wc(s){if(!(2>this.La||0>=s)){hs(this);var M=null;2<this.La?M=new DataView(this.Eb.buffer,this.Aa?12:9,41*s):2==this.La&&(this.Eb.setUint8(0,255),M=new DataView(this.Eb.buffer,0,1+40*s)),M&&(this.Aa?hs(this,M,!0,"gamepad_channel_v1"):hs(this,M,!0))}}Tc(){}Fg(s){const M=this.fb(6);M.setUint32(0,13,!0),M.setUint16(4,s?1:0,!1),hs(this,M)}gg(s){hs(this,Kd(this,4>s?s+6:0,1))}Of(s){hs(this,Kd(this,4>s?s+6:0,3))}Vc(s,M,B,q,Se){(s=this.fb(72)).setUint32(0,17,!0),s.setUint8(4,4>M?M+6:0),s.setUint8(5,4),s.setUint8(6,0),s.setUint8(7,1),s.setUint8(8,127.5*(Se[0]+1)),s.setUint8(9,127.5*(Se[1]+1)),s.setUint8(10,127.5*(Se[2]+1)),s.setUint8(11,127.5*(Se[3]+1)),M=0;var be=!!(2&B);const Je=!!(8&B),_t=!!(1&B);(Se=!!(4&B))||be||Je||_t?_t?M=Je?1:Se?7:0:be?M=Je?3:Se?5:4:Je?M=2:Se&&(M=6):M=8,Se=(Se=(256&B?1:0)|(512&B?2:0)|(255&q?4:0)|(65280&q?8:0))|(32&B?16:0)|(16&B?32:0)|(64&B?64:0)|(128&B?128:0),be=(65536&B?1:0)|(131072&B?2:0),s.setUint8(12,M|(16384&B?16:0)|(4096&B?32:0)|(8192&B?64:0)|(32768&B?128:0)),s.setUint8(13,Se),s.setUint8(14,be),s.setUint8(15,255&q),s.setUint8(16,(65280&q)>>8),s.setUint16(17,0,!0),s.setUint8(19,0),s.setInt16(20,0,!0),s.setInt16(22,0,!0),s.setInt16(24,0,!0),s.setInt16(26,0,!0),s.setInt16(28,0,!0),s.setInt16(30,0,!0),s.setUint32(32,0,!0),s.setUint8(36,0),s.setUint8(37,11),s.setUint8(38,0),s.setUint8(39,0),s.setUint8(40,0),hs(this,s)}},ja=class{constructor(){this.m=!1,this.j=0,this.l=Array(36);for(let s=0;s<this.g.length;s++)this.l[s]={ib:!1,x:0,y:0,captureTimestamp:0,jb:0,wc:0}}get g(){return this.l}get h(){return this.j}},Gl=class{constructor(s){this.g=s}enable(){this.g.Nc=!0}disable(){this.g.Nc=!1}updateInput(s,M,B){this.g.Nc&&(gi(Nt()),this.g.Yd=s,this.g.Zd=M,this.g.Xd=B,this.g.$d=!0)}};class Fe{constructor(M){this.buttons=M.Gb(M.ba),this.axes=M.Fb(M.ba),this.Kb=M.Hb(M.ba),this.timestamp=performance.now()}}const tt={startDelay:0,duration:0,weakMagnitude:0,strongMagnitude:0};function yt(s){var M,B,Se,be,Je,_t,q=null!==(B=null!==(M=Co)&&void 0!==M?M:tr.gamepadPollInterval)&&void 0!==B?B:4;s.qa=q,q=null===(be=null!==(Se=lt)&&void 0!==Se?Se:tr.allowHaptics)||void 0===be||be,s.allowHaptics=q,Se=null!==(_t=null!==(Je=hn)&&void 0!==Je?Je:tr.synthesizeGamepadHid)&&void 0!==_t&&_t,s.T=Se}function rt(s,M){var B,q;yt(s),M=M??0,Ao&&(M|=1),Wo&&(M|=2),s.T&&M?(s.L=null!==(B=Ao)&&void 0!==B?B:!!(1&M),s.W=null!==(q=Wo)&&void 0!==q?q:!!(2&M),Dt(s,!0)):(s.L=!1,s.W=!1)}function Dt(s,M=!1){var B=!1;if(s.g.Nc&&!s.g.pb)s.g.pb?B=!1:(g.i("{515a922}","{132d93a}",s.g.Lb),s.g.pb=!0,s.C={Bd:"Nvidia Virtual Gamepad",state:0,buttons:0,Kb:0,axes:[]},$i(s,s.g.Lb,!1),B=!0);else if(!s.g.Nc&&s.g.pb)e:if(s.g.pb){g.i("{515a922}","{98ac7c2}",s.g.Lb),s.g.pb=!1,Ji(s);var q=s.g.Lb;for(var Se of s.h)if(Se&&1==Se.Ca&&Se.ha===q){B=!1;break e}B=Ho(s,q)}else B=!1;for(Se=navigator.getGamepads(),q=0;q<Se.length;q++){let _t=Se[q];if(_t)if(Da(s,_t,q)){var be=s,Je=_t;be.h[q].ba=Je,be.hapticsSupported=be.hapticsSupported||Rs(Je),ka(be),M&&((be=(B=s.h[q]).Ca)!==(Je=ii(s,_t))&&(1===be?(Ho(s,B.ha),B.Ca=Je,B.ha=vs(s,Je),Ql(s,B)):(Ro(s,B),B.Ca=Je,B.ha=vs(s,Je),$i(s,q,pa(_t)))),B=!0)}else io(s,q,!0),uo(s,_t,q)&&(B=!0);else io(s,q,!0)&&(B=!0)}if(B){s.Db();for(const _t of s.h)2==_t?.Ca&&Ql(s,_t)}s.Z=!0}function $i(s,M,B){s.j|=4>(M=s.g.pb&&M===s.g.Lb?s.g.Lb:s.h[M].ha)?1<<M:0,M=4>M?1<<M+8:0,s.j=B?s.j|M:s.j&~M}function Nr(s){const M=s.buttons,B=s.Kb;return"A:"+(4096&M?"1":"0")+"_B:"+(8192&M?"1":"0")+"_X:"+(16384&M?"1":"0")+"_Y:"+(32768&M?"1":"0")+"_LB:"+(256&M?"1":"0")+"_LSB:"+(64&M?"1":"0")+"_RB:"+(512&M?"1":"0")+"_RSB:"+(128&M?"1":"0")+"_LT:"+(255&B?"1":"0")+"_RT:"+(65280&B?"1":"0")+"_DU:"+(1&M?"1":"0")+"_DD:"+(2&M?"1":"0")+"_DL:"+(4&M?"1":"0")+"_DR:"+(8&M?"1":"0")+"_ST:"+(16&M?"1":"0")+"_BA:"+(32&M?"1":"0")+"_LS:"+(2<=(s=s.axes).length&&(2===s[0]||2===s[1])?"1":"0")+"_RS:"+(4!==s.length||2!==s[2]&&2!==s[3]?"0":"1")}function Ji(s){var M;s.C&&(null===(M=s.G)||void 0===M||Fu(M,s.C.Bd,"0","0",0,!1,!0,s.C.state,Nr(s.C)),s.C=void 0)}function Ho(s,M){return!(M===s.g.Lb&&s.g.pb||(s.j&=~(4>M?1<<M:0),s.j&=~(4>M?1<<M+8:0),0))}function vs(s,M){let B=[];for(let q of s.h)q&&q.Ca==M&&(B[q.ha]=!0);for(s=0;B[s];)s++;return s}function cs(s,M){-1<(M=s.l.indexOf(M))&&s.l.splice(M,1)}function Bt(s,M){return!!("standard"==M.mapping||s.fa||s.ea||Hi(s,M)||Er(M)||Vr(s,M))}function Te(s,M){var B;for(let q of s.h){if(!q)continue;let Se=q.ba;Bt(s,Se)&&(1===q.Ca?(M.Yc(0,Se.index,q.ha,0,0,[0,0,0,0],performance.now(),s.j,Se.id),M.Wc(1)):null===(B=M.Vc)||void 0===B||B.call(M,Se.index,q.ha,0,0,[0,0,0,0],performance.now(),s.j,Se.id))}}function ht(s,M){const B=s.F;M!=B&&(B?(s.m&&(s.m.stop(),s.m.reset(),cs(s,s.m),s.F=!1),s.o&&s.l.push(s.o)):(s.o&&(cs(s,s.o),Te(s,s.o)),s.m&&(s.l.push(s.m),s.H&&s.m.start(),s.F=!0)))}function Kt(s,M,B=!1){return s.Z||(M|=2),B&&(M|=1),M}function Fn(s,M,B){return{Bd:B,state:s.h[M.index]?s.h[M.index].Fa.state:Kt(s,0),buttons:s.h[M.index]?s.h[M.index].Fa.buttons:0,Kb:s.h[M.index]?s.h[M.index].Fa.Kb:0,axes:s.h[M.index]?s.h[M.index].Fa.axes:[]}}function ii(s,M){if(!s.T)return 1;if(s=s.Ka&&s.L&&s.Da&&!s.na){const B=So,q=Mo;if(!((M.id.includes("Vendor: 054c")||M.id.includes("Wireless Controller")&&M.id.includes("054c")||B||q)&&18<=M.buttons.length))return 1;const Se=M.id.includes("Product: 09cc")||M.id.includes("Product: 05c4")||M.id.includes("Product: 0ba0")||M.id.includes("Wireless Controller")&&M.id.includes("09cc");if(M=(M.id.includes("Product: 0ce6")||M.id.includes("Product: 0df2")||q)&&!le,s&&(Se||M||B))return 2}return 1}function Fi(s,M){const B=ii(s,M);return{ba:M,jc:!0,Ca:B,Gb:s.ca,Hb:s.da,Fb:s.aa,Fa:Fn(s,M,"Standard Gamepad"),ha:vs(s,B)}}function Hi(s,M){return!s.ua&&"standard"!=M.mapping&&M.id.includes("Vendor: 054c")&&M.id.includes("Product: 0ce6")}function Er(s){return"standard"!=s.mapping&&s.id.includes("Vendor: 045e")&&s.id.includes("Product: 0b13")}function Vr(s,M){return s.S&&"standard"!=M.mapping&&M.id.includes("Vendor: 045e")&&M.id.includes("Product: 0b12")}function uo(s,M,B){if(Bt(s,M)){var q=function Oo(s,M){if(s.fa)return Fi(s,M);if(s.ea){var B=ii(s,M);return{ba:M,jc:!0,Ca:B,Gb:s.Za,Hb:s.da,Fb:s.Ua,Fa:Fn(s,M,"Standard Gamepad"),ha:vs(s,B)}}return s.va?null:"standard"!=M.mapping||!M.id.includes("Vendor: 0955")||s.xa||s.wa?M.id.includes("Vendor: 045e")&&(M.id.includes("Product: 0b13")||M.id.includes("Product: 0b20")||M.id.includes("Product: 0b05")||M.id.includes("Product: 02e0")||M.id.includes("Product: 02fd"))?{ba:M,jc:!0,Ca:B=ii(s,M),Gb:s.ca,Hb:s.da,Fb:s.aa,Fa:Fn(s,M,"Standard Gamepad"),Gg:!0,ha:vs(s,B)}:"standard"==M.mapping?Fi(s,M):Hi(s,M)?{ba:M,jc:!1,Ca:B=ii(s,M),Gb:s.Ta.bind(s),Hb:s.$.bind(s,3,4),Fb:s.sa,Fa:Fn(s,M,"Dual Sense Gamepad"),ha:vs(s,B)}:Er(M)?{ba:M,jc:!1,Ca:B=ii(s,M),Gb:s.ab.bind(s),Hb:s.$.bind(s,3,4),Fb:s.sa,Fa:Fn(s,M,"Xbox Series Gamepad"),ha:vs(s,B)}:Vr(s,M)?{ba:M,jc:!1,Ca:B=ii(s,M),Gb:s.Va.bind(s),Hb:s.$.bind(s,2,5),Fb:s.Sa,Fa:Fn(s,M,"Xbox Series Wired Gamepad"),ha:vs(s,B)}:(g.e("{515a922}","{be4bfd9}",M),null):{ba:M,jc:!0,Ca:B=ii(s,M),Gb:s.ca,Hb:s.$a,Fb:s.aa,Fa:Fn(s,M,"Nvidia Shield Gamepad"),ha:vs(s,B)}}(s,M);if(q){s.hapticsSupported=s.hapticsSupported||Rs(q.ba),ka(s);const Je=s.j;var Se=s.h[B],be=s.s;const _t=pa(M);return s.h[B]=q,void 0===s.J[B]&&(s.J[B]=0),Se&&Da(s,M,B)?s.h[B].ha=Se.ha:(0==s.s&&(s.gamepadPollInterval=s.qa,Do(s)),s.s++,2===q.Ca?(Ql(s,q),s.U.set(q.ha,B)):($i(s,B,_t),s.Xb.set(q.ha,B))),Se=Se?"Changing":"Adding",(M=Je!==s.j)?g.i("{515a922}","{96051ae}",Se,B,_t,q.ba.id):be!=s.s&&g.i("{515a922}","{98be0dd}",Se,B,q.ba.id),M}for(be of s.l)be.Tc(M);return io(s,B)}for(q of s.l)q.Tc(M);return io(s,B)}function io(s,M,B=!1,q){var Se,be;let Je=s.h[M];if(Je){g.i("{515a922}","{1b26b8a}",M,Je.ba.id);const _t=Je.Ca,Yt=s.M[M];if(Yt){const $t=performance.now()-Yt.timestamp;3e3<=$t&&Yt.axes.some(Sn=>.5<Math.abs(Sn))&&(g.w("{515a922}","{fde5612}",$t,Yt.axes.join()),null===(Se=s.G)||void 0===Se||Il(Se,"GamepadStuck",Je.ba.id,$t.toString(),Yt.axes.join()))}if(B){const[$t,Sn]=function rs(s){let M=["-1","-1"];return(s=/Vendor:[ ]+([\w\d]+).+Product:[ ]+([\w\d]+)/.exec(s))&&3<=s.length&&(M=[s[1],s[2]]),M}(Je.ba.id);null===(be=s.G)||void 0===be||Fu(be,Je.Fa.Bd,$t,Sn,Je.ba.index,!!Je.ba.g&&0<Je.ba.g.length,q??function vc(s,M){let B=!1;for(const q of s.h)if(q){M===q.ba.index&&(B=!0);break}return B}(s,Je.ba.index),Je.Fa.state,Nr(Je.Fa))}if(delete s.h[M],delete s.J[M],delete s.M[M],s.hapticsSupported=function wl(s){let M=!1;for(let B of s.h)B&&(M=M||Rs(B.ba));return M}(s),ka(s),s.s--,0==s.s&&(s.gamepadPollInterval=100,Do(s)),2!==_t)return s.Xb.delete(Je.ha),Ho(s,Je.ha);Ro(s,Je),s.U.delete(Je.ha)}return!1}function Do(s){0!=s.N&&(clearInterval(s.N),s.N=0),s.N=s.H&&!jt?window.setInterval(s.Qa,s.gamepadPollInterval):0}function pa(s){return s.id.includes("Xbox")||s.id.includes("xinput")}function Rs(s){var M;return"dual-rumble"==(null===(M=s.vibrationActuator)||void 0===M?void 0:M.type)}function ka(s){var M,B;s.O=s.H&&s.hapticsSupported;var Se,q=s.O;if(s.ta!=q&&(s.ta=q,s.allowHaptics))for(const be of s.l)null===(Se=be.Fg)||void 0===Se||Se.call(be,q);if(!s.O){q=navigator.getGamepads();for(let be of q)be&&(s.P[be.index]=0,s.R[be.index]=0,null===(B=null===(M=be.vibrationActuator)||void 0===M?void 0:M.playEffect)||void 0===B||B.call(M,"dual-rumble",tt))}}function Da(s,M,B){var q,Se;return null!=M.id&&M.id==(null===(Se=null===(q=s.h[B])||void 0===q?void 0:q.ba)||void 0===Se?void 0:Se.id)}function Ql(s,M){var B;switch(M.Ca){case 3:g.e("{515a922}","{ea001a4}",M.ba.id);break;case 2:for(const q of s.l)null===(B=q.gg)||void 0===B||B.call(q,M.ha);break;default:g.e("{515a922}","{36eeed4}",M.ba.id)}}function Ro(s,M){var B;switch(M.Ca){case 3:g.e("{515a922}","{2b2d286}",M.ba.id);break;case 2:for(const q of s.l)null===(B=q.Of)||void 0===B||B.call(q,M.ha);break;default:g.e("{515a922}","{fafe5f9}",M.ba.id)}}function oc(s){switch(Number.parseFloat((s??0).toFixed(5))){case.71429:return 4;case-.42857:return 8;case-1:return 1;case.14286:return 2;case 1.28571:return 0;case 1:return 5;case-.71429:return 9;case.42857:return 6;case-.14286:return 10;default:return 0}}function sc(s,M){return(0>M?1:0)|(0<M?2:0)|(0>s?4:0)|(0<s?8:0)}function wa(s,M,B,q){s.buttons|=M,s.Kb|=B,0===s.axes.length?s.axes=[q[0],q[1],q[2],q[3]]:(s.axes[0]=2==s.axes[0]||s.axes[0]!==q[0]?2:s.axes[0],s.axes[1]=2==s.axes[1]||s.axes[1]!==q[1]?2:s.axes[1],s.axes[2]=2==s.axes[2]||s.axes[2]!==q[2]?2:s.axes[2],s.axes[3]=2==s.axes[3]||s.axes[3]!==q[3]?2:s.axes[3])}function yl(s,M){e:{for(let B=0;B<s.v.length;B++){const q=s.v[B];if(q.tc===M.tc&&q.Cc===M.Cc&&q.Dc===M.Dc&&q.vb===M.vb){M=B;break e}}M=-1}-1!==M&&s.v.splice(M,1)}function Jl(s){s.H=!0,yt(s),ka(s),Po&&(s.windowAddEventListener("gamepadconnected",s.oa),s.windowAddEventListener("gamepaddisconnected",s.pa),Do(s),s.F&&s.m.start(),Dt(s,!0))}function Vl(s,M,B,q){if(s.O){var Se=s.h[M];if(Se){let $t=Se.ba;if($t)if(0!=B||0!=q){var _t,Yt,be=performance.now(),Je=be-s.ga[M];s.P[M]=B/65535,s.R[M]=q/65535,(!Se.Gg||500<Je)&&(s.ga[M]=be,null===(Yt=null===(_t=$t.vibrationActuator)||void 0===_t?void 0:_t.playEffect)||void 0===Yt||Yt.call(_t,"dual-rumble",{startDelay:0,duration:1e3,weakMagnitude:s.R[M],strongMagnitude:s.P[M]}))}else s.ga[M]=performance.now(),s.P[M]=0,s.R[M]=0,null===(Je=null===(be=$t.vibrationActuator)||void 0===be?void 0:be.playEffect)||void 0===Je||Je.call(be,"dual-rumble",tt)}}}function ol(s){return yt(s),Dt(s),s.j}var to=class{constructor(s,M){this.N=this.s=this.j=0,this.gamepadPollInterval=100,this.qa=4,this.P=[],this.R=[],this.ga=[],this.ta=this.O=this.hapticsSupported=!1,this.allowHaptics=!0,this.F=this.H=!1,this.ja=0,this.Z=this.ua=this.wa=this.xa=this.S=this.fa=this.ea=this.va=this.ka=!1,this.maxSchedulingDelay=0,this.v=[],this.W=this.L=this.T=!1,this.Da=!0,this.na=this.bb=!1,this.Xb=new Map,this.U=new Map,this.windowAddEventListener=M&&M.windowAddEventListener?M.windowAddEventListener.bind(window):window.addEventListener.bind(window),this.windowRemoveEventListener=M&&M.windowRemoveEventListener?M.windowRemoveEventListener.bind(window):window.removeEventListener.bind(window),this.oa=this.Na.bind(this),this.pa=this.Oa.bind(this),this.Qa=this.ra.bind(this),this.h=[],this.M=[],this.J=[],this.l=[],this.u=s;const B=s.osVer;this.ea=(s=("iOS"==(M=s.os)||"iPadOS"==M)&&"Safari"==s.browser)&&B.startsWith("13"),this.fa=s&&B.startsWith("14"),this.va=s&&"12-"==B,this.S="ChromeOS"==M,this.xa="WebOS"==M,this.wa="Tizen"==M,this.ua="Android"==M,this.g={Lb:0,Nc:!1,pb:!1,Yd:0,Zd:0,Xd:[],$d:!1},this.cb=new Gl(this.g),yt(this),this.Ka=!hi,rt(this),g.d("{515a922}","{b0c674b}")}ad(){return this.F}Db(){for(const s of this.l)s.Db(this.j)}Na(s){uo(this,s.gamepad,s.gamepad.index)&&this.Db()}Oa(s){io(this,s.gamepad.index,!0)&&this.Db()}ca(s){return((s=s.buttons)[0].value?4096:0)|(s[1].value?8192:0)|(s[2].value?16384:0)|(s[3].value?32768:0)|(s[4].value?256:0)|(s[5].value?512:0)|(s[8]&&s[8].value?32:0)|(s[9]&&s[9].value?16:0)|(s[10]&&s[10].value?64:0)|(s[11]&&s[11].value?128:0)|(s[12]&&s[12].value?1:0)|(s[13]&&s[13].value?2:0)|(s[14]&&s[14].value?4:0)|(s[15]&&s[15].value?8:0)|(s[16]&&s[16].value?65536:0)|(s[17]&&s[17].value?131072:0)}da(s){var M,B;s=s.buttons;let q=Math.round(255*(null===(M=s[6])||void 0===M?NaN:M.value));return(255&Math.round(255*(null===(B=s[7])||void 0===B?NaN:B.value)))<<8|255&q}$a(s){var M,B;s=s.buttons;let q=Math.round(255*(null===(M=s[7])||void 0===M?NaN:M.value));return(255&Math.round(255*(null===(B=s[6])||void 0===B?NaN:B.value)))<<8|255&q}$(s,M,B){return(255&Math.round(127.5*(B.axes[M]+1)))<<8|255&Math.round(127.5*(B.axes[s]+1))}aa(s){return s.axes}Ua(s){return[s.axes[0],-s.axes[1],s.axes[2],-s.axes[3]]}sa(s){return[s.axes[0],s.axes[1],s.axes[2],s.axes[5]]}Sa(s){return[s.axes[0],s.axes[1],s.axes[3],s.axes[4]]}Za(s){var M,B,q,Se,be,Je;let _t=s.buttons;return(null!==(M=_t[0])&&void 0!==M&&M.value?4096:0)|(null!==(B=_t[1])&&void 0!==B&&B.value?8192:0)|(null!==(q=_t[2])&&void 0!==q&&q.value?16384:0)|(null!==(Se=_t[3])&&void 0!==Se&&Se.value?32768:0)|(null!==(be=_t[4])&&void 0!==be&&be.value?256:0)|(null!==(Je=_t[5])&&void 0!==Je&&Je.value?512:0)|(0<(s=s.axes)[5]?1:0)|(0>s[5]?2:0)|(0>s[4]?4:0)|(0<s[4]?8:0)}Ta(s){var M,B,q,Se,be,Je,_t,Yt,$t,Sn;let In=s.buttons;return s=this.S?sc(s.axes[6],s.axes[7]):oc(s.axes[9]),(null!==(M=In[1])&&void 0!==M&&M.value?4096:0)|(null!==(B=In[2])&&void 0!==B&&B.value?8192:0)|(null!==(q=In[0])&&void 0!==q&&q.value?16384:0)|(null!==(Se=In[3])&&void 0!==Se&&Se.value?32768:0)|(null!==(be=In[4])&&void 0!==be&&be.value?256:0)|(null!==(Je=In[5])&&void 0!==Je&&Je.value?512:0)|(null!==(_t=In[8])&&void 0!==_t&&_t.value?32:0)|(null!==(Yt=In[9])&&void 0!==Yt&&Yt.value?16:0)|(null!==($t=In[10])&&void 0!==$t&&$t.value?64:0)|(null!==(Sn=In[11])&&void 0!==Sn&&Sn.value?128:0)|s}ab(s){var M,B,q,Se,be,Je,_t,Yt,$t,Sn;let In=s.buttons;return s=oc(s.axes[9]),(null!==(M=In[0])&&void 0!==M&&M.value?4096:0)|(null!==(B=In[1])&&void 0!==B&&B.value?8192:0)|(null!==(q=In[3])&&void 0!==q&&q.value?16384:0)|(null!==(Se=In[4])&&void 0!==Se&&Se.value?32768:0)|(null!==(be=In[6])&&void 0!==be&&be.value?256:0)|(null!==(Je=In[7])&&void 0!==Je&&Je.value?512:0)|(null!==(_t=In[10])&&void 0!==_t&&_t.value?32:0)|(null!==(Yt=In[11])&&void 0!==Yt&&Yt.value?16:0)|(null!==($t=In[13])&&void 0!==$t&&$t.value?64:0)|(null!==(Sn=In[14])&&void 0!==Sn&&Sn.value?128:0)|s}Va(s){var M,B,q,Se,be,Je,_t,Yt,$t,Sn;let In=s.buttons;return s=sc(s.axes[6],s.axes[7]),(null!==(M=In[0])&&void 0!==M&&M.value?4096:0)|(null!==(B=In[1])&&void 0!==B&&B.value?8192:0)|(null!==(q=In[2])&&void 0!==q&&q.value?16384:0)|(null!==(Se=In[3])&&void 0!==Se&&Se.value?32768:0)|(null!==(be=In[4])&&void 0!==be&&be.value?256:0)|(null!==(Je=In[5])&&void 0!==Je&&Je.value?512:0)|(null!==(_t=In[6])&&void 0!==_t&&_t.value?32:0)|(null!==(Yt=In[7])&&void 0!==Yt&&Yt.value?16:0)|(null!==($t=In[9])&&void 0!==$t&&$t.value?64:0)|(null!==(Sn=In[10])&&void 0!==Sn&&Sn.value?128:0)|s}Wb(){for(const s of this.l)s.Wb(this.g.Yd,this.g.Zd,this.g.Lb,this.g.Xd,this.j)}ra(){var s,M=performance.now();this.ya&&(this.maxSchedulingDelay=Math.max(this.maxSchedulingDelay,M-this.ya-this.gamepadPollInterval)),this.ya=M,Dt(this);let B=M=0;for(let $t of this.h){if(!$t)continue;const Sn=Qn($t.ba.timestamp);let In=$t.ba;if(!Bt(this,In))continue;if($t.ba.timestamp<=this.J[In.index]){this.Pa&&5e3<=performance.now()-$t.ba.timestamp&&this.Pa();continue}this.J[In.index]=$t.ba.timestamp;const ci=this.M[In.index];var Se,q=new Fe($t);if((Se=ci)&&(Se=ci.buttons==q.buttons&&ci.Kb==q.Kb)){e:{Se=ci.axes;for(var be=0;be<Se.length;be++)if(.01<Math.abs(Se[be]-q.axes[be])){Se=!0;break e}Se=!1}Se=!Se}if(!Se){if(this.M[In.index]=q,q=$t.Hb(In),Se=$t.Gb(In),be=$t.Fb(In),Io)if(Se&(V(this.u)?64:128)){if(this.ka){this.ka=!1;var Je=performance.now();Je<this.ja+500?(ht(this),this.ja=0):this.ja=Je}}else this.ka=!0;for(let Si of this.v){Je=void 0;var _t=Si.tc,Yt=Si.Dc;const er=(Si.Cc|_t)===Se;Yt=!!(255&Yt)==229.5<=(255&q)&&!!(65280&Yt)==58752<=(65280&q);const fi=!((null!==(Je=ci?.buttons)&&void 0!==Je?Je:0)&_t||!(Se&_t));er&&Yt&&fi&&Si.vb()}switch($t.Ca){case 1:for(const Si of this.l)Si.Yc(B,In.index,$t.ha,Se,q,be,Sn,this.j,In.id);B++;break;case 2:for(const Si of this.l)null===(s=Si.Vc)||void 0===s||s.call(Si,In.index,$t.ha,Se,q,be,$t.ba.timestamp,this.j,In.id)}M++,wa($t.Fa,Se,q,be)}}if(M&&gi(Nt()),B)for(const $t of this.l)$t.Wc(B);this.g.pb&&this.g.$d&&(this.Wb(),this.g.$d=!1,this.C&&wa(this.C,this.g.Yd,this.g.Zd,this.g.Xd))}getVirtualGamepadHandler(){return this.cb}};function Lo(s,M,B,q){var Se=[];Se[0]=-.1<q[0]&&.1>q[0]?0:q[0],Se[1]=-.1<q[1]&&.1>q[1]?0:q[1],Se[2]=-.1<q[2]&&.1>q[2]?0:q[2],Se[3]=-.1<q[3]&&.1>q[3]?0:q[3],q=Se[s.Vf],Se=Se[s.Wf];const be=4-3*Math.min(1,Math.sqrt(q*q+Se*Se));s.Hc=q*s.scale/be,s.Ic=Se*s.scale/be,M=!!(4224&M)||58752<=(65280&B),B=229.5<=(255&B),q=s.uc,Se=s.vc,s.uc=M,s.vc=B,!M&&q&&zo(s,0,!1),!B&&Se&&zo(s,2,!1),M&&!q&&zo(s,0,!0),B&&!Se&&zo(s,2,!0)}function zo(s,M,B){M=new MouseEvent(B?s.zd:s.Wd,{button:M,buttons:(s.uc?1:0)|(s.vc?2:0)}),s.df.dispatchEvent(M)}var ps=class{constructor(s,M){this.Lc=0,this.Bg=8,this.ub=this.tb=this.Ic=this.Hc=0,this.vc=this.uc=!1,this.scale=12,this.hc="mousemove",this.zd="mousedown",this.Wd="mouseup",this.Vf=2,this.Wf=3,this.u=M,this.df=s,this.Dg=this.Cg.bind(this),V(this.u)&&(this.Vf=0,this.Wf=1)}Yc(s,M,B,q,Se,be){Lo(this,q,Se,be)}Vc(s,M,B,q,Se){Lo(this,B,q,Se)}Cg(){this.tb=Math.sign(this.tb)!=Math.sign(this.Hc)?this.Hc:this.tb+this.Hc,this.ub=Math.sign(this.ub)!=Math.sign(this.Ic)?this.Ic:this.ub+this.Ic;var s=0;let M=0;if((1<=this.tb||-1>=this.tb)&&(s=Math.trunc(this.tb),this.tb-=s),(1<=this.ub||-1>=this.ub)&&(M=Math.trunc(this.ub),this.ub-=M),0!=s||0!=M){let B;s={movementX:s,movementY:M,isPrimary:!0},B="pointerrawupdate"==this.hc||"pointermove"==this.hc?new PointerEvent(this.hc,s):new MouseEvent("mousemove",s),this.df.dispatchEvent(B)}}start(){this.Lc&&this.stop(),this.Lc=window.setInterval(this.Dg,this.Bg)}stop(){this.Lc&&(clearInterval(this.Lc),this.Lc=0)}reset(){this.uc&&zo(this,0,!1),this.vc&&zo(this,2,!1),this.tb=this.ub=this.Hc=this.Ic=0,this.uc=this.vc=!1}Db(){}Wc(){}Wb(){}Tc(){}},el=class{constructor(){this.y=this.x=0}jf(){return this.x}kf(){return this.y}update(s,M){return this.x=s,this.y=M,!0}},Za=class{constructor(){this.l=this.j=this.o=this.m=this.F=this.C=this.s=this.h=this.g=0,this.v=!1}jf(){return this.g}kf(){return this.h}update(s,M,B){if(0===s&&0===M)return this.v?this.l=this.j=0:this.v=!0,!1;if(this.v=!1,0===this.j&&0===this.l){if(B<this.s)return this.j=s,this.l=M,!1}else s+=this.j,M+=this.l,this.l=this.j=0;var q=s*this.g+M*this.h,Se=s*s+M*M,be=this.g*this.g+this.h*this.h,Je=!0;if(.95>B-this.s&&0>q&&0!==be&&q*q>.81*Se*be&&(q=Math.sqrt(Se)/Math.sqrt(be),.5<(q=Math.abs(q-Math.trunc(q)))&&(q=1-q),.1>q&&(Je=!1)),q=s-this.g,Se=M-this.h,Je&&(Je=2*(be=1+.1*Math.max(1,Math.min(16,B-this.s)))*Math.abs(this.C),be=2*be*Math.abs(this.F),!(Je=q*q+Se*Se<(be=Math.max(8100,Je*Je+be*be)))&&(this.m||this.o))){const _t=M-this.o;Je=(Je=s-this.m)*Je+_t*_t<be}return Je?(this.C=.4*this.C+.6*q,this.F=.4*this.F+.6*Se,this.g=s,this.h=M,this.s=B,this.o=this.m=0,!0):(this.m=s,this.o=M,!1)}};function tl(s){return{zf:"image/x-icon",scale:1,...s}}const Tl={style:"default",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAOAAAADAAAABwAAAAYAAAAOAAABDAAAAZwAAAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA////////////////////////////////////////////5////8P///+D////h////wf//98P///OD///xh///8Af///AP///wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",Ha:2,Ia:1},Ma=[{style:"none",Ma:"",Ha:0,Ia:0},Tl,{style:"text",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfvwAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAfPwAAAAAAAAAAAAAAAAAA/////////////////////////////////////+BA///Agf///z////8/////P////z////8/////P////z////8/////P////z////8/////P////z////8/////P////z////8/////P////z///+BA///Agf////////////8=",Ha:8,Ia:13},{style:"wait",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8AAAzzAAAHDgAABfoAAAb2AAADbAAAAfgAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAB+AAAA/wAAAaWAAAH/gAABWoAAA//AAAP/wAAAAAAAAAAAAA//////////////////////////////////////////+AAf//gAH//4AB//+AAf//wAP//8AD///gB///8A////gf///8P////D////w////8P////D////gf///wD///4Af//8AD///AA///gAH//4AB//+AAf//gAH///////8=",Ha:7,Ia:12},{style:"crosshair",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAABjAAABgMAAAQBAAAIAIAACACAABAAQAAAIAAAEABAAAgAgAAIAIAABgMAAAICAAABjAAAAFAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////4////5T///53P//+97///fff//333//79+//+AAP//v37//999///fff//53P///d3///5T////j////////8=",Ha:8,Ia:8},{style:"progress",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4AAAAiAAAAPgAAABwAAAYIAAAOCAAADAgAABwcAAAYNgAAOCoABDA+AAZwAAAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA///////////////////////+A////gP///4D///+A///5wf//8OP//+Dj///h4///wcH/98OA//ODgP/xh4D/8AeA//AP///wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",Ha:2,Ia:1},{style:"nwse-resize",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP4AAAB+AAAAPgAAAB4AAABuAAAA5gAAAcIAAEOAAABnAAAAdgAAAHgAAAB8AAAAfgAAAH8AAAAAAAAAAAAAA/////////////////////////////////////////////////////////////////////////////////wA///+AP///wD///+A////gP///wD//34A//88GP//GDz//wB+//8A////Af///wH///8A////AH///wA////////8=",Ha:9,Ia:8},{style:"nesw-resize",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfwAAAH4AAAB8AAAAeAAAAHYAAABnAAAAQ4AAAAHCAAAA5gAAAG4AAAAeAAAAPgAAAH4AAAD+AAAAAAAAAAAAA////////////////////////////////////////////////////////////////////////////////wA///8Af///AP///wH///8B////AP///wB+//8YPP//PBj//34A////AP///4D///+A////AP///gD///wA///////8=",Ha:9,Ia:9},{style:"ew-resize",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAEAABgBgAA4AcAAeAHgAPv98AH7/fgA+/3wAHgB4AA4AcAAGAGAAAgBAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////+/3///P8///j/H//w/w//4P8H/8AAA/+AAAH/AAAA/4AAAf/AAAP/4P8H//D/D//4/x///P8///7/f//////8=",Ha:13,Ia:8},{style:"ns-resize",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADgAAAB8AAAA/gAAAf8AAAP/gAAAAAAAADgAAAA4AAAAOAAAADgAAAA4AAAAOAAAADgAAAA4AAAAAAAAA/+AAAH/AAAA/gAAAHwAAAA4AAAAEAAAAAAAAAAAAAA//////////////////////////////////////+/////H////g////wH///4A///8AH//+AA///AAH///g////4P///+D////g////4P///+D////g////4P///AAH//4AD///AB///4A////Af///4P////H////7////////8=",Ha:9,Ia:12},{style:"move",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAABwAAAA+AAAAHAAAABwAAAAcAAAAHAAAABwAAAgACAAf3fwAP93+AB/d/AAIAAgAABwAAAAcAAAAHAAAABwAAAAcAAAAPgAAABwAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////f////j////wf///4D///8Af///wf///8H///vB7//zwef/4AAD/8AAAf+AAAD/wAAB/+AAA//zwef/+8Hv///B////wf///wB///+A////wf///+P////3///////////////////////8=",Ha:13,Ia:12},Tl,{style:"pointer",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH+AAAB/gAAA/4AAAP/AAAH/wAAB/8AAA//gAAP/4AAH/+AADttgABzbYAAY2wAAANsAAADYAAAAwAAAAMAAAAAAAAAAAAAA//////////////////////////////////////////////////////////////////////+Af///AD///wA///4AP//+AB///AAf//wAH//4AA//+AAP//AAD//gAA//wAAP/8IAH//mAH///gD///4H///+H////z////////8=",Ha:8,Ia:3},{style:"help",Ma:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABgAAAAYAAAYHAAAOAYAADADAABwwwAAYMMAAODDABDAZgAZwDwAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA/////////////+f////D////5//////////n////w///58P//8PB//+D4P//hzB//wYYf98OGH/ODhh/xh8A/8Afgf/AP8P/wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",Ha:2,Ia:1}];function rd(s){s.preventDefault()}function Wc(s){var M,B;return s.yb()&&2!=s.cursorType&&s.s.h&&(!s.g.qb||s.g.wd)&&(null===(B=null===(M=jl(s.D))||void 0===M?void 0:M.Cb())||void 0===B||B)}function ma(s){return 1===s.m||2===s.m}function ca(s){var M=Wc(s);const B=ma(s),q=s.o&&!s.g.qb;!s.Cb||!M||B&&q===s.Ka?!M&&B&&(document.exitPointerLock?(s.m=3,document.exitPointerLock()):s.m=0):(M=s.v).requestPointerLock&&3>s.P?(s.m=1,(M=M.requestPointerLock({unadjustedMovement:q}))&&(s.ua=!0,M.then(()=>{s.m=2,s.Ka=q,s.P=0}).catch(be=>{s.m=0,"NotSupportedError"===be.name&&q?(g.i("{70cc40b}","{08fd91e}"),s.o=!1,ca(s)):("UnknownError"==be.name?(s.P++,g.w("{70cc40b}","{9f2ba9f}",s.P)):g.e("{70cc40b}","{4cdd98f}",be.name,be.message),wd(s))}))):s.m=2}function Fs(s){var M,B;if(0===s.cursorType){var q=s.v.getBoundingClientRect(),Se=null!==(B=null===(M=s.v.parentElement)||void 0===M?void 0:M.getBoundingClientRect())&&void 0!==B?B:new DOMRect(0,0,0,0);M=q.left-Se.left+s.I.ma*s.I.Xa,q=q.top-Se.top+s.I.ma*s.I.Ra,s.j.style.position="absolute",s.j.style.left=M+"px",s.j.style.top=q+"px",s.j.style.zIndex="200"}}function fe(s){var M=s.j.getContext("2d");if(M&&(s.h.og=M,M=window.devicePixelRatio,s.h.wb!=M)){g.i("{70cc40b}","{b786ba9}",M),s.h.wb=M,s.h.$c=!0;for(const B of s.W.values())B.style=void 0;cr(s)}}function Ge(s,M){if(s.T&&s.J!==M)switch(s.C&&kg(s),s.J=M,s.C&&Du(s),M){case 1:s.H=4;break;case 2:s.H=8;break;case 3:s.H=16;break;default:s.H=0}}function It(s,M,B,q){M>=s.U.length?g.e("{70cc40b}","{de8eabe}",M):Sc(s,s.U[M],B,q)}function an(s){s.O&&(window.clearTimeout(s.O),s.O=0)}function Ni(s,M,B){bs(s,M-s.I.Xa,B-s.I.Ra)}function cr(s){s.h.Uc=!0}function jo(s,M){if(M instanceof PointerEvent){if(Id(M))return;M.preventDefault()}let B=performance.now();if(s.s.h&&(!Wc(s)||ma(s))&&(0!==M.movementX||0!==M.movementY)){s.ic(!0);var q=1,Se=0,be=s.g.qb,Je=s.ia.h,_t=Yt=>{if(s.R.update(Yt.movementX,Yt.movementY,Yt.timeStamp)){var $t=s.R.jf(),Sn=s.R.kf();if(be){if(s.g.wd){var In=s.S?s.h.wb:1;bs(s,s.g.rb+$t/In,s.g.sb+Sn/In)}else Ni(s,Yt.offsetX,Yt.offsetY);s.h.Uc=!0,$t=s.g.rb,Sn=s.g.sb}else s.S&&(Sn+=s.g.Rd,s.g.Qd=($t+=s.g.Qd)%(In=s.h.wb),s.g.Rd=Sn%In,$t/=In,Sn/=In);e:{if(In=s.ia,Yt=Qn(Yt.timeStamp),Se%q!=0&&0<In.j){const ci=In.l[In.j-1];if(ci.ib===be&&ci.wc===B){be?(ci.x=$t,ci.y=Sn):(ci.x+=$t,ci.y+=Sn);break e}}In.j==In.l.length?(In.l.push({ib:be,x:$t,y:Sn,captureTimestamp:Yt,jb:0,wc:B}),In.j++):((In=In.l[In.j++]).ib=be,In.x=$t,In.y=Sn,In.captureTimestamp=Yt,In.jb=0,In.wc=B)}Se++}};if(M instanceof PointerEvent&&s.$){const Yt=M.getCoalescedEvents();if(0==Yt.length)_t(M);else{M=Yt.length>2*(M=s.ia.g.length)?1:Math.max(M-s.ia.h-4,1),Yt.length>M&&(q=Math.ceil(Yt.length/M),s.V.Qc+=Yt.length);for(let $t of Yt)_t($t)}}else _t(M);1<s.l.zg&&0===Je&&s.ia.h>Je&&(s.ia.l[Je].jb=s.ia.h-Je)}}function bs(s,M,B){s.g.rb=Math.min(Math.max(M,0),s.I.eb),s.g.sb=Math.min(Math.max(B,0),s.I.Wa),cr(s)}function da(s,M){if(s.I.eb&&s.I.Wa){const B=M.Wa/s.I.Wa;s.g.rb*=M.eb/s.I.eb,s.g.sb*=B}s.I=M,Fs(s),fe(s)}function ir(s){return 1.499<=s&&1.999>s?2:Math.max(1,Math.floor(s+.001))}function us(s,M){const B=s.g.cursor;if(B.image){var q=s.h.wb,Se=s.h.og,be=B.image.width*M;M*=B.image.height;var Je=Math.ceil(be),_t=Math.ceil(M);Je!==s.j.width||_t!==s.j.height?(s.j.style.width=be/q+"px",s.j.style.height=M/q+"px",s.j.width=Je,s.j.height=_t,Se.scale(1,1),Se.imageSmoothingEnabled=!1):Se.clearRect(0,0,s.j.width,s.j.height),Se.drawImage(B.image,0,0,be,M)}else g.e("{70cc40b}","{bc9bdcd}")}function $c(s){s.h.md&&(s.h.md=!1,s.j.style.visibility="hidden")}function wd(s){s.v.style.cursor=!s.yb()||Wc(s)&&!ma(s)||2==s.cursorType?"default":0===s.cursorType?"none":s.g.style}function Ta(s,M){const B=()=>{if(s.g.yc=void 0,s.g.cursor=M,s.h.$c=!0,0===s.cursorType)cr(s);else{if(!M.style){var q=s.h.wb,Se=1,be=1;void 0!==s.Da&&(be=(Se=ir(q/M.scale))/q),us(s,Se),q=s.j.toDataURL("image/bmp"),Se=M.Ha*be,be*=M.Ia;const _t=s.Da;M.style=_t?`${_t}(url(${q}) ${s.h.wb}x) ${Se} ${be}, auto`:`url(${q}) ${Se} ${be}, auto`}s.g.style=M.style,wd(s)}};if(0!==s.cursorType&&M.style)B();else if("none"!==M.style)if(M.image)0!==M.image.width||0!==M.image.height?B():s.g.yc=M.image;else{const q=new Image;M.image=q,!q.decode&&q.decoding&&(q.decoding="sync"),q.src=`data:${M.zf};base64,${M.Ma}`,q.decode?(s.g.yc=q,q.decode().then(()=>{s.g.yc===q&&B()}).catch(()=>{s.g.yc===q&&(s.g.yc=void 0,Ta(s,s.U[1]))})):B()}else s.g.cursor=M,$c(s)}function Sc(s,M,B,q){const Se="none"!==M.style;!s.g.qb&&Se&&void 0!==B&&void 0!==q&&bs(s,B*s.I.eb/65535,q*s.I.Wa/65535),s.g.qb=Se,Se||(s.g.Qd=0,s.g.Rd=0),ca(s),Ta(s,M),wd(s)}function Xd(s){0!==s.M&&(window.clearTimeout(s.M),s.M=0)}function Du(s){2==s.cursorType?(s.N.hc=Cs(s),s.videoAddEventListener(Cs(s),s.L?s.ka:s.ja)):0!==s.J?(s.N.hc="pointerrawupdate",s.videoAddEventListener("pointerrawupdate",s.wa)):(s.N.hc=Cs(s),s.videoAddEventListener(Cs(s),s.va))}function wp(s){if(0<s.F.size){g.i("{70cc40b}","{041c67f}",s.F.size);for(const M of s.F)s.Ab(M,0)}}function kg(s){2==s.cursorType?s.videoRemoveEventListener(Cs(s),s.L?s.ka:s.ja):0!==s.J?s.videoRemoveEventListener("pointerrawupdate",s.wa):s.videoRemoveEventListener(Cs(s),s.va)}function Cs(s){return s.L?"pointermove":"mousemove"}var Ks=class{constructor(s,M,B,q,Se,be,Je,_t,Yt,$t,Sn,In){var ci,Si,er,fi,Ri,ur,vr,Hr,Ko,Fo,mr,os,Ja,Us,ua,kl,Wl,$l;this.Ba=s,this.s=In,this.W=new Map,this.U=Ma.map(tl),this.P=this.m=0,this.Cb=!1,this.F=new Set,this.ua=this.Ka=this.o=this.$=this.L=this.T=!1,this.H=this.J=0,this.ca=!1,this.ra={passive:!1},this.Z=!0,this.C=!1,this.O=this.M=0,this.Sa=()=>{this.O=0,Wc(this)&&!ma(this)&&(this.Cb=!0,ca(this))},this.u=Je,this.D=M,this.v=B,this.G=Se,this.Na=be,this.N=_t,this.V=Yt,this.ia=$t,this.l=Sn,q.onmessage=_o=>function yo(s,M){let B=new Uint8Array(M.data);switch(B[0]){case 0:case 1:M=B[1];let Je=B[2],_t=B[3];var q=B[4];let Yt=5,$t=()=>{const Si=B[Yt]+(B[Yt+1]<<8);return Yt+=2,Si};var Se="";0!=q&&(Se=B.subarray(Yt,Yt+q),Yt+=q,Se=new TextDecoder("utf-8").decode(Se));var be="";let Sn,In,ci;0!=(q=$t())&&(be=B.subarray(Yt,Yt+q),Yt+=q,be=new TextDecoder("utf-8").decode(be)),Yt+4<=B.byteLength&&(Sn=$t(),In=$t()),Yt+2<=B.byteLength&&(ci=$t()/100),0==B[0]?It(s,M,Sn,In):function xp(s,M,B,q,Se,be,Je,_t,Yt){if(0<be.length)s.W.set(M,B={Ma:be,Ha:B,Ia:q,zf:Se,scale:Yt||1});else if(void 0===(B=s.W.get(M)))return void g.e("{70cc40b}","{0196577}",M);Sc(s,B,Je,_t)}(s,M,Je,_t,Se,be,Sn,In,ci);break;case 10:s.Na.allowUnconfined&&function Gh(s,M){s.g.wd=M,ca(s)}(s,1==B[1])}}(this,_o),this.I={eb:B.clientWidth||window.screen.width,Wa:B.clientHeight||window.screen.height,Sf:1,Xa:0,Ra:0,videoWidth:0,videoHeight:0,Pc:0,offsetX:0,offsetY:0,ma:1},s=window.zoneless,this.documentAddEventListener=null!==(Si=null===(ci=s?.documentAddEventListener)||void 0===ci?void 0:ci.bind(document))&&void 0!==Si?Si:document.addEventListener.bind(document),this.documentRemoveEventListener=null!==(fi=null===(er=s?.documentRemoveEventListener)||void 0===er?void 0:er.bind(document))&&void 0!==fi?fi:document.removeEventListener.bind(document),this.videoAddEventListener=null!==(Hr=null!==(ur=null===(Ri=s?.videoAddEventListener)||void 0===Ri?void 0:Ri.bind(B))&&void 0!==ur?ur:null===(vr=s?.documentAddEventListener)||void 0===vr?void 0:vr.bind(document))&&void 0!==Hr?Hr:B.addEventListener.bind(B),this.videoRemoveEventListener=null!==(os=null!==(Fo=null===(Ko=s?.videoRemoveEventListener)||void 0===Ko?void 0:Ko.bind(B))&&void 0!==Fo?Fo:null===(mr=s?.documentRemoveEventListener)||void 0===mr?void 0:mr.bind(document))&&void 0!==os?os:B.removeEventListener.bind(B),this.fa=this.na.bind(this),this.xa=this.$a.bind(this),this.pa=this.oa.bind(this),this.ya=this.bb.bind(this),this.qa=this.Ta.bind(this),this.va=this.ab.bind(this),this.wa=this.Va.bind(this),this.ja=this.ga.bind(this),this.ka=this.Qa.bind(this),this.ta=this.Ua.bind(this),this.sa=this.Za.bind(this),this.da=this.Oa.bind(this),this.ea=this.Pa.bind(this),this.aa=!!be.windowedStreaming,this.cursorType=null!==(Us=null!==(Ja=function Ac(){switch(Ns){case"hw":return 1;case"sw":return 0;case"free":return 2}}())&&void 0!==Ja?Ja:be.cursorType)&&void 0!==Us?Us:this.aa?2:0,g.i("{70cc40b}","{3277c0e}",this.cursorType),this.g={qb:!1,wd:0===this.cursorType&&!be.allowUnconfined,rb:0,sb:0,Qd:0,Rd:0,style:"",cursor:this.U[0]},this.h={wb:1,Uc:!1,$c:!1,md:!1},this.Da=["image-set","-webkit-image-set"].find(_o=>CSS.supports("cursor",`${_o}(url(image.bmp) 2x) 0 0, auto`)),0===this.cursorType?(this.j=function Cc(s){let M="canvasId1";var B=document.getElementById(M);if(B&&B instanceof HTMLCanvasElement&&B.parentElement===s.parentElement)return B;if(B)do{M="canvasId"+Math.round(1e4*Math.random()),B=document.getElementById(M)}while(B);return(B=document.createElement("canvas")).id=M,B.style.touchAction="none",B.style.pointerEvents="none",B.style.willChange="transform",s.insertAdjacentElement("afterend",B),B}(this.v),this.j.style.visibility="hidden",this.j.style.display="none"):this.j=document.createElement("canvas"),Fs(this),fe(this),this.T="onpointerrawupdate"in this.v,this.$=(this.L=kt())&&"getCoalescedEvents"in PointerEvent.prototype&&"Firefox"!==Je.browser,g.i("{70cc40b}","{f30b8ee}",this.$?"supported":"not supported"),this.T&&(B=function Td(){const s=tr.mouseCoalesceInterval;if(void 0!==s)return new Map([[0,0],[4,1],[8,2],[16,3]]).get(s)}(),void 0!==B?Ge(this,B):G(Je)?Ge(this,3):Ge(this,1),g.i("{70cc40b}","{20be0c0}",this.H,void 0!==B?" (overridden)":"")),this.o=null!==(ua=be.unadjustedMovement)&&void 0!==ua?ua:Y(this.u)?!this.aa&&ue(this.u,84,0,4147,78):G(this.u)||K(this.u)?ue(this.u,86,0,4240,198):"Safari"===this.u.browser,be=G(Je)&&ue(this.u,84,0,4147,94)&&!ue(this.u,88,0,4324,139),be=Y(this.u)||!be||!ue(this.u,84,0,4147,94),this.R=(null!==(kl=za)&&void 0!==kl?kl:be)?new Za:new el,["pointerlockchange","mozpointerlockchange"].forEach(_o=>this.documentAddEventListener(_o,this.ta)),["pointerlockerror","mozpointerlockerror"].forEach(_o=>this.documentAddEventListener(_o,this.sa)),cd(this.s,0,this.da),cd(this.s,2,this.ea),this.S=!(!R(this.u)&&!$(this.u))||"Chrome"==Je.browser&&!ue(Je,99,0,4844,44)&&!K(Je),1===this.cursorType&&It(this,1),this.cb=1===this.cursorType&&(null===($l=null!==(Wl=Ka)&&void 0!==Wl?Wl:tr.pointerLockEscape)||void 0===$l||$l),this.lb=1===this.cursorType&&"Safari"===Je.browser,g.d("{70cc40b}","{ec7c4c5}")}uninitialize(){["pointerlockerror","mozpointerlockerror"].forEach(s=>this.documentRemoveEventListener(s,this.sa)),["pointerlockchange","mozpointerlockchange"].forEach(s=>this.documentRemoveEventListener(s,this.ta)),uc(this.s,0,this.da),uc(this.s,2,this.ea),an(this)}$a(s){Id(s)||(s.preventDefault(),this.na(s),2===this.cursorType&&this.v.setPointerCapture(s.pointerId))}na(s){var M;null===(M=this.D.R)||void 0===M||2==M.g&&(g.i("{4c846ba}","{89b1a9f}"),Xm(M),ap(M),_f(M)),yh(this.s,!0),this.Cb=!0,M=Qn(s.timeStamp),Wc(this)&&!ma(this)?(ca(this),this.g.qb&&(Ni(this,s.offsetX,s.offsetY),cr(this),xd(this.l,this.g.rb,this.g.sb,M))):(this.lb&&this.g.qb&&(an(this),this.O=window.setTimeout(this.Sa,500)),gi(Nt()),this.Ib(s.button,M))}bb(s){Id(s)||(s.preventDefault(),this.oa(s))}oa(s){gi(Nt()),this.Ab(s.button,Qn(s.timeStamp))}Ta(s){this.aa&&s.target!==this.v||(Ed(this.l,s.deltaY,Qn(s.timeStamp)),s.preventDefault())}Qa(s){if(!Id(s)){if(s.preventDefault(),-1!==s.button){let M;switch(s.button){case 1:M=2;break;case 2:M=1;break;default:M=s.button}const B=Qn(s.timeStamp);s.buttons&1<<M?this.Ib(s.button,B):this.Ab(s.button,B)}this.ga(s)}}ga(s){Ni(this,s.offsetX,s.offsetY),xd(this.l,this.g.rb,this.g.sb,Qn(s.timeStamp))}ab(s){jo(this,s)}Va(s){const M=0<this.l.ia.h;jo(this,s),!M&&0<this.l.ia.h&&((s=performance.now()-this.l.tg)>=this.H?hs(this.l):function zd(s,M){s.Jb=window.setTimeout(()=>{s.Jb=0,hs(s)},M)}(this.l,this.H-s))}Pa(s){this.Cb=s,ca(this),wd(this)}Ua(){if(document.pointerLockElement instanceof HTMLElement)this.m=2;else{var s=2===this.m;this.m=0,Xd(this);var M=()=>{g.i("{70cc40b}","{d4b3de3}"),this.Cb=!1,wd(this)},B=this.Ba.Ya.has(27);this.cb&&s&&!B?this.M=window.setTimeout(()=>{M(),0!==this.M&&(Xd(this),Kl(this.Ba,!0))},50):(s&&M(),Kl(this.Ba,!1))}}Za(){this.ua||(this.m=0,this.o?(this.o=!1,g.e("{70cc40b}","{7599808}"),ca(this)):(g.e("{70cc40b}","{d633cd1}"),wd(this)))}yb(){return this.C}Oa(s){s?(this.s.j&&(this.Cb=!0,ca(this)),fe(this)):(ca(this),0!==this.M&&(Xd(this),Kl(this.Ba,!1)))}Ib(s,M){this.F.has(s)||(this.F.add(s),this.l.Ib(s,M))}Ab(s,M){this.F.has(s)&&(this.F.delete(s),this.l.Ab(s,M))}ic(s){this.Z!=s&&(cr(this),this.Z=s)}};function Id(s){return!(s.isPrimary&&"touch"!==s.pointerType&&"pen"!==s.pointerType)}const Ad=[{zc:8,ec:128,pd:mu(),Ub:27,Vb:[]},{zc:46,ec:128,pd:mu(),Ub:27,Vb:[]}];function Mm(s,M,B,q){1===s.I.ma&&(zc(s,M,q,B),s.J.delay(()=>{s.Ib(0,B)}))}function Mc(s,M){1===s.I.ma&&(Qd(s.J),s.Ab(0,M))}function Tp(s){var M=s.h;M.ca=!1,cr(M),1.1>s.I.ma&&od(s,s.I.offsetX,s.I.offsetY,1)}function Zd(s){return s.aa?(Yh(s),!1):s.v.h}function Hh(s,M){if(2===M.length){var B=s.h;B.ca=!0,cr(B),B=M[0],M=M[1];var q=Math.hypot(B.clientX-M.clientX,B.clientY-M.clientY),Se=Math.hypot(B.clientX-B.deltaX-(M.clientX-M.deltaX),B.clientY-B.deltaY-(M.clientY-M.deltaY));const be=s.j.getBoundingClientRect(),Je=pu(s);q=q/Se*s.I.ma,q=Math.min(Math.max(q,1),3),Se=(B.clientX+M.clientX)/2-be.left,Se=(q/s.I.ma-1)*(Se+=s.I.offsetX-Je.ob-(be.width-Se)/s.I.ma)*-1;let _t=(B.clientY+M.clientY)/2-be.top;_t+=s.I.offsetY-Je.vertical-(be.height-_t)/s.I.ma,_t=(q/s.I.ma-1)*_t*-1,_t+=s.I.offsetY+(B.deltaY+M.deltaY)/2,od(s,Se+=s.I.offsetX+(B.deltaX+M.deltaX)/2,_t,q)}}function Ng(s,M,B,q,Se){switch(Qd(s.J),Se){case 1:zc(s,M,q,B),s.J.delay(()=>{Kh(s,0,B)});break;case 2:s.ka++,qs&&0===s.F&&(s.F=window.setTimeout(()=>{2===s.ka?s.D.toggleOnScreenStats():3===s.ka&&s.D.toggleOnScreenStats(!0),Fg(s)},300)),Kh(s,2,B);break;case 3:s.ga++,qs&&0===s.F&&(s.F=window.setTimeout(()=>{2===s.ga?s.D.ja():3===s.ga&&Um(s.S),Fg(s)},300)),Kh(s,1,B);break;case 4:Kh(s,3,B);break;case 5:Kh(s,4,B)}}function Kl(s,M){M&&(Qs(s),g.i("{8bacfa5}","{f46c4da}"),_s(s.g,3,27,0),_s(s.g,4,27,0))}function Dd(s){mh(s),s.fa=window.setTimeout(()=>{s.S.send()},350)}function ph(s,M){(s.aa=M)&&15!==s.m&&(s.oa=s.m,s.toggleUserInput(!0)),M?zh(s).forEach(B=>s.documentAddEventListener(B,s.xa)):zh(s).forEach(B=>s.documentRemoveEventListener(B,s.xa))}function mh(s){0!==s.fa&&(window.clearTimeout(s.fa),s.fa=0)}function $h(s,M){if(!(s.na&&20===M.keyCode||D(s.u)&&20!==M.keyCode)){var B=16;if(s.O&&s.ja||!M.getModifierState("CapsLock")||(B|=1),s.$a&&(B|=96,M.getModifierState("NumLock")&&(B|=2),M.getModifierState("ScrollLock")&&(B|=4)),B!=s.ca){s.ca=B,(M=(s=s.g).fb(5)).setUint32(0,19,!0),M.setUint8(4,B);try{hs(s,M),g.d("{57a6a4d}","{56c9613}",B.toString(2))}catch(q){g.e("{57a6a4d}","{cbe483c}",q),s.G.za(q,"LockKeys state synchronize exception","{57a6a4d}.ts",0,0,!0)}}}}function od(s,M,B,q){s.I.ma=q;let Se=pu(s);Se.ob-=s.I.Xa,Se.vertical-=s.I.Ra;let be=Math.max(Se.vertical+Math.max(0,s.I.Wa-s.I.Pc+2*s.I.Ra),0),Je=Math.max(Se.vertical,0);Se.ob=Math.max(Se.ob,0),M=Math.min(Math.max(M,-1*Se.ob),Se.ob),B=Math.min(Math.max(B,-1*be),Je),s.j.style.transform=`translate3d(${M}px,${B}px,0px) scale3d(${q},${q},1)`,s.I.offsetX=M,s.I.offsetY=B,da(s.h,s.I)}function fh(s,M){var B;return s.P?s.o&&s.kb?(s=null!==(B=M.code)&&void 0!==B&&B.length?Va.get(M.code):Va.get(M.key))??0:(M=M.code?Va.get(M.code):Ha.get(M.key))??0:M.keyCode}function Yc(s,M){var B=0;let q;return M.ctrlKey&&!M.code.startsWith("Control")&&(B|=2),M.altKey&&!M.code.startsWith("Alt")&&(B|=4),M.metaKey&&!M.code.startsWith("Meta")&&(B|=8),D(s.u)&&1===M.key.length&&('!@#$%^&*()~_+{}|:"<>?'.includes(M.key)?q=1:"1234567890`-=[]\\;',./".includes(M.key)&&(q=0)),void 0===q&&M.shiftKey&&!M.code.startsWith("Shift")&&(q=1),B|(q??0)}function Qs(s){if(0<s.Ya.size){g.i("{8bacfa5}","{7998ee8}",s.Ya.size);for(const M of s.Ya)_s(s.g,4,M,0);s.Ya.clear()}}function Fg(s){window.clearTimeout(s.F),s.F=0,s.ka=0,s.ga=0}function Yh(s){ph(s,!1),s.M.emit("StreamingEvent",{streamingWarnings:{code:4}}),s.Td(),s.Ba.Df()}function zh(s){return[Cs(s.h),"pointerdown","touchstart"]}function ym(s,M){M=(new TextEncoder).encode(M),s.sendTextInput(M.buffer),s.textInputElement.value=""}function Ug(s){for(let M=s.length-1;0<=M;M--)if(void 0===ic.get(s.charAt(M)))return!1;return!0}function Ip(s,M){let B=!1;16&s.ca&&(B=!!(1&s.ca));for(let Se=0;Se<M.length;Se++){var q=ic.get(M.charAt(Se));if(!q)return void g.e("{8bacfa5}","{67554be}",M.charAt(Se));const be=q.vkCode;q=q.shift?1:0,65<=be&&90>=be&&B&&(q=~q),q&&_s(s.g,3,160,0,performance.now()),_s(s.g,3,be,q,performance.now()),_s(s.g,4,be,q,performance.now()),q&&_s(s.g,4,160,0,performance.now())}s.textInputElement.value=""}function pu(s){return{ob:s.I.eb*(s.I.ma-1)/2,vertical:s.I.Wa*(s.I.ma-1)/2}}function zc(s,M,B,q){Qd(s.J);const Se=M.getBoundingClientRect();M=(B.clientX-Se.left)/s.I.ma,B=(B.clientY-Se.top)/s.I.ma,s.ic(!0),Ni(s.h,M,B);const{rb:be,sb:Je}=s.h.g;xd(s.g,be,Je,q)}function Kh(s,M,B){s.Ib(M,B),s.J.delay(()=>{s.Ab(M,B)})}var Xh=class{constructor(s,M,B,q,Se,be,Je,_t,Yt,$t,Sn,In,ci,Si,er,fi,Ri){var ur,vr,Hr,Ko,Fo,mr,os,Ja,Us,ua,kl,Wl,$l,_o,Nl,hc,xc,gc,ud,Hd,Iu,jd;this.v=Si,this.ra=!1,this.Ya=new Set,this.m=0,this.kb=!1,this.P=!0,this.F=0,this.J=new Ap,this.T=!1,this.H=0,this.ja=this.qa=!1,this.fa=this.ga=this.ka=0,this.ua=this.ta="off",this.Z=new Map,this.W=new Map,this.pa=!1,this.Ta=()=>{g.d("{8bacfa5}","{9c2578a}"),Dd(this)},this.Sa=()=>{this.pa=!0},this.Qa=()=>{this.pa=!1},this.u=Sn,this.D=s,this.j=M,this.G=Se,this.Ba=In,this.S=ci,this.I={eb:M.clientWidth||window.screen.width,Wa:M.clientHeight||window.screen.height,Sf:1,Xa:0,Ra:0,videoWidth:0,videoHeight:0,Pc:0,offsetX:0,offsetY:0,ma:1},In=window.zoneless,this.windowAddEventListener=null!==(vr=null===(ur=In?.windowAddEventListener)||void 0===ur?void 0:ur.bind(window))&&void 0!==vr?vr:window.addEventListener.bind(window),this.windowRemoveEventListener=null!==(Ko=null===(Hr=In?.windowRemoveEventListener)||void 0===Hr?void 0:Hr.bind(window))&&void 0!==Ko?Ko:window.removeEventListener.bind(window),this.documentAddEventListener=null!==(mr=null===(Fo=In?.documentAddEventListener)||void 0===Fo?void 0:Fo.bind(document))&&void 0!==mr?mr:document.addEventListener.bind(document),this.documentRemoveEventListener=null!==(Ja=null===(os=In?.documentRemoveEventListener)||void 0===os?void 0:os.bind(document))&&void 0!==Ja?Ja:document.removeEventListener.bind(document),this.videoAddEventListener=null!==(Wl=null!==(ua=null===(Us=In?.videoAddEventListener)||void 0===Us?void 0:Us.bind(M))&&void 0!==ua?ua:null===(kl=In?.documentAddEventListener)||void 0===kl?void 0:kl.bind(document))&&void 0!==Wl?Wl:M.addEventListener.bind(M),this.videoRemoveEventListener=null!==(hc=null!==(_o=null===($l=In?.videoRemoveEventListener)||void 0===$l?void 0:$l.bind(M))&&void 0!==_o?_o:null===(Nl=In?.documentRemoveEventListener)||void 0===Nl?void 0:Nl.bind(document))&&void 0!==hc?hc:M.removeEventListener.bind(M),this.Na=this.Ka.bind(this),this.Pa=this.Oa.bind(this),this.va=this.wa.bind(this),this.sa=this.bb.bind(this),this.ea=this.da.bind(this),this.Va=this.Nb.bind(this),this.Ua=this.lb.bind(this),this.xa=this.cb.bind(this),this.ab=this.Mb.bind(this),this.L=this.Bb.bind(this),this.N=Yt,this.preventNavigation=!!Je.preventNavigation,Yt=new ja,this.g=new go(this,Yt,er,this.I,this.D,B,this.G,fi),this.R=new ps(this.j,this.u),this.h=new Ks(this,s,M,q,Se,Je,Sn,this.R,er,Yt,this.g,this.v),_t?br||re()?(this.s=new $o(this.j,this.videoAddEventListener,this.videoRemoveEventListener,this.g,this),g.i("{8bacfa5}","{60f3637}")):g.w("{8bacfa5}","{32104d3}"):g.i("{8bacfa5}","{6be89bf}"),!br&&!re()||ge(this.u)||(this.C=new Or(this.j,this.videoAddEventListener,this.videoRemoveEventListener,this)),this.M=be,this.ca=0,this.$a=Y(this.u),this.na=G(this.u),this.O=K(this.u),this.o="Android"===this.u.os,this.Da="VISIONPRO"===this.u.deviceModel,s="Safari"===this.u.browser,g.i("{8bacfa5}","{fa2e72c}",(M=!!Je.windowedStreaming)?"on":"off"),this.$a?(g.d("{8bacfa5}","{da5ae1d}"),this.$=[20,144,145]):this.na||"Linux"===this.u.os?(g.d("{8bacfa5}","{b7becf9}"),this.$=[]):(g.d("{8bacfa5}","{098ce9c}"),this.$=[20]),this.U=this.aa=!1,this.perf=PerformanceObserver?new PerformanceObserver(gu=>function jh(s,M){M.getEntriesByType("longtask").forEach(B=>{let q=Math.round(B.duration);var be,Se=He;Se.h&&(B={duration:{timestamp:B.startTime-Se.j,duration:q}},Se.g&&Se.g.postMessage(B)),null===(be=s.D.h)||void 0===be||((Se=be.g).L=Math.max(q,Se.L)),g.i("{8bacfa5}","{7071359}",q)})}(this,gu)):null,cd(this.v,2,this.va),g.d("{8bacfa5}","{cc9c05b}"),window.ResizeObserver?(this.Za=new ResizeObserver(()=>{this.da()}),this.Za.observe(this.j)):this.windowAddEventListener("resize",this.ea),(D(Sn)||$(Sn))&&window.IntersectionObserver&&(this.ya=new IntersectionObserver(()=>{this.da()},{threshold:[1]}),this.ya.observe(this.j)),this.j.addEventListener("resize",this.ea),this.windowAddEventListener("orientationchange",this.Ta),(Sn=window.visualViewport)&&(this.I.Pc=Sn.height,Sn.addEventListener("resize",this.Va)),this.l=$t,function ze(s,M){s.o&&(cs(s,s.o),Te(s,s.o)),s.o=M,s.l.push(s.o)}(this.l,this.g),this.g.Oc.push(this.l),function Ie(s,M){eo&&(s.m&&cs(s,s.m),s.m=M)}(this.l,this.R),this.l.G=this.G,this.wa(this.v.j),cd(this.v,0,this.sa),this.perf&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("longtask")&&this.perf.observe({entryTypes:["longtask"]}),fs&&Nt().initialize(this.j,this.u),(ge(this.u)||this.o||D(this.u))&&(this.textInputElement=Ri,this.o&&(this.ta=null!==(gc=null===(xc=this.textInputElement)||void 0===xc?void 0:xc.getAttribute("autocapitalize"))&&void 0!==gc?gc:"off",this.ua=null!==(Hd=null===(ud=this.textInputElement)||void 0===ud?void 0:ud.getAttribute("autocorrect"))&&void 0!==Hd?Hd:"off",null===(Iu=this.textInputElement)||void 0===Iu||Iu.setAttribute("autocapitalize","off"),null===(jd=this.textInputElement)||void 0===jd||jd.setAttribute("autocorrect","off"))),(qe||rr&&(s||M))&&(function Wh(s,M){if(M)for(const Se of M){if(!(M=Se.remote.code)||!(M=Va.get(M)))continue;var B=Se.remote.modifiers,q=[];1&B&&q.push(162),2&B&&q.push(164),4&B&&q.push(91),8&B&&q.push(160),B=q,q=Se.local.key;const be=Se.local.code;be?(q=Va.get(be))&&s.W.set(q,{zc:q,ec:Se.local.modifiers,pd:mu(),Ub:M,Vb:B}):q&&s.Z.set(q,{Jd:q,ec:Se.local.modifiers,pd:mu(),Ub:M,Vb:B})}else for(B of Ad)B.Jd?s.Z.set(B.Jd,B):B.zc&&s.W.set(B.zc,B)}(this,Je.streamingHotkeys),function gh(s){var M,B,q,Se,be,Je,_t;for(const Yt of s.W.values())g.i("{8bacfa5}","{e7c6e9b}",null===(M=Yt.zc)||void 0===M?void 0:M.toString(16),null===(B=Yt.ec)||void 0===B?void 0:B.toString(16),null===(q=Yt.Ub)||void 0===q?void 0:q.toString(16),null===(Se=Yt.Vb)||void 0===Se?void 0:Se.map($t=>$t.toString(16)));for(const Yt of s.Z.values())g.i("{8bacfa5}","{b5e3a31}",Yt.Jd,null===(be=Yt.ec)||void 0===be?void 0:be.toString(16),null===(Je=Yt.Ub)||void 0===Je?void 0:Je.toString(16),null===(_t=Yt.Vb)||void 0===_t?void 0:_t.map($t=>$t.toString(16)))}(this))}uninitialize(){var s,M,B,q,Se,be,Je;ph(this,!1);var _t=this.j.paused;if(_t=void 0!==_t?_t?"paused":"playing":"unknown",(this.j.paused||1>(null!==(s=this.j.currentTime)&&void 0!==s?s:1))&&Il(this.G,"VideoPaused",_t,null===(M=this.j.currentTime)||void 0===M?void 0:M.toFixed(2)),g.i("{8bacfa5}","{fdc8bf7}",_t,this.j.currentTime),null===(B=this.ya)||void 0===B||B.disconnect(),null===(q=this.Za)||void 0===q||q.disconnect(),this.g.stop(),this.perf&&this.perf.disconnect(),this.toggleUserInput(!1),this.windowRemoveEventListener("resize",this.ea),this.windowRemoveEventListener("orientationchange",this.Ta),this.j.removeEventListener("resize",this.ea),null===(Se=window.visualViewport)||void 0===Se||Se.removeEventListener("resize",this.Va),(s=this.l).s){for(var Yt of(M=!0,s.h))Yt&&(Yt.Fa.state=Kt(s,Yt.Fa.state,!0),io(s,Yt.ba.index,!0,M),M=!1);Ji(s),s.j=0,s.s=0,s.g.pb=!1,s.Db(),s.gamepadPollInterval=100,Do(s),s.h=[],s.Z=!1}-1<(s=(Yt=this.g).Oc.indexOf(this.l))&&Yt.Oc.splice(s,1),uc(this.v,2,this.va),this.R.stop(),cs(this.l,this.R),cs(this.l,this.g),this.T&&(cs(this.l,this.N),this.N.Mc(this.j)),this.h.uninitialize(),uc(this.v,0,this.sa),mh(this),null===(be=this.textInputElement)||void 0===be||be.setAttribute("autocapitalize",this.ta),null===(Je=this.textInputElement)||void 0===Je||Je.setAttribute("autocorrect",this.ua),g.d("{8bacfa5}","{b6b2756}")}Wb(){qa(this.g)&&this.l.Wb()}da(){var M,s=this.j;if(!(0>=s.videoWidth||0>=s.videoHeight)){var B=0,q=0;if(s.clientWidth/s.clientHeight>s.videoWidth/s.videoHeight){var Se=s.clientHeight/s.videoHeight,be=s.videoWidth*Se,Je=s.videoHeight*Se;q=(s.clientWidth-be)/2}else be=s.videoWidth*(Se=s.clientWidth/s.videoWidth),B=(s.clientHeight-(Je=s.videoHeight*Se))/2;var _t=1,Yt=1;this.I.eb&&this.I.Wa&&(_t=be/this.I.eb,Yt=Je/this.I.Wa),this.I.eb=be,this.I.Wa=Je,this.I.Sf=Se,this.I.Ra=B,this.I.Xa=q,this.I.videoWidth=s.videoWidth,this.I.videoHeight=s.videoHeight,od(this,this.I.offsetX*_t,this.I.offsetY*Yt,this.I.ma),da(this.h,this.I),null===(M=this.s)||void 0===M||(s=this.I,B=this.j.getBoundingClientRect(),Se=this.I.ma,M.F={ob:B.left+window.pageXOffset+this.I.Xa*this.I.ma,vertical:B.top+window.pageYOffset+this.I.Ra*this.I.ma},M.m=65535/s.eb,M.o=65535/s.Wa,M.m/=Se,M.o/=Se),s=this.I.Xa,(M=this.S).Ra=this.I.Ra,M.Xa=s,Dd(this)}}Nb(){this.I.Pc=window.visualViewport.height,od(this,this.I.offsetX,this.I.offsetY,this.I.ma)}lb(){g.d("{8bacfa5}","{b6fbd34}"),history.pushState(null,document.title,location.href)}Ka(s){var M,B;let q=this.pa;this.qa=!1;const Se=Qn(s.timeStamp);if(this.v.h){(function Qa(s,M){var B;if(null!==(B=jl(s.D))&&void 0!==B&&B.isVisible())return!1;if(s.na)switch(M.code){case"Tab":return!M.altKey;case"ZoomToggle":case"SelectTask":case"BrightnessDown":case"BrightnessUp":case"AudioVolumeMute":case"AudioVolumeDown":case"AudioVolumeUp":return!1}return!0})(this,s)&&s.preventDefault();var Je,be=!(!this.O||!this.ja)&&"CapsLock"==s.code;be&&(q=q||be),$h(this,s),!(Je="CapsLock"==s.code&&("Alphanumeric"==s.key||"Katakana"==s.key||"Hiragana"==s.key))&&(Je="KanaMode"==s.code)&&(Je="Hiragana"==(Je=s.key)||"Katakana"==Je||"Romaji"==Je||"KanaMode"==Je),Je=!!Je;var _t="Lang1"==s.code||"HangulMode"==s.key;if(q=q||Je||_t,!this.$.includes(s.keyCode)||Je||be)if(0===(be=be?160:fh(this,s)))this.ra=!0,this.M.emit("TextComposition",{compositionText:s.key,imeRecommendation:!0});else if(this.ra&&(this.ra=!1,this.M.emit("TextComposition",{compositionText:""})),!this.Ya.has(be)){this.Ya.add(be),Je=!1;var Yt=jl(this.D);if(_t=void 0,187==be){var $t;if(null===($t=(Je=this.D).R)||void 0===$t)var Sn=0;else 1==$t.g?(g.i("{4c846ba}","{1f67b97}"),$t.g=2,Sn=!0):Sn=!1;Sn?(Rl(Je,{latencyTrigger:!0}),Je=!0):Je=!1,Je=!Je}else if(s.ctrlKey&&s.altKey)if(!qs&&!ea||119!=be&&219!=be)if(qs)switch(be){case 48:var In="UNSUPPORTED";if((Sn=this.h).T)switch(Ge(Sn,(Sn.J+1)%4),Sn.J){case 1:In="4ms";break;case 2:In="8ms";break;case 3:In="16ms";break;default:In="OFF"}qc(Sn.D,"Non-vsync mouse events: "+In),g.i("{70cc40b}","{bac28ff}",In);break;case 49:this.D.Bb();break;case 56:this.D.sendCustomMessage({messageType:"GpuViewStartRequest",messageRecipient:"GPUViewTraceControl",data:"GpuView"}),g.i("{93c7910}","{0915cd3}");break;case 68:var ci;null===(ci=(Sn=this.D).R)||void 0===ci?In=0:0==ci.g?(ci.g=1,g.i("{4c846ba}","{008dc86}"),ap(ci),_f(ci),In=!0):In=!1,In&&Rl(Sn,{pcmDumpTrigger:!0});break;case 71:this.Mc();break;case 76:null==Yt||zg(Yt,!Yt.isVisible()),ca(this.h);break;case 83:Um(this.S);break;case 115:(Sn=this.D).pa?(nc(),Sn.pa=!1,cu(Sn),qc(Sn,"Profiler: OFF, Stats: OFF")):(nm(Sn),Km(Sn),qc(Sn,"Profiler: ON, Stats: ON"));break;case 116:Ju(Sn=this.D)?(cu(Sn),qc(Sn,"Stats: OFF")):(Km(Sn),qc(Sn,"Stats: ON"));break;case 117:this.D.toggleOnScreenStats(s.shiftKey);break;case 118:case 192:(Sn=this.D).perfIndicator=!Sn.perfIndicator,Rl(Sn,{perfIndicator:{on:Sn.perfIndicator}});break;case 120:(Sn=this.h).o=!Sn.o,qc(Sn.D,"UnadjustedMovement: "+(Sn.o?"ON":"OFF")),g.i("{70cc40b}","{796c5cb}",Sn.o?"ON":"OFF");break;case 189:this.P=!this.P,qc(this.D,"Position dependent keys: "+(this.P?"ON":"OFF")),g.i("{8bacfa5}","{61d2ab5}",this.P?"ON":"OFF");break;case 77:this.D.ja();break;default:Je=!0}else Je=!0;else this.D.toggleStutterIndicator();else{e:{if((s.ctrlKey||s.shiftKey||s.metaKey||s.altKey)&&((_t=this.W.get(be))||(_t=this.Z.get(s.key)),_t)){128==($t=_t.ec)&&($t=this.O?4:1),ci=s.ctrlKey;const er=s.altKey,fi=s.metaKey,Ri=s.shiftKey;if((1&$t?ci:!ci)&&(2&$t?er:!er)&&(4&$t?fi:!fi)&&(8&$t?Ri:!Ri))break e}_t=void 0}if(_t){for(Sn of(Yt=Yc(this,s),_t.pd))Yt!=($t=Yt&~Rc(Sn))&&_s(this.g,4,Sn,Yt=$t,Se),this.Ya.delete(Sn);for(In of _t.Vb)Yt|=Rc(In),_s(this.g,3,In,Yt,Se);for(var Si of(_s(this.g,3,_t.Ub,Yt,Se),_s(this.g,4,_t.Ub,Yt,Se),_t.Vb))Yt&=~Rc(Si),_s(this.g,4,Si,Yt,Se);this.Ya.delete(be)}else if(null!=Yt&&Yt.isVisible())if(13==be)Yt.toggle(),ca(this.h);else if(82==be)Yt.reset(),ca(this.h);else if(65==be)Su(Yt,!Yt.Yb.checked);else if(83==be)if(Yt.dc.length){for(Sn=`LDAT_${(new Date).toISOString()}.csv`,In=["Sample #,Total,Render,Decode,Begin,Server + Rtd + Receive,Input Callback"],Si=0;Si<Yt.dc.length;Si++)$t=$p(Yt.dc[Si]),In.push([Si,$t.total,$t.Pf,$t.decode,$t.We,$t.Tf,$t.pf].join());hl([In.join("\n")],Sn,"text/plain")&&g.i("{50c79eb}","{690879e}",Sn)}else g.w("{50c79eb}","{2884507}");else 67==be?(g.i("{50c79eb}","{d2811a7}"),Yt.Qb.value="50",Yt.Rb.value="50",Yp(Yt,.5,.5)):77==be?Yt.zb.checked=!Yt.zb.checked:Je=!0;else Je=!0}Je&&(gi(Nt()),_s(this.g,3,be,Yc(this,s),Se)),"Hankaku"!=s.key&&"Zenkaku"!=s.key||192!=be||(q=!0),this.O&&s.metaKey&&!_t&&(q=!0),this.o&&this.kb&&("Backspace"==s.code&&(q=!0),""==s.code&&"Enter"==s.key&&(Je=new CompositionEvent("compositionend",{data:null===(M=this.textInputElement)||void 0===M?void 0:M.value}),null===(B=this.textInputElement)||void 0===B||B.dispatchEvent(Je))),q&&(_s(this.g,4,be,Yc(this,s),Se),this.Ya.delete(be))}}}Oa(s){let M=!1;const B=Qn(s.timeStamp);if(this.o&&""==s.code&&"Unidentified"==s.key&&!this.qa)_s(this.g,3,8,0,B),_s(this.g,4,8,0,B);else{var q=!(!this.O||!this.ja)&&"CapsLock"==s.code;q&&(M=M||q),$h(this,s),(!this.$.includes(s.keyCode)||q)&&(q=q?160:fh(this,s),M&&(_s(this.g,3,q,Yc(this,s),B),this.Ya.add(q)),this.Ya.has(q)&&(this.Ya.delete(q),gi(Nt()),_s(this.g,4,q,Yc(this,s),B)))}}wa(s){g.d("{8bacfa5}","{77df54c}",s?"fullscreen":"not fullscreen"),this.da({}),s?(window.isSecureContext&&(s=window.navigator.keyboard)&&s.lock&&s.lock("Escape F11 BrowserBack BrowserForward BrowserRefresh BrowserHome BrowserFavorites BrowserSearch BrowserStop Sleep Power WakeUp KeyT KeyZ Slash Digit1 Digit2 Digit3 Digit4 Digit5 Digit6 Digit7 Digit8 Digit9 KeyM KeyD KeyN KeyS KeyK KeyL Space PrintScreen LaunchApp1 LaunchApp2 LaunchMail Comma Semicolon ArrowLeft ArrowRight BracketLeft BracketRight KeyW KeyQ KeyR KeyY KeyO KeyP KeyF KeyG".split(" ")),this.j.onclick=null,this.j.removeAttribute("controls")):(Qs(this),wp(this.h),window.isSecureContext&&(s=window.navigator.keyboard)&&s.unlock&&s.unlock())}toggleUserInput(s,M){if(g.d("{8bacfa5}","{2424824}",s,M),M=M??15,s){var B,q,Se,be,Je,_t,Yt=!this.yb(),$t=(this.m^M)&M;if($t){if(this.m|=$t,4&$t&&Jl(this.l),1&$t){var Sn=this.h;if(!Sn.C){if(Sn.C=!0,!D(Sn.u)){if(2==Sn.cursorType&&Sn.L){var In=Sn.N;In.zd="pointerdown",In.Wd="pointerup",Sn.videoAddEventListener("pointerdown",Sn.xa),Sn.videoAddEventListener("pointerup",Sn.ya)}else(In=Sn.N).zd="mousedown",In.Wd="mouseup",Sn.videoAddEventListener("mousedown",Sn.fa),Sn.videoAddEventListener("mouseup",Sn.pa);"Xbox"===Sn.u.os||Sn.videoAddEventListener("contextmenu",rd)}Sn.documentAddEventListener("wheel",Sn.qa,Sn.ra),Du(Sn),0===Sn.cursorType&&(Sn.j.style.display="block"),ca(Sn),wd(Sn)}}2&$t&&(this.documentAddEventListener("keydown",this.Na),this.documentAddEventListener("keyup",this.Pa),null===(B=this.textInputElement)||void 0===B||B.addEventListener("input",this.ab),null===(q=this.textInputElement)||void 0===q||q.addEventListener("compositionstart",this.L),null===(Se=this.textInputElement)||void 0===Se||Se.addEventListener("compositionupdate",this.L),null===(be=this.textInputElement)||void 0===be||be.addEventListener("compositionend",this.L),this.H=0,this.Da&&(null===(Je=this.textInputElement)||void 0===Je||Je.addEventListener("focus",this.Sa),null===(_t=this.textInputElement)||void 0===_t||_t.addEventListener("blur",this.Qa))),8&$t&&(this.s&&!this.kb?this.s.start():this.C&&this.C.start()),Yt&&this.preventNavigation&&!this.U&&(this.U=!0,history.pushState(null,document.title,location.href),this.windowAddEventListener("popstate",this.Ua))}}else{var ci,Si;(q=this.m&M)&&(this.m^=q,B=!this.yb(),4&q&&((Se=this.l).H=!1,yt(Se),ka(Se),Po&&(Se.o&&Te(Se,Se.o),Se.windowRemoveEventListener("gamepadconnected",Se.oa),Se.windowRemoveEventListener("gamepaddisconnected",Se.pa),Do(Se),Se.F&&(Se.m.stop(),Se.m.reset()))),1&q&&(Se=this.h).C&&(wp(Se),Se.C=!1,D(Se.u)||(2==Se.cursorType&&Se.L?(Se.videoRemoveEventListener("pointerdown",Se.xa),Se.videoRemoveEventListener("pointerup",Se.ya)):(Se.videoRemoveEventListener("mousedown",Se.fa),Se.videoRemoveEventListener("mouseup",Se.pa)),"Xbox"===Se.u.os||Se.videoRemoveEventListener("contextmenu",rd)),Se.documentRemoveEventListener("wheel",Se.qa,Se.ra),kg(Se),0===Se.cursorType&&(Se.j.style.display="none"),ca(Se),wd(Se),Xd(Se)),2&q&&(Qs(this),this.documentRemoveEventListener("keydown",this.Na),this.documentRemoveEventListener("keyup",this.Pa),null===(Yt=this.textInputElement)||void 0===Yt||Yt.removeEventListener("input",this.ab),null===(Sn=this.textInputElement)||void 0===Sn||Sn.removeEventListener("compositionstart",this.L),null===($t=this.textInputElement)||void 0===$t||$t.removeEventListener("compositionupdate",this.L),null===(In=this.textInputElement)||void 0===In||In.removeEventListener("compositionend",this.L),this.Da&&(null===(ci=this.textInputElement)||void 0===ci||ci.removeEventListener("focus",this.Sa),null===(Si=this.textInputElement)||void 0===Si||Si.removeEventListener("blur",this.Qa))),8&q&&(this.C&&this.C.stop(),this.s&&this.s.stop(),0!==this.F&&Fg(this),(q=this.J).vb=void 0,bl(q)),B&&this.preventNavigation&&this.U&&(this.windowRemoveEventListener("popstate",this.Ua),history.back(),this.U=!1))}}yb(){return 0!==this.m}bb(s){s?(Dd(this),g.d("{8bacfa5}","{cb19d31}")):(g.d("{8bacfa5}","{8744dbe}"),Qs(this),wp(this.h))}Td(){void 0!==this.oa&&(this.toggleUserInput(!1,15&~this.oa),this.oa=void 0),this.g.Td()}cb(){this.aa&&Yh(this)}getVirtualGamepadHandler(){return this.l.getVirtualGamepadHandler()}sendTextInput(s){this.g.sendTextInput(s)}Bb(s){switch(s.type){case"compositionstart":this.H=1;break;case"compositionupdate":!D(this.u)&&Ug(s.data)||this.M.emit("TextComposition",{compositionText:s.data,imeRecommendation:!0});break;case"compositionend":const M=this.o?s.data.trim():s.data;M.length&&(s=D(this.u)||!Ug(s.data),this.o&&!s?Ip(this,M):ym(this,M),s&&this.M.emit("TextComposition",{compositionText:""})),this.H=0}}Mb(){this.qa=!0;let s=this.textInputElement.value;1==this.H&&(this.o&&1<s.length&&(s=s.charAt(s.length-1)),this.H=2),this.o&&Ug(s)?(Ip(this,s),this.H=0):2!=this.H&&ym(this,s)}setVirtualKeyboardState(s){g.i("{8bacfa5}","{60b2d45}",s),this.kb!==s&&(this.kb=s,this.C&&this.s&&(this.kb?(this.s.stop(),this.C.start()):(this.C.stop(),1!==this.I.ma&&od(this,0,0,1),this.s.start())))}setKeyboardLayout(s){this.ja="zh-TW"==s}scroll(s,M,B){0<B.length&&Ed(this.g,Math.sign(B[0].deltaY),M)}sendKeyEvent(s){qa(this.g)&&(fh(this,s)?"keydown"===s.type?this.Ka(s):"keyup"===s.type&&this.Oa(s):"keydown"===s.type&&1===s.key.length&&(s=(new TextEncoder).encode(s.key),this.sendTextInput(s.buffer)))}Ib(s,M){this.h.Ib(s,M)}Ab(s,M){this.h.Ab(s,M)}ic(s){this.h.ic(s)}Mc(){qs&&(this.T=!this.T,this.N.Mc(this.j),this.T?this.l.l.push(this.N):cs(this.l,this.N))}};function Qd(s){s.h=!0,bl(s),Dc(s),s.h=!1}function bl(s){0!==s.g&&(window.clearTimeout(s.g),s.g=0)}function Dc(s){const M=s.vb;M&&(s.vb=void 0,M())}class Ap{constructor(){this.g=0,this.h=!1}delay(M){this.h?M():(Qd(this),this.vb=M,this.g=window.setTimeout(()=>{this.g=0,Dc(this)},Dp))}}var Dp=30;function mu(){let s=[];return s.push(162),s.push(163),s.push(164),s.push(165),s.push(91),s.push(92),s.push(160),s.push(161),s}function Rc(s){switch(s){case 162:case 163:return 2;case 164:case 165:return 4;case 91:case 92:return 8;case 160:case 161:return 1}return 0}function Zh(s){return s.qualityScore=3*s.qualityScore/4+Math.min(s.latencyScore,s.networkLossScore,s.bandwidthScore)/4,{latencyScore:s.latencyScore,networkLossScore:s.networkLossScore,bandwidthScore:s.bandwidthScore,qualityScore:s.qualityScore}}var Jd=class{constructor(s,M){this.maxBitrate=s/1e3,this.g=M/1e3,this.networkLossScore=this.bandwidthScore=this.latencyScore=this.qualityScore=100}};function Qh(s){const M=s.j-s.g;return 0!=M?(s.l-s.h)/M:0}class qd{constructor(){this.j=this.g=this.l=this.h=0}update(M,B){0==this.h&&0==this.g?(this.h=M,this.g=B):(this.j=B,this.l=M)}reset(){this.h=this.l,this.g=this.j}}function Bg(s,M){s.M.innerText=qh(s,M),s.j={value:0,count:0,max:0},s.l={value:0,count:0,max:0},s.m.reset()}function qh(s,M){var B=`Seat: ${s.h.zoneName} (${s.h.Sd}) / ${s.h.gpuType}\n`,q=`Game: CMS ${s.h.appId}`;void 0!==s.avgGameFps&&(q+=` / fps ${s.avgGameFps.toFixed()}`),B=B+(q+"\n")+`Stream: Current ${ia(s.streamingResolution)}@${s.fps} / Default: ${s.h.streamInfo.width}x${s.h.streamInfo.height}@${s.h.streamInfo.fps} / Codec ${s.codec}\nNetwork: RTD ${s.rtd}ms / FL ${s.s} / PL ${s.N} / J ${s.H.toFixed(2)}ms / Bitrate ${s.o.toFixed(2)}Mbps / BWU ${s.Ob.toFixed(2)}%\nQOS: frame ${s.C} / FT ${s.P.toFixed(2)} / D ${(1e3*Qh(s.m)).toFixed(2)} / Q ${Math.floor(s.v.qualityScore)} / Marker ${s.S}\nClient: ${s.u.os} ${s.h.clientAppVersion} ${s.h.clientLocale} Resolution ${ia({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio})}\nInput ${s.g.qf}\n`,q=`DC ${Rp(s.j)}ms (${s.j.max.toFixed(2)}ms) / Blocked ${s.L}\n`;const Se=`Stats ${Rp(s.l)}ms (${s.l.max.toFixed(2)}ms) / FR ${s.O} / FDR ${s.J}\n`,be=`Latency ${s.v.latencyScore.toFixed(1)} / Network ${s.v.networkLossScore.toFixed(1)} / Bandwidth ${s.v.bandwidthScore.toFixed(1)}\n`,Je=`VP ${s.g.tf?"y":"n"} / AP ${s.g.rf?"y":"n"} / UI ${s.g.yb?"y":"n"} / VKB ${s.g.kb?"y":"n"} / MS ${s.g.yf} / RSDMM ${+s.g.ad}\n`;return s=`KBL ${s.g.keyboardLayout} / ALM ${+s.g.appLaunchMode} / SWD ${s.U?"y":"n"} / ${s.bc}`,M&&(B+=q+Se+be+Je+s),B}var eu=class{constructor(s,M,B){this.o=this.fps=0,this.Ob=4,this.N=this.rtd=this.H=this.J=this.O=this.C=this.R=this.F=0,this.streamingResolution={width:0,height:0},this.L=this.P=0,this.j={count:0,max:0,value:0},this.l={count:0,max:0,value:0},this.m=new qd,this.T=this.s=this.xd=0,this.codec="UNKNOWN",this.U=!1,this.bc="",this.S=0,this.K=s,this.u=M,this.h=B,this.v={qualityScore:0,bandwidthScore:0,networkLossScore:0,latencyScore:0},(s=document.getElementById("overlay-543d9968"))||((s=document.createElement("div")).id="overlay-543d9968",s.style.display="none",s.style.position="fixed",D(this.u)?(s.style.top="env(safe-area-inset-top, 0)",s.style.left="max(24px, env(safe-area-inset-left, 0))"):(s.style.top="0",s.style.left="0"),s.style.padding="0.5em",s.style.backgroundColor="rgba(0,0,0,0.5)",s.style.zIndex="300",s.style.fontSize="12px",s.style.fontFamily="monospace",s.style.color="white",s.style.whiteSpace="pre",s.style.lineHeight="100%",s.style.pointerEvents="none",this.K.insertAdjacentElement("afterend",s)),this.M=s,this.g={tf:!1,rf:!1,yb:!1,kb:!1,yf:0,ad:!1,keyboardLayout:"",appLaunchMode:0,qf:""}}};function Rp(s){let M=0;return 0<s.count&&(M=s.value/s.count),M.toFixed(2)}var fu={size:70,version:1,name:"DEPR"},eg={size:80,version:3,name:"RTPV"},Lu={size:48,version:1,name:"RTPA"},sf={size:88,version:1,name:"TRAA"},_u={size:20,version:1,name:"PFDA"};function ac(s){0<s.g.length&&(ul(s.g,5),s.g=[])}var Pm=class{constructor(){this.j=this.framesDropped=this.l=this.pliCount=this.framesDecoded=this.m=this.s=this.o=this.v=this.C=0,this.g=[],this.h=-1}sendVideoTrack(s){const M=s.framesDropped||0;M>=this.j&&(this.framesDropped=M-this.j,this.j=M);const B=new ArrayBuffer(44),q=new DataView(B);q.setUint32(0,s.framesDecoded||0,!0),q.setUint32(4,M,!0),q.setUint32(8,s.frameHeight||0,!0),q.setUint32(12,s.frameWidth||0,!0),q.setUint32(16,s.framesReceived||0,!0),q.setFloat64(20,s.jitterBufferDelay||0,!0),Go(s.jitterBufferEmittedCount||0,q,28,!0),q.setFloat64(36,na(He),!0),ul([B],3)}};function yc(){return!1===Ia?Promise.resolve(0):window.navigator.permissions?window.navigator.permissions.query({name:"microphone"}).then(s=>{let M=2;return"granted"==(s=s.state)?M=5:"prompt"==s&&(M=1),M}).catch(()=>0):Promise.resolve(0)}function Ra(s,M,B=!0){s.h=M,3===s.h&&(s.N=!0),s.L&&B&&s.L.emit("MicCapture",{state:s.h})}function vu(s){if(s.initialized)if(bc){s.l=!1,s.paused=!0;var M=s.h;if(navigator.mediaDevices.ondevicechange=()=>{},s.C){g.d("{223689a}","{6faf5bb}");let q=ng();var B=s.C.getSenders()[0];B?B.replaceTrack(q.getTracks()[0]).then(()=>{g.d("{223689a}","{797fa55}"),Ra(s,5,!1),3===M&&(s.F=!0)}).catch(Se=>{g.e("{223689a}","{79f26cc}",Se),Ra(s,7,!1)}).finally(()=>{let Se=s.g;s.g=null,Se&&Se.getTracks().forEach(be=>{be.stop()}),Ra(s,s.h),D(s.u)&&!N(s.u,!1,15,4)&&s.j()}):(g.e("{223689a}","{f7f0250}"),s.g=null)}else g.e("{223689a}","{9e75fa2}"),Ra(s,0)}else Ra(s,6)}function tu(s,M){var B;s.o=!0,s.s.set(M,(null!==(B=s.s.get(M))&&void 0!==B?B:0)+1),g.d("{223689a}","{30f8637}",M)}function tg(s,M){return ku.apply(this,arguments)}function ku(){return(ku=n(function*(s,M){return s.v=!0,navigator.mediaDevices.getUserMedia({audio:M}).then(B=>{if(g.d("{223689a}","{b204737}"),Ra(s,5,!1),s.v=!1,s.g=B,D(s.u)&&(B.getTracks()[0].onended=()=>{s.O=performance.now(),g.i("{223689a}","{6b60d82}"),vu(s)}),s.g.oninactive=()=>{g.d("{223689a}","{eee54f1}"),s.M.clear(),s.g=null},s.paused)g.d("{223689a}","{21e76e1}"),s.g=null,Ra(s,7);else{var q=s.C.getSenders()[0];q?q.replaceTrack(B.getTracks()[0]).then(()=>{var Se;g.i("{223689a}","{6c92139}");const be=null!==(Se=s.Ea)&&void 0!==Se?Se:s.K;if(D(s.u)&&!N(s.u,!1,15,4)&&be&&!be.muted){let Je;be.srcObject&&(Je=be.play(),g.i("{223689a}","{23a6493}",be.tagName)),Je?Je.then(()=>{g.d("{223689a}","{5593cbe}"),s.j()}).catch(_t=>{s.j();try{Il(s.G,"WAR: Play Error",_t?.name,_t?.message),g.e("{223689a}","{69aae72}",_t?.name,_t?.message)}catch{}}):g.e("{223689a}","{b6a6508}")}Ra(s,3),s.F=!1,N(s.u,!1,15,4)&&(s.o=!1,s.J=!1)}).catch(Se=>{g.e("{223689a}","{5c42246}",Se),s.g=null,Ra(s,7)}):(g.e("{223689a}","{f7f0250}"),s.g=null)}}).catch(B=>{var q,Se;D(s.u)&&!N(s.u,!1,15,4)&&s.j(),s.v=!1,B instanceof DOMException&&"NotAllowedError"===B.name?(g.e("{223689a}","{3f9bd66}"),Ra(s,2),s.J&&!s.o&&tu(s,"permissionDenied")):B instanceof DOMException&&"NotFoundError"===B.name?(g.e("{223689a}","{7f04869}"),Ra(s,4)):(B instanceof DOMException&&"NotReadableError"===B.name?(s.M.add(null!==(q=M.deviceId)&&void 0!==q?q:"default"),g.e("{223689a}","{af7e08c}",null!==(Se=M.deviceId)&&void 0!==Se?Se:"default",B.name,B.message),navigator.mediaDevices.enumerateDevices().then(be=>{for(const Je of be)if("audioinput"===Je.kind&&"default"!==Je.deviceId&&!s.M.has(Je.deviceId)){g.d("{223689a}","{655d8b0}",Je.deviceId,Je.label),M.deviceId=Je.deviceId,tg(s,M);break}}).catch(be=>{g.e("{223689a}","{930e826}",be.name,be.message)})):g.e("{223689a}","{c361fc5}",B.name,B.message),Ra(s,7))})})).apply(this,arguments)}function Nu(s){return Kc.apply(this,arguments)}function Kc(){return(Kc=n(function*(s){if(s.initialized)if(bc){if(s.l=!0,null==s.g&&!s.v){s.paused=!1,Ra(s,1,!1);var M={sampleRate:48e3};G(s.u)&&(M.googAutoGainControl2=!1),navigator.mediaDevices.ondevicechange=()=>{g.i("{223689a}","{50d0169}",!!s.g,s.v),null!=s.g||s.v||(g.d("{223689a}","{c849290}"),Nu(s))},yield tg(s,M),s.H||nu(s)}}else g.e("{223689a}","{999b07b}"),Ra(s,6)})).apply(this,arguments)}function nu(s){return navigator.mediaDevices.enumerateDevices().then(M=>{let B=0;g.d("{223689a}","{fa1ec18}",JSON.stringify(M));for(const q of M)"audioinput"==q.kind&&B++;switch(B){case 0:s.H="No Audio Input",s.m.Od++;break;case 1:s.H="Built-in Microphone",s.m.ud++;break;default:s.H="Headset Microphone",s.m.Ed++}g.d("{223689a}","{0d14ab6}",s.H)}).catch(()=>{g.e("{223689a}","{21131d5}")})}function ng(){let s=gs(48e3);if(s){let M=s.createMediaStreamDestination().stream.getAudioTracks()[0];return s.close(),M.enabled=!0,new MediaStream([M])}throw Error("Mic stream is not supported")}function md(s){if(!1!==Ia){if(null!=s.g){let M=s.g;s.M.clear(),s.g=null,navigator.mediaDevices&&(navigator.mediaDevices.ondevicechange=()=>{}),M.getTracks().forEach(B=>{B.stop()})}s.l=!1,Ra(s,5),ya(s.G,"AudioInputType",s.N?"started":"not started",0,s.m.Od,s.m.ud,s.m.Ed),N(s.u,!1,15,4)&&ya(s.G,"LowAudioVolume","",0,s.s.get("permissionDenied"),s.s.get("visibilityChange"),s.s.get("deviceChange")),s.C=null,s.L=null,s.K=void 0,s.Ea=void 0,s.initialized=!1,s.m={Od:0,ud:0,Ed:0};for(const[M]of s.s)s.s.set(M,0);s.o=!1,s.F=!1,s.J=!1,s.N=!1}}function Xc(s){return"Built-in Microphone"===s.H}function iu(s,M){nu(s).then(()=>{0!==M&&N(s.u,!1,15,4)&&!s.o&&Xc(s)&&(s.l||s.F)&&tu(s,"deviceChange")})}var qo=class{constructor(s,M){this.L=null,this.h=0,this.l=!1,this.M=new Set,this.initialized=this.P=!1,this.O=0,this.F=this.J=this.o=!1,this.m={Od:0,ud:0,Ed:0},this.s=new Map([["permissionDenied",0],["visibilityChange",0],["deviceChange",0]]),this.N=!1,this.u=s,this.G=M,this.g=this.C=null,this.paused=this.v=!1,N(s,!1,15)&&(this.P=!0)}initialize(s,M,B,q){if(!1!==Ia){if(this.C=s,this.L=M,this.K=B,this.Ea=q,bc){if(null==(s=ng()))return void g.w("{223689a}","{360f38b}");this.C.addTrack(s.getAudioTracks()[0],s),this.l&&Nu(this)}else g.w("{223689a}","{5813c2b}");this.initialized=!0}}j(){var s,M,B;if(kr&&this.P){var q=null!==(M=null===(s=this.Ea)||void 0===s?void 0:s.srcObject)&&void 0!==M?M:null===(B=this.K)||void 0===B?void 0:B.srcObject;if(q){g.i("{223689a}","{ad4b8c2}");var Se=q.getAudioTracks()[0];Se.enabled=!1,setTimeout(()=>{Se.enabled=!0},0)}}}getMicState(){return this.h}},bc=null!=navigator.mediaDevices&&(window.AudioContext||window.webkitAudioContext||!1),Zc={clientName:"Ragnarok",clientId:"62677554106929725",eventSchemaVer:"3.2"},Qc=class extends Ii{constructor(s){super(s),this.name="Streamer_Start",this.gdprLevel="functional"}},Pl=class extends Ii{constructor(s){super(s),this.name="Streamer_Exit",this.gdprLevel="functional"}},vh=class extends Ii{constructor(s){super(s),this.name="Streamer_InputDevice",this.gdprLevel="functional"}};function Lc(s,M){const B=s.j.get(M);if(B){s.h=B;for(const q of s.g)q(s.getCurrentNetworkType())}else g.d("{aac1655}","{1e3c13d}",M)}var sd=new class Ol{constructor(){var M;this.j=new Map([["Ethernet","ETHERNET"],["5GHz_WiFi","WIFI_5_0"],["2.4GHz_WiFi","WIFI_2_4"],["Others","OTHER"],["disconnected","UNKNOWN"],["wifi","WIFI"],["ethernet","ETHERNET"],["none","UNKNOWN"],["bluetooth","BLUETOOTH"],["wimax","WIMAX"],["other","OTHER"],["mobile","MOBILE"],["unknown","UNKNOWN"],["NONE","UNKNOWN"],["UNKNOWN","UNKNOWN"],["ETHERNET","ETHERNET"],["WIFI","WIFI"],["NET_PROXY","OTHER"],["2G","MOBILE_2G"],["2.5G","MOBILE_2G"],["3G","MOBILE_3G"],["4G","MOBILE_4G"]]),this.h="UNKNOWN",this.g=[],window.addEventListener("GFNNetworkInfo",q=>{g.d("{aac1655}","{2925c9d}",q.detail.state),Lc(this,q.detail.state)});const B=navigator.connection;if(null!=B&&B.type&&(Lc(this,B.type),B.addEventListener("change",()=>{var q;const Se=null===(q=navigator.connection)||void 0===q?void 0:q.type;Se&&(g.d("{aac1655}","{4a9e05b}",Se),Lc(this,Se))})),null!==(M=window.tizen)&&void 0!==M&&M.systeminfo){M=q=>{(q=q.networkType)&&(g.d("{aac1655}","{e9b5f27}",q),Lc(this,q))};try{window.tizen.systeminfo.getPropertyValue("NETWORK",M),window.tizen.systeminfo.addPropertyValueChangeListener("NETWORK",M)}catch(q){g.w("{aac1655}","{7d035ae}",q)}}}registerCallback(M){this.g.push(M)}unregisterCallback(M){const B=this.g.findIndex(q=>q==M);-1!==B&&this.g.splice(B,1)}getCurrentNetworkType(){return this.h}};function Il(s,M,B,q,Se,be){M=new ar({key1:M??"",key2:B??"",key3:q??"",key4:Se??"",key5:be??"",moduleName:"RAGNAROK",networkType:de(sd.getCurrentNetworkType()),overrideConfigType:Bo.type,overrideConfigVersion:Bo.version,cmsId:String(s.cmsId),sessionId:s.sessionId,subSessionId:s.subSessionId}),s.h(M)}function Fu(s,M,B,q,Se,be,Je,_t,Yt){50<=s.H||(s.H++,M=new vh({deviceName:M,deviceType:"GAMEPAD",vendorId:B,productId:q,deviceIndex:Se,reportIndex:Je?0:Se,hapticsSupported:fo(be),hapticsFeedbackCount:0,state:_t,eventMapReceived:Yt,eventMapProcessed:Yt,sessionId:s.sessionId,subSessionId:s.subSessionId,cmsId:String(s.cmsId)}),s.h(M))}function ya(s,M,B,q,Se,be,Je){M=new ki({metricName:M,moduleName:"RAGNAROK",valueInt1:Se,valueInt2:be,valueInt3:Je,valueString:B,valueDouble:q,networkType:de(sd.getCurrentNetworkType()),cmsId:String(s.cmsId),sessionId:s.sessionId,subSessionId:s.subSessionId}),s.h(M)}class ig extends Pe{constructor(){super(Zc),this.cmsId=this.subSessionId=this.sessionId="",this.isResume=!1,this.zoneAddress="",this.H=0,this.v=new Map,this.C=0}za(M,B,q,Se,be,Je,_t){var Yt;if(50<=this.C)var $t=!1;else{var Sn=null!==($t=this.v.get(B))&&void 0!==$t?$t:0;10<=Sn?$t=!1:(this.C++,this.v.set(B,Sn+1),$t=!0)}$t&&(M instanceof DOMException&&(M={name:M.name,message:M.message}),M=new Jt({filename:q,lineno:Se,stacktrace:null!==(Yt=M?.stack)&&void 0!==Yt?Yt:"",colno:be,handled:fo(Je),category:_t??"",message:B,moduleName:"RAGNAROK",sessionId:this.sessionId,subSessionId:this.subSessionId}),this.h(M))}}var sl=new ig;function ad(s,M){s.J.hasListener("TelemetryEvent")?s.J.emit("TelemetryEvent",M):dp(s.j,M)}function Np(s,M){let B=!1;var q;s.clientShutDownCallback&&(B=s.clientShutDownCallback(M),g.d("{9838627}","{caf81d9}",B)),B||(g.d("{9838627}","{e939db1}"),s=s.j,g.d("{f7c1592}","{01dcfe5}",null===(q=M.parameters)||void 0===q?void 0:q.sessionId),xs(s,M),bg(am(s,s.h.eventPayload)))}var Fp=class extends ig{constructor(s,M){super(),this.J=s,this.j=M,this.j.F=this.za.bind(this)}h(s){ad(this,{name:s.name,gdprLevel:s.gdprLevel,parameters:s.parameters,ts:s.ts,clientConfig:Zc})}};function Up(s,M){switch(s){case 0:var B,q=window.RTCPeerConnection;if(q)if(D(M))M=N(M,!1,14,3);else{switch(s=!1,ge(M)&&(s=!0),window.chrome&&("Chrome"==M.browser?ue(M,77)&&(s=!0):s=!0),M.browser){case"Edge_Legacy":s=!1;break;case"Safari":const Se=q?.prototype;if(q=Se&&(null===(B=Se.hasOwnProperty)||void 0===B?0:B.call(Se,"canTrickleIceCandidates")))e:if("Safari"!=M.browser)q=!1;else{try{q=se(M.browserVer,!1,16,4);break e}catch{g.w("{d988e7f}","{07fd1dd}")}q=!0}q&&(s=!0)}M=s}else M=!1;return M;case 1:return bc;default:return!1}}function kc(s){return!(R(s)||$(s)||D(s))}function rg(s,M,B){var q,Se,be,Je;const _t=4953600<=s*M;var Yt=30===B?1.25*B:Math.min(B,60);let $t=s*M*Yt;return Qo(s,M)||_t?(s=null!==(Se=null!==(q=Cl)&&void 0!==q?q:tr.bitsPerPixel1440p)&&void 0!==Se?Se:.325,Yt=(q=2073600*Yt)+(3686400*Yt-q)/3,$t=_t?Yt+($t-Yt)/12:q+($t-q)/3):s=null!==(Je=null!==(be=Pr)&&void 0!==be?be:tr.bitsPerPixel)&&void 0!==Je?Je:.3,$t=$t*s/1200,120<=B&&!_t&&($t=Math.min(5e4,Math.round(1.15*$t))),[Math.round($t),5e4]}function Rd(s,M){return M*=1e3,M=3600*(120===s?.916*M+293098:.678*M+910569)/1e9/8,30===s&&(M*=.625),Math.round(.95*M)}function Bp(s){return cc.apply(this,arguments)}function cc(){return cc=n(function*(s){let M=0;return"iOS"===s.os&&(M|=1),"iPadOS"===s.os&&(M|=2),$(s)&&function lr(){var s,M;if(navigator.userAgent.includes("SamsungBrowser"))return!1;const B=null===(s=window.webapis)||void 0===s?void 0:s.productinfo;return!(null==B||!B.isUdPanelSupported())&&(s=null===(M=B.getSmartTVServerVersion)||void 0===M?void 0:M.call(B),(M=s&&(M=s.match(/T-INFOLINK(\d+)-(\d+)/))?{year:parseInt(M[1],10),version:parseInt(M[2],10)}:void 0)?(g.i("{d988e7f}","{fc40a4b}",s=M.year,M=M.version),2021===s||2023<=s||2022===s&&1008<=M):(g.e("{d988e7f}","{e227976}",s),!1))}()&&(M|=4),R(s)&&navigator.userAgent.includes("PWA")&&window.lge_webrtc_hevc_support&&(M|=8),"VISIONPRO"===s.deviceModel&&(M|=16),function af(s){return Uu.apply(this,arguments)}(M)}),cc.apply(this,arguments)}function Uu(){return(Uu=n(function*(s){var M=screen.width,B=screen.height,q=window.devicePixelRatio,Se=!!(4&s)||!!(8&s)||!!(16&s);return[M,B]=ft([M,B]),B={width:Math.round(M*q),height:Math.round(B*q),fps:60,scaleFactor:Math.round(100*q)},q=void 0,Se?q={width:3840,height:2160,fps:B.fps}:2&s&&1366<=M&&(q={width:1600,height:1200,fps:B.fps}),s=[{width:2560,height:1600,fps:120},{width:3840,height:1080,fps:120}],Se&&s.push({width:3840,height:2160,fps:60}),{displayMode:B,maxAutoMode:q,maxSupportedModes:s,features:{vsync:0,vvsync:!1,hdr:!1,reflex:!1,audioChannelCount:Se=Lt()}}})).apply(this,arguments)}function Ld(s){let M=0;return null!=s&&s.supported&&(M|=1),null!=s&&s.smooth&&(M|=2),null!=s&&s.powerEfficient&&(M|=4),M}function Nc(s,M=1920,B=1080,q=60){const Se=navigator.mediaCapabilities;return Se?Se.decodingInfo({type:"webrtc",video:{contentType:"video/"+s,width:M,height:B,framerate:q,bitrate:1e3*rg(M,B,q)[0]}}).catch(be=>{g.w("{5083445}","{f5c2155}",s,be)}):Promise.resolve(void 0)}function ld(){var s=Cu;return s.l?Promise.resolve(s.l):s.g?s.g:s.m()}function kd(s,M){return M&&(s.refreshRate=void 0),s.refreshRate?Promise.resolve(s.refreshRate):s.j?s.j:function Gp(s){return s.j=function Wg(){return new Promise((s,M)=>{let B=!1;const q=window.setTimeout(()=>{B=!0},4e3),Se=[];let be,Je=window.innerWidth,_t=window.innerHeight,Yt=window.screenX,$t=window.screenY;const Sn=()=>{window.requestAnimationFrame(()=>{if(B)g.w("{5083445}","{0b0c6f9}","Timed out during the refreshRate loop"),window.clearTimeout(q),M();else{if(window.innerWidth!=Je||window.innerHeight!=_t||Yt!=window.screenX||$t!=window.screenY){Je=window.innerWidth,_t=window.innerHeight,Yt=window.screenX,$t=window.screenY;var In=!0}else In=!1;In?(g.w("{5083445}","{824b461}"),Se.length=0,Sn()):(In=performance.now(),Se.length&&Se[0]<=In-2e3?(be=Math.floor(Se.length/2),g.d("{5083445}","{8c3d290}",be,Se[Se.length-1]-Se[0]),In=be,window.clearTimeout(q),s(In)):(Se.push(In),Sn()))}})};Sn()})}().then(M=>(s.refreshRate=M,s.refreshRate),()=>{var M;return null!==(M=s.refreshRate)&&void 0!==M?M:0}),s.j}(s)}function ru(){return Bu.apply(this,arguments)}function Bu(){return(Bu=n(function*(){return 117<=(yield kd(Cu,!1))})).apply(this,arguments)}var Cu=new class{constructor(){Vs.push(this.s.bind(this)),Vs.push(this.m.bind(this)),Vs.push(this.o.bind(this))}m(){return this.g=Nc("av1").then(s=>this.l=s)}o(){return this.h=Promise.resolve(void 0)}s(){var s=this;return n(function*(){return 117<=(yield kd(s,!0))})()}};function Vp(){return(Vp=n(function*(s,M){var B,q,Se;const be=null!==(q=null!==(B=An)&&void 0!==B?B:tr.enableAv1Support)&&void 0!==q?q:(G(M)||Y(M))&&"Chrome"==M.browser;return B=null!==(Se=tr.enableAv1ByResolutionAndFps)&&void 0!==Se?Se:7,!(!be||4953600<=s.width*s.height&&!(4&B)||Qo(s.width,s.height)&&!(2&B)||!(120!==s.fps||1&B))&&(R(M)&&null!=window.lge_webrtc_av1_support?window.lge_webrtc_av1_support:!(null==(s=yield ld())||!s.powerEfficient))})).apply(this,arguments)}function Nd(){return(Nd=n(function*(s){return R(s)&&null!=window.lge_webrtc_hevc_support?window.lge_webrtc_hevc_support:!(!$(s)&&(s=Cu,null==(s=yield s.v?Promise.resolve(s.v):s.h?s.h:s.o())||!s.powerEfficient))})).apply(this,arguments)}function Hp(s,M){return fd.apply(this,arguments)}function fd(){return fd=n(function*(s,M){var B;let q=[];const Se=null!==(B=St)&&void 0!==B?B:tr.codecList;if(Se)for(const be of Se)q.push(be);else s=function $g(s,M){return Vp.apply(this,arguments)}(s,M),M=function ou(s){return Nd.apply(this,arguments)}(M),(yield s)&&q.push("AV1"),(yield M)&&q.push("H265"),q.push("H264");return q}),fd.apply(this,arguments)}function Wp(s,M){const B=s.K.videoWidth;return s=s.K.videoHeight,new DOMRect(M.x*B,M.y*s,M.width*B,M.height*s)}function Om(s){const M={isPrimary:!0,pointerId:1,button:0};s.K.dispatchEvent(new PointerEvent("pointerdown",M)),s.K.dispatchEvent(new MouseEvent("mousedown")),window.setTimeout(()=>{s.K.dispatchEvent(new PointerEvent("pointerup",M)),s.K.dispatchEvent(new MouseEvent("mouseup"))},100)}var al=class{constructor(s){this.active=!1,this.m=.06,this.l=new DOMRect(0,0,0,0),this.g=[],this.h=[],this.K=s,this.j=this.v.bind(this)}o(){return this.active}v(s){if(this.g.length){if(!(this.h.length&&100>s.timeStamp-this.h[this.h.length-1].Sb))for(this.h.push({Sb:s.timeStamp,Ec:performance.now()});32<this.h.length;)this.h.shift()}else g.w("{0c7ed7c}","{fe08a50}")}};function Su(s,M){s.Yb.checked=M,s.s.disabled=!M,s.C.disabled=!M,s.l.style.color=M?"white":"gray"}function La(s,M=!1){M&&(s.g.style.bottom="5px",s.g.style.left="300px",s.g.style.top="",s.g.style.right="",s.g.style.width="150px",s.g.style.height="150px"),s.o()?(s.m.style.display="none",s.g.style.border="2px rgb(76, 175, 80) solid",s.g.style.backgroundColor="transparent"):(s.m.style.display="block",s.g.style.border="none",s.g.style.backgroundColor="rgb(105, 105, 105, 0.7)")}function zg(s,M){if(M!==s.visible){for(var B of(g.i("{50c79eb}","{5595c14}",M),s.visible=M,[s.L,s.g,s.v]))B===s.v&&M?Fc(s,"Show hotkeys"!==s.h.value):B.style.display=M?"block":"none";var q=kt();if(B=q?"pointerdown":"mousedown",q=q?"pointermove":"mousemove",M){s.P(),function Gu(s,M){let B=0,q=0,Se=0,be=0;const Je=document.onmouseup,_t=document.onmousemove;M.onmousedown=Yt=>{Yt.preventDefault(),B=Yt.clientX,q=Yt.clientY,document.onmouseup=()=>{document.onmouseup=Je,document.onmousemove=_t},document.onmousemove=$t=>{$t.preventDefault(),Se=B-$t.clientX,be=q-$t.clientY,B=$t.clientX,q=$t.clientY,s.style.top=s.offsetTop-be+"px",s.style.left=s.offsetLeft-Se+"px"}}}(s.g,s.m),s.O.oninput=be=>{be=parseFloat(be.target.value);var Je=s.j;0>=be||1<=be?g.e("{0c7ed7c}","{1cbd879}",be.toFixed(2)):Je.m=be,s.S.innerHTML=(100*be).toFixed()+"%"},s.Yb.oninput=be=>{Su(s,be.target.checked)},s.s.oninput=be=>{s.U.innerHTML=be.target.value},s.C.oninput=be=>{s.W.innerHTML=be.target.value+" ms"},s.zb.oninput=be=>{s.zb.checked=be.target.checked};const Se=(be,Je)=>{Je.value=Math.max(Math.min(parseInt(be.target.value),100),0).toFixed(0),Yp(s,parseInt(s.Qb.value||"50")/100,parseInt(s.Rb.value||"50")/100)};s.Qb.oninput=be=>Se(be,s.Qb),s.Rb.oninput=be=>Se(be,s.Rb),s.H.onclick=()=>Wa(s,"Start"===s.H.value),s.h.onclick=()=>Fc(s,"Show hotkeys"===s.h.value),s.g.onmouseup=s.P.bind(s),s.g.onmousedown=()=>{s.o()&&Om(s.j)},cd(s.Z,2,s.$),s.K.addEventListener(B,s.aa),s.K.addEventListener(q,s.ca)}else Wa(s,!1),s.O.oninput=null,s.Yb.oninput=null,s.s.oninput=null,s.C.oninput=null,s.zb.oninput=null,s.Qb.oninput=null,s.Rb.oninput=null,s.H.onclick=null,s.h.onclick=null,s.g.onmouseup=null,s.g.onmousedown=null,s.m.onmousedown=null,uc(s.Z,2,s.$),s.K.removeEventListener(B,s.aa),s.K.removeEventListener(q,s.ca)}}function Wa(s,M){M&&!function Fd(s){const M=Wp(s,s.l);return!(0>M.x||0>M.y||M.x+M.width>s.K.videoWidth||M.y+M.height>s.K.videoHeight)}(s.j)?function Em(s){s.R.style.display="block",window.setTimeout(()=>s.R.style.display="none",5e3)}(s):M&&s.M?g.e("{50c79eb}","{89742e9}"):(function jp(s,M){s.active!==M&&((s.active=M)?(g.i("{0c7ed7c}","{b56e30d}"),s.K.dispatchEvent(new Event("focus",{bubbles:!0})),s.K.addEventListener("pointerdown",s.j),s.K.addEventListener("mousedown",s.j)):(g.i("{0c7ed7c}","{00425c2}"),s.K.removeEventListener("pointerdown",s.j),s.K.removeEventListener("mousedown",s.j),s.g=[],s.h=[]))}(s.j,M),La(s),M?(s.H.value="Stop",s.Yb.checked&&(g.i("{50c79eb}","{5974b2c}"),s.M=!0,s.da=parseInt(s.s.value),s.N=window.setInterval(()=>{0<s.da--?Om(s.j):(g.i("{50c79eb}","{d37e51d}"),xm(s),Wa(s,!1))},parseInt(s.C.value)))):(s.H.value="Start",s.M&&(s.N?(g.i("{50c79eb}","{d340c50}"),xm(s)):g.w("{50c79eb}","{6d8948b}")),og(s),sg(s)))}function Al(s,M){s.value=M.toString(),s.dispatchEvent(new Event("input"))}function Fc(s,M){M?(s.h.value="Hide hotkeys",s.v.style.display="block"):(s.h.value="Show hotkeys",s.v.style.display="none")}function xm(s){window.clearInterval(s.N),s.N=0,s.M=!1}function og(s){0!==s.J&&(window.clearTimeout(s.J),s.J=0)}function sg(s){s.F.innerHTML="",s.F.style.display="none"}function $p(s){var M;const B=null!==(M=s.processingDuration)&&void 0!==M?M:0;return{pf:s.Ec-s.Sb,Tf:s.receiveTime?s.receiveTime-s.Ec:0,We:s.receiveTime&&s.processingDuration?s.presentationTime-s.processingDuration-s.receiveTime:0,decode:B,Pf:s.rd-s.presentationTime,total:s.rd-s.Sb}}function Yp(s,M,B){const q=s.K.getBoundingClientRect(),Se=s.g.getBoundingClientRect(),{paddingTop:be,paddingRight:Je,paddingBottom:_t,paddingLeft:Yt}=zp(s.K);M=q.left+Yt+(q.width-Yt-Je)*M-Se.width*M,s.g.style.top=(q.top+be+(q.height-be-_t)*B-Se.height*B).toString()+"px",s.g.style.left=M.toString()+"px",s.P()}function Hl(){const s=document.createElement("div");return s.style.display="none",s.style.position="absolute",s.style.color="white",s.style.backgroundColor="rgb(105, 105, 105, 0.7)",s.style.padding="2px",s}function Vu(s){const M=document.createElement("div");return M.style.width="100%",M.style.borderBottom="1px dashed darkgray",M.style.paddingBottom="2px",M.innerHTML=s,M}function Jc(s){const M=document.createElement("input");return M.type="button",M.value=s,M.style.margin="5px",M.style.backgroundColor="rgb(132, 130, 143, .7)",M.style.color="white",M.style.padding="8px 40px",M.style.border="none",M.style.borderRadius="4px",M.style.cursor="pointer",M}function ag(){const s=document.createElement("input");return s.type="checkbox",s}function Is(s){const M=document.createElement("label");return M.innerHTML=s,M}function dc(s,M,B,q=1){const Se=document.createElement("input");return Se.type="range",Se.min=M.toString(),Se.max=B.toString(),Se.step=q.toString(),Se.value=s.toString(),Se}function zp(s){const M=B=>{if(!B)return 0;const q=B.length;return"%"===B.substring(q-1)?parseInt(B.substring(0,q-1)):"px"===B.substring(q-2)?parseInt(B.substring(0,q-2)):(g.w("{50c79eb}","{3351f27}",B),0)};return{paddingTop:M(s.style.paddingTop),paddingRight:M(s.style.paddingRight),paddingBottom:M(s.style.paddingBottom),paddingLeft:M(s.style.paddingLeft)}}var Tm=class{constructor(s,M){this.Z=M,this.visible=!1,this.dc=[],this.M=!1,this.da=this.N=0,this.T={x:0,y:0},this.J=0,this.K=s,this.j=new al(s),this.$=this.ga.bind(this),this.aa=this.fa.bind(this),this.ca=this.onmousemove.bind(this),M=Hl();var B=Vu("Latency Display Analysis Tool (LDAT)");this.H=Jc("Start"),this.h=Jc("Show hotkeys"),M.style.bottom="0px",M.style.left="0px",M.style.margin="5px",this.h.style.border="1px solid white",this.h.style.fontSize="10px",this.h.style.padding="5px",this.h.style.position="absolute",this.h.style.right="0px",M.appendChild(B),M.appendChild(this.H),M.appendChild(this.h),B=M.appendChild;var q=document.createElement("div"),Se=this.j.m;this.O=dc(Se,.01,.2,.01),this.S=document.createElement("span");var be=Is("Activation Level"),Je=document.createElement("span");for(var _t of(this.S.innerHTML=(100*Se).toFixed()+"%",Je.style.paddingRight="2px",Je.title="% increase in luminance used to determine whether a flash occurred",Je.innerHTML="<sup> i </sup>",q.appendChild(be),q.appendChild(Je),q.appendChild(this.O),q.appendChild(this.S),B.call(M,q),B=M.appendChild,q=document.createElement("div"),this.l=document.createElement("div"),this.Yb=ag(),this.s=dc(20,5,100,5),this.C=dc(1e3,500,5e3,100),Se=Is("Autofire"),be=Is("# Shots"),Je=Is("Shot Delay"),this.U=document.createElement("span"),this.W=document.createElement("span"),this.U.innerHTML=this.s.value,this.W.innerHTML=this.C.value+" ms",this.s.id="shot-count-slider",this.l.appendChild(be),this.l.appendChild(this.s),this.l.appendChild(this.U),this.l.appendChild(document.createElement("br")),this.l.appendChild(Je),this.l.appendChild(this.C),this.l.appendChild(this.W),q.appendChild(Se),q.appendChild(this.Yb),q.appendChild(this.l),B.call(M,q),M.appendChild(function wm(s){const M=document.createElement("div"),B=Is("Loupe Position:"),q=Is("X"),Se=Is("Y");q.style.paddingLeft="10px",Se.style.paddingLeft="10px",q.style.paddingRight="2px",Se.style.paddingRight="2px";const be=()=>{const Je=document.createElement("input");return Je.type="number",Je.min="0",Je.max="100",Je.step="1",Je.placeholder="Int",Je.style.width="40px",Je};return s.Qb=be(),s.Rb=be(),M.appendChild(B),M.appendChild(q),M.appendChild(s.Qb),M.appendChild(Is("%")),M.appendChild(Se),M.appendChild(s.Rb),M.appendChild(Is("%")),M}(this)),this.zb=ag(),(B=document.createElement("span")).title="Simulate mouse move event whenever a mouse click is detected. Introduces two 300 ms delays between move events and requires a minimum shot delay of 1 sec.",B.innerHTML="<sup> i </sup>",M.appendChild(Is("Move On Click")),M.appendChild(B),M.appendChild(this.zb),this.L=M,M=Hl(),B=Vu("Loupe"),this.m=document.createElement("div"),this.m.style.cursor="move",this.m.style.width="100%",this.m.style.height="100%",this.m.innerHTML="Click here to drag the loupe to the area of the screen where flashes will occur. Then, press start.",M.appendChild(B),M.appendChild(this.m),this.g=M,(M=Hl()).style.position="relative",M.style.backgroundColor="gray",M.style.textAlign="center",M.innerHTML="Warning: Must place loupe over video element to activate the LDAT. Please reposition the loupe and then click start.",this.R=M,M=Hl(),B=Vu("LDAT Hot Keys"),q=document.createElement("ul"),M.style.bottom="195px",M.style.left="0px",M.style.margin="5px",q.style.listStyle="none",q.style.paddingLeft="2px",q.style.margin="5px",["Enter - Start/Stop","R - Reset","A - Turn On/Off Auto-Fire Mode","S - Save Log File","C - Center Loupe on Screen"]))(Se=document.createElement("li")).innerHTML=_t,q.append(Se);M.appendChild(B),M.appendChild(q),this.v=M,(_t=Hl()).style.bottom="325px",_t.style.left="0px",_t.style.margin="5px",this.F=_t,s.insertAdjacentElement("afterend",this.L),this.L.insertAdjacentElement("afterend",this.g),this.g.insertAdjacentElement("afterend",this.R),this.L.insertAdjacentElement("beforebegin",this.v),this.v.insertAdjacentElement("beforebegin",this.F),this.j.s=this.ea.bind(this),Su(this,!1),this.zb.checked=!1,La(this,!0)}stop(){this.L.remove(),this.g.remove(),this.R.remove(),this.v.remove(),this.F.remove(),zg(this,!1),this.dc=[]}reset(){Wa(this,!1),Al(this.O,.06),Al(this.s,20),Al(this.C,1e3),Su(this,!1),this.zb.checked=!1,La(this,!0),Fc(this,!1),this.Qb.value="",this.Rb.value="",this.dc=[]}isVisible(){return this.visible}toggle(){Wa(this,!this.o())}o(){return this.j.o()}Cb(){return!this.isVisible()||this.o()}fa(s){if(this.zb.checked&&this.o()&&!s.gf){const M=(Se,be)=>{switch(Se){case 0:this.K.dispatchEvent(new PointerEvent("pointerup",be)),this.K.dispatchEvent(new MouseEvent("mouseup",be));break;case 1:Se=new PointerEvent("pointerdown",be),be=new MouseEvent("mousedown",be),Se.gf=!0,be.gf=!0,this.K.dispatchEvent(Se),this.K.dispatchEvent(be);break;case 2:this.K.dispatchEvent(new PointerEvent("pointerrawupdate",be)),this.K.dispatchEvent(new PointerEvent("pointermove",be)),this.K.dispatchEvent(new MouseEvent("mousemove",be))}},B={button:2,isPrimary:!0,pointerId:1},q={clientX:(Math.max(s.clientX,0)||this.T.x)+64,clientY:Math.max(s.clientY,0)||this.T.y,movementX:64,isPrimary:!0};M(1,B),window.setTimeout(()=>{M(2,q),window.setTimeout(()=>{q.clientX-=64,q.movementX=-64,M(2,q),window.setTimeout(()=>M(0,B),300)},300)},300)}}onmousemove(s){this.T={x:s.clientX,y:s.clientY}}P(){var s=this.K.getBoundingClientRect();const M=this.g.getBoundingClientRect();if(this.K.style.paddingTop||this.K.style.paddingRight||this.K.style.paddingBottom||this.K.style.paddingLeft){const{paddingTop:B,paddingRight:q,paddingBottom:Se,paddingLeft:be}=zp(this.K);s.x+=be,s.y+=B,s.width-=be+q,s.height-=B+Se}M.x=(M.x-s.x)/s.width,M.y=(M.y-s.y)/s.height,M.width/=s.width,M.height/=s.height,s=this.j,0>=M.width||0>=M.height?g.e("{0c7ed7c}","{3e0eb8f}",M.width,M.height):s.l=M}ga(){this.P()}ea(s){og(this),this.dc.push(s);const M=$p(s),B=M.total.toFixed(),q=`Flash occurred at frame ${s.presentedFrames}. Latency: ${B} ms.`;g.i("{50c79eb}","{78905f8}",s.presentedFrames,B),g.d("{50c79eb}","{d3d4a0c}",B,M.pf.toFixed(),M.Tf.toFixed(),M.We.toFixed(),M.decode.toFixed(),M.Pf.toFixed()),this.F.innerHTML=q,this.F.style.display="block",this.J=window.setTimeout(()=>{sg(this),this.J=0},5e3)}},Kg=class extends Map{constructor(){super([["TCP",0],["MDNS",0],["IPV6",0],["IPV4",0],["UNKNOWN",0]])}};function Xg(s){var M,B,q,Se;s.m=window.setInterval(()=>{!function Dm(s){if(!s.J)if(s.J=!0,0===s.U)s.C.getStats().then(M=>{s.j=M}).catch(M=>Mu(s,M,"early")).finally(()=>{s.J=!1});else if(1===s.U)if(s.ga){const M=s.C.getReceivers().find(B=>B.track.kind===s.mediaType&&B.track.enabled);M&&M.getStats().then(B=>Kp(s,B)).catch(B=>Mu(s,B,"standard")).finally(()=>{s.J=!1})}else!function Am(s){s.C.getStats(null).then(M=>{let B=!1;for(let q of M.values())if("track"===q.type&&(B=!0),["transport","inbound-rtp","candidate-pair"].includes(q.type)){"audio"===q.kind&&(s.wa=!0);const Se=s.P.get(q.type);Se?Se.includes(q.id)?g.e("{5cea617}","{76f5968}",q.id):Se.push(q.id):s.P.set(q.type,[q.id])}s.aa=!B,g.i("{5cea617}","{1317761}",s.aa?"yes":"no"),s.ga=!0,s.j=M,Kp(s,M)}).catch(M=>Mu(s,M,"init")).finally(()=>{s.J=!1})}(s);else s.J=!1}(s)},null!==(M=tr.getStatsInterval)&&void 0!==M?M:96),window.chrome&&(s.F=window.setInterval(()=>{!function Zg(s){if(!s.T){s.T=!0;var M=()=>{g.i("{5cea617}","{cf8b53f}"),s.T=!1,clearInterval(s.F),s.F=0};s.C.getStats(B=>{for(var q of B.result())if("ssrc"==q.type)for(var Se of q.names()){"video"===q.stat("mediaType")&&(s.H.ts=na(He),s.H.timingFrameInfo=q.stat("googTimingFrameInfo"),s.H.targetDelayMs=+q.stat("googTargetDelayMs"),s.H.minPlayoutDelayMs=+q.stat("googMinPlayoutDelayMs"),s.H.currentDelayMs=+q.stat("googCurrentDelayMs"));break}if(!(15>(q=(B=s.H).timingFrameInfo.split(",",15)).length)){Se=new ArrayBuffer(fu.size);var be=new DataView(Se);be.setUint32(0,B.targetDelayMs||0,!0),be.setUint32(4,B.minPlayoutDelayMs||0,!0),be.setUint32(8,B.currentDelayMs||0,!0),be.setFloat64(12,na(He),!0),be.setFloat64(20,parseFloat(q[3])||0,!0),be.setFloat64(28,parseFloat(q[4])||0,!0),be.setFloat64(36,parseFloat(q[8])||0,!0),be.setFloat64(44,parseFloat(q[9])||0,!0),be.setFloat64(52,parseFloat(q[10])||0,!0),be.setFloat64(60,parseFloat(q[11])||0,!0),be.setUint8(68,parseFloat(q[13])||0),be.setUint8(69,parseFloat(q[14])||0),ul([Se],0)}s.T=!1},M).catch(M)}}(s)},null!==(B=tr.getDeprecatedStatsInterval)&&void 0!==B?B:201)),null===(Se=(q=s.K).requestVideoFrameCallback)||void 0===Se||Se.call(q,s.sa)}function Kp(s,M){var B=performance.now();if(B>=s.$&&"video"===s.mediaType){!function Rm(s,M){var B,q,Se,be=s.P.get("inbound-rtp");if(be&&s.j)if(be=be.map(_t=>M.get(_t)).find(_t=>"video"===_t?.kind||"video"===_t?.mediaType)){var Je=(be=ju(s,M,be)).decoderImplementation;if(null!=Je&&Je.indexOf){Je!==s.h.bc&&"unknown"!==Je&&(s.h.bc=Je,s.g.bc=Je);const _t=-1!==s.u.gpuDetail.indexOf("SwiftShader");-1===Je.indexOf("fallback")&&"FFmpeg"!==Je&&!_t||-1!==s.h.xc||(s.h.xc=null!==(B=be.framesDecoded)&&void 0!==B?B:s.l,function zl(){var s=He;if(s.h){const M={clientEvent:{TS:na(s),eventtype:"SoftwareDecodeFallback"}};s.g&&s.g.postMessage(M)}}(),B="Fallback to software decode at frame "+String(s.h.xc),g.i("{5cea617}","{953d211}",String(s.h.xc)),s.g.U=!0,ip(s.Ba,B))}(B=s.j.get(be.id))?(s.h.ac.Zf++,(Je=be.codecId)&&((Je=M.get(Je).mimeType.toUpperCase()).includes("H265")?s.N="H265":Je.includes("AV1")?s.N="AV1":Je.includes("H264")?s.N="H264":(g.d("{5cea617}","{4b31535}",Je),s.N="UNKNOWN"),s.g.codec=s.N),function Ru(s,M,B){var q=M.packetsLost-B.packetsLost;let Se=100-q/(M.packetsReceived-B.packetsReceived+q)*100;for((isNaN(Se)||void 0===Se)&&(Se=0),0<(M=M.pliCount-B.pliCount)&&q&&(Se=0),q=0;q<M+1;q++)s.networkLossScore=7*s.networkLossScore/8+Se/8}(s.L,be,B),function bm(s,M){if(M.frameWidth&&M.frameHeight&&(s.streamingResolution={width:M.frameWidth,height:M.frameHeight}),M.framesDecoded){const B=s.R,q=M.timestamp;B!==q&&(s.fps=Math.floor((M.framesDecoded-s.C)/(q-B)*1e3)),s.C=M.framesDecoded,M.totalDecodeTime&&(s.m.update(M.totalDecodeTime,M.framesDecoded),s.xd=1e3*M.totalDecodeTime/M.framesDecoded)}M.framesReceived&&(s.O=M.framesReceived,M.totalInterFrameDelay&&(s.P=1e3*M.totalInterFrameDelay/(M.framesReceived-1))),M.framesDropped&&(s.J=M.framesDropped),M.packetsLost&&(s.N=M.packetsLost),M.pliCount&&(s.s=M.pliCount),s.R=M.timestamp}(s.g,be),s.l=null!==(q=be.framesDecoded)&&void 0!==q?q:0,s.ta=null!==(Se=be.packetsReceived)&&void 0!==Se?Se:0,function Zp(s){cg.apply(this,arguments)}(s)):s.h.ac.Hf++}else s.h.ac.$e++}(s,M);var be,Je,_t,Yt,$t,Sn,In,ci,fi,q=s.g,Se=s.Ba,Si=Se.K.paused,er=null!==(Je=null===(be=Se.Ea)||void 0===be?void 0:be.paused)&&void 0!==Je&&Je;Si={tf:Si,rf:er,yb:be=null!==(Yt=null===(_t=Se.m)||void 0===_t?void 0:_t.yb())&&void 0!==Yt&&Yt,kb:_t=null!==(Sn=null===($t=Se.m)||void 0===$t?void 0:$t.kb)&&void 0!==Sn&&Sn,yf:$t=Se.Da.getMicState(),ad:Sn=Se.v.ad(),keyboardLayout:Yt=Se.keyboardLayout,appLaunchMode:Je=Se.appLaunchMode,qf:null!==(ci=Se=null===(In=Se.m)||void 0===In?void 0:`${(Se=In.h).g.qb?"local":"alt"} ${ma(Se)?"locked":"unlocked"}`)&&void 0!==ci?ci:""},q.g=Si,function Hu(s,M){var B,q=s.P.get("candidate-pair");if(q=q?.map(be=>M.get(be)).find(be=>be)){6<=s.s.length&&s.s.splice(0,1),s.s.push(q);var Se=null===(B=s.j)||void 0===B?void 0:B.get(q.id);Se&&function Jh(s,M,B){var q,Se,be,Je;let _t=null!==(q=M.bytesReceived)&&void 0!==q?q:0;q=null!==(Se=B.bytesReceived)&&void 0!==Se?Se:0,(M=null!==(be=M.timestamp)&&void 0!==be?be:0)!=(B=null!==(Je=B.timestamp)&&void 0!==Je?Je:0)&&(s.o=(_t-q)/(125*(M-B)))}(s.g,q,Se)}}(s,M),0!==s.M&&Bg(s.g,2===s.M),ci={avgGameFps:null!==(fi=(q=s.g).avgGameFps)&&void 0!==fi?fi:0,fps:q.fps,rtd:q.rtd,avgDecodeTime:1e3*Qh(q.m),frameLoss:q.s-q.T,packetLoss:q.N,totalBandwidth:q.F,utilizedBandwidth:q.Ob,streamingResolution:q.streamingResolution,codec:q.codec,bitDepth:8},q.T=q.s,s.R.emit("StreamStatsUpdate",ci),s.j=M,s.$=B+1e3}for(const[ur,vr]of s.P.entries())for(var Ri of(fi=ur,q=vr))if((q=M.get(Ri))&&"inbound-rtp"===fi)if(ci=s.o,"audio"===(q=ju(s,M,q)).kind)ci=q,Si=new ArrayBuffer(Lu.size),er=new DataView(Si),Go(ci.packetsReceived||0,er,0,!0),Go(ci.bytesReceived||0,er,8,!0),Go(ci.packetsLost||0,er,16,!0),er.setFloat64(24,ci.lastPacketReceivedTimestamp||0,!0),er.setFloat64(32,ci.jitter||0,!0),er.setFloat64(40,na(He),!0),ul([Si],2),ci=new ArrayBuffer(sf.size),(Si=new DataView(ci)).setFloat64(0,q.audioLevel||0,!0),Go(q.concealedSamples||0,Si,8,!0),Go(q.concealmentEvents||0,Si,16,!0),Go(q.insertedSamplesForDeceleration||0,Si,24,!0),Si.setFloat64(32,q.jitterBufferDelay||0,!0),Go(q.jitterBufferEmittedCount||0,Si,40,!0),Go(q.removedSamplesForAcceleration||0,Si,48,!0),Go(q.silentConcealedSamples||0,Si,56,!0),Si.setFloat64(64,q.totalSamplesReceived||0,!0),Si.setFloat64(72,q.totalSamplesDuration||0,!0),Si.setFloat64(80,na(He),!0),ul([ci],4);else if(Sn=Se=(Si=q).framesDecoded||0,Yt=In=Si.totalDecodeTime||0,Je=be=Si.pliCount||0,($t=er=Si.packetsLost||0)>=(_t=ci).o&&(_t.C=$t-_t.o,_t.o=$t),Je>=_t.l&&(_t.pliCount=Je-_t.l,_t.l=Je),_t.framesDecoded=Sn-_t.s,0<_t.framesDecoded&&Yt>_t.m&&(_t.v=1e3*(Yt-_t.m)/_t.framesDecoded,_t.s=Sn,_t.m=Yt),_t=new ArrayBuffer(eg.size),($t=new DataView(_t)).setUint32(0,Se,!0),$t.setUint32(4,Si.keyFramesDecoded||0,!0),$t.setUint32(8,Si.nackCount||0,!0),$t.setInt32(12,er,!0),$t.setInt32(16,be,!0),Go(Si.bytesReceived||0,$t,20,!0),Go(Si.packetsReceived||0,$t,28,!0),$t.setFloat64(36,In,!0),$t.setFloat64(44,Si.totalInterFrameDelay||0,!0),$t.setFloat64(52,Si.totalSquaredInterFrameDelay||0,!0),$t.setFloat64(60,Si.totalAssemblyTime||0,!0),$t.setUint32(68,Si.framesAssembledFromMultiplePackets||0,!0),$t.setFloat64(72,na(He),!0),ul([_t],1),ci.sendVideoTrack(q),q.perFrameEntries){for(q=JSON.parse(q.perFrameEntries),Si=[],er=ci.h,Se=0;Se<q.length;Se++)q[Se].frameNumber>ci.h&&(In=new ArrayBuffer(_u.size),(be=new DataView(In)).setUint32(0,q[Se].frameNumber,!0),be.setFloat64(4,q[Se].decodeTime,!0),be.setFloat64(12,q[Se].assemblyTime,!0),Si.push(In)),er=Math.max(er,q[Se].frameNumber);ci.h=er,0<Si.length&&ul(Si,6)}(Ri=performance.memory)&&(q=Ri.totalJSHeapSize,Ri=(M=Ri.usedJSHeapSize)-s.ra,fi=q-s.qa,s.ra=M,s.qa=q,0<=Ri&&0<=fi||(M=He).h&&(Ri={garbageCollectionStats:{timestamp:na(M),deltaUsedHeapSize:Ri,deltaTotalHeapSize:fi}},M.g&&M.g.postMessage(Ri))),M=s.Ba,(Ri=He).h&&(fi={inputChannelStats:{timestamp:na(Ri),bufferedAmount:M.Ja.bufferedAmount,maxSchedulingDelay:M.v.maxSchedulingDelay}},Ri.g&&Ri.g.postMessage(fi)),M.v.maxSchedulingDelay=0,B>=s.na&&s.Z&&(M=s.Z,Ri=new ArrayBuffer(15),(fi=new DataView(Ri)).setUint8(0,2),fi.setUint8(1,1),fi.setUint8(2,1),fi.setUint32(3,M.Eg,!0),fi.setFloat64(7,M.client,!0),Jg(s,Ri,"rtpmapping"),s.Z=void 0,s.na=B+1e3),"video"===s.mediaType&&(Ir(s.u)&&(M=new ArrayBuffer(12),(Ri=new DataView(M)).setUint8(0,1),Ri.setUint8(1,1),Ri.setUint16(2,s.o.C,!0),Ri.setUint16(4,Math.round(s.o.v),!0),Ri.setUint16(6,s.o.framesDecoded,!0),Ri.setUint16(8,s.o.pliCount,!0),Ri.setUint16(10,s.o.framesDropped,!0),Jg(s,M,"clientperf")),M=Zh(s.L),s.g.v=M,Ri=Zh(s.L),s.R.emit("StreamingQuality",Ri),s.xa&&s.R.emit("StreamingStats",{fps:(M=s.g).fps,xd:M.xd,avgDecodeTime:1e3*Qh(M.m),Rg:M.F,Ob:M.Ob,width:M.streamingResolution.width,height:M.streamingResolution.height}),(M=He).h&&(Ri={sq:{latencyScore:Ri.latencyScore,bandwidthScore:Ri.bandwidthScore,qualityScore:Ri.qualityScore,networkLossScore:Ri.networkLossScore,timestamp:na(M)}},M.g&&M.g.postMessage(Ri))),B>=s.ka&&(g.i("{4155ac9}","{a02a36e}",(M=s.g).C,(1e3*Qh(M.m)).toFixed(2),M.J,M.H.toFixed(2),M.s,M.rtd,M.o.toFixed(2),M.Ob.toFixed(2)),s.ka=B+5e3),B=performance.now()-B,(M=He).h&&(M.perf.GetStats+=B),(M=s.g).l.value+=B,M.l.count+=1,M.l.max=Math.max(B,M.l.max),s.wa&&(s.mediaType="video"===s.mediaType?"audio":"video")}function Mu(s,M,B){s.G.za(M,`Exception in ${B} getStats`,"{5cea617}.ts",0,0,!0,"getStats")}function Xp(s){s.m&&(clearInterval(s.m),s.m=0),s.F&&(clearInterval(s.F),s.F=0),ac(s.o)}function lg(s,M,B=!1){s.g.M.style.display=M?"block":"none",M?(s.M=B?2:1,Bg(s.g,B),s.$=performance.now()):s.M=0}function ju(s,M,B){return s.aa||(s=M.get(B.trackId))&&(B=Object.assign(s,B)),B}function cg(){return(cg=n(function*(s){const M={width:screen.width*window.devicePixelRatio,height:screen.height*window.devicePixelRatio},B={width:screen.width,height:screen.height},q=s.l,Se=s.ua.m;var be=s.oa;if((be=!(M.width===be.width&&M.height===be.height))||(be=!(B.width===(be=s.ja).width&&B.height===be.height)),be||Se!==s.ca){s.oa=M,s.ja=B,be=yield kd(Cu),s.ca=Se;var Je=`Stream[0]: Client display[-1] resolution : {physical : ${ia(M)}@${be}, logical : ${ia(B)}@${be}} at frame#${q} topology: ${Se}`;g.i("{5cea617}","{810d0ec}",ia(M),be,ia(B),be,q,Se),ip(s.Ba,Je)}})).apply(this,arguments)}function Jg(s,M,B){try{"open"===s.O.readyState&&s.O.send(M)}catch(q){g.e("{5cea617}","{78e74c5}",q),Mu(s,q,B)}}function Lm(s){if(!(2>s.s.length)){var M=s.s[0],B=s.s[s.s.length-1];s=B.requestsSent-M.requestsSent+B.consentRequestsSent-M.consentRequestsSent;var q=B.responsesReceived-M.responsesReceived;return M=B.packetsReceived-M.packetsReceived,{Mf:isNaN(s)?-1:s,Nf:isNaN(q)?-1:q,Lf:isNaN(M)?-1:M}}}var cf=class{constructor(s,M,B,q,Se,be,Je,_t,Yt,$t){var Sn,In,ci,Si,er,fi;this.pa=!0,this.l=this.ta=this.F=this.m=0,this.N="UNKNOWN",this.ga=!1,this.P=new Map,this.fa=this.rtd=this.jitter=this.W=0,this.mediaType="video",this.qa=this.ra=this.$=this.M=0,this.s=[],this.ja={width:0,height:0},this.oa={width:0,height:0},this.aa=this.T=this.J=!1,this.ca=this.ka=this.U=this.na=0,this.R=s,this.Ba=M,this.K=B,this.C=q,this.Ac=null!==(In=null===(Sn=Se.video)||void 0===Sn?void 0:Sn[0].Ac)&&void 0!==In&&In,this.maxBitrate=null!==(Si=null===(ci=Se.video)||void 0===ci?void 0:ci[0].Bc)&&void 0!==Si?Si:0,this.da=null!==(fi=null===(er=Se.video)||void 0===er?void 0:er[0].ed)&&void 0!==fi?fi:0,this.G=be,this.u=Je,this.ea=_t,this.ua=Yt,this.H={ts:0,timingFrameInfo:"",targetDelayMs:0,minPlayoutDelayMs:0,currentDelayMs:0},this.L=new Jd(this.maxBitrate,this.da),this.g=new eu(B,this.u,this.ea),qs&&(this.S=new Tm(B,Yt)),this.C=q,function Im(s){s.O=s.C.createDataChannel("stats_channel",{ordered:!1,reliable:!1,maxRetransmits:0}),s.O.binaryType="arraybuffer",Oh(s.Ba,s.O,{open:()=>{s.U=1},close:()=>{Xp(s),s.U=2}}),s.O.onmessage=M=>{var B=(M=new DataView(M.data)).getUint8(0);if(2<=B){if(s.W=M.getFloat64(1,!0)/1e6,s.jitter=1e3*M.getFloat64(9,!0),s.rtd=M.getFloat64(17,!0),s.g.H=s.jitter,s.g.rtd=s.rtd,3<=B&&(s.fa=M.getFloat64(25,!0),s.g.avgGameFps=s.fa,4<=B)){B=M.getFloat32(33,!0);var q=M.getFloat32(37,!0),Se=M.getFloat32(41,!0);let be=M.getFloat32(45,!0),Je=M.getFloat32(49,!0),_t=M.getFloat32(53,!0),Yt=M.getFloat32(57,!0),$t=M.getFloat32(61,!0),Sn=M.getFloat32(65,!0);M=M.getFloat32(69,!0),g.d("{5cea617}","{9721183}",B,q,Se,be,Je,_t,Yt,$t,Sn,M)}M=s.L,B=s.W,q=s.g,(Se=s.W)&&q.o<=Se&&(q.Ob=q.o/Se*100),q.F=Se,Se=100,25<=q.Ob&&(Se=(B-M.g)/(M.maxBitrate-M.g)*100),100<Se&&(Se=100),void 0===Se||isNaN(Se)||0>Se||(M.bandwidthScore=15*M.bandwidthScore/16+Se/16,M.bandwidthScore=Math.min(M.bandwidthScore,100)),M=s.L,q=0,250>(B=s.rtd)&&(void 0===(q=100*(250-B)/240)||isNaN(q))&&(q=0),M.latencyScore=15*M.latencyScore/16+q/16,M.latencyScore=Math.min(M.latencyScore,100)}else g.e("{5cea617}","{4f9f4b7}",B)}}(this),this.xa=this.R.hasListener("StreamingStats"),this.o=new Pm,this.h={ac:{$e:0,Hf:0,Zf:0},bc:"",xc:-1},this.v={Ag:0,droppedVideoFrames:0,totalVideoFrames:0},this.va=B,this.V=$t,this.sa=this.ya.bind(this),Xg(this)}ya(s,M){var B,q,Se,Je,_t,be=this.o,Yt=null!==(Je=M.receiveTime)&&void 0!==Je?Je:0;Je=M.presentationTime-Yt,Yt=1e3*(null!==(_t=M.processingDuration)&&void 0!==_t?_t:0),_t=void 0!==(_t=M.presentationTime)?_t-He.j:0;const $t=new ArrayBuffer(12),Sn=new DataView($t);Sn.setFloat64(0,_t,!0),Sn.setUint16(8,Math.min(100*Je,65535),!0),Sn.setUint16(10,Math.min(100*Yt,65535),!0),be.g.push($t),120==be.g.length&&ac(be),!(null===(B=this.S)||void 0===B)&&B.o()&&function Yg(s,M,B){s.g.push({presentedFrames:B.presentedFrames,rd:M,presentationTime:B.presentationTime,receiveTime:B.receiveTime,processingDuration:B.processingDuration}),M=Wp(s,s.l),function Ch(s,M,B,q,Se){return new Promise((be,Je)=>{window.setTimeout(()=>{e:if(0>=q||0>=Se)var _t=-1;else{var Yt=new OffscreenCanvas(q,Se).getContext("2d");if(Yt){try{Yt.drawImage(s,M,B,q,Se,0,0,q,Se),_t=Yt.getImageData(0,0,q,Se).data}catch(Sn){g.e("{0c7ed7c}","{b16b792}",Sn),_t=-1;break e}var $t=Yt=0;for(let Sn=0;Sn<_t.length-3;Sn+=4)Yt+=.2126*_t[Sn]+.7152*_t[Sn+1]+.0722*_t[Sn+2],$t++;_t=Yt/$t/255}else g.e("{0c7ed7c}","{b72639c}"),_t=-1}-1===_t&&Je(-1),be(_t)},0)})}(s.K,M.x,M.y,M.width,M.height).then(q=>{var be,Se=B.presentedFrames;if(s.g.length){var Je=s.g[s.g.length-1];if(Se!==Je.presentedFrames)g.d("{0c7ed7c}","{06323ea}",Se);else{for(Je.dd=q;32<s.g.length;)s.g.shift();if(1!=s.g.length&&!((q=s.g[s.g.length-2]).presentedFrames<Se-2||void 0===q.dd||-1===q.dd)&&Je.dd-q.dd>s.m){let _t;q=0;const Yt={presentedFrames:Se,rd:Je.rd,presentationTime:Je.presentationTime,receiveTime:Je.receiveTime,processingDuration:Je.processingDuration,Sb:0,Ec:0};for(;s.h.length&&s.h[0].Sb<(null!==(be=Je.receiveTime)&&void 0!==be?be:Je.presentationTime);)q++,_t=s.h.shift();_t&&(1<q&&g.d("{0c7ed7c}","{a4b8c55}",Se,q),Yt.Sb=_t.Sb,Yt.Ec=_t.Ec,s.s&&s.s(Yt))}}}})}(this.S.j,s,M),this.Ac&&M.rtpTimestamp&&M.receiveTime&&(this.Z={Eg:M.rtpTimestamp,client:M.receiveTime-He.j}),0!=this.m&&(null===(Se=(q=this.K).requestVideoFrameCallback)||void 0===Se||Se.call(q,this.sa))}reset(){Xp(this),this.L=new Jd(this.maxBitrate,this.da),this.g=new eu(this.K,this.u,this.ea),this.j=void 0}stop(){var s;this.pa&&(this.pa=!1,0!=this.m&&(this.reset(),lg(this,!1)),null===(s=this.S)||void 0===s||s.stop(),ya(this.G,"InboundVideoStats",this.h.bc,this.h.ac.Zf,this.h.ac.$e,this.h.xc,this.h.ac.Hf))}toggleOnScreenStats(s,M){lg(this,M??0===this.M,s)}packetsReceived(){return this.ta}};function dg(s){return"tcp"===s.protocol?"TCP":(s=s.address||s.relatedAddress)?s.endsWith(".local")?"MDNS":-1!==s.indexOf(":")?"IPV6":"IPV4":"UNKNOWN"}function df(s){s=s.address||s.relatedAddress;var M=s?.split(".");if(4===M?.length&&(s=parseInt(M[0]),M=parseInt(M[1]),!isNaN(s)&&!isNaN(M))){let B="UNKNOWN";return 10===s?B="10/8":192===s&&168===M?B="192.168/16":172===s&&16==(240&M)&&(B="172.16/12"),"UNKNOWN"!==B&&g.d("{5cea617}","{343589d}",B),B}return g.i("{5cea617}","{fa2d6b9}"),"UNKNOWN"}function Sh(s,M,B,q){const Se=/^([^[.]+)(?:\[(\d+)\])?\.([^:]+): *(.+)$/;let be=!0;for(const Yt of s.split(/\r?\n/)){var Je=Se.exec(Yt);if(Je){var _t=Je[1];s=void 0!==Je[2]?Number.parseInt(Je[2]):void 0;const $t=Je[4];Je=_t+"."+Je[3];const Sn=qg(M,_t=ug(_t),s),In=qg(B,_t,s);Sn&&In?In.has(Je)?(g.d("{eb7c2d0}","{2beb68f}",q,Je,$t),Sn.set(Je,$t)):(g.w("{eb7c2d0}","{cc4fdef}",q,Je,$t),be=!1):(g.w("{eb7c2d0}","{a649ad8}",q,_t,s),be=!1)}}return be}function ug(s){switch(s){case"video":case"vqos":case"qscore":case"bwe":case"clientPerfBr":case"packetPacing":return"video";case"audio":case"aqos":case"audioBitrate":return"audio";case"ri":return"application";case"mic":return"mic"}}function Mh(s,M,B){s.set(B?"vqos.dfc.adjustResAndFps":"vqos.drc.enable",M?"1":"0")}function qg(s,M,B){var q;return void 0===M?s.nb:null===(q=s.media.filter(Se=>Se.mediaType===M)[B??0])||void 0===q?void 0:q.attributes}function ep(s,M){let B=`v=0\no=${s.origin}\ns=-\nt=${s.time}\n`;const q=(Se,be)=>{for(const[Je,_t]of Se){const Yt=_t;Yt!==be.get(Se=Je)&&(B+=`a=${Se}:${Yt}\n`)}};q(s.nb,M.nb);for(const Se of s.media)B+=`m=${Se.mediaType} 0 RTP/AVP\n`,B+=`a=msid:${Se.Fc}\n`,s=M.media.find(be=>be.Fc===Se.Fc),q(Se.attributes,s.attributes);return B}function nl(s,M=!1){const B=s.m+1;try{let q;s.sessionId&&(q="x-nv-sessionid."+s.sessionId);let Se=s.url;M&&(Se+="&reconnect=1");let be=new WebSocket(Se,q);be.onopen=()=>{var Je;if(s.h("{48fa30b}"+B),be===s.g){null===(Je=s.j)||void 0===Je||jm(Je);for(const _t of s.l)be.send(_t.stats?_t.stats:JSON.stringify(_t));for(const _t of s.s)tp(s,_t);s.s=[]}},be.onclose=Je=>{var _t;s.h("{6406bff}"+B),be===s.g&&(null===(_t=s.j)||void 0===_t||_g(_t,{error:s.v,code:Je.code,reason:Je.reason,wasClean:Je.wasClean}),hg(s),s.v=!1)},be.onerror=()=>{s.h("{7605058}"+B),be===s.g&&(s.v=!0)},be.onmessage=Je=>{if(s.j)try{let Yt=JSON.parse(Je.data);if(s.o||s.h("{523f5b9}"),Qp(s),!Yt.hb){if(void 0!==Yt.ack){var _t=Yt.ack;for(let $t=s.l.length-1;0<=$t;$t--)s.l[$t].ackid<=_t&&s.l.splice($t,1)}if(void 0!==Yt.ackid){if(s.maxReceivedAckId<Yt.ackid&&(au(s.j,Yt),s.maxReceivedAckId=Yt.ackid),s.g){let $t=JSON.stringify({ack:s.maxReceivedAckId});s.h("{903be10}"+$t),s.g.send($t)}}else void 0===Yt.ack&&au(s.j,Yt)}}catch(Yt){s.C("Error in local websocket message handling: "+Yt+' "'+Je.data+'"')}},s.g=be}catch(q){s.g=void 0,s.C("WebSocket creation exception: "+q+" for socket "+s.m)}s.m=B}function ql(s){0!==s.o&&(self.clearTimeout(s.o),s.o=0)}function hg(s){s.g&&(s.g.onclose=null,s.g.onerror=null,s.g.onmessage=null,s.g.onopen=null,s.g=void 0)}function Qp(s){ql(s),s.o=self.setTimeout(()=>{var M;s.h("{6c3505a}"+(null===(M=s.g)||void 0===M?void 0:M.readyState)+"{754f60b}"+s.m),s.g||nl(s,!0),Qp(s)},3e3)}function tp(s,M){void 0!==M.ackid&&void 0!==M.ackid&&s.l.push(M),s.g&&s.g.send(M.stats?M.stats:JSON.stringify(M))}var gg=class{constructor(s,M){this.sessionId=s,this.v=!1,this.l=[],this.s=[],this.maxReceivedAckId=this.o=0,this.url="",this.m=0,this.h=M.info,this.C=M.exception}initialize(s,M,B,q=!1){this.url=s,this.maxReceivedAckId=M,this.j=B,nl(this,q),this.h("{fcf6f89}"+this.m)}uninitialize(s){var M;this.maxReceivedAckId=0,this.l=[],this.s=[],this.j=void 0,ql(this),null===(M=this.g)||void 0===M||M.close(s),hg(this),this.h("{986b258}"+s+"{754f60b}"+this.m)}send(s){this.j&&(this.g||nl(this,!0),this.g&&this.g.readyState===WebSocket.OPEN?tp(this,s):this.s.push(s))}};function uf(s){switch(s){case"H264":return"h264";case"H265":return"hevc";case"AV1":return"av1";default:return"video"}}var Fm=class{constructor(s,M){this.g=s,this.h=M,this.streams=[]}start(s){if(1&this.g.vd&&(s=s.getTransceivers().find(M=>{var B,q;return"video"===(null===(q=null===(B=M.receiver)||void 0===B?void 0:B.track)||void 0===q?void 0:q.kind)}))){const M={data:new DataView(new ArrayBuffer(209715200)),size:0,Nd:"video",kg:uf(this.h),sf:!1};!function pg(s,M,B){const{readable:q,writable:Se}=M.createEncodedStreams();M=new TransformStream({start:()=>{g.i("{d7392d2}","{b96b3ec}",B.Nd)},flush:()=>{},transform:(be,Je)=>{if(!B.sf){const Sn=new Uint8Array(be.data);if(B.size+Sn.byteLength<=B.data.byteLength){var _t=B.data,Yt=B.size,$t=Sn;const In=$t.byteLength;for(let ci=0;ci<In;++ci)_t.setUint8(Yt+ci,$t[ci]);B.size+=Sn.byteLength}else B.sf=!0,g.w("{d7392d2}","{f35b2f4}",B.size,B.Nd)}Je.enqueue(be)}}),q.pipeThrough(M).pipeTo(Se),s.streams.push(B)}(this,s.receiver,M)}}};function Um(s){s.g&&(s.j=!s.j,s.g.style.display=s.j?"block":"none")}var hf=class{constructor(s,M,B,q){this.l=s,this.K=M,this.u=B,this.G=q,this.h={top:-1,left:-1,bottom:-1,right:-1},this.Xa=this.Ra=0,this.j=!1,this.m=0,qs&&((s=document.createElement("div")).style.display="none",s.style.position="absolute",s.style.color="white",s.style.backgroundColor="rgb(105, 105, 105, 0.7)",s.style.padding="2px",s.style.bottom="0px",s.style.left="0px",s.style.margin="5px",this.g=s,M.insertAdjacentElement("afterend",this.g))}uninitialize(){this.g&&this.g.remove()}send(){var s,M,B;if(!(0>=this.K.videoHeight||0>=this.K.videoWidth)){var q=Ur(),Se=function Bm(s,M){let{width:B,height:q}={width:screen.width,height:screen.height};var Se=()=>{let _t;switch(void 0!==window.orientation?_t=window.orientation:screen.orientation&&(_t=screen.orientation.angle),_t){case 90:case-90:case 270:return!1;default:return!0}};D(s.u)&&(M.top=Math.max(M.top,20),Se()||(Se=B,B=q,q=Se)),Se=(_t=>{let Yt=_t.offsetTop,$t=_t.offsetLeft;for(var Sn=_t.offsetParent;Sn;)Yt+=Sn.offsetTop,$t+=Sn.offsetLeft,Sn=Sn.offsetParent;Sn=_t.clientHeight;let In=_t.clientWidth;return"Android"===s.u.os&&(window.innerHeight>window.innerWidth&&_t.clientHeight<_t.clientWidth||window.innerHeight<window.innerWidth&&_t.clientHeight>_t.clientWidth)&&(g.w("{48f82fd}","{c9d343e}"),Sn=_t.clientWidth,In=_t.clientHeight),{top:Yt,left:$t,bottom:Math.max(window.innerHeight-Yt-Sn,0),right:Math.max(window.innerWidth-$t-In,0)}})(s.K);const be=Math.max(q-window.innerHeight,0)/2,Je=Math.max(B-window.innerWidth,0)/2;return{top:Math.max(M.top-be-Se.top-s.Ra,0)/(s.K.clientHeight-2*s.Ra),left:Math.max(M.left-Je-Se.left-s.Xa,0)/(s.K.clientWidth-2*s.Xa),bottom:Math.max(M.bottom-be-Se.bottom-s.Ra,0)/(s.K.clientHeight-2*s.Ra),right:Math.max(M.right-Je-Se.right-s.Xa,0)/(s.K.clientWidth-2*s.Xa)}}(this,q);if(!function xa(s,M){const B=Object.keys(s),q=Object.keys(M);if(B.length!==q.length)return!1;for(const Se of B)if(s[Se]!==M[Se])return!1;return!0}(Se,this.h)){var be=JSON.stringify(Se,(Je,_t)=>_t.toFixed?Number(_t.toFixed(2)):_t);g.d("{48f82fd}","{054b8b0}",JSON.stringify(q),be),null!==(s=tr.sendInsetValueUpdateEvents)&&void 0!==s&&s&&2>this.m++&&(q=(s=(Je,_t=1)=>{for(const Yt of Object.keys(Je)){const $t=Math.round(Je[Yt]*_t);Je[Yt]=isNaN($t)?-1:$t}return Je})(Object.assign({},q)),s=s(Object.assign({},Se),1e3),null===(M=this.G)||void 0===M||ya(M,"InsetValueUpdate","Original",q.top,q.left,q.bottom,q.right),null===(B=this.G)||void 0===B||ya(B,"InsetValueUpdate","Normalized",s.top,s.left,s.bottom,s.right)),this.h=Object.assign({},Se);for(const Je of Object.keys(Se))Se[Je]=isNaN(Se[Je])?0:Se[Je];M={messageType:"SAFE_ZONE",messageRecipient:"NvGridSvc:NGS",data:JSON.stringify({safeZoneData:{type:"InsetValueUpdate",rect:Se}})},this.l.sendCustomMessage(M),qs&&this.g&&(this.g.innerText="Safe Zone: \nTop: "+(100*Math.max(this.h.top,0)).toFixed()+"%\nRight: "+(100*Math.max(this.h.right,0)).toFixed()+"%\nBottom: "+(100*Math.max(this.h.bottom,0)).toFixed()+"%\nLeft: "+(100*Math.max(this.h.left,0)).toFixed()+"%")}}}};function cd(s,M,B){s.g.get(M).push(B)}function uc(s,M,B){-1!==(B=(s=s.g.get(M)).indexOf(B))&&s.splice(B,1)}function yh(s,M){if(s.U&&bu(s,M),s.h!==M){s.h=M;for(const B of s.g.get(0))B(M)}}function Wu(s,M){if(s.C!==M){s.C=M;for(const B of s.g.get(3))B(M)}}function yu(s,M){if(s.s!==M){s.s=M;for(const B of s.g.get(4))B(M)}}function $u(s,M){return s.T?.22>=M.level:s.Z?.2>=M.level:s.W?.1>=M.level:.33>=M.level}function bh(){var s,M;return ga&&null!==(s=tr.enableComputePressure)&&void 0!==s&&s&&(null===(M=globalThis.PressureObserver)||void 0===M?void 0:M.prototype)&&PressureObserver.knownSources instanceof Array&&PressureObserver.knownSources.includes("cpu")}function mg(s){switch(s){case"nominal":default:return 0;case"fair":return 1;case"serious":return 2;case"critical":return 3}}function bu(s,M){if(s.v!==M){s.v=M;for(const B of s.g.get(1))B(M)}}var Yu=class{constructor(s){var M,B,q,Se;this.g=new Map,this.C=this.s=this.j=!1,this.o="nominal",this.U="PHONE"===s.deviceType||"TABLET"===s.deviceType,this.Z=k(s),this.W="iPadOS"===s.os,this.T=K(s),this.h=this.v=document.hasFocus(),this.m=0,s=window.zoneless;const be=null!==(B=null===(M=s?.windowAddEventListener)||void 0===M?void 0:M.bind(window))&&void 0!==B?B:window.addEventListener.bind(window),Je=null!==(Se=null===(q=s?.documentAddEventListener)||void 0===q?void 0:q.bind(document))&&void 0!==Se?Se:document.addEventListener.bind(document);this.N=this.da.bind(this),this.J=this.aa.bind(this),this.O=this.F.bind(this),this.P=this.ea.bind(this),this.R=this.fa.bind(this),this.L=this.ca.bind(this),this.H=this.$.bind(this),this.M=this.S.bind(this),be("focus",this.N),be("blur",this.J),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(_t=>Je(_t,this.O)),Je("mouseenter",this.P),Je("mouseleave",this.R),navigator.getBattery&&navigator.getBattery().then(_t=>{Wu(this,!_t.charging),yu(this,$u(this,_t)),_t.addEventListener("chargingchange",this.L),_t.addEventListener("levelchange",this.H)}),void 0!==window.screen.isExtended&&(this.S(),window.screen.addEventListener("change",this.M)),bh()?(this.l=new PressureObserver(_t=>{if(0<_t.length){let Yt="nominal";for(const $t of _t)mg($t.state)>mg(Yt)&&(Yt=$t.state);if(this.o!=(_t=Yt)){this.o=_t;for(const $t of this.g.get(5))$t()}}}),this.l.observe("cpu")):g.i("{0c4eeb2}","{c70b747}"),this.g.set(0,[]),this.g.set(2,[]),this.g.set(1,[]),this.g.set(3,[]),this.g.set(4,[]),this.g.set(5,[]),this.F()}uninitialize(){var s,M,B,q,Se,be,Je;const _t=window.zoneless,Yt=null!==(M=null===(s=_t?.windowRemoveEventListener)||void 0===s?void 0:s.bind(window))&&void 0!==M?M:window.removeEventListener.bind(window),$t=null!==(q=null===(B=_t?.documentRemoveEventListener)||void 0===B?void 0:B.bind(document))&&void 0!==q?q:document.removeEventListener.bind(document);Yt("focus",this.N),Yt("blur",this.J),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(Sn=>$t(Sn,this.O)),$t("mouseenter",this.P),$t("mouseleave",this.R),navigator.getBattery&&navigator.getBattery().then(Sn=>{Sn.removeEventListener("chargingchange",this.L),Sn.removeEventListener("levelchange",this.H)}),void 0!==window.screen.isExtended&&window.screen.removeEventListener("change",this.M),s=null===(Se=this.l)||void 0===Se?void 0:Se.takeRecords(),s?.map(Sn=>g.i("{0c4eeb2}","{4f27ba0}",JSON.stringify(Sn))),null===(be=this.l)||void 0===be||be.unobserve("cpu"),null===(Je=this.l)||void 0===Je||Je.disconnect();for(const Sn of this.g.values())Sn.splice(0)}da(){yh(this,!0)}aa(){yh(this,!1)}F(){var s=window.document;if(s=!!(document.fullscreen||1==s.webkitIsFullScreen||s.mozFullScreen||s.msFullscreenElement),this.j!==s){this.j=s;for(const M of this.g.get(2))M(s)}}ea(){bu(this,!0)}fa(){bu(this,!1)}ca(){navigator.getBattery().then(s=>{Wu(this,!s.charging)})}$(){navigator.getBattery().then(s=>{yu(this,$u(this,s))})}S(){this.m=window.screen.isExtended?3:0,g.i("{0c4eeb2}","{ee99c72}",this.m)}};function zu(s){return s.split("\nm=").map((M,B)=>(0<B?"m="+M:M).trim()+"\r\n")}function su(s,M){return function np(s){return s.trim().split("\n").map(M=>M.trim())}(s).filter(B=>0===B.indexOf(M))}function gf(s){return{algorithm:(s=s.substr(14).split(" "))[0].toLowerCase(),value:s[1].toUpperCase()}}function Ku(s,M,B,q){let Se=s.split("\r\n"),be=-1;for(let Je=0;Je<Se.length;Je++)if(0===Se[Je].indexOf("m=video")){be=Je;break}if(-1===be)return g.e("{93c7910}","{e0899ab}","video"),s;for(g.d("{93c7910}","{5cc346f}","video",be),be++,s=";x-google-max-bitrate="+B+";x-google-min-bitrate="+M+";x-google-start-bitrate="+q,M=new Set;be<Se.length&&0!==Se[be].indexOf("m=");)0===(B=Se[be]).indexOf("a=rtpmap:")&&0<B.indexOf("H264/")?M.add(B.slice(9,B.indexOf(" "))):0===B.indexOf("a=fmtp:")&&M.has(B.slice(7,B.indexOf(" ")))&&(Se[be]+=s),be++;return Se.join("\r\n")}function _g(s,M){var B,q,Se,be;if(M.error&&0!==s.C){var Je=s.G,_t=null!==(B=M.code)&&void 0!==B?B:0;B=null!==(Se=null===(q=s.session)||void 0===q?void 0:q.signalConnectionInfo.ip)&&void 0!==Se?Se:"",q=null!==(be=M.reason)&&void 0!==be?be:"",be=new xo({retryCount:s.ta,sessionId:Je.sessionId,subSessionId:Je.subSessionId,serverId:B,url:s.M,overrideConfigType:Bo.type,overrideConfigVersion:Bo.version,disconnectionReason:q,cleanDisconnection:fo(M.wasClean),networkType:de(sd.getCurrentNetworkType()),statusCode:_t?_t.toString():"",cmsId:String(Je.cmsId),moduleName:"RAGNAROK"}),Je.h(be),s.ta++,3>=s.ta?(rp(s),Uc(s)):(window.clearTimeout(s.C),s.C=0,g.i("{93c7910}","{8595cb4}"),ed(s,{code:3237093890}))}M.wasClean||s.xa++}function au(s,M){var B;g.i("{93c7910}","{39024c3}",JSON.stringify(M)),M.ackid&&s.maxReceivedAckId<M.ackid&&(s.maxReceivedAckId=M.ackid),M.peer_info?(M.peer_info.name===s.name||0===s.id)&&(s.id=M.peer_info.id,g.d("{93c7910}","{c5faf27}",s.id)):M.peer_msg?function pl(s,M,B){xh.apply(this,arguments)}(s,M.peer_msg.from,M.peer_msg.msg):M.error&&("peerRemoved"===M.error?(0!==s.F?(M=null!==(B=ml(s))&&void 0!==B?B:3237094161,g.w("{93c7910}","{cbb35d3}")):M=3237094159,Dl(s,M)):Dl(s,3237094160))}function jm(s){0!==s.C&&(window.clearTimeout(s.C),s.C=0,s.Va=Date.now()-s.bb),s.H||0!==s.F||function Zu(s){s.F=window.setTimeout(()=>{var M;s.F=0,g.i("{93c7910}","{d22df91}"),Dl(s,null!==(M=ml(s))&&void 0!==M?M:3237093895)},3e4),s.lb=Date.now()}(s)}function Xu(s,M){var B;He.h&&(He.perf.DCSend+=M),null===(B=s.h)||void 0===B||((s=B.g).j.value+=M,s.j.count+=1,s.j.max=Math.max(M,s.j.max))}function jl(s){if(Ju(s))return s.h.S}function qc(s,M){s.da.innerHTML=M,s.da.style.display="block",s.N&&clearTimeout(s.N),s.N=window.setTimeout(()=>{s.da.style.display="none"},1e3)}function Oh(s,M,B){const q=M.label;let Se=!1;M.onopen=()=>{var be;g.d("{93c7910}","{8e9ee5d}",q),null===(be=B.open)||void 0===be||be.call(B),B.errorCode&&Cg(s)},M.onclosing=()=>{g.d("{93c7910}","{d0c8ae7}",q),Se=!0},M.onclose=()=>{var be;g.d("{93c7910}","{a3c9826}",q),null===(be=B.close)||void 0===be||be.call(B),B.errorCode&&Cd(s)},M.onerror=be=>{if(g.e("{93c7910}","{fcd64bb}",q),Se&&B.errorCode)Cd(s)||Dl(s,15867907);else{var Je=M.bufferedAmount;be=be?.error,s.Z||Il(s.G,"ChannelError",q,be?.name,be?.message,Je?.toString()),g.e("{93c7910}","{db7ae96}",q,be?.name,be?.message),B.errorCode&&Dl(s,B.errorCode)}}}function ip(s,M){Rl(s,{etwPrint:M})}function lu(){g.d("{93c7910}","{440d709}",He.j,performance.timeOrigin)}function rp(s){var M=1;for(let B=1;10>B;B++)M*=10;M=(M=""+Math.floor(Math.random()*M)).padEnd(10,"0"),s.name="peer-"+M,g.d("{93c7910}","{f2b789d}",s.name),s.M=s.L+"/sign_in?peer_id="+s.name+"&version=2",s.signalingUrlQueryParameters&&(s.M+="&"+s.signalingUrlQueryParameters),g.d("{93c7910}","{05b8afd}",s.M)}function ed(s,M){var B,q;s.H||(s.cb=Date.now()-s.lb,void 0===M?Sl||(null===(q=s.O)||void 0===q||q.uninitialize(4001),s.O=void 0,He.startWebSocket(s.M,s.maxReceivedAckId,s,!0),oa&&nm(s)):function em(s){var M,B,q,Se,be,Je,_t,Yt,$t;const Sn=Ri=>{var ur,vr;return(null!==(ur=Ri?.get("TCP"))&&void 0!==ur?ur:0)+(null!==(vr=Ri?.get("IPV6"))&&void 0!==vr?vr:0)};var In=(Ri,ur)=>{let vr=0;if(ur){Ri=`${Ri} local candidates:`;for(const[Hr,Ko]of ur)vr+=Ko,Ri+=` ${ur=Hr}: ${Ko}`;g.i("{93c7910}","{0b0c6f9}",Ri)}return vr};const ci=null===(M=s.h)||void 0===M?void 0:function lf(s){let M=new Kg;if(!s.j)return M;for(const B of s.j.values())"local-candidate"===B.type&&(s=dg(B),M.set(s,M.get(s)+1));return M}(M);M=In("event",s.ca);const Si=In("stats",ci);In=M-s.Ta;let er="";const fi=null===(B=s.g)||void 0===B?void 0:B.getReceivers().find(Ri=>"video"===Ri.track.kind&&Ri.track.enabled);(B=null===(Je=null===(be=null===(Se=null===(q=fi?.Yg)||void 0===q?void 0:q.Ug)||void 0===Se?void 0:Se.getSelectedCandidatePair)||void 0===be?void 0:be.call(Se))||void 0===Je?void 0:Je.local)&&(er=`category: ${dg(B)}, type: ${B.type}`),ya(s.G,"LocalCandidatesCategories",er,M,M-Sn(s.ca),Si,Si-Sn(ci)),q=null!==(Yt=null===(_t=s.h)||void 0===_t?void 0:function km(s){let M=new Set;if(!s.j)return M;for(const B of s.j.values())"local-candidate"===B.type&&"IPV4"===dg(s=B)&&"UNKNOWN"!==(s=df(s))&&M.add(s);return M}(_t))&&void 0!==Yt?Yt:new Set,ya(s.G,"LocalCandidateRanges",`${null===($t=s.g)||void 0===$t?void 0:$t.iceGatheringState}`,In,q?.size,s.ka.size,new Set([...q,...s.ka]).size)}(s),s.H=!0,0!==s.F&&(window.clearTimeout(s.F),s.F=0),M={sessionId:s.session.sessionId,subSessionId:s.session.subSessionId,streams:s.o,streamInfo:s.session.streamInfo,error:M,zoneName:s.session.zoneName,zoneAddress:s.session.zoneAddress,gpuType:s.session.gpuType,isResume:null!==(B=s.isResume)&&void 0!==B&&B},s.Ba.Gc(M),s.ga.send())}function Eh(s,M){var B;try{if("open"===(null===(B=s.S)||void 0===B?void 0:B.readyState)){let q=performance.now();s.S.send(JSON.stringify(M)),Xu(s,performance.now()-q)}else g.w("{93c7910}","{593db1b}")}catch(q){g.e("{93c7910}","{a585a6e}",q),s.G.za(q,"sendControlMessage exception","{93c7910}.ts",0,0,!0)}}function qp(s){s.m&&(s.m.uninitialize(),s.m=void 0)}function Bd(s){var M;null===(M=s.h)||void 0===M||M.stop()}function xh(){return(xh=n(function*(s,M,B){var q;g.d("{93c7910}","{9978507}",M);try{const Se=JSON.parse(B);if("offer"===Se.type){s.Sa=!0;let be,Je=Se.sdp||"";g.d("{93c7910}","{ca9a155}",Je);const _t=yield s.lc;if(s.W=function _d(s,M){s=s.split("\r\n");var B=-1;if(!M.length)return"H264";for(var q=0;q<s.length;q++)if(s[q].startsWith("m=video")){B=q;break}if(-1===B)return g.e("{93c7910}","{3ab33e3}"),"H264";for(B+=1,q=new Set;B<s.length&&!s[B].startsWith("m=");){var Se=s[B];0===Se.indexOf("a=rtpmap:")&&("H264"!==(Se=Se.slice(Se.indexOf(" ")+1,Se.indexOf("/")))&&"H265"!==Se&&"AV1"!==Se||q.add(Se)),B++}for(const be of M)if(q.has(be))return g.i("{93c7910}","{304c3b1}",be),be;return g.i("{93c7910}","{81357e4}"),"H264"}(Je,_t),Se.nvstSdp){const $t=null!==(q=Se.nvstServerOverrides)&&void 0!==q?q:"";if(be=function ll(s,M,B){var q,Se=s.s,be=s.u,Je=s.W;if(M=function Nm(s){let q,Se,M={origin:"",time:"",nb:new Map,media:[]},B=new Map,be=!1;const Je=()=>{if(be){if(!Se||!q)return g.e("{eb7c2d0}","{adc37a7}"),!1;M.media.push({mediaType:Se,Fc:q,attributes:B}),q=Se=void 0}else M.nb=B,be=!0;return B=new Map,!0};for(const Yt of s.split(/\r?\n/))if(!(2>Yt.length||"="!==Yt[1])){var _t=Yt[0];if(s=Yt.substr(2),"m"==_t){if(!Je())return;Se=s.split(" ")[0]}else if("a"==_t){if(1!==(_t=s.split(":",2)).length){if(2!==_t.length)return void g.e("{eb7c2d0}","{f6bdb84}",s);if(s=_t[0],_t=_t[1],"msid"===s){if(void 0!==q)return void g.e("{eb7c2d0}","{dc7fbec}",_t);q=_t}else B.set(s,_t)}}else if("t"==_t){if(be)return void g.e("{eb7c2d0}","{14fc069}");M.time=s}else if("o"==_t){if(be)return void g.e("{eb7c2d0}","{eb0287a}");M.origin=s}}if(Je()){if(""!==M.time&&""!==M.origin)return M;g.e("{eb7c2d0}","{8e7e486}")}}(M)){var Yt,_t=M;const xc={origin:_t.origin,time:_t.time,nb:new Map,media:[]};xc.nb.set("general.clientSupportsIntraRefresh","Safari"===be.browser?"0":"1"),xc.nb.set("general.clientCapture",null!==(Yt=_t.nb.get("general.clientCapture"))&&void 0!==Yt?Yt:"0"),xc.nb.set("runtime.serverTraceCapture","2"),Yt=0;for(const gc of _t.media){if(_t=new Map,"video"===gc.mediaType&&Yt<Se.video.length){var $t=_t,Sn=Se.video[Yt],In=be,ci=Je;$t.set("vqos.fec.rateDropWindow","10"),$t.set("vqos.fec.minRequiredFecPackets","2"),$t.set("vqos.drc.minRequiredBitrateCheckEnabled","1"),$t.set("video.dx9EnableNv12","1"),$t.set("vqos.qpg.enable","1"),$t.set("vqos.resControl.qp.qpg.featureSetting","7"),$t.set("bwe.useOwdCongestionControl","1"),$t.set("video.enableRtpNack","1"),$t.set("vqos.bw.txRxLag.minFeedbackTxDeltaMs","200"),$t.set("vqos.fec.repairMinPercent","5"),$t.set("vqos.fec.repairPercent","5"),$t.set("vqos.fec.repairMaxPercent","35"),$t.set("vqos.drc.bitrateIirFilterFactor","18"),$t.set("video.packetSize","1140"),$t.set("packetPacing.minNumPacketsPerGroup","15"),$t.set("vqos.bllFec.enable","0");var Si=void 0,er=Y(In)||K(In);(null!==(Si=tr.enableOOFQosEnhancements)&&void 0!==Si?Si:er)&&($t.set("vqos.adjustStreamingFpsDuringOutOfFocus","1"),$t.set("vqos.resControl.cpmRtc.ignoreOutOfFocusWindowState","1"),$t.set("vqos.resControl.perfHistory.rtcIgnoreOutOfFocusWindowState","1")),er=120<=Sn.fc;var fi=120===Sn.fc,Ri=240===Sn.fc,ur=4953600<=Sn.$b*Sn.Zb,vr=Qo(Sn.$b,Sn.Zb)||ur;if((Si=Ir(In))&&$t.set("vqos.resControl.cpmRtc.featureMask","3"),er&&($t.set("bwe.iirFilterFactor","8"),$t.set("video.encoderFeatureSetting","47"),$t.set("video.encoderPreset","6"),$t.set("vqos.resControl.cpmRtc.badNwSkipFramesCount"," 600"),$t.set("vqos.resControl.cpmRtc.decodeTimeThresholdMs","9"),fi?($t.set("video.fbcDynamicFpsGrabTimeoutMs","6"),$t.set("vqos.resControl.cpmRtc.serverResolutionUpdateCoolDownCount","6000")):Ri&&($t.set("video.fbcDynamicFpsGrabTimeoutMs","18"),$t.set("vqos.resControl.cpmRtc.serverResolutionUpdateCoolDownCount","12000"),$t.set("video.enableNextCaptureMode","1"),$t.set("vqos.maxStreamFpsEstimate","240"),$t.set("video.videoSplitEncodeStripsPerFrame","3"),$t.set("video.updateSplitEncodeStateDynamically","1"))),(vr||42e3<=Sn.Bc)&&($t.set("packetPacing.numGroups",fi?"3":"5"),$t.set("packetPacing.maxDelayUs","1000"),$t.set("packetPacing.minNumPacketsFrame","10"),$t.set("video.rtpNackQueueLength","1024"),$t.set("video.rtpNackQueueMaxPackets","512"),$t.set("video.rtpNackMaxPacketCount","25"),$t.set("vqos.drc.qpMaxResThresholdAdj","4"),$t.set("vqos.grc.qpMaxResThresholdAdj","4"),$t.set("vqos.drc.iirFilterFactor","100"),$t.set("vqos.qpg.enable","0"),$t.set("vqos.resControl.qp.qpg.featureSetting","0"),vr&&($t.set("video.videoSplitEncodeStripsPerFrame","3"),$t.set("video.updateSplitEncodeStateDynamically","1")),ur&&($t.set("video.encoderPreset","6"),$t.set("vqos.drc.add1440pResLevelFor4kDrcTable","1"),$t.set("vqos.drc.minAdaptiveQpThreshold","40"),$t.set("vqos.grc.minAdaptiveQpThreshold","40"),$t.set("vqos.drc.upperQpThreshold","40"),$t.set("vqos.grc.upperQpThreshold","40"),$t.set("vqos.drc.qpMaxResThresholdAdj","5"),$t.set("vqos.grc.qpMaxResThresholdAdj","5"),$t.set("vqos.drc.iirFilterFactor","100"),$t.set("vqos.fec.repairMinPercent","0"),$t.set("vqos.qpg.enable","0"),$t.set("vqos.resControl.qp.qpg.featureSetting","0"))),"AV1"===ci){var Ko,os,Ja,Us,ua,kl,Wl,$l,Hr=vr=Ri=fi=ci=void 0,Fo=void 0,mr=void 0,_o=$t;_o.set("vqos.qpg.enable","0"),_o.set("vqos.resControl.qp.qpg.featureSetting","0"),_o.set("vqos.drc.minQpHeadroom","20"),_o.set("vqos.drc.lowerQpThreshold","100"),_o.set("vqos.drc.upperQpThreshold","200"),_o.set("vqos.drc.minAdaptiveQpThreshold","180");let ud=Number(null!==($l=_o.get("vQosConfig.drc.qpMaxResThresholdAdj"))&&void 0!==$l?$l:"0");_o.set("vqos.drc.qpMaxResThresholdAdj",(5*ud).toString()),_o.set("vqos.drc.qpCodecThresholdAdj","0"),_o.set("vqos.dfc.minQpHeadroom",null!==(Wl=_o.get("vqos.drc.minQpHeadroom"))&&void 0!==Wl?Wl:"0"),_o.set("vqos.dfc.qpLowerLimit",null!==(kl=_o.get("vqos.drc.lowerQpThreshold"))&&void 0!==kl?kl:"0"),_o.set("vqos.dfc.qpMaxUpperLimit",null!==(ua=_o.get("vqos.drc.upperQpThreshold"))&&void 0!==ua?ua:"0"),_o.set("vqos.dfc.qpMinUpperLimit",null!==(Us=_o.get("vqos.drc.minAdaptiveQpThreshold"))&&void 0!==Us?Us:"0"),_o.set("vqos.dfc.qpMaxResThresholdAdj",null!==(Ja=_o.get("vQosConfig.drc.qpMaxResThresholdAdj"))&&void 0!==Ja?Ja:"0"),_o.set("vqos.dfc.qpCodecThresholdAdj",null!==(os=_o.get("vqos.drc.qpCodecThresholdAdj"))&&void 0!==os?os:"0"),ur&&(_o.set("vqos.drc.minAdaptiveQpThreshold",null!==(mr=_o.get("vQosConfig.drc.upperQpThreshold"))&&void 0!==mr?mr:"0"),_o.set("vqos.dfc.qpMinUpperLimit",null!==(Fo=_o.get("vQosConfig.dfc.qpMaxUpperLimit"))&&void 0!==Fo?Fo:"0")),_o.set("vqos.grc.minQpHeadroom",null!==(Ko=_o.get("vqos.drc.minQpHeadroom"))&&void 0!==Ko?Ko:"0"),_o.set("vqos.grc.lowerQpThreshold",null!==(Hr=_o.get("vqos.drc.lowerQpThreshold"))&&void 0!==Hr?Hr:"0"),_o.set("vqos.grc.upperQpThreshold",null!==(vr=_o.get("vqos.drc.upperQpThreshold"))&&void 0!==vr?vr:"0"),_o.set("vqos.grc.minAdaptiveQpThreshold",null!==(Ri=_o.get("vqos.drc.minAdaptiveQpThreshold"))&&void 0!==Ri?Ri:"0"),_o.set("vqos.grc.qpMaxResThresholdAdj",null!==(fi=_o.get("vqos.drc.qpMaxResThresholdAdj"))&&void 0!==fi?fi:"0"),_o.set("vqos.grc.qpCodecThresholdAdj",null!==(ci=_o.get("vqos.drc.qpCodecThresholdAdj"))&&void 0!==ci?ci:"0")}if($t.set("video.clientViewportWd",Sn.$b.toString()),$t.set("video.clientViewportHt",Sn.Zb.toString()),$t.set("video.maxFPS",Sn.fc.toString()),$t.set("video.initialBitrateKbps",Sn.Fd.toString()),$t.set("video.initialPeakBitrateKbps",Sn.nf.toString()),$t.set("vqos.bw.maximumBitrateKbps",Sn.Bc.toString()),$t.set("vqos.bw.minimumBitrateKbps",Sn.ed.toString()),$t.set("video.maxNumReferenceFrames","4"),$t.set("video.mapRtpTimestampsToFrames",Sn.Ac?"1":"0"),$t.set("video.encoderCscMode","3"),k()&&($t.set("vqos.drc.stepDownMinHeight","480"),N(In,!1,14,5)||(In=Sn.$b/Sn.Zb*100,$t.set("vqos.drc.stepDownResolutionAlignment","16"),$t.set("vqos.drc.stepDownTargetAspectRatioX100",In.toFixed(0)))),In=$t,ur=Sn.dynamicStreamingMode,(er||2===ur)&&(1!==ur&&(In.set("vqos.drc.enable","0"),In.set("vqos.dfc.enable","1")),In.set("vqos.dfc.decodeFpsAdjPercent","85"),In.set("vqos.dfc.targetDownCooldownMs","250"),In.set("vqos.dfc.dfcAlgoVersion","1"),In.set("vqos.dfc.minTargetFps","60"),Si&&In.set("vqos.cpm.flags","1"),In.set("vqos.resControl.dfc.useClientFpsPerf","0")),void 0!==ur)switch(ur){case 3:Mh(In,!0,er);break;case 2:Mh(In,!0,!0);break;case 1:Mh(In,!0,!1);break;case 0:Mh(In,!1,er)}Ve&&1===Sn.sdrHdrMode&&($t.set("video.encoderCscMode","4"),$t.set("video.dynamicRangeMode","1")),Yt++}"application"===gc.mediaType&&(Sn=$t=void 0,(Si=_t).set("ri.partialReliableThresholdMs",null!==(Sn=(In=gc).attributes.get("ri.partialReliableThresholdMs"))&&void 0!==Sn?Sn:"0"),Si.set("ri.hidDeviceMask",null!==($t=In.attributes.get("ri.hidDeviceMask"))&&void 0!==$t?$t:"0")),xc.media.push({mediaType:gc.mediaType,Fc:gc.Fc,attributes:_t})}var Nl,hc;be=xc,Sh(Je=null!==(hc=null===(Nl=tr.nvscClientConfigFields)||void 0===Nl?void 0:Nl.join("\n"))&&void 0!==hc?hc:"",be,M,"remoteconfig"),Sh(B,be,M,"server"),B=qs&&!Sh(mo,be,M,"client")?{error:3237093917}:function El(s,M){let B=!0;const q=(be,Je)=>(be=be.get(Je))&&(be=parseInt(be),!Number.isNaN(be))?be:(g.e("{eb7c2d0}","{0a60213}",Je),B=!1,0);s.vd=q(M.nb,"general.clientCapture");let Se=0;for(const be of M.media){if("video"===be.mediaType&&Se<s.video.length){const Je=be.attributes;(M=s.video[Se]).$b=q(Je,"video.clientViewportWd"),M.Zb=q(Je,"video.clientViewportHt"),M.fc=q(Je,"video.maxFPS"),M.Fd=q(Je,"video.initialBitrateKbps"),M.nf=q(Je,"video.initialPeakBitrateKbps"),M.Bc=q(Je,"vqos.bw.maximumBitrateKbps"),M.ed=q(Je,"vqos.bw.minimumBitrateKbps"),M.Ac=0<q(Je,"video.mapRtpTimestampsToFrames"),Se++}"application"===be.mediaType&&(s.Jc.Pd=q(be.attributes,"ri.partialReliableThresholdMs"),s.Jc.lf=q(be.attributes,"ri.hidDeviceMask"))}return B}(Se,be)?{config:Se,Se:ep(be,M)}:{error:3237093918}}else B={error:3237093911};if(B.config&&B.Se)return s.s=B.config,B.Se;ed(s,{code:null!==(q=B.error)&&void 0!==q?q:3237093910})}(s,Se.nvstSdp,$t),!be)return}s.aa=new Fm(s.s,s.W),function Qu(s,M){var B,q,Se,be,Je;g.d("{93c7910}","{d79ed0a}",M);try{let _t={};tr.enableStunServer&&(_t.iceServers=[{urls:"stun:s1.stun.gamestream.nvidia.com:19308"}]),null===(B=s.aa)||void 0===B||B.g.vd&&(_t.encodedInsertableStreams=!0),g.d("{93c7910}","{93106c2}",JSON.stringify(_t)),s.ra=M,s.g=new RTCPeerConnection(_t);const Yt=$t=>{var Sn,In;if(s.U){var ci=s.U;ya(s.G,"IceStats","disconnected",0,ci.Mf,ci.Nf,ci.Lf),s.U=void 0}(ci=null===(Sn=s.h)||void 0===Sn?void 0:Lm(Sn))&&ya(s.G,"IceStats","failed",0,ci.Mf,ci.Nf,ci.Lf),s.l|=16,4&s.l?s.h&&0==s.h.packetsReceived()?Dl(s,3237093900):Dl(s,s.h&&0==s.h.l?3237093901:$t?3237093906:3237093899):Dl(s,null!==(In=ml(s))&&void 0!==In?In:3237093894)};if(s.g.onconnectionstatechange=()=>{s.g?"failed"===(g.d("{93c7910}","{4ced155}",s.g.connectionState),s.g.connectionState)&&(Cd(s)||Yt(!1)):g.e("{93c7910}","{648f784}")},s.g.oniceconnectionstatechange=()=>{var $t;if(s.g)switch(g.d("{93c7910}","{3a3143a}",s.g.iceConnectionState),s.g.iceConnectionState){case"new":s.l|=1;break;case"checking":s.l|=2;break;case"connected":s.U=void 0,32&s.l&&(s.J.emit("StreamingEvent",{streamingState:{state:"reconnected"}}),s.Za++),s.l|=4;break;case"completed":s.U=void 0,s.l|=12;break;case"failed":Yt(!0);break;case"disconnected":s.U=null===($t=s.h)||void 0===$t?void 0:Lm($t),4&s.l&&s.J.emit("StreamingEvent",{streamingState:{state:"reconnecting"}}),s.l|=32;break;case"closed":s.l|=64,32&s.l&&Dl(s,3237093892)}else g.e("{93c7910}","{648f784}")},s.g.ondatachannel=$t=>{g.d("{93c7910}","{b364db9}",$t.channel.label),"control_channel"==$t.channel.label&&(Oh(s,$t.channel,{errorCode:3237093898,open:()=>{var Sn,In,ci,Si;s.S=$t.channel;for(const er of s.ea)Eh(s,er);g.d("{93c7910}","{038895c}",s.ea.length),s.ea=[],ip(s,`NvRtcClient Browser name: ${s.u.browser}, Browser version: ${s.u.browserFullVer}`),Rl(s,{etwPrintPair:{key:"GPU Detail",value:s.u.gpuDetail}}),zm(s,null!==(In=null===(Sn=s.h)||void 0===Sn?void 0:Sn.l)&&void 0!==In?In:0),cd(s.j,0,s.P),cd(s.j,1,s.P),cd(s.j,2,s.P),navigator.getBattery&&(Ll(s,null!==(Si=null===(ci=s.h)||void 0===ci?void 0:ci.l)&&void 0!==Si?Si:0),cd(s.j,4,s.fa),cd(s.j,3,s.fa)),bh()&&(ip(s,"ClientGenericMapping: {ProcCpuUsage, TotalCpuUsage}"),cd(s.j,5,s.Pa)),window.requestAnimationFrame(s.Ka)}}),$t.channel.onmessage=Sn=>{try{var In=JSON.parse(Sn.data);if(g.d("{93c7910}","{9371373}"),In.exitMessage)Dl(s,function en(s){if(s.stopData){var M=function On(s){if(2>s.length)return null;const M=atob(s);let B=0;const q=()=>{const Se=256*M.charCodeAt(B)+M.charCodeAt(B+1);return B+=2,Se};return 0==q()?s.length<B+2?null:q():null}(s.stopData);if(M||0===M)return g.d("{c00be32}","{921626d}",M),Wt(M)}if(s.nvstResult){switch(g.d("{c00be32}","{f30bc33}",s.nvstResult),M=15868672,s=s.nvstResult){case 2147680256:case 2147680291:M=15868704;break;case 2147680257:M=15868705;break;case 2147680258:M=3237093635;break;case 2147680259:M=3237094152;break;case 2147680260:M=15868706;break;case 2147680262:M=15868707;break;case 2147680263:M=15868708;break;case 2147680264:M=15868736;break;case 2147680265:M=15868737;break;case 2147680266:M=15868738;break;case 2147680267:M=15868739;break;case 2147680268:M=15868741;break;case 2147680269:M=15868740;break;case 2147680270:M=15868742;break;case 2147680271:M=3237094147;break;case 2147680275:M=15868743;break;case 2147680277:M=15868709;break;case 2147680278:M=15868744;break;case 2147680279:M=15868710;break;case 2147680280:M=15868711;break;case 2147680281:M=15868712;break;case 2147680283:M=3237094155;break;case 2147680284:M=3237094156;break;case 2147680285:M=3237094157;break;case 2147680286:M=3237093678;break;case 2147680287:M=15868715;break;case 2147680288:M=15868716;break;case 2147680289:M=15868719;break;case 2147680300:M=15868688;break;case 2147745794:case 2147745797:case 2147745803:M=3237093892;break;case 2147745796:M=3237094158;break;case 2147745804:M=3237094146;break;case 2147745805:M=3237094148;break;case 2147745806:M=3237094149;break;case 2147745807:M=3237094150;break;case 2148438786:M=15868718;break;default:g.d("{c00be32}","{094c45e}",I(s))}return M}return s.code?(g.d("{c00be32}","{6210ab0}",s.code),Wt(s.code)):15868672}(In.exitMessage));else if(In.timerNotification){var ci=(Sn=In).timerNotification.code;switch(In=0,g.d("{c00be32}","{44bd2b6}",ci),ci){case 1:case 2:In=1;break;case 4:In=2;break;case 6:In=3}var Si=In;0===Si?g.e("{93c7910}","{de37ac5}",Sn.timerNotification.code):sp(s,Si,Sn.timerNotification.secondsLeft)}else In.debugMessage?qc(s,In.debugMessage.message):In.customMessage?s.J.emit("CustomMessage",JSON.parse(In.customMessage)):In.videoStreamProgressEvent?s.videoStreamProgress=In.videoStreamProgressEvent.videoStreamProgress:g.d("{93c7910}","{d14e0fd}")}catch(er){g.e("{93c7910}","{a40734a}",er),s.G.za(er,"Error in control_channel message handling","{93c7910}.ts",0,0,!0)}})},g.d("{93c7910}","{d9ffda2}"),g.d("{93c7910}","{2bd4728}"),s.Ja=s.g.createDataChannel("input_channel_v1",{ordered:!0,reliable:!0}),s.Ja.binaryType="arraybuffer",Oh(s,s.Ja,{errorCode:3237093896}),0<s.s.Jc.Pd){g.d("{93c7910}","{ff9ae1e}");let $t={ordered:!1,maxPacketLifeTime:s.s.Jc.Pd};g.d("{93c7910}","{9149fff}",JSON.stringify($t)),s.Aa=s.g.createDataChannel("gamepad_channel_v1",$t),s.Aa.binaryType="arraybuffer",Oh(s,s.Aa,{errorCode:3237093929})}if(s.T=s.g.createDataChannel("cursor_channel",{ordered:!0,reliable:!0}),s.T.binaryType="arraybuffer",Oh(s,s.T,{errorCode:3237093897}),function Ea(s){var M;return-1!==(null!==(M=tr.requireDS4TrackpadForAppIds)&&void 0!==M?M:[]).indexOf(s)}(s.session.appId)&&function Jn(s){yt(s),s.na=!0,Dt(s,!0)}(s.v),function dn(s,M){yt(s),s.Da=ta||!!(4&M),s.bb=bo||!!(2&M),Dt(s,!0)}(s.v,s.s.Jc.lf),s.m=new Xh(s,s.K,s.Ja,s.T,s.G,s.J,s.Mb,2===s.appLaunchMode,s.Nb,s.v,s.u,s.Ba,s.ga,s.j,s.V,s.Aa,s.textInputElement),s.oa&&(s.setKeyboardLayout(s.keyboardLayout),s.oa=!1),cl){g.d("{93c7910}","{9ae428b}");const $t={zoneName:s.session.zoneName,clientAppVersion:null!==(q=s.clientAppVersion)&&void 0!==q?q:"",appId:s.session.appId,Sd:null!==(Se=s.Sd)&&void 0!==Se?Se:"",gpuType:s.session.gpuType,streamInfo:null!==(be=s.session.streamInfo[0])&&void 0!==be?be:{width:0,height:0,fps:0},clientLocale:s.session.clientLocale};s.h=new cf(s.J,s,s.K,s.g,s.s,s.G,s.u,$t,s.j,s.V)}s.g.addEventListener("icecandidate",s.Ua),s.g.onsignalingstatechange=()=>{g.i("{93c7910}","{3236227}",s.g.signalingState)},s.g.onicecandidate=$t=>Ym(s,$t),s.g.g=$t=>{g.w("{93c7910}","{9871b05}",$t.port,$t.url,$t.errorCode,$t.Tg)},(null!==(Je=Ia)&&void 0!==Je?Je:!R(s.u))&&s.Da.initialize(s.g,s.J,s.K,s.Ea),s.g.ontrack=$t=>{var Sn;const In=$t.streams[0];g.d("{93c7910}","{47359d4}",In.id,$t.track.kind,$t.track.id,$t.streams.length,I(s.l));let ci={kind:"video"===$t.track.kind?"video":"audio",trackId:$t.track.id};"audio"!==$t.track.kind||"stream_id"!==In.id&&"app_media_stream"!==In.id&&"second_stream_id"!==In.id&&"app_audio_stream"!==In.id||(s.qa=$t.track.id,function Ou(s,M){(M=function td(s){let M=null;return(s=s.getAudioTracks()).length&&(M=s[0]),M}(M))&&(M.onunmute=()=>{s.Na=!1})}(s,In),null===(Sn=s.R)||void 0===Sn||Sn.initialize(new MediaStream(In.getAudioTracks()))),($t=s.o.find(Si=>Si.streamId===In.id))?$t.tracks.push(ci):s.o.push({streamId:In.id,tracks:[ci]}),Cg(s)}}catch(_t){g.e("{93c7910}","{ff11182}",_t),s.G.za(_t,"Exception in creating peer connection","{93c7910}.ts",0,0,!0)}}(s,M);let Yt=Date.now();Je=function ff(s,M){return M.split("\r\n").map(B=>B.startsWith("a=candidate:")?(s.na=!0,"a="+Ps(s,B.substr(2))):B).join("\r\n")}(s,Je),Je=function Ud(s,M,B,q){let Se=s.split("\r\n"),be=-1;for(var Je=0;Je<Se.length;Je++)if(Se[Je].startsWith("m=video")){be=Je;break}if(-1===be)return g.e("{93c7910}","{3ab33e3}"),s;for(be++,Je=be;Je<Se.length;Je++)if(Se[Je].startsWith("a=imageattr"))return g.d("{93c7910}","{b38bf22}"),s;for(s=new Set;be<Se.length&&!Se[be].startsWith("m=");)/a=rtpmap:.*H26[45]\//.test(Je=Se[be])?s.add(Je.slice(9,Je.indexOf(" "))):0===Je.indexOf("a=fmtp:")&&(Je=Je.slice(7,Je.indexOf(" ")),s.has(Je)&&(be++,Se.splice(be,0,`a=imageattr:${Je} send [x=[960:${M}],y=[540:${B}],fps=[30:${q}]]`))),be++;return Se.join("\r\n")}(Je,s.s.video[0].$b,s.s.video[0].Zb,s.s.video[0].fc),g.d("{93c7910}","{542f9d5}",Je),s.g.setRemoteDescription({type:Se.type,sdp:Je}).then(()=>{s.wa=Date.now()-Yt,function Bc(s){let M=s.g.getTransceivers();if(0===M.length)g.d("{93c7910}","{3399d9d}"),ed(s,{code:3237093909});else{for(const B of M)"3"===B.mid&&B.receiver.track.id!==s.qa?(g.i("{93c7910}","{981392f}"),B.receiver.track.enabled=!1):s.$.push({trackId:B.receiver.track.id,kind:B.receiver.track.kind});g.d("{93c7910}","{648ae93}",JSON.stringify(s.$))}}(s),g.d("{93c7910}","{ab7b3af}",s.wa),function pf(s){for(const M of s.o)"stream_id"===M.streamId&&2===s.o.length?M.streamId="app_video_stream":"stream_id"===M.streamId?M.streamId="app_media_stream":"second_stream_id"===M.streamId&&(M.streamId="app_audio_stream")}(s);const $t=function Pu(s){var M=s.o.find(q=>"app_media_stream"===q.streamId);if(M)Wm(s,M,s.K),g.i("{93c7910}","{a5e354c}");else{M=s.o.find(q=>"app_video_stream"===q.streamId);var B=s.o.find(q=>"app_audio_stream"===q.streamId);if(M&&B){const q={streamId:"app_media_stream",tracks:M.tracks.concat(B.tracks)};s.o.splice(s.o.indexOf(M),1),s.o.splice(s.o.indexOf(B),1),s.o.push(q),Wm(s,q,s.K),g.i("{93c7910}","{e2dc4ec}")}else if(M)Wm(s,M,s.K),g.i("{93c7910}","{07f3411}");else if(B){if(!s.Ea)return 3237093937;Wm(s,B,s.Ea),g.i("{93c7910}","{243a50b}")}else g.w("{93c7910}","{c3a2679}")}}(s);$t?Dl(s,$t):(function mf(s){var M;null===(M=s.aa)||void 0===M||M.start(s.g)}(s),function vg(s){try{if(s.g&&s.sendVideoTrack){const M=s.g.getTransceivers().find(B=>"video"===B.receiver.track.kind);if(M){let B="",q=M.direction;"sendrecv"!==M.direction&&(M.direction="sendrecv",B=" ("+q+" direction is overridden by sendrecv)"),M.sender.replaceTrack(s.sendVideoTrack).then(()=>{g.i("{93c7910}","{b54f651}",B)}).catch(Se=>{M.direction!==q&&(M.direction=q),g.w("{93c7910}","{d225159}",Se)})}else g.w("{93c7910}","{8272b59}")}}catch(M){g.w("{93c7910}","{66082ec}",M)}}(s),function $m(s,M){var B,q,Se;const be=s.g.getTransceivers().find(_t=>"video"===_t.receiver.track.kind&&("recvonly"===_t.direction||"sendrecv"===_t.direction));if(be)if(RTCRtpReceiver.getCapabilities&&RTCRtpSender.getCapabilities&&be.setCodecPreferences){var Je=[M,"flexfec-03","rtx"];if(M=null===(B=RTCRtpReceiver.getCapabilities("video"))||void 0===B?void 0:B.codecs,B=[],M){for(const _t of Je)(Je=M.filter(Yt=>Yt.mimeType==="video/"+_t))&&B.push.apply(B,Je);try{be.setCodecPreferences(B)}catch(_t){tm(s,"Failed to set codec preferences to receiver capabilities",_t);try{B=B.concat(null!==(Se=null===(q=RTCRtpSender.getCapabilities("video"))||void 0===q?void 0:q.codecs)&&void 0!==Se?Se:[]),be.setCodecPreferences(B)}catch(Yt){tm(s,"Failed to set codec preferences to sender and receiver capabilities",Yt)}}}}else g.w("{93c7910}","{274c489}")}(s,s.W),Yt=Date.now(),s.g.createAnswer().then(Sn=>{s.ua=Date.now()-Yt,g.d("{93c7910}","{2984003}",s.ua);const In=s.s.video[0].Bc.toString(),ci=s.s.video[0].ed.toString(),Si=s.s.video[0].Fd.toString();if(g.d("{93c7910}","{b535c15}",Sn.sdp),void 0!==Sn.sdp){Sn.sdp=function Gm(s,M){let B=s.split("\r\n"),q=-1;for(let Se=0;Se<B.length;Se++)if(0===B[Se].indexOf("m=video")){q=Se;break}if(-1===q)return g.e("{93c7910}","{e0899ab}","video"),s;for(g.d("{93c7910}","{5cc346f}","video",q),q++;0===B[q].indexOf("i=")||0===B[q].indexOf("c=");)q++;return 0===B[q].indexOf("b")?(g.d("{93c7910}","{e77177e}",q),B[q]="b=AS:"+M,B.join("\r\n")):(g.d("{93c7910}","{3dfc348}",q),(s=B.slice(0,q)).push("b=AS:"+M),(s=s.concat(B.slice(q,B.length))).join("\r\n"))}(Sn.sdp,In),window.chrome&&(Sn.sdp=Ku(Sn.sdp,ci,In,Si)),Sn.sdp=function Vm(s){var M=[];let B=s.split("\r\n");var q="-1";let Se;for(let be=0;be<B.length;be++)0===B[be].indexOf("a=rtpmap:")?(Se=B[be].split(" ")[1],0===Se.indexOf("opus")&&(q=B[be].split(" ")[0].slice(9),g.i("{93c7910}","{c3dd71b}","audio",q))):0===B[be].indexOf("a=fmtp:"+q+" ")&&(M.push(be),q="-1");if(0===M.length)return g.e("{93c7910}","{115f256}","audio"),s;s=-1,q=[];for(const be of M)g.d("{93c7910}","{9bb0e6f}",M=B[be]),g.d("{93c7910}","{4f021eb}",M+=";stereo=1"),(q=q.concat(B.slice(s+1,be))).push(M),s=be;return(q=q.concat(B.slice(s+1))).join("\r\n")}(Sn.sdp);const er=function Hm(s){s=s.split("\r\n");for(var M=-1,B=0;B<s.length;B++)if(0===s[B].indexOf("m=audio")){M=B;break}if(-1===M)g.d("{93c7910}","{a939549}","audio");else{for(var q=B=void 0,Se=void 0,be=void 0,Je=M+1;Je<s.length;Je++)if(0===s[Je].indexOf("a=rtpmap:")){var _t=s[Je].split(" ")[1];0===_t.indexOf("red")?(q=s[Je].split(" ")[0].slice(9),be=_t.split("/")[2],g.i("{93c7910}","{4e6ce55}","audio",q,be)):0===_t.indexOf("multiopus")&&(B=s[Je].split(" ")[0].slice(9),Se=_t.split("/")[2],g.i("{93c7910}","{53ebbb1}","audio",B,Se))}else if(0===s[Je].indexOf("m=")){g.d("{93c7910}","{9fc6964}",s[Je]);break}if(B){for(_t=[],Je=[],M+=1;M<s.length;M++)if(0===s[M].indexOf("a=rtpmap:"+q)||0===s[M].indexOf("a=rtcp-fb:"+q)||0===s[M].indexOf("a=fmtp:"+q))Je.push(s[M]);else if(0===s[M].indexOf("a=rtpmap:"+B)||0===s[M].indexOf("a=rtcp-fb:"+B)||0===s[M].indexOf("a=fmtp:"+B))_t.push(s[M]);else if(0===s[M].indexOf("m=")){g.d("{93c7910}","{9fc6964}",s[M]);break}return be&&be!==Se&&(q=void 0,Je=[],g.w("{93c7910}","{ad53601}",be,Se)),{Ad:q,ff:B,Ig:Je.join("\r\n"),Hg:_t.join("\r\n")}}g.d("{93c7910}","{cf4ee2d}","audio")}}(Je);er&&(Sn.sdp=function fg(s,M){let B=s.split("\r\n"),q=-1,Se=-1;for(var be=0;be<B.length;be++)if(0===B[be].indexOf("m=audio")){q=be;break}if(-1===q)return g.d("{93c7910}","{e0899ab}","audio"),s;be=B.slice(0,q);let Je=B[q].split(" ");if("0"!==Je[3])return g.d("{93c7910}","{794b3c6}","audio",Je.join(" ")),s;for(M.Ad?(Je[3]=M.Ad,Je[4]=M.ff):Je[3]=M.ff,be.push(Je.join(" ")),s=q+1;s<B.length;s++)if(0===B[s].indexOf("m=")){Se=s;break}return-1===Se&&(Se=B.length-1),be=be.concat(B.slice(q+1,Se)),M.Ad&&(be=be.concat(M.Ig.split("\r\n"))),(be=(be=be.concat(M.Hg.split("\r\n"))).concat(B.slice(Se))).join("\r\n")}(Sn.sdp,er)),g.d("{93c7910}","{1a048a7}",Sn.sdp)}Yt=Date.now(),s.g.setLocalDescription(Sn).then(()=>{if(s.va=Date.now()-Yt,g.d("{93c7910}","{de86c01}",s.va),void 0===Sn.sdp||window.chrome||(Sn.sdp=Ku(Sn.sdp,ci,In,Si)),void 0!==Sn.sdp&&be){var er=zu(Sn.sdp),fi=er.shift(),Ri=er[0],ur=fi,vr=su(Ri+ur,"a=ice-ufrag:")[0];Ri=su(Ri+ur,"a=ice-pwd:")[0],vr=vr.substr(12),Ri=Ri.substr(10),er=su(er[0]+fi,"a=fingerprint:").map(gf),(fi=zu(be))[0]+="a=general.icePassword:"+Ri+"\r\n",fi[0]+="a=general.iceUserNameFragment:"+vr+"\r\n",fi[0]+="a=general.dtlsFingerprint:"+er[0].value+"\r\n",be=fi.join("")}im(s,M,{type:Sn.type,sdp:Sn.sdp,nvstSdp:be}),g.i("{93c7910}","{bd70666}",JSON.stringify(s.o)),Cg(s)}).catch(er=>{g.e("{93c7910}","{ba2deaa}",er),Dl(s,3237093902)})}).catch(Sn=>{g.d("{93c7910}","{40c0f69}",Sn)}))}).catch($t=>{g.e("{93c7910}","{ec2853e}",$t),Dl(s,3237093902)})}else if(Se.candidate){g.d("{93c7910}","{cf4c103}");let be=Ps(s,Se.candidate);g.d("{93c7910}","{43e80e0}",be),s.g.addIceCandidate({sdpMLineIndex:Se.sdpMLineIndex,sdpMid:Se.sdpMid,candidate:be}).then(()=>{g.d("{93c7910}","{db0ae14}"),s.na=!0}).catch(Je=>{g.e("{93c7910}","{62f207e}",Je),Il(s.G,"AddCandidateFailed",Je?.name,Je?.message)}),g.d("{93c7910}","{9454009}")}}catch(Se){"BYE"===B?Dl(s,15868672):(g.e("{93c7910}","{93367fc}",Se),s.G.za(Se,"Invalid handlePeerMessage Response","{93c7910}.ts",0,0,!0))}})).apply(this,arguments)}function ml(s){var M;const B=op(s);let q;switch(s.videoStreamProgress){case 0:case 2:break;case 3:q=3237093922;break;case 5:q=3237093923;break;case 7:q=3237093924;break;default:q=3237093925}if(null===(M=s.h)||void 0===M)var Se=void 0;else e:{if(M.j){var be=Se=0,Je=0,_t=0;for(const Yt of M.j.values())"candidate-pair"===Yt.type&&(Se+=(M=Yt).requestsSent+M.consentRequestsSent,be+=M.responsesReceived,M.Vg&&Je++,"succeeded"===M.state&&_t++);if(g.i("{5cea617}","{47c0ce7}",Se,be),0<Se&&0===be){Se=3237093926;break e}if(!Je){Se=3237093927;break e}if(!_t){Se=3237093928;break e}}Se=void 0}return s.id?s.Sa?15859712!==B?q=B:s.na?s.Qa?Se?q=Se:4&s.l&&("connecting"===Pc(s.Ja)?q=3237093919:"connecting"===Pc(s.T)?q=3237093920:"connecting"===Pc(s.S)?q=3237093921:s.Aa&&"connecting"===Pc(s.Aa)&&(q=3237093936)):q=3237093903:q=3237093904:q=3237093913:q=3237093912,q}function Dl(s,M){var B;if(!s.Z){if(s.Z=!0,qp(s),Bd(s),s.H){let q={sessionId:s.session.sessionId,subSessionId:s.session.subSessionId,error:{code:M},zoneName:s.session.zoneName,zoneAddress:s.session.zoneAddress};Il(s.G,"SignalingState",I(M),null===(B=s.g)||void 0===B?void 0:B.signalingState),g.i("{93c7910}","{89d3ea6}",s.g.signalingState),s.Ba.Cf(q)}else ed(s,{code:M});g.e("{93c7910}","{573fb24}",I(M))}}function Uc(s){s.O=new gg(s.session.sessionId,{info:s.rc.bind(s),exception:s.qc.bind(s)}),s.O.initialize(s.M,s.maxReceivedAckId,s)}function op(s){const M=s.o.flatMap(B=>B.tracks);for(const B of s.$)if(!M.find(q=>q.trackId===B.trackId))return"audio"===B.kind?3237093914:3237093905;return g.d("{93c7910}","{4fef10b}"),M.length>s.$.length&&g.w("{93c7910}","{7861bb3}"),15859712}function Cd(s){let M=!1;return window.chrome&&"closed"===s.g.signalingState&&(M=!0,Dl(s,15867908)),M}function Wm(s,M,B){s=s.g.getTransceivers().map(q=>q.receiver.track),s=new MediaStream(s.filter(q=>M.tracks.find(Se=>Se.trackId===q.id))),B.srcObject=s}function tm(s,M,B){g.w("{93c7910}","{4d3c418}",M,B),s.G.za(B,M,"{93c7910}.ts",0,0,!0)}function nm(s){var M={stats:{from:s.id,to:s.ra}},B=He;B.h=!1,M={startStats:{statsHeader:M}},B.g&&(g.d("{1f5ec29}","{6897d5e}"),B.g.postMessage(M)),s.pa=!0}function Rl(s,M){"connecting"===Pc(s.S)?s.ea.push(M):Eh(s,M)}function sp(s,M,B){var q;2===M&&(null===(q=s.m)||void 0===q||ph(q,!0)),g.d("{93c7910}","{5ba6173}",M,B),s.J.emit("StreamingEvent",{streamingWarnings:{code:M,secondsLeft:B}})}function Ym(s,M,B){M.candidate?(B||(B=dg(M.candidate),s.ca.set(B,s.ca.get(B)+1),"IPV4"===B&&"UNKNOWN"!==(B=df(M.candidate))&&s.ka.add(B)),"tcp"===M.candidate.protocol?g.d("{93c7910}","{6f19d1e}"):(g.d("{93c7910}","{ac052fa}",M.candidate.port,M.candidate.protocol),im(s,s.ra,{sdpMLineIndex:M.candidate.sdpMLineIndex,sdpMid:M.candidate.sdpMid,candidate:M.candidate.candidate}),s.Qa=!0)):g.d("{93c7910}","{a759d16}")}function im(s,M,B){const q=JSON.stringify(B);B={peer_msg:{from:s.id,to:M,msg:q},ackid:s.ya.g++},g.d("{93c7910}","{7ecb902}",M,q.length,JSON.stringify(B)),s.O?s.O.send(B):(s=He).g&&s.g.postMessage({send:B})}function zm(s,M){let B=0;s.j.h&&(B|=2),s.j.v&&(B|=1),s.j.j&&(B|=16);const q={windowState:{streamIndex:0,frameNumber:M,windowStateFlags:B}};g.i("{93c7910}","{ca317d5}",B.toString(16),M),Rl(s,q)}function Ll(s,M){let B=0;s.j.s&&(B|=4),s.j.C&&(B|=1);const q={systemState:{streamIndex:0,frameNumber:M,systemStateFlags:B}};g.i("{93c7910}","{455ccc0}",B.toString(16),M),Rl(s,q)}function Cg(s){0<s.$.length&&"connecting"!==Pc(s.S)&&"connecting"!==Pc(s.T)&&"connecting"!==Pc(s.Ja)&&(!s.Aa||"connecting"!==Pc(s.Aa))&&15859712===op(s)&&ed(s)}function Ps(s,M){return g.d("{93c7910}","{2dd62a2}"),(s=s.session.mediaConnectionInfo.find(B=>2===B.usage||17===B.usage))?((M=M.split(" "))[4]=s.ip,M[5]=""+s.port,M=M.join(" "),g.d("{93c7910}","{1fbcd88}",M),M):(g.d("{93c7910}","{aee7283}"),M)}function Ju(s){return!(!s.h||0==s.h.m)}function cu(s){var M;null===(M=s.h)||void 0===M||0!=M.m&&(M.reset(),lg(M,!1))}function Km(s){var M;null===(M=s.h)||void 0===M||0!=M.m||Xg(M)}function wh(s){return s.h?s.h.l:0}function qu(s){var M;let B=null===(M=s.h)||void 0===M?void 0:M.N;return(void 0===B||"UNKNOWN"===B)&&(B=s.W),B}var Sg=class{constructor(s,M,B,q,Se,be,Je,_t,Yt,$t,Sn,In,ci,Si,er,fi,Ri,ur,vr){var Hr,Ko;let Fo;this.signalingUrlQueryParameters=vr,this.name="",this.id=0,this.s={video:[],vd:0,Jc:{Pd:0,lf:0}},this.ra=-1,this.H=this.Z=!1,this.F=this.N=this.l=0,this.pa=!1,this.C=this.xa=0,this.na=this.Qa=this.Sa=!1,this.Na=!0,this.stutterIndicator=this.perfIndicator=!1,this.sa=0,this.$=[],this.o=[],this.M="",this.ta=0,this.ya=new Mr,this.bb=this.ua=this.va=this.wa=0,this.lb=Date.now(),this.Za=this.cb=this.Va=0,this.oa=!1,this.keyboardLayout="",this.videoStreamProgress=this.maxReceivedAckId=0,this.ea=[],this.qa="",this.P=this.pc.bind(this),this.fa=this.oc.bind(this),this.Pa=this.nc.bind(this),this.Ta=0,this.ca=new Kg,this.Ua=this.mc.bind(this),this.ka=new Set,this.W="UNKNOWN",this.u=Yt,this.K=M,this.Ea=B,this.Da=q,this.J=s,g.d("{93c7910}","{e1ca54d}",JSON.stringify($t)),$t.finalizedStreamingFeatures||g.w("{93c7910}","{6f17ef5}"),this.session=$t,Ht?(Fo=Ht,g.d("{93c7910}","{55e5b30}",Fo)):null!=Sn&&Sn.maxBitrateKbps&&(Fo=Sn?.maxBitrateKbps,g.d("{93c7910}","{965049f}",Fo)),void 0===Ri&&void 0!==Sn?.drc&&(Ri=Sn.drc?3:0);for(const mr of $t.streamInfo)null!=Fo?B=Fo:(B=rg(mr.width,mr.height,mr.fps)[0],g.d("{93c7910}","{aff4184}",B)),B=Math.max(4e3,B),q=Math.max(4e3,Math.round(B/4)),this.s.video.push({$b:mr.width,Zb:mr.height,fc:mr.fps,dynamicStreamingMode:Ri,Bc:B,Fd:q,nf:q,Ac:!0,ed:4e3,sdrHdrMode:mr.sdrHdrMode});if(this.lc=Hp(null!==(Hr=this.session.streamInfo[0])&&void 0!==Hr?Hr:{width:0,height:0,fps:0},this.u),function ut(){Pn.apply(this,arguments)}(),this.G=_t,_t=$t.appId,(Ri=tr.disableUnadjustedMovementForAppIds)&&-1!==Ri.indexOf(_t)?(g.i("{d988e7f}","{265cfdc}",_t),_t=!1):_t=dl,this.Mb={unadjustedMovement:_t,...Se},this.Ba=s,this.Nb=be,this.v=Je,this.R=In,this.textInputElement=ci,this.appLaunchMode=$t.appLaunchMode,this.clientAppVersion=Si,this.isResume=er,this.Sd=fi,ur)for(const mr of ur)if(mr.track instanceof MediaStreamTrack&&"video"===mr.track.kind){this.sendVideoTrack=mr.track;break}this.sendVideoTrack=null!==(Ko=this.sendVideoTrack)&&void 0!==Ko?Ko:Sn?.sendVideoTrack,s=(s=this.session.signalConnectionInfo.protocol).replace("http","ws"),this.L=s+"://"+this.session.signalConnectionInfo.ip+":"+this.session.signalConnectionInfo.port,(s=this.session.signalConnectionInfo.resourcePath)&&(this.L+=("/"===s.charAt(0)?"":"/")+s,"/"===this.L.charAt(this.L.length-1)&&(this.L=this.L.slice(0,-1))),He.initialize(this.session.sessionId,this.G,this.ya),this.ga=new hf(this,M,this.u,this.G),this.j=new Yu(Yt),(M=document.createElement("div")).style.position="absolute",M.style.zIndex="300",M.style.left="0",M.style.top="0",M.style.width="100%",M.style.display="none",M.style.fontSize="3em",M.style.color="white",M.style.backgroundColor="gray",M.style.textAlign="center",this.K.insertAdjacentElement("afterend",M),this.da=M,this.$a={tc:32768,Cc:256,Dc:255,vb:this.ja.bind(this)},this.ab={tc:16384,Cc:512,Dc:65280,vb:this.Bb.bind(this)},this.Oa={tc:16384,Cc:512,Dc:255,vb:this.sc.bind(this)},this.V={td:0,Te:0,Rc:0,jd:0,ld:0,kd:0,Ud:0,fd:0,Qc:0,gd:0},this.Ka=this.kc.bind(this)}start(){(function Jp(s){rp(s);let M=1e4;tr.signInTimeout&&0!==tr.signInTimeout&&(M=tr.signInTimeout,g.i("{93c7910}","{4f2f101}",M)),s.C=window.setTimeout(()=>s.signInTimeout(),M),s.bb=Date.now(),Uc(s)})(this),He.j=performance.now(),lu(),qs&&(this.v.v.push(this.$a),this.v.v.push(this.ab),this.v.v.push(this.Oa))}stop(s){var M,B,q,Se;ya(this.G,"StreamTimersAndReconnects",I(s),0,this.Va,this.cb,this.Za);const be=Je=>{g.i("{93c7910}","{a848987}",Je),ya(this.G,"PeerAPIDurationsAndMic",I(s),this.ua,this.wa,this.va,Je)};yc().then(Je=>{be(Je)}),ed(this,{code:s,description:"Session stopped before stream connected"}),this.N&&(clearTimeout(this.N),this.N=0),this.da.remove(),this.Z=!0;try{Eh(this,{exitMessage:{code:nr(s)}})}catch(Je){g.e("{93c7910}","{d337883}",Je)}qp(this),this.Ja&&this.Ja.close(),null===(M=this.Aa)||void 0===M||M.close(),Bd(this),null===(B=this.g)||void 0===B||B.removeEventListener("icecandidate",this.Ua),this.g&&this.g.close(),function vd(s){var M;if(null!==(M=s.aa)&&void 0!==M){for(const q of M.streams){var B=(new Date).toISOString();B=`ragnarok-${q.Nd}-${B}.${q.kg}`,hl([new DataView(q.data.buffer,0,q.size)],B,"text/plain")&&g.i("{d7392d2}","{4b3378a}",B)}M.streams=[]}s.aa=void 0}(this),0!==this.F&&(window.clearTimeout(this.F),this.F=0),0!==this.C&&(window.clearTimeout(this.C),this.C=0),nc(),null===(q=this.O)||void 0===q||q.uninitialize(),He.stopWebSocket(),lu(),function Ic(){var M,s=He;s.v||null===(M=s.G)||void 0===M||Il(M,"Worker Thread Creation Failed"),s.G=void 0,s.s=void 0}(),this.qa&&this.Na&&(g.e("{93c7910}","{283a180}"),Il(this.G,"Audio track muted")),0<this.xa&&ya(this.G,"WebSocketClose","",0,this.xa,0,0),null===(Se=this.R)||void 0===Se||Se.uninitialize(),this.ga.uninitialize(),uc(this.j,0,this.P),uc(this.j,1,this.P),uc(this.j,2,this.P),uc(this.j,4,this.fa),uc(this.j,3,this.fa),bh()&&uc(this.j,5,this.Pa),this.j.uninitialize(),yl(this.v,this.$a),yl(this.v,this.ab),yl(this.v,this.Oa),this.K.srcObject=null,this.Ea&&(this.Ea.srcObject=null)}signInTimeout(){this.C=0,g.i("{93c7910}","{6d6b337}"),ed(this,{code:3237093907})}rc(s){g.i("{8ba4138}","{0b0c6f9}",s)}qc(s){this.G.za(void 0,s,"{8ba4138}.ts",0,0,!0),g.e("{8ba4138}","{0b0c6f9}",s)}setUpstreamMedia(){return Promise.resolve(!1)}unsetUpstreamMedia(){return Promise.resolve(!1)}stopUpstreamMedia(){return Promise.resolve(!1)}mc(s){g.d("{93c7910}","{4742d5e}"),s.candidate&&this.Ta++,!window.chrome&&this.g&&this.g.canTrickleIceCandidates&&this.g.onicecandidate&&Ym(this,s,!0)}kc(){var s,M;null===(s=this.h)||void 0===s||function Qg(s){var M=He;if(M.h){if(0!=M.perf.RAFTS){var B={perf:M.perf};M.g&&M.g.postMessage(B),tc(M)}M.perf.RAFTS=na(M)}if(!is){if(M=window.performance.now(),(B=s.va).getVideoPlaybackQuality){var q=B.getVideoPlaybackQuality();B={yd:q.totalVideoFrames,bf:q.droppedVideoFrames}}else B=void 0!==B.webkitDecodedFrameCount?{yd:B.webkitDecodedFrameCount,bf:null!==(q=B.webkitDroppedFrameCount)&&void 0!==q?q:0}:void 0;var Se=B;if(Se){const be=Se.bf;q=be-s.v.droppedVideoFrames,B=Se.yd-s.v.totalVideoFrames,s.v.droppedVideoFrames=be,s.v.totalVideoFrames=Se.yd,1==q?s.V.Ud++:1<q&&(s.V.fd+=q),(Se=He).h&&(Se.perf.FrameInfo=Math.min(B,15)<<4|Math.min(q,15))}s.v.Ag=M}}(s),window.setTimeout(()=>{var B,q;if(this.Z||window.requestAnimationFrame(this.Ka),null!==(B=this.m)&&void 0!==B){var Se=B.h;0===Se.J&&hs(Se.l),Po&&jt&&B.l.ra()}null===(q=this.h)||void 0===q||is||((B=window.performance.now())>q.V.td+1e4?(0!==q.V.td&&g.i("{5cea617}","{5fa9066}",q.V.Rc,q.V.jd,q.V.ld,q.V.kd,q.v.totalVideoFrames-q.V.Te,q.V.Ud,q.V.fd,q.V.Qc,q.V.gd),q.V.td=B,q.V.Te=q.v.totalVideoFrames,q.V.Rc=1,q.V.jd=0,q.V.ld=0,q.V.kd=0,q.V.Ud=0,q.V.fd=0,q.V.Qc=0,q.V.gd=0):q.V.Rc+=1)}),null===(M=this.m)||void 0===M||function kn(s){if(s.h.Uc){s.h.Uc=!1;var M=s.g.rb,B=s.g.sb;if(0===s.cursorType)if(s.Z&&s.g.qb){var q=ir(s.h.wb/s.g.cursor.scale);s.h.$c&&(s.h.$c=!1,us(s,q));const Se=s.g.cursor,be=s.h.wb;M=(M*s.I.ma-Se.Ha*(q/=be))*be,B=(B*s.I.ma-Se.Ia*q)*be,s.ca||(M=Math.round(M),B=Math.round(B)),s.j.style.transform="translate("+M/be+"px, "+B/be+"px)",s.h.md||(s.h.md=!0,s.j.style.visibility="visible")}else $c(s)}}(M.h)}toggleOnScreenStats(s=!1,M){Ju(this)?this.h.toggleOnScreenStats(s,M):qc(this,"Stats is OFF. Please enable by ctrl+alt+F5/F6")}ja(){var s;if(null!==(s=this.h)&&void 0!==s){var M=He;if(M.h){const B={qosMarker:na(M)};M.g&&M.g.postMessage(B)}s.g.S++,(M=s.g).M.innerText=qh(M,2===s.M)}qc(this,"User marker added")}toggleUserInput(s,M){this.m?this.m.toggleUserInput(s,M):g.e("{93c7910}","{5a0e299}",s)}getVirtualGamepadHandler(){var s;return null===(s=this.m)||void 0===s?void 0:s.getVirtualGamepadHandler()}toggleStutterIndicator(s){this.stutterIndicator=s??!this.stutterIndicator,Rl(this,{stutterIndicator:{on:this.stutterIndicator}})}Bb(){this.sa^=1,Rl(this,{riDeviceOverlay:{bitmap:this.sa}})}sc(){var s;null===(s=this.m)||void 0===s||s.Mc()}sendTextInput(s){var M;null===(M=this.m)||void 0===M||M.sendTextInput(s)}setVirtualKeyboardState(s){var M;null===(M=this.m)||void 0===M||M.setVirtualKeyboardState(s)}setVideoTransforms(s,M,B){var q;if(null!==(q=this.m)&&void 0!==q){const Se=window.visualViewport;Se&&(q.I.Pc=Se.height),od(q,s,M,B)}}sendCustomMessage(s){Rl(this,s={customMessage:JSON.stringify(s)})}setStreamingMaxBitrate(s,M,B){B||(Rl(this,{setMaxBitrate:{streamIndex:s,maxBitrate:M}}),g.d("{93c7910}","{6bbc1a2}",M))}setDrcDfcState(s,M,B){B||(Rl(this,{setDrcState:{streamIndex:s,state:!!(1&M)}}),Rl(this,{setDfcState:{streamIndex:s,state:!!(2&M)}}),g.d("{93c7910}","{0ed76f3}",M))}sendKeyEvent(s){var M;null===(M=this.m)||void 0===M||M.sendKeyEvent(s)}setKeyboardLayout(s){this.keyboardLayout=s,this.m?(this.sendCustomMessage({messageType:"kbLayout",messageRecipient:"KBLayoutChange",data:s}),this.m.setKeyboardLayout(s)):this.oa=!0}pc(){Ju(this)?zm(this,this.h.l):g.w("{93c7910}","{76bcede}")}oc(){Ju(this)?Ll(this,this.h.l):g.w("{93c7910}","{20ab5a1}")}nc(){if(Ju(this)){var s=this.h.l;const M=function Ph(s){switch(s.o){case"nominal":return 20;case"fair":return 70;case"serious":return 85;case"critical":return 100}}(this.j),B={cpuUsage:{streamIndex:0,frameNumber:s,procCpuUsage:0,totalCpuUsage:M}};g.i("{93c7910}","{9bb3298}",M.toString(),s),Rl(this,B)}else g.w("{93c7910}","{7b1f129}")}};function Pc(s){var M;return null!==(M=s?.readyState)&&void 0!==M?M:"connecting"}function eh(s){g.i("{0f7a7d0}","{206f492}"),s.m&&(window.clearInterval(s.m),s.m=0)}function Sd(s){eh(s),s.g=(new Date).getTime(),s.j=0,s.l=0,s.h=0,s.sleepTime=0,g.i("{0f7a7d0}","{d5ff5ba}"),s.m=window.setInterval(()=>{try{let M=(new Date).getTime();1e4<M-s.g-1e4&&(s.h=M,s.sleepTime=s.h-s.g-1e4),1e4<M-s.g-1e4&&0!=s.j?Th(s,0<s.g-s.l?"epsp":"esp"):36e5<M-s.g&&eh(s),s.g=M}catch{}},1e4)}function Th(s,M){if(s.o!==s.subSessionId){var B=s.G,q=I(s.j);M=new Fr({eventSequence:M,sleepTime:s.sleepTime,error:q,timeToSleep:s.g-s.l,moduleName:"RAGNAROK",cmsId:String(B.cmsId),sessionId:s.sessionId,subSessionId:s.subSessionId}),B.h(M),s.o=s.subSessionId}eh(s)}function Mg(s,M){if(15868704===M||15859712===M)return eh(s),!1;let B=(new Date).getTime();return s.j=M,s.l=B,g.i("{0f7a7d0}","{425293a}",String(B-s.g),s.h),1e4<B-s.g-1e4?(s.h=B,s.sleepTime=s.h-s.g-1e4,Th(s,"pse")):0!==s.h&&2e4>B-s.h?Th(s,"pspe"):(15867909===M||15867908===M)&&(s.h=B,Th(s,"other")),0!==s.h}var il=class{constructor(s){this.subSessionId=this.sessionId="",this.g=0,this.o="",this.sleepTime=this.h=this.m=this.l=this.j=0,this.G=s}};function fl(s){let M=document.createElement("div");return M.id=s.Cd,M.className="genericdiv",M.style.display="grid",M.style.gridTemplateColumns="1fr 1fr",M.style.gridTemplateRows="1fr 1fr",s.visible=!0,(s=document.createElement("p")).id="instruction",s.style.color="white",s.style.position="fixed",s.innerHTML="Connect GamePads",s.style.top="0",M.appendChild(s),M}var Ih=class{constructor(){this.Cd="gamepadTester",this.visible=!1,this.xb=[],this.Vd=[],this.Xb=new Map,zr&&(document.body.appendChild(fl(this)),this.start())}Db(s){for(let M=0;4>M;M++){const B=this.Xb.get(M);void 0!==B&&!(s&1<<M)&&(this.xb[B]=null,this.Xb.delete(M))}}Of(s){for(let M=0;M<this.xb.length;M++){let B=this.xb[M];B&&B.cc&&B.ha==s&&(this.xb[M]=null)}}Yc(s,M,B,q,Se,be,Je,_t,Yt){this.Xb.set(B,M),this.xb[M]={index:M,ha:B,buttons:q,od:Se,axes:be,name:Yt,cc:!1}}Vc(s,M,B,q,Se,be,Je,_t){this.xb[s]={index:s,ha:M,buttons:B,od:q,axes:Se,name:_t,cc:!0}}Tc(s){4>s.index&&(this.Vd[s.index]={index:s.index,ha:s.index,buttons:-1,od:-1,axes:[-1],name:s.id,cc:!1})}Mc(s){let M=document.getElementById(this.Cd);M?(M.remove(),this.xb=[],this.visible=!1):(s.insertAdjacentElement("afterend",fl(this)),this.start())}start(){let s,M=document.getElementById(this.Cd);if(null==M)g.e("{e13a879}","{0c955af}");else{var B=.49*window.innerWidth,q=.4*window.innerHeight,Se=.3*B,be=.7*B,Je=.8*q,_t=.8*q,Yt=.07*B,Sn=fi=>{fi.style.position="absolute",fi.style.width="2%",fi.style.height="3.5%",fi.style.backgroundColor="red",fi.style.borderRadius="50%",fi.style.transform="translate(-50%, -50%)"},In=fi=>{let Ri=(fi=>fi?{left:{X:fi.axes[0],Y:fi.axes[1]},right:{X:fi.axes[2],Y:fi.axes[3]}}:null)(fi);if(null===M.querySelector(`.gamepad${fi.index}`).querySelector(".leftStick")){var ur=document.createElement("div");ur.className="gamepadJoystickPointer leftStick",Sn(ur),ur.style.left=`${Se+Ri.left.X*Yt}px`,ur.style.top=`${Je+Ri.left.Y*Yt}px`,M.querySelector(`.gamepad${fi.index}`).querySelector(".gamepadContainer").appendChild(ur)}else(ur=M.querySelector(`.gamepad${fi.index}`).querySelector(".leftStick")).style.opacity="1",ur.style.left=`${Se+Yt*Ri.left.X}px`,ur.style.top=`${Je+Ri.left.Y*Yt}px`;null===M.querySelector(`.gamepad${fi.index}`).querySelector(".rightStick")?((ur=document.createElement("div")).className="gamepadJoystickPointer rightStick",Sn(ur),ur.style.left=`${be+Ri.right.X*Yt}px`,ur.style.top=`${_t+Ri.right.Y*Yt}px`,M.querySelector(`.gamepad${fi.index}`).querySelector(".gamepadContainer").appendChild(ur)):((fi=M.querySelector(`.gamepad${fi.index}`).querySelector(".rightStick")).style.opacity="1",fi.style.left=(be+Ri.right.X*Yt).toString()+"px",fi.style.top=(_t+Ri.right.Y*Yt).toString()+"px")},ci=(fi,Ri,ur,vr)=>{var Hr=fi.getContext("2d");if(Hr){Hr.beginPath();var Ko=!0===ur?1:!1===ur?0:ur;switch(Hr.fillStyle=ur?vr?"#006FCD":"#0e7a0d":"grey",ur=Fo=>{if(Hr){var mr=.12*Ko;Hr.rect(fi.width*Fo,fi.height*(.12-mr+.07),.02*fi.width,fi.height*mr),Hr.closePath(),Hr.fill(),Hr.beginPath(),Hr.fillStyle="grey",Hr.rect(fi.width*Fo,.07*fi.height,.02*fi.width,fi.height*(.12-mr))}},Ri){case 0:Hr.moveTo(.14*fi.width,.48*fi.height),Hr.lineTo(.19*fi.width,.48*fi.height),Hr.lineTo(.165*fi.width,.54*fi.height),Hr.lineTo(.14*fi.width,.48*fi.height);break;case 1:Hr.moveTo(.14*fi.width,.66*fi.height),Hr.lineTo(.19*fi.width,.66*fi.height),Hr.lineTo(.165*fi.width,.61*fi.height),Hr.lineTo(.14*fi.width,.66*fi.height);break;case 2:Hr.moveTo(.09*fi.width,.55*fi.height),Hr.lineTo(.09*fi.width,.61*fi.height),Hr.lineTo(.135*fi.width,.57*fi.height),Hr.lineTo(.09*fi.width,.55*fi.height);break;case 3:Hr.moveTo(.24*fi.width,.55*fi.height),Hr.lineTo(.24*fi.width,.61*fi.height),Hr.lineTo(.195*fi.width,.57*fi.height),Hr.lineTo(.24*fi.width,.55*fi.height);break;case 4:Hr.arc(.7*fi.width,.4*fi.height,.02*fi.width,0,2*Math.PI);break;case 5:Hr.arc(.3*fi.width,.4*fi.height,.02*fi.width,0,2*Math.PI);break;case 6:Hr.arc(.3*fi.width,.8*fi.height,.07*fi.width,0,2*Math.PI);break;case 7:Hr.arc(.7*fi.width,.8*fi.height,.07*fi.width,0,2*Math.PI);break;case 8:Hr.rect(.13*fi.width,.23*fi.height,.07*fi.width,.05*fi.height);break;case 9:Hr.rect(.815*fi.width,.23*fi.height,.07*fi.width,.05*fi.height);break;case 12:Hr.arc(.85*fi.width,.65*fi.height,.02*fi.width,0,2*Math.PI);break;case 13:Hr.arc(.9*fi.width,.55*fi.height,.02*fi.width,0,2*Math.PI);break;case 14:Hr.arc(.8*fi.width,.55*fi.height,.02*fi.width,0,2*Math.PI);break;case 15:Hr.arc(.85*fi.width,.45*fi.height,.02*fi.width,0,2*Math.PI);break;case-1:ur(.155);break;case-2:ur(.84);break;case 16:if(!vr)break;Hr.arc(.5*fi.width,.5*fi.height,.02*fi.width,0,2*Math.PI);break;case 17:vr&&(Hr.roundRect?Hr.roundRect(.395*fi.width,.085*fi.height,.21*fi.width,.18*fi.height,.02*fi.width):Hr.arc(.5*fi.width,.175*fi.height,.02*fi.width,0,2*Math.PI))}Hr.closePath(),Hr.fill()}},Si=fi=>{if(null===M.querySelector(`.gamepad${fi.index}`)){var Ri=document.createElement("div");Ri.className=`gamepad gamepad${fi.index}`,Ri.style.display="flex",Ri.style.flexDirection="column",Ri.style.justifyContent="space-between",Ri.style.height="98%";var ur=document.createElement("p");ur.className="active",ur.style.margin="0px";var vr=document.createElement("span");vr.className="gamepadPlayerNumber",vr.style.color="white",vr.style.background=fi.cc?"#006FCD":"#0e7a0d",vr.style.position="relative",vr.style.marginRight="0.5vw",vr.innerHTML=fi.cc?"S":"X",vr.style.fontSize="1.5vw",ur.appendChild(vr),(vr=document.createElement("span")).className="gamepadPlayerNumber",vr.style.color="white",vr.style.position="relative",vr.innerHTML=`P${fi.index+1}|${fi.name}`,vr.style.fontSize="1.5vw",ur.appendChild(vr),Ri.appendChild(ur),(fi=document.createElement("div")).className="gamepadContainer",fi.style.position="relative",fi.style.width=`${B+2}px`,fi.style.height=`${q}px`,(ur=document.createElement("canvas")).className="canvas",ur.width=B,ur.height=q,ur.style.width=`${B}px`,ur.style.height=`${q}px`,ur.style.border="1px solid white",fi.appendChild(ur),Ri.appendChild(fi),M.appendChild(Ri),(Ri=M.querySelector("#instruction"))&&(Ri.style.display="none")}},er=()=>{if(this.visible){for(let ur=0;ur<this.xb.length;ur++){var fi=this.xb[ur];if(fi){var Ri=fi.cc;M.querySelector(`.gamepad${fi.index}`)||Si(fi),In(fi);let vr=M.querySelector(`.gamepad${fi.index}`).querySelector("canvas"),Hr=Ri?2:0;for(let Ko=0;16>Ko;Ko++)ci(vr,Ko,!!(fi.buttons&1<<Ko),Ri);1<=Hr&&ci(vr,16,65536&fi.buttons,Ri),2<=Hr&&ci(vr,17,131072&fi.buttons,Ri),ci(vr,-1,(255&fi.od)/255,Ri),ci(vr,-2,(fi.od>>8&255)/255,Ri)}else this.Vd[ur]?!M.querySelector(`.gamepad${ur}`)&&(Si(this.Vd[ur]),Ri=(fi=M.querySelector(`.gamepad${ur}`).querySelector("canvas")).getContext("2d"))&&(Ri.font="20px Arial",Ri.fillStyle="white",Ri.textAlign="center",Ri.fillText("Unsupported Gamepad",fi.width/2,fi.height/2)):((fi=M.querySelector(`.gamepad${ur}`))&&M.removeChild(fi),1>=M.childNodes.length&&(fi=M.querySelector("#instruction"))&&(fi.style.display="block"))}s=window.requestAnimationFrame(er)}else window.cancelAnimationFrame(s)};er()}}Wc(){}Wb(){}};function ap(s){if(g.i("{4c846ba}","{b11cb24}"),s.l){try{s.h=new MediaRecorder(s.l)}catch(M){return void g.e("{4c846ba}","{0d1420e}",M)}s.h&&(s.h.onstart=()=>{},s.h.onstop=()=>{g.i("{4c846ba}","{7a944b4}")},s.h.ondataavailable=M=>{M.data&&0<M.data.size&&(s.s.push(M.data),s.v.push(s.s),++s.m,s.s=[])},g.i("{4c846ba}","{ffb713f}",s.h)),s.o=!1}else g.e("{4c846ba}","{74475ae}")}function Xm(s){var M;null===(M=s.h)||void 0===M||M.stop(),s.h=void 0,0!==s.j&&(window.clearTimeout(s.j),s.j=0)}function _f(s){let M;if(1==s.g)M=18e5;else{if(2!=s.g)return;M=3e3}s.h&&!s.o&&(s.h.start(),s.o=!0,s.j=window.setTimeout(()=>{g.i("{4c846ba}","{2282d21}"),Xm(s)},M),g.i("{4c846ba}","{4f438e3}"))}var rm=class{constructor(){this.o=!1,this.s=[],this.v=[],this.g=this.m=this.j=0}initialize(s){this.l=s}uninitialize(){Xm(this),this.downloadAudio(),this.l=void 0,this.g=0}downloadAudio(){if(0!=this.g){for(let s=0;s<this.m;++s)hl(this.v[s],"audioCapture_"+s+".wmv","audio/webm")&&g.i("{4c846ba}","{c24ed3b}");this.m=0,this.v=[]}}};function Zm(s,M){s.h=!1,s.j=!1,s.g=M,s.g.onversionchange=()=>{g.w("{10dc2cc}","{65276d8}"),s.close(),s.g=void 0},s.g.onclose=()=>{g.w("{10dc2cc}","{342f7f8}"),s.h=!0,s.j=!0}}function lp(s){return s.l?s.g?s.h?Z(2,"Db is closing, unexpectedly: "+s.j+", visibility state hidden: "+("hidden"===document.visibilityState)):void 0:Z(1,"Db not yet open"):Z(17,"Indexdb object not found")}function om(s,M){const B=lp(s);return B?Promise.reject(B):new Promise((q,Se)=>{try{const be=s.g.transaction(M,"readwrite"),Je=be.objectStore(M);be.oncomplete=()=>{g.i("{10dc2cc}","{30f23d1}")};const _t=Je.clear();_t.onsuccess=()=>{q()},_t.onerror=()=>{Se(Z(80,"clear method failed)",be.error))}}catch(be){Se(Z(81,"Unexpected Exception happened in clear",be))}})}function th(s,M){const B=lp(s);return B?Promise.reject(B):new Promise((q,Se)=>{try{const be=s.g.transaction(M,"readonly"),Je=be.objectStore(M);be.oncomplete=()=>{g.i("{10dc2cc}","{59d1f78}")};const _t=Je.getAll();_t.onsuccess=()=>{q(_t.result)},_t.onerror=()=>{Se(Z(96,"getAll method failed",be.error))}}catch(be){Se(Z(97,"Unexpected Exception in getAll",be))}})}var cp=class{constructor(){this.l=window.indexedDB,this.version=2,this.j=this.h=!1,this.name="ragnarok",this.m=[{Yf:"exit-events",nd:{keyPath:["userId","sessionId","name"]},Xf:"exit-event-index"},{Yf:"telemetry-events",nd:{keyPath:["userId","sessionId","name","eventPayload.ts"]},Xf:"telemetry-event-index"}]}open(){return new Promise((s,M)=>{try{if(this.l){let B=this.l.open(this.name,this.version);B.onerror=()=>{M(Z(18,`${this.name} db opening failed`,B.error))},B.onsuccess=()=>{Zm(this,B.result),s()},B.onupgradeneeded=q=>{g.i("{10dc2cc}","{1f70767}",q.oldVersion,q.newVersion),Zm(this,B.result);const Se=be=>{var Je;const _t=null===(Je=this.g)||void 0===Je?void 0:Je.createObjectStore(be.Yf,be.nd);be.nd.keyPath&&_t?.createIndex(be.Xf,be.nd.keyPath,{unique:!0})};switch(q.oldVersion){case 0:Se(this.m[0]);case 1:Se(this.m[1])}},B.onblocked=()=>{M(Z(19,`${this.name} db blocked during opening`,B.error))}}else M(Z(17,"Indexdb object not found"))}catch(B){M(Z(20,"Unexpected Exception in open",B))}})}get(s,M){const B=lp(this);return B?Promise.reject(B):new Promise((q,Se)=>{try{const be=this.g.transaction(s,"readonly"),Je=be.objectStore(s);be.oncomplete=()=>{g.i("{10dc2cc}","{82638ba}")};const _t=Je.get(M);_t.onsuccess=()=>{q(_t.result)},_t.onerror=()=>{Se(Z(32,"get method failed",be.error))}}catch(be){Se(Z(33,"Unexpected Exception happened in get",be))}})}set(s,M){const B=lp(this);return B?Promise.reject(B):new Promise((q,Se)=>{try{const be=this.g.transaction(s,"readwrite"),Je=be.objectStore(s);be.oncomplete=()=>{g.i("{10dc2cc}","{f993875}")};const _t=Je.put(M);_t.onsuccess=()=>{q()},_t.onerror=()=>{Se(Z(48,"put method failed",be.error))}}catch(be){Se(Z(49,"Unexpected Exception happened in set",be))}})}close(){var s;this.h=!0,null===(s=this.g)||void 0===s||s.close()}};function dp(s,M){if(s.g.commonData){var B=M.gdprLevel;let q=!1;s.g.commonData&&("functional"!==B||"Full"!==s.g.commonData.deviceGdprFuncOptIn&&"Temp"!==s.g.commonData.deviceGdprFuncOptIn?("technical"===B&&"Full"===s.g.commonData.gdprTechOptIn||"behavioral"===B&&"Full"===s.g.commonData.gdprBehOptIn)&&(q=!0):q=!0),q&&(window.navigator.onLine?function sm(s){var M,B,q,Se;null!==(M=s.config)&&void 0!==M&&M.server&&null!==(B=s.config)&&void 0!==B&&B.version&&(M={method:"POST",headers:{"Content-Type":"application/json","X-Event-Protocol":null!==(Se=null===(q=s.commonData)||void 0===q?void 0:q.eventProtocol)&&void 0!==Se?Se:"1.5"},body:JSON.stringify(s.commonData),retryCount:3,timeout:2e3},g.i("{f7c1592}","{056661f}",M.body),z(Gd(s.config),M).then(()=>{}).catch(()=>{}))}(am(s,M)):function nh(s,M){lm(M)&&s.l.then(()=>s.j.set("telemetry-events",M)).then(()=>{g.i("{f7c1592}","{f03d70b}")}).catch(B=>{const q=!s.C;s.C=!0,ih(s,B,"cacheTelemetryEventInDb",q)})}(s,{userId:s.g.commonData.userId,sessionId:s.g.commonData.sessionId,name:M.name,eventPayload:M}))}else s.v.push(M)}function up(s){var M,B,q;return null!==(q=null===(B=null===(M=s.g)||void 0===M?void 0:M.telemetryEventIds)||void 0===B?void 0:B.streamingProfileGuid)&&void 0!==q?q:""}function yg(s){var M,B,q;return null!==(q=null===(B=null===(M=s.g)||void 0===M?void 0:M.telemetryEventIds)||void 0===B?void 0:B.systemInfoGuid)&&void 0!==q?q:""}function Gc(s,M){var B,q,Se,be;let Je=null!==(B=M.exitErrorCode)&&void 0!==B?B:"";return M.sleep?Je="SleepExit":!(null===(q=M.connectivity)||void 0===q)&&q.startsWith("online")&&(Je=null!==(Se=M.connectivity)&&void 0!==Se?Se:""),{name:(B=new Pl({zoneAddress:M.zoneAddress,networkSessionId:null!==(be=M.networkTestSessionId)&&void 0!==be?be:"",sessionId:M.sessionId,subSessionId:M.subSessionId,resumeType:Es(M.isResume),overrideConfigType:Bo.type,overrideConfigVersion:Bo.version,exitReason:Je,result:M.exitErrorCode,frameCount:M.frameCount,codec:Vo(M.codec),ipVersion:"UNKNOWN",streamDuration:Math.round(M.streamDuration),networkType:de(sd.getCurrentNetworkType()),streamingProfileGuid:up(s),systemInfoGuid:yg(s),cmsId:String(s.H)})).name,gdprLevel:B.gdprLevel,parameters:B.parameters,ts:B.ts,clientConfig:Zc}}function du(s){g.d("{f7c1592}","{badefed}",!0),function dd(s){s.l.then(()=>om(s.j,"exit-events")).then(()=>{g.i("{f7c1592}","{1b8f127}")}).catch(M=>{ih(s,M,"clearExitEventStoreInDb",!s.o),s.o||(s.o=!0)})}(s),s.h.eventPayload=void 0}function am(s,M){let B={};if(!s.g.commonData)return B;const q={name:M.name,ts:M.ts,parameters:M.parameters};return gp(B,s.g),(s=B.commonData).clientId=M.clientConfig.clientId,s.eventSchemaVer=M.clientConfig.eventSchemaVer,s.sentTs=(new Date).toISOString(),s.events=[q],B}function gp(s,M){s.commonData=M.commonData?Object.assign({},M.commonData):void 0,s.experiments=[],s.config=M.config,s.telemetryEventIds=M.telemetryEventIds}function Gd(s){return s.server+"/"+s.version+"/events/json"}function xs(s,M){var B,q,Se;s.h.userId=null!==(q=null===(B=s.g.commonData)||void 0===B?void 0:B.userId)&&void 0!==q?q:"",s.h.sessionId=null!==(Se=M.parameters.sessionId)&&void 0!==Se?Se:"",s.h.name=M.name,s.h.eventPayload=M}function bg(s){var M,B;null!==(M=s.config)&&void 0!==M&&M.server&&null!==(B=s.config)&&void 0!==B&&B.version&&s.experiments&&(s.commonData&&(s.commonData.sentTs=(new Date).toISOString()),M=JSON.stringify(s.commonData),s=navigator.sendBeacon(Gd(s.config),new Blob([M],{type:"text/plain"})),g.i("{f7c1592}","{b9367c5}",s,M))}function ih(s,M,B,q){var Se,be,Je,_t;g.e("{f7c1592}","{146ec91}",B,I(M.code),M.description),q&&(q=null!==(Je=null!==(be=null===(Se=M.error)||void 0===Se?void 0:Se.message)&&void 0!==be?be:M.description)&&void 0!==Je?Je:`Exception in ${B}`,s.F?s.F(M.error,q,"telemetryeventprocessor.ts",M.code,0,!0,null===(_t=M.error)||void 0===_t?void 0:_t.name):g.w("{f7c1592}","{12e0846}"))}function lm(s){return!!s.userId&&!!s.sessionId&&!!s.name}function ba(s){return lm(s.h)?s.l.then(()=>s.j.set("exit-events",s.h)).then(()=>{g.i("{f7c1592}","{5d026f8}")}).catch(M=>{ih(s,M,"cacheExitEventInDb",!s.m),s.m||(s.m=!0)}):Promise.resolve()}function Og(s){window.navigator.onLine&&s.l.then(()=>th(s.j,"telemetry-events")).then(M=>{if(g.i("{f7c1592}","{d4e574c}",M.length),0<M.length){!function Pg(s){s.l.then(()=>om(s.j,"telemetry-events")).then(()=>{g.i("{f7c1592}","{8f62936}")}).catch(M=>{ih(s,M,"clearEventStoreInDb",!s.s),s.s||(s.s=!0)})}(s);for(const B of M)B.eventPayload&&dp(s,B.eventPayload)}}).catch(M=>{g.e("{f7c1592}","{aaaa3de}",M.code,M.description)})}var Ss=class{constructor(){this.h={userId:"",sessionId:"",eventPayload:void 0,name:""},this.g={},this.s=this.C=this.o=this.m=!1,this.H="",this.v=[],this.j=new cp,this.l=this.j.open()}updateEventDataElements(s){var M;if(gp(this.g,s),this.g.commonData){g.d("{f7c1592}","{66f209c}");for(let B of this.v)dp(this,B);this.v=[]}this.h.userId=null===(M=this.g.commonData)||void 0===M?void 0:M.userId}};function Ah(s){if(s.g){const B=s.g.getSessionId(),q=s.g.getSubSessionId();g.d("{9d1820c}","{2fd42df}",B,q);var M=s.G;M.subSessionId=q,M.v.clear(),M.C=0,s.F.subSessionId=q,(M=s.G).sessionId=B,M.H=0,s.F.sessionId=B,(s=s.m).m=!1,s.o=!1,s.C=!1,s.s=!1}}function Dh(s,M){var B,q,Se,be,Je,_t,Yt,$t,Sn,In;s.M&&(s.M=!1,s.framesDecoded=null!==(q=null===(B=s.D)||void 0===B?void 0:wh(B))&&void 0!==q?q:0,B={sessionId:null!==(be=null===(Se=s.g)||void 0===Se?void 0:Se.getSessionId())&&void 0!==be?be:"",subSessionId:null!==(_t=null===(Je=s.g)||void 0===Je?void 0:Je.getSubSessionId())&&void 0!==_t?_t:"",zoneName:null!==($t=null===(Yt=s.g)||void 0===Yt?void 0:Yt.getZoneName())&&void 0!==$t?$t:"",zoneAddress:(null===(Sn=s.g)||void 0===Sn?void 0:Sn.getZoneAddress())||s.h.serverAddress,error:{code:M}},Se=xu(s,B,performance.now()-s.startTime),md(s.j),(!s.D||!(null===(In=s.D)||void 0===In)&&In.H)&&rh(s,Se),hu(s,M),s.cancelSessionSetup())}function Eu(s){0!==s.J&&(window.clearTimeout(s.J),s.J=0)}function rh(s,M){Eu(s);var B=s.G;let q;q=Gc(B.j,M),Np(B,q),du(B.j),M=M.streamDuration,"hidden"===document.visibilityState&&(s.o+=performance.now()-s.L),B=0,M&&(B=Math.max(0,100*(M-s.o)/M)),ya(s.G,"sessionVisibilityMetrics","",B,Math.round(M),Math.round(s.o),0),s.o=0,s.L=0}function xu(s,M,B,q,Se){var be,Je,_t,Yt;return{exitErrorCode:I(M.error?M.error.code:15859712),sessionId:M.sessionId,subSessionId:M.subSessionId,zoneAddress:M.zoneAddress,streamDuration:B,frameCount:s.framesDecoded,codec:null!==(Je=null===(be=s.D)||void 0===be?void 0:qu(be))&&void 0!==Je?Je:"UNKNOWN",isResume:s.isResume,connectivity:q??"undefined",sleep:Se??!1,networkTestSessionId:null!==(Yt=null===(_t=s.v)||void 0===_t?void 0:_t.la.networkSessionId)&&void 0!==Yt?Yt:""}}function Rh(s){var M;Jm(s,I(null!==(M=s.S)&&void 0!==M?M:15867911));const B=s.J;ba(s.m).then(()=>{B===s.J&&function mp(s){Eu(s),s.J=window.setTimeout(()=>Rh(s),12e4)}(s)}).catch(()=>{g.e("{9d1820c}","{204a7ac}")})}function wu(s){return{code:3237093380,description:s+" called before initialize"}}function uu(s,M){var B,q,Se,be,Je,_t,Yt,$t,Sn,In,ci;let Si={sessionId:null!==(q=null===(B=s.g)||void 0===B?void 0:B.getSessionId())&&void 0!==q?q:"",subSessionId:null!==(be=null===(Se=s.g)||void 0===Se?void 0:Se.getSubSessionId())&&void 0!==be?be:"",error:{code:3237089284,description:"Quitting due to exception"},streamInfo:null===(Je=s.H)||void 0===Je?void 0:Je.streamInfo,zoneName:null!==(Yt=null===(_t=s.g)||void 0===_t?void 0:_t.getZoneName())&&void 0!==Yt?Yt:"",zoneAddress:null!==(Sn=null===($t=s.g)||void 0===$t?void 0:$t.getZoneAddress())&&void 0!==Sn?Sn:"",gpuType:null!==(ci=null===(In=s.g)||void 0===In?void 0:In.getGpuType())&&void 0!==ci?ci:"",isResume:s.isResume};s.Gc(Si,!0),g.e("{9d1820c}","{90f98fb}",M),s.G.za(M,"Exception happened in session call","{9d1820c}.ts",0,0,!0)}function Eg(s,M){var B=oe();s.Gc({sessionId:"",subSessionId:B,error:M,zoneName:"",zoneAddress:"",gpuType:"",isResume:s.isResume},!0)}function pp(s,M,B,q){if(s.H=void 0,s.aa=!1,s.g){rt(s.C,B.la.additionalInputDevices),B.la.remoteControllersBitmap=ol(s.C);try{(function lc(s,M){s.j.H=M})(s.G,B.la.appId),s.startTime=performance.now(),Sd(s.F),g.d("{9d1820c}","{892168d}",g.sanitize(JSON.stringify(B.la)));const be=s.g;be.putOrPostSession(B.la,M,q).then(Je=>(Ah(s),g.d("{9d1820c}","{92a2573}",Je?.sessionId,Je?.subSessionId),"ready_for_connection"===Je?.state?(g.d("{9d1820c}","{2042e0a}"),s.H=Je,new Promise(_t=>{_t(Je)})):be.getSession(Je.sessionId,!0))).then(Je=>{s.H=Je,g.d("{9d1820c}","{315afdc}",Je?.sessionId),s.startStreaming(B)}).catch(Je=>{var _t,Yt,$t,Sn,In,ci;if(Ah(s),Je.code){15867905!=Je.code&&15867906!=Je.code||!be.getSessionId()||s.aa||s.sendDeleteRequest(be.getSessionId(),be),g.e("{9d1820c}","{09efe49}",I(Je.code));let Si={sessionId:null!==(_t=be.getSessionId())&&void 0!==_t?_t:"",subSessionId:null!==(Yt=be.getSubSessionId())&&void 0!==Yt?Yt:"",error:Je,sessionList:Je.sessionList,streamInfo:null===($t=s.H)||void 0===$t?void 0:$t.streamInfo,zoneName:null!==(Sn=be.getZoneName())&&void 0!==Sn?Sn:"",zoneAddress:null!==(In=be.getZoneAddress())&&void 0!==In?In:"",gpuType:null!==(ci=be.getGpuType())&&void 0!==ci?ci:"",isResume:s.isResume};s.Gc(Si,!0)}else uu(s,Je)})}catch(be){uu(s,be)}}else s.emit("SessionStartResult",{sessionId:"",subSessionId:"",zoneName:"",zoneAddress:"",gpuType:"",isResume:s.isResume,error:wu(s.isResume?"Resume":"Start")})}function Jm(s,M){var B,q,Se,be,Je,_t,Yt,$t,Sn,In=s.m,ci=null!==(q=null===(B=s.g)||void 0===B?void 0:B.getSessionId())&&void 0!==q?q:"";B=null!==(be=null===(Se=s.g)||void 0===Se?void 0:Se.getSubSessionId())&&void 0!==be?be:"",Se=(null===(Je=s.g)||void 0===Je?void 0:Je.getZoneAddress())||s.h.serverAddress,Je=null!==(Yt=null===(_t=s.D)||void 0===_t?void 0:wh(_t))&&void 0!==Yt?Yt:0,_t=null!==(Sn=null===($t=s.D)||void 0===$t?void 0:qu($t))&&void 0!==Sn?Sn:"UNKNOWN",xs(In,s=Gc(In,{exitErrorCode:M,sessionId:ci,subSessionId:B,zoneAddress:Se,streamDuration:performance.now()-s.startTime,frameCount:Je,codec:_t,isResume:s.isResume,connectivity:"",sleep:!1,networkTestSessionId:""}))}function oh(s){s.T&&(window.clearTimeout(s.T),s.T=0)}function sh(s){window.removeEventListener("pagehide",s.ja),window.removeEventListener("online",s.ea),document.removeEventListener("visibilitychange",s.ka),navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",s.W),R(s.u)&&(document.removeEventListener("SystemIdle",s.ga),oh(s))}function dm(s,M){s.S=void 0,Og(s.m),s.M=!0,window.addEventListener("pagehide",s.ja),window.addEventListener("online",s.ea),document.addEventListener("visibilitychange",s.ka),navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",s.W),s.isResume=M,s.P&&Il(s.G,"SessionSetupInProgressError",s.isResume?"resume":"start"),s.P=!0}function fp(s,M){var B,q,Se;if((M={la:Object.assign({},M),ae:[]}).la.streamParams)for(const _t of M.la.streamParams){const Yt=document.getElementById(_t.videoTagId);if(null==Yt||!(Yt instanceof HTMLVideoElement))return void Eg(s,{code:3237094400,description:"Didn't find video element for videoTagId: "+_t.videoTagId});M.ae.push({K:Yt})}if(M.la.keyboardLayout=null!==(B=M.la.keyboardLayout)&&void 0!==B?B:K(s.u)?"m-us":"en_US",(void 0===M.la.appLaunchMode||0===M.la.appLaunchMode)&&(M.la.appLaunchMode=X()||ge(s.u)||"Xbox"===s.u.os?1:0),Ai)if(M.la.metaData)for(const _t in Ai)M.la.metaData[_t]=Ai[_t];else M.la.metaData=Ai;void 0!==js&&(M.la.appLaunchMode=js,g.d("{9d1820c}","{c4969b1}",js));const be=!!Tt&&!!Ln,Je=!!ho;return(be||Je)&&(null===(q=M.la.streamParams)||void 0===q||q.forEach(_t=>{be&&(_t.width=Tt,_t.height=Ln),Je&&(_t.fps=ho)}),null===(Se=M.la.monitorSettings)||void 0===Se||Se.forEach(_t=>{be&&(_t.widthInPixels=Tt,_t.heightInPixels=Ln),Je&&(_t.framesPerSecond=ho)}),be&&g.i("{9d1820c}","{92a6b38}",Tt,Ln),Je&&g.d("{9d1820c}","{6618bcd}",ho)),s.v=M,s.v}function hu(s,M){s.D&&(s.D.stop(M),s.D=void 0)}function Na(s,M,B){var q,Se;M={sessionId:M,subSessionId:null!==(Se=null===(q=s.g)||void 0===q?void 0:q.getSubSessionId())&&void 0!==Se?Se:"",framesDecoded:s.framesDecoded,error:B},Aa(s),D(s.u)&&s.l&&(g.d("{9d1820c}","{b9b1288}"),s.setMicRecordingEnabled(!1)),s.emit("SessionStopResult",M)}function Aa(s){kr&&(window.ios15AudioContext&&(window.ios15AudioContext.close(),window.ios15AudioContext=void 0,g.i("{9d1820c}","{0ac2a42}")),window.ios15AudioStream=void 0,navigator.mediaDevices&&s.O&&navigator.mediaDevices.removeEventListener("devicechange",s.O))}function Xl(s,M){s.P=!1,M.error&&(s.M=!1,sh(s)),s.emit("SessionStartResult",M)}function Lh(s,M,B,q){var Se,be,Je,_t;Aa(s),q&&(null!==(Se=q.connectivity)&&void 0!==Se&&Se.startsWith("offline")||null!==(be=q.connectivity)&&void 0!==be&&be.startsWith("timeout")?(Eu(s),Jm(s,I(null!==(_t=null===(Je=M.error)||void 0===Je?void 0:Je.code)&&void 0!==_t?_t:15867911)),ba(s.m).catch(()=>{g.e("{9d1820c}","{0c2de99}")})):rh(s,q)),hu(s,M.error?M.error.code:15859712),B?Xl(s,M):(M.error&&(B=Ds(M.error.code,s.u),M.isResumable=B,g.i("{9d1820c}","{723f7be}",B)),s.M=!1,s.P=!1,sh(s),s.emit("StreamStopped",M))}function xg(s,M){let B={errorCode:M??15859712,connectivity:"online"};if(M&&(!((3237093888^M)>>8)||3237089282===M)){let q=1500;tr.connectivityCheckTimeout&&0!==tr.connectivityCheckTimeout&&(q=tr.connectivityCheckTimeout,g.i("{9d1820c}","{f9909d8}",q)),s=("http:"===window.location.protocol?"http://":"https://")+s.h.serverAddress,g.i("{9d1820c}","{df38106}",s);const Se=performance.now();return ce(s,q).then(be=>(B.connectivity=200<=be.status&&300>be.status||403==be.status?"online("+String(25*Math.ceil((performance.now()-Se)/25))+")":"offline_wrong_status("+String(be.status)+")",B)).catch(be=>("AbortError"===be.name?B.connectivity="timeout":(B.connectivity="offline("+be.name+":"+be.message+")",B.errorCode=ds(M)),B))}return Promise.resolve(B)}performance.mark("GfnRBegin");var _p=a.LogImpl;function Vd(s,M,B){var q;if(4!==s.streamingState&&0!==s.streamingState){var Se=s.streamingState;s.streamingState=4,eh(s.l),ya(sl,"HotPlug","",0,s.o,0,0),D(s.u)&&s.m&&(g.d("{0a9be04}","{b9b1288}"),s.captureMic(!1)),md(s.g),null===(q=s.D)||void 0===q||q.stop(M),Mg(s.l,M)&&(M=Yo(M,s.u)),function Tu(s,M){let B={errorCode:M??15859712,connectivity:"online"};if(M&&(!((3237093888^M)>>8)||3237089282===M)){let q=1500;tr.connectivityCheckTimeout&&0!==tr.connectivityCheckTimeout&&(q=tr.connectivityCheckTimeout,g.i("{0a9be04}","{f9909d8}",q)),s=("http:"===window.location.protocol?"http://":"https://")+s.zoneAddress,g.i("{0a9be04}","{df38106}",s);const Se=performance.now();return ce(s,q).then(be=>(B.connectivity=200<=be.status&&300>be.status||403==be.status?"online("+String(25*Math.ceil((performance.now()-Se)/25))+")":"offline_wrong_status("+String(be.status)+")",B)).catch(be=>("AbortError"===be.name?B.connectivity="timeout":(B.connectivity="offline("+be.name+":"+be.message+")",B.errorCode=ds(M)),B))}return Promise.resolve(B)}(s,M).then(be=>{if(M=be.errorCode,1!==Se){var Yt,$t,Sn,In,Je={code:M,isResumable:Ds(M,s.u),reason:3},_t=new Set([3237093892,15867907,3237093896,3237093897,3237093898,3237093899,3237093900,3237093895,3237093901,3237093906,3237093929,15867908,15868418,3237094151,3237094158]);B?Je.reason=0:_t.has(M)?Je.reason=2:15868672==(268435200&M)&&(Je.reason=1),s.h.onStreamStopped(Je),_t=be.connectivity,Je=be=I(M||15859712),null!=_t&&_t.startsWith("online")&&(Je=_t??""),_t=performance.now()-s.startTime;const Hr=null!==($t=null===(Yt=s.D)||void 0===Yt?void 0:qu(Yt))&&void 0!==$t?$t:"UNKNOWN";var ci,Si,er;Yt=null!==(In=null===(Sn=s.D)||void 0===Sn?void 0:wh(Sn))&&void 0!==In?In:0,In=new Pl({zoneAddress:(Sn=sl).zoneAddress,sessionId:Sn.sessionId,subSessionId:Sn.subSessionId,resumeType:Es(Sn.isResume),cmsId:Sn.cmsId,overrideConfigType:Bo.type,overrideConfigVersion:Bo.version,exitReason:Je,result:be,frameCount:Yt,codec:Vo(Hr),ipVersion:"UNKNOWN",streamDuration:Math.round(_t),networkType:de(sd.getCurrentNetworkType()),streamingProfileGuid:null!==(ci=Sn.telemetryEventIds.streamingProfileGuid)&&void 0!==ci?ci:"",systemInfoGuid:null!==(Si=Sn.telemetryEventIds.systemInfoGuid)&&void 0!==Si?Si:"",networkSessionId:null!==(er=Sn.telemetryEventIds.networkTestId)&&void 0!==er?er:""}),Sn.h(In,!0)}var fi,Ri,ur,vr;Hc(s),Cp(s),s.D=void 0,s.startTime=0,s.isResume=!1,s.P=void 0,s.C=0,s.o=0,s.sessionId="",s.subSessionId="",s.zoneAddress="",s.zoneName="",s.K=void 0,s.Ea=void 0,s.m=!1,s.appId=0,s.setSupportedHidTypes(0),s.setGamepadRsdmm(!1),s.l.sessionId="",s.l.subSessionId="",Si=window.zoneless,ci=null!==(Ri=null===(fi=Si?.windowRemoveEventListener)||void 0===fi?void 0:fi.bind(window))&&void 0!==Ri?Ri:window.removeEventListener.bind(window),fi=null!==(vr=null===(ur=Si?.documentRemoveEventListener)||void 0===ur?void 0:ur.bind(document))&&void 0!==vr?vr:document.removeEventListener.bind(document),ci("pagehide",s.M),ci("error",s.L),fi("visibilitychange",s.N),navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",s.F),R(s.u)&&(fi("SystemIdle",s.J),Cp(s))})}}function Hc(s){kr&&(window.ios15AudioContext&&(window.ios15AudioContext.close(),window.ios15AudioContext=void 0,g.i("{0a9be04}","{0ac2a42}")),window.ios15AudioStream=void 0,navigator.mediaDevices&&s.s&&navigator.mediaDevices.removeEventListener("devicechange",s.s))}function Cp(s){s.v&&(window.clearTimeout(s.v),s.v=0)}performance.mark("GfnNskBegin");var Lf=class{constructor(s,M,B){this.u=s,this.h=M,this.R=B,this.H=new Ih,this.O=new rm,this.startTime=this.streamingState=0,this.isResume=!1,this.o=this.C=this.v=0,this.zoneName=this.zoneAddress=this.subSessionId=this.sessionId="",this.m=!1,this.appId=0,this.L=q=>{var Se;return g.e("{0a9be04}","{8516485}",q.filename,q.lineno,q.colno),sl.za(q.error,q.error&&q.error.message?q.error.message:q.message,q.filename,q.lineno,q.colno,!1),(!(null!==(Se=tr.terminateUnhandledException)&&void 0!==Se)||Se)&&Vd(this,3237093392),!1},this.N=()=>{var q;if(g.i("{0a9be04}","{478a408}",document.visibilityState,!!this.D),this.D){var Se=this.K,be=this.Ea,Je=Se&&be&&N(this.u,!1,15,4)&&as,_t=N(this.u,!1,15,4)&&this.m&&rl;"hidden"===document.visibilityState?(this.C=performance.now(),Je&&(g.i("{0a9be04}","{cbd3b6e}"),Se.muted=!0,be.muted=!0)):"visible"===document.visibilityState&&(Je&&(g.i("{0a9be04}","{05deefa}"),Se.muted=!1,be.muted=!1),_t?(Se=null!==(q=tr.userTerminatedMicRecorderThreshold)&&void 0!==q?q:2e3,this.C-this.g.O<Se?(g.i("{0a9be04}","{862bd20}"),this.g.J=!0,this.captureMic(!0)):this.m=!1):N(this.u,!1,15,4)&&!this.g.o&&Xc(this.g)&&this.g.F&&tu(this.g,"visibilityChange"))}},this.M=()=>{var q,Se;Vd(this,(null!==(q=this.P)&&void 0!==q?q:null!==(Se=this.D)&&void 0!==Se&&Se.H)?15867912:15867905)},this.F=()=>{iu(this.g,this.o),this.o++},this.J=q=>{var Se;q.detail.idle&&(null===(Se=this.D)||void 0===Se||sp(Se,2,60),this.v=window.setTimeout(()=>{var be;null===(be=this.D)||void 0===be||Dl(be,15867913)},6e4))},this.s=()=>{this.g.j()},this.j=new to(this.u,window.zoneless),this.g=new qo(this.u,sl),this.l=new il(sl),zr&&(this.j.l.push(this.H),Jl(this.j)),Hn(sl),function wg(){var s,M,B;if(tr.sendNonEssentialMetricEvents){var q=performance.getEntriesByName("GfnJsInitStart")[0];const Se=performance.getEntriesByName("platformBegin")[0],be=performance.getEntriesByName("GfnNskBegin")[0],Je=performance.getEntriesByType("navigation");q=Math.round(null!==(s=q?.startTime)&&void 0!==s?s:-1),s=Math.round(null!==(M=Se?.startTime)&&void 0!==M?M:-1),ya(sl,"PerformanceTiming","application timings",q,s,Math.round(null!==(B=be?.startTime)&&void 0!==B?B:-1),s-q),Je.length?(M=Je[Je.length-1],ya(sl,"PerformanceTiming","load timings",Math.round(M.loadEventStart),Math.round(M.loadEventEnd),Math.round(M.domContentLoadedEventStart),Math.round(M.domContentLoadedEventEnd))):ya(sl,"PerformanceTiming","navigation timings unsupported",0,0,0,0)}}(),function ah(){if(navigator.mediaCapabilities){var s=performance.now();Nc("h264").then(function(){var M=n(function*(B){if(B){B=Nc("h264; profile-level-id=640033",2560,1440,60);var q=Nc("h264; profile-level-id=64e033",2560,1440,60);B=Ld(yield B),q=Ld(yield q);const Je=performance.now()-s;var Se=ld(),be=Nc("h264",1920,1080,120);Se=Ld(yield Se),be=Ld(yield be);const _t=yield kd(Cu),Yt=yield ru();g.d("{0a9be04}","{1efbc27}",_t,Yt),ya(sl,"DisplayCaps","Is120FpsSupported: "+Yt,_t,0,0,0),ya(sl,"MediaCapabilities","codec 5.1: "+B+" 5.1 constrained: "+q+" AV1: "+Se,Je,be,B|q,Math.round(window.screen.height))}else ya(sl,"MediaCapabilities","webrtc unsupported",performance.now()-s,-1,-1,-1)});return function(B){return M.apply(this,arguments)}}())}else ya(sl,"MediaCapabilities","API unsupported",-1,-1,-1,-1)}(),tr.sendNonEssentialMetricEvents&&ya(sl,"PlatformDetailsExecutionTime","",this.u.totalTime,0,0,0),g.i("{0a9be04}","{2569364}","0.0.1548"),g.d("{0a9be04}","{e85ad66}",navigator.userAgent)}startStreaming(s){var M,B,q,Se,be,Je,_t,Yt,$t,Sn,In,ci,Si,er,fi;if(4!==this.streamingState&&0!==this.streamingState)return g.w("{0a9be04}","{60a7ff5}"),Il(sl,"SessionSetupInProgressError",s.resume?"resume":"start"),3237085186;const Ri=function Ec(s){var M;const B={errorCode:void 0,streamParams:Object.assign({},s),Ea:void 0,be:[]};if(0<B.streamParams.downstreamParams.length||!s.audioTagId){for(var q of B.streamParams.downstreamParams)(s=document.getElementById(q.videoTagId))&&s instanceof HTMLVideoElement&&B.be.push(s);if(!B.be.length)return{errorCode:3237094400}}else{if(!((q=document.getElementById(s.audioTagId))&&q instanceof HTMLAudioElement))return{errorCode:3237094401};B.Ea=q}const Se=!!Tt&&!!Ln,be=!!ho;return(Se||be)&&(null===(M=B.streamParams.downstreamParams)||void 0===M||M.forEach(Je=>{Se&&(Je.width=Tt,Je.height=Ln),be&&(Je.fps=ho)}),Se&&g.i("{0a9be04}","{92a6b38}",Tt,Ln),be&&g.d("{0a9be04}","{6618bcd}",ho)),B}(s);if(Ri.errorCode)return Ri.errorCode;if(s=Ri.streamParams,this.K=Ri.be[0],this.Ea=Ri.Ea,this.isResume=null!==(M=s.resume)&&void 0!==M&&M,this.sessionId=s.sessionId,this.subSessionId=null!==(B=s.subSessionId)&&void 0!==B?B:"",this.zoneAddress=null!==(q=s.zoneAddress)&&void 0!==q?q:"",this.zoneName=null!==(be=null===(Se=s.statTelemetryInfo)||void 0===Se?void 0:Se.zoneName)&&void 0!==be?be:"",this.appId=null!==(_t=null===(Je=s.statTelemetryInfo)||void 0===Je?void 0:Je.appId)&&void 0!==_t?_t:0,function Hg(s,M,B,q,Se){var be=sl;be.subSessionId=s,be.sessionId=M,be.cmsId=B,be.isResume=q,be.zoneAddress=Se}(this.subSessionId,this.sessionId,this.appId.toString(),this.isResume,this.zoneAddress),this.l.sessionId=this.sessionId,this.l.subSessionId=this.subSessionId,N(this.u,!1,15)){const ur=this.K;ur.ragnarokOldPlay||(ur.ragnarokOldPlay=this.K.play);const vr=Jr&&N(this.u,!0,15,1);this.K.play=()=>{var Hr,Ko,Fo;if(kr&&(g.i("{0a9be04}","{4a5b360}"),Hc(this),function vp(s){if(kr)if(window.ios15AudioContext)g.i("{0a9be04}","{e2aba64}");else{var M=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive",sampleRate:48e3});M.onstatechange=()=>{"suspended"===M.state&&(M.resume(),s.g.j(),g.i("{0a9be04}","{faee684}"))},window.ios15AudioContext=M,window.ios15AudioStream=M.createMediaStreamDestination(),navigator.mediaDevices&&s.s&&navigator.mediaDevices.addEventListener("devicechange",s.s),g.i("{0a9be04}","{b5f7b9b}")}}(this),this.g.j()),vr){g.i("{0a9be04}","{8f5cd77}");const mr=null!==(Ko=null===(Hr=this.K)||void 0===Hr?void 0:Hr.srcObject)&&void 0!==Ko?Ko:null;null!==(Fo=this.K)&&void 0!==Fo&&Fo.srcObject&&(this.K.srcObject=null,this.K.srcObject=mr)}return ur.ragnarokOldPlay.apply(this.K)}}return Sa&&(N(this.u,!0,15,0)||N(this.u,!0,15,1))&&(this.K.hasAttribute("data-shouldautoplay")?this.K.setAttribute("autoplay",""):(this.K.setAttribute("data-shouldautoplay",""),this.K.removeAttribute("autoplay"))),q={ip:"",port:0,appLevelProtocol:0,usage:0,protocol:0},s.mediaConnectionInfo&&(q.ip=s.mediaConnectionInfo.address,q.port=s.mediaConnectionInfo.port,q.usage=2),B={appId:this.appId,appLaunchMode:s.enableTouchInput?2:0,clientLocale:null!==($t=null===(Yt=s.statTelemetryInfo)||void 0===Yt?void 0:Yt.clientLocale)&&void 0!==$t?$t:"",gpuType:null!==(In=null===(Sn=s.statTelemetryInfo)||void 0===Sn?void 0:Sn.gpuType)&&void 0!==In?In:"",mediaConnectionInfo:[q],sessionId:this.sessionId,signalConnectionInfo:Se={ip:s.signalConnectionInfo.address,port:s.signalConnectionInfo.port,protocol:s.signalConnectionInfo.secure?"wss":"ws"},state:"ready_for_connection",streamInfo:[be={width:(M=s.downstreamParams[0]).width,height:M.height,fps:M.fps,sdrHdrMode:M.sdrHdrMode}],subSessionId:this.subSessionId,zoneAddress:this.zoneAddress,zoneName:this.zoneName,finalizedStreamingFeatures:s.streamingFeatures},Yt={width:M.width,height:M.height,fps:M.fps,maxBitrateKbps:M.maxBitrateKbps,videoTagId:M.videoTagId,audioTagId:s.audioTagId},null!==(ci=($t={...Vi}).windowedStreaming)&&void 0!==ci||($t.windowedStreaming=s.windowedStreaming),null!==(Si=$t.cursorType)&&void 0!==Si||($t.cursorType=s.cursorType),this.D=new Sg(this,this.K,this.Ea,this.g,$t,this.H,this.j,sl,this.u,B,Yt,this.O,this.R.textInputElement,null===(er=s.statTelemetryInfo)||void 0===er?void 0:er.clientAppVersion,this.isResume,null===(fi=s.statTelemetryInfo)||void 0===fi?void 0:fi.region,M.dynamicStreamingMode,s.upstreamParams),function hm(s){var M,B,q,Se;const be=window.zoneless,Je=null!==(B=null===(M=be?.windowAddEventListener)||void 0===M?void 0:M.bind(window))&&void 0!==B?B:window.addEventListener.bind(window);M=null!==(Se=null===(q=be?.documentAddEventListener)||void 0===q?void 0:q.bind(document))&&void 0!==Se?Se:document.addEventListener.bind(document),Je("pagehide",s.M),Je("error",s.L),M("visibilitychange",s.N),navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",s.F),R(s.u)&&M("SystemIdle",s.J)}(this),this.streamingState=1,Sd(this.l),this.startTime=performance.now(),this.D.start(),s.keyboardLayout&&this.D.setKeyboardLayout(s.keyboardLayout),15859712}stopStreaming(s){!this.D||1!==this.streamingState&&2!==this.streamingState||(g.i("{0a9be04}","{ae7f61b}",I(s=s??15859712)),this.streamingState=3,Vd(this,s,!0))}getStreamingState(){return this.streamingState}sendCustomMessage(s){var M;return null===(M=this.D)||void 0===M||M.sendCustomMessage(s),!!this.D}setStreamingMaxBitrate(s,M,B){var q;return null===(q=this.D)||void 0===q||q.setStreamingMaxBitrate(M??0,s,B),!!this.D}setDynamicStreamingMode(s,M,B){var q;return null===(q=this.D)||void 0===q||q.setDrcDfcState(M??0,s,B),!!this.D}setKeyboardLayout(s){var M;return null===(M=this.D)||void 0===M||M.setKeyboardLayout(s),!!this.D}setSupportedHidTypes(s){rt(this.j,s)}setGamepadRsdmm(s){return!!this.D&&(ht(this.j,s),!0)}getVirtualInputController(){return this}getGamepadBitmap(){return ol(this.j)}captureUserInput(s,M){var B;return null===(B=this.D)||void 0===B||B.toggleUserInput(s,M),!!this.D}sendTextInput(s){var M;return null===(M=this.D)||void 0===M||M.sendTextInput(s),!!this.D}getMicState(){return yc()}captureMic(s){return!!this.D&&((this.m=s)?Nu(this.g):vu(this.g),!0)}setVideoTransforms(s,M,B){var q;return null===(q=this.D)||void 0===q||q.setVideoTransforms(s,M,B),!!this.D}setUpstreamMedia(s,M){var B;return this.D?null===(B=this.D)||void 0===B?void 0:B.setUpstreamMedia(s,M):Promise.resolve(!1)}unsetUpstreamMedia(s){var M;return this.D?null===(M=this.D)||void 0===M?void 0:M.unsetUpstreamMedia(s):Promise.resolve(!1)}stopUpstreamMedia(s){var M;return this.D?null===(M=this.D)||void 0===M?void 0:M.stopUpstreamMedia(s):Promise.resolve(!1)}Gc(s){var M,B,q,Se,be,Je,_t;let Yt=15859712;if(s.error)Yt=s.error.code,this.h.onStreamStartFailed(Yt),Vd(this,Yt);else if(null!==(M=s.streamInfo)&&void 0!==M&&M.length&&null!==(B=s.streams)&&void 0!==B&&B.length){this.streamingState=2,M={streams:[],separateAudioStream:!!s.streams.find($t=>{const Sn=$t.tracks.find(In=>"video"===In.kind);return $t=$t.tracks.find(In=>"audio"===In.kind),!Sn&&$t})};for(const $t of s.streamInfo)s={width:$t.width,height:$t.height,fps:$t.fps,sdrHdrMode:$t.sdrHdrMode,bitDepth:8,codec:null===(q=this.D)||void 0===q?void 0:qu(q),videoTagId:null!==(be=null===(Se=this.K)||void 0===Se?void 0:Se.tagName)&&void 0!==be?be:""},M.streams.push(s);this.h.onStreamStarted(M),this.isResume&&this.m&&this.captureMic(!0)}else Yt=3237093905,g.e("{0a9be04}","{0cfb100}"),this.h.onStreamStartFailed(Yt),Vd(this,Yt);(function Lp(s,M,B){var Se,be,Je,q=sl;const _t=new Qc({zoneAddress:q.zoneAddress,networkSessionId:null!==(Se=q.telemetryEventIds.networkTestId)&&void 0!==Se?Se:"",sessionId:q.sessionId,subSessionId:q.subSessionId,resumeType:Es(q.isResume),overrideConfigType:Bo.type,overrideConfigVersion:Bo.version,result:M,codec:Vo(B),ipVersion:"UNKNOWN",launchDuration:Math.round(s),networkType:de(sd.getCurrentNetworkType()),streamingProfileGuid:null!==(be=q.telemetryEventIds.streamingProfileGuid)&&void 0!==be?be:"",systemInfoGuid:null!==(Je=q.telemetryEventIds.systemInfoGuid)&&void 0!==Je?Je:"",cmsId:q.cmsId});q.h(_t)})(Math.round(performance.now()-this.startTime),I(Yt),null!==(_t=null===(Je=this.D)||void 0===Je?void 0:qu(Je))&&void 0!==_t?_t:"UNKNOWN"),this.startTime=performance.now()}Cf(s){Vd(this,s.error.code)}Df(){Cp(this)}emit(s,...M){if(M.length)switch(s){case"StreamingEvent":this.h.onStreamWarning(M[0]);break;case"StreamingQuality":this.h.onStreamQuality(M[0]);break;case"MicCapture":this.h.onMicStateUpdate&&void 0!==M[0].state&&this.h.onMicStateUpdate(M[0].state);break;case"TextComposition":this.h.onTextComposition(M[0]);break;case"CustomMessage":this.h.onCustomMessage&&this.h.onCustomMessage(M[0]);break;case"StreamStatsUpdate":this.h.onStreamStatistics(M[0])}}addListener(){}removeListener(){}removeAllListeners(){}removeAllListenersOfEvent(){}hasListener(){return!0}setClientSupportsVirtualGamepad(){this.j.getVirtualGamepadHandler().enable()}handleVirtualGamepadState(s,M,B){this.j.getVirtualGamepadHandler().updateInput(s,M,B)}setVirtualKeyboardState(s){var M;return null===(M=this.D)||void 0===M||M.setVirtualKeyboardState(s),!!this.D}handleVirtualKeyInput(s){var M;return null===(M=this.D)||void 0===M||M.sendKeyEvent(s),!!this.D}};window.Ragnarok=window.Ragnarok||{},window.Ragnarok.GridApp=class extends vi{constructor(s){super(),this.u=s,this.l=this.Z=!1,this.da=new Ih,this.P=!1,this.O=this.W=void 0,this.fa=!1,this.R=this.L=this.T=this.J=0,this.aa=this.M=!1,this.o=0,g.isCallbackRegistered()||g.setLogCallback(this.$.bind(this)),this.h={clientIdentification:"GFN-PC",clientVersion:"28.0",deviceHashId:"",serverAddress:""},this.startTime=performance.now(),this.ja=this.ra.bind(this),this.ea=this.xa.bind(this),this.ka=this.Da.bind(this),this.ya=this.qa.bind(this),this.framesDecoded=0,this.m=new Ss,this.G=new Fp(this,this.m),this.F=new il(this.G),this.isResume=!1,this.N=Vi,this.ca=new rm,window.addEventListener("error",this.ya),s=window.zoneless,this.j=new qo(this.u,this.G),this.O=this.j.j.bind(this.j),this.W=this.na.bind(this),this.C=new to(this.u,s),zr&&(this.C.l.push(this.da),Jl(this.C)),this.ga=this.oa.bind(this),Hn(this.G),function Oc(s){var M,B,q;if(tr.sendNonEssentialMetricEvents){var Se=performance.getEntriesByName("GfnJsInitStart")[0];const be=performance.getEntriesByName("platformBegin")[0],Je=performance.getEntriesByName("GfnRBegin")[0],_t=performance.getEntriesByType("navigation");Se=Math.round(null!==(M=Se?.startTime)&&void 0!==M?M:-1),M=Math.round(null!==(B=be?.startTime)&&void 0!==B?B:-1),ya(s.G,"PerformanceTiming","application timings",Se,M,Math.round(null!==(q=Je?.startTime)&&void 0!==q?q:-1),M-Se),_t.length?(B=_t[_t.length-1],ya(s.G,"PerformanceTiming","load timings",Math.round(B.loadEventStart),Math.round(B.loadEventEnd),Math.round(B.domContentLoadedEventStart),Math.round(B.domContentLoadedEventEnd))):ya(s.G,"PerformanceTiming","navigation timings unsupported",0,0,0,0)}}(this),function cm(s){if(navigator.mediaCapabilities){var M=performance.now();Nc("h264").then(function(){var B=n(function*(q){if(q){q=Nc("h264; profile-level-id=640033",2560,1440,60);var Se=Nc("h264; profile-level-id=64e033",2560,1440,60);q=Ld(yield q),Se=Ld(yield Se);const _t=performance.now()-M;var be=ld(),Je=Nc("h264",1920,1080,120);be=Ld(yield be),Je=Ld(yield Je);const Yt=yield kd(Cu),$t=yield ru();g.d("{9d1820c}","{1efbc27}",Yt,$t),ya(s.G,"DisplayCaps","Is120FpsSupported: "+$t,Yt,0,0,0),ya(s.G,"MediaCapabilities","codec 5.1: "+q+" 5.1 constrained: "+Se+" AV1: "+be,_t,Je,q|Se,Math.round(window.screen.height))}else ya(s.G,"MediaCapabilities","webrtc unsupported",performance.now()-M,-1,-1,-1)});return function(q){return B.apply(this,arguments)}}())}else ya(s.G,"MediaCapabilities","API unsupported",-1,-1,-1,-1)}(this),tr.sendNonEssentialMetricEvents&&ya(this.G,"PlatformDetailsExecutionTime","",this.u.totalTime,0,0,0),sd.registerCallback(M=>{var B;null===(B=this.g)||void 0===B||B.setNetworkType(M)}),"VISIONPRO"===this.u.deviceModel&&(Yl=!0,Ml())}qa(s){var M;return g.e("{9d1820c}","{8516485}",s.filename,s.lineno,s.colno),this.G.za(s.error,s.error&&s.error.message?s.error.message:s.message,s.filename,s.lineno,s.colno,!1),(!(null!==(M=tr.terminateUnhandledException)&&void 0!==M)||M)&&Dh(this,3237093392),!1}ra(){var s,M;this.fa||(this.fa=!0,Dh(this,(null!==(s=this.S)&&void 0!==s?s:null!==(M=this.D)&&void 0!==M&&M.H)?15867912:15867905))}xa(){g.i("{9d1820c}","{a9a135f}"),Og(this.m)}Da(){var s;if(g.i("{9d1820c}","{478a408}",document.visibilityState,!!this.D),this.D){var M=this.v.ae[0].K,B=N(this.u,!1,15,4)&&as,q=N(this.u,!1,15,4)&&this.l&&rl;"hidden"===document.visibilityState?(this.L=performance.now(),B&&(g.i("{9d1820c}","{cbd3b6e}"),M.muted=!0),Rh(this)):"visible"===document.visibilityState&&(this.o+=performance.now()-this.L,B&&(g.i("{9d1820c}","{05deefa}"),M.muted=!1),q?(M=null!==(s=tr.userTerminatedMicRecorderThreshold)&&void 0!==s?s:2e3,this.L-this.j.O<M?(g.i("{9d1820c}","{862bd20}"),this.j.J=!0,this.setMicRecordingEnabled(!0)):this.l=!1):N(this.u,!1,15,4)&&!this.j.o&&Xc(this.j)&&this.j.F&&tu(this.j,"visibilityChange"))}}wa(s){g.d("{9d1820c}","{972bb72}",JSON.stringify(s)),ad(this.G,s)}ta(s){this.emit("ActiveSessionsResult",s)}ua(s){this.emit("ProgressUpdate",s)}va(s){this.emit("SessionUpdate",s)}initialize(s,M=Vi){var B,q,Se,be,Je,_t,Yt,$t,Sn,In,ci,Si,er,fi;if(g.i("{9d1820c}","{2569364}","0.0.1548"),g.d("{9d1820c}","{e85ad66}",navigator.userAgent),!s)return g.e("{9d1820c}","{a98b177}"),!1;Object.assign(this.h,s),null===(B=this.g)||void 0===B||B.uninitialize(),!this.h.serverAddress||F(this.h.serverAddress)?(g.d("{9d1820c}","{e2d9a04}"),this.g=new Di):this.g=new yi(this.u,!0),s=this.g,g.d("{9d1820c}","{3c652b7}"),Ah(this),s.addListener("TelemetryEvent",this.wa.bind(this)),s.addListener("Log",this.$.bind(this)),s.addListener("ActiveSessionsResult",this.ta.bind(this)),s.addListener("ProgressUpdate",this.ua.bind(this)),s.addListener("SessionUpdate",this.va.bind(this)),this.h.clientHeaders=null!==($t=this.h.clientHeaders)&&void 0!==$t?$t:new Map,(B="NATIVE"!==($t=vl||this.h.clientType||"BROWSER"))&&this.h.clientHeaders.set("nv-browser-version",this.u.browserFullVer);var Ri=this.h.clientHeaders;for(var[ur]of Ri){const vr=ur;Ts&&"nv-device-os"===vr.toLowerCase()&&Ri.set(vr,Ts),ks&&"nv-device-type"===vr.toLowerCase()&&Ri.set(vr,ks),aa.deviceModel&&"nv-device-model"===vr.toLowerCase()&&Ri.set(vr,aa.deviceModel),la&&"nv-client-streamer"===vr.toLowerCase()&&Ri.set(vr,la),Oa&&"nv-client-id"===vr.toLowerCase()&&Ri.set(vr,Oa)}return ur={deviceOs:null!==(Sn=Ts)&&void 0!==Sn?Sn:this.u.deviceOS,deviceOsVer:this.u.osVer,deviceType:null!==(In=ks)&&void 0!==In?In:this.u.deviceType,deviceModel:null!==(ci=aa.deviceModel)&&void 0!==ci?ci:this.u.deviceModel,clientIdentification:null!==(Si=this.h.clientIdentification)&&void 0!==Si?Si:"GFN-PC",clientVersion:null!==(er=this.h.clientVersion)&&void 0!==er?er:"28.0",clientAppVersion:this.h.clientAppVersion,clientStreamer:null!==(fi=la)&&void 0!==fi?fi:"WEBRTC",clientId:Oa||this.h.clientId,browserType:B?this.u.browser.toUpperCase():void 0,clientPlatformName:Ws||"browser",clientType:$t,deviceHashId:this.h.deviceHashId,serverAddress:this.h.serverAddress,authTokenCallback:this.h.authTokenCallback,clientHeaders:this.h.clientHeaders},s.initialize(ur),s.setNetworkType(sd.getCurrentNetworkType()),this.N={...M},null!==(q=(Je=this.N).windowedStreaming)&&void 0!==q||(Je.windowedStreaming=this.h.windowedStreaming),null!==(Se=(_t=this.N).windowedStreaming)&&void 0!==Se||(_t.windowedStreaming=2===M.cursorType),null!==(be=(Yt=this.N).cursorType)&&void 0!==be||(Yt.cursorType=this.h.cursorType),this.G.clientShutDownCallback=this.h.clientShutDownCallback,!0}downloadAudio(){this.ca.downloadAudio()}updateEventDataElements(s){var M;g.i("{9d1820c}","{4008dc4}",JSON.stringify(s)),this.m.updateEventDataElements(s),s.telemetryEventIds&&(null===(M=this.g)||void 0===M||M.updateTelemetryEventIds(s.telemetryEventIds)),this.D&&!this.P&&Rh(this)}getActiveSessions(){this.g?this.g.getAllActiveSessions():this.emit("ActiveSessionsResult",{sessionList:[],error:wu("ActiveSessions")})}startSession(s){dm(this,!1),(s=fp(this,s))&&pp(this,0,s)}updateAdState(s){var M;return this.g?null===(M=this.g)||void 0===M?void 0:M.updateAdState(s):3237093380}getSession(s){this.g?this.g.getSession(s,!1).then(M=>{var B,q;let Se={sessionId:null!==(B=M?.sessionId)&&void 0!==B?B:"",appId:M?.appId,subSessionId:null!==(q=M?.subSessionId)&&void 0!==q?q:"",state:M?.state,status:M?.state};this.emit("GetSessionResult",Se)}).catch(M=>{var B,q;let Se={sessionId:s,subSessionId:null!==(q=null===(B=this.g)||void 0===B?void 0:B.getSubSessionId())&&void 0!==q?q:"",error:M};this.emit("GetSessionResult",Se)}):this.emit("GetSessionResult",{sessionId:"",subSessionId:"",error:wu("GetSession")})}resume(){this.resumeSession(this.v.la,this.g.getSessionId())}resumeSession(s,M){dm(this,!0),(s=fp(this,s))&&pp(this,2,s,M)}stopSession(s,M){var B,q,Se,be,Je,_t,Yt;this.g?(void 0!==M&&g.i("{9d1820c}","{ae7f61b}",I(M)),s===this.g.getSessionId()||void 0===s?(15867910===M?this.aa=!0:this.Z=!1,md(this.j),this.framesDecoded=null!==(q=null===(B=this.D)||void 0===B?void 0:wh(B))&&void 0!==q?q:0,eh(this.F),B=xu(this,{sessionId:null!==(Se=this.g.getSessionId())&&void 0!==Se?Se:"",subSessionId:null!==(be=this.g.getSubSessionId())&&void 0!==be?be:"",error:M?{code:M}:void 0,zoneName:null!==(Je=this.g.getZoneName())&&void 0!==Je?Je:"",zoneAddress:this.g.getZoneAddress()||this.h.serverAddress,gpuType:null!==(_t=this.g.getGpuType())&&void 0!==_t?_t:"",isResume:this.isResume},performance.now()-this.startTime),s=null!==(Yt=this.g.getSessionId())&&void 0!==Yt?Yt:"",this.D?(this.M=!1,sh(this),this.D.H&&rh(this,B),hu(this,M??(this.D.H?15859712:15867905)),15867910===M?(g.d("{9d1820c}","{12bc45e}",s),Na(this,s)):this.sendDeleteRequest(s,this.g)):this.H?Na(this,s):this.cancelSessionSetup()):s&&this.sendDeleteRequest(s,this.g)):this.emit("SessionStopResult",{sessionId:"",subSessionId:"",error:wu("StopSession")})}pauseSession(s){this.stopSession(s,15867910)}startStreaming(s){var M,B,q,Se;const be={sessionId:null!==(B=null===(M=this.g)||void 0===M?void 0:M.getSessionId())&&void 0!==B?B:"",subSessionId:null!==(Se=null===(q=this.g)||void 0===q?void 0:q.getSubSessionId())&&void 0!==Se?Se:"",progressState:"StartingStreamer",queuePosition:0,eta:0,ads:[]};this.emit("SessionUpdate",be),this.emit("ProgressUpdate",{...be,state:be.progressState}),M=F(this.h.serverAddress)?"":this.h.serverAddress.split(".")[0];const{K:Je}=s.ae[0];if(N(this.u,!1,15)){Je.ragnarokOldPlay||(Je.ragnarokOldPlay=Je.play);const _t=Jr&&N(this.u,!0,15,1);Je.play=()=>{if(kr&&(g.i("{9d1820c}","{4a5b360}"),Aa(this),function Vc(s){if(kr)if(window.ios15AudioContext)g.i("{9d1820c}","{e2aba64}");else{var M=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive",sampleRate:48e3});M.onstatechange=()=>{"suspended"===M.state&&(M.resume(),s.j.j(),g.i("{9d1820c}","{faee684}"))},window.ios15AudioContext=M,window.ios15AudioStream=M.createMediaStreamDestination(),navigator.mediaDevices&&s.O&&navigator.mediaDevices.addEventListener("devicechange",s.O),g.i("{9d1820c}","{b5f7b9b}")}}(this),this.j.j()),_t){g.i("{9d1820c}","{8f5cd77}");const Yt=Je.srcObject;Je.srcObject=null,Je.srcObject=Yt}return Je.ragnarokOldPlay.apply(Je)}}Sa&&(N(this.u,!0,15,0)||N(this.u,!0,15,1))&&(Je.hasAttribute("data-shouldautoplay")?Je.setAttribute("autoplay",""):(Je.setAttribute("data-shouldautoplay",""),Je.removeAttribute("autoplay"))),this.D=new Sg(this,Je,void 0,this.j,this.N,this.da,this.C,this.G,this.u,this.H,s.la.streamParams[0],this.ca,this.h.textInputElement,this.h.clientAppVersion,this.isResume,M,void 0,void 0,s.la.signalingUrlQueryParameters),this.D.start(),s.la.keyboardLayout&&this.D.setKeyboardLayout(s.la.keyboardLayout),function jg(s){return s.clientShutDownCallback?(g.d("{9838627}","{c7dcc4e}"),function hp(s){return s.l.then(()=>th(s.j,"exit-events")).then(M=>{g.i("{f7c1592}","{d938300}",M.length);let B=[];if(0<M.length)for(const q of M)q.eventPayload&&B.push(q.eventPayload);return B}).catch(M=>(ih(s,M,"getCachedExitEvents",!0),Promise.reject()))}(s.j).then(M=>{for(const B of M)Np(s,B);du(s.j)}).catch(()=>{g.d("{9838627}","{41cf828}")})):(g.d("{9838627}","{77df598}"),function Qm(s){return s.l.then(()=>th(s.j,"exit-events")).then(M=>{if(g.i("{f7c1592}","{ca568ff}",M.length),0<M.length){for(const B of M)B.eventPayload&&bg(am(s,B.eventPayload));du(s)}}).catch(M=>{ih(s,M,"sendCachedExitEvent",!0)})}(s.j))}(this.G).then(()=>{Rh(this)}).catch(()=>{g.e("{9d1820c}","{c761bfd}")})}Gc(s,M){var B,q,Se,be,Je,_t,Yt;if(s.error){const $t=Mg(this.F,s.error.code);$t&&(s.error.code=Yo(s.error.code,this.u)),xg(this,null===(B=s.error)||void 0===B?void 0:B.code).then(Sn=>{var In,ci,Si;this.framesDecoded=null!==(ci=null===(In=this.D)||void 0===In?void 0:wh(In))&&void 0!==ci?ci:0,s.zoneAddress||(s.zoneAddress=this.h.serverAddress),s.error&&(s.error.code=Sn.errorCode),In=void 0,M||(In=xu(this,s,0,Sn.connectivity,$t),this.S=null===(Si=s.error)||void 0===Si?void 0:Si.code),Lh(this,s,!0,In)})}else(function kp(s,M,B,q,Se,be,Je,_t,Yt,$t){ad(s,{name:(M=new Qc({zoneAddress:Se,networkSessionId:$t,sessionId:M,subSessionId:B,resumeType:Es(q),overrideConfigType:Bo.type,overrideConfigVersion:Bo.version,result:Je,codec:Vo(_t),ipVersion:"UNKNOWN",launchDuration:Math.round(be),networkType:de(sd.getCurrentNetworkType()),streamingProfileGuid:up(s.j),systemInfoGuid:yg(s.j),cmsId:Yt})).name,gdprLevel:M.gdprLevel,parameters:M.parameters,ts:M.ts,clientConfig:Zc})})(this.G,s.sessionId,s.subSessionId,this.isResume,s.zoneAddress||this.h.serverAddress,Math.round(performance.now()-this.startTime),I(15859712),null!==(Se=null===(q=this.D)||void 0===q?void 0:qu(q))&&void 0!==Se?Se:"UNKNOWN",this.v?String(null===(be=this.v)||void 0===be?void 0:be.la.appId):"",null!==(_t=null===(Je=this.v)||void 0===Je?void 0:Je.la.networkSessionId)&&void 0!==_t?_t:""),this.startTime=performance.now(),"hidden"===document.visibilityState&&(this.L=this.startTime),this.o=0,this.isResume&&this.l&&this.setMicRecordingEnabled(!0),Xl(this,s),this.Z&&(null===(Yt=this.D)||void 0===Yt||Yt.toggleUserInput(!0,this.pa)),R(this.u)&&document.addEventListener("SystemIdle",this.ga)}Cf(s){var M,B,q;md(this.j),g.d("{9d1820c}","{a94b484}");let Se=Mg(this.F,s.error.code);Se&&(s.error.code=Yo(s.error.code,this.u)),this.framesDecoded=null!==(B=null===(M=this.D)||void 0===M?void 0:wh(M))&&void 0!==B?B:0,s.zoneAddress||(s.zoneAddress=this.h.serverAddress),xg(this,null===(q=s.error)||void 0===q?void 0:q.code).then(be=>{var Je;s.error.code=be.errorCode,be=xu(this,s,performance.now()-this.startTime,be.connectivity,Se),this.S=null===(Je=s.error)||void 0===Je?void 0:Je.code,ya(this.G,"HotPlug","",0,this.R,0,0),this.R=0,Lh(this,s,!1,be)})}Df(){oh(this)}sendDeleteRequest(s,M){M.sendDeleteRequest(s).then(()=>{g.d("{9d1820c}","{fee1eea}",s),Na(this,s)},B=>{g.e("{9d1820c}","{50e2a6e}",s),Na(this,s,B)})}isMicSupported(){return bc}setMicRecordingEnabled(s){g.i("{9d1820c}","{f5b2f30}",s),s?(this.l=!0,Nu(this.j)):(this.l=!1,vu(this.j))}getMicState(){!function Vg(s){!1!==Ia&&(s.v||3==s.h||2==s.h||6==s.h||7==s.h?Ra(s,s.h):yc().then(M=>{0!==M&&Ra(s,M)}))}(this.j)}shouldDefaultEnableMic(){return kc(this.u)}sendCustomMessage(s){var M;null===(M=this.D)||void 0===M||M.sendCustomMessage(s)}toggleUserInput(s,M){var B;null===(B=this.D)||void 0===B||B.toggleUserInput(s,M),this.Z=s,this.pa=M}toggleRsdmm(s){ht(this.C,s)}getVirtualGamepadHandler(){var s;return null===(s=this.D)||void 0===s?void 0:s.getVirtualGamepadHandler()}setAuthInfo(s){var M;null===(M=this.g)||void 0===M||M.setAuthInfo(s)}sendTextInput(s){var M;null===(M=this.D)||void 0===M||M.sendTextInput(s)}setVirtualKeyboardState(s){var M;null===(M=this.D)||void 0===M||M.setVirtualKeyboardState(s)}setVideoTransforms(s,M,B){var q;null===(q=this.D)||void 0===q||q.setVideoTransforms(s,M,B)}toggleOnScreenStats(){var s;qs&&(null===(s=this.D)||void 0===s||s.toggleOnScreenStats())}toggleStutterIndicator(){var s;null===(s=this.D)||void 0===s||s.toggleStutterIndicator()}setKeyboardLayout(s){var M;g.i("{9d1820c}","{10717a6}",s),null===(M=this.D)||void 0===M||M.setKeyboardLayout(s)}sendKeyEvent(s){var M;null===(M=this.D)||void 0===M||M.sendKeyEvent(s)}setStreamingMaxBitrate(s,M=0){var B;null===(B=this.D)||void 0===B||B.setStreamingMaxBitrate(M,s)}setDrcDfcState(s,M=0){var B;null===(B=this.D)||void 0===B||B.setDrcDfcState(M,s?3:0)}oa(s){var M;s.detail.idle&&(null===(M=this.D)||void 0===M||sp(M,2,60),this.T=window.setTimeout(()=>{var B;null===(B=this.D)||void 0===B||Dl(B,15867913)},6e4))}na(){iu(this.j,this.R),this.R++}cancelSessionSetup(){!this.D&&this.g&&this.g.cancelSessionSetup()}},window.Ragnarok.ChooseStreamingSettings=function(s=0,M,B){return Gn(s,M,bi(B))},window.Ragnarok.ChooseStreamingResolution=function(s=0,M){return M=M?.map(B=>({resolution:B,frameRate:60})),Gn(s,M,bi()).resolution},window.Ragnarok.InitializeUtils=function(){for(const s of Vs)s()},window.Ragnarok.GetSupportedAudioChannelCount=Lt,window.Ragnarok.GetDeviceCapabilities=Bp,window.Ragnarok.getSupportedCodecs=Hp,window.Ragnarok.VirtualButton={A:4096,B:8192,X:16384,Y:32768,LB:256,RB:512,LT:255,RT:65280,BACK:32,START:16,STICK_LEFT:64,STICK_RIGHT:128,DPAD_UP:1,DPAD_DOWN:2,DPAD_LEFT:4,DPAD_RIGHT:8},window.Ragnarok.VirtualGamepadHandler=Gl,window.Ragnarok.ConfigureRagnarokSettings=_c,window.Ragnarok.CHANGELIST="master-16521591",window.Ragnarok.AuthType={NONE:-1,JARVIS:0,JWT_GFN:1,JWT_PARTNER:2},window.Ragnarok.performHttpRequest=z,window.Ragnarok.AddPlatformTelemetry=function(s){Hn(s)},window.Ragnarok.IsFeatureSupported=Up,window.Ragnarok.CalculateMaxBitrateKbps=function(s,M,B){return rg(s,M,B)[0]},window.Ragnarok.CalculateDataUsage=function(s,M){return Rd(s,M)},window.Ragnarok.LogImpl=_p,window.Ragnarok.EVENTS={SESSION_START_RESULT:"SessionStartResult",SESSION_STOP_RESULT:"SessionStopResult",ACTIVE_SESSIONS_RESULT:"ActiveSessionsResult",PROGRESS_UPDATE:"ProgressUpdate",SESSION_UPDATE:"SessionUpdate",STREAM_STOPPED:"StreamStopped",STREAMING_EVENT:"StreamingEvent",GETSESSIONRESULT:"GetSessionResult",GET_SESSION_RESULT:"GetSessionResult",LOG_EVENT:"Log",STREAMING_QUALITY:"StreamingQuality",MIC_CAPTURE:"MicCapture",CUSTOM_MESSAGE:"CustomMessage",TEXT_COMPOSITION:"TextComposition",STREAM_STATS_UPDATE:"StreamStatsUpdate",TELEMETRY_EVENT:"TelemetryEvent"},window.Ragnarok.HotkeyModifier={None:0,Ctrl:1,Alt:2,Meta:4,Shift:8,Default:128},window.Ragnarok.defaultInputConfigFlags=Vi,window.Ragnarok.StreamingProfilePreset={BALANCED:0,DATASAVER:1,COMPETITIVE:2},window.Ragnarok.TrackType=zi,window.Ragnarok.STREAMING_STATE={RECONNECTING:"reconnecting",RECONNECTED:"reconnected"},window.Ragnarok.RNotificationCode=Ki,window.Ragnarok.ScErrorCode=Ya,window.Ragnarok.configureSessionControlSettings=Be,window.Ragnarok.DeviceType={DESKTOP:"DESKTOP",LAPTOP:"LAPTOP",TV:"TV",PHONE:"PHONE",TABLET:"TABLET",CONSOLE:"CONSOLE"},window.Ragnarok.DeviceOS={WINDOWS:"WINDOWS",MACOS:"MACOS",SHIELD:"SHIELD",ANDROID:"ANDROID",IOS:"IOS",IPADOS:"IPADOS",CHROMEOS:"CHROMEOS",LINUX:"LINUX",TIZEN:"TIZEN",WEBOS:"WEBOS",TVOS:"TVOS",XBOX:"XBOX",STEAMOS:"STEAMOS",CCOS:"CCOS"},window.Ragnarok.NetworkType={OTHER:"OTHER",ETHERNET:"ETHERNET",UNKNOWN:"UNKNOWN",WIFI:"WIFI",WIFI_2_4:"WIFI_2_4",WIFI_5_0:"WIFI_5_0",MOBILE:"MOBILE",MOBILE_2G:"MOBILE_2G",MOBILE_3G:"MOBILE_3G",MOBILE_4G:"MOBILE_4G",MOBILE_5G:"MOBILE_5G",WIMAX:"WIMAX",BLUETOOTH:"BLUETOOTH"},window.Ragnarok.registerLogCallback=function(s){g.setLogCallback(s)},window.Ragnarok.LogLevel=Ba,window.Ragnarok.createSessionControl=function(s){const M=new Ua;if(dr(M,s))return M;throw Error("Session Control initialization failure.")},window.Ragnarok.SdrHdrMode={SDR:0,HDR:1,EDR:2},window.Ragnarok.Usage={UNKNOWN:0,CONTROL:1,VIDEO:2,AUDIO:3,INPUT:4,CUSTOM:5,USB:6,RTSP:7,GAMESTREAM_CONTROL:8,GAMESTREAM_SECURE_CONTROL:9,SESSION_CONTROL:10,NETWORK_TEST_CONTROL:11,RTSPRU:12,AUDIO_INPUT:13,SIGNALING:14,MEDIA:15,RTSPS:16,BUNDLE:17},window.Ragnarok.Protocol={UNKNOWN:0,TCP:1,UDP:2},window.Ragnarok.AppLevelProtocol={UNKNOWN:0,RTSP:1,HTTP:2,RTSPRU:3,SOCKET:4,HTTPS:5,RTSPS:6},window.Ragnarok.AdState={UNKNOWN:0,NOT_STARTED:1,STARTED:2,PAUSED:3,RESUMED:4,FINISHED:5,CANCELED:6},window.Ragnarok.AdAction={UNKNOWN:0,START:1,PAUSE:2,RESUME:3,FINISH:4,CANCEL:5},window.Ragnarok.BitDepth={BIT_DEPTH_8:0,BIT_DEPTH_10:1},window.Ragnarok.ClientType={BROWSER:"BROWSER",GFNSDK:"GFNSDK",NATIVE:"NATIVE"},window.Ragnarok.SessionState={INITIALIZING:"initializing",READY_FOR_CONNECTION:"ready_for_connection",STREAMING:"streaming",PAUSED:"paused",RESUMING:"resuming",FINISHED:"finished",UNKNOWN:"unknown"},window.Ragnarok.SessionProgressState={CONNECTING:"Connecting",IN_QUEUE:"InQueue",CONFIGURING:"Configuring",PREVIOUS_SESSION_CLEANUP:"PreviousSessionCleanup",STARTING_STREAMER:"StartingStreamer"},window.Ragnarok.AppLaunchMode={Default:0,GamepadFriendly:1,TouchFriendly:2},window.Ragnarok.updateSessionParameters=function(s,M){var B;M=JSON.parse(M),s.monitorSettings=null!==(B=M.clientRequestMonitorSettings)&&void 0!==B?B:[],s.streamingFeatures=M.requestedStreamingFeatures},window.Ragnarok.isCancelCode=Tr,window.Ragnarok.isResumableSessionState=ro,window.Ragnarok.getResumableSession=function(s,M){for(const B of s)if(B.appId===M&&ro(B.state))return B},window.Ragnarok.SessionControlTelemetry=no,window.Ragnarok.GsErrorCode=Ya,window.Ragnarok.GridServerSettings=Qe,window.Ragnarok.ConfigureGridServerSettings=function(s){Be(s)},window.Ragnarok.BrowserName={UNKNOWN:"Unknown",CHROME:"Chrome",SAFARI:"Safari",YANDEX:"Yandex",EDGE:"Edge",EDGE_LEGACY:"Edge_Legacy",FIREFOX:"Firefox",SAMSUNG:"Samsung",CHROMIUM:"Chromium",OPERA:"Opera",BRAVE:"Brave",SILK:"Silk",REACT:"ReactNative"},window.Ragnarok.PlatformName={UNKNOWN:"Unknown",CHROME_OS:"ChromeOS",WINDOWS:"Windows",MAC:"macOS",LINUX:"Linux",IOS:"iOS",IPADOS:"iPadOS",WEBOS:"WebOS",TIZEN:"Tizen",ANDROID:"Android",FIRETV:"FireTV",XBOX:"Xbox",FREEBSD:"FreeBSD",STEAMOS:"SteamOS",CCOS:"ccOS"},window.Ragnarok.getPlatformDetails=ji,window.Ragnarok.DeviceModel={STEAMDECK:"STEAMDECK",XBOX_ONE:"XBOXONE",XBOX_SERIES:"XBOXSERIES",VISION_PRO:"VISIONPRO"},window.Ragnarok.DeviceVendor={APPLE:"APPLE",LG:"LG",SAMSUNG:"SAMSUNG",TIZEN_LICENSED:"TIZENLICENSED",MICROSOFT:"MICROSOFT",AMAZON:"AMAZON",HKMC:"HKMC",SONY:"SONY",PHILIPS:"PHILIPS",GOOGLE:"GOOGLE",NVIDIA:"NVIDIA",XIAOMI:"XIAOMI",TVISION:"TVISION",UNKNOWN:""},window.Ragnarok.CLIENT_VERSION="28.0",window.Ragnarok.CLIENT_IDENTIFICATION="GFN-PC",window.Ragnarok.SESSIONMODIFY_ACTION={UNKNOWN:0,PAUSE:1,RESUME:2,Pg:3,Ng:4,Mg:5,Lg:6,Qg:7},window.Ragnarok.AudioFormat={UNKNOWN:0,STEREO:1,UP_TO_5_1_SURROUND_PCM:2,UP_TO_7_1_SURROUND_PCM:3},window.Ragnarok.ClientStreamer={CLASSIC:"NVIDIA-CLASSIC",WEBRTC:"WEBRTC"},window.Ragnarok.GS_EVENTS={ACTIVE_SESSIONS_RESULT:"ActiveSessionsResult",PROGRESS_UPDATE:"ProgressUpdate",SESSION_UPDATE:"SessionUpdate",TELEMETRY_EVENT:"TelemetryEvent",LOG_EVENT:"Log"},window.Ragnarok.GridServer=yi,window.Ragnarok.PassThruServer=Di,window.Ragnarok.VsyncType={OFF:0,ON:1,ADAPTIVE:2},window.Ragnarok.getDeviceCapabilities=Bp,window.Ragnarok.serializeDeviceCapabilities=function(s){return JSON.stringify(s)},window.Ragnarok.PayloadOSType={WINDOWS:"Windows",MACOS:"MacOS",SHIELD:"Shield",ANDROID:"Android",IOS:"iOS",IPADOS:"iPadOS",CHROMEOS:"ChromeOS",LINUX:"Linux",TIZEN:"Tizen",WEBOS:"WebOS",TVOS:"tvOS",XBOX:"Xbox",STEAMOS:"SteamOS",UNDEFINED:"undefined"},window.Ragnarok.PayloadBrowserType={CHROME:"Chrome",SAFARI:"Safari",YANDEX:"Yandex",EDGE:"Edge",EDGE_LEGACY:"Edge_legacy",FIREFOX:"Firefox",SAMSUNG:"Samsung",CHROMIUM:"Chromium",OPERA:"Opera",BRAVE:"Brave",SILK:"Silk",UNDEFINED:"undefined"},window.Ragnarok.PayloadDeviceType={DESKTOP:"Desktop",LAPTOP:"Laptop",TV:"TV",PHONE:"Phone",TABLET:"Tablet",SERVER:"Server",CONSOLE:"Console",UNDEFINED:"undefined"},window.Ragnarok.ClientHeaderOSType={WINDOWS:"WINDOWS",MACOS:"MACOS",SHIELD:"SHIELD",ANDROID:"ANDROID",IOS:"IOS",IPADOS:"IPADOS",CHROMEOS:"CHROMEOS",LINUX:"LINUX",TIZEN:"TIZEN",WEBOS:"WEBOS",XBOX:"XBOX",STEAMOS:"STEAMOS",UNKNOWN:"UNKNOWN"},window.Ragnarok.ClientHeaderBrowserType={CHROME:"CHROME",SAFARI:"SAFARI",YANDEX:"YANDEX",EDGE:"EDGE",EDGE_LEGACY:"EDGE_LEGACY",FIREFOX:"FIREFOX",SAMSUNG:"SAMSUNG",CHROMIUM:"CHROMIUM",OPERA:"OPERA",BRAVE:"BRAVE",SILK:"SILK",UNKNOWN:"UNKNOWN"},window.Ragnarok.ClientHeaderDeviceType={DESKTOP:"DESKTOP",LAPTOP:"LAPTOP",TV:"TV",PHONE:"PHONE",TABLET:"TABLET",CONSOLE:"CONSOLE",UNKNOWN:"UNKNOWN"},window.Ragnarok.translatePlatformDetailsForPayload=function(s){return mi?.h!=s&&(mi=new zn(s)),mi.m},window.Ragnarok.translatePlatformDetailsForClientHeader=function(s){return mi?.h!=s&&(mi=new zn(s)),mi.o},window.Ragnarok.getStreamerType=function(){return"WEBRTC"},window.Ragnarok.BrowserFeature={Streaming:0,MicCapture:1},window.Ragnarok.isFeatureSupported=Up,window.Ragnarok.shouldDefaultEnableMic=kc,window.Ragnarok.getRecommendedBitrate=rg,window.Ragnarok.getStreamStartParameters=function(s){const M={downstreamParams:[],signalConnectionInfo:{address:"",port:0},enableTouchInput:2===(s=JSON.parse(s)).appLaunchMode,sessionId:s.sessionId,subSessionId:s.subSessionId,audioTagId:"",zoneAddress:s.zoneAddress,statTelemetryInfo:{appId:s.appId,zoneName:s.zoneName,gpuType:s.gpuType},streamingFeatures:s.finalizedStreamingFeatures};for(const B of s.monitorSettings)M.downstreamParams.push({width:B.widthInPixels,height:B.heightInPixels,fps:B.framesPerSecond,videoTagId:"",sdrHdrMode:B.sdrHdrMode});for(const B of s.connectionInfo)switch(B.usage){case 14:M.signalConnectionInfo.address=B.ip,M.signalConnectionInfo.port=B.port,M.signalConnectionInfo.secure=5===B.appLevelProtocol;break;case 2:case 17:M.mediaConnectionInfo={address:B.ip,port:B.port}}return M},window.Ragnarok.estimateDataUsage=Rd,window.Ragnarok.NskTelemetry=sl,window.Ragnarok.createNskStreamClient=function(s,M,B){return new Lf(s,M,B)},window.Ragnarok.configureRagnarokSettings=_c,window.Ragnarok.getNetworkTypeDetector=function(){return sd},window.Ragnarok.RErrorCode={Success:15859712,AuthProviderError:3237085185,InvalidOperation:3237085186,NoNetwork:3237089281,NetworkError:3237089282,GetActiveSessionServerError:3237089283,ExceptionHappened:3237089284,AuthTokenNotUpdated:3237093377,SessionFinishedState:3237093378,ResponseParseFailure:3237093379,GridAppNotInitialized:3237093380,InvalidServerResponse:3237093381,PutOrPostInProgress:3237093382,GridServerNotInitialized:3237093383,DOMExceptionInGridServer:3237093384,InvalidAdStateTransition:3237093386,SessionServerErrorBegin:3237093632,RequestForbidden:3237093634,ServerInternalTimeout:3237093635,ServerInternalError:3237093636,ServerInvalidRequest:3237093637,ServerInvalidRequestVersion:3237093638,SessionListLimitExceeded:3237093639,InvalidRequestDataMalformed:3237093640,InvalidRequestDataMissing:3237093641,RequestLimitExceeded:3237093642,SessionLimitExceeded:3237093643,InvalidRequestVersionOutOfDate:3237093644,SessionEntitledTimeExceeded:3237093645,AuthFailure:3237093646,InvalidAuthenticationMalformed:3237093647,InvalidAuthenticationExpired:3237093648,InvalidAuthenticationNotFound:3237093649,EntitlementFailure:3237093650,InvalidAppIdNotAvailable:3237093651,InvalidAppIdNotFound:3237093652,InvalidSessionIdMalformed:3237093653,InvalidSessionIdNotFound:3237093654,EulaUnAccepted:3237093655,MaintenanceStatus:3237093656,ServiceUnAvailable:3237093657,SteamGuardRequired:3237093658,SteamLoginRequired:3237093659,SteamGuardInvalid:3237093660,SteamProfilePrivate:3237093661,InvalidCountryCode:3237093662,InvalidLanguageCode:3237093663,MissingCountryCode:3237093664,MissingLanguageCode:3237093665,SessionNotPaused:3237093666,EmailNotVerified:3237093667,InvalidAuthenticationUnsupportedProtocol:3237093668,InvalidAuthenticationUnknownToken:3237093669,InvalidAuthenticationCredentials:3237093670,SessionNotPlaying:3237093671,InvalidServiceResponse:3237093672,AppPatching:3237093673,GameNotFound:3237093674,NotEnoughCredits:3237093675,InvitationOnlyRegistration:3237093676,RegionNotSupportedForRegistration:3237093677,SessionTerminatedByAnotherClient:3237093678,DeviceIdAlreadyUsed:3237093679,ServiceNotExist:3237093680,SessionExpired:3237093681,SessionLimitPerDeviceReached:3237093682,ForwardingZoneOutOfCapacity:3237093683,RegionNotSupportedIndefinitely:3237093684,RegionBanned:3237093685,RegionOnHoldForFree:3237093686,RegionOnHoldForPaid:3237093687,AppMaintenanceStatus:3237093688,ResourcePoolNotConfigured:3237093689,InsufficientVmCapacity:3237093690,InsufficientRouteCapacity:3237093691,InsufficientScratchSpaceCapacity:3237093692,RequiredSeatInstanceTypeNotSupported:3237093693,ServerSessionQueueLengthExceeded:3237093694,RegionNotSupportedForStreaming:3237093695,SessionForwardRequestAllocationTimeExpired:3237093696,SessionForwardGameBinariesNotAvailable:3237093697,GameBinariesNotAvailableInRegion:3237093698,UekRetrievalFailed:3237093699,EntitlementFailureForResource:3237093700,SessionInQueueAbandoned:3237093701,MemberTerminated:3237093702,SessionRemovedFromQueueMaintenance:3237093703,ZoneMaintenanceStatus:3237093704,GuestModeCampaignDisabled:3237093705,RegionNotSupportedAnonymousAccess:3237093706,InstanceTypeNotSupportedInSingleRegion:3237093707,InvalidZoneForQueuedSession:3237093710,SessionWaitingAdsTimeExpired:3237093711,UserCancelledWatchingAds:3237093712,SessionServerErrorEnd:3237093887,StreamerErrorCategory:3237093888,StreamErrorGeneric:3237093889,StreamerSignInFailure:3237093890,StreamerHangingGetFailure:3237093891,StreamerNetworkError:3237093892,StreamerVideoPlayError:3237093893,StreamerIceConnectionFailed:3237093894,StreamerGetRemotePeerTimedOut:3237093895,StreamInputChannelError:3237093896,StreamCursorChannelError:3237093897,StreamControlChannelError:3237093898,StreamerReConnectionFailed:3237093899,StreamerNoVideoPacketsReceivedEver:3237093900,StreamerNoVideoFramesLossyNetwork:3237093901,StreamerSetSDPFailure:3237093902,StreamerNoLocalCandidates:3237093903,StreamerNoRemoteCandidates:3237093904,StreamerNoVideoTrack:3237093905,StreamerIceReConnectionFailed:3237093906,StreamerSignInTimeout:3237093907,StreamerSignInWorkerFailure:3237093908,StreamerNoTracksReceivedInSdp:3237093909,StreamerNvstSdpFailure:3237093910,StreamerNvstSdpParseFailure:3237093911,StreamerNoPeerInfo:3237093912,StreamerNoOffer:3237093913,StreamerNoAudioTrack:3237093914,StreamerInvalidRemoteConfigOverride:3237093915,StreamerInvalidServerOverride:3237093916,StreamerInvalidClientOverride:3237093917,StreamerConfigUpdateFailure:3237093918,StreamerInputChannelNotOpen:3237093919,StreamerCursorChannelNotOpen:3237093920,StreamerControlChannelNotOpen:3237093921,StreamerVideoAdapterInitTimeOut:3237093922,StreamerVideoFrameProviderInitTimeOut:3237093923,StreamerVideoEncoderInitTimeOut:3237093924,StreamerVideoSetupTimeOut:3237093925,StreamerNoStunResponsesReceived:3237093926,StreamerNoNominatedCandidatePairs:3237093927,StreamerNoSucceededCandidatePairs:3237093928,StreamGamepadChannelError:3237093929,StreamerGamepadChannelNotOpen:3237093936,StreamerNeedAudioElement:3237093937,SessionSetupCancelled:15867905,SessionSetupCancelledDuringQueuing:15867906,StreamerDataChannelClosing:15867907,SystemSleepDuringStreaming:15867908,SystemSleepDuringSessionSetup:15867909,PauseSession:15867910,DelayedSessionError:15867911,WebPageClosed:15867912,ClientDisconnectedUserIdle:15867913,UnhandledException:3237093392,NoInternetDuringSessionSetup:15868417,NoInternetDuringStreaming:15868418,StreamDisconnectedFromServer:15868672,ServerDisconnectedNoResponse:3237094145,ServerDisconnectedRemoteInputError:3237094146,ServerDisconnectedFrameGrabFailed:3237094147,ServerDisconnectedConfigUnAvailable:3237094148,ServerDisconnectedInvalidCommand:3237094149,ServerDisconnectedInvalidMouseState:3237094150,ServerDisconnectedNetworkError:3237094151,ServerDisconnectedGameLaunchFailed:3237094152,ServerDisconnectedVideoFirstFrameSendFailed:3237094153,ServerDisconnectedVideoNextFrameSendFailed:3237094154,ServerDisconnectedFrameGrabTimedOut:3237094155,ServerDisconnectedFrameEncodeTimedOut:3237094156,ServerDisconnectedFrameSendTimedOut:3237094157,ServerDisconnectedNetworkTimedOut:3237094158,ServerDisconnectedPeerRemovedByServer:3237094159,ServerDisconnectedUnknownError:3237094160,ServerDisconnectedPeerRemovedBeforeStream:3237094161,ServerDisconnectedIntended:15868704,ServerDisconnectedHotKey:15868705,ServerDisconnectedUserLoggedInDifferentAccount:15868706,ServerDisconnectedWindowedMode:15868707,ServerDisconnectedUserIdle:15868708,ServerDisconnectedUnAuthorizedProcessDetected:15868709,ServerDisconnectedMaliciousProcessDetected:15868710,ServerDisconnectedUnKnownProcessDetected:15868711,ServerDisconnectedMinerProcessDetected:15868712,ServerDisconnectedStreamingUnsupported:15868713,ServerDisconnectedAnotherClient:15868714,ServerDisconnectedCodeIntegrityViolation:15868715,ServerDisconnectedUnauthorizedActivityDetected:15868716,ServerDisconnectedGameNotOwnedByUser:15868717,ServerDisconnectedProtectedContent:15868718,ServerDisconnectedDisplayTopologyChanged:15868719,ServerDisconnectedAbruptly:15868688,ServerDisconnectedUnknownFromPm:15868736,ServerDisconnectedUserEntitledMinutesExceeded:15868737,ServerDisconnectedClientReconnectTimeLimitExceeded:15868738,ServerDisconnectedOperatorCommandedTermination:15868739,ServerDisconnectedConcurrentSessionLimitExceeded:15868740,ServerDisconnectedMaxSessionTimeLimitExceeded:15868741,ServerDisconnectedBifrostInitiatedSessionPause:15868742,ServerDisconnectedSystemCommandTermination:15868743,ServerDisconnectedMultipleLogin:15868744,ServerDisconnectedMaintenanceMode:15868745,ServerDisconnectedMultipleTab:15868752,InvalidVideoElement:3237094400,InvalidAudioElement:3237094401},window.Ragnarok.HidType={NONE:0,DS4:1,DS5:2},window.Ragnarok.InputType={None:0,Mouse:1,Keyboard:2,Gamepad:4,Touch:8,All:15},window.Ragnarok.VideoCodecType={H264:"H264",H265:"H265",AV1:"AV1",UNKNOWN:"UNKNOWN"},window.Ragnarok.MicState={UNINITIALIZED:0,PERMISSION_PENDING:1,PERMISSION_DENIED:2,STARTED:3,NO_SUITABLE_DEVICE:4,STOPPED:5,UNSUPPORTED:6,ERROR:7},window.Ragnarok.DynamicStreamingMode={NONE:0,DRC:1,DFC:2,ALL:3},window.Ragnarok.MediaTrackKind=zi,window.Ragnarok.StreamStopReason={CLIENT_DISCONNECTED:0,SERVER_DISCONNECTED:1,NETWORK_ERROR:2,ERROR:3},window.Ragnarok.StreamWarningType=Ki,window.Ragnarok.CursorType={SOFTWARE:0,HARDWARE:1,FREE:2},window.Ragnarok.StreamingState={NONE:0,STARTING_STREAM:1,STREAMING:2,STOPPING_STREAM:3,STOPPED:4}},134:
/*!******************************************************************!*\
!*** ./node_modules/rtcpeerconnection-shim/rtcpeerconnection.js ***!
\******************************************************************/(P,v,O)=>{"use strict";var S=O(
/*! sdp */
985);function r(T,A,L,x,V){var D=S.writeRtpDescription(T.kind,A);if(D+=S.writeIceParameters(T.iceGatherer.getLocalParameters()),D+=S.writeDtlsParameters(T.dtlsTransport.getLocalParameters(),"offer"===L?"actpass":V||"active"),D+="a=mid:"+T.mid+"\r\n",D+=T.rtpSender&&T.rtpReceiver?"a=sendrecv\r\n":T.rtpSender?"a=sendonly\r\n":T.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",T.rtpSender){var F=T.rtpSender._initialTrackId||T.rtpSender.track.id;T.rtpSender._initialTrackId=F;var I="msid:"+(x?x.id:"-")+" "+F+"\r\n";D+="a="+I,D+="a=ssrc:"+T.sendEncodingParameters[0].ssrc+" "+I,T.sendEncodingParameters[0].rtx&&(D+="a=ssrc:"+T.sendEncodingParameters[0].rtx.ssrc+" "+I,D+="a=ssrc-group:FID "+T.sendEncodingParameters[0].ssrc+" "+T.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return D+="a=ssrc:"+T.sendEncodingParameters[0].ssrc+" cname:"+S.localCName+"\r\n",T.rtpSender&&T.sendEncodingParameters[0].rtx&&(D+="a=ssrc:"+T.sendEncodingParameters[0].rtx.ssrc+" cname:"+S.localCName+"\r\n"),D}function a(T,A){var L={codecs:[],headerExtensions:[],fecMechanisms:[]},x=function(D,F){D=parseInt(D,10);for(var I=0;I<F.length;I++)if(F[I].payloadType===D||F[I].preferredPayloadType===D)return F[I]},V=function(D,F,I,k){var R=x(D.parameters.apt,I),G=x(F.parameters.apt,k);return R&&G&&R.name.toLowerCase()===G.name.toLowerCase()};return T.codecs.forEach(function(D){for(var F=0;F<A.codecs.length;F++){var I=A.codecs[F];if(D.name.toLowerCase()===I.name.toLowerCase()&&D.clockRate===I.clockRate){if("rtx"===D.name.toLowerCase()&&D.parameters&&I.parameters.apt&&!V(D,I,T.codecs,A.codecs))continue;(I=JSON.parse(JSON.stringify(I))).numChannels=Math.min(D.numChannels,I.numChannels),L.codecs.push(I),I.rtcpFeedback=I.rtcpFeedback.filter(function(k){for(var R=0;R<D.rtcpFeedback.length;R++)if(D.rtcpFeedback[R].type===k.type&&D.rtcpFeedback[R].parameter===k.parameter)return!0;return!1});break}}}),T.headerExtensions.forEach(function(D){for(var F=0;F<A.headerExtensions.length;F++){var I=A.headerExtensions[F];if(D.uri===I.uri){L.headerExtensions.push(I);break}}}),L}function h(T,A,L){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[A][T].indexOf(L)}function g(T,A){var L=T.getRemoteCandidates().find(function(x){return A.foundation===x.foundation&&A.ip===x.ip&&A.port===x.port&&A.priority===x.priority&&A.protocol===x.protocol&&A.type===x.type});return L||T.addRemoteCandidate(A),!L}function c(T,A){var L=new Error(A);return L.name=T,L.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[T],L}P.exports=function(T,A){function L(k,R){R.addTrack(k),R.dispatchEvent(new T.MediaStreamTrackEvent("addtrack",{track:k}))}function V(k,R,G,Y){var K=new Event("track");K.track=R,K.receiver=G,K.transceiver={receiver:G},K.streams=Y,T.setTimeout(function(){k._dispatchEvent("track",K)})}var D=function(k){var R=this,G=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(K){R[K]=G[K].bind(G)}),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",k=JSON.parse(JSON.stringify(k||{})),this.usingBundle="max-bundle"===k.bundlePolicy,"negotiate"===k.rtcpMuxPolicy)throw c("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(k.rtcpMuxPolicy||(k.rtcpMuxPolicy="require"),k.iceTransportPolicy){case"all":case"relay":break;default:k.iceTransportPolicy="all"}switch(k.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:k.bundlePolicy="balanced"}if(k.iceServers=function i(T,A){var L=!1;return(T=JSON.parse(JSON.stringify(T))).filter(function(x){if(x&&(x.urls||x.url)){var V=x.urls||x.url;x.url&&!x.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var D="string"==typeof V;return D&&(V=[V]),V=V.filter(function(F){return 0!==F.indexOf("turn:")||-1===F.indexOf("transport=udp")||-1!==F.indexOf("turn:[")||L?0===F.indexOf("stun:")&&A>=14393&&-1===F.indexOf("?transport=udp"):(L=!0,!0)}),delete x.url,x.urls=D?V[0]:V,!!V.length}})}(k.iceServers||[],A),this._iceGatherers=[],k.iceCandidatePoolSize)for(var Y=k.iceCandidatePoolSize;Y>0;Y--)this._iceGatherers.push(new T.RTCIceGatherer({iceServers:k.iceServers,gatherPolicy:k.iceTransportPolicy}));else k.iceCandidatePoolSize=0;this._config=k,this.transceivers=[],this._sdpSessionId=S.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(D.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(D.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),D.prototype.onicecandidate=null,D.prototype.onaddstream=null,D.prototype.ontrack=null,D.prototype.onremovestream=null,D.prototype.onsignalingstatechange=null,D.prototype.oniceconnectionstatechange=null,D.prototype.onconnectionstatechange=null,D.prototype.onicegatheringstatechange=null,D.prototype.onnegotiationneeded=null,D.prototype.ondatachannel=null,D.prototype._dispatchEvent=function(k,R){this._isClosed||(this.dispatchEvent(R),"function"==typeof this["on"+k]&&this["on"+k](R))},D.prototype._emitGatheringStateChange=function(){var k=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",k)},D.prototype.getConfiguration=function(){return this._config},D.prototype.getLocalStreams=function(){return this.localStreams},D.prototype.getRemoteStreams=function(){return this.remoteStreams},D.prototype._createTransceiver=function(k,R){var Y={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:k,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&this.transceivers.length>0)Y.iceTransport=this.transceivers[0].iceTransport,Y.dtlsTransport=this.transceivers[0].dtlsTransport;else{var K=this._createIceAndDtlsTransports();Y.iceTransport=K.iceTransport,Y.dtlsTransport=K.dtlsTransport}return R||this.transceivers.push(Y),Y},D.prototype.addTrack=function(k,R){if(this._isClosed)throw c("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");if(this.transceivers.find(function($){return $.track===k}))throw c("InvalidAccessError","Track already exists.");for(var Y,K=0;K<this.transceivers.length;K++)!this.transceivers[K].track&&this.transceivers[K].kind===k.kind&&(Y=this.transceivers[K]);return Y||(Y=this._createTransceiver(k.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(R)&&this.localStreams.push(R),Y.track=k,Y.stream=R,Y.rtpSender=new T.RTCRtpSender(k,Y.dtlsTransport),Y.rtpSender},D.prototype.addStream=function(k){var R=this;if(A>=15025)k.getTracks().forEach(function(Y){R.addTrack(Y,k)});else{var G=k.clone();k.getTracks().forEach(function(Y,K){var $=G.getTracks()[K];Y.addEventListener("enabled",function(ee){$.enabled=ee.enabled})}),G.getTracks().forEach(function(Y){R.addTrack(Y,G)})}},D.prototype.removeTrack=function(k){if(this._isClosed)throw c("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(k instanceof T.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var R=this.transceivers.find(function(K){return K.rtpSender===k});if(!R)throw c("InvalidAccessError","Sender was not created by this connection.");var G=R.stream;R.rtpSender.stop(),R.rtpSender=null,R.track=null,R.stream=null,-1===this.transceivers.map(function(K){return K.stream}).indexOf(G)&&this.localStreams.indexOf(G)>-1&&this.localStreams.splice(this.localStreams.indexOf(G),1),this._maybeFireNegotiationNeeded()},D.prototype.removeStream=function(k){var R=this;k.getTracks().forEach(function(G){var Y=R.getSenders().find(function(K){return K.track===G});Y&&R.removeTrack(Y)})},D.prototype.getSenders=function(){return this.transceivers.filter(function(k){return!!k.rtpSender}).map(function(k){return k.rtpSender})},D.prototype.getReceivers=function(){return this.transceivers.filter(function(k){return!!k.rtpReceiver}).map(function(k){return k.rtpReceiver})},D.prototype._createIceGatherer=function(k,R){var G=this;if(R&&k>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var Y=new T.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(Y,"state",{value:"new",writable:!0}),this.transceivers[k].bufferedCandidateEvents=[],this.transceivers[k].bufferCandidates=function(K){var $=!K.candidate||0===Object.keys(K.candidate).length;Y.state=$?"completed":"gathering",null!==G.transceivers[k].bufferedCandidateEvents&&G.transceivers[k].bufferedCandidateEvents.push(K)},Y.addEventListener("localcandidate",this.transceivers[k].bufferCandidates),Y},D.prototype._gather=function(k,R){var G=this,Y=this.transceivers[R].iceGatherer;if(!Y.onlocalcandidate){var K=this.transceivers[R].bufferedCandidateEvents;this.transceivers[R].bufferedCandidateEvents=null,Y.removeEventListener("localcandidate",this.transceivers[R].bufferCandidates),Y.onlocalcandidate=function($){if(!(G.usingBundle&&R>0)){var ee=new Event("icecandidate");ee.candidate={sdpMid:k,sdpMLineIndex:R};var J=$.candidate,z=!J||0===Object.keys(J).length;if(z)("new"===Y.state||"gathering"===Y.state)&&(Y.state="completed");else{"new"===Y.state&&(Y.state="gathering"),J.component=1,J.ufrag=Y.getLocalParameters().usernameFragment;var te=S.writeCandidate(J);ee.candidate=Object.assign(ee.candidate,S.parseCandidate(te)),ee.candidate.candidate=te,ee.candidate.toJSON=function(){return{candidate:ee.candidate.candidate,sdpMid:ee.candidate.sdpMid,sdpMLineIndex:ee.candidate.sdpMLineIndex,usernameFragment:ee.candidate.usernameFragment}}}var X=S.getMediaSections(G._localDescription.sdp);X[ee.candidate.sdpMLineIndex]+=z?"a=end-of-candidates\r\n":"a="+ee.candidate.candidate+"\r\n",G._localDescription.sdp=S.getDescription(G._localDescription.sdp)+X.join("");var re=G.transceivers.every(function(ge){return ge.iceGatherer&&"completed"===ge.iceGatherer.state});"gathering"!==G.iceGatheringState&&(G.iceGatheringState="gathering",G._emitGatheringStateChange()),z||G._dispatchEvent("icecandidate",ee),re&&(G._dispatchEvent("icecandidate",new Event("icecandidate")),G.iceGatheringState="complete",G._emitGatheringStateChange())}},T.setTimeout(function(){K.forEach(function($){Y.onlocalcandidate($)})},0)}},D.prototype._createIceAndDtlsTransports=function(){var k=this,R=new T.RTCIceTransport(null);R.onicestatechange=function(){k._updateIceConnectionState(),k._updateConnectionState()};var G=new T.RTCDtlsTransport(R);return G.ondtlsstatechange=function(){k._updateConnectionState()},G.onerror=function(){Object.defineProperty(G,"state",{value:"failed",writable:!0}),k._updateConnectionState()},{iceTransport:R,dtlsTransport:G}},D.prototype._disposeIceAndDtlsTransports=function(k){var R=this.transceivers[k].iceGatherer;R&&(delete R.onlocalcandidate,delete this.transceivers[k].iceGatherer);var G=this.transceivers[k].iceTransport;G&&(delete G.onicestatechange,delete this.transceivers[k].iceTransport);var Y=this.transceivers[k].dtlsTransport;Y&&(delete Y.ondtlsstatechange,delete Y.onerror,delete this.transceivers[k].dtlsTransport)},D.prototype._transceive=function(k,R,G){var Y=a(k.localCapabilities,k.remoteCapabilities);R&&k.rtpSender&&(Y.encodings=k.sendEncodingParameters,Y.rtcp={cname:S.localCName,compound:k.rtcpParameters.compound},k.recvEncodingParameters.length&&(Y.rtcp.ssrc=k.recvEncodingParameters[0].ssrc),k.rtpSender.send(Y)),G&&k.rtpReceiver&&Y.codecs.length>0&&("video"===k.kind&&k.recvEncodingParameters&&A<15019&&k.recvEncodingParameters.forEach(function(K){delete K.rtx}),Y.encodings=k.recvEncodingParameters.length?k.recvEncodingParameters:[{}],Y.rtcp={compound:k.rtcpParameters.compound},k.rtcpParameters.cname&&(Y.rtcp.cname=k.rtcpParameters.cname),k.sendEncodingParameters.length&&(Y.rtcp.ssrc=k.sendEncodingParameters[0].ssrc),k.rtpReceiver.receive(Y))},D.prototype.setLocalDescription=function(k){var G,Y,R=this;if(-1===["offer","answer"].indexOf(k.type))return Promise.reject(c("TypeError",'Unsupported type "'+k.type+'"'));if(!h("setLocalDescription",k.type,R.signalingState)||R._isClosed)return Promise.reject(c("InvalidStateError","Can not set local "+k.type+" in state "+R.signalingState));if("offer"===k.type)G=S.splitSections(k.sdp),Y=G.shift(),G.forEach(function($,ee){var J=S.parseRtpParameters($);R.transceivers[ee].localCapabilities=J}),R.transceivers.forEach(function($,ee){R._gather($.mid,ee)});else if("answer"===k.type){G=S.splitSections(R._remoteDescription.sdp),Y=G.shift();var K=S.matchPrefix(Y,"a=ice-lite").length>0;G.forEach(function($,ee){var J=R.transceivers[ee],z=J.iceGatherer,te=J.iceTransport,X=J.dtlsTransport,re=J.localCapabilities,ge=J.remoteCapabilities;if(!(S.isRejected($)&&0===S.matchPrefix($,"a=bundle-only").length||J.rejected)){var xe=S.getIceParameters($,Y),ue=S.getDtlsParameters($,Y);K&&(ue.role="server"),(!R.usingBundle||0===ee)&&(R._gather(J.mid,ee),"new"===te.state&&te.start(z,xe,K?"controlling":"controlled"),"new"===X.state&&X.start(ue));var N=a(re,ge);R._transceive(J,N.codecs.length>0,!1)}})}return R._localDescription={type:k.type,sdp:k.sdp},R._updateSignalingState("offer"===k.type?"have-local-offer":"stable"),Promise.resolve()},D.prototype.setRemoteDescription=function(k){var R=this;if(-1===["offer","answer"].indexOf(k.type))return Promise.reject(c("TypeError",'Unsupported type "'+k.type+'"'));if(!h("setRemoteDescription",k.type,R.signalingState)||R._isClosed)return Promise.reject(c("InvalidStateError","Can not set remote "+k.type+" in state "+R.signalingState));var G={};R.remoteStreams.forEach(function(te){G[te.id]=te});var Y=[],K=S.splitSections(k.sdp),$=K.shift(),ee=S.matchPrefix($,"a=ice-lite").length>0,J=S.matchPrefix($,"a=group:BUNDLE ").length>0;R.usingBundle=J;var z=S.matchPrefix($,"a=ice-options:")[0];return R.canTrickleIceCandidates=!!z&&z.substr(14).split(" ").indexOf("trickle")>=0,K.forEach(function(te,X){var re=S.splitLines(te),ge=S.getKind(te),oe=S.isRejected(te)&&0===S.matchPrefix(te,"a=bundle-only").length,xe=re[0].substr(2).split(" ")[2],ue=S.getDirection(te,$),N=S.parseMsid(te),se=S.getMid(te)||S.generateIdentifier();if(oe||"application"===ge&&("DTLS/SCTP"===xe||"UDP/DTLS/SCTP"===xe))R.transceivers[X]={mid:se,kind:ge,protocol:xe,rejected:!0};else{!oe&&R.transceivers[X]&&R.transceivers[X].rejected&&(R.transceivers[X]=R._createTransceiver(ge,!0));var ce,Z,de,ae,pe,_e,ke,De,Me,$e,Oe,je=S.parseRtpParameters(te);oe||($e=S.getIceParameters(te,$),(Oe=S.getDtlsParameters(te,$)).role="client"),ke=S.parseRtpEncodingParameters(te);var gt=S.parseRtcpParameters(te),qt=S.matchPrefix(te,"a=end-of-candidates",$).length>0,ye=S.matchPrefix(te,"a=candidate:").map(function(un){return S.parseCandidate(un)}).filter(function(un){return 1===un.component});if(("offer"===k.type||"answer"===k.type)&&!oe&&J&&X>0&&R.transceivers[X]&&(R._disposeIceAndDtlsTransports(X),R.transceivers[X].iceGatherer=R.transceivers[0].iceGatherer,R.transceivers[X].iceTransport=R.transceivers[0].iceTransport,R.transceivers[X].dtlsTransport=R.transceivers[0].dtlsTransport,R.transceivers[X].rtpSender&&R.transceivers[X].rtpSender.setTransport(R.transceivers[0].dtlsTransport),R.transceivers[X].rtpReceiver&&R.transceivers[X].rtpReceiver.setTransport(R.transceivers[0].dtlsTransport)),"offer"!==k.type||oe)"answer"!==k.type||oe||(Z=(ce=R.transceivers[X]).iceGatherer,de=ce.iceTransport,ae=ce.dtlsTransport,pe=ce.rtpReceiver,_e=ce.sendEncodingParameters,De=ce.localCapabilities,R.transceivers[X].recvEncodingParameters=ke,R.transceivers[X].remoteCapabilities=je,R.transceivers[X].rtcpParameters=gt,ye.length&&"new"===de.state&&(!ee&&!qt||J&&0!==X?ye.forEach(function(un){g(ce.iceTransport,un)}):de.setRemoteCandidates(ye)),(!J||0===X)&&("new"===de.state&&de.start(Z,$e,"controlling"),"new"===ae.state&&ae.start(Oe)),!a(ce.localCapabilities,ce.remoteCapabilities).codecs.filter(function(un){return"rtx"===un.name.toLowerCase()}).length&&ce.sendEncodingParameters[0].rtx&&delete ce.sendEncodingParameters[0].rtx,R._transceive(ce,"sendrecv"===ue||"recvonly"===ue,"sendrecv"===ue||"sendonly"===ue),!pe||"sendrecv"!==ue&&"sendonly"!==ue?delete ce.rtpReceiver:(Me=pe.track,N?(G[N.stream]||(G[N.stream]=new T.MediaStream),L(Me,G[N.stream]),Y.push([Me,pe,G[N.stream]])):(G.default||(G.default=new T.MediaStream),L(Me,G.default),Y.push([Me,pe,G.default]))));else{(ce=R.transceivers[X]||R._createTransceiver(ge)).mid=se,ce.iceGatherer||(ce.iceGatherer=R._createIceGatherer(X,J)),ye.length&&"new"===ce.iceTransport.state&&(!qt||J&&0!==X?ye.forEach(function(un){g(ce.iceTransport,un)}):ce.iceTransport.setRemoteCandidates(ye)),De=T.RTCRtpReceiver.getCapabilities(ge),A<15019&&(De.codecs=De.codecs.filter(function(un){return"rtx"!==un.name})),_e=ce.sendEncodingParameters||[{ssrc:1001*(2*X+2)}];var Ze,Re=!1;"sendrecv"===ue||"sendonly"===ue?(Re=!ce.rtpReceiver,pe=ce.rtpReceiver||new T.RTCRtpReceiver(ce.dtlsTransport,ge),Re&&(Me=pe.track,N&&"-"===N.stream||(N?(G[N.stream]||(G[N.stream]=new T.MediaStream,Object.defineProperty(G[N.stream],"id",{get:function(){return N.stream}})),Object.defineProperty(Me,"id",{get:function(){return N.track}}),Ze=G[N.stream]):(G.default||(G.default=new T.MediaStream),Ze=G.default)),Ze&&(L(Me,Ze),ce.associatedRemoteMediaStreams.push(Ze)),Y.push([Me,pe,Ze]))):ce.rtpReceiver&&ce.rtpReceiver.track&&(ce.associatedRemoteMediaStreams.forEach(function(un){var ct=un.getTracks().find(function(Gt){return Gt.id===ce.rtpReceiver.track.id});ct&&function x(k,R){R.removeTrack(k),R.dispatchEvent(new T.MediaStreamTrackEvent("removetrack",{track:k}))}(ct,un)}),ce.associatedRemoteMediaStreams=[]),ce.localCapabilities=De,ce.remoteCapabilities=je,ce.rtpReceiver=pe,ce.rtcpParameters=gt,ce.sendEncodingParameters=_e,ce.recvEncodingParameters=ke,R._transceive(R.transceivers[X],!1,Re)}}}),void 0===R._dtlsRole&&(R._dtlsRole="offer"===k.type?"active":"passive"),R._remoteDescription={type:k.type,sdp:k.sdp},R._updateSignalingState("offer"===k.type?"have-remote-offer":"stable"),Object.keys(G).forEach(function(te){var X=G[te];if(X.getTracks().length){if(-1===R.remoteStreams.indexOf(X)){R.remoteStreams.push(X);var re=new Event("addstream");re.stream=X,T.setTimeout(function(){R._dispatchEvent("addstream",re)})}Y.forEach(function(ge){X.id===ge[2].id&&V(R,ge[0],ge[1],[X])})}}),Y.forEach(function(te){te[2]||V(R,te[0],te[1],[])}),T.setTimeout(function(){R&&R.transceivers&&R.transceivers.forEach(function(te){te.iceTransport&&"new"===te.iceTransport.state&&te.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),te.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},D.prototype.close=function(){this.transceivers.forEach(function(k){k.iceTransport&&k.iceTransport.stop(),k.dtlsTransport&&k.dtlsTransport.stop(),k.rtpSender&&k.rtpSender.stop(),k.rtpReceiver&&k.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},D.prototype._updateSignalingState=function(k){this.signalingState=k;var R=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",R)},D.prototype._maybeFireNegotiationNeeded=function(){var k=this;"stable"!==this.signalingState||!0===this.needNegotiation||(this.needNegotiation=!0,T.setTimeout(function(){if(k.needNegotiation){k.needNegotiation=!1;var R=new Event("negotiationneeded");k._dispatchEvent("negotiationneeded",R)}},0))},D.prototype._updateIceConnectionState=function(){var k,R={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(Y){Y.iceTransport&&!Y.rejected&&R[Y.iceTransport.state]++}),k="new",R.failed>0?k="failed":R.checking>0?k="checking":R.disconnected>0?k="disconnected":R.new>0?k="new":R.connected>0?k="connected":R.completed>0&&(k="completed"),k!==this.iceConnectionState){this.iceConnectionState=k;var G=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",G)}},D.prototype._updateConnectionState=function(){var k,R={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(Y){Y.iceTransport&&Y.dtlsTransport&&!Y.rejected&&(R[Y.iceTransport.state]++,R[Y.dtlsTransport.state]++)}),R.connected+=R.completed,k="new",R.failed>0?k="failed":R.connecting>0?k="connecting":R.disconnected>0?k="disconnected":R.new>0?k="new":R.connected>0&&(k="connected"),k!==this.connectionState){this.connectionState=k;var G=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",G)}},D.prototype.createOffer=function(){var k=this;if(k._isClosed)return Promise.reject(c("InvalidStateError","Can not call createOffer after close"));var R=k.transceivers.filter(function(ee){return"audio"===ee.kind}).length,G=k.transceivers.filter(function(ee){return"video"===ee.kind}).length,Y=arguments[0];if(Y){if(Y.mandatory||Y.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==Y.offerToReceiveAudio&&(R=!0===Y.offerToReceiveAudio?1:!1===Y.offerToReceiveAudio?0:Y.offerToReceiveAudio),void 0!==Y.offerToReceiveVideo&&(G=!0===Y.offerToReceiveVideo?1:!1===Y.offerToReceiveVideo?0:Y.offerToReceiveVideo)}for(k.transceivers.forEach(function(ee){"audio"===ee.kind?--R<0&&(ee.wantReceive=!1):"video"===ee.kind&&--G<0&&(ee.wantReceive=!1)});R>0||G>0;)R>0&&(k._createTransceiver("audio"),R--),G>0&&(k._createTransceiver("video"),G--);var K=S.writeSessionBoilerplate(k._sdpSessionId,k._sdpSessionVersion++);k.transceivers.forEach(function(ee,J){var z=ee.track,te=ee.kind,X=ee.mid||S.generateIdentifier();ee.mid=X,ee.iceGatherer||(ee.iceGatherer=k._createIceGatherer(J,k.usingBundle));var re=T.RTCRtpSender.getCapabilities(te);A<15019&&(re.codecs=re.codecs.filter(function(oe){return"rtx"!==oe.name})),re.codecs.forEach(function(oe){"H264"===oe.name&&void 0===oe.parameters["level-asymmetry-allowed"]&&(oe.parameters["level-asymmetry-allowed"]="1"),ee.remoteCapabilities&&ee.remoteCapabilities.codecs&&ee.remoteCapabilities.codecs.forEach(function(xe){oe.name.toLowerCase()===xe.name.toLowerCase()&&oe.clockRate===xe.clockRate&&(oe.preferredPayloadType=xe.payloadType)})}),re.headerExtensions.forEach(function(oe){(ee.remoteCapabilities&&ee.remoteCapabilities.headerExtensions||[]).forEach(function(ue){oe.uri===ue.uri&&(oe.id=ue.id)})});var ge=ee.sendEncodingParameters||[{ssrc:1001*(2*J+1)}];z&&A>=15019&&"video"===te&&!ge[0].rtx&&(ge[0].rtx={ssrc:ge[0].ssrc+1}),ee.wantReceive&&(ee.rtpReceiver=new T.RTCRtpReceiver(ee.dtlsTransport,te)),ee.localCapabilities=re,ee.sendEncodingParameters=ge}),"max-compat"!==k._config.bundlePolicy&&(K+="a=group:BUNDLE "+k.transceivers.map(function(ee){return ee.mid}).join(" ")+"\r\n"),K+="a=ice-options:trickle\r\n",k.transceivers.forEach(function(ee,J){K+=r(ee,ee.localCapabilities,"offer",ee.stream,k._dtlsRole),K+="a=rtcp-rsize\r\n",ee.iceGatherer&&"new"!==k.iceGatheringState&&(0===J||!k.usingBundle)&&(ee.iceGatherer.getLocalCandidates().forEach(function(z){z.component=1,K+="a="+S.writeCandidate(z)+"\r\n"}),"completed"===ee.iceGatherer.state&&(K+="a=end-of-candidates\r\n"))});var $=new T.RTCSessionDescription({type:"offer",sdp:K});return Promise.resolve($)},D.prototype.createAnswer=function(){var k=this;if(k._isClosed)return Promise.reject(c("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==k.signalingState&&"have-local-pranswer"!==k.signalingState)return Promise.reject(c("InvalidStateError","Can not call createAnswer in signalingState "+k.signalingState));var R=S.writeSessionBoilerplate(k._sdpSessionId,k._sdpSessionVersion++);k.usingBundle&&(R+="a=group:BUNDLE "+k.transceivers.map(function(K){return K.mid}).join(" ")+"\r\n"),R+="a=ice-options:trickle\r\n";var G=S.getMediaSections(k._remoteDescription.sdp).length;k.transceivers.forEach(function(K,$){if(!($+1>G)){if(K.rejected)return"application"===K.kind?R+="DTLS/SCTP"===K.protocol?"m=application 0 DTLS/SCTP 5000\r\n":"m=application 0 "+K.protocol+" webrtc-datachannel\r\n":"audio"===K.kind?R+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===K.kind&&(R+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(R+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+K.mid+"\r\n");var ee;K.stream&&("audio"===K.kind?ee=K.stream.getAudioTracks()[0]:"video"===K.kind&&(ee=K.stream.getVideoTracks()[0]),ee&&A>=15019&&"video"===K.kind&&!K.sendEncodingParameters[0].rtx&&(K.sendEncodingParameters[0].rtx={ssrc:K.sendEncodingParameters[0].ssrc+1}));var J=a(K.localCapabilities,K.remoteCapabilities);!J.codecs.filter(function(te){return"rtx"===te.name.toLowerCase()}).length&&K.sendEncodingParameters[0].rtx&&delete K.sendEncodingParameters[0].rtx,R+=r(K,J,"answer",K.stream,k._dtlsRole),K.rtcpParameters&&K.rtcpParameters.reducedSize&&(R+="a=rtcp-rsize\r\n")}});var Y=new T.RTCSessionDescription({type:"answer",sdp:R});return Promise.resolve(Y)},D.prototype.addIceCandidate=function(k){var G,R=this;return k&&void 0===k.sdpMLineIndex&&!k.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(Y,K){if(!R._remoteDescription)return K(c("InvalidStateError","Can not add ICE candidate without a remote description"));if(k&&""!==k.candidate){var ee=k.sdpMLineIndex;if(k.sdpMid)for(var J=0;J<R.transceivers.length;J++)if(R.transceivers[J].mid===k.sdpMid){ee=J;break}var z=R.transceivers[ee];if(!z)return K(c("OperationError","Can not add ICE candidate"));if(z.rejected)return Y();var te=Object.keys(k.candidate).length>0?S.parseCandidate(k.candidate):{};if("tcp"===te.protocol&&(0===te.port||9===te.port)||te.component&&1!==te.component)return Y();if((0===ee||ee>0&&z.iceTransport!==R.transceivers[0].iceTransport)&&!g(z.iceTransport,te))return K(c("OperationError","Can not add ICE candidate"));var X=k.candidate.trim();0===X.indexOf("a=")&&(X=X.substr(2)),(G=S.getMediaSections(R._remoteDescription.sdp))[ee]+="a="+(te.type?X:"end-of-candidates")+"\r\n",R._remoteDescription.sdp=S.getDescription(R._remoteDescription.sdp)+G.join("")}else for(var $=0;$<R.transceivers.length&&(R.transceivers[$].rejected||(R.transceivers[$].iceTransport.addRemoteCandidate({}),(G=S.getMediaSections(R._remoteDescription.sdp))[$]+="a=end-of-candidates\r\n",R._remoteDescription.sdp=S.getDescription(R._remoteDescription.sdp)+G.join(""),!R.usingBundle));$++);Y()})},D.prototype.getStats=function(k){if(k&&k instanceof T.MediaStreamTrack){var R=null;if(this.transceivers.forEach(function(Y){Y.rtpSender&&Y.rtpSender.track===k?R=Y.rtpSender:Y.rtpReceiver&&Y.rtpReceiver.track===k&&(R=Y.rtpReceiver)}),!R)throw c("InvalidAccessError","Invalid selector.");return R.getStats()}var G=[];return this.transceivers.forEach(function(Y){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(K){Y[K]&&G.push(Y[K].getStats())})}),Promise.all(G).then(function(Y){var K=new Map;return Y.forEach(function($){$.forEach(function(ee){K.set(ee.id,ee)})}),K})},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach(function(k){var R=T[k];if(R&&R.prototype&&R.prototype.getStats){var G=R.prototype.getStats;R.prototype.getStats=function(){return G.apply(this).then(function(Y){var K=new Map;return Object.keys(Y).forEach(function($){Y[$].type=function y(T){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[T.type]||T.type}(Y[$]),K.set($,Y[$])}),K})}}});var I=["createOffer","createAnswer"];return I.forEach(function(k){var R=D.prototype[k];D.prototype[k]=function(){var G=arguments;return"function"==typeof G[0]||"function"==typeof G[1]?R.apply(this,[arguments[2]]).then(function(Y){"function"==typeof G[0]&&G[0].apply(null,[Y])},function(Y){"function"==typeof G[1]&&G[1].apply(null,[Y])}):R.apply(this,arguments)}}),(I=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach(function(k){var R=D.prototype[k];D.prototype[k]=function(){var G=arguments;return"function"==typeof G[1]||"function"==typeof G[2]?R.apply(this,arguments).then(function(){"function"==typeof G[1]&&G[1].apply(null)},function(Y){"function"==typeof G[2]&&G[2].apply(null,[Y])}):R.apply(this,arguments)}}),["getStats"].forEach(function(k){var R=D.prototype[k];D.prototype[k]=function(){var G=arguments;return"function"==typeof G[1]?R.apply(this,arguments).then(function(){"function"==typeof G[1]&&G[1].apply(null)}):R.apply(this,arguments)}}),D}},985:
/*!*********************************!*\
!*** ./node_modules/sdp/sdp.js ***!
\*********************************/P=>{"use strict";var v={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};v.localCName=v.generateIdentifier(),v.splitLines=function(O){return O.trim().split("\n").map(function(S){return S.trim()})},v.splitSections=function(O){return O.split("\nm=").map(function(y,r){return(r>0?"m="+y:y).trim()+"\r\n"})},v.getDescription=function(O){var S=v.splitSections(O);return S&&S[0]},v.getMediaSections=function(O){var S=v.splitSections(O);return S.shift(),S},v.matchPrefix=function(O,S){return v.splitLines(O).filter(function(y){return 0===y.indexOf(S)})},v.parseCandidate=function(O){for(var S,y={foundation:(S=0===O.indexOf("a=candidate:")?O.substring(12).split(" "):O.substring(10).split(" "))[0],component:parseInt(S[1],10),protocol:S[2].toLowerCase(),priority:parseInt(S[3],10),ip:S[4],address:S[4],port:parseInt(S[5],10),type:S[7]},r=8;r<S.length;r+=2)switch(S[r]){case"raddr":y.relatedAddress=S[r+1];break;case"rport":y.relatedPort=parseInt(S[r+1],10);break;case"tcptype":y.tcpType=S[r+1];break;case"ufrag":y.ufrag=S[r+1],y.usernameFragment=S[r+1];break;default:y[S[r]]=S[r+1]}return y},v.writeCandidate=function(O){var S=[];S.push(O.foundation),S.push(O.component),S.push(O.protocol.toUpperCase()),S.push(O.priority),S.push(O.address||O.ip),S.push(O.port);var y=O.type;return S.push("typ"),S.push(y),"host"!==y&&O.relatedAddress&&O.relatedPort&&(S.push("raddr"),S.push(O.relatedAddress),S.push("rport"),S.push(O.relatedPort)),O.tcpType&&"tcp"===O.protocol.toLowerCase()&&(S.push("tcptype"),S.push(O.tcpType)),(O.usernameFragment||O.ufrag)&&(S.push("ufrag"),S.push(O.usernameFragment||O.ufrag)),"candidate:"+S.join(" ")},v.parseIceOptions=function(O){return O.substr(14).split(" ")},v.parseRtpMap=function(O){var S=O.substr(9).split(" "),y={payloadType:parseInt(S.shift(),10)};return S=S[0].split("/"),y.name=S[0],y.clockRate=parseInt(S[1],10),y.channels=3===S.length?parseInt(S[2],10):1,y.numChannels=y.channels,y},v.writeRtpMap=function(O){var S=O.payloadType;void 0!==O.preferredPayloadType&&(S=O.preferredPayloadType);var y=O.channels||O.numChannels||1;return"a=rtpmap:"+S+" "+O.name+"/"+O.clockRate+(1!==y?"/"+y:"")+"\r\n"},v.parseExtmap=function(O){var S=O.substr(9).split(" ");return{id:parseInt(S[0],10),direction:S[0].indexOf("/")>0?S[0].split("/")[1]:"sendrecv",uri:S[1]}},v.writeExtmap=function(O){return"a=extmap:"+(O.id||O.preferredId)+(O.direction&&"sendrecv"!==O.direction?"/"+O.direction:"")+" "+O.uri+"\r\n"},v.parseFmtp=function(O){for(var y,S={},r=O.substr(O.indexOf(" ")+1).split(";"),i=0;i<r.length;i++)S[(y=r[i].trim().split("="))[0].trim()]=y[1];return S},v.writeFmtp=function(O){var S="",y=O.payloadType;if(void 0!==O.preferredPayloadType&&(y=O.preferredPayloadType),O.parameters&&Object.keys(O.parameters).length){var r=[];Object.keys(O.parameters).forEach(function(i){r.push(O.parameters[i]?i+"="+O.parameters[i]:i)}),S+="a=fmtp:"+y+" "+r.join(";")+"\r\n"}return S},v.parseRtcpFb=function(O){var S=O.substr(O.indexOf(" ")+1).split(" ");return{type:S.shift(),parameter:S.join(" ")}},v.writeRtcpFb=function(O){var S="",y=O.payloadType;return void 0!==O.preferredPayloadType&&(y=O.preferredPayloadType),O.rtcpFeedback&&O.rtcpFeedback.length&&O.rtcpFeedback.forEach(function(r){S+="a=rtcp-fb:"+y+" "+r.type+(r.parameter&&r.parameter.length?" "+r.parameter:"")+"\r\n"}),S},v.parseSsrcMedia=function(O){var S=O.indexOf(" "),y={ssrc:parseInt(O.substr(7,S-7),10)},r=O.indexOf(":",S);return r>-1?(y.attribute=O.substr(S+1,r-S-1),y.value=O.substr(r+1)):y.attribute=O.substr(S+1),y},v.parseSsrcGroup=function(O){var S=O.substr(13).split(" ");return{semantics:S.shift(),ssrcs:S.map(function(y){return parseInt(y,10)})}},v.getMid=function(O){var S=v.matchPrefix(O,"a=mid:")[0];if(S)return S.substr(6)},v.parseFingerprint=function(O){var S=O.substr(14).split(" ");return{algorithm:S[0].toLowerCase(),value:S[1]}},v.getDtlsParameters=function(O,S){return{role:"auto",fingerprints:v.matchPrefix(O+S,"a=fingerprint:").map(v.parseFingerprint)}},v.writeDtlsParameters=function(O,S){var y="a=setup:"+S+"\r\n";return O.fingerprints.forEach(function(r){y+="a=fingerprint:"+r.algorithm+" "+r.value+"\r\n"}),y},v.parseCryptoLine=function(O){var S=O.substr(9).split(" ");return{tag:parseInt(S[0],10),cryptoSuite:S[1],keyParams:S[2],sessionParams:S.slice(3)}},v.writeCryptoLine=function(O){return"a=crypto:"+O.tag+" "+O.cryptoSuite+" "+("object"==typeof O.keyParams?v.writeCryptoKeyParams(O.keyParams):O.keyParams)+(O.sessionParams?" "+O.sessionParams.join(" "):"")+"\r\n"},v.parseCryptoKeyParams=function(O){if(0!==O.indexOf("inline:"))return null;var S=O.substr(7).split("|");return{keyMethod:"inline",keySalt:S[0],lifeTime:S[1],mkiValue:S[2]?S[2].split(":")[0]:void 0,mkiLength:S[2]?S[2].split(":")[1]:void 0}},v.writeCryptoKeyParams=function(O){return O.keyMethod+":"+O.keySalt+(O.lifeTime?"|"+O.lifeTime:"")+(O.mkiValue&&O.mkiLength?"|"+O.mkiValue+":"+O.mkiLength:"")},v.getCryptoParameters=function(O,S){return v.matchPrefix(O+S,"a=crypto:").map(v.parseCryptoLine)},v.getIceParameters=function(O,S){var y=v.matchPrefix(O+S,"a=ice-ufrag:")[0],r=v.matchPrefix(O+S,"a=ice-pwd:")[0];return y&&r?{usernameFragment:y.substr(12),password:r.substr(10)}:null},v.writeIceParameters=function(O){return"a=ice-ufrag:"+O.usernameFragment+"\r\na=ice-pwd:"+O.password+"\r\n"},v.parseRtpParameters=function(O){for(var S={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=v.splitLines(O)[0].split(" "),i=3;i<r.length;i++){var a=r[i],h=v.matchPrefix(O,"a=rtpmap:"+a+" ")[0];if(h){var g=v.parseRtpMap(h),c=v.matchPrefix(O,"a=fmtp:"+a+" ");switch(g.parameters=c.length?v.parseFmtp(c[0]):{},g.rtcpFeedback=v.matchPrefix(O,"a=rtcp-fb:"+a+" ").map(v.parseRtcpFb),S.codecs.push(g),g.name.toUpperCase()){case"RED":case"ULPFEC":S.fecMechanisms.push(g.name.toUpperCase())}}}return v.matchPrefix(O,"a=extmap:").forEach(function(T){S.headerExtensions.push(v.parseExtmap(T))}),S},v.writeRtpDescription=function(O,S){var y="";y+="m="+O+" ",y+=S.codecs.length>0?"9":"0",y+=" UDP/TLS/RTP/SAVPF ",y+=S.codecs.map(function(i){return void 0!==i.preferredPayloadType?i.preferredPayloadType:i.payloadType}).join(" ")+"\r\n",y+="c=IN IP4 0.0.0.0\r\n",y+="a=rtcp:9 IN IP4 0.0.0.0\r\n",S.codecs.forEach(function(i){y+=v.writeRtpMap(i),y+=v.writeFmtp(i),y+=v.writeRtcpFb(i)});var r=0;return S.codecs.forEach(function(i){i.maxptime>r&&(r=i.maxptime)}),r>0&&(y+="a=maxptime:"+r+"\r\n"),y+="a=rtcp-mux\r\n",S.headerExtensions&&S.headerExtensions.forEach(function(i){y+=v.writeExtmap(i)}),y},v.parseRtpEncodingParameters=function(O){var g,S=[],y=v.parseRtpParameters(O),r=-1!==y.fecMechanisms.indexOf("RED"),i=-1!==y.fecMechanisms.indexOf("ULPFEC"),a=v.matchPrefix(O,"a=ssrc:").map(function(A){return v.parseSsrcMedia(A)}).filter(function(A){return"cname"===A.attribute}),h=a.length>0&&a[0].ssrc,c=v.matchPrefix(O,"a=ssrc-group:FID").map(function(A){return A.substr(17).split(" ").map(function(x){return parseInt(x,10)})});c.length>0&&c[0].length>1&&c[0][0]===h&&(g=c[0][1]),y.codecs.forEach(function(A){if("RTX"===A.name.toUpperCase()&&A.parameters.apt){var L={ssrc:h,codecPayloadType:parseInt(A.parameters.apt,10)};h&&g&&(L.rtx={ssrc:g}),S.push(L),r&&((L=JSON.parse(JSON.stringify(L))).fec={ssrc:h,mechanism:i?"red+ulpfec":"red"},S.push(L))}}),0===S.length&&h&&S.push({ssrc:h});var T=v.matchPrefix(O,"b=");return T.length&&(T=0===T[0].indexOf("b=TIAS:")?parseInt(T[0].substr(7),10):0===T[0].indexOf("b=AS:")?1e3*parseInt(T[0].substr(5),10)*.95-16e3:void 0,S.forEach(function(A){A.maxBitrate=T})),S},v.parseRtcpParameters=function(O){var S={},y=v.matchPrefix(O,"a=ssrc:").map(function(a){return v.parseSsrcMedia(a)}).filter(function(a){return"cname"===a.attribute})[0];y&&(S.cname=y.value,S.ssrc=y.ssrc);var r=v.matchPrefix(O,"a=rtcp-rsize");S.reducedSize=r.length>0,S.compound=0===r.length;var i=v.matchPrefix(O,"a=rtcp-mux");return S.mux=i.length>0,S},v.parseMsid=function(O){var S,y=v.matchPrefix(O,"a=msid:");if(1===y.length)return{stream:(S=y[0].substr(7).split(" "))[0],track:S[1]};var r=v.matchPrefix(O,"a=ssrc:").map(function(i){return v.parseSsrcMedia(i)}).filter(function(i){return"msid"===i.attribute});return r.length>0?{stream:(S=r[0].value.split(" "))[0],track:S[1]}:void 0},v.parseSctpDescription=function(O){var r,S=v.parseMLine(O),y=v.matchPrefix(O,"a=max-message-size:");y.length>0&&(r=parseInt(y[0].substr(19),10)),isNaN(r)&&(r=65536);var i=v.matchPrefix(O,"a=sctp-port:");if(i.length>0)return{port:parseInt(i[0].substr(12),10),protocol:S.fmt,maxMessageSize:r};if(v.matchPrefix(O,"a=sctpmap:").length>0){var h=v.matchPrefix(O,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(h[0],10),protocol:h[1],maxMessageSize:r}}},v.writeSctpDescription=function(O,S){var y=[];return y="DTLS/SCTP"!==O.protocol?["m="+O.kind+" 9 "+O.protocol+" "+S.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+S.port+"\r\n"]:["m="+O.kind+" 9 "+O.protocol+" "+S.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+S.port+" "+S.protocol+" 65535\r\n"],void 0!==S.maxMessageSize&&y.push("a=max-message-size:"+S.maxMessageSize+"\r\n"),y.join("")},v.generateSessionId=function(){return Math.random().toString().substr(2,21)},v.writeSessionBoilerplate=function(O,S,y){var i=void 0!==S?S:2;return"v=0\r\no="+(y||"thisisadapterortc")+" "+(O||v.generateSessionId())+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},v.writeMediaSection=function(O,S,y,r){var i=v.writeRtpDescription(O.kind,S);if(i+=v.writeIceParameters(O.iceGatherer.getLocalParameters()),i+=v.writeDtlsParameters(O.dtlsTransport.getLocalParameters(),"offer"===y?"actpass":"active"),i+="a=mid:"+O.mid+"\r\n",i+=O.direction?"a="+O.direction+"\r\n":O.rtpSender&&O.rtpReceiver?"a=sendrecv\r\n":O.rtpSender?"a=sendonly\r\n":O.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",O.rtpSender){var a="msid:"+r.id+" "+O.rtpSender.track.id+"\r\n";i+="a="+a,i+="a=ssrc:"+O.sendEncodingParameters[0].ssrc+" "+a,O.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+O.sendEncodingParameters[0].rtx.ssrc+" "+a,i+="a=ssrc-group:FID "+O.sendEncodingParameters[0].ssrc+" "+O.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return i+="a=ssrc:"+O.sendEncodingParameters[0].ssrc+" cname:"+v.localCName+"\r\n",O.rtpSender&&O.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+O.sendEncodingParameters[0].rtx.ssrc+" cname:"+v.localCName+"\r\n"),i},v.getDirection=function(O,S){for(var y=v.splitLines(O),r=0;r<y.length;r++)switch(y[r]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return y[r].substr(2)}return S?v.getDirection(S):"sendrecv"},v.getKind=function(O){return v.splitLines(O)[0].split(" ")[0].substr(2)},v.isRejected=function(O){return"0"===O.split(" ",2)[1]},v.parseMLine=function(O){var y=v.splitLines(O)[0].substr(2).split(" ");return{kind:y[0],port:parseInt(y[1],10),protocol:y[2],fmt:y.slice(3).join(" ")}},v.parseOLine=function(O){var y=v.matchPrefix(O,"o=")[0].substr(2).split(" ");return{username:y[0],sessionId:y[1],sessionVersion:parseInt(y[2],10),netType:y[3],addressType:y[4],address:y[5]}},v.isValidSDP=function(O){if("string"!=typeof O||0===O.length)return!1;for(var S=v.splitLines(O),y=0;y<S.length;y++)if(S[y].length<2||"="!==S[y].charAt(1))return!1;return!0},P.exports=v},778:
/*!***********************************!*\
!*** external "@gamestream/core" ***!
\***********************************/P=>{"use strict";P.exports=d(92950)},754:
/*!*************************************!*\
!*** external "@opentelemetry/api" ***!
\*************************************/P=>{"use strict";P.exports=d(29184)}},p={};function m(P){var v=p[P];if(void 0!==v)return v.exports;var O=p[P]={exports:{}};return l[P](O,O.exports,m),O.exports}m.n=P=>{var v=P&&P.__esModule?()=>P.default:()=>P;return m.d(v,{a:v}),v},m.d=(P,v)=>{for(var O in v)m.o(v,O)&&!m.o(P,O)&&Object.defineProperty(P,O,{enumerable:!0,get:v[O]})},m.o=(P,v)=>Object.prototype.hasOwnProperty.call(P,v),m.r=P=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(P,"__esModule",{value:!0})};var _={};(()=>{"use strict";m.r(_),m.d(_,{AdAction:()=>Pt,AdState:()=>$n,AddPlatformTelemetry:()=>on,AppLaunchMode:()=>Fr,AppLevelProtocol:()=>mi,AudioFormat:()=>hr,AuthType:()=>wn,BitDepth:()=>Ii,BrowserFeature:()=>or,BrowserName:()=>Be,CHANGELIST:()=>jn,CLIENT_IDENTIFICATION:()=>_i,CLIENT_VERSION:()=>Rn,CalculateDataUsage:()=>wt,CalculateMaxBitrateKbps:()=>_n,ChooseStreamingResolution:()=>ai,ChooseStreamingSettings:()=>rn,ClientHeaderBrowserType:()=>Tn,ClientHeaderDeviceType:()=>tn,ClientHeaderOSType:()=>dr,ClientStreamer:()=>Qr,ClientType:()=>ar,ConfigureGridServerSettings:()=>Qe,ConfigureRagnarokSettings:()=>Ut,CursorType:()=>va,DeviceModel:()=>Vn,DeviceOS:()=>vi,DeviceType:()=>ji,DeviceVendor:()=>si,DynamicStreamingMode:()=>Ga,EVENTS:()=>Oi,GS_EVENTS:()=>Yr,GetDeviceCapabilities:()=>zt,GetSupportedAudioChannelCount:()=>Ne,GridApp:()=>Xn,GridServer:()=>no,GridServerSettings:()=>Pe,GsErrorCode:()=>Ee,HidType:()=>Ya,HotkeyModifier:()=>At,InitializeUtils:()=>ri,InputType:()=>Ba,IsFeatureSupported:()=>mt,LogImpl:()=>Un,LogLevel:()=>Dn,MediaTrackKind:()=>To,MicState:()=>ys,NetworkType:()=>Zt,NskTelemetry:()=>ts,PassThruServer:()=>Tr,PayloadBrowserType:()=>Bs,PayloadDeviceType:()=>li,PayloadOSType:()=>es,PlatformName:()=>Mt,Protocol:()=>xn,RErrorCode:()=>Ua,RNotificationCode:()=>Kr,SESSIONMODIFY_ACTION:()=>wr,STREAMING_STATE:()=>Lr,ScErrorCode:()=>Qt,SdrHdrMode:()=>Ti,SessionControlTelemetry:()=>he,SessionProgressState:()=>ki,SessionState:()=>Jt,StreamStopReason:()=>ss,StreamWarningType:()=>Gs,StreamingProfilePreset:()=>pi,StreamingState:()=>Ca,TrackType:()=>Zi,Usage:()=>Xt,VideoCodecType:()=>Pa,VirtualButton:()=>Ct,VirtualGamepadHandler:()=>it,VsyncType:()=>ro,configureRagnarokSettings:()=>Xr,configureSessionControlSettings:()=>di,createNskStreamClient:()=>Ls,createSessionControl:()=>zn,defaultInputConfigFlags:()=>Hn,estimateDataUsage:()=>lo,getDeviceCapabilities:()=>po,getNetworkTypeDetector:()=>Hs,getPlatformDetails:()=>Vt,getRecommendedBitrate:()=>ko,getResumableSession:()=>ni,getStreamStartParameters:()=>qr,getStreamerType:()=>Ci,getSupportedCodecs:()=>vt,isCancelCode:()=>qn,isFeatureSupported:()=>yr,isResumableSessionState:()=>Sr,performHttpRequest:()=>nt,registerLogCallback:()=>Zn,serializeDeviceCapabilities:()=>Os,shouldDefaultEnableMic:()=>$r,translatePlatformDetailsForClientHeader:()=>oi,translatePlatformDetailsForPayload:()=>vn,updateSessionParameters:()=>xo});var P={};m.r(P),m.d(P,{fixNegotiationNeeded:()=>X,shimAddTrackRemoveTrack:()=>z,shimAddTrackRemoveTrackWithNative:()=>J,shimGetDisplayMedia:()=>R,shimGetSendersWithDtmf:()=>K,shimGetStats:()=>$,shimGetUserMedia:()=>k,shimMediaStream:()=>G,shimOnTrack:()=>Y,shimPeerConnection:()=>te,shimSenderReceiverGetStats:()=>ee});var v={};m.r(v),m.d(v,{shimGetDisplayMedia:()=>ue,shimGetUserMedia:()=>xe,shimPeerConnection:()=>N,shimReplaceTrack:()=>se});var O={};m.r(O),m.d(O,{shimAddTransceiver:()=>Me,shimCreateAnswer:()=>Oe,shimCreateOffer:()=>$e,shimGetDisplayMedia:()=>Z,shimGetParameters:()=>je,shimGetUserMedia:()=>ce,shimOnTrack:()=>de,shimPeerConnection:()=>ae,shimRTCDataChannel:()=>De,shimReceiverGetStats:()=>_e,shimRemoveStream:()=>ke,shimSenderGetStats:()=>pe});var S={};m.r(S),m.d(S,{shimAudioContext:()=>ct,shimCallbacksAPI:()=>ye,shimConstraints:()=>Ze,shimCreateOfferLegacy:()=>un,shimGetUserMedia:()=>Re,shimLocalStreamsAPI:()=>gt,shimRTCIceServerUrls:()=>et,shimRemoteStreamsAPI:()=>qt,shimTrackEventTransceiver:()=>xt});var y={};m.r(y),m.d(y,{removeAllowExtmapMixed:()=>Cn,shimConnectionState:()=>En,shimMaxMessageSize:()=>mn,shimRTCIceCandidate:()=>st,shimSendThrowTypeError:()=>Bn});let r=!0,i=!0;function a(ln,Pi,Qi){const yi=ln.match(Pi);return yi&&yi.length>=Qi&&parseInt(yi[Qi],10)}function h(ln,Pi,Qi){if(!ln.RTCPeerConnection)return;const yi=ln.RTCPeerConnection.prototype,Di=yi.addEventListener;yi.addEventListener=function(Ki,Vi){if(Ki!==Pi)return Di.apply(this,arguments);const Mr=nr=>{const en=Qi(nr);en&&(Vi.handleEvent?Vi.handleEvent(en):Vi(en))};return this._eventMap=this._eventMap||{},this._eventMap[Pi]||(this._eventMap[Pi]=new Map),this._eventMap[Pi].set(Vi,Mr),Di.apply(this,[Ki,Mr])};const zi=yi.removeEventListener;yi.removeEventListener=function(Ki,Vi){if(Ki!==Pi||!this._eventMap||!this._eventMap[Pi])return zi.apply(this,arguments);if(!this._eventMap[Pi].has(Vi))return zi.apply(this,arguments);const Mr=this._eventMap[Pi].get(Vi);return this._eventMap[Pi].delete(Vi),0===this._eventMap[Pi].size&&delete this._eventMap[Pi],0===Object.keys(this._eventMap).length&&delete this._eventMap,zi.apply(this,[Ki,Mr])},Object.defineProperty(yi,"on"+Pi,{get(){return this["_on"+Pi]},set(Ki){this["_on"+Pi]&&(this.removeEventListener(Pi,this["_on"+Pi]),delete this["_on"+Pi]),Ki&&this.addEventListener(Pi,this["_on"+Pi]=Ki)},enumerable:!0,configurable:!0})}function g(ln){return"boolean"!=typeof ln?new Error("Argument type: "+typeof ln+". Please use a boolean."):(r=ln,ln?"adapter.js logging disabled":"adapter.js logging enabled")}function c(ln){return"boolean"!=typeof ln?new Error("Argument type: "+typeof ln+". Please use a boolean."):(i=!ln,"adapter.js deprecation warnings "+(ln?"disabled":"enabled"))}function T(){if("object"==typeof window){if(r)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function A(ln,Pi){i&&console.warn(ln+" is deprecated, please use "+Pi+" instead.")}function L(ln){const{navigator:Pi}=ln,Qi={browser:null,version:null};if(typeof ln>"u"||!ln.navigator)return Qi.browser="Not a browser.",Qi;if(Pi.mozGetUserMedia)Qi.browser="firefox",Qi.version=a(Pi.userAgent,/Firefox\/(\d+)\./,1);else if(Pi.webkitGetUserMedia||!1===ln.isSecureContext&&ln.webkitRTCPeerConnection&&!ln.RTCIceGatherer)Qi.browser="chrome",Qi.version=a(Pi.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(Pi.mediaDevices&&Pi.userAgent.match(/Edge\/(\d+).(\d+)$/))Qi.browser="edge",Qi.version=a(Pi.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!ln.RTCPeerConnection||!Pi.userAgent.match(/AppleWebKit\/(\d+)\./))return Qi.browser="Not a supported browser.",Qi;Qi.browser="safari",Qi.version=a(Pi.userAgent,/AppleWebKit\/(\d+)\./,1),Qi.supportsUnifiedPlan=ln.RTCRtpTransceiver&&"currentDirection"in ln.RTCRtpTransceiver.prototype}return Qi}function x(ln){return"[object Object]"===Object.prototype.toString.call(ln)}function V(ln){return x(ln)?Object.keys(ln).reduce(function(Pi,Qi){const yi=x(ln[Qi]),Di=yi?V(ln[Qi]):ln[Qi],zi=yi&&!Object.keys(Di).length;return void 0===Di||zi?Pi:Object.assign(Pi,{[Qi]:Di})},{}):ln}function D(ln,Pi,Qi){!Pi||Qi.has(Pi.id)||(Qi.set(Pi.id,Pi),Object.keys(Pi).forEach(yi=>{yi.endsWith("Id")?D(ln,ln.get(Pi[yi]),Qi):yi.endsWith("Ids")&&Pi[yi].forEach(Di=>{D(ln,ln.get(Di),Qi)})}))}function F(ln,Pi,Qi){const yi=Qi?"outbound-rtp":"inbound-rtp",Di=new Map;if(null===Pi)return Di;const zi=[];return ln.forEach(Ki=>{"track"===Ki.type&&Ki.trackIdentifier===Pi.id&&zi.push(Ki)}),zi.forEach(Ki=>{ln.forEach(Vi=>{Vi.type===yi&&Vi.trackId===Ki.id&&D(ln,Vi,Di)})}),Di}const I=T;function k(ln){const Pi=ln&&ln.navigator;if(!Pi.mediaDevices)return;const Qi=L(ln),yi=function(Vi){if("object"!=typeof Vi||Vi.mandatory||Vi.optional)return Vi;const Mr={};return Object.keys(Vi).forEach(nr=>{if("require"===nr||"advanced"===nr||"mediaSource"===nr)return;const en="object"==typeof Vi[nr]?Vi[nr]:{ideal:Vi[nr]};void 0!==en.exact&&"number"==typeof en.exact&&(en.min=en.max=en.exact);const Wt=function(On,Nt){return On?On+Nt.charAt(0).toUpperCase()+Nt.slice(1):"deviceId"===Nt?"sourceId":Nt};if(void 0!==en.ideal){Mr.optional=Mr.optional||[];let On={};"number"==typeof en.ideal?(On[Wt("min",nr)]=en.ideal,Mr.optional.push(On),On={},On[Wt("max",nr)]=en.ideal,Mr.optional.push(On)):(On[Wt("",nr)]=en.ideal,Mr.optional.push(On))}void 0!==en.exact&&"number"!=typeof en.exact?(Mr.mandatory=Mr.mandatory||{},Mr.mandatory[Wt("",nr)]=en.exact):["min","max"].forEach(On=>{void 0!==en[On]&&(Mr.mandatory=Mr.mandatory||{},Mr.mandatory[Wt(On,nr)]=en[On])})}),Vi.advanced&&(Mr.optional=(Mr.optional||[]).concat(Vi.advanced)),Mr},Di=function(Vi,Mr){if(Qi.version>=61)return Mr(Vi);if((Vi=JSON.parse(JSON.stringify(Vi)))&&"object"==typeof Vi.audio){const nr=function(en,Wt,On){Wt in en&&!(On in en)&&(en[On]=en[Wt],delete en[Wt])};nr((Vi=JSON.parse(JSON.stringify(Vi))).audio,"autoGainControl","googAutoGainControl"),nr(Vi.audio,"noiseSuppression","googNoiseSuppression"),Vi.audio=yi(Vi.audio)}if(Vi&&"object"==typeof Vi.video){let nr=Vi.video.facingMode;nr=nr&&("object"==typeof nr?nr:{ideal:nr});const en=Qi.version<66;if(nr&&("user"===nr.exact||"environment"===nr.exact||"user"===nr.ideal||"environment"===nr.ideal)&&(!Pi.mediaDevices.getSupportedConstraints||!Pi.mediaDevices.getSupportedConstraints().facingMode||en)){let Wt;if(delete Vi.video.facingMode,"environment"===nr.exact||"environment"===nr.ideal?Wt=["back","rear"]:("user"===nr.exact||"user"===nr.ideal)&&(Wt=["front"]),Wt)return Pi.mediaDevices.enumerateDevices().then(On=>{let Nt=(On=On.filter(gi=>"videoinput"===gi.kind)).find(gi=>Wt.some(Bi=>gi.label.toLowerCase().includes(Bi)));return!Nt&&On.length&&Wt.includes("back")&&(Nt=On[On.length-1]),Nt&&(Vi.video.deviceId=nr.exact?{exact:Nt.deviceId}:{ideal:Nt.deviceId}),Vi.video=yi(Vi.video),I("chrome: "+JSON.stringify(Vi)),Mr(Vi)})}Vi.video=yi(Vi.video)}return I("chrome: "+JSON.stringify(Vi)),Mr(Vi)},zi=function(Vi){return Qi.version>=64?Vi:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[Vi.name]||Vi.name,message:Vi.message,constraint:Vi.constraint||Vi.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(Pi.getUserMedia=function(Vi,Mr,nr){Di(Vi,en=>{Pi.webkitGetUserMedia(en,Mr,Wt=>{nr&&nr(zi(Wt))})})}.bind(Pi),Pi.mediaDevices.getUserMedia){const Vi=Pi.mediaDevices.getUserMedia.bind(Pi.mediaDevices);Pi.mediaDevices.getUserMedia=function(Mr){return Di(Mr,nr=>Vi(nr).then(en=>{if(nr.audio&&!en.getAudioTracks().length||nr.video&&!en.getVideoTracks().length)throw en.getTracks().forEach(Wt=>{Wt.stop()}),new DOMException("","NotFoundError");return en},en=>Promise.reject(zi(en))))}}}function R(ln,Pi){if((!ln.navigator.mediaDevices||!("getDisplayMedia"in ln.navigator.mediaDevices))&&ln.navigator.mediaDevices){if("function"!=typeof Pi)return void console.error("shimGetDisplayMedia: getSourceId argument is not a function");ln.navigator.mediaDevices.getDisplayMedia=function(yi){return Pi(yi).then(Di=>{const zi=yi.video&&yi.video.width,Ki=yi.video&&yi.video.height;return yi.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:Di,maxFrameRate:yi.video&&yi.video.frameRate||3}},zi&&(yi.video.mandatory.maxWidth=zi),Ki&&(yi.video.mandatory.maxHeight=Ki),ln.navigator.mediaDevices.getUserMedia(yi)})}}}function G(ln){ln.MediaStream=ln.MediaStream||ln.webkitMediaStream}function Y(ln){if("object"==typeof ln&&ln.RTCPeerConnection&&!("ontrack"in ln.RTCPeerConnection.prototype)){Object.defineProperty(ln.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(Qi){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=Qi)},enumerable:!0,configurable:!0});const Pi=ln.RTCPeerConnection.prototype.setRemoteDescription;ln.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=yi=>{yi.stream.addEventListener("addtrack",Di=>{let zi;zi=ln.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(Vi=>Vi.track&&Vi.track.id===Di.track.id):{track:Di.track};const Ki=new Event("track");Ki.track=Di.track,Ki.receiver=zi,Ki.transceiver={receiver:zi},Ki.streams=[yi.stream],this.dispatchEvent(Ki)}),yi.stream.getTracks().forEach(Di=>{let zi;zi=ln.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(Vi=>Vi.track&&Vi.track.id===Di.id):{track:Di};const Ki=new Event("track");Ki.track=Di,Ki.receiver=zi,Ki.transceiver={receiver:zi},Ki.streams=[yi.stream],this.dispatchEvent(Ki)})},this.addEventListener("addstream",this._ontrackpoly)),Pi.apply(this,arguments)}}else h(ln,"track",Pi=>(Pi.transceiver||Object.defineProperty(Pi,"transceiver",{value:{receiver:Pi.receiver}}),Pi))}function K(ln){if("object"==typeof ln&&ln.RTCPeerConnection&&!("getSenders"in ln.RTCPeerConnection.prototype)&&"createDTMFSender"in ln.RTCPeerConnection.prototype){const Pi=function(Di,zi){return{track:zi,get dtmf(){return void 0===this._dtmf&&(this._dtmf="audio"===zi.kind?Di.createDTMFSender(zi):null),this._dtmf},_pc:Di}};if(!ln.RTCPeerConnection.prototype.getSenders){ln.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const Di=ln.RTCPeerConnection.prototype.addTrack;ln.RTCPeerConnection.prototype.addTrack=function(Vi,Mr){let nr=Di.apply(this,arguments);return nr||(nr=Pi(this,Vi),this._senders.push(nr)),nr};const zi=ln.RTCPeerConnection.prototype.removeTrack;ln.RTCPeerConnection.prototype.removeTrack=function(Vi){zi.apply(this,arguments);const Mr=this._senders.indexOf(Vi);-1!==Mr&&this._senders.splice(Mr,1)}}const Qi=ln.RTCPeerConnection.prototype.addStream;ln.RTCPeerConnection.prototype.addStream=function(zi){this._senders=this._senders||[],Qi.apply(this,[zi]),zi.getTracks().forEach(Ki=>{this._senders.push(Pi(this,Ki))})};const yi=ln.RTCPeerConnection.prototype.removeStream;ln.RTCPeerConnection.prototype.removeStream=function(zi){this._senders=this._senders||[],yi.apply(this,[zi]),zi.getTracks().forEach(Ki=>{const Vi=this._senders.find(Mr=>Mr.track===Ki);Vi&&this._senders.splice(this._senders.indexOf(Vi),1)})}}else if("object"==typeof ln&&ln.RTCPeerConnection&&"getSenders"in ln.RTCPeerConnection.prototype&&"createDTMFSender"in ln.RTCPeerConnection.prototype&&ln.RTCRtpSender&&!("dtmf"in ln.RTCRtpSender.prototype)){const Pi=ln.RTCPeerConnection.prototype.getSenders;ln.RTCPeerConnection.prototype.getSenders=function(){const yi=Pi.apply(this,[]);return yi.forEach(Di=>Di._pc=this),yi},Object.defineProperty(ln.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&(this._dtmf="audio"===this.track.kind?this._pc.createDTMFSender(this.track):null),this._dtmf}})}}function $(ln){if(!ln.RTCPeerConnection)return;const Pi=ln.RTCPeerConnection.prototype.getStats;ln.RTCPeerConnection.prototype.getStats=function(){const[yi,Di,zi]=arguments;if(arguments.length>0&&"function"==typeof yi)return Pi.apply(this,arguments);if(0===Pi.length&&(0===arguments.length||"function"!=typeof yi))return Pi.apply(this,[]);const Ki=function(Mr){const nr={};return Mr.result().forEach(Wt=>{const On={id:Wt.id,timestamp:Wt.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[Wt.type]||Wt.type};Wt.names().forEach(Nt=>{On[Nt]=Wt.stat(Nt)}),nr[On.id]=On}),nr},Vi=function(Mr){return new Map(Object.keys(Mr).map(nr=>[nr,Mr[nr]]))};return arguments.length>=2?Pi.apply(this,[function(nr){Di(Vi(Ki(nr)))},yi]):new Promise((Mr,nr)=>{Pi.apply(this,[function(en){Mr(Vi(Ki(en)))},nr])}).then(Di,zi)}}function ee(ln){if(!("object"==typeof ln&&ln.RTCPeerConnection&&ln.RTCRtpSender&&ln.RTCRtpReceiver))return;if(!("getStats"in ln.RTCRtpSender.prototype)){const Qi=ln.RTCPeerConnection.prototype.getSenders;Qi&&(ln.RTCPeerConnection.prototype.getSenders=function(){const zi=Qi.apply(this,[]);return zi.forEach(Ki=>Ki._pc=this),zi});const yi=ln.RTCPeerConnection.prototype.addTrack;yi&&(ln.RTCPeerConnection.prototype.addTrack=function(){const zi=yi.apply(this,arguments);return zi._pc=this,zi}),ln.RTCRtpSender.prototype.getStats=function(){const zi=this;return this._pc.getStats().then(Ki=>F(Ki,zi.track,!0))}}if(!("getStats"in ln.RTCRtpReceiver.prototype)){const Qi=ln.RTCPeerConnection.prototype.getReceivers;Qi&&(ln.RTCPeerConnection.prototype.getReceivers=function(){const Di=Qi.apply(this,[]);return Di.forEach(zi=>zi._pc=this),Di}),h(ln,"track",yi=>(yi.receiver._pc=yi.srcElement,yi)),ln.RTCRtpReceiver.prototype.getStats=function(){const Di=this;return this._pc.getStats().then(zi=>F(zi,Di.track,!1))}}if(!("getStats"in ln.RTCRtpSender.prototype)||!("getStats"in ln.RTCRtpReceiver.prototype))return;const Pi=ln.RTCPeerConnection.prototype.getStats;ln.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof ln.MediaStreamTrack){const yi=arguments[0];let Di,zi,Ki;return this.getSenders().forEach(Vi=>{Vi.track===yi&&(Di?Ki=!0:Di=Vi)}),this.getReceivers().forEach(Vi=>(Vi.track===yi&&(zi?Ki=!0:zi=Vi),Vi.track===yi)),Ki||Di&&zi?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):Di?Di.getStats():zi?zi.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return Pi.apply(this,arguments)}}function J(ln){ln.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(Ki=>this._shimmedLocalStreams[Ki][0])};const Pi=ln.RTCPeerConnection.prototype.addTrack;ln.RTCPeerConnection.prototype.addTrack=function(Ki,Vi){if(!Vi)return Pi.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const Mr=Pi.apply(this,arguments);return this._shimmedLocalStreams[Vi.id]?-1===this._shimmedLocalStreams[Vi.id].indexOf(Mr)&&this._shimmedLocalStreams[Vi.id].push(Mr):this._shimmedLocalStreams[Vi.id]=[Vi,Mr],Mr};const Qi=ln.RTCPeerConnection.prototype.addStream;ln.RTCPeerConnection.prototype.addStream=function(Ki){this._shimmedLocalStreams=this._shimmedLocalStreams||{},Ki.getTracks().forEach(nr=>{if(this.getSenders().find(Wt=>Wt.track===nr))throw new DOMException("Track already exists.","InvalidAccessError")});const Vi=this.getSenders();Qi.apply(this,arguments);const Mr=this.getSenders().filter(nr=>-1===Vi.indexOf(nr));this._shimmedLocalStreams[Ki.id]=[Ki].concat(Mr)};const yi=ln.RTCPeerConnection.prototype.removeStream;ln.RTCPeerConnection.prototype.removeStream=function(Ki){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[Ki.id],yi.apply(this,arguments)};const Di=ln.RTCPeerConnection.prototype.removeTrack;ln.RTCPeerConnection.prototype.removeTrack=function(Ki){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Ki&&Object.keys(this._shimmedLocalStreams).forEach(Vi=>{const Mr=this._shimmedLocalStreams[Vi].indexOf(Ki);-1!==Mr&&this._shimmedLocalStreams[Vi].splice(Mr,1),1===this._shimmedLocalStreams[Vi].length&&delete this._shimmedLocalStreams[Vi]}),Di.apply(this,arguments)}}function z(ln){if(!ln.RTCPeerConnection)return;const Pi=L(ln);if(ln.RTCPeerConnection.prototype.addTrack&&Pi.version>=65)return J(ln);const Qi=ln.RTCPeerConnection.prototype.getLocalStreams;ln.RTCPeerConnection.prototype.getLocalStreams=function(){const en=Qi.apply(this);return this._reverseStreams=this._reverseStreams||{},en.map(Wt=>this._reverseStreams[Wt.id])};const yi=ln.RTCPeerConnection.prototype.addStream;ln.RTCPeerConnection.prototype.addStream=function(en){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},en.getTracks().forEach(Wt=>{if(this.getSenders().find(Nt=>Nt.track===Wt))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[en.id]){const Wt=new ln.MediaStream(en.getTracks());this._streams[en.id]=Wt,this._reverseStreams[Wt.id]=en,en=Wt}yi.apply(this,[en])};const Di=ln.RTCPeerConnection.prototype.removeStream;function zi(nr,en){let Wt=en.sdp;return Object.keys(nr._reverseStreams||[]).forEach(On=>{const Nt=nr._reverseStreams[On];Wt=Wt.replace(new RegExp(nr._streams[Nt.id].id,"g"),Nt.id)}),new RTCSessionDescription({type:en.type,sdp:Wt})}ln.RTCPeerConnection.prototype.removeStream=function(en){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},Di.apply(this,[this._streams[en.id]||en]),delete this._reverseStreams[this._streams[en.id]?this._streams[en.id].id:en.id],delete this._streams[en.id]},ln.RTCPeerConnection.prototype.addTrack=function(en,Wt){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const On=[].slice.call(arguments,1);if(1!==On.length||!On[0].getTracks().find(Bi=>Bi===en))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(Bi=>Bi.track===en))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const gi=this._streams[Wt.id];if(gi)gi.addTrack(en),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const Bi=new ln.MediaStream([en]);this._streams[Wt.id]=Bi,this._reverseStreams[Bi.id]=Wt,this.addStream(Bi)}return this.getSenders().find(Bi=>Bi.track===en)},["createOffer","createAnswer"].forEach(function(nr){const en=ln.RTCPeerConnection.prototype[nr],Wt={[nr](){const On=arguments;return arguments.length&&"function"==typeof arguments[0]?en.apply(this,[gi=>{const Bi=zi(this,gi);On[0].apply(null,[Bi])},gi=>{On[1]&&On[1].apply(null,gi)},arguments[2]]):en.apply(this,arguments).then(gi=>zi(this,gi))}};ln.RTCPeerConnection.prototype[nr]=Wt[nr]});const Vi=ln.RTCPeerConnection.prototype.setLocalDescription;ln.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function Ki(nr,en){let Wt=en.sdp;return Object.keys(nr._reverseStreams||[]).forEach(On=>{const Nt=nr._reverseStreams[On],gi=nr._streams[Nt.id];Wt=Wt.replace(new RegExp(Nt.id,"g"),gi.id)}),new RTCSessionDescription({type:en.type,sdp:Wt})}(this,arguments[0]),Vi.apply(this,arguments)):Vi.apply(this,arguments)};const Mr=Object.getOwnPropertyDescriptor(ln.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(ln.RTCPeerConnection.prototype,"localDescription",{get(){const nr=Mr.get.apply(this);return""===nr.type?nr:zi(this,nr)}}),ln.RTCPeerConnection.prototype.removeTrack=function(en){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!en._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(en._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let On;this._streams=this._streams||{},Object.keys(this._streams).forEach(Nt=>{this._streams[Nt].getTracks().find(Bi=>en.track===Bi)&&(On=this._streams[Nt])}),On&&(1===On.getTracks().length?this.removeStream(this._reverseStreams[On.id]):On.removeTrack(en.track),this.dispatchEvent(new Event("negotiationneeded")))}}function te(ln){const Pi=L(ln);if(!ln.RTCPeerConnection&&ln.webkitRTCPeerConnection&&(ln.RTCPeerConnection=ln.webkitRTCPeerConnection),!ln.RTCPeerConnection)return;const Qi=0===ln.RTCPeerConnection.prototype.addIceCandidate.length;Pi.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(Di){const zi=ln.RTCPeerConnection.prototype[Di],Ki={[Di](){return arguments[0]=new("addIceCandidate"===Di?ln.RTCIceCandidate:ln.RTCSessionDescription)(arguments[0]),zi.apply(this,arguments)}};ln.RTCPeerConnection.prototype[Di]=Ki[Di]});const yi=ln.RTCPeerConnection.prototype.addIceCandidate;ln.RTCPeerConnection.prototype.addIceCandidate=function(){return Qi||arguments[0]?Pi.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():yi.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function X(ln){const Pi=L(ln);h(ln,"negotiationneeded",Qi=>{const yi=Qi.target;if(!(Pi.version<72||yi.getConfiguration&&"plan-b"===yi.getConfiguration().sdpSemantics)||"stable"===yi.signalingState)return Qi})}var ge=m(134),oe=m.n(ge);function xe(ln){const Pi=ln&&ln.navigator,yi=Pi.mediaDevices.getUserMedia.bind(Pi.mediaDevices);Pi.mediaDevices.getUserMedia=function(Di){return yi(Di).catch(zi=>Promise.reject(function(Di){return{name:{PermissionDeniedError:"NotAllowedError"}[Di.name]||Di.name,message:Di.message,constraint:Di.constraint,toString(){return this.name}}}(zi)))}}function ue(ln){"getDisplayMedia"in ln.navigator&&ln.navigator.mediaDevices&&(ln.navigator.mediaDevices&&"getDisplayMedia"in ln.navigator.mediaDevices||(ln.navigator.mediaDevices.getDisplayMedia=ln.navigator.getDisplayMedia.bind(ln.navigator)))}function N(ln){const Pi=L(ln);if(ln.RTCIceGatherer&&(ln.RTCIceCandidate||(ln.RTCIceCandidate=function(Di){return Di}),ln.RTCSessionDescription||(ln.RTCSessionDescription=function(Di){return Di}),Pi.version<15025)){const yi=Object.getOwnPropertyDescriptor(ln.MediaStreamTrack.prototype,"enabled");Object.defineProperty(ln.MediaStreamTrack.prototype,"enabled",{set(Di){yi.set.call(this,Di);const zi=new Event("enabled");zi.enabled=Di,this.dispatchEvent(zi)}})}ln.RTCRtpSender&&!("dtmf"in ln.RTCRtpSender.prototype)&&Object.defineProperty(ln.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new ln.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),ln.RTCDtmfSender&&!ln.RTCDTMFSender&&(ln.RTCDTMFSender=ln.RTCDtmfSender);const Qi=oe()(ln,Pi.version);ln.RTCPeerConnection=function(Di){return Di&&Di.iceServers&&(Di.iceServers=function re(ln,Pi){let Qi=!1;return(ln=JSON.parse(JSON.stringify(ln))).filter(yi=>{if(yi&&(yi.urls||yi.url)){var Di=yi.urls||yi.url;yi.url&&!yi.urls&&A("RTCIceServer.url","RTCIceServer.urls");const zi="string"==typeof Di;return zi&&(Di=[Di]),Di=Di.filter(Ki=>{if(0===Ki.indexOf("stun:"))return!1;const Vi=Ki.startsWith("turn")&&!Ki.startsWith("turn:[")&&Ki.includes("transport=udp");return Vi&&!Qi?(Qi=!0,!0):Vi&&!Qi}),delete yi.url,yi.urls=zi?Di[0]:Di,!!Di.length}})}(Di.iceServers),T("ICE servers after filtering:",Di.iceServers)),new Qi(Di)},ln.RTCPeerConnection.prototype=Qi.prototype}function se(ln){ln.RTCRtpSender&&!("replaceTrack"in ln.RTCRtpSender.prototype)&&(ln.RTCRtpSender.prototype.replaceTrack=ln.RTCRtpSender.prototype.setTrack)}function ce(ln){const Pi=L(ln),Qi=ln&&ln.navigator,yi=ln&&ln.MediaStreamTrack;if(Qi.getUserMedia=function(Di,zi,Ki){A("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),Qi.mediaDevices.getUserMedia(Di).then(zi,Ki)},!(Pi.version>55&&"autoGainControl"in Qi.mediaDevices.getSupportedConstraints())){const Di=function(Ki,Vi,Mr){Vi in Ki&&!(Mr in Ki)&&(Ki[Mr]=Ki[Vi],delete Ki[Vi])},zi=Qi.mediaDevices.getUserMedia.bind(Qi.mediaDevices);if(Qi.mediaDevices.getUserMedia=function(Ki){return"object"==typeof Ki&&"object"==typeof Ki.audio&&(Ki=JSON.parse(JSON.stringify(Ki)),Di(Ki.audio,"autoGainControl","mozAutoGainControl"),Di(Ki.audio,"noiseSuppression","mozNoiseSuppression")),zi(Ki)},yi&&yi.prototype.getSettings){const Ki=yi.prototype.getSettings;yi.prototype.getSettings=function(){const Vi=Ki.apply(this,arguments);return Di(Vi,"mozAutoGainControl","autoGainControl"),Di(Vi,"mozNoiseSuppression","noiseSuppression"),Vi}}if(yi&&yi.prototype.applyConstraints){const Ki=yi.prototype.applyConstraints;yi.prototype.applyConstraints=function(Vi){return"audio"===this.kind&&"object"==typeof Vi&&(Vi=JSON.parse(JSON.stringify(Vi)),Di(Vi,"autoGainControl","mozAutoGainControl"),Di(Vi,"noiseSuppression","mozNoiseSuppression")),Ki.apply(this,[Vi])}}}}function Z(ln,Pi){ln.navigator.mediaDevices&&"getDisplayMedia"in ln.navigator.mediaDevices||ln.navigator.mediaDevices&&(ln.navigator.mediaDevices.getDisplayMedia=function(yi){if(!yi||!yi.video){const Di=new DOMException("getDisplayMedia without video constraints is undefined");return Di.name="NotFoundError",Di.code=8,Promise.reject(Di)}return!0===yi.video?yi.video={mediaSource:Pi}:yi.video.mediaSource=Pi,ln.navigator.mediaDevices.getUserMedia(yi)})}function de(ln){"object"==typeof ln&&ln.RTCTrackEvent&&"receiver"in ln.RTCTrackEvent.prototype&&!("transceiver"in ln.RTCTrackEvent.prototype)&&Object.defineProperty(ln.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function ae(ln){const Pi=L(ln);if("object"!=typeof ln||!ln.RTCPeerConnection&&!ln.mozRTCPeerConnection)return;if(!ln.RTCPeerConnection&&ln.mozRTCPeerConnection&&(ln.RTCPeerConnection=ln.mozRTCPeerConnection),Pi.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(Di){const zi=ln.RTCPeerConnection.prototype[Di],Ki={[Di](){return arguments[0]=new("addIceCandidate"===Di?ln.RTCIceCandidate:ln.RTCSessionDescription)(arguments[0]),zi.apply(this,arguments)}};ln.RTCPeerConnection.prototype[Di]=Ki[Di]}),Pi.version<68){const Di=ln.RTCPeerConnection.prototype.addIceCandidate;ln.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():Di.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const Qi={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},yi=ln.RTCPeerConnection.prototype.getStats;ln.RTCPeerConnection.prototype.getStats=function(){const[zi,Ki,Vi]=arguments;return yi.apply(this,[zi||null]).then(Mr=>{if(Pi.version<53&&!Ki)try{Mr.forEach(nr=>{nr.type=Qi[nr.type]||nr.type})}catch(nr){if("TypeError"!==nr.name)throw nr;Mr.forEach((en,Wt)=>{Mr.set(Wt,Object.assign({},en,{type:Qi[en.type]||en.type}))})}return Mr}).then(Ki,Vi)}}function pe(ln){if("object"!=typeof ln||!ln.RTCPeerConnection||!ln.RTCRtpSender||ln.RTCRtpSender&&"getStats"in ln.RTCRtpSender.prototype)return;const Pi=ln.RTCPeerConnection.prototype.getSenders;Pi&&(ln.RTCPeerConnection.prototype.getSenders=function(){const Di=Pi.apply(this,[]);return Di.forEach(zi=>zi._pc=this),Di});const Qi=ln.RTCPeerConnection.prototype.addTrack;Qi&&(ln.RTCPeerConnection.prototype.addTrack=function(){const Di=Qi.apply(this,arguments);return Di._pc=this,Di}),ln.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function _e(ln){if("object"!=typeof ln||!ln.RTCPeerConnection||!ln.RTCRtpSender||ln.RTCRtpSender&&"getStats"in ln.RTCRtpReceiver.prototype)return;const Pi=ln.RTCPeerConnection.prototype.getReceivers;Pi&&(ln.RTCPeerConnection.prototype.getReceivers=function(){const yi=Pi.apply(this,[]);return yi.forEach(Di=>Di._pc=this),yi}),h(ln,"track",Qi=>(Qi.receiver._pc=Qi.srcElement,Qi)),ln.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function ke(ln){!ln.RTCPeerConnection||"removeStream"in ln.RTCPeerConnection.prototype||(ln.RTCPeerConnection.prototype.removeStream=function(Qi){A("removeStream","removeTrack"),this.getSenders().forEach(yi=>{yi.track&&Qi.getTracks().includes(yi.track)&&this.removeTrack(yi)})})}function De(ln){ln.DataChannel&&!ln.RTCDataChannel&&(ln.RTCDataChannel=ln.DataChannel)}function Me(ln){if("object"!=typeof ln||!ln.RTCPeerConnection)return;const Pi=ln.RTCPeerConnection.prototype.addTransceiver;Pi&&(ln.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const yi=arguments[1],Di=yi&&"sendEncodings"in yi;Di&&yi.sendEncodings.forEach(Ki=>{if("rid"in Ki&&!/^[a-z0-9]{0,16}$/i.test(Ki.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in Ki&&!(parseFloat(Ki.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in Ki&&!(parseFloat(Ki.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const zi=Pi.apply(this,arguments);if(Di){const{sender:Ki}=zi,Vi=Ki.getParameters();"encodings"in Vi||(Vi.encodings=yi.sendEncodings,Ki.sendEncodings=yi.sendEncodings,this.setParametersPromises.push(Ki.setParameters(Vi).then(()=>{delete Ki.sendEncodings}).catch(()=>{delete Ki.sendEncodings})))}return zi})}function je(ln){if("object"!=typeof ln||!ln.RTCRtpSender)return;const Pi=ln.RTCRtpSender.prototype.getParameters;Pi&&(ln.RTCRtpSender.prototype.getParameters=function(){var yi=Pi.apply(this,arguments);return"sendEncodings"in this?Object.assign({},{encodings:this.sendEncodings},yi):yi})}function $e(ln){if("object"!=typeof ln||!ln.RTCPeerConnection)return;const Pi=ln.RTCPeerConnection.prototype.createOffer;ln.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>Pi.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):Pi.apply(this,arguments)}}function Oe(ln){if("object"!=typeof ln||!ln.RTCPeerConnection)return;const Pi=ln.RTCPeerConnection.prototype.createAnswer;ln.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>Pi.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):Pi.apply(this,arguments)}}function gt(ln){if("object"==typeof ln&&ln.RTCPeerConnection){if("getLocalStreams"in ln.RTCPeerConnection.prototype||(ln.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in ln.RTCPeerConnection.prototype)){const Pi=ln.RTCPeerConnection.prototype.addTrack;ln.RTCPeerConnection.prototype.addStream=function(yi){this._localStreams||(this._localStreams=[]),this._localStreams.includes(yi)||this._localStreams.push(yi),yi.getAudioTracks().forEach(Di=>Pi.call(this,Di,yi)),yi.getVideoTracks().forEach(Di=>Pi.call(this,Di,yi))},ln.RTCPeerConnection.prototype.addTrack=function(yi,...Di){return Di&&Di.forEach(zi=>{this._localStreams?this._localStreams.includes(zi)||this._localStreams.push(zi):this._localStreams=[zi]}),Pi.apply(this,arguments)}}"removeStream"in ln.RTCPeerConnection.prototype||(ln.RTCPeerConnection.prototype.removeStream=function(Qi){this._localStreams||(this._localStreams=[]);const yi=this._localStreams.indexOf(Qi);if(-1===yi)return;this._localStreams.splice(yi,1);const Di=Qi.getTracks();this.getSenders().forEach(zi=>{Di.includes(zi.track)&&this.removeTrack(zi)})})}}function qt(ln){if("object"==typeof ln&&ln.RTCPeerConnection&&("getRemoteStreams"in ln.RTCPeerConnection.prototype||(ln.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in ln.RTCPeerConnection.prototype))){Object.defineProperty(ln.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(Qi){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=Qi),this.addEventListener("track",this._onaddstreampoly=yi=>{yi.streams.forEach(Di=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(Di))return;this._remoteStreams.push(Di);const zi=new Event("addstream");zi.stream=Di,this.dispatchEvent(zi)})})}});const Pi=ln.RTCPeerConnection.prototype.setRemoteDescription;ln.RTCPeerConnection.prototype.setRemoteDescription=function(){const yi=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(Di){Di.streams.forEach(zi=>{if(yi._remoteStreams||(yi._remoteStreams=[]),yi._remoteStreams.indexOf(zi)>=0)return;yi._remoteStreams.push(zi);const Ki=new Event("addstream");Ki.stream=zi,yi.dispatchEvent(Ki)})}),Pi.apply(yi,arguments)}}}function ye(ln){if("object"!=typeof ln||!ln.RTCPeerConnection)return;const Pi=ln.RTCPeerConnection.prototype,Qi=Pi.createOffer,yi=Pi.createAnswer,Di=Pi.setLocalDescription,zi=Pi.setRemoteDescription,Ki=Pi.addIceCandidate;Pi.createOffer=function(nr,en){const On=Qi.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return en?(On.then(nr,en),Promise.resolve()):On},Pi.createAnswer=function(nr,en){const On=yi.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return en?(On.then(nr,en),Promise.resolve()):On};let Vi=function(Mr,nr,en){const Wt=Di.apply(this,[Mr]);return en?(Wt.then(nr,en),Promise.resolve()):Wt};Pi.setLocalDescription=Vi,Vi=function(Mr,nr,en){const Wt=zi.apply(this,[Mr]);return en?(Wt.then(nr,en),Promise.resolve()):Wt},Pi.setRemoteDescription=Vi,Vi=function(Mr,nr,en){const Wt=Ki.apply(this,[Mr]);return en?(Wt.then(nr,en),Promise.resolve()):Wt},Pi.addIceCandidate=Vi}function Re(ln){const Pi=ln&&ln.navigator;if(Pi.mediaDevices&&Pi.mediaDevices.getUserMedia){const Qi=Pi.mediaDevices,yi=Qi.getUserMedia.bind(Qi);Pi.mediaDevices.getUserMedia=Di=>yi(Ze(Di))}!Pi.getUserMedia&&Pi.mediaDevices&&Pi.mediaDevices.getUserMedia&&(Pi.getUserMedia=function(yi,Di,zi){Pi.mediaDevices.getUserMedia(yi).then(Di,zi)}.bind(Pi))}function Ze(ln){return ln&&void 0!==ln.video?Object.assign({},ln,{video:V(ln.video)}):ln}function et(ln){if(!ln.RTCPeerConnection)return;const Pi=ln.RTCPeerConnection;ln.RTCPeerConnection=function(yi,Di){if(yi&&yi.iceServers){const zi=[];for(let Ki=0;Ki<yi.iceServers.length;Ki++){let Vi=yi.iceServers[Ki];!Vi.hasOwnProperty("urls")&&Vi.hasOwnProperty("url")?(A("RTCIceServer.url","RTCIceServer.urls"),Vi=JSON.parse(JSON.stringify(Vi)),Vi.urls=Vi.url,delete Vi.url,zi.push(Vi)):zi.push(yi.iceServers[Ki])}yi.iceServers=zi}return new Pi(yi,Di)},ln.RTCPeerConnection.prototype=Pi.prototype,"generateCertificate"in Pi&&Object.defineProperty(ln.RTCPeerConnection,"generateCertificate",{get:()=>Pi.generateCertificate})}function xt(ln){"object"==typeof ln&&ln.RTCTrackEvent&&"receiver"in ln.RTCTrackEvent.prototype&&!("transceiver"in ln.RTCTrackEvent.prototype)&&Object.defineProperty(ln.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function un(ln){const Pi=ln.RTCPeerConnection.prototype.createOffer;ln.RTCPeerConnection.prototype.createOffer=function(yi){if(yi){typeof yi.offerToReceiveAudio<"u"&&(yi.offerToReceiveAudio=!!yi.offerToReceiveAudio);const Di=this.getTransceivers().find(Ki=>"audio"===Ki.receiver.track.kind);!1===yi.offerToReceiveAudio&&Di?"sendrecv"===Di.direction?Di.setDirection?Di.setDirection("sendonly"):Di.direction="sendonly":"recvonly"===Di.direction&&(Di.setDirection?Di.setDirection("inactive"):Di.direction="inactive"):!0===yi.offerToReceiveAudio&&!Di&&this.addTransceiver("audio"),typeof yi.offerToReceiveVideo<"u"&&(yi.offerToReceiveVideo=!!yi.offerToReceiveVideo);const zi=this.getTransceivers().find(Ki=>"video"===Ki.receiver.track.kind);!1===yi.offerToReceiveVideo&&zi?"sendrecv"===zi.direction?zi.setDirection?zi.setDirection("sendonly"):zi.direction="sendonly":"recvonly"===zi.direction&&(zi.setDirection?zi.setDirection("inactive"):zi.direction="inactive"):!0===yi.offerToReceiveVideo&&!zi&&this.addTransceiver("video")}return Pi.apply(this,arguments)}}function ct(ln){"object"!=typeof ln||ln.AudioContext||(ln.AudioContext=ln.webkitAudioContext)}var Gt=m(985),pn=m.n(Gt);function st(ln){if(!ln.RTCIceCandidate||ln.RTCIceCandidate&&"foundation"in ln.RTCIceCandidate.prototype)return;const Pi=ln.RTCIceCandidate;ln.RTCIceCandidate=function(yi){if("object"==typeof yi&&yi.candidate&&0===yi.candidate.indexOf("a=")&&((yi=JSON.parse(JSON.stringify(yi))).candidate=yi.candidate.substr(2)),yi.candidate&&yi.candidate.length){const Di=new Pi(yi),zi=pn().parseCandidate(yi.candidate),Ki=Object.assign(Di,zi);return Ki.toJSON=function(){return{candidate:Ki.candidate,sdpMid:Ki.sdpMid,sdpMLineIndex:Ki.sdpMLineIndex,usernameFragment:Ki.usernameFragment}},Ki}return new Pi(yi)},ln.RTCIceCandidate.prototype=Pi.prototype,h(ln,"icecandidate",Qi=>(Qi.candidate&&Object.defineProperty(Qi,"candidate",{value:new ln.RTCIceCandidate(Qi.candidate),writable:"false"}),Qi))}function mn(ln){if(!ln.RTCPeerConnection)return;const Pi=L(ln);"sctp"in ln.RTCPeerConnection.prototype||Object.defineProperty(ln.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const Ki=ln.RTCPeerConnection.prototype.setRemoteDescription;ln.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===Pi.browser&&Pi.version>=76){const{sdpSemantics:Mr}=this.getConfiguration();"plan-b"===Mr&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(function(Vi){if(!Vi||!Vi.sdp)return!1;const Mr=pn().splitSections(Vi.sdp);return Mr.shift(),Mr.some(nr=>{const en=pn().parseMLine(nr);return en&&"application"===en.kind&&-1!==en.protocol.indexOf("SCTP")})}(arguments[0])){const Mr=function(Vi){const Mr=Vi.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===Mr||Mr.length<2)return-1;const nr=parseInt(Mr[1],10);return nr!=nr?-1:nr}(arguments[0]),nr=function(Vi){let Mr=65536;return"firefox"===Pi.browser&&(Mr=Pi.version<57?-1===Vi?16384:2147483637:Pi.version<60?57===Pi.version?65535:65536:2147483637),Mr}(Mr),en=function(Vi,Mr){let nr=65536;"firefox"===Pi.browser&&57===Pi.version&&(nr=65535);const en=pn().matchPrefix(Vi.sdp,"a=max-message-size:");return en.length>0?nr=parseInt(en[0].substr(19),10):"firefox"===Pi.browser&&-1!==Mr&&(nr=2147483637),nr}(arguments[0],Mr);let Wt;Wt=0===nr&&0===en?Number.POSITIVE_INFINITY:0===nr||0===en?Math.max(nr,en):Math.min(nr,en);const On={};Object.defineProperty(On,"maxMessageSize",{get:()=>Wt}),this._sctp=On}return Ki.apply(this,arguments)}}function Bn(ln){if(!ln.RTCPeerConnection||!("createDataChannel"in ln.RTCPeerConnection.prototype))return;function Pi(yi,Di){const zi=yi.send;yi.send=function(){const Vi=arguments[0];if("open"===yi.readyState&&Di.sctp&&(Vi.length||Vi.size||Vi.byteLength)>Di.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+Di.sctp.maxMessageSize+" bytes)");return zi.apply(yi,arguments)}}const Qi=ln.RTCPeerConnection.prototype.createDataChannel;ln.RTCPeerConnection.prototype.createDataChannel=function(){const Di=Qi.apply(this,arguments);return Pi(Di,this),Di},h(ln,"datachannel",yi=>(Pi(yi.channel,yi.target),yi))}function En(ln){if(!ln.RTCPeerConnection||"connectionState"in ln.RTCPeerConnection.prototype)return;const Pi=ln.RTCPeerConnection.prototype;Object.defineProperty(Pi,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(Pi,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(Qi){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),Qi&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=Qi)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(Qi=>{const yi=Pi[Qi];Pi[Qi]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=Di=>{const zi=Di.target;if(zi._lastConnectionState!==zi.connectionState){zi._lastConnectionState=zi.connectionState;const Ki=new Event("connectionstatechange",Di);zi.dispatchEvent(Ki)}return Di},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),yi.apply(this,arguments)}})}function Cn(ln){if(!ln.RTCPeerConnection)return;const Pi=L(ln);if("chrome"===Pi.browser&&Pi.version>=71||"safari"===Pi.browser&&Pi.version>=605)return;const Qi=ln.RTCPeerConnection.prototype.setRemoteDescription;ln.RTCPeerConnection.prototype.setRemoteDescription=function(Di){return Di&&Di.sdp&&-1!==Di.sdp.indexOf("\na=extmap-allow-mixed")&&(Di.sdp=Di.sdp.split("\n").filter(zi=>"a=extmap-allow-mixed"!==zi.trim()).join("\n")),Qi.apply(this,arguments)}}!function fn({window:ln}={},Pi={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const Qi=T,yi=L(ln),Di={browserDetails:yi,commonShim:y,extractVersion:a,disableLog:g,disableWarnings:c};switch(yi.browser){case"chrome":if(!P||!te||!Pi.shimChrome)return Qi("Chrome shim is not included in this adapter release."),Di;if(null===yi.version)return Qi("Chrome shim can not determine version, not shimming."),Di;Qi("adapter.js shimming chrome."),Di.browserShim=P,k(ln),G(ln),te(ln),Y(ln),z(ln),K(ln),$(ln),ee(ln),X(ln),st(ln),En(ln),mn(ln),Bn(ln),Cn(ln);break;case"firefox":if(!O||!ae||!Pi.shimFirefox)return Qi("Firefox shim is not included in this adapter release."),Di;Qi("adapter.js shimming firefox."),Di.browserShim=O,ce(ln),ae(ln),de(ln),ke(ln),pe(ln),_e(ln),De(ln),Me(ln),je(ln),$e(ln),Oe(ln),st(ln),En(ln),mn(ln),Bn(ln);break;case"edge":if(!v||!N||!Pi.shimEdge)return Qi("MS edge shim is not included in this adapter release."),Di;Qi("adapter.js shimming edge."),Di.browserShim=v,xe(ln),ue(ln),N(ln),se(ln),mn(ln),Bn(ln);break;case"safari":if(!S||!Pi.shimSafari)return Qi("Safari shim is not included in this adapter release."),Di;Qi("adapter.js shimming safari."),Di.browserShim=S,et(ln),un(ln),ye(ln),gt(ln),qt(ln),xt(ln),Re(ln),ct(ln),st(ln),mn(ln),Bn(ln),Cn(ln);break;default:Qi("Unsupported browser!")}}({window}),m(393);var Xn=Ragnarok.GridApp,rn=Ragnarok.ChooseStreamingSettings,ai=Ragnarok.ChooseStreamingResolution,ri=Ragnarok.InitializeUtils,Ne=Ragnarok.GetSupportedAudioChannelCount,zt=Ragnarok.GetDeviceCapabilities,vt=Ragnarok.getSupportedCodecs,Ct=Ragnarok.VirtualButton,it=Ragnarok.VirtualGamepadHandler,Ut=Ragnarok.ConfigureRagnarokSettings,jn=Ragnarok.CHANGELIST,wn=Ragnarok.AuthType,nt=Ragnarok.performHttpRequest,on=Ragnarok.AddPlatformTelemetry,mt=Ragnarok.IsFeatureSupported,_n=Ragnarok.CalculateMaxBitrateKbps,wt=Ragnarok.CalculateDataUsage,Un=Ragnarok.LogImpl,Oi=Ragnarok.EVENTS,At=Ragnarok.HotkeyModifier,Hn=Ragnarok.defaultInputConfigFlags,pi=Ragnarok.StreamingProfilePreset,Zi=Ragnarok.TrackType,Lr=Ragnarok.STREAMING_STATE,Kr=Ragnarok.RNotificationCode,Qt=Ragnarok.ScErrorCode,di=Ragnarok.configureSessionControlSettings,ji=Ragnarok.DeviceType,vi=Ragnarok.DeviceOS,Zt=Ragnarok.NetworkType,Zn=Ragnarok.registerLogCallback,Dn=Ragnarok.LogLevel,zn=Ragnarok.createSessionControl,Ti=Ragnarok.SdrHdrMode,Xt=Ragnarok.Usage,xn=Ragnarok.Protocol,mi=Ragnarok.AppLevelProtocol,$n=Ragnarok.AdState,Pt=Ragnarok.AdAction,Ii=Ragnarok.BitDepth,ar=Ragnarok.ClientType,Jt=Ragnarok.SessionState,ki=Ragnarok.SessionProgressState,Fr=Ragnarok.AppLaunchMode,xo=Ragnarok.updateSessionParameters,qn=Ragnarok.isCancelCode,Sr=Ragnarok.isResumableSessionState,ni=Ragnarok.getResumableSession,he=Ragnarok.SessionControlTelemetry,Ee=Ragnarok.GsErrorCode,Pe=Ragnarok.GridServerSettings,Qe=Ragnarok.ConfigureGridServerSettings,Be=Ragnarok.BrowserName,Mt=Ragnarok.PlatformName,Vt=Ragnarok.getPlatformDetails,Vn=Ragnarok.DeviceModel,si=Ragnarok.DeviceVendor,Rn=Ragnarok.CLIENT_VERSION,_i=Ragnarok.CLIENT_IDENTIFICATION,wr=Ragnarok.SESSIONMODIFY_ACTION,hr=Ragnarok.AudioFormat,Qr=Ragnarok.ClientStreamer,Yr=Ragnarok.GS_EVENTS,no=Ragnarok.GridServer,Tr=Ragnarok.PassThruServer,ro=Ragnarok.VsyncType,po=Ragnarok.getDeviceCapabilities,Os=Ragnarok.serializeDeviceCapabilities,es=Ragnarok.PayloadOSType,Bs=Ragnarok.PayloadBrowserType,li=Ragnarok.PayloadDeviceType,dr=Ragnarok.ClientHeaderOSType,Tn=Ragnarok.ClientHeaderBrowserType,tn=Ragnarok.ClientHeaderDeviceType,vn=Ragnarok.translatePlatformDetailsForPayload,oi=Ragnarok.translatePlatformDetailsForClientHeader,Ci=Ragnarok.getStreamerType,or=Ragnarok.BrowserFeature,yr=Ragnarok.isFeatureSupported,$r=Ragnarok.shouldDefaultEnableMic,ko=Ragnarok.getRecommendedBitrate,qr=Ragnarok.getStreamStartParameters,lo=Ragnarok.estimateDataUsage,ts=Ragnarok.NskTelemetry,Ls=Ragnarok.createNskStreamClient,Xr=Ragnarok.configureRagnarokSettings,Hs=Ragnarok.getNetworkTypeDetector,Ua=Ragnarok.RErrorCode,Ya=Ragnarok.HidType,Ba=Ragnarok.InputType,Pa=Ragnarok.VideoCodecType,ys=Ragnarok.MicState,Ga=Ragnarok.DynamicStreamingMode,To=Ragnarok.MediaTrackKind,ss=Ragnarok.StreamStopReason,Gs=Ragnarok.StreamWarningType,va=Ragnarok.CursorType,Ca=Ragnarok.StreamingState})(),Ue.exports=_})()},72271:function(Ue,W,d){"use strict";var n=this&&this.__createBinding||(Object.create?function(p,m,_,P){void 0===P&&(P=_),Object.defineProperty(p,P,{enumerable:!0,get:function(){return m[_]}})}:function(p,m,_,P){void 0===P&&(P=_),p[P]=m[_]}),l=this&&this.__exportStar||function(p,m){for(var _ in p)"default"!==_&&!Object.prototype.hasOwnProperty.call(m,_)&&n(m,p,_)};Object.defineProperty(W,"__esModule",{value:!0}),l(d(27621),W),l(d(51814),W),l(d(78564),W),l(d(24538),W)},78564:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.Logger=void 0;const n=d(51814);W.Logger=class l{constructor(m){this.loggingLevel=m}info(...m){this.logEntry(n.LoggingLevel.Info,m,console.log.bind(console))}error(...m){this.logEntry(n.LoggingLevel.Error,m,console.error.bind(console))}warn(...m){this.logEntry(n.LoggingLevel.Warning,m,console.warn.bind(console))}verbose(...m){this.logEntry(n.LoggingLevel.Verbose,m,console.log.bind(console))}event(...m){this.logEntry(n.LoggingLevel.Event,m,console.log.bind(console))}logEntry(m,_,P){P("[Cloud Variable SDK] "+_)}}},51814:(Ue,W)=>{"use strict";var S;Object.defineProperty(W,"__esModule",{value:!0}),W.openTracingConfig=W.AxiosSpanName=W.SpanName=W.ActivityType=W.ExperimentActivationType=W.ActivityExperienceType=W.CommonClientVariant=W.CommonClientType=W.DeviceType=W.CloudVariableStatus=W.StorageType=W.LoggingLevel=void 0,(S=W.LoggingLevel||(W.LoggingLevel={}))[S.None=-1]="None",S[S.Error=1]="Error",S[S.Warning=2]="Warning",S[S.Info=3]="Info",S[S.Verbose=4]="Verbose",S[S.Event=5]="Event",function(S){S.IndexedDB="IndexedDB",S.SharedStorage="SharedStoage",S.LocalStorage="LocalStorage",S.AbHub="AbHub"}(W.StorageType||(W.StorageType={})),function(S){S.Created="Created",S.Updated="Updated",S.Deleted="Deleted",S.Unknown="Unknown"}(W.CloudVariableStatus||(W.CloudVariableStatus={})),function(S){S.Desktop="Desktop",S.Laptop="Laptop",S.TV="TV",S.Phone="Phone",S.Tablet="Tablet",S.Server="Server",S.Undefined="undefined"}(W.DeviceType||(W.DeviceType={})),function(S){S.Native="Native",S.Browser="Browser",S.GFNSDK="GFNSDK",S.Undefined="undefined"}(W.CommonClientType||(W.CommonClientType={})),function(S){S.iBeta="iBeta",S.Release="Release",S.Undefined="undefined"}(W.CommonClientVariant||(W.CommonClientVariant={})),function(S){S.Variant="Variant",S.Control="Control",S.Default="Default",S.Alternate="Alternate"}(W.ActivityExperienceType||(W.ActivityExperienceType={})),function(S){S.USER_ID="USER_ID",S.DEVICE_ID="DEVICE_ID",S.SESSION_ID="SESSION_ID"}(W.ExperimentActivationType||(W.ExperimentActivationType={})),function(S){S.AB="AB",S.Unknown="Unknown",S.XT="XT",S.FR="FR"}(W.ActivityType||(W.ActivityType={})),W.SpanName="GxTargetGetCloudVariable",W.AxiosSpanName="AxiosGetCloudVariable",W.openTracingConfig={access_token:"zpdR5rGHUKaUny6FJUZZkEfSVhzkdRSIz6dCpsjvRtQ0TSQOXZdZlbcUOSaugWHyZnMUe6PGmK60Wi59/rk=",collector_host:"lightstep.kaizen.nvidia.com",collector_port:443,component_name:"gfn-web-client",disable_clock_skew_correction:!0}},27621:function(Ue,W,d){"use strict";var n=d(8536).default,l=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(W,"__esModule",{value:!0}),W.CloudVariableSdkService=void 0;const p=l(d(60220)),m=l(d(81806)),_=l(d(88507)),P=d(26875),v=d(73162),O=d(54326),S=d(24877),y=d(51814),r=d(24538),i=d(78564);W.CloudVariableSdkService=class a{constructor(g,c,T,A,L){this.sdkConfig=g,this.url=this.url=g.url,this.cvChangeListenersByName=new Map,this.cvNameToResult=new Map,this.logger=new i.Logger(g.loggingLevel),this.readFromStorage=T||this.getIndexedDBCloudVariable,this.writeToStorage=A||this.setIndexedDBCloudVariable,this.buildClientStorageKeyForCv=L,this.cvChangeListeners=[],this.nvOpenTracing=new O.NvOpenTracingService,this.initializeOpenTracing(c),!T&&!A&&(this.idbName="gfnclient",this.storeName="kodiakSdkCacheStore",this.openDbInstance())}subscribeToAllCloudVariables(g){var c=this;return n(function*(){c.cvChangeListeners.push(g)})()}subscribeToSingleCloudVariable(g,c){let T=this.cvChangeListenersByName.get(g);T?T.push(c):T=[c],this.cvChangeListenersByName.set(g,T)}getCloudVariables(g,c,T,A){var L=this;return n(function*(){if(c)return L.getCloudVariablesFromCache(g);const x=yield L.callGetCloudVariableApi(g,T,A);if(200!==x.status)return L.getCloudVariablesFromCache(g);const V=(0,r.formatCloudVariableResponse)(x),D=L.detectGlobalDifferentCloudVariables(V,g);return L.triggerCallbackFuncs(D),L.updateIDB(D),V})()}getCloudVariable(g,c,T,A){var L=this;return n(function*(){if(g){const x=yield L.getCloudVariables([g],c,T,A);return x.has(g)?x.get(g):null}return L.logger.error("Cannot request empty cloud variable"),null})()}initializeOpenTracing(g){this.tracer=new S.Tracer(g),this.nvOpenTracing.setTracer(this.tracer)}updateGlobalTags(g){this.nvOpenTracing.setGlobalTags(g)}updateServerUrl(g){this.url=g}startSpan(g,c){return this.nvOpenTracing.startSpan(g,c)}closeSpan(g){this.nvOpenTracing.closeSpan(g)}callGetCloudVariableApi(g,c,T){var A=this;return n(function*(){const[L,x]=A.nvOpenTracing.injectSpanHttpHeaders(y.SpanName,T),V=p.default.create();(0,_.default)(A.tracer)(V,{spanName:y.AxiosSpanName,span:x}),(0,m.default)(V,{retries:A.sdkConfig.defaultRetries,retryDelay:()=>A.sdkConfig.defaultTimeBetweenRetries,retryCondition:()=>!0});const F=A.sdkConfig.clientInfo,I=V.get(A.url+"/cloudvariables/v3",{params:{cvName:g.join(","),...F,clientParams:c},data:{},headers:{"Content-type":"application/json",...L}}).then(k=>k);return A.nvOpenTracing.handleHttpEndpointSpan(I,x)})()}getCloudVariablesFromCache(g){var c=this;return n(function*(){let T=new Map;for(const A of g){const L=yield c.readFromStorageWrapper(A);L&&T.set(A,L)}return T})()}detectGlobalDifferentCloudVariables(g,c){const T=new Map;return g.forEach((A,L)=>{const x=this.cvNameToResult.get(L);x?(0,P.isEqual)(A,x)&&(T.set(A.name,(0,r.formatCloudVariableClientResponse)(A,!1,y.CloudVariableStatus.Updated)),this.cvNameToResult.set(L,A)):(T.set(A.name,(0,r.formatCloudVariableClientResponse)(A,!1,y.CloudVariableStatus.Created)),this.cvNameToResult.set(L,A))}),this.cvNameToResult.forEach((A,L)=>{c.includes(L)&&!g.has(L)&&A.activity&&(T.set(L,(0,r.formatCloudVariableClientResponse)({activity:{id:A.activity.id}},!1,y.CloudVariableStatus.Deleted)),this.cvNameToResult.set(L,{}),this.writeToStorageWrapper(L,{}))}),T}triggerCallbackFuncs(g){this.cvChangeListeners.forEach(c=>{c(g)}),g.forEach((c,T)=>{const A=this.cvChangeListenersByName.get(T);A&&A.forEach(L=>L(g))})}updateIDB(g){g.forEach((c,T)=>{this.writeToStorageWrapper(T,{activity:c.activity,result:c.variation,name:c.name,metadata:c.metadata,value:c.value})})}readFromStorageWrapper(g){var c=this;return n(function*(){const T=(0,r.generateUserIdStorageKey)(g,c.sdkConfig.clientInfo.userId);let A=yield c.readFromStorage(T);if(A)return A;const L=(0,r.generateDeviceIdStorageKey)(g,c.sdkConfig.clientInfo.deviceId);return A=yield c.readFromStorage(L),A||null})()}writeToStorageWrapper(g,c){if((0,P.isEmpty)(c)||void 0===c.name)return;let T;T=this.buildClientStorageKeyForCv?this.buildClientStorageKeyForCv(c.activity.activationType):this.generateIndexedDBKey(c),this.writeToStorage(T,c)}openDbInstance(){var g=this;return n(function*(){const c=yield(0,v.openDB)(g.idbName),T=c.version,A=g.storeName;c.objectStoreNames.contains(A)||(0,v.openDB)(g.idbName,T+1,{upgrade(L){L.createObjectStore(A)}}),c.close()})()}generateIndexedDBKey(g){const c=g.name;let T;switch(g.activity.activationType){case y.ExperimentActivationType.USER_ID:T=(0,r.generateUserIdStorageKey)(c,this.sdkConfig.clientInfo.userId);break;case y.ExperimentActivationType.DEVICE_ID:T=(0,r.generateDeviceIdStorageKey)(c,this.sdkConfig.clientInfo.deviceId);break;default:T=c+"-undefined"}return T}getIndexedDBCloudVariable(g){var c=this;return n(function*(){const T=g.split("-")[0],A=yield(0,v.openDB)(c.idbName),L=yield A.get(c.storeName,g);if(A.close(),L){const x=L.cloudVariables.filter(V=>V.name===T);return 0===x.length?null:x[0]}return null})()}setIndexedDBCloudVariable(g,c){var T=this;return n(function*(){let A=yield(0,v.openDB)(T.idbName);const L=T.storeName,x=A.version;if((0,P.isEmpty)(c)||void 0===c.name)return yield A.delete(T.storeName,g),void A.close();A.objectStoreNames.contains(L)||(A=yield(0,v.openDB)(T.idbName,x+1,{upgrade(V){V.createObjectStore(L)}})),yield A.put(T.storeName,c,g),A.close()})()}}},24538:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.getCommonClientVariant=W.generateDeviceIdStorageKey=W.generateUserIdStorageKey=W.formatCloudVariableClientResponse=W.formatCloudVariableResponse=void 0;const n=d(51814);W.formatCloudVariableResponse=function l(v){const O=v.data,S=new Map;return O.cloudVariables.forEach(y=>{S.set(y.name,{name:y.name,result:y.result,value:y.value,activity:y.activity,metadata:y.metadata})}),S},W.formatCloudVariableClientResponse=function p(v,O,S){return{name:v.name,variation:v.result,value:v.value,activity:v.activity,metadata:v.metadata,isCachedResult:O,state:S}},W.generateUserIdStorageKey=function m(v,O){return v+"-"+O},W.generateDeviceIdStorageKey=function _(v,O){return v+"-"+O},W.getCommonClientVariant=function P(v){switch(v){case"ibeta":return n.CommonClientVariant.iBeta;case"release":return n.CommonClientVariant.Release;default:return n.CommonClientVariant.Undefined}}},88507:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});const n=d(26745);function p(v){if(v.config){const{span:O}=v.config;try{O.setTag(n.Tags.ERROR,!0),O.setTag("reason","error in request"),O.finish()}catch{}}return Promise.reject(v)}function m(v){if(v.config&&v.config.span){const{span:O}=v.config;try{O.setTag(n.Tags.HTTP_STATUS_CODE,v.status),O.finish()}catch{}}return v}function _(v){if(v.config){const{span:O}=v.config;try{O.setTag(n.Tags.ERROR,!0),O.setTag(n.Tags.HTTP_STATUS_CODE,v.code),O.finish()}catch{}}return Promise.reject(v)}W.default=function P(v=n.globalTracer()){return function(S,y={}){const{spanName:r,span:i}=y;if(!S)throw new TypeError("axios-opentracing: axios or axios instance required!");if(!y||!r&&!i)throw new TypeError("axios-opentracing: either span or spanName should be passed in options!");const a=i||v.startSpan(r);return S.interceptors.request.use(function l(v,O){return function(y){const r=y;try{const i=v.startSpan(`${y.method}: ${y.baseURL}${y.url}`,{childOf:O});i.setTag(n.Tags.HTTP_METHOD,y.method),i.setTag(n.Tags.HTTP_URL,y.url),i.setTag(n.Tags.SPAN_KIND,n.Tags.SPAN_KIND_RPC_CLIENT),v.inject(i,n.FORMAT_HTTP_HEADERS,y.headers),r.span=i}catch{}return r}}(v,a),p),S.interceptors.response.use(m,_),a}}},60220:(Ue,W,d)=>{Ue.exports=d(69402)},86563:(Ue,W,d)=>{"use strict";var n=d(16945),l=d(97403),p=d(17593),m=d(26985),_=d(18004),P=d(27199),v=d(6771),O=d(42297),S=d(85600),y=d(4972),r=d(43717);Ue.exports=function(a){return new Promise(function(g,c){var x,T=a.data,A=a.headers,L=a.responseType;function V(){a.cancelToken&&a.cancelToken.unsubscribe(x),a.signal&&a.signal.removeEventListener("abort",x)}n.isFormData(T)&&n.isStandardBrowserEnv()&&delete A["Content-Type"];var D=new XMLHttpRequest;if(a.auth){var F=a.auth.username||"",I=a.auth.password?unescape(encodeURIComponent(a.auth.password)):"";A.Authorization="Basic "+btoa(F+":"+I)}var k=_(a.baseURL,a.url);function R(){if(D){var K="getAllResponseHeaders"in D?P(D.getAllResponseHeaders()):null;l(function(z){g(z),V()},function(z){c(z),V()},{data:L&&"text"!==L&&"json"!==L?D.response:D.responseText,status:D.status,statusText:D.statusText,headers:K,config:a,request:D}),D=null}}if(D.open(a.method.toUpperCase(),m(k,a.params,a.paramsSerializer),!0),D.timeout=a.timeout,"onloadend"in D?D.onloadend=R:D.onreadystatechange=function(){!D||4!==D.readyState||0===D.status&&(!D.responseURL||0!==D.responseURL.indexOf("file:"))||setTimeout(R)},D.onabort=function(){D&&(c(new S("Request aborted",S.ECONNABORTED,a,D)),D=null)},D.onerror=function(){c(new S("Network Error",S.ERR_NETWORK,a,D,D)),D=null},D.ontimeout=function(){var $=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";a.timeoutErrorMessage&&($=a.timeoutErrorMessage),c(new S($,(a.transitional||O).clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,a,D)),D=null},n.isStandardBrowserEnv()){var G=(a.withCredentials||v(k))&&a.xsrfCookieName?p.read(a.xsrfCookieName):void 0;G&&(A[a.xsrfHeaderName]=G)}"setRequestHeader"in D&&n.forEach(A,function($,ee){typeof T>"u"&&"content-type"===ee.toLowerCase()?delete A[ee]:D.setRequestHeader(ee,$)}),n.isUndefined(a.withCredentials)||(D.withCredentials=!!a.withCredentials),L&&"json"!==L&&(D.responseType=a.responseType),"function"==typeof a.onDownloadProgress&&D.addEventListener("progress",a.onDownloadProgress),"function"==typeof a.onUploadProgress&&D.upload&&D.upload.addEventListener("progress",a.onUploadProgress),(a.cancelToken||a.signal)&&(x=function(K){D&&(c(!K||K&&K.type?new y:K),D.abort(),D=null)},a.cancelToken&&a.cancelToken.subscribe(x),a.signal&&(a.signal.aborted?x():a.signal.addEventListener("abort",x))),T||(T=null);var Y=r(k);Y&&-1===["http","https","file"].indexOf(Y)?c(new S("Unsupported protocol "+Y+":",S.ERR_BAD_REQUEST,a)):D.send(T)})}},69402:(Ue,W,d)=>{"use strict";var n=d(16945),l=d(12063),p=d(36048),m=d(11256),v=function P(O){var S=new p(O),y=l(p.prototype.request,S);return n.extend(y,p.prototype,S),n.extend(y,S),y.create=function(i){return P(m(O,i))},y}(d(25923));v.Axios=p,v.CanceledError=d(4972),v.CancelToken=d(96240),v.isCancel=d(61721),v.VERSION=d(27938).version,v.toFormData=d(97531),v.AxiosError=d(85600),v.Cancel=v.CanceledError,v.all=function(S){return Promise.all(S)},v.spread=d(98631),v.isAxiosError=d(8816),Ue.exports=v,Ue.exports.default=v},96240:(Ue,W,d)=>{"use strict";var n=d(4972);function l(p){if("function"!=typeof p)throw new TypeError("executor must be a function.");var m;this.promise=new Promise(function(v){m=v});var _=this;this.promise.then(function(P){if(_._listeners){var v,O=_._listeners.length;for(v=0;v<O;v++)_._listeners[v](P);_._listeners=null}}),this.promise.then=function(P){var v,O=new Promise(function(S){_.subscribe(S),v=S}).then(P);return O.cancel=function(){_.unsubscribe(v)},O},p(function(v){_.reason||(_.reason=new n(v),m(_.reason))})}l.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},l.prototype.subscribe=function(m){this.reason?m(this.reason):this._listeners?this._listeners.push(m):this._listeners=[m]},l.prototype.unsubscribe=function(m){if(this._listeners){var _=this._listeners.indexOf(m);-1!==_&&this._listeners.splice(_,1)}},l.source=function(){var m;return{token:new l(function(v){m=v}),cancel:m}},Ue.exports=l},4972:(Ue,W,d)=>{"use strict";var n=d(85600);function p(m){n.call(this,m??"canceled",n.ERR_CANCELED),this.name="CanceledError"}d(16945).inherits(p,n,{__CANCEL__:!0}),Ue.exports=p},61721:Ue=>{"use strict";Ue.exports=function(d){return!(!d||!d.__CANCEL__)}},36048:(Ue,W,d)=>{"use strict";var n=d(16945),l=d(26985),p=d(48762),m=d(56329),_=d(11256),P=d(18004),v=d(59520),O=v.validators;function S(y){this.defaults=y,this.interceptors={request:new p,response:new p}}S.prototype.request=function(r,i){"string"==typeof r?(i=i||{}).url=r:i=r||{},(i=_(this.defaults,i)).method=i.method?i.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var a=i.transitional;void 0!==a&&v.assertOptions(a,{silentJSONParsing:O.transitional(O.boolean),forcedJSONParsing:O.transitional(O.boolean),clarifyTimeoutError:O.transitional(O.boolean)},!1);var h=[],g=!0;this.interceptors.request.forEach(function(F){"function"==typeof F.runWhen&&!1===F.runWhen(i)||(g=g&&F.synchronous,h.unshift(F.fulfilled,F.rejected))});var T,c=[];if(this.interceptors.response.forEach(function(F){c.push(F.fulfilled,F.rejected)}),!g){var A=[m,void 0];for(Array.prototype.unshift.apply(A,h),A=A.concat(c),T=Promise.resolve(i);A.length;)T=T.then(A.shift(),A.shift());return T}for(var L=i;h.length;){var x=h.shift(),V=h.shift();try{L=x(L)}catch(D){V(D);break}}try{T=m(L)}catch(D){return Promise.reject(D)}for(;c.length;)T=T.then(c.shift(),c.shift());return T},S.prototype.getUri=function(r){r=_(this.defaults,r);var i=P(r.baseURL,r.url);return l(i,r.params,r.paramsSerializer)},n.forEach(["delete","get","head","options"],function(r){S.prototype[r]=function(i,a){return this.request(_(a||{},{method:r,url:i,data:(a||{}).data}))}}),n.forEach(["post","put","patch"],function(r){function i(a){return function(g,c,T){return this.request(_(T||{},{method:r,headers:a?{"Content-Type":"multipart/form-data"}:{},url:g,data:c}))}}S.prototype[r]=i(),S.prototype[r+"Form"]=i(!0)}),Ue.exports=S},85600:(Ue,W,d)=>{"use strict";var n=d(16945);function l(_,P,v,O,S){Error.call(this),this.message=_,this.name="AxiosError",P&&(this.code=P),v&&(this.config=v),O&&(this.request=O),S&&(this.response=S)}n.inherits(l,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var p=l.prototype,m={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(_){m[_]={value:_}}),Object.defineProperties(l,m),Object.defineProperty(p,"isAxiosError",{value:!0}),l.from=function(_,P,v,O,S,y){var r=Object.create(p);return n.toFlatObject(_,r,function(a){return a!==Error.prototype}),l.call(r,_.message,P,v,O,S),r.name=_.name,y&&Object.assign(r,y),r},Ue.exports=l},48762:(Ue,W,d)=>{"use strict";var n=d(16945);function l(){this.handlers=[]}l.prototype.use=function(m,_,P){return this.handlers.push({fulfilled:m,rejected:_,synchronous:!!P&&P.synchronous,runWhen:P?P.runWhen:null}),this.handlers.length-1},l.prototype.eject=function(m){this.handlers[m]&&(this.handlers[m]=null)},l.prototype.forEach=function(m){n.forEach(this.handlers,function(P){null!==P&&m(P)})},Ue.exports=l},18004:(Ue,W,d)=>{"use strict";var n=d(30804),l=d(24617);Ue.exports=function(m,_){return m&&!n(_)?l(m,_):_}},56329:(Ue,W,d)=>{"use strict";var n=d(16945),l=d(96734),p=d(61721),m=d(25923),_=d(4972);function P(v){if(v.cancelToken&&v.cancelToken.throwIfRequested(),v.signal&&v.signal.aborted)throw new _}Ue.exports=function(O){return P(O),O.headers=O.headers||{},O.data=l.call(O,O.data,O.headers,O.transformRequest),O.headers=n.merge(O.headers.common||{},O.headers[O.method]||{},O.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(r){delete O.headers[r]}),(O.adapter||m.adapter)(O).then(function(r){return P(O),r.data=l.call(O,r.data,r.headers,O.transformResponse),r},function(r){return p(r)||(P(O),r&&r.response&&(r.response.data=l.call(O,r.response.data,r.response.headers,O.transformResponse))),Promise.reject(r)})}},11256:(Ue,W,d)=>{"use strict";var n=d(16945);Ue.exports=function(p,m){m=m||{};var _={};function P(i,a){return n.isPlainObject(i)&&n.isPlainObject(a)?n.merge(i,a):n.isPlainObject(a)?n.merge({},a):n.isArray(a)?a.slice():a}function v(i){return n.isUndefined(m[i])?n.isUndefined(p[i])?void 0:P(void 0,p[i]):P(p[i],m[i])}function O(i){if(!n.isUndefined(m[i]))return P(void 0,m[i])}function S(i){return n.isUndefined(m[i])?n.isUndefined(p[i])?void 0:P(void 0,p[i]):P(void 0,m[i])}function y(i){return i in m?P(p[i],m[i]):i in p?P(void 0,p[i]):void 0}var r={url:O,method:O,data:O,baseURL:S,transformRequest:S,transformResponse:S,paramsSerializer:S,timeout:S,timeoutMessage:S,withCredentials:S,adapter:S,responseType:S,xsrfCookieName:S,xsrfHeaderName:S,onUploadProgress:S,onDownloadProgress:S,decompress:S,maxContentLength:S,maxBodyLength:S,beforeRedirect:S,transport:S,httpAgent:S,httpsAgent:S,cancelToken:S,socketPath:S,responseEncoding:S,validateStatus:y};return n.forEach(Object.keys(p).concat(Object.keys(m)),function(a){var h=r[a]||v,g=h(a);n.isUndefined(g)&&h!==y||(_[a]=g)}),_}},97403:(Ue,W,d)=>{"use strict";var n=d(85600);Ue.exports=function(p,m,_){var P=_.config.validateStatus;_.status&&P&&!P(_.status)?m(new n("Request failed with status code "+_.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(_.status/100)-4],_.config,_.request,_)):p(_)}},96734:(Ue,W,d)=>{"use strict";var n=d(16945),l=d(25923);Ue.exports=function(m,_,P){var v=this||l;return n.forEach(P,function(S){m=S.call(v,m,_)}),m}},25923:(Ue,W,d)=>{"use strict";var n=d(16945),l=d(92143),p=d(85600),m=d(42297),_=d(97531),P={"Content-Type":"application/x-www-form-urlencoded"};function v(r,i){!n.isUndefined(r)&&n.isUndefined(r["Content-Type"])&&(r["Content-Type"]=i)}var y={transitional:m,adapter:function O(){var r;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process))&&(r=d(86563)),r}(),transformRequest:[function(i,a){if(l(a,"Accept"),l(a,"Content-Type"),n.isFormData(i)||n.isArrayBuffer(i)||n.isBuffer(i)||n.isStream(i)||n.isFile(i)||n.isBlob(i))return i;if(n.isArrayBufferView(i))return i.buffer;if(n.isURLSearchParams(i))return v(a,"application/x-www-form-urlencoded;charset=utf-8"),i.toString();var c,h=n.isObject(i),g=a&&a["Content-Type"];if((c=n.isFileList(i))||h&&"multipart/form-data"===g){var T=this.env&&this.env.FormData;return _(c?{"files[]":i}:i,T&&new T)}return h||"application/json"===g?(v(a,"application/json"),function S(r,i,a){if(n.isString(r))try{return(i||JSON.parse)(r),n.trim(r)}catch(h){if("SyntaxError"!==h.name)throw h}return(a||JSON.stringify)(r)}(i)):i}],transformResponse:[function(i){var a=this.transitional||y.transitional,c=!(a&&a.silentJSONParsing)&&"json"===this.responseType;if(c||a&&a.forcedJSONParsing&&n.isString(i)&&i.length)try{return JSON.parse(i)}catch(T){if(c)throw"SyntaxError"===T.name?p.from(T,p.ERR_BAD_RESPONSE,this,null,this.response):T}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:d(79725)},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(i){y.headers[i]={}}),n.forEach(["post","put","patch"],function(i){y.headers[i]=n.merge(P)}),Ue.exports=y},42297:Ue=>{"use strict";Ue.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},27938:Ue=>{Ue.exports={version:"0.27.2"}},12063:Ue=>{"use strict";Ue.exports=function(d,n){return function(){for(var p=new Array(arguments.length),m=0;m<p.length;m++)p[m]=arguments[m];return d.apply(n,p)}}},26985:(Ue,W,d)=>{"use strict";var n=d(16945);function l(p){return encodeURIComponent(p).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Ue.exports=function(m,_,P){if(!_)return m;var v;if(P)v=P(_);else if(n.isURLSearchParams(_))v=_.toString();else{var O=[];n.forEach(_,function(r,i){null===r||typeof r>"u"||(n.isArray(r)?i+="[]":r=[r],n.forEach(r,function(h){n.isDate(h)?h=h.toISOString():n.isObject(h)&&(h=JSON.stringify(h)),O.push(l(i)+"="+l(h))}))}),v=O.join("&")}if(v){var S=m.indexOf("#");-1!==S&&(m=m.slice(0,S)),m+=(-1===m.indexOf("?")?"?":"&")+v}return m}},24617:Ue=>{"use strict";Ue.exports=function(d,n){return n?d.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):d}},17593:(Ue,W,d)=>{"use strict";var n=d(16945);Ue.exports=n.isStandardBrowserEnv()?function(){return{write:function(m,_,P,v,O,S){var y=[];y.push(m+"="+encodeURIComponent(_)),n.isNumber(P)&&y.push("expires="+new Date(P).toGMTString()),n.isString(v)&&y.push("path="+v),n.isString(O)&&y.push("domain="+O),!0===S&&y.push("secure"),document.cookie=y.join("; ")},read:function(m){var _=document.cookie.match(new RegExp("(^|;\\s*)("+m+")=([^;]*)"));return _?decodeURIComponent(_[3]):null},remove:function(m){this.write(m,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},30804:Ue=>{"use strict";Ue.exports=function(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}},8816:(Ue,W,d)=>{"use strict";var n=d(16945);Ue.exports=function(p){return n.isObject(p)&&!0===p.isAxiosError}},6771:(Ue,W,d)=>{"use strict";var n=d(16945);Ue.exports=n.isStandardBrowserEnv()?function(){var _,p=/(msie|trident)/i.test(navigator.userAgent),m=document.createElement("a");function P(v){var O=v;return p&&(m.setAttribute("href",O),O=m.href),m.setAttribute("href",O),{href:m.href,protocol:m.protocol?m.protocol.replace(/:$/,""):"",host:m.host,search:m.search?m.search.replace(/^\?/,""):"",hash:m.hash?m.hash.replace(/^#/,""):"",hostname:m.hostname,port:m.port,pathname:"/"===m.pathname.charAt(0)?m.pathname:"/"+m.pathname}}return _=P(window.location.href),function(O){var S=n.isString(O)?P(O):O;return S.protocol===_.protocol&&S.host===_.host}}():function(){return function(){return!0}}()},92143:(Ue,W,d)=>{"use strict";var n=d(16945);Ue.exports=function(p,m){n.forEach(p,function(P,v){v!==m&&v.toUpperCase()===m.toUpperCase()&&(p[m]=P,delete p[v])})}},79725:Ue=>{Ue.exports=null},27199:(Ue,W,d)=>{"use strict";var n=d(16945),l=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];Ue.exports=function(m){var P,v,O,_={};return m&&n.forEach(m.split("\n"),function(y){if(O=y.indexOf(":"),P=n.trim(y.substr(0,O)).toLowerCase(),v=n.trim(y.substr(O+1)),P){if(_[P]&&l.indexOf(P)>=0)return;_[P]="set-cookie"===P?(_[P]?_[P]:[]).concat([v]):_[P]?_[P]+", "+v:v}}),_}},43717:Ue=>{"use strict";Ue.exports=function(d){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return n&&n[1]||""}},98631:Ue=>{"use strict";Ue.exports=function(d){return function(l){return d.apply(null,l)}}},97531:(Ue,W,d)=>{"use strict";var n=d(16945);Ue.exports=function l(p,m){m=m||new FormData;var _=[];function P(O){return null===O?"":n.isDate(O)?O.toISOString():n.isArrayBuffer(O)||n.isTypedArray(O)?"function"==typeof Blob?new Blob([O]):Buffer.from(O):O}return function v(O,S){if(n.isPlainObject(O)||n.isArray(O)){if(-1!==_.indexOf(O))throw Error("Circular reference detected in "+S);_.push(O),n.forEach(O,function(r,i){if(!n.isUndefined(r)){var h,a=S?S+"."+i:i;if(r&&!S&&"object"==typeof r)if(n.endsWith(i,"{}"))r=JSON.stringify(r);else if(n.endsWith(i,"[]")&&(h=n.toArray(r)))return void h.forEach(function(g){!n.isUndefined(g)&&m.append(a,P(g))});v(r,a)}}),_.pop()}else m.append(S,P(O))}(p),m}},59520:(Ue,W,d)=>{"use strict";var n=d(27938).version,l=d(85600),p={};["object","boolean","number","function","string","symbol"].forEach(function(P,v){p[P]=function(S){return typeof S===P||"a"+(v<1?"n ":" ")+P}});var m={};p.transitional=function(v,O,S){function y(r,i){return"[Axios v"+n+"] Transitional option '"+r+"'"+i+(S?". "+S:"")}return function(r,i,a){if(!1===v)throw new l(y(i," has been removed"+(O?" in "+O:"")),l.ERR_DEPRECATED);return O&&!m[i]&&(m[i]=!0,console.warn(y(i," has been deprecated since v"+O+" and will be removed in the near future"))),!v||v(r,i,a)}},Ue.exports={assertOptions:function _(P,v,O){if("object"!=typeof P)throw new l("options must be an object",l.ERR_BAD_OPTION_VALUE);for(var S=Object.keys(P),y=S.length;y-- >0;){var r=S[y],i=v[r];if(i){var a=P[r],h=void 0===a||i(a,r,P);if(!0!==h)throw new l("option "+r+" must be "+h,l.ERR_BAD_OPTION_VALUE)}else if(!0!==O)throw new l("Unknown option "+r,l.ERR_BAD_OPTION)}},validators:p}},16945:(Ue,W,d)=>{"use strict";var n=d(12063),l=Object.prototype.toString,p=function(z){return function(te){var X=l.call(te);return z[X]||(z[X]=X.slice(8,-1).toLowerCase())}}(Object.create(null));function m(z){return z=z.toLowerCase(),function(X){return p(X)===z}}function _(z){return Array.isArray(z)}function P(z){return typeof z>"u"}var O=m("ArrayBuffer");function i(z){return null!==z&&"object"==typeof z}function a(z){if("object"!==p(z))return!1;var te=Object.getPrototypeOf(z);return null===te||te===Object.prototype}var h=m("Date"),g=m("File"),c=m("Blob"),T=m("FileList");function A(z){return"[object Function]"===l.call(z)}var V=m("URLSearchParams");function I(z,te){if(!(null===z||typeof z>"u"))if("object"!=typeof z&&(z=[z]),_(z))for(var X=0,re=z.length;X<re;X++)te.call(null,z[X],X,z);else for(var ge in z)Object.prototype.hasOwnProperty.call(z,ge)&&te.call(null,z[ge],ge,z)}var J=function(z){return function(te){return z&&te instanceof z}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));Ue.exports={isArray:_,isArrayBuffer:O,isBuffer:function v(z){return null!==z&&!P(z)&&null!==z.constructor&&!P(z.constructor)&&"function"==typeof z.constructor.isBuffer&&z.constructor.isBuffer(z)},isFormData:function x(z){var te="[object FormData]";return z&&("function"==typeof FormData&&z instanceof FormData||l.call(z)===te||A(z.toString)&&z.toString()===te)},isArrayBufferView:function S(z){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(z):z&&z.buffer&&O(z.buffer)},isString:function y(z){return"string"==typeof z},isNumber:function r(z){return"number"==typeof z},isObject:i,isPlainObject:a,isUndefined:P,isDate:h,isFile:g,isBlob:c,isFunction:A,isStream:function L(z){return i(z)&&A(z.pipe)},isURLSearchParams:V,isStandardBrowserEnv:function F(){return(!(typeof navigator<"u")||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&typeof window<"u"&&typeof document<"u"},forEach:I,merge:function k(){var z={};function te(ge,oe){z[oe]=a(z[oe])&&a(ge)?k(z[oe],ge):a(ge)?k({},ge):_(ge)?ge.slice():ge}for(var X=0,re=arguments.length;X<re;X++)I(arguments[X],te);return z},extend:function R(z,te,X){return I(te,function(ge,oe){z[oe]=X&&"function"==typeof ge?n(ge,X):ge}),z},trim:function D(z){return z.trim?z.trim():z.replace(/^\s+|\s+$/g,"")},stripBOM:function G(z){return 65279===z.charCodeAt(0)&&(z=z.slice(1)),z},inherits:function Y(z,te,X,re){z.prototype=Object.create(te.prototype,re),z.prototype.constructor=z,X&&Object.assign(z.prototype,X)},toFlatObject:function K(z,te,X){var re,ge,oe,xe={};te=te||{};do{for(ge=(re=Object.getOwnPropertyNames(z)).length;ge-- >0;)xe[oe=re[ge]]||(te[oe]=z[oe],xe[oe]=!0);z=Object.getPrototypeOf(z)}while(z&&(!X||X(z,te))&&z!==Object.prototype);return te},kindOf:p,kindOfTest:m,endsWith:function $(z,te,X){z=String(z),(void 0===X||X>z.length)&&(X=z.length);var re=z.indexOf(te,X-=te.length);return-1!==re&&re===X},toArray:function ee(z){if(!z)return null;var te=z.length;if(P(te))return null;for(var X=new Array(te);te-- >0;)X[te]=z[te];return X},isTypedArray:J,isFileList:T}},73162:(Ue,W,d)=>{"use strict";d.r(W),d.d(W,{deleteDB:()=>V,openDB:()=>x,unwrap:()=>L,wrap:()=>A});var n=d(70650);const l=(R,G)=>G.some(Y=>R instanceof Y);let p,m;const v=new WeakMap,O=new WeakMap,S=new WeakMap,y=new WeakMap,r=new WeakMap;let h={get(R,G,Y){if(R instanceof IDBTransaction){if("done"===G)return O.get(R);if("objectStoreNames"===G)return R.objectStoreNames||S.get(R);if("store"===G)return Y.objectStoreNames[1]?void 0:Y.objectStore(Y.objectStoreNames[0])}return A(R[G])},set:(R,G,Y)=>(R[G]=Y,!0),has:(R,G)=>R instanceof IDBTransaction&&("done"===G||"store"===G)||G in R};function T(R){return"function"==typeof R?function c(R){return R!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function P(){return m||(m=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(R)?function(...G){return R.apply(L(this),G),A(v.get(this))}:function(...G){return A(R.apply(L(this),G))}:function(G,...Y){const K=R.call(L(this),G,...Y);return S.set(K,G.sort?G.sort():[G]),A(K)}}(R):(R instanceof IDBTransaction&&function a(R){if(O.has(R))return;const G=new Promise((Y,K)=>{const $=()=>{R.removeEventListener("complete",ee),R.removeEventListener("error",J),R.removeEventListener("abort",J)},ee=()=>{Y(),$()},J=()=>{K(R.error||new DOMException("AbortError","AbortError")),$()};R.addEventListener("complete",ee),R.addEventListener("error",J),R.addEventListener("abort",J)});O.set(R,G)}(R),l(R,function _(){return p||(p=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(R,h):R)}function A(R){if(R instanceof IDBRequest)return function i(R){const G=new Promise((Y,K)=>{const $=()=>{R.removeEventListener("success",ee),R.removeEventListener("error",J)},ee=()=>{Y(A(R.result)),$()},J=()=>{K(R.error),$()};R.addEventListener("success",ee),R.addEventListener("error",J)});return G.then(Y=>{Y instanceof IDBCursor&&v.set(Y,R)}).catch(()=>{}),r.set(G,R),G}(R);if(y.has(R))return y.get(R);const G=T(R);return G!==R&&(y.set(R,G),r.set(G,R)),G}const L=R=>r.get(R);function x(R,G,{blocked:Y,upgrade:K,blocking:$,terminated:ee}={}){const J=indexedDB.open(R,G),z=A(J);return K&&J.addEventListener("upgradeneeded",te=>{K(A(J.result),te.oldVersion,te.newVersion,A(J.transaction))}),Y&&J.addEventListener("blocked",()=>Y()),z.then(te=>{ee&&te.addEventListener("close",()=>ee()),$&&te.addEventListener("versionchange",()=>$())}).catch(()=>{}),z}function V(R,{blocked:G}={}){const Y=indexedDB.deleteDatabase(R);return G&&Y.addEventListener("blocked",()=>G()),A(Y).then(()=>{})}const D=["get","getKey","getAll","getAllKeys","count"],F=["put","add","delete","clear"],I=new Map;function k(R,G){if(!(R instanceof IDBDatabase)||G in R||"string"!=typeof G)return;if(I.get(G))return I.get(G);const Y=G.replace(/FromIndex$/,""),K=G!==Y,$=F.includes(Y);if(!(Y in(K?IDBIndex:IDBObjectStore).prototype)||!$&&!D.includes(Y))return;const ee=function(){var J=(0,n.A)(function*(z,...te){const X=this.transaction(z,$?"readwrite":"readonly");let re=X.store;return K&&(re=re.index(te.shift())),(yield Promise.all([re[Y](...te),$&&X.done]))[0]});return function(te){return J.apply(this,arguments)}}();return I.set(G,ee),ee}!function g(R){h=R(h)}(R=>({...R,get:(G,Y,K)=>k(G,Y)||R.get(G,Y,K),has:(G,Y)=>!!k(G,Y)||R.has(G,Y)}))},54326:function(Ue,W,d){"use strict";var n=this&&this.__createBinding||(Object.create?function(p,m,_,P){void 0===P&&(P=_),Object.defineProperty(p,P,{enumerable:!0,get:function(){return m[_]}})}:function(p,m,_,P){void 0===P&&(P=_),p[P]=m[_]}),l=this&&this.__exportStar||function(p,m){for(var _ in p)"default"!==_&&!m.hasOwnProperty(_)&&n(m,p,_)};W.__esModule=!0,l(d(22909),W)},22909:(Ue,W,d)=>{"use strict";W.__esModule=!0,W.NvOpenTracingService=W.SpanNames=W.SpanTagNames=void 0;var l,_,n=d(26745);(_=l=W.SpanTagNames||(W.SpanTagNames={})).HttpUrl="http.url",_.HttpStatusCode="http.status_code",_.Error="error",_.SpanKind="span.kind",_.ClientOs="client.os",_.ClientOsName="client.os.name",_.ClientOsVersion="client.os.version",_.ServiceVersion="service.version",_.ServiceType="service.type",_.DeviceId="deviceId",_.AppName="appName",_.CountryCode="countryCode",function(_){_.GxTargetGetSurvey="GxTargetGetSurvey",_.GxTargetPutSurvey="GxTargetPutSurvey"}(W.SpanNames||(W.SpanNames={}));var m=function(){function _(){}return _.prototype.handleHttpEndpointSpan=function(P,v,O){var S=this;return v?P.then(function(y){return S.handleHttpSuccess(v),S.closeSpan(v),y}).catch(function(y){throw S.handleHttpError(v,y),S.closeSpan(v),y}):P},_.prototype.injectSpanHttpHeaders=function(P,v){for(var O=this.startSpan(P,v),S={},y=this.inject(n.FORMAT_HTTP_HEADERS,O),i=0,a=Object.keys(y);i<a.length;i++){var h=a[i];S[h]=y[h]}return[S,O]},_.prototype.handleHttpSuccess=function(P){P.setTag(l.Error,!1)},_.prototype.setTracer=function(P){this.tracer=P},_.prototype.setGlobalTags=function(P){this.commonTags=P},_.prototype.handleHttpError=function(P,v){P.setTag(l.Error,!0),P.setTag(l.HttpStatusCode,v&&v.status||0)},_.prototype.closeSpan=function(P){P&&(P.addTags(this.commonTags),P.finish())},_.prototype.inject=function(P,v){var O={};return this.tracer&&this.tracer.inject(v,P,O),O},_.prototype.startSpan=function(P,v){var O;return this.tracer&&(O=v?this.tracer.startSpan(P,{childOf:v}):this.tracer.startSpan(P)),O},_.prototype.extractContextFromTextMap=function(P){return this.tracer.extract(n.FORMAT_TEXT_MAP,P)},_}();W.NvOpenTracingService=m},1794:function(Ue,W,d){"use strict";var n=this&&this.__createBinding||(Object.create?function(p,m,_,P){void 0===P&&(P=_),Object.defineProperty(p,P,{enumerable:!0,get:function(){return m[_]}})}:function(p,m,_,P){void 0===P&&(P=_),p[P]=m[_]}),l=this&&this.__exportStar||function(p,m){for(var _ in p)"default"!==_&&!m.hasOwnProperty(_)&&n(m,p,_)};Object.defineProperty(W,"__esModule",{value:!0}),l(d(85270),W),l(d(93761),W)},93761:(Ue,W)=>{"use strict";var d,v,n;Object.defineProperty(W,"__esModule",{value:!0}),W.isValidEvent=W.subscribeToIFrameEvents=W.initIFrameCommsChannel=W.LogLevel=W.SurveyEventType=void 0,(v=d=W.SurveyEventType||(W.SurveyEventType={})).Submitted="SURVEY_SUBMITTED",v.Dismissed="SURVEY_DISMISSED",v.Deferred="SURVEY_DEFERRED",v.Minimized="SURVEY_MINIMIZED",v.Errored="SURVEY_ERRORED",v.SubmissionErrored="SURVEY_SUBMISSION_ERRORED",v.Timeout="SURVEY_TIMEOUT",v.CloseDialog="SURVEY_CLOSE_DIALOG",v.LoadComplete="LOAD_COMPLETE",v.ScreenChanged="SCREEN_CHANGED",v.Log="SURVEY_LOG",function(v){v.INFO="INFO",v.WARN="WARN",v.DEBUG="DEBUG",v.ERROR="ERROR"}(n=W.LogLevel||(W.LogLevel={}));const l={logModule:"gxt-survey-app",timeStamp:(new Date).toISOString().replace("T"," ").replace("Z",""),logLevel:n.DEBUG,logTag:"gxt/surveyService",logStr:"Log message couldn't be fetched."};function p(v){return`${v.type}-${v.surveyId}`}const m={};W.initIFrameCommsChannel=()=>{const v=O=>{const S=O.data;if(S.hasOwnProperty("type")&&W.isValidEvent(S.type)){const y=m[p(S)];y&&y.forEach(r=>{if(S.type===d.Log){let i;i=S.hasOwnProperty("log")?S.log:l,r(i)}else r()})}};return window.addEventListener("message",v,!1),{unsubscribe:()=>window.removeEventListener("message",v)}},W.subscribeToIFrameEvents=function _(v,O){const S=p(v);return m.hasOwnProperty(S)||(m[S]=[]),m[S].push(O),{unsubscribe:P(v,O)}};const P=(v,O)=>()=>{const S=p(v);m[S]=m[S].filter(y=>y!==O)};W.isValidEvent=v=>Object.values(d).includes(v)},85270:function(Ue,W,d){"use strict";var n=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(W,"__esModule",{value:!0}),W.SurveySdkService=W.TriggerType=W.SurveyStatus=W.SurveySdkSpanTagNames=void 0;const l=d(54326),p=n(d(54101)),m=n(d(81806)),_=d(24877),P=d(93761),v=n(d(61874));var O,i;(i=O=W.SurveySdkSpanTagNames||(W.SurveySdkSpanTagNames={})).ReadOnly="http.readOnly",i.ClientVariant="clientVariant",i.ClientVersion="clientVersion",i.Environment="env",i.UserId="userId",i.IdpId="idpId",i.SurveyId="surveyId",function(i){i.Progress="Progress",i.Completed="Completed",i.Timeout="Timeout"}(W.SurveyStatus||(W.SurveyStatus={})),function(i){i.UXTestBanner="UXTEST_BANNER",i.SurveyBanner="SURVEY_BANNER",i.CommunicationBanner="COMMUNICATION_BANNER",i.PostGame="POST_GAME",i.Feedback="FEEDBACK",i.NotificationBanner="NOTIFICATION_BANNER"}(W.TriggerType||(W.TriggerType={})),W.SurveySdkService=class r{constructor(){this.nvOpenTracing=new l.NvOpenTracingService,this.api=p.default.create(),P.initIFrameCommsChannel()}initializeOpenTracing(a){this.tracer=new _.Tracer(a),this.nvOpenTracing.setTracer(this.tracer)}getFullSurveyUrl(a,h){const g=Object.keys(h);if(g.length>0){a+="/?";for(const c of g)a+=`${c}=${h[c]}&`;a=a.substring(0,a.length-1)}return a}initializeClientConfig(a,h){this.clientConfig=a,this.initializeOpenTracing(h)}updateGlobalTags(a){this.nvOpenTracing.setGlobalTags(a)}updateServerUrl(a){this.clientConfig.url=a}startSpan(a,h){return this.nvOpenTracing.startSpan(a,h)}extractSpanContext(a){return this.nvOpenTracing.extractContextFromTextMap(a)}closeSpan(a){this.nvOpenTracing.closeSpan(a)}set surveyStatus(a){this.activeSurveyStatus=a}get surveyStatus(){return this.activeSurveyStatus}getUserSurvey(a,h,g,c,T,A,L,x,V,D,F,I,k,R,G,Y="2"){return this.getSurveyApi(a,h,g,!1,A,T,x,V,D,F,I,k,R,G).then(K=>{const $=this.clientConfig.surveyContainerBaseUrl;let ee=null;const J=K.data;if(Object.keys(J).length){ee={surveyContainerUrl:this.getFullSurveyUrl($,{userid:a,idpId:h,locale:L,surveyid:J.sid,clientid:this.clientConfig.clientId,deviceId:g,clientVersion:this.clientConfig.clientVersion,clientVariant:this.clientConfig.clientVariant||"",env:this.clientConfig.env||"",surveyTimeout:c[J.triggerType]||600,triggerType:J.triggerType,surveyVisited:J.surveyVisited||!1,version:Y,applicationType:T.application||"GFN",...J.configuration||{}}),surveyId:J.sid,triggerType:J.triggerType,bannerText:J.bannerText||"",notificationUrl:J.notificationUrl||"",surveyVisited:J.surveyVisited||!1};const z=J.debugInfo;return z&&z.surveySessionId&&(ee.surveySessionId=z.surveySessionId),ee}return ee})}isCurrentSurveyCompleted(a,h,g,c,T,A,L,x,V,D,F,I,k){return this.getSurveyApi(a,h,g,!0,c,T,A,L,x,V,D,F,I,k).then(R=>!Object.keys(R.data).length)}configureRequestApi(a,h){const[g,c]=this.nvOpenTracing.injectSpanHttpHeaders(a,h);return this.api=p.default.create({url:this.clientConfig.url,timeout:this.clientConfig.defaultTimeout}),v.default(this.tracer)(this.api,{spanName:a,span:c}),m.default(this.api,{retries:this.clientConfig.defaultRetries,retryDelay:()=>this.clientConfig.defaultTimeBetweenRetries,retryCondition:()=>!0}),[g,c]}declineUserSurvey(a,h,g,c){const[T,A]=this.configureRequestApi(l.SpanNames.GxTargetPutSurvey,c);A&&A.addTags({[O.SurveyId]:h});const L=this.api.put(this.clientConfig.url+"/survey/v1",{},{params:{userId:a,sid:h,hasDeclined:!0,isPreview:g},headers:{"Content-Type":"application/json",...T}}).then(()=>!0);return this.nvOpenTracing.handleHttpEndpointSpan(L,A)}submitSurveyPage(a,h,g,c,T,A,L,x){return this.putSurveyDetails(a,h,c,g,T,A,L,x)}getFirstSurveyPage(a,h,g,c,T,A){return this.putSurveyDetails(a,h,g,void 0,void 0,c,T,A)}putSurveyDetails(a,h,g,c,T,A,L,x){const[V,D]=this.configureRequestApi(l.SpanNames.GxTargetPutSurvey,L);D&&D.addTags({[O.SurveyId]:h});const I=this.api.put(this.clientConfig.url+"/survey/v1",T?{answers:T}:{},{params:{userId:a,sid:h,pid:c,isPreview:A,locale:g,deviceId:x},headers:{"Content-Type":"application/json",...V}}).then(k=>{const R=k.data;let G={surveyId:R.sid,page:R.page,isLastPage:R.is_last_page,error:R.error};return D&&D.log(k),G});return this.nvOpenTracing.handleHttpEndpointSpan(I,D)}getSurveyApi(a,h,g,c=!1,T,A,L,x,V,D,F,I,k,R){const[G,Y]=this.configureRequestApi(l.SpanNames.GxTargetGetSurvey,R);Y&&Y.addTags({[O.ReadOnly]:c});const K=this.api.get(this.clientConfig.url+"/survey/v2",{params:{clientId:this.clientConfig.clientId,deviceId:g,userId:a,idpId:h,clientVer:this.clientConfig.clientVersion,clientVariant:this.clientConfig.clientVariant,clientParams:A,deviceOS:L,deviceType:x,deviceMake:V,deviceModel:D,deviceOSVersion:F,clientType:I,browserType:k,triggerType:T.join(","),readOnly:c},headers:{...G}}).then($=>{if(Y){const ee=$.data;Object.keys(ee).length&&Y.addTags({[O.SurveyId]:ee.sid}),Y.log($)}return $});return this.nvOpenTracing.handleHttpEndpointSpan(K,Y)}}},61874:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});const n=d(26745);function p(v){if(v.config){const{span:O}=v.config;try{O.setTag(n.Tags.ERROR,!0),O.setTag("reason","error in request"),O.finish()}catch{}}return Promise.reject(v)}function m(v){if(v.config&&v.config.span){const{span:O}=v.config;try{O.setTag(n.Tags.HTTP_STATUS_CODE,v.status),O.finish()}catch{}}return v}function _(v){if(v.config){const{span:O}=v.config;try{O.setTag(n.Tags.ERROR,!0),O.setTag(n.Tags.HTTP_STATUS_CODE,v.code),O.finish()}catch{}}return Promise.reject(v)}W.default=function P(v=n.globalTracer()){return function(S,y={}){const{spanName:r,span:i}=y;if(!S)throw new TypeError("axios-opentracing: axios or axios instance required!");if(!y||!r&&!i)throw new TypeError("axios-opentracing: either span or spanName should be passed in options!");const a=i||v.startSpan(r);return S.interceptors.request.use(function l(v,O){return function(y){const r=y;try{const i=v.startSpan(`${y.method}: ${y.baseURL}${y.url}`,{childOf:O});i.setTag(n.Tags.HTTP_METHOD,y.method),i.setTag(n.Tags.HTTP_URL,y.url),i.setTag(n.Tags.SPAN_KIND,n.Tags.SPAN_KIND_RPC_CLIENT),v.inject(i,n.FORMAT_HTTP_HEADERS,y.headers),r.span=i}catch{}return r}}(v,a),p),S.interceptors.response.use(m,_),a}}},54101:(Ue,W,d)=>{Ue.exports=d(55291)},60740:(Ue,W,d)=>{"use strict";var n=d(64856),l=d(62662),p=d(90184),m=d(47366),_=d(76307),P=d(55048),v=d(39494),O=d(62140),S=d(80873),y=d(83351),r=d(50876);Ue.exports=function(a){return new Promise(function(g,c){var x,T=a.data,A=a.headers,L=a.responseType;function V(){a.cancelToken&&a.cancelToken.unsubscribe(x),a.signal&&a.signal.removeEventListener("abort",x)}n.isFormData(T)&&n.isStandardBrowserEnv()&&delete A["Content-Type"];var D=new XMLHttpRequest;if(a.auth){var F=a.auth.username||"",I=a.auth.password?unescape(encodeURIComponent(a.auth.password)):"";A.Authorization="Basic "+btoa(F+":"+I)}var k=_(a.baseURL,a.url);function R(){if(D){var K="getAllResponseHeaders"in D?P(D.getAllResponseHeaders()):null;l(function(z){g(z),V()},function(z){c(z),V()},{data:L&&"text"!==L&&"json"!==L?D.response:D.responseText,status:D.status,statusText:D.statusText,headers:K,config:a,request:D}),D=null}}if(D.open(a.method.toUpperCase(),m(k,a.params,a.paramsSerializer),!0),D.timeout=a.timeout,"onloadend"in D?D.onloadend=R:D.onreadystatechange=function(){!D||4!==D.readyState||0===D.status&&(!D.responseURL||0!==D.responseURL.indexOf("file:"))||setTimeout(R)},D.onabort=function(){D&&(c(new S("Request aborted",S.ECONNABORTED,a,D)),D=null)},D.onerror=function(){c(new S("Network Error",S.ERR_NETWORK,a,D,D)),D=null},D.ontimeout=function(){var $=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";a.timeoutErrorMessage&&($=a.timeoutErrorMessage),c(new S($,(a.transitional||O).clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,a,D)),D=null},n.isStandardBrowserEnv()){var G=(a.withCredentials||v(k))&&a.xsrfCookieName?p.read(a.xsrfCookieName):void 0;G&&(A[a.xsrfHeaderName]=G)}"setRequestHeader"in D&&n.forEach(A,function($,ee){typeof T>"u"&&"content-type"===ee.toLowerCase()?delete A[ee]:D.setRequestHeader(ee,$)}),n.isUndefined(a.withCredentials)||(D.withCredentials=!!a.withCredentials),L&&"json"!==L&&(D.responseType=a.responseType),"function"==typeof a.onDownloadProgress&&D.addEventListener("progress",a.onDownloadProgress),"function"==typeof a.onUploadProgress&&D.upload&&D.upload.addEventListener("progress",a.onUploadProgress),(a.cancelToken||a.signal)&&(x=function(K){D&&(c(!K||K&&K.type?new y:K),D.abort(),D=null)},a.cancelToken&&a.cancelToken.subscribe(x),a.signal&&(a.signal.aborted?x():a.signal.addEventListener("abort",x))),T||(T=null);var Y=r(k);Y&&-1===["http","https","file"].indexOf(Y)?c(new S("Unsupported protocol "+Y+":",S.ERR_BAD_REQUEST,a)):D.send(T)})}},55291:(Ue,W,d)=>{"use strict";var n=d(64856),l=d(71408),p=d(13759),m=d(78723),v=function P(O){var S=new p(O),y=l(p.prototype.request,S);return n.extend(y,p.prototype,S),n.extend(y,S),y.create=function(i){return P(m(O,i))},y}(d(56416));v.Axios=p,v.CanceledError=d(83351),v.CancelToken=d(97947),v.isCancel=d(2148),v.VERSION=d(4181).version,v.toFormData=d(94764),v.AxiosError=d(80873),v.Cancel=v.CanceledError,v.all=function(S){return Promise.all(S)},v.spread=d(95304),v.isAxiosError=d(88399),Ue.exports=v,Ue.exports.default=v},97947:(Ue,W,d)=>{"use strict";var n=d(83351);function l(p){if("function"!=typeof p)throw new TypeError("executor must be a function.");var m;this.promise=new Promise(function(v){m=v});var _=this;this.promise.then(function(P){if(_._listeners){var v,O=_._listeners.length;for(v=0;v<O;v++)_._listeners[v](P);_._listeners=null}}),this.promise.then=function(P){var v,O=new Promise(function(S){_.subscribe(S),v=S}).then(P);return O.cancel=function(){_.unsubscribe(v)},O},p(function(v){_.reason||(_.reason=new n(v),m(_.reason))})}l.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},l.prototype.subscribe=function(m){this.reason?m(this.reason):this._listeners?this._listeners.push(m):this._listeners=[m]},l.prototype.unsubscribe=function(m){if(this._listeners){var _=this._listeners.indexOf(m);-1!==_&&this._listeners.splice(_,1)}},l.source=function(){var m;return{token:new l(function(v){m=v}),cancel:m}},Ue.exports=l},83351:(Ue,W,d)=>{"use strict";var n=d(80873);function p(m){n.call(this,m??"canceled",n.ERR_CANCELED),this.name="CanceledError"}d(64856).inherits(p,n,{__CANCEL__:!0}),Ue.exports=p},2148:Ue=>{"use strict";Ue.exports=function(d){return!(!d||!d.__CANCEL__)}},13759:(Ue,W,d)=>{"use strict";var n=d(64856),l=d(47366),p=d(6699),m=d(2670),_=d(78723),P=d(76307),v=d(97749),O=v.validators;function S(y){this.defaults=y,this.interceptors={request:new p,response:new p}}S.prototype.request=function(r,i){"string"==typeof r?(i=i||{}).url=r:i=r||{},(i=_(this.defaults,i)).method=i.method?i.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var a=i.transitional;void 0!==a&&v.assertOptions(a,{silentJSONParsing:O.transitional(O.boolean),forcedJSONParsing:O.transitional(O.boolean),clarifyTimeoutError:O.transitional(O.boolean)},!1);var h=[],g=!0;this.interceptors.request.forEach(function(F){"function"==typeof F.runWhen&&!1===F.runWhen(i)||(g=g&&F.synchronous,h.unshift(F.fulfilled,F.rejected))});var T,c=[];if(this.interceptors.response.forEach(function(F){c.push(F.fulfilled,F.rejected)}),!g){var A=[m,void 0];for(Array.prototype.unshift.apply(A,h),A=A.concat(c),T=Promise.resolve(i);A.length;)T=T.then(A.shift(),A.shift());return T}for(var L=i;h.length;){var x=h.shift(),V=h.shift();try{L=x(L)}catch(D){V(D);break}}try{T=m(L)}catch(D){return Promise.reject(D)}for(;c.length;)T=T.then(c.shift(),c.shift());return T},S.prototype.getUri=function(r){r=_(this.defaults,r);var i=P(r.baseURL,r.url);return l(i,r.params,r.paramsSerializer)},n.forEach(["delete","get","head","options"],function(r){S.prototype[r]=function(i,a){return this.request(_(a||{},{method:r,url:i,data:(a||{}).data}))}}),n.forEach(["post","put","patch"],function(r){function i(a){return function(g,c,T){return this.request(_(T||{},{method:r,headers:a?{"Content-Type":"multipart/form-data"}:{},url:g,data:c}))}}S.prototype[r]=i(),S.prototype[r+"Form"]=i(!0)}),Ue.exports=S},80873:(Ue,W,d)=>{"use strict";var n=d(64856);function l(_,P,v,O,S){Error.call(this),this.message=_,this.name="AxiosError",P&&(this.code=P),v&&(this.config=v),O&&(this.request=O),S&&(this.response=S)}n.inherits(l,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var p=l.prototype,m={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(_){m[_]={value:_}}),Object.defineProperties(l,m),Object.defineProperty(p,"isAxiosError",{value:!0}),l.from=function(_,P,v,O,S,y){var r=Object.create(p);return n.toFlatObject(_,r,function(a){return a!==Error.prototype}),l.call(r,_.message,P,v,O,S),r.name=_.name,y&&Object.assign(r,y),r},Ue.exports=l},6699:(Ue,W,d)=>{"use strict";var n=d(64856);function l(){this.handlers=[]}l.prototype.use=function(m,_,P){return this.handlers.push({fulfilled:m,rejected:_,synchronous:!!P&&P.synchronous,runWhen:P?P.runWhen:null}),this.handlers.length-1},l.prototype.eject=function(m){this.handlers[m]&&(this.handlers[m]=null)},l.prototype.forEach=function(m){n.forEach(this.handlers,function(P){null!==P&&m(P)})},Ue.exports=l},76307:(Ue,W,d)=>{"use strict";var n=d(1853),l=d(88556);Ue.exports=function(m,_){return m&&!n(_)?l(m,_):_}},2670:(Ue,W,d)=>{"use strict";var n=d(64856),l=d(90877),p=d(2148),m=d(56416),_=d(83351);function P(v){if(v.cancelToken&&v.cancelToken.throwIfRequested(),v.signal&&v.signal.aborted)throw new _}Ue.exports=function(O){return P(O),O.headers=O.headers||{},O.data=l.call(O,O.data,O.headers,O.transformRequest),O.headers=n.merge(O.headers.common||{},O.headers[O.method]||{},O.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(r){delete O.headers[r]}),(O.adapter||m.adapter)(O).then(function(r){return P(O),r.data=l.call(O,r.data,r.headers,O.transformResponse),r},function(r){return p(r)||(P(O),r&&r.response&&(r.response.data=l.call(O,r.response.data,r.response.headers,O.transformResponse))),Promise.reject(r)})}},78723:(Ue,W,d)=>{"use strict";var n=d(64856);Ue.exports=function(p,m){m=m||{};var _={};function P(i,a){return n.isPlainObject(i)&&n.isPlainObject(a)?n.merge(i,a):n.isPlainObject(a)?n.merge({},a):n.isArray(a)?a.slice():a}function v(i){return n.isUndefined(m[i])?n.isUndefined(p[i])?void 0:P(void 0,p[i]):P(p[i],m[i])}function O(i){if(!n.isUndefined(m[i]))return P(void 0,m[i])}function S(i){return n.isUndefined(m[i])?n.isUndefined(p[i])?void 0:P(void 0,p[i]):P(void 0,m[i])}function y(i){return i in m?P(p[i],m[i]):i in p?P(void 0,p[i]):void 0}var r={url:O,method:O,data:O,baseURL:S,transformRequest:S,transformResponse:S,paramsSerializer:S,timeout:S,timeoutMessage:S,withCredentials:S,adapter:S,responseType:S,xsrfCookieName:S,xsrfHeaderName:S,onUploadProgress:S,onDownloadProgress:S,decompress:S,maxContentLength:S,maxBodyLength:S,beforeRedirect:S,transport:S,httpAgent:S,httpsAgent:S,cancelToken:S,socketPath:S,responseEncoding:S,validateStatus:y};return n.forEach(Object.keys(p).concat(Object.keys(m)),function(a){var h=r[a]||v,g=h(a);n.isUndefined(g)&&h!==y||(_[a]=g)}),_}},62662:(Ue,W,d)=>{"use strict";var n=d(80873);Ue.exports=function(p,m,_){var P=_.config.validateStatus;_.status&&P&&!P(_.status)?m(new n("Request failed with status code "+_.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(_.status/100)-4],_.config,_.request,_)):p(_)}},90877:(Ue,W,d)=>{"use strict";var n=d(64856),l=d(56416);Ue.exports=function(m,_,P){var v=this||l;return n.forEach(P,function(S){m=S.call(v,m,_)}),m}},56416:(Ue,W,d)=>{"use strict";var n=d(64856),l=d(66022),p=d(80873),m=d(62140),_=d(94764),P={"Content-Type":"application/x-www-form-urlencoded"};function v(r,i){!n.isUndefined(r)&&n.isUndefined(r["Content-Type"])&&(r["Content-Type"]=i)}var y={transitional:m,adapter:function O(){var r;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process))&&(r=d(60740)),r}(),transformRequest:[function(i,a){if(l(a,"Accept"),l(a,"Content-Type"),n.isFormData(i)||n.isArrayBuffer(i)||n.isBuffer(i)||n.isStream(i)||n.isFile(i)||n.isBlob(i))return i;if(n.isArrayBufferView(i))return i.buffer;if(n.isURLSearchParams(i))return v(a,"application/x-www-form-urlencoded;charset=utf-8"),i.toString();var c,h=n.isObject(i),g=a&&a["Content-Type"];if((c=n.isFileList(i))||h&&"multipart/form-data"===g){var T=this.env&&this.env.FormData;return _(c?{"files[]":i}:i,T&&new T)}return h||"application/json"===g?(v(a,"application/json"),function S(r,i,a){if(n.isString(r))try{return(i||JSON.parse)(r),n.trim(r)}catch(h){if("SyntaxError"!==h.name)throw h}return(a||JSON.stringify)(r)}(i)):i}],transformResponse:[function(i){var a=this.transitional||y.transitional,c=!(a&&a.silentJSONParsing)&&"json"===this.responseType;if(c||a&&a.forcedJSONParsing&&n.isString(i)&&i.length)try{return JSON.parse(i)}catch(T){if(c)throw"SyntaxError"===T.name?p.from(T,p.ERR_BAD_RESPONSE,this,null,this.response):T}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:d(90442)},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(i){y.headers[i]={}}),n.forEach(["post","put","patch"],function(i){y.headers[i]=n.merge(P)}),Ue.exports=y},62140:Ue=>{"use strict";Ue.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},4181:Ue=>{Ue.exports={version:"0.27.2"}},71408:Ue=>{"use strict";Ue.exports=function(d,n){return function(){for(var p=new Array(arguments.length),m=0;m<p.length;m++)p[m]=arguments[m];return d.apply(n,p)}}},47366:(Ue,W,d)=>{"use strict";var n=d(64856);function l(p){return encodeURIComponent(p).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Ue.exports=function(m,_,P){if(!_)return m;var v;if(P)v=P(_);else if(n.isURLSearchParams(_))v=_.toString();else{var O=[];n.forEach(_,function(r,i){null===r||typeof r>"u"||(n.isArray(r)?i+="[]":r=[r],n.forEach(r,function(h){n.isDate(h)?h=h.toISOString():n.isObject(h)&&(h=JSON.stringify(h)),O.push(l(i)+"="+l(h))}))}),v=O.join("&")}if(v){var S=m.indexOf("#");-1!==S&&(m=m.slice(0,S)),m+=(-1===m.indexOf("?")?"?":"&")+v}return m}},88556:Ue=>{"use strict";Ue.exports=function(d,n){return n?d.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):d}},90184:(Ue,W,d)=>{"use strict";var n=d(64856);Ue.exports=n.isStandardBrowserEnv()?function(){return{write:function(m,_,P,v,O,S){var y=[];y.push(m+"="+encodeURIComponent(_)),n.isNumber(P)&&y.push("expires="+new Date(P).toGMTString()),n.isString(v)&&y.push("path="+v),n.isString(O)&&y.push("domain="+O),!0===S&&y.push("secure"),document.cookie=y.join("; ")},read:function(m){var _=document.cookie.match(new RegExp("(^|;\\s*)("+m+")=([^;]*)"));return _?decodeURIComponent(_[3]):null},remove:function(m){this.write(m,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1853:Ue=>{"use strict";Ue.exports=function(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}},88399:(Ue,W,d)=>{"use strict";var n=d(64856);Ue.exports=function(p){return n.isObject(p)&&!0===p.isAxiosError}},39494:(Ue,W,d)=>{"use strict";var n=d(64856);Ue.exports=n.isStandardBrowserEnv()?function(){var _,p=/(msie|trident)/i.test(navigator.userAgent),m=document.createElement("a");function P(v){var O=v;return p&&(m.setAttribute("href",O),O=m.href),m.setAttribute("href",O),{href:m.href,protocol:m.protocol?m.protocol.replace(/:$/,""):"",host:m.host,search:m.search?m.search.replace(/^\?/,""):"",hash:m.hash?m.hash.replace(/^#/,""):"",hostname:m.hostname,port:m.port,pathname:"/"===m.pathname.charAt(0)?m.pathname:"/"+m.pathname}}return _=P(window.location.href),function(O){var S=n.isString(O)?P(O):O;return S.protocol===_.protocol&&S.host===_.host}}():function(){return function(){return!0}}()},66022:(Ue,W,d)=>{"use strict";var n=d(64856);Ue.exports=function(p,m){n.forEach(p,function(P,v){v!==m&&v.toUpperCase()===m.toUpperCase()&&(p[m]=P,delete p[v])})}},90442:Ue=>{Ue.exports=null},55048:(Ue,W,d)=>{"use strict";var n=d(64856),l=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];Ue.exports=function(m){var P,v,O,_={};return m&&n.forEach(m.split("\n"),function(y){if(O=y.indexOf(":"),P=n.trim(y.substr(0,O)).toLowerCase(),v=n.trim(y.substr(O+1)),P){if(_[P]&&l.indexOf(P)>=0)return;_[P]="set-cookie"===P?(_[P]?_[P]:[]).concat([v]):_[P]?_[P]+", "+v:v}}),_}},50876:Ue=>{"use strict";Ue.exports=function(d){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return n&&n[1]||""}},95304:Ue=>{"use strict";Ue.exports=function(d){return function(l){return d.apply(null,l)}}},94764:(Ue,W,d)=>{"use strict";var n=d(64856);Ue.exports=function l(p,m){m=m||new FormData;var _=[];function P(O){return null===O?"":n.isDate(O)?O.toISOString():n.isArrayBuffer(O)||n.isTypedArray(O)?"function"==typeof Blob?new Blob([O]):Buffer.from(O):O}return function v(O,S){if(n.isPlainObject(O)||n.isArray(O)){if(-1!==_.indexOf(O))throw Error("Circular reference detected in "+S);_.push(O),n.forEach(O,function(r,i){if(!n.isUndefined(r)){var h,a=S?S+"."+i:i;if(r&&!S&&"object"==typeof r)if(n.endsWith(i,"{}"))r=JSON.stringify(r);else if(n.endsWith(i,"[]")&&(h=n.toArray(r)))return void h.forEach(function(g){!n.isUndefined(g)&&m.append(a,P(g))});v(r,a)}}),_.pop()}else m.append(S,P(O))}(p),m}},97749:(Ue,W,d)=>{"use strict";var n=d(4181).version,l=d(80873),p={};["object","boolean","number","function","string","symbol"].forEach(function(P,v){p[P]=function(S){return typeof S===P||"a"+(v<1?"n ":" ")+P}});var m={};p.transitional=function(v,O,S){function y(r,i){return"[Axios v"+n+"] Transitional option '"+r+"'"+i+(S?". "+S:"")}return function(r,i,a){if(!1===v)throw new l(y(i," has been removed"+(O?" in "+O:"")),l.ERR_DEPRECATED);return O&&!m[i]&&(m[i]=!0,console.warn(y(i," has been deprecated since v"+O+" and will be removed in the near future"))),!v||v(r,i,a)}},Ue.exports={assertOptions:function _(P,v,O){if("object"!=typeof P)throw new l("options must be an object",l.ERR_BAD_OPTION_VALUE);for(var S=Object.keys(P),y=S.length;y-- >0;){var r=S[y],i=v[r];if(i){var a=P[r],h=void 0===a||i(a,r,P);if(!0!==h)throw new l("option "+r+" must be "+h,l.ERR_BAD_OPTION_VALUE)}else if(!0!==O)throw new l("Unknown option "+r,l.ERR_BAD_OPTION)}},validators:p}},64856:(Ue,W,d)=>{"use strict";var n=d(71408),l=Object.prototype.toString,p=function(z){return function(te){var X=l.call(te);return z[X]||(z[X]=X.slice(8,-1).toLowerCase())}}(Object.create(null));function m(z){return z=z.toLowerCase(),function(X){return p(X)===z}}function _(z){return Array.isArray(z)}function P(z){return typeof z>"u"}var O=m("ArrayBuffer");function i(z){return null!==z&&"object"==typeof z}function a(z){if("object"!==p(z))return!1;var te=Object.getPrototypeOf(z);return null===te||te===Object.prototype}var h=m("Date"),g=m("File"),c=m("Blob"),T=m("FileList");function A(z){return"[object Function]"===l.call(z)}var V=m("URLSearchParams");function I(z,te){if(!(null===z||typeof z>"u"))if("object"!=typeof z&&(z=[z]),_(z))for(var X=0,re=z.length;X<re;X++)te.call(null,z[X],X,z);else for(var ge in z)Object.prototype.hasOwnProperty.call(z,ge)&&te.call(null,z[ge],ge,z)}var J=function(z){return function(te){return z&&te instanceof z}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));Ue.exports={isArray:_,isArrayBuffer:O,isBuffer:function v(z){return null!==z&&!P(z)&&null!==z.constructor&&!P(z.constructor)&&"function"==typeof z.constructor.isBuffer&&z.constructor.isBuffer(z)},isFormData:function x(z){var te="[object FormData]";return z&&("function"==typeof FormData&&z instanceof FormData||l.call(z)===te||A(z.toString)&&z.toString()===te)},isArrayBufferView:function S(z){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(z):z&&z.buffer&&O(z.buffer)},isString:function y(z){return"string"==typeof z},isNumber:function r(z){return"number"==typeof z},isObject:i,isPlainObject:a,isUndefined:P,isDate:h,isFile:g,isBlob:c,isFunction:A,isStream:function L(z){return i(z)&&A(z.pipe)},isURLSearchParams:V,isStandardBrowserEnv:function F(){return(!(typeof navigator<"u")||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&typeof window<"u"&&typeof document<"u"},forEach:I,merge:function k(){var z={};function te(ge,oe){z[oe]=a(z[oe])&&a(ge)?k(z[oe],ge):a(ge)?k({},ge):_(ge)?ge.slice():ge}for(var X=0,re=arguments.length;X<re;X++)I(arguments[X],te);return z},extend:function R(z,te,X){return I(te,function(ge,oe){z[oe]=X&&"function"==typeof ge?n(ge,X):ge}),z},trim:function D(z){return z.trim?z.trim():z.replace(/^\s+|\s+$/g,"")},stripBOM:function G(z){return 65279===z.charCodeAt(0)&&(z=z.slice(1)),z},inherits:function Y(z,te,X,re){z.prototype=Object.create(te.prototype,re),z.prototype.constructor=z,X&&Object.assign(z.prototype,X)},toFlatObject:function K(z,te,X){var re,ge,oe,xe={};te=te||{};do{for(ge=(re=Object.getOwnPropertyNames(z)).length;ge-- >0;)xe[oe=re[ge]]||(te[oe]=z[oe],xe[oe]=!0);z=Object.getPrototypeOf(z)}while(z&&(!X||X(z,te))&&z!==Object.prototype);return te},kindOf:p,kindOfTest:m,endsWith:function $(z,te,X){z=String(z),(void 0===X||X>z.length)&&(X=z.length);var re=z.indexOf(te,X-=te.length);return-1!==re&&re===X},toArray:function ee(z){if(!z)return null;var te=z.length;if(P(te))return null;for(var X=new Array(te);te-- >0;)X[te]=z[te];return X},isTypedArray:J,isFileList:T}},89304:(Ue,W,d)=>{"use strict";var S,O,v,P,n=d(63548),l=n.Reader,p=n.Writer,m=n.util,_=n.roots.default||(n.roots.default={});_.opentelemetry=((P={}).proto=((v={}).common=((O={}).v1=((S={}).AnyValue=function(){function y(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}var r;return y.prototype.stringValue=null,y.prototype.boolValue=null,y.prototype.intValue=null,y.prototype.doubleValue=null,y.prototype.arrayValue=null,y.prototype.kvlistValue=null,y.prototype.bytesValue=null,Object.defineProperty(y.prototype,"value",{get:m.oneOfGetter(r=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:m.oneOfSetter(r)}),y.create=function(a){return new y(a)},y.encode=function(a,h){return h||(h=p.create()),null!=a.stringValue&&Object.hasOwnProperty.call(a,"stringValue")&&h.uint32(10).string(a.stringValue),null!=a.boolValue&&Object.hasOwnProperty.call(a,"boolValue")&&h.uint32(16).bool(a.boolValue),null!=a.intValue&&Object.hasOwnProperty.call(a,"intValue")&&h.uint32(24).int64(a.intValue),null!=a.doubleValue&&Object.hasOwnProperty.call(a,"doubleValue")&&h.uint32(33).double(a.doubleValue),null!=a.arrayValue&&Object.hasOwnProperty.call(a,"arrayValue")&&_.opentelemetry.proto.common.v1.ArrayValue.encode(a.arrayValue,h.uint32(42).fork()).ldelim(),null!=a.kvlistValue&&Object.hasOwnProperty.call(a,"kvlistValue")&&_.opentelemetry.proto.common.v1.KeyValueList.encode(a.kvlistValue,h.uint32(50).fork()).ldelim(),null!=a.bytesValue&&Object.hasOwnProperty.call(a,"bytesValue")&&h.uint32(58).bytes(a.bytesValue),h},y.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},y.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.common.v1.AnyValue;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.stringValue=a.string();break;case 2:c.boolValue=a.bool();break;case 3:c.intValue=a.int64();break;case 4:c.doubleValue=a.double();break;case 5:c.arrayValue=_.opentelemetry.proto.common.v1.ArrayValue.decode(a,a.uint32());break;case 6:c.kvlistValue=_.opentelemetry.proto.common.v1.KeyValueList.decode(a,a.uint32());break;case 7:c.bytesValue=a.bytes();break;default:a.skipType(7&T)}}return c},y.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},y.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var h={};if(null!=a.stringValue&&a.hasOwnProperty("stringValue")&&(h.value=1,!m.isString(a.stringValue)))return"stringValue: string expected";if(null!=a.boolValue&&a.hasOwnProperty("boolValue")){if(1===h.value)return"value: multiple values";if(h.value=1,"boolean"!=typeof a.boolValue)return"boolValue: boolean expected"}if(null!=a.intValue&&a.hasOwnProperty("intValue")){if(1===h.value)return"value: multiple values";if(h.value=1,!(m.isInteger(a.intValue)||a.intValue&&m.isInteger(a.intValue.low)&&m.isInteger(a.intValue.high)))return"intValue: integer|Long expected"}if(null!=a.doubleValue&&a.hasOwnProperty("doubleValue")){if(1===h.value)return"value: multiple values";if(h.value=1,"number"!=typeof a.doubleValue)return"doubleValue: number expected"}if(null!=a.arrayValue&&a.hasOwnProperty("arrayValue")){if(1===h.value)return"value: multiple values";if(h.value=1,g=_.opentelemetry.proto.common.v1.ArrayValue.verify(a.arrayValue))return"arrayValue."+g}if(null!=a.kvlistValue&&a.hasOwnProperty("kvlistValue")){if(1===h.value)return"value: multiple values";var g;if(h.value=1,g=_.opentelemetry.proto.common.v1.KeyValueList.verify(a.kvlistValue))return"kvlistValue."+g}if(null!=a.bytesValue&&a.hasOwnProperty("bytesValue")){if(1===h.value)return"value: multiple values";if(h.value=1,!(a.bytesValue&&"number"==typeof a.bytesValue.length||m.isString(a.bytesValue)))return"bytesValue: buffer expected"}return null},y.fromObject=function(a){if(a instanceof _.opentelemetry.proto.common.v1.AnyValue)return a;var h=new _.opentelemetry.proto.common.v1.AnyValue;if(null!=a.stringValue&&(h.stringValue=String(a.stringValue)),null!=a.boolValue&&(h.boolValue=!!a.boolValue),null!=a.intValue&&(m.Long?(h.intValue=m.Long.fromValue(a.intValue)).unsigned=!1:"string"==typeof a.intValue?h.intValue=parseInt(a.intValue,10):"number"==typeof a.intValue?h.intValue=a.intValue:"object"==typeof a.intValue&&(h.intValue=new m.LongBits(a.intValue.low>>>0,a.intValue.high>>>0).toNumber())),null!=a.doubleValue&&(h.doubleValue=Number(a.doubleValue)),null!=a.arrayValue){if("object"!=typeof a.arrayValue)throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");h.arrayValue=_.opentelemetry.proto.common.v1.ArrayValue.fromObject(a.arrayValue)}if(null!=a.kvlistValue){if("object"!=typeof a.kvlistValue)throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");h.kvlistValue=_.opentelemetry.proto.common.v1.KeyValueList.fromObject(a.kvlistValue)}return null!=a.bytesValue&&("string"==typeof a.bytesValue?m.base64.decode(a.bytesValue,h.bytesValue=m.newBuffer(m.base64.length(a.bytesValue)),0):a.bytesValue.length>=0&&(h.bytesValue=a.bytesValue)),h},y.toObject=function(a,h){h||(h={});var g={};return null!=a.stringValue&&a.hasOwnProperty("stringValue")&&(g.stringValue=a.stringValue,h.oneofs&&(g.value="stringValue")),null!=a.boolValue&&a.hasOwnProperty("boolValue")&&(g.boolValue=a.boolValue,h.oneofs&&(g.value="boolValue")),null!=a.intValue&&a.hasOwnProperty("intValue")&&(g.intValue="number"==typeof a.intValue?h.longs===String?String(a.intValue):a.intValue:h.longs===String?m.Long.prototype.toString.call(a.intValue):h.longs===Number?new m.LongBits(a.intValue.low>>>0,a.intValue.high>>>0).toNumber():a.intValue,h.oneofs&&(g.value="intValue")),null!=a.doubleValue&&a.hasOwnProperty("doubleValue")&&(g.doubleValue=h.json&&!isFinite(a.doubleValue)?String(a.doubleValue):a.doubleValue,h.oneofs&&(g.value="doubleValue")),null!=a.arrayValue&&a.hasOwnProperty("arrayValue")&&(g.arrayValue=_.opentelemetry.proto.common.v1.ArrayValue.toObject(a.arrayValue,h),h.oneofs&&(g.value="arrayValue")),null!=a.kvlistValue&&a.hasOwnProperty("kvlistValue")&&(g.kvlistValue=_.opentelemetry.proto.common.v1.KeyValueList.toObject(a.kvlistValue,h),h.oneofs&&(g.value="kvlistValue")),null!=a.bytesValue&&a.hasOwnProperty("bytesValue")&&(g.bytesValue=h.bytes===String?m.base64.encode(a.bytesValue,0,a.bytesValue.length):h.bytes===Array?Array.prototype.slice.call(a.bytesValue):a.bytesValue,h.oneofs&&(g.value="bytesValue")),g},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.common.v1.AnyValue"},y}(),S.ArrayValue=function(){function y(r){if(this.values=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.values=m.emptyArray,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.values&&i.values.length)for(var h=0;h<i.values.length;++h)_.opentelemetry.proto.common.v1.AnyValue.encode(i.values[h],a.uint32(10).fork()).ldelim();return a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.common.v1.ArrayValue;i.pos<h;){var c=i.uint32();c>>>3==1?(g.values&&g.values.length||(g.values=[]),g.values.push(_.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32()))):i.skipType(7&c)}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.values&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var a=0;a<i.values.length;++a){var h=_.opentelemetry.proto.common.v1.AnyValue.verify(i.values[a]);if(h)return"values."+h}}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.common.v1.ArrayValue)return i;var a=new _.opentelemetry.proto.common.v1.ArrayValue;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");a.values=[];for(var h=0;h<i.values.length;++h){if("object"!=typeof i.values[h])throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");a.values[h]=_.opentelemetry.proto.common.v1.AnyValue.fromObject(i.values[h])}}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.values=[]),i.values&&i.values.length){h.values=[];for(var g=0;g<i.values.length;++g)h.values[g]=_.opentelemetry.proto.common.v1.AnyValue.toObject(i.values[g],a)}return h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.ArrayValue"},y}(),S.KeyValueList=function(){function y(r){if(this.values=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.values=m.emptyArray,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.values&&i.values.length)for(var h=0;h<i.values.length;++h)_.opentelemetry.proto.common.v1.KeyValue.encode(i.values[h],a.uint32(10).fork()).ldelim();return a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.common.v1.KeyValueList;i.pos<h;){var c=i.uint32();c>>>3==1?(g.values&&g.values.length||(g.values=[]),g.values.push(_.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()))):i.skipType(7&c)}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.values&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var a=0;a<i.values.length;++a){var h=_.opentelemetry.proto.common.v1.KeyValue.verify(i.values[a]);if(h)return"values."+h}}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.common.v1.KeyValueList)return i;var a=new _.opentelemetry.proto.common.v1.KeyValueList;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");a.values=[];for(var h=0;h<i.values.length;++h){if("object"!=typeof i.values[h])throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");a.values[h]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(i.values[h])}}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.values=[]),i.values&&i.values.length){h.values=[];for(var g=0;g<i.values.length;++g)h.values[g]=_.opentelemetry.proto.common.v1.KeyValue.toObject(i.values[g],a)}return h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValueList"},y}(),S.KeyValue=function(){function y(r){if(r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.key=null,y.prototype.value=null,y.create=function(i){return new y(i)},y.encode=function(i,a){return a||(a=p.create()),null!=i.key&&Object.hasOwnProperty.call(i,"key")&&a.uint32(10).string(i.key),null!=i.value&&Object.hasOwnProperty.call(i,"value")&&_.opentelemetry.proto.common.v1.AnyValue.encode(i.value,a.uint32(18).fork()).ldelim(),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.common.v1.KeyValue;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.key=i.string();break;case 2:g.value=_.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.key&&i.hasOwnProperty("key")&&!m.isString(i.key))return"key: string expected";if(null!=i.value&&i.hasOwnProperty("value")){var a=_.opentelemetry.proto.common.v1.AnyValue.verify(i.value);if(a)return"value."+a}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.common.v1.KeyValue)return i;var a=new _.opentelemetry.proto.common.v1.KeyValue;if(null!=i.key&&(a.key=String(i.key)),null!=i.value){if("object"!=typeof i.value)throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");a.value=_.opentelemetry.proto.common.v1.AnyValue.fromObject(i.value)}return a},y.toObject=function(i,a){a||(a={});var h={};return a.defaults&&(h.key="",h.value=null),null!=i.key&&i.hasOwnProperty("key")&&(h.key=i.key),null!=i.value&&i.hasOwnProperty("value")&&(h.value=_.opentelemetry.proto.common.v1.AnyValue.toObject(i.value,a)),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValue"},y}(),S.InstrumentationScope=function(){function y(r){if(this.attributes=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.name=null,y.prototype.version=null,y.prototype.attributes=m.emptyArray,y.prototype.droppedAttributesCount=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.name&&Object.hasOwnProperty.call(i,"name")&&a.uint32(10).string(i.name),null!=i.version&&Object.hasOwnProperty.call(i,"version")&&a.uint32(18).string(i.version),null!=i.attributes&&i.attributes.length)for(var h=0;h<i.attributes.length;++h)_.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[h],a.uint32(26).fork()).ldelim();return null!=i.droppedAttributesCount&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&a.uint32(32).uint32(i.droppedAttributesCount),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.common.v1.InstrumentationScope;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.name=i.string();break;case 2:g.version=i.string();break;case 3:g.attributes&&g.attributes.length||(g.attributes=[]),g.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break;case 4:g.droppedAttributesCount=i.uint32();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.name&&i.hasOwnProperty("name")&&!m.isString(i.name))return"name: string expected";if(null!=i.version&&i.hasOwnProperty("version")&&!m.isString(i.version))return"version: string expected";if(null!=i.attributes&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var a=0;a<i.attributes.length;++a){var h=_.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[a]);if(h)return"attributes."+h}}return null!=i.droppedAttributesCount&&i.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.common.v1.InstrumentationScope)return i;var a=new _.opentelemetry.proto.common.v1.InstrumentationScope;if(null!=i.name&&(a.name=String(i.name)),null!=i.version&&(a.version=String(i.version)),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");a.attributes=[];for(var h=0;h<i.attributes.length;++h){if("object"!=typeof i.attributes[h])throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");a.attributes[h]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[h])}}return null!=i.droppedAttributesCount&&(a.droppedAttributesCount=i.droppedAttributesCount>>>0),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.attributes=[]),a.defaults&&(h.name="",h.version="",h.droppedAttributesCount=0),null!=i.name&&i.hasOwnProperty("name")&&(h.name=i.name),null!=i.version&&i.hasOwnProperty("version")&&(h.version=i.version),i.attributes&&i.attributes.length){h.attributes=[];for(var g=0;g<i.attributes.length;++g)h.attributes[g]=_.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[g],a)}return null!=i.droppedAttributesCount&&i.hasOwnProperty("droppedAttributesCount")&&(h.droppedAttributesCount=i.droppedAttributesCount),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.InstrumentationScope"},y}(),S),O),v.resource=function(){var O={};return O.v1=function(){var S={};return S.Resource=function(){function y(r){if(this.attributes=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.attributes=m.emptyArray,y.prototype.droppedAttributesCount=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.attributes&&i.attributes.length)for(var h=0;h<i.attributes.length;++h)_.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[h],a.uint32(10).fork()).ldelim();return null!=i.droppedAttributesCount&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&a.uint32(16).uint32(i.droppedAttributesCount),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.resource.v1.Resource;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.attributes&&g.attributes.length||(g.attributes=[]),g.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break;case 2:g.droppedAttributesCount=i.uint32();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.attributes&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var a=0;a<i.attributes.length;++a){var h=_.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[a]);if(h)return"attributes."+h}}return null!=i.droppedAttributesCount&&i.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.resource.v1.Resource)return i;var a=new _.opentelemetry.proto.resource.v1.Resource;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");a.attributes=[];for(var h=0;h<i.attributes.length;++h){if("object"!=typeof i.attributes[h])throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");a.attributes[h]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[h])}}return null!=i.droppedAttributesCount&&(a.droppedAttributesCount=i.droppedAttributesCount>>>0),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.attributes=[]),a.defaults&&(h.droppedAttributesCount=0),i.attributes&&i.attributes.length){h.attributes=[];for(var g=0;g<i.attributes.length;++g)h.attributes[g]=_.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[g],a)}return null!=i.droppedAttributesCount&&i.hasOwnProperty("droppedAttributesCount")&&(h.droppedAttributesCount=i.droppedAttributesCount),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.resource.v1.Resource"},y}(),S}(),O}(),v.trace=function(){var O={};return O.v1=function(){var S={};return S.TracesData=function(){function y(r){if(this.resourceSpans=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.resourceSpans=m.emptyArray,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.resourceSpans&&i.resourceSpans.length)for(var h=0;h<i.resourceSpans.length;++h)_.opentelemetry.proto.trace.v1.ResourceSpans.encode(i.resourceSpans[h],a.uint32(10).fork()).ldelim();return a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.trace.v1.TracesData;i.pos<h;){var c=i.uint32();c>>>3==1?(g.resourceSpans&&g.resourceSpans.length||(g.resourceSpans=[]),g.resourceSpans.push(_.opentelemetry.proto.trace.v1.ResourceSpans.decode(i,i.uint32()))):i.skipType(7&c)}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.resourceSpans&&i.hasOwnProperty("resourceSpans")){if(!Array.isArray(i.resourceSpans))return"resourceSpans: array expected";for(var a=0;a<i.resourceSpans.length;++a){var h=_.opentelemetry.proto.trace.v1.ResourceSpans.verify(i.resourceSpans[a]);if(h)return"resourceSpans."+h}}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.trace.v1.TracesData)return i;var a=new _.opentelemetry.proto.trace.v1.TracesData;if(i.resourceSpans){if(!Array.isArray(i.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");a.resourceSpans=[];for(var h=0;h<i.resourceSpans.length;++h){if("object"!=typeof i.resourceSpans[h])throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");a.resourceSpans[h]=_.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(i.resourceSpans[h])}}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.resourceSpans=[]),i.resourceSpans&&i.resourceSpans.length){h.resourceSpans=[];for(var g=0;g<i.resourceSpans.length;++g)h.resourceSpans[g]=_.opentelemetry.proto.trace.v1.ResourceSpans.toObject(i.resourceSpans[g],a)}return h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.TracesData"},y}(),S.ResourceSpans=function(){function y(r){if(this.scopeSpans=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.resource=null,y.prototype.scopeSpans=m.emptyArray,y.prototype.schemaUrl=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.resource&&Object.hasOwnProperty.call(i,"resource")&&_.opentelemetry.proto.resource.v1.Resource.encode(i.resource,a.uint32(10).fork()).ldelim(),null!=i.scopeSpans&&i.scopeSpans.length)for(var h=0;h<i.scopeSpans.length;++h)_.opentelemetry.proto.trace.v1.ScopeSpans.encode(i.scopeSpans[h],a.uint32(18).fork()).ldelim();return null!=i.schemaUrl&&Object.hasOwnProperty.call(i,"schemaUrl")&&a.uint32(26).string(i.schemaUrl),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.trace.v1.ResourceSpans;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.resource=_.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break;case 2:g.scopeSpans&&g.scopeSpans.length||(g.scopeSpans=[]),g.scopeSpans.push(_.opentelemetry.proto.trace.v1.ScopeSpans.decode(i,i.uint32()));break;case 3:g.schemaUrl=i.string();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.resource&&i.hasOwnProperty("resource")&&(a=_.opentelemetry.proto.resource.v1.Resource.verify(i.resource)))return"resource."+a;if(null!=i.scopeSpans&&i.hasOwnProperty("scopeSpans")){if(!Array.isArray(i.scopeSpans))return"scopeSpans: array expected";for(var h=0;h<i.scopeSpans.length;++h){var a;if(a=_.opentelemetry.proto.trace.v1.ScopeSpans.verify(i.scopeSpans[h]))return"scopeSpans."+a}}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&!m.isString(i.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.trace.v1.ResourceSpans)return i;var a=new _.opentelemetry.proto.trace.v1.ResourceSpans;if(null!=i.resource){if("object"!=typeof i.resource)throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");a.resource=_.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeSpans){if(!Array.isArray(i.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");a.scopeSpans=[];for(var h=0;h<i.scopeSpans.length;++h){if("object"!=typeof i.scopeSpans[h])throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");a.scopeSpans[h]=_.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(i.scopeSpans[h])}}return null!=i.schemaUrl&&(a.schemaUrl=String(i.schemaUrl)),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.scopeSpans=[]),a.defaults&&(h.resource=null,h.schemaUrl=""),null!=i.resource&&i.hasOwnProperty("resource")&&(h.resource=_.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,a)),i.scopeSpans&&i.scopeSpans.length){h.scopeSpans=[];for(var g=0;g<i.scopeSpans.length;++g)h.scopeSpans[g]=_.opentelemetry.proto.trace.v1.ScopeSpans.toObject(i.scopeSpans[g],a)}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&(h.schemaUrl=i.schemaUrl),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ResourceSpans"},y}(),S.ScopeSpans=function(){function y(r){if(this.spans=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.scope=null,y.prototype.spans=m.emptyArray,y.prototype.schemaUrl=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.scope&&Object.hasOwnProperty.call(i,"scope")&&_.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,a.uint32(10).fork()).ldelim(),null!=i.spans&&i.spans.length)for(var h=0;h<i.spans.length;++h)_.opentelemetry.proto.trace.v1.Span.encode(i.spans[h],a.uint32(18).fork()).ldelim();return null!=i.schemaUrl&&Object.hasOwnProperty.call(i,"schemaUrl")&&a.uint32(26).string(i.schemaUrl),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.trace.v1.ScopeSpans;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break;case 2:g.spans&&g.spans.length||(g.spans=[]),g.spans.push(_.opentelemetry.proto.trace.v1.Span.decode(i,i.uint32()));break;case 3:g.schemaUrl=i.string();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.scope&&i.hasOwnProperty("scope")&&(a=_.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope)))return"scope."+a;if(null!=i.spans&&i.hasOwnProperty("spans")){if(!Array.isArray(i.spans))return"spans: array expected";for(var h=0;h<i.spans.length;++h){var a;if(a=_.opentelemetry.proto.trace.v1.Span.verify(i.spans[h]))return"spans."+a}}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&!m.isString(i.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.trace.v1.ScopeSpans)return i;var a=new _.opentelemetry.proto.trace.v1.ScopeSpans;if(null!=i.scope){if("object"!=typeof i.scope)throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");a.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.spans){if(!Array.isArray(i.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");a.spans=[];for(var h=0;h<i.spans.length;++h){if("object"!=typeof i.spans[h])throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");a.spans[h]=_.opentelemetry.proto.trace.v1.Span.fromObject(i.spans[h])}}return null!=i.schemaUrl&&(a.schemaUrl=String(i.schemaUrl)),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.spans=[]),a.defaults&&(h.scope=null,h.schemaUrl=""),null!=i.scope&&i.hasOwnProperty("scope")&&(h.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,a)),i.spans&&i.spans.length){h.spans=[];for(var g=0;g<i.spans.length;++g)h.spans[g]=_.opentelemetry.proto.trace.v1.Span.toObject(i.spans[g],a)}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&(h.schemaUrl=i.schemaUrl),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ScopeSpans"},y}(),S.Span=function(){function y(r){if(this.attributes=[],this.events=[],this.links=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.traceId=null,y.prototype.spanId=null,y.prototype.traceState=null,y.prototype.parentSpanId=null,y.prototype.name=null,y.prototype.kind=null,y.prototype.startTimeUnixNano=null,y.prototype.endTimeUnixNano=null,y.prototype.attributes=m.emptyArray,y.prototype.droppedAttributesCount=null,y.prototype.events=m.emptyArray,y.prototype.droppedEventsCount=null,y.prototype.links=m.emptyArray,y.prototype.droppedLinksCount=null,y.prototype.status=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.traceId&&Object.hasOwnProperty.call(i,"traceId")&&a.uint32(10).bytes(i.traceId),null!=i.spanId&&Object.hasOwnProperty.call(i,"spanId")&&a.uint32(18).bytes(i.spanId),null!=i.traceState&&Object.hasOwnProperty.call(i,"traceState")&&a.uint32(26).string(i.traceState),null!=i.parentSpanId&&Object.hasOwnProperty.call(i,"parentSpanId")&&a.uint32(34).bytes(i.parentSpanId),null!=i.name&&Object.hasOwnProperty.call(i,"name")&&a.uint32(42).string(i.name),null!=i.kind&&Object.hasOwnProperty.call(i,"kind")&&a.uint32(48).int32(i.kind),null!=i.startTimeUnixNano&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&a.uint32(57).fixed64(i.startTimeUnixNano),null!=i.endTimeUnixNano&&Object.hasOwnProperty.call(i,"endTimeUnixNano")&&a.uint32(65).fixed64(i.endTimeUnixNano),null!=i.attributes&&i.attributes.length)for(var h=0;h<i.attributes.length;++h)_.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[h],a.uint32(74).fork()).ldelim();if(null!=i.droppedAttributesCount&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&a.uint32(80).uint32(i.droppedAttributesCount),null!=i.events&&i.events.length)for(h=0;h<i.events.length;++h)_.opentelemetry.proto.trace.v1.Span.Event.encode(i.events[h],a.uint32(90).fork()).ldelim();if(null!=i.droppedEventsCount&&Object.hasOwnProperty.call(i,"droppedEventsCount")&&a.uint32(96).uint32(i.droppedEventsCount),null!=i.links&&i.links.length)for(h=0;h<i.links.length;++h)_.opentelemetry.proto.trace.v1.Span.Link.encode(i.links[h],a.uint32(106).fork()).ldelim();return null!=i.droppedLinksCount&&Object.hasOwnProperty.call(i,"droppedLinksCount")&&a.uint32(112).uint32(i.droppedLinksCount),null!=i.status&&Object.hasOwnProperty.call(i,"status")&&_.opentelemetry.proto.trace.v1.Status.encode(i.status,a.uint32(122).fork()).ldelim(),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.trace.v1.Span;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.traceId=i.bytes();break;case 2:g.spanId=i.bytes();break;case 3:g.traceState=i.string();break;case 4:g.parentSpanId=i.bytes();break;case 5:g.name=i.string();break;case 6:g.kind=i.int32();break;case 7:g.startTimeUnixNano=i.fixed64();break;case 8:g.endTimeUnixNano=i.fixed64();break;case 9:g.attributes&&g.attributes.length||(g.attributes=[]),g.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break;case 10:g.droppedAttributesCount=i.uint32();break;case 11:g.events&&g.events.length||(g.events=[]),g.events.push(_.opentelemetry.proto.trace.v1.Span.Event.decode(i,i.uint32()));break;case 12:g.droppedEventsCount=i.uint32();break;case 13:g.links&&g.links.length||(g.links=[]),g.links.push(_.opentelemetry.proto.trace.v1.Span.Link.decode(i,i.uint32()));break;case 14:g.droppedLinksCount=i.uint32();break;case 15:g.status=_.opentelemetry.proto.trace.v1.Status.decode(i,i.uint32());break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.traceId&&i.hasOwnProperty("traceId")&&!(i.traceId&&"number"==typeof i.traceId.length||m.isString(i.traceId)))return"traceId: buffer expected";if(null!=i.spanId&&i.hasOwnProperty("spanId")&&!(i.spanId&&"number"==typeof i.spanId.length||m.isString(i.spanId)))return"spanId: buffer expected";if(null!=i.traceState&&i.hasOwnProperty("traceState")&&!m.isString(i.traceState))return"traceState: string expected";if(null!=i.parentSpanId&&i.hasOwnProperty("parentSpanId")&&!(i.parentSpanId&&"number"==typeof i.parentSpanId.length||m.isString(i.parentSpanId)))return"parentSpanId: buffer expected";if(null!=i.name&&i.hasOwnProperty("name")&&!m.isString(i.name))return"name: string expected";if(null!=i.kind&&i.hasOwnProperty("kind"))switch(i.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}if(null!=i.startTimeUnixNano&&i.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&m.isInteger(i.startTimeUnixNano.low)&&m.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=i.endTimeUnixNano&&i.hasOwnProperty("endTimeUnixNano")&&!m.isInteger(i.endTimeUnixNano)&&!(i.endTimeUnixNano&&m.isInteger(i.endTimeUnixNano.low)&&m.isInteger(i.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(null!=i.attributes&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var a=0;a<i.attributes.length;++a)if(h=_.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[a]))return"attributes."+h}if(null!=i.droppedAttributesCount&&i.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(null!=i.events&&i.hasOwnProperty("events")){if(!Array.isArray(i.events))return"events: array expected";for(a=0;a<i.events.length;++a)if(h=_.opentelemetry.proto.trace.v1.Span.Event.verify(i.events[a]))return"events."+h}if(null!=i.droppedEventsCount&&i.hasOwnProperty("droppedEventsCount")&&!m.isInteger(i.droppedEventsCount))return"droppedEventsCount: integer expected";if(null!=i.links&&i.hasOwnProperty("links")){if(!Array.isArray(i.links))return"links: array expected";for(a=0;a<i.links.length;++a)if(h=_.opentelemetry.proto.trace.v1.Span.Link.verify(i.links[a]))return"links."+h}return null!=i.droppedLinksCount&&i.hasOwnProperty("droppedLinksCount")&&!m.isInteger(i.droppedLinksCount)?"droppedLinksCount: integer expected":null!=i.status&&i.hasOwnProperty("status")&&(h=_.opentelemetry.proto.trace.v1.Status.verify(i.status))?"status."+h:null;var h},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.trace.v1.Span)return i;var a=new _.opentelemetry.proto.trace.v1.Span;switch(null!=i.traceId&&("string"==typeof i.traceId?m.base64.decode(i.traceId,a.traceId=m.newBuffer(m.base64.length(i.traceId)),0):i.traceId.length>=0&&(a.traceId=i.traceId)),null!=i.spanId&&("string"==typeof i.spanId?m.base64.decode(i.spanId,a.spanId=m.newBuffer(m.base64.length(i.spanId)),0):i.spanId.length>=0&&(a.spanId=i.spanId)),null!=i.traceState&&(a.traceState=String(i.traceState)),null!=i.parentSpanId&&("string"==typeof i.parentSpanId?m.base64.decode(i.parentSpanId,a.parentSpanId=m.newBuffer(m.base64.length(i.parentSpanId)),0):i.parentSpanId.length>=0&&(a.parentSpanId=i.parentSpanId)),null!=i.name&&(a.name=String(i.name)),i.kind){default:if("number"==typeof i.kind){a.kind=i.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:a.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:a.kind=1;break;case"SPAN_KIND_SERVER":case 2:a.kind=2;break;case"SPAN_KIND_CLIENT":case 3:a.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:a.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:a.kind=5}if(null!=i.startTimeUnixNano&&(m.Long?(a.startTimeUnixNano=m.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:"string"==typeof i.startTimeUnixNano?a.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):"number"==typeof i.startTimeUnixNano?a.startTimeUnixNano=i.startTimeUnixNano:"object"==typeof i.startTimeUnixNano&&(a.startTimeUnixNano=new m.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),null!=i.endTimeUnixNano&&(m.Long?(a.endTimeUnixNano=m.Long.fromValue(i.endTimeUnixNano)).unsigned=!1:"string"==typeof i.endTimeUnixNano?a.endTimeUnixNano=parseInt(i.endTimeUnixNano,10):"number"==typeof i.endTimeUnixNano?a.endTimeUnixNano=i.endTimeUnixNano:"object"==typeof i.endTimeUnixNano&&(a.endTimeUnixNano=new m.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber())),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");a.attributes=[];for(var h=0;h<i.attributes.length;++h){if("object"!=typeof i.attributes[h])throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");a.attributes[h]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[h])}}if(null!=i.droppedAttributesCount&&(a.droppedAttributesCount=i.droppedAttributesCount>>>0),i.events){if(!Array.isArray(i.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");for(a.events=[],h=0;h<i.events.length;++h){if("object"!=typeof i.events[h])throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");a.events[h]=_.opentelemetry.proto.trace.v1.Span.Event.fromObject(i.events[h])}}if(null!=i.droppedEventsCount&&(a.droppedEventsCount=i.droppedEventsCount>>>0),i.links){if(!Array.isArray(i.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");for(a.links=[],h=0;h<i.links.length;++h){if("object"!=typeof i.links[h])throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");a.links[h]=_.opentelemetry.proto.trace.v1.Span.Link.fromObject(i.links[h])}}if(null!=i.droppedLinksCount&&(a.droppedLinksCount=i.droppedLinksCount>>>0),null!=i.status){if("object"!=typeof i.status)throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");a.status=_.opentelemetry.proto.trace.v1.Status.fromObject(i.status)}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.attributes=[],h.events=[],h.links=[]),a.defaults){if(a.bytes===String?h.traceId="":(h.traceId=[],a.bytes!==Array&&(h.traceId=m.newBuffer(h.traceId))),a.bytes===String?h.spanId="":(h.spanId=[],a.bytes!==Array&&(h.spanId=m.newBuffer(h.spanId))),h.traceState="",a.bytes===String?h.parentSpanId="":(h.parentSpanId=[],a.bytes!==Array&&(h.parentSpanId=m.newBuffer(h.parentSpanId))),h.name="",h.kind=a.enums===String?"SPAN_KIND_UNSPECIFIED":0,m.Long){var g=new m.Long(0,0,!1);h.startTimeUnixNano=a.longs===String?g.toString():a.longs===Number?g.toNumber():g}else h.startTimeUnixNano=a.longs===String?"0":0;m.Long?(g=new m.Long(0,0,!1),h.endTimeUnixNano=a.longs===String?g.toString():a.longs===Number?g.toNumber():g):h.endTimeUnixNano=a.longs===String?"0":0,h.droppedAttributesCount=0,h.droppedEventsCount=0,h.droppedLinksCount=0,h.status=null}if(null!=i.traceId&&i.hasOwnProperty("traceId")&&(h.traceId=a.bytes===String?m.base64.encode(i.traceId,0,i.traceId.length):a.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),null!=i.spanId&&i.hasOwnProperty("spanId")&&(h.spanId=a.bytes===String?m.base64.encode(i.spanId,0,i.spanId.length):a.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),null!=i.traceState&&i.hasOwnProperty("traceState")&&(h.traceState=i.traceState),null!=i.parentSpanId&&i.hasOwnProperty("parentSpanId")&&(h.parentSpanId=a.bytes===String?m.base64.encode(i.parentSpanId,0,i.parentSpanId.length):a.bytes===Array?Array.prototype.slice.call(i.parentSpanId):i.parentSpanId),null!=i.name&&i.hasOwnProperty("name")&&(h.name=i.name),null!=i.kind&&i.hasOwnProperty("kind")&&(h.kind=a.enums===String?void 0===_.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]?i.kind:_.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]:i.kind),null!=i.startTimeUnixNano&&i.hasOwnProperty("startTimeUnixNano")&&(h.startTimeUnixNano="number"==typeof i.startTimeUnixNano?a.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:a.longs===String?m.Long.prototype.toString.call(i.startTimeUnixNano):a.longs===Number?new m.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),null!=i.endTimeUnixNano&&i.hasOwnProperty("endTimeUnixNano")&&(h.endTimeUnixNano="number"==typeof i.endTimeUnixNano?a.longs===String?String(i.endTimeUnixNano):i.endTimeUnixNano:a.longs===String?m.Long.prototype.toString.call(i.endTimeUnixNano):a.longs===Number?new m.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber():i.endTimeUnixNano),i.attributes&&i.attributes.length){h.attributes=[];for(var c=0;c<i.attributes.length;++c)h.attributes[c]=_.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[c],a)}if(null!=i.droppedAttributesCount&&i.hasOwnProperty("droppedAttributesCount")&&(h.droppedAttributesCount=i.droppedAttributesCount),i.events&&i.events.length)for(h.events=[],c=0;c<i.events.length;++c)h.events[c]=_.opentelemetry.proto.trace.v1.Span.Event.toObject(i.events[c],a);if(null!=i.droppedEventsCount&&i.hasOwnProperty("droppedEventsCount")&&(h.droppedEventsCount=i.droppedEventsCount),i.links&&i.links.length)for(h.links=[],c=0;c<i.links.length;++c)h.links[c]=_.opentelemetry.proto.trace.v1.Span.Link.toObject(i.links[c],a);return null!=i.droppedLinksCount&&i.hasOwnProperty("droppedLinksCount")&&(h.droppedLinksCount=i.droppedLinksCount),null!=i.status&&i.hasOwnProperty("status")&&(h.status=_.opentelemetry.proto.trace.v1.Status.toObject(i.status,a)),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Span"},y.SpanKind=(r={},(i=Object.create(r))[r[0]="SPAN_KIND_UNSPECIFIED"]=0,i[r[1]="SPAN_KIND_INTERNAL"]=1,i[r[2]="SPAN_KIND_SERVER"]=2,i[r[3]="SPAN_KIND_CLIENT"]=3,i[r[4]="SPAN_KIND_PRODUCER"]=4,i[r[5]="SPAN_KIND_CONSUMER"]=5,i),y.Event=function(){function r(i){if(this.attributes=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.timeUnixNano=null,r.prototype.name=null,r.prototype.attributes=m.emptyArray,r.prototype.droppedAttributesCount=null,r.create=function(a){return new r(a)},r.encode=function(a,h){if(h||(h=p.create()),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&h.uint32(9).fixed64(a.timeUnixNano),null!=a.name&&Object.hasOwnProperty.call(a,"name")&&h.uint32(18).string(a.name),null!=a.attributes&&a.attributes.length)for(var g=0;g<a.attributes.length;++g)_.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[g],h.uint32(26).fork()).ldelim();return null!=a.droppedAttributesCount&&Object.hasOwnProperty.call(a,"droppedAttributesCount")&&h.uint32(32).uint32(a.droppedAttributesCount),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.trace.v1.Span.Event;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.timeUnixNano=a.fixed64();break;case 2:c.name=a.string();break;case 3:c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 4:c.droppedAttributesCount=a.uint32();break;default:a.skipType(7&T)}}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!m.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&m.isInteger(a.timeUnixNano.low)&&m.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.name&&a.hasOwnProperty("name")&&!m.isString(a.name))return"name: string expected";if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var h=0;h<a.attributes.length;++h){var g=_.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[h]);if(g)return"attributes."+g}}return null!=a.droppedAttributesCount&&a.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(a.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.trace.v1.Span.Event)return a;var h=new _.opentelemetry.proto.trace.v1.Span.Event;if(null!=a.timeUnixNano&&(m.Long?(h.timeUnixNano=m.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?h.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?h.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(h.timeUnixNano=new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.name&&(h.name=String(a.name)),a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");h.attributes=[];for(var g=0;g<a.attributes.length;++g){if("object"!=typeof a.attributes[g])throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");h.attributes[g]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[g])}}return null!=a.droppedAttributesCount&&(h.droppedAttributesCount=a.droppedAttributesCount>>>0),h},r.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.attributes=[]),h.defaults){if(m.Long){var c=new m.Long(0,0,!1);g.timeUnixNano=h.longs===String?c.toString():h.longs===Number?c.toNumber():c}else g.timeUnixNano=h.longs===String?"0":0;g.name="",g.droppedAttributesCount=0}if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(g.timeUnixNano="number"==typeof a.timeUnixNano?h.longs===String?String(a.timeUnixNano):a.timeUnixNano:h.longs===String?m.Long.prototype.toString.call(a.timeUnixNano):h.longs===Number?new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.name&&a.hasOwnProperty("name")&&(g.name=a.name),a.attributes&&a.attributes.length){g.attributes=[];for(var T=0;T<a.attributes.length;++T)g.attributes[T]=_.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[T],h)}return null!=a.droppedAttributesCount&&a.hasOwnProperty("droppedAttributesCount")&&(g.droppedAttributesCount=a.droppedAttributesCount),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.trace.v1.Span.Event"},r}(),y.Link=function(){function r(i){if(this.attributes=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.traceId=null,r.prototype.spanId=null,r.prototype.traceState=null,r.prototype.attributes=m.emptyArray,r.prototype.droppedAttributesCount=null,r.create=function(a){return new r(a)},r.encode=function(a,h){if(h||(h=p.create()),null!=a.traceId&&Object.hasOwnProperty.call(a,"traceId")&&h.uint32(10).bytes(a.traceId),null!=a.spanId&&Object.hasOwnProperty.call(a,"spanId")&&h.uint32(18).bytes(a.spanId),null!=a.traceState&&Object.hasOwnProperty.call(a,"traceState")&&h.uint32(26).string(a.traceState),null!=a.attributes&&a.attributes.length)for(var g=0;g<a.attributes.length;++g)_.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[g],h.uint32(34).fork()).ldelim();return null!=a.droppedAttributesCount&&Object.hasOwnProperty.call(a,"droppedAttributesCount")&&h.uint32(40).uint32(a.droppedAttributesCount),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.trace.v1.Span.Link;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.traceId=a.bytes();break;case 2:c.spanId=a.bytes();break;case 3:c.traceState=a.string();break;case 4:c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 5:c.droppedAttributesCount=a.uint32();break;default:a.skipType(7&T)}}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.traceId&&a.hasOwnProperty("traceId")&&!(a.traceId&&"number"==typeof a.traceId.length||m.isString(a.traceId)))return"traceId: buffer expected";if(null!=a.spanId&&a.hasOwnProperty("spanId")&&!(a.spanId&&"number"==typeof a.spanId.length||m.isString(a.spanId)))return"spanId: buffer expected";if(null!=a.traceState&&a.hasOwnProperty("traceState")&&!m.isString(a.traceState))return"traceState: string expected";if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var h=0;h<a.attributes.length;++h){var g=_.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[h]);if(g)return"attributes."+g}}return null!=a.droppedAttributesCount&&a.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(a.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.trace.v1.Span.Link)return a;var h=new _.opentelemetry.proto.trace.v1.Span.Link;if(null!=a.traceId&&("string"==typeof a.traceId?m.base64.decode(a.traceId,h.traceId=m.newBuffer(m.base64.length(a.traceId)),0):a.traceId.length>=0&&(h.traceId=a.traceId)),null!=a.spanId&&("string"==typeof a.spanId?m.base64.decode(a.spanId,h.spanId=m.newBuffer(m.base64.length(a.spanId)),0):a.spanId.length>=0&&(h.spanId=a.spanId)),null!=a.traceState&&(h.traceState=String(a.traceState)),a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");h.attributes=[];for(var g=0;g<a.attributes.length;++g){if("object"!=typeof a.attributes[g])throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");h.attributes[g]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[g])}}return null!=a.droppedAttributesCount&&(h.droppedAttributesCount=a.droppedAttributesCount>>>0),h},r.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.attributes=[]),h.defaults&&(h.bytes===String?g.traceId="":(g.traceId=[],h.bytes!==Array&&(g.traceId=m.newBuffer(g.traceId))),h.bytes===String?g.spanId="":(g.spanId=[],h.bytes!==Array&&(g.spanId=m.newBuffer(g.spanId))),g.traceState="",g.droppedAttributesCount=0),null!=a.traceId&&a.hasOwnProperty("traceId")&&(g.traceId=h.bytes===String?m.base64.encode(a.traceId,0,a.traceId.length):h.bytes===Array?Array.prototype.slice.call(a.traceId):a.traceId),null!=a.spanId&&a.hasOwnProperty("spanId")&&(g.spanId=h.bytes===String?m.base64.encode(a.spanId,0,a.spanId.length):h.bytes===Array?Array.prototype.slice.call(a.spanId):a.spanId),null!=a.traceState&&a.hasOwnProperty("traceState")&&(g.traceState=a.traceState),a.attributes&&a.attributes.length){g.attributes=[];for(var c=0;c<a.attributes.length;++c)g.attributes[c]=_.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[c],h)}return null!=a.droppedAttributesCount&&a.hasOwnProperty("droppedAttributesCount")&&(g.droppedAttributesCount=a.droppedAttributesCount),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.trace.v1.Span.Link"},r}(),y;var r,i}(),S.Status=function(){function y(r){if(r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.message=null,y.prototype.code=null,y.create=function(i){return new y(i)},y.encode=function(i,a){return a||(a=p.create()),null!=i.message&&Object.hasOwnProperty.call(i,"message")&&a.uint32(18).string(i.message),null!=i.code&&Object.hasOwnProperty.call(i,"code")&&a.uint32(24).int32(i.code),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.trace.v1.Status;i.pos<h;){var c=i.uint32();switch(c>>>3){case 2:g.message=i.string();break;case 3:g.code=i.int32();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.message&&i.hasOwnProperty("message")&&!m.isString(i.message))return"message: string expected";if(null!=i.code&&i.hasOwnProperty("code"))switch(i.code){default:return"code: enum value expected";case 0:case 1:case 2:}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.trace.v1.Status)return i;var a=new _.opentelemetry.proto.trace.v1.Status;switch(null!=i.message&&(a.message=String(i.message)),i.code){default:if("number"==typeof i.code){a.code=i.code;break}break;case"STATUS_CODE_UNSET":case 0:a.code=0;break;case"STATUS_CODE_OK":case 1:a.code=1;break;case"STATUS_CODE_ERROR":case 2:a.code=2}return a},y.toObject=function(i,a){a||(a={});var h={};return a.defaults&&(h.message="",h.code=a.enums===String?"STATUS_CODE_UNSET":0),null!=i.message&&i.hasOwnProperty("message")&&(h.message=i.message),null!=i.code&&i.hasOwnProperty("code")&&(h.code=a.enums===String?void 0===_.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]?i.code:_.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]:i.code),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Status"},y.StatusCode=(r={},(i=Object.create(r))[r[0]="STATUS_CODE_UNSET"]=0,i[r[1]="STATUS_CODE_OK"]=1,i[r[2]="STATUS_CODE_ERROR"]=2,i),y;var r,i}(),S}(),O}(),v.collector=function(){var O={};return O.trace=function(){var y,S={};return S.v1=((y={}).TraceService=function(){function r(i,a,h){n.rpc.Service.call(this,i,a,h)}return(r.prototype=Object.create(n.rpc.Service.prototype)).constructor=r,r.create=function(a,h,g){return new this(a,h,g)},Object.defineProperty(r.prototype.export=function i(a,h){return this.rpcCall(i,_.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,_.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,a,h)},"name",{value:"Export"}),r}(),y.ExportTraceServiceRequest=function(){function r(i){if(this.resourceSpans=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.resourceSpans=m.emptyArray,r.create=function(a){return new r(a)},r.encode=function(a,h){if(h||(h=p.create()),null!=a.resourceSpans&&a.resourceSpans.length)for(var g=0;g<a.resourceSpans.length;++g)_.opentelemetry.proto.trace.v1.ResourceSpans.encode(a.resourceSpans[g],h.uint32(10).fork()).ldelim();return h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;a.pos<g;){var T=a.uint32();T>>>3==1?(c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(_.opentelemetry.proto.trace.v1.ResourceSpans.decode(a,a.uint32()))):a.skipType(7&T)}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.resourceSpans&&a.hasOwnProperty("resourceSpans")){if(!Array.isArray(a.resourceSpans))return"resourceSpans: array expected";for(var h=0;h<a.resourceSpans.length;++h){var g=_.opentelemetry.proto.trace.v1.ResourceSpans.verify(a.resourceSpans[h]);if(g)return"resourceSpans."+g}}return null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return a;var h=new _.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(a.resourceSpans){if(!Array.isArray(a.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");h.resourceSpans=[];for(var g=0;g<a.resourceSpans.length;++g){if("object"!=typeof a.resourceSpans[g])throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");h.resourceSpans[g]=_.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(a.resourceSpans[g])}}return h},r.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.resourceSpans=[]),a.resourceSpans&&a.resourceSpans.length){g.resourceSpans=[];for(var c=0;c<a.resourceSpans.length;++c)g.resourceSpans[c]=_.opentelemetry.proto.trace.v1.ResourceSpans.toObject(a.resourceSpans[c],h)}return g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},r}(),y.ExportTraceServiceResponse=function(){function r(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.partialSuccess=null,r.create=function(a){return new r(a)},r.encode=function(a,h){return h||(h=p.create()),null!=a.partialSuccess&&Object.hasOwnProperty.call(a,"partialSuccess")&&_.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(a.partialSuccess,h.uint32(10).fork()).ldelim(),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;a.pos<g;){var T=a.uint32();T>>>3==1?c.partialSuccess=_.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(a,a.uint32()):a.skipType(7&T)}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")){var h=_.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(a.partialSuccess);if(h)return"partialSuccess."+h}return null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return a;var h=new _.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(null!=a.partialSuccess){if("object"!=typeof a.partialSuccess)throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");h.partialSuccess=_.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(a.partialSuccess)}return h},r.toObject=function(a,h){h||(h={});var g={};return h.defaults&&(g.partialSuccess=null),null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")&&(g.partialSuccess=_.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(a.partialSuccess,h)),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},r}(),y.ExportTracePartialSuccess=function(){function r(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.rejectedSpans=null,r.prototype.errorMessage=null,r.create=function(a){return new r(a)},r.encode=function(a,h){return h||(h=p.create()),null!=a.rejectedSpans&&Object.hasOwnProperty.call(a,"rejectedSpans")&&h.uint32(8).int64(a.rejectedSpans),null!=a.errorMessage&&Object.hasOwnProperty.call(a,"errorMessage")&&h.uint32(18).string(a.errorMessage),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.rejectedSpans=a.int64();break;case 2:c.errorMessage=a.string();break;default:a.skipType(7&T)}}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){return"object"!=typeof a||null===a?"object expected":null==a.rejectedSpans||!a.hasOwnProperty("rejectedSpans")||m.isInteger(a.rejectedSpans)||a.rejectedSpans&&m.isInteger(a.rejectedSpans.low)&&m.isInteger(a.rejectedSpans.high)?null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&!m.isString(a.errorMessage)?"errorMessage: string expected":null:"rejectedSpans: integer|Long expected"},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return a;var h=new _.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return null!=a.rejectedSpans&&(m.Long?(h.rejectedSpans=m.Long.fromValue(a.rejectedSpans)).unsigned=!1:"string"==typeof a.rejectedSpans?h.rejectedSpans=parseInt(a.rejectedSpans,10):"number"==typeof a.rejectedSpans?h.rejectedSpans=a.rejectedSpans:"object"==typeof a.rejectedSpans&&(h.rejectedSpans=new m.LongBits(a.rejectedSpans.low>>>0,a.rejectedSpans.high>>>0).toNumber())),null!=a.errorMessage&&(h.errorMessage=String(a.errorMessage)),h},r.toObject=function(a,h){h||(h={});var g={};if(h.defaults){if(m.Long){var c=new m.Long(0,0,!1);g.rejectedSpans=h.longs===String?c.toString():h.longs===Number?c.toNumber():c}else g.rejectedSpans=h.longs===String?"0":0;g.errorMessage=""}return null!=a.rejectedSpans&&a.hasOwnProperty("rejectedSpans")&&(g.rejectedSpans="number"==typeof a.rejectedSpans?h.longs===String?String(a.rejectedSpans):a.rejectedSpans:h.longs===String?m.Long.prototype.toString.call(a.rejectedSpans):h.longs===Number?new m.LongBits(a.rejectedSpans.low>>>0,a.rejectedSpans.high>>>0).toNumber():a.rejectedSpans),null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&(g.errorMessage=a.errorMessage),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},r}(),y),S}(),O.metrics=function(){var y,S={};return S.v1=((y={}).MetricsService=function(){function r(i,a,h){n.rpc.Service.call(this,i,a,h)}return(r.prototype=Object.create(n.rpc.Service.prototype)).constructor=r,r.create=function(a,h,g){return new this(a,h,g)},Object.defineProperty(r.prototype.export=function i(a,h){return this.rpcCall(i,_.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,_.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,a,h)},"name",{value:"Export"}),r}(),y.ExportMetricsServiceRequest=function(){function r(i){if(this.resourceMetrics=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.resourceMetrics=m.emptyArray,r.create=function(a){return new r(a)},r.encode=function(a,h){if(h||(h=p.create()),null!=a.resourceMetrics&&a.resourceMetrics.length)for(var g=0;g<a.resourceMetrics.length;++g)_.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(a.resourceMetrics[g],h.uint32(10).fork()).ldelim();return h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;a.pos<g;){var T=a.uint32();T>>>3==1?(c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(_.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(a,a.uint32()))):a.skipType(7&T)}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.resourceMetrics&&a.hasOwnProperty("resourceMetrics")){if(!Array.isArray(a.resourceMetrics))return"resourceMetrics: array expected";for(var h=0;h<a.resourceMetrics.length;++h){var g=_.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(a.resourceMetrics[h]);if(g)return"resourceMetrics."+g}}return null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return a;var h=new _.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(a.resourceMetrics){if(!Array.isArray(a.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");h.resourceMetrics=[];for(var g=0;g<a.resourceMetrics.length;++g){if("object"!=typeof a.resourceMetrics[g])throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");h.resourceMetrics[g]=_.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(a.resourceMetrics[g])}}return h},r.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.resourceMetrics=[]),a.resourceMetrics&&a.resourceMetrics.length){g.resourceMetrics=[];for(var c=0;c<a.resourceMetrics.length;++c)g.resourceMetrics[c]=_.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(a.resourceMetrics[c],h)}return g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},r}(),y.ExportMetricsServiceResponse=function(){function r(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.partialSuccess=null,r.create=function(a){return new r(a)},r.encode=function(a,h){return h||(h=p.create()),null!=a.partialSuccess&&Object.hasOwnProperty.call(a,"partialSuccess")&&_.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(a.partialSuccess,h.uint32(10).fork()).ldelim(),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;a.pos<g;){var T=a.uint32();T>>>3==1?c.partialSuccess=_.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(a,a.uint32()):a.skipType(7&T)}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")){var h=_.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(a.partialSuccess);if(h)return"partialSuccess."+h}return null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return a;var h=new _.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(null!=a.partialSuccess){if("object"!=typeof a.partialSuccess)throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");h.partialSuccess=_.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(a.partialSuccess)}return h},r.toObject=function(a,h){h||(h={});var g={};return h.defaults&&(g.partialSuccess=null),null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")&&(g.partialSuccess=_.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(a.partialSuccess,h)),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},r}(),y.ExportMetricsPartialSuccess=function(){function r(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.rejectedDataPoints=null,r.prototype.errorMessage=null,r.create=function(a){return new r(a)},r.encode=function(a,h){return h||(h=p.create()),null!=a.rejectedDataPoints&&Object.hasOwnProperty.call(a,"rejectedDataPoints")&&h.uint32(8).int64(a.rejectedDataPoints),null!=a.errorMessage&&Object.hasOwnProperty.call(a,"errorMessage")&&h.uint32(18).string(a.errorMessage),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.rejectedDataPoints=a.int64();break;case 2:c.errorMessage=a.string();break;default:a.skipType(7&T)}}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){return"object"!=typeof a||null===a?"object expected":null==a.rejectedDataPoints||!a.hasOwnProperty("rejectedDataPoints")||m.isInteger(a.rejectedDataPoints)||a.rejectedDataPoints&&m.isInteger(a.rejectedDataPoints.low)&&m.isInteger(a.rejectedDataPoints.high)?null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&!m.isString(a.errorMessage)?"errorMessage: string expected":null:"rejectedDataPoints: integer|Long expected"},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return a;var h=new _.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return null!=a.rejectedDataPoints&&(m.Long?(h.rejectedDataPoints=m.Long.fromValue(a.rejectedDataPoints)).unsigned=!1:"string"==typeof a.rejectedDataPoints?h.rejectedDataPoints=parseInt(a.rejectedDataPoints,10):"number"==typeof a.rejectedDataPoints?h.rejectedDataPoints=a.rejectedDataPoints:"object"==typeof a.rejectedDataPoints&&(h.rejectedDataPoints=new m.LongBits(a.rejectedDataPoints.low>>>0,a.rejectedDataPoints.high>>>0).toNumber())),null!=a.errorMessage&&(h.errorMessage=String(a.errorMessage)),h},r.toObject=function(a,h){h||(h={});var g={};if(h.defaults){if(m.Long){var c=new m.Long(0,0,!1);g.rejectedDataPoints=h.longs===String?c.toString():h.longs===Number?c.toNumber():c}else g.rejectedDataPoints=h.longs===String?"0":0;g.errorMessage=""}return null!=a.rejectedDataPoints&&a.hasOwnProperty("rejectedDataPoints")&&(g.rejectedDataPoints="number"==typeof a.rejectedDataPoints?h.longs===String?String(a.rejectedDataPoints):a.rejectedDataPoints:h.longs===String?m.Long.prototype.toString.call(a.rejectedDataPoints):h.longs===Number?new m.LongBits(a.rejectedDataPoints.low>>>0,a.rejectedDataPoints.high>>>0).toNumber():a.rejectedDataPoints),null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&(g.errorMessage=a.errorMessage),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},r}(),y),S}(),O.logs=function(){var y,S={};return S.v1=((y={}).LogsService=function(){function r(i,a,h){n.rpc.Service.call(this,i,a,h)}return(r.prototype=Object.create(n.rpc.Service.prototype)).constructor=r,r.create=function(a,h,g){return new this(a,h,g)},Object.defineProperty(r.prototype.export=function i(a,h){return this.rpcCall(i,_.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,_.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,a,h)},"name",{value:"Export"}),r}(),y.ExportLogsServiceRequest=function(){function r(i){if(this.resourceLogs=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.resourceLogs=m.emptyArray,r.create=function(a){return new r(a)},r.encode=function(a,h){if(h||(h=p.create()),null!=a.resourceLogs&&a.resourceLogs.length)for(var g=0;g<a.resourceLogs.length;++g)_.opentelemetry.proto.logs.v1.ResourceLogs.encode(a.resourceLogs[g],h.uint32(10).fork()).ldelim();return h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;a.pos<g;){var T=a.uint32();T>>>3==1?(c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(_.opentelemetry.proto.logs.v1.ResourceLogs.decode(a,a.uint32()))):a.skipType(7&T)}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.resourceLogs&&a.hasOwnProperty("resourceLogs")){if(!Array.isArray(a.resourceLogs))return"resourceLogs: array expected";for(var h=0;h<a.resourceLogs.length;++h){var g=_.opentelemetry.proto.logs.v1.ResourceLogs.verify(a.resourceLogs[h]);if(g)return"resourceLogs."+g}}return null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return a;var h=new _.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(a.resourceLogs){if(!Array.isArray(a.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");h.resourceLogs=[];for(var g=0;g<a.resourceLogs.length;++g){if("object"!=typeof a.resourceLogs[g])throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");h.resourceLogs[g]=_.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(a.resourceLogs[g])}}return h},r.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.resourceLogs=[]),a.resourceLogs&&a.resourceLogs.length){g.resourceLogs=[];for(var c=0;c<a.resourceLogs.length;++c)g.resourceLogs[c]=_.opentelemetry.proto.logs.v1.ResourceLogs.toObject(a.resourceLogs[c],h)}return g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},r}(),y.ExportLogsServiceResponse=function(){function r(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.partialSuccess=null,r.create=function(a){return new r(a)},r.encode=function(a,h){return h||(h=p.create()),null!=a.partialSuccess&&Object.hasOwnProperty.call(a,"partialSuccess")&&_.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(a.partialSuccess,h.uint32(10).fork()).ldelim(),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;a.pos<g;){var T=a.uint32();T>>>3==1?c.partialSuccess=_.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(a,a.uint32()):a.skipType(7&T)}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")){var h=_.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(a.partialSuccess);if(h)return"partialSuccess."+h}return null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return a;var h=new _.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(null!=a.partialSuccess){if("object"!=typeof a.partialSuccess)throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");h.partialSuccess=_.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(a.partialSuccess)}return h},r.toObject=function(a,h){h||(h={});var g={};return h.defaults&&(g.partialSuccess=null),null!=a.partialSuccess&&a.hasOwnProperty("partialSuccess")&&(g.partialSuccess=_.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(a.partialSuccess,h)),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},r}(),y.ExportLogsPartialSuccess=function(){function r(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.rejectedLogRecords=null,r.prototype.errorMessage=null,r.create=function(a){return new r(a)},r.encode=function(a,h){return h||(h=p.create()),null!=a.rejectedLogRecords&&Object.hasOwnProperty.call(a,"rejectedLogRecords")&&h.uint32(8).int64(a.rejectedLogRecords),null!=a.errorMessage&&Object.hasOwnProperty.call(a,"errorMessage")&&h.uint32(18).string(a.errorMessage),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.rejectedLogRecords=a.int64();break;case 2:c.errorMessage=a.string();break;default:a.skipType(7&T)}}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){return"object"!=typeof a||null===a?"object expected":null==a.rejectedLogRecords||!a.hasOwnProperty("rejectedLogRecords")||m.isInteger(a.rejectedLogRecords)||a.rejectedLogRecords&&m.isInteger(a.rejectedLogRecords.low)&&m.isInteger(a.rejectedLogRecords.high)?null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&!m.isString(a.errorMessage)?"errorMessage: string expected":null:"rejectedLogRecords: integer|Long expected"},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return a;var h=new _.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return null!=a.rejectedLogRecords&&(m.Long?(h.rejectedLogRecords=m.Long.fromValue(a.rejectedLogRecords)).unsigned=!1:"string"==typeof a.rejectedLogRecords?h.rejectedLogRecords=parseInt(a.rejectedLogRecords,10):"number"==typeof a.rejectedLogRecords?h.rejectedLogRecords=a.rejectedLogRecords:"object"==typeof a.rejectedLogRecords&&(h.rejectedLogRecords=new m.LongBits(a.rejectedLogRecords.low>>>0,a.rejectedLogRecords.high>>>0).toNumber())),null!=a.errorMessage&&(h.errorMessage=String(a.errorMessage)),h},r.toObject=function(a,h){h||(h={});var g={};if(h.defaults){if(m.Long){var c=new m.Long(0,0,!1);g.rejectedLogRecords=h.longs===String?c.toString():h.longs===Number?c.toNumber():c}else g.rejectedLogRecords=h.longs===String?"0":0;g.errorMessage=""}return null!=a.rejectedLogRecords&&a.hasOwnProperty("rejectedLogRecords")&&(g.rejectedLogRecords="number"==typeof a.rejectedLogRecords?h.longs===String?String(a.rejectedLogRecords):a.rejectedLogRecords:h.longs===String?m.Long.prototype.toString.call(a.rejectedLogRecords):h.longs===Number?new m.LongBits(a.rejectedLogRecords.low>>>0,a.rejectedLogRecords.high>>>0).toNumber():a.rejectedLogRecords),null!=a.errorMessage&&a.hasOwnProperty("errorMessage")&&(g.errorMessage=a.errorMessage),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},r}(),y),S}(),O}(),v.metrics=function(){var O={};return O.v1=function(){var y,r,S={};return S.MetricsData=function(){function y(r){if(this.resourceMetrics=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.resourceMetrics=m.emptyArray,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.resourceMetrics&&i.resourceMetrics.length)for(var h=0;h<i.resourceMetrics.length;++h)_.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(i.resourceMetrics[h],a.uint32(10).fork()).ldelim();return a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.MetricsData;i.pos<h;){var c=i.uint32();c>>>3==1?(g.resourceMetrics&&g.resourceMetrics.length||(g.resourceMetrics=[]),g.resourceMetrics.push(_.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(i,i.uint32()))):i.skipType(7&c)}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.resourceMetrics&&i.hasOwnProperty("resourceMetrics")){if(!Array.isArray(i.resourceMetrics))return"resourceMetrics: array expected";for(var a=0;a<i.resourceMetrics.length;++a){var h=_.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(i.resourceMetrics[a]);if(h)return"resourceMetrics."+h}}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.MetricsData)return i;var a=new _.opentelemetry.proto.metrics.v1.MetricsData;if(i.resourceMetrics){if(!Array.isArray(i.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");a.resourceMetrics=[];for(var h=0;h<i.resourceMetrics.length;++h){if("object"!=typeof i.resourceMetrics[h])throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");a.resourceMetrics[h]=_.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(i.resourceMetrics[h])}}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.resourceMetrics=[]),i.resourceMetrics&&i.resourceMetrics.length){h.resourceMetrics=[];for(var g=0;g<i.resourceMetrics.length;++g)h.resourceMetrics[g]=_.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(i.resourceMetrics[g],a)}return h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.MetricsData"},y}(),S.ResourceMetrics=function(){function y(r){if(this.scopeMetrics=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.resource=null,y.prototype.scopeMetrics=m.emptyArray,y.prototype.schemaUrl=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.resource&&Object.hasOwnProperty.call(i,"resource")&&_.opentelemetry.proto.resource.v1.Resource.encode(i.resource,a.uint32(10).fork()).ldelim(),null!=i.scopeMetrics&&i.scopeMetrics.length)for(var h=0;h<i.scopeMetrics.length;++h)_.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(i.scopeMetrics[h],a.uint32(18).fork()).ldelim();return null!=i.schemaUrl&&Object.hasOwnProperty.call(i,"schemaUrl")&&a.uint32(26).string(i.schemaUrl),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.ResourceMetrics;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.resource=_.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break;case 2:g.scopeMetrics&&g.scopeMetrics.length||(g.scopeMetrics=[]),g.scopeMetrics.push(_.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(i,i.uint32()));break;case 3:g.schemaUrl=i.string();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.resource&&i.hasOwnProperty("resource")&&(a=_.opentelemetry.proto.resource.v1.Resource.verify(i.resource)))return"resource."+a;if(null!=i.scopeMetrics&&i.hasOwnProperty("scopeMetrics")){if(!Array.isArray(i.scopeMetrics))return"scopeMetrics: array expected";for(var h=0;h<i.scopeMetrics.length;++h){var a;if(a=_.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(i.scopeMetrics[h]))return"scopeMetrics."+a}}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&!m.isString(i.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.ResourceMetrics)return i;var a=new _.opentelemetry.proto.metrics.v1.ResourceMetrics;if(null!=i.resource){if("object"!=typeof i.resource)throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");a.resource=_.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeMetrics){if(!Array.isArray(i.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");a.scopeMetrics=[];for(var h=0;h<i.scopeMetrics.length;++h){if("object"!=typeof i.scopeMetrics[h])throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");a.scopeMetrics[h]=_.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(i.scopeMetrics[h])}}return null!=i.schemaUrl&&(a.schemaUrl=String(i.schemaUrl)),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.scopeMetrics=[]),a.defaults&&(h.resource=null,h.schemaUrl=""),null!=i.resource&&i.hasOwnProperty("resource")&&(h.resource=_.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,a)),i.scopeMetrics&&i.scopeMetrics.length){h.scopeMetrics=[];for(var g=0;g<i.scopeMetrics.length;++g)h.scopeMetrics[g]=_.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(i.scopeMetrics[g],a)}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&(h.schemaUrl=i.schemaUrl),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},y}(),S.ScopeMetrics=function(){function y(r){if(this.metrics=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.scope=null,y.prototype.metrics=m.emptyArray,y.prototype.schemaUrl=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.scope&&Object.hasOwnProperty.call(i,"scope")&&_.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,a.uint32(10).fork()).ldelim(),null!=i.metrics&&i.metrics.length)for(var h=0;h<i.metrics.length;++h)_.opentelemetry.proto.metrics.v1.Metric.encode(i.metrics[h],a.uint32(18).fork()).ldelim();return null!=i.schemaUrl&&Object.hasOwnProperty.call(i,"schemaUrl")&&a.uint32(26).string(i.schemaUrl),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.ScopeMetrics;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break;case 2:g.metrics&&g.metrics.length||(g.metrics=[]),g.metrics.push(_.opentelemetry.proto.metrics.v1.Metric.decode(i,i.uint32()));break;case 3:g.schemaUrl=i.string();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.scope&&i.hasOwnProperty("scope")&&(a=_.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope)))return"scope."+a;if(null!=i.metrics&&i.hasOwnProperty("metrics")){if(!Array.isArray(i.metrics))return"metrics: array expected";for(var h=0;h<i.metrics.length;++h){var a;if(a=_.opentelemetry.proto.metrics.v1.Metric.verify(i.metrics[h]))return"metrics."+a}}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&!m.isString(i.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.ScopeMetrics)return i;var a=new _.opentelemetry.proto.metrics.v1.ScopeMetrics;if(null!=i.scope){if("object"!=typeof i.scope)throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");a.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.metrics){if(!Array.isArray(i.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");a.metrics=[];for(var h=0;h<i.metrics.length;++h){if("object"!=typeof i.metrics[h])throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");a.metrics[h]=_.opentelemetry.proto.metrics.v1.Metric.fromObject(i.metrics[h])}}return null!=i.schemaUrl&&(a.schemaUrl=String(i.schemaUrl)),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.metrics=[]),a.defaults&&(h.scope=null,h.schemaUrl=""),null!=i.scope&&i.hasOwnProperty("scope")&&(h.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,a)),i.metrics&&i.metrics.length){h.metrics=[];for(var g=0;g<i.metrics.length;++g)h.metrics[g]=_.opentelemetry.proto.metrics.v1.Metric.toObject(i.metrics[g],a)}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&(h.schemaUrl=i.schemaUrl),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},y}(),S.Metric=function(){function y(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}var r;return y.prototype.name=null,y.prototype.description=null,y.prototype.unit=null,y.prototype.gauge=null,y.prototype.sum=null,y.prototype.histogram=null,y.prototype.exponentialHistogram=null,y.prototype.summary=null,Object.defineProperty(y.prototype,"data",{get:m.oneOfGetter(r=["gauge","sum","histogram","exponentialHistogram","summary"]),set:m.oneOfSetter(r)}),y.create=function(a){return new y(a)},y.encode=function(a,h){return h||(h=p.create()),null!=a.name&&Object.hasOwnProperty.call(a,"name")&&h.uint32(10).string(a.name),null!=a.description&&Object.hasOwnProperty.call(a,"description")&&h.uint32(18).string(a.description),null!=a.unit&&Object.hasOwnProperty.call(a,"unit")&&h.uint32(26).string(a.unit),null!=a.gauge&&Object.hasOwnProperty.call(a,"gauge")&&_.opentelemetry.proto.metrics.v1.Gauge.encode(a.gauge,h.uint32(42).fork()).ldelim(),null!=a.sum&&Object.hasOwnProperty.call(a,"sum")&&_.opentelemetry.proto.metrics.v1.Sum.encode(a.sum,h.uint32(58).fork()).ldelim(),null!=a.histogram&&Object.hasOwnProperty.call(a,"histogram")&&_.opentelemetry.proto.metrics.v1.Histogram.encode(a.histogram,h.uint32(74).fork()).ldelim(),null!=a.exponentialHistogram&&Object.hasOwnProperty.call(a,"exponentialHistogram")&&_.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(a.exponentialHistogram,h.uint32(82).fork()).ldelim(),null!=a.summary&&Object.hasOwnProperty.call(a,"summary")&&_.opentelemetry.proto.metrics.v1.Summary.encode(a.summary,h.uint32(90).fork()).ldelim(),h},y.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},y.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.metrics.v1.Metric;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.name=a.string();break;case 2:c.description=a.string();break;case 3:c.unit=a.string();break;case 5:c.gauge=_.opentelemetry.proto.metrics.v1.Gauge.decode(a,a.uint32());break;case 7:c.sum=_.opentelemetry.proto.metrics.v1.Sum.decode(a,a.uint32());break;case 9:c.histogram=_.opentelemetry.proto.metrics.v1.Histogram.decode(a,a.uint32());break;case 10:c.exponentialHistogram=_.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(a,a.uint32());break;case 11:c.summary=_.opentelemetry.proto.metrics.v1.Summary.decode(a,a.uint32());break;default:a.skipType(7&T)}}return c},y.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},y.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var h={};if(null!=a.name&&a.hasOwnProperty("name")&&!m.isString(a.name))return"name: string expected";if(null!=a.description&&a.hasOwnProperty("description")&&!m.isString(a.description))return"description: string expected";if(null!=a.unit&&a.hasOwnProperty("unit")&&!m.isString(a.unit))return"unit: string expected";if(null!=a.gauge&&a.hasOwnProperty("gauge")&&(h.data=1,g=_.opentelemetry.proto.metrics.v1.Gauge.verify(a.gauge)))return"gauge."+g;if(null!=a.sum&&a.hasOwnProperty("sum")){if(1===h.data)return"data: multiple values";if(h.data=1,g=_.opentelemetry.proto.metrics.v1.Sum.verify(a.sum))return"sum."+g}if(null!=a.histogram&&a.hasOwnProperty("histogram")){if(1===h.data)return"data: multiple values";if(h.data=1,g=_.opentelemetry.proto.metrics.v1.Histogram.verify(a.histogram))return"histogram."+g}if(null!=a.exponentialHistogram&&a.hasOwnProperty("exponentialHistogram")){if(1===h.data)return"data: multiple values";if(h.data=1,g=_.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(a.exponentialHistogram))return"exponentialHistogram."+g}if(null!=a.summary&&a.hasOwnProperty("summary")){if(1===h.data)return"data: multiple values";var g;if(h.data=1,g=_.opentelemetry.proto.metrics.v1.Summary.verify(a.summary))return"summary."+g}return null},y.fromObject=function(a){if(a instanceof _.opentelemetry.proto.metrics.v1.Metric)return a;var h=new _.opentelemetry.proto.metrics.v1.Metric;if(null!=a.name&&(h.name=String(a.name)),null!=a.description&&(h.description=String(a.description)),null!=a.unit&&(h.unit=String(a.unit)),null!=a.gauge){if("object"!=typeof a.gauge)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");h.gauge=_.opentelemetry.proto.metrics.v1.Gauge.fromObject(a.gauge)}if(null!=a.sum){if("object"!=typeof a.sum)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");h.sum=_.opentelemetry.proto.metrics.v1.Sum.fromObject(a.sum)}if(null!=a.histogram){if("object"!=typeof a.histogram)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");h.histogram=_.opentelemetry.proto.metrics.v1.Histogram.fromObject(a.histogram)}if(null!=a.exponentialHistogram){if("object"!=typeof a.exponentialHistogram)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");h.exponentialHistogram=_.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(a.exponentialHistogram)}if(null!=a.summary){if("object"!=typeof a.summary)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");h.summary=_.opentelemetry.proto.metrics.v1.Summary.fromObject(a.summary)}return h},y.toObject=function(a,h){h||(h={});var g={};return h.defaults&&(g.name="",g.description="",g.unit=""),null!=a.name&&a.hasOwnProperty("name")&&(g.name=a.name),null!=a.description&&a.hasOwnProperty("description")&&(g.description=a.description),null!=a.unit&&a.hasOwnProperty("unit")&&(g.unit=a.unit),null!=a.gauge&&a.hasOwnProperty("gauge")&&(g.gauge=_.opentelemetry.proto.metrics.v1.Gauge.toObject(a.gauge,h),h.oneofs&&(g.data="gauge")),null!=a.sum&&a.hasOwnProperty("sum")&&(g.sum=_.opentelemetry.proto.metrics.v1.Sum.toObject(a.sum,h),h.oneofs&&(g.data="sum")),null!=a.histogram&&a.hasOwnProperty("histogram")&&(g.histogram=_.opentelemetry.proto.metrics.v1.Histogram.toObject(a.histogram,h),h.oneofs&&(g.data="histogram")),null!=a.exponentialHistogram&&a.hasOwnProperty("exponentialHistogram")&&(g.exponentialHistogram=_.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(a.exponentialHistogram,h),h.oneofs&&(g.data="exponentialHistogram")),null!=a.summary&&a.hasOwnProperty("summary")&&(g.summary=_.opentelemetry.proto.metrics.v1.Summary.toObject(a.summary,h),h.oneofs&&(g.data="summary")),g},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.Metric"},y}(),S.Gauge=function(){function y(r){if(this.dataPoints=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.dataPoints=m.emptyArray,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.dataPoints&&i.dataPoints.length)for(var h=0;h<i.dataPoints.length;++h)_.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[h],a.uint32(10).fork()).ldelim();return a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.Gauge;i.pos<h;){var c=i.uint32();c>>>3==1?(g.dataPoints&&g.dataPoints.length||(g.dataPoints=[]),g.dataPoints.push(_.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()))):i.skipType(7&c)}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.dataPoints&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var a=0;a<i.dataPoints.length;++a){var h=_.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[a]);if(h)return"dataPoints."+h}}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.Gauge)return i;var a=new _.opentelemetry.proto.metrics.v1.Gauge;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");a.dataPoints=[];for(var h=0;h<i.dataPoints.length;++h){if("object"!=typeof i.dataPoints[h])throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");a.dataPoints[h]=_.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[h])}}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.dataPoints=[]),i.dataPoints&&i.dataPoints.length){h.dataPoints=[];for(var g=0;g<i.dataPoints.length;++g)h.dataPoints[g]=_.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[g],a)}return h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Gauge"},y}(),S.Sum=function(){function y(r){if(this.dataPoints=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.dataPoints=m.emptyArray,y.prototype.aggregationTemporality=null,y.prototype.isMonotonic=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.dataPoints&&i.dataPoints.length)for(var h=0;h<i.dataPoints.length;++h)_.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[h],a.uint32(10).fork()).ldelim();return null!=i.aggregationTemporality&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&a.uint32(16).int32(i.aggregationTemporality),null!=i.isMonotonic&&Object.hasOwnProperty.call(i,"isMonotonic")&&a.uint32(24).bool(i.isMonotonic),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.Sum;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.dataPoints&&g.dataPoints.length||(g.dataPoints=[]),g.dataPoints.push(_.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break;case 2:g.aggregationTemporality=i.int32();break;case 3:g.isMonotonic=i.bool();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.dataPoints&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var a=0;a<i.dataPoints.length;++a){var h=_.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[a]);if(h)return"dataPoints."+h}}if(null!=i.aggregationTemporality&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null!=i.isMonotonic&&i.hasOwnProperty("isMonotonic")&&"boolean"!=typeof i.isMonotonic?"isMonotonic: boolean expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.Sum)return i;var a=new _.opentelemetry.proto.metrics.v1.Sum;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");a.dataPoints=[];for(var h=0;h<i.dataPoints.length;++h){if("object"!=typeof i.dataPoints[h])throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");a.dataPoints[h]=_.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[h])}}switch(i.aggregationTemporality){default:if("number"==typeof i.aggregationTemporality){a.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:a.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:a.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:a.aggregationTemporality=2}return null!=i.isMonotonic&&(a.isMonotonic=!!i.isMonotonic),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.dataPoints=[]),a.defaults&&(h.aggregationTemporality=a.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,h.isMonotonic=!1),i.dataPoints&&i.dataPoints.length){h.dataPoints=[];for(var g=0;g<i.dataPoints.length;++g)h.dataPoints[g]=_.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[g],a)}return null!=i.aggregationTemporality&&i.hasOwnProperty("aggregationTemporality")&&(h.aggregationTemporality=a.enums===String?void 0===_.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]?i.aggregationTemporality:_.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),null!=i.isMonotonic&&i.hasOwnProperty("isMonotonic")&&(h.isMonotonic=i.isMonotonic),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Sum"},y}(),S.Histogram=function(){function y(r){if(this.dataPoints=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.dataPoints=m.emptyArray,y.prototype.aggregationTemporality=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.dataPoints&&i.dataPoints.length)for(var h=0;h<i.dataPoints.length;++h)_.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(i.dataPoints[h],a.uint32(10).fork()).ldelim();return null!=i.aggregationTemporality&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&a.uint32(16).int32(i.aggregationTemporality),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.Histogram;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.dataPoints&&g.dataPoints.length||(g.dataPoints=[]),g.dataPoints.push(_.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(i,i.uint32()));break;case 2:g.aggregationTemporality=i.int32();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.dataPoints&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var a=0;a<i.dataPoints.length;++a){var h=_.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(i.dataPoints[a]);if(h)return"dataPoints."+h}}if(null!=i.aggregationTemporality&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.Histogram)return i;var a=new _.opentelemetry.proto.metrics.v1.Histogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");a.dataPoints=[];for(var h=0;h<i.dataPoints.length;++h){if("object"!=typeof i.dataPoints[h])throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");a.dataPoints[h]=_.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(i.dataPoints[h])}}switch(i.aggregationTemporality){default:if("number"==typeof i.aggregationTemporality){a.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:a.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:a.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:a.aggregationTemporality=2}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.dataPoints=[]),a.defaults&&(h.aggregationTemporality=a.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){h.dataPoints=[];for(var g=0;g<i.dataPoints.length;++g)h.dataPoints[g]=_.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(i.dataPoints[g],a)}return null!=i.aggregationTemporality&&i.hasOwnProperty("aggregationTemporality")&&(h.aggregationTemporality=a.enums===String?void 0===_.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]?i.aggregationTemporality:_.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Histogram"},y}(),S.ExponentialHistogram=function(){function y(r){if(this.dataPoints=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.dataPoints=m.emptyArray,y.prototype.aggregationTemporality=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.dataPoints&&i.dataPoints.length)for(var h=0;h<i.dataPoints.length;++h)_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(i.dataPoints[h],a.uint32(10).fork()).ldelim();return null!=i.aggregationTemporality&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&a.uint32(16).int32(i.aggregationTemporality),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.ExponentialHistogram;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.dataPoints&&g.dataPoints.length||(g.dataPoints=[]),g.dataPoints.push(_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(i,i.uint32()));break;case 2:g.aggregationTemporality=i.int32();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.dataPoints&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var a=0;a<i.dataPoints.length;++a){var h=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(i.dataPoints[a]);if(h)return"dataPoints."+h}}if(null!=i.aggregationTemporality&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.ExponentialHistogram)return i;var a=new _.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");a.dataPoints=[];for(var h=0;h<i.dataPoints.length;++h){if("object"!=typeof i.dataPoints[h])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");a.dataPoints[h]=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(i.dataPoints[h])}}switch(i.aggregationTemporality){default:if("number"==typeof i.aggregationTemporality){a.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:a.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:a.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:a.aggregationTemporality=2}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.dataPoints=[]),a.defaults&&(h.aggregationTemporality=a.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){h.dataPoints=[];for(var g=0;g<i.dataPoints.length;++g)h.dataPoints[g]=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(i.dataPoints[g],a)}return null!=i.aggregationTemporality&&i.hasOwnProperty("aggregationTemporality")&&(h.aggregationTemporality=a.enums===String?void 0===_.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]?i.aggregationTemporality:_.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},y}(),S.Summary=function(){function y(r){if(this.dataPoints=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.dataPoints=m.emptyArray,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.dataPoints&&i.dataPoints.length)for(var h=0;h<i.dataPoints.length;++h)_.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(i.dataPoints[h],a.uint32(10).fork()).ldelim();return a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.Summary;i.pos<h;){var c=i.uint32();c>>>3==1?(g.dataPoints&&g.dataPoints.length||(g.dataPoints=[]),g.dataPoints.push(_.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(i,i.uint32()))):i.skipType(7&c)}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.dataPoints&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var a=0;a<i.dataPoints.length;++a){var h=_.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(i.dataPoints[a]);if(h)return"dataPoints."+h}}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.Summary)return i;var a=new _.opentelemetry.proto.metrics.v1.Summary;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");a.dataPoints=[];for(var h=0;h<i.dataPoints.length;++h){if("object"!=typeof i.dataPoints[h])throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");a.dataPoints[h]=_.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(i.dataPoints[h])}}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.dataPoints=[]),i.dataPoints&&i.dataPoints.length){h.dataPoints=[];for(var g=0;g<i.dataPoints.length;++g)h.dataPoints[g]=_.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(i.dataPoints[g],a)}return h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Summary"},y}(),S.AggregationTemporality=(y={},(r=Object.create(y))[y[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,r[y[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,r[y[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,r),S.DataPointFlags=function(){var y={},r=Object.create(y);return r[y[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,r[y[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,r}(),S.NumberDataPoint=function(){function y(i){if(this.attributes=[],this.exemplars=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}var r;return y.prototype.attributes=m.emptyArray,y.prototype.startTimeUnixNano=null,y.prototype.timeUnixNano=null,y.prototype.asDouble=null,y.prototype.asInt=null,y.prototype.exemplars=m.emptyArray,y.prototype.flags=null,Object.defineProperty(y.prototype,"value",{get:m.oneOfGetter(r=["asDouble","asInt"]),set:m.oneOfSetter(r)}),y.create=function(a){return new y(a)},y.encode=function(a,h){if(h||(h=p.create()),null!=a.startTimeUnixNano&&Object.hasOwnProperty.call(a,"startTimeUnixNano")&&h.uint32(17).fixed64(a.startTimeUnixNano),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&h.uint32(25).fixed64(a.timeUnixNano),null!=a.asDouble&&Object.hasOwnProperty.call(a,"asDouble")&&h.uint32(33).double(a.asDouble),null!=a.exemplars&&a.exemplars.length)for(var g=0;g<a.exemplars.length;++g)_.opentelemetry.proto.metrics.v1.Exemplar.encode(a.exemplars[g],h.uint32(42).fork()).ldelim();if(null!=a.asInt&&Object.hasOwnProperty.call(a,"asInt")&&h.uint32(49).sfixed64(a.asInt),null!=a.attributes&&a.attributes.length)for(g=0;g<a.attributes.length;++g)_.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[g],h.uint32(58).fork()).ldelim();return null!=a.flags&&Object.hasOwnProperty.call(a,"flags")&&h.uint32(64).uint32(a.flags),h},y.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},y.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.metrics.v1.NumberDataPoint;a.pos<g;){var T=a.uint32();switch(T>>>3){case 7:c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 2:c.startTimeUnixNano=a.fixed64();break;case 3:c.timeUnixNano=a.fixed64();break;case 4:c.asDouble=a.double();break;case 6:c.asInt=a.sfixed64();break;case 5:c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(_.opentelemetry.proto.metrics.v1.Exemplar.decode(a,a.uint32()));break;case 8:c.flags=a.uint32();break;default:a.skipType(7&T)}}return c},y.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},y.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var h={};if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var g=0;g<a.attributes.length;++g)if(c=_.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[g]))return"attributes."+c}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(a.startTimeUnixNano)&&!(a.startTimeUnixNano&&m.isInteger(a.startTimeUnixNano.low)&&m.isInteger(a.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!m.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&m.isInteger(a.timeUnixNano.low)&&m.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.asDouble&&a.hasOwnProperty("asDouble")&&(h.value=1,"number"!=typeof a.asDouble))return"asDouble: number expected";if(null!=a.asInt&&a.hasOwnProperty("asInt")){if(1===h.value)return"value: multiple values";if(h.value=1,!(m.isInteger(a.asInt)||a.asInt&&m.isInteger(a.asInt.low)&&m.isInteger(a.asInt.high)))return"asInt: integer|Long expected"}if(null!=a.exemplars&&a.hasOwnProperty("exemplars")){if(!Array.isArray(a.exemplars))return"exemplars: array expected";for(g=0;g<a.exemplars.length;++g){var c;if(c=_.opentelemetry.proto.metrics.v1.Exemplar.verify(a.exemplars[g]))return"exemplars."+c}}return null!=a.flags&&a.hasOwnProperty("flags")&&!m.isInteger(a.flags)?"flags: integer expected":null},y.fromObject=function(a){if(a instanceof _.opentelemetry.proto.metrics.v1.NumberDataPoint)return a;var h=new _.opentelemetry.proto.metrics.v1.NumberDataPoint;if(a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");h.attributes=[];for(var g=0;g<a.attributes.length;++g){if("object"!=typeof a.attributes[g])throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");h.attributes[g]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[g])}}if(null!=a.startTimeUnixNano&&(m.Long?(h.startTimeUnixNano=m.Long.fromValue(a.startTimeUnixNano)).unsigned=!1:"string"==typeof a.startTimeUnixNano?h.startTimeUnixNano=parseInt(a.startTimeUnixNano,10):"number"==typeof a.startTimeUnixNano?h.startTimeUnixNano=a.startTimeUnixNano:"object"==typeof a.startTimeUnixNano&&(h.startTimeUnixNano=new m.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber())),null!=a.timeUnixNano&&(m.Long?(h.timeUnixNano=m.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?h.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?h.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(h.timeUnixNano=new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.asDouble&&(h.asDouble=Number(a.asDouble)),null!=a.asInt&&(m.Long?(h.asInt=m.Long.fromValue(a.asInt)).unsigned=!1:"string"==typeof a.asInt?h.asInt=parseInt(a.asInt,10):"number"==typeof a.asInt?h.asInt=a.asInt:"object"==typeof a.asInt&&(h.asInt=new m.LongBits(a.asInt.low>>>0,a.asInt.high>>>0).toNumber())),a.exemplars){if(!Array.isArray(a.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");for(h.exemplars=[],g=0;g<a.exemplars.length;++g){if("object"!=typeof a.exemplars[g])throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");h.exemplars[g]=_.opentelemetry.proto.metrics.v1.Exemplar.fromObject(a.exemplars[g])}}return null!=a.flags&&(h.flags=a.flags>>>0),h},y.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.exemplars=[],g.attributes=[]),h.defaults){if(m.Long){var c=new m.Long(0,0,!1);g.startTimeUnixNano=h.longs===String?c.toString():h.longs===Number?c.toNumber():c}else g.startTimeUnixNano=h.longs===String?"0":0;m.Long?(c=new m.Long(0,0,!1),g.timeUnixNano=h.longs===String?c.toString():h.longs===Number?c.toNumber():c):g.timeUnixNano=h.longs===String?"0":0,g.flags=0}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&(g.startTimeUnixNano="number"==typeof a.startTimeUnixNano?h.longs===String?String(a.startTimeUnixNano):a.startTimeUnixNano:h.longs===String?m.Long.prototype.toString.call(a.startTimeUnixNano):h.longs===Number?new m.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber():a.startTimeUnixNano),null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(g.timeUnixNano="number"==typeof a.timeUnixNano?h.longs===String?String(a.timeUnixNano):a.timeUnixNano:h.longs===String?m.Long.prototype.toString.call(a.timeUnixNano):h.longs===Number?new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.asDouble&&a.hasOwnProperty("asDouble")&&(g.asDouble=h.json&&!isFinite(a.asDouble)?String(a.asDouble):a.asDouble,h.oneofs&&(g.value="asDouble")),a.exemplars&&a.exemplars.length){g.exemplars=[];for(var T=0;T<a.exemplars.length;++T)g.exemplars[T]=_.opentelemetry.proto.metrics.v1.Exemplar.toObject(a.exemplars[T],h)}if(null!=a.asInt&&a.hasOwnProperty("asInt")&&(g.asInt="number"==typeof a.asInt?h.longs===String?String(a.asInt):a.asInt:h.longs===String?m.Long.prototype.toString.call(a.asInt):h.longs===Number?new m.LongBits(a.asInt.low>>>0,a.asInt.high>>>0).toNumber():a.asInt,h.oneofs&&(g.value="asInt")),a.attributes&&a.attributes.length)for(g.attributes=[],T=0;T<a.attributes.length;++T)g.attributes[T]=_.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[T],h);return null!=a.flags&&a.hasOwnProperty("flags")&&(g.flags=a.flags),g},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},y}(),S.HistogramDataPoint=function(){function y(i){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}var r;return y.prototype.attributes=m.emptyArray,y.prototype.startTimeUnixNano=null,y.prototype.timeUnixNano=null,y.prototype.count=null,y.prototype.sum=null,y.prototype.bucketCounts=m.emptyArray,y.prototype.explicitBounds=m.emptyArray,y.prototype.exemplars=m.emptyArray,y.prototype.flags=null,y.prototype.min=null,y.prototype.max=null,Object.defineProperty(y.prototype,"_sum",{get:m.oneOfGetter(r=["sum"]),set:m.oneOfSetter(r)}),Object.defineProperty(y.prototype,"_min",{get:m.oneOfGetter(r=["min"]),set:m.oneOfSetter(r)}),Object.defineProperty(y.prototype,"_max",{get:m.oneOfGetter(r=["max"]),set:m.oneOfSetter(r)}),y.create=function(a){return new y(a)},y.encode=function(a,h){if(h||(h=p.create()),null!=a.startTimeUnixNano&&Object.hasOwnProperty.call(a,"startTimeUnixNano")&&h.uint32(17).fixed64(a.startTimeUnixNano),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&h.uint32(25).fixed64(a.timeUnixNano),null!=a.count&&Object.hasOwnProperty.call(a,"count")&&h.uint32(33).fixed64(a.count),null!=a.sum&&Object.hasOwnProperty.call(a,"sum")&&h.uint32(41).double(a.sum),null!=a.bucketCounts&&a.bucketCounts.length){h.uint32(50).fork();for(var g=0;g<a.bucketCounts.length;++g)h.fixed64(a.bucketCounts[g]);h.ldelim()}if(null!=a.explicitBounds&&a.explicitBounds.length){for(h.uint32(58).fork(),g=0;g<a.explicitBounds.length;++g)h.double(a.explicitBounds[g]);h.ldelim()}if(null!=a.exemplars&&a.exemplars.length)for(g=0;g<a.exemplars.length;++g)_.opentelemetry.proto.metrics.v1.Exemplar.encode(a.exemplars[g],h.uint32(66).fork()).ldelim();if(null!=a.attributes&&a.attributes.length)for(g=0;g<a.attributes.length;++g)_.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[g],h.uint32(74).fork()).ldelim();return null!=a.flags&&Object.hasOwnProperty.call(a,"flags")&&h.uint32(80).uint32(a.flags),null!=a.min&&Object.hasOwnProperty.call(a,"min")&&h.uint32(89).double(a.min),null!=a.max&&Object.hasOwnProperty.call(a,"max")&&h.uint32(97).double(a.max),h},y.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},y.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.metrics.v1.HistogramDataPoint;a.pos<g;){var T=a.uint32();switch(T>>>3){case 9:c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 2:c.startTimeUnixNano=a.fixed64();break;case 3:c.timeUnixNano=a.fixed64();break;case 4:c.count=a.fixed64();break;case 5:c.sum=a.double();break;case 6:if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),2==(7&T))for(var A=a.uint32()+a.pos;a.pos<A;)c.bucketCounts.push(a.fixed64());else c.bucketCounts.push(a.fixed64());break;case 7:if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),2==(7&T))for(A=a.uint32()+a.pos;a.pos<A;)c.explicitBounds.push(a.double());else c.explicitBounds.push(a.double());break;case 8:c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(_.opentelemetry.proto.metrics.v1.Exemplar.decode(a,a.uint32()));break;case 10:c.flags=a.uint32();break;case 11:c.min=a.double();break;case 12:c.max=a.double();break;default:a.skipType(7&T)}}return c},y.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},y.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var h={};if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var g=0;g<a.attributes.length;++g)if(c=_.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[g]))return"attributes."+c}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(a.startTimeUnixNano)&&!(a.startTimeUnixNano&&m.isInteger(a.startTimeUnixNano.low)&&m.isInteger(a.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!m.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&m.isInteger(a.timeUnixNano.low)&&m.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.count&&a.hasOwnProperty("count")&&!m.isInteger(a.count)&&!(a.count&&m.isInteger(a.count.low)&&m.isInteger(a.count.high)))return"count: integer|Long expected";if(null!=a.sum&&a.hasOwnProperty("sum")&&(h._sum=1,"number"!=typeof a.sum))return"sum: number expected";if(null!=a.bucketCounts&&a.hasOwnProperty("bucketCounts")){if(!Array.isArray(a.bucketCounts))return"bucketCounts: array expected";for(g=0;g<a.bucketCounts.length;++g)if(!(m.isInteger(a.bucketCounts[g])||a.bucketCounts[g]&&m.isInteger(a.bucketCounts[g].low)&&m.isInteger(a.bucketCounts[g].high)))return"bucketCounts: integer|Long[] expected"}if(null!=a.explicitBounds&&a.hasOwnProperty("explicitBounds")){if(!Array.isArray(a.explicitBounds))return"explicitBounds: array expected";for(g=0;g<a.explicitBounds.length;++g)if("number"!=typeof a.explicitBounds[g])return"explicitBounds: number[] expected"}if(null!=a.exemplars&&a.hasOwnProperty("exemplars")){if(!Array.isArray(a.exemplars))return"exemplars: array expected";for(g=0;g<a.exemplars.length;++g){var c;if(c=_.opentelemetry.proto.metrics.v1.Exemplar.verify(a.exemplars[g]))return"exemplars."+c}}return null!=a.flags&&a.hasOwnProperty("flags")&&!m.isInteger(a.flags)?"flags: integer expected":null!=a.min&&a.hasOwnProperty("min")&&(h._min=1,"number"!=typeof a.min)?"min: number expected":null!=a.max&&a.hasOwnProperty("max")&&(h._max=1,"number"!=typeof a.max)?"max: number expected":null},y.fromObject=function(a){if(a instanceof _.opentelemetry.proto.metrics.v1.HistogramDataPoint)return a;var h=new _.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");h.attributes=[];for(var g=0;g<a.attributes.length;++g){if("object"!=typeof a.attributes[g])throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");h.attributes[g]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[g])}}if(null!=a.startTimeUnixNano&&(m.Long?(h.startTimeUnixNano=m.Long.fromValue(a.startTimeUnixNano)).unsigned=!1:"string"==typeof a.startTimeUnixNano?h.startTimeUnixNano=parseInt(a.startTimeUnixNano,10):"number"==typeof a.startTimeUnixNano?h.startTimeUnixNano=a.startTimeUnixNano:"object"==typeof a.startTimeUnixNano&&(h.startTimeUnixNano=new m.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber())),null!=a.timeUnixNano&&(m.Long?(h.timeUnixNano=m.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?h.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?h.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(h.timeUnixNano=new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.count&&(m.Long?(h.count=m.Long.fromValue(a.count)).unsigned=!1:"string"==typeof a.count?h.count=parseInt(a.count,10):"number"==typeof a.count?h.count=a.count:"object"==typeof a.count&&(h.count=new m.LongBits(a.count.low>>>0,a.count.high>>>0).toNumber())),null!=a.sum&&(h.sum=Number(a.sum)),a.bucketCounts){if(!Array.isArray(a.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");for(h.bucketCounts=[],g=0;g<a.bucketCounts.length;++g)m.Long?(h.bucketCounts[g]=m.Long.fromValue(a.bucketCounts[g])).unsigned=!1:"string"==typeof a.bucketCounts[g]?h.bucketCounts[g]=parseInt(a.bucketCounts[g],10):"number"==typeof a.bucketCounts[g]?h.bucketCounts[g]=a.bucketCounts[g]:"object"==typeof a.bucketCounts[g]&&(h.bucketCounts[g]=new m.LongBits(a.bucketCounts[g].low>>>0,a.bucketCounts[g].high>>>0).toNumber())}if(a.explicitBounds){if(!Array.isArray(a.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");for(h.explicitBounds=[],g=0;g<a.explicitBounds.length;++g)h.explicitBounds[g]=Number(a.explicitBounds[g])}if(a.exemplars){if(!Array.isArray(a.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");for(h.exemplars=[],g=0;g<a.exemplars.length;++g){if("object"!=typeof a.exemplars[g])throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");h.exemplars[g]=_.opentelemetry.proto.metrics.v1.Exemplar.fromObject(a.exemplars[g])}}return null!=a.flags&&(h.flags=a.flags>>>0),null!=a.min&&(h.min=Number(a.min)),null!=a.max&&(h.max=Number(a.max)),h},y.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.bucketCounts=[],g.explicitBounds=[],g.exemplars=[],g.attributes=[]),h.defaults){if(m.Long){var c=new m.Long(0,0,!1);g.startTimeUnixNano=h.longs===String?c.toString():h.longs===Number?c.toNumber():c}else g.startTimeUnixNano=h.longs===String?"0":0;m.Long?(c=new m.Long(0,0,!1),g.timeUnixNano=h.longs===String?c.toString():h.longs===Number?c.toNumber():c):g.timeUnixNano=h.longs===String?"0":0,m.Long?(c=new m.Long(0,0,!1),g.count=h.longs===String?c.toString():h.longs===Number?c.toNumber():c):g.count=h.longs===String?"0":0,g.flags=0}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&(g.startTimeUnixNano="number"==typeof a.startTimeUnixNano?h.longs===String?String(a.startTimeUnixNano):a.startTimeUnixNano:h.longs===String?m.Long.prototype.toString.call(a.startTimeUnixNano):h.longs===Number?new m.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber():a.startTimeUnixNano),null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(g.timeUnixNano="number"==typeof a.timeUnixNano?h.longs===String?String(a.timeUnixNano):a.timeUnixNano:h.longs===String?m.Long.prototype.toString.call(a.timeUnixNano):h.longs===Number?new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.count&&a.hasOwnProperty("count")&&(g.count="number"==typeof a.count?h.longs===String?String(a.count):a.count:h.longs===String?m.Long.prototype.toString.call(a.count):h.longs===Number?new m.LongBits(a.count.low>>>0,a.count.high>>>0).toNumber():a.count),null!=a.sum&&a.hasOwnProperty("sum")&&(g.sum=h.json&&!isFinite(a.sum)?String(a.sum):a.sum,h.oneofs&&(g._sum="sum")),a.bucketCounts&&a.bucketCounts.length){g.bucketCounts=[];for(var T=0;T<a.bucketCounts.length;++T)g.bucketCounts[T]="number"==typeof a.bucketCounts[T]?h.longs===String?String(a.bucketCounts[T]):a.bucketCounts[T]:h.longs===String?m.Long.prototype.toString.call(a.bucketCounts[T]):h.longs===Number?new m.LongBits(a.bucketCounts[T].low>>>0,a.bucketCounts[T].high>>>0).toNumber():a.bucketCounts[T]}if(a.explicitBounds&&a.explicitBounds.length)for(g.explicitBounds=[],T=0;T<a.explicitBounds.length;++T)g.explicitBounds[T]=h.json&&!isFinite(a.explicitBounds[T])?String(a.explicitBounds[T]):a.explicitBounds[T];if(a.exemplars&&a.exemplars.length)for(g.exemplars=[],T=0;T<a.exemplars.length;++T)g.exemplars[T]=_.opentelemetry.proto.metrics.v1.Exemplar.toObject(a.exemplars[T],h);if(a.attributes&&a.attributes.length)for(g.attributes=[],T=0;T<a.attributes.length;++T)g.attributes[T]=_.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[T],h);return null!=a.flags&&a.hasOwnProperty("flags")&&(g.flags=a.flags),null!=a.min&&a.hasOwnProperty("min")&&(g.min=h.json&&!isFinite(a.min)?String(a.min):a.min,h.oneofs&&(g._min="min")),null!=a.max&&a.hasOwnProperty("max")&&(g.max=h.json&&!isFinite(a.max)?String(a.max):a.max,h.oneofs&&(g._max="max")),g},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},y}(),S.ExponentialHistogramDataPoint=function(){function y(i){if(this.attributes=[],this.exemplars=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}var r;return y.prototype.attributes=m.emptyArray,y.prototype.startTimeUnixNano=null,y.prototype.timeUnixNano=null,y.prototype.count=null,y.prototype.sum=null,y.prototype.scale=null,y.prototype.zeroCount=null,y.prototype.positive=null,y.prototype.negative=null,y.prototype.flags=null,y.prototype.exemplars=m.emptyArray,y.prototype.min=null,y.prototype.max=null,y.prototype.zeroThreshold=null,Object.defineProperty(y.prototype,"_sum",{get:m.oneOfGetter(r=["sum"]),set:m.oneOfSetter(r)}),Object.defineProperty(y.prototype,"_min",{get:m.oneOfGetter(r=["min"]),set:m.oneOfSetter(r)}),Object.defineProperty(y.prototype,"_max",{get:m.oneOfGetter(r=["max"]),set:m.oneOfSetter(r)}),y.create=function(a){return new y(a)},y.encode=function(a,h){if(h||(h=p.create()),null!=a.attributes&&a.attributes.length)for(var g=0;g<a.attributes.length;++g)_.opentelemetry.proto.common.v1.KeyValue.encode(a.attributes[g],h.uint32(10).fork()).ldelim();if(null!=a.startTimeUnixNano&&Object.hasOwnProperty.call(a,"startTimeUnixNano")&&h.uint32(17).fixed64(a.startTimeUnixNano),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&h.uint32(25).fixed64(a.timeUnixNano),null!=a.count&&Object.hasOwnProperty.call(a,"count")&&h.uint32(33).fixed64(a.count),null!=a.sum&&Object.hasOwnProperty.call(a,"sum")&&h.uint32(41).double(a.sum),null!=a.scale&&Object.hasOwnProperty.call(a,"scale")&&h.uint32(48).sint32(a.scale),null!=a.zeroCount&&Object.hasOwnProperty.call(a,"zeroCount")&&h.uint32(57).fixed64(a.zeroCount),null!=a.positive&&Object.hasOwnProperty.call(a,"positive")&&_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(a.positive,h.uint32(66).fork()).ldelim(),null!=a.negative&&Object.hasOwnProperty.call(a,"negative")&&_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(a.negative,h.uint32(74).fork()).ldelim(),null!=a.flags&&Object.hasOwnProperty.call(a,"flags")&&h.uint32(80).uint32(a.flags),null!=a.exemplars&&a.exemplars.length)for(g=0;g<a.exemplars.length;++g)_.opentelemetry.proto.metrics.v1.Exemplar.encode(a.exemplars[g],h.uint32(90).fork()).ldelim();return null!=a.min&&Object.hasOwnProperty.call(a,"min")&&h.uint32(97).double(a.min),null!=a.max&&Object.hasOwnProperty.call(a,"max")&&h.uint32(105).double(a.max),null!=a.zeroThreshold&&Object.hasOwnProperty.call(a,"zeroThreshold")&&h.uint32(113).double(a.zeroThreshold),h},y.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},y.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 2:c.startTimeUnixNano=a.fixed64();break;case 3:c.timeUnixNano=a.fixed64();break;case 4:c.count=a.fixed64();break;case 5:c.sum=a.double();break;case 6:c.scale=a.sint32();break;case 7:c.zeroCount=a.fixed64();break;case 8:c.positive=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(a,a.uint32());break;case 9:c.negative=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(a,a.uint32());break;case 10:c.flags=a.uint32();break;case 11:c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(_.opentelemetry.proto.metrics.v1.Exemplar.decode(a,a.uint32()));break;case 12:c.min=a.double();break;case 13:c.max=a.double();break;case 14:c.zeroThreshold=a.double();break;default:a.skipType(7&T)}}return c},y.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},y.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var h={};if(null!=a.attributes&&a.hasOwnProperty("attributes")){if(!Array.isArray(a.attributes))return"attributes: array expected";for(var g=0;g<a.attributes.length;++g)if(c=_.opentelemetry.proto.common.v1.KeyValue.verify(a.attributes[g]))return"attributes."+c}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(a.startTimeUnixNano)&&!(a.startTimeUnixNano&&m.isInteger(a.startTimeUnixNano.low)&&m.isInteger(a.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!m.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&m.isInteger(a.timeUnixNano.low)&&m.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.count&&a.hasOwnProperty("count")&&!m.isInteger(a.count)&&!(a.count&&m.isInteger(a.count.low)&&m.isInteger(a.count.high)))return"count: integer|Long expected";if(null!=a.sum&&a.hasOwnProperty("sum")&&(h._sum=1,"number"!=typeof a.sum))return"sum: number expected";if(null!=a.scale&&a.hasOwnProperty("scale")&&!m.isInteger(a.scale))return"scale: integer expected";if(null!=a.zeroCount&&a.hasOwnProperty("zeroCount")&&!m.isInteger(a.zeroCount)&&!(a.zeroCount&&m.isInteger(a.zeroCount.low)&&m.isInteger(a.zeroCount.high)))return"zeroCount: integer|Long expected";if(null!=a.positive&&a.hasOwnProperty("positive")&&(c=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(a.positive)))return"positive."+c;if(null!=a.negative&&a.hasOwnProperty("negative")&&(c=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(a.negative)))return"negative."+c;if(null!=a.flags&&a.hasOwnProperty("flags")&&!m.isInteger(a.flags))return"flags: integer expected";if(null!=a.exemplars&&a.hasOwnProperty("exemplars")){if(!Array.isArray(a.exemplars))return"exemplars: array expected";for(g=0;g<a.exemplars.length;++g){var c;if(c=_.opentelemetry.proto.metrics.v1.Exemplar.verify(a.exemplars[g]))return"exemplars."+c}}return null!=a.min&&a.hasOwnProperty("min")&&(h._min=1,"number"!=typeof a.min)?"min: number expected":null!=a.max&&a.hasOwnProperty("max")&&(h._max=1,"number"!=typeof a.max)?"max: number expected":null!=a.zeroThreshold&&a.hasOwnProperty("zeroThreshold")&&"number"!=typeof a.zeroThreshold?"zeroThreshold: number expected":null},y.fromObject=function(a){if(a instanceof _.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return a;var h=new _.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(a.attributes){if(!Array.isArray(a.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");h.attributes=[];for(var g=0;g<a.attributes.length;++g){if("object"!=typeof a.attributes[g])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");h.attributes[g]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(a.attributes[g])}}if(null!=a.startTimeUnixNano&&(m.Long?(h.startTimeUnixNano=m.Long.fromValue(a.startTimeUnixNano)).unsigned=!1:"string"==typeof a.startTimeUnixNano?h.startTimeUnixNano=parseInt(a.startTimeUnixNano,10):"number"==typeof a.startTimeUnixNano?h.startTimeUnixNano=a.startTimeUnixNano:"object"==typeof a.startTimeUnixNano&&(h.startTimeUnixNano=new m.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber())),null!=a.timeUnixNano&&(m.Long?(h.timeUnixNano=m.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?h.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?h.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(h.timeUnixNano=new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.count&&(m.Long?(h.count=m.Long.fromValue(a.count)).unsigned=!1:"string"==typeof a.count?h.count=parseInt(a.count,10):"number"==typeof a.count?h.count=a.count:"object"==typeof a.count&&(h.count=new m.LongBits(a.count.low>>>0,a.count.high>>>0).toNumber())),null!=a.sum&&(h.sum=Number(a.sum)),null!=a.scale&&(h.scale=0|a.scale),null!=a.zeroCount&&(m.Long?(h.zeroCount=m.Long.fromValue(a.zeroCount)).unsigned=!1:"string"==typeof a.zeroCount?h.zeroCount=parseInt(a.zeroCount,10):"number"==typeof a.zeroCount?h.zeroCount=a.zeroCount:"object"==typeof a.zeroCount&&(h.zeroCount=new m.LongBits(a.zeroCount.low>>>0,a.zeroCount.high>>>0).toNumber())),null!=a.positive){if("object"!=typeof a.positive)throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");h.positive=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(a.positive)}if(null!=a.negative){if("object"!=typeof a.negative)throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");h.negative=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(a.negative)}if(null!=a.flags&&(h.flags=a.flags>>>0),a.exemplars){if(!Array.isArray(a.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");for(h.exemplars=[],g=0;g<a.exemplars.length;++g){if("object"!=typeof a.exemplars[g])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");h.exemplars[g]=_.opentelemetry.proto.metrics.v1.Exemplar.fromObject(a.exemplars[g])}}return null!=a.min&&(h.min=Number(a.min)),null!=a.max&&(h.max=Number(a.max)),null!=a.zeroThreshold&&(h.zeroThreshold=Number(a.zeroThreshold)),h},y.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.attributes=[],g.exemplars=[]),h.defaults){if(m.Long){var c=new m.Long(0,0,!1);g.startTimeUnixNano=h.longs===String?c.toString():h.longs===Number?c.toNumber():c}else g.startTimeUnixNano=h.longs===String?"0":0;m.Long?(c=new m.Long(0,0,!1),g.timeUnixNano=h.longs===String?c.toString():h.longs===Number?c.toNumber():c):g.timeUnixNano=h.longs===String?"0":0,m.Long?(c=new m.Long(0,0,!1),g.count=h.longs===String?c.toString():h.longs===Number?c.toNumber():c):g.count=h.longs===String?"0":0,g.scale=0,m.Long?(c=new m.Long(0,0,!1),g.zeroCount=h.longs===String?c.toString():h.longs===Number?c.toNumber():c):g.zeroCount=h.longs===String?"0":0,g.positive=null,g.negative=null,g.flags=0,g.zeroThreshold=0}if(a.attributes&&a.attributes.length){g.attributes=[];for(var T=0;T<a.attributes.length;++T)g.attributes[T]=_.opentelemetry.proto.common.v1.KeyValue.toObject(a.attributes[T],h)}if(null!=a.startTimeUnixNano&&a.hasOwnProperty("startTimeUnixNano")&&(g.startTimeUnixNano="number"==typeof a.startTimeUnixNano?h.longs===String?String(a.startTimeUnixNano):a.startTimeUnixNano:h.longs===String?m.Long.prototype.toString.call(a.startTimeUnixNano):h.longs===Number?new m.LongBits(a.startTimeUnixNano.low>>>0,a.startTimeUnixNano.high>>>0).toNumber():a.startTimeUnixNano),null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(g.timeUnixNano="number"==typeof a.timeUnixNano?h.longs===String?String(a.timeUnixNano):a.timeUnixNano:h.longs===String?m.Long.prototype.toString.call(a.timeUnixNano):h.longs===Number?new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.count&&a.hasOwnProperty("count")&&(g.count="number"==typeof a.count?h.longs===String?String(a.count):a.count:h.longs===String?m.Long.prototype.toString.call(a.count):h.longs===Number?new m.LongBits(a.count.low>>>0,a.count.high>>>0).toNumber():a.count),null!=a.sum&&a.hasOwnProperty("sum")&&(g.sum=h.json&&!isFinite(a.sum)?String(a.sum):a.sum,h.oneofs&&(g._sum="sum")),null!=a.scale&&a.hasOwnProperty("scale")&&(g.scale=a.scale),null!=a.zeroCount&&a.hasOwnProperty("zeroCount")&&(g.zeroCount="number"==typeof a.zeroCount?h.longs===String?String(a.zeroCount):a.zeroCount:h.longs===String?m.Long.prototype.toString.call(a.zeroCount):h.longs===Number?new m.LongBits(a.zeroCount.low>>>0,a.zeroCount.high>>>0).toNumber():a.zeroCount),null!=a.positive&&a.hasOwnProperty("positive")&&(g.positive=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(a.positive,h)),null!=a.negative&&a.hasOwnProperty("negative")&&(g.negative=_.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(a.negative,h)),null!=a.flags&&a.hasOwnProperty("flags")&&(g.flags=a.flags),a.exemplars&&a.exemplars.length)for(g.exemplars=[],T=0;T<a.exemplars.length;++T)g.exemplars[T]=_.opentelemetry.proto.metrics.v1.Exemplar.toObject(a.exemplars[T],h);return null!=a.min&&a.hasOwnProperty("min")&&(g.min=h.json&&!isFinite(a.min)?String(a.min):a.min,h.oneofs&&(g._min="min")),null!=a.max&&a.hasOwnProperty("max")&&(g.max=h.json&&!isFinite(a.max)?String(a.max):a.max,h.oneofs&&(g._max="max")),null!=a.zeroThreshold&&a.hasOwnProperty("zeroThreshold")&&(g.zeroThreshold=h.json&&!isFinite(a.zeroThreshold)?String(a.zeroThreshold):a.zeroThreshold),g},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},y.Buckets=function(){function i(a){if(this.bucketCounts=[],a)for(var h=Object.keys(a),g=0;g<h.length;++g)null!=a[h[g]]&&(this[h[g]]=a[h[g]])}return i.prototype.offset=null,i.prototype.bucketCounts=m.emptyArray,i.create=function(h){return new i(h)},i.encode=function(h,g){if(g||(g=p.create()),null!=h.offset&&Object.hasOwnProperty.call(h,"offset")&&g.uint32(8).sint32(h.offset),null!=h.bucketCounts&&h.bucketCounts.length){g.uint32(18).fork();for(var c=0;c<h.bucketCounts.length;++c)g.uint64(h.bucketCounts[c]);g.ldelim()}return g},i.encodeDelimited=function(h,g){return this.encode(h,g).ldelim()},i.decode=function(h,g){h instanceof l||(h=l.create(h));for(var c=void 0===g?h.len:h.pos+g,T=new _.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;h.pos<c;){var A=h.uint32();switch(A>>>3){case 1:T.offset=h.sint32();break;case 2:if(T.bucketCounts&&T.bucketCounts.length||(T.bucketCounts=[]),2==(7&A))for(var L=h.uint32()+h.pos;h.pos<L;)T.bucketCounts.push(h.uint64());else T.bucketCounts.push(h.uint64());break;default:h.skipType(7&A)}}return T},i.decodeDelimited=function(h){return h instanceof l||(h=new l(h)),this.decode(h,h.uint32())},i.verify=function(h){if("object"!=typeof h||null===h)return"object expected";if(null!=h.offset&&h.hasOwnProperty("offset")&&!m.isInteger(h.offset))return"offset: integer expected";if(null!=h.bucketCounts&&h.hasOwnProperty("bucketCounts")){if(!Array.isArray(h.bucketCounts))return"bucketCounts: array expected";for(var g=0;g<h.bucketCounts.length;++g)if(!(m.isInteger(h.bucketCounts[g])||h.bucketCounts[g]&&m.isInteger(h.bucketCounts[g].low)&&m.isInteger(h.bucketCounts[g].high)))return"bucketCounts: integer|Long[] expected"}return null},i.fromObject=function(h){if(h instanceof _.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return h;var g=new _.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(null!=h.offset&&(g.offset=0|h.offset),h.bucketCounts){if(!Array.isArray(h.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");g.bucketCounts=[];for(var c=0;c<h.bucketCounts.length;++c)m.Long?(g.bucketCounts[c]=m.Long.fromValue(h.bucketCounts[c])).unsigned=!0:"string"==typeof h.bucketCounts[c]?g.bucketCounts[c]=parseInt(h.bucketCounts[c],10):"number"==typeof h.bucketCounts[c]?g.bucketCounts[c]=h.bucketCounts[c]:"object"==typeof h.bucketCounts[c]&&(g.bucketCounts[c]=new m.LongBits(h.bucketCounts[c].low>>>0,h.bucketCounts[c].high>>>0).toNumber(!0))}return g},i.toObject=function(h,g){g||(g={});var c={};if((g.arrays||g.defaults)&&(c.bucketCounts=[]),g.defaults&&(c.offset=0),null!=h.offset&&h.hasOwnProperty("offset")&&(c.offset=h.offset),h.bucketCounts&&h.bucketCounts.length){c.bucketCounts=[];for(var T=0;T<h.bucketCounts.length;++T)c.bucketCounts[T]="number"==typeof h.bucketCounts[T]?g.longs===String?String(h.bucketCounts[T]):h.bucketCounts[T]:g.longs===String?m.Long.prototype.toString.call(h.bucketCounts[T]):g.longs===Number?new m.LongBits(h.bucketCounts[T].low>>>0,h.bucketCounts[T].high>>>0).toNumber(!0):h.bucketCounts[T]}return c},i.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},i.getTypeUrl=function(h){return void 0===h&&(h="type.googleapis.com"),h+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},i}(),y}(),S.SummaryDataPoint=function(){function y(r){if(this.attributes=[],this.quantileValues=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.attributes=m.emptyArray,y.prototype.startTimeUnixNano=null,y.prototype.timeUnixNano=null,y.prototype.count=null,y.prototype.sum=null,y.prototype.quantileValues=m.emptyArray,y.prototype.flags=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.startTimeUnixNano&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&a.uint32(17).fixed64(i.startTimeUnixNano),null!=i.timeUnixNano&&Object.hasOwnProperty.call(i,"timeUnixNano")&&a.uint32(25).fixed64(i.timeUnixNano),null!=i.count&&Object.hasOwnProperty.call(i,"count")&&a.uint32(33).fixed64(i.count),null!=i.sum&&Object.hasOwnProperty.call(i,"sum")&&a.uint32(41).double(i.sum),null!=i.quantileValues&&i.quantileValues.length)for(var h=0;h<i.quantileValues.length;++h)_.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(i.quantileValues[h],a.uint32(50).fork()).ldelim();if(null!=i.attributes&&i.attributes.length)for(h=0;h<i.attributes.length;++h)_.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[h],a.uint32(58).fork()).ldelim();return null!=i.flags&&Object.hasOwnProperty.call(i,"flags")&&a.uint32(64).uint32(i.flags),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.metrics.v1.SummaryDataPoint;i.pos<h;){var c=i.uint32();switch(c>>>3){case 7:g.attributes&&g.attributes.length||(g.attributes=[]),g.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break;case 2:g.startTimeUnixNano=i.fixed64();break;case 3:g.timeUnixNano=i.fixed64();break;case 4:g.count=i.fixed64();break;case 5:g.sum=i.double();break;case 6:g.quantileValues&&g.quantileValues.length||(g.quantileValues=[]),g.quantileValues.push(_.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(i,i.uint32()));break;case 8:g.flags=i.uint32();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.attributes&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var a=0;a<i.attributes.length;++a)if(h=_.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[a]))return"attributes."+h}if(null!=i.startTimeUnixNano&&i.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&m.isInteger(i.startTimeUnixNano.low)&&m.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=i.timeUnixNano&&i.hasOwnProperty("timeUnixNano")&&!m.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&m.isInteger(i.timeUnixNano.low)&&m.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=i.count&&i.hasOwnProperty("count")&&!m.isInteger(i.count)&&!(i.count&&m.isInteger(i.count.low)&&m.isInteger(i.count.high)))return"count: integer|Long expected";if(null!=i.sum&&i.hasOwnProperty("sum")&&"number"!=typeof i.sum)return"sum: number expected";if(null!=i.quantileValues&&i.hasOwnProperty("quantileValues")){if(!Array.isArray(i.quantileValues))return"quantileValues: array expected";for(a=0;a<i.quantileValues.length;++a){var h;if(h=_.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(i.quantileValues[a]))return"quantileValues."+h}}return null!=i.flags&&i.hasOwnProperty("flags")&&!m.isInteger(i.flags)?"flags: integer expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.metrics.v1.SummaryDataPoint)return i;var a=new _.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");a.attributes=[];for(var h=0;h<i.attributes.length;++h){if("object"!=typeof i.attributes[h])throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");a.attributes[h]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[h])}}if(null!=i.startTimeUnixNano&&(m.Long?(a.startTimeUnixNano=m.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:"string"==typeof i.startTimeUnixNano?a.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):"number"==typeof i.startTimeUnixNano?a.startTimeUnixNano=i.startTimeUnixNano:"object"==typeof i.startTimeUnixNano&&(a.startTimeUnixNano=new m.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),null!=i.timeUnixNano&&(m.Long?(a.timeUnixNano=m.Long.fromValue(i.timeUnixNano)).unsigned=!1:"string"==typeof i.timeUnixNano?a.timeUnixNano=parseInt(i.timeUnixNano,10):"number"==typeof i.timeUnixNano?a.timeUnixNano=i.timeUnixNano:"object"==typeof i.timeUnixNano&&(a.timeUnixNano=new m.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),null!=i.count&&(m.Long?(a.count=m.Long.fromValue(i.count)).unsigned=!1:"string"==typeof i.count?a.count=parseInt(i.count,10):"number"==typeof i.count?a.count=i.count:"object"==typeof i.count&&(a.count=new m.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),null!=i.sum&&(a.sum=Number(i.sum)),i.quantileValues){if(!Array.isArray(i.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");for(a.quantileValues=[],h=0;h<i.quantileValues.length;++h){if("object"!=typeof i.quantileValues[h])throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");a.quantileValues[h]=_.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(i.quantileValues[h])}}return null!=i.flags&&(a.flags=i.flags>>>0),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.quantileValues=[],h.attributes=[]),a.defaults){if(m.Long){var g=new m.Long(0,0,!1);h.startTimeUnixNano=a.longs===String?g.toString():a.longs===Number?g.toNumber():g}else h.startTimeUnixNano=a.longs===String?"0":0;m.Long?(g=new m.Long(0,0,!1),h.timeUnixNano=a.longs===String?g.toString():a.longs===Number?g.toNumber():g):h.timeUnixNano=a.longs===String?"0":0,m.Long?(g=new m.Long(0,0,!1),h.count=a.longs===String?g.toString():a.longs===Number?g.toNumber():g):h.count=a.longs===String?"0":0,h.sum=0,h.flags=0}if(null!=i.startTimeUnixNano&&i.hasOwnProperty("startTimeUnixNano")&&(h.startTimeUnixNano="number"==typeof i.startTimeUnixNano?a.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:a.longs===String?m.Long.prototype.toString.call(i.startTimeUnixNano):a.longs===Number?new m.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),null!=i.timeUnixNano&&i.hasOwnProperty("timeUnixNano")&&(h.timeUnixNano="number"==typeof i.timeUnixNano?a.longs===String?String(i.timeUnixNano):i.timeUnixNano:a.longs===String?m.Long.prototype.toString.call(i.timeUnixNano):a.longs===Number?new m.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),null!=i.count&&i.hasOwnProperty("count")&&(h.count="number"==typeof i.count?a.longs===String?String(i.count):i.count:a.longs===String?m.Long.prototype.toString.call(i.count):a.longs===Number?new m.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),null!=i.sum&&i.hasOwnProperty("sum")&&(h.sum=a.json&&!isFinite(i.sum)?String(i.sum):i.sum),i.quantileValues&&i.quantileValues.length){h.quantileValues=[];for(var c=0;c<i.quantileValues.length;++c)h.quantileValues[c]=_.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(i.quantileValues[c],a)}if(i.attributes&&i.attributes.length)for(h.attributes=[],c=0;c<i.attributes.length;++c)h.attributes[c]=_.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[c],a);return null!=i.flags&&i.hasOwnProperty("flags")&&(h.flags=i.flags),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},y.ValueAtQuantile=function(){function r(i){if(i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}return r.prototype.quantile=null,r.prototype.value=null,r.create=function(a){return new r(a)},r.encode=function(a,h){return h||(h=p.create()),null!=a.quantile&&Object.hasOwnProperty.call(a,"quantile")&&h.uint32(9).double(a.quantile),null!=a.value&&Object.hasOwnProperty.call(a,"value")&&h.uint32(17).double(a.value),h},r.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},r.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;a.pos<g;){var T=a.uint32();switch(T>>>3){case 1:c.quantile=a.double();break;case 2:c.value=a.double();break;default:a.skipType(7&T)}}return c},r.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},r.verify=function(a){return"object"!=typeof a||null===a?"object expected":null!=a.quantile&&a.hasOwnProperty("quantile")&&"number"!=typeof a.quantile?"quantile: number expected":null!=a.value&&a.hasOwnProperty("value")&&"number"!=typeof a.value?"value: number expected":null},r.fromObject=function(a){if(a instanceof _.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return a;var h=new _.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return null!=a.quantile&&(h.quantile=Number(a.quantile)),null!=a.value&&(h.value=Number(a.value)),h},r.toObject=function(a,h){h||(h={});var g={};return h.defaults&&(g.quantile=0,g.value=0),null!=a.quantile&&a.hasOwnProperty("quantile")&&(g.quantile=h.json&&!isFinite(a.quantile)?String(a.quantile):a.quantile),null!=a.value&&a.hasOwnProperty("value")&&(g.value=h.json&&!isFinite(a.value)?String(a.value):a.value),g},r.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},r.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},r}(),y}(),S.Exemplar=function(){function y(i){if(this.filteredAttributes=[],i)for(var a=Object.keys(i),h=0;h<a.length;++h)null!=i[a[h]]&&(this[a[h]]=i[a[h]])}var r;return y.prototype.filteredAttributes=m.emptyArray,y.prototype.timeUnixNano=null,y.prototype.asDouble=null,y.prototype.asInt=null,y.prototype.spanId=null,y.prototype.traceId=null,Object.defineProperty(y.prototype,"value",{get:m.oneOfGetter(r=["asDouble","asInt"]),set:m.oneOfSetter(r)}),y.create=function(a){return new y(a)},y.encode=function(a,h){if(h||(h=p.create()),null!=a.timeUnixNano&&Object.hasOwnProperty.call(a,"timeUnixNano")&&h.uint32(17).fixed64(a.timeUnixNano),null!=a.asDouble&&Object.hasOwnProperty.call(a,"asDouble")&&h.uint32(25).double(a.asDouble),null!=a.spanId&&Object.hasOwnProperty.call(a,"spanId")&&h.uint32(34).bytes(a.spanId),null!=a.traceId&&Object.hasOwnProperty.call(a,"traceId")&&h.uint32(42).bytes(a.traceId),null!=a.asInt&&Object.hasOwnProperty.call(a,"asInt")&&h.uint32(49).sfixed64(a.asInt),null!=a.filteredAttributes&&a.filteredAttributes.length)for(var g=0;g<a.filteredAttributes.length;++g)_.opentelemetry.proto.common.v1.KeyValue.encode(a.filteredAttributes[g],h.uint32(58).fork()).ldelim();return h},y.encodeDelimited=function(a,h){return this.encode(a,h).ldelim()},y.decode=function(a,h){a instanceof l||(a=l.create(a));for(var g=void 0===h?a.len:a.pos+h,c=new _.opentelemetry.proto.metrics.v1.Exemplar;a.pos<g;){var T=a.uint32();switch(T>>>3){case 7:c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(a,a.uint32()));break;case 2:c.timeUnixNano=a.fixed64();break;case 3:c.asDouble=a.double();break;case 6:c.asInt=a.sfixed64();break;case 4:c.spanId=a.bytes();break;case 5:c.traceId=a.bytes();break;default:a.skipType(7&T)}}return c},y.decodeDelimited=function(a){return a instanceof l||(a=new l(a)),this.decode(a,a.uint32())},y.verify=function(a){if("object"!=typeof a||null===a)return"object expected";var h={};if(null!=a.filteredAttributes&&a.hasOwnProperty("filteredAttributes")){if(!Array.isArray(a.filteredAttributes))return"filteredAttributes: array expected";for(var g=0;g<a.filteredAttributes.length;++g){var c=_.opentelemetry.proto.common.v1.KeyValue.verify(a.filteredAttributes[g]);if(c)return"filteredAttributes."+c}}if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&!m.isInteger(a.timeUnixNano)&&!(a.timeUnixNano&&m.isInteger(a.timeUnixNano.low)&&m.isInteger(a.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=a.asDouble&&a.hasOwnProperty("asDouble")&&(h.value=1,"number"!=typeof a.asDouble))return"asDouble: number expected";if(null!=a.asInt&&a.hasOwnProperty("asInt")){if(1===h.value)return"value: multiple values";if(h.value=1,!(m.isInteger(a.asInt)||a.asInt&&m.isInteger(a.asInt.low)&&m.isInteger(a.asInt.high)))return"asInt: integer|Long expected"}return null!=a.spanId&&a.hasOwnProperty("spanId")&&!(a.spanId&&"number"==typeof a.spanId.length||m.isString(a.spanId))?"spanId: buffer expected":null!=a.traceId&&a.hasOwnProperty("traceId")&&!(a.traceId&&"number"==typeof a.traceId.length||m.isString(a.traceId))?"traceId: buffer expected":null},y.fromObject=function(a){if(a instanceof _.opentelemetry.proto.metrics.v1.Exemplar)return a;var h=new _.opentelemetry.proto.metrics.v1.Exemplar;if(a.filteredAttributes){if(!Array.isArray(a.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");h.filteredAttributes=[];for(var g=0;g<a.filteredAttributes.length;++g){if("object"!=typeof a.filteredAttributes[g])throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");h.filteredAttributes[g]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(a.filteredAttributes[g])}}return null!=a.timeUnixNano&&(m.Long?(h.timeUnixNano=m.Long.fromValue(a.timeUnixNano)).unsigned=!1:"string"==typeof a.timeUnixNano?h.timeUnixNano=parseInt(a.timeUnixNano,10):"number"==typeof a.timeUnixNano?h.timeUnixNano=a.timeUnixNano:"object"==typeof a.timeUnixNano&&(h.timeUnixNano=new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber())),null!=a.asDouble&&(h.asDouble=Number(a.asDouble)),null!=a.asInt&&(m.Long?(h.asInt=m.Long.fromValue(a.asInt)).unsigned=!1:"string"==typeof a.asInt?h.asInt=parseInt(a.asInt,10):"number"==typeof a.asInt?h.asInt=a.asInt:"object"==typeof a.asInt&&(h.asInt=new m.LongBits(a.asInt.low>>>0,a.asInt.high>>>0).toNumber())),null!=a.spanId&&("string"==typeof a.spanId?m.base64.decode(a.spanId,h.spanId=m.newBuffer(m.base64.length(a.spanId)),0):a.spanId.length>=0&&(h.spanId=a.spanId)),null!=a.traceId&&("string"==typeof a.traceId?m.base64.decode(a.traceId,h.traceId=m.newBuffer(m.base64.length(a.traceId)),0):a.traceId.length>=0&&(h.traceId=a.traceId)),h},y.toObject=function(a,h){h||(h={});var g={};if((h.arrays||h.defaults)&&(g.filteredAttributes=[]),h.defaults){if(m.Long){var c=new m.Long(0,0,!1);g.timeUnixNano=h.longs===String?c.toString():h.longs===Number?c.toNumber():c}else g.timeUnixNano=h.longs===String?"0":0;h.bytes===String?g.spanId="":(g.spanId=[],h.bytes!==Array&&(g.spanId=m.newBuffer(g.spanId))),h.bytes===String?g.traceId="":(g.traceId=[],h.bytes!==Array&&(g.traceId=m.newBuffer(g.traceId)))}if(null!=a.timeUnixNano&&a.hasOwnProperty("timeUnixNano")&&(g.timeUnixNano="number"==typeof a.timeUnixNano?h.longs===String?String(a.timeUnixNano):a.timeUnixNano:h.longs===String?m.Long.prototype.toString.call(a.timeUnixNano):h.longs===Number?new m.LongBits(a.timeUnixNano.low>>>0,a.timeUnixNano.high>>>0).toNumber():a.timeUnixNano),null!=a.asDouble&&a.hasOwnProperty("asDouble")&&(g.asDouble=h.json&&!isFinite(a.asDouble)?String(a.asDouble):a.asDouble,h.oneofs&&(g.value="asDouble")),null!=a.spanId&&a.hasOwnProperty("spanId")&&(g.spanId=h.bytes===String?m.base64.encode(a.spanId,0,a.spanId.length):h.bytes===Array?Array.prototype.slice.call(a.spanId):a.spanId),null!=a.traceId&&a.hasOwnProperty("traceId")&&(g.traceId=h.bytes===String?m.base64.encode(a.traceId,0,a.traceId.length):h.bytes===Array?Array.prototype.slice.call(a.traceId):a.traceId),null!=a.asInt&&a.hasOwnProperty("asInt")&&(g.asInt="number"==typeof a.asInt?h.longs===String?String(a.asInt):a.asInt:h.longs===String?m.Long.prototype.toString.call(a.asInt):h.longs===Number?new m.LongBits(a.asInt.low>>>0,a.asInt.high>>>0).toNumber():a.asInt,h.oneofs&&(g.value="asInt")),a.filteredAttributes&&a.filteredAttributes.length){g.filteredAttributes=[];for(var T=0;T<a.filteredAttributes.length;++T)g.filteredAttributes[T]=_.opentelemetry.proto.common.v1.KeyValue.toObject(a.filteredAttributes[T],h)}return g},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/opentelemetry.proto.metrics.v1.Exemplar"},y}(),S}(),O}(),v.logs=function(){var O={};return O.v1=function(){var y,r,S={};return S.LogsData=function(){function y(r){if(this.resourceLogs=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.resourceLogs=m.emptyArray,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.resourceLogs&&i.resourceLogs.length)for(var h=0;h<i.resourceLogs.length;++h)_.opentelemetry.proto.logs.v1.ResourceLogs.encode(i.resourceLogs[h],a.uint32(10).fork()).ldelim();return a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.logs.v1.LogsData;i.pos<h;){var c=i.uint32();c>>>3==1?(g.resourceLogs&&g.resourceLogs.length||(g.resourceLogs=[]),g.resourceLogs.push(_.opentelemetry.proto.logs.v1.ResourceLogs.decode(i,i.uint32()))):i.skipType(7&c)}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.resourceLogs&&i.hasOwnProperty("resourceLogs")){if(!Array.isArray(i.resourceLogs))return"resourceLogs: array expected";for(var a=0;a<i.resourceLogs.length;++a){var h=_.opentelemetry.proto.logs.v1.ResourceLogs.verify(i.resourceLogs[a]);if(h)return"resourceLogs."+h}}return null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.logs.v1.LogsData)return i;var a=new _.opentelemetry.proto.logs.v1.LogsData;if(i.resourceLogs){if(!Array.isArray(i.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");a.resourceLogs=[];for(var h=0;h<i.resourceLogs.length;++h){if("object"!=typeof i.resourceLogs[h])throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");a.resourceLogs[h]=_.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(i.resourceLogs[h])}}return a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.resourceLogs=[]),i.resourceLogs&&i.resourceLogs.length){h.resourceLogs=[];for(var g=0;g<i.resourceLogs.length;++g)h.resourceLogs[g]=_.opentelemetry.proto.logs.v1.ResourceLogs.toObject(i.resourceLogs[g],a)}return h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogsData"},y}(),S.ResourceLogs=function(){function y(r){if(this.scopeLogs=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.resource=null,y.prototype.scopeLogs=m.emptyArray,y.prototype.schemaUrl=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.resource&&Object.hasOwnProperty.call(i,"resource")&&_.opentelemetry.proto.resource.v1.Resource.encode(i.resource,a.uint32(10).fork()).ldelim(),null!=i.scopeLogs&&i.scopeLogs.length)for(var h=0;h<i.scopeLogs.length;++h)_.opentelemetry.proto.logs.v1.ScopeLogs.encode(i.scopeLogs[h],a.uint32(18).fork()).ldelim();return null!=i.schemaUrl&&Object.hasOwnProperty.call(i,"schemaUrl")&&a.uint32(26).string(i.schemaUrl),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.logs.v1.ResourceLogs;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.resource=_.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break;case 2:g.scopeLogs&&g.scopeLogs.length||(g.scopeLogs=[]),g.scopeLogs.push(_.opentelemetry.proto.logs.v1.ScopeLogs.decode(i,i.uint32()));break;case 3:g.schemaUrl=i.string();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.resource&&i.hasOwnProperty("resource")&&(a=_.opentelemetry.proto.resource.v1.Resource.verify(i.resource)))return"resource."+a;if(null!=i.scopeLogs&&i.hasOwnProperty("scopeLogs")){if(!Array.isArray(i.scopeLogs))return"scopeLogs: array expected";for(var h=0;h<i.scopeLogs.length;++h){var a;if(a=_.opentelemetry.proto.logs.v1.ScopeLogs.verify(i.scopeLogs[h]))return"scopeLogs."+a}}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&!m.isString(i.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.logs.v1.ResourceLogs)return i;var a=new _.opentelemetry.proto.logs.v1.ResourceLogs;if(null!=i.resource){if("object"!=typeof i.resource)throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");a.resource=_.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeLogs){if(!Array.isArray(i.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");a.scopeLogs=[];for(var h=0;h<i.scopeLogs.length;++h){if("object"!=typeof i.scopeLogs[h])throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");a.scopeLogs[h]=_.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(i.scopeLogs[h])}}return null!=i.schemaUrl&&(a.schemaUrl=String(i.schemaUrl)),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.scopeLogs=[]),a.defaults&&(h.resource=null,h.schemaUrl=""),null!=i.resource&&i.hasOwnProperty("resource")&&(h.resource=_.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,a)),i.scopeLogs&&i.scopeLogs.length){h.scopeLogs=[];for(var g=0;g<i.scopeLogs.length;++g)h.scopeLogs[g]=_.opentelemetry.proto.logs.v1.ScopeLogs.toObject(i.scopeLogs[g],a)}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&(h.schemaUrl=i.schemaUrl),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ResourceLogs"},y}(),S.ScopeLogs=function(){function y(r){if(this.logRecords=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.scope=null,y.prototype.logRecords=m.emptyArray,y.prototype.schemaUrl=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.scope&&Object.hasOwnProperty.call(i,"scope")&&_.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,a.uint32(10).fork()).ldelim(),null!=i.logRecords&&i.logRecords.length)for(var h=0;h<i.logRecords.length;++h)_.opentelemetry.proto.logs.v1.LogRecord.encode(i.logRecords[h],a.uint32(18).fork()).ldelim();return null!=i.schemaUrl&&Object.hasOwnProperty.call(i,"schemaUrl")&&a.uint32(26).string(i.schemaUrl),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.logs.v1.ScopeLogs;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break;case 2:g.logRecords&&g.logRecords.length||(g.logRecords=[]),g.logRecords.push(_.opentelemetry.proto.logs.v1.LogRecord.decode(i,i.uint32()));break;case 3:g.schemaUrl=i.string();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.scope&&i.hasOwnProperty("scope")&&(a=_.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope)))return"scope."+a;if(null!=i.logRecords&&i.hasOwnProperty("logRecords")){if(!Array.isArray(i.logRecords))return"logRecords: array expected";for(var h=0;h<i.logRecords.length;++h){var a;if(a=_.opentelemetry.proto.logs.v1.LogRecord.verify(i.logRecords[h]))return"logRecords."+a}}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&!m.isString(i.schemaUrl)?"schemaUrl: string expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.logs.v1.ScopeLogs)return i;var a=new _.opentelemetry.proto.logs.v1.ScopeLogs;if(null!=i.scope){if("object"!=typeof i.scope)throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");a.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.logRecords){if(!Array.isArray(i.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");a.logRecords=[];for(var h=0;h<i.logRecords.length;++h){if("object"!=typeof i.logRecords[h])throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");a.logRecords[h]=_.opentelemetry.proto.logs.v1.LogRecord.fromObject(i.logRecords[h])}}return null!=i.schemaUrl&&(a.schemaUrl=String(i.schemaUrl)),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.logRecords=[]),a.defaults&&(h.scope=null,h.schemaUrl=""),null!=i.scope&&i.hasOwnProperty("scope")&&(h.scope=_.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,a)),i.logRecords&&i.logRecords.length){h.logRecords=[];for(var g=0;g<i.logRecords.length;++g)h.logRecords[g]=_.opentelemetry.proto.logs.v1.LogRecord.toObject(i.logRecords[g],a)}return null!=i.schemaUrl&&i.hasOwnProperty("schemaUrl")&&(h.schemaUrl=i.schemaUrl),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ScopeLogs"},y}(),S.SeverityNumber=(y={},(r=Object.create(y))[y[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,r[y[1]="SEVERITY_NUMBER_TRACE"]=1,r[y[2]="SEVERITY_NUMBER_TRACE2"]=2,r[y[3]="SEVERITY_NUMBER_TRACE3"]=3,r[y[4]="SEVERITY_NUMBER_TRACE4"]=4,r[y[5]="SEVERITY_NUMBER_DEBUG"]=5,r[y[6]="SEVERITY_NUMBER_DEBUG2"]=6,r[y[7]="SEVERITY_NUMBER_DEBUG3"]=7,r[y[8]="SEVERITY_NUMBER_DEBUG4"]=8,r[y[9]="SEVERITY_NUMBER_INFO"]=9,r[y[10]="SEVERITY_NUMBER_INFO2"]=10,r[y[11]="SEVERITY_NUMBER_INFO3"]=11,r[y[12]="SEVERITY_NUMBER_INFO4"]=12,r[y[13]="SEVERITY_NUMBER_WARN"]=13,r[y[14]="SEVERITY_NUMBER_WARN2"]=14,r[y[15]="SEVERITY_NUMBER_WARN3"]=15,r[y[16]="SEVERITY_NUMBER_WARN4"]=16,r[y[17]="SEVERITY_NUMBER_ERROR"]=17,r[y[18]="SEVERITY_NUMBER_ERROR2"]=18,r[y[19]="SEVERITY_NUMBER_ERROR3"]=19,r[y[20]="SEVERITY_NUMBER_ERROR4"]=20,r[y[21]="SEVERITY_NUMBER_FATAL"]=21,r[y[22]="SEVERITY_NUMBER_FATAL2"]=22,r[y[23]="SEVERITY_NUMBER_FATAL3"]=23,r[y[24]="SEVERITY_NUMBER_FATAL4"]=24,r),S.LogRecordFlags=function(){var y={},r=Object.create(y);return r[y[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,r[y[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,r}(),S.LogRecord=function(){function y(r){if(this.attributes=[],r)for(var i=Object.keys(r),a=0;a<i.length;++a)null!=r[i[a]]&&(this[i[a]]=r[i[a]])}return y.prototype.timeUnixNano=null,y.prototype.observedTimeUnixNano=null,y.prototype.severityNumber=null,y.prototype.severityText=null,y.prototype.body=null,y.prototype.attributes=m.emptyArray,y.prototype.droppedAttributesCount=null,y.prototype.flags=null,y.prototype.traceId=null,y.prototype.spanId=null,y.create=function(i){return new y(i)},y.encode=function(i,a){if(a||(a=p.create()),null!=i.timeUnixNano&&Object.hasOwnProperty.call(i,"timeUnixNano")&&a.uint32(9).fixed64(i.timeUnixNano),null!=i.severityNumber&&Object.hasOwnProperty.call(i,"severityNumber")&&a.uint32(16).int32(i.severityNumber),null!=i.severityText&&Object.hasOwnProperty.call(i,"severityText")&&a.uint32(26).string(i.severityText),null!=i.body&&Object.hasOwnProperty.call(i,"body")&&_.opentelemetry.proto.common.v1.AnyValue.encode(i.body,a.uint32(42).fork()).ldelim(),null!=i.attributes&&i.attributes.length)for(var h=0;h<i.attributes.length;++h)_.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[h],a.uint32(50).fork()).ldelim();return null!=i.droppedAttributesCount&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&a.uint32(56).uint32(i.droppedAttributesCount),null!=i.flags&&Object.hasOwnProperty.call(i,"flags")&&a.uint32(69).fixed32(i.flags),null!=i.traceId&&Object.hasOwnProperty.call(i,"traceId")&&a.uint32(74).bytes(i.traceId),null!=i.spanId&&Object.hasOwnProperty.call(i,"spanId")&&a.uint32(82).bytes(i.spanId),null!=i.observedTimeUnixNano&&Object.hasOwnProperty.call(i,"observedTimeUnixNano")&&a.uint32(89).fixed64(i.observedTimeUnixNano),a},y.encodeDelimited=function(i,a){return this.encode(i,a).ldelim()},y.decode=function(i,a){i instanceof l||(i=l.create(i));for(var h=void 0===a?i.len:i.pos+a,g=new _.opentelemetry.proto.logs.v1.LogRecord;i.pos<h;){var c=i.uint32();switch(c>>>3){case 1:g.timeUnixNano=i.fixed64();break;case 11:g.observedTimeUnixNano=i.fixed64();break;case 2:g.severityNumber=i.int32();break;case 3:g.severityText=i.string();break;case 5:g.body=_.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break;case 6:g.attributes&&g.attributes.length||(g.attributes=[]),g.attributes.push(_.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break;case 7:g.droppedAttributesCount=i.uint32();break;case 8:g.flags=i.fixed32();break;case 9:g.traceId=i.bytes();break;case 10:g.spanId=i.bytes();break;default:i.skipType(7&c)}}return g},y.decodeDelimited=function(i){return i instanceof l||(i=new l(i)),this.decode(i,i.uint32())},y.verify=function(i){if("object"!=typeof i||null===i)return"object expected";if(null!=i.timeUnixNano&&i.hasOwnProperty("timeUnixNano")&&!m.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&m.isInteger(i.timeUnixNano.low)&&m.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=i.observedTimeUnixNano&&i.hasOwnProperty("observedTimeUnixNano")&&!m.isInteger(i.observedTimeUnixNano)&&!(i.observedTimeUnixNano&&m.isInteger(i.observedTimeUnixNano.low)&&m.isInteger(i.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(null!=i.severityNumber&&i.hasOwnProperty("severityNumber"))switch(i.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:}if(null!=i.severityText&&i.hasOwnProperty("severityText")&&!m.isString(i.severityText))return"severityText: string expected";if(null!=i.body&&i.hasOwnProperty("body")&&(a=_.opentelemetry.proto.common.v1.AnyValue.verify(i.body)))return"body."+a;if(null!=i.attributes&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var h=0;h<i.attributes.length;++h){var a;if(a=_.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[h]))return"attributes."+a}}return null!=i.droppedAttributesCount&&i.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null!=i.flags&&i.hasOwnProperty("flags")&&!m.isInteger(i.flags)?"flags: integer expected":null!=i.traceId&&i.hasOwnProperty("traceId")&&!(i.traceId&&"number"==typeof i.traceId.length||m.isString(i.traceId))?"traceId: buffer expected":null!=i.spanId&&i.hasOwnProperty("spanId")&&!(i.spanId&&"number"==typeof i.spanId.length||m.isString(i.spanId))?"spanId: buffer expected":null},y.fromObject=function(i){if(i instanceof _.opentelemetry.proto.logs.v1.LogRecord)return i;var a=new _.opentelemetry.proto.logs.v1.LogRecord;switch(null!=i.timeUnixNano&&(m.Long?(a.timeUnixNano=m.Long.fromValue(i.timeUnixNano)).unsigned=!1:"string"==typeof i.timeUnixNano?a.timeUnixNano=parseInt(i.timeUnixNano,10):"number"==typeof i.timeUnixNano?a.timeUnixNano=i.timeUnixNano:"object"==typeof i.timeUnixNano&&(a.timeUnixNano=new m.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),null!=i.observedTimeUnixNano&&(m.Long?(a.observedTimeUnixNano=m.Long.fromValue(i.observedTimeUnixNano)).unsigned=!1:"string"==typeof i.observedTimeUnixNano?a.observedTimeUnixNano=parseInt(i.observedTimeUnixNano,10):"number"==typeof i.observedTimeUnixNano?a.observedTimeUnixNano=i.observedTimeUnixNano:"object"==typeof i.observedTimeUnixNano&&(a.observedTimeUnixNano=new m.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber())),i.severityNumber){default:if("number"==typeof i.severityNumber){a.severityNumber=i.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:a.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:a.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:a.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:a.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:a.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:a.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:a.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:a.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:a.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:a.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:a.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:a.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:a.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:a.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:a.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:a.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:a.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:a.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:a.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:a.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:a.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:a.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:a.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:a.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:a.severityNumber=24}if(null!=i.severityText&&(a.severityText=String(i.severityText)),null!=i.body){if("object"!=typeof i.body)throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");a.body=_.opentelemetry.proto.common.v1.AnyValue.fromObject(i.body)}if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");a.attributes=[];for(var h=0;h<i.attributes.length;++h){if("object"!=typeof i.attributes[h])throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");a.attributes[h]=_.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[h])}}return null!=i.droppedAttributesCount&&(a.droppedAttributesCount=i.droppedAttributesCount>>>0),null!=i.flags&&(a.flags=i.flags>>>0),null!=i.traceId&&("string"==typeof i.traceId?m.base64.decode(i.traceId,a.traceId=m.newBuffer(m.base64.length(i.traceId)),0):i.traceId.length>=0&&(a.traceId=i.traceId)),null!=i.spanId&&("string"==typeof i.spanId?m.base64.decode(i.spanId,a.spanId=m.newBuffer(m.base64.length(i.spanId)),0):i.spanId.length>=0&&(a.spanId=i.spanId)),a},y.toObject=function(i,a){a||(a={});var h={};if((a.arrays||a.defaults)&&(h.attributes=[]),a.defaults){if(m.Long){var g=new m.Long(0,0,!1);h.timeUnixNano=a.longs===String?g.toString():a.longs===Number?g.toNumber():g}else h.timeUnixNano=a.longs===String?"0":0;h.severityNumber=a.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,h.severityText="",h.body=null,h.droppedAttributesCount=0,h.flags=0,a.bytes===String?h.traceId="":(h.traceId=[],a.bytes!==Array&&(h.traceId=m.newBuffer(h.traceId))),a.bytes===String?h.spanId="":(h.spanId=[],a.bytes!==Array&&(h.spanId=m.newBuffer(h.spanId))),m.Long?(g=new m.Long(0,0,!1),h.observedTimeUnixNano=a.longs===String?g.toString():a.longs===Number?g.toNumber():g):h.observedTimeUnixNano=a.longs===String?"0":0}if(null!=i.timeUnixNano&&i.hasOwnProperty("timeUnixNano")&&(h.timeUnixNano="number"==typeof i.timeUnixNano?a.longs===String?String(i.timeUnixNano):i.timeUnixNano:a.longs===String?m.Long.prototype.toString.call(i.timeUnixNano):a.longs===Number?new m.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),null!=i.severityNumber&&i.hasOwnProperty("severityNumber")&&(h.severityNumber=a.enums===String?void 0===_.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]?i.severityNumber:_.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]:i.severityNumber),null!=i.severityText&&i.hasOwnProperty("severityText")&&(h.severityText=i.severityText),null!=i.body&&i.hasOwnProperty("body")&&(h.body=_.opentelemetry.proto.common.v1.AnyValue.toObject(i.body,a)),i.attributes&&i.attributes.length){h.attributes=[];for(var c=0;c<i.attributes.length;++c)h.attributes[c]=_.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[c],a)}return null!=i.droppedAttributesCount&&i.hasOwnProperty("droppedAttributesCount")&&(h.droppedAttributesCount=i.droppedAttributesCount),null!=i.flags&&i.hasOwnProperty("flags")&&(h.flags=i.flags),null!=i.traceId&&i.hasOwnProperty("traceId")&&(h.traceId=a.bytes===String?m.base64.encode(i.traceId,0,i.traceId.length):a.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),null!=i.spanId&&i.hasOwnProperty("spanId")&&(h.spanId=a.bytes===String?m.base64.encode(i.spanId,0,i.spanId.length):a.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),null!=i.observedTimeUnixNano&&i.hasOwnProperty("observedTimeUnixNano")&&(h.observedTimeUnixNano="number"==typeof i.observedTimeUnixNano?a.longs===String?String(i.observedTimeUnixNano):i.observedTimeUnixNano:a.longs===String?m.Long.prototype.toString.call(i.observedTimeUnixNano):a.longs===Number?new m.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber():i.observedTimeUnixNano),h},y.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},y.getTypeUrl=function(i){return void 0===i&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogRecord"},y}(),S}(),O}(),v),P),Ue.exports=_},63548:(Ue,W,d)=>{"use strict";Ue.exports=d(70880)},70880:(Ue,W,d)=>{"use strict";var n=W;function l(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=d(6759),n.BufferWriter=d(18672),n.Reader=d(21239),n.BufferReader=d(64640),n.util=d(76124),n.rpc=d(99453),n.roots=d(14335),n.configure=l,l()},21239:(Ue,W,d)=>{"use strict";Ue.exports=P;var l,n=d(76124),p=n.LongBits,m=n.utf8;function _(i,a){return RangeError("index out of range: "+i.pos+" + "+(a||1)+" > "+i.len)}function P(i){this.buf=i,this.pos=0,this.len=i.length}var v=typeof Uint8Array<"u"?function(a){if(a instanceof Uint8Array||Array.isArray(a))return new P(a);throw Error("illegal buffer")}:function(a){if(Array.isArray(a))return new P(a);throw Error("illegal buffer")},O=function(){return n.Buffer?function(h){return(P.create=function(c){return n.Buffer.isBuffer(c)?new l(c):v(c)})(h)}:v};function S(){var i=new p(0,0),a=0;if(!(this.len-this.pos>4)){for(;a<3;++a){if(this.pos>=this.len)throw _(this);if(i.lo=(i.lo|(127&this.buf[this.pos])<<7*a)>>>0,this.buf[this.pos++]<128)return i}return i.lo=(i.lo|(127&this.buf[this.pos++])<<7*a)>>>0,i}for(;a<4;++a)if(i.lo=(i.lo|(127&this.buf[this.pos])<<7*a)>>>0,this.buf[this.pos++]<128)return i;if(i.lo=(i.lo|(127&this.buf[this.pos])<<28)>>>0,i.hi=(i.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return i;if(a=0,this.len-this.pos>4){for(;a<5;++a)if(i.hi=(i.hi|(127&this.buf[this.pos])<<7*a+3)>>>0,this.buf[this.pos++]<128)return i}else for(;a<5;++a){if(this.pos>=this.len)throw _(this);if(i.hi=(i.hi|(127&this.buf[this.pos])<<7*a+3)>>>0,this.buf[this.pos++]<128)return i}throw Error("invalid varint encoding")}function y(i,a){return(i[a-4]|i[a-3]<<8|i[a-2]<<16|i[a-1]<<24)>>>0}function r(){if(this.pos+8>this.len)throw _(this,8);return new p(y(this.buf,this.pos+=4),y(this.buf,this.pos+=4))}P.create=O(),P.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,P.prototype.uint32=function(){var a=4294967295;return function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return a;if((this.pos+=5)>this.len)throw this.pos=this.len,_(this,10);return a}}(),P.prototype.int32=function(){return 0|this.uint32()},P.prototype.sint32=function(){var a=this.uint32();return a>>>1^-(1&a)},P.prototype.bool=function(){return 0!==this.uint32()},P.prototype.fixed32=function(){if(this.pos+4>this.len)throw _(this,4);return y(this.buf,this.pos+=4)},P.prototype.sfixed32=function(){if(this.pos+4>this.len)throw _(this,4);return 0|y(this.buf,this.pos+=4)},P.prototype.float=function(){if(this.pos+4>this.len)throw _(this,4);var a=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,a},P.prototype.double=function(){if(this.pos+8>this.len)throw _(this,4);var a=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,a},P.prototype.bytes=function(){var a=this.uint32(),h=this.pos,g=this.pos+a;if(g>this.len)throw _(this,a);if(this.pos+=a,Array.isArray(this.buf))return this.buf.slice(h,g);if(h===g){var c=n.Buffer;return c?c.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,h,g)},P.prototype.string=function(){var a=this.bytes();return m.read(a,0,a.length)},P.prototype.skip=function(a){if("number"==typeof a){if(this.pos+a>this.len)throw _(this,a);this.pos+=a}else do{if(this.pos>=this.len)throw _(this)}while(128&this.buf[this.pos++]);return this},P.prototype.skipType=function(i){switch(i){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(i=7&this.uint32());)this.skipType(i);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+i+" at offset "+this.pos)}return this},P._configure=function(i){l=i,P.create=O(),l._configure();var a=n.Long?"toLong":"toNumber";n.merge(P.prototype,{int64:function(){return S.call(this)[a](!1)},uint64:function(){return S.call(this)[a](!0)},sint64:function(){return S.call(this).zzDecode()[a](!1)},fixed64:function(){return r.call(this)[a](!0)},sfixed64:function(){return r.call(this)[a](!1)}})}},64640:(Ue,W,d)=>{"use strict";Ue.exports=p;var n=d(21239);(p.prototype=Object.create(n.prototype)).constructor=p;var l=d(76124);function p(m){n.call(this,m)}p._configure=function(){l.Buffer&&(p.prototype._slice=l.Buffer.prototype.slice)},p.prototype.string=function(){var _=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+_,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+_,this.len))},p._configure()},14335:Ue=>{"use strict";Ue.exports={}},99453:(Ue,W,d)=>{"use strict";W.Service=d(18117)},18117:(Ue,W,d)=>{"use strict";Ue.exports=l;var n=d(76124);function l(p,m,_){if("function"!=typeof p)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=p,this.requestDelimited=!!m,this.responseDelimited=!!_}(l.prototype=Object.create(n.EventEmitter.prototype)).constructor=l,l.prototype.rpcCall=function p(m,_,P,v,O){if(!v)throw TypeError("request must be specified");var S=this;if(!O)return n.asPromise(p,S,m,_,P,v);if(S.rpcImpl)try{return S.rpcImpl(m,_[S.requestDelimited?"encodeDelimited":"encode"](v).finish(),function(r,i){if(r)return S.emit("error",r,m),O(r);if(null!==i){if(!(i instanceof P))try{i=P[S.responseDelimited?"decodeDelimited":"decode"](i)}catch(a){return S.emit("error",a,m),O(a)}return S.emit("data",i,m),O(null,i)}S.end(!0)})}catch(y){return S.emit("error",y,m),void setTimeout(function(){O(y)},0)}else setTimeout(function(){O(Error("already ended"))},0)},l.prototype.end=function(m){return this.rpcImpl&&(m||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},64341:(Ue,W,d)=>{"use strict";Ue.exports=l;var n=d(76124);function l(P,v){this.lo=P>>>0,this.hi=v>>>0}var p=l.zero=new l(0,0);p.toNumber=function(){return 0},p.zzEncode=p.zzDecode=function(){return this},p.length=function(){return 1};var m=l.zeroHash="\0\0\0\0\0\0\0\0";l.fromNumber=function(v){if(0===v)return p;var O=v<0;O&&(v=-v);var S=v>>>0,y=(v-S)/4294967296>>>0;return O&&(y=~y>>>0,S=~S>>>0,++S>4294967295&&(S=0,++y>4294967295&&(y=0))),new l(S,y)},l.from=function(v){if("number"==typeof v)return l.fromNumber(v);if(n.isString(v)){if(!n.Long)return l.fromNumber(parseInt(v,10));v=n.Long.fromString(v)}return v.low||v.high?new l(v.low>>>0,v.high>>>0):p},l.prototype.toNumber=function(v){if(!v&&this.hi>>>31){var O=1+~this.lo>>>0,S=~this.hi>>>0;return O||(S=S+1>>>0),-(O+4294967296*S)}return this.lo+4294967296*this.hi},l.prototype.toLong=function(v){return n.Long?new n.Long(0|this.lo,0|this.hi,!!v):{low:0|this.lo,high:0|this.hi,unsigned:!!v}};var _=String.prototype.charCodeAt;l.fromHash=function(v){return v===m?p:new l((_.call(v,0)|_.call(v,1)<<8|_.call(v,2)<<16|_.call(v,3)<<24)>>>0,(_.call(v,4)|_.call(v,5)<<8|_.call(v,6)<<16|_.call(v,7)<<24)>>>0)},l.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},l.prototype.zzEncode=function(){var v=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^v)>>>0,this.lo=(this.lo<<1^v)>>>0,this},l.prototype.zzDecode=function(){var v=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^v)>>>0,this.hi=(this.hi>>>1^v)>>>0,this},l.prototype.length=function(){var v=this.lo,O=(this.lo>>>28|this.hi<<4)>>>0,S=this.hi>>>24;return 0===S?0===O?v<16384?v<128?1:2:v<2097152?3:4:O<16384?O<128?5:6:O<2097152?7:8:S<128?9:10}},76124:function(Ue,W,d){"use strict";var n=W;function l(m,_,P){for(var v=Object.keys(_),O=0;O<v.length;++O)(void 0===m[v[O]]||!P)&&(m[v[O]]=_[v[O]]);return m}function p(m){function _(P,v){if(!(this instanceof _))return new _(P,v);Object.defineProperty(this,"message",{get:function(){return P}}),Error.captureStackTrace?Error.captureStackTrace(this,_):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),v&&l(this,v)}return _.prototype=Object.create(Error.prototype,{constructor:{value:_,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return m},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),_}n.asPromise=d(69753),n.base64=d(5275),n.EventEmitter=d(84978),n.float=d(8982),n.inquire=d(46469),n.utf8=d(61755),n.pool=d(74722),n.LongBits=d(64341),n.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node),n.global=n.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(_){return"number"==typeof _&&isFinite(_)&&Math.floor(_)===_},n.isString=function(_){return"string"==typeof _||_ instanceof String},n.isObject=function(_){return _&&"object"==typeof _},n.isset=n.isSet=function(_,P){var v=_[P];return!(null==v||!_.hasOwnProperty(P))&&("object"!=typeof v||(Array.isArray(v)?v.length:Object.keys(v).length)>0)},n.Buffer=function(){try{var m=n.inquire("buffer").Buffer;return m.prototype.utf8Write?m:null}catch{return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(_){return"number"==typeof _?n.Buffer?n._Buffer_allocUnsafe(_):new n.Array(_):n.Buffer?n._Buffer_from(_):typeof Uint8Array>"u"?_:new Uint8Array(_)},n.Array=typeof Uint8Array<"u"?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(_){return _?n.LongBits.from(_).toHash():n.LongBits.zeroHash},n.longFromHash=function(_,P){var v=n.LongBits.fromHash(_);return n.Long?n.Long.fromBits(v.lo,v.hi,P):v.toNumber(!!P)},n.merge=l,n.lcFirst=function(_){return _.charAt(0).toLowerCase()+_.substring(1)},n.newError=p,n.ProtocolError=p("ProtocolError"),n.oneOfGetter=function(_){for(var P={},v=0;v<_.length;++v)P[_[v]]=1;return function(){for(var O=Object.keys(this),S=O.length-1;S>-1;--S)if(1===P[O[S]]&&null!=this[O[S]])return O[S]}},n.oneOfSetter=function(_){return function(P){for(var v=0;v<_.length;++v)_[v]!==P&&delete this[_[v]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var m=n.Buffer;m?(n._Buffer_from=m.from!==Uint8Array.from&&m.from||function(P,v){return new m(P,v)},n._Buffer_allocUnsafe=m.allocUnsafe||function(P){return new m(P)}):n._Buffer_from=n._Buffer_allocUnsafe=null}},6759:(Ue,W,d)=>{"use strict";Ue.exports=S;var l,n=d(76124),p=n.LongBits,m=n.base64,_=n.utf8;function P(T,A,L){this.fn=T,this.len=A,this.next=void 0,this.val=L}function v(){}function O(T){this.head=T.head,this.tail=T.tail,this.len=T.len,this.next=T.states}function S(){this.len=0,this.head=new P(v,0,0),this.tail=this.head,this.states=null}var y=function(){return n.Buffer?function(){return(S.create=function(){return new l})()}:function(){return new S}};function r(T,A,L){A[L]=255&T}function a(T,A){this.len=T,this.next=void 0,this.val=A}function h(T,A,L){for(;T.hi;)A[L++]=127&T.lo|128,T.lo=(T.lo>>>7|T.hi<<25)>>>0,T.hi>>>=7;for(;T.lo>127;)A[L++]=127&T.lo|128,T.lo=T.lo>>>7;A[L++]=T.lo}function g(T,A,L){A[L]=255&T,A[L+1]=T>>>8&255,A[L+2]=T>>>16&255,A[L+3]=T>>>24}S.create=y(),S.alloc=function(A){return new n.Array(A)},n.Array!==Array&&(S.alloc=n.pool(S.alloc,n.Array.prototype.subarray)),S.prototype._push=function(A,L,x){return this.tail=this.tail.next=new P(A,L,x),this.len+=L,this},(a.prototype=Object.create(P.prototype)).fn=function i(T,A,L){for(;T>127;)A[L++]=127&T|128,T>>>=7;A[L]=T},S.prototype.uint32=function(A){return this.len+=(this.tail=this.tail.next=new a((A>>>=0)<128?1:A<16384?2:A<2097152?3:A<268435456?4:5,A)).len,this},S.prototype.int32=function(A){return A<0?this._push(h,10,p.fromNumber(A)):this.uint32(A)},S.prototype.sint32=function(A){return this.uint32((A<<1^A>>31)>>>0)},S.prototype.int64=S.prototype.uint64=function(A){var L=p.from(A);return this._push(h,L.length(),L)},S.prototype.sint64=function(A){var L=p.from(A).zzEncode();return this._push(h,L.length(),L)},S.prototype.bool=function(A){return this._push(r,1,A?1:0)},S.prototype.sfixed32=S.prototype.fixed32=function(A){return this._push(g,4,A>>>0)},S.prototype.sfixed64=S.prototype.fixed64=function(A){var L=p.from(A);return this._push(g,4,L.lo)._push(g,4,L.hi)},S.prototype.float=function(A){return this._push(n.float.writeFloatLE,4,A)},S.prototype.double=function(A){return this._push(n.float.writeDoubleLE,8,A)};var c=n.Array.prototype.set?function(A,L,x){L.set(A,x)}:function(A,L,x){for(var V=0;V<A.length;++V)L[x+V]=A[V]};S.prototype.bytes=function(A){var L=A.length>>>0;if(!L)return this._push(r,1,0);if(n.isString(A)){var x=S.alloc(L=m.length(A));m.decode(A,x,0),A=x}return this.uint32(L)._push(c,L,A)},S.prototype.string=function(A){var L=_.length(A);return L?this.uint32(L)._push(_.write,L,A):this._push(r,1,0)},S.prototype.fork=function(){return this.states=new O(this),this.head=this.tail=new P(v,0,0),this.len=0,this},S.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new P(v,0,0),this.len=0),this},S.prototype.ldelim=function(){var A=this.head,L=this.tail,x=this.len;return this.reset().uint32(x),x&&(this.tail.next=A.next,this.tail=L,this.len+=x),this},S.prototype.finish=function(){for(var A=this.head.next,L=this.constructor.alloc(this.len),x=0;A;)A.fn(A.val,L,x),x+=A.len,A=A.next;return L},S._configure=function(T){l=T,S.create=y(),l._configure()}},18672:(Ue,W,d)=>{"use strict";Ue.exports=p;var n=d(6759);(p.prototype=Object.create(n.prototype)).constructor=p;var l=d(76124);function p(){n.call(this)}function m(_,P,v){_.length<40?l.utf8.write(_,P,v):P.utf8Write?P.utf8Write(_,v):P.write(_,v)}p._configure=function(){p.alloc=l._Buffer_allocUnsafe,p.writeBytesBuffer=l.Buffer&&l.Buffer.prototype instanceof Uint8Array&&"set"===l.Buffer.prototype.set.name?function(P,v,O){v.set(P,O)}:function(P,v,O){if(P.copy)P.copy(v,O,0,P.length);else for(var S=0;S<P.length;)v[O++]=P[S++]}},p.prototype.bytes=function(P){l.isString(P)&&(P=l._Buffer_from(P,"base64"));var v=P.length>>>0;return this.uint32(v),v&&this._push(p.writeBytesBuffer,v,P),this},p.prototype.string=function(P){var v=l.Buffer.byteLength(P);return this.uint32(v),v&&this._push(m,v,P),this},p._configure()},69753:Ue=>{"use strict";Ue.exports=function W(d,n){for(var l=new Array(arguments.length-1),p=0,m=2,_=!0;m<arguments.length;)l[p++]=arguments[m++];return new Promise(function(v,O){l[p]=function(y){if(_)if(_=!1,y)O(y);else{for(var r=new Array(arguments.length-1),i=0;i<r.length;)r[i++]=arguments[i];v.apply(null,r)}};try{d.apply(n||null,l)}catch(S){_&&(_=!1,O(S))}})}},5275:(Ue,W)=>{"use strict";var d=W;d.length=function(P){var v=P.length;if(!v)return 0;for(var O=0;--v%4>1&&"="===P.charAt(v);)++O;return Math.ceil(3*P.length)/4-O};for(var n=new Array(64),l=new Array(123),p=0;p<64;)l[n[p]=p<26?p+65:p<52?p+71:p<62?p-4:p-59|43]=p++;d.encode=function(P,v,O){for(var a,S=null,y=[],r=0,i=0;v<O;){var h=P[v++];switch(i){case 0:y[r++]=n[h>>2],a=(3&h)<<4,i=1;break;case 1:y[r++]=n[a|h>>4],a=(15&h)<<2,i=2;break;case 2:y[r++]=n[a|h>>6],y[r++]=n[63&h],i=0}r>8191&&((S||(S=[])).push(String.fromCharCode.apply(String,y)),r=0)}return i&&(y[r++]=n[a],y[r++]=61,1===i&&(y[r++]=61)),S?(r&&S.push(String.fromCharCode.apply(String,y.slice(0,r))),S.join("")):String.fromCharCode.apply(String,y.slice(0,r))};var m="invalid encoding";d.decode=function(P,v,O){for(var r,S=O,y=0,i=0;i<P.length;){var a=P.charCodeAt(i++);if(61===a&&y>1)break;if(void 0===(a=l[a]))throw Error(m);switch(y){case 0:r=a,y=1;break;case 1:v[O++]=r<<2|(48&a)>>4,r=a,y=2;break;case 2:v[O++]=(15&r)<<4|(60&a)>>2,r=a,y=3;break;case 3:v[O++]=(3&r)<<6|a,y=0}}if(1===y)throw Error(m);return O-S},d.test=function(P){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(P)}},84978:Ue=>{"use strict";function W(){this._listeners={}}Ue.exports=W,W.prototype.on=function(n,l,p){return(this._listeners[n]||(this._listeners[n]=[])).push({fn:l,ctx:p||this}),this},W.prototype.off=function(n,l){if(void 0===n)this._listeners={};else if(void 0===l)this._listeners[n]=[];else for(var p=this._listeners[n],m=0;m<p.length;)p[m].fn===l?p.splice(m,1):++m;return this},W.prototype.emit=function(n){var l=this._listeners[n];if(l){for(var p=[],m=1;m<arguments.length;)p.push(arguments[m++]);for(m=0;m<l.length;)l[m].fn.apply(l[m++].ctx,p)}return this}},8982:Ue=>{"use strict";function W(m){return typeof Float32Array<"u"?function(){var _=new Float32Array([-0]),P=new Uint8Array(_.buffer),v=128===P[3];function O(i,a,h){_[0]=i,a[h]=P[0],a[h+1]=P[1],a[h+2]=P[2],a[h+3]=P[3]}function S(i,a,h){_[0]=i,a[h]=P[3],a[h+1]=P[2],a[h+2]=P[1],a[h+3]=P[0]}function y(i,a){return P[0]=i[a],P[1]=i[a+1],P[2]=i[a+2],P[3]=i[a+3],_[0]}function r(i,a){return P[3]=i[a],P[2]=i[a+1],P[1]=i[a+2],P[0]=i[a+3],_[0]}m.writeFloatLE=v?O:S,m.writeFloatBE=v?S:O,m.readFloatLE=v?y:r,m.readFloatBE=v?r:y}():function(){function _(v,O,S,y){var r=O<0?1:0;if(r&&(O=-O),0===O)v(1/O>0?0:2147483648,S,y);else if(isNaN(O))v(2143289344,S,y);else if(O>34028234663852886e22)v((r<<31|2139095040)>>>0,S,y);else if(O<11754943508222875e-54)v((r<<31|Math.round(O/1401298464324817e-60))>>>0,S,y);else{var i=Math.floor(Math.log(O)/Math.LN2);v((r<<31|i+127<<23|8388607&Math.round(O*Math.pow(2,-i)*8388608))>>>0,S,y)}}function P(v,O,S){var y=v(O,S),r=2*(y>>31)+1,i=y>>>23&255,a=8388607&y;return 255===i?a?NaN:r*(1/0):0===i?1401298464324817e-60*r*a:r*Math.pow(2,i-150)*(a+8388608)}m.writeFloatLE=_.bind(null,d),m.writeFloatBE=_.bind(null,n),m.readFloatLE=P.bind(null,l),m.readFloatBE=P.bind(null,p)}(),typeof Float64Array<"u"?function(){var _=new Float64Array([-0]),P=new Uint8Array(_.buffer),v=128===P[7];function O(i,a,h){_[0]=i,a[h]=P[0],a[h+1]=P[1],a[h+2]=P[2],a[h+3]=P[3],a[h+4]=P[4],a[h+5]=P[5],a[h+6]=P[6],a[h+7]=P[7]}function S(i,a,h){_[0]=i,a[h]=P[7],a[h+1]=P[6],a[h+2]=P[5],a[h+3]=P[4],a[h+4]=P[3],a[h+5]=P[2],a[h+6]=P[1],a[h+7]=P[0]}function y(i,a){return P[0]=i[a],P[1]=i[a+1],P[2]=i[a+2],P[3]=i[a+3],P[4]=i[a+4],P[5]=i[a+5],P[6]=i[a+6],P[7]=i[a+7],_[0]}function r(i,a){return P[7]=i[a],P[6]=i[a+1],P[5]=i[a+2],P[4]=i[a+3],P[3]=i[a+4],P[2]=i[a+5],P[1]=i[a+6],P[0]=i[a+7],_[0]}m.writeDoubleLE=v?O:S,m.writeDoubleBE=v?S:O,m.readDoubleLE=v?y:r,m.readDoubleBE=v?r:y}():function(){function _(v,O,S,y,r,i){var a=y<0?1:0;if(a&&(y=-y),0===y)v(0,r,i+O),v(1/y>0?0:2147483648,r,i+S);else if(isNaN(y))v(0,r,i+O),v(2146959360,r,i+S);else if(y>17976931348623157e292)v(0,r,i+O),v((a<<31|2146435072)>>>0,r,i+S);else{var h;if(y<22250738585072014e-324)v((h=y/5e-324)>>>0,r,i+O),v((a<<31|h/4294967296)>>>0,r,i+S);else{var g=Math.floor(Math.log(y)/Math.LN2);1024===g&&(g=1023),v(4503599627370496*(h=y*Math.pow(2,-g))>>>0,r,i+O),v((a<<31|g+1023<<20|1048576*h&1048575)>>>0,r,i+S)}}}function P(v,O,S,y,r){var i=v(y,r+O),a=v(y,r+S),h=2*(a>>31)+1,g=a>>>20&2047,c=4294967296*(1048575&a)+i;return 2047===g?c?NaN:h*(1/0):0===g?5e-324*h*c:h*Math.pow(2,g-1075)*(c+4503599627370496)}m.writeDoubleLE=_.bind(null,d,0,4),m.writeDoubleBE=_.bind(null,n,4,0),m.readDoubleLE=P.bind(null,l,0,4),m.readDoubleBE=P.bind(null,p,4,0)}(),m}function d(m,_,P){_[P]=255&m,_[P+1]=m>>>8&255,_[P+2]=m>>>16&255,_[P+3]=m>>>24}function n(m,_,P){_[P]=m>>>24,_[P+1]=m>>>16&255,_[P+2]=m>>>8&255,_[P+3]=255&m}function l(m,_){return(m[_]|m[_+1]<<8|m[_+2]<<16|m[_+3]<<24)>>>0}function p(m,_){return(m[_]<<24|m[_+1]<<16|m[_+2]<<8|m[_+3])>>>0}Ue.exports=W(W)},46469:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(Ue){}return null}module.exports=inquire},74722:Ue=>{"use strict";Ue.exports=function W(d,n,l){var p=l||8192,m=p>>>1,_=null,P=p;return function(O){if(O<1||O>m)return d(O);P+O>p&&(_=d(p),P=0);var S=n.call(_,P,P+=O);return 7&P&&(P=1+(7|P)),S}}},61755:(Ue,W)=>{"use strict";var d=W;d.length=function(l){for(var p=0,m=0,_=0;_<l.length;++_)(m=l.charCodeAt(_))<128?p+=1:m<2048?p+=2:55296==(64512&m)&&56320==(64512&l.charCodeAt(_+1))?(++_,p+=4):p+=3;return p},d.read=function(l,p,m){if(m-p<1)return"";for(var S,P=null,v=[],O=0;p<m;)(S=l[p++])<128?v[O++]=S:S>191&&S<224?v[O++]=(31&S)<<6|63&l[p++]:S>239&&S<365?(S=((7&S)<<18|(63&l[p++])<<12|(63&l[p++])<<6|63&l[p++])-65536,v[O++]=55296+(S>>10),v[O++]=56320+(1023&S)):v[O++]=(15&S)<<12|(63&l[p++])<<6|63&l[p++],O>8191&&((P||(P=[])).push(String.fromCharCode.apply(String,v)),O=0);return P?(O&&P.push(String.fromCharCode.apply(String,v.slice(0,O))),P.join("")):String.fromCharCode.apply(String,v.slice(0,O))},d.write=function(l,p,m){for(var P,v,_=m,O=0;O<l.length;++O)(P=l.charCodeAt(O))<128?p[m++]=P:P<2048?(p[m++]=P>>6|192,p[m++]=63&P|128):55296==(64512&P)&&56320==(64512&(v=l.charCodeAt(O+1)))?(++O,p[m++]=(P=65536+((1023&P)<<10)+(1023&v))>>18|240,p[m++]=P>>12&63|128,p[m++]=P>>6&63|128,p[m++]=63&P|128):(p[m++]=P>>12|224,p[m++]=P>>6&63|128,p[m++]=63&P|128);return m-_}},81806:(Ue,W,d)=>{Ue.exports=d(23026).default},23026:(Ue,W,d)=>{"use strict";W.default=A;var p=function m(L){return L&&L.__esModule?L:{default:L}}(d(98627)),_="axios-retry";function P(L){return!L.response&&!!L.code&&"ECONNABORTED"!==L.code&&(0,p.default)(L)}var v=["get","head","options"],O=v.concat(["put","delete"]);function S(L){return"ECONNABORTED"!==L.code&&(!L.response||L.response.status>=500&&L.response.status<=599)}function r(L){return!!L.config&&S(L)&&-1!==O.indexOf(L.config.method)}function i(L){return P(L)||r(L)}function a(){return 0}function g(L){var x=L[_]||{};return x.retryCount=x.retryCount||0,L[_]=x,x}function A(L,x){L.interceptors.request.use(function(V){return g(V).lastRequestTime=Date.now(),V}),L.interceptors.response.use(null,function(V){var D=V.config;if(!D)return Promise.reject(V);var F=function c(L,x){return Object.assign({},x,L[_])}(D,x),I=F.retries,k=void 0===I?3:I,R=F.retryCondition,G=void 0===R?i:R,Y=F.retryDelay,K=void 0===Y?a:Y,$=F.shouldResetTimeout,ee=void 0!==$&&$,J=g(D);if(G(V)&&J.retryCount<k){J.retryCount+=1;var te=K(J.retryCount,V);if(function T(L,x){L.defaults.agent===x.agent&&delete x.agent,L.defaults.httpAgent===x.httpAgent&&delete x.httpAgent,L.defaults.httpsAgent===x.httpsAgent&&delete x.httpsAgent}(L,D),!ee&&D.timeout&&J.lastRequestTime){var X=Date.now()-J.lastRequestTime;D.timeout=Math.max(D.timeout-X-te,1)}return D.transformRequest=[function(re){return re}],new Promise(function(re){return setTimeout(function(){return re(L(D))},te)})}return Promise.reject(V)})}A.isNetworkError=P,A.isSafeRequestError=function y(L){return!!L.config&&S(L)&&-1!==v.indexOf(L.config.method)},A.isIdempotentRequestError=r,A.isNetworkOrIdempotentRequestError=i,A.exponentialDelay=function h(){var x=100*Math.pow(2,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0);return x+.2*x*Math.random()},A.isRetryableError=S},94329:Ue=>{var m=.1,_="function"==typeof Float32Array;function P(h,g){return 1-3*g+3*h}function v(h,g){return 3*g-6*h}function O(h){return 3*h}function S(h,g,c){return((P(g,c)*h+v(g,c))*h+O(g))*h}function y(h,g,c){return 3*P(g,c)*h*h+2*v(g,c)*h+O(g)}function a(h){return h}Ue.exports=function(g,c,T,A){if(!(0<=g&&g<=1&&0<=T&&T<=1))throw new Error("bezier x values must be in [0, 1] range");if(g===c&&T===A)return a;for(var L=_?new Float32Array(11):new Array(11),x=0;x<11;++x)L[x]=S(x*m,g,T);return function(F){return 0===F?0:1===F?1:S(function V(D){for(var F=0,I=1;10!==I&&L[I]<=D;++I)F+=m;--I;var G=F+(D-L[I])/(L[I+1]-L[I])*m,Y=y(G,g,T);return Y>=.001?function i(h,g,c,T){for(var A=0;A<4;++A){var L=y(g,c,T);if(0===L)return g;g-=(S(g,c,T)-h)/L}return g}(D,G,g,T):0===Y?G:function r(h,g,c,T,A){var L,x,V=0;do{(L=S(x=g+(c-g)/2,T,A)-h)>0?c=x:g=x}while(Math.abs(L)>1e-7&&++V<10);return x}(D,F,F+m,g,T)}(F),c,A)}}},19884:Ue=>{"use strict";var W={single_source_shortest_paths:function(d,n,l){var p={},m={};m[n]=0;var P,v,O,S,y,i,_=W.PriorityQueue.make();for(_.push(n,0);!_.empty();)for(O in S=(P=_.pop()).cost,y=d[v=P.value]||{})y.hasOwnProperty(O)&&(i=S+y[O],(typeof m[O]>"u"||m[O]>i)&&(m[O]=i,_.push(O,i),p[O]=v));if(typeof l<"u"&&typeof m[l]>"u"){var g=["Could not find a path from ",n," to ",l,"."].join("");throw new Error(g)}return p},extract_shortest_path_from_predecessor_list:function(d,n){for(var l=[],p=n;p;)l.push(p),p=d[p];return l.reverse(),l},find_path:function(d,n,l){var p=W.single_source_shortest_paths(d,n,l);return W.extract_shortest_path_from_predecessor_list(p,l)},PriorityQueue:{make:function(d){var p,n=W.PriorityQueue,l={};for(p in d=d||{},n)n.hasOwnProperty(p)&&(l[p]=n[p]);return l.queue=[],l.sorter=d.sorter||n.default_sorter,l},default_sorter:function(d,n){return d.cost-n.cost},push:function(d,n){this.queue.push({value:d,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ue.exports=W},30741:Ue=>{"use strict";Ue.exports=function(d){for(var n=[],l=d.length,p=0;p<l;p++){var m=d.charCodeAt(p);if(m>=55296&&m<=56319&&l>p+1){var _=d.charCodeAt(p+1);_>=56320&&_<=57343&&(m=1024*(m-55296)+_-56320+65536,p+=1)}m<128?n.push(m):m<2048?(n.push(m>>6|192),n.push(63&m|128)):m<55296||m>=57344&&m<65536?(n.push(m>>12|224),n.push(m>>6&63|128),n.push(63&m|128)):m>=65536&&m<=1114111?(n.push(m>>18|240),n.push(m>>12&63|128),n.push(m>>6&63|128),n.push(63&m|128)):n.push(239,191,189)}return new Uint8Array(n).buffer}},98627:Ue=>{"use strict";var W=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],d=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];Ue.exports=function(n){return!n||!n.code||-1!==W.indexOf(n.code)||-1===d.indexOf(n.code)}},20468:(Ue,W,d)=>{var n;!function(){"use strict";var l="input is invalid type",p="object"==typeof window,m=p?window:{};m.JS_SHA256_NO_WINDOW&&(p=!1);var _=!p&&"object"==typeof self,P=!m.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;P?m=global:_&&(m=self);var v=!m.JS_SHA256_NO_COMMON_JS&&Ue.exports,O=d.amdO,S=!m.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",y="0123456789abcdef".split(""),r=[-2147483648,8388608,32768,128],i=[24,16,8,0],a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],h=["hex","array","digest","arrayBuffer"],g=[];(m.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(I){return"[object Array]"===Object.prototype.toString.call(I)}),S&&(m.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(I){return"object"==typeof I&&I.buffer&&I.buffer.constructor===ArrayBuffer});var c=function(I,k){return function(R){return new V(k,!0).update(R)[I]()}},T=function(I){var k=c("hex",I);P&&(k=A(k,I)),k.create=function(){return new V(I)},k.update=function(Y){return k.create().update(Y)};for(var R=0;R<h.length;++R){var G=h[R];k[G]=c(G,I)}return k},A=function(I,k){var K,R=d(24394),G=d(91903).Buffer,Y=k?"sha224":"sha256";return K=G.from&&!m.JS_SHA256_NO_BUFFER_FROM?G.from:function(ee){return new G(ee)},function(ee){if("string"==typeof ee)return R.createHash(Y).update(ee,"utf8").digest("hex");if(null==ee)throw new Error(l);return ee.constructor===ArrayBuffer&&(ee=new Uint8Array(ee)),Array.isArray(ee)||ArrayBuffer.isView(ee)||ee.constructor===G?R.createHash(Y).update(K(ee)).digest("hex"):I(ee)}},L=function(I,k){return function(R,G){return new D(R,k,!0).update(G)[I]()}},x=function(I){var k=L("hex",I);k.create=function(Y){return new D(Y,I)},k.update=function(Y,K){return k.create(Y).update(K)};for(var R=0;R<h.length;++R){var G=h[R];k[G]=L(G,I)}return k};function V(I,k){k?(g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],I?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=I}function D(I,k,R){var G,Y=typeof I;if("string"===Y){var J,K=[],$=I.length,ee=0;for(G=0;G<$;++G)(J=I.charCodeAt(G))<128?K[ee++]=J:J<2048?(K[ee++]=192|J>>>6,K[ee++]=128|63&J):J<55296||J>=57344?(K[ee++]=224|J>>>12,K[ee++]=128|J>>>6&63,K[ee++]=128|63&J):(J=65536+((1023&J)<<10|1023&I.charCodeAt(++G)),K[ee++]=240|J>>>18,K[ee++]=128|J>>>12&63,K[ee++]=128|J>>>6&63,K[ee++]=128|63&J);I=K}else{if("object"!==Y)throw new Error(l);if(null===I)throw new Error(l);if(S&&I.constructor===ArrayBuffer)I=new Uint8Array(I);else if(!(Array.isArray(I)||S&&ArrayBuffer.isView(I)))throw new Error(l)}I.length>64&&(I=new V(k,!0).update(I).array());var z=[],te=[];for(G=0;G<64;++G){var X=I[G]||0;z[G]=92^X,te[G]=54^X}V.call(this,k,R),this.update(te),this.oKeyPad=z,this.inner=!0,this.sharedMemory=R}V.prototype.update=function(I){if(!this.finalized){var k,R=typeof I;if("string"!==R){if("object"!==R)throw new Error(l);if(null===I)throw new Error(l);if(S&&I.constructor===ArrayBuffer)I=new Uint8Array(I);else if(!(Array.isArray(I)||S&&ArrayBuffer.isView(I)))throw new Error(l);k=!0}for(var G,K,Y=0,$=I.length,ee=this.blocks;Y<$;){if(this.hashed&&(this.hashed=!1,ee[0]=this.block,this.block=ee[16]=ee[1]=ee[2]=ee[3]=ee[4]=ee[5]=ee[6]=ee[7]=ee[8]=ee[9]=ee[10]=ee[11]=ee[12]=ee[13]=ee[14]=ee[15]=0),k)for(K=this.start;Y<$&&K<64;++Y)ee[K>>>2]|=I[Y]<<i[3&K++];else for(K=this.start;Y<$&&K<64;++Y)(G=I.charCodeAt(Y))<128?ee[K>>>2]|=G<<i[3&K++]:G<2048?(ee[K>>>2]|=(192|G>>>6)<<i[3&K++],ee[K>>>2]|=(128|63&G)<<i[3&K++]):G<55296||G>=57344?(ee[K>>>2]|=(224|G>>>12)<<i[3&K++],ee[K>>>2]|=(128|G>>>6&63)<<i[3&K++],ee[K>>>2]|=(128|63&G)<<i[3&K++]):(G=65536+((1023&G)<<10|1023&I.charCodeAt(++Y)),ee[K>>>2]|=(240|G>>>18)<<i[3&K++],ee[K>>>2]|=(128|G>>>12&63)<<i[3&K++],ee[K>>>2]|=(128|G>>>6&63)<<i[3&K++],ee[K>>>2]|=(128|63&G)<<i[3&K++]);this.lastByteIndex=K,this.bytes+=K-this.start,K>=64?(this.block=ee[16],this.start=K-64,this.hash(),this.hashed=!0):this.start=K}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},V.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var I=this.blocks,k=this.lastByteIndex;I[16]=this.block,I[k>>>2]|=r[3&k],this.block=I[16],k>=56&&(this.hashed||this.hash(),I[0]=this.block,I[16]=I[1]=I[2]=I[3]=I[4]=I[5]=I[6]=I[7]=I[8]=I[9]=I[10]=I[11]=I[12]=I[13]=I[14]=I[15]=0),I[14]=this.hBytes<<3|this.bytes>>>29,I[15]=this.bytes<<3,this.hash()}},V.prototype.hash=function(){var z,ge,ue,N,se,ce,I=this.h0,k=this.h1,R=this.h2,G=this.h3,Y=this.h4,K=this.h5,$=this.h6,ee=this.h7,J=this.blocks;for(z=16;z<64;++z)J[z]=J[z-16]+(((ge=J[z-15])>>>7|ge<<25)^(ge>>>18|ge<<14)^ge>>>3)+J[z-7]+(((ge=J[z-2])>>>17|ge<<15)^(ge>>>19|ge<<13)^ge>>>10)|0;for(ce=k&R,z=0;z<64;z+=4)this.first?(this.is224?(ue=300032,ee=(ge=J[0]-1413257819)-150054599|0,G=ge+24177077|0):(ue=704751109,ee=(ge=J[0]-210244248)-1521486534|0,G=ge+143694565|0),this.first=!1):(ee=G+(ge=ee+((Y>>>6|Y<<26)^(Y>>>11|Y<<21)^(Y>>>25|Y<<7))+(Y&K^~Y&$)+a[z]+J[z])|0,G=ge+(((I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10))+((ue=I&k)^I&R^ce))|0),$=R+(ge=$+((ee>>>6|ee<<26)^(ee>>>11|ee<<21)^(ee>>>25|ee<<7))+(ee&Y^~ee&K)+a[z+1]+J[z+1])|0,R=ge+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((N=G&I)^G&k^ue))|0,K=k+(ge=K+(($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7))+($&ee^~$&Y)+a[z+2]+J[z+2])|0,k=ge+(((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+((se=R&G)^R&I^N))|0,Y=I+(ge=Y+((K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7))+(K&$^~K&ee)+a[z+3]+J[z+3])|0,I=ge+(((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+((ce=k&R)^k&G^se))|0,this.chromeBugWorkAround=!0;this.h0=this.h0+I|0,this.h1=this.h1+k|0,this.h2=this.h2+R|0,this.h3=this.h3+G|0,this.h4=this.h4+Y|0,this.h5=this.h5+K|0,this.h6=this.h6+$|0,this.h7=this.h7+ee|0},V.prototype.toString=V.prototype.hex=function(){this.finalize();var I=this.h0,k=this.h1,R=this.h2,G=this.h3,Y=this.h4,K=this.h5,$=this.h6,ee=this.h7,J=y[I>>>28&15]+y[I>>>24&15]+y[I>>>20&15]+y[I>>>16&15]+y[I>>>12&15]+y[I>>>8&15]+y[I>>>4&15]+y[15&I]+y[k>>>28&15]+y[k>>>24&15]+y[k>>>20&15]+y[k>>>16&15]+y[k>>>12&15]+y[k>>>8&15]+y[k>>>4&15]+y[15&k]+y[R>>>28&15]+y[R>>>24&15]+y[R>>>20&15]+y[R>>>16&15]+y[R>>>12&15]+y[R>>>8&15]+y[R>>>4&15]+y[15&R]+y[G>>>28&15]+y[G>>>24&15]+y[G>>>20&15]+y[G>>>16&15]+y[G>>>12&15]+y[G>>>8&15]+y[G>>>4&15]+y[15&G]+y[Y>>>28&15]+y[Y>>>24&15]+y[Y>>>20&15]+y[Y>>>16&15]+y[Y>>>12&15]+y[Y>>>8&15]+y[Y>>>4&15]+y[15&Y]+y[K>>>28&15]+y[K>>>24&15]+y[K>>>20&15]+y[K>>>16&15]+y[K>>>12&15]+y[K>>>8&15]+y[K>>>4&15]+y[15&K]+y[$>>>28&15]+y[$>>>24&15]+y[$>>>20&15]+y[$>>>16&15]+y[$>>>12&15]+y[$>>>8&15]+y[$>>>4&15]+y[15&$];return this.is224||(J+=y[ee>>>28&15]+y[ee>>>24&15]+y[ee>>>20&15]+y[ee>>>16&15]+y[ee>>>12&15]+y[ee>>>8&15]+y[ee>>>4&15]+y[15&ee]),J},V.prototype.array=V.prototype.digest=function(){this.finalize();var I=this.h0,k=this.h1,R=this.h2,G=this.h3,Y=this.h4,K=this.h5,$=this.h6,ee=this.h7,J=[I>>>24&255,I>>>16&255,I>>>8&255,255&I,k>>>24&255,k>>>16&255,k>>>8&255,255&k,R>>>24&255,R>>>16&255,R>>>8&255,255&R,G>>>24&255,G>>>16&255,G>>>8&255,255&G,Y>>>24&255,Y>>>16&255,Y>>>8&255,255&Y,K>>>24&255,K>>>16&255,K>>>8&255,255&K,$>>>24&255,$>>>16&255,$>>>8&255,255&$];return this.is224||J.push(ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee),J},V.prototype.arrayBuffer=function(){this.finalize();var I=new ArrayBuffer(this.is224?28:32),k=new DataView(I);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),I},(D.prototype=new V).finalize=function(){if(V.prototype.finalize.call(this),this.inner){this.inner=!1;var I=this.array();V.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(I),V.prototype.finalize.call(this)}};var F=T();F.sha256=F,F.sha224=T(!0),F.sha256.hmac=x(),F.sha224.hmac=x(!0),v?Ue.exports=F:(m.sha256=F.sha256,m.sha224=F.sha224,O&&void 0!==(n=function(){return F}.call(F,d,F,Ue))&&(Ue.exports=n))}()},24877:(Ue,W,d)=>{Ue.exports=d(27838)},27838:Ue=>{self,Ue.exports=(()=>{var W={31:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(m,_){if(m)for(var P in m)hasOwnProperty.call(m,P)&&_(m[P],P)},l.exports=p.default},843:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LS_META_TRACE_KEY=p.LS_META_TRACER_GUID_KEY=p.LS_META_TRACER_CREATE=p.LS_META_SP_START=p.LS_META_SP_FINISH=p.LS_META_SPAN_KEY=p.LS_META_PROPAGATION_KEY=p.LS_META_INJECT=p.LS_META_EXTRACT=p.LS_META_EVENT_KEY=p.LOG_WARN=p.LOG_STRING_TO_LEVEL=p.LOG_LEVEL_TO_STRING=p.LOG_INFO=p.LOG_FATAL=p.LOG_ERROR=p.LIGHTSTEP_APP_URL_PREFIX=p.JOIN_ID_PREFIX=p.FORMAT_B3=p.CLOCK_STATE_REFRESH_INTERVAL_MS=void 0,p.LOG_INFO=0,p.LOG_WARN=1,p.LOG_ERROR=2,p.LOG_FATAL=3,p.LOG_LEVEL_TO_STRING={LOG_INFO:"I",LOG_WARN:"W",LOG_ERROR:"E",LOG_FATAL:"F"},p.LOG_STRING_TO_LEVEL={I:0,W:1,E:2,F:3},p.CLOCK_STATE_REFRESH_INTERVAL_MS=350,p.LIGHTSTEP_APP_URL_PREFIX="https://app.lightstep.com",p.JOIN_ID_PREFIX="join:",p.LS_META_EVENT_KEY="lightstep.meta_event",p.LS_META_PROPAGATION_KEY="lightstep.propagation_format",p.LS_META_TRACE_KEY="lightstep.trace_id",p.LS_META_SPAN_KEY="lightstep.span_id",p.LS_META_TRACER_GUID_KEY="lightstep.tracer_guid",p.LS_META_EXTRACT="lightstep.extract_span",p.LS_META_INJECT="lightstep.inject_span",p.LS_META_SP_START="lightstep.span_start",p.LS_META_SP_FINISH="lightstep.span_finish",p.LS_META_TRACER_CREATE="lightstep.tracer_create",p.FORMAT_B3="format.b3"},261:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _=m(295),v=function(){function O(r){(function(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")})(this,O),this._accessToken=r}var S,y;return S=O,(y=[{key:"getAccessToken",value:function(){return null==this._accessToken||0===this._accessToken.length?"empty":this._accessToken}},{key:"toThrift",value:function(){return new _.crouton_thrift.Auth({access_token:this._accessToken})}}])&&function P(O,S){for(var y=0;y<S.length;y++){var r=S[y];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(O,r.key,r)}}(S.prototype,y),Object.defineProperty(S,"prototype",{writable:!1}),O}();p.default=v,l.exports=p.default},69:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.toBoolean=function(m){return!!m},p.toNumber=function(m){return Number(m)},p.toString=function(m){return""+m}},34:(l,p,m)=>{"use strict";var _,P=(_=m(31))&&_.__esModule?_:{default:_},O=function(){function S(){(function(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")})(this,S),this.options={}}var y,r;return y=S,(r=[{key:"setOptions",value:function(i){var a=this;(0,P.default)(i,function(h,g){a.options[g]=h})}}])&&function v(S,y){for(var r=0;r<y.length;r++){var i=y[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(S,i.key,i)}}(y.prototype,r),Object.defineProperty(y,"prototype",{writable:!1}),S}();l.exports=new O},618:(l,p,m)=>{"use strict";var _=m(295),v=m(843),O=m(69),S=function(){function y(a){(function(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")})(this,y),this._runtime=a,this._record=new _.crouton_thrift.LogRecord({timestamp_micros:a._platform.nowMicros(),runtime_guid:null,span_guid:null,stable_name:null,message:null,level:null,thread_id:null,filename:null,line_number:null,stack_frames:null,payload_json:null,error_flag:null})}var r,i;return r=y,(i=[{key:"record",value:function(){return this._record}},{key:"end",value:function(){this._runtime._addLogRecord(this._record)}},{key:"timestamp",value:function(a){return this._record.timestamp_micros=O.toNumber(a),this}},{key:"message",value:function(a){return this._record.message=O.toString(a),this}},{key:"level",value:function(a){return this._record.level=v.LOG_LEVEL_TO_STRING[a]||null,a>=v.LOG_ERROR&&this.error(!0),this}},{key:"span",value:function(a){return void 0!==a&&(this._record.span_guid=O.toString(a)),this}},{key:"name",value:function(a){return this._record.stable_name=O.toString(a),this}},{key:"error",value:function(a){return this._record.error_flag=O.toBoolean(a),this}},{key:"payload",value:function(a){return void 0!==a&&(this._record.payload_json=this._encodePayload(a)),this}},{key:"_encodePayload",value:function(a){var h=null;try{h=JSON.stringify(a)}catch{return}return h}}])&&function P(y,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(y,a.key,a)}}(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),y}();l.exports=S},489:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _,P=m(295),v=(_=m(31))&&_.__esModule?_:{default:_},O=function(i,a){if(i&&i.__esModule)return i;if(null===i||"object"!=typeof i&&"function"!=typeof i)return{default:i};var h=S(void 0);if(h&&h.has(i))return h.get(i);var g={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in i)if("default"!==T&&Object.prototype.hasOwnProperty.call(i,T)){var A=c?Object.getOwnPropertyDescriptor(i,T):null;A&&(A.get||A.set)?Object.defineProperty(g,T,A):g[T]=i[T]}return g.default=i,h&&h.set(i,g),g}(m(69));function S(i){if("function"!=typeof WeakMap)return null;var a=new WeakMap,h=new WeakMap;return(S=function(g){return g?h:a})(i)}var r=function(){function i(g,c,T,A){(function(L,x){if(!(L instanceof x))throw new TypeError("Cannot call a class as a function")})(this,i),A instanceof Error&&(A={stack:A.stack,message:A.message}),this._logFieldKeyHardLimit=g,this._logFieldValueHardLimit=c,this._timestampMicros=T,this._fields=A,this._keysOverLimit=0,this._valuesOverLimit=0}var a,h;return a=i,(h=[{key:"_clearOverLimits",value:function(){this._keysOverLimit=0,this._valuesOverLimit=0}},{key:"getNumKeysOverLimit",value:function(){return this._keysOverLimit}},{key:"getNumValuesOverLimit",value:function(){return this._valuesOverLimit}},{key:"toThrift",value:function(){var g=this;this._clearOverLimits();var c=[];return(0,v.default)(this._fields,function(T,A){if(A&&T){var L=g.getFieldKey(A),x=g.getFieldValue(T);c.push(new P.crouton_thrift.KeyValue({Key:L,Value:x}))}}),new P.crouton_thrift.LogRecord({timestamp_micros:this._timestampMicros,fields:c})}},{key:"getFieldKey",value:function(g){var c=O.toString(g);return c.length>this._logFieldKeyHardLimit&&(this._keysOverLimit+=1,c="".concat(c.substr(0,this._logFieldKeyHardLimit),"...")),c}},{key:"getFieldValue",value:function(g){var c=null;if(g instanceof Error)try{c=JSON.stringify(g,Object.getOwnPropertyNames(g))}catch(T){c="Could not encode value. Exception: ".concat(T)}else if(g instanceof Object)try{c=JSON.stringify(g,null," ")}catch(T){c="Could not encode value. Exception: ".concat(T)}else c=O.toString(g);return c.length>this._logFieldValueHardLimit&&(this._valuesOverLimit+=1,c="".concat(c.substr(0,this._logFieldValueHardLimit),"...")),c}}])&&function y(i,a){for(var h=0;h<a.length;h++){var g=a[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(i,g.key,g)}}(a.prototype,h),Object.defineProperty(a,"prototype",{writable:!1}),i}();p.default=r,l.exports=p.default},638:(l,p,m)=>{"use strict";l.exports=m(933).crouton_thrift},933:l=>{"use strict";var p,m;p={},void 0===(m={})&&(m={}),m.KeyValue=function(_){if(this.Key=null,this.Value=null,_){if(void 0===_.Key)throw new p.TProtocolException(p.TProtocolExceptionType.UNKNOWN,"Required field Key is unset!");if(this.Key=_.Key,void 0===_.Value)throw new p.TProtocolException(p.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=_.Value}},m.KeyValue.prototype={},m.KeyValue.prototype.read=!1,m.KeyValue.prototype.write=!1,m.NamedCounter=function(_){if(this.Name=null,this.Value=null,_){if(void 0===_.Name)throw new p.TProtocolException(p.TProtocolExceptionType.UNKNOWN,"Required field Name is unset!");if(this.Name=_.Name,void 0===_.Value)throw new p.TProtocolException(p.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=_.Value}},m.NamedCounter.prototype={},m.NamedCounter.prototype.read=!1,m.NamedCounter.prototype.write=!1,m.Runtime=function(_){this.guid=null,this.start_micros=null,this.group_name=null,this.attrs=null,_&&(void 0!==_.guid&&(this.guid=_.guid),void 0!==_.start_micros&&(this.start_micros=_.start_micros),void 0!==_.group_name&&(this.group_name=_.group_name),void 0!==_.attrs&&(this.attrs=_.attrs))},m.Runtime.prototype={},m.Runtime.prototype.read=!1,m.Runtime.prototype.write=!1,m.LogRecord=function(_){this.timestamp_micros=null,this.fields=null,this.runtime_guid=null,this.span_guid=null,this.stable_name=null,this.message=null,this.level=null,this.thread_id=null,this.filename=null,this.line_number=null,this.stack_frames=null,this.payload_json=null,this.error_flag=null,_&&(void 0!==_.timestamp_micros&&(this.timestamp_micros=_.timestamp_micros),void 0!==_.fields&&(this.fields=_.fields),void 0!==_.runtime_guid&&(this.runtime_guid=_.runtime_guid),void 0!==_.span_guid&&(this.span_guid=_.span_guid),void 0!==_.stable_name&&(this.stable_name=_.stable_name),void 0!==_.message&&(this.message=_.message),void 0!==_.level&&(this.level=_.level),void 0!==_.thread_id&&(this.thread_id=_.thread_id),void 0!==_.filename&&(this.filename=_.filename),void 0!==_.line_number&&(this.line_number=_.line_number),void 0!==_.stack_frames&&(this.stack_frames=_.stack_frames),void 0!==_.payload_json&&(this.payload_json=_.payload_json),void 0!==_.error_flag&&(this.error_flag=_.error_flag))},m.LogRecord.prototype={},m.LogRecord.prototype.read=!1,m.LogRecord.prototype.write=!1,m.TraceJoinId=function(_){if(this.TraceKey=null,this.Value=null,_){if(void 0===_.TraceKey)throw new p.TProtocolException(p.TProtocolExceptionType.UNKNOWN,"Required field TraceKey is unset!");if(this.TraceKey=_.TraceKey,void 0===_.Value)throw new p.TProtocolException(p.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=_.Value}},m.TraceJoinId.prototype={},m.TraceJoinId.prototype.read=!1,m.TraceJoinId.prototype.write=!1,m.SpanRecord=function(_){this.span_guid=null,this.trace_guid=null,this.runtime_guid=null,this.span_name=null,this.join_ids=null,this.oldest_micros=null,this.youngest_micros=null,this.attributes=null,this.error_flag=null,this.log_records=null,_&&(void 0!==_.span_guid&&(this.span_guid=_.span_guid),void 0!==_.trace_guid&&(this.trace_guid=_.trace_guid),void 0!==_.runtime_guid&&(this.runtime_guid=_.runtime_guid),void 0!==_.span_name&&(this.span_name=_.span_name),void 0!==_.join_ids&&(this.join_ids=_.join_ids),void 0!==_.oldest_micros&&(this.oldest_micros=_.oldest_micros),void 0!==_.youngest_micros&&(this.youngest_micros=_.youngest_micros),void 0!==_.attributes&&(this.attributes=_.attributes),void 0!==_.error_flag&&(this.error_flag=_.error_flag),void 0!==_.log_records&&(this.log_records=_.log_records))},m.SpanRecord.prototype={},m.SpanRecord.prototype.read=!1,m.SpanRecord.prototype.write=!1,m.Auth=function(_){this.access_token=null,_&&void 0!==_.access_token&&(this.access_token=_.access_token)},m.Auth.prototype={},m.Auth.prototype.read=!1,m.Auth.prototype.write=!1,m.Timing=function(_){this.receive_micros=null,this.transmit_micros=null,_&&(void 0!==_.receive_micros&&(this.receive_micros=_.receive_micros),void 0!==_.transmit_micros&&(this.transmit_micros=_.transmit_micros))},m.Timing.prototype={},m.Timing.prototype.read=!1,m.Timing.prototype.write=!1,m.SampleCount=function(_){this.oldest_micros=null,this.youngest_micros=null,this.count=null,_&&(void 0!==_.oldest_micros&&(this.oldest_micros=_.oldest_micros),void 0!==_.youngest_micros&&(this.youngest_micros=_.youngest_micros),void 0!==_.count&&(this.count=_.count))},m.SampleCount.prototype={},m.SampleCount.prototype.read=!1,m.SampleCount.prototype.write=!1,m.MetricsSample=function(_){if(this.name=null,this.int64_value=null,this.double_value=null,_){if(void 0===_.name)throw new p.TProtocolException(p.TProtocolExceptionType.UNKNOWN,"Required field name is unset!");this.name=_.name,void 0!==_.int64_value&&(this.int64_value=_.int64_value),void 0!==_.double_value&&(this.double_value=_.double_value)}},m.MetricsSample.prototype={},m.MetricsSample.prototype.read=!1,m.MetricsSample.prototype.write=!1,m.Metrics=function(_){this.counts=null,this.gauges=null,_&&(void 0!==_.counts&&(this.counts=_.counts),void 0!==_.gauges&&(this.gauges=_.gauges))},m.Metrics.prototype={},m.Metrics.prototype.read=!1,m.Metrics.prototype.write=!1,m.ReportRequest=function(_){this.runtime=null,this.span_records=null,this.log_records=null,this.timestamp_offset_micros=null,this.oldest_micros=null,this.youngest_micros=null,this.counters=null,this.internal_logs=null,this.internal_metrics=null,_&&(void 0!==_.runtime&&(this.runtime=_.runtime),void 0!==_.span_records&&(this.span_records=_.span_records),void 0!==_.log_records&&(this.log_records=_.log_records),void 0!==_.timestamp_offset_micros&&(this.timestamp_offset_micros=_.timestamp_offset_micros),void 0!==_.oldest_micros&&(this.oldest_micros=_.oldest_micros),void 0!==_.youngest_micros&&(this.youngest_micros=_.youngest_micros),void 0!==_.counters&&(this.counters=_.counters),void 0!==_.internal_logs&&(this.internal_logs=_.internal_logs),void 0!==_.internal_metrics&&(this.internal_metrics=_.internal_metrics))},m.ReportRequest.prototype={},m.ReportRequest.prototype.read=!1,m.ReportRequest.prototype.write=!1,m.Command=function(_){this.disable=null,_&&void 0!==_.disable&&(this.disable=_.disable)},m.Command.prototype={},m.Command.prototype.read=!1,m.Command.prototype.write=!1,m.ReportResponse=function(_){this.commands=null,this.timing=null,_&&(void 0!==_.commands&&(this.commands=_.commands),void 0!==_.timing&&(this.timing=_.timing))},m.ReportResponse.prototype={},m.ReportResponse.prototype.read=!1,m.ReportResponse.prototype.write=!1,l.exports.crouton_thrift=m,l.exports.Thrift={}},250:(l,p,m)=>{"use strict";var _=m(714),P=function(){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope||!_.isBrowser())return null;var v=document.getElementsByTagName("SCRIPT");return v.length>0?v[v.length-1]:null}();l.exports={parseScriptElementOptions:_.isBrowser()?function(v,O){if(P){var S=P.dataset,y=S.access_token;"string"==typeof y&&y.length>0&&(v.access_token=y);var r=S.component_name;"string"==typeof r&&r.length>0&&(v.component_name=r);var i=S.collector_host;"string"==typeof i&&i.length>0&&(v.collector_host=i);var a=S.collector_port;a&&(v.collector_port=parseInt(a,10));var h=S.collector_path;"string"==typeof h&&h.length>0&&(v.collector_path=h);var g=S.collector_encryption;g&&(v.collector_encryption=g);var c=S.enable;"string"==typeof c&&("true"===c?v.enable=!0:"false"===c&&(v.enable=!1));var T=S.verbosity;"string"==typeof T&&(v.verbosity=parseInt(T,10));var A=S.init_global_tracer;"string"==typeof A&&("true"===A?O.init_global_tracer=!0:"false"===A&&(O.init_global_tracer=!1)),"string"==typeof S.xhr_instrumentation&&"true"===S.xhr_instrumentation&&(v.xhr_instrumentation=!0),"string"==typeof S.instrument_page_load&&"true"===S.instrument_page_load&&(v.instrument_page_load=!0)}}:function(v,O){},parseURLQueryOptions:_.isBrowser()?function(v){var O=function(S){var y={},r=window.location.href.indexOf("?");if(r<0)return y;var i=window.location.href.slice(r+1);i.indexOf("#")>=0&&(i=i.slice(0,i.indexOf("#")));for(var a=i.replace(/\+/,"%20").split("&"),h=0;h<a.length;h++){var g=a[h].split("=");y[decodeURIComponent(g[0])]=decodeURIComponent(g[1])}return y}();if(O.lightstep_verbosity)try{v.verbosity=parseInt(O.lightstep_verbosity,10)}catch{}O.lightstep_log_to_console&&(v.log_to_console=!0)}:function(v){return{}}}},733:(l,p,m)=>{"use strict";function _(i,a){for(var h=0;h<a.length;h++){var g=a[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(i,g.key,g)}}var P=m(250),v=m(714),O="lightstep_session_id",S=604800,y=function(){if(window.performance&&window.performance.now&&window.performance.timing&&window.performance.timing.navigationStart){var i=performance.timing.navigationStart;return function(){return Math.floor(1e3*(i+performance.now()))}}return function(){return 1e3*Date.now()}}(),r=function(){function i(){!function(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")}(this,i)}var a,h,g;return a=i,h=[{key:"name",value:function(){return"browser"}},{key:"nowMicros",value:function(){return y()}},{key:"runtimeGUID",value:function(c){var T=encodeURIComponent("".concat("lightstep_guid","/").concat(c)),A=v.cookie(T)||this._generateLongUUID();v.cookie(T,A,S,"/");var L=v.cookie(O)||this._generateLongUUID();return v.cookie(O,L,S,"/"),A}},{key:"generateUUID",value:function(){return this._generateLongUUID()}},{key:"_generateLongUUID",value:function(){var c="00000000".concat(Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8),T="00000000".concat(Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8);return"".concat(c).concat(T)}},{key:"onBeforeExit",value:function(){if(v.isBrowser()){for(var c,T=arguments.length,A=new Array(T),L=0;L<T;L++)A[L]=arguments[L];(c=window).addEventListener.apply(c,["beforeunload"].concat(A))}}},{key:"plugins",value:function(c){return[m(792),m(49),m(921)]}},{key:"options",value:function(c){var T={},A={};return P.parseScriptElementOptions(T,A),P.parseURLQueryOptions(T,A),T}},{key:"tracerTags",value:function(){return{"lightstep.tracer_platform":"browser"}}},{key:"fatal",value:function(c){throw new Error(c)}},{key:"localStoreGet",value:function(c){try{if(!window.sessionStorage)return null}catch{return null}try{return JSON.parse(sessionStorage.getItem("lightstep/".concat(c)))}catch{return null}}},{key:"localStoreSet",value:function(c,T){try{if(!window.sessionStorage)return}catch{return}try{sessionStorage.setItem("lightstep/".concat(c),JSON.stringify(T))}catch{}}}],g=[{key:"initLibrary",value:function(c){var T={},A={};P.parseScriptElementOptions(T,A),A.init_global_tracer&&i.initGlobalTracer(c,T)}},{key:"initGlobalTracer",value:function(c,T){"object"==typeof window&&"object"==typeof window.opentracing&&opentracing.initGlobalTracer(new c.Tracer(T))}}],h&&_(a.prototype,h),g&&_(a,g),Object.defineProperty(a,"prototype",{writable:!1}),i}();l.exports=r},720:(l,p,m)=>{"use strict";l.exports=m(933).Thrift},374:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _=function(){function P(){(function(S,y){if(!(S instanceof y))throw new TypeError("Cannot call a class as a function")})(this,P),this._host="",this._port=0,this._path="",this._encryption=""}var v,O;return v=P,(O=[{key:"ensureConnection",value:function(S){this._host=S.collector_host,this._port=S.collector_port,this._path=S.collector_path,this._encryption=S.collector_encryption}},{key:"report",value:function(S,y,r,i){try{S?this._reportAsyncScript(y,r,i):this._reportAJAX(y,r,i)}catch(a){return i(a,null)}}},{key:"_reportAJAX",value:function(S,y,r){var i=JSON.stringify(y.toThrift()),h="".concat("none"===this._encryption?"http":"https","://").concat(this._host,":").concat(this._port).concat(this._path,"/api/v0/reports"),g=new XMLHttpRequest;g.open("POST",h),g.setRequestHeader("LightStep-Access-Token",S.getAccessToken()),g.setRequestHeader("Content-Type","application/json"),g.onreadystatechange=function(){if(4===this.readyState){var c=null,T=null;if(200!==this.status)c=new Error("status code = ".concat(this.status));else if(this.responseText)try{T=JSON.parse(this.responseText)}catch(A){c=A}else c=new Error("unexpected empty response");return r(c,T)}},g.send(i)}},{key:"_reportAsyncScript",value:function(S,y,r){var i=JSON.stringify(S.toThrift()),a=JSON.stringify(y.toThrift()),g="".concat("none"===this._encryption?"http":"https","://").concat(this._host,":").concat(this._port).concat(this._path,"/_rpc/v1/reports/uri_encoded")+"?auth=".concat(encodeURIComponent(i))+"&report=".concat(encodeURIComponent(a)),c=document.createElement("script");c.async=!0,c.defer=!0,c.src=g,c.type="text/javascript";var T=document.getElementsByTagName("head")[0];return T&&T.appendChild(c),r(null,null)}}])&&function m(P,v){for(var O=0;O<v.length;O++){var S=v[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}(v.prototype,O),Object.defineProperty(v,"prototype",{writable:!1}),P}();p.default=_,l.exports=p.default},714:l=>{"use strict";function p(){return typeof document<"u"}l.exports={cookie:p()?function(m,_,P,v,O,S){if(arguments.length>1){var y=m+"="+encodeURIComponent(_)+(P?"; expires="+new Date(+new Date+1e3*P).toUTCString():"")+(v?"; path="+v:"")+(O?"; domain="+O:"")+(S?"; secure":"");return document.cookie=y,y}return decodeURIComponent((("; "+document.cookie).split("; "+m+"=")[1]||"").split(";")[0])}:function(){return null},isBrowser:p}},938:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _=function(){function P(S,y){(function(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")})(this,P),this._tracer=S,this._name=y}var v,O;return v=P,(O=[{key:"inject",value:function(S,y){return this._tracer._error("Unsupported format: ".concat(this._name)),null}},{key:"extract",value:function(S){this._tracer._error("Unsupported format: ".concat(this._name))}}])&&function m(P,v){for(var O=0;O<v.length;O++){var S=v[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}(v.prototype,O),Object.defineProperty(v,"prototype",{writable:!1}),P}();p.default=_,l.exports=p.default},255:(l,p,m)=>{"use strict";var _;function v(r,i){return(v=Object.setPrototypeOf||function(a,h){return a.__proto__=h,a})(r,i)}function S(r){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)})(r)}Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var y=function(r){!function(A,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(L&&L.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),L&&v(A,L)}(T,r);var i,a,h,g,c=(h=T,g=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,L=S(h);if(g){var x=S(this).constructor;A=Reflect.construct(L,arguments,x)}else A=L.apply(this,arguments);return function O(r,i){if(i&&("object"==typeof i||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}(r)}(this,A)});function T(A){var L;return function(x,V){if(!(x instanceof V))throw new TypeError("Cannot call a class as a function")}(this,T),(L=c.call(this,A))._carrierPrefix="x-b3-",L}return i=T,(a=[{key:"inject",value:function(A,L){var x=this;if(L){if("object"==typeof L){var V=A.traceGUID();return 32===V.length&&"0000000000000000"===V.substr(0,16)&&(V=V.substr(16)),L["".concat(this._carrierPrefix,"spanid")]=A._guid,L["".concat(this._carrierPrefix,"traceid")]=V,L["".concat(this._carrierPrefix,"sampled")]=A._sampled?"1":"0",A.forEachBaggageItem(function(D,F){L["".concat(x._baggagePrefix).concat(D)]=F}),L}this._tracer._error("Unexpected '".concat(typeof L,"' FORMAT_TEXT_MAP carrier in call to inject"))}else this._tracer._error("Unexpected null carrier in call to inject")}}])&&function P(r,i){for(var a=0;a<i.length;a++){var h=i[a];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),T}(((_=m(683))&&_.__esModule?_:{default:_}).default);p.default=y,l.exports=p.default},976:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _=O(m(31)),P=O(m(970)),v=O(m(683));function O(r){return r&&r.__esModule?r:{default:r}}var y=function(){function r(h){(function(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")})(this,r),this._tracer=h,this._baggagePrefix=v.default,this._carrierPrefix="x-datadog-"}var i,a;return i=r,(a=[{key:"inject",value:function(h,g){var c=this;if(g){if("object"==typeof g)return g["".concat(this._carrierPrefix,"parent-id")]=parseInt(h._guid,16).toString(),g["".concat(this._carrierPrefix,"trace-id")]=parseInt(h.traceGUID(),16).toString(),g["".concat(this._carrierPrefix,"sampling-priority")]=h._sampled?"1":"0",h.forEachBaggageItem(function(T,A){g["".concat(c._baggagePrefix).concat(T)]=A}),g;this._tracer._error("Unexpected '".concat(typeof g,"' FORMAT_TEXT_MAP carrier in call to inject"))}else this._tracer._error("Unexpected null carrier in call to inject")}},{key:"extract",value:function(h){var g=this,c=0,T=null,A=null,L=!0;if((0,_.default)(h,function(V,D){if((D=D.toLowerCase()).substr(0,g._carrierPrefix.length)===g._carrierPrefix)switch(D.substr(g._carrierPrefix.length)){case"trace-id":c++,A=parseInt(V,10).toString(16);break;case"parent-id":c++,T=parseInt(V,10).toString(16);break;case"sampling-priority":0===V&&(L=!1);break;default:g._tracer._error("Unrecognized carrier key '".concat(D,"' with recognized prefix. Ignoring."))}}),0===c)return null;if(c<2)return this._tracer._error("Only found a partial SpanContext: ".concat(h)),null;var x=new P.default(T,A,L);return(0,_.default)(h,function(V,D){if((D=D.toLowerCase()).substr(0,g._baggagePrefix.length)===g._baggagePrefix){var F=D.substr(g._baggagePrefix.length);x.setBaggageItem(F,V)}}),x}}])&&function S(r,i){for(var a=0;a<i.length;a++){var h=i[a];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),r}();p.default=y,l.exports=p.default},683:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _=v(m(31)),P=v(m(970));function v(y){return y&&y.__esModule?y:{default:y}}var S=function(){function y(a){(function(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")})(this,y),this._tracer=a,this._carrierPrefix="ot-tracer-",this._baggagePrefix="ot-baggage-"}var r,i;return r=y,(i=[{key:"inject",value:function(a,h){var g=this;if(h){if("object"==typeof h)return h["".concat(this._carrierPrefix,"spanid")]=a._guid,h["".concat(this._carrierPrefix,"traceid")]=a._traceGUID,h["".concat(this._carrierPrefix,"sampled")]="true",a.forEachBaggageItem(function(c,T){h["".concat(g._baggagePrefix).concat(c)]=T}),h;this._tracer._error("Unexpected '".concat(typeof h,"' FORMAT_TEXT_MAP carrier in call to inject"))}else this._tracer._error("Unexpected null carrier in call to inject")}},{key:"extract",value:function(a){var h=this,g=0,c=null,T=null,A=!0;if((0,_.default)(a,function(x,V){if((V=V.toLowerCase()).substr(0,h._carrierPrefix.length)===h._carrierPrefix)switch(V.substr(h._carrierPrefix.length)){case"traceid":g++,T=x;break;case"spanid":g++,c=x;break;case"sampled":switch(x){case 0:case"0":case!1:case"false":A=!1;break;default:A=!0}break;default:h._tracer._error("Unrecognized carrier key '".concat(V,"' with recognized prefix. Ignoring."))}}),0===g)return null;if(g<2)return this._tracer._error("Only found a partial SpanContext: ".concat(a)),null;var L=new P.default(c,T,A);return(0,_.default)(a,function(x,V){if((V=V.toLowerCase()).substr(0,h._baggagePrefix.length)===h._baggagePrefix){var D=V.substr(h._baggagePrefix.length);L.setBaggageItem(D,x)}}),L}}])&&function O(y,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(y,a.key,a)}}(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),y}();p.default=S,l.exports=p.default},676:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _,P=m(295),v=(_=m(31))&&_.__esModule?_:{default:_},O=function(i,a){if(i&&i.__esModule)return i;if(null===i||"object"!=typeof i&&"function"!=typeof i)return{default:i};var h=S(void 0);if(h&&h.has(i))return h.get(i);var g={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in i)if("default"!==T&&Object.prototype.hasOwnProperty.call(i,T)){var A=c?Object.getOwnPropertyDescriptor(i,T):null;A&&(A.get||A.set)?Object.defineProperty(g,T,A):g[T]=i[T]}return g.default=i,h&&h.set(i,g),g}(m(69));function S(i){if("function"!=typeof WeakMap)return null;var a=new WeakMap,h=new WeakMap;return(S=function(g){return g?h:a})(i)}var r=function(){function i(g,c,T,A,L,x,V){(function(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")})(this,i),this._runtime=g,this._oldestMicros=c,this._youngestMicros=T,this._spanRecords=A,this._internalLogs=L,this._counters=x,this._timestampOffsetMicros=V}var a,h;return a=i,(h=[{key:"getSpanRecords",value:function(){return this._spanRecords}},{key:"getInternalLogs",value:function(){return this._internalLogs}},{key:"getCounters",value:function(){return this._counters}},{key:"toThrift",value:function(){var g=this;(0,v.default)(this._spanRecords,function(A){A.runtime_guid=g._runtimeGUID});var c=[];(0,v.default)(this._counters,function(A,L){0!==A&&c.push(new P.crouton_thrift.MetricsSample({name:O.toString(L),double_value:O.toNumber(A)}))});var T=[];return(0,v.default)(this._spanRecords,function(A){T.push(A._toThrift())}),new P.crouton_thrift.ReportRequest({runtime:this._runtime.toThrift(),oldest_micros:this._oldestMicros,youngest_micros:this._youngestMicros,span_records:T,internal_logs:this._internalLogs,internal_metrics:new P.crouton_thrift.Metrics({counts:c}),timestamp_offset_micros:this._timestampOffsetMicros})}}])&&function y(i,a){for(var h=0;h<a.length;h++){var g=a[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(i,g.key,g)}}(a.prototype,h),Object.defineProperty(a,"prototype",{writable:!1}),i}();p.default=r,l.exports=p.default},102:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _,P=m(295),v=(_=m(31))&&_.__esModule?_:{default:_},O=function(i,a){if(i&&i.__esModule)return i;if(null===i||"object"!=typeof i&&"function"!=typeof i)return{default:i};var h=S(void 0);if(h&&h.has(i))return h.get(i);var g={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in i)if("default"!==T&&Object.prototype.hasOwnProperty.call(i,T)){var A=c?Object.getOwnPropertyDescriptor(i,T):null;A&&(A.get||A.set)?Object.defineProperty(g,T,A):g[T]=i[T]}return g.default=i,h&&h.set(i,g),g}(m(69));function S(i){if("function"!=typeof WeakMap)return null;var a=new WeakMap,h=new WeakMap;return(S=function(g){return g?h:a})(i)}var r=function(){function i(g,c,T,A){(function(L,x){if(!(L instanceof x))throw new TypeError("Cannot call a class as a function")})(this,i),this._runtimeGUID=g,this._startMicros=c,this._componentName=T,this._attributes=A}var a,h;return a=i,(h=[{key:"toThrift",value:function(){var g=[];return(0,v.default)(this._attributes,function(c,T){g.push(new P.crouton_thrift.KeyValue({Key:O.toString(T),Value:O.toString(c)}))}),new P.crouton_thrift.Runtime({guid:this._runtimeGUID,start_micros:this._startMicros,group_name:this._componentName,attrs:g})}}])&&function y(i,a){for(var h=0;h<a.length;h++){var g=a[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(i,g.key,g)}}(a.prototype,h),Object.defineProperty(a,"prototype",{writable:!1}),i}();p.default=r,l.exports=p.default},970:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _,P=(_=m(31))&&_.__esModule?_:{default:_},O=function(){function S(i,a,h){(function(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")})(this,S),this._baggage={},this._guid=i,this._sampled=!0,!1===h&&(this._sampled=h),this._upperTraceGUID="0000000000000000",this._traceGUID=a,this._traceGUID&&32===this._traceGUID.length&&(this._upperTraceGUID=a.substr(0,16),this._traceGUID=a.substr(16))}var y,r;return y=S,(r=[{key:"setBaggageItem",value:function(i,a){this._baggage[i]=a}},{key:"getBaggageItem",value:function(i){return this._baggage[i]}},{key:"toTraceId",value:function(){return this._traceGUID}},{key:"toSpanId",value:function(){return this._guid}},{key:"forEachBaggageItem",value:function(i){(0,P.default)(this._baggage,function(a,h){i(h,a)})}},{key:"traceGUID",value:function(){return"".concat(this._upperTraceGUID).concat(this._traceGUID)}}])&&function v(S,y){for(var r=0;r<y.length;r++){var i=y[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(S,i.key,i)}}(y.prototype,r),Object.defineProperty(y,"prototype",{writable:!1}),S}();p.default=O,l.exports=p.default},405:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _=h(m(725)),P=h(m(69)),v=h(m(843)),O=i(m(31)),S=m(295),y=i(m(489)),r=i(m(278));function i(V){return V&&V.__esModule?V:{default:V}}function a(V){if("function"!=typeof WeakMap)return null;var D=new WeakMap,F=new WeakMap;return(a=function(I){return I?F:D})(V)}function h(V,D){if(!D&&V&&V.__esModule)return V;if(null===V||"object"!=typeof V&&"function"!=typeof V)return{default:V};var F=a(D);if(F&&F.has(V))return F.get(V);var I={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in V)if("default"!==R&&Object.prototype.hasOwnProperty.call(V,R)){var G=k?Object.getOwnPropertyDescriptor(V,R):null;G&&(G.get||G.set)?Object.defineProperty(I,R,G):I[R]=V[R]}return I.default=V,F&&F.set(V,I),I}function g(V,D,F){return D in V?Object.defineProperty(V,D,{value:F,enumerable:!0,configurable:!0,writable:!0}):V[D]=F,V}function T(V,D){return(T=Object.setPrototypeOf||function(F,I){return F.__proto__=I,F})(V,D)}function L(V){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)})(V)}var x=function(V){!function(Y,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function");Y.prototype=Object.create(K&&K.prototype,{constructor:{value:Y,writable:!0,configurable:!0}}),Object.defineProperty(Y,"prototype",{writable:!1}),K&&T(Y,K)}(G,V);var D,F,I,k,R=(I=G,k=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Y,K=L(I);if(k){var $=L(this).constructor;Y=Reflect.construct(K,arguments,$)}else Y=K.apply(this,arguments);return function A(V,D){if(D&&("object"==typeof D||"function"==typeof D))return D;if(void 0!==D)throw new TypeError("Derived constructors may only return object or undefined");return function(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(V)}(this,Y)});function G(Y,K,$){var ee;return function(J,z){if(!(J instanceof z))throw new TypeError("Cannot call a class as a function")}(this,G),ee=R.call(this),console.assert("object"==typeof Y,"Invalid runtime"),ee._tracerImp=Y,ee._ctx=$,ee._ended=!1,ee._operationName=K,ee._tags={},ee._beginMicros=Y._platform.nowMicros(),ee._endMicros=0,ee._errorFlag=!1,ee._log_records=null,ee}return D=G,(F=[{key:"_tracer",value:function(){return this._tracerImp}},{key:"_context",value:function(){return this._ctx}},{key:"_setOperationName",value:function(Y){this._operationName="".concat(Y)}},{key:"_setBaggageItem",value:function(Y,K){this._ctx.setBaggageItem(Y,K)}},{key:"_getBaggageItem",value:function(Y){return this._ctx.getBaggageItem(Y)}},{key:"_addTags",value:function(Y){var K=this;(0,O.default)(Y,function($,ee){K._tags[ee]=$})}},{key:"_log",value:function(Y,K){var $=this;if("object"==typeof Y){var ee=K?1e3*K:$._tracerImp._platform.nowMicros(),J=new y.default($._tracerImp.getLogFieldKeyHardLimit(),$._tracerImp.getLogFieldValueHardLimit(),ee,Y);$._log_records=$._log_records||[],$._log_records.push(J),$._tracerImp.emit("log_added",J)}else $._tracerImp._error("Span.log() expects an object as its first argument")}},{key:"_finish",value:function(Y){return this.end(Y)}},{key:"getOperationName",value:function(){return this._operationName}},{key:"guid",value:function(){return this._ctx._guid}},{key:"traceGUID",value:function(){return this._ctx._traceGUID}},{key:"parentGUID",value:function(){return this._tags.parent_span_guid}},{key:"setParentGUID",value:function(Y){return this._tags.parent_span_guid=P.toString(Y),this}},{key:"beginMicros",value:function(){return this._beginMicros}},{key:"setBeginMicros",value:function(Y){return this._beginMicros=Y,this}},{key:"endMicros",value:function(){return this._endMicros}},{key:"setEndMicros",value:function(Y){return this._endMicros=Y,this}},{key:"generateTraceURL",value:function(){var Y;Y=this._beginMicros>0&&this._endMicros>0?Math.floor((this._beginMicros+this._endMicros)/2):this._tracerImp._platform.nowMicros();var K=v.LIGHTSTEP_APP_URL_PREFIX,$=encodeURIComponent(this._tracerImp.options().access_token),ee=encodeURIComponent(this.guid());return"".concat(K,"/").concat($,"/trace?span_guid=").concat(ee,"&at_micros=").concat(Y)}},{key:"getTags",value:function(){return this._tags}},{key:"end",value:function(Y){var K;this._ended||(this._ended=!0,void 0!==Y&&this.setEndMicros(Math.floor(1e3*Y)),0===this._endMicros&&this.setEndMicros(this._tracerImp._platform.nowMicros()),r.default.shouldSendMetaSpan(this._tracer().options(),this.getTags())&&this._tracerImp.startSpan(v.LS_META_SP_FINISH,{tags:(K={},g(K,v.LS_META_EVENT_KEY,!0),g(K,v.LS_META_TRACE_KEY,this.traceGUID()),g(K,v.LS_META_SPAN_KEY,this.guid()),K)}).finish(),this._tracerImp._addSpanRecord(this))}},{key:"_toThrift",value:function(){var Y=this,K=[];(0,O.default)(this._tags,function(ee,J){K.push(new S.crouton_thrift.KeyValue({Key:P.toString(J),Value:P.toString(ee)}))});var $=[];return(0,O.default)(this._log_records,function(ee){var J=ee.toThrift();Y._tracerImp._counters["logs.keys.over_limit"]+=ee.getNumKeysOverLimit(),Y._tracerImp._counters["logs.values.over_limit"]+=ee.getNumValuesOverLimit(),$.push(J)}),new S.crouton_thrift.SpanRecord({span_guid:this.guid(),trace_guid:this.traceGUID(),runtime_guid:this._tracerImp.guid(),span_name:this._operationName,oldest_micros:this._beginMicros,youngest_micros:this._endMicros,attributes:K,error_flag:this._errorFlag,log_records:$})}}])&&function c(V,D){for(var F=0;F<D.length;F++){var I=D[F];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(V,I.key,I)}}(D.prototype,F),Object.defineProperty(D,"prototype",{writable:!1}),G}(_.Span);p.default=x,l.exports=p.default},90:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var _=T(m(729)),P=function(X,re){if(X&&X.__esModule)return X;if(null===X||"object"!=typeof X&&"function"!=typeof X)return{default:X};var ge=c(void 0);if(ge&&ge.has(X))return ge.get(X);var oe={},xe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ue in X)if("default"!==ue&&Object.prototype.hasOwnProperty.call(X,ue)){var N=xe?Object.getOwnPropertyDescriptor(X,ue):null;N&&(N.get||N.set)?Object.defineProperty(oe,ue,N):oe[ue]=X[ue]}return oe.default=X,ge&&ge.set(X,oe),oe}(m(725)),v=T(m(970)),O=T(m(405)),S=T(m(31)),y=m(295),r=T(m(261)),i=T(m(102)),a=T(m(676)),h=T(m(938)),g=T(m(683));function c(X){if("function"!=typeof WeakMap)return null;var re=new WeakMap,ge=new WeakMap;return(c=function(oe){return oe?ge:re})(X)}function T(X){return X&&X.__esModule?X:{default:X}}function A(X,re){var ge=Object.keys(X);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(X);re&&(oe=oe.filter(function(xe){return Object.getOwnPropertyDescriptor(X,xe).enumerable})),ge.push.apply(ge,oe)}return ge}function L(X){for(var re=1;re<arguments.length;re++){var ge=null!=arguments[re]?arguments[re]:{};re%2?A(Object(ge),!0).forEach(function(oe){x(X,oe,ge[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(ge)):A(Object(ge)).forEach(function(oe){Object.defineProperty(X,oe,Object.getOwnPropertyDescriptor(ge,oe))})}return X}function x(X,re,ge){return re in X?Object.defineProperty(X,re,{value:ge,enumerable:!0,configurable:!0,writable:!0}):X[re]=ge,X}function D(X,re){return(D=Object.setPrototypeOf||function(ge,oe){return ge.__proto__=oe,ge})(X,re)}function I(X){if(void 0===X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function k(X){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(re){return re.__proto__||Object.getPrototypeOf(re)})(X)}var R=m(344),G=m(618),Y=m(69),K=m(843),$=m(34),ee=m(147),J=m(278),z=null,te=function(X){!function(se,ce){if("function"!=typeof ce&&null!==ce)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(ce&&ce.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),ce&&D(se,ce)}(N,X);var re,ge,oe,xe,ue=(oe=N,xe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var se,ce=k(oe);if(xe){var Z=k(this).constructor;se=Reflect.construct(ce,arguments,Z)}else se=ce.apply(this,arguments);return function F(X,re){if(re&&("object"==typeof re||"function"==typeof re))return re;if(void 0!==re)throw new TypeError("Derived constructors may only return object or undefined");return I(X)}(this,se)});function N(se){var ce;(function(ae,pe){if(!(ae instanceof pe))throw new TypeError("Cannot call a class as a function")})(this,N),(ce=ue.call(this))._delegateEventEmitterMethods(),se=se||{},z||($.setOptions(se),z=I(ce)),ce._platform=new y.Platform(I(ce)),ce._runtimeGUID=se.guid||ce.override_runtime_guid||null,ce._plugins={},ce._options={},ce._optionDescs=[],ce._makeOptionsTable(),ce._opentracing=P,se.opentracing_module&&(ce._opentracing=se.opentracing_module);var Z=ce._platform.nowMicros();ce._startMicros=Z,ce._auth=null,ce._runtime=null;var de={warn:function(ae,pe){ce._warn(ae,pe)},error:function(ae,pe){ce._error(ae,pe)}};return se&&(ce._transport=se.override_transport),ce._propagators={},ce._propagators[ce._opentracing.FORMAT_HTTP_HEADERS]=new g.default(I(ce)),ce._propagators[ce._opentracing.FORMAT_TEXT_MAP]=new g.default(I(ce)),ce._propagators[ce._opentracing.FORMAT_BINARY]=new h.default(I(ce),ce._opentracing.FORMAT_BINARY),se&&se.propagators&&(ce._propagators=L(L({},ce._propagators),se.propagators)),ce._reportingLoopActive=!1,ce._first_report_has_run=!1,ce._reportYoungestMicros=Z,ce._reportTimer=null,ce._reportErrorStreak=0,ce._lastVisibleErrorMillis=0,ce._skippedVisibleErrors=0,ce._activeRootSpanSet={},ce._activeRootSpan=null,ce._spanRecords=[],ce._counters={"internal.errors":0,"internal.warnings":0,"spans.dropped":0,"logs.dropped":0,"logs.keys.over_limit":0,"logs.values.over_limit":0,"reports.errors.send":0},ce._internalLogs=[],ce._flushIsActive=!1,ce.addPlugin(m(981)),ce.addPlatformPlugins(se),ce.setPlatformOptions(se),se&&ce.options(se),null!=ce._transport||(ce._transport=new y.ThriftTransport(de),ce._info("Using thrift transport per user-defined option.")),ce._useClockState=!ce._options.disable_clock_skew_correction,ce._clockState=new R({nowMicros:function(){return ce._platform.nowMicros()},localStoreGet:function(){var ae="clock_state/".concat(ce._options.collector_host);return ce._platform.localStoreGet(ae)},localStoreSet:function(ae){var pe="clock_state/".concat(ce._options.collector_host);return ce._platform.localStoreSet(pe,ae)}}),ce._setupReportOnExit(),ce._info("Tracer created with guid ".concat(ce._runtimeGUID)),0===ce._options.access_token.length&&ce._warn("Access token not set -\n this requires a satellite with access token checking disabled,\n such as a developer satellite."),ce.startPlugins(),ce}return re=N,ge=[{key:"_delegateEventEmitterMethods",value:function(){var se=this;this._ee=new _.default,(0,S.default)(["addListener","emit","eventNames","getMaxListeners","listenerCount","listeners","on","once","prependListener","prependOnceListener","removeAllListeners","removeListener","setMaxListeners"],function(ce){se[ce]=function(){se._ee[ce]&&se._ee[ce].apply(se._ee,arguments)}})}},{key:"_makeOptionsTable",value:function(){this.addOption("verbosity",{type:"int",min:0,max:9,defaultValue:1}),this.addOption("access_token",{type:"string",defaultValue:""}),this.addOption("component_name",{type:"string",defaultValue:""}),this.addOption("collector_host",{type:"string",defaultValue:"collector.lightstep.com"}),this.addOption("collector_port",{type:"int",defaultValue:443}),this.addOption("collector_path",{type:"string",defaultValue:""}),this.addOption("collector_encryption",{type:"string",defaultValue:"tls"}),this.addOption("tags",{type:"any",defaultValue:{}}),this.addOption("max_reporting_interval_millis",{type:"int",defaultValue:2500}),this.addOption("disable_clock_skew_correction",{type:"bool",defaultValue:!1}),this.addOption("transport",{type:"string",defaultValue:"thrift"}),this.addOption("disabled",{type:"bool",defaultValue:!1}),this.addOption("max_span_records",{type:"int",defaultValue:4096}),this.addOption("default_span_tags",{type:"any",defaultValue:{}}),this.addOption("report_timeout_millis",{type:"int",defaultValue:3e4}),this.addOption("gzip_json_requests",{type:"bool",defaultValue:!0}),this.addOption("disable_reporting_loop",{type:"bool",defaultValue:!1}),this.addOption("disable_report_on_exit",{type:"bool",defaultValue:!1}),this.addOption("delay_initial_report_millis",{type:"int",defaultValue:1e3}),this.addOption("error_throttle_millis",{type:"int",defaultValue:6e4}),this.addOption("logger",{type:"function",defaultValue:this._printToConsole.bind(this)}),this.addOption("clear_span_buffer_consecutive_errors",{type:"int",defaultValue:null}),this.addOption("certificate_verification",{type:"bool",defaultValue:!0}),this.addOption("override_transport",{type:"any",defaultValue:null}),this.addOption("silent",{type:"bool",defaultValue:!1}),this.addOption("log_field_key_hard_limit",{type:"int",defaultValue:256}),this.addOption("log_field_value_hard_limit",{type:"int",defaultValue:1024}),this.addOption("disable_meta_event_reporting",{type:"bool",defaultValue:!1})}},{key:"_startSpan",value:function(se,ce){var Z=this,de=null;if((ce=ce||{}).references)for(var ae=0;ae<ce.references.length;ae++){var pe=ce.references[ae],_e=pe.type();if(_e===this._opentracing.REFERENCE_CHILD_OF||_e===this._opentracing.REFERENCE_FOLLOWS_FROM){var ke=pe.referencedContext();if(!ke){this._error("Span reference has an invalid context",ke);continue}de=ke;break}}var De,Me=de?de.traceGUID():this.generateTraceGUIDForRootSpan(),je=!de||de._sampled,$e=new v.default(this._platform.generateUUID(),Me,je),Oe=new O.default(this,se,$e);return Oe.addTags(this._options.default_span_tags),(0,S.default)(ce,function(gt,qt){switch(qt){case"references":break;case"startTime":Oe.setBeginMicros(Math.floor(1e3*gt));break;case"tags":Oe.addTags(gt);break;default:Z._warn("Ignoring unknown field '".concat(qt,"'"))}}),null!==de&&(Oe.setParentGUID(de._guid),de.forEachBaggageItem(function(gt,qt){return $e.setBaggageItem(gt,qt)})),this.emit("start_span",Oe),J.shouldSendMetaSpan(this.options(),Oe.getTags())&&this.startSpan(K.LS_META_SP_START,{tags:(De={},x(De,K.LS_META_EVENT_KEY,!0),x(De,K.LS_META_TRACE_KEY,Oe.traceGUID()),x(De,K.LS_META_SPAN_KEY,Oe.guid()),De)}).finish(),Oe}},{key:"_inject",value:function(se,ce,Z){var de;switch(!0===this.options().meta_event_reporting&&this.startSpan(K.LS_META_INJECT,{tags:(de={},x(de,K.LS_META_EVENT_KEY,!0),x(de,K.LS_META_TRACE_KEY,se._traceGUID),x(de,K.LS_META_SPAN_KEY,se._guid),x(de,K.LS_META_PROPAGATION_KEY,ce),de)}).finish(),ce){case this._opentracing.FORMAT_HTTP_HEADERS:this._propagators[this._opentracing.FORMAT_HTTP_HEADERS].inject(se,Z);break;case this._opentracing.FORMAT_TEXT_MAP:this._propagators[this._opentracing.FORMAT_TEXT_MAP].inject(se,Z);break;case this._opentracing.FORMAT_BINARY:this._propagators[this._opentracing.FORMAT_BINARY].inject(se,Z);break;default:this._error("Unknown format: ".concat(ce))}}},{key:"_extract",value:function(se,ce){var Z,de=null;switch(se){case this._opentracing.FORMAT_HTTP_HEADERS:de=this._propagators[this._opentracing.FORMAT_HTTP_HEADERS].extract(ce);break;case this._opentracing.FORMAT_TEXT_MAP:de=this._propagators[this._opentracing.FORMAT_TEXT_MAP].extract(ce);break;case this._opentracing.FORMAT_BINARY:de=this._propagators[this._opentracing.FORMAT_BINARY].extract(ce);break;default:return this._error("Unsupported format: ".concat(se)),null}return!0===this.options().meta_event_reporting&&de&&this.startSpan(K.LS_META_EXTRACT,{tags:(Z={},x(Z,K.LS_META_EVENT_KEY,!0),x(Z,K.LS_META_TRACE_KEY,de._traceGUID),x(Z,K.LS_META_SPAN_KEY,de._guid),x(Z,K.LS_META_PROPAGATION_KEY,se),Z)}).finish(),de}},{key:"flush",value:function(se){if(se||(se=function(){}),this._options.disabled)return this._warn("Manual flush() called in disabled state."),se(null);this._flushReport(!0,!1,se)}},{key:"guid",value:function(){return this._runtimeGUID}},{key:"verbosity",value:function(){var se=this._options.verbosity;return void 0===se?1:se}},{key:"generateTraceGUIDForRootSpan",value:function(){var se=this._platform.generateUUID();return this._activeRootSpan&&(se=this._activeRootSpan.traceGUID()),se}},{key:"setPlatformOptions",value:function(se){var ce=this._platform.options(this)||{};(0,S.default)(se,function(Z,de){ce[de]=Z}),this.options(ce)}},{key:"addOption",value:function(se,ce){ce.name=se,this._optionDescs.push(ce),this._options[ce.name]=ce.defaultValue}},{key:"options",value:function(se){var ce=this;if(0===arguments.length)return console.assert("object"==typeof this._options,"Internal error: _options field incorrect"),this._options;if("object"!=typeof se)throw new Error("options() must be called with an object: type was ".concat(typeof se));0===se.collector_port&&delete se.collector_port,void 0!==se.collector_encryption&&void 0===se.collector_port&&(se.collector_port="none"!==se.collector_encryption?443:80),this.meta_event_reporting=!1;var Z={},de={};if((0,S.default)(this._optionDescs,function(_e){ce._setOptionInternal(Z,de,se,_e)}),Object.keys(se).forEach(function(_e){void 0===Z[_e]&&void 0===de[_e]&&ce._warn("Invalid option ".concat(_e," with value ").concat(se[_e]))}),this._initReportingDataIfNeeded(Z),this._reportingLoopActive||this._startReportingLoop(),this.verbosity()>=3){var ae="",pe=0;(0,S.default)(Z,function(_e,ke){ae+="\t".concat(JSON.stringify(ke),": ").concat(JSON.stringify(_e.newValue),"\n"),pe++}),pe>0&&this._debug("Options modified:\n".concat(ae))}this.emit("options",Z,this._options,this)}},{key:"_setOptionInternal",value:function(se,ce,Z,de){var ae=de.name,pe=Z[ae],_e=typeof pe;if(void 0!==pe){switch(de.type){case"any":break;case"bool":if(!0!==pe&&!1!==pe)return void this._error("Invalid boolean option '".concat(ae,"' '").concat(pe,"'"));break;case"function":if("function"!=typeof pe)return void this._error("Invalid function option '".concat(ae,"' '").concat(pe,"'"));break;case"int":if("number"!==_e||Math.floor(pe)!==pe)return void this._error("Invalid int option '".concat(ae,"' '").concat(pe,"'"));if(void 0!==de.min&&void 0!==de.max&&!(pe>=de.min&&pe<=de.max))return void this._error("Option '".concat(ae,"' out of range '").concat(pe,"' is not between ").concat(de.min," and ").concat(de.max));break;case"string":switch(_e){case"string":break;case"number":pe=Y.toString(pe);break;default:return void this._error("Invalid string option ".concat(ae," ").concat(pe))}break;case"array":if("[object Array]"!==Object.prototype.toString.call(pe))return void this._error("Invalid type for array option ".concat(ae,": found '").concat(_e,"'"));break;default:return void this._error("Unknown option type '".concat(de.type,"'"))}var ke=this._options[ae];if(void 0===ke)throw new Error("Attempt to set unknown option ".concat(ae));"object"===_e||ke!==pe?(se[ae]={oldValue:ke,newValue:pe},this._options[ae]=pe):ce[ae]=!0}}},{key:"_initReportingDataIfNeeded",value:function(se){var ce=this;if(null===this._auth){this._runtimeGUID=this._platform.runtimeGUID(this._options.component_name),this._auth=new r.default(this._options.access_token);var Z={};(0,S.default)(this._options.tags,function(ae,pe){"string"==typeof ae?Z[pe]=ae:ce._error("Tracer tag value is not a string: key=".concat(pe))}),Z["lightstep.tracer_version"]=ee.version;var de=this._platform.tracerTags();(0,S.default)(de,function(ae,pe){Z[pe]=ae}),this._runtime=new i.default(this._runtimeGUID,this._startMicros,this._options.component_name,Z),this._info("Initializing reporting data",{component_name:this._options.component_name,access_token:this._auth.getAccessToken()}),this.emit("reporting_initialized")}else{if(!this._runtime)return this._error("Inconsistent state: auth initialized without runtime.");if(se.access_token)throw new Error("Cannot change access_token after it has been set.");if(se.component_name)throw new Error("Cannot change component_name after it has been set.");if(se.collector_host)throw new Error("Cannot change collector_host after the connection is established");if(se.collector_port)throw new Error("Cannot change collector_port after the connection is established");if(se.collector_path)throw new Error("Cannot change collector_path after the connection is established");if(se.collector_encryption)throw new Error("Cannot change collector_encryption after the connection is established")}}},{key:"getLogFieldKeyHardLimit",value:function(){return this._options.log_field_key_hard_limit}},{key:"getLogFieldValueHardLimit",value:function(){return this._options.log_field_value_hard_limit}},{key:"addPlatformPlugins",value:function(se){var ce=this,Z=this._platform.plugins(se);(0,S.default)(Z,function(de){ce.addPlugin(de)})}},{key:"addPlugin",value:function(se){var ce=se.name();this._plugins[ce]||(this._plugins[ce]=se,se.addOptions(this))}},{key:"startPlugins",value:function(){var se=this;(0,S.default)(this._plugins,function(ce,Z){se._plugins[Z].start(se)})}},{key:"addActiveRootSpan",value:function(se){this._activeRootSpanSet[se._guid]=se,this._setActiveRootSpanToYoungest()}},{key:"removeActiveRootSpan",value:function(se){delete this._activeRootSpanSet[se._guid],this._setActiveRootSpanToYoungest()}},{key:"_setActiveRootSpanToYoungest",value:function(){var se=this;this._activeRootSpan=null,(0,S.default)(this._activeRootSpanSet,function(ce){(!se._activeRootSpan||ce._beginMicros>se._activeRootSpan._beginMicros)&&(se._activeRootSpan=ce)})}},{key:"_objectToUint8Array",value:function(se){var ce;try{ce=encodeURIComponent(JSON.stringify(se))}catch{return this._error("Could not binary encode carrier data."),null}for(var Z=new ArrayBuffer(ce.length),de=new Uint8Array(Z),ae=0;ae<ce.length;ae++){var pe=ce.charCodeAt(ae);if(!(pe>=0&&pe<=255))return this._error("Unexpected character code"),null;de[ae]=pe}return de}},{key:"_uint8ArrayToObject",value:function(se){if(!se)return this._error("Array is null"),null;for(var ce="",Z=0;Z<se.length;Z++)ce+=String.fromCharCode(se[Z]);try{return JSON.parse(decodeURIComponent(ce))}catch{return this._error("Could not decode binary data."),null}}},{key:"log",value:function(){return new G(this)}},{key:"_clearBuffers",value:function(){this._spanRecords=[],this._internalLogs=[];var se={};(0,S.default)(this._counters,function(ce,Z){se[Z]=0}),this._counters=se}},{key:"_buffersAreEmpty",value:function(){if(this._spanRecords.length>0||this._internalLogs.length>0)return!1;var se=!0;return(0,S.default)(this._counters,function(ce){ce>0&&(se=!1)}),se}},{key:"_addSpanRecord",value:function(se){this._internalAddSpanRecord(se),this.emit("span_added",se)}},{key:"_internalAddSpanRecord",value:function(se){if(se)if(this._spanRecords.length>=this._options.max_span_records){var ce=Math.floor(this._spanRecords.length*Math.random());this._spanRecords[ce]=se,this._counters["spans.dropped"]++}else this._spanRecords.push(se);else this._error("Attempt to add null record to buffer")}},{key:"_restoreRecords",value:function(se,ce,Z){var de=this;(0,S.default)(se,function(_e){de._internalAddSpanRecord(_e)});var ae=this._internalLogs;this._internalLogs=[];var pe=ce.concat(ae);(0,S.default)(pe,function(_e){de._pushInternalLog(_e)}),(0,S.default)(Z,function(_e,ke){ke in de._counters?de._counters[ke]+=_e:de._error("Bad counter name: ".concat(ke))})}},{key:"_clearSpanRecordsIfMaxErrors",value:function(){var se=this.options().clear_span_buffer_consecutive_errors;if(!(null===se||this._reportErrorStreak<se)){var ce=this._spanRecords.length;this._counters["spans.dropped"]+=ce,this._spanRecords=[],this._warn("Span buffer flushed, max consecutive errors reached",{max_consecutive_errors:se,spans_dropped:ce})}}},{key:"_setupReportOnExit",value:function(){var se=this;if(this._options.disable_report_on_exit)this._debug("report-on-exit is disabled.");else{var ce=0;this._platform.onBeforeExit(function(){ce++>0||(se._info("Final flush before exit."),se._flushReport(!1,!0,function(Z){Z&&se._warn("Final report before exit failed",{error:Z,unflushed_spans:se._spanRecords.length,buffer_youngest_micros:se._reportYoungestMicros})}))})}}},{key:"_startReportingLoop",value:function(){var se=this;if(this._options.disabled)this._info("Not starting reporting loop: instrumentation is disabled.");else if(this._options.disable_reporting_loop)this._info("Not starting reporting loop: reporting loop is disabled.");else if(null!==this._auth)if(this._reportingLoopActive)this._info("Reporting loop already started!");else{this._info("Starting reporting loop:",this._runtime),this._reportingLoopActive=!0;var ce=0;this._platform.onBeforeExit(function(){ce++>0||se._stopReportingLoop()});var Z=function(){se._enqueueNextReport(function(ae){se._reportingLoopActive&&Z()})},de=Math.floor(Math.random()*this._options.delay_initial_report_millis);J.detachedTimeout(function(){Z()},de)}}},{key:"_stopReportingLoop",value:function(){this._debug("Stopping reporting loop"),this._reportingLoopActive=!1,clearTimeout(this._reportTimer),this._reportTimer=null}},{key:"_enqueueNextReport",value:function(se){var ce=this;if(!this._reportTimer){var Z=this._options.max_reporting_interval_millis;0===this._reportErrorStreak&&this._useClockState&&!this._clockState.isReady()&&(Z=Math.min(K.CLOCK_STATE_REFRESH_INTERVAL_MS,Z));var de=(1+Math.min(7,Math.max(0,this._reportErrorStreak)))*Z,ae=.5*Math.random()-.25+1,pe=Math.floor(Math.max(0,ae*de));this._debug("Delaying next flush for ".concat(pe,"ms")),this._reportTimer=J.detachedTimeout(function(){ce._reportTimer=null,ce._flushReport(!1,!1,se)},pe)}}},{key:"_flushReport",value:function(se,ce,Z){var de=this;Z=Z||function(qt){};var ae=this._clockState.isReady(),pe=this._clockState.offsetMicros();this._debug("time correction state",{offset_micros:pe,active_samples:this._clockState.activeSampleCount(),ready:ae});var _e=this._spanRecords,ke=this._counters,De=this._internalLogs;if(!this._useClockState||se||ae||ce){if(this._buffersAreEmpty())return this._debug("Skipping empty report"),Z(null);this._clearBuffers(),this._debug("Flushing report (".concat(_e.length," spans)"))}else this._debug("Flushing empty report to prime clock state"),_e=[],ke={},De=[];this._transport.ensureConnection(this._options),console.assert(null!==this._runtimeGUID,"No runtime GUID for Tracer");var Me=this._useClockState?pe:0,je=this._platform.nowMicros(),$e=new a.default(this._runtime,this._reportYoungestMicros,je,_e,De,ke,Me);this.emit("prereport",$e);var Oe,gt=this._platform.nowMicros();this._options.meta_event_reporting&&!this._first_report_has_run&&(this._first_report_has_run=!0,this.startSpan(K.LS_META_TRACER_CREATE,{tags:(Oe={},x(Oe,K.LS_META_EVENT_KEY,!0),x(Oe,K.LS_META_TRACER_GUID_KEY,this._runtimeGUID),Oe)}).finish()),this._transport.report(ce,this._auth,$e,function(qt,ye){var Re,Ze=de._platform.nowMicros(),et=(je-$e.oldest_micros)/1e6;return qt?(de._reportErrorStreak++,Re="".concat(qt.message?qt.message:qt),de._warn("Error in report: ".concat(Re),{last_report_seconds_ago:et}),de._restoreRecords($e.getSpanRecords(),$e.getInternalLogs(),$e.getCounters()),de._counters["reports.errors.send"]++,de._clearSpanRecordsIfMaxErrors(),de.emit("report_error",qt,{error:qt,streak:de._reportErrorStreak,detached:ce})):(de.verbosity()>=4&&de._debug("Report flushed for last ".concat(et," seconds"),{spans_reported:$e.getSpanRecords().length}),de._reportErrorStreak=0,de._reportYoungestMicros=je,ye?(ye.timing&&ye.timing.receive_micros&&ye.timing.transmit_micros?de._clockState.addSample(gt,ye.timing.receive_micros,ye.timing.transmit_micros,Ze):ye.receiveTimestamp&&ye.transmitTimestamp?de._clockState.addSample(gt,1e6*ye.receiveTimestamp.seconds+ye.receiveTimestamp.nanos/1e3,1e6*ye.transmitTimestamp.seconds+ye.transmitTimestamp.nanos/1e3,Ze):de._useClockState=!1,ye.errors&&ye.errors.length>0?de._warn("Errors in report",ye.errors):ye.errorsList&&ye.errorsList.length>0&&de._warn("Errors in report",ye.errorsList),ye.commandsList&&ye.commandsList.length>0&&ye.commandsList[0].devMode&&!0!==de.options().disable_meta_event_reporting&&(de.options().meta_event_reporting=!0)):de._useClockState=!1,de.emit("report",$e,ye)),Z(qt)})}},{key:"stats",value:function(){return{counters:this._counters}}},{key:"_debug",value:function(se,ce){this.verbosity()<4||this._options.logger("debug",se,ce)}},{key:"_info",value:function(se,ce){this.verbosity()<3||this._options.logger("info",se,ce)}},{key:"_warn",value:function(se,ce){this._counters["internal.warnings"]++,this.verbosity()<3||this._options.logger("warn",se,ce)}},{key:"_error",value:function(se,ce){this._counters["internal.errors"]++;var Z=this.log().level(K.LOG_ERROR).message(se).payload(ce).record();this._pushInternalLog(Z);var de=this.verbosity();if(0!==de){var ae=Date.now();if(1===de){if(ae<this._lastVisibleErrorMillis+this._options.error_throttle_millis)return void this._skippedVisibleErrors++;if(this._skippedVisibleErrors>0){var pe="".concat(this._skippedVisibleErrors," errors masked since last logged error. Increase 'verbosity' option to see all errors.");this._options.logger("error",pe,ce)}}this._options.logger("error",se,ce),this._lastVisibleErrorMillis=ae,this._skippedVisibleErrors=0}}},{key:"_printToConsole",value:function(se,ce,Z){var de="log",ae="[LightStep:INFO] ".concat(ce);"debug"===se?(de="log",ae="[LightStep:DEBUG] ".concat(ce)):"info"===se?(de="log",ae="[LightStep:INFO] ".concat(ce)):"warn"===se?(de="warn",ae="[LightStep:WARN] ".concat(ce)):"error"===se&&(de="error",ae="[LightStep:ERROR] ".concat(ce)),this._options.silent||(void 0!==Z?console[de](ae,Z):console[de](ae))}},{key:"_pushInternalLog",value:function(se){se&&(this._internalLogs.length>=20?(se.message="MAX_INTERNAL_LOGS limit hit. Last error: ".concat(se.message),this._internalLogs[this._internalLogs.length-1]=se):this._internalLogs.push(se))}}],ge&&function V(X,re){for(var ge=0;ge<re.length;ge++){var oe=re[ge];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(X,oe.key,oe)}}(re.prototype,ge),Object.defineProperty(re,"prototype",{writable:!1}),N}(P.Tracer);p.default=te,l.exports=p.default},344:(l,p,m)=>{"use strict";var _,P=(_=m(31))&&_.__esModule?_:{default:_},O=function(){function S(i){(function(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")})(this,S),this._nowMicros=i.nowMicros,this._localStoreGet=i.localStoreGet,this._localStoreSet=i.localStoreSet,this._samples=[],this._currentOffsetMicros=0,this._currentOffsetAge=8;var a=this._localStoreGet();a&&a.timestamp_micros&&a.timestamp_micros>this._nowMicros()-36e8&&(this._samples=a.samples.slice(-8)),this.update()}var y,r;return y=S,(r=[{key:"addSample",value:function(i,a,h,g){var c=Number.MAX_VALUE,T=0;i>0&&a>0&&h>0&&g>0&&(c=g-i-(h-a),T=(a-i+(h-g))/2),8===this._samples.length&&this._samples.shift(),this._samples.push({delayMicros:c,offsetMicros:T}),this._currentOffsetAge++,this._localStoreSet({timestamp_micros:this._nowMicros(),samples:this._samples}),this.update()}},{key:"update",value:function(){var i=Number.MAX_VALUE,a=0;if((0,P.default)(this._samples,function(g){g.delayMicros<i&&(i=g.delayMicros,a=g.offsetMicros)}),a!==this._currentOffsetMicros){var h=0;(0,P.default)(this._samples,function(g){h+=(a-g.offsetMicros)**2}),h=Math.sqrt(h/this._samples.length),(this._currentOffsetAge>7||Math.abs(this._currentOffsetMicros-a)<3*h)&&(this._currentOffsetMicros=a,this._currentOffsetAge=0)}}},{key:"offsetMicros",value:function(){return Math.floor(this._currentOffsetMicros)}},{key:"isReady",value:function(){return this._samples.length>3}},{key:"activeSampleCount",value:function(){return this._samples.length}}])&&function v(S,y){for(var r=0;r<y.length;r++){var i=y[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(S,i.key,i)}}(y.prototype,r),Object.defineProperty(y,"prototype",{writable:!1}),S}();l.exports=O},278:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var P=m(36),v=new(function(){function O(){!function(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,O)}var S,y;return S=O,(y=[{key:"detachedTimeout",value:function(r,i){var a=setTimeout(r,i);return a.unref&&a.unref(),a}},{key:"shouldSendMetaSpan",value:function(r,i){return!0===r.meta_event_reporting&&!0!==i["lightstep.meta_event"]}},{key:"hexToDec",value:function(r){return"function"!=typeof m.g.BigInt?P.hexToDec(r):m.g.BigInt("0x".concat(r)).toString(10)}}])&&function _(O,S){for(var y=0;y<S.length;y++){var r=S[y];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(O,r.key,r)}}(S.prototype,y),Object.defineProperty(S,"prototype",{writable:!1}),O}());p.default=v,l.exports=p.default},410:(l,p,m)=>{"use strict";var _=r(m(90)),P=r(m(683)),v=r(m(255)),O=r(m(976)),S=r(m(970)),y=m(295);function r(a){return a&&a.__esModule?a:{default:a}}var i={Tracer:_.default,LightStepPropagator:P.default,B3Propagator:v.default,DDPropagator:O.default,SpanContext:S.default};y.Platform.initLibrary(i),l.exports=i},295:(l,p,m)=>{"use strict";l.exports={Platform:m(733),ThriftTransport:m(374),thrift:m(720),crouton_thrift:m(638)}},921:(l,p,m)=>{"use strict";var _,P=(_=m(31))&&_.__esModule?_:{default:_},O=function(){function S(){(function(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")})(this,S),this._inited=!1,this._span=null}var y,r;return y=S,(r=[{key:"name",value:function(){return"instrument_page_load"}},{key:"addOptions",value:function(i){i.addOption("instrument_page_load",{type:"bool",defaultValue:!1})}},{key:"start",value:function(i){this._inited||(this._inited=!0,"object"==typeof window&&"object"==typeof document&&i.options().instrument_page_load&&(this._ensureSpanStarted(i),document.addEventListener("readystatechange",this._handleReadyStateChange.bind(this))))}},{key:"stop",value:function(){}},{key:"_ensureSpanStarted",value:function(i){this._span||(this._span=i.startSpan("document/load"),i.addActiveRootSpan(this._span))}},{key:"_handleReadyStateChange",value:function(){if(this._span){var i,a=this._span,h=document.readyState;"complete"===h&&(i={},window.performance&&performance.timing&&(this._addTimingSpans(a,performance.timing),i["window.performance.timing"]=performance.timing)),a.logEvent("document.readystatechange ".concat(h),i),"complete"===h&&(a.tracer()&&a.tracer().removeActiveRootSpan(a.tracer()),a.finish())}}},{key:"_copyNavigatorProperties",value:function(i){var a={};for(var h in i)try{var g=i[h];switch(h){case"plugins":for(var c=[],T=0;T<g.length;T++){var A=g.item(T);c.push({name:A.name,description:A.description})}a[h]=c;break;case"mimeTypes":for(var L=[],x=0;x<g.length;x++){var V=g.item(x);L.push({type:V.type,description:V.description,suffixes:V.suffixes})}a[h]=L;break;default:a[h]=g}}catch{}return a}},{key:"_addTimingSpans",value:function(i,a){var h=this;i&&(i.setTag("user_agent",navigator.userAgent),(0,P.default)(a,function(g,c){var T;"number"==typeof g&&0!==g&&("navigationStart"===c&&"object"==typeof navigator&&(T={navigator:h._copyNavigatorProperties(navigator)}),i.log({message:"document ".concat(c),payload:T},g))}),i.setBeginMicros(1e3*a.navigationStart),i.tracer().startSpan("document/time_to_first_byte",{childOf:i}).setBeginMicros(1e3*a.requestStart).setEndMicros(1e3*a.responseStart).finish(),i.tracer().startSpan("document/response_transfer",{childOf:i}).setBeginMicros(1e3*a.responseStart).setEndMicros(1e3*a.responseEnd).finish(),i.tracer().startSpan("document/dom_load",{childOf:i}).setBeginMicros(1e3*a.domLoading).setEndMicros(1e3*a.domInteractive).finish())}}])&&function v(S,y){for(var r=0;r<y.length;r++){var i=y[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(S,i.key,i)}}(y.prototype,r),Object.defineProperty(y,"prototype",{writable:!1}),S}();l.exports=new O},49:(l,p,m)=>{"use strict";var _,P=function(a,h){if(a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var g=v(void 0);if(g&&g.has(a))return g.get(a);var c={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in a)if("default"!==A&&Object.prototype.hasOwnProperty.call(a,A)){var L=T?Object.getOwnPropertyDescriptor(a,A):null;L&&(L.get||L.set)?Object.defineProperty(c,A,L):c[A]=a[A]}return c.default=a,g&&g.set(a,c),c}(m(725));function v(a){if("function"!=typeof WeakMap)return null;var h=new WeakMap,g=new WeakMap;return(v=function(c){return c?g:h})(a)}function S(a,h){return function(g){if(Array.isArray(g))return g}(a)||function(g,c){var T=null==g?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(null!=T){var A,L,x=[],V=!0,D=!1;try{for(T=T.call(g);!(V=(A=T.next()).done)&&(x.push(A.value),!c||x.length!==c);V=!0);}catch(F){D=!0,L=F}finally{try{V||null==T.return||T.return()}finally{if(D)throw L}}return x}}(a,h)||function(g,c){if(g){if("string"==typeof g)return y(g,c);var T=Object.prototype.toString.call(g).slice(8,-1);return"Object"===T&&g.constructor&&(T=g.constructor.name),"Map"===T||"Set"===T?Array.from(g):"Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?y(g,c):void 0}}(a,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(a,h){(null==h||h>a.length)&&(h=a.length);for(var g=0,c=new Array(h);g<h;g++)c[g]=a[g];return c}function r(a){for(var h={},g=a.headers.entries(),c=0;c<g.length;c++){var T=S(g[c],2);h[T[0]]=T[1]}return h}"object"==typeof window&&void 0!==window.fetch&&(_=window.fetch);var i=function(){function a(){(function(c,T){if(!(c instanceof T))throw new TypeError("Cannot call a class as a function")})(this,a),this._enabled=this._isValidContext(),this._proxyInited=!1,this._internalExclusions=[],this._tracer=null,this._handleOptions=this._handleOptions.bind(this)}var h,g;return h=a,(g=[{key:"name",value:function(){return"instrument_fetch"}},{key:"addOptions",value:function(c){c.addOption("fetch_instrumentation",{type:"bool",defaultValue:!1}),c.addOption("fetch_url_inclusion_patterns",{type:"array",defaultValue:[/.*/]}),c.addOption("fetch_url_exclusion_patterns",{type:"array",defaultValue:[]}),c.addOption("fetch_url_header_inclusion_patterns",{type:"array",defaultValue:[/.*/]}),c.addOption("fetch_url_header_exclusion_patterns",{type:"array",defaultValue:[]}),c.addOption("include_cookies",{type:"bool",defaultValue:!0})}},{key:"start",value:function(c){if(this._enabled){this._tracer=c;var T=c.options();this._addServiceHostToExclusions(T),this._handleOptions({},T),c.on("options",this._handleOptions)}}},{key:"stop",value:function(){this._enabled&&(window.fetch=_)}},{key:"_handleOptions",value:function(c,T){c.collector_host&&this._addServiceHostToExclusions(T),!this._proxyInited&&T.fetch_instrumentation&&(this._proxyInited=!0,window.fetch=this._instrumentFetch())}},{key:"_addServiceHostToExclusions",value:function(c){if(0!==c.collector_host.length){var T=x(c.collector_host),A=x(c.collector_port),L=[new RegExp("^https?://".concat(T,":").concat(A))];"80"===A?L.push(new RegExp("^http://".concat(T))):"443"===A&&L.push(new RegExp("^https://".concat(T))),this._internalExclusions=L}function x(V){return"".concat(V).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}},{key:"_isValidContext",value:function(){return typeof window<"u"&&!!window.fetch}},{key:"_instrumentFetch",value:function(){var c=this,T=this._tracer;return function(A,L){var x=new Request(A,L),V=T.options();if(!c._shouldTrace(T,x.url))return _(x);var D=T.startSpan("fetch");T.addActiveRootSpan(D);var F=new URL(x.url),I={method:x.method,url:x.url,hash:F.hash,href:F.href,protocol:F.protocol,origin:F.origin,host:F.host,hostname:F.hostname,port:F.port,pathname:F.pathname,search:F.search};if(V.include_cookies&&(I.cookies=function(){if(typeof document>"u"||!document.cookie)return null;for(var R=document.cookie.split(";"),G={},Y=0,K=0;K<R.length;K++){var $=R[K].split("=",2);if(2===$.length){var ee=$[0].replace(/^\s+/,"").replace(/\s+$/,"");G[ee]=decodeURIComponent($[1]);try{G[ee]=JSON.parse(G[ee])}catch{}Y++}}return Y>0?G:null}()),c._shouldAddHeadersToRequest(T,x.url)){var k={};T.inject(D.context(),P.FORMAT_HTTP_HEADERS,k),Object.keys(k).forEach(function(R){x.headers.get(R)||x.headers.set(R,k[R])})}return D.log({event:"sending",method:x.method,url:x.url,openPayload:I}),D.addTags(I),_(x).then(function(R){return R.ok||D.addTags({error:!0}),D.log({method:x.method,headers:r(R),status:R.status,statusText:R.statusText,responseType:R.type,url:R.url}),T.removeActiveRootSpan(D),D.finish(),R}).catch(function(R){throw D.addTags({error:!0}),T.removeActiveRootSpan(D),D.log({event:"error",error:R}),D.finish(),R})}}},{key:"_shouldTrace",value:function(c,T){if(!c||!T)return!1;var A=c.options();return!(A.disabled||this._internalExclusions.some(function(L){return L.test(T)})||A.fetch_url_exclusion_patterns.some(function(L){return L.test(T)})||!A.fetch_url_inclusion_patterns.some(function(L){return L.test(T)}))}},{key:"_shouldAddHeadersToRequest",value:function(c,T){if(!c||!T)return!1;var A=c.options();return!A.disabled&&!A.fetch_url_header_exclusion_patterns.some(function(L){return L.test(T)})&&!!A.fetch_url_header_inclusion_patterns.some(function(L){return L.test(T)})}}])&&function O(a,h){for(var g=0;g<h.length;g++){var c=h[g];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}}(h.prototype,g),Object.defineProperty(h,"prototype",{writable:!1}),a}();l.exports=new i},792:(l,p,m)=>{"use strict";var _=function(g,c){if(g&&g.__esModule)return g;if(null===g||"object"!=typeof g&&"function"!=typeof g)return{default:g};var T=P(void 0);if(T&&T.has(g))return T.get(g);var A={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in g)if("default"!==x&&Object.prototype.hasOwnProperty.call(g,x)){var V=L?Object.getOwnPropertyDescriptor(g,x):null;V&&(V.get||V.set)?Object.defineProperty(A,x,V):A[x]=g[x]}return A.default=g,T&&T.set(g,A),A}(m(725));function P(g){if("function"!=typeof WeakMap)return null;var c=new WeakMap,T=new WeakMap;return(P=function(A){return A?T:c})(g)}function v(g,c){var T=Object.keys(g);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(g);c&&(A=A.filter(function(L){return Object.getOwnPropertyDescriptor(g,L).enumerable})),T.push.apply(T,A)}return T}function S(g,c,T){return c in g?Object.defineProperty(g,c,{value:T,enumerable:!0,configurable:!0,writable:!0}):g[c]=T,g}var r={};function a(g){for(var c=g.getAllResponseHeaders().replace(/\s+$/,"").split(/\n/),T=0;T<c.length;T++)c[T]=c[T].replace(/\r/g,"").replace(/^\s+/,"").replace(/\s+$/,"");return c}"object"==typeof window&&void 0!==window.XMLHttpRequest&&(r={XMLHttpRequest,open:XMLHttpRequest.prototype.open,send:XMLHttpRequest.prototype.send,setRequestHeader:XMLHttpRequest.prototype.setRequestHeader});var h=function(){function g(){(function(A,L){if(!(A instanceof L))throw new TypeError("Cannot call a class as a function")})(this,g),this._enabled=this._isValidContext(),this._proxyInited=!1,this._internalExclusions=[],this._tracer=null,this._handleOptions=this._handleOptions.bind(this)}var c,T;return c=g,T=[{key:"name",value:function(){return"instrument_xhr"}},{key:"addOptions",value:function(A){A.addOption("xhr_instrumentation",{type:"bool",defaultValue:!1}),A.addOption("xhr_url_inclusion_patterns",{type:"array",defaultValue:[/.*/]}),A.addOption("xhr_url_exclusion_patterns",{type:"array",defaultValue:[]}),A.addOption("xhr_url_header_inclusion_patterns",{type:"array",defaultValue:[/.*/]}),A.addOption("xhr_url_header_exclusion_patterns",{type:"array",defaultValue:[]}),A.addOption("include_cookies",{type:"bool",defaultValue:!0})}},{key:"start",value:function(A){if(this._enabled){this._tracer=A;var L=A.options();this._addServiceHostToExclusions(L),this._handleOptions({},L),A.on("options",this._handleOptions)}}},{key:"stop",value:function(){if(this._enabled){var A=r.XMLHttpRequest.prototype;A.open=r.open,A.send=r.send}}},{key:"_handleOptions",value:function(A,L){if(A.collector_host&&this._addServiceHostToExclusions(L),!this._proxyInited&&L.xhr_instrumentation){this._proxyInited=!0;var x=r.XMLHttpRequest.prototype;x.setRequestHeader=this._instrumentSetRequestHeader(),x.open=this._instrumentOpen(),x.send=this._instrumentSend()}}},{key:"_addServiceHostToExclusions",value:function(A){if(0!==A.collector_host.length){var L=D(A.collector_host),x=D(A.collector_port),V=[new RegExp("^https?://".concat(L,":").concat(x))];"80"===x?V.push(new RegExp("^http://".concat(L))):"443"===x&&V.push(new RegExp("^https://".concat(L))),this._internalExclusions=V}function D(F){return"".concat(F).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}},{key:"_isValidContext",value:function(){return typeof window<"u"&&!!window.XMLHttpRequest&&!!window.XMLHttpRequest.prototype}},{key:"_instrumentSetRequestHeader",value:function(){return function(A,L){return this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[A]=L,r.setRequestHeader.apply(this,arguments)}}},{key:"_instrumentOpen",value:function(){var A=this,L=this._tracer;return function(x,V,D,F,I){if(!A._shouldTrace(L,this,V))return r.open.apply(this,arguments);var k=L.options(),R=L.startSpan("XMLHttpRequest");L.addActiveRootSpan(R),this.__tracer_span=R,this.__tracer_url=V;var G={method:x,url:V,async:D,user:F};V&&(G.url_pathname=V.split("?")[0]);var Y=function O(g){for(var c=1;c<arguments.length;c++){var T=null!=arguments[c]?arguments[c]:{};c%2?v(Object(T),!0).forEach(function(A){S(g,A,T[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(T)):v(Object(T)).forEach(function(A){Object.defineProperty(g,A,Object.getOwnPropertyDescriptor(T,A))})}return g}({},G);k.include_cookies&&(Y.cookies=function i(){if(typeof document>"u"||!document.cookie)return null;for(var g=document.cookie.split(";"),c={},T=0,A=0;A<g.length;A++){var L=g[A].split("=",2);if(2===L.length){var x=L[0].replace(/^\s+/,"").replace(/\s+$/,"");c[x]=decodeURIComponent(L[1]);try{c[x]=JSON.parse(c[x])}catch{}T++}}return T>0?c:null}());var K=void 0===D||D;K&&this.addEventListener("readystatechange",function(){if(0===this.readyState)R.log({readyState:0,event:"unsent"});else if(1===this.readyState)R.log({readyState:1,event:"sending"});else if(2===this.readyState)R.log({readyState:2,event:"headers received",method:x,url:V,openPayload:Y,headers:a(this)}),R.addTags(G);else if(3===this.readyState)R.log({readyState:3,event:"loading"});else if(4===this.readyState){var ee=this.responseType;R.log({readyState:4,url:V,method:x,headers:a(this),status:this.status,statusText:this.statusText,responseType:ee}),L.removeActiveRootSpan(R),R.finish()}else R.log({readyState:this.readyState})});var $=r.open.apply(this,arguments);return K||(L.removeActiveRootSpan(R),R.finish()),$}}},{key:"_instrumentSend",value:function(){var A=this,L=this._tracer;return function(){var x=this;if(!A._shouldTrace(L,this,this.__tracer_url))return r.send.apply(this,arguments);var V=this.__tracer_span;if(!V)return r.send.apply(this,arguments);var D,F=Array.prototype.slice.call(arguments);if(1===F.length){F[0]&&F[0].length&&(D=F[0].length);try{F=JSON.parse(F[0])}catch{}}var I=void 0===D?"":", data length=".concat(D);if(V.log({event:"send",data_length:I}),A._shouldAddHeadersToRequest(L,this.__tracer_url)){var k={};L.inject(V.context(),_.FORMAT_HTTP_HEADERS,k),Object.keys(k).forEach(function(G){r.setRequestHeader.call(x,G,k[G])})}return r.send.apply(this,arguments)}}},{key:"_shouldTrace",value:function(A,L,x){if(!A||!x)return!1;var V=A.options();return!(V.disabled||this._internalExclusions.some(function(D){return D.test(x)})||V.xhr_url_exclusion_patterns.some(function(D){return D.test(x)})||!V.xhr_url_inclusion_patterns.some(function(D){return D.test(x)}))}},{key:"_shouldAddHeadersToRequest",value:function(A,L){if(!A||!L)return!1;var x=A.options();return!x.disabled&&!x.xhr_url_header_exclusion_patterns.some(function(V){return V.test(L)})&&!!x.xhr_url_header_inclusion_patterns.some(function(V){return V.test(L)})}}],T&&function y(g,c){for(var T=0;T<c.length;T++){var A=c[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(g,A.key,A)}}(c.prototype,T),Object.defineProperty(c,"prototype",{writable:!1}),g}();l.exports=new h},981:(l,p,m)=>{"use strict";var P=m(843),v=function(){function O(){(function(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")})(this,O),this._enabled=!1,this._tracer=null,this._optionsCb=this._handleOptions.bind(this),this._logAddedCb=this._handleLogAdded.bind(this)}var S,y;return S=O,(y=[{key:"name",value:function(){return"log_to_console"}},{key:"addOptions",value:function(r){r.addOption("log_to_console",{type:"bool",defaultValue:!1}),r.on("options",this._optionsCb)}},{key:"start",value:function(r,i){this._tracer=r}},{key:"stop",value:function(){this._tracer.removeListener("options",this._optionsCb)}},{key:"_handleOptions",value:function(r,i,a){var h=i.log_to_console;this._enabled!==h&&(this._enabled=h,this._enabled?a.on("log_added",this._logAddedCb):a.removeListener("log_added",this._logAddedCb))}},{key:"_handleLogAdded",value:function(r){var i=P.LOG_STRING_TO_LEVEL[r.level],a=r.message;if(a){var h=r.payload_json;if(h)try{h=JSON.parse(h)}catch{}switch(i){case P.LOG_ERROR:case P.LOG_FATAL:void 0!==h?console.error(a,h):console.error(a);break;case P.LOG_WARN:void 0!==h?console.warn(a,h):console.warn(a);break;default:void 0!==h?console.log(a,h):console.log(a)}}}}])&&function _(O,S){for(var y=0;y<S.length;y++){var r=S[y];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(O,r.key,r)}}(S.prototype,y),Object.defineProperty(S,"prototype",{writable:!1}),O}();l.exports=new v},729:l=>{"use strict";var p=Object.prototype.hasOwnProperty,m="~";function _(){}function P(y,r,i){this.fn=y,this.context=r,this.once=i||!1}function v(y,r,i,a,h){if("function"!=typeof i)throw new TypeError("The listener must be a function");var g=new P(i,a||y,h),c=m?m+r:r;return y._events[c]?y._events[c].fn?y._events[c]=[y._events[c],g]:y._events[c].push(g):(y._events[c]=g,y._eventsCount++),y}function O(y,r){0==--y._eventsCount?y._events=new _:delete y._events[r]}function S(){this._events=new _,this._eventsCount=0}Object.create&&(_.prototype=Object.create(null),(new _).__proto__||(m=!1)),S.prototype.eventNames=function(){var y,r,i=[];if(0===this._eventsCount)return i;for(r in y=this._events)p.call(y,r)&&i.push(m?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(y)):i},S.prototype.listeners=function(y){var i=this._events[m?m+y:y];if(!i)return[];if(i.fn)return[i.fn];for(var a=0,h=i.length,g=new Array(h);a<h;a++)g[a]=i[a].fn;return g},S.prototype.listenerCount=function(y){var i=this._events[m?m+y:y];return i?i.fn?1:i.length:0},S.prototype.emit=function(y,r,i,a,h,g){var c=m?m+y:y;if(!this._events[c])return!1;var T,A,L=this._events[c],x=arguments.length;if(L.fn){switch(L.once&&this.removeListener(y,L.fn,void 0,!0),x){case 1:return L.fn.call(L.context),!0;case 2:return L.fn.call(L.context,r),!0;case 3:return L.fn.call(L.context,r,i),!0;case 4:return L.fn.call(L.context,r,i,a),!0;case 5:return L.fn.call(L.context,r,i,a,h),!0;case 6:return L.fn.call(L.context,r,i,a,h,g),!0}for(A=1,T=new Array(x-1);A<x;A++)T[A-1]=arguments[A];L.fn.apply(L.context,T)}else{var V,D=L.length;for(A=0;A<D;A++)switch(L[A].once&&this.removeListener(y,L[A].fn,void 0,!0),x){case 1:L[A].fn.call(L[A].context);break;case 2:L[A].fn.call(L[A].context,r);break;case 3:L[A].fn.call(L[A].context,r,i);break;case 4:L[A].fn.call(L[A].context,r,i,a);break;default:if(!T)for(V=1,T=new Array(x-1);V<x;V++)T[V-1]=arguments[V];L[A].fn.apply(L[A].context,T)}}return!0},S.prototype.on=function(y,r,i){return v(this,y,r,i,!1)},S.prototype.once=function(y,r,i){return v(this,y,r,i,!0)},S.prototype.removeListener=function(y,r,i,a){var h=m?m+y:y;if(!this._events[h])return this;if(!r)return O(this,h),this;var g=this._events[h];if(g.fn)g.fn!==r||a&&!g.once||i&&g.context!==i||O(this,h);else{for(var c=0,T=[],A=g.length;c<A;c++)(g[c].fn!==r||a&&!g[c].once||i&&g[c].context!==i)&&T.push(g[c]);T.length?this._events[h]=1===T.length?T[0]:T:O(this,h)}return this},S.prototype.removeAllListeners=function(y){var r;return y?this._events[r=m?m+y:y]&&O(this,r):(this._events=new _,this._eventsCount=0),this},S.prototype.off=S.prototype.removeListener,S.prototype.addListener=S.prototype.on,S.prefixed=m,S.EventEmitter=S,l.exports=S},36:l=>{function p(P,v,O){for(var S=[],y=Math.max(P.length,v.length),r=0,i=0;i<y||r;){var a=r+(i<P.length?P[i]:0)+(i<v.length?v[i]:0);S.push(a%O),r=Math.floor(a/O),i++}return S}function m(P,v,O){if(P<0)return null;if(0==P)return[];for(var S=[],y=v;1&P&&(S=p(S,y,O)),0!=(P>>=1);)y=p(y,y,O);return S}function _(P,v,O){var S=function(h,g){for(var c=h.split(""),T=[],A=c.length-1;A>=0;A--){var L=parseInt(c[A],g);if(isNaN(L))return null;T.push(L)}return T}(P,v);if(null===S)return null;for(var y=[],r=[1],i=0;i<S.length;i++)S[i]&&(y=p(y,m(S[i],r,O),O)),r=m(v,r,O);var a="";for(i=y.length-1;i>=0;i--)a+=y[i].toString(O);return""===a&&(a="0"),a}l.exports={hexToDec:function(P){return"0x"===P.substring(0,2)&&(P=P.substring(2)),_(P=P.toLowerCase(),16,10)},decToHex:function(P,v){var O=v&&!1===v.prefix,S=_(P,10,16);return S?O?S:"0x"+S:null}}},188:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(m){this.buffer=m}},202:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FORMAT_BINARY="binary",p.FORMAT_TEXT_MAP="text_map",p.FORMAT_HTTP_HEADERS="http_headers",p.REFERENCE_CHILD_OF="child_of",p.REFERENCE_FOLLOWS_FROM="follows_from"},546:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SPAN_KIND="span.kind",p.SPAN_KIND_RPC_CLIENT="client",p.SPAN_KIND_RPC_SERVER="server",p.SPAN_KIND_MESSAGING_PRODUCER="producer",p.SPAN_KIND_MESSAGING_CONSUMER="consumer",p.ERROR="error",p.COMPONENT="component",p.SAMPLING_PRIORITY="sampling.priority",p.PEER_SERVICE="peer.service",p.PEER_HOSTNAME="peer.hostname",p.PEER_ADDRESS="peer.address",p.PEER_HOST_IPV4="peer.ipv4",p.PEER_HOST_IPV6="peer.ipv6",p.PEER_PORT="peer.port",p.HTTP_URL="http.url",p.HTTP_METHOD="http.method",p.HTTP_STATUS_CODE="http.status_code",p.MESSAGE_BUS_DESTINATION="message_bus.destination",p.DB_INSTANCE="db.instance",p.DB_STATEMENT="db.statement",p.DB_TYPE="db.type",p.DB_USER="db.user"},929:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var _=m(202),P=m(963),v=m(81);p.childOf=function(O){return O instanceof v.default&&(O=O.context()),new P.default(_.REFERENCE_CHILD_OF,O)},p.followsFrom=function(O){return O instanceof v.default&&(O=O.context()),new P.default(_.REFERENCE_FOLLOWS_FROM,O)}},32:function(l,p,m){"use strict";var _,P=this&&this.__extends||(_=function(i,a){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var c in g)g.hasOwnProperty(c)&&(h[c]=g[c])})(i,a)},function(i,a){function h(){this.constructor=i}_(i,a),i.prototype=null===a?Object.create(a):(h.prototype=a.prototype,new h)});Object.defineProperty(p,"__esModule",{value:!0});var v=m(266),O=new v.default,S=null,y=function(i){function a(){return null!==i&&i.apply(this,arguments)||this}return P(a,i),a.prototype.startSpan=function(){var h=S||O;return h.startSpan.apply(h,arguments)},a.prototype.inject=function(){var h=S||O;return h.inject.apply(h,arguments)},a.prototype.extract=function(){var h=S||O;return h.extract.apply(h,arguments)},a}(v.default),r=new y;p.initGlobalTracer=function(i){S=i},p.globalTracer=function(){return r}},725:(l,p,m)=>{"use strict";function _(h){for(var g in h)p.hasOwnProperty(g)||(p[g]=h[g])}Object.defineProperty(p,"__esModule",{value:!0});var P=m(188);p.BinaryCarrier=P.default;var v=m(546);p.Tags=v;var O=m(980),S=m(963);p.Reference=S.default;var y=m(81);p.Span=y.default;var r=m(402);p.SpanContext=r.default;var i=m(266);p.Tracer=i.Tracer;var a=m(292);p.MockTracer=a.MockTracer,_(m(32)),_(m(202)),_(m(929)),O.initialize()},292:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var _=m(2);p.MockContext=_.default;var P=m(857);p.MockSpan=P.default;var v=m(817);p.MockTracer=v.default},2:function(l,p,m){"use strict";var _,P=this&&this.__extends||(_=function(O,S){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,r){y.__proto__=r}||function(y,r){for(var i in r)r.hasOwnProperty(i)&&(y[i]=r[i])})(O,S)},function(O,S){function y(){this.constructor=O}_(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)});Object.defineProperty(p,"__esModule",{value:!0});var v=function(O){function S(y){var r=O.call(this)||this;return r._span=y,r}return P(S,O),S.prototype.span=function(){return this._span},S}(m(402).SpanContext);p.MockContext=v,p.default=v},901:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var m=function(){function _(P){var v=this;this.spans=P,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],P.forEach(function(O){0===O._finishMs&&v.unfinishedSpans.push(O),v.spansByUUID[O.uuid()]=O,v.debugSpans.push(O.debug());var S=O.tags();Object.keys(S).forEach(function(y){var r=S[y];v.spansByTag[y]=v.spansByTag[y]||{},v.spansByTag[y][r]=v.spansByTag[y][r]||[],v.spansByTag[y][r].push(O)})})}return _.prototype.firstSpanWithTagValue=function(P,v){var O=this.spansByTag[P];if(!O)return null;var S=O[v];return S?S[0]:null},_}();p.MockReport=m,p.default=m},857:function(l,p,m){"use strict";var _,P=this&&this.__extends||(_=function(y,r){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var h in a)a.hasOwnProperty(h)&&(i[h]=a[h])})(y,r)},function(y,r){function i(){this.constructor=y}_(y,r),y.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)});Object.defineProperty(p,"__esModule",{value:!0});var v=m(725),O=m(2),S=function(y){function r(i){var a=y.call(this)||this;return a._mockTracer=i,a._uuid=a._generateUUID(),a._startMs=Date.now(),a._finishMs=0,a._operationName="",a._tags={},a._logs=[],a}return P(r,y),r.prototype._context=function(){return new O.default(this)},r.prototype._setOperationName=function(i){this._operationName=i},r.prototype._addTags=function(i){for(var a=0,h=Object.keys(i);a<h.length;a++){var g=h[a];this._tags[g]=i[g]}},r.prototype._log=function(i,a){this._logs.push({fields:i,timestamp:a})},r.prototype._finish=function(i){this._finishMs=i||Date.now()},r.prototype.uuid=function(){return this._uuid},r.prototype.operationName=function(){return this._operationName},r.prototype.durationMs=function(){return this._finishMs-this._startMs},r.prototype.tags=function(){return this._tags},r.prototype.tracer=function(){return this._mockTracer},r.prototype._generateUUID=function(){return""+("00000000"+Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8)+("00000000"+Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8)},r.prototype.addReference=function(i){},r.prototype.debug=function(){var i={uuid:this._uuid,operation:this._operationName,millis:[this._finishMs-this._startMs,this._startMs,this._finishMs]};return Object.keys(this._tags).length&&(i.tags=this._tags),i},r}(v.Span);p.MockSpan=S,p.default=S},817:function(l,p,m){"use strict";var _,P=this&&this.__extends||(_=function(r,i){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var g in h)h.hasOwnProperty(g)&&(a[g]=h[g])})(r,i)},function(r,i){function a(){this.constructor=r}_(r,i),r.prototype=null===i?Object.create(i):(a.prototype=i.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0});var v=m(725),O=m(901),S=m(857),y=function(r){function i(){var a=r.call(this)||this;return a._spans=[],a}return P(i,r),i.prototype._startSpan=function(a,h){var g=this._allocSpan();if(g.setOperationName(a),this._spans.push(g),h.references)for(var c=0,T=h.references;c<T.length;c++)g.addReference(T[c]);return g._startStack=(new Error).stack,g},i.prototype._inject=function(a,h,g){throw new Error("NOT YET IMPLEMENTED")},i.prototype._extract=function(a,h){throw new Error("NOT YET IMPLEMENTED")},i.prototype._allocSpan=function(){return new S.default(this)},i.prototype.clear=function(){this._spans=[]},i.prototype.report=function(){return new O.default(this._spans)},i}(v.Tracer);p.MockTracer=y,p.default=y},980:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var _=m(81),P=m(402),v=m(266);p.tracer=null,p.spanContext=null,p.span=null,p.initialize=function(){p.tracer=new v.default,p.span=new _.default,p.spanContext=new P.default}},963:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var _=m(81),P=function(){function v(O,S){this._type=O,this._referencedContext=S instanceof _.default?S.context():S}return v.prototype.type=function(){return this._type},v.prototype.referencedContext=function(){return this._referencedContext},v}();p.default=P},81:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var _=m(980),P=function(){function v(){}return v.prototype.context=function(){return this._context()},v.prototype.tracer=function(){return this._tracer()},v.prototype.setOperationName=function(O){return this._setOperationName(O),this},v.prototype.setBaggageItem=function(O,S){return this._setBaggageItem(O,S),this},v.prototype.getBaggageItem=function(O){return this._getBaggageItem(O)},v.prototype.setTag=function(O,S){var y;return this._addTags(((y={})[O]=S,y)),this},v.prototype.addTags=function(O){return this._addTags(O),this},v.prototype.log=function(O,S){return this._log(O,S),this},v.prototype.logEvent=function(O,S){return this._log({event:O,payload:S})},v.prototype.finish=function(O){this._finish(O)},v.prototype._context=function(){return _.spanContext},v.prototype._tracer=function(){return _.tracer},v.prototype._setOperationName=function(O){},v.prototype._setBaggageItem=function(O,S){},v.prototype._getBaggageItem=function(O){},v.prototype._addTags=function(O){},v.prototype._log=function(O,S){},v.prototype._finish=function(O){},v}();p.Span=P,p.default=P},402:(l,p)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var m=function(){function _(){}return _.prototype.toTraceId=function(){return""},_.prototype.toSpanId=function(){return""},_}();p.SpanContext=m,p.default=m},266:(l,p,m)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var _=m(929),P=m(980),v=m(81),O=function(){function S(){}return S.prototype.startSpan=function(y,r){if(void 0===r&&(r={}),r.childOf){var i=_.childOf(r.childOf);r.references?r.references.push(i):r.references=[i],delete r.childOf}return this._startSpan(y,r)},S.prototype.inject=function(y,r,i){return y instanceof v.default&&(y=y.context()),this._inject(y,r,i)},S.prototype.extract=function(y,r){return this._extract(y,r)},S.prototype._startSpan=function(y,r){return P.span},S.prototype._inject=function(y,r,i){},S.prototype._extract=function(y,r){return P.spanContext},S}();p.Tracer=O,p.default=O},147:l=>{"use strict";l.exports=JSON.parse('{"name":"lightstep-tracer","version":"0.33.0-no-protobuf","main":"index.js","types":"index.d.ts","browser":"browser.js","engines":{"node":">=12.0.0"},"scripts":{"release":"./scripts/release.sh","release:prepare":"./scripts/release-prepare.sh","test":"rm -f test/results/*.json && node node_modules/mocha/bin/mocha -c test/unittest_node.js","version":"make build && git add -A dist"},"license":"MIT","repository":{"type":"git","url":"http://github.com/lightstep/lightstep-tracer-javascript.git"},"dependencies":{"async":"^3.2.3","eventemitter3":"4.0.7","hex2dec":"1.1.2","opentracing":"^0.14.7","source-map-support":"0.5.21","thrift":"^0.16.0"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.17.10","@babel/plugin-proposal-object-rest-spread":"^7.17.3","@babel/plugin-syntax-object-rest-spread":"^7.8.3","@babel/plugin-transform-arrow-functions":"^7.16.7","@babel/plugin-transform-block-scoped-functions":"^7.16.7","@babel/plugin-transform-block-scoping":"^7.16.7","@babel/plugin-transform-classes":"^7.16.7","@babel/plugin-transform-computed-properties":"^7.16.7","@babel/plugin-transform-destructuring":"^7.17.7","@babel/plugin-transform-duplicate-keys":"^7.16.7","@babel/plugin-transform-literals":"^7.16.7","@babel/plugin-transform-modules-commonjs":"^7.17.9","@babel/plugin-transform-object-super":"^7.16.7","@babel/plugin-transform-parameters":"^7.16.7","@babel/plugin-transform-spread":"^7.16.7","@babel/plugin-transform-sticky-regex":"^7.16.7","@babel/plugin-transform-template-literals":"^7.16.7","@babel/plugin-transform-unicode-regex":"^7.16.7","@babel/preset-env":"^7.17.10","babel-loader":"^8.2.5","babel-plugin-add-module-exports":"^1.0.4","chai":"4.3.6","clone":"2.1.2","colors":"1.4.0","core-js":"^3.22.4","eslint":"^8.14.0","eslint-config-airbnb":"^19.0.4","eslint-plugin-import":"^2.26.0","eslint-plugin-jsx-a11y":"^6.5.1","eslint-plugin-react":"^7.29.4","express":"^4.18.1","fetch-mock":"^9.11.0","mocha":"^10.0.0","nyc":"^15.1.0","package-json":"^7.0.0","regenerator-runtime":"^0.13.9","shelljs":"^0.8.5","sinon":"^13.0.2","sprintf-js":"1.1.2","underscore":"1.13.3","watch-trigger":"0.0.10","webpack":"^5.72.0","webpack-cli":"^4.9.2"}}')}},d={};function n(l){var p=d[l];if(void 0!==p)return p.exports;var m=d[l]={exports:{}};return W[l].call(m.exports,m,m.exports,n),m.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),n(410)})()},26875:function(Ue,W,d){var n;Ue=d.nmd(Ue),function(){var l,P="Expected a function",O="__lodash_hash_undefined__",y="__lodash_placeholder__",V=32,F=128,z=1/0,te=9007199254740991,ge=4294967295,ue=[["ary",F],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",V],["partialRight",64],["rearg",256]],N="[object Arguments]",se="[object Array]",Z="[object Boolean]",de="[object Date]",pe="[object Error]",_e="[object Function]",ke="[object GeneratorFunction]",De="[object Map]",Me="[object Number]",$e="[object Object]",Oe="[object Promise]",qt="[object RegExp]",ye="[object Set]",Re="[object String]",Ze="[object Symbol]",xt="[object WeakMap]",ct="[object ArrayBuffer]",Gt="[object DataView]",pn="[object Float32Array]",st="[object Float64Array]",mn="[object Int8Array]",Bn="[object Int16Array]",En="[object Int32Array]",Cn="[object Uint8Array]",fn="[object Uint8ClampedArray]",dt="[object Uint16Array]",nn="[object Uint32Array]",yn=/\b__p \+= '';/g,Xn=/\b(__p \+=) '' \+/g,rn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ai=/&(?:amp|lt|gt|quot|#39);/g,ri=/[&<>"']/g,Ne=RegExp(ai.source),zt=RegExp(ri.source),vt=/<%-([\s\S]+?)%>/g,Ct=/<%([\s\S]+?)%>/g,it=/<%=([\s\S]+?)%>/g,Ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jn=/^\w*$/,wn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/[\\^$.*+?()[\]{}|]/g,on=RegExp(nt.source),mt=/^\s+/,_n=/\s/,wt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Un=/\{\n\/\* \[wrapped with (.+)\] \*/,Oi=/,? & /,At=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hn=/[()=,{}\[\]\/\s]/,pi=/\\(\\)?/g,Zi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lr=/\w*$/,Kr=/^[-+]0x[0-9a-f]+$/i,Qt=/^0b[01]+$/i,di=/^\[object .+?Constructor\]$/,ji=/^0o[0-7]+$/i,vi=/^(?:0|[1-9]\d*)$/,Zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,Dn=/['\n\r\u2028\u2029\\]/g,zn="\\ud800-\\udfff",mi="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",$n="\\u2700-\\u27bf",Pt="a-z\\xdf-\\xf6\\xf8-\\xff",Fr="A-Z\\xc0-\\xd6\\xd8-\\xde",xo="\\ufe0e\\ufe0f",qn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ni="["+zn+"]",he="["+qn+"]",Ee="["+mi+"]",Pe="\\d+",Qe="["+$n+"]",Be="["+Pt+"]",Mt="[^"+zn+qn+Pe+$n+Pt+Fr+"]",Vt="\\ud83c[\\udffb-\\udfff]",si="[^"+zn+"]",Rn="(?:\\ud83c[\\udde6-\\uddff]){2}",_i="[\\ud800-\\udbff][\\udc00-\\udfff]",wr="["+Fr+"]",Qr="(?:"+Be+"|"+Mt+")",Yr="(?:"+wr+"|"+Mt+")",no="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Tr="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",ro="(?:"+Ee+"|"+Vt+")?",po="["+xo+"]?",li=po+ro+"(?:\\u200d(?:"+[si,Rn,_i].join("|")+")"+po+ro+")*",dr="(?:"+[Qe,Rn,_i].join("|")+")"+li,Tn="(?:"+[si+Ee+"?",Ee,Rn,_i,ni].join("|")+")",tn=RegExp("['\u2019]","g"),vn=RegExp(Ee,"g"),oi=RegExp(Vt+"(?="+Vt+")|"+Tn+li,"g"),Ci=RegExp([wr+"?"+Be+"+"+no+"(?="+[he,wr,"$"].join("|")+")",Yr+"+"+Tr+"(?="+[he,wr+Qr,"$"].join("|")+")",wr+"?"+Qr+"+"+no,wr+"+"+Tr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,dr].join("|"),"g"),or=RegExp("[\\u200d"+zn+mi+xo+"]"),yr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$r=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ko=-1,qr={};qr[pn]=qr[st]=qr[mn]=qr[Bn]=qr[En]=qr[Cn]=qr[fn]=qr[dt]=qr[nn]=!0,qr[N]=qr[se]=qr[ct]=qr[Z]=qr[Gt]=qr[de]=qr[pe]=qr[_e]=qr[De]=qr[Me]=qr[$e]=qr[qt]=qr[ye]=qr[Re]=qr[xt]=!1;var lo={};lo[N]=lo[se]=lo[ct]=lo[Gt]=lo[Z]=lo[de]=lo[pn]=lo[st]=lo[mn]=lo[Bn]=lo[En]=lo[De]=lo[Me]=lo[$e]=lo[qt]=lo[ye]=lo[Re]=lo[Ze]=lo[Cn]=lo[fn]=lo[dt]=lo[nn]=!0,lo[pe]=lo[_e]=lo[xt]=!1;var Hs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ua=parseFloat,Ya=parseInt,Ba="object"==typeof global&&global&&global.Object===Object&&global,Pa="object"==typeof self&&self&&self.Object===Object&&self,ys=Ba||Pa||Function("return this")(),Ga=W&&!W.nodeType&&W,To=Ga&&Ue&&!Ue.nodeType&&Ue,ss=To&&To.exports===Ga,Gs=ss&&Ba.process,va=function(){try{return To&&To.require&&To.require("util").types||Gs&&Gs.binding&&Gs.binding("util")}catch{}}(),Ca=va&&va.isArrayBuffer,ln=va&&va.isDate,Pi=va&&va.isMap,Qi=va&&va.isRegExp,yi=va&&va.isSet,Di=va&&va.isTypedArray;function zi(Ai,lt,An){switch(An.length){case 0:return Ai.call(lt);case 1:return Ai.call(lt,An[0]);case 2:return Ai.call(lt,An[0],An[1]);case 3:return Ai.call(lt,An[0],An[1],An[2])}return Ai.apply(lt,An)}function Ki(Ai,lt,An,St){for(var Ve=-1,qe=null==Ai?0:Ai.length;++Ve<qe;){var hn=Ai[Ve];lt(St,hn,An(hn),Ai)}return St}function Vi(Ai,lt){for(var An=-1,St=null==Ai?0:Ai.length;++An<St&&!1!==lt(Ai[An],An,Ai););return Ai}function Mr(Ai,lt){for(var An=null==Ai?0:Ai.length;An--&&!1!==lt(Ai[An],An,Ai););return Ai}function nr(Ai,lt){for(var An=-1,St=null==Ai?0:Ai.length;++An<St;)if(!lt(Ai[An],An,Ai))return!1;return!0}function en(Ai,lt){for(var An=-1,St=null==Ai?0:Ai.length,Ve=0,qe=[];++An<St;){var hn=Ai[An];lt(hn,An,Ai)&&(qe[Ve++]=hn)}return qe}function Wt(Ai,lt){return!(null==Ai||!Ai.length)&&Po(Ai,lt,0)>-1}function On(Ai,lt,An){for(var St=-1,Ve=null==Ai?0:Ai.length;++St<Ve;)if(An(lt,Ai[St]))return!0;return!1}function Nt(Ai,lt){for(var An=-1,St=null==Ai?0:Ai.length,Ve=Array(St);++An<St;)Ve[An]=lt(Ai[An],An,Ai);return Ve}function gi(Ai,lt){for(var An=-1,St=lt.length,Ve=Ai.length;++An<St;)Ai[Ve+An]=lt[An];return Ai}function Bi(Ai,lt,An,St){var Ve=-1,qe=null==Ai?0:Ai.length;for(St&&qe&&(An=Ai[++Ve]);++Ve<qe;)An=lt(An,Ai[Ve],Ve,Ai);return An}function Mi(Ai,lt,An,St){var Ve=null==Ai?0:Ai.length;for(St&&Ve&&(An=Ai[--Ve]);Ve--;)An=lt(An,Ai[Ve],Ve,Ai);return An}function tr(Ai,lt){for(var An=-1,St=null==Ai?0:Ai.length;++An<St;)if(lt(Ai[An],An,Ai))return!0;return!1}var mo=Tt("length");function ha(Ai,lt,An){var St;return An(Ai,function(Ve,qe,hn){if(lt(Ve,qe,hn))return St=qe,!1}),St}function Ys(Ai,lt,An,St){for(var Ve=Ai.length,qe=An+(St?1:-1);St?qe--:++qe<Ve;)if(lt(Ai[qe],qe,Ai))return qe;return-1}function Po(Ai,lt,An){return lt==lt?function Co(Ai,lt,An){for(var St=An-1,Ve=Ai.length;++St<Ve;)if(Ai[St]===lt)return St;return-1}(Ai,lt,An):Ys(Ai,oa,An)}function cl(Ai,lt,An,St){for(var Ve=An-1,qe=Ai.length;++Ve<qe;)if(St(Ai[Ve],lt))return Ve;return-1}function oa(Ai){return Ai!=Ai}function Ht(Ai,lt){var An=null==Ai?0:Ai.length;return An?br(Ai,lt)/An:NaN}function Tt(Ai){return function(lt){return null==lt?l:lt[Ai]}}function Ln(Ai){return function(lt){return null==Ai?l:Ai[lt]}}function jt(Ai,lt,An,St,Ve){return Ve(Ai,function(qe,hn,hi){An=St?(St=!1,qe):lt(An,qe,hn,hi)}),An}function br(Ai,lt){for(var An,St=-1,Ve=Ai.length;++St<Ve;){var qe=lt(Ai[St]);qe!==l&&(An=An===l?qe:An+qe)}return An}function wo(Ai,lt){for(var An=-1,St=Array(Ai);++An<Ai;)St[An]=lt(An);return St}function sa(Ai){return Ai&&Ai.slice(0,la(Ai)+1).replace(mt,"")}function fs(Ai){return function(lt){return Ai(lt)}}function zr(Ai,lt){return Nt(lt,function(An){return Ai[An]})}function eo(Ai,lt){return Ai.has(lt)}function Io(Ai,lt){for(var An=-1,St=Ai.length;++An<St&&Po(lt,Ai[An],0)>-1;);return An}function Jr(Ai,lt){for(var An=Ai.length;An--&&Po(lt,Ai[An],0)>-1;);return An}var Sa=Ln({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),rl=Ln({"&":"&","<":"<",">":">",'"':""","'":"'"});function as(Ai){return"\\"+Hs[Ai]}function rr(Ai){return or.test(Ai)}function qs(Ai){var lt=-1,An=Array(Ai.size);return Ai.forEach(function(St,Ve){An[++lt]=[Ve,St]}),An}function Ia(Ai,lt){return function(An){return Ai(lt(An))}}function ea(Ai,lt){for(var An=-1,St=Ai.length,Ve=0,qe=[];++An<St;){var hn=Ai[An];(hn===lt||hn===y)&&(Ai[An]=y,qe[Ve++]=An)}return qe}function za(Ai){var lt=-1,An=Array(Ai.size);return Ai.forEach(function(St){An[++lt]=St}),An}function Ts(Ai){return rr(Ai)?function Ws(Ai){for(var lt=oi.lastIndex=0;oi.test(Ai);)++lt;return lt}(Ai):mo(Ai)}function ks(Ai){return rr(Ai)?function Oa(Ai){return Ai.match(oi)||[]}(Ai):function Bo(Ai){return Ai.split("")}(Ai)}function la(Ai){for(var lt=Ai.length;lt--&&_n.test(Ai.charAt(lt)););return lt}var vl=Ln({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Zo=function Ai(lt){var H,An=(lt=null==lt?ys:Zo.defaults(ys.Object(),lt,Zo.pick(ys,$r))).Array,St=lt.Date,Ve=lt.Error,qe=lt.Function,hn=lt.Math,hi=lt.Object,sr=lt.RegExp,le=lt.String,Nn=lt.TypeError,So=An.prototype,Ao=hi.prototype,Wo=lt["__core-js_shared__"],ta=qe.prototype.toString,bo=Ao.hasOwnProperty,Ns=0,Ka=(H=/[^.]+$/.exec(Wo&&Wo.keys&&Wo.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",Sl=Ao.toString,Yl=ta.call(hi),fc=ys._,_c=sr("^"+ta.call(bo).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ml=ss?lt.Buffer:l,Ul=lt.Symbol,tc=lt.Uint8Array,Ic=Ml?Ml.allocUnsafe:l,nc=Ia(hi.getPrototypeOf,hi),na=hi.create,ul=Ao.propertyIsEnumerable,zl=So.splice,He=Ul?Ul.isConcatSpreadable:l,Lt=Ul?Ul.iterator:l,Kn=Ul?Ul.toStringTag:l,ft=function(){try{var H=Qc(hi,"defineProperty");return H({},"",{}),H}catch{}}(),Gn=lt.clearTimeout!==ys.clearTimeout&<.clearTimeout,bi=St&&St.now!==ys.Date.now&&St.now,lr=lt.setTimeout!==ys.setTimeout&<.setTimeout,Ur=hn.ceil,ns=hn.floor,No=hi.getOwnPropertySymbols,ds=Ml?Ml.isBuffer:l,Yo=lt.isFinite,Go=So.join,Ds=Ia(hi.keys,hi),Qo=hn.max,Vo=hn.min,Ir=St.now,fo=lt.parseInt,Es=hn.random,Ea=So.reverse,Vs=Qc(lt,"DataView"),ia=Qc(lt,"Map"),hl=Qc(lt,"Promise"),gs=Qc(lt,"Set"),xa=Qc(lt,"WeakMap"),kt=Qc(hi,"create"),Ot=xa&&new xa,pt={},ut=Nd(Vs),Pn=Nd(ia),Qn=Nd(hl),Ui=Nd(gs),Ar=Nd(xa),Or=Ul?Ul.prototype:l,pr=Or?Or.valueOf:l,co=Or?Or.toString:l;function bn(H){if(fl(H)&&!Ps(H)&&!(H instanceof $o)){if(H instanceof jr)return H;if(bo.call(H,"__wrapped__"))return fd(H)}return new jr(H)}var so=function(){function H(){}return function(ie){if(!il(ie))return{};if(na)return na(ie);H.prototype=ie;var Le=new H;return H.prototype=l,Le}}();function gr(){}function jr(H,ie){this.__wrapped__=H,this.__actions__=[],this.__chain__=!!ie,this.__index__=0,this.__values__=l}function $o(H){this.__wrapped__=H,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ge,this.__views__=[]}function gl(H){var ie=-1,Le=null==H?0:H.length;for(this.clear();++ie<Le;){var Et=H[ie];this.set(Et[0],Et[1])}}function _s(H){var ie=-1,Le=null==H?0:H.length;for(this.clear();++ie<Le;){var Et=H[ie];this.set(Et[0],Et[1])}}function ja(H){var ie=-1,Le=null==H?0:H.length;for(this.clear();++ie<Le;){var Et=H[ie];this.set(Et[0],Et[1])}}function Dt(H){var ie=-1,Le=null==H?0:H.length;for(this.__data__=new ja;++ie<Le;)this.add(H[ie])}function $i(H){var ie=this.__data__=new _s(H);this.size=ie.size}function Bt(H,ie){var Le=Ps(H),Et=!Le&&Qu(H),Mn=!Le&&!Et&&cu(H),ei=!Le&&!Et&&!Mn&&du(H),Ei=Le||Et||Mn||ei,Gi=Ei?wo(H.length,le):[],Xi=Gi.length;for(var Dr in H)(ie||bo.call(H,Dr))&&(!Ei||!("length"==Dr||Mn&&("offset"==Dr||"parent"==Dr)||ei&&("buffer"==Dr||"byteLength"==Dr||"byteOffset"==Dr)||ad(Dr,Xi)))&&Gi.push(Dr);return Gi}function Te(H){var ie=H.length;return ie?H[Du(0,ie-1)]:l}function ze(H,ie){return $g(bl(H),Oo(ie,0,H.length))}function Ie(H){return $g(bl(H))}function ht(H,ie,Le){(Le!==l&&!Ll(H[ie],Le)||Le===l&&!(ie in H))&&Er(H,ie,Le)}function Kt(H,ie,Le){var Et=H[ie];(!bo.call(H,ie)||!Ll(Et,Le)||Le===l&&!(ie in H))&&Er(H,ie,Le)}function Fn(H,ie){for(var Le=H.length;Le--;)if(Ll(H[Le][0],ie))return Le;return-1}function ii(H,ie,Le,Et){return Rs(H,function(Mn,ei,Ei){ie(Et,Mn,Le(Mn),Ei)}),Et}function Fi(H,ie){return H&&Dc(ie,Na(ie),H)}function Er(H,ie,Le){"__proto__"==ie&&ft?ft(H,ie,{configurable:!0,enumerable:!0,value:Le,writable:!0}):H[ie]=Le}function Vr(H,ie){for(var Le=-1,Et=ie.length,Mn=An(Et),ei=null==H;++Le<Et;)Mn[Le]=ei?l:mp(H,ie[Le]);return Mn}function Oo(H,ie,Le){return H==H&&(Le!==l&&(H=H<=Le?H:Le),ie!==l&&(H=H>=ie?H:ie)),H}function uo(H,ie,Le,Et,Mn,ei){var Ei,Gi=1&ie,Xi=2&ie,Dr=4&ie;if(Le&&(Ei=Mn?Le(H,Et,Mn,ei):Le(H)),Ei!==l)return Ei;if(!il(H))return H;var xr=Ps(H);if(xr){if(Ei=function ya(H){var ie=H.length,Le=new H.constructor(ie);return ie&&"string"==typeof H[0]&&bo.call(H,"index")&&(Le.index=H.index,Le.input=H.input),Le}(H),!Gi)return bl(H,Ei)}else{var Wr=Ol(H),vo=Wr==_e||Wr==ke;if(cu(H))return Yh(H,Gi);if(Wr==$e||Wr==N||vo&&!Mn){if(Ei=Xi||vo?{}:Hg(H),!Gi)return Xi?function Dp(H,ie){return Dc(H,Lc(H),ie)}(H,function Hi(H,ie){return H&&Dc(ie,Aa(ie),H)}(Ei,H)):function Ap(H,ie){return Dc(H,vh(H),ie)}(H,Fi(Ei,H))}else{if(!lo[Wr])return Mn?H:{};Ei=function Lp(H,ie,Le){var Et=H.constructor;switch(ie){case ct:return zh(H);case Z:case de:return new Et(+H);case Gt:return function ym(H,ie){var Le=ie?zh(H.buffer):H.buffer;return new H.constructor(Le,H.byteOffset,H.byteLength)}(H,Le);case pn:case st:case mn:case Bn:case En:case Cn:case fn:case dt:case nn:return pu(H,Le);case De:return new Et;case Me:case Re:return new Et(H);case qt:return function Ug(H){var ie=new H.constructor(H.source,Lr.exec(H));return ie.lastIndex=H.lastIndex,ie}(H);case ye:return new Et;case Ze:return function Ip(H){return pr?hi(pr.call(H)):{}}(H)}}(H,Wr,Gi)}}ei||(ei=new $i);var Xo=ei.get(H);if(Xo)return Xo;ei.set(H,Ei),up(H)?H.forEach(function(Jo){Ei.add(uo(Jo,ie,Le,Jo,H,ei))}):Ih(H)&&H.forEach(function(Jo,Js){Ei.set(Js,uo(Jo,ie,Le,Js,H,ei))});var Xs=xr?l:(Dr?Xi?ng:nu:Xi?Aa:Na)(H);return Vi(Xs||H,function(Jo,Js){Xs&&(Jo=H[Js=Jo]),Kt(Ei,Js,uo(Jo,ie,Le,Js,H,ei))}),Ei}function Do(H,ie,Le){var Et=Le.length;if(null==H)return!Et;for(H=hi(H);Et--;){var Mn=Le[Et],Ei=H[Mn];if(Ei===l&&!(Mn in H)||!(0,ie[Mn])(Ei))return!1}return!0}function rs(H,ie,Le){if("function"!=typeof H)throw new Nn(P);return Bu(function(){H.apply(l,Le)},ie)}function pa(H,ie,Le,Et){var Mn=-1,ei=Wt,Ei=!0,Gi=H.length,Xi=[],Dr=ie.length;if(!Gi)return Xi;Le&&(ie=Nt(ie,fs(Le))),Et?(ei=On,Ei=!1):ie.length>=200&&(ei=eo,Ei=!1,ie=new Dt(ie));e:for(;++Mn<Gi;){var xr=H[Mn],Wr=null==Le?xr:Le(xr);if(xr=Et||0!==xr?xr:0,Ei&&Wr==Wr){for(var vo=Dr;vo--;)if(ie[vo]===Wr)continue e;Xi.push(xr)}else ei(ie,Wr,Et)||Xi.push(xr)}return Xi}bn.templateSettings={escape:vt,evaluate:Ct,interpolate:it,variable:"",imports:{_:bn}},(bn.prototype=gr.prototype).constructor=bn,(jr.prototype=so(gr.prototype)).constructor=jr,($o.prototype=so(gr.prototype)).constructor=$o,gl.prototype.clear=function hs(){this.__data__=kt?kt(null):{},this.size=0},gl.prototype.delete=function Ed(H){var ie=this.has(H)&&delete this.__data__[H];return this.size-=ie?1:0,ie},gl.prototype.get=function Xa(H){var ie=this.__data__;if(kt){var Le=ie[H];return Le===O?l:Le}return bo.call(ie,H)?ie[H]:l},gl.prototype.has=function qa(H){var ie=this.__data__;return kt?ie[H]!==l:bo.call(ie,H)},gl.prototype.set=function xd(H,ie){var Le=this.__data__;return this.size+=this.has(H)?0:1,Le[H]=kt&&ie===l?O:ie,this},_s.prototype.clear=function zd(){this.__data__=[],this.size=0},_s.prototype.delete=function rc(H){var ie=this.__data__,Le=Fn(ie,H);return!(Le<0||(Le==ie.length-1?ie.pop():zl.call(ie,Le,1),--this.size,0))},_s.prototype.get=function Bl(H){var ie=this.__data__,Le=Fn(ie,H);return Le<0?l:ie[Le][1]},_s.prototype.has=function Kd(H){return Fn(this.__data__,H)>-1},_s.prototype.set=function go(H,ie){var Le=this.__data__,Et=Fn(Le,H);return Et<0?(++this.size,Le.push([H,ie])):Le[Et][1]=ie,this},ja.prototype.clear=function Gl(){this.size=0,this.__data__={hash:new gl,map:new(ia||_s),string:new gl}},ja.prototype.delete=function Fe(H){var ie=bc(this,H).delete(H);return this.size-=ie?1:0,ie},ja.prototype.get=function tt(H){return bc(this,H).get(H)},ja.prototype.has=function yt(H){return bc(this,H).has(H)},ja.prototype.set=function rt(H,ie){var Le=bc(this,H),Et=Le.size;return Le.set(H,ie),this.size+=Le.size==Et?0:1,this},Dt.prototype.add=Dt.prototype.push=function dn(H){return this.__data__.set(H,O),this},Dt.prototype.has=function Jn(H){return this.__data__.has(H)},$i.prototype.clear=function Nr(){this.__data__=new _s,this.size=0},$i.prototype.delete=function Ji(H){var ie=this.__data__,Le=ie.delete(H);return this.size=ie.size,Le},$i.prototype.get=function Ho(H){return this.__data__.get(H)},$i.prototype.has=function vs(H){return this.__data__.has(H)},$i.prototype.set=function cs(H,ie){var Le=this.__data__;if(Le instanceof _s){var Et=Le.__data__;if(!ia||Et.length<199)return Et.push([H,ie]),this.size=++Le.size,this;Le=this.__data__=new ja(Et)}return Le.set(H,ie),this.size=Le.size,this};var Rs=Ru(wa),ka=Ru(yl,!0);function Da(H,ie){var Le=!0;return Rs(H,function(Et,Mn,ei){return Le=!!ie(Et,Mn,ei)}),Le}function Ql(H,ie,Le){for(var Et=-1,Mn=H.length;++Et<Mn;){var ei=H[Et],Ei=ie(ei);if(null!=Ei&&(Gi===l?Ei==Ei&&!Gc(Ei):Le(Ei,Gi)))var Gi=Ei,Xi=ei}return Xi}function wl(H,ie){var Le=[];return Rs(H,function(Et,Mn,ei){ie(Et,Mn,ei)&&Le.push(Et)}),Le}function Ro(H,ie,Le,Et,Mn){var ei=-1,Ei=H.length;for(Le||(Le=sl),Mn||(Mn=[]);++ei<Ei;){var Gi=H[ei];ie>0&&Le(Gi)?ie>1?Ro(Gi,ie-1,Le,Et,Mn):gi(Mn,Gi):Et||(Mn[Mn.length]=Gi)}return Mn}var oc=Zh(),sc=Zh(!0);function wa(H,ie){return H&&oc(H,ie,Na)}function yl(H,ie){return H&&sc(H,ie,Na)}function Jl(H,ie){return en(ie,function(Le){return Sd(H[Le])})}function Vl(H,ie){for(var Le=0,Et=(ie=Qa(ie,H)).length;null!=H&&Le<Et;)H=H[ou(ie[Le++])];return Le&&Le==Et?H:l}function ol(H,ie,Le){var Et=ie(H);return Ps(H)?Et:gi(Et,Le(H))}function to(H){return null==H?H===l?"[object Undefined]":"[object Null]":Kn&&Kn in hi(H)?function Pl(H){var ie=bo.call(H,Kn),Le=H[Kn];try{H[Kn]=l;var Et=!0}catch{}var Mn=Sl.call(H);return Et&&(ie?H[Kn]=Le:delete H[Kn]),Mn}(H):function Uu(H){return Sl.call(H)}(H)}function Lo(H,ie){return H>ie}function zo(H,ie){return null!=H&&bo.call(H,ie)}function ps(H,ie){return null!=H&&ie in hi(H)}function Za(H,ie,Le){for(var Et=Le?On:Wt,Mn=H[0].length,ei=H.length,Ei=ei,Gi=An(ei),Xi=1/0,Dr=[];Ei--;){var xr=H[Ei];Ei&&ie&&(xr=Nt(xr,fs(ie))),Xi=Vo(xr.length,Xi),Gi[Ei]=!Le&&(ie||Mn>=120&&xr.length>=120)?new Dt(Ei&&xr):l}xr=H[0];var Wr=-1,vo=Gi[0];e:for(;++Wr<Mn&&Dr.length<Xi;){var Xo=xr[Wr],ms=ie?ie(Xo):Xo;if(Xo=Le||0!==Xo?Xo:0,!(vo?eo(vo,ms):Et(Dr,ms,Le))){for(Ei=ei;--Ei;){var Xs=Gi[Ei];if(!(Xs?eo(Xs,ms):Et(H[Ei],ms,Le)))continue e}vo&&vo.push(ms),Dr.push(Xo)}}return Dr}function Tl(H,ie,Le){var Et=null==(H=Nc(H,ie=Qa(ie,H)))?H:H[ou(Is(ie))];return null==Et?l:zi(Et,H,Le)}function Ma(H){return fl(H)&&to(H)==N}function ma(H,ie,Le,Et,Mn){return H===ie||(null==H||null==ie||!fl(H)&&!fl(ie)?H!=H&&ie!=ie:function ca(H,ie,Le,Et,Mn,ei){var Ei=Ps(H),Gi=Ps(ie),Xi=Ei?se:Ol(H),Dr=Gi?se:Ol(ie),xr=(Xi=Xi==N?$e:Xi)==$e,Wr=(Dr=Dr==N?$e:Dr)==$e,vo=Xi==Dr;if(vo&&cu(H)){if(!cu(ie))return!1;Ei=!0,xr=!1}if(vo&&!xr)return ei||(ei=new $i),Ei||du(H)?tg(H,ie,Le,Et,Mn,ei):function ku(H,ie,Le,Et,Mn,ei,Ei){switch(Le){case Gt:if(H.byteLength!=ie.byteLength||H.byteOffset!=ie.byteOffset)return!1;H=H.buffer,ie=ie.buffer;case ct:return!(H.byteLength!=ie.byteLength||!ei(new tc(H),new tc(ie)));case Z:case de:case Me:return Ll(+H,+ie);case pe:return H.name==ie.name&&H.message==ie.message;case qt:case Re:return H==ie+"";case De:var Gi=qs;case ye:if(Gi||(Gi=za),H.size!=ie.size&&!(1&Et))return!1;var Dr=Ei.get(H);if(Dr)return Dr==ie;Et|=2,Ei.set(H,ie);var xr=tg(Gi(H),Gi(ie),Et,Mn,ei,Ei);return Ei.delete(H),xr;case Ze:if(pr)return pr.call(H)==pr.call(ie)}return!1}(H,ie,Xi,Le,Et,Mn,ei);if(!(1&Le)){var Xo=xr&&bo.call(H,"__wrapped__"),ms=Wr&&bo.call(ie,"__wrapped__");if(Xo||ms){var Xs=Xo?H.value():H,Jo=ms?ie.value():ie;return ei||(ei=new $i),Mn(Xs,Jo,Le,Et,ei)}}return!!vo&&(ei||(ei=new $i),function Nu(H,ie,Le,Et,Mn,ei){var Ei=1&Le,Gi=nu(H),Xi=Gi.length;if(Xi!=nu(ie).length&&!Ei)return!1;for(var Wr=Xi;Wr--;){var vo=Gi[Wr];if(!(Ei?vo in ie:bo.call(ie,vo)))return!1}var Xo=ei.get(H),ms=ei.get(ie);if(Xo&&ms)return Xo==ie&&ms==H;var Xs=!0;ei.set(H,ie),ei.set(ie,H);for(var Jo=Ei;++Wr<Xi;){var Js=H[vo=Gi[Wr]],_a=ie[vo];if(Et)var Yd=Ei?Et(_a,Js,vo,ie,H,ei):Et(Js,_a,vo,H,ie,ei);if(!(Yd===l?Js===_a||Mn(Js,_a,Le,Et,ei):Yd)){Xs=!1;break}Jo||(Jo="constructor"==vo)}if(Xs&&!Jo){var jc=H.constructor,gd=ie.constructor;jc!=gd&&"constructor"in H&&"constructor"in ie&&!("function"==typeof jc&&jc instanceof jc&&"function"==typeof gd&&gd instanceof gd)&&(Xs=!1)}return ei.delete(H),ei.delete(ie),Xs}(H,ie,Le,Et,Mn,ei))}(H,ie,Le,Et,ma,Mn))}function Cc(H,ie,Le,Et){var Mn=Le.length,ei=Mn,Ei=!Et;if(null==H)return!ei;for(H=hi(H);Mn--;){var Gi=Le[Mn];if(Ei&&Gi[2]?Gi[1]!==H[Gi[0]]:!(Gi[0]in H))return!1}for(;++Mn<ei;){var Xi=(Gi=Le[Mn])[0],Dr=H[Xi],xr=Gi[1];if(Ei&&Gi[2]){if(Dr===l&&!(Xi in H))return!1}else{var Wr=new $i;if(Et)var vo=Et(Dr,xr,Xi,H,ie,Wr);if(!(vo===l?ma(xr,Dr,3,Et,Wr):vo))return!1}}return!0}function Fs(H){return!(!il(H)||function Fp(H){return!!Ka&&Ka in H}(H))&&(Sd(H)?_c:di).test(Nd(H))}function an(H){return"function"==typeof H?H:null==H?Zl:"object"==typeof H?Ps(H)?da(H[0],H[1]):bs(H):$s(H)}function kn(H){if(!kc(H))return Ds(H);var ie=[];for(var Le in hi(H))bo.call(H,Le)&&"constructor"!=Le&&ie.push(Le);return ie}function cr(H,ie){return H<ie}function jo(H,ie){var Le=-1,Et=Bc(H)?An(H.length):[];return Rs(H,function(Mn,ei,Ei){Et[++Le]=ie(Mn,ei,Ei)}),Et}function bs(H){var ie=Zc(H);return 1==ie.length&&ie[0][2]?Rd(ie[0][0],ie[0][1]):function(Le){return Le===H||Cc(Le,H,ie)}}function da(H,ie){return kp(H)&&rg(ie)?Rd(ou(H),ie):function(Le){var Et=mp(Le,H);return Et===l&&Et===ie?sh(Le,H):ma(ie,Et,3)}}function ir(H,ie,Le,Et,Mn){H!==ie&&oc(ie,function(ei,Ei){if(Mn||(Mn=new $i),il(ei))!function us(H,ie,Le,Et,Mn,ei,Ei){var Gi=kd(H,Le),Xi=kd(ie,Le),Dr=Ei.get(Xi);if(Dr)ht(H,Le,Dr);else{var xr=ei?ei(Gi,Xi,Le+"",H,ie,Ei):l,Wr=xr===l;if(Wr){var vo=Ps(Xi),Xo=!vo&&cu(Xi),ms=!vo&&!Xo&&du(Xi);xr=Xi,vo||Xo||ms?Ps(Gi)?xr=Gi:ll(Gi)?xr=bl(Gi):Xo?(Wr=!1,xr=Yh(Xi,!0)):ms?(Wr=!1,xr=pu(Xi,!0)):xr=[]:th(Xi)||Qu(Xi)?(xr=Gi,Qu(Gi)?xr=ih(Gi):(!il(Gi)||Sd(Gi))&&(xr=Hg(Xi))):Wr=!1}Wr&&(Ei.set(Xi,xr),Mn(xr,Xi,Et,ei,Ei),Ei.delete(Xi)),ht(H,Le,xr)}}(H,ie,Ei,Le,ir,Et,Mn);else{var Gi=Et?Et(kd(H,Ei),ei,Ei+"",H,ie,Mn):l;Gi===l&&(Gi=ei),ht(H,Ei,Gi)}},Aa)}function $c(H,ie){var Le=H.length;if(Le)return ad(ie+=ie<0?Le:0,Le)?H[ie]:l}function wd(H,ie,Le){ie=ie.length?Nt(ie,function(ei){return Ps(ei)?function(Ei){return Vl(Ei,1===ei.length?ei[0]:ei)}:ei}):[Zl];var Et=-1;return ie=Nt(ie,fs(qo())),function ti(Ai,lt){var An=Ai.length;for(Ai.sort(lt);An--;)Ai[An]=Ai[An].value;return Ai}(jo(H,function(ei,Ei,Gi){return{criteria:Nt(ie,function(Dr){return Dr(ei)}),index:++Et,value:ei}}),function(ei,Ei){return function Kh(H,ie,Le){for(var Et=-1,Mn=H.criteria,ei=ie.criteria,Ei=Mn.length,Gi=Le.length;++Et<Ei;){var Xi=zc(Mn[Et],ei[Et]);if(Xi)return Et>=Gi?Xi:Xi*("desc"==Le[Et]?-1:1)}return H.index-ie.index}(ei,Ei,Le)})}function xp(H,ie,Le){for(var Et=-1,Mn=ie.length,ei={};++Et<Mn;){var Ei=ie[Et],Gi=Vl(H,Ei);Le(Gi,Ei)&&Id(ei,Qa(Ei,H),Gi)}return ei}function Sc(H,ie,Le,Et){var Mn=Et?cl:Po,ei=-1,Ei=ie.length,Gi=H;for(H===ie&&(ie=bl(ie)),Le&&(Gi=Nt(H,fs(Le)));++ei<Ei;)for(var Xi=0,Dr=ie[ei],xr=Le?Le(Dr):Dr;(Xi=Mn(Gi,xr,Xi,Et))>-1;)Gi!==H&&zl.call(Gi,Xi,1),zl.call(H,Xi,1);return H}function Xd(H,ie){for(var Le=H?ie.length:0,Et=Le-1;Le--;){var Mn=ie[Le];if(Le==Et||Mn!==ei){var ei=Mn;ad(Mn)?zl.call(H,Mn,1):jh(H,Mn)}}return H}function Du(H,ie){return H+ns(Es()*(ie-H+1))}function kg(H,ie){var Le="";if(!H||ie<1||ie>te)return Le;do{ie%2&&(Le+=H),(ie=ns(ie/2))&&(H+=H)}while(ie);return Le}function Cs(H,ie){return Gp(Ld(H,ie,Zl),H+"")}function Ks(H){return Te(M(H))}function Td(H,ie){var Le=M(H);return $g(Le,Oo(ie,0,Le.length))}function Id(H,ie,Le,Et){if(!il(H))return H;for(var Mn=-1,ei=(ie=Qa(ie,H)).length,Ei=ei-1,Gi=H;null!=Gi&&++Mn<ei;){var Xi=ou(ie[Mn]),Dr=Le;if("__proto__"===Xi||"constructor"===Xi||"prototype"===Xi)return H;if(Mn!=Ei){var xr=Gi[Xi];(Dr=Et?Et(xr,Xi,Gi):l)===l&&(Dr=il(xr)?xr:ad(ie[Mn+1])?[]:{})}Kt(Gi,Xi,Dr),Gi=Gi[Xi]}return H}var Ac=Ot?function(H,ie){return Ot.set(H,ie),H}:Zl,Ad=ft?function(H,ie){return ft(H,"toString",{configurable:!0,enumerable:!1,value:kh(ie),writable:!0})}:Zl;function Mm(H){return $g(M(H))}function Mc(H,ie,Le){var Et=-1,Mn=H.length;ie<0&&(ie=-ie>Mn?0:Mn+ie),(Le=Le>Mn?Mn:Le)<0&&(Le+=Mn),Mn=ie>Le?0:Le-ie>>>0,ie>>>=0;for(var ei=An(Mn);++Et<Mn;)ei[Et]=H[Et+ie];return ei}function Tp(H,ie){var Le;return Rs(H,function(Et,Mn,ei){return!(Le=ie(Et,Mn,ei))}),!!Le}function Zd(H,ie,Le){var Et=0,Mn=null==H?Et:H.length;if("number"==typeof ie&&ie==ie&&Mn<=2147483647){for(;Et<Mn;){var ei=Et+Mn>>>1,Ei=H[ei];null!==Ei&&!Gc(Ei)&&(Le?Ei<=ie:Ei<ie)?Et=ei+1:Mn=ei}return Mn}return Vh(H,ie,Zl,Le)}function Vh(H,ie,Le,Et){var Mn=0,ei=null==H?0:H.length;if(0===ei)return 0;for(var Ei=(ie=Le(ie))!=ie,Gi=null===ie,Xi=Gc(ie),Dr=ie===l;Mn<ei;){var xr=ns((Mn+ei)/2),Wr=Le(H[xr]),vo=Wr!==l,Xo=null===Wr,ms=Wr==Wr,Xs=Gc(Wr);if(Ei)var Jo=Et||ms;else Jo=Dr?ms&&(Et||vo):Gi?ms&&vo&&(Et||!Xo):Xi?ms&&vo&&!Xo&&(Et||!Xs):!Xo&&!Xs&&(Et?Wr<=ie:Wr<ie);Jo?Mn=xr+1:ei=xr}return Vo(ei,4294967294)}function Hh(H,ie){for(var Le=-1,Et=H.length,Mn=0,ei=[];++Le<Et;){var Ei=H[Le],Gi=ie?ie(Ei):Ei;if(!Le||!Ll(Gi,Xi)){var Xi=Gi;ei[Mn++]=0===Ei?0:Ei}}return ei}function Ng(H){return"number"==typeof H?H:Gc(H)?NaN:+H}function Kl(H){if("string"==typeof H)return H;if(Ps(H))return Nt(H,Kl)+"";if(Gc(H))return co?co.call(H):"";var ie=H+"";return"0"==ie&&1/H==-z?"-0":ie}function Dd(H,ie,Le){var Et=-1,Mn=Wt,ei=H.length,Ei=!0,Gi=[],Xi=Gi;if(Le)Ei=!1,Mn=On;else if(ei>=200){var Dr=ie?null:Pm(H);if(Dr)return za(Dr);Ei=!1,Mn=eo,Xi=new Dt}else Xi=ie?[]:Gi;e:for(;++Et<ei;){var xr=H[Et],Wr=ie?ie(xr):xr;if(xr=Le||0!==xr?xr:0,Ei&&Wr==Wr){for(var vo=Xi.length;vo--;)if(Xi[vo]===Wr)continue e;ie&&Xi.push(Wr),Gi.push(xr)}else Mn(Xi,Wr,Le)||(Xi!==Gi&&Xi.push(Wr),Gi.push(xr))}return Gi}function jh(H,ie){return null==(H=Nc(H,ie=Qa(ie,H)))||delete H[ou(Is(ie))]}function Wh(H,ie,Le,Et){return Id(H,ie,Le(Vl(H,ie)),Et)}function gh(H,ie,Le,Et){for(var Mn=H.length,ei=Et?Mn:-1;(Et?ei--:++ei<Mn)&&ie(H[ei],ei,H););return Le?Mc(H,Et?0:ei,Et?ei+1:Mn):Mc(H,Et?ei+1:0,Et?Mn:ei)}function ph(H,ie){var Le=H;return Le instanceof $o&&(Le=Le.value()),Bi(ie,function(Et,Mn){return Mn.func.apply(Mn.thisArg,gi([Et],Mn.args))},Le)}function mh(H,ie,Le){var Et=H.length;if(Et<2)return Et?Dd(H[0]):[];for(var Mn=-1,ei=An(Et);++Mn<Et;)for(var Ei=H[Mn],Gi=-1;++Gi<Et;)Gi!=Mn&&(ei[Mn]=pa(ei[Mn]||Ei,H[Gi],ie,Le));return Dd(Ro(ei,1),ie,Le)}function $h(H,ie,Le){for(var Et=-1,Mn=H.length,ei=ie.length,Ei={};++Et<Mn;)Le(Ei,H[Et],Et<ei?ie[Et]:l);return Ei}function od(H){return ll(H)?H:[]}function fh(H){return"function"==typeof H?H:Zl}function Qa(H,ie){return Ps(H)?H:kp(H,ie)?[H]:Vp(ba(H))}var Yc=Cs;function Qs(H,ie,Le){var Et=H.length;return Le=Le===l?Et:Le,!ie&&Le>=Et?H:Mc(H,ie,Le)}var Fg=Gn||function(H){return ys.clearTimeout(H)};function Yh(H,ie){if(ie)return H.slice();var Le=H.length,Et=Ic?Ic(Le):new H.constructor(Le);return H.copy(Et),Et}function zh(H){var ie=new H.constructor(H.byteLength);return new tc(ie).set(new tc(H)),ie}function pu(H,ie){var Le=ie?zh(H.buffer):H.buffer;return new H.constructor(Le,H.byteOffset,H.length)}function zc(H,ie){if(H!==ie){var Le=H!==l,Et=null===H,Mn=H==H,ei=Gc(H),Ei=ie!==l,Gi=null===ie,Xi=ie==ie,Dr=Gc(ie);if(!Gi&&!Dr&&!ei&&H>ie||ei&&Ei&&Xi&&!Gi&&!Dr||Et&&Ei&&Xi||!Le&&Xi||!Mn)return 1;if(!Et&&!ei&&!Dr&&H<ie||Dr&&Le&&Mn&&!Et&&!ei||Gi&&Le&&Mn||!Ei&&Mn||!Xi)return-1}return 0}function Xh(H,ie,Le,Et){for(var Mn=-1,ei=H.length,Ei=Le.length,Gi=-1,Xi=ie.length,Dr=Qo(ei-Ei,0),xr=An(Xi+Dr),Wr=!Et;++Gi<Xi;)xr[Gi]=ie[Gi];for(;++Mn<Ei;)(Wr||Mn<ei)&&(xr[Le[Mn]]=H[Mn]);for(;Dr--;)xr[Gi++]=H[Mn++];return xr}function Qd(H,ie,Le,Et){for(var Mn=-1,ei=H.length,Ei=-1,Gi=Le.length,Xi=-1,Dr=ie.length,xr=Qo(ei-Gi,0),Wr=An(xr+Dr),vo=!Et;++Mn<xr;)Wr[Mn]=H[Mn];for(var Xo=Mn;++Xi<Dr;)Wr[Xo+Xi]=ie[Xi];for(;++Ei<Gi;)(vo||Mn<ei)&&(Wr[Xo+Le[Ei]]=H[Mn++]);return Wr}function bl(H,ie){var Le=-1,Et=H.length;for(ie||(ie=An(Et));++Le<Et;)ie[Le]=H[Le];return ie}function Dc(H,ie,Le,Et){var Mn=!Le;Le||(Le={});for(var ei=-1,Ei=ie.length;++ei<Ei;){var Gi=ie[ei],Xi=Et?Et(Le[Gi],H[Gi],Gi,Le,H):l;Xi===l&&(Xi=H[Gi]),Mn?Er(Le,Gi,Xi):Kt(Le,Gi,Xi)}return Le}function mu(H,ie){return function(Le,Et){var Mn=Ps(Le)?Ki:ii,ei=ie?ie():{};return Mn(Le,H,qo(Et,2),ei)}}function Rc(H){return Cs(function(ie,Le){var Et=-1,Mn=Le.length,ei=Mn>1?Le[Mn-1]:l,Ei=Mn>2?Le[2]:l;for(ei=H.length>3&&"function"==typeof ei?(Mn--,ei):l,Ei&&lc(Le[0],Le[1],Ei)&&(ei=Mn<3?l:ei,Mn=1),ie=hi(ie);++Et<Mn;){var Gi=Le[Et];Gi&&H(ie,Gi,Et,ei)}return ie})}function Ru(H,ie){return function(Le,Et){if(null==Le)return Le;if(!Bc(Le))return H(Le,Et);for(var Mn=Le.length,ei=ie?Mn:-1,Ei=hi(Le);(ie?ei--:++ei<Mn)&&!1!==Et(Ei[ei],ei,Ei););return Le}}function Zh(H){return function(ie,Le,Et){for(var Mn=-1,ei=hi(ie),Ei=Et(ie),Gi=Ei.length;Gi--;){var Xi=Ei[H?Gi:++Mn];if(!1===Le(ei[Xi],Xi,ei))break}return ie}}function Qh(H){return function(ie){var Le=rr(ie=ba(ie))?ks(ie):l,Et=Le?Le[0]:ie.charAt(0),Mn=Le?Qs(Le,1).join(""):ie.slice(1);return Et[H]()+Mn}}function qd(H){return function(ie){return Bi(ud(Yt(ie).replace(tn,"")),H,"")}}function Jh(H){return function(){var ie=arguments;switch(ie.length){case 0:return new H;case 1:return new H(ie[0]);case 2:return new H(ie[0],ie[1]);case 3:return new H(ie[0],ie[1],ie[2]);case 4:return new H(ie[0],ie[1],ie[2],ie[3]);case 5:return new H(ie[0],ie[1],ie[2],ie[3],ie[4]);case 6:return new H(ie[0],ie[1],ie[2],ie[3],ie[4],ie[5]);case 7:return new H(ie[0],ie[1],ie[2],ie[3],ie[4],ie[5],ie[6])}var Le=so(H.prototype),Et=H.apply(Le,ie);return il(Et)?Et:Le}}function Bg(H){return function(ie,Le,Et){var Mn=hi(ie);if(!Bc(ie)){var ei=qo(Le,3);ie=Na(ie),Le=function(Gi){return ei(Mn[Gi],Gi,Mn)}}var Ei=H(ie,Le,Et);return Ei>-1?Mn[ei?ie[Ei]:Ei]:l}}function qh(H){return Kc(function(ie){var Le=ie.length,Et=Le,Mn=jr.prototype.thru;for(H&&ie.reverse();Et--;){var ei=ie[Et];if("function"!=typeof ei)throw new Nn(P);if(Mn&&!Ei&&"wrapper"==Xc(ei))var Ei=new jr([],!0)}for(Et=Ei?Et:Le;++Et<Le;){var Gi=Xc(ei=ie[Et]),Xi="wrapper"==Gi?md(ei):l;Ei=Xi&&jg(Xi[0])&&424==Xi[1]&&!Xi[4].length&&1==Xi[9]?Ei[Xc(Xi[0])].apply(Ei,Xi[3]):1==ei.length&&jg(ei)?Ei[Gi]():Ei.thru(ei)}return function(){var Dr=arguments,xr=Dr[0];if(Ei&&1==Dr.length&&Ps(xr))return Ei.plant(xr).value();for(var Wr=0,vo=Le?ie[Wr].apply(this,Dr):xr;++Wr<Le;)vo=ie[Wr].call(this,vo);return vo}})}function eu(H,ie,Le,Et,Mn,ei,Ei,Gi,Xi,Dr){var xr=ie&F,Wr=1&ie,vo=2&ie,Xo=24&ie,ms=512&ie,Xs=vo?l:Jh(H);return function Jo(){for(var Js=arguments.length,_a=An(Js),Yd=Js;Yd--;)_a[Yd]=arguments[Yd];if(Xo)var jc=iu(Jo),gd=function kr(Ai,lt){for(var An=Ai.length,St=0;An--;)Ai[An]===lt&&++St;return St}(_a,jc);if(Et&&(_a=Xh(_a,Et,Mn,Xo)),ei&&(_a=Qd(_a,ei,Ei,Xo)),Js-=gd,Xo&&Js<Dr){var _l=ea(_a,jc);return _u(H,ie,eu,Jo.placeholder,Le,_a,_l,Gi,Xi,Dr-Js)}var yd=Wr?Le:this,Nh=vo?yd[H]:H;return Js=_a.length,Gi?_a=function ld(H,ie){for(var Le=H.length,Et=Vo(ie.length,Le),Mn=bl(H);Et--;){var ei=ie[Et];H[Et]=ad(ei,Le)?Mn[ei]:l}return H}(_a,Gi):ms&&Js>1&&_a.reverse(),xr&&Xi<Js&&(_a.length=Xi),this&&this!==ys&&this instanceof Jo&&(Nh=Xs||Jh(Nh)),Nh.apply(yd,_a)}}function Rp(H,ie){return function(Le,Et){return function tl(H,ie,Le,Et){return wa(H,function(Mn,ei,Ei){ie(Et,Le(Mn),ei,Ei)}),Et}(Le,H,ie(Et),{})}}function fu(H,ie){return function(Le,Et){var Mn;if(Le===l&&Et===l)return ie;if(Le!==l&&(Mn=Le),Et!==l){if(Mn===l)return Et;"string"==typeof Le||"string"==typeof Et?(Le=Kl(Le),Et=Kl(Et)):(Le=Ng(Le),Et=Ng(Et)),Mn=H(Le,Et)}return Mn}}function eg(H){return Kc(function(ie){return ie=Nt(ie,fs(qo())),Cs(function(Le){var Et=this;return H(ie,function(Mn){return zi(Mn,Et,Le)})})})}function Lu(H,ie){var Le=(ie=ie===l?" ":Kl(ie)).length;if(Le<2)return Le?kg(ie,H):ie;var Et=kg(ie,Ur(H/Ts(ie)));return rr(ie)?Qs(ks(Et),0,H).join(""):Et.slice(0,H)}function Gg(H){return function(ie,Le,Et){return Et&&"number"!=typeof Et&&lc(ie,Le,Et)&&(Le=Et=l),ie=Gd(ie),Le===l?(Le=ie,ie=0):Le=Gd(Le),function wp(H,ie,Le,Et){for(var Mn=-1,ei=Qo(Ur((ie-H)/(Le||1)),0),Ei=An(ei);ei--;)Ei[Et?ei:++Mn]=H,H+=Le;return Ei}(ie,Le,Et=Et===l?ie<Le?1:-1:Gd(Et),H)}}function _h(H){return function(ie,Le){return"string"==typeof ie&&"string"==typeof Le||(ie=dd(ie),Le=dd(Le)),H(ie,Le)}}function _u(H,ie,Le,Et,Mn,ei,Ei,Gi,Xi,Dr){var xr=8&ie;ie|=xr?V:64,4&(ie&=~(xr?64:V))||(ie&=-4);var Xs=[H,ie,Mn,xr?ei:l,xr?Ei:l,xr?l:ei,xr?l:Ei,Gi,Xi,Dr],Jo=Le.apply(l,Xs);return jg(H)&&ru(Jo,Xs),Jo.placeholder=Et,Wg(Jo,H,ie)}function ac(H){var ie=hn[H];return function(Le,Et){if(Le=dd(Le),(Et=null==Et?0:Vo(xs(Et),292))&&Yo(Le)){var Mn=(ba(Le)+"e").split("e");return+((Mn=(ba(ie(Mn[0]+"e"+(+Mn[1]+Et)))+"e").split("e"))[0]+"e"+(+Mn[1]-Et))}return ie(Le)}}var Pm=gs&&1/za(new gs([,-0]))[1]==z?function(H){return new gs(H)}:hd;function yc(H){return function(ie){var Le=Ol(ie);return Le==De?qs(ie):Le==ye?function dl(Ai){var lt=-1,An=Array(Ai.size);return Ai.forEach(function(St){An[++lt]=[St,St]}),An}(ie):function zs(Ai,lt){return Nt(lt,function(An){return[An,Ai[An]]})}(ie,H(ie))}}function Ra(H,ie,Le,Et,Mn,ei,Ei,Gi){var Xi=2&ie;if(!Xi&&"function"!=typeof H)throw new Nn(P);var Dr=Et?Et.length:0;if(Dr||(ie&=-97,Et=Mn=l),Ei=Ei===l?Ei:Qo(xs(Ei),0),Gi=Gi===l?Gi:xs(Gi),Dr-=Mn?Mn.length:0,64&ie){var xr=Et,Wr=Mn;Et=Mn=l}var vo=Xi?l:md(H),Xo=[H,ie,Le,Et,Mn,xr,Wr,ei,Ei,Gi];if(vo&&function cc(H,ie){var Le=H[1],Et=ie[1],Mn=Le|Et;if(!(Mn<131)&&!(Et==F&&8==Le||Et==F&&256==Le&&H[7].length<=ie[8]||384==Et&&ie[7].length<=ie[8]&&8==Le))return H;1&Et&&(H[2]=ie[2],Mn|=1&Le?0:4);var Gi=ie[3];if(Gi){var Xi=H[3];H[3]=Xi?Xh(Xi,Gi,ie[4]):Gi,H[4]=Xi?ea(H[3],y):ie[4]}(Gi=ie[5])&&(H[5]=(Xi=H[5])?Qd(Xi,Gi,ie[6]):Gi,H[6]=Xi?ea(H[5],y):ie[6]),(Gi=ie[7])&&(H[7]=Gi),Et&F&&(H[8]=null==H[8]?ie[8]:Vo(H[8],ie[8])),null==H[9]&&(H[9]=ie[9]),H[0]=ie[0],H[1]=Mn}(Xo,vo),H=Xo[0],ie=Xo[1],Le=Xo[2],Et=Xo[3],Mn=Xo[4],!(Gi=Xo[9]=Xo[9]===l?Xi?0:H.length:Qo(Xo[9]-Dr,0))&&24&ie&&(ie&=-25),ie&&1!=ie)ms=8==ie||16==ie?function bm(H,ie,Le){var Et=Jh(H);return function Mn(){for(var ei=arguments.length,Ei=An(ei),Gi=ei,Xi=iu(Mn);Gi--;)Ei[Gi]=arguments[Gi];var Dr=ei<3&&Ei[0]!==Xi&&Ei[ei-1]!==Xi?[]:ea(Ei,Xi);return(ei-=Dr.length)<Le?_u(H,ie,eu,Mn.placeholder,l,Ei,Dr,l,l,Le-ei):zi(this&&this!==ys&&this instanceof Mn?Et:H,this,Ei)}}(H,ie,Gi):ie!=V&&33!=ie||Mn.length?eu.apply(l,Xo):function sf(H,ie,Le,Et){var Mn=1&ie,ei=Jh(H);return function Ei(){for(var Gi=-1,Xi=arguments.length,Dr=-1,xr=Et.length,Wr=An(xr+Xi),vo=this&&this!==ys&&this instanceof Ei?ei:H;++Dr<xr;)Wr[Dr]=Et[Dr];for(;Xi--;)Wr[Dr++]=arguments[++Gi];return zi(vo,Mn?Le:this,Wr)}}(H,ie,Le,Et);else var ms=function Jd(H,ie,Le){var Et=1&ie,Mn=Jh(H);return function ei(){return(this&&this!==ys&&this instanceof ei?Mn:H).apply(Et?Le:this,arguments)}}(H,ie,Le);return Wg((vo?Ac:ru)(ms,Xo),H,ie)}function Vg(H,ie,Le,Et){return H===l||Ll(H,Ao[Le])&&!bo.call(Et,Le)?ie:H}function vu(H,ie,Le,Et,Mn,ei){return il(H)&&il(ie)&&(ei.set(ie,H),ir(H,ie,l,vu,ei),ei.delete(ie)),H}function tu(H){return th(H)?l:H}function tg(H,ie,Le,Et,Mn,ei){var Ei=1&Le,Gi=H.length,Xi=ie.length;if(Gi!=Xi&&!(Ei&&Xi>Gi))return!1;var Dr=ei.get(H),xr=ei.get(ie);if(Dr&&xr)return Dr==ie&&xr==H;var Wr=-1,vo=!0,Xo=2&Le?new Dt:l;for(ei.set(H,ie),ei.set(ie,H);++Wr<Gi;){var ms=H[Wr],Xs=ie[Wr];if(Et)var Jo=Ei?Et(Xs,ms,Wr,ie,H,ei):Et(ms,Xs,Wr,H,ie,ei);if(Jo!==l){if(Jo)continue;vo=!1;break}if(Xo){if(!tr(ie,function(Js,_a){if(!eo(Xo,_a)&&(ms===Js||Mn(ms,Js,Le,Et,ei)))return Xo.push(_a)})){vo=!1;break}}else if(ms!==Xs&&!Mn(ms,Xs,Le,Et,ei)){vo=!1;break}}return ei.delete(H),ei.delete(ie),vo}function Kc(H){return Gp(Ld(H,l,Gu),H+"")}function nu(H){return ol(H,Na,vh)}function ng(H){return ol(H,Aa,Lc)}var md=Ot?function(H){return Ot.get(H)}:hd;function Xc(H){for(var ie=H.name+"",Le=pt[ie],Et=bo.call(pt,ie)?Le.length:0;Et--;){var Mn=Le[Et],ei=Mn.func;if(null==ei||ei==H)return Mn.name}return ie}function iu(H){return(bo.call(bn,"placeholder")?bn:H).placeholder}function qo(){var H=bn.iteratee||Md;return H=H===Md?an:H,arguments.length?H(arguments[0],arguments[1]):H}function bc(H,ie){var Le=H.__data__;return function Np(H){var ie=typeof H;return"string"==ie||"number"==ie||"symbol"==ie||"boolean"==ie?"__proto__"!==H:null===H}(ie)?Le["string"==typeof ie?"string":"hash"]:Le.map}function Zc(H){for(var ie=Na(H),Le=ie.length;Le--;){var Et=ie[Le],Mn=H[Et];ie[Le]=[Et,Mn,rg(Mn)]}return ie}function Qc(H,ie){var Le=function ho(Ai,lt){return null==Ai?l:Ai[lt]}(H,ie);return Fs(Le)?Le:l}var vh=No?function(H){return null==H?[]:(H=hi(H),en(No(H),function(ie){return ul.call(H,ie)}))}:Mp,Lc=No?function(H){for(var ie=[];H;)gi(ie,vh(H)),H=nc(H);return ie}:Mp,Ol=to;function Fu(H,ie,Le){for(var Et=-1,Mn=(ie=Qa(ie,H)).length,ei=!1;++Et<Mn;){var Ei=ou(ie[Et]);if(!(ei=null!=H&&Le(H,Ei)))break;H=H[Ei]}return ei||++Et!=Mn?ei:!!(Mn=null==H?0:H.length)&&Mg(Mn)&&ad(Ei,Mn)&&(Ps(H)||Qu(H))}function Hg(H){return"function"!=typeof H.constructor||kc(H)?{}:so(nc(H))}function sl(H){return Ps(H)||Qu(H)||!!(He&&H&&H[He])}function ad(H,ie){var Le=typeof H;return!!(ie=ie??te)&&("number"==Le||"symbol"!=Le&&vi.test(H))&&H>-1&&H%1==0&&H<ie}function lc(H,ie,Le){if(!il(Le))return!1;var Et=typeof ie;return!!("number"==Et?Bc(Le)&&ad(ie,Le.length):"string"==Et&&ie in Le)&&Ll(Le[ie],H)}function kp(H,ie){if(Ps(H))return!1;var Le=typeof H;return!("number"!=Le&&"symbol"!=Le&&"boolean"!=Le&&null!=H&&!Gc(H))||jn.test(H)||!Ut.test(H)||null!=ie&&H in hi(ie)}function jg(H){var ie=Xc(H),Le=bn[ie];if("function"!=typeof Le||!(ie in $o.prototype))return!1;if(H===Le)return!0;var Et=md(Le);return!!Et&&H===Et[0]}(Vs&&Ol(new Vs(new ArrayBuffer(1)))!=Gt||ia&&Ol(new ia)!=De||hl&&Ol(hl.resolve())!=Oe||gs&&Ol(new gs)!=ye||xa&&Ol(new xa)!=xt)&&(Ol=function(H){var ie=to(H),Le=ie==$e?H.constructor:l,Et=Le?Nd(Le):"";if(Et)switch(Et){case ut:return Gt;case Pn:return De;case Qn:return Oe;case Ui:return ye;case Ar:return xt}return ie});var Up=Wo?Sd:vf;function kc(H){var ie=H&&H.constructor;return H===("function"==typeof ie&&ie.prototype||Ao)}function rg(H){return H==H&&!il(H)}function Rd(H,ie){return function(Le){return null!=Le&&Le[H]===ie&&(ie!==l||H in hi(Le))}}function Ld(H,ie,Le){return ie=Qo(ie===l?H.length-1:ie,0),function(){for(var Et=arguments,Mn=-1,ei=Qo(Et.length-ie,0),Ei=An(ei);++Mn<ei;)Ei[Mn]=Et[ie+Mn];Mn=-1;for(var Gi=An(ie+1);++Mn<ie;)Gi[Mn]=Et[Mn];return Gi[ie]=Le(Ei),zi(H,this,Gi)}}function Nc(H,ie){return ie.length<2?H:Vl(H,Mc(ie,0,-1))}function kd(H,ie){if(("constructor"!==ie||"function"!=typeof H[ie])&&"__proto__"!=ie)return H[ie]}var ru=Cu(Ac),Bu=lr||function(H,ie){return ys.setTimeout(H,ie)},Gp=Cu(Ad);function Wg(H,ie,Le){var Et=ie+"";return Gp(H,function ig(H,ie){var Le=ie.length;if(!Le)return H;var Et=Le-1;return ie[Et]=(Le>1?"& ":"")+ie[Et],ie=ie.join(Le>2?", ":" "),H.replace(wt,"{\n/* [wrapped with "+ie+"] */\n")}(Et,function Hp(H,ie){return Vi(ue,function(Le){var Et="_."+Le[0];ie&Le[1]&&!Wt(H,Et)&&H.push(Et)}),H.sort()}(function Il(H){var ie=H.match(Un);return ie?ie[1].split(Oi):[]}(Et),Le)))}function Cu(H){var ie=0,Le=0;return function(){var Et=Ir(),Mn=16-(Et-Le);if(Le=Et,Mn>0){if(++ie>=800)return arguments[0]}else ie=0;return H.apply(l,arguments)}}function $g(H,ie){var Le=-1,Et=H.length,Mn=Et-1;for(ie=ie===l?Et:ie;++Le<ie;){var ei=Du(Le,Mn),Ei=H[ei];H[ei]=H[Le],H[Le]=Ei}return H.length=ie,H}var Vp=function Bp(H){var ie=Uc(H,function(Et){return 500===Le.size&&Le.clear(),Et}),Le=ie.cache;return ie}(function(H){var ie=[];return 46===H.charCodeAt(0)&&ie.push(""),H.replace(wn,function(Le,Et,Mn,ei){ie.push(Mn?ei.replace(pi,"$1"):Et||Le)}),ie});function ou(H){if("string"==typeof H||Gc(H))return H;var ie=H+"";return"0"==ie&&1/H==-z?"-0":ie}function Nd(H){if(null!=H){try{return ta.call(H)}catch{}try{return H+""}catch{}}return""}function fd(H){if(H instanceof $o)return H.clone();var ie=new jr(H.__wrapped__,H.__chain__);return ie.__actions__=bl(H.__actions__),ie.__index__=H.__index__,ie.__values__=H.__values__,ie}var Yg=Cs(function(H,ie){return ll(H)?pa(H,Ro(ie,1,ll,!0)):[]}),Fd=Cs(function(H,ie){var Le=Is(ie);return ll(Le)&&(Le=l),ll(H)?pa(H,Ro(ie,1,ll,!0),qo(Le,2)):[]}),Om=Cs(function(H,ie){var Le=Is(ie);return ll(Le)&&(Le=l),ll(H)?pa(H,Ro(ie,1,ll,!0),l,Le):[]});function Al(H,ie,Le){var Et=null==H?0:H.length;if(!Et)return-1;var Mn=null==Le?0:xs(Le);return Mn<0&&(Mn=Qo(Et+Mn,0)),Ys(H,qo(ie,3),Mn)}function Fc(H,ie,Le){var Et=null==H?0:H.length;if(!Et)return-1;var Mn=Et-1;return Le!==l&&(Mn=xs(Le),Mn=Le<0?Qo(Et+Mn,0):Vo(Mn,Et-1)),Ys(H,qo(ie,3),Mn,!0)}function Gu(H){return null!=H&&H.length?Ro(H,1):[]}function sg(H){return H&&H.length?H[0]:l}var Hl=Cs(function(H){var ie=Nt(H,od);return ie.length&&ie[0]===H[0]?Za(ie):[]}),Vu=Cs(function(H){var ie=Is(H),Le=Nt(H,od);return ie===Is(Le)?ie=l:Le.pop(),Le.length&&Le[0]===H[0]?Za(Le,qo(ie,2)):[]}),Jc=Cs(function(H){var ie=Is(H),Le=Nt(H,od);return(ie="function"==typeof ie?ie:l)&&Le.pop(),Le.length&&Le[0]===H[0]?Za(Le,l,ie):[]});function Is(H){var ie=null==H?0:H.length;return ie?H[ie-1]:l}var zp=Cs(Tm);function Tm(H,ie){return H&&H.length&&ie&&ie.length?Sc(H,ie):H}var Xg=Kc(function(H,ie){var Le=null==H?0:H.length,Et=Vr(H,ie);return Xd(H,Nt(ie,function(Mn){return ad(Mn,Le)?+Mn:Mn}).sort(zc)),Et});function Mu(H){return null==H?H:Ea.call(H)}var km=Cs(function(H){return Dd(Ro(H,1,ll,!0))}),cf=Cs(function(H){var ie=Is(H);return ll(ie)&&(ie=l),Dd(Ro(H,1,ll,!0),qo(ie,2))}),dg=Cs(function(H){var ie=Is(H);return ie="function"==typeof ie?ie:l,Dd(Ro(H,1,ll,!0),l,ie)});function ug(H){if(!H||!H.length)return[];var ie=0;return H=en(H,function(Le){if(ll(Le))return ie=Qo(Le.length,ie),!0}),wo(ie,function(Le){return Nt(H,Tt(Le))})}function Mh(H,ie){if(!H||!H.length)return[];var Le=ug(H);return null==ie?Le:Nt(Le,function(Et){return zi(ie,l,Et)})}var El=Cs(function(H,ie){return ll(H)?pa(H,ie):[]}),qg=Cs(function(H){return mh(en(H,ll))}),ep=Cs(function(H){var ie=Is(H);return ll(ie)&&(ie=l),mh(en(H,ll),qo(ie,2))}),nl=Cs(function(H){var ie=Is(H);return ie="function"==typeof ie?ie:l,mh(en(H,ll),l,ie)}),ql=Cs(ug),tp=Cs(function(H){var ie=H.length,Le=ie>1?H[ie-1]:l;return Le="function"==typeof Le?(H.pop(),Le):l,Mh(H,Le)});function gg(H){var ie=bn(H);return ie.__chain__=!0,ie}function pg(H,ie){return ie(H)}var Fm=Kc(function(H){var ie=H.length,Le=ie?H[0]:0,Et=this.__wrapped__,Mn=function(ei){return Vr(ei,H)};return!(ie>1||this.__actions__.length)&&Et instanceof $o&&ad(Le)?((Et=Et.slice(Le,+Le+(ie?1:0))).__actions__.push({func:pg,args:[Mn],thisArg:l}),new jr(Et,this.__chain__).thru(function(ei){return ie&&!ei.length&&ei.push(l),ei})):this.thru(Mn)}),yu=mu(function(H,ie,Le){bo.call(H,Le)?++H[Le]:Er(H,Le,1)}),mg=Bg(Al),bu=Bg(Fc);function zu(H,ie){return(Ps(H)?Vi:Rs)(H,qo(ie,3))}function su(H,ie){return(Ps(H)?Mr:ka)(H,qo(ie,3))}var gf=mu(function(H,ie,Le){bo.call(H,Le)?H[Le].push(ie):Er(H,Le,[ie])}),Ud=Cs(function(H,ie,Le){var Et=-1,Mn="function"==typeof ie,ei=Bc(H)?An(H.length):[];return Rs(H,function(Ei){ei[++Et]=Mn?zi(ie,Ei,Le):Tl(Ei,ie,Le)}),ei}),Gm=mu(function(H,ie,Le){Er(H,Le,ie)});function Ku(H,ie){return(Ps(H)?Nt:jo)(H,qo(ie,3))}var Hm=mu(function(H,ie,Le){H[Le?0:1].push(ie)},function(){return[[],[]]}),ip=Cs(function(H,ie){if(null==H)return[];var Le=ie.length;return Le>1&&lc(H,ie[0],ie[1])?ie=[]:Le>2&&lc(ie[0],ie[1],ie[2])&&(ie=[ie[0]]),wd(H,Ro(ie,1),[])}),Jp=bi||function(){return ys.Date.now()};function rp(H,ie,Le){return ie=Le?l:ie,Ra(H,F,l,l,l,l,ie=H&&null==ie?H.length:ie)}function ed(H,ie){var Le;if("function"!=typeof ie)throw new Nn(P);return H=xs(H),function(){return--H>0&&(Le=ie.apply(this,arguments)),H<=1&&(ie=l),Le}}var Eh=Cs(function(H,ie,Le){var Et=1;if(Le.length){var Mn=ea(Le,iu(Eh));Et|=V}return Ra(H,Et,ie,Le,Mn)}),qp=Cs(function(H,ie,Le){var Et=3;if(Le.length){var Mn=ea(Le,iu(qp));Et|=V}return Ra(ie,Et,H,Le,Mn)});function pl(H,ie,Le){var Et,Mn,ei,Ei,Gi,Xi,Dr=0,xr=!1,Wr=!1,vo=!0;if("function"!=typeof H)throw new Nn(P);function Xo(_l){var yd=Et,Nh=Mn;return Et=Mn=l,Dr=_l,Ei=H.apply(Nh,yd)}function Jo(_l){var yd=_l-Xi;return Xi===l||yd>=ie||yd<0||Wr&&_l-Dr>=ei}function Js(){var _l=Jp();if(Jo(_l))return _a(_l);Gi=Bu(Js,function Xs(_l){var Uf=ie-(_l-Xi);return Wr?Vo(Uf,ei-(_l-Dr)):Uf}(_l))}function _a(_l){return Gi=l,vo&&Et?Xo(_l):(Et=Mn=l,Ei)}function gd(){var _l=Jp(),yd=Jo(_l);if(Et=arguments,Mn=this,Xi=_l,yd){if(Gi===l)return function ms(_l){return Dr=_l,Gi=Bu(Js,ie),xr?Xo(_l):Ei}(Xi);if(Wr)return Fg(Gi),Gi=Bu(Js,ie),Xo(Xi)}return Gi===l&&(Gi=Bu(Js,ie)),Ei}return ie=dd(ie)||0,il(Le)&&(xr=!!Le.leading,ei=(Wr="maxWait"in Le)?Qo(dd(Le.maxWait)||0,ie):ei,vo="trailing"in Le?!!Le.trailing:vo),gd.cancel=function Yd(){Gi!==l&&Fg(Gi),Dr=0,Et=Xi=Mn=Gi=l},gd.flush=function jc(){return Gi===l?Ei:_a(Jp())},gd}var xh=Cs(function(H,ie){return rs(H,1,ie)}),ml=Cs(function(H,ie,Le){return rs(H,dd(ie)||0,Le)});function Uc(H,ie){if("function"!=typeof H||null!=ie&&"function"!=typeof ie)throw new Nn(P);var Le=function(){var Et=arguments,Mn=ie?ie.apply(this,Et):Et[0],ei=Le.cache;if(ei.has(Mn))return ei.get(Mn);var Ei=H.apply(this,Et);return Le.cache=ei.set(Mn,Ei)||ei,Ei};return Le.cache=new(Uc.Cache||ja),Le}function Zu(H){if("function"!=typeof H)throw new Nn(P);return function(){var ie=arguments;switch(ie.length){case 0:return!H.call(this);case 1:return!H.call(this,ie[0]);case 2:return!H.call(this,ie[0],ie[1]);case 3:return!H.call(this,ie[0],ie[1],ie[2])}return!H.apply(this,ie)}}Uc.Cache=ja;var Cd=Yc(function(H,ie){var Le=(ie=1==ie.length&&Ps(ie[0])?Nt(ie[0],fs(qo())):Nt(Ro(ie,1),fs(qo()))).length;return Cs(function(Et){for(var Mn=-1,ei=Vo(Et.length,Le);++Mn<ei;)Et[Mn]=ie[Mn].call(this,Et[Mn]);return zi(H,this,Et)})}),em=Cs(function(H,ie){var Le=ea(ie,iu(em));return Ra(H,V,l,ie,Le)}),pf=Cs(function(H,ie){var Le=ea(ie,iu(pf));return Ra(H,64,l,ie,Le)}),Wm=Kc(function(H,ie){return Ra(H,256,l,l,l,ie)});function Ll(H,ie){return H===ie||H!=H&&ie!=ie}var Ou=_h(Lo),Cg=_h(function(H,ie){return H>=ie}),Qu=Ma(function(){return arguments}())?Ma:function(H){return fl(H)&&bo.call(H,"callee")&&!ul.call(H,"callee")},Ps=An.isArray,ff=Ca?fs(Ca):function rd(H){return fl(H)&&to(H)==ct};function Bc(H){return null!=H&&Mg(H.length)&&!Sd(H)}function ll(H){return fl(H)&&Bc(H)}var cu=ds||vf,Km=ln?fs(ln):function Wc(H){return fl(H)&&to(H)==de};function Pc(H){if(!fl(H))return!1;var ie=to(H);return ie==pe||"[object DOMException]"==ie||"string"==typeof H.message&&"string"==typeof H.name&&!th(H)}function Sd(H){if(!il(H))return!1;var ie=to(H);return ie==_e||ie==ke||"[object AsyncFunction]"==ie||"[object Proxy]"==ie}function Th(H){return"number"==typeof H&&H==xs(H)}function Mg(H){return"number"==typeof H&&H>-1&&H%1==0&&H<=te}function il(H){var ie=typeof H;return null!=H&&("object"==ie||"function"==ie)}function fl(H){return null!=H&&"object"==typeof H}var Ih=Pi?fs(Pi):function yo(H){return fl(H)&&Ol(H)==De};function om(H){return"number"==typeof H||fl(H)&&to(H)==Me}function th(H){if(!fl(H)||to(H)!=$e)return!1;var ie=nc(H);if(null===ie)return!0;var Le=bo.call(ie,"constructor")&&ie.constructor;return"function"==typeof Le&&Le instanceof Le&&ta.call(Le)==Yl}var cp=Qi?fs(Qi):function fe(H){return fl(H)&&to(H)==qt},up=yi?fs(yi):function Ge(H){return fl(H)&&Ol(H)==ye};function yg(H){return"string"==typeof H||!Ps(H)&&fl(H)&&to(H)==Re}function Gc(H){return"symbol"==typeof H||fl(H)&&to(H)==Ze}var du=Di?fs(Di):function It(H){return fl(H)&&Mg(H.length)&&!!qr[to(H)]},am=_h(cr),nh=_h(function(H,ie){return H<=ie});function gp(H){if(!H)return[];if(Bc(H))return yg(H)?ks(H):bl(H);if(Lt&&H[Lt])return function aa(Ai){for(var lt,An=[];!(lt=Ai.next()).done;)An.push(lt.value);return An}(H[Lt]());var ie=Ol(H);return(ie==De?qs:ie==ye?za:M)(H)}function Gd(H){return H?(H=dd(H))===z||H===-z?17976931348623157e292*(H<0?-1:1):H==H?H:0:0===H?H:0}function xs(H){var ie=Gd(H),Le=ie%1;return ie==ie?Le?ie-Le:ie:0}function bg(H){return H?Oo(xs(H),0,ge):0}function dd(H){if("number"==typeof H)return H;if(Gc(H))return NaN;if(il(H)){var ie="function"==typeof H.valueOf?H.valueOf():H;H=il(ie)?ie+"":ie}if("string"!=typeof H)return 0===H?H:+H;H=sa(H);var Le=Qt.test(H);return Le||ji.test(H)?Ya(H.slice(2),Le?2:8):Kr.test(H)?NaN:+H}function ih(H){return Dc(H,Aa(H))}function ba(H){return null==H?"":Kl(H)}var Pg=Rc(function(H,ie){if(kc(ie)||Bc(ie))Dc(ie,Na(ie),H);else for(var Le in ie)bo.call(ie,Le)&&Kt(H,Le,ie[Le])}),Og=Rc(function(H,ie){Dc(ie,Aa(ie),H)}),Ss=Rc(function(H,ie,Le,Et){Dc(ie,Aa(ie),H,Et)}),Oc=Rc(function(H,ie,Le,Et){Dc(ie,Na(ie),H,Et)}),cm=Kc(Vr),Dh=Cs(function(H,ie){H=hi(H);var Le=-1,Et=ie.length,Mn=Et>2?ie[2]:l;for(Mn&&lc(ie[0],ie[1],Mn)&&(Et=1);++Le<Et;)for(var ei=ie[Le],Ei=Aa(ei),Gi=-1,Xi=Ei.length;++Gi<Xi;){var Dr=Ei[Gi],xr=H[Dr];(xr===l||Ll(xr,Ao[Dr])&&!bo.call(H,Dr))&&(H[Dr]=ei[Dr])}return H}),Eu=Cs(function(H){return H.push(l,vu),zi(xg,l,H)});function mp(H,ie,Le){var Et=null==H?l:Vl(H,ie);return Et===l?Le:Et}function sh(H,ie){return null!=H&&Fu(H,ie,ps)}var dm=Rp(function(H,ie,Le){null!=ie&&"function"!=typeof ie.toString&&(ie=Sl.call(ie)),H[ie]=Le},kh(Zl)),fp=Rp(function(H,ie,Le){null!=ie&&"function"!=typeof ie.toString&&(ie=Sl.call(ie)),bo.call(H,ie)?H[ie].push(Le):H[ie]=[Le]},qo),hu=Cs(Tl);function Na(H){return Bc(H)?Bt(H):kn(H)}function Aa(H){return Bc(H)?Bt(H,!0):function Ni(H){if(!il(H))return function af(H){var ie=[];if(null!=H)for(var Le in hi(H))ie.push(Le);return ie}(H);var ie=kc(H),Le=[];for(var Et in H)"constructor"==Et&&(ie||!bo.call(H,Et))||Le.push(Et);return Le}(H)}var Lh=Rc(function(H,ie,Le){ir(H,ie,Le)}),xg=Rc(function(H,ie,Le,Et){ir(H,ie,Le,Et)}),um=Kc(function(H,ie){var Le={};if(null==H)return Le;var Et=!1;ie=Nt(ie,function(ei){return ei=Qa(ei,H),Et||(Et=ei.length>1),ei}),Dc(H,ng(H),Le),Et&&(Le=uo(Le,7,tu));for(var Mn=ie.length;Mn--;)jh(Le,ie[Mn]);return Le}),Vd=Kc(function(H,ie){return null==H?{}:function Ta(H,ie){return xp(H,ie,function(Le,Et){return sh(H,Et)})}(H,ie)});function wg(H,ie){if(null==H)return{};var Le=Nt(ng(H),function(Et){return[Et]});return ie=qo(ie),xp(H,Le,function(Et,Mn){return ie(Et,Mn[0])})}var vp=yc(Na),hm=yc(Aa);function M(H){return null==H?[]:zr(H,Na(H))}var Je=qd(function(H,ie,Le){return ie=ie.toLowerCase(),H+(Le?_t(ie):ie)});function _t(H){return gc(ba(H).toLowerCase())}function Yt(H){return(H=ba(H))&&H.replace(Zt,Sa).replace(vn,"")}var ci=qd(function(H,ie,Le){return H+(Le?"-":"")+ie.toLowerCase()}),Si=qd(function(H,ie,Le){return H+(Le?" ":"")+ie.toLowerCase()}),er=Qh("toLowerCase"),Fo=qd(function(H,ie,Le){return H+(Le?"_":"")+ie.toLowerCase()}),os=qd(function(H,ie,Le){return H+(Le?" ":"")+gc(ie)}),xc=qd(function(H,ie,Le){return H+(Le?" ":"")+ie.toUpperCase()}),gc=Qh("toUpperCase");function ud(H,ie,Le){return H=ba(H),(ie=Le?l:ie)===l?function ga(Ai){return yr.test(Ai)}(H)?function Pr(Ai){return Ai.match(Ci)||[]}(H):function is(Ai){return Ai.match(At)||[]}(H):H.match(ie)||[]}var Hd=Cs(function(H,ie){try{return zi(H,l,ie)}catch(Le){return Pc(Le)?Le:new Ve(Le)}}),Iu=Kc(function(H,ie){return Vi(ie,function(Le){Le=ou(Le),Er(H,Le,Eh(H[Le],H))}),H});function kh(H){return function(){return H}}var lh=qh(),Ig=qh(!0);function Zl(H){return H}function Md(H){return an("function"==typeof H?H:uo(H,1))}var Ag=Cs(function(H,ie){return function(Le){return Tl(Le,H,ie)}}),gm=Cs(function(H,ie){return function(Le){return Tl(H,Le,ie)}});function dh(H,ie,Le){var Et=Na(ie),Mn=Jl(ie,Et);null==Le&&(!il(ie)||!Mn.length&&Et.length)&&(Le=ie,ie=H,H=this,Mn=Jl(ie,Na(ie)));var ei=!(il(Le)&&"chain"in Le&&!Le.chain),Ei=Sd(H);return Vi(Mn,function(Gi){var Xi=ie[Gi];H[Gi]=Xi,Ei&&(H.prototype[Gi]=function(){var Dr=this.__chain__;if(ei||Dr){var xr=H(this.__wrapped__);return(xr.__actions__=bl(this.__actions__)).push({func:Xi,args:arguments,thisArg:H}),xr.__chain__=Dr,xr}return Xi.apply(H,gi([this.value()],arguments))})}),H}function hd(){}var Wd=eg(Nt),nd=eg(nr),ec=eg(tr);function $s(H){return kp(H)?Tt(ou(H)):function Gh(H){return function(ie){return Vl(ie,H)}}(H)}var pv=Gg(),kf=Gg(!0);function Mp(){return[]}function vf(){return!1}var ra=fu(function(H,ie){return H+ie},0),y_=ac("ceil"),Qf=fu(function(H,ie){return H/ie},1),Jf=ac("floor"),O_=fu(function(H,ie){return H*ie},1),e_=ac("round"),E_=fu(function(H,ie){return H-ie},0);return bn.after=function lu(H,ie){if("function"!=typeof ie)throw new Nn(P);return H=xs(H),function(){if(--H<1)return ie.apply(this,arguments)}},bn.ary=rp,bn.assign=Pg,bn.assignIn=Og,bn.assignInWith=Ss,bn.assignWith=Oc,bn.at=cm,bn.before=ed,bn.bind=Eh,bn.bindAll=Iu,bn.bindKey=qp,bn.castArray=function Rl(){if(!arguments.length)return[];var H=arguments[0];return Ps(H)?H:[H]},bn.chain=gg,bn.chunk=function Ch(H,ie,Le){ie=(Le?lc(H,ie,Le):ie===l)?1:Qo(xs(ie),0);var Et=null==H?0:H.length;if(!Et||ie<1)return[];for(var Mn=0,ei=0,Ei=An(Ur(Et/ie));Mn<Et;)Ei[ei++]=Mc(H,Mn,Mn+=ie);return Ei},bn.compact=function jp(H){for(var ie=-1,Le=null==H?0:H.length,Et=0,Mn=[];++ie<Le;){var ei=H[ie];ei&&(Mn[Et++]=ei)}return Mn},bn.concat=function Wp(){var H=arguments.length;if(!H)return[];for(var ie=An(H-1),Le=arguments[0],Et=H;Et--;)ie[Et-1]=arguments[Et];return gi(Ps(Le)?bl(Le):[Le],Ro(ie,1))},bn.cond=function jd(H){var ie=null==H?0:H.length,Le=qo();return H=ie?Nt(H,function(Et){if("function"!=typeof Et[1])throw new Nn(P);return[Le(Et[0]),Et[1]]}):[],Cs(function(Et){for(var Mn=-1;++Mn<ie;){var ei=H[Mn];if(zi(ei[0],this,Et))return zi(ei[1],this,Et)}})},bn.conforms=function gu(H){return function io(H){var ie=Na(H);return function(Le){return Do(Le,H,ie)}}(uo(H,1))},bn.constant=kh,bn.countBy=yu,bn.create=function Ah(H,ie){var Le=so(H);return null==ie?Le:Fi(Le,ie)},bn.curry=function Bd(H,ie,Le){var Et=Ra(H,8,l,l,l,l,l,ie=Le?l:ie);return Et.placeholder=Bd.placeholder,Et},bn.curryRight=function vd(H,ie,Le){var Et=Ra(H,16,l,l,l,l,l,ie=Le?l:ie);return Et.placeholder=vd.placeholder,Et},bn.debounce=pl,bn.defaults=Dh,bn.defaultsDeep=Eu,bn.defer=xh,bn.delay=ml,bn.difference=Yg,bn.differenceBy=Fd,bn.differenceWith=Om,bn.drop=function al(H,ie,Le){var Et=null==H?0:H.length;return Et?Mc(H,(ie=Le||ie===l?1:xs(ie))<0?0:ie,Et):[]},bn.dropRight=function Su(H,ie,Le){var Et=null==H?0:H.length;return Et?Mc(H,0,(ie=Et-(ie=Le||ie===l?1:xs(ie)))<0?0:ie):[]},bn.dropRightWhile=function La(H,ie){return H&&H.length?gh(H,qo(ie,3),!0,!0):[]},bn.dropWhile=function zg(H,ie){return H&&H.length?gh(H,qo(ie,3),!0):[]},bn.fill=function Wa(H,ie,Le,Et){var Mn=null==H?0:H.length;return Mn?(Le&&"number"!=typeof Le&&lc(H,ie,Le)&&(Le=0,Et=Mn),function vc(H,ie,Le,Et){var Mn=H.length;for((Le=xs(Le))<0&&(Le=-Le>Mn?0:Mn+Le),(Et=Et===l||Et>Mn?Mn:xs(Et))<0&&(Et+=Mn),Et=Le>Et?0:bg(Et);Le<Et;)H[Le++]=ie;return H}(H,ie,Le,Et)):[]},bn.filter=function bh(H,ie){return(Ps(H)?en:wl)(H,qo(ie,3))},bn.flatMap=function Ph(H,ie){return Ro(Ku(H,ie),1)},bn.flatMapDeep=function Yu(H,ie){return Ro(Ku(H,ie),z)},bn.flatMapDepth=function np(H,ie,Le){return Le=Le===l?1:xs(Le),Ro(Ku(H,ie),Le)},bn.flatten=Gu,bn.flattenDeep=function Em(H){return null!=H&&H.length?Ro(H,z):[]},bn.flattenDepth=function xm(H,ie){return null!=H&&H.length?Ro(H,ie=ie===l?1:xs(ie)):[]},bn.flip=function Dl(H){return Ra(H,512)},bn.flow=lh,bn.flowRight=Ig,bn.fromPairs=function og(H){for(var ie=-1,Le=null==H?0:H.length,Et={};++ie<Le;){var Mn=H[ie];Et[Mn[0]]=Mn[1]}return Et},bn.functions=function pp(H){return null==H?[]:Jl(H,Na(H))},bn.functionsIn=function Jm(H){return null==H?[]:Jl(H,Aa(H))},bn.groupBy=gf,bn.initial=function Yp(H){return null!=H&&H.length?Mc(H,0,-1):[]},bn.intersection=Hl,bn.intersectionBy=Vu,bn.intersectionWith=Jc,bn.invert=dm,bn.invertBy=fp,bn.invokeMap=Ud,bn.iteratee=Md,bn.keyBy=Gm,bn.keys=Na,bn.keysIn=Aa,bn.map=Ku,bn.mapKeys=function Vc(H,ie){var Le={};return ie=qo(ie,3),wa(H,function(Et,Mn,ei){Er(Le,ie(Et,Mn,ei),Et)}),Le},bn.mapValues=function Xl(H,ie){var Le={};return ie=qo(ie,3),wa(H,function(Et,Mn,ei){Er(Le,Mn,ie(Et,Mn,ei))}),Le},bn.matches=function ch(H){return bs(uo(H,1))},bn.matchesProperty=function Sp(H,ie){return da(H,uo(ie,1))},bn.memoize=Uc,bn.merge=Lh,bn.mergeWith=xg,bn.method=Ag,bn.methodOf=gm,bn.mixin=dh,bn.negate=Zu,bn.nthArg=function Ms(H){return H=xs(H),Cs(function(ie){return $c(ie,H)})},bn.omit=um,bn.omitBy=function _p(H,ie){return wg(H,Zu(qo(ie)))},bn.once=function op(H){return ed(2,H)},bn.orderBy=function Vm(H,ie,Le,Et){return null==H?[]:(Ps(ie)||(ie=null==ie?[]:[ie]),Ps(Le=Et?l:Le)||(Le=null==Le?[]:[Le]),wd(H,ie,Le))},bn.over=Wd,bn.overArgs=Cd,bn.overEvery=nd,bn.overSome=ec,bn.partial=em,bn.partialRight=pf,bn.partition=Hm,bn.pick=Vd,bn.pickBy=wg,bn.property=$s,bn.propertyOf=function mm(H){return function(ie){return null==H?l:Vl(H,ie)}},bn.pull=zp,bn.pullAll=Tm,bn.pullAllBy=function Kg(H,ie,Le){return H&&H.length&&ie&&ie.length?Sc(H,ie,qo(Le,2)):H},bn.pullAllWith=function Im(H,ie,Le){return H&&H.length&&ie&&ie.length?Sc(H,ie,l,Le):H},bn.pullAt=Xg,bn.range=pv,bn.rangeRight=kf,bn.rearg=Wm,bn.reject=function au(H,ie){return(Ps(H)?en:wl)(H,Zu(qo(ie,3)))},bn.remove=function Kp(H,ie){var Le=[];if(!H||!H.length)return Le;var Et=-1,Mn=[],ei=H.length;for(ie=qo(ie,3);++Et<ei;){var Ei=H[Et];ie(Ei,Et,H)&&(Le.push(Ei),Mn.push(Et))}return Xd(H,Mn),Le},bn.rest=function Pu(H,ie){if("function"!=typeof H)throw new Nn(P);return Cs(H,ie=ie===l?ie:xs(ie))},bn.reverse=Mu,bn.sampleSize=function Xu(H,ie,Le){return ie=(Le?lc(H,ie,Le):ie===l)?1:xs(ie),(Ps(H)?ze:Td)(H,ie)},bn.set=function Ec(H,ie,Le){return null==H?H:Id(H,ie,Le)},bn.setWith=function Hc(H,ie,Le,Et){return Et="function"==typeof Et?Et:l,null==H?H:Id(H,ie,Le,Et)},bn.shuffle=function jl(H){return(Ps(H)?Ie:Mm)(H)},bn.slice=function Am(H,ie,Le){var Et=null==H?0:H.length;return Et?(Le&&"number"!=typeof Le&&lc(H,ie,Le)?(ie=0,Le=Et):(ie=null==ie?0:xs(ie),Le=Le===l?Et:xs(Le)),Mc(H,ie,Le)):[]},bn.sortBy=ip,bn.sortedUniq=function ju(H){return H&&H.length?Hh(H):[]},bn.sortedUniqBy=function Rm(H,ie){return H&&H.length?Hh(H,qo(ie,2)):[]},bn.split=function mr(H,ie,Le){return Le&&"number"!=typeof Le&&lc(H,ie,Le)&&(ie=Le=l),(Le=Le===l?ge:Le>>>0)?(H=ba(H))&&("string"==typeof ie||null!=ie&&!cp(ie))&&!(ie=Kl(ie))&&rr(H)?Qs(ks(H),0,Le):H.split(ie,Le):[]},bn.spread=function vg(H,ie){if("function"!=typeof H)throw new Nn(P);return ie=null==ie?0:Qo(xs(ie),0),Cs(function(Le){var Et=Le[ie],Mn=Qs(Le,0,ie);return Et&&gi(Mn,Et),zi(H,this,Mn)})},bn.tail=function Zp(H){var ie=null==H?0:H.length;return ie?Mc(H,1,ie):[]},bn.take=function cg(H,ie,Le){return H&&H.length?Mc(H,0,(ie=Le||ie===l?1:xs(ie))<0?0:ie):[]},bn.takeRight=function Jg(H,ie,Le){var Et=null==H?0:H.length;return Et?Mc(H,(ie=Et-(ie=Le||ie===l?1:xs(ie)))<0?0:ie,Et):[]},bn.takeRightWhile=function Lm(H,ie){return H&&H.length?gh(H,qo(ie,3),!1,!0):[]},bn.takeWhile=function lf(H,ie){return H&&H.length?gh(H,qo(ie,3)):[]},bn.tap=function uf(H,ie){return ie(H),H},bn.throttle=function tm(H,ie,Le){var Et=!0,Mn=!0;if("function"!=typeof H)throw new Nn(P);return il(Le)&&(Et="leading"in Le?!!Le.leading:Et,Mn="trailing"in Le?!!Le.trailing:Mn),pl(H,ie,{leading:Et,maxWait:ie,trailing:Mn})},bn.thru=pg,bn.toArray=gp,bn.toPairs=vp,bn.toPairsIn=hm,bn.toPath=function Ff(H){return Ps(H)?Nt(H,ou):Gc(H)?[H]:bl(Vp(ba(H)))},bn.toPlainObject=ih,bn.transform=function Cp(H,ie,Le){var Et=Ps(H),Mn=Et||cu(H)||du(H);if(ie=qo(ie,4),null==Le){var ei=H&&H.constructor;Le=Mn?Et?new ei:[]:il(H)&&Sd(ei)?so(nc(H)):{}}return(Mn?Vi:wa)(H,function(Ei,Gi,Xi){return ie(Le,Ei,Gi,Xi)}),Le},bn.unary=function $m(H){return rp(H,1)},bn.union=km,bn.unionBy=cf,bn.unionWith=dg,bn.uniq=function df(H){return H&&H.length?Dd(H):[]},bn.uniqBy=function Nm(H,ie){return H&&H.length?Dd(H,qo(ie,2)):[]},bn.uniqWith=function Sh(H,ie){return ie="function"==typeof ie?ie:l,H&&H.length?Dd(H,l,ie):[]},bn.unset=function Tu(H,ie){return null==H||jh(H,ie)},bn.unzip=ug,bn.unzipWith=Mh,bn.update=function Lf(H,ie,Le){return null==H?H:Wh(H,ie,fh(Le))},bn.updateWith=function s(H,ie,Le,Et){return Et="function"==typeof Et?Et:l,null==H?H:Wh(H,ie,fh(Le),Et)},bn.values=M,bn.valuesIn=function B(H){return null==H?[]:zr(H,Aa(H))},bn.without=El,bn.words=ud,bn.wrap=function nm(H,ie){return em(fh(ie),H)},bn.xor=qg,bn.xorBy=ep,bn.xorWith=nl,bn.zip=ql,bn.zipObject=function hg(H,ie){return $h(H||[],ie||[],Kt)},bn.zipObjectDeep=function Qp(H,ie){return $h(H||[],ie||[],Id)},bn.zipWith=tp,bn.entries=vp,bn.entriesIn=hm,bn.extend=Og,bn.extendWith=Ss,dh(bn,bn),bn.add=ra,bn.attempt=Hd,bn.camelCase=Je,bn.capitalize=_t,bn.ceil=y_,bn.clamp=function q(H,ie,Le){return Le===l&&(Le=ie,ie=l),Le!==l&&(Le=(Le=dd(Le))==Le?Le:0),ie!==l&&(ie=(ie=dd(ie))==ie?ie:0),Oo(dd(H),ie,Le)},bn.clone=function sp(H){return uo(H,4)},bn.cloneDeep=function Ym(H){return uo(H,5)},bn.cloneDeepWith=function im(H,ie){return uo(H,5,ie="function"==typeof ie?ie:l)},bn.cloneWith=function mf(H,ie){return uo(H,4,ie="function"==typeof ie?ie:l)},bn.conformsTo=function zm(H,ie){return null==ie||Do(H,ie,Na(ie))},bn.deburr=Yt,bn.defaultTo=function Tg(H,ie){return null==H||H!=H?ie:H},bn.divide=Qf,bn.endsWith=function $t(H,ie,Le){H=ba(H),ie=Kl(ie);var Et=H.length,Mn=Le=Le===l?Et:Oo(xs(Le),0,Et);return(Le-=ie.length)>=0&&H.slice(Le,Mn)==ie},bn.eq=Ll,bn.escape=function Sn(H){return(H=ba(H))&&zt.test(H)?H.replace(ri,rl):H},bn.escapeRegExp=function In(H){return(H=ba(H))&&on.test(H)?H.replace(nt,"\\$&"):H},bn.every=function $u(H,ie,Le){var Et=Ps(H)?nr:Da;return Le&&lc(H,ie,Le)&&(ie=l),Et(H,qo(ie,3))},bn.find=mg,bn.findIndex=Al,bn.findKey=function rh(H,ie){return ha(H,qo(ie,3),wa)},bn.findLast=bu,bn.findLastIndex=Fc,bn.findLastKey=function xu(H,ie){return ha(H,qo(ie,3),yl)},bn.floor=Jf,bn.forEach=zu,bn.forEachRight=su,bn.forIn=function Rh(H,ie){return null==H?H:oc(H,qo(ie,3),Aa)},bn.forInRight=function wu(H,ie){return null==H?H:sc(H,qo(ie,3),Aa)},bn.forOwn=function uu(H,ie){return H&&wa(H,qo(ie,3))},bn.forOwnRight=function Eg(H,ie){return H&&yl(H,qo(ie,3))},bn.get=mp,bn.gt=Ou,bn.gte=Cg,bn.has=function oh(H,ie){return null!=H&&Fu(H,ie,zo)},bn.hasIn=sh,bn.head=sg,bn.identity=Zl,bn.includes=function _d(H,ie,Le,Et){H=Bc(H)?H:M(H),Le=Le&&!Et?xs(Le):0;var Mn=H.length;return Le<0&&(Le=Qo(Mn+Le,0)),yg(H)?Le<=Mn&&H.indexOf(ie,Le)>-1:!!Mn&&Po(H,ie,Le)>-1},bn.indexOf=function $p(H,ie,Le){var Et=null==H?0:H.length;if(!Et)return-1;var Mn=null==Le?0:xs(Le);return Mn<0&&(Mn=Qo(Et+Mn,0)),Po(H,ie,Mn)},bn.inRange=function Se(H,ie,Le){return ie=Gd(ie),Le===l?(Le=ie,ie=0):Le=Gd(Le),function el(H,ie,Le){return H>=Vo(ie,Le)&&H<Qo(ie,Le)}(H=dd(H),ie,Le)},bn.invoke=hu,bn.isArguments=Qu,bn.isArray=Ps,bn.isArrayBuffer=ff,bn.isArrayLike=Bc,bn.isArrayLikeObject=ll,bn.isBoolean=function Ju(H){return!0===H||!1===H||fl(H)&&to(H)==Z},bn.isBuffer=cu,bn.isDate=Km,bn.isElement=function wh(H){return fl(H)&&1===H.nodeType&&!th(H)},bn.isEmpty=function qu(H){if(null==H)return!0;if(Bc(H)&&(Ps(H)||"string"==typeof H||"function"==typeof H.splice||cu(H)||du(H)||Qu(H)))return!H.length;var ie=Ol(H);if(ie==De||ie==ye)return!H.size;if(kc(H))return!kn(H).length;for(var Le in H)if(bo.call(H,Le))return!1;return!0},bn.isEqual=function Sg(H,ie){return ma(H,ie)},bn.isEqualWith=function td(H,ie,Le){var Et=(Le="function"==typeof Le?Le:l)?Le(H,ie):l;return Et===l?ma(H,ie,l,Le):!!Et},bn.isError=Pc,bn.isFinite=function eh(H){return"number"==typeof H&&Yo(H)},bn.isFunction=Sd,bn.isInteger=Th,bn.isLength=Mg,bn.isMap=Ih,bn.isMatch=function ap(H,ie){return H===ie||Cc(H,ie,Zc(ie))},bn.isMatchWith=function Xm(H,ie,Le){return Le="function"==typeof Le?Le:l,Cc(H,ie,Zc(ie),Le)},bn.isNaN=function _f(H){return om(H)&&H!=+H},bn.isNative=function rm(H){if(Up(H))throw new Ve("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Fs(H)},bn.isNil=function lp(H){return null==H},bn.isNull=function Zm(H){return null===H},bn.isNumber=om,bn.isObject=il,bn.isObjectLike=fl,bn.isPlainObject=th,bn.isRegExp=cp,bn.isSafeInteger=function dp(H){return Th(H)&&H>=-te&&H<=te},bn.isSet=up,bn.isString=yg,bn.isSymbol=Gc,bn.isTypedArray=du,bn.isUndefined=function hp(H){return H===l},bn.isWeakMap=function Qm(H){return fl(H)&&Ol(H)==xt},bn.isWeakSet=function sm(H){return fl(H)&&"[object WeakSet]"==to(H)},bn.join=function ag(H,ie){return null==H?"":Go.call(H,ie)},bn.kebabCase=ci,bn.last=Is,bn.lastIndexOf=function dc(H,ie,Le){var Et=null==H?0:H.length;if(!Et)return-1;var Mn=Et;return Le!==l&&(Mn=(Mn=xs(Le))<0?Qo(Et+Mn,0):Vo(Mn,Et-1)),ie==ie?function js(Ai,lt,An){for(var St=An+1;St--;)if(Ai[St]===lt)return St;return St}(H,ie,Mn):Ys(H,oa,Mn,!0)},bn.lowerCase=Si,bn.lowerFirst=er,bn.lt=am,bn.lte=nh,bn.max=function qf(H){return H&&H.length?Ql(H,Zl,Lo):l},bn.maxBy=function b_(H,ie){return H&&H.length?Ql(H,qo(ie,2),Lo):l},bn.mean=function mv(H){return Ht(H,Zl)},bn.meanBy=function fv(H,ie){return Ht(H,qo(ie,2))},bn.min=function _v(H){return H&&H.length?Ql(H,Zl,cr):l},bn.minBy=function P_(H,ie){return H&&H.length?Ql(H,qo(ie,2),cr):l},bn.stubArray=Mp,bn.stubFalse=vf,bn.stubObject=function Cf(){return{}},bn.stubString=function M_(){return""},bn.stubTrue=function Nf(){return!0},bn.multiply=O_,bn.nth=function wm(H,ie){return H&&H.length?$c(H,xs(ie)):l},bn.noConflict=function pm(){return ys._===this&&(ys._=fc),this},bn.noop=hd,bn.now=Jp,bn.pad=function fi(H,ie,Le){H=ba(H);var Et=(ie=xs(ie))?Ts(H):0;if(!ie||Et>=ie)return H;var Mn=(ie-Et)/2;return Lu(ns(Mn),Le)+H+Lu(Ur(Mn),Le)},bn.padEnd=function Ri(H,ie,Le){H=ba(H);var Et=(ie=xs(ie))?Ts(H):0;return ie&&Et<ie?H+Lu(ie-Et,Le):H},bn.padStart=function ur(H,ie,Le){H=ba(H);var Et=(ie=xs(ie))?Ts(H):0;return ie&&Et<ie?Lu(ie-Et,Le)+H:H},bn.parseInt=function vr(H,ie,Le){return Le||null==ie?ie=0:ie&&(ie=+ie),fo(ba(H).replace(mt,""),ie||0)},bn.random=function be(H,ie,Le){if(Le&&"boolean"!=typeof Le&&lc(H,ie,Le)&&(ie=Le=l),Le===l&&("boolean"==typeof ie?(Le=ie,ie=l):"boolean"==typeof H&&(Le=H,H=l)),H===l&&ie===l?(H=0,ie=1):(H=Gd(H),ie===l?(ie=H,H=0):ie=Gd(ie)),H>ie){var Et=H;H=ie,ie=Et}if(Le||H%1||ie%1){var Mn=Es();return Vo(H+Mn*(ie-H+Ua("1e-"+((Mn+"").length-1))),ie)}return Du(H,ie)},bn.reduce=function fg(H,ie,Le){var Et=Ps(H)?Bi:jt,Mn=arguments.length<3;return Et(H,qo(ie,4),Le,Mn,Rs)},bn.reduceRight=function _g(H,ie,Le){var Et=Ps(H)?Mi:jt,Mn=arguments.length<3;return Et(H,qo(ie,4),Le,Mn,ka)},bn.repeat=function Hr(H,ie,Le){return ie=(Le?lc(H,ie,Le):ie===l)?1:xs(ie),kg(ba(H),ie)},bn.replace=function Ko(){var H=arguments,ie=ba(H[0]);return H.length<3?ie:ie.replace(H[1],H[2])},bn.result=function ah(H,ie,Le){var Et=-1,Mn=(ie=Qa(ie,H)).length;for(Mn||(Mn=1,H=l);++Et<Mn;){var ei=null==H?l:H[ou(ie[Et])];ei===l&&(Et=Mn,ei=Le),H=Sd(ei)?ei.call(H):ei}return H},bn.round=e_,bn.runInContext=Ai,bn.sample=function jm(H){return(Ps(H)?Te:Ks)(H)},bn.size=function qc(H){if(null==H)return 0;if(Bc(H))return yg(H)?Ts(H):H.length;var ie=Ol(H);return ie==De||ie==ye?H.size:kn(H).length},bn.snakeCase=Fo,bn.some=function Oh(H,ie,Le){var Et=Ps(H)?tr:Tp;return Le&&lc(H,ie,Le)&&(ie=l),Et(H,qo(ie,3))},bn.sortedIndex=function Xp(H,ie){return Zd(H,ie)},bn.sortedIndexBy=function Dm(H,ie,Le){return Vh(H,ie,qo(Le,2))},bn.sortedIndexOf=function Zg(H,ie){var Le=null==H?0:H.length;if(Le){var Et=Zd(H,ie);if(Et<Le&&Ll(H[Et],ie))return Et}return-1},bn.sortedLastIndex=function Qg(H,ie){return Zd(H,ie,!0)},bn.sortedLastIndexBy=function lg(H,ie,Le){return Vh(H,ie,qo(Le,2),!0)},bn.sortedLastIndexOf=function Hu(H,ie){if(null!=H&&H.length){var Et=Zd(H,ie,!0)-1;if(Ll(H[Et],ie))return Et}return-1},bn.startCase=os,bn.startsWith=function Ja(H,ie,Le){return H=ba(H),Le=null==Le?0:Oo(xs(Le),0,H.length),ie=Kl(ie),H.slice(Le,Le+ie.length)==ie},bn.subtract=E_,bn.sum=function $d(H){return H&&H.length?br(H,Zl):0},bn.sumBy=function x_(H,ie){return H&&H.length?br(H,qo(ie,2)):0},bn.template=function Us(H,ie,Le){var Et=bn.templateSettings;Le&&lc(H,ie,Le)&&(ie=l),H=ba(H),ie=Ss({},ie,Et,Vg);var Gi,Xi,Mn=Ss({},ie.imports,Et.imports,Vg),ei=Na(Mn),Ei=zr(Mn,ei),Dr=0,xr=ie.interpolate||Zn,Wr="__p += '",vo=sr((ie.escape||Zn).source+"|"+xr.source+"|"+(xr===it?Zi:Zn).source+"|"+(ie.evaluate||Zn).source+"|$","g"),Xo="//# sourceURL="+(bo.call(ie,"sourceURL")?(ie.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ko+"]")+"\n";H.replace(vo,function(Jo,Js,_a,Yd,jc,gd){return _a||(_a=Yd),Wr+=H.slice(Dr,gd).replace(Dn,as),Js&&(Gi=!0,Wr+="' +\n__e("+Js+") +\n'"),jc&&(Xi=!0,Wr+="';\n"+jc+";\n__p += '"),_a&&(Wr+="' +\n((__t = ("+_a+")) == null ? '' : __t) +\n'"),Dr=gd+Jo.length,Jo}),Wr+="';\n";var ms=bo.call(ie,"variable")&&ie.variable;if(ms){if(Hn.test(ms))throw new Ve("Invalid `variable` option passed into `_.template`")}else Wr="with (obj) {\n"+Wr+"\n}\n";Wr=(Xi?Wr.replace(yn,""):Wr).replace(Xn,"$1").replace(rn,"$1;"),Wr="function("+(ms||"obj")+") {\n"+(ms?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(Gi?", __e = _.escape":"")+(Xi?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+Wr+"return __p\n}";var Xs=Hd(function(){return qe(ei,Xo+"return "+Wr).apply(l,Ei)});if(Xs.source=Wr,Pc(Xs))throw Xs;return Xs},bn.times=function yp(H,ie){if((H=xs(H))<1||H>te)return[];var Le=ge,Et=Vo(H,ge);ie=qo(ie),H-=ge;for(var Mn=wo(Et,ie);++Le<H;)ie(Le);return Mn},bn.toFinite=Gd,bn.toInteger=xs,bn.toLength=bg,bn.toLower=function ua(H){return ba(H).toLowerCase()},bn.toNumber=dd,bn.toSafeInteger=function lm(H){return H?Oo(xs(H),-te,te):0===H?H:0},bn.toString=ba,bn.toUpper=function kl(H){return ba(H).toUpperCase()},bn.trim=function Wl(H,ie,Le){if((H=ba(H))&&(Le||ie===l))return sa(H);if(!H||!(ie=Kl(ie)))return H;var Et=ks(H),Mn=ks(ie);return Qs(Et,Io(Et,Mn),Jr(Et,Mn)+1).join("")},bn.trimEnd=function $l(H,ie,Le){if((H=ba(H))&&(Le||ie===l))return H.slice(0,la(H)+1);if(!H||!(ie=Kl(ie)))return H;var Et=ks(H);return Qs(Et,0,Jr(Et,ks(ie))+1).join("")},bn.trimStart=function _o(H,ie,Le){if((H=ba(H))&&(Le||ie===l))return H.replace(mt,"");if(!H||!(ie=Kl(ie)))return H;var Et=ks(H);return Qs(Et,Io(Et,ks(ie))).join("")},bn.truncate=function Nl(H,ie){var Le=30,Et="...";if(il(ie)){var Mn="separator"in ie?ie.separator:Mn;Le="length"in ie?xs(ie.length):Le,Et="omission"in ie?Kl(ie.omission):Et}var ei=(H=ba(H)).length;if(rr(H)){var Ei=ks(H);ei=Ei.length}if(Le>=ei)return H;var Gi=Le-Ts(Et);if(Gi<1)return Et;var Xi=Ei?Qs(Ei,0,Gi).join(""):H.slice(0,Gi);if(Mn===l)return Xi+Et;if(Ei&&(Gi+=Xi.length-Gi),cp(Mn)){if(H.slice(Gi).search(Mn)){var Dr,xr=Xi;for(Mn.global||(Mn=sr(Mn.source,ba(Lr.exec(Mn))+"g")),Mn.lastIndex=0;Dr=Mn.exec(xr);)var Wr=Dr.index;Xi=Xi.slice(0,Wr===l?Gi:Wr)}}else if(H.indexOf(Kl(Mn),Gi)!=Gi){var vo=Xi.lastIndexOf(Mn);vo>-1&&(Xi=Xi.slice(0,vo))}return Xi+Et},bn.unescape=function hc(H){return(H=ba(H))&&Ne.test(H)?H.replace(ai,vl):H},bn.uniqueId=function fa(H){var ie=++Ns;return ba(H)+ie},bn.upperCase=xc,bn.upperFirst=gc,bn.each=zu,bn.eachRight=su,bn.first=sg,dh(bn,function(){var H={};return wa(bn,function(ie,Le){bo.call(bn.prototype,Le)||(H[Le]=ie)}),H}(),{chain:!1}),bn.VERSION="4.17.21",Vi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(H){bn[H].placeholder=bn}),Vi(["drop","take"],function(H,ie){$o.prototype[H]=function(Le){Le=Le===l?1:Qo(xs(Le),0);var Et=this.__filtered__&&!ie?new $o(this):this.clone();return Et.__filtered__?Et.__takeCount__=Vo(Le,Et.__takeCount__):Et.__views__.push({size:Vo(Le,ge),type:H+(Et.__dir__<0?"Right":"")}),Et},$o.prototype[H+"Right"]=function(Le){return this.reverse()[H](Le).reverse()}}),Vi(["filter","map","takeWhile"],function(H,ie){var Le=ie+1,Et=1==Le||3==Le;$o.prototype[H]=function(Mn){var ei=this.clone();return ei.__iteratees__.push({iteratee:qo(Mn,3),type:Le}),ei.__filtered__=ei.__filtered__||Et,ei}}),Vi(["head","last"],function(H,ie){var Le="take"+(ie?"Right":"");$o.prototype[H]=function(){return this[Le](1).value()[0]}}),Vi(["initial","tail"],function(H,ie){var Le="drop"+(ie?"":"Right");$o.prototype[H]=function(){return this.__filtered__?new $o(this):this[Le](1)}}),$o.prototype.compact=function(){return this.filter(Zl)},$o.prototype.find=function(H){return this.filter(H).head()},$o.prototype.findLast=function(H){return this.reverse().find(H)},$o.prototype.invokeMap=Cs(function(H,ie){return"function"==typeof H?new $o(this):this.map(function(Le){return Tl(Le,H,ie)})}),$o.prototype.reject=function(H){return this.filter(Zu(qo(H)))},$o.prototype.slice=function(H,ie){H=xs(H);var Le=this;return Le.__filtered__&&(H>0||ie<0)?new $o(Le):(H<0?Le=Le.takeRight(-H):H&&(Le=Le.drop(H)),ie!==l&&(Le=(ie=xs(ie))<0?Le.dropRight(-ie):Le.take(ie-H)),Le)},$o.prototype.takeRightWhile=function(H){return this.reverse().takeWhile(H).reverse()},$o.prototype.toArray=function(){return this.take(ge)},wa($o.prototype,function(H,ie){var Le=/^(?:filter|find|map|reject)|While$/.test(ie),Et=/^(?:head|last)$/.test(ie),Mn=bn[Et?"take"+("last"==ie?"Right":""):ie],ei=Et||/^find/.test(ie);Mn&&(bn.prototype[ie]=function(){var Ei=this.__wrapped__,Gi=Et?[1]:arguments,Xi=Ei instanceof $o,Dr=Gi[0],xr=Xi||Ps(Ei),Wr=function(Js){var _a=Mn.apply(bn,gi([Js],Gi));return Et&&vo?_a[0]:_a};xr&&Le&&"function"==typeof Dr&&1!=Dr.length&&(Xi=xr=!1);var vo=this.__chain__,ms=ei&&!vo,Xs=Xi&&!this.__actions__.length;if(!ei&&xr){Ei=Xs?Ei:new $o(this);var Jo=H.apply(Ei,Gi);return Jo.__actions__.push({func:pg,args:[Wr],thisArg:l}),new jr(Jo,vo)}return ms&&Xs?H.apply(this,Gi):(Jo=this.thru(Wr),ms?Et?Jo.value()[0]:Jo.value():Jo)})}),Vi(["pop","push","shift","sort","splice","unshift"],function(H){var ie=So[H],Le=/^(?:push|sort|unshift)$/.test(H)?"tap":"thru",Et=/^(?:pop|shift)$/.test(H);bn.prototype[H]=function(){var Mn=arguments;if(Et&&!this.__chain__){var ei=this.value();return ie.apply(Ps(ei)?ei:[],Mn)}return this[Le](function(Ei){return ie.apply(Ps(Ei)?Ei:[],Mn)})}}),wa($o.prototype,function(H,ie){var Le=bn[ie];if(Le){var Et=Le.name+"";bo.call(pt,Et)||(pt[Et]=[]),pt[Et].push({name:ie,func:Le})}}),pt[eu(l,2).name]=[{name:"wrapper",func:l}],$o.prototype.clone=function Va(){var H=new $o(this.__wrapped__);return H.__actions__=bl(this.__actions__),H.__dir__=this.__dir__,H.__filtered__=this.__filtered__,H.__iteratees__=bl(this.__iteratees__),H.__takeCount__=this.__takeCount__,H.__views__=bl(this.__views__),H},$o.prototype.reverse=function Ha(){if(this.__filtered__){var H=new $o(this);H.__dir__=-1,H.__filtered__=!0}else(H=this.clone()).__dir__*=-1;return H},$o.prototype.value=function ic(){var H=this.__wrapped__.value(),ie=this.__dir__,Le=Ps(H),Et=ie<0,Mn=Le?H.length:0,ei=function sd(H,ie,Le){for(var Et=-1,Mn=Le.length;++Et<Mn;){var ei=Le[Et],Ei=ei.size;switch(ei.type){case"drop":H+=Ei;break;case"dropRight":ie-=Ei;break;case"take":ie=Vo(ie,H+Ei);break;case"takeRight":H=Qo(H,ie-Ei)}}return{start:H,end:ie}}(0,Mn,this.__views__),Ei=ei.start,Gi=ei.end,Xi=Gi-Ei,Dr=Et?Gi:Ei-1,xr=this.__iteratees__,Wr=xr.length,vo=0,Xo=Vo(Xi,this.__takeCount__);if(!Le||!Et&&Mn==Xi&&Xo==Xi)return ph(H,this.__actions__);var ms=[];e:for(;Xi--&&vo<Xo;){for(var Xs=-1,Jo=H[Dr+=ie];++Xs<Wr;){var Js=xr[Xs],Yd=Js.type,jc=(0,Js.iteratee)(Jo);if(2==Yd)Jo=jc;else if(!jc){if(1==Yd)continue e;break e}}ms[vo++]=Jo}return ms},bn.prototype.at=Fm,bn.prototype.chain=function Um(){return gg(this)},bn.prototype.commit=function Bm(){return new jr(this.value(),this.__chain__)},bn.prototype.next=function hf(){this.__values__===l&&(this.__values__=gp(this.value()));var H=this.__index__>=this.__values__.length;return{done:H,value:H?l:this.__values__[this.__index__++]}},bn.prototype.plant=function uc(H){for(var ie,Le=this;Le instanceof gr;){var Et=fd(Le);Et.__index__=0,Et.__values__=l,ie?Mn.__wrapped__=Et:ie=Et;var Mn=Et;Le=Le.__wrapped__}return Mn.__wrapped__=H,ie},bn.prototype.reverse=function yh(){var H=this.__wrapped__;if(H instanceof $o){var ie=H;return this.__actions__.length&&(ie=new $o(this)),(ie=ie.reverse()).__actions__.push({func:pg,args:[Mu],thisArg:l}),new jr(ie,this.__chain__)}return this.thru(Mu)},bn.prototype.toJSON=bn.prototype.valueOf=bn.prototype.value=function Wu(){return ph(this.__wrapped__,this.__actions__)},bn.prototype.first=bn.prototype.head,Lt&&(bn.prototype[Lt]=function cd(){return this}),bn}();ys._=Zo,(n=function(){return Zo}.call(W,d,W,Ue))!==l&&(Ue.exports=n)}.call(this)},39165:function(Ue,W,d){!function(n){"use strict";n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(p){return/^nm$/i.test(p)},meridiem:function(p,m,_){return p<12?_?"vm":"VM":_?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(p){return p+(1===p||8===p||p>=20?"ste":"de")},week:{dow:1,doy:4}})}(d(10785))},15572:function(Ue,W,d){!function(n){"use strict";var l=function(v){return 0===v?0:1===v?1:2===v?2:v%100>=3&&v%100<=10?3:v%100>=11?4:5},p={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},m=function(v){return function(O,S,y,r){var i=l(O),a=p[v][l(O)];return 2===i&&(a=a[S?0:1]),a.replace(/%d/i,O)}},_=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];n.defineLocale("ar-dz",{months:_,monthsShort:_,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(v){return"\u0645"===v},meridiem:function(v,O,S){return v<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:m("s"),ss:m("s"),m:m("m"),mm:m("m"),h:m("h"),hh:m("h"),d:m("d"),dd:m("d"),M:m("M"),MM:m("M"),y:m("y"),yy:m("y")},postformat:function(v){return v.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(d(10785))},75032:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(d(10785))},6501:function(Ue,W,d){!function(n){"use strict";var l={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},p=function(O){return 0===O?0:1===O?1:2===O?2:O%100>=3&&O%100<=10?3:O%100>=11?4:5},m={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},_=function(O){return function(S,y,r,i){var a=p(S),h=m[O][p(S)];return 2===a&&(h=h[y?0:1]),h.replace(/%d/i,S)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];n.defineLocale("ar-ly",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(O){return"\u0645"===O},meridiem:function(O,S,y){return O<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:_("s"),ss:_("s"),m:_("m"),mm:_("m"),h:_("h"),hh:_("h"),d:_("d"),dd:_("d"),M:_("M"),MM:_("M"),y:_("y"),yy:_("y")},preparse:function(O){return O.replace(/\u060c/g,",")},postformat:function(O){return O.replace(/\d/g,function(S){return l[S]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(d(10785))},67844:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(d(10785))},76694:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},p={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};n.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(_){return"\u0645"===_},meridiem:function(_,P,v){return _<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(_){return _.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return p[P]}).replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(d(10785))},35944:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(d(10785))},69041:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},p={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},m=function(S){return 0===S?0:1===S?1:2===S?2:S%100>=3&&S%100<=10?3:S%100>=11?4:5},_={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},P=function(S){return function(y,r,i,a){var h=m(y),g=_[S][m(y)];return 2===h&&(g=g[r?0:1]),g.replace(/%d/i,y)}},v=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];n.defineLocale("ar",{months:v,monthsShort:v,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,y,r){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(y){return p[y]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(y){return l[y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(d(10785))},68873:function(Ue,W,d){!function(n){"use strict";var l={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(m){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(m)},meridiem:function(m,_,P){return m<4?"gec\u0259":m<12?"s\u0259h\u0259r":m<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(m){if(0===m)return m+"-\u0131nc\u0131";var _=m%10;return m+(l[_]||l[m%100-_]||l[m>=100?100:null])},week:{dow:1,doy:7}})}(d(10785))},61219:function(Ue,W,d){!function(n){"use strict";function p(_,P,v){return"m"===v?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===v?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":_+" "+function l(_,P){var v=_.split("_");return P%10==1&&P%100!=11?v[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?v[1]:v[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[v],+_)}n.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:p,mm:p,h:p,hh:p,d:"\u0434\u0437\u0435\u043d\u044c",dd:p,M:"\u043c\u0435\u0441\u044f\u0446",MM:p,y:"\u0433\u043e\u0434",yy:p},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(_){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(_)},meridiem:function(_,P,v){return _<4?"\u043d\u043e\u0447\u044b":_<12?"\u0440\u0430\u043d\u0456\u0446\u044b":_<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(_,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return _%10!=2&&_%10!=3||_%100==12||_%100==13?_+"-\u044b":_+"-\u0456";case"D":return _+"-\u0433\u0430";default:return _}},week:{dow:1,doy:7}})}(d(10785))},86533:function(Ue,W,d){!function(n){"use strict";n.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(p){var m=p%10,_=p%100;return 0===p?p+"-\u0435\u0432":0===_?p+"-\u0435\u043d":_>10&&_<20?p+"-\u0442\u0438":1===m?p+"-\u0432\u0438":2===m?p+"-\u0440\u0438":7===m||8===m?p+"-\u043c\u0438":p+"-\u0442\u0438"},week:{dow:1,doy:7}})}(d(10785))},78347:function(Ue,W,d){!function(n){"use strict";n.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(d(10785))},1817:function(Ue,W,d){!function(n){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},p={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};n.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(_){return _.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(_,P){return 12===_&&(_=0),"\u09b0\u09be\u09a4"===P?_<4?_:_+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?_:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?_>=3?_:_+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?_+12:void 0},meridiem:function(_,P,v){return _<4?"\u09b0\u09be\u09a4":_<6?"\u09ad\u09cb\u09b0":_<12?"\u09b8\u0995\u09be\u09b2":_<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":_<18?"\u09ac\u09bf\u0995\u09be\u09b2":_<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(d(10785))},71246:function(Ue,W,d){!function(n){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},p={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};n.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(_){return _.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(_,P){return 12===_&&(_=0),"\u09b0\u09be\u09a4"===P&&_>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&_<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?_+12:_},meridiem:function(_,P,v){return _<4?"\u09b0\u09be\u09a4":_<10?"\u09b8\u0995\u09be\u09b2":_<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":_<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(d(10785))},20557:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},p={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};n.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(_){return _.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(_,P){return 12===_&&(_=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&_>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&_<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?_+12:_},meridiem:function(_,P,v){return _<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":_<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":_<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":_<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(d(10785))},37418:function(Ue,W,d){!function(n){"use strict";function l(g,c,T){return g+" "+function _(g,c){return 2===c?function P(g){var c={m:"v",b:"v",d:"z"};return void 0===c[g.charAt(0)]?g:c[g.charAt(0)]+g.substring(1)}(g):g}({mm:"munutenn",MM:"miz",dd:"devezh"}[T],g)}function m(g){return g>9?m(g%10):g}var v=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],O=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];n.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:O,monthsShortRegex:O,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:v,longMonthsParse:v,shortMonthsParse:v,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:l,h:"un eur",hh:"%d eur",d:"un devezh",dd:l,M:"ur miz",MM:l,y:"ur bloaz",yy:function p(g){switch(m(g)){case 1:case 3:case 4:case 5:case 9:return g+" bloaz";default:return g+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(g){return g+(1===g?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(g){return"g.m."===g},meridiem:function(g,c,T){return g<12?"a.m.":"g.m."}})}(d(10785))},7673:function(Ue,W,d){!function(n){"use strict";function l(m,_,P){var v=m+" ";switch(P){case"ss":return v+(1===m?"sekunda":2===m||3===m||4===m?"sekunde":"sekundi");case"m":return _?"jedna minuta":"jedne minute";case"mm":return v+(1===m?"minuta":2===m||3===m||4===m?"minute":"minuta");case"h":return _?"jedan sat":"jednog sata";case"hh":return v+(1===m?"sat":2===m||3===m||4===m?"sata":"sati");case"dd":return v+(1===m?"dan":"dana");case"MM":return v+(1===m?"mjesec":2===m||3===m||4===m?"mjeseca":"mjeseci");case"yy":return v+(1===m?"godina":2===m||3===m||4===m?"godine":"godina")}}n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(d(10785))},51862:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(p,m){var _=1===p?"r":2===p?"n":3===p?"r":4===p?"t":"\xe8";return("w"===m||"W"===m)&&(_="a"),p+_},week:{dow:1,doy:4}})}(d(10785))},9980:function(Ue,W,d){!function(n){"use strict";var l={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},p="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),m=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],_=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function P(S){return S>1&&S<5&&1!=~~(S/10)}function v(S,y,r,i){var a=S+" ";switch(r){case"s":return y||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return y||i?a+(P(S)?"sekundy":"sekund"):a+"sekundami";case"m":return y?"minuta":i?"minutu":"minutou";case"mm":return y||i?a+(P(S)?"minuty":"minut"):a+"minutami";case"h":return y?"hodina":i?"hodinu":"hodinou";case"hh":return y||i?a+(P(S)?"hodiny":"hodin"):a+"hodinami";case"d":return y||i?"den":"dnem";case"dd":return y||i?a+(P(S)?"dny":"dn\xed"):a+"dny";case"M":return y||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return y||i?a+(P(S)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):a+"m\u011bs\xedci";case"y":return y||i?"rok":"rokem";case"yy":return y||i?a+(P(S)?"roky":"let"):a+"lety"}}n.defineLocale("cs",{months:l,monthsShort:p,monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:v,ss:v,m:v,mm:v,h:v,hh:v,d:v,dd:v,M:v,MM:v,y:v,yy:v},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},57479:function(Ue,W,d){!function(n){"use strict";n.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(p){return p+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(p)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(p)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(d(10785))},17998:function(Ue,W,d){!function(n){"use strict";n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(p){var _="";return p>20?_=40===p||50===p||60===p||80===p||100===p?"fed":"ain":p>0&&(_=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][p]),p+_},week:{dow:1,doy:4}})}(d(10785))},57045:function(Ue,W,d){!function(n){"use strict";n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},66627:function(Ue,W,d){!function(n){"use strict";function l(m,_,P,v){var O={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[m+" Tage",m+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[m+" Monate",m+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[m+" Jahre",m+" Jahren"]};return _?O[P][0]:O[P][1]}n.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},5061:function(Ue,W,d){!function(n){"use strict";function l(m,_,P,v){var O={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[m+" Tage",m+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[m+" Monate",m+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[m+" Jahre",m+" Jahren"]};return _?O[P][0]:O[P][1]}n.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},34297:function(Ue,W,d){!function(n){"use strict";function l(m,_,P,v){var O={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[m+" Tage",m+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[m+" Monate",m+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[m+" Jahre",m+" Jahren"]};return _?O[P][0]:O[P][1]}n.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},87024:function(Ue,W,d){!function(n){"use strict";var l=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],p=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];n.defineLocale("dv",{months:l,monthsShort:l,weekdays:p,weekdaysShort:p,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(_){return"\u0789\u078a"===_},meridiem:function(_,P,v){return _<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(d(10785))},45231:function(Ue,W,d){!function(n){"use strict";n.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(m,_){return m?"string"==typeof _&&/D/.test(_.substring(0,_.indexOf("MMMM")))?this._monthsGenitiveEl[m.month()]:this._monthsNominativeEl[m.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(m,_,P){return m>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(m){return"\u03bc"===(m+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(m,_){var P=this._calendarEl[m],v=_&&_.hours();return function l(m){return typeof Function<"u"&&m instanceof Function||"[object Function]"===Object.prototype.toString.call(m)}(P)&&(P=P.apply(_)),P.replace("{}",v%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(d(10785))},22452:function(Ue,W,d){!function(n){"use strict";n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")},week:{dow:0,doy:4}})}(d(10785))},98374:function(Ue,W,d){!function(n){"use strict";n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")}})}(d(10785))},92119:function(Ue,W,d){!function(n){"use strict";n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")},week:{dow:1,doy:4}})}(d(10785))},83964:function(Ue,W,d){!function(n){"use strict";n.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")},week:{dow:1,doy:4}})}(d(10785))},15979:function(Ue,W,d){!function(n){"use strict";n.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")}})}(d(10785))},75469:function(Ue,W,d){!function(n){"use strict";n.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")},week:{dow:0,doy:6}})}(d(10785))},61518:function(Ue,W,d){!function(n){"use strict";n.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")},week:{dow:1,doy:4}})}(d(10785))},34752:function(Ue,W,d){!function(n){"use strict";n.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")},week:{dow:1,doy:4}})}(d(10785))},47746:function(Ue,W,d){!function(n){"use strict";n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(p){return"p"===p.charAt(0).toLowerCase()},meridiem:function(p,m,_){return p>11?_?"p.t.m.":"P.T.M.":_?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(d(10785))},38554:function(Ue,W,d){!function(n){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),p="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),m=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,O){return v?/-MMM-/.test(O)?p[v.month()]:l[v.month()]:l},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(d(10785))},12254:function(Ue,W,d){!function(n){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),p="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),m=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,O){return v?/-MMM-/.test(O)?p[v.month()]:l[v.month()]:l},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(d(10785))},62267:function(Ue,W,d){!function(n){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),p="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),m=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,O){return v?/-MMM-/.test(O)?p[v.month()]:l[v.month()]:l},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(d(10785))},34294:function(Ue,W,d){!function(n){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),p="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),m=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(v,O){return v?/-MMM-/.test(O)?p[v.month()]:l[v.month()]:l},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(d(10785))},27511:function(Ue,W,d){!function(n){"use strict";function l(m,_,P,v){var O={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[m+"sekundi",m+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[m+" minuti",m+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[m+" tunni",m+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[m+" kuu",m+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[m+" aasta",m+" aastat"]};return _?O[P][2]?O[P][2]:O[P][1]:v?O[P][0]:O[P][1]}n.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:"%d p\xe4eva",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},86208:function(Ue,W,d){!function(n){"use strict";n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(d(10785))},25675:function(Ue,W,d){!function(n){"use strict";var l={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},p={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};n.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(_){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(_)},meridiem:function(_,P,v){return _<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/[\u06f0-\u06f9]/g,function(P){return p[P]}).replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(d(10785))},8547:function(Ue,W,d){!function(n){"use strict";var l="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),p=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",l[7],l[8],l[9]];function m(v,O,S,y){var r="";switch(S){case"s":return y?"muutaman sekunnin":"muutama sekunti";case"ss":r=y?"sekunnin":"sekuntia";break;case"m":return y?"minuutin":"minuutti";case"mm":r=y?"minuutin":"minuuttia";break;case"h":return y?"tunnin":"tunti";case"hh":r=y?"tunnin":"tuntia";break;case"d":return y?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":r=y?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return y?"kuukauden":"kuukausi";case"MM":r=y?"kuukauden":"kuukautta";break;case"y":return y?"vuoden":"vuosi";case"yy":r=y?"vuoden":"vuotta"}return function _(v,O){return v<10?O?p[v]:l[v]:v}(v,y)+" "+r}n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:m,ss:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},79839:function(Ue,W,d){!function(n){"use strict";n.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(p){return p},week:{dow:1,doy:4}})}(d(10785))},35721:function(Ue,W,d){!function(n){"use strict";n.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},85207:function(Ue,W,d){!function(n){"use strict";n.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(p,m){switch(m){default:case"M":case"Q":case"D":case"DDD":case"d":return p+(1===p?"er":"e");case"w":case"W":return p+(1===p?"re":"e")}}})}(d(10785))},75688:function(Ue,W,d){!function(n){"use strict";n.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(p,m){switch(m){default:case"M":case"Q":case"D":case"DDD":case"d":return p+(1===p?"er":"e");case"w":case"W":return p+(1===p?"re":"e")}},week:{dow:1,doy:4}})}(d(10785))},22270:function(Ue,W,d){!function(n){"use strict";var m=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,_=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];n.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:_,longMonthsParse:_,shortMonthsParse:_,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(v,O){switch(O){case"D":return v+(1===v?"er":"");default:case"M":case"Q":case"DDD":case"d":return v+(1===v?"er":"e");case"w":case"W":return v+(1===v?"re":"e")}},week:{dow:1,doy:4}})}(d(10785))},38963:function(Ue,W,d){!function(n){"use strict";var l="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),p="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(_,P){return _?/-MMM-/.test(P)?p[_.month()]:l[_.month()]:l},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(_){return _+(1===_||8===_||_>=20?"ste":"de")},week:{dow:1,doy:4}})}(d(10785))},77050:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(O){return O+(1===O?"d":O%10==2?"na":"mh")},week:{dow:1,doy:4}})}(d(10785))},28837:function(Ue,W,d){!function(n){"use strict";n.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(O){return O+(1===O?"d":O%10==2?"na":"mh")},week:{dow:1,doy:4}})}(d(10785))},74253:function(Ue,W,d){!function(n){"use strict";n.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(p){return 0===p.indexOf("un")?"n"+p:"en "+p},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(d(10785))},25008:function(Ue,W,d){!function(n){"use strict";function l(m,_,P,v){var O={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[m+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",m+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[m+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",m+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[m+" \u0935\u0930\u093e\u0902\u0928\u0940",m+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[m+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",m+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[m+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",m+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[m+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",m+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return v?O[P][0]:O[P][1]}n.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(m,_){return"D"===_?m+"\u0935\u0947\u0930":m},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(m,_){return 12===m&&(m=0),"\u0930\u093e\u0924\u0940"===_?m<4?m:m+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===_?m:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===_?m>12?m:m+12:"\u0938\u093e\u0902\u091c\u0947"===_?m+12:void 0},meridiem:function(m,_,P){return m<4?"\u0930\u093e\u0924\u0940":m<12?"\u0938\u0915\u093e\u0933\u0940\u0902":m<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":m<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(d(10785))},80523:function(Ue,W,d){!function(n){"use strict";function l(m,_,P,v){var O={s:["thoddea sekondamni","thodde sekond"],ss:[m+" sekondamni",m+" sekond"],m:["eka mintan","ek minut"],mm:[m+" mintamni",m+" mintam"],h:["eka voran","ek vor"],hh:[m+" voramni",m+" voram"],d:["eka disan","ek dis"],dd:[m+" disamni",m+" dis"],M:["eka mhoinean","ek mhoino"],MM:[m+" mhoineamni",m+" mhoine"],y:["eka vorsan","ek voros"],yy:[m+" vorsamni",m+" vorsam"]};return v?O[P][0]:O[P][1]}n.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(m,_){return"D"===_?m+"er":m},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(m,_){return 12===m&&(m=0),"rati"===_?m<4?m:m+12:"sokallim"===_?m:"donparam"===_?m>12?m:m+12:"sanje"===_?m+12:void 0},meridiem:function(m,_,P){return m<4?"rati":m<12?"sokallim":m<16?"donparam":m<20?"sanje":"rati"}})}(d(10785))},98454:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},p={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};n.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(_){return _.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(_,P){return 12===_&&(_=0),"\u0ab0\u0abe\u0aa4"===P?_<4?_:_+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?_:"\u0aac\u0aaa\u0acb\u0ab0"===P?_>=10?_:_+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?_+12:void 0},meridiem:function(_,P,v){return _<4?"\u0ab0\u0abe\u0aa4":_<10?"\u0ab8\u0ab5\u0abe\u0ab0":_<17?"\u0aac\u0aaa\u0acb\u0ab0":_<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(d(10785))},34117:function(Ue,W,d){!function(n){"use strict";n.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(p){return 2===p?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":p+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(p){return 2===p?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":p+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(p){return 2===p?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":p+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(p){return 2===p?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":p%10==0&&10!==p?p+" \u05e9\u05e0\u05d4":p+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(p){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(p)},meridiem:function(p,m,_){return p<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":p<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":p<12?_?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":p<18?_?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(d(10785))},66737:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},p={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},m=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];n.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:m,longMonthsParse:m,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(v){return v.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(O){return p[O]})},postformat:function(v){return v.replace(/\d/g,function(O){return l[O]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(v,O){return 12===v&&(v=0),"\u0930\u093e\u0924"===O?v<4?v:v+12:"\u0938\u0941\u092c\u0939"===O?v:"\u0926\u094b\u092a\u0939\u0930"===O?v>=10?v:v+12:"\u0936\u093e\u092e"===O?v+12:void 0},meridiem:function(v,O,S){return v<4?"\u0930\u093e\u0924":v<10?"\u0938\u0941\u092c\u0939":v<17?"\u0926\u094b\u092a\u0939\u0930":v<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(d(10785))},3136:function(Ue,W,d){!function(n){"use strict";function l(m,_,P){var v=m+" ";switch(P){case"ss":return v+(1===m?"sekunda":2===m||3===m||4===m?"sekunde":"sekundi");case"m":return _?"jedna minuta":"jedne minute";case"mm":return v+(1===m?"minuta":2===m||3===m||4===m?"minute":"minuta");case"h":return _?"jedan sat":"jednog sata";case"hh":return v+(1===m?"sat":2===m||3===m||4===m?"sata":"sati");case"dd":return v+(1===m?"dan":"dana");case"MM":return v+(1===m?"mjesec":2===m||3===m||4===m?"mjeseca":"mjeseci");case"yy":return v+(1===m?"godina":2===m||3===m||4===m?"godine":"godina")}}n.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(d(10785))},3637:function(Ue,W,d){!function(n){"use strict";var l="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function p(P,v,O,S){var y=P;switch(O){case"s":return S||v?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return y+(S||v)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(S||v?" perc":" perce");case"mm":return y+(S||v?" perc":" perce");case"h":return"egy"+(S||v?" \xf3ra":" \xf3r\xe1ja");case"hh":return y+(S||v?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(S||v?" nap":" napja");case"dd":return y+(S||v?" nap":" napja");case"M":return"egy"+(S||v?" h\xf3nap":" h\xf3napja");case"MM":return y+(S||v?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(S||v?" \xe9v":" \xe9ve");case"yy":return y+(S||v?" \xe9v":" \xe9ve")}return""}function m(P){return(P?"":"[m\xfalt] ")+"["+l[this.day()]+"] LT[-kor]"}n.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,v,O){return P<12?!0===O?"de":"DE":!0===O?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return m.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return m.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:p,ss:p,m:p,mm:p,h:p,hh:p,d:p,dd:p,M:p,MM:p,y:p,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},48204:function(Ue,W,d){!function(n){"use strict";n.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(p){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(p)},meridiem:function(p){return p<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":p<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":p<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(p,m){switch(m){case"DDD":case"w":case"W":case"DDDo":return 1===p?p+"-\u056b\u0576":p+"-\u0580\u0564";default:return p}},week:{dow:1,doy:7}})}(d(10785))},51795:function(Ue,W,d){!function(n){"use strict";n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(p,m){return 12===p&&(p=0),"pagi"===m?p:"siang"===m?p>=11?p:p+12:"sore"===m||"malam"===m?p+12:void 0},meridiem:function(p,m,_){return p<11?"pagi":p<15?"siang":p<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(d(10785))},17690:function(Ue,W,d){!function(n){"use strict";function l(_){return _%100==11||_%10!=1}function p(_,P,v,O){var S=_+" ";switch(v){case"s":return P||O?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return l(_)?S+(P||O?"sek\xfandur":"sek\xfandum"):S+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return l(_)?S+(P||O?"m\xedn\xfatur":"m\xedn\xfatum"):P?S+"m\xedn\xfata":S+"m\xedn\xfatu";case"hh":return l(_)?S+(P||O?"klukkustundir":"klukkustundum"):S+"klukkustund";case"d":return P?"dagur":O?"dag":"degi";case"dd":return l(_)?P?S+"dagar":S+(O?"daga":"d\xf6gum"):P?S+"dagur":S+(O?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":O?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return l(_)?P?S+"m\xe1nu\xf0ir":S+(O?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?S+"m\xe1nu\xf0ur":S+(O?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||O?"\xe1r":"\xe1ri";case"yy":return l(_)?S+(P||O?"\xe1r":"\xe1rum"):S+(P||O?"\xe1r":"\xe1ri")}}n.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:p,ss:p,m:p,mm:p,h:"klukkustund",hh:p,d:p,dd:p,M:p,MM:p,y:p,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},69127:function(Ue,W,d){!function(n){"use strict";n.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(p){return(/^[0-9].+$/.test(p)?"tra":"in")+" "+p},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(d(10785))},21379:function(Ue,W,d){!function(n){"use strict";n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(d(10785))},48319:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(p,m){return"\u5143"===m[1]?1:parseInt(m[1]||p,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(p){return"\u5348\u5f8c"===p},meridiem:function(p,m,_){return p<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(p){return p.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(p){return this.week()!==p.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(p,m){switch(m){case"y":return 1===p?"\u5143\u5e74":p+"\u5e74";case"d":case"D":case"DDD":return p+"\u65e5";default:return p}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(d(10785))},30830:function(Ue,W,d){!function(n){"use strict";n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(p,m){return 12===p&&(p=0),"enjing"===m?p:"siyang"===m?p>=11?p:p+12:"sonten"===m||"ndalu"===m?p+12:void 0},meridiem:function(p,m,_){return p<11?"enjing":p<15?"siyang":p<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(d(10785))},25806:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(p){return p.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(m,_,P){return"\u10d8"===P?_+"\u10e8\u10d8":_+P+"\u10e8\u10d8"})},past:function(p){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(p)?p.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(p)?p.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):p},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(p){return 0===p?p:1===p?p+"-\u10da\u10d8":p<20||p<=100&&p%20==0||p%100==0?"\u10db\u10d4-"+p:p+"-\u10d4"},week:{dow:1,doy:7}})}(d(10785))},95004:function(Ue,W,d){!function(n){"use strict";var l={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};n.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(m){return m+(l[m]||l[m%10]||l[m>=100?100:null])},week:{dow:1,doy:7}})}(d(10785))},96250:function(Ue,W,d){!function(n){"use strict";var l={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},p={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};n.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(_){return"\u179b\u17d2\u1784\u17b6\u1785"===_},meridiem:function(_,P,v){return _<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(_){return _.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},week:{dow:1,doy:4}})}(d(10785))},99975:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},p={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};n.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(_){return _.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(_,P){return 12===_&&(_=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?_<4?_:_+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?_:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?_>=10?_:_+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?_+12:void 0},meridiem:function(_,P,v){return _<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":_<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":_<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":_<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(_){return _+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(d(10785))},75824:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(p,m){switch(m){case"d":case"D":case"DDD":return p+"\uc77c";case"M":return p+"\uc6d4";case"w":case"W":return p+"\uc8fc";default:return p}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(p){return"\uc624\ud6c4"===p},meridiem:function(p,m,_){return p<12?"\uc624\uc804":"\uc624\ud6c4"}})}(d(10785))},94482:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},p={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},m=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];n.defineLocale("ku",{months:m,monthsShort:m,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,v,O){return P<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(v){return p[v]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(v){return l[v]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(d(10785))},36886:function(Ue,W,d){!function(n){"use strict";var l={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};n.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(m){return m+(l[m]||l[m%10]||l[m>=100?100:null])},week:{dow:1,doy:7}})}(d(10785))},98340:function(Ue,W,d){!function(n){"use strict";function l(v,O,S,y){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return O?r[S][0]:r[S][1]}function _(v){if(v=parseInt(v,10),isNaN(v))return!1;if(v<0)return!0;if(v<10)return 4<=v&&v<=7;if(v<100){var O=v%10;return _(0===O?v/10:O)}if(v<1e4){for(;v>=10;)v/=10;return _(v)}return _(v/=1e3)}n.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function p(v){return _(v.substr(0,v.indexOf(" ")))?"a "+v:"an "+v},past:function m(v){return _(v.substr(0,v.indexOf(" ")))?"viru "+v:"virun "+v},s:"e puer Sekonnen",ss:"%d Sekonnen",m:l,mm:"%d Minutten",h:l,hh:"%d Stonnen",d:l,dd:"%d Deeg",M:l,MM:"%d M\xe9int",y:l,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},36391:function(Ue,W,d){!function(n){"use strict";n.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(p){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===p},meridiem:function(p,m,_){return p<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(p){return"\u0e97\u0eb5\u0ec8"+p}})}(d(10785))},29842:function(Ue,W,d){!function(n){"use strict";var l={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function m(S,y,r,i){return y?P(r)[0]:i?P(r)[1]:P(r)[2]}function _(S){return S%10==0||S>10&&S<20}function P(S){return l[S].split("_")}function v(S,y,r,i){var a=S+" ";return 1===S?a+m(0,y,r[0],i):y?a+(_(S)?P(r)[1]:P(r)[0]):i?a+P(r)[1]:a+(_(S)?P(r)[1]:P(r)[2])}n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function p(S,y,r,i){return y?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:v,m,mm:v,h:m,hh:v,d:m,dd:v,M:m,MM:v,y:m,yy:v},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(S){return S+"-oji"},week:{dow:1,doy:4}})}(d(10785))},19432:function(Ue,W,d){!function(n){"use strict";var l={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function p(O,S,y){return y?S%10==1&&S%100!=11?O[2]:O[3]:S%10==1&&S%100!=11?O[0]:O[1]}function m(O,S,y){return O+" "+p(l[y],O,S)}function _(O,S,y){return p(l[y],O,S)}n.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function P(O,S){return S?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:m,m:_,mm:m,h:_,hh:m,d:_,dd:m,M:_,MM:m,y:_,yy:m},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},49832:function(Ue,W,d){!function(n){"use strict";var l={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(m,_){return 1===m?_[0]:m>=2&&m<=4?_[1]:_[2]},translate:function(m,_,P){var v=l.words[P];return 1===P.length?_?v[0]:v[1]:m+" "+l.correctGrammaticalCase(m,v)}};n.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:"dan",dd:l.translate,M:"mjesec",MM:l.translate,y:"godinu",yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(d(10785))},82124:function(Ue,W,d){!function(n){"use strict";n.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(d(10785))},77526:function(Ue,W,d){!function(n){"use strict";n.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(p){var m=p%10,_=p%100;return 0===p?p+"-\u0435\u0432":0===_?p+"-\u0435\u043d":_>10&&_<20?p+"-\u0442\u0438":1===m?p+"-\u0432\u0438":2===m?p+"-\u0440\u0438":7===m||8===m?p+"-\u043c\u0438":p+"-\u0442\u0438"},week:{dow:1,doy:7}})}(d(10785))},87095:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(p,m){return 12===p&&(p=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===m&&p>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===m||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===m?p+12:p},meridiem:function(p,m,_){return p<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":p<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":p<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":p<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(d(10785))},63737:function(Ue,W,d){!function(n){"use strict";function l(m,_,P,v){switch(P){case"s":return _?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return m+(_?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return m+(_?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return m+(_?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return m+(_?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return m+(_?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return m+(_?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return m}}n.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(m){return"\u04ae\u0425"===m},meridiem:function(m,_,P){return m<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(m,_){switch(_){case"d":case"D":case"DDD":return m+" \u04e9\u0434\u04e9\u0440";default:return m}}})}(d(10785))},76621:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},p={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function m(P,v,O,S){var y="";if(v)switch(O){case"s":y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":y="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":y="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":y="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":y="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":y="%d \u0924\u093e\u0938";break;case"d":y="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":y="%d \u0926\u093f\u0935\u0938";break;case"M":y="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":y="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":y="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":y="%d \u0935\u0930\u094d\u0937\u0947"}else switch(O){case"s":y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":y="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":y="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":y="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":y="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":y="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":y="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":y="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":y="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":y="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":y="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":y="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return y.replace(/%d/i,P)}n.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:m,ss:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(v){return p[v]})},postformat:function(P){return P.replace(/\d/g,function(v){return l[v]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(P,v){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===v||"\u0938\u0915\u093e\u0933\u0940"===v?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===v||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===v||"\u0930\u093e\u0924\u094d\u0930\u0940"===v?P>=12?P:P+12:void 0},meridiem:function(P,v,O){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(d(10785))},49749:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(p,m){return 12===p&&(p=0),"pagi"===m?p:"tengahari"===m?p>=11?p:p+12:"petang"===m||"malam"===m?p+12:void 0},meridiem:function(p,m,_){return p<11?"pagi":p<15?"tengahari":p<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(d(10785))},43662:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(p,m){return 12===p&&(p=0),"pagi"===m?p:"tengahari"===m?p>=11?p:p+12:"petang"===m||"malam"===m?p+12:void 0},meridiem:function(p,m,_){return p<11?"pagi":p<15?"tengahari":p<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(d(10785))},4815:function(Ue,W,d){!function(n){"use strict";n.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(d(10785))},35644:function(Ue,W,d){!function(n){"use strict";var l={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},p={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};n.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(_){return _.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},week:{dow:1,doy:4}})}(d(10785))},73926:function(Ue,W,d){!function(n){"use strict";n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},93607:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},p={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};n.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(_){return _.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(_,P){return 12===_&&(_=0),"\u0930\u093e\u0924\u093f"===P?_<4?_:_+12:"\u092c\u093f\u0939\u093e\u0928"===P?_:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?_>=10?_:_+12:"\u0938\u093e\u0901\u091d"===P?_+12:void 0},meridiem:function(_,P,v){return _<3?"\u0930\u093e\u0924\u093f":_<12?"\u092c\u093f\u0939\u093e\u0928":_<16?"\u0926\u093f\u0909\u0901\u0938\u094b":_<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(d(10785))},54316:function(Ue,W,d){!function(n){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),p="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),m=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],_=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;n.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(v,O){return v?/-MMM-/.test(O)?p[v.month()]:l[v.month()]:l},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(v){return v+(1===v||8===v||v>=20?"ste":"de")},week:{dow:1,doy:4}})}(d(10785))},46232:function(Ue,W,d){!function(n){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),p="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),m=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],_=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(v,O){return v?/-MMM-/.test(O)?p[v.month()]:l[v.month()]:l},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(v){return v+(1===v||8===v||v>=20?"ste":"de")},week:{dow:1,doy:4}})}(d(10785))},41634:function(Ue,W,d){!function(n){"use strict";n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},93118:function(Ue,W,d){!function(n){"use strict";n.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(p,m){var _=1===p?"r":2===p?"n":3===p?"r":4===p?"t":"\xe8";return("w"===m||"W"===m)&&(_="a"),p+_},week:{dow:1,doy:4}})}(d(10785))},98557:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},p={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};n.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(_){return _.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(_,P){return 12===_&&(_=0),"\u0a30\u0a3e\u0a24"===P?_<4?_:_+12:"\u0a38\u0a35\u0a47\u0a30"===P?_:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?_>=10?_:_+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?_+12:void 0},meridiem:function(_,P,v){return _<4?"\u0a30\u0a3e\u0a24":_<10?"\u0a38\u0a35\u0a47\u0a30":_<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":_<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(d(10785))},37110:function(Ue,W,d){!function(n){"use strict";var l="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),p="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),m=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function _(O){return O%10<5&&O%10>1&&~~(O/10)%10!=1}function P(O,S,y){var r=O+" ";switch(y){case"ss":return r+(_(O)?"sekundy":"sekund");case"m":return S?"minuta":"minut\u0119";case"mm":return r+(_(O)?"minuty":"minut");case"h":return S?"godzina":"godzin\u0119";case"hh":return r+(_(O)?"godziny":"godzin");case"ww":return r+(_(O)?"tygodnie":"tygodni");case"MM":return r+(_(O)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(_(O)?"lata":"lat")}}n.defineLocale("pl",{months:function(O,S){return O?/D MMMM/.test(S)?p[O.month()]:l[O.month()]:l},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},95875:function(Ue,W,d){!function(n){"use strict";n.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(d(10785))},68558:function(Ue,W,d){!function(n){"use strict";n.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(d(10785))},63741:function(Ue,W,d){!function(n){"use strict";function l(m,_,P){var O=" ";return(m%100>=20||m>=100&&m%100==0)&&(O=" de "),m+O+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:l,m:"un minut",mm:l,h:"o or\u0103",hh:l,d:"o zi",dd:l,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:l,M:"o lun\u0103",MM:l,y:"un an",yy:l},week:{dow:1,doy:7}})}(d(10785))},16803:function(Ue,W,d){!function(n){"use strict";function p(P,v,O){return"m"===O?v?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function l(P,v){var O=P.split("_");return v%10==1&&v%100!=11?O[0]:v%10>=2&&v%10<=4&&(v%100<10||v%100>=20)?O[1]:O[2]}({ss:v?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:v?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[O],+P)}var m=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];n.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:m,longMonthsParse:m,shortMonthsParse:m,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:p,m:p,mm:p,h:"\u0447\u0430\u0441",hh:p,d:"\u0434\u0435\u043d\u044c",dd:p,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:p,M:"\u043c\u0435\u0441\u044f\u0446",MM:p,y:"\u0433\u043e\u0434",yy:p},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,v,O){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,v){switch(v){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(d(10785))},81481:function(Ue,W,d){!function(n){"use strict";var l=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],p=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];n.defineLocale("sd",{months:l,monthsShort:l,weekdays:p,weekdaysShort:p,weekdaysMin:p,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(_){return"\u0634\u0627\u0645"===_},meridiem:function(_,P,v){return _<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(d(10785))},68954:function(Ue,W,d){!function(n){"use strict";n.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},21806:function(Ue,W,d){!function(n){"use strict";n.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(p){return p+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(p){return"\u0db4.\u0dc0."===p||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===p},meridiem:function(p,m,_){return p>11?_?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":_?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(d(10785))},57924:function(Ue,W,d){!function(n){"use strict";var l="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),p="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function m(v){return v>1&&v<5}function _(v,O,S,y){var r=v+" ";switch(S){case"s":return O||y?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return O||y?r+(m(v)?"sekundy":"sek\xfand"):r+"sekundami";case"m":return O?"min\xfata":y?"min\xfatu":"min\xfatou";case"mm":return O||y?r+(m(v)?"min\xfaty":"min\xfat"):r+"min\xfatami";case"h":return O?"hodina":y?"hodinu":"hodinou";case"hh":return O||y?r+(m(v)?"hodiny":"hod\xedn"):r+"hodinami";case"d":return O||y?"de\u0148":"d\u0148om";case"dd":return O||y?r+(m(v)?"dni":"dn\xed"):r+"d\u0148ami";case"M":return O||y?"mesiac":"mesiacom";case"MM":return O||y?r+(m(v)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return O||y?"rok":"rokom";case"yy":return O||y?r+(m(v)?"roky":"rokov"):r+"rokmi"}}n.defineLocale("sk",{months:l,monthsShort:p,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:_,ss:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},4945:function(Ue,W,d){!function(n){"use strict";function l(m,_,P,v){var O=m+" ";switch(P){case"s":return _||v?"nekaj sekund":"nekaj sekundami";case"ss":return O+(1===m?_?"sekundo":"sekundi":2===m?_||v?"sekundi":"sekundah":m<5?_||v?"sekunde":"sekundah":"sekund");case"m":return _?"ena minuta":"eno minuto";case"mm":return O+(1===m?_?"minuta":"minuto":2===m?_||v?"minuti":"minutama":m<5?_||v?"minute":"minutami":_||v?"minut":"minutami");case"h":return _?"ena ura":"eno uro";case"hh":return O+(1===m?_?"ura":"uro":2===m?_||v?"uri":"urama":m<5?_||v?"ure":"urami":_||v?"ur":"urami");case"d":return _||v?"en dan":"enim dnem";case"dd":return O+(1===m?_||v?"dan":"dnem":2===m?_||v?"dni":"dnevoma":_||v?"dni":"dnevi");case"M":return _||v?"en mesec":"enim mesecem";case"MM":return O+(1===m?_||v?"mesec":"mesecem":2===m?_||v?"meseca":"mesecema":m<5?_||v?"mesece":"meseci":_||v?"mesecev":"meseci");case"y":return _||v?"eno leto":"enim letom";case"yy":return O+(1===m?_||v?"leto":"letom":2===m?_||v?"leti":"letoma":m<5?_||v?"leta":"leti":_||v?"let":"leti")}}n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(d(10785))},6710:function(Ue,W,d){!function(n){"use strict";n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(p){return"M"===p.charAt(0)},meridiem:function(p,m,_){return p<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},80574:function(Ue,W,d){!function(n){"use strict";var l={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(m,_){return m%10>=1&&m%10<=4&&(m%100<10||m%100>=20)?m%10==1?_[0]:_[1]:_[2]},translate:function(m,_,P,v){var S,O=l.words[P];return 1===P.length?"y"===P&&_?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":v||_?O[0]:O[1]:(S=l.correctGrammaticalCase(m,O),"yy"===P&&_&&"\u0433\u043e\u0434\u0438\u043d\u0443"===S?m+" \u0433\u043e\u0434\u0438\u043d\u0430":m+" "+S)}};n.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(d(10785))},60531:function(Ue,W,d){!function(n){"use strict";var l={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(m,_){return m%10>=1&&m%10<=4&&(m%100<10||m%100>=20)?m%10==1?_[0]:_[1]:_[2]},translate:function(m,_,P,v){var S,O=l.words[P];return 1===P.length?"y"===P&&_?"jedna godina":v||_?O[0]:O[1]:(S=l.correctGrammaticalCase(m,O),"yy"===P&&_&&"godinu"===S?m+" godina":m+" "+S)}};n.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(d(10785))},60268:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(p,m,_){return p<11?"ekuseni":p<15?"emini":p<19?"entsambama":"ebusuku"},meridiemHour:function(p,m){return 12===p&&(p=0),"ekuseni"===m?p:"emini"===m?p>=11?p:p+12:"entsambama"===m||"ebusuku"===m?0===p?0:p+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(d(10785))},65239:function(Ue,W,d){!function(n){"use strict";n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?":e":1===m||2===m?":a":":e")},week:{dow:1,doy:4}})}(d(10785))},75520:function(Ue,W,d){!function(n){"use strict";n.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(d(10785))},42373:function(Ue,W,d){!function(n){"use strict";var l={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},p={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};n.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(_){return _+"\u0bb5\u0ba4\u0bc1"},preparse:function(_){return _.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return p[P]})},postformat:function(_){return _.replace(/\d/g,function(P){return l[P]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(_,P,v){return _<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":_<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":_<10?" \u0b95\u0bbe\u0bb2\u0bc8":_<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":_<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":_<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(_,P){return 12===_&&(_=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?_<2?_:_+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&_>=10?_:_+12},week:{dow:0,doy:6}})}(d(10785))},26409:function(Ue,W,d){!function(n){"use strict";n.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(p,m){return 12===p&&(p=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===m?p<4?p:p+12:"\u0c09\u0c26\u0c2f\u0c02"===m?p:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===m?p>=10?p:p+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===m?p+12:void 0},meridiem:function(p,m,_){return p<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":p<10?"\u0c09\u0c26\u0c2f\u0c02":p<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":p<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(d(10785))},39353:function(Ue,W,d){!function(n){"use strict";n.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")},week:{dow:1,doy:4}})}(d(10785))},82919:function(Ue,W,d){!function(n){"use strict";var l={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};n.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(m,_){return 12===m&&(m=0),"\u0448\u0430\u0431"===_?m<4?m:m+12:"\u0441\u0443\u0431\u04b3"===_?m:"\u0440\u04ef\u0437"===_?m>=11?m:m+12:"\u0431\u0435\u0433\u043e\u04b3"===_?m+12:void 0},meridiem:function(m,_,P){return m<4?"\u0448\u0430\u0431":m<11?"\u0441\u0443\u0431\u04b3":m<16?"\u0440\u04ef\u0437":m<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(m){return m+(l[m]||l[m%10]||l[m>=100?100:null])},week:{dow:1,doy:7}})}(d(10785))},50382:function(Ue,W,d){!function(n){"use strict";n.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(p){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===p},meridiem:function(p,m,_){return p<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(d(10785))},11:function(Ue,W,d){!function(n){"use strict";var l={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};n.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(m,_){switch(_){case"d":case"D":case"Do":case"DD":return m;default:if(0===m)return m+"'unjy";var P=m%10;return m+(l[P]||l[m%100-P]||l[m>=100?100:null])}},week:{dow:1,doy:7}})}(d(10785))},78171:function(Ue,W,d){!function(n){"use strict";n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(p){return p},week:{dow:1,doy:4}})}(d(10785))},64720:function(Ue,W,d){!function(n){"use strict";var l="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function _(O,S,y,r){var i=function P(O){var S=Math.floor(O%1e3/100),y=Math.floor(O%100/10),r=O%10,i="";return S>0&&(i+=l[S]+"vatlh"),y>0&&(i+=(""!==i?" ":"")+l[y]+"maH"),r>0&&(i+=(""!==i?" ":"")+l[r]),""===i?"pagh":i}(O);switch(y){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}n.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function p(O){var S=O;return-1!==O.indexOf("jaj")?S.slice(0,-3)+"leS":-1!==O.indexOf("jar")?S.slice(0,-3)+"waQ":-1!==O.indexOf("DIS")?S.slice(0,-3)+"nem":S+" pIq"},past:function m(O){var S=O;return-1!==O.indexOf("jaj")?S.slice(0,-3)+"Hu\u2019":-1!==O.indexOf("jar")?S.slice(0,-3)+"wen":-1!==O.indexOf("DIS")?S.slice(0,-3)+"ben":S+" ret"},s:"puS lup",ss:_,m:"wa\u2019 tup",mm:_,h:"wa\u2019 rep",hh:_,d:"wa\u2019 jaj",dd:_,M:"wa\u2019 jar",MM:_,y:"wa\u2019 DIS",yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},5196:function(Ue,W,d){!function(n){"use strict";var l={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};n.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(m,_,P){return m<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(m){return"\xf6s"===m||"\xd6S"===m},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(m,_){switch(_){case"d":case"D":case"Do":case"DD":return m;default:if(0===m)return m+"'\u0131nc\u0131";var P=m%10;return m+(l[P]||l[m%100-P]||l[m>=100?100:null])}},week:{dow:1,doy:7}})}(d(10785))},36026:function(Ue,W,d){!function(n){"use strict";function p(m,_,P,v){var O={s:["viensas secunds","'iensas secunds"],ss:[m+" secunds",m+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[m+" m\xeduts",m+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[m+" \xfeoras",m+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[m+" ziuas",m+" ziuas"],M:["'n mes","'iens mes"],MM:[m+" mesen",m+" mesen"],y:["'n ar","'iens ar"],yy:[m+" ars",m+" ars"]};return v||_?O[P][0]:O[P][1]}n.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(m){return"d'o"===m.toLowerCase()},meridiem:function(m,_,P){return m>11?P?"d'o":"D'O":P?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:p,ss:p,m:p,mm:p,h:p,hh:p,d:p,dd:p,M:p,MM:p,y:p,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(d(10785))},79995:function(Ue,W,d){!function(n){"use strict";n.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(d(10785))},91081:function(Ue,W,d){!function(n){"use strict";n.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(d(10785))},94546:function(Ue,W,d){!function(n){"use strict";n.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(p,m){return 12===p&&(p=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===m||"\u0633\u06d5\u06be\u06d5\u0631"===m||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===m?p:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===m||"\u0643\u06d5\u0686"===m?p+12:p>=11?p:p+12},meridiem:function(p,m,_){var P=100*p+m;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(p,m){switch(m){case"d":case"D":case"DDD":return p+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return p+"-\u06be\u06d5\u067e\u062a\u06d5";default:return p}},preparse:function(p){return p.replace(/\u060c/g,",")},postformat:function(p){return p.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(d(10785))},43358:function(Ue,W,d){!function(n){"use strict";function p(v,O,S){return"m"===S?O?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===S?O?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":v+" "+function l(v,O){var S=v.split("_");return O%10==1&&O%100!=11?S[0]:O%10>=2&&O%10<=4&&(O%100<10||O%100>=20)?S[1]:S[2]}({ss:O?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:O?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:O?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[S],+v)}function _(v){return function(){return v+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}n.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function m(v,O){var S={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===v?S.nominative.slice(1,7).concat(S.nominative.slice(0,1)):v?S[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(O)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(O)?"genitive":"nominative"][v.day()]:S.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:_("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:_("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:_("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:_("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return _("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return _("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:p,m:p,mm:p,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:p,d:"\u0434\u0435\u043d\u044c",dd:p,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:p,y:"\u0440\u0456\u043a",yy:p},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(v){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(v)},meridiem:function(v,O,S){return v<4?"\u043d\u043e\u0447\u0456":v<12?"\u0440\u0430\u043d\u043a\u0443":v<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(v,O){switch(O){case"M":case"d":case"DDD":case"w":case"W":return v+"-\u0439";case"D":return v+"-\u0433\u043e";default:return v}},week:{dow:1,doy:7}})}(d(10785))},72773:function(Ue,W,d){!function(n){"use strict";var l=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],p=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];n.defineLocale("ur",{months:l,monthsShort:l,weekdays:p,weekdaysShort:p,weekdaysMin:p,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(_){return"\u0634\u0627\u0645"===_},meridiem:function(_,P,v){return _<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(d(10785))},66999:function(Ue,W,d){!function(n){"use strict";n.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(d(10785))},23149:function(Ue,W,d){!function(n){"use strict";n.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(d(10785))},66419:function(Ue,W,d){!function(n){"use strict";n.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(p){return/^ch$/i.test(p)},meridiem:function(p,m,_){return p<12?_?"sa":"SA":_?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(p){return p},week:{dow:1,doy:4}})}(d(10785))},19943:function(Ue,W,d){!function(n){"use strict";n.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(p){var m=p%10;return p+(1==~~(p%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th")},week:{dow:1,doy:4}})}(d(10785))},142:function(Ue,W,d){!function(n){"use strict";n.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(d(10785))},12076:function(Ue,W,d){!function(n){"use strict";n.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(p,m){return 12===p&&(p=0),"\u51cc\u6668"===m||"\u65e9\u4e0a"===m||"\u4e0a\u5348"===m?p:"\u4e0b\u5348"===m||"\u665a\u4e0a"===m?p+12:p>=11?p:p+12},meridiem:function(p,m,_){var P=100*p+m;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(p){return p.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(p){return this.week()!==p.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(p,m){switch(m){case"d":case"D":case"DDD":return p+"\u65e5";case"M":return p+"\u6708";case"w":case"W":return p+"\u5468";default:return p}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(d(10785))},8556:function(Ue,W,d){!function(n){"use strict";n.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(p,m){return 12===p&&(p=0),"\u51cc\u6668"===m||"\u65e9\u4e0a"===m||"\u4e0a\u5348"===m?p:"\u4e2d\u5348"===m?p>=11?p:p+12:"\u4e0b\u5348"===m||"\u665a\u4e0a"===m?p+12:void 0},meridiem:function(p,m,_){var P=100*p+m;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(p,m){switch(m){case"d":case"D":case"DDD":return p+"\u65e5";case"M":return p+"\u6708";case"w":case"W":return p+"\u9031";default:return p}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(d(10785))},88257:function(Ue,W,d){!function(n){"use strict";n.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(p,m){return 12===p&&(p=0),"\u51cc\u6668"===m||"\u65e9\u4e0a"===m||"\u4e0a\u5348"===m?p:"\u4e2d\u5348"===m?p>=11?p:p+12:"\u4e0b\u5348"===m||"\u665a\u4e0a"===m?p+12:void 0},meridiem:function(p,m,_){var P=100*p+m;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(p,m){switch(m){case"d":case"D":case"DDD":return p+"\u65e5";case"M":return p+"\u6708";case"w":case"W":return p+"\u9031";default:return p}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(d(10785))},57068:function(Ue,W,d){!function(n){"use strict";n.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(p,m){return 12===p&&(p=0),"\u51cc\u6668"===m||"\u65e9\u4e0a"===m||"\u4e0a\u5348"===m?p:"\u4e2d\u5348"===m?p>=11?p:p+12:"\u4e0b\u5348"===m||"\u665a\u4e0a"===m?p+12:void 0},meridiem:function(p,m,_){var P=100*p+m;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(p,m){switch(m){case"d":case"D":case"DDD":return p+"\u65e5";case"M":return p+"\u6708";case"w":case"W":return p+"\u9031";default:return p}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(d(10785))},10785:function(Ue,W,d){(Ue=d.nmd(Ue)).exports=function(){"use strict";var n,c;function l(){return n.apply(null,arguments)}function m(fe){return fe instanceof Array||"[object Array]"===Object.prototype.toString.call(fe)}function _(fe){return null!=fe&&"[object Object]"===Object.prototype.toString.call(fe)}function P(fe,Ge){return Object.prototype.hasOwnProperty.call(fe,Ge)}function v(fe){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(fe).length;var Ge;for(Ge in fe)if(P(fe,Ge))return!1;return!0}function O(fe){return void 0===fe}function S(fe){return"number"==typeof fe||"[object Number]"===Object.prototype.toString.call(fe)}function y(fe){return fe instanceof Date||"[object Date]"===Object.prototype.toString.call(fe)}function r(fe,Ge){var an,It=[],kn=fe.length;for(an=0;an<kn;++an)It.push(Ge(fe[an],an));return It}function i(fe,Ge){for(var It in Ge)P(Ge,It)&&(fe[It]=Ge[It]);return P(Ge,"toString")&&(fe.toString=Ge.toString),P(Ge,"valueOf")&&(fe.valueOf=Ge.valueOf),fe}function a(fe,Ge,It,an){return zr(fe,Ge,It,an,!0).utc()}function g(fe){return null==fe._pf&&(fe._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),fe._pf}function T(fe){if(null==fe._isValid){var Ge=g(fe),It=c.call(Ge.parsedDateParts,function(kn){return null!=kn}),an=!isNaN(fe._d.getTime())&&Ge.overflow<0&&!Ge.empty&&!Ge.invalidEra&&!Ge.invalidMonth&&!Ge.invalidWeekday&&!Ge.weekdayMismatch&&!Ge.nullInput&&!Ge.invalidFormat&&!Ge.userInvalidated&&(!Ge.meridiem||Ge.meridiem&&It);if(fe._strict&&(an=an&&0===Ge.charsLeftOver&&0===Ge.unusedTokens.length&&void 0===Ge.bigHour),null!=Object.isFrozen&&Object.isFrozen(fe))return an;fe._isValid=an}return fe._isValid}function A(fe){var Ge=a(NaN);return null!=fe?i(g(Ge),fe):g(Ge).userInvalidated=!0,Ge}c=Array.prototype.some?Array.prototype.some:function(fe){var an,Ge=Object(this),It=Ge.length>>>0;for(an=0;an<It;an++)if(an in Ge&&fe.call(this,Ge[an],an,Ge))return!0;return!1};var L=l.momentProperties=[],x=!1;function V(fe,Ge){var It,an,kn,Ni=L.length;if(O(Ge._isAMomentObject)||(fe._isAMomentObject=Ge._isAMomentObject),O(Ge._i)||(fe._i=Ge._i),O(Ge._f)||(fe._f=Ge._f),O(Ge._l)||(fe._l=Ge._l),O(Ge._strict)||(fe._strict=Ge._strict),O(Ge._tzm)||(fe._tzm=Ge._tzm),O(Ge._isUTC)||(fe._isUTC=Ge._isUTC),O(Ge._offset)||(fe._offset=Ge._offset),O(Ge._pf)||(fe._pf=g(Ge)),O(Ge._locale)||(fe._locale=Ge._locale),Ni>0)for(It=0;It<Ni;It++)O(kn=Ge[an=L[It]])||(fe[an]=kn);return fe}function D(fe){V(this,fe),this._d=new Date(null!=fe._d?fe._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,l.updateOffset(this),x=!1)}function F(fe){return fe instanceof D||null!=fe&&null!=fe._isAMomentObject}function I(fe){!1===l.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+fe)}function k(fe,Ge){var It=!0;return i(function(){if(null!=l.deprecationHandler&&l.deprecationHandler(null,fe),It){var kn,Ni,cr,an=[],jo=arguments.length;for(Ni=0;Ni<jo;Ni++){if(kn="","object"==typeof arguments[Ni]){for(cr in kn+="\n["+Ni+"] ",arguments[0])P(arguments[0],cr)&&(kn+=cr+": "+arguments[0][cr]+", ");kn=kn.slice(0,-2)}else kn=arguments[Ni];an.push(kn)}I(fe+"\nArguments: "+Array.prototype.slice.call(an).join("")+"\n"+(new Error).stack),It=!1}return Ge.apply(this,arguments)},Ge)}var J,R={};function G(fe,Ge){null!=l.deprecationHandler&&l.deprecationHandler(fe,Ge),R[fe]||(I(Ge),R[fe]=!0)}function Y(fe){return typeof Function<"u"&&fe instanceof Function||"[object Function]"===Object.prototype.toString.call(fe)}function $(fe,Ge){var an,It=i({},fe);for(an in Ge)P(Ge,an)&&(_(fe[an])&&_(Ge[an])?(It[an]={},i(It[an],fe[an]),i(It[an],Ge[an])):null!=Ge[an]?It[an]=Ge[an]:delete It[an]);for(an in fe)P(fe,an)&&!P(Ge,an)&&_(fe[an])&&(It[an]=i({},It[an]));return It}function ee(fe){null!=fe&&this.set(fe)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null,J=Object.keys?Object.keys:function(fe){var Ge,It=[];for(Ge in fe)P(fe,Ge)&&It.push(Ge);return It};function X(fe,Ge,It){var an=""+Math.abs(fe);return(fe>=0?It?"+":"":"-")+Math.pow(10,Math.max(0,Ge-an.length)).toString().substr(1)+an}var re=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ge=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},xe={};function ue(fe,Ge,It,an){var kn=an;"string"==typeof an&&(kn=function(){return this[an]()}),fe&&(xe[fe]=kn),Ge&&(xe[Ge[0]]=function(){return X(kn.apply(this,arguments),Ge[1],Ge[2])}),It&&(xe[It]=function(){return this.localeData().ordinal(kn.apply(this,arguments),fe)})}function N(fe){return fe.match(/\[[\s\S]/)?fe.replace(/^\[|\]$/g,""):fe.replace(/\\/g,"")}function ce(fe,Ge){return fe.isValid()?(Ge=Z(Ge,fe.localeData()),oe[Ge]=oe[Ge]||function se(fe){var It,an,Ge=fe.match(re);for(It=0,an=Ge.length;It<an;It++)Ge[It]=xe[Ge[It]]?xe[Ge[It]]:N(Ge[It]);return function(kn){var cr,Ni="";for(cr=0;cr<an;cr++)Ni+=Y(Ge[cr])?Ge[cr].call(kn,fe):Ge[cr];return Ni}}(Ge),oe[Ge](fe)):fe.localeData().invalidDate()}function Z(fe,Ge){var It=5;function an(kn){return Ge.longDateFormat(kn)||kn}for(ge.lastIndex=0;It>=0&&ge.test(fe);)fe=fe.replace(ge,an),ge.lastIndex=0,It-=1;return fe}var gt={};function qt(fe,Ge){var It=fe.toLowerCase();gt[It]=gt[It+"s"]=gt[Ge]=fe}function ye(fe){return"string"==typeof fe?gt[fe]||gt[fe.toLowerCase()]:void 0}function Re(fe){var It,an,Ge={};for(an in fe)P(fe,an)&&(It=ye(an))&&(Ge[It]=fe[an]);return Ge}var Ze={};function et(fe,Ge){Ze[fe]=Ge}function un(fe){return fe%4==0&&fe%100!=0||fe%400==0}function ct(fe){return fe<0?Math.ceil(fe)||0:Math.floor(fe)}function Gt(fe){var Ge=+fe,It=0;return 0!==Ge&&isFinite(Ge)&&(It=ct(Ge)),It}function pn(fe,Ge){return function(It){return null!=It?(mn(this,fe,It),l.updateOffset(this,Ge),this):st(this,fe)}}function st(fe,Ge){return fe.isValid()?fe._d["get"+(fe._isUTC?"UTC":"")+Ge]():NaN}function mn(fe,Ge,It){fe.isValid()&&!isNaN(It)&&("FullYear"===Ge&&un(fe.year())&&1===fe.month()&&29===fe.date()?(It=Gt(It),fe._d["set"+(fe._isUTC?"UTC":"")+Ge](It,fe.month(),zn(It,fe.month()))):fe._d["set"+(fe._isUTC?"UTC":"")+Ge](It))}var nt,Cn=/\d/,fn=/\d\d/,dt=/\d{3}/,nn=/\d{4}/,yn=/[+-]?\d{6}/,Xn=/\d\d?/,rn=/\d\d\d\d?/,ai=/\d\d\d\d\d\d?/,ri=/\d{1,3}/,Ne=/\d{1,4}/,zt=/[+-]?\d{1,6}/,vt=/\d+/,Ct=/[+-]?\d+/,it=/Z|[+-]\d\d:?\d\d/gi,Ut=/Z|[+-]\d\d(?::?\d\d)?/gi,wn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function on(fe,Ge,It){nt[fe]=Y(Ge)?Ge:function(an,kn){return an&&It?It:Ge}}function mt(fe,Ge){return P(nt,fe)?nt[fe](Ge._strict,Ge._locale):new RegExp(function _n(fe){return wt(fe.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Ge,It,an,kn,Ni){return It||an||kn||Ni}))}(fe))}function wt(fe){return fe.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}nt={};var Un={};function Oi(fe,Ge){var It,kn,an=Ge;for("string"==typeof fe&&(fe=[fe]),S(Ge)&&(an=function(Ni,cr){cr[Ge]=Gt(Ni)}),kn=fe.length,It=0;It<kn;It++)Un[fe[It]]=an}function At(fe,Ge){Oi(fe,function(It,an,kn,Ni){kn._w=kn._w||{},Ge(It,kn._w,kn,Ni)})}function Hn(fe,Ge,It){null!=Ge&&P(Un,fe)&&Un[fe](Ge,It._a,It,fe)}var Dn,pi=0,Zi=1,Lr=2,Kr=3,Qt=4,di=5,ji=6,vi=7,Zt=8;function zn(fe,Ge){if(isNaN(fe)||isNaN(Ge))return NaN;var It=function Zn(fe,Ge){return(fe%Ge+Ge)%Ge}(Ge,12);return fe+=(Ge-It)/12,1===It?un(fe)?29:28:31-It%7%2}Dn=Array.prototype.indexOf?Array.prototype.indexOf:function(fe){var Ge;for(Ge=0;Ge<this.length;++Ge)if(this[Ge]===fe)return Ge;return-1},ue("M",["MM",2],"Mo",function(){return this.month()+1}),ue("MMM",0,0,function(fe){return this.localeData().monthsShort(this,fe)}),ue("MMMM",0,0,function(fe){return this.localeData().months(this,fe)}),qt("month","M"),et("month",8),on("M",Xn),on("MM",Xn,fn),on("MMM",function(fe,Ge){return Ge.monthsShortRegex(fe)}),on("MMMM",function(fe,Ge){return Ge.monthsRegex(fe)}),Oi(["M","MM"],function(fe,Ge){Ge[Zi]=Gt(fe)-1}),Oi(["MMM","MMMM"],function(fe,Ge,It,an){var kn=It._locale.monthsParse(fe,an,It._strict);null!=kn?Ge[Zi]=kn:g(It).invalidMonth=fe});var Ti="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Xt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mi=wn,$n=wn;function ar(fe,Ge,It){var an,kn,Ni,cr=fe.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],an=0;an<12;++an)Ni=a([2e3,an]),this._shortMonthsParse[an]=this.monthsShort(Ni,"").toLocaleLowerCase(),this._longMonthsParse[an]=this.months(Ni,"").toLocaleLowerCase();return It?"MMM"===Ge?-1!==(kn=Dn.call(this._shortMonthsParse,cr))?kn:null:-1!==(kn=Dn.call(this._longMonthsParse,cr))?kn:null:"MMM"===Ge?-1!==(kn=Dn.call(this._shortMonthsParse,cr))||-1!==(kn=Dn.call(this._longMonthsParse,cr))?kn:null:-1!==(kn=Dn.call(this._longMonthsParse,cr))||-1!==(kn=Dn.call(this._shortMonthsParse,cr))?kn:null}function ki(fe,Ge){var It;if(!fe.isValid())return fe;if("string"==typeof Ge)if(/^\d+$/.test(Ge))Ge=Gt(Ge);else if(!S(Ge=fe.localeData().monthsParse(Ge)))return fe;return It=Math.min(fe.date(),zn(fe.year(),Ge)),fe._d["set"+(fe._isUTC?"UTC":"")+"Month"](Ge,It),fe}function Fr(fe){return null!=fe?(ki(this,fe),l.updateOffset(this,!0),this):st(this,"Month")}function ni(){function fe(cr,jo){return jo.length-cr.length}var kn,Ni,Ge=[],It=[],an=[];for(kn=0;kn<12;kn++)Ni=a([2e3,kn]),Ge.push(this.monthsShort(Ni,"")),It.push(this.months(Ni,"")),an.push(this.months(Ni,"")),an.push(this.monthsShort(Ni,""));for(Ge.sort(fe),It.sort(fe),an.sort(fe),kn=0;kn<12;kn++)Ge[kn]=wt(Ge[kn]),It[kn]=wt(It[kn]);for(kn=0;kn<24;kn++)an[kn]=wt(an[kn]);this._monthsRegex=new RegExp("^("+an.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+It.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Ge.join("|")+")","i")}function he(fe){return un(fe)?366:365}ue("Y",0,0,function(){var fe=this.year();return fe<=9999?X(fe,4):"+"+fe}),ue(0,["YY",2],0,function(){return this.year()%100}),ue(0,["YYYY",4],0,"year"),ue(0,["YYYYY",5],0,"year"),ue(0,["YYYYYY",6,!0],0,"year"),qt("year","y"),et("year",1),on("Y",Ct),on("YY",Xn,fn),on("YYYY",Ne,nn),on("YYYYY",zt,yn),on("YYYYYY",zt,yn),Oi(["YYYYY","YYYYYY"],pi),Oi("YYYY",function(fe,Ge){Ge[pi]=2===fe.length?l.parseTwoDigitYear(fe):Gt(fe)}),Oi("YY",function(fe,Ge){Ge[pi]=l.parseTwoDigitYear(fe)}),Oi("Y",function(fe,Ge){Ge[pi]=parseInt(fe,10)}),l.parseTwoDigitYear=function(fe){return Gt(fe)+(Gt(fe)>68?1900:2e3)};var Ee=pn("FullYear",!0);function Qe(fe,Ge,It,an,kn,Ni,cr){var jo;return fe<100&&fe>=0?(jo=new Date(fe+400,Ge,It,an,kn,Ni,cr),isFinite(jo.getFullYear())&&jo.setFullYear(fe)):jo=new Date(fe,Ge,It,an,kn,Ni,cr),jo}function Be(fe){var Ge,It;return fe<100&&fe>=0?((It=Array.prototype.slice.call(arguments))[0]=fe+400,Ge=new Date(Date.UTC.apply(null,It)),isFinite(Ge.getUTCFullYear())&&Ge.setUTCFullYear(fe)):Ge=new Date(Date.UTC.apply(null,arguments)),Ge}function Mt(fe,Ge,It){var an=7+Ge-It;return-(7+Be(fe,0,an).getUTCDay()-Ge)%7+an-1}function Vt(fe,Ge,It,an,kn){var bs,da,jo=1+7*(Ge-1)+(7+It-an)%7+Mt(fe,an,kn);return jo<=0?da=he(bs=fe-1)+jo:jo>he(fe)?(bs=fe+1,da=jo-he(fe)):(bs=fe,da=jo),{year:bs,dayOfYear:da}}function Vn(fe,Ge,It){var Ni,cr,an=Mt(fe.year(),Ge,It),kn=Math.floor((fe.dayOfYear()-an-1)/7)+1;return kn<1?Ni=kn+si(cr=fe.year()-1,Ge,It):kn>si(fe.year(),Ge,It)?(Ni=kn-si(fe.year(),Ge,It),cr=fe.year()+1):(cr=fe.year(),Ni=kn),{week:Ni,year:cr}}function si(fe,Ge,It){var an=Mt(fe,Ge,It),kn=Mt(fe+1,Ge,It);return(he(fe)-an+kn)/7}ue("w",["ww",2],"wo","week"),ue("W",["WW",2],"Wo","isoWeek"),qt("week","w"),qt("isoWeek","W"),et("week",5),et("isoWeek",5),on("w",Xn),on("ww",Xn,fn),on("W",Xn),on("WW",Xn,fn),At(["w","ww","W","WW"],function(fe,Ge,It,an){Ge[an.substr(0,1)]=Gt(fe)});function ro(fe,Ge){return fe.slice(Ge,7).concat(fe.slice(0,Ge))}ue("d",0,"do","day"),ue("dd",0,0,function(fe){return this.localeData().weekdaysMin(this,fe)}),ue("ddd",0,0,function(fe){return this.localeData().weekdaysShort(this,fe)}),ue("dddd",0,0,function(fe){return this.localeData().weekdays(this,fe)}),ue("e",0,0,"weekday"),ue("E",0,0,"isoWeekday"),qt("day","d"),qt("weekday","e"),qt("isoWeekday","E"),et("day",11),et("weekday",11),et("isoWeekday",11),on("d",Xn),on("e",Xn),on("E",Xn),on("dd",function(fe,Ge){return Ge.weekdaysMinRegex(fe)}),on("ddd",function(fe,Ge){return Ge.weekdaysShortRegex(fe)}),on("dddd",function(fe,Ge){return Ge.weekdaysRegex(fe)}),At(["dd","ddd","dddd"],function(fe,Ge,It,an){var kn=It._locale.weekdaysParse(fe,an,It._strict);null!=kn?Ge.d=kn:g(It).invalidWeekday=fe}),At(["d","e","E"],function(fe,Ge,It,an){Ge[an]=Gt(fe)});var po="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Os="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),es="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bs=wn,li=wn,dr=wn;function oi(fe,Ge,It){var an,kn,Ni,cr=fe.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],an=0;an<7;++an)Ni=a([2e3,1]).day(an),this._minWeekdaysParse[an]=this.weekdaysMin(Ni,"").toLocaleLowerCase(),this._shortWeekdaysParse[an]=this.weekdaysShort(Ni,"").toLocaleLowerCase(),this._weekdaysParse[an]=this.weekdays(Ni,"").toLocaleLowerCase();return It?"dddd"===Ge?-1!==(kn=Dn.call(this._weekdaysParse,cr))?kn:null:"ddd"===Ge?-1!==(kn=Dn.call(this._shortWeekdaysParse,cr))?kn:null:-1!==(kn=Dn.call(this._minWeekdaysParse,cr))?kn:null:"dddd"===Ge?-1!==(kn=Dn.call(this._weekdaysParse,cr))||-1!==(kn=Dn.call(this._shortWeekdaysParse,cr))||-1!==(kn=Dn.call(this._minWeekdaysParse,cr))?kn:null:"ddd"===Ge?-1!==(kn=Dn.call(this._shortWeekdaysParse,cr))||-1!==(kn=Dn.call(this._weekdaysParse,cr))||-1!==(kn=Dn.call(this._minWeekdaysParse,cr))?kn:null:-1!==(kn=Dn.call(this._minWeekdaysParse,cr))||-1!==(kn=Dn.call(this._weekdaysParse,cr))||-1!==(kn=Dn.call(this._shortWeekdaysParse,cr))?kn:null}function ts(){function fe(ir,us){return us.length-ir.length}var Ni,cr,jo,bs,da,Ge=[],It=[],an=[],kn=[];for(Ni=0;Ni<7;Ni++)cr=a([2e3,1]).day(Ni),jo=wt(this.weekdaysMin(cr,"")),bs=wt(this.weekdaysShort(cr,"")),da=wt(this.weekdays(cr,"")),Ge.push(jo),It.push(bs),an.push(da),kn.push(jo),kn.push(bs),kn.push(da);Ge.sort(fe),It.sort(fe),an.sort(fe),kn.sort(fe),this._weekdaysRegex=new RegExp("^("+kn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+an.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+It.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Ge.join("|")+")","i")}function Ls(){return this.hours()%12||12}function Hs(fe,Ge){ue(fe,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Ge)})}function Ua(fe,Ge){return Ge._meridiemParse}ue("H",["HH",2],0,"hour"),ue("h",["hh",2],0,Ls),ue("k",["kk",2],0,function Xr(){return this.hours()||24}),ue("hmm",0,0,function(){return""+Ls.apply(this)+X(this.minutes(),2)}),ue("hmmss",0,0,function(){return""+Ls.apply(this)+X(this.minutes(),2)+X(this.seconds(),2)}),ue("Hmm",0,0,function(){return""+this.hours()+X(this.minutes(),2)}),ue("Hmmss",0,0,function(){return""+this.hours()+X(this.minutes(),2)+X(this.seconds(),2)}),Hs("a",!0),Hs("A",!1),qt("hour","h"),et("hour",13),on("a",Ua),on("A",Ua),on("H",Xn),on("h",Xn),on("k",Xn),on("HH",Xn,fn),on("hh",Xn,fn),on("kk",Xn,fn),on("hmm",rn),on("hmmss",ai),on("Hmm",rn),on("Hmmss",ai),Oi(["H","HH"],Kr),Oi(["k","kk"],function(fe,Ge,It){var an=Gt(fe);Ge[Kr]=24===an?0:an}),Oi(["a","A"],function(fe,Ge,It){It._isPm=It._locale.isPM(fe),It._meridiem=fe}),Oi(["h","hh"],function(fe,Ge,It){Ge[Kr]=Gt(fe),g(It).bigHour=!0}),Oi("hmm",function(fe,Ge,It){var an=fe.length-2;Ge[Kr]=Gt(fe.substr(0,an)),Ge[Qt]=Gt(fe.substr(an)),g(It).bigHour=!0}),Oi("hmmss",function(fe,Ge,It){var an=fe.length-4,kn=fe.length-2;Ge[Kr]=Gt(fe.substr(0,an)),Ge[Qt]=Gt(fe.substr(an,2)),Ge[di]=Gt(fe.substr(kn)),g(It).bigHour=!0}),Oi("Hmm",function(fe,Ge,It){var an=fe.length-2;Ge[Kr]=Gt(fe.substr(0,an)),Ge[Qt]=Gt(fe.substr(an))}),Oi("Hmmss",function(fe,Ge,It){var an=fe.length-4,kn=fe.length-2;Ge[Kr]=Gt(fe.substr(0,an)),Ge[Qt]=Gt(fe.substr(an,2)),Ge[di]=Gt(fe.substr(kn))});var Pa=pn("Hours",!0);var Gs,Ga={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ti,monthsShort:Xt,week:{dow:0,doy:6},weekdays:po,weekdaysMin:es,weekdaysShort:Os,meridiemParse:/[ap]\.?m?\.?/i},To={},ss={};function va(fe,Ge){var It,an=Math.min(fe.length,Ge.length);for(It=0;It<an;It+=1)if(fe[It]!==Ge[It])return It;return an}function Ca(fe){return fe&&fe.toLowerCase().replace("_","-")}function Qi(fe){var Ge=null;if(void 0===To[fe]&&Ue&&Ue.exports&&function Pi(fe){return null!=fe.match("^[^/\\\\]*$")}(fe))try{Ge=Gs._abbr,d(35358)("./"+fe),yi(Ge)}catch{To[fe]=null}return To[fe]}function yi(fe,Ge){var It;return fe&&((It=O(Ge)?Ki(fe):Di(fe,Ge))?Gs=It:typeof console<"u"&&console.warn&&console.warn("Locale "+fe+" not found. Did you forget to load it?")),Gs._abbr}function Di(fe,Ge){if(null!==Ge){var It,an=Ga;if(Ge.abbr=fe,null!=To[fe])G("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),an=To[fe]._config;else if(null!=Ge.parentLocale)if(null!=To[Ge.parentLocale])an=To[Ge.parentLocale]._config;else{if(null==(It=Qi(Ge.parentLocale)))return ss[Ge.parentLocale]||(ss[Ge.parentLocale]=[]),ss[Ge.parentLocale].push({name:fe,config:Ge}),null;an=It._config}return To[fe]=new ee($(an,Ge)),ss[fe]&&ss[fe].forEach(function(kn){Di(kn.name,kn.config)}),yi(fe),To[fe]}return delete To[fe],null}function Ki(fe){var Ge;if(fe&&fe._locale&&fe._locale._abbr&&(fe=fe._locale._abbr),!fe)return Gs;if(!m(fe)){if(Ge=Qi(fe))return Ge;fe=[fe]}return function ln(fe){for(var It,an,kn,Ni,Ge=0;Ge<fe.length;){for(It=(Ni=Ca(fe[Ge]).split("-")).length,an=(an=Ca(fe[Ge+1]))?an.split("-"):null;It>0;){if(kn=Qi(Ni.slice(0,It).join("-")))return kn;if(an&&an.length>=It&&va(Ni,an)>=It-1)break;It--}Ge++}return Gs}(fe)}function Mr(fe){var Ge,It=fe._a;return It&&-2===g(fe).overflow&&(Ge=It[Zi]<0||It[Zi]>11?Zi:It[Lr]<1||It[Lr]>zn(It[pi],It[Zi])?Lr:It[Kr]<0||It[Kr]>24||24===It[Kr]&&(0!==It[Qt]||0!==It[di]||0!==It[ji])?Kr:It[Qt]<0||It[Qt]>59?Qt:It[di]<0||It[di]>59?di:It[ji]<0||It[ji]>999?ji:-1,g(fe)._overflowDayOfYear&&(Ge<pi||Ge>Lr)&&(Ge=Lr),g(fe)._overflowWeeks&&-1===Ge&&(Ge=vi),g(fe)._overflowWeekday&&-1===Ge&&(Ge=Zt),g(fe).overflow=Ge),fe}var nr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,en=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wt=/Z|[+-]\d\d(?::?\d\d)?/,On=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Nt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gi=/^\/?Date\((-?\d+)/i,Bi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tr(fe){var Ge,It,Ni,cr,jo,bs,an=fe._i,kn=nr.exec(an)||en.exec(an),da=On.length,ir=Nt.length;if(kn){for(g(fe).iso=!0,Ge=0,It=da;Ge<It;Ge++)if(On[Ge][1].exec(kn[1])){cr=On[Ge][0],Ni=!1!==On[Ge][2];break}if(null==cr)return void(fe._isValid=!1);if(kn[3]){for(Ge=0,It=ir;Ge<It;Ge++)if(Nt[Ge][1].exec(kn[3])){jo=(kn[2]||" ")+Nt[Ge][0];break}if(null==jo)return void(fe._isValid=!1)}if(!Ni&&null!=jo)return void(fe._isValid=!1);if(kn[4]){if(!Wt.exec(kn[4]))return void(fe._isValid=!1);bs="Z"}fe._f=cr+(jo||"")+(bs||""),jt(fe)}else fe._isValid=!1}function Bo(fe){var Ge=parseInt(fe,10);return Ge<=49?2e3+Ge:Ge<=999?1900+Ge:Ge}function Po(fe){var It,Ge=Bi.exec(function is(fe){return fe.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(fe._i));if(Ge){if(It=function mo(fe,Ge,It,an,kn,Ni){var cr=[Bo(fe),Xt.indexOf(Ge),parseInt(It,10),parseInt(an,10),parseInt(kn,10)];return Ni&&cr.push(parseInt(Ni,10)),cr}(Ge[4],Ge[3],Ge[2],Ge[5],Ge[6],Ge[7]),!function ha(fe,Ge,It){return!fe||Os.indexOf(fe)===new Date(Ge[0],Ge[1],Ge[2]).getDay()||(g(It).weekdayMismatch=!0,It._isValid=!1,!1)}(Ge[1],It,fe))return;fe._a=It,fe._tzm=function Ys(fe,Ge,It){if(fe)return Mi[fe];if(Ge)return 0;var an=parseInt(It,10),kn=an%100;return(an-kn)/100*60+kn}(Ge[8],Ge[9],Ge[10]),fe._d=Be.apply(null,fe._a),fe._d.setUTCMinutes(fe._d.getUTCMinutes()-fe._tzm),g(fe).rfc2822=!0}else fe._isValid=!1}function oa(fe,Ge,It){return fe??Ge??It}function Tt(fe){var Ge,It,kn,Ni,cr,an=[];if(!fe._d){for(kn=function Ht(fe){var Ge=new Date(l.now());return fe._useUTC?[Ge.getUTCFullYear(),Ge.getUTCMonth(),Ge.getUTCDate()]:[Ge.getFullYear(),Ge.getMonth(),Ge.getDate()]}(fe),fe._w&&null==fe._a[Lr]&&null==fe._a[Zi]&&function Ln(fe){var Ge,It,an,kn,Ni,cr,jo,bs,da;null!=(Ge=fe._w).GG||null!=Ge.W||null!=Ge.E?(Ni=1,cr=4,It=oa(Ge.GG,fe._a[pi],Vn(eo(),1,4).year),an=oa(Ge.W,1),((kn=oa(Ge.E,1))<1||kn>7)&&(bs=!0)):(Ni=fe._locale._week.dow,cr=fe._locale._week.doy,da=Vn(eo(),Ni,cr),It=oa(Ge.gg,fe._a[pi],da.year),an=oa(Ge.w,da.week),null!=Ge.d?((kn=Ge.d)<0||kn>6)&&(bs=!0):null!=Ge.e?(kn=Ge.e+Ni,(Ge.e<0||Ge.e>6)&&(bs=!0)):kn=Ni),an<1||an>si(It,Ni,cr)?g(fe)._overflowWeeks=!0:null!=bs?g(fe)._overflowWeekday=!0:(jo=Vt(It,an,kn,Ni,cr),fe._a[pi]=jo.year,fe._dayOfYear=jo.dayOfYear)}(fe),null!=fe._dayOfYear&&(cr=oa(fe._a[pi],kn[pi]),(fe._dayOfYear>he(cr)||0===fe._dayOfYear)&&(g(fe)._overflowDayOfYear=!0),It=Be(cr,0,fe._dayOfYear),fe._a[Zi]=It.getUTCMonth(),fe._a[Lr]=It.getUTCDate()),Ge=0;Ge<3&&null==fe._a[Ge];++Ge)fe._a[Ge]=an[Ge]=kn[Ge];for(;Ge<7;Ge++)fe._a[Ge]=an[Ge]=null==fe._a[Ge]?2===Ge?1:0:fe._a[Ge];24===fe._a[Kr]&&0===fe._a[Qt]&&0===fe._a[di]&&0===fe._a[ji]&&(fe._nextDay=!0,fe._a[Kr]=0),fe._d=(fe._useUTC?Be:Qe).apply(null,an),Ni=fe._useUTC?fe._d.getUTCDay():fe._d.getDay(),null!=fe._tzm&&fe._d.setUTCMinutes(fe._d.getUTCMinutes()-fe._tzm),fe._nextDay&&(fe._a[Kr]=24),fe._w&&typeof fe._w.d<"u"&&fe._w.d!==Ni&&(g(fe).weekdayMismatch=!0)}}function jt(fe){if(fe._f!==l.ISO_8601)if(fe._f!==l.RFC_2822){fe._a=[],g(fe).empty=!0;var It,an,kn,Ni,cr,da,ir,Ge=""+fe._i,jo=Ge.length,bs=0;for(ir=(kn=Z(fe._f,fe._locale).match(re)||[]).length,It=0;It<ir;It++)(an=(Ge.match(mt(Ni=kn[It],fe))||[])[0])&&((cr=Ge.substr(0,Ge.indexOf(an))).length>0&&g(fe).unusedInput.push(cr),Ge=Ge.slice(Ge.indexOf(an)+an.length),bs+=an.length),xe[Ni]?(an?g(fe).empty=!1:g(fe).unusedTokens.push(Ni),Hn(Ni,an,fe)):fe._strict&&!an&&g(fe).unusedTokens.push(Ni);g(fe).charsLeftOver=jo-bs,Ge.length>0&&g(fe).unusedInput.push(Ge),fe._a[Kr]<=12&&!0===g(fe).bigHour&&fe._a[Kr]>0&&(g(fe).bigHour=void 0),g(fe).parsedDateParts=fe._a.slice(0),g(fe).meridiem=fe._meridiem,fe._a[Kr]=function ti(fe,Ge,It){var an;return null==It?Ge:null!=fe.meridiemHour?fe.meridiemHour(Ge,It):(null!=fe.isPM&&((an=fe.isPM(It))&&Ge<12&&(Ge+=12),!an&&12===Ge&&(Ge=0)),Ge)}(fe._locale,fe._a[Kr],fe._meridiem),null!==(da=g(fe).era)&&(fe._a[pi]=fe._locale.erasConvertYear(da,fe._a[pi])),Tt(fe),Mr(fe)}else Po(fe);else tr(fe)}function sa(fe){var Ge=fe._i,It=fe._f;return fe._locale=fe._locale||Ki(fe._l),null===Ge||void 0===It&&""===Ge?A({nullInput:!0}):("string"==typeof Ge&&(fe._i=Ge=fe._locale.preparse(Ge)),F(Ge)?new D(Mr(Ge)):(y(Ge)?fe._d=Ge:m(It)?function br(fe){var Ge,It,an,kn,Ni,cr,jo=!1,bs=fe._f.length;if(0===bs)return g(fe).invalidFormat=!0,void(fe._d=new Date(NaN));for(kn=0;kn<bs;kn++)Ni=0,cr=!1,Ge=V({},fe),null!=fe._useUTC&&(Ge._useUTC=fe._useUTC),Ge._f=fe._f[kn],jt(Ge),T(Ge)&&(cr=!0),Ni+=g(Ge).charsLeftOver,Ni+=10*g(Ge).unusedTokens.length,g(Ge).score=Ni,jo?Ni<an&&(an=Ni,It=Ge):(null==an||Ni<an||cr)&&(an=Ni,It=Ge,cr&&(jo=!0));i(fe,It||Ge)}(fe):It?jt(fe):function fs(fe){var Ge=fe._i;O(Ge)?fe._d=new Date(l.now()):y(Ge)?fe._d=new Date(Ge.valueOf()):"string"==typeof Ge?function cl(fe){var Ge=gi.exec(fe._i);null===Ge?(tr(fe),!1===fe._isValid&&(delete fe._isValid,Po(fe),!1===fe._isValid&&(delete fe._isValid,fe._strict?fe._isValid=!1:l.createFromInputFallback(fe)))):fe._d=new Date(+Ge[1])}(fe):m(Ge)?(fe._a=r(Ge.slice(0),function(It){return parseInt(It,10)}),Tt(fe)):_(Ge)?function wo(fe){if(!fe._d){var Ge=Re(fe._i);fe._a=r([Ge.year,Ge.month,void 0===Ge.day?Ge.date:Ge.day,Ge.hour,Ge.minute,Ge.second,Ge.millisecond],function(an){return an&&parseInt(an,10)}),Tt(fe)}}(fe):S(Ge)?fe._d=new Date(Ge):l.createFromInputFallback(fe)}(fe),T(fe)||(fe._d=null),fe))}function zr(fe,Ge,It,an,kn){var Ni={};return(!0===Ge||!1===Ge)&&(an=Ge,Ge=void 0),(!0===It||!1===It)&&(an=It,It=void 0),(_(fe)&&v(fe)||m(fe)&&0===fe.length)&&(fe=void 0),Ni._isAMomentObject=!0,Ni._useUTC=Ni._isUTC=kn,Ni._l=It,Ni._i=fe,Ni._f=Ge,Ni._strict=an,function zs(fe){var Ge=new D(Mr(sa(fe)));return Ge._nextDay&&(Ge.add(1,"d"),Ge._nextDay=void 0),Ge}(Ni)}function eo(fe,Ge,It,an){return zr(fe,Ge,It,an,!1)}l.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(fe){fe._d=new Date(fe._i+(fe._useUTC?" UTC":""))}),l.ISO_8601=function(){},l.RFC_2822=function(){};var Io=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var fe=eo.apply(null,arguments);return this.isValid()&&fe.isValid()?fe<this?this:fe:A()}),Jr=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var fe=eo.apply(null,arguments);return this.isValid()&&fe.isValid()?fe>this?this:fe:A()});function kr(fe,Ge){var It,an;if(1===Ge.length&&m(Ge[0])&&(Ge=Ge[0]),!Ge.length)return eo();for(It=Ge[0],an=1;an<Ge.length;++an)(!Ge[an].isValid()||Ge[an][fe](It))&&(It=Ge[an]);return It}var ho=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qs(fe){var Ge=Re(fe),It=Ge.year||0,an=Ge.quarter||0,kn=Ge.month||0,Ni=Ge.week||Ge.isoWeek||0,cr=Ge.day||0,jo=Ge.hour||0,bs=Ge.minute||0,da=Ge.second||0,ir=Ge.millisecond||0;this._isValid=function rr(fe){var Ge,an,It=!1,kn=ho.length;for(Ge in fe)if(P(fe,Ge)&&(-1===Dn.call(ho,Ge)||null!=fe[Ge]&&isNaN(fe[Ge])))return!1;for(an=0;an<kn;++an)if(fe[ho[an]]){if(It)return!1;parseFloat(fe[ho[an]])!==Gt(fe[ho[an]])&&(It=!0)}return!0}(Ge),this._milliseconds=+ir+1e3*da+6e4*bs+1e3*jo*60*60,this._days=+cr+7*Ni,this._months=+kn+3*an+12*It,this._data={},this._locale=Ki(),this._bubble()}function Ia(fe){return fe instanceof qs}function ea(fe){return fe<0?-1*Math.round(-1*fe):Math.round(fe)}function dl(fe,Ge){ue(fe,0,0,function(){var It=this.utcOffset(),an="+";return It<0&&(It=-It,an="-"),an+X(~~(It/60),2)+Ge+X(~~It%60,2)})}dl("Z",":"),dl("ZZ",""),on("Z",Ut),on("ZZ",Ut),Oi(["Z","ZZ"],function(fe,Ge,It){It._useUTC=!0,It._tzm=js(Ut,fe)});var Co=/([\+\-]|\d\d)/gi;function js(fe,Ge){var kn,Ni,It=(Ge||"").match(fe);return null===It?null:0===(Ni=60*(kn=((It[It.length-1]||[])+"").match(Co)||["-",0,0])[1]+Gt(kn[2]))?0:"+"===kn[0]?Ni:-Ni}function Ts(fe,Ge){var It,an;return Ge._isUTC?(It=Ge.clone(),an=(F(fe)||y(fe)?fe.valueOf():eo(fe).valueOf())-It.valueOf(),It._d.setTime(It._d.valueOf()+an),l.updateOffset(It,!1),It):eo(fe).local()}function ks(fe){return-Math.round(fe._d.getTimezoneOffset())}function St(){return!!this.isValid()&&this._isUTC&&0===this._offset}l.updateOffset=function(){};var Ve=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function hn(fe,Ge){var kn,Ni,cr,It=fe,an=null;return Ia(fe)?It={ms:fe._milliseconds,d:fe._days,M:fe._months}:S(fe)||!isNaN(+fe)?(It={},Ge?It[Ge]=+fe:It.milliseconds=+fe):(an=Ve.exec(fe))?(kn="-"===an[1]?-1:1,It={y:0,d:Gt(an[Lr])*kn,h:Gt(an[Kr])*kn,m:Gt(an[Qt])*kn,s:Gt(an[di])*kn,ms:Gt(ea(1e3*an[ji]))*kn}):(an=qe.exec(fe))?It={y:hi(an[2],kn="-"===an[1]?-1:1),M:hi(an[3],kn),w:hi(an[4],kn),d:hi(an[5],kn),h:hi(an[6],kn),m:hi(an[7],kn),s:hi(an[8],kn)}:null==It?It={}:"object"==typeof It&&("from"in It||"to"in It)&&(cr=function le(fe,Ge){var It;return fe.isValid()&&Ge.isValid()?(Ge=Ts(Ge,fe),fe.isBefore(Ge)?It=sr(fe,Ge):((It=sr(Ge,fe)).milliseconds=-It.milliseconds,It.months=-It.months),It):{milliseconds:0,months:0}}(eo(It.from),eo(It.to)),(It={}).ms=cr.milliseconds,It.M=cr.months),Ni=new qs(It),Ia(fe)&&P(fe,"_locale")&&(Ni._locale=fe._locale),Ia(fe)&&P(fe,"_isValid")&&(Ni._isValid=fe._isValid),Ni}function hi(fe,Ge){var It=fe&&parseFloat(fe.replace(",","."));return(isNaN(It)?0:It)*Ge}function sr(fe,Ge){var It={};return It.months=Ge.month()-fe.month()+12*(Ge.year()-fe.year()),fe.clone().add(It.months,"M").isAfter(Ge)&&--It.months,It.milliseconds=+Ge-+fe.clone().add(It.months,"M"),It}function Nn(fe,Ge){return function(It,an){var Ni;return null!==an&&!isNaN(+an)&&(G(Ge,"moment()."+Ge+"(period, number) is deprecated. Please use moment()."+Ge+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ni=It,It=an,an=Ni),So(this,hn(It,an),fe),this}}function So(fe,Ge,It,an){var kn=Ge._milliseconds,Ni=ea(Ge._days),cr=ea(Ge._months);fe.isValid()&&(an=an??!0,cr&&ki(fe,st(fe,"Month")+cr*It),Ni&&mn(fe,"Date",st(fe,"Date")+Ni*It),kn&&fe._d.setTime(fe._d.valueOf()+kn*It),an&&l.updateOffset(fe,Ni||cr))}hn.fn=qs.prototype,hn.invalid=function aa(){return hn(NaN)};var Mo=Nn(1,"add"),Ao=Nn(-1,"subtract");function Wo(fe){return"string"==typeof fe||fe instanceof String}function ta(fe){return F(fe)||y(fe)||Wo(fe)||S(fe)||function Ns(fe){var Ge=m(fe),It=!1;return Ge&&(It=0===fe.filter(function(an){return!S(an)&&Wo(fe)}).length),Ge&&It}(fe)||function bo(fe){var kn,Ge=_(fe)&&!v(fe),It=!1,an=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],cr=an.length;for(kn=0;kn<cr;kn+=1)It=It||P(fe,an[kn]);return Ge&&It}(fe)||null==fe}function ul(fe,Ge){if(fe.date()<Ge.date())return-ul(Ge,fe);var It=12*(Ge.year()-fe.year())+(Ge.month()-fe.month()),an=fe.clone().add(It,"months");return-(It+(Ge-an<0?(Ge-an)/(an-fe.clone().add(It-1,"months")):(Ge-an)/(fe.clone().add(It+1,"months")-an)))||0}function Ur(fe){var Ge;return void 0===fe?this._locale._abbr:(null!=(Ge=Ki(fe))&&(this._locale=Ge),this)}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ns=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(fe){return void 0===fe?this.localeData():this.locale(fe)});function No(){return this._locale}var Yo=6e4,Go=60*Yo,Ds=3506328*Go;function Qo(fe,Ge){return(fe%Ge+Ge)%Ge}function Vo(fe,Ge,It){return fe<100&&fe>=0?new Date(fe+400,Ge,It)-Ds:new Date(fe,Ge,It).valueOf()}function Ir(fe,Ge,It){return fe<100&&fe>=0?Date.UTC(fe+400,Ge,It)-Ds:Date.UTC(fe,Ge,It)}function jr(fe,Ge){return Ge.erasAbbrRegex(fe)}function ic(){var kn,Ni,fe=[],Ge=[],It=[],an=[],cr=this.eras();for(kn=0,Ni=cr.length;kn<Ni;++kn)Ge.push(wt(cr[kn].name)),fe.push(wt(cr[kn].abbr)),It.push(wt(cr[kn].narrow)),an.push(wt(cr[kn].name)),an.push(wt(cr[kn].abbr)),an.push(wt(cr[kn].narrow));this._erasRegex=new RegExp("^("+an.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Ge.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+fe.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+It.join("|")+")","i")}function gl(fe,Ge){ue(0,[fe,fe.length],0,Ge)}function zd(fe,Ge,It,an,kn){var Ni;return null==fe?Vn(this,an,kn).year:(Ge>(Ni=si(fe,an,kn))&&(Ge=Ni),rc.call(this,fe,Ge,It,an,kn))}function rc(fe,Ge,It,an,kn){var Ni=Vt(fe,Ge,It,an,kn),cr=Be(Ni.year,0,Ni.dayOfYear);return this.year(cr.getUTCFullYear()),this.month(cr.getUTCMonth()),this.date(cr.getUTCDate()),this}ue("N",0,0,"eraAbbr"),ue("NN",0,0,"eraAbbr"),ue("NNN",0,0,"eraAbbr"),ue("NNNN",0,0,"eraName"),ue("NNNNN",0,0,"eraNarrow"),ue("y",["y",1],"yo","eraYear"),ue("y",["yy",2],0,"eraYear"),ue("y",["yyy",3],0,"eraYear"),ue("y",["yyyy",4],0,"eraYear"),on("N",jr),on("NN",jr),on("NNN",jr),on("NNNN",function $o(fe,Ge){return Ge.erasNameRegex(fe)}),on("NNNNN",function Va(fe,Ge){return Ge.erasNarrowRegex(fe)}),Oi(["N","NN","NNN","NNNN","NNNNN"],function(fe,Ge,It,an){var kn=It._locale.erasParse(fe,an,It._strict);kn?g(It).era=kn:g(It).invalidEra=fe}),on("y",vt),on("yy",vt),on("yyy",vt),on("yyyy",vt),on("yo",function Ha(fe,Ge){return Ge._eraYearOrdinalRegex||vt}),Oi(["y","yy","yyy","yyyy"],pi),Oi(["yo"],function(fe,Ge,It,an){var kn;It._locale._eraYearOrdinalRegex&&(kn=fe.match(It._locale._eraYearOrdinalRegex)),Ge[pi]=It._locale.eraYearOrdinalParse?It._locale.eraYearOrdinalParse(fe,kn):parseInt(fe,10)}),ue(0,["gg",2],0,function(){return this.weekYear()%100}),ue(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gl("gggg","weekYear"),gl("ggggg","weekYear"),gl("GGGG","isoWeekYear"),gl("GGGGG","isoWeekYear"),qt("weekYear","gg"),qt("isoWeekYear","GG"),et("weekYear",1),et("isoWeekYear",1),on("G",Ct),on("g",Ct),on("GG",Xn,fn),on("gg",Xn,fn),on("GGGG",Ne,nn),on("gggg",Ne,nn),on("GGGGG",zt,yn),on("ggggg",zt,yn),At(["gggg","ggggg","GGGG","GGGGG"],function(fe,Ge,It,an){Ge[an.substr(0,2)]=Gt(fe)}),At(["gg","GG"],function(fe,Ge,It,an){Ge[an]=l.parseTwoDigitYear(fe)}),ue("Q",0,"Qo","quarter"),qt("quarter","Q"),et("quarter",7),on("Q",Cn),Oi("Q",function(fe,Ge){Ge[Zi]=3*(Gt(fe)-1)}),ue("D",["DD",2],"Do","date"),qt("date","D"),et("date",9),on("D",Xn),on("DD",Xn,fn),on("Do",function(fe,Ge){return fe?Ge._dayOfMonthOrdinalParse||Ge._ordinalParse:Ge._dayOfMonthOrdinalParseLenient}),Oi(["D","DD"],Lr),Oi("Do",function(fe,Ge){Ge[Lr]=Gt(fe.match(Xn)[0])});var Kd=pn("Date",!0);ue("DDD",["DDDD",3],"DDDo","dayOfYear"),qt("dayOfYear","DDD"),et("dayOfYear",4),on("DDD",ri),on("DDDD",dt),Oi(["DDD","DDDD"],function(fe,Ge,It){It._dayOfYear=Gt(fe)}),ue("m",["mm",2],0,"minute"),qt("minute","m"),et("minute",14),on("m",Xn),on("mm",Xn,fn),Oi(["m","mm"],Qt);var ja=pn("Minutes",!1);ue("s",["ss",2],0,"second"),qt("second","s"),et("second",15),on("s",Xn),on("ss",Xn,fn),Oi(["s","ss"],di);var Fe,tt,Gl=pn("Seconds",!1);for(ue("S",0,0,function(){return~~(this.millisecond()/100)}),ue(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ue(0,["SSS",3],0,"millisecond"),ue(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ue(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ue(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ue(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ue(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ue(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),qt("millisecond","ms"),et("millisecond",16),on("S",ri,Cn),on("SS",ri,fn),on("SSS",ri,dt),Fe="SSSS";Fe.length<=9;Fe+="S")on(Fe,vt);function yt(fe,Ge){Ge[ji]=Gt(1e3*("0."+fe))}for(Fe="S";Fe.length<=9;Fe+="S")Oi(Fe,yt);tt=pn("Milliseconds",!1),ue("z",0,0,"zoneAbbr"),ue("zz",0,0,"zoneName");var dn=D.prototype;function Nr(fe){return fe}dn.add=Mo,dn.calendar=function Yl(fe,Ge){1===arguments.length&&(arguments[0]?ta(arguments[0])?(fe=arguments[0],Ge=void 0):function Ka(fe){var kn,Ge=_(fe)&&!v(fe),It=!1,an=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(kn=0;kn<an.length;kn+=1)It=It||P(fe,an[kn]);return Ge&&It}(arguments[0])&&(Ge=arguments[0],fe=void 0):(fe=void 0,Ge=void 0));var It=fe||eo(),an=Ts(It,this).startOf("day"),kn=l.calendarFormat(this,an)||"sameElse",Ni=Ge&&(Y(Ge[kn])?Ge[kn].call(this,It):Ge[kn]);return this.format(Ni||this.localeData().calendar(kn,this,eo(It)))},dn.clone=function fc(){return new D(this)},dn.diff=function na(fe,Ge,It){var an,kn,Ni;if(!this.isValid())return NaN;if(!(an=Ts(fe,this)).isValid())return NaN;switch(kn=6e4*(an.utcOffset()-this.utcOffset()),Ge=ye(Ge)){case"year":Ni=ul(this,an)/12;break;case"month":Ni=ul(this,an);break;case"quarter":Ni=ul(this,an)/3;break;case"second":Ni=(this-an)/1e3;break;case"minute":Ni=(this-an)/6e4;break;case"hour":Ni=(this-an)/36e5;break;case"day":Ni=(this-an-kn)/864e5;break;case"week":Ni=(this-an-kn)/6048e5;break;default:Ni=this-an}return It?Ni:ct(Ni)},dn.endOf=function Es(fe){var Ge,It;if(void 0===(fe=ye(fe))||"millisecond"===fe||!this.isValid())return this;switch(It=this._isUTC?Ir:Vo,fe){case"year":Ge=It(this.year()+1,0,1)-1;break;case"quarter":Ge=It(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Ge=It(this.year(),this.month()+1,1)-1;break;case"week":Ge=It(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Ge=It(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Ge=It(this.year(),this.month(),this.date()+1)-1;break;case"hour":Ge=this._d.valueOf(),Ge+=Go-Qo(Ge+(this._isUTC?0:this.utcOffset()*Yo),Go)-1;break;case"minute":Ge=this._d.valueOf(),Ge+=Yo-Qo(Ge,Yo)-1;break;case"second":Ge=this._d.valueOf(),Ge+=1e3-Qo(Ge,1e3)-1}return this._d.setTime(Ge),l.updateOffset(this,!0),this},dn.format=function Kn(fe){fe||(fe=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var Ge=ce(this,fe);return this.localeData().postformat(Ge)},dn.from=function ft(fe,Ge){return this.isValid()&&(F(fe)&&fe.isValid()||eo(fe).isValid())?hn({to:this,from:fe}).locale(this.locale()).humanize(!Ge):this.localeData().invalidDate()},dn.fromNow=function Gn(fe){return this.from(eo(),fe)},dn.to=function bi(fe,Ge){return this.isValid()&&(F(fe)&&fe.isValid()||eo(fe).isValid())?hn({from:this,to:fe}).locale(this.locale()).humanize(!Ge):this.localeData().invalidDate()},dn.toNow=function lr(fe){return this.to(eo(),fe)},dn.get=function Bn(fe){return Y(this[fe=ye(fe)])?this[fe]():this},dn.invalidAt=function pt(){return g(this).overflow},dn.isAfter=function _c(fe,Ge){var It=F(fe)?fe:eo(fe);return!(!this.isValid()||!It.isValid())&&("millisecond"===(Ge=ye(Ge)||"millisecond")?this.valueOf()>It.valueOf():It.valueOf()<this.clone().startOf(Ge).valueOf())},dn.isBefore=function Ml(fe,Ge){var It=F(fe)?fe:eo(fe);return!(!this.isValid()||!It.isValid())&&("millisecond"===(Ge=ye(Ge)||"millisecond")?this.valueOf()<It.valueOf():this.clone().endOf(Ge).valueOf()<It.valueOf())},dn.isBetween=function Ul(fe,Ge,It,an){var kn=F(fe)?fe:eo(fe),Ni=F(Ge)?Ge:eo(Ge);return!!(this.isValid()&&kn.isValid()&&Ni.isValid())&&("("===(an=an||"()")[0]?this.isAfter(kn,It):!this.isBefore(kn,It))&&(")"===an[1]?this.isBefore(Ni,It):!this.isAfter(Ni,It))},dn.isSame=function tc(fe,Ge){var an,It=F(fe)?fe:eo(fe);return!(!this.isValid()||!It.isValid())&&("millisecond"===(Ge=ye(Ge)||"millisecond")?this.valueOf()===It.valueOf():(an=It.valueOf(),this.clone().startOf(Ge).valueOf()<=an&&an<=this.clone().endOf(Ge).valueOf()))},dn.isSameOrAfter=function Ic(fe,Ge){return this.isSame(fe,Ge)||this.isAfter(fe,Ge)},dn.isSameOrBefore=function nc(fe,Ge){return this.isSame(fe,Ge)||this.isBefore(fe,Ge)},dn.isValid=function kt(){return T(this)},dn.lang=ns,dn.locale=Ur,dn.localeData=No,dn.max=Jr,dn.min=Io,dn.parsingFlags=function Ot(){return i({},g(this))},dn.set=function En(fe,Ge){if("object"==typeof fe){var an,It=function xt(fe){var It,Ge=[];for(It in fe)P(fe,It)&&Ge.push({unit:It,priority:Ze[It]});return Ge.sort(function(an,kn){return an.priority-kn.priority}),Ge}(fe=Re(fe)),kn=It.length;for(an=0;an<kn;an++)this[It[an].unit](fe[It[an].unit])}else if(Y(this[fe=ye(fe)]))return this[fe](Ge);return this},dn.startOf=function fo(fe){var Ge,It;if(void 0===(fe=ye(fe))||"millisecond"===fe||!this.isValid())return this;switch(It=this._isUTC?Ir:Vo,fe){case"year":Ge=It(this.year(),0,1);break;case"quarter":Ge=It(this.year(),this.month()-this.month()%3,1);break;case"month":Ge=It(this.year(),this.month(),1);break;case"week":Ge=It(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Ge=It(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Ge=It(this.year(),this.month(),this.date());break;case"hour":Ge=this._d.valueOf(),Ge-=Qo(Ge+(this._isUTC?0:this.utcOffset()*Yo),Go);break;case"minute":Ge=this._d.valueOf(),Ge-=Qo(Ge,Yo);break;case"second":Ge=this._d.valueOf(),Ge-=Qo(Ge,1e3)}return this._d.setTime(Ge),l.updateOffset(this,!0),this},dn.subtract=Ao,dn.toArray=function hl(){var fe=this;return[fe.year(),fe.month(),fe.date(),fe.hour(),fe.minute(),fe.second(),fe.millisecond()]},dn.toObject=function gs(){var fe=this;return{years:fe.year(),months:fe.month(),date:fe.date(),hours:fe.hours(),minutes:fe.minutes(),seconds:fe.seconds(),milliseconds:fe.milliseconds()}},dn.toDate=function ia(){return new Date(this.valueOf())},dn.toISOString=function He(fe){if(!this.isValid())return null;var Ge=!0!==fe,It=Ge?this.clone().utc():this;return It.year()<0||It.year()>9999?ce(It,Ge?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Y(Date.prototype.toISOString)?Ge?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ce(It,"Z")):ce(It,Ge?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function Lt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var It,an,fe="moment",Ge="";return this.isLocal()||(fe=0===this.utcOffset()?"moment.utc":"moment.parseZone",Ge="Z"),It="["+fe+'("]',an=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(It+an+"-MM-DD[T]HH:mm:ss.SSS"+Ge+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(dn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),dn.toJSON=function xa(){return this.isValid()?this.toISOString():null},dn.toString=function zl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function Vs(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function Ea(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function ut(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.eraName=function Ar(){var fe,Ge,It,an=this.localeData().eras();for(fe=0,Ge=an.length;fe<Ge;++fe)if(It=this.clone().startOf("day").valueOf(),an[fe].since<=It&&It<=an[fe].until||an[fe].until<=It&&It<=an[fe].since)return an[fe].name;return""},dn.eraNarrow=function Or(){var fe,Ge,It,an=this.localeData().eras();for(fe=0,Ge=an.length;fe<Ge;++fe)if(It=this.clone().startOf("day").valueOf(),an[fe].since<=It&&It<=an[fe].until||an[fe].until<=It&&It<=an[fe].since)return an[fe].narrow;return""},dn.eraAbbr=function pr(){var fe,Ge,It,an=this.localeData().eras();for(fe=0,Ge=an.length;fe<Ge;++fe)if(It=this.clone().startOf("day").valueOf(),an[fe].since<=It&&It<=an[fe].until||an[fe].until<=It&&It<=an[fe].since)return an[fe].abbr;return""},dn.eraYear=function co(){var fe,Ge,It,an,kn=this.localeData().eras();for(fe=0,Ge=kn.length;fe<Ge;++fe)if(It=kn[fe].since<=kn[fe].until?1:-1,an=this.clone().startOf("day").valueOf(),kn[fe].since<=an&&an<=kn[fe].until||kn[fe].until<=an&&an<=kn[fe].since)return(this.year()-l(kn[fe].since).year())*It+kn[fe].offset;return this.year()},dn.year=Ee,dn.isLeapYear=function Pe(){return un(this.year())},dn.weekYear=function hs(fe){return zd.call(this,fe,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function Ed(fe){return zd.call(this,fe,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function Bl(fe){return null==fe?Math.ceil((this.month()+1)/3):this.month(3*(fe-1)+this.month()%3)},dn.month=Fr,dn.daysInMonth=function xo(){return zn(this.year(),this.month())},dn.week=dn.weeks=function Qr(fe){var Ge=this.localeData().week(this);return null==fe?Ge:this.add(7*(fe-Ge),"d")},dn.isoWeek=dn.isoWeeks=function Yr(fe){var Ge=Vn(this,1,4).week;return null==fe?Ge:this.add(7*(fe-Ge),"d")},dn.weeksInYear=function xd(){var fe=this.localeData()._week;return si(this.year(),fe.dow,fe.doy)},dn.weeksInWeekYear=function _s(){var fe=this.localeData()._week;return si(this.weekYear(),fe.dow,fe.doy)},dn.isoWeeksInYear=function Xa(){return si(this.year(),1,4)},dn.isoWeeksInISOWeekYear=function qa(){return si(this.isoWeekYear(),1,4)},dn.date=Kd,dn.day=dn.days=function or(fe){if(!this.isValid())return null!=fe?this:NaN;var Ge=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=fe?(fe=function no(fe,Ge){return"string"!=typeof fe?fe:isNaN(fe)?"number"==typeof(fe=Ge.weekdaysParse(fe))?fe:null:parseInt(fe,10)}(fe,this.localeData()),this.add(fe-Ge,"d")):Ge},dn.weekday=function yr(fe){if(!this.isValid())return null!=fe?this:NaN;var Ge=(this.day()+7-this.localeData()._week.dow)%7;return null==fe?Ge:this.add(fe-Ge,"d")},dn.isoWeekday=function $r(fe){if(!this.isValid())return null!=fe?this:NaN;if(null!=fe){var Ge=function Tr(fe,Ge){return"string"==typeof fe?Ge.weekdaysParse(fe)%7||7:isNaN(fe)?null:fe}(fe,this.localeData());return this.day(this.day()%7?Ge:Ge-7)}return this.day()||7},dn.dayOfYear=function go(fe){var Ge=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==fe?Ge:this.add(fe-Ge,"d")},dn.hour=dn.hours=Pa,dn.minute=dn.minutes=ja,dn.second=dn.seconds=Gl,dn.millisecond=dn.milliseconds=tt,dn.utcOffset=function la(fe,Ge,It){var kn,an=this._offset||0;if(!this.isValid())return null!=fe?this:NaN;if(null!=fe){if("string"==typeof fe){if(null===(fe=js(Ut,fe)))return this}else Math.abs(fe)<16&&!It&&(fe*=60);return!this._isUTC&&Ge&&(kn=ks(this)),this._offset=fe,this._isUTC=!0,null!=kn&&this.add(kn,"m"),an!==fe&&(!Ge||this._changeInProgress?So(this,hn(fe-an,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?an:ks(this)},dn.utc=function Ws(fe){return this.utcOffset(0,fe)},dn.local=function Oa(fe){return this._isUTC&&(this.utcOffset(0,fe),this._isUTC=!1,fe&&this.subtract(ks(this),"m")),this},dn.parseZone=function Pr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var fe=js(it,this._i);null!=fe?this.utcOffset(fe):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function Cl(fe){return!!this.isValid()&&(fe=fe?eo(fe).utcOffset():0,(this.utcOffset()-fe)%60==0)},dn.isDST=function Zo(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function lt(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function An(){return!!this.isValid()&&this._isUTC},dn.isUtc=St,dn.isUTC=St,dn.zoneAbbr=function rt(){return this._isUTC?"UTC":""},dn.zoneName=function Dt(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=k("dates accessor is deprecated. Use date instead.",Kd),dn.months=k("months accessor is deprecated. Use month instead",Fr),dn.years=k("years accessor is deprecated. Use year instead",Ee),dn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function vl(fe,Ge){return null!=fe?("string"!=typeof fe&&(fe=-fe),this.utcOffset(fe,Ge),this):-this.utcOffset()}),dn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Ai(){if(!O(this._isDSTShifted))return this._isDSTShifted;var Ge,fe={};return V(fe,this),(fe=sa(fe))._a?(Ge=fe._isUTC?a(fe._a):eo(fe._a),this._isDSTShifted=this.isValid()&&function za(fe,Ge,It){var cr,an=Math.min(fe.length,Ge.length),kn=Math.abs(fe.length-Ge.length),Ni=0;for(cr=0;cr<an;cr++)(It&&fe[cr]!==Ge[cr]||!It&&Gt(fe[cr])!==Gt(Ge[cr]))&&Ni++;return Ni+kn}(fe._a,Ge.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Ji=ee.prototype;function Ho(fe,Ge,It,an){var kn=Ki(),Ni=a().set(an,Ge);return kn[It](Ni,fe)}function vs(fe,Ge,It){if(S(fe)&&(Ge=fe,fe=void 0),fe=fe||"",null!=Ge)return Ho(fe,Ge,It,"month");var an,kn=[];for(an=0;an<12;an++)kn[an]=Ho(fe,an,It,"month");return kn}function cs(fe,Ge,It,an){"boolean"==typeof fe?(S(Ge)&&(It=Ge,Ge=void 0),Ge=Ge||""):(It=Ge=fe,fe=!1,S(Ge)&&(It=Ge,Ge=void 0),Ge=Ge||"");var cr,kn=Ki(),Ni=fe?kn._week.dow:0,jo=[];if(null!=It)return Ho(Ge,(It+Ni)%7,an,"day");for(cr=0;cr<7;cr++)jo[cr]=Ho(Ge,(cr+Ni)%7,an,"day");return jo}Ji.calendar=function te(fe,Ge,It){var an=this._calendar[fe]||this._calendar.sameElse;return Y(an)?an.call(Ge,It):an},Ji.longDateFormat=function ae(fe){var Ge=this._longDateFormat[fe],It=this._longDateFormat[fe.toUpperCase()];return Ge||!It?Ge:(this._longDateFormat[fe]=It.match(re).map(function(an){return"MMMM"===an||"MM"===an||"DD"===an||"dddd"===an?an.slice(1):an}).join(""),this._longDateFormat[fe])},Ji.invalidDate=function _e(){return this._invalidDate},Ji.ordinal=function Me(fe){return this._ordinal.replace("%d",fe)},Ji.preparse=Nr,Ji.postformat=Nr,Ji.relativeTime=function $e(fe,Ge,It,an){var kn=this._relativeTime[It];return Y(kn)?kn(fe,Ge,It,an):kn.replace(/%d/i,fe)},Ji.pastFuture=function Oe(fe,Ge){var It=this._relativeTime[fe>0?"future":"past"];return Y(It)?It(Ge):It.replace(/%s/i,Ge)},Ji.set=function K(fe){var Ge,It;for(It in fe)P(fe,It)&&(Y(Ge=fe[It])?this[It]=Ge:this["_"+It]=Ge);this._config=fe,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ji.eras=function Pn(fe,Ge){var It,an,kn,Ni=this._eras||Ki("en")._eras;for(It=0,an=Ni.length;It<an;++It)switch("string"==typeof Ni[It].since&&(kn=l(Ni[It].since).startOf("day"),Ni[It].since=kn.valueOf()),typeof Ni[It].until){case"undefined":Ni[It].until=1/0;break;case"string":kn=l(Ni[It].until).startOf("day").valueOf(),Ni[It].until=kn.valueOf()}return Ni},Ji.erasParse=function Qn(fe,Ge,It){var an,kn,cr,jo,bs,Ni=this.eras();for(fe=fe.toUpperCase(),an=0,kn=Ni.length;an<kn;++an)if(cr=Ni[an].name.toUpperCase(),jo=Ni[an].abbr.toUpperCase(),bs=Ni[an].narrow.toUpperCase(),It)switch(Ge){case"N":case"NN":case"NNN":if(jo===fe)return Ni[an];break;case"NNNN":if(cr===fe)return Ni[an];break;case"NNNNN":if(bs===fe)return Ni[an]}else if([cr,jo,bs].indexOf(fe)>=0)return Ni[an]},Ji.erasConvertYear=function Ui(fe,Ge){var It=fe.since<=fe.until?1:-1;return void 0===Ge?l(fe.since).year():l(fe.since).year()+(Ge-fe.offset)*It},Ji.erasAbbrRegex=function so(fe){return P(this,"_erasAbbrRegex")||ic.call(this),fe?this._erasAbbrRegex:this._erasRegex},Ji.erasNameRegex=function bn(fe){return P(this,"_erasNameRegex")||ic.call(this),fe?this._erasNameRegex:this._erasRegex},Ji.erasNarrowRegex=function gr(fe){return P(this,"_erasNarrowRegex")||ic.call(this),fe?this._erasNarrowRegex:this._erasRegex},Ji.months=function Pt(fe,Ge){return fe?m(this._months)?this._months[fe.month()]:this._months[(this._months.isFormat||xn).test(Ge)?"format":"standalone"][fe.month()]:m(this._months)?this._months:this._months.standalone},Ji.monthsShort=function Ii(fe,Ge){return fe?m(this._monthsShort)?this._monthsShort[fe.month()]:this._monthsShort[xn.test(Ge)?"format":"standalone"][fe.month()]:m(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ji.monthsParse=function Jt(fe,Ge,It){var an,kn,Ni;if(this._monthsParseExact)return ar.call(this,fe,Ge,It);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),an=0;an<12;an++){if(kn=a([2e3,an]),It&&!this._longMonthsParse[an]&&(this._longMonthsParse[an]=new RegExp("^"+this.months(kn,"").replace(".","")+"$","i"),this._shortMonthsParse[an]=new RegExp("^"+this.monthsShort(kn,"").replace(".","")+"$","i")),!It&&!this._monthsParse[an]&&(Ni="^"+this.months(kn,"")+"|^"+this.monthsShort(kn,""),this._monthsParse[an]=new RegExp(Ni.replace(".",""),"i")),It&&"MMMM"===Ge&&this._longMonthsParse[an].test(fe))return an;if(It&&"MMM"===Ge&&this._shortMonthsParse[an].test(fe))return an;if(!It&&this._monthsParse[an].test(fe))return an}},Ji.monthsRegex=function Sr(fe){return this._monthsParseExact?(P(this,"_monthsRegex")||ni.call(this),fe?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=$n),this._monthsStrictRegex&&fe?this._monthsStrictRegex:this._monthsRegex)},Ji.monthsShortRegex=function qn(fe){return this._monthsParseExact?(P(this,"_monthsRegex")||ni.call(this),fe?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=mi),this._monthsShortStrictRegex&&fe?this._monthsShortStrictRegex:this._monthsShortRegex)},Ji.week=function Rn(fe){return Vn(fe,this._week.dow,this._week.doy).week},Ji.firstDayOfYear=function hr(){return this._week.doy},Ji.firstDayOfWeek=function wr(){return this._week.dow},Ji.weekdays=function Tn(fe,Ge){var It=m(this._weekdays)?this._weekdays:this._weekdays[fe&&!0!==fe&&this._weekdays.isFormat.test(Ge)?"format":"standalone"];return!0===fe?ro(It,this._week.dow):fe?It[fe.day()]:It},Ji.weekdaysMin=function vn(fe){return!0===fe?ro(this._weekdaysMin,this._week.dow):fe?this._weekdaysMin[fe.day()]:this._weekdaysMin},Ji.weekdaysShort=function tn(fe){return!0===fe?ro(this._weekdaysShort,this._week.dow):fe?this._weekdaysShort[fe.day()]:this._weekdaysShort},Ji.weekdaysParse=function Ci(fe,Ge,It){var an,kn,Ni;if(this._weekdaysParseExact)return oi.call(this,fe,Ge,It);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),an=0;an<7;an++){if(kn=a([2e3,1]).day(an),It&&!this._fullWeekdaysParse[an]&&(this._fullWeekdaysParse[an]=new RegExp("^"+this.weekdays(kn,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[an]=new RegExp("^"+this.weekdaysShort(kn,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[an]=new RegExp("^"+this.weekdaysMin(kn,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[an]||(Ni="^"+this.weekdays(kn,"")+"|^"+this.weekdaysShort(kn,"")+"|^"+this.weekdaysMin(kn,""),this._weekdaysParse[an]=new RegExp(Ni.replace(".",""),"i")),It&&"dddd"===Ge&&this._fullWeekdaysParse[an].test(fe))return an;if(It&&"ddd"===Ge&&this._shortWeekdaysParse[an].test(fe))return an;if(It&&"dd"===Ge&&this._minWeekdaysParse[an].test(fe))return an;if(!It&&this._weekdaysParse[an].test(fe))return an}},Ji.weekdaysRegex=function ko(fe){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||ts.call(this),fe?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Bs),this._weekdaysStrictRegex&&fe?this._weekdaysStrictRegex:this._weekdaysRegex)},Ji.weekdaysShortRegex=function qr(fe){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||ts.call(this),fe?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=li),this._weekdaysShortStrictRegex&&fe?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ji.weekdaysMinRegex=function lo(fe){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||ts.call(this),fe?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=dr),this._weekdaysMinStrictRegex&&fe?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ji.isPM=function Ya(fe){return"p"===(fe+"").toLowerCase().charAt(0)},Ji.meridiem=function ys(fe,Ge,It){return fe>11?It?"pm":"PM":It?"am":"AM"},yi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(fe){var Ge=fe%10;return fe+(1===Gt(fe%100/10)?"th":1===Ge?"st":2===Ge?"nd":3===Ge?"rd":"th")}}),l.lang=k("moment.lang is deprecated. Use moment.locale instead.",yi),l.langData=k("moment.langData is deprecated. Use moment.localeData instead.",Ki);var Kt=Math.abs;function ii(fe,Ge,It,an){var kn=hn(Ge,It);return fe._milliseconds+=an*kn._milliseconds,fe._days+=an*kn._days,fe._months+=an*kn._months,fe._bubble()}function Er(fe){return fe<0?Math.floor(fe):Math.ceil(fe)}function Oo(fe){return 4800*fe/146097}function uo(fe){return 146097*fe/4800}function rs(fe){return function(){return this.as(fe)}}var pa=rs("ms"),Rs=rs("s"),ka=rs("m"),Da=rs("h"),Ql=rs("d"),vc=rs("w"),wl=rs("M"),Ro=rs("Q"),oc=rs("y");function yl(fe){return function(){return this.isValid()?this._data[fe]:NaN}}var Jl=yl("milliseconds"),Vl=yl("seconds"),ol=yl("minutes"),to=yl("hours"),Lo=yl("days"),zo=yl("months"),ps=yl("years");var Za=Math.round,tl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tl(fe,Ge,It,an,kn){return kn.relativeTime(Ge||1,!!It,fe,an)}var ca=Math.abs;function yo(fe){return(fe>0)-(fe<0)||+fe}function Cc(){if(!this.isValid())return this.localeData().invalidDate();var an,kn,Ni,cr,bs,da,ir,us,fe=ca(this._milliseconds)/1e3,Ge=ca(this._days),It=ca(this._months),jo=this.asSeconds();return jo?(an=ct(fe/60),kn=ct(an/60),fe%=60,an%=60,Ni=ct(It/12),It%=12,cr=fe?fe.toFixed(3).replace(/\.?0+$/,""):"",bs=jo<0?"-":"",da=yo(this._months)!==yo(jo)?"-":"",ir=yo(this._days)!==yo(jo)?"-":"",us=yo(this._milliseconds)!==yo(jo)?"-":"",bs+"P"+(Ni?da+Ni+"Y":"")+(It?da+It+"M":"")+(Ge?ir+Ge+"D":"")+(kn||an||fe?"T":"")+(kn?us+kn+"H":"")+(an?us+an+"M":"")+(fe?us+cr+"S":"")):"P0D"}var Fs=qs.prototype;return Fs.isValid=function ga(){return this._isValid},Fs.abs=function Fn(){var fe=this._data;return this._milliseconds=Kt(this._milliseconds),this._days=Kt(this._days),this._months=Kt(this._months),fe.milliseconds=Kt(fe.milliseconds),fe.seconds=Kt(fe.seconds),fe.minutes=Kt(fe.minutes),fe.hours=Kt(fe.hours),fe.months=Kt(fe.months),fe.years=Kt(fe.years),this},Fs.add=function Fi(fe,Ge){return ii(this,fe,Ge,1)},Fs.subtract=function Hi(fe,Ge){return ii(this,fe,Ge,-1)},Fs.as=function io(fe){if(!this.isValid())return NaN;var Ge,It,an=this._milliseconds;if("month"===(fe=ye(fe))||"quarter"===fe||"year"===fe)switch(Ge=this._days+an/864e5,It=this._months+Oo(Ge),fe){case"month":return It;case"quarter":return It/3;case"year":return It/12}else switch(Ge=this._days+Math.round(uo(this._months)),fe){case"week":return Ge/7+an/6048e5;case"day":return Ge+an/864e5;case"hour":return 24*Ge+an/36e5;case"minute":return 1440*Ge+an/6e4;case"second":return 86400*Ge+an/1e3;case"millisecond":return Math.floor(864e5*Ge)+an;default:throw new Error("Unknown unit "+fe)}},Fs.asMilliseconds=pa,Fs.asSeconds=Rs,Fs.asMinutes=ka,Fs.asHours=Da,Fs.asDays=Ql,Fs.asWeeks=vc,Fs.asMonths=wl,Fs.asQuarters=Ro,Fs.asYears=oc,Fs.valueOf=function Do(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Gt(this._months/12):NaN},Fs._bubble=function Vr(){var kn,Ni,cr,jo,bs,fe=this._milliseconds,Ge=this._days,It=this._months,an=this._data;return fe>=0&&Ge>=0&&It>=0||fe<=0&&Ge<=0&&It<=0||(fe+=864e5*Er(uo(It)+Ge),Ge=0,It=0),an.milliseconds=fe%1e3,kn=ct(fe/1e3),an.seconds=kn%60,Ni=ct(kn/60),an.minutes=Ni%60,cr=ct(Ni/60),an.hours=cr%24,Ge+=ct(cr/24),It+=bs=ct(Oo(Ge)),Ge-=Er(uo(bs)),jo=ct(It/12),It%=12,an.days=Ge,an.months=It,an.years=jo,this},Fs.clone=function sc(){return hn(this)},Fs.get=function wa(fe){return fe=ye(fe),this.isValid()?this[fe+"s"]():NaN},Fs.milliseconds=Jl,Fs.seconds=Vl,Fs.minutes=ol,Fs.hours=to,Fs.days=Lo,Fs.weeks=function el(){return ct(this.days()/7)},Fs.months=zo,Fs.years=ps,Fs.humanize=function ma(fe,Ge){if(!this.isValid())return this.localeData().invalidDate();var kn,Ni,It=!1,an=tl;return"object"==typeof fe&&(Ge=fe,fe=!1),"boolean"==typeof fe&&(It=fe),"object"==typeof Ge&&(an=Object.assign({},tl,Ge),null!=Ge.s&&null==Ge.ss&&(an.ss=Ge.s-1)),Ni=function Ma(fe,Ge,It,an){var kn=hn(fe).abs(),Ni=Za(kn.as("s")),cr=Za(kn.as("m")),jo=Za(kn.as("h")),bs=Za(kn.as("d")),da=Za(kn.as("M")),ir=Za(kn.as("w")),us=Za(kn.as("y")),$c=Ni<=It.ss&&["s",Ni]||Ni<It.s&&["ss",Ni]||cr<=1&&["m"]||cr<It.m&&["mm",cr]||jo<=1&&["h"]||jo<It.h&&["hh",jo]||bs<=1&&["d"]||bs<It.d&&["dd",bs];return null!=It.w&&($c=$c||ir<=1&&["w"]||ir<It.w&&["ww",ir]),($c=$c||da<=1&&["M"]||da<It.M&&["MM",da]||us<=1&&["y"]||["yy",us])[2]=Ge,$c[3]=+fe>0,$c[4]=an,Tl.apply(null,$c)}(this,!It,an,kn=this.localeData()),It&&(Ni=kn.pastFuture(+this,Ni)),kn.postformat(Ni)},Fs.toISOString=Cc,Fs.toString=Cc,Fs.toJSON=Cc,Fs.locale=Ur,Fs.localeData=No,Fs.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cc),Fs.lang=ns,ue("X",0,0,"unix"),ue("x",0,0,"valueOf"),on("x",Ct),on("X",/[+-]?\d+(\.\d{1,3})?/),Oi("X",function(fe,Ge,It){It._d=new Date(1e3*parseFloat(fe))}),Oi("x",function(fe,Ge,It){It._d=new Date(Gt(fe))}),l.version="2.29.4",function p(fe){n=fe}(eo),l.fn=dn,l.min=function Sa(){return kr("isBefore",[].slice.call(arguments,0))},l.max=function rl(){return kr("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=a,l.unix=function Jn(fe){return eo(1e3*fe)},l.months=function Bt(fe,Ge){return vs(fe,Ge,"months")},l.isDate=y,l.locale=yi,l.invalid=A,l.duration=hn,l.isMoment=F,l.weekdays=function ze(fe,Ge,It){return cs(fe,Ge,It,"weekdays")},l.parseZone=function $i(){return eo.apply(null,arguments).parseZone()},l.localeData=Ki,l.isDuration=Ia,l.monthsShort=function Te(fe,Ge){return vs(fe,Ge,"monthsShort")},l.weekdaysMin=function ht(fe,Ge,It){return cs(fe,Ge,It,"weekdaysMin")},l.defineLocale=Di,l.updateLocale=function zi(fe,Ge){if(null!=Ge){var It,an,kn=Ga;null!=To[fe]&&null!=To[fe].parentLocale?To[fe].set($(To[fe]._config,Ge)):(null!=(an=Qi(fe))&&(kn=an._config),Ge=$(kn,Ge),null==an&&(Ge.abbr=fe),(It=new ee(Ge)).parentLocale=To[fe],To[fe]=It),yi(fe)}else null!=To[fe]&&(null!=To[fe].parentLocale?(To[fe]=To[fe].parentLocale,fe===yi()&&yi(fe)):null!=To[fe]&&delete To[fe]);return To[fe]},l.locales=function Vi(){return J(To)},l.weekdaysShort=function Ie(fe,Ge,It){return cs(fe,Ge,It,"weekdaysShort")},l.normalizeUnits=ye,l.relativeTimeRounding=function rd(fe){return void 0===fe?Za:"function"==typeof fe&&(Za=fe,!0)},l.relativeTimeThreshold=function Wc(fe,Ge){return void 0!==tl[fe]&&(void 0===Ge?tl[fe]:(tl[fe]=Ge,"s"===fe&&(tl.ss=Ge-1),!0))},l.calendarFormat=function Sl(fe,Ge){var It=fe.diff(Ge,"days",!0);return It<-6?"sameElse":It<-1?"lastWeek":It<0?"lastDay":It<1?"sameDay":It<2?"nextDay":It<7?"nextWeek":"sameElse"},l.prototype=dn,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l}()},80062:Ue=>{Ue.exports=function W(d,n,l){function p(P,v){if(!n[P]){if(!d[P]){if(m)return m(P,!0);throw new Error("Cannot find module '"+P+"'")}var S=n[P]={exports:{}};d[P][0].call(S.exports,function(y){return p(d[P][1][y]||y)},S,S.exports,W,d,n,l)}return n[P].exports}for(var m=void 0,_=0;_<l.length;_++)p(l[_]);return p}({1:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){"use strict";var r=W("crypto");function i(L,x){return function(V,D){var F;if(void 0===(F="passthrough"!==D.algorithm?r.createHash(D.algorithm):new A).write&&(F.write=F.update,F.end=F.update),T(D,F).dispatch(V),F.update||F.end(""),F.digest)return F.digest("buffer"===D.encoding?void 0:D.encoding);var I=F.read();return"buffer"!==D.encoding?I.toString(D.encoding):I}(L,x=g(L,x))}(n=d.exports=i).sha1=function(L){return i(L)},n.keys=function(L){return i(L,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(L){return i(L,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(L){return i(L,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var a=r.getHashes?r.getHashes().slice():["sha1","md5"];a.push("passthrough");var h=["buffer","hex","binary","base64"];function g(L,x){var V={};if(V.algorithm=(x=x||{}).algorithm||"sha1",V.encoding=x.encoding||"hex",V.excludeValues=!!x.excludeValues,V.algorithm=V.algorithm.toLowerCase(),V.encoding=V.encoding.toLowerCase(),V.ignoreUnknown=!0===x.ignoreUnknown,V.respectType=!1!==x.respectType,V.respectFunctionNames=!1!==x.respectFunctionNames,V.respectFunctionProperties=!1!==x.respectFunctionProperties,V.unorderedArrays=!0===x.unorderedArrays,V.unorderedSets=!1!==x.unorderedSets,V.unorderedObjects=!1!==x.unorderedObjects,V.replacer=x.replacer||void 0,V.excludeKeys=x.excludeKeys||void 0,void 0===L)throw new Error("Object argument required.");for(var D=0;D<a.length;++D)a[D].toLowerCase()===V.algorithm.toLowerCase()&&(V.algorithm=a[D]);if(-1===a.indexOf(V.algorithm))throw new Error('Algorithm "'+V.algorithm+'" not supported. supported values: '+a.join(", "));if(-1===h.indexOf(V.encoding)&&"passthrough"!==V.algorithm)throw new Error('Encoding "'+V.encoding+'" not supported. supported values: '+h.join(", "));return V}function c(L){if("function"==typeof L)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(L))}function T(L,x,V){function D(F){return x.update?x.update(F,"utf8"):x.write(F,"utf8")}return V=V||[],{dispatch:function(F){L.replacer&&(F=L.replacer(F));var I=typeof F;return null===F&&(I="null"),this["_"+I](F)},_object:function(F){var R,I=Object.prototype.toString.call(F),k=/\[object (.*)\]/i.exec(I);if(k=(k=k?k[1]:"unknown:["+I+"]").toLowerCase(),0<=(R=V.indexOf(F)))return this.dispatch("[CIRCULAR:"+R+"]");if(V.push(F),void 0!==m&&m.isBuffer&&m.isBuffer(F))return D("buffer:"),D(F);if("object"===k||"function"===k||"asyncfunction"===k){var G=Object.keys(F);L.unorderedObjects&&(G=G.sort()),!1===L.respectType||c(F)||G.splice(0,0,"prototype","__proto__","constructor"),L.excludeKeys&&(G=G.filter(function(K){return!L.excludeKeys(K)})),D("object:"+G.length+":");var Y=this;return G.forEach(function(K){Y.dispatch(K),D(":"),L.excludeValues||Y.dispatch(F[K]),D(",")})}if(!this["_"+k]){if(L.ignoreUnknown)return D("["+k+"]");throw new Error('Unknown object type "'+k+'"')}this["_"+k](F)},_array:function(F,I){I=void 0!==I?I:!1!==L.unorderedArrays;var k=this;if(D("array:"+F.length+":"),!I||F.length<=1)return F.forEach(function(Y){return k.dispatch(Y)});var R=[],G=F.map(function(Y){var K=new A,$=V.slice();return T(L,K,$).dispatch(Y),R=R.concat($.slice(V.length)),K.read().toString()});return V=V.concat(R),G.sort(),this._array(G,!1)},_date:function(F){return D("date:"+F.toJSON())},_symbol:function(F){return D("symbol:"+F.toString())},_error:function(F){return D("error:"+F.toString())},_boolean:function(F){return D("bool:"+F.toString())},_string:function(F){D("string:"+F.length+":"),D(F.toString())},_function:function(F){D("fn:"),c(F)?this.dispatch("[native]"):this.dispatch(F.toString()),!1!==L.respectFunctionNames&&this.dispatch("function-name:"+String(F.name)),L.respectFunctionProperties&&this._object(F)},_number:function(F){return D("number:"+F.toString())},_xml:function(F){return D("xml:"+F.toString())},_null:function(){return D("Null")},_undefined:function(){return D("Undefined")},_regexp:function(F){return D("regex:"+F.toString())},_uint8array:function(F){return D("uint8array:"),this.dispatch(Array.prototype.slice.call(F))},_uint8clampedarray:function(F){return D("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(F))},_int8array:function(F){return D("uint8array:"),this.dispatch(Array.prototype.slice.call(F))},_uint16array:function(F){return D("uint16array:"),this.dispatch(Array.prototype.slice.call(F))},_int16array:function(F){return D("uint16array:"),this.dispatch(Array.prototype.slice.call(F))},_uint32array:function(F){return D("uint32array:"),this.dispatch(Array.prototype.slice.call(F))},_int32array:function(F){return D("uint32array:"),this.dispatch(Array.prototype.slice.call(F))},_float32array:function(F){return D("float32array:"),this.dispatch(Array.prototype.slice.call(F))},_float64array:function(F){return D("float64array:"),this.dispatch(Array.prototype.slice.call(F))},_arraybuffer:function(F){return D("arraybuffer:"),this.dispatch(new Uint8Array(F))},_url:function(F){return D("url:"+F.toString())},_map:function(F){D("map:");var I=Array.from(F);return this._array(I,!1!==L.unorderedSets)},_set:function(F){D("set:");var I=Array.from(F);return this._array(I,!1!==L.unorderedSets)},_blob:function(){if(L.ignoreUnknown)return D("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return D("domwindow")},_process:function(){return D("process")},_timer:function(){return D("timer")},_pipe:function(){return D("pipe")},_tcp:function(){return D("tcp")},_udp:function(){return D("udp")},_tty:function(){return D("tty")},_statwatcher:function(){return D("statwatcher")},_securecontext:function(){return D("securecontext")},_connection:function(){return D("connection")},_zlib:function(){return D("zlib")},_context:function(){return D("context")},_nodescript:function(){return D("nodescript")},_httpparser:function(){return D("httpparser")},_dataview:function(){return D("dataview")},_signal:function(){return D("signal")},_fsevent:function(){return D("fsevent")},_tlswrap:function(){return D("tlswrap")}}}function A(){return{buf:"",write:function(L){this.buf+=L},end:function(L){this.buf+=L},read:function(){return this.buf}}}n.writeToStream=function(L,x,V){return void 0===V&&(V=x,x={}),T(x=g(L,x),V).dispatch(L)}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_794fcf4d.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){!function(r){"use strict";var i=typeof Uint8Array<"u"?Uint8Array:Array;function x(V){var D=V.charCodeAt(0);return 43===D||45===D?62:47===D||95===D?63:D<48?-1:D<58?D-48+26+26:D<91?D-65:D<123?D-97+26:void 0}r.toByteArray=function(V){var D,F,I,k,R;if(0<V.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var G=V.length;k="="===V.charAt(G-2)?2:"="===V.charAt(G-1)?1:0,R=new i(3*V.length/4-k),F=0<k?V.length-4:V.length;var Y=0;function K($){R[Y++]=$}for(D=0;D<F;D+=4,0)K((16711680&(I=x(V.charAt(D))<<18|x(V.charAt(D+1))<<12|x(V.charAt(D+2))<<6|x(V.charAt(D+3))))>>16),K((65280&I)>>8),K(255&I);return 2==k?K(255&(I=x(V.charAt(D))<<2|x(V.charAt(D+1))>>4)):1==k&&(K((I=x(V.charAt(D))<<10|x(V.charAt(D+1))<<4|x(V.charAt(D+2))>>2)>>8&255),K(255&I)),R},r.fromByteArray=function(V){var D,F,I,k,R=V.length%3,G="";function Y(K){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(K)}for(D=0,I=V.length-R;D<I;D+=3)G+=Y((k=F=(V[D]<<16)+(V[D+1]<<8)+V[D+2])>>18&63)+Y(k>>12&63)+Y(k>>6&63)+Y(63&k);switch(R){case 1:G+=Y((F=V[V.length-1])>>2),G+=Y(F<<4&63),G+="==";break;case 2:G+=Y((F=(V[V.length-2]<<8)+V[V.length-1])>>10),G+=Y(F>>4&63),G+=Y(F<<2&63),G+="="}return G}}(void 0===n?this.base64js={}:n)}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(W,d,n){(function(l,p,a,_,P,v,O,S,y){var r=W("base64-js"),i=W("ieee754");function a(se,ce,Z){if(!(this instanceof a))return new a(se,ce,Z);var de,ae,pe,_e,ke,De=typeof se;if("base64"===ce&&"string"==De)for(se=(de=se).trim?de.trim():de.replace(/^\s+|\s+$/g,"");se.length%4!=0;)se+="=";if("number"==De)ae=ee(se);else if("string"==De)ae=a.byteLength(se,ce);else{if("object"!=De)throw new Error("First argument needs to be a number, array or string.");ae=ee(se.length)}if(a._useTypedArrays?pe=a._augment(new Uint8Array(ae)):((pe=this).length=ae,pe._isBuffer=!0),a._useTypedArrays&&"number"==typeof se.byteLength)pe._set(se);else if(J(ke=se)||a.isBuffer(ke)||ke&&"object"==typeof ke&&"number"==typeof ke.length)for(_e=0;_e<ae;_e++)pe[_e]=a.isBuffer(se)?se.readUInt8(_e):se[_e];else if("string"==De)pe.write(se,0,ce);else if("number"==De&&!a._useTypedArrays&&!Z)for(_e=0;_e<ae;_e++)pe[_e]=0;return pe}function T(se,ce,Z,de){de||(N("boolean"==typeof Z,"missing or invalid endian"),N(null!=ce,"missing offset"),N(ce+1<se.length,"Trying to read beyond buffer length"));var ae,pe=se.length;if(!(pe<=ce))return Z?(ae=se[ce],ce+1<pe&&(ae|=se[ce+1]<<8)):(ae=se[ce]<<8,ce+1<pe&&(ae|=se[ce+1])),ae}function A(se,ce,Z,de){de||(N("boolean"==typeof Z,"missing or invalid endian"),N(null!=ce,"missing offset"),N(ce+3<se.length,"Trying to read beyond buffer length"));var ae,pe=se.length;if(!(pe<=ce))return Z?(ce+2<pe&&(ae=se[ce+2]<<16),ce+1<pe&&(ae|=se[ce+1]<<8),ae|=se[ce],ce+3<pe&&(ae+=se[ce+3]<<24>>>0)):(ce+1<pe&&(ae=se[ce+1]<<16),ce+2<pe&&(ae|=se[ce+2]<<8),ce+3<pe&&(ae|=se[ce+3]),ae+=se[ce]<<24>>>0),ae}function L(se,ce,Z,de){if(de||(N("boolean"==typeof Z,"missing or invalid endian"),N(null!=ce,"missing offset"),N(ce+1<se.length,"Trying to read beyond buffer length")),!(se.length<=ce)){var ae=T(se,ce,Z,!0);return 32768&ae?-1*(65535-ae+1):ae}}function x(se,ce,Z,de){if(de||(N("boolean"==typeof Z,"missing or invalid endian"),N(null!=ce,"missing offset"),N(ce+3<se.length,"Trying to read beyond buffer length")),!(se.length<=ce)){var ae=A(se,ce,Z,!0);return 2147483648&ae?-1*(4294967295-ae+1):ae}}function V(se,ce,Z,de){return de||(N("boolean"==typeof Z,"missing or invalid endian"),N(ce+3<se.length,"Trying to read beyond buffer length")),i.read(se,ce,Z,23,4)}function D(se,ce,Z,de){return de||(N("boolean"==typeof Z,"missing or invalid endian"),N(ce+7<se.length,"Trying to read beyond buffer length")),i.read(se,ce,Z,52,8)}function F(se,ce,Z,de,ae){ae||(N(null!=ce,"missing value"),N("boolean"==typeof de,"missing or invalid endian"),N(null!=Z,"missing offset"),N(Z+1<se.length,"trying to write beyond buffer length"),oe(ce,65535));var pe=se.length;if(!(pe<=Z))for(var _e=0,ke=Math.min(pe-Z,2);_e<ke;_e++)se[Z+_e]=(ce&255<<8*(de?_e:1-_e))>>>8*(de?_e:1-_e)}function I(se,ce,Z,de,ae){ae||(N(null!=ce,"missing value"),N("boolean"==typeof de,"missing or invalid endian"),N(null!=Z,"missing offset"),N(Z+3<se.length,"trying to write beyond buffer length"),oe(ce,4294967295));var pe=se.length;if(!(pe<=Z))for(var _e=0,ke=Math.min(pe-Z,4);_e<ke;_e++)se[Z+_e]=ce>>>8*(de?_e:3-_e)&255}function k(se,ce,Z,de,ae){ae||(N(null!=ce,"missing value"),N("boolean"==typeof de,"missing or invalid endian"),N(null!=Z,"missing offset"),N(Z+1<se.length,"Trying to write beyond buffer length"),xe(ce,32767,-32768)),se.length<=Z||F(se,0<=ce?ce:65535+ce+1,Z,de,ae)}function R(se,ce,Z,de,ae){ae||(N(null!=ce,"missing value"),N("boolean"==typeof de,"missing or invalid endian"),N(null!=Z,"missing offset"),N(Z+3<se.length,"Trying to write beyond buffer length"),xe(ce,2147483647,-2147483648)),se.length<=Z||I(se,0<=ce?ce:4294967295+ce+1,Z,de,ae)}function G(se,ce,Z,de,ae){ae||(N(null!=ce,"missing value"),N("boolean"==typeof de,"missing or invalid endian"),N(null!=Z,"missing offset"),N(Z+3<se.length,"Trying to write beyond buffer length"),ue(ce,34028234663852886e22,-34028234663852886e22)),se.length<=Z||i.write(se,ce,Z,de,23,4)}function Y(se,ce,Z,de,ae){ae||(N(null!=ce,"missing value"),N("boolean"==typeof de,"missing or invalid endian"),N(null!=Z,"missing offset"),N(Z+7<se.length,"Trying to write beyond buffer length"),ue(ce,17976931348623157e292,-17976931348623157e292)),se.length<=Z||i.write(se,ce,Z,de,52,8)}n.Buffer=a,n.SlowBuffer=a,n.INSPECT_MAX_BYTES=50,a.poolSize=8192,a._useTypedArrays=function(){try{var se=new ArrayBuffer(0),ce=new Uint8Array(se);return ce.foo=function(){return 42},42===ce.foo()&&"function"==typeof ce.subarray}catch{return!1}}(),a.isEncoding=function(se){switch(String(se).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.isBuffer=function(se){return!(null==se||!se._isBuffer)},a.byteLength=function(se,ce){var Z;switch(se+="",ce||"utf8"){case"hex":Z=se.length/2;break;case"utf8":case"utf-8":Z=te(se).length;break;case"ascii":case"binary":case"raw":Z=se.length;break;case"base64":Z=X(se).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Z=2*se.length;break;default:throw new Error("Unknown encoding")}return Z},a.concat=function(se,ce){if(N(J(se),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===se.length)return new a(0);if(1===se.length)return se[0];var Z;if("number"!=typeof ce)for(Z=ce=0;Z<se.length;Z++)ce+=se[Z].length;var de=new a(ce),ae=0;for(Z=0;Z<se.length;Z++){var pe=se[Z];pe.copy(de,ae),ae+=pe.length}return de},a.prototype.write=function(se,ce,Z,de){if(isFinite(ce))isFinite(Z)||(de=Z,Z=void 0);else{var ae=de;de=ce,ce=Z,Z=ae}ce=Number(ce)||0;var pe,ke,De,je,$e,Oe=this.length-ce;switch((!Z||Oe<(Z=Number(Z)))&&(Z=Oe),de=String(de||"utf8").toLowerCase()){case"hex":pe=function(gt,qt,ye,Re){ye=Number(ye)||0;var Ze=gt.length-ye;(!Re||Ze<(Re=Number(Re)))&&(Re=Ze);var et=qt.length;N(et%2==0,"Invalid hex string"),et/2<Re&&(Re=et/2);for(var xt=0;xt<Re;xt++){var un=parseInt(qt.substr(2*xt,2),16);N(!isNaN(un),"Invalid hex string"),gt[ye+xt]=un}return a._charsWritten=2*xt,xt}(this,se,ce,Z);break;case"utf8":case"utf-8":this,je=ce,$e=Z,pe=a._charsWritten=re(te(se),this,je,$e);break;case"ascii":case"binary":pe=function h(se,ce,Z,de){return a._charsWritten=re(function(ae){for(var pe=[],_e=0;_e<ae.length;_e++)pe.push(255&ae.charCodeAt(_e));return pe}(ce),se,Z,de)}(this,se,ce,Z);break;case"base64":this,ke=ce,De=Z,pe=a._charsWritten=re(X(se),this,ke,De);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":pe=function g(se,ce,Z,de){return a._charsWritten=re(function(ae){for(var pe,_e,De=[],Me=0;Me<ae.length;Me++)_e=(pe=ae.charCodeAt(Me))>>8,De.push(pe%256),De.push(_e);return De}(ce),se,Z,de)}(this,se,ce,Z);break;default:throw new Error("Unknown encoding")}return pe},a.prototype.toString=function(se,ce,Z){var de,ae,pe,_e,ke=this;if(se=String(se||"utf8").toLowerCase(),ce=Number(ce)||0,(Z=void 0!==Z?Number(Z):Z=ke.length)===ce)return"";switch(se){case"hex":de=function(De,Me,je){var $e=De.length;(!Me||Me<0)&&(Me=0),(!je||je<0||$e<je)&&(je=$e);for(var Oe="",gt=Me;gt<je;gt++)Oe+=z(De[gt]);return Oe}(ke,ce,Z);break;case"utf8":case"utf-8":de=function(De,Me,je){var $e="",Oe="";je=Math.min(De.length,je);for(var gt=Me;gt<je;gt++)De[gt]<=127?($e+=ge(Oe)+String.fromCharCode(De[gt]),Oe=""):Oe+="%"+De[gt].toString(16);return $e+ge(Oe)}(ke,ce,Z);break;case"ascii":case"binary":de=function c(se,ce,Z){var de="";Z=Math.min(se.length,Z);for(var ae=ce;ae<Z;ae++)de+=String.fromCharCode(se[ae]);return de}(ke,ce,Z);break;case"base64":ae=ke,_e=Z,de=0===(pe=ce)&&_e===ae.length?r.fromByteArray(ae):r.fromByteArray(ae.slice(pe,_e));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":de=function(De,Me,je){for(var $e=De.slice(Me,je),Oe="",gt=0;gt<$e.length;gt+=2)Oe+=String.fromCharCode($e[gt]+256*$e[gt+1]);return Oe}(ke,ce,Z);break;default:throw new Error("Unknown encoding")}return de},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.copy=function(se,ce,Z,de){if(de||0===de||(de=this.length),ce=ce||0,de!==(Z=Z||0)&&0!==se.length&&0!==this.length){N(Z<=de,"sourceEnd < sourceStart"),N(0<=ce&&ce<se.length,"targetStart out of bounds"),N(0<=Z&&Z<this.length,"sourceStart out of bounds"),N(0<=de&&de<=this.length,"sourceEnd out of bounds"),de>this.length&&(de=this.length),se.length-ce<de-Z&&(de=se.length-ce+Z);var ae=de-Z;if(ae<100||!a._useTypedArrays)for(var pe=0;pe<ae;pe++)se[pe+ce]=this[pe+Z];else se._set(this.subarray(Z,Z+ae),ce)}},a.prototype.slice=function(se,ce){var Z=this.length;if(se=$(se,Z,0),ce=$(ce,Z,Z),a._useTypedArrays)return a._augment(this.subarray(se,ce));for(var de=ce-se,ae=new a(de,void 0,!0),pe=0;pe<de;pe++)ae[pe]=this[pe+se];return ae},a.prototype.get=function(se){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(se)},a.prototype.set=function(se,ce){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(se,ce)},a.prototype.readUInt8=function(se,ce){if(ce||(N(null!=se,"missing offset"),N(se<this.length,"Trying to read beyond buffer length")),!(se>=this.length))return this[se]},a.prototype.readUInt16LE=function(se,ce){return T(this,se,!0,ce)},a.prototype.readUInt16BE=function(se,ce){return T(this,se,!1,ce)},a.prototype.readUInt32LE=function(se,ce){return A(this,se,!0,ce)},a.prototype.readUInt32BE=function(se,ce){return A(this,se,!1,ce)},a.prototype.readInt8=function(se,ce){if(ce||(N(null!=se,"missing offset"),N(se<this.length,"Trying to read beyond buffer length")),!(se>=this.length))return 128&this[se]?-1*(255-this[se]+1):this[se]},a.prototype.readInt16LE=function(se,ce){return L(this,se,!0,ce)},a.prototype.readInt16BE=function(se,ce){return L(this,se,!1,ce)},a.prototype.readInt32LE=function(se,ce){return x(this,se,!0,ce)},a.prototype.readInt32BE=function(se,ce){return x(this,se,!1,ce)},a.prototype.readFloatLE=function(se,ce){return V(this,se,!0,ce)},a.prototype.readFloatBE=function(se,ce){return V(this,se,!1,ce)},a.prototype.readDoubleLE=function(se,ce){return D(this,se,!0,ce)},a.prototype.readDoubleBE=function(se,ce){return D(this,se,!1,ce)},a.prototype.writeUInt8=function(se,ce,Z){Z||(N(null!=se,"missing value"),N(null!=ce,"missing offset"),N(ce<this.length,"trying to write beyond buffer length"),oe(se,255)),ce>=this.length||(this[ce]=se)},a.prototype.writeUInt16LE=function(se,ce,Z){F(this,se,ce,!0,Z)},a.prototype.writeUInt16BE=function(se,ce,Z){F(this,se,ce,!1,Z)},a.prototype.writeUInt32LE=function(se,ce,Z){I(this,se,ce,!0,Z)},a.prototype.writeUInt32BE=function(se,ce,Z){I(this,se,ce,!1,Z)},a.prototype.writeInt8=function(se,ce,Z){Z||(N(null!=se,"missing value"),N(null!=ce,"missing offset"),N(ce<this.length,"Trying to write beyond buffer length"),xe(se,127,-128)),ce>=this.length||this.writeUInt8(0<=se?se:255+se+1,ce,Z)},a.prototype.writeInt16LE=function(se,ce,Z){k(this,se,ce,!0,Z)},a.prototype.writeInt16BE=function(se,ce,Z){k(this,se,ce,!1,Z)},a.prototype.writeInt32LE=function(se,ce,Z){R(this,se,ce,!0,Z)},a.prototype.writeInt32BE=function(se,ce,Z){R(this,se,ce,!1,Z)},a.prototype.writeFloatLE=function(se,ce,Z){G(this,se,ce,!0,Z)},a.prototype.writeFloatBE=function(se,ce,Z){G(this,se,ce,!1,Z)},a.prototype.writeDoubleLE=function(se,ce,Z){Y(this,se,ce,!0,Z)},a.prototype.writeDoubleBE=function(se,ce,Z){Y(this,se,ce,!1,Z)},a.prototype.fill=function(se,ce,Z){if(ce=ce||0,Z=Z||this.length,"string"==typeof(se=se||0)&&(se=se.charCodeAt(0)),N("number"==typeof se&&!isNaN(se),"value is not a number"),N(ce<=Z,"end < start"),Z!==ce&&0!==this.length){N(0<=ce&&ce<this.length,"start out of bounds"),N(0<=Z&&Z<=this.length,"end out of bounds");for(var de=ce;de<Z;de++)this[de]=se}},a.prototype.inspect=function(){for(var se=[],ce=this.length,Z=0;Z<ce;Z++)if(se[Z]=z(this[Z]),Z===n.INSPECT_MAX_BYTES){se[Z+1]="...";break}return"<Buffer "+se.join(" ")+">"},a.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(a._useTypedArrays)return new a(this).buffer;for(var se=new Uint8Array(this.length),ce=0,Z=se.length;ce<Z;ce+=1)se[ce]=this[ce];return se.buffer};var K=a.prototype;function $(se,ce,Z){return"number"!=typeof se?Z:ce<=(se=~~se)?ce:0<=se||0<=(se+=ce)?se:0}function ee(se){return(se=~~Math.ceil(+se))<0?0:se}function J(se){return(Array.isArray||function(ce){return"[object Array]"===Object.prototype.toString.call(ce)})(se)}function z(se){return se<16?"0"+se.toString(16):se.toString(16)}function te(se){for(var ce=[],Z=0;Z<se.length;Z++){var de=se.charCodeAt(Z);if(de<=127)ce.push(se.charCodeAt(Z));else{var ae=Z;55296<=de&&de<=57343&&Z++;for(var pe=encodeURIComponent(se.slice(ae,Z+1)).substr(1).split("%"),_e=0;_e<pe.length;_e++)ce.push(parseInt(pe[_e],16))}}return ce}function X(se){return r.toByteArray(se)}function re(se,ce,Z,de){for(var ae=0;ae<de&&!(ae+Z>=ce.length||ae>=se.length);ae++)ce[ae+Z]=se[ae];return ae}function ge(se){try{return decodeURIComponent(se)}catch{return"\ufffd"}}function oe(se,ce){N("number"==typeof se,"cannot write a non-number as a number"),N(0<=se,"specified a negative value for writing an unsigned value"),N(se<=ce,"value is larger than maximum value for type"),N(Math.floor(se)===se,"value has a fractional component")}function xe(se,ce,Z){N("number"==typeof se,"cannot write a non-number as a number"),N(se<=ce,"value larger than maximum allowed value"),N(Z<=se,"value smaller than minimum allowed value"),N(Math.floor(se)===se,"value has a fractional component")}function ue(se,ce,Z){N("number"==typeof se,"cannot write a non-number as a number"),N(se<=ce,"value larger than maximum allowed value"),N(Z<=se,"value smaller than minimum allowed value")}function N(se,ce){if(!se)throw new Error(ce||"Failed assertion")}a._augment=function(se){return se._isBuffer=!0,se._get=se.get,se._set=se.set,se.get=K.get,se.set=K.set,se.write=K.write,se.toString=K.toString,se.toLocaleString=K.toString,se.toJSON=K.toJSON,se.copy=K.copy,se.slice=K.slice,se.readUInt8=K.readUInt8,se.readUInt16LE=K.readUInt16LE,se.readUInt16BE=K.readUInt16BE,se.readUInt32LE=K.readUInt32LE,se.readUInt32BE=K.readUInt32BE,se.readInt8=K.readInt8,se.readInt16LE=K.readInt16LE,se.readInt16BE=K.readInt16BE,se.readInt32LE=K.readInt32LE,se.readInt32BE=K.readInt32BE,se.readFloatLE=K.readFloatLE,se.readFloatBE=K.readFloatBE,se.readDoubleLE=K.readDoubleLE,se.readDoubleBE=K.readDoubleBE,se.writeUInt8=K.writeUInt8,se.writeUInt16LE=K.writeUInt16LE,se.writeUInt16BE=K.writeUInt16BE,se.writeUInt32LE=K.writeUInt32LE,se.writeUInt32BE=K.writeUInt32BE,se.writeInt8=K.writeInt8,se.writeInt16LE=K.writeInt16LE,se.writeInt16BE=K.writeInt16BE,se.writeInt32LE=K.writeInt32LE,se.writeInt32BE=K.writeInt32BE,se.writeFloatLE=K.writeFloatLE,se.writeFloatBE=K.writeFloatBE,se.writeDoubleLE=K.writeDoubleLE,se.writeDoubleBE=K.writeDoubleBE,se.fill=K.fill,se.inspect=K.inspect,se.toArrayBuffer=K.toArrayBuffer,se}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){m=W("buffer").Buffer;var i=new m(4);i.fill(0),d.exports={hash:function(a,h,g,c){return m.isBuffer(a)||(a=new m(a)),function(T,A,L){for(var x=new m(A),V=L?x.writeInt32BE:x.writeInt32LE,D=0;D<T.length;D++)V.call(x,T[D],4*D,!0);return x}(h(function(T,A){T.length%4!=0&&(T=m.concat([T,i],T.length+(4-T.length%4)));for(var x=[],V=A?T.readInt32BE:T.readInt32LE,D=0;D<T.length;D+=4)x.push(V.call(T,D));return x}(a,c),8*a.length),g,c)}}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){m=W("buffer").Buffer;var r=W("./sha"),i=W("./sha256"),a=W("./rng"),h={sha1:r,sha256:i,md5:W("./md5")},g=64,c=new m(g);function T(L,x){var V=h[L=L||"sha1"],D=[];return V||A("algorithm:",L,"is not yet supported"),{update:function(F){return m.isBuffer(F)||(F=new m(F)),D.push(F),this},digest:function(F){var I=m.concat(D),k=x?function(R,G,Y){m.isBuffer(G)||(G=new m(G)),m.isBuffer(Y)||(Y=new m(Y)),G.length>g?G=R(G):G.length<g&&(G=m.concat([G,c],g));for(var K=new m(g),$=new m(g),ee=0;ee<g;ee++)K[ee]=54^G[ee],$[ee]=92^G[ee];var J=R(m.concat([K,Y]));return R(m.concat([$,J]))}(V,x,I):V(I);return D=null,F?k.toString(F):k}}}function A(){var L=[].slice.call(arguments).join(" ");throw new Error([L,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}c.fill(0),n.createHash=function(L){return T(L)},n.createHmac=function(L,x){return T(L,x)},n.randomBytes=function(L,x){if(!x||!x.call)return new m(a(L));try{x.call(this,void 0,new m(a(L)))}catch(V){x(V)}},function(L,x){for(var V in L)x(L[V])}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(L){n[L]=function(){A("sorry,",L,"is not implemented yet")}})}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){var r=W("./helpers");function i(L,x){L[x>>5]|=128<<x%32,L[14+(x+64>>>9<<4)]=x;for(var V=1732584193,D=-271733879,F=-1732584194,I=271733878,k=0;k<L.length;k+=16){var R=V,G=D,Y=F,K=I;V=h(V,D,F,I,L[k+0],7,-680876936),I=h(I,V,D,F,L[k+1],12,-389564586),F=h(F,I,V,D,L[k+2],17,606105819),D=h(D,F,I,V,L[k+3],22,-1044525330),V=h(V,D,F,I,L[k+4],7,-176418897),I=h(I,V,D,F,L[k+5],12,1200080426),F=h(F,I,V,D,L[k+6],17,-1473231341),D=h(D,F,I,V,L[k+7],22,-45705983),V=h(V,D,F,I,L[k+8],7,1770035416),I=h(I,V,D,F,L[k+9],12,-1958414417),F=h(F,I,V,D,L[k+10],17,-42063),D=h(D,F,I,V,L[k+11],22,-1990404162),V=h(V,D,F,I,L[k+12],7,1804603682),I=h(I,V,D,F,L[k+13],12,-40341101),F=h(F,I,V,D,L[k+14],17,-1502002290),V=g(V,D=h(D,F,I,V,L[k+15],22,1236535329),F,I,L[k+1],5,-165796510),I=g(I,V,D,F,L[k+6],9,-1069501632),F=g(F,I,V,D,L[k+11],14,643717713),D=g(D,F,I,V,L[k+0],20,-373897302),V=g(V,D,F,I,L[k+5],5,-701558691),I=g(I,V,D,F,L[k+10],9,38016083),F=g(F,I,V,D,L[k+15],14,-660478335),D=g(D,F,I,V,L[k+4],20,-405537848),V=g(V,D,F,I,L[k+9],5,568446438),I=g(I,V,D,F,L[k+14],9,-1019803690),F=g(F,I,V,D,L[k+3],14,-187363961),D=g(D,F,I,V,L[k+8],20,1163531501),V=g(V,D,F,I,L[k+13],5,-1444681467),I=g(I,V,D,F,L[k+2],9,-51403784),F=g(F,I,V,D,L[k+7],14,1735328473),V=c(V,D=g(D,F,I,V,L[k+12],20,-1926607734),F,I,L[k+5],4,-378558),I=c(I,V,D,F,L[k+8],11,-2022574463),F=c(F,I,V,D,L[k+11],16,1839030562),D=c(D,F,I,V,L[k+14],23,-35309556),V=c(V,D,F,I,L[k+1],4,-1530992060),I=c(I,V,D,F,L[k+4],11,1272893353),F=c(F,I,V,D,L[k+7],16,-155497632),D=c(D,F,I,V,L[k+10],23,-1094730640),V=c(V,D,F,I,L[k+13],4,681279174),I=c(I,V,D,F,L[k+0],11,-358537222),F=c(F,I,V,D,L[k+3],16,-722521979),D=c(D,F,I,V,L[k+6],23,76029189),V=c(V,D,F,I,L[k+9],4,-640364487),I=c(I,V,D,F,L[k+12],11,-421815835),F=c(F,I,V,D,L[k+15],16,530742520),V=T(V,D=c(D,F,I,V,L[k+2],23,-995338651),F,I,L[k+0],6,-198630844),I=T(I,V,D,F,L[k+7],10,1126891415),F=T(F,I,V,D,L[k+14],15,-1416354905),D=T(D,F,I,V,L[k+5],21,-57434055),V=T(V,D,F,I,L[k+12],6,1700485571),I=T(I,V,D,F,L[k+3],10,-1894986606),F=T(F,I,V,D,L[k+10],15,-1051523),D=T(D,F,I,V,L[k+1],21,-2054922799),V=T(V,D,F,I,L[k+8],6,1873313359),I=T(I,V,D,F,L[k+15],10,-30611744),F=T(F,I,V,D,L[k+6],15,-1560198380),D=T(D,F,I,V,L[k+13],21,1309151649),V=T(V,D,F,I,L[k+4],6,-145523070),I=T(I,V,D,F,L[k+11],10,-1120210379),F=T(F,I,V,D,L[k+2],15,718787259),D=T(D,F,I,V,L[k+9],21,-343485551),V=A(V,R),D=A(D,G),F=A(F,Y),I=A(I,K)}return Array(V,D,F,I)}function a(L,x,V,D,F,I){return A((k=A(A(x,L),A(D,I)))<<(R=F)|k>>>32-R,V);var k,R}function h(L,x,V,D,F,I,k){return a(x&V|~x&D,L,x,F,I,k)}function g(L,x,V,D,F,I,k){return a(x&D|V&~D,L,x,F,I,k)}function c(L,x,V,D,F,I,k){return a(x^V^D,L,x,F,I,k)}function T(L,x,V,D,F,I,k){return a(V^(x|~D),L,x,F,I,k)}function A(L,x){var V=(65535&L)+(65535&x);return(L>>16)+(x>>16)+(V>>16)<<16|65535&V}d.exports=function(L){return r.hash(L,i,16)}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){d.exports=function(a){for(var h,g=new Array(a),c=0;c<a;c++)!(3&c)&&(h=4294967296*Math.random()),g[c]=h>>>((3&c)<<3)&255;return g}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){var r=W("./helpers");function i(c,T){c[T>>5]|=128<<24-T%32,c[15+(T+64>>9<<4)]=T;for(var A,L=Array(80),x=1732584193,V=-271733879,D=-1732584194,F=271733878,I=-1009589776,k=0;k<c.length;k+=16){for(var R=x,G=V,Y=D,K=F,$=I,ee=0;ee<80;ee++){L[ee]=ee<16?c[k+ee]:g(L[ee-3]^L[ee-8]^L[ee-14]^L[ee-16],1);var J=h(h(g(x,5),a(ee,V,D,F)),h(h(I,L[ee]),(A=ee)<20?1518500249:A<40?1859775393:A<60?-1894007588:-899497514));I=F,F=D,D=g(V,30),V=x,x=J}x=h(x,R),V=h(V,G),D=h(D,Y),F=h(F,K),I=h(I,$)}return Array(x,V,D,F,I)}function a(c,T,A,L){return c<20?T&A|~T&L:!(c<40)&&c<60?T&A|T&L|A&L:T^A^L}function h(c,T){var A=(65535&c)+(65535&T);return(c>>16)+(T>>16)+(A>>16)<<16|65535&A}function g(c,T){return c<<T|c>>>32-T}d.exports=function(c){return r.hash(c,i,20,!0)}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){function r(c,T){var A=(65535&c)+(65535&T);return(c>>16)+(T>>16)+(A>>16)<<16|65535&A}function i(c,T){return c>>>T|c<<32-T}function a(c,T){return c>>>T}function h(c,T){var A,L,x,V,D,F,I,k,R,G,Y,K,$,ee,J,z,te,X,re=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),ge=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),oe=new Array(64);c[T>>5]|=128<<24-T%32,c[15+(T+64>>9<<4)]=T;for(var xe=0;xe<c.length;xe+=16){A=ge[0],L=ge[1],x=ge[2],V=ge[3],D=ge[4],F=ge[5],I=ge[6],k=ge[7];for(var ue=0;ue<64;ue++)oe[ue]=ue<16?c[ue+xe]:r(r(r(i(X=oe[ue-2],17)^i(X,19)^a(X,10),oe[ue-7]),i(te=oe[ue-15],7)^i(te,18)^a(te,3)),oe[ue-16]),R=r(r(r(r(k,i(z=D,6)^i(z,11)^i(z,25)),(J=D)&F^~J&I),re[ue]),oe[ue]),G=r(i(ee=A,2)^i(ee,13)^i(ee,22),(Y=A)&(K=L)^Y&($=x)^K&$),k=I,I=F,F=D,D=r(V,R),V=x,x=L,L=A,A=r(R,G);ge[0]=r(A,ge[0]),ge[1]=r(L,ge[1]),ge[2]=r(x,ge[2]),ge[3]=r(V,ge[3]),ge[4]=r(D,ge[4]),ge[5]=r(F,ge[5]),ge[6]=r(I,ge[6]),ge[7]=r(k,ge[7])}return ge}var g=W("./helpers");d.exports=function(c){return g.hash(c,h,32,!0)}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){function r(){}(l=d.exports={}).nextTick=function(){var i=typeof window<"u"&&window.setImmediate,a=typeof window<"u"&&window.postMessage&&window.addEventListener;if(i)return function(g){return window.setImmediate(g)};if(a){var h=[];return window.addEventListener("message",function(g){var c=g.source;c!==window&&null!==c||"process-tick"!==g.data||(g.stopPropagation(),0<h.length&&h.shift()())},!0),function(g){h.push(g),window.postMessage("process-tick","*")}}return function(g){setTimeout(g,0)}}(),l.title="browser",l.browser=!0,l.env={},l.argv=[],l.on=r,l.addListener=r,l.once=r,l.off=r,l.removeListener=r,l.removeAllListeners=r,l.emit=r,l.binding=function(i){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(i){throw new Error("process.chdir is not supported")}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(W,d,n){(function(l,p,m,_,P,v,O,S,y){n.read=function(r,i,a,h,g){var c,T,A=8*g-h-1,L=(1<<A)-1,x=L>>1,V=-7,D=a?g-1:0,F=a?-1:1,I=r[i+D];for(D+=F,c=I&(1<<-V)-1,I>>=-V,V+=A;0<V;c=256*c+r[i+D],D+=F,V-=8);for(T=c&(1<<-V)-1,c>>=-V,V+=h;0<V;T=256*T+r[i+D],D+=F,V-=8);if(0===c)c=1-x;else{if(c===L)return T?NaN:1/0*(I?-1:1);T+=Math.pow(2,h),c-=x}return(I?-1:1)*T*Math.pow(2,c-h)},n.write=function(r,i,a,h,g,c){var T,A,L,x=8*c-g-1,V=(1<<x)-1,D=V>>1,F=23===g?Math.pow(2,-24)-Math.pow(2,-77):0,I=h?0:c-1,k=h?1:-1,R=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(A=isNaN(i)?1:0,T=V):(T=Math.floor(Math.log(i)/Math.LN2),i*(L=Math.pow(2,-T))<1&&(T--,L*=2),2<=(i+=1<=T+D?F/L:F*Math.pow(2,1-D))*L&&(T++,L/=2),V<=T+D?(A=0,T=V):1<=T+D?(A=(i*L-1)*Math.pow(2,g),T+=D):(A=i*Math.pow(2,D-1)*Math.pow(2,g),T=0));8<=g;r[a+I]=255&A,I+=k,A/=256,g-=8);for(T=T<<g|A,x+=g;0<x;r[a+I]=255&T,I+=k,T/=256,x-=8);r[a+I-k]|=128*R}}).call(this,W("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},W("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},99759:(Ue,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=function(){return function n(l){this.buffer=l}}()},30880:(Ue,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.FORMAT_BINARY="binary",W.FORMAT_TEXT_MAP="text_map",W.FORMAT_HTTP_HEADERS="http_headers",W.REFERENCE_CHILD_OF="child_of",W.REFERENCE_FOLLOWS_FROM="follows_from"},38880:(Ue,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.SPAN_KIND="span.kind",W.SPAN_KIND_RPC_CLIENT="client",W.SPAN_KIND_RPC_SERVER="server",W.SPAN_KIND_MESSAGING_PRODUCER="producer",W.SPAN_KIND_MESSAGING_CONSUMER="consumer",W.ERROR="error",W.COMPONENT="component",W.SAMPLING_PRIORITY="sampling.priority",W.PEER_SERVICE="peer.service",W.PEER_HOSTNAME="peer.hostname",W.PEER_ADDRESS="peer.address",W.PEER_HOST_IPV4="peer.ipv4",W.PEER_HOST_IPV6="peer.ipv6",W.PEER_PORT="peer.port",W.HTTP_URL="http.url",W.HTTP_METHOD="http.method",W.HTTP_STATUS_CODE="http.status_code",W.MESSAGE_BUS_DESTINATION="message_bus.destination",W.DB_INSTANCE="db.instance",W.DB_STATEMENT="db.statement",W.DB_TYPE="db.type",W.DB_USER="db.user"},42828:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var n=d(30880),l=d(81588),p=d(74901);W.childOf=function m(P){return P instanceof p.default&&(P=P.context()),new l.default(n.REFERENCE_CHILD_OF,P)},W.followsFrom=function _(P){return P instanceof p.default&&(P=P.context()),new l.default(n.REFERENCE_FOLLOWS_FROM,P)}},58712:function(Ue,W,d){"use strict";var n=this&&this.__extends||function(){var S=function(y,r){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var h in a)a.hasOwnProperty(h)&&(i[h]=a[h])})(y,r)};return function(y,r){function i(){this.constructor=y}S(y,r),y.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(W,"__esModule",{value:!0});var l=d(86572),p=new l.default,m=null,_=function(S){function y(){return null!==S&&S.apply(this,arguments)||this}return n(y,S),y.prototype.startSpan=function(){var r=m||p;return r.startSpan.apply(r,arguments)},y.prototype.inject=function(){var r=m||p;return r.inject.apply(r,arguments)},y.prototype.extract=function(){var r=m||p;return r.extract.apply(r,arguments)},y}(l.default),P=new _;W.initGlobalTracer=function v(S){m=S},W.globalTracer=function O(){return P}},26745:(Ue,W,d)=>{"use strict";function n(y){for(var r in y)W.hasOwnProperty(r)||(W[r]=y[r])}Object.defineProperty(W,"__esModule",{value:!0});var l=d(99759);W.BinaryCarrier=l.default;var p=d(38880);W.Tags=p;var m=d(8297),_=d(81588);W.Reference=_.default;var P=d(74901);W.Span=P.default;var v=d(39529);W.SpanContext=v.default;var O=d(86572);W.Tracer=O.Tracer;var S=d(72152);W.MockTracer=S.MockTracer,n(d(58712)),n(d(30880)),n(d(42828)),m.initialize()},72152:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var n=d(93764);W.MockContext=n.default;var l=d(38891);W.MockSpan=l.default;var p=d(62614);W.MockTracer=p.default},93764:function(Ue,W,d){"use strict";var n=this&&this.__extends||function(){var m=function(_,P){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,O){v.__proto__=O}||function(v,O){for(var S in O)O.hasOwnProperty(S)&&(v[S]=O[S])})(_,P)};return function(_,P){function v(){this.constructor=_}m(_,P),_.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)}}();Object.defineProperty(W,"__esModule",{value:!0});var p=function(m){function _(P){var v=m.call(this)||this;return v._span=P,v}return n(_,m),_.prototype.span=function(){return this._span},_}(d(39529).SpanContext);W.MockContext=p,W.default=p},41017:(Ue,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var d=function(){function n(l){var p=this;this.spans=l,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],l.forEach(function(m){0===m._finishMs&&p.unfinishedSpans.push(m),p.spansByUUID[m.uuid()]=m,p.debugSpans.push(m.debug());var _=m.tags();Object.keys(_).forEach(function(P){var v=_[P];p.spansByTag[P]=p.spansByTag[P]||{},p.spansByTag[P][v]=p.spansByTag[P][v]||[],p.spansByTag[P][v].push(m)})})}return n.prototype.firstSpanWithTagValue=function(l,p){var m=this.spansByTag[l];if(!m)return null;var _=m[p];return _?_[0]:null},n}();W.MockReport=d,W.default=d},38891:function(Ue,W,d){"use strict";var n=this&&this.__extends||function(){var _=function(P,v){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var y in S)S.hasOwnProperty(y)&&(O[y]=S[y])})(P,v)};return function(P,v){function O(){this.constructor=P}_(P,v),P.prototype=null===v?Object.create(v):(O.prototype=v.prototype,new O)}}();Object.defineProperty(W,"__esModule",{value:!0});var l=d(26745),p=d(93764),m=function(_){function P(v){var O=_.call(this)||this;return O._mockTracer=v,O._uuid=O._generateUUID(),O._startMs=Date.now(),O._finishMs=0,O._operationName="",O._tags={},O._logs=[],O}return n(P,_),P.prototype._context=function(){return new p.default(this)},P.prototype._setOperationName=function(v){this._operationName=v},P.prototype._addTags=function(v){for(var S=0,y=Object.keys(v);S<y.length;S++){var r=y[S];this._tags[r]=v[r]}},P.prototype._log=function(v,O){this._logs.push({fields:v,timestamp:O})},P.prototype._finish=function(v){this._finishMs=v||Date.now()},P.prototype.uuid=function(){return this._uuid},P.prototype.operationName=function(){return this._operationName},P.prototype.durationMs=function(){return this._finishMs-this._startMs},P.prototype.tags=function(){return this._tags},P.prototype.tracer=function(){return this._mockTracer},P.prototype._generateUUID=function(){return""+("00000000"+Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8)+("00000000"+Math.abs(4294967295*Math.random()|0).toString(16)).substr(-8)},P.prototype.addReference=function(v){},P.prototype.debug=function(){var v={uuid:this._uuid,operation:this._operationName,millis:[this._finishMs-this._startMs,this._startMs,this._finishMs]};return Object.keys(this._tags).length&&(v.tags=this._tags),v},P}(l.Span);W.MockSpan=m,W.default=m},62614:function(Ue,W,d){"use strict";var n=this&&this.__extends||function(){var P=function(v,O){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,y){S.__proto__=y}||function(S,y){for(var r in y)y.hasOwnProperty(r)&&(S[r]=y[r])})(v,O)};return function(v,O){function S(){this.constructor=v}P(v,O),v.prototype=null===O?Object.create(O):(S.prototype=O.prototype,new S)}}();Object.defineProperty(W,"__esModule",{value:!0});var l=d(26745),p=d(41017),m=d(38891),_=function(P){function v(){var O=P.call(this)||this;return O._spans=[],O}return n(v,P),v.prototype._startSpan=function(O,S){var y=this._allocSpan();if(y.setOperationName(O),this._spans.push(y),S.references)for(var r=0,i=S.references;r<i.length;r++)y.addReference(i[r]);return y._startStack=(new Error).stack,y},v.prototype._inject=function(O,S,y){throw new Error("NOT YET IMPLEMENTED")},v.prototype._extract=function(O,S){throw new Error("NOT YET IMPLEMENTED")},v.prototype._allocSpan=function(){return new m.default(this)},v.prototype.clear=function(){this._spans=[]},v.prototype.report=function(){return new p.default(this._spans)},v}(l.Tracer);W.MockTracer=_,W.default=_},8297:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var n=d(74901),l=d(39529),p=d(86572);W.tracer=null,W.spanContext=null,W.span=null,W.initialize=function m(){W.tracer=new p.default,W.span=new n.default,W.spanContext=new l.default}},81588:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var n=d(74901),l=function(){function p(m,_){this._type=m,this._referencedContext=_ instanceof n.default?_.context():_}return p.prototype.type=function(){return this._type},p.prototype.referencedContext=function(){return this._referencedContext},p}();W.default=l},74901:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var n=d(8297),l=function(){function p(){}return p.prototype.context=function(){return this._context()},p.prototype.tracer=function(){return this._tracer()},p.prototype.setOperationName=function(m){return this._setOperationName(m),this},p.prototype.setBaggageItem=function(m,_){return this._setBaggageItem(m,_),this},p.prototype.getBaggageItem=function(m){return this._getBaggageItem(m)},p.prototype.setTag=function(m,_){var P;return this._addTags(((P={})[m]=_,P)),this},p.prototype.addTags=function(m){return this._addTags(m),this},p.prototype.log=function(m,_){return this._log(m,_),this},p.prototype.logEvent=function(m,_){return this._log({event:m,payload:_})},p.prototype.finish=function(m){this._finish(m)},p.prototype._context=function(){return n.spanContext},p.prototype._tracer=function(){return n.tracer},p.prototype._setOperationName=function(m){},p.prototype._setBaggageItem=function(m,_){},p.prototype._getBaggageItem=function(m){},p.prototype._addTags=function(m){},p.prototype._log=function(m,_){},p.prototype._finish=function(m){},p}();W.Span=l,W.default=l},39529:(Ue,W)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var d=function(){function n(){}return n.prototype.toTraceId=function(){return""},n.prototype.toSpanId=function(){return""},n}();W.SpanContext=d,W.default=d},86572:(Ue,W,d)=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var n=d(42828),l=d(8297),p=d(74901),m=function(){function _(){}return _.prototype.startSpan=function(P,v){if(void 0===v&&(v={}),v.childOf){var O=n.childOf(v.childOf);v.references?v.references.push(O):v.references=[O],delete v.childOf}return this._startSpan(P,v)},_.prototype.inject=function(P,v,O){return P instanceof p.default&&(P=P.context()),this._inject(P,v,O)},_.prototype.extract=function(P,v){return this._extract(P,v)},_.prototype._startSpan=function(P,v){return l.span},_.prototype._inject=function(P,v,O){},_.prototype._extract=function(P,v){return l.spanContext},_}();W.Tracer=m,W.default=m},85667:(Ue,W,d)=>{const l=d(56281),p=d(92649),m=d(36967),_=d(66288);function P(v,O,S,y,r){const i=[].slice.call(arguments,1),a=i.length,h="function"==typeof i[a-1];if(!h&&!l())throw new Error("Callback required as last argument");if(!h){if(a<1)throw new Error("Too few arguments provided");return 1===a?(S=O,O=y=void 0):2===a&&!O.getContext&&(y=S,S=O,O=void 0),new Promise(function(g,c){try{const T=p.create(S,y);g(v(T,O,y))}catch(T){c(T)}})}if(a<2)throw new Error("Too few arguments provided");2===a?(r=S,S=O,O=y=void 0):3===a&&(O.getContext&&typeof r>"u"?(r=y,y=void 0):(r=y,y=S,S=O,O=void 0));try{const g=p.create(S,y);r(null,v(g,O,y))}catch(g){r(g)}}W.mo=P.bind(null,m.render),W.dY=P.bind(null,m.renderToDataURL),W.toString=P.bind(null,function(v,O,S){return _.render(v,S)})},56281:Ue=>{Ue.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},68817:(Ue,W,d)=>{const n=d(17610).getSymbolSize;W.getRowColCoords=function(p){if(1===p)return[];const m=Math.floor(p/7)+2,_=n(p),P=145===_?26:2*Math.ceil((_-13)/(2*m-2)),v=[_-7];for(let O=1;O<m-1;O++)v[O]=v[O-1]-P;return v.push(6),v.reverse()},W.getPositions=function(p){const m=[],_=W.getRowColCoords(p),P=_.length;for(let v=0;v<P;v++)for(let O=0;O<P;O++)0===v&&0===O||0===v&&O===P-1||v===P-1&&0===O||m.push([_[v],_[O]]);return m}},61925:(Ue,W,d)=>{const n=d(7092),l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function p(m){this.mode=n.ALPHANUMERIC,this.data=m}p.getBitsLength=function(_){return 11*Math.floor(_/2)+_%2*6},p.prototype.getLength=function(){return this.data.length},p.prototype.getBitsLength=function(){return p.getBitsLength(this.data.length)},p.prototype.write=function(_){let P;for(P=0;P+2<=this.data.length;P+=2){let v=45*l.indexOf(this.data[P]);v+=l.indexOf(this.data[P+1]),_.put(v,11)}this.data.length%2&&_.put(l.indexOf(this.data[P]),6)},Ue.exports=p},71535:Ue=>{function W(){this.buffer=[],this.length=0}W.prototype={get:function(d){const n=Math.floor(d/8);return 1==(this.buffer[n]>>>7-d%8&1)},put:function(d,n){for(let l=0;l<n;l++)this.putBit(1==(d>>>n-l-1&1))},getLengthInBits:function(){return this.length},putBit:function(d){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),d&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Ue.exports=W},37672:Ue=>{function W(d){if(!d||d<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=d,this.data=new Uint8Array(d*d),this.reservedBit=new Uint8Array(d*d)}W.prototype.set=function(d,n,l,p){const m=d*this.size+n;this.data[m]=l,p&&(this.reservedBit[m]=!0)},W.prototype.get=function(d,n){return this.data[d*this.size+n]},W.prototype.xor=function(d,n,l){this.data[d*this.size+n]^=l},W.prototype.isReserved=function(d,n){return this.reservedBit[d*this.size+n]},Ue.exports=W},19138:(Ue,W,d)=>{const n=d(30741),l=d(7092);function p(m){this.mode=l.BYTE,"string"==typeof m&&(m=n(m)),this.data=new Uint8Array(m)}p.getBitsLength=function(_){return 8*_},p.prototype.getLength=function(){return this.data.length},p.prototype.getBitsLength=function(){return p.getBitsLength(this.data.length)},p.prototype.write=function(m){for(let _=0,P=this.data.length;_<P;_++)m.put(this.data[_],8)},Ue.exports=p},16554:(Ue,W,d)=>{const n=d(89605),l=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],p=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];W.getBlocksCount=function(_,P){switch(P){case n.L:return l[4*(_-1)+0];case n.M:return l[4*(_-1)+1];case n.Q:return l[4*(_-1)+2];case n.H:return l[4*(_-1)+3];default:return}},W.getTotalCodewordsCount=function(_,P){switch(P){case n.L:return p[4*(_-1)+0];case n.M:return p[4*(_-1)+1];case n.Q:return p[4*(_-1)+2];case n.H:return p[4*(_-1)+3];default:return}}},89605:(Ue,W)=>{W.L={bit:1},W.M={bit:0},W.Q={bit:3},W.H={bit:2},W.isValid=function(l){return l&&typeof l.bit<"u"&&l.bit>=0&&l.bit<4},W.from=function(l,p){if(W.isValid(l))return l;try{return function d(n){if("string"!=typeof n)throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return W.L;case"m":case"medium":return W.M;case"q":case"quartile":return W.Q;case"h":case"high":return W.H;default:throw new Error("Unknown EC Level: "+n)}}(l)}catch{return p}}},30008:(Ue,W,d)=>{const n=d(17610).getSymbolSize;W.getPositions=function(m){const _=n(m);return[[0,0],[_-7,0],[0,_-7]]}},44321:(Ue,W,d)=>{const n=d(17610),m=n.getBCHDigit(1335);W.getEncodedBits=function(P,v){const O=P.bit<<3|v;let S=O<<10;for(;n.getBCHDigit(S)-m>=0;)S^=1335<<n.getBCHDigit(S)-m;return 21522^(O<<10|S)}},5199:(Ue,W)=>{const d=new Uint8Array(512),n=new Uint8Array(256);(function(){let p=1;for(let m=0;m<255;m++)d[m]=p,n[p]=m,p<<=1,256&p&&(p^=285);for(let m=255;m<512;m++)d[m]=d[m-255]})(),W.log=function(p){if(p<1)throw new Error("log("+p+")");return n[p]},W.exp=function(p){return d[p]},W.mul=function(p,m){return 0===p||0===m?0:d[n[p]+n[m]]}},8897:(Ue,W,d)=>{const n=d(7092),l=d(17610);function p(m){this.mode=n.KANJI,this.data=m}p.getBitsLength=function(_){return 13*_},p.prototype.getLength=function(){return this.data.length},p.prototype.getBitsLength=function(){return p.getBitsLength(this.data.length)},p.prototype.write=function(m){let _;for(_=0;_<this.data.length;_++){let P=l.toSJIS(this.data[_]);if(P>=33088&&P<=40956)P-=33088;else{if(!(P>=57408&&P<=60351))throw new Error("Invalid SJIS character: "+this.data[_]+"\nMake sure your charset is UTF-8");P-=49472}P=192*(P>>>8&255)+(255&P),m.put(P,13)}},Ue.exports=p},43800:(Ue,W)=>{W.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(l,p,m){switch(l){case W.Patterns.PATTERN000:return(p+m)%2==0;case W.Patterns.PATTERN001:return p%2==0;case W.Patterns.PATTERN010:return m%3==0;case W.Patterns.PATTERN011:return(p+m)%3==0;case W.Patterns.PATTERN100:return(Math.floor(p/2)+Math.floor(m/3))%2==0;case W.Patterns.PATTERN101:return p*m%2+p*m%3==0;case W.Patterns.PATTERN110:return(p*m%2+p*m%3)%2==0;case W.Patterns.PATTERN111:return(p*m%3+(p+m)%2)%2==0;default:throw new Error("bad maskPattern:"+l)}}W.isValid=function(p){return null!=p&&""!==p&&!isNaN(p)&&p>=0&&p<=7},W.from=function(p){return W.isValid(p)?parseInt(p,10):void 0},W.getPenaltyN1=function(p){const m=p.size;let _=0,P=0,v=0,O=null,S=null;for(let y=0;y<m;y++){P=v=0,O=S=null;for(let r=0;r<m;r++){let i=p.get(y,r);i===O?P++:(P>=5&&(_+=P-5+3),O=i,P=1),i=p.get(r,y),i===S?v++:(v>=5&&(_+=v-5+3),S=i,v=1)}P>=5&&(_+=P-5+3),v>=5&&(_+=v-5+3)}return _},W.getPenaltyN2=function(p){const m=p.size;let _=0;for(let P=0;P<m-1;P++)for(let v=0;v<m-1;v++){const O=p.get(P,v)+p.get(P,v+1)+p.get(P+1,v)+p.get(P+1,v+1);(4===O||0===O)&&_++}return 3*_},W.getPenaltyN3=function(p){const m=p.size;let _=0,P=0,v=0;for(let O=0;O<m;O++){P=v=0;for(let S=0;S<m;S++)P=P<<1&2047|p.get(O,S),S>=10&&(1488===P||93===P)&&_++,v=v<<1&2047|p.get(S,O),S>=10&&(1488===v||93===v)&&_++}return 40*_},W.getPenaltyN4=function(p){let m=0;const _=p.data.length;for(let v=0;v<_;v++)m+=p.data[v];return 10*Math.abs(Math.ceil(100*m/_/5)-10)},W.applyMask=function(p,m){const _=m.size;for(let P=0;P<_;P++)for(let v=0;v<_;v++)m.isReserved(v,P)||m.xor(v,P,n(p,v,P))},W.getBestMask=function(p,m){const _=Object.keys(W.Patterns).length;let P=0,v=1/0;for(let O=0;O<_;O++){m(O),W.applyMask(O,p);const S=W.getPenaltyN1(p)+W.getPenaltyN2(p)+W.getPenaltyN3(p)+W.getPenaltyN4(p);W.applyMask(O,p),S<v&&(v=S,P=O)}return P}},7092:(Ue,W,d)=>{const n=d(74242),l=d(94568);W.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},W.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},W.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},W.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},W.MIXED={bit:-1},W.getCharCountIndicator=function(_,P){if(!_.ccBits)throw new Error("Invalid mode: "+_);if(!n.isValid(P))throw new Error("Invalid version: "+P);return P>=1&&P<10?_.ccBits[0]:P<27?_.ccBits[1]:_.ccBits[2]},W.getBestModeForData=function(_){return l.testNumeric(_)?W.NUMERIC:l.testAlphanumeric(_)?W.ALPHANUMERIC:l.testKanji(_)?W.KANJI:W.BYTE},W.toString=function(_){if(_&&_.id)return _.id;throw new Error("Invalid mode")},W.isValid=function(_){return _&&_.bit&&_.ccBits},W.from=function(_,P){if(W.isValid(_))return _;try{return function p(m){if("string"!=typeof m)throw new Error("Param is not a string");switch(m.toLowerCase()){case"numeric":return W.NUMERIC;case"alphanumeric":return W.ALPHANUMERIC;case"kanji":return W.KANJI;case"byte":return W.BYTE;default:throw new Error("Unknown mode: "+m)}}(_)}catch{return P}}},69569:(Ue,W,d)=>{const n=d(7092);function l(p){this.mode=n.NUMERIC,this.data=p.toString()}l.getBitsLength=function(m){return 10*Math.floor(m/3)+(m%3?m%3*3+1:0)},l.prototype.getLength=function(){return this.data.length},l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)},l.prototype.write=function(m){let _,P,v;for(_=0;_+3<=this.data.length;_+=3)P=this.data.substr(_,3),v=parseInt(P,10),m.put(v,10);const O=this.data.length-_;O>0&&(P=this.data.substr(_),v=parseInt(P,10),m.put(v,3*O+1))},Ue.exports=l},84333:(Ue,W,d)=>{const n=d(5199);W.mul=function(p,m){const _=new Uint8Array(p.length+m.length-1);for(let P=0;P<p.length;P++)for(let v=0;v<m.length;v++)_[P+v]^=n.mul(p[P],m[v]);return _},W.mod=function(p,m){let _=new Uint8Array(p);for(;_.length-m.length>=0;){const P=_[0];for(let O=0;O<m.length;O++)_[O]^=n.mul(m[O],P);let v=0;for(;v<_.length&&0===_[v];)v++;_=_.slice(v)}return _},W.generateECPolynomial=function(p){let m=new Uint8Array([1]);for(let _=0;_<p;_++)m=W.mul(m,new Uint8Array([1,n.exp(_)]));return m}},92649:(Ue,W,d)=>{const n=d(17610),l=d(89605),p=d(71535),m=d(37672),_=d(68817),P=d(30008),v=d(43800),O=d(16554),S=d(85968),y=d(11167),r=d(44321),i=d(7092),a=d(42765);function A(F,I,k){const R=F.size,G=r.getEncodedBits(I,k);let Y,K;for(Y=0;Y<15;Y++)K=1==(G>>Y&1),F.set(Y<6?Y:Y<8?Y+1:R-15+Y,8,K,!0),F.set(8,Y<8?R-Y-1:Y<9?15-Y-1+1:15-Y-1,K,!0);F.set(R-8,8,1,!0)}function D(F,I,k,R){let G;if(Array.isArray(F))G=a.fromArray(F);else{if("string"!=typeof F)throw new Error("Invalid data");{let J=I;if(!J){const z=a.rawSplit(F);J=y.getBestVersionForData(z,k)}G=a.fromString(F,J||40)}}const Y=y.getBestVersionForData(G,k);if(!Y)throw new Error("The amount of data is too big to be stored in a QR Code");if(I){if(I<Y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+Y+".\n")}else I=Y;const K=function x(F,I,k){const R=new p;k.forEach(function(ee){R.put(ee.mode.bit,4),R.put(ee.getLength(),i.getCharCountIndicator(ee.mode,F)),ee.write(R)});const K=8*(n.getSymbolTotalCodewords(F)-O.getTotalCodewordsCount(F,I));for(R.getLengthInBits()+4<=K&&R.put(0,4);R.getLengthInBits()%8!=0;)R.putBit(0);const $=(K-R.getLengthInBits())/8;for(let ee=0;ee<$;ee++)R.put(ee%2?17:236,8);return function V(F,I,k){const R=n.getSymbolTotalCodewords(I),Y=R-O.getTotalCodewordsCount(I,k),K=O.getBlocksCount(I,k),ee=K-R%K,J=Math.floor(R/K),z=Math.floor(Y/K),te=z+1,X=J-z,re=new S(X);let ge=0;const oe=new Array(K),xe=new Array(K);let ue=0;const N=new Uint8Array(F.buffer);for(let ae=0;ae<K;ae++){const pe=ae<ee?z:te;oe[ae]=N.slice(ge,ge+pe),xe[ae]=re.encode(oe[ae]),ge+=pe,ue=Math.max(ue,pe)}const se=new Uint8Array(R);let Z,de,ce=0;for(Z=0;Z<ue;Z++)for(de=0;de<K;de++)Z<oe[de].length&&(se[ce++]=oe[de][Z]);for(Z=0;Z<X;Z++)for(de=0;de<K;de++)se[ce++]=xe[de][Z];return se}(R,F,I)}(I,k,G),$=n.getSymbolSize(I),ee=new m($);return function h(F,I){const k=F.size,R=P.getPositions(I);for(let G=0;G<R.length;G++){const Y=R[G][0],K=R[G][1];for(let $=-1;$<=7;$++)if(!(Y+$<=-1||k<=Y+$))for(let ee=-1;ee<=7;ee++)K+ee<=-1||k<=K+ee||F.set(Y+$,K+ee,$>=0&&$<=6&&(0===ee||6===ee)||ee>=0&&ee<=6&&(0===$||6===$)||$>=2&&$<=4&&ee>=2&&ee<=4,!0)}}(ee,I),function g(F){const I=F.size;for(let k=8;k<I-8;k++){const R=k%2==0;F.set(k,6,R,!0),F.set(6,k,R,!0)}}(ee),function c(F,I){const k=_.getPositions(I);for(let R=0;R<k.length;R++){const G=k[R][0],Y=k[R][1];for(let K=-2;K<=2;K++)for(let $=-2;$<=2;$++)F.set(G+K,Y+$,-2===K||2===K||-2===$||2===$||0===K&&0===$,!0)}}(ee,I),A(ee,k,0),I>=7&&function T(F,I){const k=F.size,R=y.getEncodedBits(I);let G,Y,K;for(let $=0;$<18;$++)G=Math.floor($/3),Y=$%3+k-8-3,K=1==(R>>$&1),F.set(G,Y,K,!0),F.set(Y,G,K,!0)}(ee,I),function L(F,I){const k=F.size;let R=-1,G=k-1,Y=7,K=0;for(let $=k-1;$>0;$-=2)for(6===$&&$--;;){for(let ee=0;ee<2;ee++)if(!F.isReserved(G,$-ee)){let J=!1;K<I.length&&(J=1==(I[K]>>>Y&1)),F.set(G,$-ee,J),Y--,-1===Y&&(K++,Y=7)}if(G+=R,G<0||k<=G){G-=R,R=-R;break}}}(ee,K),isNaN(R)&&(R=v.getBestMask(ee,A.bind(null,ee,k))),v.applyMask(R,ee),A(ee,k,R),{modules:ee,version:I,errorCorrectionLevel:k,maskPattern:R,segments:G}}W.create=function(I,k){if(typeof I>"u"||""===I)throw new Error("No input text");let G,Y,R=l.M;return typeof k<"u"&&(R=l.from(k.errorCorrectionLevel,l.M),G=y.from(k.version),Y=v.from(k.maskPattern),k.toSJISFunc&&n.setToSJISFunction(k.toSJISFunc)),D(I,G,R,Y)}},85968:(Ue,W,d)=>{const n=d(84333);function l(p){this.genPoly=void 0,this.degree=p,this.degree&&this.initialize(this.degree)}l.prototype.initialize=function(m){this.degree=m,this.genPoly=n.generateECPolynomial(this.degree)},l.prototype.encode=function(m){if(!this.genPoly)throw new Error("Encoder not initialized");const _=new Uint8Array(m.length+this.degree);_.set(m);const P=n.mod(_,this.genPoly),v=this.degree-P.length;if(v>0){const O=new Uint8Array(this.degree);return O.set(P,v),O}return P},Ue.exports=l},94568:(Ue,W)=>{const d="[0-9]+";let l="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";l=l.replace(/u/g,"\\u");const p="(?:(?![A-Z0-9 $%*+\\-./:]|"+l+")(?:.|[\r\n]))+";W.KANJI=new RegExp(l,"g"),W.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),W.BYTE=new RegExp(p,"g"),W.NUMERIC=new RegExp(d,"g"),W.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const m=new RegExp("^"+l+"$"),_=new RegExp("^"+d+"$"),P=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");W.testKanji=function(O){return m.test(O)},W.testNumeric=function(O){return _.test(O)},W.testAlphanumeric=function(O){return P.test(O)}},42765:(Ue,W,d)=>{const n=d(7092),l=d(69569),p=d(61925),m=d(19138),_=d(8897),P=d(94568),v=d(17610),O=d(19884);function S(T){return unescape(encodeURIComponent(T)).length}function y(T,A,L){const x=[];let V;for(;null!==(V=T.exec(L));)x.push({data:V[0],index:V.index,mode:A,length:V[0].length});return x}function r(T){const A=y(P.NUMERIC,n.NUMERIC,T),L=y(P.ALPHANUMERIC,n.ALPHANUMERIC,T);let x,V;return v.isKanjiModeEnabled()?(x=y(P.BYTE,n.BYTE,T),V=y(P.KANJI,n.KANJI,T)):(x=y(P.BYTE_KANJI,n.BYTE,T),V=[]),A.concat(L,x,V).sort(function(F,I){return F.index-I.index}).map(function(F){return{data:F.data,mode:F.mode,length:F.length}})}function i(T,A){switch(A){case n.NUMERIC:return l.getBitsLength(T);case n.ALPHANUMERIC:return p.getBitsLength(T);case n.KANJI:return _.getBitsLength(T);case n.BYTE:return m.getBitsLength(T)}}function c(T,A){let L;const x=n.getBestModeForData(T);if(L=n.from(A,x),L!==n.BYTE&&L.bit<x.bit)throw new Error('"'+T+'" cannot be encoded with mode '+n.toString(L)+".\n Suggested mode is: "+n.toString(x));switch(L===n.KANJI&&!v.isKanjiModeEnabled()&&(L=n.BYTE),L){case n.NUMERIC:return new l(T);case n.ALPHANUMERIC:return new p(T);case n.KANJI:return new _(T);case n.BYTE:return new m(T)}}W.fromArray=function(A){return A.reduce(function(L,x){return"string"==typeof x?L.push(c(x,null)):x.data&&L.push(c(x.data,x.mode)),L},[])},W.fromString=function(A,L){const V=function h(T){const A=[];for(let L=0;L<T.length;L++){const x=T[L];switch(x.mode){case n.NUMERIC:A.push([x,{data:x.data,mode:n.ALPHANUMERIC,length:x.length},{data:x.data,mode:n.BYTE,length:x.length}]);break;case n.ALPHANUMERIC:A.push([x,{data:x.data,mode:n.BYTE,length:x.length}]);break;case n.KANJI:A.push([x,{data:x.data,mode:n.BYTE,length:S(x.data)}]);break;case n.BYTE:A.push([{data:x.data,mode:n.BYTE,length:S(x.data)}])}}return A}(r(A,v.isKanjiModeEnabled())),D=function g(T,A){const L={},x={start:{}};let V=["start"];for(let D=0;D<T.length;D++){const F=T[D],I=[];for(let k=0;k<F.length;k++){const R=F[k],G=""+D+k;I.push(G),L[G]={node:R,lastCount:0},x[G]={};for(let Y=0;Y<V.length;Y++){const K=V[Y];L[K]&&L[K].node.mode===R.mode?(x[K][G]=i(L[K].lastCount+R.length,R.mode)-i(L[K].lastCount,R.mode),L[K].lastCount+=R.length):(L[K]&&(L[K].lastCount=R.length),x[K][G]=i(R.length,R.mode)+4+n.getCharCountIndicator(R.mode,A))}}V=I}for(let D=0;D<V.length;D++)x[V[D]].end=0;return{map:x,table:L}}(V,L),F=O.find_path(D.map,"start","end"),I=[];for(let k=1;k<F.length-1;k++)I.push(D.table[F[k]].node);return W.fromArray(function a(T){return T.reduce(function(A,L){const x=A.length-1>=0?A[A.length-1]:null;return x&&x.mode===L.mode?(A[A.length-1].data+=L.data,A):(A.push(L),A)},[])}(I))},W.rawSplit=function(A){return W.fromArray(r(A,v.isKanjiModeEnabled()))}},17610:(Ue,W)=>{let d;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];W.getSymbolSize=function(p){if(!p)throw new Error('"version" cannot be null or undefined');if(p<1||p>40)throw new Error('"version" should be in range from 1 to 40');return 4*p+17},W.getSymbolTotalCodewords=function(p){return n[p]},W.getBCHDigit=function(l){let p=0;for(;0!==l;)p++,l>>>=1;return p},W.setToSJISFunction=function(p){if("function"!=typeof p)throw new Error('"toSJISFunc" is not a valid function.');d=p},W.isKanjiModeEnabled=function(){return typeof d<"u"},W.toSJIS=function(p){return d(p)}},74242:(Ue,W)=>{W.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}},11167:(Ue,W,d)=>{const n=d(17610),l=d(16554),p=d(89605),m=d(7092),_=d(74242),v=n.getBCHDigit(7973);function S(i,a){return m.getCharCountIndicator(i,a)+4}function y(i,a){let h=0;return i.forEach(function(g){const c=S(g.mode,a);h+=c+g.getBitsLength()}),h}W.from=function(a,h){return _.isValid(a)?parseInt(a,10):h},W.getCapacity=function(a,h,g){if(!_.isValid(a))throw new Error("Invalid QR Code version");typeof g>"u"&&(g=m.BYTE);const A=8*(n.getSymbolTotalCodewords(a)-l.getTotalCodewordsCount(a,h));if(g===m.MIXED)return A;const L=A-S(g,a);switch(g){case m.NUMERIC:return Math.floor(L/10*3);case m.ALPHANUMERIC:return Math.floor(L/11*2);case m.KANJI:return Math.floor(L/13);default:return Math.floor(L/8)}},W.getBestVersionForData=function(a,h){let g;const c=p.from(h,p.M);if(Array.isArray(a)){if(a.length>1)return function r(i,a){for(let h=1;h<=40;h++)if(y(i,h)<=W.getCapacity(h,a,m.MIXED))return h}(a,c);if(0===a.length)return 1;g=a[0]}else g=a;return function O(i,a,h){for(let g=1;g<=40;g++)if(a<=W.getCapacity(g,h,i))return g}(g.mode,g.getLength(),c)},W.getEncodedBits=function(a){if(!_.isValid(a)||a<7)throw new Error("Invalid QR Code version");let h=a<<12;for(;n.getBCHDigit(h)-v>=0;)h^=7973<<n.getBCHDigit(h)-v;return a<<12|h}},36967:(Ue,W,d)=>{const n=d(41618);W.render=function(_,P,v){let O=v,S=P;typeof O>"u"&&(!P||!P.getContext)&&(O=P,P=void 0),P||(S=function p(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),O=n.getOptions(O);const y=n.getImageWidth(_.modules.size,O),r=S.getContext("2d"),i=r.createImageData(y,y);return n.qrToImageData(i.data,_,O),function l(m,_,P){m.clearRect(0,0,_.width,_.height),_.style||(_.style={}),_.height=P,_.width=P,_.style.height=P+"px",_.style.width=P+"px"}(r,S,y),r.putImageData(i,0,0),S},W.renderToDataURL=function(_,P,v){let O=v;return typeof O>"u"&&(!P||!P.getContext)&&(O=P,P=void 0),O||(O={}),W.render(_,P,O).toDataURL(O.type||"image/png",(O.rendererOpts||{}).quality)}},66288:(Ue,W,d)=>{const n=d(41618);function l(_,P){const v=_.a/255,O=P+'="'+_.hex+'"';return v<1?O+" "+P+'-opacity="'+v.toFixed(2).slice(1)+'"':O}function p(_,P,v){let O=_+P;return typeof v<"u"&&(O+=" "+v),O}W.render=function(P,v,O){const S=n.getOptions(v),y=P.modules.size,r=P.modules.data,i=y+2*S.margin,a=S.color.light.a?"<path "+l(S.color.light,"fill")+' d="M0 0h'+i+"v"+i+'H0z"/>':"",h="<path "+l(S.color.dark,"stroke")+' d="'+function m(_,P,v){let O="",S=0,y=!1,r=0;for(let i=0;i<_.length;i++){const a=Math.floor(i%P),h=Math.floor(i/P);!a&&!y&&(y=!0),_[i]?(r++,i>0&&a>0&&_[i-1]||(O+=y?p("M",a+v,.5+h+v):p("m",S,0),S=0,y=!1),a+1<P&&_[i+1]||(O+=p("h",r),r=0)):S++}return O}(r,y,S.margin)+'"/>',T='<svg xmlns="http://www.w3.org/2000/svg" '+(S.width?'width="'+S.width+'" height="'+S.width+'" ':"")+'viewBox="0 0 '+i+" "+i+'" shape-rendering="crispEdges">'+a+h+"</svg>\n";return"function"==typeof O&&O(null,T),T}},41618:(Ue,W)=>{function d(n){if("number"==typeof n&&(n=n.toString()),"string"!=typeof n)throw new Error("Color should be defined as hex string");let l=n.slice().replace("#","").split("");if(l.length<3||5===l.length||l.length>8)throw new Error("Invalid hex color: "+n);(3===l.length||4===l.length)&&(l=Array.prototype.concat.apply([],l.map(function(m){return[m,m]}))),6===l.length&&l.push("F","F");const p=parseInt(l.join(""),16);return{r:p>>24&255,g:p>>16&255,b:p>>8&255,a:255&p,hex:"#"+l.slice(0,6).join("")}}W.getOptions=function(l){l||(l={}),l.color||(l.color={});const m=l.width&&l.width>=21?l.width:void 0;return{width:m,scale:m?4:l.scale||4,margin:typeof l.margin>"u"||null===l.margin||l.margin<0?4:l.margin,color:{dark:d(l.color.dark||"#000000ff"),light:d(l.color.light||"#ffffffff")},type:l.type,rendererOpts:l.rendererOpts||{}}},W.getScale=function(l,p){return p.width&&p.width>=l+2*p.margin?p.width/(l+2*p.margin):p.scale},W.getImageWidth=function(l,p){const m=W.getScale(l,p);return Math.floor((l+2*p.margin)*m)},W.qrToImageData=function(l,p,m){const _=p.modules.size,P=p.modules.data,v=W.getScale(_,m),O=Math.floor((_+2*m.margin)*v),S=m.margin*v,y=[m.color.light,m.color.dark];for(let r=0;r<O;r++)for(let i=0;i<O;i++){let a=4*(r*O+i),h=m.color.light;r>=S&&i>=S&&r<O-S&&i<O-S&&(h=y[P[Math.floor((r-S)/v)*_+Math.floor((i-S)/v)]?1:0]),l[a++]=h.r,l[a++]=h.g,l[a++]=h.b,l[a]=h.a}}},21531:function(Ue){Ue.exports=function(W){function d(l){if(n[l])return n[l].exports;var p=n[l]={i:l,l:!1,exports:{}};return W[l].call(p.exports,p,p.exports,d),p.l=!0,p.exports}var n={};return d.m=W,d.c=n,d.i=function(l){return l},d.d=function(l,p,m){d.o(l,p)||Object.defineProperty(l,p,{configurable:!1,enumerable:!0,get:m})},d.n=function(l){var p=l&&l.__esModule?function(){return l.default}:function(){return l};return d.d(p,"a",p),p},d.o=function(l,p){return Object.prototype.hasOwnProperty.call(l,p)},d.p="",d(d.s=214)}([function(W,d,n){"use strict";d.__esModule=!0,d.default=function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}},function(W,d,n){"use strict";d.__esModule=!0;var m,p=(m=n(96))&&m.__esModule?m:{default:m};d.default=function(){function m(_,P){for(var v=0;v<P.length;v++){var O=P[v];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),(0,p.default)(_,O.key,O)}}return function(_,P,v){return P&&m(_.prototype,P),v&&m(_,v),_}}()},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.fatal=d.error=d.warn=d.debug=d.info=d.trace=d.getRecordedLogs=d.getLogger=d.establishLogger=d.LEVELS=void 0;var l=n(100),p=n(123),m=void 0,_=void 0,v=function(S){return function(y,r){m[S](function(S){return function(y){return"("+S+") "+y}}(y)(r))}},O=d.LEVELS={TRACE:"trace",INFO:"info",DEBUG:"debug",WARN:"warn",ERROR:"error",FATAL:"fatal"};d.establishLogger=function(S){var y=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=[];if(i.push({level:S,stream:new p.RawStream,type:"raw"}),r){var a=r.map(function(h){h.level=S});i=i.concat(a)}y&&(_=[],i.push({level:S,stream:{write:function(h){var g="["+h.time.toISOString()+"] "+l.nameFromLevel[h.level]+": "+h.msg;_.push(g)}}})),m=(0,l.createLogger)({level:S,name:"red5pro-sdk",streams:i})},d.getLogger=function(){return m},d.getRecordedLogs=function(){return _},d.trace=v(O.TRACE),d.info=v(O.INFO),d.debug=v(O.DEBUG),d.warn=v(O.WARN),d.error=v(O.ERROR),d.fatal=v(O.FATAL)},function(W,d,n){W.exports={default:n(163),__esModule:!0}},function(W,d){var n=W.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(W,d,n){"use strict";function l(S){return S&&S.__esModule?S:{default:S}}d.__esModule=!0;var m=l(n(146)),P=l(n(144)),O=l(n(63));d.default=function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+(void 0===y?"undefined":(0,O.default)(y)));S.prototype=(0,P.default)(y&&y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),y&&(m.default?(0,m.default)(S,y):S.__proto__=y)}},function(W,d,n){"use strict";d.__esModule=!0;var m,p=(m=n(63))&&m.__esModule?m:{default:m};d.default=function(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!==(void 0===_?"undefined":(0,p.default)(_))&&"function"!=typeof _?m:_}},function(W,d,n){"use strict";function p(I){var k=screen.orientation?screen.orientation.angle:void 0,R=void 0===k?window.matchMedia("(orientation: portrait)").matches?0:90:k,G=void 0,Y=h.length;for((0,y.debug)("[window:onorientationchange]","orientation("+R+")."),G=0;G<Y;G++)h[G]((R+90)%360)}function m(I){var k=void 0,R=g.length;for(k=0;k<R;k++)g[k]();c=!0}Object.defineProperty(d,"__esModule",{value:!0});var I,P=(I=n(63))&&I.__esModule?I:{default:I},v=n(8),O=n(118),S=n(117),y=n(2),r=[],i=[],a=!1,h=[],g=[],c=!1,A=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(k){return window.setTimeout(k,1e3)},L=window.adapter,x=!!navigator.mozGetUserMedia,V=!!document.documentMode,D=L?"edge"===window.adapter.browserDetails.browser.toLowerCase():!V&&!!window.StyleMedia,F="ontouchstart"in window||window.DocumentTouch&&window.document instanceof window.DocumentTouch;L||(navigator.getUserMedia=navigator.mediaDevices&&navigator.mediaDevices.getUserMedia||navigator.getUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia),d.default={requestFrame:A,getIsMoz:function(){return x},getIsEdge:function(){return D},isTouchEnabled:function(){return F},supportsWebSocket:function(){return!!window.WebSocket},supportsHLS:function(){var I=document.createElement("video");return I.canPlayType("application/vnd.apple.mpegURL").length>0||I.canPlayType("application/x-mpegURL").length>0||I.canPlayType("audio/mpegurl").length>0||I.canPlayType("audio/x-mpegurl").length>0},supportsFlashVersion:function(I){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return function(){var I="0,0,0";try{I=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch{try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(I=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch{}}return I.split(",")}()[0]>=I.split(k)[0]},resolveElement:function(I){try{var k=document.getElementById(I);if(!k)throw new O.NoElementFoundError("Element with id("+I+") could not be found.");return k}catch(R){throw new O.NoElementFoundError("Error in accessing element with id("+I+"). "+R.message)}},createWebSocket:function(I){return new WebSocket(I)},setVideoSource:function(I,k){var R=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{I.srcObject=k}catch(Y){(0,y.warn)("[setVideoSource:obj]","Could not set srcObject: "+Y.message),x?I.mozSrcObject=k:I.src=window.URL.createObjectURL(k)}if(R)try{var G=I.play();G&&G.then(function(){return(0,y.debug)("[setVideoSource:action]","play (START)")}).catch(function(Y){return(0,y.warn)("[setVideoSource:action]","play (FAULT) "+(Y.message?Y.message:Y))})}catch(Y){(0,y.warn)("[setVideoSource:action]","play (CATCH::FAULT) "+Y.message);try{I.setAttribute("autoplay",!1),I.pause()}catch(K){(0,y.warn)("[setVideoSource:action]","pause (CATCH::FAULT) "+K.message)}}else try{I.setAttribute("autoplay",!1),I.pause()}catch{}},injectScript:function(I){var k=new v.DeferredPromise,R=document.createElement("script");return R.type="text/javascript",R.onload=function(){k.resolve()},R.onreadystatechange=function(){"loaded"!==R.readyState&&"complete"!==R.readyState||(R.onreadystatechange=null,k.resolve())},R.src=I,document.getElementsByTagName("head")[0].appendChild(R),k.promise},gUM:function(I){return(navigator.mediaDevices||navigator).getUserMedia(I)},setGlobal:function(I,k){window[I]=k},getSwfObject:function(){return window.swfobject},getEmbedObject:function(I){return document.getElementById(I)},getElementId:function(I){return I.getAttribute("id")},addOrientationChangeHandler:function(I){var k=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"onorientationchange"in window&&((0,y.debug)("[window:orientation]","[addOrientationChangeHandler]","adding responder."),h.push(I),k&&p()),1===h.length&&((0,y.debug)("[window:orientation]","[addOrientationChangeHandler]","onorientationchange added."),window.addEventListener("orientationchange",p))},removeOrientationChangeHandler:function(I){for(var k=h.length;--k>-1;)if(h[k]===I){h.slice(k,1);break}0===h.length&&((0,y.debug)("[window:orientation]","[removeOrientationChangeHandler]:: onorientationchange removed."),window.removeEventListener("onorientationchange",p))},addCloseHandler:function(I){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;g.splice(-1===k?g.length:k,0,I),c||window.addEventListener("unload",m)},removeCloseHandler:function(I){for(var k=g.length;--k>-1;)if(g[k]===I){g.slice(k,1);break}},invoke:function(I,k){window.hasOwnProperty(I)&&window[I].call(window,k)},toggleFullScreen:function(I){window.screenfull&&window.screenfull.enabled&&window.screenfull.toggle(I)},onFullScreenStateChange:function(I){i.push(I),function l(){!a&&window.screenfull&&window.screenfull.enabled&&(a=!0,window.screenfull.onchange(function(){var I=void 0,k=i.length;for(I=0;I<k;I++)i[I](window.screenfull.isFullscreen)}))}(window)},onOrientationMetadata:S.onOrientationMetadata,onStreamingModeMetadata:S.onStreamingModeMetadata,hasAttributeDefined:function(I,k){var R=I.getAttribute(k);return null!==R&&void 0!==(void 0===R?"undefined":(0,P.default)(R))&&"string"==typeof R&&(""===R||"true"===R||R===k)},hasClassDefined:function(I,k){return I.classList.contains(k)},createElement:function(I,k){return"text"===I?document.createTextNode(k.toString()):document.createElement(I,k)},addSubscriptionAssignmentHandler:function(I){r.push(I),void 0===window.setSubscriberId&&(window.setSubscriberId=function(k){r.shift()(k)})},getMouseXFromEvent:function(I){return I||(I=window.event),I.pageX?I.pageX:I.clientX?I.clientX+document.body.scrollLeft+document.documentElement.scrollLeft:0},getScrollX:function(){return void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft},createEvent:function(I){return document.createEvent(I)},getGlobal:function(){return window}}},function(W,d,n){"use strict";function l(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(d,"__esModule",{value:!0}),d.Future=d.DeferredPromise=void 0;var m=l(n(62)),P=l(n(0)),v=function S(){var y=this;(0,P.default)(this,S),this.resolve=void 0,this.reject=void 0,this.promise=new m.default(function(r,i){y.resolve=r,y.reject=i})},O={createIfNotExist:function(S){var y=S;return y||(y=new v),y}};d.DeferredPromise=v,d.Future=O},function(W,d,n){var l=n(75)("wks"),p=n(57),m=n(12).Symbol,_="function"==typeof m;(W.exports=function(P){return l[P]||(l[P]=_&&m[P]||(_?m:p)("Symbol."+P))}).store=l},function(W,d,n){W.exports={default:n(154),__esModule:!0}},function(W,d,n){var l=n(12),p=n(4),m=n(20),_=n(22),P=function(v,O,S){var y,r,i,a=v&P.F,h=v&P.G,g=v&P.S,c=v&P.P,T=v&P.B,A=v&P.W,L=h?p:p[O]||(p[O]={}),x=L.prototype,V=h?l:g?l[O]:(l[O]||{}).prototype;for(y in h&&(S=O),S)(r=!a&&V&&void 0!==V[y])&&y in L||(i=r?V[y]:S[y],L[y]=h&&"function"!=typeof V[y]?S[y]:T&&r?m(i,l):A&&V[y]==i?function(D){var F=function(I,k,R){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(I);case 2:return new D(I,k)}return new D(I,k,R)}return D.apply(this,arguments)};return F.prototype=D.prototype,F}(i):c&&"function"==typeof i?m(Function.call,i):i,c&&((L.virtual||(L.virtual={}))[y]=i,v&P.R&&x&&!x[y]&&_(x,y,i)))};P.F=1,P.G=2,P.S=4,P.P=8,P.B=16,P.W=32,P.U=64,P.R=128,W.exports=P},function(W,d){var n=W.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(W,d,n){"use strict";function l(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(d,"__esModule",{value:!0}),d.MessageTransportStateEventTypes=d.SharedObjectEventTypes=d.FailoverSubscriberEventTypes=d.RTMPSubscriberEventTypes=d.RTCSubscriberEventTypes=d.SubscriberEventTypes=d.FailoverPublisherEventTypes=d.RTMPPublisherEventTypes=d.RTCPublisherEventTypes=d.PublisherEventTypes=d.MessageTransportStateEvent=d.SharedObjectEvent=d.SubscriberEvent=d.PublisherEvent=d.Event=void 0;var m=l(n(3)),P=l(n(6)),O=l(n(5)),y=l(n(0)),i=l(n(1)),a=n(84);Object.defineProperty(d,"PublisherEventTypes",{enumerable:!0,get:function(){return a.PublisherEventTypes}}),Object.defineProperty(d,"RTCPublisherEventTypes",{enumerable:!0,get:function(){return a.RTCPublisherEventTypes}}),Object.defineProperty(d,"RTMPPublisherEventTypes",{enumerable:!0,get:function(){return a.RTMPPublisherEventTypes}}),Object.defineProperty(d,"FailoverPublisherEventTypes",{enumerable:!0,get:function(){return a.FailoverPublisherEventTypes}});var h=n(86);Object.defineProperty(d,"SubscriberEventTypes",{enumerable:!0,get:function(){return h.SubscriberEventTypes}}),Object.defineProperty(d,"RTCSubscriberEventTypes",{enumerable:!0,get:function(){return h.RTCSubscriberEventTypes}}),Object.defineProperty(d,"RTMPSubscriberEventTypes",{enumerable:!0,get:function(){return h.RTMPSubscriberEventTypes}}),Object.defineProperty(d,"FailoverSubscriberEventTypes",{enumerable:!0,get:function(){return h.FailoverSubscriberEventTypes}});var g=n(85);Object.defineProperty(d,"SharedObjectEventTypes",{enumerable:!0,get:function(){return g.SharedObjectEventTypes}});var c=n(83);Object.defineProperty(d,"MessageTransportStateEventTypes",{enumerable:!0,get:function(){return c.MessageTransportStateEventTypes}});var T=function(){function D(F){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;(0,y.default)(this,D),this._type=F,this._data=I}return(0,i.default)(D,[{key:"type",get:function(){return this._type}},{key:"data",get:function(){return this._data}}]),D}(),A=function(D){function F(I,k,R){(0,y.default)(this,F);var G=(0,P.default)(this,(F.__proto__||(0,m.default)(F)).call(this,I,R));return G._publisher=k,G}return(0,O.default)(F,D),(0,i.default)(F,[{key:"publisher",get:function(){return this._publisher}}]),F}(T),L=function(D){function F(I,k,R){(0,y.default)(this,F);var G=(0,P.default)(this,(F.__proto__||(0,m.default)(F)).call(this,I,R));return G._subscriber=k,G}return(0,O.default)(F,D),(0,i.default)(F,[{key:"subscriber",get:function(){return this._subscriber}}]),F}(T),x=function(D){function F(I,k,R){(0,y.default)(this,F);var G=(0,P.default)(this,(F.__proto__||(0,m.default)(F)).call(this,I,R));return G._name=k,G}return(0,O.default)(F,D),(0,i.default)(F,[{key:"name",get:function(){return this._name}}]),F}(T),V=function(D){function F(I,k,R){(0,y.default)(this,F);var G=(0,P.default)(this,(F.__proto__||(0,m.default)(F)).call(this,I,R));return G._name=k,G}return(0,O.default)(F,D),(0,i.default)(F,[{key:"name",get:function(){return this._name}}]),F}(T);d.Event=T,d.PublisherEvent=A,d.SubscriberEvent=L,d.SharedObjectEvent=x,d.MessageTransportStateEvent=V},function(W,d){W.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(W,d,n){var l=n(16),p=n(104),m=n(77),_=Object.defineProperty;d.f=n(17)?Object.defineProperty:function(P,v,O){if(l(P),v=m(v,!0),l(O),p)try{return _(P,v,O)}catch{}if("get"in O||"set"in O)throw TypeError("Accessors not supported!");return"value"in O&&(P[v]=O.value),P}},function(W,d,n){var l=n(14);W.exports=function(p){if(!l(p))throw TypeError(p+" is not an object!");return p}},function(W,d,n){W.exports=!n(26)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(W,d,n){W.exports={default:n(161),__esModule:!0}},function(W,d,n){"use strict";function l(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(0)),P=l(n(1)),v="RED5PRO",O=function(){function S(){(0,m.default)(this,S),this._callbacks={},this._callbacks[v]=[]}return(0,P.default)(S,[{key:"_notify",value:function(y,r){var i=void 0,a=y.length;for(i=0;i<a;i++)y[i](r)}},{key:"on",value:function(y,r){if("function"==typeof r){if("*"===y)return void this._callbacks[v].push(r);void 0===this._callbacks[y]&&(this._callbacks[y]=[]),-1===this._callbacks[y].indexOf(r)&&this._callbacks[y].push(r)}}},{key:"off",value:function(y,r){var i=this._callbacks[y];if("*"===y&&(i=this._callbacks[v]),i){var a=i.indexOf(r);-1!==a&&i.splice(a,1)}}},{key:"trigger",value:function(y){var r=y.type;this._callbacks[r]&&this._notify(this._callbacks[r],y),this._notify(this._callbacks[v],y)}}]),S}();d.default=O},function(W,d,n){var l=n(64);W.exports=function(p,m,_){if(l(p),void 0===m)return p;switch(_){case 1:return function(P){return p.call(m,P)};case 2:return function(P,v){return p.call(m,P,v)};case 3:return function(P,v,O){return p.call(m,P,v,O)}}return function(){return p.apply(m,arguments)}}},function(W,d){var n={}.hasOwnProperty;W.exports=function(l,p){return n.call(l,p)}},function(W,d,n){var l=n(15),p=n(41);W.exports=n(17)?function(m,_,P){return l.f(m,_,p(1,P))}:function(m,_,P){return m[_]=P,m}},function(W,d,n){var l=n(69),p=n(50);W.exports=function(m){return l(p(m))}},function(W,d,n){"use strict";function l(R){return R&&R.__esModule?R:{default:R}}Object.defineProperty(d,"__esModule",{value:!0}),d.PlaybackControlsImpl=d.PlaybackControls=d.PlaybackController=void 0;var m=l(n(3)),P=l(n(0)),O=l(n(1)),y=l(n(6)),i=l(n(5)),h=l(n(19)),c=l(n(7)),A=l(n(131)),L=n(91),x=n(37),V=n(2),D="PlaybackControls",F=function(R){function G(){return(0,P.default)(this,G),(0,y.default)(this,(G.__proto__||(0,m.default)(G)).call(this))}return(0,i.default)(G,R),(0,O.default)(G,[{key:"play",value:function(){}},{key:"pause",value:function(){}},{key:"resume",value:function(){}},{key:"stop",value:function(){}},{key:"mute",value:function(){}},{key:"unmute",value:function(){}},{key:"setVolume",value:function(Y){}},{key:"seekTo",value:function(Y){}},{key:"toggleFullScreen",value:function(){}}]),G}(h.default),I=function(){function R(){(0,P.default)(this,R)}return(0,O.default)(R,[{key:"getVolume",value:function(){}},{key:"setVolume",value:function(G){}},{key:"setSeekTime",value:function(G){}},{key:"setPlaybackDuration",value:function(G){}},{key:"getState",value:function(){}},{key:"setState",value:function(G){}},{key:"setAsVOD",value:function(G){}},{key:"enable",value:function(G){}}]),R}(),k=function(R){function G(Y,K){(0,P.default)(this,G);var $=(0,y.default)(this,(G.__proto__||(0,m.default)(G)).call(this));return $.player=Y,$.container=K,$._controlbar=void 0,$._playPauseButton=void 0,$._muteButton=void 0,$._volumeField=void 0,$._seekTimeField=void 0,$._timeField=void 0,$._fullScreenButton=void 0,$._state=x.PlaybackState.IDLE,$._mutedState=!1,$._resumeAfterSeek=!1,$._playbackDuration=0,$._volumeValue=1,$._onPlayPauseClickBound=$._onPlayPauseClick.bind($),$.decorate($.container),$}return(0,i.default)(G,R),(0,O.default)(G,[{key:"decorate",value:function(Y){(0,V.debug)(D,"[decorate]");var K=c.default.createElement("div");K.classList.add("red5pro-media-control-bar"),this._playPauseButton=this._createPlayPauseButton(),this._muteButton=this._createMuteButton(),this._volumeField=this._createVolumeControl(),this._seekTimeField=this._createSeekControl(),this._timeField=this._createPlaybackTime(),this._fullScreenButton=this._createFullScreenToggle(),K.appendChild(this._playPauseButton),K.appendChild(this._timeField),K.appendChild(this._seekTimeField.view),K.appendChild(this._muteButton),K.appendChild(this._volumeField.view),K.appendChild(this._fullScreenButton),Y.appendChild(K),this._controlbar=K;var $=void 0,ee=function(){clearTimeout($),$=setTimeout(function(){K.classList.remove("red5pro-media-control-bar-show")},6e3)};c.default.isTouchEnabled()?(K.classList.add("red5pro-media-control-bar-show"),this.container.addEventListener("touchend",function(){K.classList.toggle("red5pro-media-control-bar-show"),ee()}),ee()):(this.container.addEventListener("mouseover",function(){K.classList.add("red5pro-media-control-bar-show")}),this.container.addEventListener("mouseout",function(){K.classList.remove("red5pro-media-control-bar-show")})),this.setState(x.PlaybackState.IDLE).onFullScreenChange(!1).setSeekTime(0).enable(!1)}},{key:"_onPlayPauseClick",value:function(){this.getState()===x.PlaybackState.PLAYING?this.player.pause():this.getState()===x.PlaybackState.PAUSED?this.player.resume():this.player.play()}},{key:"_createPlayPauseButton",value:function(){var Y=c.default.createElement("button");return Y.setAttribute("aria-label","Toggle Playback"),Y.classList.add("red5pro-media-control-element"),Y.classList.add("red5pro-media-element-button"),Y.classList.add("red5pro-media-playpause-button"),Y}},{key:"_createMuteButton",value:function(){var Y=this,K=c.default.createElement("button");return K.setAttribute("aria-label","Toggle Mute Audio"),K.classList.add("red5pro-media-control-element"),K.classList.add("red5pro-media-element-button"),K.classList.add("red5pro-media-muteunmute-button"),K.addEventListener("click",function(){Y.getMutedState()?(Y.player.unmute(),Y.setMutedState(!1)):(Y.player.mute(),Y.setMutedState(!0))}),K}},{key:"_createVolumeControl",value:function(){var Y=this,K=new A.default("volume");return K.view.classList.add("red5pro-media-control-element"),K.view.classList.add("red5pro-media-volume-slider"),K.view.classList.add("red5pro-media-slider"),K.on(L.SliderEventTypes.CHANGE,function($){var ee=Number($.data);Y.player.setVolume(ee)}),K}},{key:"_createSeekControl",value:function(){var Y=this,K=new A.default("seek");return K.view.classList.add("red5pro-media-control-element"),K.view.classList.add("red5pro-media-seektime-slider"),K.view.classList.add("red5pro-media-slider"),K.on(L.SliderEventTypes.CHANGE_START,function(){Y.getState()===x.PlaybackState.PLAYING&&(Y._resumeAfterSeek=!0,Y.player.pause())}),K.on(L.SliderEventTypes.CHANGE,function($){var ee=Number($.data);Y.player.seekTo(ee,0===Y._playbackDuration?void 0:Y._playbackDuration),Y.setSeekTime(ee*Y._playbackDuration,Y._playbackDuration)}),K.on(L.SliderEventTypes.CHANGE_COMPLETE,function(){Y._resumeAfterSeek&&Y.getState()===x.PlaybackState.PAUSED&&(Y._resumeAfterSeek=!1,Y.player.resume())}),K}},{key:"_createPlaybackTime",value:function(){var Y=c.default.createElement("span"),K=c.default.createElement("text","hello!");return Y.classList.add("red5pro-media-control-element"),Y.classList.add("red5pro-media-time-field"),Y.appendChild(K),Y}},{key:"_createFullScreenToggle",value:function(){var Y=this,K=c.default.createElement("button");return K.setAttribute("aria-label","Toggle Fullscreen"),K.classList.add("red5pro-media-control-element"),K.classList.add("red5pro-media-element-button"),K.classList.add("red5pro-media-fullscreen-button"),K.addEventListener("click",function(){Y.player.toggleFullScreen()}),K}},{key:"enable",value:function(Y){Y?(this._playPauseButton.classList.remove("red5pro-media-element-button-disabled"),this._playPauseButton.addEventListener("click",this._onPlayPauseClickBound)):(this._playPauseButton.classList.add("red5pro-media-element-button-disabled"),this._playPauseButton.removeEventListener("click",this._onPlayPauseClickBound))}},{key:"formatTime",value:function(Y){var ee,K=0,$=0===Y?0:parseInt(Y/60);$>=60&&(K=parseInt($/60),$%=60),ee=0===Y?0:parseInt(Y%60);var J=K<10?["0"+K]:[K];return J.push($<10?["0"+$]:[$]),J.push(ee<10?["0"+ee]:[ee]),J.join(":")}},{key:"getVolume",value:function(){return this._volumeValue}},{key:"setVolume",value:function(Y){return this._volumeField.value=Y,this._volumeValue=Y,0===Y?this.setMutedState(!0):this.getMutedState()&&this.setMutedState(!1),this}},{key:"setSeekTime",value:function(Y){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._seekTimeField.value=0===K?0:Y/K,0!==this._playbackDuration&&parseInt(this._playbackDuration)<=parseInt(Y)&&(this._seekTimeField.value=1),this._timeField.innerText=this.formatTime(Math.floor(Y)),this}},{key:"setPlaybackDuration",value:function(Y){(0,V.debug)(D,"[setplaybackduration]: "+Y),this._playbackDuration=Y}},{key:"getState",value:function(){return this._state}},{key:"setState",value:function(Y){return(0,V.debug)(D,"[setState]: "+x.PlaybackStateReadable[Y]),this._state=Y,this.onStateChange(this._state),this}},{key:"getMutedState",value:function(){return"muted"in this.player?this.player.muted:this._mutedState}},{key:"setMutedState",value:function(Y){return this._mutedState=Y,this.onMutedStateChange(this._mutedState),this}},{key:"onStateChange",value:function(Y){return Y===x.PlaybackState.PLAYING?(this._playPauseButton.classList.remove("red5pro-media-play-button"),this._playPauseButton.classList.add("red5pro-media-pause-button")):(this._playPauseButton.classList.add("red5pro-media-play-button"),this._playPauseButton.classList.remove("red5pro-media-pause-button")),this}},{key:"onMutedStateChange",value:function(Y){Y?(this._muteButton.classList.add("red5pro-media-mute-button"),this._muteButton.classList.remove("red5pro-media-unmute-button"),this._volumeField.value=0):(this._muteButton.classList.remove("red5pro-media-mute-button"),this._muteButton.classList.add("red5pro-media-unmute-button"),this._volumeField.value=this._volumeValue)}},{key:"onFullScreenChange",value:function(Y){return Y?(this._fullScreenButton.classList.add("red5pro-media-exit-fullscreen-button"),this._fullScreenButton.classList.remove("red5pro-media-fullscreen-button")):(this._fullScreenButton.classList.remove("red5pro-media-exit-fullscreen-button"),this._fullScreenButton.classList.add("red5pro-media-fullscreen-button")),this}},{key:"setAsVOD",value:function(Y){(0,V.debug)(D,"[setAsVOD]: "+Y),Y?this._seekTimeField.disabled=!1:(this._seekTimeField.value=0,this._seekTimeField.disabled=!0)}},{key:"detach",value:function(){this.enable(!1),this._controlbar&&this._controlbar.parentNode===this.container&&this.container.removeChild(this._controlbar)}}]),G}(I);d.PlaybackController=F,d.PlaybackControls=I,d.PlaybackControlsImpl=k},function(W,d,n){"use strict";function l(v){return v&&v.__esModule?v:{default:v}}Object.defineProperty(d,"__esModule",{value:!0}),d.isObjectEmpty=d.metadataResolutionToObject=d.deepCopy=d.deepDefine=void 0;var m=l(n(38)),P=l(n(10));d.deepDefine=function(v,O,S){for(var y=0,r=v,i=O.pop(),a=O.length;y<a;y++){var h=O[y];r[h]=r[h]||{},r=r[h]}r[i]=S},d.deepCopy=function(v){var O=(0,P.default)(v);return JSON.parse(O)},d.metadataResolutionToObject=function(v){if("string"==typeof v){var O=v.split(",");return{width:parseInt(O[0]),height:parseInt(O[1])}}return v},d.isObjectEmpty=function(v){return 0===(0,m.default)(v).length&&v.constructor===Object}},function(W,d){W.exports=function(n){try{return!!n()}catch{return!0}}},function(W,d,n){"use strict";var l=n(187)(!0);n(70)(String,"String",function(p){this._t=String(p),this._i=0},function(){var p,m=this._t,_=this._i;return _>=m.length?{value:void 0,done:!0}:(p=l(m,_),this._i+=p.length,{value:p,done:!1})})},function(W,d,n){n(192);for(var l=n(12),p=n(22),m=n(32),_=n(9)("toStringTag"),P=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],v=0;v<5;v++){var O=P[v],S=l[O],y=S&&S.prototype;y&&!y[_]&&p(y,_,O),m[O]=m.Array}},function(W,d,n){"use strict";function l(R){return R&&R.__esModule?R:{default:R}}Object.defineProperty(d,"__esModule",{value:!0}),d.RTCSessionDescription=d.RTCIceCandidate=d.RTCPeerConnection=d.updateBandwidth=d.forceUserMedia=d.getUserMedia=d.supportsDataChannel=d.isSupported=d.determineSupportedResolution=d.quickResolutionSupport=void 0;var m=l(n(10)),P=l(n(7)),v=n(8),O=n(93),S=n(25),y=n(2),r=[{label:"4K(UHD)",width:3840,height:2160},{label:"1080p(FHD)",width:1920,height:1080},{label:"UXGA",width:1600,height:1200},{label:"720p(HD)",width:1280,height:720},{label:"SVGA",width:800,height:600},{label:"VGA",width:640,height:480},{label:"360p(nHD)",width:640,height:360},{label:"CIF",width:352,height:288},{label:"QVGA",width:320,height:240},{label:"QCIF",width:176,height:144},{label:"QQVGA",width:160,height:120}],a=function(R){return R.exact||R.ideal||R.max||R.min||R},h=(0,O.curry)(function(R,G){if("boolean"==typeof R.video)return!0;var Y=R.video.hasOwnProperty("width")?a(R.video.width):0,K=R.video.hasOwnProperty("height")?a(R.video.height):0,$=Y===G.width&&K===G.height;return $&&(0,y.debug)("[gum:isExact]","Found matching resolution for "+G.width+", "+G.height+"."),$}),g=(0,O.curry)(function(R,G){var Y=R.video.hasOwnProperty("width")?a(R.video.width):0,K=R.video.hasOwnProperty("height")?a(R.video.height):0;return G.width*G.height<Y*K}),c=(0,O.curry)(function(R,G){var Y=(0,O.filter)(h(G))(R);return(0,y.debug)("[gum:hasMatchingFormat]","Filtered list: "+(0,m.default)(Y,null,2)),Y.length>0}),T=(0,O.curry)(function(R,G){var Y=g(G);return(0,O.filter)(Y)(R)}),L=function R(G,Y,K){if(0!=Y.length){var $=Y.shift();G.video.width={exact:$.width},G.video.height={exact:$.height},P.default.gUM(G).then(function(ee){K.resolve({media:ee,constraints:G})}).catch(function(ee){var J="string"==typeof ee?ee:[ee.name,ee.message].join(": ");(0,y.debug)("[gum:getUserMedia]","Failure in getUserMedia: "+J+". Attempting other resolution tests..."),(0,y.debug)("[gUM:findformat]","Constraints declined by browser: "+(0,m.default)(G,null,2)),R(G,Y,K)})}else!function(R,G){R.video=!0,P.default.gUM(R).then(function(Y){G.resolve({media:Y,constraints:R})}).catch(function(Y){var K="string"==typeof Y?Y:[Y.name,Y.message].join(": ");(0,y.debug)("[gum:getUserMedia]","Failure in getUserMedia: "+K+". Attempting other resolution tests..."),(0,y.debug)("[gUM:findformat]","Constraints declined by browser: "+(0,m.default)(R,null,2)),G.reject("Could not find proper camera for provided constraints.")})}(G,K)},x=d.quickResolutionSupport=function(R){var G=(0,S.deepCopy)(R);return"boolean"==typeof R.video||(R.video.width&&(G.video.width={exact:a(R.video.width)}),R.video.height&&(G.video.height={exact:a(R.video.height)})),G},V=d.determineSupportedResolution=function(R){(0,y.debug)("[gum:determineSupportedResolution]","Determine next neighbor based on constraints: "+(0,m.default)(R,null,2));var G=new v.DeferredPromise,Y=T(r)(R),K=(0,S.deepCopy)(R);return L(K,Y,G),G.promise},D=d.isSupported=function(){return F&&I&&k},F=(d.supportsDataChannel=function(){try{var R=new F(null);return R.createDataChannel({name:"test"}).close(),R.close(),!!D()}catch(G){return(0,y.debug)("Could not detect RTCDataChannel support: "+G.message),!1}},d.getUserMedia=function(R,G){var Y=new v.DeferredPromise,K=c(r);(0,y.debug)("[gum:getUserMedia]","Is Available in format listing: "+K(R));var $=function(J){if(J){var z="string"==typeof J?J:[J.name,J.message].join(": ");(0,y.debug)("[gum:getUserMedia]","Failure in getUserMedia: "+z+". Attempting other resolution tests...")}V(R).then(function(te){Y.resolve({media:te.media,constraints:te.constraints})}).catch(function(te){G&&G(R),Y.reject({error:te,constraints:R})})};if(function(R){return R.hasOwnProperty("video")&&(R.video.hasOwnProperty("width")||R.video.hasOwnProperty("height"))}(R))if(K(R)){(0,y.debug)("[gum:getUserMedia]","Found constraints in list. Checking quick support for faster setup with: "+(0,m.default)(R,null,2));var ee=x(R);P.default.gUM(ee).then(function(J){Y.resolve({media:J,constraints:ee})}).catch($)}else(0,y.debug)("[gum:getUserMedia]","Could not find contraints in list. Attempting failover..."),G&&G(R),$();else(0,y.debug)("[gum:getUserMedia]","Constraints were not defined properly. Attempting failover..."),P.default.gUM(R).then(function(J){Y.resolve({media:J,constraints:R})}).catch($);return Y.promise},d.forceUserMedia=function(R){return P.default.gUM(R)},d.updateBandwidth=function(R,G){var Y=G.indexOf("m=audio"),K=G.indexOf("m=video"),$=void 0,ee=void 0,J=void 0;return Y>-1&&(R.audio&&($=G.indexOf("\r\n",Y),ee=G.slice(0,$),J=G.slice($+2,G.length),G=[ee,"b=AS:"+R.audio,J].join("\r\n")),K=G.indexOf("m=video")),K>-1&&R.video&&($=G.indexOf("\r\n",K),ee=G.slice(0,$),J=G.slice($+2,G.length),G=[ee,"b=AS:"+R.video,J].join("\r\n")),-1===Y&&-1===K&&(G=G.replace(/b=AS([^\r\n]+\r\n)/g,""),R.audio&&(G=G.replace(/a=mid:audio\r\n/g,"a=mid:audio\r\nb=AS:"+R.audio+"\r\n")),R.video&&(G=G.replace(/a=mid:video\r\n/g,"a=mid:video\r\nb=AS:"+R.video+"\r\n"))),G},window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection),I=window.RTCIceCandidate||window.mozRTCIceCandidate||window.webkitRTCIceCandidate,k=window.RTCSessionDescription||window.mozRTCSessionDescription||window.webkitRTCSessionDescription;d.RTCPeerConnection=F,d.RTCIceCandidate=I,d.RTCSessionDescription=k},function(W,d,n){"use strict";d.__esModule=!0;var m,p=(m=n(143))&&m.__esModule?m:{default:m};d.default=p.default||function(m){for(var _=1;_<arguments.length;_++){var P=arguments[_];for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&(m[v]=P[v])}return m}},function(W,d,n){"use strict";function l(v){return v&&v.__esModule?v:{default:v}}d.__esModule=!0;var m=l(n(3)),P=l(n(145));d.default=function v(O,S,y){null===O&&(O=Function.prototype);var r=(0,P.default)(O,S);if(void 0===r){var i=(0,m.default)(O);return null===i?void 0:v(i,S,y)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(y):void 0}},function(W,d){W.exports={}},function(W,d,n){var l=n(57)("meta"),p=n(14),m=n(21),_=n(15).f,P=0,v=Object.isExtensible||function(){return!0},O=!n(26)(function(){return v(Object.preventExtensions({}))}),S=function(h){_(h,l,{value:{i:"O"+ ++P,w:{}}})},a=W.exports={KEY:l,NEED:!1,fastKey:function(h,g){if(!p(h))return"symbol"==typeof h?h:("string"==typeof h?"S":"P")+h;if(!m(h,l)){if(!v(h))return"F";if(!g)return"E";S(h)}return h[l].i},getWeak:function(h,g){if(!m(h,l)){if(!v(h))return!0;if(!g)return!1;S(h)}return h[l].w},onFreeze:function(h){return O&&a.NEED&&v(h)&&!m(h,l)&&S(h),h}}},function(W,d,n){var l=n(113),p=n(68);W.exports=Object.keys||function(m){return l(m,p)}},function(W,d,n){var l=n(50);W.exports=function(p){return Object(l(p))}},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.PlaybackVideoEncoder=d.PlaybackAudioEncoder=d.PlaybackTypes=void 0;var m,p=(m=n(18))&&m.__esModule?m:{default:m};d.PlaybackTypes=(0,p.default)({RTC:"rtc",RTMP:"rtmp",HLS:"hls"}),d.PlaybackAudioEncoder=(0,p.default)({OPUS:"Opus",PCMU:"PCMU",PCMA:"PCMA",SPEEX:"Speex",NONE:"NONE"}),d.PlaybackVideoEncoder=(0,p.default)({VP8:"VP8",H264:"H264",NONE:"NONE"})},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.PlaybackStateReadable=d.PlaybackState=void 0;var m,p=(m=n(18))&&m.__esModule?m:{default:m};d.PlaybackState=(0,p.default)({UNAVAILABLE:1e3,AVAILABLE:0,IDLE:1,PLAYING:2,PAUSED:3}),d.PlaybackStateReadable=(0,p.default)({1e3:"Playback.UNAVAILABLE",0:"Playback.AVAILABLE",1:"Playback.IDLE",2:"Playback.PLAYING",3:"Playback.PAUSED"})},function(W,d,n){W.exports={default:n(164),__esModule:!0}},function(W,d){var n={}.toString;W.exports=function(l){return n.call(l).slice(8,-1)}},function(W,y,n){var l=n(20),p=n(107),m=n(105),_=n(16),P=n(56),v=n(80),O={},S={};(y=W.exports=function(r,i,a,h,g){var c,T,A,L,x=g?function(){return r}:v(r),V=l(a,h,i?2:1),D=0;if("function"!=typeof x)throw TypeError(r+" is not iterable!");if(m(x)){for(c=P(r.length);c>D;D++)if((L=i?V(_(T=r[D])[0],T[1]):V(r[D]))===O||L===S)return L}else for(A=x.call(r);!(T=A.next()).done;)if((L=p(A,V,T.value,i))===O||L===S)return L}).BREAK=O,y.RETURN=S},function(W,d){W.exports=function(n,l){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:l}}},function(W,d,n){var l=n(15).f,p=n(21),m=n(9)("toStringTag");W.exports=function(_,P,v){_&&!p(_=v?_:_.prototype,m)&&l(_,m,{configurable:!0,value:P})}},function(W,d){},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.create=d.isSupported=void 0;var m,p=(m=n(7))&&m.__esModule?m:{default:m};d.isSupported=function(){return p.default.supportsWebSocket()},d.create=function(m){return p.default.createWebSocket(m)}},function(W,d,n){"use strict";function l(k){return k&&k.__esModule?k:{default:k}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(3)),O=l(n(0)),y=l(n(1)),i=l(n(6)),h=l(n(5)),c=function(k){if(k&&k.__esModule)return k;var R={};if(null!=k)for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(R[G]=k[G]);return R.default=k,R}(n(44)),A=l(n(7)),x=l(n(87)),V=n(13),D=n(2),I=function(k){function R(G,Y){(0,O.default)(this,R);var K=(0,i.default)(this,(R.__proto__||(0,P.default)(R)).call(this,Y||"R5ProSocketProxy"));return K._responder=G,K._pendingPostRequests=[],K._websocket=void 0,K._connectionPromise=void 0,K._responseHandlers=[],K._isTerminated=!1,K._retryCount=0,K._retryLimit=1,K._readyCheckCount=0,K._readyCheckLimit=10,K._openState=0,K._onclose=K.tearDown.bind(K),K._onopenTimeout=0,K}return(0,h.default)(R,k),(0,y.default)(R,[{key:"_resetOnopenTimeout",value:function(G,Y){var K=this,$=setTimeout(function(){if(clearTimeout($),1===G.readyState){for((0,D.info)(K._name,"[websocketopen]"),K._openState=1;K._pendingPostRequests.length>0;)K.post(K._pendingPostRequests.shift());K._responder&&K._responder.onSocketOpen&&K._responder.onSocketOpen(),K.trigger(new V.MessageTransportStateEvent(V.MessageTransportStateEventTypes.OPEN,K._name,{socket:K}))}else 0===G.readyState?++K._readyCheckCount>K._readyCheckLimit?((0,D.warn)(K._name,"WebSocket connection issue. We have waited for "+(K._readyCheckCount-1)+" samples, without any connection."),K.clearRetry(),Y.reject({type:"Timeout"}),K.tearDown()):((0,D.info)(K._name,"WebSocket connection is still opening, will let it continue ("+K._readyCheckCount+")..."),K._onopenTimeout=K._resetOnopenTimeout(G,Y)):(0,D.info)(K._name,"WebSocket connection attempts have ended with state ("+G.readyState+").")},500);return $}},{key:"_removeSocketHandlers",value:function(G){G&&(G.onopen=void 0,G.onmessage=void 0,G.onerror=void 0,G.onclose=void 0)}},{key:"_addSocketHandlers",value:function(G,Y){var K=this;this._openState=0,this._readyCheckCount=0,clearTimeout(this._onopenTimeout),this._onopenTimeout=this._resetOnopenTimeout(G,Y),G.onerror=function($){(0,D.warn)(K._name,"[websocketerror]: Error from WebSocket. "+$.type+"."),K.clearRetry(),Y.reject($),K.trigger(new V.MessageTransportStateEvent(V.MessageTransportStateEventTypes.ERROR,K._name,{socket:K,error:$}))},G.onmessage=function($){K.respond($)},G.onclose=function($){$.code>1e3?(0,D.warn)(K._name,"[websocketclose]: "+$.code):(0,D.debug)(K._name,"[websocketclose]: "+$.code),K._responder&&K._responder.onSocketClose&&K._responder.onSocketClose($),K.clearRetry(),K._removeSocketHandlers(G||K._websocket),K._openState=0,K.trigger(new V.MessageTransportStateEvent(V.MessageTransportStateEventTypes.CLOSE,K._name,{socket:K,event:$}))}}},{key:"_onUnexpectedSocketError",value:function(G){this._responder&&this._responder.onSocketClose&&this._responder.onSocketClose(G),this.trigger(new V.MessageTransportStateEvent(V.MessageTransportStateEventTypes.CLOSE,this._name,{socket:this})),(0,D.warn)(this._name,"[websocketerror]: Possible Unexpected Error from WebSocket. "+G.type+", "+G.detail),this.clearRetry(),this._removeSocketHandlers(this._websocket)}},{key:"clearRetry",value:function(){this._retryCount=0,this._readyCheckCount=0,clearTimeout(this._onopenTimeout)}},{key:"setUp",value:function(G,Y){var K=this,$=A.default.getIsMoz()||A.default.getIsEdge();if((0,D.debug)(this._name,"[websocket:setup] "+G+"."),this.tearDown(),this._isTerminated=!1,this._connectionPromise=Y,A.default.addCloseHandler(this._onclose),this._websocket=c.create(G),this._addSocketHandlers(this._websocket,this._connectionPromise),$&&this._retryCount++<this._retryLimit){(0,D.debug)(this._name,"We have determined it is Firefox and are setting up a retry limit.");var ee=setTimeout(function(){K._websocket&&0===K._websocket.readyState&&((0,D.debug)(K._name,"[websocket:FF-timeout]"),(0,D.debug)(K._name,"Our connection on Firefox to the wss endpoint has timed out. Let's try that again."),K._removeSocketHandlers(K._websocket),K.setUp(G,Y)),clearTimeout(ee)},2e3)}}},{key:"setUpWithSocket",value:function(G,Y){(0,D.debug)(this._name,"[websocket:setupWithSocket] "+G.url+"."),this.tearDown(),this._isTerminated=!1,this._connectionPromise=Y,A.default.addCloseHandler(this._onclose),this._websocket=G,this._addSocketHandlers(this._websocket,this._connectionPromise)}},{key:"sever",value:function(G){(0,D.debug)(this._name,"[websocket:sever]"),this._websocket&&(G&&this.post(G),this._removeSocketHandlers(this._websocket),this.tearDown())}},{key:"tearDown",value:function(){if(this._pendingPostRequests.length=0,void 0!==this._websocket&&!this._isTerminated){(0,D.debug)(this._name,"[teardown] >>"),(0,D.debug)(this._name,"[WebSocket("+this._websocket.url+")] close() >>");try{this._websocket.close()}catch(G){(0,D.warn)(this._name,"Attempt to close WebSocket failed: "+G.message+"."),this._removeSocketHandlers(this._websocket)}finally{this._websocket&&(0,D.debug)(this._name,"<< [WebSocket("+this._websocket.url+")] close()")}(0,D.debug)(this._name,"<< [teardown]")}for(this._websocket=void 0,this._isTerminated=!0,this._openState=0;this._responseHandlers.length>0;)this._responseHandlers.shift();A.default.removeCloseHandler(this._onclose)}},{key:"postEndOfCandidates",value:function(G){this.post({handleCandidate:G,data:{candidate:{type:"candidate",candidate:""}}})}},{key:"post",value:function(G){if(void 0===this._websocket||1!==this._openState)return(void 0===this._websocket||2!==this._websocket.readyState&&3!==this._websocket.readyState)&&!this._isTerminated&&(this._pendingPostRequests.push(G),!0);try{return(0,D.debug)(this._name,"[websocket-post]: "+(0,m.default)(G,null,2)),this._websocket.send((0,m.default)(G)),!0}catch(Y){return(0,D.debug)(this._name,"Could not send request: "+G+". "+Y),!1}}},{key:"respond",value:function(G){var Y=this.handleMessageResponse(G);if(!Y&&G.data){var K=this.getJsonFromSocketMessage(G);if(null===K)return(0,D.warn)(this._name,"Determined websocket response not in correct format. Aborting message handle."),!0;if((0,D.debug)(this._name,"[websocket-response]: "+(0,m.default)(K,null,2)),void 0!==K.isAvailable)return"boolean"==typeof K.isAvailable&&K.isAvailable?(this._responder&&this._responder.onStreamAvailable(K),!0):(this._responder&&this._responder.onStreamUnavailable(K),!0);if(K.async&&K.id){var ee=this._asyncTickets.find(function(z){return z.id===K.id}).promise;ee&&K.data?ee.resolve(K.data):ee&&K.error&&ee.reject(K.error)}else if(void 0!==K.data){var J=K.data;if(void 0!==J.message){if("error"===J.type&&this._responder)return this._responder.onSocketMessageError(J.message,J.detail),!0}else if("status"===J.type){if("NetConnection.Connect.Success"===J.code)return this._websocket.onerror=this._onUnexpectedSocketError.bind(this),this._connectionPromise.resolve(this),!0;if("NetConnection.DataChannel.Available"===J.code)return this._responder.onDataChannelAvailable(J.description),!0;if("NetConnection.Connect.Rejected"===J.code)return this._connectionPromise.reject("NetConnection.Connect.Rejected"),!0}else if("error"===J.type){if("NetConnection.Connect.Rejected"===J.code)return this._connectionPromise.reject("NetConnection.Connect.Rejected"),!0;if("NetConnection.Connect.Failed"===J.code)return this._connectionPromise.reject("NetConnection.Connect.Failed"),!0}}}return Y}},{key:"isTerminated",get:function(){return this._isTerminated}}]),R}(x.default);d.default=I},function(W,d,n){"use strict";function l(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(d,"__esModule",{value:!0}),d.hlsSocketEndpointFromOptions=d.rtcSocketEndpointFromOptions=d.encodeKeyValues=void 0;var m=l(n(30)),P=l(n(38)),v=function(S){switch(S){case 8083:case"8083":return console.warn("The default WebSocket port on the server has changed from 8083 to 443 for secure connections."),443;case 8081:case"8081":return console.warn("The default WebSocket port on the server has changed from 8081 to 5080 or 80 for secure connections."),5080}return S},O=d.encodeKeyValues=function(S){var y={};return(0,P.default)(S).forEach(function(r,i){y[r]=encodeURIComponent(S[r])}),y};d.rtcSocketEndpointFromOptions=function(S){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=S.wsprotocol||S.protocol,i=v(S.wsport||S.port),a=S.context?[S.app,S.context].join("/"):S.app,h=r+"://"+S.host+":"+i+"/"+a+"/";if(void 0!==S.connectionParams){var g=O(S.connectionParams);y=(0,m.default)(y,g)}if(void 0!==y){var c=[];(0,P.default)(y).forEach(function(T,A){c.push([T,y[T]].join("="))}),c.length>0&&(h+="?"+c.join("&"))}return h},d.hlsSocketEndpointFromOptions=function(S){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=S.socketParams,i=S.connectionParams,a=r.protocol,h=v(r.port||("wss"===a?443:5080)),g=a+"://"+r.host+":"+h+"/"+r.app+"/";if(i){var c=O(S.connectionParams);y=(0,m.default)(y,c)}if(y){var T=[];(0,P.default)(y).forEach(function(A,L){T.push([A,y[A]].join("="))}),T.length>0&&(g+="?"+T.join("&"))}return g}},function(W,d,n){"use strict";function l(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(d,"__esModule",{value:!0}),d.PlaybackView=void 0;var m=l(n(0)),P=l(n(1)),O=l(n(7)),S=n(2),y="R5ProPlaybackView",i=d.PlaybackView=function(){function a(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"red5pro-subscriber";(0,m.default)(this,a);try{this._targetElement=O.default.resolveElement(h)}catch(g){throw(0,S.error)(y,"Could not instantiate a new instance of Red5ProSubscriber. Reason: "+g.message),g}}return(0,P.default)(a,[{key:"attachSubscriber",value:function(h){(0,S.debug)(y,"[attachsubscriber]"),h.setView(this,O.default.getElementId(this._targetElement))}},{key:"attachStream",value:function(h){var g=this.isAutoplay;(0,S.debug)(y,"[attachstream]"),O.default.setVideoSource(this._targetElement,h,g)}},{key:"detachStream",value:function(){(0,S.debug)(y,"[detachstream]"),O.default.setVideoSource(this._targetElement,null,this.isAutoplay)}},{key:"isAutoplay",get:function(){return O.default.hasAttributeDefined(this._targetElement,"autoplay")}},{key:"view",get:function(){return this._targetElement}}]),a}();d.default=i},function(W,d){W.exports=function(n,l,p,m){if(!(n instanceof l)||void 0!==m&&m in n)throw TypeError(p+": incorrect invocation!");return n}},function(W,d,n){var l=n(39),p=n(9)("toStringTag"),m="Arguments"==l(function(){return arguments}());W.exports=function(P){var v,O,S;return void 0===P?"Undefined":null===P?"Null":"string"==typeof(O=function(P,v){try{return P[v]}catch{}}(v=Object(P),p))?O:m?l(v):"Object"==(S=l(v))&&"function"==typeof v.callee?"Arguments":S}},function(W,d){W.exports=function(n){if(null==n)throw TypeError("Can't call method on "+n);return n}},function(W,d){W.exports=!0},function(W,d,n){var l=n(16),p=n(183),m=n(68),_=n(74)("IE_PROTO"),P=function(){},v=function(){var O,S=n(67)("iframe"),y=m.length;for(S.style.display="none",n(103).appendChild(S),S.src="javascript:",(O=S.contentWindow.document).open(),O.write("<script>document.F=Object<\/script>"),O.close(),v=O.F;y--;)delete v.prototype[m[y]];return v()};W.exports=Object.create||function(O,S){var y;return null!==O?(P.prototype=l(O),y=new P,P.prototype=null,y[_]=O):y=v(),void 0===S?y:p(y,S)}},function(W,d){d.f={}.propertyIsEnumerable},function(W,d,n){var l=n(11),p=n(4),m=n(26);W.exports=function(_,P){var v=(p.Object||{})[_]||Object[_],O={};O[_]=P(v),l(l.S+l.F*m(function(){v(1)}),"Object",O)}},function(W,d,n){var l=n(22);W.exports=function(p,m,_){for(var P in m)_&&p[P]?p[P]=m[P]:l(p,P,m[P]);return p}},function(W,d,n){var l=n(76),p=Math.min;W.exports=function(m){return m>0?p(l(m),9007199254740991):0}},function(W,d){var n=0,l=Math.random();W.exports=function(p){return"Symbol(".concat(void 0===p?"":p,")_",(++n+l).toString(36))}},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.PublishModeTypes=d.PublishTypes=void 0;var m,p=(m=n(18))&&m.__esModule?m:{default:m};d.PublishTypes=(0,p.default)({RTMP:"rtmp",RTC:"rtc"}),d.PublishModeTypes=(0,p.default)({LIVE:"live",RECORD:"record",APPEND:"append"})},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.IceTransportTypes=void 0;var m,p=(m=n(18))&&m.__esModule?m:{default:m};d.IceTransportTypes=(0,p.default)({UDP:"udp",TCP:"tcp"})},function(W,d,n){"use strict";function l(I){return I&&I.__esModule?I:{default:I}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(3)),O=l(n(0)),y=l(n(1)),i=l(n(6)),h=l(n(5)),c=function(I){if(I&&I.__esModule)return I;var k={};if(null!=I)for(var R in I)Object.prototype.hasOwnProperty.call(I,R)&&(k[R]=I[R]);return k.default=I,k}(n(29)),A=l(n(87)),L=n(13),x=n(8),V=n(2),D="R5ProWebRTCPeer",F=function(I){function k(R,G){(0,O.default)(this,k);var Y=(0,i.default)(this,(k.__proto__||(0,P.default)(k)).call(this,G||D));return Y._responder=R,Y._dataChannel=void 0,Y._peerConnection=void 0,Y._onDataChannelMessage=Y._onDataChannelMessage.bind(Y),Y}return(0,h.default)(k,I),(0,y.default)(k,[{key:"_removeDataChannelHandlers",value:function(R){R.onopen=void 0,R.onerror=void 0,R.onclose=void 0,R.onmessage=void 0}},{key:"_addDataChannelHandlers",value:function(R){var G=this;R.onerror=function(Y){G._responder.onDataChannelError(R,Y.error.message)},R.onmessage=this._onDataChannelMessage,R.onopen=function(){G._responder.onDataChannelOpen(R)},R.onclose=function(Y){G._responder.onDataChannelClose(R),G.trigger(new L.MessageTransportStateEvent(L.MessageTransportStateEventTypes.CLOSE,G._name,{socket:G,event:Y}))}}},{key:"_removeConnectionHandlers",value:function(R){(0,V.warn)(this._name,"_removeConnectionHandlers is abstract.")}},{key:"_addConnectionHandlers",value:function(R,G){(0,V.warn)(this._name,"_addConnectionHandlers is abstract.")}},{key:"_onDataChannelMessage",value:function(R){var G=R.data instanceof ArrayBuffer?{data:{message:String.fromCharCode.apply(null,new Uint8Array(R.data))}}:R;if(this.handleMessageResponse(G))return!0;var Y=this.getJsonFromSocketMessage(G);if(null===Y)return(0,V.warn)(this._name,"Determined websocket response not in correct format. Aborting message handle."),!0;(0,V.debug)(this._name,"[datachannel-response]: "+(0,m.default)(Y,null,2));var K=Y.data,$=Y.method,ee=Y.type,J=Y.id;if(K&&K.message&&"error"===K.type)return this._responder.onDataChannelError(this._dataChannel,K.message),!0;if(K&&K.code&&"error"===K.type)return this._responder.onDataChannelError(this._dataChannel,K.code),!0;if($)return this._responder.onSendReceived($,K),!0;if("metadata"===ee)return this._responder.onMetaData(K),!0;if(K&&"status"===K.type){if("NetConnection.Connect.Closed"===K.code)return this._responder.onConnectionClosed(),!0;(0,V.debug)(D,"[datachannel.message] status :: "+K.code)}else if(Y.async&&J){var te=this._asyncTickets.find(function(X){return X.id===J}).promise;if(te&&Y.data)return te.resolve(Y.data),!0;if(te&&Y.error)return te.reject(Y.error),!0}return!1}},{key:"setUp",value:function(R){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.tearDown();var K=G||new x.DeferredPromise;try{var $={iceServers:R,iceCandidatePoolSize:2,bundlePolicy:"max-bundle"};void 0!==Y&&($.rtcpMuxPolicy=Y),(0,V.debug)(D,"[peerconnection:setup]: "+(0,m.default)($,null,2));var ee=new c.RTCPeerConnection($,{optional:[{RtpDataChannels:!1},{googCpuOveruseDetection:!0}]});this._addConnectionHandlers(ee),this._peerConnection=ee,K.resolve(ee)}catch(J){(0,V.warn)(D,"Could not establish a PeerConnection. "+J.message),K.reject(J.message)}return K.hasOwnProperty("promise")?K.promise:K}},{key:"setUpWithPeerConfiguration",value:function(R){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.tearDown();var K=Y||new x.DeferredPromise;try{(0,V.debug)(D,"[peerconnection:setUpWithPeerConfiguration]: "+(0,m.default)(R,null,2));var $=new c.RTCPeerConnection(R);G&&(this._dataChannel=$.createDataChannel(G.name,{ordered:!0}),this._addDataChannelHandlers(this._dataChannel)),this._addConnectionHandlers($),this._peerConnection=$,K.resolve($)}catch(ee){(0,V.warn)(D,"Could not establish a PeerConnection. "+ee.message),K.reject(ee.message)}return K.hasOwnProperty("promise")?K.promise:K}},{key:"tearDown",value:function(){if(this._dataChannel){this._removeDataChannelHandlers(this._dataChannel);try{this._dataChannel.close()}catch(R){(0,V.warn)(D,"[datachannel.close] error: "+R.message)}finally{this._dataChannel=void 0}}if(this._peerConnection){(0,V.debug)(D,"[teardown]"),this._removeConnectionHandlers(this._peerConnection);try{this._peerConnection.close()}catch(R){(0,V.warn)(D,"[peerconnection.close] error: "+R.message)}finally{this._peerConnection=void 0}}}},{key:"setLocalDescription",value:function(R){return(0,V.debug)(D,"[setlocaldescription]"),this._peerConnection.setLocalDescription(R)}},{key:"setRemoteDescription",value:function(R){return(0,V.debug)(D,"[setremotedescription]"),this._peerConnection.setRemoteDescription(new c.RTCSessionDescription(R))}},{key:"addIceCandidate",value:function(R){return(0,V.debug)(D,"[addcandidate]"),this._peerConnection.addIceCandidate(R)}},{key:"post",value:function(R){if(this._dataChannel){var G="string"==typeof R?R:(0,m.default)(R,null,2);(0,V.debug)(D,"[datachannel.send] message: "+G);try{return this._dataChannel.send(G),!0}catch(Y){(0,V.error)(D,Y.hasOwnProperty("message")?Y.message:Y)}}return!1}},{key:"connection",get:function(){return this._peerConnection}},{key:"dataChannel",get:function(){return this._dataChannel}}]),k}(A.default);d.default=F},function(W,d,n){"use strict";function l(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(0)),P=l(n(1)),O=l(n(7)),S=n(2),y="R5ProPublishView",i=function(){function a(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"red5pro-publisher";(0,m.default)(this,a);try{this._targetElement=O.default.resolveElement(h)}catch(g){throw(0,S.error)(y,"Could not instantiate a new instance of Red5ProPublisher. Reason: "+g.message),g}}return(0,P.default)(a,[{key:"attachPublisher",value:function(h){(0,S.debug)(y,"[attachpublisher]"),h.setView(this,O.default.getElementId(this._targetElement))}},{key:"preview",value:function(h){var g=this.isAutoplay;(0,S.debug)(y,"[preview]: autoplay("+g+")"),O.default.setVideoSource(this._targetElement,h,g)}},{key:"unpreview",value:function(){O.default.setVideoSource(this._targetElement,null,this.isAutoplay)}},{key:"isAutoplay",get:function(){return O.default.hasAttributeDefined(this._targetElement,"autoplay")}},{key:"view",get:function(){return this._targetElement}}]),a}();d.default=i},function(W,d,n){W.exports={default:n(166),__esModule:!0}},function(W,d,n){"use strict";function l(O){return O&&O.__esModule?O:{default:O}}d.__esModule=!0;var m=l(n(148)),P=l(n(147)),v="function"==typeof P.default&&"symbol"==typeof m.default?function(O){return typeof O}:function(O){return O&&"function"==typeof P.default&&O.constructor===P.default&&O!==P.default.prototype?"symbol":typeof O};d.default="function"==typeof P.default&&"symbol"===v(m.default)?function(O){return void 0===O?"undefined":v(O)}:function(O){return O&&"function"==typeof P.default&&O.constructor===P.default&&O!==P.default.prototype?"symbol":void 0===O?"undefined":v(O)}},function(W,d){W.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(W,d,n){var l=n(20),p=n(69),m=n(35),_=n(56),P=n(175);W.exports=function(v,O){var S=1==v,y=2==v,r=3==v,i=4==v,a=6==v,h=5==v||a,g=O||P;return function(c,T,A){for(var L,x,V=m(c),D=p(V),F=l(T,A,3),I=_(D.length),k=0,R=S?g(c,I):y?g(c,0):void 0;I>k;k++)if((h||k in D)&&(x=F(L=D[k],k,V),v))if(S)R[k]=x;else if(x)switch(v){case 3:return!0;case 5:return L;case 6:return k;case 2:R.push(L)}else if(i)return!1;return a?-1:r||i?i:R}}},function(W,d,n){"use strict";var l=n(12),p=n(11),m=n(33),_=n(26),P=n(22),v=n(55),O=n(40),S=n(48),y=n(14),r=n(42),i=n(15).f,a=n(65)(0),h=n(17);W.exports=function(g,c,T,A,L,x){var V=l[g],D=V,F=L?"set":"add",I=D&&D.prototype,k={};return h&&"function"==typeof D&&(x||I.forEach&&!_(function(){(new D).entries().next()}))?(D=c(function(R,G){S(R,D,g,"_c"),R._c=new V,null!=G&&O(G,L,R[F],R)}),a("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(R){var G="add"==R||"set"==R;R in I&&(!x||"clear"!=R)&&P(D.prototype,R,function(Y,K){if(S(this,D,R),!G&&x&&!y(Y))return"get"==R&&void 0;var $=this._c[R](0===Y?0:Y,K);return G?this:$})}),"size"in I&&i(D.prototype,"size",{get:function(){return this._c.size}})):(D=A.getConstructor(c,g,L,F),v(D.prototype,T),m.NEED=!0),r(D,g),k[g]=D,p(p.G+p.W+p.F,k),x||A.setStrong(D,g,L),D}},function(W,d,n){var l=n(14),p=n(12).document,m=l(p)&&l(p.createElement);W.exports=function(_){return m?p.createElement(_):{}}},function(W,d){W.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(W,d,n){var l=n(39);W.exports=Object("z").propertyIsEnumerable(0)?Object:function(p){return"String"==l(p)?p.split(""):Object(p)}},function(W,d,n){"use strict";var l=n(51),p=n(11),m=n(73),_=n(22),P=n(21),v=n(32),O=n(180),S=n(42),y=n(112),r=n(9)("iterator"),i=!([].keys&&"next"in[].keys()),a=function(){return this};W.exports=function(h,g,c,T,A,L,x){O(c,g,T);var V,D,F,I=function(z){if(!i&&z in Y)return Y[z];switch(z){case"keys":case"values":return function(){return new c(this,z)}}return function(){return new c(this,z)}},k=g+" Iterator",R="values"==A,G=!1,Y=h.prototype,K=Y[r]||Y["@@iterator"]||A&&Y[A],$=K||I(A),ee=A?R?I("entries"):$:void 0,J="Array"==g&&Y.entries||K;if(J&&(F=y(J.call(new h)))!==Object.prototype&&(S(F,k,!0),l||P(F,r)||_(F,r,a)),R&&K&&"values"!==K.name&&(G=!0,$=function(){return K.call(this)}),l&&!x||!i&&!G&&Y[r]||_(Y,r,$),v[g]=$,v[k]=a,A)if(V={values:R?$:I("values"),keys:L?$:I("keys"),entries:ee},x)for(D in V)D in Y||m(Y,D,V[D]);else p(p.P+p.F*(i||G),g,V);return V}},function(W,d,n){var l=n(53),p=n(41),m=n(23),_=n(77),P=n(21),v=n(104),O=Object.getOwnPropertyDescriptor;d.f=n(17)?O:function(S,y){if(S=m(S),y=_(y,!0),v)try{return O(S,y)}catch{}if(P(S,y))return p(!l.f.call(S,y),S[y])}},function(W,d){d.f=Object.getOwnPropertySymbols},function(W,d,n){W.exports=n(22)},function(W,d,n){var l=n(75)("keys"),p=n(57);W.exports=function(m){return l[m]||(l[m]=p(m))}},function(W,d,n){var l=n(12),p=l["__core-js_shared__"]||(l["__core-js_shared__"]={});W.exports=function(m){return p[m]||(p[m]={})}},function(W,d){var n=Math.ceil,l=Math.floor;W.exports=function(p){return isNaN(p=+p)?0:(p>0?l:n)(p)}},function(W,d,n){var l=n(14);W.exports=function(p,m){if(!l(p))return p;var _,P;if(m&&"function"==typeof(_=p.toString)&&!l(P=_.call(p))||"function"==typeof(_=p.valueOf)&&!l(P=_.call(p))||!m&&"function"==typeof(_=p.toString)&&!l(P=_.call(p)))return P;throw TypeError("Can't convert object to primitive value")}},function(W,d,n){var l=n(12),p=n(4),m=n(51),_=n(79),P=n(15).f;W.exports=function(v){var O=p.Symbol||(p.Symbol=m?{}:l.Symbol||{});"_"==v.charAt(0)||v in O||P(O,v,{value:_.f(v)})}},function(W,d,n){d.f=n(9)},function(W,d,n){var l=n(49),p=n(9)("iterator"),m=n(32);W.exports=n(4).getIteratorMethod=function(_){if(null!=_)return _[p]||_["@@iterator"]||m[l(_)]}},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.embedSwfObject=d.defineEmbedElement=void 0;var _,p=(_=n(7))&&_.__esModule?_:{default:_},m=n(8);d.defineEmbedElement=function(_,P){var v=new m.DeferredPromise,O=_.id;if("video"===_.nodeName.toLowerCase()){var S=p.default.createElement("div");S.id=O+"_rtmp",P.appendChild(S),_.parentElement&&_.parentElement.removeChild(_),v.resolve(S.id)}else v.resolve(O);return v.promise},d.embedSwfObject=function(_,P,v,O,S){var y=new m.DeferredPromise,r={quality:"high",wmode:"opaque",bgcolor:P.backgroundColor||"#000",allowscriptaccess:"always",allowfullscreen:"true",allownetworking:"all"},i={id:_,name:_,align:"middle"};return O.hasFlashPlayerVersion(P.minFlashVersion)?O.embedSWF(P.swf,S,P.embedWidth||640,P.embedHeight||480,P.minFlashVersion,P.productInstallURL,v,r,i,function(a){a.success?y.resolve():y.reject("Flash Object embed failed.")}):y.reject("Flash Player Version is not supported."),y.promise}},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.applyOrientation=void 0;var y,m=((y=n(7))&&y.__esModule?y:{default:y}).default.requestFrame,_=["webkitTransformOrigin","mozTransformOrigin","msTransformOrigin","oTransformOrigin","transformOrigin"],P=["webkitTransform","mozTransform","msTransform","oTransform","transform"],v=["webkitTransition","mozTransition","msTransition","oTransition","transition"],O={0:{origin:"center center",transform:"rotate(0deg)"},90:{origin:"left top",transform:"rotate(90deg) translateY(-100%)"},180:{origin:"center center",transform:"rotate(180deg)"},270:{origin:"top left",transform:"rotate(270deg) translateX(-100%) translateY(0%)"},"-90":{origin:"left top",transform:"rotate(-90deg) translateX(-100%)"},"-180":{origin:"center center",transform:"rotate(-180deg)"},"-270":{origin:"top left",transform:"rotate(-270deg) translateY(-100%)"}},S=function y(r,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var h=r.parentNode;if(h){var g=h.clientWidth;r.style.width=a?h.clientHeight+"px":g+"px";var L=.5*(a?g-r.clientHeight:g-r.clientWidth);r.style.position="relative",r.style.left=L+"px"}i&&i(y(r,i,a))}};d.applyOrientation=function(y,r,i){var a=void 0,h=P.length,g=(r%=360)%180!=0,c=y.parentNode,T=y.width?y.width:c.clientWidth,A=y.height?y.height:c.clientHeight,L=O[r.toString()];for(a=0;a<h;a++)y.style[_[a]]=L.origin,y.style[P[a]]=L.transform,y.style[v[a]]="transform 0.0s linear";g?(y.style.width=A+"px",c.style.height=A+"px"):(y.style.width=T+"px",y.style.height=A+"px",c.style.height="unset"),document.attachEvent?c.attachEvent("resize",S(y,m,g)):S(y,m,g)()}},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.MessageTransportStateEventTypes=void 0;var m,p=(m=n(18))&&m.__esModule?m:{default:m};d.MessageTransportStateEventTypes=(0,p.default)({OPEN:"MessageTransport.Open",CLOSE:"MessageTransport.Close",CHANGE:"MessageTransport.Change",ERROR:"MessageTransport.Error"})},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.RTMPPublisherEventTypes=d.RTCPublisherEventTypes=d.FailoverPublisherEventTypes=d.PublisherEventTypes=void 0;var m,p=(m=n(18))&&m.__esModule?m:{default:m};d.PublisherEventTypes=(0,p.default)({CONNECT_SUCCESS:"Connect.Success",CONNECT_FAILURE:"Connect.Failure",PUBLISH_START:"Publish.Start",PUBLISH_FAIL:"Publish.Fail",PUBLISH_INVALID_NAME:"Publish.InvalidName",UNPUBLISH_SUCCESS:"Unpublish.Success",PUBLISH_METADATA:"Publish.Metadata",PUBLISH_STATUS:"Publish.Status",PUBLISH_AVAILABLE:"Publish.Available",PUBLISH_INSUFFICIENT_BANDWIDTH:"Publish.InsufficientBW",PUBLISH_SUFFICIENT_BANDWIDTH:"Publish.SufficientBW",PUBLISH_RECOVERING_BANDWIDTH:"Publish.RecoveringBW",PUBLISH_SEND_INVOKE:"Publish.Send.Invoke",CONNECTION_CLOSED:"Publisher.Connection.Closed",DIMENSION_CHANGE:"Publisher.Video.DimensionChange"}),d.FailoverPublisherEventTypes=(0,p.default)({PUBLISHER_REJECT:"Publisher.Reject",PUBLISHER_ACCEPT:"Publisher.Accept"}),d.RTCPublisherEventTypes=(0,p.default)({CONSTRAINTS_ACCEPTED:"WebRTC.MediaConstraints.Accepted",CONSTRAINTS_REJECTED:"WebRTC.MediaConstraints.Rejected",MEDIA_STREAM_AVAILABLE:"WebRTC.MediaStream.Available",PEER_CONNECTION_AVAILABLE:"WebRTC.PeerConnection.Available",OFFER_START:"WebRTC.Offer.Start",OFFER_END:"WebRTC.Offer.End",PEER_CANDIDATE_END:"WebRTC.PeerConnection.CandidateEnd",ICE_TRICKLE_COMPLETE:"WebRTC.IceTrickle.Complete",DATA_CHANNEL_OPEN:"WebRTC.DataChannel.Open",DATA_CHANNEL_AVAILABLE:"WebRTC.DataChannel.Available",DATA_CHANNEL_CLOSE:"WebRTC.DataChannel.Close",DATA_CHANNEL_MESSAGE:"WebRTC.DataChannel.Message",DATA_CHANNEL_ERROR:"WebRTC.DataChannel.Error",PEER_CONNECTION_OPEN:"WebRTC.PeerConnection.Open"}),d.RTMPPublisherEventTypes=(0,p.default)({EMBED_SUCCESS:"FlashPlayer.Embed.Success",EMBED_FAILURE:"FlashPlayer.Embed.Failure"})},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.SharedObjectEventTypes=void 0;var m,p=(m=n(18))&&m.__esModule?m:{default:m};d.SharedObjectEventTypes=(0,p.default)({CONNECT_SUCCESS:"Connect.Success",CONNECT_FAILURE:"Connect.Failure",PROPERTY_UPDATE:"SharedObject.PropertyUpdate",PROPERTY_REMOVE:"SharedObject.PropertyRemove",METHOD_UPDATE:"SharedObject.MethodUpdate",CONNECTION_CLOSED:"SharedObject.Connection.Closed"})},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.RTMPSubscriberEventTypes=d.RTCSubscriberEventTypes=d.FailoverSubscriberEventTypes=d.SubscriberEventTypes=void 0;var m,p=(m=n(18))&&m.__esModule?m:{default:m};d.SubscriberEventTypes=(0,p.default)({CONNECT_SUCCESS:"Connect.Success",CONNECT_FAILURE:"Connect.Failure",SUBSCRIBE_START:"Subscribe.Start",SUBSCRIBE_STOP:"Subscribe.Stop",SUBSCRIBE_FAIL:"Subscribe.Fail",SUBSCRIBE_INVALID_NAME:"Subscribe.InvalidName",SUBSCRIBE_METADATA:"Subscribe.Metadata",SUBSCRIBE_STATUS:"Subscribe.Status",SUBSCRIBE_SEND_INVOKE:"Subscribe.Send.Invoke",SUBSCRIBE_PUBLISHER_CONGESTION:"Subscribe.Publisher.NetworkCongestion",SUBSCRIBE_PUBLISHER_RECOVERY:"Subscribe.Publisher.NetworkRecovery",PLAY_UNPUBLISH:"Subscribe.Play.Unpublish",CONNECTION_CLOSED:"Subscribe.Connection.Closed",ORIENTATION_CHANGE:"Subscribe.Orientation.Change",STREAMING_MODE_CHANGE:"Subscribe.StreamingMode.Change",VIDEO_DIMENSIONS_CHANGE:"Subscribe.VideoDimensions.Change",VOLUME_CHANGE:"Subscribe.Volume.Change",PLAYBACK_TIME_UPDATE:"Subscribe.Time.Update",PLAYBACK_STATE_CHANGE:"Subscribe.Playback.Change",FULL_SCREEN_STATE_CHANGE:"Subscribe.FullScreen.Change",AUTO_PLAYBACK_FAILURE:"Subscribe.Autoplay.Failure",AUTO_PLAYBACK_MUTED:"Subscribe.Autoplay.Muted"}),d.FailoverSubscriberEventTypes=(0,p.default)({SUBSCRIBER_REJECT:"Subscriber.Reject",SUBSCRIBER_ACCEPT:"Subscriber.Accept"}),d.RTCSubscriberEventTypes=(0,p.default)({PEER_CONNECTION_AVAILABLE:"WebRTC.PeerConnection.Available",OFFER_START:"WebRTC.Offer.Start",OFFER_END:"WebRTC.Offer.End",ANSWER_START:"WebRTC.Answer.Start",ANSWER_END:"WebRTC.Answer.End",CANDIDATE_START:"WebRTC.Candidate.Start",CANDIDATE_END:"WebRTC.Candidate.End",PEER_CANDIDATE_END:"WebRTC.PeerConnection.CandidateEnd",ICE_TRICKLE_COMPLETE:"WebRTC.IceTrickle.Complete",DATA_CHANNEL_MESSAGE:"WebRTC.DataChannel.Message",DATA_CHANNEL_OPEN:"WebRTC.DataChannel.Open",DATA_CHANNEL_AVAILABLE:"WebRTC.DataChannel.Available",DATA_CHANNEL_CLOSE:"WebRTC.DataChannel.Close",DATA_CHANNEL_ERROR:"WebRTC.DataChannel.Error",PEER_CONNECTION_OPEN:"WebRTC.PeerConnection.Open",ON_ADD_STREAM:"WebRTC.Add.Stream"}),d.RTMPSubscriberEventTypes=(0,p.default)({EMBED_SUCCESS:"FlashPlayer.Embed.Success",EMBED_FAILURE:"FlashPlayer.Embed.Failure",ABR_LEVEL_CHANGE:"RTMP.AdaptiveBitrate.Level"})},function(W,d,n){"use strict";function l(L){return L&&L.__esModule?L:{default:L}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(3)),P=l(n(0)),O=l(n(1)),y=l(n(6)),i=l(n(5)),h=l(n(19)),g=n(8),c=n(2),A=function(L){function x(V){(0,P.default)(this,x);var D=(0,y.default)(this,(x.__proto__||(0,m.default)(x)).call(this));return D._name=V||"MessageTransport",D._responseHandlers=[],D._asyncTickets=[],D}return(0,i.default)(x,L),(0,O.default)(x,[{key:"getJsonFromSocketMessage",value:function(V){try{return"string"==typeof V.data?JSON.parse(V.data):V.data}catch(D){(0,c.warn)(this._name,"Could not parse message as JSON. Message= "+V.data+". Error= "+D.message)}return null}},{key:"addResponseHandler",value:function(V){this._responseHandlers.push(V)}},{key:"respond",value:function(V){(0,c.warn)(this._name,"respond() should be overriden.")}},{key:"post",value:function(V){(0,c.warn)(this._name,"post() should be overriden.")}},{key:"postAsync",value:function(V){var D=new g.DeferredPromise,F=Math.floor(65536*Math.random()).toString(16);return V.id=F,V.async=!0,this._asyncTickets.push({id:F,promise:D}),this.post(V),D.promise}},{key:"addSharedObjectResponseHandler",value:function(V){this._responseHandlers.push(V)}},{key:"removeSharedObjectResponseHandler",value:function(V){for(var D=this._responseHandlers.length;--D>-1;)if(this._responseHandlers[D]===V)return void this._responseHandlers.splice(D,1)}},{key:"handleMessageResponse",value:function(V){var D=void 0,I=this._responseHandlers.length;for(D=0;D<I;D++)if(this._responseHandlers[D].respond(V))return!0;return!1}},{key:"getRemoteSharedObject",value:function(V){this.post({sharedObjectGetRemote:{name:V}})}},{key:"connectToSharedObject",value:function(V){this.post({sharedObjectConnect:{name:V}})}},{key:"sendToSharedObject",value:function(V,D,F){this.post({sharedObjectSend:{name:V,method:D,message:F}})}},{key:"sendPropertyToSharedObject",value:function(V,D,F){this.post({sharedObjectSetProperty:{name:V,key:D,value:F}})}},{key:"closeSharedObject",value:function(V){this.post({sharedObjectClose:{name:V}})}}]),x}(h.default);d.default=A},function(W,d,n){"use strict";function l(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(0)),O=l(n(1)),y=l(n(7)),r=n(2),i="R5ProRTMPSharedObjectHandler",a=function(){function h(){(0,P.default)(this,h),this._element=void 0,this._responseHandlers=[]}return(0,O.default)(h,[{key:"addResponseHandler",value:function(g){this._responseHandlers.push(g)}},{key:"removeResponseHandler",value:function(g){for(var c=this._responseHandlers.length;--c>-1;)if(this._responseHandlers[c]===g)return void this._responseHandlers.splice(c,1)}},{key:"handleSharedObjectEvent",value:function(g){(0,r.debug)(i,"[sharedobject:event]");var c=void 0,T=this._responseHandlers.length;for(c=0;c<T&&!this._responseHandlers[c].respond(JSON.parse(g));c++);}},{key:"assignSharedObjectResponder",value:function(g,c){var T=this.handleSharedObjectEvent.bind(this),A=c.id.split("-").join("_"),L=["handleSharedObjectEvent",A].join("_");(0,r.debug)(i,"[assign:sharedobject:responder] :: "+A),(0,r.debug)(i,"[sharedoject:responder] :: "+L),c.setSharedObjectResponder(g,L),y.default.setGlobal(L,T)}},{key:"connect",value:function(g){this._element=y.default.getEmbedObject(g),this._element||(0,r.warn)("Could not locate embedded Flash object for id: "+g)}},{key:"disconnect",value:function(){for(;this._responseHandlers.length>0;)this._responseHandlers.shift()}},{key:"sendToSharedObject",value:function(g,c,T){(0,r.debug)(i,"[sendToSharedObject]");try{this._element.sharedObjectSend(g,c,"string"==typeof T?T:(0,m.default)(T))}catch(A){(0,r.warn)("Could not send to shared object ("+g+"). Error: "+A.message)}}},{key:"sendPropertyToSharedObject",value:function(g,c,T){(0,r.debug)(i,"[sendPropertyToSharedObject]");try{this._element.sharedObjectSendProperty(g,c,T)}catch(A){(0,r.warn)("Could not send to shared object ("+g+"). Error: "+A.message)}}},{key:"getRemoteSharedObject",value:function(g){(0,r.debug)(i,"[getRemoteSharedObject]");try{this.assignSharedObjectResponder(g,this._element),this._element.getRemoteSharedObject(g)}catch(c){(0,r.warn)("Could not get remote shared object ("+name+"). Error: "+c.message)}}},{key:"connectToSharedObject",value:function(g){(0,r.debug)(i,"[connectToSharedObject]");try{this._element.connectToSharedObject(g)}catch(c){(0,r.warn)("Could not connect to shared object ("+name+"). Error: "+c.message)}}},{key:"closeSharedObject",value:function(g){(0,r.debug)(i,"[disconnectToSharedObject]");try{this._element.disconnectFromSharedObject(g)}catch(c){(0,r.warn)("Could not disconnect to shared object ("+name+"). Error: "+c.message)}}}]),h}();d.default=a},function(W,d,n){"use strict";function l(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(d,"__esModule",{value:!0}),d.RTMPMediaConstraint=d.RTCMediaConstraint=void 0;var m=l(n(0)),P=l(n(96)),v=function(i,a,h){(0,P.default)(i,a,{value:h,writable:!0,enumerable:!0})},O=function i(){(0,m.default)(this,i),v(this,"width",{exact:640}),v(this,"height",{exact:480})},S=function i(){(0,m.default)(this,i),v(this,"width",640),v(this,"height",480),v(this,"force",!1),v(this,"framerate",15),v(this,"bandwidth",5e4),v(this,"quality",80),v(this,"profile","baseline"),v(this,"level",3.1)};d.RTCMediaConstraint=function i(){var a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;(0,m.default)(this,i),v(this,"audio",a),v(this,"video",h||new O)},d.RTMPMediaConstraint=function i(){var a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;(0,m.default)(this,i),v(this,"audio",a),v(this,"video",h||new S)}},function(W,d,n){"use strict";function l(x){return x&&x.__esModule?x:{default:x}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(3)),P=l(n(0)),O=l(n(1)),y=l(n(6)),i=l(n(31)),h=l(n(5)),c=l(n(45)),T=n(8),A=n(46),L=function(x){function V(){var D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;(0,P.default)(this,V);var I="sharedobject-"+Math.floor(65536*Math.random()).toString(16),k=(0,y.default)(this,(V.__proto__||(0,m.default)(V)).call(this,D,I));return k.id=I,k._sharedObjectName=void 0,k}return(0,h.default)(V,x),(0,O.default)(V,[{key:"getRemoteSharedObject",value:function(D){(0,i.default)(V.prototype.__proto__||(0,m.default)(V.prototype),"getRemoteSharedObject",this).call(this,D),this._sharedObjectName=D}},{key:"init",value:function(D){var F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,k=new T.DeferredPromise;this.id=F||this.id,this._name=this.id;var R=(0,A.rtcSocketEndpointFromOptions)(D,{id:this.id,capabilities:I});return this.setUp(R,k),k.promise}},{key:"respond",value:function(D){if(!(0,i.default)(V.prototype.__proto__||(0,m.default)(V.prototype),"respond",this).call(this,D)&&D.data){var F=this.getJsonFromSocketMessage(D);if(F&&F.data){var I=F.data;if("status"===I.type)"NetConnection.Connect.Closed"===I.code?(this.respond({data:{data:{status:"SharedObject.Status.Disconnect",message:I.code,name:this._sharedObjectName}}}),this._sharedObjectName=void 0):"NetConnection.ICE.TrickleCompleted"===I.code&&this._responder?this._responder.onIceTrickleComplete():"NetConnection.DataChannel.Available"===I.code&&this._responder?this._responder.onDataChannelAvailable(I.description):this._responder&&this._responder.onSocketStatus(I);else if(I.sdp){var k=I.sdp;"answer"===k.type&&this._responder&&this._responder.onSDPAnswer(k)}else I.candidate&&this._responder&&this._responder.onAddIceCandidate(I.candidate)}}}},{key:"close",value:function(){this._sharedObjectName=void 0,this.tearDown()}},{key:"getMessageTransport",value:function(){return this}},{key:"getConnection",value:function(){return this}}]),V}(c.default);d.default=L},function(W,d,n){"use strict";function l(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(d,"__esModule",{value:!0}),d.SliderEventTypes=d.SliderEvent=void 0;var m=l(n(18)),P=l(n(3)),O=l(n(0)),y=l(n(1)),i=l(n(6)),h=l(n(5)),c=function(A){function L(x,V,D){(0,O.default)(this,L);var F=(0,i.default)(this,(L.__proto__||(0,P.default)(L)).call(this,x,D));return F._control=V,F}return(0,h.default)(L,A),(0,y.default)(L,[{key:"control",get:function(){return this._control}}]),L}(n(13).Event),T=(0,m.default)({CHANGE_START:"changestart",CHANGE:"change",CHANGE_COMPLETE:"changecomplete"});d.SliderEvent=c,d.SliderEventTypes=T},function(W,d,n){"use strict";function l(T){return T&&T.__esModule?T:{default:T}}Object.defineProperty(d,"__esModule",{value:!0}),d.ImplFactoryOrder=void 0;var m=l(n(149)),P=l(n(150)),O=l(n(0)),y=l(n(1)),i=l(n(98)),a=n(8),h=new i.default,g=function(T){return h.has(T)||h.set(T,{}),h.get(T)},c=d.ImplFactoryOrder=function(){function T(){var A=this;(0,O.default)(this,T),this.listorder=P.default.mark(function L(x){return P.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(!(x.length>0)){V.next=5;break}return V.next=3,x.shift();case 3:V.next=0;break;case 5:case"end":return V.stop()}},L,this)}),g(this).find=function(L,x,V,D){var F=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,I=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,k=g(A).next(L,x),R=(0,m.default)(k,2),Y=R[1];if(Y){var $=V[R[0]];$=$||V,(F?(new Y)[F]($):new Y($)).then(function(ee){D.resolve(ee)}).catch(function(ee){I=ee,g(A).find(L,x,V,D,F,I)})}else D.reject(I)},g(this).next=function(L,x){var V=void 0,D=void 0,F=L.next();return F.done||(V=x.get(D=F.value)),[D,V]}}return(0,y.default)(T,[{key:"create",value:function(A,L,x){var V=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,D=new a.DeferredPromise;return g(this).find(this.listorder(A.slice()),L,x,D,V),D.promise}}]),T}();d.default=c},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0});var l=d.curry=function(m){var _=m.length;return function P(){var v=Array.prototype.slice.call(arguments,0);return v.length>=_?m.apply(null,v):function(){var O=Array.prototype.slice.call(arguments,0);return P.apply(null,v.concat(O))}}},p=(d.filter=l(function(m,_){for(var P=0,v=_.length,O=[];P<v;)m(_[P])&&(O[O.length]=_[P]),P+=1;return O}),d.toInt=function(m){return"string"==typeof m?parseInt(m,10):Math.round(m)});d.getOrElse=function(m,_){return m||_},d.getIntOrElse=function(m,_){return isNaN(p(m))?_:p(m)}},function(W,d,n){W.exports={default:n(155),__esModule:!0}},function(W,d,n){W.exports={default:n(156),__esModule:!0}},function(W,d,n){W.exports={default:n(160),__esModule:!0}},function(W,d,n){W.exports={default:n(167),__esModule:!0}},function(W,d,n){W.exports={default:n(170),__esModule:!0}},function(W,d,n){"use strict";d.__esModule=!0;var m,p=(m=n(139))&&m.__esModule?m:{default:m};d.default=function(m){if(Array.isArray(m)){for(var _=0,P=Array(m.length);_<m.length;_++)P[_]=m[_];return P}return(0,p.default)(m)}},function(W,d,n){"use strict";function l(I){if(null==I)return I;if(Array.isArray(I))return I.slice();if("object"==typeof I){var k={};return Object.keys(I).forEach(function(R){k[R]=I[R]}),k}return I}function p(){var I={},k=Error.stackTraceLimit,R=Error.prepareStackTrace;return Error.stackTraceLimit=3,Error.prepareStackTrace=function(G,Y){var K=Y[2];I.file=K.getFileName(),I.line=K.getLineNumber();var $=K.getFunctionName();$&&(I.func=$)},Error.stackTraceLimit=k,Error.prepareStackTrace=R,I}function _(I,k){if(k){if(c[k])return;c[k]=!0}console.error(I+"\n")}function P(I){return c[I]}function v(){}function O(){}function S(I){return"string"==typeof I?D[I.toLowerCase()]:I}function y(I,k,R){if(!(this instanceof y))return new y(I,k);var G,Y,K,$;if(void 0!==k&&(G=I,I=k,!(G instanceof y)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!I)throw new TypeError("options (object) is required");if(G){if(I.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!I.name)throw new TypeError("options.name (string) is required");if(I.stream&&I.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(I.streams&&!Array.isArray(I.streams))throw new TypeError("invalid options.streams: must be an array");if(I.serializers&&("object"!=typeof I.serializers||Array.isArray(I.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(G&&R){this._isSimpleChild=!0,this._level=G._level,this.streams=G.streams,this.serializers=G.serializers,this.src=G.src,Y=this.fields={};var ee=Object.keys(G.fields);for($=0;$<ee.length;$++)Y[K=ee[$]]=G.fields[K];var J=Object.keys(I);for($=0;$<J.length;$++)Y[K=J[$]]=I[K]}else{var z=this;if(G){for(this._level=G._level,this.streams=[],$=0;$<G.streams.length;$++){var te=l(G.streams[$]);te.closeOnExit=!1,this.streams.push(te)}this.serializers=l(G.serializers),this.src=G.src,this.fields=l(G.fields),I.level&&this.level(I.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};I.stream?z.addStream({type:"stream",stream:I.stream,closeOnExit:!1,level:I.level}):I.streams?I.streams.forEach(function(X){z.addStream(X,I.level)}):G&&I.level?this.level(I.level):G||z.addStream({type:"raw",stream:new v,closeOnExit:!1,level:I.level}),I.serializers&&z.addSerializers(I.serializers),I.src&&(this.src=!0),delete(Y=l(I)).stream,delete Y.level,delete Y.streams,delete Y.serializers,delete Y.src,this.serializers&&this._applySerializers(Y),Object.keys(Y).forEach(function(X){z.fields[X]=Y[X]})}}function r(I){return function(){var k=this,R=null,G=arguments,Y=null;if(this._emit){if(0===arguments.length)return this._level<=I;this._level>I||(Y=function($){var ee;$[0]instanceof Error?(R={err:k.serializers&&k.serializers.err?k.serializers.err($[0]):y.stdSerializers.err($[0])},ee={err:!0},G=1===$.length?[R.err.message]:Array.prototype.slice.call($,1)):"object"!=typeof $[0]&&null!==$[0]||Array.isArray($[0])?(R=null,G=Array.prototype.slice.call($)):(R=$[0],G=Array.prototype.slice.call($,1));var J=l(k.fields);J.level=I;var z=R?l(R):null;return z&&(k.serializers&&k._applySerializers(z,ee),Object.keys(z).forEach(function(te){J[te]=z[te]})),J.levelName=F[I],J.msg=g.apply(k,G),J.time||(J.time=new Date),k.src&&!J.src&&(J.src=p()),J.v=h,J}(G),this._emit(Y))}else if(!P.unbound){var K=p();_(g("bunyan usage error: %s:%s: attempt to log with an unbound log method: `this` is: %s",K.file,K.line,this.toString()),"unbound")}}}function i(I){var k=I.stack||I.toString();if(I.cause&&"function"==typeof I.cause){var R=I.cause();R&&(k+="\nCaused by: "+i(R))}return k}function a(){var I=[];return function(k,R){return R&&"object"==typeof R?-1!==I.indexOf(R)?"[Circular]":(I.push(R),R):R}}var h=0,g=function(I){if(null===I)return"null";if("string"!=typeof I)return I.toString();for(var R=1,G=arguments,Y=G.length,K=String(I).replace(/%[sdj%]/g,function(ee){if("%%"===ee)return"%";if(R>=Y)return ee;switch(ee){case"%s":return String(G[R++]);case"%d":return Number(G[R++]);case"%j":try{return JSON.stringify(G[R++])}catch{return"[Circular]"}break;default:return ee}}),$=G[R];R<Y;$=G[++R])K+=" "+$;return K},c={};v.prototype.write=function(I){I.level<A?console.log(I):I.level<L?console.info(I):I.level<x?console.warn(I):console.error(I),I.err&&I.err.stack&&console.error(I.err.stack)},O.prototype.write=function(I){function k(K,$){return Array($+1-(K+"").length).join("0")+K}var R;R=I.level<T?"color: DeepPink":I.level<A?"color: GoldenRod":I.level<L?"color: DarkTurquoise":I.level<x?"color: Purple":I.level<V?"color: Crimson":"color: Black";var G=I.childName?I.name+"/"+I.childName:I.name,Y=F[I.level].toUpperCase();Y=Array(6-Y.length).join(" ")+Y,console.log("[%s:%s:%s:%s] %c%s%c: %s: %c%s",k(I.time.getHours(),2),k(I.time.getMinutes(),2),k(I.time.getSeconds(),2),k(I.time.getMilliseconds(),4),R,Y,"color: DimGray",G,"color: SteelBlue",I.msg),I.err&&I.err.stack&&console.log("%c%s,",R,I.err.stack)};var T=20,A=30,L=40,x=50,V=60,D={trace:10,debug:T,info:A,warn:L,error:x,fatal:V},F={};Object.keys(D).forEach(function(I){F[D[I]]=I}),y.prototype.addStream=function(I,k){var R=this;switch(null!=k||(k=A),!(I=l(I)).type&&I.stream&&(I.type="raw"),I.raw="raw"===I.type,I.level=S(I.level?I.level:k),I.level<R._level&&(R._level=I.level),I.type){case"stream":case"raw":I.closeOnExit||(I.closeOnExit=!1);break;default:throw new TypeError('unknown stream type "'+I.type+'"')}R.streams.push(I),delete R.haveNonRawStreams},y.prototype.addSerializers=function(I){var k=this;k.serializers||(k.serializers={}),Object.keys(I).forEach(function(R){var G=I[R];if("function"!=typeof G)throw new TypeError(g('invalid serializer for "%s" field: must be a function',R));k.serializers[R]=G})},y.prototype.child=function(I,k){return new this.constructor(this,I||{},k)},y.prototype.level=function(I){if(void 0===I)return this._level;for(var k=S(I),R=this.streams.length,G=0;G<R;G++)this.streams[G].level=k;this._level=k},y.prototype.levels=function(I,k){if(void 0===I)return this.streams.map(function(ee){return ee.level});var R;if("number"==typeof I){if(void 0===(R=this.streams[I]))throw new Error("invalid stream index: "+I)}else{for(var G=this.streams.length,Y=0;Y<G;Y++){var K=this.streams[Y];if(K.name===I){R=K;break}}if(!R)throw new Error(g('no stream with name "%s"',I))}if(void 0===k)return R.level;var $=S(k);R.level=$,$<this._level&&(this._level=$)},y.prototype._applySerializers=function(I,k){var R=this;Object.keys(this.serializers).forEach(function(G){if(!(void 0===I[G]||k&&k[G]))try{I[G]=R.serializers[G](I[G])}catch(Y){_(g('bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.\n%s',G,Y.stack||Y)),I[G]=g('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',G)}})},y.prototype._emit=function(I,k){var R,G;if(void 0===this.haveNonRawStreams)for(this.haveNonRawStreams=!1,R=0;R<this.streams.length;R++)if(!this.streams[R].raw){this.haveNonRawStreams=!0;break}if(k||this.haveNonRawStreams)try{G=JSON.stringify(I,a())+"\n"}catch(ee){var Y=ee.stack.split(/\n/g,2).join("\n");_('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function m(I,k){return k||(k=" "),k+I.split(/\r?\n/g).join("\n"+k)}(g("%s\n%s",I,ee.stack)),Y),G=g("(Exception in JSON.stringify(rec): %j. See stderr for details.)\n",ee.message)}if(k)return G;var K=I.level;for(R=0;R<this.streams.length;R++){var $=this.streams[R];$.level<=K&&$.stream.write($.raw?I:G)}return G},y.prototype.trace=r(10),y.prototype.debug=r(T),y.prototype.info=r(A),y.prototype.warn=r(L),y.prototype.error=r(x),y.prototype.fatal=r(V),(y.stdSerializers={}).err=function(I){return I&&I.stack?{message:I.message,name:I.name,stack:i(I),code:I.code,signal:I.signal}:I},W.exports=y,W.exports.TRACE=10,W.exports.DEBUG=T,W.exports.INFO=A,W.exports.WARN=L,W.exports.ERROR=x,W.exports.FATAL=V,W.exports.resolveLevel=S,W.exports.levelFromName=D,W.exports.nameFromLevel=F,W.exports.VERSION="0.2.3",W.exports.LOG_VERSION=h,W.exports.createLogger=function(I){return new y(I)},W.exports.safeCycles=a,W.exports.ConsoleFormattedStream=O,W.exports.ConsoleRawStream=v},function(W,d,n){"use strict";var l=n(15).f,p=n(52),m=n(55),_=n(20),P=n(48),v=n(50),O=n(40),S=n(70),y=n(109),r=n(114),i=n(17),a=n(33).fastKey,h=i?"_s":"size",g=function(c,T){var A,L=a(T);if("F"!==L)return c._i[L];for(A=c._f;A;A=A.n)if(A.k==T)return A};W.exports={getConstructor:function(c,T,A,L){var x=c(function(V,D){P(V,x,T,"_i"),V._i=p(null),V._f=void 0,V._l=void 0,V[h]=0,null!=D&&O(D,A,V[L],V)});return m(x.prototype,{clear:function(){for(var V=this,D=V._i,F=V._f;F;F=F.n)F.r=!0,F.p&&(F.p=F.p.n=void 0),delete D[F.i];V._f=V._l=void 0,V[h]=0},delete:function(V){var D=this,F=g(D,V);if(F){var I=F.n,k=F.p;delete D._i[F.i],F.r=!0,k&&(k.n=I),I&&(I.p=k),D._f==F&&(D._f=I),D._l==F&&(D._l=k),D[h]--}return!!F},forEach:function(V){P(this,x,"forEach");for(var D,F=_(V,arguments.length>1?arguments[1]:void 0,3);D=D?D.n:this._f;)for(F(D.v,D.k,this);D&&D.r;)D=D.p},has:function(V){return!!g(this,V)}}),i&&l(x.prototype,"size",{get:function(){return v(this[h])}}),x},def:function(c,T,A){var L,x,V=g(c,T);return V?V.v=A:(c._l=V={i:x=a(T,!0),k:T,v:A,p:L=c._l,n:void 0,r:!1},c._f||(c._f=V),L&&(L.n=V),c[h]++,"F"!==x&&(c._i[x]=V)),c},getEntry:g,setStrong:function(c,T,A){S(c,T,function(L,x){this._t=L,this._k=x,this._l=void 0},function(){for(var L=this,x=L._k,V=L._l;V&&V.r;)V=V.p;return L._t&&(L._l=V=V?V.n:L._t._f)?y(0,"keys"==x?V.k:"values"==x?V.v:[V.k,V.v]):(L._t=void 0,y(1))},A?"entries":"values",!A,!0),r(T)}}},function(W,d,n){var l=n(49),p=n(172);W.exports=function(m){return function(){if(l(this)!=m)throw TypeError(m+"#toJSON isn't generic");return p(this)}}},function(W,d,n){W.exports=n(12).document&&document.documentElement},function(W,d,n){W.exports=!n(17)&&!n(26)(function(){return 7!=Object.defineProperty(n(67)("div"),"a",{get:function(){return 7}}).a})},function(W,d,n){var l=n(32),p=n(9)("iterator"),m=Array.prototype;W.exports=function(_){return void 0!==_&&(l.Array===_||m[p]===_)}},function(W,d,n){var l=n(39);W.exports=Array.isArray||function(p){return"Array"==l(p)}},function(W,d,n){var l=n(16);W.exports=function(p,m,_,P){try{return P?m(l(_)[0],_[1]):m(_)}catch(O){var v=p.return;throw void 0!==v&&l(v.call(p)),O}}},function(W,d,n){var l=n(9)("iterator"),p=!1;try{var m=[7][l]();m.return=function(){p=!0},Array.from(m,function(){throw 2})}catch{}W.exports=function(_,P){if(!P&&!p)return!1;var v=!1;try{var O=[7],S=O[l]();S.next=function(){return{done:v=!0}},O[l]=function(){return S},_(O)}catch{}return v}},function(W,d){W.exports=function(n,l){return{value:l,done:!!n}}},function(W,d,n){"use strict";var l=n(34),p=n(72),m=n(53),_=n(35),P=n(69),v=Object.assign;W.exports=!v||n(26)(function(){var O={},S={},y=Symbol(),r="abcdefghijklmnopqrst";return O[y]=7,r.split("").forEach(function(i){S[i]=i}),7!=v({},O)[y]||Object.keys(v({},S)).join("")!=r})?function(O,S){for(var y=_(O),r=arguments.length,i=1,a=p.f,h=m.f;r>i;)for(var g,c=P(arguments[i++]),T=a?l(c).concat(a(c)):l(c),A=T.length,L=0;A>L;)h.call(c,g=T[L++])&&(y[g]=c[g]);return y}:v},function(W,d,n){var l=n(113),p=n(68).concat("length","prototype");d.f=Object.getOwnPropertyNames||function(m){return l(m,p)}},function(W,d,n){var l=n(21),p=n(35),m=n(74)("IE_PROTO"),_=Object.prototype;W.exports=Object.getPrototypeOf||function(P){return P=p(P),l(P,m)?P[m]:"function"==typeof P.constructor&&P instanceof P.constructor?P.constructor.prototype:P instanceof Object?_:null}},function(W,d,n){var l=n(21),p=n(23),m=n(173)(!1),_=n(74)("IE_PROTO");W.exports=function(P,v){var O,S=p(P),y=0,r=[];for(O in S)O!=_&&l(S,O)&&r.push(O);for(;v.length>y;)l(S,O=v[y++])&&(~m(r,O)||r.push(O));return r}},function(W,d,n){"use strict";var l=n(12),p=n(4),m=n(15),_=n(17),P=n(9)("species");W.exports=function(v){var O="function"==typeof p[v]?p[v]:l[v];_&&O&&!O[P]&&m.f(O,P,{configurable:!0,get:function(){return this}})}},function(W,d,n){var l,p,m,_=n(20),P=n(179),v=n(103),O=n(67),S=n(12),y=S.process,r=S.setImmediate,i=S.clearImmediate,a=S.MessageChannel,h=0,g={},c=function(){var A=+this;if(g.hasOwnProperty(A)){var L=g[A];delete g[A],L()}},T=function(A){c.call(A.data)};r&&i||(r=function(A){for(var L=[],x=1;arguments.length>x;)L.push(arguments[x++]);return g[++h]=function(){P("function"==typeof A?A:Function(A),L)},l(h),h},i=function(A){delete g[A]},"process"==n(39)(y)?l=function(A){y.nextTick(_(c,A,1))}:a?(m=(p=new a).port2,p.port1.onmessage=T,l=_(m.postMessage,m,1)):S.addEventListener&&"function"==typeof postMessage&&!S.importScripts?(l=function(A){S.postMessage(A+"","*")},S.addEventListener("message",T,!1)):l="onreadystatechange"in O("script")?function(A){v.appendChild(O("script")).onreadystatechange=function(){v.removeChild(this),c.call(A)}}:function(A){setTimeout(_(c,A,1),0)}),W.exports={set:r,clear:i}},function(W,d,n){"use strict";function l(Y){return Y&&Y.__esModule?Y:{default:Y}}function p(Y){if(Y&&Y.__esModule)return Y;var K={};if(null!=Y)for(var $ in Y)Object.prototype.hasOwnProperty.call(Y,$)&&(K[$]=Y[$]);return K.default=Y,K}Object.defineProperty(d,"__esModule",{value:!0}),d.getLogger=d.LOG_LEVELS=d.getRecordedLogs=d.setLogLevel=d.IceTransportTypes=d.PlaybackVideoEncoder=d.PlaybackAudioEncoder=d.MessageTransportStateEventTypes=d.SharedObjectEventTypes=d.FailoverSubscriberEventTypes=d.RTMPSubscriberEventTypes=d.RTCSubscriberEventTypes=d.SubscriberEventTypes=d.FailoverPublisherEventTypes=d.RTCPublisherEventTypes=d.PublisherEventTypes=d.Red5ProSharedObjectPeerConnection=d.Red5ProSharedObjectSocket=d.Red5ProSharedObject=d.PlaybackControls=d.PublisherView=d.RTMPPublisher=d.RTCPublisher=d.Red5ProPublisher=d.PlaybackView=d.HLSSubscriber=d.RTMPSubscriber=d.RTCSubscriber=d.Red5ProSubscriber=void 0;var m=n(24);Object.defineProperty(d,"PlaybackControls",{enumerable:!0,get:function(){return m.PlaybackControls}});var _=n(2),v=p(n(132)),S=p(n(124)),r=p(n(128)),a=p(n(36)),g=p(n(59)),T=p(n(84)),L=p(n(86)),V=p(n(85)),F=p(n(83)),k=l(n(47)),G=l(n(61));d.Red5ProSubscriber=v.Red5ProSubscriber,d.RTCSubscriber=v.RTCSubscriber,d.RTMPSubscriber=v.RTMPSubscriber,d.HLSSubscriber=v.HLSSubscriber,d.PlaybackView=k.default,d.Red5ProPublisher=S.Red5ProPublisher,d.RTCPublisher=S.RTCPublisher,d.RTMPPublisher=S.RTMPPublisher,d.PublisherView=G.default,d.Red5ProSharedObject=r.Red5ProSharedObject,d.Red5ProSharedObjectSocket=r.Red5ProSharedObjectSocket,d.Red5ProSharedObjectPeerConnection=r.Red5ProSharedObjectPeerConnection,d.PublisherEventTypes=T.PublisherEventTypes,d.RTCPublisherEventTypes=T.RTCPublisherEventTypes,d.FailoverPublisherEventTypes=T.FailoverPublisherEventTypes,d.SubscriberEventTypes=L.SubscriberEventTypes,d.RTCSubscriberEventTypes=L.RTCSubscriberEventTypes,d.RTMPSubscriberEventTypes=L.RTMPSubscriberEventTypes,d.FailoverSubscriberEventTypes=L.FailoverSubscriberEventTypes,d.SharedObjectEventTypes=V.SharedObjectEventTypes,d.MessageTransportStateEventTypes=F.MessageTransportStateEventTypes,d.PlaybackAudioEncoder=a.PlaybackAudioEncoder,d.PlaybackVideoEncoder=a.PlaybackVideoEncoder,d.IceTransportTypes=g.IceTransportTypes,(0,_.establishLogger)("error"),d.setLogLevel=function(Y){var K=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_.LEVELS.hasOwnProperty(Y.toUpperCase())&&((0,_.establishLogger)(Y,K),console&&console.log("Red5 Pro SDK Version 9.1.2"))},d.getRecordedLogs=_.getRecordedLogs,d.LOG_LEVELS=_.LEVELS,d.getLogger=_.getLogger},function(W,d,n){"use strict";function l(a,h,g){var c="",T=h,A=h+g;do{c+=String.fromCharCode(a[T++])}while(T<A);return c}function p(a,h){try{return JSON.parse(a)[h]}catch{var g=O.exec(a),c=void 0;return g&&g.length>1&&(c=S.exec(a),g[1]===h&&c&&c.length>1)?c[1]:void 0}}function m(a){var h=p(a,"orientation");if(h)return{orientation:parseInt(h)}}function _(a){var h=p(a,"streamingMode");if(h)return{streamingMode:h}}Object.defineProperty(d,"__esModule",{value:!0}),d.removePlayerDelegates=d.onStreamingModeMetadata=d.onOrientationMetadata=void 0;var a,v=(a=n(98))&&a.__esModule?a:{default:a},O=/['"](.*?)['"]:/gi,S=/:['"](.*?)['"]/gi,y=new v.default,r=function(a){return y.get(a)},i=function(a){var h="function"==typeof a.textTracks?a.textTracks():a.textTracks;h&&(a.addTextTrack("metadata"),h.addEventListener("addtrack",function(g){var c=g.track;c.mode="hidden",c.addEventListener("cuechange",function(T){var A=void 0,L=void 0;for(A=(A=T&&T.currentTarget?T.currentTarget.cues:(A=c.cues)&&A.length>0?A:c.activeCues)||[],L=0;L<A.length;L++){var x=A[L];x.value&&function(){var V="string"==typeof x.value.data?x.value.data:l(x.value.data,0,x.size),D=m(V),F=_(V),I=r(a);D&&I&&I.orientation&&I.orientation.forEach(function(k){k(D)}),F&&I&&I.streamingMode&&I.streamingMode.forEach(function(k){k(F)})}()}})}))};d.onOrientationMetadata=function(a,h){var g=y.get(a);y.has(a)?g.hasOwnProperty("orientation")||(y.get(a).orientation=[]):(i(a),y.set(a,{orientation:[]})),y.get(a).orientation.push(h)},d.onStreamingModeMetadata=function(a,h){var g=y.get(a);y.has(a)?g.hasOwnProperty("streamingMode")||(y.get(a).streamingMode=[]):(i(a),y.set(a,{streamingMode:[]})),y.get(a).streamingMode.push(h)},d.removePlayerDelegates=function(a){y.has(a)&&y.delete(a)}},function(W,d,n){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.NoSupportedCameraResolutionsError=d.NoElementFoundError=void 0;var m,p=(m=n(0))&&m.__esModule?m:{default:m};d.NoElementFoundError=function m(_){(0,p.default)(this,m),this.name="NoElementFound",this.message=_},d.NoSupportedCameraResolutionsError=function m(_){(0,p.default)(this,m),this.name="NoSupportedCameraResolutionsError",this.message=_}},function(W,d,n){"use strict";function l(V){return V&&V.__esModule?V:{default:V}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(3)),P=l(n(0)),O=l(n(1)),y=l(n(6)),i=l(n(31)),h=l(n(5)),c=l(n(45)),T=n(25),A=n(2),L="R5ProPublisherSocket",x=function(V){function D(F){return(0,P.default)(this,D),(0,y.default)(this,(D.__proto__||(0,m.default)(D)).call(this,F,L))}return(0,h.default)(D,V),(0,O.default)(D,[{key:"respond",value:function(F){if(F.data){var I=this.getJsonFromSocketMessage(F);(0,i.default)(D.prototype.__proto__||(0,m.default)(D.prototype),"respond",this).call(this,F)||void 0!==I.data&&(void 0!==I.data.sdp&&"answer"===I.data.sdp.type&&this._responder.onSDPAnswer(I.data),void 0!==I.data.candidate&&((0,T.isObjectEmpty)(I.data.candidate)?this._responder.onEmptyCandidate():this._responder.onAddIceCandidate(I.data.candidate)),"status"===I.data.type&&("NetConnection.ICE.TricleCompleted"===I.data.code||"NetConnection.ICE.TrickleCompleted"===I.data.code?this._responder.onSocketIceCandidateEnd():"NetConnection.Publish.InsufficientBW"===I.data.code?this._responder.onInsufficientBandwidth(I.data):"NetConnection.Publish.SufficientBW"===I.data.code?this._responder.onSufficientBandwidth(I.data):"NetConnection.Publish.RecoveringBW"===I.data.code?this._responder.onRecoveringBandwidth(I.data):this._responder.onPublisherStatus(I.data)),void 0!==I.type&&"metadata"===I.type.toLowerCase()&&(void 0!==I.method?this._responder.onSendReceived(I.method,I.data):this._responder.onMetaData(I.data)))}else(0,A.warn)(L,"[ws.onmessage] - No Message Data.")}},{key:"postUnpublish",value:function(F){return void 0!==this._websocket&&1===this._openState&&(this.post({unpublish:F}),!0)}}]),D}(c.default);d.default=x},function(W,d,n){"use strict";function l(V){return V&&V.__esModule?V:{default:V}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(3)),P=l(n(0)),O=l(n(1)),y=l(n(6)),i=l(n(31)),h=l(n(5)),c=l(n(45)),T=n(25),A=n(2),L="R5ProSubscriptionSocket",x=function(V){function D(F){return(0,P.default)(this,D),(0,y.default)(this,(D.__proto__||(0,m.default)(D)).call(this,F,L))}return(0,h.default)(D,V),(0,O.default)(D,[{key:"respond",value:function(F){if(F.data){var I=this.getJsonFromSocketMessage(F);(0,i.default)(D.prototype.__proto__||(0,m.default)(D.prototype),"respond",this).call(this,F)||(void 0!==I.data?(void 0!==I.data.sdp&&"offer"===I.data.sdp.type&&this._responder.onSDPOffer(I.data),void 0!==I.data.candidate&&((0,T.isObjectEmpty)(I.data.candidate)?this._responder.onEmptyCandidate():this._responder.onAddIceCandidate(I.data.candidate)),"status"===I.data.type&&("NetConnection.ICE.TricleCompleted"===I.data.code||"NetConnection.ICE.TrickleCompleted"===I.data.code?this._responder.onSocketIceCandidateEnd():"NetStream.Play.UnpublishNotify"===I.data.code?this._responder.onUnpublish():"NetConnection.Connect.Closed"===I.data.code?this._responder.onConnectionClosed():this._responder.onSubscriberStatus(I.data)),I.data.hasOwnProperty("status")&&"NetStream.Play.UnpublishNotify"===I.data.status&&this._responder.onUnpublish(),void 0!==I.type&&"metadata"===I.type&&(void 0!==I.method?this._responder.onSendReceived(I.method,I.data):this._responder.onMetaData(I.data))):void 0!==I.type&&"metadata"===I.type&&this._responder.onMetaData(I.metadata))}else(0,A.warn)(L,"[ws.onmessage] - No Message Data.")}}]),D}(c.default);d.default=x},function(W,d,n){"use strict";function l(G){return G&&G.__esModule?G:{default:G}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(3)),O=l(n(0)),y=l(n(1)),i=l(n(6)),h=l(n(31)),c=l(n(5)),A=function(G){if(G&&G.__esModule)return G;var Y={};if(null!=G)for(var K in G)Object.prototype.hasOwnProperty.call(G,K)&&(Y[K]=G[K]);return Y.default=G,Y}(n(29)),x=l(n(7)),D=l(n(60)),F=n(8),I=n(2),k="R5ProPublishPeer",R=function(G){function Y(K){return(0,O.default)(this,Y),(0,i.default)(this,(Y.__proto__||(0,P.default)(Y)).call(this,K,k))}return(0,c.default)(Y,G),(0,y.default)(Y,[{key:"_removeConnectionHandlers",value:function(K){K.onconnectionstatechange=void 0,K.oniceconnectionstatechange=void 0,K.onicecandidate=void 0}},{key:"_addConnectionHandlers",value:function(K,$){var ee=this,J=void 0;K.onconnectionstatechange=function(){(0,I.debug)(k,"[peer.onconnectionstatechange] - State: "+K.connectionState),"connected"===K.connectionState?((0,I.debug)(k,"[peerconnection:open]"),$?$.resolve(ee):ee._responder.onPeerConnectionOpen()):"failed"!==K.connectionState&&"disconnected"!==K.connectionState||((0,I.warn)(k,"[peerconnection:error]"),$&&$.reject(),"failed"===K.connectionState&&ee._responder.onPeerConnectionFail())},K.onicecandidate=function(z){(0,I.debug)(k,"[peer.onicecandidate] - Peer Candidate: "+z.candidate),z.candidate&&ee._responder.onIceCandidate(z.candidate)},K.oniceconnectionstatechange=function(z){var te=K.iceConnectionState;(0,I.debug)(k,"[peer.oniceconnectionstatechange] - State: "+te),"connected"===te&&x.default.getIsEdge()?((0,I.debug)(k,"[edge/ortc:notify complete]"),ee._responder.onPeerGatheringComplete()):"failed"===te?(J&&clearTimeout(J),ee._responder.onPeerConnectionClose(z)):"disconnected"===te?J=setTimeout(function(){(0,I.debug)(k,"[peer.oniceconnectionstatechange] - Reconnect timeout reached. Closing PeerConnection."),clearTimeout(J),ee._responder.onPeerConnectionClose(z)},5e3):J&&((0,I.debug)(k,"[peer.oniceconnectionstatechange] - Clearing timeout for reconnect."),clearTimeout(J))},K.onsignalingstatechange=function(z){(0,I.debug)(k,"[peer.onsignalingstatechange] - State: "+K.signalingState)},K.onicegatheringstatechange=function(){var z=K.iceGatheringState;(0,I.debug)(k,"[peer.onicegatheringstatechange] - State: "+z),"complete"===z&&ee._responder.onPeerGatheringComplete()},K.onremovestream=function(){(0,I.debug)(k,"[peer.onremovestream]")}}},{key:"_onDataChannelMessage",value:function(K){var $=K.data instanceof ArrayBuffer?{data:{message:String.fromCharCode.apply(null,new Uint8Array(K.data))}}:K;if((0,h.default)(Y.prototype.__proto__||(0,P.default)(Y.prototype),"_onDataChannelMessage",this).call(this,K))return!0;var ee=this.getJsonFromSocketMessage($);if(null===ee)return(0,I.warn)(this._name,"Determined websocket response not in correct format. Aborting message handle."),!0;(0,I.debug)(this._name,"[datachannel-response]: "+(0,m.default)(ee,null,2));var J=ee.data;return J&&"status"===J.type?"NetStream.Play.UnpublishNotify"===J.code?(this._responder.onUnpublish(),!0):((0,I.debug)(k,"[datachannel.message] status :: "+J.code),this._responder.onPublisherStatus(J),!0):(this._responder.onDataChannelMessage(this._dataChannel,$),!1)}},{key:"getUserMedia",value:function(K,$){return A.getUserMedia(K,$)}},{key:"forceUserMedia",value:function(K){return A.forceUserMedia(K)}},{key:"createOffer",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,$=this,ee=arguments.length>1&&void 0!==arguments[1]&&arguments[1],J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,I.debug)(k,"[createoffer]");var z=J||new F.DeferredPromise;return this._peerConnection.createOffer().then(function(te){$.setLocalDescription(te,K).then(function(){K&&(te.sdp=A.updateBandwidth(K,te.sdp)),ee&&(te.sdp=te.sdp.replaceAll("H264","H265"),(0,I.debug)(k,"[createoffer] FORCING VP8")),$._responder.onSDPSuccess(),z.resolve(te)}).catch(function(X){$._responder.onSDPError(X),z.reject(X)})}).catch(function(te){(0,I.debug)(k,"[createoffer:error]"),z.reject(te)}),z.hasOwnProperty("promise")?z.promise:z}},{key:"postUnpublish",value:function(K){var $=this.post({unpublish:K});return(0,I.debug)(k,"[peerconnection:unpublish] complete: "+$),$}}]),Y}(D.default);d.default=R},function(W,d,n){"use strict";function l(Y){return Y&&Y.__esModule?Y:{default:Y}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(3)),O=l(n(0)),y=l(n(1)),i=l(n(6)),h=l(n(31)),c=l(n(5)),A=function(Y){if(Y&&Y.__esModule)return Y;var K={};if(null!=Y)for(var $ in Y)Object.prototype.hasOwnProperty.call(Y,$)&&(K[$]=Y[$]);return K.default=Y,K}(n(29)),x=l(n(7)),D=l(n(60)),F=n(8),I=n(2),k="R5ProSubscriptionPeer",G=function(Y){function K($){return(0,O.default)(this,K),(0,i.default)(this,(K.__proto__||(0,P.default)(K)).call(this,$,k))}return(0,c.default)(K,Y),(0,y.default)(K,[{key:"_removeConnectionHandlers",value:function($){$.onconnectionstatechange=void 0,$.oniceconnectionstatechange=void 0,$.onicecandidate=void 0,$.ontrack=void 0,$.ondatachannel=void 0}},{key:"_addConnectionHandlers",value:function($,ee){var J=this,z=void 0;$.onconnectionstatechange=function(){(0,I.debug)(k,"[peer.onconnectionstatechange] - State: "+$.connectionState),"connected"===$.connectionState?((0,I.debug)(k,"[peerconnection:open]"),ee?ee.resolve(J):J._responder.onPeerConnectionOpen()):"failed"!==$.connectionState&&"disconnected"!==$.connectionState||((0,I.warn)(k,"[peerconnection:error]"),ee&&ee.reject())},$.onicecandidate=function(te){(0,I.debug)(k,"[peer.onicecandidate] - Peer Candidate: "+te.candidate),te.candidate?J._responder.onIceCandidate(te.candidate):null===te.candidate&&J._pendingMediaStream&&(J._responder.onIceCandidateTrickleEnd(J._pendingMediaStream),J._pendingMediaStream=void 0)},$.ontrack=function(te){(0,I.debug)(k,"(ontrack) Peer Add Stream: "+te.streams),te.streams&&te.streams.length>0&&void 0===J._pendingMediaStream&&(J._pendingMediaStream=te.streams[0],J._responder.onAnswerMediaStream(te.streams[0]))},$.oniceconnectionstatechange=function(te){var X=$.iceConnectionState;(0,I.debug)(k,"[peer.oniceconnectionstatechange] - State: "+X),"connected"===X&&x.default.getIsEdge()?((0,I.debug)(k,"[edge/ortc:notify complete]"),J._responder.onPeerGatheringComplete(),$.onicecandidate({candidate:null})):"failed"===X?(z&&clearTimeout(z),J._responder.onPeerConnectionFail(),J._responder.onPeerConnectionClose(te)):"disconnected"===X?z=setTimeout(function(){(0,I.debug)(k,"[peer.oniceconnectionstatechange] - Reconnect timeout reached. Closing PeerConnection."),clearTimeout(z),J._responder.onPeerConnectionClose(te)},5e3):z&&((0,I.debug)(k,"[peer.oniceconnectionstatechange] - Clearing timeout for reconnect."),clearTimeout(z))},$.onicegatheringstatechange=function(){var te=$.iceGatheringState;(0,I.debug)(k,"[peer.onicegatheringstatechange] - State: "+te),"complete"===te&&J._responder.onPeerGatheringComplete()},$.onremovestream=function(){(0,I.debug)(k,"[peer.onremovestream]")}}},{key:"_onDataChannelMessage",value:function($){var ee=$.data instanceof ArrayBuffer?{data:{message:String.fromCharCode.apply(null,new Uint8Array($.data))}}:$;if((0,h.default)(K.prototype.__proto__||(0,P.default)(K.prototype),"_onDataChannelMessage",this).call(this,$))return!0;var J=this.getJsonFromSocketMessage(ee);if(null===J)return(0,I.warn)(this._name,"Determined websocket response not in correct format. Aborting message handle."),!0;(0,I.debug)(this._name,"[datachannel-response]: "+(0,m.default)(J,null,2));var z=J.data;return z&&"status"===z.type?"NetStream.Play.UnpublishNotify"===z.code?(this._responder.onUnpublish(),this._responder.onConnectionClosed(),!0):((0,I.debug)(k,"[datachannel.message] status :: "+z.code),this._responder.onSubscriberStatus(z),!0):z.status&&"NetStream.Play.UnpublishNotify"===z.status?(this._responder.onUnpublish(),this._responder.onConnectionClosed(),!0):(this._responder.onDataChannelMessage(this._dataChannel,ee),!1)}},{key:"createAnswer",value:function($){var ee=this;(0,I.debug)(k,"[createanswer]");var J=new F.DeferredPromise;return this._peerConnection.setRemoteDescription($).then(this._responder.onSDPSuccess).catch(function(z){ee._responder.onSDPError(z)}),this._peerConnection.createAnswer().then(function(z){ee._peerConnection.setLocalDescription(z).then(ee._responder.onSDPSuccess).catch(function(te){ee._responder.onSDPError(te)}),J.resolve(z)}).catch(J.reject),J.promise}},{key:"addIceCandidate",value:function($){if((0,I.debug)(k,"checking if empty..."),function(Y){return void 0===Y||"string"==typeof Y&&0===Y.length}($))(0,I.debug)(k,"[addicecandidate]:: empty");else if(null!==$){(0,I.debug)(k,"[addicecandidate] :: non-empty");var ee=new A.RTCIceCandidate({sdpMLineIndex:$.sdpMLineIndex,candidate:$.candidate});this._peerConnection.addIceCandidate(ee).then(function(){}).catch(function(J){(0,I.error)(k,"Error in add of ICE Candidiate + "+J)})}else(0,I.debug)(k,"[addicecandidate] :: null"),this._peerConnection.addIceCandidate($).then(function(){}).catch(function(J){(0,I.error)(k,"Error in add of ICE Candidiate + "+J)})}}]),K}(D.default);d.default=G},function(W,d,n){"use strict";function l(O){return O&&O.__esModule?O:{default:O}}Object.defineProperty(d,"__esModule",{value:!0}),d.RawStream=void 0;var m=l(n(0)),P=l(n(1)),v=n(100);d.RawStream=function(){function O(){(0,m.default)(this,O)}return(0,P.default)(O,[{key:"write",value:function(S){console.log("%s - [%s] %s: %s",S.time.toISOString(),S.name,v.nameFromLevel[S.level],S.msg)}}]),O}()},function(W,d,n){"use strict";function l(te){return te&&te.__esModule?te:{default:te}}Object.defineProperty(d,"__esModule",{value:!0}),d.RTCPublisher=d.RTMPPublisher=d.Red5ProPublisher=void 0;var te,m=l(n(97)),P=l(n(99)),O=l(n(3)),y=l(n(0)),i=l(n(1)),h=l(n(6)),c=l(n(5)),A=l(n(94)),x=l(n(92)),D=l(n(19)),I=l(n(127)),R=l(n(126)),G=n(8),Y=n(58),K=n(2),$="Red5ProPublisher",ee=new x.default,J=((te=new A.default).set(Y.PublishTypes.RTC,R.default),te.set(Y.PublishTypes.RTMP,I.default),te),z=function(te){function X(){(0,y.default)(this,X);var re=(0,h.default)(this,(X.__proto__||(0,O.default)(X)).call(this));return re._options=void 0,re._order=[Y.PublishTypes.RTC,Y.PublishTypes.RTMP],re}return(0,c.default)(X,te),(0,i.default)(X,[{key:"_getPublisherFromOrder",value:function(re,ge){return ee.create(re,J,ge,"init")}},{key:"getPublishOrder",value:function(){return this._order}},{key:"setPublishOrder",value:function(re){var ge=(re="string"==typeof re?[re]:re).filter(function(oe){var xe=void 0;for(xe in Y.PublishTypes)if(Y.PublishTypes[xe].toLowerCase()===oe.toLowerCase())return!0;return!1}).map(function(oe){return oe.toLowerCase()});return this._order=[].concat((0,P.default)(new m.default(ge))),(0,K.debug)($,"[orderupdate]: "+this._order),this}},{key:"init",value:function(re){var ge=new G.DeferredPromise;return(0,K.debug)($,"[publish]"),this._options=re,this._getPublisherFromOrder(this._order,this._options).then(function(oe){ge.resolve(oe)}).catch(function(oe){(0,K.warn)($,"[publisherror]: Could not implement a publisher: "+oe),ge.reject(oe)}),ge.promise}},{key:"publishTypes",get:function(){return Y.PublishTypes}}]),X}(D.default);d.Red5ProPublisher=z,d.RTMPPublisher=I.default,d.RTCPublisher=R.default},function(W,d,n){"use strict";function l(k){return k&&k.__esModule?k:{default:k}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(142)),P=l(n(10)),O=l(n(0)),y=l(n(1)),i=function(k){if(k&&k.__esModule)return k;var R={};if(null!=k)for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(R[G]=k[G]);return R.default=k,R}(n(81)),h=l(n(7)),c=l(n(88)),T=n(93),A=n(25),L=n(8),x=n(2),V="R5ProPublisherSourceHandler",D=function(k){return k.exact||k.ideal||k.max||k.min||k},I=function(){function k(R,G){var Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;(0,O.default)(this,k),this.video=R,this.clone=this.video.cloneNode(!0),this.holder=this.video.parentNode,this._publisherType=G,this._swfId=null,this._embedFuture=void 0,this._soResponder=Y||new c.default}return(0,y.default)(k,[{key:"getEmbedOperation",value:function(){return this._embedFuture=L.Future.createIfNotExist(this._embedFuture),this._embedFuture.promise}},{key:"cleanUp",value:function(){this.video.remove(),this.video=this.clone.cloneNode(!0),this.holder.appendChild(this.video),this._embedFuture=void 0}},{key:"addSource",value:function(R,G){var Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,K=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,x.debug)(V,"[addsource]");var $=this;this._swfId=R,this._embedFuture=L.Future.createIfNotExist(this._embedFuture);var ee=this._embedFuture;return G.swf=Y||G.swf,G.minFlashVersion=K||G.minFlashVersion,i.defineEmbedElement(this.video,this.holder).then(function(J){(0,x.debug)(V,"[element:complete]");var z={buffer:null!=G.buffer?G.buffer:1,streamMode:G.streamMode,streamName:G.streamName,appName:G.app,host:G.host};return G.backgroundColor&&(z.backgroundColor=G.backgroundColor),G.context&&(z.roomName=G.context),"100%"!==G.embedWidth&&"100%"!==G.embedHeight||(z.autosize=!0),void 0!==G.connectionParams&&(z.connectionParams=encodeURIComponent((0,P.default)(G.connectionParams))),z=function(k,R){var G=(0,A.deepCopy)(R);if("boolean"==typeof k.video)G.video=k.video;else{var Y=void 0;for(Y in k.video)G[Y]=D(k.video[Y]);G.video=!0}return G.audio="boolean"!=typeof k.audio||k.audio,G}(G.mediaConstraints,z),i.embedSwfObject(R,G,z,h.default.getSwfObject(),J)}).then(function(){(0,x.debug)(V,"[embed:complete]"),ee.resolve($)}).catch(function(J){return ee.reject(J)}),ee.promise}},{key:"connect",value:function(R){(0,x.debug)(V,"[connect]");var G=h.default.getEmbedObject(this._swfId);G?(G.connect(R),this._soResponder.connect(this._swfId)):(0,x.warn)(V,"Could not determine embedded element with swf id: "+this._swfId+".")}},{key:"disconnect",value:function(){(0,x.debug)(V,"[disconnect]");try{var R=h.default.getEmbedObject(this._swfId);R&&R.disconnect()}catch{}this.cleanUp(),this._soResponder.disconnect()}},{key:"send",value:function(R,G){var Y=h.default.getEmbedObject(this._swfId);Y&&Y.send(R,G)}},{key:"addSharedObjectResponseHandler",value:function(R){this._soResponder.addResponseHandler(R)}},{key:"removeSharedObjectResponseHandler",value:function(R){this._soResponder.removeResponseHandler(R)}},{key:"sendToSharedObject",value:function(R,G,Y){this._soResponder.sendToSharedObject(R,G,Y)}},{key:"sendPropertyToSharedObject",value:function(R,G,Y){this._soResponder.sendPropertyToSharedObject(R,G,Y)}},{key:"getRemoteSharedObject",value:function(R){this._soResponder.getRemoteSharedObject(R)}},{key:"connectToSharedObject",value:function(R){this._soResponder.connectToSharedObject(R)}},{key:"closeSharedObject",value:function(R){this._soResponder.closeSharedObject(R)}},{key:"setMediaQuality",value:function(R){var G=h.default.getEmbedObject(this._swfId);if(G&&R.video&&"boolean"!=typeof R.video){var Y=isNaN(R.video.width)?m.default:(0,T.toInt)(R.video.width),K=isNaN(R.video.height)?m.default:(0,T.toInt)(R.video.height);G.updateResolution(Y,K)}}},{key:"getType",value:function(){return this._publisherType}}]),k}();d.default=I},function(W,d,n){"use strict";function l(je){if(je&&je.__esModule)return je;var $e={};if(null!=je)for(var Oe in je)Object.prototype.hasOwnProperty.call(je,Oe)&&($e[Oe]=je[Oe]);return $e.default=je,$e}function p(je){return je&&je.__esModule?je:{default:je}}Object.defineProperty(d,"__esModule",{value:!0});var _=p(n(38)),v=p(n(62)),S=p(n(30)),r=p(n(10)),a=p(n(3)),g=p(n(0)),T=p(n(1)),L=p(n(6)),V=p(n(5)),F=p(n(19)),k=l(n(29)),G=l(n(44)),K=p(n(7)),ee=p(n(119)),z=p(n(121)),X=p(n(61)),re=n(13),ge=n(58),oe=n(59),xe=n(8),ue=n(89),N=n(46),se=n(2),ce=/(.*) starting/i,Z=/(.*) stopping/i,de="RTCPublisher",ae=function(je){(0,se.debug)(de,je)},pe=function(je){(0,se.warn)(de,je)},_e=function(je){(0,se.error)(de,je)},ke={protocol:"wss",port:443,app:"live",streamMode:ge.PublishModeTypes.LIVE,keyFramerate:3e3,mediaElementId:"red5pro-publisher",rtcConfiguration:{iceServers:[{urls:"stun:stun2.l.google.com:19302"}],iceCandidatePoolSize:2,bundlePolicy:"max-bundle"},iceServers:void 0,iceTransport:oe.IceTransportTypes.UDP,bandwidth:{audio:56,video:512},clearMediaOnUnpublish:!1,mediaConstraints:new ue.RTCMediaConstraint,onGetUserMedia:void 0,signalingSocketOnly:!0,dataChannelConfiguration:void 0,forceVP8:!1,socketSwitchDelay:100},De=function(je){var $e={audio:!1,video:!1},Oe={audio:!1,video:!1};return je.getTracks().forEach(function(gt){"video"===gt.kind?(Oe.video=gt.getSettings(),$e.video=gt.getConstraints()):"audio"===gt.kind&&(Oe.audio=gt.getSettings(),$e.audio=gt.getConstraints())}),{requested:$e,accepted:Oe}},Me=function(je){function $e(){(0,g.default)(this,$e);var Oe=(0,L.default)(this,($e.__proto__||(0,a.default)($e)).call(this));return Oe._options=void 0,Oe._view=void 0,Oe._peerHelper=void 0,Oe._socketHelper=void 0,Oe._messageTransport=void 0,Oe._mediaStream=void 0,Oe._switchChannelRequest=void 0,Oe._streamFuture=void 0,Oe._availableFuture=void 0,Oe._peerFuture=void 0,Oe._offerFuture=void 0,Oe._sendOfferFuture=void 0,Oe._trickleEndFuture=void 0,Oe._publishFuture=void 0,Oe._unpublishFuture=void 0,Oe._onOrientationChange=Oe._onOrientationChange.bind(Oe),Oe._gUMRejectionHandler=Oe._onGUMRejection.bind(Oe),Oe}return(0,V.default)($e,je),(0,T.default)($e,[{key:"_getMediaStream",value:function(){return this._streamFuture=xe.Future.createIfNotExist(this._streamFuture),this._streamFuture.promise}},{key:"_getTrickleEnd",value:function(){return xe.Future.createIfNotExist(this._trickleEndFuture)}},{key:"_gum",value:function(Oe){var gt=this,qt=function(ye){if(!ye)return!1;var Re=ye.getTracks();return!!(Re&&Re.length>1)&&"video"===Re[0].kind};void 0!==Oe.onGetUserMedia?(ae("Requesting gUM from user-defined configuration:onGetUserMedia."),Oe.onGetUserMedia().then(function(ye){if(qt(ye))return ae("We received a MediaStream with mismatching track listing. Trying again..."),void gt._gum(Oe);gt.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.CONSTRAINTS_ACCEPTED,gt,De(ye))),gt._streamFuture.resolve(ye)}).catch(function(ye){_e("Could not resolve MediaStream from provided gUM. Error - "+ye),gt.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.CONSTRAINTS_REJECTED,gt,{constraints:Oe.mediaConstraints})),gt._streamFuture.reject(ye)})):(ae("Requesting gUM using mediaConstraints: "+(0,r.default)(Oe.mediaConstraints,null,2)),this._peerHelper.getUserMedia(Oe.mediaConstraints,this._gUMRejectionHandler).then(function(ye){if(qt(ye.media))return ae("We received a MediaStream with mismatching track listing. Trying again..."),void gt._gum(Oe);ae("Found valid constraints: "+(0,r.default)(ye.constraints,null,2)),gt.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.CONSTRAINTS_ACCEPTED,gt,De(ye.media))),gt.trigger(new re.PublisherEvent(re.PublisherEventTypes.DIMENSION_CHANGE,gt,ye.constraints)),gt._streamFuture.resolve(ye.media)}).catch(function(ye){ae("Could not find valid constraint resolutions from: "+(0,r.default)(ye.constraints,null,2)),_e("Could not resolve MediaStream from provided mediaConstraints. Error - "+ye.error),ae("Attempting to find resolutions from original provided constraints: "+(0,r.default)(ye.constraints,null,2)),gt.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.CONSTRAINTS_REJECTED,gt,{constraints:ye.constraints})),Oe.onGetUserMedia=function(){return gt._peerHelper.forceUserMedia(ye.constraints)},gt._gum(Oe)}))}},{key:"_onGUMRejection",value:function(Oe){this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.CONSTRAINTS_REJECTED,this,{constraints:Oe}))}},{key:"_onOrientationChange",value:function(Oe){this.getMessageTransport()&&this.getMessageTransport().post({send:{method:"onMetaData",data:{deviceOrientation:Oe}}})}},{key:"_onMediaStreamReceived",value:function(Oe){this._mediaStream=Oe,this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.MEDIA_STREAM_AVAILABLE,this,Oe)),this._view&&this._view.preview(this._mediaStream)}},{key:"_setViewIfNotExist",value:function(Oe){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===Oe&&void 0!==gt&&new X.default(gt).attachPublisher(this)}},{key:"_requestAvailability",value:function(Oe){return ae("[requestavailability]"),this._availableFuture=xe.Future.createIfNotExist(this._availableFuture),this._socketHelper.post({isAvailable:Oe,bundle:!0}),this._availableFuture.promise}},{key:"_createPeerConnection",value:function(Oe){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,qt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return ae("[createpeeer]"),this._peerFuture=void 0,this._peerFuture=xe.Future.createIfNotExist(this._peerFuture),qt&&Oe&&(pe("The iceServers configuration property is considered deprecated. Please use the rtcConfiguration configuration property upon which you can assign iceServers. Reference: https://www.red5pro.com/docs/streaming/migrationguide.html"),Oe.iceServers=qt),void 0!==Oe?this._peerHelper.setUpWithPeerConfiguration(Oe,gt,this._peerFuture):this._peerHelper.setUp(qt,this._peerFuture,this._options.rtcpMuxPolicy)}},{key:"_createOffer",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,gt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ae("[createoffer]"),this._offerFuture=void 0,this._offerFuture=xe.Future.createIfNotExist(this._offerFuture),this._peerHelper.createOffer(Oe,gt,this._offerFuture),this._offerFuture.promise}},{key:"_setRemoteDescription",value:function(Oe){return ae("[setremotedescription]"),this._peerHelper.setRemoteDescription(Oe)}},{key:"_sendOffer",value:function(Oe,gt,qt){return ae("[sendoffer]"),this._sendOfferFuture=void 0,this._sendOfferFuture=xe.Future.createIfNotExist(this._sendOffFuture),this._socketHelper.post({handleOffer:gt,transport:qt,data:{sdp:Oe}}),this._sendOfferFuture.promise}},{key:"_sendCandidate",value:function(Oe,gt){ae("[sendcandidate]"),this._socketHelper.post({handleCandidate:gt,data:{candidate:Oe}})}},{key:"_requestPublish",value:function(Oe,gt,qt){return ae("[requestpublish]"),this._publishFuture=void 0,this._publishFuture=xe.Future.createIfNotExist(this._publishFuture),this._socketHelper.post({publish:Oe,mode:gt,keyFramerate:qt}),this._publishFuture.promise}},{key:"_requestUnpublish",value:function(Oe){return this._unpublishFuture=void 0,this._unpublishFuture=xe.Future.createIfNotExist(this._unpublishFuture),this.getMessageTransport().postUnpublish(Oe)||this._unpublishFuture.resolve(),this._unpublishFuture.promise}},{key:"init",value:function(Oe){this._streamFuture=void 0;var gt=new xe.DeferredPromise;return k.isSupported()&&G.isSupported()?(this._options=(0,S.default)({},ke,Oe),this._peerHelper=new z.default(this),this._socketHelper=new ee.default(this),this._messageTransport=this._socketHelper,this._getMediaStream().then(this._onMediaStreamReceived.bind(this)).catch(function(qt){pe("[gum]: "+qt)}),this._gum(this._options),this._setViewIfNotExist(this._view,this._options.mediaElementId),gt.resolve(this)):gt.reject("Cannot create WebRTC playback instance. Your environment does not support WebRTC and/or WebSockets."),gt.promise}},{key:"initWithStream",value:function(Oe,gt){ae("[initWithStream]"),this._streamFuture=void 0;var qt=new xe.DeferredPromise;return k.isSupported()&&G.isSupported()?(this._options=(0,S.default)({},ke,Oe),this._peerHelper=new z.default(this),this._socketHelper=new ee.default(this),this._messageTransport=this._socketHelper,this._setViewIfNotExist(this._view,this._options.mediaElementId),this._getMediaStream().then(this._onMediaStreamReceived.bind(this)).catch(function(ye){pe("[gum]: "+ye)}),this._streamFuture.resolve(gt),qt.resolve(this)):qt.reject("Cannot create WebRTC playback instance. Your environment does not support WebRTC and/or WebSockets."),qt.promise}},{key:"setView",value:function(Oe){return this._view=Oe,this._mediaStream&&this._view&&this._view.preview(this._mediaStream),this}},{key:"preview",value:function(){var Oe=this;ae("[preview]");var gt=new v.default(function(qt){qt(Oe)});return this._setViewIfNotExist(this._view,this._options.mediaElementId),gt}},{key:"unpreview",value:function(){ae("[unpreview]"),this._mediaStream&&this._mediaStream.getTracks().forEach(function(Oe){Oe.stop()}),this._view&&this._view.unpreview()}},{key:"publish",value:function(){var Oe=this,gt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,qt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ae("[publish]"),this._options.streamName=gt||this._options.streamName;var ye=qt||new xe.DeferredPromise,Re=new xe.DeferredPromise,Ze=(0,N.rtcSocketEndpointFromOptions)(this._options,{id:this._options.streamName});this._trickleEndFuture=this._getTrickleEnd(),this._peerHelper||(this._peerHelper=new z.default(this)),this._socketHelper?this._socketHelper.clearRetry():(this._socketHelper=new ee.default(this),this._messageTransport=this._socketHelper),this._socketHelper.setUp(Ze,Re);var et=this._options,xt=et.rtcConfiguration,ct=et.dataChannelConfiguration,Gt=et.signalingSocketOnly&&k.supportsDataChannel();return Gt&&!ct&&(ct={name:"red5pro"}),this._options.signalingSocketOnly=Gt,this._publishFuture=xe.Future.createIfNotExist(this._publishFuture),this._publishFuture.promise.catch(function(pn){K.default.removeOrientationChangeHandler(Oe._onOrientationChange),ye.reject(pn),Oe.trigger(new re.PublisherEvent(re.PublisherEventTypes.CONNECT_FAILURE,Oe,pn))}),Re.promise.then(function(){return Oe.trigger(new re.PublisherEvent(re.PublisherEventTypes.CONNECT_SUCCESS,Oe)),Oe._getMediaStream()}).then(function(){return Oe._requestAvailability(Oe._options.streamName,Oe._options.streamType)}).then(function(){return Oe._createPeerConnection(xt,ct,Oe._options.iceServers)}).then(function(pn){return Oe.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.PEER_CONNECTION_AVAILABLE,Oe,pn)),Oe._mediaStream.getTracks().forEach(function(st){pn.addTrack(st,Oe._mediaStream)}),Oe._createOffer(Oe._options.bandwidth,Oe._options.forceVP8)}).then(function(pn){return Oe.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.OFFER_START,Oe,pn)),Oe._sendOffer(pn,Oe._options.streamName,Oe._options.iceTransport)}).then(function(pn){return Oe._setRemoteDescription(pn.sdp)}).then(function(pn){return Oe.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.OFFER_END,Oe,pn)),Oe._getTrickleEnd().promise}).then(function(){return Oe.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.ICE_TRICKLE_COMPLETE,Oe)),Oe._requestPublish(Oe._options.streamName,Oe._options.streamMode,Oe._options.keyFramerate)}).then(function(){K.default.addOrientationChangeHandler(Oe._onOrientationChange),ye.resolve(Oe),Oe.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_START,Oe))}).catch(function(pn){K.default.removeOrientationChangeHandler(Oe._onOrientationChange),ye.reject(pn),Oe.trigger(new re.PublisherEvent(re.PublisherEventTypes.CONNECT_FAILURE,Oe,pn))}),ye.hasOwnProperty("promise")?ye.promise:ye}},{key:"publishWithSocket",value:function(Oe){var gt=this,qt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ae("[publishWithSocket]"),this._options.streamName=qt||this._options.streamName;var Re=ye||new xe.DeferredPromise,Ze=new xe.DeferredPromise;return this._socketHelper=new ee.default(this),this._socketHelper.setUpWithSocket(Oe,Ze),Ze.promise.then(function(){return gt._requestPublish(gt._options.streamName,gt._options.streamMode,gt._options.keyFramerate)}).then(function(){K.default.addOrientationChangeHandler(gt._onOrientationChange),Re.resolve(gt),gt.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_START,gt))}).catch(function(et){K.default.removeOrientationChangeHandler(gt._onOrientationChange),Re.reject(et),gt.trigger(new re.PublisherEvent(re.PublisherEventTypes.CONNECT_FAILURE,gt,et))}),Re.hasOwnProperty("promise")?Re.promise:Re}},{key:"unpublish",value:function(){var Oe=this,gt=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ae("[unpublish]");(this._options.clearMediaOnUnpublish||gt)&&this.unpreview(),this._availableFuture=void 0,this._peerFuture=void 0,this._offerFuture=void 0,this._sendOfferFuture=void 0,this._trickleEndFuture=void 0,this._publishFuture=void 0;var ye=this._requestUnpublish(this._options.streamName);return ye.then(function(){Oe._unpublishFuture=void 0,Oe._socketHelper&&(ae("[unpublish:teardown]"),Oe._socketHelper.tearDown()),Oe._peerHelper&&Oe._peerHelper.tearDown(),Oe._socketHelper=void 0,Oe._peerHelper=void 0,Oe._messageTransport=void 0,Oe.trigger(new re.PublisherEvent(re.PublisherEventTypes.UNPUBLISH_SUCCESS,Oe))}),K.default.removeOrientationChangeHandler(this._onOrientationChange),ye}},{key:"mute",value:function(){this.muteAudio()}},{key:"unmute",value:function(){this.unmuteAudio()}},{key:"muteAudio",value:function(){this.getMessageTransport().post({mute:{muteAudio:!0}})}},{key:"unmuteAudio",value:function(){this.getMessageTransport().post({mute:{muteAudio:!1}})}},{key:"muteVideo",value:function(){this.getMessageTransport().post({mute:{muteVideo:!0}})}},{key:"unmuteVideo",value:function(){this.getMessageTransport().post({mute:{muteVideo:!1}})}},{key:"send",value:function(Oe,gt){this.getMessageTransport().post({send:{method:Oe,data:"string"==typeof gt?JSON.parse(gt):gt}})}},{key:"callServer",value:function(Oe,gt){return this.getMessageTransport().postAsync({callAdapter:{method:Oe,arguments:gt}})}},{key:"sendLog",value:function(Oe,gt){try{var qt=(0,_.default)(se.LEVELS).find(function(Re){return Re.toLowerCase()===Oe.toLowerCase()})?Oe:se.LEVELS.DEBUG,ye="string"==typeof gt?gt:(0,r.default)(gt);this.getMessageTransport().post({log:qt.toUpperCase(),message:ye})}catch(Re){_e(de),_e(de)}}},{key:"onStreamAvailable",value:function(Oe){ae("[onstreamavailable]: "+(0,r.default)(Oe,null,2)),this._availableFuture=xe.Future.createIfNotExist(this._availableFuture),this._availableFuture.reject("Stream with name "+this._options.streamName+" already has a broadcast session."),this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_INVALID_NAME,this))}},{key:"onStreamUnavailable",value:function(Oe){ae("Stream "+this._options.streamName+" does not exist."),ae("[onstreamunavailable]: "+(0,r.default)(Oe,null,2)),this._availableFuture=xe.Future.createIfNotExist(this._availableFuture),this._availableFuture.resolve(!0)}},{key:"onSocketMessageError",value:function(Oe){_e("Error in stream publish: "+Oe+".\n[Optional detail]: "+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)),this._publishFuture&&(this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_FAIL,this)),this._publishFuture.reject(Oe),this.unpublish())}},{key:"onSocketClose",value:function(Oe){ae("[onsocketclose]"),this._peerHelper&&this._peerHelper.tearDown(),this.trigger(new re.PublisherEvent(re.PublisherEventTypes.CONNECTION_CLOSED,this,Oe))}},{key:"onPeerConnectionFail",value:function(){ae("[onpeerconnectionfail]"),this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_FAIL,this)),this._subscriptionResolver.reject("Peer Connection Failed.")}},{key:"onPeerConnectionClose",value:function(Oe){ae("[onpeerconnectionclose]"),this._socketHelper&&(ae("[onpeerconnectionclose:teardown]"),this._socketHelper.tearDown()),this.onSocketClose(Oe)}},{key:"onPeerConnectionOpen",value:function(){ae("[onpeerconnection::open]"),this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.PEER_CONNECTION_OPEN))}},{key:"onSDPSuccess",value:function(Oe){var gt=Oe?": "+(0,r.default)(Oe,null,2):"";ae("[onsdpsuccess]"+gt)}},{key:"onSDPError",value:function(Oe){this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_FAIL,this));var gt=Oe?": "+(0,r.default)(Oe,null,2):"";gt("[onsdperror]"+gt)}},{key:"onSDPAnswer",value:function(Oe){ae("[sdpanswer]:: "+(0,r.default)(Oe,null,2)),this._sendOfferFuture=xe.Future.createIfNotExist(this._sendOfferFuture),this._sendOfferFuture.resolve(Oe)}},{key:"onAddIceCandidate",value:function(Oe){ae("[addicecandidate]"),this._peerHelper.addIceCandidate(Oe).then(function(){ae("[addicecandidate:success]")}).catch(function(gt){pe("[addicecandidate:error] - "+gt)})}},{key:"onIceCandidate",value:function(Oe){ae("[icecandidatetrickle]"),this._sendCandidate(Oe,this._options.streamName)}},{key:"onIceCandidateTrickleEnd",value:function(){ae("[icecandidatetrickle:end]")}},{key:"onEmptyCandidate",value:function(){ae("[icecandidatetrickle:empty]"),this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.PEER_CANDIDATE_END))}},{key:"onPeerGatheringComplete",value:function(){ae("[icecandidategathering:end]"),this._socketHelper&&this._socketHelper.postEndOfCandidates(this._options.streamName)}},{key:"onSocketIceCandidateEnd",value:function(){ae("[socketicecandidate:end]"),this._getTrickleEnd().resolve()}},{key:"onPublisherStatus",value:function(Oe){ae("[publisherstatus] - "+(0,r.default)(Oe,null,2));var gt=Z.exec(Oe.message),qt=ce.exec(Oe.message);gt&>[1]===this._options.streamName?this._unpublishFuture.resolve():qt&&qt[1]===this._options.streamName?this._publishFuture.resolve():this.trigger(Oe.code&&"NetStream.Publish.IsAvailable"===Oe.code?new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_AVAILABLE,this.status):new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_STATUS,this,Oe))}},{key:"onInsufficientBandwidth",value:function(Oe){this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_INSUFFICIENT_BANDWIDTH,this,Oe))}},{key:"onSufficientBandwidth",value:function(Oe){this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_SUFFICIENT_BANDWIDTH,this,Oe))}},{key:"onRecoveringBandwidth",value:function(Oe){this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_RECOVERING_BANDWIDTH,this,Oe))}},{key:"onSendReceived",value:function(Oe,gt){"onMetaData"===Oe?this.onMetaData(gt):this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_SEND_INVOKE,this,{methodName:Oe,data:gt}))}},{key:"onDataChannelAvailable",value:function(Oe){var gt=this;if(ae("[ondatachannel::available]"),this._switchChannelRequest={switchChannel:Oe||"red5pro"},this._options.signalingSocketOnly)var qt=setTimeout(function(){clearTimeout(qt),gt._socketHelper.sever(gt._switchChannelRequest),gt._messageTransport=gt._peerHelper,gt.trigger(new re.MessageTransportStateEvent(re.MessageTransportStateEventTypes.CHANGE,gt,{controller:gt,transport:gt._messageTransport}))},this._options.socketSwitchDelay);this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.DATA_CHANNEL_AVAILABLE,this,{name:Oe,dataChannel:this.getDataChannel()}))}},{key:"onDataChannelError",value:function(Oe,gt){this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.DATA_CHANNEL_ERROR,this,{dataChannel:Oe,error:gt}))}},{key:"onDataChannelMessage",value:function(Oe,gt){this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.DATA_CHANNEL_MESSAGE,this,{dataChannel:Oe,message:gt}))}},{key:"onDataChannelOpen",value:function(Oe){this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.DATA_CHANNEL_OPEN,this,{dataChannel:Oe}))}},{key:"onDataChannelClose",value:function(Oe){this.trigger(new re.PublisherEvent(re.RTCPublisherEventTypes.DATA_CHANNEL_CLOSE,this,{dataChannel:Oe}))}},{key:"onMetaData",value:function(Oe){this.trigger(new re.PublisherEvent(re.PublisherEventTypes.PUBLISH_METADATA,this,Oe))}},{key:"overlayOptions",value:function(Oe){this._options=(0,S.default)(this._options,Oe)}},{key:"getMessageTransport",value:function(){return this._messageTransport}},{key:"getConnection",value:function(){return this._socketHelper}},{key:"getPeerConnection",value:function(){return this._peerHelper?this._peerHelper.connection:void 0}},{key:"getDataChannel",value:function(){return this._peerHelper?this._peerHelper.dataChannel:void 0}},{key:"getMediaStream",value:function(){return this._mediaStream}},{key:"getOptions",value:function(){return this._options}},{key:"getType",value:function(){return ge.PublishTypes.RTC.toUpperCase()}}]),$e}(F.default);d.default=Me},function(W,d,n){"use strict";function l(z){return z&&z.__esModule?z:{default:z}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(30)),O=l(n(3)),y=l(n(0)),i=l(n(1)),h=l(n(6)),c=l(n(5)),A=l(n(19)),x=l(n(7)),D=l(n(125)),I=l(n(61)),k=n(13),R=n(8),G=n(58),Y=n(89),K=n(2),$="RTMPPublisher",ee={protocol:"rtmp",port:1935,streamMode:"live",mediaElementId:"red5pro-publisher",embedWidth:"100%",embedHeight:"100%",minFlashVersion:"10.0.0",swf:"lib/red5pro/red5pro-publisher.swf",swfobjectURL:"lib/swfobject/swfobject.js",productInstallURL:"lib/swfobject/playerProductInstall.swf",mediaConstraints:new Y.RTMPMediaConstraint},J=function(z){function te(){(0,y.default)(this,te);var X=(0,h.default)(this,(te.__proto__||(0,O.default)(te)).call(this));return X._options=void 0,X._view=void 0,X._sourceHandler=void 0,X._elementId=void 0,X._connectFuture=void 0,X}return(0,c.default)(te,z),(0,i.default)(te,[{key:"_setViewIfNotExist",value:function(X){var re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===X&&void 0!==re&&new I.default(re).attachPublisher(this)}},{key:"setView",value:function(X,re){var ge=this;return this._view=X,this._elementId=re,void 0!==this._sourceHandler&&(this._sourceHandler.disconnect(),this._sourceHandler=void 0),this._view&&(this._sourceHandler=new D.default(this._view.view,this.getType())),this._options&&this._sourceHandler&&this._sourceHandler.addSource(this._elementId,this._options).catch(function(oe){(0,K.error)($,"Could not establish proper RTMP publisher: "+oe),ge.trigger(new k.PublisherEvent(k.RTMPPublisherEventTypes.EMBED_FAILURE,ge))}),this}},{key:"_setUpConnectCallback",value:function(X){var re=this;window.setActiveId=function(ge){(0,K.debug)($,"Embed and connect() complete for publisher swf. successId("+ge+")."),X.resolve(re),re.trigger(new k.PublisherEvent(k.RTMPPublisherEventTypes.EMBED_SUCCESS,re)),re._tearDownConnectCallback()}}},{key:"_tearDownConnectCallback",value:function(){window.setActiveId=void 0}},{key:"_establishExtIntHandlers",value:function(){var X=this,re=this._options.streamName,ge=function(oe){return["publisher",oe,re.split("-").join("_")].join("_")};window[ge("r5proConnectClosed")]=function(){X.trigger(new k.PublisherEvent(k.PublisherEventTypes.CONNECTION_CLOSED,X))},window[ge("r5proConnectSuccess")]=function(){return X.trigger(new k.PublisherEvent(k.PublisherEventTypes.CONNECT_SUCCESS,X))},window[ge("r5proUnpublishSuccess")]=function(){return X.trigger(new k.PublisherEvent(k.PublisherEventTypes.UNPUBLISH_SUCCESS,X))},window[ge("r5proPublishStart")]=function(){X._connectFuture.resolve(X),X.trigger(new k.PublisherEvent(k.PublisherEventTypes.PUBLISH_START,X))},window[ge("r5proPublishMetadata")]=function(oe){return X.trigger(new k.PublisherEvent(k.PublisherEventTypes.PUBLISH_METADATA,X,oe))},window[ge("r5proPublishInsufficientBW")]=function(oe){return X.trigger(new k.PublisherEvent(k.PublisherEventTypes.PUBLISH_INSUFFICIENT_BANDWIDTH,X,oe))},window[ge("r5proPublishSufficientBW")]=function(oe){return X.trigger(new k.PublisherEvent(k.PublisherEventTypes.PUBLISH_SUFFICIENT_BANDWIDTH,X,oe))},window[ge("r5proPublishRecoveringBW")]=function(oe){return X.trigger(new k.PublisherEvent(k.PublisherEventTypes.PUBLISH_RECOVERING_BANDWIDTH,X,oe))},window[ge("r5proConnectFailure")]=function(){X._connectFuture.reject(k.PublisherEventTypes.CONNECT_FAILURE),X.trigger(new k.PublisherEvent(k.PublisherEventTypes.CONNECT_FAILURE,X))},window[ge("r5proPublishFail")]=function(){X._connectFuture.reject(k.PublisherEventTypes.PUBLISH_FAIL),X.trigger(new k.PublisherEvent(k.PublisherEventTypes.PUBLISH_FAIL,X))},window[ge("r5proPublishInvalidName")]=function(){X._connectFuture.reject(k.PublisherEventTypes.PUBLISH_INVALID_NAME),X.trigger(new k.PublisherEvent(k.PublisherEventTypes.PUBLISH_INVALID_NAME,X))}}},{key:"init",value:function(X){var re=this,ge=new R.DeferredPromise,oe=X.minFlashVersion||ee.minFlashVersion;if(x.default.supportsFlashVersion(oe)){this._options=(0,P.default)({},ee,X);try{x.default.injectScript(this._options.swfobjectURL).then(function(){return(0,K.debug)($,"SWFObject embedded."),re._sourceHandler?((0,K.debug)($,"Publish handler established."),re._sourceHandler.addSource(re._elementId,re._options)):((0,K.debug)($,"Publish handler not established."),!0)}).then(function(){re._setViewIfNotExist(re._view,re._options.mediaElementId),ge.resolve(re)}).catch(function(xe){(0,K.error)($,"Could not embed Flash-based RTMP Publisher. Reason: "+xe),re._sourceHandler&&re._sourceHandler.disconnect(),ge.reject(xe),re.trigger(new k.PublisherEvent(k.RTMPPublisherEventTypes.EMBED_FAILURE,re))})}catch(xe){ge.reject("Could not inject Flash-based Publisher into the page. Reason: "+xe.message),re.trigger(new k.PublisherEvent(k.RTMPPublisherEventTypes.EMBED_FAILURE,re))}}else ge.reject("Could not resolve RTMPPublisher instance. Requires minimum Flash Player install of "+oe);return ge.promise}},{key:"publish",value:function(){var X=this,re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,oe=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)||new R.DeferredPromise;this._setUpConnectCallback(oe),this._options.streamName=re||this._options.streamName;var xe=this._options;try{var ue=this._sourceHandler;this._sourceHandler.getEmbedOperation().then(function(){(0,K.debug)($,"[handler:embed:complete]"),x.default.getEmbedObject(X._elementId)&&X._establishExtIntHandlers();var N=0;!function se(){var ce=void 0;ce=setTimeout(function(){try{clearTimeout(ce),ue.connect((0,m.default)(xe))}catch(Z){if(N++>100)throw Z;se()}},300)}()}).catch(function(N){oe.reject(N),X.trigger(new k.PublisherEvent(k.PublisherEventTypes.CONNECT_FAILURE,X))})}catch(N){(0,K.error)($,"[handler:embed:error]"),oe.reject("Could not initiate connection sequence. Reason: "+N.message),this.trigger(new k.PublisherEvent(k.PublisherEventTypes.CONNECT_FAILURE,this)),this._tearDownConnectCallback()}return this._connectFuture=oe,oe.promise}},{key:"unpublish",value:function(){var X=new R.DeferredPromise;try{x.default.getEmbedObject(this._elementId).unpublish(),X.resolve()}catch(re){(0,K.error)($,"Could not initiate publish sequence. Reason: "+re.message),X.reject(re.message)}return this._connectFuture=void 0,X.promise}},{key:"send",value:function(X,re){this._sourceHandler.send(X,"string"==typeof re?re:(0,m.default)(re))}},{key:"setMediaQuality",value:function(X){this._sourceHandler&&this._sourceHandler.setMediaQuality(X)}},{key:"overlayOptions",value:function(X){this._options=(0,P.default)(this._options,X)}},{key:"getConnection",value:function(){return this._sourceHandler}},{key:"getOptions",value:function(){return this._options}},{key:"getType",value:function(){return G.PublishTypes.RTMP.toUpperCase()}}]),te}(A.default);d.default=J},function(W,d,n){"use strict";function l(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(d,"__esModule",{value:!0}),d.Red5ProSharedObjectPeerConnection=d.Red5ProSharedObjectSocket=d.Red5ProSharedObject=void 0;var m=l(n(130)),P=l(n(90)),O=l(n(129));d.Red5ProSharedObject=m.default,d.Red5ProSharedObjectSocket=P.default,d.Red5ProSharedObjectPeerConnection=O.default},function(W,d,n){"use strict";function l(K){return K&&K.__esModule?K:{default:K}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(3)),P=l(n(0)),O=l(n(1)),y=l(n(6)),i=l(n(31)),h=l(n(5)),c=function(K){if(K&&K.__esModule)return K;var $={};if(null!=K)for(var ee in K)Object.prototype.hasOwnProperty.call(K,ee)&&($[ee]=K[ee]);return $.default=K,$}(n(29)),A=l(n(60)),x=l(n(7)),D=l(n(90)),F=n(25),I=n(13),k=n(8),R=n(2),G=/(.*) starting/i,Y=function(K){function $(){var ee=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;(0,P.default)(this,$);var z="sharedobject-"+Math.floor(65536*Math.random()).toString(16),te=(0,y.default)(this,($.__proto__||(0,m.default)($)).call(this,ee,z));return te.id=z,te._options=void 0,te._socket=void 0,te._sharedObjectName=void 0,te._connectionPromise=void 0,te}return(0,h.default)($,K),(0,O.default)($,[{key:"_removeConnectionHandlers",value:function(ee){ee.onconnectionstatechange=void 0,ee.oniceconnectionstatechange=void 0,ee.onicecandidate=void 0,ee.ontrack=void 0,ee.ondatachannel=void 0}},{key:"_addConnectionHandlers",value:function(ee,J){var z=this,te=void 0;J=J||this._connectionPromise,ee.onconnectionstatechange=function(){(0,R.debug)(z._name,"[peer.onconnectionstatechange] - State: "+ee.connectionState),"connected"===ee.connectionState?((0,R.debug)(z._name,"[peerconnection:open]"),z.trigger(new I.MessageTransportStateEvent(I.MessageTransportStateEventTypes.OPEN,z._name,{peerConnection:z}))):"failed"!==ee.connectionState&&"disconnected"!==ee.connectionState||((0,R.warn)(z._name,"[peerconnection:error]"),"failed"===ee.connectionState&&z.trigger(new I.MessageTransportStateEvent(I.MessageTransportStateEventTypes.ERROR,z._name,{peerConnection:z,error:"Connection Failed."})),J&&J.reject("Connection Failed."))},ee.onicecandidate=function(X){(0,R.debug)(z._name,"[peer.onicecandidate] - Peer Candidate: "+X.candidate),X.candidate?z._socket.post({handleCandidate:z._name,data:{candidate:X.candidate}}):null===X.candidate&&(0,R.debug)(z._name,"[icecandidatetrickle:end]")},ee.oniceconnectionstatechange=function(X){var re=ee.iceConnectionState;(0,R.debug)(z._name,"[peer.oniceconnectionstatechange] - State: "+re),"connected"===re&&x.default.getIsEdge()?((0,R.debug)(z._name,"[edge/ortc:notify complete]"),(0,R.debug)(z._name,"[icecandidategathering:end]"),z._socket.postEndOfCandidates(z._name)):"failed"===re?(te&&clearTimeout(te),z.trigger(new I.MessageTransportStateEvent(I.MessageTransportStateEventTypes.ERROR,z._name,{peerConnection:z,error:"Connection Failed."})),z.trigger(new I.MessageTransportStateEvent(I.MessageTransportStateEventTypes.CLOSE,z._name,{peerConnection:z,event:X})),J&&J.reject("Connection Failed.")):"disconnected"===re?te=setTimeout(function(){(0,R.debug)(z._name,"[peer.oniceconnectionstatechange] - Reconnect timeout reached. Closing PeerConnection."),clearTimeout(te),z.trigger(new I.MessageTransportStateEvent(I.MessageTransportStateEventTypes.CLOSE,z._name,{peerConnection:z,event:X}))},5e3):te&&((0,R.debug)(z._name,"[peer.oniceconnectionstatechange] - Clearing timeout for reconnect."),clearTimeout(te))},ee.onicegatheringstatechange=function(){var X=ee.iceGatheringState;(0,R.debug)(z._name,"[peer.onicegatheringstatechange] - State: "+X),"complete"===X&&((0,R.debug)(z._name,"[icecandidategathering:end]"),z._socket.postEndOfCandidates(z._name))}}},{key:"_createOffer",value:function(){var ee=this,J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;(0,R.debug)(this._name,"[peer.createoffer]"),this._peerConnection.createOffer().then(function(z){(0,R.debug)(ee._name,"[peer:offer] "+z.sdp),ee._peerConnection.setLocalDescription(z).then(function(){ee._socket.post({handleOffer:ee._name,transport:"udp",data:{sdp:z}})}).catch(function(te){J&&J.reject(te)})})}},{key:"getRemoteSharedObject",value:function(ee){(0,i.default)($.prototype.__proto__||(0,m.default)($.prototype),"getRemoteSharedObject",this).call(this,ee),this._sharedObjectName=ee}},{key:"init",value:function(ee){var J=this,z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,te=new k.DeferredPromise;return this.id=z||this.id,this._name=this.id,this._options=ee,this._socket=new D.default(this),this._socket.on("MessageTransport.Open",function(X){(0,R.debug)(J._name,"[socket:event] - "+X.type),J._connectionPromise=te,J.setUpWithPeerConfiguration(ee.rtcConfiguration,J.getDataChannelConfiguration(ee)).then(function(){J._createOffer(te)}).catch(function(re){J.trigger(new I.MessageTransportStateEvent(I.MessageTransportStateEventTypes.ERROR,J._name,{peerConnection:J,error:re})),te.reject(re)})}),this._socket.init(ee,this.id,4).catch(function(X){J.trigger(new I.MessageTransportStateEvent(I.MessageTransportStateEventTypes.ERROR,J._name,{peerConnection:J,error:X})),te.reject(X)}),te.promise}},{key:"getMessageTransport",value:function(){return this._socket||this}},{key:"getDataChannelConfiguration",value:function(ee){return ee.dataChannelConfiguration||{name:"red5pro"}}},{key:"getDataChannelName",value:function(ee){var J=ee.dataChannelConfiguration;return J&&J.name?J.name:"red5pro"}},{key:"onIceTrickleComplete",value:function(){(0,R.debug)(this._name,"[peer:icetricklecomplete]"),this._socket.post({startChannel:this.getDataChannelName(this._options)})}},{key:"onAddIceCandidate",value:function(ee){(0,R.debug)(this._name,"[peer:addicecandidate]"),(0,F.isObjectEmpty)(ee.candidate)?(0,R.debug)(this._name,"[peer:onemptycandidate]"):this._peerConnection.addIceCandidate(ee)}},{key:"onSDPAnswer",value:function(ee){var J=this;(0,R.debug)(this._name,"[peer:handleanswer]"),this._peerConnection.setRemoteDescription(new c.RTCSessionDescription(ee)).then(function(){}).catch(function(z){J.trigger(new I.MessageTransportStateEvent(I.MessageTransportStateEventTypes.ERROR,J._name,{peerConnection:J,error:z})),J._connectionPromise.reject(z)})}},{key:"onDataChannelAvailable",value:function(ee){this._socket.sever({switchChannel:ee||"red5pro"}),this._socket=void 0,this._connectionPromise.resolve(this)}},{key:"onSocketStatus",value:function(ee){ee.message&&(G.exec(ee.message),(0,R.debug)(this._name,"[peer:status] "+ee.message))}}]),$}(A.default);d.default=Y},function(W,d,n){"use strict";function l(ee){return ee&&ee.__esModule?ee:{default:ee}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(38)),O=l(n(3)),y=l(n(6)),i=l(n(5)),h=l(n(0)),c=l(n(1)),A=l(n(19)),x=l(n(7)),V=n(13),D=n(2),F="Red5ProSharedObject",I=function(ee,J){(0,D.debug)([F,ee].join(":"),J)},k=function(ee,J){(0,D.warn)([F,ee].join(":"),J)},G=function(ee){return"string"==typeof ee?JSON.parse(ee):ee},Y=function(){function ee(J,z){(0,h.default)(this,ee),this.key=J,this.value=z}return(0,c.default)(ee,[{key:"toObject",value:function(){var J={};return J[this.key]=this.value,J}}]),ee}(),K=function(){function ee(J,z){(0,h.default)(this,ee),this.methodName=J;var te=void 0;if("[object Array]"===Object.prototype.toString.call(z)){var X=void 0,re=void 0,ge=z.length;for(te=[],X=0;X<ge;X++)re=G(z[X]),"[object Array]"===Object.prototype.toString.call(z)?te=te.concat(re):te.push(re)}else te=[G(z)];this.message=1===te.length?te[0]:te}return(0,c.default)(ee,[{key:"toObject",value:function(){return{methodName:this.methodName,message:this.message}}}]),ee}(),$=function(ee){function J(z,te){(0,h.default)(this,J);var X=(0,y.default)(this,(J.__proto__||(0,O.default)(J)).call(this));return X._name=z,X._transport=void 0,X._transportController=void 0,X._onclose=X.close.bind(X),X._handleTransportStateEvents=X._handleTransportStateEvents.bind(X),X._handleMessageTransportChange=X._handleMessageTransportChange.bind(X),X.setMessageTransportController(te),X}return(0,i.default)(J,ee),(0,c.default)(J,[{key:"_establishTransport",value:function(z){z.addSharedObjectResponseHandler(this);try{I(this._name,"[sharedobject:connect:attempt]"),z.on("*",this._handleSocketStateEvents),z.getRemoteSharedObject(this._name),x.default.addCloseHandler(this._onclose,0)}catch(te){(function(ee,J){(0,D.error)([F,ee].join(":"),J)})(this._name,"[sharedobject:connect:error]: "+te.message),this._transport=void 0,this._transportController=void 0}}},{key:"_handleMessageTransportChange",value:function(z){var te=this,X=z.data.controller,re=setTimeout(function(){clearTimeout(re),te.setMessageTransportController(X)},1e3)}},{key:"_handleTransportStateEvents",value:function(z){I(this._name,z.name+": "+z.type),z.type===V.MessageTransportStateEventTypes.CLOSE&&(this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.CONNECTION_CLOSED,this._name)),this.close())}},{key:"_getJsonFromSocketMessage",value:function(z){try{return"string"==typeof z.data?JSON.parse(z.data):z.data}catch(te){k(this._name,"Could not parse message as JSON. Message= "+z.data+". Error= "+te.message)}return null}},{key:"_notifyOfPropertyValues",value:function(z){if(0===(0,P.default)(z).length)this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.PROPERTY_UPDATE,this._name,{}));else{var te=void 0;for(te in z)this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.PROPERTY_UPDATE,this._name,new Y(te,z[te]).toObject()))}}},{key:"_notifyOfEvents",value:function(z){var te=void 0,X=void 0,re=!1,ge=z.length;for(te=0;te<ge;te++)switch(X=z[te],X.subtype){case 9:this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.PROPERTY_REMOVE,this._name,{attribute:X.attribute})),re=!0;break;case 4:X.attributes?this._notifyOfPropertyValues(X.attributes):this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.PROPERTY_UPDATE,this._name,new Y(X.attribute,X.value).toObject())),re=!0;break;case 6:this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.METHOD_UPDATE,this._name,new K(X.method,X.value).toObject())),re=!0}return re}},{key:"respond",value:function(z){if(z.data){var te=this._getJsonFromSocketMessage(z);if(null===te)return k(this._name,"Determined message response not in correct format. Aborting message handle."),!0;if(void 0!==te.data)if(te.data.name===this._name){if(I(this._name,"[sharedobject-response]: "+(0,m.default)(te,null,2)),"SharedObject.Status.GetRemote"===te.data.status&&"Success"===te.data.message)return this._transport.connectToSharedObject(this._name),!0;if("SharedObject.Status.GetRemote"===te.data.status&&"Fail"===te.data.message)return this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.CONNECT_FAILURE,this._name)),!0;if("SharedObject.Status.Connect"===te.data.status&&"Success"===te.data.message)return this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.CONNECT_SUCCESS,this._name)),!0;if("SharedObject.Status.Connect"===te.data.status&&"Fail"===te.data.message)return this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.CONNECT_FAILURE,this._name)),!0;if("SharedObject.Status.Disconnect"===te.data.status)return this.trigger(new V.SharedObjectEvent(V.SharedObjectEventTypes.CONNECTION_CLOSED,this._name)),!0;if("sharedobject"===te.data.type){if(te.data.hasOwnProperty("events"))return this._notifyOfEvents(te.data.events);if(te.data.hasOwnProperty("value"))return this._notifyOfPropertyValues(te.data.value)}}else I(this._name,"Unhandled Message exchange: "+(0,m.default)(te,null,2))}return!1}},{key:"send",value:function(z,te){var X=this._transport;X?X.sendToSharedObject(this._name,z,te):k(this._name,"No WebSocket connection available!")}},{key:"setProperty",value:function(z,te){this._transport.sendPropertyToSharedObject(this._name,z,te)}},{key:"close",value:function(){var z=this._transport;if(z){try{z.closeSharedObject(this._name)}catch{}z.removeSharedObjectResponseHandler(this),z.off("*",this._handleTransportStateEvents)}this._transport=void 0,this._transportController=void 0,x.default.removeCloseHandler(this._onclose)}},{key:"getMessageTransportController",value:function(){return this._transportController}},{key:"setMessageTransportController",value:function(z){this._transport&&(this._transport.removeSharedObjectResponseHandler(this),this._transport.off("*",this._handleTransportStateEvents),x.default.removeCloseHandler(this._onclose),this._transport=void 0,this._transportController=void 0),this._transportController=z,this._transport=this._transportController.getMessageTransport(),this._transportController&&this._transport&&(this._transportController.on(V.MessageTransportStateEventTypes.CHANGE,this._handleMessageTransportChange),this._establishTransport(this._transport))}},{key:"getName",value:function(){return this._name}}]),J}(A.default);d.default=$},function(W,d,n){"use strict";function l(V){return V&&V.__esModule?V:{default:V}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(3)),P=l(n(0)),O=l(n(1)),y=l(n(6)),i=l(n(5)),h=l(n(19)),c=l(n(7)),T=n(91),A=n(2),L="ControlSlider",x=function(V){function D(F){(0,P.default)(this,D);var I=(0,y.default)(this,(D.__proto__||(0,m.default)(D)).call(this));return I.name=[L,F].join("::"),(0,A.debug)(I.name,"[init]"),I._container=c.default.createElement("div"),I._button=I.createButton(),I._track=I.createTrack(),I._progressBar=I.createProgressBar(),I._container.appendChild(I._track),I._container.appendChild(I._progressBar),I._container.appendChild(I._button),I._value=0,I._disabled=!1,I._eventStartPosition=0,I._layout(),I._mouseupHandler=I._mouseup.bind(I),I._mousedownHandler=I._mousedown.bind(I),I._mousemoveHandler=I._mousemove.bind(I),I._touchupHandler=I._touchproxy.bind(I),I._touchdownHandler=I._touchproxy.bind(I),I._touchmoveHandler=I._touchproxy.bind(I),I._updateHandlers(I._disabled),I}return(0,i.default)(D,V),(0,O.default)(D,[{key:"_touchproxy",value:function(F){if(F.preventDefault(),!(F.touches.length>1||"touchend"==F.type&&F.touches.length>0)){var I=c.default.createEvent("MouseEvent"),k=void 0,R=void 0,G=F.originalTarget||F.target;switch(F.type){case"touchstart":k="mousedown",R=F.changedTouches[0];break;case"touchmove":k="mousemove",R=F.changedTouches[0];break;case"touchend":k="mouseup",R=F.changedTouches[0]}I.initMouseEvent(k,!0,!0,G.ownerDocument.defaultView,0,R.screenX,R.screenY,R.clientX,R.clientY,F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,0,null),G.dispatchEvent(I)}}},{key:"_mouseup",value:function(){this._eventStartPosition=0,document.removeEventListener("mousemove",this._mousemoveHandler),document.removeEventListener("mouseup",this._mouseupHandler),document.removeEventListener("touchmove",this._touchmoveHandler),document.removeEventListener("touchup",this._touchupHandler),this.trigger(new T.SliderEvent(T.SliderEventTypes.CHANGE_COMPLETE,this))}},{key:"_mousemove",value:function(F){var I=c.default.getMouseXFromEvent(F)-this._eventStartPosition,k=this._button.parentNode.getBoundingClientRect(),R=this._eventStartPosition+I-k.left;R=Math.max(0,R),R=Math.min(R,k.width),this.trigger(new T.SliderEvent(T.SliderEventTypes.CHANGE,this,R/k.width))}},{key:"_mousedown",value:function(F){this._eventStartPosition=c.default.getMouseXFromEvent(F),this.trigger(new T.SliderEvent(T.SliderEventTypes.CHANGE_START,this)),document.addEventListener("mousemove",this._mousemoveHandler),document.addEventListener("mouseup",this._mouseupHandler),document.addEventListener("touchmove",this._touchmoveHandler),document.addEventListener("touchup",this._touchupHandler)}},{key:"_updateHandlers",value:function(F){this._eventStartPosition=0,F?(this._track.removeEventListener("click",this._mousemoveHandler),this._progressBar.removeEventListener("click",this._mousemoveHandler),this._button.removeEventListener("mousedown",this._mousedownHandler),document.removeEventListener("mousemove",this._mousemoveHandler),document.removeEventListener("mouseup",this._mouseupHandler),document.removeEventListener("touchmove",this._touchmoveHandler),document.removeEventListener("touchup",this._touchupHandler),this._track.classList.add("red5pro-media-slider-disabled"),this._progressBar.classList.add("red5pro-media-slider-disabled"),this._button.classList.add("red5pro-media-slider-disabled")):(this._track.addEventListener("click",this._mousemoveHandler),this._progressBar.addEventListener("click",this._mousemoveHandler),this._button.addEventListener("mousedown",this._mousedownHandler),this._button.addEventListener("touchstart",this._touchdownHandler),this._track.classList.remove("red5pro-media-slider-disabled"),this._progressBar.classList.remove("red5pro-media-slider-disabled"),this._button.classList.remove("red5pro-media-slider-disabled"))}},{key:"_layout",value:function(){var F=this._progressBar.parentNode.clientWidth*this._value;this._progressBar.style.width=F+"px",this._button.style.left=F-.5*this._button.clientWidth+"px"}},{key:"createButton",value:function(){var F=c.default.createElement("span");return F.classList.add("red5pro-media-slider-button"),F}},{key:"createProgressBar",value:function(){var F=c.default.createElement("span");return F.classList.add("red5pro-media-slider-progress"),F}},{key:"createTrack",value:function(){var F=c.default.createElement("span");return F.classList.add("red5pro-media-slider-track"),F}},{key:"value",get:function(){return this._value},set:function(F){this._value=F,this._layout()}},{key:"disabled",get:function(){return this._disabled},set:function(F){this._disabled=F,this._updateHandlers(F)}},{key:"view",get:function(){return this._container}}]),D}(h.default);d.default=x},function(W,d,n){"use strict";function l(re){return re&&re.__esModule?re:{default:re}}Object.defineProperty(d,"__esModule",{value:!0}),d.RTMPSubscriber=d.HLSSubscriber=d.RTCSubscriber=d.Red5ProSubscriber=void 0;var re,m=l(n(97)),P=l(n(99)),O=l(n(3)),y=l(n(0)),i=l(n(1)),h=l(n(6)),c=l(n(5)),A=l(n(94)),x=l(n(92)),D=l(n(19)),I=l(n(134)),R=l(n(135)),Y=l(n(133)),K=n(8),$=n(36),ee=n(2),J="Red5ProSubscriber",z=new x.default,te=((re=new A.default).set($.PlaybackTypes.RTC,I.default),re.set($.PlaybackTypes.RTMP,R.default),re.set($.PlaybackTypes.HLS,Y.default),re),X=function(re){function ge(){(0,y.default)(this,ge);var oe=(0,h.default)(this,(ge.__proto__||(0,O.default)(ge)).call(this));return oe._options=void 0,oe._order=[$.PlaybackTypes.RTC,$.PlaybackTypes.RTMP,$.PlaybackTypes.HLS],oe}return(0,c.default)(ge,re),(0,i.default)(ge,[{key:"_getPlaybackFromOrder",value:function(oe,xe){return z.create(oe,te,xe,"init")}},{key:"getPlaybackOrder",value:function(){return this._order}},{key:"setPlaybackOrder",value:function(oe){var xe=(oe="string"==typeof oe?[oe]:oe).filter(function(ue){var N=void 0;for(N in $.PlaybackTypes)if($.PlaybackTypes[N].toLowerCase()===ue.toLowerCase())return!0;return!1}).map(function(ue){return ue.toLowerCase()});return this._order=[].concat((0,P.default)(new m.default(xe))),(0,ee.debug)(J,"[orderupdate]: "+this._order),this}},{key:"init",value:function(oe){this._options=oe;var xe=new K.DeferredPromise;return(0,ee.debug)(J,"[init]"),this._getPlaybackFromOrder(this._order,this._options).then(function(ue){(0,ee.debug)(J,"[init:success]: subscriber found "+ue.getType()),xe.resolve(ue)}).catch(function(ue){(0,ee.warn)(J,"[playerror]: Could not implement a subscriber: "+ue),xe.reject(ue)}),xe.promise}},{key:"playbackTypes",get:function(){return $.PlaybackTypes}}]),ge}(D.default);d.Red5ProSubscriber=X,d.RTCSubscriber=I.default,d.HLSSubscriber=Y.default,d.RTMPSubscriber=R.default},function(W,d,n){"use strict";function l(re){return re&&re.__esModule?re:{default:re}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(30)),P=l(n(3)),O=l(n(0)),y=l(n(1)),i=l(n(6)),h=l(n(5)),c=l(n(7)),A=function(re){if(re&&re.__esModule)return re;var ge={};if(null!=re)for(var oe in re)Object.prototype.hasOwnProperty.call(re,oe)&&(ge[oe]=re[oe]);return ge.default=re,ge}(n(44)),x=l(n(45)),D=l(n(136)),I=l(n(47)),k=n(24),R=n(13),G=n(36),Y=n(8),K=n(2),$=n(46),ee="HLSSubscriber",J={protocol:"https",port:443,app:"live",mimeType:"application/x-mpegURL",mediaElementId:"red5pro-subscriber",autoLayoutOrientation:!0,muteOnAutoplayRestriction:!0,subscriptionId:"subscriber-"+Math.floor(65536*Math.random()).toString(16)},z=/^http(|s).*\.m3u8/g,te=function(re){var ge=re.hlsprotocol?re.hlsprotocol:re.protocol,oe=re.hlsport?re.hlsport:re.port,xe=re.context?[re.app,re.context].join("/"):re.app;return ge+"://"+re.host+":"+oe+"/"+xe+"/"+re.streamName+".m3u8"},X=function(re){function ge(){(0,O.default)(this,ge);var oe=(0,i.default)(this,(ge.__proto__||(0,P.default)(ge)).call(this));return oe._options=void 0,oe._view=void 0,oe._sourceHandler=void 0,oe._socketHelper=void 0,oe._viewResolver=new Y.DeferredPromise,oe._subscriptionResolver=new Y.DeferredPromise,oe._boundBubbleSubscriberEvents=oe.bubbleSubscriberEvents.bind(oe),oe}return(0,h.default)(ge,re),(0,y.default)(ge,[{key:"_getViewResolverPromise",value:function(){return this._viewResolver.promise}},{key:"_getSubscriptionResolverPromise",value:function(){return this._subscriptionResolver.promise}},{key:"bubbleSubscriberEvents",value:function(oe){oe.type===R.SubscriberEventTypes.SUBSCRIBE_START&&this._subscriptionResolver.resolve(this),this.trigger(new R.SubscriberEvent(oe.type,this,oe.data))}},{key:"_glomSourceHandlerAPI",value:function(oe){var xe=this;this.play=oe.play.bind(oe),this.pause=oe.pause.bind(oe),this.resume=oe.resume.bind(oe),this.stop=oe.stop.bind(oe),this.mute=oe.mute.bind(oe),this.unmute=oe.unmute.bind(oe),this.setVolume=oe.setVolume.bind(oe),this.seekTo=oe.seekTo.bind(oe),this.toggleFullScreen=oe.toggleFullScreen.bind(oe),oe.on("*",function(ue){xe.trigger(new R.SubscriberEvent(ue.type,xe,ue.data))})}},{key:"_setViewIfNotExist",value:function(oe){var xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===oe&&void 0!==xe&&new I.default(xe).attachSubscriber(this)}},{key:"_initHandler",value:function(oe){var xe=this,ue=this._options,N=ue.streamName,se=ue.mimeType,ce=N.match(z)?N:te(this._options);this._sourceHandler.on("*",this._boundBubbleSubscriberEvents),this._sourceHandler.addSource(ce,se,oe).then(function(){xe.trigger(new R.SubscriberEvent(R.SubscriberEventTypes.CONNECT_SUCCESS)),xe._trackStreamingModeState(xe._sourceHandler)}).catch(function(Z){(0,K.error)(ee,"Could not establish an HLS Subscriber: "+Z),xe.trigger(new R.SubscriberEvent(R.SubscriberEventTypes.CONNECT_FAILURE))})}},{key:"_trackStreamingModeState",value:function(oe){var xe=this;oe.on(R.SubscriberEventTypes.STREAMING_MODE_CHANGE,function(ue){var N=ue.data;if("Empty"!==N.streamingMode&&"Empty"===N.previousStreamingMode){xe._sourceHandler.disconnect();var Z=xe._options,de=Z.streamName,ae=Z.mimeType,pe=de.match(z)?de:te(xe._options);xe._sourceHandler.addSource(pe,ae,xe._options).then(function(){return xe.subscribe()}).catch(function(_e){return _e(ee,_e)})}})}},{key:"init",value:function(oe){var xe=this,ue=new Y.DeferredPromise;if(c.default.supportsHLS())if(oe.connectionParams&&!A.isSupported())(0,K.warn)(ee,"Could not resolve HLSSubscriber instance with connection params. WebSocket support is required."),ue.reject(ee,"Could not resolve HLSSubscriber instance with connection params. WebSocket support is required.");else{this._options=(0,m.default)({},J,oe);var N=new Y.DeferredPromise;if(this._options.connectionParams)try{this._socketHelper=new x.default(this,"HLSSubscriptionSocket");var se=(0,$.hlsSocketEndpointFromOptions)(this._options,{id:this._options.subscriptionId});this._socketHelper.setUp(se,N)}catch(ce){(0,K.error)(ee,ce.message),ue.reject(ee,"Could not set up WebSocket for authentication with connectionParams: "+ce.message)}else N.resolve();N.promise.then(function(){xe._socketHelper&&(xe._socketHelper.tearDown(),xe._socketHelper=void 0),xe._setViewIfNotExist(xe._view,xe._options.mediaElementId),xe._getViewResolverPromise().then(function(ce){xe._sourceHandler=new D.default(ce.view,xe.getType()),xe._glomSourceHandlerAPI(xe._sourceHandler),xe._options&&xe._initHandler(xe._options)}),ue.resolve(xe)}).catch(function(ce){ue.reject(ce),xe.trigger(new R.SubscriberEvent(R.SubscriberEventTypes.CONNECT_FAILURE,xe,ce))})}else(0,K.warn)(ee,"Could not resolve HLSSubscriber instance."),ue.reject("Could not resolve HLSSubscriber instance.");return ue.promise}},{key:"setView",value:function(oe){return this._view=oe,this._viewResolver.resolve(oe),this}},{key:"subscribe",value:function(){return this._getSubscriptionResolverPromise()}},{key:"unsubscribe",value:function(){(0,K.debug)(ee,"[unscubscribe]");var oe=new Y.DeferredPromise;this._socketHelper&&this._socketHelper.tearDown();try{this._sourceHandler.stop(),this._sourceHandler.disconnect(),oe.resolve()}catch(xe){oe.reject(xe.message)}return oe.promise}},{key:"getConnection",value:function(){return this._sourceHandler}},{key:"getControls",value:function(){return this._sourceHandler?this._sourceHandler.getControls():void 0}},{key:"getOptions",value:function(){return this._options}},{key:"getPlayer",value:function(){return this._view.view}},{key:"getType",value:function(){return G.PlaybackTypes.HLS.toUpperCase()}}]),ge}(k.PlaybackController);d.default=X},function(W,d,n){"use strict";function l(_e){if(_e&&_e.__esModule)return _e;var ke={};if(null!=_e)for(var De in _e)Object.prototype.hasOwnProperty.call(_e,De)&&(ke[De]=_e[De]);return ke.default=_e,ke}function p(_e){return _e&&_e.__esModule?_e:{default:_e}}Object.defineProperty(d,"__esModule",{value:!0});var _=p(n(38)),v=p(n(10)),S=p(n(30)),r=p(n(3)),a=p(n(0)),g=p(n(1)),T=p(n(6)),L=p(n(5)),V=p(n(7)),D=n(82),I=l(n(29)),R=l(n(44)),Y=p(n(137)),$=p(n(120)),J=p(n(122)),te=p(n(47)),X=n(24),re=n(25),ge=n(46),oe=n(13),xe=n(36),ue=n(59),N=n(8),se=n(2),ce=/(.*) starting/i,Z="RTCSubscriber",ae={protocol:"wss",port:443,app:"live",autoLayoutOrientation:!0,mediaElementId:"red5pro-subscriber",rtcConfiguration:{iceServers:[{urls:"stun:stun2.l.google.com:19302"}],iceCandidatePoolSize:2,bundlePolicy:"max-bundle"},iceServers:void 0,iceTransport:ue.IceTransportTypes.UDP,muteOnAutoplayRestriction:!0,maintainConnectionOnSubscribeErrors:!1,signalingSocketOnly:!0,dataChannelConfiguration:void 0,socketSwitchDelay:1e3},pe=function(_e){function ke(){(0,a.default)(this,ke);var De=(0,T.default)(this,(ke.__proto__||(0,r.default)(ke)).call(this));return De._view=void 0,De._options=void 0,De._peerHelper=void 0,De._socketHelper=void 0,De._messageTransport=void 0,De._connectionClosed=!0,De._sourceHandler=void 0,De._mediaStream=void 0,De._viewResolver=new N.DeferredPromise,De._availabilityResolver=new N.DeferredPromise,De._subscriptionResolver=new N.DeferredPromise,De._orientation=0,De._streamingMode="Video/Audio",De._switchChannelRequest=void 0,De}return(0,L.default)(ke,_e),(0,g.default)(ke,[{key:"_getViewResolverPromise",value:function(){return this._viewResolver.promise}},{key:"_getAvailabilityResolverPromise",value:function(){return this._availabilityResolver.promise}},{key:"_getSubscriptionResolverPromise",value:function(){return this._subscriptionResolver.promise}},{key:"_glomSourceHandlerAPI",value:function(De){var Me=this;this.play=De.play.bind(De),this.pause=De.pause.bind(De),this.resume=De.resume.bind(De),this.stop=De.stop.bind(De),this.mute=De.mute.bind(De),this.unmute=De.unmute.bind(De),this.setVolume=De.setVolume.bind(De),this.seekTo=De.seekTo.bind(De),this.toggleFullScreen=De.toggleFullScreen.bind(De),De.on("*",function(je){Me.trigger(new oe.SubscriberEvent(je.type,Me,je.data))})}},{key:"_setViewIfNotExist",value:function(De){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===De&&void 0!==Me&&new te.default(Me).attachSubscriber(this)}},{key:"_initHandler",value:function(De,Me){De&&Me&&(Me.on("*",this._boundBubbleSubscriberEvents),Me.addSource(De))}},{key:"_requestAvailability",value:function(De){(0,se.debug)(Z,"[requestavailability]"),this._socketHelper.post({isAvailable:De})}},{key:"_requestOffer",value:function(De,Me,je,$e){var Oe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,gt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;(0,se.debug)(Z,"[requestoffer]");var qt={requestOffer:De,requestId:Me,transport:je,datachannel:$e};void 0!==Oe&&Oe!==xe.PlaybackVideoEncoder.NONE?qt.videoEncoding=Oe:V.default.getIsEdge(),void 0!==gt&>!==xe.PlaybackAudioEncoder.NONE&&(qt.audioEncoding=gt),this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.OFFER_START,this)),this._socketHelper.post(qt)}},{key:"_requestAnswer",value:function(De){var Me=this;(0,se.debug)(Z,"[requestanswer]"),this._peerHelper.createAnswer(De).then(function(je){(0,se.debug)(Z,"[onanswercreated]"),(0,se.debug)(Z,"[> sendanswer]"),Me._sendAnswer(Me._options.streamName,Me._options.subscriptionId,je)}).catch(function(je){Me.onSDPError(je)})}},{key:"_sendAnswer",value:function(De,Me,je){(0,se.debug)(Z,"[sendanswer]: streamname("+De+"), subscriptionid("+Me+")"),this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.ANSWER_START,this,je)),this._socketHelper.post({handleAnswer:De,requestId:Me,data:{sdp:je}})}},{key:"_sendCandidate",value:function(De){(0,se.debug)(Z,"[sendcandidate]"),this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.CANDIDATE_START,this,De)),this._socketHelper.post({handleCandidate:this._options.streamName,requestId:this._options.subscriptionId,data:{candidate:De}})}},{key:"_connect",value:function(De){var Me=this,je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,$e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return(0,se.debug)(Z,"[connect]"),$e&&De&&((0,se.warn)("The iceServers configuration property is considered deprecated. Please use the rtcConfiguration configuration property upon which you can assign iceServers. Reference: https://www.red5pro.com/docs/streaming/migrationguide.html"),De.iceServers=$e),this._options.iceServers=De?De.iceServers:$e,(void 0!==De?this._peerHelper.setUpWithPeerConfiguration(De,je,void 0):this._peerHelper.setUp(this._options.iceServers,void 0,this._options.rtcpMuxPolicy)).then(function(gt){Me.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.PEER_CONNECTION_AVAILABLE,Me,gt)),Me._requestOffer(Me._options.streamName,Me._options.subscriptionId,Me._options.iceTransport,Me._options.signalingSocketOnly,Me._options.videoEncoding,Me._options.audioEncoding)}).catch(function(){(0,se.warn)(Z,"Could not establish RTCPeerConnection."),Me.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.CONNECT_FAILURE,Me))}),this}},{key:"_disconnect",value:function(){this._socketHelper&&((0,se.debug)(Z,"[disconnect:socket]"),this._socketHelper.tearDown()),this._peerHelper&&((0,se.debug)(Z,"[disconnect:peer]"),this._peerHelper.tearDown()),this._view&&this._view.detachStream(),this._socketHelper=void 0,this._peerHelper=void 0,this._messageTransport=void 0,this._sourceHandler&&((0,se.debug)(Z,"[disconnect:source]"),this._sourceHandler.disconnect(),this._sourceHandler=void 0),this._connectionClosed=!0}},{key:"_playIfAutoplaySet",value:function(De,Me){De&&Me&&(De.autoplay=V.default.hasAttributeDefined(Me.view,"autoplay"),De.autoplay&&this._sourceHandler.attemptAutoplay(De.muteOnAutoplayRestriction))}},{key:"_sendSubscribe",value:function(){(0,se.debug)(Z,"[sendsubscribe]"),this._socketHelper.post({subscribe:this._options.streamName,requestId:this._options.subscriptionId})}},{key:"init",value:function(De){var Me=this,je=new N.DeferredPromise;if(I.isSupported()&&R.isSupported()){this._disconnect(),this._options=(0,S.default)({},ae,De),this._options.subscriptionId=this._options.subscriptionId||"subscriber-"+Math.floor(65536*Math.random()).toString(16),this._peerHelper=new J.default(this),this._socketHelper=new $.default(this),this._messageTransport=this._socketHelper;var $e=new N.DeferredPromise,Oe=(0,ge.rtcSocketEndpointFromOptions)(this._options,{id:this._options.subscriptionId});$e.promise.then(function(){je.resolve(Me),Me._connectionClosed=!1,Me.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.CONNECT_SUCCESS,Me))}).catch(function(gt){je.reject(gt),Me.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.CONNECT_FAILURE,Me,gt))}),this._socketHelper.setUp(Oe,$e)}else je.reject("Cannot create WebRTC playback instance. Your environment does not support WebRTC and/or WebSockets.");return je.promise}},{key:"setView",value:function(De){return this._view=De,this._viewResolver.resolve(this._view),this}},{key:"subscribe",value:function(){var De=this,Me=this._options,je=Me.streamName,$e=Me.mediaElementId,Oe=Me.rtcConfiguration,gt=this._options,ye=gt.dataChannelConfiguration,Re=gt.signalingSocketOnly&&I.supportsDataChannel();return Re&&!ye&&(ye={name:"red5pro"}),this._options.signalingSocketOnly=Re,this._getViewResolverPromise().then(function(Ze){De._sourceHandler=new Y.default(Ze.view,De.getType()),De._glomSourceHandlerAPI(De._sourceHandler),De._initHandler(De._options,De._sourceHandler)}).catch(function(){}),this._getAvailabilityResolverPromise().then(function(){De._connect(Oe,ye,De._options.iceServers)}).catch(function(){}),this._setViewIfNotExist(this._view,$e),this._requestAvailability(je),this._getSubscriptionResolverPromise()}},{key:"unsubscribe",value:function(){(0,se.debug)(Z,"[unsubscribe]");var De=new N.DeferredPromise;return this.stop(),this._disconnect(),this._mediaStream=void 0,De.resolve(this),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_STOP,this)),De.promise}},{key:"onStreamAvailable",value:function(De){(0,se.debug)(Z,"[onstreamavailable]: "+(0,v.default)(De,null,2)),this._availabilityResolver.resolve(this)}},{key:"onStreamUnavailable",value:function(De){(0,se.debug)(Z,"Stream "+this._options.streamName+" does not exist."),(0,se.debug)(Z,"[onstreamunavailable]: "+(0,v.default)(De,null,2)),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_INVALID_NAME,this)),this._availabilityResolver.reject("Stream "+this._options.streamName+" does not exist."),this._subscriptionResolver.reject("Stream "+this._options.streamName+" does not exist."),this._options.maintainConnectionOnSubscribeErrors?(this._availabilityResolver=new N.DeferredPromise,this._subscriptionResolver=new N.DeferredPromise):this._disconnect()}},{key:"onSDPSuccess",value:function(De){(0,se.debug)(Z,"[onsdpsuccess]: "+(0,v.default)(De,null,2))}},{key:"onSDPOffer",value:function(De){(0,se.debug)(Z,"[onsdpoffer]: "+(0,v.default)(De,null,2));var Me=new I.RTCSessionDescription(De.sdp);this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.OFFER_END,this)),this._requestAnswer(Me)}},{key:"onSDPError",value:function(De){this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_FAIL,this,De)),this._subscriptionResolver.reject("Invalid SDP."),(0,se.error)(Z,"[onsdperror]"),(0,se.error)(Z,De)}},{key:"onAnswerMediaStream",value:function(){this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.ANSWER_END,this))}},{key:"onIceCandidate",value:function(De){(0,se.debug)(Z,"[onicecandidate]"),this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.CANDIDATE_END,this)),this._sendCandidate(De)}},{key:"onIceCandidateTrickleEnd",value:function(De){var Me=this;(0,se.debug)(Z,"[onicetrickleend]"),this._getViewResolverPromise().then(function(je){je.attachStream(De),Me._mediaStream=De,Me.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.ON_ADD_STREAM,Me,Me._mediaStream))})}},{key:"onAddIceCandidate",value:function(De){(0,se.debug)(Z,"[onaddicecandidate]"),this._peerHelper.addIceCandidate(De)}},{key:"onEmptyCandidate",value:function(){(0,se.debug)(Z,"[icecandidatetrickle:empty]"),this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.PEER_CANDIDATE_END))}},{key:"onPeerGatheringComplete",value:function(){(0,se.debug)(Z,"[icecandidategathering:end]"),this._socketHelper&&this._socketHelper.postEndOfCandidates(this._options.streamName)}},{key:"onSocketIceCandidateEnd",value:function(){(0,se.debug)(Z,"[onsocketicecandidateend]"),this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.ICE_TRICKLE_COMPLETE,this)),this._sendSubscribe()}},{key:"onSocketMessageError",value:function(De){(0,se.error)(Z,"Error in stream subscription: "+De+".\n[Optional detail]: "+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)),this._subscriptionResolver.reject("Error in stream subscription: "+De+"."),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_FAIL,this,De))}},{key:"onSocketClose",value:function(De){(0,se.debug)(Z,"[onsocketclose]"),this._peerHelper&&this._peerHelper.tearDown(),this.onConnectionClosed(De)}},{key:"onPeerConnectionFail",value:function(){(0,se.debug)(Z,"[onpeerconnectionfail]"),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_FAIL,this,"fail")),this._subscriptionResolver.reject("Peer Connection Failed.")}},{key:"onPeerConnectionClose",value:function(De){(0,se.debug)(Z,"[onpeerconnectionclose]"),this._socketHelper&&this._socketHelper.tearDown(),this.onSocketClose(De)}},{key:"onPeerConnectionOpen",value:function(){(0,se.debug)(Z,"[onpeerconnectionopen]"),this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.PEER_CONNECTION_OPEN))}},{key:"onUnpublish",value:function(){(0,se.debug)(Z,"[onunpublish]"),this._sourceHandler&&this._sourceHandler.unpublish(),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.PLAY_UNPUBLISH,this)),this.unsubscribe()}},{key:"onConnectionClosed",value:function(){var De=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._connectionClosed||((0,se.debug)(Z,"[onconnectionclosed]"),this._disconnect(),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.CONNECTION_CLOSED,this,De)))}},{key:"onSendReceived",value:function(De,Me){"onMetaData"===De?this.onMetaData(Me):"onPublisherNetworkCongestion"===De?this.onPublisherNetworkCongestion(Me):"onPublisherNetworkRecovery"===De?this.onPublisherNetworkRecovery(Me):this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_SEND_INVOKE,this,{methodName:De,data:Me}))}},{key:"onSubscriberStatus",value:function(De){(0,se.debug)(Z,"[subscriberstatus] - "+(0,v.default)(De,null,2));var Me=ce.exec(De.message);Me&&Me[1]===this._options.streamName?(this._subscriptionResolver.resolve(this),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_START,this)),this._playIfAutoplaySet(this._options,this._view)):this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_STATUS,this,De))}},{key:"onDataChannelAvailable",value:function(De){var Me=this;if((0,se.debug)("[ondatachannel::available]"),this._switchChannelRequest={switchChannel:De||"red5pro"},this._options.signalingSocketOnly)var je=setTimeout(function(){clearTimeout(je),Me._socketHelper.sever(Me._switchChannelRequest),Me._messageTransport=Me._peerHelper,Me.trigger(new oe.MessageTransportStateEvent(oe.MessageTransportStateEventTypes.CHANGE,Me,{controller:Me,transport:Me._messageTransport}))},this._options.socketSwitchDelay);this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.DATA_CHANNEL_AVAILABLE,this,{name:De,dataChannel:this.getDataChannel()}))}},{key:"onDataChannelError",value:function(De,Me){this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.DATA_CHANNEL_ERROR,this,{dataChannel:De,error:Me}))}},{key:"onDataChannelMessage",value:function(De,Me){this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.DATA_CHANNEL_MESSAGE,this,{dataChannel:De,message:Me}))}},{key:"onDataChannelOpen",value:function(De){this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.DATA_CHANNEL_OPEN,this,{dataChannel:De}))}},{key:"onDataChannelClose",value:function(De){this.trigger(new oe.SubscriberEvent(oe.RTCSubscriberEventTypes.DATA_CHANNEL_CLOSE,this,{dataChannel:De}))}},{key:"onMetaData",value:function(De){var Me=De.orientation,je=De.streamingMode,$e=this._streamingMode;void 0!==Me&&Me!==this._orientation&&(this._orientation=Me,this._options.autoLayoutOrientation&&((0,D.applyOrientation)(this._view.view,parseInt(Me,10),(0,re.metadataResolutionToObject)(De.resolution)),this._sourceHandler&&this._sourceHandler.handleOrientationChange(parseInt(Me,10))),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.ORIENTATION_CHANGE,this,{orientation:parseInt(Me,10),viewElement:this._view.view}))),void 0!==je&&je!==$e&&(this._streamingMode=je,this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.STREAMING_MODE_CHANGE,this,{streamingMode:je,previousStreamingMode:$e,viewElement:this._view.view}))),this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_METADATA,this,De))}},{key:"onPublisherNetworkCongestion",value:function(De){this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_PUBLISHER_CONGESTION,this,De))}},{key:"onPublisherNetworkRecovery",value:function(De){this.trigger(new oe.SubscriberEvent(oe.SubscriberEventTypes.SUBSCRIBE_PUBLISHER_RECOVERY,this,De))}},{key:"callServer",value:function(De,Me){return this.getMessageTransport().postAsync({callAdapter:{method:De,arguments:Me}})}},{key:"sendLog",value:function(De,Me){try{var je=(0,_.default)(se.LEVELS).find(function(gt){return gt.toLowerCase()===De.toLowerCase()})?De:se.LEVELS.DEBUG,$e="string"==typeof Me?Me:(0,v.default)(Me);this.getMessageTransport().post({log:je.toUpperCase(),message:$e})}catch(gt){var Oe=gt.message||gt;(0,se.error)(Z,"Could not send log to server. Message parameter expected to be String or JSON-serializable object."),(0,se.error)(Z,Oe)}}},{key:"enableStandby",value:function(){this.getMessageTransport().post({standby:!0})}},{key:"disableStandby",value:function(){this.getMessageTransport().post({standby:!1})}},{key:"getMessageTransport",value:function(){return this._messageTransport}},{key:"getConnection",value:function(){return this._socketHelper}},{key:"getPeerConnection",value:function(){return this._peerHelper?this._peerHelper.connection:void 0}},{key:"getDataChannel",value:function(){return this._peerHelper?this._peerHelper.dataChannel:void 0}},{key:"getMediaStream",value:function(){return this._mediaStream}},{key:"getControls",value:function(){return this._sourceHandler?this._sourceHandler.getControls():void 0}},{key:"getPlayer",value:function(){return this._view.view}},{key:"getOptions",value:function(){return this._options}},{key:"getType",value:function(){return xe.PlaybackTypes.RTC.toUpperCase()}}]),ke}(X.PlaybackController);d.default=pe},function(W,d,n){"use strict";function l(J){return J&&J.__esModule?J:{default:J}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(62)),P=l(n(30)),O=l(n(3)),y=l(n(0)),i=l(n(1)),h=l(n(6)),c=l(n(5)),A=l(n(7)),x=l(n(138)),D=l(n(47)),F=n(24),I=n(13),k=n(36),R=n(37),G=n(8),Y=n(2),K="RTMPSubcriber",$={protocol:"rtmp",port:1935,width:320,height:240,embedWidth:"100%",embedHeight:"100%",minFlashVersion:"10.0.0",swf:"lib/red5pro/red5pro-subscriber.swf",swfobjectURL:"lib/swfobject/swfobject.js",productInstallURL:"lib/swfobject/playerProductInstall.swf",mediaElementId:"red5pro-subscriber",useAdaptiveBitrateController:!1,abrVariants:void 0,abrVariantUpgradeSettings:{minimumDowngradePlaybackSpan:1e4,upgrade:[{level:1,retryTimeout:0},{level:2,retryTimeout:1e4},{level:3,retryTimeout:2e4}]}},ee=function(J){function z(){(0,y.default)(this,z);var te=(0,h.default)(this,(z.__proto__||(0,O.default)(z)).call(this));return te._options=void 0,te._view=void 0,te._sourceHandler=void 0,te._elementId=void 0,te._embedPromise=void 0,te._getEmbedPromise().then(function(){te.onEmbedComplete()}).catch(function(X){return te.onEmbedFailure(X)}),te._viewResolver=new G.DeferredPromise,te._subscriptionResolver=new G.DeferredPromise,te._orientation=0,te._streamingMode="Video/Audio",te}return(0,c.default)(z,J),(0,i.default)(z,[{key:"_getViewResolverPromise",value:function(){return this._viewResolver.promise}},{key:"_getSubscriptionResolverPromise",value:function(){return this._subscriptionResolver.promise}},{key:"_getEmbedPromise",value:function(){return this._embedPromise=G.Future.createIfNotExist(this._embedPromise),this._embedPromise.promise}},{key:"_glomSourceHandlerAPI",value:function(te){var X=this;this.pause=te.pause.bind(te),this.resume=te.resume.bind(te),this.stop=te.stop.bind(te),this.mute=te.mute.bind(te),this.unmute=te.unmute.bind(te),this.setVolume=te.setVolume.bind(te),this.seekTo=te.seekTo.bind(te),this.toggleFullScreen=te.toggleFullScreen.bind(te),this.setABRLevel=te.setABRLevel.bind(te),this.setABRVariants=te.setABRVariants.bind(te),this.stopABRController=te.stopABRController.bind(te),this.startABRController=te.startABRController.bind(te),this.setABRVariantUpgradeSettings=te.setABRVariantUpgradeSettings.bind(te),te.on("*",function(re){X.trigger(new I.SubscriberEvent(re.type,X,re.data))})}},{key:"_setViewIfNotExist",value:function(te){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===te&&void 0!==X&&new D.default(X).attachSubscriber(this)}},{key:"_establishExtIntHandlers",value:function(te){var X=this;(0,Y.debug)(K,"Subscriber ID provided to client: ("+te+").");var re=function(ge){return["subscriber",ge,te.split("-").join("_")].join("_")};window[re("r5proConnectClosed")]=function(){return X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.CONNECTION_CLOSED,X))},window[re("r5proConnectSuccess")]=function(){return X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.CONNECT_SUCCESS,X))},window[re("r5proConnectFailure")]=function(){X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.CONNECT_FAILURE,X))},window[re("r5proSubscribeStop")]=function(){return X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.SUBSCRIBE_STOP,X))},window[re("r5proSubscribeMetadata")]=function(ge){var oe=JSON.parse(ge),ue=oe.streamingMode,N=parseInt(oe.orientation,10),se=X._streamingMode;X._orientation!==N&&(X._orientation=N,X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.ORIENTATION_CHANGE,X,{orientation:N}))),se!==ue&&(X._streamingMode=ue,X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.STREAMING_MODE_CHANGE,X,{streamingMode:ue,previousStreamingMode:se}))),X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.SUBSCRIBE_METADATA,X,JSON.parse(ge)))},window[re("r5proSubscribeUnpublish")]=function(){X.onUnpublish()},window[re("r5proSubscribePublisherCongestion")]=function(ge){return X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.SUBSCRIBE_PUBLISHER_CONGESTION,X,JSON.parse(ge)))},window[re("r5proSubscribePublisherRecovery")]=function(ge){return X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.SUBSCRIBE_PUBLISHER_RECOVERY,X,JSON.parse(ge)))},window[re("r5proSubscribeSendInvoke")]=function(ge){X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.SUBSCRIBE_SEND_INVOKE,X,"string"==typeof ge?JSON.parse(ge):ge))},window[re("r5proSubscribePlayRequest")]=function(){X.play()},window[re("r5proSubscribeStart")]=function(){X._subscriptionResolver.resolve(X),X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.SUBSCRIBE_START,X))},window[re("r5proSubscribeInvalidName")]=function(){X._subscriptionResolver.reject("NetStream.Play.StreamNotFound",X),X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.SUBSCRIBE_INVALID_NAME,X))},window[re("r5proSubscribeFail")]=function(){X._subscriptionResolver.reject("NetStream.Failed",X),X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.SUBSCRIBE_FAIL,X))},window[re("r5proSubscribeVolumeChange")]=function(ge){X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.VOLUME_CHANGE,X,{volume:JSON.parse(ge).volume}))},window[re("r5proSubscribePlaybackStalled")]=function(){(0,Y.debug)(K,"playback has stalled...")},window[re("r5proSubscribePlaybackTimeChange")]=function(ge){var oe=JSON.parse(ge);X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.PLAYBACK_TIME_UPDATE,X,{time:oe.value,duration:oe.duration}))},window[re("r5proSubscribePlaybackStateChange")]=function(ge){var oe=JSON.parse(ge).code;X.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,X,{code:oe,state:R.PlaybackStateReadable[oe]}))},window[re("r5proSubscribeABRLevelChange")]=function(ge){var oe=JSON.parse(ge),xe=oe.level,N=JSON.parse(decodeURIComponent(oe.stream));X.trigger(new I.SubscriberEvent(I.RTMPSubscriberEventTypes.ABR_LEVEL_CHANGE,X,{level:xe,stream:N}))}}},{key:"init",value:function(te){var X=this,re=new G.DeferredPromise,ge=te.minFlashVersion||$.minFlashVersion;if(A.default.supportsFlashVersion(ge)){this._options=(0,P.default)({},$,te);try{A.default.injectScript(this._options.swfobjectURL).then(function(){var xe=X._embedPromise;return(0,Y.debug)(K,"SWFObject embedded."),X._sourceHandler?(X._sourceHandler.addSource(X._elementId,X._options).then(function(ue){X._establishExtIntHandlers(ue),xe.resolve(X)}).catch(function(ue){xe.reject(ue)}),X._getEmbedPromise()):(X._getViewResolverPromise().then(function(xe){if(X._sourceHandler=new x.default(X,xe.view,X.getType()),X._glomSourceHandlerAPI(X._sourceHandler),X._options){var ue=X._embedPromise;X._sourceHandler.addSource(X._elementId,X._options).then(function(N){X._establishExtIntHandlers(N),ue.resolve(X)}).catch(function(N){return ue.reject(N)})}}),!0)}).then(function(){X._setViewIfNotExist(X._view,X._options.mediaElementId),re.resolve(X)}).catch(function(xe){(0,Y.error)(K,"Could not embed Flash-based RTMP Player. Reason: "+xe),X._sourceHandler&&X._sourceHandler.disconnect(),re.reject(xe),X.trigger(new I.SubscriberEvent(I.RTMPSubscriberEventTypes.EMBED_FAILURE,X))})}catch(xe){re.reject("Could not inject Flash-based Player into the page. Reason: "+xe.message),this.trigger(new I.SubscriberEvent(I.RTMPSubscriberEventTypes.EMBED_FAILURE,this))}}else(0,Y.warn)(K,"Could not resolve RTMPSubscriber instance. Requires minimum Flash Player install of "+ge+"."),re.reject("Could not resolve RTMPSubscriber instance. Requires minimum Flash Player install of "+ge+".");return re.promise}},{key:"setView",value:function(te,X){return this._view=te,this._elementId=X,this._viewResolver.resolve(this._view),this}},{key:"subscribe",value:function(){return this._getSubscriptionResolverPromise()}},{key:"unsubscribe",value:function(){var te=this;return(0,Y.debug)(K,"[unsubscribe]"),new m.default(function(re,ge){try{te._sourceHandler.disconnect(),re()}catch(oe){ge(oe.message)}})}},{key:"play",value:function(){var te=this;(0,Y.debug)(K,"[play]"),this._getEmbedPromise().then(function(){te._sourceHandler.play()})}},{key:"onEmbedComplete",value:function(){(0,Y.debug)(K,"[embed:complete]"),this.trigger(new I.SubscriberEvent(I.RTMPSubscriberEventTypes.EMBED_SUCCESS,this))}},{key:"onEmbedFailure",value:function(te){(0,Y.debug)(K,"[embed:failure] - "+te),this.trigger(new I.SubscriberEvent(I.RTMPSubscriberEventTypes.EMBED_FAILURE,this))}},{key:"onUnpublish",value:function(){(0,Y.debug)(K,"[onunpublish]"),this._sourceHandler&&this._sourceHandler.unpublish(),this.trigger(new I.SubscriberEvent(I.SubscriberEventTypes.PLAY_UNPUBLISH,this)),this._sourceHandler&&this._sourceHandler.disconnect()}},{key:"getConnection",value:function(){return this._sourceHandler}},{key:"getControls",value:function(){return this._sourceHandler?this._sourceHandler.getControls():void 0}},{key:"getOptions",value:function(){return this._options}},{key:"getPlayer",value:function(){return this._sourceHandler?this._sourceHandler.getEmbeddedView():void 0}},{key:"getType",value:function(){return k.PlaybackTypes.RTMP.toUpperCase()}}]),z}(F.PlaybackController);d.default=ee},function(W,d,n){"use strict";function l(Y){return Y&&Y.__esModule?Y:{default:Y}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(95)),O=l(n(3)),y=l(n(0)),i=l(n(1)),h=l(n(6)),c=l(n(5)),A=l(n(7)),L=n(82),x=n(25),V=n(24),D=n(37),F=n(13),I=n(8),k=n(2),R="HLSSourceHandler",G=function(Y){function K($,ee){(0,y.default)(this,K);var J=(0,h.default)(this,(K.__proto__||(0,O.default)(K)).call(this));return J.media=$,J.clone=J.media.cloneNode(!0),J.parent=J.media.parentNode,J.holder=J._determineHolder($),J.playerType=ee,J._mediaSource=void 0,J._isVOD=!1,J._controls=void 0,J._orientation=0,J._streamingMode="Video/Audio",J._autoLayoutOrientation=!0,J._playbackNotificationCenter=J.media,J._handleOrientationChange=J._handleOrientationChange.bind(J),J._onOrientationMetadata=J._onOrientationMetadata.bind(J),J._onStreamingModeMetadata=J._onStreamingModeMetadata.bind(J),A.default.onFullScreenStateChange(J._handleFullScreenChange.bind(J)),J}return(0,c.default)(K,Y),(0,i.default)(K,[{key:"_determineHolder",value:function($){if($.parentNode.classList.contains("red5pro-media-container"))return $.parentNode;var ee=$.parentNode,J=A.default.createElement("div");return J.classList.add("red5pro-media-container"),ee.insertBefore(J,$),ee.removeChild($),J.appendChild($),J}},{key:"_cleanUp",value:function(){var $=this.media,ee=this._mediaSource,J=$.parentNode,z=this.holder;if(ee&&$.removeChild(ee),J)J.removeChild($),J!==this.parent&&(J.parentNode.removeChild(J),z=this.parent);else try{$.remove()}catch(te){(0,k.warn)(R,"Issue in DOM cleanup of HLS video object: "+te.message)}this.media=this.clone.cloneNode(!0),z.appendChild(this.media),this._controls&&this._controls.detach(),this.media.setAttribute("autoplay",!0),this.clone=this.media.cloneNode(!0),this.parent=this.media.parentNode,this.holder=this._determineHolder(this.media),this._orientation=0,this.isVOD=!1}},{key:"_addPlaybackHandlers",value:function($){var ee=this,J=this.getControls(),z=void 0!==J;$.oncanplay=function(){J&&J.enable(!0),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:D.PlaybackState.AVAILABLE,state:D.PlaybackStateReadable[D.PlaybackState.AVAILABLE]})),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.VOLUME_CHANGE,void 0,{volume:$.volume}))},$.ondurationchange=function(te){!isNaN($.duration)&&(0,P.default)($.duration)&&(ee.isVOD=!0),z&&J.setPlaybackDuration($.duration)},$.onended=function(){(0,k.debug)(R,"[videoelement:onended]"),z&&J.setState(D.PlaybackState.IDLE),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:D.PlaybackState.IDLE,state:D.PlaybackStateReadable[D.PlaybackState.IDLE]}))},$.ontimeupdate=function(te){z&&J.setSeekTime($.currentTime,self.isVOD?$.duration:void 0),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.PLAYBACK_TIME_UPDATE,void 0,{time:$.currentTime,duration:$.duration}))},$.onseeked=function(te){},$.onseeking=function(te){},$.onplay=function(){z&&J.setState(D.PlaybackState.PLAYING),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:D.PlaybackState.PLAYING,state:D.PlaybackStateReadable[D.PlaybackState.PLAYING]}))},$.onpause=function(){z&&J.setState(D.PlaybackState.PAUSED),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:D.PlaybackState.PAUSED,state:D.PlaybackStateReadable[D.PlaybackState.PAUSED]}))},$.onvolumechange=function(te){z&&J.getVolume()!==ee.media.volume&&J.setVolume(ee.media.volume),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.VOLUME_CHANGE,void 0,{volume:$.muted?0:$.volume}))},$.onencrypted=function(){(0,k.debug)(R,"[videoelement:event] encrypted")},$.onemptied=function(){(0,k.debug)(R,"[videoelement:event] emptied")},$.onloadeddata=function(){(0,k.debug)(R,"[videoelement:event] loadeddata")},$.onresize=function(){(0,k.debug)(R,"[videoelement:event] resize"),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.VIDEO_DIMENSIONS_CHANGE,void 0,{width:ee.media.videoWidth,height:ee.media.videoHeight}))},$.onloadedmetadata=function(){(0,k.debug)(R,"[videoelement:event] loadedmetadata"),ee.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.SUBSCRIBE_START,void 0,{}))},$.onloadstart=function(){(0,k.debug)(R,"[videoelement:event] loadedstart")},$.onstalled=function(){(0,k.debug)(R,"[videoelement:event] stalled")},$.onsuspend=function(){(0,k.debug)(R,"[videoelement:event] suspend")},$.onwaiting=function(){(0,k.debug)(R,"[videoelement:event] waiting")}}},{key:"_handleFullScreenChange",value:function($){$?(this.holder.classList.add("red5pro-media-container-full-screen"),this.media.classList.add("red5pro-media-container-full-screen")):(this.holder.classList.remove("red5pro-media-container-full-screen"),this.media.classList.remove("red5pro-media-container-full-screen")),this.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.FULL_SCREEN_STATE_CHANGE,void 0,$))}},{key:"_embedMediaSource",value:function($,ee,J){var z=new I.DeferredPromise;try{var te=A.default.createElement("source");te.type=ee,te.src=$,this.media.type=ee,this.media.firstChild?this.media.insertBefore(te,this.media.firstChild):this.media.appendChild(te),this._mediaSource=te,this._autoLayoutOrientation=J.autoLayoutOrientation,A.default.onOrientationMetadata(this.media,this._onOrientationMetadata),A.default.onStreamingModeMetadata(this.media,this._onStreamingModeMetadata),z.resolve()}catch(X){z.reject(X.message)}return z.promise}},{key:"_onOrientationMetadata",value:function($){var ee=$.orientation,J=$.resolution,z=parseInt(ee,10);ee&&this._orientation!==z&&((0,k.debug)(R,"Metadata received: "+(0,m.default)($,null,2)),this._orientation=z,this._autoLayoutOrientation&&((0,L.applyOrientation)(this.media,this._orientation,(0,x.metadataResolutionToObject)(J)),this._handleOrientationChange(this._orientation)),this.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.ORIENTATION_CHANGE,void 0,{orientation:this._orientation,viewElement:this.media})),this.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.SUBSCRIBE_METADATA,void 0,$)))}},{key:"_onStreamingModeMetadata",value:function($){var ee=$.streamingMode,J=this._streamingMode;ee&&J!==ee&&((0,k.debug)(R,"Metadata received: "+(0,m.default)($,null,2)),this._streamingMode=ee,this.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.STREAMING_MODE_CHANGE,void 0,{streamingMode:this._streamingMode,previousStreamingMode:J,viewElement:this.media})),this.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.SUBSCRIBE_METADATA,void 0,$)))}},{key:"addSource",value:function($,ee,J){var z=this;(0,k.debug)(R,"[addsource]"),this.holder=this._determineHolder(this.media);var te=new I.DeferredPromise,X=J.controls,re=A.default.hasAttributeDefined(this.media,"muted"),ge=A.default.hasAttributeDefined(this.media,"autoplay");re||this.media.setAttribute("autoplay",!1);var oe=A.default.hasAttributeDefined(this.media,"controls")&&A.default.hasClassDefined(this.media,"red5pro-media");return this._embedMediaSource($,ee,J).then(function(){(X||oe)&&(z._controls=X?J.controls:new V.PlaybackControlsImpl(z,z.holder),z.media.controls=!1,z._controls.setAsVOD(z.isVOD),z._controls.setMutedState(re)),z._addPlaybackHandlers(z._playbackNotificationCenter),ge&&z.attemptAutoplay(J.muteOnAutoplayRestriction),te.resolve()}).catch(function(xe){return te.reject(xe)}),te.promise}},{key:"connect",value:function(){(0,k.debug)(R,"[connect]")}},{key:"attemptAutoplay",value:function(){var $=this,ee=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.play().catch(function(J){ee?($.mute(),$.play().then(function(){$.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.AUTO_PLAYBACK_MUTED,void 0,{element:$.media}))}).catch(function(z){$.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.AUTO_PLAYBACK_FAILURE,void 0,{error:z.message?z.message:z,element:$.media}))})):$.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.AUTO_PLAYBACK_FAILURE,void 0,{error:J.message?J.message:J,element:$.media}))})}},{key:"play",value:function(){(0,k.debug)(R,"[videoelement:action] play");var $=new I.DeferredPromise;try{var ee=this.media.play();ee?ee.then(function(){(0,k.debug)(R,"[videoelement:action] play (START)"),$.resolve()}).catch($.reject):((0,k.debug)(R,"[videoelement:action] play (START)"),$.resolve())}catch(J){(0,k.error)(R,"[videoelement:action] play (FAULT) - "+J.message),$.reject(J)}return $.promise}},{key:"pause",value:function(){(0,k.debug)(R,"[videoelement:action] pause");try{this.media.pause()}catch($){(0,k.debug)(R,"[videoelement:action] pause (FAULT) - "+$.message)}}},{key:"resume",value:function(){(0,k.debug)(R,"[videoelement:action] resume");try{var $=this.media.play();$&&$.then(function(){return(0,k.debug)(R,"[videoelement:action] play (START)")}).catch(function(ee){return(0,k.error)(R,"[videoelement:action] play (FAULT) "+(ee.message?ee.message:ee))})}catch(ee){(0,k.error)(R,"[videoelement:action] resume (FAULT) - "+ee.message)}}},{key:"stop",value:function(){try{this.media.stop()}catch{}}},{key:"mute",value:function(){this.media.muted=!0;var $=this.getControls();$&&$.setMutedState(!0)}},{key:"unmute",value:function(){this.media.muted=!1;var $=this.getControls();$&&$.setMutedState(!1)}},{key:"setVolume",value:function($){this.unmute(),this.media.volume=$}},{key:"seekTo",value:function($){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.media.currentTime=ee?$*ee:$}},{key:"toggleFullScreen",value:function(){try{A.default.toggleFullScreen(this.holder)}catch($){throw $}}},{key:"unpublish",value:function(){try{this.stop(),this.media.onended.call(this.media)}catch{}}},{key:"disconnect",value:function(){this._cleanUp()}},{key:"_handleOrientationChange",value:function($){this._controls&&$%180!=0&&(this.holder.classList.add("red5pro-media-background"),this.media.classList.remove("red5pro-media-background"))}},{key:"addSharedObjectResponseHandler",value:function($){}},{key:"removeSharedObjectResponseHandler",value:function($){}},{key:"sendToSharedObject",value:function($,ee,J){}},{key:"sendPropertyToSharedObject",value:function($,ee,J){}},{key:"getRemoteSharedObject",value:function($){}},{key:"connectToSharedObject",value:function($){}},{key:"closeSharedObject",value:function($){}},{key:"getControls",value:function(){return this._controls}},{key:"getType",value:function(){return this.playerType}},{key:"isVOD",get:function(){return this._isVOD},set:function($){this._isVOD=$,this._controls&&this._controls.setAsVOD($)}}]),K}(V.PlaybackController);d.default=G},function(W,d,n){"use strict";function l(I){return I&&I.__esModule?I:{default:I}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(95)),P=l(n(3)),O=l(n(0)),y=l(n(1)),i=l(n(6)),h=l(n(5)),c=l(n(7)),T=n(24),A=n(37),L=n(13),x=n(8),V=n(2),D="RTCSourceHandler",F=function(I){function k(R,G){(0,O.default)(this,k);var Y=(0,i.default)(this,(k.__proto__||(0,P.default)(k)).call(this));return Y.media=R,c.default.hasAttributeDefined(Y.media,"controls")&&c.default.hasClassDefined(Y.media,"red5pro-media")&&(Y.clone=Y.media.cloneNode(!0),Y.parent=Y.media.parentNode,Y.holder=Y._determineHolder(Y.media)),Y.playerType=G,Y._isVOD=!1,Y._controls=void 0,Y._playbackNotificationCenter=Y.media,c.default.onFullScreenStateChange(Y._handleFullScreenChange.bind(Y)),Y}return(0,h.default)(k,I),(0,y.default)(k,[{key:"_determineHolder",value:function(R){if(R.parentNode.classList.contains("red5pro-media-container"))return R.parentNode;var G=R.parentNode,Y=c.default.createElement("div");return Y.classList.add("red5pro-media-container"),G.insertBefore(Y,R),G.removeChild(R),Y.appendChild(R),Y}},{key:"_cleanUp",value:function(){if(this.clone){var R=this.media,G=R.parentNode,Y=this.holder;if(G)G.removeChild(R),G!==this.parent&&(G.parentNode.removeChild(G),Y=this.parent);else try{R.remove()}catch(K){(0,V.warn)(D,"Issue in DOM cleanup of WebRTC video object: "+K.message)}this.media=this.clone.cloneNode(!0),Y.appendChild(this.media),this._controls&&this._controls.detach()}}},{key:"_addPlaybackHandlers",value:function(R){var G=this,Y=this.getControls(),K=void 0!==Y;R.oncanplay=function(){(0,V.debug)(D,"[videoelement:event] canplay"),Y&&Y.enable(!0),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:A.PlaybackState.AVAILABLE,state:A.PlaybackStateReadable[A.PlaybackState.AVAILABLE]})),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.VOLUME_CHANGE,void 0,{volume:R.volume}))},R.ondurationchange=function($){(0,V.debug)(D,"[videoelement:event] durationchange"),!isNaN(R.duration)&&(0,m.default)(R.duration)&&(G.isVOD=!0),K&&Y.setPlaybackDuration(R.duration)},R.onended=function(){(0,V.debug)(D,"[videoelement:event] ended"),K&&Y.setState(A.PlaybackState.IDLE),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:A.PlaybackState.IDLE,state:A.PlaybackStateReadable[A.PlaybackState.IDLE]}))},R.ontimeupdate=function($){K&&Y.setSeekTime(R.currentTime,self.isVOD?R.duration:void 0),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_TIME_UPDATE,void 0,{time:R.currentTime,duration:R.duration}))},R.onseeked=function($){},R.onseeking=function($){},R.onplay=function(){(0,V.debug)(D,"[videoelement:event] play"),K&&Y.setState(A.PlaybackState.PLAYING),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:A.PlaybackState.PLAYING,state:A.PlaybackStateReadable[A.PlaybackState.PLAYING]}))},R.onpause=function(){(0,V.debug)(D,"[videoelement:event] pause"),K&&Y.setState(A.PlaybackState.PAUSED),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:A.PlaybackState.PAUSED,state:A.PlaybackStateReadable[A.PlaybackState.PAUSED]}))},R.onvolumechange=function($){K&&Y.getVolume()!==G.media.volume&&Y.setVolume(G.media.volume),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.VOLUME_CHANGE,void 0,{volume:R.muted?0:R.volume}))},R.onencrypted=function(){(0,V.debug)(D,"[videoelement:event] encrypted")},R.onemptied=function(){(0,V.debug)(D,"[videoelement:event] emptied")},R.onloadeddata=function(){(0,V.debug)(D,"[videoelement:event] loadeddata"),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.VIDEO_DIMENSIONS_CHANGE,void 0,{width:G.media.videoWidth,height:G.media.videoHeight}))},R.onresize=function(){(0,V.debug)(D,"[videoelement:event] resize"),G.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.VIDEO_DIMENSIONS_CHANGE,void 0,{width:G.media.videoWidth,height:G.media.videoHeight}))},R.onloadedmetadata=function(){(0,V.debug)(D,"[videoelement:event] loadedmetadata")},R.onloadstart=function(){(0,V.debug)(D,"[videoelement:event] loadedstart")},R.onstalled=function(){(0,V.debug)(D,"[videoelement:event] stalled")},R.onsuspend=function(){(0,V.debug)(D,"[videoelement:event] suspend")},R.onwaiting=function(){(0,V.debug)(D,"[videoelement:event] waiting")}}},{key:"_handleFullScreenChange",value:function(R){R?(this.holder&&this.holder.classList.add("red5pro-media-container-full-screen"),this.media.classList.add("red5pro-media-container-full-screen")):(this.holder&&this.holder.classList.remove("red5pro-media-container-full-screen"),this.media.classList.remove("red5pro-media-container-full-screen")),this.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.FULL_SCREEN_STATE_CHANGE,void 0,R))}},{key:"addSource",value:function(R){(0,V.debug)(D,"[addsource]");var G=c.default.hasAttributeDefined(this.media,"controls")&&c.default.hasClassDefined(this.media,"red5pro-media");G&&(this.holder=this._determineHolder(this.media));var Y=new x.DeferredPromise,K=R.controls,$=c.default.hasAttributeDefined(this.media,"muted");return(K||G)&&(this._controls=K?R.controls:new T.PlaybackControlsImpl(this,this.holder),this.media.controls=!1,this._controls.setAsVOD(this.isVOD),this._controls.setMutedState($)),this._addPlaybackHandlers(this._playbackNotificationCenter),Y.resolve(),Y.promise}},{key:"connect",value:function(){(0,V.debug)(D,"[connect]")}},{key:"attemptAutoplay",value:function(){var R=this,G=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.play().catch(function(Y){G?(R.mute(),R.play().then(function(){R.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.AUTO_PLAYBACK_MUTED,void 0,{element:R.media}))}).catch(function(K){R.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.AUTO_PLAYBACK_FAILURE,void 0,{error:K.message?K.message:K,element:R.media}))})):R.trigger(new L.SubscriberEvent(L.SubscriberEventTypes.AUTO_PLAYBACK_FAILURE,void 0,{error:Y.message?Y.message:Y,element:R.media}))})}},{key:"play",value:function(){(0,V.debug)(D,"[videoelement:action] play");var R=new x.DeferredPromise;try{var G=this.media.play();G?G.then(function(){(0,V.debug)(D,"[videoelement:action] play (START)"),R.resolve()}).catch(R.reject):((0,V.debug)(D,"[videoelement:action] play (START)"),R.resolve())}catch(Y){(0,V.error)(D,"[videoelement:action] play (FAULT) - "+Y.message),R.reject(Y)}return R.promise}},{key:"pause",value:function(){(0,V.debug)(D,"[videoelement:action] pause");try{this.media.pause()}catch(R){(0,V.warn)(D,"[videoelement:action] pause (CATCH::FAULT) - "+R.message)}}},{key:"resume",value:function(){(0,V.debug)(D,"[videoelement:action] resume");try{var R=this.media.play();R&&R.then(function(){return(0,V.debug)(D,"[videoelement:action] play (START)")}).catch(function(G){return(0,V.warn)(D,"[videoelement:action] play (CATCH::FAULT) "+(G.message?G.message:G))})}catch(G){(0,V.warn)(D,"[videoelement:action] resume (CATCH::FAULT) - "+G.message)}}},{key:"stop",value:function(){(0,V.debug)(D,"[videoelement:action] stop");try{this.media.stop()}catch{}}},{key:"mute",value:function(){this.media.muted=!0;var R=this.getControls();R&&R.setMutedState(!0)}},{key:"unmute",value:function(){this.media.muted=!1;var R=this.getControls();R&&R.setMutedState(!1)}},{key:"setVolume",value:function(R){this.unmute(),this.media.volume=R}},{key:"seekTo",value:function(R){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.media.currentTime=G?R*G:R}},{key:"toggleFullScreen",value:function(){try{this.holder&&c.default.toggleFullScreen(this.holder)}catch(R){throw R}}},{key:"unpublish",value:function(){try{this.stop(),this.media.onended.call(this.media)}catch{}}},{key:"disconnect",value:function(){this._cleanUp()}},{key:"handleOrientationChange",value:function(R){this._controls&&R%180!=0&&(this.holder&&this.holder.classList.add("red5pro-media-background"),this.media.classList.remove("red5pro-media-background"))}},{key:"addSharedObjectResponseHandler",value:function(R){}},{key:"removeSharedObjectResponseHandler",value:function(R){}},{key:"sendToSharedObject",value:function(R,G,Y){}},{key:"sendPropertyToSharedObject",value:function(R,G,Y){}},{key:"getRemoteSharedObject",value:function(R){}},{key:"connectToSharedObject",value:function(R){}},{key:"closeSharedObject",value:function(R){}},{key:"getControls",value:function(){return this._controls}},{key:"getType",value:function(){return this.playerType}},{key:"isVOD",get:function(){return this._isVOD},set:function(R){this._isVOD=R,this._controls&&this._controls.setAsVOD(R)}}]),k}(T.PlaybackController);d.default=F},function(W,d,n){"use strict";function l($){return $&&$.__esModule?$:{default:$}}Object.defineProperty(d,"__esModule",{value:!0});var m=l(n(10)),P=l(n(3)),O=l(n(0)),y=l(n(1)),i=l(n(6)),h=l(n(5)),c=function($){if($&&$.__esModule)return $;var ee={};if(null!=$)for(var J in $)Object.prototype.hasOwnProperty.call($,J)&&(ee[J]=$[J]);return ee.default=$,ee}(n(81)),A=l(n(7)),x=l(n(88)),V=n(24),D=n(37),F=n(13),I=n(8),k=n(2),R="RTMPSourceHandler",G=function($){return"string"==typeof $?parseInt($,10):Math.round($)},K=function($){function ee(J,z,te){var X=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;(0,O.default)(this,ee);var re=(0,i.default)(this,(ee.__proto__||(0,P.default)(ee)).call(this));return re.media=z,re.clone=re.media.cloneNode(!0),re.parent=re.media.parentNode,re.holder=re._determineHolder(re.media),re.playerType=te,re._swfId=void 0,re._controls=void 0,re._soResponder=X||new x.default,re._playbackNotificationCenter=J,A.default.onFullScreenStateChange(re._handleFullScreenChange.bind(re)),re}return(0,h.default)(ee,$),(0,y.default)(ee,[{key:"_determineHolder",value:function(J){if(J.parentNode.classList.contains("red5pro-media-container"))return J.parentNode;var z=J.parentNode,te=A.default.createElement("div");return te.classList.add("red5pro-media-container"),z.insertBefore(te,J),z.removeChild(J),te.appendChild(J),te}},{key:"_cleanUp",value:function(){var J=this.getEmbeddedView(),z=J.parentNode,te=this.holder;if(z)z.removeChild(J),z!==this.parent&&(z.parentNode.removeChild(z),te=this.parent);else try{J.remove()}catch(X){(0,k.warn)(R,"Issue in DOM cleanup of flash object embed: "+X.message)}this.media=this.clone.cloneNode(!0),te.appendChild(this.media),this._controls&&this._controls.detach()}},{key:"_addPlaybackHandlers",value:function(J){var z=this.getControls();void 0!==z&&(J.on(F.SubscriberEventTypes.SUBSCRIBE_START,function(){z.setState(D.PlaybackState.PLAYING)}),J.on(F.SubscriberEventTypes.SUBSCRIBE_STOP,function(){z.setState(D.PlaybackState.IDLE)}),J.on(F.SubscriberEventTypes.PLAY_UNPUBLISH,function(){z.setState(D.PlaybackState.IDLE)}),J.on(F.SubscriberEventTypes.SUBSCRIBE_METADATA,function(te){te.data.duration&&z.setPlaybackDuration(te.data.duration)}),J.on(F.SubscriberEventTypes.VOLUME_CHANGE,function(te){z.setVolume(te.data.volume)}),J.on(F.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,function(te){te.data.code===D.PlaybackState.AVAILABLE&&z.enable(!0),z.setState(te.data.code)}),J.on(F.SubscriberEventTypes.PLAYBACK_TIME_UPDATE,function(te){z.setSeekTime(te.data.time,te.data.duration)}),J.on(F.SubscriberEventTypes.FULL_SCREEN_STATE_CHANGE,function(te){z.onFullScreenChange(te.data)}))}},{key:"_handleFullScreenChange",value:function(J){var z=this.getEmbeddedView();J?(this.holder.classList.add("red5pro-media-container-full-screen"),z.classList.add("red5pro-media-container-full-screen")):(this.holder.classList.remove("red5pro-media-container-full-screen"),z.classList.remove("red5pro-media-container-full-screen")),this.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.FULL_SCREEN_STATE_CHANGE,void 0,J))}},{key:"_setUpInitCallback",value:function(J){var z=this;A.default.addSubscriptionAssignmentHandler(function(te){(0,k.debug)(R,"Embed and init() complete for subscriber swf. successId("+te+")."),J.resolve(te),z._tearDownInitCallback()})}},{key:"_tearDownInitCallback",value:function(){}},{key:"addSource",value:function(J,z){var te=this,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,re=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,k.debug)(R,"[addsource]"),this._swfId=J,this.holder=this._determineHolder(this.media);var ge=this._soResponder,oe=new I.DeferredPromise,xe=z.controls,ue=A.default.hasAttributeDefined(this.media,"muted"),N=A.default.hasAttributeDefined(this.media,"controls")&&A.default.hasClassDefined(this.media,"red5pro-media");z.swf=X||z.swf,z.minFlashVersion=re||z.minFlashVersion,this._setUpInitCallback(oe);var se=this.media.classList;return c.defineEmbedElement(this.media,this.holder).then(function(ce){var Z={stream:z.streamName,app:z.context?z.app+"/"+z.context:z.app,host:z.host,muted:A.default.hasAttributeDefined(te.media,"muted"),autoplay:A.default.hasAttributeDefined(te.media,"autoplay"),useAdaptiveBitrateController:z.useAdaptiveBitrateController};return z.backgroundColor&&(Z.backgroundColor=z.backgroundColor),z.buffer&&!isNaN(Number(z.buffer))&&(Z.buffer=z.buffer),z.width&&!isNaN(z.width)&&(Z.width=G(z.width)),z.height&&!isNaN(z.height)&&(Z.height=G(z.height)),"100%"!==z.embedWidth&&"100%"!==z.embedHeight||(Z.autosize=!0),te._swfId=J,void 0!==z.connectionParams&&(Z.connectionParams=encodeURIComponent((0,m.default)(z.connectionParams))),void 0!==z.abrVariants&&(Z.abrVariants=encodeURIComponent((0,m.default)(z.abrVariants))),void 0!==z.abrVariantUpgradeSettings&&(Z.abrVariantUpgradeSettings=encodeURIComponent((0,m.default)(z.abrVariantUpgradeSettings))),c.embedSwfObject(J,z,Z,A.default.getSwfObject(),ce)}).then(function(){if(xe||N){te._controls=xe?z.controls:new V.PlaybackControlsImpl(te,te.holder),te.media.controls=!1,te._controls.setAsVOD(function($){return/^.*\.(flv|mp4|mp3)/.test($)}(z.streamName)),te._controls.setMutedState(ue);for(var ce=te.getEmbeddedView(),Z=se.length,de=void 0;--Z>-1;)de=se.item(Z),ce.classList.add(de)}return te._addPlaybackHandlers(te._playbackNotificationCenter),te.trigger(new F.SubscriberEvent(F.SubscriberEventTypes.PLAYBACK_STATE_CHANGE,void 0,{code:D.PlaybackState.AVAILABLE,state:D.PlaybackStateReadable[D.PlaybackState.AVAILABLE]})),!0}).then(function(){return ge.connect(J),!0}).catch(function(ce){return oe.reject(ce)}),oe.promise}},{key:"connect",value:function(){(0,k.debug)(R,"[connect]");try{this.getEmbeddedView().connect()}catch(J){throw J}}},{key:"play",value:function(){try{this.getEmbeddedView().play()}catch(J){throw J}}},{key:"pause",value:function(){try{this.getEmbeddedView().pause()}catch(J){throw J}}},{key:"resume",value:function(){try{this.getEmbeddedView().resume()}catch(J){throw J}}},{key:"stop",value:function(){try{this.getEmbeddedView().stop()}catch(J){throw J}}},{key:"mute",value:function(){try{this.getEmbeddedView().mute()}catch(J){throw J}}},{key:"unmute",value:function(){try{this.getEmbeddedView().unmute()}catch(J){throw J}}},{key:"setVolume",value:function(J){try{this.getEmbeddedView().setVolume(J)}catch(z){throw z}}},{key:"seekTo",value:function(J){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;try{this.getEmbeddedView().seekTo(J,z)}catch(te){throw te}}},{key:"toggleFullScreen",value:function(){try{A.default.toggleFullScreen(this.holder)}catch(J){throw J}}},{key:"unpublish",value:function(){this.stop()}},{key:"disconnect",value:function(){try{this.getEmbeddedView().disconnect(),(0,k.debug)(R,"[disconnect]")}catch{}this._cleanUp(),this._soResponder.disconnect()}},{key:"addSharedObjectResponseHandler",value:function(J){this._soResponder.addResponseHandler(J)}},{key:"removeSharedObjectResponseHandler",value:function(J){this._soResponder.removeResponseHandler(J)}},{key:"sendToSharedObject",value:function(J,z,te){this._soResponder.sendToSharedObject(J,z,te)}},{key:"sendPropertyToSharedObject",value:function(J,z,te){this._soResponder.sendPropertyToSharedObject(J,z,te)}},{key:"getRemoteSharedObject",value:function(J){this._soResponder.getRemoteSharedObject(J)}},{key:"connectToSharedObject",value:function(J){this._soResponder.connectToSharedObject(J)}},{key:"closeSharedObject",value:function(J){this._soResponder.closeSharedObject(J)}},{key:"startABRController",value:function(){try{this.getEmbeddedView().startABRController()}catch(J){(0,k.debug)(R,"Could not start the Adaptive Bitrate Controller: "+J.message)}}},{key:"stopABRController",value:function(){try{this.getEmbeddedView().stopABRController()}catch(J){(0,k.debug)(R,"Could not stop the Adaptive Bitrate Controller: "+J.message)}}},{key:"setABRVariants",value:function(J,z){try{var te=encodeURIComponent("string"==typeof J?J:(0,m.default)(J));this.getEmbeddedView().setABRVariants(te,z||1)}catch(X){(0,k.debug)(R,"Could not set ABR Variants: "+X.message)}}},{key:"setABRLevel",value:function(J,z){try{this.getEmbeddedView().setABRLevel(J,!!z)}catch(te){(0,k.debug)(R,"Could not set ABR level: "+te.message)}}},{key:"setABRVariantUpgradeSettings",value:function(J){try{var z=encodeURIComponent("string"==typeof abrVariants?J:(0,m.default)(J));this.getEmbeddedView().setABRVariantUpgradeSettings(z)}catch(te){(0,k.debug)(R,"Could not set ABR Variants: "+te.message)}}},{key:"getEmbeddedView",value:function(){return A.default.getEmbedObject(this._swfId)}},{key:"getControls",value:function(){return this._controls}},{key:"getType",value:function(){return this.playerType}}]),ee}(V.PlaybackController);d.default=K},function(W,d,n){W.exports={default:n(151),__esModule:!0}},function(W,d,n){W.exports={default:n(152),__esModule:!0}},function(W,d,n){W.exports={default:n(153),__esModule:!0}},function(W,d,n){W.exports={default:n(157),__esModule:!0}},function(W,d,n){W.exports={default:n(158),__esModule:!0}},function(W,d,n){W.exports={default:n(159),__esModule:!0}},function(W,d,n){W.exports={default:n(162),__esModule:!0}},function(W,d,n){W.exports={default:n(165),__esModule:!0}},function(W,d,n){W.exports={default:n(168),__esModule:!0}},function(W,d,n){W.exports={default:n(169),__esModule:!0}},function(W,d,n){"use strict";function l(v){return v&&v.__esModule?v:{default:v}}d.__esModule=!0;var m=l(n(141)),P=l(n(140));d.default=function(){return function(O,S){if(Array.isArray(O))return O;if((0,m.default)(Object(O)))return function v(O,S){var y=[],r=!0,i=!1,a=void 0;try{for(var h,g=(0,P.default)(O);!(r=(h=g.next()).done)&&(y.push(h.value),!S||y.length!==S);r=!0);}catch(c){i=!0,a=c}finally{try{!r&&g.return&&g.return()}finally{if(i)throw a}}return y}(O,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(W,d,n){W.exports=n(212)},function(W,d,n){n(27),n(191),W.exports=n(4).Array.from},function(W,d,n){n(28),n(27),W.exports=n(189)},function(W,d,n){n(28),n(27),W.exports=n(190)},function(W,d,n){var l=n(4),p=l.JSON||(l.JSON={stringify:JSON.stringify});W.exports=function(m){return p.stringify.apply(p,arguments)}},function(W,d,n){n(43),n(27),n(28),n(193),n(208),W.exports=n(4).Map},function(W,d,n){n(194),W.exports=n(4).Number.isFinite},function(W,d,n){n(195),W.exports=n(4).Number.isNaN},function(W,d,n){n(196),W.exports=n(4).Object.assign},function(W,d,n){n(197);var l=n(4).Object;W.exports=function(p,m){return l.create(p,m)}},function(W,d,n){n(198);var l=n(4).Object;W.exports=function(p,m,_){return l.defineProperty(p,m,_)}},function(W,d,n){n(199),W.exports=n(4).Object.freeze},function(W,d,n){n(200);var l=n(4).Object;W.exports=function(p,m){return l.getOwnPropertyDescriptor(p,m)}},function(W,d,n){n(201),W.exports=n(4).Object.getPrototypeOf},function(W,d,n){n(202),W.exports=n(4).Object.keys},function(W,d,n){n(203),W.exports=n(4).Object.setPrototypeOf},function(W,d,n){n(43),n(27),n(28),n(204),W.exports=n(4).Promise},function(W,d,n){n(43),n(27),n(28),n(205),n(209),W.exports=n(4).Set},function(W,d,n){n(206),n(43),n(210),n(211),W.exports=n(4).Symbol},function(W,d,n){n(27),n(28),W.exports=n(79).f("iterator")},function(W,d,n){n(43),n(28),n(207),W.exports=n(4).WeakMap},function(W,d){W.exports=function(){}},function(W,d,n){var l=n(40);W.exports=function(p,m){var _=[];return l(p,!1,_.push,_,m),_}},function(W,d,n){var l=n(23),p=n(56),m=n(188);W.exports=function(_){return function(P,v,O){var S,y=l(P),r=p(y.length),i=m(O,r);if(_&&v!=v){for(;r>i;)if((S=y[i++])!=S)return!0}else for(;r>i;i++)if((_||i in y)&&y[i]===v)return _||i||0;return!_&&-1}}},function(W,d,n){var l=n(14),p=n(106),m=n(9)("species");W.exports=function(_){var P;return p(_)&&("function"!=typeof(P=_.constructor)||P!==Array&&!p(P.prototype)||(P=void 0),l(P)&&null===(P=P[m])&&(P=void 0)),void 0===P?Array:P}},function(W,d,n){var l=n(174);W.exports=function(p,m){return new(l(p))(m)}},function(W,d,n){"use strict";var l=n(55),p=n(33).getWeak,m=n(16),_=n(14),P=n(48),v=n(40),O=n(65),S=n(21),y=O(5),r=O(6),i=0,a=function(c){return c._l||(c._l=new h)},h=function(){this.a=[]},g=function(c,T){return y(c.a,function(A){return A[0]===T})};h.prototype={get:function(c){var T=g(this,c);if(T)return T[1]},has:function(c){return!!g(this,c)},set:function(c,T){var A=g(this,c);A?A[1]=T:this.a.push([c,T])},delete:function(c){var T=r(this.a,function(A){return A[0]===c});return~T&&this.a.splice(T,1),!!~T}},W.exports={getConstructor:function(c,T,A,L){var x=c(function(V,D){P(V,x,T,"_i"),V._i=i++,V._l=void 0,null!=D&&v(D,A,V[L],V)});return l(x.prototype,{delete:function(V){if(!_(V))return!1;var D=p(V);return!0===D?a(this).delete(V):D&&S(D,this._i)&&delete D[this._i]},has:function(V){if(!_(V))return!1;var D=p(V);return!0===D?a(this).has(V):D&&S(D,this._i)}}),x},def:function(c,T,A){var L=p(m(T),!0);return!0===L?a(c).set(T,A):L[c._i]=A,c},ufstore:a}},function(W,d,n){"use strict";var l=n(15),p=n(41);W.exports=function(m,_,P){_ in m?l.f(m,_,p(0,P)):m[_]=P}},function(W,d,n){var l=n(34),p=n(72),m=n(53);W.exports=function(_){var P=l(_),v=p.f;if(v)for(var O,S=v(_),y=m.f,r=0;S.length>r;)y.call(_,O=S[r++])&&P.push(O);return P}},function(W,d){W.exports=function(n,l,p){var m=void 0===p;switch(l.length){case 0:return m?n():n.call(p);case 1:return m?n(l[0]):n.call(p,l[0]);case 2:return m?n(l[0],l[1]):n.call(p,l[0],l[1]);case 3:return m?n(l[0],l[1],l[2]):n.call(p,l[0],l[1],l[2]);case 4:return m?n(l[0],l[1],l[2],l[3]):n.call(p,l[0],l[1],l[2],l[3])}return n.apply(p,l)}},function(W,d,n){"use strict";var l=n(52),p=n(41),m=n(42),_={};n(22)(_,n(9)("iterator"),function(){return this}),W.exports=function(P,v,O){P.prototype=l(_,{next:p(1,O)}),m(P,v+" Iterator")}},function(W,d,n){var l=n(34),p=n(23);W.exports=function(m,_){for(var P,v=p(m),O=l(v),S=O.length,y=0;S>y;)if(v[P=O[y++]]===_)return P}},function(W,d,n){var l=n(12),p=n(115).set,m=l.MutationObserver||l.WebKitMutationObserver,_=l.process,P=l.Promise,v="process"==n(39)(_);W.exports=function(){var O,S,y,r=function(){var g,c;for(v&&(g=_.domain)&&g.exit();O;){c=O.fn,O=O.next;try{c()}catch(T){throw O?y():S=void 0,T}}S=void 0,g&&g.enter()};if(v)y=function(){_.nextTick(r)};else if(m){var i=!0,a=document.createTextNode("");new m(r).observe(a,{characterData:!0}),y=function(){a.data=i=!i}}else if(P&&P.resolve){var h=P.resolve();y=function(){h.then(r)}}else y=function(){p.call(l,r)};return function(g){var c={fn:g,next:void 0};S&&(S.next=c),O||(O=c,y()),S=c}}},function(W,d,n){var l=n(15),p=n(16),m=n(34);W.exports=n(17)?Object.defineProperties:function(_,P){p(_);for(var v,O=m(P),S=O.length,y=0;S>y;)l.f(_,v=O[y++],P[v]);return _}},function(W,d,n){var l=n(23),p=n(111).f,m={}.toString,_="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];W.exports.f=function(v){return _&&"[object Window]"==m.call(v)?function(v){try{return p(v)}catch{return _.slice()}}(v):p(l(v))}},function(W,d,n){var l=n(14),p=n(16),m=function(_,P){if(p(_),!l(P)&&null!==P)throw TypeError(P+": can't set as prototype!")};W.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(_,P,v){try{(v=n(20)(Function.call,n(71).f(Object.prototype,"__proto__").set,2))(_,[]),P=!(_ instanceof Array)}catch{P=!0}return function(O,S){return m(O,S),P?O.__proto__=S:v(O,S),O}}({},!1):void 0),check:m}},function(W,d,n){var l=n(16),p=n(64),m=n(9)("species");W.exports=function(_,P){var v,O=l(_).constructor;return void 0===O||null==(v=l(O)[m])?P:p(v)}},function(W,d,n){var l=n(76),p=n(50);W.exports=function(m){return function(_,P){var v,O,S=String(p(_)),y=l(P),r=S.length;return y<0||y>=r?m?"":void 0:(v=S.charCodeAt(y))<55296||v>56319||y+1===r||(O=S.charCodeAt(y+1))<56320||O>57343?m?S.charAt(y):v:m?S.slice(y,y+2):O-56320+(v-55296<<10)+65536}}},function(W,d,n){var l=n(76),p=Math.max,m=Math.min;W.exports=function(_,P){return(_=l(_))<0?p(_+P,0):m(_,P)}},function(W,d,n){var l=n(16),p=n(80);W.exports=n(4).getIterator=function(m){var _=p(m);if("function"!=typeof _)throw TypeError(m+" is not iterable!");return l(_.call(m))}},function(W,d,n){var l=n(49),p=n(9)("iterator"),m=n(32);W.exports=n(4).isIterable=function(_){var P=Object(_);return void 0!==P[p]||"@@iterator"in P||m.hasOwnProperty(l(P))}},function(W,d,n){"use strict";var l=n(20),p=n(11),m=n(35),_=n(107),P=n(105),v=n(56),O=n(177),S=n(80);p(p.S+p.F*!n(108)(function(y){Array.from(y)}),"Array",{from:function(y){var r,i,a,h,g=m(y),c="function"==typeof this?this:Array,T=arguments.length,A=T>1?arguments[1]:void 0,L=void 0!==A,x=0,V=S(g);if(L&&(A=l(A,T>2?arguments[2]:void 0,2)),null==V||c==Array&&P(V))for(i=new c(r=v(g.length));r>x;x++)O(i,x,L?A(g[x],x):g[x]);else for(h=V.call(g),i=new c;!(a=h.next()).done;x++)O(i,x,L?_(h,A,[a.value,x],!0):a.value);return i.length=x,i}})},function(W,d,n){"use strict";var l=n(171),p=n(109),m=n(32),_=n(23);W.exports=n(70)(Array,"Array",function(P,v){this._t=_(P),this._i=0,this._k=v},function(){var P=this._t,v=this._k,O=this._i++;return!P||O>=P.length?(this._t=void 0,p(1)):p(0,"keys"==v?O:"values"==v?P[O]:[O,P[O]])},"values"),m.Arguments=m.Array,l("keys"),l("values"),l("entries")},function(W,d,n){"use strict";var l=n(101);W.exports=n(66)("Map",function(p){return function(){return p(this,arguments.length>0?arguments[0]:void 0)}},{get:function(p){var m=l.getEntry(this,p);return m&&m.v},set:function(p,m){return l.def(this,0===p?0:p,m)}},l,!0)},function(W,d,n){var l=n(11),p=n(12).isFinite;l(l.S,"Number",{isFinite:function(m){return"number"==typeof m&&p(m)}})},function(W,d,n){var l=n(11);l(l.S,"Number",{isNaN:function(p){return p!=p}})},function(W,d,n){var l=n(11);l(l.S+l.F,"Object",{assign:n(110)})},function(W,d,n){var l=n(11);l(l.S,"Object",{create:n(52)})},function(W,d,n){var l=n(11);l(l.S+l.F*!n(17),"Object",{defineProperty:n(15).f})},function(W,d,n){var l=n(14),p=n(33).onFreeze;n(54)("freeze",function(m){return function(_){return m&&l(_)?m(p(_)):_}})},function(W,d,n){var l=n(23),p=n(71).f;n(54)("getOwnPropertyDescriptor",function(){return function(m,_){return p(l(m),_)}})},function(W,d,n){var l=n(35),p=n(112);n(54)("getPrototypeOf",function(){return function(m){return p(l(m))}})},function(W,d,n){var l=n(35),p=n(34);n(54)("keys",function(){return function(m){return p(l(m))}})},function(W,d,n){var l=n(11);l(l.S,"Object",{setPrototypeOf:n(185).set})},function(W,d,n){"use strict";var l,p,m,_=n(51),P=n(12),v=n(20),O=n(49),S=n(11),y=n(14),r=n(64),i=n(48),a=n(40),h=n(186),g=n(115).set,c=n(182)(),T=P.TypeError,L=P.process,A=P.Promise,x="process"==O(L=P.process),V=function(){},D=!!function(){try{var te=A.resolve(1),X=(te.constructor={})[n(9)("species")]=function(re){re(V,V)};return(x||"function"==typeof PromiseRejectionEvent)&&te.then(V)instanceof X}catch{}}(),F=function(te,X){return te===X||te===A&&X===m},I=function(te){var X;return!(!y(te)||"function"!=typeof(X=te.then))&&X},k=function(te){return F(A,te)?new R(te):new p(te)},R=p=function(te){var X,re;this.promise=new te(function(ge,oe){if(void 0!==X||void 0!==re)throw T("Bad Promise constructor");X=ge,re=oe}),this.resolve=r(X),this.reject=r(re)},G=function(te){try{te()}catch(X){return{error:X}}},Y=function(te,X){if(!te._n){te._n=!0;var re=te._c;c(function(){for(var ge=te._v,oe=1==te._s,xe=0;re.length>xe;)!function(ue){var N,se,ce=oe?ue.ok:ue.fail,Z=ue.resolve,de=ue.reject,ae=ue.domain;try{ce?(oe||(2==te._h&&ee(te),te._h=1),!0===ce?N=ge:(ae&&ae.enter(),N=ce(ge),ae&&ae.exit()),N===ue.promise?de(T("Promise-chain cycle")):(se=I(N))?se.call(N,Z,de):Z(N)):de(ge)}catch(pe){de(pe)}}(re[xe++]);te._c=[],te._n=!1,X&&!te._h&&K(te)})}},K=function(te){g.call(P,function(){var X,re,ge,oe=te._v;if($(te)&&(X=G(function(){x?L.emit("unhandledRejection",oe,te):(re=P.onunhandledrejection)?re({promise:te,reason:oe}):(ge=P.console)&&ge.error&&ge.error("Unhandled promise rejection",oe)}),te._h=x||$(te)?2:1),te._a=void 0,X)throw X.error})},$=function(te){if(1==te._h)return!1;for(var X,re=te._a||te._c,ge=0;re.length>ge;)if((X=re[ge++]).fail||!$(X.promise))return!1;return!0},ee=function(te){g.call(P,function(){var X;x?L.emit("rejectionHandled",te):(X=P.onrejectionhandled)&&X({promise:te,reason:te._v})})},J=function(te){var X=this;X._d||(X._d=!0,(X=X._w||X)._v=te,X._s=2,X._a||(X._a=X._c.slice()),Y(X,!0))},z=function(te){var X,re=this;if(!re._d){re._d=!0,re=re._w||re;try{if(re===te)throw T("Promise can't be resolved itself");(X=I(te))?c(function(){var ge={_w:re,_d:!1};try{X.call(te,v(z,ge,1),v(J,ge,1))}catch(oe){J.call(ge,oe)}}):(re._v=te,re._s=1,Y(re,!1))}catch(ge){J.call({_w:re,_d:!1},ge)}}};D||(A=function(te){i(this,A,"Promise","_h"),r(te),l.call(this);try{te(v(z,this,1),v(J,this,1))}catch(X){J.call(this,X)}},(l=function(te){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(55)(A.prototype,{then:function(te,X){var re=k(h(this,A));return re.ok="function"!=typeof te||te,re.fail="function"==typeof X&&X,re.domain=x?L.domain:void 0,this._c.push(re),this._a&&this._a.push(re),this._s&&Y(this,!1),re.promise},catch:function(te){return this.then(void 0,te)}}),R=function(){var te=new l;this.promise=te,this.resolve=v(z,te,1),this.reject=v(J,te,1)}),S(S.G+S.W+S.F*!D,{Promise:A}),n(42)(A,"Promise"),n(114)("Promise"),m=n(4).Promise,S(S.S+S.F*!D,"Promise",{reject:function(te){var X=k(this);return(0,X.reject)(te),X.promise}}),S(S.S+S.F*(_||!D),"Promise",{resolve:function(te){if(te instanceof A&&F(te.constructor,this))return te;var X=k(this);return(0,X.resolve)(te),X.promise}}),S(S.S+S.F*!(D&&n(108)(function(te){A.all(te).catch(V)})),"Promise",{all:function(te){var X=this,re=k(X),ge=re.resolve,oe=re.reject,xe=G(function(){var ue=[],N=0,se=1;a(te,!1,function(ce){var Z=N++,de=!1;ue.push(void 0),se++,X.resolve(ce).then(function(ae){de||(de=!0,ue[Z]=ae,--se||ge(ue))},oe)}),--se||ge(ue)});return xe&&oe(xe.error),re.promise},race:function(te){var X=this,re=k(X),ge=re.reject,oe=G(function(){a(te,!1,function(xe){X.resolve(xe).then(re.resolve,ge)})});return oe&&ge(oe.error),re.promise}})},function(W,d,n){"use strict";var l=n(101);W.exports=n(66)("Set",function(p){return function(){return p(this,arguments.length>0?arguments[0]:void 0)}},{add:function(p){return l.def(this,p=0===p?0:p,p)}},l)},function(W,d,n){"use strict";var l=n(12),p=n(21),m=n(17),_=n(11),P=n(73),v=n(33).KEY,O=n(26),S=n(75),y=n(42),r=n(57),i=n(9),a=n(79),h=n(78),g=n(181),c=n(178),T=n(106),A=n(16),L=n(23),x=n(77),V=n(41),D=n(52),F=n(184),I=n(71),k=n(15),R=n(34),G=I.f,Y=k.f,K=F.f,$=l.Symbol,ee=l.JSON,J=ee&&ee.stringify,z=i("_hidden"),te=i("toPrimitive"),X={}.propertyIsEnumerable,re=S("symbol-registry"),ge=S("symbols"),oe=S("op-symbols"),xe=Object.prototype,ue="function"==typeof $,N=l.QObject,se=!N||!N.prototype||!N.prototype.findChild,ce=m&&O(function(){return 7!=D(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?function(gt,qt,ye){var Re=G(xe,qt);Re&&delete xe[qt],Y(gt,qt,ye),Re&>!==xe&&Y(xe,qt,Re)}:Y,Z=function(gt){var qt=ge[gt]=D($.prototype);return qt._k=gt,qt},de=ue&&"symbol"==typeof $.iterator?function(gt){return"symbol"==typeof gt}:function(gt){return gt instanceof $},ae=function(gt,qt,ye){return gt===xe&&ae(oe,qt,ye),A(gt),qt=x(qt,!0),A(ye),p(ge,qt)?(ye.enumerable?(p(gt,z)&>[z][qt]&&(gt[z][qt]=!1),ye=D(ye,{enumerable:V(0,!1)})):(p(gt,z)||Y(gt,z,V(1,{})),gt[z][qt]=!0),ce(gt,qt,ye)):Y(gt,qt,ye)},pe=function(gt,qt){A(gt);for(var ye,Re=c(qt=L(qt)),Ze=0,et=Re.length;et>Ze;)ae(gt,ye=Re[Ze++],qt[ye]);return gt},ke=function(gt){var qt=X.call(this,gt=x(gt,!0));return!(this===xe&&p(ge,gt)&&!p(oe,gt))&&(!(qt||!p(this,gt)||!p(ge,gt)||p(this,z)&&this[z][gt])||qt)},De=function(gt,qt){if(gt=L(gt),qt=x(qt,!0),gt!==xe||!p(ge,qt)||p(oe,qt)){var ye=G(gt,qt);return!ye||!p(ge,qt)||p(gt,z)&>[z][qt]||(ye.enumerable=!0),ye}},Me=function(gt){for(var qt,ye=K(L(gt)),Re=[],Ze=0;ye.length>Ze;)p(ge,qt=ye[Ze++])||qt==z||qt==v||Re.push(qt);return Re},je=function(gt){for(var qt,ye=gt===xe,Re=K(ye?oe:L(gt)),Ze=[],et=0;Re.length>et;)!p(ge,qt=Re[et++])||ye&&!p(xe,qt)||Ze.push(ge[qt]);return Ze};ue||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor!");var gt=r(arguments.length>0?arguments[0]:void 0),qt=function(ye){this===xe&&qt.call(oe,ye),p(this,z)&&p(this[z],gt)&&(this[z][gt]=!1),ce(this,gt,V(1,ye))};return m&&se&&ce(xe,gt,{configurable:!0,set:qt}),Z(gt)},P($.prototype,"toString",function(){return this._k}),I.f=De,k.f=ae,n(111).f=F.f=Me,n(53).f=ke,n(72).f=je,m&&!n(51)&&P(xe,"propertyIsEnumerable",ke,!0),a.f=function(gt){return Z(i(gt))}),_(_.G+_.W+_.F*!ue,{Symbol:$});for(var $e="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Oe=0;$e.length>Oe;)i($e[Oe++]);for($e=R(i.store),Oe=0;$e.length>Oe;)h($e[Oe++]);_(_.S+_.F*!ue,"Symbol",{for:function(gt){return p(re,gt+="")?re[gt]:re[gt]=$(gt)},keyFor:function(gt){if(de(gt))return g(re,gt);throw TypeError(gt+" is not a symbol!")},useSetter:function(){se=!0},useSimple:function(){se=!1}}),_(_.S+_.F*!ue,"Object",{create:function(gt,qt){return void 0===qt?D(gt):pe(D(gt),qt)},defineProperty:ae,defineProperties:pe,getOwnPropertyDescriptor:De,getOwnPropertyNames:Me,getOwnPropertySymbols:je}),ee&&_(_.S+_.F*(!ue||O(function(){var gt=$();return"[null]"!=J([gt])||"{}"!=J({a:gt})||"{}"!=J(Object(gt))})),"JSON",{stringify:function(gt){if(void 0!==gt&&!de(gt)){for(var qt,ye,Re=[gt],Ze=1;arguments.length>Ze;)Re.push(arguments[Ze++]);return"function"==typeof(qt=Re[1])&&(ye=qt),!ye&&T(qt)||(qt=function(et,xt){if(ye&&(xt=ye.call(this,et,xt)),!de(xt))return xt}),Re[1]=qt,J.apply(ee,Re)}}}),$.prototype[te]||n(22)($.prototype,te,$.prototype.valueOf),y($,"Symbol"),y(Math,"Math",!0),y(l.JSON,"JSON",!0)},function(W,d,n){"use strict";var l,p=n(65)(0),m=n(73),_=n(33),P=n(110),v=n(176),O=n(14),S=_.getWeak,y=Object.isExtensible,r=v.ufstore,i={},a=function(c){return function(){return c(this,arguments.length>0?arguments[0]:void 0)}},h={get:function(c){if(O(c)){var T=S(c);return!0===T?r(this).get(c):T?T[this._i]:void 0}},set:function(c,T){return v.def(this,c,T)}},g=W.exports=n(66)("WeakMap",a,h,v,!0,!0);7!=(new g).set((Object.freeze||Object)(i),7).get(i)&&(P((l=v.getConstructor(a)).prototype,h),_.NEED=!0,p(["delete","has","get","set"],function(c){var T=g.prototype,A=T[c];m(T,c,function(L,x){if(O(L)&&!y(L)){this._f||(this._f=new l);var V=this._f[c](L,x);return"set"==c?this:V}return A.call(this,L,x)})}))},function(W,d,n){var l=n(11);l(l.P+l.R,"Map",{toJSON:n(102)("Map")})},function(W,d,n){var l=n(11);l(l.P+l.R,"Set",{toJSON:n(102)("Set")})},function(W,d,n){n(78)("asyncIterator")},function(W,d,n){n(78)("observable")},function(W,d,n){var l=function(){return this}()||Function("return this")(),p=l.regeneratorRuntime&&Object.getOwnPropertyNames(l).indexOf("regeneratorRuntime")>=0,m=p&&l.regeneratorRuntime;if(l.regeneratorRuntime=void 0,W.exports=n(213),p)l.regeneratorRuntime=m;else try{delete l.regeneratorRuntime}catch{l.regeneratorRuntime=void 0}},function(W,d){!function(n){"use strict";function l(te,X,re,ge){var xe=Object.create((X&&X.prototype instanceof m?X:m).prototype),ue=new a(ge||[]);return xe._invoke=function S(te,X,re){var ge=k;return function(oe,xe){if(ge===G)throw new Error("Generator is already running");if(ge===Y){if("throw"===oe)throw xe;return g()}for(re.method=oe,re.arg=xe;;){var ue=re.delegate;if(ue){var N=y(ue,re);if(N){if(N===K)continue;return N}}if("next"===re.method)re.sent=re._sent=re.arg;else if("throw"===re.method){if(ge===k)throw ge=Y,re.arg;re.dispatchException(re.arg)}else"return"===re.method&&re.abrupt("return",re.arg);ge=G;var se=p(te,X,re);if("normal"===se.type){if(ge=re.done?Y:R,se.arg===K)continue;return{value:se.arg,done:re.done}}"throw"===se.type&&(ge=Y,re.method="throw",re.arg=se.arg)}}}(te,re,ue),xe}function p(te,X,re){try{return{type:"normal",arg:te.call(X,re)}}catch(ge){return{type:"throw",arg:ge}}}function m(){}function _(){}function P(){}function v(te){["next","throw","return"].forEach(function(X){te[X]=function(re){return this._invoke(X,re)}})}function O(te){function X(oe,xe,ue,N){var se=p(te[oe],te,xe);if("throw"!==se.type){var ce=se.arg,Z=ce.value;return Z&&"object"==typeof Z&&A.call(Z,"__await")?Promise.resolve(Z.__await).then(function(de){X("next",de,ue,N)},function(de){X("throw",de,ue,N)}):Promise.resolve(Z).then(function(de){ce.value=de,ue(ce)},N)}N(se.arg)}var ge;this._invoke=function re(oe,xe){function ue(){return new Promise(function(N,se){X(oe,xe,N,se)})}return ge=ge?ge.then(ue,ue):ue()}}function y(te,X){var re=te.iterator[X.method];if(re===c){if(X.delegate=null,"throw"===X.method){if(te.iterator.return&&(X.method="return",X.arg=c,y(te,X),"throw"===X.method))return K;X.method="throw",X.arg=new TypeError("The iterator does not provide a 'throw' method")}return K}var ge=p(re,te.iterator,X.arg);if("throw"===ge.type)return X.method="throw",X.arg=ge.arg,X.delegate=null,K;var oe=ge.arg;return oe?oe.done?(X[te.resultName]=oe.value,X.next=te.nextLoc,"return"!==X.method&&(X.method="next",X.arg=c),X.delegate=null,K):oe:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,K)}function r(te){var X={tryLoc:te[0]};1 in te&&(X.catchLoc=te[1]),2 in te&&(X.finallyLoc=te[2],X.afterLoc=te[3]),this.tryEntries.push(X)}function i(te){var X=te.completion||{};X.type="normal",delete X.arg,te.completion=X}function a(te){this.tryEntries=[{tryLoc:"root"}],te.forEach(r,this),this.reset(!0)}function h(te){if(te){var X=te[x];if(X)return X.call(te);if("function"==typeof te.next)return te;if(!isNaN(te.length)){var re=-1,ge=function oe(){for(;++re<te.length;)if(A.call(te,re))return oe.value=te[re],oe.done=!1,oe;return oe.value=c,oe.done=!0,oe};return ge.next=ge}}return{next:g}}function g(){return{value:c,done:!0}}var c,T=Object.prototype,A=T.hasOwnProperty,L="function"==typeof Symbol?Symbol:{},x=L.iterator||"@@iterator",V=L.asyncIterator||"@@asyncIterator",D=L.toStringTag||"@@toStringTag",F="object"==typeof W,I=n.regeneratorRuntime;if(I)F&&(W.exports=I);else{(I=n.regeneratorRuntime=F?W.exports:{}).wrap=l;var k="suspendedStart",R="suspendedYield",G="executing",Y="completed",K={},$={};$[x]=function(){return this};var ee=Object.getPrototypeOf,J=ee&&ee(ee(h([])));J&&J!==T&&A.call(J,x)&&($=J);var z=P.prototype=m.prototype=Object.create($);_.prototype=z.constructor=P,P.constructor=_,P[D]=_.displayName="GeneratorFunction",I.isGeneratorFunction=function(te){var X="function"==typeof te&&te.constructor;return!!X&&(X===_||"GeneratorFunction"===(X.displayName||X.name))},I.mark=function(te){return Object.setPrototypeOf?Object.setPrototypeOf(te,P):(te.__proto__=P,D in te||(te[D]="GeneratorFunction")),te.prototype=Object.create(z),te},I.awrap=function(te){return{__await:te}},v(O.prototype),O.prototype[V]=function(){return this},I.AsyncIterator=O,I.async=function(te,X,re,ge){var oe=new O(l(te,X,re,ge));return I.isGeneratorFunction(X)?oe:oe.next().then(function(xe){return xe.done?xe.value:oe.next()})},v(z),z[D]="Generator",z[x]=function(){return this},z.toString=function(){return"[object Generator]"},I.keys=function(te){var X=[];for(var re in te)X.push(re);return X.reverse(),function ge(){for(;X.length;){var oe=X.pop();if(oe in te)return ge.value=oe,ge.done=!1,ge}return ge.done=!0,ge}},I.values=h,a.prototype={constructor:a,reset:function(te){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(i),!te)for(var X in this)"t"===X.charAt(0)&&A.call(this,X)&&!isNaN(+X.slice(1))&&(this[X]=c)},stop:function(){this.done=!0;var X=this.tryEntries[0].completion;if("throw"===X.type)throw X.arg;return this.rval},dispatchException:function(te){function X(se,ce){return xe.type="throw",xe.arg=te,re.next=se,ce&&(re.method="next",re.arg=c),!!ce}if(this.done)throw te;for(var re=this,ge=this.tryEntries.length-1;ge>=0;--ge){var oe=this.tryEntries[ge],xe=oe.completion;if("root"===oe.tryLoc)return X("end");if(oe.tryLoc<=this.prev){var ue=A.call(oe,"catchLoc"),N=A.call(oe,"finallyLoc");if(ue&&N){if(this.prev<oe.catchLoc)return X(oe.catchLoc,!0);if(this.prev<oe.finallyLoc)return X(oe.finallyLoc)}else if(ue){if(this.prev<oe.catchLoc)return X(oe.catchLoc,!0)}else{if(!N)throw new Error("try statement without catch or finally");if(this.prev<oe.finallyLoc)return X(oe.finallyLoc)}}}},abrupt:function(te,X){for(var re=this.tryEntries.length-1;re>=0;--re){var ge=this.tryEntries[re];if(ge.tryLoc<=this.prev&&A.call(ge,"finallyLoc")&&this.prev<ge.finallyLoc){var oe=ge;break}}oe&&("break"===te||"continue"===te)&&oe.tryLoc<=X&&X<=oe.finallyLoc&&(oe=null);var xe=oe?oe.completion:{};return xe.type=te,xe.arg=X,oe?(this.method="next",this.next=oe.finallyLoc,K):this.complete(xe)},complete:function(te,X){if("throw"===te.type)throw te.arg;return"break"===te.type||"continue"===te.type?this.next=te.arg:"return"===te.type?(this.rval=this.arg=te.arg,this.method="return",this.next="end"):"normal"===te.type&&X&&(this.next=X),K},finish:function(te){for(var X=this.tryEntries.length-1;X>=0;--X){var re=this.tryEntries[X];if(re.finallyLoc===te)return this.complete(re.completion,re.afterLoc),i(re),K}},catch:function(te){for(var X=this.tryEntries.length-1;X>=0;--X){var re=this.tryEntries[X];if(re.tryLoc===te){var ge=re.completion;if("throw"===ge.type){var oe=ge.arg;i(re)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(te,X,re){return this.delegate={iterator:h(te),resultName:X,nextLoc:re},"next"===this.method&&(this.arg=c),K}}}}(function(){return this}()||Function("return this")())},function(W,d,n){W.exports=n(116)}])},99443:(Ue,W,d)=>{"use strict";d.d(W,{h:()=>p});var n=d(80583),l=d(10399);class p extends n.B7{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(_){return this.hasError?(_.error(this.thrownError),l.y.EMPTY):this.hasCompleted&&this.hasNext?(_.next(this.value),_.complete(),l.y.EMPTY):super._subscribe(_)}next(_){this.hasCompleted||(this.value=_,this.hasNext=!0)}error(_){this.hasCompleted||super.error(_)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},26513:(Ue,W,d)=>{"use strict";d.d(W,{t:()=>p});var n=d(80583),l=d(38058);class p extends n.B7{constructor(_){super(),this._value=_}get value(){return this.getValue()}_subscribe(_){const P=super._subscribe(_);return P&&!P.closed&&_.next(this._value),P}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.P;return this._value}next(_){super.next(this._value=_)}}},75252:(Ue,W,d)=>{"use strict";d.d(W,{E:()=>_});var n=d(12532),l=d(43848),p=d(59859);class _{constructor(v,O,S){this.kind=v,this.value=O,this.error=S,this.hasValue="N"===v}observe(v){switch(this.kind){case"N":return v.next&&v.next(this.value);case"E":return v.error&&v.error(this.error);case"C":return v.complete&&v.complete()}}do(v,O,S){switch(this.kind){case"N":return v&&v(this.value);case"E":return O&&O(this.error);case"C":return S&&S()}}accept(v,O,S){return v&&"function"==typeof v.next?this.observe(v):this.do(v,O,S)}toObservable(){switch(this.kind){case"N":return(0,l.of)(this.value);case"E":return(0,p.$)(this.error);case"C":return(0,n.I)()}throw new Error("unexpected notification kind value")}static createNext(v){return typeof v<"u"?new _("N",v):_.undefinedValueNotification}static createError(v){return new _("E",void 0,v)}static createComplete(){return _.completeNotification}}_.completeNotification=new _("C"),_.undefinedValueNotification=new _("N",void 0)},17053:(Ue,W,d)=>{"use strict";d.d(W,{c:()=>S});var n=d(27721),p=d(73302),m=d(41469),P=d(15587),v=d(97462),O=d(71337);let S=(()=>{class r{constructor(a){this._isScalar=!1,a&&(this._subscribe=a)}lift(a){const h=new r;return h.source=this,h.operator=a,h}subscribe(a,h,g){const{operator:c}=this,T=function _(r,i,a){if(r){if(r instanceof n.v)return r;if(r[p.D])return r[p.D]()}return r||i||a?new n.v(r,i,a):new n.v(m.I)}(a,h,g);if(T.add(c?c.call(T,this.source):this.source||O.$.useDeprecatedSynchronousErrorHandling&&!T.syncErrorThrowable?this._subscribe(T):this._trySubscribe(T)),O.$.useDeprecatedSynchronousErrorHandling&&T.syncErrorThrowable&&(T.syncErrorThrowable=!1,T.syncErrorThrown))throw T.syncErrorValue;return T}_trySubscribe(a){try{return this._subscribe(a)}catch(h){O.$.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=h),function l(r){for(;r;){const{closed:i,destination:a,isStopped:h}=r;if(i||h)return!1;r=a&&a instanceof n.v?a:null}return!0}(a)?a.error(h):console.warn(h)}}forEach(a,h){return new(h=y(h))((g,c)=>{let T;T=this.subscribe(A=>{try{a(A)}catch(L){c(L),T&&T.unsubscribe()}},c,g)})}_subscribe(a){const{source:h}=this;return h&&h.subscribe(a)}[P.s](){return this}pipe(...a){return 0===a.length?this:(0,v.m)(a)(this)}toPromise(a){return new(a=y(a))((h,g)=>{let c;this.subscribe(T=>c=T,T=>g(T),()=>h(c))})}}return r.create=i=>new r(i),r})();function y(r){if(r||(r=O.$.Promise||Promise),!r)throw new Error("no Promise impl found");return r}},41469:(Ue,W,d)=>{"use strict";d.d(W,{I:()=>p});var n=d(71337),l=d(81498);const p={closed:!0,next(m){},error(m){if(n.$.useDeprecatedSynchronousErrorHandling)throw m;(0,l.T)(m)},complete(){}}},88134:(Ue,W,d)=>{"use strict";d.d(W,{E:()=>l});var n=d(27721);class l extends n.v{notifyNext(m,_,P,v,O){this.destination.next(_)}notifyError(m,_){this.destination.error(m)}notifyComplete(m){this.destination.complete()}}},57258:(Ue,W,d)=>{"use strict";d.d(W,{m:()=>T});var n=d(80583),l=d(86369),m=d(4065);const v=new class _ extends m.q{}(class p extends l.R{constructor(x,V){super(x,V),this.scheduler=x,this.work=V}schedule(x,V=0){return V>0?super.schedule(x,V):(this.delay=V,this.state=x,this.scheduler.flush(this),this)}execute(x,V){return V>0||this.closed?super.execute(x,V):this._execute(x,V)}requestAsyncId(x,V,D=0){return null!==D&&D>0||null===D&&this.delay>0?super.requestAsyncId(x,V,D):x.flush(this)}});var O=d(10399),S=d(27721),y=d(75252);class a extends S.v{constructor(x,V,D=0){super(x),this.scheduler=V,this.delay=D}static dispatch(x){const{notification:V,destination:D}=x;V.observe(D),this.unsubscribe()}scheduleMessage(x){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new h(x,this.destination)))}_next(x){this.scheduleMessage(y.E.createNext(x))}_error(x){this.scheduleMessage(y.E.createError(x)),this.unsubscribe()}_complete(){this.scheduleMessage(y.E.createComplete()),this.unsubscribe()}}class h{constructor(x,V){this.notification=x,this.destination=V}}var g=d(38058),c=d(29482);class T extends n.B7{constructor(x=Number.POSITIVE_INFINITY,V=Number.POSITIVE_INFINITY,D){super(),this.scheduler=D,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=x<1?1:x,this._windowTime=V<1?1:V,V===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(x){const V=this._events;V.push(x),V.length>this._bufferSize&&V.shift(),super.next(x)}nextTimeWindow(x){this._events.push(new A(this._getNow(),x)),this._trimBufferThenGetEvents(),super.next(x)}_subscribe(x){const V=this._infiniteTimeWindow,D=V?this._events:this._trimBufferThenGetEvents(),F=this.scheduler,I=D.length;let k;if(this.closed)throw new g.P;if(this.isStopped||this.hasError?k=O.y.EMPTY:(this.observers.push(x),k=new c.Y(this,x)),F&&x.add(x=new a(x,F)),V)for(let R=0;R<I&&!x.closed;R++)x.next(D[R]);else for(let R=0;R<I&&!x.closed;R++)x.next(D[R].value);return this.hasError?x.error(this.thrownError):this.isStopped&&x.complete(),k}_getNow(){return(this.scheduler||v).now()}_trimBufferThenGetEvents(){const x=this._getNow(),V=this._bufferSize,D=this._windowTime,F=this._events,I=F.length;let k=0;for(;k<I&&!(x-F[k].time<D);)k++;return I>V&&(k=Math.max(k,I-V)),k>0&&F.splice(0,k),F}}class A{constructor(x,V){this.time=x,this.value=V}}},80583:(Ue,W,d)=>{"use strict";d.d(W,{B7:()=>O,PJ:()=>v,kQ:()=>S});var n=d(17053),l=d(27721),p=d(10399),m=d(38058),_=d(29482),P=d(73302);class v extends l.v{constructor(r){super(r),this.destination=r}}let O=(()=>{class y extends n.c{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[P.D](){return new v(this)}lift(i){const a=new S(this,this);return a.operator=i,a}next(i){if(this.closed)throw new m.P;if(!this.isStopped){const{observers:a}=this,h=a.length,g=a.slice();for(let c=0;c<h;c++)g[c].next(i)}}error(i){if(this.closed)throw new m.P;this.hasError=!0,this.thrownError=i,this.isStopped=!0;const{observers:a}=this,h=a.length,g=a.slice();for(let c=0;c<h;c++)g[c].error(i);this.observers.length=0}complete(){if(this.closed)throw new m.P;this.isStopped=!0;const{observers:i}=this,a=i.length,h=i.slice();for(let g=0;g<a;g++)h[g].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(i){if(this.closed)throw new m.P;return super._trySubscribe(i)}_subscribe(i){if(this.closed)throw new m.P;return this.hasError?(i.error(this.thrownError),p.y.EMPTY):this.isStopped?(i.complete(),p.y.EMPTY):(this.observers.push(i),new _.Y(this,i))}asObservable(){const i=new n.c;return i.source=this,i}}return y.create=(r,i)=>new S(r,i),y})();class S extends O{constructor(r,i){super(),this.destination=r,this.source=i}next(r){const{destination:i}=this;i&&i.next&&i.next(r)}error(r){const{destination:i}=this;i&&i.error&&this.destination.error(r)}complete(){const{destination:r}=this;r&&r.complete&&this.destination.complete()}_subscribe(r){const{source:i}=this;return i?this.source.subscribe(r):p.y.EMPTY}}},29482:(Ue,W,d)=>{"use strict";d.d(W,{Y:()=>l});var n=d(10399);class l extends n.y{constructor(m,_){super(),this.subject=m,this.subscriber=_,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const m=this.subject,_=m.observers;if(this.subject=null,!_||0===_.length||m.isStopped||m.closed)return;const P=_.indexOf(this.subscriber);-1!==P&&_.splice(P,1)}}},27721:(Ue,W,d)=>{"use strict";d.d(W,{v:()=>v});var n=d(50710),l=d(41469),p=d(10399),m=d(73302),_=d(71337),P=d(81498);class v extends p.y{constructor(y,r,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.I;break;case 1:if(!y){this.destination=l.I;break}if("object"==typeof y){y instanceof v?(this.syncErrorThrowable=y.syncErrorThrowable,this.destination=y,y.add(this)):(this.syncErrorThrowable=!0,this.destination=new O(this,y));break}default:this.syncErrorThrowable=!0,this.destination=new O(this,y,r,i)}}[m.D](){return this}static create(y,r,i){const a=new v(y,r,i);return a.syncErrorThrowable=!1,a}next(y){this.isStopped||this._next(y)}error(y){this.isStopped||(this.isStopped=!0,this._error(y))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(y){this.destination.next(y)}_error(y){this.destination.error(y),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:y}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=y,this}}class O extends v{constructor(y,r,i,a){super(),this._parentSubscriber=y;let h,g=this;(0,n.T)(r)?h=r:r&&(h=r.next,i=r.error,a=r.complete,r!==l.I&&(g=Object.create(r),(0,n.T)(g.unsubscribe)&&this.add(g.unsubscribe.bind(g)),g.unsubscribe=this.unsubscribe.bind(this))),this._context=g,this._next=h,this._error=i,this._complete=a}next(y){if(!this.isStopped&&this._next){const{_parentSubscriber:r}=this;_.$.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?this.__tryOrSetError(r,this._next,y)&&this.unsubscribe():this.__tryOrUnsub(this._next,y)}}error(y){if(!this.isStopped){const{_parentSubscriber:r}=this,{useDeprecatedSynchronousErrorHandling:i}=_.$;if(this._error)i&&r.syncErrorThrowable?(this.__tryOrSetError(r,this._error,y),this.unsubscribe()):(this.__tryOrUnsub(this._error,y),this.unsubscribe());else if(r.syncErrorThrowable)i?(r.syncErrorValue=y,r.syncErrorThrown=!0):(0,P.T)(y),this.unsubscribe();else{if(this.unsubscribe(),i)throw y;(0,P.T)(y)}}}complete(){if(!this.isStopped){const{_parentSubscriber:y}=this;if(this._complete){const r=()=>this._complete.call(this._context);_.$.useDeprecatedSynchronousErrorHandling&&y.syncErrorThrowable?(this.__tryOrSetError(y,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(y,r){try{y.call(this._context,r)}catch(i){if(this.unsubscribe(),_.$.useDeprecatedSynchronousErrorHandling)throw i;(0,P.T)(i)}}__tryOrSetError(y,r,i){if(!_.$.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,i)}catch(a){return _.$.useDeprecatedSynchronousErrorHandling?(y.syncErrorValue=a,y.syncErrorThrown=!0,!0):((0,P.T)(a),!0)}return!1}_unsubscribe(){const{_parentSubscriber:y}=this;this._context=null,this._parentSubscriber=null,y.unsubscribe()}}},10399:(Ue,W,d)=>{"use strict";d.d(W,{y:()=>P});var n=d(34277),l=d(96305),p=d(50710);const _=(()=>{function O(S){return Error.call(this),this.message=S?`${S.length} errors occurred during unsubscription:\n${S.map((y,r)=>`${r+1}) ${y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=S,this}return O.prototype=Object.create(Error.prototype),O})();class P{constructor(S){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,S&&(this._ctorUnsubscribe=!0,this._unsubscribe=S)}unsubscribe(){let S;if(this.closed)return;let{_parentOrParents:y,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:a}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,y instanceof P)y.remove(this);else if(null!==y)for(let h=0;h<y.length;++h)y[h].remove(this);if((0,p.T)(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(h){S=h instanceof _?v(h.errors):[h]}}if((0,n.c)(a)){let h=-1,g=a.length;for(;++h<g;){const c=a[h];if((0,l.G)(c))try{c.unsubscribe()}catch(T){S=S||[],T instanceof _?S=S.concat(v(T.errors)):S.push(T)}}}if(S)throw new _(S)}add(S){let y=S;if(!S)return P.EMPTY;switch(typeof S){case"function":y=new P(S);case"object":if(y===this||y.closed||"function"!=typeof y.unsubscribe)return y;if(this.closed)return y.unsubscribe(),y;if(!(y instanceof P)){const a=y;y=new P,y._subscriptions=[a]}break;default:throw new Error("unrecognized teardown "+S+" added to Subscription.")}let{_parentOrParents:r}=y;if(null===r)y._parentOrParents=this;else if(r instanceof P){if(r===this)return y;y._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return y;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[y]:i.push(y),y}remove(S){const y=this._subscriptions;if(y){const r=y.indexOf(S);-1!==r&&y.splice(r,1)}}}var O;function v(O){return O.reduce((S,y)=>S.concat(y instanceof _?y.errors:y),[])}P.EMPTY=((O=new P).closed=!0,O)},71337:(Ue,W,d)=>{"use strict";d.d(W,{$:()=>l});let n=!1;const l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(p){if(p){const m=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+m.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=p},get useDeprecatedSynchronousErrorHandling(){return n}}},7583:(Ue,W,d)=>{"use strict";d.d(W,{gn:()=>P,tS:()=>O,zA:()=>m});var n=d(27721),l=d(17053),p=d(37233);class m extends n.v{constructor(y){super(),this.parent=y}_next(y){this.parent.notifyNext(y)}_error(y){this.parent.notifyError(y),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class P extends n.v{notifyNext(y){this.destination.next(y)}notifyError(y){this.destination.error(y)}notifyComplete(){this.destination.complete()}}function O(S,y){if(!y.closed)return S instanceof l.c?S.subscribe(y):(0,p.i)(S)(y)}},96090:(Ue,W,d)=>{"use strict";d.d(W,{G:()=>P,f:()=>v});var n=d(80583),l=d(17053),m=(d(27721),d(10399)),_=d(60837);class P extends l.c{constructor(i,a){super(),this.source=i,this.subjectFactory=a,this._refCount=0,this._isComplete=!1}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let i=this._connection;return i||(this._isComplete=!1,i=this._connection=new m.y,i.add(this.source.subscribe(new O(this.getSubject(),this))),i.closed&&(this._connection=null,i=m.y.EMPTY)),i}refCount(){return(0,_.B)()(this)}}const v=(()=>{const r=P.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}})();class O extends n.PJ{constructor(i,a){super(i),this.connectable=a}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const i=this.connectable;if(i){this.connectable=null;const a=i._connection;i._refCount=0,i._subject=null,i._connection=null,a&&a.unsubscribe()}}}},31315:(Ue,W,d)=>{"use strict";d.d(W,{zV:()=>v});var n=d(44897),l=d(34277),p=d(88134),m=d(1447),_=d(1724);const P={};function v(...y){let r,i;return(0,n.m)(y[y.length-1])&&(i=y.pop()),"function"==typeof y[y.length-1]&&(r=y.pop()),1===y.length&&(0,l.c)(y[0])&&(y=y[0]),(0,_.c)(y,i).lift(new O(r))}class O{constructor(r){this.resultSelector=r}call(r,i){return i.subscribe(new S(r,this.resultSelector))}}class S extends p.E{constructor(r,i){super(r),this.resultSelector=i,this.active=0,this.values=[],this.observables=[]}_next(r){this.values.push(P),this.observables.push(r)}_complete(){const r=this.observables,i=r.length;if(0===i)this.destination.complete();else{this.active=i,this.toRespond=i;for(let a=0;a<i;a++)this.add((0,m.F)(this,r[a],void 0,a))}}notifyComplete(r){0==(this.active-=1)&&this.destination.complete()}notifyNext(r,i,a){const h=this.values,c=this.toRespond?h[a]===P?--this.toRespond:this.toRespond:0;h[a]=i,0===c&&(this.resultSelector?this._tryResultSelector(h):this.destination.next(h.slice()))}_tryResultSelector(r){let i;try{i=this.resultSelector.apply(this,r)}catch(a){return void this.destination.error(a)}this.destination.next(i)}}},82e3:(Ue,W,d)=>{"use strict";d.d(W,{x:()=>m});var n=d(43848),l=d(40466);function m(..._){return function p(){return(0,l.U)(1)}()((0,n.of)(..._))}},63997:(Ue,W,d)=>{"use strict";d.d(W,{v:()=>m});var n=d(17053),l=d(19392),p=d(12532);function m(_){return new n.c(P=>{let v;try{v=_()}catch(S){return void P.error(S)}return(v?(0,l.H)(v):(0,p.I)()).subscribe(P)})}},12532:(Ue,W,d)=>{"use strict";d.d(W,{I:()=>p,w:()=>l});var n=d(17053);const l=new n.c(_=>_.complete());function p(_){return _?function m(_){return new n.c(P=>_.schedule(()=>P.complete()))}(_):l}},93181:(Ue,W,d)=>{"use strict";d.d(W,{p:()=>P});var n=d(17053),l=d(34277),p=d(83915),m=d(96305),_=d(19392);function P(...O){if(1===O.length){const S=O[0];if((0,l.c)(S))return v(S,null);if((0,m.G)(S)&&Object.getPrototypeOf(S)===Object.prototype){const y=Object.keys(S);return v(y.map(r=>S[r]),y)}}if("function"==typeof O[O.length-1]){const S=O.pop();return v(O=1===O.length&&(0,l.c)(O[0])?O[0]:O,null).pipe((0,p.T)(y=>S(...y)))}return v(O,null)}function v(O,S){return new n.c(y=>{const r=O.length;if(0===r)return void y.complete();const i=new Array(r);let a=0,h=0;for(let g=0;g<r;g++){const c=(0,_.H)(O[g]);let T=!1;y.add(c.subscribe({next:A=>{T||(T=!0,h++),i[g]=A},error:A=>y.error(A),complete:()=>{a++,(a===r||!T)&&(h===r&&y.next(S?S.reduce((A,L,x)=>(A[L]=i[x],A),{}):i),y.complete())}}))}})}},19392:(Ue,W,d)=>{"use strict";d.d(W,{H:()=>g});var n=d(17053),l=d(37233),p=d(10399),m=d(15587),v=d(57797),O=d(63320),r=d(48089),i=d(19730);function g(c,T){return T?function h(c,T){if(null!=c){if(function y(c){return c&&"function"==typeof c[m.s]}(c))return function _(c,T){return new n.c(A=>{const L=new p.y;return L.add(T.schedule(()=>{const x=c[m.s]();L.add(x.subscribe({next(V){L.add(T.schedule(()=>A.next(V)))},error(V){L.add(T.schedule(()=>A.error(V)))},complete(){L.add(T.schedule(()=>A.complete()))}}))})),L})}(c,T);if((0,r.y)(c))return function P(c,T){return new n.c(A=>{const L=new p.y;return L.add(T.schedule(()=>c.then(x=>{L.add(T.schedule(()=>{A.next(x),L.add(T.schedule(()=>A.complete()))}))},x=>{L.add(T.schedule(()=>A.error(x)))}))),L})}(c,T);if((0,i.X)(c))return(0,v.V)(c,T);if(function a(c){return c&&"function"==typeof c[O.lJ]}(c)||"string"==typeof c)return function S(c,T){if(!c)throw new Error("Iterable cannot be null");return new n.c(A=>{const L=new p.y;let x;return L.add(()=>{x&&"function"==typeof x.return&&x.return()}),L.add(T.schedule(()=>{x=c[O.lJ](),L.add(T.schedule(function(){if(A.closed)return;let V,D;try{const F=x.next();V=F.value,D=F.done}catch(F){return void A.error(F)}D?A.complete():(A.next(V),this.schedule())}))})),L})}(c,T)}throw new TypeError((null!==c&&typeof c||c)+" is not observable")}(c,T):c instanceof n.c?c:new n.c((0,l.i)(c))}},1724:(Ue,W,d)=>{"use strict";d.d(W,{c:()=>m});var n=d(17053),l=d(46936),p=d(57797);function m(_,P){return P?(0,p.V)(_,P):new n.c((0,l.v)(_))}},36877:(Ue,W,d)=>{"use strict";d.d(W,{R:()=>P});var n=d(17053),l=d(34277),p=d(50710),m=d(83915);function P(r,i,a,h){return(0,p.T)(a)&&(h=a,a=void 0),h?P(r,i,a).pipe((0,m.T)(g=>(0,l.c)(g)?h(...g):h(g))):new n.c(g=>{v(r,i,function c(T){g.next(arguments.length>1?Array.prototype.slice.call(arguments):T)},g,a)})}function v(r,i,a,h,g){let c;if(function y(r){return r&&"function"==typeof r.addEventListener&&"function"==typeof r.removeEventListener}(r)){const T=r;r.addEventListener(i,a,g),c=()=>T.removeEventListener(i,a,g)}else if(function S(r){return r&&"function"==typeof r.on&&"function"==typeof r.off}(r)){const T=r;r.on(i,a),c=()=>T.off(i,a)}else if(function O(r){return r&&"function"==typeof r.addListener&&"function"==typeof r.removeListener}(r)){const T=r;r.addListener(i,a),c=()=>T.removeListener(i,a)}else{if(!r||!r.length)throw new TypeError("Invalid event target");for(let T=0,A=r.length;T<A;T++)v(r[T],i,a,h,g)}h.add(c)}},56237:(Ue,W,d)=>{"use strict";d.d(W,{T:()=>p});var n=d(63997),l=d(12532);function p(m,_=l.w,P=l.w){return(0,n.v)(()=>m()?_:P)}},892:(Ue,W,d)=>{"use strict";d.d(W,{Y:()=>m});var n=d(17053),l=d(90093),p=d(37803);function m(P=0,v=l.b){return(!(0,p.k)(P)||P<0)&&(P=0),(!v||"function"!=typeof v.schedule)&&(v=l.b),new n.c(O=>(O.add(v.schedule(_,P,{subscriber:O,counter:0,period:P})),O))}function _(P){const{subscriber:v,counter:O,period:S}=P;v.next(O),this.schedule({subscriber:v,counter:O+1,period:S},S)}},16229:(Ue,W,d)=>{"use strict";d.d(W,{h:()=>_});var n=d(17053),l=d(44897),p=d(40466),m=d(1724);function _(...P){let v=Number.POSITIVE_INFINITY,O=null,S=P[P.length-1];return(0,l.m)(S)?(O=P.pop(),P.length>1&&"number"==typeof P[P.length-1]&&(v=P.pop())):"number"==typeof S&&(v=P.pop()),null===O&&1===P.length&&P[0]instanceof n.c?P[0]:(0,p.U)(v)((0,m.c)(P,O))}},27731:(Ue,W,d)=>{"use strict";d.d(W,{t:()=>p});var n=d(17053),l=d(36466);const p=new n.c(l.l)},43848:(Ue,W,d)=>{"use strict";d.d(W,{of:()=>m});var n=d(44897),l=d(1724),p=d(57797);function m(..._){let P=_[_.length-1];return(0,n.m)(P)?(_.pop(),(0,p.V)(_,P)):(0,l.c)(_)}},15652:(Ue,W,d)=>{"use strict";d.d(W,{O4:()=>_});var n=d(34277),l=d(1724),p=d(88134),m=d(1447);function _(...O){if(1===O.length){if(!(0,n.c)(O[0]))return O[0];O=O[0]}return(0,l.c)(O,void 0).lift(new P)}class P{call(S,y){return y.subscribe(new v(S))}}class v extends p.E{constructor(S){super(S),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(S){this.observables.push(S)}_complete(){const S=this.observables,y=S.length;if(0===y)this.destination.complete();else{for(let r=0;r<y&&!this.hasFirst;r++){const a=(0,m.F)(this,S[r],void 0,r);this.subscriptions&&this.subscriptions.push(a),this.add(a)}this.observables=null}}notifyNext(S,y,r){if(!this.hasFirst){this.hasFirst=!0;for(let i=0;i<this.subscriptions.length;i++)if(i!==r){let a=this.subscriptions[i];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(y)}}},59859:(Ue,W,d)=>{"use strict";d.d(W,{$:()=>l});var n=d(17053);function l(m,_){return new n.c(_?P=>_.schedule(p,0,{error:m,subscriber:P}):P=>P.error(m))}function p({error:m,subscriber:_}){_.error(m)}},3496:(Ue,W,d)=>{"use strict";d.d(W,{O:()=>_});var n=d(17053),l=d(90093),p=d(37803),m=d(44897);function _(v=0,O,S){let y=-1;return(0,p.k)(O)?y=Number(O)<1?1:Number(O):(0,m.m)(O)&&(S=O),(0,m.m)(S)||(S=l.b),new n.c(r=>{const i=(0,p.k)(v)?v:+v-S.now();return S.schedule(P,i,{index:0,period:y,subscriber:r})})}function P(v){const{index:O,period:S,subscriber:y}=v;if(y.next(O),!y.closed){if(-1===S)return y.complete();v.index=O+1,this.schedule(v,S)}}},35146:(Ue,W,d)=>{"use strict";d.d(W,{yU:()=>P});var n=d(1724),l=d(34277),p=d(27721),m=d(63320),_=d(7583);function P(...i){const a=i[i.length-1];return"function"==typeof a&&i.pop(),(0,n.c)(i,void 0).lift(new v(a))}class v{constructor(a){this.resultSelector=a}call(a,h){return h.subscribe(new O(a,this.resultSelector))}}class O extends p.v{constructor(a,h,g=Object.create(null)){super(a),this.resultSelector=h,this.iterators=[],this.active=0,this.resultSelector="function"==typeof h?h:void 0}_next(a){const h=this.iterators;(0,l.c)(a)?h.push(new y(a)):h.push("function"==typeof a[m.lJ]?new S(a[m.lJ]()):new r(this.destination,this,a))}_complete(){const a=this.iterators,h=a.length;if(this.unsubscribe(),0!==h){this.active=h;for(let g=0;g<h;g++){let c=a[g];c.stillUnsubscribed?this.destination.add(c.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const a=this.iterators,h=a.length,g=this.destination;for(let A=0;A<h;A++){let L=a[A];if("function"==typeof L.hasValue&&!L.hasValue())return}let c=!1;const T=[];for(let A=0;A<h;A++){let L=a[A],x=L.next();if(L.hasCompleted()&&(c=!0),x.done)return void g.complete();T.push(x.value)}this.resultSelector?this._tryresultSelector(T):g.next(T),c&&g.complete()}_tryresultSelector(a){let h;try{h=this.resultSelector.apply(this,a)}catch(g){return void this.destination.error(g)}this.destination.next(h)}}class S{constructor(a){this.iterator=a,this.nextResult=a.next()}hasValue(){return!0}next(){const a=this.nextResult;return this.nextResult=this.iterator.next(),a}hasCompleted(){const a=this.nextResult;return!(!a||!a.done)}}class y{constructor(a){this.array=a,this.index=0,this.length=0,this.length=a.length}[m.lJ](){return this}next(a){const h=this.index++;return h<this.length?{value:this.array[h],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class r extends _.gn{constructor(a,h,g){super(a),this.parent=h,this.observable=g,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[m.lJ](){return this}next(){const a=this.buffer;return 0===a.length&&this.isComplete?{value:null,done:!0}:{value:a.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(a){this.buffer.push(a),this.parent.checkIterators()}subscribe(){return(0,_.tS)(this.observable,new _.zA(this))}}},14714:(Ue,W,d)=>{"use strict";d.d(W,{W:()=>l});var n=d(7583);function l(_){return function(v){const O=new p(_),S=v.lift(O);return O.caught=S}}class p{constructor(P){this.selector=P}call(P,v){return v.subscribe(new m(P,this.selector,this.caught))}}class m extends n.gn{constructor(P,v,O){super(P),this.selector=v,this.caught=O}error(P){if(!this.isStopped){let v;try{v=this.selector(P,this.caught)}catch(y){return void super.error(y)}this._unsubscribeAndRecycle();const O=new n.zA(this);this.add(O);const S=(0,n.tS)(v,O);S!==O&&this.add(S)}}}},79539:(Ue,W,d)=>{"use strict";d.d(W,{H:()=>l});var n=d(75707);function l(p,m){return(0,n.ZZ)(p,m,1)}},62931:(Ue,W,d)=>{"use strict";d.d(W,{B:()=>p});var n=d(27721),l=d(90093);function p(v,O=l.b){return S=>S.lift(new m(v,O))}class m{constructor(O,S){this.dueTime=O,this.scheduler=S}call(O,S){return S.subscribe(new _(O,this.dueTime,this.scheduler))}}class _ extends n.v{constructor(O,S,y){super(O),this.dueTime=S,this.scheduler=y,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(O){this.clearDebounce(),this.lastValue=O,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:O}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(O)}}clearDebounce(){const O=this.debouncedSubscription;null!==O&&(this.remove(O),O.unsubscribe(),this.debouncedSubscription=null)}}function P(v){v.debouncedNext()}},67110:(Ue,W,d)=>{"use strict";d.d(W,{U:()=>l});var n=d(27721);function l(_=null){return P=>P.lift(new p(_))}class p{constructor(P){this.defaultValue=P}call(P,v){return v.subscribe(new m(P,this.defaultValue))}}class m extends n.v{constructor(P,v){super(P),this.defaultValue=v,this.isEmpty=!0}_next(P){this.isEmpty=!1,this.destination.next(P)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},65726:(Ue,W,d)=>{"use strict";d.d(W,{c:()=>_});var n=d(90093),l=d(29734),p=d(27721),m=d(75252);function _(S,y=n.b){const i=(0,l.$)(S)?+S-y.now():Math.abs(S);return a=>a.lift(new P(i,y))}class P{constructor(y,r){this.delay=y,this.scheduler=r}call(y,r){return r.subscribe(new v(y,this.delay,this.scheduler))}}class v extends p.v{constructor(y,r,i){super(y),this.delay=r,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(y){const r=y.source,i=r.queue,a=y.scheduler,h=y.destination;for(;i.length>0&&i[0].time-a.now()<=0;)i.shift().notification.observe(h);if(i.length>0){const g=Math.max(0,i[0].time-a.now());this.schedule(y,g)}else this.unsubscribe(),r.active=!1}_schedule(y){this.active=!0,this.destination.add(y.schedule(v.dispatch,this.delay,{source:this,destination:this.destination,scheduler:y}))}scheduleNotification(y){if(!0===this.errored)return;const r=this.scheduler,i=new O(r.now()+this.delay,y);this.queue.push(i),!1===this.active&&this._schedule(r)}_next(y){this.scheduleNotification(m.E.createNext(y))}_error(y){this.errored=!0,this.queue=[],this.destination.error(y),this.unsubscribe()}_complete(){this.scheduleNotification(m.E.createComplete()),this.unsubscribe()}}class O{constructor(y,r){this.time=y,this.notification=r}}},41346:(Ue,W,d)=>{"use strict";d.d(W,{o:()=>_});var n=d(27721),l=d(17053),p=d(88134),m=d(1447);function _(y,r){return r?i=>new O(i,r).lift(new P(y)):i=>i.lift(new P(y))}class P{constructor(r){this.delayDurationSelector=r}call(r,i){return i.subscribe(new v(r,this.delayDurationSelector))}}class v extends p.E{constructor(r,i){super(r),this.delayDurationSelector=i,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(r,i,a,h,g){this.destination.next(r),this.removeSubscription(g),this.tryComplete()}notifyError(r,i){this._error(r)}notifyComplete(r){const i=this.removeSubscription(r);i&&this.destination.next(i),this.tryComplete()}_next(r){const i=this.index++;try{const a=this.delayDurationSelector(r,i);a&&this.tryDelay(a,r)}catch(a){this.destination.error(a)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(r){r.unsubscribe();const i=this.delayNotifierSubscriptions.indexOf(r);return-1!==i&&this.delayNotifierSubscriptions.splice(i,1),r.outerValue}tryDelay(r,i){const a=(0,m.F)(this,r,i);a&&!a.closed&&(this.destination.add(a),this.delayNotifierSubscriptions.push(a))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class O extends l.c{constructor(r,i){super(),this.source=r,this.subscriptionDelay=i}_subscribe(r){this.subscriptionDelay.subscribe(new S(r,this.source))}}class S extends n.v{constructor(r,i){super(),this.parent=r,this.source=i,this.sourceSubscribed=!1}_next(r){this.subscribeToSource()}_error(r){this.unsubscribe(),this.parent.error(r)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}},53461:(Ue,W,d)=>{"use strict";d.d(W,{F:()=>l});var n=d(27721);function l(_,P){return v=>v.lift(new p(_,P))}class p{constructor(P,v){this.compare=P,this.keySelector=v}call(P,v){return v.subscribe(new m(P,this.compare,this.keySelector))}}class m extends n.v{constructor(P,v,O){super(P),this.keySelector=O,this.hasKey=!1,"function"==typeof v&&(this.compare=v)}compare(P,v){return P===v}_next(P){let v;try{const{keySelector:S}=this;v=S?S(P):P}catch(S){return this.destination.error(S)}let O=!1;if(this.hasKey)try{const{compare:S}=this;O=S(this.key,v)}catch(S){return this.destination.error(S)}else this.hasKey=!0;O||(this.key=v,this.destination.next(P))}}},8619:(Ue,W,d)=>{"use strict";d.d(W,{p:()=>l});var n=d(27721);function l(_,P){return function(O){return O.lift(new p(_,P))}}class p{constructor(P,v){this.predicate=P,this.thisArg=v}call(P,v){return v.subscribe(new m(P,this.predicate,this.thisArg))}}class m extends n.v{constructor(P,v,O){super(P),this.predicate=v,this.thisArg=O,this.count=0}_next(P){let v;try{v=this.predicate.call(this.thisArg,P,this.count++)}catch(O){return void this.destination.error(O)}v&&this.destination.next(P)}}},43615:(Ue,W,d)=>{"use strict";d.d(W,{j:()=>p});var n=d(27721),l=d(10399);function p(P){return v=>v.lift(new m(P))}class m{constructor(v){this.callback=v}call(v,O){return O.subscribe(new _(v,this.callback))}}class _ extends n.v{constructor(v,O){super(v),this.add(new l.y(O))}}},99047:(Ue,W,d)=>{"use strict";d.d(W,{$:()=>v});var n=d(64971),l=d(8619),p=d(65706),m=d(67110),_=d(56681),P=d(92932);function v(O,S){const y=arguments.length>=2;return r=>r.pipe(O?(0,l.p)((i,a)=>O(i,a,r)):P.D,(0,p.s)(1),y?(0,m.U)(S):(0,_.v)(()=>new n.G))}},25577:(Ue,W,d)=>{"use strict";d.d(W,{H:()=>v});var n=d(64971),l=d(8619),p=d(93702),m=d(56681),_=d(67110),P=d(92932);function v(O,S){const y=arguments.length>=2;return r=>r.pipe(O?(0,l.p)((i,a)=>O(i,a,r)):P.D,(0,p.o)(1),y?(0,_.U)(S):(0,m.v)(()=>new n.G))}},83915:(Ue,W,d)=>{"use strict";d.d(W,{T:()=>l});var n=d(27721);function l(_,P){return function(O){if("function"!=typeof _)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return O.lift(new p(_,P))}}class p{constructor(P,v){this.project=P,this.thisArg=v}call(P,v){return v.subscribe(new m(P,this.project,this.thisArg))}}class m extends n.v{constructor(P,v,O){super(P),this.project=v,this.count=0,this.thisArg=O||this}_next(P){let v;try{v=this.project.call(this.thisArg,P,this.count++)}catch(O){return void this.destination.error(O)}this.destination.next(v)}}},10174:(Ue,W,d)=>{"use strict";d.d(W,{u:()=>l});var n=d(27721);function l(_){return P=>P.lift(new p(_))}class p{constructor(P){this.value=P}call(P,v){return v.subscribe(new m(P,this.value))}}class m extends n.v{constructor(P,v){super(P),this.value=v}_next(P){this.destination.next(this.value)}}},40466:(Ue,W,d)=>{"use strict";d.d(W,{U:()=>p});var n=d(75707),l=d(92932);function p(m=Number.POSITIVE_INFINITY){return(0,n.ZZ)(l.D,m)}},75707:(Ue,W,d)=>{"use strict";d.d(W,{ZZ:()=>m});var n=d(83915),l=d(19392),p=d(7583);function m(O,S,y=Number.POSITIVE_INFINITY){return"function"==typeof S?r=>r.pipe(m((i,a)=>(0,l.H)(O(i,a)).pipe((0,n.T)((h,g)=>S(i,h,a,g))),y)):("number"==typeof S&&(y=S),r=>r.lift(new _(O,y)))}class _{constructor(S,y=Number.POSITIVE_INFINITY){this.project=S,this.concurrent=y}call(S,y){return y.subscribe(new P(S,this.project,this.concurrent))}}class P extends p.gn{constructor(S,y,r=Number.POSITIVE_INFINITY){super(S),this.project=y,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(S){this.active<this.concurrent?this._tryNext(S):this.buffer.push(S)}_tryNext(S){let y;const r=this.index++;try{y=this.project(S,r)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(y)}_innerSub(S){const y=new p.zA(this),r=this.destination;r.add(y);const i=(0,p.tS)(S,y);i!==y&&r.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(S){this.destination.next(S)}notifyComplete(){const S=this.buffer;this.active--,S.length>0?this._next(S.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},14749:(Ue,W,d)=>{"use strict";d.d(W,{J:()=>l});var n=d(27721);function l(){return _=>_.lift(new p)}class p{call(P,v){return v.subscribe(new m(P))}}class m extends n.v{constructor(P){super(P),this.hasPrev=!1}_next(P){let v;this.hasPrev?v=[this.prev,P]:this.hasPrev=!0,this.prev=P,v&&this.destination.next(v)}}},60837:(Ue,W,d)=>{"use strict";d.d(W,{B:()=>l});var n=d(27721);function l(){return function(P){return P.lift(new p(P))}}class p{constructor(P){this.connectable=P}call(P,v){const{connectable:O}=this;O._refCount++;const S=new m(P,O),y=v.subscribe(S);return S.closed||(S.connection=O.connect()),y}}class m extends n.v{constructor(P,v){super(P),this.connectable=v}_unsubscribe(){const{connectable:P}=this;if(!P)return void(this.connection=null);this.connectable=null;const v=P._refCount;if(v<=0)return void(this.connection=null);if(P._refCount=v-1,v>1)return void(this.connection=null);const{connection:O}=this,S=P._connection;this.connection=null,S&&(!O||S===O)&&S.unsubscribe()}}},86447:(Ue,W,d)=>{"use strict";d.d(W,{l:()=>p});var n=d(80583),l=d(7583);function p(P){return v=>v.lift(new m(P,v))}class m{constructor(v,O){this.notifier=v,this.source=O}call(v,O){return O.subscribe(new _(v,this.notifier,this.source))}}class _ extends l.gn{constructor(v,O,S){super(v),this.notifier=O,this.source=S}error(v){if(!this.isStopped){let O=this.errors,S=this.retries,y=this.retriesSubscription;if(S)this.errors=void 0,this.retriesSubscription=void 0;else{O=new n.B7;try{const{notifier:r}=this;S=r(O)}catch(r){return super.error(r)}y=(0,l.tS)(S,new l.zA(this))}this._unsubscribeAndRecycle(),this.errors=O,this.retries=S,this.retriesSubscription=y,O.next(v)}}_unsubscribe(){const{errors:v,retriesSubscription:O}=this;v&&(v.unsubscribe(),this.errors=void 0),O&&(O.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:v}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=v,this.source.subscribe(this)}}},18612:(Ue,W,d)=>{"use strict";d.d(W,{S:()=>l});var n=d(27721);function l(_,P){let v=!1;return arguments.length>=2&&(v=!0),function(S){return S.lift(new p(_,P,v))}}class p{constructor(P,v,O=!1){this.accumulator=P,this.seed=v,this.hasSeed=O}call(P,v){return v.subscribe(new m(P,this.accumulator,this.seed,this.hasSeed))}}class m extends n.v{constructor(P,v,O,S){super(P),this.accumulator=v,this._seed=O,this.hasSeed=S,this.index=0}get seed(){return this._seed}set seed(P){this.hasSeed=!0,this._seed=P}_next(P){if(this.hasSeed)return this._tryNext(P);this.seed=P,this.destination.next(P)}_tryNext(P){const v=this.index++;let O;try{O=this.accumulator(this.seed,P,v)}catch(S){this.destination.error(S)}this.seed=O,this.destination.next(O)}}},8282:(Ue,W,d)=>{"use strict";d.d(W,{u:()=>v});var n=d(96090);class p{constructor(S,y){this.subjectFactory=S,this.selector=y}call(S,y){const{selector:r}=this,i=this.subjectFactory(),a=r(i).subscribe(S);return a.add(y.subscribe(i)),a}}var m=d(60837),_=d(80583);function P(){return new _.B7}function v(){return O=>(0,m.B)()(function l(O,S){return function(r){let i;if(i="function"==typeof O?O:function(){return O},"function"==typeof S)return r.lift(new p(i,S));const a=Object.create(r,n.f);return a.source=r,a.subjectFactory=i,a}}(P)(O))}},55833:(Ue,W,d)=>{"use strict";d.d(W,{t:()=>l});var n=d(57258);function l(m,_,P){let v;return v=m&&"object"==typeof m?m:{bufferSize:m,windowTime:_,refCount:!1,scheduler:P},O=>O.lift(function p({bufferSize:m=Number.POSITIVE_INFINITY,windowTime:_=Number.POSITIVE_INFINITY,refCount:P,scheduler:v}){let O,y,S=0,r=!1,i=!1;return function(h){let g;S++,!O||r?(r=!1,O=new n.m(m,_,v),g=O.subscribe(this),y=h.subscribe({next(c){O.next(c)},error(c){r=!0,O.error(c)},complete(){i=!0,y=void 0,O.complete()}})):g=O.subscribe(this),this.add(()=>{S--,g.unsubscribe(),y&&!i&&P&&0===S&&(y.unsubscribe(),y=void 0,O=void 0)})}}(v))}},36666:(Ue,W,d)=>{"use strict";d.d(W,{i:()=>l});var n=d(27721);function l(_){return P=>P.lift(new p(_))}class p{constructor(P){this.total=P}call(P,v){return v.subscribe(new m(P,this.total))}}class m extends n.v{constructor(P,v){super(P),this.total=v,this.count=0}_next(P){++this.count>this.total&&this.destination.next(P)}}},28653:(Ue,W,d)=>{"use strict";d.d(W,{j:()=>l});var n=d(27721);function l(_){return P=>P.lift(new p(_))}class p{constructor(P){this.predicate=P}call(P,v){return v.subscribe(new m(P,this.predicate))}}class m extends n.v{constructor(P,v){super(P),this.predicate=v,this.skipping=!0,this.index=0}_next(P){const v=this.destination;this.skipping&&this.tryCallPredicate(P),this.skipping||v.next(P)}tryCallPredicate(P){try{const v=this.predicate(P,this.index++);this.skipping=!!v}catch(v){this.destination.error(v)}}}},34593:(Ue,W,d)=>{"use strict";d.d(W,{Z:()=>p});var n=d(82e3),l=d(44897);function p(...m){const _=m[m.length-1];return(0,l.m)(_)?(m.pop(),P=>(0,n.x)(m,P,_)):P=>(0,n.x)(m,P)}},72147:(Ue,W,d)=>{"use strict";d.d(W,{n:()=>m});var n=d(83915),l=d(19392),p=d(7583);function m(v,O){return"function"==typeof O?S=>S.pipe(m((y,r)=>(0,l.H)(v(y,r)).pipe((0,n.T)((i,a)=>O(y,i,r,a))))):S=>S.lift(new _(v))}class _{constructor(O){this.project=O}call(O,S){return S.subscribe(new P(O,this.project))}}class P extends p.gn{constructor(O,S){super(O),this.project=S,this.index=0}_next(O){let S;const y=this.index++;try{S=this.project(O,y)}catch(r){return void this.destination.error(r)}this._innerSub(S)}_innerSub(O){const S=this.innerSubscription;S&&S.unsubscribe();const y=new p.zA(this),r=this.destination;r.add(y),this.innerSubscription=(0,p.tS)(O,y),this.innerSubscription!==y&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:O}=this;(!O||O.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(O){this.destination.next(O)}}},65706:(Ue,W,d)=>{"use strict";d.d(W,{s:()=>m});var n=d(27721),l=d(86133),p=d(12532);function m(v){return O=>0===v?(0,p.I)():O.lift(new _(v))}class _{constructor(O){if(this.total=O,this.total<0)throw new l.k}call(O,S){return S.subscribe(new P(O,this.total))}}class P extends n.v{constructor(O,S){super(O),this.total=S,this.count=0}_next(O){const S=this.total,y=++this.count;y<=S&&(this.destination.next(O),y===S&&(this.destination.complete(),this.unsubscribe()))}}},93702:(Ue,W,d)=>{"use strict";d.d(W,{o:()=>m});var n=d(27721),l=d(86133),p=d(12532);function m(v){return function(S){return 0===v?(0,p.I)():S.lift(new _(v))}}class _{constructor(O){if(this.total=O,this.total<0)throw new l.k}call(O,S){return S.subscribe(new P(O,this.total))}}class P extends n.v{constructor(O,S){super(O),this.total=S,this.ring=new Array,this.count=0}_next(O){const S=this.ring,y=this.total,r=this.count++;S.length<y?S.push(O):S[r%y]=O}_complete(){const O=this.destination;let S=this.count;if(S>0){const y=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<y;i++){const a=S++%y;O.next(r[a])}}O.complete()}}},4208:(Ue,W,d)=>{"use strict";d.d(W,{Q:()=>l});var n=d(7583);function l(_){return P=>P.lift(new p(_))}class p{constructor(P){this.notifier=P}call(P,v){const O=new m(P),S=(0,n.tS)(this.notifier,new n.zA(O));return S&&!O.seenValue?(O.add(S),v.subscribe(O)):O}}class m extends n.gn{constructor(P){super(P),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},48765:(Ue,W,d)=>{"use strict";d.d(W,{v:()=>l});var n=d(27721);function l(_,P=!1){return v=>v.lift(new p(_,P))}class p{constructor(P,v){this.predicate=P,this.inclusive=v}call(P,v){return v.subscribe(new m(P,this.predicate,this.inclusive))}}class m extends n.v{constructor(P,v,O){super(P),this.predicate=v,this.inclusive=O,this.index=0}_next(P){const v=this.destination;let O;try{O=this.predicate(P,this.index++)}catch(S){return void v.error(S)}this.nextOrComplete(P,O)}nextOrComplete(P,v){const O=this.destination;v?O.next(P):(this.inclusive&&O.next(P),O.complete())}}},91384:(Ue,W,d)=>{"use strict";d.d(W,{M:()=>m});var n=d(27721),l=d(36466),p=d(50710);function m(v,O,S){return function(r){return r.lift(new _(v,O,S))}}class _{constructor(O,S,y){this.nextOrObserver=O,this.error=S,this.complete=y}call(O,S){return S.subscribe(new P(O,this.nextOrObserver,this.error,this.complete))}}class P extends n.v{constructor(O,S,y,r){super(O),this._tapNext=l.l,this._tapError=l.l,this._tapComplete=l.l,this._tapError=y||l.l,this._tapComplete=r||l.l,(0,p.T)(S)?(this._context=this,this._tapNext=S):S&&(this._context=S,this._tapNext=S.next||l.l,this._tapError=S.error||l.l,this._tapComplete=S.complete||l.l)}_next(O){try{this._tapNext.call(this._context,O)}catch(S){return void this.destination.error(S)}this.destination.next(O)}_error(O){try{this._tapError.call(this._context,O)}catch(S){return void this.destination.error(S)}this.destination.error(O)}_complete(){try{this._tapComplete.call(this._context)}catch(O){return void this.destination.error(O)}return this.destination.complete()}}},43780:(Ue,W,d)=>{"use strict";d.d(W,{c:()=>O});var n=d(27721),l=d(90093);d(7583);const m={leading:!0,trailing:!1};function O(i,a=l.b,h=m){return g=>g.lift(new S(i,a,h.leading,h.trailing))}class S{constructor(a,h,g,c){this.duration=a,this.scheduler=h,this.leading=g,this.trailing=c}call(a,h){return h.subscribe(new y(a,this.duration,this.scheduler,this.leading,this.trailing))}}class y extends n.v{constructor(a,h,g,c,T){super(a),this.duration=h,this.scheduler=g,this.leading=c,this.trailing=T,this._hasTrailingValue=!1,this._trailingValue=null}_next(a){this.throttled?this.trailing&&(this._trailingValue=a,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(r,this.duration,{subscriber:this})),this.leading?this.destination.next(a):this.trailing&&(this._trailingValue=a,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const a=this.throttled;a&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),a.unsubscribe(),this.remove(a),this.throttled=null)}}function r(i){const{subscriber:a}=i;a.clearThrottle()}},56681:(Ue,W,d)=>{"use strict";d.d(W,{v:()=>p});var n=d(64971),l=d(27721);function p(v=P){return O=>O.lift(new m(v))}class m{constructor(O){this.errorFactory=O}call(O,S){return S.subscribe(new _(O,this.errorFactory))}}class _ extends l.v{constructor(O,S){super(O),this.errorFactory=S,this.hasValue=!1}_next(O){this.hasValue=!0,this.destination.next(O)}_complete(){if(this.hasValue)return this.destination.complete();{let O;try{O=this.errorFactory()}catch(S){O=S}this.destination.error(O)}}}function P(){return new n.G}},40198:(Ue,W,d)=>{"use strict";d.d(W,{w:()=>_});var n=d(90093),l=d(99021),p=d(12962),m=d(59859);function _(P,v=n.b){return(0,p.o)(P,(0,m.$)(new l.M),v)}},12962:(Ue,W,d)=>{"use strict";d.d(W,{o:()=>m});var n=d(90093),l=d(29734),p=d(7583);function m(v,O,S=n.b){return y=>{let r=(0,l.$)(v),i=r?+v-S.now():Math.abs(v);return y.lift(new _(i,r,O,S))}}class _{constructor(O,S,y,r){this.waitFor=O,this.absoluteTimeout=S,this.withObservable=y,this.scheduler=r}call(O,S){return S.subscribe(new P(O,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class P extends p.gn{constructor(O,S,y,r,i){super(O),this.absoluteTimeout=S,this.waitFor=y,this.withObservable=r,this.scheduler=i,this.scheduleTimeout()}static dispatchTimeout(O){const{withObservable:S}=O;O._unsubscribeAndRecycle(),O.add((0,p.tS)(S,new p.zA(O)))}scheduleTimeout(){const{action:O}=this;O?this.action=O.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(P.dispatchTimeout,this.waitFor,this))}_next(O){this.absoluteTimeout||this.scheduleTimeout(),super._next(O)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}},25590:(Ue,W,d)=>{"use strict";d.d(W,{E:()=>p});var n=d(88134),l=d(1447);function p(...P){return v=>{let O;return"function"==typeof P[P.length-1]&&(O=P.pop()),v.lift(new m(P,O))}}class m{constructor(v,O){this.observables=v,this.project=O}call(v,O){return O.subscribe(new _(v,this.observables,this.project))}}class _ extends n.E{constructor(v,O,S){super(v),this.observables=O,this.project=S,this.toRespond=[];const y=O.length;this.values=new Array(y);for(let r=0;r<y;r++)this.toRespond.push(r);for(let r=0;r<y;r++)this.add((0,l.F)(this,O[r],void 0,r))}notifyNext(v,O,S){this.values[S]=O;const y=this.toRespond;if(y.length>0){const r=y.indexOf(S);-1!==r&&y.splice(r,1)}}notifyComplete(){}_next(v){if(0===this.toRespond.length){const O=[v,...this.values];this.project?this._tryProject(O):this.destination.next(O)}}_tryProject(v){let O;try{O=this.project.apply(this,v)}catch(S){return void this.destination.error(S)}this.destination.next(O)}}},57797:(Ue,W,d)=>{"use strict";d.d(W,{V:()=>p});var n=d(17053),l=d(10399);function p(m,_){return new n.c(P=>{const v=new l.y;let O=0;return v.add(_.schedule(function(){O!==m.length?(P.next(m[O++]),P.closed||v.add(this.schedule())):P.complete()})),v})}},86369:(Ue,W,d)=>{"use strict";d.d(W,{R:()=>p});var n=d(10399);class l extends n.y{constructor(_,P){super()}schedule(_,P=0){return this}}class p extends l{constructor(_,P){super(_,P),this.scheduler=_,this.work=P,this.pending=!1}schedule(_,P=0){if(this.closed)return this;this.state=_;const v=this.id,O=this.scheduler;return null!=v&&(this.id=this.recycleAsyncId(O,v,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(O,this.id,P),this}requestAsyncId(_,P,v=0){return setInterval(_.flush.bind(_,this),v)}recycleAsyncId(_,P,v=0){if(null!==v&&this.delay===v&&!1===this.pending)return P;clearInterval(P)}execute(_,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const v=this._execute(_,P);if(v)return v;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(_,P){let O,v=!1;try{this.work(_)}catch(S){v=!0,O=!!S&&S||new Error(S)}if(v)return this.unsubscribe(),O}_unsubscribe(){const _=this.id,P=this.scheduler,v=P.actions,O=v.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==O&&v.splice(O,1),null!=_&&(this.id=this.recycleAsyncId(P,_,null)),this.delay=null}}},4065:(Ue,W,d)=>{"use strict";d.d(W,{q:()=>l});let n=(()=>{class p{constructor(_,P=p.now){this.SchedulerAction=_,this.now=P}schedule(_,P=0,v){return new this.SchedulerAction(this,_).schedule(v,P)}}return p.now=()=>Date.now(),p})();class l extends n{constructor(m,_=n.now){super(m,()=>l.delegate&&l.delegate!==this?l.delegate.now():_()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(m,_=0,P){return l.delegate&&l.delegate!==this?l.delegate.schedule(m,_,P):super.schedule(m,_,P)}flush(m){const{actions:_}=this;if(this.active)return void _.push(m);let P;this.active=!0;do{if(P=m.execute(m.state,m.delay))break}while(m=_.shift());if(this.active=!1,P){for(;m=_.shift();)m.unsubscribe();throw P}}}},27594:(Ue,W,d)=>{"use strict";d.d(W,{X:()=>_});var n=d(86369),p=d(4065);const _=new class m extends p.q{flush(O){this.active=!0,this.scheduled=void 0;const{actions:S}=this;let y,r=-1,i=S.length;O=O||S.shift();do{if(y=O.execute(O.state,O.delay))break}while(++r<i&&(O=S.shift()));if(this.active=!1,y){for(;++r<i&&(O=S.shift());)O.unsubscribe();throw y}}}(class l extends n.R{constructor(O,S){super(O,S),this.scheduler=O,this.work=S}requestAsyncId(O,S,y=0){return null!==y&&y>0?super.requestAsyncId(O,S,y):(O.actions.push(this),O.scheduled||(O.scheduled=requestAnimationFrame(()=>O.flush(null))))}recycleAsyncId(O,S,y=0){if(null!==y&&y>0||null===y&&this.delay>0)return super.recycleAsyncId(O,S,y);0===O.actions.length&&(cancelAnimationFrame(S),O.scheduled=void 0)}})},62366:(Ue,W,d)=>{"use strict";d.d(W,{$:()=>r});let n=1;const l=Promise.resolve(),p={};function m(a){return a in p&&(delete p[a],!0)}const _={setImmediate(a){const h=n++;return p[h]=!0,l.then(()=>m(h)&&a()),h},clearImmediate(a){m(a)}};var v=d(86369),S=d(4065);const r=new class y extends S.q{flush(h){this.active=!0,this.scheduled=void 0;const{actions:g}=this;let c,T=-1,A=g.length;h=h||g.shift();do{if(c=h.execute(h.state,h.delay))break}while(++T<A&&(h=g.shift()));if(this.active=!1,c){for(;++T<A&&(h=g.shift());)h.unsubscribe();throw c}}}(class O extends v.R{constructor(h,g){super(h,g),this.scheduler=h,this.work=g}requestAsyncId(h,g,c=0){return null!==c&&c>0?super.requestAsyncId(h,g,c):(h.actions.push(this),h.scheduled||(h.scheduled=_.setImmediate(h.flush.bind(h,null))))}recycleAsyncId(h,g,c=0){if(null!==c&&c>0||null===c&&this.delay>0)return super.recycleAsyncId(h,g,c);0===h.actions.length&&(_.clearImmediate(g),h.scheduled=void 0)}})},90093:(Ue,W,d)=>{"use strict";d.d(W,{b:()=>m});var n=d(86369);const m=new(d(4065).q)(n.R)},63320:(Ue,W,d)=>{"use strict";d.d(W,{lJ:()=>l});const l=function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},15587:(Ue,W,d)=>{"use strict";d.d(W,{s:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},73302:(Ue,W,d)=>{"use strict";d.d(W,{D:()=>n});const n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},86133:(Ue,W,d)=>{"use strict";d.d(W,{k:()=>l});const l=(()=>{function p(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return p.prototype=Object.create(Error.prototype),p})()},64971:(Ue,W,d)=>{"use strict";d.d(W,{G:()=>l});const l=(()=>{function p(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return p.prototype=Object.create(Error.prototype),p})()},38058:(Ue,W,d)=>{"use strict";d.d(W,{P:()=>l});const l=(()=>{function p(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return p.prototype=Object.create(Error.prototype),p})()},99021:(Ue,W,d)=>{"use strict";d.d(W,{M:()=>l});const l=(()=>{function p(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return p.prototype=Object.create(Error.prototype),p})()},81498:(Ue,W,d)=>{"use strict";function n(l){setTimeout(()=>{throw l},0)}d.d(W,{T:()=>n})},92932:(Ue,W,d)=>{"use strict";function n(l){return l}d.d(W,{D:()=>n})},34277:(Ue,W,d)=>{"use strict";d.d(W,{c:()=>n});const n=Array.isArray||(l=>l&&"number"==typeof l.length)},19730:(Ue,W,d)=>{"use strict";d.d(W,{X:()=>n});const n=l=>l&&"number"==typeof l.length&&"function"!=typeof l},29734:(Ue,W,d)=>{"use strict";function n(l){return l instanceof Date&&!isNaN(+l)}d.d(W,{$:()=>n})},50710:(Ue,W,d)=>{"use strict";function n(l){return"function"==typeof l}d.d(W,{T:()=>n})},37803:(Ue,W,d)=>{"use strict";d.d(W,{k:()=>l});var n=d(34277);function l(p){return!(0,n.c)(p)&&p-parseFloat(p)+1>=0}},96305:(Ue,W,d)=>{"use strict";function n(l){return null!==l&&"object"==typeof l}d.d(W,{G:()=>n})},39595:(Ue,W,d)=>{"use strict";d.d(W,{A:()=>l});var n=d(17053);function l(p){return!!p&&(p instanceof n.c||"function"==typeof p.lift&&"function"==typeof p.subscribe)}},48089:(Ue,W,d)=>{"use strict";function n(l){return!!l&&"function"!=typeof l.subscribe&&"function"==typeof l.then}d.d(W,{y:()=>n})},44897:(Ue,W,d)=>{"use strict";function n(l){return l&&"function"==typeof l.schedule}d.d(W,{m:()=>n})},36466:(Ue,W,d)=>{"use strict";function n(){}d.d(W,{l:()=>n})},97462:(Ue,W,d)=>{"use strict";d.d(W,{F:()=>l,m:()=>p});var n=d(92932);function l(...m){return p(m)}function p(m){return 0===m.length?n.D:1===m.length?m[0]:function(P){return m.reduce((v,O)=>O(v),P)}}},37233:(Ue,W,d)=>{"use strict";d.d(W,{i:()=>r});var n=d(46936),l=d(81498),m=d(63320),P=d(15587),O=d(19730),S=d(48089),y=d(96305);const r=i=>{if(i&&"function"==typeof i[P.s])return(i=>a=>{const h=i[P.s]();if("function"!=typeof h.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return h.subscribe(a)})(i);if((0,O.X)(i))return(0,n.v)(i);if((0,S.y)(i))return(i=>a=>(i.then(h=>{a.closed||(a.next(h),a.complete())},h=>a.error(h)).then(null,l.T),a))(i);if(i&&"function"==typeof i[m.lJ])return(i=>a=>{const h=i[m.lJ]();for(;;){let g;try{g=h.next()}catch(c){return a.error(c),a}if(g.done){a.complete();break}if(a.next(g.value),a.closed)break}return"function"==typeof h.return&&a.add(()=>{h.return&&h.return()}),a})(i);{const h=`You provided ${(0,y.G)(i)?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(h)}}},46936:(Ue,W,d)=>{"use strict";d.d(W,{v:()=>n});const n=l=>p=>{for(let m=0,_=l.length;m<_&&!p.closed;m++)p.next(l[m]);p.complete()}},1447:(Ue,W,d)=>{"use strict";d.d(W,{F:()=>_});var n=d(27721);class l extends n.v{constructor(v,O,S){super(),this.parent=v,this.outerValue=O,this.outerIndex=S,this.index=0}_next(v){this.parent.notifyNext(this.outerValue,v,this.outerIndex,this.index++,this)}_error(v){this.parent.notifyError(v,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var p=d(37233),m=d(17053);function _(P,v,O,S,y=new l(P,O,S)){if(!y.closed)return v instanceof m.c?v.subscribe(y):(0,p.i)(v)(y)}},35358:(Ue,W,d)=>{var n={"./af":39165,"./af.js":39165,"./ar":69041,"./ar-dz":15572,"./ar-dz.js":15572,"./ar-kw":75032,"./ar-kw.js":75032,"./ar-ly":6501,"./ar-ly.js":6501,"./ar-ma":67844,"./ar-ma.js":67844,"./ar-sa":76694,"./ar-sa.js":76694,"./ar-tn":35944,"./ar-tn.js":35944,"./ar.js":69041,"./az":68873,"./az.js":68873,"./be":61219,"./be.js":61219,"./bg":86533,"./bg.js":86533,"./bm":78347,"./bm.js":78347,"./bn":71246,"./bn-bd":1817,"./bn-bd.js":1817,"./bn.js":71246,"./bo":20557,"./bo.js":20557,"./br":37418,"./br.js":37418,"./bs":7673,"./bs.js":7673,"./ca":51862,"./ca.js":51862,"./cs":9980,"./cs.js":9980,"./cv":57479,"./cv.js":57479,"./cy":17998,"./cy.js":17998,"./da":57045,"./da.js":57045,"./de":34297,"./de-at":66627,"./de-at.js":66627,"./de-ch":5061,"./de-ch.js":5061,"./de.js":34297,"./dv":87024,"./dv.js":87024,"./el":45231,"./el.js":45231,"./en-au":22452,"./en-au.js":22452,"./en-ca":98374,"./en-ca.js":98374,"./en-gb":92119,"./en-gb.js":92119,"./en-ie":83964,"./en-ie.js":83964,"./en-il":15979,"./en-il.js":15979,"./en-in":75469,"./en-in.js":75469,"./en-nz":61518,"./en-nz.js":61518,"./en-sg":34752,"./en-sg.js":34752,"./eo":47746,"./eo.js":47746,"./es":34294,"./es-do":38554,"./es-do.js":38554,"./es-mx":12254,"./es-mx.js":12254,"./es-us":62267,"./es-us.js":62267,"./es.js":34294,"./et":27511,"./et.js":27511,"./eu":86208,"./eu.js":86208,"./fa":25675,"./fa.js":25675,"./fi":8547,"./fi.js":8547,"./fil":79839,"./fil.js":79839,"./fo":35721,"./fo.js":35721,"./fr":22270,"./fr-ca":85207,"./fr-ca.js":85207,"./fr-ch":75688,"./fr-ch.js":75688,"./fr.js":22270,"./fy":38963,"./fy.js":38963,"./ga":77050,"./ga.js":77050,"./gd":28837,"./gd.js":28837,"./gl":74253,"./gl.js":74253,"./gom-deva":25008,"./gom-deva.js":25008,"./gom-latn":80523,"./gom-latn.js":80523,"./gu":98454,"./gu.js":98454,"./he":34117,"./he.js":34117,"./hi":66737,"./hi.js":66737,"./hr":3136,"./hr.js":3136,"./hu":3637,"./hu.js":3637,"./hy-am":48204,"./hy-am.js":48204,"./id":51795,"./id.js":51795,"./is":17690,"./is.js":17690,"./it":21379,"./it-ch":69127,"./it-ch.js":69127,"./it.js":21379,"./ja":48319,"./ja.js":48319,"./jv":30830,"./jv.js":30830,"./ka":25806,"./ka.js":25806,"./kk":95004,"./kk.js":95004,"./km":96250,"./km.js":96250,"./kn":99975,"./kn.js":99975,"./ko":75824,"./ko.js":75824,"./ku":94482,"./ku.js":94482,"./ky":36886,"./ky.js":36886,"./lb":98340,"./lb.js":98340,"./lo":36391,"./lo.js":36391,"./lt":29842,"./lt.js":29842,"./lv":19432,"./lv.js":19432,"./me":49832,"./me.js":49832,"./mi":82124,"./mi.js":82124,"./mk":77526,"./mk.js":77526,"./ml":87095,"./ml.js":87095,"./mn":63737,"./mn.js":63737,"./mr":76621,"./mr.js":76621,"./ms":43662,"./ms-my":49749,"./ms-my.js":49749,"./ms.js":43662,"./mt":4815,"./mt.js":4815,"./my":35644,"./my.js":35644,"./nb":73926,"./nb.js":73926,"./ne":93607,"./ne.js":93607,"./nl":46232,"./nl-be":54316,"./nl-be.js":54316,"./nl.js":46232,"./nn":41634,"./nn.js":41634,"./oc-lnc":93118,"./oc-lnc.js":93118,"./pa-in":98557,"./pa-in.js":98557,"./pl":37110,"./pl.js":37110,"./pt":68558,"./pt-br":95875,"./pt-br.js":95875,"./pt.js":68558,"./ro":63741,"./ro.js":63741,"./ru":16803,"./ru.js":16803,"./sd":81481,"./sd.js":81481,"./se":68954,"./se.js":68954,"./si":21806,"./si.js":21806,"./sk":57924,"./sk.js":57924,"./sl":4945,"./sl.js":4945,"./sq":6710,"./sq.js":6710,"./sr":60531,"./sr-cyrl":80574,"./sr-cyrl.js":80574,"./sr.js":60531,"./ss":60268,"./ss.js":60268,"./sv":65239,"./sv.js":65239,"./sw":75520,"./sw.js":75520,"./ta":42373,"./ta.js":42373,"./te":26409,"./te.js":26409,"./tet":39353,"./tet.js":39353,"./tg":82919,"./tg.js":82919,"./th":50382,"./th.js":50382,"./tk":11,"./tk.js":11,"./tl-ph":78171,"./tl-ph.js":78171,"./tlh":64720,"./tlh.js":64720,"./tr":5196,"./tr.js":5196,"./tzl":36026,"./tzl.js":36026,"./tzm":91081,"./tzm-latn":79995,"./tzm-latn.js":79995,"./tzm.js":91081,"./ug-cn":94546,"./ug-cn.js":94546,"./uk":43358,"./uk.js":43358,"./ur":72773,"./ur.js":72773,"./uz":23149,"./uz-latn":66999,"./uz-latn.js":66999,"./uz.js":23149,"./vi":66419,"./vi.js":66419,"./x-pseudo":19943,"./x-pseudo.js":19943,"./yo":142,"./yo.js":142,"./zh-cn":12076,"./zh-cn.js":12076,"./zh-hk":8556,"./zh-hk.js":8556,"./zh-mo":88257,"./zh-mo.js":88257,"./zh-tw":57068,"./zh-tw.js":57068};function l(m){var _=p(m);return d(_)}function p(m){if(!d.o(n,m)){var _=new Error("Cannot find module '"+m+"'");throw _.code="MODULE_NOT_FOUND",_}return n[m]}l.keys=function(){return Object.keys(n)},l.resolve=p,Ue.exports=l,l.id=35358},91903:()=>{},24394:()=>{},8536:Ue=>{function W(n,l,p,m,_,P,v){try{var O=n[P](v),S=O.value}catch(y){return void p(y)}O.done?l(S):Promise.resolve(S).then(m,_)}Ue.exports=function d(n){return function(){var l=this,p=arguments;return new Promise(function(m,_){var P=n.apply(l,p);function v(S){W(P,m,_,v,O,"next",S)}function O(S){W(P,m,_,v,O,"throw",S)}v(void 0)})}},Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports},70650:(Ue,W,d)=>{"use strict";function n(p,m,_,P,v,O,S){try{var y=p[O](S),r=y.value}catch(i){return void _(i)}y.done?m(r):Promise.resolve(r).then(P,v)}function l(p){return function(){var m=this,_=arguments;return new Promise(function(P,v){var O=p.apply(m,_);function S(r){n(O,P,v,S,y,"next",r)}function y(r){n(O,P,v,S,y,"throw",r)}S(void 0)})}}d.d(W,{A:()=>l})},40262:(Ue,W,d)=>{"use strict";d.d(W,{FX:()=>Y,If:()=>p,K2:()=>O,MA:()=>h,Os:()=>v,P:()=>c,S6:()=>A,hZ:()=>_,i0:()=>P,iF:()=>S,kY:()=>i,kp:()=>m,sf:()=>R,ui:()=>G,wk:()=>y});var n=d(61142),l=d(58527),p=function(K){return K[K.State=0]="State",K[K.Transition=1]="Transition",K[K.Sequence=2]="Sequence",K[K.Group=3]="Group",K[K.Animate=4]="Animate",K[K.Keyframes=5]="Keyframes",K[K.Style=6]="Style",K[K.Trigger=7]="Trigger",K[K.Reference=8]="Reference",K[K.AnimateChild=9]="AnimateChild",K[K.AnimateRef=10]="AnimateRef",K[K.Query=11]="Query",K[K.Stagger=12]="Stagger",K}(p||{});const m="*";function _(K,$){return{type:p.Trigger,name:K,definitions:$,options:{}}}function P(K,$=null){return{type:p.Animate,styles:$,timings:K}}function v(K,$=null){return{type:p.Group,steps:K,options:$}}function O(K,$=null){return{type:p.Sequence,steps:K,options:$}}function S(K){return{type:p.Style,styles:K,offset:null}}function y(K,$,ee){return{type:p.State,name:K,styles:$,options:ee}}function i(K,$,ee=null){return{type:p.Transition,expr:K,animation:$,options:ee}}function h(K=null){return{type:p.AnimateChild,options:K}}function c(K,$,ee=null){return{type:p.Query,selector:K,animation:$,options:ee}}let A=(()=>{var K;class ${}return(K=$).\u0275fac=function(J){return new(J||K)},K.\u0275prov=l.jDH({token:K,factory:()=>(0,l.WQX)(x),providedIn:"root"}),$})();class L{}let x=(()=>{var K;class $ extends A{constructor(J,z){if(super(),this.animationModuleType=(0,l.WQX)(l.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=J.createRenderer(z.body,{id:"0",encapsulation:l.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function k(K){const $=K.\u0275type;return 0===$||1===$}(this._renderer))throw new l.wOt(3600,!1)}build(J){const z=this._nextAnimationId;this._nextAnimationId++;const te=Array.isArray(J)?O(J):J;return F(this._renderer,null,z,"register",[te]),new V(z,this._renderer)}}return(K=$).\u0275fac=function(J){return new(J||K)(l.KVO(l._9s),l.KVO(n.qQ))},K.\u0275prov=l.jDH({token:K,factory:K.\u0275fac,providedIn:"root"}),$})();class V extends L{constructor($,ee){super(),this._id=$,this._renderer=ee}create($,ee){return new D(this._id,$,ee||{},this._renderer)}}class D{constructor($,ee,J,z){this.id=$,this.element=ee,this._renderer=z,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",J)}_listen($,ee){return this._renderer.listen(this.element,`@@${this.id}:${$}`,ee)}_command($,...ee){F(this._renderer,this.element,this.id,$,ee)}onDone($){this._listen("done",$)}onStart($){this._listen("start",$)}onDestroy($){this._listen("destroy",$)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition($){this._command("setPosition",$)}getPosition(){return function I(K){const $=K.\u0275type;return 0===$?K:1===$?K.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function F(K,$,ee,J,z){K.setProperty($,`@@${ee}:${J}`,z)}class R{constructor($=0,ee=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=$+ee}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}onStart($){this._originalOnStartFns.push($),this._onStartFns.push($)}onDone($){this._originalOnDoneFns.push($),this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach($=>$()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition($){this._position=this.totalTime?$*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback($){const ee="start"==$?this._onStartFns:this._onDoneFns;ee.forEach(J=>J()),ee.length=0}}class G{constructor($){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=$;let ee=0,J=0,z=0;const te=this.players.length;0==te?queueMicrotask(()=>this._onFinish()):this.players.forEach(X=>{X.onDone(()=>{++ee==te&&this._onFinish()}),X.onDestroy(()=>{++J==te&&this._onDestroy()}),X.onStart(()=>{++z==te&&this._onStart()})}),this.totalTime=this.players.reduce((X,re)=>Math.max(X,re.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}init(){this.players.forEach($=>$.init())}onStart($){this._onStartFns.push($)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach($=>$()),this._onStartFns=[])}onDone($){this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach($=>$.play())}pause(){this.players.forEach($=>$.pause())}restart(){this.players.forEach($=>$.restart())}finish(){this._onFinish(),this.players.forEach($=>$.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach($=>$.destroy()),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this.players.forEach($=>$.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition($){const ee=$*this.totalTime;this.players.forEach(J=>{const z=J.totalTime?Math.min(1,ee/J.totalTime):1;J.setPosition(z)})}getPosition(){const $=this.players.reduce((ee,J)=>null===ee||J.totalTime>ee.totalTime?J:ee,null);return null!=$?$.getPosition():0}beforeDestroy(){this.players.forEach($=>{$.beforeDestroy&&$.beforeDestroy()})}triggerCallback($){const ee="start"==$?this._onStartFns:this._onDoneFns;ee.forEach(J=>J()),ee.length=0}}const Y="!"},31308:(Ue,W,d)=>{"use strict";d.d(W,{Ae:()=>D,Ai:()=>mn,Au:()=>J,Bu:()=>z,FN:()=>fn,GX:()=>ke,Pd:()=>ai,Q_:()=>rn,Z7:()=>X,_G:()=>qt,kB:()=>De,px:()=>V,vR:()=>dt,vr:()=>Y,w6:()=>ye});var n=d(61142),l=d(58527),p=d(72653),m=d(80583),_=d(10399),P=d(26513),v=d(43848),O=d(25373),S=d(91384),y=d(62931),r=d(8619),i=d(83915),a=d(65706),h=d(36666),g=d(53461),c=d(4208),T=d(6364),A=d(26321),L=d(76706);const x=" ";function V(ri,Ne,zt){const vt=F(ri,Ne);vt.some(Ct=>Ct.trim()==zt.trim())||(vt.push(zt.trim()),ri.setAttribute(Ne,vt.join(x)))}function D(ri,Ne,zt){const Ct=F(ri,Ne).filter(it=>it!=zt.trim());Ct.length?ri.setAttribute(Ne,Ct.join(x)):ri.removeAttribute(Ne)}function F(ri,Ne){return(ri.getAttribute(Ne)||"").match(/\S+/g)||[]}const k="cdk-describedby-message",R="cdk-describedby-host";let G=0,Y=(()=>{var ri;class Ne{constructor(vt,Ct){this._platform=Ct,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+G++,this._document=vt,this._id=(0,l.WQX)(l.sZ2)+"-"+G++}describe(vt,Ct,it){if(!this._canBeDescribed(vt,Ct))return;const Ut=K(Ct,it);"string"!=typeof Ct?($(Ct,this._id),this._messageRegistry.set(Ut,{messageElement:Ct,referenceCount:0})):this._messageRegistry.has(Ut)||this._createMessageElement(Ct,it),this._isElementDescribedByMessage(vt,Ut)||this._addMessageReference(vt,Ut)}removeDescription(vt,Ct,it){if(!Ct||!this._isElementNode(vt))return;const Ut=K(Ct,it);if(this._isElementDescribedByMessage(vt,Ut)&&this._removeMessageReference(vt,Ut),"string"==typeof Ct){const jn=this._messageRegistry.get(Ut);jn&&0===jn.referenceCount&&this._deleteMessageElement(Ut)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const vt=this._document.querySelectorAll(`[${R}="${this._id}"]`);for(let Ct=0;Ct<vt.length;Ct++)this._removeCdkDescribedByReferenceIds(vt[Ct]),vt[Ct].removeAttribute(R);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(vt,Ct){const it=this._document.createElement("div");$(it,this._id),it.textContent=vt,Ct&&it.setAttribute("role",Ct),this._createMessagesContainer(),this._messagesContainer.appendChild(it),this._messageRegistry.set(K(vt,Ct),{messageElement:it,referenceCount:0})}_deleteMessageElement(vt){this._messageRegistry.get(vt)?.messageElement?.remove(),this._messageRegistry.delete(vt)}_createMessagesContainer(){if(this._messagesContainer)return;const vt="cdk-describedby-message-container",Ct=this._document.querySelectorAll(`.${vt}[platform="server"]`);for(let Ut=0;Ut<Ct.length;Ut++)Ct[Ut].remove();const it=this._document.createElement("div");it.style.visibility="hidden",it.classList.add(vt),it.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&it.setAttribute("platform","server"),this._document.body.appendChild(it),this._messagesContainer=it}_removeCdkDescribedByReferenceIds(vt){const Ct=F(vt,"aria-describedby").filter(it=>0!=it.indexOf(k));vt.setAttribute("aria-describedby",Ct.join(" "))}_addMessageReference(vt,Ct){const it=this._messageRegistry.get(Ct);V(vt,"aria-describedby",it.messageElement.id),vt.setAttribute(R,this._id),it.referenceCount++}_removeMessageReference(vt,Ct){const it=this._messageRegistry.get(Ct);it.referenceCount--,D(vt,"aria-describedby",it.messageElement.id),vt.removeAttribute(R)}_isElementDescribedByMessage(vt,Ct){const it=F(vt,"aria-describedby"),Ut=this._messageRegistry.get(Ct),jn=Ut&&Ut.messageElement.id;return!!jn&&-1!=it.indexOf(jn)}_canBeDescribed(vt,Ct){if(!this._isElementNode(vt))return!1;if(Ct&&"object"==typeof Ct)return!0;const it=null==Ct?"":`${Ct}`.trim(),Ut=vt.getAttribute("aria-label");return!(!it||Ut&&Ut.trim()===it)}_isElementNode(vt){return vt.nodeType===this._document.ELEMENT_NODE}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.KVO(n.qQ),l.KVO(p.OD))},ri.\u0275prov=l.jDH({token:ri,factory:ri.\u0275fac,providedIn:"root"}),Ne})();function K(ri,Ne){return"string"==typeof ri?`${Ne||""}/${ri}`:ri}function $(ri,Ne){ri.id||(ri.id=`${k}-${Ne}-${G++}`)}class ee{constructor(Ne){this._items=Ne,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new m.B7,this._typeaheadSubscription=_.y.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=zt=>zt.disabled,this._pressedLetters=[],this.tabOut=new m.B7,this.change=new m.B7,Ne instanceof l.rOR&&(this._itemChangesSubscription=Ne.changes.subscribe(zt=>{if(this._activeItem){const Ct=zt.toArray().indexOf(this._activeItem);Ct>-1&&Ct!==this._activeItemIndex&&(this._activeItemIndex=Ct)}}))}skipPredicate(Ne){return this._skipPredicateFn=Ne,this}withWrap(Ne=!0){return this._wrap=Ne,this}withVerticalOrientation(Ne=!0){return this._vertical=Ne,this}withHorizontalOrientation(Ne){return this._horizontal=Ne,this}withAllowedModifierKeys(Ne){return this._allowedModifierKeys=Ne,this}withTypeAhead(Ne=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.M)(zt=>this._pressedLetters.push(zt)),(0,y.B)(Ne),(0,r.p)(()=>this._pressedLetters.length>0),(0,i.T)(()=>this._pressedLetters.join(""))).subscribe(zt=>{const vt=this._getItemsArray();for(let Ct=1;Ct<vt.length+1;Ct++){const it=(this._activeItemIndex+Ct)%vt.length,Ut=vt[it];if(!this._skipPredicateFn(Ut)&&0===Ut.getLabel().toUpperCase().trim().indexOf(zt)){this.setActiveItem(it);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(Ne=!0){return this._homeAndEnd=Ne,this}withPageUpDown(Ne=!0,zt=10){return this._pageUpAndDown={enabled:Ne,delta:zt},this}setActiveItem(Ne){const zt=this._activeItem;this.updateActiveItem(Ne),this._activeItem!==zt&&this.change.next(this._activeItemIndex)}onKeydown(Ne){const zt=Ne.keyCode,Ct=["altKey","ctrlKey","metaKey","shiftKey"].every(it=>!Ne[it]||this._allowedModifierKeys.indexOf(it)>-1);switch(zt){case O.wn:return void this.tabOut.next();case O.n6:if(this._vertical&&Ct){this.setNextItemActive();break}return;case O.i7:if(this._vertical&&Ct){this.setPreviousItemActive();break}return;case O.LE:if(this._horizontal&&Ct){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case O.UQ:if(this._horizontal&&Ct){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case O.yZ:if(this._homeAndEnd&&Ct){this.setFirstItemActive();break}return;case O.Kp:if(this._homeAndEnd&&Ct){this.setLastItemActive();break}return;case O.w_:if(this._pageUpAndDown.enabled&&Ct){const it=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(it>0?it:0,1);break}return;case O.dB:if(this._pageUpAndDown.enabled&&Ct){const it=this._activeItemIndex+this._pageUpAndDown.delta,Ut=this._getItemsArray().length;this._setActiveItemByIndex(it<Ut?it:Ut-1,-1);break}return;default:return void((Ct||(0,O.rp)(Ne,"shiftKey"))&&(Ne.key&&1===Ne.key.length?this._letterKeyStream.next(Ne.key.toLocaleUpperCase()):(zt>=O.A&&zt<=O.Z||zt>=O.f2&&zt<=O.bn)&&this._letterKeyStream.next(String.fromCharCode(zt))))}this._pressedLetters=[],Ne.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ne){const zt=this._getItemsArray(),vt="number"==typeof Ne?Ne:zt.indexOf(Ne);this._activeItem=zt[vt]??null,this._activeItemIndex=vt}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Ne){this._wrap?this._setActiveInWrapMode(Ne):this._setActiveInDefaultMode(Ne)}_setActiveInWrapMode(Ne){const zt=this._getItemsArray();for(let vt=1;vt<=zt.length;vt++){const Ct=(this._activeItemIndex+Ne*vt+zt.length)%zt.length;if(!this._skipPredicateFn(zt[Ct]))return void this.setActiveItem(Ct)}}_setActiveInDefaultMode(Ne){this._setActiveItemByIndex(this._activeItemIndex+Ne,Ne)}_setActiveItemByIndex(Ne,zt){const vt=this._getItemsArray();if(vt[Ne]){for(;this._skipPredicateFn(vt[Ne]);)if(!vt[Ne+=zt])return;this.setActiveItem(Ne)}}_getItemsArray(){return this._items instanceof l.rOR?this._items.toArray():this._items}}class J extends ee{setActiveItem(Ne){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ne),this.activeItem&&this.activeItem.setActiveStyles()}}class z extends ee{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ne){return this._origin=Ne,this}setActiveItem(Ne){super.setActiveItem(Ne),this.activeItem&&this.activeItem.focus(this._origin)}}let X=(()=>{var ri;class Ne{constructor(vt){this._platform=vt}isDisabled(vt){return vt.hasAttribute("disabled")}isVisible(vt){return function ge(ri){return!!(ri.offsetWidth||ri.offsetHeight||"function"==typeof ri.getClientRects&&ri.getClientRects().length)}(vt)&&"visible"===getComputedStyle(vt).visibility}isTabbable(vt){if(!this._platform.isBrowser)return!1;const Ct=function re(ri){try{return ri.frameElement}catch{return null}}(function pe(ri){return ri.ownerDocument&&ri.ownerDocument.defaultView||window}(vt));if(Ct&&(-1===Z(Ct)||!this.isVisible(Ct)))return!1;let it=vt.nodeName.toLowerCase(),Ut=Z(vt);return vt.hasAttribute("contenteditable")?-1!==Ut:!("iframe"===it||"object"===it||this._platform.WEBKIT&&this._platform.IOS&&!function de(ri){let Ne=ri.nodeName.toLowerCase(),zt="input"===Ne&&ri.type;return"text"===zt||"password"===zt||"select"===Ne||"textarea"===Ne}(vt))&&("audio"===it?!!vt.hasAttribute("controls")&&-1!==Ut:"video"===it?-1!==Ut&&(null!==Ut||this._platform.FIREFOX||vt.hasAttribute("controls")):vt.tabIndex>=0)}isFocusable(vt,Ct){return function ae(ri){return!function xe(ri){return function N(ri){return"input"==ri.nodeName.toLowerCase()}(ri)&&"hidden"==ri.type}(ri)&&(function oe(ri){let Ne=ri.nodeName.toLowerCase();return"input"===Ne||"select"===Ne||"button"===Ne||"textarea"===Ne}(ri)||function ue(ri){return function se(ri){return"a"==ri.nodeName.toLowerCase()}(ri)&&ri.hasAttribute("href")}(ri)||ri.hasAttribute("contenteditable")||ce(ri))}(vt)&&!this.isDisabled(vt)&&(Ct?.ignoreVisibility||this.isVisible(vt))}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.KVO(p.OD))},ri.\u0275prov=l.jDH({token:ri,factory:ri.\u0275fac,providedIn:"root"}),Ne})();function ce(ri){if(!ri.hasAttribute("tabindex")||void 0===ri.tabIndex)return!1;let Ne=ri.getAttribute("tabindex");return!(!Ne||isNaN(parseInt(Ne,10)))}function Z(ri){if(!ce(ri))return null;const Ne=parseInt(ri.getAttribute("tabindex")||"",10);return isNaN(Ne)?-1:Ne}class _e{get enabled(){return this._enabled}set enabled(Ne){this._enabled=Ne,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ne,this._startAnchor),this._toggleAnchorTabIndex(Ne,this._endAnchor))}constructor(Ne,zt,vt,Ct,it=!1){this._element=Ne,this._checker=zt,this._ngZone=vt,this._document=Ct,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,it||this.attachAnchors()}destroy(){const Ne=this._startAnchor,zt=this._endAnchor;Ne&&(Ne.removeEventListener("focus",this.startAnchorListener),Ne.remove()),zt&&(zt.removeEventListener("focus",this.endAnchorListener),zt.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Ne){return new Promise(zt=>{this._executeOnStable(()=>zt(this.focusInitialElement(Ne)))})}focusFirstTabbableElementWhenReady(Ne){return new Promise(zt=>{this._executeOnStable(()=>zt(this.focusFirstTabbableElement(Ne)))})}focusLastTabbableElementWhenReady(Ne){return new Promise(zt=>{this._executeOnStable(()=>zt(this.focusLastTabbableElement(Ne)))})}_getRegionBoundary(Ne){const zt=this._element.querySelectorAll(`[cdk-focus-region-${Ne}], [cdkFocusRegion${Ne}], [cdk-focus-${Ne}]`);return"start"==Ne?zt.length?zt[0]:this._getFirstTabbableElement(this._element):zt.length?zt[zt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ne){const zt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(zt){if(!this._checker.isFocusable(zt)){const vt=this._getFirstTabbableElement(zt);return vt?.focus(Ne),!!vt}return zt.focus(Ne),!0}return this.focusFirstTabbableElement(Ne)}focusFirstTabbableElement(Ne){const zt=this._getRegionBoundary("start");return zt&&zt.focus(Ne),!!zt}focusLastTabbableElement(Ne){const zt=this._getRegionBoundary("end");return zt&&zt.focus(Ne),!!zt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ne){if(this._checker.isFocusable(Ne)&&this._checker.isTabbable(Ne))return Ne;const zt=Ne.children;for(let vt=0;vt<zt.length;vt++){const Ct=zt[vt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(zt[vt]):null;if(Ct)return Ct}return null}_getLastTabbableElement(Ne){if(this._checker.isFocusable(Ne)&&this._checker.isTabbable(Ne))return Ne;const zt=Ne.children;for(let vt=zt.length-1;vt>=0;vt--){const Ct=zt[vt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(zt[vt]):null;if(Ct)return Ct}return null}_createAnchor(){const Ne=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ne),Ne.classList.add("cdk-visually-hidden"),Ne.classList.add("cdk-focus-trap-anchor"),Ne.setAttribute("aria-hidden","true"),Ne}_toggleAnchorTabIndex(Ne,zt){Ne?zt.setAttribute("tabindex","0"):zt.removeAttribute("tabindex")}toggleAnchors(Ne){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ne,this._startAnchor),this._toggleAnchorTabIndex(Ne,this._endAnchor))}_executeOnStable(Ne){this._ngZone.isStable?Ne():this._ngZone.onStable.pipe((0,a.s)(1)).subscribe(Ne)}}let ke=(()=>{var ri;class Ne{constructor(vt,Ct,it){this._checker=vt,this._ngZone=Ct,this._document=it}create(vt,Ct=!1){return new _e(vt,this._checker,this._ngZone,this._document,Ct)}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.KVO(X),l.KVO(l.SKi),l.KVO(n.qQ))},ri.\u0275prov=l.jDH({token:ri,factory:ri.\u0275fac,providedIn:"root"}),Ne})(),De=(()=>{var ri;class Ne{get enabled(){return this.focusTrap.enabled}set enabled(vt){this.focusTrap.enabled=(0,T.he)(vt)}get autoCapture(){return this._autoCapture}set autoCapture(vt){this._autoCapture=(0,T.he)(vt)}constructor(vt,Ct,it){this._elementRef=vt,this._focusTrapFactory=Ct,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(vt){const Ct=vt.autoCapture;Ct&&!Ct.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,p.vc)(),this.focusTrap.focusInitialElementWhenReady()}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.rXU(l.aKT),l.rXU(ke),l.rXU(n.qQ))},ri.\u0275dir=l.FsC({type:ri,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[l.Mj6.None,"cdkTrapFocus","enabled"],autoCapture:[l.Mj6.None,"cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[l.OA$]}),Ne})();function qt(ri){return 0===ri.buttons||0===ri.detail}function ye(ri){const Ne=ri.touches&&ri.touches[0]||ri.changedTouches&&ri.changedTouches[0];return!(!Ne||-1!==Ne.identifier||null!=Ne.radiusX&&1!==Ne.radiusX||null!=Ne.radiusY&&1!==Ne.radiusY)}const Re=new l.nKC("cdk-input-modality-detector-options"),Ze={ignoreKeys:[O.A$,O.W3,O.eg,O.Ge,O.FX]},xt=(0,p.BQ)({passive:!0,capture:!0});let un=(()=>{var ri;class Ne{get mostRecentModality(){return this._modality.value}constructor(vt,Ct,it,Ut){this._platform=vt,this._mostRecentTarget=null,this._modality=new P.t(null),this._lastTouchMs=0,this._onKeydown=jn=>{this._options?.ignoreKeys?.some(wn=>wn===jn.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,p.Fb)(jn))},this._onMousedown=jn=>{Date.now()-this._lastTouchMs<650||(this._modality.next(qt(jn)?"keyboard":"mouse"),this._mostRecentTarget=(0,p.Fb)(jn))},this._onTouchstart=jn=>{ye(jn)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,p.Fb)(jn))},this._options={...Ze,...Ut},this.modalityDetected=this._modality.pipe((0,h.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.F)()),vt.isBrowser&&Ct.runOutsideAngular(()=>{it.addEventListener("keydown",this._onKeydown,xt),it.addEventListener("mousedown",this._onMousedown,xt),it.addEventListener("touchstart",this._onTouchstart,xt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,xt),document.removeEventListener("mousedown",this._onMousedown,xt),document.removeEventListener("touchstart",this._onTouchstart,xt))}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.KVO(p.OD),l.KVO(l.SKi),l.KVO(n.qQ),l.KVO(Re,8))},ri.\u0275prov=l.jDH({token:ri,factory:ri.\u0275fac,providedIn:"root"}),Ne})();const ct=new l.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Gt(){return null}}),pn=new l.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let st=0,mn=(()=>{var ri;class Ne{constructor(vt,Ct,it,Ut){this._ngZone=Ct,this._defaultOptions=Ut,this._document=it,this._liveElement=vt||this._createLiveElement()}announce(vt,...Ct){const it=this._defaultOptions;let Ut,jn;return 1===Ct.length&&"number"==typeof Ct[0]?jn=Ct[0]:[Ut,jn]=Ct,this.clear(),clearTimeout(this._previousTimeout),Ut||(Ut=it&&it.politeness?it.politeness:"polite"),null==jn&&it&&(jn=it.duration),this._liveElement.setAttribute("aria-live",Ut),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(wn=>this._currentResolve=wn)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=vt,"number"==typeof jn&&(this._previousTimeout=setTimeout(()=>this.clear(),jn)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const vt="cdk-live-announcer-element",Ct=this._document.getElementsByClassName(vt),it=this._document.createElement("div");for(let Ut=0;Ut<Ct.length;Ut++)Ct[Ut].remove();return it.classList.add(vt),it.classList.add("cdk-visually-hidden"),it.setAttribute("aria-atomic","true"),it.setAttribute("aria-live","polite"),it.id="cdk-live-announcer-"+st++,this._document.body.appendChild(it),it}_exposeAnnouncerToModals(vt){const Ct=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let it=0;it<Ct.length;it++){const Ut=Ct[it],jn=Ut.getAttribute("aria-owns");jn?-1===jn.indexOf(vt)&&Ut.setAttribute("aria-owns",jn+" "+vt):Ut.setAttribute("aria-owns",vt)}}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.KVO(ct,8),l.KVO(l.SKi),l.KVO(n.qQ),l.KVO(pn,8))},ri.\u0275prov=l.jDH({token:ri,factory:ri.\u0275fac,providedIn:"root"}),Ne})();const En=new l.nKC("cdk-focus-monitor-default-options"),Cn=(0,p.BQ)({passive:!0,capture:!0});let fn=(()=>{var ri;class Ne{constructor(vt,Ct,it,Ut,jn){this._ngZone=vt,this._platform=Ct,this._inputModalityDetector=it,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new m.B7,this._rootNodeFocusAndBlurListener=wn=>{for(let on=(0,p.Fb)(wn);on;on=on.parentElement)"focus"===wn.type?this._onFocus(wn,on):this._onBlur(wn,on)},this._document=Ut,this._detectionMode=jn?.detectionMode||0}monitor(vt,Ct=!1){const it=(0,T.i8)(vt);if(!this._platform.isBrowser||1!==it.nodeType)return(0,v.of)();const Ut=(0,p.KT)(it)||this._getDocument(),jn=this._elementInfo.get(it);if(jn)return Ct&&(jn.checkChildren=!0),jn.subject;const wn={checkChildren:Ct,subject:new m.B7,rootNode:Ut};return this._elementInfo.set(it,wn),this._registerGlobalListeners(wn),wn.subject}stopMonitoring(vt){const Ct=(0,T.i8)(vt),it=this._elementInfo.get(Ct);it&&(it.subject.complete(),this._setClasses(Ct),this._elementInfo.delete(Ct),this._removeGlobalListeners(it))}focusVia(vt,Ct,it){const Ut=(0,T.i8)(vt);Ut===this._getDocument().activeElement?this._getClosestElementsInfo(Ut).forEach(([wn,nt])=>this._originChanged(wn,Ct,nt)):(this._setOrigin(Ct),"function"==typeof Ut.focus&&Ut.focus(it))}ngOnDestroy(){this._elementInfo.forEach((vt,Ct)=>this.stopMonitoring(Ct))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(vt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(vt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:vt&&this._isLastInteractionFromInputLabel(vt)?"mouse":"program"}_shouldBeAttributedToTouch(vt){return 1===this._detectionMode||!!vt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(vt,Ct){vt.classList.toggle("cdk-focused",!!Ct),vt.classList.toggle("cdk-touch-focused","touch"===Ct),vt.classList.toggle("cdk-keyboard-focused","keyboard"===Ct),vt.classList.toggle("cdk-mouse-focused","mouse"===Ct),vt.classList.toggle("cdk-program-focused","program"===Ct)}_setOrigin(vt,Ct=!1){this._ngZone.runOutsideAngular(()=>{this._origin=vt,this._originFromTouchInteraction="touch"===vt&&Ct,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(vt,Ct){const it=this._elementInfo.get(Ct),Ut=(0,p.Fb)(vt);!it||!it.checkChildren&&Ct!==Ut||this._originChanged(Ct,this._getFocusOrigin(Ut),it)}_onBlur(vt,Ct){const it=this._elementInfo.get(Ct);!it||it.checkChildren&&vt.relatedTarget instanceof Node&&Ct.contains(vt.relatedTarget)||(this._setClasses(Ct),this._emitOrigin(it,null))}_emitOrigin(vt,Ct){vt.subject.observers.length&&this._ngZone.run(()=>vt.subject.next(Ct))}_registerGlobalListeners(vt){if(!this._platform.isBrowser)return;const Ct=vt.rootNode,it=this._rootNodeFocusListenerCount.get(Ct)||0;it||this._ngZone.runOutsideAngular(()=>{Ct.addEventListener("focus",this._rootNodeFocusAndBlurListener,Cn),Ct.addEventListener("blur",this._rootNodeFocusAndBlurListener,Cn)}),this._rootNodeFocusListenerCount.set(Ct,it+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,c.Q)(this._stopInputModalityDetector)).subscribe(Ut=>{this._setOrigin(Ut,!0)}))}_removeGlobalListeners(vt){const Ct=vt.rootNode;if(this._rootNodeFocusListenerCount.has(Ct)){const it=this._rootNodeFocusListenerCount.get(Ct);it>1?this._rootNodeFocusListenerCount.set(Ct,it-1):(Ct.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Cn),Ct.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Cn),this._rootNodeFocusListenerCount.delete(Ct))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(vt,Ct,it){this._setClasses(vt,Ct),this._emitOrigin(it,Ct),this._lastFocusOrigin=Ct}_getClosestElementsInfo(vt){const Ct=[];return this._elementInfo.forEach((it,Ut)=>{(Ut===vt||it.checkChildren&&Ut.contains(vt))&&Ct.push([Ut,it])}),Ct}_isLastInteractionFromInputLabel(vt){const{_mostRecentTarget:Ct,mostRecentModality:it}=this._inputModalityDetector;if("mouse"!==it||!Ct||Ct===vt||"INPUT"!==vt.nodeName&&"TEXTAREA"!==vt.nodeName||vt.disabled)return!1;const Ut=vt.labels;if(Ut)for(let jn=0;jn<Ut.length;jn++)if(Ut[jn].contains(Ct))return!0;return!1}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.KVO(l.SKi),l.KVO(p.OD),l.KVO(un),l.KVO(n.qQ,8),l.KVO(En,8))},ri.\u0275prov=l.jDH({token:ri,factory:ri.\u0275fac,providedIn:"root"}),Ne})(),dt=(()=>{var ri;class Ne{constructor(vt,Ct){this._elementRef=vt,this._focusMonitor=Ct,this._focusOrigin=null,this.cdkFocusChange=new l.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const vt=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(vt,1===vt.nodeType&&vt.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ct=>{this._focusOrigin=Ct,this.cdkFocusChange.emit(Ct)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.rXU(l.aKT),l.rXU(fn))},ri.\u0275dir=l.FsC({type:ri,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),Ne})();const nn="cdk-high-contrast-black-on-white",yn="cdk-high-contrast-white-on-black",Xn="cdk-high-contrast-active";let rn=(()=>{var ri;class Ne{constructor(vt,Ct){this._platform=vt,this._document=Ct,this._breakpointSubscription=(0,l.WQX)(L.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const vt=this._document.createElement("div");vt.style.backgroundColor="rgb(1,2,3)",vt.style.position="absolute",this._document.body.appendChild(vt);const Ct=this._document.defaultView||window,it=Ct&&Ct.getComputedStyle?Ct.getComputedStyle(vt):null,Ut=(it&&it.backgroundColor||"").replace(/ /g,"");switch(vt.remove(),Ut){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const vt=this._document.body.classList;vt.remove(Xn,nn,yn),this._hasCheckedHighContrastMode=!0;const Ct=this.getHighContrastMode();1===Ct?vt.add(Xn,nn):2===Ct&&vt.add(Xn,yn)}}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.KVO(p.OD),l.KVO(n.qQ))},ri.\u0275prov=l.jDH({token:ri,factory:ri.\u0275fac,providedIn:"root"}),Ne})(),ai=(()=>{var ri;class Ne{constructor(vt){vt._applyBodyHighContrastModeCssClasses()}}return(ri=Ne).\u0275fac=function(vt){return new(vt||ri)(l.KVO(rn))},ri.\u0275mod=l.$C({type:ri}),ri.\u0275inj=l.G2t({imports:[A.w5]}),Ne})()},51394:(Ue,W,d)=>{"use strict";d.d(W,{dS:()=>v,ig:()=>O,jI:()=>S});var n=d(58527),l=d(61142);const p=new n.nKC("cdk-dir-doc",{providedIn:"root",factory:function m(){return(0,n.WQX)(l.qQ)}}),_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function P(y){const r=y?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?_.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}let v=(()=>{var y;class r{constructor(a){this.value="ltr",this.change=new n.bkB,a&&(this.value=P((a.body?a.body.dir:null)||(a.documentElement?a.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(y=r).\u0275fac=function(a){return new(a||y)(n.KVO(p,8))},y.\u0275prov=n.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),r})(),O=(()=>{var y;class r{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new n.bkB}get dir(){return this._dir}set dir(a){const h=this._dir;this._dir=P(a),this._rawDir=a,h!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return(y=r).\u0275fac=function(a){return new(a||y)},y.\u0275dir=n.FsC({type:y,selectors:[["","dir",""]],hostVars:1,hostBindings:function(a,h){2&a&&n.BMQ("dir",h._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[n.Jv_([{provide:v,useExisting:y}])]}),r})(),S=(()=>{var y;class r{}return(y=r).\u0275fac=function(a){return new(a||y)},y.\u0275mod=n.$C({type:y}),y.\u0275inj=n.G2t({}),r})()},6364:(Ue,W,d)=>{"use strict";d.d(W,{FG:()=>_,OE:()=>p,a1:()=>P,he:()=>l,i8:()=>v});var n=d(58527);function l(S){return null!=S&&"false"!=`${S}`}function p(S,y=0){return function m(S){return!isNaN(parseFloat(S))&&!isNaN(Number(S))}(S)?Number(S):y}function _(S){return Array.isArray(S)?S:[S]}function P(S){return null==S?"":"string"==typeof S?S:`${S}px`}function v(S){return S instanceof n.aKT?S.nativeElement:S}},40567:(Ue,W,d)=>{"use strict";d.d(W,{CB:()=>r,DQ:()=>y,hx:()=>O,sL:()=>h,y4:()=>v,zP:()=>a});var n=d(96090),l=d(39595),p=d(43848),m=d(80583),_=d(58527);class P{}function v(g){return g&&"function"==typeof g.connect&&!(g instanceof n.G)}class O extends P{constructor(c){super(),this._data=c}connect(){return(0,l.A)(this._data)?this._data:(0,p.of)(this._data)}disconnect(){}}class y{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(c,T,A,L,x){c.forEachOperation((V,D,F)=>{let I,k;null==V.previousIndex?(I=this._insertView(()=>A(V,D,F),F,T,L(V)),k=I?1:0):null==F?(this._detachAndCacheView(D,T),k=3):(I=this._moveView(D,F,T,L(V)),k=2),x&&x({context:I?.context,operation:k,record:V})})}detach(){for(const c of this._viewCache)c.destroy();this._viewCache=[]}_insertView(c,T,A,L){const x=this._insertViewFromCache(T,A);if(x)return void(x.context.$implicit=L);const V=c();return A.createEmbeddedView(V.templateRef,V.context,V.index)}_detachAndCacheView(c,T){const A=T.detach(c);this._maybeCacheView(A,T)}_moveView(c,T,A,L){const x=A.get(c);return A.move(x,T),x.context.$implicit=L,x}_maybeCacheView(c,T){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(c);else{const A=T.indexOf(c);-1===A?c.destroy():T.remove(A)}}_insertViewFromCache(c,T){const A=this._viewCache.pop();return A&&T.insert(A,c),A||null}}class r{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(c=!1,T,A=!0,L){this._multiple=c,this._emitChanges=A,this.compareWith=L,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new m.B7,T&&T.length&&(c?T.forEach(x=>this._markSelected(x)):this._markSelected(T[0]),this._selectedToEmit.length=0)}select(...c){this._verifyValueAssignment(c),c.forEach(A=>this._markSelected(A));const T=this._hasQueuedChanges();return this._emitChangeEvent(),T}deselect(...c){this._verifyValueAssignment(c),c.forEach(A=>this._unmarkSelected(A));const T=this._hasQueuedChanges();return this._emitChangeEvent(),T}setSelection(...c){this._verifyValueAssignment(c);const T=this.selected,A=new Set(c);c.forEach(x=>this._markSelected(x)),T.filter(x=>!A.has(x)).forEach(x=>this._unmarkSelected(x));const L=this._hasQueuedChanges();return this._emitChangeEvent(),L}toggle(c){return this.isSelected(c)?this.deselect(c):this.select(c)}clear(c=!0){this._unmarkAll();const T=this._hasQueuedChanges();return c&&this._emitChangeEvent(),T}isSelected(c){return this._selection.has(this._getConcreteValue(c))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(c){this._multiple&&this.selected&&this._selected.sort(c)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(c){c=this._getConcreteValue(c),this.isSelected(c)||(this._multiple||this._unmarkAll(),this.isSelected(c)||this._selection.add(c),this._emitChanges&&this._selectedToEmit.push(c))}_unmarkSelected(c){c=this._getConcreteValue(c),this.isSelected(c)&&(this._selection.delete(c),this._emitChanges&&this._deselectedToEmit.push(c))}_unmarkAll(){this.isEmpty()||this._selection.forEach(c=>this._unmarkSelected(c))}_verifyValueAssignment(c){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(c){if(this.compareWith){for(let T of this._selection)if(this.compareWith(c,T))return T;return c}return c}}let a=(()=>{var g;class c{constructor(){this._listeners=[]}notify(A,L){for(let x of this._listeners)x(A,L)}listen(A){return this._listeners.push(A),()=>{this._listeners=this._listeners.filter(L=>A!==L)}}ngOnDestroy(){this._listeners=[]}}return(g=c).\u0275fac=function(A){return new(A||g)},g.\u0275prov=_.jDH({token:g,factory:g.\u0275fac,providedIn:"root"}),c})();const h=new _.nKC("_ViewRepeater")},78064:(Ue,W,d)=>{"use strict";d.d(W,{Pe:()=>h,Ph:()=>R,lG:()=>I,sU:()=>c});var n=d(31308),l=d(61904),p=d(72653),m=d(76614),_=d(61142),P=d(58527),v=d(25373),O=d(80583),S=d(63997),y=d(43848),r=d(51394),i=d(34593);function a(G,Y){}class h{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let c=(()=>{var G;class Y extends m.lb{constructor($,ee,J,z,te,X,re,ge){super(),this._elementRef=$,this._focusTrapFactory=ee,this._config=z,this._interactivityChecker=te,this._ngZone=X,this._overlayRef=re,this._focusMonitor=ge,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=oe=>{this._portalOutlet.hasAttached();const xe=this._portalOutlet.attachDomPortal(oe);return this._contentAttached(),xe},this._document=J,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal($){this._portalOutlet.hasAttached();const ee=this._portalOutlet.attachComponentPortal($);return this._contentAttached(),ee}attachTemplatePortal($){this._portalOutlet.hasAttached();const ee=this._portalOutlet.attachTemplatePortal($);return this._contentAttached(),ee}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus($,ee){this._interactivityChecker.isFocusable($)||($.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const J=()=>{$.removeEventListener("blur",J),$.removeEventListener("mousedown",J),$.removeAttribute("tabindex")};$.addEventListener("blur",J),$.addEventListener("mousedown",J)})),$.focus(ee)}_focusByCssSelector($,ee){let J=this._elementRef.nativeElement.querySelector($);J&&this._forceFocus(J,ee)}_trapFocus(){const $=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||$.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(ee=>{ee||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const $=this._config.restoreFocus;let ee=null;if("string"==typeof $?ee=this._document.querySelector($):"boolean"==typeof $?ee=$?this._elementFocusedBeforeDialogWasOpened:null:$&&(ee=$),this._config.restoreFocus&&ee&&"function"==typeof ee.focus){const J=(0,p.vc)(),z=this._elementRef.nativeElement;(!J||J===this._document.body||J===z||z.contains(J))&&(this._focusMonitor?(this._focusMonitor.focusVia(ee,this._closeInteractionType),this._closeInteractionType=null):ee.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const $=this._elementRef.nativeElement,ee=(0,p.vc)();return $===ee||$.contains(ee)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,p.vc)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(G=Y).\u0275fac=function($){return new($||G)(P.rXU(P.aKT),P.rXU(n.GX),P.rXU(_.qQ,8),P.rXU(h),P.rXU(n.Z7),P.rXU(P.SKi),P.rXU(l.yY),P.rXU(n.FN))},G.\u0275cmp=P.VBU({type:G,selectors:[["cdk-dialog-container"]],viewQuery:function($,ee){if(1&$&&P.GBs(m.I3,7),2&$){let J;P.mGM(J=P.lsd())&&(ee._portalOutlet=J.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function($,ee){2&$&&P.BMQ("id",ee._config.id||null)("role",ee._config.role)("aria-modal",ee._config.ariaModal)("aria-labelledby",ee._config.ariaLabel?null:ee._ariaLabelledByQueue[0])("aria-label",ee._config.ariaLabel)("aria-describedby",ee._config.ariaDescribedBy||null)},features:[P.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function($,ee){1&$&&P.DNE(0,a,0,0,"ng-template",0)},dependencies:[m.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Y})();class T{constructor(Y,K){this.overlayRef=Y,this.config=K,this.closed=new O.B7,this.disableClose=K.disableClose,this.backdropClick=Y.backdropClick(),this.keydownEvents=Y.keydownEvents(),this.outsidePointerEvents=Y.outsidePointerEvents(),this.id=K.id,this.keydownEvents.subscribe($=>{$.keyCode===v._f&&!this.disableClose&&!(0,v.rp)($)&&($.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Y.detachments().subscribe(()=>{!1!==K.closeOnOverlayDetachments&&this.close()})}close(Y,K){if(this.containerInstance){const $=this.closed;this.containerInstance._closeInteractionType=K?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),$.next(Y),$.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Y="",K=""){return this.overlayRef.updateSize({width:Y,height:K}),this}addPanelClass(Y){return this.overlayRef.addPanelClass(Y),this}removePanelClass(Y){return this.overlayRef.removePanelClass(Y),this}}const A=new P.nKC("DialogScrollStrategy"),L=new P.nKC("DialogData"),x=new P.nKC("DefaultDialogConfig"),D={provide:A,deps:[l.hJ],useFactory:function V(G){return()=>G.scrollStrategies.block()}};let F=0,I=(()=>{var G;class Y{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor($,ee,J,z,te,X){this._overlay=$,this._injector=ee,this._defaultOptions=J,this._parentDialog=z,this._overlayContainer=te,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new O.B7,this._afterOpenedAtThisLevel=new O.B7,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,S.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,i.Z)(void 0))),this._scrollStrategy=X}open($,ee){(ee={...this._defaultOptions||new h,...ee}).id=ee.id||"cdk-dialog-"+F++,ee.id&&this.getDialogById(ee.id);const z=this._getOverlayConfig(ee),te=this._overlay.create(z),X=new T(te,ee),re=this._attachContainer(te,X,ee);return X.containerInstance=re,this._attachDialogContent($,X,re,ee),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(X),X.closed.subscribe(()=>this._removeOpenDialog(X,!0)),this.afterOpened.next(X),X}closeAll(){k(this.openDialogs,$=>$.close())}getDialogById($){return this.openDialogs.find(ee=>ee.id===$)}ngOnDestroy(){k(this._openDialogsAtThisLevel,$=>{!1===$.config.closeOnDestroy&&this._removeOpenDialog($,!1)}),k(this._openDialogsAtThisLevel,$=>$.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig($){const ee=new l.rR({positionStrategy:$.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:$.scrollStrategy||this._scrollStrategy(),panelClass:$.panelClass,hasBackdrop:$.hasBackdrop,direction:$.direction,minWidth:$.minWidth,minHeight:$.minHeight,maxWidth:$.maxWidth,maxHeight:$.maxHeight,width:$.width,height:$.height,disposeOnNavigation:$.closeOnNavigation});return $.backdropClass&&(ee.backdropClass=$.backdropClass),ee}_attachContainer($,ee,J){const z=J.injector||J.viewContainerRef?.injector,te=[{provide:h,useValue:J},{provide:T,useValue:ee},{provide:l.yY,useValue:$}];let X;J.container?"function"==typeof J.container?X=J.container:(X=J.container.type,te.push(...J.container.providers(J))):X=c;const re=new m.A8(X,J.viewContainerRef,P.zZn.create({parent:z||this._injector,providers:te}),J.componentFactoryResolver);return $.attach(re).instance}_attachDialogContent($,ee,J,z){if($ instanceof P.C4Q){const te=this._createInjector(z,ee,J,void 0);let X={$implicit:z.data,dialogRef:ee};z.templateContext&&(X={...X,..."function"==typeof z.templateContext?z.templateContext():z.templateContext}),J.attachTemplatePortal(new m.VA($,null,X,te))}else{const te=this._createInjector(z,ee,J,this._injector),X=J.attachComponentPortal(new m.A8($,z.viewContainerRef,te,z.componentFactoryResolver));ee.componentRef=X,ee.componentInstance=X.instance}}_createInjector($,ee,J,z){const te=$.injector||$.viewContainerRef?.injector,X=[{provide:L,useValue:$.data},{provide:T,useValue:ee}];return $.providers&&("function"==typeof $.providers?X.push(...$.providers(ee,$,J)):X.push(...$.providers)),$.direction&&(!te||!te.get(r.dS,null,{optional:!0}))&&X.push({provide:r.dS,useValue:{value:$.direction,change:(0,y.of)()}}),P.zZn.create({parent:te||z,providers:X})}_removeOpenDialog($,ee){const J=this.openDialogs.indexOf($);J>-1&&(this.openDialogs.splice(J,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((z,te)=>{z?te.setAttribute("aria-hidden",z):te.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),ee&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const $=this._overlayContainer.getContainerElement();if($.parentElement){const ee=$.parentElement.children;for(let J=ee.length-1;J>-1;J--){const z=ee[J];z!==$&&"SCRIPT"!==z.nodeName&&"STYLE"!==z.nodeName&&!z.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(z,z.getAttribute("aria-hidden")),z.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(G=Y).\u0275fac=function($){return new($||G)(P.KVO(l.hJ),P.KVO(P.zZn),P.KVO(x,8),P.KVO(G,12),P.KVO(l.Sf),P.KVO(A))},G.\u0275prov=P.jDH({token:G,factory:G.\u0275fac}),Y})();function k(G,Y){let K=G.length;for(;K--;)Y(G[K])}let R=(()=>{var G;class Y{}return(G=Y).\u0275fac=function($){return new($||G)},G.\u0275mod=P.$C({type:G}),G.\u0275inj=P.G2t({providers:[I,D],imports:[l.z_,m.jc,n.Pd,m.jc]}),Y})()},25373:(Ue,W,d)=>{"use strict";d.d(W,{A:()=>xe,A$:()=>O,FX:()=>P,Fm:()=>_,Ge:()=>pn,Kp:()=>g,LE:()=>L,UQ:()=>T,W3:()=>v,Z:()=>Gt,_f:()=>r,bn:()=>te,dB:()=>h,eg:()=>xo,f2:()=>k,i7:()=>A,n6:()=>x,rp:()=>qn,t6:()=>i,w_:()=>a,wn:()=>p,yZ:()=>c});const p=9,_=13,P=16,v=17,O=18,r=27,i=32,a=33,h=34,g=35,c=36,T=37,A=38,L=39,x=40,k=48,te=57,xe=65,Gt=90,pn=91,xo=224;function qn(Sr,...ni){return ni.length?ni.some(he=>Sr[he]):Sr.altKey||Sr.shiftKey||Sr.ctrlKey||Sr.metaKey}},76706:(Ue,W,d)=>{"use strict";d.d(W,{QP:()=>x,Rp:()=>D});var n=d(58527),l=d(6364),p=d(80583),m=d(31315),_=d(82e3),P=d(17053),v=d(65706),O=d(36666),S=d(62931),y=d(83915),r=d(34593),i=d(4208),a=d(72653);const g=new Set;let c,T=(()=>{var F;class I{constructor(R,G){this._platform=R,this._nonce=G,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):L}matchMedia(R){return(this._platform.WEBKIT||this._platform.BLINK)&&function A(F,I){if(!g.has(F))try{c||(c=document.createElement("style"),I&&(c.nonce=I),c.setAttribute("type","text/css"),document.head.appendChild(c)),c.sheet&&(c.sheet.insertRule(`@media ${F} {body{ }}`,0),g.add(F))}catch(k){console.error(k)}}(R,this._nonce),this._matchMedia(R)}}return(F=I).\u0275fac=function(R){return new(R||F)(n.KVO(a.OD),n.KVO(n.BIS,8))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),I})();function L(F){return{matches:"all"===F||""===F,media:F,addListener:()=>{},removeListener:()=>{}}}let x=(()=>{var F;class I{constructor(R,G){this._mediaMatcher=R,this._zone=G,this._queries=new Map,this._destroySubject=new p.B7}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(R){return V((0,l.FG)(R)).some(Y=>this._registerQuery(Y).mql.matches)}observe(R){const Y=V((0,l.FG)(R)).map($=>this._registerQuery($).observable);let K=(0,m.zV)(Y);return K=(0,_.x)(K.pipe((0,v.s)(1)),K.pipe((0,O.i)(1),(0,S.B)(0))),K.pipe((0,y.T)($=>{const ee={matches:!1,breakpoints:{}};return $.forEach(({matches:J,query:z})=>{ee.matches=ee.matches||J,ee.breakpoints[z]=J}),ee}))}_registerQuery(R){if(this._queries.has(R))return this._queries.get(R);const G=this._mediaMatcher.matchMedia(R),K={observable:new P.c($=>{const ee=J=>this._zone.run(()=>$.next(J));return G.addListener(ee),()=>{G.removeListener(ee)}}).pipe((0,r.Z)(G),(0,y.T)(({matches:$})=>({query:R,matches:$})),(0,i.Q)(this._destroySubject)),mql:G};return this._queries.set(R,K),K}}return(F=I).\u0275fac=function(R){return new(R||F)(n.KVO(T),n.KVO(n.SKi))},F.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),I})();function V(F){return F.map(I=>I.split(",")).reduce((I,k)=>I.concat(k)).map(I=>I.trim())}const D={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},26321:(Ue,W,d)=>{"use strict";d.d(W,{Wv:()=>O,w5:()=>S});var n=d(6364),l=d(58527),p=d(17053),m=d(80583),_=d(62931);let P=(()=>{var y;class r{create(a){return typeof MutationObserver>"u"?null:new MutationObserver(a)}}return(y=r).\u0275fac=function(a){return new(a||y)},y.\u0275prov=l.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),r})(),v=(()=>{var y;class r{constructor(a){this._mutationObserverFactory=a,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((a,h)=>this._cleanupObserver(h))}observe(a){const h=(0,n.i8)(a);return new p.c(g=>{const T=this._observeElement(h).subscribe(g);return()=>{T.unsubscribe(),this._unobserveElement(h)}})}_observeElement(a){if(this._observedElements.has(a))this._observedElements.get(a).count++;else{const h=new m.B7,g=this._mutationObserverFactory.create(c=>h.next(c));g&&g.observe(a,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(a,{observer:g,stream:h,count:1})}return this._observedElements.get(a).stream}_unobserveElement(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))}_cleanupObserver(a){if(this._observedElements.has(a)){const{observer:h,stream:g}=this._observedElements.get(a);h&&h.disconnect(),g.complete(),this._observedElements.delete(a)}}}return(y=r).\u0275fac=function(a){return new(a||y)(l.KVO(P))},y.\u0275prov=l.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),r})(),O=(()=>{var y;class r{get disabled(){return this._disabled}set disabled(a){this._disabled=(0,n.he)(a),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(a){this._debounce=(0,n.OE)(a),this._subscribe()}constructor(a,h,g){this._contentObserver=a,this._elementRef=h,this._ngZone=g,this.event=new l.bkB,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const a=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?a.pipe((0,_.B)(this.debounce)):a).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return(y=r).\u0275fac=function(a){return new(a||y)(l.rXU(v),l.rXU(l.aKT),l.rXU(l.SKi))},y.\u0275dir=l.FsC({type:y,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[l.Mj6.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),S=(()=>{var y;class r{}return(y=r).\u0275fac=function(a){return new(a||y)},y.\u0275mod=l.$C({type:y}),y.\u0275inj=l.G2t({providers:[P]}),r})()},61904:(Ue,W,d)=>{"use strict";d.d(W,{$Q:()=>Me,Sf:()=>te,WB:()=>je,hJ:()=>_e,rR:()=>k,yY:()=>X,z_:()=>gt});var n=d(37278),l=d(61142),p=d(58527),m=d(6364),_=d(72653),P=d(8619),v=d(65706),O=d(4208),S=d(48765),y=d(51394),r=d(76614),i=d(80583),a=d(10399),h=d(16229),g=d(25373);const c=(0,_.CZ)();class T{constructor(Re,Ze){this._viewportRuler=Re,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ze}attach(){}enable(){if(this._canBeEnabled()){const Re=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Re.style.left||"",this._previousHTMLStyles.top=Re.style.top||"",Re.style.left=(0,m.a1)(-this._previousScrollPosition.left),Re.style.top=(0,m.a1)(-this._previousScrollPosition.top),Re.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Re=this._document.documentElement,et=Re.style,xt=this._document.body.style,un=et.scrollBehavior||"",ct=xt.scrollBehavior||"";this._isEnabled=!1,et.left=this._previousHTMLStyles.left,et.top=this._previousHTMLStyles.top,Re.classList.remove("cdk-global-scrollblock"),c&&(et.scrollBehavior=xt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),c&&(et.scrollBehavior=un,xt.scrollBehavior=ct)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ze=this._document.body,et=this._viewportRuler.getViewportSize();return Ze.scrollHeight>et.height||Ze.scrollWidth>et.width}}class L{constructor(Re,Ze,et,xt){this._scrollDispatcher=Re,this._ngZone=Ze,this._viewportRuler=et,this._config=xt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Re){this._overlayRef=Re}enable(){if(this._scrollSubscription)return;const Re=this._scrollDispatcher.scrolled(0).pipe((0,P.p)(Ze=>!Ze||!this._overlayRef.overlayElement.contains(Ze.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Re.subscribe(()=>{const Ze=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ze-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Re.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class x{enable(){}disable(){}attach(){}}function V(ye,Re){return Re.some(Ze=>ye.bottom<Ze.top||ye.top>Ze.bottom||ye.right<Ze.left||ye.left>Ze.right)}function D(ye,Re){return Re.some(Ze=>ye.top<Ze.top||ye.bottom>Ze.bottom||ye.left<Ze.left||ye.right>Ze.right)}class F{constructor(Re,Ze,et,xt){this._scrollDispatcher=Re,this._viewportRuler=Ze,this._ngZone=et,this._config=xt,this._scrollSubscription=null}attach(Re){this._overlayRef=Re}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Ze=this._overlayRef.overlayElement.getBoundingClientRect(),{width:et,height:xt}=this._viewportRuler.getViewportSize();V(Ze,[{width:et,height:xt,bottom:xt,right:et,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let I=(()=>{var ye;class Re{constructor(et,xt,un,ct){this._scrollDispatcher=et,this._viewportRuler=xt,this._ngZone=un,this.noop=()=>new x,this.close=Gt=>new L(this._scrollDispatcher,this._ngZone,this._viewportRuler,Gt),this.block=()=>new T(this._viewportRuler,this._document),this.reposition=Gt=>new F(this._scrollDispatcher,this._viewportRuler,this._ngZone,Gt),this._document=ct}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.KVO(n.R),p.KVO(n.Xj),p.KVO(p.SKi),p.KVO(l.qQ))},ye.\u0275prov=p.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Re})();class k{constructor(Re){if(this.scrollStrategy=new x,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Re){const Ze=Object.keys(Re);for(const et of Ze)void 0!==Re[et]&&(this[et]=Re[et])}}}class Y{constructor(Re,Ze){this.connectionPair=Re,this.scrollableViewProperties=Ze}}let ee=(()=>{var ye;class Re{constructor(et){this._attachedOverlays=[],this._document=et}ngOnDestroy(){this.detach()}add(et){this.remove(et),this._attachedOverlays.push(et)}remove(et){const xt=this._attachedOverlays.indexOf(et);xt>-1&&this._attachedOverlays.splice(xt,1),0===this._attachedOverlays.length&&this.detach()}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.KVO(l.qQ))},ye.\u0275prov=p.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Re})(),J=(()=>{var ye;class Re extends ee{constructor(et,xt){super(et),this._ngZone=xt,this._keydownListener=un=>{const ct=this._attachedOverlays;for(let Gt=ct.length-1;Gt>-1;Gt--)if(ct[Gt]._keydownEvents.observers.length>0){const pn=ct[Gt]._keydownEvents;this._ngZone?this._ngZone.run(()=>pn.next(un)):pn.next(un);break}}}add(et){super.add(et),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.KVO(l.qQ),p.KVO(p.SKi,8))},ye.\u0275prov=p.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Re})(),z=(()=>{var ye;class Re extends ee{constructor(et,xt,un){super(et),this._platform=xt,this._ngZone=un,this._cursorStyleIsSet=!1,this._pointerDownListener=ct=>{this._pointerDownEventTarget=(0,_.Fb)(ct)},this._clickListener=ct=>{const Gt=(0,_.Fb)(ct),pn="click"===ct.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Gt;this._pointerDownEventTarget=null;const st=this._attachedOverlays.slice();for(let mn=st.length-1;mn>-1;mn--){const Bn=st[mn];if(Bn._outsidePointerEvents.observers.length<1||!Bn.hasAttached())continue;if(Bn.overlayElement.contains(Gt)||Bn.overlayElement.contains(pn))break;const En=Bn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>En.next(ct)):En.next(ct)}}}add(et){if(super.add(et),!this._isAttached){const xt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(xt)):this._addEventListeners(xt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=xt.style.cursor,xt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const et=this._document.body;et.removeEventListener("pointerdown",this._pointerDownListener,!0),et.removeEventListener("click",this._clickListener,!0),et.removeEventListener("auxclick",this._clickListener,!0),et.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(et.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(et){et.addEventListener("pointerdown",this._pointerDownListener,!0),et.addEventListener("click",this._clickListener,!0),et.addEventListener("auxclick",this._clickListener,!0),et.addEventListener("contextmenu",this._clickListener,!0)}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.KVO(l.qQ),p.KVO(_.OD),p.KVO(p.SKi,8))},ye.\u0275prov=p.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Re})(),te=(()=>{var ye;class Re{constructor(et,xt){this._platform=xt,this._document=et}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const et="cdk-overlay-container";if(this._platform.isBrowser||(0,_.v8)()){const un=this._document.querySelectorAll(`.${et}[platform="server"], .${et}[platform="test"]`);for(let ct=0;ct<un.length;ct++)un[ct].remove()}const xt=this._document.createElement("div");xt.classList.add(et),(0,_.v8)()?xt.setAttribute("platform","test"):this._platform.isBrowser||xt.setAttribute("platform","server"),this._document.body.appendChild(xt),this._containerElement=xt}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.KVO(l.qQ),p.KVO(_.OD))},ye.\u0275prov=p.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Re})();class X{constructor(Re,Ze,et,xt,un,ct,Gt,pn,st,mn=!1){this._portalOutlet=Re,this._host=Ze,this._pane=et,this._config=xt,this._ngZone=un,this._keyboardDispatcher=ct,this._document=Gt,this._location=pn,this._outsideClickDispatcher=st,this._animationsDisabled=mn,this._backdropElement=null,this._backdropClick=new i.B7,this._attachments=new i.B7,this._detachments=new i.B7,this._locationChanges=a.y.EMPTY,this._backdropClickHandler=Bn=>this._backdropClick.next(Bn),this._backdropTransitionendHandler=Bn=>{this._disposeBackdrop(Bn.target)},this._keydownEvents=new i.B7,this._outsidePointerEvents=new i.B7,xt.scrollStrategy&&(this._scrollStrategy=xt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=xt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Re){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ze=this._portalOutlet.attach(Re);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,v.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Ze?.onDestroy&&Ze.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ze}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Re=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Re}dispose(){const Re=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,Re&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Re){Re!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Re,this.hasAttached()&&(Re.attach(this),this.updatePosition()))}updateSize(Re){this._config={...this._config,...Re},this._updateElementSize()}setDirection(Re){this._config={...this._config,direction:Re},this._updateElementDirection()}addPanelClass(Re){this._pane&&this._toggleClasses(this._pane,Re,!0)}removePanelClass(Re){this._pane&&this._toggleClasses(this._pane,Re,!1)}getDirection(){const Re=this._config.direction;return Re?"string"==typeof Re?Re:Re.value:"ltr"}updateScrollStrategy(Re){Re!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Re,this.hasAttached()&&(Re.attach(this),Re.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Re=this._pane.style;Re.width=(0,m.a1)(this._config.width),Re.height=(0,m.a1)(this._config.height),Re.minWidth=(0,m.a1)(this._config.minWidth),Re.minHeight=(0,m.a1)(this._config.minHeight),Re.maxWidth=(0,m.a1)(this._config.maxWidth),Re.maxHeight=(0,m.a1)(this._config.maxHeight)}_togglePointerEvents(Re){this._pane.style.pointerEvents=Re?"":"none"}_attachBackdrop(){const Re="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Re)})}):this._backdropElement.classList.add(Re)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Re=this._backdropElement;if(Re){if(this._animationsDisabled)return void this._disposeBackdrop(Re);Re.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Re.addEventListener("transitionend",this._backdropTransitionendHandler)}),Re.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Re)},500))}}_toggleClasses(Re,Ze,et){const xt=(0,m.FG)(Ze||[]).filter(un=>!!un);xt.length&&(et?Re.classList.add(...xt):Re.classList.remove(...xt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Re=this._ngZone.onStable.pipe((0,O.Q)((0,h.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Re.unsubscribe())})})}_disposeScrollStrategy(){const Re=this._scrollStrategy;Re&&(Re.disable(),Re.detach&&Re.detach())}_disposeBackdrop(Re){Re&&(Re.removeEventListener("click",this._backdropClickHandler),Re.removeEventListener("transitionend",this._backdropTransitionendHandler),Re.remove(),this._backdropElement===Re&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const re="cdk-overlay-connected-position-bounding-box",ge=/([A-Za-z%]+)$/;class oe{get positions(){return this._preferredPositions}constructor(Re,Ze,et,xt,un){this._viewportRuler=Ze,this._document=et,this._platform=xt,this._overlayContainer=un,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new i.B7,this._resizeSubscription=a.y.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Re)}attach(Re){this._validatePositions(),Re.hostElement.classList.add(re),this._overlayRef=Re,this._boundingBox=Re.hostElement,this._pane=Re.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Re=this._originRect,Ze=this._overlayRect,et=this._viewportRect,xt=this._containerRect,un=[];let ct;for(let Gt of this._preferredPositions){let pn=this._getOriginPoint(Re,xt,Gt),st=this._getOverlayPoint(pn,Ze,Gt),mn=this._getOverlayFit(st,Ze,et,Gt);if(mn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Gt,pn);this._canFitWithFlexibleDimensions(mn,st,et)?un.push({position:Gt,origin:pn,overlayRect:Ze,boundingBoxRect:this._calculateBoundingBoxRect(pn,Gt)}):(!ct||ct.overlayFit.visibleArea<mn.visibleArea)&&(ct={overlayFit:mn,overlayPoint:st,originPoint:pn,position:Gt,overlayRect:Ze})}if(un.length){let Gt=null,pn=-1;for(const st of un){const mn=st.boundingBoxRect.width*st.boundingBoxRect.height*(st.position.weight||1);mn>pn&&(pn=mn,Gt=st)}return this._isPushed=!1,void this._applyPosition(Gt.position,Gt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ct.position,ct.originPoint);this._applyPosition(ct.position,ct.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&xe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(re),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Re=this._lastPosition;if(Re){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ze=this._getOriginPoint(this._originRect,this._containerRect,Re);this._applyPosition(Re,Ze)}else this.apply()}withScrollableContainers(Re){return this._scrollables=Re,this}withPositions(Re){return this._preferredPositions=Re,-1===Re.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Re){return this._viewportMargin=Re,this}withFlexibleDimensions(Re=!0){return this._hasFlexibleDimensions=Re,this}withGrowAfterOpen(Re=!0){return this._growAfterOpen=Re,this}withPush(Re=!0){return this._canPush=Re,this}withLockedPosition(Re=!0){return this._positionLocked=Re,this}setOrigin(Re){return this._origin=Re,this}withDefaultOffsetX(Re){return this._offsetX=Re,this}withDefaultOffsetY(Re){return this._offsetY=Re,this}withTransformOriginOn(Re){return this._transformOriginSelector=Re,this}_getOriginPoint(Re,Ze,et){let xt,un;if("center"==et.originX)xt=Re.left+Re.width/2;else{const ct=this._isRtl()?Re.right:Re.left,Gt=this._isRtl()?Re.left:Re.right;xt="start"==et.originX?ct:Gt}return Ze.left<0&&(xt-=Ze.left),un="center"==et.originY?Re.top+Re.height/2:"top"==et.originY?Re.top:Re.bottom,Ze.top<0&&(un-=Ze.top),{x:xt,y:un}}_getOverlayPoint(Re,Ze,et){let xt,un;return xt="center"==et.overlayX?-Ze.width/2:"start"===et.overlayX?this._isRtl()?-Ze.width:0:this._isRtl()?0:-Ze.width,un="center"==et.overlayY?-Ze.height/2:"top"==et.overlayY?0:-Ze.height,{x:Re.x+xt,y:Re.y+un}}_getOverlayFit(Re,Ze,et,xt){const un=N(Ze);let{x:ct,y:Gt}=Re,pn=this._getOffset(xt,"x"),st=this._getOffset(xt,"y");pn&&(ct+=pn),st&&(Gt+=st);let En=0-Gt,Cn=Gt+un.height-et.height,fn=this._subtractOverflows(un.width,0-ct,ct+un.width-et.width),dt=this._subtractOverflows(un.height,En,Cn),nn=fn*dt;return{visibleArea:nn,isCompletelyWithinViewport:un.width*un.height===nn,fitsInViewportVertically:dt===un.height,fitsInViewportHorizontally:fn==un.width}}_canFitWithFlexibleDimensions(Re,Ze,et){if(this._hasFlexibleDimensions){const xt=et.bottom-Ze.y,un=et.right-Ze.x,ct=ue(this._overlayRef.getConfig().minHeight),Gt=ue(this._overlayRef.getConfig().minWidth);return(Re.fitsInViewportVertically||null!=ct&&ct<=xt)&&(Re.fitsInViewportHorizontally||null!=Gt&&Gt<=un)}return!1}_pushOverlayOnScreen(Re,Ze,et){if(this._previousPushAmount&&this._positionLocked)return{x:Re.x+this._previousPushAmount.x,y:Re.y+this._previousPushAmount.y};const xt=N(Ze),un=this._viewportRect,ct=Math.max(Re.x+xt.width-un.width,0),Gt=Math.max(Re.y+xt.height-un.height,0),pn=Math.max(un.top-et.top-Re.y,0),st=Math.max(un.left-et.left-Re.x,0);let mn=0,Bn=0;return mn=xt.width<=un.width?st||-ct:Re.x<this._viewportMargin?un.left-et.left-Re.x:0,Bn=xt.height<=un.height?pn||-Gt:Re.y<this._viewportMargin?un.top-et.top-Re.y:0,this._previousPushAmount={x:mn,y:Bn},{x:Re.x+mn,y:Re.y+Bn}}_applyPosition(Re,Ze){if(this._setTransformOrigin(Re),this._setOverlayElementStyles(Ze,Re),this._setBoundingBoxStyles(Ze,Re),Re.panelClass&&this._addPanelClasses(Re.panelClass),this._lastPosition=Re,this._positionChanges.observers.length){const et=this._getScrollVisibility(),xt=new Y(Re,et);this._positionChanges.next(xt)}this._isInitialRender=!1}_setTransformOrigin(Re){if(!this._transformOriginSelector)return;const Ze=this._boundingBox.querySelectorAll(this._transformOriginSelector);let et,xt=Re.overlayY;et="center"===Re.overlayX?"center":this._isRtl()?"start"===Re.overlayX?"right":"left":"start"===Re.overlayX?"left":"right";for(let un=0;un<Ze.length;un++)Ze[un].style.transformOrigin=`${et} ${xt}`}_calculateBoundingBoxRect(Re,Ze){const et=this._viewportRect,xt=this._isRtl();let un,ct,Gt,mn,Bn,En;if("top"===Ze.overlayY)ct=Re.y,un=et.height-ct+this._viewportMargin;else if("bottom"===Ze.overlayY)Gt=et.height-Re.y+2*this._viewportMargin,un=et.height-Gt+this._viewportMargin;else{const Cn=Math.min(et.bottom-Re.y+et.top,Re.y),fn=this._lastBoundingBoxSize.height;un=2*Cn,ct=Re.y-Cn,un>fn&&!this._isInitialRender&&!this._growAfterOpen&&(ct=Re.y-fn/2)}if("end"===Ze.overlayX&&!xt||"start"===Ze.overlayX&&xt)En=et.width-Re.x+this._viewportMargin,mn=Re.x-this._viewportMargin;else if("start"===Ze.overlayX&&!xt||"end"===Ze.overlayX&&xt)Bn=Re.x,mn=et.right-Re.x;else{const Cn=Math.min(et.right-Re.x+et.left,Re.x),fn=this._lastBoundingBoxSize.width;mn=2*Cn,Bn=Re.x-Cn,mn>fn&&!this._isInitialRender&&!this._growAfterOpen&&(Bn=Re.x-fn/2)}return{top:ct,left:Bn,bottom:Gt,right:En,width:mn,height:un}}_setBoundingBoxStyles(Re,Ze){const et=this._calculateBoundingBoxRect(Re,Ze);!this._isInitialRender&&!this._growAfterOpen&&(et.height=Math.min(et.height,this._lastBoundingBoxSize.height),et.width=Math.min(et.width,this._lastBoundingBoxSize.width));const xt={};if(this._hasExactPosition())xt.top=xt.left="0",xt.bottom=xt.right=xt.maxHeight=xt.maxWidth="",xt.width=xt.height="100%";else{const un=this._overlayRef.getConfig().maxHeight,ct=this._overlayRef.getConfig().maxWidth;xt.height=(0,m.a1)(et.height),xt.top=(0,m.a1)(et.top),xt.bottom=(0,m.a1)(et.bottom),xt.width=(0,m.a1)(et.width),xt.left=(0,m.a1)(et.left),xt.right=(0,m.a1)(et.right),xt.alignItems="center"===Ze.overlayX?"center":"end"===Ze.overlayX?"flex-end":"flex-start",xt.justifyContent="center"===Ze.overlayY?"center":"bottom"===Ze.overlayY?"flex-end":"flex-start",un&&(xt.maxHeight=(0,m.a1)(un)),ct&&(xt.maxWidth=(0,m.a1)(ct))}this._lastBoundingBoxSize=et,xe(this._boundingBox.style,xt)}_resetBoundingBoxStyles(){xe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){xe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Re,Ze){const et={},xt=this._hasExactPosition(),un=this._hasFlexibleDimensions,ct=this._overlayRef.getConfig();if(xt){const mn=this._viewportRuler.getViewportScrollPosition();xe(et,this._getExactOverlayY(Ze,Re,mn)),xe(et,this._getExactOverlayX(Ze,Re,mn))}else et.position="static";let Gt="",pn=this._getOffset(Ze,"x"),st=this._getOffset(Ze,"y");pn&&(Gt+=`translateX(${pn}px) `),st&&(Gt+=`translateY(${st}px)`),et.transform=Gt.trim(),ct.maxHeight&&(xt?et.maxHeight=(0,m.a1)(ct.maxHeight):un&&(et.maxHeight="")),ct.maxWidth&&(xt?et.maxWidth=(0,m.a1)(ct.maxWidth):un&&(et.maxWidth="")),xe(this._pane.style,et)}_getExactOverlayY(Re,Ze,et){let xt={top:"",bottom:""},un=this._getOverlayPoint(Ze,this._overlayRect,Re);return this._isPushed&&(un=this._pushOverlayOnScreen(un,this._overlayRect,et)),"bottom"===Re.overlayY?xt.bottom=this._document.documentElement.clientHeight-(un.y+this._overlayRect.height)+"px":xt.top=(0,m.a1)(un.y),xt}_getExactOverlayX(Re,Ze,et){let ct,xt={left:"",right:""},un=this._getOverlayPoint(Ze,this._overlayRect,Re);return this._isPushed&&(un=this._pushOverlayOnScreen(un,this._overlayRect,et)),ct=this._isRtl()?"end"===Re.overlayX?"left":"right":"end"===Re.overlayX?"right":"left","right"===ct?xt.right=this._document.documentElement.clientWidth-(un.x+this._overlayRect.width)+"px":xt.left=(0,m.a1)(un.x),xt}_getScrollVisibility(){const Re=this._getOriginRect(),Ze=this._pane.getBoundingClientRect(),et=this._scrollables.map(xt=>xt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:D(Re,et),isOriginOutsideView:V(Re,et),isOverlayClipped:D(Ze,et),isOverlayOutsideView:V(Ze,et)}}_subtractOverflows(Re,...Ze){return Ze.reduce((et,xt)=>et-Math.max(xt,0),Re)}_getNarrowedViewportRect(){const Re=this._document.documentElement.clientWidth,Ze=this._document.documentElement.clientHeight,et=this._viewportRuler.getViewportScrollPosition();return{top:et.top+this._viewportMargin,left:et.left+this._viewportMargin,right:et.left+Re-this._viewportMargin,bottom:et.top+Ze-this._viewportMargin,width:Re-2*this._viewportMargin,height:Ze-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Re,Ze){return"x"===Ze?null==Re.offsetX?this._offsetX:Re.offsetX:null==Re.offsetY?this._offsetY:Re.offsetY}_validatePositions(){}_addPanelClasses(Re){this._pane&&(0,m.FG)(Re).forEach(Ze=>{""!==Ze&&-1===this._appliedPanelClasses.indexOf(Ze)&&(this._appliedPanelClasses.push(Ze),this._pane.classList.add(Ze))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Re=>{this._pane.classList.remove(Re)}),this._appliedPanelClasses=[])}_getOriginRect(){const Re=this._origin;if(Re instanceof p.aKT)return Re.nativeElement.getBoundingClientRect();if(Re instanceof Element)return Re.getBoundingClientRect();const Ze=Re.width||0,et=Re.height||0;return{top:Re.y,bottom:Re.y+et,left:Re.x,right:Re.x+Ze,height:et,width:Ze}}}function xe(ye,Re){for(let Ze in Re)Re.hasOwnProperty(Ze)&&(ye[Ze]=Re[Ze]);return ye}function ue(ye){if("number"!=typeof ye&&null!=ye){const[Re,Ze]=ye.split(ge);return Ze&&"px"!==Ze?null:parseFloat(Re)}return ye||null}function N(ye){return{top:Math.floor(ye.top),right:Math.floor(ye.right),bottom:Math.floor(ye.bottom),left:Math.floor(ye.left),width:Math.floor(ye.width),height:Math.floor(ye.height)}}const Z="cdk-global-overlay-wrapper";class de{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(Re){const Ze=Re.getConfig();this._overlayRef=Re,this._width&&!Ze.width&&Re.updateSize({width:this._width}),this._height&&!Ze.height&&Re.updateSize({height:this._height}),Re.hostElement.classList.add(Z),this._isDisposed=!1}top(Re=""){return this._bottomOffset="",this._topOffset=Re,this._alignItems="flex-start",this}left(Re=""){return this._xOffset=Re,this._xPosition="left",this}bottom(Re=""){return this._topOffset="",this._bottomOffset=Re,this._alignItems="flex-end",this}right(Re=""){return this._xOffset=Re,this._xPosition="right",this}start(Re=""){return this._xOffset=Re,this._xPosition="start",this}end(Re=""){return this._xOffset=Re,this._xPosition="end",this}width(Re=""){return this._overlayRef?this._overlayRef.updateSize({width:Re}):this._width=Re,this}height(Re=""){return this._overlayRef?this._overlayRef.updateSize({height:Re}):this._height=Re,this}centerHorizontally(Re=""){return this.left(Re),this._xPosition="center",this}centerVertically(Re=""){return this.top(Re),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Re=this._overlayRef.overlayElement.style,Ze=this._overlayRef.hostElement.style,et=this._overlayRef.getConfig(),{width:xt,height:un,maxWidth:ct,maxHeight:Gt}=et,pn=!("100%"!==xt&&"100vw"!==xt||ct&&"100%"!==ct&&"100vw"!==ct),st=!("100%"!==un&&"100vh"!==un||Gt&&"100%"!==Gt&&"100vh"!==Gt),mn=this._xPosition,Bn=this._xOffset,En="rtl"===this._overlayRef.getConfig().direction;let Cn="",fn="",dt="";pn?dt="flex-start":"center"===mn?(dt="center",En?fn=Bn:Cn=Bn):En?"left"===mn||"end"===mn?(dt="flex-end",Cn=Bn):("right"===mn||"start"===mn)&&(dt="flex-start",fn=Bn):"left"===mn||"start"===mn?(dt="flex-start",Cn=Bn):("right"===mn||"end"===mn)&&(dt="flex-end",fn=Bn),Re.position=this._cssPosition,Re.marginLeft=pn?"0":Cn,Re.marginTop=st?"0":this._topOffset,Re.marginBottom=this._bottomOffset,Re.marginRight=pn?"0":fn,Ze.justifyContent=dt,Ze.alignItems=st?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Re=this._overlayRef.overlayElement.style,Ze=this._overlayRef.hostElement,et=Ze.style;Ze.classList.remove(Z),et.justifyContent=et.alignItems=Re.marginTop=Re.marginBottom=Re.marginLeft=Re.marginRight=Re.position="",this._overlayRef=null,this._isDisposed=!0}}let ae=(()=>{var ye;class Re{constructor(et,xt,un,ct){this._viewportRuler=et,this._document=xt,this._platform=un,this._overlayContainer=ct}global(){return new de}flexibleConnectedTo(et){return new oe(et,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.KVO(n.Xj),p.KVO(l.qQ),p.KVO(_.OD),p.KVO(te))},ye.\u0275prov=p.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Re})(),pe=0,_e=(()=>{var ye;class Re{constructor(et,xt,un,ct,Gt,pn,st,mn,Bn,En,Cn,fn){this.scrollStrategies=et,this._overlayContainer=xt,this._componentFactoryResolver=un,this._positionBuilder=ct,this._keyboardDispatcher=Gt,this._injector=pn,this._ngZone=st,this._document=mn,this._directionality=Bn,this._location=En,this._outsideClickDispatcher=Cn,this._animationsModuleType=fn}create(et){const xt=this._createHostElement(),un=this._createPaneElement(xt),ct=this._createPortalOutlet(un),Gt=new k(et);return Gt.direction=Gt.direction||this._directionality.value,new X(ct,xt,un,Gt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(et){const xt=this._document.createElement("div");return xt.id="cdk-overlay-"+pe++,xt.classList.add("cdk-overlay-pane"),et.appendChild(xt),xt}_createHostElement(){const et=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(et),et}_createPortalOutlet(et){return this._appRef||(this._appRef=this._injector.get(p.o8S)),new r.aI(et,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.KVO(I),p.KVO(te),p.KVO(p.OM3),p.KVO(ae),p.KVO(J),p.KVO(p.zZn),p.KVO(p.SKi),p.KVO(l.qQ),p.KVO(y.dS),p.KVO(l.aZ),p.KVO(z),p.KVO(p.bc$,8))},ye.\u0275prov=p.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),Re})();const ke=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],De=new p.nKC("cdk-connected-overlay-scroll-strategy");let Me=(()=>{var ye;class Re{constructor(et){this.elementRef=et}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.rXU(p.aKT))},ye.\u0275dir=p.FsC({type:ye,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),Re})(),je=(()=>{var ye;class Re{get offsetX(){return this._offsetX}set offsetX(et){this._offsetX=et,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(et){this._offsetY=et,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(et){this._hasBackdrop=(0,m.he)(et)}get lockPosition(){return this._lockPosition}set lockPosition(et){this._lockPosition=(0,m.he)(et)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(et){this._flexibleDimensions=(0,m.he)(et)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(et){this._growAfterOpen=(0,m.he)(et)}get push(){return this._push}set push(et){this._push=(0,m.he)(et)}constructor(et,xt,un,ct,Gt){this._overlay=et,this._dir=Gt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=a.y.EMPTY,this._attachSubscription=a.y.EMPTY,this._detachSubscription=a.y.EMPTY,this._positionSubscription=a.y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new p.bkB,this.positionChange=new p.bkB,this.attach=new p.bkB,this.detach=new p.bkB,this.overlayKeydown=new p.bkB,this.overlayOutsideClick=new p.bkB,this._templatePortal=new r.VA(xt,un),this._scrollStrategyFactory=ct,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(et){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),et.origin&&this.open&&this._position.apply()),et.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ke);const et=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=et.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=et.detachments().subscribe(()=>this.detach.emit()),et.keydownEvents().subscribe(xt=>{this.overlayKeydown.next(xt),xt.keyCode===g._f&&!this.disableClose&&!(0,g.rp)(xt)&&(xt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(xt=>{this.overlayOutsideClick.next(xt)})}_buildConfig(){const et=this._position=this.positionStrategy||this._createPositionStrategy(),xt=new k({direction:this._dir,positionStrategy:et,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(xt.width=this.width),(this.height||0===this.height)&&(xt.height=this.height),(this.minWidth||0===this.minWidth)&&(xt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(xt.minHeight=this.minHeight),this.backdropClass&&(xt.backdropClass=this.backdropClass),this.panelClass&&(xt.panelClass=this.panelClass),xt}_updatePositionStrategy(et){const xt=this.positions.map(un=>({originX:un.originX,originY:un.originY,overlayX:un.overlayX,overlayY:un.overlayY,offsetX:un.offsetX||this.offsetX,offsetY:un.offsetY||this.offsetY,panelClass:un.panelClass||void 0}));return et.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(xt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const et=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(et),et}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Me?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(et=>{this.backdropClick.emit(et)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,S.v)(()=>this.positionChange.observers.length>0)).subscribe(et=>{this.positionChange.emit(et),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(ye=Re).\u0275fac=function(et){return new(et||ye)(p.rXU(_e),p.rXU(p.C4Q),p.rXU(p.c1b),p.rXU(De),p.rXU(y.dS,8))},ye.\u0275dir=p.FsC({type:ye,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[p.Mj6.None,"cdkConnectedOverlayOrigin","origin"],positions:[p.Mj6.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[p.Mj6.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[p.Mj6.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[p.Mj6.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[p.Mj6.None,"cdkConnectedOverlayWidth","width"],height:[p.Mj6.None,"cdkConnectedOverlayHeight","height"],minWidth:[p.Mj6.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[p.Mj6.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[p.Mj6.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[p.Mj6.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[p.Mj6.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[p.Mj6.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[p.Mj6.None,"cdkConnectedOverlayOpen","open"],disableClose:[p.Mj6.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[p.Mj6.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[p.Mj6.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[p.Mj6.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[p.Mj6.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[p.Mj6.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[p.Mj6.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[p.OA$]}),Re})();const Oe={provide:De,deps:[_e],useFactory:function $e(ye){return()=>ye.scrollStrategies.reposition()}};let gt=(()=>{var ye;class Re{}return(ye=Re).\u0275fac=function(et){return new(et||ye)},ye.\u0275mod=p.$C({type:ye}),ye.\u0275inj=p.G2t({providers:[_e,Oe],imports:[y.jI,r.jc,n.E9,n.E9]}),Re})()},72653:(Ue,W,d)=>{"use strict";d.d(W,{BD:()=>g,BQ:()=>r,CZ:()=>h,Fb:()=>x,KT:()=>A,MU:()=>O,OD:()=>m,v8:()=>V,vc:()=>L});var n=d(58527),l=d(61142);let p;try{p=typeof Intl<"u"&&Intl.v8BreakIterator}catch{p=!1}let P,m=(()=>{var D;class F{constructor(k){this._platformId=k,this.isBrowser=this._platformId?(0,l.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!p)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(D=F).\u0275fac=function(k){return new(k||D)(n.KVO(n.Agw))},D.\u0275prov=n.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),F})();const v=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function O(){if(P)return P;if("object"!=typeof document||!document)return P=new Set(v),P;let D=document.createElement("input");return P=new Set(v.filter(F=>(D.setAttribute("type",F),D.type===F))),P}let S,i,a,c;function r(D){return function y(){if(null==S&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>S=!0}))}finally{S=S||!1}return S}()?D:!!D.capture}function h(){if(null==a){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return a=!1,a;if("scrollBehavior"in document.documentElement.style)a=!0;else{const D=Element.prototype.scrollTo;a=!!D&&!/\{\s*\[native code\]\s*\}/.test(D.toString())}}return a}function g(){if("object"!=typeof document||!document)return 0;if(null==i){const D=document.createElement("div"),F=D.style;D.dir="rtl",F.width="100px",F.overflow="auto",F.visibility="hidden",F.pointerEvents="none",F.position="absolute";const I=document.createElement("div"),k=I.style;k.width="200px",k.height="1px",D.appendChild(I),document.body.appendChild(D),i=0,0===D.scrollLeft&&(D.scrollLeft=1,i=0===D.scrollLeft?1:2),D.remove()}return i}function A(D){if(function T(){if(null==c){const D=typeof document<"u"?document.head:null;c=!(!D||!D.createShadowRoot&&!D.attachShadow)}return c}()){const F=D.getRootNode?D.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&F instanceof ShadowRoot)return F}return null}function L(){let D=typeof document<"u"&&document?document.activeElement:null;for(;D&&D.shadowRoot;){const F=D.shadowRoot.activeElement;if(F===D)break;D=F}return D}function x(D){return D.composedPath?D.composedPath()[0]:D.target}function V(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},76614:(Ue,W,d)=>{"use strict";d.d(W,{A8:()=>y,I3:()=>L,VA:()=>r,aI:()=>g,bV:()=>T,jc:()=>V,lb:()=>a});var n=d(58527),l=d(61142);class S{attach(I){return this._attachedHost=I,I.attach(this)}detach(){let I=this._attachedHost;null!=I&&(this._attachedHost=null,I.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(I){this._attachedHost=I}}class y extends S{constructor(I,k,R,G,Y){super(),this.component=I,this.viewContainerRef=k,this.injector=R,this.componentFactoryResolver=G,this.projectableNodes=Y}}class r extends S{constructor(I,k,R,G){super(),this.templateRef=I,this.viewContainerRef=k,this.context=R,this.injector=G}get origin(){return this.templateRef.elementRef}attach(I,k=this.context){return this.context=k,super.attach(I)}detach(){return this.context=void 0,super.detach()}}class i extends S{constructor(I){super(),this.element=I instanceof n.aKT?I.nativeElement:I}}class a{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(I){return I instanceof y?(this._attachedPortal=I,this.attachComponentPortal(I)):I instanceof r?(this._attachedPortal=I,this.attachTemplatePortal(I)):this.attachDomPortal&&I instanceof i?(this._attachedPortal=I,this.attachDomPortal(I)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(I){this._disposeFn=I}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class g extends a{constructor(I,k,R,G,Y){super(),this.outletElement=I,this._componentFactoryResolver=k,this._appRef=R,this._defaultInjector=G,this.attachDomPortal=K=>{const $=K.element,ee=this._document.createComment("dom-portal");$.parentNode.insertBefore(ee,$),this.outletElement.appendChild($),this._attachedPortal=K,super.setDisposeFn(()=>{ee.parentNode&&ee.parentNode.replaceChild($,ee)})},this._document=Y}attachComponentPortal(I){const R=(I.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(I.component);let G;return I.viewContainerRef?(G=I.viewContainerRef.createComponent(R,I.viewContainerRef.length,I.injector||I.viewContainerRef.injector,I.projectableNodes||void 0),this.setDisposeFn(()=>G.destroy())):(G=R.create(I.injector||this._defaultInjector||n.zZn.NULL),this._appRef.attachView(G.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(G.hostView),G.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(G)),this._attachedPortal=I,G}attachTemplatePortal(I){let k=I.viewContainerRef,R=k.createEmbeddedView(I.templateRef,I.context,{injector:I.injector});return R.rootNodes.forEach(G=>this.outletElement.appendChild(G)),R.detectChanges(),this.setDisposeFn(()=>{let G=k.indexOf(R);-1!==G&&k.remove(G)}),this._attachedPortal=I,R}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(I){return I.hostView.rootNodes[0]}}let T=(()=>{var F;class I extends r{constructor(R,G){super(R,G)}}return(F=I).\u0275fac=function(R){return new(R||F)(n.rXU(n.C4Q),n.rXU(n.c1b))},F.\u0275dir=n.FsC({type:F,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.Vt3]}),I})(),L=(()=>{var F;class I extends a{constructor(R,G,Y){super(),this._componentFactoryResolver=R,this._viewContainerRef=G,this._isInitialized=!1,this.attached=new n.bkB,this.attachDomPortal=K=>{const $=K.element,ee=this._document.createComment("dom-portal");K.setAttachedHost(this),$.parentNode.insertBefore(ee,$),this._getRootNode().appendChild($),this._attachedPortal=K,super.setDisposeFn(()=>{ee.parentNode&&ee.parentNode.replaceChild($,ee)})},this._document=Y}get portal(){return this._attachedPortal}set portal(R){this.hasAttached()&&!R&&!this._isInitialized||(this.hasAttached()&&super.detach(),R&&super.attach(R),this._attachedPortal=R||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(R){R.setAttachedHost(this);const G=null!=R.viewContainerRef?R.viewContainerRef:this._viewContainerRef,K=(R.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(R.component),$=G.createComponent(K,G.length,R.injector||G.injector,R.projectableNodes||void 0);return G!==this._viewContainerRef&&this._getRootNode().appendChild($.hostView.rootNodes[0]),super.setDisposeFn(()=>$.destroy()),this._attachedPortal=R,this._attachedRef=$,this.attached.emit($),$}attachTemplatePortal(R){R.setAttachedHost(this);const G=this._viewContainerRef.createEmbeddedView(R.templateRef,R.context,{injector:R.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=R,this._attachedRef=G,this.attached.emit(G),G}_getRootNode(){const R=this._viewContainerRef.element.nativeElement;return R.nodeType===R.ELEMENT_NODE?R:R.parentNode}}return(F=I).\u0275fac=function(R){return new(R||F)(n.rXU(n.OM3),n.rXU(n.c1b),n.rXU(l.qQ))},F.\u0275dir=n.FsC({type:F,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[n.Mj6.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.Vt3]}),I})(),V=(()=>{var F;class I{}return(F=I).\u0275fac=function(R){return new(R||F)},F.\u0275mod=n.$C({type:F}),F.\u0275inj=n.G2t({}),I})()},37278:(Ue,W,d)=>{"use strict";d.d(W,{yg:()=>te,Gj:()=>ke,E$:()=>ae,d6:()=>Z,R:()=>re,E9:()=>De,Mr:()=>ee,Xj:()=>xe});var n=d(6364),l=d(58527),p=d(80583),m=d(43848),_=d(17053),P=d(36877),v=d(27594),O=d(62366),S=d(10399),y=d(39595),r=d(53461),i=d(90093),a=d(7583);class g{constructor(je){this.durationSelector=je}call(je,$e){return $e.subscribe(new c(je,this.durationSelector))}}class c extends a.gn{constructor(je,$e){super(je),this.durationSelector=$e,this.hasValue=!1}_next(je){if(this.value=je,this.hasValue=!0,!this.throttled){let $e;try{const{durationSelector:gt}=this;$e=gt(je)}catch(gt){return this.destination.error(gt)}const Oe=(0,a.tS)($e,new a.zA(this));!Oe||Oe.closed?this.clearThrottle():this.add(this.throttled=Oe)}}clearThrottle(){const{value:je,hasValue:$e,throttled:Oe}=this;Oe&&(this.remove(Oe),this.throttled=void 0,Oe.unsubscribe()),$e&&(this.value=void 0,this.hasValue=!1,this.destination.next(je))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var T=d(3496);function A(Me,je=i.b){return function h(Me){return function($e){return $e.lift(new g(Me))}}(()=>(0,T.O)(Me,je))}var L=d(8619),x=d(4208),V=d(34593),D=d(14749),F=d(72147),I=d(55833),k=d(72653),R=d(61142),G=d(51394),Y=d(40567);const K=["contentWrapper"],$=["*"],ee=new l.nKC("VIRTUAL_SCROLL_STRATEGY");class J{constructor(je,$e,Oe){this._scrolledIndexChange=new p.B7,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,r.F)()),this._viewport=null,this._itemSize=je,this._minBufferPx=$e,this._maxBufferPx=Oe}attach(je){this._viewport=je,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(je,$e,Oe){this._itemSize=je,this._minBufferPx=$e,this._maxBufferPx=Oe,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(je,$e){this._viewport&&this._viewport.scrollToOffset(je*this._itemSize,$e)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const je=this._viewport.getRenderedRange(),$e={start:je.start,end:je.end},Oe=this._viewport.getViewportSize(),gt=this._viewport.getDataLength();let qt=this._viewport.measureScrollOffset(),ye=this._itemSize>0?qt/this._itemSize:0;if($e.end>gt){const Ze=Math.ceil(Oe/this._itemSize),et=Math.max(0,Math.min(ye,gt-Ze));ye!=et&&(ye=et,qt=et*this._itemSize,$e.start=Math.floor(ye)),$e.end=Math.max(0,Math.min(gt,$e.start+Ze))}const Re=qt-$e.start*this._itemSize;if(Re<this._minBufferPx&&0!=$e.start){const Ze=Math.ceil((this._maxBufferPx-Re)/this._itemSize);$e.start=Math.max(0,$e.start-Ze),$e.end=Math.min(gt,Math.ceil(ye+(Oe+this._minBufferPx)/this._itemSize))}else{const Ze=$e.end*this._itemSize-(qt+Oe);if(Ze<this._minBufferPx&&$e.end!=gt){const et=Math.ceil((this._maxBufferPx-Ze)/this._itemSize);et>0&&($e.end=Math.min(gt,$e.end+et),$e.start=Math.max(0,Math.floor(ye-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange($e),this._viewport.setRenderedContentOffset(this._itemSize*$e.start),this._scrolledIndexChange.next(Math.floor(ye))}}function z(Me){return Me._scrollStrategy}let te=(()=>{var Me;class je{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new J(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(Oe){this._itemSize=(0,n.OE)(Oe)}get minBufferPx(){return this._minBufferPx}set minBufferPx(Oe){this._minBufferPx=(0,n.OE)(Oe)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(Oe){this._maxBufferPx=(0,n.OE)(Oe)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)},Me.\u0275dir=l.FsC({type:Me,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[l.Jv_([{provide:ee,useFactory:z,deps:[(0,l.Rfq)(()=>Me)]}]),l.OA$]}),je})(),re=(()=>{var Me;class je{constructor(Oe,gt,qt){this._ngZone=Oe,this._platform=gt,this._scrolled=new p.B7,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=qt}register(Oe){this.scrollContainers.has(Oe)||this.scrollContainers.set(Oe,Oe.elementScrolled().subscribe(()=>this._scrolled.next(Oe)))}deregister(Oe){const gt=this.scrollContainers.get(Oe);gt&&(gt.unsubscribe(),this.scrollContainers.delete(Oe))}scrolled(Oe=20){return this._platform.isBrowser?new _.c(gt=>{this._globalSubscription||this._addGlobalListener();const qt=Oe>0?this._scrolled.pipe(A(Oe)).subscribe(gt):this._scrolled.subscribe(gt);return this._scrolledCount++,()=>{qt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,m.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Oe,gt)=>this.deregister(gt)),this._scrolled.complete()}ancestorScrolled(Oe,gt){const qt=this.getAncestorScrollContainers(Oe);return this.scrolled(gt).pipe((0,L.p)(ye=>!ye||qt.indexOf(ye)>-1))}getAncestorScrollContainers(Oe){const gt=[];return this.scrollContainers.forEach((qt,ye)=>{this._scrollableContainsElement(ye,Oe)&>.push(ye)}),gt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Oe,gt){let qt=(0,n.i8)(gt),ye=Oe.getElementRef().nativeElement;do{if(qt==ye)return!0}while(qt=qt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Oe=this._getWindow();return(0,P.R)(Oe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)(l.KVO(l.SKi),l.KVO(k.OD),l.KVO(R.qQ,8))},Me.\u0275prov=l.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"}),je})(),ge=(()=>{var Me;class je{constructor(Oe,gt,qt,ye){this.elementRef=Oe,this.scrollDispatcher=gt,this.ngZone=qt,this.dir=ye,this._destroyed=new p.B7,this._elementScrolled=new _.c(Re=>this.ngZone.runOutsideAngular(()=>(0,P.R)(this.elementRef.nativeElement,"scroll").pipe((0,x.Q)(this._destroyed)).subscribe(Re)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Oe){const gt=this.elementRef.nativeElement,qt=this.dir&&"rtl"==this.dir.value;null==Oe.left&&(Oe.left=qt?Oe.end:Oe.start),null==Oe.right&&(Oe.right=qt?Oe.start:Oe.end),null!=Oe.bottom&&(Oe.top=gt.scrollHeight-gt.clientHeight-Oe.bottom),qt&&0!=(0,k.BD)()?(null!=Oe.left&&(Oe.right=gt.scrollWidth-gt.clientWidth-Oe.left),2==(0,k.BD)()?Oe.left=Oe.right:1==(0,k.BD)()&&(Oe.left=Oe.right?-Oe.right:Oe.right)):null!=Oe.right&&(Oe.left=gt.scrollWidth-gt.clientWidth-Oe.right),this._applyScrollToOptions(Oe)}_applyScrollToOptions(Oe){const gt=this.elementRef.nativeElement;(0,k.CZ)()?gt.scrollTo(Oe):(null!=Oe.top&&(gt.scrollTop=Oe.top),null!=Oe.left&&(gt.scrollLeft=Oe.left))}measureScrollOffset(Oe){const gt="left",ye=this.elementRef.nativeElement;if("top"==Oe)return ye.scrollTop;if("bottom"==Oe)return ye.scrollHeight-ye.clientHeight-ye.scrollTop;const Re=this.dir&&"rtl"==this.dir.value;return"start"==Oe?Oe=Re?"right":gt:"end"==Oe&&(Oe=Re?gt:"right"),Re&&2==(0,k.BD)()?Oe==gt?ye.scrollWidth-ye.clientWidth-ye.scrollLeft:ye.scrollLeft:Re&&1==(0,k.BD)()?Oe==gt?ye.scrollLeft+ye.scrollWidth-ye.clientWidth:-ye.scrollLeft:Oe==gt?ye.scrollLeft:ye.scrollWidth-ye.clientWidth-ye.scrollLeft}}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)(l.rXU(l.aKT),l.rXU(re),l.rXU(l.SKi),l.rXU(G.dS,8))},Me.\u0275dir=l.FsC({type:Me,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),je})(),xe=(()=>{var Me;class je{constructor(Oe,gt,qt){this._platform=Oe,this._change=new p.B7,this._changeListener=ye=>{this._change.next(ye)},this._document=qt,gt.runOutsideAngular(()=>{if(Oe.isBrowser){const ye=this._getWindow();ye.addEventListener("resize",this._changeListener),ye.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Oe=this._getWindow();Oe.removeEventListener("resize",this._changeListener),Oe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Oe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Oe}getViewportRect(){const Oe=this.getViewportScrollPosition(),{width:gt,height:qt}=this.getViewportSize();return{top:Oe.top,left:Oe.left,bottom:Oe.top+qt,right:Oe.left+gt,height:qt,width:gt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Oe=this._document,gt=this._getWindow(),qt=Oe.documentElement,ye=qt.getBoundingClientRect();return{top:-ye.top||Oe.body.scrollTop||gt.scrollY||qt.scrollTop||0,left:-ye.left||Oe.body.scrollLeft||gt.scrollX||qt.scrollLeft||0}}change(Oe=20){return Oe>0?this._change.pipe(A(Oe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Oe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Oe.innerWidth,height:Oe.innerHeight}:{width:0,height:0}}}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)(l.KVO(k.OD),l.KVO(l.SKi),l.KVO(R.qQ,8))},Me.\u0275prov=l.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"}),je})();const ue=new l.nKC("VIRTUAL_SCROLLABLE");let N=(()=>{var Me;class je extends ge{constructor(Oe,gt,qt,ye){super(Oe,gt,qt,ye)}measureViewportSize(Oe){const gt=this.elementRef.nativeElement;return"horizontal"===Oe?gt.clientWidth:gt.clientHeight}}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)(l.rXU(l.aKT),l.rXU(re),l.rXU(l.SKi),l.rXU(G.dS,8))},Me.\u0275dir=l.FsC({type:Me,features:[l.Vt3]}),je})();const ce=typeof requestAnimationFrame<"u"?v.X:O.$;let Z=(()=>{var Me;class je extends N{get orientation(){return this._orientation}set orientation(Oe){this._orientation!==Oe&&(this._orientation=Oe,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(Oe){this._appendOnly=(0,n.he)(Oe)}constructor(Oe,gt,qt,ye,Re,Ze,et,xt){super(Oe,Ze,qt,Re),this.elementRef=Oe,this._changeDetectorRef=gt,this._scrollStrategy=ye,this.scrollable=xt,this._platform=(0,l.WQX)(k.OD),this._detachedSubject=new p.B7,this._renderedRangeSubject=new p.B7,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new _.c(un=>this._scrollStrategy.scrolledIndexChange.subscribe(ct=>Promise.resolve().then(()=>this.ngZone.run(()=>un.next(ct))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=S.y.EMPTY,this._viewportChanges=et.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,V.Z)(null),A(0,ce),(0,x.Q)(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(Oe){this.ngZone.runOutsideAngular(()=>{this._forOf=Oe,this._forOf.dataStream.pipe((0,x.Q)(this._detachedSubject)).subscribe(gt=>{const qt=gt.length;qt!==this._dataLength&&(this._dataLength=qt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(Oe){return this.getElementRef().nativeElement.getBoundingClientRect()[Oe]}setTotalContentSize(Oe){this._totalContentSize!==Oe&&(this._totalContentSize=Oe,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(Oe){(function se(Me,je){return Me.start==je.start&&Me.end==je.end})(this._renderedRange,Oe)||(this.appendOnly&&(Oe={start:0,end:Math.max(this._renderedRange.end,Oe.end)}),this._renderedRangeSubject.next(this._renderedRange=Oe),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(Oe,gt="to-start"){Oe=this.appendOnly&&"to-start"===gt?0:Oe;const ye="horizontal"==this.orientation,Re=ye?"X":"Y";let et=`translate${Re}(${Number((ye&&this.dir&&"rtl"==this.dir.value?-1:1)*Oe)}px)`;this._renderedContentOffset=Oe,"to-end"===gt&&(et+=` translate${Re}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=et&&(this._renderedContentTransform=et,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(Oe,gt="auto"){const qt={behavior:gt};"horizontal"===this.orientation?qt.start=Oe:qt.top=Oe,this.scrollable.scrollTo(qt)}scrollToIndex(Oe,gt="auto"){this._scrollStrategy.scrollToIndex(Oe,gt)}measureScrollOffset(Oe){let gt;return gt=this.scrollable==this?qt=>super.measureScrollOffset(qt):qt=>this.scrollable.measureScrollOffset(qt),Math.max(0,gt(Oe??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(Oe){let gt;const Re="rtl"==this.dir?.value;gt="start"==Oe?Re?"right":"left":"end"==Oe?Re?"left":"right":Oe||("horizontal"===this.orientation?"left":"top");const Ze=this.scrollable.measureBoundingClientRectWithScrollOffset(gt);return this.elementRef.nativeElement.getBoundingClientRect()[gt]-Ze}measureRenderedContentSize(){const Oe=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Oe.offsetWidth:Oe.offsetHeight}measureRangeSize(Oe){return this._forOf?this._forOf.measureRangeSize(Oe,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(Oe){Oe&&this._runAfterChangeDetection.push(Oe),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const Oe=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const gt of Oe)gt()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(l.SKi),l.rXU(ee,8),l.rXU(G.dS,8),l.rXU(re),l.rXU(xe),l.rXU(ue,8))},Me.\u0275cmp=l.VBU({type:Me,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Oe,gt){if(1&Oe&&l.GBs(K,7),2&Oe){let qt;l.mGM(qt=l.lsd())&&(gt._contentWrapper=qt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Oe,gt){2&Oe&&l.AVh("cdk-virtual-scroll-orientation-horizontal","horizontal"===gt.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==gt.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[l.Jv_([{provide:ge,useFactory:($e,Oe)=>$e||Oe,deps:[[new l.Xx1,new l.y_5(ue)],Me]}]),l.Vt3,l.aNF],ngContentSelectors:$,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(Oe,gt){1&Oe&&(l.NAR(),l.j41(0,"div",1,0),l.SdG(2),l.k0s(),l.nrm(3,"div",2)),2&Oe&&(l.R7$(3),l.xc7("width",gt._totalContentWidth)("height",gt._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),je})();function de(Me,je,$e){if(!$e.getBoundingClientRect)return 0;const gt=$e.getBoundingClientRect();return"horizontal"===Me?"start"===je?gt.left:gt.right:"start"===je?gt.top:gt.bottom}let ae=(()=>{var Me;class je{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(Oe){this._cdkVirtualForOf=Oe,(0,Y.y4)(Oe)?this._dataSourceChanges.next(Oe):this._dataSourceChanges.next(new Y.hx((0,y.A)(Oe)?Oe:Array.from(Oe||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(Oe){this._needsUpdate=!0,this._cdkVirtualForTrackBy=Oe?(gt,qt)=>Oe(gt+(this._renderedRange?this._renderedRange.start:0),qt):void 0}set cdkVirtualForTemplate(Oe){Oe&&(this._needsUpdate=!0,this._template=Oe)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(Oe){this._viewRepeater.viewCacheSize=(0,n.OE)(Oe)}constructor(Oe,gt,qt,ye,Re,Ze){this._viewContainerRef=Oe,this._template=gt,this._differs=qt,this._viewRepeater=ye,this._viewport=Re,this.viewChange=new p.B7,this._dataSourceChanges=new p.B7,this.dataStream=this._dataSourceChanges.pipe((0,V.Z)(null),(0,D.J)(),(0,F.n)(([et,xt])=>this._changeDataSource(et,xt)),(0,I.t)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new p.B7,this.dataStream.subscribe(et=>{this._data=et,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,x.Q)(this._destroyed)).subscribe(et=>{this._renderedRange=et,this.viewChange.observers.length&&Ze.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(Oe,gt){if(Oe.start>=Oe.end)return 0;const qt=Oe.start-this._renderedRange.start,ye=Oe.end-Oe.start;let Re,Ze;for(let et=0;et<ye;et++){const xt=this._viewContainerRef.get(et+qt);if(xt&&xt.rootNodes.length){Re=Ze=xt.rootNodes[0];break}}for(let et=ye-1;et>-1;et--){const xt=this._viewContainerRef.get(et+qt);if(xt&&xt.rootNodes.length){Ze=xt.rootNodes[xt.rootNodes.length-1];break}}return Re&&Ze?de(gt,"end",Ze)-de(gt,"start",Re):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const Oe=this._differ.diff(this._renderedItems);Oe?this._applyChanges(Oe):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((Oe,gt)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(Oe,gt):gt)),this._needsUpdate=!0)}_changeDataSource(Oe,gt){return Oe&&Oe.disconnect(this),this._needsUpdate=!0,gt?gt.connect(this):(0,m.of)()}_updateContext(){const Oe=this._data.length;let gt=this._viewContainerRef.length;for(;gt--;){const qt=this._viewContainerRef.get(gt);qt.context.index=this._renderedRange.start+gt,qt.context.count=Oe,this._updateComputedContextProperties(qt.context),qt.detectChanges()}}_applyChanges(Oe){this._viewRepeater.applyChanges(Oe,this._viewContainerRef,(ye,Re,Ze)=>this._getEmbeddedViewArgs(ye,Ze),ye=>ye.item),Oe.forEachIdentityChange(ye=>{this._viewContainerRef.get(ye.currentIndex).context.$implicit=ye.item});const gt=this._data.length;let qt=this._viewContainerRef.length;for(;qt--;){const ye=this._viewContainerRef.get(qt);ye.context.index=this._renderedRange.start+qt,ye.context.count=gt,this._updateComputedContextProperties(ye.context)}}_updateComputedContextProperties(Oe){Oe.first=0===Oe.index,Oe.last=Oe.index===Oe.count-1,Oe.even=Oe.index%2==0,Oe.odd=!Oe.even}_getEmbeddedViewArgs(Oe,gt){return{templateRef:this._template,context:{$implicit:Oe.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:gt}}}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)(l.rXU(l.c1b),l.rXU(l.C4Q),l.rXU(l._q3),l.rXU(Y.sL),l.rXU(Z,4),l.rXU(l.SKi))},Me.\u0275dir=l.FsC({type:Me,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[l.Jv_([{provide:Y.sL,useClass:Y.DQ}])]}),je})(),ke=(()=>{var Me;class je{}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)},Me.\u0275mod=l.$C({type:Me}),Me.\u0275inj=l.G2t({}),je})(),De=(()=>{var Me;class je{}return(Me=je).\u0275fac=function(Oe){return new(Oe||Me)},Me.\u0275mod=l.$C({type:Me}),Me.\u0275inj=l.G2t({imports:[G.jI,ke,G.jI,ke]}),je})()},61142:(Ue,W,d)=>{"use strict";d.d(W,{AJ:()=>Ba,B3:()=>Rn,Jj:()=>ro,MD:()=>Ya,N0:()=>Di,Pc:()=>Bs,QT:()=>p,Sm:()=>c,Sq:()=>ki,T3:()=>_i,UE:()=>To,VF:()=>_,Vy:()=>ss,Xr:()=>ln,YU:()=>Pt,ZD:()=>m,_b:()=>xn,aZ:()=>A,bT:()=>qn,e1:()=>Qe,fG:()=>Be,fw:()=>T,hb:()=>h,hj:()=>S,lG:()=>$r,qQ:()=>v,ux:()=>Pe,vh:()=>tn});var n=d(58527);let l=null;function p(){return l}function m(He){l??=He}class _{}const v=new n.nKC("");let O=(()=>{var He;class Lt{historyGo(ft){throw new Error("")}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)},He.\u0275prov=n.jDH({token:He,factory:()=>(0,n.WQX)(y),providedIn:"platform"}),Lt})();const S=new n.nKC("");let y=(()=>{var He;class Lt extends O{constructor(){super(),this._doc=(0,n.WQX)(v),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return p().getBaseHref(this._doc)}onPopState(ft){const Gn=p().getGlobalEventTarget(this._doc,"window");return Gn.addEventListener("popstate",ft,!1),()=>Gn.removeEventListener("popstate",ft)}onHashChange(ft){const Gn=p().getGlobalEventTarget(this._doc,"window");return Gn.addEventListener("hashchange",ft,!1),()=>Gn.removeEventListener("hashchange",ft)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(ft){this._location.pathname=ft}pushState(ft,Gn,bi){this._history.pushState(ft,Gn,bi)}replaceState(ft,Gn,bi){this._history.replaceState(ft,Gn,bi)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ft=0){this._history.go(ft)}getState(){return this._history.state}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)},He.\u0275prov=n.jDH({token:He,factory:()=>new He,providedIn:"platform"}),Lt})();function r(He,Lt){if(0==He.length)return Lt;if(0==Lt.length)return He;let Kn=0;return He.endsWith("/")&&Kn++,Lt.startsWith("/")&&Kn++,2==Kn?He+Lt.substring(1):1==Kn?He+Lt:He+"/"+Lt}function i(He){const Lt=He.match(/#|\?|$/),Kn=Lt&&Lt.index||He.length;return He.slice(0,Kn-("/"===He[Kn-1]?1:0))+He.slice(Kn)}function a(He){return He&&"?"!==He[0]?"?"+He:He}let h=(()=>{var He;class Lt{historyGo(ft){throw new Error("")}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)},He.\u0275prov=n.jDH({token:He,factory:()=>(0,n.WQX)(c),providedIn:"root"}),Lt})();const g=new n.nKC("");let c=(()=>{var He;class Lt extends h{constructor(ft,Gn){super(),this._platformLocation=ft,this._removeListenerFns=[],this._baseHref=Gn??this._platformLocation.getBaseHrefFromDOM()??(0,n.WQX)(v).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ft){this._removeListenerFns.push(this._platformLocation.onPopState(ft),this._platformLocation.onHashChange(ft))}getBaseHref(){return this._baseHref}prepareExternalUrl(ft){return r(this._baseHref,ft)}path(ft=!1){const Gn=this._platformLocation.pathname+a(this._platformLocation.search),bi=this._platformLocation.hash;return bi&&ft?`${Gn}${bi}`:Gn}pushState(ft,Gn,bi,lr){const Ur=this.prepareExternalUrl(bi+a(lr));this._platformLocation.pushState(ft,Gn,Ur)}replaceState(ft,Gn,bi,lr){const Ur=this.prepareExternalUrl(bi+a(lr));this._platformLocation.replaceState(ft,Gn,Ur)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ft=0){this._platformLocation.historyGo?.(ft)}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.KVO(O),n.KVO(g,8))},He.\u0275prov=n.jDH({token:He,factory:He.\u0275fac,providedIn:"root"}),Lt})(),T=(()=>{var He;class Lt extends h{constructor(ft,Gn){super(),this._platformLocation=ft,this._baseHref="",this._removeListenerFns=[],null!=Gn&&(this._baseHref=Gn)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ft){this._removeListenerFns.push(this._platformLocation.onPopState(ft),this._platformLocation.onHashChange(ft))}getBaseHref(){return this._baseHref}path(ft=!1){const Gn=this._platformLocation.hash??"#";return Gn.length>0?Gn.substring(1):Gn}prepareExternalUrl(ft){const Gn=r(this._baseHref,ft);return Gn.length>0?"#"+Gn:Gn}pushState(ft,Gn,bi,lr){let Ur=this.prepareExternalUrl(bi+a(lr));0==Ur.length&&(Ur=this._platformLocation.pathname),this._platformLocation.pushState(ft,Gn,Ur)}replaceState(ft,Gn,bi,lr){let Ur=this.prepareExternalUrl(bi+a(lr));0==Ur.length&&(Ur=this._platformLocation.pathname),this._platformLocation.replaceState(ft,Gn,Ur)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ft=0){this._platformLocation.historyGo?.(ft)}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.KVO(O),n.KVO(g,8))},He.\u0275prov=n.jDH({token:He,factory:He.\u0275fac}),Lt})(),A=(()=>{var He;class Lt{constructor(ft){this._subject=new n.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ft;const Gn=this._locationStrategy.getBaseHref();this._basePath=function D(He){if(new RegExp("^(https?:)?//").test(He)){const[,Kn]=He.split(/\/\/[^\/]+/);return Kn}return He}(i(V(Gn))),this._locationStrategy.onPopState(bi=>{this._subject.emit({url:this.path(!0),pop:!0,state:bi.state,type:bi.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ft=!1){return this.normalize(this._locationStrategy.path(ft))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ft,Gn=""){return this.path()==this.normalize(ft+a(Gn))}normalize(ft){return Lt.stripTrailingSlash(function x(He,Lt){if(!He||!Lt.startsWith(He))return Lt;const Kn=Lt.substring(He.length);return""===Kn||["/",";","?","#"].includes(Kn[0])?Kn:Lt}(this._basePath,V(ft)))}prepareExternalUrl(ft){return ft&&"/"!==ft[0]&&(ft="/"+ft),this._locationStrategy.prepareExternalUrl(ft)}go(ft,Gn="",bi=null){this._locationStrategy.pushState(bi,"",ft,Gn),this._notifyUrlChangeListeners(this.prepareExternalUrl(ft+a(Gn)),bi)}replaceState(ft,Gn="",bi=null){this._locationStrategy.replaceState(bi,"",ft,Gn),this._notifyUrlChangeListeners(this.prepareExternalUrl(ft+a(Gn)),bi)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ft=0){this._locationStrategy.historyGo?.(ft)}onUrlChange(ft){return this._urlChangeListeners.push(ft),this._urlChangeSubscription??=this.subscribe(Gn=>{this._notifyUrlChangeListeners(Gn.url,Gn.state)}),()=>{const Gn=this._urlChangeListeners.indexOf(ft);this._urlChangeListeners.splice(Gn,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ft="",Gn){this._urlChangeListeners.forEach(bi=>bi(ft,Gn))}subscribe(ft,Gn,bi){return this._subject.subscribe({next:ft,error:Gn,complete:bi})}}return(He=Lt).normalizeQueryParams=a,He.joinWithSlash=r,He.stripTrailingSlash=i,He.\u0275fac=function(ft){return new(ft||He)(n.KVO(h))},He.\u0275prov=n.jDH({token:He,factory:()=>function L(){return new A((0,n.KVO)(h))}(),providedIn:"root"}),Lt})();function V(He){return He.replace(/\/index.html$/,"")}var R=function(He){return He[He.Format=0]="Format",He[He.Standalone=1]="Standalone",He}(R||{}),G=function(He){return He[He.Narrow=0]="Narrow",He[He.Abbreviated=1]="Abbreviated",He[He.Wide=2]="Wide",He[He.Short=3]="Short",He}(G||{}),Y=function(He){return He[He.Short=0]="Short",He[He.Medium=1]="Medium",He[He.Long=2]="Long",He[He.Full=3]="Full",He}(Y||{});const K={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function oe(He,Lt){return je((0,n.H5H)(He)[n.KH2.DateFormat],Lt)}function xe(He,Lt){return je((0,n.H5H)(He)[n.KH2.TimeFormat],Lt)}function ue(He,Lt){return je((0,n.H5H)(He)[n.KH2.DateTimeFormat],Lt)}function N(He,Lt){const Kn=(0,n.H5H)(He),ft=Kn[n.KH2.NumberSymbols][Lt];if(typeof ft>"u"){if(Lt===K.CurrencyDecimal)return Kn[n.KH2.NumberSymbols][K.Decimal];if(Lt===K.CurrencyGroup)return Kn[n.KH2.NumberSymbols][K.Group]}return ft}function _e(He){if(!He[n.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${He[n.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function je(He,Lt){for(let Kn=Lt;Kn>-1;Kn--)if(typeof He[Kn]<"u")return He[Kn];throw new Error("Locale data API: locale data undefined")}function $e(He){const[Lt,Kn]=He.split(":");return{hours:+Lt,minutes:+Kn}}const ye=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Re={},Ze=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var et=function(He){return He[He.Short=0]="Short",He[He.ShortGMT=1]="ShortGMT",He[He.Long=2]="Long",He[He.Extended=3]="Extended",He}(et||{}),xt=function(He){return He[He.FullYear=0]="FullYear",He[He.Month=1]="Month",He[He.Date=2]="Date",He[He.Hours=3]="Hours",He[He.Minutes=4]="Minutes",He[He.Seconds=5]="Seconds",He[He.FractionalSeconds=6]="FractionalSeconds",He[He.Day=7]="Day",He}(xt||{}),un=function(He){return He[He.DayPeriods=0]="DayPeriods",He[He.Days=1]="Days",He[He.Months=2]="Months",He[He.Eras=3]="Eras",He}(un||{});function ct(He,Lt,Kn,ft){let Gn=function jn(He){if(nt(He))return He;if("number"==typeof He&&!isNaN(He))return new Date(He);if("string"==typeof He){if(He=He.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(He)){const[Gn,bi=1,lr=1]=He.split("-").map(Ur=>+Ur);return Gt(Gn,bi-1,lr)}const Kn=parseFloat(He);if(!isNaN(He-Kn))return new Date(Kn);let ft;if(ft=He.match(ye))return function wn(He){const Lt=new Date(0);let Kn=0,ft=0;const Gn=He[8]?Lt.setUTCFullYear:Lt.setFullYear,bi=He[8]?Lt.setUTCHours:Lt.setHours;He[9]&&(Kn=Number(He[9]+He[10]),ft=Number(He[9]+He[11])),Gn.call(Lt,Number(He[1]),Number(He[2])-1,Number(He[3]));const lr=Number(He[4]||0)-Kn,Ur=Number(He[5]||0)-ft,ns=Number(He[6]||0),No=Math.floor(1e3*parseFloat("0."+(He[7]||0)));return bi.call(Lt,lr,Ur,ns,No),Lt}(ft)}const Lt=new Date(He);if(!nt(Lt))throw new Error(`Unable to convert "${He}" into a date`);return Lt}(He);Lt=pn(Kn,Lt)||Lt;let Ur,lr=[];for(;Lt;){if(Ur=Ze.exec(Lt),!Ur){lr.push(Lt);break}{lr=lr.concat(Ur.slice(1));const ds=lr.pop();if(!ds)break;Lt=ds}}let ns=Gn.getTimezoneOffset();ft&&(ns=Ct(ft,ns),Gn=function Ut(He,Lt,Kn){const ft=Kn?-1:1,Gn=He.getTimezoneOffset();return function it(He,Lt){return(He=new Date(He.getTime())).setMinutes(He.getMinutes()+Lt),He}(He,ft*(Ct(Lt,Gn)-Gn))}(Gn,ft,!0));let No="";return lr.forEach(ds=>{const Yo=function vt(He){if(zt[He])return zt[He];let Lt;switch(He){case"G":case"GG":case"GGG":Lt=fn(un.Eras,G.Abbreviated);break;case"GGGG":Lt=fn(un.Eras,G.Wide);break;case"GGGGG":Lt=fn(un.Eras,G.Narrow);break;case"y":Lt=En(xt.FullYear,1,0,!1,!0);break;case"yy":Lt=En(xt.FullYear,2,0,!0,!0);break;case"yyy":Lt=En(xt.FullYear,3,0,!1,!0);break;case"yyyy":Lt=En(xt.FullYear,4,0,!1,!0);break;case"Y":Lt=Ne(1);break;case"YY":Lt=Ne(2,!0);break;case"YYY":Lt=Ne(3);break;case"YYYY":Lt=Ne(4);break;case"M":case"L":Lt=En(xt.Month,1,1);break;case"MM":case"LL":Lt=En(xt.Month,2,1);break;case"MMM":Lt=fn(un.Months,G.Abbreviated);break;case"MMMM":Lt=fn(un.Months,G.Wide);break;case"MMMMM":Lt=fn(un.Months,G.Narrow);break;case"LLL":Lt=fn(un.Months,G.Abbreviated,R.Standalone);break;case"LLLL":Lt=fn(un.Months,G.Wide,R.Standalone);break;case"LLLLL":Lt=fn(un.Months,G.Narrow,R.Standalone);break;case"w":Lt=ri(1);break;case"ww":Lt=ri(2);break;case"W":Lt=ri(1,!0);break;case"d":Lt=En(xt.Date,1);break;case"dd":Lt=En(xt.Date,2);break;case"c":case"cc":Lt=En(xt.Day,1);break;case"ccc":Lt=fn(un.Days,G.Abbreviated,R.Standalone);break;case"cccc":Lt=fn(un.Days,G.Wide,R.Standalone);break;case"ccccc":Lt=fn(un.Days,G.Narrow,R.Standalone);break;case"cccccc":Lt=fn(un.Days,G.Short,R.Standalone);break;case"E":case"EE":case"EEE":Lt=fn(un.Days,G.Abbreviated);break;case"EEEE":Lt=fn(un.Days,G.Wide);break;case"EEEEE":Lt=fn(un.Days,G.Narrow);break;case"EEEEEE":Lt=fn(un.Days,G.Short);break;case"a":case"aa":case"aaa":Lt=fn(un.DayPeriods,G.Abbreviated);break;case"aaaa":Lt=fn(un.DayPeriods,G.Wide);break;case"aaaaa":Lt=fn(un.DayPeriods,G.Narrow);break;case"b":case"bb":case"bbb":Lt=fn(un.DayPeriods,G.Abbreviated,R.Standalone,!0);break;case"bbbb":Lt=fn(un.DayPeriods,G.Wide,R.Standalone,!0);break;case"bbbbb":Lt=fn(un.DayPeriods,G.Narrow,R.Standalone,!0);break;case"B":case"BB":case"BBB":Lt=fn(un.DayPeriods,G.Abbreviated,R.Format,!0);break;case"BBBB":Lt=fn(un.DayPeriods,G.Wide,R.Format,!0);break;case"BBBBB":Lt=fn(un.DayPeriods,G.Narrow,R.Format,!0);break;case"h":Lt=En(xt.Hours,1,-12);break;case"hh":Lt=En(xt.Hours,2,-12);break;case"H":Lt=En(xt.Hours,1);break;case"HH":Lt=En(xt.Hours,2);break;case"m":Lt=En(xt.Minutes,1);break;case"mm":Lt=En(xt.Minutes,2);break;case"s":Lt=En(xt.Seconds,1);break;case"ss":Lt=En(xt.Seconds,2);break;case"S":Lt=En(xt.FractionalSeconds,1);break;case"SS":Lt=En(xt.FractionalSeconds,2);break;case"SSS":Lt=En(xt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Lt=nn(et.Short);break;case"ZZZZZ":Lt=nn(et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Lt=nn(et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Lt=nn(et.Long);break;default:return null}return zt[He]=Lt,Lt}(ds);No+=Yo?Yo(Gn,Kn,ns):"''"===ds?"'":ds.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),No}function Gt(He,Lt,Kn){const ft=new Date(0);return ft.setFullYear(He,Lt,Kn),ft.setHours(0,0,0),ft}function pn(He,Lt){const Kn=function ee(He){return(0,n.H5H)(He)[n.KH2.LocaleId]}(He);if(Re[Kn]??={},Re[Kn][Lt])return Re[Kn][Lt];let ft="";switch(Lt){case"shortDate":ft=oe(He,Y.Short);break;case"mediumDate":ft=oe(He,Y.Medium);break;case"longDate":ft=oe(He,Y.Long);break;case"fullDate":ft=oe(He,Y.Full);break;case"shortTime":ft=xe(He,Y.Short);break;case"mediumTime":ft=xe(He,Y.Medium);break;case"longTime":ft=xe(He,Y.Long);break;case"fullTime":ft=xe(He,Y.Full);break;case"short":const Gn=pn(He,"shortTime"),bi=pn(He,"shortDate");ft=st(ue(He,Y.Short),[Gn,bi]);break;case"medium":const lr=pn(He,"mediumTime"),Ur=pn(He,"mediumDate");ft=st(ue(He,Y.Medium),[lr,Ur]);break;case"long":const ns=pn(He,"longTime"),No=pn(He,"longDate");ft=st(ue(He,Y.Long),[ns,No]);break;case"full":const ds=pn(He,"fullTime"),Yo=pn(He,"fullDate");ft=st(ue(He,Y.Full),[ds,Yo])}return ft&&(Re[Kn][Lt]=ft),ft}function st(He,Lt){return Lt&&(He=He.replace(/\{([^}]+)}/g,function(Kn,ft){return null!=Lt&&ft in Lt?Lt[ft]:Kn})),He}function mn(He,Lt,Kn="-",ft,Gn){let bi="";(He<0||Gn&&He<=0)&&(Gn?He=1-He:(He=-He,bi=Kn));let lr=String(He);for(;lr.length<Lt;)lr="0"+lr;return ft&&(lr=lr.slice(lr.length-Lt)),bi+lr}function En(He,Lt,Kn=0,ft=!1,Gn=!1){return function(bi,lr){let Ur=function Cn(He,Lt){switch(He){case xt.FullYear:return Lt.getFullYear();case xt.Month:return Lt.getMonth();case xt.Date:return Lt.getDate();case xt.Hours:return Lt.getHours();case xt.Minutes:return Lt.getMinutes();case xt.Seconds:return Lt.getSeconds();case xt.FractionalSeconds:return Lt.getMilliseconds();case xt.Day:return Lt.getDay();default:throw new Error(`Unknown DateType value "${He}".`)}}(He,bi);if((Kn>0||Ur>-Kn)&&(Ur+=Kn),He===xt.Hours)0===Ur&&-12===Kn&&(Ur=12);else if(He===xt.FractionalSeconds)return function Bn(He,Lt){return mn(He,3).substring(0,Lt)}(Ur,Lt);const ns=N(lr,K.MinusSign);return mn(Ur,Lt,ns,ft,Gn)}}function fn(He,Lt,Kn=R.Format,ft=!1){return function(Gn,bi){return function dt(He,Lt,Kn,ft,Gn,bi){switch(Kn){case un.Months:return function te(He,Lt,Kn){const ft=(0,n.H5H)(He),bi=je([ft[n.KH2.MonthsFormat],ft[n.KH2.MonthsStandalone]],Lt);return je(bi,Kn)}(Lt,Gn,ft)[He.getMonth()];case un.Days:return function z(He,Lt,Kn){const ft=(0,n.H5H)(He),bi=je([ft[n.KH2.DaysFormat],ft[n.KH2.DaysStandalone]],Lt);return je(bi,Kn)}(Lt,Gn,ft)[He.getDay()];case un.DayPeriods:const lr=He.getHours(),Ur=He.getMinutes();if(bi){const No=function ke(He){const Lt=(0,n.H5H)(He);return _e(Lt),(Lt[n.KH2.ExtraData][2]||[]).map(ft=>"string"==typeof ft?$e(ft):[$e(ft[0]),$e(ft[1])])}(Lt),ds=function De(He,Lt,Kn){const ft=(0,n.H5H)(He);_e(ft);const bi=je([ft[n.KH2.ExtraData][0],ft[n.KH2.ExtraData][1]],Lt)||[];return je(bi,Kn)||[]}(Lt,Gn,ft),Yo=No.findIndex(Go=>{if(Array.isArray(Go)){const[Ds,Qo]=Go,Vo=lr>=Ds.hours&&Ur>=Ds.minutes,Ir=lr<Qo.hours||lr===Qo.hours&&Ur<Qo.minutes;if(Ds.hours<Qo.hours){if(Vo&&Ir)return!0}else if(Vo||Ir)return!0}else if(Go.hours===lr&&Go.minutes===Ur)return!0;return!1});if(-1!==Yo)return ds[Yo]}return function J(He,Lt,Kn){const ft=(0,n.H5H)(He),bi=je([ft[n.KH2.DayPeriodsFormat],ft[n.KH2.DayPeriodsStandalone]],Lt);return je(bi,Kn)}(Lt,Gn,ft)[lr<12?0:1];case un.Eras:return function X(He,Lt){return je((0,n.H5H)(He)[n.KH2.Eras],Lt)}(Lt,ft)[He.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Kn}`)}}(Gn,bi,He,Lt,Kn,ft)}}function nn(He){return function(Lt,Kn,ft){const Gn=-1*ft,bi=N(Kn,K.MinusSign),lr=Gn>0?Math.floor(Gn/60):Math.ceil(Gn/60);switch(He){case et.Short:return(Gn>=0?"+":"")+mn(lr,2,bi)+mn(Math.abs(Gn%60),2,bi);case et.ShortGMT:return"GMT"+(Gn>=0?"+":"")+mn(lr,1,bi);case et.Long:return"GMT"+(Gn>=0?"+":"")+mn(lr,2,bi)+":"+mn(Math.abs(Gn%60),2,bi);case et.Extended:return 0===ft?"Z":(Gn>=0?"+":"")+mn(lr,2,bi)+":"+mn(Math.abs(Gn%60),2,bi);default:throw new Error(`Unknown zone width "${He}"`)}}}const yn=0,Xn=4;function ai(He){const Lt=He.getDay(),Kn=0===Lt?-3:Xn-Lt;return Gt(He.getFullYear(),He.getMonth(),He.getDate()+Kn)}function ri(He,Lt=!1){return function(Kn,ft){let Gn;if(Lt){const bi=new Date(Kn.getFullYear(),Kn.getMonth(),1).getDay()-1,lr=Kn.getDate();Gn=1+Math.floor((lr+bi)/7)}else{const bi=ai(Kn),lr=function rn(He){const Lt=Gt(He,yn,1).getDay();return Gt(He,0,1+(Lt<=Xn?Xn:Xn+7)-Lt)}(bi.getFullYear()),Ur=bi.getTime()-lr.getTime();Gn=1+Math.round(Ur/6048e5)}return mn(Gn,He,N(ft,K.MinusSign))}}function Ne(He,Lt=!1){return function(Kn,ft){return mn(ai(Kn).getFullYear(),He,N(ft,K.MinusSign),Lt)}}const zt={};function Ct(He,Lt){He=He.replace(/:/g,"");const Kn=Date.parse("Jan 01, 1970 00:00:00 "+He)/6e4;return isNaN(Kn)?Lt:Kn}function nt(He){return He instanceof Date&&!isNaN(He.valueOf())}function xn(He,Lt){Lt=encodeURIComponent(Lt);for(const Kn of He.split(";")){const ft=Kn.indexOf("="),[Gn,bi]=-1==ft?[Kn,""]:[Kn.slice(0,ft),Kn.slice(ft+1)];if(Gn.trim()===Lt)return decodeURIComponent(bi)}return null}const mi=/\s+/,$n=[];let Pt=(()=>{var He;class Lt{constructor(ft,Gn){this._ngEl=ft,this._renderer=Gn,this.initialClasses=$n,this.stateMap=new Map}set klass(ft){this.initialClasses=null!=ft?ft.trim().split(mi):$n}set ngClass(ft){this.rawClass="string"==typeof ft?ft.trim().split(mi):ft}ngDoCheck(){for(const Gn of this.initialClasses)this._updateState(Gn,!0);const ft=this.rawClass;if(Array.isArray(ft)||ft instanceof Set)for(const Gn of ft)this._updateState(Gn,!0);else if(null!=ft)for(const Gn of Object.keys(ft))this._updateState(Gn,!!ft[Gn]);this._applyStateDiff()}_updateState(ft,Gn){const bi=this.stateMap.get(ft);void 0!==bi?(bi.enabled!==Gn&&(bi.changed=!0,bi.enabled=Gn),bi.touched=!0):this.stateMap.set(ft,{enabled:Gn,changed:!0,touched:!0})}_applyStateDiff(){for(const ft of this.stateMap){const Gn=ft[0],bi=ft[1];bi.changed?(this._toggleClass(Gn,bi.enabled),bi.changed=!1):bi.touched||(bi.enabled&&this._toggleClass(Gn,!1),this.stateMap.delete(Gn)),bi.touched=!1}}_toggleClass(ft,Gn){(ft=ft.trim()).length>0&&ft.split(mi).forEach(bi=>{Gn?this._renderer.addClass(this._ngEl.nativeElement,bi):this._renderer.removeClass(this._ngEl.nativeElement,bi)})}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.aKT),n.rXU(n.sFG))},He.\u0275dir=n.FsC({type:He,selectors:[["","ngClass",""]],inputs:{klass:[n.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0}),Lt})();class Jt{constructor(Lt,Kn,ft,Gn){this.$implicit=Lt,this.ngForOf=Kn,this.index=ft,this.count=Gn}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ki=(()=>{var He;class Lt{set ngForOf(ft){this._ngForOf=ft,this._ngForOfDirty=!0}set ngForTrackBy(ft){this._trackByFn=ft}get ngForTrackBy(){return this._trackByFn}constructor(ft,Gn,bi){this._viewContainer=ft,this._template=Gn,this._differs=bi,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(ft){ft&&(this._template=ft)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ft=this._ngForOf;!this._differ&&ft&&(this._differ=this._differs.find(ft).create(this.ngForTrackBy))}if(this._differ){const ft=this._differ.diff(this._ngForOf);ft&&this._applyChanges(ft)}}_applyChanges(ft){const Gn=this._viewContainer;ft.forEachOperation((bi,lr,Ur)=>{if(null==bi.previousIndex)Gn.createEmbeddedView(this._template,new Jt(bi.item,this._ngForOf,-1,-1),null===Ur?void 0:Ur);else if(null==Ur)Gn.remove(null===lr?void 0:lr);else if(null!==lr){const ns=Gn.get(lr);Gn.move(ns,Ur),Fr(ns,bi)}});for(let bi=0,lr=Gn.length;bi<lr;bi++){const ns=Gn.get(bi).context;ns.index=bi,ns.count=lr,ns.ngForOf=this._ngForOf}ft.forEachIdentityChange(bi=>{Fr(Gn.get(bi.currentIndex),bi)})}static ngTemplateContextGuard(ft,Gn){return!0}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(n._q3))},He.\u0275dir=n.FsC({type:He,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Lt})();function Fr(He,Lt){He.context.$implicit=Lt.item}let qn=(()=>{var He;class Lt{constructor(ft,Gn){this._viewContainer=ft,this._context=new Sr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Gn}set ngIf(ft){this._context.$implicit=this._context.ngIf=ft,this._updateView()}set ngIfThen(ft){ni("ngIfThen",ft),this._thenTemplateRef=ft,this._thenViewRef=null,this._updateView()}set ngIfElse(ft){ni("ngIfElse",ft),this._elseTemplateRef=ft,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(ft,Gn){return!0}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.c1b),n.rXU(n.C4Q))},He.\u0275dir=n.FsC({type:He,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Lt})();class Sr{constructor(){this.$implicit=null,this.ngIf=null}}function ni(He,Lt){if(Lt&&!Lt.createEmbeddedView)throw new Error(`${He} must be a TemplateRef, but received '${(0,n.Tbb)(Lt)}'.`)}class Ee{constructor(Lt,Kn){this._viewContainerRef=Lt,this._templateRef=Kn,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Lt){Lt&&!this._created?this.create():!Lt&&this._created&&this.destroy()}}let Pe=(()=>{var He;class Lt{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ft){this._ngSwitch=ft,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ft){this._defaultViews.push(ft)}_matchCase(ft){const Gn=ft===this._ngSwitch;return this._lastCasesMatched||=Gn,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Gn}_updateDefaultCases(ft){if(this._defaultViews.length>0&&ft!==this._defaultUsed){this._defaultUsed=ft;for(const Gn of this._defaultViews)Gn.enforceState(ft)}}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)},He.\u0275dir=n.FsC({type:He,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),Lt})(),Qe=(()=>{var He;class Lt{constructor(ft,Gn,bi){this.ngSwitch=bi,bi._addCase(),this._view=new Ee(ft,Gn)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(Pe,9))},He.\u0275dir=n.FsC({type:He,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Lt})(),Be=(()=>{var He;class Lt{constructor(ft,Gn,bi){bi._addDefault(new Ee(ft,Gn))}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(Pe,9))},He.\u0275dir=n.FsC({type:He,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Lt})(),Rn=(()=>{var He;class Lt{constructor(ft,Gn,bi){this._ngEl=ft,this._differs=Gn,this._renderer=bi,this._ngStyle=null,this._differ=null}set ngStyle(ft){this._ngStyle=ft,!this._differ&&ft&&(this._differ=this._differs.find(ft).create())}ngDoCheck(){if(this._differ){const ft=this._differ.diff(this._ngStyle);ft&&this._applyChanges(ft)}}_setStyle(ft,Gn){const[bi,lr]=ft.split("."),Ur=-1===bi.indexOf("-")?void 0:n.czy.DashCase;null!=Gn?this._renderer.setStyle(this._ngEl.nativeElement,bi,lr?`${Gn}${lr}`:Gn,Ur):this._renderer.removeStyle(this._ngEl.nativeElement,bi,Ur)}_applyChanges(ft){ft.forEachRemovedItem(Gn=>this._setStyle(Gn.key,null)),ft.forEachAddedItem(Gn=>this._setStyle(Gn.key,Gn.currentValue)),ft.forEachChangedItem(Gn=>this._setStyle(Gn.key,Gn.currentValue))}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.aKT),n.rXU(n.MKu),n.rXU(n.sFG))},He.\u0275dir=n.FsC({type:He,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Lt})(),_i=(()=>{var He;class Lt{constructor(ft){this._viewContainerRef=ft,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(ft){if(this._shouldRecreateView(ft)){const Gn=this._viewContainerRef;if(this._viewRef&&Gn.remove(Gn.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const bi=this._createContextForwardProxy();this._viewRef=Gn.createEmbeddedView(this.ngTemplateOutlet,bi,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(ft){return!!ft.ngTemplateOutlet||!!ft.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(ft,Gn,bi)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Gn,bi),get:(ft,Gn,bi)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Gn,bi)}})}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.c1b))},He.\u0275dir=n.FsC({type:He,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.OA$]}),Lt})();function hr(He,Lt){return new n.wOt(2100,!1)}class Qr{createSubscription(Lt,Kn){return(0,n.O8t)(()=>Lt.subscribe({next:Kn,error:ft=>{throw ft}}))}dispose(Lt){(0,n.O8t)(()=>Lt.unsubscribe())}}class Yr{createSubscription(Lt,Kn){return Lt.then(Kn,ft=>{throw ft})}dispose(Lt){}}const no=new Yr,Tr=new Qr;let ro=(()=>{var He;class Lt{constructor(ft){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ft}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ft){if(!this._obj){if(ft)try{this.markForCheckOnValueUpdate=!1,this._subscribe(ft)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return ft!==this._obj?(this._dispose(),this.transform(ft)):this._latestValue}_subscribe(ft){this._obj=ft,this._strategy=this._selectStrategy(ft),this._subscription=this._strategy.createSubscription(ft,Gn=>this._updateLatestValue(ft,Gn))}_selectStrategy(ft){if((0,n.jNT)(ft))return no;if((0,n.zjR)(ft))return Tr;throw hr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ft,Gn){ft===this._obj&&(this._latestValue=Gn,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.gRc,16))},He.\u0275pipe=n.EJ8({name:"async",type:He,pure:!1,standalone:!0}),Lt})(),Bs=(()=>{var He;class Lt{transform(ft){if(null==ft)return null;if("string"!=typeof ft)throw hr();return ft.toUpperCase()}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)},He.\u0275pipe=n.EJ8({name:"uppercase",type:He,pure:!0,standalone:!0}),Lt})();const dr=new n.nKC(""),Tn=new n.nKC("");let tn=(()=>{var He;class Lt{constructor(ft,Gn,bi){this.locale=ft,this.defaultTimezone=Gn,this.defaultOptions=bi}transform(ft,Gn,bi,lr){if(null==ft||""===ft||ft!=ft)return null;try{return ct(ft,Gn??this.defaultOptions?.dateFormat??"mediumDate",lr||this.locale,bi??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Ur){throw hr()}}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.xe9,16),n.rXU(dr,24),n.rXU(Tn,24))},He.\u0275pipe=n.EJ8({name:"date",type:He,pure:!0,standalone:!0}),Lt})(),$r=(()=>{var He;class Lt{constructor(ft){this.differs=ft,this.keyValues=[],this.compareFn=ko}transform(ft,Gn=ko){if(!ft||!(ft instanceof Map)&&"object"!=typeof ft)return null;this.differ??=this.differs.find(ft).create();const bi=this.differ.diff(ft),lr=Gn!==this.compareFn;return bi&&(this.keyValues=[],bi.forEachItem(Ur=>{this.keyValues.push(function yr(He,Lt){return{key:He,value:Lt}}(Ur.key,Ur.currentValue))})),(bi||lr)&&(this.keyValues.sort(Gn),this.compareFn=Gn),this.keyValues}}return(He=Lt).\u0275fac=function(ft){return new(ft||He)(n.rXU(n.MKu,16))},He.\u0275pipe=n.EJ8({name:"keyvalue",type:He,pure:!1,standalone:!0}),Lt})();function ko(He,Lt){const Kn=He.key,ft=Lt.key;if(Kn===ft)return 0;if(void 0===Kn)return 1;if(void 0===ft)return-1;if(null===Kn)return 1;if(null===ft)return-1;if("string"==typeof Kn&&"string"==typeof ft)return Kn<ft?-1:1;if("number"==typeof Kn&&"number"==typeof ft)return Kn-ft;if("boolean"==typeof Kn&&"boolean"==typeof ft)return Kn<ft?-1:1;const Gn=String(Kn),bi=String(ft);return Gn==bi?0:Gn<bi?-1:1}let Ya=(()=>{var He;class Lt{}return(He=Lt).\u0275fac=function(ft){return new(ft||He)},He.\u0275mod=n.$C({type:He}),He.\u0275inj=n.G2t({}),Lt})();const Ba="browser",Pa="server";function To(He){return He===Ba}function ss(He){return He===Pa}let ln=(()=>{var He;class Lt{}return(He=Lt).\u0275prov=(0,n.jDH)({token:He,providedIn:"root",factory:()=>To((0,n.WQX)(n.Agw))?new Pi((0,n.WQX)(v),window):new yi}),Lt})();class Pi{constructor(Lt,Kn){this.document=Lt,this.window=Kn,this.offset=()=>[0,0]}setOffset(Lt){this.offset=Array.isArray(Lt)?()=>Lt:Lt}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Lt){this.window.scrollTo(Lt[0],Lt[1])}scrollToAnchor(Lt){const Kn=function Qi(He,Lt){const Kn=He.getElementById(Lt)||He.getElementsByName(Lt)[0];if(Kn)return Kn;if("function"==typeof He.createTreeWalker&&He.body&&"function"==typeof He.body.attachShadow){const ft=He.createTreeWalker(He.body,NodeFilter.SHOW_ELEMENT);let Gn=ft.currentNode;for(;Gn;){const bi=Gn.shadowRoot;if(bi){const lr=bi.getElementById(Lt)||bi.querySelector(`[name="${Lt}"]`);if(lr)return lr}Gn=ft.nextNode()}}return null}(this.document,Lt);Kn&&(this.scrollToElement(Kn),Kn.focus())}setHistoryScrollRestoration(Lt){this.window.history.scrollRestoration=Lt}scrollToElement(Lt){const Kn=Lt.getBoundingClientRect(),ft=Kn.left+this.window.pageXOffset,Gn=Kn.top+this.window.pageYOffset,bi=this.offset();this.window.scrollTo(ft-bi[0],Gn-bi[1])}}class yi{setOffset(Lt){}getScrollPosition(){return[0,0]}scrollToPosition(Lt){}scrollToAnchor(Lt){}setHistoryScrollRestoration(Lt){}}class Di{}},94485:(Ue,W,d)=>{"use strict";d.d(W,{JV:()=>a,Nl:()=>D,Qq:()=>oe,cS:()=>te,q1:()=>Un,yz:()=>X}),d(70650);var l=d(58527),p=d(43848),m=d(17053),_=d(19392),P=d(79539),v=d(8619),O=d(83915),S=d(43615),y=d(72147),r=d(61142);class i{}class a{}class h{constructor(xn){this.normalizedNames=new Map,this.lazyUpdate=null,xn?"string"==typeof xn?this.lazyInit=()=>{this.headers=new Map,xn.split("\n").forEach(mi=>{const $n=mi.indexOf(":");if($n>0){const Pt=mi.slice(0,$n),Ii=Pt.toLowerCase(),ar=mi.slice($n+1).trim();this.maybeSetNormalizedName(Pt,Ii),this.headers.has(Ii)?this.headers.get(Ii).push(ar):this.headers.set(Ii,[ar])}})}:typeof Headers<"u"&&xn instanceof Headers?(this.headers=new Map,xn.forEach((mi,$n)=>{this.setHeaderEntries($n,mi)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(xn).forEach(([mi,$n])=>{this.setHeaderEntries(mi,$n)})}:this.headers=new Map}has(xn){return this.init(),this.headers.has(xn.toLowerCase())}get(xn){this.init();const mi=this.headers.get(xn.toLowerCase());return mi&&mi.length>0?mi[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(xn){return this.init(),this.headers.get(xn.toLowerCase())||null}append(xn,mi){return this.clone({name:xn,value:mi,op:"a"})}set(xn,mi){return this.clone({name:xn,value:mi,op:"s"})}delete(xn,mi){return this.clone({name:xn,value:mi,op:"d"})}maybeSetNormalizedName(xn,mi){this.normalizedNames.has(mi)||this.normalizedNames.set(mi,xn)}init(){this.lazyInit&&(this.lazyInit instanceof h?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(xn=>this.applyUpdate(xn)),this.lazyUpdate=null))}copyFrom(xn){xn.init(),Array.from(xn.headers.keys()).forEach(mi=>{this.headers.set(mi,xn.headers.get(mi)),this.normalizedNames.set(mi,xn.normalizedNames.get(mi))})}clone(xn){const mi=new h;return mi.lazyInit=this.lazyInit&&this.lazyInit instanceof h?this.lazyInit:this,mi.lazyUpdate=(this.lazyUpdate||[]).concat([xn]),mi}applyUpdate(xn){const mi=xn.name.toLowerCase();switch(xn.op){case"a":case"s":let $n=xn.value;if("string"==typeof $n&&($n=[$n]),0===$n.length)return;this.maybeSetNormalizedName(xn.name,mi);const Pt=("a"===xn.op?this.headers.get(mi):void 0)||[];Pt.push(...$n),this.headers.set(mi,Pt);break;case"d":const Ii=xn.value;if(Ii){let ar=this.headers.get(mi);if(!ar)return;ar=ar.filter(Jt=>-1===Ii.indexOf(Jt)),0===ar.length?(this.headers.delete(mi),this.normalizedNames.delete(mi)):this.headers.set(mi,ar)}else this.headers.delete(mi),this.normalizedNames.delete(mi)}}setHeaderEntries(xn,mi){const $n=(Array.isArray(mi)?mi:[mi]).map(Ii=>Ii.toString()),Pt=xn.toLowerCase();this.headers.set(Pt,$n),this.maybeSetNormalizedName(xn,Pt)}forEach(xn){this.init(),Array.from(this.normalizedNames.keys()).forEach(mi=>xn(this.normalizedNames.get(mi),this.headers.get(mi)))}}class c{encodeKey(xn){return x(xn)}encodeValue(xn){return x(xn)}decodeKey(xn){return decodeURIComponent(xn)}decodeValue(xn){return decodeURIComponent(xn)}}const A=/%(\d[a-f0-9])/gi,L={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function x(Xt){return encodeURIComponent(Xt).replace(A,(xn,mi)=>L[mi]??xn)}function V(Xt){return`${Xt}`}class D{constructor(xn={}){if(this.updates=null,this.cloneFrom=null,this.encoder=xn.encoder||new c,xn.fromString){if(xn.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function T(Xt,xn){const mi=new Map;return Xt.length>0&&Xt.replace(/^\?/,"").split("&").forEach(Pt=>{const Ii=Pt.indexOf("="),[ar,Jt]=-1==Ii?[xn.decodeKey(Pt),""]:[xn.decodeKey(Pt.slice(0,Ii)),xn.decodeValue(Pt.slice(Ii+1))],ki=mi.get(ar)||[];ki.push(Jt),mi.set(ar,ki)}),mi}(xn.fromString,this.encoder)}else xn.fromObject?(this.map=new Map,Object.keys(xn.fromObject).forEach(mi=>{const $n=xn.fromObject[mi],Pt=Array.isArray($n)?$n.map(V):[V($n)];this.map.set(mi,Pt)})):this.map=null}has(xn){return this.init(),this.map.has(xn)}get(xn){this.init();const mi=this.map.get(xn);return mi?mi[0]:null}getAll(xn){return this.init(),this.map.get(xn)||null}keys(){return this.init(),Array.from(this.map.keys())}append(xn,mi){return this.clone({param:xn,value:mi,op:"a"})}appendAll(xn){const mi=[];return Object.keys(xn).forEach($n=>{const Pt=xn[$n];Array.isArray(Pt)?Pt.forEach(Ii=>{mi.push({param:$n,value:Ii,op:"a"})}):mi.push({param:$n,value:Pt,op:"a"})}),this.clone(mi)}set(xn,mi){return this.clone({param:xn,value:mi,op:"s"})}delete(xn,mi){return this.clone({param:xn,value:mi,op:"d"})}toString(){return this.init(),this.keys().map(xn=>{const mi=this.encoder.encodeKey(xn);return this.map.get(xn).map($n=>mi+"="+this.encoder.encodeValue($n)).join("&")}).filter(xn=>""!==xn).join("&")}clone(xn){const mi=new D({encoder:this.encoder});return mi.cloneFrom=this.cloneFrom||this,mi.updates=(this.updates||[]).concat(xn),mi}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(xn=>this.map.set(xn,this.cloneFrom.map.get(xn))),this.updates.forEach(xn=>{switch(xn.op){case"a":case"s":const mi=("a"===xn.op?this.map.get(xn.param):void 0)||[];mi.push(V(xn.value)),this.map.set(xn.param,mi);break;case"d":if(void 0===xn.value){this.map.delete(xn.param);break}{let $n=this.map.get(xn.param)||[];const Pt=$n.indexOf(V(xn.value));-1!==Pt&&$n.splice(Pt,1),$n.length>0?this.map.set(xn.param,$n):this.map.delete(xn.param)}}}),this.cloneFrom=this.updates=null)}}class I{constructor(){this.map=new Map}set(xn,mi){return this.map.set(xn,mi),this}get(xn){return this.map.has(xn)||this.map.set(xn,xn.defaultValue()),this.map.get(xn)}delete(xn){return this.map.delete(xn),this}has(xn){return this.map.has(xn)}keys(){return this.map.keys()}}function R(Xt){return typeof ArrayBuffer<"u"&&Xt instanceof ArrayBuffer}function G(Xt){return typeof Blob<"u"&&Xt instanceof Blob}function Y(Xt){return typeof FormData<"u"&&Xt instanceof FormData}class ${constructor(xn,mi,$n,Pt){let Ii;if(this.url=mi,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=xn.toUpperCase(),function k(Xt){switch(Xt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Pt?(this.body=void 0!==$n?$n:null,Ii=Pt):Ii=$n,Ii&&(this.reportProgress=!!Ii.reportProgress,this.withCredentials=!!Ii.withCredentials,Ii.responseType&&(this.responseType=Ii.responseType),Ii.headers&&(this.headers=Ii.headers),Ii.context&&(this.context=Ii.context),Ii.params&&(this.params=Ii.params),this.transferCache=Ii.transferCache),this.headers??=new h,this.context??=new I,this.params){const ar=this.params.toString();if(0===ar.length)this.urlWithParams=mi;else{const Jt=mi.indexOf("?");this.urlWithParams=mi+(-1===Jt?"?":Jt<mi.length-1?"&":"")+ar}}else this.params=new D,this.urlWithParams=mi}serializeBody(){return null===this.body?null:"string"==typeof this.body||R(this.body)||G(this.body)||Y(this.body)||function K(Xt){return typeof URLSearchParams<"u"&&Xt instanceof URLSearchParams}(this.body)?this.body:this.body instanceof D?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Y(this.body)?null:G(this.body)?this.body.type||null:R(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof D?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(xn={}){const mi=xn.method||this.method,$n=xn.url||this.url,Pt=xn.responseType||this.responseType,Ii=xn.transferCache??this.transferCache,ar=void 0!==xn.body?xn.body:this.body,Jt=xn.withCredentials??this.withCredentials,ki=xn.reportProgress??this.reportProgress;let Fr=xn.headers||this.headers,xo=xn.params||this.params;const qn=xn.context??this.context;return void 0!==xn.setHeaders&&(Fr=Object.keys(xn.setHeaders).reduce((Sr,ni)=>Sr.set(ni,xn.setHeaders[ni]),Fr)),xn.setParams&&(xo=Object.keys(xn.setParams).reduce((Sr,ni)=>Sr.set(ni,xn.setParams[ni]),xo)),new $(mi,$n,ar,{params:xo,headers:Fr,context:qn,reportProgress:ki,responseType:Pt,withCredentials:Jt,transferCache:Ii})}}var ee=function(Xt){return Xt[Xt.Sent=0]="Sent",Xt[Xt.UploadProgress=1]="UploadProgress",Xt[Xt.ResponseHeader=2]="ResponseHeader",Xt[Xt.DownloadProgress=3]="DownloadProgress",Xt[Xt.Response=4]="Response",Xt[Xt.User=5]="User",Xt}(ee||{});class J{constructor(xn,mi=re.Ok,$n="OK"){this.headers=xn.headers||new h,this.status=void 0!==xn.status?xn.status:mi,this.statusText=xn.statusText||$n,this.url=xn.url||null,this.ok=this.status>=200&&this.status<300}}class z extends J{constructor(xn={}){super(xn),this.type=ee.ResponseHeader}clone(xn={}){return new z({headers:xn.headers||this.headers,status:void 0!==xn.status?xn.status:this.status,statusText:xn.statusText||this.statusText,url:xn.url||this.url||void 0})}}class te extends J{constructor(xn={}){super(xn),this.type=ee.Response,this.body=void 0!==xn.body?xn.body:null}clone(xn={}){return new te({body:void 0!==xn.body?xn.body:this.body,headers:xn.headers||this.headers,status:void 0!==xn.status?xn.status:this.status,statusText:xn.statusText||this.statusText,url:xn.url||this.url||void 0})}}class X extends J{constructor(xn){super(xn,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${xn.url||"(unknown url)"}`:`Http failure response for ${xn.url||"(unknown url)"}: ${xn.status} ${xn.statusText}`,this.error=xn.error||null}}var re=function(Xt){return Xt[Xt.Continue=100]="Continue",Xt[Xt.SwitchingProtocols=101]="SwitchingProtocols",Xt[Xt.Processing=102]="Processing",Xt[Xt.EarlyHints=103]="EarlyHints",Xt[Xt.Ok=200]="Ok",Xt[Xt.Created=201]="Created",Xt[Xt.Accepted=202]="Accepted",Xt[Xt.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Xt[Xt.NoContent=204]="NoContent",Xt[Xt.ResetContent=205]="ResetContent",Xt[Xt.PartialContent=206]="PartialContent",Xt[Xt.MultiStatus=207]="MultiStatus",Xt[Xt.AlreadyReported=208]="AlreadyReported",Xt[Xt.ImUsed=226]="ImUsed",Xt[Xt.MultipleChoices=300]="MultipleChoices",Xt[Xt.MovedPermanently=301]="MovedPermanently",Xt[Xt.Found=302]="Found",Xt[Xt.SeeOther=303]="SeeOther",Xt[Xt.NotModified=304]="NotModified",Xt[Xt.UseProxy=305]="UseProxy",Xt[Xt.Unused=306]="Unused",Xt[Xt.TemporaryRedirect=307]="TemporaryRedirect",Xt[Xt.PermanentRedirect=308]="PermanentRedirect",Xt[Xt.BadRequest=400]="BadRequest",Xt[Xt.Unauthorized=401]="Unauthorized",Xt[Xt.PaymentRequired=402]="PaymentRequired",Xt[Xt.Forbidden=403]="Forbidden",Xt[Xt.NotFound=404]="NotFound",Xt[Xt.MethodNotAllowed=405]="MethodNotAllowed",Xt[Xt.NotAcceptable=406]="NotAcceptable",Xt[Xt.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Xt[Xt.RequestTimeout=408]="RequestTimeout",Xt[Xt.Conflict=409]="Conflict",Xt[Xt.Gone=410]="Gone",Xt[Xt.LengthRequired=411]="LengthRequired",Xt[Xt.PreconditionFailed=412]="PreconditionFailed",Xt[Xt.PayloadTooLarge=413]="PayloadTooLarge",Xt[Xt.UriTooLong=414]="UriTooLong",Xt[Xt.UnsupportedMediaType=415]="UnsupportedMediaType",Xt[Xt.RangeNotSatisfiable=416]="RangeNotSatisfiable",Xt[Xt.ExpectationFailed=417]="ExpectationFailed",Xt[Xt.ImATeapot=418]="ImATeapot",Xt[Xt.MisdirectedRequest=421]="MisdirectedRequest",Xt[Xt.UnprocessableEntity=422]="UnprocessableEntity",Xt[Xt.Locked=423]="Locked",Xt[Xt.FailedDependency=424]="FailedDependency",Xt[Xt.TooEarly=425]="TooEarly",Xt[Xt.UpgradeRequired=426]="UpgradeRequired",Xt[Xt.PreconditionRequired=428]="PreconditionRequired",Xt[Xt.TooManyRequests=429]="TooManyRequests",Xt[Xt.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Xt[Xt.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Xt[Xt.InternalServerError=500]="InternalServerError",Xt[Xt.NotImplemented=501]="NotImplemented",Xt[Xt.BadGateway=502]="BadGateway",Xt[Xt.ServiceUnavailable=503]="ServiceUnavailable",Xt[Xt.GatewayTimeout=504]="GatewayTimeout",Xt[Xt.HttpVersionNotSupported=505]="HttpVersionNotSupported",Xt[Xt.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Xt[Xt.InsufficientStorage=507]="InsufficientStorage",Xt[Xt.LoopDetected=508]="LoopDetected",Xt[Xt.NotExtended=510]="NotExtended",Xt[Xt.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Xt}(re||{});function ge(Xt,xn){return{body:xn,headers:Xt.headers,context:Xt.context,observe:Xt.observe,params:Xt.params,reportProgress:Xt.reportProgress,responseType:Xt.responseType,withCredentials:Xt.withCredentials,transferCache:Xt.transferCache}}let oe=(()=>{var Xt;class xn{constructor($n){this.handler=$n}request($n,Pt,Ii={}){let ar;if($n instanceof $)ar=$n;else{let Fr,xo;Fr=Ii.headers instanceof h?Ii.headers:new h(Ii.headers),Ii.params&&(xo=Ii.params instanceof D?Ii.params:new D({fromObject:Ii.params})),ar=new $($n,Pt,void 0!==Ii.body?Ii.body:null,{headers:Fr,context:Ii.context,params:xo,reportProgress:Ii.reportProgress,responseType:Ii.responseType||"json",withCredentials:Ii.withCredentials,transferCache:Ii.transferCache})}const Jt=(0,p.of)(ar).pipe((0,P.H)(Fr=>this.handler.handle(Fr)));if($n instanceof $||"events"===Ii.observe)return Jt;const ki=Jt.pipe((0,v.p)(Fr=>Fr instanceof te));switch(Ii.observe||"body"){case"body":switch(ar.responseType){case"arraybuffer":return ki.pipe((0,O.T)(Fr=>{if(null!==Fr.body&&!(Fr.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Fr.body}));case"blob":return ki.pipe((0,O.T)(Fr=>{if(null!==Fr.body&&!(Fr.body instanceof Blob))throw new Error("Response is not a Blob.");return Fr.body}));case"text":return ki.pipe((0,O.T)(Fr=>{if(null!==Fr.body&&"string"!=typeof Fr.body)throw new Error("Response is not a string.");return Fr.body}));default:return ki.pipe((0,O.T)(Fr=>Fr.body))}case"response":return ki;default:throw new Error(`Unreachable: unhandled observe type ${Ii.observe}}`)}}delete($n,Pt={}){return this.request("DELETE",$n,Pt)}get($n,Pt={}){return this.request("GET",$n,Pt)}head($n,Pt={}){return this.request("HEAD",$n,Pt)}jsonp($n,Pt){return this.request("JSONP",$n,{params:(new D).append(Pt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($n,Pt={}){return this.request("OPTIONS",$n,Pt)}patch($n,Pt,Ii={}){return this.request("PATCH",$n,ge(Ii,Pt))}post($n,Pt,Ii={}){return this.request("POST",$n,ge(Ii,Pt))}put($n,Pt,Ii={}){return this.request("PUT",$n,ge(Ii,Pt))}}return(Xt=xn).\u0275fac=function($n){return new($n||Xt)(l.KVO(i))},Xt.\u0275prov=l.jDH({token:Xt,factory:Xt.\u0275fac}),xn})();function ae(Xt,xn){return xn(Xt)}function pe(Xt,xn){return(mi,$n)=>xn.intercept(mi,{handle:Pt=>Xt(Pt,$n)})}const ke=new l.nKC(""),De=new l.nKC(""),Me=new l.nKC(""),je=new l.nKC("");function $e(){let Xt=null;return(xn,mi)=>{null===Xt&&(Xt=((0,l.WQX)(ke,{optional:!0})??[]).reduceRight(pe,ae));const $n=(0,l.WQX)(l.TgB),Pt=$n.add();return Xt(xn,mi).pipe((0,S.j)(()=>$n.remove(Pt)))}}let qt=(()=>{var Xt;class xn extends i{constructor($n,Pt){super(),this.backend=$n,this.injector=Pt,this.chain=null,this.pendingTasks=(0,l.WQX)(l.TgB);const Ii=(0,l.WQX)(je,{optional:!0});this.backend=Ii??$n}handle($n){if(null===this.chain){const Ii=Array.from(new Set([...this.injector.get(De),...this.injector.get(Me,[])]));this.chain=Ii.reduceRight((ar,Jt)=>function _e(Xt,xn,mi){return($n,Pt)=>(0,l.N4e)(mi,()=>xn($n,Ii=>Xt(Ii,Pt)))}(ar,Jt,this.injector),ae)}const Pt=this.pendingTasks.add();return this.chain($n,Ii=>this.backend.handle(Ii)).pipe((0,S.j)(()=>this.pendingTasks.remove(Pt)))}}return(Xt=xn).\u0275fac=function($n){return new($n||Xt)(l.KVO(a),l.KVO(l.uvJ))},Xt.\u0275prov=l.jDH({token:Xt,factory:Xt.\u0275fac}),xn})();const Bn=/^\)\]\}',?\n/;let Cn=(()=>{var Xt;class xn{constructor($n){this.xhrFactory=$n}handle($n){if("JSONP"===$n.method)throw new l.wOt(-2800,!1);const Pt=this.xhrFactory;return(Pt.\u0275loadImpl?(0,_.H)(Pt.\u0275loadImpl()):(0,p.of)(null)).pipe((0,y.n)(()=>new m.c(ar=>{const Jt=Pt.build();if(Jt.open($n.method,$n.urlWithParams),$n.withCredentials&&(Jt.withCredentials=!0),$n.headers.forEach((Pe,Qe)=>Jt.setRequestHeader(Pe,Qe.join(","))),$n.headers.has("Accept")||Jt.setRequestHeader("Accept","application/json, text/plain, */*"),!$n.headers.has("Content-Type")){const Pe=$n.detectContentTypeHeader();null!==Pe&&Jt.setRequestHeader("Content-Type",Pe)}if($n.responseType){const Pe=$n.responseType.toLowerCase();Jt.responseType="json"!==Pe?Pe:"text"}const ki=$n.serializeBody();let Fr=null;const xo=()=>{if(null!==Fr)return Fr;const Pe=Jt.statusText||"OK",Qe=new h(Jt.getAllResponseHeaders()),Be=function En(Xt){return"responseURL"in Xt&&Xt.responseURL?Xt.responseURL:/^X-Request-URL:/m.test(Xt.getAllResponseHeaders())?Xt.getResponseHeader("X-Request-URL"):null}(Jt)||$n.url;return Fr=new z({headers:Qe,status:Jt.status,statusText:Pe,url:Be}),Fr},qn=()=>{let{headers:Pe,status:Qe,statusText:Be,url:Mt}=xo(),Vt=null;Qe!==re.NoContent&&(Vt=typeof Jt.response>"u"?Jt.responseText:Jt.response),0===Qe&&(Qe=Vt?re.Ok:0);let Vn=Qe>=200&&Qe<300;if("json"===$n.responseType&&"string"==typeof Vt){const si=Vt;Vt=Vt.replace(Bn,"");try{Vt=""!==Vt?JSON.parse(Vt):null}catch(Rn){Vt=si,Vn&&(Vn=!1,Vt={error:Rn,text:Vt})}}Vn?(ar.next(new te({body:Vt,headers:Pe,status:Qe,statusText:Be,url:Mt||void 0})),ar.complete()):ar.error(new X({error:Vt,headers:Pe,status:Qe,statusText:Be,url:Mt||void 0}))},Sr=Pe=>{const{url:Qe}=xo(),Be=new X({error:Pe,status:Jt.status||0,statusText:Jt.statusText||"Unknown Error",url:Qe||void 0});ar.error(Be)};let ni=!1;const he=Pe=>{ni||(ar.next(xo()),ni=!0);let Qe={type:ee.DownloadProgress,loaded:Pe.loaded};Pe.lengthComputable&&(Qe.total=Pe.total),"text"===$n.responseType&&Jt.responseText&&(Qe.partialText=Jt.responseText),ar.next(Qe)},Ee=Pe=>{let Qe={type:ee.UploadProgress,loaded:Pe.loaded};Pe.lengthComputable&&(Qe.total=Pe.total),ar.next(Qe)};return Jt.addEventListener("load",qn),Jt.addEventListener("error",Sr),Jt.addEventListener("timeout",Sr),Jt.addEventListener("abort",Sr),$n.reportProgress&&(Jt.addEventListener("progress",he),null!==ki&&Jt.upload&&Jt.upload.addEventListener("progress",Ee)),Jt.send(ki),ar.next({type:ee.Sent}),()=>{Jt.removeEventListener("error",Sr),Jt.removeEventListener("abort",Sr),Jt.removeEventListener("load",qn),Jt.removeEventListener("timeout",Sr),$n.reportProgress&&(Jt.removeEventListener("progress",he),null!==ki&&Jt.upload&&Jt.upload.removeEventListener("progress",Ee)),Jt.readyState!==Jt.DONE&&Jt.abort()}})))}}return(Xt=xn).\u0275fac=function($n){return new($n||Xt)(l.KVO(r.N0))},Xt.\u0275prov=l.jDH({token:Xt,factory:Xt.\u0275fac}),xn})();const fn=new l.nKC(""),nn=new l.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Xn=new l.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class rn{}let ai=(()=>{var Xt;class xn{constructor($n,Pt,Ii){this.doc=$n,this.platform=Pt,this.cookieName=Ii,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $n=this.doc.cookie||"";return $n!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r._b)($n,this.cookieName),this.lastCookieString=$n),this.lastToken}}return(Xt=xn).\u0275fac=function($n){return new($n||Xt)(l.KVO(r.qQ),l.KVO(l.Agw),l.KVO(nn))},Xt.\u0275prov=l.jDH({token:Xt,factory:Xt.\u0275fac}),xn})();function ri(Xt,xn){const mi=Xt.url.toLowerCase();if(!(0,l.WQX)(fn)||"GET"===Xt.method||"HEAD"===Xt.method||mi.startsWith("http://")||mi.startsWith("https://"))return xn(Xt);const $n=(0,l.WQX)(rn).getToken(),Pt=(0,l.WQX)(Xn);return null!=$n&&!Xt.headers.has(Pt)&&(Xt=Xt.clone({headers:Xt.headers.set(Pt,$n)})),xn(Xt)}var zt=function(Xt){return Xt[Xt.Interceptors=0]="Interceptors",Xt[Xt.LegacyInterceptors=1]="LegacyInterceptors",Xt[Xt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Xt[Xt.NoXsrfProtection=3]="NoXsrfProtection",Xt[Xt.JsonpSupport=4]="JsonpSupport",Xt[Xt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Xt[Xt.Fetch=6]="Fetch",Xt}(zt||{});function vt(Xt,xn){return{\u0275kind:Xt,\u0275providers:xn}}function Ct(...Xt){const xn=[oe,Cn,qt,{provide:i,useExisting:qt},{provide:a,useExisting:Cn},{provide:De,useValue:ri,multi:!0},{provide:fn,useValue:!0},{provide:rn,useClass:ai}];for(const mi of Xt)xn.push(...mi.\u0275providers);return(0,l.EmA)(xn)}const Ut=new l.nKC("");let Un=(()=>{var Xt;class xn{}return(Xt=xn).\u0275fac=function($n){return new($n||Xt)},Xt.\u0275mod=l.$C({type:Xt}),Xt.\u0275inj=l.G2t({providers:[Ct(vt(zt.LegacyInterceptors,[{provide:Ut,useFactory:$e},{provide:De,useExisting:Ut,multi:!0}]))]}),xn})()},58527:(Ue,W,d)=>{"use strict";d.d(W,{bc$:()=>pg,iLQ:()=>z0,sZ2:()=>hg,hnV:()=>UO,Hbi:()=>sI,o8S:()=>Xf,BIS:()=>Fm,gRc:()=>QO,Ql9:()=>AT,OM3:()=>L_,Ocv:()=>BT,Z63:()=>tr,aKT:()=>Ch,uvJ:()=>Ns,zcH:()=>ld,bkB:()=>Fd,y_5:()=>Ga,$GK:()=>ro,nKC:()=>Pt,zZn:()=>cc,_q3:()=>ty,MKu:()=>ny,xe9:()=>yS,Co$:()=>eS,Vns:()=>Ep,SKi:()=>id,Xx1:()=>To,Agw:()=>gg,PLl:()=>tp,rOR:()=>al,sFG:()=>_y,_9s:()=>JS,czy:()=>q,WPN:()=>nh,kdw:()=>Gs,C4Q:()=>Pp,NYb:()=>PT,giA:()=>NO,RxE:()=>wO,c1b:()=>Ov,gXe:()=>Ys,mal:()=>rM,L39:()=>kI,Ol2:()=>Bv,w6W:()=>$M,oH4:()=>zO,SmG:()=>$T,Rfq:()=>ri,WQX:()=>Xr,naY:()=>WT,QuC:()=>ks,EmA:()=>Zo,fpN:()=>oI,HJs:()=>jI,N4e:()=>na,O8t:()=>FI,An2:()=>R_,H3F:()=>TO,H8p:()=>Mo,KH2:()=>lv,TgB:()=>If,wOt:()=>Oe,WHO:()=>LO,e01:()=>kO,lNU:()=>$e,h9k:()=>Qm,$MX:()=>Sg,ZF7:()=>Ou,Kcf:()=>Qu,e5t:()=>ll,UyX:()=>ff,cWb:()=>Ps,osQ:()=>Bc,H5H:()=>P0,Zy3:()=>gt,mq5:()=>Fb,JZv:()=>En,LfX:()=>Zn,plB:()=>Pf,jNT:()=>$0,zjR:()=>FO,TL$:()=>nl,Tbb:()=>yn,rcV:()=>Ll,Vt3:()=>Lv,Mj6:()=>Po,GFd:()=>wf,OA$:()=>Hi,Jv_:()=>XP,aNF:()=>ZP,R7$:()=>Wd,BMQ:()=>a0,HbH:()=>bb,ZvI:()=>Ib,AVh:()=>p0,wni:()=>PP,VBU:()=>ga,FsC:()=>za,jDH:()=>di,G2t:()=>vi,$C:()=>Ia,EJ8:()=>dl,rXU:()=>ec,nrm:()=>S0,eu8:()=>M0,bVm:()=>dS,qex:()=>cS,k0s:()=>lS,j41:()=>aS,RV6:()=>Nb,xGo:()=>Lc,Mr5:()=>y0,KVO:()=>ts,kS0:()=>Fu,QTQ:()=>$s,bIt:()=>x0,lsd:()=>xP,joV:()=>zh,qSk:()=>Fg,XpG:()=>gP,nI1:()=>cO,bMT:()=>dO,i5U:()=>uO,SdG:()=>mP,NAR:()=>pP,Y8G:()=>u0,FS9:()=>I0,Mz_:()=>mS,lJ4:()=>qP,eq3:()=>eO,l_i:()=>tO,sMw:()=>nO,ziG:()=>iO,mGM:()=>EP,sdS:()=>wP,Njj:()=>wd,EBC:()=>Vd,tSv:()=>_p,eBV:()=>$c,npT:()=>gp,f$h:()=>bg,B4B:()=>xs,n$t:()=>Pg,wjB:()=>QP,xc7:()=>g0,Kam:()=>w0,zvX:()=>b0,DNE:()=>Wf,C5r:()=>hO,EFF:()=>UP,JRh:()=>A0,SpI:()=>fS,Lme:()=>D0,DH7:()=>zP,mxI:()=>L0,R50:()=>R0,GBs:()=>OP}),d(70650);let p=null,_=1;const P=Symbol("SIGNAL");function v(u){const f=p;return p=u,f}function h(u){if((!I(u)||u.dirty)&&(u.dirty||u.lastCleanEpoch!==_)){if(!u.producerMustRecompute(u)&&!x(u))return u.dirty=!1,void(u.lastCleanEpoch=_);u.producerRecomputeValue(u),u.dirty=!1,u.lastCleanEpoch=_}}function x(u){k(u);for(let f=0;f<u.producerNode.length;f++){const b=u.producerNode[f],E=u.producerLastReadVersion[f];if(E!==b.version||(h(b),E!==b.version))return!0}return!1}function F(u,f){if(function R(u){u.liveConsumerNode??=[],u.liveConsumerIndexOfThis??=[]}(u),k(u),1===u.liveConsumerNode.length)for(let E=0;E<u.producerNode.length;E++)F(u.producerNode[E],u.producerIndexOfThis[E]);const b=u.liveConsumerNode.length-1;if(u.liveConsumerNode[f]=u.liveConsumerNode[b],u.liveConsumerIndexOfThis[f]=u.liveConsumerIndexOfThis[b],u.liveConsumerNode.length--,u.liveConsumerIndexOfThis.length--,f<u.liveConsumerNode.length){const E=u.liveConsumerIndexOfThis[f],U=u.liveConsumerNode[f];k(U),U.producerIndexOfThis[E]=f}}function I(u){return u.consumerIsAlwaysLive||(u?.liveConsumerNode?.length??0)>0}function k(u){u.producerNode??=[],u.producerIndexOfThis??=[],u.producerLastReadVersion??=[]}let z=null;var _e=d(80583),ke=d(10399),De=d(26513),Me=d(83915);const $e="https://g.co/ng/security#xss";class Oe extends Error{constructor(f,b){super(gt(f,b)),this.code=f}}function gt(u,f){return`NG0${Math.abs(u)}${f?": "+f:""}`}function xt(u){return{toString:u}.toString()}const ct="__parameters__";function mn(u,f,b){return xt(()=>{const E=function st(u){return function(...b){if(u){const E=u(...b);for(const U in E)this[U]=E[U]}}}(f);function U(...ne){if(this instanceof U)return E.apply(this,ne),this;const Ce=new U(...ne);return Ae.annotation=Ce,Ae;function Ae(Xe,Ft,gn){const Yn=Xe.hasOwnProperty(ct)?Xe[ct]:Object.defineProperty(Xe,ct,{value:[]})[ct];for(;Yn.length<=gn;)Yn.push(null);return(Yn[gn]=Yn[gn]||[]).push(Ce),Xe}}return b&&(U.prototype=Object.create(b.prototype)),U.prototype.ngMetadataName=u,U.annotationCls=U,U})}const En=globalThis;function dt(u){for(let f in u)if(u[f]===dt)return f;throw Error("Could not find renamed property on target object.")}function nn(u,f){for(const b in f)f.hasOwnProperty(b)&&!u.hasOwnProperty(b)&&(u[b]=f[b])}function yn(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(yn).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const f=u.toString();if(null==f)return""+f;const b=f.indexOf("\n");return-1===b?f:f.substring(0,b)}function Xn(u,f){return null==u||""===u?null===f?"":f:null==f||""===f?u:u+" "+f}const ai=dt({__forward_ref__:dt});function ri(u){return u.__forward_ref__=ri,u.toString=function(){return yn(this())},u}function Ne(u){return zt(u)?u():u}function zt(u){return"function"==typeof u&&u.hasOwnProperty(ai)&&u.__forward_ref__===ri}function di(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function vi(u){return{providers:u.providers||[],imports:u.imports||[]}}function Zt(u){return Dn(u,Xt)||Dn(u,mi)}function Zn(u){return null!==Zt(u)}function Dn(u,f){return u.hasOwnProperty(f)?u[f]:null}function Ti(u){return u&&(u.hasOwnProperty(xn)||u.hasOwnProperty($n))?u[xn]:null}const Xt=dt({\u0275prov:dt}),xn=dt({\u0275inj:dt}),mi=dt({ngInjectableDef:dt}),$n=dt({ngInjectorDef:dt});class Pt{constructor(f,b){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=di({token:this,providedIn:b.providedIn||"root",factory:b.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ee(u){return u&&!!u.\u0275providers}const Pe=dt({\u0275cmp:dt}),Qe=dt({\u0275dir:dt}),Be=dt({\u0275pipe:dt}),Mt=dt({\u0275mod:dt}),Vt=dt({\u0275fac:dt}),Vn=dt({__NG_ELEMENT_ID__:dt}),si=dt({__NG_ENV_ID__:dt});function Rn(u){return"string"==typeof u?u:null==u?"":String(u)}function Tr(u,f){throw new Oe(-201,!1)}var ro=function(u){return u[u.Default=0]="Default",u[u.Host=1]="Host",u[u.Self=2]="Self",u[u.SkipSelf=4]="SkipSelf",u[u.Optional=8]="Optional",u}(ro||{});let po;function Os(){return po}function es(u){const f=po;return po=u,f}function Bs(u,f,b){const E=Zt(u);return E&&"root"==E.providedIn?void 0===E.value?E.value=E.factory():E.value:b&ro.Optional?null:void 0!==f?f:void Tr()}const Tn={},tn="__NG_DI_FLAG__",vn="ngTempTokenPath",Ci=/\n/gm,yr="__source";let $r;function qr(u){const f=$r;return $r=u,f}function lo(u,f=ro.Default){if(void 0===$r)throw new Oe(-203,!1);return null===$r?Bs(u,void 0,f):$r.get(u,f&ro.Optional?null:void 0,f)}function ts(u,f=ro.Default){return(Os()||lo)(Ne(u),f)}function Xr(u,f=ro.Default){return ts(u,Hs(f))}function Hs(u){return typeof u>"u"||"number"==typeof u?u:(u.optional&&8)|(u.host&&1)|(u.self&&2)|(u.skipSelf&&4)}function Ua(u){const f=[];for(let b=0;b<u.length;b++){const E=Ne(u[b]);if(Array.isArray(E)){if(0===E.length)throw new Oe(900,!1);let U,ne=ro.Default;for(let Ce=0;Ce<E.length;Ce++){const Ae=E[Ce],Xe=Ba(Ae);"number"==typeof Xe?-1===Xe?U=Ae.token:ne|=Xe:U=Ae}f.push(ts(U,ne))}else f.push(ts(E))}return f}function Ya(u,f){return u[tn]=f,u.prototype[tn]=f,u}function Ba(u){return u[tn]}const Ga=Ya(mn("Inject",u=>({token:u})),-1),To=Ya(mn("Optional"),8),Gs=Ya(mn("SkipSelf"),4);function Ca(u,f){return u.hasOwnProperty(Vt)?u[Vt]:null}function Qi(u,f){u.forEach(b=>Array.isArray(b)?Qi(b,f):f(b))}function yi(u,f,b){f>=u.length?u.push(b):u.splice(f,0,b)}function Di(u,f){return f>=u.length-1?u.pop():u.splice(f,1)[0]}function en(u,f,b){let E=On(u,f);return E>=0?u[1|E]=b:(E=~E,function Mr(u,f,b,E){let U=u.length;if(U==f)u.push(b,E);else if(1===U)u.push(E,u[0]),u[0]=b;else{for(U--,u.push(u[U-1],u[U]);U>f;)u[U]=u[U-2],U--;u[f]=b,u[f+1]=E}}(u,E,f,b)),E}function Wt(u,f){const b=On(u,f);if(b>=0)return u[1|b]}function On(u,f){return function gi(u,f,b){let E=0,U=u.length>>b;for(;U!==E;){const ne=E+(U-E>>1),Ce=u[ne<<b];if(f===Ce)return ne<<b;Ce>f?U=ne:E=ne+1}return~(U<<b)}(u,f,1)}const Bi={},Mi=[],tr=new Pt(""),mo=new Pt("",-1),Bo=new Pt("");class is{get(f,b=Tn){if(b===Tn){const E=new Error(`NullInjectorError: No provider for ${yn(f)}!`);throw E.name="NullInjectorError",E}return b}}var ha=function(u){return u[u.OnPush=0]="OnPush",u[u.Default=1]="Default",u}(ha||{}),Ys=function(u){return u[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",u}(Ys||{}),Po=function(u){return u[u.None=0]="None",u[u.SignalBased=1]="SignalBased",u[u.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",u}(Po||{});function cl(u,f,b){let E=u.length;for(;;){const U=u.indexOf(f,b);if(-1===U)return U;if(0===U||u.charCodeAt(U-1)<=32){const ne=f.length;if(U+ne===E||u.charCodeAt(U+ne)<=32)return U}b=U+1}}function oa(u,f,b){let E=0;for(;E<b.length;){const U=b[E];if("number"==typeof U){if(0!==U)break;E++;const ne=b[E++],Ce=b[E++],Ae=b[E++];u.setAttribute(f,Ce,Ae,ne)}else{const ne=U,Ce=b[++E];Tt(ne)?u.setProperty(f,ne,Ce):u.setAttribute(f,ne,Ce),E++}}return E}function Ht(u){return 3===u||4===u||6===u}function Tt(u){return 64===u.charCodeAt(0)}function Ln(u,f){if(null!==f&&0!==f.length)if(null===u||0===u.length)u=f.slice();else{let b=-1;for(let E=0;E<f.length;E++){const U=f[E];"number"==typeof U?b=U:0===b||jt(u,b,U,null,-1===b||2===b?f[++E]:null)}}return u}function jt(u,f,b,E,U){let ne=0,Ce=u.length;if(-1===f)Ce=-1;else for(;ne<u.length;){const Ae=u[ne++];if("number"==typeof Ae){if(Ae===f){Ce=-1;break}if(Ae>f){Ce=ne-1;break}}}for(;ne<u.length;){const Ae=u[ne];if("number"==typeof Ae)break;if(Ae===b){if(null===E)return void(null!==U&&(u[ne+1]=U));if(E===u[ne+1])return void(u[ne+2]=U)}ne++,null!==E&&ne++,null!==U&&ne++}-1!==Ce&&(u.splice(Ce,0,f),ne=Ce+1),u.splice(ne++,0,b),null!==E&&u.splice(ne++,0,E),null!==U&&u.splice(ne++,0,U)}const ti="ng-template";function br(u,f,b,E){let U=0;if(E){for(;U<f.length&&"string"==typeof f[U];U+=2)if("class"===f[U]&&-1!==cl(f[U+1].toLowerCase(),b,0))return!0}else if(wo(u))return!1;if(U=f.indexOf(1,U),U>-1){let ne;for(;++U<f.length&&"string"==typeof(ne=f[U]);)if(ne.toLowerCase()===b)return!0}return!1}function wo(u){return 4===u.type&&u.value!==ti}function zs(u,f,b){return f===(4!==u.type||b?u.value:ti)}function sa(u,f,b){let E=4;const U=u.attrs,ne=null!==U?function Jr(u){for(let f=0;f<u.length;f++)if(Ht(u[f]))return f;return u.length}(U):0;let Ce=!1;for(let Ae=0;Ae<f.length;Ae++){const Xe=f[Ae];if("number"!=typeof Xe){if(!Ce)if(4&E){if(E=2|1&E,""!==Xe&&!zs(u,Xe,b)||""===Xe&&1===f.length){if(fs(E))return!1;Ce=!0}}else if(8&E){if(null===U||!br(u,U,Xe,b)){if(fs(E))return!1;Ce=!0}}else{const Ft=f[++Ae],gn=zr(Xe,U,wo(u),b);if(-1===gn){if(fs(E))return!1;Ce=!0;continue}if(""!==Ft){let Yn;if(Yn=gn>ne?"":U[gn+1].toLowerCase(),2&E&&Ft!==Yn){if(fs(E))return!1;Ce=!0}}}}else{if(!Ce&&!fs(E)&&!fs(Xe))return!1;if(Ce&&fs(Xe))continue;Ce=!1,E=Xe|1&E}}return fs(E)||Ce}function fs(u){return!(1&u)}function zr(u,f,b,E){if(null===f)return-1;let U=0;if(E||!b){let ne=!1;for(;U<f.length;){const Ce=f[U];if(Ce===u)return U;if(3===Ce||6===Ce)ne=!0;else{if(1===Ce||2===Ce){let Ae=f[++U];for(;"string"==typeof Ae;)Ae=f[++U];continue}if(4===Ce)break;if(0===Ce){U+=4;continue}}U+=ne?1:2}return-1}return function kr(u,f){let b=u.indexOf(4);if(b>-1)for(b++;b<u.length;){const E=u[b];if("number"==typeof E)return-1;if(E===f)return b;b++}return-1}(f,u)}function eo(u,f,b=!1){for(let E=0;E<f.length;E++)if(sa(u,f[E],b))return!0;return!1}function Sa(u,f){e:for(let b=0;b<f.length;b++){const E=f[b];if(u.length===E.length){for(let U=0;U<u.length;U++)if(u[U]!==E[U])continue e;return!0}}return!1}function rl(u,f){return u?":not("+f.trim()+")":f}function as(u){let f=u[0],b=1,E=2,U="",ne=!1;for(;b<u.length;){let Ce=u[b];if("string"==typeof Ce)if(2&E){const Ae=u[++b];U+="["+Ce+(Ae.length>0?'="'+Ae+'"':"")+"]"}else 8&E?U+="."+Ce:4&E&&(U+=" "+Ce);else""!==U&&!fs(Ce)&&(f+=rl(ne,U),U=""),E=Ce,ne=ne||!fs(E);b++}return""!==U&&(f+=rl(ne,U)),f}function ga(u){return xt(()=>{const f=vl(u),b={...f,decls:u.decls,vars:u.vars,template:u.template,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,onPush:u.changeDetection===ha.OnPush,directiveDefs:null,pipeDefs:null,dependencies:f.standalone&&u.dependencies||null,getStandaloneInjector:null,signals:u.signals??!1,data:u.data||{},encapsulation:u.encapsulation||Ys.Emulated,styles:u.styles||Mi,_:null,schemas:u.schemas||null,tView:null,id:""};Ws(b);const E=u.dependencies;return b.directiveDefs=Oa(E,!1),b.pipeDefs=Oa(E,!0),b.id=function Cl(u){let f=0;const b=[u.selectors,u.ngContentSelectors,u.hostVars,u.hostAttrs,u.consts,u.vars,u.decls,u.encapsulation,u.standalone,u.signals,u.exportAs,JSON.stringify(u.inputs),JSON.stringify(u.outputs),Object.getOwnPropertyNames(u.type.prototype),!!u.contentQueries,!!u.viewQuery].join("|");for(const U of b)f=Math.imul(31,f)+U.charCodeAt(0)|0;return f+=2147483648,"c"+f}(b),b})}function aa(u){return Co(u)||js(u)}function qs(u){return null!==u}function Ia(u){return xt(()=>({type:u.type,bootstrap:u.bootstrap||Mi,declarations:u.declarations||Mi,imports:u.imports||Mi,exports:u.exports||Mi,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function ea(u,f){if(null==u)return Bi;const b={};for(const E in u)if(u.hasOwnProperty(E)){const U=u[E];let ne,Ce,Ae=Po.None;Array.isArray(U)?(Ae=U[0],ne=U[1],Ce=U[2]??ne):(ne=U,Ce=U),f?(b[ne]=Ae!==Po.None?[E,Ae]:E,f[ne]=Ce):b[ne]=E}return b}function za(u){return xt(()=>{const f=vl(u);return Ws(f),f})}function dl(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:!0===u.standalone,onDestroy:u.type.prototype.ngOnDestroy||null}}function Co(u){return u[Pe]||null}function js(u){return u[Qe]||null}function Ts(u){return u[Be]||null}function ks(u){const f=Co(u)||js(u)||Ts(u);return null!==f&&f.standalone}function la(u,f){const b=u[Mt]||null;if(!b&&!0===f)throw new Error(`Type ${yn(u)} does not have '\u0275mod' property.`);return b}function vl(u){const f={};return{type:u.type,providersResolver:null,factory:null,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:f,inputTransforms:null,inputConfig:u.inputs||Bi,exportAs:u.exportAs||null,standalone:!0===u.standalone,signals:!0===u.signals,selectors:u.selectors||Mi,viewQuery:u.viewQuery||null,features:u.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ea(u.inputs,f),outputs:ea(u.outputs),debugInfo:null}}function Ws(u){u.features?.forEach(f=>f(u))}function Oa(u,f){if(!u)return null;const b=f?Ts:aa;return()=>("function"==typeof u?u():u).map(E=>b(E)).filter(qs)}function Zo(u){return{\u0275providers:u}}function Ai(...u){return{\u0275providers:lt(0,u),\u0275fromNgModule:!0}}function lt(u,...f){const b=[],E=new Set;let U;const ne=Ce=>{b.push(Ce)};return Qi(f,Ce=>{const Ae=Ce;St(Ae,ne,[],E)&&(U||=[],U.push(Ae))}),void 0!==U&&An(U,ne),b}function An(u,f){for(let b=0;b<u.length;b++){const{ngModule:E,providers:U}=u[b];qe(U,ne=>{f(ne,E)})}}function St(u,f,b,E){if(!(u=Ne(u)))return!1;let U=null,ne=Ti(u);const Ce=!ne&&Co(u);if(ne||Ce){if(Ce&&!Ce.standalone)return!1;U=u}else{const Xe=u.ngModule;if(ne=Ti(Xe),!ne)return!1;U=Xe}const Ae=E.has(U);if(Ce){if(Ae)return!1;if(E.add(U),Ce.dependencies){const Xe="function"==typeof Ce.dependencies?Ce.dependencies():Ce.dependencies;for(const Ft of Xe)St(Ft,f,b,E)}}else{if(!ne)return!1;{if(null!=ne.imports&&!Ae){let Ft;E.add(U);try{Qi(ne.imports,gn=>{St(gn,f,b,E)&&(Ft||=[],Ft.push(gn))})}finally{}void 0!==Ft&&An(Ft,f)}if(!Ae){const Ft=Ca(U)||(()=>new U);f({provide:U,useFactory:Ft,deps:Mi},U),f({provide:Bo,useValue:U,multi:!0},U),f({provide:tr,useValue:()=>ts(U),multi:!0},U)}const Xe=ne.providers;if(null!=Xe&&!Ae){const Ft=u;qe(Xe,gn=>{f(gn,Ft)})}}}return U!==u&&void 0!==u.providers}function qe(u,f){for(let b of u)Ee(b)&&(b=b.\u0275providers),Array.isArray(b)?qe(b,f):f(b)}const hn=dt({provide:String,useValue:dt});function hi(u){return null!==u&&"object"==typeof u&&hn in u}function Nn(u){return"function"==typeof u}const Mo=new Pt(""),Ao={},Wo={};let ta;function bo(){return void 0===ta&&(ta=new is),ta}class Ns{}class Ka extends Ns{get destroyed(){return this._destroyed}constructor(f,b,E,U){super(),this.parent=b,this.source=E,this.scopes=U,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,nc(f,Ce=>this.processProvider(Ce)),this.records.set(mo,Ml(void 0,this)),U.has("environment")&&this.records.set(Ns,Ml(void 0,this));const ne=this.records.get(Mo);null!=ne&&"string"==typeof ne.value&&this.scopes.add(ne.value),this.injectorDefTypes=new Set(this.get(Bo,Mi,ro.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const f=v(null);try{for(const E of this._ngOnDestroyHooks)E.ngOnDestroy();const b=this._onDestroyHooks;this._onDestroyHooks=[];for(const E of b)E()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),v(f)}}onDestroy(f){return this.assertNotDestroyed(),this._onDestroyHooks.push(f),()=>this.removeOnDestroy(f)}runInContext(f){this.assertNotDestroyed();const b=qr(this),E=es(void 0);try{return f()}finally{qr(b),es(E)}}get(f,b=Tn,E=ro.Default){if(this.assertNotDestroyed(),f.hasOwnProperty(si))return f[si](this);E=Hs(E);const ne=qr(this),Ce=es(void 0);try{if(!(E&ro.SkipSelf)){let Xe=this.records.get(f);if(void 0===Xe){const Ft=function Ic(u){return"function"==typeof u||"object"==typeof u&&u instanceof Pt}(f)&&Zt(f);Xe=Ft&&this.injectableDefInScope(Ft)?Ml(Sl(f),Ao):null,this.records.set(f,Xe)}if(null!=Xe)return this.hydrate(f,Xe)}return(E&ro.Self?bo():this.parent).get(f,b=E&ro.Optional&&b===Tn?null:b)}catch(Ae){if("NullInjectorError"===Ae.name){if((Ae[vn]=Ae[vn]||[]).unshift(yn(f)),ne)throw Ae;return function Pa(u,f,b,E){const U=u[vn];throw f[yr]&&U.unshift(f[yr]),u.message=function ys(u,f,b,E=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.slice(2):u;let U=yn(f);if(Array.isArray(f))U=f.map(yn).join(" -> ");else if("object"==typeof f){let ne=[];for(let Ce in f)if(f.hasOwnProperty(Ce)){let Ae=f[Ce];ne.push(Ce+":"+("string"==typeof Ae?JSON.stringify(Ae):yn(Ae)))}U=`{${ne.join(", ")}}`}return`${b}${E?"("+E+")":""}[${U}]: ${u.replace(Ci,"\n ")}`}("\n"+u.message,U,b,E),u.ngTokenPath=U,u[vn]=null,u}(Ae,f,"R3InjectorError",this.source)}throw Ae}finally{es(Ce),qr(ne)}}resolveInjectorInitializers(){const f=v(null),b=qr(this),E=es(void 0);try{const ne=this.get(tr,Mi,ro.Self);for(const Ce of ne)Ce()}finally{qr(b),es(E),v(f)}}toString(){const f=[],b=this.records;for(const E of b.keys())f.push(yn(E));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Oe(205,!1)}processProvider(f){let b=Nn(f=Ne(f))?f:Ne(f&&f.provide);const E=function fc(u){return hi(u)?Ml(void 0,u.useValue):Ml(_c(u),Ao)}(f);if(!Nn(f)&&!0===f.multi){let U=this.records.get(b);U||(U=Ml(void 0,Ao,!0),U.factory=()=>Ua(U.multi),this.records.set(b,U)),b=f,U.multi.push(f)}this.records.set(b,E)}hydrate(f,b){const E=v(null);try{return b.value===Ao&&(b.value=Wo,b.value=b.factory()),"object"==typeof b.value&&b.value&&function tc(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(b.value)&&this._ngOnDestroyHooks.add(b.value),b.value}finally{v(E)}}injectableDefInScope(f){if(!f.providedIn)return!1;const b=Ne(f.providedIn);return"string"==typeof b?"any"===b||this.scopes.has(b):this.injectorDefTypes.has(b)}removeOnDestroy(f){const b=this._onDestroyHooks.indexOf(f);-1!==b&&this._onDestroyHooks.splice(b,1)}}function Sl(u){const f=Zt(u),b=null!==f?f.factory:Ca(u);if(null!==b)return b;if(u instanceof Pt)throw new Oe(204,!1);if(u instanceof Function)return function Yl(u){if(u.length>0)throw new Oe(204,!1);const b=function zn(u){return u&&(u[Xt]||u[mi])||null}(u);return null!==b?()=>b.factory(u):()=>new u}(u);throw new Oe(204,!1)}function _c(u,f,b){let E;if(Nn(u)){const U=Ne(u);return Ca(U)||Sl(U)}if(hi(u))E=()=>Ne(u.useValue);else if(function le(u){return!(!u||!u.useFactory)}(u))E=()=>u.useFactory(...Ua(u.deps||[]));else if(function sr(u){return!(!u||!u.useExisting)}(u))E=()=>ts(Ne(u.useExisting));else{const U=Ne(u&&(u.useClass||u.provide));if(!function Ul(u){return!!u.deps}(u))return Ca(U)||Sl(U);E=()=>new U(...Ua(u.deps))}return E}function Ml(u,f,b=!1){return{factory:u,value:f,multi:b?[]:void 0}}function nc(u,f){for(const b of u)Array.isArray(b)?nc(b,f):b&&Ee(b)?nc(b.\u0275providers,f):f(b)}function na(u,f){u instanceof Ka&&u.assertNotDestroyed();const E=qr(u),U=es(void 0);try{return f()}finally{qr(E),es(U)}}function ul(){return void 0!==Os()||null!=function ko(){return $r}()}const Vo=0,Ir=1,fo=2,Es=3,Ea=4,Vs=5,ia=6,hl=7,gs=8,xa=9,kt=10,Ot=11,pt=12,ut=13,Pn=14,Qn=15,Ui=16,Ar=17,Or=18,pr=19,co=20,bn=21,so=22,gr=23,jr=25,$o=1,Ha=7,gl=9,hs=10;var Ed=function(u){return u[u.None=0]="None",u[u.HasTransplantedViews=2]="HasTransplantedViews",u}(Ed||{});function Xa(u){return Array.isArray(u)&&"object"==typeof u[$o]}function qa(u){return Array.isArray(u)&&!0===u[$o]}function xd(u){return!!(4&u.flags)}function _s(u){return u.componentOffset>-1}function zd(u){return!(1&~u.flags)}function rc(u){return!!u.template}function Bl(u){return!!(512&u[fo])}class ii{constructor(f,b,E){this.previousValue=f,this.currentValue=b,this.firstChange=E}isFirstChange(){return this.firstChange}}function Fi(u,f,b,E){null!==f?f.applyValueToInputSignal(f,E):u[b]=E}function Hi(){return Er}function Er(u){return u.type.prototype.ngOnChanges&&(u.setInput=Oo),Vr}function Vr(){const u=io(this),f=u?.current;if(f){const b=u.previous;if(b===Bi)u.previous=f;else for(let E in f)b[E]=f[E];u.current=null,this.ngOnChanges(f)}}function Oo(u,f,b,E,U){const ne=this.declaredInputs[E],Ce=io(u)||function Do(u,f){return u[uo]=f}(u,{previous:Bi,current:null}),Ae=Ce.current||(Ce.current={}),Xe=Ce.previous,Ft=Xe[ne];Ae[ne]=new ii(Ft&&Ft.currentValue,b,Xe===Bi),Fi(u,f,U,b)}Hi.ngInherit=!0;const uo="__ngSimpleChanges__";function io(u){return u[uo]||null}const Rs=function(u,f,b){},ka="svg";let Ql=!1;function Ro(u){for(;Array.isArray(u);)u=u[Vo];return u}function sc(u,f){return Ro(f[u])}function wa(u,f){return Ro(f[u.index])}function Jl(u,f){return u.data[f]}function Vl(u,f){return u[f]}function ol(u,f){const b=f[u];return Xa(b)?b:b[Vo]}function Lo(u){return!(128&~u[fo])}function ps(u,f){return null==f?null:u[f]}function el(u){u[Ar]=0}function Za(u){1024&u[fo]||(u[fo]|=1024,Lo(u)&&rd(u))}function Tl(u){return!!(9216&u[fo]||u[gr]?.dirty)}function Ma(u){u[kt].changeDetectionScheduler?.notify(1),Tl(u)?rd(u):64&u[fo]&&(function vc(){return Ql}()?(u[fo]|=1024,rd(u)):u[kt].changeDetectionScheduler?.notify())}function rd(u){u[kt].changeDetectionScheduler?.notify();let f=ca(u);for(;null!==f&&!(8192&f[fo])&&(f[fo]|=8192,Lo(f));)f=ca(f)}function Wc(u,f){if(!(256&~u[fo]))throw new Oe(911,!1);null===u[bn]&&(u[bn]=[]),u[bn].push(f)}function ca(u){const f=u[Es];return qa(f)?f[Es]:f}const yo={lFrame:ph(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function an(){return yo.bindingsEnabled}function kn(){return null!==yo.skipHydrationRootTNode}function ir(){return yo.lFrame.lView}function us(){return yo.lFrame.tView}function $c(u){return yo.lFrame.contextLView=u,u[gs]}function wd(u){return yo.lFrame.contextLView=null,u}function Ta(){let u=xp();for(;null!==u&&64===u.type;)u=u.parent;return u}function xp(){return yo.lFrame.currentTNode}function Sc(u,f){const b=yo.lFrame;b.currentTNode=u,b.isParent=f}function Xd(){return yo.lFrame.isParent}function Du(){yo.lFrame.isParent=!1}function Ks(){const u=yo.lFrame;let f=u.bindingRootIndex;return-1===f&&(f=u.bindingRootIndex=u.tView.bindingStartIndex),f}function Ac(){return yo.lFrame.bindingIndex++}function Ad(u){const f=yo.lFrame,b=f.bindingIndex;return f.bindingIndex=f.bindingIndex+u,b}function Tp(u,f){const b=yo.lFrame;b.bindingIndex=b.bindingRootIndex=u,Vh(f)}function Vh(u){yo.lFrame.currentDirectiveIndex=u}function Hh(u){const f=yo.lFrame.currentDirectiveIndex;return-1===f?null:u[f]}function Ng(){return yo.lFrame.currentQueryIndex}function Kl(u){yo.lFrame.currentQueryIndex=u}function Dd(u){const f=u[Ir];return 2===f.type?f.declTNode:1===f.type?u[Vs]:null}function jh(u,f,b){if(b&ro.SkipSelf){let U=f,ne=u;for(;!(U=U.parent,null!==U||b&ro.Host||(U=Dd(ne),null===U||(ne=ne[Pn],10&U.type))););if(null===U)return!1;f=U,u=ne}const E=yo.lFrame=gh();return E.currentTNode=f,E.lView=u,!0}function Wh(u){const f=gh(),b=u[Ir];yo.lFrame=f,f.currentTNode=b.firstChild,f.lView=u,f.tView=b,f.contextLView=u,f.bindingIndex=b.bindingStartIndex,f.inI18n=!1}function gh(){const u=yo.lFrame,f=null===u?null:u.child;return null===f?ph(u):f}function ph(u){const f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:u,child:null,inI18n:!1};return null!==u&&(u.child=f),f}function mh(){const u=yo.lFrame;return yo.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const $h=mh;function od(){const u=mh();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function Qa(){return yo.lFrame.selectedIndex}function Yc(u){yo.lFrame.selectedIndex=u}function Qs(){const u=yo.lFrame;return Jl(u.tView,u.selectedIndex)}function Fg(){yo.lFrame.currentNamespace=ka}function zh(){!function ym(){yo.lFrame.currentNamespace=null}()}let Ip=!0;function pu(){return Ip}function zc(u){Ip=u}function Xh(u,f){for(let b=f.directiveStart,E=f.directiveEnd;b<E;b++){const ne=u.data[b].type.prototype,{ngAfterContentInit:Ce,ngAfterContentChecked:Ae,ngAfterViewInit:Xe,ngAfterViewChecked:Ft,ngOnDestroy:gn}=ne;Ce&&(u.contentHooks??=[]).push(-b,Ce),Ae&&((u.contentHooks??=[]).push(b,Ae),(u.contentCheckHooks??=[]).push(b,Ae)),Xe&&(u.viewHooks??=[]).push(-b,Xe),Ft&&((u.viewHooks??=[]).push(b,Ft),(u.viewCheckHooks??=[]).push(b,Ft)),null!=gn&&(u.destroyHooks??=[]).push(b,gn)}}function Qd(u,f,b){Ap(u,f,3,b)}function bl(u,f,b,E){(3&u[fo])===b&&Ap(u,f,b,E)}function Dc(u,f){let b=u[fo];(3&b)===f&&(b&=16383,b+=1,u[fo]=b)}function Ap(u,f,b,E){const ne=E??-1,Ce=f.length-1;let Ae=0;for(let Xe=void 0!==E?65535&u[Ar]:0;Xe<Ce;Xe++)if("number"==typeof f[Xe+1]){if(Ae=f[Xe],null!=E&&Ae>=E)break}else f[Xe]<0&&(u[Ar]+=65536),(Ae<ne||-1==ne)&&(mu(u,b,f,Xe),u[Ar]=(4294901760&u[Ar])+Xe+2),Xe++}function Dp(u,f){Rs(4,u,f);const b=v(null);try{f.call(u)}finally{v(b),Rs(5,u,f)}}function mu(u,f,b,E){const U=b[E]<0,ne=b[E+1],Ae=u[U?-b[E]:b[E]];U?u[fo]>>14<u[Ar]>>16&&(3&u[fo])===f&&(u[fo]+=16384,Dp(Ae,ne)):Dp(Ae,ne)}const Rc=-1;class Ru{constructor(f,b,E){this.factory=f,this.resolving=!1,this.canSeeViewProviders=b,this.injectImpl=E}}function qh(u){return u!==Rc}function eu(u){return 32767&u}function fu(u,f){let b=function Rp(u){return u>>16}(u),E=f;for(;b>0;)E=E[Pn],b--;return E}let eg=!0;function Lu(u){const f=eg;return eg=u,f}const Gg=255,_h=5;let _u=0;const ac={};function yc(u,f){const b=Vg(u,f);if(-1!==b)return b;const E=f[Ir];E.firstCreatePass&&(u.injectorIndex=f.length,Ra(E.data,u),Ra(f,null),Ra(E.blueprint,null));const U=vu(u,f),ne=u.injectorIndex;if(qh(U)){const Ce=eu(U),Ae=fu(U,f),Xe=Ae[Ir].data;for(let Ft=0;Ft<8;Ft++)f[ne+Ft]=Ae[Ce+Ft]|Xe[Ce+Ft]}return f[ne+8]=U,ne}function Ra(u,f){u.push(0,0,0,0,0,0,0,0,f)}function Vg(u,f){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===f[u.injectorIndex+8]?-1:u.injectorIndex}function vu(u,f){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let b=0,E=null,U=f;for(;null!==U;){if(E=Il(U),null===E)return Rc;if(b++,U=U[Pn],-1!==E.injectorIndex)return E.injectorIndex|b<<16}return Rc}function tu(u,f,b){!function Pm(u,f,b){let E;"string"==typeof b?E=b.charCodeAt(0)||0:b.hasOwnProperty(Vn)&&(E=b[Vn]),null==E&&(E=b[Vn]=_u++);const U=E⋙f.data[u+(U>>_h)]|=1<<U}(u,f,b)}function ku(u,f,b){if(b&ro.Optional||void 0!==u)return u;Tr()}function Nu(u,f,b,E){if(b&ro.Optional&&void 0===E&&(E=null),!(b&(ro.Self|ro.Host))){const U=u[xa],ne=es(void 0);try{return U?U.get(f,E,b&ro.Optional):Bs(f,E,b&ro.Optional)}finally{es(ne)}}return ku(E,0,b)}function Kc(u,f,b,E=ro.Default,U){if(null!==u){if(2048&f[fo]&&!(E&ro.Self)){const Ce=function sd(u,f,b,E,U){let ne=u,Ce=f;for(;null!==ne&&null!==Ce&&2048&Ce[fo]&&!(512&Ce[fo]);){const Ae=nu(ne,Ce,b,E|ro.Self,ac);if(Ae!==ac)return Ae;let Xe=ne.parent;if(!Xe){const Ft=Ce[co];if(Ft){const gn=Ft.get(b,ac,E);if(gn!==ac)return gn}Xe=Il(Ce),Ce=Ce[Pn]}ne=Xe}return U}(u,f,b,E,ac);if(Ce!==ac)return Ce}const ne=nu(u,f,b,E,ac);if(ne!==ac)return ne}return Nu(f,b,E,U)}function nu(u,f,b,E,U){const ne=function iu(u){if("string"==typeof u)return u.charCodeAt(0)||0;const f=u.hasOwnProperty(Vn)?u[Vn]:void 0;return"number"==typeof f?f>=0?f&Gg:vh:f}(b);if("function"==typeof ne){if(!jh(f,u,E))return E&ro.Host?ku(U,0,E):Nu(f,b,E,U);try{let Ce;if(Ce=ne(E),null!=Ce||E&ro.Optional)return Ce;Tr()}finally{$h()}}else if("number"==typeof ne){let Ce=null,Ae=Vg(u,f),Xe=Rc,Ft=E&ro.Host?f[Qn][Vs]:null;for((-1===Ae||E&ro.SkipSelf)&&(Xe=-1===Ae?vu(u,f):f[Ae+8],Xe!==Rc&&bc(E,!1)?(Ce=f[Ir],Ae=eu(Xe),f=fu(Xe,f)):Ae=-1);-1!==Ae;){const gn=f[Ir];if(qo(ne,Ae,gn.data)){const Yn=ng(Ae,f,b,Ce,E,Ft);if(Yn!==ac)return Yn}Xe=f[Ae+8],Xe!==Rc&&bc(E,f[Ir].data[Ae+8]===Ft)&&qo(ne,Ae,f)?(Ce=gn,Ae=eu(Xe),f=fu(Xe,f)):Ae=-1}}return U}function ng(u,f,b,E,U,ne){const Ce=f[Ir],Ae=Ce.data[u+8],gn=md(Ae,Ce,b,null==E?_s(Ae)&&eg:E!=Ce&&!!(3&Ae.type),U&ro.Host&&ne===Ae);return null!==gn?Xc(f,Ce,gn,Ae):ac}function md(u,f,b,E,U){const ne=u.providerIndexes,Ce=f.data,Ae=1048575&ne,Xe=u.directiveStart,gn=ne>>20,Li=U?Ae+gn:u.directiveEnd;for(let Wi=E?Ae:Ae+gn;Wi<Li;Wi++){const qi=Ce[Wi];if(Wi<Xe&&b===qi||Wi>=Xe&&qi.type===b)return Wi}if(U){const Wi=Ce[Xe];if(Wi&&rc(Wi)&&Wi.type===b)return Xe}return null}function Xc(u,f,b,E){let U=u[b];const ne=f.data;if(function Zh(u){return u instanceof Ru}(U)){const Ce=U;Ce.resolving&&function Qr(u,f){throw f&&f.join(" > "),new Oe(-200,u)}(function _i(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():Rn(u)}(ne[b]));const Ae=Lu(Ce.canSeeViewProviders);Ce.resolving=!0;const Ft=Ce.injectImpl?es(Ce.injectImpl):null;jh(u,E,ro.Default);try{U=u[b]=Ce.factory(void 0,ne,u,E),f.firstCreatePass&&b>=E.directiveStart&&function Kh(u,f,b){const{ngOnChanges:E,ngOnInit:U,ngDoCheck:ne}=f.type.prototype;if(E){const Ce=Er(f);(b.preOrderHooks??=[]).push(u,Ce),(b.preOrderCheckHooks??=[]).push(u,Ce)}U&&(b.preOrderHooks??=[]).push(0-u,U),ne&&((b.preOrderHooks??=[]).push(u,ne),(b.preOrderCheckHooks??=[]).push(u,ne))}(b,ne[b],f)}finally{null!==Ft&&es(Ft),Lu(Ae),Ce.resolving=!1,$h()}}return U}function qo(u,f,b){return!!(b[f+(u>>_h)]&1<<u)}function bc(u,f){return!(u&ro.Self||u&ro.Host&&f)}class Pl{constructor(f,b){this._tNode=f,this._lView=b}get(f,b,E){return Kc(this._tNode,this._lView,f,Hs(E),b)}}function vh(){return new Pl(Ta(),ir())}function Lc(u){return xt(()=>{const f=u.prototype.constructor,b=f[Vt]||Ol(f),E=Object.prototype;let U=Object.getPrototypeOf(u.prototype).constructor;for(;U&&U!==E;){const ne=U[Vt]||Ol(U);if(ne&&ne!==b)return ne;U=Object.getPrototypeOf(U)}return ne=>new ne})}function Ol(u){return zt(u)?()=>{const f=Ol(Ne(u));return f&&f()}:Ca(u)}function Il(u){const f=u[Ir],b=f.type;return 2===b?f.declTNode:1===b?u[Vs]:null}function Fu(u){return function tg(u,f){if("class"===f)return u.classes;if("style"===f)return u.styles;const b=u.attrs;if(b){const E=b.length;let U=0;for(;U<E;){const ne=b[U];if(Ht(ne))break;if(0===ne)U+=2;else if("number"==typeof ne)for(U++;U<E&&"string"==typeof b[U];)U++;else{if(ne===f)return b[U+1];U+=2}}}return null}(Ta(),u)}function Rd(u,f=null,b=null,E){const U=Bp(u,f,b,E);return U.resolveInjectorInitializers(),U}function Bp(u,f=null,b=null,E,U=new Set){const ne=[b||Mi,Ai(u)];return E=E||("object"==typeof u?void 0:yn(u)),new Ka(ne,f||bo(),E||null,U)}let cc=(()=>{var u;class f{static create(E,U){if(Array.isArray(E))return Rd({name:""},U,E,"");{const ne=E.name??"";return Rd({name:ne},E.parent,E.providers,ne)}}}return(u=f).THROW_IF_NOT_FOUND=Tn,u.NULL=new is,u.\u0275prov=di({token:u,providedIn:"any",factory:()=>ts(mo)}),u.__NG_ELEMENT_ID__=-1,f})();function Nc(u){return u.ngOriginalError}class ld{constructor(){this._console=console}handleError(f){const b=this._findOriginalError(f);this._console.error("ERROR",f),b&&this._console.error("ORIGINAL ERROR",b)}_findOriginalError(f){let b=f&&Nc(f);for(;b&&Nc(b);)b=Nc(b);return b||null}}const kd=new Pt("",{providedIn:"root",factory:()=>Xr(ld).handleError.bind(void 0)});let ru=(()=>{var u;class f{}return(u=f).__NG_ELEMENT_ID__=Gp,u.__NG_ENV_ID__=b=>b,f})();class Bu extends ru{constructor(f){super(),this._lView=f}onDestroy(f){return Wc(this._lView,f),()=>function ma(u,f){if(null===u[bn])return;const b=u[bn].indexOf(f);-1!==b&&u[bn].splice(b,1)}(this._lView,f)}}function Gp(){return new Bu(ir())}function Hp(){return fd(Ta(),ir())}function fd(u,f){return new Ch(wa(u,f))}let Ch=(()=>{class f{constructor(E){this.nativeElement=E}}return f.__NG_ELEMENT_ID__=Hp,f})();function jp(u){return u instanceof Ch?u.nativeElement:u}function Yg(u){return f=>{setTimeout(u,void 0,f)}}const Fd=class Wp extends _e.B7{constructor(f=!1){super(),this.destroyRef=void 0,this.__isAsync=f,ul()&&(this.destroyRef=Xr(ru,{optional:!0})??void 0)}emit(f){const b=v(null);try{super.next(f)}finally{v(b)}}subscribe(f,b,E){let U=f,ne=b||(()=>null),Ce=E;if(f&&"object"==typeof f){const Xe=f;U=Xe.next?.bind(Xe),ne=Xe.error?.bind(Xe),Ce=Xe.complete?.bind(Xe)}this.__isAsync&&(ne=Yg(ne),U&&(U=Yg(U)),Ce&&(Ce=Yg(Ce)));const Ae=super.subscribe({next:U,error:ne,complete:Ce});return f instanceof ke.y&&f.add(Ae),Ae}};function Om(){return this._results[Symbol.iterator]()}class al{get changes(){return this._changes??=new Fd}constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const b=al.prototype;b[Symbol.iterator]||(b[Symbol.iterator]=Om)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,b){return this._results.reduce(f,b)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,b){this.dirty=!1;const E=function Pi(u){return u.flat(Number.POSITIVE_INFINITY)}(f);(this._changesDetected=!function ln(u,f,b){if(u.length!==f.length)return!1;for(let E=0;E<u.length;E++){let U=u[E],ne=f[E];if(b&&(U=b(U),ne=b(ne)),ne!==U)return!1}return!0}(this._results,E,b))&&(this._results=E,this.length=E.length,this.last=E[this.length-1],this.first=E[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(f){this._onDirty=f}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function Al(u){return!(128&~u.flags)}const Gu=new Map;let Em=0;const ag="__ngContext__";function Is(u,f){Xa(f)?(u[ag]=f[pr],function og(u){Gu.set(u[pr],u)}(f)):u[ag]=f}function Qg(u){return Hu(u[pt])}function lg(u){return Hu(u[Ea])}function Hu(u){for(;null!==u&&!qa(u);)u=u[Ea];return u}let ep;function nl(u){ep=u}function ql(){if(void 0!==ep)return ep;if(typeof document<"u")return document;throw new Oe(210,!1)}const hg=new Pt("",{providedIn:"root",factory:()=>Qp}),Qp="ng",tp=new Pt(""),gg=new Pt("",{providedIn:"platform",factory:()=>"unknown"}),pg=new Pt(""),Fm=new Pt("",{providedIn:"root",factory:()=>ql().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ku=()=>null;function fg(u,f,b=!1){return Ku(u,f,b)}const Dl=new Pt("",{providedIn:"root",factory:()=>!1});let Zu,Pu;function Cd(u){return function op(){if(void 0===Zu&&(Zu=null,En.trustedTypes))try{Zu=En.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Zu}()?.createHTML(u)||u}function vg(){if(void 0===Pu&&(Pu=null,En.trustedTypes))try{Pu=En.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Pu}function tm(u){return vg()?.createHTML(u)||u}function nm(u){return vg()?.createScriptURL(u)||u}class Rl{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${$e})`}}class sp extends Rl{getTypeName(){return"HTML"}}class mf extends Rl{getTypeName(){return"Style"}}class Ym extends Rl{getTypeName(){return"Script"}}class im extends Rl{getTypeName(){return"URL"}}class zm extends Rl{getTypeName(){return"ResourceURL"}}function Ll(u){return u instanceof Rl?u.changingThisBreaksApplicationSecurity:u}function Ou(u,f){const b=function Cg(u){return u instanceof Rl&&u.getTypeName()||null}(u);if(null!=b&&b!==f){if("ResourceURL"===b&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${b} (see ${$e})`)}return b===f}function Qu(u){return new sp(u)}function Ps(u){return new mf(u)}function ff(u){return new Ym(u)}function Bc(u){return new im(u)}function ll(u){return new zm(u)}class cu{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f="<body><remove></remove>"+f;try{const b=(new window.DOMParser).parseFromString(Cd(f),"text/html").body;return null===b?this.inertDocumentHelper.getInertBodyElement(f):(b.removeChild(b.firstChild),b)}catch{return null}}}class Km{constructor(f){this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(f){const b=this.inertDocument.createElement("template");return b.innerHTML=Cd(f),b}}const qu=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Sg(u){return(u=String(u)).match(qu)?u:"unsafe:"+u}function td(u){const f={};for(const b of u.split(","))f[b]=!0;return f}function Pc(...u){const f={};for(const b of u)for(const E in b)b.hasOwnProperty(E)&&(f[E]=!0);return f}const eh=td("area,br,col,hr,img,wbr"),Sd=td("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Th=td("rp,rt"),Ih=Pc(eh,Pc(Sd,td("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Pc(Th,td("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Pc(Th,Sd)),ap=td("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rm=Pc(ap,td("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),td("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Zm=td("script,style,template");class lp{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(f){let b=f.firstChild,E=!0,U=[];for(;b;)if(b.nodeType===Node.ELEMENT_NODE?E=this.startElement(b):b.nodeType===Node.TEXT_NODE?this.chars(b.nodeValue):this.sanitizedSomething=!0,E&&b.firstChild)U.push(b),b=cp(b);else for(;b;){b.nodeType===Node.ELEMENT_NODE&&this.endElement(b);let ne=th(b);if(ne){b=ne;break}b=U.pop()}return this.buf.join("")}startElement(f){const b=dp(f).toLowerCase();if(!Ih.hasOwnProperty(b))return this.sanitizedSomething=!0,!Zm.hasOwnProperty(b);this.buf.push("<"),this.buf.push(b);const E=f.attributes;for(let U=0;U<E.length;U++){const ne=E.item(U),Ce=ne.name,Ae=Ce.toLowerCase();if(!rm.hasOwnProperty(Ae)){this.sanitizedSomething=!0;continue}let Xe=ne.value;ap[Ae]&&(Xe=Sg(Xe)),this.buf.push(" ",Ce,'="',du(Xe),'"')}return this.buf.push(">"),!0}endElement(f){const b=dp(f).toLowerCase();Ih.hasOwnProperty(b)&&!eh.hasOwnProperty(b)&&(this.buf.push("</"),this.buf.push(b),this.buf.push(">"))}chars(f){this.buf.push(du(f))}}function th(u){const f=u.nextSibling;if(f&&u!==f.previousSibling)throw up(f);return f}function cp(u){const f=u.firstChild;if(f&&function om(u,f){return(u.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(u,f))throw up(f);return f}function dp(u){const f=u.nodeName;return"string"==typeof f?f:"FORM"}function up(u){return new Error(`Failed to sanitize html because the element is clobbered: ${u.outerHTML}`)}const yg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gc=/([^\#-~ |!])/g;function du(u){return u.replace(/&/g,"&").replace(yg,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(Gc,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let hp;function Qm(u,f){let b=null;try{hp=hp||function Ju(u){const f=new Km(u);return function wh(){try{return!!(new window.DOMParser).parseFromString(Cd(""),"text/html")}catch{return!1}}()?new cu(f):f}(u);let E=f?String(f):"";b=hp.getInertBodyElement(E);let U=5,ne=E;do{if(0===U)throw new Error("Failed to sanitize html because the input is unstable");U--,E=ne,ne=b.innerHTML,b=hp.getInertBodyElement(E)}while(E!==ne);return Cd((new lp).sanitizeChildren(sm(b)||b))}finally{if(b){const E=sm(b)||b;for(;E.firstChild;)E.removeChild(E.firstChild)}}}function sm(u){return"content"in u&&function am(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var nh=function(u){return u[u.NONE=0]="NONE",u[u.HTML=1]="HTML",u[u.STYLE=2]="STYLE",u[u.SCRIPT=3]="SCRIPT",u[u.URL=4]="URL",u[u.RESOURCE_URL=5]="RESOURCE_URL",u}(nh||{});function gp(u){const f=Oc();return f?tm(f.sanitize(nh.HTML,u)||""):Ou(u,"HTML")?tm(Ll(u)):Qm(ql(),Rn(u))}function xs(u){const f=Oc();return f?f.sanitize(nh.URL,u)||"":Ou(u,"URL")?Ll(u):Sg(Rn(u))}function bg(u){const f=Oc();if(f)return nm(f.sanitize(nh.RESOURCE_URL,u)||"");if(Ou(u,"ResourceURL"))return nm(Ll(u));throw new Oe(904,!1)}function Pg(u,f,b){return function ba(u,f){return"src"===f&&("embed"===u||"frame"===u||"iframe"===u||"media"===u||"script"===u)||"href"===f&&("base"===u||"link"===u)?bg:xs}(f,b)(u)}function Oc(){const u=ir();return u&&u[kt].sanitizer}const cm=/^>|^->|<!--|-->|--!>|<!-$/g,Ah=/(<|>)/g,Dh="\u200b$1\u200b";function _p(u){return u.ownerDocument.defaultView}function Vd(u){return u.ownerDocument}function Ec(u){return u instanceof Function?u():u}var q=function(u){return u[u.Important=1]="Important",u[u.DashCase=2]="DashCase",u}(q||{});let Se;function be(u,f){return Se(u,f)}function _t(u,f,b,E,U){if(null!=E){let ne,Ce=!1;qa(E)?ne=E:Xa(E)&&(Ce=!0,E=E[Vo]);const Ae=Ro(E);0===u&&null!==b?null==U?kl(f,b,Ae):ua(f,b,Ae,U||null,!0):1===u&&null!==b?ua(f,b,Ae,U||null,!0):2===u?function lh(u,f,b){const E=Nl(u,f);E&&function $l(u,f,b,E){u.removeChild(f,b,E)}(u,E,f,b)}(f,Ae,Ce):3===u&&f.destroyNode(Ae),null!=ne&&function Ag(u,f,b,E,U){const ne=b[Ha];ne!==Ro(b)&&_t(f,u,E,ne,U);for(let Ae=hs;Ae<b.length;Ae++){const Xe=b[Ae];Md(Xe[Ir],Xe,u,f,E,ne)}}(f,u,ne,b,U)}}function Sn(u,f){return u.createComment(function Eu(u){return u.replace(cm,f=>f.replace(Ah,Dh))}(f))}function In(u,f,b){return u.createElement(f,b)}function er(u,f){f[kt].changeDetectionScheduler?.notify(1),Md(u,f,f[Ot],2,null,null)}function vr(u,f){const b=u[gl],E=b.indexOf(f);b.splice(E,1)}function Hr(u,f){if(u.length<=hs)return;const b=hs+f,E=u[b];if(E){const U=E[Ui];null!==U&&U!==u&&vr(U,E),f>0&&(u[b-1][Ea]=E[Ea]);const ne=Di(u,hs+f);!function ci(u,f){er(u,f),f[Vo]=null,f[Vs]=null}(E[Ir],E);const Ce=ne[Or];null!==Ce&&Ce.detachView(ne[Ir]),E[Es]=null,E[Ea]=null,E[fo]&=-129}return E}function Ko(u,f){if(!(256&f[fo])){const b=f[Ot];b.destroyNode&&Md(u,f,b,3,null,null),function fi(u){let f=u[pt];if(!f)return Fo(u[Ir],u);for(;f;){let b=null;if(Xa(f))b=f[pt];else{const E=f[hs];E&&(b=E)}if(!b){for(;f&&!f[Ea]&&f!==u;)Xa(f)&&Fo(f[Ir],f),f=f[Es];null===f&&(f=u),Xa(f)&&Fo(f[Ir],f),b=f&&f[Ea]}f=b}}(f)}}function Fo(u,f){if(256&f[fo])return;const b=v(null);try{f[fo]&=-129,f[fo]|=256,f[gr]&&function V(u){if(k(u),I(u))for(let f=0;f<u.producerNode.length;f++)F(u.producerNode[f],u.producerIndexOfThis[f]);u.producerNode.length=u.producerLastReadVersion.length=u.producerIndexOfThis.length=0,u.liveConsumerNode&&(u.liveConsumerNode.length=u.liveConsumerIndexOfThis.length=0)}(f[gr]),function os(u,f){let b;if(null!=u&&null!=(b=u.destroyHooks))for(let E=0;E<b.length;E+=2){const U=f[b[E]];if(!(U instanceof Ru)){const ne=b[E+1];if(Array.isArray(ne))for(let Ce=0;Ce<ne.length;Ce+=2){const Ae=U[ne[Ce]],Xe=ne[Ce+1];Rs(4,Ae,Xe);try{Xe.call(Ae)}finally{Rs(5,Ae,Xe)}}else{Rs(4,U,ne);try{ne.call(U)}finally{Rs(5,U,ne)}}}}}(u,f),function mr(u,f){const b=u.cleanup,E=f[hl];if(null!==b)for(let ne=0;ne<b.length-1;ne+=2)if("string"==typeof b[ne]){const Ce=b[ne+3];Ce>=0?E[Ce]():E[-Ce].unsubscribe(),ne+=2}else b[ne].call(E[b[ne+1]]);null!==E&&(f[hl]=null);const U=f[bn];if(null!==U){f[bn]=null;for(let ne=0;ne<U.length;ne++)(0,U[ne])()}}(u,f),1===f[Ir].type&&f[Ot].destroy();const E=f[Ui];if(null!==E&&qa(f[Es])){E!==f[Es]&&vr(E,f);const U=f[Or];null!==U&&U.detachView(u)}!function $p(u){Gu.delete(u[pr])}(f)}finally{v(b)}}function Ja(u,f,b){return function Us(u,f,b){let E=f;for(;null!==E&&40&E.type;)E=(f=E).parent;if(null===E)return b[Vo];{const{componentOffset:U}=E;if(U>-1){const{encapsulation:ne}=u.data[E.directiveStart+U];if(ne===Ys.None||ne===Ys.Emulated)return null}return wa(E,b)}}(u,f.parent,b)}function ua(u,f,b,E,U){u.insertBefore(f,b,E,U)}function kl(u,f,b){u.appendChild(f,b)}function Wl(u,f,b,E,U){null!==E?ua(u,f,b,E,U):kl(u,f,b)}function Nl(u,f){return u.parentNode(f)}function xc(u,f,b){return ud(u,f,b)}let Hd,ud=function gc(u,f,b){return 40&u.type?wa(u,b):null};function jd(u,f,b,E){const U=Ja(u,E,f),ne=f[Ot],Ae=xc(E.parent||f[Vs],E,f);if(null!=U)if(Array.isArray(b))for(let Xe=0;Xe<b.length;Xe++)Wl(ne,U,b[Xe],Ae,!1);else Wl(ne,U,b,Ae,!1);void 0!==Hd&&Hd(ne,E,f,b,U)}function gu(u,f){if(null!==f){const b=f.type;if(3&b)return wa(f,u);if(4&b)return Tg(-1,u[f.index]);if(8&b){const E=f.child;if(null!==E)return gu(u,E);{const U=u[f.index];return qa(U)?Tg(-1,U):Ro(U)}}if(32&b)return be(f,u)()||Ro(u[f.index]);{const E=kh(u,f);return null!==E?Array.isArray(E)?E[0]:gu(ca(u[Qn]),E):gu(u,f.next)}}return null}function kh(u,f){return null!==f?u[Qn][Vs].projection[f.projection]:null}function Tg(u,f){const b=hs+u+1;if(b<f.length){const E=f[b],U=E[Ir].firstChild;if(null!==U)return gu(E,U)}return f[Ha]}function Zl(u,f,b,E,U,ne,Ce){for(;null!=b;){const Ae=E[b.index],Xe=b.type;if(Ce&&0===f&&(Ae&&Is(Ro(Ae),E),b.flags|=2),32&~b.flags)if(8&Xe)Zl(u,f,b.child,E,U,ne,!1),_t(f,u,U,Ae,ne);else if(32&Xe){const Ft=be(b,E);let gn;for(;gn=Ft();)_t(f,u,U,gn,ne);_t(f,u,U,Ae,ne)}else 16&Xe?Sp(u,f,E,b,U,ne):_t(f,u,U,Ae,ne);b=Ce?b.projectionNext:b.next}}function Md(u,f,b,E,U,ne){Zl(b,E,u.firstChild,f,U,ne,!1)}function Sp(u,f,b,E,U,ne){const Ce=b[Qn],Xe=Ce[Vs].projection[E.projection];if(Array.isArray(Xe))for(let Ft=0;Ft<Xe.length;Ft++)_t(f,u,U,Xe[Ft],ne);else{let Ft=Xe;const gn=Ce[Es];Al(E)&&(Ft.flags|=128),Zl(u,f,Ft,gn,U,ne,!0)}}function pm(u,f,b){""===b?u.removeAttribute(f,"class"):u.setAttribute(f,"class",b)}function hd(u,f,b){const{mergedAttrs:E,classes:U,styles:ne}=b;null!==E&&oa(u,f,E),null!==U&&pm(u,f,U),null!==ne&&function dh(u,f,b){u.setAttribute(f,"style",b)}(u,f,ne)}const Ms={};function Wd(u=1){nd(us(),ir(),Qa()+u,!1)}function nd(u,f,b,E){if(!E)if(3&~f[fo]){const ne=u.preOrderHooks;null!==ne&&bl(f,ne,0,b)}else{const ne=u.preOrderCheckHooks;null!==ne&&Qd(f,ne,b)}Yc(b)}function ec(u,f=ro.Default){const b=ir();return null===b?ts(u,f):Kc(Ta(),b,Ne(u),f)}function $s(){throw new Error("invalid")}function mm(u,f,b,E,U,ne){const Ce=v(null);try{let Ae=null;U&Po.SignalBased&&(Ae=f[E][P]),null!==Ae&&void 0!==Ae.transformFn&&(ne=Ae.transformFn(ne)),U&Po.HasDecoratorInputTransform&&(ne=u.inputTransforms[E].call(f,ne)),null!==u.setInput?u.setInput(f,Ae,ne,b,E):Fi(f,Ae,E,ne)}finally{v(Ce)}}function kf(u,f,b,E,U,ne,Ce,Ae,Xe,Ft,gn){const Yn=f.blueprint.slice();return Yn[Vo]=U,Yn[fo]=204|E,(null!==Ft||u&&2048&u[fo])&&(Yn[fo]|=2048),el(Yn),Yn[Es]=Yn[Pn]=u,Yn[gs]=b,Yn[kt]=Ce||u&&u[kt],Yn[Ot]=Ae||u&&u[Ot],Yn[xa]=Xe||u&&u[xa]||null,Yn[Vs]=ne,Yn[pr]=function xm(){return Em++}(),Yn[ia]=gn,Yn[co]=Ft,Yn[Qn]=2==f.type?u[Qn]:Yn,Yn}function Mp(u,f,b,E,U){let ne=u.data[f];if(null===ne)ne=function vf(u,f,b,E,U){const ne=xp(),Ce=Xd(),Xe=u.data[f]=function _v(u,f,b,E,U,ne){let Ce=f?f.injectorIndex:-1,Ae=0;return kn()&&(Ae|=128),{type:b,index:E,insertBeforeIndex:null,injectorIndex:Ce,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:Ae,providerIndexes:0,value:U,attrs:ne,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:f,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,Ce?ne:ne&&ne.parent,b,f,E,U);return null===u.firstChild&&(u.firstChild=Xe),null!==ne&&(Ce?null==ne.child&&null!==Xe.parent&&(ne.child=Xe):null===ne.next&&(ne.next=Xe,Xe.prev=ne)),Xe}(u,f,b,E,U),function Mm(){return yo.lFrame.inI18n}()&&(ne.flags|=32);else if(64&ne.type){ne.type=b,ne.value=E,ne.attrs=U;const Ce=function Gh(){const u=yo.lFrame,f=u.currentTNode;return u.isParent?f:f.parent}();ne.injectorIndex=null===Ce?-1:Ce.injectorIndex}return Sc(ne,!0),ne}function Cf(u,f,b,E){if(0===b)return-1;const U=f.length;for(let ne=0;ne<b;ne++)f.push(E),u.blueprint.push(E),u.data.push(null);return U}function M_(u,f,b,E,U){const ne=Qa(),Ce=2&E;try{Yc(-1),Ce&&f.length>jr&&nd(u,f,jr,!1),Rs(Ce?2:0,U),b(E,U)}finally{Yc(ne),Rs(Ce?3:1,U)}}function Nf(u,f,b){if(xd(f)){const E=v(null);try{const ne=f.directiveEnd;for(let Ce=f.directiveStart;Ce<ne;Ce++){const Ae=u.data[Ce];Ae.contentQueries&&Ae.contentQueries(1,b[Ce],Ce)}}finally{v(E)}}}function yp(u,f,b){an()&&(function Ei(u,f,b,E){const U=b.directiveStart,ne=b.directiveEnd;_s(b)&&function Xs(u,f,b){const E=wa(f,u),U=fa(b);let Ce=16;b.signals?Ce=4096:b.onPush&&(Ce=64);const Ae=_l(u,kf(u,U,null,Ce,E,f,null,u[kt].rendererFactory.createRenderer(E,b),null,null,null));u[f.index]=Ae}(f,b,u.data[U+b.componentOffset]),u.firstCreatePass||yc(b,f),Is(E,f);const Ce=b.initialInputs;for(let Ae=U;Ae<ne;Ae++){const Xe=u.data[Ae],Ft=Xc(f,u,Ae,b);Is(Ft,f),null!==Ce&&_a(0,Ae-U,Ft,Xe,0,Ce),rc(Xe)&&(ol(b.index,f)[gs]=Xc(f,u,Ae,b))}}(u,f,b,wa(b,f)),!(64&~b.flags)&&Gi(u,f,b))}function Ff(u,f,b=wa){const E=f.localNames;if(null!==E){let U=f.index+1;for(let ne=0;ne<E.length;ne+=2){const Ce=E[ne+1],Ae=-1===Ce?b(f,u):u[Ce];u[U++]=Ae}}}function fa(u){const f=u.tView;return null===f||f.incompleteFirstPass?u.tView=ra(1,null,u.template,u.decls,u.vars,u.directiveDefs,u.pipeDefs,u.viewQuery,u.schemas,u.consts,u.id):f}function ra(u,f,b,E,U,ne,Ce,Ae,Xe,Ft,gn){const Yn=jr+E,Li=Yn+U,Wi=function y_(u,f){const b=[];for(let E=0;E<f;E++)b.push(E<u?null:Ms);return b}(Yn,Li),qi="function"==typeof Ft?Ft():Ft;return Wi[Ir]={type:u,blueprint:Wi,template:b,queries:null,viewQuery:Ae,declTNode:f,data:Wi.slice().fill(null,Yn),bindingStartIndex:Yn,expandoStartIndex:Li,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof ne?ne():ne,pipeRegistry:"function"==typeof Ce?Ce():Ce,firstChild:null,schemas:Xe,consts:qi,incompleteFirstPass:!1,ssrId:gn}}let qf=()=>null;function P_(u,f,b,E,U){for(let ne in f){if(!f.hasOwnProperty(ne))continue;const Ce=f[ne];if(void 0===Ce)continue;E??={};let Ae,Xe=Po.None;Array.isArray(Ce)?(Ae=Ce[0],Xe=Ce[1]):Ae=Ce;let Ft=ne;if(null!==U){if(!U.hasOwnProperty(ne))continue;Ft=U[ne]}0===u?O_(E,b,Ft,Ae,Xe):O_(E,b,Ft,Ae)}return E}function O_(u,f,b,E,U){let ne;u.hasOwnProperty(b)?(ne=u[b]).push(f,E):ne=u[b]=[f,E],void 0!==U&&ne.push(U)}function $d(u,f,b,E,U,ne,Ce,Ae){const Xe=wa(f,b);let gn,Ft=f.inputs;!Ae&&null!=Ft&&(gn=Ft[E])?(Sf(u,b,gn,E,U),_s(f)&&function x_(u,f){const b=ol(f,u);16&b[fo]||(b[fo]|=64)}(b,f.index)):3&f.type&&(E=function E_(u){return"class"===u?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u}(E),U=null!=Ce?Ce(U,f.value||"",E):U,ne.setProperty(Xe,E,U))}function Le(u,f,b,E){if(an()){const U=null===E?null:{"":-1},ne=function Dr(u,f){const b=u.directiveRegistry;let E=null,U=null;if(b)for(let ne=0;ne<b.length;ne++){const Ce=b[ne];if(eo(f,Ce.selectors,!1))if(E||(E=[]),rc(Ce))if(null!==Ce.findHostDirectiveDefs){const Ae=[];U=U||new Map,Ce.findHostDirectiveDefs(Ce,Ae,U),E.unshift(...Ae,Ce),xr(u,f,Ae.length)}else E.unshift(Ce),xr(u,f,0);else U=U||new Map,Ce.findHostDirectiveDefs?.(Ce,E,U),E.push(Ce)}return null===E?null:[E,U]}(u,b);let Ce,Ae;null===ne?Ce=Ae=null:[Ce,Ae]=ne,null!==Ce&&Et(u,f,b,Ce,U,Ae),U&&function Wr(u,f,b){if(f){const E=u.localNames=[];for(let U=0;U<f.length;U+=2){const ne=b[f[U+1]];if(null==ne)throw new Oe(-301,!1);E.push(f[U],ne)}}}(b,E,U)}b.mergedAttrs=Ln(b.mergedAttrs,b.attrs)}function Et(u,f,b,E,U,ne){for(let Ft=0;Ft<E.length;Ft++)tu(yc(b,f),u,E[Ft].type);!function Xo(u,f,b){u.flags|=1,u.directiveStart=f,u.directiveEnd=f+b,u.providerIndexes=f}(b,u.data.length,E.length);for(let Ft=0;Ft<E.length;Ft++){const gn=E[Ft];gn.providersResolver&&gn.providersResolver(gn)}let Ce=!1,Ae=!1,Xe=Cf(u,f,E.length,null);for(let Ft=0;Ft<E.length;Ft++){const gn=E[Ft];b.mergedAttrs=Ln(b.mergedAttrs,gn.hostAttrs),ms(u,b,f,Xe,gn),vo(Xe,gn,U),null!==gn.contentQueries&&(b.flags|=4),(null!==gn.hostBindings||null!==gn.hostAttrs||0!==gn.hostVars)&&(b.flags|=64);const Yn=gn.type.prototype;!Ce&&(Yn.ngOnChanges||Yn.ngOnInit||Yn.ngDoCheck)&&((u.preOrderHooks??=[]).push(b.index),Ce=!0),!Ae&&(Yn.ngOnChanges||Yn.ngDoCheck)&&((u.preOrderCheckHooks??=[]).push(b.index),Ae=!0),Xe++}!function e_(u,f,b){const U=f.directiveEnd,ne=u.data,Ce=f.attrs,Ae=[];let Xe=null,Ft=null;for(let gn=f.directiveStart;gn<U;gn++){const Yn=ne[gn],Li=b?b.get(Yn):null,qi=Li?Li.outputs:null;Xe=P_(0,Yn.inputs,gn,Xe,Li?Li.inputs:null),Ft=P_(1,Yn.outputs,gn,Ft,qi);const Cr=null===Xe||null===Ce||wo(f)?null:Yd(Xe,gn,Ce);Ae.push(Cr)}null!==Xe&&(Xe.hasOwnProperty("class")&&(f.flags|=8),Xe.hasOwnProperty("style")&&(f.flags|=16)),f.initialInputs=Ae,f.inputs=Xe,f.outputs=Ft}(u,b,ne)}function Gi(u,f,b){const E=b.directiveStart,U=b.directiveEnd,ne=b.index,Ce=function Zd(){return yo.lFrame.currentDirectiveIndex}();try{Yc(ne);for(let Ae=E;Ae<U;Ae++){const Xe=u.data[Ae],Ft=f[Ae];Vh(Ae),(null!==Xe.hostBindings||0!==Xe.hostVars||null!==Xe.hostAttrs)&&Xi(Xe,Ft)}}finally{Yc(-1),Vh(Ce)}}function Xi(u,f){null!==u.hostBindings&&u.hostBindings(1,f)}function xr(u,f,b){f.componentOffset=b,(u.components??=[]).push(f.index)}function vo(u,f,b){if(b){if(f.exportAs)for(let E=0;E<f.exportAs.length;E++)b[f.exportAs[E]]=u;rc(f)&&(b[""]=u)}}function ms(u,f,b,E,U){u.data[E]=U;const ne=U.factory||(U.factory=Ca(U.type)),Ce=new Ru(ne,rc(U),ec);u.blueprint[E]=Ce,b[E]=Ce,function Mn(u,f,b,E,U){const ne=U.hostBindings;if(ne){let Ce=u.hostBindingOpCodes;null===Ce&&(Ce=u.hostBindingOpCodes=[]);const Ae=~f.index;(function ei(u){let f=u.length;for(;f>0;){const b=u[--f];if("number"==typeof b&&b<0)return b}return 0})(Ce)!=Ae&&Ce.push(Ae),Ce.push(b,E,ne)}}(u,f,E,Cf(u,b,U.hostVars,Ms),U)}function Jo(u,f,b,E,U,ne){const Ce=wa(u,f);!function Js(u,f,b,E,U,ne,Ce){if(null==ne)u.removeAttribute(f,U,b);else{const Ae=null==Ce?Rn(ne):Ce(ne,E||"",U);u.setAttribute(f,U,Ae,b)}}(f[Ot],Ce,ne,u.value,b,E,U)}function _a(u,f,b,E,U,ne){const Ce=ne[f];if(null!==Ce)for(let Ae=0;Ae<Ce.length;)mm(E,b,Ce[Ae++],Ce[Ae++],Ce[Ae++],Ce[Ae++])}function Yd(u,f,b){let E=null,U=0;for(;U<b.length;){const ne=b[U];if(0!==ne)if(5!==ne){if("number"==typeof ne)break;if(u.hasOwnProperty(ne)){null===E&&(E=[]);const Ce=u[ne];for(let Ae=0;Ae<Ce.length;Ae+=3)if(Ce[Ae]===f){E.push(ne,Ce[Ae+1],Ce[Ae+2],b[U+1]);break}}U+=2}else U+=2;else U+=4}return E}function jc(u,f,b,E){return[u,!0,0,f,null,E,null,b,null,null]}function gd(u,f){const b=u.contentQueries;if(null!==b){const E=v(null);try{for(let U=0;U<b.length;U+=2){const Ce=b[U+1];if(-1!==Ce){const Ae=u.data[Ce];Kl(b[U]),Ae.contentQueries(2,f[Ce],Ce)}}}finally{v(E)}}}function _l(u,f){return u[pt]?u[ut][Ea]=f:u[pt]=f,u[ut]=f,f}function yd(u,f,b){Kl(0);const E=v(null);try{f(u,b)}finally{v(E)}}function Uf(u){return u[hl]||(u[hl]=[])}function vv(u){return u.cleanup||(u.cleanup=[])}function Cv(u,f,b){return(null===u||rc(u))&&(b=function oc(u){for(;Array.isArray(u);){if("object"==typeof u[$o])return u;u=u[Vo]}return null}(b[f.index])),b[Ot]}function fm(u,f){const b=u[xa],E=b?b.get(ld,null):null;E&&E.handleError(f)}function Sf(u,f,b,E,U){for(let ne=0;ne<b.length;){const Ce=b[ne++],Ae=b[ne++],Xe=b[ne++];mm(u.data[Ce],f[Ce],E,Ae,Xe,U)}}function bp(u,f,b){const E=sc(f,u);!function $t(u,f,b){u.setValue(f,b)}(u[Ot],E,b)}function IS(u,f){const b=ol(f,u),E=b[Ir];!function lC(u,f){for(let b=f.length;b<u.blueprint.length;b++)f.push(u.blueprint[b])}(E,b);const U=b[Vo];null!==U&&null===b[ia]&&(b[ia]=fg(U,b[xa])),w_(E,b,b[gs])}function w_(u,f,b){Wh(f);try{const E=u.viewQuery;null!==E&&yd(1,E,b);const U=u.template;null!==U&&M_(u,f,U,1,b),u.firstCreatePass&&(u.firstCreatePass=!1),f[Or]?.finishViewCreation(u),u.staticContentQueries&&gd(u,f),u.staticViewQueries&&yd(2,u.viewQuery,b);const ne=u.components;null!==ne&&function AS(u,f){for(let b=0;b<f.length;b++)IS(u,f[b])}(f,ne)}catch(E){throw u.firstCreatePass&&(u.incompleteFirstPass=!0,u.firstCreatePass=!1),E}finally{f[fo]&=-5,od()}}function Ke(u,f){return!f||null===f.firstChild||Al(u)}function we(u,f,b,E=!0){const U=f[Ir];if(function Ri(u,f,b,E){const U=hs+E,ne=b.length;E>0&&(b[U-1][Ea]=f),E<ne-hs?(f[Ea]=b[U],yi(b,hs+E,f)):(b.push(f),f[Ea]=null),f[Es]=b;const Ce=f[Ui];null!==Ce&&b!==Ce&&function ur(u,f){const b=u[gl];f[Qn]!==f[Es][Es][Qn]&&(u[fo]|=Ed.HasTransplantedViews),null===b?u[gl]=[f]:b.push(f)}(Ce,f);const Ae=f[Or];null!==Ae&&Ae.insertView(u),Ma(f),f[fo]|=128}(U,f,u,b),E){const Ce=Tg(b,u),Ae=f[Ot],Xe=Nl(Ae,u[Ha]);null!==Xe&&function Si(u,f,b,E,U,ne){E[Vo]=U,E[Vs]=f,Md(u,E,b,1,U,ne)}(U,u[Vs],Ae,f,Xe,Ce)}const ne=f[ia];null!==ne&&null!==ne.firstChild&&(ne.firstChild=null)}function w(u,f,b,E,U=!1){for(;null!==b;){const ne=f[b.index];null!==ne&&E.push(Ro(ne)),qa(ne)&&Q(ne,E);const Ce=b.type;if(8&Ce)w(u,f,b.child,E);else if(32&Ce){const Ae=be(b,f);let Xe;for(;Xe=Ae();)E.push(Xe)}else if(16&Ce){const Ae=kh(f,b);if(Array.isArray(Ae))E.push(...Ae);else{const Xe=ca(f[Qn]);w(Xe[Ir],Xe,Ae,E,!0)}}b=U?b.projectionNext:b.next}return E}function Q(u,f){for(let b=hs;b<u.length;b++){const E=u[b],U=E[Ir].firstChild;null!==U&&w(E[Ir],E,U,f)}u[Ha]!==u[Vo]&&f.push(u[Ha])}let me=[];const Wn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:u=>{rd(u.lView)},consumerOnSignalRead(){this.lView[gr]=this}},xi=100;function Yi(u,f=!0,b=0){const E=u[kt],U=E.rendererFactory;U.begin?.();try{!function fr(u,f){Fh(u,f);let b=0;for(;Tl(u);){if(b===xi)throw new Oe(103,!1);b++,Fh(u,1)}}(u,b)}catch(Ce){throw f&&fm(u,Ce),Ce}finally{U.end?.(),E.inlineEffectRunner?.flush()}}function ao(u,f,b,E){const U=f[fo];if(!(256&~U))return;f[kt].inlineEffectRunner?.flush(),Wh(f);let Ce=null,Ae=null;(function Eo(u){return 2!==u.type})(u)&&(Ae=function Ye(u){return u[gr]??function bt(u){const f=me.pop()??Object.create(Wn);return f.lView=u,f}(u)}(f),Ce=function A(u){return u&&(u.nextProducerIndex=0),v(u)}(Ae));try{el(f),function Id(u){return yo.lFrame.bindingIndex=u}(u.bindingStartIndex),null!==b&&M_(u,f,b,2,E);const Xe=!(3&~U);if(Xe){const Yn=u.preOrderCheckHooks;null!==Yn&&Qd(f,Yn,null)}else{const Yn=u.preOrderHooks;null!==Yn&&bl(f,Yn,0,null),Dc(f,0)}if(function ws(u){for(let f=Qg(u);null!==f;f=lg(f)){if(!(f[fo]&Ed.HasTransplantedViews))continue;const b=f[gl];for(let E=0;E<b.length;E++){Za(b[E])}}}(f),ls(f,0),null!==u.contentQueries&&gd(u,f),Xe){const Yn=u.contentCheckHooks;null!==Yn&&Qd(f,Yn)}else{const Yn=u.contentHooks;null!==Yn&&bl(f,Yn,1),Dc(f,1)}!function pv(u,f){const b=u.hostBindingOpCodes;if(null!==b)try{for(let E=0;E<b.length;E++){const U=b[E];if(U<0)Yc(~U);else{const ne=U,Ce=b[++E],Ae=b[++E];Tp(Ce,ne),Ae(2,f[ne])}}}finally{Yc(-1)}}(u,f);const Ft=u.components;null!==Ft&&Dg(f,Ft,0);const gn=u.viewQuery;if(null!==gn&&yd(2,gn,E),Xe){const Yn=u.viewCheckHooks;null!==Yn&&Qd(f,Yn)}else{const Yn=u.viewHooks;null!==Yn&&bl(f,Yn,2),Dc(f,2)}if(!0===u.firstUpdatePass&&(u.firstUpdatePass=!1),f[so]){for(const Yn of f[so])Yn();f[so]=null}f[fo]&=-73}catch(Xe){throw rd(f),Xe}finally{null!==Ae&&(function L(u,f){if(v(f),u&&void 0!==u.producerNode&&void 0!==u.producerIndexOfThis&&void 0!==u.producerLastReadVersion){if(I(u))for(let b=u.nextProducerIndex;b<u.producerNode.length;b++)F(u.producerNode[b],u.producerIndexOfThis[b]);for(;u.producerNode.length>u.nextProducerIndex;)u.producerNode.pop(),u.producerLastReadVersion.pop(),u.producerIndexOfThis.pop()}}(Ae,Ce),function cn(u){u.lView[gr]!==u&&(u.lView=null,me.push(u))}(Ae)),od()}}function ls(u,f){for(let b=Qg(u);null!==b;b=lg(b))for(let E=hs;E<b.length;E++)Au(b[E],f)}function xl(u,f,b){Au(ol(f,u),b)}function Au(u,f){Lo(u)&&Fh(u,f)}function Fh(u,f){const E=u[Ir],U=u[fo],ne=u[gr];let Ce=!!(0===f&&16&U);if(Ce||=!!(64&U&&0===f),Ce||=!!(1024&U),Ce||=!(!ne?.dirty||!x(ne)),ne&&(ne.dirty=!1),u[fo]&=-9217,Ce)ao(E,u,E.template,u[gs]);else if(8192&U){ls(u,1);const Ae=E.components;null!==Ae&&Dg(u,Ae,1)}}function Dg(u,f,b){for(let E=0;E<f.length;E++)xl(u,f[E],b)}function qm(u){for(u[kt].changeDetectionScheduler?.notify();u;){u[fo]|=64;const f=ca(u);if(Bl(u)&&!f)return u;u=f}return null}class ef{get rootNodes(){const f=this._lView,b=f[Ir];return w(b,f,b.firstChild,[])}constructor(f,b,E=!0){this._lView=f,this._cdRefInjectingView=b,this.notifyErrorHandler=E,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[gs]}set context(f){this._lView[gs]=f}get destroyed(){return!(256&~this._lView[fo])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const f=this._lView[Es];if(qa(f)){const b=f[8],E=b?b.indexOf(this):-1;E>-1&&(Hr(f,E),Di(b,E))}this._attachedToViewContainer=!1}Ko(this._lView[Ir],this._lView)}onDestroy(f){Wc(this._lView,f)}markForCheck(){qm(this._cdRefInjectingView||this._lView)}detach(){this._lView[fo]&=-129}reattach(){Ma(this._lView),this._lView[fo]|=128}detectChanges(){this._lView[fo]|=1024,Yi(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Oe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,er(this._lView[Ir],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new Oe(902,!1);this._appRef=f,Ma(this._lView)}}let Pp=(()=>{class f{}return f.__NG_ELEMENT_ID__=Bf,f})();const Mf=Pp,yf=class extends Mf{constructor(f,b,E){super(),this._declarationLView=f,this._declarationTContainer=b,this.elementRef=E}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(f,b){return this.createEmbeddedViewImpl(f,b)}createEmbeddedViewImpl(f,b,E){const U=function t_(u,f,b,E){const U=v(null);try{const ne=f.tView,Xe=kf(u,ne,b,4096&u[fo]?4096:16,null,f,null,null,E?.injector??null,E?.embeddedViewInjector??null,E?.dehydratedView??null);Xe[Ui]=u[f.index];const gn=u[Or];return null!==gn&&(Xe[Or]=gn.createEmbeddedView(ne)),w_(ne,Xe,b),Xe}finally{v(U)}}(this._declarationLView,this._declarationTContainer,f,{embeddedViewInjector:b,dehydratedView:E});return new ef(U)}};function Bf(){return bf(Ta(),ir())}function bf(u,f){return 4&u.type?new yf(f,u,fd(u,f)):null}class R_{}class ZS{}class mC{}class fy{resolveComponentFactory(f){throw function my(u){const f=Error(`No component factory found for ${yn(u)}.`);return f.ngComponent=u,f}(f)}}let L_=(()=>{class f{}return f.NULL=new fy,f})();class JS{}let _y=(()=>{class f{constructor(){this.destroyNode=null}}return f.__NG_ELEMENT_ID__=()=>function vy(){const u=ir(),b=ol(Ta().index,u);return(Xa(b)?b:u)[Ot]}(),f})(),Cy=(()=>{var u;class f{}return(u=f).\u0275prov=di({token:u,providedIn:"root",factory:()=>null}),f})();const fC={},qS=new Set;function _m(u){qS.has(u)||(qS.add(u),performance?.mark?.("mark_feature_usage",{detail:{feature:u}}))}function eM(...u){}class id{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:b=!1,shouldCoalesceRunChangeDetection:E=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fd(!1),this.onMicrotaskEmpty=new Fd(!1),this.onStable=new Fd(!1),this.onError=new Fd(!1),typeof Zone>"u")throw new Oe(908,!1);Zone.assertZonePatched();const U=this;U._nesting=0,U._outer=U._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(U._inner=U._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(U._inner=U._inner.fork(Zone.longStackTraceZoneSpec)),U.shouldCoalesceEventChangeDetection=!E&&b,U.shouldCoalesceRunChangeDetection=E,U.lastRequestAnimationFrameId=-1,U.nativeRequestAnimationFrame=function Sy(){const u="function"==typeof En.requestAnimationFrame;let f=En[u?"requestAnimationFrame":"setTimeout"],b=En[u?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&f&&b){const E=f[Zone.__symbol__("OriginalDelegate")];E&&(f=E);const U=b[Zone.__symbol__("OriginalDelegate")];U&&(b=U)}return{nativeRequestAnimationFrame:f,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function by(u){const f=()=>{!function yy(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(En,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,vC(u),u.isCheckStableRunning=!0,_C(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),vC(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(b,E,U,ne,Ce,Ae)=>{if(function tM(u){return!(!Array.isArray(u)||1!==u.length)&&!0===u[0].data?.__ignore_ng_zone__}(Ae))return b.invokeTask(U,ne,Ce,Ae);try{return CC(u),b.invokeTask(U,ne,Ce,Ae)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===ne.type||u.shouldCoalesceRunChangeDetection)&&f(),SC(u)}},onInvoke:(b,E,U,ne,Ce,Ae,Xe)=>{try{return CC(u),b.invoke(U,ne,Ce,Ae,Xe)}finally{u.shouldCoalesceRunChangeDetection&&f(),SC(u)}},onHasTask:(b,E,U,ne)=>{b.hasTask(U,ne),E===U&&("microTask"==ne.change?(u._hasPendingMicrotasks=ne.microTask,vC(u),_C(u)):"macroTask"==ne.change&&(u.hasPendingMacrotasks=ne.macroTask))},onHandleError:(b,E,U,ne)=>(b.handleError(U,ne),u.runOutsideAngular(()=>u.onError.emit(ne)),!1)})}(U)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!id.isInAngularZone())throw new Oe(909,!1)}static assertNotInAngularZone(){if(id.isInAngularZone())throw new Oe(909,!1)}run(f,b,E){return this._inner.run(f,b,E)}runTask(f,b,E,U){const ne=this._inner,Ce=ne.scheduleEventTask("NgZoneEvent: "+U,f,My,eM,eM);try{return ne.runTask(Ce,b,E)}finally{ne.cancelTask(Ce)}}runGuarded(f,b,E){return this._inner.runGuarded(f,b,E)}runOutsideAngular(f){return this._outer.run(f)}}const My={};function _C(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function vC(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function CC(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function SC(u){u._nesting--,_C(u)}class MC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fd,this.onMicrotaskEmpty=new Fd,this.onStable=new Fd,this.onError=new Fd}run(f,b,E){return f.apply(b,E)}runGuarded(f,b,E){return f.apply(b,E)}runOutsideAngular(f){return f()}runTask(f,b,E,U){return f.apply(b,E)}}var Vf=function(u){return u[u.EarlyRead=0]="EarlyRead",u[u.Write=1]="Write",u[u.MixedReadWrite=2]="MixedReadWrite",u[u.Read=3]="Read",u}(Vf||{});const iM={destroy(){}};function rM(u,f){!f&&function zl(u){if(!ul())throw new Oe(-203,!1)}();const b=f?.injector??Xr(cc);if(!function Hc(u){return"browser"===(u??Xr(cc)).get(gg)}(b))return iM;_m("NgAfterNextRender");const E=b.get(r_),U=E.handler??=new bC,ne=f?.phase??Vf.MixedReadWrite,Ce=()=>{U.unregister(Xe),Ae()},Ae=b.get(ru).onDestroy(Ce),Xe=na(b,()=>new oM(ne,()=>{Ce(),u()}));return U.register(Xe),{destroy:Ce}}class oM{constructor(f,b){this.phase=f,this.callbackFn=b,this.zone=Xr(id),this.errorHandler=Xr(ld,{optional:!0}),Xr(R_,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(f){this.errorHandler?.handleError(f)}}}class bC{constructor(){this.executingCallbacks=!1,this.buckets={[Vf.EarlyRead]:new Set,[Vf.Write]:new Set,[Vf.MixedReadWrite]:new Set,[Vf.Read]:new Set},this.deferredCallbacks=new Set}register(f){(this.executingCallbacks?this.deferredCallbacks:this.buckets[f.phase]).add(f)}unregister(f){this.buckets[f.phase].delete(f),this.deferredCallbacks.delete(f)}execute(){this.executingCallbacks=!0;for(const f of Object.values(this.buckets))for(const b of f)b.invoke();this.executingCallbacks=!1;for(const f of this.deferredCallbacks)this.buckets[f.phase].add(f);this.deferredCallbacks.clear()}destroy(){for(const f of Object.values(this.buckets))f.clear();this.deferredCallbacks.clear()}}let r_=(()=>{var u;class f{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const E=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const U of E)U()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(u=f).\u0275prov=di({token:u,providedIn:"root",factory:()=>new u}),f})();function Pf(u){return!!la(u)}function k_(u,f,b){let E=b?u.styles:null,U=b?u.classes:null,ne=0;if(null!==f)for(let Ce=0;Ce<f.length;Ce++){const Ae=f[Ce];"number"==typeof Ae?ne=Ae:1==ne?U=Xn(U,Ae):2==ne&&(E=Xn(E,Ae+": "+f[++Ce]+";"))}b?u.styles=E:u.stylesWithoutHost=E,b?u.classes=U:u.classesWithoutHost=U}class wC extends L_{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const b=Co(f);return new a_(b,this.ngModule)}}function TC(u){const f=[];for(const b in u){if(!u.hasOwnProperty(b))continue;const E=u[b];void 0!==E&&f.push({propName:Array.isArray(E)?E[0]:E,templateName:b})}return f}class N_{constructor(f,b){this.injector=f,this.parentInjector=b}get(f,b,E){E=Hs(E);const U=this.injector.get(f,fC,E);return U!==fC||b===fC?U:this.parentInjector.get(f,b,E)}}class a_ extends mC{get inputs(){const f=this.componentDef,b=f.inputTransforms,E=TC(f.inputs);if(null!==b)for(const U of E)b.hasOwnProperty(U.propName)&&(U.transform=b[U.propName]);return E}get outputs(){return TC(this.componentDef.outputs)}constructor(f,b){super(),this.componentDef=f,this.ngModule=b,this.componentType=f.type,this.selector=function ho(u){return u.map(as).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!b}create(f,b,E,U){const ne=v(null);try{let Ce=(U=U||this.ngModule)instanceof Ns?U:U?.injector;Ce&&null!==this.componentDef.getStandaloneInjector&&(Ce=this.componentDef.getStandaloneInjector(Ce)||Ce);const Ae=Ce?new N_(f,Ce):f,Xe=Ae.get(JS,null);if(null===Xe)throw new Oe(407,!1);const Ft=Ae.get(Cy,null),Li={rendererFactory:Xe,sanitizer:Ft,inlineEffectRunner:null,afterRenderEventManager:Ae.get(r_,null),changeDetectionScheduler:Ae.get(R_,null)},Wi=Xe.createRenderer(null,this.componentDef),qi=this.componentDef.selectors[0][0]||"div",Cr=E?function Qf(u,f,b,E){const ne=E.get(Dl,!1)||b===Ys.ShadowDom,Ce=u.selectRootElement(f,ne);return function Jf(u){qf(u)}(Ce),Ce}(Wi,E,this.componentDef.encapsulation,Ae):In(Wi,qi,function sM(u){const f=u.toLowerCase();return"svg"===f?ka:"math"===f?"math":null}(qi));let Zr=512;this.componentDef.signals?Zr|=4096:this.componentDef.onPush||(Zr|=16);let oo=null;null!==Cr&&(oo=fg(Cr,Ae,!0));const Br=ra(0,null,null,1,0,null,null,null,null,null,null),As=kf(null,Br,null,Zr,null,null,Li,Wi,Ae,null,oo);let $a,Fl;Wh(As);try{const Od=this.componentDef;let Bh,gv=null;Od.findHostDirectiveDefs?(Bh=[],gv=new Map,Od.findHostDirectiveDefs(Od,Bh,gv),Bh.push(Od)):Bh=[Od];const wE=function lM(u,f){const b=u[Ir],E=jr;return u[E]=f,Mp(b,E,2,"#host",null)}(As,Cr),WI=function cM(u,f,b,E,U,ne,Ce){const Ae=U[Ir];!function dM(u,f,b,E){for(const U of u)f.mergedAttrs=Ln(f.mergedAttrs,U.hostAttrs);null!==f.mergedAttrs&&(k_(f,f.mergedAttrs,!0),null!==b&&hd(E,b,f))}(E,u,f,Ce);let Xe=null;null!==f&&(Xe=fg(f,U[xa]));const Ft=ne.rendererFactory.createRenderer(f,b);let gn=16;b.signals?gn=4096:b.onPush&&(gn=64);const Yn=kf(U,fa(b),null,gn,U[u.index],u,ne,Ft,null,null,Xe);return Ae.firstCreatePass&&xr(Ae,u,E.length-1),_l(U,Yn),U[u.index]=Yn}(wE,Cr,Od,Bh,As,Li,Wi);Fl=Jl(Br,jr),Cr&&function hM(u,f,b,E){if(E)oa(u,b,["ng-version","17.3.11"]);else{const{attrs:U,classes:ne}=function rr(u){const f=[],b=[];let E=1,U=2;for(;E<u.length;){let ne=u[E];if("string"==typeof ne)2===U?""!==ne&&f.push(ne,u[++E]):8===U&&b.push(ne);else{if(!fs(U))break;U=ne}E++}return{attrs:f,classes:b}}(f.selectors[0]);U&&oa(u,b,U),ne&&ne.length>0&&pm(u,b,ne.join(" "))}}(Wi,Od,Cr,E),void 0!==b&&function gM(u,f,b){const E=u.projection=[];for(let U=0;U<f.length;U++){const ne=b[U];E.push(null!=ne?Array.from(ne):null)}}(Fl,this.ngContentSelectors,b),$a=function uM(u,f,b,E,U,ne){const Ce=Ta(),Ae=U[Ir],Xe=wa(Ce,U);Et(Ae,U,Ce,b,null,E);for(let gn=0;gn<b.length;gn++)Is(Xc(U,Ae,Ce.directiveStart+gn,Ce),U);Gi(Ae,U,Ce),Xe&&Is(Xe,U);const Ft=Xc(U,Ae,Ce.directiveStart+Ce.componentOffset,Ce);if(u[gs]=U[gs]=Ft,null!==ne)for(const gn of ne)gn(Ft,f);return Nf(Ae,Ce,U),Ft}(WI,Od,Bh,gv,As,[wy]),w_(Br,As,null)}finally{od()}return new aM(this.componentType,$a,fd(Fl,As),As,Fl)}finally{v(ne)}}}class aM extends ZS{constructor(f,b,E,U,ne){super(),this.location=E,this._rootLView=U,this._tNode=ne,this.previousInputValues=null,this.instance=b,this.hostView=this.changeDetectorRef=new ef(U,void 0,!1),this.componentType=f}setInput(f,b){const E=this._tNode.inputs;let U;if(null!==E&&(U=E[f])){if(this.previousInputValues??=new Map,this.previousInputValues.has(f)&&Object.is(this.previousInputValues.get(f),b))return;const ne=this._rootLView;Sf(ne[Ir],ne,U,f,b),this.previousInputValues.set(f,b),qm(ol(this._tNode.index,ne))}}get injector(){return new Pl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}function wy(){const u=Ta();Xh(ir()[Ir],u)}let Ov=(()=>{class f{}return f.__NG_ELEMENT_ID__=Ty,f})();function Ty(){return fM(Ta(),ir())}const Iy=Ov,pM=class extends Iy{constructor(f,b,E){super(),this._lContainer=f,this._hostTNode=b,this._hostLView=E}get element(){return fd(this._hostTNode,this._hostLView)}get injector(){return new Pl(this._hostTNode,this._hostLView)}get parentInjector(){const f=vu(this._hostTNode,this._hostLView);if(qh(f)){const b=fu(f,this._hostLView),E=eu(f);return new Pl(b[Ir].data[E+8],b)}return new Pl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const b=mM(this._lContainer);return null!==b&&b[f]||null}get length(){return this._lContainer.length-hs}createEmbeddedView(f,b,E){let U,ne;"number"==typeof E?U=E:null!=E&&(U=E.index,ne=E.injector);const Ae=f.createEmbeddedViewImpl(b||{},ne,null);return this.insertImpl(Ae,U,Ke(this._hostTNode,null)),Ae}createComponent(f,b,E,U,ne){const Ce=f&&!function lr(u){return"function"==typeof u}(f);let Ae;if(Ce)Ae=b;else{const qi=b||{};Ae=qi.index,E=qi.injector,U=qi.projectableNodes,ne=qi.environmentInjector||qi.ngModuleRef}const Xe=Ce?f:new a_(Co(f)),Ft=E||this.parentInjector;if(!ne&&null==Xe.ngModule){const Cr=(Ce?Ft:this.parentInjector).get(Ns,null);Cr&&(ne=Cr)}Co(Xe.componentType??{});const Wi=Xe.create(Ft,U,null,ne);return this.insertImpl(Wi.hostView,Ae,Ke(this._hostTNode,null)),Wi}insert(f,b){return this.insertImpl(f,b,!0)}insertImpl(f,b,E){const U=f._lView;if(function zo(u){return qa(u[Es])}(U)){const Ae=this.indexOf(f);if(-1!==Ae)this.detach(Ae);else{const Xe=U[Es],Ft=new pM(Xe,Xe[Vs],Xe[Es]);Ft.detach(Ft.indexOf(f))}}const ne=this._adjustIndex(b),Ce=this._lContainer;return we(Ce,U,ne,E),f.attachToViewContainerRef(),yi(IC(Ce),ne,f),f}move(f,b){return this.insert(f,b)}indexOf(f){const b=mM(this._lContainer);return null!==b?b.indexOf(f):-1}remove(f){const b=this._adjustIndex(f,-1),E=Hr(this._lContainer,b);E&&(Di(IC(this._lContainer),b),Ko(E[Ir],E))}detach(f){const b=this._adjustIndex(f,-1),E=Hr(this._lContainer,b);return E&&null!=Di(IC(this._lContainer),b)?new ef(E):null}_adjustIndex(f,b=0){return f??this.length+b}};function mM(u){return u[8]}function IC(u){return u[8]||(u[8]=[])}function fM(u,f){let b;const E=f[u.index];return qa(E)?b=E:(b=jc(E,f,null,u),f[u.index]=b,_l(f,b)),_M(b,f,u,E),new pM(b,u,f)}let _M=function CM(u,f,b,E){if(u[Ha])return;let U;U=8&b.type?Ro(E):function Ay(u,f){const b=u[Ot],E=b.createComment(""),U=wa(f,u);return ua(b,Nl(b,U),E,function hc(u,f){return u.nextSibling(f)}(b,U),!1),E}(f,b),u[Ha]=U},AC=()=>!1;class DC{constructor(f){this.queryList=f,this.matches=null}clone(){return new DC(this.queryList)}setDirty(){this.queryList.setDirty()}}class RC{constructor(f=[]){this.queries=f}createEmbeddedView(f){const b=f.queries;if(null!==b){const E=null!==f.contentQueries?f.contentQueries[0]:b.length,U=[];for(let ne=0;ne<E;ne++){const Ce=b.getByIndex(ne);U.push(this.queries[Ce.indexInDeclarationView].clone())}return new RC(U)}return null}insertView(f){this.dirtyQueriesWithMatches(f)}detachView(f){this.dirtyQueriesWithMatches(f)}finishViewCreation(f){this.dirtyQueriesWithMatches(f)}dirtyQueriesWithMatches(f){for(let b=0;b<this.queries.length;b++)null!==wv(f,b).matches&&this.queries[b].setDirty()}}class LC{constructor(f,b,E=null){this.flags=b,this.read=E,this.predicate="string"==typeof f?function yM(u){return u.split(",").map(f=>f.trim())}(f):f}}class Ev{constructor(f=[]){this.queries=f}elementStart(f,b){for(let E=0;E<this.queries.length;E++)this.queries[E].elementStart(f,b)}elementEnd(f){for(let b=0;b<this.queries.length;b++)this.queries[b].elementEnd(f)}embeddedTView(f){let b=null;for(let E=0;E<this.length;E++){const U=null!==b?b.length:0,ne=this.getByIndex(E).embeddedTView(f,U);ne&&(ne.indexInDeclarationView=E,null!==b?b.push(ne):b=[ne])}return null!==b?new Ev(b):null}template(f,b){for(let E=0;E<this.queries.length;E++)this.queries[E].template(f,b)}getByIndex(f){return this.queries[f]}get length(){return this.queries.length}track(f){this.queries.push(f)}}class kC{constructor(f,b=-1){this.metadata=f,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=b}elementStart(f,b){this.isApplyingToNode(b)&&this.matchTNode(f,b)}elementEnd(f){this._declarationNodeIndex===f.index&&(this._appliesToNextNode=!1)}template(f,b){this.elementStart(f,b)}embeddedTView(f,b){return this.isApplyingToNode(f)?(this.crossesNgTemplate=!0,this.addMatch(-f.index,b),new kC(this.metadata)):null}isApplyingToNode(f){if(this._appliesToNextNode&&1&~this.metadata.flags){const b=this._declarationNodeIndex;let E=f.parent;for(;null!==E&&8&E.type&&E.index!==b;)E=E.parent;return b===(null!==E?E.index:-1)}return this._appliesToNextNode}matchTNode(f,b){const E=this.metadata.predicate;if(Array.isArray(E))for(let U=0;U<E.length;U++){const ne=E[U];this.matchTNodeWithReadOption(f,b,ky(b,ne)),this.matchTNodeWithReadOption(f,b,md(b,f,ne,!1,!1))}else E===Pp?4&b.type&&this.matchTNodeWithReadOption(f,b,-1):this.matchTNodeWithReadOption(f,b,md(b,f,E,!1,!1))}matchTNodeWithReadOption(f,b,E){if(null!==E){const U=this.metadata.read;if(null!==U)if(U===Ch||U===Ov||U===Pp&&4&b.type)this.addMatch(b.index,-2);else{const ne=md(b,f,U,!1,!1);null!==ne&&this.addMatch(b.index,ne)}else this.addMatch(b.index,E)}}addMatch(f,b){null===this.matches?this.matches=[f,b]:this.matches.push(f,b)}}function ky(u,f){const b=u.localNames;if(null!==b)for(let E=0;E<b.length;E+=2)if(b[E]===f)return b[E+1];return null}function SM(u,f,b,E){return-1===b?function Ny(u,f){return 11&u.type?fd(u,f):4&u.type?bf(u,f):null}(f,u):-2===b?function MM(u,f,b){return b===Ch?fd(f,u):b===Pp?bf(f,u):b===Ov?fM(f,u):void 0}(u,f,E):Xc(u,u[Ir],b,f)}function NC(u,f,b,E){const U=f[Or].queries[E];if(null===U.matches){const ne=u.data,Ce=b.matches,Ae=[];for(let Xe=0;null!==Ce&&Xe<Ce.length;Xe+=2){const Ft=Ce[Xe];Ae.push(Ft<0?null:SM(f,ne[Ft],Ce[Xe+1],b.metadata.read))}U.matches=Ae}return U.matches}function xv(u,f,b,E){const U=u.queries.getByIndex(b),ne=U.matches;if(null!==ne){const Ce=NC(u,f,U,b);for(let Ae=0;Ae<ne.length;Ae+=2){const Xe=ne[Ae];if(Xe>0)E.push(Ce[Ae/2]);else{const Ft=ne[Ae+1],gn=f[-Xe];for(let Yn=hs;Yn<gn.length;Yn++){const Li=gn[Yn];Li[Ui]===Li[Es]&&xv(Li[Ir],Li,Ft,E)}if(null!==gn[gl]){const Yn=gn[gl];for(let Li=0;Li<Yn.length;Li++){const Wi=Yn[Li];xv(Wi[Ir],Wi,Ft,E)}}}}}return E}function l_(u,f,b){const E=new al(!(4&~b));return function fv(u,f,b,E){const U=Uf(f);U.push(b),u.firstCreatePass&&vv(u).push(E,U.length-1)}(u,f,E,E.destroy),(f[Or]??=new RC).queries.push(new DC(E))-1}function UC(u,f,b){null===u.queries&&(u.queries=new Ev),u.queries.track(new kC(f,b))}function wv(u,f){return u.queries.getByIndex(f)}function c_(u,f){const b=u[Ir],E=wv(b,f);return E.crossesNgTemplate?xv(b,u,f,[]):NC(b,u,E,f)}function Tv(u){return function F_(u){return"function"==typeof u&&void 0!==u[P]}(u)&&"function"==typeof u.set}function Lv(u){let f=function ZC(u){return Object.getPrototypeOf(u.prototype).constructor}(u.type),b=!0;const E=[u];for(;f;){let U;if(rc(u))U=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new Oe(903,!1);U=f.\u0275dir}if(U){if(b){E.push(U);const Ce=u;Ce.inputs=H_(u.inputs),Ce.inputTransforms=H_(u.inputTransforms),Ce.declaredInputs=H_(u.declaredInputs),Ce.outputs=H_(u.outputs);const Ae=U.hostBindings;Ae&&BM(u,Ae);const Xe=U.viewQuery,Ft=U.contentQueries;if(Xe&&FM(u,Xe),Ft&&UM(u,Ft),QC(u,U),nn(u.outputs,U.outputs),rc(U)&&U.data.animation){const gn=u.data;gn.animation=(gn.animation||[]).concat(U.data.animation)}}const ne=U.features;if(ne)for(let Ce=0;Ce<ne.length;Ce++){const Ae=ne[Ce];Ae&&Ae.ngInherit&&Ae(u),Ae===Lv&&(b=!1)}}f=Object.getPrototypeOf(f)}!function NM(u){let f=0,b=null;for(let E=u.length-1;E>=0;E--){const U=u[E];U.hostVars=f+=U.hostVars,U.hostAttrs=Ln(U.hostAttrs,b=Ln(b,U.hostAttrs))}}(E)}function QC(u,f){for(const b in f.inputs){if(!f.inputs.hasOwnProperty(b)||u.inputs.hasOwnProperty(b))continue;const E=f.inputs[b];if(void 0!==E&&(u.inputs[b]=E,u.declaredInputs[b]=f.declaredInputs[b],null!==f.inputTransforms)){const U=Array.isArray(E)?E[0]:E;if(!f.inputTransforms.hasOwnProperty(U))continue;u.inputTransforms??={},u.inputTransforms[U]=f.inputTransforms[U]}}}function H_(u){return u===Bi?{}:u===Mi?[]:u}function FM(u,f){const b=u.viewQuery;u.viewQuery=b?(E,U)=>{f(E,U),b(E,U)}:f}function UM(u,f){const b=u.contentQueries;u.contentQueries=b?(E,U,ne)=>{f(E,U,ne),b(E,U,ne)}:f}function BM(u,f){const b=u.hostBindings;u.hostBindings=b?(E,U)=>{f(E,U),b(E,U)}:f}function wf(u){const f=u.inputConfig,b={};for(const E in f)if(f.hasOwnProperty(E)){const U=f[E];Array.isArray(U)&&U[3]&&(b[E]=U[3])}u.inputTransforms=b}class Ep{}class eS{}function $M(u,f){return new Fv(u,f??null,[])}class Fv extends Ep{constructor(f,b,E){super(),this._parent=b,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new wC(this);const U=la(f);this._bootstrapComponents=Ec(U.bootstrap),this._r3Injector=Bp(f,b,[{provide:Ep,useValue:this},{provide:L_,useValue:this.componentFactoryResolver},...E],yn(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(b=>b()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Uv extends eS{constructor(f){super(),this.moduleType=f}create(f){return new Fv(this.moduleType,f,[])}}class j_ extends Ep{constructor(f){super(),this.componentFactoryResolver=new wC(this),this.instance=null;const b=new Ka([...f.providers,{provide:Ep,useValue:this},{provide:L_,useValue:this.componentFactoryResolver}],f.parent||bo(),f.debugName,new Set(["environment"]));this.injector=b,f.runEnvironmentInitializers&&b.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function Bv(u,f,b=null){return new j_({providers:u,parent:f,debugName:b,runEnvironmentInitializers:!0}).injector}let If=(()=>{var u;class f{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new De.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const E=this.taskId++;return this.pendingTasks.add(E),E}remove(E){this.pendingTasks.delete(E),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(u=f).\u0275fac=function(E){return new(E||u)},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"root"}),f})();function W_(u){return!!$_(u)&&(Array.isArray(u)||!(u instanceof Map)&&Symbol.iterator in u)}function $_(u){return null!==u&&("function"==typeof u||"object"==typeof u)}function Rg(u,f,b){return u[f]=b}function pc(u,f,b){return!Object.is(u[f],b)&&(u[f]=b,!0)}function Af(u,f,b,E){const U=pc(u,f,b);return pc(u,f+1,E)||U}function Wf(u,f,b,E,U,ne,Ce,Ae){const Xe=ir(),Ft=us(),gn=u+jr,Yn=Ft.firstCreatePass?function qM(u,f,b,E,U,ne,Ce,Ae,Xe){const Ft=f.consts,gn=Mp(f,u,4,Ce||null,ps(Ft,Ae));Le(f,b,gn,ps(Ft,Xe)),Xh(f,gn);const Yn=gn.tView=ra(2,gn,E,U,ne,f.directiveRegistry,f.pipeRegistry,null,f.schemas,Ft,null);return null!==f.queries&&(f.queries.template(f,gn),Yn.queries=f.queries.embeddedTView(gn)),gn}(gn,Ft,Xe,f,b,E,U,ne,Ce):Ft.data[gn];Sc(Yn,!1);const Li=tS(Ft,Xe,Yn,u);pu()&&jd(Ft,Xe,Li,Yn),Is(Li,Xe);const Wi=jc(Li,Xe,Li,Yn);return Xe[gn]=Wi,_l(Xe,Wi),function vM(u,f,b){return AC(u,f,b)}(Wi,Yn,Xe),zd(Yn)&&yp(Ft,Xe,Yn),null!=Ce&&Ff(Xe,Yn,Ae),Wf}let tS=function nS(u,f,b,E){return zc(!0),f[Ot].createComment("")};function a0(u,f,b,E){const U=ir();return pc(U,Ac(),f)&&(us(),Jo(Qs(),U,u,f,b,E)),a0}function J_(u,f,b,E){return pc(u,Ac(),b)?f+Rn(b)+E:Ms}function q_(u,f,b,E,U,ne){const Ae=Af(u,function Td(){return yo.lFrame.bindingIndex}(),b,U);return Ad(2),Ae?f+Rn(b)+E+Rn(U)+ne:Ms}function oS(u,f){return u<<17|f<<2}function Kf(u){return u>>17&32767}function l0(u){return 2|u}function v_(u){return(131068&u)>>2}function c0(u,f){return-131069&u|f<<2}function d0(u){return 1|u}function fb(u,f,b,E){const U=u[b+1],ne=null===f;let Ce=E?Kf(U):v_(U),Ae=!1;for(;0!==Ce&&(!1===Ae||ne);){const Ft=u[Ce+1];g1(u[Ce],f)&&(Ae=!0,u[Ce+1]=E?d0(Ft):l0(Ft)),Ce=E?Kf(Ft):v_(Ft)}Ae&&(u[b+1]=E?l0(U):d0(U))}function g1(u,f){return null===u||null==f||(Array.isArray(u)?u[1]:u)===f||!(!Array.isArray(u)||"string"!=typeof f)&&On(u,f)>=0}const bd={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _b(u){return u.substring(bd.key,bd.keyEnd)}function vb(u,f){const b=bd.textEnd;return b===f?-1:(f=bd.keyEnd=function _1(u,f,b){for(;f<b&&u.charCodeAt(f)>32;)f++;return f}(u,bd.key=f,b),sv(u,f,b))}function sv(u,f,b){for(;f<b&&u.charCodeAt(f)<=32;)f++;return f}function u0(u,f,b){const E=ir();return pc(E,Ac(),f)&&$d(us(),Qs(),E,u,f,E[Ot],b,!1),u0}function h0(u,f,b,E,U){const Ce=U?"class":"style";Sf(u,b,f.inputs[Ce],Ce,E)}function g0(u,f,b){return Cm(u,f,b,!1),g0}function p0(u,f){return Cm(u,f,null,!0),p0}function bb(u){Sm(E1,rf,u,!0)}function rf(u,f){for(let b=function m1(u){return function Sb(u){bd.key=0,bd.keyEnd=0,bd.value=0,bd.valueEnd=0,bd.textEnd=u.length}(u),vb(u,sv(u,0,bd.textEnd))}(f);b>=0;b=vb(f,b))en(u,_b(f),!0)}function Cm(u,f,b,E){const U=ir(),ne=us(),Ce=Ad(2);ne.firstUpdatePass&&Ob(ne,u,Ce,E),f!==Ms&&pc(U,Ce,f)&&xb(ne,ne.data[Qa()],U,U[Ot],u,U[Ce+1]=function w1(u,f){return null==u||""===u||("string"==typeof f?u+=f:"object"==typeof u&&(u=yn(Ll(u)))),u}(f,b),E,Ce)}function Sm(u,f,b,E){const U=us(),ne=Ad(2);U.firstUpdatePass&&Ob(U,null,ne,E);const Ce=ir();if(b!==Ms&&pc(Ce,ne,b)){const Ae=U.data[Qa()];if(Tb(Ae,E)&&!Pb(U,ne)){let Xe=E?Ae.classesWithoutHost:Ae.stylesWithoutHost;null!==Xe&&(b=Xn(Xe,b||"")),h0(U,Ae,Ce,b,E)}else!function x1(u,f,b,E,U,ne,Ce,Ae){U===Ms&&(U=Mi);let Xe=0,Ft=0,gn=0<U.length?U[0]:null,Yn=0<ne.length?ne[0]:null;for(;null!==gn||null!==Yn;){const Li=Xe<U.length?U[Xe+1]:void 0,Wi=Ft<ne.length?ne[Ft+1]:void 0;let Cr,qi=null;gn===Yn?(Xe+=2,Ft+=2,Li!==Wi&&(qi=Yn,Cr=Wi)):null===Yn||null!==gn&&gn<Yn?(Xe+=2,qi=gn):(Ft+=2,qi=Yn,Cr=Wi),null!==qi&&xb(u,f,b,E,qi,Cr,Ce,Ae),gn=Xe<U.length?U[Xe]:null,Yn=Ft<ne.length?ne[Ft]:null}}(U,Ae,Ce,Ce[Ot],Ce[ne+1],Ce[ne+1]=function O1(u,f,b){if(null==b||""===b)return Mi;const E=[],U=Ll(b);if(Array.isArray(U))for(let ne=0;ne<U.length;ne++)u(E,U[ne],!0);else if("object"==typeof U)for(const ne in U)U.hasOwnProperty(ne)&&u(E,ne,U[ne]);else"string"==typeof U&&f(E,U);return E}(u,f,b),E,ne)}}function Pb(u,f){return f>=u.expandoStartIndex}function Ob(u,f,b,E){const U=u.data;if(null===U[b+1]){const ne=U[Qa()],Ce=Pb(u,b);Tb(ne,E)&&null===f&&!Ce&&(f=!1),f=function M1(u,f,b,E){const U=Hh(u);let ne=E?f.residualClasses:f.residualStyles;if(null===U)0===(E?f.classBindings:f.styleBindings)&&(b=Xv(b=m0(null,u,f,b,E),f.attrs,E),ne=null);else{const Ce=f.directiveStylingLast;if(-1===Ce||u[Ce]!==U)if(b=m0(U,u,f,b,E),null===ne){let Xe=function y1(u,f,b){const E=b?f.classBindings:f.styleBindings;if(0!==v_(E))return u[Kf(E)]}(u,f,E);void 0!==Xe&&Array.isArray(Xe)&&(Xe=m0(null,u,f,Xe[1],E),Xe=Xv(Xe,f.attrs,E),function b1(u,f,b,E){u[Kf(b?f.classBindings:f.styleBindings)]=E}(u,f,E,Xe))}else ne=function P1(u,f,b){let E;const U=f.directiveEnd;for(let ne=1+f.directiveStylingLast;ne<U;ne++)E=Xv(E,u[ne].hostAttrs,b);return Xv(E,f.attrs,b)}(u,f,E)}return void 0!==ne&&(E?f.residualClasses=ne:f.residualStyles=ne),b}(U,ne,f,E),function u1(u,f,b,E,U,ne){let Ce=ne?f.classBindings:f.styleBindings,Ae=Kf(Ce),Xe=v_(Ce);u[E]=b;let gn,Ft=!1;if(Array.isArray(b)?(gn=b[1],(null===gn||On(b,gn)>0)&&(Ft=!0)):gn=b,U)if(0!==Xe){const Li=Kf(u[Ae+1]);u[E+1]=oS(Li,Ae),0!==Li&&(u[Li+1]=c0(u[Li+1],E)),u[Ae+1]=function c1(u,f){return 131071&u|f<<17}(u[Ae+1],E)}else u[E+1]=oS(Ae,0),0!==Ae&&(u[Ae+1]=c0(u[Ae+1],E)),Ae=E;else u[E+1]=oS(Xe,0),0===Ae?Ae=E:u[Xe+1]=c0(u[Xe+1],E),Xe=E;Ft&&(u[E+1]=l0(u[E+1])),fb(u,gn,E,!0),fb(u,gn,E,!1),function h1(u,f,b,E,U){const ne=U?u.residualClasses:u.residualStyles;null!=ne&&"string"==typeof f&&On(ne,f)>=0&&(b[E+1]=d0(b[E+1]))}(f,gn,u,E,ne),Ce=oS(Ae,Xe),ne?f.classBindings=Ce:f.styleBindings=Ce}(U,ne,f,b,Ce,E)}}function m0(u,f,b,E,U){let ne=null;const Ce=b.directiveEnd;let Ae=b.directiveStylingLast;for(-1===Ae?Ae=b.directiveStart:Ae++;Ae<Ce&&(ne=f[Ae],E=Xv(E,ne.hostAttrs,U),ne!==u);)Ae++;return null!==u&&(b.directiveStylingLast=Ae),E}function Xv(u,f,b){const E=b?1:2;let U=-1;if(null!==f)for(let ne=0;ne<f.length;ne++){const Ce=f[ne];"number"==typeof Ce?U=Ce:U===E&&(Array.isArray(u)||(u=void 0===u?[]:["",u]),en(u,Ce,!!b||f[++ne]))}return void 0===u?null:u}function E1(u,f,b){const E=String(f);""!==E&&!E.includes(" ")&&en(u,E,b)}function xb(u,f,b,E,U,ne,Ce,Ae){if(!(3&f.type))return;const Xe=u.data,Ft=Xe[Ae+1],gn=function d1(u){return!(1&~u)}(Ft)?wb(Xe,f,b,U,v_(Ft),Ce):void 0;sS(gn)||(sS(ne)||function l1(u){return!(2&~u)}(Ft)&&(ne=wb(Xe,null,b,U,Ae,Ce)),function gm(u,f,b,E,U){if(f)U?u.addClass(b,E):u.removeClass(b,E);else{let ne=-1===E.indexOf("-")?void 0:q.DashCase;null==U?u.removeStyle(b,E,ne):("string"==typeof U&&U.endsWith("!important")&&(U=U.slice(0,-10),ne|=q.Important),u.setStyle(b,E,U,ne))}}(E,Ce,sc(Qa(),b),U,ne))}function wb(u,f,b,E,U,ne){const Ce=null===f;let Ae;for(;U>0;){const Xe=u[U],Ft=Array.isArray(Xe),gn=Ft?Xe[1]:Xe,Yn=null===gn;let Li=b[U+1];Li===Ms&&(Li=Yn?Mi:void 0);let Wi=Yn?Wt(Li,E):gn===E?Li:void 0;if(Ft&&!sS(Wi)&&(Wi=Wt(Xe,E)),sS(Wi)&&(Ae=Wi,Ce))return Ae;const qi=u[U+1];U=Ce?Kf(qi):v_(qi)}if(null!==f){let Xe=ne?f.residualClasses:f.residualStyles;null!=Xe&&(Ae=Wt(Xe,E))}return Ae}function sS(u){return void 0!==u}function Tb(u,f){return!!(u.flags&(f?8:16))}function Ib(u,f,b){Sm(en,rf,J_(ir(),u,f,b),!0)}function aS(u,f,b,E){const U=ir(),ne=us(),Ce=jr+u,Ae=U[Ot],Xe=ne.firstCreatePass?function Z1(u,f,b,E,U,ne){const Ce=f.consts,Xe=Mp(f,u,2,E,ps(Ce,U));return Le(f,b,Xe,ps(Ce,ne)),null!==Xe.attrs&&k_(Xe,Xe.attrs,!1),null!==Xe.mergedAttrs&&k_(Xe,Xe.mergedAttrs,!0),null!==f.queries&&f.queries.elementStart(f,Xe),Xe}(Ce,ne,U,f,b,E):ne.data[Ce],Ft=Lb(ne,U,Xe,Ae,f,u);U[Ce]=Ft;const gn=zd(Xe);return Sc(Xe,!0),hd(Ae,Ft,Xe),!function jf(u){return!(32&~u.flags)}(Xe)&&pu()&&jd(ne,U,Ft,Xe),0===function fe(){return yo.lFrame.elementDepthCount}()&&Is(Ft,U),function Ge(){yo.lFrame.elementDepthCount++}(),gn&&(yp(ne,U,Xe),Nf(ne,Xe,U)),null!==E&&Ff(U,Xe),aS}function lS(){let u=Ta();Xd()?Du():(u=u.parent,Sc(u,!1));const f=u;(function Ni(u){return yo.skipHydrationRootTNode===u})(f)&&function da(){yo.skipHydrationRootTNode=null}(),function It(){yo.lFrame.elementDepthCount--}();const b=us();return b.firstCreatePass&&(Xh(b,u),xd(u)&&b.queries.elementEnd(u)),null!=f.classesWithoutHost&&function qd(u){return!!(8&u.flags)}(f)&&h0(b,f,ir(),f.classesWithoutHost,!0),null!=f.stylesWithoutHost&&function Jh(u){return!!(16&u.flags)}(f)&&h0(b,f,ir(),f.stylesWithoutHost,!1),lS}function S0(u,f,b,E){return aS(u,f,b,E),lS(),S0}let Lb=(u,f,b,E,U,ne)=>(zc(!0),In(E,U,function Ug(){return yo.lFrame.currentNamespace}()));function cS(u,f,b){const E=ir(),U=us(),ne=u+jr,Ce=U.firstCreatePass?function q1(u,f,b,E,U){const ne=f.consts,Ce=ps(ne,E),Ae=Mp(f,u,8,"ng-container",Ce);return null!==Ce&&k_(Ae,Ce,!0),Le(f,b,Ae,ps(ne,U)),null!==f.queries&&f.queries.elementStart(f,Ae),Ae}(ne,U,E,f,b):U.data[ne];Sc(Ce,!0);const Ae=kb(U,E,Ce,u);return E[ne]=Ae,pu()&&jd(U,E,Ae,Ce),Is(Ae,E),zd(Ce)&&(yp(U,E,Ce),Nf(U,Ce,E)),null!=b&&Ff(E,Ce),cS}function dS(){let u=Ta();const f=us();return Xd()?Du():(u=u.parent,Sc(u,!1)),f.firstCreatePass&&(Xh(f,u),xd(u)&&f.queries.elementEnd(u)),dS}function M0(u,f,b){return cS(u,f,b),dS(),M0}let kb=(u,f,b,E)=>(zc(!0),Sn(f[Ot],""));function Nb(){return ir()}function y0(u,f,b){const E=ir();return pc(E,Ac(),f)&&$d(us(),Qs(),E,u,f,E[Ot],b,!0),y0}function b0(u,f,b){const E=ir();if(pc(E,Ac(),f)){const ne=us(),Ce=Qs();$d(ne,Ce,E,u,f,Cv(Hh(ne.data),Ce,E),b,!0)}return b0}const C_=void 0;var ix=["en",[["a","p"],["AM","PM"],C_],[["AM","PM"],C_,C_],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],C_,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],C_,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",C_,"{1} 'at' {0}",C_],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function nx(u){const b=Math.floor(Math.abs(u)),E=u.toString().replace(/^[^.]*\.?/,"").length;return 1===b&&0===E?1:5}];let av={};function P0(u){const f=function rx(u){return u.toLowerCase().replace(/_/g,"-")}(u);let b=Ub(f);if(b)return b;const E=f.split("-")[0];if(b=Ub(E),b)return b;if("en"===E)return ix;throw new Oe(701,!1)}function Fb(u){return P0(u)[lv.PluralCase]}function Ub(u){return u in av||(av[u]=En.ng&&En.ng.common&&En.ng.common.locales&&En.ng.common.locales[u]),av[u]}var lv=function(u){return u[u.LocaleId=0]="LocaleId",u[u.DayPeriodsFormat=1]="DayPeriodsFormat",u[u.DayPeriodsStandalone=2]="DayPeriodsStandalone",u[u.DaysFormat=3]="DaysFormat",u[u.DaysStandalone=4]="DaysStandalone",u[u.MonthsFormat=5]="MonthsFormat",u[u.MonthsStandalone=6]="MonthsStandalone",u[u.Eras=7]="Eras",u[u.FirstDayOfWeek=8]="FirstDayOfWeek",u[u.WeekendRange=9]="WeekendRange",u[u.DateFormat=10]="DateFormat",u[u.TimeFormat=11]="TimeFormat",u[u.DateTimeFormat=12]="DateTimeFormat",u[u.NumberSymbols=13]="NumberSymbols",u[u.NumberFormats=14]="NumberFormats",u[u.CurrencyCode=15]="CurrencyCode",u[u.CurrencySymbol=16]="CurrencySymbol",u[u.CurrencyName=17]="CurrencyName",u[u.Currencies=18]="Currencies",u[u.Directionality=19]="Directionality",u[u.PluralCase=20]="PluralCase",u[u.ExtraData=21]="ExtraData",u}(lv||{});const cv="en-US";let Bb=cv;function x0(u,f,b,E){const U=ir(),ne=us(),Ce=Ta();return T0(ne,U,U[Ot],Ce,u,f,E),x0}function w0(u,f){const b=Ta(),E=ir(),U=us();return T0(U,E,Cv(Hh(U.data),b,E),b,u,f),w0}function T0(u,f,b,E,U,ne,Ce){const Ae=zd(E),Ft=u.firstCreatePass&&vv(u),gn=f[gs],Yn=Uf(f);let Li=!0;if(3&E.type||Ce){const Cr=wa(E,f),Zr=Ce?Ce(Cr):Cr,oo=Yn.length,Br=Ce?$a=>Ce(Ro($a[E.index])):E.index;let As=null;if(!Ce&&Ae&&(As=function ew(u,f,b,E){const U=u.cleanup;if(null!=U)for(let ne=0;ne<U.length-1;ne+=2){const Ce=U[ne];if(Ce===b&&U[ne+1]===E){const Ae=f[hl],Xe=U[ne+2];return Ae.length>Xe?Ae[Xe]:null}"string"==typeof Ce&&(ne+=2)}return null}(u,f,U,E.index)),null!==As)(As.__ngLastListenerFn__||As).__ngNextListenerFn__=ne,As.__ngLastListenerFn__=ne,Li=!1;else{ne=hP(E,f,gn,ne,!1);const $a=b.listen(Zr,U,ne);Yn.push(ne,$a),Ft&&Ft.push(U,Br,oo,oo+1)}}else ne=hP(E,f,gn,ne,!1);const Wi=E.outputs;let qi;if(Li&&null!==Wi&&(qi=Wi[U])){const Cr=qi.length;if(Cr)for(let Zr=0;Zr<Cr;Zr+=2){const Fl=f[qi[Zr]][qi[Zr+1]].subscribe(ne),Od=Yn.length;Yn.push(ne,Fl),Ft&&Ft.push(U,E.index,Od,-(Od+1))}}}function uP(u,f,b,E){const U=v(null);try{return Rs(6,f,b),!1!==b(E)}catch(ne){return fm(u,ne),!1}finally{Rs(7,f,b),v(U)}}function hP(u,f,b,E,U){return function ne(Ce){if(Ce===Function)return E;qm(u.componentOffset>-1?ol(u.index,f):f);let Xe=uP(f,b,E,Ce),Ft=ne.__ngNextListenerFn__;for(;Ft;)Xe=uP(f,b,Ft,Ce)&&Xe,Ft=Ft.__ngNextListenerFn__;return U&&!1===Xe&&Ce.preventDefault(),Xe}}function gP(u=1){return function fh(u){return(yo.lFrame.contextLView=function tl(u,f){for(;u>0;)f=f[Pn],u--;return f}(u,yo.lFrame.contextLView))[gs]}(u)}function tw(u,f){let b=null;const E=function Io(u){const f=u.attrs;if(null!=f){const b=f.indexOf(5);if(!(1&b))return f[b+1]}return null}(u);for(let U=0;U<f.length;U++){const ne=f[U];if("*"!==ne){if(null===E?eo(u,ne,!0):Sa(E,ne))return U}else b=U}return b}function pP(u){const f=ir()[Qn][Vs];if(!f.projection){const E=f.projection=function zi(u,f){const b=[];for(let E=0;E<u;E++)b.push(f);return b}(u?u.length:1,null),U=E.slice();let ne=f.child;for(;null!==ne;){const Ce=u?tw(ne,u):0;null!==Ce&&(U[Ce]?U[Ce].projectionNext=ne:E[Ce]=ne,U[Ce]=ne),ne=ne.next}}}function mP(u,f=0,b){const E=ir(),U=us(),ne=Mp(U,jr+u,16,null,b||null);null===ne.projection&&(ne.projection=f),Du(),(!E[ia]||kn())&&32&~ne.flags&&function ch(u,f,b){Sp(f[Ot],0,f,b,Ja(u,b,f),xc(b.parent||f[Vs],b,f))}(U,E,ne)}function I0(u,f,b){return mS(u,"",f,"",b),I0}function mS(u,f,b,E,U){const ne=ir(),Ce=J_(ne,f,b,E);return Ce!==Ms&&$d(us(),Qs(),ne,u,Ce,ne[Ot],U,!1),mS}function PP(u,f,b,E){!function FC(u,f,b,E){const U=us();if(U.firstCreatePass){const ne=Ta();UC(U,new LC(f,b,E),ne.index),function BC(u,f){const b=u.contentQueries||(u.contentQueries=[]);f!==(b.length?b[b.length-1]:-1)&&b.push(u.queries.length-1,f)}(U,u),!(2&~b)&&(U.staticContentQueries=!0)}return l_(U,ir(),b)}(u,f,b,E)}function OP(u,f,b){!function Ef(u,f,b){const E=us();return E.firstCreatePass&&(UC(E,new LC(u,f,b),-1),!(2&~f)&&(E.staticViewQueries=!0)),l_(E,ir(),f)}(u,f,b)}function EP(u){const f=ir(),b=us(),E=Ng();Kl(E+1);const U=wv(b,E);if(u.dirty&&function to(u){return!(4&~u[fo])}(f)===!(2&~U.metadata.flags)){if(null===U.matches)u.reset([]);else{const ne=c_(f,E);u.reset(ne,jp),u.notifyOnChanges()}return!0}return!1}function xP(){return function Of(u,f){return u[Or].queries[f].queryList}(ir(),Ng())}function wP(u){return Vl(function wp(){return yo.lFrame.contextLView}(),jr+u)}function UP(u,f=""){const b=ir(),E=us(),U=u+jr,ne=E.firstCreatePass?Mp(E,U,1,f,null):E.data[U],Ce=BP(E,b,ne,f,u);b[U]=Ce,pu()&&jd(E,b,Ce,ne),Sc(ne,!1)}let BP=(u,f,b,E,U)=>(zc(!0),function Yt(u,f){return u.createText(f)}(f[Ot],E));function A0(u){return fS("",u,""),A0}function fS(u,f,b){const E=ir(),U=J_(E,u,f,b);return U!==Ms&&bp(E,Qa(),U),fS}function D0(u,f,b,E,U){const ne=ir(),Ce=q_(ne,u,f,b,E,U);return Ce!==Ms&&bp(ne,Qa(),Ce),D0}function R0(u,f,b){Tv(f)&&(f=f());const E=ir();return pc(E,Ac(),f)&&$d(us(),Qs(),E,u,f,E[Ot],b,!1),R0}function zP(u,f){const b=Tv(u);return b&&u.set(f),b}function L0(u,f){const b=ir(),E=us(),U=Ta();return T0(E,b,b[Ot],U,u,f),L0}function k0(u,f,b,E,U){if(u=Ne(u),Array.isArray(u))for(let ne=0;ne<u.length;ne++)k0(u[ne],f,b,E,U);else{const ne=us(),Ce=ir(),Ae=Ta();let Xe=Nn(u)?u:Ne(u.provide);const Ft=_c(u),gn=1048575&Ae.providerIndexes,Yn=Ae.directiveStart,Li=Ae.providerIndexes>>20;if(Nn(u)||!u.multi){const Wi=new Ru(Ft,U,ec),qi=F0(Xe,f,U?gn:gn+Li,Yn);-1===qi?(tu(yc(Ae,Ce),ne,Xe),N0(ne,u,f.length),f.push(Xe),Ae.directiveStart++,Ae.directiveEnd++,U&&(Ae.providerIndexes+=1048576),b.push(Wi),Ce.push(Wi)):(b[qi]=Wi,Ce[qi]=Wi)}else{const Wi=F0(Xe,f,gn+Li,Yn),qi=F0(Xe,f,gn,gn+Li),Zr=qi>=0&&b[qi];if(U&&!Zr||!U&&!(Wi>=0&&b[Wi])){tu(yc(Ae,Ce),ne,Xe);const oo=function Sw(u,f,b,E,U){const ne=new Ru(u,b,ec);return ne.multi=[],ne.index=f,ne.componentProviders=0,KP(ne,U,E&&!b),ne}(U?Cw:vw,b.length,U,E,Ft);!U&&Zr&&(b[qi].providerFactory=oo),N0(ne,u,f.length,0),f.push(Xe),Ae.directiveStart++,Ae.directiveEnd++,U&&(Ae.providerIndexes+=1048576),b.push(oo),Ce.push(oo)}else N0(ne,u,Wi>-1?Wi:qi,KP(b[U?qi:Wi],Ft,!U&&E));!U&&E&&Zr&&b[qi].componentProviders++}}}function N0(u,f,b,E){const U=Nn(f),ne=function So(u){return!!u.useClass}(f);if(U||ne){const Xe=(ne?Ne(f.useClass):f).prototype.ngOnDestroy;if(Xe){const Ft=u.destroyHooks||(u.destroyHooks=[]);if(!U&&f.multi){const gn=Ft.indexOf(b);-1===gn?Ft.push(b,[E,Xe]):Ft[gn+1].push(E,Xe)}else Ft.push(b,Xe)}}}function KP(u,f,b){return b&&u.componentProviders++,u.multi.push(f)-1}function F0(u,f,b,E){for(let U=b;U<E;U++)if(f[U]===u)return U;return-1}function vw(u,f,b,E){return U0(this.multi,[])}function Cw(u,f,b,E){const U=this.multi;let ne;if(this.providerFactory){const Ce=this.providerFactory.componentProviders,Ae=Xc(b,b[Ir],this.providerFactory.index,E);ne=Ae.slice(0,Ce),U0(U,ne);for(let Xe=Ce;Xe<Ae.length;Xe++)ne.push(Ae[Xe])}else ne=[],U0(U,ne);return ne}function U0(u,f){for(let b=0;b<u.length;b++)f.push((0,u[b])());return f}function XP(u,f=[]){return b=>{b.providersResolver=(E,U)=>function _w(u,f,b){const E=us();if(E.firstCreatePass){const U=rc(u);k0(b,E.data,E.blueprint,U,!0),k0(f,E.data,E.blueprint,U,!1)}}(E,U?U(u):u,f)}}let Mw=(()=>{var u;class f{constructor(E){this._injector=E,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(E){if(!E.standalone)return null;if(!this.cachedInjectors.has(E)){const U=lt(0,E.type),ne=U.length>0?Bv([U],this._injector,`Standalone[${E.type.name}]`):null;this.cachedInjectors.set(E,ne)}return this.cachedInjectors.get(E)}ngOnDestroy(){try{for(const E of this.cachedInjectors.values())null!==E&&E.destroy()}finally{this.cachedInjectors.clear()}}}return(u=f).\u0275prov=di({token:u,providedIn:"environment",factory:()=>new u(ts(Ns))}),f})();function ZP(u){_m("NgStandalone"),u.getStandaloneInjector=f=>f.get(Mw).getOrCreateStandaloneInjector(u)}function QP(u,f,b){const E=u.\u0275cmp;E.directiveDefs=Oa(f,!1),E.pipeDefs=Oa(b,!0)}function qP(u,f,b){const E=Ks()+u,U=ir();return U[E]===Ms?Rg(U,E,b?f.call(b):f()):function g_(u,f){return u[f]}(U,E)}function eO(u,f,b,E){return rO(ir(),Ks(),u,f,b,E)}function tO(u,f,b,E,U){return oO(ir(),Ks(),u,f,b,E,U)}function nO(u,f,b,E,U,ne){return function sO(u,f,b,E,U,ne,Ce,Ae){const Xe=f+b;return function Y_(u,f,b,E,U){const ne=Af(u,f,b,E);return pc(u,f+2,U)||ne}(u,Xe,U,ne,Ce)?Rg(u,Xe+3,Ae?E.call(Ae,U,ne,Ce):E(U,ne,Ce)):nC(u,Xe+3)}(ir(),Ks(),u,f,b,E,U,ne)}function iO(u,f,b,E,U,ne,Ce){return function aO(u,f,b,E,U,ne,Ce,Ae,Xe){const Ft=f+b;return function uh(u,f,b,E,U,ne){const Ce=Af(u,f,b,E);return Af(u,f+2,U,ne)||Ce}(u,Ft,U,ne,Ce,Ae)?Rg(u,Ft+4,Xe?E.call(Xe,U,ne,Ce,Ae):E(U,ne,Ce,Ae)):nC(u,Ft+4)}(ir(),Ks(),u,f,b,E,U,ne,Ce)}function nC(u,f){const b=u[f];return b===Ms?void 0:b}function rO(u,f,b,E,U,ne){const Ce=f+b;return pc(u,Ce,U)?Rg(u,Ce+1,ne?E.call(ne,U):E(U)):nC(u,Ce+1)}function oO(u,f,b,E,U,ne,Ce){const Ae=f+b;return Af(u,Ae,U,ne)?Rg(u,Ae+2,Ce?E.call(Ce,U,ne):E(U,ne)):nC(u,Ae+2)}function cO(u,f){const b=us();let E;const U=u+jr;b.firstCreatePass?(E=function ww(u,f){if(f)for(let b=f.length-1;b>=0;b--){const E=f[b];if(u===E.name)return E}}(f,b.pipeRegistry),b.data[U]=E,E.onDestroy&&(b.destroyHooks??=[]).push(U,E.onDestroy)):E=b.data[U];const ne=E.factory||(E.factory=Ca(E.type)),Ae=es(ec);try{const Xe=Lu(!1),Ft=ne();return Lu(Xe),function ow(u,f,b,E){b>=u.data.length&&(u.data[b]=null,u.blueprint[b]=null),f[b]=E}(b,ir(),U,Ft),Ft}finally{es(Ae)}}function dO(u,f,b){const E=u+jr,U=ir(),ne=Vl(U,E);return iC(U,E)?rO(U,Ks(),f,ne.transform,b,ne):ne.transform(b)}function uO(u,f,b,E){const U=u+jr,ne=ir(),Ce=Vl(ne,U);return iC(ne,U)?oO(ne,Ks(),f,Ce.transform,b,E,Ce):Ce.transform(b,E)}function iC(u,f){return u[Ir].data[f].pure}function hO(u,f){return bf(u,f)}class wO{constructor(f){this.full=f;const b=f.split(".");this.major=b[0],this.minor=b[1],this.patch=b.slice(2).join(".")}}let TO=(()=>{var u;class f{log(E){console.log(E)}warn(E){console.warn(E)}}return(u=f).\u0275fac=function(E){return new(E||u)},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"platform"}),f})();const LO=new Pt(""),kO=new Pt("");let W0,PT=(()=>{var u;class f{constructor(E,U,ne){this._ngZone=E,this.registry=U,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,W0||(function OT(u){W0=u}(ne),ne.addToWindow(U)),this._watchAngularEvents(),E.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{id.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let E=this._callbacks.pop();clearTimeout(E.timeoutId),E.doneCb()}});else{let E=this.getPendingTasks();this._callbacks=this._callbacks.filter(U=>!U.updateCb||!U.updateCb(E)||(clearTimeout(U.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(E=>({source:E.source,creationLocation:E.creationLocation,data:E.data})):[]}addCallback(E,U,ne){let Ce=-1;U&&U>0&&(Ce=setTimeout(()=>{this._callbacks=this._callbacks.filter(Ae=>Ae.timeoutId!==Ce),E()},U)),this._callbacks.push({doneCb:E,timeoutId:Ce,updateCb:ne})}whenStable(E,U,ne){if(ne&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(E,U,ne),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(E){this.registry.registerApplication(E,this)}unregisterApplication(E){this.registry.unregisterApplication(E)}findProviders(E,U,ne){return[]}}return(u=f).\u0275fac=function(E){return new(E||u)(ts(id),ts(NO),ts(kO))},u.\u0275prov=di({token:u,factory:u.\u0275fac}),f})(),NO=(()=>{var u;class f{constructor(){this._applications=new Map}registerApplication(E,U){this._applications.set(E,U)}unregisterApplication(E){this._applications.delete(E)}unregisterAllApplications(){this._applications.clear()}getTestability(E){return this._applications.get(E)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(E,U=!0){return W0?.findTestabilityInTree(this,E,U)??null}}return(u=f).\u0275fac=function(E){return new(E||u)},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"platform"}),f})();function $0(u){return!!u&&"function"==typeof u.then}function FO(u){return!!u&&"function"==typeof u.subscribe}const UO=new Pt("");let Y0=(()=>{var u;class f{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((E,U)=>{this.resolve=E,this.reject=U}),this.appInits=Xr(UO,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const E=[];for(const ne of this.appInits){const Ce=ne();if($0(Ce))E.push(Ce);else if(FO(Ce)){const Ae=new Promise((Xe,Ft)=>{Ce.subscribe({complete:Xe,error:Ft})});E.push(Ae)}}const U=()=>{this.done=!0,this.resolve()};Promise.all(E).then(()=>{U()}).catch(ne=>{this.reject(ne)}),0===E.length&&U(),this.initialized=!0}}return(u=f).\u0275fac=function(E){return new(E||u)},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"root"}),f})();const z0=new Pt("");function VO(u,f){return Array.isArray(f)?f.reduce(VO,u):{...u,...f}}let Xf=(()=>{var u;class f{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Xr(kd),this.afterRenderEffectManager=Xr(r_),this.externalTestViews=new Set,this.beforeRender=new _e.B7,this.afterTick=new _e.B7,this.componentTypes=[],this.components=[],this.isStable=Xr(If).hasPendingTasks.pipe((0,Me.T)(E=>!E)),this._injector=Xr(Ns)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(E,U){const ne=E instanceof mC;if(!this._injector.get(Y0).done)throw!ne&&ks(E),new Oe(405,!1);let Ae;Ae=ne?E:this._injector.get(L_).resolveComponentFactory(E),this.componentTypes.push(Ae.componentType);const Xe=function ET(u){return u.isBoundToModule}(Ae)?void 0:this._injector.get(Ep),gn=Ae.create(cc.NULL,[],U||Ae.selector,Xe),Yn=gn.location.nativeElement,Li=gn.injector.get(LO,null);return Li?.registerApplication(Yn),gn.onDestroy(()=>{this.detachView(gn.hostView),SS(this.components,gn),Li?.unregisterApplication(Yn)}),this._loadComponent(gn),gn}tick(){this._tick(!0)}_tick(E){if(this._runningTick)throw new Oe(101,!1);const U=v(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(E)}catch(ne){this.internalErrorHandler(ne)}finally{this.afterTick.next(),this._runningTick=!1,v(U)}}detectChangesInAttachedViews(E){let U=0;const ne=this.afterRenderEffectManager;for(;;){if(U===xi)throw new Oe(103,!1);if(E){const Ce=0===U;this.beforeRender.next(Ce);for(let{_lView:Ae,notifyErrorHandler:Xe}of this._views)wT(Ae,Ce,Xe)}if(U++,ne.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:Ce})=>K0(Ce))&&(ne.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:Ce})=>K0(Ce))))break}}attachView(E){const U=E;this._views.push(U),U.attachToAppRef(this)}detachView(E){const U=E;SS(this._views,U),U.detachFromAppRef()}_loadComponent(E){this.attachView(E.hostView),this.tick(),this.components.push(E);const U=this._injector.get(z0,[]);[...this._bootstrapListeners,...U].forEach(ne=>ne(E))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(E=>E()),this._views.slice().forEach(E=>E.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(E){return this._destroyListeners.push(E),()=>SS(this._destroyListeners,E)}destroy(){if(this._destroyed)throw new Oe(406,!1);const E=this._injector;E.destroy&&!E.destroyed&&E.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(u=f).\u0275fac=function(E){return new(E||u)},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"root"}),f})();function SS(u,f){const b=u.indexOf(f);b>-1&&u.splice(b,1)}function wT(u,f,b){!f&&!K0(u)||function TT(u,f,b){let E;b?(E=0,u[fo]|=1024):E=64&u[fo]?0:1,Yi(u,f,E)}(u,b,f)}function K0(u){return Tl(u)}class IT{constructor(f,b){this.ngModuleFactory=f,this.componentFactories=b}}let AT=(()=>{var u;class f{compileModuleSync(E){return new Uv(E)}compileModuleAsync(E){return Promise.resolve(this.compileModuleSync(E))}compileModuleAndAllComponentsSync(E){const U=this.compileModuleSync(E),Ce=Ec(la(E).declarations).reduce((Ae,Xe)=>{const Ft=Co(Xe);return Ft&&Ae.push(new a_(Ft)),Ae},[]);return new IT(U,Ce)}compileModuleAndAllComponentsAsync(E){return Promise.resolve(this.compileModuleAndAllComponentsSync(E))}clearCache(){}clearCacheFor(E){}getModuleId(E){}}return(u=f).\u0275fac=function(E){return new(E||u)},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"root"}),f})(),LT=(()=>{var u;class f{constructor(){this.zone=Xr(id),this.applicationRef=Xr(Xf)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(u=f).\u0275fac=function(E){return new(E||u)},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"root"}),f})();function kT(){const u=Xr(id),f=Xr(ld);return b=>u.runOutsideAngular(()=>f.handleError(b))}let FT=(()=>{var u;class f{constructor(){this.subscription=new ke.y,this.initialized=!1,this.zone=Xr(id),this.pendingTasks=Xr(If)}initialize(){if(this.initialized)return;this.initialized=!0;let E=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(E=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{id.assertNotInAngularZone(),queueMicrotask(()=>{null!==E&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(E),E=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{id.assertInAngularZone(),E??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(u=f).\u0275fac=function(E){return new(E||u)},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"root"}),f})();const yS=new Pt("",{providedIn:"root",factory:()=>Xr(yS,ro.Optional|ro.SkipSelf)||function UT(){return typeof $localize<"u"&&$localize.locale||cv}()}),BT=new Pt("",{providedIn:"root",factory:()=>"USD"}),X0=new Pt("");let $O=(()=>{var u;class f{constructor(E){this._injector=E,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(E,U){const ne=function nM(u="zone.js",f){return"noop"===u?new MC:"zone.js"===u?new id(f):u}(U?.ngZone,function WO(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:u?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:u?.runCoalescing??!1}}({eventCoalescing:U?.ngZoneEventCoalescing,runCoalescing:U?.ngZoneRunCoalescing}));return ne.run(()=>{const Ce=function zM(u,f,b){return new Fv(u,f,b)}(E.moduleType,this.injector,function jO(u){return[{provide:id,useFactory:u},{provide:tr,multi:!0,useFactory:()=>{const f=Xr(LT,{optional:!0});return()=>f.initialize()}},{provide:tr,multi:!0,useFactory:()=>{const f=Xr(FT);return()=>{f.initialize()}}},{provide:kd,useFactory:kT}]}(()=>ne)),Ae=Ce.injector.get(ld,null);return ne.runOutsideAngular(()=>{const Xe=ne.onError.subscribe({next:Ft=>{Ae.handleError(Ft)}});Ce.onDestroy(()=>{SS(this._modules,Ce),Xe.unsubscribe()})}),function GO(u,f,b){try{const E=b();return $0(E)?E.catch(U=>{throw f.runOutsideAngular(()=>u.handleError(U)),U}):E}catch(E){throw f.runOutsideAngular(()=>u.handleError(E)),E}}(Ae,ne,()=>{const Xe=Ce.injector.get(Y0);return Xe.runInitializers(),Xe.donePromise.then(()=>(function Gb(u){"string"==typeof u&&(Bb=u.toLowerCase().replace(/_/g,"-"))}(Ce.injector.get(yS,cv)||cv),this._moduleDoBootstrap(Ce),Ce))})})}bootstrapModule(E,U=[]){const ne=VO({},U);return function RT(u,f,b){const E=new Uv(b);return Promise.resolve(E)}(0,0,E).then(Ce=>this.bootstrapModuleFactory(Ce,ne))}_moduleDoBootstrap(E){const U=E.injector.get(Xf);if(E._bootstrapComponents.length>0)E._bootstrapComponents.forEach(ne=>U.bootstrap(ne));else{if(!E.instance.ngDoBootstrap)throw new Oe(-403,!1);E.instance.ngDoBootstrap(U)}this._modules.push(E)}onDestroy(E){this._destroyListeners.push(E)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Oe(404,!1);this._modules.slice().forEach(U=>U.destroy()),this._destroyListeners.forEach(U=>U());const E=this._injector.get(X0,null);E&&(E.forEach(U=>U()),E.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(u=f).\u0275fac=function(E){return new(E||u)(ts(cc))},u.\u0275prov=di({token:u,factory:u.\u0275fac,providedIn:"platform"}),f})(),Zf=null;const YO=new Pt("");function zO(u,f,b=[]){const E=`Platform: ${f}`,U=new Pt(E);return(ne=[])=>{let Ce=Z0();if(!Ce||Ce.injector.get(YO,!1)){const Ae=[...b,...ne,{provide:U,useValue:!0}];u?u(Ae):function VT(u){if(Zf&&!Zf.get(YO,!1))throw new Oe(400,!1);(function BO(){!function X(u){z=u}(()=>{throw new Oe(600,!1)})})(),Zf=u;const f=u.get($O);(function XO(u){u.get(tp,null)?.forEach(b=>b())})(u)}(function KO(u=[],f){return cc.create({name:f,providers:[{provide:Mo,useValue:"platform"},{provide:X0,useValue:new Set([()=>Zf=null])},...u]})}(Ae,E))}return function HT(u){const f=Z0();if(!f)throw new Oe(401,!1);return f}()}}function Z0(){return Zf?.get($O)??null}function WT(){return!1}function $T(){}let QO=(()=>{class f{}return f.__NG_ELEMENT_ID__=YT,f})();function YT(u){return function zT(u,f,b){if(_s(u)&&!b){const E=ol(u.index,f);return new ef(E,E)}return 47&u.type?new ef(f[Qn],f):null}(Ta(),ir(),!(16&~u))}class tE{constructor(){}supports(f){return W_(f)}create(f){return new JT(f)}}const QT=(u,f)=>f;class JT{constructor(f){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f||QT}forEachItem(f){let b;for(b=this._itHead;null!==b;b=b._next)f(b)}forEachOperation(f){let b=this._itHead,E=this._removalsHead,U=0,ne=null;for(;b||E;){const Ce=!E||b&&b.currentIndex<iE(E,U,ne)?b:E,Ae=iE(Ce,U,ne),Xe=Ce.currentIndex;if(Ce===E)U--,E=E._nextRemoved;else if(b=b._next,null==Ce.previousIndex)U++;else{ne||(ne=[]);const Ft=Ae-U,gn=Xe-U;if(Ft!=gn){for(let Li=0;Li<Ft;Li++){const Wi=Li<ne.length?ne[Li]:ne[Li]=0,qi=Wi+Li;gn<=qi&&qi<Ft&&(ne[Li]=Wi+1)}ne[Ce.previousIndex]=gn-Ft}}Ae!==Xe&&f(Ce,Ae,Xe)}}forEachPreviousItem(f){let b;for(b=this._previousItHead;null!==b;b=b._nextPrevious)f(b)}forEachAddedItem(f){let b;for(b=this._additionsHead;null!==b;b=b._nextAdded)f(b)}forEachMovedItem(f){let b;for(b=this._movesHead;null!==b;b=b._nextMoved)f(b)}forEachRemovedItem(f){let b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)f(b)}forEachIdentityChange(f){let b;for(b=this._identityChangesHead;null!==b;b=b._nextIdentityChange)f(b)}diff(f){if(null==f&&(f=[]),!W_(f))throw new Oe(900,!1);return this.check(f)?this:null}onDestroy(){}check(f){this._reset();let U,ne,Ce,b=this._itHead,E=!1;if(Array.isArray(f)){this.length=f.length;for(let Ae=0;Ae<this.length;Ae++)ne=f[Ae],Ce=this._trackByFn(Ae,ne),null!==b&&Object.is(b.trackById,Ce)?(E&&(b=this._verifyReinsertion(b,ne,Ce,Ae)),Object.is(b.item,ne)||this._addIdentityChange(b,ne)):(b=this._mismatch(b,ne,Ce,Ae),E=!0),b=b._next}else U=0,function JM(u,f){if(Array.isArray(u))for(let b=0;b<u.length;b++)f(u[b]);else{const b=u[Symbol.iterator]();let E;for(;!(E=b.next()).done;)f(E.value)}}(f,Ae=>{Ce=this._trackByFn(U,Ae),null!==b&&Object.is(b.trackById,Ce)?(E&&(b=this._verifyReinsertion(b,Ae,Ce,U)),Object.is(b.item,Ae)||this._addIdentityChange(b,Ae)):(b=this._mismatch(b,Ae,Ce,U),E=!0),b=b._next,U++}),this.length=U;return this._truncate(b),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,b,E,U){let ne;return null===f?ne=this._itTail:(ne=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null))?(Object.is(f.item,b)||this._addIdentityChange(f,b),this._reinsertAfter(f,ne,U)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(E,U))?(Object.is(f.item,b)||this._addIdentityChange(f,b),this._moveAfter(f,ne,U)):f=this._addAfter(new qT(b,E),ne,U),f}_verifyReinsertion(f,b,E,U){let ne=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null);return null!==ne?f=this._reinsertAfter(ne,f._prev,U):f.currentIndex!=U&&(f.currentIndex=U,this._addToMoves(f,U)),f}_truncate(f){for(;null!==f;){const b=f._next;this._addToRemovals(this._unlink(f)),f=b}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(f,b,E){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const U=f._prevRemoved,ne=f._nextRemoved;return null===U?this._removalsHead=ne:U._nextRemoved=ne,null===ne?this._removalsTail=U:ne._prevRemoved=U,this._insertAfter(f,b,E),this._addToMoves(f,E),f}_moveAfter(f,b,E){return this._unlink(f),this._insertAfter(f,b,E),this._addToMoves(f,E),f}_addAfter(f,b,E){return this._insertAfter(f,b,E),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,b,E){const U=null===b?this._itHead:b._next;return f._next=U,f._prev=b,null===U?this._itTail=f:U._prev=f,null===b?this._itHead=f:b._next=f,null===this._linkedRecords&&(this._linkedRecords=new nE),this._linkedRecords.put(f),f.currentIndex=E,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const b=f._prev,E=f._next;return null===b?this._itHead=E:b._next=E,null===E?this._itTail=b:E._prev=b,f}_addToMoves(f,b){return f.previousIndex===b||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new nE),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,b){return f.item=b,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class qT{constructor(f,b){this.item=f,this.trackById=b,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class eI{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,b){let E;for(E=this._head;null!==E;E=E._nextDup)if((null===b||b<=E.currentIndex)&&Object.is(E.trackById,f))return E;return null}remove(f){const b=f._prevDup,E=f._nextDup;return null===b?this._head=E:b._nextDup=E,null===E?this._tail=b:E._prevDup=b,null===this._head}}class nE{constructor(){this.map=new Map}put(f){const b=f.trackById;let E=this.map.get(b);E||(E=new eI,this.map.set(b,E)),E.add(f)}get(f,b){const U=this.map.get(f);return U?U.get(f,b):null}remove(f){const b=f.trackById;return this.map.get(b).remove(f)&&this.map.delete(b),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function iE(u,f,b){const E=u.previousIndex;if(null===E)return E;let U=0;return b&&E<b.length&&(U=b[E]),E+f+U}class rE{constructor(){}supports(f){return f instanceof Map||$_(f)}create(){return new tI}}class tI{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(f){let b;for(b=this._mapHead;null!==b;b=b._next)f(b)}forEachPreviousItem(f){let b;for(b=this._previousMapHead;null!==b;b=b._nextPrevious)f(b)}forEachChangedItem(f){let b;for(b=this._changesHead;null!==b;b=b._nextChanged)f(b)}forEachAddedItem(f){let b;for(b=this._additionsHead;null!==b;b=b._nextAdded)f(b)}forEachRemovedItem(f){let b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)f(b)}diff(f){if(f){if(!(f instanceof Map||$_(f)))throw new Oe(900,!1)}else f=new Map;return this.check(f)?this:null}onDestroy(){}check(f){this._reset();let b=this._mapHead;if(this._appendAfter=null,this._forEach(f,(E,U)=>{if(b&&b.key===U)this._maybeAddToChanges(b,E),this._appendAfter=b,b=b._next;else{const ne=this._getOrCreateRecordForKey(U,E);b=this._insertBeforeOrAppend(b,ne)}}),b){b._prev&&(b._prev._next=null),this._removalsHead=b;for(let E=b;null!==E;E=E._nextRemoved)E===this._mapHead&&(this._mapHead=null),this._records.delete(E.key),E._nextRemoved=E._next,E.previousValue=E.currentValue,E.currentValue=null,E._prev=null,E._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,b){if(f){const E=f._prev;return b._next=f,b._prev=E,f._prev=b,E&&(E._next=b),f===this._mapHead&&(this._mapHead=b),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b,this._appendAfter=b,null}_getOrCreateRecordForKey(f,b){if(this._records.has(f)){const U=this._records.get(f);this._maybeAddToChanges(U,b);const ne=U._prev,Ce=U._next;return ne&&(ne._next=Ce),Ce&&(Ce._prev=ne),U._next=null,U._prev=null,U}const E=new nI(f);return this._records.set(f,E),E.currentValue=b,this._addToAdditions(E),E}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,b){Object.is(b,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=b,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,b){f instanceof Map?f.forEach(b):Object.keys(f).forEach(E=>b(f[E],E))}}class nI{constructor(f){this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function oE(){return new ty([new tE])}let ty=(()=>{var u;class f{constructor(E){this.factories=E}static create(E,U){if(null!=U){const ne=U.factories.slice();E=E.concat(ne)}return new f(E)}static extend(E){return{provide:f,useFactory:U=>f.create(E,U||oE()),deps:[[f,new Gs,new To]]}}find(E){const U=this.factories.find(ne=>ne.supports(E));if(null!=U)return U;throw new Oe(901,!1)}}return(u=f).\u0275prov=di({token:u,providedIn:"root",factory:oE}),f})();function sE(){return new ny([new rE])}let ny=(()=>{var u;class f{constructor(E){this.factories=E}static create(E,U){if(U){const ne=U.factories.slice();E=E.concat(ne)}return new f(E)}static extend(E){return{provide:f,useFactory:U=>f.create(E,U||sE()),deps:[[f,new Gs,new To]]}}find(E){const U=this.factories.find(ne=>ne.supports(E));if(U)return U;throw new Oe(901,!1)}}return(u=f).\u0275prov=di({token:u,providedIn:"root",factory:sE}),f})();const oI=zO(null,"core",[]);let sI=(()=>{var u;class f{constructor(E){}}return(u=f).\u0275fac=function(E){return new(E||u)(ts(Xf))},u.\u0275mod=Ia({type:u}),u.\u0275inj=vi({}),f})();function kI(u){return"boolean"==typeof u?u:null!=u&&"false"!==u}function FI(u){const f=v(null);try{return u()}finally{v(f)}}function jI(u){const f=Co(u);if(!f)return null;const b=new a_(f);return{get selector(){return b.selector},get type(){return b.componentType},get inputs(){return b.inputs},get outputs(){return b.outputs},get ngContentSelectors(){return b.ngContentSelectors},get isStandalone(){return f.standalone},get isSignal(){return f.signals}}}},73004:(Ue,W,d)=>{"use strict";function n(y){for(let r in y){let i=y[r]??"";switch(r){case"display":y.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":y["-webkit-"+r]=i;break;case"flex-direction":y["-webkit-flex-direction"]=i,y["flex-direction"]=i;break;case"order":y.order=y["-webkit-"+r]=isNaN(+i)?"0":i}}return y}d.d(W,{C5:()=>S,O5:()=>n,Uo:()=>p,Vc:()=>P,uG:()=>m});const l="inline",p=["row","column","row-reverse","column-reverse"];function m(y){let[r,i,a]=_(y);return function O(y,r=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":y,"flex-wrap":r||null}}(r,i,a)}function _(y){y=y?.toLowerCase()??"";let[r,i,a]=y.split(" ");return p.find(h=>h===r)||(r=p[0]),i===l&&(i=a!==l?a:"",a=l),[r,v(i),!!a]}function P(y){let[r]=_(y);return r.indexOf("row")>-1}function v(y){if(y)switch(y.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":y="wrap-reverse";break;case"no":case"none":case"nowrap":y="nowrap";break;default:y="wrap"}return y}function S(y,...r){if(null==y)throw TypeError("Cannot convert undefined or null to object");for(let i of r)if(null!=i)for(let a in i)i.hasOwnProperty(a)&&(y[a]=i[a]);return y}},2833:(Ue,W,d)=>{"use strict";d.d(W,{Ce:()=>A,DJ:()=>ye,EA:()=>T,PV:()=>c,SL:()=>L,Ui:()=>a,ZH:()=>D,cL:()=>En,hN:()=>st,qH:()=>gt,r3:()=>V});var n=d(58527),l=d(61142),p=d(26513),m=d(17053),_=d(16229),P=d(80583),v=d(73004),O=d(8619),S=d(91384);const r={provide:n.iLQ,useFactory:function y(Cn,fn){return()=>{if((0,l.UE)(fn)){const dt=Array.from(Cn.querySelectorAll(`[class*=${i}]`)),nn=/\bflex-layout-.+?\b/g;dt.forEach(yn=>{yn.classList.contains(`${i}ssr`)&&yn.parentNode?yn.parentNode.removeChild(yn):yn.className.replace(nn,"")})}}},deps:[l.qQ,n.Agw],multi:!0},i="flex-layout-";let a=(()=>{class Cn{}return Cn.\u0275fac=function(dt){return new(dt||Cn)},Cn.\u0275mod=n.$C({type:Cn}),Cn.\u0275inj=n.G2t({providers:[r]}),Cn})();class h{constructor(fn=!1,dt="all",nn="",yn="",Xn=0){this.matches=fn,this.mediaQuery=dt,this.mqAlias=nn,this.suffix=yn,this.priority=Xn,this.property=""}clone(){return new h(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let g=(()=>{class Cn{constructor(){this.stylesheet=new Map}addStyleToElement(dt,nn,yn){const Xn=this.stylesheet.get(dt);Xn?Xn.set(nn,yn):this.stylesheet.set(dt,new Map([[nn,yn]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(dt,nn){const yn=this.stylesheet.get(dt);let Xn="";if(yn){const rn=yn.get(nn);("number"==typeof rn||"string"==typeof rn)&&(Xn=rn+"")}return Xn}}return Cn.\u0275fac=function(dt){return new(dt||Cn)},Cn.\u0275prov=n.jDH({token:Cn,factory:Cn.\u0275fac,providedIn:"root"}),Cn})();const c={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},T=new n.nKC("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>c}),A=new n.nKC("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),L=new n.nKC("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function x(Cn,fn){return Cn=Cn?.clone()??new h,fn&&(Cn.mqAlias=fn.alias,Cn.mediaQuery=fn.mediaQuery,Cn.suffix=fn.suffix,Cn.priority=fn.priority),Cn}class V{constructor(){this.shouldCache=!0}sideEffect(fn,dt,nn){}}let D=(()=>{class Cn{constructor(dt,nn,yn,Xn){this._serverStylesheet=dt,this._serverModuleLoaded=nn,this._platformId=yn,this.layoutConfig=Xn}applyStyleToElement(dt,nn,yn=null){let Xn={};"string"==typeof nn&&(Xn[nn]=yn,nn=Xn),Xn=this.layoutConfig.disableVendorPrefixes?nn:(0,v.O5)(nn),this._applyMultiValueStyleToElement(Xn,dt)}applyStyleToElements(dt,nn=[]){const yn=this.layoutConfig.disableVendorPrefixes?dt:(0,v.O5)(dt);nn.forEach(Xn=>{this._applyMultiValueStyleToElement(yn,Xn)})}getFlowDirection(dt){const nn="flex-direction";let yn=this.lookupStyle(dt,nn);return[yn||"row",this.lookupInlineStyle(dt,nn)||(0,l.Vy)(this._platformId)&&this._serverModuleLoaded?yn:""]}hasWrap(dt){return"wrap"===this.lookupStyle(dt,"flex-wrap")}lookupAttributeValue(dt,nn){return dt.getAttribute(nn)??""}lookupInlineStyle(dt,nn){return(0,l.UE)(this._platformId)?dt.style.getPropertyValue(nn):function F(Cn,fn){return R(Cn)[fn]??""}(dt,nn)}lookupStyle(dt,nn,yn=!1){let Xn="";return dt&&((Xn=this.lookupInlineStyle(dt,nn))||((0,l.UE)(this._platformId)?yn||(Xn=getComputedStyle(dt).getPropertyValue(nn)):this._serverModuleLoaded&&(Xn=this._serverStylesheet.getStyleForElement(dt,nn)))),Xn?Xn.trim():""}_applyMultiValueStyleToElement(dt,nn){Object.keys(dt).sort().forEach(yn=>{const Xn=dt[yn],rn=Array.isArray(Xn)?Xn:[Xn];rn.sort();for(let ai of rn)ai=ai?ai+"":"",(0,l.UE)(this._platformId)||!this._serverModuleLoaded?(0,l.UE)(this._platformId)?nn.style.setProperty(yn,ai):I(nn,yn,ai):this._serverStylesheet.addStyleToElement(nn,yn,ai)})}}return Cn.\u0275fac=function(dt){return new(dt||Cn)(n.KVO(g),n.KVO(A),n.KVO(n.Agw),n.KVO(T))},Cn.\u0275prov=n.jDH({token:Cn,factory:Cn.\u0275fac,providedIn:"root"}),Cn})();function I(Cn,fn,dt){fn=fn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const nn=R(Cn);nn[fn]=dt??"",function k(Cn,fn){let dt="";for(const nn in fn)fn[nn]&&(dt+=`${nn}:${fn[nn]};`);Cn.setAttribute("style",dt)}(Cn,nn)}function R(Cn){const fn={},dt=Cn.getAttribute("style");if(dt){const nn=dt.split(/;+/g);for(let yn=0;yn<nn.length;yn++){const Xn=nn[yn].trim();if(Xn.length>0){const rn=Xn.indexOf(":");if(-1===rn)throw new Error(`Invalid CSS style: ${Xn}`);fn[Xn.substr(0,rn).trim()]=Xn.substr(rn+1).trim()}}}return fn}function G(Cn,fn){return(fn&&fn.priority||0)-(Cn&&Cn.priority||0)}function Y(Cn,fn){return(Cn.priority||0)-(fn.priority||0)}let K=(()=>{class Cn{constructor(dt,nn,yn){this._zone=dt,this._platformId=nn,this._document=yn,this.source=new p.t(new h(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const dt=[];return this.registry.forEach((nn,yn)=>{nn.matches&&dt.push(yn)}),dt}isActive(dt){return this.registry.get(dt)?.matches??this.registerQuery(dt).some(yn=>yn.matches)}observe(dt,nn=!1){if(dt&&dt.length){const yn=this._observable$.pipe((0,O.p)(rn=>!nn||dt.indexOf(rn.mediaQuery)>-1)),Xn=new m.c(rn=>{const ai=this.registerQuery(dt);if(ai.length){const ri=ai.pop();ai.forEach(Ne=>{rn.next(Ne)}),this.source.next(ri)}rn.complete()});return(0,_.h)(Xn,yn)}return this._observable$}registerQuery(dt){const nn=Array.isArray(dt)?dt:[dt],yn=[];return function ee(Cn,fn){const dt=Cn.filter(nn=>!$[nn]);if(dt.length>0){const nn=dt.join(", ");try{const yn=fn.createElement("style");yn.setAttribute("type","text/css"),yn.styleSheet||yn.appendChild(fn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${nn} {.fx-query-test{ }}\n`)),fn.head.appendChild(yn),dt.forEach(Xn=>$[Xn]=yn)}catch(yn){console.error(yn)}}}(nn,this._document),nn.forEach(Xn=>{const rn=ri=>{this._zone.run(()=>this.source.next(new h(ri.matches,Xn)))};let ai=this.registry.get(Xn);ai||(ai=this.buildMQL(Xn),ai.addListener(rn),this.pendingRemoveListenerFns.push(()=>ai.removeListener(rn)),this.registry.set(Xn,ai)),ai.matches&&yn.push(new h(!0,Xn))}),yn}ngOnDestroy(){let dt;for(;dt=this.pendingRemoveListenerFns.pop();)dt()}buildMQL(dt){return function z(Cn,fn){return fn&&window.matchMedia("all").addListener?window.matchMedia(Cn):function J(Cn){const fn=new EventTarget;return fn.matches="all"===Cn||""===Cn,fn.media=Cn,fn.addListener=()=>{},fn.removeListener=()=>{},fn.addEventListener=()=>{},fn.dispatchEvent=()=>!1,fn.onchange=null,fn}(Cn)}(dt,(0,l.UE)(this._platformId))}}return Cn.\u0275fac=function(dt){return new(dt||Cn)(n.KVO(n.SKi),n.KVO(n.Agw),n.KVO(l.qQ))},Cn.\u0275prov=n.jDH({token:Cn,factory:Cn.\u0275fac,providedIn:"root"}),Cn})();const $={},te=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],X="(orientation: portrait) and (max-width: 599.98px)",re="(orientation: landscape) and (max-width: 959.98px)",ge="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",oe="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",xe="(orientation: portrait) and (min-width: 840px)",ue="(orientation: landscape) and (min-width: 1280px)",N={HANDSET:`${X}, ${re}`,TABLET:`${ge} , ${oe}`,WEB:`${xe}, ${ue} `,HANDSET_PORTRAIT:`${X}`,TABLET_PORTRAIT:`${ge} `,WEB_PORTRAIT:`${xe}`,HANDSET_LANDSCAPE:`${re}`,TABLET_LANDSCAPE:`${oe}`,WEB_LANDSCAPE:`${ue}`},se=[{alias:"handset",priority:2e3,mediaQuery:N.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:N.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:N.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:N.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:N.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:N.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:N.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:N.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:N.WEB_PORTRAIT,overlapping:!0}],ce=/(\.|-|_)/g;function Z(Cn){let fn=Cn.length>0?Cn.charAt(0):"",dt=Cn.length>1?Cn.slice(1):"";return fn.toUpperCase()+dt}const _e=new n.nKC("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Cn=(0,n.WQX)(L),fn=(0,n.WQX)(T),dt=[].concat.apply([],(Cn||[]).map(yn=>Array.isArray(yn)?yn:[yn]));return function pe(Cn,fn=[]){const dt={};return Cn.forEach(nn=>{dt[nn.alias]=nn}),fn.forEach(nn=>{dt[nn.alias]?(0,v.C5)(dt[nn.alias],nn):dt[nn.alias]=nn}),function ae(Cn){return Cn.forEach(fn=>{fn.suffix||(fn.suffix=function de(Cn){return Cn.replace(ce,"|").split("|").map(Z).join("")}(fn.alias),fn.overlapping=!!fn.overlapping)}),Cn}(Object.keys(dt).map(nn=>dt[nn]))}((fn.disableDefaultBps?[]:te).concat(fn.addOrientationBps?se:[]),dt)}});let ke=(()=>{class Cn{constructor(dt){this.findByMap=new Map,this.items=[...dt].sort(Y)}findByAlias(dt){return dt?this.findWithPredicate(dt,nn=>nn.alias===dt):null}findByQuery(dt){return this.findWithPredicate(dt,nn=>nn.mediaQuery===dt)}get overlappings(){return this.items.filter(dt=>dt.overlapping)}get aliases(){return this.items.map(dt=>dt.alias)}get suffixes(){return this.items.map(dt=>dt?.suffix??"")}findWithPredicate(dt,nn){let yn=this.findByMap.get(dt);return yn||(yn=this.items.find(nn)??null,this.findByMap.set(dt,yn)),yn??null}}return Cn.\u0275fac=function(dt){return new(dt||Cn)(n.KVO(_e))},Cn.\u0275prov=n.jDH({token:Cn,factory:Cn.\u0275fac,providedIn:"root"}),Cn})();const De="print",Me={alias:De,mediaQuery:De,priority:1e3};let je=(()=>{class Cn{constructor(dt,nn,yn){this.breakpoints=dt,this.layoutConfig=nn,this._document=yn,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new $e,this.deactivations=[]}withPrintQuery(dt){return[...dt,De]}isPrintEvent(dt){return dt.mediaQuery.startsWith(De)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(dt=>this.breakpoints.findByAlias(dt)).filter(dt=>null!==dt)}getEventBreakpoints({mediaQuery:dt}){const nn=this.breakpoints.findByQuery(dt);return(nn?[...this.printBreakPoints,nn]:this.printBreakPoints).sort(G)}updateEvent(dt){let nn=this.breakpoints.findByQuery(dt.mediaQuery);return this.isPrintEvent(dt)&&(nn=this.getEventBreakpoints(dt)[0],dt.mediaQuery=nn?.mediaQuery??""),x(dt,nn)}registerBeforeAfterPrintHooks(dt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const nn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(dt,this.getEventBreakpoints(new h(!0,De))),dt.updateStyles())},yn=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(dt),dt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",nn),this._document.defaultView.addEventListener("afterprint",yn),this.beforePrintEventListeners.push(nn),this.afterPrintEventListeners.push(yn)}interceptEvents(dt){return nn=>{this.isPrintEvent(nn)?nn.matches&&!this.isPrinting?(this.startPrinting(dt,this.getEventBreakpoints(nn)),dt.updateStyles()):!nn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(dt),dt.updateStyles()):this.collectActivations(dt,nn)}}blockPropagation(){return dt=>!(this.isPrinting||this.isPrintEvent(dt))}startPrinting(dt,nn){this.isPrinting=!0,this.formerActivations=dt.activatedBreakpoints,dt.activatedBreakpoints=this.queue.addPrintBreakpoints(nn)}stopPrinting(dt){dt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(dt,nn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!nn.matches){const yn=this.breakpoints.findByQuery(nn.mediaQuery);if(yn){const Xn=this.formerActivations&&this.formerActivations.includes(yn),rn=!this.formerActivations&&dt.activatedBreakpoints.includes(yn);(Xn||rn)&&(this.deactivations.push(yn),this.deactivations.sort(G))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(dt=>this._document.defaultView.removeEventListener("beforeprint",dt)),this.afterPrintEventListeners.forEach(dt=>this._document.defaultView.removeEventListener("afterprint",dt)))}}return Cn.\u0275fac=function(dt){return new(dt||Cn)(n.KVO(ke),n.KVO(T),n.KVO(l.qQ))},Cn.\u0275prov=n.jDH({token:Cn,factory:Cn.\u0275fac,providedIn:"root"}),Cn})();class $e{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(fn){return fn.push(Me),fn.sort(G),fn.forEach(dt=>this.addBreakpoint(dt)),this.printBreakpoints}addBreakpoint(fn){fn&&void 0===this.printBreakpoints.find(nn=>nn.mediaQuery===fn.mediaQuery)&&(this.printBreakpoints=function Oe(Cn){return Cn?.mediaQuery.startsWith(De)??!1}(fn)?[fn,...this.printBreakpoints]:[...this.printBreakpoints,fn])}clear(){this.printBreakpoints=[]}}let gt=(()=>{class Cn{constructor(dt,nn,yn){this.matchMedia=dt,this.breakpoints=nn,this.hook=yn,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new P.B7,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(dt){this._activatedBreakpoints=[...dt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(dt){this._useFallbacks=dt}onMediaChange(dt){const nn=this.findByQuery(dt.mediaQuery);if(nn){dt=x(dt,nn);const yn=this.activatedBreakpoints.indexOf(nn);dt.matches&&-1===yn?(this._activatedBreakpoints.push(nn),this._activatedBreakpoints.sort(G),this.updateStyles()):!dt.matches&&-1!==yn&&(this._activatedBreakpoints.splice(yn,1),this._activatedBreakpoints.sort(G),this.updateStyles())}}init(dt,nn,yn,Xn,rn=[]){qt(this.updateMap,dt,nn,yn),qt(this.clearMap,dt,nn,Xn),this.buildElementKeyMap(dt,nn),this.watchExtraTriggers(dt,nn,rn)}getValue(dt,nn,yn){const Xn=this.elementMap.get(dt);if(Xn){const rn=void 0!==yn?Xn.get(yn):this.getActivatedValues(Xn,nn);if(rn)return rn.get(nn)}}hasValue(dt,nn){const yn=this.elementMap.get(dt);if(yn){const Xn=this.getActivatedValues(yn,nn);if(Xn)return void 0!==Xn.get(nn)||!1}return!1}setValue(dt,nn,yn,Xn){let rn=this.elementMap.get(dt);if(rn){const ri=(rn.get(Xn)??new Map).set(nn,yn);rn.set(Xn,ri),this.elementMap.set(dt,rn)}else rn=(new Map).set(Xn,(new Map).set(nn,yn)),this.elementMap.set(dt,rn);const ai=this.getValue(dt,nn);void 0!==ai&&this.updateElement(dt,nn,ai)}trackValue(dt,nn){return this.subject.asObservable().pipe((0,O.p)(yn=>yn.element===dt&&yn.key===nn))}updateStyles(){this.elementMap.forEach((dt,nn)=>{if(1===dt.size&&""===dt.keys().next().value)return;const yn=new Set(this.elementKeyMap.get(nn));let Xn=this.getActivatedValues(dt);Xn&&Xn.forEach((rn,ai)=>{this.updateElement(nn,ai,rn),yn.delete(ai)}),yn.forEach(rn=>{if(Xn=this.getActivatedValues(dt,rn),Xn){const ai=Xn.get(rn);this.updateElement(nn,rn,ai)}else this.clearElement(nn,rn)})})}clearElement(dt,nn){const yn=this.clearMap.get(dt);if(yn){const Xn=yn.get(nn);Xn&&(Xn(),this.subject.next({element:dt,key:nn,value:""}))}}updateElement(dt,nn,yn){const Xn=this.updateMap.get(dt);if(Xn){const rn=Xn.get(nn);rn&&(rn(yn),this.subject.next({element:dt,key:nn,value:yn}))}}releaseElement(dt){const nn=this.watcherMap.get(dt);nn&&(nn.forEach(Xn=>Xn.unsubscribe()),this.watcherMap.delete(dt));const yn=this.elementMap.get(dt);yn&&(yn.forEach((Xn,rn)=>yn.delete(rn)),this.elementMap.delete(dt))}triggerUpdate(dt,nn){const yn=this.elementMap.get(dt);if(yn){const Xn=this.getActivatedValues(yn,nn);Xn&&(nn?this.updateElement(dt,nn,Xn.get(nn)):Xn.forEach((rn,ai)=>this.updateElement(dt,ai,rn)))}}buildElementKeyMap(dt,nn){let yn=this.elementKeyMap.get(dt);yn||(yn=new Set,this.elementKeyMap.set(dt,yn)),yn.add(nn)}watchExtraTriggers(dt,nn,yn){if(yn&&yn.length){let Xn=this.watcherMap.get(dt);if(Xn||(Xn=new Map,this.watcherMap.set(dt,Xn)),!Xn.get(nn)){const ai=(0,_.h)(...yn).subscribe(()=>{const ri=this.getValue(dt,nn);this.updateElement(dt,nn,ri)});Xn.set(nn,ai)}}}findByQuery(dt){return this.breakpoints.findByQuery(dt)}getActivatedValues(dt,nn){for(let Xn=0;Xn<this.activatedBreakpoints.length;Xn++){const ai=dt.get(this.activatedBreakpoints[Xn].alias);if(ai&&(void 0===nn||ai.has(nn)&&null!=ai.get(nn)))return ai}if(!this._useFallbacks)return;const yn=dt.get("");return void 0===nn||yn&&yn.has(nn)?yn:void 0}observeActivations(){const dt=this.breakpoints.items.map(nn=>nn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(dt)).pipe((0,S.M)(this.hook.interceptEvents(this)),(0,O.p)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Cn.\u0275fac=function(dt){return new(dt||Cn)(n.KVO(K),n.KVO(ke),n.KVO(je))},Cn.\u0275prov=n.jDH({token:Cn,factory:Cn.\u0275fac,providedIn:"root"}),Cn})();function qt(Cn,fn,dt,nn){if(void 0!==nn){const yn=Cn.get(fn)??new Map;yn.set(dt,nn),Cn.set(fn,yn)}}let ye=(()=>{class Cn{constructor(dt,nn,yn,Xn){this.elementRef=dt,this.styleBuilder=nn,this.styler=yn,this.marshal=Xn,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new P.B7,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(dt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,dt,this.marshal.activatedAlias)}ngOnChanges(dt){Object.keys(dt).forEach(nn=>{if(-1!==this.inputs.indexOf(nn)){const yn=nn.split(".").slice(1).join(".");this.setValue(dt[nn].currentValue,yn)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(dt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),dt)}addStyles(dt,nn){const yn=this.styleBuilder,Xn=yn.shouldCache;let rn=this.styleCache.get(dt);(!rn||!Xn)&&(rn=yn.buildStyles(dt,nn),Xn&&this.styleCache.set(dt,rn)),this.mru={...rn},this.applyStyleToElement(rn),yn.sideEffect(dt,rn,nn)}clearStyles(){Object.keys(this.mru).forEach(dt=>{this.mru[dt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(dt,nn=!1){if(dt){const[yn,Xn]=this.styler.getFlowDirection(dt);if(!Xn&&nn){const rn=(0,v.uG)(yn);this.styler.applyStyleToElements(rn,[dt])}return yn.trim()}return"row"}hasWrap(dt){return this.styler.hasWrap(dt)}applyStyleToElement(dt,nn,yn=this.nativeElement){this.styler.applyStyleToElement(yn,dt,nn)}setValue(dt,nn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,dt,nn)}updateWithValue(dt){this.currentValue!==dt&&(this.addStyles(dt),this.currentValue=dt)}}return Cn.\u0275fac=function(dt){return new(dt||Cn)(n.rXU(n.aKT),n.rXU(V),n.rXU(D),n.rXU(gt))},Cn.\u0275dir=n.FsC({type:Cn,features:[n.OA$]}),Cn})();function st(Cn,fn="1",dt="1"){let nn=[fn,dt,Cn],yn=Cn.indexOf("calc");if(yn>0){nn[2]=mn(Cn.substring(yn).trim());let Xn=Cn.substr(0,yn).trim().split(" ");2==Xn.length&&(nn[0]=Xn[0],nn[1]=Xn[1])}else if(0==yn)nn[2]=mn(Cn.trim());else{let Xn=Cn.split(" ");nn=3===Xn.length?Xn:[fn,dt,Cn]}return nn}function mn(Cn){return Cn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}EventTarget;const Bn="x";function En(Cn,fn){if(void 0===fn)return Cn;const dt=nn=>{const yn=+nn.slice(0,-Bn.length);return Cn.endsWith(Bn)&&!isNaN(yn)?`${yn*fn.value}${fn.unit}`:Cn};return Cn.includes(" ")?Cn.split(" ").map(dt).join(" "):dt(Cn)}},28139:(Ue,W,d)=>{"use strict";d.d(W,{Cc:()=>re,D9:()=>A,PW:()=>c,eI:()=>z});var n=d(58527),l=d(2833),p=d(61142),m=d(6364),_=d(4208),P=d(74150);let a=(()=>{class ge extends l.DJ{constructor(xe,ue,N,se,ce,Z,de){super(xe,null,ue,N),this.ngClassInstance=de,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new p.YU(se,ce,xe,Z)),this.init(),this.setValue("","")}set klass(xe){this.ngClassInstance.klass=xe,this.setValue(xe,"")}updateWithValue(xe){this.ngClassInstance.ngClass=xe,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return ge.\u0275fac=function(xe){return new(xe||ge)(n.rXU(n.aKT),n.rXU(l.ZH),n.rXU(l.qH),n.rXU(n._q3),n.rXU(n.MKu),n.rXU(n.sFG),n.rXU(p.YU,10))},ge.\u0275dir=n.FsC({type:ge,inputs:{klass:[n.Mj6.None,"class","klass"]},features:[n.Vt3]}),ge})();const h=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let c=(()=>{class ge extends a{constructor(){super(...arguments),this.inputs=h}}return ge.\u0275fac=(()=>{let oe;return function(ue){return(oe||(oe=n.xGo(ge)))(ue||ge)}})(),ge.\u0275dir=n.FsC({type:ge,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[n.Vt3]}),ge})(),T=(()=>{class ge extends l.r3{buildStyles(xe,ue){return{display:"true"===xe?ue.display||(ue.isServer?"initial":""):"none"}}}return ge.\u0275fac=(()=>{let oe;return function(ue){return(oe||(oe=n.xGo(ge)))(ue||ge)}})(),ge.\u0275prov=n.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})(),A=(()=>{class ge extends l.DJ{constructor(xe,ue,N,se,ce,Z,de){super(xe,ue,N,se),this.layoutConfig=ce,this.platformId=Z,this.serverModuleLoaded=de,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const xe=Array.from(this.nativeElement.children);for(let N=0;N<xe.length;N++)if(this.marshal.hasValue(xe[N],"flex")){this.hasFlexChild=!0;break}L.has(this.nativeElement)?this.display=L.get(this.nativeElement):(this.display=this.getDisplayStyle(),L.set(this.nativeElement,this.display)),this.init();const ue=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===ue||""===ue?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(xe){Object.keys(xe).forEach(ue=>{if(-1!==this.inputs.indexOf(ue)){const N=ue.split("."),se=N.slice(1).join("."),ce=xe[ue].currentValue;let Z=""===ce||0!==ce&&(0,m.he)(ce);"fxHide"===N[0]&&(Z=!Z),this.setValue(Z,se)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(xe=>{this.marshal.trackValue(this.nativeElement,xe).pipe((0,_.Q)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(xe=!0){if(""===xe)return;const ue=(0,p.Vy)(this.platformId);this.addStyles(xe?"true":"false",{display:this.display,isServer:ue}),ue&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return ge.\u0275fac=function(xe){return new(xe||ge)(n.rXU(n.aKT),n.rXU(T),n.rXU(l.ZH),n.rXU(l.qH),n.rXU(l.EA),n.rXU(n.Agw),n.rXU(l.Ce))},ge.\u0275dir=n.FsC({type:ge,features:[n.Vt3,n.OA$]}),ge})();const L=new WeakMap;class F{constructor(oe,xe,ue=!0){this.key=oe,this.value=xe,this.key=ue?oe.replace(/['"]/g,"").trim():oe.trim(),this.value=ue?xe.replace(/['"]/g,"").trim():xe.trim(),this.value=this.value.replace(/;/,"")}}function I(ge){let oe=typeof ge;return"object"===oe?ge.constructor===Array?"array":ge.constructor===Set?"set":"object":oe}function Y(ge){const[oe,...xe]=ge.split(":");return new F(oe,xe.join(":"))}function K(ge,oe){return oe.key&&(ge[oe.key]=oe.value),ge}let $=(()=>{class ge extends l.DJ{constructor(xe,ue,N,se,ce,Z,de,ae,pe){super(xe,null,ue,N),this.sanitizer=se,this.ngStyleInstance=de,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new p.B3(xe,ce,Z)),this.init();const _e=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(_e),this.isServer=ae&&(0,p.Vy)(pe)}updateWithValue(xe){const ue=this.buildStyleMap(xe);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...ue},this.isServer&&this.applyStyleToElement(ue),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(xe){const ue=N=>this.sanitizer.sanitize(n.WPN.STYLE,N)??"";if(xe)switch(I(xe)){case"string":return te(function k(ge,oe=";"){return String(ge).trim().split(oe).map(xe=>xe.trim()).filter(xe=>""!==xe)}(xe),ue);case"array":return te(xe,ue);default:return function G(ge,oe){let xe=[];return"set"===I(ge)?ge.forEach(ue=>xe.push(ue)):Object.keys(ge).forEach(ue=>{xe.push(`${ue}:${ge[ue]}`)}),function R(ge,oe){return ge.map(Y).filter(ue=>!!ue).map(ue=>(oe&&(ue.value=oe(ue.value)),ue)).reduce(K,{})}(xe,oe)}(xe,ue)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return ge.\u0275fac=function(xe){return new(xe||ge)(n.rXU(n.aKT),n.rXU(l.ZH),n.rXU(l.qH),n.rXU(P.up),n.rXU(n.MKu),n.rXU(n.sFG),n.rXU(p.B3,10),n.rXU(l.Ce),n.rXU(n.Agw))},ge.\u0275dir=n.FsC({type:ge,features:[n.Vt3]}),ge})();const ee=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let z=(()=>{class ge extends ${constructor(){super(...arguments),this.inputs=ee}}return ge.\u0275fac=(()=>{let oe;return function(ue){return(oe||(oe=n.xGo(ge)))(ue||ge)}})(),ge.\u0275dir=n.FsC({type:ge,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[n.Vt3]}),ge})();function te(ge,oe){return ge.map(Y).filter(ue=>!!ue).map(ue=>(oe&&(ue.value=oe(ue.value)),ue)).reduce(K,{})}let re=(()=>{class ge{}return ge.\u0275fac=function(xe){return new(xe||ge)},ge.\u0275mod=n.$C({type:ge}),ge.\u0275inj=n.G2t({imports:[l.Ui]}),ge})()},3457:(Ue,W,d)=>{"use strict";d.d(W,{BO:()=>A,DJ:()=>r,G2:()=>et,R$:()=>ye,UI:()=>J,sA:()=>st,w2:()=>rn});var n=d(58527),l=d(51394),p=d(2833),m=d(73004),_=d(80583),P=d(4208);let v=(()=>{class ai extends p.r3{buildStyles(Ne,{display:zt}){const vt=(0,m.uG)(Ne);return{...vt,display:"none"===zt?zt:vt.display}}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275prov=n.jDH({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const O=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let y=(()=>{class ai extends p.DJ{constructor(Ne,zt,vt,Ct,it){super(Ne,vt,zt,Ct),this._config=it,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Ne){const vt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=i.get(vt)??new Map,i.set(vt,this.styleCache),this.currentValue!==Ne&&(this.addStyles(Ne,{display:vt}),this.currentValue=Ne)}}return ai.\u0275fac=function(Ne){return new(Ne||ai)(n.rXU(n.aKT),n.rXU(p.ZH),n.rXU(v),n.rXU(p.qH),n.rXU(p.EA))},ai.\u0275dir=n.FsC({type:ai,features:[n.Vt3]}),ai})(),r=(()=>{class ai extends y{constructor(){super(...arguments),this.inputs=O}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275dir=n.FsC({type:ai,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[n.Vt3]}),ai})();const i=new Map,a={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let h=(()=>{class ai extends p.r3{constructor(Ne,zt){super(),this._styler=Ne,this._config=zt}buildStyles(Ne,zt){return Ne.endsWith(F)?(Ne=Ne.slice(0,Ne.indexOf(F)),function k(ai,ri){const[Ne,zt]=ai.split(" "),Ct=wn=>`-${wn}`;let it="0px",Ut=Ct(zt??Ne),jn="0px";return"rtl"===ri?jn=Ct(Ne):it=Ct(Ne),{margin:`0px ${it} ${Ut} ${jn}`}}(Ne=(0,p.cL)(Ne,this._config.multiplier),zt.directionality)):{}}sideEffect(Ne,zt,vt){const Ct=vt.items;if(Ne.endsWith(F)){Ne=Ne.slice(0,Ne.indexOf(F));const it=function I(ai,ri){const[Ne,zt]=ai.split(" ");let Ct="0px",Ut="0px";return"rtl"===ri?Ut=Ne:Ct=Ne,{padding:`0px ${Ct} ${zt??Ne} ${Ut}`}}(Ne=(0,p.cL)(Ne,this._config.multiplier),vt.directionality);this._styler.applyStyleToElements(it,vt.items)}else{Ne=(0,p.cL)(Ne,this._config.multiplier),Ne=this.addFallbackUnit(Ne);const it=Ct.pop(),Ut=function G(ai,ri){const Ne=R(ri.directionality,ri.layout),zt={...a};return zt[Ne]=ai,zt}(Ne,vt);this._styler.applyStyleToElements(Ut,Ct),this._styler.applyStyleToElements(a,[it])}}addFallbackUnit(Ne){return isNaN(+Ne)?Ne:`${Ne}${this._config.defaultUnit}`}}return ai.\u0275fac=function(Ne){return new(Ne||ai)(n.KVO(p.ZH),n.KVO(p.EA))},ai.\u0275prov=n.jDH({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const g=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let T=(()=>{class ai extends p.DJ{constructor(Ne,zt,vt,Ct,it,Ut){super(Ne,it,Ct,Ut),this.zone=zt,this.directionality=vt,this.styleUtils=Ct,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new _.B7;const jn=[this.directionality.change,this.observerSubject.asObservable()];this.init(jn),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,P.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Ne=this.nativeElement.children,zt=[];for(let vt=Ne.length;vt--;)zt[vt]=Ne[vt];return zt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Ne){const vt=Ne.value.split(" ");this.layout=vt[0],m.Uo.find(Ct=>Ct===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Ne){const zt=this.childrenNodes.filter(vt=>1===vt.nodeType&&this.willDisplay(vt)).sort((vt,Ct)=>{const it=+this.styler.lookupStyle(vt,"order"),Ut=+this.styler.lookupStyle(Ct,"order");return isNaN(it)||isNaN(Ut)||it===Ut?0:it>Ut?1:-1});if(zt.length>0){const vt=this.directionality.value,Ct=this.layout;"row"===Ct&&"rtl"===vt?this.styleCache=L:"row"===Ct&&"rtl"!==vt?this.styleCache=V:"column"===Ct&&"rtl"===vt?this.styleCache=x:"column"===Ct&&"rtl"!==vt&&(this.styleCache=D),this.addStyles(Ne,{directionality:vt,items:zt,layout:Ct})}}clearStyles(){const Ne=Object.keys(this.mru).length>0,zt=Ne?"padding":R(this.directionality.value,this.layout);Ne&&super.clearStyles(),this.styleUtils.applyStyleToElements({[zt]:""},this.childrenNodes)}willDisplay(Ne){const zt=this.marshal.getValue(Ne,"show-hide");return!0===zt||void 0===zt&&"none"!==this.styleUtils.lookupStyle(Ne,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Ne=>{Ne.some(vt=>vt.addedNodes&&vt.addedNodes.length>0||vt.removedNodes&&vt.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return ai.\u0275fac=function(Ne){return new(Ne||ai)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(l.dS),n.rXU(p.ZH),n.rXU(h),n.rXU(p.qH))},ai.\u0275dir=n.FsC({type:ai,features:[n.Vt3]}),ai})(),A=(()=>{class ai extends T{constructor(){super(...arguments),this.inputs=g}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275dir=n.FsC({type:ai,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[n.Vt3]}),ai})();const L=new Map,x=new Map,V=new Map,D=new Map,F=" grid";function R(ai,ri){switch(ri){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===ai?"margin-left":"margin-right";case"row-reverse":return"rtl"===ai?"margin-right":"margin-left"}}let Y=(()=>{class ai extends p.r3{constructor(Ne){super(),this.layoutConfig=Ne}buildStyles(Ne,zt){let[vt,Ct,...it]=Ne.split(" "),Ut=it.join(" ");const jn=zt.direction.indexOf("column")>-1?"column":"row",wn=(0,m.Vc)(jn)?"max-width":"max-height",nt=(0,m.Vc)(jn)?"min-width":"min-height",on=String(Ut).indexOf("calc")>-1,mt=on||"auto"===Ut,_n=String(Ut).indexOf("%")>-1&&!on,wt=String(Ut).indexOf("px")>-1||String(Ut).indexOf("rem")>-1||String(Ut).indexOf("em")>-1||String(Ut).indexOf("vw")>-1||String(Ut).indexOf("vh")>-1;let Un=on||wt;vt="0"==vt?0:vt,Ct="0"==Ct?0:Ct;const Oi=!vt&&!Ct;let At={};const Hn={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Ut||""){case"":Ut="row"===jn?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":vt=0,Ut="auto";break;case"grow":Ut="100%";break;case"noshrink":Ct=0,Ut="auto";break;case"auto":break;case"none":vt=0,Ct=0,Ut="auto";break;default:!Un&&!_n&&!isNaN(Ut)&&(Ut+="%"),"0%"===Ut&&(Un=!0),"0px"===Ut&&(Ut="0%"),At=(0,m.C5)(Hn,on?{"flex-grow":vt,"flex-shrink":Ct,"flex-basis":Un?Ut:"100%"}:{flex:`${vt} ${Ct} ${Un?Ut:"100%"}`})}return At.flex||At["flex-grow"]||(At=(0,m.C5)(Hn,on?{"flex-grow":vt,"flex-shrink":Ct,"flex-basis":Ut}:{flex:`${vt} ${Ct} ${Ut}`})),"0%"!==Ut&&"0px"!==Ut&&"0.000000001px"!==Ut&&"auto"!==Ut&&(At[nt]=Oi||Un&&vt?Ut:null,At[wn]=Oi||!mt&&Ct?Ut:null),At[nt]||At[wn]?zt.hasWrap&&(At[on?"flex-basis":"flex"]=At[wn]?on?At[wn]:`${vt} ${Ct} ${At[wn]}`:on?At[nt]:`${vt} ${Ct} ${At[nt]}`):At=(0,m.C5)(Hn,on?{"flex-grow":vt,"flex-shrink":Ct,"flex-basis":Ut}:{flex:`${vt} ${Ct} ${Ut}`}),(0,m.C5)(At,{"box-sizing":"border-box"})}}return ai.\u0275fac=function(Ne){return new(Ne||ai)(n.KVO(p.EA))},ai.\u0275prov=n.jDH({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const K=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let ee=(()=>{class ai extends p.DJ{constructor(Ne,zt,vt,Ct,it){super(Ne,Ct,zt,it),this.layoutConfig=vt,this.marshal=it,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Ne){this.flexShrink=Ne||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Ne){this.flexGrow=Ne||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,P.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,P.Q)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Ne){const vt=Ne.value.split(" ");this.direction=vt[0],this.wrap=void 0!==vt[1]&&"wrap"===vt[1],this.triggerUpdate()}updateWithValue(Ne){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const vt=this.direction,Ct=vt.startsWith("row"),it=this.wrap;Ct&&it?this.styleCache=X:Ct&&!it?this.styleCache=z:!Ct&&it?this.styleCache=re:!Ct&&!it&&(this.styleCache=te);const Ut=String(Ne).replace(";",""),jn=(0,p.hN)(Ut,this.flexGrow,this.flexShrink);this.addStyles(jn.join(" "),{direction:vt,hasWrap:it})}triggerReflow(){const Ne=this.activatedValue;if(void 0!==Ne){const zt=(0,p.hN)(Ne+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,zt.join(" "))}}}return ai.\u0275fac=function(Ne){return new(Ne||ai)(n.rXU(n.aKT),n.rXU(p.ZH),n.rXU(p.EA),n.rXU(Y),n.rXU(p.qH))},ai.\u0275dir=n.FsC({type:ai,inputs:{shrink:[n.Mj6.None,"fxShrink","shrink"],grow:[n.Mj6.None,"fxGrow","grow"]},features:[n.Vt3]}),ai})(),J=(()=>{class ai extends ee{constructor(){super(...arguments),this.inputs=K}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275dir=n.FsC({type:ai,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[n.Vt3]}),ai})();const z=new Map,te=new Map,X=new Map,re=new Map;let je=(()=>{class ai extends p.r3{buildStyles(Ne){const zt={};switch(Ne=Ne||"stretch"){case"start":zt["align-self"]="flex-start";break;case"end":zt["align-self"]="flex-end";break;default:zt["align-self"]=Ne}return zt}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275prov=n.jDH({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const $e=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let gt=(()=>{class ai extends p.DJ{constructor(Ne,zt,vt,Ct){super(Ne,vt,zt,Ct),this.DIRECTIVE_KEY="flex-align",this.styleCache=qt,this.init()}}return ai.\u0275fac=function(Ne){return new(Ne||ai)(n.rXU(n.aKT),n.rXU(p.ZH),n.rXU(je),n.rXU(p.qH))},ai.\u0275dir=n.FsC({type:ai,features:[n.Vt3]}),ai})();const qt=new Map;let ye=(()=>{class ai extends gt{constructor(){super(...arguments),this.inputs=$e}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275dir=n.FsC({type:ai,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[n.Vt3]}),ai})();const Re={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let Ze=(()=>{class ai extends p.r3{buildStyles(Ne){return Re}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275prov=n.jDH({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})(),et=(()=>{class ai extends p.DJ{constructor(Ne,zt,vt,Ct){super(Ne,vt,zt,Ct),this.styleCache=xt,this.addStyles("")}}return ai.\u0275fac=function(Ne){return new(Ne||ai)(n.rXU(n.aKT),n.rXU(p.ZH),n.rXU(Ze),n.rXU(p.qH))},ai.\u0275dir=n.FsC({type:ai,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[n.Vt3]}),ai})();const xt=new Map;let un=(()=>{class ai extends p.r3{buildStyles(Ne,zt){const vt={},[Ct,it]=Ne.split(" ");switch(Ct){case"center":vt["justify-content"]="center";break;case"space-around":vt["justify-content"]="space-around";break;case"space-between":vt["justify-content"]="space-between";break;case"space-evenly":vt["justify-content"]="space-evenly";break;case"end":case"flex-end":vt["justify-content"]="flex-end";break;default:vt["justify-content"]="flex-start"}switch(it){case"start":case"flex-start":vt["align-items"]=vt["align-content"]="flex-start";break;case"center":vt["align-items"]=vt["align-content"]="center";break;case"end":case"flex-end":vt["align-items"]=vt["align-content"]="flex-end";break;case"space-between":vt["align-content"]="space-between",vt["align-items"]="stretch";break;case"space-around":vt["align-content"]="space-around",vt["align-items"]="stretch";break;case"baseline":vt["align-content"]="stretch",vt["align-items"]="baseline";break;default:vt["align-items"]=vt["align-content"]="stretch"}return(0,m.C5)(vt,{display:zt.inline?"inline-flex":"flex","flex-direction":zt.layout,"box-sizing":"border-box","max-width":"stretch"===it?(0,m.Vc)(zt.layout)?null:"100%":null,"max-height":"stretch"===it&&(0,m.Vc)(zt.layout)?"100%":null})}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275prov=n.jDH({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const ct=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let pn=(()=>{class ai extends p.DJ{constructor(Ne,zt,vt,Ct){super(Ne,vt,zt,Ct),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,P.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Ne){const zt=this.layout||"row",vt=this.inline;"row"===zt&&vt?this.styleCache=fn:"row"!==zt||vt?"row-reverse"===zt&&vt?this.styleCache=nn:"row-reverse"!==zt||vt?"column"===zt&&vt?this.styleCache=dt:"column"!==zt||vt?"column-reverse"===zt&&vt?this.styleCache=yn:"column-reverse"===zt&&!vt&&(this.styleCache=Cn):this.styleCache=Bn:this.styleCache=En:this.styleCache=mn,this.addStyles(Ne,{layout:zt,inline:vt})}onLayoutChange(Ne){const zt=Ne.value.split(" ");this.layout=zt[0],this.inline=Ne.value.includes("inline"),m.Uo.find(vt=>vt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ai.\u0275fac=function(Ne){return new(Ne||ai)(n.rXU(n.aKT),n.rXU(p.ZH),n.rXU(un),n.rXU(p.qH))},ai.\u0275dir=n.FsC({type:ai,features:[n.Vt3]}),ai})(),st=(()=>{class ai extends pn{constructor(){super(...arguments),this.inputs=ct}}return ai.\u0275fac=(()=>{let ri;return function(zt){return(ri||(ri=n.xGo(ai)))(zt||ai)}})(),ai.\u0275dir=n.FsC({type:ai,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[n.Vt3]}),ai})();const mn=new Map,Bn=new Map,En=new Map,Cn=new Map,fn=new Map,dt=new Map,nn=new Map,yn=new Map;let rn=(()=>{class ai{}return ai.\u0275fac=function(Ne){return new(Ne||ai)},ai.\u0275mod=n.$C({type:ai}),ai.\u0275inj=n.G2t({imports:[p.Ui,l.jI]}),ai})()},51006:(Ue,W,d)=>{"use strict";d.d(W,{YF:()=>vi});var n=d(58527),l=d(2833),p=d(28139),m=d(3457);d(6364);let Qt=(()=>{class Zt{}return Zt.\u0275fac=function(Dn){return new(Dn||Zt)},Zt.\u0275mod=n.$C({type:Zt}),Zt.\u0275inj=n.G2t({imports:[l.Ui]}),Zt})();var di=d(61142);let vi=(()=>{class Zt{constructor(Dn,zn){(0,di.Vy)(zn)&&!Dn&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Dn,zn=[]){return{ngModule:Zt,providers:Dn.serverLoaded?[{provide:l.EA,useValue:{...l.PV,...Dn}},{provide:l.SL,useValue:zn,multi:!0},{provide:l.Ce,useValue:!0}]:[{provide:l.EA,useValue:{...l.PV,...Dn}},{provide:l.SL,useValue:zn,multi:!0}]}}}return Zt.\u0275fac=function(Dn){return new(Dn||Zt)(n.KVO(l.Ce),n.KVO(n.Agw))},Zt.\u0275mod=n.$C({type:Zt}),Zt.\u0275inj=n.G2t({imports:[m.w2,p.Cc,Qt,m.w2,p.Cc,Qt]}),Zt})()},56106:(Ue,W,d)=>{"use strict";d.d(W,{BC:()=>$e,YN:()=>cl,cV:()=>Fr,cz:()=>T,j4:()=>Tn,k0:()=>x,kq:()=>O,me:()=>h,vO:()=>ke,vS:()=>_i,xq:()=>yi});var n=d(58527),l=d(61142),p=d(19392),m=d(93181),_=d(83915);let P=(()=>{var Ht;class Tt{constructor(jt,ti){this._renderer=jt,this._elementRef=ti,this.onChange=br=>{},this.onTouched=()=>{}}setProperty(jt,ti){this._renderer.setProperty(this._elementRef.nativeElement,jt,ti)}registerOnTouched(jt){this.onTouched=jt}registerOnChange(jt){this.onChange=jt}setDisabledState(jt){this.setProperty("disabled",jt)}}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)(n.rXU(n.sFG),n.rXU(n.aKT))},Ht.\u0275dir=n.FsC({type:Ht}),Tt})(),v=(()=>{var Ht;class Tt extends P{}return(Ht=Tt).\u0275fac=(()=>{let Ln;return function(ti){return(Ln||(Ln=n.xGo(Ht)))(ti||Ht)}})(),Ht.\u0275dir=n.FsC({type:Ht,features:[n.Vt3]}),Tt})();const O=new n.nKC(""),r={provide:O,useExisting:(0,n.Rfq)(()=>h),multi:!0},a=new n.nKC("");let h=(()=>{var Ht;class Tt extends P{constructor(jt,ti,br){super(jt,ti),this._compositionMode=br,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function i(){const Ht=(0,l.QT)()?(0,l.QT)().getUserAgent():"";return/android (\d+)/.test(Ht.toLowerCase())}())}writeValue(jt){this.setProperty("value",jt??"")}_handleInput(jt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(jt)}_compositionStart(){this._composing=!0}_compositionEnd(jt){this._composing=!1,this._compositionMode&&this.onChange(jt)}}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)(n.rXU(n.sFG),n.rXU(n.aKT),n.rXU(a,8))},Ht.\u0275dir=n.FsC({type:Ht,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(jt,ti){1&jt&&n.bIt("input",function(wo){return ti._handleInput(wo.target.value)})("blur",function(){return ti.onTouched()})("compositionstart",function(){return ti._compositionStart()})("compositionend",function(wo){return ti._compositionEnd(wo.target.value)})},features:[n.Jv_([r]),n.Vt3]}),Tt})();function g(Ht){return null==Ht||("string"==typeof Ht||Array.isArray(Ht))&&0===Ht.length}function c(Ht){return null!=Ht&&"number"==typeof Ht.length}const T=new n.nKC(""),A=new n.nKC(""),L=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class x{static min(Tt){return function V(Ht){return Tt=>{if(g(Tt.value)||g(Ht))return null;const Ln=parseFloat(Tt.value);return!isNaN(Ln)&&Ln<Ht?{min:{min:Ht,actual:Tt.value}}:null}}(Tt)}static max(Tt){return function D(Ht){return Tt=>{if(g(Tt.value)||g(Ht))return null;const Ln=parseFloat(Tt.value);return!isNaN(Ln)&&Ln>Ht?{max:{max:Ht,actual:Tt.value}}:null}}(Tt)}static required(Tt){return F(Tt)}static requiredTrue(Tt){return I(Tt)}static email(Tt){return function k(Ht){return g(Ht.value)||L.test(Ht.value)?null:{email:!0}}(Tt)}static minLength(Tt){return function R(Ht){return Tt=>g(Tt.value)||!c(Tt.value)?null:Tt.value.length<Ht?{minlength:{requiredLength:Ht,actualLength:Tt.value.length}}:null}(Tt)}static maxLength(Tt){return function G(Ht){return Tt=>c(Tt.value)&&Tt.value.length>Ht?{maxlength:{requiredLength:Ht,actualLength:Tt.value.length}}:null}(Tt)}static pattern(Tt){return function Y(Ht){if(!Ht)return K;let Tt,Ln;return"string"==typeof Ht?(Ln="","^"!==Ht.charAt(0)&&(Ln+="^"),Ln+=Ht,"$"!==Ht.charAt(Ht.length-1)&&(Ln+="$"),Tt=new RegExp(Ln)):(Ln=Ht.toString(),Tt=Ht),jt=>{if(g(jt.value))return null;const ti=jt.value;return Tt.test(ti)?null:{pattern:{requiredPattern:Ln,actualValue:ti}}}}(Tt)}static nullValidator(Tt){return null}static compose(Tt){return re(Tt)}static composeAsync(Tt){return oe(Tt)}}function F(Ht){return g(Ht.value)?{required:!0}:null}function I(Ht){return!0===Ht.value?null:{required:!0}}function K(Ht){return null}function $(Ht){return null!=Ht}function ee(Ht){return(0,n.jNT)(Ht)?(0,p.H)(Ht):Ht}function J(Ht){let Tt={};return Ht.forEach(Ln=>{Tt=null!=Ln?{...Tt,...Ln}:Tt}),0===Object.keys(Tt).length?null:Tt}function z(Ht,Tt){return Tt.map(Ln=>Ln(Ht))}function X(Ht){return Ht.map(Tt=>function te(Ht){return!Ht.validate}(Tt)?Tt:Ln=>Tt.validate(Ln))}function re(Ht){if(!Ht)return null;const Tt=Ht.filter($);return 0==Tt.length?null:function(Ln){return J(z(Ln,Tt))}}function ge(Ht){return null!=Ht?re(X(Ht)):null}function oe(Ht){if(!Ht)return null;const Tt=Ht.filter($);return 0==Tt.length?null:function(Ln){const jt=z(Ln,Tt).map(ee);return(0,m.p)(jt).pipe((0,_.T)(J))}}function xe(Ht){return null!=Ht?oe(X(Ht)):null}function ue(Ht,Tt){return null===Ht?[Tt]:Array.isArray(Ht)?[...Ht,Tt]:[Ht,Tt]}function N(Ht){return Ht._rawValidators}function se(Ht){return Ht._rawAsyncValidators}function ce(Ht){return Ht?Array.isArray(Ht)?Ht:[Ht]:[]}function Z(Ht,Tt){return Array.isArray(Ht)?Ht.includes(Tt):Ht===Tt}function de(Ht,Tt){const Ln=ce(Tt);return ce(Ht).forEach(ti=>{Z(Ln,ti)||Ln.push(ti)}),Ln}function ae(Ht,Tt){return ce(Tt).filter(Ln=>!Z(Ht,Ln))}class pe{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Tt){this._rawValidators=Tt||[],this._composedValidatorFn=ge(this._rawValidators)}_setAsyncValidators(Tt){this._rawAsyncValidators=Tt||[],this._composedAsyncValidatorFn=xe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Tt){this._onDestroyCallbacks.push(Tt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Tt=>Tt()),this._onDestroyCallbacks=[]}reset(Tt=void 0){this.control&&this.control.reset(Tt)}hasError(Tt,Ln){return!!this.control&&this.control.hasError(Tt,Ln)}getError(Tt,Ln){return this.control?this.control.getError(Tt,Ln):null}}class _e extends pe{get formDirective(){return null}get path(){return null}}class ke extends pe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class De{constructor(Tt){this._cd=Tt}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let $e=(()=>{var Ht;class Tt extends De{constructor(jt){super(jt)}}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)(n.rXU(ke,2))},Ht.\u0275dir=n.FsC({type:Ht,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(jt,ti){2&jt&&n.AVh("ng-untouched",ti.isUntouched)("ng-touched",ti.isTouched)("ng-pristine",ti.isPristine)("ng-dirty",ti.isDirty)("ng-valid",ti.isValid)("ng-invalid",ti.isInvalid)("ng-pending",ti.isPending)},features:[n.Vt3]}),Tt})();const dt="VALID",nn="INVALID",yn="PENDING",Xn="DISABLED";function rn(Ht){return(zt(Ht)?Ht.validators:Ht)||null}function ri(Ht,Tt){return(zt(Tt)?Tt.asyncValidators:Ht)||null}function zt(Ht){return null!=Ht&&!Array.isArray(Ht)&&"object"==typeof Ht}class it{constructor(Tt,Ln){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Tt),this._assignAsyncValidators(Ln)}get validator(){return this._composedValidatorFn}set validator(Tt){this._rawValidators=this._composedValidatorFn=Tt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Tt){this._rawAsyncValidators=this._composedAsyncValidatorFn=Tt}get parent(){return this._parent}get valid(){return this.status===dt}get invalid(){return this.status===nn}get pending(){return this.status==yn}get disabled(){return this.status===Xn}get enabled(){return this.status!==Xn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Tt){this._assignValidators(Tt)}setAsyncValidators(Tt){this._assignAsyncValidators(Tt)}addValidators(Tt){this.setValidators(de(Tt,this._rawValidators))}addAsyncValidators(Tt){this.setAsyncValidators(de(Tt,this._rawAsyncValidators))}removeValidators(Tt){this.setValidators(ae(Tt,this._rawValidators))}removeAsyncValidators(Tt){this.setAsyncValidators(ae(Tt,this._rawAsyncValidators))}hasValidator(Tt){return Z(this._rawValidators,Tt)}hasAsyncValidator(Tt){return Z(this._rawAsyncValidators,Tt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Tt={}){this.touched=!0,this._parent&&!Tt.onlySelf&&this._parent.markAsTouched(Tt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Tt=>Tt.markAllAsTouched())}markAsUntouched(Tt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ln=>{Ln.markAsUntouched({onlySelf:!0})}),this._parent&&!Tt.onlySelf&&this._parent._updateTouched(Tt)}markAsDirty(Tt={}){this.pristine=!1,this._parent&&!Tt.onlySelf&&this._parent.markAsDirty(Tt)}markAsPristine(Tt={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ln=>{Ln.markAsPristine({onlySelf:!0})}),this._parent&&!Tt.onlySelf&&this._parent._updatePristine(Tt)}markAsPending(Tt={}){this.status=yn,!1!==Tt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Tt.onlySelf&&this._parent.markAsPending(Tt)}disable(Tt={}){const Ln=this._parentMarkedDirty(Tt.onlySelf);this.status=Xn,this.errors=null,this._forEachChild(jt=>{jt.disable({...Tt,onlySelf:!0})}),this._updateValue(),!1!==Tt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Tt,skipPristineCheck:Ln}),this._onDisabledChange.forEach(jt=>jt(!0))}enable(Tt={}){const Ln=this._parentMarkedDirty(Tt.onlySelf);this.status=dt,this._forEachChild(jt=>{jt.enable({...Tt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Tt.emitEvent}),this._updateAncestors({...Tt,skipPristineCheck:Ln}),this._onDisabledChange.forEach(jt=>jt(!1))}_updateAncestors(Tt){this._parent&&!Tt.onlySelf&&(this._parent.updateValueAndValidity(Tt),Tt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Tt){this._parent=Tt}getRawValue(){return this.value}updateValueAndValidity(Tt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===dt||this.status===yn)&&this._runAsyncValidator(Tt.emitEvent)),!1!==Tt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Tt.onlySelf&&this._parent.updateValueAndValidity(Tt)}_updateTreeValidity(Tt={emitEvent:!0}){this._forEachChild(Ln=>Ln._updateTreeValidity(Tt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Tt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xn:dt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Tt){if(this.asyncValidator){this.status=yn,this._hasOwnPendingAsyncValidator=!0;const Ln=ee(this.asyncValidator(this));this._asyncValidationSubscription=Ln.subscribe(jt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(jt,{emitEvent:Tt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Tt,Ln={}){this.errors=Tt,this._updateControlsErrors(!1!==Ln.emitEvent)}get(Tt){let Ln=Tt;return null==Ln||(Array.isArray(Ln)||(Ln=Ln.split(".")),0===Ln.length)?null:Ln.reduce((jt,ti)=>jt&&jt._find(ti),this)}getError(Tt,Ln){const jt=Ln?this.get(Ln):this;return jt&&jt.errors?jt.errors[Tt]:null}hasError(Tt,Ln){return!!this.getError(Tt,Ln)}get root(){let Tt=this;for(;Tt._parent;)Tt=Tt._parent;return Tt}_updateControlsErrors(Tt){this.status=this._calculateStatus(),Tt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Tt)}_initObservables(){this.valueChanges=new n.bkB,this.statusChanges=new n.bkB}_calculateStatus(){return this._allControlsDisabled()?Xn:this.errors?nn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yn)?yn:this._anyControlsHaveStatus(nn)?nn:dt}_anyControlsHaveStatus(Tt){return this._anyControls(Ln=>Ln.status===Tt)}_anyControlsDirty(){return this._anyControls(Tt=>Tt.dirty)}_anyControlsTouched(){return this._anyControls(Tt=>Tt.touched)}_updatePristine(Tt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Tt.onlySelf&&this._parent._updatePristine(Tt)}_updateTouched(Tt={}){this.touched=this._anyControlsTouched(),this._parent&&!Tt.onlySelf&&this._parent._updateTouched(Tt)}_registerOnCollectionChange(Tt){this._onCollectionChange=Tt}_setUpdateStrategy(Tt){zt(Tt)&&null!=Tt.updateOn&&(this._updateOn=Tt.updateOn)}_parentMarkedDirty(Tt){return!Tt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Tt){return null}_assignValidators(Tt){this._rawValidators=Array.isArray(Tt)?Tt.slice():Tt,this._composedValidatorFn=function ai(Ht){return Array.isArray(Ht)?ge(Ht):Ht||null}(this._rawValidators)}_assignAsyncValidators(Tt){this._rawAsyncValidators=Array.isArray(Tt)?Tt.slice():Tt,this._composedAsyncValidatorFn=function Ne(Ht){return Array.isArray(Ht)?xe(Ht):Ht||null}(this._rawAsyncValidators)}}class Ut extends it{constructor(Tt,Ln,jt){super(rn(Ln),ri(jt,Ln)),this.controls=Tt,this._initObservables(),this._setUpdateStrategy(Ln),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Tt,Ln){return this.controls[Tt]?this.controls[Tt]:(this.controls[Tt]=Ln,Ln.setParent(this),Ln._registerOnCollectionChange(this._onCollectionChange),Ln)}addControl(Tt,Ln,jt={}){this.registerControl(Tt,Ln),this.updateValueAndValidity({emitEvent:jt.emitEvent}),this._onCollectionChange()}removeControl(Tt,Ln={}){this.controls[Tt]&&this.controls[Tt]._registerOnCollectionChange(()=>{}),delete this.controls[Tt],this.updateValueAndValidity({emitEvent:Ln.emitEvent}),this._onCollectionChange()}setControl(Tt,Ln,jt={}){this.controls[Tt]&&this.controls[Tt]._registerOnCollectionChange(()=>{}),delete this.controls[Tt],Ln&&this.registerControl(Tt,Ln),this.updateValueAndValidity({emitEvent:jt.emitEvent}),this._onCollectionChange()}contains(Tt){return this.controls.hasOwnProperty(Tt)&&this.controls[Tt].enabled}setValue(Tt,Ln={}){(function Ct(Ht,Tt,Ln){Ht._forEachChild((jt,ti)=>{if(void 0===Ln[ti])throw new n.wOt(1002,"")})})(this,0,Tt),Object.keys(Tt).forEach(jt=>{(function vt(Ht,Tt,Ln){const jt=Ht.controls;if(!(Tt?Object.keys(jt):jt).length)throw new n.wOt(1e3,"");if(!jt[Ln])throw new n.wOt(1001,"")})(this,!0,jt),this.controls[jt].setValue(Tt[jt],{onlySelf:!0,emitEvent:Ln.emitEvent})}),this.updateValueAndValidity(Ln)}patchValue(Tt,Ln={}){null!=Tt&&(Object.keys(Tt).forEach(jt=>{const ti=this.controls[jt];ti&&ti.patchValue(Tt[jt],{onlySelf:!0,emitEvent:Ln.emitEvent})}),this.updateValueAndValidity(Ln))}reset(Tt={},Ln={}){this._forEachChild((jt,ti)=>{jt.reset(Tt?Tt[ti]:null,{onlySelf:!0,emitEvent:Ln.emitEvent})}),this._updatePristine(Ln),this._updateTouched(Ln),this.updateValueAndValidity(Ln)}getRawValue(){return this._reduceChildren({},(Tt,Ln,jt)=>(Tt[jt]=Ln.getRawValue(),Tt))}_syncPendingControls(){let Tt=this._reduceChildren(!1,(Ln,jt)=>!!jt._syncPendingControls()||Ln);return Tt&&this.updateValueAndValidity({onlySelf:!0}),Tt}_forEachChild(Tt){Object.keys(this.controls).forEach(Ln=>{const jt=this.controls[Ln];jt&&Tt(jt,Ln)})}_setUpControls(){this._forEachChild(Tt=>{Tt.setParent(this),Tt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Tt){for(const[Ln,jt]of Object.entries(this.controls))if(this.contains(Ln)&&Tt(jt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ln,jt,ti)=>((jt.enabled||this.disabled)&&(Ln[ti]=jt.value),Ln))}_reduceChildren(Tt,Ln){let jt=Tt;return this._forEachChild((ti,br)=>{jt=Ln(jt,ti,br)}),jt}_allControlsDisabled(){for(const Tt of Object.keys(this.controls))if(this.controls[Tt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Tt){return this.controls.hasOwnProperty(Tt)?this.controls[Tt]:null}}const _n=new n.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>wt}),wt="always";function Oi(Ht,Tt,Ln=wt){Zi(Ht,Tt),Tt.valueAccessor.writeValue(Ht.value),(Ht.disabled||"always"===Ln)&&Tt.valueAccessor.setDisabledState?.(Ht.disabled),function Kr(Ht,Tt){Tt.valueAccessor.registerOnChange(Ln=>{Ht._pendingValue=Ln,Ht._pendingChange=!0,Ht._pendingDirty=!0,"change"===Ht.updateOn&&di(Ht,Tt)})}(Ht,Tt),function ji(Ht,Tt){const Ln=(jt,ti)=>{Tt.valueAccessor.writeValue(jt),ti&&Tt.viewToModelUpdate(jt)};Ht.registerOnChange(Ln),Tt._registerOnDestroy(()=>{Ht._unregisterOnChange(Ln)})}(Ht,Tt),function Qt(Ht,Tt){Tt.valueAccessor.registerOnTouched(()=>{Ht._pendingTouched=!0,"blur"===Ht.updateOn&&Ht._pendingChange&&di(Ht,Tt),"submit"!==Ht.updateOn&&Ht.markAsTouched()})}(Ht,Tt),function pi(Ht,Tt){if(Tt.valueAccessor.setDisabledState){const Ln=jt=>{Tt.valueAccessor.setDisabledState(jt)};Ht.registerOnDisabledChange(Ln),Tt._registerOnDestroy(()=>{Ht._unregisterOnDisabledChange(Ln)})}}(Ht,Tt)}function At(Ht,Tt,Ln=!0){const jt=()=>{};Tt.valueAccessor&&(Tt.valueAccessor.registerOnChange(jt),Tt.valueAccessor.registerOnTouched(jt)),Lr(Ht,Tt),Ht&&(Tt._invokeOnDestroyCallbacks(),Ht._registerOnCollectionChange(()=>{}))}function Hn(Ht,Tt){Ht.forEach(Ln=>{Ln.registerOnValidatorChange&&Ln.registerOnValidatorChange(Tt)})}function Zi(Ht,Tt){const Ln=N(Ht);null!==Tt.validator?Ht.setValidators(ue(Ln,Tt.validator)):"function"==typeof Ln&&Ht.setValidators([Ln]);const jt=se(Ht);null!==Tt.asyncValidator?Ht.setAsyncValidators(ue(jt,Tt.asyncValidator)):"function"==typeof jt&&Ht.setAsyncValidators([jt]);const ti=()=>Ht.updateValueAndValidity();Hn(Tt._rawValidators,ti),Hn(Tt._rawAsyncValidators,ti)}function Lr(Ht,Tt){let Ln=!1;if(null!==Ht){if(null!==Tt.validator){const ti=N(Ht);if(Array.isArray(ti)&&ti.length>0){const br=ti.filter(wo=>wo!==Tt.validator);br.length!==ti.length&&(Ln=!0,Ht.setValidators(br))}}if(null!==Tt.asyncValidator){const ti=se(Ht);if(Array.isArray(ti)&&ti.length>0){const br=ti.filter(wo=>wo!==Tt.asyncValidator);br.length!==ti.length&&(Ln=!0,Ht.setAsyncValidators(br))}}}const jt=()=>{};return Hn(Tt._rawValidators,jt),Hn(Tt._rawAsyncValidators,jt),Ln}function di(Ht,Tt){Ht._pendingDirty&&Ht.markAsDirty(),Ht.setValue(Ht._pendingValue,{emitModelToViewChange:!1}),Tt.viewToModelUpdate(Ht._pendingValue),Ht._pendingChange=!1}function vi(Ht,Tt){Zi(Ht,Tt)}function $n(Ht,Tt){Ht._syncPendingControls(),Tt.forEach(Ln=>{const jt=Ln.control;"submit"===jt.updateOn&&jt._pendingChange&&(Ln.viewToModelUpdate(jt._pendingValue),jt._pendingChange=!1)})}const Jt={provide:_e,useExisting:(0,n.Rfq)(()=>Fr)},ki=Promise.resolve();let Fr=(()=>{var Ht;class Tt extends _e{constructor(jt,ti,br){super(),this.callSetDisabledState=br,this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.bkB,this.form=new Ut({},ge(jt),xe(ti))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(jt){ki.then(()=>{const ti=this._findContainer(jt.path);jt.control=ti.registerControl(jt.name,jt.control),Oi(jt.control,jt,this.callSetDisabledState),jt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(jt)})}getControl(jt){return this.form.get(jt.path)}removeControl(jt){ki.then(()=>{const ti=this._findContainer(jt.path);ti&&ti.removeControl(jt.name),this._directives.delete(jt)})}addFormGroup(jt){ki.then(()=>{const ti=this._findContainer(jt.path),br=new Ut({});vi(br,jt),ti.registerControl(jt.name,br),br.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(jt){ki.then(()=>{const ti=this._findContainer(jt.path);ti&&ti.removeControl(jt.name)})}getFormGroup(jt){return this.form.get(jt.path)}updateModel(jt,ti){ki.then(()=>{this.form.get(jt.path).setValue(ti)})}setValue(jt){this.control.setValue(jt)}onSubmit(jt){return this.submitted=!0,$n(this.form,this._directives),this.ngSubmit.emit(jt),"dialog"===jt?.target?.method}onReset(){this.resetForm()}resetForm(jt=void 0){this.form.reset(jt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(jt){return jt.pop(),jt.length?this.form.get(jt):this.form}}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)(n.rXU(T,10),n.rXU(A,10),n.rXU(_n,8))},Ht.\u0275dir=n.FsC({type:Ht,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(jt,ti){1&jt&&n.bIt("submit",function(wo){return ti.onSubmit(wo)})("reset",function(){return ti.onReset()})},inputs:{options:[n.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Jv_([Jt]),n.Vt3]}),Tt})();function xo(Ht,Tt){const Ln=Ht.indexOf(Tt);Ln>-1&&Ht.splice(Ln,1)}function qn(Ht){return"object"==typeof Ht&&null!==Ht&&2===Object.keys(Ht).length&&"value"in Ht&&"disabled"in Ht}const Sr=class extends it{constructor(Tt=null,Ln,jt){super(rn(Ln),ri(jt,Ln)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Tt),this._setUpdateStrategy(Ln),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zt(Ln)&&(Ln.nonNullable||Ln.initialValueIsDefault)&&(this.defaultValue=qn(Tt)?Tt.value:Tt)}setValue(Tt,Ln={}){this.value=this._pendingValue=Tt,this._onChange.length&&!1!==Ln.emitModelToViewChange&&this._onChange.forEach(jt=>jt(this.value,!1!==Ln.emitViewToModelChange)),this.updateValueAndValidity(Ln)}patchValue(Tt,Ln={}){this.setValue(Tt,Ln)}reset(Tt=this.defaultValue,Ln={}){this._applyFormState(Tt),this.markAsPristine(Ln),this.markAsUntouched(Ln),this.setValue(this.value,Ln),this._pendingChange=!1}_updateValue(){}_anyControls(Tt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Tt){this._onChange.push(Tt)}_unregisterOnChange(Tt){xo(this._onChange,Tt)}registerOnDisabledChange(Tt){this._onDisabledChange.push(Tt)}_unregisterOnDisabledChange(Tt){xo(this._onDisabledChange,Tt)}_forEachChild(Tt){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Tt){qn(Tt)?(this.value=this._pendingValue=Tt.value,Tt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Tt}},si={provide:ke,useExisting:(0,n.Rfq)(()=>_i)},Rn=Promise.resolve();let _i=(()=>{var Ht;class Tt extends ke{constructor(jt,ti,br,wo,zs,sa){super(),this._changeDetectorRef=zs,this.callSetDisabledState=sa,this.control=new Sr,this._registered=!1,this.name="",this.update=new n.bkB,this._parent=jt,this._setValidators(ti),this._setAsyncValidators(br),this.valueAccessor=function Pt(Ht,Tt){if(!Tt)return null;let Ln,jt,ti;return Array.isArray(Tt),Tt.forEach(br=>{br.constructor===h?Ln=br:function mi(Ht){return Object.getPrototypeOf(Ht.constructor)===v}(br)?jt=br:ti=br}),ti||jt||Ln||null}(0,wo)}ngOnChanges(jt){if(this._checkForErrors(),!this._registered||"name"in jt){if(this._registered&&(this._checkName(),this.formDirective)){const ti=jt.name.previousValue;this.formDirective.removeControl({name:ti,path:this._getPath(ti)})}this._setUpControl()}"isDisabled"in jt&&this._updateDisabled(jt),function xn(Ht,Tt){if(!Ht.hasOwnProperty("model"))return!1;const Ln=Ht.model;return!!Ln.isFirstChange()||!Object.is(Tt,Ln.currentValue)}(jt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(jt){this.viewModel=jt,this.update.emit(jt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Oi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(jt){Rn.then(()=>{this.control.setValue(jt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(jt){const ti=jt.isDisabled.currentValue,br=0!==ti&&(0,n.L39)(ti);Rn.then(()=>{br&&!this.control.disabled?this.control.disable():!br&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(jt){return this._parent?function Un(Ht,Tt){return[...Tt.path,Ht]}(jt,this._parent):[jt]}}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)(n.rXU(_e,9),n.rXU(T,10),n.rXU(A,10),n.rXU(O,10),n.rXU(n.gRc,8),n.rXU(_n,8))},Ht.\u0275dir=n.FsC({type:Ht,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[n.Mj6.None,"disabled","isDisabled"],model:[n.Mj6.None,"ngModel","model"],options:[n.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.Jv_([si]),n.Vt3,n.OA$]}),Tt})();const dr={provide:_e,useExisting:(0,n.Rfq)(()=>Tn)};let Tn=(()=>{var Ht;class Tt extends _e{constructor(jt,ti,br){super(),this.callSetDisabledState=br,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.bkB,this._setValidators(jt),this._setAsyncValidators(ti)}ngOnChanges(jt){this._checkFormPresent(),jt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lr(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(jt){const ti=this.form.get(jt.path);return Oi(ti,jt,this.callSetDisabledState),ti.updateValueAndValidity({emitEvent:!1}),this.directives.push(jt),ti}getControl(jt){return this.form.get(jt.path)}removeControl(jt){At(jt.control||null,jt,!1),function Ii(Ht,Tt){const Ln=Ht.indexOf(Tt);Ln>-1&&Ht.splice(Ln,1)}(this.directives,jt)}addFormGroup(jt){this._setUpFormContainer(jt)}removeFormGroup(jt){this._cleanUpFormContainer(jt)}getFormGroup(jt){return this.form.get(jt.path)}addFormArray(jt){this._setUpFormContainer(jt)}removeFormArray(jt){this._cleanUpFormContainer(jt)}getFormArray(jt){return this.form.get(jt.path)}updateModel(jt,ti){this.form.get(jt.path).setValue(ti)}onSubmit(jt){return this.submitted=!0,$n(this.form,this.directives),this.ngSubmit.emit(jt),"dialog"===jt?.target?.method}onReset(){this.resetForm()}resetForm(jt=void 0){this.form.reset(jt),this.submitted=!1}_updateDomValue(){this.directives.forEach(jt=>{const ti=jt.control,br=this.form.get(jt.path);ti!==br&&(At(ti||null,jt),(Ht=>Ht instanceof Sr)(br)&&(Oi(br,jt,this.callSetDisabledState),jt.control=br))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(jt){const ti=this.form.get(jt.path);vi(ti,jt),ti.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(jt){if(this.form){const ti=this.form.get(jt.path);ti&&function Zt(Ht,Tt){return Lr(Ht,Tt)}(ti,jt)&&ti.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zi(this.form,this),this._oldForm&&Lr(this._oldForm,this)}_checkFormPresent(){}}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)(n.rXU(T,10),n.rXU(A,10),n.rXU(_n,8))},Ht.\u0275dir=n.FsC({type:Ht,selectors:[["","formGroup",""]],hostBindings:function(jt,ti){1&jt&&n.bIt("submit",function(wo){return ti.onSubmit(wo)})("reset",function(){return ti.onReset()})},inputs:{form:[n.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Jv_([dr]),n.Vt3,n.OA$]}),Tt})(),To=(()=>{var Ht;class Tt{constructor(){this._validator=K}ngOnChanges(jt){if(this.inputName in jt){const ti=this.normalizeInput(jt[this.inputName].currentValue);this._enabled=this.enabled(ti),this._validator=this._enabled?this.createValidator(ti):K,this._onChange&&this._onChange()}}validate(jt){return this._validator(jt)}registerOnValidatorChange(jt){this._onChange=jt}enabled(jt){return null!=jt}}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)},Ht.\u0275dir=n.FsC({type:Ht,features:[n.OA$]}),Tt})();const ln={provide:T,useExisting:(0,n.Rfq)(()=>Qi),multi:!0},Pi={provide:T,useExisting:(0,n.Rfq)(()=>yi),multi:!0};let Qi=(()=>{var Ht;class Tt extends To{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.L39,this.createValidator=jt=>F}enabled(jt){return jt}}return(Ht=Tt).\u0275fac=(()=>{let Ln;return function(ti){return(Ln||(Ln=n.xGo(Ht)))(ti||Ht)}})(),Ht.\u0275dir=n.FsC({type:Ht,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(jt,ti){2&jt&&n.BMQ("required",ti._enabled?"":null)},inputs:{required:"required"},features:[n.Jv_([ln]),n.Vt3]}),Tt})(),yi=(()=>{var Ht;class Tt extends Qi{constructor(){super(...arguments),this.createValidator=jt=>I}}return(Ht=Tt).\u0275fac=(()=>{let Ln;return function(ti){return(Ln||(Ln=n.xGo(Ht)))(ti||Ht)}})(),Ht.\u0275dir=n.FsC({type:Ht,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(jt,ti){2&jt&&n.BMQ("required",ti._enabled?"":null)},features:[n.Jv_([Pi]),n.Vt3]}),Tt})(),Bi=(()=>{var Ht;class Tt{}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)},Ht.\u0275mod=n.$C({type:Ht}),Ht.\u0275inj=n.G2t({}),Tt})(),cl=(()=>{var Ht;class Tt{static withConfig(jt){return{ngModule:Tt,providers:[{provide:_n,useValue:jt.callSetDisabledState??wt}]}}}return(Ht=Tt).\u0275fac=function(jt){return new(jt||Ht)},Ht.\u0275mod=n.$C({type:Ht}),Ht.\u0275inj=n.G2t({imports:[Bi]}),Tt})()},16490:(Ue,W,d)=>{"use strict";d.d(W,{J3:()=>x,Ox:()=>D,VK:()=>F,eN:()=>V,vF:()=>A,yj:()=>L});var n=d(78064),l=d(76614),p=d(58527),m=d(51635),_=d(31308),P=d(76706),v=d(61904),O=d(61142),S=d(40262),y=d(25373),r=d(80583),i=d(16229),a=d(8619),h=d(65706);function g(I,k){}const c={bottomSheetState:(0,S.hZ)("state",[(0,S.wk)("void, hidden",(0,S.iF)({transform:"translateY(100%)"})),(0,S.wk)("visible",(0,S.iF)({transform:"translateY(0%)"})),(0,S.kY)("visible => void, visible => hidden",(0,S.Os)([(0,S.i0)(`${m.ed.COMPLEX} ${m.r5.ACCELERATION_CURVE}`),(0,S.P)("@*",(0,S.MA)(),{optional:!0})])),(0,S.kY)("void => visible",(0,S.Os)([(0,S.i0)(`${m.ed.EXITING} ${m.r5.DECELERATION_CURVE}`),(0,S.P)("@*",(0,S.MA)(),{optional:!0})]))])};let T=(()=>{var I;class k extends n.sU{constructor(G,Y,K,$,ee,J,z,te,X,re){super(G,Y,K,$,ee,J,z,re),this._changeDetectorRef=X,this._animationState="void",this._animationStateChanged=new p.bkB,this._breakpointSubscription=te.observe([P.Rp.Medium,P.Rp.Large,P.Rp.XLarge]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",te.isMatched(P.Rp.Medium)),this._toggleClass("mat-bottom-sheet-container-large",te.isMatched(P.Rp.Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",te.isMatched(P.Rp.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(G){"visible"===G.toState&&this._trapFocus(),this._animationStateChanged.emit(G)}_onAnimationStart(G){this._animationStateChanged.emit(G)}_captureInitialFocus(){}_toggleClass(G,Y){this._elementRef.nativeElement.classList.toggle(G,Y)}}return(I=k).\u0275fac=function(G){return new(G||I)(p.rXU(p.aKT),p.rXU(_.GX),p.rXU(O.qQ,8),p.rXU(n.Pe),p.rXU(_.Z7),p.rXU(p.SKi),p.rXU(v.yY),p.rXU(P.QP),p.rXU(p.gRc),p.rXU(_.FN))},I.\u0275cmp=p.VBU({type:I,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(G,Y){1&G&&p.Kam("@state.start",function($){return Y._onAnimationStart($)})("@state.done",function($){return Y._onAnimationDone($)}),2&G&&(p.zvX("@state",Y._animationState),p.BMQ("role",Y._config.role)("aria-modal",Y._config.ariaModal)("aria-label",Y._config.ariaLabel))},features:[p.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(G,Y){1&G&&p.DNE(0,g,0,0,"ng-template",0)},dependencies:[l.I3],styles:[".mat-bottom-sheet-container{--mat-bottom-sheet-container-shape:4px;box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color);color:var(--mat-bottom-sheet-container-text-color);font-family:var(--mat-bottom-sheet-container-text-font);font-size:var(--mat-bottom-sheet-container-text-size);line-height:var(--mat-bottom-sheet-container-text-line-height);font-weight:var(--mat-bottom-sheet-container-text-weight);letter-spacing:var(--mat-bottom-sheet-container-text-tracking)}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape);border-top-right-radius:var(--mat-bottom-sheet-container-shape)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[c.bottomSheetState]}}),k})(),A=(()=>{var I;class k{}return(I=k).\u0275fac=function(G){return new(G||I)},I.\u0275mod=p.$C({type:I}),I.\u0275inj=p.G2t({imports:[n.Ph,m.yE,l.jc,m.yE]}),k})();const L=new p.nKC("MatBottomSheetData");class x{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}}class V{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(k,R,G){this._ref=k,this._afterOpened=new r.B7,this.containerInstance=G,this.disableClose=R.disableClose,G._animationStateChanged.pipe((0,a.p)(Y=>"done"===Y.phaseName&&"visible"===Y.toState),(0,h.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),G._animationStateChanged.pipe((0,a.p)(Y=>"done"===Y.phaseName&&"hidden"===Y.toState),(0,h.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),k.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),(0,i.h)(this.backdropClick(),this.keydownEvents().pipe((0,a.p)(Y=>Y.keyCode===y._f))).subscribe(Y=>{!this.disableClose&&("keydown"!==Y.type||!(0,y.rp)(Y))&&(Y.preventDefault(),this.dismiss())})}dismiss(k){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe((0,a.p)(R=>"start"===R.phaseName),(0,h.s)(1)).subscribe(R=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},R.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=k,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}}const D=new p.nKC("mat-bottom-sheet-default-options");let F=(()=>{var I;class k{get _openedBottomSheetRef(){const G=this._parentBottomSheet;return G?G._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(G){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=G:this._bottomSheetRefAtThisLevel=G}constructor(G,Y,K,$){this._overlay=G,this._parentBottomSheet=K,this._defaultOptions=$,this._bottomSheetRefAtThisLevel=null,this._dialog=Y.get(n.lG)}open(G,Y){const K={...this._defaultOptions||new x,...Y};let $;return this._dialog.open(G,{...K,disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:T,scrollStrategy:K.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:$}),providers:(ee,J,z)=>($=new V(ee,K,z),[{provide:V,useValue:$},{provide:L,useValue:K.data}])}),$.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===$&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>$.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):$.containerInstance.enter(),this._openedBottomSheetRef=$,$}dismiss(G){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(G)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}}return(I=k).\u0275fac=function(G){return new(G||I)(p.KVO(v.hJ),p.KVO(p.zZn),p.KVO(I,12),p.KVO(D,8))},I.\u0275prov=p.jDH({token:I,factory:I.\u0275fac,providedIn:A}),k})()},51635:(Ue,W,d)=>{"use strict";d.d(W,{r5:()=>V,ed:()=>D,es:()=>ae,QC:()=>Cn,is:()=>st,yE:()=>k,vu:()=>pe,Np:()=>De,wT:()=>Xn,Sy:()=>ri,wg:()=>Gt,O5:()=>pn,r6:()=>un,pZ:()=>ct,jb:()=>rn,TL:()=>ai,Zc:()=>$,GG:()=>ee,Ob:()=>K,J8:()=>z,BF:()=>J,IK:()=>_e});var n=d(58527),l=d(31308),p=d(51394),_=d(61142),P=d(72653),v=d(6364),O=d(80583),S=d(34593),y=d(25373);const h=["text"],g=[[["mat-icon"]],"*"],c=["mat-icon","*"];function T(wn,nt){if(1&wn&&n.nrm(0,"mat-pseudo-checkbox",6),2&wn){const on=n.XpG();n.Y8G("disabled",on.disabled)("state",on.selected?"checked":"unchecked")}}function A(wn,nt){if(1&wn&&n.nrm(0,"mat-pseudo-checkbox",7),2&wn){const on=n.XpG();n.Y8G("disabled",on.disabled)}}function L(wn,nt){if(1&wn&&(n.j41(0,"span",8),n.EFF(1),n.k0s()),2&wn){const on=n.XpG();n.R7$(),n.SpI("(",on.group.label,")")}}let V=(()=>{var wn;class nt{}return(wn=nt).STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",wn.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",wn.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",wn.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",nt})(),D=(()=>{var wn;class nt{}return(wn=nt).COMPLEX="375ms",wn.ENTERING="225ms",wn.EXITING="195ms",nt})();const I=new n.nKC("mat-sanity-checks",{providedIn:"root",factory:function F(){return!0}});let k=(()=>{var wn;class nt{constructor(mt,_n,wt){this._sanityChecks=_n,this._document=wt,this._hasDoneGlobalChecks=!1,mt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(mt){return!(0,P.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[mt])}}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)(n.KVO(l.Q_),n.KVO(I,8),n.KVO(_.qQ))},wn.\u0275mod=n.$C({type:wn}),wn.\u0275inj=n.G2t({imports:[p.jI,p.jI]}),nt})();function K(wn){return class extends wn{get disabled(){return this._disabled}set disabled(nt){this._disabled=(0,v.he)(nt)}constructor(...nt){super(...nt),this._disabled=!1}}}function $(wn,nt){return class extends wn{get color(){return this._color}set color(on){const mt=on||this.defaultColor;mt!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),mt&&this._elementRef.nativeElement.classList.add(`mat-${mt}`),this._color=mt)}constructor(...on){super(...on),this.defaultColor=nt,this.color=nt}}}function ee(wn){return class extends wn{get disableRipple(){return this._disableRipple}set disableRipple(nt){this._disableRipple=(0,v.he)(nt)}constructor(...nt){super(...nt),this._disableRipple=!1}}}function J(wn,nt=0){return class extends wn{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(on){this._tabIndex=null!=on?(0,v.OE)(on):this.defaultTabIndex}constructor(...on){super(...on),this._tabIndex=nt,this.defaultTabIndex=nt}}}function z(wn){return class extends wn{updateErrorState(){const nt=this.errorState,wt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);wt!==nt&&(this.errorState=wt,this.stateChanges.next())}constructor(...nt){super(...nt),this.errorState=!1}}}let ae=(()=>{var wn;class nt{isErrorState(mt,_n){return!!(mt&&mt.invalid&&(mt.touched||_n&&_n.submitted))}}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)},wn.\u0275prov=n.jDH({token:wn,factory:wn.\u0275fac,providedIn:"root"}),nt})(),pe=(()=>{var wn;class nt{}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)},wn.\u0275dir=n.FsC({type:wn,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),nt})();function _e(wn,nt,on="mat"){wn.changes.pipe((0,S.Z)(wn)).subscribe(({length:mt})=>{ke(nt,`${on}-2-line`,!1),ke(nt,`${on}-3-line`,!1),ke(nt,`${on}-multi-line`,!1),2===mt||3===mt?ke(nt,`${on}-${mt}-line`,!0):mt>3&&ke(nt,`${on}-multi-line`,!0)})}function ke(wn,nt,on){wn.nativeElement.classList.toggle(nt,on)}let De=(()=>{var wn;class nt{}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)},wn.\u0275mod=n.$C({type:wn}),wn.\u0275inj=n.G2t({imports:[k,k]}),nt})();class Me{constructor(nt,on,mt,_n=!1){this._renderer=nt,this.element=on,this.config=mt,this._animationForciblyDisabledThroughCss=_n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const je=(0,P.BQ)({passive:!0,capture:!0});class $e{constructor(){this._events=new Map,this._delegateEventHandler=nt=>{const on=(0,P.Fb)(nt);on&&this._events.get(nt.type)?.forEach((mt,_n)=>{(_n===on||_n.contains(on))&&mt.forEach(wt=>wt.handleEvent(nt))})}}addHandler(nt,on,mt,_n){const wt=this._events.get(on);if(wt){const Un=wt.get(mt);Un?Un.add(_n):wt.set(mt,new Set([_n]))}else this._events.set(on,new Map([[mt,new Set([_n])]])),nt.runOutsideAngular(()=>{document.addEventListener(on,this._delegateEventHandler,je)})}removeHandler(nt,on,mt){const _n=this._events.get(nt);if(!_n)return;const wt=_n.get(on);wt&&(wt.delete(mt),0===wt.size&&_n.delete(on),0===_n.size&&(this._events.delete(nt),document.removeEventListener(nt,this._delegateEventHandler,je)))}}const Oe={enterDuration:225,exitDuration:150},qt=(0,P.BQ)({passive:!0,capture:!0}),ye=["mousedown","touchstart"],Re=["mouseup","mouseleave","touchend","touchcancel"];class Ze{constructor(nt,on,mt,_n){this._target=nt,this._ngZone=on,this._platform=_n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,_n.isBrowser&&(this._containerElement=(0,v.i8)(mt))}fadeInRipple(nt,on,mt={}){const _n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),wt={...Oe,...mt.animation};mt.centered&&(nt=_n.left+_n.width/2,on=_n.top+_n.height/2);const Un=mt.radius||function et(wn,nt,on){const mt=Math.max(Math.abs(wn-on.left),Math.abs(wn-on.right)),_n=Math.max(Math.abs(nt-on.top),Math.abs(nt-on.bottom));return Math.sqrt(mt*mt+_n*_n)}(nt,on,_n),Oi=nt-_n.left,At=on-_n.top,Hn=wt.enterDuration,pi=document.createElement("div");pi.classList.add("mat-ripple-element"),pi.style.left=Oi-Un+"px",pi.style.top=At-Un+"px",pi.style.height=2*Un+"px",pi.style.width=2*Un+"px",null!=mt.color&&(pi.style.backgroundColor=mt.color),pi.style.transitionDuration=`${Hn}ms`,this._containerElement.appendChild(pi);const Zi=window.getComputedStyle(pi),Kr=Zi.transitionDuration,Qt="none"===Zi.transitionProperty||"0s"===Kr||"0s, 0s"===Kr||0===_n.width&&0===_n.height,di=new Me(this,pi,mt,Qt);pi.style.transform="scale3d(1, 1, 1)",di.state=0,mt.persistent||(this._mostRecentTransientRipple=di);let ji=null;return!Qt&&(Hn||wt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const vi=()=>this._finishRippleTransition(di),Zt=()=>this._destroyRipple(di);pi.addEventListener("transitionend",vi),pi.addEventListener("transitioncancel",Zt),ji={onTransitionEnd:vi,onTransitionCancel:Zt}}),this._activeRipples.set(di,ji),(Qt||!Hn)&&this._finishRippleTransition(di),di}fadeOutRipple(nt){if(2===nt.state||3===nt.state)return;const on=nt.element,mt={...Oe,...nt.config.animation};on.style.transitionDuration=`${mt.exitDuration}ms`,on.style.opacity="0",nt.state=2,(nt._animationForciblyDisabledThroughCss||!mt.exitDuration)&&this._finishRippleTransition(nt)}fadeOutAll(){this._getActiveRipples().forEach(nt=>nt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(nt=>{nt.config.persistent||nt.fadeOut()})}setupTriggerEvents(nt){const on=(0,v.i8)(nt);!this._platform.isBrowser||!on||on===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=on,ye.forEach(mt=>{Ze._eventManager.addHandler(this._ngZone,mt,on,this)}))}handleEvent(nt){"mousedown"===nt.type?this._onMousedown(nt):"touchstart"===nt.type?this._onTouchStart(nt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Re.forEach(on=>{this._triggerElement.addEventListener(on,this,qt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(nt){0===nt.state?this._startFadeOutTransition(nt):2===nt.state&&this._destroyRipple(nt)}_startFadeOutTransition(nt){const on=nt===this._mostRecentTransientRipple,{persistent:mt}=nt.config;nt.state=1,!mt&&(!on||!this._isPointerDown)&&nt.fadeOut()}_destroyRipple(nt){const on=this._activeRipples.get(nt)??null;this._activeRipples.delete(nt),this._activeRipples.size||(this._containerRect=null),nt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),nt.state=3,null!==on&&(nt.element.removeEventListener("transitionend",on.onTransitionEnd),nt.element.removeEventListener("transitioncancel",on.onTransitionCancel)),nt.element.remove()}_onMousedown(nt){const on=(0,l._G)(nt),mt=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!on&&!mt&&(this._isPointerDown=!0,this.fadeInRipple(nt.clientX,nt.clientY,this._target.rippleConfig))}_onTouchStart(nt){if(!this._target.rippleDisabled&&!(0,l.w6)(nt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const on=nt.changedTouches;if(on)for(let mt=0;mt<on.length;mt++)this.fadeInRipple(on[mt].clientX,on[mt].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(nt=>{!nt.config.persistent&&(1===nt.state||nt.config.terminateOnPointerUp&&0===nt.state)&&nt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const nt=this._triggerElement;nt&&(ye.forEach(on=>Ze._eventManager.removeHandler(on,nt,this)),this._pointerUpEventsRegistered&&Re.forEach(on=>nt.removeEventListener(on,this,qt)))}}Ze._eventManager=new $e;const xt=new n.nKC("mat-ripple-global-options");let un=(()=>{var wn;class nt{get disabled(){return this._disabled}set disabled(mt){mt&&this.fadeOutAllNonPersistent(),this._disabled=mt,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(mt){this._trigger=mt,this._setupTriggerEventsIfEnabled()}constructor(mt,_n,wt,Un,Oi){this._elementRef=mt,this._animationMode=Oi,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Un||{},this._rippleRenderer=new Ze(this,_n,mt,wt)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(mt,_n=0,wt){return"number"==typeof mt?this._rippleRenderer.fadeInRipple(mt,_n,{...this.rippleConfig,...wt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...mt})}}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(P.OD),n.rXU(xt,8),n.rXU(n.bc$,8))},wn.\u0275dir=n.FsC({type:wn,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(mt,_n){2&mt&&n.AVh("mat-ripple-unbounded",_n.unbounded)},inputs:{color:[n.Mj6.None,"matRippleColor","color"],unbounded:[n.Mj6.None,"matRippleUnbounded","unbounded"],centered:[n.Mj6.None,"matRippleCentered","centered"],radius:[n.Mj6.None,"matRippleRadius","radius"],animation:[n.Mj6.None,"matRippleAnimation","animation"],disabled:[n.Mj6.None,"matRippleDisabled","disabled"],trigger:[n.Mj6.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]}),nt})(),ct=(()=>{var wn;class nt{}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)},wn.\u0275mod=n.$C({type:wn}),wn.\u0275inj=n.G2t({imports:[k,k]}),nt})(),Gt=(()=>{var wn;class nt{constructor(mt){this._animationMode=mt,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)(n.rXU(n.bc$,8))},wn.\u0275cmp=n.VBU({type:wn,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(mt,_n){2&mt&&n.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===_n.state)("mat-pseudo-checkbox-checked","checked"===_n.state)("mat-pseudo-checkbox-disabled",_n.disabled)("mat-pseudo-checkbox-minimal","minimal"===_n.appearance)("mat-pseudo-checkbox-full","full"===_n.appearance)("_mat-animation-noopable","NoopAnimations"===_n._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(mt,_n){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),nt})(),pn=(()=>{var wn;class nt{}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)},wn.\u0275mod=n.$C({type:wn}),wn.\u0275inj=n.G2t({imports:[k]}),nt})();const st=new n.nKC("MAT_OPTION_PARENT_COMPONENT"),Cn=new n.nKC("MatOptgroup");let dt=0;class nn{constructor(nt,on=!1){this.source=nt,this.isUserInput=on}}let yn=(()=>{var wn;class nt{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(mt){this._disabled=(0,v.he)(mt)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(mt,_n,wt,Un){this._element=mt,this._changeDetectorRef=_n,this._parent=wt,this.group=Un,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+dt++,this.onSelectionChange=new n.bkB,this._stateChanges=new O.B7}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(mt=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),mt&&this._emitSelectionChangeEvent())}deselect(mt=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),mt&&this._emitSelectionChangeEvent())}focus(mt,_n){const wt=this._getHostElement();"function"==typeof wt.focus&&wt.focus(_n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(mt){(mt.keyCode===y.Fm||mt.keyCode===y.t6)&&!(0,y.rp)(mt)&&(this._selectViaInteraction(),mt.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const mt=this.viewValue;mt!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=mt)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(mt=!1){this.onSelectionChange.emit(new nn(this,mt))}}return(wn=nt).\u0275fac=function(mt){n.QTQ()},wn.\u0275dir=n.FsC({type:wn,viewQuery:function(mt,_n){if(1&mt&&n.GBs(h,7),2&mt){let wt;n.mGM(wt=n.lsd())&&(_n._text=wt.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),nt})(),Xn=(()=>{var wn;class nt extends yn{constructor(mt,_n,wt,Un){super(mt,_n,wt,Un)}}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(st,8),n.rXU(Cn,8))},wn.\u0275cmp=n.VBU({type:wn,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(mt,_n){1&mt&&n.bIt("click",function(){return _n._selectViaInteraction()})("keydown",function(Un){return _n._handleKeydown(Un)}),2&mt&&(n.Mr5("id",_n.id),n.BMQ("aria-selected",_n.selected)("aria-disabled",_n.disabled.toString()),n.AVh("mdc-list-item--selected",_n.selected)("mat-mdc-option-multiple",_n.multiple)("mat-mdc-option-active",_n.active)("mdc-list-item--disabled",_n.disabled))},exportAs:["matOption"],features:[n.Vt3],ngContentSelectors:c,decls:8,vars:5,consts:[["text",""],["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(mt,_n){1&mt&&(n.NAR(g),n.DNE(0,T,1,2,"mat-pseudo-checkbox",1),n.SdG(1),n.j41(2,"span",2,0),n.SdG(4,1),n.k0s(),n.DNE(5,A,1,1,"mat-pseudo-checkbox",3)(6,L,2,1,"span",4),n.nrm(7,"div",5)),2&mt&&(n.Y8G("ngIf",_n.multiple),n.R7$(5),n.Y8G("ngIf",!_n.multiple&&_n.selected&&!_n.hideSingleSelectionIndicator),n.R7$(),n.Y8G("ngIf",_n.group&&_n.group._inert),n.R7$(),n.Y8G("matRippleTrigger",_n._getHostElement())("matRippleDisabled",_n.disabled||_n.disableRipple))},dependencies:[un,_.bT,Gt],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),nt})();function rn(wn,nt,on){if(on.length){let mt=nt.toArray(),_n=on.toArray(),wt=0;for(let Un=0;Un<wn+1;Un++)mt[Un].group&&mt[Un].group===_n[wt]&&wt++;return wt}return 0}function ai(wn,nt,on,mt){return wn<on?wn:wn+nt>on+mt?Math.max(0,wn-mt+nt):on}let ri=(()=>{var wn;class nt{}return(wn=nt).\u0275fac=function(mt){return new(mt||wn)},wn.\u0275mod=n.$C({type:wn}),wn.\u0275inj=n.G2t({imports:[ct,_.MD,k,pn]}),nt})()},26537:(Ue,W,d)=>{"use strict";d.d(W,{BI:()=>N,CP:()=>Y,E7:()=>ce,Vh:()=>$,Yi:()=>se,bZ:()=>oe,di:()=>ee,hM:()=>de,ru:()=>A,tx:()=>ue});var n=d(61904),l=d(61142),p=d(58527),m=d(31308),_=d(78064),P=d(6364),v=d(76614),O=d(80583),S=d(16229),y=d(63997),r=d(8619),i=d(65706),a=d(34593),h=d(25373),g=d(51635);function T(_e,ke){}d(40262);class A{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const L="mdc-dialog--open",x="mdc-dialog--opening",V="mdc-dialog--closing";let I=(()=>{var _e;class ke extends _.sU{constructor(Me,je,$e,Oe,gt,qt,ye,Re){super(Me,je,$e,Oe,gt,qt,ye,Re),this._animationStateChanged=new p.bkB}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(Me){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Me})}}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)(p.rXU(p.aKT),p.rXU(m.GX),p.rXU(l.qQ,8),p.rXU(A),p.rXU(m.Z7),p.rXU(p.SKi),p.rXU(n.yY),p.rXU(m.FN))},_e.\u0275cmp=p.VBU({type:_e,selectors:[["ng-component"]],features:[p.Vt3],decls:0,vars:0,template:function(Me,je){},encapsulation:2}),ke})();const k="--mat-dialog-transition-duration";function R(_e){return null==_e?null:"number"==typeof _e?_e:_e.endsWith("ms")?(0,P.OE)(_e.substring(0,_e.length-2)):_e.endsWith("s")?1e3*(0,P.OE)(_e.substring(0,_e.length-1)):"0"===_e?0:null}let G=(()=>{var _e;class ke extends I{constructor(Me,je,$e,Oe,gt,qt,ye,Re,Ze){super(Me,je,$e,Oe,gt,qt,ye,Ze),this._animationMode=Re,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?R(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?R(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(k,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(x,L)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(L),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(L),this._animationsEnabled?(this._hostElement.style.setProperty(k,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(V)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(x,V)}_waitForAnimationToComplete(Me,je){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(je,Me)}_requestAnimationFrame(Me){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):Me()})}}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)(p.rXU(p.aKT),p.rXU(m.GX),p.rXU(l.qQ,8),p.rXU(A),p.rXU(m.Z7),p.rXU(p.SKi),p.rXU(n.yY),p.rXU(p.bc$,8),p.rXU(m.FN))},_e.\u0275cmp=p.VBU({type:_e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Me,je){2&Me&&(p.Mr5("id",je._config.id),p.BMQ("aria-modal",je._config.ariaModal)("role",je._config.role)("aria-labelledby",je._config.ariaLabel?null:je._ariaLabelledByQueue[0])("aria-label",je._config.ariaLabel)("aria-describedby",je._config.ariaDescribedBy||null),p.AVh("_mat-animation-noopable",!je._animationsEnabled))},features:[p.Vt3],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Me,je){1&Me&&(p.j41(0,"div",0)(1,"div",1),p.DNE(2,T,0,0,"ng-template",2),p.k0s()())},dependencies:[v.I3],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),ke})();class Y{constructor(ke,De,Me){this._ref=ke,this._containerInstance=Me,this._afterOpened=new O.B7,this._beforeClosed=new O.B7,this._state=0,this.disableClose=De.disableClose,this.id=ke.id,Me._animationStateChanged.pipe((0,r.p)(je=>"opened"===je.state),(0,i.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Me._animationStateChanged.pipe((0,r.p)(je=>"closed"===je.state),(0,i.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,S.h)(this.backdropClick(),this.keydownEvents().pipe((0,r.p)(je=>je.keyCode===h._f&&!this.disableClose&&!(0,h.rp)(je)))).subscribe(je=>{this.disableClose||(je.preventDefault(),K(this,"keydown"===je.type?"keyboard":"mouse"))})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,r.p)(De=>"closing"===De.state),(0,i.s)(1)).subscribe(De=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),De.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(ke){let De=this._ref.config.positionStrategy;return ke&&(ke.left||ke.right)?ke.left?De.left(ke.left):De.right(ke.right):De.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?De.top(ke.top):De.bottom(ke.bottom):De.centerVertically(),this._ref.updatePosition(),this}updateSize(ke="",De=""){return this._ref.updateSize(ke,De),this}addPanelClass(ke){return this._ref.addPanelClass(ke),this}removePanelClass(ke){return this._ref.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function K(_e,ke,De){return _e._closeInteractionType=ke,_e.close(De)}const $=new p.nKC("MatMdcDialogData"),ee=new p.nKC("mat-mdc-dialog-default-options"),J=new p.nKC("mat-mdc-dialog-scroll-strategy"),te={provide:J,deps:[n.hJ],useFactory:function z(_e){return()=>_e.scrollStrategies.block()}};let re=0,ge=(()=>{var _e;class ke{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Me=this._parentDialog;return Me?Me._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(Me,je,$e,Oe,gt,qt,ye,Re,Ze,et){this._overlay=Me,this._defaultOptions=$e,this._parentDialog=Oe,this._dialogRefConstructor=ye,this._dialogContainerType=Re,this._dialogDataToken=Ze,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new O.B7,this._afterOpenedAtThisLevel=new O.B7,this._idPrefix="mat-dialog-",this.dialogConfigClass=A,this.afterAllClosed=(0,y.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,a.Z)(void 0))),this._scrollStrategy=qt,this._dialog=je.get(_.lG)}open(Me,je){let $e;(je={...this._defaultOptions||new A,...je}).id=je.id||`${this._idPrefix}${re++}`,je.scrollStrategy=je.scrollStrategy||this._scrollStrategy();const Oe=this._dialog.open(Me,{...je,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:je},{provide:_.Pe,useValue:je}]},templateContext:()=>({dialogRef:$e}),providers:(gt,qt,ye)=>($e=new this._dialogRefConstructor(gt,je,ye),$e.updatePosition(je?.position),[{provide:this._dialogContainerType,useValue:ye},{provide:this._dialogDataToken,useValue:qt.data},{provide:this._dialogRefConstructor,useValue:$e}])});return $e.componentRef=Oe.componentRef,$e.componentInstance=Oe.componentInstance,this.openDialogs.push($e),this.afterOpened.next($e),$e.afterClosed().subscribe(()=>{const gt=this.openDialogs.indexOf($e);gt>-1&&(this.openDialogs.splice(gt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),$e}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Me){return this.openDialogs.find(je=>je.id===Me)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(Me){let je=Me.length;for(;je--;)Me[je].close()}}return(_e=ke).\u0275fac=function(Me){p.QTQ()},_e.\u0275prov=p.jDH({token:_e,factory:_e.\u0275fac}),ke})(),oe=(()=>{var _e;class ke extends ge{constructor(Me,je,$e,Oe,gt,qt,ye,Re){super(Me,je,Oe,qt,ye,gt,Y,G,$,Re),this._idPrefix="mat-mdc-dialog-"}}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)(p.KVO(n.hJ),p.KVO(p.zZn),p.KVO(l.aZ,8),p.KVO(ee,8),p.KVO(J),p.KVO(_e,12),p.KVO(n.Sf),p.KVO(p.bc$,8))},_e.\u0275prov=p.jDH({token:_e,factory:_e.\u0275fac}),ke})(),xe=0,ue=(()=>{var _e;class ke{constructor(Me,je,$e){this.dialogRef=Me,this._elementRef=je,this._dialog=$e,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Z(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Me){const je=Me._matDialogClose||Me._matDialogCloseResult;je&&(this.dialogResult=je.currentValue)}_onButtonClick(Me){K(this.dialogRef,0===Me.screenX&&0===Me.screenY?"keyboard":"mouse",this.dialogResult)}}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)(p.rXU(Y,8),p.rXU(p.aKT),p.rXU(oe))},_e.\u0275dir=p.FsC({type:_e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Me,je){1&Me&&p.bIt("click",function(Oe){return je._onButtonClick(Oe)}),2&Me&&p.BMQ("aria-label",je.ariaLabel||null)("type",je.type)},inputs:{ariaLabel:[p.Mj6.None,"aria-label","ariaLabel"],type:"type",dialogResult:[p.Mj6.None,"mat-dialog-close","dialogResult"],_matDialogClose:[p.Mj6.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[p.OA$]}),ke})(),N=(()=>{var _e;class ke{constructor(Me,je,$e){this._dialogRef=Me,this._elementRef=je,this._dialog=$e,this.id="mat-mdc-dialog-title-"+xe++}ngOnInit(){this._dialogRef||(this._dialogRef=Z(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const Me=this._dialogRef?._containerInstance?._ariaLabelledByQueue;Me&&Promise.resolve().then(()=>{const je=Me.indexOf(this.id);je>-1&&Me.splice(je,1)})}}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)(p.rXU(Y,8),p.rXU(p.aKT),p.rXU(oe))},_e.\u0275dir=p.FsC({type:_e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(Me,je){2&Me&&p.Mr5("id",je.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ke})(),se=(()=>{var _e;class ke{}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)},_e.\u0275dir=p.FsC({type:_e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),ke})(),ce=(()=>{var _e;class ke{constructor(){this.align="start"}}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)},_e.\u0275dir=p.FsC({type:_e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Me,je){2&Me&&p.AVh("mat-mdc-dialog-actions-align-center","center"===je.align)("mat-mdc-dialog-actions-align-end","end"===je.align)},inputs:{align:"align"}}),ke})();function Z(_e,ke){let De=_e.nativeElement.parentElement;for(;De&&!De.classList.contains("mat-mdc-dialog-container");)De=De.parentElement;return De?ke.find(Me=>Me.id===De.id):null}let de=(()=>{var _e;class ke{}return(_e=ke).\u0275fac=function(Me){return new(Me||_e)},_e.\u0275mod=p.$C({type:_e}),_e.\u0275inj=p.G2t({providers:[oe,te],imports:[_.Ph,n.z_,v.jc,g.yE,g.yE]}),ke})()},44224:(Ue,W,d)=>{"use strict";d.d(W,{q:()=>m,w:()=>_});var n=d(58527),l=d(6364),p=d(51635);let m=(()=>{var P;class v{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(S){this._vertical=(0,l.he)(S)}get inset(){return this._inset}set inset(S){this._inset=(0,l.he)(S)}}return(P=v).\u0275fac=function(S){return new(S||P)},P.\u0275cmp=n.VBU({type:P,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(S,y){2&S&&(n.BMQ("aria-orientation",y.vertical?"vertical":"horizontal"),n.AVh("mat-divider-vertical",y.vertical)("mat-divider-horizontal",!y.vertical)("mat-divider-inset",y.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(S,y){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),v})(),_=(()=>{var P;class v{}return(P=v).\u0275fac=function(S){return new(S||P)},P.\u0275mod=n.$C({type:P}),P.\u0275inj=n.G2t({imports:[p.yE,p.yE]}),v})()},26945:(Ue,W,d)=>{"use strict";d.d(W,{BS:()=>de,MY:()=>ae,GK:()=>oe,Z2:()=>se});var n=d(58527),l=d(40567),p=d(6364),m=d(80583),_=d(10399);let P=0;const v=new n.nKC("CdkAccordion");let O=(()=>{var pe;class _e{constructor(){this._stateChanges=new m.B7,this._openCloseAllActions=new m.B7,this.id="cdk-accordion-"+P++,this._multi=!1}get multi(){return this._multi}set multi(De){this._multi=(0,p.he)(De)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(De){this._stateChanges.next(De)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return(pe=_e).\u0275fac=function(De){return new(De||pe)},pe.\u0275dir=n.FsC({type:pe,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n.Jv_([{provide:v,useExisting:pe}]),n.OA$]}),_e})(),S=0,y=(()=>{var pe;class _e{get expanded(){return this._expanded}set expanded(De){De=(0,p.he)(De),this._expanded!==De&&(this._expanded=De,this.expandedChange.emit(De),De?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(De){this._disabled=(0,p.he)(De)}constructor(De,Me,je){this.accordion=De,this._changeDetectorRef=Me,this._expansionDispatcher=je,this._openCloseAllSubscription=_.y.EMPTY,this.closed=new n.bkB,this.opened=new n.bkB,this.destroyed=new n.bkB,this.expandedChange=new n.bkB,this.id="cdk-accordion-child-"+S++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=je.listen(($e,Oe)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Oe&&this.id!==$e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(De=>{this.disabled||(this.expanded=De)})}}return(pe=_e).\u0275fac=function(De){return new(De||pe)(n.rXU(v,12),n.rXU(n.gRc),n.rXU(l.zP))},pe.\u0275dir=n.FsC({type:pe,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n.Jv_([{provide:v,useValue:void 0}])]}),_e})(),r=(()=>{var pe;class _e{}return(pe=_e).\u0275fac=function(De){return new(De||pe)},pe.\u0275mod=n.$C({type:pe}),pe.\u0275inj=n.G2t({}),_e})();var i=d(76614),a=d(61142),h=d(51635),g=d(31308),c=d(53461),T=d(34593),A=d(8619),L=d(65706),x=d(25373),V=d(12532),D=d(16229),F=d(40262);const I=["body"],k=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],R=["mat-expansion-panel-header","*","mat-action-row"];function G(pe,_e){}const Y=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],K=["mat-panel-title","mat-panel-description","*"];function $(pe,_e){if(1&pe&&n.nrm(0,"span",2),2&pe){const ke=n.XpG();n.Y8G("@indicatorRotate",ke._getExpandedState())}}const ee=new n.nKC("MAT_ACCORDION"),J="225ms cubic-bezier(0.4,0.0,0.2,1)",z={indicatorRotate:(0,F.hZ)("indicatorRotate",[(0,F.wk)("collapsed, void",(0,F.iF)({transform:"rotate(0deg)"})),(0,F.wk)("expanded",(0,F.iF)({transform:"rotate(180deg)"})),(0,F.kY)("expanded <=> collapsed, void => collapsed",(0,F.i0)(J))]),bodyExpansion:(0,F.hZ)("bodyExpansion",[(0,F.wk)("collapsed, void",(0,F.iF)({height:"0px",visibility:"hidden"})),(0,F.wk)("expanded",(0,F.iF)({height:"*",visibility:""})),(0,F.kY)("expanded <=> collapsed, void => collapsed",(0,F.i0)(J))])},te=new n.nKC("MAT_EXPANSION_PANEL");let X=(()=>{var pe;class _e{constructor(De,Me){this._template=De,this._expansionPanel=Me}}return(pe=_e).\u0275fac=function(De){return new(De||pe)(n.rXU(n.C4Q),n.rXU(te,8))},pe.\u0275dir=n.FsC({type:pe,selectors:[["ng-template","matExpansionPanelContent",""]]}),_e})(),re=0;const ge=new n.nKC("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let oe=(()=>{var pe;class _e extends y{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(De){this._hideToggle=(0,p.he)(De)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(De){this._togglePosition=De}constructor(De,Me,je,$e,Oe,gt,qt){super(De,Me,je),this._viewContainerRef=$e,this._animationMode=gt,this._hideToggle=!1,this.afterExpand=new n.bkB,this.afterCollapse=new n.bkB,this._inputChanges=new m.B7,this._headerId="mat-expansion-panel-header-"+re++,this._bodyAnimationDone=new m.B7,this.accordion=De,this._document=Oe,this._bodyAnimationDone.pipe((0,c.F)((ye,Re)=>ye.fromState===Re.fromState&&ye.toState===Re.toState)).subscribe(ye=>{"void"!==ye.fromState&&("expanded"===ye.toState?this.afterExpand.emit():"collapsed"===ye.toState&&this.afterCollapse.emit())}),qt&&(this.hideToggle=qt.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,T.Z)(null),(0,A.p)(()=>this.expanded&&!this._portal),(0,L.s)(1)).subscribe(()=>{this._portal=new i.VA(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(De){this._inputChanges.next(De)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const De=this._document.activeElement,Me=this._body.nativeElement;return De===Me||Me.contains(De)}return!1}}return(pe=_e).\u0275fac=function(De){return new(De||pe)(n.rXU(ee,12),n.rXU(n.gRc),n.rXU(l.zP),n.rXU(n.c1b),n.rXU(a.qQ),n.rXU(n.bc$,8),n.rXU(ge,8))},pe.\u0275cmp=n.VBU({type:pe,selectors:[["mat-expansion-panel"]],contentQueries:function(De,Me,je){if(1&De&&n.wni(je,X,5),2&De){let $e;n.mGM($e=n.lsd())&&(Me._lazyContent=$e.first)}},viewQuery:function(De,Me){if(1&De&&n.GBs(I,5),2&De){let je;n.mGM(je=n.lsd())&&(Me._body=je.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(De,Me){2&De&&n.AVh("mat-expanded",Me.expanded)("_mat-animation-noopable","NoopAnimations"===Me._animationMode)("mat-expansion-panel-spacing",Me._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n.Jv_([{provide:ee,useValue:void 0},{provide:te,useExisting:pe}]),n.Vt3,n.OA$],ngContentSelectors:R,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(De,Me){if(1&De){const je=n.RV6();n.NAR(k),n.SdG(0),n.j41(1,"div",1,0),n.bIt("@bodyExpansion.done",function(Oe){return n.eBV(je),n.Njj(Me._bodyAnimationDone.next(Oe))}),n.j41(3,"div",2),n.SdG(4,1),n.DNE(5,G,0,0,"ng-template",3),n.k0s(),n.SdG(6,2),n.k0s()}2&De&&(n.R7$(),n.Y8G("@bodyExpansion",Me._getExpandedState())("id",Me.id),n.BMQ("aria-labelledby",Me._headerId),n.R7$(4),n.Y8G("cdkPortalOutlet",Me._portal))},dependencies:[i.I3],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[z.bodyExpansion]},changeDetection:0}),_e})();class ue{}const N=(0,h.BF)(ue);let se=(()=>{var pe;class _e extends N{constructor(De,Me,je,$e,Oe,gt,qt){super(),this.panel=De,this._element=Me,this._focusMonitor=je,this._changeDetectorRef=$e,this._animationMode=gt,this._parentChangeSubscription=_.y.EMPTY;const ye=De.accordion?De.accordion._stateChanges.pipe((0,A.p)(Re=>!(!Re.hideToggle&&!Re.togglePosition))):V.w;this.tabIndex=parseInt(qt||"")||0,this._parentChangeSubscription=(0,D.h)(De.opened,De.closed,ye,De._inputChanges.pipe((0,A.p)(Re=>!!(Re.hideToggle||Re.disabled||Re.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),De.closed.pipe((0,A.p)(()=>De._containsFocus())).subscribe(()=>je.focusVia(Me,"program")),Oe&&(this.expandedHeight=Oe.expandedHeight,this.collapsedHeight=Oe.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const De=this._isExpanded();return De&&this.expandedHeight?this.expandedHeight:!De&&this.collapsedHeight?this.collapsedHeight:null}_keydown(De){switch(De.keyCode){case x.t6:case x.Fm:(0,x.rp)(De)||(De.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(De))}}focus(De,Me){De?this._focusMonitor.focusVia(this._element,De,Me):this._element.nativeElement.focus(Me)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(De=>{De&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return(pe=_e).\u0275fac=function(De){return new(De||pe)(n.rXU(oe,1),n.rXU(n.aKT),n.rXU(g.FN),n.rXU(n.gRc),n.rXU(ge,8),n.rXU(n.bc$,8),n.kS0("tabindex"))},pe.\u0275cmp=n.VBU({type:pe,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(De,Me){1&De&&n.bIt("click",function(){return Me._toggle()})("keydown",function($e){return Me._keydown($e)}),2&De&&(n.BMQ("id",Me.panel._headerId)("tabindex",Me.tabIndex)("aria-controls",Me._getPanelId())("aria-expanded",Me._isExpanded())("aria-disabled",Me.panel.disabled),n.xc7("height",Me._getHeaderHeight()),n.AVh("mat-expanded",Me._isExpanded())("mat-expansion-toggle-indicator-after","after"===Me._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Me._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Me._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.Vt3],ngContentSelectors:K,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(De,Me){1&De&&(n.NAR(Y),n.j41(0,"span",0),n.SdG(1),n.SdG(2,1),n.SdG(3,2),n.k0s(),n.DNE(4,$,1,1,"span",1)),2&De&&(n.AVh("mat-content-hide-toggle",!Me._showToggle()),n.R7$(4),n.Y8G("ngIf",Me._showToggle()))},dependencies:[a.bT],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[z.indicatorRotate]},changeDetection:0}),_e})(),de=(()=>{var pe;class _e extends O{constructor(){super(...arguments),this._ownHeaders=new n.rOR,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(De){this._hideToggle=(0,p.he)(De)}ngAfterContentInit(){this._headers.changes.pipe((0,T.Z)(this._headers)).subscribe(De=>{this._ownHeaders.reset(De.filter(Me=>Me.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new g.Bu(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(De){this._keyManager.onKeydown(De)}_handleHeaderFocus(De){this._keyManager.updateActiveItem(De)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return(pe=_e).\u0275fac=(()=>{let ke;return function(Me){return(ke||(ke=n.xGo(pe)))(Me||pe)}})(),pe.\u0275dir=n.FsC({type:pe,selectors:[["mat-accordion"]],contentQueries:function(De,Me,je){if(1&De&&n.wni(je,se,5),2&De){let $e;n.mGM($e=n.lsd())&&(Me._headers=$e)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(De,Me){2&De&&n.AVh("mat-accordion-multi",Me.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n.Jv_([{provide:ee,useExisting:pe}]),n.Vt3]}),_e})(),ae=(()=>{var pe;class _e{}return(pe=_e).\u0275fac=function(De){return new(De||pe)},pe.\u0275mod=n.$C({type:pe}),pe.\u0275inj=n.G2t({imports:[a.MD,h.yE,r,i.jc]}),_e})()},74292:(Ue,W,d)=>{"use strict";d.d(W,{MV:()=>re,RG:()=>xt,qT:()=>ke,xb:()=>$e});var n=d(58527),p=(d(40262),d(61142)),m=d(26321),_=d(51635);let X=0,re=(()=>{var un;class ct{constructor(){this.align="start",this.id="mat-mdc-hint-"+X++}}return(un=ct).\u0275fac=function(pn){return new(pn||un)},un.\u0275dir=n.FsC({type:un,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(pn,st){2&pn&&(n.Mr5("id",st.id),n.BMQ("align",null),n.AVh("mat-mdc-form-field-hint-end","end"===st.align))},inputs:{align:"align",id:"id"}}),ct})(),ke=(()=>{var un;class ct{}return(un=ct).\u0275fac=function(pn){return new(pn||un)},un.\u0275dir=n.FsC({type:un}),ct})();const $e=new n.nKC("MatFormField");let xt=(()=>{var un;class ct{}return(un=ct).\u0275fac=function(pn){return new(pn||un)},un.\u0275mod=n.$C({type:un}),un.\u0275inj=n.G2t({imports:[_.yE,p.MD,m.w5,_.yE]}),ct})()},29370:(Ue,W,d)=>{"use strict";d.d(W,{An:()=>xe,m_:()=>ue,tp:()=>R});var n=d(58527),l=d(51635),p=d(6364),m=d(61142),_=d(43848),P=d(59859),v=d(93181),O=d(10399),S=d(91384),y=d(83915),r=d(14714),i=d(43615),a=d(8282),h=d(65706),g=d(94485),c=d(74150);const T=["*"];let A;function x(N){return function L(){if(void 0===A&&(A=null,typeof window<"u")){const N=window;void 0!==N.trustedTypes&&(A=N.trustedTypes.createPolicy("angular#components",{createHTML:se=>se}))}return A}()?.createHTML(N)||N}function V(N){return Error(`Unable to find icon with the name "${N}"`)}function F(N){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${N}".`)}function I(N){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${N}".`)}class k{constructor(se,ce,Z){this.url=se,this.svgText=ce,this.options=Z}}let R=(()=>{var N;class se{constructor(Z,de,ae,pe){this._httpClient=Z,this._sanitizer=de,this._errorHandler=pe,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=ae}addSvgIcon(Z,de,ae){return this.addSvgIconInNamespace("",Z,de,ae)}addSvgIconLiteral(Z,de,ae){return this.addSvgIconLiteralInNamespace("",Z,de,ae)}addSvgIconInNamespace(Z,de,ae,pe){return this._addSvgIconConfig(Z,de,new k(ae,null,pe))}addSvgIconResolver(Z){return this._resolvers.push(Z),this}addSvgIconLiteralInNamespace(Z,de,ae,pe){const _e=this._sanitizer.sanitize(n.WPN.HTML,ae);if(!_e)throw I(ae);const ke=x(_e);return this._addSvgIconConfig(Z,de,new k("",ke,pe))}addSvgIconSet(Z,de){return this.addSvgIconSetInNamespace("",Z,de)}addSvgIconSetLiteral(Z,de){return this.addSvgIconSetLiteralInNamespace("",Z,de)}addSvgIconSetInNamespace(Z,de,ae){return this._addSvgIconSetConfig(Z,new k(de,null,ae))}addSvgIconSetLiteralInNamespace(Z,de,ae){const pe=this._sanitizer.sanitize(n.WPN.HTML,de);if(!pe)throw I(de);const _e=x(pe);return this._addSvgIconSetConfig(Z,new k("",_e,ae))}registerFontClassAlias(Z,de=Z){return this._fontCssClassesByAlias.set(Z,de),this}classNameForFontAlias(Z){return this._fontCssClassesByAlias.get(Z)||Z}setDefaultFontSetClass(...Z){return this._defaultFontSetClass=Z,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Z){const de=this._sanitizer.sanitize(n.WPN.RESOURCE_URL,Z);if(!de)throw F(Z);const ae=this._cachedIconsByUrl.get(de);return ae?(0,_.of)(K(ae)):this._loadSvgIconFromConfig(new k(Z,null)).pipe((0,S.M)(pe=>this._cachedIconsByUrl.set(de,pe)),(0,y.T)(pe=>K(pe)))}getNamedSvgIcon(Z,de=""){const ae=$(de,Z);let pe=this._svgIconConfigs.get(ae);if(pe)return this._getSvgFromConfig(pe);if(pe=this._getIconConfigFromResolvers(de,Z),pe)return this._svgIconConfigs.set(ae,pe),this._getSvgFromConfig(pe);const _e=this._iconSetConfigs.get(de);return _e?this._getSvgFromIconSetConfigs(Z,_e):(0,P.$)(V(ae))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Z){return Z.svgText?(0,_.of)(K(this._svgElementFromConfig(Z))):this._loadSvgIconFromConfig(Z).pipe((0,y.T)(de=>K(de)))}_getSvgFromIconSetConfigs(Z,de){const ae=this._extractIconWithNameFromAnySet(Z,de);if(ae)return(0,_.of)(ae);const pe=de.filter(_e=>!_e.svgText).map(_e=>this._loadSvgIconSetFromConfig(_e).pipe((0,r.W)(ke=>{const Me=`Loading icon set URL: ${this._sanitizer.sanitize(n.WPN.RESOURCE_URL,_e.url)} failed: ${ke.message}`;return this._errorHandler.handleError(new Error(Me)),(0,_.of)(null)})));return(0,v.p)(pe).pipe((0,y.T)(()=>{const _e=this._extractIconWithNameFromAnySet(Z,de);if(!_e)throw V(Z);return _e}))}_extractIconWithNameFromAnySet(Z,de){for(let ae=de.length-1;ae>=0;ae--){const pe=de[ae];if(pe.svgText&&pe.svgText.toString().indexOf(Z)>-1){const _e=this._svgElementFromConfig(pe),ke=this._extractSvgIconFromSet(_e,Z,pe.options);if(ke)return ke}}return null}_loadSvgIconFromConfig(Z){return this._fetchIcon(Z).pipe((0,S.M)(de=>Z.svgText=de),(0,y.T)(()=>this._svgElementFromConfig(Z)))}_loadSvgIconSetFromConfig(Z){return Z.svgText?(0,_.of)(null):this._fetchIcon(Z).pipe((0,S.M)(de=>Z.svgText=de))}_extractSvgIconFromSet(Z,de,ae){const pe=Z.querySelector(`[id="${de}"]`);if(!pe)return null;const _e=pe.cloneNode(!0);if(_e.removeAttribute("id"),"svg"===_e.nodeName.toLowerCase())return this._setSvgAttributes(_e,ae);if("symbol"===_e.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(_e),ae);const ke=this._svgElementFromString(x("<svg></svg>"));return ke.appendChild(_e),this._setSvgAttributes(ke,ae)}_svgElementFromString(Z){const de=this._document.createElement("DIV");de.innerHTML=Z;const ae=de.querySelector("svg");if(!ae)throw Error("<svg> tag not found");return ae}_toSvgElement(Z){const de=this._svgElementFromString(x("<svg></svg>")),ae=Z.attributes;for(let pe=0;pe<ae.length;pe++){const{name:_e,value:ke}=ae[pe];"id"!==_e&&de.setAttribute(_e,ke)}for(let pe=0;pe<Z.childNodes.length;pe++)Z.childNodes[pe].nodeType===this._document.ELEMENT_NODE&&de.appendChild(Z.childNodes[pe].cloneNode(!0));return de}_setSvgAttributes(Z,de){return Z.setAttribute("fit",""),Z.setAttribute("height","100%"),Z.setAttribute("width","100%"),Z.setAttribute("preserveAspectRatio","xMidYMid meet"),Z.setAttribute("focusable","false"),de&&de.viewBox&&Z.setAttribute("viewBox",de.viewBox),Z}_fetchIcon(Z){const{url:de,options:ae}=Z,pe=ae?.withCredentials??!1;if(!this._httpClient)throw function D(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==de)throw Error(`Cannot fetch icon from URL "${de}".`);const _e=this._sanitizer.sanitize(n.WPN.RESOURCE_URL,de);if(!_e)throw F(de);const ke=this._inProgressUrlFetches.get(_e);if(ke)return ke;const De=this._httpClient.get(_e,{responseType:"text",withCredentials:pe}).pipe((0,y.T)(Me=>x(Me)),(0,i.j)(()=>this._inProgressUrlFetches.delete(_e)),(0,a.u)());return this._inProgressUrlFetches.set(_e,De),De}_addSvgIconConfig(Z,de,ae){return this._svgIconConfigs.set($(Z,de),ae),this}_addSvgIconSetConfig(Z,de){const ae=this._iconSetConfigs.get(Z);return ae?ae.push(de):this._iconSetConfigs.set(Z,[de]),this}_svgElementFromConfig(Z){if(!Z.svgElement){const de=this._svgElementFromString(Z.svgText);this._setSvgAttributes(de,Z.options),Z.svgElement=de}return Z.svgElement}_getIconConfigFromResolvers(Z,de){for(let ae=0;ae<this._resolvers.length;ae++){const pe=this._resolvers[ae](de,Z);if(pe)return ee(pe)?new k(pe.url,null,pe.options):new k(pe,null)}}}return(N=se).\u0275fac=function(Z){return new(Z||N)(n.KVO(g.Qq,8),n.KVO(c.up),n.KVO(m.qQ,8),n.KVO(n.zcH))},N.\u0275prov=n.jDH({token:N,factory:N.\u0275fac,providedIn:"root"}),se})();function K(N){return N.cloneNode(!0)}function $(N,se){return N+":"+se}function ee(N){return!(!N.url||!N.options)}const J=(0,l.Zc)(class{constructor(N){this._elementRef=N}}),z=new n.nKC("MAT_ICON_DEFAULT_OPTIONS"),te=new n.nKC("mat-icon-location",{providedIn:"root",factory:function X(){const N=(0,n.WQX)(m.qQ),se=N?N.location:null;return{getPathname:()=>se?se.pathname+se.search:""}}}),re=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ge=re.map(N=>`[${N}]`).join(", "),oe=/^url\(['"]?#(.*?)['"]?\)$/;let xe=(()=>{var N;class se extends J{get inline(){return this._inline}set inline(Z){this._inline=(0,p.he)(Z)}get svgIcon(){return this._svgIcon}set svgIcon(Z){Z!==this._svgIcon&&(Z?this._updateSvgIcon(Z):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Z)}get fontSet(){return this._fontSet}set fontSet(Z){const de=this._cleanupFontValue(Z);de!==this._fontSet&&(this._fontSet=de,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Z){const de=this._cleanupFontValue(Z);de!==this._fontIcon&&(this._fontIcon=de,this._updateFontIconClasses())}constructor(Z,de,ae,pe,_e,ke){super(Z),this._iconRegistry=de,this._location=pe,this._errorHandler=_e,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=O.y.EMPTY,ke&&(ke.color&&(this.color=this.defaultColor=ke.color),ke.fontSet&&(this.fontSet=ke.fontSet)),ae||Z.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Z){if(!Z)return["",""];const de=Z.split(":");switch(de.length){case 1:return["",de[0]];case 2:return de;default:throw Error(`Invalid icon name: "${Z}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Z=this._elementsWithExternalReferences;if(Z&&Z.size){const de=this._location.getPathname();de!==this._previousPath&&(this._previousPath=de,this._prependPathToReferences(de))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Z){this._clearSvgElement();const de=this._location.getPathname();this._previousPath=de,this._cacheChildrenWithExternalReferences(Z),this._prependPathToReferences(de),this._elementRef.nativeElement.appendChild(Z)}_clearSvgElement(){const Z=this._elementRef.nativeElement;let de=Z.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();de--;){const ae=Z.childNodes[de];(1!==ae.nodeType||"svg"===ae.nodeName.toLowerCase())&&ae.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Z=this._elementRef.nativeElement,de=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(ae=>ae.length>0);this._previousFontSetClass.forEach(ae=>Z.classList.remove(ae)),de.forEach(ae=>Z.classList.add(ae)),this._previousFontSetClass=de,this.fontIcon!==this._previousFontIconClass&&!de.includes("mat-ligature-font")&&(this._previousFontIconClass&&Z.classList.remove(this._previousFontIconClass),this.fontIcon&&Z.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Z){return"string"==typeof Z?Z.trim().split(" ")[0]:Z}_prependPathToReferences(Z){const de=this._elementsWithExternalReferences;de&&de.forEach((ae,pe)=>{ae.forEach(_e=>{pe.setAttribute(_e.name,`url('${Z}#${_e.value}')`)})})}_cacheChildrenWithExternalReferences(Z){const de=Z.querySelectorAll(ge),ae=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pe=0;pe<de.length;pe++)re.forEach(_e=>{const ke=de[pe],De=ke.getAttribute(_e),Me=De?De.match(oe):null;if(Me){let je=ae.get(ke);je||(je=[],ae.set(ke,je)),je.push({name:_e,value:Me[1]})}})}_updateSvgIcon(Z){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Z){const[de,ae]=this._splitIconName(Z);de&&(this._svgNamespace=de),ae&&(this._svgName=ae),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ae,de).pipe((0,h.s)(1)).subscribe(pe=>this._setSvgElement(pe),pe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${de}:${ae}! ${pe.message}`))})}}}return(N=se).\u0275fac=function(Z){return new(Z||N)(n.rXU(n.aKT),n.rXU(R),n.kS0("aria-hidden"),n.rXU(te),n.rXU(n.zcH),n.rXU(z,8))},N.\u0275cmp=n.VBU({type:N,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Z,de){2&Z&&(n.BMQ("data-mat-icon-type",de._usingFontIcon()?"font":"svg")("data-mat-icon-name",de._svgName||de.fontIcon)("data-mat-icon-namespace",de._svgNamespace||de.fontSet)("fontIcon",de._usingFontIcon()?de.fontIcon:null),n.AVh("mat-icon-inline",de.inline)("mat-icon-no-color","primary"!==de.color&&"accent"!==de.color&&"warn"!==de.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.Vt3],ngContentSelectors:T,decls:1,vars:0,template:function(Z,de){1&Z&&(n.NAR(),n.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),se})(),ue=(()=>{var N;class se{}return(N=se).\u0275fac=function(Z){return new(Z||N)},N.\u0275mod=n.$C({type:N}),N.\u0275inj=n.G2t({imports:[l.yE,l.yE]}),se})()},50599:(Ue,W,d)=>{"use strict";d.d(W,{fg:()=>L,fS:()=>x});var n=d(6364),l=d(72653),p=d(58527),m=d(12532),_=d(80583);const P=(0,l.BQ)({passive:!0});let v=(()=>{var V;class D{constructor(I,k){this._platform=I,this._ngZone=k,this._monitoredElements=new Map}monitor(I){if(!this._platform.isBrowser)return m.w;const k=(0,n.i8)(I),R=this._monitoredElements.get(k);if(R)return R.subject;const G=new _.B7,Y="cdk-text-field-autofilled",K=$=>{"cdk-text-field-autofill-start"!==$.animationName||k.classList.contains(Y)?"cdk-text-field-autofill-end"===$.animationName&&k.classList.contains(Y)&&(k.classList.remove(Y),this._ngZone.run(()=>G.next({target:$.target,isAutofilled:!1}))):(k.classList.add(Y),this._ngZone.run(()=>G.next({target:$.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{k.addEventListener("animationstart",K,P),k.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(k,{subject:G,unlisten:()=>{k.removeEventListener("animationstart",K,P)}}),G}stopMonitoring(I){const k=(0,n.i8)(I),R=this._monitoredElements.get(k);R&&(R.unlisten(),R.subject.complete(),k.classList.remove("cdk-text-field-autofill-monitored"),k.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(k))}ngOnDestroy(){this._monitoredElements.forEach((I,k)=>this.stopMonitoring(k))}}return(V=D).\u0275fac=function(I){return new(I||V)(p.KVO(l.OD),p.KVO(p.SKi))},V.\u0275prov=p.jDH({token:V,factory:V.\u0275fac,providedIn:"root"}),D})(),y=(()=>{var V;class D{}return(V=D).\u0275fac=function(I){return new(I||V)},V.\u0275mod=p.$C({type:V}),V.\u0275inj=p.G2t({}),D})();var r=d(56106),i=d(51635),a=d(74292);const g=new p.nKC("MAT_INPUT_VALUE_ACCESSOR"),c=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let T=0;const A=(0,i.J8)(class{constructor(V,D,F,I){this._defaultErrorStateMatcher=V,this._parentForm=D,this._parentFormGroup=F,this.ngControl=I,this.stateChanges=new _.B7}});let L=(()=>{var V;class D extends A{get disabled(){return this._disabled}set disabled(I){this._disabled=(0,n.he)(I),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(I){this._id=I||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(r.k0.required)??!1}set required(I){this._required=(0,n.he)(I)}get type(){return this._type}set type(I){this._type=I||"text",this._validateType(),!this._isTextarea&&(0,l.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(I){I!==this.value&&(this._inputValueAccessor.value=I,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(I){this._readonly=(0,n.he)(I)}constructor(I,k,R,G,Y,K,$,ee,J,z){super(K,G,Y,R),this._elementRef=I,this._platform=k,this._autofillMonitor=ee,this._formField=z,this._uid="mat-input-"+T++,this.focused=!1,this.stateChanges=new _.B7,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(re=>(0,l.MU)().has(re)),this._iOSKeyupListener=re=>{const ge=re.target;!ge.value&&0===ge.selectionStart&&0===ge.selectionEnd&&(ge.setSelectionRange(1,1),ge.setSelectionRange(0,0))};const te=this._elementRef.nativeElement,X=te.nodeName.toLowerCase();this._inputValueAccessor=$||te,this._previousNativeValue=this.value,this.id=this.id,k.IOS&&J.runOutsideAngular(()=>{I.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===X,this._isTextarea="textarea"===X,this._isInFormField=!!z,this._isNativeSelect&&(this.controlType=te.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(I=>{this.autofilled=I.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(I){this._elementRef.nativeElement.focus(I)}_focusChanged(I){I!==this.focused&&(this.focused=I,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const I=this._elementRef.nativeElement.value;this._previousNativeValue!==I&&(this._previousNativeValue=I,this.stateChanges.next())}_dirtyCheckPlaceholder(){const I=this._getPlaceholder();if(I!==this._previousPlaceholder){const k=this._elementRef.nativeElement;this._previousPlaceholder=I,I?k.setAttribute("placeholder",I):k.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){c.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let I=this._elementRef.nativeElement.validity;return I&&I.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const I=this._elementRef.nativeElement,k=I.options[0];return this.focused||I.multiple||!this.empty||!!(I.selectedIndex>-1&&k&&k.label)}return this.focused||!this.empty}setDescribedByIds(I){I.length?this._elementRef.nativeElement.setAttribute("aria-describedby",I.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const I=this._elementRef.nativeElement;return this._isNativeSelect&&(I.multiple||I.size>1)}}return(V=D).\u0275fac=function(I){return new(I||V)(p.rXU(p.aKT),p.rXU(l.OD),p.rXU(r.vO,10),p.rXU(r.cV,8),p.rXU(r.j4,8),p.rXU(i.es),p.rXU(g,10),p.rXU(v),p.rXU(p.SKi),p.rXU(a.xb,8))},V.\u0275dir=p.FsC({type:V,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(I,k){1&I&&p.bIt("focus",function(){return k._focusChanged(!0)})("blur",function(){return k._focusChanged(!1)})("input",function(){return k._onInput()}),2&I&&(p.Mr5("id",k.id)("disabled",k.disabled)("required",k.required),p.BMQ("name",k.name||null)("readonly",k.readonly&&!k._isNativeSelect||null)("aria-invalid",k.empty&&k.required?null:k.errorState)("aria-required",k.required)("id",k.id),p.AVh("mat-input-server",k._isServer)("mat-mdc-form-field-textarea-control",k._isInFormField&&k._isTextarea)("mat-mdc-form-field-input-control",k._isInFormField)("mdc-text-field__input",k._isInFormField)("mat-mdc-native-select-inline",k._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[p.Mj6.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[p.Jv_([{provide:a.qT,useExisting:V}]),p.Vt3,p.OA$]}),D})(),x=(()=>{var V;class D{}return(V=D).\u0275fac=function(I){return new(I||V)},V.\u0275mod=p.$C({type:V}),V.\u0275inj=p.G2t({imports:[i.yE,a.RG,a.RG,y,i.yE]}),D})()},47973:(Ue,W,d)=>{"use strict";d.d(W,{iV:()=>y,wG:()=>i});var n=d(58527),l=d(51635),p=d(31308);const m=["mat-button",""],_=["*"],O=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],S=(0,l.Zc)((0,l.Ob)((0,l.GG)(class{constructor(a){this._elementRef=a}})));let y=(()=>{var a;class h extends S{constructor(c,T,A){super(c),this._focusMonitor=T,this._animationMode=A,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const L of O)this._hasHostAttributes(L)&&this._getHostElement().classList.add(L);c.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(c,T){c?this._focusMonitor.focusVia(this._getHostElement(),c,T):this._getHostElement().focus(T)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...c){return c.some(T=>this._getHostElement().hasAttribute(T))}}return(a=h).\u0275fac=function(c){return new(c||a)(n.rXU(n.aKT),n.rXU(p.FN),n.rXU(n.bc$,8))},a.\u0275cmp=n.VBU({type:a,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(c,T){if(1&c&&n.GBs(l.r6,5),2&c){let A;n.mGM(A=n.lsd())&&(T.ripple=A.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(c,T){2&c&&(n.BMQ("disabled",T.disabled||null),n.AVh("_mat-animation-noopable","NoopAnimations"===T._animationMode)("mat-button-disabled",T.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.Vt3],attrs:m,ngContentSelectors:_,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(c,T){1&c&&(n.NAR(),n.j41(0,"span",0),n.SdG(1),n.k0s(),n.nrm(2,"span",1)(3,"span",2)),2&c&&(n.R7$(2),n.AVh("mat-button-ripple-round",T.isRoundButton||T.isIconButton),n.Y8G("matRippleDisabled",T._isRippleDisabled())("matRippleCentered",T.isIconButton)("matRippleTrigger",T._getHostElement()))},dependencies:[l.r6],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),h})(),i=(()=>{var a;class h{}return(a=h).\u0275fac=function(c){return new(c||a)},a.\u0275mod=n.$C({type:a}),a.\u0275inj=n.G2t({imports:[l.pZ,l.yE,l.yE]}),h})()},97979:(Ue,W,d)=>{"use strict";d.d(W,{Rm:()=>S,_m:()=>x,ic:()=>F});var n=d(58527),l=d(51635);const p=["*",[["mat-card-footer"]]],m=["*","mat-card-footer"];let S=(()=>{var I;class k{}return(I=k).\u0275fac=function(G){return new(G||I)},I.\u0275dir=n.FsC({type:I,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),k})(),x=(()=>{var I;class k{constructor(G){this._animationMode=G}}return(I=k).\u0275fac=function(G){return new(G||I)(n.rXU(n.bc$,8))},I.\u0275cmp=n.VBU({type:I,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(G,Y){2&G&&n.AVh("_mat-animation-noopable","NoopAnimations"===Y._animationMode)},exportAs:["matCard"],ngContentSelectors:m,decls:2,vars:0,template:function(G,Y){1&G&&(n.NAR(p),n.SdG(0),n.SdG(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),k})(),F=(()=>{var I;class k{}return(I=k).\u0275fac=function(G){return new(G||I)},I.\u0275mod=n.$C({type:I}),I.\u0275inj=n.G2t({imports:[l.yE,l.yE]}),k})()},33955:(Ue,W,d)=>{"use strict";d.d(W,{NZ:()=>G,Dy:()=>Y});var n=d(31308),l=d(58527),p=d(56106),m=d(51635),_=d(6364);const P=["input"],v=["label"],S=new l.nKC("mat-checkbox-default-options",{providedIn:"root",factory:y});function y(){return{color:"accent",clickAction:"check-indeterminate"}}let a=0;const h=y(),g=(0,m.BF)((0,m.Zc)((0,m.GG)((0,m.Ob)(class{constructor(K){this._elementRef=K}}))));let c=(()=>{var K;class $ extends g{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(J){this._required=(0,_.he)(J)}constructor(J,z,te,X,re,ge,oe){super(z),this._changeDetectorRef=te,this._ngZone=X,this._animationMode=ge,this._options=oe,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new l.bkB,this.indeterminateChange=new l.bkB,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||h,this.color=this.defaultColor=this._options.color||h.color,this.tabIndex=parseInt(re)||0,this.id=this._uniqueId=`${J}${++a}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(J){const z=(0,_.he)(J);z!=this.checked&&(this._checked=z,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(J){const z=(0,_.he)(J);z!==this.disabled&&(this._disabled=z,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(J){const z=J!=this._indeterminate;this._indeterminate=(0,_.he)(J),z&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(J){this.checked=!!J}registerOnChange(J){this._controlValueAccessorChangeFn=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J}_transitionCheckState(J){let z=this._currentCheckState,te=this._getAnimationTargetElement();if(z!==J&&te&&(this._currentAnimationClass&&te.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(z,J),this._currentCheckState=J,this._currentAnimationClass.length>0)){te.classList.add(this._currentAnimationClass);const X=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{te.classList.remove(X)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const J=this._options?.clickAction;this.disabled||"noop"===J?!this.disabled&&"noop"===J&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==J&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(J){J.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(J,z){if("NoopAnimations"===this._animationMode)return"";switch(J){case 0:if(1===z)return this._animationClasses.uncheckedToChecked;if(3==z)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===z?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===z?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===z?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(J){const z=this._inputElement;z&&(z.nativeElement.indeterminate=J)}}return(K=$).\u0275fac=function(J){l.QTQ()},K.\u0275dir=l.FsC({type:K,viewQuery:function(J,z){if(1&J&&(l.GBs(P,5),l.GBs(v,5),l.GBs(m.r6,5)),2&J){let te;l.mGM(te=l.lsd())&&(z._inputElement=te.first),l.mGM(te=l.lsd())&&(z._labelElement=te.first),l.mGM(te=l.lsd())&&(z.ripple=te.first)}},inputs:{ariaLabel:[l.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[l.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[l.Mj6.None,"aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[l.Vt3]}),$})(),x=(()=>{var K;class ${}return(K=$).\u0275fac=function(J){return new(J||K)},K.\u0275mod=l.$C({type:K}),K.\u0275inj=l.G2t({}),$})();var D=d(26321);const F=["*"],I=K=>({enterDuration:K});class k{}const R={provide:p.kq,useExisting:(0,l.Rfq)(()=>G),multi:!0};let G=(()=>{var K;class $ extends c{constructor(J,z,te,X,re,ge,oe){super("mat-checkbox-",J,z,X,re,ge,oe),this._focusMonitor=te,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(J){const z=new k;return z.source=this,z.checked=J,z}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(J=>{J||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(J){J.stopPropagation(),super._handleInputClick()}focus(J,z){J?this._focusMonitor.focusVia(this._inputElement,J,z):this._inputElement.nativeElement.focus(z)}}return(K=$).\u0275fac=function(J){return new(J||K)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(n.FN),l.rXU(l.SKi),l.kS0("tabindex"),l.rXU(l.bc$,8),l.rXU(S,8))},K.\u0275cmp=l.VBU({type:K,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(J,z){2&J&&(l.Mr5("id",z.id),l.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),l.AVh("mat-checkbox-indeterminate",z.indeterminate)("mat-checkbox-checked",z.checked)("mat-checkbox-disabled",z.disabled)("mat-checkbox-label-before","before"==z.labelPosition)("_mat-animation-noopable","NoopAnimations"===z._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[l.Jv_([R]),l.Vt3],ngContentSelectors:F,decls:17,vars:20,consts:[["label",""],["input",""],["checkboxLabel",""],[1,"mat-checkbox-layout"],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"change","click","id","required","checked","disabled","tabIndex"],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],[2,"display","none"]],template:function(J,z){if(1&J){const te=l.RV6();l.NAR(),l.j41(0,"label",3,0)(2,"span",4)(3,"input",5,1),l.bIt("change",function(re){return l.eBV(te),l.Njj(z._onInteractionEvent(re))})("click",function(re){return l.eBV(te),l.Njj(z._onInputClick(re))}),l.k0s(),l.j41(5,"span",6),l.nrm(6,"span",7),l.k0s(),l.nrm(7,"span",8),l.j41(8,"span",9),l.qSk(),l.j41(9,"svg",10),l.nrm(10,"path",11),l.k0s(),l.joV(),l.nrm(11,"span",12),l.k0s()(),l.j41(12,"span",13,2),l.bIt("cdkObserveContent",function(){return l.eBV(te),l.Njj(z._onLabelTextChange())}),l.j41(14,"span",14),l.EFF(15,"\xa0"),l.k0s(),l.SdG(16),l.k0s()()}if(2&J){const te=l.sdS(1),X=l.sdS(13);l.BMQ("for",z.inputId),l.R7$(2),l.AVh("mat-checkbox-inner-container-no-side-margin",!X.textContent||!X.textContent.trim()),l.R7$(),l.Y8G("id",z.inputId)("required",z.required)("checked",z.checked)("disabled",z.disabled)("tabIndex",z.tabIndex),l.BMQ("value",z.value)("name",z.name)("aria-label",z.ariaLabel||null)("aria-labelledby",z.ariaLabelledby)("aria-describedby",z.ariaDescribedby),l.R7$(2),l.Y8G("matRippleTrigger",te)("matRippleDisabled",z._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",l.eq3(18,I,"NoopAnimations"===z._animationMode?0:150))}},dependencies:[m.r6,D.Wv],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),$})(),Y=(()=>{var K;class ${}return(K=$).\u0275fac=function(J){return new(J||K)},K.\u0275mod=l.$C({type:K}),K.\u0275inj=l.G2t({imports:[m.pZ,m.yE,D.w5,x,m.yE,x]}),$})()},96501:(Ue,W,d)=>{"use strict";d.d(W,{Wh:()=>X});var n=d(61142),l=d(58527),p=d(51635),i=(d(6364),d(80583),d(34593),d(4208),d(31308),d(40567),d(25373),d(56106),d(44224));let X=(()=>{var re;class ge{}return(re=ge).\u0275fac=function(xe){return new(xe||re)},re.\u0275mod=l.$C({type:re}),re.\u0275inj=l.G2t({imports:[p.Np,p.pZ,p.yE,p.O5,n.MD,p.Np,p.yE,p.O5,i.w]}),ge})()},44296:(Ue,W,d)=>{"use strict";d.d(W,{bB:()=>g,fS:()=>a,gy:()=>i,pI:()=>r});var n=d(58527),l=d(33668),p=d(61142),m=d(51635),_=d(61904),P=d(37278);const v=["*"];function O(c,T){if(1&c){const A=n.RV6();n.j41(0,"div",0),n.bIt("keydown",function(x){n.eBV(A);const V=n.XpG();return n.Njj(V._handleKeydown(x))})("click",function(){n.eBV(A);const x=n.XpG();return n.Njj(x.closed.emit("click"))})("@transformMenu.start",function(x){n.eBV(A);const V=n.XpG();return n.Njj(V._onAnimationStart(x))})("@transformMenu.done",function(x){n.eBV(A);const V=n.XpG();return n.Njj(V._onAnimationDone(x))}),n.j41(1,"div",1),n.SdG(2),n.k0s()()}if(2&c){const A=n.XpG();n.Y8G("id",A.panelId)("ngClass",A._classList)("@transformMenu",A._panelAnimationState),n.BMQ("aria-label",A.ariaLabel||null)("aria-labelledby",A.ariaLabelledby||null)("aria-describedby",A.ariaDescribedby||null)}}const S=["mat-menu-item",""];function y(c,T){1&c&&(n.qSk(),n.j41(0,"svg",2),n.nrm(1,"polygon",3),n.k0s())}let r=(()=>{var c;class T extends l.K1{constructor(L,x,V,D){super(L,x,V,D),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return(c=T).\u0275fac=function(L){return new(L||c)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(l.sK),n.rXU(n.gRc))},c.\u0275cmp=n.VBU({type:c,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:4,hostBindings:function(L,x){2&L&&n.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null)},exportAs:["matMenu"],features:[n.Jv_([{provide:l.S_,useExisting:c}]),n.Vt3],ngContentSelectors:v,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"keydown","click","id","ngClass"],[1,"mat-menu-content"]],template:function(L,x){1&L&&(n.NAR(),n.DNE(0,O,3,6,"ng-template"))},dependencies:[p.YU],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[l.hE.transformMenu,l.hE.fadeInItems]},changeDetection:0}),T})(),i=(()=>{var c;class T extends l.fb{}return(c=T).\u0275fac=(()=>{let A;return function(x){return(A||(A=n.xGo(c)))(x||c)}})(),c.\u0275cmp=n.VBU({type:c,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(L,x){2&L&&(n.BMQ("role",x.role)("tabindex",x._getTabIndex())("aria-disabled",x.disabled.toString())("disabled",x.disabled||null),n.AVh("mat-menu-item",!0)("mat-menu-item-highlighted",x._highlighted)("mat-menu-item-submenu-trigger",x._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[n.Jv_([{provide:l.fb,useExisting:c}]),n.Vt3],attrs:S,ngContentSelectors:v,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(L,x){1&L&&(n.NAR(),n.SdG(0),n.nrm(1,"div",0),n.DNE(2,y,2,0,"svg",1)),2&L&&(n.R7$(),n.Y8G("matRippleDisabled",x.disableRipple||x.disabled)("matRippleTrigger",x._getHostElement()),n.R7$(),n.Y8G("ngIf",x._triggersSubmenu))},dependencies:[p.bT,m.r6],encapsulation:2,changeDetection:0}),T})(),a=(()=>{var c;class T extends l.eg{}return(c=T).\u0275fac=(()=>{let A;return function(x){return(A||(A=n.xGo(c)))(x||c)}})(),c.\u0275dir=n.FsC({type:c,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.Vt3]}),T})(),g=(()=>{var c;class T{}return(c=T).\u0275fac=function(L){return new(L||c)},c.\u0275mod=n.$C({type:c}),c.\u0275inj=n.G2t({providers:[l.uk],imports:[p.MD,m.yE,m.pZ,_.z_,P.Gj,m.yE]}),T})()},62141:(Ue,W,d)=>{"use strict";d.d(W,{P2:()=>Y,jm:()=>K});var n=d(26321),l=d(58527),p=d(51635),m=d(31308),_=d(56106),P=d(6364);d(61142);let h=0;const g=(0,p.BF)((0,p.Zc)((0,p.GG)((0,p.Ob)(class{constructor($){this._elementRef=$}}))));let c=(()=>{var $;class ee extends g{get required(){return this._required}set required(z){this._required=(0,P.he)(z)}get checked(){return this._checked}set checked(z){this._checked=(0,P.he)(z),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(z){this._hideIcon=(0,P.he)(z)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(z,te,X,re,ge,oe,xe){super(z),this._focusMonitor=te,this._changeDetectorRef=X,this.defaults=ge,this._onChange=ue=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new l.bkB,this.toggleChange=new l.bkB,this.tabIndex=parseInt(re)||0,this.color=this.defaultColor=ge.color||"accent",this._noopAnimations="NoopAnimations"===oe,this.id=this._uniqueId=`${xe}${++h}`,this._hideIcon=ge.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(z=>{"keyboard"===z||"program"===z?(this._focused=!0,this._changeDetectorRef.markForCheck()):z||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(z){this.checked=!!z}registerOnChange(z){this._onChange=z}registerOnTouched(z){this._onTouched=z}setDisabledState(z){this.disabled=z,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return($=ee).\u0275fac=function(z){l.QTQ()},$.\u0275dir=l.FsC({type:$,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[l.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[l.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[l.Mj6.None,"aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[l.Vt3]}),ee})(),x=(()=>{var $;class ee{}return($=ee).\u0275fac=function(z){return new(z||$)},$.\u0275mod=l.$C({type:$}),$.\u0275inj=l.G2t({}),ee})();const D=["input"],F=["*"],I=$=>({enterDuration:$}),k=new l.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),R={provide:_.kq,useExisting:(0,l.Rfq)(()=>Y),multi:!0};class G{constructor(ee,J){this.source=ee,this.checked=J}}let Y=(()=>{var $;class ee extends c{constructor(z,te,X,re,ge,oe){super(z,te,X,re,ge,oe,"mat-slide-toggle-")}_createChangeEvent(z){return new G(this,z)}_onChangeEvent(z){z.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(z){z.stopPropagation()}focus(z,te){te?this._focusMonitor.focusVia(this._inputElement,te,z):this._inputElement.nativeElement.focus(z)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return($=ee).\u0275fac=function(z){return new(z||$)(l.rXU(l.aKT),l.rXU(m.FN),l.rXU(l.gRc),l.kS0("tabindex"),l.rXU(k),l.rXU(l.bc$,8))},$.\u0275cmp=l.VBU({type:$,selectors:[["mat-slide-toggle"]],viewQuery:function(z,te){if(1&z&&l.GBs(D,5),2&z){let X;l.mGM(X=l.lsd())&&(te._inputElement=X.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(z,te){2&z&&(l.Mr5("id",te.id),l.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),l.AVh("mat-checked",te.checked)("mat-disabled",te.disabled)("mat-slide-toggle-label-before","before"==te.labelPosition)("_mat-animation-noopable",te._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[l.Jv_([R]),l.Vt3],ngContentSelectors:F,decls:14,vars:20,consts:[["label",""],["input",""],["labelContent",""],[1,"mat-slide-toggle-label"],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"change","click","id","required","tabIndex","checked","disabled"],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],[2,"display","none"]],template:function(z,te){if(1&z){const X=l.RV6();l.NAR(),l.j41(0,"label",3,0)(2,"span",4)(3,"input",5,1),l.bIt("change",function(ge){return l.eBV(X),l.Njj(te._onChangeEvent(ge))})("click",function(ge){return l.eBV(X),l.Njj(te._onInputClick(ge))}),l.k0s(),l.j41(5,"span",6),l.nrm(6,"span",7),l.j41(7,"span",8),l.nrm(8,"span",9),l.k0s()()(),l.j41(9,"span",10,2),l.bIt("cdkObserveContent",function(){return l.eBV(X),l.Njj(te._onLabelTextChange())}),l.j41(11,"span",11),l.EFF(12,"\xa0"),l.k0s(),l.SdG(13),l.k0s()()}if(2&z){const X=l.sdS(1),re=l.sdS(10);l.BMQ("for",te.inputId),l.R7$(2),l.AVh("mat-slide-toggle-bar-no-side-margin",!re.textContent||!re.textContent.trim()),l.R7$(),l.Y8G("id",te.inputId)("required",te.required)("tabIndex",te.tabIndex)("checked",te.checked)("disabled",te.disabled),l.BMQ("name",te.name)("aria-checked",te.checked)("aria-label",te.ariaLabel)("aria-labelledby",te.ariaLabelledby)("aria-describedby",te.ariaDescribedby),l.R7$(4),l.Y8G("matRippleTrigger",X)("matRippleDisabled",te.disableRipple||te.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",l.eq3(18,I,te._noopAnimations?0:150))}},dependencies:[p.r6,n.Wv],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),ee})(),K=(()=>{var $;class ee{}return($=ee).\u0275fac=function(z){return new(z||$)},$.\u0275mod=l.$C({type:$}),$.\u0275inj=l.G2t({imports:[x,p.pZ,p.yE,n.w5,x,p.yE]}),ee})()},13186:(Ue,W,d)=>{"use strict";d.d(W,{Lq:()=>R,N$:()=>x});var n=d(61142),l=d(58527),p=d(51635),m=d(31308),_=d(51394),P=d(6364),v=d(25373),O=d(56106),S=d(72653),y=d(10399);const r=["sliderWrapper"],i=(0,S.BQ)({passive:!1}),T={provide:O.kq,useExisting:(0,l.Rfq)(()=>x),multi:!0};class A{}const L=(0,p.BF)((0,p.Zc)((0,p.Ob)(class{constructor(G){this._elementRef=G}}),"accent"));let x=(()=>{var G;class Y extends L{get invert(){return this._invert}set invert($){this._invert=(0,P.he)($)}get max(){return this._max}set max($){this._max=(0,P.OE)($,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min($){this._min=(0,P.OE)($,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step($){this._step=(0,P.OE)($,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel($){this._thumbLabel=(0,P.he)($)}get tickInterval(){return this._tickInterval}set tickInterval($){this._tickInterval="auto"===$?"auto":"number"==typeof $||"string"==typeof $?(0,P.OE)($,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value($){if($!==this._value){let ee=(0,P.OE)($,0);this._roundToDecimal&&ee!==this.min&&ee!==this.max&&(ee=parseFloat(ee.toFixed(this._roundToDecimal))),this._value=ee,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical($){this._vertical=(0,P.he)($)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus($){this._focusHostElement($)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const ee=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${ee})`}}_getTrackFillStyles(){const $=this.percent,J=this.vertical?`1, ${$}, 1`:`${$}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${J})`,display:0===$?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let $=100*this._tickIntervalPercent,X={backgroundSize:this.vertical?`2px ${$}%`:`${$}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${$/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const re=this._shouldInvertAxis();let ge;ge=this.vertical?re?"Bottom":"Top":re?"Right":"Left",X[`padding${ge}`]=`${this._getThumbGap()}px`}return X}_getThumbContainerStyles(){const $=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?$:!$)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const $=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?$:!$}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}constructor($,ee,J,z,te,X,re,ge){super($),this._focusMonitor=ee,this._changeDetectorRef=J,this._dir=z,this._ngZone=X,this._animationMode=ge,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new l.bkB,this.input=new l.bkB,this.valueChange=new l.bkB,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=y.y.EMPTY,this._pointerDown=oe=>{this.disabled||this._isSliding||!D(oe)&&0!==oe.button||this._ngZone.run(()=>{this._touchId=D(oe)?function k(G,Y){for(let K=0;K<G.touches.length;K++){const $=G.touches[K].target;if(Y===$||Y.contains($))return G.touches[K].identifier}}(oe,this._elementRef.nativeElement):void 0;const xe=F(oe,this._touchId);if(xe){const ue=this.value;this._isSliding="pointer",this._lastPointerEvent=oe,this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(oe),this._focusHostElement(),this._updateValueFromPosition(xe),this._valueOnSlideStart=ue,oe.cancelable&&oe.preventDefault(),ue!=this.value&&this._emitInputEvent()}})},this._pointerMove=oe=>{if("pointer"===this._isSliding){const xe=F(oe,this._touchId);if(xe){oe.cancelable&&oe.preventDefault();const ue=this.value;this._lastPointerEvent=oe,this._updateValueFromPosition(xe),ue!=this.value&&this._emitInputEvent()}}},this._pointerUp=oe=>{"pointer"===this._isSliding&&(!D(oe)||"number"!=typeof this._touchId||I(oe.changedTouches,this._touchId))&&(oe.cancelable&&oe.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=re,this.tabIndex=parseInt(te)||0,X.runOutsideAngular(()=>{const oe=$.nativeElement;oe.addEventListener("mousedown",this._pointerDown,i),oe.addEventListener("touchstart",this._pointerDown,i)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe($=>{this._isActive=!!$&&"keyboard"!==$,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const $=this._elementRef.nativeElement;$.removeEventListener("mousedown",this._pointerDown,i),$.removeEventListener("touchstart",this._pointerDown,i),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown($){if(this.disabled||(0,v.rp)($)||this._isSliding&&"keyboard"!==this._isSliding)return;const ee=this.value;switch($.keyCode){case v.w_:this._increment(10);break;case v.dB:this._increment(-10);break;case v.Kp:this.value=this.max;break;case v.yZ:this.value=this.min;break;case v.UQ:this._increment("rtl"==this._getDirection()?1:-1);break;case v.i7:this._increment(1);break;case v.LE:this._increment("rtl"==this._getDirection()?-1:1);break;case v.n6:this._increment(-1);break;default:return}ee!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",$.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents($){const ee=this._document,J=D($),te=J?"touchend":"mouseup";ee.addEventListener(J?"touchmove":"mousemove",this._pointerMove,i),ee.addEventListener(te,this._pointerUp,i),J&&ee.addEventListener("touchcancel",this._pointerUp,i);const X=this._getWindow();typeof X<"u"&&X&&X.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const $=this._document;$.removeEventListener("mousemove",this._pointerMove,i),$.removeEventListener("mouseup",this._pointerUp,i),$.removeEventListener("touchmove",this._pointerMove,i),$.removeEventListener("touchend",this._pointerUp,i),$.removeEventListener("touchcancel",this._pointerUp,i);const ee=this._getWindow();typeof ee<"u"&&ee&&ee.removeEventListener("blur",this._windowBlur)}_increment($){const ee=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(ee+this.step*$,this.min,this.max)}_updateValueFromPosition($){if(!this._sliderDimensions)return;let te=this._clamp(((this.vertical?$.y:$.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(te=1-te),0===te)this.value=this.min;else if(1===te)this.value=this.max;else{const X=this._calculateValue(te),re=Math.round((X-this.min)/this.step)*this.step+this.min;this.value=this._clamp(re,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let $;if("auto"==this.tickInterval){let ee=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;$=Math.ceil(30/(ee*this.step/(this.max-this.min)))*this.step/ee}else $=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=V($)?$:0}_createChangeEvent($=this.value){let ee=new A;return ee.source=this,ee.value=$,ee}_calculatePercentage($){const ee=(($||0)-this.min)/(this.max-this.min);return V(ee)?ee:0}_calculateValue($){return this.min+$*(this.max-this.min)}_clamp($,ee=0,J=1){return Math.max(ee,Math.min($,J))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement($){this._elementRef.nativeElement.focus($)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue($){this.value=$}registerOnChange($){this._controlValueAccessorChangeFn=$}registerOnTouched($){this.onTouched=$}setDisabledState($){this.disabled=$}}return(G=Y).\u0275fac=function($){return new($||G)(l.rXU(l.aKT),l.rXU(m.FN),l.rXU(l.gRc),l.rXU(_.dS,8),l.kS0("tabindex"),l.rXU(l.SKi),l.rXU(n.qQ),l.rXU(l.bc$,8))},G.\u0275cmp=l.VBU({type:G,selectors:[["mat-slider"]],viewQuery:function($,ee){if(1&$&&l.GBs(r,5),2&$){let J;l.mGM(J=l.lsd())&&(ee._sliderWrapper=J.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function($,ee){1&$&&l.bIt("focus",function(){return ee._onFocus()})("blur",function(){return ee._onBlur()})("keydown",function(z){return ee._onKeydown(z)})("keyup",function(){return ee._onKeyup()})("mouseenter",function(){return ee._onMouseenter()})("selectstart",function(z){return z.preventDefault()}),2&$&&(l.Mr5("tabIndex",ee.tabIndex),l.BMQ("aria-disabled",ee.disabled)("aria-valuemax",ee.max)("aria-valuemin",ee.min)("aria-valuenow",ee.value)("aria-valuetext",null==ee.valueText?ee.displayValue:ee.valueText)("aria-orientation",ee.vertical?"vertical":"horizontal"),l.AVh("mat-slider-disabled",ee.disabled)("mat-slider-has-ticks",ee.tickInterval)("mat-slider-horizontal",!ee.vertical)("mat-slider-axis-inverted",ee._shouldInvertAxis())("mat-slider-invert-mouse-coords",ee._shouldInvertMouseCoords())("mat-slider-sliding",ee._isSliding)("mat-slider-thumb-label-showing",ee.thumbLabel)("mat-slider-vertical",ee.vertical)("mat-slider-min-value",ee._isMinValue())("mat-slider-hide-last-tick",ee.disabled||ee._isMinValue()&&ee._getThumbGap()&&ee._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===ee._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[l.Jv_([T]),l.Vt3],decls:13,vars:6,consts:[["sliderWrapper",""],[1,"mat-slider-wrapper"],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function($,ee){1&$&&(l.j41(0,"div",1,0)(2,"div",2),l.nrm(3,"div",3)(4,"div",4),l.k0s(),l.j41(5,"div",5),l.nrm(6,"div",6),l.k0s(),l.j41(7,"div",7),l.nrm(8,"div",8)(9,"div",9),l.j41(10,"div",10)(11,"span",11),l.EFF(12),l.k0s()()()()),2&$&&(l.R7$(3),l.Y8G("ngStyle",ee._getTrackBackgroundStyles()),l.R7$(),l.Y8G("ngStyle",ee._getTrackFillStyles()),l.R7$(),l.Y8G("ngStyle",ee._getTicksContainerStyles()),l.R7$(),l.Y8G("ngStyle",ee._getTicksStyles()),l.R7$(),l.Y8G("ngStyle",ee._getThumbContainerStyles()),l.R7$(5),l.JRh(ee.displayValue))},dependencies:[n.B3],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}'],encapsulation:2,changeDetection:0}),Y})();function V(G){return!isNaN(G)&&isFinite(G)}function D(G){return"t"===G.type[0]}function F(G,Y){let K;return K=D(G)?"number"==typeof Y?I(G.touches,Y)||I(G.changedTouches,Y):G.touches[0]||G.changedTouches[0]:G,K?{x:K.clientX,y:K.clientY}:void 0}function I(G,Y){for(let K=0;K<G.length;K++)if(G[K].identifier===Y)return G[K]}let R=(()=>{var G;class Y{}return(G=Y).\u0275fac=function($){return new($||G)},G.\u0275mod=l.$C({type:G}),G.\u0275inj=l.G2t({imports:[n.MD,p.yE,p.yE]}),Y})()},30783:(Ue,W,d)=>{"use strict";d.d(W,{nf:()=>xe,$D:()=>oe});var n=d(61904),l=d(76614),p=d(61142),m=d(58527),_=d(51635),P=d(47973),v=d(80583),O=d(40262),S=d(72653),y=d(65706),r=d(4208),i=d(31308),a=d(76706);const T=Math.pow(2,31)-1;class A{constructor(N,se){this._overlayRef=se,this._afterDismissed=new v.B7,this._afterOpened=new v.B7,this._onAction=new v.B7,this._dismissedByAction=!1,this.containerInstance=N,N._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(N){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(N,T))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const L=new m.nKC("MatSnackBarData");class x{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const k={snackBarState:(0,O.hZ)("state",[(0,O.wk)("void, hidden",(0,O.iF)({transform:"scale(0.8)",opacity:0})),(0,O.wk)("visible",(0,O.iF)({transform:"scale(1)",opacity:1})),(0,O.kY)("* => visible",(0,O.i0)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,O.kY)("* => void, * => hidden",(0,O.i0)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,O.iF)({opacity:0})))])};let R=0,G=(()=>{var ue;class N extends l.lb{constructor(ce,Z,de,ae,pe){super(),this._ngZone=ce,this._elementRef=Z,this._changeDetectorRef=de,this._platform=ae,this.snackBarConfig=pe,this._document=(0,m.WQX)(p.qQ),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new v.B7,this._onExit=new v.B7,this._onEnter=new v.B7,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+R++,this.attachDomPortal=_e=>{this._assertNotAttached();const ke=this._portalOutlet.attachDomPortal(_e);return this._afterPortalAttached(),ke},this._live="assertive"!==pe.politeness||pe.announcementMessage?"off"===pe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(ce){this._assertNotAttached();const Z=this._portalOutlet.attachComponentPortal(ce);return this._afterPortalAttached(),Z}attachTemplatePortal(ce){this._assertNotAttached();const Z=this._portalOutlet.attachTemplatePortal(ce);return this._afterPortalAttached(),Z}onAnimationEnd(ce){const{fromState:Z,toState:de}=ce;if(("void"===de&&"void"!==Z||"hidden"===de)&&this._completeExit(),"visible"===de){const ae=this._onEnter;this._ngZone.run(()=>{ae.next(),ae.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,y.s)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const ce=this._elementRef.nativeElement,Z=this.snackBarConfig.panelClass;Z&&(Array.isArray(Z)?Z.forEach(de=>ce.classList.add(de)):ce.classList.add(Z)),this._exposeToModals()}_exposeToModals(){const ce=this._liveElementId,Z=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let de=0;de<Z.length;de++){const ae=Z[de],pe=ae.getAttribute("aria-owns");this._trackedModals.add(ae),pe?-1===pe.indexOf(ce)&&ae.setAttribute("aria-owns",pe+" "+ce):ae.setAttribute("aria-owns",ce)}}_clearFromModals(){this._trackedModals.forEach(ce=>{const Z=ce.getAttribute("aria-owns");if(Z){const de=Z.replace(this._liveElementId,"").trim();de.length>0?ce.setAttribute("aria-owns",de):ce.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const ce=this._elementRef.nativeElement.querySelector("[aria-hidden]"),Z=this._elementRef.nativeElement.querySelector("[aria-live]");if(ce&&Z){let de=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&ce.contains(document.activeElement)&&(de=document.activeElement),ce.removeAttribute("aria-hidden"),Z.appendChild(ce),de?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(ue=N).\u0275fac=function(ce){return new(ce||ue)(m.rXU(m.SKi),m.rXU(m.aKT),m.rXU(m.gRc),m.rXU(S.OD),m.rXU(x))},ue.\u0275dir=m.FsC({type:ue,viewQuery:function(ce,Z){if(1&ce&&m.GBs(l.I3,7),2&ce){let de;m.mGM(de=m.lsd())&&(Z._portalOutlet=de.first)}},features:[m.Vt3]}),N})();const ee=new m.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function $(){return new x}});let J=(()=>{var ue;class N{get _openedSnackBarRef(){const ce=this._parentSnackBar;return ce?ce._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(ce){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=ce:this._snackBarRefAtThisLevel=ce}constructor(ce,Z,de,ae,pe,_e){this._overlay=ce,this._live=Z,this._injector=de,this._breakpointObserver=ae,this._parentSnackBar=pe,this._defaultConfig=_e,this._snackBarRefAtThisLevel=null}openFromComponent(ce,Z){return this._attach(ce,Z)}openFromTemplate(ce,Z){return this._attach(ce,Z)}open(ce,Z="",de){const ae={...this._defaultConfig,...de};return ae.data={message:ce,action:Z},ae.announcementMessage===ce&&(ae.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,ae)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(ce,Z){const ae=m.zZn.create({parent:Z&&Z.viewContainerRef&&Z.viewContainerRef.injector||this._injector,providers:[{provide:x,useValue:Z}]}),pe=new l.A8(this.snackBarContainerComponent,Z.viewContainerRef,ae),_e=ce.attach(pe);return _e.instance.snackBarConfig=Z,_e.instance}_attach(ce,Z){const de={...new x,...this._defaultConfig,...Z},ae=this._createOverlay(de),pe=this._attachSnackBarContainer(ae,de),_e=new A(pe,ae);if(ce instanceof m.C4Q){const ke=new l.VA(ce,null,{$implicit:de.data,snackBarRef:_e});_e.instance=pe.attachTemplatePortal(ke)}else{const ke=this._createInjector(de,_e),De=new l.A8(ce,void 0,ke),Me=pe.attachComponentPortal(De);_e.instance=Me.instance}return this._breakpointObserver.observe(a.Rp.HandsetPortrait).pipe((0,r.Q)(ae.detachments())).subscribe(ke=>{ae.overlayElement.classList.toggle(this.handsetCssClass,ke.matches)}),de.announcementMessage&&pe._onAnnounce.subscribe(()=>{this._live.announce(de.announcementMessage,de.politeness)}),this._animateSnackBar(_e,de),this._openedSnackBarRef=_e,this._openedSnackBarRef}_animateSnackBar(ce,Z){ce.afterDismissed().subscribe(()=>{this._openedSnackBarRef==ce&&(this._openedSnackBarRef=null),Z.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{ce.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):ce.containerInstance.enter(),Z.duration&&Z.duration>0&&ce.afterOpened().subscribe(()=>ce._dismissAfter(Z.duration))}_createOverlay(ce){const Z=new n.rR;Z.direction=ce.direction;let de=this._overlay.position().global();const ae="rtl"===ce.direction,pe="left"===ce.horizontalPosition||"start"===ce.horizontalPosition&&!ae||"end"===ce.horizontalPosition&&ae,_e=!pe&&"center"!==ce.horizontalPosition;return pe?de.left("0"):_e?de.right("0"):de.centerHorizontally(),"top"===ce.verticalPosition?de.top("0"):de.bottom("0"),Z.positionStrategy=de,this._overlay.create(Z)}_createInjector(ce,Z){return m.zZn.create({parent:ce&&ce.viewContainerRef&&ce.viewContainerRef.injector||this._injector,providers:[{provide:A,useValue:Z},{provide:L,useValue:ce.data}]})}}return(ue=N).\u0275fac=function(ce){return new(ce||ue)(m.KVO(n.hJ),m.KVO(i.Ai),m.KVO(m.zZn),m.KVO(a.QP),m.KVO(ue,12),m.KVO(ee))},ue.\u0275prov=m.jDH({token:ue,factory:ue.\u0275fac}),N})();function te(ue,N){if(1&ue){const se=m.RV6();m.j41(0,"div",2)(1,"button",3),m.bIt("click",function(){m.eBV(se);const Z=m.XpG();return m.Njj(Z.action())}),m.EFF(2),m.k0s()()}if(2&ue){const se=m.XpG();m.R7$(2),m.JRh(se.data.action)}}function X(ue,N){}let re=(()=>{var ue;class N{constructor(ce,Z){this.snackBarRef=ce,this.data=Z}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(ue=N).\u0275fac=function(ce){return new(ce||ue)(m.rXU(A),m.rXU(L))},ue.\u0275cmp=m.VBU({type:ue,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(ce,Z){1&ce&&(m.j41(0,"span",0),m.EFF(1),m.k0s(),m.DNE(2,te,3,1,"div",1)),2&ce&&(m.R7$(),m.JRh(Z.data.message),m.R7$(),m.Y8G("ngIf",Z.hasAction))},dependencies:[p.bT,P.iV],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),N})(),ge=(()=>{var ue;class N extends G{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return(ue=N).\u0275fac=(()=>{let se;return function(Z){return(se||(se=m.xGo(ue)))(Z||ue)}})(),ue.\u0275cmp=m.VBU({type:ue,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(ce,Z){1&ce&&m.Kam("@state.done",function(ae){return Z.onAnimationEnd(ae)}),2&ce&&m.zvX("@state",Z._animationState)},features:[m.Vt3],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(ce,Z){1&ce&&(m.j41(0,"div",0),m.DNE(1,X,0,0,"ng-template",1),m.k0s(),m.nrm(2,"div")),2&ce&&(m.R7$(2),m.BMQ("aria-live",Z._live)("role",Z._role)("id",Z._liveElementId))},dependencies:[l.I3],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[k.snackBarState]}}),N})(),oe=(()=>{var ue;class N{}return(ue=N).\u0275fac=function(ce){return new(ce||ue)},ue.\u0275mod=m.$C({type:ue}),ue.\u0275inj=m.G2t({imports:[n.z_,l.jc,p.MD,P.wG,_.yE,_.yE]}),N})(),xe=(()=>{var ue;class N extends J{constructor(ce,Z,de,ae,pe,_e){super(ce,Z,de,ae,pe,_e),this.simpleSnackBarComponent=re,this.snackBarContainerComponent=ge,this.handsetCssClass="mat-snack-bar-handset"}}return(ue=N).\u0275fac=function(ce){return new(ce||ue)(m.KVO(n.hJ),m.KVO(i.Ai),m.KVO(m.zZn),m.KVO(a.QP),m.KVO(ue,12),m.KVO(ee))},ue.\u0275prov=m.jDH({token:ue,factory:ue.\u0275fac,providedIn:oe}),N})()},33668:(Ue,W,d)=>{"use strict";d.d(W,{Cn:()=>Oe,Cp:()=>$e,K1:()=>de,S_:()=>$,eg:()=>je,fb:()=>J,hE:()=>xe,sK:()=>ce,uk:()=>ke});var n=d(58527),l=d(31308),p=d(6364),m=d(25373),_=d(80583),P=d(16229),v=d(10399),O=d(43848),S=d(62366),y=d(34593),r=d(72147),i=d(65706),a=d(4208),h=d(8619),g=d(65726),c=d(51635),T=d(61142),A=d(76614),L=d(40262),x=d(51394),V=d(61904),D=d(72653),F=d(37278);const I=["mat-menu-item",""],k=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],R=["mat-icon, [matMenuItemIcon]","*"];function G(gt,qt){1>&&(n.qSk(),n.j41(0,"svg",3),n.nrm(1,"polygon",4),n.k0s())}const $=new n.nKC("MAT_MENU_PANEL"),ee=(0,c.GG)((0,c.Ob)(class{}));let J=(()=>{var gt;class qt extends ee{constructor(Re,Ze,et,xt,un){super(),this._elementRef=Re,this._document=Ze,this._focusMonitor=et,this._parentMenu=xt,this._changeDetectorRef=un,this.role="menuitem",this._hovered=new _.B7,this._focused=new _.B7,this._highlighted=!1,this._triggersSubmenu=!1,xt?.addItem?.(this)}focus(Re,Ze){this._focusMonitor&&Re?this._focusMonitor.focusVia(this._getHostElement(),Re,Ze):this._getHostElement().focus(Ze),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(Re){this.disabled&&(Re.preventDefault(),Re.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Re=this._elementRef.nativeElement.cloneNode(!0),Ze=Re.querySelectorAll("mat-icon, .material-icons");for(let et=0;et<Ze.length;et++)Ze[et].remove();return Re.textContent?.trim()||""}_setHighlighted(Re){this._highlighted=Re,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(Re){this._triggersSubmenu=Re,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return(gt=qt).\u0275fac=function(Re){return new(Re||gt)(n.rXU(n.aKT),n.rXU(T.qQ),n.rXU(l.FN),n.rXU($,8),n.rXU(n.gRc))},gt.\u0275cmp=n.VBU({type:gt,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(Re,Ze){1&Re&&n.bIt("click",function(xt){return Ze._checkDisabled(xt)})("mouseenter",function(){return Ze._handleMouseEnter()}),2&Re&&(n.BMQ("role",Ze.role)("tabindex",Ze._getTabIndex())("aria-disabled",Ze.disabled)("disabled",Ze.disabled||null),n.AVh("mat-mdc-menu-item-highlighted",Ze._highlighted)("mat-mdc-menu-item-submenu-trigger",Ze._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[n.Vt3],attrs:I,ngContentSelectors:R,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Re,Ze){1&Re&&(n.NAR(k),n.SdG(0),n.j41(1,"span",0),n.SdG(2,1),n.k0s(),n.nrm(3,"div",1),n.DNE(4,G,2,0,"svg",2)),2&Re&&(n.R7$(3),n.Y8G("matRippleDisabled",Ze.disableRipple||Ze.disabled)("matRippleTrigger",Ze._getHostElement()),n.R7$(),n.Y8G("ngIf",Ze._triggersSubmenu))},dependencies:[T.bT,c.r6],encapsulation:2,changeDetection:0}),qt})();const re=new n.nKC("MatMenuContent"),xe={transformMenu:(0,L.hZ)("transformMenu",[(0,L.wk)("void",(0,L.iF)({opacity:0,transform:"scale(0.8)"})),(0,L.kY)("void => enter",(0,L.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,L.iF)({opacity:1,transform:"scale(1)"}))),(0,L.kY)("* => void",(0,L.i0)("100ms 25ms linear",(0,L.iF)({opacity:0})))]),fadeInItems:(0,L.hZ)("fadeInItems",[(0,L.wk)("showing",(0,L.iF)({opacity:1})),(0,L.kY)("void => *",[(0,L.iF)({opacity:0}),(0,L.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let se=0;const ce=new n.nKC("mat-menu-default-options",{providedIn:"root",factory:function Z(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let de=(()=>{var gt;class qt{get xPosition(){return this._xPosition}set xPosition(Re){this._xPosition=Re,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Re){this._yPosition=Re,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Re){this._overlapTrigger=(0,p.he)(Re)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Re){this._hasBackdrop=(0,p.he)(Re)}set panelClass(Re){const Ze=this._previousPanelClass;Ze&&Ze.length&&Ze.split(" ").forEach(et=>{this._classList[et]=!1}),this._previousPanelClass=Re,Re&&Re.length&&(Re.split(" ").forEach(et=>{this._classList[et]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Re){this.panelClass=Re}constructor(Re,Ze,et,xt){this._elementRef=Re,this._ngZone=Ze,this._changeDetectorRef=xt,this._directDescendantItems=new n.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new _.B7,this.closed=new n.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+se++,this.overlayPanelClass=et.overlayPanelClass||"",this._xPosition=et.xPosition,this._yPosition=et.yPosition,this.backdropClass=et.backdropClass,this._overlapTrigger=et.overlapTrigger,this._hasBackdrop=et.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new l.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,y.Z)(this._directDescendantItems),(0,r.n)(Re=>(0,P.h)(...Re.map(Ze=>Ze._focused)))).subscribe(Re=>this._keyManager.updateActiveItem(Re)),this._directDescendantItems.changes.subscribe(Re=>{const Ze=this._keyManager;if("enter"===this._panelAnimationState&&Ze.activeItem?._hasFocus()){const et=Re.toArray(),xt=Math.max(0,Math.min(et.length-1,Ze.activeItemIndex||0));et[xt]&&!et[xt].disabled?Ze.setActiveItem(xt):Ze.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,y.Z)(this._directDescendantItems),(0,r.n)(Ze=>(0,P.h)(...Ze.map(et=>et._hovered))))}addItem(Re){}removeItem(Re){}_handleKeydown(Re){const Ze=Re.keyCode,et=this._keyManager;switch(Ze){case m._f:(0,m.rp)(Re)||(Re.preventDefault(),this.closed.emit("keydown"));break;case m.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case m.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Ze===m.i7||Ze===m.n6)&&et.setFocusOrigin("keyboard"),void et.onKeydown(Re)}Re.stopPropagation()}focusFirstItem(Re="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,i.s)(1)).subscribe(()=>{let Ze=null;if(this._directDescendantItems.length&&(Ze=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Ze||!Ze.contains(document.activeElement)){const et=this._keyManager;et.setFocusOrigin(Re).setFirstItemActive(),!et.activeItem&&Ze&&Ze.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Re){const Ze=Math.min(this._baseElevation+Re,24),et=`${this._elevationPrefix}${Ze}`,xt=Object.keys(this._classList).find(un=>un.startsWith(this._elevationPrefix));(!xt||xt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[et]=!0,this._previousElevation=et)}setPositionClasses(Re=this.xPosition,Ze=this.yPosition){const et=this._classList;et["mat-menu-before"]="before"===Re,et["mat-menu-after"]="after"===Re,et["mat-menu-above"]="above"===Ze,et["mat-menu-below"]="below"===Ze,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Re){this._animationDone.next(Re),this._isAnimating=!1}_onAnimationStart(Re){this._isAnimating=!0,"enter"===Re.toState&&0===this._keyManager.activeItemIndex&&(Re.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,y.Z)(this._allItems)).subscribe(Re=>{this._directDescendantItems.reset(Re.filter(Ze=>Ze._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(gt=qt).\u0275fac=function(Re){return new(Re||gt)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(ce),n.rXU(n.gRc))},gt.\u0275dir=n.FsC({type:gt,contentQueries:function(Re,Ze,et){if(1&Re&&(n.wni(et,re,5),n.wni(et,J,5),n.wni(et,J,4)),2&Re){let xt;n.mGM(xt=n.lsd())&&(Ze.lazyContent=xt.first),n.mGM(xt=n.lsd())&&(Ze._allItems=xt),n.mGM(xt=n.lsd())&&(Ze.items=xt)}},viewQuery:function(Re,Ze){if(1&Re&&n.GBs(n.C4Q,5),2&Re){let et;n.mGM(et=n.lsd())&&(Ze.templateRef=et.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[n.Mj6.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:[n.Mj6.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),qt})();const pe=new n.nKC("mat-menu-scroll-strategy"),ke={provide:pe,deps:[V.hJ],useFactory:function _e(gt){return()=>gt.scrollStrategies.reposition()}},De=(0,D.BQ)({passive:!0});let je=(()=>{var gt;class qt{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Re){this.menu=Re}get menu(){return this._menu}set menu(Re){Re!==this._menu&&(this._menu=Re,this._menuCloseSubscription.unsubscribe(),Re&&(this._menuCloseSubscription=Re.close.subscribe(Ze=>{this._destroyMenu(Ze),("click"===Ze||"tab"===Ze)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ze)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(Re,Ze,et,xt,un,ct,Gt,pn,st){this._overlay=Re,this._element=Ze,this._viewContainerRef=et,this._menuItemInstance=ct,this._dir=Gt,this._focusMonitor=pn,this._ngZone=st,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=v.y.EMPTY,this._hoverSubscription=v.y.EMPTY,this._menuCloseSubscription=v.y.EMPTY,this._changeDetectorRef=(0,n.WQX)(n.gRc),this._handleTouchStart=mn=>{(0,l.w6)(mn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=xt,this._parentMaterialMenu=un instanceof de?un:void 0,Ze.nativeElement.addEventListener("touchstart",this._handleTouchStart,De)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,De),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Re=this.menu;if(this._menuOpen||!Re)return;const Ze=this._createOverlay(Re),et=Ze.getConfig(),xt=et.positionStrategy;this._setPosition(Re,xt),et.hasBackdrop=null==Re.hasBackdrop?!this.triggersSubmenu():Re.hasBackdrop,Ze.attach(this._getPortal(Re)),Re.lazyContent&&Re.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Re),Re instanceof de&&(Re._startAnimation(),Re._directDescendantItems.changes.pipe((0,a.Q)(Re.close)).subscribe(()=>{xt.withLockedPosition(!1).reapplyLastPosition(),xt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Re,Ze){this._focusMonitor&&Re?this._focusMonitor.focusVia(this._element,Re,Ze):this._element.nativeElement.focus(Ze)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Re){if(!this._overlayRef||!this.menuOpen)return;const Ze=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Re||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Ze instanceof de?(Ze._resetAnimation(),Ze.lazyContent?Ze._animationDone.pipe((0,h.p)(et=>"void"===et.toState),(0,i.s)(1),(0,a.Q)(Ze.lazyContent._attached)).subscribe({next:()=>Ze.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Ze?.lazyContent?.detach())}_initMenu(Re){Re.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Re.direction=this.dir,this._setMenuElevation(Re),Re.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Re){if(Re.setElevation){let Ze=0,et=Re.parentMenu;for(;et;)Ze++,et=et.parentMenu;Re.setElevation(Ze)}}_setIsMenuOpen(Re){Re!==this._menuOpen&&(this._menuOpen=Re,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Re),this._changeDetectorRef.markForCheck())}_createOverlay(Re){if(!this._overlayRef){const Ze=this._getOverlayConfig(Re);this._subscribeToPositions(Re,Ze.positionStrategy),this._overlayRef=this._overlay.create(Ze),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Re){return new V.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Re.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Re.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Re,Ze){Re.setPositionClasses&&Ze.positionChanges.subscribe(et=>{const xt="start"===et.connectionPair.overlayX?"after":"before",un="top"===et.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Re.setPositionClasses(xt,un)):Re.setPositionClasses(xt,un)})}_setPosition(Re,Ze){let[et,xt]="before"===Re.xPosition?["end","start"]:["start","end"],[un,ct]="above"===Re.yPosition?["bottom","top"]:["top","bottom"],[Gt,pn]=[un,ct],[st,mn]=[et,xt],Bn=0;if(this.triggersSubmenu()){if(mn=et="before"===Re.xPosition?"start":"end",xt=st="end"===et?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const En=this._parentMaterialMenu.items.first;this._parentInnerPadding=En?En._getHostElement().offsetTop:0}Bn="bottom"===un?this._parentInnerPadding:-this._parentInnerPadding}}else Re.overlapTrigger||(Gt="top"===un?"bottom":"top",pn="top"===ct?"bottom":"top");Ze.withPositions([{originX:et,originY:Gt,overlayX:st,overlayY:un,offsetY:Bn},{originX:xt,originY:Gt,overlayX:mn,overlayY:un,offsetY:Bn},{originX:et,originY:pn,overlayX:st,overlayY:ct,offsetY:-Bn},{originX:xt,originY:pn,overlayX:mn,overlayY:ct,offsetY:-Bn}])}_menuClosingActions(){const Re=this._overlayRef.backdropClick(),Ze=this._overlayRef.detachments(),et=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,O.of)(),xt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,h.p)(un=>un!==this._menuItemInstance),(0,h.p)(()=>this._menuOpen)):(0,O.of)();return(0,P.h)(Re,et,xt,Ze)}_handleMousedown(Re){(0,l._G)(Re)||(this._openedBy=0===Re.button?"mouse":void 0,this.triggersSubmenu()&&Re.preventDefault())}_handleKeydown(Re){const Ze=Re.keyCode;(Ze===m.Fm||Ze===m.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ze===m.LE&&"ltr"===this.dir||Ze===m.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Re){this.triggersSubmenu()?(Re.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,h.p)(Re=>Re===this._menuItemInstance&&!Re.disabled),(0,g.c)(0,S.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof de&&this.menu._isAnimating?this.menu._animationDone.pipe((0,i.s)(1),(0,g.c)(0,S.$),(0,a.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Re){return(!this._portal||this._portal.templateRef!==Re.templateRef)&&(this._portal=new A.VA(Re.templateRef,this._viewContainerRef)),this._portal}}return(gt=qt).\u0275fac=function(Re){return new(Re||gt)(n.rXU(V.hJ),n.rXU(n.aKT),n.rXU(n.c1b),n.rXU(pe),n.rXU($,8),n.rXU(J,10),n.rXU(x.dS,8),n.rXU(l.FN),n.rXU(n.SKi))},gt.\u0275dir=n.FsC({type:gt,hostVars:3,hostBindings:function(Re,Ze){1&Re&&n.bIt("click",function(xt){return Ze._handleClick(xt)})("mousedown",function(xt){return Ze._handleMousedown(xt)})("keydown",function(xt){return Ze._handleKeydown(xt)}),2&Re&&n.BMQ("aria-haspopup",Ze.menu?"menu":null)("aria-expanded",Ze.menuOpen)("aria-controls",Ze.menuOpen?Ze.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[n.Mj6.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[n.Mj6.None,"matMenuTriggerFor","menu"],menuData:[n.Mj6.None,"matMenuTriggerData","menuData"],restoreFocus:[n.Mj6.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),qt})(),$e=(()=>{var gt;class qt extends je{}return(gt=qt).\u0275fac=(()=>{let ye;return function(Ze){return(ye||(ye=n.xGo(gt)))(Ze||gt)}})(),gt.\u0275dir=n.FsC({type:gt,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.Vt3]}),qt})(),Oe=(()=>{var gt;class qt{}return(gt=qt).\u0275fac=function(Re){return new(Re||gt)},gt.\u0275mod=n.$C({type:gt}),gt.\u0275inj=n.G2t({providers:[ke],imports:[T.MD,c.pZ,c.yE,V.z_,F.Gj,c.yE]}),qt})()},20288:(Ue,W,d)=>{"use strict";d.d(W,{HM:()=>S,PO:()=>r});var n=d(58527),p=(d(61142),d(51635)),m=d(6364);const _=new n.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),O=(0,p.Zc)(class{constructor(i){this._elementRef=i}},"primary");let S=(()=>{var i;class a extends O{constructor(g,c,T,A,L){super(g),this._ngZone=c,this._changeDetectorRef=T,this._animationMode=A,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new n.bkB,this._mode="determinate",this._transitionendHandler=x=>{0===this.animationEnd.observers.length||!x.target||!x.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===A,L&&(L.color&&(this.color=this.defaultColor=L.color),this.mode=L.mode||this.mode)}get value(){return this._value}set value(g){this._value=y((0,m.OE)(g)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(g){this._bufferValue=y((0,m.OE)(g)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(g){this._mode=g,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return(i=a).\u0275fac=function(g){return new(g||i)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(n.gRc),n.rXU(n.bc$,8),n.rXU(_,8))},i.\u0275cmp=n.VBU({type:i,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(g,c){2&g&&(n.BMQ("aria-valuenow",c._isIndeterminate()?null:c.value)("mode",c.mode),n.AVh("_mat-animation-noopable",c._isNoopAnimation)("mdc-linear-progress--animation-ready",!c._isNoopAnimation)("mdc-linear-progress--indeterminate",c._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.Vt3],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(g,c){1&g&&(n.j41(0,"div",0),n.nrm(1,"div",1)(2,"div",2),n.k0s(),n.j41(3,"div",3),n.nrm(4,"span",4),n.k0s(),n.j41(5,"div",5),n.nrm(6,"span",4),n.k0s()),2&g&&(n.R7$(),n.xc7("flex-basis",c._getBufferBarFlexBasis()),n.R7$(2),n.xc7("transform",c._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),a})();function y(i,a=0,h=100){return Math.max(a,Math.min(h,i))}let r=(()=>{var i;class a{}return(i=a).\u0275fac=function(g){return new(g||i)},i.\u0275mod=n.$C({type:i}),i.\u0275inj=n.G2t({imports:[p.yE]}),a})()},99204:(Ue,W,d)=>{"use strict";d.d(W,{D6:()=>h,LG:()=>i});var n=d(58527),l=d(51635),p=d(6364),m=d(61142);const _=["determinateSpinner"];function P(g,c){if(1&g&&(n.qSk(),n.j41(0,"svg",11),n.nrm(1,"circle",12),n.k0s()),2&g){const T=n.XpG();n.BMQ("viewBox",T._viewBox()),n.R7$(),n.xc7("stroke-dasharray",T._strokeCircumference(),"px")("stroke-dashoffset",T._strokeCircumference()/2,"px")("stroke-width",T._circleStrokeWidth(),"%"),n.BMQ("r",T._circleRadius())}}const v=(0,l.Zc)(class{constructor(g){this._elementRef=g}},"primary"),O=new n.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function S(){return{diameter:y}}}),y=100;let i=(()=>{var g;class c extends v{constructor(A,L,x){super(A),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=y,this._noopAnimations="NoopAnimations"===L&&!!x&&!x._forceAnimations,x&&(x.color&&(this.color=this.defaultColor=x.color),x.diameter&&(this.diameter=x.diameter),x.strokeWidth&&(this.strokeWidth=x.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(A){this._value=Math.max(0,Math.min(100,(0,p.OE)(A)))}get diameter(){return this._diameter}set diameter(A){this._diameter=(0,p.OE)(A)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(A){this._strokeWidth=(0,p.OE)(A)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const A=2*this._circleRadius()+this.strokeWidth;return`0 0 ${A} ${A}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return(g=c).\u0275fac=function(A){return new(A||g)(n.rXU(n.aKT),n.rXU(n.bc$,8),n.rXU(O))},g.\u0275cmp=n.VBU({type:g,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(A,L){if(1&A&&n.GBs(_,5),2&A){let x;n.mGM(x=n.lsd())&&(L._determinateCircle=x.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(A,L){2&A&&(n.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===L.mode?L.value:null)("mode",L.mode),n.xc7("width",L.diameter,"px")("height",L.diameter,"px")("--mdc-circular-progress-size",L.diameter+"px")("--mdc-circular-progress-active-indicator-width",L.diameter+"px"),n.AVh("_mat-animation-noopable",L._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===L.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[n.Vt3],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(A,L){if(1&A&&(n.DNE(0,P,2,8,"ng-template",null,0,n.C5r),n.j41(2,"div",2,1),n.qSk(),n.j41(4,"svg",3),n.nrm(5,"circle",4),n.k0s()(),n.joV(),n.j41(6,"div",5)(7,"div",6)(8,"div",7),n.eu8(9,8),n.k0s(),n.j41(10,"div",9),n.eu8(11,8),n.k0s(),n.j41(12,"div",10),n.eu8(13,8),n.k0s()()()),2&A){const x=n.sdS(1);n.R7$(4),n.BMQ("viewBox",L._viewBox()),n.R7$(),n.xc7("stroke-dasharray",L._strokeCircumference(),"px")("stroke-dashoffset",L._strokeDashOffset(),"px")("stroke-width",L._circleStrokeWidth(),"%"),n.BMQ("r",L._circleRadius()),n.R7$(4),n.Y8G("ngTemplateOutlet",x),n.R7$(2),n.Y8G("ngTemplateOutlet",x),n.R7$(2),n.Y8G("ngTemplateOutlet",x)}},dependencies:[m.T3],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),c})(),h=(()=>{var g;class c{}return(g=c).\u0275fac=function(A){return new(A||g)},g.\u0275mod=n.$C({type:g}),g.\u0275inj=n.G2t({imports:[m.MD,l.yE]}),c})()},49678:(Ue,W,d)=>{"use strict";d.d(W,{VT:()=>x,Wk:()=>D,_g:()=>V});var n=d(58527),l=d(51635),p=d(31308),m=d(6364),_=d(40567),P=d(56106),v=d(61142);const O=["input"],S=["*"];let y=0;class r{constructor(I,k){this.source=I,this.value=k}}const i={provide:P.kq,useExisting:(0,n.Rfq)(()=>x),multi:!0},a=new n.nKC("MatRadioGroup"),h=new n.nKC("mat-radio-default-options",{providedIn:"root",factory:function g(){return{color:"accent"}}});let c=(()=>{var F;class I{get name(){return this._name}set name(R){this._name=R,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(R){this._labelPosition="before"===R?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(R){this._value!==R&&(this._value=R,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(R){this._selected=R,this.value=R?R.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(R){this._disabled=(0,m.he)(R),this._markRadiosForCheck()}get required(){return this._required}set required(R){this._required=(0,m.he)(R),this._markRadiosForCheck()}constructor(R){this._changeDetector=R,this._value=null,this._name="mat-radio-group-"+y++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.bkB}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(R=>R===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(R=>{R.name=this.name,R._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(G=>{G.checked=this.value===G.value,G.checked&&(this._selected=G)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new r(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(R=>R._markForCheck())}writeValue(R){this.value=R,this._changeDetector.markForCheck()}registerOnChange(R){this._controlValueAccessorChangeFn=R}registerOnTouched(R){this.onTouched=R}setDisabledState(R){this.disabled=R,this._changeDetector.markForCheck()}}return(F=I).\u0275fac=function(R){return new(R||F)(n.rXU(n.gRc))},F.\u0275dir=n.FsC({type:F,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),I})();class T{constructor(I){this._elementRef=I}}const A=(0,l.GG)((0,l.BF)(T));let L=(()=>{var F;class I extends A{get checked(){return this._checked}set checked(R){const G=(0,m.he)(R);this._checked!==G&&(this._checked=G,G&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!G&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),G&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(R){this._value!==R&&(this._value=R,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===R),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(R){this._labelPosition=R}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(R){this._setDisabled((0,m.he)(R))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(R){this._required=(0,m.he)(R)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(R){this._color=R}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(R,G,Y,K,$,ee,J,z){super(G),this._changeDetector=Y,this._focusMonitor=K,this._radioDispatcher=$,this._providerOverride=J,this._uniqueId="mat-radio-"+ ++y,this.id=this._uniqueId,this.change=new n.bkB,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=R,this._noopAnimations="NoopAnimations"===ee,z&&(this.tabIndex=(0,m.OE)(z,0))}focus(R,G){G?this._focusMonitor.focusVia(this._inputElement,G,R):this._inputElement.nativeElement.focus(R)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((R,G)=>{R!==this.id&&G===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(R=>{!R&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new r(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(R){R.stopPropagation()}_onInputInteraction(R){if(R.stopPropagation(),!this.checked&&!this.disabled){const G=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),G&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(R){this._onInputInteraction(R),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(R){this._disabled!==R&&(this._disabled=R,this._changeDetector.markForCheck())}_updateTabIndex(){const R=this.radioGroup;let G;if(G=R&&R.selected&&!this.disabled?R.selected===this?this.tabIndex:-1:this.tabIndex,G!==this._previousTabIndex){const Y=this._inputElement?.nativeElement;Y&&(Y.setAttribute("tabindex",G+""),this._previousTabIndex=G)}}}return(F=I).\u0275fac=function(R){n.QTQ()},F.\u0275dir=n.FsC({type:F,viewQuery:function(R,G){if(1&R&&n.GBs(O,5),2&R){let Y;n.mGM(Y=n.lsd())&&(G._inputElement=Y.first)}},inputs:{id:"id",name:"name",ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[n.Mj6.None,"aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[n.Vt3]}),I})(),x=(()=>{var F;class I extends c{}return(F=I).\u0275fac=(()=>{let k;return function(G){return(k||(k=n.xGo(F)))(G||F)}})(),F.\u0275dir=n.FsC({type:F,selectors:[["mat-radio-group"]],contentQueries:function(R,G,Y){if(1&R&&n.wni(Y,V,5),2&R){let K;n.mGM(K=n.lsd())&&(G._radios=K)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[n.Jv_([i,{provide:a,useExisting:F}]),n.Vt3]}),I})(),V=(()=>{var F;class I extends L{constructor(R,G,Y,K,$,ee,J,z){super(R,G,Y,K,$,ee,J,z)}}return(F=I).\u0275fac=function(R){return new(R||F)(n.rXU(a,8),n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(p.FN),n.rXU(_.zP),n.rXU(n.bc$,8),n.rXU(h,8),n.kS0("tabindex"))},F.\u0275cmp=n.VBU({type:F,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(R,G){1&R&&n.bIt("focus",function(){return G._inputElement.nativeElement.focus()}),2&R&&(n.BMQ("id",G.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.AVh("mat-primary","primary"===G.color)("mat-accent","accent"===G.color)("mat-warn","warn"===G.color)("mat-mdc-radio-checked",G.checked)("_mat-animation-noopable",G._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.Vt3],ngContentSelectors:S,decls:13,vars:17,consts:[["formField",""],["input",""],[1,"mdc-form-field"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(R,G){if(1&R){const Y=n.RV6();n.NAR(),n.j41(0,"div",2,0)(2,"div",3)(3,"div",4),n.bIt("click",function($){return n.eBV(Y),n.Njj(G._onTouchTargetClick($))}),n.k0s(),n.j41(4,"input",5,1),n.bIt("change",function($){return n.eBV(Y),n.Njj(G._onInputInteraction($))}),n.k0s(),n.j41(6,"div",6),n.nrm(7,"div",7)(8,"div",8),n.k0s(),n.j41(9,"div",9),n.nrm(10,"div",10),n.k0s()(),n.j41(11,"label",11),n.SdG(12),n.k0s()()}if(2&R){const Y=n.sdS(1);n.AVh("mdc-form-field--align-end","before"==G.labelPosition),n.R7$(2),n.AVh("mdc-radio--disabled",G.disabled),n.R7$(2),n.Y8G("id",G.inputId)("checked",G.checked)("disabled",G.disabled)("required",G.required),n.BMQ("name",G.name)("value",G.value)("aria-label",G.ariaLabel)("aria-labelledby",G.ariaLabelledby)("aria-describedby",G.ariaDescribedby),n.R7$(5),n.Y8G("matRippleTrigger",Y)("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",!0),n.R7$(2),n.Y8G("for",G.inputId)}},dependencies:[l.r6],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),I})(),D=(()=>{var F;class I{}return(F=I).\u0275fac=function(R){return new(R||F)},F.\u0275mod=n.$C({type:F}),F.\u0275inj=n.G2t({imports:[l.yE,v.MD,l.pZ,l.yE]}),I})()},12949:(Ue,W,d)=>{"use strict";d.d(W,{VO:()=>pe,Ve:()=>_e});var n=d(61904),l=d(61142),p=d(58527),m=d(51635),_=d(74292),P=d(37278),v=d(31308),O=d(51394),S=d(6364),y=d(40567),r=d(25373),i=d(56106),a=d(80583),h=d(63997),g=d(16229),c=d(34593),T=d(72147),A=d(65706),L=d(8619),x=d(83915),V=d(53461),D=d(4208),F=d(40262);const I=["trigger"],k=["panel"],R=[[["mat-select-trigger"]],"*"],G=["mat-select-trigger","*"];function Y(ke,De){if(1&ke&&(p.j41(0,"span",11),p.EFF(1),p.k0s()),2&ke){const Me=p.XpG();p.R7$(),p.JRh(Me.placeholder)}}function K(ke,De){if(1&ke&&(p.j41(0,"span",15),p.EFF(1),p.k0s()),2&ke){const Me=p.XpG(2);p.R7$(),p.JRh(Me.triggerValue)}}function $(ke,De){1&ke&&p.SdG(0,0,["*ngSwitchCase","true"])}function ee(ke,De){if(1&ke&&(p.j41(0,"span",12),p.DNE(1,K,2,1,"span",13)(2,$,1,0,"ng-content",14),p.k0s()),2&ke){const Me=p.XpG();p.Y8G("ngSwitch",!!Me.customTrigger),p.R7$(2),p.Y8G("ngSwitchCase",!0)}}function J(ke,De){if(1&ke){const Me=p.RV6();p.j41(0,"div",16,1),p.bIt("@transformPanel.done",function($e){p.eBV(Me);const Oe=p.XpG();return p.Njj(Oe._panelDoneAnimatingStream.next($e.toState))})("keydown",function($e){p.eBV(Me);const Oe=p.XpG();return p.Njj(Oe._handleKeydown($e))}),p.SdG(2,1),p.k0s()}if(2&ke){const Me=p.XpG();p.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Me._getPanelTheme(),""),p.Y8G("ngClass",Me.panelClass)("@transformPanel","showing"),p.BMQ("id",Me.id+"-panel")("aria-multiselectable",Me.multiple)("aria-label",Me.ariaLabel||null)("aria-labelledby",Me._getPanelAriaLabelledby())}}const z={transformPanelWrap:(0,F.hZ)("transformPanelWrap",[(0,F.kY)("* => void",(0,F.P)("@transformPanel",[(0,F.MA)()],{optional:!0}))]),transformPanel:(0,F.hZ)("transformPanel",[(0,F.wk)("void",(0,F.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,F.kY)("void => showing",(0,F.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,F.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,F.kY)("* => void",(0,F.i0)("100ms linear",(0,F.iF)({opacity:0})))])};let ge=0;const oe=new p.nKC("mat-select-scroll-strategy"),ue=new p.nKC("MAT_SELECT_CONFIG"),N={provide:oe,deps:[n.hJ],useFactory:function xe(ke){return()=>ke.scrollStrategies.reposition()}},se=new p.nKC("MatSelectTrigger");class ce{constructor(De,Me){this.source=De,this.value=Me}}const Z=(0,m.GG)((0,m.BF)((0,m.Ob)((0,m.J8)(class{constructor(ke,De,Me,je,$e){this._elementRef=ke,this._defaultErrorStateMatcher=De,this._parentForm=Me,this._parentFormGroup=je,this.ngControl=$e,this.stateChanges=new a.B7}}))));let de=(()=>{var ke;class De extends Z{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(je){this._placeholder=je,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(i.k0.required)??!1}set required(je){this._required=(0,S.he)(je),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(je){this._multiple=(0,S.he)(je)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(je){this._disableOptionCentering=(0,S.he)(je)}get compareWith(){return this._compareWith}set compareWith(je){this._compareWith=je,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(je){this._assignValue(je)&&this._onChange(je)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(je){this._typeaheadDebounceInterval=(0,S.OE)(je)}get id(){return this._id}set id(je){this._id=je||this._uid,this.stateChanges.next()}constructor(je,$e,Oe,gt,qt,ye,Re,Ze,et,xt,un,ct,Gt,pn){super(qt,gt,Re,Ze,xt),this._viewportRuler=je,this._changeDetectorRef=$e,this._ngZone=Oe,this._dir=ye,this._parentFormField=et,this._liveAnnouncer=Gt,this._defaultOptions=pn,this._panelOpen=!1,this._compareWith=(st,mn)=>st===mn,this._uid="mat-select-"+ge++,this._triggerAriaLabelledBy=null,this._destroy=new a.B7,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ge++,this._panelDoneAnimatingStream=new a.B7,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,h.v)(()=>{const st=this.options;return st?st.changes.pipe((0,c.Z)(st),(0,T.n)(()=>(0,g.h)(...st.map(mn=>mn.onSelectionChange)))):this._ngZone.onStable.pipe((0,A.s)(1),(0,T.n)(()=>this.optionSelectionChanges))}),this.openedChange=new p.bkB,this._openedStream=this.openedChange.pipe((0,L.p)(st=>st),(0,x.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,L.p)(st=>!st),(0,x.T)(()=>{})),this.selectionChange=new p.bkB,this.valueChange=new p.bkB,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=pn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=pn.typeaheadDebounceInterval),this._scrollStrategyFactory=ct,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(un)||0,this.id=this.id}ngOnInit(){this._selectionModel=new y.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,V.F)(),(0,D.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,D.Q)(this._destroy)).subscribe(je=>{je.added.forEach($e=>$e.select()),je.removed.forEach($e=>$e.deselect())}),this.options.changes.pipe((0,c.Z)(null),(0,D.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const je=this._getTriggerAriaLabelledby(),$e=this.ngControl;if(je!==this._triggerAriaLabelledBy){const Oe=this._elementRef.nativeElement;this._triggerAriaLabelledBy=je,je?Oe.setAttribute("aria-labelledby",je):Oe.removeAttribute("aria-labelledby")}$e&&(this._previousControl!==$e.control&&(void 0!==this._previousControl&&null!==$e.disabled&&$e.disabled!==this.disabled&&(this.disabled=$e.disabled),this._previousControl=$e.control),this.updateErrorState())}ngOnChanges(je){(je.disabled||je.userAriaDescribedBy)&&this.stateChanges.next(),je.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const je=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!je)return;const $e=`${this.id}-panel`;this._trackedModal&&(0,v.Ae)(this._trackedModal,"aria-owns",$e),(0,v.px)(je,"aria-owns",$e),this._trackedModal=je}_clearFromModal(){this._trackedModal&&((0,v.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(je){this._assignValue(je)}registerOnChange(je){this._onChange=je}registerOnTouched(je){this._onTouched=je}setDisabledState(je){this.disabled=je,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const je=this._selectionModel.selected.map($e=>$e.viewValue);return this._isRtl()&&je.reverse(),je.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(je){this.disabled||(this.panelOpen?this._handleOpenKeydown(je):this._handleClosedKeydown(je))}_handleClosedKeydown(je){const $e=je.keyCode,Oe=$e===r.n6||$e===r.i7||$e===r.UQ||$e===r.LE,gt=$e===r.Fm||$e===r.t6,qt=this._keyManager;if(!qt.isTyping()&>&&!(0,r.rp)(je)||(this.multiple||je.altKey)&&Oe)je.preventDefault(),this.open();else if(!this.multiple){const ye=this.selected;qt.onKeydown(je);const Re=this.selected;Re&&ye!==Re&&this._liveAnnouncer.announce(Re.viewValue,1e4)}}_handleOpenKeydown(je){const $e=this._keyManager,Oe=je.keyCode,gt=Oe===r.n6||Oe===r.i7,qt=$e.isTyping();if(gt&&je.altKey)je.preventDefault(),this.close();else if(qt||Oe!==r.Fm&&Oe!==r.t6||!$e.activeItem||(0,r.rp)(je))if(!qt&&this._multiple&&Oe===r.A&&je.ctrlKey){je.preventDefault();const ye=this.options.some(Re=>!Re.disabled&&!Re.selected);this.options.forEach(Re=>{Re.disabled||(ye?Re.select():Re.deselect())})}else{const ye=$e.activeItemIndex;$e.onKeydown(je),this._multiple&>&&je.shiftKey&&$e.activeItem&&$e.activeItemIndex!==ye&&$e.activeItem._selectViaInteraction()}else je.preventDefault(),$e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,A.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(je){if(this.options.forEach($e=>$e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&je)Array.isArray(je),je.forEach($e=>this._selectOptionByValue($e)),this._sortValues();else{const $e=this._selectOptionByValue(je);$e?this._keyManager.updateActiveItem($e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(je){const $e=this.options.find(Oe=>{if(this._selectionModel.isSelected(Oe))return!1;try{return null!=Oe.value&&this._compareWith(Oe.value,je)}catch{return!1}});return $e&&this._selectionModel.select($e),$e}_assignValue(je){return!!(je!==this._value||this._multiple&&Array.isArray(je))&&(this.options&&this._setSelectionByValue(je),this._value=je,!0)}_skipPredicate(je){return je.disabled}_initKeyManager(){this._keyManager=new v.Au(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const je=(0,g.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,D.Q)(je)).subscribe($e=>{this._onSelect($e.source,$e.isUserInput),$e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,g.h)(...this.options.map($e=>$e._stateChanges)).pipe((0,D.Q)(je)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(je,$e){const Oe=this._selectionModel.isSelected(je);null!=je.value||this._multiple?(Oe!==je.selected&&(je.selected?this._selectionModel.select(je):this._selectionModel.deselect(je)),$e&&this._keyManager.setActiveItem(je),this.multiple&&(this._sortValues(),$e&&this.focus())):(je.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(je.value)),Oe!==this._selectionModel.isSelected(je)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const je=this.options.toArray();this._selectionModel.sort(($e,Oe)=>this.sortComparator?this.sortComparator($e,Oe,je):je.indexOf($e)-je.indexOf(Oe)),this.stateChanges.next()}}_propagateChanges(je){let $e=null;$e=this.multiple?this.selected.map(Oe=>Oe.value):this.selected?this.selected.value:je,this._value=$e,this.valueChange.emit($e),this._onChange($e),this.selectionChange.emit(this._getChangeEvent($e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let je=-1;for(let $e=0;$e<this.options.length;$e++)if(!this.options.get($e).disabled){je=$e;break}this._keyManager.setActiveItem(je)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(je){this._elementRef.nativeElement.focus(je)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const je=this._parentFormField?.getLabelId();return this.ariaLabelledby?(je?je+" ":"")+this.ariaLabelledby:je}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const je=this._parentFormField?.getLabelId();let $e=(je?je+" ":"")+this._valueId;return this.ariaLabelledby&&($e+=" "+this.ariaLabelledby),$e}_panelDoneAnimating(je){this.openedChange.emit(je)}setDescribedByIds(je){je.length?this._elementRef.nativeElement.setAttribute("aria-describedby",je.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return(ke=De).\u0275fac=function(je){return new(je||ke)(p.rXU(P.Xj),p.rXU(p.gRc),p.rXU(p.SKi),p.rXU(m.es),p.rXU(p.aKT),p.rXU(O.dS,8),p.rXU(i.cV,8),p.rXU(i.j4,8),p.rXU(_.xb,8),p.rXU(i.vO,10),p.kS0("tabindex"),p.rXU(oe),p.rXU(v.Ai),p.rXU(ue,8))},ke.\u0275dir=p.FsC({type:ke,viewQuery:function(je,$e){if(1&je&&(p.GBs(I,5),p.GBs(k,5),p.GBs(n.WB,5)),2&je){let Oe;p.mGM(Oe=p.lsd())&&($e.trigger=Oe.first),p.mGM(Oe=p.lsd())&&($e.panel=Oe.first),p.mGM(Oe=p.lsd())&&($e._overlayDir=Oe.first)}},inputs:{userAriaDescribedBy:[p.Mj6.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:[p.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[p.Mj6.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[p.Vt3,p.OA$]}),De})(),pe=(()=>{var ke;class De extends de{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=je=>!this.panelOpen&&je.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,D.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(je){const $e=this.options.toArray()[je];if($e){const Oe=this.panel.nativeElement,gt=(0,m.jb)(je,this.options,this.optionGroups),qt=$e._getHostElement();Oe.scrollTop=0===je&&1===gt?0:(0,m.TL)(qt.offsetTop,qt.offsetHeight,Oe.scrollTop,Oe.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(je){return new ce(this,je)}_getOverlayWidth(je){return"auto"===this.panelWidth?(je instanceof n.$Q?je.elementRef:je||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(je){this._hideSingleSelectionIndicator=(0,S.he)(je),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const je of this.options)je._changeDetectorRef.markForCheck()}}return(ke=De).\u0275fac=(()=>{let Me;return function($e){return(Me||(Me=p.xGo(ke)))($e||ke)}})(),ke.\u0275cmp=p.VBU({type:ke,selectors:[["mat-select"]],contentQueries:function(je,$e,Oe){if(1&je&&(p.wni(Oe,se,5),p.wni(Oe,m.wT,5),p.wni(Oe,m.QC,5)),2&je){let gt;p.mGM(gt=p.lsd())&&($e.customTrigger=gt.first),p.mGM(gt=p.lsd())&&($e.options=gt),p.mGM(gt=p.lsd())&&($e.optionGroups=gt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(je,$e){1&je&&p.bIt("keydown",function(gt){return $e._handleKeydown(gt)})("focus",function(){return $e._onFocus()})("blur",function(){return $e._onBlur()}),2&je&&(p.BMQ("id",$e.id)("tabindex",$e.tabIndex)("aria-controls",$e.panelOpen?$e.id+"-panel":null)("aria-expanded",$e.panelOpen)("aria-label",$e.ariaLabel||null)("aria-required",$e.required.toString())("aria-disabled",$e.disabled.toString())("aria-invalid",$e.errorState)("aria-activedescendant",$e._getAriaActiveDescendant()),p.AVh("mat-mdc-select-disabled",$e.disabled)("mat-mdc-select-invalid",$e.errorState)("mat-mdc-select-required",$e.required)("mat-mdc-select-empty",$e.empty)("mat-mdc-select-multiple",$e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[p.Jv_([{provide:_.qT,useExisting:ke},{provide:m.is,useExisting:ke}]),p.Vt3],ngContentSelectors:G,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(je,$e){if(1&je){const Oe=p.RV6();p.NAR(R),p.j41(0,"div",2,0),p.bIt("click",function(){return p.eBV(Oe),p.Njj($e.toggle())}),p.j41(3,"div",3),p.DNE(4,Y,2,1,"span",4)(5,ee,3,2,"span",5),p.k0s(),p.j41(6,"div",6)(7,"div",7),p.qSk(),p.j41(8,"svg",8),p.nrm(9,"path",9),p.k0s()()()(),p.DNE(10,J,3,9,"ng-template",10),p.bIt("backdropClick",function(){return p.eBV(Oe),p.Njj($e.close())})("attach",function(){return p.eBV(Oe),p.Njj($e._onAttached())})("detach",function(){return p.eBV(Oe),p.Njj($e.close())})}if(2&je){const Oe=p.sdS(1);p.R7$(3),p.Y8G("ngSwitch",$e.empty),p.BMQ("id",$e._valueId),p.R7$(),p.Y8G("ngSwitchCase",!0),p.R7$(),p.Y8G("ngSwitchCase",!1),p.R7$(5),p.Y8G("cdkConnectedOverlayPanelClass",$e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",$e._scrollStrategy)("cdkConnectedOverlayOrigin",$e._preferredOverlayOrigin||Oe)("cdkConnectedOverlayOpen",$e.panelOpen)("cdkConnectedOverlayPositions",$e._positions)("cdkConnectedOverlayWidth",$e._overlayWidth)}},dependencies:[l.YU,l.ux,l.e1,l.fG,n.WB,n.$Q],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[z.transformPanel]},changeDetection:0}),De})(),_e=(()=>{var ke;class De{}return(ke=De).\u0275fac=function(je){return new(je||ke)},ke.\u0275mod=p.$C({type:ke}),ke.\u0275inj=p.G2t({providers:[N],imports:[l.MD,n.z_,m.Sy,m.yE,P.Gj,_.RG,m.Sy,m.yE]}),De})()},68477:(Ue,W,d)=>{"use strict";d.d(W,{T8:()=>zt,mq:()=>En});var n=d(61142),l=d(58527),p=d(51635),m=d(76614),_=d(26321),P=d(31308),v=d(51394),O=d(10399),S=d(80583),y=d(36877),r=d(43848),i=d(16229),a=d(12532),h=d(17053),g=d(3496),c=d(34593),T=d(53461),A=d(4208),L=d(65706),x=d(72147),V=d(36666),D=d(8619),F=d(40262),I=d(6364),k=d(37278),R=d(72653),G=d(25373);const Y=wt=>({animationDuration:wt}),K=(wt,Un)=>({value:wt,params:Un});function $(wt,Un){}const ee=["*"];function J(wt,Un){1&wt&&l.SdG(0)}const z=["tabListContainer"],te=["tabList"],X=["tabListInner"],re=["nextPaginator"],ge=["previousPaginator"],oe=["tabBodyWrapper"],xe=["tabHeader"];function ue(wt,Un){}function N(wt,Un){if(1&wt&&l.DNE(0,ue,0,0,"ng-template",14),2&wt){const Oi=l.XpG().$implicit;l.Y8G("cdkPortalOutlet",Oi.templateLabel)}}function se(wt,Un){if(1&wt&&l.EFF(0),2&wt){const Oi=l.XpG().$implicit;l.JRh(Oi.textLabel)}}function ce(wt,Un){if(1&wt){const Oi=l.RV6();l.j41(0,"div",8,2),l.bIt("click",function(){const Hn=l.eBV(Oi),pi=Hn.$implicit,Zi=Hn.index,Lr=l.XpG(),Kr=l.sdS(1);return l.Njj(Lr._handleClick(pi,Kr,Zi))})("cdkFocusChange",function(Hn){const pi=l.eBV(Oi).index,Zi=l.XpG();return l.Njj(Zi._tabFocusChanged(Hn,pi))}),l.nrm(2,"span",9)(3,"div",10),l.j41(4,"span",11)(5,"span",12),l.DNE(6,N,1,1,"ng-template",13)(7,se,1,1,"ng-template",null,3,l.C5r),l.k0s()()()}if(2&wt){const Oi=Un.$implicit,At=Un.index,Hn=l.sdS(1),pi=l.sdS(8),Zi=l.XpG();l.AVh("mdc-tab--active",Zi.selectedIndex===At),l.Y8G("id",Zi._getTabLabelId(At))("ngClass",Oi.labelClass)("disabled",Oi.disabled)("fitInkBarToContent",Zi.fitInkBarToContent),l.BMQ("tabIndex",Zi._getTabIndex(At))("aria-posinset",At+1)("aria-setsize",Zi._tabs.length)("aria-controls",Zi._getTabContentId(At))("aria-selected",Zi.selectedIndex===At)("aria-label",Oi.ariaLabel||null)("aria-labelledby",!Oi.ariaLabel&&Oi.ariaLabelledby?Oi.ariaLabelledby:null),l.R7$(3),l.Y8G("matRippleTrigger",Hn)("matRippleDisabled",Oi.disabled||Zi.disableRipple),l.R7$(3),l.Y8G("ngIf",Oi.templateLabel)("ngIfElse",pi)}}function Z(wt,Un){if(1&wt){const Oi=l.RV6();l.j41(0,"mat-tab-body",15),l.bIt("_onCentered",function(){l.eBV(Oi);const Hn=l.XpG();return l.Njj(Hn._removeTabBodyWrapperHeight())})("_onCentering",function(Hn){l.eBV(Oi);const pi=l.XpG();return l.Njj(pi._setTabBodyWrapperHeight(Hn))}),l.k0s()}if(2&wt){const Oi=Un.$implicit,At=Un.index,Hn=l.XpG();l.AVh("mat-mdc-tab-body-active",Hn.selectedIndex===At),l.Y8G("id",Hn._getTabContentId(At))("ngClass",Oi.bodyClass)("content",Oi.content)("position",Oi.position)("origin",Oi.origin)("animationDuration",Hn.animationDuration)("preserveContent",Hn.preserveContent),l.BMQ("tabindex",null!=Hn.contentTabIndex&&Hn.selectedIndex===At?Hn.contentTabIndex:null)("aria-labelledby",Hn._getTabLabelId(At))("aria-hidden",Hn.selectedIndex!==At)}}const pe={translateTab:(0,F.hZ)("translateTab",[(0,F.wk)("center, void, left-origin-center, right-origin-center",(0,F.iF)({transform:"none"})),(0,F.wk)("left",(0,F.iF)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,F.wk)("right",(0,F.iF)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,F.kY)("* => left, * => right, left => center, right => center",(0,F.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,F.kY)("void => left-origin-center",[(0,F.iF)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,F.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,F.kY)("void => right-origin-center",[(0,F.iF)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,F.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let _e=(()=>{var wt;class Un extends m.I3{constructor(At,Hn,pi,Zi){super(At,Hn,Zi),this._host=pi,this._centeringSub=O.y.EMPTY,this._leavingSub=O.y.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,c.Z)(this._host._isCenterPosition(this._host._position))).subscribe(At=>{At&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.OM3),l.rXU(l.c1b),l.rXU((0,l.Rfq)(()=>De)),l.rXU(n.qQ))},wt.\u0275dir=l.FsC({type:wt,selectors:[["","matTabBodyHost",""]],features:[l.Vt3]}),Un})(),ke=(()=>{var wt;class Un{set position(At){this._positionIndex=At,this._computePositionAnimationState()}constructor(At,Hn,pi){this._elementRef=At,this._dir=Hn,this._dirChangeSubscription=O.y.EMPTY,this._translateTabComplete=new S.B7,this._onCentering=new l.bkB,this._beforeCentering=new l.bkB,this._afterLeavingCenter=new l.bkB,this._onCentered=new l.bkB(!0),this.animationDuration="500ms",this.preserveContent=!1,Hn&&(this._dirChangeSubscription=Hn.change.subscribe(Zi=>{this._computePositionAnimationState(Zi),pi.markForCheck()})),this._translateTabComplete.pipe((0,T.F)((Zi,Lr)=>Zi.fromState===Lr.fromState&&Zi.toState===Lr.toState)).subscribe(Zi=>{this._isCenterPosition(Zi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Zi.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(At){const Hn=this._isCenterPosition(At.toState);this._beforeCentering.emit(Hn),Hn&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(At){return"center"==At||"left-origin-center"==At||"right-origin-center"==At}_computePositionAnimationState(At=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==At?"left":"right":this._positionIndex>0?"ltr"==At?"right":"left":"center"}_computePositionFromOrigin(At){const Hn=this._getLayoutDirection();return"ltr"==Hn&&At<=0||"rtl"==Hn&&At>0?"left-origin-center":"right-origin-center"}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.aKT),l.rXU(v.dS,8),l.rXU(l.gRc))},wt.\u0275dir=l.FsC({type:wt,inputs:{_content:[l.Mj6.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Un})(),De=(()=>{var wt;class Un extends ke{constructor(At,Hn,pi){super(At,Hn,pi)}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.aKT),l.rXU(v.dS,8),l.rXU(l.gRc))},wt.\u0275cmp=l.VBU({type:wt,selectors:[["mat-tab-body"]],viewQuery:function(At,Hn){if(1&At&&l.GBs(m.I3,5),2&At){let pi;l.mGM(pi=l.lsd())&&(Hn._portalHost=pi.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[l.Vt3],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(At,Hn){if(1&At){const pi=l.RV6();l.j41(0,"div",1,0),l.bIt("@translateTab.start",function(Lr){return l.eBV(pi),l.Njj(Hn._onTranslateTabStarted(Lr))})("@translateTab.done",function(Lr){return l.eBV(pi),l.Njj(Hn._translateTabComplete.next(Lr))}),l.DNE(2,$,0,0,"ng-template",2),l.k0s()}2&At&&l.Y8G("@translateTab",l.l_i(3,K,Hn._position,l.eq3(1,Y,Hn.animationDuration)))},dependencies:[_e],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[pe.translateTab]}}),Un})();const Me=new l.nKC("MatTabContent");let je=(()=>{var wt;class Un{constructor(At){this.template=At}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.C4Q))},wt.\u0275dir=l.FsC({type:wt,selectors:[["","matTabContent",""]],features:[l.Jv_([{provide:Me,useExisting:wt}])]}),Un})();const $e=new l.nKC("MatTabLabel"),Oe=new l.nKC("MAT_TAB");let gt=(()=>{var wt;class Un extends m.bV{constructor(At,Hn,pi){super(At,Hn),this._closestTab=pi}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.C4Q),l.rXU(l.c1b),l.rXU(Oe,8))},wt.\u0275dir=l.FsC({type:wt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[l.Jv_([{provide:$e,useExisting:wt}]),l.Vt3]}),Un})();const qt="mdc-tab-indicator--active",ye="mdc-tab-indicator--no-transition";class Re{constructor(Un){this._items=Un}hide(){this._items.forEach(Un=>Un.deactivateInkBar())}alignToElement(Un){const Oi=this._items.find(Hn=>Hn.elementRef.nativeElement===Un),At=this._currentItem;if(Oi!==At&&(At?.deactivateInkBar(),Oi)){const Hn=At?.elementRef.nativeElement.getBoundingClientRect?.();Oi.activateInkBar(Hn),this._currentItem=Oi}}}function Ze(wt){return class extends wt{constructor(...Un){super(...Un),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Un){const Oi=(0,I.he)(Un);this._fitToContent!==Oi&&(this._fitToContent=Oi,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Un){const Oi=this.elementRef.nativeElement;if(!Un||!Oi.getBoundingClientRect||!this._inkBarContentElement)return void Oi.classList.add(qt);const At=Oi.getBoundingClientRect(),Hn=Un.width/At.width,pi=Un.left-At.left;Oi.classList.add(ye),this._inkBarContentElement.style.setProperty("transform",`translateX(${pi}px) scaleX(${Hn})`),Oi.getBoundingClientRect(),Oi.classList.remove(ye),Oi.classList.add(qt),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(qt)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Un=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=Un.createElement("span"),this._inkBarContentElement=Un.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const un=(0,p.Ob)(class{}),Gt=Ze((()=>{var wt;class Un extends un{constructor(At){super(),this.elementRef=At}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.aKT))},wt.\u0275dir=l.FsC({type:wt,features:[l.Vt3]}),Un})());let pn=(()=>{var wt;class Un extends Gt{}return(wt=Un).\u0275fac=(()=>{let Oi;return function(Hn){return(Oi||(Oi=l.xGo(wt)))(Hn||wt)}})(),wt.\u0275dir=l.FsC({type:wt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(At,Hn){2&At&&(l.BMQ("aria-disabled",!!Hn.disabled),l.AVh("mat-mdc-tab-disabled",Hn.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[l.Vt3]}),Un})();const st=(0,p.Ob)(class{}),mn=new l.nKC("MAT_TAB_GROUP");let Bn=(()=>{var wt;class Un extends st{get content(){return this._contentPortal}constructor(At,Hn){super(),this._viewContainerRef=At,this._closestTabGroup=Hn,this.textLabel="",this._contentPortal=null,this._stateChanges=new S.B7,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(At){(At.hasOwnProperty("textLabel")||At.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new m.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(At){At&&At._closestTab===this&&(this._templateLabel=At)}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.c1b),l.rXU(mn,8))},wt.\u0275dir=l.FsC({type:wt,viewQuery:function(At,Hn){if(1&At&&l.GBs(l.C4Q,7),2&At){let pi;l.mGM(pi=l.lsd())&&(Hn._implicitContent=pi.first)}},inputs:{textLabel:[l.Mj6.None,"label","textLabel"],ariaLabel:[l.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[l.Mj6.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[l.Vt3,l.OA$]}),Un})(),En=(()=>{var wt;class Un extends Bn{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(At){this._setTemplateLabelInput(At)}}return(wt=Un).\u0275fac=(()=>{let Oi;return function(Hn){return(Oi||(Oi=l.xGo(wt)))(Hn||wt)}})(),wt.\u0275cmp=l.VBU({type:wt,selectors:[["mat-tab"]],contentQueries:function(At,Hn,pi){if(1&At&&(l.wni(pi,je,7,l.C4Q),l.wni(pi,gt,5)),2&At){let Zi;l.mGM(Zi=l.lsd())&&(Hn._explicitContent=Zi.first),l.mGM(Zi=l.lsd())&&(Hn.templateLabel=Zi.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[l.Jv_([{provide:Oe,useExisting:wt}]),l.Vt3],ngContentSelectors:ee,decls:1,vars:0,template:function(At,Hn){1&At&&(l.NAR(),l.DNE(0,J,1,0,"ng-template"))},encapsulation:2}),Un})();const Cn=(0,R.BQ)({passive:!0});let nn=(()=>{var wt;class Un{get disablePagination(){return this._disablePagination}set disablePagination(At){this._disablePagination=(0,I.he)(At)}get selectedIndex(){return this._selectedIndex}set selectedIndex(At){At=(0,I.OE)(At),this._selectedIndex!=At&&(this._selectedIndexChanged=!0,this._selectedIndex=At,this._keyManager&&this._keyManager.updateActiveItem(At))}constructor(At,Hn,pi,Zi,Lr,Kr,Qt){this._elementRef=At,this._changeDetectorRef=Hn,this._viewportRuler=pi,this._dir=Zi,this._ngZone=Lr,this._platform=Kr,this._animationMode=Qt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new S.B7,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new S.B7,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new l.bkB,this.indexFocused=new l.bkB,Lr.runOutsideAngular(()=>{(0,y.R)(At.nativeElement,"mouseleave").pipe((0,A.Q)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,y.R)(this._previousPaginator.nativeElement,"touchstart",Cn).pipe((0,A.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,y.R)(this._nextPaginator.nativeElement,"touchstart",Cn).pipe((0,A.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const At=this._dir?this._dir.change:(0,r.of)("ltr"),Hn=this._viewportRuler.change(150),pi=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new P.Bu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,L.s)(1)).subscribe(pi),(0,i.h)(At,Hn,this._items.changes,this._itemsResized()).pipe((0,A.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),pi()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Zi=>{this.indexFocused.emit(Zi),this._setTabFocus(Zi)})}_itemsResized(){return"function"!=typeof ResizeObserver?a.w:this._items.changes.pipe((0,c.Z)(this._items),(0,x.n)(At=>new h.c(Hn=>this._ngZone.runOutsideAngular(()=>{const pi=new ResizeObserver(Zi=>Hn.next(Zi));return At.forEach(Zi=>pi.observe(Zi.elementRef.nativeElement)),()=>{pi.disconnect()}}))),(0,V.i)(1),(0,D.p)(At=>At.some(Hn=>Hn.contentRect.width>0&&Hn.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(At){if(!(0,G.rp)(At))switch(At.keyCode){case G.Fm:case G.t6:if(this.focusIndex!==this.selectedIndex){const Hn=this._items.get(this.focusIndex);Hn&&!Hn.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(At))}break;default:this._keyManager.onKeydown(At)}}_onContentChanges(){const At=this._elementRef.nativeElement.textContent;At!==this._currentTextContent&&(this._currentTextContent=At||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(At){!this._isValidIndex(At)||this.focusIndex===At||!this._keyManager||this._keyManager.setActiveItem(At)}_isValidIndex(At){return!this._items||!!this._items.toArray()[At]}_setTabFocus(At){if(this._showPaginationControls&&this._scrollToLabel(At),this._items&&this._items.length){this._items.toArray()[At].focus();const Hn=this._tabListContainer.nativeElement;Hn.scrollLeft="ltr"==this._getLayoutDirection()?0:Hn.scrollWidth-Hn.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const At=this.scrollDistance,Hn="ltr"===this._getLayoutDirection()?-At:At;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Hn)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(At){this._scrollTo(At)}_scrollHeader(At){return this._scrollTo(this._scrollDistance+("before"==At?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(At){this._stopInterval(),this._scrollHeader(At)}_scrollToLabel(At){if(this.disablePagination)return;const Hn=this._items?this._items.toArray()[At]:null;if(!Hn)return;const pi=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Zi,offsetWidth:Lr}=Hn.elementRef.nativeElement;let Kr,Qt;"ltr"==this._getLayoutDirection()?(Kr=Zi,Qt=Kr+Lr):(Qt=this._tabListInner.nativeElement.offsetWidth-Zi,Kr=Qt-Lr);const di=this.scrollDistance,ji=this.scrollDistance+pi;Kr<di?this.scrollDistance-=di-Kr:Qt>ji&&(this.scrollDistance+=Math.min(Qt-ji,Kr-di))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const At=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;At||(this.scrollDistance=0),At!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=At}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const At=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Hn=At?At.elementRef.nativeElement:null;Hn?this._inkBar.alignToElement(Hn):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(At,Hn){Hn&&null!=Hn.button&&0!==Hn.button||(this._stopInterval(),(0,g.O)(650,100).pipe((0,A.Q)((0,i.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:pi,distance:Zi}=this._scrollHeader(At);(0===Zi||Zi>=pi)&&this._stopInterval()}))}_scrollTo(At){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Hn=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Hn,At)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Hn,distance:this._scrollDistance}}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(k.Xj),l.rXU(v.dS,8),l.rXU(l.SKi),l.rXU(R.OD),l.rXU(l.bc$,8))},wt.\u0275dir=l.FsC({type:wt,inputs:{disablePagination:"disablePagination"}}),Un})(),yn=(()=>{var wt;class Un extends nn{get disableRipple(){return this._disableRipple}set disableRipple(At){this._disableRipple=(0,I.he)(At)}constructor(At,Hn,pi,Zi,Lr,Kr,Qt){super(At,Hn,pi,Zi,Lr,Kr,Qt),this._disableRipple=!1}_itemSelected(At){At.preventDefault()}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(k.Xj),l.rXU(v.dS,8),l.rXU(l.SKi),l.rXU(R.OD),l.rXU(l.bc$,8))},wt.\u0275dir=l.FsC({type:wt,inputs:{disableRipple:"disableRipple"},features:[l.Vt3]}),Un})(),Xn=(()=>{var wt;class Un extends yn{constructor(At,Hn,pi,Zi,Lr,Kr,Qt){super(At,Hn,pi,Zi,Lr,Kr,Qt)}ngAfterContentInit(){this._inkBar=new Re(this._items),super.ngAfterContentInit()}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(k.Xj),l.rXU(v.dS,8),l.rXU(l.SKi),l.rXU(R.OD),l.rXU(l.bc$,8))},wt.\u0275cmp=l.VBU({type:wt,selectors:[["mat-tab-header"]],contentQueries:function(At,Hn,pi){if(1&At&&l.wni(pi,pn,4),2&At){let Zi;l.mGM(Zi=l.lsd())&&(Hn._items=Zi)}},viewQuery:function(At,Hn){if(1&At&&(l.GBs(z,7),l.GBs(te,7),l.GBs(X,7),l.GBs(re,5),l.GBs(ge,5)),2&At){let pi;l.mGM(pi=l.lsd())&&(Hn._tabListContainer=pi.first),l.mGM(pi=l.lsd())&&(Hn._tabList=pi.first),l.mGM(pi=l.lsd())&&(Hn._tabListInner=pi.first),l.mGM(pi=l.lsd())&&(Hn._nextPaginator=pi.first),l.mGM(pi=l.lsd())&&(Hn._previousPaginator=pi.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(At,Hn){2&At&&l.AVh("mat-mdc-tab-header-pagination-controls-enabled",Hn._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Hn._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[l.Vt3],ngContentSelectors:ee,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(At,Hn){if(1&At){const pi=l.RV6();l.NAR(),l.j41(0,"button",5,0),l.bIt("click",function(){return l.eBV(pi),l.Njj(Hn._handlePaginatorClick("before"))})("mousedown",function(Lr){return l.eBV(pi),l.Njj(Hn._handlePaginatorPress("before",Lr))})("touchend",function(){return l.eBV(pi),l.Njj(Hn._stopInterval())}),l.nrm(2,"div",6),l.k0s(),l.j41(3,"div",7,1),l.bIt("keydown",function(Lr){return l.eBV(pi),l.Njj(Hn._handleKeydown(Lr))}),l.j41(5,"div",8,2),l.bIt("cdkObserveContent",function(){return l.eBV(pi),l.Njj(Hn._onContentChanges())}),l.j41(7,"div",9,3),l.SdG(9),l.k0s()()(),l.j41(10,"button",10,4),l.bIt("mousedown",function(Lr){return l.eBV(pi),l.Njj(Hn._handlePaginatorPress("after",Lr))})("click",function(){return l.eBV(pi),l.Njj(Hn._handlePaginatorClick("after"))})("touchend",function(){return l.eBV(pi),l.Njj(Hn._stopInterval())}),l.nrm(12,"div",6),l.k0s()}2&At&&(l.AVh("mat-mdc-tab-header-pagination-disabled",Hn._disableScrollBefore),l.Y8G("matRippleDisabled",Hn._disableScrollBefore||Hn.disableRipple)("disabled",Hn._disableScrollBefore||null),l.R7$(3),l.AVh("_mat-animation-noopable","NoopAnimations"===Hn._animationMode),l.R7$(7),l.AVh("mat-mdc-tab-header-pagination-disabled",Hn._disableScrollAfter),l.Y8G("matRippleDisabled",Hn._disableScrollAfter||Hn.disableRipple)("disabled",Hn._disableScrollAfter||null))},dependencies:[p.r6,_.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),Un})();const rn=new l.nKC("MAT_TABS_CONFIG");let ai=0;const ri=(0,p.Zc)((0,p.GG)(class{constructor(wt){this._elementRef=wt}}),"primary");let Ne=(()=>{var wt;class Un extends ri{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(At){this._dynamicHeight=(0,I.he)(At)}get selectedIndex(){return this._selectedIndex}set selectedIndex(At){this._indexToSelect=(0,I.OE)(At,null)}get animationDuration(){return this._animationDuration}set animationDuration(At){this._animationDuration=/^\d+$/.test(At+"")?At+"ms":At}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(At){this._contentTabIndex=(0,I.OE)(At,null)}get disablePagination(){return this._disablePagination}set disablePagination(At){this._disablePagination=(0,I.he)(At)}get preserveContent(){return this._preserveContent}set preserveContent(At){this._preserveContent=(0,I.he)(At)}get backgroundColor(){return this._backgroundColor}set backgroundColor(At){const Hn=this._elementRef.nativeElement.classList;Hn.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),At&&Hn.add("mat-tabs-with-background",`mat-background-${At}`),this._backgroundColor=At}constructor(At,Hn,pi,Zi){super(At),this._changeDetectorRef=Hn,this._animationMode=Zi,this._tabs=new l.rOR,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=O.y.EMPTY,this._tabLabelSubscription=O.y.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new l.bkB,this.focusChange=new l.bkB,this.animationDone=new l.bkB,this.selectedTabChange=new l.bkB(!0),this._groupId=ai++,this.animationDuration=pi&&pi.animationDuration?pi.animationDuration:"500ms",this.disablePagination=!(!pi||null==pi.disablePagination)&&pi.disablePagination,this.dynamicHeight=!(!pi||null==pi.dynamicHeight)&&pi.dynamicHeight,this.contentTabIndex=pi?.contentTabIndex??null,this.preserveContent=!!pi?.preserveContent}ngAfterContentChecked(){const At=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=At){const Hn=null==this._selectedIndex;if(!Hn){this.selectedTabChange.emit(this._createChangeEvent(At));const pi=this._tabBodyWrapper.nativeElement;pi.style.minHeight=pi.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((pi,Zi)=>pi.isActive=Zi===At),Hn||(this.selectedIndexChange.emit(At),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Hn,pi)=>{Hn.position=pi-At,null!=this._selectedIndex&&0==Hn.position&&!Hn.origin&&(Hn.origin=At-this._selectedIndex)}),this._selectedIndex!==At&&(this._selectedIndex=At,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const At=this._clampTabIndex(this._indexToSelect);if(At===this._selectedIndex){const Hn=this._tabs.toArray();let pi;for(let Zi=0;Zi<Hn.length;Zi++)if(Hn[Zi].isActive){this._indexToSelect=this._selectedIndex=Zi,this._lastFocusedTabIndex=null,pi=Hn[Zi];break}!pi&&Hn[At]&&Promise.resolve().then(()=>{Hn[At].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(At))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,c.Z)(this._allTabs)).subscribe(At=>{this._tabs.reset(At.filter(Hn=>Hn._closestTabGroup===this||!Hn._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(At){const Hn=this._tabHeader;Hn&&(Hn.focusIndex=At)}_focusChanged(At){this._lastFocusedTabIndex=At,this.focusChange.emit(this._createChangeEvent(At))}_createChangeEvent(At){const Hn=new vt;return Hn.index=At,this._tabs&&this._tabs.length&&(Hn.tab=this._tabs.toArray()[At]),Hn}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,i.h)(...this._tabs.map(At=>At._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(At){return Math.min(this._tabs.length-1,Math.max(At||0,0))}_getTabLabelId(At){return`mat-tab-label-${this._groupId}-${At}`}_getTabContentId(At){return`mat-tab-content-${this._groupId}-${At}`}_setTabBodyWrapperHeight(At){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Hn=this._tabBodyWrapper.nativeElement;Hn.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Hn.style.height=At+"px")}_removeTabBodyWrapperHeight(){const At=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=At.clientHeight,At.style.height="",this.animationDone.emit()}_handleClick(At,Hn,pi){Hn.focusIndex=pi,At.disabled||(this.selectedIndex=pi)}_getTabIndex(At){return At===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(At,Hn){At&&"mouse"!==At&&"touch"!==At&&(this._tabHeader.focusIndex=Hn)}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(rn,8),l.rXU(l.bc$,8))},wt.\u0275dir=l.FsC({type:wt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[l.Vt3]}),Un})(),zt=(()=>{var wt;class Un extends Ne{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(At){this._fitInkBarToContent=(0,I.he)(At),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(At){this._stretchTabs=(0,I.he)(At)}constructor(At,Hn,pi,Zi){super(At,Hn,pi,Zi),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!pi||null==pi.fitInkBarToContent)&&pi.fitInkBarToContent,this.stretchTabs=!pi||null==pi.stretchTabs||pi.stretchTabs}}return(wt=Un).\u0275fac=function(At){return new(At||wt)(l.rXU(l.aKT),l.rXU(l.gRc),l.rXU(rn,8),l.rXU(l.bc$,8))},wt.\u0275cmp=l.VBU({type:wt,selectors:[["mat-tab-group"]],contentQueries:function(At,Hn,pi){if(1&At&&l.wni(pi,En,5),2&At){let Zi;l.mGM(Zi=l.lsd())&&(Hn._allTabs=Zi)}},viewQuery:function(At,Hn){if(1&At&&(l.GBs(oe,5),l.GBs(xe,5)),2&At){let pi;l.mGM(pi=l.lsd())&&(Hn._tabBodyWrapper=pi.first),l.mGM(pi=l.lsd())&&(Hn._tabHeader=pi.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(At,Hn){2&At&&(l.xc7("--mat-tab-animation-duration",Hn.animationDuration),l.AVh("mat-mdc-tab-group-dynamic-height",Hn.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===Hn.headerPosition)("mat-mdc-tab-group-stretch-tabs",Hn.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:[l.Mj6.None,"mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[l.Jv_([{provide:mn,useExisting:wt}]),l.Vt3],decls:6,vars:7,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],["tabTextLabel",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","ngClass","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(At,Hn){if(1&At){const pi=l.RV6();l.j41(0,"mat-tab-header",4,0),l.bIt("indexFocused",function(Lr){return l.eBV(pi),l.Njj(Hn._focusChanged(Lr))})("selectFocusedIndex",function(Lr){return l.eBV(pi),l.Njj(Hn.selectedIndex=Lr)}),l.DNE(2,ce,9,17,"div",5),l.k0s(),l.j41(3,"div",6,1),l.DNE(5,Z,1,12,"mat-tab-body",7),l.k0s()}2&At&&(l.Y8G("selectedIndex",Hn.selectedIndex||0)("disableRipple",Hn.disableRipple)("disablePagination",Hn.disablePagination),l.R7$(2),l.Y8G("ngForOf",Hn._tabs),l.R7$(),l.AVh("_mat-animation-noopable","NoopAnimations"===Hn._animationMode),l.R7$(2),l.Y8G("ngForOf",Hn._tabs))},dependencies:[n.YU,n.Sq,n.bT,m.I3,p.r6,P.vR,De,pn,Xn],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),Un})();class vt{}},48362:(Ue,W,d)=>{"use strict";d.d(W,{s5:()=>S});var n=d(58527),l=d(51635);let S=(()=>{var y;class r{}return(y=r).\u0275fac=function(a){return new(a||y)},y.\u0275mod=n.$C({type:y}),y.\u0275inj=n.G2t({imports:[l.yE,l.yE]}),r})()},44186:(Ue,W,d)=>{"use strict";d.d(W,{oV:()=>z,sM:()=>F,uc:()=>ge});var n=d(4208),l=d(65706),p=d(6364),m=d(25373),_=d(58527),P=d(61142),v=d(72653),O=d(31308),S=d(51394),y=d(61904),r=d(37278),i=d(76614),a=d(80583),g=(d(40262),d(51635));const c=["tooltip"],L=new _.nKC("mat-tooltip-scroll-strategy"),V={provide:L,deps:[y.hJ],useFactory:function x(oe){return()=>oe.scrollStrategies.reposition({scrollThrottle:20})}},F=new _.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function D(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),k="tooltip-panel",R=(0,v.BQ)({passive:!0});let J=(()=>{var oe;class xe{get position(){return this._position}set position(N){N!==this._position&&(this._position=N,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(N){this._positionAtOrigin=(0,p.he)(N),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,p.he)(N),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(N){this._showDelay=(0,p.OE)(N)}get hideDelay(){return this._hideDelay}set hideDelay(N){this._hideDelay=(0,p.OE)(N),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=N?String(N).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(N){this._tooltipClass=N,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(N,se,ce,Z,de,ae,pe,_e,ke,De,Me,je){this._overlay=N,this._elementRef=se,this._scrollDispatcher=ce,this._viewContainerRef=Z,this._ngZone=de,this._platform=ae,this._ariaDescriber=pe,this._focusMonitor=_e,this._dir=De,this._defaultOptions=Me,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new a.B7,this._scrollStrategy=ke,this._document=je,Me&&(this._showDelay=Me.showDelay,this._hideDelay=Me.hideDelay,Me.position&&(this.position=Me.position),Me.positionAtOrigin&&(this.positionAtOrigin=Me.positionAtOrigin),Me.touchGestures&&(this.touchGestures=Me.touchGestures)),De.change.pipe((0,n.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,n.Q)(this._destroyed)).subscribe(N=>{N?"keyboard"===N&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const N=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([se,ce])=>{N.removeEventListener(se,ce,R)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(N,this.message,"tooltip"),this._focusMonitor.stopMonitoring(N)}show(N=this.showDelay,se){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const ce=this._createOverlay(se);this._detach(),this._portal=this._portal||new i.A8(this._tooltipComponent,this._viewContainerRef);const Z=this._tooltipInstance=ce.attach(this._portal).instance;Z._triggerElement=this._elementRef.nativeElement,Z._mouseLeaveHideDelay=this._hideDelay,Z.afterHidden().pipe((0,n.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Z.show(N)}hide(N=this.hideDelay){const se=this._tooltipInstance;se&&(se.isVisible()?se.hide(N):(se._cancelPendingAnimations(),this._detach()))}toggle(N){this._isTooltipVisible()?this.hide():this.show(void 0,N)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(N){if(this._overlayRef){const Z=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!N)&&Z._origin instanceof _.aKT)return this._overlayRef;this._detach()}const se=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ce=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&N||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(se);return ce.positionChanges.pipe((0,n.Q)(this._destroyed)).subscribe(Z=>{this._updateCurrentPositionClass(Z.connectionPair),this._tooltipInstance&&Z.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ce,panelClass:`${this._cssClassPrefix}-${k}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,n.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,n.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,n.Q)(this._destroyed)).subscribe(Z=>{this._isTooltipVisible()&&Z.keyCode===m._f&&!(0,m.rp)(Z)&&(Z.preventDefault(),Z.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(N){const se=N.getConfig().positionStrategy,ce=this._getOrigin(),Z=this._getOverlayPosition();se.withPositions([this._addOffset({...ce.main,...Z.main}),this._addOffset({...ce.fallback,...Z.fallback})])}_addOffset(N){return N}_getOrigin(){const N=!this._dir||"ltr"==this._dir.value,se=this.position;let ce;"above"==se||"below"==se?ce={originX:"center",originY:"above"==se?"top":"bottom"}:"before"==se||"left"==se&&N||"right"==se&&!N?ce={originX:"start",originY:"center"}:("after"==se||"right"==se&&N||"left"==se&&!N)&&(ce={originX:"end",originY:"center"});const{x:Z,y:de}=this._invertPosition(ce.originX,ce.originY);return{main:ce,fallback:{originX:Z,originY:de}}}_getOverlayPosition(){const N=!this._dir||"ltr"==this._dir.value,se=this.position;let ce;"above"==se?ce={overlayX:"center",overlayY:"bottom"}:"below"==se?ce={overlayX:"center",overlayY:"top"}:"before"==se||"left"==se&&N||"right"==se&&!N?ce={overlayX:"end",overlayY:"center"}:("after"==se||"right"==se&&N||"left"==se&&!N)&&(ce={overlayX:"start",overlayY:"center"});const{x:Z,y:de}=this._invertPosition(ce.overlayX,ce.overlayY);return{main:ce,fallback:{overlayX:Z,overlayY:de}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,l.s)(1),(0,n.Q)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(N){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=N,this._tooltipInstance._markForCheck())}_invertPosition(N,se){return"above"===this.position||"below"===this.position?"top"===se?se="bottom":"bottom"===se&&(se="top"):"end"===N?N="start":"start"===N&&(N="end"),{x:N,y:se}}_updateCurrentPositionClass(N){const{overlayY:se,originX:ce,originY:Z}=N;let de;if(de="center"===se?this._dir&&"rtl"===this._dir.value?"end"===ce?"left":"right":"start"===ce?"left":"right":"bottom"===se&&"top"===Z?"above":"below",de!==this._currentPosition){const ae=this._overlayRef;if(ae){const pe=`${this._cssClassPrefix}-${k}-`;ae.removePanelClass(pe+this._currentPosition),ae.addPanelClass(pe+de)}this._currentPosition=de}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",N=>{let se;this._setupPointerExitEventsIfNeeded(),void 0!==N.x&&void 0!==N.y&&(se=N),this.show(void 0,se)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",N=>{const se=N.targetTouches?.[0],ce=se?{x:se.clientX,y:se.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,ce),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const N=[];if(this._platformSupportsMouseEvents())N.push(["mouseleave",se=>{const ce=se.relatedTarget;(!ce||!this._overlayRef?.overlayElement.contains(ce))&&this.hide()}],["wheel",se=>this._wheelListener(se)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const se=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};N.push(["touchend",se],["touchcancel",se])}this._addListeners(N),this._passiveListeners.push(...N)}_addListeners(N){N.forEach(([se,ce])=>{this._elementRef.nativeElement.addEventListener(se,ce,R)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(N){if(this._isTooltipVisible()){const se=this._document.elementFromPoint(N.clientX,N.clientY),ce=this._elementRef.nativeElement;se!==ce&&!ce.contains(se)&&this.hide()}}_disableNativeGesturesIfNecessary(){const N=this.touchGestures;if("off"!==N){const se=this._elementRef.nativeElement,ce=se.style;("on"===N||"INPUT"!==se.nodeName&&"TEXTAREA"!==se.nodeName)&&(ce.userSelect=ce.msUserSelect=ce.webkitUserSelect=ce.MozUserSelect="none"),("on"===N||!se.draggable)&&(ce.webkitUserDrag="none"),ce.touchAction="none",ce.webkitTapHighlightColor="transparent"}}}return(oe=xe).\u0275fac=function(N){_.QTQ()},oe.\u0275dir=_.FsC({type:oe,inputs:{position:[_.Mj6.None,"matTooltipPosition","position"],positionAtOrigin:[_.Mj6.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[_.Mj6.None,"matTooltipDisabled","disabled"],showDelay:[_.Mj6.None,"matTooltipShowDelay","showDelay"],hideDelay:[_.Mj6.None,"matTooltipHideDelay","hideDelay"],touchGestures:[_.Mj6.None,"matTooltipTouchGestures","touchGestures"],message:[_.Mj6.None,"matTooltip","message"],tooltipClass:[_.Mj6.None,"matTooltipClass","tooltipClass"]}}),xe})(),z=(()=>{var oe;class xe extends J{constructor(N,se,ce,Z,de,ae,pe,_e,ke,De,Me,je){super(N,se,ce,Z,de,ae,pe,_e,ke,De,Me,je),this._tooltipComponent=X,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(N){const ce=!this._dir||"ltr"==this._dir.value;return"top"===N.originY?N.offsetY=-8:"bottom"===N.originY?N.offsetY=8:"start"===N.originX?N.offsetX=ce?-8:8:"end"===N.originX&&(N.offsetX=ce?8:-8),N}}return(oe=xe).\u0275fac=function(N){return new(N||oe)(_.rXU(y.hJ),_.rXU(_.aKT),_.rXU(r.R),_.rXU(_.c1b),_.rXU(_.SKi),_.rXU(v.OD),_.rXU(O.vr),_.rXU(O.FN),_.rXU(L),_.rXU(S.dS,8),_.rXU(F,8),_.rXU(P.qQ))},oe.\u0275dir=_.FsC({type:oe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(N,se){2&N&&_.AVh("mat-mdc-tooltip-disabled",se.disabled)},exportAs:["matTooltip"],features:[_.Vt3]}),xe})(),te=(()=>{var oe;class xe{constructor(N,se){this._changeDetectorRef=N,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new a.B7,this._animationsDisabled="NoopAnimations"===se}show(N){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},N)}hide(N){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},N)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:N}){(!N||!this._triggerElement.contains(N))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:N}){(N===this._showAnimation||N===this._hideAnimation)&&this._finalizeAnimation(N===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(N){N?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(N){const se=this._tooltip.nativeElement,ce=this._showAnimation,Z=this._hideAnimation;if(se.classList.remove(N?Z:ce),se.classList.add(N?ce:Z),this._isVisible=N,N&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const de=getComputedStyle(se);("0s"===de.getPropertyValue("animation-duration")||"none"===de.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}N&&this._onShow(),this._animationsDisabled&&(se.classList.add("_mat-animation-noopable"),this._finalizeAnimation(N))}}return(oe=xe).\u0275fac=function(N){return new(N||oe)(_.rXU(_.gRc),_.rXU(_.bc$,8))},oe.\u0275dir=_.FsC({type:oe}),xe})(),X=(()=>{var oe;class xe extends te{constructor(N,se,ce){super(N,ce),this._elementRef=se,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const N=this._elementRef.nativeElement.getBoundingClientRect();return N.height>24&&N.width>=200}}return(oe=xe).\u0275fac=function(N){return new(N||oe)(_.rXU(_.gRc),_.rXU(_.aKT),_.rXU(_.bc$,8))},oe.\u0275cmp=_.VBU({type:oe,selectors:[["mat-tooltip-component"]],viewQuery:function(N,se){if(1&N&&_.GBs(c,7),2&N){let ce;_.mGM(ce=_.lsd())&&(se._tooltip=ce.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(N,se){1&N&&_.bIt("mouseleave",function(Z){return se._handleMouseLeave(Z)}),2&N&&_.xc7("zoom",se.isVisible()?1:null)},features:[_.Vt3],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(N,se){if(1&N){const ce=_.RV6();_.j41(0,"div",1,0),_.bIt("animationend",function(de){return _.eBV(ce),_.Njj(se._handleAnimationEnd(de))}),_.j41(2,"div",2),_.EFF(3),_.k0s()()}2&N&&(_.AVh("mdc-tooltip--multiline",se._isMultiline),_.Y8G("ngClass",se.tooltipClass),_.R7$(3),_.JRh(se.message))},dependencies:[P.YU],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),xe})(),ge=(()=>{var oe;class xe{}return(oe=xe).\u0275fac=function(N){return new(N||oe)},oe.\u0275mod=_.$C({type:oe}),oe.\u0275inj=_.G2t({providers:[V],imports:[O.Pd,P.MD,y.z_,g.yE,g.yE,r.Gj]}),xe})()},74150:(Ue,W,d)=>{"use strict";d.d(W,{B7:()=>k,Bb:()=>De,W8:()=>Me,hE:()=>$e,sG:()=>ae,up:()=>Bn});var n=d(58527),l=d(61142);class p extends l.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class m extends p{static makeCurrent(){(0,l.ZD)(new m)}onAndCancel(zt,vt,Ct){return zt.addEventListener(vt,Ct),()=>{zt.removeEventListener(vt,Ct)}}dispatchEvent(zt,vt){zt.dispatchEvent(vt)}remove(zt){zt.parentNode&&zt.parentNode.removeChild(zt)}createElement(zt,vt){return(vt=vt||this.getDefaultDocument()).createElement(zt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(zt){return zt.nodeType===Node.ELEMENT_NODE}isShadowRoot(zt){return zt instanceof DocumentFragment}getGlobalEventTarget(zt,vt){return"window"===vt?window:"document"===vt?zt:"body"===vt?zt.body:null}getBaseHref(zt){const vt=function P(){return _=_||document.querySelector("base"),_?_.getAttribute("href"):null}();return null==vt?null:function v(Ne){return new URL(Ne,document.baseURI).pathname}(vt)}resetBaseElement(){_=null}getUserAgent(){return window.navigator.userAgent}getCookie(zt){return(0,l._b)(document.cookie,zt)}}let _=null,S=(()=>{var Ne;class zt{build(){return new XMLHttpRequest}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac}),zt})();const y=new n.nKC("");let r=(()=>{var Ne;class zt{constructor(Ct,it){this._zone=it,this._eventNameToPlugin=new Map,Ct.forEach(Ut=>{Ut.manager=this}),this._plugins=Ct.slice().reverse()}addEventListener(Ct,it,Ut){return this._findPluginFor(it).addEventListener(Ct,it,Ut)}getZone(){return this._zone}_findPluginFor(Ct){let it=this._eventNameToPlugin.get(Ct);if(it)return it;if(it=this._plugins.find(jn=>jn.supports(Ct)),!it)throw new n.wOt(5101,!1);return this._eventNameToPlugin.set(Ct,it),it}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(y),n.KVO(n.SKi))},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac}),zt})();class i{constructor(zt){this._doc=zt}}const a="ng-app-id";let h=(()=>{var Ne;class zt{constructor(Ct,it,Ut,jn={}){this.doc=Ct,this.appId=it,this.nonce=Ut,this.platformId=jn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,l.Vy)(jn),this.resetHostNodes()}addStyles(Ct){for(const it of Ct)1===this.changeUsageCount(it,1)&&this.onStyleAdded(it)}removeStyles(Ct){for(const it of Ct)this.changeUsageCount(it,-1)<=0&&this.onStyleRemoved(it)}ngOnDestroy(){const Ct=this.styleNodesInDOM;Ct&&(Ct.forEach(it=>it.remove()),Ct.clear());for(const it of this.getAllStyles())this.onStyleRemoved(it);this.resetHostNodes()}addHost(Ct){this.hostNodes.add(Ct);for(const it of this.getAllStyles())this.addStyleToHost(Ct,it)}removeHost(Ct){this.hostNodes.delete(Ct)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Ct){for(const it of this.hostNodes)this.addStyleToHost(it,Ct)}onStyleRemoved(Ct){const it=this.styleRef;it.get(Ct)?.elements?.forEach(Ut=>Ut.remove()),it.delete(Ct)}collectServerRenderedStyles(){const Ct=this.doc.head?.querySelectorAll(`style[${a}="${this.appId}"]`);if(Ct?.length){const it=new Map;return Ct.forEach(Ut=>{null!=Ut.textContent&&it.set(Ut.textContent,Ut)}),it}return null}changeUsageCount(Ct,it){const Ut=this.styleRef;if(Ut.has(Ct)){const jn=Ut.get(Ct);return jn.usage+=it,jn.usage}return Ut.set(Ct,{usage:it,elements:[]}),it}getStyleElement(Ct,it){const Ut=this.styleNodesInDOM,jn=Ut?.get(it);if(jn?.parentNode===Ct)return Ut.delete(it),jn.removeAttribute(a),jn;{const wn=this.doc.createElement("style");return this.nonce&&wn.setAttribute("nonce",this.nonce),wn.textContent=it,this.platformIsServer&&wn.setAttribute(a,this.appId),Ct.appendChild(wn),wn}}addStyleToHost(Ct,it){const Ut=this.getStyleElement(Ct,it),jn=this.styleRef,wn=jn.get(it)?.elements;wn?wn.push(Ut):jn.set(it,{elements:[Ut],usage:1})}resetHostNodes(){const Ct=this.hostNodes;Ct.clear(),Ct.add(this.doc.head)}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(l.qQ),n.KVO(n.sZ2),n.KVO(n.BIS,8),n.KVO(n.Agw))},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac}),zt})();const g={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},c=/%COMP%/g,T="%COMP%",A=`_nghost-${T}`,L=`_ngcontent-${T}`,V=new n.nKC("",{providedIn:"root",factory:()=>!0});function I(Ne,zt){return zt.map(vt=>vt.replace(c,Ne))}let k=(()=>{var Ne;class zt{constructor(Ct,it,Ut,jn,wn,nt,on,mt=null){this.eventManager=Ct,this.sharedStylesHost=it,this.appId=Ut,this.removeStylesOnCompDestroy=jn,this.doc=wn,this.platformId=nt,this.ngZone=on,this.nonce=mt,this.rendererByCompId=new Map,this.platformIsServer=(0,l.Vy)(nt),this.defaultRenderer=new R(Ct,wn,on,this.platformIsServer)}createRenderer(Ct,it){if(!Ct||!it)return this.defaultRenderer;this.platformIsServer&&it.encapsulation===n.gXe.ShadowDom&&(it={...it,encapsulation:n.gXe.Emulated});const Ut=this.getOrCreateRenderer(Ct,it);return Ut instanceof J?Ut.applyToHost(Ct):Ut instanceof ee&&Ut.applyStyles(),Ut}getOrCreateRenderer(Ct,it){const Ut=this.rendererByCompId;let jn=Ut.get(it.id);if(!jn){const wn=this.doc,nt=this.ngZone,on=this.eventManager,mt=this.sharedStylesHost,_n=this.removeStylesOnCompDestroy,wt=this.platformIsServer;switch(it.encapsulation){case n.gXe.Emulated:jn=new J(on,mt,it,this.appId,_n,wn,nt,wt);break;case n.gXe.ShadowDom:return new $(on,mt,Ct,it,wn,nt,this.nonce,wt);default:jn=new ee(on,mt,it,_n,wn,nt,wt)}Ut.set(it.id,jn)}return jn}ngOnDestroy(){this.rendererByCompId.clear()}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(r),n.KVO(h),n.KVO(n.sZ2),n.KVO(V),n.KVO(l.qQ),n.KVO(n.Agw),n.KVO(n.SKi),n.KVO(n.BIS))},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac}),zt})();class R{constructor(zt,vt,Ct,it){this.eventManager=zt,this.doc=vt,this.ngZone=Ct,this.platformIsServer=it,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(zt,vt){return vt?this.doc.createElementNS(g[vt]||vt,zt):this.doc.createElement(zt)}createComment(zt){return this.doc.createComment(zt)}createText(zt){return this.doc.createTextNode(zt)}appendChild(zt,vt){(K(zt)?zt.content:zt).appendChild(vt)}insertBefore(zt,vt,Ct){zt&&(K(zt)?zt.content:zt).insertBefore(vt,Ct)}removeChild(zt,vt){zt&&zt.removeChild(vt)}selectRootElement(zt,vt){let Ct="string"==typeof zt?this.doc.querySelector(zt):zt;if(!Ct)throw new n.wOt(-5104,!1);return vt||(Ct.textContent=""),Ct}parentNode(zt){return zt.parentNode}nextSibling(zt){return zt.nextSibling}setAttribute(zt,vt,Ct,it){if(it){vt=it+":"+vt;const Ut=g[it];Ut?zt.setAttributeNS(Ut,vt,Ct):zt.setAttribute(vt,Ct)}else zt.setAttribute(vt,Ct)}removeAttribute(zt,vt,Ct){if(Ct){const it=g[Ct];it?zt.removeAttributeNS(it,vt):zt.removeAttribute(`${Ct}:${vt}`)}else zt.removeAttribute(vt)}addClass(zt,vt){zt.classList.add(vt)}removeClass(zt,vt){zt.classList.remove(vt)}setStyle(zt,vt,Ct,it){it&(n.czy.DashCase|n.czy.Important)?zt.style.setProperty(vt,Ct,it&n.czy.Important?"important":""):zt.style[vt]=Ct}removeStyle(zt,vt,Ct){Ct&n.czy.DashCase?zt.style.removeProperty(vt):zt.style[vt]=""}setProperty(zt,vt,Ct){null!=zt&&(zt[vt]=Ct)}setValue(zt,vt){zt.nodeValue=vt}listen(zt,vt,Ct){if("string"==typeof zt&&!(zt=(0,l.QT)().getGlobalEventTarget(this.doc,zt)))throw new Error(`Unsupported event target ${zt} for event ${vt}`);return this.eventManager.addEventListener(zt,vt,this.decoratePreventDefault(Ct))}decoratePreventDefault(zt){return vt=>{if("__ngUnwrap__"===vt)return zt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>zt(vt)):zt(vt))&&vt.preventDefault()}}}function K(Ne){return"TEMPLATE"===Ne.tagName&&void 0!==Ne.content}class $ extends R{constructor(zt,vt,Ct,it,Ut,jn,wn,nt){super(zt,Ut,jn,nt),this.sharedStylesHost=vt,this.hostEl=Ct,this.shadowRoot=Ct.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const on=I(it.id,it.styles);for(const mt of on){const _n=document.createElement("style");wn&&_n.setAttribute("nonce",wn),_n.textContent=mt,this.shadowRoot.appendChild(_n)}}nodeOrShadowRoot(zt){return zt===this.hostEl?this.shadowRoot:zt}appendChild(zt,vt){return super.appendChild(this.nodeOrShadowRoot(zt),vt)}insertBefore(zt,vt,Ct){return super.insertBefore(this.nodeOrShadowRoot(zt),vt,Ct)}removeChild(zt,vt){return super.removeChild(this.nodeOrShadowRoot(zt),vt)}parentNode(zt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(zt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ee extends R{constructor(zt,vt,Ct,it,Ut,jn,wn,nt){super(zt,Ut,jn,wn),this.sharedStylesHost=vt,this.removeStylesOnCompDestroy=it,this.styles=nt?I(nt,Ct.styles):Ct.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class J extends ee{constructor(zt,vt,Ct,it,Ut,jn,wn,nt){const on=it+"-"+Ct.id;super(zt,vt,Ct,Ut,jn,wn,nt,on),this.contentAttr=function D(Ne){return L.replace(c,Ne)}(on),this.hostAttr=function F(Ne){return A.replace(c,Ne)}(on)}applyToHost(zt){this.applyStyles(),this.setAttribute(zt,this.hostAttr,"")}createElement(zt,vt){const Ct=super.createElement(zt,vt);return super.setAttribute(Ct,this.contentAttr,""),Ct}}let z=(()=>{var Ne;class zt extends i{constructor(Ct){super(Ct)}supports(Ct){return!0}addEventListener(Ct,it,Ut){return Ct.addEventListener(it,Ut,!1),()=>this.removeEventListener(Ct,it,Ut)}removeEventListener(Ct,it,Ut){return Ct.removeEventListener(it,Ut)}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(l.qQ))},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac}),zt})();const te=["alt","control","meta","shift"],X={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},re={alt:Ne=>Ne.altKey,control:Ne=>Ne.ctrlKey,meta:Ne=>Ne.metaKey,shift:Ne=>Ne.shiftKey};let ge=(()=>{var Ne;class zt extends i{constructor(Ct){super(Ct)}supports(Ct){return null!=zt.parseEventName(Ct)}addEventListener(Ct,it,Ut){const jn=zt.parseEventName(it),wn=zt.eventCallback(jn.fullKey,Ut,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.QT)().onAndCancel(Ct,jn.domEventName,wn))}static parseEventName(Ct){const it=Ct.toLowerCase().split("."),Ut=it.shift();if(0===it.length||"keydown"!==Ut&&"keyup"!==Ut)return null;const jn=zt._normalizeKey(it.pop());let wn="",nt=it.indexOf("code");if(nt>-1&&(it.splice(nt,1),wn="code."),te.forEach(mt=>{const _n=it.indexOf(mt);_n>-1&&(it.splice(_n,1),wn+=mt+".")}),wn+=jn,0!=it.length||0===jn.length)return null;const on={};return on.domEventName=Ut,on.fullKey=wn,on}static matchEventFullKeyCode(Ct,it){let Ut=X[Ct.key]||Ct.key,jn="";return it.indexOf("code.")>-1&&(Ut=Ct.code,jn="code."),!(null==Ut||!Ut)&&(Ut=Ut.toLowerCase()," "===Ut?Ut="space":"."===Ut&&(Ut="dot"),te.forEach(wn=>{wn!==Ut&&(0,re[wn])(Ct)&&(jn+=wn+".")}),jn+=Ut,jn===it)}static eventCallback(Ct,it,Ut){return jn=>{zt.matchEventFullKeyCode(jn,Ct)&&Ut.runGuarded(()=>it(jn))}}static _normalizeKey(Ct){return"esc"===Ct?"escape":Ct}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(l.qQ))},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac}),zt})();const ae=(0,n.oH4)(n.fpN,"browser",[{provide:n.Agw,useValue:l.AJ},{provide:n.PLl,useValue:function se(){m.makeCurrent()},multi:!0},{provide:l.qQ,useFactory:function Z(){return(0,n.TL$)(document),document},deps:[]}]),pe=new n.nKC(""),_e=[{provide:n.e01,useClass:class O{addToWindow(zt){n.JZv.getAngularTestability=(Ct,it=!0)=>{const Ut=zt.findTestabilityInTree(Ct,it);if(null==Ut)throw new n.wOt(5103,!1);return Ut},n.JZv.getAllAngularTestabilities=()=>zt.getAllTestabilities(),n.JZv.getAllAngularRootElements=()=>zt.getAllRootElements(),n.JZv.frameworkStabilizers||(n.JZv.frameworkStabilizers=[]),n.JZv.frameworkStabilizers.push(Ct=>{const it=n.JZv.getAllAngularTestabilities();let Ut=it.length;const jn=function(){Ut--,0==Ut&&Ct()};it.forEach(wn=>{wn.whenStable(jn)})})}findTestabilityInTree(zt,vt,Ct){return null==vt?null:zt.getTestability(vt)??(Ct?(0,l.QT)().isShadowRoot(vt)?this.findTestabilityInTree(zt,vt.host,!0):this.findTestabilityInTree(zt,vt.parentElement,!0):null)}},deps:[]},{provide:n.WHO,useClass:n.NYb,deps:[n.SKi,n.giA,n.e01]},{provide:n.NYb,useClass:n.NYb,deps:[n.SKi,n.giA,n.e01]}],ke=[{provide:n.H8p,useValue:"root"},{provide:n.zcH,useFactory:function ce(){return new n.zcH},deps:[]},{provide:y,useClass:z,multi:!0,deps:[l.qQ,n.SKi,n.Agw]},{provide:y,useClass:ge,multi:!0,deps:[l.qQ]},k,h,r,{provide:n._9s,useExisting:k},{provide:l.N0,useClass:S,deps:[]},[]];let De=(()=>{var Ne;class zt{constructor(Ct){}static withServerTransition(Ct){return{ngModule:zt,providers:[{provide:n.sZ2,useValue:Ct.appId}]}}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(pe,12))},Ne.\u0275mod=n.$C({type:Ne}),Ne.\u0275inj=n.G2t({providers:[...ke,..._e],imports:[l.MD,n.Hbi]}),zt})(),Me=(()=>{var Ne;class zt{constructor(Ct){this._doc=Ct,this._dom=(0,l.QT)()}addTag(Ct,it=!1){return Ct?this._getOrCreateElement(Ct,it):null}addTags(Ct,it=!1){return Ct?Ct.reduce((Ut,jn)=>(jn&&Ut.push(this._getOrCreateElement(jn,it)),Ut),[]):[]}getTag(Ct){return Ct&&this._doc.querySelector(`meta[${Ct}]`)||null}getTags(Ct){if(!Ct)return[];const it=this._doc.querySelectorAll(`meta[${Ct}]`);return it?[].slice.call(it):[]}updateTag(Ct,it){if(!Ct)return null;it=it||this._parseSelector(Ct);const Ut=this.getTag(it);return Ut?this._setMetaElementAttributes(Ct,Ut):this._getOrCreateElement(Ct,!0)}removeTag(Ct){this.removeTagElement(this.getTag(Ct))}removeTagElement(Ct){Ct&&this._dom.remove(Ct)}_getOrCreateElement(Ct,it=!1){if(!it){const wn=this._parseSelector(Ct),nt=this.getTags(wn).filter(on=>this._containsAttributes(Ct,on))[0];if(void 0!==nt)return nt}const Ut=this._dom.createElement("meta");return this._setMetaElementAttributes(Ct,Ut),this._doc.getElementsByTagName("head")[0].appendChild(Ut),Ut}_setMetaElementAttributes(Ct,it){return Object.keys(Ct).forEach(Ut=>it.setAttribute(this._getMetaKeyMap(Ut),Ct[Ut])),it}_parseSelector(Ct){const it=Ct.name?"name":"property";return`${it}="${Ct[it]}"`}_containsAttributes(Ct,it){return Object.keys(Ct).every(Ut=>it.getAttribute(this._getMetaKeyMap(Ut))===Ct[Ut])}_getMetaKeyMap(Ct){return je[Ct]||Ct}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(l.qQ))},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),zt})();const je={httpEquiv:"http-equiv"};let $e=(()=>{var Ne;class zt{constructor(Ct){this._doc=Ct}getTitle(){return this._doc.title}setTitle(Ct){this._doc.title=Ct||""}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(l.qQ))},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),zt})(),Bn=(()=>{var Ne;class zt{}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)},Ne.\u0275prov=n.jDH({token:Ne,factory:function(Ct){let it=null;return it=Ct?new(Ct||Ne):n.KVO(En),it},providedIn:"root"}),zt})(),En=(()=>{var Ne;class zt extends Bn{constructor(Ct){super(),this._doc=Ct}sanitize(Ct,it){if(null==it)return null;switch(Ct){case n.WPN.NONE:return it;case n.WPN.HTML:return(0,n.ZF7)(it,"HTML")?(0,n.rcV)(it):(0,n.h9k)(this._doc,String(it)).toString();case n.WPN.STYLE:return(0,n.ZF7)(it,"Style")?(0,n.rcV)(it):it;case n.WPN.SCRIPT:if((0,n.ZF7)(it,"Script"))return(0,n.rcV)(it);throw new n.wOt(5200,!1);case n.WPN.URL:return(0,n.ZF7)(it,"URL")?(0,n.rcV)(it):(0,n.$MX)(String(it));case n.WPN.RESOURCE_URL:if((0,n.ZF7)(it,"ResourceURL"))return(0,n.rcV)(it);throw new n.wOt(5201,!1);default:throw new n.wOt(5202,!1)}}bypassSecurityTrustHtml(Ct){return(0,n.Kcf)(Ct)}bypassSecurityTrustStyle(Ct){return(0,n.cWb)(Ct)}bypassSecurityTrustScript(Ct){return(0,n.UyX)(Ct)}bypassSecurityTrustUrl(Ct){return(0,n.osQ)(Ct)}bypassSecurityTrustResourceUrl(Ct){return(0,n.e5t)(Ct)}}return(Ne=zt).\u0275fac=function(Ct){return new(Ct||Ne)(n.KVO(l.qQ))},Ne.\u0275prov=n.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),zt})()},14354:(Ue,W,d)=>{"use strict";d.d(W,{Ix:()=>No,Kp:()=>Ir,L6:()=>qn,Wk:()=>Go,Z:()=>Ii,iI:()=>gl,j5:()=>Fr,ld:()=>Sr,n3:()=>ko,nX:()=>dr,wF:()=>ar});var n=d(70650),l=d(58527),p=d(39595),m=d(19392),_=d(43848),P=d(26513),v=d(31315),O=d(64971),S=d(82e3),y=d(63997),r=d(97462),i=d(59859),a=d(12532),h=d(96090),g=d(80583),c=d(10399),T=d(61142),A=d(83915),L=d(72147),x=d(65706),V=d(34593),D=d(8619),F=d(75707),I=d(99047),k=d(79539),R=d(91384),G=d(14714),Y=d(18612),K=d(67110),$=d(25577),ee=d(93702),J=d(10174),z=d(43615),te=d(60837),X=d(4208),re=d(40466),ge=d(74150);const oe="primary",xe=Symbol("RouteTitle");class ue{constructor(tt){this.params=tt||{}}has(tt){return Object.prototype.hasOwnProperty.call(this.params,tt)}get(tt){if(this.has(tt)){const yt=this.params[tt];return Array.isArray(yt)?yt[0]:yt}return null}getAll(tt){if(this.has(tt)){const yt=this.params[tt];return Array.isArray(yt)?yt:[yt]}return[]}get keys(){return Object.keys(this.params)}}function N(Fe){return new ue(Fe)}function se(Fe,tt,yt){const rt=yt.path.split("/");if(rt.length>Fe.length||"full"===yt.pathMatch&&(tt.hasChildren()||rt.length<Fe.length))return null;const Dt={};for(let dn=0;dn<rt.length;dn++){const Jn=rt[dn],$i=Fe[dn];if(Jn.startsWith(":"))Dt[Jn.substring(1)]=$i;else if(Jn!==$i.path)return null}return{consumed:Fe.slice(0,rt.length),posParams:Dt}}function Z(Fe,tt){const yt=Fe?de(Fe):void 0,rt=tt?de(tt):void 0;if(!yt||!rt||yt.length!=rt.length)return!1;let Dt;for(let dn=0;dn<yt.length;dn++)if(Dt=yt[dn],!ae(Fe[Dt],tt[Dt]))return!1;return!0}function de(Fe){return[...Object.keys(Fe),...Object.getOwnPropertySymbols(Fe)]}function ae(Fe,tt){if(Array.isArray(Fe)&&Array.isArray(tt)){if(Fe.length!==tt.length)return!1;const yt=[...Fe].sort(),rt=[...tt].sort();return yt.every((Dt,dn)=>rt[dn]===Dt)}return Fe===tt}function pe(Fe){return Fe.length>0?Fe[Fe.length-1]:null}function _e(Fe){return(0,p.A)(Fe)?Fe:(0,l.jNT)(Fe)?(0,m.H)(Promise.resolve(Fe)):(0,_.of)(Fe)}const ke={exact:function $e(Fe,tt,yt){if(!un(Fe.segments,tt.segments)||!ye(Fe.segments,tt.segments,yt)||Fe.numberOfChildren!==tt.numberOfChildren)return!1;for(const rt in tt.children)if(!Fe.children[rt]||!$e(Fe.children[rt],tt.children[rt],yt))return!1;return!0},subset:gt},De={exact:function je(Fe,tt){return Z(Fe,tt)},subset:function Oe(Fe,tt){return Object.keys(tt).length<=Object.keys(Fe).length&&Object.keys(tt).every(yt=>ae(Fe[yt],tt[yt]))},ignored:()=>!0};function Me(Fe,tt,yt){return ke[yt.paths](Fe.root,tt.root,yt.matrixParams)&&De[yt.queryParams](Fe.queryParams,tt.queryParams)&&!("exact"===yt.fragment&&Fe.fragment!==tt.fragment)}function gt(Fe,tt,yt){return qt(Fe,tt,tt.segments,yt)}function qt(Fe,tt,yt,rt){if(Fe.segments.length>yt.length){const Dt=Fe.segments.slice(0,yt.length);return!(!un(Dt,yt)||tt.hasChildren()||!ye(Dt,yt,rt))}if(Fe.segments.length===yt.length){if(!un(Fe.segments,yt)||!ye(Fe.segments,yt,rt))return!1;for(const Dt in tt.children)if(!Fe.children[Dt]||!gt(Fe.children[Dt],tt.children[Dt],rt))return!1;return!0}{const Dt=yt.slice(0,Fe.segments.length),dn=yt.slice(Fe.segments.length);return!!(un(Fe.segments,Dt)&&ye(Fe.segments,Dt,rt)&&Fe.children[oe])&&qt(Fe.children[oe],tt,dn,rt)}}function ye(Fe,tt,yt){return tt.every((rt,Dt)=>De[yt](Fe[Dt].parameters,rt.parameters))}class Re{constructor(tt=new Ze([],{}),yt={},rt=null){this.root=tt,this.queryParams=yt,this.fragment=rt}get queryParamMap(){return this._queryParamMap??=N(this.queryParams),this._queryParamMap}toString(){return st.serialize(this)}}class Ze{constructor(tt,yt){this.segments=tt,this.children=yt,this.parent=null,Object.values(yt).forEach(rt=>rt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mn(this)}}class et{constructor(tt,yt){this.path=tt,this.parameters=yt}get parameterMap(){return this._parameterMap??=N(this.parameters),this._parameterMap}toString(){return Xn(this)}}function un(Fe,tt){return Fe.length===tt.length&&Fe.every((yt,rt)=>yt.path===tt[rt].path)}let Gt=(()=>{var Fe;class tt{}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:()=>new pn,providedIn:"root"}),tt})();class pn{parse(tt){const yt=new wn(tt);return new Re(yt.parseRootSegment(),yt.parseQueryParams(),yt.parseFragment())}serialize(tt){const yt=`/${Bn(tt.root,!0)}`,rt=function ai(Fe){const tt=Object.entries(Fe).map(([yt,rt])=>Array.isArray(rt)?rt.map(Dt=>`${Cn(yt)}=${Cn(Dt)}`).join("&"):`${Cn(yt)}=${Cn(rt)}`).filter(yt=>yt);return tt.length?`?${tt.join("&")}`:""}(tt.queryParams);return`${yt}${rt}${"string"==typeof tt.fragment?`#${function fn(Fe){return encodeURI(Fe)}(tt.fragment)}`:""}`}}const st=new pn;function mn(Fe){return Fe.segments.map(tt=>Xn(tt)).join("/")}function Bn(Fe,tt){if(!Fe.hasChildren())return mn(Fe);if(tt){const yt=Fe.children[oe]?Bn(Fe.children[oe],!1):"",rt=[];return Object.entries(Fe.children).forEach(([Dt,dn])=>{Dt!==oe&&rt.push(`${Dt}:${Bn(dn,!1)}`)}),rt.length>0?`${yt}(${rt.join("//")})`:yt}{const yt=function ct(Fe,tt){let yt=[];return Object.entries(Fe.children).forEach(([rt,Dt])=>{rt===oe&&(yt=yt.concat(tt(Dt,rt)))}),Object.entries(Fe.children).forEach(([rt,Dt])=>{rt!==oe&&(yt=yt.concat(tt(Dt,rt)))}),yt}(Fe,(rt,Dt)=>Dt===oe?[Bn(Fe.children[oe],!1)]:[`${Dt}:${Bn(rt,!1)}`]);return 1===Object.keys(Fe.children).length&&null!=Fe.children[oe]?`${mn(Fe)}/${yt[0]}`:`${mn(Fe)}/(${yt.join("//")})`}}function En(Fe){return encodeURIComponent(Fe).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cn(Fe){return En(Fe).replace(/%3B/gi,";")}function dt(Fe){return En(Fe).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nn(Fe){return decodeURIComponent(Fe)}function yn(Fe){return nn(Fe.replace(/\+/g,"%20"))}function Xn(Fe){return`${dt(Fe.path)}${function rn(Fe){return Object.entries(Fe).map(([tt,yt])=>`;${dt(tt)}=${dt(yt)}`).join("")}(Fe.parameters)}`}const ri=/^[^\/()?;#]+/;function Ne(Fe){const tt=Fe.match(ri);return tt?tt[0]:""}const zt=/^[^\/()?;=#]+/,Ct=/^[^=?&#]+/,Ut=/^[^&#]+/;class wn{constructor(tt){this.url=tt,this.remaining=tt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ze([],{}):new Ze([],this.parseChildren())}parseQueryParams(){const tt={};if(this.consumeOptional("?"))do{this.parseQueryParam(tt)}while(this.consumeOptional("&"));return tt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const tt=[];for(this.peekStartsWith("(")||tt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),tt.push(this.parseSegment());let yt={};this.peekStartsWith("/(")&&(this.capture("/"),yt=this.parseParens(!0));let rt={};return this.peekStartsWith("(")&&(rt=this.parseParens(!1)),(tt.length>0||Object.keys(yt).length>0)&&(rt[oe]=new Ze(tt,yt)),rt}parseSegment(){const tt=Ne(this.remaining);if(""===tt&&this.peekStartsWith(";"))throw new l.wOt(4009,!1);return this.capture(tt),new et(nn(tt),this.parseMatrixParams())}parseMatrixParams(){const tt={};for(;this.consumeOptional(";");)this.parseParam(tt);return tt}parseParam(tt){const yt=function vt(Fe){const tt=Fe.match(zt);return tt?tt[0]:""}(this.remaining);if(!yt)return;this.capture(yt);let rt="";if(this.consumeOptional("=")){const Dt=Ne(this.remaining);Dt&&(rt=Dt,this.capture(rt))}tt[nn(yt)]=nn(rt)}parseQueryParam(tt){const yt=function it(Fe){const tt=Fe.match(Ct);return tt?tt[0]:""}(this.remaining);if(!yt)return;this.capture(yt);let rt="";if(this.consumeOptional("=")){const Jn=function jn(Fe){const tt=Fe.match(Ut);return tt?tt[0]:""}(this.remaining);Jn&&(rt=Jn,this.capture(rt))}const Dt=yn(yt),dn=yn(rt);if(tt.hasOwnProperty(Dt)){let Jn=tt[Dt];Array.isArray(Jn)||(Jn=[Jn],tt[Dt]=Jn),Jn.push(dn)}else tt[Dt]=dn}parseParens(tt){const yt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const rt=Ne(this.remaining),Dt=this.remaining[rt.length];if("/"!==Dt&&")"!==Dt&&";"!==Dt)throw new l.wOt(4010,!1);let dn;rt.indexOf(":")>-1?(dn=rt.slice(0,rt.indexOf(":")),this.capture(dn),this.capture(":")):tt&&(dn=oe);const Jn=this.parseChildren();yt[dn]=1===Object.keys(Jn).length?Jn[oe]:new Ze([],Jn),this.consumeOptional("//")}return yt}peekStartsWith(tt){return this.remaining.startsWith(tt)}consumeOptional(tt){return!!this.peekStartsWith(tt)&&(this.remaining=this.remaining.substring(tt.length),!0)}capture(tt){if(!this.consumeOptional(tt))throw new l.wOt(4011,!1)}}function nt(Fe){return Fe.segments.length>0?new Ze([],{[oe]:Fe}):Fe}function on(Fe){const tt={};for(const[rt,Dt]of Object.entries(Fe.children)){const dn=on(Dt);if(rt===oe&&0===dn.segments.length&&dn.hasChildren())for(const[Jn,$i]of Object.entries(dn.children))tt[Jn]=$i;else(dn.segments.length>0||dn.hasChildren())&&(tt[rt]=dn)}return function mt(Fe){if(1===Fe.numberOfChildren&&Fe.children[oe]){const tt=Fe.children[oe];return new Ze(Fe.segments.concat(tt.segments),tt.children)}return Fe}(new Ze(Fe.segments,tt))}function _n(Fe){return Fe instanceof Re}function Un(Fe){let tt;const Dt=nt(function yt(dn){const Jn={};for(const Nr of dn.children){const Ji=yt(Nr);Jn[Nr.outlet]=Ji}const $i=new Ze(dn.url,Jn);return dn===Fe&&(tt=$i),$i}(Fe.root));return tt??Dt}function Oi(Fe,tt,yt,rt){let Dt=Fe;for(;Dt.parent;)Dt=Dt.parent;if(0===tt.length)return pi(Dt,Dt,Dt,yt,rt);const dn=function Kr(Fe){if("string"==typeof Fe[0]&&1===Fe.length&&"/"===Fe[0])return new Lr(!0,0,Fe);let tt=0,yt=!1;const rt=Fe.reduce((Dt,dn,Jn)=>{if("object"==typeof dn&&null!=dn){if(dn.outlets){const $i={};return Object.entries(dn.outlets).forEach(([Nr,Ji])=>{$i[Nr]="string"==typeof Ji?Ji.split("/"):Ji}),[...Dt,{outlets:$i}]}if(dn.segmentPath)return[...Dt,dn.segmentPath]}return"string"!=typeof dn?[...Dt,dn]:0===Jn?(dn.split("/").forEach(($i,Nr)=>{0==Nr&&"."===$i||(0==Nr&&""===$i?yt=!0:".."===$i?tt++:""!=$i&&Dt.push($i))}),Dt):[...Dt,dn]},[]);return new Lr(yt,tt,rt)}(tt);if(dn.toRoot())return pi(Dt,Dt,new Ze([],{}),yt,rt);const Jn=function di(Fe,tt,yt){if(Fe.isAbsolute)return new Qt(tt,!0,0);if(!yt)return new Qt(tt,!1,NaN);if(null===yt.parent)return new Qt(yt,!0,0);const rt=At(Fe.commands[0])?0:1;return function ji(Fe,tt,yt){let rt=Fe,Dt=tt,dn=yt;for(;dn>Dt;){if(dn-=Dt,rt=rt.parent,!rt)throw new l.wOt(4005,!1);Dt=rt.segments.length}return new Qt(rt,!1,Dt-dn)}(yt,yt.segments.length-1+rt,Fe.numberOfDoubleDots)}(dn,Dt,Fe),$i=Jn.processChildren?Zn(Jn.segmentGroup,Jn.index,dn.commands):Zt(Jn.segmentGroup,Jn.index,dn.commands);return pi(Dt,Jn.segmentGroup,$i,yt,rt)}function At(Fe){return"object"==typeof Fe&&null!=Fe&&!Fe.outlets&&!Fe.segmentPath}function Hn(Fe){return"object"==typeof Fe&&null!=Fe&&Fe.outlets}function pi(Fe,tt,yt,rt,Dt){let Jn,dn={};rt&&Object.entries(rt).forEach(([Nr,Ji])=>{dn[Nr]=Array.isArray(Ji)?Ji.map(Ho=>`${Ho}`):`${Ji}`}),Jn=Fe===tt?yt:Zi(Fe,tt,yt);const $i=nt(on(Jn));return new Re($i,dn,Dt)}function Zi(Fe,tt,yt){const rt={};return Object.entries(Fe.children).forEach(([Dt,dn])=>{rt[Dt]=dn===tt?yt:Zi(dn,tt,yt)}),new Ze(Fe.segments,rt)}class Lr{constructor(tt,yt,rt){if(this.isAbsolute=tt,this.numberOfDoubleDots=yt,this.commands=rt,tt&&rt.length>0&&At(rt[0]))throw new l.wOt(4003,!1);const Dt=rt.find(Hn);if(Dt&&Dt!==pe(rt))throw new l.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Qt{constructor(tt,yt,rt){this.segmentGroup=tt,this.processChildren=yt,this.index=rt}}function Zt(Fe,tt,yt){if(Fe??=new Ze([],{}),0===Fe.segments.length&&Fe.hasChildren())return Zn(Fe,tt,yt);const rt=function Dn(Fe,tt,yt){let rt=0,Dt=tt;const dn={match:!1,pathIndex:0,commandIndex:0};for(;Dt<Fe.segments.length;){if(rt>=yt.length)return dn;const Jn=Fe.segments[Dt],$i=yt[rt];if(Hn($i))break;const Nr=`${$i}`,Ji=rt<yt.length-1?yt[rt+1]:null;if(Dt>0&&void 0===Nr)break;if(Nr&&Ji&&"object"==typeof Ji&&void 0===Ji.outlets){if(!xn(Nr,Ji,Jn))return dn;rt+=2}else{if(!xn(Nr,{},Jn))return dn;rt++}Dt++}return{match:!0,pathIndex:Dt,commandIndex:rt}}(Fe,tt,yt),Dt=yt.slice(rt.commandIndex);if(rt.match&&rt.pathIndex<Fe.segments.length){const dn=new Ze(Fe.segments.slice(0,rt.pathIndex),{});return dn.children[oe]=new Ze(Fe.segments.slice(rt.pathIndex),Fe.children),Zn(dn,0,Dt)}return rt.match&&0===Dt.length?new Ze(Fe.segments,{}):rt.match&&!Fe.hasChildren()?zn(Fe,tt,yt):rt.match?Zn(Fe,0,Dt):zn(Fe,tt,yt)}function Zn(Fe,tt,yt){if(0===yt.length)return new Ze(Fe.segments,{});{const rt=function vi(Fe){return Hn(Fe[0])?Fe[0].outlets:{[oe]:Fe}}(yt),Dt={};if(Object.keys(rt).some(dn=>dn!==oe)&&Fe.children[oe]&&1===Fe.numberOfChildren&&0===Fe.children[oe].segments.length){const dn=Zn(Fe.children[oe],tt,yt);return new Ze(Fe.segments,dn.children)}return Object.entries(rt).forEach(([dn,Jn])=>{"string"==typeof Jn&&(Jn=[Jn]),null!==Jn&&(Dt[dn]=Zt(Fe.children[dn],tt,Jn))}),Object.entries(Fe.children).forEach(([dn,Jn])=>{void 0===rt[dn]&&(Dt[dn]=Jn)}),new Ze(Fe.segments,Dt)}}function zn(Fe,tt,yt){const rt=Fe.segments.slice(0,tt);let Dt=0;for(;Dt<yt.length;){const dn=yt[Dt];if(Hn(dn)){const Nr=Ti(dn.outlets);return new Ze(rt,Nr)}if(0===Dt&&At(yt[0])){rt.push(new et(Fe.segments[tt].path,Xt(yt[0]))),Dt++;continue}const Jn=Hn(dn)?dn.outlets[oe]:`${dn}`,$i=Dt<yt.length-1?yt[Dt+1]:null;Jn&&$i&&At($i)?(rt.push(new et(Jn,Xt($i))),Dt+=2):(rt.push(new et(Jn,{})),Dt++)}return new Ze(rt,{})}function Ti(Fe){const tt={};return Object.entries(Fe).forEach(([yt,rt])=>{"string"==typeof rt&&(rt=[rt]),null!==rt&&(tt[yt]=zn(new Ze([],{}),0,rt))}),tt}function Xt(Fe){const tt={};return Object.entries(Fe).forEach(([yt,rt])=>tt[yt]=`${rt}`),tt}function xn(Fe,tt,yt){return Fe==yt.path&&Z(tt,yt.parameters)}const mi="imperative";var $n=function(Fe){return Fe[Fe.NavigationStart=0]="NavigationStart",Fe[Fe.NavigationEnd=1]="NavigationEnd",Fe[Fe.NavigationCancel=2]="NavigationCancel",Fe[Fe.NavigationError=3]="NavigationError",Fe[Fe.RoutesRecognized=4]="RoutesRecognized",Fe[Fe.ResolveStart=5]="ResolveStart",Fe[Fe.ResolveEnd=6]="ResolveEnd",Fe[Fe.GuardsCheckStart=7]="GuardsCheckStart",Fe[Fe.GuardsCheckEnd=8]="GuardsCheckEnd",Fe[Fe.RouteConfigLoadStart=9]="RouteConfigLoadStart",Fe[Fe.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",Fe[Fe.ChildActivationStart=11]="ChildActivationStart",Fe[Fe.ChildActivationEnd=12]="ChildActivationEnd",Fe[Fe.ActivationStart=13]="ActivationStart",Fe[Fe.ActivationEnd=14]="ActivationEnd",Fe[Fe.Scroll=15]="Scroll",Fe[Fe.NavigationSkipped=16]="NavigationSkipped",Fe}($n||{});class Pt{constructor(tt,yt){this.id=tt,this.url=yt}}class Ii extends Pt{constructor(tt,yt,rt="imperative",Dt=null){super(tt,yt),this.type=$n.NavigationStart,this.navigationTrigger=rt,this.restoredState=Dt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ar extends Pt{constructor(tt,yt,rt){super(tt,yt),this.urlAfterRedirects=rt,this.type=$n.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Jt=function(Fe){return Fe[Fe.Redirect=0]="Redirect",Fe[Fe.SupersededByNewNavigation=1]="SupersededByNewNavigation",Fe[Fe.NoDataFromResolver=2]="NoDataFromResolver",Fe[Fe.GuardRejected=3]="GuardRejected",Fe}(Jt||{}),ki=function(Fe){return Fe[Fe.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",Fe[Fe.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",Fe}(ki||{});class Fr extends Pt{constructor(tt,yt,rt,Dt){super(tt,yt),this.reason=rt,this.code=Dt,this.type=$n.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class xo extends Pt{constructor(tt,yt,rt,Dt){super(tt,yt),this.reason=rt,this.code=Dt,this.type=$n.NavigationSkipped}}class qn extends Pt{constructor(tt,yt,rt,Dt){super(tt,yt),this.error=rt,this.target=Dt,this.type=$n.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sr extends Pt{constructor(tt,yt,rt,Dt){super(tt,yt),this.urlAfterRedirects=rt,this.state=Dt,this.type=$n.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ni extends Pt{constructor(tt,yt,rt,Dt){super(tt,yt),this.urlAfterRedirects=rt,this.state=Dt,this.type=$n.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class he extends Pt{constructor(tt,yt,rt,Dt,dn){super(tt,yt),this.urlAfterRedirects=rt,this.state=Dt,this.shouldActivate=dn,this.type=$n.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ee extends Pt{constructor(tt,yt,rt,Dt){super(tt,yt),this.urlAfterRedirects=rt,this.state=Dt,this.type=$n.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pe extends Pt{constructor(tt,yt,rt,Dt){super(tt,yt),this.urlAfterRedirects=rt,this.state=Dt,this.type=$n.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qe{constructor(tt){this.route=tt,this.type=$n.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Be{constructor(tt){this.route=tt,this.type=$n.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Mt{constructor(tt){this.snapshot=tt,this.type=$n.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vt{constructor(tt){this.snapshot=tt,this.type=$n.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vn{constructor(tt){this.snapshot=tt,this.type=$n.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{constructor(tt){this.snapshot=tt,this.type=$n.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rn{constructor(tt,yt,rt){this.routerEvent=tt,this.position=yt,this.anchor=rt,this.type=$n.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class _i{}class wr{constructor(tt){this.url=tt}}class Qr{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Yr,this.attachRef=null}}let Yr=(()=>{var Fe;class tt{constructor(){this.contexts=new Map}onChildOutletCreated(rt,Dt){const dn=this.getOrCreateContext(rt);dn.outlet=Dt,this.contexts.set(rt,dn)}onChildOutletDestroyed(rt){const Dt=this.getContext(rt);Dt&&(Dt.outlet=null,Dt.attachRef=null)}onOutletDeactivated(){const rt=this.contexts;return this.contexts=new Map,rt}onOutletReAttached(rt){this.contexts=rt}getOrCreateContext(rt){let Dt=this.getContext(rt);return Dt||(Dt=new Qr,this.contexts.set(rt,Dt)),Dt}getContext(rt){return this.contexts.get(rt)||null}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})();class no{constructor(tt){this._root=tt}get root(){return this._root.value}parent(tt){const yt=this.pathFromRoot(tt);return yt.length>1?yt[yt.length-2]:null}children(tt){const yt=Tr(tt,this._root);return yt?yt.children.map(rt=>rt.value):[]}firstChild(tt){const yt=Tr(tt,this._root);return yt&&yt.children.length>0?yt.children[0].value:null}siblings(tt){const yt=ro(tt,this._root);return yt.length<2?[]:yt[yt.length-2].children.map(Dt=>Dt.value).filter(Dt=>Dt!==tt)}pathFromRoot(tt){return ro(tt,this._root).map(yt=>yt.value)}}function Tr(Fe,tt){if(Fe===tt.value)return tt;for(const yt of tt.children){const rt=Tr(Fe,yt);if(rt)return rt}return null}function ro(Fe,tt){if(Fe===tt.value)return[tt];for(const yt of tt.children){const rt=ro(Fe,yt);if(rt.length)return rt.unshift(tt),rt}return[]}class po{constructor(tt,yt){this.value=tt,this.children=yt}toString(){return`TreeNode(${this.value})`}}function Os(Fe){const tt={};return Fe&&Fe.children.forEach(yt=>tt[yt.value.outlet]=yt),tt}class es extends no{constructor(tt,yt){super(tt),this.snapshot=yt,oi(this,tt)}toString(){return this.snapshot.toString()}}function Bs(Fe){const tt=function li(Fe){const dn=new tn([],{},{},"",{},oe,Fe,null,{});return new vn("",new po(dn,[]))}(Fe),yt=new P.t([new et("",{})]),rt=new P.t({}),Dt=new P.t({}),dn=new P.t({}),Jn=new P.t(""),$i=new dr(yt,rt,dn,Jn,Dt,oe,Fe,tt.root);return $i.snapshot=tt.root,new es(new po($i,[]),tt)}class dr{constructor(tt,yt,rt,Dt,dn,Jn,$i,Nr){this.urlSubject=tt,this.paramsSubject=yt,this.queryParamsSubject=rt,this.fragmentSubject=Dt,this.dataSubject=dn,this.outlet=Jn,this.component=$i,this._futureSnapshot=Nr,this.title=this.dataSubject?.pipe((0,A.T)(Ji=>Ji[xe]))??(0,_.of)(void 0),this.url=tt,this.params=yt,this.queryParams=rt,this.fragment=Dt,this.data=dn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,A.T)(tt=>N(tt))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,A.T)(tt=>N(tt))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Tn(Fe,tt,yt="emptyOnly"){let rt;const{routeConfig:Dt}=Fe;return rt=null===tt||"always"!==yt&&""!==Dt?.path&&(tt.component||tt.routeConfig?.loadComponent)?{params:{...Fe.params},data:{...Fe.data},resolve:{...Fe.data,...Fe._resolvedData??{}}}:{params:{...tt.params,...Fe.params},data:{...tt.data,...Fe.data},resolve:{...Fe.data,...tt.data,...Dt?.data,...Fe._resolvedData}},Dt&&$r(Dt)&&(rt.resolve[xe]=Dt.title),rt}class tn{get title(){return this.data?.[xe]}constructor(tt,yt,rt,Dt,dn,Jn,$i,Nr,Ji){this.url=tt,this.params=yt,this.queryParams=rt,this.fragment=Dt,this.data=dn,this.outlet=Jn,this.component=$i,this.routeConfig=Nr,this._resolve=Ji}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=N(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=N(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(rt=>rt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class vn extends no{constructor(tt,yt){super(yt),this.url=tt,oi(this,yt)}toString(){return Ci(this._root)}}function oi(Fe,tt){tt.value._routerState=Fe,tt.children.forEach(yt=>oi(Fe,yt))}function Ci(Fe){const tt=Fe.children.length>0?` { ${Fe.children.map(Ci).join(", ")} } `:"";return`${Fe.value}${tt}`}function or(Fe){if(Fe.snapshot){const tt=Fe.snapshot,yt=Fe._futureSnapshot;Fe.snapshot=yt,Z(tt.queryParams,yt.queryParams)||Fe.queryParamsSubject.next(yt.queryParams),tt.fragment!==yt.fragment&&Fe.fragmentSubject.next(yt.fragment),Z(tt.params,yt.params)||Fe.paramsSubject.next(yt.params),function ce(Fe,tt){if(Fe.length!==tt.length)return!1;for(let yt=0;yt<Fe.length;++yt)if(!Z(Fe[yt],tt[yt]))return!1;return!0}(tt.url,yt.url)||Fe.urlSubject.next(yt.url),Z(tt.data,yt.data)||Fe.dataSubject.next(yt.data)}else Fe.snapshot=Fe._futureSnapshot,Fe.dataSubject.next(Fe._futureSnapshot.data)}function yr(Fe,tt){const yt=Z(Fe.params,tt.params)&&function xt(Fe,tt){return un(Fe,tt)&&Fe.every((yt,rt)=>Z(yt.parameters,tt[rt].parameters))}(Fe.url,tt.url);return yt&&!(!Fe.parent!=!tt.parent)&&(!Fe.parent||yr(Fe.parent,tt.parent))}function $r(Fe){return"string"==typeof Fe.title||null===Fe.title}let ko=(()=>{var Fe;class tt{constructor(){this.activated=null,this._activatedRoute=null,this.name=oe,this.activateEvents=new l.bkB,this.deactivateEvents=new l.bkB,this.attachEvents=new l.bkB,this.detachEvents=new l.bkB,this.parentContexts=(0,l.WQX)(Yr),this.location=(0,l.WQX)(l.c1b),this.changeDetector=(0,l.WQX)(l.gRc),this.environmentInjector=(0,l.WQX)(l.uvJ),this.inputBinder=(0,l.WQX)(lo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(rt){if(rt.name){const{firstChange:Dt,previousValue:dn}=rt.name;if(Dt)return;this.isTrackedInParentContexts(dn)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(dn)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(rt){return this.parentContexts.getContext(rt)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const rt=this.parentContexts.getContext(this.name);rt?.route&&(rt.attachRef?this.attach(rt.attachRef,rt.route):this.activateWith(rt.route,rt.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new l.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new l.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new l.wOt(4012,!1);this.location.detach();const rt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(rt.instance),rt}attach(rt,Dt){this.activated=rt,this._activatedRoute=Dt,this.location.insert(rt.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(rt.instance)}deactivate(){if(this.activated){const rt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(rt)}}activateWith(rt,Dt){if(this.isActivated)throw new l.wOt(4013,!1);this._activatedRoute=rt;const dn=this.location,$i=rt.snapshot.component,Nr=this.parentContexts.getOrCreateContext(this.name).children,Ji=new qr(rt,Nr,dn.injector);this.activated=dn.createComponent($i,{index:dn.length,injector:Ji,environmentInjector:Dt??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275dir=l.FsC({type:Fe,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[l.OA$]}),tt})();class qr{__ngOutletInjector(tt){return new qr(this.route,this.childContexts,tt)}constructor(tt,yt,rt){this.route=tt,this.childContexts=yt,this.parent=rt}get(tt,yt){return tt===dr?this.route:tt===Yr?this.childContexts:this.parent.get(tt,yt)}}const lo=new l.nKC("");let ts=(()=>{var Fe;class tt{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(rt){this.unsubscribeFromRouteData(rt),this.subscribeToRouteData(rt)}unsubscribeFromRouteData(rt){this.outletDataSubscriptions.get(rt)?.unsubscribe(),this.outletDataSubscriptions.delete(rt)}subscribeToRouteData(rt){const{activatedRoute:Dt}=rt,dn=(0,v.zV)([Dt.queryParams,Dt.params,Dt.data]).pipe((0,L.n)(([Jn,$i,Nr],Ji)=>(Nr={...Jn,...$i,...Nr},0===Ji?(0,_.of)(Nr):Promise.resolve(Nr)))).subscribe(Jn=>{if(!rt.isActivated||!rt.activatedComponentRef||rt.activatedRoute!==Dt||null===Dt.component)return void this.unsubscribeFromRouteData(rt);const $i=(0,l.HJs)(Dt.component);if($i)for(const{templateName:Nr}of $i.inputs)rt.activatedComponentRef.setInput(Nr,Jn[Nr]);else this.unsubscribeFromRouteData(rt)});this.outletDataSubscriptions.set(rt,dn)}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac}),tt})();function Xr(Fe,tt,yt){if(yt&&Fe.shouldReuseRoute(tt.value,yt.value.snapshot)){const rt=yt.value;rt._futureSnapshot=tt.value;const Dt=function Hs(Fe,tt,yt){return tt.children.map(rt=>{for(const Dt of yt.children)if(Fe.shouldReuseRoute(rt.value,Dt.value.snapshot))return Xr(Fe,rt,Dt);return Xr(Fe,rt)})}(Fe,tt,yt);return new po(rt,Dt)}{if(Fe.shouldAttach(tt.value)){const dn=Fe.retrieve(tt.value);if(null!==dn){const Jn=dn.route;return Jn.value._futureSnapshot=tt.value,Jn.children=tt.children.map($i=>Xr(Fe,$i)),Jn}}const rt=function Ua(Fe){return new dr(new P.t(Fe.url),new P.t(Fe.params),new P.t(Fe.queryParams),new P.t(Fe.fragment),new P.t(Fe.data),Fe.outlet,Fe.component,Fe)}(tt.value),Dt=tt.children.map(dn=>Xr(Fe,dn));return new po(rt,Dt)}}const Ya="ngNavigationCancelingError";function Ba(Fe,tt){const{redirectTo:yt,navigationBehaviorOptions:rt}=_n(tt)?{redirectTo:tt,navigationBehaviorOptions:void 0}:tt,Dt=Pa(!1,Jt.Redirect);return Dt.url=yt,Dt.navigationBehaviorOptions=rt,Dt}function Pa(Fe,tt){const yt=new Error(`NavigationCancelingError: ${Fe||""}`);return yt[Ya]=!0,yt.cancellationCode=tt,yt}function Ga(Fe){return!!Fe&&Fe[Ya]}let To=(()=>{var Fe;class tt{}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275cmp=l.VBU({type:Fe,selectors:[["ng-component"]],standalone:!0,features:[l.aNF],decls:1,vars:0,template:function(rt,Dt){1&rt&&l.nrm(0,"router-outlet")},dependencies:[ko],encapsulation:2}),tt})();function zi(Fe){const tt=Fe.children&&Fe.children.map(zi),yt=tt?{...Fe,children:tt}:{...Fe};return!yt.component&&!yt.loadComponent&&(tt||yt.loadChildren)&&yt.outlet&&yt.outlet!==oe&&(yt.component=To),yt}function Ki(Fe){return Fe.outlet||oe}function Mr(Fe){if(!Fe)return null;if(Fe.routeConfig?._injector)return Fe.routeConfig._injector;for(let tt=Fe.parent;tt;tt=tt.parent){const yt=tt.routeConfig;if(yt?._loadedInjector)return yt._loadedInjector;if(yt?._injector)return yt._injector}return null}class Wt{constructor(tt,yt,rt,Dt,dn){this.routeReuseStrategy=tt,this.futureState=yt,this.currState=rt,this.forwardEvent=Dt,this.inputBindingEnabled=dn}activate(tt){const yt=this.futureState._root,rt=this.currState?this.currState._root:null;this.deactivateChildRoutes(yt,rt,tt),or(this.futureState.root),this.activateChildRoutes(yt,rt,tt)}deactivateChildRoutes(tt,yt,rt){const Dt=Os(yt);tt.children.forEach(dn=>{const Jn=dn.value.outlet;this.deactivateRoutes(dn,Dt[Jn],rt),delete Dt[Jn]}),Object.values(Dt).forEach(dn=>{this.deactivateRouteAndItsChildren(dn,rt)})}deactivateRoutes(tt,yt,rt){const Dt=tt.value,dn=yt?yt.value:null;if(Dt===dn)if(Dt.component){const Jn=rt.getContext(Dt.outlet);Jn&&this.deactivateChildRoutes(tt,yt,Jn.children)}else this.deactivateChildRoutes(tt,yt,rt);else dn&&this.deactivateRouteAndItsChildren(yt,rt)}deactivateRouteAndItsChildren(tt,yt){tt.value.component&&this.routeReuseStrategy.shouldDetach(tt.value.snapshot)?this.detachAndStoreRouteSubtree(tt,yt):this.deactivateRouteAndOutlet(tt,yt)}detachAndStoreRouteSubtree(tt,yt){const rt=yt.getContext(tt.value.outlet),Dt=rt&&tt.value.component?rt.children:yt,dn=Os(tt);for(const Jn of Object.values(dn))this.deactivateRouteAndItsChildren(Jn,Dt);if(rt&&rt.outlet){const Jn=rt.outlet.detach(),$i=rt.children.onOutletDeactivated();this.routeReuseStrategy.store(tt.value.snapshot,{componentRef:Jn,route:tt,contexts:$i})}}deactivateRouteAndOutlet(tt,yt){const rt=yt.getContext(tt.value.outlet),Dt=rt&&tt.value.component?rt.children:yt,dn=Os(tt);for(const Jn of Object.values(dn))this.deactivateRouteAndItsChildren(Jn,Dt);rt&&(rt.outlet&&(rt.outlet.deactivate(),rt.children.onOutletDeactivated()),rt.attachRef=null,rt.route=null)}activateChildRoutes(tt,yt,rt){const Dt=Os(yt);tt.children.forEach(dn=>{this.activateRoutes(dn,Dt[dn.value.outlet],rt),this.forwardEvent(new si(dn.value.snapshot))}),tt.children.length&&this.forwardEvent(new Vt(tt.value.snapshot))}activateRoutes(tt,yt,rt){const Dt=tt.value,dn=yt?yt.value:null;if(or(Dt),Dt===dn)if(Dt.component){const Jn=rt.getOrCreateContext(Dt.outlet);this.activateChildRoutes(tt,yt,Jn.children)}else this.activateChildRoutes(tt,yt,rt);else if(Dt.component){const Jn=rt.getOrCreateContext(Dt.outlet);if(this.routeReuseStrategy.shouldAttach(Dt.snapshot)){const $i=this.routeReuseStrategy.retrieve(Dt.snapshot);this.routeReuseStrategy.store(Dt.snapshot,null),Jn.children.onOutletReAttached($i.contexts),Jn.attachRef=$i.componentRef,Jn.route=$i.route.value,Jn.outlet&&Jn.outlet.attach($i.componentRef,$i.route.value),or($i.route.value),this.activateChildRoutes(tt,null,Jn.children)}else{const $i=Mr(Dt.snapshot);Jn.attachRef=null,Jn.route=Dt,Jn.injector=$i,Jn.outlet&&Jn.outlet.activateWith(Dt,Jn.injector),this.activateChildRoutes(tt,null,Jn.children)}}else this.activateChildRoutes(tt,null,rt)}}class On{constructor(tt){this.path=tt,this.route=this.path[this.path.length-1]}}class Nt{constructor(tt,yt){this.component=tt,this.route=yt}}function gi(Fe,tt,yt){const rt=Fe._root;return tr(rt,tt?tt._root:null,yt,[rt.value])}function Mi(Fe,tt){const yt=Symbol(),rt=tt.get(Fe,yt);return rt===yt?"function"!=typeof Fe||(0,l.LfX)(Fe)?tt.get(Fe):Fe:rt}function tr(Fe,tt,yt,rt,Dt={canDeactivateChecks:[],canActivateChecks:[]}){const dn=Os(tt);return Fe.children.forEach(Jn=>{(function mo(Fe,tt,yt,rt,Dt={canDeactivateChecks:[],canActivateChecks:[]}){const dn=Fe.value,Jn=tt?tt.value:null,$i=yt?yt.getContext(Fe.value.outlet):null;if(Jn&&dn.routeConfig===Jn.routeConfig){const Nr=function Bo(Fe,tt,yt){if("function"==typeof yt)return yt(Fe,tt);switch(yt){case"pathParamsChange":return!un(Fe.url,tt.url);case"pathParamsOrQueryParamsChange":return!un(Fe.url,tt.url)||!Z(Fe.queryParams,tt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yr(Fe,tt)||!Z(Fe.queryParams,tt.queryParams);default:return!yr(Fe,tt)}}(Jn,dn,dn.routeConfig.runGuardsAndResolvers);Nr?Dt.canActivateChecks.push(new On(rt)):(dn.data=Jn.data,dn._resolvedData=Jn._resolvedData),tr(Fe,tt,dn.component?$i?$i.children:null:yt,rt,Dt),Nr&&$i&&$i.outlet&&$i.outlet.isActivated&&Dt.canDeactivateChecks.push(new Nt($i.outlet.component,Jn))}else Jn&&is(tt,$i,Dt),Dt.canActivateChecks.push(new On(rt)),tr(Fe,null,dn.component?$i?$i.children:null:yt,rt,Dt)})(Jn,dn[Jn.value.outlet],yt,rt.concat([Jn.value]),Dt),delete dn[Jn.value.outlet]}),Object.entries(dn).forEach(([Jn,$i])=>is($i,yt.getContext(Jn),Dt)),Dt}function is(Fe,tt,yt){const rt=Os(Fe),Dt=Fe.value;Object.entries(rt).forEach(([dn,Jn])=>{is(Jn,Dt.component?tt?tt.children.getContext(dn):null:tt,yt)}),yt.canDeactivateChecks.push(new Nt(Dt.component&&tt&&tt.outlet&&tt.outlet.isActivated?tt.outlet.component:null,Dt))}function ha(Fe){return"function"==typeof Fe}function Ln(Fe){return Fe instanceof O.G||"EmptyError"===Fe?.name}const jt=Symbol("INITIAL_VALUE");function ti(){return(0,L.n)(Fe=>(0,v.zV)(Fe.map(tt=>tt.pipe((0,x.s)(1),(0,V.Z)(jt)))).pipe((0,A.T)(tt=>{for(const yt of tt)if(!0!==yt){if(yt===jt)return jt;if(!1===yt||yt instanceof Re)return yt}return!0}),(0,D.p)(tt=>tt!==jt),(0,x.s)(1)))}function kr(Fe){return(0,r.F)((0,R.M)(tt=>{if(_n(tt))throw Ba(0,tt)}),(0,A.T)(tt=>!0===tt))}class rl{constructor(tt){this.segmentGroup=tt||null}}class as extends Error{constructor(tt){super(),this.urlTree=tt}}function ho(Fe){return(0,i.$)(new rl(Fe))}class qs{constructor(tt,yt){this.urlSerializer=tt,this.urlTree=yt}lineralizeSegments(tt,yt){let rt=[],Dt=yt.root;for(;;){if(rt=rt.concat(Dt.segments),0===Dt.numberOfChildren)return(0,_.of)(rt);if(Dt.numberOfChildren>1||!Dt.children[oe])return(0,i.$)(new l.wOt(4e3,!1));Dt=Dt.children[oe]}}applyRedirectCommands(tt,yt,rt){const Dt=this.applyRedirectCreateUrlTree(yt,this.urlSerializer.parse(yt),tt,rt);if(yt.startsWith("/"))throw new as(Dt);return Dt}applyRedirectCreateUrlTree(tt,yt,rt,Dt){const dn=this.createSegmentGroup(tt,yt.root,rt,Dt);return new Re(dn,this.createQueryParams(yt.queryParams,this.urlTree.queryParams),yt.fragment)}createQueryParams(tt,yt){const rt={};return Object.entries(tt).forEach(([Dt,dn])=>{if("string"==typeof dn&&dn.startsWith(":")){const $i=dn.substring(1);rt[Dt]=yt[$i]}else rt[Dt]=dn}),rt}createSegmentGroup(tt,yt,rt,Dt){const dn=this.createSegments(tt,yt.segments,rt,Dt);let Jn={};return Object.entries(yt.children).forEach(([$i,Nr])=>{Jn[$i]=this.createSegmentGroup(tt,Nr,rt,Dt)}),new Ze(dn,Jn)}createSegments(tt,yt,rt,Dt){return yt.map(dn=>dn.path.startsWith(":")?this.findPosParam(tt,dn,Dt):this.findOrReturn(dn,rt))}findPosParam(tt,yt,rt){const Dt=rt[yt.path.substring(1)];if(!Dt)throw new l.wOt(4001,!1);return Dt}findOrReturn(tt,yt){let rt=0;for(const Dt of yt){if(Dt.path===tt.path)return yt.splice(rt),Dt;rt++}return tt}}const Ia={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ea(Fe,tt,yt,rt,Dt){const dn=za(Fe,tt,yt);return dn.matched?(rt=function ss(Fe,tt){return Fe.providers&&!Fe._injector&&(Fe._injector=(0,l.Ol2)(Fe.providers,tt,`Route: ${Fe.path}`)),Fe._injector??tt}(tt,rt),function Sa(Fe,tt,yt,rt){const Dt=tt.canMatch;if(!Dt||0===Dt.length)return(0,_.of)(!0);const dn=Dt.map(Jn=>{const $i=Mi(Jn,Fe);return _e(function Tt(Fe){return Fe&&ha(Fe.canMatch)}($i)?$i.canMatch(tt,yt):(0,l.N4e)(Fe,()=>$i(tt,yt)))});return(0,_.of)(dn).pipe(ti(),kr())}(rt,tt,yt).pipe((0,A.T)(Jn=>!0===Jn?dn:{...Ia}))):(0,_.of)(dn)}function za(Fe,tt,yt){if("**"===tt.path)return function dl(Fe){return{matched:!0,parameters:Fe.length>0?pe(Fe).parameters:{},consumedSegments:Fe,remainingSegments:[],positionalParamSegments:{}}}(yt);if(""===tt.path)return"full"===tt.pathMatch&&(Fe.hasChildren()||yt.length>0)?{...Ia}:{matched:!0,consumedSegments:[],remainingSegments:yt,parameters:{},positionalParamSegments:{}};const Dt=(tt.matcher||se)(yt,Fe,tt);if(!Dt)return{...Ia};const dn={};Object.entries(Dt.posParams??{}).forEach(([$i,Nr])=>{dn[$i]=Nr.path});const Jn=Dt.consumed.length>0?{...dn,...Dt.consumed[Dt.consumed.length-1].parameters}:dn;return{matched:!0,consumedSegments:Dt.consumed,remainingSegments:yt.slice(Dt.consumed.length),parameters:Jn,positionalParamSegments:Dt.posParams??{}}}function Co(Fe,tt,yt,rt){return yt.length>0&&function ks(Fe,tt,yt){return yt.some(rt=>vl(Fe,tt,rt)&&Ki(rt)!==oe)}(Fe,yt,rt)?{segmentGroup:new Ze(tt,Ts(rt,new Ze(yt,Fe.children))),slicedSegments:[]}:0===yt.length&&function la(Fe,tt,yt){return yt.some(rt=>vl(Fe,tt,rt))}(Fe,yt,rt)?{segmentGroup:new Ze(Fe.segments,js(Fe,yt,rt,Fe.children)),slicedSegments:yt}:{segmentGroup:new Ze(Fe.segments,Fe.children),slicedSegments:yt}}function js(Fe,tt,yt,rt){const Dt={};for(const dn of yt)if(vl(Fe,tt,dn)&&!rt[Ki(dn)]){const Jn=new Ze([],{});Dt[Ki(dn)]=Jn}return{...rt,...Dt}}function Ts(Fe,tt){const yt={};yt[oe]=tt;for(const rt of Fe)if(""===rt.path&&Ki(rt)!==oe){const Dt=new Ze([],{});yt[Ki(rt)]=Dt}return yt}function vl(Fe,tt,yt){return(!(Fe.hasChildren()||tt.length>0)||"full"!==yt.pathMatch)&&""===yt.path}class Pr{}class Ai{constructor(tt,yt,rt,Dt,dn,Jn,$i){this.injector=tt,this.configLoader=yt,this.rootComponentType=rt,this.config=Dt,this.urlTree=dn,this.paramsInheritanceStrategy=Jn,this.urlSerializer=$i,this.applyRedirects=new qs(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(tt){return new l.wOt(4002,`'${tt.segmentGroup}'`)}recognize(){const tt=Co(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(tt).pipe((0,A.T)(yt=>{const rt=new tn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},oe,this.rootComponentType,null,{}),Dt=new po(rt,yt),dn=new vn("",Dt),Jn=function wt(Fe,tt,yt=null,rt=null){return Oi(Un(Fe),tt,yt,rt)}(rt,[],this.urlTree.queryParams,this.urlTree.fragment);return Jn.queryParams=this.urlTree.queryParams,dn.url=this.urlSerializer.serialize(Jn),this.inheritParamsAndData(dn._root,null),{state:dn,tree:Jn}}))}match(tt){return this.processSegmentGroup(this.injector,this.config,tt,oe).pipe((0,G.W)(rt=>{if(rt instanceof as)return this.urlTree=rt.urlTree,this.match(rt.urlTree.root);throw rt instanceof rl?this.noMatchError(rt):rt}))}inheritParamsAndData(tt,yt){const rt=tt.value,Dt=Tn(rt,yt,this.paramsInheritanceStrategy);rt.params=Object.freeze(Dt.params),rt.data=Object.freeze(Dt.data),tt.children.forEach(dn=>this.inheritParamsAndData(dn,rt))}processSegmentGroup(tt,yt,rt,Dt){return 0===rt.segments.length&&rt.hasChildren()?this.processChildren(tt,yt,rt):this.processSegment(tt,yt,rt,rt.segments,Dt,!0).pipe((0,A.T)(dn=>dn instanceof po?[dn]:[]))}processChildren(tt,yt,rt){const Dt=[];for(const dn of Object.keys(rt.children))"primary"===dn?Dt.unshift(dn):Dt.push(dn);return(0,m.H)(Dt).pipe((0,k.H)(dn=>{const Jn=rt.children[dn],$i=function Vi(Fe,tt){const yt=Fe.filter(rt=>Ki(rt)===tt);return yt.push(...Fe.filter(rt=>Ki(rt)!==tt)),yt}(yt,dn);return this.processSegmentGroup(tt,$i,Jn,dn)}),(0,Y.S)((dn,Jn)=>(dn.push(...Jn),dn)),(0,K.U)(null),(0,$.H)(),(0,F.ZZ)(dn=>{if(null===dn)return ho(rt);const Jn=St(dn);return function lt(Fe){Fe.sort((tt,yt)=>tt.value.outlet===oe?-1:yt.value.outlet===oe?1:tt.value.outlet.localeCompare(yt.value.outlet))}(Jn),(0,_.of)(Jn)}))}processSegment(tt,yt,rt,Dt,dn,Jn){return(0,m.H)(yt).pipe((0,k.H)($i=>this.processSegmentAgainstRoute($i._injector??tt,yt,$i,rt,Dt,dn,Jn).pipe((0,G.W)(Nr=>{if(Nr instanceof rl)return(0,_.of)(null);throw Nr}))),(0,I.$)($i=>!!$i),(0,G.W)($i=>{if(Ln($i))return function Oa(Fe,tt,yt){return 0===tt.length&&!Fe.children[yt]}(rt,Dt,dn)?(0,_.of)(new Pr):ho(rt);throw $i}))}processSegmentAgainstRoute(tt,yt,rt,Dt,dn,Jn,$i){return function Ws(Fe,tt,yt,rt){return!!(Ki(Fe)===rt||rt!==oe&&vl(tt,yt,Fe))&&za(tt,Fe,yt).matched}(rt,Dt,dn,Jn)?void 0===rt.redirectTo?this.matchSegmentAgainstRoute(tt,Dt,rt,dn,Jn):this.allowRedirects&&$i?this.expandSegmentAgainstRouteUsingRedirect(tt,Dt,yt,rt,dn,Jn):ho(Dt):ho(Dt)}expandSegmentAgainstRouteUsingRedirect(tt,yt,rt,Dt,dn,Jn){const{matched:$i,consumedSegments:Nr,positionalParamSegments:Ji,remainingSegments:Ho}=za(yt,Dt,dn);if(!$i)return ho(yt);Dt.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const vs=this.applyRedirects.applyRedirectCommands(Nr,Dt.redirectTo,Ji);return this.applyRedirects.lineralizeSegments(Dt,vs).pipe((0,F.ZZ)(cs=>this.processSegment(tt,rt,yt,cs.concat(Ho),Jn,!1)))}matchSegmentAgainstRoute(tt,yt,rt,Dt,dn){const Jn=ea(yt,rt,Dt,tt);return"**"===rt.path&&(yt.children={}),Jn.pipe((0,L.n)($i=>$i.matched?this.getChildConfig(tt=rt._injector??tt,rt,Dt).pipe((0,L.n)(({routes:Nr})=>{const Ji=rt._loadedInjector??tt,{consumedSegments:Ho,remainingSegments:vs,parameters:cs}=$i,Bt=new tn(Ho,cs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function qe(Fe){return Fe.data||{}}(rt),Ki(rt),rt.component??rt._loadedComponent??null,rt,function hn(Fe){return Fe.resolve||{}}(rt)),{segmentGroup:Te,slicedSegments:ze}=Co(yt,Ho,vs,Nr);if(0===ze.length&&Te.hasChildren())return this.processChildren(Ji,Nr,Te).pipe((0,A.T)(ht=>null===ht?null:new po(Bt,ht)));if(0===Nr.length&&0===ze.length)return(0,_.of)(new po(Bt,[]));const Ie=Ki(rt)===dn;return this.processSegment(Ji,Nr,Te,ze,Ie?oe:dn,!0).pipe((0,A.T)(ht=>new po(Bt,ht instanceof po?[ht]:[])))})):ho(yt)))}getChildConfig(tt,yt,rt){return yt.children?(0,_.of)({routes:yt.children,injector:tt}):yt.loadChildren?void 0!==yt._loadedRoutes?(0,_.of)({routes:yt._loadedRoutes,injector:yt._loadedInjector}):function Jr(Fe,tt,yt,rt){const Dt=tt.canLoad;if(void 0===Dt||0===Dt.length)return(0,_.of)(!0);const dn=Dt.map(Jn=>{const $i=Mi(Jn,Fe);return _e(function Po(Fe){return Fe&&ha(Fe.canLoad)}($i)?$i.canLoad(tt,yt):(0,l.N4e)(Fe,()=>$i(tt,yt)))});return(0,_.of)(dn).pipe(ti(),kr())}(tt,yt,rt).pipe((0,F.ZZ)(Dt=>Dt?this.configLoader.loadChildren(tt,yt).pipe((0,R.M)(dn=>{yt._loadedRoutes=dn.routes,yt._loadedInjector=dn.injector})):function aa(Fe){return(0,i.$)(Pa(!1,Jt.GuardRejected))}())):(0,_.of)({routes:[],injector:tt})}}function An(Fe){const tt=Fe.value.routeConfig;return tt&&""===tt.path}function St(Fe){const tt=[],yt=new Set;for(const rt of Fe){if(!An(rt)){tt.push(rt);continue}const Dt=tt.find(dn=>rt.value.routeConfig===dn.value.routeConfig);void 0!==Dt?(Dt.children.push(...rt.children),yt.add(Dt)):tt.push(rt)}for(const rt of yt){const Dt=St(rt.children);tt.push(new po(rt.value,Dt))}return tt.filter(rt=>!yt.has(rt))}function le(Fe){const tt=Fe.children.map(yt=>le(yt)).flat();return[Fe,...tt]}function Ao(Fe){return(0,L.n)(tt=>{const yt=Fe(tt);return yt?(0,m.H)(yt).pipe((0,A.T)(()=>tt)):(0,_.of)(tt)})}let Wo=(()=>{var Fe;class tt{buildTitle(rt){let Dt,dn=rt.root;for(;void 0!==dn;)Dt=this.getResolvedTitleForRoute(dn)??Dt,dn=dn.children.find(Jn=>Jn.outlet===oe);return Dt}getResolvedTitleForRoute(rt){return rt.data[xe]}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:()=>(0,l.WQX)(ta),providedIn:"root"}),tt})(),ta=(()=>{var Fe;class tt extends Wo{constructor(rt){super(),this.title=rt}updateTitle(rt){const Dt=this.buildTitle(rt);void 0!==Dt&&this.title.setTitle(Dt)}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)(l.KVO(ge.hE))},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})();const bo=new l.nKC("",{providedIn:"root",factory:()=>({})}),Ns=new l.nKC("");let Ka=(()=>{var Fe;class tt{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,l.WQX)(l.Ql9)}loadComponent(rt){if(this.componentLoaders.get(rt))return this.componentLoaders.get(rt);if(rt._loadedComponent)return(0,_.of)(rt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(rt);const Dt=_e(rt.loadComponent()).pipe((0,A.T)(fc),(0,R.M)(Jn=>{this.onLoadEndListener&&this.onLoadEndListener(rt),rt._loadedComponent=Jn}),(0,z.j)(()=>{this.componentLoaders.delete(rt)})),dn=new h.G(Dt,()=>new g.B7).pipe((0,te.B)());return this.componentLoaders.set(rt,dn),dn}loadChildren(rt,Dt){if(this.childrenLoaders.get(Dt))return this.childrenLoaders.get(Dt);if(Dt._loadedRoutes)return(0,_.of)({routes:Dt._loadedRoutes,injector:Dt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Dt);const Jn=function Sl(Fe,tt,yt,rt){return _e(Fe.loadChildren()).pipe((0,A.T)(fc),(0,F.ZZ)(Dt=>Dt instanceof l.Co$||Array.isArray(Dt)?(0,_.of)(Dt):(0,m.H)(tt.compileModuleAsync(Dt))),(0,A.T)(Dt=>{rt&&rt(Fe);let dn,Jn,$i=!1;return Array.isArray(Dt)?(Jn=Dt,!0):(dn=Dt.create(yt).injector,Jn=dn.get(Ns,[],{optional:!0,self:!0}).flat()),{routes:Jn.map(zi),injector:dn}}))}(Dt,this.compiler,rt,this.onLoadEndListener).pipe((0,z.j)(()=>{this.childrenLoaders.delete(Dt)})),$i=new h.G(Jn,()=>new g.B7).pipe((0,te.B)());return this.childrenLoaders.set(Dt,$i),$i}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})();function fc(Fe){return function Yl(Fe){return Fe&&"object"==typeof Fe&&"default"in Fe}(Fe)?Fe.default:Fe}let _c=(()=>{var Fe;class tt{}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:()=>(0,l.WQX)(Ml),providedIn:"root"}),tt})(),Ml=(()=>{var Fe;class tt{shouldProcessUrl(rt){return!0}extract(rt){return rt}merge(rt,Dt){return rt}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})();const Ul=new l.nKC(""),tc=new l.nKC("");function Ic(Fe,tt,yt){const rt=Fe.get(tc),Dt=Fe.get(T.qQ);return Fe.get(l.SKi).runOutsideAngular(()=>{if(!Dt.startViewTransition||rt.skipNextTransition)return rt.skipNextTransition=!1,new Promise(Ji=>setTimeout(Ji));let dn;const Jn=new Promise(Ji=>{dn=Ji}),$i=Dt.startViewTransition(()=>(dn(),function nc(Fe){return new Promise(tt=>{(0,l.mal)(tt,{injector:Fe})})}(Fe))),{onViewTransitionCreated:Nr}=rt;return Nr&&(0,l.N4e)(Fe,()=>Nr({transition:$i,from:tt,to:yt})),Jn})}let na=(()=>{var Fe;class tt{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new g.B7,this.transitionAbortSubject=new g.B7,this.configLoader=(0,l.WQX)(Ka),this.environmentInjector=(0,l.WQX)(l.uvJ),this.urlSerializer=(0,l.WQX)(Gt),this.rootContexts=(0,l.WQX)(Yr),this.location=(0,l.WQX)(T.aZ),this.inputBindingEnabled=null!==(0,l.WQX)(lo,{optional:!0}),this.titleStrategy=(0,l.WQX)(Wo),this.options=(0,l.WQX)(bo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,l.WQX)(_c),this.createViewTransition=(0,l.WQX)(Ul,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,_.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=dn=>this.events.next(new Be(dn)),this.configLoader.onLoadStartListener=dn=>this.events.next(new Qe(dn))}complete(){this.transitions?.complete()}handleNavigationRequest(rt){const Dt=++this.navigationId;this.transitions?.next({...this.transitions.value,...rt,id:Dt})}setupNavigations(rt,Dt,dn){return this.transitions=new P.t({id:0,currentUrlTree:Dt,currentRawUrl:Dt,extractedUrl:this.urlHandlingStrategy.extract(Dt),urlAfterRedirects:this.urlHandlingStrategy.extract(Dt),rawUrl:Dt,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:mi,restoredState:null,currentSnapshot:dn.snapshot,targetSnapshot:null,currentRouterState:dn,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,D.p)(Jn=>0!==Jn.id),(0,A.T)(Jn=>({...Jn,extractedUrl:this.urlHandlingStrategy.extract(Jn.rawUrl)})),(0,L.n)(Jn=>{let $i=!1,Nr=!1;return(0,_.of)(Jn).pipe((0,L.n)(Ji=>{if(this.navigationId>Jn.id)return this.cancelNavigationTransition(Jn,"",Jt.SupersededByNewNavigation),a.w;this.currentTransition=Jn,this.currentNavigation={id:Ji.id,initialUrl:Ji.rawUrl,extractedUrl:Ji.extractedUrl,trigger:Ji.source,extras:Ji.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Ho=!rt.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Ho&&"reload"!==(Ji.extras.onSameUrlNavigation??rt.onSameUrlNavigation)){const cs="";return this.events.next(new xo(Ji.id,this.urlSerializer.serialize(Ji.rawUrl),cs,ki.IgnoredSameUrlNavigation)),Ji.resolve(null),a.w}if(this.urlHandlingStrategy.shouldProcessUrl(Ji.rawUrl))return(0,_.of)(Ji).pipe((0,L.n)(cs=>{const Bt=this.transitions?.getValue();return this.events.next(new Ii(cs.id,this.urlSerializer.serialize(cs.extractedUrl),cs.source,cs.restoredState)),Bt!==this.transitions?.getValue()?a.w:Promise.resolve(cs)}),function hi(Fe,tt,yt,rt,Dt,dn){return(0,F.ZZ)(Jn=>function Cl(Fe,tt,yt,rt,Dt,dn,Jn="emptyOnly"){return new Ai(Fe,tt,yt,rt,Dt,Jn,dn).recognize()}(Fe,tt,yt,rt,Jn.extractedUrl,Dt,dn).pipe((0,A.T)(({state:$i,tree:Nr})=>({...Jn,targetSnapshot:$i,urlAfterRedirects:Nr}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,rt.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,R.M)(cs=>{Jn.targetSnapshot=cs.targetSnapshot,Jn.urlAfterRedirects=cs.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:cs.urlAfterRedirects};const Bt=new Sr(cs.id,this.urlSerializer.serialize(cs.extractedUrl),this.urlSerializer.serialize(cs.urlAfterRedirects),cs.targetSnapshot);this.events.next(Bt)}));if(Ho&&this.urlHandlingStrategy.shouldProcessUrl(Ji.currentRawUrl)){const{id:cs,extractedUrl:Bt,source:Te,restoredState:ze,extras:Ie}=Ji,ht=new Ii(cs,this.urlSerializer.serialize(Bt),Te,ze);this.events.next(ht);const Kt=Bs(this.rootComponentType).snapshot;return this.currentTransition=Jn={...Ji,targetSnapshot:Kt,urlAfterRedirects:Bt,extras:{...Ie,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Bt,(0,_.of)(Jn)}{const cs="";return this.events.next(new xo(Ji.id,this.urlSerializer.serialize(Ji.extractedUrl),cs,ki.IgnoredByUrlHandlingStrategy)),Ji.resolve(null),a.w}}),(0,R.M)(Ji=>{const Ho=new ni(Ji.id,this.urlSerializer.serialize(Ji.extractedUrl),this.urlSerializer.serialize(Ji.urlAfterRedirects),Ji.targetSnapshot);this.events.next(Ho)}),(0,A.T)(Ji=>(this.currentTransition=Jn={...Ji,guards:gi(Ji.targetSnapshot,Ji.currentSnapshot,this.rootContexts)},Jn)),function br(Fe,tt){return(0,F.ZZ)(yt=>{const{targetSnapshot:rt,currentSnapshot:Dt,guards:{canActivateChecks:dn,canDeactivateChecks:Jn}}=yt;return 0===Jn.length&&0===dn.length?(0,_.of)({...yt,guardsResult:!0}):function wo(Fe,tt,yt,rt){return(0,m.H)(Fe).pipe((0,F.ZZ)(Dt=>function Io(Fe,tt,yt,rt,Dt){const dn=tt&&tt.routeConfig?tt.routeConfig.canDeactivate:null;if(!dn||0===dn.length)return(0,_.of)(!0);const Jn=dn.map($i=>{const Nr=Mr(tt)??Dt,Ji=Mi($i,Nr);return _e(function Ht(Fe){return Fe&&ha(Fe.canDeactivate)}(Ji)?Ji.canDeactivate(Fe,tt,yt,rt):(0,l.N4e)(Nr,()=>Ji(Fe,tt,yt,rt))).pipe((0,I.$)())});return(0,_.of)(Jn).pipe(ti())}(Dt.component,Dt.route,yt,tt,rt)),(0,I.$)(Dt=>!0!==Dt,!0))}(Jn,rt,Dt,Fe).pipe((0,F.ZZ)($i=>$i&&function Ys(Fe){return"boolean"==typeof Fe}($i)?function zs(Fe,tt,yt,rt){return(0,m.H)(tt).pipe((0,k.H)(Dt=>(0,S.x)(function fs(Fe,tt){return null!==Fe&&tt&&tt(new Mt(Fe)),(0,_.of)(!0)}(Dt.route.parent,rt),function sa(Fe,tt){return null!==Fe&&tt&&tt(new Vn(Fe)),(0,_.of)(!0)}(Dt.route,rt),function eo(Fe,tt,yt){const rt=tt[tt.length-1],dn=tt.slice(0,tt.length-1).reverse().map(Jn=>function Bi(Fe){const tt=Fe.routeConfig?Fe.routeConfig.canActivateChild:null;return tt&&0!==tt.length?{node:Fe,guards:tt}:null}(Jn)).filter(Jn=>null!==Jn).map(Jn=>(0,y.v)(()=>{const $i=Jn.guards.map(Nr=>{const Ji=Mr(Jn.node)??yt,Ho=Mi(Nr,Ji);return _e(function oa(Fe){return Fe&&ha(Fe.canActivateChild)}(Ho)?Ho.canActivateChild(rt,Fe):(0,l.N4e)(Ji,()=>Ho(rt,Fe))).pipe((0,I.$)())});return(0,_.of)($i).pipe(ti())}));return(0,_.of)(dn).pipe(ti())}(Fe,Dt.path,yt),function zr(Fe,tt,yt){const rt=tt.routeConfig?tt.routeConfig.canActivate:null;if(!rt||0===rt.length)return(0,_.of)(!0);const Dt=rt.map(dn=>(0,y.v)(()=>{const Jn=Mr(tt)??yt,$i=Mi(dn,Jn);return _e(function cl(Fe){return Fe&&ha(Fe.canActivate)}($i)?$i.canActivate(tt,Fe):(0,l.N4e)(Jn,()=>$i(tt,Fe))).pipe((0,I.$)())}));return(0,_.of)(Dt).pipe(ti())}(Fe,Dt.route,yt))),(0,I.$)(Dt=>!0!==Dt,!0))}(rt,dn,Fe,tt):(0,_.of)($i)),(0,A.T)($i=>({...yt,guardsResult:$i})))})}(this.environmentInjector,Ji=>this.events.next(Ji)),(0,R.M)(Ji=>{if(Jn.guardsResult=Ji.guardsResult,_n(Ji.guardsResult))throw Ba(0,Ji.guardsResult);const Ho=new he(Ji.id,this.urlSerializer.serialize(Ji.extractedUrl),this.urlSerializer.serialize(Ji.urlAfterRedirects),Ji.targetSnapshot,!!Ji.guardsResult);this.events.next(Ho)}),(0,D.p)(Ji=>!!Ji.guardsResult||(this.cancelNavigationTransition(Ji,"",Jt.GuardRejected),!1)),Ao(Ji=>{if(Ji.guards.canActivateChecks.length)return(0,_.of)(Ji).pipe((0,R.M)(Ho=>{const vs=new Ee(Ho.id,this.urlSerializer.serialize(Ho.extractedUrl),this.urlSerializer.serialize(Ho.urlAfterRedirects),Ho.targetSnapshot);this.events.next(vs)}),(0,L.n)(Ho=>{let vs=!1;return(0,_.of)(Ho).pipe(function sr(Fe,tt){return(0,F.ZZ)(yt=>{const{targetSnapshot:rt,guards:{canActivateChecks:Dt}}=yt;if(!Dt.length)return(0,_.of)(yt);const dn=new Set(Dt.map(Nr=>Nr.route)),Jn=new Set;for(const Nr of dn)if(!Jn.has(Nr))for(const Ji of le(Nr))Jn.add(Ji);let $i=0;return(0,m.H)(Jn).pipe((0,k.H)(Nr=>dn.has(Nr)?function Nn(Fe,tt,yt,rt){const Dt=Fe.routeConfig,dn=Fe._resolve;return void 0!==Dt?.title&&!$r(Dt)&&(dn[xe]=Dt.title),function So(Fe,tt,yt,rt){const Dt=de(Fe);if(0===Dt.length)return(0,_.of)({});const dn={};return(0,m.H)(Dt).pipe((0,F.ZZ)(Jn=>function Mo(Fe,tt,yt,rt){const Dt=Mr(tt)??rt,dn=Mi(Fe,Dt);return _e(dn.resolve?dn.resolve(tt,yt):(0,l.N4e)(Dt,()=>dn(tt,yt)))}(Fe[Jn],tt,yt,rt).pipe((0,I.$)(),(0,R.M)($i=>{dn[Jn]=$i}))),(0,ee.o)(1),(0,J.u)(dn),(0,G.W)(Jn=>Ln(Jn)?a.w:(0,i.$)(Jn)))}(dn,Fe,tt,rt).pipe((0,A.T)(Jn=>(Fe._resolvedData=Jn,Fe.data=Tn(Fe,Fe.parent,yt).resolve,null)))}(Nr,rt,Fe,tt):(Nr.data=Tn(Nr,Nr.parent,Fe).resolve,(0,_.of)(void 0))),(0,R.M)(()=>$i++),(0,ee.o)(1),(0,F.ZZ)(Nr=>$i===Jn.size?(0,_.of)(yt):a.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,R.M)({next:()=>vs=!0,complete:()=>{vs||this.cancelNavigationTransition(Ho,"",Jt.NoDataFromResolver)}}))}),(0,R.M)(Ho=>{const vs=new Pe(Ho.id,this.urlSerializer.serialize(Ho.extractedUrl),this.urlSerializer.serialize(Ho.urlAfterRedirects),Ho.targetSnapshot);this.events.next(vs)}))}),Ao(Ji=>{const Ho=vs=>{const cs=[];vs.routeConfig?.loadComponent&&!vs.routeConfig._loadedComponent&&cs.push(this.configLoader.loadComponent(vs.routeConfig).pipe((0,R.M)(Bt=>{vs.component=Bt}),(0,A.T)(()=>{})));for(const Bt of vs.children)cs.push(...Ho(Bt));return cs};return(0,v.zV)(Ho(Ji.targetSnapshot.root)).pipe((0,K.U)(null),(0,x.s)(1))}),Ao(()=>this.afterPreactivation()),(0,L.n)(()=>{const{currentSnapshot:Ji,targetSnapshot:Ho}=Jn,vs=this.createViewTransition?.(this.environmentInjector,Ji.root,Ho.root);return vs?(0,m.H)(vs).pipe((0,A.T)(()=>Jn)):(0,_.of)(Jn)}),(0,A.T)(Ji=>{const Ho=function Ls(Fe,tt,yt){const rt=Xr(Fe,tt._root,yt?yt._root:void 0);return new es(rt,tt)}(rt.routeReuseStrategy,Ji.targetSnapshot,Ji.currentRouterState);return this.currentTransition=Jn={...Ji,targetRouterState:Ho},this.currentNavigation.targetRouterState=Ho,Jn}),(0,R.M)(()=>{this.events.next(new _i)}),((Fe,tt,yt,rt)=>(0,A.T)(Dt=>(new Wt(tt,Dt.targetRouterState,Dt.currentRouterState,yt,rt).activate(Fe),Dt)))(this.rootContexts,rt.routeReuseStrategy,Ji=>this.events.next(Ji),this.inputBindingEnabled),(0,x.s)(1),(0,R.M)({next:Ji=>{$i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ar(Ji.id,this.urlSerializer.serialize(Ji.extractedUrl),this.urlSerializer.serialize(Ji.urlAfterRedirects))),this.titleStrategy?.updateTitle(Ji.targetRouterState.snapshot),Ji.resolve(!0)},complete:()=>{$i=!0}}),(0,X.Q)(this.transitionAbortSubject.pipe((0,R.M)(Ji=>{throw Ji}))),(0,z.j)(()=>{!$i&&!Nr&&this.cancelNavigationTransition(Jn,"",Jt.SupersededByNewNavigation),this.currentTransition?.id===Jn.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,G.W)(Ji=>{if(Nr=!0,Ga(Ji))this.events.next(new Fr(Jn.id,this.urlSerializer.serialize(Jn.extractedUrl),Ji.message,Ji.cancellationCode)),function ys(Fe){return Ga(Fe)&&_n(Fe.url)}(Ji)?this.events.next(new wr(Ji.url)):Jn.resolve(!1);else{this.events.next(new qn(Jn.id,this.urlSerializer.serialize(Jn.extractedUrl),Ji,Jn.targetSnapshot??void 0));try{Jn.resolve(rt.errorHandler(Ji))}catch(Ho){this.options.resolveNavigationPromiseOnError?Jn.resolve(!1):Jn.reject(Ho)}}return a.w}))}))}cancelNavigationTransition(rt,Dt,dn){const Jn=new Fr(rt.id,this.urlSerializer.serialize(rt.extractedUrl),Dt,dn);this.events.next(Jn),rt.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})();function ul(Fe){return Fe!==mi}let zl=(()=>{var Fe;class tt{}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:()=>(0,l.WQX)(Lt),providedIn:"root"}),tt})();class He{shouldDetach(tt){return!1}store(tt,yt){}shouldAttach(tt){return!1}retrieve(tt){return null}shouldReuseRoute(tt,yt){return tt.routeConfig===yt.routeConfig}}let Lt=(()=>{var Fe;class tt extends He{}return(Fe=tt).\u0275fac=(()=>{let yt;return function(Dt){return(yt||(yt=l.xGo(Fe)))(Dt||Fe)}})(),Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})(),Kn=(()=>{var Fe;class tt{}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:()=>(0,l.WQX)(ft),providedIn:"root"}),tt})(),ft=(()=>{var Fe;class tt extends Kn{constructor(){super(...arguments),this.location=(0,l.WQX)(T.aZ),this.urlSerializer=(0,l.WQX)(Gt),this.options=(0,l.WQX)(bo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,l.WQX)(_c),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Re,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Bs(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(rt){return this.location.subscribe(Dt=>{"popstate"===Dt.type&&rt(Dt.url,Dt.state)})}handleRouterEvent(rt,Dt){if(rt instanceof Ii)this.stateMemento=this.createStateMemento();else if(rt instanceof xo)this.rawUrlTree=Dt.initialUrl;else if(rt instanceof Sr){if("eager"===this.urlUpdateStrategy&&!Dt.extras.skipLocationChange){const dn=this.urlHandlingStrategy.merge(Dt.finalUrl,Dt.initialUrl);this.setBrowserUrl(dn,Dt)}}else rt instanceof _i?(this.currentUrlTree=Dt.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(Dt.finalUrl,Dt.initialUrl),this.routerState=Dt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Dt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Dt))):rt instanceof Fr&&(rt.code===Jt.GuardRejected||rt.code===Jt.NoDataFromResolver)?this.restoreHistory(Dt):rt instanceof qn?this.restoreHistory(Dt,!0):rt instanceof ar&&(this.lastSuccessfulId=rt.id,this.currentPageId=this.browserPageId)}setBrowserUrl(rt,Dt){const dn=this.urlSerializer.serialize(rt);if(this.location.isCurrentPathEqualTo(dn)||Dt.extras.replaceUrl){const $i={...Dt.extras.state,...this.generateNgRouterState(Dt.id,this.browserPageId)};this.location.replaceState(dn,"",$i)}else{const Jn={...Dt.extras.state,...this.generateNgRouterState(Dt.id,this.browserPageId+1)};this.location.go(dn,"",Jn)}}restoreHistory(rt,Dt=!1){if("computed"===this.canceledNavigationResolution){const Jn=this.currentPageId-this.browserPageId;0!==Jn?this.location.historyGo(Jn):this.currentUrlTree===rt.finalUrl&&0===Jn&&(this.resetState(rt),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Dt&&this.resetState(rt),this.resetUrlToCurrentUrlTree())}resetState(rt){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,rt.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(rt,Dt){return"computed"===this.canceledNavigationResolution?{navigationId:rt,\u0275routerPageId:Dt}:{navigationId:rt}}}return(Fe=tt).\u0275fac=(()=>{let yt;return function(Dt){return(yt||(yt=l.xGo(Fe)))(Dt||Fe)}})(),Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})();var Gn=function(Fe){return Fe[Fe.COMPLETE=0]="COMPLETE",Fe[Fe.FAILED=1]="FAILED",Fe[Fe.REDIRECTING=2]="REDIRECTING",Fe}(Gn||{});function bi(Fe,tt){Fe.events.pipe((0,D.p)(yt=>yt instanceof ar||yt instanceof Fr||yt instanceof qn||yt instanceof xo),(0,A.T)(yt=>yt instanceof ar||yt instanceof xo?Gn.COMPLETE:yt instanceof Fr&&(yt.code===Jt.Redirect||yt.code===Jt.SupersededByNewNavigation)?Gn.REDIRECTING:Gn.FAILED),(0,D.p)(yt=>yt!==Gn.REDIRECTING),(0,x.s)(1)).subscribe(()=>{tt()})}function lr(Fe){throw Fe}const Ur={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ns={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let No=(()=>{var Fe;class tt{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,l.WQX)(l.H3F),this.stateManager=(0,l.WQX)(Kn),this.options=(0,l.WQX)(bo,{optional:!0})||{},this.pendingTasks=(0,l.WQX)(l.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,l.WQX)(na),this.urlSerializer=(0,l.WQX)(Gt),this.location=(0,l.WQX)(T.aZ),this.urlHandlingStrategy=(0,l.WQX)(_c),this._events=new g.B7,this.errorHandler=this.options.errorHandler||lr,this.navigated=!1,this.routeReuseStrategy=(0,l.WQX)(zl),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,l.WQX)(Ns,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,l.WQX)(lo,{optional:!0}),this.eventsSubscription=new c.y,this.isNgZoneEnabled=(0,l.WQX)(l.SKi)instanceof l.SKi&&l.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:rt=>{this.console.warn(rt)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const rt=this.navigationTransitions.events.subscribe(Dt=>{try{const dn=this.navigationTransitions.currentTransition,Jn=this.navigationTransitions.currentNavigation;if(null!==dn&&null!==Jn)if(this.stateManager.handleRouterEvent(Dt,Jn),Dt instanceof Fr&&Dt.code!==Jt.Redirect&&Dt.code!==Jt.SupersededByNewNavigation)this.navigated=!0;else if(Dt instanceof ar)this.navigated=!0;else if(Dt instanceof wr){const $i=this.urlHandlingStrategy.merge(Dt.url,dn.currentRawUrl),Nr={info:dn.extras.info,skipLocationChange:dn.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ul(dn.source)};this.scheduleNavigation($i,mi,null,Nr,{resolve:dn.resolve,reject:dn.reject,promise:dn.promise})}(function Yo(Fe){return!(Fe instanceof _i||Fe instanceof wr)})(Dt)&&this._events.next(Dt)}catch(dn){this.navigationTransitions.transitionAbortSubject.next(dn)}});this.eventsSubscription.add(rt)}resetRootComponentType(rt){this.routerState.root.component=rt,this.navigationTransitions.rootComponentType=rt}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),mi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((rt,Dt)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(rt,"popstate",Dt)},0)})}navigateToSyncWithBrowser(rt,Dt,dn){const Jn={replaceUrl:!0},$i=dn?.navigationId?dn:null;if(dn){const Ji={...dn};delete Ji.navigationId,delete Ji.\u0275routerPageId,0!==Object.keys(Ji).length&&(Jn.state=Ji)}const Nr=this.parseUrl(rt);this.scheduleNavigation(Nr,Dt,$i,Jn)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(rt){this.config=rt.map(zi),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(rt,Dt={}){const{relativeTo:dn,queryParams:Jn,fragment:$i,queryParamsHandling:Nr,preserveFragment:Ji}=Dt,Ho=Ji?this.currentUrlTree.fragment:$i;let cs,vs=null;switch(Nr){case"merge":vs={...this.currentUrlTree.queryParams,...Jn};break;case"preserve":vs=this.currentUrlTree.queryParams;break;default:vs=Jn||null}null!==vs&&(vs=this.removeEmptyProps(vs));try{cs=Un(dn?dn.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof rt[0]||!rt[0].startsWith("/"))&&(rt=[]),cs=this.currentUrlTree.root}return Oi(cs,rt,vs,Ho??null)}navigateByUrl(rt,Dt={skipLocationChange:!1}){const dn=_n(rt)?rt:this.parseUrl(rt),Jn=this.urlHandlingStrategy.merge(dn,this.rawUrlTree);return this.scheduleNavigation(Jn,mi,null,Dt)}navigate(rt,Dt={skipLocationChange:!1}){return function ds(Fe){for(let tt=0;tt<Fe.length;tt++)if(null==Fe[tt])throw new l.wOt(4008,!1)}(rt),this.navigateByUrl(this.createUrlTree(rt,Dt),Dt)}serializeUrl(rt){return this.urlSerializer.serialize(rt)}parseUrl(rt){try{return this.urlSerializer.parse(rt)}catch{return this.urlSerializer.parse("/")}}isActive(rt,Dt){let dn;if(dn=!0===Dt?{...Ur}:!1===Dt?{...ns}:Dt,_n(rt))return Me(this.currentUrlTree,rt,dn);const Jn=this.parseUrl(rt);return Me(this.currentUrlTree,Jn,dn)}removeEmptyProps(rt){return Object.entries(rt).reduce((Dt,[dn,Jn])=>(null!=Jn&&(Dt[dn]=Jn),Dt),{})}scheduleNavigation(rt,Dt,dn,Jn,$i){if(this.disposed)return Promise.resolve(!1);let Nr,Ji,Ho;$i?(Nr=$i.resolve,Ji=$i.reject,Ho=$i.promise):Ho=new Promise((cs,Bt)=>{Nr=cs,Ji=Bt});const vs=this.pendingTasks.add();return bi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(vs))}),this.navigationTransitions.handleNavigationRequest({source:Dt,restoredState:dn,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:rt,extras:Jn,resolve:Nr,reject:Ji,promise:Ho,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ho.catch(cs=>Promise.reject(cs))}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})(),Go=(()=>{var Fe;class tt{constructor(rt,Dt,dn,Jn,$i,Nr){this.router=rt,this.route=Dt,this.tabIndexAttribute=dn,this.renderer=Jn,this.el=$i,this.locationStrategy=Nr,this.href=null,this.commands=null,this.onChanges=new g.B7,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Ji=$i.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Ji||"area"===Ji,this.isAnchorElement?this.subscription=rt.events.subscribe(Ho=>{Ho instanceof ar&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(rt){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",rt)}ngOnChanges(rt){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(rt){null!=rt?(this.commands=Array.isArray(rt)?rt:[rt],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(rt,Dt,dn,Jn,$i){const Nr=this.urlTree;return!!(null===Nr||this.isAnchorElement&&(0!==rt||Dt||dn||Jn||$i||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Nr,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const rt=this.urlTree;this.href=null!==rt&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(rt)):null;const Dt=null===this.href?null:(0,l.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",Dt)}applyAttributeValue(rt,Dt){const dn=this.renderer,Jn=this.el.nativeElement;null!==Dt?dn.setAttribute(Jn,rt,Dt):dn.removeAttribute(Jn,rt)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)(l.rXU(No),l.rXU(dr),l.kS0("tabindex"),l.rXU(l.sFG),l.rXU(l.aKT),l.rXU(T.hb))},Fe.\u0275dir=l.FsC({type:Fe,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(rt,Dt){1&rt&&l.bIt("click",function(Jn){return Dt.onClick(Jn.button,Jn.ctrlKey,Jn.shiftKey,Jn.altKey,Jn.metaKey)}),2&rt&&l.BMQ("target",Dt.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[l.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",l.L39],skipLocationChange:[l.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",l.L39],replaceUrl:[l.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",l.L39],routerLink:"routerLink"},standalone:!0,features:[l.GFd,l.OA$]}),tt})();class Vo{}let Ir=(()=>{var Fe;class tt{preload(rt,Dt){return Dt().pipe((0,G.W)(()=>(0,_.of)(null)))}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})(),Es=(()=>{var Fe;class tt{constructor(rt,Dt,dn,Jn,$i){this.router=rt,this.injector=dn,this.preloadingStrategy=Jn,this.loader=$i}setUpPreloading(){this.subscription=this.router.events.pipe((0,D.p)(rt=>rt instanceof ar),(0,k.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(rt,Dt){const dn=[];for(const Jn of Dt){Jn.providers&&!Jn._injector&&(Jn._injector=(0,l.Ol2)(Jn.providers,rt,`Route: ${Jn.path}`));const $i=Jn._injector??rt,Nr=Jn._loadedInjector??$i;(Jn.loadChildren&&!Jn._loadedRoutes&&void 0===Jn.canLoad||Jn.loadComponent&&!Jn._loadedComponent)&&dn.push(this.preloadConfig($i,Jn)),(Jn.children||Jn._loadedRoutes)&&dn.push(this.processRoutes(Nr,Jn.children??Jn._loadedRoutes))}return(0,m.H)(dn).pipe((0,re.U)())}preloadConfig(rt,Dt){return this.preloadingStrategy.preload(Dt,()=>{let dn;dn=Dt.loadChildren&&void 0===Dt.canLoad?this.loader.loadChildren(rt,Dt):(0,_.of)(null);const Jn=dn.pipe((0,F.ZZ)($i=>null===$i?(0,_.of)(void 0):(Dt._loadedRoutes=$i.routes,Dt._loadedInjector=$i.injector,this.processRoutes($i.injector??rt,$i.routes))));if(Dt.loadComponent&&!Dt._loadedComponent){const $i=this.loader.loadComponent(Dt);return(0,m.H)([Jn,$i]).pipe((0,re.U)())}return Jn})}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)(l.KVO(No),l.KVO(l.Ql9),l.KVO(l.uvJ),l.KVO(Vo),l.KVO(Ka))},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),tt})();const Ea=new l.nKC("");let Vs=(()=>{var Fe;class tt{constructor(rt,Dt,dn,Jn,$i={}){this.urlSerializer=rt,this.transitions=Dt,this.viewportScroller=dn,this.zone=Jn,this.options=$i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,l.WQX)(l.uvJ),$i.scrollPositionRestoration||="disabled",$i.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(rt=>{rt instanceof Ii?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=rt.navigationTrigger,this.restoredId=rt.restoredState?rt.restoredState.navigationId:0):rt instanceof ar?(this.lastId=rt.id,this.scheduleScrollEvent(rt,this.urlSerializer.parse(rt.urlAfterRedirects).fragment)):rt instanceof xo&&rt.code===ki.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(rt,this.urlSerializer.parse(rt.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(rt=>{rt instanceof Rn&&(rt.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(rt.position):rt.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(rt.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(rt,Dt){var dn=this;this.zone.runOutsideAngular((0,n.A)(function*(){yield new Promise(Jn=>{setTimeout(()=>{Jn()}),(0,l.mal)(()=>{Jn()},{injector:dn.environmentInjector})}),dn.zone.run(()=>{dn.transitions.events.next(new Rn(rt,"popstate"===dn.lastSource?dn.store[dn.restoredId]:null,Dt))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(Fe=tt).\u0275fac=function(rt){l.QTQ()},Fe.\u0275prov=l.jDH({token:Fe,factory:Fe.\u0275fac}),tt})();function gs(Fe,tt){return{\u0275kind:Fe,\u0275providers:tt}}function ut(){const Fe=(0,l.WQX)(l.zZn);return tt=>{const yt=Fe.get(l.o8S);if(tt!==yt.components[0])return;const rt=Fe.get(No),Dt=Fe.get(Pn);1===Fe.get(Qn)&&rt.initialNavigation(),Fe.get(pr,null,l.$GK.Optional)?.setUpPreloading(),Fe.get(Ea,null,l.$GK.Optional)?.init(),rt.resetRootComponentType(yt.componentTypes[0]),Dt.closed||(Dt.next(),Dt.complete(),Dt.unsubscribe())}}const Pn=new l.nKC("",{factory:()=>new g.B7}),Qn=new l.nKC("",{providedIn:"root",factory:()=>1}),pr=new l.nKC("");function co(Fe){return gs(0,[{provide:pr,useExisting:Es},{provide:Vo,useExisting:Fe}])}function $o(Fe){return gs(9,[{provide:Ul,useValue:Ic},{provide:tc,useValue:{skipNextTransition:!!Fe?.skipInitialTransition,...Fe}}])}const Ha=new l.nKC("ROUTER_FORROOT_GUARD"),ic=[T.aZ,{provide:Gt,useClass:pn},No,Yr,{provide:dr,useFactory:function hl(Fe){return Fe.routerState.root},deps:[No]},Ka,[]];let gl=(()=>{var Fe;class tt{constructor(rt){}static forRoot(rt,Dt){return{ngModule:tt,providers:[ic,[],{provide:Ns,multi:!0,useValue:rt},{provide:Ha,useFactory:qa,deps:[[No,new l.Xx1,new l.kdw]]},{provide:bo,useValue:Dt||{}},Dt?.useHash?{provide:T.hb,useClass:T.fw}:{provide:T.hb,useClass:T.Sm},{provide:Ea,useFactory:()=>{const Fe=(0,l.WQX)(T.Xr),tt=(0,l.WQX)(l.SKi),yt=(0,l.WQX)(bo),rt=(0,l.WQX)(na),Dt=(0,l.WQX)(Gt);return yt.scrollOffset&&Fe.setOffset(yt.scrollOffset),new Vs(Dt,rt,Fe,tt,yt)}},Dt?.preloadingStrategy?co(Dt.preloadingStrategy).\u0275providers:[],Dt?.initialNavigation?xd(Dt):[],Dt?.bindToComponentInputs?gs(8,[ts,{provide:lo,useExisting:ts}]).\u0275providers:[],Dt?.enableViewTransitions?$o().\u0275providers:[],[{provide:_s,useFactory:ut},{provide:l.iLQ,multi:!0,useExisting:_s}]]}}static forChild(rt){return{ngModule:tt,providers:[{provide:Ns,multi:!0,useValue:rt}]}}}return(Fe=tt).\u0275fac=function(rt){return new(rt||Fe)(l.KVO(Ha,8))},Fe.\u0275mod=l.$C({type:Fe}),Fe.\u0275inj=l.G2t({}),tt})();function qa(Fe){return"guarded"}function xd(Fe){return["disabled"===Fe.initialNavigation?gs(3,[{provide:l.hnV,multi:!0,useFactory:()=>{const tt=(0,l.WQX)(No);return()=>{tt.setUpLocationChangeListener()}}},{provide:Qn,useValue:2}]).\u0275providers:[],"enabledBlocking"===Fe.initialNavigation?gs(2,[{provide:Qn,useValue:0},{provide:l.hnV,multi:!0,deps:[l.zZn],useFactory:tt=>{const yt=tt.get(T.hj,Promise.resolve());return()=>yt.then(()=>new Promise(rt=>{const Dt=tt.get(No),dn=tt.get(Pn);bi(Dt,()=>{rt(!0)}),tt.get(na).afterPreactivation=()=>(rt(!0),dn.closed?(0,_.of)(void 0):dn),Dt.initialNavigation()}))}}]).\u0275providers:[]]}const _s=new l.nKC("")},65240:(Ue,W,d)=>{"use strict";function n(ge){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(oe){return typeof oe}:function(oe){return oe&&"function"==typeof Symbol&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe})(ge)}function m(ge,oe,xe){return(oe=function p(ge){var oe=function l(ge,oe){if("object"!=n(ge)||!ge)return ge;var xe=ge[Symbol.toPrimitive];if(void 0!==xe){var ue=xe.call(ge,oe||"default");if("object"!=n(ue))return ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===oe?String:Number)(ge)}(ge,"string");return"symbol"==n(oe)?oe:String(oe)}(oe))in ge?Object.defineProperty(ge,oe,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ge[oe]=xe,ge}d.d(W,{Mm:()=>te,Wr:()=>c,h:()=>re,Sd:()=>I,D9:()=>X,c$:()=>z});var _=d(58527),P=d(43848),v=d(39595),O=d(93181),S=d(82e3),y=d(63997),r=d(65706),i=d(55833),a=d(83915),h=d(79539),g=d(72147);class c{}let T=(()=>{var ge;class oe extends c{getTranslation(ue){return(0,P.of)({})}}return ge=oe,m(oe,"\u0275fac",(()=>{let xe;return function(N){return(xe||(xe=_.xGo(ge)))(N||ge)}})()),m(oe,"\u0275prov",_.jDH({token:ge,factory:ge.\u0275fac})),oe})();class A{}let L=(()=>{var ge;class oe{handle(ue){return ue.key}}return ge=oe,m(oe,"\u0275fac",function(ue){return new(ue||ge)}),m(oe,"\u0275prov",_.jDH({token:ge,factory:ge.\u0275fac})),oe})();function x(ge,oe){if(ge===oe)return!0;if(null===ge||null===oe)return!1;if(ge!=ge&&oe!=oe)return!0;let N,se,ce,xe=typeof ge;if(xe==typeof oe&&"object"==xe){if(!Array.isArray(ge)){if(Array.isArray(oe))return!1;for(se in ce=Object.create(null),ge){if(!x(ge[se],oe[se]))return!1;ce[se]=!0}for(se in oe)if(!(se in ce)&&typeof oe[se]<"u")return!1;return!0}if(!Array.isArray(oe))return!1;if((N=ge.length)==oe.length){for(se=0;se<N;se++)if(!x(ge[se],oe[se]))return!1;return!0}}return!1}function V(ge){return typeof ge<"u"&&null!==ge}function D(ge){return ge&&"object"==typeof ge&&!Array.isArray(ge)}function F(ge,oe){let xe=Object.assign({},ge);return D(ge)&&D(oe)&&Object.keys(oe).forEach(ue=>{D(oe[ue])?ue in ge?xe[ue]=F(ge[ue],oe[ue]):Object.assign(xe,{[ue]:oe[ue]}):Object.assign(xe,{[ue]:oe[ue]})}),xe}class I{}let k=(()=>{var ge;class oe extends I{constructor(...ue){super(...ue),m(this,"templateMatcher",/{{\s?([^{}\s]*)\s?}}/g)}interpolate(ue,N){let se;return se="string"==typeof ue?this.interpolateString(ue,N):"function"==typeof ue?this.interpolateFunction(ue,N):ue,se}getValue(ue,N){let se="string"==typeof N?N.split("."):[N];N="";do{N+=se.shift(),!V(ue)||!V(ue[N])||"object"!=typeof ue[N]&&se.length?se.length?N+=".":ue=void 0:(ue=ue[N],N="")}while(se.length);return ue}interpolateFunction(ue,N){return ue(N)}interpolateString(ue,N){return N?ue.replace(this.templateMatcher,(se,ce)=>{let Z=this.getValue(N,ce);return V(Z)?Z:se}):ue}}return ge=oe,m(oe,"\u0275fac",(()=>{let xe;return function(N){return(xe||(xe=_.xGo(ge)))(N||ge)}})()),m(oe,"\u0275prov",_.jDH({token:ge,factory:ge.\u0275fac})),oe})();class R{}let G=(()=>{var ge;class oe extends R{compile(ue,N){return ue}compileTranslations(ue,N){return ue}}return ge=oe,m(oe,"\u0275fac",(()=>{let xe;return function(N){return(xe||(xe=_.xGo(ge)))(N||ge)}})()),m(oe,"\u0275prov",_.jDH({token:ge,factory:ge.\u0275fac})),oe})();class Y{constructor(){m(this,"defaultLang",void 0),m(this,"currentLang",this.defaultLang),m(this,"translations",{}),m(this,"langs",[]),m(this,"onTranslationChange",new _.bkB),m(this,"onLangChange",new _.bkB),m(this,"onDefaultLangChange",new _.bkB)}}const K=new _.nKC("USE_STORE"),$=new _.nKC("USE_DEFAULT_LANG"),ee=new _.nKC("DEFAULT_LANGUAGE"),J=new _.nKC("USE_EXTEND");let z=(()=>{var ge;class oe{get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(ue){this.isolate?this._defaultLang=ue:this.store.defaultLang=ue}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(ue){this.isolate?this._currentLang=ue:this.store.currentLang=ue}get langs(){return this.isolate?this._langs:this.store.langs}set langs(ue){this.isolate?this._langs=ue:this.store.langs=ue}get translations(){return this.isolate?this._translations:this.store.translations}set translations(ue){this.isolate?this._translations=ue:this.store.translations=ue}constructor(ue,N,se,ce,Z,de=!0,ae=!1,pe=!1,_e){m(this,"store",void 0),m(this,"currentLoader",void 0),m(this,"compiler",void 0),m(this,"parser",void 0),m(this,"missingTranslationHandler",void 0),m(this,"useDefaultLang",void 0),m(this,"isolate",void 0),m(this,"extend",void 0),m(this,"loadingTranslations",void 0),m(this,"pending",!1),m(this,"_onTranslationChange",new _.bkB),m(this,"_onLangChange",new _.bkB),m(this,"_onDefaultLangChange",new _.bkB),m(this,"_defaultLang",void 0),m(this,"_currentLang",void 0),m(this,"_langs",[]),m(this,"_translations",{}),m(this,"_translationRequests",{}),this.store=ue,this.currentLoader=N,this.compiler=se,this.parser=ce,this.missingTranslationHandler=Z,this.useDefaultLang=de,this.isolate=ae,this.extend=pe,_e&&this.setDefaultLang(_e)}setDefaultLang(ue){if(ue===this.defaultLang)return;let N=this.retrieveTranslations(ue);typeof N<"u"?(null==this.defaultLang&&(this.defaultLang=ue),N.pipe((0,r.s)(1)).subscribe(se=>{this.changeDefaultLang(ue)})):this.changeDefaultLang(ue)}getDefaultLang(){return this.defaultLang}use(ue){if(ue===this.currentLang)return(0,P.of)(this.translations[ue]);let N=this.retrieveTranslations(ue);return typeof N<"u"?(this.currentLang||(this.currentLang=ue),N.pipe((0,r.s)(1)).subscribe(se=>{this.changeLang(ue)}),N):(this.changeLang(ue),(0,P.of)(this.translations[ue]))}retrieveTranslations(ue){let N;return(typeof this.translations[ue]>"u"||this.extend)&&(this._translationRequests[ue]=this._translationRequests[ue]||this.getTranslation(ue),N=this._translationRequests[ue]),N}getTranslation(ue){this.pending=!0;const N=this.currentLoader.getTranslation(ue).pipe((0,i.t)(1),(0,r.s)(1));return this.loadingTranslations=N.pipe((0,a.T)(se=>this.compiler.compileTranslations(se,ue)),(0,i.t)(1),(0,r.s)(1)),this.loadingTranslations.subscribe({next:se=>{this.translations[ue]=this.extend&&this.translations[ue]?{...se,...this.translations[ue]}:se,this.updateLangs(),this.pending=!1},error:se=>{this.pending=!1}}),N}setTranslation(ue,N,se=!1){N=this.compiler.compileTranslations(N,ue),this.translations[ue]=(se||this.extend)&&this.translations[ue]?F(this.translations[ue],N):N,this.updateLangs(),this.onTranslationChange.emit({lang:ue,translations:this.translations[ue]})}getLangs(){return this.langs}addLangs(ue){ue.forEach(N=>{-1===this.langs.indexOf(N)&&this.langs.push(N)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(ue,N,se){let ce;if(N instanceof Array){let Z={},de=!1;for(let ae of N)Z[ae]=this.getParsedResult(ue,ae,se),(0,v.A)(Z[ae])&&(de=!0);if(de){const ae=N.map(pe=>(0,v.A)(Z[pe])?Z[pe]:(0,P.of)(Z[pe]));return(0,O.p)(ae).pipe((0,a.T)(pe=>{let _e={};return pe.forEach((ke,De)=>{_e[N[De]]=ke}),_e}))}return Z}if(ue&&(ce=this.parser.interpolate(this.parser.getValue(ue,N),se)),typeof ce>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ce=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],N),se)),typeof ce>"u"){let Z={key:N,translateService:this};typeof se<"u"&&(Z.interpolateParams=se),ce=this.missingTranslationHandler.handle(Z)}return typeof ce<"u"?ce:N}get(ue,N){if(!V(ue)||!ue.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,h.H)(se=>(se=this.getParsedResult(se,ue,N),(0,v.A)(se)?se:(0,P.of)(se))));{let se=this.getParsedResult(this.translations[this.currentLang],ue,N);return(0,v.A)(se)?se:(0,P.of)(se)}}getStreamOnTranslationChange(ue,N){if(!V(ue)||!ue.length)throw new Error('Parameter "key" required');return(0,S.x)((0,y.v)(()=>this.get(ue,N)),this.onTranslationChange.pipe((0,g.n)(se=>{const ce=this.getParsedResult(se.translations,ue,N);return"function"==typeof ce.subscribe?ce:(0,P.of)(ce)})))}stream(ue,N){if(!V(ue)||!ue.length)throw new Error('Parameter "key" required');return(0,S.x)((0,y.v)(()=>this.get(ue,N)),this.onLangChange.pipe((0,g.n)(se=>{const ce=this.getParsedResult(se.translations,ue,N);return(0,v.A)(ce)?ce:(0,P.of)(ce)})))}instant(ue,N){if(!V(ue)||!ue.length)throw new Error('Parameter "key" required');let se=this.getParsedResult(this.translations[this.currentLang],ue,N);if((0,v.A)(se)){if(ue instanceof Array){let ce={};return ue.forEach((Z,de)=>{ce[ue[de]]=ue[de]}),ce}return ue}return se}set(ue,N,se=this.currentLang){this.translations[se][ue]=this.compiler.compile(N,se),this.updateLangs(),this.onTranslationChange.emit({lang:se,translations:this.translations[se]})}changeLang(ue){this.currentLang=ue,this.onLangChange.emit({lang:ue,translations:this.translations[ue]}),null==this.defaultLang&&this.changeDefaultLang(ue)}changeDefaultLang(ue){this.defaultLang=ue,this.onDefaultLangChange.emit({lang:ue,translations:this.translations[ue]})}reloadLang(ue){return this.resetLang(ue),this.getTranslation(ue)}resetLang(ue){this._translationRequests[ue]=void 0,this.translations[ue]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ue=window.navigator.languages?window.navigator.languages[0]:null;return ue=ue||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof ue>"u"?void 0:(-1!==ue.indexOf("-")&&(ue=ue.split("-")[0]),-1!==ue.indexOf("_")&&(ue=ue.split("_")[0]),ue)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ue=window.navigator.languages?window.navigator.languages[0]:null;return ue=ue||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,ue}}return ge=oe,m(oe,"\u0275fac",function(ue){return new(ue||ge)(_.KVO(Y),_.KVO(c),_.KVO(R),_.KVO(I),_.KVO(A),_.KVO($),_.KVO(K),_.KVO(J),_.KVO(ee))}),m(oe,"\u0275prov",_.jDH({token:ge,factory:ge.\u0275fac})),oe})(),te=(()=>{var ge;class oe{set translate(ue){ue&&(this.key=ue,this.checkNodes())}set translateParams(ue){x(this.currentParams,ue)||(this.currentParams=ue,this.checkNodes(!0))}constructor(ue,N,se){m(this,"translateService",void 0),m(this,"element",void 0),m(this,"_ref",void 0),m(this,"key",void 0),m(this,"lastParams",void 0),m(this,"currentParams",void 0),m(this,"onLangChangeSub",void 0),m(this,"onDefaultLangChangeSub",void 0),m(this,"onTranslationChangeSub",void 0),this.translateService=ue,this.element=N,this._ref=se,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(ce=>{ce.lang===this.translateService.currentLang&&this.checkNodes(!0,ce.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(ce=>{this.checkNodes(!0,ce.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(ce=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(ue=!1,N){let se=this.element.nativeElement.childNodes;se.length||(this.setContent(this.element.nativeElement,this.key),se=this.element.nativeElement.childNodes);for(let ce=0;ce<se.length;++ce){let Z=se[ce];if(3===Z.nodeType){let de;if(ue&&(Z.lastKey=null),V(Z.lookupKey))de=Z.lookupKey;else if(this.key)de=this.key;else{let ae=this.getContent(Z),pe=ae.trim();pe.length&&(Z.lookupKey=pe,ae!==Z.currentValue?(de=pe,Z.originalContent=ae||Z.originalContent):Z.originalContent?de=Z.originalContent.trim():ae!==Z.currentValue&&(de=pe,Z.originalContent=ae||Z.originalContent))}this.updateValue(de,Z,N)}}}updateValue(ue,N,se){if(ue){if(N.lastKey===ue&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let ce=Z=>{Z!==ue&&(N.lastKey=ue),N.originalContent||(N.originalContent=this.getContent(N)),N.currentValue=V(Z)?Z:N.originalContent||ue,this.setContent(N,this.key?N.currentValue:N.originalContent.replace(ue,N.currentValue)),this._ref.markForCheck()};if(V(se)){let Z=this.translateService.getParsedResult(se,ue,this.currentParams);(0,v.A)(Z)?Z.subscribe({next:ce}):ce(Z)}else this.translateService.get(ue,this.currentParams).subscribe(ce)}}getContent(ue){return V(ue.textContent)?ue.textContent:ue.data}setContent(ue,N){V(ue.textContent)?ue.textContent=N:ue.data=N}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return ge=oe,m(oe,"\u0275fac",function(ue){return new(ue||ge)(_.rXU(z),_.rXU(_.aKT),_.rXU(_.gRc))}),m(oe,"\u0275dir",_.FsC({type:ge,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})),oe})(),X=(()=>{var ge;class oe{constructor(ue,N){m(this,"translate",void 0),m(this,"_ref",void 0),m(this,"value",""),m(this,"lastKey",null),m(this,"lastParams",[]),m(this,"onTranslationChange",void 0),m(this,"onLangChange",void 0),m(this,"onDefaultLangChange",void 0),this.translate=ue,this._ref=N}updateValue(ue,N,se){let ce=Z=>{this.value=void 0!==Z?Z:ue,this.lastKey=ue,this._ref.markForCheck()};if(se){let Z=this.translate.getParsedResult(se,ue,N);(0,v.A)(Z.subscribe)?Z.subscribe(ce):ce(Z)}this.translate.get(ue,N).subscribe(ce)}transform(ue,...N){if(!ue||!ue.length)return ue;if(x(ue,this.lastKey)&&x(N,this.lastParams))return this.value;let se;if(V(N[0])&&N.length)if("string"==typeof N[0]&&N[0].length){let ce=N[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{se=JSON.parse(ce)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${N[0]}`)}}else"object"==typeof N[0]&&!Array.isArray(N[0])&&(se=N[0]);return this.lastKey=ue,this.lastParams=N,this.updateValue(ue,se),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ce=>{this.lastKey&&ce.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(ue,se,ce.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ce=>{this.lastKey&&(this.lastKey=null,this.updateValue(ue,se,ce.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(ue,se))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return ge=oe,m(oe,"\u0275fac",function(ue){return new(ue||ge)(_.rXU(z,16),_.rXU(_.gRc,16))}),m(oe,"\u0275pipe",_.EJ8({name:"translate",type:ge,pure:!1})),m(oe,"\u0275prov",_.jDH({token:ge,factory:ge.\u0275fac})),oe})(),re=(()=>{var ge;class oe{static forRoot(ue={}){return{ngModule:oe,providers:[ue.loader||{provide:c,useClass:T},ue.compiler||{provide:R,useClass:G},ue.parser||{provide:I,useClass:k},ue.missingTranslationHandler||{provide:A,useClass:L},Y,{provide:K,useValue:ue.isolate},{provide:$,useValue:ue.useDefaultLang},{provide:J,useValue:ue.extend},{provide:ee,useValue:ue.defaultLanguage},z]}}static forChild(ue={}){return{ngModule:oe,providers:[ue.loader||{provide:c,useClass:T},ue.compiler||{provide:R,useClass:G},ue.parser||{provide:I,useClass:k},ue.missingTranslationHandler||{provide:A,useClass:L},{provide:K,useValue:ue.isolate},{provide:$,useValue:ue.useDefaultLang},{provide:J,useValue:ue.extend},{provide:ee,useValue:ue.defaultLanguage},z]}}}return ge=oe,m(oe,"\u0275fac",function(ue){return new(ue||ge)}),m(oe,"\u0275mod",_.$C({type:ge})),m(oe,"\u0275inj",_.G2t({})),oe})()},81248:Ue=>{"use strict";Ue.exports=JSON.parse('{"components/menu-item":"Verbose"}')}},Ue=>{Ue(Ue.s=7539)}]);
// SIG // Begin signature block
// SIG // MIImNgYJKoZIhvcNAQcCoIImJzCCJiMCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // dwPqKCVARPXOs5w8gj/Q5obKM2cKmxjG9pLRoqdOCDyg
// SIG // gg20MIIGsDCCBJigAwIBAgIQCK1AsmDSnEyfXs2pvZOu
// SIG // 2TANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQGEwJVUzEV
// SIG // MBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
// SIG // d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2Vy
// SIG // dCBUcnVzdGVkIFJvb3QgRzQwHhcNMjEwNDI5MDAwMDAw
// SIG // WhcNMzYwNDI4MjM1OTU5WjBpMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMT
// SIG // OERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5n
// SIG // IFJTQTQwOTYgU0hBMzg0IDIwMjEgQ0ExMIICIjANBgkq
// SIG // hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA1bQvQtAorXi3
// SIG // XdU5WRuxiEL1M4zrPYGXcMW7xIUmMJ+kjmjYXPXrNCQH
// SIG // 4UtP03hD9BfXHtr50tVnGlJPDqFX/IiZwZHMgQM+TXAk
// SIG // ZLON4gh9NH1MgFcSa0OamfLFOx/y78tHWhOmTLMBICXz
// SIG // ENOLsvsI8IrgnQnAZaf6mIBJNYc9URnokCF4RS6hnyzh
// SIG // GMIazMXuk0lwQjKP+8bqHPNlaJGiTUyCEUhSaN4QvRRX
// SIG // XegYE2XFf7JPhSxIpFaENdb5LpyqABXRN/4aBpTCfMjq
// SIG // GzLmysL0p6MDDnSlrzm2q2AS4+jWufcx4dyt5Big2MEj
// SIG // R0ezoQ9uo6ttmAaDG7dqZy3SvUQakhCBj7A7CdfHmzJa
// SIG // wv9qYFSLScGT7eG0XOBv6yb5jNWy+TgQ5urOkfW+0/tv
// SIG // k2E0XLyTRSiDNipmKF+wc86LJiUGsoPUXPYVGUztYuBe
// SIG // M/Lo6OwKp7ADK5GyNnm+960IHnWmZcy740hQ83eRGv7b
// SIG // UKJGyGFYmPV8AhY8gyitOYbs1LcNU9D4R+Z1MI3sMJN2
// SIG // FKZbS110YU0/EpF23r9Yy3IQKUHw1cVtJnZoEUETWJrc
// SIG // JisB9IlNWdt4z4FKPkBHX8mBUHOFECMhWWCKZFTBzCEa
// SIG // 6DgZfGYczXg4RTCZT/9jT0y7qg0IU0F8WD1Hs/q27Iwy
// SIG // CQLMbDwMVhECAwEAAaOCAVkwggFVMBIGA1UdEwEB/wQI
// SIG // MAYBAf8CAQAwHQYDVR0OBBYEFGg34Ou2O/hfEYb7/mF7
// SIG // CIhl9E5CMB8GA1UdIwQYMBaAFOzX44LScV1kTN8uZz/n
// SIG // upiuHA9PMA4GA1UdDwEB/wQEAwIBhjATBgNVHSUEDDAK
// SIG // BggrBgEFBQcDAzB3BggrBgEFBQcBAQRrMGkwJAYIKwYB
// SIG // BQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBB
// SIG // BggrBgEFBQcwAoY1aHR0cDovL2NhY2VydHMuZGlnaWNl
// SIG // cnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZFJvb3RHNC5jcnQw
// SIG // QwYDVR0fBDwwOjA4oDagNIYyaHR0cDovL2NybDMuZGln
// SIG // aWNlcnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZFJvb3RHNC5j
// SIG // cmwwHAYDVR0gBBUwEzAHBgVngQwBAzAIBgZngQwBBAEw
// SIG // DQYJKoZIhvcNAQEMBQADggIBADojRD2NCHbuj7w6mdNW
// SIG // 4AIapfhINPMstuZ0ZveUcrEAyq9sMCcTEp6QRJ9L/Z6j
// SIG // fCbVN7w6XUhtldU/SfQnuxaBRVD9nL22heB2fjdxyyL3
// SIG // WqqQz/WTauPrINHVUHmImoqKwba9oUgYftzYgBoRGRjN
// SIG // YZmBVvbJ43bnxOQbX0P4PpT/djk9ntSZz0rdKOtfJqGV
// SIG // WEjVGv7XJz/9kNF2ht0csGBc8w2o7uCJob054ThO2m67
// SIG // Np375SFTWsPK6Wrxoj7bQ7gzyE84FJKZ9d3OVG3ZXQIU
// SIG // H0AzfAPilbLCIXVzUstG2MQ0HKKlS43Nb3Y3LIU/Gs4m
// SIG // 6Ri+kAewQ3+ViCCCcPDMyu/9KTVcH4k4Vfc3iosJocsL
// SIG // 6TEa/y4ZXDlx4b6cpwoG1iZnt5LmTl/eeqxJzy6kdJKt
// SIG // 2zyknIYf48FWGysj/4+16oh7cGvmoLr9Oj9FpsToFpFS
// SIG // i0HASIRLlk2rREDjjfAVKM7t8RhWByovEMQMCGQ8M4+u
// SIG // KIw8y4+ICw2/O/TOHnuO77Xry7fwdxPm5yg/rBKupS8i
// SIG // bEH5glwVZsxsDsrFhsP2JjMMB0ug0wcCampAMEhLNKhR
// SIG // ILutG4UI4lkNbcoFUCvqShyepf2gpx8GdOfy1lKQ/a+F
// SIG // SCH5Vzu0nAPthkX0tGFuv2jiJmCG6sivqf6UHedjGzqG
// SIG // VnhOMIIG/DCCBOSgAwIBAgIQCZfFbKpZBVOU2anNuL7r
// SIG // VjANBgkqhkiG9w0BAQsFADBpMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMT
// SIG // OERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5n
// SIG // IFJTQTQwOTYgU0hBMzg0IDIwMjEgQ0ExMB4XDTIzMDEx
// SIG // MzAwMDAwMFoXDTI2MDExNjIzNTk1OVowgYAxCzAJBgNV
// SIG // BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRQwEgYD
// SIG // VQQHEwtTYW50YSBDbGFyYTEbMBkGA1UEChMSTlZJRElB
// SIG // IENvcnBvcmF0aW9uMQwwCgYDVQQLEwMyLUoxGzAZBgNV
// SIG // BAMTEk5WSURJQSBDb3Jwb3JhdGlvbjCCAaIwDQYJKoZI
// SIG // hvcNAQEBBQADggGPADCCAYoCggGBAIiAXRBzCNRy05OZ
// SIG // NUtJguKdJ1R5HNatdvXtn+pWXHg9PfhU9A5ZboWwSPej
// SIG // iZxJn9clYWVpyjPbkkFvaTBLYeHArmzswavs7+bct4df
// SIG // BTBZG8Qmc9kusaaOxNnuUevseGAC5H61QsGOVATdRQfS
// SIG // kfaP7kTBF9wuIat7BXVglPAlZagQTZWA/BA4Vr8GeNVY
// SIG // 5jU2C6F907UM6orsfsVfkBI8HSowD1U/faTS1yMBu1Mx
// SIG // ePUKZosFn2tYE4dUWId/Vv6LKWk30e/63C5Ul9e3eY7x
// SIG // aZ4eC0TqxluMWb2XdvCcfw9dELeI+0suWliFIyCgSf3A
// SIG // Kuq9cXnoMOBoPEeBOr3XWfCCNLxf9RcGxyaNPd1KcTOO
// SIG // ErSJMFpOCnVi5kys2NrTrFMFVZiRC49BidetoT6cHt3Z
// SIG // f+VHR3rqdUbo4xSpuvsfNA4GRYcWI2KvY3T6hBlrgTlr
// SIG // ngfA3ztOn+38KGJavEa7iJ+k/kjjnD47t0qQoRiujBi+
// SIG // q+mv6Hgy/g0VeQIDAQABo4ICBjCCAgIwHwYDVR0jBBgw
// SIG // FoAUaDfg67Y7+F8Rhvv+YXsIiGX0TkIwHQYDVR0OBBYE
// SIG // FL5vQA7WEARmpu0ItwJOm7f48LbRMA4GA1UdDwEB/wQE
// SIG // AwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzCBtQYDVR0f
// SIG // BIGtMIGqMFOgUaBPhk1odHRwOi8vY3JsMy5kaWdpY2Vy
// SIG // dC5jb20vRGlnaUNlcnRUcnVzdGVkRzRDb2RlU2lnbmlu
// SIG // Z1JTQTQwOTZTSEEzODQyMDIxQ0ExLmNybDBToFGgT4ZN
// SIG // aHR0cDovL2NybDQuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0
// SIG // VHJ1c3RlZEc0Q29kZVNpZ25pbmdSU0E0MDk2U0hBMzg0
// SIG // MjAyMUNBMS5jcmwwPgYDVR0gBDcwNTAzBgZngQwBBAEw
// SIG // KTAnBggrBgEFBQcCARYbaHR0cDovL3d3dy5kaWdpY2Vy
// SIG // dC5jb20vQ1BTMIGUBggrBgEFBQcBAQSBhzCBhDAkBggr
// SIG // BgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQuY29t
// SIG // MFwGCCsGAQUFBzAChlBodHRwOi8vY2FjZXJ0cy5kaWdp
// SIG // Y2VydC5jb20vRGlnaUNlcnRUcnVzdGVkRzRDb2RlU2ln
// SIG // bmluZ1JTQTQwOTZTSEEzODQyMDIxQ0ExLmNydDAMBgNV
// SIG // HRMBAf8EAjAAMA0GCSqGSIb3DQEBCwUAA4ICAQBNa3En
// SIG // raaMqv58RZV1qn0K09tv83qxwHaM6/N40w2fMljnGOxS
// SIG // xR1g0+R26S7XtwpzG+b8LWmWmyJKiZIogVkcfZpchS6B
// SIG // x+9HcUSo7TBBJn4ylcpQzksLOCmT6/DSeIDYucyQiHo8
// SIG // Nq3XkLpkJaDETnCBDulYZ+9pavQT4lNpB6sffbjsDcQ7
// SIG // CZQdImdzyNwd81c56xZc05ufVkronW78r35vwhzuNd88
// SIG // YQXr26fClBEXf3cNvytVupOeHZTy0Od+tPnAPl5744un
// SIG // 0f1MDjiKRne5FqDoo2F4EoeJQuaS6tWcFQg55dOEmOwS
// SIG // E8mweLCWDTTWmZV6x0IGHwagde1S5rkkmxpvAZRUkaD/
// SIG // ZTyxDiHywNi981mFvCnS1gKGd8GpqDuChpKAet8ivgB3
// SIG // 8hVTE/jsstKwQL7HNGxlmk7hyFxkbUNXki2gwJ/CSGaQ
// SIG // qqS3ctjF5Vv8mbtH2f3pK3AFaXOW7wDfjeuqF+yh6UxT
// SIG // ockgH6Ggc4tj+rcrwWhnbgu+JljlBbSKtGiEXMjA9Ccg
// SIG // YsbOIS9T1/FRAOW4KzCaG2FaX5eIhnCqXl79Va2OV8ul
// SIG // IgIbn1XaQQk6RvNPIwZzM8TARUTR9d1edtiuOymxDYm6
// SIG // j16TmoLkXlWUGLj05+yKut6rkqmYCqCJHRHD0T7LXUmw
// SIG // eBMWDQ5e0t8ADV8KGzGCF9owghfWAgEBMH0waTELMAkG
// SIG // A1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMu
// SIG // MUEwPwYDVQQDEzhEaWdpQ2VydCBUcnVzdGVkIEc0IENv
// SIG // ZGUgU2lnbmluZyBSU0E0MDk2IFNIQTM4NCAyMDIxIENB
// SIG // MQIQCZfFbKpZBVOU2anNuL7rVjANBglghkgBZQMEAgEF
// SIG // AKB8MBAGCisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJ
// SIG // AzEMBgorBgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAM
// SIG // BgorBgEEAYI3AgEVMC8GCSqGSIb3DQEJBDEiBCBAnGfU
// SIG // wxX5kOb9MIlDmxRBFZrESQ+U/9IumXg9yVL41jANBgkq
// SIG // hkiG9w0BAQEFAASCAYAL6uP4m35hVAWnw7JGdUf8GlVQ
// SIG // 5z5KD71sFF8HDIZg+OkTwbktAnAGzrGDUYCTRjbcGR1H
// SIG // ZEcoaMNdXQQyyvD7SNDvdDhriGP5m+lkBYIKUp+g63O0
// SIG // K5e6gm/MXvKQ6G+cN3I8c3biip92gtqu5B2Kv4LK2Qsc
// SIG // ah/p0UJCVYpplgmr6hLhTYlyLnsI9jAnerhLWI2XxKjl
// SIG // lLNoKuWjU6QXprKUg3oq42WwSUXFrYiManf5w+XwOET6
// SIG // 9X+AbD1GIYXV3AuJL/rzXZAnfsnkaQJHWgT9cpCvmYqt
// SIG // auXRdIPAVR9w2sNHTs8u7cs2nd1BhK5AVlICQPPpNskv
// SIG // l8aAjMXJ4QTrcRWoCzMOSsXFkbmp5by0m2ZuP0npILkF
// SIG // yGZYCfYWAnPaGC34edf+mRbVuvyQN6Aa05CLdOGx0mqd
// SIG // nGp0kW2e07nJUShSdtlXLKJeMlE1ZzDs1X5Tlku+ueOo
// SIG // JlPlQ+ePdP6EpYlmVrGfV7fIXKQEJ/j7mXrmN0yzluZj
// SIG // UTyhghUwMIIVLAYKKwYBBAGCNwMDATGCFRwwghUYBgkq
// SIG // hkiG9w0BBwKgghUJMIIVBQIBAzENMAsGCWCGSAFlAwQC
// SIG // ATCB9AYLKoZIhvcNAQkQAQSggeQEgeEwgd4CAQEGCmCG
// SIG // SAGG+mwKAwUwMTANBglghkgBZQMEAgEFAAQgZd4U1fMz
// SIG // 5p/yHqE7yQCX0G6b1o0wil6DRqbl2cl4dPcCCQDrBcAY
// SIG // cJhkmRgPMjAyNDExMDgwMDI4MzdaMAMCAQGgeaR3MHUx
// SIG // CzAJBgNVBAYTAkNBMRAwDgYDVQQIEwdPbnRhcmlvMQ8w
// SIG // DQYDVQQHEwZPdHRhd2ExFjAUBgNVBAoTDUVudHJ1c3Qs
// SIG // IEluYy4xKzApBgNVBAMTIkVudHJ1c3QgVGltZXN0YW1w
// SIG // IEF1dGhvcml0eSAtIFRTQTGggg9YMIIEKjCCAxKgAwIB
// SIG // AgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UE
// SIG // ChMLRW50cnVzdC5uZXQxQDA+BgNVBAsUN3d3dy5lbnRy
// SIG // dXN0Lm5ldC9DUFNfMjA0OCBpbmNvcnAuIGJ5IHJlZi4g
// SIG // KGxpbWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5
// SIG // IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNVBAMTKkVu
// SIG // dHJ1c3QubmV0IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
// SIG // ICgyMDQ4KTAeFw05OTEyMjQxNzUwNTFaFw0yOTA3MjQx
// SIG // NDE1MTJaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFA
// SIG // MD4GA1UECxQ3d3d3LmVudHJ1c3QubmV0L0NQU18yMDQ4
// SIG // IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTEl
// SIG // MCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGlt
// SIG // aXRlZDEzMDEGA1UEAxMqRW50cnVzdC5uZXQgQ2VydGlm
// SIG // aWNhdGlvbiBBdXRob3JpdHkgKDIwNDgpMIIBIjANBgkq
// SIG // hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArU1LqRKGsuqj
// SIG // IAcVFmQqK0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91e
// SIG // uHaYNZOLGp18EzoOH1u3Hs/lJBQesYGpjX24zGtLA/EC
// SIG // DNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSrhRSG
// SIG // lVuXMlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xx
// SIG // GWC4LeksyZB2ZnuU4q941mVTXTzWnLLPKQP5L6RQstRI
// SIG // zgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/
// SIG // HoZdenoVve8AjhUiVBcAkCaTvA5JaJG/+EfTnZVCwQ5N
// SIG // 328mz8MYIWJmQ3DW1cAH4QIDAQABo0IwQDAOBgNVHQ8B
// SIG // Af8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
// SIG // FgQUVeSB0RGAvtiJuQijMfmhJAkWuXAwDQYJKoZIhvcN
// SIG // AQEFBQADggEBADubj1abMOdTmXx6eadNl9cZlZD7Bh/K
// SIG // M3xGY4+WZiT6QBshJ8rmcnPyT/4xmf3IDExoU8aAghOY
// SIG // +rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7
// SIG // mhpElesYT6YfzX1XEC+bBAlahLVu2B064dae0Wx5Xnkc
// SIG // FMXj0EyTO2U87d89vqbllRrDtRnDvV5bu/8j72gZyxKT
// SIG // J1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBC
// SIG // bJPKVt7+bYQLCIt+jerXmCHG8+c8eS9enNFMFY3h7CI3
// SIG // zJpDC5fcgJCNs2ebb0gIFVbPv/ErfF6adulZkMV8gzUR
// SIG // ZVEwggUTMIID+6ADAgECAgxY2hP/AAAAAFHODfcwDQYJ
// SIG // KoZIhvcNAQELBQAwgbQxFDASBgNVBAoTC0VudHJ1c3Qu
// SIG // bmV0MUAwPgYDVQQLFDd3d3cuZW50cnVzdC5uZXQvQ1BT
// SIG // XzIwNDggaW5jb3JwLiBieSByZWYuIChsaW1pdHMgbGlh
// SIG // Yi4pMSUwIwYDVQQLExwoYykgMTk5OSBFbnRydXN0Lm5l
// SIG // dCBMaW1pdGVkMTMwMQYDVQQDEypFbnRydXN0Lm5ldCBD
// SIG // ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAoMjA0OCkwHhcN
// SIG // MTUwNzIyMTkwMjU0WhcNMjkwNjIyMTkzMjU0WjCBsjEL
// SIG // MAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3QsIElu
// SIG // Yy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQv
// SIG // bGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDE1IEVu
// SIG // dHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug
// SIG // b25seTEmMCQGA1UEAxMdRW50cnVzdCBUaW1lc3RhbXBp
// SIG // bmcgQ0EgLSBUUzEwggEiMA0GCSqGSIb3DQEBAQUAA4IB
// SIG // DwAwggEKAoIBAQDZI+YUpOh8S4VxWPv4geZyi11Gw4gA
// SIG // HzjQiuHWblYw5a/aZFB9whM5+71mtNqE+4PQKB/Lduhg
// SIG // UGmb885PE+LBPsHfEssyo/heRCIOzDrpjUm5YHTI3lQ9
// SIG // QV5DXyhGqaa3yhArIrxbTVuMF2UShv0sd9XFoIzKwoPg
// SIG // R1d853CuYkUnMRgK1MCkGFVS92DGBEuz3WgybhAfNBG4
// SIG // Enhk8e6p4PfjsSKPNFply4r04UVQdN+Tl6Y05tBMO583
// SIG // SVKnU06fLmdc7Zb8pb90UYjjqo692bEvX1AwFvRRYCJr
// SIG // mcv/4VQ7uftEOKUIOSObaUf6PMTQ56rfRrLs8ooZrCmy
// SIG // OJV1AgMBAAGjggEjMIIBHzASBgNVHRMBAf8ECDAGAQH/
// SIG // AgEAMA4GA1UdDwEB/wQEAwIBBjA7BgNVHSAENDAyMDAG
// SIG // BFUdIAAwKDAmBggrBgEFBQcCARYaaHR0cDovL3d3dy5l
// SIG // bnRydXN0Lm5ldC9ycGEwMwYIKwYBBQUHAQEEJzAlMCMG
// SIG // CCsGAQUFBzABhhdodHRwOi8vb2NzcC5lbnRydXN0Lm5l
// SIG // dDAyBgNVHR8EKzApMCegJaAjhiFodHRwOi8vY3JsLmVu
// SIG // dHJ1c3QubmV0LzIwNDhjYS5jcmwwEwYDVR0lBAwwCgYI
// SIG // KwYBBQUHAwgwHQYDVR0OBBYEFMPCcdJ712gFrjs5mzQl
// SIG // DGIDx1doMB8GA1UdIwQYMBaAFFXkgdERgL7YibkIozH5
// SIG // oSQJFrlwMA0GCSqGSIb3DQEBCwUAA4IBAQAdJOeadFuq
// SIG // cPyxDjFF1ywAf2Y6K6CaNKqsY22J+Z/fDXf9JCP8T5y3
// SIG // b4/z9B+2wf3WHMSMiGbBY426V3fTuBoeyFGtzGA2Godq
// SIG // KOoRZd7MPCyMdLfoUEPTzCjoFWwRKp8UlSnJBVe1Zzbo
// SIG // PKmD70HBIRbTfvctEUdmdmCCEmmMdlVzD98vS13pbCP4
// SIG // B/a1fdZpRZxYfWEu/HhLQ06JkUZELKBTqEWh9hZYu5ET
// SIG // 8kvF3wvA564per1Fs+dwMOc0jut69tO10d5rE5lGs4vS
// SIG // TZN1tfFvv9wAKMIlv7zno2U07D8NHZeM+qqIIqQYNdsF
// SIG // jnbjEMgpj2PQrqwY2drEn1ESMIIGDzCCBPegAwIBAgIQ
// SIG // B9cTU9olYbRh6ZBHikzOBDANBgkqhkiG9w0BAQsFADCB
// SIG // sjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3Qs
// SIG // IEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5u
// SIG // ZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDE1
// SIG // IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1
// SIG // c2Ugb25seTEmMCQGA1UEAxMdRW50cnVzdCBUaW1lc3Rh
// SIG // bXBpbmcgQ0EgLSBUUzEwHhcNMjQwMTE5MTY0NjI4WhcN
// SIG // MjkwNjAxMDAwMDAwWjB1MQswCQYDVQQGEwJDQTEQMA4G
// SIG // A1UECBMHT250YXJpbzEPMA0GA1UEBxMGT3R0YXdhMRYw
// SIG // FAYDVQQKEw1FbnRydXN0LCBJbmMuMSswKQYDVQQDEyJF
// SIG // bnRydXN0IFRpbWVzdGFtcCBBdXRob3JpdHkgLSBUU0Ex
// SIG // MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA
// SIG // x5I4QTn/oD9fTU2KlzHjm4fDeAVpNgtSs6qDXbDSvX6+
// SIG // g6BfXp6X89s1F6n52xVifMr2xck0FeIRpZKxLuBpVF0O
// SIG // K75VxgGMhWOySS01X+VOQ8RxC6S0HjRN/0XI/k/hMOjp
// SIG // ZWxrZdO+1Cxo0K0Em2q50FT7NQCQMcbYaGpdr+p+0Pmd
// SIG // E+/OnWNkQnIHhfsGMYvjnQum1TLbUqVODDzBwJrRfwJ3
// SIG // YxPN8z08HgJLNobgBLR4d+SbL+GJKt6CXevkGtyNunuk
// SIG // n4+ObHXrA+CABL+xCRz6YXqzm4G3C8kTCnjtCPbMpl9C
// SIG // RxI6R3h2/rzamT9k6zdeKt9S4pmw/e+EypE6orCnsbZW
// SIG // HD9E+H6R73imJP7eKR749fdRf7Z4LYe0vQC5xh7g6OET
// SIG // 7u5f117upHx1YM6hNZBYwqu1SEN76cd3iYmLxqGMaZfP
// SIG // bnpD/vRf+2PlJOrf4BCQpxKQzButCIrRjYUgom6hixYn
// SIG // lTHTz24DKZ9EwicIrLf0iU035CWJWlMsUw2CFHPG7MWw
// SIG // 2YfYmxLuJjpfly9wyTB4oVpKbdJISg9Van72W+KHX9oR
// SIG // G3e+Gl73SAqYcQx9riqBfbKekWAO0dlqMBKK5Jrspktv
// SIG // hQZJEA6FSD8u5hTPWuNPOCqv1zEAvCyWlZKtc896HFHL
// SIG // /i3pwC5YDgoVZcuIezIbYA0CAwEAAaOCAVswggFXMAwG
// SIG // A1UdEwEB/wQCMAAwHQYDVR0OBBYEFENoH2+fItD4Xwn3
// SIG // /LjlI8aOB0KSMB8GA1UdIwQYMBaAFMPCcdJ712gFrjs5
// SIG // mzQlDGIDx1doMGgGCCsGAQUFBwEBBFwwWjAjBggrBgEF
// SIG // BQcwAYYXaHR0cDovL29jc3AuZW50cnVzdC5uZXQwMwYI
// SIG // KwYBBQUHMAKGJ2h0dHA6Ly9haWEuZW50cnVzdC5uZXQv
// SIG // dHMxLWNoYWluMjU2LmNlcjAxBgNVHR8EKjAoMCagJKAi
// SIG // hiBodHRwOi8vY3JsLmVudHJ1c3QubmV0L3RzMWNhLmNy
// SIG // bDAOBgNVHQ8BAf8EBAMCB4AwFgYDVR0lAQH/BAwwCgYI
// SIG // KwYBBQUHAwgwQgYDVR0gBDswOTA3BgpghkgBhvpsCgEH
// SIG // MCkwJwYIKwYBBQUHAgEWG2h0dHBzOi8vd3d3LmVudHJ1
// SIG // c3QubmV0L3JwYTANBgkqhkiG9w0BAQsFAAOCAQEAvrDc
// SIG // /bz6Zqf8Ix3z2Vdi9CTfHS/5WMvKzAx9z26H9W6CWive
// SIG // 41/GzhrkCK+OBAEe/wL4BVO4qGKFe5mrRXvZqrEXg9Ep
// SIG // fpMh6DaIQiE4+/sNgcnDiozKKl5mr/mc9I18Evt6bTqK
// SIG // sAD3O3ClD7u1U6nhxikm6twSSi9dWgS4quOHC33Ingb+
// SIG // aWZLjqf0vjDJpeKQoaiBDT5HIZJQXTLk8lbPqZQhuzDC
// SIG // dxgRmiau8eI+L/w/iTM3XZTn3RrF5cxmbPoAzpbigO34
// SIG // LKfFaBNpfARErQjV+avJrRdm1S8LV/Cbz1weqw0nRmn+
// SIG // qLcFJY7gshUzSl+6nIvQKAk8tYWy4TGCBJwwggSYAgEB
// SIG // MIHHMIGyMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNRW50
// SIG // cnVzdCwgSW5jLjEoMCYGA1UECxMfU2VlIHd3dy5lbnRy
// SIG // dXN0Lm5ldC9sZWdhbC10ZXJtczE5MDcGA1UECxMwKGMp
// SIG // IDIwMTUgRW50cnVzdCwgSW5jLiAtIGZvciBhdXRob3Jp
// SIG // emVkIHVzZSBvbmx5MSYwJAYDVQQDEx1FbnRydXN0IFRp
// SIG // bWVzdGFtcGluZyBDQSAtIFRTMQIQB9cTU9olYbRh6ZBH
// SIG // ikzOBDALBglghkgBZQMEAgGgggGnMBoGCSqGSIb3DQEJ
// SIG // AzENBgsqhkiG9w0BCRABBDAcBgkqhkiG9w0BCQUxDxcN
// SIG // MjQxMTA4MDAyODM3WjArBgkqhkiG9w0BCTQxHjAcMAsG
// SIG // CWCGSAFlAwQCAaENBgkqhkiG9w0BAQsFADAvBgkqhkiG
// SIG // 9w0BCQQxIgQgE//IZctigOiOzCgS7F4m+Q4SLn9BuW6i
// SIG // 2Eu9E4SM588wggELBgsqhkiG9w0BCRACLzGB+zCB+DCB
// SIG // 9TCB8gQgKEn3MRjXQUUFYXPNPuzLvVNLXg7w+gYWjbDi
// SIG // c0kD7o8wgc0wgbikgbUwgbIxCzAJBgNVBAYTAlVTMRYw
// SIG // FAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9T
// SIG // ZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2FsLXRlcm1zMTkw
// SIG // NwYDVQQLEzAoYykgMjAxNSBFbnRydXN0LCBJbmMuIC0g
// SIG // Zm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJjAkBgNVBAMT
// SIG // HUVudHJ1c3QgVGltZXN0YW1waW5nIENBIC0gVFMxAhAH
// SIG // 1xNT2iVhtGHpkEeKTM4EMA0GCSqGSIb3DQEBCwUABIIC
// SIG // AK72K0Qr91OEVnJ7O3KRSoE8Wu4/K50GDov0Ci7S7SqM
// SIG // vwHUkvvi4MSGqAY2cNR5SVK/Mpv6Qrc8bShEZjZr5fbC
// SIG // ikJKL+89kejPV6s3lVXnuE2SBnnW5/9FRQMgSDAxBVU0
// SIG // sbU3XNt7/dw708pEyJOevoUqIepFbvTVAGepCcfw6QNV
// SIG // TU+10vUJGThTXkqL/bXEKb+fPVLCJO+Y49fyJ4PWhBEY
// SIG // mZO1rI4YV1PRYjGoGLyr1DCSrXxXwah6ZPdPJWeLT/d2
// SIG // PskPqnrOtSdh3VfuWbJzsud3axld295pwLu/ZlA2fuHv
// SIG // /9R9OPTGun95Oq29ihH8Zb5dbA9JwESDG8nq2ppQjeNe
// SIG // wi/YWtFOIzeI14b+Jva5R6S3SmOP9AasiR/G93mBXdfj
// SIG // PSTvELDipQb5IicnlI9rOu9dCdfHZldvGjl8imedcwZt
// SIG // SvxcLF9w+ZWP5+/x+lR2wIWGvF3ayfOTDPs7QVtHnYDn
// SIG // pd/7bgmJroBrcolmlQ5IinTVoI4zgFT+EN8dOI+9h864
// SIG // hr7UG9cwgyBEku7dJKT+A0mUSWj6EGrta321c9t7LKSd
// SIG // JHCOlvPUkqy6Rmn84fcPseztEcHTCHj2aiF0uu5L3+tA
// SIG // pvQTybs5+WLO11gDUmCws/yf7vvlMT5wRDtdgwy61ccs
// SIG // 4wAFM+jO3rL6rWFRVBIjrhFi
// SIG // End signature block