1"use strict";(self.webpackChunkCustomerPanel=self.webpackChunkCustomerPanel||[]).push([[792],{6628:(Lt,be,D)=>{D.d(be,{M:()=>p});var p=function(v){return v[v.MONITORING_PANEL=0]="MONITORING_PANEL",v[v.PREDICTIVE_MAINTENANCE=1]="PREDICTIVE_MAINTENANCE",v[v.FLUID_ANALYSIS=2]="FLUID_ANALYSIS",v[v.BACK_OFFICE=3]="BACK_OFFICE",v[v.ASSET_MANAGEMENT=5]="ASSET_MANAGEMENT",v[v.CUSTOMER_PORTAL=6]="CUSTOMER_PORTAL",v[v.PREDICTIVE_TELEMETRY=7]="PREDICTIVE_TELEMETRY",v[v.PREDICTIVE_SOS=8]="PREDICTIVE_SOS",v[v.OLGA=9]="OLGA",v[v.PSE=10]="PSE",v[v.PSE_COMMERCE_LEAD=11]="PSE_COMMERCE_LEAD",v}(p||{})},5934:(Lt,be,D)=>{D.d(be,{G:()=>p});var p=function(u){return u[u.High=1]="High",u[u.Mid=2]="Mid",u[u.Low=3]="Low",u}(p||{})},3957:(Lt,be,D)=>{D.d(be,{N:()=>p});var p=function(u){return u.SiteSotreq="Site Sotreq",u.VisionLink="VisionLink",u.PecasOnline="Pe\xe7as Online",u.Sis20="SIS 2.0",u.Sistema3s="Sistema 3S",u.ShopCat="Shop CAT",u.VlProductivity="VisionLink Productivity",u.MineStar="MineStar",u.CatRam="CAT RAM",u.CatRfv="CAT RFV",u}(p||{})},3353:(Lt,be,D)=>{D.d(be,{T:()=>p});var p=function(u){return u[u.NotApplied=0]="NotApplied",u[u.Read=1]="Read",u[u.Write=2]="Write",u}(p||{})},3665:(Lt,be,D)=>{D.d(be,{x:()=>p});var p=function(u){return u[u.Customer=1]="Customer",u[u.CustomerEmployee=2]="CustomerEmployee",u[u.SotreqEmployee=3]="SotreqEmployee",u}(p||{})},6516:(Lt,be,D)=>{D.d(be,{k:()=>j});var p=D(467),u=D(3665),v=D(3207),Y=D(4438),b=D(855),x=D(1131),R=D(3147),L=D(1125);let j=(()=>{class z{msalService;authService;router;userService;constructor(Ie,Re,Se,et){this.msalService=Ie,this.authService=Re,this.router=Se,this.userService=et}canActivate(Ie){var Re=this;return(0,p.A)(function*(){if(!(yield Re.checkIfUserIsLogged()))return!1;const et=Ie.routeConfig?.path??"",lt=yield Re.validateUserData(et);return console.debug(`Rota /${Ie.routeConfig?.path} acessada: ${lt}`),lt})()}checkIfUserIsLogged(){var Ie=this;return(0,p.A)(function*(){const Re=Ie.msalService.instance.getAllAccounts();return Re.length>0?(console.debug("Usu\xe1rio autenticado encontrado:",Re[0].username),!0):(console.debug("Usu\xe1rio n\xe3o autenticado, iniciando fluxo de login..."),Ie.authService.login(),!1)})()}validateUserData(Ie){var Re=this;return(0,p.A)(function*(){try{const Se=yield(0,v.s)(Re.userService.getUserInfoRaw(!1,!0));
1if(!Se)return Re.router.createUrlTree(["/access-request/validate-customer"]);const et="accessTerm"===Ie,lt=Se?.userType===u.x.Customer;return!lt&&!(Se?.userType===u.x.CustomerEmployee)||!((lt?!0!==Se.customer?.isTermAccepted:!0!==Se.customerEmployee?.isTermAccepted)&&!et)||Re.router.createUrlTree(["/accessTerm"])}catch(Se){return console.error("Erro ao validar dados do usu\xe1rio para redirecionamento:",Se),Re.router.createUrlTree(["/access-request/validate-customer"])}})()}static \u0275fac=function(Re){return new(Re||z)(Y.KVO(b.dl),Y.KVO(x.h),Y.KVO(R.Ix),Y.KVO(L.D))};static \u0275prov=Y.jDH({token:z,factory:z.\u0275fac})}return z})()},9421:(Lt,be,D)=>{D.d(be,{H:()=>Re});var p=D(467),u=D(5312),v=D(3207),Y=function(Se){return Se[Se.HasPermission=0]="HasPermission",Se[Se.NoPermission=1]="NoPermission",Se[Se.ConnectionIssue=2]="ConnectionIssue",Se}(Y||{}),b=D(4438),x=D(3147),R=D(6354),L=D(9437),j=D(6648),z=D(3665),Q=D(1125);let Ie=(()=>{class Se{userService;constructor(lt){this.userService=lt}userCanAccess(lt,je){return this.userService.getUserInfo().pipe((0,R.T)(wt=>{const Zt=!!wt&&this.hasUserRolePermission(lt,wt);let En=!0;return je&&(En=Zt&&this.hasUserAreaPermission(je,wt)),Zt&&En?Y.HasPermission:Y.NoPermission}),(0,L.W)(wt=>(console.error("Error checking user permissions:",wt),(0,j.H)([Y.ConnectionIssue]))))}hasUserRolePermission=(lt,je)=>lt.includes(je.userType);hasUserAreaPermission=(lt,je)=>{switch(je.userType){case z.x.Customer:return this.canAllowAccessForCustomer(lt,je);case z.x.CustomerEmployee:return this.canAllowAccessForCustomerEmployee(lt,je);case z.x.SotreqEmployee:return this.canAllowAccessForSotreqEmployee(lt,je);default:return!1}};canAllowAccessForCustomer(lt,je){return!0}canAllowAccessForCustomerEmployee(lt,je){let wt=!1;return wt=void 0!==je.customerEmployee.permissionGroupCustomerEmployee.permissions.find(Le=>Le.nuScreen===lt),wt||(wt=void 0!==je.customerEmployee.permissions?.find(Ce=>Ce.nuScreen===lt)),wt}canAllowAccessForSotreqEmployee(lt,je){let wt=!1;const Zt=je.sotreqEmployee.permissionGroupSotreqEmployee.permissions;return Zt&&(wt=void 0!==Zt.find(Le=>Le.nuScreen===lt)),wt}static \u0275fac=function(je){return new(je||Se)(b.KVO(Q.D))};static \u0275prov=b.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})(),Re=(()=>{class Se{router;userPermissionService;constructor(lt,je){this.router=lt,this.userPermissionService=je}canActivate(lt){var je=this;return(0,p.A)(function*(){return yield je.checkIfUserCanAccess(lt)})()}checkIfUserCanAccess(lt){var je=this;return(0,p.A)(function*(){const wt=lt.data.userRolesPermission,Zt=lt.data.userAreaPermission;if(wt){let En=Y.NoPermission;try{En=yield(0,v.s)(je.userPermissionService.userCanAccess(wt,Zt))}catch(Le){console.error("Error checking user permissions:",Le),En=Y.ConnectionIssue}if(En==Y.NoPermission)return je.router.navigate(["/unauthorized"]),!1;if(En==Y.ConnectionIssue)return je.router.navigate([u.c.oldClientPanel]),!1}return!0})()}static \u0275fac=function(je){return new(je||Se)(b.KVO(x.Ix),b.KVO(Ie))};static \u0275prov=b.jDH({token:Se,factory:Se.\u0275fac})}return Se})()},1125:(Lt,be,D)=>{D.d(be,{D:()=>pe});var p=D(1626),u=D(3353),v=D(3665),Y=D(1066),b=D(5312),x=D(1413),R=D(7673),L=D(9437),j=D(8141),z=D(980),Q=D(2771),Ie=D(8750),Re=D(7707),Se=D(9974);function lt(ze,tt,...He){if(!0===tt)return void ze();if(!1===tt)return;const st=new Re.Ms({next:()=>{st.unsubscribe(),ze()}});return(0,Ie.Tg)(tt(...He)).subscribe(st)}var wt=D(6354),Zt=D(4438),En=D(5788),Le=D(3147);const ut=["shortcuts","atalhos","features","userShortcuts","customShortcuts","homeShortcuts","atalhosUsuario"],Ce=["hasShortcutConfiguration","hasConfiguration","configured"],me=["key","funcionalidade","functionality","feature","id","name","code","label"],ht=["label","nome","name","title","funcionalidade"],ge=["ordem","order","position","sortOrder"],Be=["userId","usuarioId","userID"];let pe=(()=>{class ze extends Y.r{toaster;router;PATH="User";user;userInfoRequest$;
1userChangedSubject=new x.B;constructor(He,st,At){super(He),this.toaster=st,this.router=At}getUserInfoWith403Redirect(He=!0){return this.getUser()?(0,R.of)(this.user):this.fetchUserInfo(He,!0).pipe((0,L.W)(st=>403===st.status||"Forbidden"===st.message?(this.router.navigate(["/access-request/validate-customer"]),(0,R.of)(null)):(console.error("Error loading user info",st),(0,R.of)(null))))}getUser(){return this.user}userChanges(){return this.userChangedSubject.asObservable()}checkUserPermission(He,st){let At=!1;const gn=this.getUser();if(!gn)return!1;switch(gn.userType){case v.x.Customer:At=this.user.customer.isTermAccepted;break;case v.x.CustomerEmployee:{let fn=null;const ln=ne=>!!ne&&(He===u.T.NotApplied||ne.nuAction===He||He===u.T.Read&&ne.nuAction===u.T.Write);let xe=gn.customerEmployee.permissionGroupCustomerEmployee;null!=xe&&(fn=xe.permissions.find(ne=>ne.nuScreen===st&&ln(ne))),fn||(fn=gn.customerEmployee.permissions?.find(F=>F.nuScreen===st&&ln(F))),At=!!fn&&this.user.customerEmployee.isTermAccepted;break}case v.x.SotreqEmployee:At=!!gn.sotreqEmployee?.permissionGroupSotreqEmployee?.permissions?.find(xe=>xe.nuScreen===st&&xe.nuAction===He)}return At}showAccessTerm(){return this.user?.customer?!0!==this.user.customer.isTermAccepted:!!this.user?.customerEmployee&&!0!==this.user.customerEmployee.isTermAccepted}clearUser(){this.user=void 0,this.userChangedSubject.next()}getUserInfo(He=!0,st=!1,At=!1){return this.getUser()?(0,R.of)(this.user):this.fetchUserInfo(He,At).pipe((0,L.W)(gn=>(console.error("Error loading user info",gn),st||this.toaster.error("N\xe3o conseguimos encontrar seu usu\xe1rio. Por favor, verifique sua conex\xe3o e tente novamente. Se o problema persistir, entre em contato com o suporte."),(0,R.of)(null))))}getUserInfoRaw(He=!0,st=!1){return this.fetchUserInfo(He,st)}fetchUserInfo(He,st=!1){if(st){const At=new p.Lr({"X-Skip-Default-Error-Interceptor":"true"});return this.baseGet(this.getUrl("Info"),He,void 0,{headers:At}).pipe((0,j.M)(gn=>{gn&&(this.user=gn)}))}return this.userInfoRequest$||(this.userInfoRequest$=this.baseGet(this.getUrl("Info"),He).pipe((0,j.M)(At=>{At&&(this.user=At)}),(0,z.j)(()=>{this.userInfoRequest$=void 0}),function je(ze,tt,He){let st,At=!1;return ze&&"object"==typeof ze?({bufferSize:st=1/0,windowTime:tt=1/0,refCount:At=!1,scheduler:He}=ze):st=ze??1/0,function et(ze={}){const{connector:tt=(()=>new x.B),resetOnError:He=!0,resetOnComplete:st=!0,resetOnRefCountZero:At=!0}=ze;return gn=>{let fn,ln,xe,ne=0,F=!1,te=!1;const ce=()=>{ln?.unsubscribe(),ln=void 0},Te=()=>{ce(),fn=xe=void 0,F=te=!1},ke=()=>{const Rt=fn;Te(),Rt?.unsubscribe()};return(0,Se.N)((Rt,Qe)=>{ne++,!te&&!F&&ce();const On=xe=xe??tt();Qe.add(()=>{ne--,0===ne&&!te&&!F&&(ln=lt(ke,At))}),On.subscribe(Qe),!fn&&ne>0&&(fn=new Re.Ms({next:hn=>On.next(hn),error:hn=>{te=!0,ce(),ln=lt(Te,He,hn),On.error(hn)},complete:()=>{F=!0,ce(),ln=lt(Te,st),On.complete()}}),(0,Ie.Tg)(Rt).subscribe(fn))})(gn)}}({connector:()=>new Q.m(st,tt,He),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:At})}({bufferSize:1,refCount:!1}))),this.userInfoRequest$}getUsersByFilter(He,st=!0){return this.baseGet(this.getUrl("ListUsers"),st,He)}getCustomerEmployeeById(He,st=!0){return this.baseGet(this.getUrl("CustomerEmployee",He),st)}getUserById(He,st=!0){return this.baseGet(this.getUrl(He),st)}getUserCommunicationPreferences(He,st=!1){return this.baseGet(this.getUrl(`${He}/Communication-Preferences`),st)}getUserHomeShortcuts(He,st=!0){return this.baseGet(this.getUrl(`${He}/Shortcuts`),st).pipe((0,wt.T)(At=>this.normalizeHomeShortcutsResponse(At)))}saveUserHomeShortcuts(He,st,At=!0){return this.basePost(this.getUrl(`${He}/Shortcuts`),st,At)}getCustomerEmployeeName(He,st=!0){return this.baseGet(this.getUrl("ListCustomerEmployeeName"),st,{term:He})}getCustomerEmployeeUserName(He,st=!0){return this.baseGet(this.getUrl("ListCustomerEmployeeUserName"),st,{term:He})}getCustomerEmployeeUserArea(He,st=!0){return this.baseGet(this.getUrl("ListCustomerEmployeeUserArea"),st,{term:He})}getCustomerEmployeeUserRole(He,st=!0){return this.baseGet(this.getUrl("ListCustomerEmployeeUserRole"),st,{term:He})}getFilterOptions(He,st=!0){return this.baseGet(this.getUrl("FilterOptions"),st,He)}checkUsernameExists(He){return this.http.get(`${this.getUrl}/exists/${He}`)}createUser(He,st=!0){return this.basePost(this.getUrl("Create"),He,st)}getCompaniesByEmail(He,st=!0){return this.baseGet(this.getUrl("companies-by-email"),st,{loginEmail:He})}clearClassicSessionId(He=!1){return this.basePost(this.getUrl("clear-classic-session-id"),{},He)}getLegacyCookieData(He=!1){return this.baseGet(`${b.c.apis.bff}/Auth/LegacyCookieData`,He).pipe((0,L.W)(At=>
1(console.warn("Error loading legacy cookie data",At),(0,R.of)(null))))}switchCompany(He,st=!0){const At=`${this.getUrl("switch-company")}?idLoginInfo=${He}`;return this.basePost(At,{},st).pipe((0,j.M)(gn=>{gn&&(this.user=gn,this.userChangedSubject.next())}))}updateUser(He,st,At=!0){return this.basePut(this.getUrl("CustomerEmployee")+He,st,At)}updateUserConfig(He,st,At=!0){return this.basePut(this.getUrl("UserConfig")+He,st,At)}updateUserCommunication(He,st,At=!0){return this.basePut(this.getUrl(`${this.user.idLoginInfo}/Communication-Preferences`),st,At)}deleteUser(He){return this.baseDelete(`${this.getUrl()}${He}`,!0)}normalizeHomeShortcutsResponse(He){const st=this.extractPayload(He),At=this.resolveRawShortcuts(st),gn=this.normalizeShortcuts(At);return{shortcuts:gn,hasShortcutConfiguration:this.resolveHasShortcutConfiguration(st,gn)}}extractPayload(He){return He?.data??He??{}}resolveHasShortcutConfiguration(He,st){const At=this.getFirstDefined(He,Ce);if("boolean"==typeof At)return At;if("string"==typeof At){const gn=At.trim().toLowerCase();if("true"===gn)return!0;if("false"===gn)return!1}return"number"==typeof At?At>0:st.length>0}resolveRawShortcuts(He){return this.getFirstDefined(He,ut)??[]}normalizeShortcuts(He){return Array.isArray(He)?He.map(st=>{if("string"==typeof st)return{key:st,label:st};const At=st,gn=this.getFirstDefined(At,me);if(!gn)return null;const fn=this.getFirstDefined(At,ht)??gn,ln=this.getFiniteNumberOrUndefined(ge.map(ne=>At?.[ne])),xe=this.getFirstDefined(At,Be);return{key:String(gn),label:String(fn),order:ln,userId:xe}}).filter(st=>!!st).sort((st,At)=>{const gn=Number.isFinite(st.order),fn=Number.isFinite(At.order);return gn&&fn?Number(st.order)-Number(At.order):gn?-1:fn?1:0}):[]}getFirstDefined(He,st){for(const At of st){const gn=He?.[At];if(void 0!==gn)return gn}}getFiniteNumberOrUndefined(He){for(const st of He){const At=Number(st);if(Number.isFinite(At))return At}}static \u0275fac=function(st){return new(st||ze)(Zt.KVO(p.Qq),Zt.KVO(En.W9),Zt.KVO(Le.Ix))};static \u0275prov=Zt.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})()},1131:(Lt,be,D)=>{D.d(be,{h:()=>z});var p=D(467),u=D(7554),v=D(5312),Y=D(1413),b=D(4412),x=D(5964),R=D(6977),L=D(4438),j=D(855);let z=(()=>{class Q{authService;msalBroadcastService;_destroying$=new Y.B;
1isAuthenticatedSubject=new b.t(!1);isAuthenticated$=this.isAuthenticatedSubject.asObservable();documentClaimCandidates=["CPF e CNPJ","cpf_e_cnpj","document","cpf_cnpj","tax_id","extension_CPFeCNPJ","custom_document"];constructor(Re,Se){this.authService=Re,this.msalBroadcastService=Se,this.msalBroadcastService.inProgress$.pipe((0,x.p)(et=>et===u.T$.None),(0,R.Q)(this._destroying$)).subscribe(()=>{this.setLoginDisplay()}),this.setLoginDisplay()}isAuthenticated(){return!!this.authService.instance.getActiveAccount()}getAccessToken(){var Re=this;return(0,p.A)(function*(){try{const Se=Re.authService.instance.getActiveAccount();if(!Se)return null;const et={scopes:v.c.protectedResources.bffApi.scopes,account:Se};return(yield Re.authService.instance.acquireTokenSilent(et)).accessToken}catch(Se){return console.error("Error getting access token:",Se),null}})()}initialize(){return(0,p.A)(function*(){return Promise.resolve()})()}login(){this.authService.loginRedirect({scopes:v.c.protectedResources.bffApi.scopes})}logout(){const Re=v.c;let Se=v.c.msalConfig.auth.postLogoutRedirectUri;if(Re.multiTenant?.enabled){const et=localStorage.getItem("msal_current_tenant")||"tenant1",lt=Re.multiTenant[et];lt?.postLogoutRedirectUri&&(Se=lt.postLogoutRedirectUri)}this.authService.logoutRedirect({postLogoutRedirectUri:Se})}getUserInfo(){return this.authService.instance.getActiveAccount()}getUserName(){const Re=this.authService.instance.getActiveAccount();return Re?.name||Re?.username||null}getUserEmail(){return this.authService.instance.getActiveAccount()?.username||null}getUserOid(){const Se=this.authService.instance.getActiveAccount()?.idTokenClaims?.oid;return"string"==typeof Se&&Se.length>0?Se:null}getUserDocument(){const Re=this.authService.instance.getActiveAccount();if(!Re?.idTokenClaims)return null;for(const Se of this.documentClaimCandidates){const et=Re.idTokenClaims[Se];if("string"==typeof et&&et.trim().length>0)return et}return null}getTokenClaim(Re){const et=this.authService.instance.getActiveAccount()?.idTokenClaims?.[Re];return"string"==typeof et?et:null}setLoginDisplay(){const Re=this.isAuthenticated();this.isAuthenticatedSubject.next(Re)}ngOnDestroy(){this._destroying$.next(void 0),this._destroying$.complete()}static \u0275fac=function(Se){return new(Se||Q)(L.KVO(j.dl),L.KVO(j.qb))};static \u0275prov=L.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"})}return Q})()},1066:(Lt,be,D)=>{D.d(be,{r:()=>b});var p=D(1626),u=D(8640),v=D(5312),Y=D(4438);let b=(()=>{class x{http;constructor(L){this.http=L}getUrl(...L){let j=v.c.apis.bff+"/"+this.PATH+"/";return L.length>0&&(j+=L.join("/")+"/"),j}baseGet(L,j,z,Q){let Ie;return Ie=null==z||z instanceof p.Nl?z:(0,u.Wg)(z),this.http.get(L,{...Q,headers:this.getHeaders(j,Q?.headers),params:Ie})}basePost(L,j,z,Q){return this.http.post(L,j,{...Q,headers:this.getHeaders(z,Q?.headers)})}basePut(L,j,z,Q){return this.http.put(L,j,{...Q,headers:this.getHeaders(z,Q?.headers)})}baseDelete(L,j,z){return this.http.delete(L,{...z,headers:this.getHeaders(j,z?.headers)})}basePatch(L,j,z,Q){return this.http.patch(L,j,{...Q,headers:this.getHeaders(z,Q?.headers)})}getHeaders(L,j){let z;return null!=j?(z=j,L&&(z=z.set("loader","true"))):L&&(z=new p.Lr({loader:"true"})),z}static \u0275fac=function(j){return new(j||x)(Y.KVO(p.Qq))};static \u0275prov=Y.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},7163:(Lt,be,D)=>{D.d(be,{Z:()=>v});var p=D(4412),u=D(4438);let v=(()=>{class Y{activeRequests=0;loadingSubject=new p.t(!1);loading$=this.loadingSubject.asObservable();showLoader(){this.activeRequests++,this.loadingSubject.value||this.loadingSubject.next(!0)}hideLoader(){this.activeRequests>0&&this.activeRequests--,this.activeRequests<=0&&this.loadingSubject.value&&(this.loadingSubject.next(!1),this.activeRequests=0)}static \u0275fac=function(R){return new(R||Y)};static \u0275prov=u.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})()},9565:(Lt,be,D)=>{D.d(be,{o:()=>b});var p=D(5312),u=D(3957);const v=[{type:u.N.VisionLink,value:"https://vl.cat.com/",description:"Monitore localiza\xe7\xe3o, horas de opera\xe7\xe3o, n\xedveis de combust\xedvel e integridade do equipamento, incluindo c\xf3digos de falha, an\xe1lise de fluidos e inspe\xe7\xf5es."},{type:u.N.VlProductivity,value:"https://vlproductivity.cat.com/",de
1scription:"Analise e otimize o desempenho ao rastrear materiais e custos, aumentando a produtividade com gest\xe3o eficiente do tempo e da frota para impulsionar os lucros."},{type:u.N.SiteSotreq,value:"https://sotreq.com.br/#/",description:"A Sotreq Cat \xe9 uma empresa l\xedder em solu\xe7\xf5es completas para a linha Cat. Oferecemos uma ampla gama de equipamentos novos e usados, pe\xe7as genu\xednas Cat, acess\xf3rios e servi\xe7os de alta qualidade para atender \xe0s suas necessidades."},{type:u.N.ShopCat,value:"https://shop.cat.com/",description:"Aprimore sua experi\xeancia de compras on-line com produtos e acess\xf3rios Cat\xae."},{type:u.N.PecasOnline,value:"https://parts.cat.com/",description:"Compre mais de 1,4 milh\xf5es de pe\xe7as Cat com agilidade, praticidade e seguran\xe7a."},{type:u.N.Sis20,value:"https://sis2.cat.com/",description:"Acesse todas as informa\xe7\xf5es dos produtos Cat atrav\xe9s desta ferramenta."},{type:u.N.Sistema3s,value:p.c.system3sUrl,description:"Acesse o sistema 3S para login e consulta de informa\xe7\xf5es operacionais."},{type:u.N.MineStar,value:"https://healthequipmentinsights.cat.com/",description:"Potencialize sua minera\xe7\xe3o com gest\xe3o avan\xe7ada de frota, automa\xe7\xe3o total e seguran\xe7a superior, transformando opera\xe7\xf5es e impulsionando a produtividade."},{type:u.N.CatRam,value:"https://ram.cat.com/",description:" Monitore, localize e gerencie seus grupos geradores de forma remota, elevando efici\xeancia, reduzindo riscos e impulsionando o desempenho."},{type:u.N.CatRfv,value:"https://www.remotefleetvision.com/",description:"Otimize desempenho e reduza tempo de inatividade para seus ativos de petr\xf3leo e g\xe1s. Informa\xe7\xf5es precisas de localiza\xe7\xe3o e manuten\xe7\xe3o proporcionam decis\xf5es r\xe1pidas e eficientes."}];var Y=D(4438);let b=(()=>{class x{links=v;oldCustomerPanelUrl=p.c.oldClientPanel.url;openLink(L){window.open(this.links.find(j=>j.type==L).value,"_blank")}goToOldPanel(){window.open(p.c.oldClientPanel.url,"_blank")}static \u0275fac=function(j){return new(j||x)};static \u0275prov=Y.jDH({token:x,factory:x.\u0275fac})}return x})()},5788:(Lt,be,D)=>{D.d(be,{W9:()=>v});var p=D(4438),u=D(5779);let v=(()=>{class x{messageService;constructor(L){this.messageService=L}show(L,j,z,Q){return this._show("string"!=typeof L?L:{severity:L,summary:j,detail:z,life:Q})}_show(L){return this.messageService.add(L)}success(L,j,z){return this.show(Y.SUCCESS,L,j,z)}error(L,j,z){return this.show(Y.ERROR,L,j,z)}warn(L,j,z){return this.show(Y.WARN,L,j,z)}info(L,j,z){return this.show(Y.INFO,L,j,z)}static \u0275fac=function(j){return new(j||x)(p.KVO(u.bg))};static \u0275prov=p.jDH({token:x,factory:x.\u0275fac})}return x})();var Y=function(x){return x.SUCCESS="success",x.INFO="info",x.WARN="warn",x.ERROR="error",x}(Y||{})},8640:(Lt,be,D)=>{D.d(be,{Wg:()=>u});var p=D(1626);function u(b){let x=new p.Nl;return null==b||Object.entries(b).forEach(([R,L])=>{if(null==L)return;let j=L;j instanceof Date&&(j=j.toISOString()),Array.isArray(j)?j.forEach(z=>{x=x.append(R,z)}):x=x.set(R,j)}),x}},9997:(Lt,be,D)=>{D.d(be,{h:()=>v});var p=D(6628),u=D(4438);let v=(()=>{class Y{transform(x){switch(x){case p.M.MONITORING_PANEL:return"Monitoramento (CMC)";case p.M.PREDICTIVE_MAINTENANCE:return"Reforma";case p.M.FLUID_ANALYSIS:return"Renova\xe7\xe3o (SOS)";case p.M.BACK_OFFICE:return"Inspe\xe7\xe3o";case p.M.ASSET_MANAGEMENT:return"Componentes (Gest\xe3o Ativos)";case p.M.CUSTOMER_PORTAL:return"Portal (Cliente)";case p.M.PREDICTIVE_TELEMETRY:return"Telemetria";case p.M.PREDICTIVE_SOS:return"Fluidos (Tend\xeancia)";case p.M.OLGA:return"Kit Revis\xe3o";case p.M.PSE:return"PSE Integra\xe7\xe3o";case p.M.PSE_COMMERCE_LEAD:return"PSE Comercial";default:return"-"}}static \u0275fac=function(R){return new(R||Y)};static \u0275pipe=u.EJ8({name:"leadOrigin",type:Y,pure:!0})}return Y})()},4763:(Lt,be,D)=>{D.d(be,{L:()=>v});var p=D(5934),u=D(4438);let v=(()=>{class Y{transform(x){switch(x){case p.G.High:return"Alta";case p.G.Mid:return"M\xe9dia";case p.G.Low:return"Baixa";default:return"-"}}static \u0275fac=function(R){return new(R||Y)};static \u0275pipe=u.EJ8({name:"leadPriority",type:Y,pure:!0})}return Y})()},5312:(Lt,be,D)=>{D.d(be,{c:()=>p});const p={env:"prd",buildId:"151929",production:!0,googleApiKey:"AIzaSyCRpcDQuJCL2265ZKroZwCYro7t6f7kyhg",multiTenant:{enabled:!0,tenant1:{clientId:"13b10eb7-87cf-4498-93e9-6c84c0d1fa02",authority:"https://gruposotreqext.ciamlogin.com/a546c73b-cc55-41ff-a07a-d79da6deaf90/v2.0",knownAuthority:"gruposotreqext.ciamlogin.com",scopes:["api://sotreqlink-ptc-bff/general"],postLogoutRedirectUri:"https://sotreqlink.sotreq.com.br"},tenant2:{clientId:"d97b41ca-7dbc-41e9-94c6-5997293624f9",authority:"https://login.microsoftonline.com/c9cd0976-a8f6-490a-b5f8-7a765745cb75",knownAuthority:"login.microsoftonline.com",scopes:["api://2b0a1037-4322-4ff4-b802-5255e1b8033c/general"],postLogoutRedirectUri:"https://sotreqlink.sotreq.com.br/admin"}},msalConfig:{auth:{clientId:"13b10eb7-87cf-4498-93e9-6c84c0d1fa02",authority:"https://gruposotreqext.ciamlogin.com/a546c73b-cc55-41ff-a07a-d79da6deaf90/v2.0",redirectUri:"https://sotreqlink.sotreq.com.br",postLogoutRedirectUri:"https://sotreqlink.sotreq.com.br"},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!1}},protectedResources:{bffApi:{endpoint:"https://api.sotreq.com.br/sotreqlink-painelbff/v1/api",scopes:["api://sotreqlink-ptc-bff/general"]}},apis:{bff:"https://api.sotreq.com.br/sotreqlink-painelbff/v1/api"},oldClientPanel:{url:"https://sotreqlink1.sotreq.com.br/"}
1,system3sUrl:"https://som.sotreq.com.br/#/login",newPanelBaseUrl:{url:"https://sotreqlink.sotreq.com.br"},support:{whatsappUrl:"https://wa.me/5511999999999?text=Preciso%20de%20ajuda%20com%20solicita%C3%A7%C3%A3o%20de%20acesso"},sensedia:{client:"653c1f0c-64b5-49ca-88ad-76d5ceaa4f46",authorization:"NjUzYzFmMGMtNjRiNS00OWNhLTg4YWQtNzZkNWNlYWE0ZjQ2Ojg1YTY5MzljLTk3YzMtNGU5OC1iOWQxLWZlYThkNDNkZDg0OA==",accessTokenUrl:"https://api.sotreq.com.br/oauth/access-token",grantTokenUrl:"https://api.sotreq.com.br/oauth/grant-code",authorizationUrl:"https://api.sotreq.com.br/oauth/",baseUrl:"https://api.sotreq.com.br"},instrumentationKey:"107034da-9a57-41dc-86a6-cb5dfcd1cadf",envName:"Production"}},4648:(Lt,be,D)=>{var p=D(345),u=D(4438);function v(s,e){return s||e}function Y(s,e){return s[e]}var xe,b=void 0,x=null,R="",L="function",j="object",z="prototype",Q="__proto__",Ie="undefined",Re="constructor",Se="Symbol",et="length",lt="name",je="call",wt="toString",Zt="getOwnPropertyDescriptor",ut=v(Object),Ce=Y(ut,z),me=v(String),ht=Y(me,z),ge=v(Math),Be=v(Array),pe=Y(Be,z),ze=Y(pe,"slice"),He="_polyfill",st="__nw21$polytype__";function fn(s,e){try{return{v:s.apply(this,e)}}catch(n){return{e:n}}}function ln(s,e,n){var o=fn(s,n);return o.e?e:o.v}function ne(s){return function(e){return typeof e===s}}function te(s){var e="[object "+s+"]";return function(n){return!(!n||ce(n)!==e)}}function ce(s){return Ce[wt].call(s)}function ke(s){return typeof s===Ie||s===Ie}function Rt(s){return s===b}function Qe(s){return s===x||ke(s)}function On(s){return s===x||s===b}function hn(s){return!!s||s!==b}function en(s){return!xe&&(xe=["string","number","boolean",Ie,"symbol","bigint"]),s!==j&&-1!==xe.indexOf(s)}var Qt=ne("string"),Ht=ne(L);function An(s){return!(!s&&Qe(s)||!s||typeof s!==j)}var vn=Y(Be,"isArray"),Si=te("Date"),_t=ne("number"),Vn=ne("boolean"),Di=te("Error");function mi(s){return!!(s&&s.then&&Ht(s.then))}function no(s){return!(!s||ln(function(){return!(s&&0+s)},!s))}function Pi(){}function it(){return!1}var he=v(me),$e="[object Error]";function Ye(s,e){var n=R,o=Ce[wt][je](s);o===$e&&(s={stack:he(s.stack),message:he(s.message),name:he(s.name)});try{n=((n=JSON.stringify(s,x,e?"number"==typeof e?e:4:b))?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):x)||he(s)}catch(c){n=" - "+Ye(c,e)}return o+": "+n}function cn(s){throw new Error(s)}function kn(s){throw new TypeError(s)}function Yr(s){On(s)&&kn("Cannot convert undefined or null to object")}function bi(s,e){return!!s&&Ce.hasOwnProperty[je](s,e)}
1var vi=v(Y(ut,Zt),Pi),ki=v(Y(ut,"hasOwn"),Eo);function Eo(s,e){return Yr(s),bi(s,e)||!!vi(s,e)}function Kt(s,e,n){if(s&&(An(s)||Ht(s)))for(var o in s)if(ki(s,o)&&-1===e[je](n||s,o,s[o]))break}function Wt(s,e,n){if(s)for(var o=s[et]>>>0,c=0;c<o&&(!(c in s)||-1!==e[je](n||s,s[c],c,s));c++);}var Rn=go;function go(s,e,n){var o=e?e[s]:x;return function(c){var d=(c?c[s]:x)||o;if(d||n){var h=arguments;return(d||n).apply(c,d?ze[je](h,1):h)}kn('"'+he(s)+'" not defined for '+Ye(c))}}function Hi(s){return function(e){return e[s]}}var yn=v(Y(ut,Zt),Pi),ot={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function Fe(s){var e={};if(e[ot.c]=!0,e[ot.e]=!0,s.l){e.get=function(){return s.l.v};var n=yn(s.l,"v");n&&n.set&&(e.set=function(o){s.l.v=o})}return Kt(s,function(o,c){e[ot[o]]=Rt(c)?e[ot[o]]:c}),e}var xt=Y(ut,"defineProperty"),Nn=Y(ut,"defineProperties");function Qn(s,e,n){return xt(s,e,Fe(n))}function De(s,e,n,o,c){var d={};return Kt(s,function(h,g){Ae(d,h,e?g:h),Ae(d,g,n?g:h)}),o?o(d):d}function Ae(s,e,n,o){xt(s,e,{value:n,enumerable:!0,writable:!1})}var Hn=v(Y(ut,"isFrozen"),it),xi=Y(ut,"freeze");function Pr(s){return s}function di(s){return Yr(s),s[Q]||x}var Xi=Y(ut,"assign"),Ln=Y(ut,"keys");function dr(s,e){if((vn(s)||An(s)||Ht(s))&&!Hn(s)){for(var n=0;n<e.length;n++)if(e[n]===s)return s;e.push(s),Kt(s,function(o,c){dr(c,e)}),Dr(s)}return s}function mr(s){return xi?dr(s,[]):s}var Dr=v(xi,Pr),ti=v(Y(ut,"getPrototypeOf"),di);function Or(s){return De(s,0,0,Dr)}function Bo(s){var e={};return Kt(s,function(n,o){Ae(e,n,o[1]),Ae(e,o[0],o[1])}),Dr(e)}var ta,jc=Or({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Gc="__tsUtils$gblCfg";function yr(){var s;return typeof globalThis!==Ie&&(s=globalThis),!s&&typeof self!==Ie&&(s=self),!s&&typeof window!==Ie&&(s=window),!s&&typeof global!==Ie&&(s=global),s}function Us(){if(!ta){var s=fn(yr).v||{};ta=s[Gc]=s[Gc]||{}}return ta}var Da=Y(ge,"min"),_i=Y(ge,"max"),na=Rn("slice",ht),ni=Rn("substring",ht),Bs=go("substr",ht,Es);function Es(s,e,n){return Yr(s),n<0?R:((e=e||0)<0&&(e=_i(e+s[et],0)),ke(n)?na(s,e):na(s,e,e+n))}function Qi(s,e){return ni(s,0,e)}var tr,ao=v(Y(ut,"create"),Ho);function Ho(s,e){var n=null;function o(){}if(On(s))n={};else{var c=typeof s;c!==j&&c!==L&&kn("Prototype must be an Object or function: "+Ye(s)),o[z]=s,fn(function(){o[Q]=s}),n=new o}return e&&fn(Nn,[n,e]),n}function ji(){return(Date.now||Vo)()}function Vo(){return(new Date).getTime()}function mo(s,e,n){return s.apply(e,n)}function co(){tr=Us()}function Zn(s,e){var n={};return!tr&&co(),n.b=tr.lzy,xt(n,"v",{configurable:!0,get:function(){var o=mo(s,null,e);return tr.lzy||xt(n,"v",{value:o}),n.b=tr.lzy,o}}),n}var wo,oa,ra=Y(ge,"random"),ia=Zn(function(){for(var s=ji().toString(36).slice(2);s.length<16;)s+=ra().toString(36).slice(2);return s.substring(0,16)}),Vs="_urid",os="$nw21sym",lo=0;function za(){if(!wo){var s=Us();wo=s.gblSym=s.gblSym||{k:{},s:{}}}return wo}function wa(s){var e="_"+lo+++"_"+ia.v,n=Se+"("+s+")";function o(d,h){Qn(c,d,{v:h,e:!1,w:!1})}var c=ao(null);return o("description",he(s)),o(wt,function(){return n+os+e}),o("valueOf",function(){return c}),o("v",n),o("_uid",e),function Sc(s,e){return s&&(fn(function(){s[He]=!0,s[st]=e}),fn(Qn,[s,He,{v:!0,w:!1,e:!1}]),fn(Qn,[s,st,{v:e,w:!1,e:!1}])),s}(c,"symbol")}function sa(s){var e=za();if(!ki(e.k,s)){var n=wa(s),o=Ln(e.s).length;n[Vs]=function(){return o+"_"+n[wt]()},e.k[s]=n,e.s[n[Vs]()]=he(s)}return e.k[s]}function vo(s){!oa&&(oa={});var e,n=jc[s];return n&&(e=oa[n]=oa[n]||wa(Se+"."+n)),e}function ri(s){return xt({toJSON:function(){return s}},"v",{value:s})}var Ss,Ma="window";function js(s,e){var n;return function(){return!tr&&co(),(!n||tr.lzy)&&(n=ri(fn(s,e).v)),n.v}}function yi(s){return!tr&&co(),(!Ss||!1===s||tr.lzy)&&(Ss=ri(fn(yr).v||x)),Ss.v}function qr(s,e){var n;if((n=Ss&&!1!==e?Ss.v:yi(e))&&n[s])return n[s];if(s===Ma)try{return window}catch{}return x}function Go(){return!!uo()}var uo=js(qr,["document"]);function Oa(){return!!Jr()}var Jr=js(qr,[Ma]);function kr(){return!!fi()}var fi=js(qr,["navigator"]);function $c(){return!!$o()}var Jo,ps,zc,$o=js(qr,["history"]),Wa=js(function(){return!!fn(function(){return process&&(process.versions||{}).node}).v}),Ya=js(function(){return!!fn(function(){return self&&self instanceof WorkerGlobalScope}).v});function ca(){return Jo=ri(fn(qr,[Se]).v)}function H(s){var e=(tr.lzy?0:Jo)||ca();return e.v?e.v[s]:b}function M(){return!!re()}function re(){return!tr&&co(),((tr.lzy?0:Jo)||ca()).v}function we(s,e){var n=jc[s];!tr&&co();var o=(tr.lzy?0:Jo)||ca();return o.v?o.v[n||s]:e?b:vo(s)}function Sn(s,e){!tr&&co();var n=(tr.lzy?0:Jo)||ca();return n.v?n.v(s):e?x:wa(s)}function ir(s){return!tr&&co(),((ps=(tr.lzy?0:ps)||ri(fn(H,["for"]).v)).v||sa)(s)}function ms(s){return!!s&&Ht(s.next)}function fo(s){return!On(s)&&Ht(s[we(3)])}function la(s,e,n){if(s&&(ms(s)||(!zc&&(zc=ri(we(3))),s=s[zc.v]?s[zc.v]():x),ms(s))){var o=b,c=b;try{for(var d=0;!(c=s.next()).done&&-1!==e[je](n||s,c.value,d,s);)d++}catch(h){o={e:h},s.throw&&(c=x,s.throw(o))}finally{try{c&&!c.done&&s.return&&s.return(c)}finally{if(o)throw o.e}}}}function Ra(s,e){return!ke(e)&&s&&(vn(e)?mo(s.push,s,e):ms(e)||fo(e)?la(e,function(n){s.push(n)}):s.push(e)),s}var Li=Rn("indexOf",pe),Xa=Rn("map",pe);function Dc(s,e,n){return((s?s.slice:x)||ze).apply(s,ze[je](arguments,1
1))}var Pa,Wc,Rl=Rn("reduce",pe),Nl=v(Y(ut,"setPrototypeOf"),Kc);function Kc(s,e){var n;return!Pa&&(Pa=ri(((n={})[Q]=[],n instanceof Array))),Pa.v?s[Q]=e:Kt(e,function(o,c){return s[o]=c}),s}function Cg(s,e,n){function o(){this[Re]=e,fn(Qn,[this,lt,{v:s,c:!0,e:!1}])}return fn(Qn,[e,lt,{v:s,c:!0,e:!1}]),(e=Nl(e,n))[z]=n===x?ao(n):(o[z]=n[z],new o),e}function da(s,e){e&&(s[lt]=e)}function xu(s,e,n){var o=n||Error,c=o[z][lt],d=Error.captureStackTrace;return Cg(s,function(){var h=this,g=arguments;try{fn(da,[o,s]);var C=mo(o,h,ze[je](g))||h;if(C!==h){var S=ti(h);S!==ti(C)&&Nl(C,S)}return d&&d(C,h[Re]),e&&e(C,g),C}finally{fn(da,[o,c])}},o)}function Lu(s){return function(n){return Yr(n),n&&n.replace&&(n=n.replace(s,R)),n}}var Ne,Me,dt,Wr=go("trim",ht,Lu(/^\s+|(?=\s)\s+$/g)),Ci=Y(ge,"floor");function Jt(s){if(!s||typeof s!==j)return!1;dt||(dt=!Oa()||Jr());var e=!1;if(s!==dt){Me||(Me=(Ne=Function[z][wt])[je](ut));try{var n=ti(s);(e=!n)||(bi(n,Re)&&(n=n[Re]),e=!(!n||typeof n!==L||Ne[je](n)!==Me))}catch{}}return e}function bn(s){return s.value&&Ro(s),!0}var un=[function $n(s){var e=s.value;if(vn(e)){var n=s.result=[];return n.length=e.length,s.copyTo(n,e),!0}return!1},Ro,function vs(s){return s.type===L},function bs(s){var e=s.value;return!!Si(e)&&(s.result=new Date(e.getTime()),!0)}];function hr(s,e,n,o){var c;return Wt(s,function(d){if(d.k===e)return c=d,-1}),c||(s.push(c={k:e,v:e}),o(c)),c.v}
1function Cr(s,e,n,o){var c=n.handler,d=n.path?o?n.path.concat(o):n.path:[],h={handler:n.handler,src:n.src,path:d},g=typeof e,C=!1,S=e===x;S||(e&&g===j?C=Jt(e):S=en(g));var O={type:g,isPrim:S,isPlain:C,value:e,result:e,path:d,origin:n.src,copy:function($,ae){return Cr(s,$,ae?h:n,ae)},copyTo:function($,ae){return Er(s,$,ae,h)}};return O.isPrim?c&&c[je](n,O)?O.result:e:hr(s,e,0,function($){Qn(O,"result",{g:function(){return $.v},s:function(ie){$.v=ie}});for(var ae=0,q=c;!(q||(ae<un.length?un[ae++]:bn))[je](n,O);)q=x})}function Er(s,e,n,o){if(!Qe(n))for(var c in n)e[c]=Cr(s,n[c],o,c);return e}function Oo(s,e){return Cr([],s,{handler:e,src:s})}function Ro(s){var e=s.value;if(e&&s.isPlain){var n=s.result={};return s.copyTo(n,e),!0}return!1}function ei(s,e){return Wt(e,function(n){!function Ei(s,e,n){Er([],s,e,{handler:n,src:e,path:[]})}(s,n)}),s}function As(s,e,n,o,c,d,h){return ei(Oo(s)||{},ze[je](arguments))}var Ko=Rn("split",ht);function Ll(s,e,n){if(s&&e){var o=Ko(e,"."),c=o.pop();Wt(o,function(d){Qe(s[d])&&(s[d]={}),s=s[d]}),s[c]=n}}var Zi,xh=Hi(et);function $i(){return!tr&&co(),(!Zi||tr.lzy)&&(Zi=ri(fn(qr,["performance"]).v)),Zi.v}
1var at=Y(ge,"round"),CE=v(Y(ut,Zt),Pi),Oi=go("endsWith",ht,EE);function EE(s,e,n){!function ui(s){Qt(s)||kn("'"+Ye(s)+"' is not a string")}(s);var o=Qt(e)?e:he(e),c=!ke(n)&&n<s[et]?n:s[et];return ni(s,c-o[et],c)===o}var Jv,Uh,zi=Rn("indexOf",ht),Ja="ref",Zv="unref",TE="hasRef",p0="enabled";function wg(s,e,n){var d,o=!0,c=s?e(x):x;function h(){return o=!1,c&&c[Zv]&&c[Zv](),d}function g(){c&&n(c),c=x}function C(){return c=e(c),o||h(),d}return(d={cancel:g,refresh:C})[TE]=function(){return c&&c[TE]?c[TE]():o},d[Ja]=function(){return o=!0,c&&c[Ja]&&c[Ja](),d},d[Zv]=h,{h:d=xt(d,p0,{get:function(){return!!c},set:function S(O){!O&&c&&g(),O&&!c&&C()}}),dn:function(){c=x}}}function qc(s,e,n){var o=vn(e),c=o?e.length:0,d=function e_(s){var e=Ht(s)?s:Jv;if(!e){var n=Us().tmOut||[];vn(n)&&n.length>0&&Ht(n[0])&&(e=n[0])}return e||setTimeout}(c>0?e[0]:o?b:e),h=function IE(s){var e=Ht(s)?s:Uh;if(!e){var n=Us().tmOut||[];vn(n)&&n.length>1&&Ht(n[1])&&(e=n[1])}return e||clearTimeout}(c>1?e[1]:b),g=n[0];n[0]=function(){C.dn(),mo(g,b,ze[je](arguments))};var C=wg(s,function(S){if(S){if(S.refresh)return S.refresh(),S;mo(h,b,[S])}return mo(d,b,n)},function(S){mo(h,b,[S])});return C.h}function ec(s,e){return qc(!0,b,ze[je](arguments))}var Mg,pi="constructor",Qc="prototype",Vu="function",xa="_dynInstFuncs",Og="_isDynProxy",ju="_dynClass",v0="_dynInstChk",Bh=v0,Ds="_dfOpts",Zc="_unknown_",t_="__proto__",pa="_dyn"+t_,Jc="__dynProto$Gbl",bE="_dynInstProto",Rg="useBaseInst",AE="setInstFuncs",DE=Object,nf=DE.getPrototypeOf,n_=DE.getOwnPropertyNames,r_=yi(),Hh=r_[Jc]||(r_[Jc]={o:(Mg={},Mg[AE]=!0,Mg[Rg]=!0,Mg),n:1e3});function i_(s){return s&&(s===DE[Qc]||s===Array[Qc])}function o_(s){return i_(s)||s===Function[Qc]}function Vl(s){var e;if(s){if(nf)return nf(s);var n=s[t_]||s[Qc]||(s[pi]?s[pi][Qc]:null);e=s[pa]||n,bi(s,pa)||(delete s[bE],e=s[pa]=s[bE]||s[pa],s[bE]=n)}return e}function Ng(s,e){var n=[];if(n_)n=n_(s);else for(var o in s)"string"==typeof o&&bi(s,o)&&n.push(o);if(n&&n.length>0)for(var c=0;c<n.length;c++)e(n[c])}function s_(s,e,n){return e!==pi&&typeof s[e]===Vu&&(n||bi(s,e))&&e!==t_&&e!==Qc}function Pg(s){kn("DynamicProto: "+s)}function kg(s,e){for(var n=s.length-1;n>=0;n--)if(s[n]===e)return!0;return!1}function Ji(s,e,n,o,c){if(!i_(s)){var h=n[xa]=n[xa]||ao(null);if(!i_(h)){var g=h[e]=h[e]||ao(null);!1!==h[Bh]&&(h[Bh]=!!c),i_(g)||Ng(n,function(C){s_(n,C,!1)&&n[C]!==o[C]&&(g[C]=n[C],delete n[C],(!bi(s,C)||s[C]&&!s[C][Og])&&(s[C]=function d(C,S){var O=function(){var $=function ws(s,e,n,o){var c=null;if(s&&bi(n,ju)){var d=s[xa]||ao(null);if((c=(d[n[ju]]||ao(null))[e])||Pg("Missing ["+e+"] "+Vu),!c[v0]&&!1!==d[Bh]){for(var h=!bi(s,e),g=Vl(s),C=[];h&&g&&!o_(g)&&!kg(C,g);){var S=g[e];if(S){h=S===o;break}C.push(g),g=Vl(g)}try{h&&(s[e]=c),c[v0]=1}catch{d[Bh]=!1}}}return c}(this,S,C,O)||function rf(s,e,n){var o=e[s];return o===n&&(o=Vl(e)[s]),typeof o!==Vu&&Pg("["+s+"] is not a "+Vu),o}(S,C,O);return $.apply(this,arguments)};return O[Og]=1,O}(s,C)))})}}}function wE(s,e){return bi(s,Qc)?s.name||e||Zc:((s||{})[pi]||{}).name||e||Zc}function Ki(s,e,n,o){bi(s,Qc)||Pg("theClass is an invalid class definition.");var c=s[Qc];(function y0(s,e){if(nf){for(var n=[],o=Vl(e);o&&!o_(o)&&!kg(n,o);){if(o===s)return!0;n.push(o),o=Vl(o)}return!1}return!0})(c,e)||Pg("["+wE(s)+"] not in hierarchy of ["+wE(e)+"]");var d=null;bi(c,ju)?d=c[ju]:(d="_dynCls$"+wE(s,"_")+"$"+Hh.n,Hh.n++,c[ju]=d);var h=Ki[Ds],g=!!h[Rg];g&&o&&void 0!==o[Rg]&&(g=!!o[Rg]);
1var C=function _0(s){var e=ao(null);return Ng(s,function(n){!e[n]&&s_(s,n,!1)&&(e[n]=s[n])}),e}(e),S=function gM(s,e,n,o){function c(C,S,O){var $=S[O];if($[Og]&&o){var ae=C[xa]||{};!1!==ae[Bh]&&($=(ae[S[ju]]||{})[O]||$)}return function(){return $.apply(C,arguments)}}var d=ao(null);Ng(n,function(C){d[C]=c(e,n,C)});for(var h=Vl(s),g=[];h&&!o_(h)&&!kg(g,h);)Ng(h,function(C){!d[C]&&s_(h,C,!nf)&&(d[C]=c(e,h,C))}),g.push(h),h=Vl(h);return d}(c,e,C,g);n(e,S);var O=!!nf&&!!h[AE];O&&o&&(O=!!o[AE]),Ji(c,d,e,C,!1!==O)}Ki[Ds]=Hh.o;var C0="function",ME="object",a_="undefined",ga="prototype",OE=Object,c_=OE[ga],Vh=(yi(),yi(),"hasOwnProperty"),_s=Xi||function(s){for(var e,n=1,o=arguments.length;n<o;n++)for(var c in e=arguments[n])c_[Vh].call(e,c)&&(s[c]=e[c]);return s},PE=function(s,e){return(PE=OE.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var c in o)o[Vh](c)&&(n[c]=o[c])})(s,e)};function Gl(s,e){function n(){this.constructor=s}typeof e!==C0&&null!==e&&kn("Class extends value "+String(e)+" is not a constructor or null"),PE(s,e),s[ga]=null===e?ao(e):(n[ga]=e[ga],new n)}function vM(s,e){for(var n=0,o=e.length,c=s.length;n<o;n++,c++)s[c]=e[n];return s}var zs="toLowerCase",nr="length",cf="warnToConsole",lf="throwInternal",$u="watch",el="apply",Ur="push",uf="splice",No="logger",zu="cancel",jh="initialize",$l="identifier",f_="removeNotificationListener",df="addNotificationListener",Ms="isInitialized",h_="getNotifyMgr",Gh="getPlugin",Ku="name",Wo="processNext",ff="getProcessTelContext",io="value",$h="enabled",xE="stopPollingInternalLogs",zl="unload",p_="onComplete",g_="version",xg="loggingLevelConsole",hf="createNew",tl="teardown",zh="messageId",nl="message",rl="diagLog",m_="_doTeardown",Lg="update",il="getNext",Kh="setNextPlugin",LE="userAgent",Wu="split",pf="replace",FE="substring",CM="indexOf",Kl="type",UE="evtName",Po="status",EM="getAllResponseHeaders",v_="isChildEvt",ol="data",Yu="getCtx",cs="setCtx",BE="itemsReceived",Wl="headers",Fg="urlString",Wh="timeout",b0="traceFlags",HE="getAttribute",Ks=void 0,Hr="",gf="channels",ls="core",Ug="createPerfMgr",tc="disabled",Yh="extensionConfig",Xu="extensions",ma="processTelemetry",__="priority",Bg="eventsSent",Xh="eventsDiscarded",mf="eventsSendRequest",sl="perfEvent",Hg="offlineEventsStored",VE="offlineBatchSent",jE="offlineBatchDrop",y_="getPerfMgr",C_="domain",GE="path",IM="Not dynamic - ",va="REDACTED",E_=["sig","Signature","AWSAccessKeyId","X-Goog-Signature"],$E=/-([a-z])/g,Os=/([^\w\d_$])/g,Vg=/^(\d+[\w\d_$])/,D0=Object.getPrototypeOf;function vf(s){return!Qe(s)}function jg(s){var e=s;return e&&Qt(e)&&(e=(e=(e=e[pf]($E,function(n,o){return o.toUpperCase()}))[pf](Os,"_"))[pf](Vg,function(n,o){return"_"+o})),e}function Rs(s,e){return!(!s||!e)&&-1!==zi(s,e)}function _f(s){return s&&s.toISOString()||""}function li(s){return Di(s)?s[Ku]:Hr}function Wi(s,e,n,o,c){var d=n;return s&&(d=s[e])!==n&&(!c||c(d))&&(!o||o(n))&&(s[e]=d=n),d}function Ws(s,e,n){var o;return s?!(o=s[e])&&Qe(o)&&(s[e]=o=ke(n)?{}:n):o=ke(n)?{}:n,o}function w0(s,e){var n=null,o=null;return Ht(s)?n=s:o=s,function(){var c=arguments;if(n&&(o=n()),o)return o[e][el](o,c)}}function Gg(s,e,n,o,c){s&&e&&n&&(!1!==c||ke(s[e]))&&(s[e]=w0(n,o))}function yf(s,e,n,o){return s&&e&&An(s)&&vn(n)&&Wt(n,function(c){Qt(c)&&Gg(s,c,e,c,o)}),s}function $g(s){return s&&Xi&&(s=OE(Xi({},s))),s}function zE(s,e,n,o,c,d){var h=arguments,g=h[0]||{},C=h[nr],S=!1,O=1;for(C>0&&Vn(g)&&(S=g,g=h[O]||{},O++),An(g)||(g={});O<C;O++){var $=h[O],ae=vn($),q=An($);for(var ie in $)if(ae&&ie in $||q&&ki($,ie)){var de=$[ie],_e=void 0;if(S&&de&&((_e=vn(de))||Jt(de))){var Pe=g[ie];_e?vn(Pe)||(Pe=[]):Jt(Pe)||(Pe={}),de=zE(S,Pe,de)}void 0!==de&&(g[ie]=de)}}return g}function zg(s,e,n){var o=e&&e.featureOptIn&&e.featureOptIn[s];if(s&&o){var c=o.mode;if(3===c)return!0;if(2===c)return!1}return n}function Kg(s){try{return s.responseText}catch{}return null}function O0(s,e){return s?"XDomainRequest,Response:"+Kg(s)||0:e}function T_(s,e){return s?"XMLHttpRequest,Status:"+s[Po]+",Response:"+Kg(s)||0:e}function R0(s,e){return e&&(_t(e)?s=[e].concat(s):vn(e)&&(s=e.concat(s))),s}var KE="withCredentials";function WE(s,e,n){if(!s[n]&&e&&e.getResponseHeader){var o=e.getResponseHeader(n);o&&(s[n]=Wr(o))}return s}function Wg(s,e){var n={};return s[EM]?n=function wM(s){var e={};
1return Qt(s)&&Wt(Wr(s)[Wu](/[\r\n]+/),function(o){if(o){var c=o[CM](": ");if(-1!==c){var d=Wr(o.substring(0,c))[zs](),h=Wr(o[FE](c+1));e[d]=h}else e[Wr(o)]=1}}),e}(s[EM]()):e&&(n=WE(n,s,"time-delta-millis"),n=WE(n,s,"kill-duration"),n=WE(n,s,"kill-duration-seconds")),n}var qu="location",x0="JSON",L0="crypto",YE="msCrypto",XE="msie",qE="trident/",F0="XMLHttpRequest",QE=null,U0=null,RM=!1,Yl=null,ZE=null;function I_(s,e){var n=!1;if(s){try{if(!(n=e in s)){var o=s[ga];o&&(n=e in o)}}catch{}if(!n)try{n=!ke((new s)[e])}catch{}}return n}function Ys(s){if(s&&RM){var e=qr("__mockLocation");if(e)return e}return typeof location===ME&&location?location:qr(qu)}function Cf(){return!!(typeof JSON===ME&&JSON||null!==qr(x0))}function Xs(){return Cf()?JSON||qr(x0):null}function Yg(){var s=fi();if(s&&(s[LE]!==U0||null===QE)){var e=((U0=s[LE])||Hr)[zs]();QE=Rs(e,XE)||Rs(e,qE)}return QE}function Xg(s){if(void 0===s&&(s=null),!s){var e=fi()||{};s=e?(e.userAgent||Hr)[zs]():Hr}var n=(s||Hr)[zs]();if(Rs(n,XE)){var o=uo()||{};return _i(parseInt(n[Wu](XE)[1]),o.documentMode||0)}if(Rs(n,qE)){var c=parseInt(n[Wu](qE)[1]);if(c)return c+4}return null}function Ef(s){return(null===ZE||!1===s)&&(ZE=kr()&&!!fi().sendBeacon),ZE}function Tf(s){var e=!1;try{e=!!qr("fetch");var n=qr("Request");e&&s&&n&&(e=I_(n,"keepalive"))}catch{}return e}function qg(){var s=!1;try{s=!!qr(F0)}catch{}return s}function Oc(s,e){if(!s||-1!==s[CM](" "))return s;if(e&&!1===e.redactUrls)return s;var o=-1!==zi(s,"@"),c=-1!==zi(s,"?");if(!o&&!c)return s;try{var d=s;return o&&(d=function Qg(s){return s.replace(/^([a-zA-Z][a-zA-Z0-9+.-]*:\/\/)([^:@]{1,200}):([^@]{1,200})@(.*)$/,"$1REDACTED:REDACTED@$4")}(s)),c&&(d=function G0(s,e){var n,o=zi(s,"?");if(-1===o)return s;n=e&&e.redactQueryParams?E_.concat(e.redactQueryParams):E_;var c=ni(s,0,o+1),d=ni(s,o+1),h=Hr,g=zi(d,"#");-1!==g&&(h=ni(d,g),d=ni(d,0,g));for(var C=!1,S=0;S<n[nr];S++)if(-1!==zi(d,n[S]+"=")){C=!0;break}if(!C)return s;var $=[],ae=!1;if(d&&d[nr]){var q=d[Wu]("&");for(S=0;S<q[nr];S++){var ie=q[S];if(ie){var le=zi(ie,"=");if(-1===le)$[Ur](ie);else{var de=ie[FE](0,le);if(ie[FE](le+1)===Hr)$[Ur](ie);else{for(var Pe=!1,Ct=0;Ct<n[nr];Ct++)if(de===n[Ct]){Pe=!0,ae=!0;break}$[Ur](Pe?de+"="+va:ie)}}}}}return ae?c+$.join("&")+h:s}(d,e)),d}catch{return s}}var $0=4294967296,If=4294967295,xM=123456789,Qh=987654321,z0=!1,Qu=xM,Sf=Qh;function tT(){try{var s=2147483647&ji();!function K0(s){s<0&&(s>>>=0),Qu=xM+s&If,Sf=Qh-s&If,z0=!0}((Math.random()*$0^s)+s)}catch{}}function Zu(s){var e=0,n=function S_(){return qr(L0)}()||function qh(){return qr(YE)}();return n&&n.getRandomValues&&(e=n.getRandomValues(new Uint32Array(1))[0]&If),0===e&&Yg()&&(z0||tT(),e=function W0(s){var e=((Sf=36969*(65535&Sf)+(Sf>>16)&If)<<16)+(65535&(Qu=18e3*(65535&Qu)+(Qu>>16)&If))>>>0&If;return s||(e>>>=0),e}()&If),0===e&&(e=Ci($0*Math.random()|0)),s||(e>>>=0),e}function b_(s){void 0===s&&(s=22);for(var n=Zu()>>>0,o=0,c=Hr;c[nr]<s;)o++,c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===o&&(n=(Zu()<<2&4294967295|3&n)>>>0,o=0);return c}var iT="3.3.10",A_="."+b_(6),oT=0;function bf(s){return 1===s.nodeType||9===s.nodeType||!+s.nodeType}function nc(s,e){return void 0===e&&(e=!1),jg(s+oT+++(e?"."+iT:Hr)+A_)}function FM(s){var e={id:nc("_aiData-"+(s||Hr)+"."+iT),accept:function(n){return bf(n)},get:function(n,o,c,d){var h=n[e.id];return h?h[jg(o)]:(d&&(h=function LM(s,e){var n=e[s.id];if(!n){n={};try{bf(e)&&Qn(e,s.id,{e:!1,v:n})}catch{}}return n}(e,n),h[jg(o)]=c),c)},kill:function(n,o){if(n&&n[o])try{delete n[o]}catch{}}};return e}function Af(s){return s&&An(s)&&!vn(s)&&(s.isVal||s.fb||ki(s,"v")||ki(s,"mrg")||ki(s,"ref")||s.set)}function D_(s,e,n){var o,c=n.dfVal||hn;if(e&&n.fb){var d=n.fb;vn(d)||(d=[d]);for(var h=0;h<d[nr];h++){var g=d[h],C=e[g];if(c(C)?o=C:s&&(c(C=s.cfg[g])&&(o=C),s.set(s.cfg,he(g),C)),c(o))break}}return!c(o)&&c(n.v)&&(o=n.v),o}function w_(s,e,n){var c,o=n;return n&&Af(n)&&(o=D_(s,e,n)),o&&(Af(o)&&(o=w_(s,e,o)),vn(o)?(c=[])[nr]=o[nr]:Jt(o)&&(c={}),c&&(Kt(o,function(d,h){h&&Af(h)&&(h=w_(s,e,h)),c[d]=h}),o=c)),o}function M_(s,e,n,o){var c,d,h,C,S,O,$,g=o;Af(g)?(c=g.isVal,d=g.set,O=g.rdOnly,$=g.blkVal,C=g.mrg,!(S=g.ref)&&ke(S)&&(S=!!C),h=D_(s,e,g)):h=o,$&&s.blkVal(e,n);var ae,q=!0,ie=e[n];(ie||!Qe(ie))&&(ae=ie,q=!1,c&&ae!==h&&!c(ae)&&(ae=h,q=!0),d&&(q=(ae=d(ae,h,e))===h)),q?ae=h?w_(s,e,h):h:(Jt(ae)||vn(h))&&C&&h&&(Jt(h)||vn(h))&&Kt
1(h,function(le,de){M_(s,ae,le,de)}),s.set(e,n,ae),S&&s.ref(e,n),O&&s.rdOnly(e,n)}var Xl=ir("[[ai_dynCfg_1]]"),Ju=ir("[[ai_blkDynCfg_1]]"),Y0=ir("[[ai_frcDynCfg_1]]");function X0(s){var e;return s&&(vn(s)?(e=[])[nr]=s[nr]:Jt(s)&&(e={}),e)?(Kt(s,function(n,o){e[n]=X0(o)}),e):s}function Rc(s,e,n){var o=!1;return n&&!s[e.blkVal]&&!(o=n[Y0])&&!n[Ju]&&(o=Jt(n)||vn(n)),o}function Df(s){kn("InvalidAccess:"+s)}var sT,HM=["push","pop","shift","unshift","splice"],Zg=function(s,e,n,o){s&&s[lf](3,108,"".concat(n," [").concat(e,"] failed - ")+Ye(o))};function O_(s,e){var n=CE(s,e);return n&&n.get}function R_(s,e,n,o){if(e){var c=O_(e,n);c&&c[s.prop]?e[n]=o:function jM(s,e,n,o){var c={n,h:[],trk:function(S){S&&S.fn&&(-1===Li(c.h,S)&&c.h[Ur](S),s.trk(S,c))},clr:function(S){var O=Li(c.h,S);-1!==O&&c.h[uf](O,1)}},d=!0,h=!1;function g(){d&&(h=h||Rc(g,s,o),o&&!o[Xl]&&h&&(o=P_(s,o,n,"Converting")),d=!1);var S=s.act;return S&&c.trk(S),o}g[s.prop]={chng:function(){s.add(c)}},Qn(e,c.n,{g,s:function C(S){if(o!==S){g[s.ro]&&!s.upd&&Df("["+n+"] is read-only:"+Ye(e)),d&&(h=h||Rc(g,s,o),d=!1);var O=h&&g[s.rf];if(h)if(O){Kt(o,function(ae){o[ae]=S?S[ae]:Ks});try{Kt(S,function(ae,q){R_(s,o,ae,q)}),S=o}catch(ae){Zg((s.hdlr||{})[No],n,"Assigning",ae),h=!1}}else o&&o[Xl]&&Kt(o,function(ae){var q=O_(o,ae);if(q){var ie=q[s.prop];ie&&ie.chng()}});if(S!==o){var $=S&&Rc(g,s,S);!O&&$&&(S=P_(s,S,n,"Converting")),o=S,h=$}s.add(c)}}})}(s,e,n,o)}return e}function N_(s,e,n,o){if(e){var c=O_(e,n),h=o&&o[0],g=o&&o[1],C=o&&o[2];if(!c||!c[s.prop]){if(C)try{!function BM(s){if(s&&(Jt(s)||vn(s)))try{s[Ju]=!0}catch{}}(e)}catch(S){Zg((s.hdlr||{})[No],n,"Blocking",S)}try{R_(s,e,n,e[n]),c=O_(e,n)}catch(S){Zg((s.hdlr||{})[No],n,"State",S)}}h&&(c[s.rf]=h),g&&(c[s.ro]=g),C&&(c[s.blkVal]=!0)}return e}function P_(s,e,n,o){try{Kt(e,function(c,d){R_(s,e,c,d)}),e[Xl]||(xt(e,Xl,{get:function(){return s.hdlr}}),function VM(s,e,n){vn(e)&&Wt(HM,function(o){var c=e[o];e[o]=function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];var g=c[el](this,d);return P_(s,e,n,"Patching"),g}})}(s,e,n))}catch(c){Zg((s.hdlr||{})[No],n,o,c)}return e}var Jg="[[ai_",ed="]]";function q0(s,e,n){var o=function UM(s){if(s){var e=s[Xl]||s;if(e.cfg&&(e.cfg===s||e.cfg[Xl]===e))return e}return null}(e);if(o)return o;var h,c=nc("dyncfg",!0),d=e&&!1!==n?e:X0(e),le={uid:null,cfg:d,logger:s,notify:function g(){h.notify()},set:function C(de,_e,Pe){try{de=R_(h,de,_e,Pe)}catch(Ct){Zg(s,_e,"Setting value",Ct)}return de[_e]},setDf:function ie(de,_e){return _e&&Kt(_e,function(Pe,Ct){M_(le,de,Pe,Ct)}),de},watch:function S(de){return function em(s,e){var n={fn:e,rm:function(){n.fn=null,s=null,e=null}};return Qn(n,"toJSON",{v:function(){return"WatcherHandler"+(n.fn?"":"[X]")}}),s.use(n,e),n}(h,de)},ref:function $(de,_e){var Pe;return N_(h,de,_e,(Pe={},Pe[0]=!0,Pe))[_e]},rdOnly:function ae(de,_e){var Pe;return N_(h,de,_e,(Pe={},Pe[1]=!0,Pe))[_e]},blkVal:function q(de,_e){var Pe;return N_(h,de,_e,(Pe={},Pe[2]=!0,Pe))[_e]},_block:function O(de,_e){h.use(null,function(Pe){var Ct=h.upd;try{ke(_e)||(h.upd=_e),de(Pe)}finally{h.upd=Ct}})}};return Qn(le,"uid",{c:!1,e:!1,w:!1,v:c}),P_(h=function ql(s){var C,e=Sn(Jg+"get"+s.uid+ed),n=Sn(Jg+"ro"+s.uid+ed),o=Sn(Jg+"rf"+s.uid+ed),c=Sn(Jg+"blkVal"+s.uid+ed),d=Sn(Jg+"dtl"+s.uid+ed),h=null,g=null;function S(q,ie){var le=C.act;try{C.act=q,q&&q[d]&&(Wt(q[d],function(_e){_e.clr(q)}),q[d]=[]),ie({cfg:s.cfg,set:s.set.bind(s),setDf:s.setDf.bind(s),ref:s.ref.bind(s),rdOnly:s.rdOnly.bind(s)})}catch(_e){var de=s[No];throw de&&de[lf](1,107,Ye(_e)),_e}finally{C.act=le||null}}function O(){if(h){var q=h;h=null,g&&g[zu](),g=null;var ie=[];if(Wt(q,function(le){if(le&&(le[d]&&(Wt(le[d],function(de){de.clr(le)}),le[d]=null),le.fn))try{S(le,le.fn)}catch(de){ie[Ur](de)}}),h)try{O()}catch(le){ie[Ur](le)}ie[nr]>0&&function GM(s,e){sT||(sT=xu("AggregationError",function(o,c){c[nr]>1&&(o.errors=c[1])}));var n=s||"One or more errors occurred.";throw Wt(e,function(o,c){n+="\n".concat(c," > ").concat(Ye(o))}),new sT(n,e||[])}("Watcher error(s): ",ie)}}return C={prop:e,ro:n,rf:o,blkVal:c,hdlr:s,add:function $(q){if(q&&q.h[nr]>0){h||(h=[]),g||(g=ec(function(){g=null,O()}
1,0));for(var ie=0;ie<q.h[nr];ie++){var le=q.h[ie];le&&-1===Li(h,le)&&h[Ur](le)}}},notify:O,use:S,trk:function ae(q,ie){if(q){var le=q[d]=q[d]||[];-1===Li(le,ie)&&le[Ur](ie)}}}}(le),d,"config","Creating"),le}function La(s,e,n,o){var c=q0(n,s||{},o);return e&&c.setDf(c.cfg,e),c}function Yo(s,e,n){var o=s[Xl]||s;return!o.cfg||o.cfg!==s&&o.cfg[Xl]!==o?(function Q0(s,e){s?(s[cf](e),s[lf](2,108,e)):Df(e)}(n,IM+Ye(s)),La(s,null,n)[$u](e)):o[$u](e)}var Zh,Z0=[Bg,Xh,mf,sl],aT=null;function cT(s,e){return function(){var n=arguments,o=$M(e);if(o){var c=o.listener;c&&c[s]&&c[s][el](c,n)}}}function $M(s){var e=aT;return!e&&!0!==s.disableDbgExt&&(e=aT||function CP(){var s=qr("Microsoft");return s&&(aT=s.ApplicationInsights),aT}()),e?e.ChromeDbgExt:null}var Jh,eb="warnToConsole",tb={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},nb=((Jh={})[0]=null,Jh[1]="errorToConsole",Jh[2]=eb,Jh[3]="debugToConsole",Jh);function rb(s){return s?'"'+s[pf](/\"/g,Hr)+'"':Hr}function lT(s,e){var n=function JE(){return typeof console!==a_?console:qr("console")}();if(n){var o="log";n[s]&&(o=s),Ht(n[o])&&n[o](e)}}var ep=function(){function s(e,n,o,c){void 0===o&&(o=!1);var d=this;d[zh]=e,d[nl]=(o?"AI: ":"AI (Internal): ")+e;var h=Hr;Cf()&&(h=Xs().stringify(c));var g=(n?" message:"+rb(n):Hr)+(c?" props:"+rb(h):Hr);d[nl]+=g}return s.dataType="MessageData",s}();function al(s,e){return(s||{})[No]||new tm(e)}var tm=function(){function s(e){this.identifier="DiagnosticLogger",this.queue=[];var c,d,h,g,C,n=0,o={};Ki(s,this,function(S){function O(ie,le){if(!function ae(){return n>=h}()){var de=!0,_e="AITR_"+le[zh];if(o[_e]?de=!1:o[_e]=!0,de&&(ie<=d&&(S.queue[Ur](le),n++,q(1===ie?"error":"warn",le)),n===h)){var Pe="Internal events throttle limit per PageView reached for this app.",Ct=new ep(23,Pe,!1);S.queue[Ur](Ct),1===ie?S.errorToConsole(Pe):S[cf](Pe)}}}function q(ie,le){var de=$M(e||{});de&&de[rl]&&de[rl](ie,le)}C=function $(ie){return Yo(La(ie,tb,S).cfg,function(le){var de=le.cfg;c=de[xg],d=de.loggingLevelTelemetry,h=de.maxMessageLimit,g=de.enableDebug})}(e||{}),S.consoleLoggingLevel=function(){return c},S[lf]=function(ie,le,de,_e,Pe){void 0===Pe&&(Pe=!1);var Ct=new ep(le,de,Pe,_e);if(g)throw Ye(Ct);var Dt=nb[ie]||eb;if(ke(Ct[nl]))q("throw"+(1===ie?"Critical":"Warning"),Ct);else{if(Pe){var Et=+Ct[zh];!o[Et]&&c>=ie&&(S[Dt](Ct[nl]),o[Et]=!0)}else c>=ie&&S[Dt](Ct[nl]);O(ie,Ct)}},S.debugToConsole=function(ie){lT("debug",ie),q("warning",ie)},S[cf]=function(ie){lT("warn",ie),q("warning",ie)},S.errorToConsole=function(ie){lT("error",ie),q("error",ie)},S.resetInternalMessageCount=function(){n=0,o={}},S.logInternalMessage=O,S[zl]=function(ie){C&&C.rm(),C=null}})}return s.__ieDyn=1,s}();function nm(s){return s||new tm}function In(s,e,n,o,c,d){void 0===d&&(d=!1),nm(s)[lf](e,n,o,c,d)}function Fa(s,e){nm(s)[cf](e)}var k_=function Xn(s){return De(s,1,0,Dr)},uT=function Ic(s){return Bo(s)},tp=k_({LocalStorage:0,SessionStorage:1}),np="split",Sr="length",rp="toLowerCase",ip="ingestionendpoint",x_="toString",wf="removeItem",rm="message",op="count",dT="preTriggerDate",L_="getUTCDate",F_="stringify",fT="pathname",im="match",ob="correlationHeaderExcludePatterns",cl="name",rc="properties",td="measurements",hT="sizeInBytes",sp="typeName",U_="exceptions",B_="severityLevel",sb="problemGroup",om="parsedStack",pT="hasFullStack",H_="assembly",ic="fileName",Ql="line",ap="aiDataContract",sm="duration",Zl=void 0,Jl=void 0,gT="";function V_(){return G_()?eu(tp.LocalStorage):null}function eu(s){try{if(Qe(yi()))return null;var e=(new Date)[x_](),n=qr(s===tp.LocalStorage?"localStorage":"sessionStorage"),o=gT+e;n.setItem(o,e);var c=n.getItem(o)!==e;if(n[wf](o),!c)return n}catch{}return null}function qs(){return Mf()?eu(tp.SessionStorage):null}function j_(s){gT=s||""}function G_(s){return(s||void 0===Zl)&&(Zl=!!eu(tp.LocalStorage)),Zl}function YM(s,e){var n=V_();if(null!==n)try{return n.getItem(e)}catch(o){Zl=!1,In(s,2,1,"Browser failed read of local storage. "+li(o),{exception:Ye(o)})}return null}function XM(s,e,n){var o=V_();if(null!==o)try{return o.setItem(e,n),!0}catch(c){Zl=!1,In(s,2,3,"Browser failed write to local storage. "+li(c),{exception:Ye(c)})}return!1}function Mf(s){return(s||void 0===Jl)&&(Jl=!!eu(tp.SessionStorage)),Jl}function cp(s,e){var n=qs();if(null!==n)try{return n.getItem(e)}catch(o){Jl=!1,In(s,2,2,"Browser failed read of session storage. "+li(o),{exception:Ye(o)})}return null}function $_(s,e,n){var o=qs();if(null!==o)try{return o.setItem(e,n),!0}catch(c){Jl=!1,In(s,2,4,"Browser failed write to session storage. "+li(c),{exception:Ye(c)})}return!1}function z_(s,e){var n=qs();if(null!==n)try{return n[wf](e),!0}catch(o){Jl=!1,In(s,2,6,"Browser failed removal of session storage item. "+li(o),{exception:Ye(o)})}return!1}var K_="AppInsightsPropertiesPlugin",Of="AppInsightsChannelPlugin",W_="ApplicationInsightsAnalytics",nd="Microsoft_Ap
1plicationInsights_BypassAjaxInstrumentation",Y_="sampleRate",lp="ProcessLegacy",cb="http.method",mT="https://dc.services.visualstudio.com",Rf="/v2/track",ll="not_specified",vT="iKey";function lb(s,e,n){var o=e[Sr],c=function ub(s,e){var n;return e&&((e=Wr(he(e)))[Sr]>150&&(n=ni(e,0,150),In(s,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0))),n||e}(s,e);if(c[Sr]!==o){for(var d=0,h=c;void 0!==n[h];)d++,h=ni(c,0,147)+fb(d);c=h}return c}function ho(s,e,n){var o;return void 0===n&&(n=1024),e&&(n=n||1024,(e=Wr(he(e)))[Sr]>n&&(o=ni(e,0,n),In(s,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:e},!0))),o||e}function Nf(s,e,n){return Qt(e)&&(e=Oc(e,n)),rd(s,e,2048,66)}function X_(s,e){var n;return e&&e[Sr]>32768&&(n=ni(e,0,32768),In(s,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),n||e}function Pf(s,e){if(e){var n={};Kt(e,function(o,c){if(An(c)&&Cf())try{c=Xs()[F_](c)}catch(d){In(s,2,49,"custom property is not valid",{exception:d},!0)}c=ho(s,c,8192),o=lb(s,o,n),n[o]=c}),e=n}return e}function tu(s,e){if(e){var n={};Kt(e,function(o,c){o=lb(s,o,n),n[o]=c}),e=n}return e}function rd(s,e,n,o){var c;return e&&(e=Wr(he(e)))[Sr]>n&&(c=ni(e,0,n),In(s,2,o,"input is too long, it has been truncated to "+n+" characters.",{data:e},!0)),c||e}function fb(s){var e="00"+s;return Bs(e,e[Sr]-3)}function ul(s,e,n,o,c,d){n=ho(o,n)||ll,(Qe(s)||Qe(e)||Qe(n))&&cn("Input doesn't contain all required fields");var h="";s[vT]&&(h=s[vT],delete s[vT]);var g={name:n,time:_f(new Date),iKey:h,ext:d||{},tags:[],data:{},baseType:e,baseData:s};return Qe(c)||Kt(c,function(C,S){g.data[C]=S}),g}var kf=function(){function s(e,n,o,c){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var d=this;d.ver=2,d[cl]=ho(e,n)||ll,d[rc]=Pf(e,o),d[td]=tu(e,c)}return s.envelopeType="Microsoft.ApplicationInsights.{0}.Event",s.dataType="EventData",s}(),nu=function(){function s(e,n,o,c,d){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var h=this;h.ver=2,h[rm]=X_(e,n=n||ll),h[rc]=Pf(e,c),h[td]=tu(e,d),o&&(h[B_]=o)}return s.envelopeType="Microsoft.ApplicationInsights.{0}.Message",s.dataType="MessageData",s}(),QM=function(){return function s(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}}(),id=function(){function s(e,n,o,c,d,h,g,C,S){this.aiDataContract={ver:1,metrics:1,properties:0};var O=this;O.ver=2;var $=new QM;$[op]=c>0?c:void 0,$.max=isNaN(h)||null===h?void 0:h,$.min=isNaN(d)||null===d?void 0:d,$[cl]=ho(e,n)||ll,$.value=o,$.stdDev=isNaN(g)||null===g?void 0:g,O.metrics=[$],O[rc]=Pf(e,C),O[td]=tu(e,S)}return s.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",s.dataType="MetricData",s}(),up="";function dl(s){(isNaN(s)||s<0)&&(s=0),s=at(s);var e=up+s%1e3,n=up+Ci(s/1e3)%60,o=up+Ci(s/6e4)%60,c=up+Ci(s/36e5)%24,d=Ci(s/864e5);return(d>0?d+".":up)+(c=c[Sr]<2?"0"+c:c)+":"+(o=o[Sr]<2?"0"+o:o)+":"+(n=n[Sr]<2?"0"+n:n)+"."+(1===e[Sr]?"00"+e:2===e[Sr]?"0"+e:e)}var oc=function(){function s(e,n,o,c,d,h,g){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var C=this;C.ver=2,C.id=function db(s,e){return e&&rd(s,e,128,69)[x_]()}(e,g),C.url=Nf(e,o),C[cl]=ho(e,n)||ll,isNaN(c)||(C[sm]=dl(c)),C[rc]=Pf(e,d),C[td]=tu(e,h)}return s.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",s.dataType="PageviewData",s}(),xf=function(){function s(e,n,o,c,d,h,g){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var C=this;C.ver=2,C.url=Nf(e,o),C[cl]=ho(e,n)||ll,C[rc]=Pf(e,d),C[td]=tu(e,h),g&&(C.domProcessing=g.domProcessing,C[sm]=g[sm],C.networkConnect=g.networkConnect,C.perfTotal=g.perfTotal,C.receivedResponse=g.receivedResponse,C.sentRequest=g.sentRequest)}return s.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",s.dataType="PageviewPerformanceData",s}(),_T=58,am=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,pb=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,tO=/([^\(\s\n]+):([0-9]+)$/,gb="<no_method>
1",dp="error",Ua="stack",Z_="stackDetails",Nr="errorSrc",J_="message",CT="description",Lf=[{re:/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,len:5,m:1,fn:2,ln:3,col:4},{chk:function vb(s){return zi(s,"[native")<0},pre:function mb(s){return s.replace(/(\(anonymous\))/,"<anonymous>")},re:/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,len:4,m:1,fn:2,ln:3},{re:/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,len:3,m:1,fn:2,hdl:Tb},{re:/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,len:2,fn:1,hdl:Tb}];function ET(s,e){var n=s;return n&&!Qt(n)&&(JSON&&JSON[F_]?(n=JSON[F_](s),e&&(!n||"{}"===n)&&(n=Ht(s[x_])?s[x_]():""+s)):n=s+" - (Missing JSON.stringify)"),n||""}function cm(s,e){var n=s;return s&&(n&&!Qt(n)&&(n=s[J_]||s[CT]||n),n&&!Qt(n)&&(n=ET(n,!0)),s.filename&&(n=n+" @"+(s.filename||"")+":"+(s.lineno||"?")+":"+(s.colno||"?"))),e&&"String"!==e&&"Object"!==e&&"Error"!==e&&-1===zi(n||"",e)&&(n=e+": "+n),n||""}function hp(s){return s&&s.src&&Qt(s.src)&&s.obj&&vn(s.obj)}function od(s){var e=s||"";Qt(e)||(e=Qt(e[Ua])?e[Ua]:""+e);var n=e[np]("\n");return{src:e,obj:n}}function ey(s){var e=null;if(s)try{if(s[Ua])e=od(s[Ua]);else if(s[dp]&&s[dp][Ua])e=od(s[dp][Ua]);else if(s.exception&&s.exception[Ua])e=od(s.exception[Ua]);else if(hp(s))e=s;else if(hp(s[Z_]))e=s[Z_];else if(Jr()&&Jr().opera&&s[J_])e=function IT(s){for(var e=[],n=s[np]("\n"),o=0;o<n[Sr];o++){var c=n[o];n[o+1]&&(c+="@"+n[o+1],o++),e.push(c)}return{src:s,obj:e}}(s[rm]);else if(s.reason&&s.reason[Ua])e=od(s.reason[Ua]);else if(Qt(s))e=od(s);else{var n=s[J_]||s[CT]||"";Qt(s[Nr])&&(n&&(n+="\n"),n+=" from "+s[Nr]),n&&(e=od(n))}}catch(o){e=od(o)}return e||{src:"",obj:null}}function pp(s){var e="";if(s&&!(e=s.typeName||s[cl]||""))try{var o=/function (.{1,200})\(/.exec(s.constructor[x_]());e=o&&o[Sr]>1?o[1]:""}catch{}return e}function bT(s){if(s)try{if(!Qt(s)){var e=pp(s),n=ET(s,!1);return(!n||"{}"===n)&&(s[dp]&&(e=pp(s=s[dp])),n=ET(s,!0)),0!==zi(n,e)&&"String"!==e?e+":"+n:n}}catch{}return""+(s||"")}var sc=function(){function s(e,n,o,c,d,h){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var g=this;g.ver=2,function TT(s){try{if(An(s))return"ver"in s&&"exceptions"in s&&"properties"in s}catch{}return!1}(n)?(g[U_]=n[U_]||[],g[rc]=n[rc],g[td]=n[td],n[B_]&&(g[B_]=n[B_]),n.id&&(g.id=n.id,n[rc].id=n.id),n[sb]&&(g[sb]=n[sb]),Qe(n.isManual)||(g.isManual=n.isManual)):(o||(o={}),h&&(o.id=h),g[U_]=[Cb(e,n,o)],g[rc]=Pf(e,o),g[td]=tu(e,c),d&&(g[B_]=d),h&&(g.id=h))}return s.CreateAutoException=function(e,n,o,c,d,h,g,C){var S=pp(d||h||e);return{message:cm(e,S),url:n,lineNumber:o,columnNumber:c,error:bT(d||h||e),evt:bT(h||e),typeName:S,stackDetails:ey(g||d||h),errorSrc:C}},s.CreateFromInterface=function(e,n,o,c){var d=n[U_]&&Xa(n[U_],function(g){return function rO(s,e){var n=vn(e[om])&&Xa(e[om],function(c){return function oO(s){var e;return Qs(((e={})[ap]=AT,e.level=s.level,e.method=s.method,e.assembly=s[H_],e.fileName=s[ic],e.line=s[Ql],e.sizeInBytes=0,e))}(c)})||e[om];return Cb(s,_s(_s({},e),{parsedStack:n}))}(e,g)});return new s(e,_s(_s({},n),{exceptions:d}),o,c)},s.prototype.toInterface=function(){var e=this,n=e.exceptions,o=e.properties,c=e.measurements,d=e.severityLevel,h=e.problemGroup,g=e.id,C=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&Xa(n,function(O){return O.toInterface()})||void 0,severityLevel:d,properties:o,measurements:c,problemGroup:h,id:g,isManual:C}},s.CreateSimpleException=function(e,n,o,c,d,h){var g;return{exceptions:[(g={},g[pT]=!0,g.message=e,g.stack=d,g.typeName=n,g)]}},s.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",s.dataType="ExceptionData",s.formatError=bT,s}(),nO=Dr({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function yb(){var s=this,e=vn(s[om])&&Xa(s[om],function(o){return function sO(s){return{level:s.level,method:s.method,assembly:s[H_],fileName:s[ic],line:s[Ql]}}(o)});return{id:s.id,outerId:s.outerId,typeName:s[sp],message:s[rm],hasFullStack:s[pT],stack:s[Ua],parsedStack:e||void 0}}function Cb(s,e,n){var o,h,g,C,S,O;if(function fp(s){try{if(An(s))return"hasFullStack"in s&&"typeName"in s}catch{}return!1}
1(e))h=e[sp],g=e[rm],S=e[Ua],O=e[om]||[],C=e[pT];else{var $=e,ae=$&&$.evt;Di($)||($=$[dp]||ae||$),h=ho(s,pp($))||ll,g=X_(s,cm(e||$,h))||ll;var q=e[Z_]||ey(e);O=function _b(s){var e,n=s.obj;if(n&&n[Sr]>0){e=[];var o=0,c=!1,d=0;if(Wt(n,function(le){if(c||function Ib(s){var e=!1;if(s&&Qt(s)){var n=Wr(s);n&&(e=am.test(n))}return e}(le)){var de=he(le);c=!0;var _e=function iO(s,e){var n,o;if(s&&Qt(s)&&Wr(s)){(n={})[ap]=AT,n.level=e,n.assembly=Wr(s),n.method=gb,n.fileName="",n.line=0,n.sizeInBytes=0,o=n;for(var c=0;c<Lf[Sr];){var d=Lf[c];if(d.chk&&!d.chk(s))break;d.pre&&(s=d.pre(s));var h=s[im](d.re);if(h&&h[Sr]>=d.len){d.m&&(o.method=Wr(h[d.m]||gb)),d.hdl?d.hdl(o,d,h):d.fn&&(d.ln?(o[ic]=Wr(h[d.fn]||""),o[Ql]=parseInt(Wr(h[d.ln]||""))||0):Eb(o,h[d.fn]||""));break}c++}}return Qs(o)}(de,o);_e&&(d+=_e[hT],e.push(_e),o++)}}),d>32768)for(var g=0,C=e[Sr]-1,S=0,O=g,$=C;g<C;){if((S+=e[g][hT]+e[C][hT])>32768){e.splice(O,$-O+1);break}O=g,$=C,g++,C--}}return e}(q),vn(O)&&Xa(O,function(ie){ie[H_]=ho(s,ie[H_]),ie[ic]=ho(s,ie[ic])}),S=function qM(s,e){var n;if(e){var o=""+e;o[Sr]>32768&&(n=ni(o,0,32768),In(s,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return n||e}(s,function ST(s){var e="";return s&&(e=s.obj?s.obj.join("\n"):s.src||""),e}(q)),C=vn(O)&&O[Sr]>0,n&&(n[sp]=n[sp]||h)}return(o={})[ap]=nO,o.id=void 0,o.outerId=void 0,o.typeName=h,o.message=g,o[pT]=C,o.stack=S,o.parsedStack=O,o.toInterface=yb,o}function Eb(s,e){var n=e[im](pb);if(n&&n[Sr]>=4)s[ic]=n[1],s[Ql]=parseInt(n[2]);else{var o=e[im](tO);o&&o[Sr]>=3?(s[ic]=o[1],s[Ql]=parseInt(o[2])):s[ic]=e}}function Tb(s,e,n){var o=s[ic];e.fn&&n&&n[Sr]>e.fn&&(e.ln&&n[Sr]>e.ln?(o=Wr(n[e.fn]||""),s[Ql]=parseInt(Wr(n[e.ln]||""))||0):o=Wr(n[e.fn]||"")),o&&Eb(s,o)}var AT=Dr({level:1,method:1,assembly:0,fileName:0,line:0});function Qs(s){var e=_T;return s&&(e+=s.method[Sr],e+=s.assembly[Sr],e+=s.fileName[Sr],e+=s.level.toString()[Sr],e+=s.line.toString()[Sr],s[hT]=e),s}function fl(){for(var n,s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=Hr,o=0;o<4;o++)e+=s[15&(n=Zu())]+s[n>>4&15]+s[n>>8&15]+s[n>>12&15]+s[n>>16&15]+s[n>>20&15]+s[n>>24&15]+s[n>>28&15];var c=s[8+(3&Zu())|0];return Bs(e,0,8)+Bs(e,9,4)+"4"+Bs(e,13,3)+c+Bs(e,16,3)+Bs(e,19,12)}var lm="00000000000000000000000000000000",ty="0000000000000000";function Pc(s,e,n){return!(!s||s[nr]!==e||s===n||!s.match(/^[\da-f]*$/i))}function Ab(s,e,n){return Pc(s,e)?s:n}function wb(s,e,n,o){return{version:Pc(o,2,"ff")?o:"00",traceId:MT(s)?s:fl(),spanId:ac(e)?e:Qi(fl(),16),traceFlags:n>=0&&n<=255?n:1}}function MT(s){return Pc(s,32,lm)}function ac(s){return Pc(s,16,ty)}function Ob(s){if(s){var e=function Db(s){(isNaN(s)||s<0||s>255)&&(s=1);for(var e=s.toString(16);e[nr]<2;)e="0"+e;return e}(s[b0]);Pc(e,2)||(e="01");var n=s[g_]||"00";return"00"!==n&&"ff"!==n&&(n="00"),"".concat(n.toLowerCase(),"-").concat(Ab(s.traceId,32,lm).toLowerCase(),"-").concat(Ab(s.spanId,16,ty).toLowerCase(),"-").concat(e.toLowerCase())}return""}var Ti=uT({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),ny=uo()||{},lO=0,Nb=[null,null,null,null,null];function um(s){var e=lO,n=Nb,o=n[e];return ny.createElement?n[e]||(o=n[e]=ny.createElement("a")):o={host:ru(s,!0)},o.href=s,++e>=n[Sr]&&(e=0),lO=e,o}function ru(s,e){var n=kb(s,e)||"";if(n){var o=n[im](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[Sr]>3&&Qt(o[2])&&o[2][Sr]>0)return o[2]+(o[3]||"")}return n}function kb(s,e){var n=null;if(s){var o=s[im](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=o&&o[Sr]>2&&Qt(o[2])&&o[2][Sr]>0&&(n=o[2]||"",e&&o[Sr]>2)){var c=(o[1]||"")[rp](),d=o[3]||"";("http"===c&&":80"===d||"https"===c&&":443"===d)&&(d=""),n+=d}}return n}var uO=[mT+Rf,"https://breeze.aimon.applicationinsights.io"+Rf,"https://dc-int.services.visualstudio.com"+Rf];function PT(s){return-1!==Li(uO,s[rp]())}function Ff(s,e,n){if(!e||s&&s.disableCorrelationHeaders)return!1;if(s&&s[ob])for(var o=0;o<s.correlationHeaderExcludePatterns[Sr];o++)if(s[ob][o].test(e))return!1;var c=um(e).host[rp]();if(c&&(-1!==zi(c,":443")||-1!==zi(c,":80"))&&(c=(kb(e,!0)||"")[rp]()),(!s||!s.enableCorsCorrelation)&&c&&c!==n)return!1;var h,d=s&&s.correlationHeaderDomains;if(d&&(Wt(d,function(S){var O=new RegExp(S.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));h=h||O.test(c)}),!h))return!1;var g=s&&s.correlationHeaderExcludedDomains;if(!g||0===g[Sr])return!0;for(o=0;o<g[Sr];o++)if(new RegExp(g[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(c))return!1;return c&&c[Sr]>0}function gp(s){if(s){var e=function kT(s,e){if(s)for(var n=s[np](","),o=0;o<n[Sr];++o){var c=n[o][np]("=");if(2===c[Sr]&&c[0]===e)return c[1]}}(s,Ti[1]);if(e&&"cid-v1:"!==e)return e}}function hm(){var s=$i();if(s&&s.now&&s.timing){var e=s.now()+s.timing.navigationStart;if(e>0)return e}return ji()}function Zs(s,e){var n=null;return 0!==s&&0!==e&&!Qe(s)&&!Qe(e)&&(n=e-s),n}function xT(s,e){var n=s||{};return{getName:function(){return n[cl]},setName:function(o){e&&e.setName(o),n[cl]=o},getTraceId:function(){return n.traceID},setTraceId:function(o){e&&e.setTraceId(o),MT(o)&&(n.traceID=o)},getSpanId:function(){return n.parentID},setSpanId:function(o){e&&e.setSpanId(o),ac(o)&&(n.parentID=o)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(o){e&&e.setTraceFlags(o),n.traceFlags=o}}}var Uf=function(){function s(e,n,o,c,d,h,g,C,S,O,$,ae){void 0===S&&(S="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var q=this;q.ver=2,q.id=n,q[sm]=dl(d),q.success=h,q.resultCode=g+"",q.type=ho(e,S);var ie=function fm(s,e,n,o){var c,d=o,h=o;if(e&&e[Sr]>0){var g=um(e);
1if(c=g.host,!d)if(null!=g[fT]){var C=0===g.pathname[Sr]?"/":g[fT];"/"!==C.charAt(0)&&(C="/"+C),h=g[fT],d=ho(s,n?n+" "+C:C)}else d=ho(s,e)}else c=o,d=o;return{target:c,name:d,data:h}}(e,o,C,c);q.data=Nf(e,c)||ie.data,q.target=ho(e,ie.target),O&&(q.target="".concat(q.target," | ").concat(O)),q[cl]=ho(e,ie[cl]),q[rc]=Pf(e,$),q[td]=tu(e,ae)}return s.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",s.dataType="RemoteDependencyData",s}();function pm(s){var e=null;if(Ht(Event))e=new Event(s);else{var n=uo();n&&n.createEvent&&(e=n.createEvent("Event")).initEvent(s,!0,!0)}return e}function fO(s,e,n){return!s&&Qe(s)?e:Vn(s)?s:"true"===he(s)[zs]()}function cc(s){return{mrg:!0,v:s}}function gm(s,e){return{set:s,v:e}}function iy(s,e,n){return{fb:n,isVal:s,v:e}}function es(s,e){return{fb:e,set:fO,v:!!s}}var LT,sd,lc,FT="toGMTString",oy="toUTCString",sy="cookie",Bf="expires",mp="isCookieUseDisabled",iu="disableCookiesUsage",ad="_ckMgr",ay=null,UT=null,mm=null,xb={},BT={},MP=((LT={cookieCfg:cc((sd={},sd[C_]={fb:"cookieDomain",dfVal:vf},sd.path={fb:"cookiePath",dfVal:vf},sd.enabled=Ks,sd.ignoreCookies=Ks,sd.blockedCookies=Ks,sd.disableCookieDefer=!1,sd)),cookieDomain:Ks,cookiePath:Ks})[iu]=Ks,LT);function HT(){!lc&&(lc=Zn(function(){return uo()}))}function VT(s){return!s||s.isEnabled()}function Lb(s,e){return!!(e&&s&&vn(s.ignoreCookies))&&-1!==Li(s.ignoreCookies,e)}function mO(s,e){return!!(e&&s&&vn(s.blockedCookies)&&-1!==Li(s.blockedCookies,e))||Lb(s,e)}function Fb(s,e){var n=e[$h];if(Qe(n)){var o=void 0;ke(s[mp])||(o=!s[mp]),ke(s[iu])||(o=!s[iu]),n=o}return n}function jT(s,e){var n;if(s)n=s.getCookieMgr();else if(e){var o=e.cookieCfg;n=o&&o[ad]?o[ad]:vm(e)}return n||(n=function gO(s,e){var n=vm[ad]||BT[ad];return n||(n=vm[ad]=vm(s,e),BT[ad]=n),n}(e,(s||{})[No])),n}function vm(s,e){var n,o,c,d,h,g,C,S,O=[];function $(de){var _e,Pe=((_e={})[GE]=de||"/",_e[Bf]="Thu, 01 Jan 1970 00:00:01 GMT",_e);
1return Yg()||(Pe["max-age"]="0"),ym(Hr,Pe)}function q(de){if(O)for(var _e=O[nr]-1;_e>=0;_e--)O[_e].n===de&&O[uf](_e,1)}s=La(s||BT,null,e).cfg,d=Yo(s,function(de){de.setDf(de.cfg,MP),n=de.ref(de.cfg,"cookieCfg"),o=n[GE]||"/",c=n[C_],n.disableCookieDefer?O=null:null===O&&(O=[]);var _e=h;h=!1!==Fb(s,n),g=n.getCookie||Ub,C=n.setCookie||_p,S=n.delCookie||_p,!_e&&h&&O&&function ie(){_m(e)&&O&&(Wt(O,function(de){mO(n,de.n)||(0===de.o?C(de.n,de.v):1===de.o&&S(de.n,de.v))}),O=[])}()},e);var le={isEnabled:function(){var de=!1!==Fb(s,n)&&h&&_m(e),_e=BT[ad];return de&&_e&&le!==_e&&(de=VT(_e)),de},setEnabled:function(de){n[$h]=de,ke(s[iu])||(s[iu]=!de)},set:function(de,_e,Pe,Ct,Dt){var Et=!1;if(!mO(n,de)){var It=function ae(de,_e,Pe,Ct){var Dt={},Et=Wr(de||Hr),zt=zi(Et,";");if(-1!==zt&&(Et=Wr(Qi(de,zt)),Dt=vp(ni(de,zt+1))),Wi(Dt,C_,Pe||c,no,ke),!Qe(_e)){var It=Yg();if(ke(Dt[Bf])){var qt=ji()+1e3*_e;if(qt>0){var $t=new Date;$t.setTime(qt),Wi(Dt,Bf,cy($t,It?FT:oy)||cy($t,It?FT:oy)||Hr,no)}}It||Wi(Dt,"max-age",Hr+_e,null,ke)}var an=Ys();return an&&"https:"===an.protocol&&(Wi(Dt,"secure",null,null,ke),null===UT&&(UT=!function Bb(s){return!!Qt(s)&&!!(Rs(s,"CPU iPhone OS 12")||Rs(s,"iPad; CPU OS 12")||Rs(s,"Macintosh; Intel Mac OS X 10_14")&&Rs(s,"Version/")&&Rs(s,"Safari")||Rs(s,"Macintosh; Intel Mac OS X 10_14")&&Oi(s,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Rs(s,"Chrome/5")||Rs(s,"Chrome/6")||Rs(s,"UnrealEngine")&&!Rs(s,"Chrome")||Rs(s,"UCBrowser/12")||Rs(s,"UCBrowser/11"))}((fi()||{})[LE])),UT&&Wi(Dt,"SameSite","None",null,ke)),Wi(Dt,GE,Ct||o,null,ke),ym(Et,Dt)}(_e,Pe,Ct,Dt);VT(le)?(C(de,It),Et=!0):O&&(q(de),O[Ur]({n:de,o:0,v:It}),Et=!0)}return Et},get:function(de){var _e=Hr;if(!Lb(n,de))if(VT(le))_e=g(de);else if(O)for(var Ct=O[nr]-1;Ct>=0;Ct--){var Dt=O[Ct];if(Dt.n===de){if(0===Dt.o){var Et=Dt.v,zt=zi(Et,";");_e=Wr(-1!==zt?Qi(Et,zt):Et)}break}}return _e},del:function(de,_e){var Pe=!1;return VT(le)?Pe=le.purge(de,_e):O&&(q(de),O[Ur]({n:de,o:1,v:$(_e)}),Pe=!0),Pe},purge:function(de,_e){var Pe=!1;return _m(e)&&(S(de,$(_e)),Pe=!0),Pe},unload:function(de){d&&d.rm(),d=null,O=null}};return le[ad]=le,le}function _m(s){if(null===ay){ay=!1,!lc&&HT();try{ay=void 0!==(lc.v||{})[sy]}catch(n){In(s,2,68,"Cannot access document.cookie - "+li(n),{exception:Ye(n)})}}return ay}function vp(s){var e={};return s&&s[nr]&&Wt(Wr(s)[Wu](";"),function(o){if(o=Wr(o||Hr)){var c=zi(o,"=");-1===c?e[o]=null:e[Wr(Qi(o,c))]=Wr(ni(o,c+1))}}),e}function cy(s,e){return Ht(s[e])?s[e]():null}function ym(s,e){var n=s||Hr;return Kt(e,function(o,c){n+="; "+o+(Qe(c)?Hr:"="+c)}),n}function Ub(s){var e=Hr;if(!lc&&HT(),lc.v){var n=lc.v[sy]||Hr;mm!==n&&(xb=vp(n),mm=n),e=Wr(xb[s]||Hr)}return e}function _p(s,e){!lc&&HT(),lc.v&&(lc.v[sy]=s+"="+e)}var Hb="on",yp="attachEvent",GT="addEventListener",Vb="detachEvent",$T="removeEventListener",ly="events",cd="visibilitychange",uy="pagehide",$b="beforeunload",zb=nc("aiEvtPageHide"),Cm=(nc("aiEvtPageShow"),/\.[\.]+/g),vO=/[\.]+$/,fy=1,ld=FM("events"),OP=/^([^.]*)(?:\.(.+)|)/;function Kb(s){return s&&s[pf]?s[pf](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Hr):s}function hy(s,e){if(e){var n=Hr;vn(e)?(n=Hr,Wt(e,function(c){(c=Kb(c))&&("."!==c[0]&&(c="."+c),n+=c)})):n=Kb(e),n&&("."!==n[0]&&(n="."+n),s=(s||Hr)+n)}var o=OP.exec(s||Hr)||[];return{type:o[1],ns:(o[2]||Hr).replace(Cm,".").replace(vO,Hr)[Wu](".").sort().join(".")}}function Yb(s,e,n){void 0===n&&(n=!0);var o=ld.get(s,ly,{},n),c=o[e];return c||(c=o[e]=[]),c}function zT(s,e,n,o){s&&e&&e[Kl]&&(s[$T]?s[$T](e[Kl],n,o):s[Vb]&&s[Vb](Hb+e[Kl],n))}function Xb(s,e,n,o){for(var c=e[nr];c--;){var d=e[c];d&&(!n.ns||n.ns===d[UE].ns)&&(!o||o(d))&&(zT(s,d[UE],d.handler,d.capture),e[uf](c,1))}}function hl(s,e){return e?hy("xx",vn(e)?[s].concat(e):[s,e]).ns[Wu]("."):s}function pl(s,e,n,o,c){void 0===c&&(c=!1);var d=!1;if(s)try{var h=hy(e,o);if(d=function _O(s,e,n,o){var c=!1;return s&&e&&e[Kl]&&n&&(s[GT]?(s[GT](e[Kl],n,o),c=!0):s[yp]&&(s[yp](Hb+e[Kl],n),c=!0)),c}(s,h,n,c),d&&ld.accept(s)){var g={guid:fy++,evtName:h,handler:n,capture:c};Yb(s,h.type)[Ur](g)}}catch{}return d}function uc(s,e,n,o,c){if(void 0===c&&(c=!1),s)try{var d=hy(e,o),h=!1;(function qb(s,e,n){if(e[Kl])Xb(s,Yb(s,e[Kl]),e,n);else{var o=ld.get(s,ly,{});Kt(o,function(c,d){Xb(s,d,e,n)}),0===Ln(o)[nr]&&ld.kill(s,ly)}})(s,d,function(g){return!((!d.ns||n)&&g.handler!==n||(h=!0,0))}),h||zT(s,d,n,c)}catch{}}function Hf(s,e,n,o){var c=!1;return e&&s&&s[nr]>0&&Wt(s,function(d){d&&(!n||-1===Li(n,d))&&(c=function Qb(s,e,n){var o=!1,c=Jr();c&&(o=pl(c,s,e,n),o=pl(c.body,s,e,n)||o);var d=uo();return d&&(o=pl(d,s,e,n)||o),o}(d,e,o)||c)}),c}function Em(s,e,n){s&&vn(s)&&Wt(s,function(o){o&&function yO(s,e,n){var o=Jr();o&&(uc(o,s,e,n),uc(o.body,s,e,n));var c=uo();c&&uc(c,s,e,n)}(o,e,n)})}function WT(s,e,n){var c=hl(zb,n),d=Hf([uy],s,e,c);
1return(!e||-1===Li(e,cd))&&(d=Hf([cd],function o(h){var g=uo();s&&g&&"hidden"===g.visibilityState&&s(h)},e,c)||d),!d&&e&&(d=WT(s,null,n)),d}var Tm="ctx",gy="ParentContextKey",_a="ChildrenContextKey",my=function(){function s(e,n,o){var d,c=this;c.start=ji(),c[Ku]=e,c.isAsync=o,c[v_]=function(){return!1},Ht(n)&&Qn(c,"payload",{g:function(){return!d&&Ht(n)&&(d=n(),n=null),d}}),c[Yu]=function(h){return h?h===s[gy]||h===s[_a]?c[h]:(c[Tm]||{})[h]:null},c[cs]=function(h,g){h&&(h===s[gy]?(c[h]||(c[v_]=function(){return!0}),c[h]=g):h===s[_a]?c[h]=g:(c[Tm]=c[Tm]||{})[h]=g)},c.complete=function(){var h=0,g=c[Yu](s[_a]);if(vn(g))for(var C=0;C<g[nr];C++){var S=g[C];S&&(h+=S.time)}c.time=ji()-c.start,c.exTime=c.time-h,c.complete=function(){}}}return s.ParentContextKey="parent",s.ChildrenContextKey="childEvts",s}(),PP=function(){function s(e){this.ctx={},Ki(s,this,function(n){n.create=function(o,c,d){return new my(o,c,d)},n.fire=function(o){o&&(o.complete(),e&&Ht(e[sl])&&e[sl](o))},n[cs]=function(o,c){o&&((n[Tm]=n[Tm]||{})[o]=c)},n[Yu]=function(o){return(n[Tm]||{})[o]}})}return s.__ieDyn=1,s}(),To="CoreUtils.doPerf";function vy(s,e,n,o,c){if(s){var d=s;if(d[y_]&&(d=d[y_]()),d){var h=void 0,g=d[Yu](To);try{if(h=d.create(e(),o,c)){if(g&&h[cs]&&(h[cs](my[gy],g),g[Yu]&&g[cs])){var C=g[Yu](my[_a]);C||g[cs](my[_a],C=[]),C[Ur](h)}return d[cs](To,h),n(h)}}catch(S){h&&h[cs]&&h[cs]("exception",S)}finally{h&&d.fire(h),d[cs](To,g)}}}return n()}var IO=FM("plugin");function ou(s){return IO.get(s,"state",{},!0)}function XT(s,e){for(var d,n=[],o=null,c=s[il]();c;){var h=c[Gh]();if(h){o&&o[Kh]&&h[ma]&&o[Kh](h);var g=!!(d=ou(h))[Ms];h[Ms]&&(g=h[Ms]()),g||n[Ur](h),o=h,c=c[il]()}}Wt(n,function(C){var S=s[ls]();C[jh](s.getCfg(),S,e,s[il]()),d=ou(C),!C[ls]&&!d[ls]&&(d[ls]=S),d[Ms]=!0,delete d[tl]})}function _y(s){return s.sort(function(e,n){var o=0;if(n){var c=n[ma];e[ma]?o=c?e[__]-n[__]:1:c&&(o=-1)}else o=e?1:-1;return o})}var AO="TelemetryPluginChain",ud="_hasRun",qT="_getTelCtx",yy=0;function Cy(s,e,n,o){var c=null,d=[];e||(e=La({},null,n[No])),null!==o&&(c=o?function DO(s,e,n){for(;s;){if(s[Gh]()===n)return s;s=s[il]()}return su([n],e.config||{},e)}(s,n,o):s);var h={_next:function C(){var q=c;return c=q?q[il]():null,q||d&&d[nr]>0&&(Wt(d,function(le){try{le.func.call(le.self,le.args)}catch(de){In(n[No],2,73,"Unexpected Exception during onComplete - "+Ye(de))}}),d=[]),q},ctx:{core:function(){return n},diagLog:function(){return al(n,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:function O(q,ie){var le=S(q,!0);return ie&&Kt(ie,function(de,_e){if(Qe(le[de])){var Pe=e.cfg[de];(Pe||!Qe(Pe))&&(le[de]=Pe)}M_(e,le,de,_e)}),e.setDf(le,ie)},getConfig:function $(q,ie,le){void 0===le&&(le=!1);var de,_e=S(q,!1),Pe=e.cfg;return!_e||!_e[ie]&&Qe(_e[ie])?(Pe[ie]||!Qe(Pe[ie]))&&(de=Pe[ie]):de=_e[ie],de||!Qe(de)?de:le},hasNext:function(){return!!c},getNext:function(){return c},setNext:function(q){c=q},iterate:function ae(q){for(var ie;ie=h._next();){var le=ie[Gh]();le&&q(le)}},onComplete:function g(q,ie){for(var le=[],de=2;de<arguments.length;de++)le[de-2]=arguments[de];q&&d[Ur]({func:q,self:ke(ie)?h.ctx:ie,args:le})}}};function S(q,ie){var le=null,de=e.cfg;if(de&&q){var _e=de[Yh];!_e&&ie&&(_e={}),de[Yh]=_e,(_e=e.ref(de,Yh))&&(!(le=_e[q])&&ie&&(le={}),_e[q]=le,le=e.ref(_e,q))}return le}return h}function Ba(s,e,n,o){var c=La(e),d=Cy(s,c,n,o),h=d.ctx;return h[Wo]=function g(S){var O=d._next();return O&&O[ma](S,h),!O},h[hf]=function C(S,O){return void 0===S&&(S=null),vn(S)&&(S=su(S,c.cfg,n,O)),Ba(S||h[il](),c.cfg,n,O)},h}function Im(s,e,n){var o=La(e.config),c=Cy(s,o,e,n),d=c.ctx;return d[Wo]=function h(C){var S=c._next();return S&&S[zl](d,C),!S},d[hf]=function g(C,S){return void 0===C&&(C=null),vn(C)&&(C=su(C,o.cfg,e,S)),Im(C||d[il](),e,S)},d}function Vf(s,e,n){var o=La(e.config),d=Cy(s,o,e,n).ctx;return d[Wo]=function h(C){return d.iterate(function(S){Ht(S[Lg])&&S[Lg](d,C)})},d[hf]=function g(C,S){return void 0===C&&(C=null),vn(C)&&(C=su(C,o.cfg,e,S)),Vf(C||d[il](),e,S)},d}function su(s,e,n,o){var c=null,d=!o;if(vn(s)&&s[nr]>0){var h=null;Wt(s,function(g){if(!d&&o===g&&(d=!0),d&&g&&Ht(g[ma])){var C=function dd(s,e,n){var h,o=null,c=Ht(s[ma]),d=Ht(s[Kh]),g={getPlugin:function(){return s},getNext:function(){return o},processTelemetry:function O(q,ie){S(ie=ie||function C(){var q;return s&&Ht(s[qT])&&(q=s[qT]()),q||(q=Ba(g,e,n)),q}(),function le(de){if(!s||!c)return!1;var _e=ou(s);return!_e[tl]&&!_e[tc]&&(d&&s[Kh](o),s[ma](q,de),!0)},"processTelemetry",function(){return{item:q}},!q.sync)||ie[Wo](q)},unload:function $(q,ie){S(q,function le(){var de=!1;if(s){var _e=ou(s),Pe=s[ls]||_e[ls];s&&(!Pe||Pe===q.core())&&!_e[tl]&&(_e[ls]=null,_e[tl]=!0,_e[Ms]=!1,s[tl]&&!0===s[tl](q,ie)&&(de=!0))}return de},"unload",function(){},ie.isAsync)||q[Wo](ie)},update:function ae(q,ie){S(q,function le(){var de=!1;if(s){var _e=ou(s),Pe=s[ls]||_e[ls];s&&(!Pe||Pe===q.core())&&!_e[tl]&&s[Lg]&&!0===s[Lg](q,ie)&&(de=!0)}return de},"update",function(){},!1)||q[Wo](ie)},_id:h=s?s[$l]+"-"+s[__]+"-"+yy++:"Unknown-0-"+yy++,_setNext:function(q){o=q}};function S(q,ie,le,de,_e){var Pe=!1,Ct=s?s[$l]:AO,Dt=q[ud];return Dt||(Dt=q[ud]={}),q.setNext(o),s&&vy(q[ls](),function(){return Ct+":"+le},function(){Dt[h]=!0;try{var Et=o?o._id:Hr;Et&&(Dt[Et]=!1),Pe=ie(q)}catch(It){var zt=!o||Dt[o._id];zt&&(Pe=!0),(!o||!zt)&&In(q[rl](),1,73,"Plugin ["+Ct+"] failed during "+le+" - "+Ye
1(It)+", run flags: "+Ye(Dt))}},de,_e),Pe}return Dr(g)}(g,e,n);c||(c=C),h&&h._setNext(C),h=C}})}return o&&!c?su([o],e,n):c}var ZT="_aiHooks",Cp=["req","rsp","hkErr","fnErr"];function Ey(s,e){if(s)for(var n=0;n<s[nr]&&!e(s[n],n);n++);}function JT(s,e,n,o,c){c>=0&&c<=2&&Ey(s,function(d,h){var g=d.cbks,C=g[Cp[c]];if(C){e.ctx=function(){return o[h]=o[h]||{}};try{C[el](e.inst,n)}catch($){var S=e.err;try{var O=g[Cp[2]];O&&(e.err=$,O[el](e.inst,n))}catch{}finally{e.err=S}}}})}function Ty(s,e,n,o){var c=null;return s&&(bi(s,e)?c=s:n&&(c=Ty(D0(s),e,o,!1))),c}function wO(s,e,n,o){var c=n&&n[ZT];if(!c){var d=function eI(s){return function(){var n=arguments,o=s.h,c={name:s.n,inst:this,ctx:null,set:function C(O,$){(n=g([],n))[O]=$,h=g([c],n)}},d=[],h=g([c],n);function g(O,$){return Ey($,function(ae){O[Ur](ae)}),O}c.evt=qr("event"),JT(o,c,h,d,0);var S=s.f;if(S)try{c.rslt=S[el](this,n)}catch(O){throw c.err=O,JT(o,c,h,d,3),O}return JT(o,c,h,d,1),c.rslt}}(c={i:0,n:e,f:n,h:[]});d[ZT]=c,s[e]=d}var h={id:c.i,cbks:o,rm:function(){var g=this.id;Ey(c.h,function(C,S){if(C.id===g)return c.h[uf](S,1),1})}};return c.i++,c.h[Ur](h),h}function jf(s,e,n,o,c){if(void 0===o&&(o=!0),s&&e&&n){var d=Ty(s,e,o,c);if(d){var h=d[e];if(typeof h===C0)return wO(d,e,h,n)}}return null}function Sm(s,e,n,o,c){if(s&&e&&n){var d=Ty(s,e,o,c)||s;if(d)return wO(d,e,d[e],n)}return null}function nA(){var s=[];return{add:function e(o){o&&s[Ur](o)},run:function n(o,c){Wt(s,function(d){try{d(o,c)}catch(h){In(o[rl](),2,73,"Unexpected error calling unload handler - "+Ye(h))}}),s=[]}}}function rA(){var s=[];return{run:function e(o){var c=s;s=[],Wt(c,function(d){try{(d.rm||d.remove).call(d)}catch(h){In(o,2,73,"Unloading:"+Ye(h))}})},add:function n(o){o&&Ra(s,o)}}}var tI,pd="getPlugin",MO=((tI={})[Yh]={isVal:vf,v:{}},tI),Ep=function(){function s(){var n,o,c,d,h,e=this;function g(O){void 0===O&&(O=null);var $=O;$||($=(o||Ba(null,{},e[ls]))[hf](null,c&&c[pd]?c[pd]:c));return $}function C(O,$,ae){La(O,MO,al($)),!ae&&$&&(ae=$[ff]()[il]());var q=c;c&&c[pd]&&(q=c[pd]()),e[ls]=$,o=Ba(ae,O,$,q)}function S(){n=!1,e[ls]=null,o=null,c=null,h=rA(),d=nA()}S(),Ki(s,e,function(O){O[jh]=function($,ae,q,ie){C($,ae,ie),n=!0},O[tl]=function($,ae){var q=O[ls];if(q&&(!$||q===$[ls]())){var ie,le=!1,de=$||Im(null,q,c&&c[pd]?c[pd]():c),_e=ae||{reason:0,isAsync:!1};return O[m_]&&!0===O[m_](de,_e,Pe)?ie=!0:Pe(),ie}function Pe(){le||(le=!0,d.run(de,ae),h.run(de[rl]()),!0===ie&&de[Wo](_e),S())}},O[Lg]=function($,ae){var q=O[ls];if(q&&(!$||q===$[ls]())){var ie,le=!1,de=$||Vf(null,q,c&&c[pd]?c[pd]():c);return O._doUpdate&&!0===O._doUpdate(de,ae||{reason:0},Pe)?ie=!0:Pe(),ie}function Pe(){le||(le=!0,C(de.getCfg(),de.core(),de[il]()))}},Gg(O,"_addUnloadCb",function(){return d},"add"),Gg(O,"_addHook",function(){return h},"add"),Qn(O,"_unloadHooks",{g:function(){return h}})}),e[rl]=function(O){return g(O)[rl]()},e[Ms]=function(){return n},e.setInitialized=function(O){n=O},e[Kh]=function(O){c=O},e[Wo]=function(O,$){$?$[Wo](O):c&&Ht(c[ma])&&c[ma](O,null)},e._getTelCtx=g}return s.__ieDyn=1,s}(),Sy="toString",nI="isStorageUseDisabled",cu="_addHook",oi="core",gd="dataType",md="envelopeType",ya="diagLog",lu="track",bm="trackPageView",dc="config",by="trackPreviousPageVisit",uu="sendPageViewInternal",Ay="refUri",Gf="startTime",Am="properties",gl="duration",rI="sendPageViewPerformanceInternal",Dm="populatePageViewPerformanceEvent",vd="href",iI="sendExceptionInternal",$f="error",wm="lineNumber",oI="columnNumber",sI="CreateAutoException",Dy="addTelemetryInitializer",wy="autoExceptionInstrumented",My="autoTrackPageVisitTime",Oy="isBrowserLinkTrackingEnabled",Tp="length",aI="enableAutoRouteTracking",cI="enableUnhandledPromiseRejectionTracking",lI="autoUnhandledPromiseInstrumented",Ry="getEntriesByType",iA="isPerformanceTimingSupported",Ny="getPerformanceTiming",Mm="navigationStart",Py="shouldCollectDuration",RO="isPerformanceTimingDataReady",ky="responseStart",Om="loadEventEnd",xy="responseEnd",Ip="connectEnd",sA=function(){function s(e,n,o,c){Ki(s,this,function(d){var O,h=null,g=[],C=!1,S=!1;function $(ie){o&&o.flush(ie,function(){})}function ae(){h||(h=ec(function(){h=null;
1var ie=g.slice(0),le=!1;g=[],Wt(ie,function(de){de()?le=!0:g.push(de)}),g[Tp]>0&&ae(),le&&$(!0)},100))}function q(ie){g.push(ie),ae()}o&&(O=o.logger),d[bm]=function(ie,le){var de=ie.name;if(Qe(de)||"string"!=typeof de){var _e=uo();de=ie.name=_e&&_e.title||""}var Pe=ie.uri;if(Qe(Pe)||"string"!=typeof Pe){var Ct=Ys();Pe=ie.uri=Ct&&Ct[vd]||""}if(o&&o[dc]&&(Pe=ie.uri=Oc(ie.uri,o[dc])),!S){var Dt=$i(),Et=Dt&&Dt[Ry]&&Dt[Ry]("navigation");if(Et&&Et[0]&&!ke(Dt.timeOrigin))ie[Gf]=new Date(Dt.timeOrigin+Et[0].loadEventStart);else{var It=(le||ie[Am]||{})[gl]||0;ie[Gf]=new Date((new Date).getTime()-It)}S=!0}if(!c[iA]())return e[uu](ie,le),$(!0),void(Ya()||In(O,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var qt,an,qe=!1,$t=c[Ny]()[Mm];$t>0&&(qt=Zs($t,+new Date),c[Py](qt)||(qt=void 0)),!Qe(le)&&!Qe(le[gl])&&(an=le[gl]),(n||!isNaN(an))&&(isNaN(an)&&(le||(le={}),le[gl]=qt),e[uu](ie,le),$(!0),qe=!0),le||(le={}),q(function(){var zn=!1;try{if(c[RO]()){zn=!0;var Ue={name:de,uri:Pe};c[Dm](Ue),Ue.isValid||qe?(qe||(le[gl]=Ue.durationMs,e[uu](ie,le)),C||(e[rI](Ue,le),C=!0)):(le[gl]=qt,e[uu](ie,le))}else $t>0&&Zs($t,+new Date)>6e4&&(zn=!0,qe||(le[gl]=6e4,e[uu](ie,le)))}catch(gt){In(O,1,38,"trackPageView failed on page load calculation: "+li(gt),{exception:Ye(gt)})}return zn})},d.teardown=function(ie,le){if(h){h.cancel(),h=null;var de=g.slice(0);g=[],Wt(de,function(Pe){Pe()})}}})}return s.__ieDyn=1,s}(),uI=["googlebot","adsbot-google","apis-google","mediapartners-google"];function dI(){var s=$i();return s&&!!s.timing}function xP(){var s=$i(),e=s?s.timing:0;return e&&e.domainLookupStart>0&&e[Mm]>0&&e[ky]>0&&e.requestStart>0&&e[Om]>0&&e[xy]>0&&e[Ip]>0&&e.domLoading>0}function PO(){return dI()?$i().timing:null}function FP(){for(var s=[],e=0;e<arguments.length;e++)s[e]=arguments[e];var o=(fi()||{}).userAgent,c=!1;if(o)for(var d=0;d<uI[Tp];d++)c=c||-1!==zi(o.toLowerCase(),uI[d]);if(c)return!1;for(d=0;d<s[Tp];d++)if(s[d]<0||s[d]>=36e5)return!1;return!0}var Ns,UP=function(){function s(e){var n=al(e);Ki(s,this,function(o){o[Dm]=function(c){c.isValid=!1;var d=function LP(){return function NO(){var s=$i();return s&&s.getEntriesByType&&s.getEntriesByType("navigation")[Tp]>0}()?$i()[Ry]("navigation")[0]:null}(),h=PO(),g=0,C=0,S=0,O=0,$=0;(d||h)&&(d?(g=d[gl],C=0===d[Gf]?d[Ip]:Zs(d[Gf],d[Ip]),S=Zs(d.requestStart,d[ky]),O=Zs(d[ky],d[xy]),$=Zs(d.responseEnd,d[Om])):(g=Zs(h[Mm],h[Om]),C=Zs(h[Mm],h[Ip]),S=Zs(h.requestStart,h[ky]),O=Zs(h[ky],h[xy]),$=Zs(h.responseEnd,h[Om])),0===g?In(n,2,10,"error calculating page view performance.",{total:g,network:C,request:S,response:O,dom:$}):o[Py](g,C,S,O,$)?g<Ci(C)+Ci(S)+Ci(O)+Ci($)?In(n,2,8,"client performance math error.",{total:g,network:C,request:S,response:O,dom:$}):(c.durationMs=g,c.perfTotal=c[gl]=dl(g),c.networkConnect=dl(C),c.sentRequest=dl(S),c.receivedResponse=dl(O),c.domProcessing=dl($),c.isValid=!0):In(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:g,network:C,request:S,response:O,dom:$}))},o[Ny]=PO,o[iA]=dI,o[RO]=xP,o[Py]=FP})}return s.__ieDyn=1,s}(),BP=function(){function s(e,n){var o="prevPageVisitData";Ki(s,this,function(c){c[by]=function(g,C){try{var S=function d(g,C){var S=null;try{if(S=function h(){var g=null;try{if(Mf()){var C=ji(),S=cp(e,o);S&&Cf()&&((g=Xs().parse(S)).pageVisitTime=C-g.pageVisitStartTime,z_(e,o))}}catch(O){Fa(e,"Stop page visit timer failed: "+Ye(O)),g=null}return g}(),Mf()){null!=cp(e,o)&&cn("Cannot call startPageVisit consecutively without first calling stopPageVisit");var O=Xs().stringify(new HP(g,C));$_(e,o,O)}}catch($){Fa(e,"Call to restart failed: "+Ye($)),S=null}return S}(g,C);S&&n(S.pageName,S.pageUrl,S.pageVisitTime)}catch(O){Fa(e,"Auto track page visit time failed, metric will not be collected: "+Ye(O))}},Qn(c,"_logger",{g:function(){return e}}),Qn(c,"pageVisitTimeTrackingHandler",{g:function(){return n}})})}return s.__ieDyn=1,s}(),HP=function(){return function s(e,n){this.pageVisitStartTime=ji(),this.pageName=e,this.pageUrl=n}}(),kO=function(){return function s(e,n){var o=this,c={};o.start=function(d){typeof c[d]<"u"&&In(e,2,62,"start was called more than once for this event without calling stop.",{name:d,key:d},!0),c[d]=+new Date},o.stop=function(d,h,g,C){var S=c[d];if(isNaN(S))In(e,2,63,"stop was called without a corresponding start.",{name:d,key:d},!0);else{var $=Zs(S,+new Date);o.action(d,h,$,g,C)}delete c[d],c[d]=void 0}}}();function Ly(s,e){s&&s.dispatchEvent&&e&&s.dispatchEvent(e)}var jP=mr(((Ns={sessionRenewalMs:gm(LO,18e5),sessionExpirationMs:gm(LO,864e5),disableExceptionTracking:es()})[My]=es(),Ns.overridePageViewDuration=es(),Ns[cI]=es(),Ns[lI]=!1,Ns.samplingPercentage=iy(function GP(s){return!isNaN(s)&&s>0&&s<=100},100),Ns[nI]=es(),Ns[Oy]=es(),Ns[aI]=es(),Ns.namePrefix=function hO(s){return{isVal:Qt,v:he(s||Hr)}}(),Ns.enableDebug=es(),Ns.disableFlushOnBeforeUnload=es(),Ns.disableFlushOnUnload=es(!1,"disableFlushOnBeforeUnload"),Ns.expCfg=cc({inclScripts:!1,expLog:void 0,maxLogs:50}),Ns));function LO(s,e){return(s=s||e)<6e4&&(s=6e4),+s}var zP=function(s){function e(){var o,c,d,h,g,C,S,O,$,ae,q,ie,le,de,_e,Pe,Ct,Dt,Et,zt,It,n=s.
1call(this)||this;return n.identifier=W_,n.priority=180,n.autoRoutePVDelay=500,Ki(e,n,function(qe,qt){var $t=qt[cu];function an(){if(qe[oi]){var Ve=qe[oi].getPlugin("AjaxDependencyPlugin");Ve&&Ve.plugin&&Ve.plugin.resetAjaxAttempts&&Ve.plugin.resetAjaxAttempts()}}function Un(Ve,Oe,Mt,mn,Tn){qe[ya]().throwInternal(Ve,Oe,Mt,mn,Tn)}function Bt(){o=null,c=null,d=null,h=null,g=null,C=null,S=!1,O=!1,$=!1,ae=!1,q=!1,ie=!1,le=!1,de=!1,Pe=!1,an();var Ve=Ys(!0);Dt=Ve&&Ve[vd]||"",qe[oi]&&qe[oi][dc]&&(Dt=Oc(Dt,qe[oi][dc])),Et=null,zt=null,_e=null,It=0,Qn(qe,"config",{g:function(){return _e}})}Bt(),qe.getCookieMgr=function(){return jT(qe[oi])},qe.processTelemetry=function(Ve,Oe){qe.processNext(Ve,Oe)},qe.trackEvent=function(Ve,Oe){try{var Mt=ul(Ve,kf[gd],kf[md],qe[ya](),Oe);qe[oi][lu](Mt)}catch(mn){Un(2,39,"trackTrace failed, trace will not be collected: "+li(mn),{exception:Ye(mn)})}},qe.startTrackEvent=function(Ve){try{o.start(Ve)}catch(Oe){Un(1,29,"startTrackEvent failed, event will not be collected: "+li(Oe),{exception:Ye(Oe)})}},qe.stopTrackEvent=function(Ve,Oe,Mt){try{o.stop(Ve,void 0,Oe,Mt)}catch(mn){Un(1,30,"stopTrackEvent failed, event will not be collected: "+li(mn),{exception:Ye(mn)})}},qe.trackTrace=function(Ve,Oe){try{var Mt=ul(Ve,nu[gd],nu[md],qe[ya](),Oe);qe[oi][lu](Mt)}catch(mn){Un(2,39,"trackTrace failed, trace will not be collected: "+li(mn),{exception:Ye(mn)})}},qe.trackMetric=function(Ve,Oe){try{var Mt=ul(Ve,id[gd],id[md],qe[ya](),Oe);qe[oi][lu](Mt)}catch(mn){Un(1,36,"trackMetric failed, metric will not be collected: "+li(mn),{exception:Ye(mn)})}},qe[bm]=function(Ve,Oe){try{var Mt=Ve||{};qe[oi]&&qe[oi][dc]&&(Mt.uri=Oc(Mt.uri,qe[oi][dc])),d[bm](Mt,_s(_s(_s({},Mt.properties),Mt.measurements),Oe)),Pe&&g[by](Mt.name,Mt.uri)}catch(mn){Un(1,37,"trackPageView failed, page view will not be collected: "+li(mn),{exception:Ye(mn)})}},qe[uu]=function(Ve,Oe,Mt){var mn=uo();if(mn&&(Ve[Ay]=void 0===Ve[Ay]?mn.referrer:Ve[Ay]),qe[oi]&&qe[oi][dc]&&(Ve.refUri=Oc(Ve.refUri,qe[oi][dc])),Qe(Ve[Gf])){var Tn=(Oe||Ve[Am]||{})[gl]||0;Ve[Gf]=new Date((new Date).getTime()-Tn)}var pr=ul(Ve,oc[gd],oc[md],qe[ya](),Oe,Mt);qe[oi][lu](pr),an()},qe[rI]=function(Ve,Oe,Mt){var mn=ul(Ve,xf[gd],xf[md],qe[ya](),Oe,Mt);qe[oi][lu](mn)},qe.trackPageViewPerformance=function(Ve,Oe){var Mt=Ve||{};try{h[Dm](Mt),qe[rI](Mt,Oe)}catch(mn){Un(1,37,"trackPageViewPerformance failed, page view will not be collected: "+li(mn),{exception:Ye(mn)})}},qe.startTrackPage=function(Ve){try{if("string"!=typeof Ve){var Oe=uo();Ve=Oe&&Oe.title||""}c.start(Ve)}catch(Mt){Un(1,31,"startTrackPage failed, page view may not be collected: "+li(Mt),{exception:Ye(Mt)})}},qe.stopTrackPage=function(Ve,Oe,Mt,mn){try{if("string"!=typeof Ve){var Tn=uo();Ve=Tn&&Tn.title||""}if("string"!=typeof Oe){var pr=Ys();Oe=pr&&pr[vd]||""}qe[oi]&&qe[oi][dc]&&(Oe=Oc(Oe,qe[oi][dc])),c.stop(Ve,Oe,Mt,mn),Pe&&g[by](Ve,Oe)}catch(or){Un(1,32,"stopTrackPage failed, page view will not be collected: "+li(or),{exception:Ye(or)})}},qe[iI]=function(Ve,Oe,Mt){var mn=Ve&&(Ve.exception||Ve[$f])||Di(Ve)&&Ve||{name:Ve&&typeof Ve,message:Ve||ll};Ve=Ve||{};var Tn=new sc(qe[ya](),mn,Ve[Am]||Oe,Ve.measurements,Ve.severityLevel,Ve.id).toInterface(),pr=uo();if(pr&&Ct?.inclScripts){var or=function Rb(s){var e=s.getElementsByTagName("script"),n=[];return Wt(e,function(o){var c=o[HE]("src");if(c){var d=o[HE]("crossorigin"),h=!0===o.hasAttribute("async"),g=!0===o.hasAttribute("defer"),C=o[HE]("referrerpolicy"),S={url:c};d&&(S.crossOrigin=d),h&&(S.async=h),g&&(S.defer=g),C&&(S.referrerPolicy=C),n[Ur](S)}}),n}(pr);Tn[Am].exceptionScripts=JSON.stringify(or)}if(Ct?.expLog){var xr=Ct.expLog();xr&&xr.logs&&vn(xr.logs)&&(Tn[Am].exceptionLog=xr.logs.slice(0,Ct.maxLogs).join("\n"))}var ai=ul(Tn,sc[gd],sc[md],qe[ya](),Oe,Mt);qe[oi][lu](ai)},qe.trackException=function(Ve,Oe){Ve&&!Ve.exception&&Ve[$f]&&(Ve.exception=Ve[$f]);try{qe[iI](Ve,Oe)}catch(Mt){Un(1,35,"trackException failed, exception will not be collected: "+li(Mt),{exception:Ye(Mt)})}},qe._onerror=function(Ve){var Oe=Ve&&Ve[$f],Mt=Ve&&Ve.evt;try{if(!Mt){var mn=Jr();mn&&(Mt=mn.event)}var Tn=Ve&&Ve.url||(uo()||{}).URL,pr=Ve.errorSrc||"window.onerror@"+Tn+":"+(Ve[wm]||0)+":"+(Ve[oI]||0),or={errorSrc:pr,url:Tn,lineNumber:Ve[wm]||0,columnNumber:Ve[oI]||0,message:Ve.message};
1!function q_(s,e,n,o,c){return!c&&Qt(s)&&("Script error."===s||"Script error"===s)}(Ve.message,0,0,0,Ve[$f])?(Ve.errorSrc||(Ve.errorSrc=pr),qe.trackException({exception:Ve,severityLevel:3},or)):function gt(Ve,Oe){var Mt=ul(Ve,sc[gd],sc[md],qe[ya](),Oe);qe[oi][lu](Mt)}(sc[sI]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",Tn,Ve[wm]||0,Ve[oI]||0,Oe,Mt,null,pr),or)}catch(ai){var xr=Oe?Oe.name+", "+Oe.message:"null";Un(1,11,"_onError threw exception while logging error, error will not be collected: "+li(ai),{exception:Ye(ai),errorString:xr})}},qe[Dy]=function(Ve){if(qe[oi])return qe[oi][Dy](Ve);C||(C=[]),C.push(Ve)},qe.initialize=function(Ve,Oe,Mt,mn){if(!qe.isInitialized()){Qe(Oe)&&cn("Error initializing"),qt.initialize(Ve,Oe,Mt,mn);try{zt=hl(nc(qe.identifier),Oe.evtNamespace&&Oe.evtNamespace()),C&&(Wt(C,function(Tn){Oe[Dy](Tn)}),C=null),function Pn(Ve){var Oe=qe.identifier,Mt=qe[oi];qe[cu](Yo(Ve,function(){var mn=Ba(null,Ve,Mt);_e=mn.getExtCfg(Oe,jP),ie=ie||Ve[wy]||_e[wy],Ct=_e.expCfg,Pe=_e[My],Ve.storagePrefix&&j_(Ve.storagePrefix),function $P(s){ke(s[nI])||(s[nI]?function Nc(){Zl=!1,Jl=!1}():function SP(){Zl=G_(!0),Jl=Mf(!0)}())}(_e),S=_e[Oy],function Ue(){if(!O&&S){var Ve=["/browserLinkSignalR/","/__browserLink/"];qe[cu](qe[Dy](function(Mt){if(S&&Mt.baseType===Uf[gd]){var mn=Mt.baseData;if(mn)for(var Tn=0;Tn<Ve[Tp];Tn++)if(mn.target&&zi(mn.target,Ve[Tn])>=0)return!1}return!0})),O=!0}}()}))}(Ve),h=new UP(qe[oi]),d=new sA(qe,_e.overridePageViewDuration,qe[oi],h),g=new BP(qe[ya](),function(Tn,pr,or){return function zn(Ve,Oe,Mt){qe.trackMetric({name:"PageVisitTime",average:Mt,max:Mt,min:Mt,sampleCount:1},{PageName:Ve,PageUrl:Oe})}(Tn,pr,or)}),(o=new kO(qe[ya](),"trackEvent")).action=function(Tn,pr,or,xr,ai){xr||(xr={}),ai||(ai={}),xr.duration=or[Sy](),qe.trackEvent({name:Tn,properties:xr,measurements:ai})},(c=new kO(qe[ya](),"trackPageView")).action=function(Tn,pr,or,xr,ai){Qe(xr)&&(xr={}),xr.duration=or[Sy](),qe[uu]({name:Tn,uri:pr,properties:xr,measurements:ai},xr)},Oa()&&(function ct(){var Ve=Jr(),Oe=Ys(!0);qe[cu](Yo(_e,function(){!(q=_e.disableExceptionTracking)&&!ie&&!_e[wy]&&($t(Sm(Ve,"onerror",{ns:zt,rsp:function(Mt,mn,Tn,pr,or,xr){!q&&!0!==Mt.rslt&&qe._onerror(sc[sI](mn,Tn,pr,or,xr,Mt.evt))}},!1)),It++,ie=!0)})),function Bn(Ve,Oe){qe[cu](Yo(_e,function(){ie=ie||_e[lI],(le=!0===_e[cI])&&!de&&($t(Sm(Ve,"onunhandledrejection",{ns:zt,rsp:function(Mt,mn){le&&!0!==Mt.rslt&&qe._onerror(sc[sI](function VP(s){if(s&&s.reason){var e=s.reason;return!Qt(e)&&Ht(e[Sy])?e[Sy]():Ye(e)}return s||""}(mn),Oe?Oe[vd]:"",0,0,mn,Mt.evt))}},!1)),It++,_e[lI]=de=!0)}))}(Ve,Oe)}(),function Je(){var Ve=Jr(),Oe=Ys(!0);qe[cu](Yo(_e,function(){if($=!0===_e[aI],Ve&&$&&!ae&&$c()){var Mt=$o();Ht(Mt.pushState)&&Ht(Mt.replaceState)&&typeof Event!==a_&&function dn(Ve,Oe,Mt){if(!ae){var mn=_e.namePrefix||"";$t(Sm(Oe,"pushState",{ns:zt,rsp:function(){$&&(Ly(Ve,pm(mn+"pushState")),Ly(Ve,pm(mn+"locationchange")))}},!0)),$t(Sm(Oe,"replaceState",{ns:zt,rsp:function(){$&&(Ly(Ve,pm(mn+"replaceState")),Ly(Ve,pm(mn+"locationchange")))}},!0)),pl(Ve,mn+"popstate",function Tn(){$&&Ly(Ve,pm(mn+"locationchange"))},zt),pl(Ve,mn+"locationchange",function pr(){if(Et&&(Dt=Et),Et=Mt&&Mt[vd]||"",qe[oi]&&qe[oi][dc]&&(Et=Oc(Et,qe[oi][dc])),$){var or=function Xe(){var Ve=null;if(qe[oi]&&qe[oi].getTraceCtx&&(Ve=qe[oi].getTraceCtx(!1)),!Ve){var Oe=qe[oi].getPlugin(K_);if(Oe){var Mt=Oe.plugin.context;Mt&&(Ve=xT(Mt.telemetryTrace))}}return Ve}();if(or){or.setTraceId(fl());var xr="_unknown_";Mt&&Mt.pathname&&(xr=Mt.pathname+(Mt.hash||"")),or.setName(ho(qe[ya](),xr))}ec(function(ai){qe[bm]({refUri:ai,properties:{duration:0}})}.bind(qe,Dt),qe.autoRoutePVDelay)}},zt),ae=!0}}(Ve,Mt,Oe)}}))}())}catch(Tn){throw qe.setInitialized(!1),Tn}}},qe._doTeardown=function(Ve,Oe){d&&d.teardown(Ve,Oe),uc(window,null,null,zt),Bt()},qe._getDbgPlgTargets=function(){return[It,ie]},Qn(qe,"_pageViewManager",{g:function(){return d}}),Qn(qe,"_pageViewPerformanceManager",{g:function(){return h}}),Qn(qe,"_pageVisitTimeManager",{g:function(){return g}}),Qn(qe,"_evtNamespace",{g:function(){return"."+zt}})}),n}
1return Gl(e,s),e.Version="3.3.10",e}(Ep),Fy="Promise",hI="rejected";function Ps(s,e){return ml(s,function(n){return e?e({status:"fulfilled",rejected:!1,value:n}):n},function(n){return e?e({status:hI,rejected:!0,reason:n}):n})}function ml(s,e,n,o){var c=s;try{if(mi(s))(e||n)&&(c=s.then(e,n));else try{e&&(c=e(s))}catch(d){if(!n)throw d;c=n(d)}}finally{o&&function lA(s,e){var n=s;return e&&(mi(s)?n=s.finally?s.finally(e):s.then(function(o){return e(),o},function(o){throw e(),o}):e()),n}(c,o)}return c}var pI,gI,mI,Rm,Ap=!1,vI=["pending","resolving","resolved",hI],FO="dispatchEvent";function WP(s){var e;return s&&s.createEvent&&(e=s.createEvent("Event")),!!e&&e.initEvent}var EI,Wf,_o,Yf,_I="unhandledRejection",yI=_I.toLowerCase(),Nm=[],BO=0,Uy=10;function dA(s){return Ht(s)?s.toString():Ye(s)}function TI(s,e,n){var h,ae,o=Dc(arguments,3),c=0,d=!1,g=[],C=BO++,S=Nm.length>0?Nm[Nm.length-1]:void 0,O=!1,$=null;function q(Et,zt){try{return Nm.push(C),O=!0,$&&$.cancel(),$=null,s(function(qe,qt){g.push(function(){try{var $t=2===c?Et:zt,an=ke($t)?h:Ht($t)?$t(h):$t;mi(an)?an.then(qe,qt):$t?qe(an):3===c?qt(an):qe(an)}catch(Pn){qt(Pn)}}),d&&_e()},o)}finally{Nm.pop()}}function de(){return vI[c]}function _e(){if(g.length>0){var Et=g.slice();g=[],O=!0,$&&$.cancel(),$=null,e(Et)}}function Pe(Et,zt){return function(It){if(c===zt){if(2===Et&&mi(It))return c=1,void It.then(Pe(2,1),Pe(3,1));c=Et,d=!0,h=It,_e(),!O&&3===Et&&!$&&($=ec(Ct,Uy))}}}function Ct(){if(!O)if(O=!0,Wa())process.emit(_I,h,ae);else{var Et=Jr()||yi();!EI&&(EI=ri(fn(qr,[Fy+"RejectionEvent"]).v)),function UO(s,e,n,o){var c=uo();!Rm&&(Rm=ri(!!fn(WP,[c]).v));var d=Rm.v?c.createEvent("Event"):o?new Event(e):{};if(n&&n(d),Rm.v&&d.initEvent(e,!1,!0),d&&s[FO])s[FO](d);else{var h=s["on"+e];if(h)h(d);else{var g=qr("console");g&&(g.error||g.log)(e,Ye(d))}}}(Et,yI,function(zt){return Qn(zt,"promise",{g:function(){return ae}}),zt.reason=h,zt},!!EI.v)}}return xt(ae={then:q,catch:function ie(Et){return q(void 0,Et)},finally:function le(Et){var zt=Et,It=Et;return Ht(Et)&&(zt=function(qe){return Et&&Et(),qe},It=function(qe){throw Et&&Et(),qe}),q(zt,It)}},"state",{get:de}),Ap&&function uA(s,e,n,o){gI=gI||{toString:function(){return"[[PromiseResult]]"}},mI=mI||{toString:function(){return"[[PromiseIsHandled]]"}};var c={};c[pI=pI||{toString:function(){return"[[PromiseState]]"}}]={get:e},c[gI]={get:n},c[mI]={get:o},Nn(s,c)}(ae,de,function(){return ce(h)},function(){return O}),M()&&(ae[we(11)]="IPromise"),ae.toString=function Dt(){return"IPromise"+(Ap?"["+C+(ke(S)?"":":"+S)+"]":"")+" "+de()+(d?" - "+dA(h):"")},function(){Ht(n)||kn(Fy+": executor is not a function - "+dA(n));var zt=Pe(3,0);try{n.call(ae,Pe(2,0),zt)}catch(It){zt(It)}}(),ae}function hA(s){return function(e){var n=Dc(arguments,1);return s(function(o,c){try{var d=[],h=1;la(e,function(g,C){g&&(h++,ml(g,function(S){d[C]=S,0==--h&&o(d)},c))}),0==--h&&o(d)}catch(g){c(g)}},n)}}function Dp(s){return ri(function(e){var n=Dc(arguments,1);return s(function(o,c){var d=[],h=1;function g(C,S){h++,Ps(C,function(O){d[S]=O.rejected?{status:hI,reason:O.reason}:{status:"fulfilled",value:O.value},0==--h&&o(d)})}try{vn(e)?Wt(e,g):fo(e)?la(e,g):kn("Input is not an iterable"),0==--h&&o(d)}catch(C){c(C)}},n)})}function Hy(s){Wt(s,function(e){try{e()}catch{}})}function Kf(s,e){return TI(Kf,function pA(s){var e=_t(s)?s:0;return function(n){ec(function(){Hy(n)},e)}}(e),s,e)}function du(s,e){!Wf&&(Wf=ri(fn(qr,[Fy]).v||null));var n=Wf.v;if(!n)return Kf(s);Ht(s)||kn(Fy+": executor is not a function - "+Ye(s));var o=0,d=new n(function(h,g){s(function C(O){o=2,h(O)},function S(O){o=3,g(O)})});return xt(d,"state",{get:function c(){return vI[o]}}),d}function us(s){return TI(us,Hy,s)}function ks(s,e){return!Yf&&(Yf=ri(du)),Yf.v.call(this,s,e)}var Ha=hA(ks),Hm="featureOptIn",PI="scheduleFetchTimeout";function DA(s,e,n,o){try{var c=n>o;c&&(s=null);var d=0==n?function xl(s,e,n,o,c,d,h){return ei(s||{},ze[je](arguments))}({},s):s;return d&&e&&!c&&Kt(d,function(h){var g=e[h];g&&(An(d[h])&&An(g)?d[h]=DA(d[h],g,++n,o):delete d[h])}),d}catch{}return s}var Vm="featureOptIn.",qy=".offCfg";var jm,xp=void 0,nR=mr(((jm={syncMode:1,blkCdnCfg:xp,customEvtName:xp,cfgUrl:xp,overrideSyncFn:xp,overrideFetchFn:xp,onCfgChangeReceive:xp})[PI]=18e5,jm.nonOverrideConfigs={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},jm.enableAjax=!1,jm)),rR=function(s){function e(){var n=s.call(this)||this;n.priority=198,n.identifier="AppInsightsCfgSyncPlugin";var o,c,d,h,g,C,S,O,$,ae,q,ie,le,de,_e,Pe,Dt,Ct=!1;return Ki(e,n,function(Et,zt){function It(){c=null,d=null,h=null,g=null,S=null,O=null,le=null,C=null,ae=null,q=null,$=null,Dt=!1,_e=null,Pe=null,ie=null}function qt(Bt,Ve){if(Bt){if(c=Bt,Ve&&!Ct)return an();if(S&&!Ct)return Et.core.updateCfg(Bt),!0}return!1}function $t(){try{var Bt=yi();Bt&&uc(Bt,null,null,h)}catch{}}function an(Bt){try{return Pe&&Ht(Pe)?Pe(c,Bt):function kM(s,e,n){var o=yi();if(o&&o.CustomEvent)try{return function j0(s,e){return!!(s&&s.dispatchEvent&&e)&&(s.dispatchEvent(e),!0)}(o,function PM(s,e){var n=null,o={detail:e||null};if(Ht(CustomEvent))n=new CustomEvent(s,o);else{var c=uo();c&&c.createEvent&&(n=c.createEvent("CustomEvent")).initCustomEvent(s,!0,!0,o)}return n}(s,{cfg:e||null,customDetails:n||null}))}catch{}return!1}(d,c,Bt)}catch{}return!1}
1function Pn(Bt){try{return $t(),Bt&&(d=Bt,function Xe(){if(S){var Bt=yi();if(Bt)try{pl(Bt,d,function(Ve){var Oe=Ve&&Ve.detail;if(ie&&Oe)ie(Oe);else{var Mt=Oe&&Oe.cfg,mn=Mt&&Jt(Mt)&&dn(Mt);mn&&qt(mn)}},h,!0)}catch{}}}()),!0}catch{}return!1}function Ue(Bt,Ve,Oe){var Mt=yi(),mn=Mt&&Mt.fetch||null;if(Bt&&mn&&Ht(mn))try{var Tn={method:"GET"};Dt||(Tn[nd]=!0);var pr=new Request(Bt,Tn);if(!Dt)try{pr[nd]=!0}catch{}Ps(fetch(pr),function(or){var xr=or.value;or.rejected?Je(Ve,400):xr.ok?Ps(xr.text(),function(ai){Je(Ve,xr.status,ai.value,Oe)}):Je(Ve,xr.status,null,Oe)})}catch{}}function gt(Bt,Ve,Oe){try{var Mt=new XMLHttpRequest;Dt||(Mt[nd]=!0),Mt.open("GET",Bt),Mt.onreadystatechange=function(){Mt.readyState===XMLHttpRequest.DONE&&Je(Ve,Mt.status,Mt.responseText,Oe)},Mt.onerror=function(){Je(Ve,400)},Mt.ontimeout=function(){Je(Ve,400)},Mt.send()}catch{}}function ct(Bt,Ve,Oe){try{if(Bt>=200&&Bt<400&&Ve){q=0;var Mt=Xs();if(Mt){var Tn=function QO(s,e){try{if(!s||!s.enabled)return null;if(!s[Hm])return s.config;var o=s.config||{};return Kt(s[Hm],function(c){var d=function qO(s,e,n){var o;if(!e||!e.enabled)return null;var c=(e[Hm]||{})[s]||{mode:1},d=c.mode,h=c.onCfg,g=c.offCfg,C=(n||{})[s]||{mode:2},S=C.mode,O=C.onCfg,$=C.offCfg,ie=Vm+s+".onCfg",le=Vm+s+qy,de=S,_e=O,Pe=$;return!!C.blockCdnCfg||(4===d||5===d?(de=4==d?3:2,_e=h||O,Pe=g||$):2===d||2===S?(de=2,_e=O||h,Pe=$||g):3===d?(de=3,_e=O||h,Pe=$||g):1===d&&1===S&&(de=1)),(o={})[Vm+s+".mode"]=de,o[ie]=_e,o[le]=Pe,o}(c,s,e.config[Hm]);Qe(d)||(Kt(d,function(h,g){Ll(o,h,g)}),function ZO(s,e,n){var o=e[Vm+s+".mode"],h=null;3===o&&(h=e[Vm+s+".onCfg"]),2===o&&(h=e[Vm+s+qy]),h&&Kt(h,function(g,C){Ll(n,g,C)})}(c,d,o))}),o}catch{}return null}(Mt.parse(Ve),Et.core),pr=Tn&&Jt(Tn)&&dn(Tn);pr&&qt(pr,Oe)}}else q++;q<3&&Bn()}catch{}}function Je(Bt,Ve,Oe,Mt){try{Bt(Ve,Oe,Mt)}catch{}}function dn(Bt,Ve){var Oe=null;try{Bt&&(Oe=DA(Bt,le,0,5))}catch{}return Oe}function Bn(){!C&&ae&&(C=ec(function(){C=null,de(g,ct,O)},ae)).unref()}function Un(){C&&C.cancel(),C=null,q=0}It(),Et.initialize=function(Bt,Ve,Oe,Mt){zt.initialize(Bt,Ve,Oe,Mt),h=hl(nc(Et.identifier),Ve.evtNamespace&&Ve.evtNamespace()),function qe(Bt){var Ve=Et.identifier,Oe=Et.core;Et._addHook(Yo(Bt,function(){var Mt=Ba(null,Bt,Oe);o=Mt.getExtCfg(Ve,nR);var mn=$;$=!!o.blkCdnCfg,Dt=!!o.enableAjax,!Qe(mn)&&mn!==$&&(!$&&g?de&&de(g,ct,O):Un()),Qe(S)&&(S=2===o.syncMode),Qe(O)&&(O=1===o.syncMode);var Tn=o.customEvtName||"ai_cfgsync";d!==Tn&&(S?Pn(Tn):($t(),d=Tn)),Qe(g)&&(g=o.cfgUrl),g||(c=Bt,O&&an())})),Pe=o.overrideSyncFn,_e=o.overrideFetchFn,ie=o.onCfgChangeReceive,le=o.nonOverrideConfigs,ae=o[PI],de=function zn(){var Bt=_e;return Qe(Bt)&&(Tf()?Bt=Ue:qg()&&(Bt=gt)),Bt}(),q=0,g&&!$&&de&&de(g,ct,O)}(Bt)},Et.getCfg=function(){return c},Et.pause=function(){Ct=!0,Un()},Et.resume=function(){Ct=!1,Bn()},Et.setCfg=function(Bt){return qt(Bt)},Et.sync=function(Bt){return an(Bt)},Et.updateEventListenerName=function(Bt){return Pn(Bt)},Et._doTeardown=function(Bt,Ve){$t(),Un(),It()},Et._getDbgPlgTargets=function(){return[O,S,d,$,le]},Et.processTelemetry=function(Bt,Ve){Et.processNext(Bt,Ve)}}),n}return Gl(e,s),e.__ieDyn=1,e}(Ep);function OA(s,e){uc(s,null,null,e)}var yd=k_({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),RA="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",gu="&NoResponseBody=true",kI="POST",sR=function(){function s(){var n,o,c,d,h,g,C,S,O,$,ae,q,ie,le,e=0;Ki(s,this,function(de,_e){var Pe=!0;function Dt(Ue,gt){In(c,2,26,"Failed to send telemetry.",{message:Ue}),It(gt,400,{})}function Et(Ue){Dt("No endpoint url is provided for the batch",Ue)}function It(Ue,gt,ct,Je){try{Ue&&Ue(gt,ct,Je)}catch{}}function qe(Ue,gt){var ct=fi(),Je=Ue[Fg];if(!Je)return Et(gt),!0;Je=Ue[Fg]+(ie?gu:"");var Xe=Ue[ol],dn=d?Xe:new Blob([Xe],{type:"text/plain;charset=UTF-8"});return ct.sendBeacon(Je,dn)}function qt(Ue,gt,ct){var Je=Ue[ol];try{if(Je)if(qe(Ue,gt))!function Ct(Ue,gt){It(gt,200,{},Ue)}("",gt);else{var Xe=h&&h.beaconOnRetry;Xe&&Ht(Xe)?Xe(Ue,gt,qe):(S&&S.sendPOST(Ue,gt,!0),In(c,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(dn){d&&Fa(c,"Failed to send telemetry using sendBeacon API. Ex:"+Ye(dn)),It(gt,d?0:400,{},"")}}function $t(Ue,gt,ct){var Je,Xe,dn,Bn=Ue[Wl]||{};!ct&&n&&(Je=ks(function(Oe,Mt){Xe=Oe,dn=Mt})),d&&ct&&Ue.disableXhrSync&&(ct=!1);var Un=Ue[Fg];if(!Un)return Et(gt),void(Xe&&Xe(!1));var Bt=function N0(s,e,n,o,c,d){function h(C,S,O){try{C[S]=O}catch{}}void 0===o&&(o=!1),void 0===c&&(c=!1);var g=new XMLHttpRequest;
1return o&&h(g,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",o),n&&h(g,KE,n),g.open(s,e,!c),n&&h(g,KE,n),!c&&d&&h(g,"timeout",d),g}(kI,Un,Pe,!0,ct,Ue[Wh]);function Ve(Oe){var Mt=h&&h.xhrOnComplete;if(Mt&&Ht(Mt))Mt(Oe,gt,Ue);else{var Tn=Kg(Oe);It(gt,Oe[Po],Wg(Oe,d),Tn)}}return d||Bt.setRequestHeader("Content-type","application/json"),Wt(Ln(Bn),function(Oe){Bt.setRequestHeader(Oe,Bn[Oe])}),Bt.onreadystatechange=function(){d||(Ve(Bt),4===Bt.readyState&&Xe&&Xe(!0))},Bt.onload=function(){d&&Ve(Bt)},Bt.onerror=function(Oe){It(gt,d?Bt[Po]:400,Wg(Bt,d),d?"":T_(Bt)),dn&&dn(Oe)},Bt.ontimeout=function(){It(gt,d?Bt[Po]:500,Wg(Bt,d),d?"":T_(Bt)),Xe&&Xe(!1)},Bt.send(Ue[ol]),Je}function an(Ue,gt,ct){var Je,Un,Bt,Ve,Xe=Ue[Fg],dn=Ue[ol],Bn=d?dn:new Blob([dn],{type:"application/json"}),Oe=new Headers,Mt=dn[nr],mn=!1,Tn=!1,pr=Ue[Wl]||{},or=((Je={method:kI,body:Bn})[RA]=!0,Je);Ue.headers&&Ln(Ue.headers)[nr]>0&&(Wt(Ln(pr),function(to){Oe.append(to,pr[to])}),or[Wl]=Oe),C?or.credentials=C:Pe&&d&&(or.credentials="include"),ct&&(or.keepalive=!0,e+=Mt,d?2===Ue._sendReason&&(mn=!0,ie&&(Xe+=gu)):mn=!0);var xr=new Request(Xe,or);try{xr[RA]=!0}catch{}if(!ct&&n&&(Un=ks(function(to,so){Bt=to,Ve=so})),!Xe)return Et(gt),void(Bt&&Bt(!1));function ai(to,so){It(gt,so?d?0:so:d?0:400,{},d?"":to)}function ba(to,so,Aa){var bh=to[Po],Ml=h.fetchOnComplete;Ml&&Ht(Ml)?Ml(to,gt,Aa||"",so):It(gt,bh,{},Aa||"")}try{Ps(fetch(d?Xe:xr,d?or:null),function(to){if(ct&&(e-=Mt,Mt=0),!Tn)if(Tn=!0,to.rejected)ai(to.reason&&to.reason[nl],499),Ve&&Ve(to.reason);else{var so=to[io];try{d||so.ok?d&&!so.body?(ba(so,null,""),Bt&&Bt(!0)):Ps(so.text(),function(Aa){ba(so,Ue,Aa[io]),Bt&&Bt(!0)}):(ai(so.statusText,so[Po]?so[Po]:499),Bt&&Bt(!1))}catch(Aa){ai(Ye(Aa),so&&so[Po]?so[Po]:499),Ve&&Ve(Aa)}}})}catch(to){Tn||(ai(Ye(to),499),Ve&&Ve(to))}return mn&&!Tn&&(Tn=!0,It(gt,200,{}),Bt&&Bt(!0)),d&&!Tn&&Ue[Wh]>0&&le&&le.set(function(){Tn||(Tn=!0,It(gt,500,{}),Bt&&Bt(!0))},Ue[Wh]),Un}function Pn(Ue,gt,ct){var Je=Jr(),Xe=new XDomainRequest,dn=Ue[ol];Xe.onload=function(){var Oe=Kg(Xe),Mt=h&&h.xdrOnComplete;Mt&&Ht(Mt)?Mt(Xe,gt,Ue):It(gt,200,{},Oe)},Xe.onerror=function(){It(gt,400,{},d?"":O0(Xe))},Xe.ontimeout=function(){It(gt,500,{})},Xe.onprogress=function(){};var Un=Ue[Fg];if(Un){if(!d&&0!==Un.lastIndexOf(Je&&Je.location&&Je.location.protocol||"",0)){var Bt="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return In(c,2,40,". "+Bt),void Dt(Bt,gt)}var Ve=d?Un:Un[pf](/^(https?:)/,"");Xe.open(kI,Ve),Ue[Wh]&&(Xe[Wh]=Ue[Wh]),Xe.send(dn),d&&ct?le&&le.set(function(){Xe.send(dn)},0):Xe.send(dn)}else Et(gt)}function zn(){e=0,o=!1,n=!1,c=null,d=null,h=null,g=null,C=null,S=null,O=!1,$=!1,ae=!1,q=!1,ie=!1,le=null}zn(),de[jh]=function(Ue,gt){c=gt,o&&In(c,1,28,"Sender is already initialized"),de.SetConfig(Ue),o=!0},de._getDbgPlgTargets=function(){return[o,d,g,n]},de.SetConfig=function(Ue){try{if(h=Ue.senderOnCompleteCallBack||{},C=Ue.fetchCredentials,n=!!Ue.enableSendPromise,O=!!Ue.disableXhr,$=!!Ue.disableBeacon,ae=!!Ue.disableBeaconSync,le=Ue.timeWrapper,ie=!!Ue.addNoResponse,q=!!Ue.disableFetchKeepAlive,S={sendPOST:$t},(d=!!Ue.isOneDs)||(Pe=!1),g=!!Ue.disableCredentials){var gt=Ys();gt&>.protocol&&"file:"===gt.protocol[zs]()&&(Pe=!1)}return!0}catch{}return!1},de.getSyncFetchPayload=function(){return e},de.getSenderInst=function(Ue,gt){return Ue&&Ue[nr]?function zt(Ue,gt){for(var ct=0,Je=null,Xe=0;null==Je&&Xe<Ue[nr];)ct=Ue[Xe],O||1!==ct?2!==ct||!Tf(gt)||gt&&q?3===ct&&Ef()&&(gt?!ae:!$)&&(Je=qt):Je=an:(null===Yl&&(Yl=typeof XDomainRequest!==a_)&&qg()&&(Yl=Yl&&!I_(qr(F0),"withCredentials")),Yl?Je=Pn:qg()&&(Je=$t)),Xe++;return Je?{_transport:ct,_isSync:gt,sendPOST:Je}:null}(Ue,gt):null},de.getFallbackInst=function(){return S},de[m_]=function(Ue,gt){zn()},de.preparePayload=function(Ue,gt,ct,Je){if(gt&&!Je&&ct[ol])try{var Xe=qr("CompressionStream");if(!Ht(Xe))return void Ue(ct);var Un=new ReadableStream({start:function(Mt){Mt.enqueue(Qt(ct[ol])?(new TextEncoder).encode(ct[ol]):ct[ol]),Mt.close()}}).pipeThrough(new Xe("gzip")).getReader(),Bt=[],Ve=0,Oe=!1;return Ps(Un.read(),function Mt(mn){if(!Oe&&!mn.rejected){var Tn=mn[io];if(!Tn.done)return Bt[Ur](Tn[io]),Ve+=Tn.value[nr],Ps(Un.read(),Mt);for(var pr=new Uint8Array(Ve),or=0,xr=0,ai=Bt;xr<ai.length;xr++){var ba=ai[xr];pr.set(ba,or),or+=ba[nr]}ct[ol]=pr,ct[Wl]["Content-Encoding"]="gzip",ct._chunkCount=Bt[nr]}Oe||(Oe=!0,Ue(ct))}),Un}catch{return void Ue(ct)}else Ue(ct)}})}return s.__ieDyn=1,s}();function qf(s,e){if(s&&s[zl])return s[zl](e)}function PA(s,e,n){var o;return n||(o=ks(function(c){n=c})),s&&xh(s)>0?Ps(qf(s[0],e),function(){PA(Dc(s,1),e,n)}):n(),o}function Qy(s,e){try{if(s&&""!==s){var n=Xs().parse(s);if(n&&n[BE]&&n[BE]>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[nr])return n}}catch(o){In(e,1,43,"Cannot parse the response. "+(o[Ku]||Ye(o)),{response:s})}return null}function mu(s){var e="ai."+s+".";return function(n){return e+n}}
1var vu=mu("application"),ko=mu("device"),_u=mu("location"),Qf=mu("operation"),Cd=mu("session"),vl=mu("user"),hc=mu("cloud"),_l=mu("internal"),Zf=function(s){function e(){return s.call(this)||this}return Gl(e,s),e}(function M0(s){return function(){return function e(){var n=this;s&&Kt(s,function(o,c){n[o]=c})}}()}({applicationVersion:vu("ver"),applicationBuild:vu("build"),applicationTypeId:vu("typeId"),applicationId:vu("applicationId"),applicationLayer:vu("layer"),deviceId:ko("id"),deviceIp:ko("ip"),deviceLanguage:ko("language"),deviceLocale:ko("locale"),deviceModel:ko("model"),deviceFriendlyName:ko("friendlyName"),deviceNetwork:ko("network"),deviceNetworkName:ko("networkName"),deviceOEMName:ko("oemName"),deviceOS:ko("os"),deviceOSVersion:ko("osVersion"),deviceRoleInstance:ko("roleInstance"),deviceRoleName:ko("roleName"),deviceScreenResolution:ko("screenResolution"),deviceType:ko("type"),deviceMachineName:ko("machineName"),deviceVMName:ko("vmName"),deviceBrowser:ko("browser"),deviceBrowserVersion:ko("browserVersion"),locationIp:_u("ip"),locationCountry:_u("country"),locationProvince:_u("province"),locationCity:_u("city"),operationId:Qf("id"),operationName:Qf("name"),operationParentId:Qf("parentId"),operationRootId:Qf("rootId"),operationSyntheticSource:Qf("syntheticSource"),operationCorrelationVector:Qf("correlationVector"),sessionId:Cd("id"),sessionIsFirst:Cd("isFirst"),sessionIsNew:Cd("isNew"),userAccountAcquisitionDate:vl("accountAcquisitionDate"),userAccountId:vl("accountId"),userAgent:vl("userAgent"),userId:vl("id"),userStoreRegion:vl("storeRegion"),userAuthUserId:vl("authUserId"),userAnonymousUserAcquisitionDate:vl("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:vl("authUserAcquisitionDate"),cloudName:hc("name"),cloudRole:hc("role"),cloudRoleVer:hc("roleVer"),cloudRoleInstance:hc("roleInstance"),cloudEnvironment:hc("environment"),cloudLocation:hc("location"),cloudDeploymentUnit:hc("deploymentUnit"),internalNodeName:_l("nodeName"),internalSdkVersion:_l("sdkVersion"),internalAgentVersion:_l("agentVersion"),internalSnippet:_l("snippet"),internalSdkSrc:_l("sdkSrc")})),Ii=new Zf,Lp=function(){return function s(e,n,o){var c=this,d=this;d.ver=1,d.sampleRate=100,d.tags={},d[cl]=ho(e,o)||ll,d.data=n,d.time=_f(new Date),d[ap]={time:1,iKey:1,name:1,sampleRate:function(){return 100===c.sampleRate?4:1},tags:1,data:1}}}(),pc=function(){return function s(e,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=n}}(),gc="duration",Io="tags",Zy="deviceType",Ca="data",yl="name",Fp="traceID",Kr="length",Up="stringify",Ed="measurements",kc="dataType",Td="envelopeType",Cl="toString",Ea="enqueue",Jf="count",yu="push",Gm="emitLineDelimitedJson",mc="clear",Bp="markAsSent",$m="clearSent",zm="bufferOverride",Jy="BUFFER_KEY",eh="SENT_BUFFER_KEY",Hp="concat",Km="MAX_BUFFER_SIZE",Vp="triggerSend",xs="diagLog",xo="initialize",jp="_sender",Wm="endpointUrl",Ym="instrumentationKey",eC="customHeaders",kA="maxBatchSizeInBytes",tC="onunloadDisableBeacon",nC="isBeaconApiDisabled",th="alwaysUseXhrOverride",xA="enableSessionStorageBuffer",El="_buffer",xI="onunloadDisableFetch",LA="disableSendBeaconSplit",Xm="getSenderInst",Gp="_onError",qm="_onPartialSuccess",$p="_onSuccess",Qm="itemsReceived",Zm="itemsAccepted",Va="baseType",rC="sampleRate",vc="baseType",si="baseData",Fi="properties",LI="true";function So(s,e,n){return Wi(s,e,n,no)}function Id(s,e,n){Qe(s)||Kt(s,function(o,c){_t(c)?n[o]=c:Qt(c)?e[o]=c:Cf()&&(e[o]=Xs()[Up](c))})}function nh(s,e){Qe(s)||Kt(s,function(n,o){s[n]=o||e})}function rh(s,e,n,o){var c=new Lp(s,o,e);So(c,"sampleRate",n[Y_]),(n[si]||{}).startTime&&(c.time=_f(n[si].startTime)),c.iKey=n.iKey;var d=n.iKey.replace(/-/g,"");return c[yl]=c[yl].replace("{0}",d),function aR(s,e,n){var o=n[Io]=n[Io]||{},c=e.ext=e.ext||{},d=e[Io]=e[Io]||[],h=c.user;h&&(So(o,Ii.userAuthUserId,h.authId),So(o,Ii.userId,h.id||h.localId)
1);var g=c.app;g&&So(o,Ii.sessionId,g.sesId);var C=c.device;C&&(So(o,Ii.deviceId,C.id||C.localId),So(o,Ii[Zy],C.deviceClass),So(o,Ii.deviceIp,C.ip),So(o,Ii.deviceModel,C.model),So(o,Ii[Zy],C[Zy]));var S=e.ext.web;if(S){So(o,Ii.deviceLanguage,S.browserLang),So(o,Ii.deviceBrowserVersion,S.browserVer),So(o,Ii.deviceBrowser,S.browser);var O=n[Ca]=n[Ca]||{},$=O[si]=O[si]||{},ae=$[Fi]=$[Fi]||{};So(ae,"domain",S.domain),So(ae,"isManual",S.isManual?LI:null),So(ae,"screenRes",S.screenRes),So(ae,"userConsent",S.userConsent?LI:null)}var q=c.os;q&&(So(o,Ii.deviceOS,q[yl]),So(o,Ii.deviceOSVersion,q.osVer));var ie=c.trace;ie&&(So(o,Ii.operationParentId,ie.parentID),So(o,Ii.operationName,ho(s,ie[yl])),So(o,Ii.operationId,ie[Fp]));for(var le={},de=d[Kr]-1;de>=0;de--)Kt(d[de],function(Ct,Dt){le[Ct]=Dt}),d.splice(de,1);Kt(d,function(Ct,Dt){le[Ct]=Dt});var Pe=_s(_s({},o),le);Pe[Ii.internalSdkVersion]||(Pe[Ii.internalSdkVersion]=ho(s,"javascript:".concat(Jm.Version),64)),n[Io]=$g(Pe)}(s,n,c),n[Io]=n[Io]||[],$g(c)}function Cu(s,e){Qe(e[si])&&In(s,1,46,"telemetryItem.baseData cannot be null.")}var Jm={Version:"3.3.10"};function FI(s,e,n){Cu(s,e);var o={},c={};e[vc]!==kf[kc]&&(o.baseTypeSource=e[vc]),e[vc]===kf[kc]?(o=e[si][Fi]||{},c=e[si][Ed]||{}):e[si]&&Id(e[si],o,c),Id(e[Ca],o,c),Qe(n)||nh(o,n);var h=new kf(s,e[si][yl],o,c),g=new pc(kf[kc],h);return rh(s,kf[Td],e,g)}var eo,Eu,HA=function(){function s(e,n){var o=[],c=!1,d=n.maxRetryCnt;this._get=function(){return o},this._set=function(h){return o=h},Ki(s,this,function(h){h[Ea]=function(g){h[Jf]()>=n.eventsLimitInMem?c||(In(e,2,105,"Maximum in-memory buffer size reached: "+h[Jf](),!0),c=!0):(g.cnt=g.cnt||0,(Qe(d)||!(g.cnt>d))&&o[yu](g))},h[Jf]=function(){return o[Kr]},h.size=function(){for(var g=o[Kr],C=0;C<o[Kr];C++)g+=o[C].item[Kr];return n[Gm]||(g+=2),g},h[mc]=function(){o=[],c=!1},h.getItems=function(){return o.slice(0)},h.batchPayloads=function(g){if(g&&g[Kr]>0){var C=[];return Wt(g,function(O){C[yu](O.item)}),n[Gm]?C.join("\n"):"["+C.join(",")+"]"}return null},h.createNew=function(g,C,S){var O=o.slice(0);g=g||e,C=C||{};var $=S?new VA(g,C):new oC(g,C);return Wt(O,function(ae){$[Ea](ae)}),$}})}return s.__ieDyn=1,s}(),oC=function(s){function e(n,o){var c=s.call(this,n,o)||this;return Ki(e,c,function(d,h){d[Bp]=function(g){h[mc]()},d[$m]=function(g){}}),c}return Gl(e,s),e.__ieDyn=1,e}(HA),dR=["AI_buffer","AI_sentBuffer"],VA=function(s){function e(o,c){var d=s.call(this,o,c)||this,h=!1,g=c?.namePrefix,C=c[zm]||{getItem:cp,setItem:$_},S=C.getItem,O=C.setItem,$=c.maxRetryCnt;return Ki(e,d,function(ae,q){var ie=Dt(e[Jy]),le=Dt(e[eh]),de=function It(){var qt=[];try{return Wt(dR,function($t){var an=qe($t);if(qt=qt[Hp](an),g){var zn=qe(g+"_"+$t);qt=qt[Hp](zn)}}),qt}catch($t){In(o,2,41,"Transfer events from previous buffers: "+li($t)+". previous Buffer items can not be removed",{exception:Ye($t)})}return[]}(),_e=le[Hp](de),Pe=ae._set(ie[Hp](_e));function Ct(qt,$t){var an=[],Pn=[];return Wt(qt,function(zn){Pn[yu](zn.item)}),Wt($t,function(zn){!Ht(zn)&&-1===Li(Pn,zn.item)&&an[yu](zn)}),an}function Dt(qt){return Et(g?g+"_"+qt:qt)}function Et(qt){try{var $t=S(o,qt);if($t){var an=Xs().parse($t);if(Qt(an)&&(an=Xs().parse(an)),an&&vn(an))return an}}catch(Pn){In(o,1,42," storage key: "+qt+", "+li(Pn),{exception:Ye(Pn)})}return[]}function zt(qt,$t){var an=qt;try{an=g?g+"_"+an:an;var Pn=JSON[Up]($t);O(o,an,Pn)}catch(zn){O(o,an,JSON[Up]([])),In(o,2,41," storage key: "+an+", "+li(zn)+". Buffer cleared",{exception:Ye(zn)})}}function qe(qt){try{var $t=Et(qt),an=[];return Wt($t,function(Pn){an[yu]({item:Pn,cnt:0})}),z_(o,qt),an}catch{}return[]}Pe[Kr]>e[Km]&&(Pe[Kr]=e[Km]),zt(e[eh],[]),zt(e[Jy],Pe),ae[Ea]=function(qt){ae[Jf]()>=e[Km]?h||(In(o,2,67,"Maximum buffer size reached: "+ae[Jf](),!0),h=!0):(qt.cnt=qt.cnt||0,(Qe($)||!(qt.cnt>$))&&(q[Ea](qt),zt(e[Jy],ae._get())))},ae[mc]=function(){q[mc](),zt(e[Jy],ae._get()),zt(e[eh],[]),h=!1},ae[Bp]=function(qt){zt(e[Jy],ae._set(Ct(qt,ae._get())));var $t=Dt(e[eh]);$t instanceof Array&&qt instanceof Array&&(($t=$t[Hp](qt))[Kr]>e[Km]&&(In(o,1,67,"Sent buffer reached its maximum size: "+$t[Kr],!0),$t[Kr]=e[Km]),zt(e[eh],$t))},ae[$m]=function(qt){var $t=Dt(e[eh]);$t=Ct(qt,$t),zt(e[eh],$t)},ae.createNew=function(qt,$t,an){an=!!an;var Pn=ae._get().slice(0),zn=Dt(e[eh]).slice(0);qt=qt||o,$t=$t||{}
1,ae[mc]();var Ue=an?new e(qt,$t):new oC(qt,$t);return Wt(Pn,function(gt){Ue[Ea](gt)}),an&&Ue[Bp](zn),Ue}}),d}var n;return Gl(e,s),n=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+n.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+n.VERSION,e.MAX_BUFFER_SIZE=2e3,e}(HA),fR=function(){function s(e){Ki(s,this,function(n){function o(h,g){var C="__aiCircularRefCheck",S={};if(!h)return In(e,1,48,"cannot serialize object because it is null or undefined",{name:g},!0),S;if(h[C])return In(e,2,50,"Circular reference detected while serializing object",{name:g},!0),S;if(!h.aiDataContract){if("measurements"===g)S=d(h,"number",g);else if("properties"===g)S=d(h,"string",g);else if("tags"===g)S=d(h,"string",g);else if(vn(h))S=c(h,g);else{In(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:g},!0);try{Xs()[Up](h),S=h}catch(O){In(e,1,48,O&&Ht(O[Cl])?O[Cl]():"Error serializing object",null,!0)}}return S}return h[C]=!0,Kt(h.aiDataContract,function(O,$){var ae=Ht($)?1&$():1&$,q=Ht($)?4&$():4&$,ie=2&$;if(!ae||void 0!==h[O]||ie){if(!q){var _e;void 0!==(_e=An(h[O])&&null!==h[O]?ie?c(h[O],O):o(h[O],O):h[O])&&(S[O]=_e)}}else In(e,1,24,"Missing required field specification. The field is required but not present on source",{field:O,name:g})}),delete h[C],S}function c(h,g){var C;if(h)if(vn(h)){C=[];for(var S=0;S<h[Kr];S++){var $=o(h[S],g+"["+S+"]");C[yu]($)}}else In(e,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:g},!0);return C}function d(h,g,C){var S;return h&&(S={},Kt(h,function(O,$){if("string"===g)S[O]=void 0===$?"undefined":null===$?"null":$[Cl]?$[Cl]():"invalid field: toString() is not defined.";else if("number"===g)if(void 0===$)S[O]="undefined";else if(null===$)S[O]="null";else{var ae=parseFloat($);S[O]=ae}else S[O]="invalid field: "+C+" is of unknown type.",In(e,1,S[O],null,!0)})),S}n.serialize=function(h){var g=o(h,"root");try{return Xs()[Up](g)}catch(C){In(e,1,48,C&&Ht(C[Cl])?C[Cl]():"Error serializing object",null,!0)}}})}return s.__ieDyn=1,s}(),pR=function(){function s(){}return s.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/s.INT_MAX_VALUE*100},s.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[Kr]<8;)e=e[Hp](e);for(var n=5381,o=0;o<e[Kr];++o)n=(n<<5)+n+e.charCodeAt(o),n|=0;return Math.abs(n)},s.INT_MAX_VALUE=2147483647,s}(),gR=function(){return function s(){var n=new pR,o=new Zf;this.getSamplingScore=function(c){return c[Io]&&c[Io][o.userId]?n.getHashCodeScore(c[Io][o.userId]):c.ext&&c.ext.user&&c.ext.user.id?n.getHashCodeScore(c.ext.user.id):c[Io]&&c[Io][o.operationId]?n.getHashCodeScore(c[Io][o.operationId]):c.ext&&c.ext.telemetryTrace&&c.ext.telemetryTrace[Fp]?n.getHashCodeScore(c.ext.telemetryTrace[Fp]):100*Math.random()}}}(),mR=function(){function s(e,n){this.INT_MAX_VALUE=2147483647;var o=n||al(null);(e>100||e<0)&&(o.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[rC]=e,this.samplingScoreGenerator=new gR}return s.prototype.isSampledIn=function(e){var n=this[rC];return null==n||n>=100||e.baseType===id[kc]||this.samplingScoreGenerator.getSamplingScore(e)<n},s}(),xc=void 0;function GA(s){try{return s.responseText}catch{}return null}var HI=mr(((eo={endpointUrl:iy(no,mT+Rf)})[Gm]=es(),eo.maxBatchInterval=15e3,eo[kA]=102400,eo.disableTelemetry=es(),eo[xA]=es(!0),eo.isRetryDisabled=es(),eo[nC]=es(!0),eo[LA]=es(!0),eo.disableXhr=es(),eo[xI]=es(),eo[tC]=es(),eo[Ym]=xc,eo.namePrefix=xc,eo.samplingPercentage=iy(function $A(s){return!isNaN(s)&&s>0&&s<=100},100),eo[eC]=xc,eo.convertUndefined=xc,eo.eventsLimitInMem=1e4,eo[zm]=!1,eo.httpXHROverride={isVal:function BI(s){return s&&s.sendPOST},v:xc},eo[th]=es(),eo.transports=xc,eo.retryCodes=xc,eo.corsPolicy=xc,eo.maxRetryCnt={isVal:_t,v:10},eo)),VI="X-Set-Cross-Origin-Resource-Policy",vR=((Eu={})[kf.dataType]=FI,Eu[nu.dataType]=function iC(s,e,n){Cu(s,e);var o=e[si].message,c=e[si].severityLevel,d=e[si][Fi]||{},h=e[si][Ed]||{};Id(e[Ca],d,h),Qe(n)||nh(d,n);var g=new nu(s,o,c,d,h),C=new pc(nu[kc],g);return rh(s,nu[Td],e,C)},Eu[oc.dataType]=function UA(s,e,n){Cu(s,e);var o,c=e[si];Qe(c)||Qe(c[Fi])||Qe(c[Fi][gc])?!Qe(e[Ca])&&!Qe(e[Ca][gc])&&(o=e[Ca][gc],delete e[Ca][gc]):(o=c[Fi][gc],delete c[Fi][gc]);var h,d=e[si];((e.ext||{}).trace||{})[Fp]&&(h=e.ext.trace[Fp]);var g=d.id||h,C=d[yl],S=d.uri,O=d[Fi]||{},$=d[Ed]||{};Qe(d.refUri)||(O.refUri=d.refUri),Qe(d.pageType)||(O.pageType=d.pageType),Qe(d.isLoggedIn)||(O.isLoggedIn=d.isLoggedIn[Cl]()),Qe(d[Fi])||Kt(d[Fi],function(le,de){O[le]=de}),Id(e[Ca],O,$),Qe(n)||nh(O,n);var q=new oc(s,C,S,o,O,$,g),ie=new pc(oc[kc],q);return rh(s,oc[Td],e,ie)},Eu[xf.dataType]=function BA(s,e,n){Cu(s,e);var o=e[si],c=o[yl],d=o.uri||o.url,h=o[Fi]||{},g=o[Ed]||{};Id(e[Ca],h,g),Qe(n)||nh(h,n);var C=new xf(s,c,d,void 0,h,g,o),S=new pc(xf[kc],C);return rh(s,xf[Td],e,S)},Eu[sc.dataType]=function lR(s,e,n){Cu(s,e);var o=e[si][Ed]||{},c=e[si][Fi]||{};Id(e[Ca],c,o),Qe(n)||nh(c,n);var h=sc.CreateFromInterface(s,e[si],c,o),g=new pc(sc[kc],h);return rh(s,sc[Td],e,g)},Eu[id.dataType]=function uR(s,e,n){Cu(s,e);var o=e[si],c=o[Fi]||{},d=o[Ed]||{};Id(e[Ca],c,d),Qe(n)||nh(c,n);var h=new id(s,o[yl],o.average,o.sampleCount,o.min,o.max,o.stdDev,c,d),g=new pc(id[kc],h);return rh(s,id[Td],e,g)},Eu[Uf.dataType]=function cR(s,e,n){Cu(s,e);var o=e[si][Ed]||{},c=e[si][Fi]||{};Id(e[Ca],c,o),Qe(n)||nh(c,n);var d=e[si];if(Qe(d))return Fa(s,"Invalid input for dependency data"),null;var g=new Uf(s,d.id,d.target,d[yl],d[gc],d.success,d.responseCode,d[Fi]&&d[Fi][cb]?d[Fi][cb]:"GET",d.type,d.correlationContext,c,o),C=new pc(Uf[kc],g);return rh(s,Uf[Td],e,C)},Eu),_R=function(s){function e(){var n=s.call(this)||this;n.priority=1001,n.identifier=Of;var o,c,h,g,C,S,O,ae,q,ie,le,de,_e,Pe,Ct,Dt,Et,zt,It,qe,qt,$t,an,Pn,zn,Ue,gt,ct,Je,Xe,dn,Bn,Un,Bt,Ve,$=0;return Ki(e,n,function(Oe,Mt){function mn(ft,jt){var Dn=GA(ft);if(!ft||Dn+""!="200"&&""!==Dn){var Jn=Qy(Dn);Jn&&Jn[Qm]&&Jn[Qm]>Jn[Zm]&&!qt?Oe[qm](jt,Jn):Oe[Gp](jt,O0(ft))}else o=0,Oe[$p](jt,0)}function pr(ft,jt,Dn){4===ft.readyState&&Xt(ft.status,jt,ft.responseURL,Dn,T_(ft),GA(ft)||ft.response)}function ba(ft){try{if(ft){var Dn=ft.oriPayload;return Dn&&Dn[Kr]?Dn:null}}catch{}return null}function to(ft,jt){return!(zt||(ft?ft.baseData&&!ft[Va]?(jt&&In(jt,1,70,"Cannot send telemetry without baseData and baseType"),1):(ft[Va]||(ft[Va]="EventData"),Oe[jp]?function Ft(ft){return Oe._sample.isSampledIn(ft)}(ft)?(ft[Y_]=Oe._sample[rC],0):(jt&&In(jt,2,33,"Telemetry item was sampled out and not sent",{SampleRate:Oe._sample[rC]}),1):(jt&&In(jt,1,28,"Sender was not initialized"),1)):(jt&&In(jt,1,7,"Cannot send empty telemetry"),1)))}function so(ft,jt){var Jn=e.constructEnvelope(ft,ft.iKey||It,jt,qe);if(Jn){var fr=!1;
1return ft[Io]&&ft[Io][lp]&&(Wt(ft[Io][lp],function(gr){try{gr&&!1===gr(Jn)&&(fr=!0,Fa(jt,"Telemetry processor check returns false"))}catch(gi){In(jt,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+li(gi),{exception:Ye(gi)},!0)}}),delete ft[Io][lp]),fr?void 0:Jn}In(jt,1,47,"Unable to create an AppInsights envelope")}function Aa(ft){var jt="",Dn=Oe[xs]();try{var Jn=to(ft,Dn),fr=null;Jn&&(fr=so(ft,Dn)),fr&&(jt=C.serialize(fr))}catch{}return jt}function bh(ft){var jt="";return ft&&ft[Kr]&&(jt="["+ft.join(",")+"]"),jt}function Ml(ft){var jt=rt();return{urlString:le,data:ft,headers:jt}}function sr(ft,jt,Dn,Jn){void 0===Jn&&(Jn=!0);var fr=function(Ah,a0,Gv){return function Mn(ft,jt,Dn,Jn){200===jt&&ft?Oe._onSuccess(ft,ft[Kr]):Jn&&Oe[Gp](ft,Jn)}(jt,Ah,0,Gv)},gr=Kn(jt),gi=ft&&ft.sendPOST;if(gi&&gr){Jn&&Oe._buffer[Bp](jt);var Ao,Vr,s0,Tc=!1;return Un.preparePayload(function(Ah){Ao=gi(Ah,fr,!Dn),Tc=!0,Vr&&ml(Ao,Vr,s0)},Ve,gr,!Dn),Tc?Ao:ks(function(Ah,a0){Vr=Ah,s0=a0})}return null}function Kn(ft){if(vn(ft)&&ft[Kr]>0){var jt=Oe[El].batchPayloads(ft),Dn=rt();return{data:jt,urlString:le,headers:Dn,disableXhrSync:ct,disableFetchKeepAlive:!Je,oriPayload:ft}}return null}function rt(){try{var ft=O||{};return PT(le)&&(ft[Ti[6]]=Ti[7]),ft}catch{}return null}function Nt(ft){var jt=ft?ft[Kr]:0;return Oe[El].size()+jt>_e&&((!q||q.isOnline())&&Oe[Vp](!0,null,10),!0)}function Xt(ft,jt,Dn,Jn,fr,gr){var gi=null;if(Oe._appId||(gi=Qy(gr))&&gi.appId&&(Oe._appId=gi.appId),(ft<200||ft>=300)&&0!==ft){if((301===ft||307===ft||308===ft)&&!Yt(Dn))return void Oe[Gp](jt,fr);if(q&&!q.isOnline())return void(qt||(_r(jt,10),In(Oe[xs](),2,40,". Offline - Response Code: ".concat(ft,". Offline status: ").concat(!q.isOnline(),". Will retry to send ").concat(jt.length," items."))));!qt&&jd(ft)?(_r(jt),In(Oe[xs](),2,40,". Response code "+ft+". Will retry to send "+jt[Kr]+" items.")):Oe[Gp](jt,fr)}else Yt(Dn),206===ft?(gi||(gi=Qy(gr)),gi&&!qt?Oe[qm](jt,gi):Oe[Gp](jt,fr)):(o=0,Oe[$p](jt,Jn))}function Yt(ft){return!(S>=10||Qe(ft)||""===ft||ft===le||(le=ft,++S,0))}function pn(ft,jt){if(!ae)return sr(Un&&Un[Xm]([3],!0),ft,jt);ae(ft,!1)}function ur(ft){try{if(ft&&ft[Kr])return Qt(ft[0])}catch{}return null}function jr(ft,jt){var Dn=null;if(vn(ft)){for(var Jn=ft[Kr],fr=0;fr<ft[Kr];fr++)Jn+=ft[fr].item[Kr];return Un.getSyncFetchPayload()+Jn<=65e3?Dn=2:Ef()?Dn=3:(Dn=1,In(Oe[xs](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),sr(Un&&Un[Xm]([Dn],!0),ft,jt)}return null}function _r(ft,jt){if(void 0===jt&&(jt=1),ft&&0!==ft[Kr]){var Dn=Oe[El];Dn[$m](ft),o++;for(var Jn=0,fr=ft;Jn<fr.length;Jn++){var gr=fr[Jn];gr.cnt=gr.cnt||0,gr.cnt++,Dn[Ea](gr)}(function Ri(ft){var Dn;if(o<=1)Dn=10;else{var Jn=(Math.pow(2,o)-1)/2,fr=Ci(Math.random()*Jn*10)+1;Dn=_i(Da(fr*=ft,3600),10)}c=ji()+1e3*Dn})(jt),po()}}function po(){if(!g&&!h){var ft=c?_i(0,c-ji()):0,jt=_i($t,ft);g=ec(function(){g=null,Oe[Vp](!0,null,1)},jt)}}function Fs(){g&&g.cancel(),g=null,c=null}function jd(ft){return Qe(Bt)?401===ft||408===ft||429===ft||500===ft||502===ft||503===ft||504===ft:Bt[Kr]&&Bt.indexOf(ft)>-1}function nM(){Oe[jp]=null,Oe[El]=null,Oe._appId=null,Oe._sample=null,O={},q=null,o=0,c=null,h=!1,g=null,C=null,S=0,$=0,ae=null,ie=null,le=null,de=null,_e=0,Pe=!1,Et=null,zt=!1,It=null,qe=xc,qt=!1,an=null,zn=xc,ct=!1,Je=!1,Bn=!1,Xe=null,dn=null,Un=null,Qn(Oe,"_senderConfig",{g:function(){return zE({},HI)}})}nM(),Oe.pause=function(){Fs(),h=!0},Oe.resume=function(){h&&(h=!1,c=null,Nt(),po())},Oe.flush=function(ft,jt,Dn){if(void 0===ft&&(ft=!0),!h){Fs();try{var Jn=Oe[Vp](ft,null,Dn||1);return Ps(Jn,function(fr){return jt?(jt(!fr.rejected),!0):ft?ks(function(gr){gr(!fr.rejected)}):Jn})}catch(fr){In(Oe[xs](),1,22,"flush failed, telemetry will not be collected: "+li(fr),{exception:Ye(fr)})}}},Oe.onunloadFlush=function(){if(!h)if(Pe||gt)try{return Oe[Vp](!0,pn,2)}catch(ft){In(Oe[xs](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+li(ft),{exception:Ye(ft)})}else Oe.flush(!1)},Oe.addHeader=function(ft,jt){O[ft]=jt},Oe[xo]=function(ft,jt,Dn,Jn){Oe.isInitialized()&&In(Oe[xs](),1,28,"Sender is already initialized"),Mt[xo](ft,jt,Dn,Jn);var fr=Oe.identifier;C=new fR(jt.logger),o=0,c=null,Oe[jp]=null,S=0;var gr=Oe[xs]();ie=hl(nc("Sender"),jt.evtNamespace&&jt.evtNamespace()),q=function iR(s){var e=uo(),n=fi(),o=!1,c=[],d=1;n&&!Qe(n.onLine)&&!n.onLine&&(d=2);var h=0,g=ae(),C=hl(nc("OfflineListener"),s);try{if(O(Jr())&&(o=!0),e){var S=e.body||e;S.ononline&&O(S)&&(o=!0)}}catch{o=!1}
1function O(Ct){var Dt=!1;return Ct&&(Dt=pl(Ct,"online",le,C))&&pl(Ct,"offline",de,C),Dt}function ae(){return!(2===h||2===d)}function q(){var Ct=ae();g!==Ct&&(g=Ct,Wt(c,function(Dt){var Et={isOnline:g,rState:d,uState:h};try{Dt(Et)}catch{}}))}function le(){d=1,q()}function de(){d=2,q()}return{isOnline:function $(){return g},isListening:function(){return o},unload:function _e(){var Ct=Jr();if(Ct&&o){if(OA(Ct,C),e){var Dt=e.body||e;ke(Dt.ononline)||OA(Dt,C)}o=!1}},addListener:function Pe(Ct){return c.push(Ct),{rm:function(){var Dt=c.indexOf(Ct);if(Dt>-1)return c.splice(Dt,1)}}},setOnlineState:function ie(Ct){h=Ct,q()}}}(ie),Oe._addHook(Yo(ft,function(gi){var Ao=gi.cfg;Ao.storagePrefix&&j_(Ao.storagePrefix);var Vr=Ba(null,Ao,jt).getExtCfg(fr,HI),s0=Vr[Wm];if(le&&s0===le){var Ah=Ao[Wm];Ah&&Ah!==s0&&(Vr[Wm]=Ah)}var a0=qr("CompressionStream");Ve=zg("zipPayload",Ao,!1),Ht(a0)||(Ve=!1);var Gv=Vr.corsPolicy;Gv?("same-origin"===Gv||"same-site"===Gv||"cross-origin"===Gv)&&n.addHeader(VI,Gv):delete O[VI],mi(Vr[Ym])&&(Vr[Ym]=Ao[Ym]),Qn(Oe,"_senderConfig",{g:function(){return Vr}}),de!==Vr[Wm]&&(le=de=Vr[Wm]),jt.activeStatus()===yd.PENDING?Oe.pause():jt.activeStatus()===yd.ACTIVE&&Oe.resume(),Et&&Et!==Vr[eC]&&Wt(Et,function(ea){delete O[ea.header]}),_e=Vr[kA],Pe=(!1===Vr[tC]||!1===Vr[nC])&&Ef(),Ct=!1===Vr[tC]&&Ef(),Dt=!1===Vr[nC]&&Ef(),gt=Vr[th],ct=!!Vr.disableXhr,Bt=Vr.retryCodes;var qN=Vr[zm],mE=!!Vr[xA]&&(!!qN||Mf()),yx=Vr.namePrefix;if(Oe[El]){if(mE!==an||mE&&zn!==yx||mE&&Pn!==qN)try{Oe[El]=Oe[El].createNew(gr,Vr,mE)}catch(ea){In(Oe[xs](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+li(ea),{exception:Ye(ea)})}Nt()}else Oe[El]=mE?new VA(gr,Vr):new oC(gr,Vr);zn=yx,an=mE,Pn=qN,Je=!Vr[xI]&&Tf(!0),Bn=!!Vr[LA],Oe._sample=new mR(Vr.samplingPercentage,gr),!mi(It=Vr[Ym])&&!function gE(ft,jt){var Dn=jt.disableInstrumentationKeyValidation;if(!Qe(Dn)&&Dn)return!0;return new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(ft)}(It,Ao)&&In(gr,1,100,"Invalid Instrumentation key "+It),Et=Vr[eC],Qt(le)&&!PT(le)&&Et&&Et[Kr]>0?Wt(Et,function(ea){n.addHeader(ea.header,ea.value)}):Et=null,Ue=Vr.enableSendPromise;var Cx=function Tn(){try{var ft={xdrOnComplete:function(Dn,Jn,fr){var gr=ba(fr);if(gr)return mn(Dn,gr)},fetchOnComplete:function(Dn,Jn,fr,gr){var gi=ba(gr);if(gi)return Xt(Dn.status,gi,Dn.url,gi[Kr],Dn.statusText,fr||"")},xhrOnComplete:function(Dn,Jn,fr){var gr=ba(fr);if(gr)return pr(Dn,gr,gr[Kr])},beaconOnRetry:function(Dn,Jn,fr){return function Yn(ft,jt,Dn){var fr=ft&&ft.oriPayload;if(Bn)dn&&dn(fr,!0),In(Oe[xs](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var gr=[],gi=0;gi<fr[Kr];gi++){var Ao=fr[gi],Tc=[Ao];Dn(Kn(Tc),jt)?Oe._onSuccess(Tc,Tc[Kr]):gr[yu](Ao)}gr[Kr]>0&&(dn&&dn(gr,!0),In(Oe[xs](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(Dn,Jn,fr)}};return{enableSendPromise:Ue,isOneDs:!1,disableCredentials:!1,disableXhr:ct,disableBeacon:!Dt,disableBeaconSync:!Ct,senderOnCompleteCallBack:ft}}catch{}return null}();Un?Un.SetConfig(Cx):(Un=new sR)[xo](Cx,gr);var rM=Vr.httpXHROverride,iM=null,c0=null,$F=R0([3,1,2],Vr.transports);iM=Un&&Un[Xm]($F,!1);var QN=Un&&Un.getFallbackInst();Xe=function(ea,$v){return sr(QN,ea,$v)},dn=function(ea,$v){return sr(QN,ea,$v,!1)},iM=gt?rM:iM||rM||QN,Oe[jp]=function(ea,$v){return sr(iM,ea,$v)},Je&&(ae=jr);var ZN=R0([3,1],Vr.unloadTransports);Je||(ZN=ZN.filter(function(ea){return 2!==ea})),c0=Un&&Un[Xm](ZN,!0),c0=gt?rM:c0||rM,(gt||Vr.unloadTransports||!ae)&&c0&&(ae=function(ea,$v){return sr(c0,ea,$v)}),ae||(ae=Xe),zt=Vr.disableTelemetry,qe=Vr.convertUndefined||xc,qt=Vr.isRetryDisabled,$t=Vr.maxBatchInterval}))},Oe.processTelemetry=function(ft,jt){var Dn=(jt=Oe._getTelCtx(jt))[xs]();try{if(!to(ft,Dn))return;var fr=so(ft,Dn);if(!fr)return;var gr=C.serialize(fr),gi=Oe[El];Nt(gr),gi[Ea]({item:gr,cnt:0}),po()}catch(Tc){In(Dn,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+li(Tc),{exception:Ye(Tc)})}Oe.processNext(ft,jt)},Oe.isCompletelyIdle=function(){return!h&&0===$&&0===Oe._buffer[Jf]()},Oe.getOfflineListener=function(){return q},Oe._xhrReadyStateChange=function(ft,jt,Dn){if(!ur(jt))return pr(ft,jt,Dn)},Oe[Vp]=function(ft,jt,Dn){var Jn;if(void 0===ft&&(ft=!0),!h)try{var fr=Oe[El];if(zt)fr[mc]();else if(fr[Jf]()>0){var gr=fr.getItems();(function Ec(ft,jt){var Dn=function Gd(){var jt,ft="getNotifyMgr",Dn=Oe.core;return Dn&&(jt=Dn[ft]?Dn[ft]():Dn._notificationManager),jt}();if(Dn&&Dn.eventsSendRequest)try{Dn.eventsSendRequest(ft,jt)}catch(Jn){In(Oe[xs](),1,74,"send request notification failed: "+li(Jn),{exception:Ye(Jn)})}})(Dn||0,ft),Jn=jt?jt.call(Oe,gr,ft):Oe[jp](gr,ft)}Fs()}catch(Ao){var gi=Xg();(!gi||gi>9)&&In(Oe[xs](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+li(Ao),{exception:Ye(Ao)})}return Jn},Oe.getOfflineSupport=function(){return{getUrl:function(){return le},createPayload:Ml,serialize:Aa,batch:bh,shouldProcess:function(ft){return!!to(ft)}}},Oe._doTeardown=function(ft,jt){Oe.onunloadFlush(),qf(q,!1),nM()},Oe[Gp]=function(ft,jt,Dn){if(!ur(ft))return function or(ft,jt,Dn){In(Oe[xs](),2,26,"Failed to send telemetry.",{message:jt}),Oe._buffer&&Oe._buffer[$m](ft)}(ft,jt)},Oe[qm]=function(ft,jt){if(!ur(ft))return function xr(ft,jt){for(var Dn=[],Jn=[],gr=0,gi=jt.errors.reverse();gr<gi.length;gr++){var Ao=gi[gr],Tc=ft.splice(Ao.index,1)[0];jd(Ao.statusCode)?Jn[yu](Tc):Dn[yu](Tc)}ft[Kr]>0&&Oe[$p](ft,jt[Zm]),Dn[Kr]>0&&Oe[Gp](Dn,T_(null,["partial success",jt[Zm],"of",jt.itemsReceived].join(" "))),Jn[Kr]>0&&(_r(Jn),In(Oe[xs](),2,40,"Partial success. Delivered: "+ft[Kr]+", Failed: "+Dn[Kr]+". Will retry to send "+Jn[Kr]+" our of "+jt[Qm]+" items"))}(ft,jt)},Oe[$p]=function(ft,jt){if(!ur(ft))return function ai(ft,jt){Oe._buffer&&Oe._buffer[$m](ft)}(ft)},Oe._xdrOnLoad=function(ft,jt){if(!ur(jt))return mn(ft,jt)}}),n}
1return Gl(e,s),e.constructEnvelope=function(n,o,c,d){var h;return h=o===n.iKey||Qe(o)?n:_s(_s({},n),{iKey:o}),(vR[h.baseType]||FI)(c,h,d)},e}(Ep),yR=";",CR="=";function jI(s){if(!s)return{};var e=s[np](yR),n=Rl(e,function(c,d){var h=d[np](CR);return 2===h[Sr]&&(c[h[0][rp]()]=h[1]),c},{});return Ln(n)[Sr]>0&&(n.endpointsuffix&&(n[ip]=n[ip]||"https://"+(n.location?n.location+".":"")+"dc."+n.endpointsuffix),n[ip]=n[ip]||mT,Oi(n[ip],"/")&&(n[ip]=n[ip].slice(0,-1))),n}var TR=function(){return function s(e,n){var c,d,h,g,C,S,O,o=this,$=!1,ae=!1;function q(Ue,gt,ct,Je){if($){var Xe=function $t(Ue){try{var gt=le(Ue);return function nT(s){return s>0?Ci(Zu()/If*(s+1))>>>0:0}(1e6)<=gt.limit.samplingRate}catch{}return!1}(Ue);if(!Xe)return;var dn=le(Ue),Bn=an(Ue),Un=Pe(dn,c,Bn),Bt=!1,Ve=0,Oe=Pn(Ue);try{Un&&!Oe?(Ve=Da(dn.limit.maxSendNumber,Bn[op]+1),Bn[op]=0,Bt=!0,C[Ue]=!0,Bn[dT]=new Date):(C[Ue]=Un,Bn[op]+=1);var Mt=Ct(Ue);It(d,Mt,Bn);for(var mn=0;mn<Ve;mn++)qt(Ue,d,gt,ct)}catch{}return{isThrottled:Bt,throttleNum:Ve}}return Je&&zn(Ue).push({msgID:Ue,message:gt,severity:ct}),null}function le(Ue){return h[Ue]||h[109]}function de(Ue,gt){var ct,Je;try{var Xe=gt||{},dn={};dn.disabled=!!Xe.disabled;var Bn=Xe.interval||{};ae=Bn?.daysOfMonth&&Bn?.daysOfMonth[Sr]>0,dn.interval=function _e(Ue){Ue=Ue||{};var gt=Ue?.monthInterval,ct=Ue?.dayInterval;return Qe(gt)&&Qe(ct)&&(Ue.monthInterval=3,ae||(Ue.daysOfMonth=[28],ae=!0)),Ue={monthInterval:Ue?.monthInterval,dayInterval:Ue?.dayInterval,daysOfMonth:Ue?.daysOfMonth}}(Bn);var Un={samplingRate:(null===(ct=Xe.limit)||void 0===ct?void 0:ct.samplingRate)||100,maxSendNumber:(null===(Je=Xe.limit)||void 0===Je?void 0:Je.maxSendNumber)||1};dn.limit=Un,h[Ue]=dn}catch{}}function Pe(Ue,gt,ct){if(Ue&&!Ue.disabled&>&&vf(ct)){var Je=zt(),Xe=ct.date,dn=Ue.interval,Bn=1;if(dn?.monthInterval){var Un=12*(Je.getUTCFullYear()-Xe.getUTCFullYear())+Je.getUTCMonth()-Xe.getUTCMonth();Bn=qe(dn.monthInterval,0,Un)}var Bt=1;if(ae)Bt=Li(dn.daysOfMonth,Je[L_]());else if(dn?.dayInterval){var Ve=Ci((Je.getTime()-Xe.getTime())/864e5);Bt=qe(dn.dayInterval,0,Ve)}return Bn>=0&&Bt>=0}return!1}function Ct(Ue,gt){var ct=vf(gt)?gt:"";return Ue?"appInsightsThrottle"+ct+"-"+Ue:null}function zt(Ue){try{if(!Ue)return new Date;var gt=new Date(Ue);if(!isNaN(gt.getDate()))return gt}catch{}return null}function It(Ue,gt,ct){try{return XM(Ue,gt,Wr(JSON[F_](ct)))}catch{}return!1}function qe(Ue,gt,ct){return Ue<=0?1:ct>=gt&&(ct-gt)%Ue==0?Ci((ct-gt)/Ue)+1:-1}function qt(Ue,gt,ct,Je){In(gt,Je||1,Ue,ct)}function an(Ue){try{var gt=g[Ue];if(!gt){var ct=Ct(Ue,S);gt=function Et(Ue,gt,ct){try{var Je={date:zt(),count:0};if(Ue){var Xe=JSON.parse(Ue);return{date:zt(Xe.date)||Je.date,count:Xe[op]||Je[op],preTriggerDate:Xe.preTriggerDate?zt(Xe[dT]):void 0}}return It(gt,ct,Je),Je}catch{}return null}(YM(d,ct),d,ct),g[Ue]=gt}return g[Ue]}catch{}return null}function Pn(Ue){var gt=C[Ue];if(Qe(gt)){gt=!1;var ct=an(Ue);ct&&(gt=function Dt(Ue){try{if(Ue){var gt=new Date;return Ue.getUTCFullYear()===gt.getUTCFullYear()&&Ue.getUTCMonth()===gt.getUTCMonth()&&Ue[L_]()===gt[L_]()}}catch{}return!1}(ct[dT])),C[Ue]=gt}return C[Ue]}function zn(Ue){return Qe((O=O||{})[Ue])&&(O[Ue]=[]),O[Ue]}(function ie(){d=al(e),C={},g={},O={},h={},de(109),S=vf(n)?n:"",e.addUnloadHook(Yo(e.config,function(Ue){var gt=Ue.cfg;c=G_(),Kt(gt.throttleMgrCfg||{},function(Je,Xe){de(parseInt(Je),Xe)})}))})(),o._getDbgPlgTargets=function(){return[O]},o.getConfig=function(){return h},o.canThrottle=function(Ue){var gt=an(Ue);return Pe(le(Ue),c,gt)},o.isTriggered=function(Ue){return Pn(Ue)},o.isReady=function(){return $},o.flush=function(Ue){try{var gt=zn(Ue);if(gt&>[Sr]>0){var ct=gt.slice(0);return O[Ue]=[],Wt(ct,function(Je){q(Je.msgID,Je[rm],Je.severity,!1)}),!0}}catch{}return!1},o.flushAll=function(){try{if(O){var Ue=!0;return Kt(O,function(gt){var ct=o.flush(parseInt(gt));Ue=Ue&&ct}),Ue}}catch{}return!1},o.onReadyState=function(Ue,gt){return void 0===gt&&(gt=!0),($=!!Qe(Ue)||Ue)&>?o.flushAll():null},o.sendMessage=function(Ue,gt,ct){return q(Ue,gt,ct,!0)}}}(),GI={perfEvtsSendAll:!1};function IR(s){s.h=null;var e=s.cb;s.cb=[],Wt(e,function(n){fn(n.fn,[n.arg])})}function Sd(s,e,n,o){Wt(s,function(c){c&&c[e]&&(n?(n.cb[Ur]({fn:o,arg:c}),n.h=n.h||ec(IR,0,n)):fn(o,[c]))})}var Tl,$I=function(){function s(e){this.listeners=[];var n,o,c=[],d={h:null,cb:[]},h=La(e,GI);o=h[$u](function(g){n=!!g.cfg.perfEvtsSendAll}),Ki(s,this,function(g){Qn(g,"listeners",{g:function(){return c}}),g[df]=function(C){c[Ur](C)},g[f_]=function(C){for(var S=Li(c,C);S>-1;)c[uf](S,1),S=Li(c,C)},g[Bg]=function(C){Sd(c,Bg,d,function(S){S[Bg](C)})},g[Xh]=function(C,S){Sd(c,Xh,d,function(O){O[Xh](C,S)})},g[mf]=function(C,S){Sd(c,mf,S?d:null,function(O){O[mf](C,S)})},g[sl]=function(C){C&&(n||!C[v_]())&&Sd(c,sl,null,function(S){C.isAsync?ec(function(){return S[sl](C)},0):S[sl](C)})},g[Hg]=function(C){C&&C[nr]&&Sd(c,Hg,d,function(S){S[Hg](C)})},g[VE]=function(C){C&&C[ol]&&Sd(c,VE,d,function(S){S[VE](C)})},g[jE]=function(C,S){if(C>0){var O=S||0;Sd(c,jE,d,function($){$[jE](C,O)})}},g[zl]=function(C){var O,S=function(){o&&o.rm(),o=null,c=[],d.h&&d.h[zu](),d.h=null,d.cb=[]};if(Sd(c,"unload",null,function($){var ae=$[zl](C);ae&&(O||(O=[]),O[Ur](ae))}),O)return ks(function($){return Ps(Ha(O),function(){S(),$()})});S()}})}return s.__ieDyn=1,s}(),aC=function(s){function e(){var o,c,n=s.call(this)||this;function d(){o=0,c=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,d(),Ki(e,n,function(h,g){h.addTelemetryInitializer=function(C){return function SR(s,e,n){var o={id:e,fn:n};return Ra(s,o),{remove:function(){Wt(s,function(d,h){if(d.id===o.id)return s[uf](h,1),-1})}}}(c,o++,C)},h[ma]=function(C,S){(function sC(s,e,n){for(var o=!1,c=s[nr],d=0;d<c;++d){var h=s[d];
1if(h)try{if(!1===h.fn[el](null,[e])){o=!0;break}}catch(g){In(n,2,64,"Telemetry initializer failed: "+li(g),{exception:Ye(g)},!0)}}return!o})(c,C,S?S[rl]():h[rl]())&&h[Wo](C,S)},h[m_]=function(){d()}}),n}return Gl(e,s),e.__ieDyn=1,e}(Ep),zI="Plugins must provide initialize method",zA="SDK is still unloading...",ev=mr(((Tl={cookieCfg:{}})[Xu]={rdOnly:!0,ref:!0,v:[]},Tl[gf]={rdOnly:!0,ref:!0,v:[]},Tl[Yh]={ref:!0,v:{}},Tl[Ug]=Ks,Tl.loggingLevelConsole=0,Tl.diagnosticLogInterval=Ks,Tl));function KA(s,e){return new PP(e)}function WA(s,e){var n=!1;return Wt(e,function(o){if(o===s)return n=!0,-1}),n}function uC(s,e,n,o){n&&Kt(n,function(c,d){o&&Jt(d)&&Jt(e[c])&&uC(s,e[c],d,o),o&&Jt(d)&&Jt(e[c])?uC(s,e[c],d,o):s.set(e,c,d)})}function dC(s,e){var n=null,o=-1;return Wt(s,function(c,d){if(c.w===e)return n=c,o=d,-1}),{i:o,l:n}}var zp=function(){function s(){var e,n,o,c,d,h,g,C,S,O,$,ae,q,ie,le,de,_e,Pe,Ct,Dt,Et,zt,It,qe,qt,$t,an,Pn,zn,Ue,gt,ct,Je;Ki(s,this,function(Xe){function Un(){zn=!0,Qe(Et)?($t=yd.INACTIVE,In(o,1,112,"ikey can't be resolved from promises")):$t=yd.ACTIVE,Bt()}function Bt(){n&&(Xe.releaseQueue(),Xe.pollInternalLogs())}function Ve(Ft){return gt&>[$h]||Je||(Ft||o&&o.queue[nr]>0)&&(ct||(ct=!0,Ml(e[$u](function(sr){var Kn=sr.cfg.diagnosticLogInterval;(!Kn||!(Kn>0))&&(Kn=1e4);var rt=!1;gt&&(rt=gt[$h],gt[zu]()),gt=function dM(s,e){return qc(!1,b,ze[je](arguments))}(ai,Kn),gt.unref(),gt[$h]=rt}))),gt[$h]=!0),gt}function Oe(){var Ft={};qe=[];var Mn=function(sr){sr&&Wt(sr,function(Kn){Kn[$l]&&Kn[g_]&&!Ft[Kn.identifier]&&(qe[Ur](Kn[$l]+"="+Kn[g_]),Ft[Kn.identifier]=Kn)})};Mn(ae),$&&Wt($,function(sr){Mn(sr)}),Mn(O)}function Mt(){n=!1,(e=La({},ev,Xe[No])).cfg[xg]=1,Qn(Xe,"config",{g:function(){return e.cfg},s:function(Mn){Xe.updateCfg(Mn,!1)}}),Qn(Xe,"pluginVersionStringArr",{g:function(){return qe||Oe(),qe}}),Qn(Xe,"pluginVersionString",{g:function(){return qt||(qe||Oe(),qt=qe.join(";")),qt||Hr}}),Qn(Xe,"logger",{g:function(){return o||(o=new tm(e.cfg),e[No]=o),o},s:function(Mn){e[No]=Mn,o!==Mn&&(qf(o,!1),o=Mn)}}),Xe[No]=new tm(e.cfg),It=[];var Ft=Xe.config[Xu]||[];Ft.splice(0,Ft[nr]),Ra(Ft,It),ie=new aC,c=[],qf(d,!1),d=null,h=null,g=null,qf(C,!1),C=null,S=null,O=[],$=null,ae=null,q=!1,le=null,de=nc("AIBaseCore",!0),_e=nA(),Dt=null,Et=null,Pe=rA(),zt=[],qt=null,qe=null,Je=!1,gt=null,ct=!1,$t=0,an=null,Pn=null,zn=!1,Ue=null}function mn(){var Ft=Ba(or(),e.cfg,Xe);return Ft[p_](Ve),Ft}function Tn(Ft){var Mn=function DR(s,e,n){var o=[],c=[],d={};return Wt(n,function(h){(Qe(h)||Qe(h[jh]))&&cn(zI);var g=h[__],C=h[$l];h&&g&&(Qe(d[g])?d[g]=C:Fa(s,"Two extensions have same priority #"+g+" - "+d[g]+", "+C)),!g||g<e?o[Ur](h):c[Ur](h)}),{core:o,channels:c}}(Xe[No],500,O);S=null,qt=null,qe=null,ae=_y(Ra(ae=($||[])[0]||[],Mn[gf]));var sr=Ra(_y(Mn[ls]),ae);It=Dr(sr);var Kn=Xe.config[Xu]||[];Kn.splice(0,Kn[nr]),Ra(Kn,It);var rt=mn();ae&&ae[nr]>0&&XT(rt[hf](ae),sr),XT(rt,sr),Ft&&so(Ft)}function pr(Ft){var Mn=null,sr=null,Kn=[];return Wt(It,function(rt){if(rt[$l]===Ft&&rt!==ie)return sr=rt,-1;rt.getChannel&&Kn[Ur](rt)}),!sr&&Kn[nr]>0&&Wt(Kn,function(rt){if(!(sr=rt.getChannel(Ft)))return-1}),sr&&(Mn={plugin:sr,setEnabled:function(rt){ou(sr)[tc]=!rt},isEnabled:function(){var rt=ou(sr);return!rt[tl]&&!rt[tc]},remove:function(rt,Nt){void 0===rt&&(rt=!0);var Xt=[sr];xr(Xt,{reason:1,isAsync:rt},function(pn){pn&&Tn({reason:32,removed:Xt}),Nt&&Nt(pn)})}}),Mn}function or(){if(!S){var Ft=(It||[]).slice();-1===Li(Ft,ie)&&Ft[Ur](ie),S=su(_y(Ft),e.cfg,Xe)}return S}function xr(Ft,Mn,sr){if(Ft&&Ft[nr]>0){var rt=Im(su(Ft,e.cfg,Xe),Xe);rt[p_](function(){var Nt=!1,Xt=[];Wt(O,function(pn,Yn){WA(pn,Ft)?Nt=!0:Xt[Ur](pn)}),O=Xt,qt=null,qe=null;var Yt=[];$&&(Wt($,function(pn,Yn){var ur=[];Wt(pn,function(jr){WA(jr,Ft)?Nt=!0:ur[Ur](jr)}),Yt[Ur](ur)}),$=Yt),sr&&sr(Nt),Ve()}),rt[Wo](Mn)}else sr(!1)}function ai(){if(o&&o.queue){var Ft=o.queue.slice(0);o.queue[nr]=0,Wt(Ft,function(Mn){var sr={name:le||"InternalMessageId: "+Mn[zh],iKey:Et,time:_f(new Date),baseType:ep.dataType,baseData:{message:Mn[nl]}};Xe.track(sr)})}}function ba(Ft,Mn,sr,Kn){var rt=1,Nt=!1,Xt=null;function Yt(){rt--,Nt&&0===rt&&(Xt&&Xt[zu](),Xt=null,Mn&&Mn(Nt),Mn=null)}return Kn=Kn||5e3,ae&&ae[nr]>0&&mn()[hf](ae).iterate(function(Yn){if(Yn.flush){rt++;var ur=!1;Yn.flush(Ft,function(){ur=!0,Yt()},sr)||ur||(Ft&&null==Xt?Xt=ec(function(){Xt=null,Yt()},Kn):Yt())}}),Nt=!0,Yt(),!0}function so(Ft){var Mn=Vf(or(),Xe);Mn[p_](Ve),(!Xe._updateHook||!0!==Xe._updateHook(Mn,Ft))&&Mn[Wo](Ft)}function Aa(Ft){var Mn=Xe[No];Mn?(In(Mn,2,73,Ft),Ve()):cn(Ft)}function bh(Ft){var Mn=Xe[h_]();Mn&&Mn[Xh]([Ft],2)}function Ml(Ft){Pe.add(Ft)}
1Mt(),Xe._getDbgPlgTargets=function(){return[It,c]},Xe[Ms]=function(){return n},Xe.activeStatus=function(){return $t},Xe._setPendingStatus=function(){$t=3},Xe[jh]=function(Ft,Mn,sr,Kn){q&&cn(zA),Xe[Ms]()&&cn("Core cannot be initialized more than once"),Ft=(e=La(Ft,ev,sr||Xe[No],!1)).cfg,Ml(e[$u](function(Xt){var Yt=Xt.cfg;Pn=Yt.initInMemoMaxSize||100,function dn(Ft){var Mn=Ft.instrumentationKey,sr=Ft.endpointUrl;if(3!==$t){if(Qe(Mn)){Et=null,$t=yd.INACTIVE;var Kn="Please provide instrumentation key";return void(n?(In(o,1,100,Kn),Bt()):cn(Kn))}var rt=[];mi(Mn)?(rt[Ur](Mn),Et=null):Et=Mn,mi(sr)?(rt[Ur](sr),an=null):an=sr,rt[nr]?function Bn(Ft,Mn){zn=!1,$t=3;var sr=vf(Ft.initTimeOut)?Ft.initTimeOut:5e4,Kn=function EA(s,e){return!_o&&(_o=Dp(us)),_o.v(s,e)}(Mn);Ue&&Ue[zu](),Ue=ec(function(){Ue=null,zn||Un()},sr),Ps(Kn,function(rt){try{if(zn)return;if(!rt.rejected){var Nt=rt[io];if(Nt&&Nt[nr]){var Xt=Nt[0];if(Et=Xt&&Xt[io],Nt[nr]>1){var Yt=Nt[1];an=Yt&&Yt[io]}}Et&&(Ft.instrumentationKey=Et,Ft.endpointUrl=an)}Un()}catch{zn||Un()}})}(Ft,rt):Un()}}(Yt);var pn=Xt.ref(Xt.cfg,Yh);Kt(pn,function(Yn){Xt.ref(pn,Yn)})})),Ct=function wR(s,e,n,o){return e.add(s[$u](function(c){var d=c.cfg.disableDbgExt;!0===d&&o&&(n[f_](o),o=null),n&&!o&&!0!==d&&(o=function J0(s){if(!Zh){Zh={};for(var e=0;e<Z0[nr];e++)Zh[Z0[e]]=cT(Z0[e],s)}return Zh}(c.cfg),n[df](o))})),o}(e,Pe,(d=Kn)&&Xe[h_](),Ct),function to(){var Ft;Ml(e[$u](function(Mn){if(Mn.cfg.enablePerfMgr){var Kn=Mn.cfg[Ug];(Ft!==Kn||!Ft)&&(Kn||(Kn=KA),Ws(Mn.cfg,Ug,Kn),Ft=Kn,g=null),!h&&!g&&Ht(Kn)&&(g=Kn(Xe,Xe[h_]()))}else g=null,Ft=null}))}(),Xe[No]=sr;var rt=Ft[Xu];if((O=[])[Ur].apply(O,vM(vM([],Mn),rt)),$=Ft[gf],Tn(null),(!ae||0===ae[nr])&&cn("No "+gf+" available"),$&&$[nr]>1){var Nt=Xe[Gh]("TeeChannelController");(!Nt||!Nt.plugin)&&In(o,1,28,"TeeChannel required")}(function ih(s,e,n){Wt(e,function(o){var c=Yo(s,o.w,n);delete o.w,o.rm=function(){c.rm()}})})(Ft,zt,o),zt=null,n=!0,$t===yd.ACTIVE&&Bt()},Xe.getChannels=function(){var Ft=[];return ae&&Wt(ae,function(Mn){Ft[Ur](Mn)}),Dr(Ft)},Xe.track=function(Ft){vy(Xe[y_](),function(){return"AppInsightsCore:track"},function(){null===Ft&&(bh(Ft),cn("Invalid telemetry item")),!Ft[Ku]&&Qe(Ft[Ku])&&(bh(Ft),cn("telemetry name required")),Ft.iKey=Ft.iKey||Et,Ft.time=Ft.time||_f(new Date),Ft.ver=Ft.ver||"4.0",!q&&Xe[Ms]()&&$t===yd.ACTIVE?mn()[Wo](Ft):$t!==yd.INACTIVE&&c[nr]<=Pn&&c[Ur](Ft)},function(){return{item:Ft}},!Ft.sync)},Xe[ff]=mn,Xe[h_]=function(){return d||(d=new $I(e.cfg),Xe._notificationManager=d),d},Xe[df]=function(Ft){Xe.getNotifyMgr()[df](Ft)},Xe[f_]=function(Ft){d&&d[f_](Ft)},Xe.getCookieMgr=function(){return C||(C=vm(e.cfg,Xe[No])),C},Xe.setCookieMgr=function(Ft){C!==Ft&&(qf(C,!1),C=Ft)},Xe[y_]=function(){return h||g||null},Xe.setPerfMgr=function(Ft){h=Ft},Xe.eventCnt=function(){return c[nr]},Xe.releaseQueue=function(){if(n&&c[nr]>0){var Ft=c;c=[],2===$t?Wt(Ft,function(Mn){Mn.iKey=Mn.iKey||Et,mn()[Wo](Mn)}):In(o,2,20,"core init status is not active")}},Xe.pollInternalLogs=function(Ft){return le=Ft||null,Je=!1,gt&>[zu](),Ve(!0)},Xe[xE]=function(){Je=!0,gt&>[zu](),ai()},yf(Xe,function(){return ie},["addTelemetryInitializer"]),Xe[zl]=function(Ft,Mn,sr){void 0===Ft&&(Ft=!0),n||cn("SDK is not initialized"),q&&cn(zA);var rt,Kn={reason:50,isAsync:Ft,flushComplete:!1};Ft&&!Mn&&(rt=ks(function(Yt){Mn=Yt}));var Nt=Im(or(),Xe);function Xt(Yt){Kn.flushComplete=Yt,q=!0,_e.run(Nt,Kn),Xe[xE](),Nt[Wo](Kn)}return Nt[p_](function(){Pe.run(Xe[No]),PA([C,d,o],Ft,function(){Mt(),Mn&&Mn(Kn)})},Xe),ai(),ba(Ft,Xt,6,sr)||Xt(!1),rt},Xe[Gh]=pr,Xe.addPlugin=function(Ft,Mn,sr,Kn){if(!Ft)return Kn&&Kn(!1),void Aa(zI);var rt=pr(Ft[$l]);if(rt&&!Mn)return Kn&&Kn(!1),void Aa("Plugin ["+Ft[$l]+"] is already loaded!");var Nt={reason:16};function Xt(Yn){O[Ur](Ft),Nt.added=[Ft],Tn(Nt),Kn&&Kn(!0)}if(rt){var Yt=[rt.plugin];xr(Yt,{reason:2,isAsync:!!sr},function(Yn){Yn?(Nt.removed=Yt,Nt.reason|=32,Xt()):Kn&&Kn(!1)})}else Xt()},Xe.updateCfg=function(Ft,Mn){var sr;if(void 0===Mn&&(Mn=!0),Xe[Ms]()){sr={reason:1,cfg:e.cfg,oldCfg:As({},e.cfg),newConfig:As({},Ft),merge:Mn};var Kn=e.cfg;(Ft=sr.newConfig)[Xu]=Kn[Xu],Ft[gf]=Kn[gf]}e._block(function(rt){var Nt=rt.cfg;uC(rt,Nt,Ft,Mn),Mn||Kt(Nt,function(Xt){ki(Ft,Xt)||rt.set(Nt,Xt,Ks)}),rt.setDf(Nt,ev)},!0),e.notify(),sr&&so(sr)},Xe.evtNamespace=function(){return de},Xe.flush=ba,Xe.getTraceCtx=function(Ft){return Dt||(Dt=function bO(s){var e={};return{getName:function(){return e[Ku]},setName:function(n){s&&s.setName(n),e[Ku]=n},getTraceId:function(){return e.traceId},setTraceId:function(n){s&&s.setTraceId(n),MT(n)&&(e.traceId=n)},getSpanId:function(){return e.spanId},setSpanId:function(n){s&&s.setSpanId(n),ac(n)&&(e.spanId=n)},getTraceFlags:function(){return e[b0]},setTraceFlags:function(n){s&&s.setTraceFlags(n),e[b0]=n}}}()),Dt},Xe.setTraceCtx=function(Ft){Dt=Ft||null},Xe.addUnloadHook=Ml,Gg(Xe,"addUnloadCb",function(){return _e},"add"),Xe.onCfgChange=function(Ft){var Mn;return Mn=n?Yo(e.cfg,Ft,Xe[No]):function YA(s,e){var n=dC(s,e).l;return n||(n={w:e,rm:function(){var o=dC(s,e);-1!==o.i&&s[uf](o.i,1)}},s[Ur](n)),n}(zt,Ft),function MR(s){return Qn({rm:function(){s.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(s)+">"}})}(Mn)},Xe.getWParam=function(){return Go()||e.cfg.enableWParam?0:-1}})}return s.__ieDyn=1,s}(),XA="duration",bd="properties",Il="requestUrl",Ad="length",Tu="traceID",oh="spanID",Ls="traceFlags",tv="context",Kp="aborted",fC="_addHook",f
1s="core",KI="includeCorrelationHeaders",Wp="getAbsoluteUrl",Sl="headers",oo="requestHeaders",hC="setRequestHeader",WI="trackDependencyDataInternal",Yp="startTime",sh="toLowerCase",pC="enableRequestHeaderTracking",YI="enableAjaxErrorStatusText",XI="enableAjaxPerfTracking",qA="maxAjaxCallsPerView",QA="excludeRequestFromAutoTrackingPatterns",qI="disableAjaxTracking",Xp="ajaxPerfLookupDelay",ZA="disableFetchTracking",JA="enableResponseHeaderTracking",Lc="status",bl="statusText",nv="headerMap",Dd="requestSentTime",gC="getTraceId",QI="getTraceFlags",_c="method",ah="errorStatusText",eD="stateChangeAttached",tD="responseText",qp="responseFinishedTime",ch="CreateTrackItem",nD="getAllResponseHeaders",ZI="getPartAProps",mC="perfMark",vC="perfTiming",_C="ajaxDiagnosticsMessage",yC="correlationContext",JI="ajaxTotalDuration",CC="eventTraceCtx";function rD(s,e,n){var o=0,c=s[e],d=s[n];return c&&d&&(o=Zs(c,d)),o}function lh(s,e,n,o,c){var d=0,h=rD(n,o,c);return h&&(d=uh(s,e,dl(h))),d}function uh(s,e,n){var o="ajaxPerf",c=0;return s&&e&&n&&((s[o]=s[o]||{})[e]=n,c=1),c}var Co,uk=function(){return function s(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e[eD]=!1}}(),OR=function(){function s(e,n,o,c){var d=this,h=o;d[mC]=null,d.completed=!1,d.requestHeadersSize=null,d[oo]=null,d.responseReceivingDuration=null,d.callbackDuration=null,d[JI]=null,d[Kp]=0,d.pageUrl=null,d[Il]=null,d.requestSize=0,d[_c]=null,d[Lc]=null,d[Dd]=null,d.responseStartedTime=null,d[qp]=null,d.callbackFinishedTime=null,d.endTime=null,d.xhrMonitoringState=new uk,d.clientFailure=0,d[Tu]=e,d[oh]=n,d[Ls]=c?.getTraceFlags(),d[CC]=c?{traceId:c[gC](),spanId:c.getSpanId(),traceFlags:c[QI]()}:null,Ki(s,d,function(C){C.getAbsoluteUrl=function(){return C[Il]?function Pb(s){var e,n=um(s);return n&&(e=n.href),e}(C[Il]):null},C.getPathName=function(){return C[Il]?Nf(h,function NT(s,e){return s?s.toUpperCase()+" "+e:e}(C[_c],C[Il])):null},C[ch]=function(S,O,$){var ae;if(C.ajaxTotalDuration=at(1e3*Zs(C.requestSentTime,C.responseFinishedTime))/1e3,C[JI]<0)return null;var q=((ae={id:"|"+C[Tu]+"."+C[oh],target:C[Wp](),name:C.getPathName(),type:S,startTime:null,duration:C[JI],success:+C[Lc]>=200&&+C[Lc]<400,responseCode:+C[Lc]})[bd]={HttpMethod:C[_c]},ae),ie=q[bd];if(C[Kp]&&(ie[Kp]=!0),C[Dd]&&(q[Yp]=new Date,q[Yp].setTime(C[Dd])),function lk(s,e){var n=s[vC],o=e[bd]||{},c=0,d="name",h="Start",g="End",C="domainLookup",S="connect",O="redirect",$="request",ae="response",q="startTime",ie=C+h,le=C+g,de=S+h,_e=S+g,Pe=$+h,Ct=$+g,Dt=ae+h,Et=ae+g,zt=O+h,It=O=g,qe="transferSize",qt="encodedBodySize",$t="decodedBodySize",an="serverTiming";if(n){c|=lh(o,O,n,zt,It),c|=lh(o,C,n,ie,le),c|=lh(o,S,n,de,_e),c|=lh(o,$,n,Pe,Ct),c|=lh(o,ae,n,Dt,Et),c|=lh(o,"networkConnect",n,q,_e),c|=lh(o,"sentRequest",n,Pe,Et);var Pn=n[XA];Pn||(Pn=rD(n,q,Et)||0),c|=uh(o,XA,Pn),c|=uh(o,"perfTotal",Pn);var zn=n[an];if(zn){var Ue={};Wt(zn,function(gt,ct){var Je=jg(gt[d]||""+ct),Xe=Ue[Je]||{};Kt(gt,function(dn,Bn){(dn!==d&&Qt(Bn)||_t(Bn))&&(Xe[dn]&&(Bn=Xe[dn]+";"+Bn),(Bn||!Qt(Bn))&&(Xe[dn]=Bn))}),Ue[Je]=Xe}),c|=uh(o,an,Ue)}c|=uh(o,qe,n[qe]),c|=uh(o,qt,n[qt]),c|=uh(o,$t,n[$t])}else s[mC]&&(c|=uh(o,"missing",s.perfAttempts));c&&(e[bd]=o)}(C,q),O&&Ln(C.requestHeaders)[Ad]>0&&(ie[oo]=C[oo]),$){var le=$();if(le){var de=le[yC];if(de&&(q.correlationContext=de),le[nv]&&Ln(le.headerMap)[Ad]>0&&(ie.responseHeaders=le[nv]),C[ah])if(C[Lc]>=400){var _e=le.type;(""===_e||"text"===_e)&&(ie.responseText=le.responseText?le[bl]+" - "+le.responseText:le[bl]),"json"===_e&&(ie.responseText=le.response?le[bl]+" - "+JSON.stringify(le.response):le[bl])}else 0===C[Lc]&&(ie.responseText=le[bl]||"")}}return q},C[ZI]=function(){var S=null,O=C[CC];if(O&&(O.traceId||O.spanId)){var $=(S={}).trace={traceID:O.traceId,parentID:O.spanId};Qe(O[Ls])||($[Ls]=O[Ls])}return S}})}return s.__ieDyn=1,s}(),wd="diagLog",Md="_ajaxData",dh="fetch",Qp="Failed to monitor XMLHttpRequest",Zp=", monitoring data for this ajax call ",Jp=Zp+"may be incorrect.",iD=Zp+"won't be sent.",oD="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",sD="Failed to add custom defined request context as configured call back may missing a null check.",RR="Failed to calculate the duration of the ",aD=0,eg=function(s,e){return s&&e&&s[Md]?(s[Md].i||{})[e]:null},eS=function(s,e){var n=!1;if(s){var o=(s[Md]||{}).xh;o&&Wt(o,function(c){if(c.n===e)return n=!0,-1})}return n};function iv(s,e){var n="";try{var o=eg(s,e);o&&o[Il]&&(n+="(url: '"+o[Il]+"')")}catch{}return n}function ov(s,e,n,o,c){In(s[wd](),1,e,n,o,c)}function Al(s,e,n,o,c){In(s[wd](),2,e,n,o,c)}function sv(s,e,n){return function(o){var c;ov(s,e,n,((c={})[_C]=iv(o.inst,s._ajaxDataId),c.exception=Ye(o.err),c))}}function fh(s,e){return s&&e?zi(s,e):-1}function lD(s,e,n){var o={id:e,fn:n};return s.push(o),{remove:function(){Wt(s,function(c,d){if(c.id===o.id)return s.splice(d,1),-1})}}}function EC(s,e,n,o){var c=!0;
1return Wt(e,function(d,h){try{!1===d.fn.call(null,n)&&(c=!1)}catch(g){In(s&&s.logger,1,64,"Dependency "+o+" [#"+h+"] failed: "+li(g),{exception:Ye(g)},!0)}}),c}var av="*.blob.core.",uD=Dr([av+"windows.net",av+"chinacloudapi.cn",av+"cloudapi.de",av+"usgovcloudapi.net"]),kR=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],xR=Dr(((Co={})[qA]=500,Co[qI]=!1,Co[ZA]=!1,Co[QA]=void 0,Co.disableCorrelationHeaders=!1,Co.distributedTracingMode=1,Co.correlationHeaderExcludedDomains=uD,Co.correlationHeaderDomains=void 0,Co.correlationHeaderExcludePatterns=void 0,Co.appId=void 0,Co.enableCorsCorrelation=!1,Co[pC]=!1,Co[JA]=!1,Co[YI]=!1,Co[XI]=!1,Co.maxAjaxPerfLookupAttempts=3,Co[Xp]=25,Co.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Co.addRequestContext=void 0,Co.addIntEndpoints=!0,Co)),LR=function(s){function e(){var o,c,d,h,g,C,S,O,$,ae,q,ie,le,de,_e,Pe,Ct,Dt,Et,zt,It,qe,qt,$t,an,Pn,zn,Ue,gt,ct,n=s.call(this)||this;return n.identifier=e.identifier,n.priority=120,Ki(e,n,function(Je,Xe){var dn=Xe[fC];function Bn(){var rt=Ys();o=!1,c=!1,ct=!1,d=rt&&rt.host&&rt.host[sh](),h=null,g=!1,C=!1,S=0,O=null,$=!1,ae=!1,q=null,ie=!1,le=0,de=!1,_e={},Pe=!1,Ct=!1,Dt=null,Et=null,zt=null,qe=0,qt=[],$t=[],It=nc("ajaxData"),Je._ajaxDataId=It,an=null,Pn=1,zn=1,Ue=1,gt=null}function Ve(rt){var Nt=!0;return(rt||an)&&Wt(an,function(Xt){if(Xt[sh]()===rt[sh]())return Nt=!1,-1}),Nt}function Mt(rt,Nt,Xt){dn(function fd(s,e,n){return s?jf(s[ga],e,n,!1):null}(rt,Nt,Xt))}function Tn(rt,Nt,Xt){var Yt=!1,pn=((Qt(Nt)?Nt:(Nt||{}).url||"")||"")[sh]();if(Wt(Dt,function(jr){var _r=jr;Qt(jr)&&(_r=new RegExp(jr)),Yt||(Yt=_r.test(pn))}),Yt)return Yt;var Yn=fh(pn,"?"),ur=fh(pn,"#");return(-1===Yn||-1!==ur&&ur<Yn)&&(Yn=ur),-1!==Yn&&(pn=pn.substring(0,Yn)),Qe(rt)?Qe(Nt)||(Yt="object"==typeof Nt&&!0===Nt[nd]||!!Xt&&!0===Xt[nd]):Yt=!0===rt[nd]||!0===pn[nd],!Yt&&pn&&PT(pn)&&(Yt=!0),Yt?_e[pn]||(_e[pn]=1):_e[pn]&&(Yt=!0),Yt}function pr(rt,Nt,Xt){var Yt=!0,pn=c;return Qe(rt)||(Yt=!0===Xt||!Qe(Nt)),pn&&Yt}function or(){var rt=null;return Je[fs]&&Je[fs].getTraceCtx&&(rt=Je[fs].getTraceCtx(!1)),!rt&&O&&O.telemetryTrace&&(rt=xT(O.telemetryTrace)),rt}function Aa(rt,Nt){if(Nt[Il]&&q&&ie){var Xt=$i();if(Xt&&Ht(Xt.mark)){aD++;var Yt=q+rt+"#"+aD;Xt.mark(Yt);var pn=Xt.getEntriesByName(Yt);pn&&1===pn[Ad]&&(Nt[mC]=pn[0])}}}function bh(rt,Nt,Xt,Yt){var pn=Nt[mC],Yn=$i(),ur=Pn,jr=zn,_r=Nt[Il],Ri=0;!function po(){try{if(Yn&&pn){Ri++;for(var Fs=null,jd=Yn.getEntries(),Gd=jd[Ad]-1;Gd>=0;Gd--){var Ec=jd[Gd];if(Ec){if("resource"===Ec.entryType)Ec.initiatorType===rt&&(-1!==fh(Ec.name,_r)||-1!==fh(_r,Ec.name))&&(Fs=Ec);else if("mark"===Ec.entryType&&Ec.name===pn.name){Nt[vC]=Fs;break}if(Ec[Yp]<pn[Yp]-1e3)break}}}!pn||Nt[vC]||Ri>=ur||!1===Nt.async?(pn&&Ht(Yn.clearMarks)&&Yn.clearMarks(pn.name),Nt.perfAttempts=Ri,Xt()):ec(po,jr)}catch(gE){Yt(gE)}}()}function Ft(rt){var Nt="";try{Qe(rt)||(Nt+="(url: '".concat("string"==typeof rt?rt:rt.url,"')"))}catch(Xt){ov(Je,15,"Failed to grab failed fetch diagnostics message",{exception:Ye(Xt)})}return Nt}function Mn(rt,Nt,Xt,Yt,pn,Yn,ur){function jr(_r,Ri,po){var Fs=po||{};Fs.fetchDiagnosticsMessage=Ft(Xt),Ri&&(Fs.exception=Ye(Ri)),Al(Je,_r,RR+"fetch call"+iD,Fs)}pn&&(pn[qp]=hm(),pn[Lc]=Nt,bh(dh,pn,function(){var Ri,_r=pn[ch]("Fetch",g,Yn);try{Et&&(Ri=Et({status:Nt,request:Xt,response:Yt}))}catch{Al(Je,104,sD)}if(_r){void 0!==Ri&&(_r[bd]=_s(_s({},_r.properties),Ri));var po=pn[ZI]();Kn($t,Je[fs],pn,_r,null,po)}else jr(14,null,{requestSentTime:pn[Dd],responseFinishedTime:pn[qp]})},function(_r){jr(18,_r,null)}))}function Kn(rt,Nt,Xt,Yt,pn,Yn){var ur=!0;rt[Ad]>0&&(ur=EC(Nt,rt,{item:Yt,properties:pn,sysProperties:Yn,context:Xt?Xt[tv]:null,aborted:!!Xt&&!!Xt[Kp]},"initializer")),ur&&Je[WI](Yt,pn,Yn)}Bn(),Je.initialize=function(rt,Nt,Xt,Yt){Je.isInitialized()||(Xe.initialize(rt,Nt,Xt,Yt),zt=hl(nc("ajax"),Nt&&Nt.evtNamespace&&Nt.evtNamespace()),function Un(rt){Je[fC](Yo(rt,function(Nt){var Yt=Ba(null,Nt.cfg,Je[fs]);h=Yt.getExtCfg(e.identifier,xR),Ue=h.distributedTracingMode,g=h[pC],C=h[YI],ie=h[XI],le=h[qA],Dt=[].concat(h[QA]||[],!1!==h.addIntEndpoints?kR:[]),Et=h.addRequestContext,ae=0===Ue||1===Ue,$=1===Ue||2===Ue,ie&&(q=It),Pe=!!h[qI],Pn=h.maxAjaxPerfLookupAttempts,zn=h[Xp],an=h.ignoreHeaders,gt=h.appId}))}(rt),function mn(){(function NR(s,e){var n,o=!1;if(qg()){var c=XMLHttpRequest[ga];o=!(Qe(c)||Qe(c.open)||Qe(c.send)||Qe(c.abort))}var d=Xg();if(d&&d<9&&(o=!1),o)try{var h=new XMLHttpRequest,g={xh:[],i:(n={},n[e]={},n)};h[Md]=g;var C=XMLHttpRequest[ga].open;XMLHttpRequest[ga].open=C}catch(S){o=!1,ov(s,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Ye(S)})}return o}
1)(Je,It)&&Je[fC](Yo(h,function(){g=h[pC],!(Pe=!!h[qI])&&!c&&(Mt(XMLHttpRequest,"open",{ns:zt,req:function(rt,Nt,Xt,Yt){if(!Pe){var pn=rt.inst,Yn=eg(pn,It);!Tn(pn,Xt)&&pr(pn,Yn,!0)&&((!Yn||!Yn.xhrMonitoringState.openDone)&&(Yn=function xr(rt,Nt,Xt,Yt){var pn,Yn=or(),ur=Yn&&Yn[gC]()||fl(),jr=Bs(fl(),0,16),_r=rt[Md]=rt[Md]||{xh:[],i:{}},Ri=_r.i=_r.i||{},po=Ri[It]=Ri[It]||new OR(ur,jr,Je[wd](),null===(pn=Je.core)||void 0===pn?void 0:pn.getTraceCtx());return po[Ls]=Yn&&Yn[QI](),po[_c]=Nt,po[Il]=Xt,po.xhrMonitoringState.openDone=!0,po[oo]={},po.async=Yt,po[ah]=C,po}(pn,Nt,Xt,Yt)),function ai(rt,Nt){Nt.xhrMonitoringState[eD]=pl(rt,"readystatechange",function(){var Xt;try{rt&&4===rt.readyState&&pr(rt,Nt)&&function to(rt){var Nt=eg(rt,It);function Xt(Yt,pn){var Yn=pn||{};Yn.ajaxDiagnosticsMessage=iv(rt,It),Yt&&(Yn.exception=Ye(Yt)),Al(Je,14,RR+"ajax call"+iD,Yn)}Nt[qp]=hm(),Nt[Lc]=rt[Lc],bh("xmlhttprequest",Nt,function(){try{var Yt=Nt[ch]("Ajax",g,function(){var _r,Ri=((_r={statusText:rt[bl],headerMap:null})[yC]=function so(rt){var Nt;try{var Xt=rt[nD]();if(null!==Xt&&-1!==fh(Xt[sh](),Ti[8]))return gp(rt.getResponseHeader(Ti[0]))}catch(Yn){Al(Je,18,oD,((Nt={})[_C]=iv(rt,It),Nt.exception=Ye(Yn),Nt))}}(rt),_r.type=rt.responseType,_r[tD]=function ba(rt){try{var Nt=rt.responseType;if(""===Nt||"text"===Nt)return rt[tD]}catch{}return null}(rt),_r.response=rt.response,_r);if(de){var po=rt[nD]();if(po){var Fs=Wr(po).split(/[\r\n]+/),jd={};Wt(Fs,function(Gd){var Ec=Gd.split(": "),gE=Ec.shift(),nM=Ec.join(": ");Ve(gE)&&(jd[gE]=nM)}),Ri[nv]=jd}}return Ri}),pn=void 0;try{Et&&(pn=Et({status:rt[Lc],xhr:rt}))}catch{Al(Je,104,sD)}if(Yt){void 0!==pn&&(Yt[bd]=_s(_s({},Yt.properties),pn));var Yn=Nt[ZI]();Kn($t,Je[fs],Nt,Yt,null,Yn)}else Xt(null,{requestSentTime:Nt[Dd],responseFinishedTime:Nt[qp]})}finally{try{var jr=(rt[Md]||{i:{}}).i||{};jr[It]&&(jr[It]=null)}catch{}}},function(Yt){Xt(Yt,null)})}(rt)}catch(pn){var Yt=Ye(pn);(!Yt||-1===fh(Yt[sh](),"c00c023f"))&&ov(Je,16,Qp+" 'readystatechange' event handler"+Jp,((Xt={})[_C]=iv(rt,It),Xt.exception=Yt,Xt))}},zt)}(pn,Yn))}},hkErr:sv(Je,15,Qp+".open"+Jp)}),Mt(XMLHttpRequest,"send",{ns:zt,req:function(rt,Nt){if(!Pe){var Xt=rt.inst,Yt=eg(Xt,It);pr(Xt,Yt)&&!Yt.xhrMonitoringState.sendDone&&(Aa("xhr",Yt),Yt[Dd]=hm(),Je[KI](Yt,void 0,void 0,Xt),Yt.xhrMonitoringState.sendDone=!0)}},hkErr:sv(Je,17,Qp+Jp)}),Mt(XMLHttpRequest,"abort",{ns:zt,req:function(rt){if(!Pe){var Nt=rt.inst,Xt=eg(Nt,It);pr(Nt,Xt)&&!Xt.xhrMonitoringState.abortDone&&(Xt[Kp]=1,Xt.xhrMonitoringState.abortDone=!0)}},hkErr:sv(Je,13,Qp+".abort"+Jp)}),Mt(XMLHttpRequest,"setRequestHeader",{ns:zt,req:function(rt,Nt,Xt){if(!Pe){var Yt=rt.inst,pn=eg(Yt,It);pn&&pr(Yt,pn)&&(function(s,e,n){if(s){var o=(s[Md]||{}).xh;o&&o.push({n:e,v:n})}}(Yt,Nt,Xt),g&&Ve(Nt)&&(pn[oo][Nt]=Xt))}},hkErr:sv(Je,71,Qp+".setRequestHeader"+Jp)}),c=!0)}))}(),function Oe(){var rt=function cD(){var s=yi();return!s||Qe(s.Request)||Qe(s.Request[ga])||Qe(s[dh])?null:s[dh]}();if(rt){var Nt=yi(),Xt=rt.polyfill;Je[fC](Yo(h,function(){de=h[JA],(Ct=!!h[ZA])||o?Xt&&!ct&&(dn(jf(Nt,dh,{ns:zt,req:function(Yt,pn,Yn){Tn(null,pn,Yn)}})),ct=!0):(dn(jf(Nt,dh,{ns:zt,req:function(Yt,pn,Yn){var ur;if(!Ct&&o&&!Tn(null,pn,Yn)&&(!Xt||!c)){var jr=Yt.ctx();ur=function Ml(rt,Nt){var Xt,jr,Yt=or(),pn=Yt&&Yt[gC]()||fl(),Yn=Bs(fl(),0,16),ur=new OR(pn,Yn,Je[wd](),null===(Xt=Je.core)||void 0===Xt?void 0:Xt.getTraceCtx());if(ur[Ls]=Yt&&Yt[QI](),ur[Dd]=hm(),ur[ah]=C,""===(jr=rt instanceof Request?(rt||{}).url||"":rt)){var _r=Ys();_r&&_r.href&&(jr=Ko(_r.href,"#")[0])}Je[fs]&&Je[fs].config&&(jr=Oc(jr,Je[fs].config)),ur[Il]=jr;var Ri="GET";Nt&&Nt[_c]?Ri=Nt[_c]:rt&&rt instanceof Request&&(Ri=rt[_c]),ur[_c]=Ri;var po={};return g&&new Headers((Nt?Nt[Sl]:0)||rt instanceof Request&&rt[Sl]||{}).forEach(function(jd,Gd){Ve(Gd)&&(po[Gd]=jd)}),ur[oo]=po,Aa(dh,ur),ur}(pn,Yn);var _r=Je[KI](ur,pn,Yn);_r!==Yn&&Yt.set(1,_r),jr.data=ur}},rsp:function(Yt,pn){if(!Ct){var Yn=Yt.ctx().data;Yn&&(Yt.rslt=Yt.rslt.then(function(ur){return Mn(0,(ur||{})[Lc],pn,ur,Yn,function(){var jr,_r=((jr={statusText:(ur||{})[bl],headerMap:null})[yC]=function sr(rt){if(rt&&rt[Sl])try{return gp(rt[Sl].get(Ti[0]))}catch(Xt){Al(Je,18,oD,{fetchDiagnosticsMessage:Ft(rt),exception:Ye(Xt)})}}(ur),jr);if(de&&ur){var Ri={};
1ur.headers.forEach(function(po,Fs){Ve(Fs)&&(Ri[Fs]=po)}),_r[nv]=Ri}return _r}),ur}).catch(function(ur){throw Mn(0,0,pn,null,Yn,null),ur}))}},hkErr:sv(Je,15,"Failed to monitor Window.fetch"+Jp)},!0,Ya())),o=!0)})),Xt&&(Nt[dh].polyfill=Xt)}}(),function Bt(){var rt=Je[fs].getPlugin(K_);rt&&(O=rt.plugin[tv])}())},Je._doTeardown=function(){Bn()},Je.trackDependencyData=function(rt,Nt){Kn($t,Je[fs],null,rt,Nt)},Je.resetAjaxAttempts=function(){S=0},Je[KI]=function(rt,Nt,Xt,Yt){var pn=Je._currentWindowHost||d;if(function PR(s,e,n,o,c,d){var g=!0;if(s[Ad]>0){var C={core:e,xhr:o,input:c,init:d,traceId:n[Tu],spanId:n[oh],traceFlags:n[Ls],context:n[tv]||{},aborted:!!n[Kp]};g=EC(e,s,C,"listener"),n[Tu]=C.traceId,n[oh]=C.spanId,n[Ls]=C[Ls],n[tv]=C[tv]}return g}(qt,Je[fs],rt,Yt,Nt,Xt))if(Nt||""===Nt){if(Ff(h,rt[Wp](),pn)){Xt||(Xt={});var Yn=new Headers(Xt[Sl]||Nt instanceof Request&&Nt[Sl]||{});if(ae&&(Yn.set(Ti[3],ur="|"+rt[Tu]+"."+rt[oh]),g&&(rt[oo][Ti[3]]=ur)),(jr=gt||O&&O.appId())&&(Yn.set(Ti[0],Ti[2]+jr),g&&(rt[oo][Ti[0]]=Ti[2]+jr)),$){Qe(_r=rt[Ls])&&(_r=1);var Ri=Ob(wb(rt[Tu],rt[oh],_r));Yn.set(Ti[4],Ri),g&&(rt[oo][Ti[4]]=Ri)}Xt[Sl]=Yn}}else if(Yt&&Ff(h,rt[Wp](),pn)){if(ae)if(eS(Yt,Ti[3]))Al(Je,71,"Unable to set ["+Ti[3]+"] as it has already been set by another instance");else{var ur;Yt[hC](Ti[3],ur="|"+rt[Tu]+"."+rt[oh]),g&&(rt[oo][Ti[3]]=ur)}var jr,_r;(jr=gt||O&&O.appId())&&(eS(Yt,Ti[0])?Al(Je,71,"Unable to set ["+Ti[0]+"] as it has already been set by another instance"):(Yt[hC](Ti[0],Ti[2]+jr),g&&(rt[oo][Ti[0]]=Ti[2]+jr))),$&&(Qe(_r=rt[Ls])&&(_r=1),eS(Yt,Ti[4])?Al(Je,71,"Unable to set ["+Ti[4]+"] as it has already been set by another instance"):(Ri=Ob(wb(rt[Tu],rt[oh],_r)),Yt[hC](Ti[4],Ri),g&&(rt[oo][Ti[4]]=Ri)))}return Yt||Xt},Je[WI]=function(rt,Nt,Xt){if(-1===le||S<le){(2===Ue||1===Ue)&&"string"==typeof rt.id&&"."!==rt.id[rt.id[Ad]-1]&&(rt.id+="."),Qe(rt[Yp])&&(rt[Yp]=new Date);var Yt=ul(rt,Uf.dataType,Uf.envelopeType,Je[wd](),Nt,Xt);Je[fs].track(Yt)}else S===le&&ov(Je,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++S},Je.addDependencyListener=function(rt){return lD(qt,qe++,rt)},Je.addDependencyInitializer=function(rt){return lD($t,qe++,rt)}}),n}return Gl(e,s),e.prototype.processTelemetry=function(n,o){this.processNext(n,o)},e.prototype.addDependencyInitializer=function(n){return null},e.identifier="AjaxDependencyPlugin",e}(Ep),tS=function(){return function s(){}}(),FR=function(){return function s(){this.id="browser",this.deviceClass="Browser"}}(),UR=function(){return function s(e,n){var o=this,c=Yo(e,function(){var d=e.sdkExtension;o.sdkVersion=(d?d+"_":"")+"javascript:3.3.10"});n&&n.add(c)}}(),BR=function(){return function s(){}}(),TC="session",IC="sessionManager",SC="isUserCookieSet",bC="isNewUser",nS="getTraceCtx",rS="telemetryTrace",iS="applySessionContext",oS="applyApplicationContext",fD="applyOperationContext",hD="applyOperatingSystemContxt",sS="applyLocationContext",pD="applyInternalContext",AC="getSessionId",DC="sessionCookiePostfix",Od="automaticSession",tg="accountId",Rd="authenticatedId",ng="acquisitionDate",cv="renewalDate",wC="cookieSeparator",MC="authUserCookieName",lv=function(){return function s(){}}(),vD=function(){function s(e,n,o){var d,h,S,O,g=al(n),C=jT(n);Ki(s,this,function($){e||(e={});var ae=Yo(e,function(Pe){S=e.sessionExpirationMs||864e5,O=e.sessionRenewalMs||18e5,d="ai_session"+(e[DC]||e.namePrefix||"")});function ie(Pe,Ct){var Dt=!1,Et=", session will be reset",zt=Ct.split("|");if(zt.length>=2)try{var It=+zt[1]||0,qe=+zt[2]||0;isNaN(It)||It<=0?In(g,2,27,"AI session acquisition date is 0"+Et):isNaN(qe)||qe<=0?In(g,2,27,"AI session renewal date is 0"+Et):zt[0]&&(Pe.id=zt[0],Pe[ng]=It,Pe[cv]=qe,Dt=!0)}catch(qt){In(g,1,9,"Error parsing ai_session value ["+(Ct||"")+"]"+Et+" - "+li(qt),{exception:Ye(qt)})}return Dt}function de(Pe,Ct){var Dt=Pe[ng];Pe[cv]=Ct;var qe,zt=Dt+S-Ct;qe=zt<O?zt/1e3:O/1e3;var qt=e.cookieDomain||null;C.set(d,[Pe.id,Dt,Ct].join("|"),S>0?qe:null,qt),h=Ct}o&&o.add(ae),$[Od]=new lv,$.update=function(){var Pe=ji(),Ct=!1,Dt=$[Od];if(Dt.id||(Ct=!function q(Pe,Ct){var Dt=!1,Et=C.get(d);if(Et&&Ht(Et.split))Dt=ie(Pe,Et);else{var zt=YM(g,d);zt&&(Dt=ie(Pe,zt))}return Dt||!!Pe.id}(Dt)),!Ct&&S>0){var Et=Pe-Dt[ng],zt=Pe-Dt[cv];Ct=(Ct=(Ct=Et<0||zt<0)||Et>S)||zt>O}Ct?function le(Pe){$[Od].id=(e.getNewId||b_)(e.idLength||22),$[Od][ng]=Pe,de($[Od],Pe),G_()||In(g,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(Pe):(!h||Pe-h>6e4)&&de(Dt,Pe)},$.backup=function(){var Pe=$[Od];!function _e(Pe,Ct,Dt){XM(g,d,[Pe,Ct,Dt].join("|"))}(Pe.id,Pe[ng],Pe[cv])}})}return s.__ieDyn=1,s}(),_D=function(){return function s(e,n,o,c,d){var h=this;h.traceID=e||fl(),h.parentID=n;var g=Ys();!o&&g&&g.pathname&&(o=g.pathname,d&&(o=Oc(o,d))),h.name=ho(c,o)}}();function cS(s){return!("string"!=typeof s||!s||s.match(/,|;|=| |\|/))}var yD=function(){function s(e,n,o){this.isNewUser=!1,this.isUserCookieSet=!1;var h,c=al(n),d=jT(n);Ki(s,this,function(g){Qn(g,"config",{g:function(){return e}});var C=Yo(e,function(){var q=d.get(h=s.userCookieName+(e.userCookiePostfix||""));if(q){g[bC]=!1;var ie=q.split(s[wC]);ie.length>0&&(g.id=ie[0],g[SC]=!!g.id)}
1g.id||(g.id=S(),$(O(g.id).join(s[wC])),function ab(s,e){var n=V_();if(null!==n)try{return n[wf](e),!0}catch(o){Zl=!1,In(s,2,5,"Browser failed removal of local storage item. "+li(o),{exception:Ye(o)})}}(c,(e.namePrefix||"")+"ai_session")),g[tg]=e[tg]||void 0;var _e=d.get(s[MC]);if(_e){var Pe=(_e=decodeURI(_e)).split(s[wC]);Pe[0]&&(g[Rd]=Pe[0]),Pe.length>1&&Pe[1]&&(g[tg]=Pe[1])}});function S(){var ae=e||{};return(ae.getNewId||b_)(ae.idLength?e.idLength:22)}function O(ae){var q=_f(new Date);return g.accountAcquisitionDate=q,g[bC]=!0,[ae,q]}function $(ae){g[SC]=d.set(h,ae,31536e3)}o&&o.add(C),g.setAuthenticatedUserContext=function(ae,q,ie){if(void 0===ie&&(ie=!1),!cS(ae)||q&&!cS(q))In(c,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{g[Rd]=ae;var de=g[Rd];q&&(g[tg]=q,de=[g[Rd],g.accountId].join(s[wC])),ie&&d.set(s[MC],encodeURI(de))}},g.clearAuthenticatedUserContext=function(){g[Rd]=null,g[tg]=null,d.del(s[MC])},g.update=function(ae){g.id===ae&&g[SC]||$(O(ae||S()).join(s[wC]))}})}return s.cookieSeparator="|",s.userCookieName="ai_user",s.authUserCookieName="ai_authUser",s}(),uv="ext",dv="tags";function hh(s,e){s&&s[e]&&0===Ln(s[e]).length&&delete s[e]}function lS(){return null}var Iu,OC,CD=function(){function s(e,n,o,c){var d=this,h=e.logger;Ki(s,this,function(g){if(g.appId=lS,g[AC]=lS,g.application=new tS,g.internal=new UR(n,c),Oa()){g[IC]=new vD(n,e,c),g.device=new FR,g.location=new BR,g.user=new yD(n,e,c);var O,C=void 0,S=void 0;o&&(C=o.getTraceId(),S=o.getSpanId(),O=o.getName()),g[rS]=new _D(C,S,O,h),g[TC]=new lv}g[AC]=function(){var $=g[TC],ae=null;if($&&Qt($.id))ae=$.id;else{var q=(g[IC]||{})[Od];ae=q&&Qt(q.id)?q.id:null}return ae},g[iS]=function($,ae){Wi(Ws($.ext,"app"),"sesId",g[AC](),Qt)},g[hD]=function($,ae){Wi($.ext,"os",g.os)},g[oS]=function($,ae){var q=g.application;if(q){var ie=Ws($,dv);Wi(ie,Ii.applicationVersion,q.ver,Qt),Wi(ie,Ii.applicationBuild,q.build,Qt)}},g.applyDeviceContext=function($,ae){var q=g.device;if(q){var ie=Ws(Ws($,uv),"device");Wi(ie,"localId",q.id,Qt),Wi(ie,"ip",q.ip,Qt),Wi(ie,"model",q.model,Qt),Wi(ie,"deviceClass",q.deviceClass,Qt)}},g[pD]=function($,ae){var q=g.internal;if(q){var ie=Ws($,dv);Wi(ie,Ii.internalAgentVersion,q.agentVersion,Qt),Wi(ie,Ii.internalSdkVersion,ho(h,q.sdkVersion,64),Qt),($.baseType===ep.dataType||$.baseType===oc.dataType)&&(Wi(ie,Ii.internalSnippet,q.snippetVer,Qt),Wi(ie,Ii.internalSdkSrc,q.sdkSrc,Qt))}},g[sS]=function($,ae){var q=d.location;q&&Wi(Ws($,dv,[]),Ii.locationIp,q.ip,Qt)},g[fD]=function($,ae){var q=g[rS];if(q){var ie=Ws(Ws($,uv),"trace",{traceID:void 0,parentID:void 0});Wi(ie,"traceID",q.traceID,Qt,Qe),Wi(ie,"name",q.name,Qt,Qe),Wi(ie,"parentID",q.parentID,Qt,Qe)}},g.applyWebContext=function($,ae){var q=d.web;q&&Wi(Ws($,uv),"web",q)},g.applyUserContext=function($,ae){var q=g.user;if(q){Wi(Ws($,dv,[]),Ii.userAccountId,q[tg],Qt);var le=Ws(Ws($,uv),"user");Wi(le,"id",q.id,Qt),Wi(le,"authId",q[Rd],Qt)}},g.cleanUp=function($,ae){var q=$.ext;q&&(hh(q,"device"),hh(q,"user"),hh(q,"web"),hh(q,"os"),hh(q,"app"),hh(q,"trace"))}})}return s.__ieDyn=1,s}(),ph=null,VR=mr(((Iu={accountId:ph,sessionRenewalMs:18e5,samplingPercentage:100,sessionExpirationMs:864e5,cookieDomain:ph,sdkExtension:ph,isBrowserLinkTrackingEnabled:!1,appId:ph})[AC]=ph,Iu.namePrefix=OC,Iu[DC]=OC,Iu.userCookiePostfix=OC,Iu.idLength=22,Iu.getNewId=ph,Iu));const GR=function(s){function e(){var o,c,d,h,g,n=s.call(this)||this;return n.priority=110,n.identifier=K_,Ki(e,n,function(C,S){function O(){o=null,c=null,d=null,h=null,g=!0}O(),Qn(C,"context",{g:function(){return h}}),C.initialize=function(q,ie,le,de){S.initialize(q,ie,le,de),function $(q){var ie=C.identifier,le=C.core;C._addHook(Yo(q,function(){var de=Ba(null,q,le);q.storagePrefix&&j_(q.storagePrefix),g=!1!==q.disableUserInitMessage,o=de.getExtCfg(ie,VR),C._extConfig=o})),d=le[nS](!1),h=new CD(le,o,d,C._unloadHooks),c=xT(C.context[rS],d),le.setTraceCtx(c),C.context.appId=function(){var de=le.getPlugin(Of);return de?de.plugin._appId:null}}(q)},C.processTelemetry=function(q,ie){if(!Qe(q)){ie=C._getTelCtx(ie),q.
1name===oc.envelopeType&&ie.diagLog().resetInternalMessageCount();var le=h||{};le[TC]&&"string"!=typeof h[TC].id&&le[IC]&&le[IC].update();var de=le.user;if(de&&!de[SC]&&de.update(le.user.id),function ae(q,ie){Ws(q,"tags",[]),Ws(q,"ext",{});var le=C.context;le[iS](q,ie),le[oS](q,ie),le.applyDeviceContext(q,ie),le[fD](q,ie),le.applyUserContext(q,ie),le[hD](q,ie),le.applyWebContext(q,ie),le[sS](q,ie),le[pD](q,ie),le.cleanUp(q,ie)}(q,ie),de&&de[bC]&&(de[bC]=!1,!g)){var _e=new ep(72,(fi()||{}).userAgent||"");!function ib(s,e,n){nm(s).logInternalMessage(e,n)}(ie.diagLog(),1,_e)}C.processNext(q,ie)}},C._doTeardown=function(q,ie){var le=(q||{}).core();le&&le[nS]&&le[nS](!1)===c&&le.setTraceCtx(d),O()}}),n}return Gl(e,s),e.__ieDyn=1,e}(Ep);var Fc,Pd,sg,fv,vh,ED="AuthenticatedUserContext",gh="track",uS="snippet",dS="flush",fS="pollInternalLogs",RC="getPlugin",NC="evtNamespace",ID=gh+"Event",SD=gh+"Trace",bD=gh+"Metric",AD=gh+"PageView",DD=gh+"Exception",wD=gh+"DependencyData",MD="set"+ED,qR="clear"+ED,rg="connectionString",ig="version",Su="queue",mh="instrumentationKey",Nd="userOverrideEndpointUrl",PC="endpointUrl",og="onunloadFlush",ja="context",hS="addHousekeepingBeforeUnload",kC="sendMessage",gS=[uS,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],xC="iKeyUsage",OD="CdnUsage",RD="SdkLoaderVer",LC=void 0,hv={disabled:!0,limit:cc({samplingRate:100,maxSendNumber:1}),interval:cc({monthInterval:3,daysOfMonth:[28]})},JR=((Fc={})[rg]=LC,Fc.endpointUrl=LC,Fc[mh]=LC,Fc[Nd]=LC,Fc.diagnosticLogInterval=iy(function e1(s){return s&&s>0},1e4),Fc.featureOptIn=((Pd={})[xC]={mode:3},Pd[OD]={mode:2},Pd[RD]={mode:2},Pd.zipPayload={mode:1},Pd),Fc.throttleMgrCfg=cc(((sg={})[109]=cc(hv),sg[106]=cc(hv),sg[111]=cc(hv),sg[110]=cc(hv),sg)),Fc.extensionConfig=cc(((fv={}).AppInsightsCfgSyncPlugin=cc({cfgUrl:"https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),fv)),Fc);function pv(s,e){return us(function(n,o){Ps(e,function(c){var d=c&&c.value,h=null;!c.rejected&&d&&(s[rg]=d,h=jI(d)),n(h)})})}var vS=function(){function s(e){var o,c,d,h,g,C,S,O,$,ae,q,ie,le,de,n=this;Ki(s,this,function(_e){Dt(),Qn(_e,"config",{g:function(){return O}}),Wt(["pluginVersionStringArr","pluginVersionString"],function(It){Qn(_e,It,{g:function(){return S?S[It]:null}})}),h=""+(e.sv||e[ig]||""),e[Su]=e[Su]||[],e[ig]=e[ig]||2;var Pe=La(e.config||{},JR);function Dt(){g=nc("AISKU"),C=null,o=null,c=null,d=null,h=null,q=null,ie=!1,le=!1,de=!1,ae=new rR}function Et(){C&&(function Zb(s,e){Em([$b,"unload",uy],s,e)}(null,C),function CO(s,e){var n=hl(zb,e);Em([uy],s,n),Em([cd],null,n)}(null,C))}function zt(It){S.addUnloadHook(It)}O=Pe.cfg,$=new zP,Qn(_e,"appInsights",{g:function(){return $}}),c=new GR,o=new LR,d=new _R,S=new zp,Qn(_e,"core",{g:function(){return S}}),zt(Yo(Pe,function(){var It=O[rg];if(mi(It)){var qe=us(function(Pn,zn){Ps(pv(O,It),function(Ue){if(Ue.rejected)Pn(null);else{var gt=O[mh],ct=Ue.value;Pn(gt=ct&&ct.instrumentationkey||gt)}})}),qt=O[Nd];Qe(qt)&&(qt=us(function(Pn,zn){Ps(pv(O,It),function(Ue){if(Ue.rejected)Pn(null);else{var gt=O[PC],ct=Ue.value,Je=ct&&ct.ingestionendpoint;Pn(gt=Je?Je+Rf:gt)}})})),O[mh]=qe,O[PC]=qt}if(Qt(It)&&It){var $t=jI(It);O.endpointUrl=O[Nd]?O[Nd]:$t.ingestionendpoint+Rf,O[mh]=$t.instrumentationkey||O[mh]}O.endpointUrl=O[Nd]?O[Nd]:O[PC]})),_e[uS]=e,_e[dS]=function(It,qe){var qt;return void 0===It&&(It=!0),vy(S,function(){return"AISKU.flush"},function(){It&&!qe&&(qt=ks(function(Pn){qe=Pn}));var $t=1,an=function(){0==--$t&&qe()};Wt(S.getChannels(),function(Pn){Pn&&($t++,Pn[dS](It,an))}),an()},null,It),qt},_e[og]=function(It){void 0===It&&(It=!0),Wt(S.getChannels(),function(qe){qe[og]?qe[og]():qe[dS](It)})},_e.loadAppInsights=function(It,qe,qt){return void 0===It&&(It=!1),It&&function qd(s){throw Wc||(Wc=xu("UnsupportedError")),new Wc(s)}("Legacy Mode is no longer supported"),vy(_e.core,function(){return"AISKU.loadAppInsights"},function(){S.initialize(O,[d,c,o,$,ae],qe,qt),Qn(_e,"context",{g:function(){return c[ja]}}),q||(q=new TR(S));var an=function PD(){if(vh)return vh;var s=null;try{var o=(document||{}).currentScript;o&&(s=o.src)}catch{}if(s){try{var c=s.toLowerCase();if(c){var d="";
1Wt(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],function(h,g){if(-1!==zi(c,h))return d="cdn"+(g+1),-1===zi(c,"/scripts/")&&(-1!==zi(c,"/next/")?d+="-next":-1!==zi(c,"/beta/")&&(d+="-beta")),vh=d+"",-1})}}catch{}vh=s}return vh}();an&&_e[ja]&&(_e[ja].internal.sdkSrc=an),function $t(an){if(an){var Pn="";Qe(h)||(Pn+=h),_e[ja]&&_e[ja].internal&&(_e[ja].internal.snippetVer=Pn||"-"),Kt(_e,function(zn,Ue){Qt(zn)&&!Ht(Ue)&&zn&&"_"!==zn[0]&&-1===Li(gS,zn)&&an[zn]!==Ue&&(an[zn]=Ue)})}}(_e[uS]),_e.emptyQueue(),_e[fS](),_e[hS](_e),zt(Yo(Pe,function(){var Pn=!1;O.throttleMgrCfg[109]&&(Pn=!O.throttleMgrCfg[109].disabled),!q.isReady()&&O.extensionConfig&&O.extensionConfig[ae.identifier]&&Pn&&q.onReadyState(!0),!ie&&!O[rg]&&zg(xC,O,!0)&&(q[kC](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),ie=!0),!le&&_e[ja].internal.sdkSrc&&-1!=_e[ja].internal.sdkSrc.indexOf("az416426")&&zg(OD,O,!0)&&(q[kC](110,"See Cdn support notice at aka.ms/JsActiveCdn"),le=!0),!de&&parseInt(h)<6&&zg(RD,O,!0)&&(q[kC](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),de=!0)}))}),_e},_e.updateSnippetDefinitions=function(It){!function bM(s,e,n){if(s&&e&&An(s)&&An(e)){var o=function(d){Qt(d)&&(Ht(e[d])?(!n||n(d,!0,e,s))&&(s[d]=w0(e,d)):(!n||n(d,!1,e,s))&&(ki(s,d)&&delete s[d],Qn(s,d,{g:function(){return e[d]},s:function(g){e[d]=g}})))};for(var c in e)o(c)}}(It,_e,function(qe){return qe&&-1===Li(gS,qe)})},_e.emptyQueue=function(){try{if(vn(_e.snippet[Su])){for(var It=_e.snippet[Su].length,qe=0;qe<It;qe++)(0,_e.snippet[Su][qe])();_e.snippet[Su]=void 0,delete _e.snippet[Su]}}catch(an){an&&Ht(an.toString)&&an.toString()}},_e[hS]=function(It){if(Oa()||Go()){var qe=function(){if(It[og](!1),Ht(_e.core[RC])){var $t=n.core[RC](K_);if($t){var an=$t.plugin;an&&an[ja]&&an[ja]._sessionManager&&an[ja]._sessionManager.backup()}}},qt=!1;C||(C=hl(g,S[NC]&&S[NC]())),zt(Yo(O,function($t){var an=$t.cfg,Pn=It.appInsights,Ue=Ba(null,an,Pn.core).getExtCfg(Pn.identifier||W_);Et();var gt=an.disablePageUnloadEvents;Ue.disableFlushOnBeforeUnload||(function py(s,e,n){return function NP(s,e,n,o){var c=!1;return e&&s&&vn(s)&&!(c=Hf(s,e,n,o))&&n&&n[nr]>0&&(c=Hf(s,e,null,o)),c}([$b,"unload",uy],s,e,n)}(qe,gt,C)&&(qt=!0),WT(qe,gt,C)&&(qt=!0),!qt&&!function eT(){var s=fi();return!(!s||!s.product)&&"ReactNative"===s.product}()&&In(S.logger,1,19,"Could not add handler for beforeunload and pagehide")),!qt&&!Ue.disableFlushOnUnload&&WT(qe,gt,C)}))}},_e.getSender=function(){return d},_e.unload=function(It,qe,qt){var an,$t=!1;return It&&!qe&&(an=ks(function(zn){qe=zn})),_e[og](It),Et(),S.unload&&S.unload(It,function Pn(zn){$t||($t=!0,Dt(),qe&&qe(zn))},qt),an},yf(_e,$,["getCookieMgr",ID,AD,"trackPageViewPerformance",DD,"_onerror",SD,bD,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),yf(_e,function Ct(){return o},[wD,"addDependencyListener","addDependencyInitializer"]),yf(_e,S,["addTelemetryInitializer",fS,"stopPollingInternalLogs",RC,"addPlugin",NC,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),yf(_e,function(){var It=c[ja];return It?It.user:null},[MD,qR])})}return s.prototype.addDependencyInitializer=function(e){return null},s}(),bu=D(177),yc=D(1626);const Ta=void 0,xD=["pt",[["AM","PM"],Ta,Ta],Ta,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],Ta,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],Ta,[["a.C.","d.C."],Ta,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",Ta,Ta,Ta],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[Ta,"\u0440."],JPY:["JP\xa5","\xa5"],PHP:[Ta,"\u20b1"],PTE:["Esc."],RON:[Ta,"L"],SYP:[Ta,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function kD(s){const n=Math.floor(Math.abs(s)),o=s.toString().replace(/^[^.]*\.?/,"").length,c=parseInt(s.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return n===Math.floor(n)&&n>=0&&n<=1?1:0===c&&0!==n&&n%1e6==0&&0===o||!(c>=0&&c<=5)?4:5}];var rr=D(9969);function _S(s){return new u.wOt(3e3,!1)}function kd(s){switch(s.length){case 0:return new rr.sf;case 1:return s[0];default:return new rr.ui(s)}}function _v(s,e,n=new Map,o=new Map){const c=[],d=[];let h=-1,g=null;if(e.forEach(C=>{const S=C.get("offset"),O=S==h,$=O&&g||new Map;
1C.forEach((ae,q)=>{let ie=q,le=ae;if("offset"!==q)switch(ie=s.normalizePropertyName(ie,c),le){case rr.FX:le=n.get(q);break;case rr.kp:le=o.get(q);break;default:le=s.normalizeStyleValue(q,ie,le,c)}$.set(ie,le)}),O||d.push($),g=$,h=S}),c.length)throw function l1(s){return new u.wOt(3502,!1)}();return d}function yv(s,e,n,o){switch(e){case"start":s.onStart(()=>o(n&&XD(n,"start",s)));break;case"done":s.onDone(()=>o(n&&XD(n,"done",s)));break;case"destroy":s.onDestroy(()=>o(n&&XD(n,"destroy",s)))}}function XD(s,e,n){const d=FC(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,n.totalTime??s.totalTime,!!n.disabled),h=s._data;return null!=h&&(d._data=h),d}function FC(s,e,n,o,c="",d=0,h){return{element:s,triggerName:e,fromState:n,toState:o,phaseName:c,totalTime:d,disabled:!!h}}function Ga(s,e,n){let o=s.get(e);return o||s.set(e,o=n),o}function ES(s){const e=s.indexOf(":");return[s.substring(1,e),s.slice(e+1)]}const cg=typeof document>"u"?null:document.documentElement;function TS(s){const e=s.parentNode||s.host||null;return e===cg?null:e}let Au=null,p1=!1;function IS(s,e){for(;e;){if(e===s)return!0;e=TS(e)}return!1}function SS(s,e,n){if(n)return Array.from(s.querySelectorAll(e));const o=s.querySelector(e);return o?[o]:[]}let UC=(()=>{class s{validateStyleProperty(n){return function g1(s){Au||(Au=function m1(){return typeof document<"u"?document.body:null}()||{},p1=!!Au.style&&"WebkitAppearance"in Au.style);let e=!0;return Au.style&&!function qD(s){return"ebkit"==s.substring(1,6)}(s)&&(e=s in Au.style,!e&&p1&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Au.style)),e}(n)}matchesElement(n,o){return!1}containsElement(n,o){return IS(n,o)}getParentElement(n){return TS(n)}query(n,o,c){return SS(n,o,c)}computeStyle(n,o,c){return c||""}animate(n,o,c,d,h,g=[],C){return new rr.sf(c,d)}static{this.\u0275fac=function(o){return new(o||s)}}static{this.\u0275prov=u.jDH({token:s,factory:s.\u0275fac})}}return s})();class BC{static{this.NOOP=new UC}}class bS{}const QD=1e3,HC="ng-enter",Cv="ng-leave",Ev="ng-trigger",VC=".ng-trigger",ew="ng-animating",tw=".ng-animating";function Dl(s){if("number"==typeof s)return s;const e=s.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:nw(parseFloat(e[1]),e[2])}function nw(s,e){return"s"===e?s*QD:s}function AS(s,e,n){return s.hasOwnProperty("duration")?s:function _k(s,e,n){let c,d=0,h="";if("string"==typeof s){const g=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===g)return e.push(_S()),{duration:0,delay:0,easing:""};c=nw(parseFloat(g[1]),g[2]);const C=g[3];null!=C&&(d=nw(parseFloat(C),g[4]));const S=g[5];S&&(h=S)}else c=s;if(!n){let g=!1,C=e.length;c<0&&(e.push(function LD(){return new u.wOt(3100,!1)}()),g=!0),d<0&&(e.push(function gv(){return new u.wOt(3101,!1)}()),g=!0),g&&e.splice(C,0,_S())}return{duration:c,delay:d,easing:h}}(s,e,n)}function Du(s,e,n){e.forEach((o,c)=>{const d=ug(c);n&&!n.has(c)&&n.set(c,s.style[d]),s.style[d]=o})}function lg(s,e){e.forEach((n,o)=>{const c=ug(o);s.style[c]=""})}function jC(s){return Array.isArray(s)?1==s.length?s[0]:(0,rr.K2)(s):s}const iw=new RegExp("{{\\s*(.+?)\\s*}}","g");function DS(s){let e=[];
1if("string"==typeof s){let n;for(;n=iw.exec(s);)e.push(n[1]);iw.lastIndex=0}return e}function Tv(s,e,n){const o=`${s}`,c=o.replace(iw,(d,h)=>{let g=e[h];return null==g&&(n.push(function UD(s){return new u.wOt(3003,!1)}()),g=""),g.toString()});return c==o?s:c}const Iv=/-+([a-z0-9])/g;function ug(s){return s.replace(Iv,(...e)=>e[1].toUpperCase())}function $a(s,e,n){switch(e.type){case rr.If.Trigger:return s.visitTrigger(e,n);case rr.If.State:return s.visitState(e,n);case rr.If.Transition:return s.visitTransition(e,n);case rr.If.Sequence:return s.visitSequence(e,n);case rr.If.Group:return s.visitGroup(e,n);case rr.If.Animate:return s.visitAnimate(e,n);case rr.If.Keyframes:return s.visitKeyframes(e,n);case rr.If.Style:return s.visitStyle(e,n);case rr.If.Reference:return s.visitReference(e,n);case rr.If.AnimateChild:return s.visitAnimateChild(e,n);case rr.If.AnimateRef:return s.visitAnimateRef(e,n);case rr.If.Query:return s.visitQuery(e,n);case rr.If.Stagger:return s.visitStagger(e,n);default:throw function BD(s){return new u.wOt(3004,!1)}()}}function wS(s,e){return window.getComputedStyle(s)[e]}const E1=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 ow extends bS{normalizePropertyName(e,n){return ug(e)}normalizeStyleValue(e,n,o,c){let d="";const h=o.toString().trim();if(E1.has(n)&&0!==o&&"0"!==o)if("number"==typeof o)d="px";else{const g=o.match(/^[+-]?[\d\.]+([a-z]*)$/);g&&0==g[1].length&&c.push(function HD(s,e){return new u.wOt(3005,!1)}())}return h+d}}const GC="*";const $C=new Set(["true","1"]),zC=new Set(["false","0"]);function sw(s,e){const n=$C.has(s)||zC.has(s),o=$C.has(e)||zC.has(e);return(c,d)=>{let h=s==GC||s==c,g=e==GC||e==d;return!h&&n&&"boolean"==typeof c&&(h=c?$C.has(s):zC.has(s)),!g&&o&&"boolean"==typeof d&&(g=d?$C.has(e):zC.has(e)),h&&g}}const cw=new RegExp("s*:selfs*,?","g");function Sv(s,e,n,o){return new A1(s).build(e,n,o)}class A1{constructor(e){this._driver=e}build(e,n,o){const c=new dw(n);return this._resetContextStyleTimingState(c),$a(this,jC(e),c)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,n){let o=n.queryCount=0,c=n.depCount=0;const d=[],h=[];return"@"==e.name.charAt(0)&&n.errors.push(function VD(){return new u.wOt(3006,!1)}()),e.definitions.forEach(g=>{if(this._resetContextStyleTimingState(n),g.type==rr.If.State){const C=g,S=C.name;S.toString().split(/\s*,\s*/).forEach(O=>{C.name=O,d.push(this.visitState(C,n))}),C.name=S}else if(g.type==rr.If.Transition){const C=this.visitTransition(g,n);o+=C.queryCount,c+=C.depCount,h.push(C)}else n.errors.push(function jD(){return new u.wOt(3007,!1)}())}),{type:rr.If.Trigger,name:e.name,states:d,transitions:h,queryCount:o,depCount:c,options:null}}visitState(e,n){const o=this.visitStyle(e.styles,n),c=e.options&&e.options.params||null;if(o.containsDynamicStyles){const d=new Set,h=c||{};o.styles.forEach(g=>{g instanceof Map&&g.forEach(C=>{DS(C).forEach(S=>{h.hasOwnProperty(S)||d.add(S)})})}),d.size&&n.errors.push(function n1(s,e){return new u.wOt(3008,!1)}(0,d.values()))}return{type:rr.If.State,name:e.name,style:o,options:c?{params:c}:null}}
1visitTransition(e,n){n.queryCount=0,n.depCount=0;const o=$a(this,jC(e.animation),n),c=function I1(s,e){const n=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(o=>function S1(s,e,n){if(":"==s[0]){const C=function b1(s,e){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,o)=>parseFloat(o)>parseFloat(n);case":decrement":return(n,o)=>parseFloat(o)<parseFloat(n);default:return e.push(function a1(s){return new u.wOt(3016,!1)}()),"* => *"}}(s,n);if("function"==typeof C)return void e.push(C);s=C}const o=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push(function s1(s){return new u.wOt(3015,!1)}()),e;const c=o[1],d=o[2],h=o[3];e.push(sw(c,h)),"<"==d[0]&&(c!=GC||h!=GC)&&e.push(sw(h,c))}(o,n,e)):n.push(s),n}(e.expr,n.errors);return{type:rr.If.Transition,matchers:c,animation:o,queryCount:n.queryCount,depCount:n.depCount,options:xd(e.options)}}visitSequence(e,n){return{type:rr.If.Sequence,steps:e.steps.map(o=>$a(this,o,n)),options:xd(e.options)}}visitGroup(e,n){const o=n.currentTime;let c=0;const d=e.steps.map(h=>{n.currentTime=o;const g=$a(this,h,n);return c=Math.max(c,n.currentTime),g});return n.currentTime=c,{type:rr.If.Group,steps:d,options:xd(e.options)}}visitAnimate(e,n){const o=function w1(s,e){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return KC(AS(s,e).duration,0,"");const n=s;if(n.split(/\s+/).some(d=>"{"==d.charAt(0)&&"{"==d.charAt(1))){const d=KC(0,0,"");return d.dynamic=!0,d.strValue=n,d}const c=AS(n,e);return KC(c.duration,c.delay,c.easing)}(e.timings,n.errors);n.currentAnimateTimings=o;let c,d=e.styles?e.styles:(0,rr.iF)({});if(d.type==rr.If.Keyframes)c=this.visitKeyframes(d,n);else{let h=e.styles,g=!1;if(!h){g=!0;const S={};o.easing&&(S.easing=o.easing),h=(0,rr.iF)(S)}n.currentTime+=o.duration+o.delay;const C=this.visitStyle(h,n);C.isEmptyStep=g,c=C}return n.currentAnimateTimings=null,{type:rr.If.Animate,timings:o,style:c,options:null}}visitStyle(e,n){const o=this._makeStyleAst(e,n);return this._validateStyleAst(o,n),o}_makeStyleAst(e,n){const o=[],c=Array.isArray(e.styles)?e.styles:[e.styles];for(let g of c)"string"==typeof g?g===rr.kp?o.push(g):n.errors.push(new u.wOt(3002,!1)):o.push(new Map(Object.entries(g)));let d=!1,h=null;return o.forEach(g=>{if(g instanceof Map&&(g.has("easing")&&(h=g.get("easing"),g.delete("easing")),!d))for(let C of g.values())if(C.toString().indexOf("{{")>=0){d=!0;break}}),{type:rr.If.Style,styles:o,easing:h,offset:e.offset,containsDynamicStyles:d,options:null}}_validateStyleAst(e,n){const o=n.currentAnimateTimings;let c=n.currentTime,d=n.currentTime;o&&d>0&&(d-=o.duration+o.delay),e.styles.forEach(h=>{"string"!=typeof h&&h.forEach((g,C)=>{const S=n.collectedStyles.get(n.currentQuerySelector),O=S.get(C);let $=!0;O&&(d!=c&&d>=O.startTime&&c<=O.endTime&&(n.errors.push(function GD(s,e,n,o,c){return new u.wOt(3010,!1)}()),$=!1),d=O.startTime),$&&S.set(C,{startTime:d,endTime:c}),n.options&&function rw(s,e,n){const o=e.params||{},c=DS(s);c.length&&c.forEach(d=>{o.hasOwnProperty(d)||n.push(function FD(s){return new u.wOt(3001,!1)}())})}(g,n.options,n.errors)})})}visitKeyframes(e,n){const o={type:rr.If.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function $D(){return new u.wOt(3011,!1)}()),o;let d=0;const h=[];let g=!1,C=!1,S=0;const O=e.steps.map(_e=>{const Pe=this._makeStyleAst(_e,n);let Ct=null!=Pe.offset?Pe.offset:function Ak(s){if("string"==typeof s)return null;let e=null;if(Array.isArray(s))s.forEach(n=>{if(n instanceof Map&&n.has("offset")){const o=n;e=parseFloat(o.get("offset")),o.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const n=s;e=parseFloat(n.get("offset")),n.delete("offset")}return e}(Pe.styles),Dt=0;return null!=Ct&&(d++,Dt=Pe.offset=Ct),C=C||Dt<0||Dt>1,g=g||Dt<S,S=Dt,h.push(Dt),Pe});C&&n.errors.push(function zD(){return new u.wOt(3012,!1)}()),g&&n.errors.push(function r1(){return new u.wOt(3200,!1)}());const $=e.steps.length;let ae=0;d>0&&d<$?n.errors.push(function o1(){return new u.wOt(3202,!1)}()):0==d&&(ae=1/($-1));const q=$-1,ie=n.currentTime,le=n.currentAnimateTimings,de=le.duration;return O.forEach((_e,Pe)=>{const Ct=ae>0?Pe==q?1:ae*Pe:h[Pe],Dt=Ct*de;
1n.currentTime=ie+le.delay+Dt,le.duration=Dt,this._validateStyleAst(_e,n),_e.offset=Ct,o.styles.push(_e)}),o}visitReference(e,n){return{type:rr.If.Reference,animation:$a(this,jC(e.animation),n),options:xd(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:rr.If.AnimateChild,options:xd(e.options)}}visitAnimateRef(e,n){return{type:rr.If.AnimateRef,animation:this.visitReference(e.animation,n),options:xd(e.options)}}visitQuery(e,n){const o=n.currentQuerySelector,c=e.options||{};n.queryCount++,n.currentQuery=e;const[d,h]=function uw(s){const e=!!s.split(/\s*,\s*/).find(n=>":self"==n);return e&&(s=s.replace(cw,"")),s=s.replace(/@\*/g,VC).replace(/@\w+/g,n=>VC+"-"+n.slice(1)).replace(/:animating/g,tw),[s,e]}(e.selector);n.currentQuerySelector=o.length?o+" "+d:d,Ga(n.collectedStyles,n.currentQuerySelector,new Map);const g=$a(this,jC(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=o,{type:rr.If.Query,selector:d,limit:c.limit||0,optional:!!c.optional,includeSelf:h,animation:g,originalSelector:e.selector,options:xd(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function mv(){return new u.wOt(3013,!1)}());const o="full"===e.timings?{duration:0,delay:0,easing:"full"}:AS(e.timings,n.errors,!0);return{type:rr.If.Stagger,animation:$a(this,jC(e.animation),n),timings:o,options:null}}}class dw{constructor(e){this.errors=e,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 xd(s){return s?(s={...s}).params&&(s.params=function D1(s){return s?{...s}:null}(s.params)):s={},s}function KC(s,e,n){return{duration:s,delay:e,easing:n}}function MS(s,e,n,o,c,d,h=null,g=!1){return{type:1,element:s,keyframes:e,preStyleProps:n,postStyleProps:o,duration:c,delay:d,totalTime:c+d,easing:h,subTimeline:g}}class bv{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let o=this._map.get(e);o||this._map.set(e,o=[]),o.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const RS=new RegExp(":enter","g"),hw=new RegExp(":leave","g");function Av(s,e,n,o,c,d=new Map,h=new Map,g,C,S=[]){return(new NS).buildKeyframes(s,e,n,o,c,d,h,g,C,S)}class NS{buildKeyframes(e,n,o,c,d,h,g,C,S,O=[]){S=S||new bv;const $=new WC(e,n,S,c,d,O,[]);$.options=C;const ae=C.delay?Dl(C.delay):0;$.currentTimeline.delayNextStep(ae),$.currentTimeline.setStyles([h],null,$.errors,C),$a(this,o,$);const q=$.timelines.filter(ie=>ie.containsAnimation());if(q.length&&g.size){let ie;for(let le=q.length-1;le>=0;le--){const de=q[le];if(de.element===n){ie=de;break}}ie&&!ie.allowOnlyTimelineStyles()&&ie.setStyles([g],null,$.errors,C)}return q.length?q.map(ie=>ie.buildKeyframes()):[MS(n,[],[],[],0,ae,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const o=n.subInstructions.get(n.element);if(o){const c=n.createSubContext(e.options),d=n.currentTimeline.currentTime,h=this._visitSubInstructions(o,c,c.options);d!=h&&n.transformIntoNewTimeline(h)}n.previousNode=e}visitAnimateRef(e,n){const o=n.createSubContext(e.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,o),this.visitReference(e.animation,o),n.transformIntoNewTimeline(o.currentTimeline.currentTime),n.previousNode=e}
vendor: 8,677 bytes, line 1
1_applyAnimationRefDelays(e,n,o){for(const c of e){const d=c?.delay;if(d){const h="number"==typeof d?d:Dl(Tv(d,c?.params??{},n.errors));o.delayNextStep(h)}}}_visitSubInstructions(e,n,o){let d=n.currentTimeline.currentTime;const h=null!=o.duration?Dl(o.duration):null,g=null!=o.delay?Dl(o.delay):null;return 0!==h&&e.forEach(C=>{const S=n.appendInstructionToTimeline(C,h,g);d=Math.max(d,S.duration+S.delay)}),d}visitReference(e,n){n.updateOptions(e.options,!0),$a(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const o=n.subContextCount;let c=n;const d=e.options;if(d&&(d.params||d.delay)&&(c=n.createSubContext(d),c.transformIntoNewTimeline(),null!=d.delay)){c.previousNode.type==rr.If.Style&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=PS);const h=Dl(d.delay);c.delayNextStep(h)}e.steps.length&&(e.steps.forEach(h=>$a(this,h,c)),c.currentTimeline.applyStylesToKeyframe(),c.subContextCount>o&&c.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const o=[];let c=n.currentTimeline.currentTime;const d=e.options&&e.options.delay?Dl(e.options.delay):0;e.steps.forEach(h=>{const g=n.createSubContext(e.options);d&&g.delayNextStep(d),$a(this,h,g),c=Math.max(c,g.currentTimeline.currentTime),o.push(g.currentTimeline)}),o.forEach(h=>n.currentTimeline.mergeTimelineCollectedStyles(h)),n.transformIntoNewTimeline(c),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const o=e.strValue;return AS(n.params?Tv(o,n.params,n.errors):o,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const o=n.currentAnimateTimings=this._visitTiming(e.timings,n),c=n.currentTimeline;o.delay&&(n.incrementTime(o.delay),c.snapshotCurrentStyles());const d=e.style;d.type==rr.If.Keyframes?this.visitKeyframes(d,n):(n.incrementTime(o.duration),this.visitStyle(d,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const o=n.currentTimeline,c=n.currentAnimateTimings;!c&&o.hasCurrentStyleProperties()&&o.forwardFrame();const d=c&&c.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(d):o.setStyles(e.styles,d,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const o=n.currentAnimateTimings,c=n.currentTimeline.duration,d=o.duration,g=n.createSubContext().currentTimeline;g.easing=o.easing,e.styles.forEach(C=>{g.forwardTime((C.offset||0)*d),g.setStyles(C.styles,C.easing,n.errors,n.options),g.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(g),n.transformIntoNewTimeline(c+d),n.previousNode=e}visitQuery(e,n){const o=n.currentTimeline.currentTime,c=e.options||{},d=c.delay?Dl(c.delay):0;d&&(n.previousNode.type===rr.If.Style||0==o&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=PS);let h=o;const g=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!c.optional,n.errors);n.currentQueryTotal=g.length;let C=null;g.forEach((S,O)=>{n.currentQueryIndex=O;const $=n.createSubContext(e.options,S);d&&$.delayNextStep(d),S===n.element&&(C=$.currentTimeline),$a(this,e.animation,$),$.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,$.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(h),C&&(n.currentTimeline.mergeTimelineCollectedStyles(C),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const o=n.parentContext,c=n.currentTimeline,d=e.timings,h=Math.abs(d.duration),g=h*(n.currentQueryTotal-1);let C=h*n.currentQueryIndex;switch(d.duration<0?"reverse":d.easing){case"reverse":C=g-C;break;case"full":C=o.currentStaggerTime}const O=n.currentTimeline;C&&O.delayNextStep(C);const $=O.currentTime;$a(this,e.animation,n),n.previousNode=e,o.currentStaggerTime=c.currentTime-$+(c.startTime-o.currentTimeline.startTime)}}const PS={};class WC{constructor(e,n,o,c,d,h,g,C){this._driver=e,this.element=n,this.subInstructions=o,this._enterClassName=c,this._leaveClassName=d,this.errors=h,this.timelines=g,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=PS,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new YC(this._driver,n,0),g.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const o=e;let c=this.options;null!=o.duration&&(c.duration=Dl(o.duration)),null!=o.delay&&(c.delay=Dl(o.delay));const d=o.params;if(d){let h=c.params;h||(h=this.options.params={}),Object.keys(d).forEach(g=>{(!n||!h.hasOwnProperty(g))&&(h[g]=Tv(d[g],h,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const o=e.params={};Object.keys(n).forEach(c=>{o[c]=n[c]})}}return e}createSubContext(e=null,n,o){const c=n||this.element,d=new WC(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,o||0));return d.previousNode=this.previousNode,d.currentAnimateTimings=this.currentAnimateTimings,d.options=this._copyOptions(),d.updateOptions(e),d.currentQueryIndex=this.currentQueryIndex,d.currentQueryTotal=this.currentQueryTotal,d.parentContext=this,this.subContextCount++,d}transformIntoNewTimeline(e){return this.previousNode=PS,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,o){const c={duration:n??e.duration,delay:this.currentTimeline.currentTime+(o??0)+e.delay,easing:""},d=new Dk(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,c,e.stretchStartingKeyframe);return this.timelines.push(d),c}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,o,c,d,h){let g=[];if(c&&g.push(this.element),e.length>0){e=(e=e.replace(RS,"."+this._enterClassName)).replace(hw,"."+this._leaveClassName);let S=this._driver.query(this.element,e,1!=o);0!==o&&(S=o<0?S.slice(S.length+o,S.length):S.slice(0,o)),g.push(...S)}return!d&&0==g.length&&h.push(function KD(s){return new u.wOt(3014,!1)}()),g}}class YC{constructor(e,n,o,c){this._driver=e,this.element=n,this.startTime=o,this._elementTimelineStylesLookup=c,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,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(e){const n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new YC(this._driver,e,n||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,o]of this._globalTimelineStyles)this._backFill.set(n,o||rr.kp),this._currentKeyframe.set(n,rr.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,o,c){n&&this._previousKeyframe.set("easing",n);const d=c&&c.params||{},h=function pw(s,e){const n=new Map;let o;return s.forEach(c=>{if("*"===c){o??=e.keys();for(let d of o)n.set(d,rr.kp)}else for(let[d,h]of c)n.set(d,h)}),n}(e,this._globalTimelineStyles);for(let[g,C]of h){const S=Tv(C,d,o);this._pendingStyles.set(g,S),this._localTimelineStyles.has(g)||this._backFill.set(g,this._globalTimelineStyles.get(g)??rr.kp),this._updateStyle(g,S)}}
1applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,o)=>{const c=this._styleSummary.get(o);(!c||n.time>c.time)&&this._updateStyle(o,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,o=1===this._keyframes.size&&0===this.duration;let c=[];this._keyframes.forEach((g,C)=>{const S=new Map([...this._backFill,...g]);S.forEach((O,$)=>{O===rr.FX?e.add($):O===rr.kp&&n.add($)}),o||S.set("offset",C/this.duration),c.push(S)});const d=[...e.values()],h=[...n.values()];if(o){const g=c[0],C=new Map(g);g.set("offset",0),C.set("offset",1),c=[g,C]}return MS(this.element,c,d,h,this.duration,this.startTime,this.easing,!1)}}class Dk extends YC{constructor(e,n,o,c,d,h,g=!1){super(e,n,h.delay),this.keyframes=o,this.preStyleProps=c,this.postStyleProps=d,this._stretchStartingKeyframe=g,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:o,easing:c}=this.timings;if(this._stretchStartingKeyframe&&n){const d=[],h=o+n,g=n/h,C=new Map(e[0]);C.set("offset",0),d.push(C);const S=new Map(e[0]);S.set("offset",kS(g)),d.push(S);const O=e.length-1;for(let $=1;$<=O;$++){let ae=new Map(e[$]);const q=ae.get("offset");ae.set("offset",kS((n+q*o)/h)),d.push(ae)}o=h,n=0,c="",e=d}return MS(this.element,e,this.preStyleProps,this.postStyleProps,o,n,c,!0)}}function kS(s,e=3){const n=Math.pow(10,e-1);return Math.round(s*n)/n}function wu(s,e,n,o,c,d,h,g,C,S,O,$,ae){return{type:0,element:s,triggerName:e,isRemovalTransition:c,fromState:n,fromStyles:d,toState:o,toStyles:h,timelines:g,queriedElements:C,preStyleProps:S,postStyleProps:O,totalTime:$,errors:ae}}const dg={};class Dv{constructor(e,n,o){this._triggerName=e,this.ast=n,this._stateStyles=o}match(e,n,o,c){return function O1(s,e,n,o,c){return s.some(d=>d(e,n,o,c))}(this.ast.matchers,e,n,o,c)}buildStyles(e,n,o){let c=this._stateStyles.get("*");return void 0!==e&&(c=this._stateStyles.get(e?.toString())||c),c?c.buildStyles(n,o):new Map}build(e,n,o,c,d,h,g,C,S,O){const $=[],ae=this.ast.options&&this.ast.options.params||dg,ie=this.buildStyles(o,g&&g.params||dg,$),le=C&&C.params||dg,de=this.buildStyles(c,le,$),_e=new Set,Pe=new Map,Ct=new Map,Dt="void"===c,Et={params:XC(le,ae),delay:this.ast.options?.delay},zt=O?[]:Av(e,n,this.ast.animation,d,h,ie,de,Et,S,$);let It=0;return zt.forEach(qe=>{It=Math.max(qe.duration+qe.delay,It)}),$.length?wu(n,this._triggerName,o,c,Dt,ie,de,[],[],Pe,Ct,It,$):(zt.forEach(qe=>{const qt=qe.element,$t=Ga(Pe,qt,new Set);qe.preStyleProps.forEach(Pn=>$t.add(Pn));const an=Ga(Ct,qt,new Set);qe.postStyleProps.forEach(Pn=>an.add(Pn)),qt!==n&&_e.add(qt)}),wu(n,this._triggerName,o,c,Dt,ie,de,zt,[..._e.values()],Pe,Ct,It))}}function XC(s,e){const n={...e};return Object.entries(s).forEach(([o,c])=>{null!=c&&(n[o]=c)}),n}class R1{constructor(e,n,o){this.styles=e,this.defaultParams=n,this.normalizer=o}buildStyles(e,n){const o=new Map,c=XC(e,this.defaultParams);return this.styles.styles.forEach(d=>{"string"!=typeof d&&d.forEach((h,g)=>{h&&(h=Tv(h,c,n));const C=this.normalizer.normalizePropertyName(g,n);h=this.normalizer.normalizeStyleValue(g,C,h,n),o.set(g,h)})}),o}}class P1{constructor(e,n,o){this.name=e,this.ast=n,this._normalizer=o,this.transitionFactories=[],this.states=new Map,n.states.forEach(c=>{this.states.set(c.name,new R1(c.style,c.options&&c.options.params||{},o))}),x1(this.states,"true","1"),x1(this.states,"false","0"),n.transitions.forEach(c=>{this.transitionFactories.push(new Dv(e,c,this.states))}),this.fallbackTransition=function k1(s,e,n){return new Dv(s,{type:rr.If.Transition,animation:{type:rr.If.Sequence,steps:[],options:null},matchers:[(h,g)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}
vendor: 30,030 bytes, line 1
1matchTransition(e,n,o,c){return this.transitionFactories.find(h=>h.match(e,n,o,c))||null}matchStyles(e,n,o){return this.fallbackTransition.buildStyles(e,n,o)}}function x1(s,e,n){s.has(e)?s.has(n)||s.set(n,s.get(e)):s.has(n)&&s.set(e,s.get(n))}const L1=new bv;class gw{constructor(e,n,o){this.bodyNode=e,this._driver=n,this._normalizer=o,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,n){const o=[],d=Sv(this._driver,n,o,[]);if(o.length)throw function hk(s){return new u.wOt(3503,!1)}();this._animations.set(e,d)}_buildPlayer(e,n,o){const c=e.element,d=_v(this._normalizer,e.keyframes,n,o);return this._driver.animate(c,d,e.duration,e.delay,e.easing,[],!0)}create(e,n,o={}){const c=[],d=this._animations.get(e);let h;const g=new Map;if(d?(h=Av(this._driver,n,d,HC,Cv,new Map,new Map,o,L1,c),h.forEach(O=>{const $=Ga(g,O.element,new Map);O.postStyleProps.forEach(ae=>$.set(ae,null))})):(c.push(function pk(){return new u.wOt(3300,!1)}()),h=[]),c.length)throw function vv(s){return new u.wOt(3504,!1)}();g.forEach((O,$)=>{O.forEach((ae,q)=>{O.set(q,this._driver.computeStyle($,q,rr.kp))})});const S=kd(h.map(O=>{const $=g.get(O.element);return this._buildPlayer(O,new Map,$)}));return this._playersById.set(e,S),S.onDestroy(()=>this.destroy(e)),this.players.push(S),S}destroy(e){const n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);const o=this.players.indexOf(n);o>=0&&this.players.splice(o,1)}_getPlayer(e){const n=this._playersById.get(e);if(!n)throw function u1(s){return new u.wOt(3301,!1)}();return n}listen(e,n,o,c){const d=FC(n,"","","");return yv(this._getPlayer(e),o,d,c),()=>{}}command(e,n,o,c){if("register"==o)return void this.register(e,c[0]);if("create"==o)return void this.create(e,n,c[0]||{});const d=this._getPlayer(e);switch(o){case"play":d.play();break;case"pause":d.pause();break;case"reset":d.reset();break;case"restart":d.restart();break;case"finish":d.finish();break;case"init":d.init();break;case"setPosition":d.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(e)}}}const mw="ng-animate-queued",qC="ng-animate-disabled",B1=[],_w={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},QC={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Uc="__ng_removed";class yw{get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;const o=e&&e.hasOwnProperty("value");if(this.value=function H1(s){return s??null}(o?e.value:e),o){const{value:d,...h}=e;this.options=h}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const n=e.params;if(n){const o=this.options.params;Object.keys(n).forEach(c=>{null==o[c]&&(o[c]=n[c])})}}}const ZC="void",xS=new yw(ZC);class LS{constructor(e,n,o){this.id=e,this.hostElement=n,this._engine=o,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Cc(n,this._hostClassName)}listen(e,n,o,c){if(!this._triggers.has(n))throw function yS(s,e){return new u.wOt(3302,!1)}();if(null==o||0==o.length)throw function d1(s){return new u.wOt(3303,!1)}();if(!function Tw(s){return"start"==s||"done"==s}(o))throw function WD(s,e){return new u.wOt(3400,!1)}();const d=Ga(this._elementListeners,e,[]),h={name:n,phase:o,callback:c};d.push(h);const g=Ga(this._engine.statesByElement,e,new Map);return g.has(n)||(Cc(e,Ev),Cc(e,Ev+"-"+n),g.set(n,xS)),()=>{this._engine.afterFlush(()=>{const C=d.indexOf(h);C>=0&&d.splice(C,1),this._triggers.has(n)||g.delete(n)})}}register(e,n){return!this._triggers.has(e)&&(this._triggers.set(e,n),!0)}_getTrigger(e){const n=this._triggers.get(e);if(!n)throw function f1(s){return new u.wOt(3401,!1)}();return n}trigger(e,n,o,c=!0){const d=this._getTrigger(n),h=new wl(this.id,n,e);let g=this._engine.statesByElement.get(e);g||(Cc(e,Ev),Cc(e,Ev+"-"+n),this._engine.statesByElement.set(e,g=new Map));let C=g.get(n);const S=new yw(o,this.id);if(!(o&&o.hasOwnProperty("value"))&&C&&S.absorbOptions(C.options),g.set(n,S),C||(C=xS),S.value!==ZC&&C.value===S.value){if(!function Rk(s,e){const n=Object.keys(s),o=Object.keys(e);if(n.length!=o.length)return!1;for(let c=0;c<n.length;c++){const d=n[c];if(!e.hasOwnProperty(d)||s[d]!==e[d])return!1}return!0}(C.params,S.params)){const le=[],de=d.matchStyles(C.value,C.params,le),_e=d.matchStyles(S.value,S.params,le);le.length?this._engine.reportError(le):this._engine.afterFlush(()=>{lg(e,de),Du(e,_e)})}return}const ae=Ga(this._engine.playersByElement,e,[]);ae.forEach(le=>{le.namespaceId==this.id&&le.triggerName==n&&le.queued&&le.destroy()});let q=d.matchTransition(C.value,S.value,e,S.params),ie=!1;if(!q){if(!c)return;q=d.fallbackTransition,ie=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:q,fromState:C,toState:S,player:h,isFallbackTransition:ie}),ie||(Cc(e,mw),h.onStart(()=>{_h(e,mw)})),h.onDone(()=>{let le=this.players.indexOf(h);le>=0&&this.players.splice(le,1);const de=this._engine.playersByElement.get(e);if(de){let _e=de.indexOf(h);_e>=0&&de.splice(_e,1)}}),this.players.push(h),ae.push(h),h}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,o)=>{this._elementListeners.set(o,n.filter(c=>c.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(o=>o.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const o=this._engine.driver.query(e,VC,!0);o.forEach(c=>{if(c[Uc])return;const d=this._engine.fetchNamespacesByElement(c);d.size?d.forEach(h=>h.triggerLeaveAnimation(c,n,!1,!0)):this.clearElementCache(c)}),this._engine.afterFlushAnimationsDone(()=>o.forEach(c=>this.clearElementCache(c)))}triggerLeaveAnimation(e,n,o,c){const d=this._engine.statesByElement.get(e),h=new Map;if(d){const g=[];if(d.forEach((C,S)=>{if(h.set(S,C.value),this._triggers.has(S)){const O=this.trigger(e,S,ZC,c);O&&g.push(O)}}),g.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,h),o&&kd(g).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),o=this._engine.statesByElement.get(e);if(n&&o){const c=new Set;n.forEach(d=>{const h=d.name;if(c.has(h))return;c.add(h);const C=this._triggers.get(h).fallbackTransition,S=o.get(h)||xS,O=new yw(ZC),$=new wl(this.id,h,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:h,transition:C,fromState:S,toState:O,player:$,isFallbackTransition:!0})})}}removeNode(e,n){const o=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let c=!1;if(o.totalAnimations){const d=o.players.length?o.playersByQueriedElement.get(e):[];if(d&&d.length)c=!0;else{let h=e;for(;h=h.parentNode;)if(o.statesByElement.get(h)){c=!0;break}}}if(this.prepareLeaveAnimationListeners(e),c)o.markElementAsRemoved(this.id,e,!1,n);else{const d=e[Uc];(!d||d===_w)&&(o.afterFlush(()=>this.clearElementCache(e)),o.destroyInnerAnimations(e),o._onRemovalComplete(e,n))}}insertNode(e,n){Cc(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(o=>{const c=o.player;if(c.destroyed)return;const d=o.element,h=this._elementListeners.get(d);h&&h.forEach(g=>{if(g.name==o.triggerName){const C=FC(d,o.triggerName,o.fromState.value,o.toState.value);C._data=e,yv(o.player,g.phase,C,g.callback)}}),c.markedForDestroy?this._engine.afterFlush(()=>{c.destroy()}):n.push(o)}),this._queue=[],n.sort((o,c)=>{const d=o.transition.ast.depCount,h=c.transition.ast.depCount;return 0==d||0==h?d-h:this._engine.driver.containsElement(o.element,c.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class Cw{_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,o,c){this.bodyNode=e,this.driver=n,this._normalizer=o,this.scheduler=c,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=(d,h)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(o=>{o.queued&&e.push(o)})}),e}createNamespace(e,n){const o=new LS(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(o,n):(this.newHostElements.set(n,o),this.collectEnterElement(n)),this._namespaceLookup[e]=o}_balanceNamespaceList(e,n){const o=this._namespaceList,c=this.namespacesByHostElement;if(o.length-1>=0){let h=!1,g=this.driver.getParentElement(n);for(;g;){const C=c.get(g);if(C){const S=o.indexOf(C);o.splice(S+1,0,e),h=!0;break}g=this.driver.getParentElement(g)}h||o.unshift(e)}else o.push(e);return c.set(n,e),e}register(e,n){let o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,n)),o}registerTrigger(e,n,o){let c=this._namespaceLookup[e];c&&c.register(n,o)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const o=this._fetchNamespace(e);this.namespacesByHostElement.delete(o.hostElement);const c=this._namespaceList.indexOf(o);c>=0&&this._namespaceList.splice(c,1),o.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,o=this.statesByElement.get(e);if(o)for(let c of o.values())if(c.namespaceId){const d=this._fetchNamespace(c.namespaceId);d&&n.add(d)}return n}trigger(e,n,o,c){if(wv(n)){const d=this._fetchNamespace(e);if(d)return d.trigger(n,o,c),!0}return!1}insertNode(e,n,o,c){if(!wv(n))return;const d=n[Uc];if(d&&d.setForRemoval){d.setForRemoval=!1,d.setForMove=!0;const h=this.collectedLeaveElements.indexOf(n);h>=0&&this.collectedLeaveElements.splice(h,1)}if(e){const h=this._fetchNamespace(e);h&&h.insertNode(n,o)}c&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Cc(e,qC)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),_h(e,qC))}removeNode(e,n,o){if(wv(n)){this.scheduler?.notify();const c=e?this._fetchNamespace(e):null;c?c.removeNode(n,o):this.markElementAsRemoved(e,n,!1,o);const d=this.namespacesByHostElement.get(n);d&&d.id!==e&&d.removeNode(n,o)}else this._onRemovalComplete(n,o)}markElementAsRemoved(e,n,o,c,d){this.collectedLeaveElements.push(n),n[Uc]={namespaceId:e,setForRemoval:c,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:d}}listen(e,n,o,c,d){return wv(n)?this._fetchNamespace(e).listen(n,o,c,d):()=>{}}_buildInstruction(e,n,o,c,d){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,c,e.fromState.options,e.toState.options,n,d)}destroyInnerAnimations(e){let n=this.driver.query(e,VC,!0);n.forEach(o=>this.destroyActiveAnimationsForElement(o)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,tw,!0),n.forEach(o=>this.finishActiveQueriedAnimationOnElement(o)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(o=>{o.queued?o.markedForDestroy=!0:o.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(o=>o.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return kd(this.players).onDone(()=>e());e()})}processLeaveNode(e){const n=e[Uc];if(n&&n.setForRemoval){if(e[Uc]=_w,n.namespaceId){this.destroyInnerAnimations(e);const o=this._fetchNamespace(n.namespaceId);o&&o.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(qC)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((o,c)=>this._balanceNamespaceList(o,c)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let o=0;o<this.collectedEnterElements.length;o++)Cc(this.collectedEnterElements[o],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const o=[];try{n=this._flushAnimations(o,e)}finally{for(let c=0;c<o.length;c++)o[c]()}}else for(let o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(o=>o()),this._flushFns=[],this._whenQuietFns.length){const o=this._whenQuietFns;this._whenQuietFns=[],n.length?kd(n).onDone(()=>{o.forEach(c=>c())}):o.forEach(c=>c())}}reportError(e){throw function h1(s){return new u.wOt(3402,!1)}()}_flushAnimations(e,n){const o=new bv,c=[],d=new Map,h=[],g=new Map,C=new Map,S=new Map,O=new Set;this.disabledNodes.forEach(ct=>{O.add(ct);const Je=this.driver.query(ct,".ng-animate-queued",!0);for(let Xe=0;Xe<Je.length;Xe++)O.add(Je[Xe])});const $=this.bodyNode,ae=Array.from(this.statesByElement.keys()),q=V1(ae,this.collectedEnterElements),ie=new Map;let le=0;q.forEach((ct,Je)=>{const Xe=HC+le++;ie.set(Je,Xe),ct.forEach(dn=>Cc(dn,Xe))});const de=[],_e=new Set,Pe=new Set;for(let ct=0;ct<this.collectedLeaveElements.length;ct++){const Je=this.collectedLeaveElements[ct],Xe=Je[Uc];Xe&&Xe.setForRemoval&&(de.push(Je),_e.add(Je),Xe.hasAnimation?this.driver.query(Je,".ng-star-inserted",!0).forEach(dn=>_e.add(dn)):Pe.add(Je))}const Ct=new Map,Dt=V1(ae,Array.from(_e));Dt.forEach((ct,Je)=>{const Xe=Cv+le++;Ct.set(Je,Xe),ct.forEach(dn=>Cc(dn,Xe))}),e.push(()=>{q.forEach((ct,Je)=>{const Xe=ie.get(Je);ct.forEach(dn=>_h(dn,Xe))}),Dt.forEach((ct,Je)=>{const Xe=Ct.get(Je);ct.forEach(dn=>_h(dn,Xe))}),de.forEach(ct=>{this.processLeaveNode(ct)})});const Et=[],zt=[];for(let ct=this._namespaceList.length-1;ct>=0;ct--)this._namespaceList[ct].drainQueuedTransitions(n).forEach(Xe=>{const dn=Xe.player,Bn=Xe.element;if(Et.push(dn),this.collectedEnterElements.length){const Tn=Bn[Uc];if(Tn&&Tn.setForMove){if(Tn.previousTriggersValues&&Tn.previousTriggersValues.has(Xe.triggerName)){const pr=Tn.previousTriggersValues.get(Xe.triggerName),or=this.statesByElement.get(Xe.element);if(or&&or.has(Xe.triggerName)){const xr=or.get(Xe.triggerName);xr.value=pr,or.set(Xe.triggerName,xr)}}return void dn.destroy()}}const Un=!$||!this.driver.containsElement($,Bn),Bt=Ct.get(Bn),Ve=ie.get(Bn),Oe=this._buildInstruction(Xe,o,Ve,Bt,Un);if(Oe.errors&&Oe.errors.length)return void zt.push(Oe);if(Un)return dn.onStart(()=>lg(Bn,Oe.fromStyles)),dn.onDestroy(()=>Du(Bn,Oe.toStyles)),void c.push(dn);if(Xe.isFallbackTransition)return dn.onStart(()=>lg(Bn,Oe.fromStyles)),dn.onDestroy(()=>Du(Bn,Oe.toStyles)),void c.push(dn);const Mt=[];Oe.timelines.forEach(Tn=>{Tn.stretchStartingKeyframe=!0,this.disabledNodes.has(Tn.element)||Mt.push(Tn)}),Oe.timelines=Mt,o.append(Bn,Oe.timelines),h.push({instruction:Oe,player:dn,element:Bn}),Oe.queriedElements.forEach(Tn=>Ga(g,Tn,[]).push(dn)),Oe.preStyleProps.forEach((Tn,pr)=>{if(Tn.size){let or=C.get(pr);or||C.set(pr,or=new Set),Tn.forEach((xr,ai)=>or.add(ai))}}),Oe.postStyleProps.forEach((Tn,pr)=>{let or=S.get(pr);or||S.set(pr,or=new Set),Tn.forEach((xr,ai)=>or.add(ai))})});if(zt.length){const ct=[];zt.forEach(Je=>{ct.push(function CS(s,e){return new u.wOt(3505,!1)}())}),Et.forEach(Je=>Je.destroy()),this.reportError(ct)}const It=new Map,qe=new Map;h.forEach(ct=>{const Je=ct.element;o.has(Je)&&(qe.set(Je,Je),this._beforeAnimationBuild(ct.player.namespaceId,ct.instruction,It))}),c.forEach(ct=>{const Je=ct.element;this._getPreviousPlayers(Je,!1,ct.namespaceId,ct.triggerName,null).forEach(dn=>{Ga(It,Je,[]).push(dn),dn.destroy()})});const qt=de.filter(ct=>FS(ct,C,S)),$t=new Map;JC($t,this.driver,Pe,S,rr.kp).forEach(ct=>{FS(ct,C,S)&&qt.push(ct)});const Pn=new Map;q.forEach((ct,Je)=>{JC(Pn,this.driver,new Set(ct),C,rr.FX)}),qt.forEach(ct=>{const Je=$t.get(ct),Xe=Pn.get(ct);$t.set(ct,new Map([...Je?.entries()??[],...Xe?.entries()??[]]))});const zn=[],Ue=[],gt={};h.forEach(ct=>{const{element:Je,player:Xe,instruction:dn}=ct;if(o.has(Je)){if(O.has(Je))return Xe.onDestroy(()=>Du(Je,dn.toStyles)),Xe.disabled=!0,Xe.overrideTotalTime(dn.totalTime),void c.push(Xe);let Bn=gt;if(qe.size>1){let Bt=Je;const Ve=[];for(;Bt=Bt.parentNode;){const Oe=qe.get(Bt);if(Oe){Bn=Oe;break}Ve.push(Bt)}Ve.forEach(Oe=>qe.set(Oe,Bn))}const Un=this._buildAnimation(Xe.namespaceId,dn,It,d,Pn,$t);if(Xe.setRealPlayer(Un),Bn===gt)zn.push(Xe);else{const Bt=this.playersByElement.get(Bn);Bt&&Bt.length&&(Xe.parentPlayer=kd(Bt)),c.push(Xe)}}else lg(Je,dn.fromStyles),Xe.onDestroy(()=>Du(Je,dn.toStyles)),Ue.push(Xe),O.has(Je)&&c.push(Xe)}),Ue.forEach(ct=>{const Je=d.get(ct.element);if(Je&&Je.length){const Xe=kd(Je);ct.setRealPlayer(Xe)}}),c.forEach(ct=>{ct.parentPlayer?ct.syncPlayerEvents(ct.parentPlayer):ct.destroy()});for(let ct=0;ct<de.length;ct++){const Je=de[ct],Xe=Je[Uc];if(_h(Je,Cv),Xe&&Xe.hasAnimation)continue;let dn=[];if(g.size){let Un=g.get(Je);Un&&Un.length&&dn.push(...Un);let Bt=this.driver.query(Je,tw,!0);for(let Ve=0;Ve<Bt.length;Ve++){let Oe=g.get(Bt[Ve]);Oe&&Oe.length&&dn.push(...Oe)}}const Bn=dn.filter(Un=>!Un.destroyed);Bn.length?Ok(this,Je,Bn):this.processLeaveNode(Je)}return de.length=0,zn.forEach(ct=>{this.players.push(ct),ct.onDone(()=>{ct.destroy();const Je=this.players.indexOf(ct);this.players.splice(Je,1)}),ct.play()}),zn}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,o,c,d){let h=[];if(n){const g=this.playersByQueriedElement.get(e);g&&(h=g)}else{const g=this.playersByElement.get(e);if(g){const C=!d||d==ZC;g.forEach(S=>{S.queued||!C&&S.triggerName!=c||h.push(S)})}}return(o||c)&&(h=h.filter(g=>!(o&&o!=g.namespaceId||c&&c!=g.triggerName))),h}_beforeAnimationBuild(e,n,o){const d=n.element,h=n.isRemovalTransition?void 0:e,g=n.isRemovalTransition?void 0:n.triggerName;for(const C of n.timelines){const S=C.element,O=S!==d,$=Ga(o,S,[]);this._getPreviousPlayers(S,O,h,g,n.toState).forEach(q=>{const ie=q.getRealPlayer();ie.beforeDestroy&&ie.beforeDestroy(),q.destroy(),$.push(q)})}lg(d,n.fromStyles)}_buildAnimation(e,n,o,c,d,h){const g=n.triggerName,C=n.element,S=[],O=new Set,$=new Set,ae=n.timelines.map(ie=>{const le=ie.element;O.add(le);const de=le[Uc];if(de&&de.removedBeforeQueried)return new rr.sf(ie.duration,ie.delay);const _e=le!==C,Pe=function j1(s){const e=[];return G1(s,e),e}((o.get(le)||B1).map(It=>It.getRealPlayer())).filter(It=>!!It.element&&It.element===le),Ct=d.get(le),Dt=h.get(le),Et=_v(this._normalizer,ie.keyframes,Ct,Dt),zt=this._buildPlayer(ie,Et,Pe);if(ie.subTimeline&&c&&$.add(le),_e){const It=new wl(e,g,le);It.setRealPlayer(zt),S.push(It)}return zt});S.forEach(ie=>{Ga(this.playersByQueriedElement,ie.element,[]).push(ie),ie.onDone(()=>function Ew(s,e,n){let o=s.get(e);if(o){if(o.length){const c=o.indexOf(n);o.splice(c,1)}0==o.length&&s.delete(e)}return o}(this.playersByQueriedElement,ie.element,ie))}),O.forEach(ie=>Cc(ie,ew));const q=kd(ae);return q.onDestroy(()=>{O.forEach(ie=>_h(ie,ew)),Du(C,n.toStyles)}),$.forEach(ie=>{Ga(c,ie,[]).push(q)}),q}_buildPlayer(e,n,o){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,o):new rr.sf(e.duration,e.delay)}}class wl{constructor(e,n,o){this.namespaceId=e,this.triggerName=n,this.element=o,this._player=new rr.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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,o)=>{n.forEach(c=>yv(e,o,void 0,c))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Ga(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function wv(s){return s&&1===s.nodeType}function Iw(s,e){const n=s.style.display;return s.style.display=e??"none",n}function JC(s,e,n,o,c){const d=[];n.forEach(C=>d.push(Iw(C)));const h=[];o.forEach((C,S)=>{const O=new Map;C.forEach($=>{const ae=e.computeStyle(S,$,c);O.set($,ae),(!ae||0==ae.length)&&(S[Uc]=QC,h.push(S))}),s.set(S,O)});let g=0;return n.forEach(C=>Iw(C,d[g++])),h}function V1(s,e){const n=new Map;if(s.forEach(g=>n.set(g,[])),0==e.length)return n;const c=new Set(e),d=new Map;function h(g){if(!g)return 1;let C=d.get(g);if(C)return C;const S=g.parentNode;return C=n.has(S)?S:c.has(S)?1:h(S),d.set(g,C),C}return e.forEach(g=>{const C=h(g);1!==C&&n.get(C).push(g)}),n}function Cc(s,e){s.classList?.add(e)}function _h(s,e){s.classList?.remove(e)}function Ok(s,e,n){kd(n).onDone(()=>s.processLeaveNode(e))}function G1(s,e){for(let n=0;n<s.length;n++){const o=s[n];o instanceof rr.ui?G1(o.players,e):e.push(o)}}function FS(s,e,n){const o=n.get(s);if(!o)return!1;let c=e.get(s);return c?o.forEach(d=>c.add(d)):e.set(s,o),n.delete(s),!0}class fg{constructor(e,n,o,c){this._driver=n,this._normalizer=o,this._triggerCache={},this.onRemovalComplete=(d,h)=>{},this._transitionEngine=new Cw(e.body,n,o,c),this._timelineEngine=new gw(e.body,n,o),this._transitionEngine.onRemovalComplete=(d,h)=>this.onRemovalComplete(d,h)}registerTrigger(e,n,o,c,d){const h=e+"-"+c;let g=this._triggerCache[h];if(!g){const C=[],O=Sv(this._driver,d,C,[]);if(C.length)throw function c1(s,e){return new u.wOt(3404,!1)}();g=function N1(s,e,n){return new P1(s,e,n)}(c,O,this._normalizer),this._triggerCache[h]=g}this._transitionEngine.registerTrigger(n,c,g)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,o,c){this._transitionEngine.insertNode(e,n,o,c)}onRemove(e,n,o){this._transitionEngine.removeNode(e,n,o)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,o,c){if("@"==o.charAt(0)){const[d,h]=ES(o);this._timelineEngine.command(d,n,h,c)}else this._transitionEngine.trigger(e,n,o,c)}listen(e,n,o,c,d){if("@"==o.charAt(0)){const[h,g]=ES(o);return this._timelineEngine.listen(h,n,g,d)}return this._transitionEngine.listen(e,n,o,c,d)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}class Mv{static{this.initialStylesByElement=new WeakMap}constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let c=Mv.initialStylesByElement.get(e);c||Mv.initialStylesByElement.set(e,c=new Map),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&Du(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Du(this._element,this._initialStyles),this._endStyles&&(Du(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Mv.initialStylesByElement.delete(this._element),this._startStyles&&(lg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(lg(this._element,this._endStyles),this._endStyles=null),Du(this._element,this._initialStyles),this._state=3)}}function Sw(s){let e=null;return s.forEach((n,o)=>{(function Nk(s){return"display"===s||"position"===s})(o)&&(e=e||new Map,e.set(o,n))}),e}class z1{constructor(e,n,o,c){this.element=e,this.keyframes=n,this.options=o,this._specialStyles=c,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=o.duration,this._delay=o.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;const n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const n=[];return e.forEach(o=>{n.push(Object.fromEntries(o))}),n}_triggerWebAnimation(e,n,o){return e.animate(this._convertKeyframesToObject(n),o)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((o,c)=>{"offset"!==c&&e.set(c,this._finished?o:wS(this.element,c))}),this.currentSnapshot=e}triggerCallback(e){const n="start"===e?this._onStartFns:this._onDoneFns;n.forEach(o=>o()),n.length=0}}class K1{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,n){return!1}containsElement(e,n){return IS(e,n)}getParentElement(e){return TS(e)}query(e,n,o){return SS(e,n,o)}computeStyle(e,n,o){return wS(e,n)}animate(e,n,o,c,d,h=[]){const C={duration:o,delay:c,fill:0==c?"both":"forwards"};d&&(C.easing=d);const S=new Map,O=h.filter(q=>q instanceof z1);(function y1(s,e){return 0===s||0===e})(o,c)&&O.forEach(q=>{q.currentSnapshot.forEach((ie,le)=>S.set(le,ie))});let $=function yk(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}(n).map(q=>new Map(q));$=function C1(s,e,n){if(n.size&&e.length){let o=e[0],c=[];if(n.forEach((d,h)=>{o.has(h)||c.push(h),o.set(h,d)}),c.length)for(let d=1;d<e.length;d++){let h=e[d];c.forEach(g=>h.set(g,wS(s,g)))}}return e}(e,$,S);const ae=function $1(s,e){let n=null,o=null;return Array.isArray(e)&&e.length?(n=Sw(e[0]),e.length>1&&(o=Sw(e[e.length-1]))):e instanceof Map&&(n=Sw(e)),n||o?new Mv(s,n,o):null}(e,$);return new z1(e,$,C,ae)}}const bw="@.disabled";class Aw{constructor(e,n,o,c){this.namespaceId=e,this.delegate=n,this.engine=o,this._onDestroy=c,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,o,c=!0){this.delegate.insertBefore(e,n,o),this.engine.onInsert(this.namespaceId,n,e,c)}removeChild(e,n,o){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,o,c){this.delegate.setAttribute(e,n,o,c)}removeAttribute(e,n,o){this.delegate.removeAttribute(e,n,o)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,o,c){this.delegate.setStyle(e,n,o,c)}removeStyle(e,n,o){this.delegate.removeStyle(e,n,o)}setProperty(e,n,o){"@"==n.charAt(0)&&n==bw?this.disableAnimations(e,!!o):this.delegate.setProperty(e,n,o)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,o){return this.delegate.listen(e,n,o)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class Dw extends Aw{constructor(e,n,o,c,d){super(n,o,c,d),this.factory=e,this.namespaceId=n}
1setProperty(e,n,o){"@"==n.charAt(0)?"."==n.charAt(1)&&n==bw?this.disableAnimations(e,o=void 0===o||!!o):this.engine.process(this.namespaceId,e,n.slice(1),o):this.delegate.setProperty(e,n,o)}listen(e,n,o){if("@"==n.charAt(0)){const c=function Ch(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(e);let d=n.slice(1),h="";return"@"!=d.charAt(0)&&([d,h]=function ww(s){const e=s.indexOf(".");return[s.substring(0,e),s.slice(e+1)]}(d)),this.engine.listen(this.namespaceId,c,d,h,g=>{this.factory.scheduleListenerCallback(g._data||-1,o,g)})}return this.delegate.listen(e,n,o)}}class US{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(c,d)=>{const h=d?.parentNode(c);h&&d.removeChild(h,c)}}createRenderer(e,n){const c=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){const S=this._rendererCache;let O=S.get(c);return O||(O=new Aw("",c,this.engine,()=>S.delete(c)),S.set(c,O)),O}const d=n.id,h=n.id+"-"+this._currentId;this._currentId++,this.engine.register(h,e);const g=S=>{Array.isArray(S)?S.forEach(g):this.engine.registerTrigger(d,h,e,S.name,S)};return n.data.animation.forEach(g),new Dw(this,h,c,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){if(e>=0&&e<this._microtaskId)return void this._zone.run(()=>n(o));const c=this._animationCallbacksBuffer;0==c.length&&queueMicrotask(()=>{this._zone.run(()=>{c.forEach(d=>{const[h,g]=d;h(g)}),this._animationCallbacksBuffer=[]})}),c.push([n,o])}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()}}const eE=[{provide:bS,useFactory:function Y1(){return new ow}},{provide:fg,useClass:(()=>{class s extends fg{constructor(n,o,c){super(n,o,c,(0,u.WQX)(u.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(o){return new(o||s)(u.KVO(bu.qQ),u.KVO(BC),u.KVO(bS))}}static{this.\u0275prov=u.jDH({token:s,factory:s.\u0275fac})}}return s})()},{provide:u._9s,useFactory:function HS(s,e,n){return new US(s,e,n)},deps:[p.B7,fg,u.SKi]}],hg=[{provide:BC,useFactory:()=>new K1},{provide:u.bc$,useValue:"BrowserAnimations"},...eE],X1=[{provide:BC,useClass:UC},{provide:u.bc$,useValue:"NoopAnimations"},...eE];let Pk=(()=>{class s{static withConfig(n){return{ngModule:s,providers:n.disableAnimations?X1:hg}}static{this.\u0275fac=function(o){return new(o||s)}}static{this.\u0275mod=u.$C({type:s})}static{this.\u0275inj=u.G2t({providers:hg,imports:[p.Bb]})}}return s})();var Ov=D(3147),Ia=D(855),VS=D(1131);let Mw=(()=>{class s{router;msalService;authService;constructor(n,o,c){this.router=n,this.msalService=o,this.authService=c}canActivate(n,o){if(this.msalService.instance.getAllAccounts().length>0)return!0;const h="tenant2"===(localStorage.getItem("msal_current_tenant")||"tenant1")?"WorkforceTenant":"ExternalTenant";return console.debug(`Usu\xe1rio n\xe3o autenticado, redirecionando para login com ${h}...`),this.authService.login(),!1}static \u0275fac=function(o){return new(o||s)(u.KVO(Ov.Ix),u.KVO(Ia.dl),u.KVO(VS.h))};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac})}return s})();var jn=D(5312);let Ow=(()=>{class s{router;constructor(n){this.router=n}canActivate(){return"prd"!==jn.c.env||(this.router.navigate(["/home/**"]),!1)}static \u0275fac=function(o){return new(o||s)(u.KVO(Ov.Ix))};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac})}return s})();var Q1=D(9421),Z1=D(1397),Rw=D(1985),bt=D(467),J1=D(3207);let Nw=(()=>{class s{http;grantToken;accessToken;refreshToken;expirationTimeAccessToken;expirationTimeRefreshToken;tokenIsLocked;hasAcccessToken;_authorization;_accessTokenUrl;_grantTokenUrl;_client;constructor(n){this.http=n,this._authorization=jn.c.sensedia.authorization,this._accessTokenUrl=jn.c.sensedia.accessTokenUrl,this._grantTokenUrl=jn.c.sensedia.grantTokenUrl,this._client=jn.c.sensedia.client,this.grantToken=null,this.accessToken=null,this.refreshToken=null,this.expirationTimeAccessToken=null,this.expirationTimeRefreshToken=null,this.tokenIsLocked=!1,this.hasAcccessToken=!1}getAccessToken(){var n=this;return(0,bt.A)(function*(){return!n.tokenIsLocked&&n.isAccessTokenValid()||n.isAccessTokenValid()||(n.tokenIsLocked=!0,yield n.getNewAccessToken(),n.tokenIsLocked=!1),n.accessToken})()}getNewAccessToken(){var n=this;return(0,bt.A)(function*(){const o={grant_type:"",refresh_token:"",code:""};n.isRefreshTokenValid()?(o.grant_type="refresh_token",o.refresh_token=n.refreshToken??""):(yield n.getNewGrantToken(),o.grant_type="authorization_code",o.code=n.grantToken??"");const c=yield(0,J1.s)(n.http.post(n._accessTokenUrl??"",o,{headers:{Authorization:"Basic "+n._authorization,"X-Skip-Interceptor":"true"},observe:"response"}));try{n.ensureSuccessStatusCode(c)}catch(h){throw n.isRefreshTokenValid()?(console.error(`Failed to Refresh Access Token from Sensedia with RefreshToken: ${n.refreshToken}. Actual Access Token: ${n.accessToken}`),n.refreshToken=""):(console.error(`Failed to get new Access Token from Sensedia with GrantToken: ${n.grantToken}`),n.grantToken=null),n.tokenIsLocked=!1,n.hasAcccessToken=!1,h}const d=c.body??{};n.accessToken=d.access_token,n.refreshToken=d.refresh_token,n.expirationTimeAccessToken=n.getNowPlusSeconds(d.expires_in),n.expirationTimeRefreshToken=n.getDatePlusSeconds(n.expirationTimeAccessToken,7140),n.hasAcccessToken=!0})()}getNewGrantToken(){var n=this;return(0,bt.A)(function*(){const o={client_id:"",redirect_uri:""};o.client_id=n._client??"",o.redirect_uri="http://localhost/";const c=yield(0,J1.s)(n.http.post(n._grantTokenUrl??"",o,{headers:{Authorization:"Basic "+n._authorization,"X-Skip-Interceptor":"true"},observe:"response"}));try{n.ensureSuccessStatusCode(c)}catch(g){throw console.error(`Failed to get new Grant Token from Sensedia with ClientId: ${n._client}`),g}const h=new URL((c.body??{}).redirect_uri);n.grantToken=h.searchParams.get("code")})()}getNowPlusSeconds(n){return new Date(Date.now()+1e3*n)}getDatePlusSeconds(n,o){return new Date(n.getTime()+1e3*o)}ensureSuccessStatusCode(n){if(n.status>=200&&n.status<300)return n;throw new Error(n.statusText)}isRefreshTokenValid(){return null!=this.refreshToken&&new Date<(this.expirationTimeRefreshToken??new Date)}isAccessTokenValid(){return this.hasAcccessToken&&new Date<(this.expirationTimeAccessToken??new Date)}static \u0275fac=function(o){return new(o||s)(u.KVO(yc.Qq))};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),jS=(()=>{class s{sensedia;constructor(n){this.sensedia=n}intercept(n,o){return n.headers.has("X-Skip-Interceptor")?o.handle(n):this.promiseToObservable(this.sensedia.getAccessToken()).pipe((0,Z1.Z)(c=>(n=n.clone({setHeaders:{access_token:`${c}`,client_id:jn.c.sensedia.client},withCredentials:!0}),o.handle(n))))}promiseToObservable(n){return new Rw.c(o=>{n.then(c=>{o.next(c),o.complete()},c=>{o.error(c)})})}static \u0275fac=function(o){return new(o||s)(u.KVO(Nw))};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac})}return s})();var eN=D(9997),tN=D(4763),ee=D(7635),bo=function(s){return s[s.Error=0]="Error",s[s.Warning=1]="Warning",s[s.Info=2]="Info",s[s.Verbose
1=3]="Verbose",s[s.Trace=4]="Trace",s}(bo||{});class Ld{constructor(e,n,o){this.level=bo.Info;const d=e||Ld.createDefaultLoggerOptions();this.localCallback=d.loggerCallback||(()=>{}),this.piiLoggingEnabled=d.piiLoggingEnabled||!1,this.level="number"==typeof d.logLevel?d.logLevel:bo.Info,this.correlationId=d.correlationId||ee.YM.EMPTY_STRING,this.packageName=n||ee.YM.EMPTY_STRING,this.packageVersion=o||ee.YM.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:bo.Info}}clone(e,n,o){return new Ld({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:o||this.correlationId},e,n)}logMessage(e,n){if(n.logLevel>this.level||!this.piiLoggingEnabled&&n.containsPii)return;const d=`[${(new Date).toUTCString()}] : [${n.correlationId||this.correlationId||""}] : ${this.packageName}@${this.packageVersion} : ${bo[n.logLevel]} - ${e}`;this.executeCallback(n.logLevel,d,n.containsPii||!1)}executeCallback(e,n,o){this.localCallback&&this.localCallback(e,n,o)}error(e,n){this.logMessage(e,{logLevel:bo.Error,containsPii:!1,correlationId:n||ee.YM.EMPTY_STRING})}errorPii(e,n){this.logMessage(e,{logLevel:bo.Error,containsPii:!0,correlationId:n||ee.YM.EMPTY_STRING})}warning(e,n){this.logMessage(e,{logLevel:bo.Warning,containsPii:!1,correlationId:n||ee.YM.EMPTY_STRING})}warningPii(e,n){this.logMessage(e,{logLevel:bo.Warning,containsPii:!0,correlationId:n||ee.YM.EMPTY_STRING})}info(e,n){this.logMessage(e,{logLevel:bo.Info,containsPii:!1,correlationId:n||ee.YM.EMPTY_STRING})}infoPii(e,n){this.logMessage(e,{logLevel:bo.Info,containsPii:!0,correlationId:n||ee.YM.EMPTY_STRING})}verbose(e,n){this.logMessage(e,{logLevel:bo.Verbose,containsPii:!1,correlationId:n||ee.YM.EMPTY_STRING})}verbosePii(e,n){this.logMessage(e,{logLevel:bo.Verbose,containsPii:!0,correlationId:n||ee.YM.EMPTY_STRING})}trace(e,n){this.logMessage(e,{logLevel:bo.Trace,containsPii:!1,correlationId:n||ee.YM.EMPTY_STRING})}tracePii(e,n){this.logMessage(e,{logLevel:bo.Trace,containsPii:!0,correlationId:n||ee.YM.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}var Gt=D(3986),nn=D(7172);const Eh={createNewGuid:()=>{throw(0,Gt.SB)(nn.R9)},base64Decode:()=>{throw(0,Gt.SB)(nn.R9)},base64Encode:()=>{throw(0,Gt.SB)(nn.R9)},base64UrlEncode:()=>{throw(0,Gt.SB)(nn.R9)},encodeKid:()=>{throw(0,Gt.SB)(nn.R9)},getPublicKeyThumbprint:()=>(0,bt.A)(function*(){throw(0,Gt.SB)(nn.R9)})(),removeTokenBindingKey:()=>(0,bt.A)(function*(){throw(0,Gt.SB)(nn.R9)})(),clearKeystore:()=>(0,bt.A)(function*(){throw(0,Gt.SB)(nn.R9)})(),signJwt:()=>(0,bt.A)(function*(){throw(0,Gt.SB)(nn.R9)})(),hashString:()=>(0,bt.A)(function*(){throw(0,Gt.SB)(nn.R9)})()},Rv="@azure/msal-common",tE="14.16.1";function pg(s,e){const n=function nN(s){if(!s)throw(0,Gt.SB)(nn.Bh);const n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(s);if(!n||n.length<4)throw(0,Gt.SB)(nn.gR);return n[2]}(s);try{const o=e(n);return JSON.parse(o)}catch{throw(0,Gt.SB)(nn.gR)}}function rN(s,e){if(0===e||Date.now()-3e5>s+e)throw(0,Gt.SB)(nn.Yh)}function Ou(){return Math.round((new Date).getTime()/1e3)}function Nv(s,e){const n=Number(s)||0;return Ou()+e>n}function Th(s){return[nE(s),xv(s),gg(s),Lw(s),xk(s)].join(ee.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function Pv(s,e,n,o,c){return{credentialType:ee.aG.ID_TOKEN,homeAccountId:s,environment:e,clientId:o,secret:n,realm:c}}function kv(s,e,n,o,c,d,h,g,C,S,O,$,ae,q,ie){const le={homeAccountId:s,credentialType:ee.aG.ACCESS_TOKEN,secret:n,cachedAt:Ou().toString(),expiresOn:h.toString(),extendedExpiresOn:g.toString(),environment:e,clientId:o,realm:c,target:d,tokenType:O||ee.IO.BEARER};if($&&(le.userAssertionHash=$),S&&(le.refreshOn=S.toString()),q&&(le.requestedClaims=q,le.requestedClaimsHash=ie),le.tokenType?.toLowerCase()!==ee.IO.BEARER.toLowerCase())switch(le.credentialType=ee.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME,le.tokenType){case ee.IO.POP:const de=pg(n,C);if(!de?.cnf?.kid)throw(0,Gt.SB)(nn.FA);le.keyId=de.cnf.kid;break;case ee.IO.SSH:le.keyId=ae}return le}function kw(s,e,n,o,c,d,h){const g={credentialType:ee.aG.REFRESH_TOKEN,homeAccountId:s,environment:e,clientId:o,secret:n};return d&&(g.userAssertionHash=d),c&&(g.familyId=c),h&&(g.expiresOn=h.toString()),g}function GS(s){return s.hasOwnProperty("homeAccountId")&&s.hasOwnProperty("environment")&&s.hasOwnProperty("credentialType")&&s.hasOwnProperty("clientId")&&s.hasOwnProperty("secret")}function $S(s){return!!s&&GS(s)&&s.hasOwnProperty("realm")&&s.hasOwnProperty("target")&&(s.credentialType===ee.aG.ACCESS_TOKEN||s.credentialType===ee.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME)}function xw(s){return!!s&&GS(s)&&s.hasOwnProperty("realm")&&s.credentialType===ee.aG.ID_TOKEN}function zS(s){return!!s&&GS(s)&&s.credentialType===ee.aG.REFRESH_TOKEN}function nE(s){return[s.homeAccountId,s.environment].join(ee.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function xv(s){return[s.credentialType,s.credentialType===ee.aG.REFRESH_TOKEN&&s.familyId||s.clientId,s.realm||""].join(ee.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function gg(s){return(s.target||"").toLowerCase()}function Lw(s){return(s.requestedClaimsHash||"").toLowerCase()}function xk(s){return s.tokenType&&s.tokenType.toLowerCase()!==ee.IO.BEARER.toLowerCase()?s.tokenType.toLowerCase():""}function KS(){return Ou()+ee.u0.REFRESH_TIME_SECONDS}function Lv(s,e,n){s.authorization_endpoint=e.authorization_endpoint,s.token_endpoint=e.token_endpoint,s.end_session_endpoint=e.end_session_endpoint,s.issuer=e.issuer,s.endpointsFromNetwork=n,s.jwks_uri=e.jwks_uri}function Fw(s,e,n){s.aliases=e.aliases,s.preferred_cache=e.preferred_cache,s.preferred_network=e.preferred_network,s.aliasesFromNetwork=n}function rE(s){return s.expiresAt<=Ou()}var qo=D(7806),Ih=D(2030),Qo=D(5424);class Lo{constructor(e){const n=e?Ih.$.trimArrayEntries([...e]):[],o=n?Ih.$.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(c=>this.scopes.add(c))}static fromString(e){const o=(e||ee.YM.EMPTY_STRING).split(" ");return new Lo(o)}static createSearchScopes(e){const n=new Lo(e);return n.containsOnlyOIDCScopes()?n.removeScope(ee.YM.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n}validateInputScopes(e){if(!e||e.length<1)throw(0,qo.aD)(Qo.zg)}containsScope(e){const n=this.printScopesLowerCase().split(" "),o=new Lo(n);return!!e&&o.scopes.has(e.toLowerCase())}containsScopeSet(e){return!(!e||e.scopes.size<=0)&&this.scopes.size>=e.scopes.size&&e.asArray().every(n=>this.containsScope(n))}containsOnlyOIDCScopes(){let e=0;return ee._A.forEach(n=>{this.containsScope(n)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(n=>this.appendScope(n))}catch{throw(0,Gt.SB)(nn.Wf)}}removeScope(e){if(!e)throw(0,Gt.SB)(nn.f5);this.scopes.delete(e.trim())}
1removeOIDCScopes(){ee._A.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw(0,Gt.SB)(nn.UA);const n=new Set;return e.scopes.forEach(o=>n.add(o.toLowerCase())),this.scopes.forEach(o=>n.add(o.toLowerCase())),n}intersectingScopeSets(e){if(!e)throw(0,Gt.SB)(nn.UA);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const n=this.unionScopeSets(e),o=e.getScopeCount(),c=this.getScopeCount();return n.size<c+o}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach(n=>e.push(n)),e}printScopes(){return this.scopes?this.asArray().join(" "):ee.YM.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}function WS(s,e){if(!s)throw(0,Gt.SB)(nn.fY);try{const n=e(s);return JSON.parse(n)}catch{throw(0,Gt.SB)(nn.lP)}}function mg(s){if(!s)throw(0,Gt.SB)(nn.lP);const e=s.split(ee.LR.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?ee.YM.EMPTY_STRING:e[1]}}function iE(s,e){return!!s&&!!e&&s===e.split(".")[1]}function Uw(s,e,n,o){if(o){const{oid:c,sub:d,tid:h,name:g,tfp:C,acr:S}=o,O=h||C||S||"";return{tenantId:O,localAccountId:c||d||"",name:g,isHomeTenant:iE(O,s)}}return{tenantId:n,localAccountId:e,isHomeTenant:iE(n,s)}}function oE(s,e,n,o){let c=s;if(e){const{isHomeTenant:d,...h}=e;c={...s,...h}}if(n){const{isHomeTenant:d,...h}=Uw(s.homeAccountId,s.localAccountId,s.tenantId,n);return c={...c,...h,idTokenClaims:n,idToken:o},c}return c}function cN(s){return s&&(s.tid||s.tfp||s.acr)||null}class ts{generateAccountId(){return[this.homeAccountId,this.environment].join(ee.LR.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return ts.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const n=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",n||e.tenantId||""].join(ee.LR.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,n,o){const c=new ts;let d;c.authorityType=1===n.authorityType?ee.Qd.ADFS_ACCOUNT_TYPE:"AAD"===n.protocolMode?ee.Qd.MSSTS_ACCOUNT_TYPE:ee.Qd.GENERIC_ACCOUNT_TYPE,e.clientInfo&&o&&(d=WS(e.clientInfo,o)),c.clientInfo=e.clientInfo,c.homeAccountId=e.homeAccountId,c.nativeAccountId=e.nativeAccountId;const h=e.environment||n&&n.getPreferredCache();if(!h)throw(0,Gt.SB)(nn.l3);if(c.environment=h,c.realm=d?.utid||cN(e.idTokenClaims)||"",c.localAccountId=d?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"",c.username=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn||(e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null)||"",c.name=e.idTokenClaims?.name||"",c.cloudGraphHostName=e.cloudGraphHostName,c.msGraphHost=e.msGraphHost,e.tenantProfiles)c.tenantProfiles=e.tenantProfiles;else{const S=Uw(e.homeAccountId,c.localAccountId,c.realm,e.idTokenClaims);c.tenantProfiles=[S]}return c}static createFromAccountInfo(e,n,o){const c=new ts;return c.authorityType=e.authorityType||ee.Qd.GENERIC_ACCOUNT_TYPE,c.homeAccountId=e.homeAccountId,c.localAccountId=e.localAccountId,c.nativeAccountId=e.nativeAccountId,c.realm=e.tenantId,c.environment=e.environment,c.username=e.username,c.name=e.name,c.cloudGraphHostName=n,c.msGraphHost=o,c.tenantProfiles=Array.from(e.tenantProfiles?.values()||[]),c}static generateHomeAccountId(e,n,o,c,d){if(1!==n&&2!==n){if(e)try{const h=WS(e,c.base64Decode);if(h.uid&&h.utid)return`${h.uid}.${h.utid}`}catch{}o.warning("No client info in response")}return d?.sub||""}static isAccountEntity(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType")}static accountInfoIsEqual(e,n,o){if(!e||!n)return!1;let c=!0;if(o){const d=e.idTokenClaims||{},h=n.idTokenClaims||{};c=d.iat===h.iat&&d.nonce===h.nonce}return e.homeAccountId===n.homeAccountId&&e.localAccountId===n.localAccountId&&e.username===n.username&&e.tenantId===n.tenantId&&e.environment===n.environment&&e.nativeAccountId===n.nativeAccountId&&c}}var Yi=D(1564);const Bw={"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},YS={tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},uN=new Set;function fN(s,e,n,o){if(o?.trace(`getAliasesFromMetadata called with source: ${n}`),s&&e){const c=Fv(e,s);
1if(c)return o?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${n}, returning aliases`),c.aliases;o?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${n}`)}return null}function Fv(s,e){for(let n=0;n<s.length;n++){const o=s[n];if(o.aliases.includes(e))return o}return null}YS.metadata.forEach(s=>{s.aliases.forEach(e=>{uN.add(e)})});const sE="cache_quota_exceeded",Vw="cache_error_unknown",XS={[sE]:"Exceeded cache storage capacity.",[Vw]:"Unexpected error occurred when using cache storage."};class Uv extends Error{constructor(e,n){const o=n||(XS[e]?XS[e]:XS[Vw]);super(`${e}: ${o}`),Object.setPrototypeOf(this,Uv.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=o}}function jw(s){return s instanceof Error?"QuotaExceededError"===s.name||"NS_ERROR_DOM_QUOTA_REACHED"===s.name||s.message.includes("exceeded the quota")?new Uv(sE):new Uv(s.name,s.message):new Uv(Vw)}var ns=D(3461);class Bv{constructor(e,n,o,c){this.clientId=e,this.cryptoImpl=n,this.commonLogger=o.clone(Rv,tE),this.staticAuthorityOptions=c}getAllAccounts(e,n){return this.buildTenantProfiles(this.getAccountsFilteredBy(n||{},e),e,n)}getAccountInfoFilteredBy(e,n){const o=this.getAllAccounts(n,e);return o.length>1?o.sort(d=>d.idTokenClaims?-1:1)[0]:1===o.length?o[0]:null}getBaseAccountInfo(e,n){const o=this.getAccountsFilteredBy(e,n);return o.length>0?o[0].getAccountInfo():null}buildTenantProfiles(e,n,o){return e.flatMap(c=>this.getTenantProfilesFromAccountEntity(c,n,o?.tenantId,o))}getTenantedAccountInfoByFilter(e,n,o,c,d){let g,h=null;if(d&&!this.tenantProfileMatchesFilter(o,d))return null;const C=this.getIdToken(e,c,n,o.tenantId);return C&&(g=pg(C.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(g,d))?null:(h=oE(e,o,g,C?.secret),h)}getTenantProfilesFromAccountEntity(e,n,o,c){const d=e.getAccountInfo();let h=d.tenantProfiles||new Map;const g=this.getTokenKeys();if(o){const S=h.get(o);if(!S)return[];h=new Map([[o,S]])}const C=[];return h.forEach(S=>{const O=this.getTenantedAccountInfoByFilter(d,g,S,n,c);O&&C.push(O)}),C}tenantProfileMatchesFilter(e,n){return!(n.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,n.localAccountId)||n.name&&e.name!==n.name||void 0!==n.isHomeTenant&&e.isHomeTenant!==n.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,n){return!(n&&(n.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,n.localAccountId)||n.loginHint&&!this.matchLoginHintFromTokenClaims(e,n.loginHint)||n.username&&!this.matchUsername(e.preferred_username,n.username)||n.name&&!this.matchName(e,n.name)||n.sid&&!this.matchSid(e,n.sid)))}saveCacheRecord(e,n,o){var c=this;return(0,bt.A)(function*(){if(!e)throw(0,Gt.SB)(nn.n4);try{e.account&&c.setAccount(e.account,n),e.idToken&&!1!==o?.idToken&&c.setIdTokenCredential(e.idToken,n),e.accessToken&&!1!==o?.accessToken&&(yield c.saveAcce
1ssToken(e.accessToken,n)),e.refreshToken&&!1!==o?.refreshToken&&c.setRefreshTokenCredential(e.refreshToken,n),e.appMetadata&&c.setAppMetadata(e.appMetadata,n)}catch(d){throw c.commonLogger?.error("CacheManager.saveCacheRecord: failed"),d instanceof ns.lR?d:jw(d)}})()}saveAccessToken(e,n){var o=this;return(0,bt.A)(function*(){const c={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},d=o.getTokenKeys(),h=Lo.fromString(e.target);d.accessToken.forEach(g=>{if(!o.accessTokenKeyMatchesFilter(g,c,!1))return;const C=o.getAccessTokenCredential(g,n);C&&o.credentialMatchesFilter(C,c)&&Lo.fromString(C.target).intersectingScopeSets(h)&&o.removeAccessToken(g,n)}),o.setAccessTokenCredential(e,n)})()}getAccountsFilteredBy(e,n){const o=this.getAccountKeys(),c=[];return o.forEach(d=>{if(!this.isAccountKey(d,e.homeAccountId))return;const h=this.getAccount(d,n,this.commonLogger);if(!h||e.homeAccountId&&!this.matchHomeAccountId(h,e.homeAccountId)||e.username&&!this.matchUsername(h.username,e.username)||e.environment&&!this.matchEnvironment(h,e.environment)||e.realm&&!this.matchRealm(h,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(h,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(h,e.authorityType))return;const g={localAccountId:e?.localAccountId,name:e?.name},C=h.tenantProfiles?.filter(S=>this.tenantProfileMatchesFilter(S,g));C&&0===C.length||c.push(h)}),c}isAccountKey(e,n,o){return!(e.split(ee.LR.CACHE_KEY_SEPARATOR).length<3||n&&!e.toLowerCase().includes(n.toLowerCase())||o&&!e.toLowerCase().includes(o.toLowerCase()))}isCredentialKey(e){if(e.split(ee.LR.CACHE_KEY_SEPARATOR).length<6)return!1;const n=e.toLowerCase();if(-1===n.indexOf(ee.aG.ID_TOKEN.toLowerCase())&&-1===n.indexOf(ee.aG.ACCESS_TOKEN.toLowerCase())&&-1===n.indexOf(ee.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===n.indexOf(ee.aG.REFRESH_TOKEN.toLowerCase()))return!1;if(n.indexOf(ee.aG.REFRESH_TOKEN.toLowerCase())>-1){const c=`${ee.aG.REFRESH_TOKEN}${ee.LR.CACHE_KEY_SEPARATOR}${ee.hB}${ee.LR.CACHE_KEY_SEPARATOR}`;if(-1===n.indexOf(`${ee.aG.REFRESH_TOKEN}${ee.LR.CACHE_KEY_SEPARATOR}${this.clientId}${ee.LR.CACHE_KEY_SEPARATOR}`.toLowerCase())&&-1===n.indexOf(c.toLowerCase()))return!1}else if(-1===n.indexOf(this.clientId.toLowerCase()))return!1;return!0}credentialMatchesFilter(e,n){return!(n.clientId&&!this.matchClientId(e,n.clientId)||n.userAssertionHash&&!this.matchUserAssertionHash(e,n.userAssertionHash)||"string"==typeof n.homeAccountId&&!this.matchHomeAccountId(e,n.homeAccountId)||n.environment&&!this.matchEnvironment(e,n.environment)||n.realm&&!this.matchRealm(e,n.realm)||n.credentialType&&!this.matchCredentialType(e,n.credentialType)||n.familyId&&!this.matchFamilyId(e,n.familyId)||n.target&&!this.matchTarget(e,n.target)||(n.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==n.requestedClaimsHash||e.credentialType===ee.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(n.tokenType&&!this.matchTokenType(e,n.tokenType)||n.tokenType===ee.IO.SSH&&n.keyId&&!this.matchKeyId(e,n.keyId)))}getAppMetadataFilteredBy(e){const n=this.getKeys(),o={};return n.forEach(c=>{if(!this.isAppMetadata(c))return;const d=this.getAppMetadata(c);d&&(e.environment&&!this.matchEnvironment(d,e.environment)||e.clientId&&!this.matchClientId(d,e.clientId)||(o[c]=d))}),o}getAuthorityMetadataByAlias(e){const n=this.getAuthorityMetadataKeys();let o=null;return n.forEach(c=>{if(!this.isAuthorityMetadata(c)||-1===c.indexOf(this.clientId))return;const d=this.getAuthorityMetadata(c);d&&-1!==d.aliases.indexOf(e)&&(o=d)}),o}removeAllAccounts(e){var n=this;return(0,bt.A)(function*(){const o=n.getAccountKeys(),c=[];o.forEach(d=>{c.push(n.removeAccount(d,e))}),yield Promise.all(c)})()}removeAccount(e,n){var o=this;return(0,bt.A)(function*(){const c=o.getAccount(e,n,o.commonLogger);c&&(yield o.removeAccountContext(c,n),o.removeItem(e,n))})()}removeAccountContext(e,n){var o=this;return(0,bt.A)(function*(){const c=o.getTokenKeys(),d=e.generateAccountId();
1c.idToken.forEach(h=>{0===h.indexOf(d)&&o.removeIdToken(h,n)}),c.accessToken.forEach(h=>{0===h.indexOf(d)&&o.removeAccessToken(h,n)}),c.refreshToken.forEach(h=>{0===h.indexOf(d)&&o.removeRefreshToken(h,n)}),o.getKeys().forEach(h=>{h.includes(d)&&o.removeItem(h,n)})})()}updateOutdatedCachedAccount(e,n,o,c){if(n&&n.isSingleTenant()){this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const d=this.getAccountKeys().filter(O=>O.startsWith(n.homeAccountId)),h=[];d.forEach(O=>{const $=this.getCachedAccountEntity(O,o);$&&h.push($)});const g=h.find(O=>iE(O.realm,O.homeAccountId))||h[0];g.tenantProfiles=h.map(O=>({tenantId:O.realm,localAccountId:O.localAccountId,name:O.name,isHomeTenant:iE(O.realm,O.homeAccountId)}));const C=Bv.toObject(new ts,{...g}),S=C.generateAccountKey();return d.forEach(O=>{O!==S&&this.removeOutdatedAccount(e,o)}),this.setAccount(C,o),c?.verbose("Updated an outdated account entity in the cache"),C}return n}removeAccessToken(e,n){const o=this.getAccessTokenCredential(e,n);if(this.removeItem(e,n),!o||o.credentialType.toLowerCase()!==ee.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||o.tokenType!==ee.IO.POP)return;const c=o.keyId;c&&this.cryptoImpl.removeTokenBindingKey(c).catch(()=>{this.commonLogger.error("Binding key could not be removed")})}removeAppMetadata(e){return this.getKeys().forEach(o=>{this.isAppMetadata(o)&&this.removeItem(o,e)}),!0}readAccountFromCache(e,n){const o=ts.generateAccountCacheKey(e);return this.getAccount(o,n,this.commonLogger)}getIdToken(e,n,o,c,d){this.commonLogger.trace("CacheManager - getIdToken called");const g=this.getIdTokensByFilter({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ee.aG.ID_TOKEN,clientId:this.clientId,realm:c},n,o),C=g.size;if(C<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(C>1){let S=g;if(!c){const O=new Map;g.forEach((ae,q)=>{ae.realm===e.tenantId&&O.set(q,ae)});const $=O.size;if($<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),g.values().next().value;if(1===$)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),O.values().next().value;S=O}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),S.forEach((O,$)=>{this.removeIdToken($,n)}),d&&n&&d.addFields({multiMatchedID:g.size},n),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),g.values().next().value}getIdTokensByFilter(e,n,o){const c=o&&o.idToken||this.getTokenKeys().idToken,d=new Map;return c.forEach(h=>{if(!this.idTokenKeyMatchesFilter(h,{clientId:this.clientId,...e}))return;const g=this.getIdTokenCredential(h,n);g&&this.credentialMatchesFilter(g,e)&&d.set(h,g)}),d}idTokenKeyMatchesFilter(e,n){const o=e.toLowerCase();return!(n.clientId&&-1===o.indexOf(n.clientId.toLowerCase())||n.homeAccountId&&-1===o.indexOf(n.homeAccountId.toLowerCase()))}removeIdToken(e,n){this.removeItem(e,n)}removeRefreshToken(e,n){this.removeItem(e,n)}getAccessToken(e,n,o,c,d){this.commonLogger.trace("CacheManager - getAccessToken called");const h=Lo.createSearchScopes(n.scopes),g=n.authenticationScheme||ee.IO.BEARER,C=g&&g.toLowerCase()!==ee.IO.BEARER.toLowerCase()?ee.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:ee.aG.ACCESS_TOKEN,S={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:C,clientId:this.clientId,realm:c||e.tenantId,target:h,tokenType:g,keyId:n.sshKid,requestedClaimsHash:n.requestedClaimsHash},O=o&&o.accessToken||this.getTokenKeys().accessToken,$=[];O.forEach(q=>{if(this.accessTokenKeyMatchesFilter(q,S,!0)){const ie=this.getAccessTokenCredential(q,n.correlationId);ie&&this.credentialMatchesFilter(ie,S)&&$.push(ie)}});const ae=$.length;return ae<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):ae>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),$.forEach(q=>{this.removeAccessToken(Th(q),n.correlationId)}),d&&n.correlationId&&d.addFields({multiMatchedAT:$.length},n.correlationId),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),$[0])}accessTokenKeyMatchesFilter(e,n,o){const c=e.toLowerCase();if(n.clientId&&-1===c.indexOf(n.clientId.toLowerCase())||n.homeAccountId&&-1===c.indexOf(n.homeAccountId.toLowerCase())||n.realm&&-1===c.indexOf(n.realm.toLowerCase())||n.requestedClaimsHash&&-1===c.indexOf(n.requestedClaimsHash.toLowerCase()))return!1;if(n.target){const d=n.target.asArray();for(let h=0;h<d.length;h++){if(o&&!c.includes(d[h].toLowerCase()))return!1;if(!o&&c.includes(d[h].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e,n){const o=this.getTokenKeys(),c=[];
1return o.accessToken.forEach(d=>{if(!this.accessTokenKeyMatchesFilter(d,e,!0))return;const h=this.getAccessTokenCredential(d,n);h&&this.credentialMatchesFilter(h,e)&&c.push(h)}),c}getRefreshToken(e,n,o,c,d){this.commonLogger.trace("CacheManager - getRefreshToken called");const g={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ee.aG.REFRESH_TOKEN,clientId:this.clientId,familyId:n?ee.hB:void 0},C=c&&c.refreshToken||this.getTokenKeys().refreshToken,S=[];C.forEach($=>{if(this.refreshTokenKeyMatchesFilter($,g)){const ae=this.getRefreshTokenCredential($,o);ae&&this.credentialMatchesFilter(ae,g)&&S.push(ae)}});const O=S.length;return O<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(O>1&&d&&o&&d.addFields({multiMatchedRT:O},o),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),S[0])}refreshTokenKeyMatchesFilter(e,n){const o=e.toLowerCase();return!(n.familyId&&-1===o.indexOf(n.familyId.toLowerCase())||!n.familyId&&n.clientId&&-1===o.indexOf(n.clientId.toLowerCase())||n.homeAccountId&&-1===o.indexOf(n.homeAccountId.toLowerCase()))}readAppMetadataFromCache(e){const o=this.getAppMetadataFilteredBy({environment:e,clientId:this.clientId}),c=Object.keys(o).map(h=>o[h]),d=c.length;if(d<1)return null;if(d>1)throw(0,Gt.SB)(nn.oV);return c[0]}isAppMetadataFOCI(e){const n=this.readAppMetadataFromCache(e);return!(!n||n.familyId!==ee.hB)}matchHomeAccountId(e,n){return"string"==typeof e.homeAccountId&&n===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,n){return n===(e.oid||e.sub)}matchLocalAccountIdFromTenantProfile(e,n){return e.localAccountId===n}matchName(e,n){return n.toLowerCase()===e.name?.toLowerCase()}matchUsername(e,n){return!(!e||"string"!=typeof e||n?.toLowerCase()!==e.toLowerCase())}matchUserAssertionHash(e,n){return!(!e.userAssertionHash||n!==e.userAssertionHash)}matchEnvironment(e,n){if(this.staticAuthorityOptions){const c=function dN(s,e){let n;const o=s.canonicalAuthority;if(o){const c=new Yi.H(o).getUrlComponents().HostNameAndPort;n=fN(c,s.cloudDiscoveryMetadata?.metadata,ee.E_.CONFIG,e)||fN(c,YS.metadata,ee.E_.HARDCODED_VALUES,e)||s.knownAuthorities}return n||[]}(this.staticAuthorityOptions,this.commonLogger);if(c.includes(n)&&c.includes(e.environment))return!0}const o=this.getAuthorityMetadataByAlias(n);return!!(o&&o.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,n){return e.credentialType&&n.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,n){return!(!e.clientId||n!==e.clientId)}matchFamilyId(e,n){return!(!e.familyId||n!==e.familyId)}matchRealm(e,n){return e.realm?.toLowerCase()===n.toLowerCase()}matchNativeAccountId(e,n){return!(!e.nativeAccountId||n!==e.nativeAccountId)}matchLoginHintFromTokenClaims(e,n){return e.login_hint===n||e.preferred_username===n||e.upn===n}matchSid(e,n){return e.sid===n}matchAuthorityType(e,n){return!(!e.authorityType||n.toLowerCase()!==e.authorityType.toLowerCase())}matchTarget(e,n){return!(e.credentialType!==ee.aG.ACCESS_TOKEN&&e.credentialType!==ee.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)&&Lo.fromString(e.target).containsScopeSet(n)}matchTokenType(e,n){return!(!e.tokenType||e.tokenType!==n)}matchKeyId(e,n){return!(!e.keyId||e.keyId!==n)}isAppMetadata(e){return-1!==e.indexOf(ee.GU)}isAuthorityMetadata(e){return-1!==e.indexOf(ee.u0.CACHE_KEY)}generateAuthorityMetadataCacheKey(e){return`${ee.u0.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,n){for(const o in n)e[o]=n[o];return e}}class hN extends Bv{setAccount(){throw(0,Gt.SB)(nn.R9)}getAccount(){throw(0,Gt.SB)(nn.R9)}getCachedAccountEntity(){throw(0,Gt.SB)(nn.R9)}setIdTokenCredential(){throw(0,Gt.SB)(nn.R9)}getIdTokenCredential(){throw(0,Gt.SB)(nn.R9)}setAccessTokenCredential(){throw(0,Gt.SB)(nn.R9)}getAccessTokenCredential(){throw(0,Gt.SB)(nn.R9)}setRefreshTokenCredential(){throw(0,Gt.SB)(nn.R9)}getRefreshTokenCredential(){throw(0,Gt.SB)(nn.R9)}setAppMetadata(){throw(0,Gt.SB)(nn.R9)}getAppMetadata(){throw(0,Gt.SB)(nn.R9)}setServerTelemetry(){throw(0,Gt.SB)(nn.R9)}getServerTelemetry(){throw(0,Gt.SB)(nn.R9)}setAuthorityMetadata(){throw(0,Gt.SB)(nn.R9)}getAuthorityMetadata(){throw(0,Gt.SB)(nn.R9)}getAuthorityMetadataKeys(){throw(0,Gt.SB)(nn.R9)}setThrottlingCache(){throw(0,Gt.SB)(nn.R9)}getThrottlingCache(){throw(0,Gt.SB)(nn.R9)}removeItem(){throw(0,Gt.SB)(nn.R9)}getKeys(){throw(0,Gt.SB)(nn.R9)}getAccountKeys(){throw(0,Gt.SB)(nn.R9)}getTokenKeys(){throw(0,Gt.SB)(nn.R9)}updateCredentialCacheKey(){throw(0,Gt.SB)(nn.R9)}removeOutdatedAccount(){throw(0,Gt.SB)(nn.R9)}}const pN={tokenRenewalOffsetSeconds:ee.F0,preventCorsPreflight:!1},gN={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:bo.Info,correlationId:ee.YM.EMPTY_STRING},mN={claimsBasedCachingEnabled:!1},vN={sendGetRequestAsync:()=>(0,bt.A)(function*(){throw(0,Gt.SB)(nn.R9)})(),sendPostRequestAsync:()=>(0,bt.A)(function*(){throw(0,Gt.SB)(nn.R9)})()},Gw={sku:ee.YM.SKU,version:tE,cpu:ee.YM.EMPTY_STRING,os:ee.YM.EMPTY_STRING},$w={clientSecret:ee.YM.EMPTY_STRING,clientAssertion:void 0},_N={azureCloudInstance:"none",tenant:`${ee.YM.DEFAULT_COMMON_TENANT}`},zw={application:{appName:"",appVersion:""}};function Bk(s){return{clientCapabilities:[],azureCloudOptions:_N,skipAuthorityMetadataCache:!1,instanceAware:!1,...s}}function qS(s){return"OIDC"===s.authOptions.authority.options.protocolMode}const aE={sendGetRequestAsync:()=>Promise.reject((0,Gt.SB)(nn.R9)),sendPostRequestAsync:()=>Promise.reject((0,Gt.SB)(nn.R9))};var pt=D(4561);class QS{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class yN{generateId(){return"callback-id"}startMeasurement(e,n){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:pt.hU.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:n||""},measurement:new QS}}startPerformanceMeasurement(){return new QS}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}var nt=D(7554);class Sh{navigateInternal(e,n){return Sh.defaultNavigateWindow(e,n)}navigateExternal(e,n){return Sh.defaultNavigateWindow(e,n)}static defaultNavigateWindow(e,n){return n.noHistory?window.location.replace(e):window.location.assign(e),new Promise(o=>{setTimeout(()=>{o(!0)},n.timeout)})}}class cE extends ns.lR{constructor(e,n,o){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,cE.prototype),this.name="NetworkError",this.error=e,this.httpStatus=n,this.responseHeaders=o}}function Ww(s,e,n){return new cE(s,e,n)}var er=D(6810),Wn=D(6588);class CN{sendGetRequestAsync(e,n){return(0,bt.A)(function*(){let o,c={},d=0;const h=EN(n);try{o=yield fetch(e,{method:nt.CC.GET,headers:h})}catch{throw(0,er.bD)(window.navigator.onLine?Wn.Zw:Wn.l7)}c=TN(o.headers);try{return d=o.status,{headers:c,body:yield o.json(),status:d}}catch{throw Ww((0,er.bD)(Wn.db),d,c)}})()}sendPostRequestAsync(e,n){return(0,bt.A)(function*(){const o=n&&n.body||"",c=EN(n);let d,h=0,g={};try{d=yield fetch(e,{method:nt.CC.POST,headers:c,body:o})}catch{throw(0,er.bD)(window.navigator.onLine?Wn.zv:Wn.l7)}g=TN(d.headers);try{return h=d.status,{headers:g,body:yield d.json(),status:h}}catch{throw Ww((0,er.bD)(Wn.db),h,g)}})()}}function EN(s){try{const e=new Headers;
1return s&&s.headers?(Object.entries(s.headers).forEach(([o,c])=>{e.append(o,c)}),e):e}catch{throw(0,er.bD)(Wn.Tw)}}function TN(s){try{const e={};return s.forEach((n,o)=>{e[o]=n}),e}catch{throw(0,er.bD)(Wn.wI)}}var Fo=D(1474);const ZS=1e4,vg="3.30.0";class JS{static loggerCallback(e,n){switch(e){case bo.Error:return void console.error(n);case bo.Info:return void console.info(n);case bo.Verbose:return void console.debug(n);case bo.Warning:return void console.warn(n);default:return void console.log(n)}}constructor(e){let n;this.browserEnvironment=typeof window<"u",this.config=function Gk({auth:s,cache:e,system:n,telemetry:o},c){const d={clientId:ee.YM.EMPTY_STRING,authority:`${ee.YM.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:ee.YM.EMPTY_STRING,authorityMetadata:ee.YM.EMPTY_STRING,redirectUri:typeof window<"u"?(0,Fo.Uu)():"",postLogoutRedirectUri:ee.YM.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:"AAD",OIDCOptions:{serverResponseType:ee.zL.FRAGMENT,defaultScopes:[ee.YM.OPENID_SCOPE,ee.YM.PROFILE_SCOPE,ee.YM.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:"none",tenant:ee.YM.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},h={cacheLocation:nt.Al.SessionStorage,temporaryCacheLocation:nt.Al.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!e||e.cacheLocation!==nt.Al.LocalStorage),claimsBasedCachingEnabled:!1},g={loggerCallback:()=>{},logLevel:bo.Info,piiLoggingEnabled:!1},S={...{...pN,loggerOptions:g,networkClient:c?new CN:aE,navigationClient:new Sh,loadFrameTimeout:0,windowHashTimeout:n?.loadFrameTimeout||6e4,iframeHashTimeout:n?.loadFrameTimeout||ZS,navigateFrameWait:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:n?.nativeBrokerHandshakeTimeout||2e3,pollIntervalMilliseconds:nt.Q1.DEFAULT_POLL_INTERVAL_MS},...n,loggerOptions:n?.loggerOptions||g},O={application:{appName:ee.YM.EMPTY_STRING,appVersion:ee.YM.EMPTY_STRING},client:new yN};if("OIDC"!==s?.protocolMode&&s?.OIDCOptions&&new Ld(S.loggerOptions).warning(JSON.stringify((0,qo.aD)(Qo.bg))),s?.protocolMode&&"AAD"!==s.protocolMode&&S?.allowNativeBroker)throw(0,qo.aD)(Qo.J6);return{auth:{...d,...s,OIDCOptions:{...d.OIDCOptions,...s?.OIDCOptions}},cache:{...h,...e},system:S,telemetry:{...O,...o}}}(e,this.browserEnvironment);try{n=window[nt.Al.SessionStorage]}catch{}const o=n?.getItem(nt.L$),c=n?.getItem(nt.P3)?.toLowerCase(),d="true"===c||"false"!==c&&void 0,h={...this.config.system.loggerOptions},g=o&&Object.keys(bo).includes(o)?bo[o]:void 0;g&&(h.loggerCallback=JS.loggerCallback,h.logLevel=g),void 0!==d&&(h.piiLoggingEnabled=d),this.logger=new Ld(h,"@azure/msal-browser",vg),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}let Yw=(()=>{class s extends JS{getModuleName(){return s.MODULE_NAME}getId(){return s.ID}initialize(){var n=this;return(0,bt.A)(function*(){return n.available=typeof window<"u",n.available})()}}return s.MODULE_NAME="",s.ID="StandardOperatingContext",s})();const Xw="missing_kid_error",qw="missing_alg_error",IN={[Xw]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[qw]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class lE extends ns.lR{constructor(e,n){super(e,n),this.name="JoseHeaderError",Object.setPrototypeOf(this,lE.prototype)}}function SN(s){return new lE(s,IN[s])}class e0{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw SN(Xw);if(!e.alg)throw SN(qw);const n=new e0({typ:e.typ||ee.Lz.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(n)}}var Fd=D(6195);function t(s){return(new TextDecoder).decode(function r(s){let e=s.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw(0,er.bD)(Wn._t)}const n=atob(e);return Uint8Array.from(n,o=>o.codePointAt(0)||0)}(s))}var i=D(1510);class a{constructor(){this.dbName=nt.$u,this.version=nt.G8,this.tableName=nt.WJ,this.dbOpen=!1}open(){var e=this;return(0,bt.A)(function*(){return new Promise((n,o)=>{const c=window.indexedDB.open(e.dbName,e.version);c.addEventListener("upgradeneeded",d=>{d.target.result.createObjectStore(e.tableName)}),c.addEventListener("success",d=>{e.db=d.target.result,e.dbOpen=!0,n()}),c.addEventListener("error",()=>o((0,er.bD)(Wn.MG)))})})()}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}validateDbIsOpen(){var e=this;return(0,bt.A)(function*(){if(!e.dbOpen)return e.open()})()}getItem(e){var n=this;return(0,bt.A)(function*(){return yield n.validateDbIsOpen(),new Promise((o,c)=>{if(!n.db)return c((0,er.bD)(Wn.rn));const g=n.db.transaction([n.tableName],"readonly").objectStore(n.tableName).get(e);g.addEventListener("success",C=>{const S=C;n.closeConnection(),o(S.target.result)}),g.addEventListener("error",C=>{n.closeConnection(),c(C)})})})()}setItem(e,n){var o=this;return(0,bt.A)(function*(){return yield o.validateDbIsOpen(),new Promise((c,d)=>
1{if(!o.db)return d((0,er.bD)(Wn.rn));const C=o.db.transaction([o.tableName],"readwrite").objectStore(o.tableName).put(n,e);C.addEventListener("success",()=>{o.closeConnection(),c()}),C.addEventListener("error",S=>{o.closeConnection(),d(S)})})})()}removeItem(e){var n=this;return(0,bt.A)(function*(){return yield n.validateDbIsOpen(),new Promise((o,c)=>{if(!n.db)return c((0,er.bD)(Wn.rn));const g=n.db.transaction([n.tableName],"readwrite").objectStore(n.tableName).delete(e);g.addEventListener("success",()=>{n.closeConnection(),o()}),g.addEventListener("error",C=>{n.closeConnection(),c(C)})})})()}getKeys(){var e=this;return(0,bt.A)(function*(){return yield e.validateDbIsOpen(),new Promise((n,o)=>{if(!e.db)return o((0,er.bD)(Wn.rn));const h=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).getAllKeys();h.addEventListener("success",g=>{const C=g;e.closeConnection(),n(C.target.result)}),h.addEventListener("error",g=>{e.closeConnection(),o(g)})})})()}containsKey(e){var n=this;return(0,bt.A)(function*(){return yield n.validateDbIsOpen(),new Promise((o,c)=>{if(!n.db)return c((0,er.bD)(Wn.rn));const g=n.db.transaction([n.tableName],"readonly").objectStore(n.tableName).count(e);g.addEventListener("success",C=>{const S=C;n.closeConnection(),o(1===S.target.result)}),g.addEventListener("error",C=>{n.closeConnection(),c(C)})})})()}deleteDatabase(){var e=this;return(0,bt.A)(function*(){return e.db&&e.dbOpen&&e.closeConnection(),new Promise((n,o)=>{const c=window.indexedDB.deleteDatabase(nt.$u),d=setTimeout(()=>o(!1),200);c.addEventListener("success",()=>(clearTimeout(d),n(!0))),c.addEventListener("blocked",()=>(clearTimeout(d),n(!0))),c.addEventListener("error",()=>(clearTimeout(d),o(!1)))})})()}}class l{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,n){this.cache.set(e,n)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((n,o)=>{e.push(o)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}class f{constructor(e){this.inMemoryCache=new l,this.indexedDBCache=new a,this.logger=e}handleDatabaseAccessError(e){if(!(e instanceof er.jT&&e.errorCode===Wn.MG))throw e;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")}getItem(e){var n=this;return(0,bt.A)(function*(){const o=n.inMemoryCache.getItem(e);if(!o)try{return n.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),yield n.indexedDBCache.getItem(e)}catch(c){n.handleDatabaseAccessError(c)}return o})()}setItem(e,n){var o=this;return(0,bt.A)(function*(){o.inMemoryCache.setItem(e,n);try{yield o.indexedDBCache.setItem(e,n)}catch(c){o.handleDatabaseAccessError(c)}})()}removeItem(e){var n=this;return(0,bt.A)(function*(){n.inMemoryCache.removeItem(e);try{yield n.indexedDBCache.removeItem(e)}catch(o){n.handleDatabaseAccessError(o)}})()}getKeys(){var e=this;return(0,bt.A)(function*(){const n=e.inMemoryCache.getKeys();if(0===n.length)try{return e.logger.verbose("In-memory cache is empty, now querying persistent storage."),yield e.indexedDBCache.getKeys()}catch(o){e.handleDatabaseAccessError(o)}return n})()}containsKey(e){var n=this;return(0,bt.A)(function*(){const o=n.inMemoryCache.containsKey(e);if(!o)try{return n.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),yield n.indexedDBCache.containsKey(e)}catch(c){n.handleDatabaseAccessError(c)}return o})()}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}clearPersistent(){var e=this;return(0,bt.A)(function*(){try{e.logger.verbose("Deleting persistent keystore");const n=yield e.indexedDBCache.deleteDatabase();return n&&e.logger.verbose("Persistent keystore deleted"),n}catch(n){return e.handleDatabaseAccessError(n),!1}})()}}let m=(()=>{class s{constructor(n,o,c){this.logger=n,(0,i.RW)(c??!1),this.cache=new f(this.logger),this.performanceClient=o}createNewGuid(){return(0,i.Oy)()}base64Encode(n){return(0,Fd.KA)(n)}base64Decode(n){return t(n)}base64UrlEncode(n){return(0,Fd.u4)(n)}
1encodeKid(n){return this.base64UrlEncode(JSON.stringify({kid:n}))}getPublicKeyThumbprint(n){var o=this;return(0,bt.A)(function*(){const c=o.performanceClient?.startMeasurement(pt.MX.CryptoOptsGetPublicKeyThumbprint,n.correlationId),d=yield(0,i.TZ)(s.EXTRACTABLE,s.POP_KEY_USAGES),h=yield(0,i.RI)(d.publicKey),C=_({e:h.e,kty:h.kty,n:h.n}),S=yield o.hashString(C),O=yield(0,i.RI)(d.privateKey),$=yield(0,i.W6)(O,!1,["sign"]);return yield o.cache.setItem(S,{privateKey:$,publicKey:d.publicKey,requestMethod:n.resourceRequestMethod,requestUri:n.resourceRequestUri}),c&&c.end({success:!0}),S})()}removeTokenBindingKey(n){var o=this;return(0,bt.A)(function*(){return yield o.cache.removeItem(n),!(yield o.cache.containsKey(n))})()}clearKeystore(){var n=this;return(0,bt.A)(function*(){n.cache.clearInMemory();try{return yield n.cache.clearPersistent(),!0}catch(o){return o instanceof Error?n.logger.error(`Clearing keystore failed with error: ${o.message}`):n.logger.error("Clearing keystore failed with unknown error"),!1}})()}signJwt(n,o,c,d){var h=this;return(0,bt.A)(function*(){const g=h.performanceClient?.startMeasurement(pt.MX.CryptoOptsSignJwt,d),C=yield h.cache.getItem(o);if(!C)throw(0,er.bD)(Wn.e0);const S=yield(0,i.RI)(C.publicKey),O=_(S),$=(0,Fd.u4)(JSON.stringify({kid:o})),ae=e0.getShrHeaderString({...c?.header,alg:S.alg,kid:$}),q=(0,Fd.u4)(ae);n.cnf={jwk:JSON.parse(O)};const le=`${q}.${(0,Fd.u4)(JSON.stringify(n))}`,_e=(new TextEncoder).encode(le),Pe=yield(0,i._S)(C.privateKey,_e),Dt=`${le}.${(0,Fd.dB)(new Uint8Array(Pe))}`;return g&&g.end({success:!0}),Dt})()}hashString(n){return(0,bt.A)(function*(){return(0,i.YZ)(n)})()}}return s.POP_KEY_USAGES=["sign","verify"],s.EXTRACTABLE=!0,s})();function _(s){return JSON.stringify(s,Object.keys(s).sort())}const se=(s,e,n,o,c)=>(...d)=>{n.trace(`Executing function ${e}`);const h=o?.startMeasurement(e,c);if(c){const g=e+"CallCount";o?.incrementFields({[g]:1},c)}try{const g=s(...d);return h?.end({success:!0}),n.trace(`Returning result from ${e}`),g}catch(g){n.trace(`Error occurred in ${e}`);try{n.trace(JSON.stringify(g))}catch{n.trace("Unable to print error message.")}throw h?.end({success:!1},g),g}},fe=(s,e,n,o,c)=>(...d)=>{n.trace(`Executing function ${e}`);const h=o?.startMeasurement(e,c);if(c){const g=e+"CallCount";o?.incrementFields({[g]:1},c)}return o?.setPreQueueTime(e,c),s(...d).then(g=>(n.trace(`Returning result from ${e}`),h?.end({success:!0}),g)).catch(g=>{n.trace(`Error occurred in ${e}`);try{n.trace(JSON.stringify(g))}catch{n.trace("Unable to print error message.")}throw h?.end({success:!1},g),g})};let Ke=(()=>{class s{constructor(n,o,c,d){this.networkInterface=n,this.logger=o,this.performanceClient=c,this.correlationId=d}detectRegion(n,o){var c=this;return(0,bt.A)(function*(){c.performanceClient?.addQueueMeasurement(pt.MX.RegionDiscoveryDetectRegion,c.correlationId);let d=n;if(d)o.region_source=ee.jZ.ENVIRONMENT_VARIABLE;else{const h=s.IMDS_OPTIONS;try{const g=yield fe(c.getRegionFromIMDS.bind(c),pt.MX.RegionDiscoveryGetRegionFromIMDS,c.logger,c.performanceClient,c.correlationId)(ee.YM.IMDS_VERSION,h);if(g.status===ee.Kk.httpSuccess&&(d=g.body,o.region_source=ee.jZ.IMDS),g.status===ee.Kk.httpBadRequest){const C=yield fe(c.getCurrentVersion.bind(c),pt.MX.RegionDiscoveryGetCurrentVersion,c.logger,c.performanceClient,c.correlationId)(h);if(!C)return o.region_source=ee.jZ.FAILED_AUTO_DETECTION,null;const S=yield fe(c.getRegionFromIMDS.bind(c),pt.MX.RegionDiscoveryGetRegionFromIMDS,c.logger,c.performanceClient,c.correlationId)(C,h);S.status===ee.Kk.httpSuccess&&(d=S.body,o.region_source=ee.jZ.IMDS)}}catch{return o.region_source=ee.jZ.FAILED_AUTO_DETECTION,null}}return d||(o.region_source=ee.jZ.FAILED_AUTO_DETECTION),d||null})()}getRegionFromIMDS(n,o){var c=this;return(0,bt.A)(function*(){return c.performanceClient?.addQueueMeasurement(pt.MX.RegionDiscoveryGetRegionFromIMDS,c.correlationId),c.networkInterface.sendGetRequestAsync(`${ee.YM.IMDS_ENDPOINT}?api-version=${n}&format=text`,o,ee.YM.IMDS_TIMEOUT)})()}getCurrentVersion(n){var o=this;return(0,bt.A)(function*(){o.performanceClient?.addQueueMeasurement(pt.MX.RegionDiscoveryGetCurrentVersion,o.correlationId);try{const c=yield o.networkInterface.sendGetRequestAsync(`${ee.YM.IMDS_ENDPOINT}?format=json`,n);return c.status===ee.Kk.httpBadRequest&&c.body&&c.body["newest-versions"]&&c.body["newest-versions"].length>0?c.body["newest-versions"][0]:null}catch{return null}})()}}return s.IMDS_OPTIONS={headers:{Metadata:"true"}},s})();class Ze{constructor(e,n,o,c,d,h,g,C){this.canonicalAuthority=e,this._canonicalAuthority.val
1idateAsUri(),this.networkInterface=n,this.cacheManager=o,this.authorityOptions=c,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=d,this.performanceClient=g,this.correlationId=h,this.managedIdentity=C||!1,this.regionDiscovery=new Ke(n,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(ee.YM.CIAM_AUTH_URL))return 3;const n=e.PathSegments;if(n.length)switch(n[0].toLowerCase()){case ee.YM.ADFS:return 1;case ee.YM.DSTS:return 2}return 0}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new Yi.H(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw(0,Gt.SB)(nn.s1)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw(0,Gt.SB)(nn.s1)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw(0,Gt.SB)(nn.s1)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw(0,Gt.SB)(nn.yX);return this.replacePath(this.metadata.end_session_endpoint)}throw(0,Gt.SB)(nn.s1)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw(0,Gt.SB)(nn.s1)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw(0,Gt.SB)(nn.s1)}canReplaceTenant(e){return 1===e.PathSegments.length&&!Ze.reservedTenantDomains.has(e.PathSegments[0])&&0===this.getAuthorityType(e)&&"AAD"===this.protocolMode}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let n=e;const c=new Yi.H(this.metadata.canonical_authority).getUrlComponents(),d=c.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((g,C)=>{let S=d[C];if(0===C&&this.canReplaceTenant(c)){const O=new Yi.H(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];S!==O&&(this.logger.verbose(`Replacing tenant domain name ${S} with id ${O}`),S=O)}g!==S&&(n=n.replace(`/${S}/`,`/${g}/`))}),this.replaceTenant(n)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||1===this.authorityType||"AAD"!==this.protocolMode&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}resolveEndpointsAsync(){var e=this;return(0,bt.A)(function*(){e.performanceClient?.addQueueMeasurement(pt.MX.AuthorityResolveEndpointsAsync,e.correlationId);const n=e.getCurrentMetadataEntity(),o=yield fe(e.updateCloudDiscoveryMetadata.bind(e),pt.MX.AuthorityUpdateCloudDiscoveryMetadata,e.logger,e.performanceClient,e.correlationId)(n);e.canonicalAuthority=e.canonicalAuthority.replace(e.hostnameAndPort,n.preferred_network);const c=yield fe(e.updateEndpointMetadata.bind(e),pt.MX.AuthorityUpdateEndpointMetadata,e.logger,e.performanceClient,e.correlationId)(n);e.updateCachedMetadata(n,o,{source:c}),e.performanceClient?.addFields({cloudDiscoverySource:o,authorityEndpointSource:c},e.correlationId)})()}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:KS(),jwks_uri:""}),e}updateCachedMetadata(e,n,o){n!==ee.E_.CACHE&&o?.source!==ee.E_.CACHE&&(e.expiresAt=KS(),e.canonical_authority=this.canonicalAuthority);const c=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(c,e),this.metadata=e}updateEndpointMetadata(e){var n=this;return(0,bt.A)(function*(){n.performanceClient?.addQueueMeasurement(pt.MX.AuthorityUpdateEndpointMetadata,n.correlationId);const o=n.updateEndpointMetadataFromLocalSources(e);if(o){if(o.source===ee.E_.HARDCODED_VALUES&&n.authorityOptions.azureRegionConfiguration?.azureRegion&&o.metadata){const d=yield fe(n.updateMetadataWithRegionalInformation.bind(n),pt.MX.AuthorityUpdateMetadataWithRegionalInformation,n.logger,n.performanceClient,n.correlationId)(o.metadata);Lv(e,d,!1),e.canonical_authority=n.canonicalAuthority}return o.source}let c=yield fe(n.getEndpointMetadataFromNetwork.bind(n),pt.MX.AuthorityGetEndpointMetadataFromNetwork,n.logger,n.performanceClient,n.correlationId)();if(c)return n.authorityOptions.azureRegionConfiguration?.azureRegion&&(c=yield fe(n.updateMetadataWithRegionalInformation.bind(n),pt.MX.AuthorityUpdateMetadataWithRegionalInformation,n.logger,n.performanceClient,n.correlationId)(c)),Lv(e,c,!0),ee.E_.NETWORK;throw(0,Gt.SB)(nn.Ej,n.defaultOpenIdConfigurationEndpoint)})()}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const n=this.getEndpointMetadataFromConfig();if(n)return this.logger.verbose("Found endpoint metadata in authority configuration"),Lv(e,n,!1),{source:ee.E_.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const c=this.getEndpointMetadataFromHardcodedValues();if(c)return Lv(e,c,!1),{source:ee.E_.HARDCODED_VALUES,metadata:c};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const o=rE(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!o?(this.logger.verbose("Found endpoint metadata in the cache."),{source:ee.E_.CACHE}):(o&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new Yi.H(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw(0,qo.aD)(Qo.uk)}return null}getEndpointMetadataFromNetwork(){var e=this;return(0,bt.A)(function*(){e.performanceClient?.addQueueMeasurement(pt.MX.AuthorityGetEndpointMetadataFromNetwork,e.correlationId);const n={},o=e.defaultOpenIdConfigurationEndpoint;e.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${o}`);try{const c=yield e.networkInterface.sendGetRequestAsync(o,n);return function T(s){return s.hasOwnProperty("authorization_endpoint")&&s.hasOwnProperty("token_endpoint")&&s.hasOwnProperty("issuer")&&s.hasOwnProperty("jwks_uri")}(c.body)?c.body:(e.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(c){return e.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${c}`),null}})()}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in Bw?Bw[this.hostnameAndPort]:null}updateMetadataWithRegionalInformation(e){var n=this;return(0,bt.A)(function*(){n.performanceClient?.addQueueMeasurement(pt.MX.AuthorityUpdateMetadataWithRegionalInformation,n.correlationId);const o=n.authorityOptions.azureRegionConfiguration?.azureRegion;if(o){if(o!==ee.YM.AZURE_REGION_AUTO_DISCOVER_FLAG)return n.regionDiscoveryMetadata.region_outcome=ee._2.CONFIGURED_NO_AUTO_DETECTION,n.regionDiscoveryMetadata.region_used=o,Ze.replaceWithRegionalInformation(e,o);const c=yield fe(n.regionDiscovery.detectRegion.bind(n.regionDiscovery),pt.MX.RegionDiscoveryDetectRegion,n.logger,n.performanceClient,n.correlationId)(n.authorityOptions.azureRegionConfiguration?.environmentRegion,n.regionDiscoveryMetadata);if(c)return n.regionDiscoveryMetadata.region_outcome=ee._2.AUTO_DETECTION_REQUESTED_SUCCESSFUL,n.regionDiscoveryMetadata.region_used=c,Ze.replaceWithRegionalInformation(e,c);n.regionDiscoveryMetadata.region_outcome=ee._2.AUTO_DETECTION_REQUESTED_FAILED}return e})()}updateCloudDiscoveryMetadata(e){var n=this;return(0,bt.A)(function*(){n.performanceClient?.addQueueMeasurement(pt.MX.AuthorityUpdateCloudDiscoveryMetadata,n.correlationId);const o=n.updateCloudDiscoveryMetadataFromLocalSources(e);if(o)return o;const c=yield fe(n.getCloudDiscoveryMetadataFromNetwork.bind(n),pt.MX.AuthorityGetCloudDiscoveryMetadataFromNetwork,n.logger,n.performanceClient,n.correlationId)();if(c)return Fw(e,c,!0),ee.E_.NETWORK;throw(0,qo.aD)(Qo.E0)})()}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||ee.YM.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||ee.YM.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||ee.YM.NOT_APPLICABLE}`);const n=this.getCloudDiscoveryMetadataFromConfig();if(n)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),Fw(e,n,!1),ee.E_.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const c=function Hw(s){return Fv(YS.metadata,s)}(this.hostnameAndPort);if(c)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),Fw(e,c,!1),ee.E_.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const o=rE(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o?(this.logger.verbose("Found cloud discovery metadata in the cache."),ee.E_.CACHE):(o&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(3===this.authorityType)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),Ze.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const n=Fv(JSON.parse(this.authorityOptions.cloudDiscoveryMetadata).metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),(0,qo.aD)(Qo.a_)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),Ze.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}getCloudDiscoveryMetadataFromNetwork(){var e=this;return(0,bt.A)(function*(){e.performanceClient?.addQueueMeasurement(pt.MX.AuthorityGetCloudDiscoveryMetadataFromNetwork,e.correlationId);const n=`${ee.YM.AAD_INSTANCE_DISCOVERY_ENDPT}${e.canonicalAuthority}oauth2/v2.0/authorize`,o={};let c=null;try{const d=yield e.networkInterface.sendGetRequestAsync(n,o);let h,g;if(function k(s){return s.hasOwnProperty("tenant_discovery_endpoint")&&s.hasOwnProperty("metadata")}(d.body))h=d.body,g=h.metadata,e.logger.verbosePii(`tenant_discovery_endpoint is: ${h.tenant_discovery_endpoint}`);else{if(!function K(s){return s.hasOwnProperty("error")&&s.hasOwnProperty("error_description")}(d.body))return e.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;if(e.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${d.status}`),h=d.body,h.error===ee.YM.INVALID_INSTANCE)return e.logger.error("The CloudInstanceDiscoveryErrorResponse error is invali
1d_instance."),null;e.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${h.error}`),e.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${h.error_description}`),e.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),g=[]}e.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),c=Fv(g,e.hostnameAndPort)}catch(d){return e.logger.error(d instanceof ns.lR?`There was a network error while attempting to get the cloud discovery instance metadata.\nError: ${d.errorCode}\nError Description: ${d.errorMessage}`:`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: ${d.name}\nError Description: ${d.message}`),null}return c||(e.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),e.logger.verbose("Creating custom Authority for custom domain scenario."),c=Ze.createCloudDiscoveryMetadataFromHost(e.hostnameAndPort)),c})()}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(n=>n&&Yi.H.getDomainFromUrl(n).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,n){let o;return n&&"none"!==n.azureCloudInstance&&(o=`${n.azureCloudInstance}/${n.tenant?n.tenant:ee.YM.DEFAULT_COMMON_TENANT}/`),o||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return ee.YM.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw(0,Gt.SB)(nn.s1)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return uN.has(e)}static isPublicCloudAuthority(e){return ee.YM.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,n,o){const c=new Yi.H(e);c.validateAsUri();const d=c.getUrlComponents();let h=`${n}.${d.HostNameAndPort}`;this.isPublicCloudAuthority(d.HostNameAndPort)&&(h=`${n}.${ee.YM.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const g=Yi.H.constructAuthorityUriFromObject({...c.getUrlComponents(),HostNameAndPort:h}).urlString;return o?`${g}?${o}`:g}static replaceWithRegionalInformation(e,n){const o={...e};return o.authorization_endpoint=Ze.buildRegionalAuthorityString(o.authorization_endpoint,n),o.token_endpoint=Ze.buildRegionalAuthorityString(o.token_endpoint,n),o.end_session_endpoint&&(o.end_session_endpoint=Ze.buildRegionalAuthorityString(o.end_session_endpoint,n)),o}static transformCIAMAuthority(e){let n=e;const c=new Yi.H(e).getUrlComponents();return 0===c.PathSegments.length&&c.HostNameAndPort.endsWith(ee.YM.CIAM_AUTH_URL)&&(n=`${n}${c.HostNameAndPort.split(".")[0]}${ee.YM.AAD_TENANT_DOMAIN_SUFFIX}`),n}}function on(s){return s.endsWith(ee.YM.FORWARD_SLASH)?s:`${s}${ee.YM.FORWARD_SLASH}`}Ze.reservedTenantDomains=new Set(["{tenant}","{tenantid}",ee.v2.COMMON,ee.v2.CONSUMERS,ee.v2.ORGANIZATIONS]);const Vt="no_tokens_found",lr="native_account_unavailable",Zr="refresh_token_expired",Hc="bad_token",t0=["interaction_required","consent_required","login_required",Hc],bN=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],Qw={[Vt]:"No refresh token found in the cache. Please sign-in.",[lr]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[Zr]:"Refresh token has expired.",[Hc]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class Ru extends ns.lR{constructor(e,n,o,c,d,h,g,C){super(e,n,o),Object.setPrototypeOf(this,Ru.prototype),this.timestamp=c||ee.YM.EMPTY_STRING,this.traceId=d||ee.YM.EMPTY_STRING,this.correlationId=h||ee.YM.EMPTY_STRING,this.claims=g||ee.YM.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=C}}function zk(s,e,n){const o=!!s&&t0.indexOf(s)>-1,c=!!n&&bN.indexOf(n)>-1,d=!!e&&t0.some(h=>e.indexOf(h)>-1);return o||d||c}function AN(s){return new Ru(s,Qw[s])}class Nu{static setRequestState(e,n,o){const c=Nu.generateLibraryState(e,o);return n?`${c}${ee.YM.RESOURCE_DELIM}${n}`:c}static generateLibraryState(e,n){if(!e)throw(0,Gt.SB)(nn.oL);const o={id:e.createNewGuid()};n&&(o.meta=n);const c=JSON.stringify(o);return e.base64Encode(c)}static parseRequestState(e,n){if(!e)throw(0,Gt.SB)(nn.oL);if(!n)throw(0,Gt.SB)(nn.f$);try{const o=n.split(ee.YM.RESOURCE_DELIM),c=o[0],d=o.length>1?o.slice(1).join(ee.YM.RESOURCE_DELIM):ee.YM.EMPTY_STRING,h=e.base64Decode(c),g=JSON.parse(h);return{userRequestState:d||ee.YM.EMPTY_STRING,libraryState:g}}catch{throw(0,Gt.SB)(nn.f$)}}}var Kk=D(4064),Wk=D(3578);class xx{constructor(){if(!window.localStorage)throw(0,Kk.jz)(Wk.xz)}getItem(e){return window.localStorage.getItem(e)}setItem(e,n){window.localStorage.setItem(e,n)}removeItem(e){window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}}class Lx{constructor(){if(!window.sessionStorage)throw(0,Kk.jz)(Wk.xz)}getItem(e){return window.sessionStorage.getItem(e)}setItem(e,n){window.sessionStorage.setItem(e,n)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}}function Yk(s,e){if(!e)return null;try{return Nu.parseRequestState(s,e).libraryState.meta}catch{throw(0,Gt.SB)(nn.f$)}}class Ux{getItem(e){const n=`${encodeURIComponent(e)}`,o=document.cookie.split(";");for(let c=0;c<o.length;c++){const d=o[c],[h,...g]=decodeURIComponent(d).trim().split("="),C=g.join("=");if(h===n)return C}return""}setItem(e,n,o,c=!0){let d=`${encodeURIComponent(e)}=${encodeURIComponent(n)};path=/;SameSite=Lax;`;if(o){d+=`expires=${function Bx(s){return new Date((new Date).getTime()+864e5*s).toUTCString()}(o)};`}
1c&&(d+="Secure;"),document.cookie=d}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),n=[];return e.forEach(o=>{const c=decodeURIComponent(o).trim().split("=");n.push(c[0])}),n}containsKey(e){return this.getKeys().includes(e)}}class DN extends Bv{constructor(e,n,o,c,d,h){super(e,o,c,d),this.cacheConfig=n,this.logger=c,this.internalStorage=new l,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new Ux,n.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=h}setupBrowserStorage(e){try{switch(e){case nt.Al.LocalStorage:return new xx;case nt.Al.SessionStorage:return new Lx}}catch(n){this.logger.error(n)}return this.cacheConfig.cacheLocation=nt.Al.MemoryStorage,new l}migrateCacheEntries(){const e=this.browserStorage.getItem(nt.dh.VERSION);e&&this.logger.info(`MSAL.js was last initialized with version ${e}`),e!==vg&&this.browserStorage.setItem(nt.dh.VERSION,vg);const o=`${ee.YM.CACHE_PREFIX}.${ee.Gd.CLIENT_INFO}`,c=`${ee.YM.CACHE_PREFIX}.${ee.Gd.ERROR}`,d=`${ee.YM.CACHE_PREFIX}.${ee.Gd.ERROR_DESC}`,O=[this.browserStorage.getItem(`${ee.YM.CACHE_PREFIX}.${ee.Gd.ID_TOKEN}`),this.browserStorage.getItem(o),this.browserStorage.getItem(c),this.browserStorage.getItem(d)];[ee.Gd.ID_TOKEN,ee.Gd.CLIENT_INFO,ee.Gd.ERROR,ee.Gd.ERROR_DESC].forEach((ae,q)=>{const ie=O[q];ie&&this.setTemporaryCache(ae,ie,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.cryptoImpl.createNewGuid(),n=this.getItem(nt.dh.ACCOUNT_KEYS),o=this.getItem(`${nt.dh.TOKEN_KEYS}.${this.clientId}`);n&&o?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().forEach(d=>{if(this.isCredentialKey(d)){const h=this.getItem(d);if(h){const g=this.validateAndParseJson(h);if(g&&g.hasOwnProperty("credentialType"))switch(g.credentialType){case ee.aG.ID_TOKEN:if(xw(g)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${d} found, saving key to token key map`);const S=this.updateCredentialCacheKey(d,g,e);return void this.addTokenKey(S,ee.aG.ID_TOKEN,e)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${d}`);break;case ee.aG.ACCESS_TOKEN:case ee.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:if($S(g)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${d} found, saving key to token key map`);const S=this.updateCredentialCacheKey(d,g,e);return void this.addTokenKey(S,ee.aG.ACCESS_TOKEN,e)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${d}`);break;case ee.aG.REFRESH_TOKEN:if(zS(g)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${d} found, saving key to token key map`);const S=this.updateCredentialCacheKey(d,g,e);return void this.addTokenKey(S,ee.aG.REFRESH_TOKEN,e)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${d}`)}}}if(this.isAccountKey(d)){const h=this.getItem(d);if(h){const g=this.validateAndParseJson(h);g&&ts.isAccountEntity(g)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${d} found, saving key to account key map`),this.addAccountKeyToMap(d,e))}}})}validateAndParseJson(e){try{const n=JSON.parse(e);return n&&"object"==typeof n?n:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,n,o){let c=[];for(let h=0;h<=20;h++)try{this.browserStorage.setItem(e,n),h>0&&this.removeAccessTokenKeys(c.slice(0,h),o);break}catch(g){const C=jw(g);if(!(C.errorCode===sE&&h<20))throw C;if(c.length||(c=e===`${nt.dh.TOKEN_KEYS}.${this.clientId}`?JSON.parse(n).accessToken:this.getTokenKeys().accessToken),c.length<=h)throw C;this.removeAccessToken(c[h],o,!1)}}getAccount(e,n,o){this.logger.trace("BrowserCacheManager.getAccount called");
1const c=this.getCachedAccountEntity(e,n);return this.updateOutdatedCachedAccount(e,c,n,o)}getCachedAccountEntity(e,n){const o=this.getItem(e);if(!o)return this.removeAccountKeyFromMap(e,n),null;const c=this.validateAndParseJson(o);return c&&ts.isAccountEntity(c)?Bv.toObject(new ts,c):null}setAccount(e,n){this.logger.trace("BrowserCacheManager.setAccount called");const o=e.generateAccountKey();e.lastUpdatedAt=Date.now().toString(),this.setItem(o,JSON.stringify(e),n),this.addAccountKeyToMap(o,n)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(nt.dh.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e,n){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const o=this.getAccountKeys();-1===o.indexOf(e)?(o.push(e),this.setItem(nt.dh.ACCOUNT_KEYS,JSON.stringify(o),n),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e,n){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const o=this.getAccountKeys(),c=o.indexOf(e);if(c>-1){if(o.splice(c,1),0===o.length)return void this.removeItem(nt.dh.ACCOUNT_KEYS);this.setItem(nt.dh.ACCOUNT_KEYS,JSON.stringify(o),n),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")}else this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}removeAccount(e,n){var o=()=>super.removeAccount,c=this;return(0,bt.A)(function*(){o().call(c,e,n),c.removeAccountKeyFromMap(e,n)})()}removeOutdatedAccount(e,n){this.removeItem(e),this.removeAccountKeyFromMap(e,n)}removeIdToken(e,n){super.removeIdToken(e,n),this.removeTokenKey(e,ee.aG.ID_TOKEN,n)}removeAccessToken(e,n,o=!0){super.removeAccessToken(e,n),this.performanceClient?.incrementFields({accessTokensRemoved:1},n),o&&this.removeTokenKey(e,ee.aG.ACCESS_TOKEN,n)}removeAccessTokenKeys(e,n){this.logger.trace("removeAccessTokenKey called");const o=this.getTokenKeys();let c=0;if(e.forEach(d=>{const h=o.accessToken.indexOf(d);h>-1&&(o.accessToken.splice(h,1),c++)}),c>0)return this.logger.info(`removed ${c} accessToken keys from tokenKeys map`),void this.setTokenKeys(o,n)}removeRefreshToken(e,n){super.removeRefreshToken(e,n),this.removeTokenKey(e,ee.aG.REFRESH_TOKEN,n)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${nt.dh.TOKEN_KEYS}.${this.clientId}`);if(e){const n=this.validateAndParseJson(e);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}setTokenKeys(e,n){0!==e.idToken.length||0!==e.accessToken.length||0!==e.refreshToken.length?this.setItem(`${nt.dh.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(e),n):this.removeItem(`${nt.dh.TOKEN_KEYS}.${this.clientId}`)}addTokenKey(e,n,o){this.logger.trace("BrowserCacheManager addTokenKey called");const c=this.getTokenKeys();switch(n){case ee.aG.ID_TOKEN:-1===c.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),c.idToken.push(e));break;case ee.aG.ACCESS_TOKEN:const d=c.accessToken.indexOf(e);-1!==d&&c.accessToken.splice(d,1),this.logger.trace(`access token ${-1===d?"added to":"updated in"} map`),c.accessToken.push(e);break;case ee.aG.REFRESH_TOKEN:-1===c.refreshToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),c.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invali
1d. CredentialType: ${n}`),(0,Gt.SB)(nn.Zj)}this.setTokenKeys(c,o)}removeTokenKey(e,n,o,c=this.getTokenKeys()){switch(this.logger.trace("BrowserCacheManager removeTokenKey called"),n){case ee.aG.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const d=c.idToken.indexOf(e);d>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),c.idToken.splice(d,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ee.aG.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const h=c.accessToken.indexOf(e);h>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),c.accessToken.splice(h,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ee.aG.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const g=c.refreshToken.indexOf(e);g>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),c.refreshToken.splice(g,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${n}`),(0,Gt.SB)(nn.Zj)}this.setTokenKeys(c,o)}getIdTokenCredential(e,n){const o=this.getItem(e);if(!o)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeIdToken(e,n),null;const c=this.validateAndParseJson(o);return c&&xw(c)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),c):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)}setIdTokenCredential(e,n){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const o=Th(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(o,JSON.stringify(e),n),this.addTokenKey(o,ee.aG.ID_TOKEN,n)}getAccessTokenCredential(e,n){const o=this.getItem(e);if(!o)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ee.aG.ACCESS_TOKEN,n),null;const c=this.validateAndParseJson(o);return c&&$S(c)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),c):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)}setAccessTokenCredential(e,n){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const o=Th(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(o,JSON.stringify(e),n),this.addTokenKey(o,ee.aG.ACCESS_TOKEN,n)}getRefreshTokenCredential(e,n){const o=this.getItem(e);if(!o)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ee.aG.REFRESH_TOKEN,n),null;const c=this.validateAndParseJson(o);return c&&zS(c)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),c):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)}setRefreshTokenCredential(e,n){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const o=Th(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(o,JSON.stringify(e),n),this.addTokenKey(o,ee.aG.REFRESH_TOKEN,n)}getAppMetadata(e){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(n);return o&&function aN(s,e){return!!e&&0===s.indexOf(ee.GU)&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment")}(e,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),o):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)}setAppMetadata(e,n){this.logger.trace("BrowserCacheManager.setAppMetadata called");const o=function sN({environment:s,clientId:e}){return[ee.GU,s,e].join(ee.LR.CACHE_KEY_SEPARATOR).toLowerCase()}(e);this.setItem(o,JSON.stringify(e),n)}getServerTelemetry(e){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const o=this.validateAndParseJson(n);return o&&function Lk(s,e){const n=0===s.indexOf(ee.gT.CACHE_KEY);let o=!0;return e&&(o=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),n&&o}(e,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),o):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)}setServerTelemetry(e,n,o){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(n),o)}getAuthorityMetadata(e){const n=this.internalStorage.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(n);return o&&function Uk(s,e){return!!e&&0===s.indexOf(ee.u0.CACHE_KEY)&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri")}(e,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),o):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(n=>this.isAuthorityMetadata(n))}setWrapperMetadata(e,n){this.internalStorage.setItem(nt.H3.WRAPPER_SKU,e),this.internalStorage.setItem(nt.H3.WRAPPER_VER,n)}getWrapperMetadata(){return[this.internalStorage.getItem(nt.H3.WRAPPER_SKU)||ee.YM.EMPTY_STRING,this.internalStorage.getItem(nt.H3.WRAPPER_VER)||ee.YM.EMPTY_STRING]}setAuthorityMetadata(e,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(n))}getActiveAccount(e){const n=this.generateCacheKey(ee.Gd.ACTIVE_ACCOUNT_FILTERS),o=this.getItem(n);if(!o){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const d=this.generateCacheKey(ee.Gd.ACTIVE_ACCOUNT),h=this.getItem(d);if(!h)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const g=this.getAccountInfoFilteredBy({localAccountId:h},e);return g?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(g,e),g):null}const c=this.validateAndParseJson(o);return c?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:c.homeAccountId,localAccountId:c.localAccountId,tenantId:c.tenantId},e)):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e,n){const o=this.generateCacheKey(ee.Gd.ACTIVE_ACCOUNT_FILTERS),c=this.generateCacheKey(ee.Gd.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const d={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId,lastUpdatedAt:Date.now().toString()};this.setItem(o,JSON.stringify(d),n),this.setItem(c,e.localAccountId,n)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(o),this.browserStorage.removeItem(c)}getThrottlingCache(e){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const o=this.validateAndParseJson(n);return o&&function Fk(s,e){let n=!1;
1s&&(n=0===s.indexOf(ee.Xw.THROTTLING_PREFIX));let o=!0;return e&&(o=e.hasOwnProperty("throttleTime")),n&&o}(e,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),o):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)}setThrottlingCache(e,n,o){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(n),o)}getTemporaryCache(e,n){const o=n?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const d=this.cookieStorage.getItem(o);if(d)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),d}const c=this.temporaryCacheStorage.getItem(o);if(!c){if(this.cacheConfig.cacheLocation===nt.Al.LocalStorage){const d=this.browserStorage.getItem(o);if(d)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),d}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),c}setTemporaryCache(e,n,o){const c=o?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(c,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(c,n,void 0,this.cacheConfig.secureCookies))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(e))}getKeys(){return this.browserStorage.getKeys()}clear(e){var n=this;return(0,bt.A)(function*(){yield n.removeAllAccounts(e),n.removeAppMetadata(e),n.temporaryCacheStorage.getKeys().forEach(o=>{(-1!==o.indexOf(ee.YM.CACHE_PREFIX)||-1!==o.indexOf(n.clientId))&&n.removeTemporaryItem(o)}),n.browserStorage.getKeys().forEach(o=>{(-1!==o.indexOf(ee.YM.CACHE_PREFIX)||-1!==o.indexOf(n.clientId))&&n.browserStorage.removeItem(o)}),n.internalStorage.clear()})()}clearTokensAndKeysWithClaims(e,n){var o=this;return(0,bt.A)(function*(){e.addQueueMeasurement(pt.MX.ClearTokensAndKeysWithClaims,n);const c=o.getTokenKeys();let d=0;c.accessToken.forEach(h=>{const g=o.getAccessTokenCredential(h,n);g?.requestedClaimsHash&&h.includes(g.requestedClaimsHash.toLowerCase())&&(o.removeAccessToken(h,n),d++)}),d>0&&o.logger.warning(`${d} access tokens with claims in the cache keys have been removed from the cache.`)})()}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):Ih.$.startsWith(e,ee.YM.CACHE_PREFIX)||Ih.$.startsWith(e,ee.Gd.ADAL_ID_TOKEN)?e:`${ee.YM.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:n}}=Nu.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${nt._p.AUTHORITY}.${n}`)}generateNonceKey(e){const{libraryState:{id:n}}=Nu.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${nt._p.NONCE_IDTOKEN}.${n}`)}generateStateKey(e){const{libraryState:{id:n}}=Nu.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${nt._p.REQUEST_STATE}.${n}`)}getCachedAuthority(e){const n=this.generateStateKey(e),o=this.getTemporaryCache(n);if(!o)return null;const c=this.generateAuthorityKey(o);return this.getTemporaryCache(c)}updateCacheEntries(e,n,o,c,d){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const h=this.generateStateKey(e);this.setTemporaryCache(h,e,!1);const g=this.generateNonceKey(e);this.setTemporaryCache(g,n,!1);const C=this.generateAuthorityKey(e);this.setTemporaryCache(C,o,!1),d?this.setTemporaryCache(nt._p.CCS_CREDENTIAL,JSON.stringify({credential:d.homeAccountId,type:"home_account_id"}),!0):c&&this.setTemporaryCache(nt._p.CCS_CREDENTIAL,JSON.stringify({credential:c,type:"UPN"}),!0)}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.temporaryCacheStorage.getKeys().forEac
1h(n=>{-1!==n.indexOf(e)&&this.removeTemporaryItem(n)}),this.removeTemporaryItem(this.generateStateKey(e)),this.removeTemporaryItem(this.generateNonceKey(e)),this.removeTemporaryItem(this.generateAuthorityKey(e))),this.removeTemporaryItem(this.generateCacheKey(nt._p.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(nt._p.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(nt._p.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(nt._p.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(nt._p.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(nt._p.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const n=this.generateStateKey(e),o=this.temporaryCacheStorage.getItem(n);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o||ee.YM.EMPTY_STRING)}}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(n=>{if(-1===n.indexOf(nt._p.REQUEST_STATE))return;const o=this.temporaryCacheStorage.getItem(n);if(!o)return;const c=Yk(this.cryptoImpl,o);c&&c.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o))}),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const n=(0,Fd.KA)(JSON.stringify(e));this.setTemporaryCache(nt._p.REQUEST_PARAMS,n,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const n=this.getTemporaryCache(nt._p.REQUEST_PARAMS,!0);if(!n)throw(0,er.bD)(Wn.y6);let o;try{o=JSON.parse(t(n))}catch(c){throw this.logger.errorPii(`Attempted to parse: ${n}`),this.logger.error(`Parsing cached token request threw with error: ${c}`),(0,er.bD)(Wn.ot)}if(this.removeTemporaryItem(this.generateCacheKey(nt._p.REQUEST_PARAMS)),!o.authority){const c=this.generateAuthorityKey(e),d=this.getTemporaryCache(c);if(!d)throw(0,er.bD)(Wn.Ne);o.authority=d}return o}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(nt._p.NATIVE_REQUEST,!0);return e?this.validateAndParseJson(e)||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null):(this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null)}isInteractionInProgress(e){const n=this.getInteractionInProgress();return e?n===this.clientId:!!n}getInteractionInProgress(){return this.getTemporaryCache(`${ee.YM.CACHE_PREFIX}.${nt._p.INTERACTION_STATUS_KEY}`,!1)}setInteractionInProgress(e){const n=`${ee.YM.CACHE_PREFIX}.${nt._p.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw(0,er.bD)(Wn.b);this.setTemporaryCache(n,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(n)}getLegacyLoginHint(){const e=this.getTemporaryCache(ee.Gd.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(ee.Gd.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const n=this.getTemporaryCache(ee.Gd.ID_TOKEN,!0);n&&(this.browserStorage.removeItem(this.generateCacheKey(ee.Gd.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const o=n||e;if(o){const c=pg(o,t);if(c.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),c.preferred_username;if(c.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),c.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,n,o){const c=Th(n);if(e!==c){const d=this.getItem(e);if(d)return this.browserStorage.removeItem(e),this.setItem(c,d,o),this.logger.verbose(`Updated an outdated ${n.credentialType} cache key`),c;this.logger.error(`Attempted to update an outdated ${n.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}hydrateCache(e,n){var o=this;return(0,bt.A)(function*(){const c=Pv(e.account?.homeAccountId,e.account?.environment,e.idToken,o.clientId,e.tenantId);let d;
1n.claims&&(d=yield o.cryptoImpl.hashString(n.claims));const h=kv(e.account?.homeAccountId,e.account.environment,e.accessToken,o.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?e.expiresOn.getTime()/1e3:0,e.extExpiresOn?e.extExpiresOn.getTime()/1e3:0,t,void 0,e.tokenType,void 0,n.sshKid,n.claims,d);return o.saveCacheRecord({idToken:c,accessToken:h},e.correlationId)})()}saveCacheRecord(e,n,o){var c=()=>super.saveCacheRecord,d=this;return(0,bt.A)(function*(){try{yield c().call(d,e,n,o)}catch(h){if(h instanceof Uv&&d.performanceClient&&n)try{const g=d.getTokenKeys();d.performanceClient.addFields({cacheRtCount:g.refreshToken.length,cacheIdCount:g.idToken.length,cacheAtCount:g.accessToken.length},n)}catch{}throw h}})()}}var br=D(3212);class Yx{constructor(e){this.eventCallbacks=new Map,this.logger=e||new Ld({})}addEventCallback(e,n,o){if(typeof window<"u"){const c=o||(0,Fo.gj)();return this.eventCallbacks.has(c)?(this.logger.error(`Event callback with id: ${c} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(c,[e,n||[]]),this.logger.verbose(`Event callback registered with id: ${c}`),c)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}emitEvent(e,n,o,c){if(typeof window<"u"){const d={eventType:e,interactionType:n||null,payload:o||null,error:c||null,timestamp:Date.now()};this.eventCallbacks.forEach(([h,g],C)=>{(0===g.length||g.includes(e))&&(this.logger.verbose(`Emitting event to callback ${C}: ${e}`),h.apply(null,[d]))})}}}class _g extends ns.lR{constructor(e,n,o,c,d){super(e,n,o),this.name="ServerError",this.errorNo=c,this.status=d,Object.setPrototypeOf(this,_g.prototype)}}class Ud{static generateThrottlingStorageKey(e){return`${ee.Xw.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,n,o){const c=Ud.generateThrottlingStorageKey(n),d=e.getThrottlingCache(c);if(d){if(d.throttleTime<Date.now())return void e.removeItem(c,o);throw new _g(d.errorCodes?.join(" ")||ee.YM.EMPTY_STRING,d.errorMessage,d.subError)}}static postProcess(e,n,o,c){if(Ud.checkResponseStatus(o)||Ud.checkResponseForRetryAfter(o)){const d={throttleTime:Ud.calculateThrottleTime(parseInt(o.headers[ee.OK.RETRY_AFTER])),error:o.body.error,errorCodes:o.body.error_codes,errorMessage:o.body.error_description,subError:o.body.suberror};e.setThrottlingCache(Ud.generateThrottlingStorageKey(n),d,c)}}static checkResponseStatus(e){return 429===e.status||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return!!e.headers&&e.headers.hasOwnProperty(ee.OK.RETRY_AFTER)&&(e.status<200||e.status>=300)}static calculateThrottleTime(e){const n=e<=0?0:e,o=Date.now()/1e3;return Math.floor(1e3*Math.min(o+(n||ee.Xw.DEFAULT_THROTTLE_TIME_SECONDS),o+ee.Xw.DEFAULT_MAX_THROTTLE_TIME_SECONDS))}static removeThrottle(e,n,o,c){const h=this.generateThrottlingStorageKey({clientId:n,authority:o.authority,scopes:o.scopes,homeAccountIdentifier:c,claims:o.claims,authenticationScheme:o.authenticationScheme,resourceRequestMethod:o.resourceRequestMethod,resourceRequestUri:o.resourceRequestUri,shrClaims:o.shrClaims,sshKid:o.sshKid});e.removeItem(h,o.correlationId)}}const Hv="client_id",Xk="redirect_uri",qk="response_type",Qk="token_type",Zk="req_cnf",Jk="return_spa_code",wN="brk_client_id",MN="brk_redirect_uri";class uE{static validateRedirectUri(e){if(!e)throw(0,qo.aD)(Qo.gO)}static validatePrompt(e){const n=[];for(const o in ee._M)n.push(ee._M[o]);if(n.indexOf(e)<0)throw(0,qo.aD)(Qo.Pc)}static validateClaims(e){try{JSON.parse(e)}catch{throw(0,qo.aD)(Qo.bj)}}static validateCodeChallengeParams(e,n){if(!e||!n)throw(0,qo.aD)(Qo.qz);this.validateCodeChallengeMethod(n)}static validateCodeChallengeMethod(e){if([ee.iF.PLAIN,ee.iF.S256].indexOf(e)<0)throw(0,qo.aD)(Qo.b0)}}class n0{constructor(e,n){this.parameters=new Map,this.performanceClient=n,this.correlationId=e}addResponseTypeCode(){this.parameters.set(qk,encodeURIComponent(ee.YM.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(qk,encodeURIComponent(`${ee.YM.TOKEN_RESPONSE_TYPE} ${ee.YM.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set("response_mode",encodeURIComponent(e||ee.p.QUERY))}addNativeBroker(){this.parameters.set("nativebroker",encodeURIComponent("1"))}addScopes(e,n=!0,o=ee.aZ){n&&!o.includes("openid")&&!e.includes("openid")&&o.push("openid");const c=n?[...e||[],...o]:e||[],d=new Lo(c);this.parameters.set("scope",encodeURIComponent(d.printScopes()))}addClientId(e){this.parameters.set(Hv,encodeURIComponent(e))}addRedirectUri(e){uE.validateRedirectUri(e),this.parameters.set(Xk,encodeURIComponent(e))}addPostLogoutRedirectUri(e){uE.validateRedirectUri(e),this.parameters.set("post_logout_redirect_uri",encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set("id_token_hint",encodeURIComponent(e))}addDomainHint(e){this.parameters.set("domain_hint",encodeURIComponent(e))}addLoginHint(e){this.parameters.set("login_hint",encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(ee.OK.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(ee.OK.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set("sid",encodeURIComponent(e))}addClaims(e,n){const o=this.addClientCapabilitiesToClaims(e,n);uE.validateClaims(o),this.parameters.set("claims",encodeURIComponent(o))}addCorrelationId(e){this.parameters.set("client-request-id",encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set("x-client-SKU",e.sku),this.parameters.set("x-client-VER",e.version),e.os&&this.parameters.set("x-client-OS",e.os),e.cpu&&this.parameters.set("x-client-CPU",e.cpu)}addApplicationTelemetry(e){e?.appName&&this.parameters.set("x-app-name",e.appName),e?.appVersion&&this.parameters.set("x-app-ver",e.appVersion)}
1addPrompt(e){uE.validatePrompt(e),this.parameters.set("prompt",encodeURIComponent(e))}addState(e){e&&this.parameters.set("state",encodeURIComponent(e))}addNonce(e){this.parameters.set("nonce",encodeURIComponent(e))}addCodeChallengeParams(e,n){if(uE.validateCodeChallengeParams(e,n),!e||!n)throw(0,qo.aD)(Qo.qz);this.parameters.set("code_challenge",encodeURIComponent(e)),this.parameters.set("code_challenge_method",encodeURIComponent(n))}addAuthorizationCode(e){this.parameters.set("code",encodeURIComponent(e))}addDeviceCode(e){this.parameters.set("device_code",encodeURIComponent(e))}addRefreshToken(e){this.parameters.set("refresh_token",encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set("code_verifier",encodeURIComponent(e))}addClientSecret(e){this.parameters.set("client_secret",encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set("client_assertion",encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set("client_assertion_type",encodeURIComponent(e))}addOboAssertion(e){this.parameters.set("assertion",encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set("requested_token_use",encodeURIComponent(e))}addGrantType(e){this.parameters.set("grant_type",encodeURIComponent(e))}addClientInfo(){this.parameters.set(ee.JR,"1")}addExtraQueryParameters(e){Object.entries(e).forEach(([n,o])=>{!this.parameters.has(n)&&o&&this.parameters.set(n,o)})}addClientCapabilitiesToClaims(e,n){let o;if(e)try{o=JSON.parse(e)}catch{throw(0,qo.aD)(Qo.bj)}else o={};return n&&n.length>0&&(o.hasOwnProperty(ee.Fq.ACCESS_TOKEN)||(o[ee.Fq.ACCESS_TOKEN]={}),o[ee.Fq.ACCESS_TOKEN][ee.Fq.XMS_CC]={values:n}),JSON.stringify(o)}addUsername(e){this.parameters.set(ee.Tq.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(ee.Tq.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(Qk,ee.IO.POP),this.parameters.set(Zk,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(Qk,ee.IO.SSH),this.parameters.set(Zk,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set("x-client-current-telemetry",e.generateCurrentRequestHeaderValue()),this.parameters.set("x-client-last-telemetry",e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set("x-ms-lib-capability",ee.Xw.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set("logout_hint",encodeURIComponent(e))}addBrokerParameters(e){const n={};n[wN]=e.brokerClientId,n[MN]=e.brokerRedirectUri,this.addExtraQueryParameters(n)}createQueryString(){const e=new Array;return this.parameters.forEach((n,o)=>{e.push(`${o}=${n}`)}),function RL(s,e,n){if(!e)return;const o=s.get(Hv);o&&s.has(wN)&&n?.addFields({embeddedClientId:o,embeddedRedirectUri:s.get(Xk)},e)}(this.parameters,this.correlationId,this.performanceClient),e.join("&")}}function ex(s,e,n,o,c,d,h){return ON.apply(this,arguments)}function ON(){return(ON=(0,bt.A)(function*(s,e,n,o,c,d,h){h?.addQueueMeasurement(pt.MX.AuthorityFactoryCreateDiscoveredInstance,d);const g=Ze.transformCIAMAuthority(on(s)),C=new Ze(g,e,n,o,c,d,h);try{return yield fe(C.resolveEndpointsAsync.bind(C),pt.MX.AuthorityResolveEndpointsAsync,c,h,d)(),C}catch{throw(0,Gt.SB)(nn.s1)}})).apply(this,arguments)}class RN{constructor(e,n){this.config=function Kw({authOptions:s,systemOptions:e,loggerOptions:n,cacheOptions:o,storageInterface:c,networkInterface:d,cryptoInterface:h,clientCredentials:g,libraryInfo:C,telemetry:S,serverTelemetryManager:O,persistencePlugin:$,serializableCache:ae}){const q={...gN,...n};return{authOptions:Bk(s),systemOptions:{...pN,...e},loggerOptions:q,cacheOptions:{...mN,...o},storageInterface:c||new hN(s.clientId,Eh,new Ld(q)),networkInterface:d||vN,cryptoInterface:h||Eh,clientCredentials:g||$w,libraryInfo:{...Gw,...C},telemetry:{...zw,...S},serverTelemetryManager:O||null,persistencePlugin:$||null,serializableCache:ae||null}}(e),this.logger=new Ld(this.config.loggerOptions,Rv,tE),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}createTokenRequestHeaders(e){const n={};if(n[ee.OK.CONTENT_TYPE]=ee.YM.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case"home_account_id":try{const o=mg(e.credential);n[ee.OK.CCS_HEADER]=`Oid:${o.uid}@${o.utid}`}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;
1case"UPN":n[ee.OK.CCS_HEADER]=`UPN: ${e.credential}`}return n}executePostToTokenEndpoint(e,n,o,c,d,h){var g=this;return(0,bt.A)(function*(){h&&g.performanceClient?.addQueueMeasurement(h,d);const C=yield g.sendPostRequest(c,e,{body:n,headers:o},d);return g.config.serverTelemetryManager&&C.status<500&&429!==C.status&&g.config.serverTelemetryManager.clearTelemetryCache(),C})()}sendPostRequest(e,n,o,c){var d=this;return(0,bt.A)(function*(){let h;Ud.preProcess(d.cacheManager,e,c);try{h=yield fe(d.networkClient.sendPostRequestAsync.bind(d.networkClient),pt.MX.NetworkClientSendPostRequestAsync,d.logger,d.performanceClient,c)(n,o);const g=h.headers||{};d.performanceClient?.addFields({refreshTokenSize:h.body.refresh_token?.length||0,httpVerToken:g[ee.OK.X_MS_HTTP_VERSION]||"",requestId:g[ee.OK.X_MS_REQUEST_ID]||""},c)}catch(g){if(g instanceof cE){const C=g.responseHeaders;throw C&&d.performanceClient?.addFields({httpVerToken:C[ee.OK.X_MS_HTTP_VERSION]||"",requestId:C[ee.OK.X_MS_REQUEST_ID]||"",contentTypeHeader:C[ee.OK.CONTENT_TYPE]||void 0,contentLengthHeader:C[ee.OK.CONTENT_LENGTH]||void 0,httpStatus:g.httpStatus},c),g.error}throw g instanceof ns.lR?g:(0,Gt.SB)(nn.x6)}return Ud.postProcess(d.cacheManager,e,h,c),h})()}updateAuthority(e,n){var o=this;return(0,bt.A)(function*(){o.performanceClient?.addQueueMeasurement(pt.MX.UpdateTokenEndpointAuthority,n);const c=`https://${e}/${o.authority.tenant}/`,d=yield ex(c,o.networkClient,o.cacheManager,o.authority.options,o.logger,n,o.performanceClient);o.authority=d})()}createTokenQueryParameters(e){const n=new n0(e.correlationId,this.performanceClient);return e.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenQueryParameters&&n.addExtraQueryParameters(e.tokenQueryParameters),n.addCorrelationId(e.correlationId),n.createQueryString()}}class dE{constructor(e,n){this.cryptoUtils=e,this.performanceClient=n}generateCnf(e,n){var o=this;return(0,bt.A)(function*(){o.performanceClient?.addQueueMeasurement(pt.MX.PopTokenGenerateCnf,e.correlationId);const c=yield fe(o.generateKid.bind(o),pt.MX.PopTokenGenerateCnf,n,o.performanceClient,e.correlationId)(e),d=o.cryptoUtils.base64UrlEncode(JSON.stringify(c));return{kid:c.kid,reqCnfString:d}})()}generateKid(e){var n=this;return(0,bt.A)(function*(){return n.performanceClient?.addQueueMeasurement(pt.MX.PopTokenGenerateKid,e.correlationId),{kid:yield n.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:"sw"}})()}signPopToken(e,n,o){var c=this;return(0,bt.A)(function*(){return c.signPayload(e,n,o)})()}signPayload(e,n,o,c){var d=this;return(0,bt.A)(function*(){const{resourceRequestMethod:h,resourceRequestUri:g,shrClaims:C,shrNonce:S,shrOptions:O}=o,ae=(g?new Yi.H(g):void 0)?.getUrlComponents();return d.cryptoUtils.signJwt({at:e,ts:Ou(),m:h?.toUpperCase(),u:ae?.HostNameAndPort,nonce:S||d.cryptoUtils.createNewGuid(),p:ae?.AbsolutePath,q:ae?.QueryString?[[],ae.QueryString]:void 0,client_claims:C||void 0,...c},n,O,o.correlationId)})()}}class PL{constructor(e,n){this.cache=e,this.hasChanged=n}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}class Vv{constructor(e,n,o,c,d,h,g){this.clientId=e,this.cacheStorage=n,this.cryptoObj=o,this.logger=c,this.serializableCache=d,this.persistencePlugin=h,this.performanceClient=g}validateServerAuthorizationCodeResponse(e,n){if(!e.state||!n)throw(0,Gt.SB)(nn.tQ,e.state?"Cached State":"Server State");let o,c;try{o=decodeURIComponent(e.state)}catch{throw(0,Gt.SB)(nn.f$,e.state)}try{c=decodeURIComponent(n)}catch{throw(0,Gt.SB)(nn.f$,e.state)}if(o!==c)throw(0,Gt.SB)(nn.Cl);if(e.error||e.error_description||e.suberror){const d=function kL(s){const n=s.error_uri?.lastIndexOf("code=");return n&&n>=0?s.error_uri?.substring(n+5):void 0}(e);throw zk(e.error,e.error_description,e.suberror)?new Ru(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",d):new _g(e.error||"",e.error_description,e.suberror,d)}}validateTokenResponse(e,n){if(e.error||e.error_description||e.suberror){const o=`Error(s): ${e.error_codes||ee.YM.NOT_AVAILABLE} - Timestamp: ${e.timestamp||ee.YM.NOT_AVAILABLE} - Description: ${e.error_description||ee.YM.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||ee.YM.NOT_AVAILABLE} - Trace ID: ${e.trace_id||ee.YM.NOT_AVAILABLE}`,c=e.error_codes?.length?e.error_codes[0]:void 0,d=new _g(e.error,o,e.suberror,c,e.status);if(n&&e.status&&e.status>=ee.t3.SERVER_ERROR_RANGE_START&&e.status<=ee.t3.SERVER_ERROR_RANGE_END)return void this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.\n${d}`);if(n&&e.status&&e.status>=ee.t3.CLIENT_ERROR_RANGE_START&&e.status<=ee.t3.CLIENT_ERROR_RANGE_END)return void this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.\n${d}`);throw zk(e.error,e.error_description,e.suberror)?new Ru(e.error,e.error_description,e.suberror,e.timestamp||ee.YM.EMPTY_STRING,e.trace_id||ee.YM.EMPTY_STRING,e.correlation_id||ee.YM.EMPTY_STRING,e.claims||ee.YM.EMPTY_STRING,c):d}}handleServerTokenResponse(e,n,o,c,d,h,g,C,S){var O=this;return(0,bt.A)(function*(){let $,ae;if(O.performanceClient?.addQueueMeasurement(pt.MX.HandleServerTokenResponse,e.correlation_id),e.id_token){if($=pg(e.id_token||ee.YM.EMPTY_STRING,O.cryptoObj.base64Decode),d&&d.nonce&&$.nonce!==d.nonce)throw(0,Gt.SB)(nn.aQ);if(c.maxAge||0===c.maxAge){const le=$.auth_time;if(!le)throw(0,Gt.SB)(nn.n3);rN(le,c.maxAge)}}O.homeAccountIdentifier=ts.generateHomeAccountId(e.client_info||ee.YM.EMPTY_STRING,n.authorityType,O.logger,O.cryptoObj,$),d&&d.state&&(ae=Nu.parseRequestState(O.cryptoObj,d.state)),e.key_id=e.key_id||c.sshKid||void 0;
1const q=O.generateCacheRecord(e,n,o,c,$,h,d);let ie;try{if(O.persistencePlugin&&O.serializableCache&&(O.logger.verbose("Persistence enabled, calling beforeCacheAccess"),ie=new PL(O.serializableCache,!0),yield O.persistencePlugin.beforeCacheAccess(ie)),g&&!C&&q.account){const le=q.account.generateAccountKey();if(!O.cacheStorage.getAccount(le,c.correlationId,O.logger))return O.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),yield Vv.generateAuthenticationResult(O.cryptoObj,n,q,!1,c,$,ae,void 0,S)}yield O.cacheStorage.saveCacheRecord(q,c.correlationId,c.storeInCache)}finally{O.persistencePlugin&&O.serializableCache&&ie&&(O.logger.verbose("Persistence enabled, calling afterCacheAccess"),yield O.persistencePlugin.afterCacheAccess(ie))}return Vv.generateAuthenticationResult(O.cryptoObj,n,q,!1,c,$,ae,e,S)})()}generateCacheRecord(e,n,o,c,d,h,g){const C=n.getPreferredCache();if(!C)throw(0,Gt.SB)(nn.l3);const S=cN(d);let O,$;e.id_token&&d&&(O=Pv(this.homeAccountIdentifier,C,e.id_token,this.clientId,S||""),$=NN(this.cacheStorage,n,this.homeAccountIdentifier,this.cryptoObj.base64Decode,c.correlationId,d,e.client_info,C,S,g,void 0,this.logger));let ae=null;if(e.access_token){const le=e.scope?Lo.fromString(e.scope):new Lo(c.scopes||[]),de=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,_e=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,Pe=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,Ct=o+de,Dt=Ct+_e,Et=Pe&&Pe>0?o+Pe:void 0;ae=kv(this.homeAccountIdentifier,C,e.access_token,this.clientId,S||n.tenant||"",le.printScopes(),Ct,Dt,this.cryptoObj.base64Decode,Et,e.token_type,h,e.key_id,c.claims,c.requestedClaimsHash)}let q=null;if(e.refresh_token){let le;e.refresh_token_expires_in&&(le=o+("string"==typeof e.refresh_token_expires_in?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in)),q=kw(this.homeAccountIdentifier,C,e.refresh_token,this.clientId,e.foci,h,le)}let ie=null;return e.foci&&(ie={clientId:this.clientId,environment:C,familyId:e.foci}),{account:$,idToken:O,accessToken:ae,refreshToken:q,appMetadata:ie}}static generateAuthenticationResult(e,n,o,c,d,h,g,C,S){return(0,bt.A)(function*(){let q,ie,O=ee.YM.EMPTY_STRING,$=[],ae=null,le=ee.YM.EMPTY_STRING;if(o.accessToken){if(o.accessToken.tokenType!==ee.IO.POP||d.popKid)O=o.accessToken.secret;else{const Ct=new dE(e),{secret:Dt,keyId:Et}=o.accessToken;if(!Et)throw(0,Gt.SB)(nn.fo);O=yield Ct.signPopToken(Dt,Et,d)}$=Lo.fromString(o.accessToken.target).asArray(),ae=new Date(1e3*Number(o.accessToken.expiresOn)),q=new Date(1e3*Number(o.accessToken.extendedExpiresOn)),o.accessToken.refreshOn&&(ie=new Date(1e3*Number(o.accessToken.refreshOn)))}o.appMetadata&&(le=o.appMetadata.familyId===ee.hB?ee.hB:"");const de=h?.oid||h?.sub||"",_e=h?.tid||"";C?.spa_accountid&&o.account&&(o.account.nativeAccountId=C?.spa_accountid);const Pe=o.account?oE(o.account.getAccountInfo(),void 0,h,o.idToken?.secret):null;return{authority:n.canonicalAuthority,uniqueId:de,tenantId:_e,scopes:$,account:Pe,idToken:o?.idToken?.secret||"",idTokenClaims:h||{},accessToken:O,fromCache:c,expiresOn:ae,extExpiresOn:q,refreshOn:ie,correlationId:d.correlationId,requestId:S||ee.YM.EMPTY_STRING,familyId:le,tokenType:o.accessToken?.tokenType||ee.YM.EMPTY_STRING,state:g?g.userRequestState:ee.YM.EMPTY_STRING,cloudGraphHostName:o.account?.cloudGraphHostName||ee.YM.EMPTY_STRING,msGraphHost:o.account?.msGraphHost||ee.YM.EMPTY_STRING,code:C?.spa_code,fromNativeBroker:!1}})()}}function NN(s,e,n,o,c,d,h,g,C,S,O,$){$?.verbose("setCachedAccount called");const q=s.getAccountKeys().find(Pe=>Pe.startsWith(n));let ie=null;q&&(ie=s.getAccount(q,c,$));const le=ie||ts.createAccount({homeAccountId:n,idTokenClaims:d,clientInfo:h,environment:g,cloudGraphHostName:S?.cloud_graph_host_name,msGraphHost:S?.msgraph_host,nativeAccountId:O},e,o),de=le.tenantProfiles||[],_e=C||le.realm;if(_e&&!de.find(Pe=>Pe.tenantId===_e)){const Pe=Uw(n,le.localAccountId,_e,d);de.push(Pe)}return le.tenantProfiles=de,le}function tx(s,e,n){return PN.apply(this,arguments)}function PN(){return(PN=(0,bt.A)(function*(s,e,n){return"string"==typeof s?s:s({clientId:e,tokenEndpoint:n})}
1)).apply(this,arguments)}class nx extends RN{constructor(e,n){super(e,n),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}getAuthCodeUrl(e){var n=this;return(0,bt.A)(function*(){n.performanceClient?.addQueueMeasurement(pt.MX.GetAuthCodeUrl,e.correlationId);const o=yield fe(n.createAuthCodeUrlQueryString.bind(n),pt.MX.AuthClientCreateQueryString,n.logger,n.performanceClient,e.correlationId)(e);return Yi.H.appendQueryString(n.authority.authorizationEndpoint,o)})()}acquireToken(e,n){var o=this;return(0,bt.A)(function*(){if(o.performanceClient?.addQueueMeasurement(pt.MX.AuthClientAcquireToken,e.correlationId),!e.code)throw(0,Gt.SB)(nn.$P);const c=Ou(),d=yield fe(o.executeTokenRequest.bind(o),pt.MX.AuthClientExecuteTokenRequest,o.logger,o.performanceClient,e.correlationId)(o.authority,e),h=d.headers?.[ee.OK.X_MS_REQUEST_ID],g=new Vv(o.config.authOptions.clientId,o.cacheManager,o.cryptoUtils,o.logger,o.config.serializableCache,o.config.persistencePlugin,o.performanceClient);return g.validateTokenResponse(d.body),fe(g.handleServerTokenResponse.bind(g),pt.MX.HandleServerTokenResponse,o.logger,o.performanceClient,e.correlationId)(d.body,o.authority,c,e,n,void 0,void 0,void 0,h)})()}handleFragmentResponse(e,n){if(new Vv(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,n),!e.code)throw(0,Gt.SB)(nn.Re);return e}getLogoutUri(e){if(!e)throw(0,qo.aD)(Qo.pi);const n=this.createLogoutUrlQueryString(e);return Yi.H.appendQueryString(this.authority.endSessionEndpoint,n)}executeTokenRequest(e,n){var o=this;return(0,bt.A)(function*(){o.performanceClient?.addQueueMeasurement(pt.MX.AuthClientExecuteTokenRequest,n.correlationId);const c=o.createTokenQueryParameters(n),d=Yi.H.appendQueryString(e.tokenEndpoint,c),h=yield fe(o.createTokenRequestBody.bind(o),pt.MX.AuthClientCreateTokenRequestBody,o.logger,o.performanceClient,n.correlationId)(n);let g;if(n.clientInfo)try{const O=WS(n.clientInfo,o.cryptoUtils.base64Decode);g={credential:`${O.uid}${ee.LR.CLIENT_INFO_SEPARATOR}${O.utid}`,type:"home_account_id"}}catch(O){o.logger.verbose("Could not parse client info for CCS Header: "+O)}const C=o.createTokenRequestHeaders(g||n.ccsCredential),S={clientId:n.tokenBodyParameters?.clientId||o.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid};return fe(o.executePostToTokenEndpoint.bind(o),pt.MX.AuthorizationCodeClientExecutePostToTokenEndpoint,o.logger,o.performanceClient,n.correlationId)(d,h,C,S,n.correlationId,pt.MX.AuthorizationCodeClientExecutePostToTokenEndpoint)})()}createTokenRequestBody(e){var n=this;return(0,bt.A)(function*(){n.performanceClient?.addQueueMeasurement(pt.MX.AuthClientCreateTokenRequestBody,e.correlationId);const o=new n0(e.correlationId,n.performanceClient);if(o.addClientId(e.embeddedClientId||e.tokenBodyParameters?.[Hv]||n.config.authOptions.clientId),n.includeRedirectUri?o.addRedirectUri(e.redirectUri):uE.validateRedirectUri(e.redirectUri),o.addScopes(e.scopes,!0,n.oidcDefaultScopes),o.addAuthorizationCode(e.code),o.addLibraryInfo(n.config.libraryInfo),o.addApplicationTelemetry(n.config.telemetry.application),o.addThrottling(),n.serverTelemetryManager&&!qS(n.config)&&o.addServerTelemetry(n.serverTelemetryManager),e.codeVerifier&&o.addCodeVerifier(e.codeVerifier),n.config.clientCredentials.clientSecret&&o.addClientSecret(n.config.clientCredentials.clientSecret),n.config.clientCredentials.clientAssertion){const d=n.config.clientCredentials.clientAssertion;o.addClientAssertion(yield tx(d.assertion,n.config.authOptions.clientId,e.resourceRequestUri)),o.addClientAssertionType(d.assertionType)}if(o.addGrantType(ee.$x.AUTHORIZATION_CODE_GRANT),o.addClientInfo(),e.authenticationScheme===ee.IO.POP){const d=new dE(n.cryptoUtils,n.performanceClient);let h;h=e.popKid?n.cryptoUtils.encodeKid(e.popKid):(yield fe(d.generateCnf.bind(d),pt.MX.PopTokenGenerateCnf,n.logger,n.performanceClient,e.correlationId)(e,n.logger)).reqCnfString,o.addPopToken(h)}else if(e.authenticationScheme===ee.IO.SSH){if(!e.sshJwk)throw(0,qo.aD)(Qo.LX);o.addSshJwk(e.sshJwk)}let c;if((!Ih.$.isEmptyObj(e.claims)||n.config.authOptions.clientCapabilities&&n.config.authOptions.clientCapabilities.length>0)&&o.addClaims(e.claims,n.config.authOptions.clientCapabilities),e.clientInfo)try{const d=WS(e.clientInfo,n.cryptoUtils.base64Decode);c={credential:`${d.uid}${ee.LR.CLIENT_INFO_SEPARATOR}${d.utid}`,type:"home_account_id"}}catch(d){n.logger.verbose("Could not parse client info for CCS Header: "+d)}else c=e.ccsCredential;if(n.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case"home_account_id":try{const d=mg(c.credential);o.addCcsOid(d)}catch(d){n.logger.verbose("Could not parse home account ID for CCS Header: "+d)}break;case"UPN":o.addCcsUpn(c.credential)}return e.embeddedClientId&&o.addBrokerParameters({brokerClientId:n.config.authOptions.clientId,brokerRedirectUri:n.config.authOptions.redirectUri}),e.tokenBodyParameters&&o.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[J
1k])&&o.addExtraQueryParameters({[Jk]:"1"}),o.createQueryString()})()}createAuthCodeUrlQueryString(e){var n=this;return(0,bt.A)(function*(){const o=e.correlationId||n.config.cryptoInterface.createNewGuid();n.performanceClient?.addQueueMeasurement(pt.MX.AuthClientCreateQueryString,o);const c=new n0(o,n.performanceClient);c.addClientId(e.embeddedClientId||e.extraQueryParameters?.[Hv]||n.config.authOptions.clientId);const d=[...e.scopes||[],...e.extraScopesToConsent||[]];if(c.addScopes(d,!0,n.oidcDefaultScopes),c.addRedirectUri(e.redirectUri),c.addCorrelationId(o),c.addResponseMode(e.responseMode),c.addResponseTypeCode(),c.addLibraryInfo(n.config.libraryInfo),qS(n.config)||c.addApplicationTelemetry(n.config.telemetry.application),c.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&c.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&c.addPrompt(e.prompt),e.domainHint&&c.addDomainHint(e.domainHint),e.prompt!==ee._M.SELECT_ACCOUNT)if(e.sid&&e.prompt===ee._M.NONE)n.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),c.addSid(e.sid);else if(e.account){const h=n.extractAccountSid(e.account);let g=n.extractLoginHint(e.account);if(g&&e.domainHint&&(n.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),g=null),g){n.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),c.addLoginHint(g);try{const C=mg(e.account.homeAccountId);c.addCcsOid(C)}catch{n.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(h&&e.prompt===ee._M.NONE){n.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),c.addSid(h);try{const C=mg(e.account.homeAccountId);c.addCcsOid(C)}catch{n.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)n.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),c.addLoginHint(e.loginHint),c.addCcsUpn(e.loginHint);else if(e.account.username){n.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),c.addLoginHint(e.account.username);try{const C=mg(e.account.homeAccountId);c.addCcsOid(C)}catch{n.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(n.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),c.addLoginHint(e.loginHint),c.addCcsUpn(e.loginHint));else n.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&c.addNonce(e.nonce),e.state&&c.addState(e.state),(e.claims||n.config.authOptions.clientCapabilities&&n.config.authOptions.clientCapabilities.length>0)&&c.addClaims(e.claims,n.config.authOptions.clientCapabilities),e.embeddedClientId&&c.addBrokerParameters({brokerClientId:n.config.authOptions.clientId,brokerRedirectUri:n.config.authOptions.redirectUri}),n.addExtraQueryParams(e,c),e.nativeBroker&&(c.addNativeBroker(),e.authenticationScheme===ee.IO.POP)){const h=new dE(n.cryptoUtils);let g;g=e.popKid?n.cryptoUtils.encodeKid(e.popKid):(yield fe(h.generateCnf.bind(h),pt.MX.PopTokenGenerateCnf,n.logger,n.performanceClient,e.correlationId)(e,n.logger)).reqCnfString,c.addPopToken(g)}return c.createQueryString()})()}createLogoutUrlQueryString(e){const n=new n0(e.correlationId,this.performanceClient);return e.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&n.addCorrelationId(e.correlationId),e.idTokenHint&&n.addIdTokenHint(e.idTokenHint),e.state&&n.addState(e.state),e.logoutHint&&n.addLogoutHint(e.logoutHint),this.addExtraQueryParams(e,n),n.createQueryString()}addExtraQueryParams(e,n){!(e.extraQueryParameters&&e.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(e.extraQueryParameters=e.extraQueryParameters||{},e.extraQueryParameters.instance_aware="true"),e.extraQueryParameters&&n.addExtraQueryParameters(e.extraQueryParameters)}extractAccountSid(e){return e.idTokenClaims?.sid||null}extractLoginHint(e){return e.idTokenClaims?.login_hint||null}}class r0{constructor(e,n){this.cacheOutcome=ee.Rv.NOT_APPLICABLE,this.cacheManager=n,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||ee.YM.EMPTY_STRING,this.wrapperVer=e.wrapperVer||ee.YM.EMPTY_STRING,this.telemetryCacheKey=ee.gT.CACHE_KEY+ee.LR.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${ee.gT.VALUE_SEPARATOR}${this.cacheOutcome}`,n=[this.wrapperSKU,this.wrapperVer],o=this.getNativeBrokerErrorCode();o?.length&&n.push(`broker_error=${o}`);const c=n.join(ee.gT.VALUE_SEPARATOR),h=[e,this.getRegionDiscoveryFields()].join(ee.gT.VALUE_SEPARATOR);return[ee.gT.SCHEMA_VERSION,h,c].join(ee.gT.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),n=r0.maxErrorsToSend(e),o=e.failedRequests.slice(0,2*n).join(ee.gT.VALUE_SEPARATOR),c=e.errors.slice(0,n).join(ee.gT.VALUE_SEPARATOR),d=e.errors.length,g=[d,n<d?ee.gT.OVERFLOW_TRUE:ee.gT.OVERFLOW_FALSE].join(ee.gT.VALUE_SEPARATOR);return[ee.gT.SCHEMA_VERSION,e.cacheHits,o,c,g].join(ee.gT.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const n=this.getLastRequests();n.errors.length>=ee.gT.MAX_CACHED_ERRORS&&(n.failedRequests.shift(),n.failedRequests.shift(),n.errors.shift()),n.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?n.errors.push(e instanceof ns.lR?e.subError?e.subError:e.errorCode?e.errorCode:e.toString():e.toString()):n.errors.push(ee.gT.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId),e.cacheHits}getLastRequests(){return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||{failedRequests:[],errors:[],cacheHits:0}}clearTelemetryCache(){const e=this.getLastRequests(),n=r0.maxErrorsToSend(e);if(n===e.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{const c={failedRequests:e.failedRequests.slice(2*n),errors:e.errors.slice(n),c
1acheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,c,this.correlationId)}}static maxErrorsToSend(e){let n,o=0,c=0;const d=e.errors.length;for(n=0;n<d;n++){const g=e.failedRequests[2*n+1]||ee.YM.EMPTY_STRING,C=e.errors[n]||ee.YM.EMPTY_STRING;if(c+=(e.failedRequests[2*n]||ee.YM.EMPTY_STRING).toString().length+g.toString().length+C.length+3,!(c<ee.gT.MAX_LAST_HEADER_BYTES))break;o+=1}return o}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||ee.YM.EMPTY_STRING),e.push(this.regionSource||ee.YM.EMPTY_STRING),e.push(this.regionOutcome||ee.YM.EMPTY_STRING),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const n=this.getLastRequests();n.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return function xL(s){const{skus:e,libraryName:n,libraryVersion:o,extensionName:c,extensionVersion:d}=s,h=new Map([[0,[n,o]],[2,[c,d]]]);let g=[];if(e?.length){if(g=e.split(","),g.length<4)return e}else g=Array.from({length:4},()=>"|");return h.forEach((C,S)=>{2===C.length&&C[0]?.length&&C[1]?.length&&function LL(s){const{skuArr:e,index:n,skuName:o,skuVersion:c}=s;n>=e.length||(e[n]=[o,c].join("|"))}({skuArr:g,index:S,skuName:C[0],skuVersion:C[1]})}),g.join(",")}(e)}}class ox{constructor(e,n,o,c,d,h,g,C,S){this.config=e,this.browserStorage=n,this.browserCrypto=o,this.networkClient=this.config.system.networkClient,this.eventHandler=d,this.navigationClient=h,this.nativeMessageHandler=C,this.correlationId=S||(0,i.Oy)(),this.logger=c.clone(nt.Q1.MSAL_SKU,vg,this.correlationId),this.performanceClient=g}clearCacheOnLogout(e){var n=this;return(0,bt.A)(function*(){if(e){ts.accountInfoIsEqual(e,n.browserStorage.getActiveAccount(n.correlationId),!1)&&(n.logger.verbose("Setting active account to null"),n.browserStorage.setActiveAccount(null,n.correlationId));try{yield n.browserStorage.removeAccount(ts.generateAccountCacheKey(e),n.correlationId),n.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{n.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{n.logger.verbose("No account provided in logout request, clearing all cache items.",n.correlationId),yield n.browserStorage.clear(n.correlationId),yield n.browserCrypto.clearKeystore()}catch{n.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}})()}getRedirectUri(e){return this.logger.verbose("getRedirectUri called"),Yi.H.getAbsoluteUrl(e||this.config.auth.redirectUri,(0,Fo.Uu)())}initializeServerTelemetryManager(e,n){this.logger.verbose("initializeServerTelemetryManager called");const o={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:n||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new r0(o,this.browserStorage)}getDiscoveredAuthority(e){var n=this;return(0,bt.A)(function*(){const{account:o}=e,c=e.requestExtraQueryParameters&&e.requestExtraQueryParameters.hasOwnProperty("instance_aware")?e.requestExtraQueryParameters.instance_aware:void 0;n.performanceClient.addQueueMeasurement(pt.MX.StandardInteractionClientGetDiscoveredAuthority,n.correlationId);const d={protocolMode:n.config.auth.protocolMode,OIDCOptions:n.config.auth.OIDCOptions,knownAuthorities:n.config.auth.knownAuthorities,cloudDiscoveryMetadata:n.config.auth.cloudDiscoveryMetadata,authorityMetadata:n.config.auth.authorityMetadata,skipAuthorityMetadataCache:n.config.auth.skipAuthorityMetadataCache},h=e.requestAuthority||n.config.auth.authority,C=o&&(c?.length?"true"===c:n.config.auth.instanceAware)?n.config.auth.authority.replace(Yi.H.getDomainFromUrl(h),o.environment):h,S=Ze.generateAuthority(C,e.requestAzureCloudOptions||n.config.auth.azureCloudOptions),O=yield fe(ex,pt.MX.AuthorityFactoryCreateDiscoveredInstance,n.logger,n.performanceClient,n.correlationId)(S,n.config.system.networkClient,n.browserStorage,d,n.logger,n.correlationId,n.performanceClient);if(o&&!O.isAlias(o.environment))throw(0,qo.aD)(Qo.K3);return O})()}}const FL=32;function UL(s,e,n){return kN.apply(this,arguments)}function kN(){return(kN=(0,bt.A)(function*(s,e,n){s.addQueueMeasurement(pt.MX.GeneratePkceCodes,n);const o=se(BL,pt.MX.GenerateCodeVerifier,e,s,n)(s,e,n);return{verifier:o,challenge:yield fe(HL,pt.MX.GenerateCodeChallengeFromVerifier,e,s,n)(o,s,e,n)}})).apply(this,arguments)}function BL(s,e,n){try{const o=new Uint8Array(FL);return se(i.UY,pt.MX.GetRandomValues,e,s,n)(o),(0,Fd.dB)(o)}catch{throw(0,er.bD)(Wn.p5)}}function HL(s,e,n,o){return xN.apply(this,arguments)}function xN(){return(xN=(0,bt.A)(function*(s,e,n,o){e.addQueueMeasurement(pt.MX.GenerateCodeChallengeFromVerifier,o);try{const c=yield fe(i.sI,pt.MX.Sha256Digest,n,e,o)(s,e,o);return(0,Fd.dB)(new Uint8Array(c))}catch{throw(0,er.bD)(Wn.p5)}})).apply(this,arguments)}function LN(s,e,n,o){return FN.apply(this,arguments)}function FN(){return(FN=(0,bt.A)(function*(s,e,n,o){n.addQueueMeasurement(pt.MX.InitializeBaseRequest,s.correlationId);const c=s.authority||e.auth.authority,d=[...s&&s.scopes||[]],h={...s,correlationId:s.correlationId,authority:c,scopes:d};if(h.authenticationScheme){if(h.authenticationScheme===ee.IO.SSH){if(!s.sshJwk)throw(0,qo.aD)(Qo.LX);if(!s.sshKid)throw(0,qo.aD)(Qo.rB)}o.verbose(`Authentication Scheme set to "${h.authenticationScheme}" as configured in Auth request`)}else h.authenticationScheme=ee.IO.BEARER,o.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return e.cache.claimsBasedCachingEnabled&&s.claims&&!Ih.$.isEmptyObj(s.claims)&&(h.requestedClaimsHash=yield(0,i.YZ)(s.claims)),h})).apply(this,arguments)}function VL(s,e,n,o,c){return UN.apply(this,arguments)}function UN(){return(UN=(0,bt.A)(function*(s,e,n,o,c){o.addQueueMeasurement(pt.MX.InitializeSilentRequest,s.correlationId);const d=yield fe(LN,pt.MX.InitializeBaseRequest,c,o,s.correlationId)(s,n,o,c);return{...s,...d,account:e,forceRefresh:s.forceRefresh||!1}})).apply(this,arguments)}
1class fE extends ox{initializeAuthorizationCodeRequest(e){var n=this;return(0,bt.A)(function*(){n.performanceClient.addQueueMeasurement(pt.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId);const o=yield fe(UL,pt.MX.GeneratePkceCodes,n.logger,n.performanceClient,n.correlationId)(n.performanceClient,n.logger,n.correlationId),c={...e,redirectUri:e.redirectUri,code:ee.YM.EMPTY_STRING,codeVerifier:o.verifier};return e.codeChallenge=o.challenge,e.codeChallengeMethod=ee.YM.S256_CODE_CHALLENGE_METHOD,c})()}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e?.correlationId);const n={correlationId:this.correlationId||(0,i.Oy)(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const o=this.getLogoutHintFromIdTokenClaims(e.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return e&&null===e.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=Yi.H.getAbsoluteUrl(e.postLogoutRedirectUri,(0,Fo.Uu)())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=Yi.H.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,(0,Fo.Uu)())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=Yi.H.getAbsoluteUrl((0,Fo.Uu)(),(0,Fo.Uu)())),n}getLogoutHintFromIdTokenClaims(e){const n=e.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}createAuthCodeClient(e){var n=this;return(0,bt.A)(function*(){n.performanceClient.addQueueMeasurement(pt.MX.StandardInteractionClientCreateAuthCodeClient,n.correlationId);const o=yield fe(n.getClientConfiguration.bind(n),pt.MX.StandardInteractionClientGetClientConfiguration,n.logger,n.performanceClient,n.correlationId)(e);return new nx(o,n.performanceClient)})()}getClientConfiguration(e){var n=this;return(0,bt.A)(function*(){const{serverTelemetryManager:o,requestAuthority:c,requestAzureCloudOptions:d,requestExtraQueryParameters:h,account:g}=e;n.performanceClient.addQueueMeasurement(pt.MX.StandardInteractionClientGetClientConfiguration,n.correlationId);const C=yield fe(n.getDiscoveredAuthority.bind(n),pt.MX.StandardInteractionClientGetDiscoveredAuthority,n.logger,n.performanceClient,n.correlationId)({requestAuthority:c,requestAzureCloudOptions:d,requestExtraQueryParameters:h,account:g}),S=n.config.system.loggerOptions;return{authOptions:{clientId:n.config.auth.clientId,authority:C,clientCapabilities:n.config.auth.clientCapabilities,redirectUri:n.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:n.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:S.loggerCallback,piiLoggingEnabled:S.piiLoggingEnabled,logLevel:S.logLevel,correlationId:n.correlationId},cacheOptions:{claimsBasedCachingEnabled:n.config.cache.claimsBasedCachingEnabled},cryptoInterface:n.browserCrypto,networkInterface:n.networkClient,storageInterface:n.browserStorage,serverTelemetryManager:o,libraryInfo:{sku:nt.Q1.MSAL_SKU,version:vg,cpu:ee.YM.EMPTY_STRING,os:ee.YM.EMPTY_STRING},telemetry:n.config.telemetry}})()}initializeAuthorizationRequest(e,n){var o=this;return(0,bt.A)(function*(){o.performanceClient.addQueueMeasurement(pt.MX.StandardInteractionClientInitializeAuthorizationRequest,o.correlationId);
1const c=o.getRedirectUri(e.redirectUri),h=Nu.setRequestState(o.browserCrypto,e&&e.state||ee.YM.EMPTY_STRING,{interactionType:n}),C={...yield fe(LN,pt.MX.InitializeBaseRequest,o.logger,o.performanceClient,o.correlationId)({...e,correlationId:o.correlationId},o.config,o.performanceClient,o.logger),redirectUri:c,state:h,nonce:e.nonce||(0,i.Oy)(),responseMode:o.config.auth.OIDCOptions.serverResponseType};if(e.loginHint||e.sid)return C;const S=e.account||o.browserStorage.getActiveAccount(o.correlationId);if(S&&(o.logger.verbose("Setting validated request account",o.correlationId),o.logger.verbosePii(`Setting validated request account: ${S.homeAccountId}`,o.correlationId),C.account=S),!C.loginHint&&!S){const O=o.browserStorage.getLegacyLoginHint();O&&(C.loginHint=O)}return C})()}}var sx=D(6213);const ax="user_switch",qL={[ax]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class Bd extends ns.lR{constructor(e,n,o){super(e,n),Object.setPrototypeOf(this,Bd.prototype),this.name="NativeAuthError",this.ext=o}}function hE(s){return!!(s.ext&&s.ext.status&&("PERSISTENT_ERROR"===s.ext.status||"DISABLED"===s.ext.status)||s.ext&&s.ext.error&&-2147186943===s.ext.error)||"ContentError"===s.errorCode}function BN(s,e,n){if(n&&n.status)switch(n.status){case"ACCOUNT_UNAVAILABLE":return AN(lr);case"USER_INTERACTION_REQUIRED":return new Ru(s,e);case"USER_CANCEL":return(0,er.bD)(Wn.fN);case"NO_NETWORK":return(0,er.bD)(Wn.l7)}return new Bd(s,qL[s]||e,n)}class HN extends RN{constructor(e,n){super(e,n)}acquireToken(e){var n=this;return(0,bt.A)(function*(){n.performanceClient?.addQueueMeasurement(pt.MX.RefreshTokenClientAcquireToken,e.correlationId);const o=Ou(),c=yield fe(n.executeTokenRequest.bind(n),pt.MX.RefreshTokenClientExecuteTokenRequest,n.logger,n.performanceClient,e.correlationId)(e,n.authority),d=c.headers?.[ee.OK.X_MS_REQUEST_ID],h=new Vv(n.config.authOptions.clientId,n.cacheManager,n.cryptoUtils,n.logger,n.config.serializableCache,n.config.persistencePlugin);return h.validateTokenResponse(c.body),fe(h.handleServerTokenResponse.bind(h),pt.MX.HandleServerTokenResponse,n.logger,n.performanceClient,e.correlationId)(c.body,n.authority,o,e,void 0,void 0,!0,e.forceCache,d)})()}acquireTokenByRefreshToken(e){var n=this;return(0,bt.A)(function*(){if(!e)throw(0,qo.aD)(Qo.Ub);if(n.performanceClient?.addQueueMeasurement(pt.MX.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw(0,Gt.SB)(nn.C2);if(n.cacheManager.isAppMetadataFOCI(e.account.environment))try{return yield fe(n.acquireTokenWithCachedRefreshToken.bind(n),pt.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.logger,n.performanceClient,e.correlationId)(e,!0)}catch(c){if(c instanceof Ru&&c.errorCode===Vt||c instanceof _g&&c.errorCode===ee.I.INVALID_GRANT_ERROR&&c.subError===ee.I.CLIENT_MISMATCH_ERROR)return fe(n.acquireTokenWithCachedRefreshToken.bind(n),pt.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.logger,n.performanceClient,e.correlationId)(e,!1);throw c}return fe(n.acquireTokenWithCachedRefreshToken.bind(n),pt.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.logger,n.performanceClient,e.correlationId)(e,!1)})()}acquireTokenWithCachedRefreshToken(e,n){var o=this;return(0,bt.A)(function*(){o.performanceClient?.addQueueMeasurement(pt.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const c=se(o.cacheManager.getRefreshToken.bind(o.cacheManager),pt.MX.CacheManagerGetRefreshToken,o.logger,o.performanceClient,e.correlationId)(e.account,n,e.correlationId,void 0,o.performanceClient);if(!c)throw AN(Vt);if(c.expiresOn&&Nv(c.expiresOn,e.refreshTokenExpirationOffsetSeconds||300))throw AN(Zr);const d={...e,refreshToken:c.secret,authenticationScheme:e.authenticationScheme||ee.IO.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:"home_account_id"}};try{return yield fe(o.acquireToken.bind(o),pt.MX.RefreshTokenClientAcquireToken,o.logger,o.performanceClient,e.correlationId)(d)}catch(h){if(h instanceof Ru&&h.subError===Hc){o.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const g=Th(c);o.cacheManager.removeRefreshToken(g,e.correlationId)}throw h}})()}executeTokenRequest(e,n){var o=this;return(0,bt.A)(function*(){o.performanceClient?.addQueueMeasurement(pt.MX.RefreshTokenClientExecuteTokenRequest,e.correlationId);const c=o.createTokenQueryParameters(e),d=Yi.H.appendQueryString(n.tokenEndpoint,c),h=yield fe(o.createTokenRequestBody.bind(o),pt.MX.RefreshTokenClientCreateTokenRequestBody,o.logger,o.performanceClient,e.correlationId)(e),g=o.createTokenRequestHeaders(e.ccsCredential),C={clientId:e.tokenBodyParameters?.clientId||o.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return fe(o.executePostToTokenEndpoint.bind(o),pt.MX.RefreshTokenClientExecutePostToTokenEndpoint,o.logger,o.performanceClient,e.correlationId)(d,h,g,C,e.correlationId,pt.MX.RefreshTokenClientExecutePostToTokenEndpoint)})()}createTokenRequestBody(e){var n=this;return(0,bt.A)(function*(){n.performanceClient?.addQueueMeasurement(pt.MX.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const c=new n0(e.correlationId,n.performanceClient);if(c.addClientId(e.embeddedClientId||e.tokenBodyParameters?.[Hv]||n.config.authOptions.clientId),e.redirectUri&&c.addRedirectUri(e.redirectUri),c.addScopes(e.scopes,!0,n.config.authOptions.authority.options.OIDCOptions?.defaultScopes),c.addGrantType(ee.$x.REFRESH_TOKEN_GRANT),c.addClientInfo(),c.addLibraryInfo(n.config.libraryInfo),c.addApplicationTelemetry(n.config.telemetry.application),c.addThrottling(),n.serverTelemetryManager&&!qS(n.config)&&c.addServerTelemetry(n.serverTelemetryManager),c.addRefreshToken(e.refreshToken),n.config.clientCredentials.clientSecret&&c.addClientSecret(n.config.clientCredentials.clientSecret),n.config.clientCredentials.clientAssertion){const d=n.config.clientCredentials.clientAssertion;c.addClientAssertion(yield tx(d.assertion,n.config.authOptions.clientId,e.resourceRequestUri)),c.addClientAssertionType(d.assertionType)}if(e.authenticationScheme===ee.IO.POP){const d=new dE(n.cryptoUtils,n.performanceClient);let h;h=e.popKid?n.cryptoUtils.encodeKid(e.popKid):(yield fe(d.generateCnf.bind(d),pt.MX.PopTokenGenerateCnf,n.logger,n.performanceClient,e.correlationId)(e,n.logger)).reqCnfString,c.addPopToken(h)}else if(e.authenticationScheme===ee.IO.SSH){if(!e.sshJwk)throw(0,qo.aD)(Qo.LX);c.addSshJwk(e.sshJwk)}if((!Ih.$.isEmptyObj(e.claims)||n.config.authOptions.clientCapabilities&&n.config.authOptions.clientCapabilities.length>0)&&c.addClaims(e.claims,n.config.authOptions.clientCapabilities),n.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case"home_account_id":try{const d=mg(e.ccsCredential.credential);c.addCcsOid(d)}catch(d){n.logger.verbose("Could not parse home account ID for CCS Header: "+d)}break;case"UPN":c.addCcsUpn(e.ccsCredential.credential)}return e.embeddedClientId&&c.addBrokerParameters({brokerClientId:n.config.authOptions.clientId,brokerRedirectUri:n.config.authOptions.redirectUri}),e.tokenBodyParameters&&c.addExtraQueryParameters(e.tokenBodyParameters),c.createQueryString()})()}}class ZL extends RN{constructor(e,n){super(e,n)}acquireToken(e){var n=this;return(0,bt.A)(function*(){try{const[o,c]=yield n.acquireCachedToken({...e,scopes:e.scopes?.length?e.scopes:[...ee.aZ]});return c===ee.Rv.PROACTIVELY_REFRESHED&&(n.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new HN(n.config,n.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),o}catch(o){if(o instanceof Gt.eB&&o.errorCode===nn.wb)return new HN(n.config,n.performanceClient).acquireTokenByRefreshToken(e);throw o}})()}acquireCachedToken(e){var n=this;return(0,bt.A)(function*(){n.performanceClient?.addQueueMeasurement(pt.MX.SilentFlowClientAcquireCachedToken,e.correlationId);let o=ee.Rv.NOT_APPLICABLE;if(e.forceRefresh||!n.config.cacheOptions.claimsBasedCachingEnabled&&!Ih.$.isEmptyObj(e.claims))throw n.setCacheOutcome(ee.Rv.FORCE_REFRESH_OR_CLAIMS,e.correlationId),(0,Gt.SB)(nn.wb);if(!e.account)throw(0,Gt.SB)(nn.C2);const c=e.account.tenantId||function Ot(s){const o=new Yi.H(s).getUrlComponents().PathSegments.slice(-1)[0]?.toLowerCase();switch(o){case ee.v2.COMMON:case ee.v2.ORGANIZATIONS:case ee.v2.CONSUMERS:return;default:return o}}(e.authority),d=n.cacheManager.getTokenKeys(),h=n.cacheManager.getAccessToken(e.account,e,d,c,n.performanceClient);if(!h)throw n.setCacheOutcome(ee.Rv.NO_CACHED_ACCESS_TOKEN,e.correlationId),(0,Gt.SB)(nn.wb);if(function iN(s){return Number(s)>Ou()}(h.cachedAt)||Nv(h.expiresOn,n.config.systemOptions.tokenRenewalOffsetSeconds))throw n.setCacheOutcome(ee.Rv.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),(0,Gt.SB)(nn.wb);h.refreshOn&&Nv(h.refreshOn,0)&&(o=ee.Rv.PROACTIVELY_REFRESHED);const g=e.authority||n.authority.getPreferredCache(),C={account:n.cacheManager.readAccountFromCache(e.account,e.correlationId),accessToken:h,idToken:n.cacheManager.getIdToken(e.account,e.correlationId,d,c,n.performanceClient),refreshToken:null,appMetadata:n.cacheManager.readAppMetadataFromCac
1he(g)};return n.setCacheOutcome(o,e.correlationId),n.config.serverTelemetryManager&&n.config.serverTelemetryManager.incrementCacheHits(),[yield fe(n.generateResultFromCacheRecord.bind(n),pt.MX.SilentFlowClientGenerateResultFromCacheRecord,n.logger,n.performanceClient,e.correlationId)(C,e),o]})()}setCacheOutcome(e,n){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},n),e!==ee.Rv.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}generateResultFromCacheRecord(e,n){var o=this;return(0,bt.A)(function*(){let c;if(o.performanceClient?.addQueueMeasurement(pt.MX.SilentFlowClientGenerateResultFromCacheRecord,n.correlationId),e.idToken&&(c=pg(e.idToken.secret,o.config.cryptoInterface.base64Decode)),n.maxAge||0===n.maxAge){const d=c?.auth_time;if(!d)throw(0,Gt.SB)(nn.n3);rN(d,n.maxAge)}return Vv.generateAuthenticationResult(o.cryptoUtils,o.authority,e,!0,n,c)})()}}class cx extends fE{acquireToken(e){var n=this;return(0,bt.A)(function*(){n.performanceClient.addQueueMeasurement(pt.MX.SilentCacheClientAcquireToken,e.correlationId);const o=n.initializeServerTelemetryManager(nt.sA.acquireTokenSilent_silentFlow),c=yield fe(n.getClientConfiguration.bind(n),pt.MX.StandardInteractionClientGetClientConfiguration,n.logger,n.performanceClient,n.correlationId)({serverTelemetryManager:o,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),d=new ZL(c,n.performanceClient);n.logger.verbose("Silent auth client created");try{const g=(yield fe(d.acquireCachedToken.bind(d),pt.MX.SilentFlowClientAcquireCachedToken,n.logger,n.performanceClient,e.correlationId)(e))[0];return n.performanceClient.addFields({fromCache:!0},e.correlationId),g}catch(h){throw h instanceof er.jT&&h.errorCode===Wn.e0&&n.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),h}})()}logout(e){this.logger.verbose("logoutRedirect called");const n=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(n?.account)}}class pE extends ox{constructor(e,n,o,c,d,h,g,C,S,O,$,ae){super(e,n,o,c,d,h,C,S,ae),this.apiId=g,this.accountId=O,this.nativeMessageHandler=S,this.nativeStorageManager=$,this.silentCacheClient=new cx(e,this.nativeStorageManager,o,c,d,h,C,S,ae),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);const q=this.nativeMessageHandler.getExtensionId()===nt.JD.PREFERRED_EXTENSION_ID?"chrome":this.nativeMessageHandler.getExtensionId()?.length?"unknown":void 0;this.skus=r0.makeExtraSkuString({libraryName:nt.Q1.MSAL_SKU,libraryVersion:vg,extensionName:q,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,"x-client-xtra-sku":this.skus}}acquireToken(e){var n=this;return(0,bt.A)(function*(){n.performanceClient.addQueueMeasurement(pt.MX.NativeInteractionClientAcquireToken,e.correlationId),n.logger.trace("NativeInteractionClient - acquireToken called.");const o=n.performanceClient.startMeasurement(pt.MX.NativeInteractionClientAcquireToken,e.correlationId),c=Ou();try{const d=yield n.initializeNativeRequest(e);try{const O=yield n.acquireTokensFromCache(n.accountId,d);return o.end({success:!0,isNativeBroker:!1,fromCache:!0}),O}catch{n.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...h}=d,g={method:nt.Ct.GetToken,request:h},C=yield n.nativeMessageHandler.sendMessage(g),S=n.validateNativeResponse(C);return yield n.handleNativeResponse(S,d,c).then(O=>(o.end({success:!0,isNativeBroker:!0,requestId:O.requestId}),n.serverTelemetryManager.clearNativeBrokerErrorCode(),O)).catch(O=>{throw o.end({success:!1,errorCode:O.errorCode,subErrorCode:O.subError,isNativeBroker:!0}),O})}catch(d){throw d instanceof Bd&&n.serverTelemetryManager.setNativeBrokerErrorCode(d.errorCode),d}})()}createSilentCacheRequest(e,n){return{authority:e.authority,correlationId:this.correlationId,scopes:Lo.fromString(e.scope).asArray(),account:n,forceRefresh:!1}}
1acquireTokensFromCache(e,n){var o=this;return(0,bt.A)(function*(){if(!e)throw o.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),(0,Gt.SB)(nn.rk);const c=o.browserStorage.getBaseAccountInfo({nativeAccountId:e},n.correlationId);if(!c)throw(0,Gt.SB)(nn.rk);try{const d=o.createSilentCacheRequest(n,c),h=yield o.silentCacheClient.acquireToken(d),g={...c,idTokenClaims:h?.idTokenClaims,idToken:h?.idToken};return{...h,account:g}}catch(d){throw d}})()}acquireTokenRedirect(e,n){var o=this;return(0,bt.A)(function*(){o.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...c}=e;delete c.onRedirectNavigate;const d=yield o.initializeNativeRequest(c),h={method:nt.Ct.GetToken,request:d};try{const S=yield o.nativeMessageHandler.sendMessage(h);o.validateNativeResponse(S)}catch(S){if(S instanceof Bd&&(o.serverTelemetryManager.setNativeBrokerErrorCode(S.errorCode),hE(S)))throw S}o.browserStorage.setTemporaryCache(nt._p.NATIVE_REQUEST,JSON.stringify(d),!0);const g={apiId:nt.sA.acquireTokenRedirect,timeout:o.config.system.redirectNavigationTimeout,noHistory:!1},C=o.config.auth.navigateToLoginRequestUrl?window.location.href:o.getRedirectUri(e.redirectUri);n.end({success:!0}),yield o.navigationClient.navigateExternal(C,g)})()}handleRedirectPromise(e,n){var o=this;return(0,bt.A)(function*(){if(o.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!o.browserStorage.isInteractionInProgress(!0))return o.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const c=o.browserStorage.getCachedNativeRequest();if(!c)return o.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&n&&e?.addFields({errorCode:"no_cached_request"},n),null;const{prompt:d,...h}=c;d&&o.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),o.browserStorage.removeItem(o.browserStorage.generateCacheKey(nt._p.NATIVE_REQUEST));const g={method:nt.Ct.GetToken,request:h},C=Ou();try{o.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const S=yield o.nativeMessageHandler.sendMessage(g);o.validateNativeResponse(S);const O=o.handleNativeResponse(S,h,C);o.browserStorage.setInteractionInProgress(!1);const $=yield O;return o.serverTelemetryManager.clearNativeBrokerErrorCode(),$}catch(S){throw o.browserStorage.setInteractionInProgress(!1),S}})()}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}handleNativeResponse(e,n,o){var c=this;return(0,bt.A)(function*(){c.logger.trace("NativeInteractionClient - handleNativeResponse called.");const d=pg(e.id_token,t),h=c.createHomeAccountIdentifier(e,d),g=c.browserStorage.getAccountInfoFilteredBy({nativeAccountId:n.accountId},c.correlationId)?.homeAccountId;if(h!==g&&e.account.id!==n.accountId)throw BN(ax);const C=yield c.getDiscoveredAuthority({requestAuthority:n.authority}),S=NN(c.browserStorage,C,h,t,c.correlationId,d,e.client_info,void 0,d.tid,void 0,e.account.id,c.logger),O=yield c.generateAuthenticationResult(e,n,d,S,C.canonicalAuthority,o);return c.cacheAccount(S),c.cacheNativeTokens(e,n,h,d,e.access_token,O.tenantId,o),O})()}createHomeAccountIdentifier(e,n){return ts.generateHomeAccountId(e.client_info||ee.YM.EMPTY_STRING,0,this.logger,this.browserCrypto,n)}generateScopes(e,n){return Lo.fromString(e.scope?e.scope:n.scope)}generatePopAccessToken(e,n){var o=this;return(0,bt.A)(function*(){if(n.tokenType===ee.IO.POP&&n.signPopToken){if(e.shr)return o.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const c=new dE(o.browserCrypto),d={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce};if(!n.keyId)throw(0,Gt.SB)(nn.fo);return c.signPopToken(e.access_token,n.keyId,d)}return e.access_token})()}generateAuthenticationResult(e,n,o,c,d,h){var g=this;return(0,bt.A)(function*(){const C=g.addTelemetryFromNativeResponse(e),S=Lo.fromString(e.scope?e.scope:n.scope),O=e.account.properties||{},$=O.UID||o.oid||o.sub||ee.YM.EMPTY_STRING,ae=O.TenantId||o.tid||ee.YM.EMPTY_STRING,q=oE(c.getAccountInfo(),void 0,o,e.id_token);q.nativeAccountId!==e.account.id&&(q.nativeAccountId=e.account.id);const ie=yield g.generatePopAccessToken(e,n),le=n.tokenType===ee.IO.POP?ee.IO.POP:ee.IO.BEARER;return{authority:d,uniqueId:$,tenantId:ae,scopes:S.asArray(),account:q,idToken:e.id_token,idTokenClaims:o,accessToken:ie,fromCache:!!C&&g.isResponseFromCache(C),expiresOn:new Date(1e3*Number(h+e.expires_in)),tokenType:le,correlationId:g.correlationId,state:e.state,fromNativeBroker:!0}})()}cacheAccount(e){this.browserStorage.setAccount(e,this.correlationId),this.browserStorage.removeAccountContext(e,this.correlationId).catch(n=>{this.logger.error(`Error occurred while removing account context from browser storage. ${n}`)})}
1cacheNativeTokens(e,n,o,c,d,h,g){const C=Pv(o,n.authority,e.id_token||"",n.clientId,c.tid||""),O=g+(n.tokenType===ee.IO.POP?ee.YM.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),$=this.generateScopes(e,n),ae=kv(o,n.authority,d,n.clientId,c.tid||h,$.printScopes(),O,0,t,void 0,n.tokenType,void 0,n.keyId);this.nativeStorageManager.saveCacheRecord({idToken:C,accessToken:ae},n.correlationId,n.storeInCache)}addTelemetryFromNativeResponse(e){const n=this.getMATSFromResponse(e);return n?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw(0,ns.pz)(sx.W,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}initializeNativeRequest(e){var n=this;return(0,bt.A)(function*(){n.logger.trace("NativeInteractionClient - initializeNativeRequest called");const o=e.authority||n.config.auth.authority;e.account&&(yield n.getDiscoveredAuthority({requestAuthority:o,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}));const c=new Yi.H(o);c.validateAsUri();const{scopes:d,...h}=e,g=new Lo(d||[]);g.appendScopes(ee.aZ);const S={...h,accountId:n.accountId,clientId:n.config.auth.clientId,authority:c.urlString,scope:g.printScopes(),redirectUri:n.getRedirectUri(e.redirectUri),prompt:(()=>{switch(n.apiId){case nt.sA.ssoSilent:case nt.sA.acquireTokenSilent_silentFlow:return n.logger.trace("initializeNativeRequest: silent request sets prompt to none"),ee._M.NONE}if(e.prompt)switch(e.prompt){case ee._M.NONE:case ee._M.CONSENT:case ee._M.LOGIN:return n.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw n.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),(0,er.bD)(Wn.nF)}else n.logger.trace("initializeNativeRequest: prompt was not provided")})(),correlationId:n.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1,keyId:e.popKid};if(S.signPopToken&&e.popKid)throw(0,er.bD)(Wn.bT);if(n.handleExtraBrokerParams(S),S.extraParameters=S.extraParameters||{},S.extraParameters.telemetry=nt.JD.MATS_TELEMETRY,e.authenticationScheme===ee.IO.POP){const O={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},$=new dE(n.browserCrypto);let ae;if(S.keyId)ae=n.browserCrypto.base64UrlEncode(JSON.stringify({kid:S.keyId})),S.signPopToken=!1;else{const q=yield fe($.generateCnf.bind($),pt.MX.PopTokenGenerateCnf,n.logger,n.performanceClient,e.correlationId)(O,n.logger);ae=q.reqCnfString,S.keyId=q.kid,S.signPopToken=!0}S.reqCnf=ae}return n.addRequestSKUs(S),S})()}handleExtraBrokerParams(e){const n=e.extraParameters&&e.extraParameters.hasOwnProperty(wN)&&e.extraParameters.hasOwnProperty(MN)&&e.extraParameters.hasOwnProperty(Hv);if(!e.embeddedClientId&&!n)return;let o="";const c=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,o=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[MN],o=e.extraParameters[Hv]),e.extraParameters={child_client_id:o,child_redirect_uri:c},this.performanceClient?.addFields({embeddedClientId:o,embeddedRedirectUri:c},e.correlationId)}}class Hd{constructor(e,n,o,c){this.logger=e,this.handshakeTimeoutMs=n,this.extensionId=c,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=o,this.handshakeEvent=o.startMeasurement(pt.MX.NativeMessageHandlerHandshake)}sendMessage(e){var n=this;return(0,bt.A)(function*(){n.logger.trace("NativeMessageHandler - sendMessage called.");const o={channel:nt.JD.CHANNEL_ID,extensionId:n.extensionId,responseId:(0,i.Oy)(),body:e};return n.logger.trace("NativeMessageHandler - Sending request to browser extension"),n.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(o)}`),n.messageChannel.port1.postMessage(o),new Promise((c,d)=>{n.resolvers.set(o.responseId,{resolve:c,reject:d})})})()}static createProvider(e,n,o){return(0,bt.A)(function*(){e.trace("NativeMessageHandler - createProvider called.");try{const c=new Hd(e,n,o,nt.JD.PREFERRED_EXTENSION_ID);
1return yield c.sendHandshakeRequest(),c}catch{const d=new Hd(e,n,o);return yield d.sendHandshakeRequest(),d}})()}sendHandshakeRequest(){var e=this;return(0,bt.A)(function*(){e.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",e.windowListener,!1);const n={channel:nt.JD.CHANNEL_ID,extensionId:e.extensionId,responseId:(0,i.Oy)(),body:{method:nt.Ct.HandshakeRequest}};return e.handshakeEvent.add({extensionId:e.extensionId,extensionHandshakeTimeoutMs:e.handshakeTimeoutMs}),e.messageChannel.port1.onmessage=o=>{e.onChannelMessage(o)},window.postMessage(n,window.origin,[e.messageChannel.port2]),new Promise((o,c)=>{e.handshakeResolvers.set(n.responseId,{resolve:o,reject:c}),e.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",e.windowListener,!1),e.messageChannel.port1.close(),e.messageChannel.port2.close(),e.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),c((0,er.bD)(Wn.y3)),e.handshakeResolvers.delete(n.responseId)},e.handshakeTimeoutMs)})})()}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const n=e.data;if(n.channel&&n.channel===nt.JD.CHANNEL_ID&&(!n.extensionId||n.extensionId===this.extensionId)&&n.body.method===nt.Ct.HandshakeRequest){const o=this.handshakeResolvers.get(n.responseId);if(!o)return void this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${n.responseId}`);this.logger.verbose(n.extensionId?`Extension with id: ${n.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),o.reject((0,er.bD)(Wn.cq))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const n=e.data,o=this.resolvers.get(n.responseId),c=this.handshakeResolvers.get(n.responseId);try{const d=n.body.method;if(d===nt.Ct.Response){if(!o)return;const h=n.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(h)}`),"Success"!==h.status)o.reject(BN(h.code,h.description,h.ext));else{if(!h.result)throw(0,ns.pz)(sx.W,"Event does not contain result.");h.result.code&&h.result.description?o.reject(BN(h.result.code,h.result.description,h.result.ext)):o.resolve(h.result)}this.resolvers.delete(n.responseId)}else if(d===nt.Ct.HandshakeResponse){if(!c)return void this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${n.responseId}`);clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=n.extensionId,this.extensionVersion=n.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),c.resolve(),this.handshakeResolvers.delete(n.responseId)}}catch(d){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${d}`),this.logger.errorPii(`Unable to parse ${e}`),o?o.reject(d):c&&c.reject(d)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,n,o,c){if(n.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return n.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!o)return n.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(c)switch(c){case ee.IO.BEARER:case ee.IO.POP:return n.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return n.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}class VN{constructor(e,n,o,c,d){this.authModule=e,this.browserStorage=n,this.authCodeRequest=o,this.logger=c,this.performanceClient=d}handleCodeResponse(e,n){var o=this;return(0,bt.A)(function*(){let c;o.performanceClient.addQueueMeasurement(pt.MX.HandleCodeResponse,n.correlationId);try{c=o.authModule.handleFragmentResponse(e,n.state)}catch(d){throw d instanceof _g&&d.subError===Wn.fN?(0,er.bD)(Wn.fN):d}return fe(o.handleCodeResponseFromServer.bind(o),pt.MX.HandleCodeResponseFromServer,o.logger,o.performanceClient,n.correlationId)(c,n)})()}handleCodeResponseFromServer(e,n){var o=this;return(0,bt.A)(function*(c,d,h=!0){if(o.performanceClient.addQueueMeasurement(pt.MX.HandleCodeResponseFromServer,d.correlationId),o.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),o.authCodeRequest.code=c.code,c.cloud_instance_host_name&&(yield fe(o.authModule.updateAuthority.bind(o.authModule),pt.MX.UpdateTokenEndpointAuthority,o.logger,o.performanceClient,d.correlationId)(c.cloud_instance_host_name,d.correlationId)),h&&(c.nonce=d.nonce||void 0),c.state=d.state,c.client_info)o.authCodeRequest.clientInfo=c.client_info;else{const C=o.createCcsCredentials(d);C&&(o.authCodeRequest.ccsCredential=C)}return yield fe(o.authModule.acquireToken.bind(o.authModule),pt.MX.AuthClientAcquireToken,o.logger,o.performanceClient,d.correlationId)(o.authCodeRequest,c)}).apply(this,arguments)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:"home_account_id"}:e.loginHint?{credential:e.loginHint,type:"UPN"}:null}}var Zw=D(2718);function lx(s,e,n){const o=Zw.n(s);if(!o)throw Zw.S(s)?(n.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),n.errorPii(`The ${e} detected is: ${s}
1`),(0,er.bD)(Wn.Lm)):(n.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),(0,er.bD)(Wn.wv));return o}class eF extends fE{constructor(e,n,o,c,d,h,g,C,S,O){super(e,n,o,c,d,h,g,S,O),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=C}acquireToken(e){try{const o={popupName:this.generatePopupName(e.scopes||ee.aZ,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,o)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),o.popup=this.openSizedPopup("about:blank",o),this.acquireTokenPopupAsync(e,o))}catch(n){return Promise.reject(n)}}logout(e){try{this.logger.verbose("logoutPopup called");const n=this.initializeLogoutRequest(e),o={popupName:this.generateLogoutPopupName(n),popupWindowAttributes:e?.popupWindowAttributes||{},popupWindowParent:e?.popupWindowParent??window},c=e&&e.authority,d=e&&e.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,o,c,d)):(this.logger.verbose("asyncPopup set to false, opening popup"),o.popup=this.openSizedPopup("about:blank",o),this.logoutPopupAsync(n,o,c,d))}catch(n){return Promise.reject(n)}}acquireTokenPopupAsync(e,n){var o=this;return(0,bt.A)(function*(){o.logger.verbose("acquireTokenPopupAsync called");const c=o.initializeServerTelemetryManager(nt.sA.acquireTokenPopup),d=yield fe(o.initializeAuthorizationRequest.bind(o),pt.MX.StandardInteractionClientInitializeAuthorizationRequest,o.logger,o.performanceClient,o.correlationId)(e,nt.X8.Popup);(0,Fo.kZ)(d.authority);try{const h=yield fe(o.initializeAuthorizationCodeRequest.bind(o),pt.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,o.logger,o.performanceClient,o.correlationId)(d),g=yield fe(o.createAuthCodeClient.bind(o),pt.MX.StandardInteractionClientCreateAuthCodeClient,o.logger,o.performanceClient,o.correlationId)({serverTelemetryManager:c,requestAuthority:d.authority,requestAzureCloudOptions:d.azureCloudOptions,requestExtraQueryParameters:d.extraQueryParameters,account:d.account}),C=Hd.isNativeAvailable(o.config,o.logger,o.nativeMessageHandler,e.authenticationScheme);let S;C&&(S=o.performanceClient.startMeasurement(pt.MX.FetchAccountIdWithNativeBroker,e.correlationId));const O=yield g.getAuthCodeUrl({...d,nativeBroker:C}),$=new VN(g,o.browserStorage,h,o.logger,o.performanceClient),ae=o.initiateAuthRequest(O,n);o.eventHandler.emitEvent(br.B.POPUP_OPENED,nt.X8.Popup,{popupWindow:ae},null);const q=yield o.monitorPopupForHash(ae,n.popupWindowParent),ie=se(lx,pt.MX.DeserializeResponse,o.logger,o.performanceClient,o.correlationId)(q,o.config.auth.OIDCOptions.serverResponseType,o.logger);if(Ud.removeThrottle(o.browserStorage,o.config.auth.clientId,h),ie.accountId){if(o.logger.verbose("Account id found in hash, calling WAM for token"),S&&S.end({success:!0,isNativeBroker:!0}),!o.nativeMessageHandler)throw(0,er.bD)(Wn.XC);const de=new pE(o.config,o.browserStorage,o.browserCrypto,o.logger,o.eventHandler,o.navigationClient,nt.sA.acquireTokenPopup,o.performanceClient,o.nativeMessageHandler,ie.accountId,o.nativeStorage,d.correlationId),{userRequestState:_e}=Nu.parseRequestState(o.browserCrypto,d.state);return yield de.acquireToken({...d,state:_e,prompt:void 0})}return yield $.handleCodeResponse(ie,d)}catch(h){throw n.popup?.close(),h instanceof ns.lR&&(h.setCorrelationId(o.correlationId),c.cacheFailedRequest(h)),h}})()}logoutPopupAsync(e,n,o,c){var d=this;return(0,bt.A)(function*(){d.logger.verbose("logoutPopupAsync called"),d.eventHandler.emitEvent(br.B.LOGOUT_START,nt.X8.Popup,e);const h=d.initializeServerTelemetryManager(nt.sA.logoutPopup);try{yield d.clearCacheOnLogout(e.account);const C=(yield fe(d.createAuthCodeClient.bind(d),pt.MX.StandardInteractionClientCreateAuthCodeClient,d.logger,d.performanceClient,d.correlationId)({serverTelemetryManager:h,requestAuthority:o,account:e.account||void 0})).getLogoutUri(e);d.eventHandler.emitEvent(br.B.LOGOUT_SUCCESS,nt.X8.Popup,e);const S=d.openPopup(C,n);if(d.eventHandler.emitEvent(br.B.POPUP_OPENED,nt.X8.Popup,{popupWindow:S},null),yield d.monitorPopupForHash(S,n.popupWindowParent).catch(()=>{}),c){const O={apiId:nt.sA.logoutPopup,timeout:d.config.system.redirectNavigationTimeout,noHistory:!1},$=Yi.H.getAbsoluteUrl(c,(0,Fo.Uu)());d.logger.verbose("Redirecting main window to url specified in the request"),d.logger.verbosePii(`Redirecting main window to: ${$}`),yield d.navigationClient.navigateInternal($,O)}else d.logger.verbose("No main window navigation requested")}catch(g){throw n.popup?.close(),g instanceof ns.lR&&(g.setCorrelationId(d.correlationId),h.cacheFailedRequest(g)),d.browserStorage.setInteractionInProgress(!1),d.eventHandler.emitEvent(br.B.LOGOUT_FAILURE,nt.X8.Popup,null,g),d.eventHandler.emitEvent(br.B.LOGOUT_END,nt.X8.Popup),g}d.eventHandler.emitEvent(br.B.LOGOUT_END,nt.X8.Popup)})()}initiateAuthRequest(e,n){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,n);throw this.logger.error("Navigate url is empty"),(0,er.bD)(Wn.B2)}monitorPopupForHash(e,n){return new Promise((o,c)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const d=setInterval(()=>{if(e.closed)return this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(d),void c((0,er.bD)(Wn.fN));let h="";try{h=e.location.href}catch{}if(!h||"about:blank"===h)return;clearInterval(d);let g="";e&&(g=this.config.auth.OIDCOptions.serverResponseType===ee.zL.QUERY?e.location.search:e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),o(g)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e,n)})}openPopup(e,n){try{let o;if(n.popup?(o=n.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),o.location.assign(e)):typeof n.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),o=this.openSizedPopup(e,n)),!o)throw(0,er.bD)(Wn.MP);return o.focus&&o.focus(),this.currentWindow=o,n.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),o}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),(0,er.bD)(Wn.hs)}}openSizedPopup(e,{popupName:n,popupWindowAttributes:o,popupWindowParent:c}){const d=c.screenLeft?c.screenLeft:c.screenX,h=c.screenTop?c.screenTop:c.screenY,g=c.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,C=c.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let S=o.popupSize?.width,O=o.popupSize?.height,$=o.popupPosition?.top,ae=o.popupPosition?.left;return(!S||S<0||S>g)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),S=nt.Q1.POPUP_WIDTH),(!O||O<0||O>C)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),O=nt.Q1.POPUP_HEIGHT),(!$||$<0||$>C)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),$=Math.max(0,C/2-nt.Q1.POPUP_HEIGHT/2+h)),(!ae||ae<0||ae>g)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),ae=Math.max(0,g/2-nt.Q1.POPUP_WIDTH/2+d)),c.open(e,n,`width=${S}, height=${O}, top=${$}, left=${ae}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(nt.X8.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e,n){e.close(),n.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,n){return`${nt.Q1.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${n}.${this.correlationId}`}generateLogoutPopupName(e){return`${nt.Q1.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.account&&e.account.homeAccountId}.${this.correlationId}`}}class ux{constructor(e,n,o,c,d){this.authModule=e,this.browserStorage=n,this.authCodeRequest=o,this.logger=c,this.performanceClient=d}initiateAuthRequest(e,n){var o=this;return(0,bt.A)(function*(){if(o.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){n.redirectStartPage&&(o.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),o.browserStorage.setTemporaryCache(nt._p.ORIGIN_URI,n.redirectStartPage,!0)),o.browserStorage.setTemporaryCache(nt._p.CORRELATION_ID,o.authCodeRequest.correlationId,!0),o.browserStorage.cacheCodeRequest
1(o.authCodeRequest),o.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const c={apiId:nt.sA.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1};return"function"==typeof n.onRedirectNavigate?(o.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1!==n.onRedirectNavigate(e)?(o.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),void(yield n.navigationClient.navigateExternal(e,c))):void o.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation")):(o.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),void(yield n.navigationClient.navigateExternal(e,c)))}throw o.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),(0,er.bD)(Wn.B2)})()}handleCodeResponse(e,n){var o=this;return(0,bt.A)(function*(){o.logger.verbose("RedirectHandler.handleCodeResponse called"),o.browserStorage.setInteractionInProgress(!1);const c=o.browserStorage.generateStateKey(n),d=o.browserStorage.getTemporaryCache(c);if(!d)throw(0,Gt.SB)(nn.tQ,"Cached State");let h;try{h=o.authModule.handleFragmentResponse(e,d)}catch(O){throw O instanceof _g&&O.subError===Wn.fN?(0,er.bD)(Wn.fN):O}const g=o.browserStorage.generateNonceKey(d),C=o.browserStorage.getTemporaryCache(g);if(o.authCodeRequest.code=h.code,h.cloud_instance_host_name&&(yield fe(o.authModule.updateAuthority.bind(o.authModule),pt.MX.UpdateTokenEndpointAuthority,o.logger,o.performanceClient,o.authCodeRequest.correlationId)(h.cloud_instance_host_name,o.authCodeRequest.correlationId)),h.nonce=C||void 0,h.state=d,h.client_info)o.authCodeRequest.clientInfo=h.client_info;else{const O=o.checkCcsCredentials();O&&(o.authCodeRequest.ccsCredential=O)}const S=yield o.authModule.acquireToken(o.authCodeRequest,h);return o.browserStorage.cleanRequestByState(n),S})()}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(nt._p.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache
1credential could not be parsed: ${e}`)}return null}}class nF extends fE{constructor(e,n,o,c,d,h,g,C,S,O){super(e,n,o,c,d,h,g,S,O),this.nativeStorage=C}acquireToken(e){var n=this;return(0,bt.A)(function*(){const o=yield fe(n.initializeAuthorizationRequest.bind(n),pt.MX.StandardInteractionClientInitializeAuthorizationRequest,n.logger,n.performanceClient,n.correlationId)(e,nt.X8.Redirect);n.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||"",o.account||null);const c=n.initializeServerTelemetryManager(nt.sA.acquireTokenRedirect),d=h=>{h.persisted&&(n.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),n.browserStorage.cleanRequestByState(o.state),n.eventHandler.emitEvent(br.B.RESTORE_FROM_BFCACHE,nt.X8.Redirect))};try{const h=yield fe(n.initializeAuthorizationCodeRequest.bind(n),pt.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,n.logger,n.performanceClient,n.correlationId)(o),g=yield fe(n.createAuthCodeClient.bind(n),pt.MX.StandardInteractionClientCreateAuthCodeClient,n.logger,n.performanceClient,n.correlationId)({serverTelemetryManager:c,requestAuthority:o.authority,requestAzureCloudOptions:o.azureCloudOptions,requestExtraQueryParameters:o.extraQueryParameters,account:o.account}),C=new ux(g,n.browserStorage,h,n.logger,n.performanceClient),S=yield g.getAuthCodeUrl({...o,nativeBroker:Hd.isNativeAvailable(n.config,n.logger,n.nativeMessageHandler,e.authenticationScheme)}),O=n.getRedirectStartPage(e.redirectStartPage);return n.logger.verbosePii(`Redirect start page: ${O}`),window.addEventListener("pageshow",d),yield C.initiateAuthRequest(S,{navigationClient:n.navigationClient,redirectTimeout:n.config.system.redirectNavigationTimeout,redirectStartPage:O,onRedirectNavigate:e.onRedirectNavigate||n.config.auth.onRedirectNavigate})}catch(h){throw h instanceof ns.lR&&(h.setCorrelationId(n.correlationId),c.cacheFailedRequest(h)),window.removeEventListener("pageshow",d),n.browserStorage.cleanRequestByState(o.state),h}})()}handleRedirectPromise(){var e=this;return(0,bt.A)(function*(n="",o){const c=e.initializeServerTelemetryManager(nt.sA.handleRedirectPromise);try{if(!e.browserStorage.isInteractionInProgress(!0))return e.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[d,h]=e.getRedirectResponse(n||"");if(!d)return e.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),e.browserStorage.cleanRequestByInteractionType(nt.X8.Redirect),"back_forward"!==function tF(){if(typeof window>"u"||typeof window.performance>"u"||"function"!=typeof window.performance.getEntriesByType)return;const s=window.performance.getEntriesByType("navigation");return(s.length?s[0]:void 0)?.type}()?o.event.errorCode="no_server_response":e.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const g=e.browserStorage.getTemporaryCache(nt._p.ORIGIN_URI,!0)||ee.YM.EMPTY_STRING;if(Yi.H.removeHashFromUrl(g)===Yi.H.removeHashFromUrl(window.location.href)&&e.config.auth.navigateToLoginRequestUrl)return e.logger.verbose("Current page is loginRequestUrl, handling response"),g.indexOf("#")>-1&&(0,Fo.nQ)(g),yield e.handleResponse(d,c);if(!e.config.auth.navigateToLoginRequestUrl)return e.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),yield e.handleResponse(d,c);if(!(0,Fo.GZ)()||e.config.system.allowRedirectInIframe){e.browserStorage.setTemporaryCache(nt._p.URL_HASH,h,!0);const O={apiId:nt.sA.handleRedirectPromise,timeout:e.config.system.redirectNavigationTimeout,noHistory:!0};let $=!0;if(g&&"null"!==g)e.logger.verbose(`Navigating to loginRequestUrl: ${g}`),$=yield e.navigationClient.navigateInternal(g,O);else{const ae=(0,Fo.VX)();e.browserStorage.setTemporaryCache(nt._p.ORIGIN_URI,ae,!0),e.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),$=yield e.navigationClient.navigateInternal(ae,O)}if(!$)return yield e.handleResponse(d,c)}return null}catch(d){throw d instanceof ns.lR&&(d.setCorrelationId(e.correlationId),c.cacheFailedRequest(d)),e.browserStorage.cleanRequestByInteractionType(nt.X8.Redirect),d}}).apply(this,arguments)}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let n=e;n||(n=this.config.auth.OIDCOptions.serverResponseType===ee.zL.QUERY?window.location.search:window.location.hash);let o=Zw.n(n);if(o){try{!function JL(s,e,n){if(!s.state)throw(0,er.bD)(Wn.c$);const o=Yk(e,s.state);if(!o)throw(0,er.bD)(Wn.fA);if(o.interactionType!==n)throw(0,er.bD)(Wn.oe)}(o,this.browserCrypto,nt.X8.Redirect)}catch(d){return d instanceof ns.lR&&this.logger.error(`Interaction type validation failed due to ${d.errorCode}: ${d.errorMessage}`),[null,""]}return(0,Fo.U2)(window),this.logger.verbose("Hash contains known properties, returning response hash"),[o,n]}const c=this.browserStorage.getTemporaryCache(nt._p.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(nt._p.URL_HASH)),c&&(o=Zw.n(c),o)?(this.logger.verbose("Hash does not contain known properties, returning c
1ached hash"),[o,c]):[null,""]}handleResponse(e,n){var o=this;return(0,bt.A)(function*(){const c=e.state;if(!c)throw(0,er.bD)(Wn.c$);const d=o.browserStorage.getCachedRequest(c);if(o.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(o.logger.verbose("Account id found in hash, calling WAM for token"),!o.nativeMessageHandler)throw(0,er.bD)(Wn.XC);const S=new pE(o.config,o.browserStorage,o.browserCrypto,o.logger,o.eventHandler,o.navigationClient,nt.sA.acquireTokenPopup,o.performanceClient,o.nativeMessageHandler,e.accountId,o.nativeStorage,d.correlationId),{userRequestState:O}=Nu.parseRequestState(o.browserCrypto,c);return S.acquireToken({...d,state:O,prompt:void 0}).finally(()=>{o.browserStorage.cleanRequestByState(c)})}const h=o.browserStorage.getCachedAuthority(c);if(!h)throw(0,er.bD)(Wn.Ne);const g=yield fe(o.createAuthCodeClient.bind(o),pt.MX.StandardInteractionClientCreateAuthCodeClient,o.logger,o.performanceClient,o.correlationId)({serverTelemetryManager:n,requestAuthority:h});return Ud.removeThrottle(o.browserStorage,o.config.auth.clientId,d),new ux(g,o.browserStorage,d,o.logger,o.performanceClient).handleCodeResponse(e,c)})()}logout(e){var n=this;return(0,bt.A)(function*(){n.logger.verbose("logoutRedirect called");const o=n.initializeLogoutRequest(e),c=n.initializeServerTelemetryManager(nt.sA.logout);try{n.eventHandler.emitEvent(br.B.LOGOUT_START,nt.X8.Redirect,e),yield n.clearCacheOnLogout(o.account);const d={apiId:nt.sA.logout,timeout:n.config.system.redirectNavigationTimeout,noHistory:!1},g=(yield fe(n.createAuthCodeClient.bind(n),pt.MX.StandardInteractionClientCreateAuthCodeClient,n.logger,n.performanceClient,n.correlationId)({serverTelemetryManager:c,requestAuthority:e&&e.authority,requestExtraQueryParameters:e?.extraQueryParameters,account:e&&e.account||void 0})).getLogoutUri(o);if(n.eventHandler.emitEvent(br.B.LOGOUT_SUCCESS,nt.X8.Redirect,o),!e||"function"!=typeof e.onRedirectNavigate)return n.browserStorage.getInteractionInProgress()||n.browserStorage.setInteractionInProgress(!0),void(yield n.navigationClient.navigateExternal(g,d));if(!1!==e.onRedirectNavigate(g))return n.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),n.browserStorage.getInteractionInProgress()||n.browserStorage.setInteractionInProgress(!0),void(yield n.navigationClient.navigateExternal(g,d));n.browserStorage.setInteractionInProgress(!1),n.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation")}catch(d){throw d instanceof ns.lR&&(d.setCorrelationId(n.correlationId),c.cacheFailedRequest(d)),n.eventHandler.emitEvent(br.B.LOGOUT_FAILURE,nt.X8.Redirect,null,d),n.eventHandler.emitEvent(br.B.LOGOUT_END,nt.X8.Redirect),d}n.eventHandler.emitEvent(br.B.LOGOUT_END,nt.X8.Redirect)})()}getRedirectStartPage(e){const n=e||window.location.href;return Yi.H.getAbsoluteUrl(n,(0,Fo.Uu)())}}function rF(s,e,n,o,c){return jN.apply(this,arguments)}function jN(){return(jN=(0,bt.A)(function*(s,e,n,o,c){if(e.addQueueMeasurement(pt.MX.SilentHandlerInitiateAuthRequest,o),!s)throw n.info("Navigate url is empty"),(0,er.bD)(Wn.B2);return c?fe(oF,pt.MX.SilentHandlerLoadFrame,n,e,o)(s,c,e,o):se(sF,pt.MX.SilentHandlerLoadFrameSync,n,e,o)(s)})).apply(this,arguments)}function iF(s,e,n,o,c,d,h){return GN.apply(this,arguments)}function GN(){return(GN=(0,bt.A)(function*(s,e,n,o,c,d,h){return o.addQueueMeasurement(pt.MX.SilentHandlerMonitorIframeForHash,d),new Promise((g,C)=>{e<ZS&&c.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${ZS}ms). This may result in timeouts.`);const S=window.setTimeout(()=>{window.clearInterval(O),C((0,er.bD)(Wn.Uf))},e),O=window.setInterval(()=>{let $="";const ae=s.contentWindow;try{$=ae?ae.location.href:""}catch{}if(!$||"about:blank"===$)return;let q="";ae&&(q=h===ee.zL.QUERY?ae.location.search:ae.location.hash),window.clearTimeout(S),window.clearInterval(O),g(q)},n)}).finally(()=>{se(aF,pt.MX.RemoveHiddenIframe,c,o,d)(s)})})).apply(this,arguments)}function oF(s,e,n,o){return n.addQueueMeasurement(pt.MX.SilentHandlerLoadFrame,o),new Promise((c,d)=>{const h=dx();window.setTimeout(()=>
1{h?(h.src=s,c(h)):d("Unable to load iframe")},e)})}function sF(s){const e=dx();return e.src=s,e}function dx(){const s=document.createElement("iframe");return s.className="msalSilentIframe",s.style.visibility="hidden",s.style.position="absolute",s.style.width=s.style.height="0",s.style.border="0",s.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(s),s}function aF(s){document.body===s.parentNode&&document.body.removeChild(s)}class cF extends fE{constructor(e,n,o,c,d,h,g,C,S,O,$){super(e,n,o,c,d,h,C,O,$),this.apiId=g,this.nativeStorage=S}acquireToken(e){var n=this;return(0,bt.A)(function*(){n.performanceClient.addQueueMeasurement(pt.MX.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&n.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const o={...e};o.prompt?o.prompt!==ee._M.NONE&&o.prompt!==ee._M.NO_SESSION&&(n.logger.warning(`SilentIframeClient. Replacing invalid prompt ${o.prompt} with ${ee._M.NONE}`),o.prompt=ee._M.NONE):o.prompt=ee._M.NONE;const c=yield fe(n.initializeAuthorizationRequest.bind(n),pt.MX.StandardInteractionClientInitializeAuthorizationRequest,n.logger,n.performanceClient,e.correlationId)(o,nt.X8.Silent);(0,Fo.kZ)(c.authority);const d=n.initializeServerTelemetryManager(n.apiId);let h;try{return h=yield fe(n.createAuthCodeClient.bind(n),pt.MX.StandardInteractionClientCreateAuthCodeClient,n.logger,n.performanceClient,e.correlationId)({serverTelemetryManager:d,requestAuthority:c.authority,requestAzureCloudOptions:c.azureCloudOptions,requestExtraQueryParameters:c.extraQueryParameters,account:c.account}),yield fe(n.silentTokenHelper.bind(n),pt.MX.SilentIframeClientTokenHelper,n.logger,n.performanceClient,e.correlationId)(h,c)}catch(g){if(g instanceof ns.lR&&(g.setCorrelationId(n.correlationId),d.cacheFailedRequest(g)),!(h&&g instanceof ns.lR&&g.errorCode===nt.Q1.INVALID_GRANT_ERROR))throw g;n.performanceClient.addFields({retryError:g.errorCode},n.correlationId);const C=yield fe(n.initializeAuthorizationRequest.bind(n),pt.MX.StandardInteractionClientInitializeAuthorizationRequest,n.logger,n.performanceClient,e.correlationId)(o,nt.X8.Silent);return yield fe(n.silentTokenHelper.bind(n),pt.MX.SilentIframeClientTokenHelper,n.logger,n.performanceClient,n.correlationId)(h,C)}})()}logout(){return Promise.reject((0,er.bD)(Wn.v7))}silentTokenHelper(e,n){var o=this;return(0,bt.A)(function*(){const c=n.correlationId;o.performanceClient.addQueueMeasurement(pt.MX.SilentIframeClientTokenHelper,c);const d=yield fe(o.initializeAuthorizationCodeRequest.bind(o),pt.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,o.logger,o.performanceClient,c)(n),h=yield fe(e.getAuthCodeUrl.bind(e),pt.MX.GetAuthCodeUrl,o.logger,o.performanceClient,c)({...n,nativeBroker:Hd.isNativeAvailable(o.config,o.logger,o.nativeMessageHandler,n.authenticationScheme)}),g=new VN(e,o.browserStorage,d,o.logger,o.performanceClient),C=yield fe(rF,pt.MX.SilentHandlerInitiateAuthRequest,o.logger,o.performanceClient,c)(h,o.performanceClient,o.logger,c,o.config.system.navigateFrameWait),S=o.config.auth.OIDCOptions.serverResponseType,O=yield fe(iF,pt.MX.SilentHandlerMonitorIframeForHash,o.logger,o.performanceClient,c)(C,o.config.system.iframeHashTimeout,o.config.system.pollIntervalMilliseconds,o.performanceClient,o.logger,c,S),$=se(lx,pt.MX.DeserializeResponse,o.logger,o.performanceClient,o.correlationId)(O,S,o.logger);if($.accountId){if(o.logger.verbose("Account id found in hash, calling WAM for token"),!o.nativeMessageHandler)throw(0,er.bD)(Wn.XC);const ae=new pE(o.config,o.browserStorage,o.browserCrypto,o.logger,o.eventHandler,o.navigationClient,o.apiId,o.performanceClient,o.nativeMessageHandler,$.accountId,o.browserStorage,c),{userRequestState:q}=Nu.parseRequestState(o.browserCrypto,n.state);return fe(ae.acquireToken.bind(ae),pt.MX.NativeInteractionClientAcquireToken,o.logger,o.performanceClient,c)({...n,state:q,prompt:n.prompt||ee._M.NONE})}return fe(g.handleCodeResponse.bind(g),pt.MX.HandleCodeResponse,o.logger,o.performanceClient,c)($,n)})()}}class lF extends fE{acquireToken(e){var n=this;return(0,bt.A)(function*(){n.performanceClient.addQueueMeasurement(pt.MX.SilentRefreshClientAcquireToken,e.correlationId);const o=yield fe(LN,pt.MX.InitializeBaseRequest,n.logger,n.performanceClient,e.correlationId)(e,n.config,n.performanceClient,n.logger),c={...e,...o};e.redirectUri&&(c.redirectUri=n.getRedirectUri(e.redirectUri));const d=n.initializeServerTelemetryManager(nt.sA.acquireTokenSilent_silentFlow),h=yield n.createRefreshTokenClient({serverTelemetryManager:d,authorityUrl:c.authority,azureCloudOptions:c.azureCloudOptions,account:c.account});return fe(h.acquireTokenByRefreshToken.bind(h),pt.MX.RefreshTokenClientAcquireTokenByRefreshToken,n.logger,n.performanceClient,e.correlationId)(c).catch(g=>{throw g.setCorrelationId(n.correlationId),d.cacheFailedRequest(g),g})})()}logout(){return Promise.reject((0,er.bD)(Wn.v7))}createRefreshTokenClient(e){var n=this;return(0,bt.A)(function*(){const o=yield fe(n.getClientConfiguration.bind(n),pt.MX.StandardInteractionClientGetClientConfiguration,n.logger,n.performanceClient,n.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new HN(o,n.performanceClient)})()}}class uF{constructor(e,n,o,c){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=n,this.logger=o,this.cryptoObj=c}loadExternalTokens(e,n,o){if(!this.isBrowserEnvironment)throw(0,er.bD)(Wn.tI);const c=e.correlationId||(0,i.Oy)(),d=n.id_token?pg(n.id_token,t):void 0,h={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},g=e.authority?new Ze(Ze.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,h,this.logger,e.correlationId||(0,i.Oy)()):void 0,C=this.loadAccount(e,o.
1clientInfo||n.client_info||"",c,d,g),S=this.loadIdToken(n,C.homeAccountId,C.environment,C.realm,c),O=this.loadAccessToken(e,n,C.homeAccountId,C.environment,C.realm,o,c),$=this.loadRefreshToken(n,C.homeAccountId,C.environment,c);return this.generateAuthenticationResult(e,{account:C,idToken:S,accessToken:O,refreshToken:$},d,g)}loadAccount(e,n,o,c,d){if(this.logger.verbose("TokenCache - loading account"),e.account){const S=ts.createFromAccountInfo(e.account);return this.storage.setAccount(S,o),S}if(!d||!n&&!c)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),(0,er.bD)(Wn.s9);const h=ts.generateHomeAccountId(n,d.authorityType,this.logger,this.cryptoObj,c),g=c?.tid,C=NN(this.storage,d,h,t,o,c,n,d.hostnameAndPort,g,void 0,void 0,this.logger);return this.storage.setAccount(C,o),C}loadIdToken(e,n,o,c,d){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const h=Pv(n,o,e.id_token,this.config.auth.clientId,c);return this.storage.setIdTokenCredential(h,d),h}loadAccessToken(e,n,o,c,d,h,g){if(!n.access_token)return this.logger.verbose("TokenCache - no access token found in response"),null;if(!n.expires_in)return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;if(!(n.scope||e.scopes&&e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null;this.logger.verbose("TokenCache - loading access token");const C=n.scope?Lo.fromString(n.scope):new Lo(e.scopes),S=h.expiresOn||n.expires_in+(new Date).getTime()/1e3,O=h.extendedExpiresOn||(n.ext_expires_in||n.expires_in)+(new Date).getTime()/1e3,$=kv(o,c,n.access_token,this.config.auth.clientId,d,C.printScopes(),S,O,t);return this.storage.setAccessTokenCredential($,g),$}loadRefreshToken(e,n,o,c){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const d=kw(n,o,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(d,c),d}generateAuthenticationResult(e,n,o,c){let C,d="",h=[],g=null;n?.accessToken&&(d=n.accessToken.secret,h=Lo.fromString(n.accessToken.target).asArray(),g=new Date(1e3*Number(n.accessToken.expiresOn)),C=new Date(1e3*Number(n.accessToken.extendedExpiresOn)));const S=n.account;return{authority:c?c.canonicalAuthority:"",uniqueId:n.account.localAccountId,tenantId:n.account.realm,scopes:h,account:S.getAccountInfo(),idToken:n.idToken?.secret||"",idTokenClaims:o||{},accessToken:d,fromCache:!0,expiresOn:g,correlationId:e.correlationId||"",requestId:"",extExpiresOn:C,familyId:n.refreshToken?.familyId||"",tokenType:n?.accessToken?.tokenType||"",state:e.state||"",cloudGraphHostName:S.cloudGraphHostName||"",msGraphHost:S.msGraphHost||"",fromNativeBroker:!1}}}class dF extends nx{constructor(e){super(e),this.includeRedirectUri=!1}}class fF extends fE{constructor(e,n,o,c,d,h,g,C,S,O){super(e,n,o,c,d,h,C,S,O),this.apiId=g}acquireToken(e){var n=this;return(0,bt.A)(function*(){if(!e.code)throw(0,er.bD)(Wn.R3);const o=yield fe(n.initializeAuthorizationRequest.bind(n),pt.MX.StandardInteractionClientInitializeAuthorizationRequest,n.logger,n.performanceClient,e.correlationId)(e,nt.X8.Silent),c=n.initializeServerTelemetryManager(n.apiId);try{const d={...o,code:e.code},h=yield fe(n.getClientConfiguration.bind(n),pt.MX.StandardInteractionClientGetClientConfiguration,n.logger,n.performanceClient,e.correlationId)({serverTelemetryManager:c,requestAuthority:o.authority,requestAzureCloudOptions:o.azureCloudOptions,requestExtraQueryParameters:o.extraQueryParameters,account:o.account}),g=new dF(h);n.logger.verbose("Auth code client created");const C=new VN(g,n.browserStorage,d,n.logger,n.performanceClient);return yield fe(C.handleCodeResponseFromServer.bind(C),pt.MX.HandleCodeResponseFromServer,n.logger,n.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},o,!1)}catch(d){throw d instanceof ns.lR&&(d.setCorrelationId(n.correlationId),c.cacheFailedRequest(d)),d}})()}logout(){return Promise.reject((0,er.bD)(Wn.v7))}}function Vd(s){const e=s?.idTokenClaims;return e?.tfp||e?.acr?"B2C":e?.tid?"9188040d-6c67-4c5b-b112-36a304b66dad"===e?.tid?"MSA":"AAD":void 0}function Jw(s,e){try{(0,Fo.Q3)(s)}catch(n){throw e.end({success:!1},n),n}}class eM{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.
1isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new m(this.logger,this.performanceClient):Eh,this.eventHandler=new Yx(this.logger),this.browserStorage=this.isBrowserEnvironment?new DN(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,function Cn(s){const e=s.cloudDiscoveryMetadata;let n;if(e)try{n=JSON.parse(e)}catch{throw(0,qo.aD)(Qo.a_)}return{canonicalAuthority:s.authority?on(s.authority):void 0,knownAuthorities:s.knownAuthorities,cloudDiscoveryMetadata:n}}(this.config.auth),this.performanceClient):((s,e)=>new DN(this.config.auth.clientId,{cacheLocation:nt.Al.MemoryStorage,temporaryCacheLocation:nt.Al.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1},Eh,this.logger))(),this.nativeInternalStorage=new DN(this.config.auth.clientId,{cacheLocation:nt.Al.MemoryStorage,temporaryCacheLocation:nt.Al.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1},this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new uF(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static createController(e,n){return(0,bt.A)(function*(){const o=new eM(e);return yield o.initialize(n),o})()}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}initialize(e){var n=this;return(0,bt.A)(function*(){if(n.logger.trace("initialize called"),n.initialized)return void n.logger.info("initialize has already been called, exiting early.");if(!n.isBrowserEnvironment)return n.logger.info("in non-browser environment, exiting early."),n.initialized=!0,void n.eventHandler.emitEvent(br.B.INITIALIZE_END);const o=e?.correlationId||n.getRequestCorrelationId(),c=n.config.system.allowNativeBroker,d=n.performanceClient.startMeasurement(pt.MX.InitializeClientApplication,o);if(n.eventHandler.emitEvent(br.B.INITIALIZE_START),c)try{n.nativeExtensionProvider=yield Hd.createProvider(n.logger,n.config.system.nativeBrokerHandshakeTimeout,n.performanceClient)}catch(h){n.logger.verbose(h)}n.config.cache.claimsBasedCachingEnabled||(n.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),yield fe(n.browserStorage.clearTokensAndKeysWithClaims.bind(n.browserStorage),pt.MX.ClearTokensAndKeysWithClaims,n.logger,n.performanceClient,o)(n.performanceClient,o)),n.initialized=!0,n.eventHandler.emitEvent(br.B.INITIALIZE_END),d.end({allowNativeBroker:c,success:!0})})()}handleRedirectPromise(e){var n=this;return(0,bt.A)(function*(){if(n.logger.verbose("handleRedirectPromise called"),(0,Fo.uh)(n.initialized),n.isBrowserEnvironment){const o=e||"";let c=n.redirectResponse.get(o);return typeof c>"u"?(c=n.handleRedirectPromiseInternal(e),n.redirectResponse.set(o,c),n.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):n.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),c}return n.logger.verbose("handleRedirectPromise returns null, not browser environment"),null})()}handleRedirectPromiseInternal(e){var n=this;return(0,bt.A)(function*(){const o=n.getAllAccounts(),c=n.browserStorage.getCachedNativeRequest(),d=c&&Hd.isNativeAvailable(n.config,n.logger,n.nativeExtensionProvider)&&n.nativeExtensionProvider&&!e,h=d?c?.correlationId:n.browserStorage.getTemporaryCache(nt._p.CORRELATION_ID,!0)||"",g=n.performanceClient.startMeasurement(pt.MX.AcquireTokenRedirect,h);let C;if(n.eventHandler.emitEvent(br.B.HANDLE_REDIRECT_START,nt.X8.Redirect),d&&n.nativeExtensionProvider){n.logger.trace("handleRedirectPromise - acquiring token from native platform");const S=new pE(n.config,n.browserStorage,n.browserCrypto,n.logger,n.eventHandler,n.navigationClient,nt.sA.handleRedirectPromise,n.performanceClient,n.nativeExtensionProvider,c.accountId,n.nativeInternalStorage,c.correlationId);C=fe(S.handleRedirectPromise.bind(S),pt.MX.HandleNativeRedirectPromiseMeasurement,n.logger,n.performanceClient,g.event.correlationId)(n.performanceClient,g.event.correlationId)}else{n.logger.trace("handleRedirectPromise - acquiring token from web flow");const S=n.createRedirectClient(h);C=fe(S.handleRedirectPromise.bind(S),pt.MX.HandleRedirectPromiseMeasurement,n.logger,n.performanceClient,g.event.correlationId)(e,g)}return C.then(S=>(S?(o.length<n.getAllAccounts().length?(n.eventHandler.emitEvent(br.B.LOGIN_SUCCESS,nt.X8.Redirect,S),n.logger.verbose("handleRedirectResponse returned result, login success")):(n.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_SUCCESS,nt.X8.Redirect,S),n.logger.verbose("handleRedirectResponse returned result, acquire token success")),g.end({success:!0,accountType:Vd(S.account)})):g.event.errorCode?g.end({success:!1}):g.discard(),n.eventHandler.emitEvent(br.B.HANDLE_REDIRECT_END,nt.X8.Redirect),S)).catch(S=>{const O=S;throw n.eventHandler.emitEvent(o.length>0?br.B.ACQUIRE_TOKEN_FAILURE:br.B.LOGIN_FAILURE,nt.X8.Redirect,null,O),n.eventHandler.emitEvent(br.B.HANDLE_REDIRECT_END,nt.X8.Redirect),g.end({success:!1},O),S})})()}acquireTokenRedirect(e){var n=this;return(0,bt.A)(function*(){const o=n.getRequestCorrelationId(e);n.logger.verbose("acquireTokenRedirect called",o);const c=n.performanceClient.startMeasurement(pt.MX.AcquireTokenPreRedirect,o);c.add({accountType:Vd(e.account),scenarioId:e.scenarioId});const d=e.onRedirectNavigate;if(d)e.onRedirectNavigate=g=>{const C="function"==typeof d?d(g):void 0;return!1!==C?c.end({success:!0}):c.discard(),C};else{const g=n.config.auth.onRedirectNavigate;n.config.auth.onRedirectNavigate=C=>{const S="function"==typeof g?g(C):void 0;return!1!==S?c.end({success:!0}):c.discard(),S}}const h=n.getAllAccounts().length>0;try{let g;
1return(0,Fo.Af)(n.initialized,n.config),n.browserStorage.setInteractionInProgress(!0),n.eventHandler.emitEvent(h?br.B.ACQUIRE_TOKEN_START:br.B.LOGIN_START,nt.X8.Redirect,e),g=n.nativeExtensionProvider&&n.canUseNative(e)?new pE(n.config,n.browserStorage,n.browserCrypto,n.logger,n.eventHandler,n.navigationClient,nt.sA.acquireTokenRedirect,n.performanceClient,n.nativeExtensionProvider,n.getNativeAccountId(e),n.nativeInternalStorage,o).acquireTokenRedirect(e,c).catch(S=>{if(S instanceof Bd&&hE(S))return n.nativeExtensionProvider=void 0,n.createRedirectClient(o).acquireToken(e);if(S instanceof Ru)return n.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),n.createRedirectClient(o).acquireToken(e);throw n.browserStorage.setInteractionInProgress(!1),S}):n.createRedirectClient(o).acquireToken(e),yield g}catch(g){throw c.end({success:!1},g),n.eventHandler.emitEvent(h?br.B.ACQUIRE_TOKEN_FAILURE:br.B.LOGIN_FAILURE,nt.X8.Redirect,null,g),g}})()}acquireTokenPopup(e){const n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(pt.MX.AcquireTokenPopup,n);o.add({scenarioId:e.scenarioId,accountType:Vd(e.account)});try{this.logger.verbose("acquireTokenPopup called",n),Jw(this.initialized,o),this.browserStorage.setInteractionInProgress(!0)}catch(h){return Promise.reject(h)}const c=this.getAllAccounts();let d;return this.eventHandler.emitEvent(c.length>0?br.B.ACQUIRE_TOKEN_START:br.B.LOGIN_START,nt.X8.Popup,e),d=this.canUseNative(e)?this.acquireTokenNative({...e,correlationId:n},nt.sA.acquireTokenPopup).then(h=>(this.browserStorage.setInteractionInProgress(!1),o.end({success:!0,isNativeBroker:!0,accountType:Vd(h.account)}),h)).catch(h=>{if(h instanceof Bd&&hE(h))return this.nativeExtensionProvider=void 0,this.createPopupClient(n).acquireToken(e);if(h instanceof Ru)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(n).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),h}):this.createPopupClient(n).acquireToken(e),d.then(h=>(c.length<this.getAllAccounts().length?this.eventHandler.emitEvent(br.B.LOGIN_SUCCESS,nt.X8.Popup,h):this.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_SUCCESS,nt.X8.Popup,h),o.end({success:!0,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,accountType:Vd(h.account)}),h)).catch(h=>(this.eventHandler.emitEvent(c.length>0?br.B.ACQUIRE_TOKEN_FAILURE:br.B.LOGIN_FAILURE,nt.X8.Popup,null,h),o.end({success:!1},h),Promise.reject(h)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}ssoSilent(e){var n=this;return(0,bt.A)(function*(){const o=n.getRequestCorrelationId(e),c={...e,prompt:e.prompt,correlationId:o};let d;return n.ssoSilentMeasurement=n.performanceClient.startMeasurement(pt.MX.SsoSilent,o),n.ssoSilentMeasurement?.add({scenarioId:e.scenarioId,accountType:Vd(e.account)}),Jw(n.initialized,n.ssoSilentMeasurement),n.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement),n.logger.verbose("ssoSilent called",o),n.eventHandler.emitEvent(br.B.SSO_SILENT_START,nt.X8.Silent,c),d=n.canUseNative(c)?n.acquireTokenNative(c,nt.sA.ssoSilent).catch(h=>{if(h instanceof Bd&&hE(h))return n.nativeExtensionProvider=void 0,n.createSilentIframeClient(c.correlationId).acquireToken(c);throw h}):n.createSilentIframeClient(c.correlationId).acquireToken(c),d.then(h=>(n.eventHandler.emitEvent(br.B.SSO_SILENT_SUCCESS,nt.X8.Silent,h),n.ssoSilentMeasurement?.end({success:!0,isNativeBroker:h.fromNativeBroker,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,accountType:Vd(h.account)}),h)).catch(h=>{throw n.eventHandler.emitEvent(br.B.SSO_SILENT_FAILURE,nt.X8.Silent,null,h),n.ssoSilentMeasurement?.end({success:!1},h),h}).finally(()=>{document.removeEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement)})})()}acquireTokenByCode(e){var n=this;return(0,bt.A)(function*(){const o=n.getRequestCorrelationId(e);n.logger.trace("acquireTokenByCode called",o);const c=n.performanceClient.startMeasurement(pt.MX.AcquireTokenByCode,o);Jw(n.initialized,c),n.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_BY_CODE_START,nt.X8.Silent,e),c.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw(0,er.bD)(Wn.$c);if(e.code){const d=e.code;let h=n.hybridAuthCodeResponses.get(d);return h?(n.logger.verbose("Existing acquireTokenByCode request found",o),c.discard()):(n.logger.verbose("Initiating new acquireTokenByCode request",o),h=n.acquireTokenByCodeAsync({...e,correlationId:o}).then(g=>(n.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_BY_CODE_SUCCESS,nt.X8.Silent,g),n.hybridAuthCodeResponses.delete(
1d),c.end({success:!0,isNativeBroker:g.fromNativeBroker,accessTokenSize:g.accessToken.length,idTokenSize:g.idToken.length,accountType:Vd(g.account)}),g)).catch(g=>{throw n.hybridAuthCodeResponses.delete(d),n.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_BY_CODE_FAILURE,nt.X8.Silent,null,g),c.end({success:!1},g),g}),n.hybridAuthCodeResponses.set(d,h)),yield h}if(e.nativeAccountId){if(n.canUseNative(e,e.nativeAccountId)){const d=yield n.acquireTokenNative({...e,correlationId:o},nt.sA.acquireTokenByCode,e.nativeAccountId).catch(h=>{throw h instanceof Bd&&hE(h)&&(n.nativeExtensionProvider=void 0),h});return c.end({accountType:Vd(d.account),success:!0}),d}throw(0,er.bD)(Wn.gU)}throw(0,er.bD)(Wn.xp)}catch(d){throw n.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_BY_CODE_FAILURE,nt.X8.Silent,null,d),c.end({success:!1},d),d}})()}acquireTokenByCodeAsync(e){var n=this;return(0,bt.A)(function*(){return n.logger.trace("acquireTokenByCodeAsync called",e.correlationId),n.acquireTokenByCodeAsyncMeasurement=n.performanceClient.startMeasurement(pt.MX.AcquireTokenByCodeAsync,e.correlationId),n.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement),yield n.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(d=>(n.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker}),d)).catch(d=>{throw n.acquireTokenByCodeAsyncMeasurement?.end({success:!1},d),d}).finally(()=>{document.removeEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement)})})()}acquireTokenFromCache(e,n){var o=this;return(0,bt.A)(function*(){switch(o.performanceClient.addQueueMeasurement(pt.MX.AcquireTokenFromCache,e.correlationId),n){case nt.nN.Default:case nt.nN.AccessToken:case nt.nN.AccessTokenAndRefreshToken:const c=o.createSilentCacheClient(e.correlationId);return fe(c.acquireToken.bind(c),pt.MX.SilentCacheClientAcquireToken,o.logger,o.performanceClient,e.correlationId)(e);default:throw(0,Gt.SB)(nn.wb)}})()}acquireTokenByRefreshToken(e,n){var o=this;return(0,bt.A)(function*(){switch(o.performanceClient.addQueueMeasurement(pt.MX.AcquireTokenByRefreshToken,e.correlationId),n){case nt.nN.Default:case nt.nN.AccessTokenAndRefreshToken:case nt.nN.RefreshToken:case nt.nN.RefreshTokenAndNetwork:const c=o.createSilentRefreshClient(e.correlationId);return fe(c.acquireToken.bind(c),pt.MX.SilentRefreshClientAcquireToken,o.logger,o.performanceClient,e.correlationId)(e);default:throw(0,Gt.SB)(nn.wb)}})()}acquireTokenBySilentIframe(e){var n=this;return(0,bt.A)(function*(){n.performanceClient.addQueueMeasurement(pt.MX.AcquireTokenBySilentIframe,e.correlationId);const o=n.createSilentIframeClient(e.correlationId);return fe(o.acquireToken.bind(o),pt.MX.SilentIframeClientAcquireToken,n.logger,n.performanceClient,e.correlationId)(e)})()}logout(e){var n=this;return(0,bt.A)(function*(){const o=n.getRequestCorrelationId(e);return n.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",o),n.logoutRedirect({correlationId:o,...e})})()}logoutRedirect(e){var n=this;return(0,bt.A)(function*(){const o=n.getRequestCorrelationId(e);return(0,Fo.Af)(n.initialized,n.config),n.browserStorage.setInteractionInProgress(!0),n.createRedirectClient(o).logout(e)})()}logoutPopup(e){try{const n=this.getRequestCorrelationId(e);return(0,Fo.Q3)(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(n).logout(e)}catch(n){return Promise.reject(n)}}clearCache(e){var n=this;return(0,bt.A)(function*(){if(!n.isBrowserEnvironment)return void n.logger.info("in non-browser environment, returning early.");const o=n.getRequestCorrelationId(e);return n.createSilentCacheClient(o).logout(e)})()}getAllAccounts(e){const n=this.getRequestCorrelationId();return function Vx(s,e,n,o,c){return s.verbose("getAllAccounts called"),n?e.getAllAccounts(o,c):[]}(this.logger,this.browserStorage,this.isBrowserEnvironment,n,e)}getAccount(e){const n=this.getRequestCorrelationId();return function jx(s,e,n,o){if(e.trace("getAccount called"),0===Object.keys(s).length)return e.warning("getAccount: No accountFilter provided"),null;const c=n.getAccountInfoFilteredBy(s,o);return c?(e.verbose("getAccount: Account matching provided filter found, returning"),c):(e.verbose("getAccount: No matching account found, returning null"),null)}(e,this.logger,this.browserStorage,n)}getAccountByUsername(e){const n=this.getRequestCorrelationId();return function Gx(s,e,n,o){if(e.trace("getAccountByUsername called"),!s)return e.warning("getAccountByUsername: No username provided"),null;const c=n.getAccountInfoFilteredBy({username:s},o);return c?(e.verbose("getAccountByUsername: Account matching username found, returning"),e.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${s}`),c):(e.verbose("getAccountByUsername: No matching account found, returning null"),null)}(e,this.logger,this.browserStorage,n)}getAccountByHomeId(e){const n=this.getRequestCorrelationId();return function $x(s,e,n,o){if(e.trace("getAccountByHomeId called"),!s)return e.warning("getAccountByHomeId: No homeAccountId provided"),null;const c=n.getAccountInfoFilteredBy({homeAccountId:s},o);return c?(e.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),e.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${s}`),c):(e.verbose("getAccountByHomeId: No matching account found, returning null"),null)}(e,this.logger,this.browserStorage,n)}getAccountByLocalId(e){const n=this.getRequestCorrelationId();return function zx(s,e,n,o){if(e.trace("getAccountByLocalId called"),!s)return e.warning("getAccountByLocalId: No localAccountId provided"),null;const c=n.getAccountInfoFilteredBy({localAccountId:s},o);return c?(e.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),e.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${s}`),c):(e.verbose("getAccountByLocalId: No matching account found, returning null"),null)}(e,this.logger,this.browserStorage,n)}setActiveAccount(e){const n=this.getRequestCorrelationId();!function Kx(s,e,n){e.setActiveAccount(s,n)}(e,this.browserStorage,n)}getActiveAccount(){const e=this.getRequestCorrelationId();return function Wx(s,e){return s.getActiveAccount(e)}(this.browserStorage,e)}hydrateCache(e,n){var o=this;return(0,bt.A)(function*(){o.logger.verbose("hydrateCache called");const c=ts.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return o.browserStorage.setAccount(c,e.correlationId),e.fromNativeBroker?(o.logger.verbose("Response was from native broker, storing in-memory"),o.nativeInternalStorage.hydrateCache(e,n)):o.browserStorage.hydrateCache(e,n)})()}acquireTokenNative(e,n,o){var c=this;return(0,bt.A)(function*(){if(c.logger.trace("acquireTokenNative called"),!c.nativeExtensionProvider)throw(0,er.bD)(Wn.XC);return new pE(c.config,c.browserStorage,c.browserCrypto,c.logger,c.eventHandler,c.navigationClient,n,c.performanceClient,c.nativeExtensionProvider,o||c.getNativeAccountId(e),c.nativeInternalStorage,e.correlationId).acquireToken(e)})()}canUseNative(e,n){if(this.logger.trace("canUseNative called"),!Hd.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case ee._M.NONE:case ee._M.CONSENT:case ee._M.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!(!n&&!this.getNativeAccountId(e)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))}getNativeAccountId(e){const n=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return n&&n.nativeAccountId||""}createPopupClient(e){return new eF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new nF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new cF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,nt.sA.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new cx(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new lF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new fF(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,nt.sA.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e,n){return this.eventHandler.addEventCallback(e,n)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return(0,Fo.EZ)(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}handleAccountCacheChange(e){try{e.key?.includes(ee.Gd.ACTIVE_ACCOUNT_FILTERS)&&this.eventHandler.emitEvent(br.B.ACTIVE_ACCOUNT_CHANGED);const n=e.newValue||e.oldValue;if(!n)return;const o=JSON.parse(n);if("object"!=typeof o||!ts.isAccountEntity(o))return;const d=Bv.toObject(new ts,o).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(br.B.ACCOUNT_ADDED,void 0,d)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(br.B.ACCOUNT_REMOVED,void 0,d))}catch{return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}
1initializeWrapperLibrary(e,n){this.browserStorage.setWrapperMetadata(e,n)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?(0,i.Oy)():ee.YM.EMPTY_STRING}loginRedirect(e){var n=this;return(0,bt.A)(function*(){const o=n.getRequestCorrelationId(e);return n.logger.verbose("loginRedirect called",o),n.acquireTokenRedirect({correlationId:o,...e||nt.uq})})()}loginPopup(e){const n=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup({correlationId:n,...e||nt.uq})}acquireTokenSilent(e){var n=this;return(0,bt.A)(function*(){const o=n.getRequestCorrelationId(e),c=n.performanceClient.startMeasurement(pt.MX.AcquireTokenSilent,o);c.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),Jw(n.initialized,c),n.logger.verbose("acquireTokenSilent called",o);const d=e.account||n.getActiveAccount();if(!d)throw(0,er.bD)(Wn.rR);c.add({accountType:Vd(d)});const g=JSON.stringify({clientId:n.config.auth.clientId,authority:e.authority||ee.YM.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:d.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions}),C=n.activeSilentTokenRequests.get(g);if(typeof C>"u"){n.logger.verbose("acquireTokenSilent called for the first time, storing active request",o);const S=fe(n.acquireTokenSilentAsync.bind(n),pt.MX.AcquireTokenSilentAsync,n.logger,n.performanceClient,o)({...e,correlationId:o},d).then(O=>(n.activeSilentTokenRequests.delete(g),c.end({success:!0,fromCache:O.fromCache,isNativeBroker:O.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,accessTokenSize:O.accessToken.length,idTokenSize:O.idToken.length}),O)).catch(O=>{throw n.activeSilentTokenRequests.delete(g),c.end({success:!1},O),O});return n.activeSilentTokenRequests.set(g,S),{...yield S,state:e.state}}return n.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",o),c.discard(),{...yield C,state:e.state}})()}acquireTokenSilentAsync(e,n){var o=this;return(0,bt.A)(function*(){const c=()=>o.trackPageVisibility(e.correlationId);o.performanceClient.addQueueMeasurement(pt.MX.AcquireTokenSilentAsync,e.correlationId),o.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_START,nt.X8.Silent,e),e.correlationId&&o.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",c);const d=yield fe(VL,pt.MX.InitializeSilentRequest,o.logger,o.performanceClient,e.correlationId)(e,n,o.config,o.performanceClient,o.logger),h=e.cacheLookupPolicy||nt.nN.Default;return o.acquireTokenSilentNoIframe(d,h).catch(function(){var C=(0,bt.A)(function*(S){if(function hF(s,e){const c=!(s instanceof Ru&&s.subError!==Hc)&&(s.errorCode===nt.Q1.INVALID_GRANT_ERROR||s.errorCode===nn.wb)||s.errorCode===Vt||s.errorCode===Zr,d=nt.JE.includes(e);return c&&d}(S,h)){if(o.activeIframeRequest){if(h!==nt.nN.Skip){const[$,ae]=o.activeIframeRequest;o.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${ae}`,d.correlationId);const q=o.performanceClient.startMeasurement(pt.MX.AwaitConcurrentIframe,d.correlationId);q.add({awaitIframeCorrelationId:ae});const ie=yield $;if(q.end({success:ie}),ie)return o.logger.verbose(`Parallel iframe request with correlationId: ${ae} succeeded. Retrying cache and/or RT redemption`,d.correlationId),o.acquireTokenSilentNoIframe(d,h);throw o.logger.info(`Iframe request with correlationId: ${ae} failed. Interaction is required.`),S}return o.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",d.correlationId),fe(o.acquireTokenBySilentIframe.bind(o),pt.MX.AcquireTokenBySilentIframe,o.logger,o.performanceClient,d.correlationId)(d)}{let $;return o.activeIframeRequest=[new Promise(ae=>{$=ae}),d.correlationId],o.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",d.correlationId),fe(o.acquireTokenBySilentIframe.bind(o),pt.MX.AcquireTokenBySilentIframe,o.logger,o.performanceClient,d.correlationId)(d).then(ae=>($(!0),ae)).catch(ae=>{throw $(!1),ae}).finally(()=>{o.activeIframeRequest=void 0})}}throw S});return function(S){return C.apply(this,arguments)}}()).then(C=>(o.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_SUCCESS,nt.X8.Silent,C),e.correlationId&&o.performanceClient.addFields({fromCache:C.fromCache,isNativeBroker:C.fromN
1ativeBroker},e.correlationId),C)).catch(C=>{throw o.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_FAILURE,nt.X8.Silent,null,C),C}).finally(()=>{document.removeEventListener("visibilitychange",c)})})()}acquireTokenSilentNoIframe(e,n){var o=this;return(0,bt.A)(function*(){return Hd.isNativeAvailable(o.config,o.logger,o.nativeExtensionProvider,e.authenticationScheme)&&e.account.nativeAccountId?(o.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o.acquireTokenNative(e,nt.sA.acquireTokenSilent_silentFlow).catch(function(){var c=(0,bt.A)(function*(d){throw d instanceof Bd&&hE(d)?(o.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),o.nativeExtensionProvider=void 0,(0,Gt.SB)(nn.wb)):d});return function(d){return c.apply(this,arguments)}}())):(o.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),fe(o.acquireTokenFromCache.bind(o),pt.MX.AcquireTokenFromCache,o.logger,o.performanceClient,e.correlationId)(e,n).catch(c=>{if(n===nt.nN.AccessToken)throw c;return o.eventHandler.emitEvent(br.B.ACQUIRE_TOKEN_NETWORK_START,nt.X8.Silent,e),fe(o.acquireTokenByRefreshToken.bind(o),pt.MX.AcquireTokenByRefreshToken,o.logger,o.performanceClient,e.correlationId)(e,n)}))})()}}function $N(){return($N=(0,bt.A)(function*(s,e){const n=new Yw(s);return yield n.initialize(),eM.createController(n,e)})).apply(this,arguments)}class jv{static createPublicClientApplication(e){return(0,bt.A)(function*(){const n=yield function pF(s,e){return $N.apply(this,arguments)}(e);return new jv(e,n)})()}constructor(e,n){this.controller=n||new eM(new Yw(e))}initialize(e){var n=this;return(0,bt.A)(function*(){return n.controller.initialize(e)})()}acquireTokenPopup(e){var n=this;return(0,bt.A)(function*(){return n.controller.acquireTokenPopup(e)})()}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,n){return this.controller.addEventCallback(e,n)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,n){return this.controller.initializeWrapperLibrary(e,n)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}hydrateCache(e,n){var o=this;return(0,bt.A)(function*(){return o.controller.hydrateCache(e,n)})()}clearCache(e){return this.controller.clearCache(e)}}var mF=D(60),YN=D(5779),vF=D(4799),_F=D(8833),fx=D(9998);const yF=[{path:"login",redirectTo:"",pathMatch:"full"},{path:"access-request",loadChildren:()=>D.e(218).then(D.bind(D,7837)).then(s=>s.AccessRequestModule)},{path:"",loadChildren:()=>D.e(514).then(D.bind(D,8514)).then(s=>
1s.MainLayoutModule),canActivate:[Ia.VA]}],CF=globalThis.window!==globalThis.window.parent&&!globalThis.window.opener;let EF=(()=>{class s{static \u0275fac=function(o){return new(o||s)};static \u0275mod=u.$C({type:s});static \u0275inj=u.G2t({imports:[Ov.iI.forRoot(yF,{initialNavigation:CF?"disabled":"enabledNonBlocking"}),Ov.iI]})}return s})();var TF=D(1413),IF=D(5964),SF=D(6977),XN=D(1125);let hx=(()=>{class s{userService;appInsights;constructor(n){this.userService=n,this.appInsights=new vS({config:{instrumentationKey:jn.c.instrumentationKey,enableAutoRouteTracking:!0,extensions:[],extensionConfig:{}}}),this.appInsights.loadAppInsights(),this.appInsights.addTelemetryInitializer(o=>{const c=this.userService.getUser();o.tags&&(o.tags["ai.cloud.role"]="Frontend"),o.data=o.data||{},o.data.Source="CustomerPanel.Front",o.data.Environment=jn.c.envName||"unknown",o.data.ScreenPath=window.location.pathname,o.data.ScreenResolution=`${window.screen.width}x${window.screen.height}`,o.data.UserAgent=navigator.userAgent,o.data.Language=navigator.language,o.data.TimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,o.data.UserLogged=c?.userName??"anonymous",o.data.IsObserverMode=c?.isObserverMode??null})}logPageView(n,o){this.appInsights.trackPageView({name:n,uri:o})}logEvent(n,o){this.appInsights.trackEvent({name:n},o)}logException(n,o){this.appInsights.trackException({exception:n,severityLevel:o})}static \u0275fac=function(o){return new(o||s)(u.KVO(XN.D))};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),tM=(()=>{class s{currentTenantKey="msal_current_tenant";tenantAttemptKey="msal_tenant_attempt";env=jn.c;constructor(){}getCurrentTenant(){return"tenant2"===localStorage.getItem(this.currentTenantKey)?"tenant2":"tenant1"}setCurrentTenant(n){localStorage.setItem(this.currentTenantKey,n)}shouldTryFallback(){return!!this.env.multiTenant?.enabled&&"tenant2"!==localStorage.getItem(this.tenantAttemptKey)}markFallbackAttempt(){localStorage.setItem(this.tenantAttemptKey,"tenant2")}resetTenantAttempt(){localStorage.removeItem(this.tenantAttemptKey)}getTenantConfig(n){return this.env.multiTenant?.enabled?"tenant1"===n?this.env.multiTenant.tenant1:this.env.multiTenant.tenant2:null}createMsalInstance(n){const o=this.getTenantConfig(n);return new jv(o?{auth:{clientId:o.clientId,authority:o.authority,redirectUri:jn.c.msalConfig.auth.redirectUri,postLogoutRedirectUri:jn.c.msalConfig.auth.postLogoutRedirectUri,navigateToLoginRequestUrl:!1,knownAuthorities:[o.knownAuthority],protocolMode:"OIDC"},cache:{cacheLocation:jn.c.msalConfig.cache.cacheLocation,storeAuthStateInCookie:jn.c.msalConfig.cache.storeAuthStateInCookie},system:{loggerOptions:{piiLoggingEnabled:!1,logLevel:0},allowNativeBroker:!1}}:{auth:{clientId:jn.c.msalConfig.auth.clientId,authority:jn.c.msalConfig.auth.authority,redirectUri:jn.c.msalConfig.auth.redirectUri,postLogoutRedirectUri:jn.c.msalConfig.auth.postLogoutRedirectUri,navigateToLoginRequestUrl:!1,knownAuthorities:["gruposotreqexthml.ciamlogin.com"],protocolMode:"OIDC"},cache:{cacheLocation:jn.c.msalConfig.cache.cacheLocation,storeAuthStateInCookie:jn.c.msalConfig.cache.storeAuthStateInCookie},system:{loggerOptions:{piiLoggingEnabled:!1,logLevel:0},allowNativeBroker:!1}})}switchToFallbackTenant(){("dev"===jn.c.env||"hml"===jn.c.env)&&console.log("ExternalTenant authentication failed. Switching to WorkforceTenant..."),this.setCurrentTenant("tenant2"),this.markFallbackAttempt(),this.clearMsalCache(),window.location.reload()}clearMsalCache(){try{Object.keys(localStorage).forEach(n=>{(n.includes("msal")||n.includes("cc94d7bb-8ae3-4ab3-81ca-171951822d62")||n.includes("59344b2b-cd62-4020-a301-7c4a0738edef"))&&n!==this.currentTenantKey&&n!==this.tenantAttemptKey&&localStorage.removeItem(n)}),("dev"===jn.c.env||"hml"===jn.c.env)&&console.log("MSAL cache cleared for tenant switch")}catch(n){("dev"===jn.c.env||"hml"===jn.c.env)&&console.error("Error clearing MSAL cache:",n)}}isTenantError(n){if(!n)return!1;const o=n.message||n.errorMessage||"",c=n.errorCode||"";return["AADSTS50020","AADSTS50034","AADSTS500208","AADSTS700016","AADSTS65001","AADSTS90002","invali
1d_tenant","tenant_not_found"].some(h=>o.includes(h)||c.includes(h))}handleAuthError(n){var o=this;return(0,bt.A)(function*(){("dev"===jn.c.env||"hml"===jn.c.env)&&console.error("Authentication error:",n);const c=n?.message||n?.errorMessage||"";if("access_denied"===(n?.errorCode||"")||c.includes("access_denied")||"ServerError"===n?.name&&"access_denied"===c)("dev"===jn.c.env||"hml"===jn.c.env)&&console.log("User cancelled the authentication flow (multi-tenant)");else if(o.isTenantError(n)){if(o.shouldTryFallback())return("dev"===jn.c.env||"hml"===jn.c.env)&&console.log("Tenant error detected. User not found in ExternalTenant. Attempting WorkforceTenant..."),void o.switchToFallbackTenant();("dev"===jn.c.env||"hml"===jn.c.env)&&console.error("Authentication failed on both ExternalTenant and WorkforceTenant"),o.resetTenantAttempt(),o.setCurrentTenant("tenant1")}})()}static \u0275fac=function(o){return new(o||s)};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var px=D(7163);function bF(s,e){1&s&&(u.j41(0,"div",1),u.nrm(1,"div",2),u.k0s())}let AF=(()=>{class s{loader;constructor(n){this.loader=n}static \u0275fac=function(o){return new(o||s)(u.rXU(px.Z))};static \u0275cmp=u.VBU({type:s,selectors:[["app-global-loader"]],decls:2,vars:3,consts:[["class","global-loader-overlay","aria-label","Carregando","role","status",4,"ngIf"],["aria-label","Carregando","role","status",1,"global-loader-overlay"],[1,"spinner"]],template:function(o,c){1&o&&(u.DNE(0,bF,2,0,"div",0),u.nI1(1,"async")),2&o&&u.Y8G("ngIf",u.bMT(1,1,c.loader.loading$))},dependencies:[bu.bT,bu.Jj],styles:[".global-loader-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:9999}.spinner[_ngcontent-%COMP%]{width:48px;height:48px;border:5px solid #333333;border-top-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"]})}return s})(),DF=(()=>{class s{msalGuardConfig;authService;msalAuthService;msalBroadcastService;titleService;primeNgConfig;appInsights;multiTenantAuthService;userService;title="CustomerPanel";_destroying$=new TF.B;constructor(n,o,c,d,h,g,C,S,O){this.msalGuardConfig=n,this.authService=o,this.msalAuthService=c,this.msalBroadcastService=d,this.titleService=h,this.primeNgConfig=g,this.appInsights=C,this.multiTenantAuthService=S,this.userService=O,this.setEnvInfoOnTitle()}ngOnInit(){var o,n=this;window.location.search.includes("?logout=true")&&(console.log("Logout"),this.initialize(),this.logout()),this.authService.handleRedirectObservable().subscribe({next:o=>{if(o){const c=localStorage.getItem("msal_current_tenant")||"tenant1";("dev"===jn.c.env||"hml"===jn.c.env)&&console.log("\u2705 Authentication successful with "+("tenant2"===c?"WorkforceTenant":"ExternalTenant")),this.multiTenantAuthService.resetTenantAttempt(),this.checkAndSetActiveAccount();const h=window.location.origin+window.location.pathname;window.location.search.includes("tenant=")&&window.history.replaceState({},document.title,h),"tenant2"===c&&this.userService.getUserInfo().subscribe(()=>{console.debug("\u2705 Sess\xe3o SSO estabelecida. Redirecionando..."),window.location.href=jn.c.oldClientPanel.url})}},error:(o=(0,bt.A)(function*(c){const d=c?.message||c?.errorMessage||"";if("access_denied"===(c?.errorCode||"")||d.includes("access_denied")||"ServerError"===c?.name&&"access_denied"===d){("dev"===jn.c.env||"hml"===jn.c.env)&&console.log("User cancelled the authentication flow");const S=window.location.origin+window.location.pathname;return window.history.replaceState({},document.title,S),void(0===n.authService.instance.getAllAccounts().length&&setTimeout(()=>{n.authService.loginRedirect({scopes:jn.c.protectedResources.bffApi.scopes})},100))}("dev"===jn.c.env||"hml"===jn.c.env)&&console.error("Erro ao processar redirect:",c),jn.c.multiTenant?.enabled?yield n.multiTenantAuthService.handleAuthError(c):c.message?.includes("AADSTS500208")&&n.clearMsalCache()}),function(d){return o.apply(this,arguments)})}),this.msalBroadcastService.inProgress$.pipe((0,IF.p)(o=>o===nt.T$.None),(0,SF.Q)(this._destroying$)).subscribe(()=>{this.checkAndSetActiveAccount()}),this.primeNgConfig.setTranslation({dayNames:["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"],dayNamesMin:["Dom.","Seg.","Ter.","Qua.","Qui.","Sex.","S\xe1b."],monthNames:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dateFormat:"dd/mm/yy",today:"Hoje",weekHeader:"Sem"}),this.setGoogleMapsApiKey(),this.appInsights.logPageView("Home Page")}
1checkAndSetActiveAccount(){if(!this.authService.instance.getActiveAccount()&&this.authService.instance.getAllAccounts().length>0){let o=this.authService.instance.getAllAccounts();this.authService.instance.setActiveAccount(o[0])}}clearMsalCache(){try{this.authService.instance.clearCache(),localStorage.removeItem("msal.account.keys"),localStorage.removeItem("msal.token.keys.59344b2b-cd62-4020-a301-7c4a0738edef"),Object.keys(localStorage).forEach(n=>{(n.includes("msal")||n.includes("cc94d7bb-8ae3-4ab3-81ca-171951822d62"))&&localStorage.removeItem(n)})}catch(n){("dev"===jn.c.env||"hml"===jn.c.env)&&console.error("Erro ao limpar cache MSAL:",n)}}initialize(){this.authService.initialize()}logout(){this.msalAuthService.logout()}ngOnDestroy(){this._destroying$.next(void 0),this._destroying$.complete()}setEnvInfoOnTitle(){const n=this.titleService.getTitle(),o=this.getEnvironment();o&&o.length>0&&"prd"!=o&&this.titleService.setTitle("["+o+"] "+n)}setGoogleMapsApiKey(){("dev"===jn.c.env||"hml"===jn.c.env)&&console.log("setGoogleMapsApiKey");const n=jn.c.googleApiKey;if(n&&n.length>0){("dev"===jn.c.env||"hml"===jn.c.env)&&console.log("googleApiKey",n);const o=document.createElement("script");o.src=`https://maps.googleapis.com/maps/api/js?key=${n}`,o.async=!0,o.defer=!0,document.body.appendChild(o)}}getEnvironment(){return jn.c.env}static \u0275fac=function(o){return new(o||s)(u.rXU(Ia.LR),u.rXU(Ia.dl),u.rXU(VS.h),u.rXU(Ia.qb),u.rXU(p.hE),u.rXU(YN.r1),u.rXU(hx),u.rXU(tM),u.rXU(XN.D))};static \u0275cmp=u.VBU({type:s,selectors:[["app-root"]],decls:3,vars:1,consts:[[3,"preventOpenDuplicates"]],template:function(o,c){1&o&&u.nrm(0,"app-global-loader")(1,"router-outlet")(2,"p-toast",0),2&o&&(u.R7$(2),u.Y8G("preventOpenDuplicates",!0))},dependencies:[Ov.n3,AF,fx.y8],encapsulation:2})}return s})();var o0=D(8810),gx=D(9437),wF=D(980);let MF=(()=>{class s{loaderService;appInsights;userService;activeLoaderCount=0;loaderVisibleStartedAt=null;loaderBurstsRequestCount=0;loaderBurstHadError=!1;constructor(n,o,c){this.loaderService=n,this.appInsights=o,this.userService=c}intercept(n,o){const c="loader",d=n.headers.get(c),h=null!==d&&/^(1|true|on)$/i.test(d),g=h?n.clone({headers:n.headers.delete(c)}):n.clone();return h&&(this.onLoaderRequestsStart(),this.showLoader()),o.handle(g).pipe((0,gx.W)(C=>(h&&(this.loaderBurstHadError=!0),(0,o0.$)(()=>C))),(0,wF.j)(()=>{h&&(this.onLoaderRequestsEnd(),this.hideLoader())}))}onLoaderRequestsStart(){0===this.activeLoaderCount&&(this.loaderVisibleStartedAt=performance.now(),this.loaderBurstsRequestCount=0,this.loaderBurstHadError=!1),this.activeLoaderCount++,this.loaderBurstsRequestCount++}onLoaderRequestsEnd(){if(this.activeLoaderCount>0&&this.activeLoaderCount--,0===this.activeLoaderCount&&null!==this.loaderVisibleStartedAt){const n=Math.round(performance.now()-this.loaderVisibleStartedAt),o=this.userService.getUser(),c={durationMs:n,requests:this.loaderBurstsRequestCount,path:window.location.pathname||"",hadError:this.loaderBurstHadError,userLogged:o?.userName??"anonymous",isObserverMode:o?.isObserverMode??null};this.appInsights.logEvent("UserPageLoad",c),this.loaderVisibleStartedAt=null,this.loaderBurstsRequestCount=0,this.loaderBurstHadError=!1}}showLoader(){this.loaderService.showLoader()}hideLoader(){this.loaderService.hideLoader()}static \u0275fac=function(o){return new(o||s)(u.KVO(px.Z),u.KVO(hx),u.KVO(XN.D))};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac})}return s})(),OF=(()=>{class s{constructor(n){if(n)throw new Error("CoreModule has already been loaded. You should only import Core modules in the AppModule only.")}static \u0275fac=function(o){return new(o||s)(u.KVO(s,12))};static \u0275mod=u.$C({type:s});static \u0275inj=u.G2t({providers:[{provide:yc.a7,useClass:MF,multi:!0}],imports:[bu.MD,yc.q1]})}return s})();var RF=D(6516);let NF=(()=>{class s{constructor(){}intercept(n,o){return o.handle(n)}static \u0275fac=function(o){return new(o||s)};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac})}return s})();var mx=D(7673),vx=D(983),_x=D(5788);let PF=(()=>{class s{toaster;authService;UNDEFINED_STATUS_CODE=0;constructor(n,o){this.toaster=n,this.authService=o,this.setCallHomePageChecker()}handlers={[yc.kG.Unauthorized]:()=>(this.authService.logout(),this.callHomePage=!0,(0,mx.of)(vx.w)),[yc.kG.Forbidden]:()=>(this.toaster.error("Voc\xea n\xe3o possui permiss\xe3o para realizar esta a\xe7\xe3o."),(0,o0.$)(()=>new Error("Forbidden"))),[yc.kG.InternalServerError]:()=>(this.toaster.error("Erro ao processar a requisi\xe7\xe3o"),console.error("Ocorreu um erro interno."),(0,mx.of)(vx.w))};callHomePage=!1;setCallHomePageChecker(){setTimeout(()=>{this.callHomePage&&(this.callHomePage=!1),this.setCallHomePageChecker()},500)}intercept(n,o){return"true"===n.headers.get("X-Skip-Default-Error-Interceptor")?o.handle(n):o.handle(n).pipe((0,gx.W)(c=>this.handleErrors(c)))}handleErrors(n){if(n.status===this.UNDEFINED_STATUS_CODE&&n.message.includes("Auth/"))return console.error(`Erro na autentica\xe7\xe3o de usu\xe1rio: ${n.message}.`),(0,o0.$)(()=>n.error);if(n.error?.errorHandled)return(0,o0.$)(()=>n.error);const o=this.handlers[n.status];return o?o():(0,o0.$)(()=>n.error)}static \u0275fac=function(o){return new(o||s)(u.KVO(_x.W9),u.KVO(VS.h))};static \u0275prov=u.jDH({token:s,factory:s.\u0275fac})}return s})();var kF=D(9565);let xF=(()=>{class s{static \u0275fac=function(o){return new(o||s)};static \u0275mod=u.$C({type:s});static \u0275inj=u.G2t({imports:[bu.MD]})}return s})(),LF=(()=>{class s{static \u0275fac=function(o){return new(o||s)};static \u0275mod=u.$C({type:s});static \u0275inj=u.G2t({imports:[bu.MD,xF]})}return s})();const FF=[vF.F,fx.MB];function UF(s){return()=>s.initialize().toPromise()}function BF(){if(jn.c.multiTenant?.enabled){const e=new tM,n=e.getCurrentTenant();return console.log(`Initializing MSAL with ${"tenant1"===n?"ExternalTenant":"WorkforceTenant"} (${n})`),e.createMsalInstance(n)}return new jv({auth:{clientId:jn.c.msalConfig.auth.clientId,authority:jn.c.msalConfig.auth.authority,redirectUri:jn.c.msalConfig.auth.redirectUri,postLogoutRedirectUri:jn.c.msalConfig.auth.postLogoutRedirectUri,navigateToLoginRequestUrl:!1,knownAuthorities:["gruposotreqexthml.ciamlogin.com"],protocolMode:"OIDC"}
1,cache:{cacheLocation:jn.c.msalConfig.cache.cacheLocation,storeAuthStateInCookie:jn.c.msalConfig.cache.storeAuthStateInCookie},system:{loggerOptions:{piiLoggingEnabled:!1,logLevel:0},allowNativeBroker:!1}})}function HF(){const s=jn.c;let e=jn.c.protectedResources.bffApi.scopes;if(s.multiTenant?.enabled){const o=(new tM).getCurrentTenant(),c=s.multiTenant[o];c?.scopes&&(e=c.scopes,console.log(`Using ${o} scopes:`,e))}return{interactionType:nt.X8.Redirect,authRequest:{scopes:e,extraQueryParameters:{claims:JSON.stringify({id_token:{"CPF e CNPJ":null,name:null,email:null},access_token:{"CPF e CNPJ":null,name:null,email:null}})}}}}function VF(){const s=jn.c;let e=jn.c.protectedResources.bffApi.scopes;if(s.multiTenant?.enabled){const c=(new tM).getCurrentTenant(),d=s.multiTenant[c];d?.scopes&&(e=d.scopes)}const n=new Map;return n.set(jn.c.protectedResources.bffApi.endpoint,e),{interactionType:nt.X8.Redirect,protectedResourceMap:n}}let jF=(()=>{class s{constructor(){(0,bu.EO)(xD)}static \u0275fac=function(o){return new(o||s)};static \u0275mod=u.$C({type:s,bootstrap:[DF,Ia.vI]});static \u0275inj=u.G2t({providers:[YN.bg,YN.td,p.hE,_x.W9,kF.o,bu.vh,eN.h,tN.L,Mw,RF.k,Q1.H,Ow,{provide:Ia.Cn,useFactory:BF},{provide:Ia.LR,useFactory:HF},{provide:Ia.r2,useFactory:VF},{provide:u.hnV,useFactory:UF,deps:[Ia.dl],multi:!0},Ia.dl,Ia.VA,Ia.qb,{provide:yc.a7,useClass:PF,multi:!0},{provide:yc.a7,useClass:jS,multi:!0},{provide:yc.a7,useClass:Ia.vC,multi:!0},{provide:yc.a7,useClass:NF,multi:!0},{provide:u.xe9,useValue:"pt-BR"}],imports:[p.Bb,Pk,_F.kr,EF,yc.q1,mF.dX,OF,LF,FF]})}return s})();jn.c.production&&(0,u.SmG)(),new vS({config:{instrumentationKey:jn.c.instrumentationKey}}).loadAppInsights(),p.sG().bootstrapModule(jF).catch(s=>console.error(s))},4412:(Lt,be,D)=>{D.d(be,{t:()=>u});var p=D(1413);class u extends p.B{constructor(Y){super(),this._value=Y}get value(){return this.getValue()}_subscribe(Y){const b=super._subscribe(Y);return!b.closed&&Y.next(this._value),b}getValue(){const{hasError:Y,thrownError:b,_value:x}=this;if(Y)throw b;return this._throwIfClosed(),x}next(Y){super.next(this._value=Y)}}},1985:(Lt,be,D)=>{D.d(be,{c:()=>L});var p=D(7707),u=D(8359),v=D(3494),Y=D(1203),b=D(1026),x=D(8071),R=D(9786);let L=(()=>{class Ie{constructor(Se){Se&&(this._subscribe=Se)}lift(Se){const et=new Ie;return et.source=this,et.operator=Se,et}subscribe(Se,et,lt){const je=function Q(Ie){return Ie&&Ie instanceof p.vU||function z(Ie){return Ie&&(0,x.T)(Ie.next)&&(0,x.T)(Ie.error)&&(0,x.T)(Ie.complete)}(Ie)&&(0,u.Uv)(Ie)}(Se)?Se:new p.Ms(Se,et,lt);return(0,R.Y)(()=>{const{operator:wt,source:Zt}=this;je.add(wt?wt.call(je,Zt):Zt?this._subscribe(je):this._trySubscribe(je))}),je}_trySubscribe(Se){try{return this._subscribe(Se)}catch(et){Se.error(et)}}forEach(Se,et){return new(et=j(et))((lt,je)=>{const wt=new p.Ms({next:Zt=>{try{Se(Zt)}catch(En){je(En),wt.unsubscribe()}},error:je,complete:lt});this.subscribe(wt)})}_subscribe(Se){var et;return null===(et=this.source)||void 0===et?void 0:et.subscribe(Se)}[v.s](){return this}pipe(...Se){return(0,Y.m)(Se)(this)}toPromise(Se){return new(Se=j(Se))((et,lt)=>{let je;this.subscribe(wt=>je=wt,wt=>lt(wt),()=>et(je))})}}return Ie.create=Re=>new Ie(Re),Ie})();function j(Ie){var Re;return null!==(Re=Ie??b.$.Promise)&&void 0!==Re?Re:Promise}},2771:(Lt,be,D)=>{D.d(be,{m:()=>v});var p=D(1413),u=D(6129);class v extends p.B{constructor(b=1/0,x=1/0,R=u.U){super(),this._bufferSize=b,this._windowTime=x,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=x===1/0,this._bufferSize=Math.max(1,b),this._windowTime=Math.max(1,x)}next(b){const{isStopped:x,_buffer:R,_infiniteTimeWindow:L,_timestampProvider:j,_windowTime:z}=this;x||(R.push(b),!L&&R.push(j.now()+z)),this._trimBuffer(),super.next(b)}_subscribe(b){this._throwIfClosed(),this._trimBuffer();const x=this._innerSubscribe(b),{_infiniteTimeWindow:R,_buffer:L}=this,j=L.slice();for(let z=0;z<j.length&&!b.closed;z+=R?1:2)b.next(j[z]);return this._checkFinalizedStatuses(b),x}_trimBuffer(){const{_bufferSize:b,_timestampProvider:x,_buffer:R,_infiniteTimeWindow:L}=this,j=(L?1:2)*b;if(b<1/0&&j<R.length&&R.splice(0,R.length-j),!L){const z=x.now();let Q=0;for(let Ie=1;Ie<R.length&&R[Ie]<=z;Ie+=2)Q=Ie;Q&&R.splice(0,Q+1)}}}},1413:(Lt,be,D)=>{D.d(be,{B:()=>R});var p=D(1985),u=D(8359);const Y=(0,D(1853).L)(j=>function(){j(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var b=D(7908),x=D(9786);let R=(()=>{class j extends p.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const Ie=new L(this,this);return Ie.operator=Q,Ie}_throwIfClosed(){if(this.closed)throw new Y}next(Q){(0,x.Y)(()=>
vendor: 4,142 bytes, line 1
1{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ie of this.currentObservers)Ie.next(Q)}})}error(Q){(0,x.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:Ie}=this;for(;Ie.length;)Ie.shift().error(Q)}})}complete(){(0,x.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:Ie,isStopped:Re,observers:Se}=this;return Ie||Re?u.Kn:(this.currentObservers=null,Se.push(Q),new u.yU(()=>{this.currentObservers=null,(0,b.o)(Se,Q)}))}_checkFinalizedStatuses(Q){const{hasError:Ie,thrownError:Re,isStopped:Se}=this;Ie?Q.error(Re):Se&&Q.complete()}asObservable(){const Q=new p.c;return Q.source=this,Q}}return j.create=(z,Q)=>new L(z,Q),j})();class L extends R{constructor(z,Q){super(),this.destination=z,this.source=Q}next(z){var Q,Ie;null===(Ie=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===Ie||Ie.call(Q,z)}error(z){var Q,Ie;null===(Ie=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===Ie||Ie.call(Q,z)}complete(){var z,Q;null===(Q=null===(z=this.destination)||void 0===z?void 0:z.complete)||void 0===Q||Q.call(z)}_subscribe(z){var Q,Ie;return null!==(Ie=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(z))&&void 0!==Ie?Ie:u.Kn}}},7707:(Lt,be,D)=>{D.d(be,{Ms:()=>lt,vU:()=>Ie});var p=D(8071),u=D(8359),v=D(1026),Y=D(5334),b=D(5343);const x=j("C",void 0,void 0);function j(Le,ut,Ce){return{kind:Le,value:ut,error:Ce}}var z=D(9270),Q=D(9786);class Ie extends u.yU{constructor(ut){super(),this.isStopped=!1,ut?(this.destination=ut,(0,u.Uv)(ut)&&ut.add(this)):this.destination=En}static create(ut,Ce,me){return new lt(ut,Ce,me)}next(ut){this.isStopped?Zt(function L(Le){return j("N",Le,void 0)}(ut),this):this._next(ut)}error(ut){this.isStopped?Zt(function R(Le){return j("E",void 0,Le)}(ut),this):(this.isStopped=!0,this._error(ut))}complete(){this.isStopped?Zt(x,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ut){this.destination.next(ut)}_error(ut){try{this.destination.error(ut)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Re=Function.prototype.bind;function Se(Le,ut){return Re.call(Le,ut)}class et{constructor(ut){this.partialObserver=ut}next(ut){const{partialObserver:Ce}=this;if(Ce.next)try{Ce.next(ut)}catch(me){je(me)}}error(ut){const{partialObserver:Ce}=this;if(Ce.error)try{Ce.error(ut)}catch(me){je(me)}else je(ut)}complete(){const{partialObserver:ut}=this;if(ut.complete)try{ut.complete()}catch(Ce){je(Ce)}}}class lt extends Ie{constructor(ut,Ce,me){let ht;if(super(),(0,p.T)(ut)||!ut)ht={next:ut??void 0,error:Ce??void 0,complete:me??void 0};else{let ge;this&&v.$.useDeprecatedNextContext?(ge=Object.create(ut),ge.unsubscribe=()=>this.unsubscribe(),ht={next:ut.next&&Se(ut.next,ge),error:ut.error&&Se(ut.error,ge),complete:ut.complete&&Se(ut.complete,ge)}):ht=ut}this.destination=new et(ht)}}function je(Le){v.$.useDeprecatedSynchronousErrorHandling?(0,Q.l)(Le):(0,Y.m)(Le)}function Zt(Le,ut){const{onStoppedNotification:Ce}=v.$;Ce&&z.f.setTimeout(()=>Ce(Le,ut))}const En={closed:!0,next:b.l,error:function wt(Le){throw Le},complete:b.l}},8359:(Lt,be,D)=>{D.d(be,{Kn:()=>x,yU:()=>b,Uv:()=>R});var p=D(8071);const v=(0,D(1853).L)(j=>function(Q){j(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((Ie,Re)=>`${Re+1}) ${Ie.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var Y=D(7908);class b{constructor(z){this.initialTeardown=z,this.closed=!1,this._parentage=null,this._finalizers=null}
1unsubscribe(){let z;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const Se of Q)Se.remove(this);else Q.remove(this);const{initialTeardown:Ie}=this;if((0,p.T)(Ie))try{Ie()}catch(Se){z=Se instanceof v?Se.errors:[Se]}const{_finalizers:Re}=this;if(Re){this._finalizers=null;for(const Se of Re)try{L(Se)}catch(et){z=z??[],et instanceof v?z=[...z,...et.errors]:z.push(et)}}if(z)throw new v(z)}}add(z){var Q;if(z&&z!==this)if(this.closed)L(z);else{if(z instanceof b){if(z.closed||z._hasParent(this))return;z._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(z)}}_hasParent(z){const{_parentage:Q}=this;return Q===z||Array.isArray(Q)&&Q.includes(z)}_addParent(z){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(z),Q):Q?[Q,z]:z}_removeParent(z){const{_parentage:Q}=this;Q===z?this._parentage=null:Array.isArray(Q)&&(0,Y.o)(Q,z)}remove(z){const{_finalizers:Q}=this;Q&&(0,Y.o)(Q,z),z instanceof b&&z._removeParent(this)}}b.EMPTY=(()=>{const j=new b;return j.closed=!0,j})();const x=b.EMPTY;function R(j){return j instanceof b||j&&"closed"in j&&(0,p.T)(j.remove)&&(0,p.T)(j.add)&&(0,p.T)(j.unsubscribe)}function L(j){(0,p.T)(j)?j():j.unsubscribe()}},1026:(Lt,be,D)=>{D.d(be,{$:()=>p});const p={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3207:(Lt,be,D)=>{D.d(be,{s:()=>u});var p=D(9350);function u(v,Y){const b="object"==typeof Y;return new Promise((x,R)=>{let j,L=!1;v.subscribe({next:z=>{j=z,L=!0},error:R,complete:()=>{L?x(j):b?x(Y.defaultValue):R(new p.G)}})})}},4572:(Lt,be,D)=>{D.d(be,{z:()=>z});var p=D(1985),u=D(3073),v=D(6648),Y=D(3669),b=D(6450),x=D(9326),R=D(8496),L=D(4360),j=D(5225);function z(...Re){const Se=(0,x.lI)(Re),et=(0,x.ms)(Re),{args:lt,keys:je}=(0,u.D)(Re);if(0===lt.length)return(0,v.H)([],Se);const wt=new p.c(function Q(Re,Se,et=Y.D){return lt=>{Ie(Se,()=>{const{length:je}=Re,wt=new Array(je);let Zt=je,En=je;for(let Le=0;Le<je;Le++)Ie(Se,()=>{const ut=(0,v.H)(Re[Le],Se);let Ce=!1;ut.subscribe((0,L._)(lt,me=>{wt[Le]=me,Ce||(Ce=!0,En--),En||lt.next(et(wt.slice()))},()=>{--Zt||lt.complete()}))},lt)},lt)}}(lt,Se,je?Zt=>(0,R.e)(je,Zt):Y.D));return et?wt.pipe((0,b.I)(et)):wt}function Ie(Re,Se,et){Re?(0,j.N)(et,Re,Se):Se()}},983:(Lt,be,D)=>{D.d(be,{w:()=>u});const u=new(D(1985).c)(b=>b.complete())},7468:(Lt,be,D)=>{D.d(be,{p:()=>L});var p=D(1985),u=D(3073),v=D(8750),Y=D(9326),b=D(4360),x=D(6450),R=D(8496);function L(...j){const z=(0,Y.ms)(j),{args:Q,keys:Ie}=(0,u.D)(j),Re=new p.c(Se=>{const{length:et}=Q;if(!et)return void Se.complete();const lt=new Array(et);let je=et,wt=et;for(let Zt=0;Zt<et;Zt++){let En=!1;(0,v.Tg)(Q[Zt]).subscribe((0,b._)(Se,Le=>{En||(En=!0,wt--),lt[Zt]=Le},()=>je--,void 0,()=>{(!je||!En)&&(wt||Se.next(Ie?(0,R.e)(Ie,lt):lt),Se.complete())}))}});return z?Re.pipe((0,x.I)(z)):Re}},6648:(Lt,be,D)=>{D.d(be,{H:()=>me});var p=D(8750),u=D(5225),v=D(9974),Y=D(4360);function b(ht,ge=0){return(0,v.N)((Be,pe)=>{Be.subscribe((0,Y._)(pe,ze=>(0,u.N)(pe,ht,()=>pe.next(ze),ge),()=>(0,u.N)(pe,ht,()=>pe.complete(),ge),ze=>(0,u.N)(pe,ht,()=>pe.error(ze),ge)))})}function x(ht,ge=0){return(0,v.N)((Be,pe)=>{pe.add(ht.schedule(()=>Be.subscribe(pe),ge))})}var j=D(1985),Q=D(4761),Ie=D(8071);function Se(ht,ge){if(!ht)throw new Error("Iterable cannot be null");return new j.c(Be=>{(0,u.N)(Be,ge,()=>{const pe=ht[Symbol.asyncIterator]();(0,u.N)(Be,ge,()=>{pe.next().then(ze=>{ze.done?Be.complete():Be.next(ze.value)})},0,!0)})})}var et=D(5055),lt=D(9858),je=D(7441),wt=D(5397),Zt=D(7953),En=D(591),Le=D(5196);function me(ht,ge){return ge?function Ce(ht,ge){if(null!=ht){if((0,et.l)(ht))return function R(ht,ge){return(0,p.Tg)(ht).pipe(x(ge),b(ge))}(ht,ge);if((0,je.X)(ht))return function z(ht,ge){return new j.c(Be=>{let pe=0;return ge.schedule(function(){pe===ht.length?Be.complete():(Be.next(ht[pe++]),Be.closed||this.schedule())})})}(ht,ge);if((0,lt.y)(ht))return function L(ht,ge){return(0,p.Tg)(ht).pipe(x(ge),b(ge))}(ht,ge);if((0,Zt.T)(ht))return Se(ht,ge);if((0,wt.x)(ht))return function Re(ht,ge){return new j.c(Be=>{let pe;return(0,u.N)(Be,ge,()=>{pe=ht[Q.l](),(0,u.N)(Be,ge,()=>{let ze,tt;try{({value:ze,done:tt}=pe.next())}catch(He){return void Be.error(He)}tt?Be.complete():Be.next(ze)},0,!0)}),()=>(0,Ie.T)(pe?.return)&&pe.return()})}(ht,ge);if((0,Le.U)(ht))return function ut(ht,ge){return Se((0,Le.C)(ht),ge)}(ht,ge)}throw(0,En.L)(ht)}(ht,ge):(0,p.Tg)(ht)}},8750:(Lt,be,D)=>{D.d(be,{Tg:()=>Re});var p=D(1635),u=D(7441),v=D(9858),Y=D(1985),b=D(5055),x=D(7953),R=D(591),L=D(5397),j=D(5196),z=D(8071),Q=D(5334),Ie=D(3494);function Re(Le){if(Le instanceof Y.c)return Le;if(null!=Le){if((0,b.l)(Le))return function Se(Le){return new Y.c(ut=>{const Ce=Le[Ie.s]();if((0,z.T)(Ce.subscribe))return Ce.subscribe(ut);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Le);if((0,u.X)(Le))return function et(Le){return new Y.c(ut=>{for(let Ce=0;Ce<Le.length&&!ut.closed;Ce++)ut.next(Le[Ce]);ut.complete()})}(Le);if((0,v.y)(Le))return function lt(Le){return new Y.c(ut=>{Le.then(Ce=>{ut.closed||(ut.next(Ce),ut.complete())},Ce=>ut.error(Ce)).then(null,Q.m)})}(Le);if((0,x.T)(Le))return wt(Le);if((0,L.x)(Le))return function je(Le){return new Y.c(ut=>{for(const Ce of Le)if(ut.next(Ce),ut.closed)return;ut.complete()})}(Le);if((0,j.U)(Le))return function Zt(Le){return wt((0,j.C)(Le))}(Le)}throw(0,R.L)(Le)}function wt(Le){return new Y.c(ut=>{(function En(Le,ut){var Ce,me,ht,ge;return(0,p.sH)(this,void 0,void 0,function*(){try{for(Ce=(0,p.xN)(Le);!(me=yield Ce.next()).done;)if(ut.next(me.value),ut.closed)return}catch(Be){ht={error:Be}}finally{try{me&&!me.done&&(ge=Ce.return)&&(yield ge.call(Ce))}finally{if(ht)throw ht.error}}ut.complete()})})(Le,ut).catch(Ce=>ut.error(Ce))})}},7673:(Lt,be,D)=>{D.d(be,{of:()=>v});var p=D(9326),u=D(6648);function v(...Y){const b=(0,p.lI)(Y);return(0,u.H)(Y,b)}},8810:(Lt,be,D)=>{D.d(be,{$:()=>v});var p=D(1985),u=D(8071);function v(Y,b){const x=(0,u.T)(Y)?Y:()=>Y,R=L=>L.error(x());return new p.c(b?L=>b.schedule(R,0,L):R)}},4360:(Lt,be,D)=>{D.d(be,{_:()=>u});var p=D(7707);function u(Y,b,x,R,L){return new v(Y,b,x,R,L)}class v extends p.vU{constructor(b,x,R,L,j,z){super(b),this.onFinalize=j,this.shouldUnsubscribe=z,this._next=x?function(Q){try{x(Q)}catch(Ie){b.error(Ie)}}:super._next,this._error=L?function(Q){try{L(Q)}catch(Ie){b.error(Ie)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch(Q){b.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var b;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:x}=this;super.unsubscribe(),!x&&(null===(b=this.onFinalize)||void 0===b||b.call(this))}}}},9437:(Lt,be,D)=>{D.d(be,{W:()=>Y});var p=D(8750),u=D(4360),v=D(9974);
1function Y(b){return(0,v.N)((x,R)=>{let z,L=null,j=!1;L=x.subscribe((0,u._)(R,void 0,void 0,Q=>{z=(0,p.Tg)(b(Q,Y(b)(x))),L?(L.unsubscribe(),L=null,z.subscribe(R)):j=!0})),j&&(L.unsubscribe(),L=null,z.subscribe(R))})}},274:(Lt,be,D)=>{D.d(be,{H:()=>v});var p=D(1397),u=D(8071);function v(Y,b){return(0,u.T)(b)?(0,p.Z)(Y,b,1):(0,p.Z)(Y,1)}},5964:(Lt,be,D)=>{D.d(be,{p:()=>v});var p=D(9974),u=D(4360);function v(Y,b){return(0,p.N)((x,R)=>{let L=0;x.subscribe((0,u._)(R,j=>Y.call(b,j,L++)&&R.next(j)))})}},980:(Lt,be,D)=>{D.d(be,{j:()=>u});var p=D(9974);function u(v){return(0,p.N)((Y,b)=>{try{Y.subscribe(b)}finally{b.add(v)}})}},6354:(Lt,be,D)=>{D.d(be,{T:()=>v});var p=D(9974),u=D(4360);function v(Y,b){return(0,p.N)((x,R)=>{let L=0;x.subscribe((0,u._)(R,j=>{R.next(Y.call(b,j,L++))}))})}},1397:(Lt,be,D)=>{D.d(be,{Z:()=>L});var p=D(6354),u=D(8750),v=D(9974),Y=D(5225),b=D(4360),R=D(8071);function L(j,z,Q=1/0){return(0,R.T)(z)?L((Ie,Re)=>(0,p.T)((Se,et)=>z(Ie,Se,Re,et))((0,u.Tg)(j(Ie,Re))),Q):("number"==typeof z&&(Q=z),(0,v.N)((Ie,Re)=>function x(j,z,Q,Ie,Re,Se,et,lt){const je=[];let wt=0,Zt=0,En=!1;const Le=()=>{En&&!je.length&&!wt&&z.complete()},ut=me=>wt<Ie?Ce(me):je.push(me),Ce=me=>{Se&&z.next(me),wt++;let ht=!1;(0,u.Tg)(Q(me,Zt++)).subscribe((0,b._)(z,ge=>{Re?.(ge),Se?ut(ge):z.next(ge)},()=>{ht=!0},void 0,()=>{if(ht)try{for(wt--;je.length&&wt<Ie;){const ge=je.shift();et?(0,Y.N)(z,et,()=>Ce(ge)):Ce(ge)}Le()}catch(ge){z.error(ge)}}))};return j.subscribe((0,b._)(z,ut,()=>{En=!0,Le()})),()=>{lt?.()}}(Ie,Re,j,Q)))}},5558:(Lt,be,D)=>{D.d(be,{n:()=>Y});var p=D(8750),u=D(9974),v=D(4360);function Y(b,x){return(0,u.N)((R,L)=>{let j=null,z=0,Q=!1;const Ie=()=>Q&&!j&&L.complete();R.subscribe((0,v._)(L,Re=>{j?.unsubscribe();let Se=0;const et=z++;(0,p.Tg)(b(Re,et)).subscribe(j=(0,v._)(L,lt=>L.next(x?x(Re,lt,et,Se++):lt),()=>{j=null,Ie()}))},()=>{Q=!0,Ie()}))})}},6697:(Lt,be,D)=>{D.d(be,{s:()=>Y});var p=D(983),u=D(9974),v=D(4360);function Y(b){return b<=0?()=>p.w:(0,u.N)((x,R)=>{let L=0;x.subscribe((0,v._)(R,j=>{++L<=b&&(R.next(j),b<=L&&R.complete())}))})}},6977:(Lt,be,D)=>{D.d(be,{Q:()=>b});var p=D(9974),u=D(4360),v=D(8750),Y=D(5343);function b(x){return(0,p.N)((R,L)=>{(0,v.Tg)(x).subscribe((0,u._)(L,()=>L.complete(),Y.l)),!L.closed&&R.subscribe(L)})}},8141:(Lt,be,D)=>{D.d(be,{M:()=>b});var p=D(8071),u=D(9974),v=D(4360),Y=D(3669);function b(x,R,L){const j=(0,p.T)(x)||R||L?{next:x,error:R,complete:L}:x;return j?(0,u.N)((z,Q)=>{var Ie;null===(Ie=j.subscribe)||void 0===Ie||Ie.call(j);let Re=!0;z.subscribe((0,v._)(Q,Se=>{var et;null===(et=j.next)||void 0===et||et.call(j,Se),Q.next(Se)},()=>{var Se;Re=!1,null===(Se=j.complete)||void 0===Se||Se.call(j),Q.complete()},Se=>{var et;Re=!1,null===(et=j.error)||void 0===et||et.call(j,Se),Q.error(Se)},()=>{var Se,et;Re&&(null===(Se=j.unsubscribe)||void 0===Se||Se.call(j)),null===(et=j.finalize)||void 0===et||et.call(j)}))}):Y.D}},6129:(Lt,be,D)=>{D.d(be,{U:()=>p});const p={now:()=>(p.delegate||Date).now(),delegate:void 0}},9270:(Lt,be,D)=>{D.d(be,{f:()=>p});const p={setTimeout(u,v,...Y){const{delegate:b}=p;return b?.setTimeout?b.setTimeout(u,v,...Y):setTimeout(u,v,...Y)},clearTimeout(u){const{delegate:v}=p;return(v?.clearTimeout||clearTimeout)(u)},delegate:void 0}},4761:(Lt,be,D)=>{D.d(be,{l:()=>u});const u=function p(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Lt,be,D)=>{D.d(be,{s:()=>p});const p="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Lt,be,D)=>{D.d(be,{G:()=>u});const u=(0,D(1853).L)(v=>function(){v(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Lt,be,D)=>{D.d(be,{lI:()=>b,ms:()=>Y});var p=D(8071),u=D(9470);function v(R){return R[R.length-1]}function Y(R){return(0,p.T)(v(R))?R.pop():void 0}function b(R){return(0,u.m)(v(R))?R.pop():void 0}},3073:(Lt,be,D)=>{D.d(be,{D:()=>b});const{isArray:p}=Array,{getPrototypeOf:u,prototype:v,keys:Y}=Object;function b(R){if(1===R.length){const L=R[0];if(p(L))return{args:L,keys:null};if(function x(R){return R&&"object"==typeof R&&u(R)===v}(L)){const j=Y(L);return{args:j.map(z=>L[z]),keys:j}}}return{args:R,keys:null}}},7908:(Lt,be,D)=>{function p(u,v){if(u){const Y=u.indexOf(v);0<=Y&&u.splice(Y,1)}}D.d(be,{o:()=>p})},1853:(Lt,be,D)=>{function p(u){const Y=u(b=>{Error.call(b),b.stack=(new Error).stack});return Y.prototype=Object.create(Error.prototype),Y.prototype.constructor=Y,Y}D.d(be,{L:()=>p})},8496:(Lt,be,D)=>{function p(u,v){return u.reduce((Y,b,x)=>(Y[b]=v[x],Y),{})}D.d(be,{e:()=>p})},9786:(Lt,be,D)=>{D.d(be,{Y:()=>v,l:()=>Y});var p=D(1026);let u=null;function v(b){if(p.$.useDeprecatedSynchronousErrorHandling){const x=!u;if(x&&(u={errorThrown:!1,error:null}),b(),x){const{errorThrown:R,error:L}=u;if(u=null,R)throw L}}else b()}function Y(b){p.$.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=b)}},5225:(Lt,be,D)=>{function p(u,v,Y,b=0,x=!1){const R=v.schedule(function(){Y(),x?u.add(this.schedule(null,b)):this.unsubscribe()},b);if(u.add(R),!x)return R}D.d(be,{N:()=>p})},3669:(Lt,be,D)=>{function p(u){return u}D.d(be,{D:()=>p})},7441:(Lt,be,D)=>{D.d(be,{X:()=>p});const p=u=>u&&"number"==typeof u.length&&"function"!=typeof u},7953:(Lt,be,D)=>{D.d(be,{T:()=>u});var p=D(8071);function u(v){return Symbol.asyncIterator&&(0,p.T)(v?.[Symbol.asyncIterator])}},8071:(Lt,be,D)=>{function p(u){return"function"==typeof u}D.d(be,{T:()=>p})},5055:(Lt,be,D)=>{D.d(be,{l:()=>v});var p=D(3494),u=D(8071);function v(Y){return(0,u.T)(Y[p.s])}},5397:(Lt,be,D)=>{D.d(be,{x:()=>v});var p=D(4761),u=D(8071);function v(Y){return(0,u.T)(Y?.[p.l])}},9858:(Lt,be,D)=>{D.d(be,{y:()=>u});var p=D(8071);function u(v){return(0,p.T)(v?.then)}},5196:(Lt,be,D)=>{D.d(be,{C:()=>v,U:()=>Y});var p=D(1635),u=D(8071);function v(b){return(0,p.AQ)(this,arguments,function*(){const R=b.getReader();try{for(;;){const{value:L,done:j}
1=yield(0,p.N3)(R.read());if(j)return yield(0,p.N3)(void 0);yield yield(0,p.N3)(L)}}finally{R.releaseLock()}})}function Y(b){return(0,u.T)(b?.getReader)}},9470:(Lt,be,D)=>{D.d(be,{m:()=>u});var p=D(8071);function u(v){return v&&(0,p.T)(v.schedule)}},9974:(Lt,be,D)=>{D.d(be,{N:()=>v,S:()=>u});var p=D(8071);function u(Y){return(0,p.T)(Y?.lift)}function v(Y){return b=>{if(u(b))return b.lift(function(x){try{return Y(x,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Lt,be,D)=>{D.d(be,{I:()=>Y});var p=D(6354);const{isArray:u}=Array;function Y(b){return(0,p.T)(x=>function v(b,x){return u(x)?b(...x):b(x)}(b,x))}},5343:(Lt,be,D)=>{function p(){}D.d(be,{l:()=>p})},1203:(Lt,be,D)=>{D.d(be,{F:()=>u,m:()=>v});var p=D(3669);function u(...Y){return v(Y)}function v(Y){return 0===Y.length?p.D:1===Y.length?Y[0]:function(x){return Y.reduce((R,L)=>L(R),x)}}},5334:(Lt,be,D)=>{D.d(be,{m:()=>v});var p=D(1026),u=D(9270);function v(Y){u.f.setTimeout(()=>{const{onUnhandledError:b}=p.$;if(!b)throw Y;b(Y)})}},591:(Lt,be,D)=>{function p(u){return new TypeError(`You provided ${null!==u&&"object"==typeof u?"an invalid object":`'${u}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}D.d(be,{L:()=>p})},9969:(Lt,be,D)=>{D.d(be,{FX:()=>ge,If:()=>p,K2:()=>x,MA:()=>Ie,P:()=>Se,hZ:()=>v,i0:()=>Y,iF:()=>R,kY:()=>z,kp:()=>u,lY:()=>Q,sM:()=>Re,sf:()=>me,ui:()=>ht,wk:()=>L});var p=function(Be){return Be[Be.State=0]="State",Be[Be.Transition=1]="Transition",Be[Be.Sequence=2]="Sequence",Be[Be.Group=3]="Group",Be[Be.Animate=4]="Animate",Be[Be.Keyframes=5]="Keyframes",Be[Be.Style=6]="Style",Be[Be.Trigger=7]="Trigger",Be[Be.Reference=8]="Reference",Be[Be.AnimateChild=9]="AnimateChild",Be[Be.AnimateRef=10]="AnimateRef",Be[Be.Query=11]="Query",Be[Be.Stagger=12]="Stagger",Be}(p||{});const u="*";function v(Be,pe){return{type:p.Trigger,name:Be,definitions:pe,options:{}}}function Y(Be,pe=null){return{type:p.Animate,styles:pe,timings:Be}}function x(Be,pe=null){return{type:p.Sequence,steps:Be,options:pe}}function R(Be){return{type:p.Style,styles:Be,offset:null}}function L(Be,pe,ze){return{type:p.State,name:Be,styles:pe,options:ze}}function z(Be,pe,ze=null){return{type:p.Transition,expr:Be,animation:pe,options:ze}}function Q(Be,pe=null){return{type:p.Reference,animation:Be,options:pe}}function Ie(Be=null){return{type:p.AnimateChild,options:Be}}function Re(Be,pe=null){return{type:p.AnimateRef,animation:Be,options:pe}}function Se(Be,pe,ze=null){return{type:p.Query,selector:Be,animation:pe,options:ze}}class me{constructor(pe=0,ze=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=pe+ze}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(pe=>pe()),this._onDoneFns=[])}onStart(pe){this._originalOnStartFns.push(pe),this._onStartFns.push(pe)}onDone(pe){this._originalOnDoneFns.push(pe),this._onDoneFns.push(pe)}onDestroy(pe){this._onDestroyFns.push(pe)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(pe=>pe()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(pe=>pe()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(pe){this._position=this.totalTime?pe*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(pe){const ze="start"==pe?this._onStartFns:this._onDoneFns;ze.forEach(tt=>tt()),ze.length=0}}class ht{constructor(pe){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=pe;let ze=0,tt=0,He=0;const st=this.players.length;0==st?queueMicrotask(()=>
1this._onFinish()):this.players.forEach(At=>{At.onDone(()=>{++ze==st&&this._onFinish()}),At.onDestroy(()=>{++tt==st&&this._onDestroy()}),At.onStart(()=>{++He==st&&this._onStart()})}),this.totalTime=this.players.reduce((At,gn)=>Math.max(At,gn.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(pe=>pe()),this._onDoneFns=[])}init(){this.players.forEach(pe=>pe.init())}onStart(pe){this._onStartFns.push(pe)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(pe=>pe()),this._onStartFns=[])}onDone(pe){this._onDoneFns.push(pe)}onDestroy(pe){this._onDestroyFns.push(pe)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(pe=>pe.play())}pause(){this.players.forEach(pe=>pe.pause())}restart(){this.players.forEach(pe=>pe.restart())}finish(){this._onFinish(),this.players.forEach(pe=>pe.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(pe=>pe.destroy()),this._onDestroyFns.forEach(pe=>pe()),this._onDestroyFns=[])}reset(){this.players.forEach(pe=>pe.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(pe){const ze=pe*this.totalTime;this.players.forEach(tt=>{const He=tt.totalTime?Math.min(1,ze/tt.totalTime):1;tt.setPosition(He)})}getPosition(){const pe=this.players.reduce((ze,tt)=>null===ze||tt.totalTime>ze.totalTime?tt:ze,null);return null!=pe?pe.getPosition():0}beforeDestroy(){this.players.forEach(pe=>{pe.beforeDestroy&&pe.beforeDestroy()})}triggerCallback(pe){const ze="start"==pe?this._onStartFns:this._onDoneFns;ze.forEach(tt=>tt()),ze.length=0}}const ge="!"},177:(Lt,be,D)=>{D.d(be,{AJ:()=>ia,B3:()=>Xn,EO:()=>ue,Jj:()=>yr,MD:()=>ra,N0:()=>Ka,P9:()=>jo,QT:()=>v,QX:()=>hs,Sm:()=>lt,Sq:()=>Hn,T3:()=>Or,UE:()=>lo,VF:()=>b,Vy:()=>za,Xr:()=>Mo,YU:()=>yt,ZD:()=>Y,_b:()=>De,aZ:()=>wt,bT:()=>Pr,e1:()=>Dr,fw:()=>je,hb:()=>Se,hj:()=>j,qQ:()=>R,ux:()=>mr,vh:()=>Qi});var p=D(4438);let u=null;function v(){return u}function Y(I){u??=I}class b{}const R=new p.nKC("");let L=(()=>{class I{historyGo(N){throw new Error("")}static{this.\u0275fac=function(V){return new(V||I)}}static{this.\u0275prov=p.jDH({token:I,factory:()=>(0,p.WQX)(z),providedIn:"platform"})}}return I})();const j=new p.nKC("");let z=(()=>{class I extends L{constructor(){super(),this._doc=(0,p.WQX)(R),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(N){const V=v().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",N,!1),()=>V.removeEventListener("popstate",N)}onHashChange(N){const V=v().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",N,!1),()=>V.removeEventListener("hashchange",N)}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(N){this._location.pathname=N}pushState(N,V,ye){this._history.pushState(N,V,ye)}replaceState(N,V,ye){this._history.replaceState(N,V,ye)}forward(){this._history.forward()}back(){this._history.back()}historyGo(N=0){this._history.go(N)}getState(){return this._history.state}static{this.\u0275fac=function(V){return new(V||I)}}static{this.\u0275prov=p.jDH({token:I,factory:()=>new I,providedIn:"platform"})}}return I})();function Q(I,W){if(0==I.length)return W;if(0==W.length)return I;let N=0;return I.endsWith("/")&&N++,W.startsWith("/")&&N++,2==N?I+W.substring(1):1==N?I+W:I+"/"+W}function Ie(I){const W=I.match(/#|\?|$/),N=W&&W.index||I.length;return I.slice(0,N-("/"===I[N-1]?1:0))+I.slice(N)}function Re(I){return I&&"?"!==I[0]?"?"+I:I}let Se=(()=>{class I{historyGo(N){throw new Error("")}static{this.\u0275fac=function(V){return new(V||I)}}static{this.\u0275prov=p.jDH({token:I,factory:()=>(0,p.WQX)(lt),providedIn:"root"})}}return I})();const et=new p.nKC("");let lt=(()=>
1{class I extends Se{constructor(N,V){super(),this._platformLocation=N,this._removeListenerFns=[],this._baseHref=V??this._platformLocation.getBaseHrefFromDOM()??(0,p.WQX)(R).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}prepareExternalUrl(N){return Q(this._baseHref,N)}path(N=!1){const V=this._platformLocation.pathname+Re(this._platformLocation.search),ye=this._platformLocation.hash;return ye&&N?`${V}${ye}`:V}pushState(N,V,ye,mt){const Ut=this.prepareExternalUrl(ye+Re(mt));this._platformLocation.pushState(N,V,Ut)}replaceState(N,V,ye,mt){const Ut=this.prepareExternalUrl(ye+Re(mt));this._platformLocation.replaceState(N,V,Ut)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){this._platformLocation.historyGo?.(N)}static{this.\u0275fac=function(V){return new(V||I)(p.KVO(L),p.KVO(et,8))}}static{this.\u0275prov=p.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})(),je=(()=>{class I extends Se{constructor(N,V){super(),this._platformLocation=N,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}path(N=!1){const V=this._platformLocation.hash??"#";return V.length>0?V.substring(1):V}prepareExternalUrl(N){const V=Q(this._baseHref,N);return V.length>0?"#"+V:V}pushState(N,V,ye,mt){let Ut=this.prepareExternalUrl(ye+Re(mt));0==Ut.length&&(Ut=this._platformLocation.pathname),this._platformLocation.pushState(N,V,Ut)}replaceState(N,V,ye,mt){let Ut=this.prepareExternalUrl(ye+Re(mt));0==Ut.length&&(Ut=this._platformLocation.pathname),this._platformLocation.replaceState(N,V,Ut)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){this._platformLocation.historyGo?.(N)}static{this.\u0275fac=function(V){return new(V||I)(p.KVO(L),p.KVO(et,8))}}static{this.\u0275prov=p.jDH({token:I,factory:I.\u0275fac})}}return I})(),wt=(()=>{class I{constructor(N){this._subject=new p.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=N;const V=this._locationStrategy.getBaseHref();this._basePath=function ut(I){if(new RegExp("^(https?:)?//").test(I)){const[,N]=I.split(/\/\/[^\/]+/);return N}return I}(Ie(Le(V))),this._locationStrategy.onPopState(ye=>{this._subject.emit({url:this.path(!0),pop:!0,state:ye.state,type:ye.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(N=!1){return this.normalize(this._locationStrategy.path(N))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(N,V=""){return this.path()==this.normalize(N+Re(V))}normalize(N){return I.stripTrailingSlash(function En(I,W){if(!I||!W.startsWith(I))return W;const N=W.substring(I.length);return""===N||["/",";","?","#"].includes(N[0])?N:W}(this._basePath,Le(N)))}prepareExternalUrl(N){return N&&"/"!==N[0]&&(N="/"+N),this._locationStrategy.prepareExternalUrl(N)}go(N,V="",ye=null){this._locationStrategy.pushState(ye,"",N,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+Re(V)),ye)}replaceState(N,V="",ye=null){this._locationStrategy.replaceState(ye,"",N,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+Re(V)),ye)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(N=0){this._locationStrategy.historyGo?.(N)}onUrlChange(N){return this._urlChangeListeners.push(N),this._urlChangeSubscription??=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}),()=>{const V=this._urlChangeListeners.indexOf(N);this._urlChangeListeners.splice(V,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(N="",V){this._urlChangeListeners.forEac
1h(ye=>ye(N,V))}subscribe(N,V,ye){return this._subject.subscribe({next:N,error:V,complete:ye})}static{this.normalizeQueryParams=Re}static{this.joinWithSlash=Q}static{this.stripTrailingSlash=Ie}static{this.\u0275fac=function(V){return new(V||I)(p.KVO(Se))}}static{this.\u0275prov=p.jDH({token:I,factory:()=>function Zt(){return new wt((0,p.KVO)(Se))}(),providedIn:"root"})}}return I})();function Le(I){return I.replace(/\/index.html$/,"")}var me=function(I){return I[I.Decimal=0]="Decimal",I[I.Percent=1]="Percent",I[I.Currency=2]="Currency",I[I.Scientific=3]="Scientific",I}(me||{}),ge=function(I){return I[I.Format=0]="Format",I[I.Standalone=1]="Standalone",I}(ge||{}),Be=function(I){return I[I.Narrow=0]="Narrow",I[I.Abbreviated=1]="Abbreviated",I[I.Wide=2]="Wide",I[I.Short=3]="Short",I}(Be||{}),pe=function(I){return I[I.Short=0]="Short",I[I.Medium=1]="Medium",I[I.Long=2]="Long",I[I.Full=3]="Full",I}(pe||{});const ze={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 ne(I,W){return ar((0,p.H5H)(I)[p.KH2.DateFormat],W)}function F(I,W){return ar((0,p.H5H)(I)[p.KH2.TimeFormat],W)}function te(I,W){return ar((0,p.H5H)(I)[p.KH2.DateTimeFormat],W)}function ce(I,W){const N=(0,p.H5H)(I),V=N[p.KH2.NumberSymbols][W];if(typeof V>"u"){if(W===ze.CurrencyDecimal)return N[p.KH2.NumberSymbols][ze.Decimal];if(W===ze.CurrencyGroup)return N[p.KH2.NumberSymbols][ze.Group]}return V}function xn(I){if(!I[p.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${I[p.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ar(I,W){for(let N=W;N>-1;N--)if(typeof I[N]<"u")return I[N];throw new Error("Locale data API: locale data undefined")}function Gn(I){const[W,N]=I.split(":");return{hours:+W,minutes:+N}}const Si=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_t={},Vn=/((?:[^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 Tt=function(I){return I[I.Short=0]="Short",I[I.ShortGMT=1]="ShortGMT",I[I.Long=2]="Long",I[I.Extended=3]="Extended",I}(Tt||{}),sn=function(I){return I[I.FullYear=0]="FullYear",I[I.Month=1]="Month",I[I.Date=2]="Date",I[I.Hours=3]="Hours",I[I.Minutes=4]="Minutes",I[I.Seconds=5]="Seconds",I[I.FractionalSeconds=6]="FractionalSeconds",I[I.Day=7]="Day",I}(sn||{}),_n=function(I){return I[I.DayPeriods=0]="DayPeriods",I[I.Days=1]="Days",I[I.Months=2]="Months",I[I.Eras=3]="Eras",I}(_n||{});function Fr(I,W,N,V){let ye=function kn(I){if(Yr(I))return I;if("number"==typeof I&&!isNaN(I))return new Date(I);if("string"==typeof I){if(I=I.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(I)){const[ye,mt=1,Ut=1]=I.split("-").map(Fn=>+Fn);return Ni(ye,mt-1,Ut)}const N=parseFloat(I);if(!isNaN(I-N))return new Date(N);let V;if(V=I.match(Si))return function Br(I){const W=new Date(0);let N=0,V=0;const ye=I[8]?W.setUTCFullYear:W.setFullYear,mt=I[8]?W.setUTCHours:W.setHours;I[9]&&(N=Number(I[9]+I[10]),V=Number(I[9]+I[11])),ye.call(W,Number(I[1]),Number(I[2])-1,Number(I[3]));const Ut=Number(I[4]||0)-N,Fn=Number(I[5]||0)-V,hi=Number(I[6]||0),Xr=Math.floor(1e3*parseFloat("0."+(I[7]||0)));return mt.call(W,Ut,Fn,hi,Xr),W}(V)}const W=new Date(I);if(!Yr(W))throw new Error(`Unable to convert "${I}" into a date`);return W}(I);W=Di(N,W)||W;let Fn,Ut=[];for(;W;){if(Fn=Vn.exec(W),!Fn){Ut.push(W);break}{Ut=Ut.concat(Fn.slice(1));const P=Ut.pop();if(!P)break;W=P}}let hi=ye.getTimezoneOffset();V&&(hi=$e(V,hi),ye=function cn(I,W,N){const V=N?-1:1,ye=I.getTimezoneOffset();return function Ye(I,W){return(I=new Date(I.getTime())).setMinutes(I.getMinutes()+W),I}(I,V*($e(W,ye)-ye))}(ye,V,!0));let Xr="";return Ut.forEach(P=>{const X=function he(I){if(it[I])return it[I];let W;switch(I){case"G":case"GG":case"GGG":W=vr(_n.Eras,Be.Abbreviated);break;case"GGGG":W=vr(_n.Eras,Be.Wide);break;case"GGGGG":W=vr(_n.Eras,Be.Narrow);break;case"y":W=qn(sn.FullYear,1,0,!1,!0);break;case"yy":W=qn(sn.FullYear,2,0,!0,!0);break;case"yyy":W=qn(sn.FullYear,3,0,!1,!0);break;case"yyyy":W=qn(sn.FullYear,4,0,!1,!0);break;case"Y":W=We(1);break;case"YY":W=We(2,!0);break;case"YYY":W=We(3);break;case"YYYY":W=We(4);break;case"M":case"L":W=qn(sn.Month,1,1);break;case"MM":case"LL":W=qn(sn.Month,2,1);break;case"MMM":W=vr(_n.Months,Be.Abbreviated);break;case"MMMM":W=vr(_n.Months,Be.Wide);break;case"MMMMM":W=vr(_n.Months,Be.Narrow);break;case"LLL":W=vr(_n.Months,Be.Abbreviated,ge.Standalone);break;case"LLLL":W=vr(_n.Months,Be.Wide,ge.Standalone);break;case"LLLLL":W=vr(_n.Months,Be.Narrow,ge.Standalone);break;case"w":W=Pi(1);break;case"ww":W=Pi(2);break;case"W":W=Pi(1,!0);break;case"d":W=qn(sn.Date,1);break;case"dd":W=qn(sn.Date,2);break;case"c":case"cc":W=qn(sn.Day,1);break;case"ccc":W=vr(_n.Days,Be.Abbreviated,ge.Standalone);break;case"cccc":W=vr(_n.Days,Be.Wide,ge.Standalone);break;case"ccccc":W=vr(_n.Days,Be.Narrow,ge.Standalone);break;case"cccccc":W=vr(_n.Days,Be.Short,ge.Standalone);break;case"E":case"EE":case"EEE":W=vr(_n.Days,Be.Abbreviated);break;case"EEEE":W=vr(_n.Days,Be.Wide);break;case"EEEEE":W=vr(_n.Days,Be.Narrow);break;case"EEEEEE":W=vr(_n.Days,Be.Short);break;case"a":case"aa":case"aaa":W=vr(_n.DayPeriods,Be.Abbreviated);break;case"aaaa":W=vr(_n.DayPeriods,Be.Wide);break;case"aaaaa":W=vr(_n.DayPeriods,Be.Narrow);break;
vendor: 8,540 bytes, line 1
1case"b":case"bb":case"bbb":W=vr(_n.DayPeriods,Be.Abbreviated,ge.Standalone,!0);break;case"bbbb":W=vr(_n.DayPeriods,Be.Wide,ge.Standalone,!0);break;case"bbbbb":W=vr(_n.DayPeriods,Be.Narrow,ge.Standalone,!0);break;case"B":case"BB":case"BBB":W=vr(_n.DayPeriods,Be.Abbreviated,ge.Format,!0);break;case"BBBB":W=vr(_n.DayPeriods,Be.Wide,ge.Format,!0);break;case"BBBBB":W=vr(_n.DayPeriods,Be.Narrow,ge.Format,!0);break;case"h":W=qn(sn.Hours,1,-12);break;case"hh":W=qn(sn.Hours,2,-12);break;case"H":W=qn(sn.Hours,1);break;case"HH":W=qn(sn.Hours,2);break;case"m":W=qn(sn.Minutes,1);break;case"mm":W=qn(sn.Minutes,2);break;case"s":W=qn(sn.Seconds,1);break;case"ss":W=qn(sn.Seconds,2);break;case"S":W=qn(sn.FractionalSeconds,1);break;case"SS":W=qn(sn.FractionalSeconds,2);break;case"SSS":W=qn(sn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":W=Bi(Tt.Short);break;case"ZZZZZ":W=Bi(Tt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":W=Bi(Tt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":W=Bi(Tt.Long);break;default:return null}return it[I]=W,W}(P);Xr+=X?X(ye,N,hi):"''"===P?"'":P.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Xr}function Ni(I,W,N){const V=new Date(0);return V.setFullYear(I,W,N),V.setHours(0,0,0),V}function Di(I,W){const N=function He(I){return(0,p.H5H)(I)[p.KH2.LocaleId]}(I);if(_t[N]??={},_t[N][W])return _t[N][W];let V="";switch(W){case"shortDate":V=ne(I,pe.Short);break;case"mediumDate":V=ne(I,pe.Medium);break;case"longDate":V=ne(I,pe.Long);break;case"fullDate":V=ne(I,pe.Full);break;case"shortTime":V=F(I,pe.Short);break;case"mediumTime":V=F(I,pe.Medium);break;case"longTime":V=F(I,pe.Long);break;case"fullTime":V=F(I,pe.Full);break;case"short":const ye=Di(I,"shortTime"),mt=Di(I,"shortDate");V=mi(te(I,pe.Short),[ye,mt]);break;case"medium":const Ut=Di(I,"mediumTime"),Fn=Di(I,"mediumDate");V=mi(te(I,pe.Medium),[Ut,Fn]);break;case"long":const hi=Di(I,"longTime"),Xr=Di(I,"longDate");V=mi(te(I,pe.Long),[hi,Xr]);break;case"full":const P=Di(I,"fullTime"),X=Di(I,"fullDate");V=mi(te(I,pe.Full),[P,X])}return V&&(_t[N][W]=V),V}function mi(I,W){return W&&(I=I.replace(/\{([^}]+)}/g,function(N,V){return null!=W&&V in W?W[V]:N})),I}function ci(I,W,N="-",V,ye){let mt="";(I<0||ye&&I<=0)&&(ye?I=1-I:(I=-I,mt=N));let Ut=String(I);for(;Ut.length<W;)Ut="0"+Ut;return V&&(Ut=Ut.slice(Ut.length-W)),mt+Ut}function qn(I,W,N=0,V=!1,ye=!1){return function(mt,Ut){let Fn=function Mr(I,W){switch(I){case sn.FullYear:return W.getFullYear();case sn.Month:return W.getMonth();case sn.Date:return W.getDate();case sn.Hours:return W.getHours();case sn.Minutes:return W.getMinutes();case sn.Seconds:return W.getSeconds();case sn.FractionalSeconds:return W.getMilliseconds();case sn.Day:return W.getDay();default:throw new Error(`Unknown DateType value "${I}".`)}}(I,mt);if((N>0||Fn>-N)&&(Fn+=N),I===sn.Hours)0===Fn&&-12===N&&(Fn=12);else if(I===sn.FractionalSeconds)return function is(I,W){return ci(I,3).substring(0,W)}(Fn,W);const hi=ce(Ut,ze.MinusSign);return ci(Fn,W,hi,V,ye)}}function vr(I,W,N=ge.Format,V=!1){return function(ye,mt){return function Ar(I,W,N,V,ye,mt){switch(N){case _n.Months:return function gn(I,W,N){const V=(0,p.H5H)(I),mt=ar([V[p.KH2.MonthsFormat],V[p.KH2.MonthsStandalone]],W);return ar(mt,N)}(W,ye,V)[I.getMonth()];case _n.Days:return function At(I,W,N){const V=(0,p.H5H)(I),mt=ar([V[p.KH2.DaysFormat],V[p.KH2.DaysStandalone]],W);return ar(mt,N)}(W,ye,V)[I.getDay()];case _n.DayPeriods:const Ut=I.getHours(),Fn=I.getMinutes();if(mt){const Xr=function en(I){const W=(0,p.H5H)(I);return xn(W),(W[p.KH2.ExtraData][2]||[]).map(V=>"string"==typeof V?Gn(V):[Gn(V[0]),Gn(V[1])])}(W),P=function Qt(I,W,N){const V=(0,p.H5H)(I);xn(V);const mt=ar([V[p.KH2.ExtraData][0],V[p.KH2.ExtraData][1]],W)||[];return ar(mt,N)||[]}(W,ye,V),X=Xr.findIndex(Z=>{if(Array.isArray(Z)){const[oe,ve]=Z,Ne=Ut>=oe.hours&&Fn>=oe.minutes,Me=Ut<ve.hours||Ut===ve.hours&&Fn<ve.minutes;if(oe.hours<ve.hours){if(Ne&&Me)return!0}else if(Ne||Me)return!0}else if(Z.hours===Ut&&Z.minutes===Fn)return!0;return!1});if(-1!==X)return P[X]}return function st(I,W,N){const V=(0,p.H5H)(I),mt=ar([V[p.KH2.DayPeriodsFormat],V[p.KH2.DayPeriodsStandalone]],W);return ar(mt,N)}(W,ye,V)[Ut<12?0:1];case _n.Eras:return function fn(I,W){return ar((0,p.H5H)(I)[p.KH2.Eras],W)}(W,V)[I.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${N}`)}}(ye,mt,I,W,N,V)}}function Bi(I){return function(W,N,V){const ye=-1*V,mt=ce(N,ze.MinusSign),Ut=ye>0?Math.floor(ye/60):Math.ceil(ye/60);switch(I){case Tt.Short:return(ye>=0?"+":"")+ci(Ut,2,mt)+ci(Math.abs(ye%60),2,mt);case Tt.ShortGMT:return"GMT"+(ye>=0?"+":"")+ci(Ut,1,mt);case Tt.Long:return"GMT"+(ye>=0?"+":"")+ci(Ut,2,mt)+":"+ci(Math.abs(ye%60),2,mt);case Tt.Extended:return 0===V?"Z":(ye>=0?"+":"")+ci(Ut,2,mt)+":"+ci(Math.abs(ye%60),2,mt);default:throw new Error(`Unknown zone width "${I}"`)}}}const Gr=0,wi=4;function ys(I){const W=I.getDay(),N=0===W?-3:wi-W;return Ni(I.getFullYear(),I.getMonth(),I.getDate()+N)}function Pi(I,W=!1){return function(N,V){let ye;if(W){const mt=new Date(N.getFullYear(),N.getMonth(),1).getDay()-1,Ut=N.getDate();ye=1+Math.floor((Ut+mt)/7)}else{const mt=ys(N),Ut=function no(I){const W=Ni(I,Gr,1).getDay();return Ni(I,0,1+(W<=wi?wi:wi+7)-W)}(mt.getFullYear()),Fn=mt.getTime()-Ut.getTime();ye=1+Math.round(Fn/6048e5)}return ci(ye,I,ce(V,ze.MinusSign))}}function We(I,W=!1){return function(N,V){return ci(ys(N).getFullYear(),I,ce(V,ze.MinusSign),W)}}const it={};function $e(I,W){I=I.replace(/:/g,"");const N=Date.parse("Jan 01, 1970 00:00:00 "+I)/6e4;return isNaN(N)?W:N}function Yr(I){return I instanceof Date&&!isNaN(I.valueOf())}const ui=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Nn(I){const W=parseInt(I);if(isNaN(W))throw new Error("Invalid integer literal when parsing "+I);return W}function ue(I,W,N){return(0,p.XSP)(I,W,N)}function De(I,W){W=encodeURIComponent(W);for(const N of I.split(";")){const V=N.indexOf("="),[ye,mt]=-1==V?[N,""]:[N.slice(0,V),N.slice(V+1)];if(ye.trim()===W)return decodeURIComponent(mt)}return null}const Ae=/\s+/,St=[];let yt=(()=>{class I{constructor(N,V){this._ngEl=N,this._renderer=V,this.initialClasses=St,this.stateMap=new Map}set klass(N){this.initialClasses=null!=N?N.trim().split(Ae):St}set ngClass(N){this.rawClass="string"==typeof N?N.trim().split(Ae):N}ngDoCheck(){for(const V of this.initialClasses)this._updateState(V,!0);const N=this.rawClass;if(Array.isArray(N)||N instanceof Set)for(const V of N)this._updateState(V,!0);else if(null!=N)for(const V of Object.keys(N))this._updateState(V,!!N[V]);this._applyStateDiff()}_updateState(N,V){const ye=this.stateMap.get(N);void 0!==ye?(ye.enabled!==V&&(ye.changed=!0,ye.enabled=V),ye.touched=!0):this.stateMap.set(N,{enabled:V,changed:!0,touched:!0})}_applyStateDiff(){for(const N of this.stateMap){const V=N[0],ye=N[1];ye.changed?(this._toggleClass(V,ye.enabled),ye.changed=!1):ye.touched||(ye.enabled&&this._toggleClass(V,!1),this.stateMap.delete(V)),ye.touched=!1}}_toggleClass(N,V){(N=N.trim()).length>0&&N.split(Ae).forEach(ye=>{V?this._renderer.addClass(this._ngEl.nativeElement,ye):this._renderer.removeClass(this._ngEl.nativeElement,ye)})}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.aKT),p.rXU(p.sFG))}}static{this.\u0275dir=p.FsC({type:I,selectors:[["","ngClass",""]],inputs:{klass:[p.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return I})();class cr{constructor(W,N,V,ye){this.$implicit=W,this.ngForOf=N,this.index=V,this.count=ye}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 Hn=(()=>{class I{set ngForOf(N){this._ngForOf=N,this._ngForOfDirty=!0}set ngForTrackBy(N){this._trackByFn=N}get ngForTrackBy(){return this._trackByFn}constructor(N,V,ye){this._viewContainer=N,this._template=V,this._differs=ye,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(N){N&&(this._template=N)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const N=this._ngForOf;!this._differ&&N&&(this._differ=this._differs.find(N).create(this.ngForTrackBy))}if(this._differ){const N=this._differ.diff(this._ngForOf);N&&this._applyChanges(N)}}_applyChanges(N){const V=this._viewContainer;N.forEachOperation((ye,mt,Ut)=>{if(null==ye.previousIndex)V.createEmbeddedView(this._template,new cr(ye.item,this._ngForOf,-1,-1),null===Ut?void 0:Ut);else if(null==Ut)V.remove(null===mt?void 0:mt);else if(null!==mt){const Fn=V.get(mt);V.move(Fn,Ut),zr(Fn,ye)}});for(let ye=0,mt=V.length;ye<mt;ye++){const Fn=V.get(ye).context;
1Fn.index=ye,Fn.count=mt,Fn.ngForOf=this._ngForOf}N.forEachIdentityChange(ye=>{zr(V.get(ye.currentIndex),ye)})}static ngTemplateContextGuard(N,V){return!0}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.c1b),p.rXU(p.C4Q),p.rXU(p._q3))}}static{this.\u0275dir=p.FsC({type:I,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return I})();function zr(I,W){I.context.$implicit=W.item}let Pr=(()=>{class I{constructor(N,V){this._viewContainer=N,this._context=new di,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(N){this._context.$implicit=this._context.ngIf=N,this._updateView()}set ngIfThen(N){Xi("ngIfThen",N),this._thenTemplateRef=N,this._thenViewRef=null,this._updateView()}set ngIfElse(N){Xi("ngIfElse",N),this._elseTemplateRef=N,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(N,V){return!0}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.c1b),p.rXU(p.C4Q))}}static{this.\u0275dir=p.FsC({type:I,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return I})();class di{constructor(){this.$implicit=null,this.ngIf=null}}function Xi(I,W){if(W&&!W.createEmbeddedView)throw new Error(`${I} must be a TemplateRef, but received '${(0,p.Tbb)(W)}'.`)}class dr{constructor(W,N){this._viewContainerRef=W,this._templateRef=N,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(W){W&&!this._created?this.create():!W&&this._created&&this.destroy()}}let mr=(()=>{class I{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(N){this._ngSwitch=N,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(N){this._defaultViews.push(N)}_matchCase(N){const V=N===this._ngSwitch;return this._lastCasesMatched||=V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(N){if(this._defaultViews.length>0&&N!==this._defaultUsed){this._defaultUsed=N;for(const V of this._defaultViews)V.enforceState(N)}}static{this.\u0275fac=function(V){return new(V||I)}}static{this.\u0275dir=p.FsC({type:I,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return I})(),Dr=(()=>{class I{constructor(N,V,ye){this.ngSwitch=ye,ye._addCase(),this._view=new dr(N,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.c1b),p.rXU(p.C4Q),p.rXU(mr,9))}}static{this.\u0275dir=p.FsC({type:I,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return I})(),Xn=(()=>{class I{constructor(N,V,ye){this._ngEl=N,this._differs=V,this._renderer=ye,this._ngStyle=null,this._differ=null}set ngStyle(N){this._ngStyle=N,!this._differ&&N&&(this._differ=this._differs.find(N).create())}ngDoCheck(){if(this._differ){const N=this._differ.diff(this._ngStyle);N&&this._applyChanges(N)}}_setStyle(N,V){const[ye,mt]=N.split("."),Ut=-1===ye.indexOf("-")?void 0:p.czy.DashCase;null!=V?this._renderer.setStyle(this._ngEl.nativeElement,ye,mt?`${V}${mt}`:V,Ut):this._renderer.removeStyle(this._ngEl.nativeElement,ye,Ut)}_applyChanges(N){N.forEachRemovedItem(V=>this._setStyle(V.key,null)),N.forEachAddedItem(V=>
1this._setStyle(V.key,V.currentValue)),N.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.aKT),p.rXU(p.MKu),p.rXU(p.sFG))}}static{this.\u0275dir=p.FsC({type:I,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return I})(),Or=(()=>{class I{constructor(N){this._viewContainerRef=N,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(N){if(this._shouldRecreateView(N)){const V=this._viewContainerRef;if(this._viewRef&&V.remove(V.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const ye=this._createContextForwardProxy();this._viewRef=V.createEmbeddedView(this.ngTemplateOutlet,ye,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(N){return!!N.ngTemplateOutlet||!!N.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(N,V,ye)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,V,ye),get:(N,V,ye)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,V,ye)}})}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.c1b))}}static{this.\u0275dir=p.FsC({type:I,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[p.OA$]})}}return I})();function Bo(I,W){return new p.wOt(2100,!1)}class Ic{createSubscription(W,N){return(0,p.O8t)(()=>W.subscribe({next:N,error:V=>{throw V}}))}dispose(W){(0,p.O8t)(()=>W.unsubscribe())}}class jc{createSubscription(W,N){return W.then(N,V=>{throw V})}dispose(W){}}const Gc=new jc,ta=new Ic;let yr=(()=>{class I{constructor(N){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=N}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(N){if(!this._obj){if(N)try{this.markForCheckOnValueUpdate=!1,this._subscribe(N)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return N!==this._obj?(this._dispose(),this.transform(N)):this._latestValue}_subscribe(N){this._obj=N,this._strategy=this._selectStrategy(N),this._subscription=this._strategy.createSubscription(N,V=>this._updateLatestValue(N,V))}_selectStrategy(N){if((0,p.jNT)(N))return Gc;if((0,p.zjR)(N))return ta;throw Bo()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(N,V){N===this._obj&&(this._latestValue=V,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.gRc,16))}}static{this.\u0275pipe=p.EJ8({name:"async",type:I,pure:!1,standalone:!0})}}return I})();const Bs=new p.nKC(""),Es=new p.nKC("");let Qi=(()=>{class I{constructor(N,V,ye){this.locale=N,this.defaultTimezone=V,this.defaultOptions=ye}transform(N,V,ye,mt){if(null==N||""===N||N!=N)return null;try{return Fr(N,V??this.defaultOptions?.dateFormat??"mediumDate",mt||this.locale,ye??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Ut){throw Bo()}}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.xe9,16),p.rXU(Bs,24),p.rXU(Es,24))}}static{this.\u0275pipe=p.EJ8({name:"date",type:I,pure:!0,standalone:!0})}}return I})(),hs=(()=>{class I{constructor(N){this._locale=N}transform(N,V,ye){if(!function co(I){return!(null==I||""===I||I!=I)}(N))return null;ye||=this._locale;try{return function yn(I,W,N){return function Hi(I,W,N,V,ye,mt,Ut=!1){let Fn="",hi=!1;if(isFinite(I)){let Xr=function Fe(I){let V,ye,mt,Ut,Fn,W=Math.abs(I)+"",N=0;for((ye=W.indexOf("."))>-1&&(W=W.replace(".","")),(mt=W.search(/e/i))>0?(ye<0&&(ye=mt),ye+=+W.slice(mt+1),W=W.substring(0,mt)):ye<0&&(ye=W.length),mt=0;"0"===W.charAt(mt);mt++);if(mt===(Fn=W.length))V=[0],ye=1;else{for(Fn--;"0"===W.charAt(Fn);)Fn--;for(ye-=mt,V=[],Ut=0;mt<=Fn;mt++,Ut++)V[Ut]=Number(W.charAt(mt))}return ye>22&&(V=V.splice(0,21),N=ye-1,ye=1),{digits:V,exponent:N,integerLen:ye}}(I);Ut&&(Xr=function ot(I){if(0===I.digits[0])return I;const W=I.digits.length-I.integerLen;return I.exponent?I.exponent+=2:(0===W?I.digits.push(0,0):1===W&&I.digits.push(0),I.integerLen+=2),I}(Xr));let P=W.minInt,X=W.minFrac,Z=W.maxFrac;if(mt){const Jt=mt.match(ui);if(null===Jt)throw new Error(`${mt} is not a valid digit info`);const bn=Jt[1],un=Jt[3],hr=Jt[5];
1null!=bn&&(P=Nn(bn)),null!=un&&(X=Nn(un)),null!=hr?Z=Nn(hr):null!=un&&X>Z&&(Z=X)}!function xt(I,W,N){if(W>N)throw new Error(`The minimum number of digits after fraction (${W}) is higher than the maximum (${N}).`);let V=I.digits,ye=V.length-I.integerLen;const mt=Math.min(Math.max(W,ye),N);let Ut=mt+I.integerLen,Fn=V[Ut];if(Ut>0){V.splice(Math.max(I.integerLen,Ut));for(let X=Ut;X<V.length;X++)V[X]=0}else{ye=Math.max(0,ye),I.integerLen=1,V.length=Math.max(1,Ut=mt+1),V[0]=0;for(let X=1;X<Ut;X++)V[X]=0}if(Fn>=5)if(Ut-1<0){for(let X=0;X>Ut;X--)V.unshift(0),I.integerLen++;V.unshift(1),I.integerLen++}else V[Ut-1]++;for(;ye<Math.max(0,mt);ye++)V.push(0);let hi=0!==mt;const Xr=W+I.integerLen,P=V.reduceRight(function(X,Z,oe,ve){return ve[oe]=(Z+=X)<10?Z:Z-10,hi&&(0===ve[oe]&&oe>=Xr?ve.pop():hi=!1),Z>=10?1:0},0);P&&(V.unshift(P),I.integerLen++)}(Xr,X,Z);let oe=Xr.digits,ve=Xr.integerLen;const Ne=Xr.exponent;let Me=[];for(hi=oe.every(Jt=>!Jt);ve<P;ve++)oe.unshift(0);for(;ve<0;ve++)oe.unshift(0);ve>0?Me=oe.splice(ve,oe.length):(Me=oe,oe=[0]);const dt=[];for(oe.length>=W.lgSize&&dt.unshift(oe.splice(-W.lgSize,oe.length).join(""));oe.length>W.gSize;)dt.unshift(oe.splice(-W.gSize,oe.length).join(""));oe.length&&dt.unshift(oe.join("")),Fn=dt.join(ce(N,V)),Me.length&&(Fn+=ce(N,ye)+Me.join("")),Ne&&(Fn+=ce(N,ze.Exponential)+"+"+Ne)}else Fn=ce(N,ze.Infinity);return Fn=I<0&&!hi?W.negPre+Fn+W.negSuf:W.posPre+Fn+W.posSuf,Fn}(I,function U(I,W="-"){const N={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},V=I.split(";"),ye=V[0],mt=V[1],Ut=-1!==ye.indexOf(".")?ye.split("."):[ye.substring(0,ye.lastIndexOf("0")+1),ye.substring(ye.lastIndexOf("0")+1)],Fn=Ut[0],hi=Ut[1]||"";N.posPre=Fn.substring(0,Fn.indexOf("#"));for(let P=0;P<hi.length;P++){const X=hi.charAt(P);"0"===X?N.minFrac=N.maxFrac=P+1:"#"===X?N.maxFrac=P+1:N.posSuf+=X}const Xr=Fn.split(",");if(N.gSize=Xr[1]?Xr[1].length:0,N.lgSize=Xr[2]||Xr[1]?(Xr[2]||Xr[1]).length:0,mt){const P=ye.length-N.posPre.length-N.posSuf.length,X=mt.indexOf("#");N.negPre=mt.substring(0,X).replace(/'/g,""),N.negSuf=mt.slice(X+P).replace(/'/g,"")}else N.negPre=W+N.posPre,N.negSuf=N.posSuf;return N}(function Te(I,W){return(0,p.H5H)(I)[p.KH2.NumberFormats][W]}(W,me.Decimal),ce(W,ze.MinusSign)),W,ze.Group,ze.Decimal,N)}(function Zn(I){if("string"==typeof I&&!isNaN(Number(I)-parseFloat(I)))return Number(I);if("number"!=typeof I)throw new Error(`${I} is not a number`);return I}(N),ye,V)}catch(mt){throw Bo()}}static{this.\u0275fac=function(V){return new(V||I)(p.rXU(p.xe9,16))}}static{this.\u0275pipe=p.EJ8({name:"number",type:I,pure:!0,standalone:!0})}}return I})();let jo=(()=>{class I{transform(N,V,ye){if(null==N)return null;if(!this.supports(N))throw Bo();return N.slice(V,ye)}supports(N){return"string"==typeof N||Array.isArray(N)}static{this.\u0275fac=function(V){return new(V||I)}}static{this.\u0275pipe=p.EJ8({name:"slice",type:I,pure:!1,standalone:!0})}}return I})(),ra=(()=>{class I{static{this.\u0275fac=function(V){return new(V||I)}}static{this.\u0275mod=p.$C({type:I})}static{this.\u0275inj=p.G2t({})}}return I})();const ia="browser",Vs="server";function lo(I){return I===ia}function za(I){return I===Vs}let Mo=(()=>{class I{static{this.\u0275prov=(0,p.jDH)({token:I,providedIn:"root",factory:()=>lo((0,p.WQX)(p.Agw))?new vo((0,p.WQX)(R),window):new bc})}}return I})();class vo{constructor(W,N){this.document=W,this.window=N,this.offset=()=>[0,0]}setOffset(W){this.offset=Array.isArray(W)?()=>W:W}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(W){this.window.scrollTo(W[0],W[1])}scrollToAnchor(W){const N=function ri(I,W){const N=I.getElementById(W)||I.getElementsByName(W)[0];if(N)return N;if("function"==typeof I.createTreeWalker&&I.body&&"function"==typeof I.body.attachShadow){const V=I.createTreeWalker(I.body,NodeFilter.SHOW_ELEMENT);let ye=V.currentNode;for(;ye;){const mt=ye.shadowRoot;if(mt){const Ut=mt.getElementById(W)||mt.querySelector(`[name="${W}"]`);if(Ut)return Ut}ye=V.nextNode()}}return null}(this.document,W);N&&(this.scrollToElement(N),N.focus())}setHistoryScrollRestoration(W){this.window.history.scrollRestoration=W}scrollToElement(W){const N=W.getBoundingClientRect(),V=N.left+this.window.pageXOffset,ye=N.top+this.window.pageYOffset,mt=this.offset();this.window.scrollTo(V-mt[0],ye-mt[1])}}class bc{setOffset(W){}getScrollPosition(){return[0,0]}scrollToPosition(W){}scrollToAnchor(W){}setHistoryScrollRestoration(W){}}class Ka{}},1626:(Lt,be,D)=>{D.d(be,{Lr:()=>Se,Nl:()=>ut,Qq:()=>ne,a7:()=>
vendor: 7,549 bytes, line 1
1en,hv:()=>He,kG:()=>ln,q1:()=>Eo}),D(467);var u=D(4438),v=D(7673),Y=D(1985),b=D(6648),x=D(274),R=D(5964),L=D(6354),j=D(980),z=D(5558),Q=D(177);class Ie{}class Re{}class Se{constructor(De){this.normalizedNames=new Map,this.lazyUpdate=null,De?"string"==typeof De?this.lazyInit=()=>{this.headers=new Map,De.split("\n").forEach(Ae=>{const St=Ae.indexOf(":");if(St>0){const yt=Ae.slice(0,St),tn=yt.toLowerCase(),rn=Ae.slice(St+1).trim();this.maybeSetNormalizedName(yt,tn),this.headers.has(tn)?this.headers.get(tn).push(rn):this.headers.set(tn,[rn])}})}:typeof Headers<"u"&&De instanceof Headers?(this.headers=new Map,De.forEach((Ae,St)=>{this.setHeaderEntries(St,Ae)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(De).forEach(([Ae,St])=>{this.setHeaderEntries(Ae,St)})}:this.headers=new Map}has(De){return this.init(),this.headers.has(De.toLowerCase())}get(De){this.init();const Ae=this.headers.get(De.toLowerCase());return Ae&&Ae.length>0?Ae[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(De){return this.init(),this.headers.get(De.toLowerCase())||null}append(De,Ae){return this.clone({name:De,value:Ae,op:"a"})}set(De,Ae){return this.clone({name:De,value:Ae,op:"s"})}delete(De,Ae){return this.clone({name:De,value:Ae,op:"d"})}maybeSetNormalizedName(De,Ae){this.normalizedNames.has(Ae)||this.normalizedNames.set(Ae,De)}init(){this.lazyInit&&(this.lazyInit instanceof Se?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(De=>this.applyUpdate(De)),this.lazyUpdate=null))}copyFrom(De){De.init(),Array.from(De.headers.keys()).forEach(Ae=>{this.headers.set(Ae,De.headers.get(Ae)),this.normalizedNames.set(Ae,De.normalizedNames.get(Ae))})}clone(De){const Ae=new Se;return Ae.lazyInit=this.lazyInit&&this.lazyInit instanceof Se?this.lazyInit:this,Ae.lazyUpdate=(this.lazyUpdate||[]).concat([De]),Ae}applyUpdate(De){const Ae=De.name.toLowerCase();switch(De.op){case"a":case"s":let St=De.value;if("string"==typeof St&&(St=[St]),0===St.length)return;this.maybeSetNormalizedName(De.name,Ae);const yt=("a"===De.op?this.headers.get(Ae):void 0)||[];yt.push(...St),this.headers.set(Ae,yt);break;case"d":const tn=De.value;if(tn){let rn=this.headers.get(Ae);if(!rn)return;rn=rn.filter(cr=>-1===tn.indexOf(cr)),0===rn.length?(this.headers.delete(Ae),this.normalizedNames.delete(Ae)):this.headers.set(Ae,rn)}else this.headers.delete(Ae),this.normalizedNames.delete(Ae)}}setHeaderEntries(De,Ae){const St=(Array.isArray(Ae)?Ae:[Ae]).map(tn=>tn.toString()),yt=De.toLowerCase();this.headers.set(yt,St),this.maybeSetNormalizedName(De,yt)}forEach(De){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ae=>De(this.normalizedNames.get(Ae),this.headers.get(Ae)))}}class lt{encodeKey(De){return En(De)}encodeValue(De){return En(De)}decodeKey(De){return decodeURIComponent(De)}decodeValue(De){return decodeURIComponent(De)}}const wt=/%(\d[a-f0-9])/gi,Zt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function En(ue){return encodeURIComponent(ue).replace(wt,(De,Ae)=>Zt[Ae]??De)}function Le(ue){return`${ue}`}class ut{constructor(De={}){if(this.updates=null,this.cloneFrom=null,this.encoder=De.encoder||new lt,De.fromString){if(De.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function je(ue,De){const Ae=new Map;return ue.length>0&&ue.replace(/^\?/,"").split("&").forEach(yt=>{const tn=yt.indexOf("="),[rn,cr]=-1==tn?[De.decodeKey(yt),""]:[De.decodeKey(yt.slice(0,tn)),De.decodeValue(yt.slice(tn+1))],Hn=Ae.get(rn)||[];Hn.push(cr),Ae.set(rn,Hn)}),Ae}(De.fromString,this.encoder)}else De.fromObject?(this.map=new Map,Object.keys(De.fromObject).forEach(Ae=>{const St=De.fromObject[Ae],yt=Array.isArray(St)?St.map(Le):[Le(St)];this.map.set(Ae,yt)})):this.map=null}has(De){return this.init(),this.map.has(De)}get(De){this.init();const Ae=this.map.get(De);return Ae?Ae[0]:null}getAll(De){return this.init(),this.map.get(De)||null}keys(){return this.init(),Array.from(this.map.keys())}append(De,Ae){return this.clone({param:De,value:Ae,op:"a"})}appendAll(De){const Ae=[];return Object.keys(De).forEach(St=>{const yt=De[St];Array.isArray(yt)?yt.forEach(tn=>{Ae.push({param:St,value:tn,op:"a"})}):Ae.push({param:St,value:yt,op:"a"})}),this.clone(Ae)}set(De,Ae){return this.clone({param:De,value:Ae,op:"s"})}delete(De,Ae){return this.clone({param:De,value:Ae,op:"d"})}toString(){return this.init(),this.keys().map(De=>{const Ae=this.encoder.encodeKey(De);return this.map.get(De).map(St=>Ae+"="+this.encoder.encodeValue(St)).join("&")}).filter(De=>""!==De).join("&")}clone(De){const Ae=new ut({encoder:this.encoder});return Ae.cloneFrom=this.cloneFrom||this,Ae.updates=(this.updates||[]).concat(De),Ae}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(De=>this.map.set(De,this.cloneFrom.map.get(De))),this.updates.forEach(De=>{switch(De.op){case"a":case"s":const Ae=("a"===De.op?this.map.get(De.param):void 0)||[];Ae.push(Le(De.value)),this.map.set(De.param,Ae);break;case"d":if(void 0===De.value){this.map.delete(De.param);break}{let St=this.map.get(De.param)||[];const yt=St.indexOf(Le(De.value));-1!==yt&&St.splice(yt,1),St.length>0?this.map.set(De.param,St):this.map.delete(De.param)}}}),this.cloneFrom=this.updates=null)}}class me{constructor(){this.map=new Map}set(De,Ae){return this.map.set(De,Ae),this}get(De){return this.map.has(De)||this.map.set(De,De.defaultValue()),this.map.get(De)}delete(De){return this.map.delete(De),this}has(De){return this.map.has(De)}keys(){return this.map.keys()}}function ge(ue){return typeof ArrayBuffer<"u"&&ue instanceof ArrayBuffer}function Be(ue){return typeof Blob<"u"&&ue instanceof Blob}function pe(ue){return typeof FormData<"u"&&ue instanceof FormData}class tt{constructor(De,Ae,St,yt){let tn;if(this.url=Ae,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=De.toUpperCase(),function ht(ue){switch(ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||yt?(this.body=void 0!==St?St:null,tn=yt):tn=St,tn&&(this.reportProgress=!!tn.reportProgress,this.withCredentials=!!tn.withCredentials,tn.responseType&&(this.responseType=tn.responseType),tn.headers&&(this.headers=tn.headers),tn.context&&(this.context=tn.context),tn.params&&(this.params=tn.params),this.transferCache=tn.transferCache),this.headers??=new Se,this.context??=new me,this.params){const rn=this.params.toString();if(0===rn.length)this.urlWithParams=Ae;else{const cr=Ae.indexOf("?");this.urlWithParams=Ae+(-1===cr?"?":cr<Ae.length-1?"&":"")+rn}}else this.params=new ut,this.urlWithParams=Ae}serializeBody(){return null===this.body?null:"string"==typeof this.body||ge(this.body)||Be(this.body)||pe(this.body)||function ze(ue){return typeof URLSearchParams<"u"&&ue instanceof URLSearchParams}(this.body)?this.body:this.body instanceof ut?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||pe(this.body)?null:Be(this.body)?this.body.type||null:ge(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ut?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(De={}){const Ae=De.method||this.method,St=De.url||this.url,yt=De.responseType||this.responseType,t
1n=De.transferCache??this.transferCache,rn=void 0!==De.body?De.body:this.body,cr=De.withCredentials??this.withCredentials,Hn=De.reportProgress??this.reportProgress;let zr=De.headers||this.headers,xi=De.params||this.params;const Pr=De.context??this.context;return void 0!==De.setHeaders&&(zr=Object.keys(De.setHeaders).reduce((di,Xi)=>di.set(Xi,De.setHeaders[Xi]),zr)),De.setParams&&(xi=Object.keys(De.setParams).reduce((di,Xi)=>di.set(Xi,De.setParams[Xi]),xi)),new tt(Ae,St,rn,{params:xi,headers:zr,context:Pr,reportProgress:Hn,responseType:yt,withCredentials:cr,transferCache:tn})}}var He=function(ue){return ue[ue.Sent=0]="Sent",ue[ue.UploadProgress=1]="UploadProgress",ue[ue.ResponseHeader=2]="ResponseHeader",ue[ue.DownloadProgress=3]="DownloadProgress",ue[ue.Response=4]="Response",ue[ue.User=5]="User",ue}(He||{});class st{constructor(De,Ae=ln.Ok,St="OK"){this.headers=De.headers||new Se,this.status=void 0!==De.status?De.status:Ae,this.statusText=De.statusText||St,this.url=De.url||null,this.ok=this.status>=200&&this.status<300}}class At extends st{constructor(De={}){super(De),this.type=He.ResponseHeader}clone(De={}){return new At({headers:De.headers||this.headers,status:void 0!==De.status?De.status:this.status,statusText:De.statusText||this.statusText,url:De.url||this.url||void 0})}}class gn extends st{constructor(De={}){super(De),this.type=He.Response,this.body=void 0!==De.body?De.body:null}clone(De={}){return new gn({body:void 0!==De.body?De.body:this.body,headers:De.headers||this.headers,status:void 0!==De.status?De.status:this.status,statusText:De.statusText||this.statusText,url:De.url||this.url||void 0})}}class fn extends st{constructor(De){super(De,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${De.url||"(unknown url)"}`:`Http failure response for ${De.url||"(unknown url)"}: ${De.status} ${De.statusText}`,this.error=De.error||null}}var ln=function(ue){return ue[ue.Continue=100]="Continue",ue[ue.SwitchingProtocols=101]="SwitchingProtocols",ue[ue.Processing=102]="Processing",ue[ue.EarlyHints=103]="EarlyHints",ue[ue.Ok=200]="Ok",ue[ue.Created=201]="Created",ue[ue.Accepted=202]="Accepted",ue[ue.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",ue[ue.NoContent=204]="NoContent",ue[ue.ResetContent=205]="ResetContent",ue[ue.PartialContent=206]="PartialContent",ue[ue.MultiStatus=207]="MultiStatus",ue[ue.AlreadyReported=208]="AlreadyReported",ue[ue.ImUsed=226]="ImUsed",ue[ue.MultipleChoices=300]="MultipleChoices",ue[ue.MovedPermanently=301]="MovedPermanently",ue[ue.Found=302]="Found",ue[ue.SeeOther=303]="SeeOther",ue[ue.NotModified=304]="NotModified",ue[ue.UseProxy=305]="UseProxy",ue[ue.Unused=306]="Unused",ue[ue.TemporaryRedirect=307]="TemporaryRedirect",ue[ue.PermanentRedirect=308]="PermanentRedirect",ue[ue.BadRequest=400]="BadRequest",ue[ue.Unauthorized=401]="Unauthorized",ue[ue.PaymentRequired=402]="PaymentRequired",ue[ue.Forbidden=403]="Forbidden",ue[ue.NotFound=404]="NotFound",ue[ue.MethodNotAllowed=405]="MethodNotAllowed",ue[ue.NotAcceptable=406]="NotAcceptable",ue[ue.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",ue[ue.RequestTimeout=408]="RequestTimeout",ue[ue.Conflict=409]="Conflict",ue[ue.Gone=410]="Gone",ue[ue.LengthRequired=411]="LengthRequired",ue[ue.PreconditionFailed=412]="PreconditionFailed",ue[ue.PayloadTooLarge=413]="PayloadTooLarge",ue[ue.UriTooLong=414]="UriTooLong",ue[ue.UnsupportedMediaType=415]="UnsupportedMediaType",ue[ue.RangeNotSatisfiable=416]="RangeNotSatisfiable",ue[ue.ExpectationFailed=417]="ExpectationFailed",ue[ue.ImATeapot=418]="ImATeapot",ue[ue.MisdirectedRequest=421]="MisdirectedRequest",ue[ue.UnprocessableEntity=422]="UnprocessableEntity",ue[ue.Locked=423]="Locked",ue[ue.FailedDependency=424]="FailedDependency",ue[ue.TooEarly=425]="TooEarly",ue[ue.UpgradeRequired=426]="UpgradeRequired",ue[ue.PreconditionRequired=428]="PreconditionRequired",ue[ue.TooManyRequests=429]="TooManyRequests",ue[ue.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",ue[ue.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",ue[ue.InternalServerError=500]="InternalServerError",ue[ue.NotImplemented=501]="NotImplemented",ue[ue.BadGateway=502]="BadGateway",ue[ue.ServiceUnavailable=503]="ServiceUnavailable",ue[ue.GatewayTimeout=504]="GatewayTimeout",ue[ue.HttpVersionNotSupported=505]="HttpVersionNotSupported",ue[ue.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",ue[ue.InsufficientStorage=507]="InsufficientStorage",ue[ue.LoopDetected=508]="LoopDetected",ue[ue.NotExtended=510]="NotExtended",ue[ue.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",ue}(ln||{});function xe(ue,De){return{body:De,headers:ue.headers,context:ue.context,observe:ue.observe,params:ue.params,reportProgress:ue.reportProgress,responseType:ue.responseType,withCredentials:ue.withCredentials,transferCache:ue.transferCache}}let ne=(()=>{class ue{constructor(Ae){this.handler=Ae}request(Ae,St,yt={}){let tn;if(Ae instanceof tt)tn=Ae;else{let Hn,zr;Hn=yt.headers instanceof Se?yt.headers:new Se(yt.headers),yt.params&&(zr=yt.params instanceof ut?yt.params:new ut({fromObject:yt.params})),tn=new tt(Ae,St,void 0!==yt.body?yt.body:null,{headers:Hn,context:yt.context,params:zr,reportProgress:yt.reportProgress,responseType:yt.responseType||"json",withCredentials:yt.withCredentials,transferCache:yt.transferCache})}const rn=(0,v.of)(tn).pipe((0,x.H)(Hn=>this.handler.handle(Hn)));if(Ae instanceof tt||"events"===yt.observe)return rn;const cr=rn.pipe((0,R.p)(Hn=>Hn instanceof gn));switch(yt.observe||"body"){case"body":switch(tn.responseType){case"arraybuffer":return cr.pipe((0,L.T)(Hn=>{if(null!==Hn.body&&!(Hn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Hn.body}));case"blob":return cr.pipe((0,L.T)(Hn=>{if(null!==Hn.body&&!(Hn.body instanceof Blob))throw new Error("Response is not a Blob.");return Hn.body}));case"text":return cr.pipe((0,L.T)(Hn=>{if(null!==Hn.body&&"string"!=typeof Hn.body)throw new Error("Response is not a string.");return Hn.body}));default:return cr.pipe((0,L.T)(Hn=>Hn.body))}case"response":return cr;default:throw new Error(`Unreachable: unhandled observe type ${yt.observe}}`)}}delete(Ae,St={}){return this.request("DELETE",Ae,St)}get(Ae,St={}){return this.request("GET",Ae,St)}head(Ae,St={}){return this.request("HEAD",Ae,St)}jsonp(Ae,St){return this.request("JSONP",Ae,{params:(new ut).append(St,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ae,St={}){return this.request("OPTIONS",Ae,St)}patch(Ae,St,yt={}){return this.request("PATCH",Ae,xe(yt,St))}post(Ae,St,yt={}){return this.request("POST",Ae,xe(yt,St))}put(Ae,St,yt={}){return this.request("PUT",Ae,xe(yt,St))}static{this.\u0275fac=function(St){return new(St||ue)(u.KVO(Ie))}}static{this.\u0275prov=u.jDH({token:ue,factory:ue.\u0275fac})}}return ue})();function On(ue,De){return De(ue)}function hn(ue,De){return(Ae,St)=>De.intercept(Ae,{handle:yt=>ue(yt,St)})}const en=new u.nKC(""),Qt=new u.nKC(""),Ht=new u.nKC(""),ar=new u.nKC("");function Gn(){let ue=null;return(De,Ae)=>{null===ue&&(ue=((0,u.WQX)(en,{optional:!0})??[]).reduceRight(hn,On));const St=(0,u.WQX)(u.TgB),yt=St.add();return ue(De,Ae).pipe((0,j.j)(()=>St.remove(yt)))}}let vn=(()=>{class ue extends Ie{constructor(Ae,St){super(),this.backend=Ae,this.injector=St,this.chain=null,this.pendingTasks=(0,u.WQX)(u.TgB);const yt=(0,u.WQX)(ar,{optional:!0});this.backend=yt??Ae}handle(Ae){if(null===this.chain){const yt=Array.from(new Set([...this.injector.get(Qt),...this.injector.get(Ht,[])]));this.chain=yt.reduceRight((tn,rn)=>function xn(ue,De,Ae){return(St,yt)=>(0,u.N4e)(Ae,()=>De(St,tn=>ue(tn,yt)))}(tn,rn,this.injector),On)}const St=this.pendingTasks.add();return this.chain(Ae,yt=>this.backend.handle(yt)).pipe((0,j.j)(()=>this.pendingTasks.remove(St)))}static{this.\u0275fac=function(St){return new(St||ue)(u.KVO(Re),u.KVO(u.uvJ))}}static{this.\u0275prov=u.jDH({token:ue,factory:ue.\u0275fac})}}return ue})();const is=/^\)\]\}',?\n/;let Mr=(()=>{class ue{constructor(Ae){this.xhrFactory=Ae}handle(Ae){if("JSONP"===Ae.method)throw new u.wOt(-2800,!1);const St=this.xhrFactory;return(St.\u0275loadImpl?(0,b.H)(St.\u0275loadImpl()):(0,v.of)(null)).pipe((0,z.n)(()=>new Y.c(tn=>{const rn=St.build();if(rn.open(Ae.method,Ae.urlWithParams),Ae.withCredentials&&(rn.withCredentials=!0),Ae.headers.forEac
1h((dr,mr)=>rn.setRequestHeader(dr,mr.join(","))),Ae.headers.has("Accept")||rn.setRequestHeader("Accept","application/json, text/plain, */*"),!Ae.headers.has("Content-Type")){const dr=Ae.detectContentTypeHeader();null!==dr&&rn.setRequestHeader("Content-Type",dr)}if(Ae.responseType){const dr=Ae.responseType.toLowerCase();rn.responseType="json"!==dr?dr:"text"}const cr=Ae.serializeBody();let Hn=null;const zr=()=>{if(null!==Hn)return Hn;const dr=rn.statusText||"OK",mr=new Se(rn.getAllResponseHeaders()),Dr=function qn(ue){return"responseURL"in ue&&ue.responseURL?ue.responseURL:/^X-Request-URL:/m.test(ue.getAllResponseHeaders())?ue.getResponseHeader("X-Request-URL"):null}(rn)||Ae.url;return Hn=new At({headers:mr,status:rn.status,statusText:dr,url:Dr}),Hn},xi=()=>{let{headers:dr,status:mr,statusText:Dr,url:Mi}=zr(),ti=null;mr!==ln.NoContent&&(ti=typeof rn.response>"u"?rn.responseText:rn.response),0===mr&&(mr=ti?ln.Ok:0);let qi=mr>=200&&mr<300;if("json"===Ae.responseType&&"string"==typeof ti){const Vi=ti;ti=ti.replace(is,"");try{ti=""!==ti?JSON.parse(ti):null}catch(Uo){ti=Vi,qi&&(qi=!1,ti={error:Uo,text:ti})}}qi?(tn.next(new gn({body:ti,headers:dr,status:mr,statusText:Dr,url:Mi||void 0})),tn.complete()):tn.error(new fn({error:ti,headers:dr,status:mr,statusText:Dr,url:Mi||void 0}))},Pr=dr=>{const{url:mr}=zr(),Dr=new fn({error:dr,status:rn.status||0,statusText:rn.statusText||"Unknown Error",url:mr||void 0});tn.error(Dr)};let di=!1;const Xi=dr=>{di||(tn.next(zr()),di=!0);let mr={type:He.DownloadProgress,loaded:dr.loaded};dr.lengthComputable&&(mr.total=dr.total),"text"===Ae.responseType&&rn.responseText&&(mr.partialText=rn.responseText),tn.next(mr)},Ln=dr=>{let mr={type:He.UploadProgress,loaded:dr.loaded};dr.lengthComputable&&(mr.total=dr.total),tn.next(mr)};return rn.addEventListener("load",xi),rn.addEventListener("error",Pr),rn.addEventListener("timeout",Pr),rn.addEventListener("abort",Pr),Ae.reportProgress&&(rn.addEventListener("progress",Xi),null!==cr&&rn.upload&&rn.upload.addEventListener("progress",Ln)),rn.send(cr),tn.next({type:He.Sent}),()=>{rn.removeEventListener("error",Pr),rn.removeEventListener("abort",Pr),rn.removeEventListener("load",xi),rn.removeEventListener("timeout",Pr),Ae.reportProgress&&(rn.removeEventListener("progress",Xi),null!==cr&&rn.upload&&rn.upload.removeEventListener("progress",Ln)),rn.readyState!==rn.DONE&&rn.abort()}})))}static{this.\u0275fac=function(St){return new(St||ue)(u.KVO(Q.N0))}}static{this.\u0275prov=u.jDH({token:ue,factory:ue.\u0275fac})}}return ue})();const vr=new u.nKC(""),Bi=new u.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),wi=new u.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class no{}let ys=(()=>{class ue{constructor(Ae,St,yt){this.doc=Ae,this.platform=St,this.cookieName=yt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ae=this.doc.cookie||"";return Ae!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Q._b)(Ae,this.cookieName),this.lastCookieString=Ae),this.lastToken}static{this.\u0275fac=function(St){return new(St||ue)(u.KVO(Q.qQ),u.KVO(u.Agw),u.KVO(Bi))}}static{this.\u0275prov=u.jDH({token:ue,factory:ue.\u0275fac})}}return ue})();function Pi(ue,De){const Ae=ue.url.toLowerCase();if(!(0,u.WQX)(vr)||"GET"===ue.method||"HEAD"===ue.method||Ae.startsWith("http://")||Ae.startsWith("https://"))return De(ue);const St=(0,u.WQX)(no).getToken(),yt=(0,u.WQX)(wi);return null!=St&&!ue.headers.has(yt)&&(ue=ue.clone({headers:ue.headers.set(yt,St)})),De(ue)}var it=function(ue){return ue[ue.Interceptors=0]="Interceptors",ue[ue.LegacyInterceptors=1]="LegacyInterceptors",ue[ue.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ue[ue.NoXsrfProtection=3]="NoXsrfProtection",ue[ue.JsonpSupport=4]="JsonpSupport",ue[ue.RequestsMadeViaParent=5]="RequestsMadeViaParent",ue[ue.Fetch=6]="Fetch",ue}(it||{});function he(ue,De){return{\u0275kind:ue,\u0275providers:De}}function $e(...ue){const De=[ne,Mr,vn,{provide:Ie,useExisting:vn},{provide:Re,useExisting:Mr},{provide:Qt,useValue:Pi,multi:!0},{provide:vr,useValue:!0},{provide:no,useClass:ys}];for(const Ae of ue)De.push(...Ae.\u0275providers);return(0,u.EmA)(De)}const cn=new u.nKC("");let Eo=(()=>{class ue{static{this.\u0275fac=function(St){return new(St||ue)}}static{this.\u0275mod=u.$C({type:ue})}static{this.\u0275inj=u.G2t({providers:[$e(he(it.LegacyInterceptors,[{provide:cn,useFactory:Gn},{provide:Qt,useExisting:cn,multi:!0}]))]})}}return ue})()},4438:(Lt,be,D)=>{function u(t,r){return Object.is(t,r)}D.d(be,{bc$:()=>XE,iLQ:()=>NS,sZ2:()=>k0,hnV:()=>hw,Hbi:()=>Mu,o8S:()=>wu,BIS:()=>qE,gRc:()=>fg,Ql9:()=>P1,Ocv:()=>Uc,Z63:()=>fi,aKT:()=>Hr,uvJ:()=>Gs,zcH:()=>
1cs,bkB:()=>tc,$GK:()=>yr,nKC:()=>yt,zZn:()=>Po,_q3:()=>bt,MKu:()=>jS,xe9:()=>QC,Co$:()=>Vy,Vns:()=>zf,SKi:()=>To,Xx1:()=>lo,Agw:()=>YE,PLl:()=>L0,sFG:()=>WT,_9s:()=>Zb,czy:()=>cp,WPN:()=>Fa,kdw:()=>oa,C4Q:()=>iu,NYb:()=>MS,giA:()=>bv,RxE:()=>rw,c1b:()=>cu,gXe:()=>Jo,mal:()=>Cy,L39:()=>Wn,EWP:()=>vg,Ol2:()=>vA,w6W:()=>II,oH4:()=>wv,QZP:()=>lE,SmG:()=>j1,Rfq:()=>Pi,WQX:()=>Zn,QuC:()=>ss,EmA:()=>ua,Udg:()=>CN,fpN:()=>Ld,HJs:()=>e0,N4e:()=>Ci,vPA:()=>oA,O8t:()=>JS,An2:()=>KT,H3F:()=>DS,H8p:()=>Lu,KH2:()=>Ls,TgB:()=>_d,wOt:()=>Pt,WHO:()=>xd,e01:()=>KC,lNU:()=>Gn,h9k:()=>tm,$MX:()=>ed,ZF7:()=>Df,Kcf:()=>Zg,e5t:()=>R_,UyX:()=>O_,cWb:()=>VM,osQ:()=>jM,H5H:()=>bd,Zy3:()=>An,mq5:()=>Ad,JZv:()=>qn,LfX:()=>Nn,plB:()=>dd,jNT:()=>RS,zjR:()=>fw,XSP:()=>XA,TL$:()=>OM,Tbb:()=>Gr,rcV:()=>Rc,Vt3:()=>yI,Mj6:()=>ps,GFd:()=>pA,OA$:()=>Lr,Jv_:()=>ND,aNF:()=>hv,R7$:()=>J_,BMQ:()=>vl,HbH:()=>FA,AVh:()=>Zm,wni:()=>CD,VBU:()=>Mh,FsC:()=>Yd,jDH:()=>U,G2t:()=>Fe,$C:()=>Kd,EJ8:()=>Pu,rXU:()=>Lf,nrm:()=>Tl,eu8:()=>ev,bVm:()=>lC,qex:()=>cC,k0s:()=>aC,j41:()=>sC,RV6:()=>uC,xGo:()=>xE,Mr5:()=>dC,KVO:()=>tr,kS0:()=>xg,QTQ:()=>mb,bIt:()=>DC,lsd:()=>ph,joV:()=>Ki,qSk:()=>y0,XpG:()=>MC,nI1:()=>jD,bMT:()=>GD,i5U:()=>$D,brH:()=>zD,SdG:()=>mD,NAR:()=>gD,Y8G:()=>qm,FS9:()=>aS,Mz_:()=>lv,lJ4:()=>PD,eq3:()=>bu,l_i:()=>yc,sMw:()=>Ta,ziG:()=>kD,s1E:()=>xD,l4e:()=>rr,sGs:()=>t1,lV:()=>_S,zJS:()=>LD,mGM:()=>OC,sdS:()=>gh,Njj:()=>hM,EBC:()=>gT,tSv:()=>Jl,eBV:()=>Mg,npT:()=>ib,B4B:()=>uT,n$t:()=>rp,Aen:()=>Va,xc7:()=>Qm,DNE:()=>km,C5r:()=>KD,EFF:()=>wD,JRh:()=>rg,SpI:()=>ig,Lme:()=>Su,E5c:()=>mh,LHq:()=>Nd,DH7:()=>Fc,mxI:()=>Pd,R50:()=>pS,GBs:()=>Iu}),D(467);let v=null,Y=!1,b=1;const x=Symbol("SIGNAL");function R(t){const r=v;return v=t,r}const Q={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:()=>{}};function Ie(t){if(Y)throw new Error("");if(null===v)return;v.consumerOnSignalRead(t);const r=v.nextProducerIndex++;ht(v),r<v.producerNode.length&&v.producerNode[r]!==t&&me(v)&&Ce(v.producerNode[r],v.producerIndexOfThis[r]),v.producerNode[r]!==t&&(v.producerNode[r]=t,v.producerIndexOfThis[r]=me(v)?ut(t,v,r):0),v.producerLastReadVersion[r]=t.version}function Se(t){if((!me(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==b)){if(!t.producerMustRecompute(t)&&!En(t))return t.dirty=!1,void(t.lastCleanEpoch=b);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=b}}function et(t){if(void 0===t.liveConsumerNode)return;const r=Y;Y=!0;try{for(const i of t.liveConsumerNode)i.dirty||je(i)}finally{Y=r}}function lt(){return!1!==v?.consumerAllowSignalWrites}function je(t){t.dirty=!0,et(t),t.consumerMarkedDirty?.(t)}function wt(t){return t&&(t.nextProducerIndex=0),R(t)}function Zt(t,r){if(R(r),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(me(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)Ce(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function En(t){ht(t);for(let r=0;r<t.producerNode.length;r++){const i=t.producerNode[r],a=t.producerLastReadVersion[r];if(a!==i.version||(Se(i),a!==i.version))return!0}return!1}function Le(t){if(ht(t),me(t))for(let r=0;r<t.producerNode.length;r++)Ce(t.producerNode[r],t.producerIndexOfThis[r]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function ut(t,r,i){if(ge(t),ht(t),0===t.liveConsumerNode.length)for(let a=0;a<t.producerNode.length;a++)t.producerIndexOfThis[a]=ut(t.producerNode[a],t,a);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(r)-1}function Ce(t,r){if(ge(t),ht(t),1===t.liveConsumerNode.length)for(let a=0;a<t.producerNode.length;a++)Ce(t.producerNode[a],t.producerIndexOfThis[a]);const i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[r]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[r]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,r<t.liveConsumerNode.length){const a=t.liveConsumerIndexOfThis[r],l=t.liveConsumerNode[r];ht(l),l.producerIndexOfThis[a]=r}}function me(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function ht(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function ge(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}const pe=Symbol("UNSET"),ze=Symbol("COMPUTING"),tt=Symbol("ERRORED"),He={...Q,value:pe,dirty:!0,error:null,equal:u,producerMustRecompute:t=>t.value===pe||t.value===ze,producerRecomputeValue(t){if(t.value===ze)throw new Error("Detected cycle in computations.");const r=t.value;t.value=ze;const i=wt(t);let a;try{a=t.computation()}catch(l){a=tt,t.error=l}finally{Zt(t,i)}r!==pe&&r!==tt&&a!==tt&&t.equal(r,a)?t.value=r:(t.value=a,t.version++)}};let At=function st(){throw new Error};function gn(){At()}let ln=null;function te(t,r){lt()||gn(),t.equal(t.value,r)||(t.value=r,function ke(t){t.version++,function Re(){b++}(),et(t),ln?.()}(t))}const Te={...Q,equal:u,value:void 0};const Qe=()=>{},On={...Q,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{null!==t.schedule&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Qe};var xn=D(1413),en=D(8359),Qt=D(4412),Ht=D(6354);const Gn="https://g.co/ng/security#xss";
vendor: 6,126 bytes, line 1
1class Pt extends Error{constructor(r,i){super(An(r,i)),this.code=r}}function An(t,r){return`NG0${Math.abs(t)}${r?": "+r:""}`}function sn(t){return{toString:t}.toString()}const Fr="__parameters__";function ci(t,r,i){return sn(()=>{const a=function mi(t){return function(...i){if(t){const a=t(...i);for(const l in a)this[l]=a[l]}}}(r);function l(...f){if(this instanceof l)return a.apply(this,f),this;const m=new l(...f);return _.annotation=m,_;function _(T,k,K){const se=T.hasOwnProperty(Fr)?T[Fr]:Object.defineProperty(T,Fr,{value:[]})[Fr];for(;se.length<=K;)se.push(null);return(se[K]=se[K]||[]).push(m),T}}return i&&(l.prototype=Object.create(i.prototype)),l.prototype.ngMetadataName=t,l.annotationCls=l,l})}const qn=globalThis;function Ar(t){for(let r in t)if(t[r]===Ar)return r;throw Error("Could not find renamed property on target object.")}function Bi(t,r){for(const i in r)r.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=r[i])}function Gr(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Gr).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const r=t.toString();if(null==r)return""+r;const i=r.indexOf("\n");return-1===i?r:r.substring(0,i)}function wi(t,r){return null==t||""===t?null===r?"":r:null==r||""===r?t:t+" "+r}const ys=Ar({__forward_ref__:Ar});function Pi(t){return t.__forward_ref__=Pi,t.toString=function(){return Gr(this())},t}function We(t){return it(t)?t():t}function it(t){return"function"==typeof t&&t.hasOwnProperty(ys)&&t.__forward_ref__===Pi}function U(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Fe(t){return{providers:t.providers||[],imports:t.imports||[]}}function xt(t){return $r(t,ue)||$r(t,Ae)}function Nn(t){return null!==xt(t)}function $r(t,r){return t.hasOwnProperty(r)?t[r]:null}function Qn(t){return t&&(t.hasOwnProperty(De)||t.hasOwnProperty(St))?t[De]:null}const ue=Ar({\u0275prov:Ar}),De=Ar({\u0275inj:Ar}),Ae=Ar({ngInjectableDef:Ar}),St=Ar({ngInjectorDef:Ar});class yt{constructor(r,i){this._desc=r,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=U({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function dr(t){return t&&!!t.\u0275providers}const mr=Ar({\u0275cmp:Ar}),Dr=Ar({\u0275dir:Ar}),Mi=Ar({\u0275pipe:Ar}),ti=Ar({\u0275mod:Ar}),qi=Ar({\u0275fac:Ar}),Vi=Ar({__NG_ELEMENT_ID__:Ar}),Uo=Ar({__NG_ENV_ID__:Ar});function Xn(t){return"string"==typeof t?t:null==t?"":String(t)}function ta(t,r){throw new Pt(-201,!1)}var yr=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(yr||{});let Us;function Da(){return Us}function _i(t){const r=Us;return Us=t,r}function na(t,r,i){const a=xt(t);return a&&"root"==a.providedIn?void 0===a.value?a.value=a.factory():a.value:i&yr.Optional?null:void 0!==r?r:void ta()}const Es={},Qi="__NG_DI_FLAG__",Ts="ngTempTokenPath",ao=/\n/gm,ji="__source";let Vo;function hs(t){const r=Vo;return Vo=t,r}function Hs(t,r=yr.Default){if(void 0===Vo)throw new Pt(-203,!1);return null===Vo?na(t,void 0,r):Vo.get(t,r&yr.Optional?null:void 0,r)}function tr(t,r=yr.Default){return(Da()||Hs)(We(t),r)}function Zn(t,r=yr.Default){return tr(t,jo(r))}function jo(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Is(t){const r=[];for(let i=0;i<t.length;i++){const a=We(t[i]);if(Array.isArray(a)){if(0===a.length)throw new Pt(900,!1);let l,f=yr.Default;for(let m=0;m<a.length;m++){const _=a[m],T=ia(_);"number"==typeof T?-1===T?l=_.token:f|=T:l=_}r.push(tr(l,f))}else r.push(tr(a))}return r}function ra(t,r){return t[Qi]=r,t.prototype[Qi]=r,t}function ia(t){return t[Qi]}const lo=ra(ci("Optional"),8),oa=ra(ci("SkipSelf"),4);function sa(t,r){return t.hasOwnProperty(qi)?t[qi]:null}function ri(t,r){t.forEach(i=>Array.isArray(i)?ri(i,r):r(i))}function bc(t,r,i){r>=t.length?t.push(i):t.splice(r,0,i)}function Ka(t,r){return r>=t.length-1?t.pop():t.splice(r,1)[0]}function yi(t,r,i){let a=Go(t,r);return a>=0?t[1|a]=i:(a=~a,function js(t,r,i,a){let l=t.length;if(l==r)t.push(i,a);else if(1===l)t.push(a,t[0]),t[0]=i;else{for(l--,t.push(t[l-1],t[l]);l>r;)t[l]=t[l-2],l--;t[r]=i,t[r+1]=a}}(t,a,r,i)),a}function qr(t,r){const i=Go(t,r);if(i>=0)return t[1|i]}function Go(t,r){return function Oa(t,r,i){let a=0,l=t.length>>i;for(;l!==a;){const f=a+(l-a>>1),m=t[f<<i];if(r===m)return f<<i;m>r?l=f:a=f+1}return~(l<<i)}(t,r,1)}const Jr={},kr=[],fi=new yt(""),$c=new yt("",-1),$o=new yt("");class Wa{get(r,i=Es){if(i===Es){const a=new Error(`NullInjectorError: No provider for ${Gr(r)}!`);throw a.name="NullInjectorError",a}return i}}var Ya=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Ya||{}),Jo=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Jo||{}),ps=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(ps||{});function aa(t,r,i){let a=t.length;for(;;){const l=t.indexOf(r,i);if(-1===l)return l;if(0===l||t.charCodeAt(l-1)<=32){const f=r.length;if(l+f===a||t.charCodeAt(l+f)<=32)return l}i=l+1}}function ca(t,r,i){let a=0;for(;a<i.length;){const l=i[a];if("number"==typeof l){if(0!==l)break;a++;const f=i[a++],m=i[a++],_=i[a++];t.setAttribute(r,m,_,f)}else{const f=l,m=i[++a];G(f)?t.setProperty(r,f,m):t.setAttribute(r,f,m),a++}}return a}function H(t){return 3===t||4===t||6===t}function G(t){return 64===t.charCodeAt(0)}function M(t,r){if(null!==r&&0!==r.length)if(null===t||0===t.length)t=r.slice();else{let i=-1;for(let a=0;a<r.length;a++){const l=r[a];"number"==typeof l?i=l:0===i||re(t,i,l,null,-1===i||2===i?r[++a]:null)}}return t}function re(t,r,i,a,l){let f=0,m=t.length;if(-1===r)m=-1;else for(;f<t.length;){const _=t[f++];if("number"==typeof _){if(_===r){m=-1;break}if(_>r){m=f-1;break}}}for(;f<t.length;){const _=t[f];if("number"==typeof _)break;
1if(_===i){if(null===a)return void(null!==l&&(t[f+1]=l));if(a===t[f+1])return void(t[f+2]=l)}f++,null!==a&&f++,null!==l&&f++}-1!==m&&(t.splice(m,0,r),f=m+1),t.splice(f++,0,i),null!==a&&t.splice(f++,0,a),null!==l&&t.splice(f++,0,l)}const we="ng-template";function Sn(t,r,i,a){let l=0;if(a){for(;l<r.length&&"string"==typeof r[l];l+=2)if("class"===r[l]&&-1!==aa(r[l+1].toLowerCase(),i,0))return!0}else if(ir(t))return!1;if(l=r.indexOf(1,l),l>-1){let f;for(;++l<r.length&&"string"==typeof(f=r[l]);)if(f.toLowerCase()===i)return!0}return!1}function ir(t){return 4===t.type&&t.value!==we}function gs(t,r,i){return r===(4!==t.type||i?t.value:we)}function ms(t,r,i){let a=4;const l=t.attrs,f=null!==l?function $d(t){for(let r=0;r<t.length;r++)if(H(t[r]))return r;return t.length}(l):0;let m=!1;for(let _=0;_<r.length;_++){const T=r[_];if("number"!=typeof T){if(!m)if(4&a){if(a=2|1&a,""!==T&&!gs(t,T,i)||""===T&&1===r.length){if(fo(a))return!1;m=!0}}else if(8&a){if(null===l||!Sn(t,l,T,i)){if(fo(a))return!1;m=!0}}else{const k=r[++_],K=zc(T,l,ir(t),i);if(-1===K){if(fo(a))return!1;m=!0;continue}if(""!==k){let se;if(se=K>f?"":l[K+1].toLowerCase(),2&a&&k!==se){if(fo(a))return!1;m=!0}}}}else{if(!m&&!fo(a)&&!fo(T))return!1;if(m&&fo(T))continue;m=!1,a=T|1&a}}return fo(a)||m}function fo(t){return!(1&t)}function zc(t,r,i,a){if(null===r)return-1;let l=0;if(a||!i){let f=!1;for(;l<r.length;){const m=r[l];if(m===t)return l;if(3===m||6===m)f=!0;else{if(1===m||2===m){let _=r[++l];for(;"string"==typeof _;)_=r[++l];continue}if(4===m)break;if(0===m){l+=4;continue}}l+=f?1:2}return-1}return function ii(t,r){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){const a=t[i];if("number"==typeof a)return-1;if(a===r)return i;i++}return-1}(r,t)}function la(t,r,i=!1){for(let a=0;a<r.length;a++)if(ms(t,r[a],i))return!0;return!1}function Li(t,r){e:for(let i=0;i<r.length;i++){const a=r[i];if(t.length===a.length){for(let l=0;l<t.length;l++)if(t[l]!==a[l])continue e;return!0}}return!1}function Dh(t,r){return t?":not("+r.trim()+")":r}function Xa(t){let r=t[0],i=1,a=2,l="",f=!1;for(;i<t.length;){let m=t[i];if("string"==typeof m)if(2&a){const _=t[++i];l+="["+m+(_.length>0?'="'+_+'"':"")+"]"}else 8&a?l+="."+m:4&a&&(l+=" "+m);else""!==l&&!fo(m)&&(r+=Dh(f,l),l=""),a=m,f=f||!fo(a);i++}return""!==l&&(r+=Dh(f,l)),r}function Mh(t){return sn(()=>{const r=Oh(t),i={...r,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ya.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Jo.Emulated,styles:t.styles||kr,_:null,schemas:t.schemas||null,tView:null,id:""};Rl(i);const a=t.dependencies;return i.directiveDefs=Na(a,!1),i.pipeDefs=Na(a,!0),i.id=function Xd(t){let r=0;const i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const l of i)r=Math.imul(31,r)+l.charCodeAt(0)|0;return r+=2147483648,"c"+r}(i),i})}function yg(t){return wr(t)||Gi(t)}function zd(t){return null!==t}function Kd(t){return sn(()=>({type:t.type,bootstrap:t.bootstrap||kr,declarations:t.declarations||kr,imports:t.imports||kr,exports:t.exports||kr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Wd(t,r){if(null==t)return Jr;const i={};for(const a in t)if(t.hasOwnProperty(a)){const l=t[a];let f,m,_=ps.None;Array.isArray(l)?(_=l[0],f=l[1],m=l[2]??f):(f=l,m=l),r?(i[f]=_!==ps.None?[a,_]:a,r[f]=m):i[f]=a}return i}function Yd(t){return sn(()=>{const r=Oh(t);return Rl(r),r})}function Pu(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function wr(t){return t[mr]||null}function Gi(t){return t[Dr]||null}function Ai(t){return t[Mi]||null}function ss(t){const r=wr(t)||Gi(t)||Ai(t);return null!==r&&r.standalone}function zo(t,r){const i=t[ti]||null;if(!i&&!0===r)throw new Error(`Type ${Gr(t)} does not have '\u0275mod' property.`);return i}function Oh(t){const r={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputTransforms:null,inputConfig:t.inputs||Jr,exp
vendor: 4,250 bytes, line 1
1ortAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||kr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wd(t.inputs,r),outputs:Wd(t.outputs),debugInfo:null}}function Rl(t){t.features?.forEach(r=>r(t))}function Na(t,r){if(!t)return null;const i=r?Ai:yg;return()=>("function"==typeof t?t():t).map(a=>i(a)).filter(zd)}function ua(t){return{\u0275providers:t}}function ku(...t){return{\u0275providers:Pa(0,t),\u0275fromNgModule:!0}}function Pa(t,...r){const i=[],a=new Set;let l;const f=m=>{i.push(m)};return ri(r,m=>{const _=m;Kc(_,f,[],a)&&(l||=[],l.push(_))}),void 0!==l&&Nl(l,f),i}function Nl(t,r){for(let i=0;i<t.length;i++){const{ngModule:a,providers:l}=t[i];da(l,f=>{r(f,a)})}}function Kc(t,r,i,a){if(!(t=We(t)))return!1;let l=null,f=Qn(t);const m=!f&&wr(t);if(f||m){if(m&&!m.standalone)return!1;l=t}else{const T=t.ngModule;if(f=Qn(T),!f)return!1;l=T}const _=a.has(l);if(m){if(_)return!1;if(a.add(l),m.dependencies){const T="function"==typeof m.dependencies?m.dependencies():m.dependencies;for(const k of T)Kc(k,r,i,a)}}else{if(!f)return!1;{if(null!=f.imports&&!_){let k;a.add(l);try{ri(f.imports,K=>{Kc(K,r,i,a)&&(k||=[],k.push(K))})}finally{}void 0!==k&&Nl(k,r)}if(!_){const k=sa(l)||(()=>new l);r({provide:l,useFactory:k,deps:kr},l),r({provide:$o,useValue:l,multi:!0},l),r({provide:fi,useValue:()=>tr(l),multi:!0},l)}const T=f.providers;if(null!=T&&!_){const k=t;da(T,K=>{r(K,k)})}}}return l!==t&&void 0!==t.providers}function da(t,r){for(let i of t)dr(i)&&(i=i.\u0275providers),Array.isArray(i)?da(i,r):r(i)}const xu=Ar({provide:String,useValue:Ar});function Wc(t){return null!==t&&"object"==typeof t&&xu in t}function qa(t){return"function"==typeof t}const Lu=new yt(""),Fu={},kh={};let Eg;function Wr(){return void 0===Eg&&(Eg=new Wa),Eg}class Gs{}class Pl extends Gs{get destroyed(){return this._destroyed}constructor(r,i,a,l){super(),this.parent=i,this.source=a,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qa(r,m=>this.processProvider(m)),this.records.set($c,ka(void 0,this)),l.has("environment")&&this.records.set(Gs,ka(void 0,this));const f=this.records.get(Lu);null!=f&&"string"==typeof f.value&&this.scopes.add(f.value),this.injectorDefTypes=new Set(this.get($o,kr,yr.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const r=R(null);try{for(const a of this._ngOnDestroyHooks)a.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const a of i)a()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(r)}}onDestroy(r){return this.assertNotDestroyed(),this._onDestroyHooks.push(r),()=>this.removeOnDestroy(r)}runInContext(r){this.assertNotDestroyed();const i=hs(this),a=_i(void 0);try{return r()}finally{hs(i),_i(a)}}get(r,i=Es,a=yr.Default){if(this.assertNotDestroyed(),r.hasOwnProperty(Uo))return r[Uo](this);a=jo(a);const f=hs(this),m=_i(void 0);try{if(!(a&yr.SkipSelf)){let T=this.records.get(r);if(void 0===T){const k=function Ig(t){return"function"==typeof t||"object"==typeof t&&t instanceof yt}(r)&&xt(r);T=k&&this.injectableDefInScope(k)?ka(Qd(r),Fu):null,this.records.set(r,T)}if(null!=T)return this.hydrate(r,T)}return(a&yr.Self?Wr():this.parent).get(r,i=a&yr.Optional&&i===Es?null:i)}catch(_){if("NullInjectorError"===_.name){if((_[Ts]=_[Ts]||[]).unshift(Gr(r)),f)throw _;return function Vs(t,r,i,a){const l=t[Ts];throw r[ji]&&l.unshift(r[ji]),t.message=function os(t,r,i,a=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let l=Gr(r);if(Array.isArray(r))l=r.map(Gr).join(" -> ");else if("object"==typeof r){let f=[];for(let m in r)if(r.hasOwnProperty(m)){let _=r[m];f.push(m+":"+("string"==typeof _?JSON.stringify(_):Gr(_)))}l=`{${f.join(", ")}}`}return`${i}${a?"("+a+")":""}[${l}]: ${t.replace(ao,"\n ")}`}("\n"+t.message,l,i,a),t.ngTokenPath=l,t[Ts]=null,t}(_,r,"R3InjectorError",this.source)}throw _}finally{_i(m),hs(f)}}resolveInjectorInitializers(){const r=R(null),i=hs(this),a=_i(void 0);try{const f=this.get(fi,kr,yr.Self);for(const m of f)m()}finally{hs(i),_i(a),R(r)}}toString(){const r=[],i=this.records;for(const a of i.keys())r.push(Gr(a));
1return`R3Injector[${r.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Pt(205,!1)}processProvider(r){let i=qa(r=We(r))?r:We(r&&r.provide);const a=function Yc(t){return Wc(t)?ka(void 0,t.useValue):ka(Uu(t),Fu)}(r);if(!qa(r)&&!0===r.multi){let l=this.records.get(i);l||(l=ka(void 0,Fu,!0),l.factory=()=>Is(l.multi),this.records.set(i,l)),i=r,l.multi.push(r)}this.records.set(i,a)}hydrate(r,i){const a=R(null);try{return i.value===Fu&&(i.value=kh,i.value=i.factory()),"object"==typeof i.value&&i.value&&function Jd(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{R(a)}}injectableDefInScope(r){if(!r.providedIn)return!1;const i=We(r.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(r){const i=this._onDestroyHooks.indexOf(r);-1!==i&&this._onDestroyHooks.splice(i,1)}}function Qd(t){const r=xt(t),i=null!==r?r.factory:sa(t);if(null!==i)return i;if(t instanceof yt)throw new Pt(204,!1);if(t instanceof Function)return function Tg(t){if(t.length>0)throw new Pt(204,!1);const i=function Do(t){return t&&(t[ue]||t[Ae])||null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Pt(204,!1)}function Uu(t,r,i){let a;if(qa(t)){const l=We(t);return sa(l)||Qd(l)}if(Wc(t))a=()=>We(t.useValue);else if(function Nh(t){return!(!t||!t.useFactory)}(t))a=()=>t.useFactory(...Is(t.deps||[]));else if(function qd(t){return!(!t||!t.useExisting)}(t))a=()=>tr(We(t.useExisting));else{const l=We(t&&(t.useClass||t.provide));if(!function Zd(t){return!!t.deps}(t))return sa(l)||Qd(l);a=()=>new l(...Is(t.deps))}return a}function ka(t,r,i=!1){return{factory:t,value:r,multi:i?[]:void 0}}function Qa(t,r){for(const i of t)Array.isArray(i)?Qa(i,r):i&&dr(i)?Qa(i.\u0275providers,r):r(i)}function Ci(t,r){t instanceof Pl&&t.assertNotDestroyed();const a=hs(t),l=_i(void 0);try{return r()}finally{hs(a),_i(l)}}function Xc(){return void 0!==Da()||null!=function mo(){return Vo}()}function kl(t){if(!Xc())throw new Pt(-203,!1)}const Ne=0,Me=1,dt=2,Jt=3,bn=4,un=5,hr=6,Cr=7,Er=8,Ei=9,Oo=10,$n=11,bs=12,vs=13,Ro=14,ei=15,As=16,xl=17,$s=18,Ko=19,vE=20,Bu=21,zv=22,Ll=23,Tr=25,xh=1,wc=7,Lh=9,Zi=10;var Kv=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Kv||{});function $i(t){return Array.isArray(t)&&"object"==typeof t[xh]}function as(t){return Array.isArray(t)&&!0===t[xh]}function Wv(t){return!!(4&t.flags)}function Mc(t){return t.componentOffset>-1}function Fh(t){return!(1&~t.flags)}function fa(t){return!!t.template}function bg(t){return!!(512&t[dt])}class wn{constructor(r,i,a){this.previousValue=r,this.currentValue=i,this.firstChange=a}isFirstChange(){return this.firstChange}}function Rr(t,r,i,a){null!==r?r.applyValueToInputSignal(r,a):t[i]=a}function Lr(){return ro}function ro(t){return t.type.prototype.ngOnChanges&&(t.setInput=ef),Fl}function Fl(){const t=Ag(this),r=t?.current;if(r){const i=t.previous;if(i===Jr)t.previous=r;else for(let a in r)i[a]=r[a];t.current=null,this.ngOnChanges(r)}}function ef(t,r,i,a,l){const f=this.declaredInputs[a],m=Ag(t)||function Bl(t,r){return t[Ul]=r}(t,{previous:Jr,current:null}),_=m.current||(m.current={}),T=m.previous,k=T[f];_[f]=new wn(k&&k.currentValue,i,T===Jr),Rr(t,r,l,i)}Lr.ngInherit=!0;const Ul="__ngSimpleChanges__";function Ag(t){return t[Ul]||null}const Hl=function(t,r,i){},aM="svg";let lM=!1;function Oi(t){for(;Array.isArray(t);)t=t[Ne];return t}function zi(t,r){return Oi(r[t])}function ha(t,r){return Oi(r[t.index])}function Qv(t,r){return t.data[r]}function Dg(t,r){return t[r]}function Za(t,r){const i=r[t];return $i(i)?i:i[Ne]}function h0(t){return!(128&~t[dt])}function Ja(t,r){return null==r?null:t[r]}function Zv(t){t[xl]=0}function TE(t){1024&t[dt]||(t[dt]|=1024,h0(t)&&Uh(t))}function wg(t){return!!(9216&t[dt]||t[Ll]?.dirty)}function Jv(t){t[Oo].changeDetectionScheduler?.notify(1),wg(t)?Uh(t):64&t[dt]&&(function iP(){return lM}()?(t[dt]|=1024,Uh(t)):t[Oo].changeDetectionScheduler?.notify())}function Uh(t){t[Oo].changeDetectionScheduler?.notify();let r=qc(t);for(;null!==r&&!(8192&r[dt])&&(r[dt]|=8192,h0(r));)r=qc(r)}function e_(t,r){if(!(256&~t[dt]))throw new Pt(911,!1);null===t[Bu]&&(t[Bu]=[]),t[Bu].push(r)}function qc(t){const r=t[Jt];return as(r)?r[Jt]:r}const Ir={lFrame:s_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function SE(){return Ir.bindingsEnabled}function tf(){return null!==Ir.skipHydrationRootTNode}function kt(){return Ir.lFrame.lView}function Qr(){return Ir.lFrame.tView}
vendor: 6,802 bytes, line 1
1function Mg(t){return Ir.lFrame.contextLView=t,t[Er]}function hM(t){return Ir.lFrame.contextLView=null,t}function pi(){let t=Qc();for(;null!==t&&64===t.type;)t=t.parent;return t}function Qc(){return Ir.lFrame.currentTNode}function xa(t,r){const i=Ir.lFrame;i.currentTNode=t,i.isParent=r}function Og(){return Ir.lFrame.isParent}function ju(){Ir.lFrame.isParent=!1}function Ds(){const t=Ir.lFrame;let r=t.bindingRootIndex;return-1===r&&(r=t.bindingRootIndex=t.tView.bindingStartIndex),r}function Zc(){return Ir.lFrame.bindingIndex}function pa(){return Ir.lFrame.bindingIndex++}function Jc(t){const r=Ir.lFrame,i=r.bindingIndex;return r.bindingIndex=r.bindingIndex+t,i}function AE(t,r){const i=Ir.lFrame;i.bindingIndex=i.bindingRootIndex=t,nf(r)}function nf(t){Ir.lFrame.currentDirectiveIndex=t}function r_(){return Ir.lFrame.currentQueryIndex}function Hh(t){Ir.lFrame.currentQueryIndex=t}function i_(t){const r=t[Me];return 2===r.type?r.declTNode:1===r.type?t[un]:null}function o_(t,r,i){if(i&yr.SkipSelf){let l=r,f=t;for(;!(l=l.parent,null!==l||i&yr.Host||(l=i_(f),null===l||(f=f[Ro],10&l.type))););if(null===l)return!1;r=l,t=f}const a=Ir.lFrame=Ng();return a.currentTNode=r,a.lView=t,!0}function Vl(t){const r=Ng(),i=t[Me];Ir.lFrame=r,r.currentTNode=i.firstChild,r.lView=t,r.tView=i,r.contextLView=t,r.bindingIndex=i.bindingStartIndex,r.inI18n=!1}function Ng(){const t=Ir.lFrame,r=null===t?null:t.child;return null===r?s_(t):r}function s_(t){const r={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:t,child:null,inI18n:!1};return null!==t&&(t.child=r),r}function Pg(){const t=Ir.lFrame;return Ir.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const _0=Pg;function kg(){const t=Pg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ws(){return Ir.lFrame.selectedIndex}function rf(t){Ir.lFrame.selectedIndex=t}function Ji(){const t=Ir.lFrame;return Qv(t.tView,t.selectedIndex)}function y0(){Ir.lFrame.currentNamespace=aM}function Ki(){!function C0(){Ir.lFrame.currentNamespace=null}()}let a_=!0;function ga(){return a_}function jl(t){a_=t}function c_(t,r){for(let i=r.directiveStart,a=r.directiveEnd;i<a;i++){const f=t.data[i].type.prototype,{ngAfterContentInit:m,ngAfterContentChecked:_,ngAfterViewInit:T,ngAfterViewChecked:k,ngOnDestroy:K}=f;m&&(t.contentHooks??=[]).push(-i,m),_&&((t.contentHooks??=[]).push(i,_),(t.contentCheckHooks??=[]).push(i,_)),T&&(t.viewHooks??=[]).push(-i,T),k&&((t.viewHooks??=[]).push(i,k),(t.viewCheckHooks??=[]).push(i,k)),null!=K&&(t.destroyHooks??=[]).push(i,K)}}function sf(t,r,i){RE(t,r,3,i)}function Gu(t,r,i,a){(3&t[dt])===i&&RE(t,r,i,a)}function l_(t,r){let i=t[dt];(3&i)===r&&(i&=16383,i+=1,t[dt]=i)}function RE(t,r,i,a){const f=a??-1,m=r.length-1;let _=0;for(let T=void 0!==a?65535&t[xl]:0;T<m;T++)if("number"==typeof r[T+1]){if(_=r[T],null!=a&&_>=a)break}else r[T]<0&&(t[xl]+=65536),(_<f||-1==f)&&(E0(t,i,r,T),t[xl]=(4294901760&t[xl])+T+2),T++}function NE(t,r){Hl(4,t,r);const i=R(null);try{r.call(t)}finally{R(i),Hl(5,t,r)}}function E0(t,r,i,a){const l=i[a]<0,f=i[a+1],_=t[l?-i[a]:i[a]];l?t[dt]>>14<t[xl]>>16&&(3&t[dt])===r&&(t[dt]+=16384,NE(_,f)):NE(_,f)}const af=-1;class Vh{constructor(r,i,a){this.factory=r,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=a}}function T0(t){return t!==af}function u_(t){return 32767&t}function d_(t,r){let i=function I0(t){return t>>16}(t),a=r;for(;i>0;)a=a[Ro],i--;return a}let S0=!0;function kE(t){const r=S0;return S0=t,r}const _M=255,yM=5;let hP=0;const zs={};function cf(t,r){const i=$u(t,r);if(-1!==i)return i;const a=r[Me];a.firstCreatePass&&(t.injectorIndex=r.length,lf(a.data,t),lf(r,null),lf(a.blueprint,null));const l=el(t,r),f=t.injectorIndex;if(T0(l)){const m=u_(l),_=d_(l,r),T=_[Me].data;for(let k=0;k<8;k++)r[f+k]=_[m+k]|T[m+k]}return r[f+8]=l,f}function lf(t,r){t.push(0,0,0,0,0,0,0,0,r)}function $u(t,r){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===r[t.injectorIndex+8]?-1:t.injectorIndex}function el(t,r){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,a=null,l=r;for(;null!==l;){if(a=g_(l),null===a)return af;if(i++,l=l[Ro],-1!==a.injectorIndex)return a.injectorIndex|i<<16}return af}function Ur(t,r,i){!function nr(t,r,i){let a;"string"==typeof i?a=i.charCodeAt(0)||0:i.hasOwnProperty(Vi)&&(a=i[Vi]),null==a&&(a=i[Vi]=hP++);const l=a&_M;r.data[t+(l>>yM)]|=1<<l}(t,r,i)}function No(t,r,i){if(i&yr.Optional||void 0!==t)return t;ta()}function zu(t,r,i,a){if(i&yr.Optional&&void 0===a&&(a=null),!(i&(yr.Self|yr.Host))){const l=t[Ei],f=_i(void 0);try{return l?l.get(r,a,i&yr.Optional):na(r,a,i&yr.Optional)}finally{_i(f)}}return No(a,0,i)}function jh(t,r,i,a=yr.Default,l){if(null!==t){if(2048&r[dt]&&!(a&yr.Self)){const m=function p_(t,r,i,a,l){let f=t,m=r;for(;null!==f&&null!==m&&2048&m[dt]&&!(512&m[dt]);){const _=$l(f,m,i,a|yr.Self,zs);if(_!==zs)return _;let T=f.parent;if(!T){const k=m[vE];if(k){const K=k.get(i,zs,a);if(K!==zs)return K}T=g_(m),m=m[Ro]}f=T}return l}(t,r,i,a,zs);if(m!==zs)return m}const f=$l(t,r,i,a,zs);if(f!==zs)return f}return zu(r,i,a,l)}function $l(t,r,i,a,l){const f=function h_(t){if("string"==typeof t)return t.charCodeAt(0)||0;const r=t.hasOwnProperty(Vi)?t[Vi]:void 0;return"number"==typeof r?r>=0?r&_M:$h:r}(i);if("function"==typeof f){if(!o_(r,t,a))return a&yr.Host?No(l,0,a):zu(r,i,a,l);try{let m;if(m=f(a),null!=m||a&yr.Optional)return m;ta()}finally{_0()}}else if("number"==typeof f){let m=null,_=$u(t,r),T=af,k=a&yr.Host?r[ei][un]:null;for((-1===_||a&yr.SkipSelf)&&(T=-1===_?el(t,r):r[_+8],T!==af&&Ku(a,!1)?(m=r[Me],_=u_(T),r=d_(T,r)):_=-1);-1!==_;){const K=r[Me];if(Gh(f,_,K.data)){const se=f_(_,r,i,m,a,k);if(se!==zs)return se}T=r[_+8],T!==af&&Ku(a,r[Me].data[_+8]===k)&&Gh(f,_,r)?(m=K,_=u_(T),r=d_(T,r)):_=-1}}return l}function f_(t,r,i,a,l,f){const m=r[Me],_=m.data[t+8],K=df(_,m,i,null==a?Mc(_)&&S0:a!=m&&!!(3&_.type),l&yr.Host&&f===_);return null!==K?Ms(r,m,K,_):zs}function df(t,r,i,a,l){const f=t.providerIndexes,m=r.data,_=1048575&f,T=t.directiveStart,K=f>>20,fe=l?_+K:t.directiveEnd;for(let Ke=a?_:_+K;Ke<fe;Ke++){const Ze=m[Ke];if(Ke<T&&i===Ze||Ke>=T&&Ze.type===i)return Ke}if(l){const Ke=m[T];if(Ke&&fa(Ke)&&Ke.type===i)return T}return null}function Ms(t,r,i,a){let l=t[i];const f=r.data;if(function mM(t){return t instanceof Vh}(l)){const m=l;m.resolving&&function Ic(t,r){throw r&&r.join(" > "),new Pt(-200,t)}(function Or(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.n
1ame||t.type.toString():Xn(t)}(f[i]));const _=kE(m.canSeeViewProviders);m.resolving=!0;const k=m.injectImpl?_i(m.injectImpl):null;o_(t,a,yr.Default);try{l=t[i]=m.factory(void 0,f,t,a),r.firstCreatePass&&i>=a.directiveStart&&function OE(t,r,i){const{ngOnChanges:a,ngOnInit:l,ngDoCheck:f}=r.type.prototype;if(a){const m=ro(r);(i.preOrderHooks??=[]).push(t,m),(i.preOrderCheckHooks??=[]).push(t,m)}l&&(i.preOrderHooks??=[]).push(0-t,l),f&&((i.preOrderHooks??=[]).push(t,f),(i.preOrderCheckHooks??=[]).push(t,f))}(i,f[i],r)}finally{null!==k&&_i(k),kE(_),m.resolving=!1,_0()}}return l}function Gh(t,r,i){return!!(i[r+(t>>yM)]&1<<t)}function Ku(t,r){return!(t&yr.Self||t&yr.Host&&r)}class io{constructor(r,i){this._tNode=r,this._lView=i}get(r,i,a){return jh(this._tNode,this._lView,r,jo(a),i)}}function $h(){return new io(pi(),kt())}function xE(t){return sn(()=>{const r=t.prototype.constructor,i=r[qi]||zl(r),a=Object.prototype;let l=Object.getPrototypeOf(t.prototype).constructor;for(;l&&l!==a;){const f=l[qi]||zl(l);if(f&&f!==i)return f;l=Object.getPrototypeOf(l)}return f=>new f})}function zl(t){return it(t)?()=>{const r=zl(We(t));return r&&r()}:sa(t)}function g_(t){const r=t[Me],i=r.type;return 2===i?r.declTNode:1===i?t[un]:null}function xg(t){return function uf(t,r){if("class"===r)return t.classes;if("style"===r)return t.styles;const i=t.attrs;if(i){const a=i.length;let l=0;for(;l<a;){const f=i[l];if(H(f))break;if(0===f)l+=2;else if("number"==typeof f)for(l++;l<a&&"string"==typeof i[l];)l++;else{if(f===r)return i[l+1];l+=2}}}return null}(pi(),t)}function Kl(t,r=null,i=null,a){const l=UE(t,r,i,a);return l.resolveInjectorInitializers(),l}function UE(t,r=null,i=null,a,l=new Set){const f=[i||kr,ku(t)];return a=a||("object"==typeof t?void 0:Gr(t)),new Pl(f,r||Wr(),a||null,l)}let Po=(()=>{class t{static{this.THROW_IF_NOT_FOUND=Es}static{this.NULL=new Wa}static create(i,a){if(Array.isArray(i))return Kl({name:""},a,i,"");{const l=i.name??"";return Kl({name:l},i.parent,i.providers,l)}}static{this.\u0275prov=U({token:t,providedIn:"any",factory:()=>tr($c)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function Yu(t){return t.ngOriginalError}class cs{constructor(){this._console=console}handleError(r){const i=this._findOriginalError(r);this._console.error("ERROR",r),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(r){let i=r&&Yu(r);for(;i&&Yu(i);)i=Yu(i);return i||null}}const BE=new yt("",{providedIn:"root",factory:()=>Zn(cs).handleError.bind(void 0)});let Wl=(()=>{class t{static{this.__NG_ELEMENT_ID__=Wh}static{this.__NG_ENV_ID__=i=>i}}return t})();class Fg extends Wl{constructor(r){super(),this._lView=r}onDestroy(r){return e_(this._lView,r),()=>function IE(t,r){if(null===t[Bu])return;const i=t[Bu].indexOf(r);-1!==i&&t[Bu].splice(i,1)}(this._lView,r)}}function Wh(){return new Fg(kt())}function HE(){return Ks(pi(),kt())}function Ks(t,r){return new Hr(ha(t,r))}let Hr=(()=>{class t{constructor(i){this.nativeElement=i}static{this.__NG_ELEMENT_ID__=HE}}return t})();function gf(t){return t instanceof Hr?t.nativeElement:t}function Ug(t){return r=>{setTimeout(t,void 0,r)}}const tc=class ls extends xn.B{constructor(r=!1){super(),this.destroyRef=void 0,this.__isAsync=r,Xc()&&(this.destroyRef=Zn(Wl,{optional:!0})??void 0)}emit(r){const i=R(null);try{super.next(r)}finally{R(i)}}subscribe(r,i,a){let l=r,f=i||(()=>null),m=a;if(r&&"object"==typeof r){const T=r;l=T.next?.bind(T),f=T.error?.bind(T),m=T.complete?.bind(T)}this.__isAsync&&(f=Ug(f),l&&(l=Ug(l)),m&&(m=Ug(m)));const _=super.subscribe({next:l,error:f,complete:m});return r instanceof en.yU&&r.add(_),_}};function Yh(){return this._results[Symbol.iterator]()}class Xu{get changes(){return this._changes??=new tc}constructor(r=!1){this._emitDistinctChangesOnly=r,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 i=Xu.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=Yh)}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,i){return this._results.reduce(r,i)}
1forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,i){this.dirty=!1;const a=function vo(t){return t.flat(Number.POSITIVE_INFINITY)}(r);(this._changesDetected=!function Mo(t,r,i){if(t.length!==r.length)return!1;for(let a=0;a<t.length;a++){let l=t[a],f=r[a];if(i&&(l=i(l),f=i(f)),f!==l)return!1}return!0}(this._results,a,i))&&(this._results=a,this.length=a.length,this.last=a[this.length-1],this.first=a[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(r){this._onDirty=r}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function mf(t){return!(128&~t.flags)}const Hg=new Map;let VE=0;const $E="__ngContext__";function Os(t,r){$i(r)?(t[$E]=r[Ko],function y_(t){Hg.set(t[Ko],t)}(r)):t[$E]=r}function Gg(t){return M0(t[bs])}function yf(t){return M0(t[bn])}function M0(t){for(;null!==t&&!as(t);)t=t[bn];return t}let Wg;function OM(t){Wg=t}function qu(){if(void 0!==Wg)return Wg;if(typeof document<"u")return document;throw new Pt(210,!1)}const k0=new yt("",{providedIn:"root",factory:()=>x0}),x0="ng",L0=new yt(""),YE=new yt("",{providedIn:"platform",factory:()=>"unknown"}),XE=new yt(""),qE=new yt("",{providedIn:"root",factory:()=>qu().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let qg=()=>null;function V0(t,r,i=!1){return qg(t,r,i)}const b_=new yt("",{providedIn:"root",factory:()=>!1});let A_,Af;function bf(t){return function oT(){if(void 0===A_&&(A_=null,qn.trustedTypes))try{A_=qn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return A_}()?.createHTML(t)||t}function D_(){if(void 0===Af&&(Af=null,qn.trustedTypes))try{Af=qn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Af}function w_(t){return D_()?.createHTML(t)||t}function Xl(t){return D_()?.createScriptURL(t)||t}class Ju{constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Gn})`}}class Y0 extends Ju{getTypeName(){return"HTML"}}class X0 extends Ju{getTypeName(){return"Style"}}class UM extends Ju{getTypeName(){return"Script"}}class BM extends Ju{getTypeName(){return"URL"}}class yP extends Ju{getTypeName(){return"ResourceURL"}}function Rc(t){return t instanceof Ju?t.changingThisBreaksApplicationSecurity:t}function Df(t,r){const i=function HM(t){return t instanceof Ju&&t.getTypeName()||null}(t);if(null!=i&&i!==r){if("ResourceURL"===i&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${i} (see ${Gn})`)}return i===r}function Zg(t){return new Y0(t)}function VM(t){return new X0(t)}function O_(t){return new UM(t)}function jM(t){return new BM(t)}function R_(t){return new yP(t)}class P_{constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r="<body><remove></remove>"+r;try{const i=(new window.DOMParser).parseFromString(bf(r),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(r):(i.removeChild(i.firstChild),i)}catch{return null}}}class sT{constructor(r){this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(r){const i=this.inertDocument.createElement("template");return i.innerHTML=bf(r),i}}const Jg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ed(t){return(t=String(t)).match(Jg)?t:"unsafe:"+t}function ql(t){const r={};for(const i of t.split(","))r[i]=!0;return r}function em(...t){const r={};for(const i of t)for(const a in i)i.hasOwnProperty(a)&&(r[a]=!0);return r}const q0=ql("area,br,col,hr,img,wbr"),Q0=ql("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),La=ql("rp,rt"),Zh=em(q0,em(Q0,ql("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")),em(La,ql("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")),em(La,Q0)),cT=ql("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),J0=em(cT,ql("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,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"),ql("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")),Jh=ql("script,style,template");class eb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(r){let i=r.firstChild,a=!0,l=[];for(;i;)if(i.nodeType===Node.ELEMENT_NODE?a=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,a&&i.firstChild)l.push(i),i=WM(i);else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let f=KM(i);if(f){i=f;break}i=l.pop()}return this.buf.join("")}startElement(r){const i=tb(r).toLowerCase();if(!Zh.hasOwnProperty(i))return this.sanitizedSomething=!0,!Jh.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const a=r.attributes;for(let l=0;l<a.length;l++){const f=a.item(l),m=f.name,_=m.toLowerCase();if(!J0.hasOwnProperty(_)){this.sanitizedSomething=!0;continue}let T=f.value;cT[_]&&(T=ed(T)),this.buf.push(" ",m,'="',ep(T),'"')}return this.buf.push(">"),!0}endElement(r){const i=tb(r).toLowerCase();Zh.hasOwnProperty(i)&&!q0.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(r){this.buf.push(ep(r))}}function KM(t){const r=t.nextSibling;if(r&&t!==r.previousSibling)throw nb(r);return r}function WM(t){const r=t.firstChild;if(r&&function zM(t,r){return(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,r))throw nb(r);return r}function tb(t){const r=t.nodeName;return"string"==typeof r?r:"FORM"}function nb(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const rb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lT=/([^\#-~ |!])/g;function ep(t){return t.replace(/&/g,"&").replace(rb,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(lT,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let al;function tm(t,r){let i=null;try{al=al||function N_(t){const r=new sT(t);return function GM(){try{return!!(new window.DOMParser).parseFromString(bf(""),"text/html")}catch{return!1}}()?new P_(r):r}(t);let a=r?String(r):"";i=al.getInertBodyElement(a);let l=5,f=a;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,a=f,f=i.innerHTML,i=al.getInertBodyElement(a)}while(a!==f);return bf((new eb).sanitizeChildren(nm(i)||i))}finally{if(i){const a=nm(i)||i;for(;a.firstChild;)a.removeChild(a.firstChild)}}}function nm(t){return"content"in t&&function In(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Fa=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Fa||{});function ib(t){const r=wf();return r?w_(r.sanitize(Fa.HTML,t)||""):Df(t,"HTML")?w_(Rc(t)):tm(qu(),Xn(t))}function uT(t){const r=wf();return r?r.sanitize(Fa.URL,t)||"":Df(t,"URL")?Rc(t):ed(Xn(t))}function tp(t){const r=wf();if(r)return Xl(r.sanitize(Fa.RESOURCE_URL,t)||"");if(Df(t,"ResourceURL"))return Xl(Rc(t));throw new Pt(904,!1)}function rp(t,r,i){return function Sr(t,r){return"src"===r&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===r&&("base"===t||"link"===t)?tp:uT}(r,i)(t)}function wf(){const t=kt();return t&&t[Oo].sanitizer}const rm=/^>|^->|<!--|-->|--!>|<!-$/g,op=/(<|>)/g,dT="\u200b$1\u200b";function Jl(t){return t.ownerDocument.defaultView}function gT(t){return t.ownerDocument}function qs(t){return t instanceof Function?t():t}var cp=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(cp||{});let $_;function z_(t,r){return $_(t,r)}function Of(t,r,i,a,l){if(null!=a){let f,m=!1;as(a)?f=a:$i(a)&&(m=!0,a=a[Ne]);const _=Oi(a);0===t&&null!==i?null==l?fb(r,i,_):rd(r,i,_,l||null,!0):1===t&&null!==i?rd(r,i,_,l||null,!0):2===t?function am(t,r,i){const a=nu(t,r);a&&function bP(t,r,i,a){t.removeChild(r,i,a)}(t,a,r,i)}(r,_,m):3===t&&r.destroyNode(_),null!=f&&function tO(t,r,i,a,l){const f=i[wc];f!==Oi(i)&&Of(r,t,a,f,l);for(let _=Zi;_<i.length;_++){const T=i[_];Q_(T[Me],T,t,r,a,f)}}(r,t,f,i,l)}}function Y_(t,r){return t.createComment(function L_(t){return t.replace(rm,r=>r.replace(op,dT))}(r))}function lp(t,r,i){return t.createElement(r,i)}function Rf(t,r){r[Oo].changeDetectionScheduler?.notify(1),Q_(t,r,r[$n],2,null,null)}function ub(t,r){const i=t[Lh],a=i.indexOf(r);i.splice(a,1)}function ho(t,r){if(t.length<=Zi)return;const i=Zi+r,a=t[i];if(a){const l=a[As];null!==l&&l!==t&&ub(l,a),r>0&&(t[i-1][bn]=a[bn]);const f=Ka(t,Zi+r);!function cb(t,r){Rf(t,r),r[Ne]=null,r[un]=null}(a[Me],a);const m=f[$s];null!==m&&m.detachView(f[Me]),a[Jt]=null,a[bn]=null,a[dt]&=-129}return a}function Nf(t,r){if(!(256&r[dt])){const i=r[$n];i.destroyNode&&Q_(t,r,i,3,null,null),function ll(t){let r=t[bs];if(!r)return X_(t[Me],t);for(;r;){let i=null;if($i(r))i=r[bs];else{const a=r[Zi];a&&(i=a)}if(!i){for(;r&&!r[bn]&&r!==t;)$i(r)&&X_(r[Me],r),r=r[Jt];null===r&&(r=t),$i(r)&&X_(r[Me],r),i=r&&r[bn]}r=i}}(r)}}function X_(t,r){if(256&r[dt])return;const i=R(null);try{r[dt]&=-129,r[dt]|=256,r[Ll]&&Le(r[Ll]),function Pf(t,r){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let a=0;a<i.length;a+=2){const l=r[i[a]];if(!(l instanceof Vh)){const f=i[a+1];if(Array.isArray(f))for(let m=0;m<f.length;m+=2){const _=l[f[m]],T=f[m+1];Hl(4,_,T);try{T.call(_)}finally{Hl(5,_,T)}}else{Hl(4,l,f);try{f.call(l)}finally{Hl(5,l,f)}}}}}(t,r),function qM(t,r){const i=t.cleanup,a=r[Cr];if(null!==i)for(let f=0;f<i.length-1;f+=2)if("string"==typeof i[f]){const m=i[f+3];m>=0?a[m]():a[-m].unsubscribe(),f+=2}else i[f].call(a[i[f+1]]);null!==a&&(r[Cr]=null);const l=r[Bu];if(null!==l){r[Bu]=null;for(let f=0;f<l.length;f++)(0,l[f])()}}(t,r),1===r[Me].type&&r[$n].destroy();const a=r[As];if(null!==a&&as(r[Jt])){a!==r[Jt]&&ub(a,r);const l=r[$s];null!==l&&l.detachView(t)}!function GE(t){Hg.delete(t[Ko])}(r)}finally{R(i)}}function tu(t,r,i){return function db(t,r,i){let a=r;for(;null!==a&&40&a.type;)a=(r=a).parent;if(null===a)return i[Ne];
vendor: 4,780 bytes, line 1
1{const{componentOffset:l}=a;if(l>-1){const{encapsulation:f}=t.data[a.directiveStart+l];if(f===Jo.None||f===Jo.Emulated)return null}return ha(a,i)}}(t,r.parent,i)}function rd(t,r,i,a,l){t.insertBefore(r,i,a,l)}function fb(t,r,i){t.appendChild(r,i)}function ul(t,r,i,a,l){null!==a?rd(t,r,i,a,l):fb(t,r,i)}function nu(t,r){return t.parentNode(r)}function id(t,r,i){return ZM(t,r,i)}let dl,ZM=function up(t,r,i){return 40&t.type?ha(t,i):null};function q_(t,r,i,a){const l=tu(t,a,r),f=r[$n],_=id(a.parent||r[un],a,r);if(null!=l)if(Array.isArray(i))for(let T=0;T<i.length;T++)ul(f,l,i[T],_,!1);else ul(f,l,i,_,!1);void 0!==dl&&dl(f,a,r,i,l)}function oc(t,r){if(null!==r){const i=r.type;if(3&i)return ha(r,t);if(4&i)return _T(-1,t[r.index]);if(8&i){const a=r.child;if(null!==a)return oc(t,a);{const l=t[r.index];return as(l)?_T(-1,l):Oi(l)}}if(32&i)return z_(r,t)()||Oi(t[r.index]);{const a=xf(t,r);return null!==a?Array.isArray(a)?a[0]:oc(qc(t[ei]),a):oc(t,r.next)}}return null}function xf(t,r){return null!==r?t[ei][un].projection[r.projection]:null}function _T(t,r){const i=Zi+t+1;if(i<r.length){const a=r[i],l=a[Me].firstChild;if(null!==l)return oc(a,l)}return r[wc]}function yT(t,r,i,a,l,f,m){for(;null!=i;){const _=a[i.index],T=i.type;if(m&&0===r&&(_&&Os(Oi(_),a),i.flags|=2),32&~i.flags)if(8&T)yT(t,r,i.child,a,l,f,!1),Of(r,t,l,_,f);else if(32&T){const k=z_(i,a);let K;for(;K=k();)Of(r,t,l,K,f);Of(r,t,l,_,f)}else 16&T?pb(t,r,a,i,l,f):Of(r,t,l,_,f);i=m?i.projectionNext:i.next}}function Q_(t,r,i,a,l,f){yT(i,a,t.firstChild,r,l,f,!1)}function pb(t,r,i,a,l,f){const m=i[ei],T=m[un].projection[a.projection];if(Array.isArray(T))for(let k=0;k<T.length;k++)Of(r,t,l,T[k],f);else{let k=T;const K=m[Jt];mf(a)&&(k.flags|=128),yT(t,r,k,K,l,f,!0)}}function Ua(t,r,i){""===i?t.removeAttribute(r,"class"):t.setAttribute(r,"class",i)}function Z_(t,r,i){const{mergedAttrs:a,classes:l,styles:f}=i;null!==a&&ca(t,r,a),null!==l&&Ua(t,r,l),null!==f&&function dp(t,r,i){t.setAttribute(r,"style",i)}(t,r,f)}const Nr={};function J_(t=1){CT(Qr(),kt(),ws()+t,!1)}function CT(t,r,i,a){if(!a)if(3&~r[dt]){const f=t.preOrderHooks;null!==f&&Gu(r,f,0,i)}else{const f=t.preOrderCheckHooks;null!==f&&sf(r,f,i)}rf(i)}function Lf(t,r=yr.Default){const i=kt();return null===i?tr(t,r):jh(pi(),i,We(t),r)}function mb(){throw new Error("invalid")}function vb(t,r,i,a,l,f){const m=R(null);try{let _=null;l&ps.SignalBased&&(_=r[a][x]),null!==_&&void 0!==_.transformFn&&(f=_.transformFn(f)),l&ps.HasDecoratorInputTransform&&(f=t.inputTransforms[a].call(r,f)),null!==t.setInput?t.setInput(r,_,f,i,a):Rr(r,_,a,f)}finally{R(m)}}function cm(t,r,i,a,l,f,m,_,T,k,K){const se=r.blueprint.slice();return se[Ne]=l,se[dt]=204|a,(null!==k||t&&2048&t[dt])&&(se[dt]|=2048),Zv(se),se[Jt]=se[Ro]=t,se[Er]=i,se[Oo]=m||t&&t[Oo],se[$n]=_||t&&t[$n],se[Ei]=T||t&&t[Ei]||null,se[un]=f,se[Ko]=function jE(){return VE++}(),se[hr]=K,se[vE]=k,se[ei]=2==r.type?t[ei]:se,se}function fp(t,r,i,a,l){let f=t.data[r];if(null===f)f=function TT(t,r,i,a,l){const f=Qc(),m=Og(),T=t.data[r]=function Tb(t,r,i,a,l,f){let m=r?r.injectorIndex:-1,_=0;return tf()&&(_|=128),{type:i,index:a,insertBeforeIndex:null,injectorIndex:m,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:_,providerIndexes:0,value:l,attrs:f,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:r,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,m?f:f&&f.parent,i,r,a,l);return null===t.firstChild&&(t.firstChild=T),null!==f&&(m?null==f.child&&null!==T.parent&&(f.child=T):null===f.next&&(f.next=T,T.prev=f)),T}(t,r,i,a,l),function bE(){return Ir.lFrame.inI18n}()&&(f.flags|=32);else if(64&f.type){f.type=i,f.value=a,f.attrs=l;const m=function Vu(){const t=Ir.lFrame,r=t.currentTNode;return t.isParent?r:r.parent}();f.injectorIndex=null===m?-1:m.injectorIndex}return xa(f,!0),f}function hp(t,r,i,a){if(0===i)return-1;const l=r.length;for(let f=0;f<i;f++)r.push(a),t.blueprint.push(a),t.data.push(null);return l}function od(t,r,i,a,l){const f=ws(),m=2&a;try{rf(-1),m&&r.length>Tr&&CT(t,r,Tr,!1),Hl(m?2:0,l),i(a,l)}finally{rf(f),Hl(m?3:1,l)}}function IT(t,r,i){if(Wv(r)){const a=R(null);try{const f=r.directiveEnd;for(let m=r.directiveStart;m<f;m++){const _=t.data[m];_.contentQueries&&_.contentQueries(1,i[m],m)}}finally{R(a)}}}function ey(t,r,i){SE()&&(function wT(t,r,i,a){const l=i.directiveStart,f=i.directiveEnd;Mc(i)&&function MT(t,r,i){const a=ha(r,t),l=_b(i);let m=16;i.signals?m=4096:i.onPush&&(m=64);const _=Ti(t,cm(t,l,null,m,a,r,null,t[Oo].rendererFactory.createRenderer(a,i),null,null,null));t[r.index]=_}
1(r,i,t.data[l+i.componentOffset]),t.firstCreatePass||cf(i,r),Os(a,r);const m=i.initialInputs;for(let _=l;_<f;_++){const T=t.data[_],k=Ms(r,t,_,i);Os(k,r),null!==m&&DP(0,_-l,k,T,0,m),fa(T)&&(Za(i.index,r)[Er]=Ms(r,t,_,i))}}(t,r,i,ha(i,r)),!(64&~i.flags)&&lm(t,r,i))}function ST(t,r,i=ha){const a=r.localNames;if(null!==a){let l=r.index+1;for(let f=0;f<a.length;f+=2){const m=a[f+1],_=-1===m?i(r,t):t[m];t[l++]=_}}}function _b(t){const r=t.tView;return null===r||r.incompleteFirstPass?t.tView=pp(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):r}function pp(t,r,i,a,l,f,m,_,T,k,K){const se=Tr+a,fe=se+l,Ke=function bT(t,r){const i=[];for(let a=0;a<r;a++)i.push(a<t?null:Nr);return i}(se,fe),Ze="function"==typeof k?k():k;return Ke[Me]={type:t,blueprint:Ke,template:i,queries:null,viewQuery:_,declTNode:r,data:Ke.slice().fill(null,se),bindingStartIndex:se,expandoStartIndex:fe,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 f?f():f,pipeRegistry:"function"==typeof m?m():m,firstChild:null,schemas:T,consts:Ze,incompleteFirstPass:!1,ssrId:K}}let yb=()=>null;function Ib(t,r,i,a,l){for(let f in r){if(!r.hasOwnProperty(f))continue;const m=r[f];if(void 0===m)continue;a??={};let _,T=ps.None;Array.isArray(m)?(_=m[0],T=m[1]):_=m;let k=f;if(null!==l){if(!l.hasOwnProperty(f))continue;k=l[f]}0===t?AT(a,i,k,_,T):AT(a,i,k,_)}return a}function AT(t,r,i,a,l){let f;t.hasOwnProperty(i)?(f=t[i]).push(r,a):f=t[i]=[r,a],void 0!==l&&f.push(l)}function Qs(t,r,i,a,l,f,m,_){const T=ha(r,i);let K,k=r.inputs;!_&&null!=k&&(K=k[a])?(NT(t,i,K,a,l),Mc(r)&&function sO(t,r){const i=Za(r,t);16&i[dt]||(i[dt]|=64)}(i,r.index)):3&r.type&&(a=function oO(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(a),l=null!=m?m(l,r.value||"",a):l,f.setProperty(T,a,l))}function Sb(t,r,i,a){if(SE()){const l=null===a?null:{"":-1},f=function bb(t,r){const i=t.directiveRegistry;let a=null,l=null;if(i)for(let f=0;f<i.length;f++){const m=i[f];if(la(r,m.selectors,!1))if(a||(a=[]),fa(m))if(null!==m.findHostDirectiveDefs){const _=[];l=l||new Map,m.findHostDirectiveDefs(m,_,l),a.unshift(..._,m),Pc(t,r,_.length)}else a.unshift(m),Pc(t,r,0);else l=l||new Map,m.findHostDirectiveDefs?.(m,a,l),a.push(m)}return null===a?null:[a,l]}(t,i);let m,_;null===f?m=_=null:[m,_]=f,null!==m&&fl(t,r,i,m,l,_),l&&function Ab(t,r,i){if(r){const a=t.localNames=[];for(let l=0;l<r.length;l+=2){const f=i[r[l+1]];if(null==f)throw new Pt(-301,!1);a.push(r[l],f)}}}(i,a,l)}i.mergedAttrs=M(i.mergedAttrs,i.attrs)}function fl(t,r,i,a,l,f){for(let k=0;k<a.length;k++)Ur(cf(i,r),t,a[k].type);!function wb(t,r,i){t.flags|=1,t.directiveStart=r,t.directiveEnd=r+i,t.providerIndexes=r}(i,t.data.length,a.length);for(let k=0;k<a.length;k++){const K=a[k];K.providersResolver&&K.providersResolver(K)}let m=!1,_=!1,T=hp(t,r,a.length,null);for(let k=0;k<a.length;k++){const K=a[k];i.mergedAttrs=M(i.mergedAttrs,K.hostAttrs),Mb(t,i,r,T,K),Db(T,K,l),null!==K.contentQueries&&(i.flags|=4),(null!==K.hostBindings||null!==K.hostAttrs||0!==K.hostVars)&&(i.flags|=64);const se=K.type.prototype;!m&&(se.ngOnChanges||se.ngOnInit||se.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),m=!0),!_&&(se.ngOnChanges||se.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),_=!0),T++}!function iO(t,r,i){const l=r.directiveEnd,f=t.data,m=r.attrs,_=[];let T=null,k=null;for(let K=r.directiveStart;K<l;K++){const se=f[K],fe=i?i.get(se):null,Ze=fe?fe.outputs:null;T=Ib(0,se.inputs,K,T,fe?fe.inputs:null),k=Ib(1,se.outputs,K,k,Ze);const Ot=null===T||null===m||ir(r)?null:Ob(T,K,m);_.push(Ot)}null!==T&&(T.hasOwnProperty("class")&&(r.flags|=8),T.hasOwnProperty("style")&&(r.flags|=16)),r.initialInputs=_,r.inputs=T,r.outputs=k}(t,i,f)}function lm(t,r,i){const a=i.directiveStart,l=i.directiveEnd,f=i.index,m=function DE(){return Ir.lFrame.currentDirectiveIndex}();try{rf(f);for(let _=a;_<l;_++){const T=t.data[_],k=r[_];nf(_),(null!==T.hostBindings||0!==T.hostVars||null!==T.hostAttrs)&&ty(T,k)}}finally{rf(-1),nf(m)}}function ty(t,r){null!==t.hostBindings&&t.hostBindings(1,r)}
1function Pc(t,r,i){r.componentOffset=i,(t.components??=[]).push(r.index)}function Db(t,r,i){if(i){if(r.exportAs)for(let a=0;a<r.exportAs.length;a++)i[r.exportAs[a]]=t;fa(r)&&(i[""]=t)}}function Mb(t,r,i,a,l){t.data[a]=l;const f=l.factory||(l.factory=sa(l.type)),m=new Vh(f,fa(l),Lf);t.blueprint[a]=m,i[a]=m,function aO(t,r,i,a,l){const f=l.hostBindings;if(f){let m=t.hostBindingOpCodes;null===m&&(m=t.hostBindingOpCodes=[]);const _=~r.index;(function DT(t){let r=t.length;for(;r>0;){const i=t[--r];if("number"==typeof i&&i<0)return i}return 0})(m)!=_&&m.push(_),m.push(i,a,f)}}(t,r,a,hp(t,i,l.hostVars,Nr),l)}function ac(t,r,i,a,l,f){const m=ha(t,r);!function OT(t,r,i,a,l,f,m){if(null==f)t.removeAttribute(r,l,i);else{const _=null==m?Xn(f):m(f,a||"",l);t.setAttribute(r,l,_,i)}}(r[$n],m,f,t.value,i,a,l)}function DP(t,r,i,a,l,f){const m=f[r];if(null!==m)for(let _=0;_<m.length;)vb(a,i,m[_++],m[_++],m[_++],m[_++])}function Ob(t,r,i){let a=null,l=0;for(;l<i.length;){const f=i[l];if(0!==f)if(5!==f){if("number"==typeof f)break;if(t.hasOwnProperty(f)){null===a&&(a=[]);const m=t[f];for(let _=0;_<m.length;_+=3)if(m[_]===r){a.push(f,m[_+1],m[_+2],i[l+1]);break}}l+=2}else l+=2;else l+=4}return a}function cO(t,r,i,a){return[t,!0,0,r,null,a,null,i,null,null]}function Rb(t,r){const i=t.contentQueries;if(null!==i){const a=R(null);try{for(let l=0;l<i.length;l+=2){const m=i[l+1];if(-1!==m){const _=t.data[m];Hh(i[l]),_.contentQueries(2,r[m],m)}}}finally{R(a)}}}function Ti(t,r){return t[bs]?t[vs][bn]=r:t[bs]=r,t[vs]=r,r}function ny(t,r,i){Hh(0);const a=R(null);try{r(t,i)}finally{R(a)}}function Nb(t){return t[Cr]||(t[Cr]=[])}function um(t){return t.cleanup||(t.cleanup=[])}function RT(t,r){const i=t[Ei],a=i?i.get(cs,null):null;a&&a.handleError(r)}function NT(t,r,i,a,l){for(let f=0;f<i.length;){const m=i[f++],_=i[f++],T=i[f++];vb(t.data[m],r[m],a,_,T,l)}}function ru(t,r,i){const a=zi(r,t);!function nd(t,r,i){t.setValue(r,i)}(t[$n],a,i)}function kb(t,r){const i=Za(r,t),a=i[Me];!function uO(t,r){for(let i=r.length;i<t.blueprint.length;i++)r.push(t.blueprint[i])}(a,i);const l=i[Ne];null!==l&&null===i[hr]&&(i[hr]=V0(l,i[Ei])),dm(a,i,i[Er])}function dm(t,r,i){Vl(r);try{const a=t.viewQuery;null!==a&&ny(1,a,i);const l=t.template;null!==l&&od(t,r,l,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),r[$s]?.finishViewCreation(t),t.staticContentQueries&&Rb(t,r),t.staticViewQueries&&ny(2,t.viewQuery,i);const f=t.components;null!==f&&function PT(t,r){for(let i=0;i<r.length;i++)kb(t,r[i])}(r,f)}catch(a){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),a}finally{r[dt]&=-5,kg()}}function Ff(t,r){return!r||null===r.firstChild||mf(t)}function gp(t,r,i,a=!0){const l=r[Me];if(function vT(t,r,i,a){const l=Zi+a,f=i.length;a>0&&(i[l-1][bn]=r),a<f-Zi?(r[bn]=i[l],bc(i,Zi+a,r)):(i.push(r),r[bn]=null),r[Jt]=i;const m=r[As];null!==m&&i!==m&&function lb(t,r){const i=t[Lh];r[ei]!==r[Jt][Jt][ei]&&(t[dt]|=Kv.HasTransplantedViews),null===i?t[Lh]=[r]:i.push(r)}(m,r);const _=r[$s];null!==_&&_.insertView(t),Jv(r),r[dt]|=128}(l,r,t,i),a){const m=_T(i,t),_=r[$n],T=nu(_,t[wc]);null!==T&&function mT(t,r,i,a,l,f){a[Ne]=l,a[un]=r,Q_(t,a,i,1,l,f)}(l,t[un],_,r,T,m)}const f=r[hr];null!==f&&null!==f.firstChild&&(f.firstChild=null)}function fm(t,r,i,a,l=!1){for(;null!==i;){const f=r[i.index];null!==f&&a.push(Oi(f)),as(f)&&hm(f,a);const m=i.type;if(8&m)fm(t,r,i.child,a);else if(32&m){const _=z_(i,r);let T;for(;T=_();)a.push(T)}else if(16&m){const _=xf(r,i);if(Array.isArray(_))a.push(..._);else{const T=qc(r[ei]);fm(T[Me],T,_,a,!0)}}i=l?i.projectionNext:i.next}return a}function hm(t,r){for(let i=Zi;i<t.length;i++){const a=t[i],l=a[Me].firstChild;null!==l&&fm(a[Me],a,l,r)}t[wc]!==t[Ne]&&r.push(t[wc])}let Zs=[];const fO={...Q,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Uh(t.lView)},consumerOnSignalRead(){this.lView[Ll]=this}},cc=100;function gm(t,r=!0,i=0){const a=t[Oo],l=a.rendererFactory;l.begin?.();try{!function iy(t,r){oy(t,r);let i=0;for(;wg(t);){if(i===cc)throw new Pt(103,!1);i++,oy(t,1)}}(t,i)}catch(m){throw r&&RT(t,m),m}finally{l.end?.(),a.inlineEffectRunner?.flush()}}function wP(t,r,i,a){const l=r[dt];if(!(256&~l))return;r[Oo].inlineEffectRunner?.flush(),Vl(r);let m=null,_=null;(function hO(t){return 2!==t.type})(t)&&(_=function xT(t){return t[Ll]??function Uf(t){const r=Zs.pop()??Object.create(fO);return r.lView=t,r}(t)}(r),m=wt(_));try{Zv(r),function t_(t){return Ir.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==i&&od(t,r,i,2,a);const T=!(3&~l);if(T){const se=t.preOrderCheckHooks;null!==se&&sf(r,se,null)}else{const se=t.preOrderHooks;null!==se&&Gu(r,se,0,null),l_(r,0)}if(function LT(t){for(let r=Gg(t);null!==r;
1r=yf(r)){if(!(r[dt]&Kv.HasTransplantedViews))continue;const i=r[Lh];for(let a=0;a<i.length;a++){TE(i[a])}}}(r),pO(r,0),null!==t.contentQueries&&Rb(t,r),T){const se=t.contentCheckHooks;null!==se&&sf(r,se)}else{const se=t.contentHooks;null!==se&&Gu(r,se,1),l_(r,1)}!function ET(t,r){const i=t.hostBindingOpCodes;if(null!==i)try{for(let a=0;a<i.length;a++){const l=i[a];if(l<0)rf(~l);else{const f=l,m=i[++a],_=i[++a];AE(m,f),_(2,r[f])}}}finally{rf(-1)}}(t,r);const k=t.components;null!==k&&sy(r,k,0);const K=t.viewQuery;if(null!==K&&ny(2,K,a),T){const se=t.viewCheckHooks;null!==se&&sf(r,se)}else{const se=t.viewHooks;null!==se&&Gu(r,se,2),l_(r,2)}if(!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r[zv]){for(const se of r[zv])se();r[zv]=null}r[dt]&=-73}catch(T){throw Uh(r),T}finally{null!==_&&(Zt(_,m),function pm(t){t.lView[Ll]!==t&&(t.lView=null,Zs.push(t))}(_)),kg()}}function pO(t,r){for(let i=Gg(t);null!==i;i=yf(i))for(let a=Zi;a<i.length;a++)FT(i[a],r)}function sd(t,r,i){FT(Za(r,t),i)}function FT(t,r){h0(t)&&oy(t,r)}function oy(t,r){const a=t[Me],l=t[dt],f=t[Ll];let m=!!(0===r&&16&l);if(m||=!!(64&l&&0===r),m||=!!(1024&l),m||=!(!f?.dirty||!En(f)),f&&(f.dirty=!1),t[dt]&=-9217,m)wP(a,t,a.template,t[Er]);else if(8192&l){pO(t,1);const _=a.components;null!==_&&sy(t,_,1)}}function sy(t,r,i){for(let a=0;a<r.length;a++)sd(t,r[a],i)}function Bf(t){for(t[Oo].changeDetectionScheduler?.notify();t;){t[dt]|=64;const r=qc(t);if(bg(t)&&!r)return t;t=r}return null}class mp{get rootNodes(){const r=this._lView,i=r[Me];return fm(i,r,i.firstChild,[])}constructor(r,i,a=!0){this._lView=r,this._cdRefInjectingView=i,this.notifyErrorHandler=a,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Er]}set context(r){this._lView[Er]=r}get destroyed(){return!(256&~this._lView[dt])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const r=this._lView[Jt];if(as(r)){const i=r[8],a=i?i.indexOf(this):-1;a>-1&&(ho(r,a),Ka(i,a))}this._attachedToViewContainer=!1}Nf(this._lView[Me],this._lView)}onDestroy(r){e_(this._lView,r)}markForCheck(){Bf(this._cdRefInjectingView||this._lView)}detach(){this._lView[dt]&=-129}reattach(){Jv(this._lView),this._lView[dt]|=128}detectChanges(){this._lView[dt]|=1024,gm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Pt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Rf(this._lView[Me],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new Pt(902,!1);this._appRef=r,Jv(this._lView)}}let iu=(()=>{class t{static{this.__NG_ELEMENT_ID__=UT}}return t})();const ad=iu,ay=class extends ad{constructor(r,i,a){super(),this._declarationLView=r,this._declarationTContainer=i,this.elementRef=a}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(r,i){return this.createEmbeddedViewImpl(r,i)}createEmbeddedViewImpl(r,i,a){const l=function ry(t,r,i,a){const l=R(null);try{const f=r.tView,T=cm(t,f,i,4096&t[dt]?4096:16,null,r,null,null,a?.injector??null,a?.embeddedViewInjector??null,a?.dehydratedView??null);T[As]=t[r.index];const K=t[$s];return null!==K&&(T[$s]=K.createEmbeddedView(f)),dm(f,T,i),T}finally{R(l)}}(this._declarationLView,this._declarationTContainer,r,{embeddedViewInjector:i,dehydratedView:a});return new mp(l)}};function UT(){return mm(pi(),kt())}function mm(t,r){return 4&t.type?new ay(r,t,Ks(t,r)):null}class KT{}class RP{}class Qb{}class Em{resolveComponentFactory(r){throw function yO(t){const r=Error(`No component factory found for ${Gr(t)}.`);return r.ngComponent=t,r}(r)}}let py=(()=>{class t{static{this.NULL=new Em}}return t})();class Zb{}let WT=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function CO(){const t=kt(),i=Za(pi().index,t);return($i(i)?i:t)[$n]}()}}return t})(),EO=(()=>{class t{static{this.\u0275prov=U({token:t,providedIn:"root",factory:()=>null})}}return t})();const Jb={},gy=new Set;function _a(t){gy.has(t)||(gy.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function YT(...t){}class To{constructor({enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:a=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tc(!1),this.onMicrotaskEmpty=new tc(!1),this.onStable=new tc(!1),this.onError=ne
1w tc(!1),typeof Zone>"u")throw new Pt(908,!1);Zone.assertZonePatched();const l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!a&&i,l.shouldCoalesceRunChangeDetection=a,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function my(){const t="function"==typeof qn.requestAnimationFrame;let r=qn[t?"requestAnimationFrame":"setTimeout"],i=qn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&r&&i){const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a);const l=i[Zone.__symbol__("OriginalDelegate")];l&&(i=l)}return{nativeRequestAnimationFrame:r,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function IO(t){const r=()=>{!function TO(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(qn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ou(t),t.isCheckStableRunning=!0,eA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ou(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,a,l,f,m,_)=>{if(function bO(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(_))return i.invokeTask(l,f,m,_);try{return XT(t),i.invokeTask(l,f,m,_)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===f.type||t.shouldCoalesceRunChangeDetection)&&r(),_y(t)}},onInvoke:(i,a,l,f,m,_,T)=>{try{return XT(t),i.invoke(l,f,m,_,T)}finally{t.shouldCoalesceRunChangeDetection&&r(),_y(t)}},onHasTask:(i,a,l,f)=>{i.hasTask(l,f),a===l&&("microTask"==f.change?(t._hasPendingMicrotasks=f.microTask,ou(t),eA(t)):"macroTask"==f.change&&(t.hasPendingMacrotasks=f.macroTask))},onHandleError:(i,a,l,f)=>(i.handleError(l,f),t.runOutsideAngular(()=>t.onError.emit(f)),!1)})}(l)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!To.isInAngularZone())throw new Pt(909,!1)}static assertNotInAngularZone(){if(To.isInAngularZone())throw new Pt(909,!1)}run(r,i,a){return this._inner.run(r,i,a)}runTask(r,i,a,l){const f=this._inner,m=f.scheduleEventTask("NgZoneEvent: "+l,r,vy,YT,YT);try{return f.runTask(m,i,a)}finally{f.cancelTask(m)}}runGuarded(r,i,a){return this._inner.runGuarded(r,i,a)}runOutsideAngular(r){return this._outer.run(r)}}const vy={};function eA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ou(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function XT(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _y(t){t._nesting--,eA(t)}class SO{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tc,this.onMicrotaskEmpty=new tc,this.onStable=new tc,this.onError=new tc}run(r,i,a){return r.apply(i,a)}runGuarded(r,i,a){return r.apply(i,a)}runOutsideAngular(r){return r()}runTask(r,i,a,l){return r.apply(i,a)}}var ud=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ud||{});const qT={destroy(){}};function Cy(t,r){!r&&kl();const i=r?.injector??Zn(Po);if(!function Nc(t){return"browser"===(t??Zn(Po)).get(YE)}(i))return qT;_a("NgAfterNextRender");const a=i.get(Vf),l=a.handler??=new Im,f=r?.phase??ud.MixedReadWrite,m=()=>{l.unregister(T),_()},_=i.get(Wl).onDestroy(m),T=Ci(i,()=>new Ba(f,()=>{m(),t()}));return l.register(T),{destroy:m}}class Ba{constructor(r,i){this.phase=r,this.callbackFn=i,this.zone=Zn(To),this.errorHandler=Zn(cs,{optional:!0}),Zn(KT,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){this.errorHandler?.handleError(r)}}}class Im{constructor(){this.executingCallbacks=!1,this.buckets={[ud.EarlyRead]:new Set,[ud.Write]:new Set,[ud.MixedReadWrite]:new Set,[ud.Read]:new Set},this.deferredCallbacks=new Set}register(r){(this.executingCallbacks?this.deferredCallbacks:this.buckets[r.phase]).add(r)}unregister(r){this.buckets[r.phase].delete(r),this.deferredCallbacks.delete(r)}execute(){this.executingCallbacks=!0;for(const r of Object.values(this.buckets))for(const i of r)i.invoke();this.executingCallbacks=!1;for(const r of this.deferredCallbacks)this.buckets[r.phase].add(r);this.deferredCallbacks.clear()}destroy(){for(const r of Object.values(this.buckets))r.clear();this.deferredCallbacks.clear()}}let Vf=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of i)a()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=U({token:t,providedIn:"root",factory:()=>new t})}}return t})();function dd(t){return!!zo(t)}function jf(t,r,i){let a=i?t.styles:null,l=i?t.classes:null,f=0;if(null!==r)for(let m=0;m<r.length;m++){const _=r[m];"number"==typeof _?f=_:1==f?l=wi(l,_):2==f&&(a=wi(a,_+": "+r[++m]+";"))}i?t.styles=a:t.stylesWithoutHost=a,i?t.classes=l:t.classesWithoutHost=l}class tA extends py{constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){const i=wr(r);return new au(i,this.ngModule)}}function Sm(t){const r=[];for(const i in t){if(!t.hasOwnProperty(i))continue;const a=t[i];void 0!==a&&r.push({propName:Array.isArray(a)?a[0]:a,templateName:i})}return r}class hd{constructor(r,i){this.injector=r,this.parentInjector=i}get(r,i,a){a=jo(a);const l=this.injector.get(r,Jb,a);return l!==Jb||i===Jb?l:this.parentInjector.get(r,i,a)}}class au extends Qb{get inputs(){const r=this.componentDef,i=r.inputTransforms,a=Sm(r.inputs);if(null!==i)for(const l of a)i.hasOwnProperty(l.propName)&&(l.transform=i[l.propName]);return a}get outputs(){return Sm(this.componentDef.outputs)}constructor(r,i){super(),this.componentDef=r,this.ngModule=i,this.componentType=r.type,this.selector=function Dc(t){return t.map(Xa).join(",")}(r.selectors),this.ngContentSelectors=r.ngContentSelectors?r.ngContentSelectors:[],this.isBoundToModule=!!i}create(r,i,a,l){const f=R(null);try{let m=(l=l||this.ngModule)instanceof Gs?l:l?.injector;m&&null!==this.componentDef.getStandaloneInjector&&(m=this.componentDef.getStandaloneInjector(m)||m);const _=m?new hd(r,m):r,T=_.get(Zb,null);if(null===T)throw new Pt(407,!1);const k=_.get(EO,null),fe={rendererFactory:T,sanitizer:k,inlineEffectRunner:null,afterRe
vendor: 9,056 bytes, line 1
1nderEventManager:_.get(Vf,null),changeDetectionScheduler:_.get(KT,null)},Ke=T.createRenderer(null,this.componentDef),Ze=this.componentDef.selectors[0][0]||"div",Ot=a?function sc(t,r,i,a){const f=a.get(b_,!1)||i===Jo.ShadowDom,m=t.selectRootElement(r,f);return function nO(t){yb(t)}(m),m}(Ke,a,this.componentDef.encapsulation,_):lp(Ke,Ze,function nA(t){const r=t.toLowerCase();return"svg"===r?aM:"math"===r?"math":null}(Ze));let on=512;this.componentDef.signals?on|=4096:this.componentDef.onPush||(on|=16);let Cn=null;null!==Ot&&(Cn=V0(Ot,_,!0));const Vt=pp(0,null,null,1,0,null,null,null,null,null,null),lr=cm(null,Vt,null,on,null,null,fe,Ke,_,null,Cn);let Zr,Ui;Vl(lr);try{const rs=this.componentDef;let Sa,Hc=null;rs.findHostDirectiveDefs?(Sa=[],Hc=new Map,rs.findHostDirectiveDefs(rs,Sa,Hc),Sa.push(rs)):Sa=[rs];const t0=function rA(t,r){const i=t[Me],a=Tr;return t[a]=r,fp(i,a,2,"#host",null)}(lr,Ot),bN=function tI(t,r,i,a,l,f,m){const _=l[Me];!function pd(t,r,i,a){for(const l of t)r.mergedAttrs=M(r.mergedAttrs,l.hostAttrs);null!==r.mergedAttrs&&(jf(r,r.mergedAttrs,!0),null!==i&&Z_(a,i,r))}(a,t,r,m);let T=null;null!==r&&(T=V0(r,l[Ei]));const k=f.rendererFactory.createRenderer(r,i);let K=16;i.signals?K=4096:i.onPush&&(K=64);const se=cm(l,_b(i),null,K,l[t.index],t,f,k,null,null,T);return _.firstCreatePass&&Pc(_,t,a.length-1),Ti(l,se),l[t.index]=se}(t0,Ot,rs,Sa,lr,fe,Ke);Ui=Qv(Vt,Tr),Ot&&function Ep(t,r,i,a){if(a)ca(t,i,["ng-version","17.3.12"]);else{const{attrs:l,classes:f}=function wh(t){const r=[],i=[];let a=1,l=2;for(;a<t.length;){let f=t[a];if("string"==typeof f)2===l?""!==f&&r.push(f,t[++a]):8===l&&i.push(f);else{if(!fo(l))break;l=f}a++}return{attrs:r,classes:i}}(r.selectors[0]);l&&ca(t,i,l),f&&f.length>0&&Ua(t,i,f.join(" "))}}(Ke,rs,Ot,a),void 0!==i&&function Sy(t,r,i){const a=t.projection=[];for(let l=0;l<r.length;l++){const f=i[l];a.push(null!=f?Array.from(f):null)}}(Ui,this.ngContentSelectors,i),Zr=function MO(t,r,i,a,l,f){const m=pi(),_=l[Me],T=ha(m,l);fl(_,l,m,i,null,a);for(let K=0;K<i.length;K++)Os(Ms(l,_,m.directiveStart+K,m),l);lm(_,l,m),T&&Os(T,l);const k=Ms(l,_,m.directiveStart+m.componentOffset,m);if(t[Er]=l[Er]=k,null!==f)for(const K of f)K(k,r);return IT(_,m,l),k}(bN,rs,Sa,Hc,lr,[nI]),dm(Vt,lr,null)}finally{kg()}return new kP(this.componentType,Zr,Ks(Ui,lr),lr,Ui)}finally{R(f)}}}class kP extends RP{constructor(r,i,a,l,f){super(),this.location=a,this._rootLView=l,this._tNode=f,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new mp(l,void 0,!1),this.componentType=r}setInput(r,i){const a=this._tNode.inputs;let l;if(null!==a&&(l=a[r])){if(this.previousInputValues??=new Map,this.previousInputValues.has(r)&&Object.is(this.previousInputValues.get(r),i))return;const f=this._rootLView;NT(f[Me],f,l,r,i),this.previousInputValues.set(r,i),Bf(Za(this._tNode.index,f))}}get injector(){return new io(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(r){this.hostView.onDestroy(r)}}function nI(){const t=pi();c_(kt()[Me],t)}let cu=(()=>{class t{static{this.__NG_ELEMENT_ID__=oi}}return t})();function oi(){return bm(pi(),kt())}const gd=cu,md=class extends gd{constructor(r,i,a){super(),this._lContainer=r,this._hostTNode=i,this._hostLView=a}get element(){return Ks(this._hostTNode,this._hostLView)}get injector(){return new io(this._hostTNode,this._hostLView)}get parentInjector(){const r=el(this._hostTNode,this._hostLView);if(T0(r)){const i=d_(r,this._hostLView),a=u_(r);return new io(i[Me].data[a+8],i)}return new io(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const i=ya(this._lContainer);return null!==i&&i[r]||null}get length(){return this._lContainer.length-Zi}createEmbeddedView(r,i,a){let l,f;"number"==typeof a?l=a:null!=a&&(l=a.index,f=a.injector);const _=r.createEmbeddedViewImpl(i||{},f,null);return this.insertImpl(_,l,Ff(this._hostTNode,null)),_}createComponent(r,i,a,l,f){const m=r&&!function Ut(t){return"function"==typeof t}(r);let _;if(m)_=i;else{const Ze=i||{};_=Ze.index,a=Ze.injector,l=Ze.projectableNodes,f=Ze.environmentInjector||Ze.ngModuleRef}const T=m?r:new au(wr(r)),k=a||this.parentInjector;if(!f&&null==T.ngModule){const Ot=(m?k:this.parentInjector).get(Gs,null);Ot&&(f=Ot)}wr(T.componentType??{});const Ke=T.create(k,l,null,f);return this.insertImpl(Ke.hostView,_,Ff(this._hostTNode,null)),Ke}insert(r,i){return this.insertImpl(r,i,!0)}insertImpl(r,i,a){const l=r._lView;if(function aP(t){return as(t[Jt])}(l)){const _=this.indexOf(r);if(-1!==_)this.detach(_);else{const T=l[Jt],k=new md(T,T[un],T[Jt]);k.detach(k.indexOf(r))}}const f=this._adjustIndex(i),m=this._lContainer;return gp(m,l,f,a),r.attachToViewContainerRef(),bc(lu(m),f,r),r}move(r,i){return this.insert(r,i)}indexOf(r){const i=ya(this._lContainer);return null!==i?i.indexOf(r):-1}remove(r){const i=this._adjustIndex(r,-1),a=ho(this._lContainer,i);a&&(Ka(lu(this._lContainer),i),Nf(a[Me],a))}detach(r){const i=this._adjustIndex(r,-1),a=ho(this._lContainer,i);return a&&null!=Ka(lu(this._lContainer),i)?new mp(a):null}_adjustIndex(r,i=0){return r??this.length+i}};function ya(t){return t[8]}function lu(t){return t[8]||(t[8]=[])}function bm(t,r){let i;const a=r[t.index];return as(a)?i=a:(i=cO(a,r,null,t),r[t.index]=i,Ti(r,i)),by(i,r,t,a),new md(i,t,r)}let by=function Gf(t,r,i,a){if(t[wc])return;let l;l=8&i.type?Oi(a):function dc(t,r){const i=t[$n],a=i.createComment(""),l=ha(r,t);return rd(i,nu(i,l),a,function QM(t,r){return t.nextSibling(r)}(i,l),!1),a}(r,i),t[wc]=l},uu=()=>!1;class Dm{constructor(r){this.queryList=r,this.matches=null}clone(){return new Dm(this.queryList)}setDirty(){this.queryList.setDirty()}}class vd{constructor(r=[]){this.queries=r}createEmbeddedView(r){const i=r.queries;if(null!==i){const a=null!==r.contentQueries?r.contentQueries[0]:i.length,l=[];for(let f=0;f<a;f++){const m=i.getByIndex(f);l.push(this.queries[m.indexInDeclarationView].clone())}return new vd(l)}return null}insertView(r){this.dirtyQueriesWithMatches(r)}detachView(r){this.dirtyQueriesWithMatches(r)}finishViewCreation(r){this.dirtyQueriesWithMatches(r)}dirtyQueriesWithMatches(r){for(let i=0;i<this.queries.length;i++)null!==Ny(r,i).matches&&this.queries[i].setDirty()}}class iI{constructor(r,i,a=null){this.flags=i,this.read=a,this.predicate="string"==typeof r?function lI(t){return t.split(",").map(r=>r.trim())}(r):r}}class $f{constructor(r=[]){this.queries=r}elementStart(r,i){for(let a=0;a<this.queries.length;a++)this.queries[a].elementStart(r,i)}elementEnd(r){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(r)}embeddedTView(r){let i=null;for(let a=0;a<this.length;a++){const l=null!==i?i.length:0,f=this.getByIndex(a).embeddedTView(r,l);f&&(f.indexInDeclarationView=a,null!==i?i.push(f):i=[f])}return null!==i?new $f(i):null}template(r,i){for(let a=0;a<this.queries.length;a++)this.queries[a].template(r,i)}getByIndex(r){return this.queries[r]}get length(){return this.queries.length}track(r){this.queries.push(r)}}class wm{constructor(r,i=-1){this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(r,i){this.isApplyingToNode(i)&&this.matchTNode(r,i)}elementEnd(r){this._declarationNodeIndex===r.index&&(this._appliesToNextNode=!1)}template(r,i){this.elementStart(r,i)}embeddedTView(r,i){return this.isApplyingToNode(r)?(this.crossesNgTemplate=!0,this.addMatch(-r.index,i),new wm(this.metadata)):null}isApplyingToNode(r){if(this._appliesToNextNode&&1&~this.metadata.flags){const i=this._declarationNodeIndex;let a=r.parent;for(;null!==a&&8&a.type&&a.index!==i;)a=a.parent;return i===(null!==a?a.index:-1)}return this._appliesToNextNode}matchTNode(r,i){const a=this.metadata.predicate;if(Array.isArray(a))for(let l=0;l<a.length;l++){const f=a[l];this.matchTNodeWithReadOption(r,i,oI(i,f)),this.matchTNodeWithReadOption(r,i,df(i,r,f,!1,!1))}else a===iu?4&i.type&&this.matchTNodeWithReadOption(r,i,-1):this.matchTNodeWithReadOption(r,i,df(i,r,a,!1,!1))}matchTNodeWithReadOption(r,i,a){if(null!==a){const l=this.metadata.read;if(null!==l)if(l===Hr||l===cu||l===iu&&4&i.type)this.addMatch(i.index,-2);else{const f=df(i,r,l,!1,!1);null!==f&&this.addMatch(i.index,f)}else this.addMatch(i.index,a)}}addMatch(r,i){null===this.matches?this.matches=[r,i]:this.matches.push(r,i)}}function oI(t,r){const i=t.localNames;if(null!==i)for(let a=0;a<i.length;a+=2)if(i[a]===r)return i[a+1];return null}function Dy(t,r,i,a){return-1===i?function sI(t,r){return 11&t.type?Ks(t,r):4&t.type?mm(t,r):null}(r,t):-2===i?function OO(t,r,i){return i===Hr?Ks(r,t):i===iu?mm(r,t):i===cu?bm(r,t):void 0}(t,r,a):Ms(t,t[Me],i,r)}function wy(t,r,i,a){const l=r[$s].queries[a];if(null===l.matches){const f=t.data,m=i.matches,_=[];for(let T=0;null!==m&&T<m.length;T+=2){const k=m[T];_.push(k<0?null:Dy(r,f[k],m[T+1],i.metadata.read))}l.matches=_}return l.matches}function My(t,r,i,a){const l=t.queries.getByIndex(i),f=l.matches;if(null!==f){const m=wy(t,r,l,i);for(let _=0;_<f.length;_+=2){const T=f[_];if(T>0)a.push(m[_/2]);
1else{const k=f[_+1],K=r[-T];for(let se=Zi;se<K.length;se++){const fe=K[se];fe[As]===fe[Jt]&&My(fe[Me],fe,k,a)}if(null!==K[Lh]){const se=K[Lh];for(let fe=0;fe<se.length;fe++){const Ke=se[fe];My(Ke[Me],Ke,k,a)}}}}}return a}function Tp(t,r,i){const a=new Xu(!(4&~i));return function Eb(t,r,i,a){const l=Nb(r);l.push(i),t.firstCreatePass&&um(t).push(a,l.length-1)}(t,r,a,a.destroy),(r[$s]??=new vd).queries.push(new Dm(a))-1}function Ry(t,r,i){null===t.queries&&(t.queries=new $f),t.queries.track(new wm(r,i))}function Ny(t,r){return t.queries.getByIndex(r)}function Mm(t,r){const i=t[Me],a=Ny(i,r);return a.crossesNgTemplate?My(i,t,r,[]):wy(i,t,a,r)}function oA(t,r){_a("NgSignals");const i=function xe(t){const r=Object.create(Te);r.value=t;const i=()=>(Ie(r),r.value);return i[x]=r,i}(t),a=i[x];return r?.equal&&(a.equal=r.equal),i.set=l=>te(a,l),i.update=l=>function ce(t,r){lt()||gn(),te(t,r(t.value))}(a,l),i.asReadonly=Om.bind(i),i}function Om(){const t=this[x];if(void 0===t.readonlyFn){const r=()=>this();r[x]=t,t.readonlyFn=r}return t.readonlyFn}function xy(t){return function Py(t){return"function"==typeof t&&void 0!==t[x]}(t)&&"function"==typeof t.set}function yI(t){let r=function _I(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),i=!0;const a=[t];for(;r;){let l;if(fa(t))l=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new Pt(903,!1);l=r.\u0275dir}if(l){if(i){a.push(l);const m=t;m.inputs=Uy(t.inputs),m.inputTransforms=Uy(t.inputTransforms),m.declaredInputs=Uy(t.declaredInputs),m.outputs=Uy(t.outputs);const _=l.hostBindings;_&&dA(t,_);const T=l.viewQuery,k=l.contentQueries;if(T&&CI(t,T),k&&EI(t,k),Nm(t,l),Bi(t.outputs,l.outputs),fa(l)&&l.data.animation){const K=t.data;K.animation=(K.animation||[]).concat(l.data.animation)}}const f=l.features;if(f)for(let m=0;m<f.length;m++){const _=f[m];_&&_.ngInherit&&_(t),_===yI&&(i=!1)}}r=Object.getPrototypeOf(r)}!function BO(t){let r=0,i=null;for(let a=t.length-1;a>=0;a--){const l=t[a];l.hostVars=r+=l.hostVars,l.hostAttrs=M(l.hostAttrs,i=M(i,l.hostAttrs))}}(a)}function Nm(t,r){for(const i in r.inputs){if(!r.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;const a=r.inputs[i];if(void 0!==a&&(t.inputs[i]=a,t.declaredInputs[i]=r.declaredInputs[i],null!==r.inputTransforms)){const l=Array.isArray(a)?a[0]:a;if(!r.inputTransforms.hasOwnProperty(l))continue;t.inputTransforms??={},t.inputTransforms[l]=r.inputTransforms[l]}}}function Uy(t){return t===Jr?{}:t===kr?[]:t}function CI(t,r){const i=t.viewQuery;t.viewQuery=i?(a,l)=>{r(a,l),i(a,l)}:r}function EI(t,r){const i=t.contentQueries;t.contentQueries=i?(a,l,f)=>{r(a,l,f),i(a,l,f)}:r}function dA(t,r){const i=t.hostBindings;t.hostBindings=i?(a,l)=>{r(a,l),i(a,l)}:r}function pA(t){const r=t.inputConfig,i={};for(const a in r)if(r.hasOwnProperty(a)){const l=r[a];Array.isArray(l)&&l[3]&&(i[a]=l[3])}t.inputTransforms=i}class zf{}class Vy{}function II(t,r){return new Kf(t,r??null,[])}class Kf extends zf{constructor(r,i,a){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tA(this);const l=zo(r);this._bootstrapComponents=qs(l.bootstrap),this._r3Injector=UE(r,i,[{provide:zf,useValue:this},{provide:py,useValue:this.componentFactoryResolver},...a],Gr(r),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(r)}get injector(){return this._r3Injector}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class mA extends Vy{constructor(r){super(),this.moduleType=r}create(r){return new Kf(this.moduleType,r,[])}}class VO extends zf{constructor(r){super(),this.componentFactoryResolver=new tA(this),this.instance=null;const i=new Pl([...r.providers,{provide:zf,useValue:this},{provide:py,useValue:this.componentFactoryResolver}],r.parent||Wr(),r.debugName,new Set(["environment"]));this.injector=i,r.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}}function vA(t,r,i=null){return new VO({providers:t,parent:r,debugName:i,runEnvironmentInitializer
vendor: 10,554 bytes, line 1
1s:!0}).injector}let _d=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qt.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function du(t){return!!CA(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function CA(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function fu(t,r,i){return t[r]=i}function jy(t,r){return t[r]}function _o(t,r,i){return!Object.is(t[r],i)&&(t[r]=i,!0)}function hu(t,r,i,a){const l=_o(t,r,i);return _o(t,r+1,a)||l}function wp(t,r,i,a,l){const f=hu(t,r,i,a);return _o(t,r+2,l)||f}function us(t,r,i,a,l,f){const m=hu(t,r,i,a);return hu(t,r+2,l,f)||m}function km(t,r,i,a,l,f,m,_){const T=kt(),k=Qr(),K=t+Tr,se=k.firstCreatePass?function ek(t,r,i,a,l,f,m,_,T){const k=r.consts,K=fp(r,t,4,m||null,Ja(k,_));Sb(r,i,K,Ja(k,T)),c_(r,K);const se=K.tView=pp(2,K,a,l,f,r.directiveRegistry,r.pipeRegistry,null,r.schemas,k,null);return null!==r.queries&&(r.queries.template(r,K),se.queries=r.queries.embeddedTView(K)),K}(K,k,T,r,i,a,l,f,m):k.data[K];xa(se,!1);const fe=EA(k,T,se,t);ga()&&q_(k,T,fe,se),Os(fe,T);const Ke=cO(fe,T,fe,se);return T[K]=Ke,Ti(T,Ke),function Ay(t,r,i){return uu(t,r,i)}(Ke,se,T),Fh(se)&&ey(k,T,se),null!=m&&ST(T,se,_),km}let EA=function jO(t,r,i,a){return jl(!0),r[$n].createComment("")};function vl(t,r,i,a){const l=kt();return _o(l,pa(),r)&&(Qr(),ac(Ji(),l,t,r,i,a)),vl}function _l(t,r,i,a){return _o(t,pa(),i)?r+Xn(i)+a:Nr}function Cl(t,r){return t<<17|r<<2}function Ea(t){return t>>17&32767}function Gm(t){return 2|t}function mc(t){return(131068&t)>>2}function Bp(t,r){return-131069&t|r<<2}function zm(t){return 1|t}function Vp(t,r,i,a){const l=t[i+1],f=null===r;let m=a?Ea(l):mc(l),_=!1;for(;0!==m&&(!1===_||f);){const k=t[m+1];xs(t[m],r)&&(_=!0,t[m+1]=a?zm(k):Gm(k)),m=a?Ea(k):mc(k)}_&&(t[i+1]=a?Gm(l):zm(l))}function xs(t,r){return null===t||null==r||(Array.isArray(t)?t[1]:t)===r||!(!Array.isArray(t)||"string"!=typeof r)&&Go(t,r)>=0}const xo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jp(t){return t.substring(xo.key,xo.keyEnd)}function Wm(t){return t.substring(xo.value,xo.valueEnd)}function eC(t,r){const i=xo.textEnd;return i===r?-1:(r=xo.keyEnd=function xA(t,r,i){for(;r<i&&t.charCodeAt(r)>32;)r++;return r}(t,xo.key=r,i),th(t,r,i))}function tC(t,r){const i=xo.textEnd;let a=xo.key=th(t,r,i);return i===a?-1:(a=xo.keyEnd=function El(t,r,i){let a;for(;r<i&&(45===(a=t.charCodeAt(r))||95===a||(-33&a)>=65&&(-33&a)<=90||a>=48&&a<=57);)r++;return r}(t,a,i),a=xI(t,a,i),a=xo.value=th(t,a,i),a=xo.valueEnd=function LA(t,r,i){let a=-1,l=-1,f=-1,m=r,_=m;for(;m<i;){const T=t.charCodeAt(m++);if(59===T)return _;34===T||39===T?_=m=Xm(t,T,m,i):r===m-4&&85===f&&82===l&&76===a&&40===T?_=m=Xm(t,41,m,i):T>32&&(_=m),f=l,l=a,a=-33&T}return _}(t,a,i),xI(t,a,i))}function nC(t){xo.key=0,xo.keyEnd=0,xo.value=0,xo.valueEnd=0,xo.textEnd=t.length}function th(t,r,i){for(;r<i&&t.charCodeAt(r)<=32;)r++;return r}function xI(t,r,i,a){return(r=th(t,r,i))<i&&r++,r}function Xm(t,r,i,a){let l=-1,f=i;for(;f<a;){const m=t.charCodeAt(f++);if(m==r&&92!==l)return f;l=92==m&&92===l?0:m}throw new Error}function qm(t,r,i){const a=kt();return _o(a,pa(),r)&&Qs(Qr(),Ji(),a,t,r,a[$n],i,!1),qm}function $p(t,r,i,a,l){const m=l?"class":"style";NT(t,i,r.inputs[m],m,a)}function Qm(t,r,i){return si(t,r,i,!1),Qm}function Zm(t,r){return si(t,r,null,!0),Zm}function Va(t){Fi(FI,rC,t,!1)}function rC(t,r){for(let i=function kA(t){return nC(t),tC(t,th(t,0,xo.textEnd))}(r);i>=0;i=tC(r,i))FI(t,jp(r),Wm(r))}function FA(t){Fi(lR,vc,t,!0)}function vc(t,r){for(let i=function Ym(t){return nC(t),eC(t,th(t,0,xo.textEnd))}(r);i>=0;i=eC(r,i))yi(t,jp(r),!0)}function si(t,r,i,a){const l=kt(),f=Qr(),m=Jc(2);f.firstUpdatePass&&So(f,t,m,a),r!==Nr&&_o(l,m,r)&&UA(f,f.data[ws()],l,l[$n],t,l[m+1]=function HA(t,r){return null==t||""===t||("string"==typeof r?t+=r:"object"==typeof t&&(t=Gr(Rc(t)))),t}(r,i),a,m)}function Fi(t,r,i,a){const l=Qr(),f=Jc(2);l.firstUpdatePass&&So(l,null,f,a);const m=kt();if(i!==Nr&&_o(m,f,i)){const _=l.data[ws()];if(oC(_,a)&&!LI(l,f)){let T=a?_.classesWithoutHost:_.stylesWithoutHost;null!==T&&(i=wi(T,i||"")),$p(l,_,m,i,a)}else!function uR(t,r,i,a,l,f,m,_){l===Nr&&(l=kr);let T=0,k=0,K=0<l.length?l[0]:null,se=0<f.length?f[0]:null;for(;null!==K||null!==se;){const fe=T<l.length?l[T+1]:void 0,Ke=k<f.length?f[k+1]:void 0;let Ot,Ze=null;K===se?(T+=2,k+=2,fe!==Ke&&(Ze=se,Ot=Ke)):null===se||null!==K&&K<se?(T+=2,Ze=K):(k+=2,Ze=se,Ot=Ke),null!==Ze&&UA(t,r,i,a,Ze,Ot,m,_),K=T<l.length?l[T]:null,se=k<f.length?f[k]:null}}(l,_,m,m[$n],m[f+1],m[f+1]=function cR(t,r,i){if(null==i||""===i)return kr;const a=[],l=Rc(i);if(Array.isArray(l))for(let f=0;f<l.length;f++)t(a,l[f],!0);else if("object"==typeof l)for(const f in l)l.hasOwnProperty(f)&&t(a,f,l[f]);else"string"==typeof l&&r(a,l);return a}(t,r,i),a,f)}}function LI(t,r){return r>=t.expandoStartIndex}function So(t,r,i,a){const l=t.data;if(null===l[i+1]){const f=l[ws()],m=LI(t,i);oC(f,a)&&null===r&&!m&&(r=!1),r=function aR(t,r,i,a){const l=function n_(t){const r=Ir.lFrame.currentDirectiveIndex;return-1===r?null:t[r]}(t);let f=a?r.residualClasses:r.residualStyles;if(null===l)0===(a?r.classBindings:r.styleBindings)&&(i=Jm(i=Cu(null,t,r,i,a),r.attrs,a),f=null);else{const m=r.directiveStylingLast;if(-1===m||t[m]!==l)if(i=Cu(l,t,r,i,a),null===f){let T=function Id(t,r,i){const a=i?r.classBindings:r.styleBindings;if(0!==mc(a))return t[Ea(a)]}(t,r,a);void 0!==T&&Array.isArray(T)&&(T=Cu(null,t,r,T[1],a),T=Jm(T,r.attrs,a),function nh(t,r,i,a){t[Ea(i?r.classBindings:r.styleBindings)]=a}(t,r,a,T))}else f=function rh(t,r,i){let a;const l=r.directiveEnd;for(let f=1+r.directiveStylingLast;f<l;f++)a=Jm(a,t[f].hostAttrs,i);return Jm(a,r.attrs,i)}(t,r,a)}return void 0!==f&&(a?r.residualClasses=f:r.residualStyles=f),i}(l,f,r,a),function Hp(t,r,i,a,l,f){let m=f?r.classBindings:r.styleBindings,_=Ea(m),T=mc(m);t[a]=i;let K,k=!1;if(Array.isArray(i)?(K=i[1],(null===K||Go(i,K)>0)&&(k=!0)):K=i,l)if(0!==T){const fe=Ea(t[_+1]);t[a+1]=Cl(fe,_),0!==fe&&(t[fe+1]=Bp(t[fe+1],a)),t[_+1]=function yu(t,r){return 131071&t|r<<17}(t[_+1],a)}else t[a+1]=Cl(_,0),0!==_&&(t[_+1]=Bp(t[_+1],a)),_=a;else t[a+1]=Cl(T,0),0===_?_=a:t[T+1]=Bp(t[T+1],a),T=a;k&&(t[a+1]=Gm(t[a+1])),Vp(t,K,a,!0),Vp(t,K,a,!1),function Km(t,r,i,a,l){const f=l?t.residualClasses:t.residualStyles;null!=f&&"string"==typeof r&&Go(f,r)>=0&&(i[a+1]=zm(i[a+1]))}(r,K,t,a,f),m=Cl(_,T),f?r.classBindings=m:r.styleBindings=m}(l,f,r,i,m,a)}}function Cu(t,r,i,a,l){let f=null;const m=i.directiveEnd;let _=i.directiveStylingLast;for(-1===_?_=i.directiveStart:_++;_<m&&(f=r[_],a=Jm(a,f.hostAttrs,l),f!==t);)_++;return null!==t&&(i.directiveStylingLast=_),a}function Jm(t,r,i){const a=i?1:2;let l=-1;if(null!==r)for(let f=0;f<r.length;f++){const m=r[f];"number"==typeof m?l=m:l===a&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),yi(t,m,!!i||r[++f]))}return void 0===t?null:t}function FI(t,r,i){yi(t,r,Rc(i))}function lR(t,r,i){const a=String(r);""!==a&&!a.includes(" ")&&yi(t,a,i)}function UA(t,r,i,a,l,f,m,_){if(!(3&r.type))return;const T=t.data,k=T[_+1],K=function $m(t){return!(1&~t)}(k)?BA(T,r,i,l,mc(k),m):void 0;iC(K)||(iC(f)||function Jf(t){return!(2&~t)}(k)&&(f=BA(T,null,i,l,_,m)),function gb(t,r,i,a,l){if(r)l?t.addClass(i,a):t.removeClass(i,a);else{let f=-1===a.indexOf("-")?void 0:cp.DashCase;null==l?t.removeStyle(i,a,f):("string"==typeof l&&l.endsWith("!important")&&(l=l.slice(0,-10),f|=cp.Important),t.setStyle(i,a,l,f))}}(a,m,zi(ws(),i),l,f))}function BA(t,r,i,a,l,f){const m=null===r;let _;for(;l>0;){const T=t[l],k=Array.isArray(T),K=k?T[1]:T,se=null===K;let fe=i[l+1];fe===Nr&&(fe=se?kr:void 0);let Ke=se?qr(fe,a):K===a?fe:void 0;if(k&&!iC(Ke)&&(Ke=qr(T,a)),iC(Ke)&&(_=Ke,m))return _;const Ze=t[l+1];l=m?Ea(Ze):mc(Ze)}if(null!==r){let T=f?r.residualClasses:r.residualStyles;null!=T&&(_=qr(T,a))}return _}function iC(t){return void 0!==t}function oC(t,r){return!!(t.flags&(r?8:16))}function sC(t,r,i,a){const l=kt(),f=Qr(),m=Tr+t,_=l[$n],T=f.firstCreatePass?function SR(t,r,i,a,l,f){const m=r.consts,T=fp(r,t,2,a,Ja(m,l));return Sb(r,i,T,Ja(m,f)),null!==T.attrs&&jf(T,T.attrs,!1),null!==T.mergedAttrs&&jf(T,T.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,T),T}(m,f,l,r,i,a):f.data[m],k=zI(f,l,T,_,r,t);l[m]=k;const K=Fh(T);return xa(T,!0),Z_(_,k,T),!function Gy(t){return!(32&~t.flags)}(T)&&ga()&&q_(f,l,k,T),0===function cP(){return Ir.lFrame.elementDepthCount}()&&Os(k,l),function dM(){Ir.lFrame.elementDepthCount++}(),K&&(ey(f,l,T),IT(f,T,l)),null!==a&&ST(l,T),sC}function aC(){let t=pi();Og()?ju():(t=t.parent,xa(t,!1));const r=t;(function fM(t){return Ir.skipHydrationRootTNode===t})(r)&&function dP(){Ir.skipHydrationRootTNode=null}(),function lP(){Ir.lFrame.elementDepthCount--}();const i=Qr();return i.firstCreatePass&&(c_(i,t),Wv(t)&&i.queries.elementEnd(t)),null!=r.classesWithoutHost&&function Gl(t){return!!(8&t.flags)}(r)&&$p(i,r,kt(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function fP(t){return!!(16&t.flags)}(r)&&$p(i,r,kt(),r.stylesWithoutHost,!1),aC}function Tl(t,r,i,a){return sC(t,r,i,a),aC(),Tl}let zI=(t,r,i,a,l,f)=>(jl(!0),lp(a,l,function ME(){return Ir.lFrame.currentNamespace}()));function cC(t,r,i){const a=kt(),l=Qr(),f=t+Tr,m=l.firstCreatePass?function AR(t,r,i,a,l){const f=r.consts,m=Ja(f,a),_=fp(r,t,8,"ng-container",m);return null!==m&&jf(_,m,!0),Sb(r,i,_,Ja(f,l)),null!==r.queries&&r.queries.elementStart(r,_),_}(f,l,a,r,i):l.data[f];xa(m,!0);const _=KA(l,a,m,t);return a[f]=_,ga()&&q_(l,a,_,m),Os(_,a),Fh(m)&&(ey(l,a,m),IT(l,m,a)),null!=i&&ST(a,m),cC}function lC(){let t=pi();const r=Qr();return Og()?ju():(t=t.parent,xa(t,!1)),r.firstCreatePass&&(c_(r,t),Wv(t)&&r.queries.elementEnd(t)),lC}function ev(t,r,i){return cC(t,r,i),lC(),ev}let KA=(t,r,i,a)=>(jl(!0),Y_(r[$n],""));function uC(){return kt()}function dC(t,r,i){const a=kt();return _o(a,pa(),r)&&Qs(Qr(),Ji(),a,t,r,a[$n],i,!0),dC}const ih=void 0;var MR=["en",[["a","p"],["AM","PM"],ih],[["AM","PM"],ih,ih],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ih,[["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"]],ih,[["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}",ih,"{1} 'at' {0}",ih],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function wR(t){const i=Math.floor(Math.abs(t)),a=t.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===a?1:5}];let zp={};function XA(t,r,i){"string"!=typeof r&&(i=r,r=t[Ls.LocaleId]),r=r.toLowerCase().replace(/_/g,"-"),zp[r]=t,i&&(zp[r][Ls.ExtraData]=i)}function bd(t){const r=function tv(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Tu(r);if(i)return i;const a=r.split("-")[0];if(i=Tu(a),i)return i;if("en"===a)return MR;throw new Pt(701,!1)}function Ad(t){return bd(t)[Ls.PluralCase]}function Tu(t){return t in zp||(zp[t]=qn.ng&&qn.ng.common&&qn.ng.common.locales&&qn.ng.common.locales[t]),zp[t]}var Ls=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Ls||{});const fs="en-US";let hC=fs;function DC(t,r,i,a){const l=kt(),f=Qr(),m=pi();return Rd(f,l,l[$n],m,t,r,a),DC}function Rd(t,r,i,a,l,f,m){const _=Fh(a),k=t.firstCreatePass&&um(t),K=r[Er],se=Nb(r);let fe=!0;if(3&a.type||m){const Ot=ha(a,r),on=m?m(Ot):Ot,Cn=se.length,Vt=m?Zr=>m(Oi(Zr[a.index])):a.index;let lr=null;if(!m&&_&&(lr=function tg(t,r,i,a){const l=t.cleanup;if(null!=l)for(let f=0;f<l.length-1;f+=2){const m=l[f];if(m===i&&l[f+1]===a){const _=r[Cr],T=l[f+2];return _.length>T?_[T]:null}"string"==typeof m&&(f+=2)}return null}(t,r,l,a.index)),null!==lr)(lr.__ngLastListenerFn__||lr).__ngNextListenerFn__=f,lr.__ngLastListenerFn__=f,fe=!1;else{f=cv(a,r,K,f,!1);const Zr=i.listen(on,l,f);se.push(f,Zr),k&&k.push(l,Vt,Cn,Cn+1)}}else f=cv(a,r,K,f,!1);const Ke=a.outputs;let Ze;if(fe&&null!==Ke&&(Ze=Ke[l])){const Ot=Ze.length;if(Ot)for(let on=0;on<Ot;on+=2){const Ui=r[Ze[on]][Ze[on+1]].subscribe(f),rs=se.length;se.push(f,Ui),k&&k.push(l,a.index,rs,-(rs+1))}}}function ng(t,r,i,a){const l=R(null);try{return Hl(6,r,i),!1!==i(a)}catch(f){return RT(t,f),!1}finally{Hl(7,r,i),R(l)}}function cv(t,r,i,a,l){return function f(m){if(m===Function)return a;Bf(t.componentOffset>-1?Za(t.index,r):r);let T=ng(r,i,a,m),k=f.__ngNextListenerFn__;for(;k;)T=ng(r,i,k,m)&&T,k=k.__ngNextListenerFn__;return l&&!1===T&&m.preventDefault(),T}}function MC(t=1){return function gM(t){return(Ir.lFrame.contextLView=function p0(t,r){for(;t>0;)r=r[Ro],t--;return r}(t,Ir.lFrame.contextLView))[Er]}(t)}function HR(t,r){let i=null;const a=function Ra(t){const r=t.attrs;if(null!=r){const i=r.indexOf(5);if(!(1&i))return r[i+1]}return null}(t);for(let l=0;l<r.length;l++){const f=r[l];if("*"!==f){if(null===a?la(t,f,!0):Li(a,f))return l}else i=l}return i}function gD(t){const r=kt()[ei][un];if(!r.projection){const a=r.projection=function Zo(t,r){const i=[];for(let a=0;a<t;a++)i.push(r);return i}(t?t.length:1,null),l=a.slice();let f=r.child;for(;null!==f;){const m=t?HR(f,t):0;null!==m&&(l[m]?l[m].projectionNext=f:a[m]=f,l[m]=f),f=f.next}}}function mD(t,r=0,i){const a=kt(),l=Qr(),f=fp(l,Tr+t,16,null,i||null);null===f.projection&&(f.projection=r),ju(),(!a[hr]||tf())&&32&~f.flags&&function eO(t,r,i){pb(r[$n],0,r,i,tu(t,i,r),id(i.parent||r[un],i,r))}(l,a,f)}function aS(t,r,i){return lv(t,"",r,"",i),aS}function lv(t,r,i,a,l){const f=kt(),m=_l(f,r,i,a);return m!==Nr&&Qs(Qr(),Ji(),f,t,m,f[$n],l,!1),lv}function CD(t,r,i,a){!function cI(t,r,i,a){const l=Qr();if(l.firstCreatePass){const f=pi();Ry(l,new iI(r,i,a),f.index),function iA(t,r){const i=t.contentQueries||(t.contentQueries=[]);r!==(i.length?i[i.length-1]:-1)&&i.push(t.queries.length-1,r)}(l,t),!(2&~i)&&(l.staticContentQueries=!0)}return Tp(l,kt(),i)}(t,r,i,a)}function Iu(t,r,i){!function aI(t,r,i){const a=Qr();return a.firstCreatePass&&(Ry(a,new iI(t,r,i),-1),!(2&~r)&&(a.staticViewQueries=!0)),Tp(a,kt(),r)}(t,r,i)}function OC(t){const r=kt(),i=Qr(),a=r_();Hh(a+1);const l=Ny(i,a);if(t.dirty&&function sP(t){return!(4&~t[dt])}(r)===!(2&~l.metadata.flags)){if(null===l.matches)t.reset([]);else{const f=Mm(r,a);t.reset(f,gf),t.notifyOnChanges()}return!0}return!1}function ph(){return function Oy(t,r){return t[$s].queries[r].queryList}(kt(),r_())}function gh(t){return Dg(function pM(){return Ir.lFrame.contextLView}(),Tr+t)}function wD(t,r=""){const i=kt(),a=Qr(),l=t+Tr,f=a.firstCreatePass?fp(a,l,1,r,null):a.data[l],m=MD(a,i,f,r,t);i[l]=m,ga()&&q_(a,i,m,f),xa(f,!1)}let MD=(t,r,i,a,l)=>(jl(!0),function W_(t,r){return t.createText(r)}(r[$n],a));function rg(t){return ig("",t,""),rg}function ig(t,r,i){const a=kt(),l=_l(a,t,r,i);return l!==Nr&&ru(a,ws(),l),ig}function Su(t,r,i,a,l){const f=kt(),m=function Zf(t,r,i,a,l,f){const _=hu(t,Zc(),i,l);return Jc(2),_?r+Xn(i)+a+Xn(l)+f:Nr}(f,t,r,i,a,l);return m!==Nr&&ru(f,ws(),m),Su}function mh(t,r,i,a,l,f,m){const _=kt(),T=function ds(t,r,i,a,l,f,m,_){const k=wp(t,Zc(),i,l,m);return Jc(3),k?r+Xn(i)+a+Xn(l)+f+Xn(m)+_:Nr}(_,t,r,i,a,l,f,m);return T!==Nr&&ru(_,ws(),T),mh}function Nd(t,r,i,a,l,f,m,_,T){const k=kt(),K=function Ii(t,r,i,a,l,f,m,_,T,k){const se=us(t,Zc(),i,l,m,T);return Jc(4),se?r+Xn(i)+a+Xn(l)+f+Xn(m)+_+Xn(T)+k:Nr}(k,t,r,i,a,l,f,m,_,T);return K!==Nr&&ru(k,ws(),K),Nd}function pS(t,r,i){xy(r)&&(r=r());const a=kt();return _o(a,pa(),r)&&Qs(Qr(),Ji(),a,t,r,a[$n],i,!1),pS}function Fc(t,r){const i=xy(t);return i&&t.set(r),i}function Pd(t,r){const i=kt(),a=Qr(),l=pi();return Rd(a,i,i[$n],l,t,r),Pd}function fv(t,r,i,a,l){if(t=We(t),Array.isArray(t))for(let f=0;f<t.length;f++)fv(t[f],r,i,a,l);else{const f=Qr(),m=kt(),_=pi();let T=qa(t)?t:We(t.provide);const k=Uu(t),K=1048575&_.providerIndexes,se=_.directiveStart,fe=_.providerIndexes>>20;if(qa(t)||!t.multi){const Ke=new Vh(k,l,Lf),Ze=xC(T,r,l?K:K+fe,se);-1===Ze?(Ur(cf(_,m),f,T),vh(f,t,r.length),r.push(T),_.directiveStart++,_.directiveEnd++,l&&(_.providerIndexes+=1048576),i.push(Ke),m.push(Ke)):(i[Ze]=Ke,m[Ze]=Ke)}else{const Ke=xC(T,r,K+fe,se),Ze=xC(T,r,K,K+fe),on=Ze>=0&&i[Ze];if(l&&!on||!l&&!(Ke>=0&&i[Ke])){Ur(cf(_,m),f,T);const Cn=function LC(t,r,i,a,l){const f=new Vh(t,i,Lf);return f.multi=[],f.index=r,f.componentProviders=0,gS(f,l,a&&!i),f}(l?RD:OD,i.length,l,a,k);!l&&on&&(i[Ze].providerFactory=Cn),vh(f,t,r.length,0),r.push(T),_.directiveStart++,_.directiveEnd++,l&&(_.providerIndexes+=1048576),i.push(Cn),m.push(Cn)}else vh(f,t,Ke>-1?Ke:Ze,gS(i[l?Ze:Ke],k,!l&&a));!l&&a&&on&&i[Ze].componentProviders++}}}function vh(t,r,i,a){const l=qa(r),f=function Ph(t){return!!t.useClass}(r);if(l||f){const T=(f?We(r.useClass):r).prototype.ngOnDestroy;if(T){const k=t.destroyHooks||(t.destroyHooks=[]);if(!l&&r.multi){const K=k.indexOf(i);-1===K?k.push(i,[a,T]):k[K+1].push(a,T)}else k.push(i,T)}}}function gS(t,r,i){return i&&t.componentProviders++,t.multi.push(r)-1}function xC(t,r,i,a){for(let l=i;l<a;l++)if(r[l]===t)return l;return-1}function OD(t,r,i,a){return mS(this.multi,[])}function RD(t,r,i,a){const l=this.multi;let f;if(this.providerFactory){const m=this.providerFactory.componentProviders,_=Ms(i,i[Me],this.providerFactory.index,a);f=_.slice(0,m),mS(l,f);for(let T=m;T<_.length;T++)f.push(_[T])}else f=[],mS(l,f);return f}function mS(t,r){for(let i=0;i<t.length;i++)r.push((0,t[i])());return r}function ND(t,r=[]){return i=>{i.providersResolver=(a,l)=>function sg(t,r,i){const a=Qr();if(a.firstCreatePass){const l=fa(t);
1fv(i,a.data,a.blueprint,l,!0),fv(r,a.data,a.blueprint,l,!1)}}(a,l?l(t):t,r)}}let ZR=(()=>{class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const a=Pa(0,i.type),l=a.length>0?vA([a],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,l)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=U({token:t,providedIn:"environment",factory:()=>new t(tr(Gs))})}}return t})();function hv(t){_a("NgStandalone"),t.getStandaloneInjector=r=>r.get(ZR).getOrCreateStandaloneInjector(t)}function PD(t,r,i){const a=Ds()+t,l=kt();return l[a]===Nr?fu(l,a,i?r.call(i):r()):jy(l,a)}function bu(t,r,i,a){return FD(kt(),Ds(),t,r,i,a)}function yc(t,r,i,a,l){return UD(kt(),Ds(),t,r,i,a,l)}function Ta(t,r,i,a,l,f){return BD(kt(),Ds(),t,r,i,a,l,f)}function kD(t,r,i,a,l,f,m){return function HD(t,r,i,a,l,f,m,_,T){const k=r+i;return us(t,k,l,f,m,_)?fu(t,k+4,T?a.call(T,l,f,m,_):a(l,f,m,_)):gv(t,k+4)}(kt(),Ds(),t,r,i,a,l,f,m)}function xD(t,r,i,a,l,f,m,_){const T=Ds()+t,k=kt(),K=us(k,T,i,a,l,f);return _o(k,T+4,m)||K?fu(k,T+5,_?r.call(_,i,a,l,f,m):r(i,a,l,f,m)):jy(k,T+5)}function rr(t,r,i,a,l,f,m,_,T){const k=Ds()+t,K=kt(),se=us(K,k,i,a,l,f);return hu(K,k+4,m,_)||se?fu(K,k+6,T?r.call(T,i,a,l,f,m,_):r(i,a,l,f,m,_)):jy(K,k+6)}function t1(t,r,i,a,l,f,m,_,T,k){const K=Ds()+t,se=kt();
1let fe=us(se,K,i,a,l,f);return wp(se,K+4,m,_,T)||fe?fu(se,K+7,k?r.call(k,i,a,l,f,m,_,T):r(i,a,l,f,m,_,T)):jy(se,K+7)}function _S(t,r,i,a,l,f,m,_,T,k,K){const se=Ds()+t,fe=kt(),Ke=us(fe,se,i,a,l,f);return us(fe,se+4,m,_,T,k)||Ke?fu(fe,se+8,K?r.call(K,i,a,l,f,m,_,T,k):r(i,a,l,f,m,_,T,k)):jy(fe,se+8)}function LD(t,r,i,a){return function VD(t,r,i,a,l,f){let m=r+i,_=!1;for(let T=0;T<l.length;T++)_o(t,m++,l[T])&&(_=!0);return _?fu(t,m,a.apply(f,l)):gv(t,m)}(kt(),Ds(),t,r,i,a)}function gv(t,r){const i=t[r];return i===Nr?void 0:i}function FD(t,r,i,a,l,f){const m=r+i;return _o(t,m,l)?fu(t,m+1,f?a.call(f,l):a(l)):gv(t,m+1)}function UD(t,r,i,a,l,f,m){const _=r+i;return hu(t,_,l,f)?fu(t,_+2,m?a.call(m,l,f):a(l,f)):gv(t,_+2)}function BD(t,r,i,a,l,f,m,_){const T=r+i;return wp(t,T,l,f,m)?fu(t,T+3,_?a.call(_,l,f,m):a(l,f,m)):gv(t,T+3)}function jD(t,r){const i=Qr();let a;const l=t+Tr;i.firstCreatePass?(a=function n1(t,r){if(r)for(let i=r.length-1;i>=0;i--){const a=r[i];if(t===a.name)return a}}(r,i.pipeRegistry),i.data[l]=a,a.onDestroy&&(i.destroyHooks??=[]).push(l,a.onDestroy)):a=i.data[l];const f=a.factory||(a.factory=sa(a.type)),_=_i(Lf);try{const T=kE(!1),k=f();return kE(T),function ED(t,r,i,a){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),r[i]=a}(i,kt(),l,k),k}finally{_i(_)}}function GD(t,r,i){const a=t+Tr,l=kt(),f=Dg(l,a);return mv(l,a)?FD(l,Ds(),r,f.transform,i,f):f.transform(i)}function $D(t,r,i,a){const l=t+Tr,f=kt(),m=Dg(f,l);return mv(f,l)?UD(f,Ds(),r,m.transform,i,a,m):m.transform(i,a)}function zD(t,r,i,a,l){const f=t+Tr,m=kt(),_=Dg(m,f);return mv(m,f)?BD(m,Ds(),r,_.transform,i,a,l,_):_.transform(i,a,l)}function mv(t,r){return t[Me].data[r].pure}function KD(t,r){return mm(t,r)}class rw{constructor(r){this.full=r;const i=r.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}}let DS=(()=>{class t{log(i){console.log(i)}warn(i){console.warn(i)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const xd=new yt(""),KC=new yt("");let OS,MS=(()=>{class t{constructor(i,a,l){this._ngZone=i,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,OS||(function M1(t){OS=t}(l),l.addToWindow(a)),this._watchAngularEvents(),i.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:()=>{To.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 i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(i)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,a,l){let f=-1;a&&a>0&&(f=setTimeout(()=>{this._callbacks=this._callbacks.filter(m=>m.timeoutId!==f),i()},a)),this._callbacks.push({doneCb:i,timeoutId:f,updateCb:l})}whenStable(i,a,l){if(l&&!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(i,a,l),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,a,l){return[]}static{this.\u0275fac=function(a){return new(a||t)(tr(To),tr(bv),tr(KC))}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac})}}return t})(),bv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(i,a){this._applications.set(i,a)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,a=!0){return OS?.findTestabilityInTree(this,i,a)??null}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function RS(t){return!!t&&"function"==typeof t.then}function fw(t){return!!t&&"function"==typeof t.subscribe}const hw=new yt("");let Av=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,a)=>{this.resolve=i,this.reject=a}),this.appInits=Zn(hw,{optional:!0})??[]}
1runInitializers(){if(this.initialized)return;const i=[];for(const l of this.appInits){const f=l();if(RS(f))i.push(f);else if(fw(f)){const m=new Promise((_,T)=>{f.subscribe({complete:_,error:T})});i.push(m)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{a()}).catch(l=>{this.reject(l)}),0===i.length&&a(),this.initialized=!0}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const NS=new yt("");function pw(t,r){return Array.isArray(r)?r.reduce(pw,t):{...t,...r}}let wu=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Zn(BE),this.afterRenderEffectManager=Zn(Vf),this.externalTestViews=new Set,this.beforeRender=new xn.B,this.afterTick=new xn.B,this.componentTypes=[],this.components=[],this.isStable=Zn(_d).hasPendingTasks.pipe((0,Ht.T)(i=>!i)),this._injector=Zn(Gs)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,a){const l=i instanceof Qb;if(!this._injector.get(Av).done)throw!l&&ss(i),new Pt(405,!1);let m;m=l?i:this._injector.get(py).resolveComponentFactory(i),this.componentTypes.push(m.componentType);const _=function YC(t){return t.isBoundToModule}(m)?void 0:this._injector.get(zf),k=m.create(Po.NULL,[],a||m.selector,_),K=k.location.nativeElement,se=k.injector.get(xd,null);return se?.registerApplication(K),k.onDestroy(()=>{this.detachView(k.hostView),dg(this.components,k),se?.unregisterApplication(K)}),this._loadComponent(k),k}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new Pt(101,!1);const a=R(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(l){this.internalErrorHandler(l)}finally{this.afterTick.next(),this._runningTick=!1,R(a)}}detectChangesInAttachedViews(i){let a=0;const l=this.afterRenderEffectManager;for(;;){if(a===cc)throw new Pt(103,!1);if(i){const f=0===a;this.beforeRender.next(f);for(let{_lView:m,notifyErrorHandler:_}of this._views)O1(m,f,_)}if(a++,l.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:f})=>XC(f))&&(l.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:f})=>XC(f))))break}}attachView(i){const a=i;this._views.push(a),a.attachToAppRef(this)}detachView(i){const a=i;dg(this._views,a),a.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const a=this._injector.get(NS,[]);[...this._bootstrapListeners,...a].forEach(l=>l(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>dg(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new Pt(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function dg(t,r){const i=t.indexOf(r);i>-1&&t.splice(i,1)}function O1(t,r,i){!r&&!XC(t)||function R1(t,r,i){let a;i?(a=0,t[dt]|=1024):a=64&t[dt]?0:1,gm(t,r,a)}(t,i,r)}function XC(t){return wg(t)}class N1{constructor(r,i){this.ngModuleFactory=r,this.componentFactories=i}}let P1=(()=>{class t{compileModuleSync(i){return new mA(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const a=this.compileModuleSync(i),f=qs(zo(i).declarations).reduce((m,_)=>{const T=wr(_);return T&&m.push(new au(T)),m},[]);return new N1(a,f)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mw=(()=>{class t{constructor(){this.zone=Zn(To),this.applicationRef=Zn(wu)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function F1(){const t=Zn(To),r=Zn(cs);return i=>t.runOutsideAngular(()=>r.handleError(i))}let B1=(()=>{class t{constructor(){this.subscription=new en.yU,this.initialized=!1,this.zone=Zn(To),this.pendingTasks=Zn(_d)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{To.assertNotInAngularZone(),queueMicrotask(()=>{null!==i&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}
1))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{To.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const QC=new yt("",{providedIn:"root",factory:()=>Zn(QC,yr.Optional|yr.SkipSelf)||function _w(){return typeof $localize<"u"&&$localize.locale||fs}()}),Uc=new yt("",{providedIn:"root",factory:()=>"USD"}),LS=new yt("");let Cw=(()=>{class t{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,a){const l=function AO(t="zone.js",r){return"noop"===t?new SO:"zone.js"===t?new To(r):t}(a?.ngZone,function vw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:a?.ngZoneEventCoalescing,runCoalescing:a?.ngZoneRunCoalescing}));return l.run(()=>{const f=function XP(t,r,i){return new Kf(t,r,i)}(i.moduleType,this.injector,function qC(t){return[{provide:To,useFactory:t},{provide:fi,multi:!0,useFactory:()=>{const r=Zn(mw,{optional:!0});return()=>r.initialize()}},{provide:fi,multi:!0,useFactory:()=>{const r=Zn(B1);return()=>{r.initialize()}}},{provide:BE,useFactory:F1}]}(()=>l)),m=f.injector.get(cs,null);return l.runOutsideAngular(()=>{const _=l.onError.subscribe({next:T=>{m.handleError(T)}});f.onDestroy(()=>{dg(this._modules,f),_.unsubscribe()})}),function kS(t,r,i){try{const a=i();return RS(a)?a.catch(l=>{throw r.runOutsideAngular(()=>t.handleError(l)),l}):a}catch(a){throw r.runOutsideAngular(()=>t.handleError(a)),a}}(m,l,()=>{const _=f.injector.get(Av);return _.runInitializers(),_.donePromise.then(()=>(function WI(t){"string"==typeof t&&(hC=t.toLowerCase().replace(/_/g,"-"))}(f.injector.get(QC,fs)||fs),this._moduleDoBootstrap(f),f))})})}bootstrapModule(i,a=[]){const l=pw({},a);return function L1(t,r,i){const a=new mA(i);return Promise.resolve(a)}(0,0,i).then(f=>this.bootstrapModuleFactory(f,l))}_moduleDoBootstrap(i){const a=i.injector.get(wu);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(l=>a.bootstrap(l));else{if(!i.instance.ngDoBootstrap)throw new Pt(-403,!1);i.instance.ngDoBootstrap(a)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Pt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const i=this._injector.get(LS,null);i&&(i.forEach(a=>a()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(a){return new(a||t)(tr(Po))}}static{this.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),wl=null;const Ew=new yt("");function wv(t,r,i=[]){const a=`Platform: ${r}`,l=new yt(a);return(f=[])=>{let m=JC();if(!m||m.injector.get(Ew,!1)){const _=[...i,...f,{provide:l,useValue:!0}];t?t(_):function H1(t){if(wl&&!wl.get(Ew,!1))throw new Pt(400,!1);(function WC(){!function fn(t){At=t}(()=>{throw new Pt(600,!1)})})(),wl=t;const r=t.get(Cw);(function _h(t){t.get(L0,null)?.forEach(i=>i())})(t)}(function Tw(t=[],r){return Po.create({name:r,providers:[{provide:Lu,useValue:"platform"},{provide:LS,useValue:new Set([()=>wl=null])},...t]})}(_,a))}return function Iw(t){const r=JC();if(!r)throw new Pt(401,!1);return r}()}}function JC(){return wl?.get(Cw)??null}function j1(){}let fg=(()=>{class t{static{this.__NG_ELEMENT_ID__=$1}}return t})();function $1(t){return function Mv(t,r,i){if(Mc(t)&&!i){const a=Za(t.index,r);return new mp(a,a)}return 47&t.type?new mp(r[ei],r):null}(pi(),kt(),!(16&~t))}class q1{constructor(){}supports(r){return du(r)}create(r){return new Ov(r)}}const kk=(t,r)=>r;class Ov{constructor(r){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=r||kk}forEachItem(r){let i;for(i=this._itHead;null!==i;i=i._next)r(i)}forEachOperation(r){let i=this._itHead,a=this._removalsHead,l=0,f=null;for(;i||a;){const m=!a||i&&i.currentIndex<jn(a,l,f)?i:a,_=jn(m,l,f),T=m.currentIndex;if(m===a)l--,a=a._nextRemoved;else if(i=i._next,null==m.previousIndex)l++;else{f||(f=[]);const k=_-l,K=T-l;if(k!=K){for(let fe=0;fe<k;fe++){const Ke=fe<f.length?f[fe]:f[fe]=0,Ze=Ke+fe;K<=Ze&&Ze<k&&(f[fe]=Ke+1)}f[m.previousIndex]=K-k}}_!==T&&r(m,_,T)}}forEachPreviousItem(r){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)r(i)}forEachAddedItem(r){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)r(i)}forEachMovedItem(r){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)r(i)}forEachRemovedItem(r){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)r(i)}forEachIdentityChange(r){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)r(i)}diff(r){if(null==r&&(r=[]),!du(r))throw new Pt(900,!1);return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let l,f,m,i=this._itHead,a=!1;if(Array.isArray(r)){this.length=r.length;for(let _=0;_<this.length;_++)f=r[_],m=this._trackByFn(_,f),null!==i&&Object.is(i.trackById,m)?(a&&(i=this._verifyReinsertion(i,f,m,_)),Object.is(i.item,f)||this._addIdentityChange(i,f)):(i=this._mismatch(i,f,m,_),a=!0),i=i._next}else l=0,function ZP(t,r){if(Array.isArray(t))for(let i=0;i<t.length;i++)r(t[i]);else{const i=t[Symbol.iterator]();let a;for(;!(a=i.next()).done;)r(a.value)}}(r,_=>{m=this._trackByFn(l,_),null!==i&&Object.is(i.trackById,m)?(a&&(i=this._verifyReinsertion(i,_,m,l)),Object.is(i.item,_)||this._addIdentityChange(i,_)):(i=this._mismatch(i,_,m,l),a=!0),i=i._next,l++}),this.length=l;return this._truncate(i),this.collection=r,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let r;for(r=this._previousItHead=this._itHead;null!==r;
vendor: 4,342 bytes, line 1
1r=r._next)r._nextPrevious=r._next;for(r=this._additionsHead;null!==r;r=r._nextAdded)r.previousIndex=r.currentIndex;for(this._additionsHead=this._additionsTail=null,r=this._movesHead;null!==r;r=r._nextMoved)r.previousIndex=r.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(r,i,a,l){let f;return null===r?f=this._itTail:(f=r._prev,this._remove(r)),null!==(r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null))?(Object.is(r.item,i)||this._addIdentityChange(r,i),this._reinsertAfter(r,f,l)):null!==(r=null===this._linkedRecords?null:this._linkedRecords.get(a,l))?(Object.is(r.item,i)||this._addIdentityChange(r,i),this._moveAfter(r,f,l)):r=this._addAfter(new Ia(i,a),f,l),r}_verifyReinsertion(r,i,a,l){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null);return null!==f?r=this._reinsertAfter(f,r._prev,l):r.currentIndex!=l&&(r.currentIndex=l,this._addToMoves(r,l)),r}_truncate(r){for(;null!==r;){const i=r._next;this._addToRemovals(this._unlink(r)),r=i}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(r,i,a){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(r);const l=r._prevRemoved,f=r._nextRemoved;return null===l?this._removalsHead=f:l._nextRemoved=f,null===f?this._removalsTail=l:f._prevRemoved=l,this._insertAfter(r,i,a),this._addToMoves(r,a),r}_moveAfter(r,i,a){return this._unlink(r),this._insertAfter(r,i,a),this._addToMoves(r,a),r}_addAfter(r,i,a){return this._insertAfter(r,i,a),this._additionsTail=null===this._additionsTail?this._additionsHead=r:this._additionsTail._nextAdded=r,r}_insertAfter(r,i,a){const l=null===i?this._itHead:i._next;return r._next=l,r._prev=i,null===l?this._itTail=r:l._prev=r,null===i?this._itHead=r:i._next=r,null===this._linkedRecords&&(this._linkedRecords=new Mw),this._linkedRecords.put(r),r.currentIndex=a,r}_remove(r){return this._addToRemovals(this._unlink(r))}_unlink(r){null!==this._linkedRecords&&this._linkedRecords.remove(r);const i=r._prev,a=r._next;return null===i?this._itHead=a:i._next=a,null===a?this._itTail=i:a._prev=i,r}_addToMoves(r,i){return r.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=r:this._movesTail._nextMoved=r),r}_addToRemovals(r){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Mw),this._unlinkedRecords.put(r),r.currentIndex=null,r._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=r,r._prevRemoved=null):(r._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=r),r}_addIdentityChange(r,i){return r.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=r:this._identityChangesTail._nextIdentityChange=r,r}}class Ia{constructor(r,i){this.item=r,this.trackById=i,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 VS{constructor(){this._head=null,this._tail=null}add(r){null===this._head?(this._head=this._tail=r,r._nextDup=null,r._prevDup=null):(this._tail._nextDup=r,r._prevDup=this._tail,r._nextDup=null,this._tail=r)}get(r,i){let a;for(a=this._head;null!==a;a=a._nextDup)if((null===i||i<=a.currentIndex)&&Object.is(a.trackById,r))return a;return null}remove(r){const i=r._prevDup,a=r._nextDup;return null===i?this._head=a:i._nextDup=a,null===a?this._tail=i:a._prevDup=i,null===this._head}}class Mw{constructor(){this.map=new Map}put(r){const i=r.trackById;let a=this.map.get(i);a||(a=new VS,this.map.set(i,a)),a.add(r)}get(r,i){const l=this.map.get(r);return l?l.get(r,i):null}remove(r){const i=r.trackById;return this.map.get(i).remove(r)&&this.map.delete(i),r}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jn(t,r,i){const a=t.previousIndex;if(null===a)return a;let l=0;
1return i&&a<i.length&&(l=i[a]),a+r+l}class Ow{constructor(){}supports(r){return r instanceof Map||CA(r)}create(){return new Q1}}class Q1{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(r){let i;for(i=this._mapHead;null!==i;i=i._next)r(i)}forEachPreviousItem(r){let i;for(i=this._previousMapHead;null!==i;i=i._nextPrevious)r(i)}forEachChangedItem(r){let i;for(i=this._changesHead;null!==i;i=i._nextChanged)r(i)}forEachAddedItem(r){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)r(i)}forEachRemovedItem(r){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)r(i)}diff(r){if(r){if(!(r instanceof Map||CA(r)))throw new Pt(900,!1)}else r=new Map;return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(r,(a,l)=>{if(i&&i.key===l)this._maybeAddToChanges(i,a),this._appendAfter=i,i=i._next;else{const f=this._getOrCreateRecordForKey(l,a);i=this._insertBeforeOrAppend(i,f)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let a=i;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(r,i){if(r){const a=r._prev;return i._next=r,i._prev=a,r._prev=i,a&&(a._next=i),r===this._mapHead&&(this._mapHead=i),this._appendAfter=r,r}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(r,i){if(this._records.has(r)){const l=this._records.get(r);this._maybeAddToChanges(l,i);const f=l._prev,m=l._next;return f&&(f._next=m),m&&(m._prev=f),l._next=null,l._prev=null,l}const a=new Z1(r);return this._records.set(r,a),a.currentValue=i,this._addToAdditions(a),a}_reset(){if(this.isDirty){let r;for(this._previousMapHead=this._mapHead,r=this._previousMapHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._changesHead;null!==r;r=r._nextChanged)r.previousValue=r.currentValue;for(r=this._additionsHead;null!=r;r=r._nextAdded)r.previousValue=r.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(r,i){Object.is(i,r.currentValue)||(r.previousValue=r.currentValue,r.currentValue=i,this._addToChanges(r))}_addToAdditions(r){null===this._additionsHead?this._additionsHead=this._additionsTail=r:(this._additionsTail._nextAdded=r,this._additionsTail=r)}_addToChanges(r){null===this._changesHead?this._changesHead=this._changesTail=r:(this._changesTail._nextChanged=r,this._changesTail=r)}_forEach(r,i){r instanceof Map?r.forEach(i):Object.keys(r).forEach(a=>i(r[a],a))}}class Z1{constructor(r){this.key=r,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 Rw(){return new bt([new q1])}let bt=(()=>{class t{static{this.\u0275prov=U({token:t,providedIn:"root",factory:Rw})}constructor(i){this.factories=i}static create(i,a){if(null!=a){const l=a.factories.slice();i=i.concat(l)}return new t(i)}static extend(i){return{provide:t,useFactory:a=>t.create(i,a||Rw()),deps:[[t,new oa,new lo]]}}find(i){const a=this.factories.find(l=>l.supports(i));if(null!=a)return a;throw new Pt(901,!1)}}return t})();function Nw(){return new jS([new Ow])}let jS=(()=>{class t{static{this.\u0275prov=U({token:t,providedIn:"root",factory:Nw})}constructor(i){this.factories=i}static create(i,a){if(a){const l=a.factories.slice();i=i.concat(l)}return new t(i)}static extend(i){return{provide:t,useFactory:a=>t.create(i,a||Nw()),deps:[[t,new oa,new lo]]}}find(i){const a=this.factories.find(l=>l.supports(i));if(a)return a;throw new Pt(901,!1)}}return t})();const Ld=wv(null,"core",[]);let Mu=(()=>{class t{constructor(i){}static{this.\u0275fac=function(a){return new(a||t)(tr(wu))}}static{this.\u0275mod=Kd({type:t})}static{this.\u0275inj=Fe({})}}return t})();function Wn(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function CN(t,r=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?r:Number(t)}function vg(t,r){_a("NgSignals");const i=function Be(t){const r=Object.create(He);r.computation=t;const i=()=>
1{if(Se(r),Ie(r),r.value===tt)throw r.error;return r.value};return i[x]=r,i}(t);return r?.equal&&(i[x].equal=r.equal),i}function JS(t){const r=R(null);try{return t()}finally{R(r)}}const Yw=new yt("",{providedIn:"root",factory:()=>Zn(Xw)});let Xw=(()=>{class t{static{this.\u0275prov=U({token:t,providedIn:"root",factory:()=>new qw})}}return t})();class qw{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Zn(_d),this.taskId=null}scheduleEffect(r){if(this.enqueue(r),null===this.taskId){const i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(r){const i=r.creationZone;this.queues.has(i)||this.queues.set(i,new Set);const a=this.queues.get(i);a.has(r)||(this.queuedEffectCount++,a.add(r))}flush(){for(;this.queuedEffectCount>0;)for(const[r,i]of this.queues)null===r?this.flushQueue(i):r.run(()=>this.flushQueue(i))}flushQueue(r){for(const i of r)r.delete(i),this.queuedEffectCount--,i.run()}}class IN{constructor(r,i,a,l,f,m){this.scheduler=r,this.effectFn=i,this.creationZone=a,this.injector=f,this.watcher=function Rt(t,r,i){const a=Object.create(On);i&&(a.consumerAllowSignalWrites=!0),a.fn=t,a.schedule=r;const l=T=>{a.cleanupFn=T};return a.ref={notify:()=>je(a),run:()=>{if(null===a.fn)return;if(function j(){return Y}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(a.dirty=!1,a.hasRun&&!En(a))return;a.hasRun=!0;const T=wt(a);try{a.cleanupFn(),a.cleanupFn=Qe,a.fn(l)}finally{Zt(a,T)}},cleanup:()=>a.cleanupFn(),destroy:()=>function m(T){(function f(T){return null===T.fn&&null===T.schedule})(T)||(Le(T),T.cleanupFn(),T.fn=null,T.schedule=null,T.cleanupFn=Qe)}(a),[x]:a},a.ref}(_=>this.runEffect(_),()=>this.schedule(),m),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(r){try{this.effectFn(r)}catch(i){this.injector.get(cs,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function lE(t,r){_a("NgSignals"),!r?.injector&&kl();const i=r?.injector??Zn(Po),a=!0!==r?.manualCleanup?i.get(Wl):null,l=new IN(i.get(Yw),t,typeof Zone>"u"?null:Zone.current,a,i,r?.allowSignalWrites??!1),f=i.get(fg,null,{optional:!0});return f&&8&f._lView[dt]?(f._lView[zv]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function e0(t){const r=wr(t);if(!r)return null;const i=new au(r);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return r.standalone},get isSignal(){return r.signals}}}},9417:(Lt,be,D)=>{D.d(be,{$R:()=>Ts,BC:()=>Gn,JD:()=>Vo,MJ:()=>di,X1:()=>ca,YN:()=>aa,YS:()=>ri,Zm:()=>z,cb:()=>Pt,gE:()=>cn,j4:()=>Es,k0:()=>En,kq:()=>L,l_:()=>ni,me:()=>Se,ok:()=>Wa,qT:()=>Ol,tU:()=>Ac,vO:()=>en,vS:()=>Or});var p=D(4438),u=D(177),v=D(6648),Y=D(7468),b=D(6354);let x=(()=>{class H{constructor(M,re){this._renderer=M,this._elementRef=re,this.onChange=we=>{},this.onTouched=()=>{}}setProperty(M,re){this._renderer.setProperty(this._elementRef.nativeElement,M,re)}registerOnTouched(M){this.onTouched=M}registerOnChange(M){this.onChange=M}setDisabledState(M){this.setProperty("disabled",M)}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(p.sFG),p.rXU(p.aKT))}}static{this.\u0275dir=p.FsC({type:H})}}return H})(),R=(()=>{class H extends x{static{this.\u0275fac=(()=>{let M;return function(we){return(M||(M=p.xGo(H)))(we||H)}})()}static{this.\u0275dir=p.FsC({type:H,features:[p.Vt3]})}}return H})();const L=new p.nKC(""),j={provide:L,useExisting:(0,p.Rfq)(()=>z),multi:!0};let z=(()=>{class H extends R{writeValue(M){this.setProperty("checked",M)}static{this.\u0275fac=(()=>{let M;return function(we){return(M||(M=p.xGo(H)))(we||H)}})()}static{this.\u0275dir=p.FsC({type:H,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(re,we){1&re&&p.bIt("change",function(ir){return we.onChange(ir.target.checked)})("blur",function(){return we.onTouched()})},features:[p.Jv_([j]),p.Vt3]})}}return H})();const Q={provide:L,useExisting:(0,p.Rfq)(()=>Se),multi:!0},Re=new p.nKC("");let Se=(()=>{class H extends x{constructor(M,re,we){super(M,re),this._compositionMode=we,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Ie(){const H=(0,u.QT)()?(0,u.QT)().getUserAgent():"";return/android (\d+)/.test(H.toLowerCase())}())}writeValue(M){this.setProperty("value",M??"")}_handleInput(M){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(M)}_compositionStart(){this._composing=!0}_compositionEnd(M){this._composing=!1,this._compositionMode&&this.onChange(M)}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(p.sFG),p.rXU(p.aKT),p.rXU(Re,8))}}static{this.\u0275dir=p.FsC({type:H,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(re,we){1&re&&p.bIt("input",function(ir){return we._handleInput(ir.target.value)})("blur",function(){return we.onTouched()})("compositionstart",function(){return we._compositionStart()})("compositionend",function(ir){return we._compositionEnd(ir.target.value)})},features:[p.Jv_([Q]),p.Vt3]})}}return H})();function et(H){return null==H||("string"==typeof H||Array.isArray(H))&&0===H.length}function lt(H){return null!=H&&"number"==typeof H.length}
1const je=new p.nKC(""),wt=new p.nKC(""),Zt=/^(?=.{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 En{static min(G){return function Le(H){return G=>{if(et(G.value)||et(H))return null;const M=parseFloat(G.value);return!isNaN(M)&&M<H?{min:{min:H,actual:G.value}}:null}}(G)}static max(G){return function ut(H){return G=>{if(et(G.value)||et(H))return null;const M=parseFloat(G.value);return!isNaN(M)&&M>H?{max:{max:H,actual:G.value}}:null}}(G)}static required(G){return Ce(G)}static requiredTrue(G){return function me(H){return!0===H.value?null:{required:!0}}(G)}static email(G){return function ht(H){return et(H.value)||Zt.test(H.value)?null:{email:!0}}(G)}static minLength(G){return function ge(H){return G=>et(G.value)||!lt(G.value)?null:G.value.length<H?{minlength:{requiredLength:H,actualLength:G.value.length}}:null}(G)}static maxLength(G){return Be(G)}static pattern(G){return function pe(H){if(!H)return ze;let G,M;return"string"==typeof H?(M="","^"!==H.charAt(0)&&(M+="^"),M+=H,"$"!==H.charAt(H.length-1)&&(M+="$"),G=new RegExp(M)):(M=H.toString(),G=H),re=>{if(et(re.value))return null;const we=re.value;return G.test(we)?null:{pattern:{requiredPattern:M,actualValue:we}}}}(G)}static nullValidator(G){return null}static compose(G){return ln(G)}static composeAsync(G){return ne(G)}}function Ce(H){return et(H.value)?{required:!0}:null}function Be(H){return G=>lt(G.value)&&G.value.length>H?{maxlength:{requiredLength:H,actualLength:G.value.length}}:null}function ze(H){return null}function tt(H){return null!=H}function He(H){return(0,p.jNT)(H)?(0,v.H)(H):H}function st(H){let G={};return H.forEach(M=>{G=null!=M?{...G,...M}:G}),0===Object.keys(G).length?null:G}function At(H,G){return G.map(M=>M(H))}function fn(H){return H.map(G=>function gn(H){return!H.validate}(G)?G:M=>G.validate(M))}function ln(H){if(!H)return null;const G=H.filter(tt);return 0==G.length?null:function(M){return st(At(M,G))}}function xe(H){return null!=H?ln(fn(H)):null}function ne(H){if(!H)return null;const G=H.filter(tt);return 0==G.length?null:function(M){const re=At(M,G).map(He);return(0,Y.p)(re).pipe((0,b.T)(st))}}function F(H){return null!=H?ne(fn(H)):null}function te(H,G){return null===H?[G]:Array.isArray(H)?[...H,G]:[H,G]}function ce(H){return H._rawValidators}function Te(H){return H._rawAsyncValidators}function ke(H){return H?Array.isArray(H)?H:[H]:[]}function Rt(H,G){return Array.isArray(H)?H.includes(G):H===G}function Qe(H,G){const M=ke(G);return ke(H).forEach(we=>{Rt(M,we)||M.push(we)}),M}function On(H,G){return ke(G).filter(M=>!Rt(H,M))}class hn{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(G){this._rawValidators=G||[],this._composedValidatorFn=xe(this._rawValidators)}_setAsyncValidators(G){this._rawAsyncValidators=G||[],this._composedAsyncValidatorFn=F(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(G){this._onDestroyCallbacks.push(G)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(G=>G()),this._onDestroyCallbacks=[]}reset(G=void 0){this.control&&this.control.reset(G)}hasError(G,M){return!!this.control&&this.control.hasError(G,M)}getError(G,M){return this.control?this.control.getError(G,M):null}}class xn extends hn{get formDirective(){return null}get path(){return null}}class en extends hn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Qt{constructor(G){this._cd=G}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}
1get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Gn=(()=>{class H extends Qt{constructor(M){super(M)}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(en,2))}}static{this.\u0275dir=p.FsC({type:H,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(re,we){2&re&&p.AVh("ng-untouched",we.isUntouched)("ng-touched",we.isTouched)("ng-pristine",we.isPristine)("ng-dirty",we.isDirty)("ng-valid",we.isValid)("ng-invalid",we.isInvalid)("ng-pending",we.isPending)},features:[p.Vt3]})}}return H})(),Pt=(()=>{class H extends Qt{constructor(M){super(M)}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(xn,10))}}static{this.\u0275dir=p.FsC({type:H,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(re,we){2&re&&p.AVh("ng-untouched",we.isUntouched)("ng-touched",we.isTouched)("ng-pristine",we.isPristine)("ng-dirty",we.isDirty)("ng-valid",we.isValid)("ng-invalid",we.isInvalid)("ng-pending",we.isPending)("ng-submitted",we.isSubmitted)},features:[p.Vt3]})}}return H})();const Ar="VALID",Bi="INVALID",Gr="PENDING",wi="DISABLED";function no(H){return(it(H)?H.validators:H)||null}function Pi(H,G){return(it(G)?G.asyncValidators:H)||null}function it(H){return null!=H&&!Array.isArray(H)&&"object"==typeof H}function he(H,G,M){const re=H.controls;if(!(G?Object.keys(re):re).length)throw new p.wOt(1e3,"");if(!re[M])throw new p.wOt(1001,"")}function $e(H,G,M){H._forEachChild((re,we)=>{if(void 0===M[we])throw new p.wOt(1002,"")})}class Ye{constructor(G,M){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(G),this._assignAsyncValidators(M)}get validator(){return this._composedValidatorFn}set validator(G){this._rawValidators=this._composedValidatorFn=G}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(G){this._rawAsyncValidators=this._composedAsyncValidatorFn=G}get parent(){return this._parent}get valid(){return this.status===Ar}get invalid(){return this.status===Bi}get pending(){return this.status==Gr}get disabled(){return this.status===wi}get enabled(){return this.status!==wi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(G){this._assignValidators(G)}setAsyncValidators(G){this._assignAsyncValidators(G)}addValidators(G){this.setValidators(Qe(G,this._rawValidators))}addAsyncValidators(G){this.setAsyncValidators(Qe(G,this._rawAsyncValidators))}removeValidators(G){this.setValidators(On(G,this._rawValidators))}removeAsyncValidators(G){this.setAsyncValidators(On(G,this._rawAsyncValidators))}hasValidator(G){return Rt(this._rawValidators,G)}hasAsyncValidator(G){return Rt(this._rawAsyncValidators,G)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(G={}){this.touched=!0,this._parent&&!G.onlySelf&&this._parent.markAsTouched(G)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(G=>G.markAllAsTouched())}markAsUntouched(G={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(M=>{M.markAsUntouched({onlySelf:!0})}),this._parent&&!G.onlySelf&&this._parent._updateTouched(G)}markAsDirty(G={}){this.pristine=!1,this._parent&&!G.onlySelf&&this._parent.markAsDirty(G)}markAsPristine(G={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(M=>{M.markAsPristine({onlySelf:!0})}),this._parent&&!G.onlySelf&&this._parent._updatePristine(G)}markAsPending(G={}){this.status=Gr,!1!==G.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!G.onlySelf&&this._parent.markAsPending(G)}disable(G={}){const M=this._parentMarkedDirty(G.onlySelf);this.status=wi,this.errors=null,this._forEachChild(re=>{re.disable({...G,onlySelf:!0})}
vendor: 4,089 bytes, line 1
1),this._updateValue(),!1!==G.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...G,skipPristineCheck:M}),this._onDisabledChange.forEach(re=>re(!0))}enable(G={}){const M=this._parentMarkedDirty(G.onlySelf);this.status=Ar,this._forEachChild(re=>{re.enable({...G,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:G.emitEvent}),this._updateAncestors({...G,skipPristineCheck:M}),this._onDisabledChange.forEach(re=>re(!1))}_updateAncestors(G){this._parent&&!G.onlySelf&&(this._parent.updateValueAndValidity(G),G.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(G){this._parent=G}getRawValue(){return this.value}updateValueAndValidity(G={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ar||this.status===Gr)&&this._runAsyncValidator(G.emitEvent)),!1!==G.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!G.onlySelf&&this._parent.updateValueAndValidity(G)}_updateTreeValidity(G={emitEvent:!0}){this._forEachChild(M=>M._updateTreeValidity(G)),this.updateValueAndValidity({onlySelf:!0,emitEvent:G.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wi:Ar}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(G){if(this.asyncValidator){this.status=Gr,this._hasOwnPendingAsyncValidator=!0;const M=He(this.asyncValidator(this));this._asyncValidationSubscription=M.subscribe(re=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(re,{emitEvent:G})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(G,M={}){this.errors=G,this._updateControlsErrors(!1!==M.emitEvent)}get(G){let M=G;return null==M||(Array.isArray(M)||(M=M.split(".")),0===M.length)?null:M.reduce((re,we)=>re&&re._find(we),this)}getError(G,M){const re=M?this.get(M):this;return re&&re.errors?re.errors[G]:null}hasError(G,M){return!!this.getError(G,M)}get root(){let G=this;for(;G._parent;)G=G._parent;return G}_updateControlsErrors(G){this.status=this._calculateStatus(),G&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(G)}_initObservables(){this.valueChanges=new p.bkB,this.statusChanges=new p.bkB}_calculateStatus(){return this._allControlsDisabled()?wi:this.errors?Bi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Gr)?Gr:this._anyControlsHaveStatus(Bi)?Bi:Ar}_anyControlsHaveStatus(G){return this._anyControls(M=>M.status===G)}_anyControlsDirty(){return this._anyControls(G=>G.dirty)}_anyControlsTouched(){return this._anyControls(G=>G.touched)}_updatePristine(G={}){this.pristine=!this._anyControlsDirty(),this._parent&&!G.onlySelf&&this._parent._updatePristine(G)}_updateTouched(G={}){this.touched=this._anyControlsTouched(),this._parent&&!G.onlySelf&&this._parent._updateTouched(G)}_registerOnCollectionChange(G){this._onCollectionChange=G}_setUpdateStrategy(G){it(G)&&null!=G.updateOn&&(this._updateOn=G.updateOn)}_parentMarkedDirty(G){return!G&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(G){return null}_assignValidators(G){this._rawValidators=Array.isArray(G)?G.slice():G,this._composedValidatorFn=function ys(H){return Array.isArray(H)?xe(H):H||null}(this._rawValidators)}_assignAsyncValidators(G){this._rawAsyncValidators=Array.isArray(G)?G.slice():G,this._composedAsyncValidatorFn=function We(H){return Array.isArray(H)?F(H):H||null}(this._rawAsyncValidators)}}class cn extends Ye{constructor(G,M,re){super(no(M),Pi(re,M)),this.controls=G,this._initObservables(),this._setUpdateStrategy(M),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(G,M){return this.controls[G]?this.controls[G]:(this.controls[G]=M,M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange),M)}addControl(G,M,re={}
vendor: 5,166 bytes, line 1
1){this.registerControl(G,M),this.updateValueAndValidity({emitEvent:re.emitEvent}),this._onCollectionChange()}removeControl(G,M={}){this.controls[G]&&this.controls[G]._registerOnCollectionChange(()=>{}),delete this.controls[G],this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}setControl(G,M,re={}){this.controls[G]&&this.controls[G]._registerOnCollectionChange(()=>{}),delete this.controls[G],M&&this.registerControl(G,M),this.updateValueAndValidity({emitEvent:re.emitEvent}),this._onCollectionChange()}contains(G){return this.controls.hasOwnProperty(G)&&this.controls[G].enabled}setValue(G,M={}){$e(this,0,G),Object.keys(G).forEach(re=>{he(this,!0,re),this.controls[re].setValue(G[re],{onlySelf:!0,emitEvent:M.emitEvent})}),this.updateValueAndValidity(M)}patchValue(G,M={}){null!=G&&(Object.keys(G).forEach(re=>{const we=this.controls[re];we&&we.patchValue(G[re],{onlySelf:!0,emitEvent:M.emitEvent})}),this.updateValueAndValidity(M))}reset(G={},M={}){this._forEachChild((re,we)=>{re.reset(G?G[we]:null,{onlySelf:!0,emitEvent:M.emitEvent})}),this._updatePristine(M),this._updateTouched(M),this.updateValueAndValidity(M)}getRawValue(){return this._reduceChildren({},(G,M,re)=>(G[re]=M.getRawValue(),G))}_syncPendingControls(){let G=this._reduceChildren(!1,(M,re)=>!!re._syncPendingControls()||M);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){Object.keys(this.controls).forEach(M=>{const re=this.controls[M];re&&G(re,M)})}_setUpControls(){this._forEachChild(G=>{G.setParent(this),G._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(G){for(const[M,re]of Object.entries(this.controls))if(this.contains(M)&&G(re))return!0;return!1}_reduceValue(){return this._reduceChildren({},(M,re,we)=>((re.enabled||this.disabled)&&(M[we]=re.value),M))}_reduceChildren(G,M){let re=G;return this._forEachChild((we,Sn)=>{re=M(re,we,Sn)}),re}_allControlsDisabled(){for(const G of Object.keys(this.controls))if(this.controls[G].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(G){return this.controls.hasOwnProperty(G)?this.controls[G]:null}}class ui extends cn{}const vi=new p.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ki}),ki="always";function Eo(H,G){return[...G.path,H]}function Kt(H,G,M=ki){Hi(H,G),G.valueAccessor.writeValue(H.value),(H.disabled||"always"===M)&&G.valueAccessor.setDisabledState?.(H.disabled),function Ge(H,G){G.valueAccessor.registerOnChange(M=>{H._pendingValue=M,H._pendingChange=!0,H._pendingDirty=!0,"change"===H.updateOn&&U(H,G)})}(H,G),function ot(H,G){const M=(re,we)=>{G.valueAccessor.writeValue(re),we&&G.viewToModelUpdate(re)};H.registerOnChange(M),G._registerOnDestroy(()=>{H._unregisterOnChange(M)})}(H,G),function yn(H,G){G.valueAccessor.registerOnTouched(()=>{H._pendingTouched=!0,"blur"===H.updateOn&&H._pendingChange&&U(H,G),"submit"!==H.updateOn&&H.markAsTouched()})}(H,G),function go(H,G){if(G.valueAccessor.setDisabledState){const M=re=>{G.valueAccessor.setDisabledState(re)};H.registerOnDisabledChange(M),G._registerOnDestroy(()=>{H._unregisterOnDisabledChange(M)})}}(H,G)}function Wt(H,G,M=!0){const re=()=>{};G.valueAccessor&&(G.valueAccessor.registerOnChange(re),G.valueAccessor.registerOnTouched(re)),Cs(H,G),H&&(G._invokeOnDestroyCallbacks(),H._registerOnCollectionChange(()=>{}))}function Rn(H,G){H.forEach(M=>{M.registerOnValidatorChange&&M.registerOnValidatorChange(G)})}function Hi(H,G){const M=ce(H);null!==G.validator?H.setValidators(te(M,G.validator)):"function"==typeof M&&H.setValidators([M]);const re=Te(H);null!==G.asyncValidator?H.setAsyncValidators(te(re,G.asyncValidator)):"function"==typeof re&&H.setAsyncValidators([re]);const we=()=>H.updateValueAndValidity();Rn(G._rawValidators,we),Rn(G._rawAsyncValidators,we)}function Cs(H,G){let M=!1;if(null!==H){if(null!==G.validator){const we=ce(H);if(Array.isArray(we)&&we.length>0){const Sn=we.filter(ir=>ir!==G.validator);Sn.length!==we.length&&(M=!0,H.setValidators(Sn))}}if(null!==G.asyncValidator){const we=Te(H);if(Array.isArray(we)&&we.length>0){const Sn=we.filter(ir=>ir!==G.asyncValidator);Sn.length!==we.length&&(M=!0,H.setAsyncValidators(Sn))}}}const re=()=>{};return Rn(G._rawValidators,re),Rn(G._rawAsyncValidators,re),M}function U(H,G){H._pendingDirty&&H.markAsDirty(),H.setValue(H._pendingValue,{emitModelToViewChange:!1}),G.viewToModelUpdate(H._pendingValue),H._pendingChange=!1}function De(H,G){if(!H.hasOwnProperty("model"))return!1;const M=H.model;return!!M.isFirstChange()||!Object.is(G,M.currentValue)}function yt(H,G){if(!G)return null;let M,re,we;return Array.isArray(G),G.forEach(Sn=>{Sn.constructor===Se?M=Sn:function Ae(H){return Object.getPrototypeOf(H.constructor)===R}(Sn)?re=Sn:we=Sn}),we||re||M||null}function xi(H,G){const M=H.indexOf(G);M>-1&&H.splice(M,1)}function Pr(H){return"object"==typeof H&&null!==H&&2===Object.keys(H).length&&"value"in H&&"disabled"in H}Promise.resolve();const di=class extends Ye{constructor(G=null,M,re){super(no(M),Pi(re,M)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(G),this._setUpdateStrategy(M),this._initOb
1servables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),it(M)&&(M.nonNullable||M.initialValueIsDefault)&&(this.defaultValue=Pr(G)?G.value:G)}setValue(G,M={}){this.value=this._pendingValue=G,this._onChange.length&&!1!==M.emitModelToViewChange&&this._onChange.forEach(re=>re(this.value,!1!==M.emitViewToModelChange)),this.updateValueAndValidity(M)}patchValue(G,M={}){this.setValue(G,M)}reset(G=this.defaultValue,M={}){this._applyFormState(G),this.markAsPristine(M),this.markAsUntouched(M),this.setValue(this.value,M),this._pendingChange=!1}_updateValue(){}_anyControls(G){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(G){this._onChange.push(G)}_unregisterOnChange(G){xi(this._onChange,G)}registerOnDisabledChange(G){this._onDisabledChange.push(G)}_unregisterOnDisabledChange(G){xi(this._onDisabledChange,G)}_forEachChild(G){}_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(G){Pr(G)?(this.value=this._pendingValue=G.value,G.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=G}};let dr=(()=>{class H extends xn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Eo(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let M;return function(we){return(M||(M=p.xGo(H)))(we||H)}})()}static{this.\u0275dir=p.FsC({type:H,features:[p.Vt3]})}}return H})();const Uo={provide:en,useExisting:(0,p.Rfq)(()=>Or)},Xn=Promise.resolve();let Or=(()=>{class H extends en{constructor(M,re,we,Sn,ir,gs){super(),this._changeDetectorRef=ir,this.callSetDisabledState=gs,this.control=new di,this._registered=!1,this.name="",this.update=new p.bkB,this._parent=M,this._setValidators(re),this._setAsyncValidators(we),this.valueAccessor=yt(0,Sn)}ngOnChanges(M){if(this._checkForErrors(),!this._registered||"name"in M){if(this._registered&&(this._checkName(),this.formDirective)){const re=M.name.previousValue;this.formDirective.removeControl({name:re,path:this._getPath(re)})}this._setUpControl()}"isDisabled"in M&&this._updateDisabled(M),De(M,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(M){this.viewModel=M,this.update.emit(M)}_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(){Kt(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(M){Xn.then(()=>{this.control.setValue(M,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(M){const re=M.isDisabled.currentValue,we=0!==re&&(0,p.L39)(re);Xn.then(()=>{we&&!this.control.disabled?this.control.disable():!we&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(M){return this._parent?Eo(M,this._parent):[M]}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(xn,9),p.rXU(je,10),p.rXU(wt,10),p.rXU(L,10),p.rXU(p.gRc,8),p.rXU(vi,8))}}static{this.\u0275dir=p.FsC({type:H,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[p.Mj6.None,"disabled","isDisabled"],model:[p.Mj6.None,"ngModel","model"],options:[p.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p.Jv_([Uo]),p.Vt3,p.OA$]})}}return H})(),Ol=(()=>{class H{static{this.\u0275fac=function(re){return new(re||H)}}static{this.\u0275dir=p.FsC({type:H,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return H})();const _i=new p.nKC(""),na={provide:en,useExisting:(0,p.Rfq)(()=>ni)};let ni=(()=>{class H extends en{set isDisabled(M){}static{this._ngModelWarningSentOnce=!1}constructor(M,re,we,Sn,ir){super(),this._ngModelWarningConfig=Sn,this.callSetDisabledState=ir,this.update=new p.bkB,this._ngModelWarningSent=!1,this._setValidators(M),this._setAsyncValidators(re),this.valueAccessor=yt(0,we)}
1ngOnChanges(M){if(this._isControlChanged(M)){const re=M.form.previousValue;re&&Wt(re,this,!1),Kt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}De(M,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Wt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(M){this.viewModel=M,this.update.emit(M)}_isControlChanged(M){return M.hasOwnProperty("form")}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(je,10),p.rXU(wt,10),p.rXU(L,10),p.rXU(_i,8),p.rXU(vi,8))}}static{this.\u0275dir=p.FsC({type:H,selectors:[["","formControl",""]],inputs:{form:[p.Mj6.None,"formControl","form"],isDisabled:[p.Mj6.None,"disabled","isDisabled"],model:[p.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[p.Jv_([na]),p.Vt3,p.OA$]})}}return H})();const Bs={provide:xn,useExisting:(0,p.Rfq)(()=>Es)};let Es=(()=>{class H extends xn{constructor(M,re,we){super(),this.callSetDisabledState=we,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.bkB,this._setValidators(M),this._setAsyncValidators(re)}ngOnChanges(M){this._checkFormPresent(),M.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Cs(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(M){const re=this.form.get(M.path);return Kt(re,M,this.callSetDisabledState),re.updateValueAndValidity({emitEvent:!1}),this.directives.push(M),re}getControl(M){return this.form.get(M.path)}
1removeControl(M){Wt(M.control||null,M,!1),function tn(H,G){const M=H.indexOf(G);M>-1&&H.splice(M,1)}(this.directives,M)}addFormGroup(M){this._setUpFormContainer(M)}removeFormGroup(M){this._cleanUpFormContainer(M)}getFormGroup(M){return this.form.get(M.path)}addFormArray(M){this._setUpFormContainer(M)}removeFormArray(M){this._cleanUpFormContainer(M)}getFormArray(M){return this.form.get(M.path)}updateModel(M,re){this.form.get(M.path).setValue(re)}onSubmit(M){return this.submitted=!0,function St(H,G){H._syncPendingControls(),G.forEach(M=>{const re=M.control;"submit"===re.updateOn&&re._pendingChange&&(M.viewToModelUpdate(re._pendingValue),re._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(M),"dialog"===M?.target?.method}onReset(){this.resetForm()}resetForm(M=void 0){this.form.reset(M),this.submitted=!1}_updateDomValue(){this.directives.forEach(M=>{const re=M.control,we=this.form.get(M.path);re!==we&&(Wt(re||null,M),(H=>H instanceof di)(we)&&(Kt(we,M,this.callSetDisabledState),M.control=we))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(M){const re=this.form.get(M.path);(function Fe(H,G){Hi(H,G)})(re,M),re.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(M){if(this.form){const re=this.form.get(M.path);re&&function xt(H,G){return Cs(H,G)}(re,M)&&re.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Hi(this.form,this),this._oldForm&&Cs(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(je,10),p.rXU(wt,10),p.rXU(vi,8))}}static{this.\u0275dir=p.FsC({type:H,selectors:[["","formGroup",""]],hostBindings:function(re,we){1&re&&p.bIt("submit",function(ir){return we.onSubmit(ir)})("reset",function(){return we.onReset()})},inputs:{form:[p.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p.Jv_([Bs]),p.Vt3,p.OA$]})}}return H})();const Qi={provide:xn,useExisting:(0,p.Rfq)(()=>Ts)};let Ts=(()=>{class H extends dr{constructor(M,re,we){super(),this.name=null,this._parent=M,this._setValidators(re),this._setAsyncValidators(we)}_checkParentType(){Ho(this._parent)}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(xn,13),p.rXU(je,10),p.rXU(wt,10))}}static{this.\u0275dir=p.FsC({type:H,selectors:[["","formGroupName",""]],inputs:{name:[p.Mj6.None,"formGroupName","name"]},features:[p.Jv_([Qi]),p.Vt3]})}}return H})();const Sc={provide:xn,useExisting:(0,p.Rfq)(()=>ao)};let ao=(()=>{class H extends xn{constructor(M,re,we){super(),this.name=null,this._parent=M,this._setValidators(re),this._setAsyncValidators(we)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Eo(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ho(this._parent)}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(xn,13),p.rXU(je,10),p.rXU(wt,10))}}static{this.\u0275dir=p.FsC({type:H,selectors:[["","formArrayName",""]],inputs:{name:[p.Mj6.None,"formArrayName","name"]},features:[p.Jv_([Sc]),p.Vt3]})}}return H})();function Ho(H){return!(H instanceof Ts||H instanceof Es||H instanceof ao)}const ji={provide:en,useExisting:(0,p.Rfq)(()=>Vo)};let Vo=(()=>{class H extends en{set isDisabled(M){}static{this._ngModelWarningSentOnce=!1}constructor(M,re,we,Sn,ir){super(),this._ngModelWarningConfig=ir,this._added=!1,this.name=null,this.update=new p.bkB,this._ngModelWarningSent=!1,this._parent=M,this._setValidators(re),this._setAsyncValidators(we),this.valueAccessor=yt(0,Sn)}ngOnChanges(M){this._added||this._setUpControl(),De(M,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(M){this.viewModel=M,this.update.emit(M)}get path(){return Eo(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(re){return new(re||H)(p.rXU(xn,13),p.rXU(je,10),p.rXU(wt,10),p.rXU(L,10),p.rXU(_i,8))}}static{this.\u0275dir=p.FsC({type:H,selectors:[["","formControlName",""]],inputs:{name:[p.Mj6.None,"formControlName","name"],isDisabled:[p.Mj6.None,"disabled","isDisabled"],model:[p.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[p.Jv_([ji]),p.Vt3,p.OA$]})}}return H})();let lo=(()=>
1{class H{constructor(){this._validator=ze}ngOnChanges(M){if(this.inputName in M){const re=this.normalizeInput(M[this.inputName].currentValue);this._enabled=this.enabled(re),this._validator=this._enabled?this.createValidator(re):ze,this._onChange&&this._onChange()}}validate(M){return this._validator(M)}registerOnValidatorChange(M){this._onChange=M}enabled(M){return null!=M}static{this.\u0275fac=function(re){return new(re||H)}}static{this.\u0275dir=p.FsC({type:H,features:[p.OA$]})}}return H})();const Mo={provide:je,useExisting:(0,p.Rfq)(()=>ri),multi:!0};let ri=(()=>{class H extends lo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=p.L39,this.createValidator=M=>Ce}enabled(M){return M}static{this.\u0275fac=(()=>{let M;return function(we){return(M||(M=p.xGo(H)))(we||H)}})()}static{this.\u0275dir=p.FsC({type:H,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(re,we){2&re&&p.BMQ("required",we._enabled?"":null)},inputs:{required:"required"},features:[p.Jv_([Mo]),p.Vt3]})}}return H})();const js={provide:je,useExisting:(0,p.Rfq)(()=>Ac),multi:!0};let Ac=(()=>{class H extends lo{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=M=>function os(H){return"number"==typeof H?H:parseInt(H,10)}(M),this.createValidator=M=>Be(M)}static{this.\u0275fac=(()=>{let M;return function(we){return(M||(M=p.xGo(H)))(we||H)}})()}static{this.\u0275dir=p.FsC({type:H,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(re,we){2&re&&p.BMQ("maxlength",we._enabled?we.maxlength:null)},inputs:{maxlength:"maxlength"},features:[p.Jv_([js]),p.Vt3]})}}return H})(),Jr=(()=>{class H{static{this.\u0275fac=function(re){return new(re||H)}}static{this.\u0275mod=p.$C({type:H})}static{this.\u0275inj=p.G2t({})}}return H})();class kr extends Ye{constructor(G,M,re){super(no(M),Pi(re,M)),this.controls=G,this._initObservables(),this._setUpdateStrategy(M),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(G){return this.controls[this._adjustIndex(G)]}push(G,M={}){this.controls.push(G),this._registerControl(G),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}insert(G,M,re={}){this.controls.splice(G,0,M),this._registerControl(M),this.updateValueAndValidity({emitEvent:re.emitEvent})}removeAt(G,M={}){let re=this._adjustIndex(G);re<0&&(re=0),this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),this.controls.splice(re,1),this.updateValueAndValidity({emitEvent:M.emitEvent})}setControl(G,M,re={}){let we=this._adjustIndex(G);we<0&&(we=0),this.controls[we]&&this.controls[we]._registerOnCollectionChange(()=>{}),this.controls.splice(we,1),M&&(this.controls.splice(we,0,M),this._registerControl(M)),this.updateValueAndValidity({emitEvent:re.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(G,M={}){$e(this,0,G),G.forEach((re,we)=>{he(this,!1,we),this.at(we).setValue(re,{onlySelf:!0,emitEvent:M.emitEvent})}),this.updateValueAndValidity(M)}patchValue(G,M={}){null!=G&&(G.forEach((re,we)=>{this.at(we)&&this.at(we).patchValue(re,{onlySelf:!0,emitEvent:M.emitEvent})}),this.updateValueAndValidity(M))}reset(G=[],M={}){this._forEachChild((re,we)=>{re.reset(G[we],{onlySelf:!0,emitEvent:M.emitEvent})}),this._updatePristine(M),this._updateTouched(M),this.updateValueAndValidity(M)}getRawValue(){return this.controls.map(G=>G.getRawValue())}clear(G={}){this.controls.length<1||(this._forEachChild(M=>M._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:G.emitEvent}))}_adjustIndex(G){return G<0?G+this.length:G}_syncPendingControls(){let G=this.controls.reduce((M,re)=>!!re._syncPendingControls()||M,!1);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){this.controls.forEach((M,re)=>{G(M,re)})}_updateValue(){this.value=this.controls.filter(G=>G.enabled||this.disabled).map(G=>G.value)}_anyControls(G){return this.controls.some(M=>M.enabled&&G(M))}
1_setUpControls(){this._forEachChild(G=>this._registerControl(G))}_allControlsDisabled(){for(const G of this.controls)if(G.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(G){G.setParent(this),G._registerOnCollectionChange(this._onCollectionChange)}_find(G){return this.at(G)??null}}function $o(H){return!!H&&(void 0!==H.asyncValidators||void 0!==H.validators||void 0!==H.updateOn)}let Wa=(()=>{class H{constructor(){this.useNonNullable=!1}get nonNullable(){const M=new H;return M.useNonNullable=!0,M}group(M,re=null){const we=this._reduceControls(M);let Sn={};return $o(re)?Sn=re:null!==re&&(Sn.validators=re.validator,Sn.asyncValidators=re.asyncValidator),new cn(we,Sn)}record(M,re=null){const we=this._reduceControls(M);return new ui(we,re)}control(M,re,we){let Sn={};return this.useNonNullable?($o(re)?Sn=re:(Sn.validators=re,Sn.asyncValidators=we),new di(M,{...Sn,nonNullable:!0})):new di(M,re,we)}array(M,re,we){const Sn=M.map(ir=>this._createControl(ir));return new kr(Sn,re,we)}_reduceControls(M){const re={};return Object.keys(M).forEach(we=>{re[we]=this._createControl(M[we])}),re}_createControl(M){return M instanceof di||M instanceof Ye?M:Array.isArray(M)?this.control(M[0],M.length>1?M[1]:null,M.length>2?M[2]:null):this.control(M)}static{this.\u0275fac=function(re){return new(re||H)}}static{this.\u0275prov=p.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}}return H})(),aa=(()=>{class H{static withConfig(M){return{ngModule:H,providers:[{provide:vi,useValue:M.callSetDisabledState??ki}]}}static{this.\u0275fac=function(re){return new(re||H)}}static{this.\u0275mod=p.$C({type:H})}static{this.\u0275inj=p.G2t({imports:[Jr]})}}return H})(),ca=(()=>{class H{static withConfig(M){return{ngModule:H,providers:[{provide:_i,useValue:M.warnOnNgModelWithFormControl??"always"},{provide:vi,useValue:M.callSetDisabledState??ki}]}}static{this.\u0275fac=function(re){return new(re||H)}}static{this.\u0275mod=p.$C({type:H})}static{this.\u0275inj=p.G2t({imports:[Jr]})}}return H})()},345:(Lt,be,D)=>{D.d(be,{B7:()=>ht,Bb:()=>Qt,hE:()=>Gn,sG:()=>On,up:()=>is});var p=D(4438),u=D(177);class v extends u.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Y extends v{static makeCurrent(){(0,u.ZD)(new Y)}onAndCancel(it,he,$e){return it.addEventListener(he,$e),()=>{it.removeEventListener(he,$e)}}dispatchEvent(it,he){it.dispatchEvent(he)}remove(it){it.parentNode&&it.parentNode.removeChild(it)}createElement(it,he){return(he=he||this.getDefaultDocument()).createElement(it)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(it){return it.nodeType===Node.ELEMENT_NODE}isShadowRoot(it){return it instanceof DocumentFragment}getGlobalEventTarget(it,he){return"window"===he?window:"document"===he?it:"body"===he?it.body:null}getBaseHref(it){const he=function x(){return b=b||document.querySelector("base"),b?b.getAttribute("href"):null}();return null==he?null:function R(We){return new URL(We,document.baseURI).pathname}(he)}resetBaseElement(){b=null}getUserAgent(){return window.navigator.userAgent}getCookie(it){return(0,u._b)(document.cookie,it)}}let b=null,j=(()=>{class We{build(){return new XMLHttpRequest}static{this.\u0275fac=function($e){return new($e||We)}}static{this.\u0275prov=p.jDH({token:We,factory:We.\u0275fac})}}return We})();const z=new p.nKC("");let Q=(()=>{class We{constructor(he,$e){this._zone=$e,this._eventNameToPlugin=new Map,he.forEach(Ye=>{Ye.manager=this}),this._plugins=he.slice().reverse()}addEventListener(he,$e,Ye){return this._findPluginFor($e).addEventListener(he,$e,Ye)}getZone(){return this._zone}_findPluginFor(he){let $e=this._eventNameToPlugin.get(he);if($e)return $e;if($e=this._plugins.find(cn=>cn.supports(he)),!$e)throw new p.wOt(5101,!1);return this._eventNameToPlugin.set(he,$e),$e}static{this.\u0275fac=function($e){return new($e||We)(p.KVO(z),p.KVO(p.SKi))}}static{this.\u0275prov=p.jDH({token:We,factory:We.\u0275fac})}}return We})();class Ie{constructor(it){this._doc=it}}const Re="ng-app-id";let Se=(()=>{class We{constructor(he,$e,Ye,cn={}){this.doc=he,this.appId=$e,this.nonce=Ye,this.platformId=cn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,u.Vy)(cn),this.resetHostNodes()}
1addStyles(he){for(const $e of he)1===this.changeUsageCount($e,1)&&this.onStyleAdded($e)}removeStyles(he){for(const $e of he)this.changeUsageCount($e,-1)<=0&&this.onStyleRemoved($e)}ngOnDestroy(){const he=this.styleNodesInDOM;he&&(he.forEach($e=>$e.remove()),he.clear());for(const $e of this.getAllStyles())this.onStyleRemoved($e);this.resetHostNodes()}addHost(he){this.hostNodes.add(he);for(const $e of this.getAllStyles())this.addStyleToHost(he,$e)}removeHost(he){this.hostNodes.delete(he)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(he){for(const $e of this.hostNodes)this.addStyleToHost($e,he)}onStyleRemoved(he){const $e=this.styleRef;$e.get(he)?.elements?.forEach(Ye=>Ye.remove()),$e.delete(he)}collectServerRenderedStyles(){const he=this.doc.head?.querySelectorAll(`style[${Re}="${this.appId}"]`);if(he?.length){const $e=new Map;return he.forEach(Ye=>{null!=Ye.textContent&&$e.set(Ye.textContent,Ye)}),$e}return null}changeUsageCount(he,$e){const Ye=this.styleRef;if(Ye.has(he)){const cn=Ye.get(he);return cn.usage+=$e,cn.usage}return Ye.set(he,{usage:$e,elements:[]}),$e}getStyleElement(he,$e){const Ye=this.styleNodesInDOM,cn=Ye?.get($e);if(cn?.parentNode===he)return Ye.delete($e),cn.removeAttribute(Re),cn;{const kn=this.doc.createElement("style");return this.nonce&&kn.setAttribute("nonce",this.nonce),kn.textContent=$e,this.platformIsServer&&kn.setAttribute(Re,this.appId),he.appendChild(kn),kn}}addStyleToHost(he,$e){const Ye=this.getStyleElement(he,$e),cn=this.styleRef,kn=cn.get($e)?.elements;kn?kn.push(Ye):cn.set($e,{elements:[Ye],usage:1})}resetHostNodes(){const he=this.hostNodes;he.clear(),he.add(this.doc.head)}static{this.\u0275fac=function($e){return new($e||We)(p.KVO(u.qQ),p.KVO(p.sZ2),p.KVO(p.BIS,8),p.KVO(p.Agw))}}static{this.\u0275prov=p.jDH({token:We,factory:We.\u0275fac})}}return We})();const et={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/"},lt=/%COMP%/g,Le=new p.nKC("",{providedIn:"root",factory:()=>!0});function me(We,it){return it.map(he=>he.replace(lt,We))}let ht=(()=>{class We{constructor(he,$e,Ye,cn,kn,Br,Yr,ui=null){this.eventManager=he,this.sharedStylesHost=$e,this.appId=Ye,this.removeStylesOnCompDestroy=cn,this.doc=kn,this.platformId=Br,this.ngZone=Yr,this.nonce=ui,this.rendererByCompId=new Map,this.platformIsServer=(0,u.Vy)(Br),this.defaultRenderer=new ge(he,kn,Yr,this.platformIsServer)}createRenderer(he,$e){if(!he||!$e)return this.defaultRenderer;this.platformIsServer&&$e.encapsulation===p.gXe.ShadowDom&&($e={...$e,encapsulation:p.gXe.Emulated});const Ye=this.getOrCreateRenderer(he,$e);return Ye instanceof st?Ye.applyToHost(he):Ye instanceof He&&Ye.applyStyles(),Ye}getOrCreateRenderer(he,$e){const Ye=this.rendererByCompId;let cn=Ye.get($e.id);if(!cn){const kn=this.doc,Br=this.ngZone,Yr=this.eventManager,ui=this.sharedStylesHost,bi=this.removeStylesOnCompDestroy,vi=this.platformIsServer;switch($e.encapsulation){case p.gXe.Emulated:cn=new st(Yr,ui,$e,this.appId,bi,kn,Br,vi);break;case p.gXe.ShadowDom:return new tt(Yr,ui,he,$e,kn,Br,this.nonce,vi);default:cn=new He(Yr,ui,$e,bi,kn,Br,vi)}Ye.set($e.id,cn)}return cn}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function($e){return new($e||We)(p.KVO(Q),p.KVO(Se),p.KVO(p.sZ2),p.KVO(Le),p.KVO(u.qQ),p.KVO(p.Agw),p.KVO(p.SKi),p.KVO(p.BIS))}}static{this.\u0275prov=p.jDH({token:We,factory:We.\u0275fac})}}return We})();class ge{constructor(it,he,$e,Ye){this.eventManager=it,this.doc=he,this.ngZone=$e,this.platformIsServer=Ye,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(it,he){return he?this.doc.createElementNS(et[he]||he,it):this.doc.createElement(it)}createComment(it){return this.doc.createComment(it)}createText(it){return this.doc.createTextNode(it)}appendChild(it,he){(ze(it)?it.content:it).appendChild(he)}insertBefore(it,he,$e){it&&(ze(it)?it.content:it).insertBefore(he,$e)}removeChild(it,he){it&&it.removeChild(he)}selectRootElement(it,he){let $e="string"==typeof it?this.doc.querySelector(it):it;if(!$e)throw new p.wOt(-5104,!1);return he||($e.textContent=""),$e}parentNode(it){return it.parentNode}nextSibling(it){return it.nextSibling}setAttribute(it,he,$e,Ye){if(Ye){he=Ye+":"+he;const cn=et[Ye];cn?it.setAttributeNS(cn,he,$e):it.setAttribute(he,$e)}else it.setAttribute(he,$e)}removeAttribute(it,he,$e){if($e){const Ye=et[$e];Ye?it.removeAttributeNS(Ye,he):it.removeAttribute(`${$e}:${he}`)}else it.removeAttribute(he)}addClass(it,he){it.classList.add(he)}removeClass(it,he){it.classList.remove(he)}setStyle(it,he,$e,Ye){Ye&(p.czy.DashCase|p.czy.Important)?it.style.setProperty(he,$e,Ye&p.czy.Important?"important":""):it.style[he]=$e}removeStyle(it,he,$e){$e&p.czy.DashCase?it.style.removeProperty(he):it.style[he]=""}setProperty(it,he,$e){null!=it&&(it[he]=$e)}setValue(it,he){it.nodeValue=he}listen(it,he,$e){if("string"==typeof it&&!(it=(0,u.QT)().getGlobalEventTarget(this.doc,it)))throw new Error(`Unsupported event target ${it} for event ${he}`);return this.eventManager.addEventListener(it,he,this.decoratePreventDefault($e))}decoratePreventDefault(it){return he=>{if("__ngUnwrap__"===he)return it;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>it(he)):it(he))&&he.preventDefault()}}}function ze(We){return"TEMPLATE"===We.tagName&&void 0!==We.content}class tt extends ge{constructor(it,he,$e,Ye,cn,kn,Br,Yr){super(it,cn,kn,Yr),this.sharedStylesHost=he,this.hostEl=$e,this.shadowRoot=$e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ui=me(Ye.id,Ye.styles);for(const bi of ui){const vi=document.createElement("style");Br&&vi.setAttribute("nonce",Br),vi.textContent=bi,this.shadowRoot.appendChild(vi)}}nodeOrShadowRoot(it){return it===this.hostEl?this.shadowRoot:it}appendChild(it,he){return super.appendChild(this.nodeOrShadowRoot(it),he)}insertBefore(it,he,$e){return super.insertBefore(this.nodeOrShadowRoot(it),he,$e)}removeChild(it,he){return super.removeChild(this.nodeOrShadowRoot(it),he)}parentNode(it){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(it)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class He extends ge{constructor(it,he,$e,Ye,cn,kn,Br,Yr){super(it,cn,kn,Br),this.sharedStylesHost=he,this.removeStylesOnCompDestroy=Ye,this.styles=Yr?me(Yr,$e.styles):$e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class st extends He{constructor(it,he,$e,Ye,cn,kn,Br,Yr){const ui=Ye+"-"+$e.id;super(it,he,$e,cn,kn,Br,Yr,ui),this.contentAttr=function ut(We){return"_ngcontent-%COMP%".replace(lt,We)}(ui),this.hostAttr=function Ce(We){return"_nghost-%COMP%".replace(lt,We)}(ui)}applyToHost(it){this.applyStyles(),this.setAttribute(it,this.hostAttr,"")}createElement(it,he){const $e=super.createElement(it,he);return super.setAttribute($e,this.contentAttr,""),$e}}let At=(()=>{class We extends Ie{constructor(he){super(he)}supports(he){return!0}addEventListener(he,$e,Ye){return he.addEventListener($e,Ye,!1),()=>this.removeEventListener(he,$e,Ye)}removeEventListener(he,$e,Ye){return he.removeEventListener($e,Ye)}static{this.\u0275fac=function($e){return new($e||We)(p.KVO(u.qQ))}}static{this.\u0275prov=p.jDH({token:We,factory:We.\u0275fac})}}return We})();const gn=["alt","control","meta","shift"],fn={"\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"},ln={alt:We=>We.altKey,control:We=>We.ctrlKey,meta:We=>We.metaKey,shift:We=>We.shiftKey};let xe=(()=>{class We extends Ie{constructor(he){super(he)}supports(he){return null!=We.parseEventName(he)}addEventListener(he,$e,Ye){const cn=We.parseEventName($e),kn=We.eventCallback(cn.fullKey,Ye,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.QT)().onAndCancel(he,cn.domEventName,kn))}static parseEventName(he){const $e=he.toLowerCase().split("."),Ye=$e.shift();if(0===$e.length||"keydown"!==Ye&&"keyup"!==Ye)return null;const cn=We._normalizeKey($e.pop());let kn="",Br=$e.indexOf("code");if(Br>
1-1&&($e.splice(Br,1),kn="code."),gn.forEach(ui=>{const bi=$e.indexOf(ui);bi>-1&&($e.splice(bi,1),kn+=ui+".")}),kn+=cn,0!=$e.length||0===cn.length)return null;const Yr={};return Yr.domEventName=Ye,Yr.fullKey=kn,Yr}static matchEventFullKeyCode(he,$e){let Ye=fn[he.key]||he.key,cn="";return $e.indexOf("code.")>-1&&(Ye=he.code,cn="code."),!(null==Ye||!Ye)&&(Ye=Ye.toLowerCase()," "===Ye?Ye="space":"."===Ye&&(Ye="dot"),gn.forEach(kn=>{kn!==Ye&&(0,ln[kn])(he)&&(cn+=kn+".")}),cn+=Ye,cn===$e)}static eventCallback(he,$e,Ye){return cn=>{We.matchEventFullKeyCode(cn,he)&&Ye.runGuarded(()=>$e(cn))}}static _normalizeKey(he){return"esc"===he?"escape":he}static{this.\u0275fac=function($e){return new($e||We)(p.KVO(u.qQ))}}static{this.\u0275prov=p.jDH({token:We,factory:We.\u0275fac})}}return We})();const On=(0,p.oH4)(p.fpN,"browser",[{provide:p.Agw,useValue:u.AJ},{provide:p.PLl,useValue:function Te(){Y.makeCurrent()},multi:!0},{provide:u.qQ,useFactory:function Rt(){return(0,p.TL$)(document),document},deps:[]}]),hn=new p.nKC(""),xn=[{provide:p.e01,useClass:class L{addToWindow(it){p.JZv.getAngularTestability=($e,Ye=!0)=>{const cn=it.findTestabilityInTree($e,Ye);if(null==cn)throw new p.wOt(5103,!1);return cn},p.JZv.getAllAngularTestabilities=()=>it.getAllTestabilities(),p.JZv.getAllAngularRootElements=()=>it.getAllRootElements(),p.JZv.frameworkStabilizers||(p.JZv.frameworkStabilizers=[]),p.JZv.frameworkStabilizers.push($e=>{const Ye=p.JZv.getAllAngularTestabilities();let cn=Ye.length;const kn=function(){cn--,0==cn&&$e()};Ye.forEach(Br=>{Br.whenStable(kn)})})}findTestabilityInTree(it,he,$e){return null==he?null:it.getTestability(he)??($e?(0,u.QT)().isShadowRoot(he)?this.findTestabilityInTree(it,he.host,!0):this.findTestabilityInTree(it,he.parentElement,!0):null)}},deps:[]},{provide:p.WHO,useClass:p.NYb,deps:[p.SKi,p.giA,p.e01]},{provide:p.NYb,useClass:p.NYb,deps:[p.SKi,p.giA,p.e01]}],en=[{provide:p.H8p,useValue:"root"},{provide:p.zcH,useFactory:function ke(){return new p.zcH},deps:[]},{provide:z,useClass:At,multi:!0,deps:[u.qQ,p.SKi,p.Agw]},{provide:z,useClass:xe,multi:!0,deps:[u.qQ]},ht,Se,Q,{provide:p._9s,useExisting:ht},{provide:u.N0,useClass:j,deps:[]},[]];let Qt=(()=>{class We{constructor(he){}static withServerTransition(he){return{ngModule:We,providers:[{provide:p.sZ2,useValue:he.appId}]}}static{this.\u0275fac=function($e){return new($e||We)(p.KVO(hn,12))}}static{this.\u0275mod=p.$C({type:We})}static{this.\u0275inj=p.G2t({providers:[...en,...xn],imports:[u.MD,p.Hbi]})}}return We})(),Gn=(()=>{class We{constructor(he){this._doc=he}getTitle(){return this._doc.title}setTitle(he){this._doc.title=he||""}static{this.\u0275fac=function($e){return new($e||We)(p.KVO(u.qQ))}}static{this.\u0275prov=p.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}}return We})(),is=(()=>{class We{static{this.\u0275fac=function($e){return new($e||We)}}static{this.\u0275prov=p.jDH({token:We,factory:function($e){let Ye=null;return Ye=$e?new($e||We):p.KVO(qn),Ye},providedIn:"root"})}}return We})(),qn=(()=>{class We extends is{constructor(he){super(),this._doc=he}sanitize(he,$e){if(null==$e)return null;switch(he){case p.WPN.NONE:return $e;case p.WPN.HTML:return(0,p.ZF7)($e,"HTML")?(0,p.rcV)($e):(0,p.h9k)(this._doc,String($e)).toString();case p.WPN.STYLE:return(0,p.ZF7)($e,"Style")?(0,p.rcV)($e):$e;case p.WPN.SCRIPT:if((0,p.ZF7)($e,"Script"))return(0,p.rcV)($e);throw new p.wOt(5200,!1);case p.WPN.URL:return(0,p.ZF7)($e,"URL")?(0,p.rcV)($e):(0,p.$MX)(String($e));case p.WPN.RESOURCE_URL:if((0,p.ZF7)($e,"ResourceURL"))return(0,p.rcV)($e);throw new p.wOt(5201,!1);default:throw new p.wOt(5202,!1)}}bypassSecurityTrustHtml(he){return(0,p.Kcf)(he)}bypassSecurityTrustStyle(he){return(0,p.cWb)(he)}bypassSecurityTrustScript(he){return(0,p.UyX)(he)}bypassSecurityTrustUrl(he){return(0,p.osQ)(he)}bypassSecurityTrustResourceUrl(he){return(0,p.e5t)(he)}static{this.\u0275fac=function($e){return new($e||We)(p.KVO(u.qQ))}}static{this.\u0275prov=p.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}}return We})()},3147:(Lt,be,D)=>{D.d(be,{nX:()=>Hs,wF:()=>Dr,Ix:()=>un,Wk:()=>Er,iI:()=>u0,n3:()=>os});var p=D(467),u=D(4438),v=D(1985),Y=D(8071),x=D(6648),R=D(7673),L=D(4412),j=D(4572),z=D(9350),Q=D(1397),Ie=D(3669);function Re(y=1/0){return(0,Q.Z)(Ie.D,y)}var et=D(9326);function lt(...y){return function Se(){return Re(1)}()((0,x.H)(y,(0,et.lI)(y)))}var je=D(8750);function wt(y){return new v.c(A=>{(0,je.Tg)(y()).subscribe(A)})}var Zt=D(1203),En=D(8810),Le=D(983),ut=D(8359),Ce=D(9974),me=D(4360);function ht(){return(0,Ce.N)((y,A)=>{let E=null;y._refCount++;const w=(0,me._)(A,void 0,void 0,void 0,()=>{if(!y||y._refCount<=0||0<--y._refCount)return void(E=null);const B=y._connection,J=E;E=null,B&&(!J||B===J)&&B.unsubscribe(),A.unsubscribe()});y.subscribe(w),w.closed||(E=y.connect())})}class ge extends v.c{constructor(A,E){super(),this.source=A,this.subjectFactory=E,this._subject=null,this._refCount=0,this._connection=null,(0,Ce.S)(A)&&(this.lift=A.lift)}
1_subscribe(A){return this.getSubject().subscribe(A)}getSubject(){const A=this._subject;return(!A||A.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:A}=this;this._subject=this._connection=null,A?.unsubscribe()}connect(){let A=this._connection;if(!A){A=this._connection=new ut.yU;const E=this.getSubject();A.add(this.source.subscribe((0,me._)(E,void 0,()=>{this._teardown(),E.complete()},w=>{this._teardown(),E.error(w)},()=>this._teardown()))),A.closed&&(this._connection=null,A=ut.yU.EMPTY)}return A}refCount(){return ht()(this)}}var Be=D(1413),pe=D(177),ze=D(6354),tt=D(5558),He=D(6697),At=D(5964);function gn(y){return(0,Ce.N)((A,E)=>{let w=!1;A.subscribe((0,me._)(E,B=>{w=!0,E.next(B)},()=>{w||E.next(y),E.complete()}))})}function fn(y=ln){return(0,Ce.N)((A,E)=>{let w=!1;A.subscribe((0,me._)(E,B=>{w=!0,E.next(B)},()=>w?E.complete():E.error(y())))})}function ln(){return new z.G}function xe(y,A){const E=arguments.length>=2;return w=>w.pipe(y?(0,At.p)((B,J)=>y(B,J,w)):Ie.D,(0,He.s)(1),E?gn(A):fn(()=>new z.G))}var ne=D(274),F=D(8141),te=D(9437);function ke(y){return y<=0?()=>Le.w:(0,Ce.N)((A,E)=>{let w=[];A.subscribe((0,me._)(E,B=>{w.push(B),y<w.length&&w.shift()},()=>{for(const B of w)E.next(B);E.complete()},void 0,()=>{w=null}))})}var On=D(980),hn=D(6977),xn=D(345);const en="primary",Qt=Symbol("RouteTitle");class Ht{constructor(A){this.params=A||{}}has(A){return Object.prototype.hasOwnProperty.call(this.params,A)}get(A){if(this.has(A)){const E=this.params[A];return Array.isArray(E)?E[0]:E}return null}getAll(A){if(this.has(A)){const E=this.params[A];return Array.isArray(E)?E:[E]}return[]}get keys(){return Object.keys(this.params)}}function ar(y){return new Ht(y)}function Gn(y,A,E){const w=E.path.split("/");if(w.length>y.length||"full"===E.pathMatch&&(A.hasChildren()||w.length<y.length))return null;const B={};for(let J=0;J<w.length;J++){const Ee=w[J],vt=y[J];if(Ee.startsWith(":"))B[Ee.substring(1)]=vt;else if(Ee!==vt.path)return null}return{consumed:y.slice(0,w.length),posParams:B}}function An(y,A){const E=y?vn(y):void 0,w=A?vn(A):void 0;if(!E||!w||E.length!=w.length)return!1;let B;for(let J=0;J<E.length;J++)if(B=E[J],!Si(y[B],A[B]))return!1;return!0}function vn(y){return[...Object.keys(y),...Object.getOwnPropertySymbols(y)]}function Si(y,A){if(Array.isArray(y)&&Array.isArray(A)){if(y.length!==A.length)return!1;const E=[...y].sort(),w=[...A].sort();return E.every((B,J)=>w[J]===B)}return y===A}function _t(y){return y.length>0?y[y.length-1]:null}function Vn(y){return function b(y){return!!y&&(y instanceof v.c||(0,Y.T)(y.lift)&&(0,Y.T)(y.subscribe))}(y)?y:(0,u.jNT)(y)?(0,x.H)(Promise.resolve(y)):(0,R.of)(y)}const Tt={exact:function Ni(y,A,E){if(!Bi(y.segments,A.segments)||!is(y.segments,A.segments,E)||y.numberOfChildren!==A.numberOfChildren)return!1;for(const w in A.children)if(!y.children[w]||!Ni(y.children[w],A.children[w],E))return!1;return!0},subset:mi},sn={exact:function Fr(y,A){return An(y,A)},subset:function Di(y,A){return Object.keys(A).length<=Object.keys(y).length&&Object.keys(A).every(E=>Si(y[E],A[E]))},ignored:()=>!0};function _n(y,A,E){return Tt[E.paths](y.root,A.root,E.matrixParams)&&sn[E.queryParams](y.queryParams,A.queryParams)&&!("exact"===E.fragment&&y.fragment!==A.fragment)}function mi(y,A,E){return ci(y,A,A.segments,E)}function ci(y,A,E,w){if(y.segments.length>E.length){const B=y.segments.slice(0,E.length);return!(!Bi(B,E)||A.hasChildren()||!is(B,E,w))}if(y.segments.length===E.length){if(!Bi(y.segments,E)||!is(y.segments,E,w))return!1;for(const B in A.children)if(!y.children[B]||!mi(y.children[B],A.children[B],w))return!1;return!0}{const B=E.slice(0,y.segments.length),J=E.slice(y.segments.length);return!!(Bi(y.segments,B)&&is(y.segments,B,w)&&y.children[en])&&ci(y.children[en],A,J,w)}}function is(y,A,E){return A.every((w,B)=>sn[E](y[B].parameters,w.parameters))}class qn{constructor(A=new Mr([],{}),E={},w=null){this.root=A,this.queryParams=E,this.fragment=w}get queryParamMap(){return this._queryParamMap??=ar(this.queryParams),this._queryParamMap}
1toString(){return ys.serialize(this)}}class Mr{constructor(A,E){this.segments=A,this.children=E,this.parent=null,Object.values(E).forEach(w=>w.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pi(this)}}class vr{constructor(A,E){this.path=A,this.parameters=E}get parameterMap(){return this._parameterMap??=ar(this.parameters),this._parameterMap}toString(){return Br(this)}}function Bi(y,A){return y.length===A.length&&y.every((E,w)=>E.path===A[w].path)}let wi=(()=>{class y{static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:()=>new no,providedIn:"root"})}}return y})();class no{parse(A){const E=new Hi(A);return new qn(E.parseRootSegment(),E.parseQueryParams(),E.parseFragment())}serialize(A){const E=`/${We(A.root,!0)}`,w=function ui(y){const A=Object.entries(y).map(([E,w])=>Array.isArray(w)?w.map(B=>`${he(E)}=${he(B)}`).join("&"):`${he(E)}=${he(w)}`).filter(E=>E);return A.length?`?${A.join("&")}`:""}(A.queryParams);return`${E}${w}${"string"==typeof A.fragment?`#${function $e(y){return encodeURI(y)}(A.fragment)}`:""}`}}const ys=new no;function Pi(y){return y.segments.map(A=>Br(A)).join("/")}function We(y,A){if(!y.hasChildren())return Pi(y);if(A){const E=y.children[en]?We(y.children[en],!1):"",w=[];return Object.entries(y.children).forEach(([B,J])=>{B!==en&&w.push(`${B}:${We(J,!1)}`)}),w.length>0?`${E}(${w.join("//")})`:E}{const E=function Gr(y,A){let E=[];return Object.entries(y.children).forEach(([w,B])=>{w===en&&(E=E.concat(A(B,w)))}),Object.entries(y.children).forEach(([w,B])=>{w!==en&&(E=E.concat(A(B,w)))}),E}(y,(w,B)=>B===en?[We(y.children[en],!1)]:[`${B}:${We(w,!1)}`]);return 1===Object.keys(y.children).length&&null!=y.children[en]?`${Pi(y)}/${E[0]}`:`${Pi(y)}/(${E.join("//")})`}}function it(y){return encodeURIComponent(y).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function he(y){return it(y).replace(/%3B/gi,";")}function Ye(y){return it(y).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cn(y){return decodeURIComponent(y)}function kn(y){return cn(y.replace(/\+/g,"%20"))}function Br(y){return`${Ye(y.path)}${function Yr(y){return Object.entries(y).map(([A,E])=>`;${Ye(A)}=${Ye(E)}`).join("")}(y.parameters)}`}const bi=/^[^\/()?;#]+/;function vi(y){const A=y.match(bi);return A?A[0]:""}const ki=/^[^\/()?;=#]+/,Kt=/^[^=?&#]+/,Rn=/^[^&#]+/;class Hi{constructor(A){this.url=A,this.remaining=A}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Mr([],{}):new Mr([],this.parseChildren())}parseQueryParams(){const A={};if(this.consumeOptional("?"))do{this.parseQueryParam(A)}while(this.consumeOptional("&"));return A}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const A=[];for(this.peekStartsWith("(")||A.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),A.push(this.parseSegment());let E={};this.peekStartsWith("/(")&&(this.capture("/"),E=this.parseParens(!0));let w={};return this.peekStartsWith("(")&&(w=this.parseParens(!1)),(A.length>0||Object.keys(E).length>0)&&(w[en]=new Mr(A,E)),w}parseSegment(){const A=vi(this.remaining);if(""===A&&this.peekStartsWith(";"))throw new u.wOt(4009,!1);return this.capture(A),new vr(cn(A),this.parseMatrixParams())}parseMatrixParams(){const A={};for(;this.consumeOptional(";");)this.parseParam(A);return A}parseParam(A){const E=function Eo(y){const A=y.match(ki);return A?A[0]:""}(this.remaining);if(!E)return;this.capture(E);let w="";if(this.consumeOptional("=")){const B=vi(this.remaining);B&&(w=B,this.capture(w))}A[cn(E)]=cn(w)}parseQueryParam(A){const E=function Wt(y){const A=y.match(Kt);return A?A[0]:""}(this.remaining);if(!E)return;this.capture(E);let w="";if(this.consumeOptional("=")){const Ee=function go(y){const A=y.match(Rn);return A?A[0]:""}(this.remaining);Ee&&(w=Ee,this.capture(w))}const B=kn(E),J=kn(w);if(A.hasOwnProperty(B)){let Ee=A[B];Array.isArray(Ee)||(Ee=[Ee],A[B]=Ee),Ee.push(J)}else A[B]=J}parseParens(A){const E={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const w=vi(this.remaining),B=this.remaining[w.length];if("/"!==B&&")"!==B&&";"!==B)throw new u.wOt(4010,!1);let J;w.indexOf(":")>-1?(J=w.slice(0,w.indexOf(":")),this.capture(J),this.capture(":")):A&&(J=en);const Ee=this.parseChildren();E[J]=1===Object.keys(Ee).length?Ee[en]:new Mr([],Ee),this.consumeOptional("//")}return E}peekStartsWith(A){return this.remaining.startsWith(A)}consumeOptional(A){return!!this.peekStartsWith(A)&&(this.remaining=this.remaining.substring(A.length),!0)}capture(A){if(!this.consumeOptional(A))throw new u.wOt(4011,!1)}}function Cs(y){return y.segments.length>0?new Mr([],{[en]:y}):y}function Ge(y){const A={};for(const[w,B]of Object.entries(y.children)){const J=Ge(B);if(w===en&&0===J.segments.length&&J.hasChildren())for(const[Ee,vt]of Object.entries(J.children))A[Ee]=vt;else(J.segments.length>0||J.hasChildren())&&(A[w]=J)}return function yn(y){if(1===y.numberOfChildren&&y.children[en]){const A=y.children[en];return new Mr(y.segments.concat(A.segments),A.children)}return y}(new Mr(y.segments,A))}function U(y){return y instanceof qn}function Fe(y){let A;const B=Cs(function E(J){const Ee={};for(const at of J.children){const wn=E(at);Ee[at.outlet]=wn}const vt=new Mr(J.url,Ee);return J===y&&(A=vt),vt}(y.root));return A??B}function xt(y,A,E,w){let B=y;for(;B.parent;)B=B.parent;if(0===A.length)return Do(B,B,B,E,w);const J=function De(y){if("string"==typeof y[0]&&1===y.length&&"/"===y[0])return new ue(!0,0,y);let A=0,E=!1;const w=y.reduce((B,J,Ee)=>{if("object"==typeof J&&null!=J){if(J.outlets){const vt={};
1return Object.entries(J.outlets).forEach(([at,wn])=>{vt[at]="string"==typeof wn?wn.split("/"):wn}),[...B,{outlets:vt}]}if(J.segmentPath)return[...B,J.segmentPath]}return"string"!=typeof J?[...B,J]:0===Ee?(J.split("/").forEach((vt,at)=>{0==at&&"."===vt||(0==at&&""===vt?E=!0:".."===vt?A++:""!=vt&&B.push(vt))}),B):[...B,J]},[]);return new ue(E,A,w)}(A);if(J.toRoot())return Do(B,B,new Mr([],{}),E,w);const Ee=function St(y,A,E){if(y.isAbsolute)return new Ae(A,!0,0);if(!E)return new Ae(A,!1,NaN);if(null===E.parent)return new Ae(E,!0,0);const w=Nn(y.commands[0])?0:1;return function yt(y,A,E){let w=y,B=A,J=E;for(;J>B;){if(J-=B,w=w.parent,!w)throw new u.wOt(4005,!1);B=w.segments.length}return new Ae(w,!1,B-J)}(E,E.segments.length-1+w,y.numberOfDoubleDots)}(J,B,y),vt=Ee.processChildren?cr(Ee.segmentGroup,Ee.index,J.commands):rn(Ee.segmentGroup,Ee.index,J.commands);return Do(B,Ee.segmentGroup,vt,E,w)}function Nn(y){return"object"==typeof y&&null!=y&&!y.outlets&&!y.segmentPath}function $r(y){return"object"==typeof y&&null!=y&&y.outlets}function Do(y,A,E,w,B){let Ee,J={};w&&Object.entries(w).forEach(([at,wn])=>{J[at]=Array.isArray(wn)?wn.map(Rr=>`${Rr}`):`${wn}`}),Ee=y===A?E:Qn(y,A,E);const vt=Cs(Ge(Ee));return new qn(vt,J,B)}function Qn(y,A,E){const w={};return Object.entries(y.children).forEach(([B,J])=>{w[B]=J===A?E:Qn(J,A,E)}),new Mr(y.segments,w)}class ue{constructor(A,E,w){if(this.isAbsolute=A,this.numberOfDoubleDots=E,this.commands=w,A&&w.length>0&&Nn(w[0]))throw new u.wOt(4003,!1);const B=w.find($r);if(B&&B!==_t(w))throw new u.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ae{constructor(A,E,w){this.segmentGroup=A,this.processChildren=E,this.index=w}}function rn(y,A,E){if(y??=new Mr([],{}),0===y.segments.length&&y.hasChildren())return cr(y,A,E);const w=function Hn(y,A,E){let w=0,B=A;const J={match:!1,pathIndex:0,commandIndex:0};for(;B<y.segments.length;){if(w>=E.length)return J;const Ee=y.segments[B],vt=E[w];if($r(vt))break;const at=`${vt}`,wn=w<E.length-1?E[w+1]:null;if(B>0&&void 0===at)break;
1if(at&&wn&&"object"==typeof wn&&void 0===wn.outlets){if(!di(at,wn,Ee))return J;w+=2}else{if(!di(at,{},Ee))return J;w++}B++}return{match:!0,pathIndex:B,commandIndex:w}}(y,A,E),B=E.slice(w.commandIndex);if(w.match&&w.pathIndex<y.segments.length){const J=new Mr(y.segments.slice(0,w.pathIndex),{});return J.children[en]=new Mr(y.segments.slice(w.pathIndex),y.children),cr(J,0,B)}return w.match&&0===B.length?new Mr(y.segments,{}):w.match&&!y.hasChildren()?zr(y,A,E):w.match?cr(y,0,B):zr(y,A,E)}function cr(y,A,E){if(0===E.length)return new Mr(y.segments,{});{const w=function tn(y){return $r(y[0])?y[0].outlets:{[en]:y}}(E),B={};if(Object.keys(w).some(J=>J!==en)&&y.children[en]&&1===y.numberOfChildren&&0===y.children[en].segments.length){const J=cr(y.children[en],A,E);return new Mr(y.segments,J.children)}return Object.entries(w).forEach(([J,Ee])=>{"string"==typeof Ee&&(Ee=[Ee]),null!==Ee&&(B[J]=rn(y.children[J],A,Ee))}),Object.entries(y.children).forEach(([J,Ee])=>{void 0===w[J]&&(B[J]=Ee)}),new Mr(y.segments,B)}}function zr(y,A,E){const w=y.segments.slice(0,A);let B=0;for(;B<E.length;){const J=E[B];if($r(J)){const at=xi(J.outlets);return new Mr(w,at)}if(0===B&&Nn(E[0])){w.push(new vr(y.segments[A].path,Pr(E[0]))),B++;continue}const Ee=$r(J)?J.outlets[en]:`${J}`,vt=B<E.length-1?E[B+1]:null;Ee&&vt&&Nn(vt)?(w.push(new vr(Ee,Pr(vt))),B+=2):(w.push(new vr(Ee,{})),B++)}return new Mr(w,{})}function xi(y){const A={};return Object.entries(y).forEach(([E,w])=>{"string"==typeof w&&(w=[w]),null!==w&&(A[E]=zr(new Mr([],{}),0,w))}),A}function Pr(y){const A={};return Object.entries(y).forEach(([E,w])=>A[E]=`${w}`),A}function di(y,A,E){return y==E.path&&An(A,E.parameters)}const Xi="imperative";var Ln=function(y){return y[y.NavigationStart=0]="NavigationStart",y[y.NavigationEnd=1]="NavigationEnd",y[y.NavigationCancel=2]="NavigationCancel",y[y.NavigationError=3]="NavigationError",y[y.RoutesRecognized=4]="RoutesRecognized",y[y.ResolveStart=5]="ResolveStart",y[y.ResolveEnd=6]="ResolveEnd",y[y.GuardsCheckStart=7]="GuardsCheckStart",y[y.GuardsCheckEnd=8]="GuardsCheckEnd",y[y.RouteConfigLoadStart=9]="RouteConfigLoadStart",y[y.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",y[y.ChildActivationStart=11]="ChildActivationStart",y[y.ChildActivationEnd=12]="ChildActivationEnd",y[y.ActivationStart=13]="ActivationStart",y[y.ActivationEnd=14]="ActivationEnd",y[y.Scroll=15]="Scroll",y[y.NavigationSkipped=16]="NavigationSkipped",y}(Ln||{});class dr{constructor(A,E){this.id=A,this.url=E}}class mr extends dr{constructor(A,E,w="imperative",B=null){super(A,E),this.type=Ln.NavigationStart,this.navigationTrigger=w,this.restoredState=B}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Dr extends dr{constructor(A,E,w){super(A,E),this.urlAfterRedirects=w,this.type=Ln.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Mi=function(y){return y[y.Redirect=0]="Redirect",y[y.SupersededByNewNavigation=1]="SupersededByNewNavigation",y[y.NoDataFromResolver=2]="NoDataFromResolver",y[y.GuardRejected=3]="GuardRejected",y}(Mi||{}),ti=function(y){return y[y.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",y[y.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",y}(ti||{});class qi extends dr{constructor(A,E,w,B){super(A,E),this.reason=w,this.code=B,this.type=Ln.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Vi extends dr{constructor(A,E,w,B){super(A,E),this.reason=w,this.code=B,this.type=Ln.NavigationSkipped}}class Uo extends dr{constructor(A,E,w,B){super(A,E),this.error=w,this.target=B,this.type=Ln.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Xn extends dr{constructor(A,E,w,B){super(A,E),this.urlAfterRedirects=w,this.state=B,this.type=Ln.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Or extends dr{constructor(A,E,w,B){super(A,E),this.urlAfterRedirects=w,this.state=B,this.type=Ln.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ol extends dr{constructor(A,E,w,B,J){super(A,E),this.urlAfterRedirects=w,this.state=B,this.shouldActivate=J,this.type=Ln.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Bo extends dr{constructor(A,E,w,B){super(A,E),this.urlAfterRedirects=w,this.state=B,this.type=Ln.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ic extends dr{constructor(A,E,w,B){super(A,E),this.urlAfterRedirects=w,this.state=B,this.type=Ln.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jc{constructor(A){this.route=A,this.type=Ln.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Gc{constructor(A){this.route=A,this.type=Ln.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ta{constructor(A){this.snapshot=A,this.type=Ln.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yr{constructor(A){this.snapshot=A,this.type=Ln.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Us{constructor(A){this.snapshot=A,this.type=Ln.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Da{constructor(A){this.snapshot=A,this.type=Ln.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(A,E,w){this.routerEvent=A,this.position=E,this.anchor=w,this.type=Ln.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class na{}class ni{constructor(A){this.url=A}}class Es{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Qi,this.attachRef=null}}let Qi=(()=>{class y{constructor(){this.contexts=new Map}onChildOutletCreated(E,w){const B=this.getOrCreateContext(E);B.outlet=w,this.contexts.set(E,B)}onChildOutletDestroyed(E){const w=this.getContext(E);w&&(w.outlet=null,w.attachRef=null)}onOutletDeactivated(){const E=this.contexts;return this.contexts=new Map,E}onOutletReAttached(E){this.contexts=E}getOrCreateContext(E){let w=this.getContext(E);return w||(w=new Es,this.contexts.set(E,w)),w}getContext(E){return this.contexts.get(E)||null}static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();class Ts{constructor(A){this._root=A}get root(){return this._root.value}
1parent(A){const E=this.pathFromRoot(A);return E.length>1?E[E.length-2]:null}children(A){const E=Sc(A,this._root);return E?E.children.map(w=>w.value):[]}firstChild(A){const E=Sc(A,this._root);return E&&E.children.length>0?E.children[0].value:null}siblings(A){const E=ao(A,this._root);return E.length<2?[]:E[E.length-2].children.map(B=>B.value).filter(B=>B!==A)}pathFromRoot(A){return ao(A,this._root).map(E=>E.value)}}function Sc(y,A){if(y===A.value)return A;for(const E of A.children){const w=Sc(y,E);if(w)return w}return null}function ao(y,A){if(y===A.value)return[A];for(const E of A.children){const w=ao(y,E);if(w.length)return w.unshift(A),w}return[]}class Ho{constructor(A,E){this.value=A,this.children=E}toString(){return`TreeNode(${this.value})`}}function ji(y){const A={};return y&&y.children.forEach(E=>A[E.value.outlet]=E),A}class Vo extends Ts{constructor(A,E){super(A),this.snapshot=E,jo(this,A)}toString(){return this.snapshot.toString()}}function mo(y){const A=function hs(y){const J=new co([],{},{},"",{},en,y,null,{});return new Zn("",new Ho(J,[]))}(y),E=new L.t([new vr("",{})]),w=new L.t({}),B=new L.t({}),J=new L.t({}),Ee=new L.t(""),vt=new Hs(E,w,J,Ee,B,en,y,A.root);return vt.snapshot=A.root,new Vo(new Ho(vt,[]),A)}class Hs{constructor(A,E,w,B,J,Ee,vt,at){this.urlSubject=A,this.paramsSubject=E,this.queryParamsSubject=w,this.fragmentSubject=B,this.dataSubject=J,this.outlet=Ee,this.component=vt,this._futureSnapshot=at,this.title=this.dataSubject?.pipe((0,ze.T)(wn=>wn[Qt]))??(0,R.of)(void 0),this.url=A,this.params=E,this.queryParams=w,this.fragment=B,this.data=J}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,ze.T)(A=>ar(A))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,ze.T)(A=>ar(A))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function tr(y,A,E="emptyOnly"){let w;const{routeConfig:B}=y;return w=null===A||"always"!==E&&""!==B?.path&&(A.component||A.routeConfig?.loadComponent)?{params:{...y.params},data:{...y.data},resolve:{...y.data,...y._resolvedData??{}}}:{params:{...A.params,...y.params},data:{...A.data,...y.data},resolve:{...y.data,...A.data,...B?.data,...y._resolvedData}},B&&Vs(B)&&(w.resolve[Qt]=B.title),w}class co{get title(){return this.data?.[Qt]}constructor(A,E,w,B,J,Ee,vt,at,wn){this.url=A,this.params=E,this.queryParams=w,this.fragment=B,this.data=J,this.outlet=Ee,this.component=vt,this.routeConfig=at,this._resolve=wn}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??=ar(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ar(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(w=>w.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Zn extends Ts{constructor(A,E){super(E),this.url=A,jo(this,E)}toString(){return Is(this._root)}}function jo(y,A){A.value._routerState=y,A.children.forEach(E=>jo(y,E))}function Is(y){const A=y.children.length>0?` { ${y.children.map(Is).join(", ")} } `:"";return`${y.value}${A}`}function ra(y){if(y.snapshot){const A=y.snapshot,E=y._futureSnapshot;y.snapshot=E,An(A.queryParams,E.queryParams)||y.queryParamsSubject.next(E.queryParams),A.fragment!==E.fragment&&y.fragmentSubject.next(E.fragment),An(A.params,E.params)||y.paramsSubject.next(E.params),function Pt(y,A){if(y.length!==A.length)return!1;for(let E=0;E<y.length;++E)if(!An(y[E],A[E]))return!1;return!0}(A.url,E.url)||y.urlSubject.next(E.url),An(A.data,E.data)||y.dataSubject.next(E.data)}else y.snapshot=y._futureSnapshot,y.dataSubject.next(y._futureSnapshot.data)}
1function ia(y,A){const E=An(y.params,A.params)&&function Ar(y,A){return Bi(y,A)&&y.every((E,w)=>An(E.parameters,A[w].parameters))}(y.url,A.url);return E&&!(!y.parent!=!A.parent)&&(!y.parent||ia(y.parent,A.parent))}function Vs(y){return"string"==typeof y.title||null===y.title}let os=(()=>{class y{constructor(){this.activated=null,this._activatedRoute=null,this.name=en,this.activateEvents=new u.bkB,this.deactivateEvents=new u.bkB,this.attachEvents=new u.bkB,this.detachEvents=new u.bkB,this.parentContexts=(0,u.WQX)(Qi),this.location=(0,u.WQX)(u.c1b),this.changeDetector=(0,u.WQX)(u.gRc),this.environmentInjector=(0,u.WQX)(u.uvJ),this.inputBinder=(0,u.WQX)(lo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(E){if(E.name){const{firstChange:w,previousValue:B}=E.name;if(w)return;this.isTrackedInParentContexts(B)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(B)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(E){return this.parentContexts.getContext(E)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const E=this.parentContexts.getContext(this.name);E?.route&&(E.attachRef?this.attach(E.attachRef,E.route):this.activateWith(E.route,E.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.wOt(4012,!1);this.location.detach();const E=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(E.instance),E}attach(E,w){this.activated=E,this._activatedRoute=w,this.location.insert(E.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(E.instance)}deactivate(){if(this.activated){const E=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(E)}}activateWith(E,w){if(this.isActivated)throw new u.wOt(4013,!1);this._activatedRoute=E;const B=this.location,Ee=E.snapshot.component,vt=this.parentContexts.getOrCreateContext(this.name).children,at=new wo(E,vt,B.injector);this.activated=B.createComponent(Ee,{index:B.length,injector:at,environmentInjector:w??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275dir=u.FsC({type:y,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[u.OA$]})}}return y})();class wo{__ngOutletInjector(A){return new wo(this.route,this.childContexts,A)}constructor(A,E,w){this.route=A,this.childContexts=E,this.parent=w}get(A,E){return A===Hs?this.route:A===Qi?this.childContexts:this.parent.get(A,E)}}const lo=new u.nKC("");let za=(()=>{class y{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(E){this.unsubscribeFromRouteData(E),this.subscribeToRouteData(E)}unsubscribeFromRouteData(E){this.outletDataSubscriptions.get(E)?.unsubscribe(),this.outletDataSubscriptions.delete(E)}subscribeToRouteData(E){const{activatedRoute:w}=E,B=(0,j.z)([w.queryParams,w.params,w.data]).pipe((0,tt.n)(([J,Ee,vt],at)=>(vt={...J,...Ee,...vt},0===at?(0,R.of)(vt):Promise.resolve(vt)))).subscribe(J=>{if(!E.isActivated||!E.activatedComponentRef||E.activatedRoute!==w||null===w.component)return void this.unsubscribeFromRouteData(E);const Ee=(0,u.HJs)(w.component);if(Ee)for(const{templateName:vt}
1of Ee.inputs)E.activatedComponentRef.setInput(vt,J[vt]);else this.unsubscribeFromRouteData(E)});this.outletDataSubscriptions.set(E,B)}static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac})}}return y})();function wa(y,A,E){if(E&&y.shouldReuseRoute(A.value,E.value.snapshot)){const w=E.value;w._futureSnapshot=A.value;const B=function sa(y,A,E){return A.children.map(w=>{for(const B of E.children)if(y.shouldReuseRoute(w.value,B.value.snapshot))return wa(y,w,B);return wa(y,w)})}(y,A,E);return new Ho(w,B)}{if(y.shouldAttach(A.value)){const J=y.retrieve(A.value);if(null!==J){const Ee=J.route;return Ee.value._futureSnapshot=A.value,Ee.children=A.children.map(vt=>wa(y,vt)),Ee}}const w=function Mo(y){return new Hs(new L.t(y.url),new L.t(y.params),new L.t(y.queryParams),new L.t(y.fragment),new L.t(y.data),y.outlet,y.component,y)}(A.value),B=A.children.map(J=>wa(y,J));return new Ho(w,B)}}const vo="ngNavigationCancelingError";function ri(y,A){const{redirectTo:E,navigationBehaviorOptions:w}=U(A)?{redirectTo:A,navigationBehaviorOptions:void 0}:A,B=bc(!1,Mi.Redirect);return B.url=E,B.navigationBehaviorOptions=w,B}function bc(y,A){const E=new Error(`NavigationCancelingError: ${y||""}`);return E[vo]=!0,E.cancellationCode=A,E}function Zo(y){return!!y&&y[vo]}let Ma=(()=>{class y{static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275cmp=u.VBU({type:y,selectors:[["ng-component"]],standalone:!0,features:[u.aNF],decls:1,vars:0,template:function(w,B){1&w&&u.nrm(0,"router-outlet")},dependencies:[os],encapsulation:2})}}return y})();function kr(y){const A=y.children&&y.children.map(kr),E=A?{...y,children:A}:{...y};return!E.component&&!E.loadComponent&&(A||E.loadChildren)&&E.outlet&&E.outlet!==en&&(E.component=Ma),E}function fi(y){return y.outlet||en}function $o(y){if(!y)return null;
1if(y.routeConfig?._injector)return y.routeConfig._injector;for(let A=y.parent;A;A=A.parent){const E=A.routeConfig;if(E?._loadedInjector)return E._loadedInjector;if(E?._injector)return E._injector}return null}class Jo{constructor(A,E,w,B,J){this.routeReuseStrategy=A,this.futureState=E,this.currState=w,this.forwardEvent=B,this.inputBindingEnabled=J}activate(A){const E=this.futureState._root,w=this.currState?this.currState._root:null;this.deactivateChildRoutes(E,w,A),ra(this.futureState.root),this.activateChildRoutes(E,w,A)}deactivateChildRoutes(A,E,w){const B=ji(E);A.children.forEach(J=>{const Ee=J.value.outlet;this.deactivateRoutes(J,B[Ee],w),delete B[Ee]}),Object.values(B).forEach(J=>{this.deactivateRouteAndItsChildren(J,w)})}deactivateRoutes(A,E,w){const B=A.value,J=E?E.value:null;if(B===J)if(B.component){const Ee=w.getContext(B.outlet);Ee&&this.deactivateChildRoutes(A,E,Ee.children)}else this.deactivateChildRoutes(A,E,w);else J&&this.deactivateRouteAndItsChildren(E,w)}deactivateRouteAndItsChildren(A,E){A.value.component&&this.routeReuseStrategy.shouldDetach(A.value.snapshot)?this.detachAndStoreRouteSubtree(A,E):this.deactivateRouteAndOutlet(A,E)}detachAndStoreRouteSubtree(A,E){const w=E.getContext(A.value.outlet),B=w&&A.value.component?w.children:E,J=ji(A);for(const Ee of Object.values(J))this.deactivateRouteAndItsChildren(Ee,B);if(w&&w.outlet){const Ee=w.outlet.detach(),vt=w.children.onOutletDeactivated();this.routeReuseStrategy.store(A.value.snapshot,{componentRef:Ee,route:A,contexts:vt})}}deactivateRouteAndOutlet(A,E){const w=E.getContext(A.value.outlet),B=w&&A.value.component?w.children:E,J=ji(A);for(const Ee of Object.values(J))this.deactivateRouteAndItsChildren(Ee,B);w&&(w.outlet&&(w.outlet.deactivate(),w.children.onOutletDeactivated()),w.attachRef=null,w.route=null)}activateChildRoutes(A,E,w){const B=ji(E);A.children.forEach(J=>{this.activateRoutes(J,B[J.value.outlet],w),this.forwardEvent(new Da(J.value.snapshot))}),A.children.length&&this.forwardEvent(new yr(A.value.snapshot))}activateRoutes(A,E,w){const B=A.value,J=E?E.value:null;if(ra(B),B===J)if(B.component){const Ee=w.getOrCreateContext(B.outlet);this.activateChildRoutes(A,E,Ee.children)}else this.activateChildRoutes(A,E,w);else if(B.component){const Ee=w.getOrCreateContext(B.outlet);if(this.routeReuseStrategy.shouldAttach(B.snapshot)){const vt=this.routeReuseStrategy.retrieve(B.snapshot);this.routeReuseStrategy.store(B.snapshot,null),Ee.children.onOutletReAttached(vt.contexts),Ee.attachRef=vt.componentRef,Ee.route=vt.route.value,Ee.outlet&&Ee.outlet.attach(vt.componentRef,vt.route.value),ra(vt.route.value),this.activateChildRoutes(A,null,Ee.children)}else{const vt=$o(B.snapshot);Ee.attachRef=null,Ee.route=B,Ee.injector=vt,Ee.outlet&&Ee.outlet.activateWith(B,Ee.injector),this.activateChildRoutes(A,null,Ee.children)}}else this.activateChildRoutes(A,null,w)}}class ps{constructor(A){this.path=A,this.route=this.path[this.path.length-1]}}class aa{constructor(A,E){this.component=A,this.route=E}}function ca(y,A,E){const w=y._root;return M(w,A?A._root:null,E,[w.value])}function G(y,A){const E=Symbol(),w=A.get(y,E);return w===E?"function"!=typeof y||(0,u.LfX)(y)?A.get(y):y:w}function M(y,A,E,w,B={canDeactivateChecks:[],canActivateChecks:[]}){const J=ji(A);return y.children.forEach(Ee=>{(function re(y,A,E,w,B={canDeactivateChecks:[],canActivateChecks:[]}){const J=y.value,Ee=A?A.value:null,vt=E?E.getContext(y.value.outlet):null;if(Ee&&J.routeConfig===Ee.routeConfig){const at=function we(y,A,E){if("function"==typeof E)return E(y,A);switch(E){case"pathParamsChange":return!Bi(y.url,A.url);case"pathParamsOrQueryParamsChange":return!Bi(y.url,A.url)||!An(y.queryParams,A.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ia(y,A)||!An(y.queryParams,A.queryParams);default:return!ia(y,A)}}(Ee,J,J.routeConfig.runGuardsAndResolvers);at?B.canActivateChecks.push(new ps(w)):(J.data=Ee.data,J._resolvedData=Ee._resolvedData),M(y,A,J.component?vt?vt.children:null:E,w,B),at&&vt&&vt.outlet&&vt.outlet.isActivated&&B.canDeactivateChecks.push(new aa(vt.outlet.component,Ee))}else Ee&&Sn(A,vt,B),B.canActivateChecks.push(new ps(w)),M(y,null,J.component?vt?vt.children:null:E,w,B)})(Ee,J[Ee.value.outlet],E,w.concat([Ee.value]),B),delete J[Ee.value.outlet]}),Object.entries(J).forEach(([Ee,vt])=>Sn(vt,E.getContext(Ee),B)),B}function Sn(y,A,E){const w=ji(y),B=y.value;
1Object.entries(w).forEach(([J,Ee])=>{Sn(Ee,B.component?A?A.children.getContext(J):null:A,E)}),E.canDeactivateChecks.push(new aa(B.component&&A&&A.outlet&&A.outlet.isActivated?A.outlet.component:null,B))}function ir(y){return"function"==typeof y}function $d(y){return y instanceof z.G||"EmptyError"===y?.name}const ii=Symbol("INITIAL_VALUE");function Li(){return(0,tt.n)(y=>(0,j.z)(y.map(A=>A.pipe((0,He.s)(1),function st(...y){const A=(0,et.lI)(y);return(0,Ce.N)((E,w)=>{(A?lt(y,E,A):lt(y,E)).subscribe(w)})}(ii)))).pipe((0,ze.T)(A=>{for(const E of A)if(!0!==E){if(E===ii)return ii;if(!1===E||E instanceof qn)return E}return!0}),(0,At.p)(A=>A!==ii),(0,He.s)(1)))}function Yd(y){return(0,Zt.F)((0,F.M)(A=>{if(U(A))throw ri(0,A)}),(0,ze.T)(A=>!0===A))}class wr{constructor(A){this.segmentGroup=A||null}}class Gi extends Error{constructor(A){super(),this.urlTree=A}}function Ai(y){return(0,En.$)(new wr(y))}class Rl{constructor(A,E){this.urlSerializer=A,this.urlTree=E}lineralizeSegments(A,E){let w=[],B=E.root;for(;;){if(w=w.concat(B.segments),0===B.numberOfChildren)return(0,R.of)(w);if(B.numberOfChildren>1||!B.children[en])return(0,En.$)(new u.wOt(4e3,!1));B=B.children[en]}}applyRedirectCommands(A,E,w){const B=this.applyRedirectCreateUrlTree(E,this.urlSerializer.parse(E),A,w);if(E.startsWith("/"))throw new Gi(B);return B}applyRedirectCreateUrlTree(A,E,w,B){const J=this.createSegmentGroup(A,E.root,w,B);return new qn(J,this.createQueryParams(E.queryParams,this.urlTree.queryParams),E.fragment)}createQueryParams(A,E){const w={};return Object.entries(A).forEach(([B,J])=>{if("string"==typeof J&&J.startsWith(":")){const vt=J.substring(1);w[B]=E[vt]}else w[B]=J}),w}createSegmentGroup(A,E,w,B){const J=this.createSegments(A,E.segments,w,B);let Ee={};return Object.entries(E.children).forEach(([vt,at])=>{Ee[vt]=this.createSegmentGroup(A,at,w,B)}),new Mr(J,Ee)}createSegments(A,E,w,B){return E.map(J=>J.path.startsWith(":")?this.findPosParam(A,J,B):this.findOrReturn(J,w))}findPosParam(A,E,w){const B=w[E.path.substring(1)];if(!B)throw new u.wOt(4001,!1);return B}findOrReturn(A,E){let w=0;for(const B of E){if(B.path===A.path)return E.splice(w),B;w++}return A}}const Na={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Rh(y,A,E,w,B){const J=Xd(y,A,E);return J.matched?(w=function Ss(y,A){return y.providers&&!y._injector&&(y._injector=(0,u.Ol2)(y.providers,A,`Route: ${y.path}`)),y._injector??A}(A,w),function Pu(y,A,E,w){const B=A.canMatch;if(!B||0===B.length)return(0,R.of)(!0);const J=B.map(Ee=>{const vt=G(Ee,y);return Vn(function Ra(y){return y&&ir(y.canMatch)}(vt)?vt.canMatch(A,E):(0,u.N4e)(y,()=>vt(A,E)))});return(0,R.of)(J).pipe(Li(),Yd())}(w,A,E).pipe((0,ze.T)(Ee=>!0===Ee?J:{...Na}))):(0,R.of)(J)}function Xd(y,A,E){if("**"===A.path)return function ua(y){return{matched:!0,parameters:y.length>0?_t(y).parameters:{},consumedSegments:y,remainingSegments:[],positionalParamSegments:{}}}(E);if(""===A.path)return"full"===A.pathMatch&&(y.hasChildren()||E.length>0)?{...Na}:{matched:!0,consumedSegments:[],remainingSegments:E,parameters:{},positionalParamSegments:{}};const B=(A.matcher||Gn)(E,y,A);if(!B)return{...Na};const J={};Object.entries(B.posParams??{}).forEach(([vt,at])=>{J[vt]=at.path});const Ee=B.consumed.length>0?{...J,...B.consumed[B.consumed.length-1].parameters}:J;return{matched:!0,consumedSegments:B.consumed,remainingSegments:E.slice(B.consumed.length),parameters:Ee,positionalParamSegments:B.posParams??{}}}function ku(y,A,E,w){return E.length>0&&function Kc(y,A,E){return E.some(w=>da(y,A,w)&&fi(w)!==en)}(y,E,w)?{segmentGroup:new Mr(A,Nl(w,new Mr(E,y.children))),slicedSegments:[]}:0===E.length&&function Cg(y,A,E){return E.some(w=>da(y,A,w))}(y,E,w)?{segmentGroup:new Mr(y.segments,Pa(y,E,w,y.children)),slicedSegments:E}:{segmentGroup:new Mr(y.segments,y.children),slicedSegments:E}}function Pa(y,A,E,w){const B={};for(const J of E)if(da(y,A,J)&&!w[fi(J)]){const Ee=new Mr([],{});B[fi(J)]=Ee}return{...w,...B}}function Nl(y,A){const E={};E[en]=A;for(const w of y)if(""===w.path&&fi(w)!==en){const B=new Mr([],{});E[fi(w)]=B}return E}function da(y,A,E){return(!(y.hasChildren()||A.length>0)||"full"!==E.pathMatch)&&""===E.path}class qd{}class Ph{constructor(A,E,w,B,J,Ee,vt){this.injector=A,this.configLoader=E,this.rootComponentType=w,this.config=B,this.urlTree=J,this.paramsInheritanceStrategy=Ee,this.urlSerializer
1=vt,this.applyRedirects=new Rl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(A){return new u.wOt(4002,`'${A.segmentGroup}'`)}recognize(){const A=ku(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(A).pipe((0,ze.T)(E=>{const w=new co([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},en,this.rootComponentType,null,{}),B=new Ho(w,E),J=new Zn("",B),Ee=function ot(y,A,E=null,w=null){return xt(Fe(y),A,E,w)}(w,[],this.urlTree.queryParams,this.urlTree.fragment);return Ee.queryParams=this.urlTree.queryParams,J.url=this.urlSerializer.serialize(Ee),this.inheritParamsAndData(J._root,null),{state:J,tree:Ee}}))}match(A){return this.processSegmentGroup(this.injector,this.config,A,en).pipe((0,te.W)(w=>{if(w instanceof Gi)return this.urlTree=w.urlTree,this.match(w.urlTree.root);throw w instanceof wr?this.noMatchError(w):w}))}inheritParamsAndData(A,E){const w=A.value,B=tr(w,E,this.paramsInheritanceStrategy);w.params=Object.freeze(B.params),w.data=Object.freeze(B.data),A.children.forEach(J=>this.inheritParamsAndData(J,w))}processSegmentGroup(A,E,w,B){return 0===w.segments.length&&w.hasChildren()?this.processChildren(A,E,w):this.processSegment(A,E,w,w.segments,B,!0).pipe((0,ze.T)(J=>J instanceof Ho?[J]:[]))}processChildren(A,E,w){const B=[];for(const J of Object.keys(w.children))"primary"===J?B.unshift(J):B.push(J);return(0,x.H)(B).pipe((0,ne.H)(J=>{const Ee=w.children[J],vt=function $c(y,A){const E=y.filter(w=>fi(w)===A);return E.push(...y.filter(w=>fi(w)!==A)),E}(E,J);return this.processSegmentGroup(A,vt,Ee,J)}),function Te(y,A){return(0,Ce.N)(function ce(y,A,E,w,B){return(J,Ee)=>{let vt=E,at=A,wn=0;J.subscribe((0,me._)(Ee,Rr=>{const Lr=wn++;at=vt?y(at,Rr,Lr):(vt=!0,Rr),w&&Ee.next(at)},B&&(()=>{vt&&Ee.next(at),Ee.complete()})))}}(y,A,arguments.length>=2,!0))}((J,Ee)=>(J.push(...Ee),J)),gn(null),function Rt(y,A){const E=arguments.length>=2;return w=>w.pipe(y?(0,At.p)((B,J)=>y(B,J,w)):Ie.D,ke(1),E?gn(A):fn(()=>new z.G))}(),(0,Q.Z)(J=>{if(null===J)return Ai(w);const Ee=kh(J);return function Lu(y){y.sort((A,E)=>A.value.outlet===en?-1:E.value.outlet===en?1:A.value.outlet.localeCompare(E.value.outlet))}(Ee),(0,R.of)(Ee)}))}processSegment(A,E,w,B,J,Ee){return(0,x.H)(E).pipe((0,ne.H)(vt=>this.processSegmentAgainstRoute(vt._injector??A,E,vt,w,B,J,Ee).pipe((0,te.W)(at=>{if(at instanceof wr)return(0,R.of)(null);throw at}))),xe(vt=>!!vt),(0,te.W)(vt=>{if($d(vt))return function Wc(y,A,E){return 0===A.length&&!y.children[E]}(w,B,J)?(0,R.of)(new qd):Ai(w);throw vt}))}processSegmentAgainstRoute(A,E,w,B,J,Ee,vt){return function xu(y,A,E,w){return!!(fi(y)===w||w!==en&&da(A,E,y))&&Xd(A,y,E).matched}(w,B,J,Ee)?void 0===w.redirectTo?this.matchSegmentAgainstRoute(A,B,w,J,Ee):this.allowRedirects&&vt?this.expandSegmentAgainstRouteUsingRedirect(A,B,E,w,J,Ee):Ai(B):Ai(B)}expandSegmentAgainstRouteUsingRedirect(A,E,w,B,J,Ee){const{matched:vt,consumedSegments:at,positionalParamSegments:wn,remainingSegments:Rr}=Xd(E,B,J);if(!vt)return Ai(E);B.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Lr=this.applyRedirects.applyRedirectCommands(at,B.redirectTo,wn);return this.applyRedirects.lineralizeSegments(B,Lr).pipe((0,Q.Z)(ro=>this.processSegment(A,w,E,ro.concat(Rr),Ee,!1)))}matchSegmentAgainstRoute(A,E,w,B,J){const Ee=Rh(E,w,B,A);return"**"===w.path&&(E.children={}),Ee.pipe((0,tt.n)(vt=>vt.matched?this.getChildConfig(A=w._injector??A,w,B).pipe((0,tt.n)(({routes:at})=>{const wn=w._loadedInjector??A,{consumedSegments:Rr,remainingSegments:Lr,parameters:ro}=vt,Fl=new co(Rr,ro,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Wr(y){return y.data||{}}(w),fi(w),w.component??w._loadedComponent??null,w,function Gs(y){return y.resolve||{}}(w)),{segmentGroup:ef,slicedSegments:Ul}=ku(E,Rr,Lr,at);if(0===Ul.length&&ef.hasChildren())return this.processChildren(wn,at,ef).pipe((0,ze.T)(Bl=>null===Bl?null:new Ho(Fl,Bl)));if(0===at.length&&0===Ul.length)return(0,R.of)(new Ho(Fl,[]));const Ag=fi(w)===J;return this.processSegment(wn,at,ef,Ul,Ag?en:J,!0).pipe((0,ze.T)(Bl=>new Ho(Fl,Bl instanceof Ho?[Bl]:[])))})):Ai(E)))}getChildConfig(A,E,w){return E.children?(0,R.of)({routes:E.children,injector:A}):E.loadChildren?void 0!==E._loadedRoutes?(0,R.of)({routes:E._loadedRoutes,injector:E._loadedInjector}):function Wd(y,A,E,w){const B=A.canLoad;if(void 0===B||0===B.length)return(0,R.of)(!0);const J=B.map(Ee=>{const vt=G(Ee,y);return Vn(function ms(y){return y&&ir(y.canLoad)}(vt)?vt.canLoad(A,E):(0,u.N4e)(y,()=>vt(A,E)))});return(0,R.of)(J).pipe(Li(),Yd())}(A,E,w).pipe((0,Q.Z)(B=>B?this.configLoader.loadChildren(A,E).pipe((0,F.M)(J=>{E._loadedRoutes=J.routes,E._loadedInjector=J.injector})):function Oh(y){return(0,En.$)(bc(!1,Mi.GuardRejected))}
1())):(0,R.of)({routes:[],injector:A})}}function Fu(y){const A=y.value.routeConfig;return A&&""===A.path}function kh(y){const A=[],E=new Set;for(const w of y){if(!Fu(w)){A.push(w);continue}const B=A.find(J=>w.value.routeConfig===J.value.routeConfig);void 0!==B?(B.children.push(...w.children),E.add(B)):A.push(w)}for(const w of E){const B=kh(w.children);A.push(new Ho(w.value,B))}return A.filter(w=>!E.has(w))}function Tg(y){const A=y.children.map(E=>Tg(E)).flat();return[y,...A]}function Zd(y){return(0,tt.n)(A=>{const E=y(A);return E?(0,x.H)(E).pipe((0,ze.T)(()=>A)):(0,R.of)(A)})}let Jd=(()=>{class y{buildTitle(E){let w,B=E.root;for(;void 0!==B;)w=this.getResolvedTitleForRoute(B)??w,B=B.children.find(J=>J.outlet===en);return w}getResolvedTitleForRoute(E){return E.data[Qt]}static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:()=>(0,u.WQX)(Ig),providedIn:"root"})}}return y})(),Ig=(()=>{class y extends Jd{constructor(E){super(),this.title=E}updateTitle(E){const w=this.buildTitle(E);void 0!==w&&this.title.setTitle(w)}static{this.\u0275fac=function(w){return new(w||y)(u.KVO(xn.hE))}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();const Qa=new u.nKC("",{providedIn:"root",factory:()=>({})}),Ci=new u.nKC("");let Xc=(()=>{class y{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,u.WQX)(u.Ql9)}loadComponent(E){if(this.componentLoaders.get(E))return this.componentLoaders.get(E);if(E._loadedComponent)return(0,R.of)(E._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(E);const w=Vn(E.loadComponent()).pipe((0,ze.T)(W),(0,F.M)(J=>{this.onLoadEndListener&&this.onLoadEndListener(E),E._loadedComponent=J}),(0,On.j)(()=>{this.componentLoaders.delete(E)})),B=new ge(w,()=>new Be.B).pipe(ht());return this.componentLoaders.set(E,B),B}loadChildren(E,w){if(this.childrenLoaders.get(w))return this.childrenLoaders.get(w);if(w._loadedRoutes)return(0,R.of)({routes:w._loadedRoutes,injector:w._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(w);const J=function kl(y,A,E,w){return Vn(y.loadChildren()).pipe((0,ze.T)(W),(0,Q.Z)(B=>B instanceof u.Co$||Array.isArray(B)?(0,R.of)(B):(0,x.H)(A.compileModuleAsync(B))),(0,ze.T)(B=>{w&&w(y);let J,Ee,vt=!1;return Array.isArray(B)?(Ee=B,!0):(J=B.create(E).injector,Ee=J.get(Ci,[],{optional:!0,self:!0}).flat()),{routes:Ee.map(kr),injector:J}}))}(w,this.compiler,E,this.onLoadEndListener).pipe((0,On.j)(()=>{this.childrenLoaders.delete(w)})),Ee=new ge(J,()=>new Be.B).pipe(ht());return this.childrenLoaders.set(w,Ee),Ee}static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();function W(y){return function I(y){return y&&"object"==typeof y&&"default"in y}(y)?y.default:y}let N=(()=>{class y{static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:()=>(0,u.WQX)(V),providedIn:"root"})}}return y})(),V=(()=>{class y{shouldProcessUrl(E){return!0}extract(E){return E}merge(E,w){return E}static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();const ye=new u.nKC(""),mt=new u.nKC("");function Ut(y,A,E){const w=y.get(mt),B=y.get(pe.qQ);return y.get(u.SKi).runOutsideAngular(()=>{if(!B.startViewTransition||w.skipNextTransition)return w.skipNextTransition=!1,new Promise(wn=>setTimeout(wn));let J;const Ee=new Promise(wn=>{J=wn}),vt=B.startViewTransition(()=>(J(),function Fn(y){return new Promise(A=>{(0,u.mal)(A,{injector:y})})}(y))),{onViewTransitionCreated:at}=w;return at&&(0,u.N4e)(y,()=>at({transition:vt,from:A,to:E})),Ee})}let hi=(()=>{class y{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Be.B,this.transitionAbortSubject=new Be.B,this.configLoader=(0,u.WQX)(Xc),this.environmentInjector=(0,u.WQX)(u.uvJ),this.urlSerializer=(0,u.WQX)(wi),this.rootContexts=(0,u.WQX)(Qi),this.location=(0,u.WQX)(pe.aZ),this.inputBindingEnabled=null!==(0,u.WQX)(lo,{optional:!0}),this.titleStrategy=(0,u.WQX)(Jd),this.options=(0,u.WQX)(Qa,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,u.WQX)(N),this.createViewTransition=(0,u.WQX)(ye,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,R.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=B=>this.events.next(new Gc(B)),this.configLoader.onLoadStartListener=B=>this.events.next(new jc(B))}complete(){this.transitions?.complete()}handleNavigationRequest(E){const w=++this.navigationId;this.transitions?.next({...this.transitions.value,...E,id:w})}setupNavigations(E,w,B){return this.transitions=new L.t({id:0,currentUrlTree:w,currentRawUrl:w,extractedUrl:this.urlHandlingStrategy.extract(w),urlAfterRedirects:this.urlHandlingStrategy.extract(w),rawUrl:w,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Xi,restoredState:null,currentSnapshot:B.snapshot,targetSnapshot:null,currentRouterState:B,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,At.p)(J=>0!==J.id),(0,ze.T)(J=>({...J,extractedUrl:this.urlHandlingStrategy.extract(J.rawUrl)})),(0,tt.n)(J=>{let Ee=!1,vt=!1;return(0,R.of)(J).pipe((0,tt.n)(at=>{if(this.navigationId>J.id)return this.cancelNavigationTransition(J,"",Mi.SupersededByNewNavigation),Le.w;this.currentTransition=J,this.currentNavigation={id:at.id,initialUrl:at.rawUrl,extractedUrl:at.extractedUrl,trigger:at.source,extras:at.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const wn=!E.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!wn&&"reload"!==(at.extras.onSameUrlNavigation??E.onSameUrlNavigation)){const Lr="";return this.events.next(new Vi(at.id,this.urlSerializer.serialize(at.rawUrl),Lr,ti.IgnoredSameUrlNavigation)),at.resolve(null),Le.w}if(this.urlHandlingStrategy.shouldProcessUrl(at.rawUrl))return(0,R.of)(at).pipe((0,tt.n)(Lr=>{const ro=this.transitions?.getValue();return this.events.next(new mr(Lr.id,this.urlSerializer.serialize(Lr.extractedUrl),Lr.source,Lr.restoredState)),ro!==this.transitions?.getValue()?Le.w:Promise.resolve(Lr)}),function Pl(y,A,E,w,B,J){return(0,Q.Z)(Ee=>function Nh(y,A,E,w,B,J,Ee="emptyOnly"){return new Ph(y,A,E,w,B,Ee,J).recognize()}(y,A,E,w,Ee.extractedUrl,B,J).pipe((0,ze.T)(({state:vt,tree:at})=>({...Ee,targetSnapshot:vt,urlAfterRedirects:at}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,E.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,F.M)(Lr=>{J.targetSnapshot=Lr.targetSnapshot,J.urlAfterRedirects=Lr.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Lr.urlAfterRedirects};const ro=new Xn(Lr.id,this.urlSerializer.serialize(Lr.extractedUrl),this.urlSerializer.serialize(Lr.urlAfterRedirects),Lr.targetSnapshot);this.events.next(ro)}));if(wn&&this.urlHandlingStrategy.shouldProcessUrl(at.currentRawUrl)){const{id:Lr,extractedUrl:ro,source:Fl,restoredState:ef,extras:Ul}=at,Ag=new mr(Lr,this.urlSerializer.serialize(ro),Fl,ef);this.events.next(Ag);const Bl=mo(this.rootComponentType).snapshot;return this.currentTransition=J={...at,targetSnapshot:Bl,urlAfterRedirects:ro,extras:{...Ul,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=ro,(0,R.of)(J)}{const Lr="";return this.events.next(new Vi(at.id,this.urlSerializer.serialize(at.extractedUrl),Lr,ti.IgnoredByUrlHandlingStrategy)),at.resolve(null),Le.w}}),(0,F.M)(at=>{const wn=new Or(at.id,this.urlSerializer.serialize(at.extractedUrl),this.urlSerializer.serialize(at.urlAfterRedirects),at.targetSnapshot);this.events.next(wn)}),(0,ze.T)(at=>(this.currentTransition=J={...at,guards:ca(at.targetSnapshot,at.currentSnapshot,this.rootContexts)},J)),function Dh(y,A){return(0,Q.Z)(E=>{const{targetSnapshot:w,currentSnapshot:B,guards:{canActivateChecks:J,canDeactivateChecks:Ee}}=E;return 0===Ee.length&&0===J.length?(0,R.of)({...E,guardsResult:!0}):function Xa(y,A,E,w){return(0,x.H)(y).pipe((0,Q.Z)(B=>function Kd(y,A,E,w,B){const J=A&&A.routeConfig?A.routeConfig.canDeactivate:null;if(!J||0===J.length)return(0,R.of)(!0);const Ee=J.map(vt=>{const at=$o(A)??B,wn=G(vt,at);return Vn(function la(y){return y&&ir(y.canDeactivate)}(wn)?wn.canDeactivate(y,A,E,w):(0,u.N4e)(at,()=>wn(y,A,E,w))).pipe(xe())});return(0,R.of)(Ee).pipe(Li())}
1(B.component,B.route,E,A,w)),xe(B=>!0!==B,!0))}(Ee,w,B,y).pipe((0,Q.Z)(vt=>vt&&function gs(y){return"boolean"==typeof y}(vt)?function Dc(y,A,E,w){return(0,x.H)(A).pipe((0,ne.H)(B=>lt(function Mh(y,A){return null!==y&&A&&A(new ta(y)),(0,R.of)(!0)}(B.route.parent,w),function wh(y,A){return null!==y&&A&&A(new Us(y)),(0,R.of)(!0)}(B.route,w),function zd(y,A,E){const w=A[A.length-1],J=A.slice(0,A.length-1).reverse().map(Ee=>function H(y){const A=y.routeConfig?y.routeConfig.canActivateChild:null;return A&&0!==A.length?{node:y,guards:A}:null}(Ee)).filter(Ee=>null!==Ee).map(Ee=>wt(()=>{const vt=Ee.guards.map(at=>{const wn=$o(Ee.node)??E,Rr=G(at,wn);return Vn(function zc(y){return y&&ir(y.canActivateChild)}(Rr)?Rr.canActivateChild(w,y):(0,u.N4e)(wn,()=>Rr(w,y))).pipe(xe())});return(0,R.of)(vt).pipe(Li())}));return(0,R.of)(J).pipe(Li())}(y,B.path,E),function yg(y,A,E){const w=A.routeConfig?A.routeConfig.canActivate:null;if(!w||0===w.length)return(0,R.of)(!0);const B=w.map(J=>wt(()=>{const Ee=$o(A)??E,vt=G(J,Ee);return Vn(function fo(y){return y&&ir(y.canActivate)}(vt)?vt.canActivate(A,y):(0,u.N4e)(Ee,()=>vt(A,y))).pipe(xe())}));return(0,R.of)(B).pipe(Li())}(y,B.route,E))),xe(B=>!0!==B,!0))}(w,J,y,A):(0,R.of)(vt)),(0,ze.T)(vt=>({...E,guardsResult:vt})))})}(this.environmentInjector,at=>this.events.next(at)),(0,F.M)(at=>{if(J.guardsResult=at.guardsResult,U(at.guardsResult))throw ri(0,at.guardsResult);const wn=new Ol(at.id,this.urlSerializer.serialize(at.extractedUrl),this.urlSerializer.serialize(at.urlAfterRedirects),at.targetSnapshot,!!at.guardsResult);this.events.next(wn)}),(0,At.p)(at=>!!at.guardsResult||(this.cancelNavigationTransition(at,"",Mi.GuardRejected),!1)),Zd(at=>{if(at.guards.canActivateChecks.length)return(0,R.of)(at).pipe((0,F.M)(wn=>{const Rr=new Bo(wn.id,this.urlSerializer.serialize(wn.extractedUrl),this.urlSerializer.serialize(wn.urlAfterRedirects),wn.targetSnapshot);this.events.next(Rr)}),(0,tt.n)(wn=>{let Rr=!1;return(0,R.of)(wn).pipe(function Qd(y,A){return(0,Q.Z)(E=>{const{targetSnapshot:w,guards:{canActivateChecks:B}}=E;if(!B.length)return(0,R.of)(E);const J=new Set(B.map(at=>at.route)),Ee=new Set;for(const at of J)if(!Ee.has(at))for(const wn of Tg(at))Ee.add(wn);let vt=0;return(0,x.H)(Ee).pipe((0,ne.H)(at=>J.has(at)?function Yc(y,A,E,w){const B=y.routeConfig,J=y._resolve;return void 0!==B?.title&&!Vs(B)&&(J[Qt]=B.title),function Uu(y,A,E,w){const B=vn(y);if(0===B.length)return(0,R.of)({});const J={};return(0,x.H)(B).pipe((0,Q.Z)(Ee=>function ka(y,A,E,w){const B=$o(A)??w,J=G(y,B);return Vn(J.resolve?J.resolve(A,E):(0,u.N4e)(B,()=>J(A,E)))}(y[Ee],A,E,w).pipe(xe(),(0,F.M)(vt=>{J[Ee]=vt}))),ke(1),function Qe(y){return(0,ze.T)(()=>y)}(J),(0,te.W)(Ee=>$d(Ee)?Le.w:(0,En.$)(Ee)))}(J,y,A,w).pipe((0,ze.T)(Ee=>(y._resolvedData=Ee,y.data=tr(y,y.parent,E).resolve,null)))}(at,w,y,A):(at.data=tr(at,at.parent,y).resolve,(0,R.of)(void 0))),(0,F.M)(()=>vt++),ke(1),(0,Q.Z)(at=>vt===Ee.size?(0,R.of)(E):Le.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,F.M)({next:()=>Rr=!0,complete:()=>{Rr||this.cancelNavigationTransition(wn,"",Mi.NoDataFromResolver)}}))}),(0,F.M)(wn=>{const Rr=new Ic(wn.id,this.urlSerializer.serialize(wn.extractedUrl),this.urlSerializer.serialize(wn.urlAfterRedirects),wn.targetSnapshot);this.events.next(Rr)}))}),Zd(at=>{const wn=Rr=>{const Lr=[];Rr.routeConfig?.loadComponent&&!Rr.routeConfig._loadedComponent&&Lr.push(this.configLoader.loadComponent(Rr.routeConfig).pipe((0,F.M)(ro=>{Rr.component=ro}),(0,ze.T)(()=>{})));for(const ro of Rr.children)Lr.push(...wn(ro));return Lr};return(0,j.z)(wn(at.targetSnapshot.root)).pipe(gn(null),(0,He.s)(1))}),Zd(()=>this.afterPreactivation()),(0,tt.n)(()=>{const{currentSnapshot:at,targetSnapshot:wn}=J,Rr=this.createViewTransition?.(this.environmentInjector,at.root,wn.root);return Rr?(0,x.H)(Rr).pipe((0,ze.T)(()=>J)):(0,R.of)(J)}),(0,ze.T)(at=>{const wn=function oa(y,A,E){const w=wa(y,A._root,E?E._root:void 0);return new Vo(w,A)}(E.routeReuseStrategy,at.targetSnapshot,at.currentRouterState);return this.currentTransition=J={...at,targetRouterState:wn},this.currentNavigation.targetRouterState=wn,J}),(0,F.M)(()=>{this.events.next(new na)}),((y,A,E,w)=>(0,ze.T)(B=>(new Jo(A,B.targetRouterState,B.currentRouterState,E,w).activate(y),B)))(this.rootContexts,E.routeReuseStrategy,at=>this.events.next(at),this.inputBindingEnabled),(0,He.s)(1),(0,F.M)({next:at=>{Ee=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Dr(at.id,this.urlSerializer.serialize(at.extractedUrl),this.urlSerializer.serialize(at.urlAfterRedirects))),this.titleStrategy?.updateTitle(at.targetRouterState.snapshot),at.resolve(!0)},complete:()=>{Ee=!0}}),(0,hn.Q)(this.transitionAbortSubject.pipe((0,F.M)(at=>{throw at}))),(0,On.j)(()=>{!Ee&&!vt&&this.cancelNavigationTransition(J,"",Mi.SupersededByNewNavigation),this.currentTransition?.id===J.id&&
1(this.currentNavigation=null,this.currentTransition=null)}),(0,te.W)(at=>{if(vt=!0,Zo(at))this.events.next(new qi(J.id,this.urlSerializer.serialize(J.extractedUrl),at.message,at.cancellationCode)),function Ka(y){return Zo(y)&&U(y.url)}(at)?this.events.next(new ni(at.url)):J.resolve(!1);else{this.events.next(new Uo(J.id,this.urlSerializer.serialize(J.extractedUrl),at,J.targetSnapshot??void 0));try{J.resolve(E.errorHandler(at))}catch(wn){this.options.resolveNavigationPromiseOnError?J.resolve(!1):J.reject(wn)}}return Le.w}))}))}cancelNavigationTransition(E,w,B){const J=new qi(E.id,this.urlSerializer.serialize(E.extractedUrl),w,B);this.events.next(J),E.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}static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();function Xr(y){return y!==Xi}let P=(()=>{class y{static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:()=>(0,u.WQX)(Z),providedIn:"root"})}}return y})();class X{shouldDetach(A){return!1}store(A,E){}shouldAttach(A){return!1}retrieve(A){return null}shouldReuseRoute(A,E){return A.routeConfig===E.routeConfig}}let Z=(()=>{class y extends X{static{this.\u0275fac=(()=>{let E;return function(B){return(E||(E=u.xGo(y)))(B||y)}})()}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})(),oe=(()=>{class y{static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:()=>(0,u.WQX)(ve),providedIn:"root"})}}return y})(),ve=(()=>{class y extends oe{constructor(){super(...arguments),this.location=(0,u.WQX)(pe.aZ),this.urlSerializer=(0,u.WQX)(wi),this.options=(0,u.WQX)(Qa,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,u.WQX)(N),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new qn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=mo(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(E){return this.location.subscribe(w=>{"popstate"===w.type&&E(w.url,w.state)})}handleRouterEvent(E,w){if(E instanceof mr)this.stateMemento=this.createStateMemento();else if(E instanceof Vi)this.rawUrlTree=w.initialUrl;else if(E instanceof Xn){if("eager"===this.urlUpdateStrategy&&!w.extras.skipLocationChange){const B=this.urlHandlingStrategy.merge(w.finalUrl,w.initialUrl);this.setBrowserUrl(B,w)}}else E instanceof na?(this.currentUrlTree=w.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(w.finalUrl,w.initialUrl),this.routerState=w.targetRouterState,"deferred"===this.urlUpdateStrategy&&(w.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,w))):E instanceof qi&&(E.code===Mi.GuardRejected||E.code===Mi.NoDataFromResolver)?this.restoreHistory(w):E instanceof Uo?this.restoreHistory(w,!0):E instanceof Dr&&(this.lastSuccessfulId=E.id,this.currentPageId=this.browserPageId)}setBrowserUrl(E,w){const B=this.urlSerializer.serialize(E);if(this.location.isCurrentPathEqualTo(B)||w.extras.replaceUrl){const Ee={...w.extras.state,...this.generateNgRouterState(w.id,this.browserPageId)};this.location.replaceState(B,"",Ee)}else{const J={...w.extras.state,...this.generateNgRouterState(w.id,this.browserPageId+1)};this.location.go(B,"",J)}}restoreHistory(E,w=!1){if("computed"===this.canceledNavigationResolution){const J=this.currentPageId-this.browserPageId;0!==J?this.location.historyGo(J):this.currentUrlTree===E.finalUrl&&0===J&&(this.resetState(E),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(w&&this.resetState(E),this.resetUrlToCurrentUrlTree())}resetState(E){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,E.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(E,w){return"computed"===this.canceledNavigationResolution?{navigationId:E,\u0275routerPageId:w}:{navigationId:E}}static{this.\u0275fac=(()=>{let E;return function(B){return(E||(E=u.xGo(y)))(B||y)}})()}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();var Ne=function(y){return y[y.COMPLETE=0]="COMPLETE",y[y.FAILED=1]="FAILED",y[y.REDIRECTING=2]="REDIRECTING",y}(Ne||{});function Me(y,A){y.events.pipe((0,At.p)(E=>E instanceof Dr||E instanceof qi||E instanceof Uo||E instanceof Vi),(0,ze.T)(E=>E instanceof Dr||E instanceof Vi?Ne.COMPLETE:E instanceof qi&&(E.code===Mi.Redirect||E.code===Mi.SupersededByNewNavigation)?Ne.REDIRECTING:Ne.FAILED),(0,At.p)(E=>E!==Ne.REDIRECTING),(0,He.s)(1)).subscribe(()=>{A()})}function dt(y){throw y}const Jt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},bn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let un=(()=>{class y{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,u.WQX)(u.H3F),this.stateManager=(0,u.WQX)(oe),this.options=(0,u.WQX)(Qa,{optional:!0})||{},this.pendingTasks=(0,u.WQX)(u.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,u.WQX)(hi),this.urlSerializer
1=(0,u.WQX)(wi),this.location=(0,u.WQX)(pe.aZ),this.urlHandlingStrategy=(0,u.WQX)(N),this._events=new Be.B,this.errorHandler=this.options.errorHandler||dt,this.navigated=!1,this.routeReuseStrategy=(0,u.WQX)(P),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,u.WQX)(Ci,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,u.WQX)(lo,{optional:!0}),this.eventsSubscription=new ut.yU,this.isNgZoneEnabled=(0,u.WQX)(u.SKi)instanceof u.SKi&&u.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:E=>{this.console.warn(E)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const E=this.navigationTransitions.events.subscribe(w=>{try{const B=this.navigationTransitions.currentTransition,J=this.navigationTransitions.currentNavigation;if(null!==B&&null!==J)if(this.stateManager.handleRouterEvent(w,J),w instanceof qi&&w.code!==Mi.Redirect&&w.code!==Mi.SupersededByNewNavigation)this.navigated=!0;else if(w instanceof Dr)this.navigated=!0;else if(w instanceof ni){const Ee=this.urlHandlingStrategy.merge(w.url,B.currentRawUrl),vt={info:B.extras.info,skipLocationChange:B.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Xr(B.source)};this.scheduleNavigation(Ee,Xi,null,vt,{resolve:B.resolve,reject:B.reject,promise:B.promise})}(function Cr(y){return!(y instanceof na||y instanceof ni)})(w)&&this._events.next(w)}catch(B){this.navigationTransitions.transitionAbortSubject.next(B)}});this.eventsSubscription.add(E)}resetRootComponentType(E){this.routerState.root.component=E,this.navigationTransitions.rootComponentType=E}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Xi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((E,w)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(E,"popstate",w)},0)})}navigateToSyncWithBrowser(E,w,B){const J={replaceUrl:!0},Ee=B?.navigationId?B:null;if(B){const at={...B};delete at.navigationId,delete at.\u0275routerPageId,0!==Object.keys(at).length&&(J.state=at)}const vt=this.parseUrl(E);this.scheduleNavigation(vt,w,Ee,J)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(E){this.config=E.map(kr),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(E,w={}){const{relativeTo:B,queryParams:J,fragment:Ee,queryParamsHandling:vt,preserveFragment:at}=w,wn=at?this.currentUrlTree.fragment:Ee;let Lr,Rr=null;switch(vt){case"merge":Rr={...this.currentUrlTree.queryParams,...J};break;case"preserve":Rr=this.currentUrlTree.queryParams;break;default:Rr=J||null}null!==Rr&&(Rr=this.removeEmptyProps(Rr));try{Lr=Fe(B?B.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof E[0]||!E[0].startsWith("/"))&&(E=[]),Lr=this.currentUrlTree.root}return xt(Lr,E,Rr,wn??null)}navigateByUrl(E,w={skipLocationChange:!1}){const B=U(E)?E:this.parseUrl(E),J=this.urlHandlingStrategy.merge(B,this.rawUrlTree);return this.scheduleNavigation(J,Xi,null,w)}navigate(E,w={skipLocationChange:!1}){return function hr(y){for(let A=0;A<y.length;A++)if(null==y[A])throw new u.wOt(4008,!1)}(E),this.navigateByUrl(this.createUrlTree(E,w),w)}serializeUrl(E){return this.urlSerializer.serialize(E)}parseUrl(E){try{return this.urlSerializer.parse(E)}catch{return this.urlSerializer.parse("/")}}isActive(E,w){let B;if(B=!0===w?{...Jt}:!1===w?{...bn}:w,U(E))return _n(this.currentUrlTree,E,B);const J=this.parseUrl(E);return _n(this.currentUrlTree,J,B)}removeEmptyProps(E){return Object.entries(E).reduce((w,[B,J])=>(null!=J&&(w[B]=J),w),{})}scheduleNavigation(E,w,B,J,Ee){if(this.disposed)return Promise.resolve(!1);let vt,at,wn;Ee?(vt=Ee.resolve,at=Ee.reject,wn=Ee.promise):wn=new Promise((Lr,ro)=>{vt=Lr,at=ro});const Rr=this.pendingTasks.add();return Me(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Rr))}),this.navigationTransitions.handleNavigationRequest({source:w,restoredState:B,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:E,extras:J,resolve:vt,reject:at,promise:wn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
1),wn.catch(Lr=>Promise.reject(Lr))}static{this.\u0275fac=function(w){return new(w||y)}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})(),Er=(()=>{class y{constructor(E,w,B,J,Ee,vt){this.router=E,this.route=w,this.tabIndexAttribute=B,this.renderer=J,this.el=Ee,this.locationStrategy=vt,this.href=null,this.commands=null,this.onChanges=new Be.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const at=Ee.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===at||"area"===at,this.isAnchorElement?this.subscription=E.events.subscribe(wn=>{wn instanceof Dr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(E){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",E)}ngOnChanges(E){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(E){null!=E?(this.commands=Array.isArray(E)?E:[E],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(E,w,B,J,Ee){const vt=this.urlTree;return!!(null===vt||this.isAnchorElement&&(0!==E||w||B||J||Ee||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(vt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const E=this.urlTree;this.href=null!==E&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(E)):null;const w=null===this.href?null:(0,u.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",w)}applyAttributeValue(E,w){const B=this.renderer,J=this.el.nativeElement;null!==w?B.setAttribute(J,E,w):B.removeAttribute(J,E)}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})}static{this.\u0275fac=function(w){return new(w||y)(u.rXU(un),u.rXU(Hs),u.kS0("tabindex"),u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(pe.hb))}}static{this.\u0275dir=u.FsC({type:y,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(w,B){1&w&&u.bIt("click",function(Ee){return B.onClick(Ee.button,Ee.ctrlKey,Ee.shiftKey,Ee.altKey,Ee.metaKey)}),2&w&&u.BMQ("target",B.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[u.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",u.L39],skipLocationChange:[u.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",u.L39],replaceUrl:[u.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",u.L39],routerLink:"routerLink"},standalone:!0,features:[u.GFd,u.OA$]})}}return y})();class $n{}let Ro=(()=>{class y{constructor(E,w,B,J,Ee){this.router=E,this.injector=B,this.preloadingStrategy=J,this.loader=Ee}setUpPreloading(){this.subscription=this.router.events.pipe((0,At.p)(E=>E instanceof Dr),(0,ne.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(E,w){const B=[];for(const J of w){J.providers&&!J._injector&&(J._injector=(0,u.Ol2)(J.providers,E,`Route: ${J.path}`));const Ee=J._injector??E,vt=J._loadedInjector??Ee;(J.loadChildren&&!J._loadedRoutes&&void 0===J.canLoad||J.loadComponent&&!J._loadedComponent)&&B.push(this.preloadConfig(Ee,J)),(J.children||J._loadedRoutes)&&B.push(this.processRoutes(vt,J.children??J._loadedRoutes))}return(0,x.H)(B).pipe(Re())}preloadConfig(E,w){return this.preloadingStrategy.preload(w,()=>{let B;B=w.loadChildren&&void 0===w.canLoad?this.loader.loadChildren(E,w):(0,R.of)(null);const J=B.pipe((0,Q.Z)(Ee=>null===Ee?(0,R.of)(void 0):(w._loadedRoutes=Ee.routes,w._loadedInjector=Ee.injector,this.processRoutes(Ee.injector??E,Ee.routes))));if(w.loadComponent&&!w._loadedComponent){const Ee=this.loader.loadComponent(w);return(0,x.H)([J,Ee]).pipe(Re())}return J})}static{this.\u0275fac=function(w){return new(w||y)(u.KVO(un),u.KVO(u.Ql9),u.KVO(u.uvJ),u.KVO($n),u.KVO(Xc))}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();const ei=new u.nKC("");let As=(()=>{class y{constructor(E,w,B,J,Ee={}
1){this.urlSerializer=E,this.transitions=w,this.viewportScroller=B,this.zone=J,this.options=Ee,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,u.WQX)(u.uvJ),Ee.scrollPositionRestoration||="disabled",Ee.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(E=>{E instanceof mr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=E.navigationTrigger,this.restoredId=E.restoredState?E.restoredState.navigationId:0):E instanceof Dr?(this.lastId=E.id,this.scheduleScrollEvent(E,this.urlSerializer.parse(E.urlAfterRedirects).fragment)):E instanceof Vi&&E.code===ti.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(E,this.urlSerializer.parse(E.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(E=>{E instanceof _i&&(E.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(E.position):E.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(E.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(E,w){var B=this;this.zone.runOutsideAngular((0,p.A)(function*(){yield new Promise(J=>{setTimeout(()=>{J()}),(0,u.mal)(()=>{J()},{injector:B.environmentInjector})}),B.zone.run(()=>{B.transitions.events.next(new _i(E,"popstate"===B.lastSource?B.store[B.restoredId]:null,w))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(w){u.QTQ()}}static{this.\u0275prov=u.jDH({token:y,factory:y.\u0275fac})}}return y})();function Ko(y,A){return{\u0275kind:y,\u0275providers:A}}function Tr(){const y=(0,u.WQX)(u.zZn);return A=>{const E=y.get(u.o8S);if(A!==E.components[0])return;const w=y.get(un),B=y.get(xh);1===y.get(Hu)&&w.initialNavigation(),y.get(Zi,null,u.$GK.Optional)?.setUpPreloading(),y.get(ei,null,u.$GK.Optional)?.init(),w.resetRootComponentType(E.componentTypes[0]),B.closed||(B.next(),B.complete(),B.unsubscribe())}}const xh=new u.nKC("",{factory:()=>new Be.B}),Hu=new u.nKC("",{providedIn:"root",factory:()=>1}),Zi=new u.nKC("");function Kv(y){return Ko(0,[{provide:Zi,useExisting:Ro},{provide:$n,useExisting:y}])}function Fh(y){return Ko(9,[{provide:ye,useValue:Ut},{provide:mt,useValue:{skipNextTransition:!!y?.skipInitialTransition,...y}}])}const bg=new u.nKC("ROUTER_FORROOT_GUARD"),l0=[pe.aZ,{provide:wi,useClass:no},un,Qi,{provide:Hs,useFactory:function $s(y){return y.routerState.root},deps:[un]},Xc,[]];let u0=(()=>{class y{constructor(E){}static forRoot(E,w){return{ngModule:y,providers:[l0,[],{provide:Ci,multi:!0,useValue:E},{provide:bg,useFactory:Xv,deps:[[un,new u.Xx1,new u.kdw]]},{provide:Qa,useValue:w||{}},w?.useHash?{provide:pe.hb,useClass:pe.fw}:{provide:pe.hb,useClass:pe.Sm},{provide:ei,useFactory:()=>{const y=(0,u.WQX)(pe.Xr),A=(0,u.WQX)(u.SKi),E=(0,u.WQX)(Qa),w=(0,u.WQX)(hi),B=(0,u.WQX)(wi);return E.scrollOffset&&y.setOffset(E.scrollOffset),new As(B,w,y,A,E)}},w?.preloadingStrategy?Kv(w.preloadingStrategy).\u0275providers:[],w?.initialNavigation?f0(w):[],w?.bindToComponentInputs?Ko(8,[za,{provide:lo,useExisting:za}]).\u0275providers:[],w?.enableViewTransitions?Fh().\u0275providers:[],[{provide:qv,useFactory:Tr},{provide:u.iLQ,multi:!0,useExisting:qv}]]}}static forChild(E){return{ngModule:y,providers:[{provide:Ci,multi:!0,useValue:E}]}}static{this.\u0275fac=function(w){return new(w||y)(u.KVO(bg,8))}}static{this.\u0275mod=u.$C({type:y})}static{this.\u0275inj=u.G2t({})}}return y})();function Xv(y){return"guarded"}function f0(y){return["disabled"===y.initialNavigation?Ko(3,[{provide:u.hnV,multi:!0,useFactory:()=>{const A=(0,u.WQX)(un);return()=>{A.setUpLocationChangeListener()}}},{provide:Hu,useValue:2}]).\u0275providers:[],"enabledBlocking"===y.initialNavigation?Ko(2,[{provide:Hu,useValue:0},{provide:u.hnV,multi:!0,deps:[u.zZn],useFactory:A=>{const E=A.get(pe.hj,Promise.resolve());return()=>E.then(()=>new Promise(w=>
1{const B=A.get(un),J=A.get(xh);Me(B,()=>{w(!0)}),A.get(hi).afterPreactivation=()=>(w(!0),J.closed?(0,R.of)(void 0):J),B.initialNavigation()}))}}]).\u0275providers:[]]}const qv=new u.nKC("")},855:(Lt,be,D)=>{D.d(be,{LR:()=>ge,Cn:()=>ht,r2:()=>Be,qb:()=>tt,VA:()=>He,vC:()=>st,vI:()=>At,dl:()=>ze});var p=D(4438),u=D(7554),v=D(3212);class Y{static getInteractionStatusFromEvent(xe,ne){switch(xe.eventType){case v.B.LOGIN_START:return u.T$.Login;case v.B.SSO_SILENT_START:return u.T$.SsoSilent;case v.B.ACQUIRE_TOKEN_START:if(xe.interactionType===u.X8.Redirect||xe.interactionType===u.X8.Popup)return u.T$.AcquireToken;break;case v.B.HANDLE_REDIRECT_START:return u.T$.HandleRedirect;case v.B.LOGOUT_START:return u.T$.Logout;case v.B.SSO_SILENT_SUCCESS:case v.B.SSO_SILENT_FAILURE:if(ne&&ne!==u.T$.SsoSilent)break;return u.T$.None;case v.B.LOGOUT_END:if(ne&&ne!==u.T$.Logout)break;return u.T$.None;case v.B.HANDLE_REDIRECT_END:if(ne&&ne!==u.T$.HandleRedirect)break;return u.T$.None;case v.B.LOGIN_SUCCESS:case v.B.LOGIN_FAILURE:case v.B.ACQUIRE_TOKEN_SUCCESS:case v.B.ACQUIRE_TOKEN_FAILURE:case v.B.RESTORE_FROM_BFCACHE:if(xe.interactionType===u.X8.Redirect||xe.interactionType===u.X8.Popup){if(ne&&ne!==u.T$.Login&&ne!==u.T$.AcquireToken)break;return u.T$.None}}return null}}var b=D(4064),x=D(1564),R=D(1474),L=D(2030),j=D(6648),z=D(2771),Q=D(1413),Ie=D(4412),Re=D(7673),Se=D(983),et=D(177),lt=D(6354),je=D(274),wt=D(9437),Zt=D(5558),En=D(6697),Le=D(5964),ut=D(3147);const Ce="@azure/msal-angular",me="3.1.0",ht=new p.nKC("MSAL_INSTANCE"),ge=new p.nKC("MSAL_GUARD_CONFIG"),Be=new p.nKC("MSAL_INTERCEPTOR_CONFIG"),pe=new p.nKC("MSAL_BROADCAST_CONFIG");let ze=(()=>{class ln{constructor(ne,F){this.instance=ne,this.location=F;const te=this.location.path(!0).split("#").pop();te&&(this.redirectHash=`#${te}`),this.instance.initializeWrapperLibrary(u.f7.Angular,me)}initialize(){return(0,j.H)(this.instance.initialize())}acquireTokenPopup(ne){return(0,j.H)(this.instance.acquireTokenPopup(ne))}acquireTokenRedirect(ne){return(0,j.H)(this.instance.acquireTokenRedirect(ne))}acquireTokenSilent(ne){return(0,j.H)(this.instance.acquireTokenSilent(ne))}handleRedirectObservable(ne){return(0,j.H)(this.instance.initialize().then(()=>this.instance.handleRedirectPromise(ne||this.redirectHash)))}loginPopup(ne){return(0,j.H)(this.instance.loginPopup(ne))}loginRedirect(ne){return(0,j.H)(this.instance.loginRedirect(ne))}logout(ne){return(0,j.H)(this.instance.logout(ne))}logoutRedirect(ne){return(0,j.H)(this.instance.logoutRedirect(ne))}logoutPopup(ne){return(0,j.H)(this.instance.logoutPopup(ne))}ssoSilent(ne){return(0,j.H)(this.instance.ssoSilent(ne))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(Ce,me)),this.logger}setLogger(ne){this.logger=ne.clone(Ce,me),this.instance.setLogger(ne)}}return ln.\u0275fac=function(ne){return new(ne||ln)(p.KVO(ht),p.KVO(et.aZ))},ln.\u0275prov=p.jDH({token:ln,factory:ln.\u0275fac}),ln})(),tt=(()=>{class ln{constructor(ne,F,te){this.msalInstance=ne,this.authService=F,this.msalBroadcastConfig=te,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - eventsToReplay set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`),this._msalSubject=new z.m(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new Q.B,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new Ie.t(u.T$.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(ce=>{this._msalSubject.next(ce);const Te=Y.getInteractionStatusFromEvent(ce,this._inProgress.value);null!==Te&&(this.authService.getLogger().verbose(`BroadcastService - ${ce.eventType} results in setting inProgress from ${this._inProgress.value} to ${Te}`),this._inProgress.next(Te))})}}return ln.\u0275fac=function(ne){return new(ne||ln)(p.KVO(ht),p.KVO(ze),p.KVO(pe,8))},ln.\u0275prov=p.jDH({token:ln,factory:ln.\u0275fac}),ln})(),He=(()=>{class ln{constructor(ne,F,te,ce,Te){this.msalGuardConfig=ne,this.msalBroadcastService=F,this.authService=te,this.location=ce,this.router=Te,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(ne){return this.router.parseUrl(ne)}
1getDestinationUrl(ne){this.authService.getLogger().verbose("Guard - getting destination url");const F=document.getElementsByTagName("base"),te=this.location.normalize(F.length?F[0].href:window.location.origin),ce=this.location.prepareExternalUrl(ne);return ce.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${te}/${ce}`):`${te}${ne}`}loginInteractively(ne){const F="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,ne):{...this.msalGuardConfig.authRequest};if(this.msalGuardConfig.interactionType===u.X8.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(F).pipe((0,lt.T)(ce=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(ce.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const te=this.getDestinationUrl(ne.url);return this.authService.loginRedirect({redirectStartPage:te,...F}).pipe((0,lt.T)(()=>!1))}activateHelper(ne){if(this.msalGuardConfig.interactionType!==u.X8.Popup&&this.msalGuardConfig.interactionType!==u.X8.Redirect)throw new b.XX("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),!(typeof window<"u"))return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),(0,Re.of)(!0);if(x.H.hashContainsKnownProperties(window.location.hash)&&R.GZ()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),(0,Re.of)(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const F=this.location.path(!0);return this.authService.initialize().pipe((0,je.H)(()=>this.authService.handleRedirectObservable()),(0,je.H)(()=>{if(!this.authService.instance.getAllAccounts().length)return ne?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(ne)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),(0,Re.of)(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),ne){const te=this.includesCode(ne.url),ce=!!ne.root&&!!ne.root.fragment&&this.includesCode(`#${ne.root.fragment}`),Te=0===this.location.prepareExternalUrl(ne.url).indexOf("#");if(te&&(ce||Te))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),F.indexOf("#")>-1?(0,Re.of)(this.parseUrl(this.location.path())):(0,Re.of)(this.parseUrl(""))}return(0,Re.of)(!0)}),(0,wt.W)(te=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${te.message}`),this.loginFailedRoute&&ne?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),(0,Re.of)(this.loginFailedRoute)):(0,Re.of)(!1))))}includesCode(ne){return ne.lastIndexOf("/code")>-1&&ne.lastIndexOf("/code")===ne.length-5||ne.indexOf("#code=")>-1||ne.indexOf("&code=")>-1}canActivate(ne,F){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(F)}canActivateChild(ne,F){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(F)}canMatch(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return ln.\u0275fac=function(ne){return new(ne||ln)(p.KVO(ge),p.KVO(tt),p.KVO(ze),p.KVO(et.aZ),p.KVO(ut.Ix))},ln.\u0275prov=p.jDH({token:ln,factory:ln.\u0275fac}),ln})(),st=(()=>{class ln{constructor(ne,F,te,ce,Te){this.msalInterceptorConfig=ne,this.authService=F,this.location=te,this.msalBroadcastService=ce,this._document=Te}intercept(ne,F){if(this.msalInterceptorConfig.interactionType!==u.X8.Popup&&this.msalInterceptorConfig.interactionType!==u.X8.Redirect)throw new b.XX("invalid_interaction_type","Invalid interaction type provided to MSAL Interceptor. InteractionType.Popup, InteractionType.Redirect must be provided in the msalInterceptorConfiguration");this.authService.getLogger().verbose("MSAL Interceptor activated");const te=this.getScopesForEndpoint(ne.url,ne.method);if(!te||0===te.length)return this.authService.getLogger().verbose("Interceptor - no scopes for endpoint"),F.handle(ne);let ce;this.authService.instance.getActiveAccount()?(this.authService.getLogger().verbose("Interceptor - active account selected"),ce=this.authService.instance.getActiveAccount()):(this.authService.getLogger().verbose("Interceptor - no active account, fallback to first account"),ce=this.authService.instance.getAllAccounts()[0]);const Te="function"==typeof this.msalInterceptorConfig.authRequest?this.msalInterceptorConfig.authRequest(this.authService,ne,{account:ce}):{...this.msalInterceptorConfig.authRequest,account:ce};return this.authService.getLogger().info(`Interceptor - ${te.length} scopes found for endpoint`),this.authService.getLogger().infoPii(`Interceptor - [${te}] scopes found for ${ne.url}`),this.acquireToken(Te,te,ce).pipe((0,Zt.n)(ke=>{this.authService.getLogger().verbose("Interceptor - setting authorization headers");const Rt=ne.headers.set("Authorization",`Bearer ${ke.accessToken}`),Qe=ne.clone({headers:Rt});return F.handle(Qe)}))}acquireToken(ne,F,te){return this.authService.acquireTokenSilent({...ne,scopes:F,account:te}).pipe((0,wt.W)(()=>(this.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe((0,En.s)(1),(0,Zt.n)(ce=>ce===u.T$.None?this.acquireTokenInteractively(ne,F):this.msalBroadcastService.inProgress$.pipe((0,Le.p)(Te=>Te===u.T$.None),(0,En.s)(1),(0,Zt.n)(()=>this.acquireToken(ne,F,te))))))),(0,Zt.n)(ce=>ce.accessToken?(0,Re.of)(ce):(this.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe((0,Le.p)(Te=>Te===u.T$.None),(0,En.s)(1),(0,Zt.n)(()=>this.acquireTokenInteractively(ne,F))))))}acquireTokenInteractively(ne,F){if(this.msalInterceptorConfig.interactionType===u.X8.Popup)return this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring b
1y popup"),this.authService.acquireTokenPopup({...ne,scopes:F});this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by redirect");const te=window.location.href;return this.authService.acquireTokenRedirect({...ne,scopes:F,redirectStartPage:te}),Se.w}getScopesForEndpoint(ne,F){this.authService.getLogger().verbose("Interceptor - getting scopes for endpoint");const te=this.location.normalize(ne),ce=Array.from(this.msalInterceptorConfig.protectedResourceMap.keys()),Te=this.matchResourcesToEndpoint(ce,te);return Te.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,Te,F):null}matchResourcesToEndpoint(ne,F){const te=[];return ne.forEach(ce=>{const Te=this.location.normalize(ce),ke=this.getAbsoluteUrl(Te),Rt=new URL(ke),Qe=this.getAbsoluteUrl(F),On=new URL(Qe);this.checkUrlComponents(Rt,On)&&te.push(ce)}),te}checkUrlComponents(ne,F){const te=["protocol","host","pathname","search","hash"];for(const ce of te)if(ne[ce]){const Te=decodeURIComponent(ne[ce]);if(!L.$.matchPattern(Te,F[ce]))return!1}return!0}getAbsoluteUrl(ne){const F=this._document.createElement("a");return F.href=ne,F.href}matchScopesToEndpoint(ne,F,te){const ce=[];return F.forEach(Te=>{const ke=[],Rt=ne.get(Te);null!==Rt?(Rt.forEach(Qe=>{if("string"==typeof Qe)ke.push(Qe);else{const On=te.toLowerCase();Qe.httpMethod.toLowerCase()===On&&(null===Qe.scopes?ce.push(null):Qe.scopes.forEach(xn=>{ke.push(xn)}))}}),ke.length>0&&ce.push(ke)):ce.push(null)}),ce.length>0?(ce.length>1&&this.authService.getLogger().warning("Interceptor - More than 1 matching scopes for endpoint found."),ce[0]):null}}return ln.\u0275fac=function(ne){return new(ne||ln)(p.KVO(Be),p.KVO(ze),p.KVO(et.aZ),p.KVO(tt),p.KVO(et.qQ))},ln.\u0275prov=p.jDH({token:ln,factory:ln.\u0275fac}),ln})(),At=(()=>{class ln{constructor(ne){this.authService=ne}ngOnInit(){this.authService.getLogger().verbose("MsalRedirectComponent activated"),this.authService.handleRedirectObservable().subscribe()}}return ln.\u0275fac=function(ne){return new(ne||ln)(p.rXU(ze))},ln.\u0275cmp=p.VBU({type:ln,selectors:[["app-redirect"]],decls:0,vars:0,template:function(ne,F){},encapsulation:2}),ln})()},1510:(Lt,be,D)=>{D.d(be,{Oy:()=>En,RI:()=>Ce,RW:()=>et,TZ:()=>Le,UY:()=>wt,W6:()=>ht,YZ:()=>ze,_S:()=>Be,sI:()=>lt});var p=D(467),u=D(6810),v=D(4561),Y=D(7554),b=D(6195),x=D(6588);const L="SHA-256",z=new Uint8Array([1,0,1]),Q="0123456789abcdef",Ie=new Uint32Array(1),Re="crypto_subtle_undefined",Se={name:"RSASSA-PKCS1-v1_5",hash:L,modulusLength:2048,publicExponent:z};function et(He){if(!window)throw(0,u.bD)(x.tI);if(!window.crypto)throw(0,u.bD)(x.rc);if(!He&&!window.crypto.subtle)throw(0,u.bD)(x.rc,Re)}function lt(He,st,At){return je.apply(this,arguments)}function je(){return(je=(0,p.A)(function*(He,st,At){st?.addQueueMeasurement(v.MX.Sha256Digest,At);const fn=(new TextEncoder).encode(He);return window.crypto.subtle.digest(L,fn)})).apply(this,arguments)}function wt(He){return window.crypto.getRandomValues(He)}function Zt(){return window.crypto.getRandomValues(Ie),Ie[0]}function En(){const He=Date.now(),st=1024*Zt()+(1023&Zt()),At=new Uint8Array(16),gn=Math.trunc(st/2**30),fn=st&2**30-1,ln=Zt();At[0]=He/2**40,At[1]=He/2**32,At[2]=He/2**24,At[3]=He/65536,At[4]=He/256,At[5]=He,At[6]=112|gn>>>8,At[7]=gn,At[8]=128|fn>>>24,At[9]=fn>>>16,At[10]=fn>>>8,At[11]=fn,At[12]=ln>>>24,At[13]=ln>>>16,At[14]=ln>>>8,At[15]=ln;let xe="";for(let ne=0;ne<At.length;ne++)xe+=Q.charAt(At[ne]>>>4),xe+=Q.charAt(15&At[ne]),(3===ne||5===ne||7===ne||9===ne)&&(xe+="-");return xe}function Le(He,st){return ut.apply(this,arguments)}function ut(){return(ut=(0,p.A)(function*(He,st){return window.crypto.subtle.generateKey(Se,He,st)})).apply(this,arguments)}function Ce(He){return me.apply(this,arguments)}function me(){return(me=(0,p.A)(function*(He){return window.crypto.subtle.exportKey(Y.jb,He)})).apply(this,arguments)}function ht(He,st,At){return ge.apply(this,arguments)}function ge(){return(ge=(0,p.A)(function*(He,st,At){return window.crypto.subtle.importKey(Y.jb,He,Se,st,At)})).apply(this,arguments)}function Be(He,st){return pe.apply(this,arguments)}function pe(){return(pe=(0,p.A)(function*(He,st){return window.crypto.subtle.sign(Se,He,st)})).apply(this,arguments)}function ze(He){return tt.apply(this,arguments)}function tt(){return(tt=(0,p.A)(function*(He){const st=yield lt(He),At=new Uint8Array(st);return(0,b.dB)(At)})).apply(this,arguments)}},6195:(Lt,be,D)=>{function p(b){return encodeURIComponent(v(b).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function u(b){return Y(b).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function v(b){return Y((new TextEncoder).encode(b))}function Y(b){const x=Array.from(b,R=>String.fromCodePoint(R)).join("");return btoa(x)}D.d(be,{KA:()=>v,dB:()=>u,u4:()=>p})},6810:(Lt,be,D)=>{D.d(be,{bD:()=>R,jT:()=>x});var p=D(3461),u=D(6588);const v="For more visit: aka.ms/msaljs/browser-errors",Y={[u.p5]:"The PKCE code challenge and verifier could not be generated.",[u.rc]:"The crypto object or function is not available.",[u.B2]:"Navigation URI is empty. Please check stack trace for more info.",[u.wv]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${v}`,[u.c$]:"Hash does not contain state. Please verify that the request originated from msal.",[u.Lm]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${v}`,[u.fA]:"Unable to parse state. Please verify that the request originated from msal.",[u.oe]:"Hash contains state but the interaction type does not match the caller.",[u.b]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${v}`,[u.hs]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[u.MP]:"window.open returned null or undefined window object.",[u.fN]:"User cancelled the flow.",[u.OM]:`Token acquisition in popup failed due to timeout. ${v}`,[u.Uf]:`Token acquisition in iframe failed due to timeout. ${v}
1`,[u.OT]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[u.tZ]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${v}`,[u.aH]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[u.lg]:"The iframe being monitored was closed prematurely.",[u.v7]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[u.rR]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[u.hZ]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[u.y6]:"No token request found in cache.",[u.ot]:"The cached token request could not be parsed.",[u.Ne]:"No cached authority found.",[u.LW]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[u.Mm]:"Invalid cache type",[u.tI]:"Login and token requests are not supported in non-browser environments.",[u.rn]:"Database is not open!",[u.l7]:"No network connectivity. Check your internet connection.",[u.zv]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[u.Zw]:"Network request failed. Please check the network trace to determine root cause.",[u.db]:"Failed to parse network response. Check network trace.",[u.s9]:"Error loading token to cache.",[u.e0]:"Cryptographic Key or Keypair not found in browser storage.",[u.R3]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[u.xp]:"An authorization code or nativeAccountId must be provided to this flow.",[u.$c]:"Request cannot contain both spa code and native account id.",[u.MG]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[u.gU]:`Unable to acquire token from native platform. ${v}`,[u.y3]:"Timed out while attempting to establish connection to browser extension",[u.cq]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[u.XC]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${v}`,[u.IR]:`You must call and await the initialize function before attempting to call any other MSAL API. ${v}`,[u.nF]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[u._t]:"Invalid base64 encoded string.",[u.bT]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[u.Tw]:"Failed to build request headers object.",[u.wI]:"Failed to parse response headers"};class x extends p.lR{constructor(j,z){super(j,Y[j],z),Object.setPrototypeOf(this,x.prototype),this.name="BrowserAuthError"}}function R(L,j){return new x(L,j)}},6588:(Lt,be,D)=>{D.d(be,{$c:()=>xe,B2:()=>v,IR:()=>ke,LW:()=>ht,Lm:()=>x,MG:()=>ne,MP:()=>Q,Mm:()=>ge,Ne:()=>me,OM:()=>Re,OT:()=>et,R3:()=>fn,Tw:()=>hn,Uf:()=>Se,XC:()=>Te,Zw:()=>He,_t:()=>Qe,aH:()=>je,b:()=>j,bT:()=>On,c$:()=>b,cq:()=>ce,db:()=>st,e0:()=>gn,fA:()=>R,fN:()=>Ie,gU:()=>F,hZ:()=>Le,hs:()=>z,l7:()=>ze,lg:()=>wt,nF:()=>Rt,oe:()=>L,ot:()=>Ce,p5:()=>p,rR:()=>En,rc:()=>u,rn:()=>pe,s9:()=>At,tI:()=>Be,tZ:()=>lt,v7:()=>Zt,wI:()=>xn,wv:()=>Y,xp:()=>ln,y3:()=>te,y6:()=>ut,zv:()=>tt});const p="pkce_not_created",u="crypto_nonexistent",v="empty_navigate_uri",Y="hash_empty_error",b="no_state_in_hash",x="hash_does_not_contain_known_properties",R="unable_to_parse_state",L="state_interaction_type_mismatch",j="interaction_in_progress",z="popup_window_error",Q="empty_window_error",Ie="user_cancelled",Re="monitor_popup_timeout",Se="monitor_window_timeout",et="redirect_in_iframe",lt="block_iframe_reload",je="block_nested_popups",wt="iframe_closed_prematurely",Zt="silent_logout_unsupported",En="no_account_error",Le="silent_prompt_value_error",ut="no_token_request_cache_error",Ce="unable_to_parse_token_request_cache_error",me="no_cached_authority_error",ht="auth_request_not_set_error",ge="invalid_cache_type",Be="non_browser_environment",pe="database_not_open",ze="no_network_connectivity",tt="post_request_failed",He="get_request_failed",st="failed_to_parse_response",At="unable_to_load_token",gn="crypto_key_not_found",fn="auth_code_required",ln="auth_code_or_nativeAccountId_required",xe="spa_code_and_nativeAccountId_present",ne="database_unavailable",F="unable_to_acquire_token_from_native_platform",te="native_handshake_timeout",ce="native_extension_not_installed",Te="native_connection_not_established",ke="uninitialized_public_client_application",Rt="native_prompt_not_supported",Qe="invalid_base64_string",On="invalid_pop_token_request",hn="failed_to_build_headers",xn="failed_to_parse_headers"},4064:(Lt,be,D)=>{D.d(be,{XX:()=>b,jz:()=>x});var p=D(3461),u=D(3578);const v={[u.xz]:"Given storage configuration option was not supported.",[u.dg]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[u.jE]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class b extends p.lR{constructor(L,j){super(L,j),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,b.prototype)}}function x(R){return new b(R,v[R])}},3578:(Lt,be,D)=>{D.d(be,{dg:()=>u,jE:()=>v,xz:()=>p});const p="storage_not_supported",u="stubbed_public_client_application_called",v="in_mem_redirect_unavailable"},3212:(Lt,be,D)=>{D.d(be,{B:()=>p});const p={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",
1LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"}},7554:(Lt,be,D)=>{D.d(be,{$u:()=>lt,Al:()=>b,CC:()=>x,Ct:()=>Y,G8:()=>je,H3:()=>j,JD:()=>v,JE:()=>En,L$:()=>Le,P3:()=>ut,Q1:()=>u,T$:()=>Ie,WJ:()=>wt,X8:()=>Q,_p:()=>R,dh:()=>L,f7:()=>et,jb:()=>Se,nN:()=>Zt,sA:()=>z,uq:()=>Re});var p=D(7635);const u={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},v={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Y={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},b={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},x={GET:"GET",POST:"POST"},R={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},L={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys",VERSION:"msal.version"},j={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},z={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var Q=function(me){return me.Redirect="redirect",me.Popup="popup",me.Silent="silent",me.None="none",me}(Q||{});const Ie={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},Re={scopes:p.aZ},Se="jwk",et={React:"@azure/msal-react",Angular:"@azure/msal-angular"},lt="msal.db",je=1,wt=`${lt}.keys`,Zt={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},En=[Zt.Default,Zt.Skip,Zt.RefreshTokenAndNetwork],Le="msal.browser.log.level",ut="msal.browser.log.pii"},1474:(Lt,be,D)=>{D.d(be,{Af:()=>En,EZ:()=>je,GZ:()=>z,Q3:()=>Zt,U2:()=>L,Uu:()=>Ie,VX:()=>Re,gj:()=>ut,kZ:()=>Le,nQ:()=>j,uh:()=>wt});var p=D(1564),u=D(6810),v=D(7554),Y=D(1510),b=D(4064),x=D(6588),R=D(3578);function L(Ce){Ce.location.hash="","function"==typeof Ce.history.replaceState&&Ce.history.replaceState(null,"",`${Ce.location.origin}${Ce.location.pathname}${Ce.location.search}`)}function j(Ce){const me=Ce.split("#");me.shift(),window.location.hash=me.length>0?me.join("#"):""}function z(){return window.parent!==window}function Ie(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function Re(){const me=new p.H(window.location.href).getUrlComponents();return`${me.Protocol}//${me.HostNameAndPort}/`}function je(){if(typeof window>"u")throw(0,u.bD)(x.tI)}function wt(Ce){if(!Ce)throw(0,u.bD)(x.IR)}function Zt(Ce){je(),function Se(){if(p.H.hashContainsKnownProperties(window.location.hash)&&z())throw(0,u.bD)(x.tZ)}
1(),function lt(){if(function Q(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(`${v.Q1.POPUP_NAME_PREFIX}.`)}())throw(0,u.bD)(x.aH)}(),wt(Ce)}function En(Ce,me){if(Zt(Ce),function et(Ce){if(z()&&!Ce)throw(0,u.bD)(x.OT)}(me.system.allowRedirectInIframe),me.cache.cacheLocation===v.Al.MemoryStorage&&!me.cache.storeAuthStateInCookie)throw(0,b.jz)(R.jE)}function Le(Ce){const me=document.createElement("link");me.rel="preconnect",me.href=new URL(Ce).origin,me.crossOrigin="anonymous",document.head.appendChild(me),window.setTimeout(()=>{try{document.head.removeChild(me)}catch{}},1e4)}function ut(){return(0,Y.Oy)()}},3461:(Lt,be,D)=>{D.d(be,{lR:()=>b,pz:()=>x});var p=D(7635),u=D(6213);const v={[u.W]:"Unexpected error in authentication.",[u.z]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class b extends Error{constructor(L,j,z){super(j?`${L}: ${j}`:L),Object.setPrototypeOf(this,b.prototype),this.errorCode=L||p.YM.EMPTY_STRING,this.errorMessage=j||p.YM.EMPTY_STRING,this.subError=z||p.YM.EMPTY_STRING,this.name="AuthError"}setCorrelationId(L){this.correlationId=L}}function x(R,L){return new b(R,L?`${v[R]} ${L}`:v[R])}},6213:(Lt,be,D)=>{D.d(be,{W:()=>p,z:()=>u});const p="unexpected_error",u="post_request_failed"},3986:(Lt,be,D)=>{D.d(be,{SB:()=>x,eB:()=>b});var p=D(3461),u=D(7172);const v={[u.lP]:"The client info could not be parsed/decoded correctly",[u.fY]:"The client info was empty",[u.gR]:"Token cannot be parsed",[u.Bh]:"The token is null or empty",[u.s1]:"Endpoints cannot be resolved",[u.x6]:"Network request failed",[u.Ej]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[u.hJ]:"The hash parameters could not be deserialized",[u.f$]:"State was not the expected format",[u.Cl]:"State mismatch error",[u.tQ]:"State not found",[u.aQ]:"Nonce mismatch error",[u.n3]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[u.Yh]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[u.s9]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[u.gg]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[u.oV]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[u.$P]:"Token request cannot be made without authorization code or refresh token.",[u.f5]:"Cannot remove null or empty scope from ScopeSet",[u.Wf]:"Cannot append ScopeSet",[u.UA]:"Empty input ScopeSet cannot be processed",[u.u4]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[u.dL]:"Device code is expired.",[u.ax]:"Device code stopped polling for unknown reasons.",[u.C2]:"Please pass an account object, silent flow is not supported without account information",[u.n4]:"Cache record object was null or undefined.",[u.l3]:"Invalid environment when attempting to create cache entry",[u.rk]:"No account found in cache for given key.",[u.oL]:"No crypto object detected.",[u.Zj]:"Unexpected credential type.",[u.qM]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[u.Q8]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[u.wb]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[u.Fs]:"User defined timeout for device code polling reached",[u.FA]:"Cannot generate a POP jwt if the token_claims are not populated",[u.Re]:"Server response does not contain an authorization code to proceed",[u.QE]:"Could not remove the credential's binding key from storage.",[u.yX]:"The provided authority does not support logout",[u.fo]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[u.l7]:"No network connectivity. Check your internet connection.",[u.fn]:"User cancelled the flow.",[u.ik]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[u.R9]:"This method has not been implemented",[u.CN]:"The nested app auth bridge is disabled"};class b extends p.lR{constructor(L,j){super(L,j?`${v[L]}: ${j}`:v[L]),this.name="ClientAuthError",Object.setPrototypeOf(this,b.prototype)}}function x(R,L){return new b(R,L)}},7172:(Lt,be,D)=>{D.d(be,{$P:()=>wt,Bh:()=>Y,C2:()=>ht,CN:()=>Rt,Cl:()=>z,Ej:()=>R,FA:()=>fn,Fs:()=>gn,Q8:()=>st,QE:()=>xe,R9:()=>ke,Re:()=>ln,UA:()=>Le,Wf:()=>En,Yh:()=>Se,Zj:()=>tt,aQ:()=>Ie,ax:()=>me,dL:()=>Ce,f$:()=>j,f5:()=>Zt,fY:()=>u,fn:()=>ce,fo:()=>F,gR:()=>v,gg:()=>lt,hJ:()=>L,ik:()=>Te,l3:()=>Be,l7:()=>te,lP:()=>p,n3:()=>Re,n4:()=>ge,oL:()=>ze,oV:()=>je,qM:()=>He,rk:()=>pe,s1:()=>b,s9:()=>et,tQ:()=>Q,u4:()=>ut,wb:()=>At,x6:()=>x,yX:()=>ne});const p="client_info_decoding_error",u="client_info_empty_error",v="token_parsing_error",Y="null_or_empty_token",b="endpoints_resolution_error",x="network_error",R="openid_config_error",L="hash_not_deserialized",j="invalid_state",z="state_mismatch",Q="state_not_found",Ie="nonce_mismatch",Re="auth_time_not_found",Se="max_age_transpired",et="multiple_matching_tokens",lt="multiple_matching_accounts",je="multiple_matching_appMetadata",wt="request_cannot_be_made",Zt="cannot_remove_empty_scope",En="cannot_append_scopeset",Le="empty_input_scopeset",ut="device_code_polling_cancelled",Ce="device_code_expired",me="device_code_unknown_error",ht="no_account_in_silent_request",ge="invalid_cache_record",Be="invalid_cache_environment",pe="no_account_found",ze="no_crypto_object",tt="unexpected_credential_type",He="invalid_assertion",
1st="invalid_client_credential",At="token_refresh_required",gn="user_timeout_reached",fn="token_claims_cnf_required_for_signedjwt",ln="authorization_code_missing_from_server_response",xe="binding_key_not_removed",ne="end_session_endpoint_not_supported",F="key_id_missing",te="no_network_connectivity",ce="user_canceled",Te="missing_tenant_id_error",ke="method_not_implemented",Rt="nested_app_auth_bridge_disabled"},7806:(Lt,be,D)=>{D.d(be,{aD:()=>x});var p=D(3461),u=D(5424);const v={[u.gO]:"A redirect URI is required for all calls, and none has been set.",[u.hL]:"Could not parse the given claims request object.",[u.oY]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[u.$N]:"URL could not be parsed into appropriate segments.",[u.$A]:"URL was empty or null.",[u.zg]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[u.Pc]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[u.bj]:"Given claims parameter must be a stringified JSON object.",[u.Ub]:"Token request was empty and not found in cache.",[u.pi]:"The logout request was null or undefined.",[u.b0]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[u.qz]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[u.a_]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[u.uk]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[u.E0]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[u.LX]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[u.rB]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[u.ze]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[u.hk]:"Invalid authentication header provided",[u.bg]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[u.J6]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[u.K3]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class b extends p.lR{constructor(L){super(L,v[L]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,b.prototype)}}function x(R){return new b(R)}},5424:(Lt,be,D)=>{D.d(be,{$A:()=>b,$N:()=>Y,E0:()=>et,J6:()=>Le,K3:()=>ut,LX:()=>lt,Pc:()=>R,Ub:()=>j,a_:()=>Re,b0:()=>Q,bg:()=>En,bj:()=>L,gO:()=>p,hL:()=>u,hk:()=>Zt,oY:()=>v,pi:()=>z,qz:()=>Ie,rB:()=>je,uk:()=>Se,ze:()=>wt,zg:()=>x});const p="redirect_uri_empty",u="claims_request_parsing_error",v="authority_uri_insecure",Y="url_parse_error",b="empty_url_error",x="empty_input_scopes_error",R="invalid_prompt_value",L="invalid_claims",j="token_request_empty",z="logout_request_empty",Q="invalid_code_challenge_method",Ie="pkce_params_missing",Re="invalid_cloud_discovery_metadata",Se="invalid_authority_metadata",et="untrusted_authority",lt="missing_ssh_jwk",je="missing_ssh_kid",wt="missing_nonce_authentication_header",Zt="invalid_authentication_header",En="cannot_set_OIDCOptions",Le="cannot_allow_native_broker",ut="authority_mismatch"},4561:(Lt,be,D)=>{D.d(be,{MX:()=>p,hU:()=>v});const p={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",
1StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},v={NotStarted:0,InProgress:1,Completed:2}},1564:(Lt,be,D)=>{D.d(be,{H:()=>x});var p=D(7806),u=D(2030),v=D(7635),Y=D(2718),b=D(5424);class x{get urlString(){return this._urlString}constructor(L){if(this._urlString=L,!this._urlString)throw(0,p.aD)(b.$A);L.includes("#")||(this._urlString=x.canonicalizeUri(L))}static canonicalizeUri(L){if(L){let j=L.toLowerCase();return u.$.endsWith(j,"?")?j=j.slice(0,-1):u.$.endsWith(j,"?/")&&(j=j.slice(0,-2)),u.$.endsWith(j,"/")||(j+="/"),j}return L}validateAsUri(){let L;try{L=this.getUrlComponents()}catch{throw(0,p.aD)(b.$N)}if(!L.HostNameAndPort||!L.PathSegments)throw(0,p.aD)(b.$N);if(!L.Protocol||"https:"!==L.Protocol.toLowerCase())throw(0,p.aD)(b.oY)}static appendQueryString(L,j){return j?L.indexOf("?")<0?`${L}?${j}`:`${L}&${j}`:L}static removeHashFromUrl(L){return x.canonicalizeUri(L.split("#")[0])}replaceTenantPath(L){const j=this.getUrlComponents(),z=j.PathSegments;return L&&0!==z.length&&(z[0]===v.v2.COMMON||z[0]===v.v2.ORGANIZATIONS)&&(z[0]=L),x.constructAuthorityUriFromObject(j)}getUrlComponents(){const L=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),j=this.urlString.match(L);if(!j)throw(0,p.aD)(b.$N);const z={Protocol:j[1],HostNameAndPort:j[4],AbsolutePath:j[5],QueryString:j[7]};let Q=z.AbsolutePath.split("/");return Q=Q.filter(Ie=>Ie&&Ie.length>0),z.PathSegments=Q,z.QueryString&&z.QueryString.endsWith("/")&&(z.QueryString=z.QueryString.substring(0,z.QueryString.length-1)),z}static getDomainFromUrl(L){const j=RegExp("^([^:/?#]+://)?([^/?#]*)"),z=L.match(j);if(!z)throw(0,p.aD)(b.$N);return z[2]}
1static getAbsoluteUrl(L,j){if(L[0]===v.YM.FORWARD_SLASH){const Q=new x(j).getUrlComponents();return Q.Protocol+"//"+Q.HostNameAndPort+L}return L}static constructAuthorityUriFromObject(L){return new x(L.Protocol+"//"+L.HostNameAndPort+"/"+L.PathSegments.join("/"))}static hashContainsKnownProperties(L){return!!(0,Y.n)(L)}}},7635:(Lt,be,D)=>{D.d(be,{$x:()=>Re,E_:()=>ut,F0:()=>gn,Fq:()=>L,GU:()=>wt,Gd:()=>x,I:()=>ge,IO:()=>me,JR:()=>Zt,Kk:()=>pe,LR:()=>et,Lz:()=>st,OK:()=>b,Qd:()=>Se,Rv:()=>He,Tq:()=>Be,Xw:()=>ht,YM:()=>p,_2:()=>tt,_A:()=>Y,_M:()=>j,aG:()=>lt,aZ:()=>v,gT:()=>Ce,hB:()=>En,iF:()=>z,jZ:()=>ze,p:()=>Ie,t3:()=>u,u0:()=>Le,v2:()=>R,zL:()=>Q});const p={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},u={SUCCESS:200,SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR:400,CLIENT_ERROR_RANGE_START:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,REQUEST_TIMEOUT:408,TOO_MANY_REQUESTS:429,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR:500,SERVER_ERROR_RANGE_START:500,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,SERVER_ERROR_RANGE_END:599,MULTI_SIDED_ERROR:600},v=[p.OPENID_SCOPE,p.PROFILE_SCOPE,p.OFFLINE_ACCESS_SCOPE],Y=[...v,p.EMAIL_SCOPE],b={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},x={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},R={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},L={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},j={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},z={PLAIN:"plain",S256:"S256"},Q={QUERY:"query",FRAGMENT:"fragment"},Ie={...Q,FORM_POST:"form_post"},Re={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},Se={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},et={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},lt={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},wt="appmetadata",Zt="client_info",En="1",Le={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400}
1,ut={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},Ce={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},me={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},ht={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},ge={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Be={username:"username",password:"password"},pe={httpSuccess:200,httpBadRequest:400},ze={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},tt={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},He={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},st={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},gn=300},2030:(Lt,be,D)=>{D.d(be,{$:()=>p});class p{static isEmptyObj(v){if(v)try{const Y=JSON.parse(v);return 0===Object.keys(Y).length}catch{}return!0}static startsWith(v,Y){return 0===v.indexOf(Y)}static endsWith(v,Y){return v.length>=Y.length&&v.lastIndexOf(Y)===v.length-Y.length}static queryStringToObject(v){const Y={},b=v.split("&"),x=R=>decodeURIComponent(R.replace(/\+/g," "));return b.forEach(R=>{if(R.trim()){const[L,j]=R.split(/=(.+)/g,2);L&&j&&(Y[x(L)]=x(j))}}),Y}static trimArrayEntries(v){return v.map(Y=>Y.trim())}static removeEmptyStringsFromArray(v){return v.filter(Y=>!!Y)}static jsonParseHelper(v){try{return JSON.parse(v)}catch{return null}}static matchPattern(v,Y){return new RegExp(v.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(Y)}}},2718:(Lt,be,D)=>{D.d(be,{S:()=>v,n:()=>Y});var p=D(3986),u=D(7172);function v(b){return b.startsWith("#/")?b.substring(2):b.startsWith("#")||b.startsWith("?")?b.substring(1):b}function Y(b){if(!b||b.indexOf("=")<0)return null;try{const x=v(b),R=Object.fromEntries(new URLSearchParams(x));if(R.code||R.error||R.error_description||R.state)return R}catch{throw(0,p.SB)(u.hJ)}return null}},60:(Lt,be,D)=>{D.d(be,{aY:()=>V,dX:()=>Xr});var p=D(4438);function u(P,X,Z){return(X=function L(P){var X=function R(P,X){if("object"!=typeof P||!P)return P;var Z=P[Symbol.toPrimitive];if(void 0!==Z){var oe=Z.call(P,X||"default");if("object"!=typeof oe)return oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===X?String:Number)(P)}(P,"string");return"symbol"==typeof X?X:X+""}(X))in P?Object.defineProperty(P,X,{value:Z,enumerable:!0,configurable:!0,writable:!0}):P[X]=Z,P}function Y(P,X){var Z=Object.keys(P);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(P);X&&(oe=oe.filter(function(ve){return Object.getOwnPropertyDescriptor(P,ve).enumerable})),Z.push.apply(Z,oe)}return Z}function b(P){for(var X=1;X<arguments.length;X++){var Z=null!=arguments[X]?arguments[X]:{};X%2?Y(Object(Z),!0).forEach(function(oe){u(P,oe,Z[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(Z)):Y(Object(Z)).forEach(function(oe){Object.defineProperty(P,oe,Object.getOwnPropertyDescriptor(Z,oe))})}return P}const z=()=>{};let Q={},Ie={},Re=null,Se={mark:z,measure:z};try{typeof window<"u"&&(Q=window),typeof document<"u"&&(Ie=document),typeof MutationObserver<"u"&&(Re=MutationObserver),typeof performance<"u"&&(Se=performance)}catch{}const{userAgent:et=""}=Q.navigator||{},lt=Q,je=Ie,wt=Re,Zt=Se,Le=!!je.documentElement&&!!je.head&&"function"==typeof je.addEventListener&&"function"==typeof je.createElement,ut=~et.indexOf("MSIE")||~et.indexOf("Trident/");var ht={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Be=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],pe="classic",ze="duotone",st=[pe,ze,"sharp","sharp-duotone"],fn=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),xe=["fak","fa-kit","fakd","fa-kit-duotone"],ce=["fak","fakd"],Rt={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},On=["fak","fa-kit","fakd","fa-kit-duotone"],Qt={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},ar=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Pt=[1,2,3,4,5,6,7,8,9,10],An=Pt.concat([11,12,13,14,15,16,17,18,19,20]),vn=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vert
1ical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Rt.GROUP,Rt.SWAP_OPACITY,Rt.PRIMARY,Rt.SECONDARY].concat(Pt.map(P=>"".concat(P,"x"))).concat(An.map(P=>"w-".concat(P)));const _t="___FONT_AWESOME___",Vn=16,Tt="fa",sn="svg-inline--fa",_n="data-fa-i2svg",Fr="data-fa-pseudo-element",Ni="data-fa-pseudo-element-pending",Di="data-prefix",mi="data-icon",ci="fontawesome-i2svg",is="async",qn=["HTML","HEAD","STYLE","SCRIPT"],Mr=(()=>{try{return!0}catch{return!1}})();function vr(P){return new Proxy(P,{get:(X,Z)=>Z in X?X[Z]:X[pe]})}const Ar=b({},ht);Ar[pe]=b(b(b(b({},{"fa-duotone":"duotone"}),ht[pe]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const Bi=vr(Ar),Gr=b({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});Gr[pe]=b(b(b(b({},{duotone:"fad"}),Gr[pe]),{kit:"fak"}),{"kit-duotone":"fakd"});const wi=vr(Gr),no=b({},Qt);no[pe]=b(b({},no[pe]),{fak:"fa-kit"});const ys=vr(no),Pi=b({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});Pi[pe]=b(b({},Pi[pe]),{"fa-kit":"fak"}),vr(Pi);const it=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,he="fa-layers-text",$e=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,kn=(vr(b({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),Br={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Yr=["kit",...vn],ui=lt.FontAwesomeConfig||{};je&&"function"==typeof je.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(X=>{let[Z,oe]=X;const ve=function vi(P){return""===P||"false"!==P&&("true"===P||P)}(function bi(P){var X=je.querySelector("script["+P+"]");if(X)return X.getAttribute(P)}(Z));null!=ve&&(ui[oe]=ve)});const ki={styleDefault:"solid",familyDefault:pe,cssPrefix:Tt,replacementClass:sn,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ui.familyPrefix&&(ui.cssPrefix=ui.familyPrefix);const Eo=b(b({},ki),ui);Eo.autoReplaceSvg||(Eo.observeMutations=!1);const Kt={};Object.keys(ki).forEach(P=>{Object.defineProperty(Kt,P,{enumerable:!0,set:function(X){Eo[P]=X,Wt.forEach(Z=>Z(Kt))},get:function(){return Eo[P]}})}),Object.defineProperty(Kt,"familyPrefix",{enumerable:!0,set:function(P){Eo.cssPrefix=P,Wt.forEach(X=>X(Kt))},get:function(){return Eo.cssPrefix}}),lt.FontAwesomeConfig=Kt;const Wt=[],go=Vn,Hi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},Ge="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function yn(){let P=12,X="";for(;P-- >0;)X+=Ge[62*Math.random()|0];return X}function U(P){const X=[];for(let Z=(P||[]).length>>>0;Z--;)X[Z]=P[Z];return X}function ot(P){return P.classList?U(P.classList):(P.getAttribute("class")||"").split(" ").filter(X=>X)}function Fe(P){return"".concat(P).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Nn(P){return Object.keys(P||{}).reduce((X,Z)=>X+"".concat(Z,": ").concat(P[Z].trim(),";"),"")}function $r(P){return P.size!==Hi.size||P.x!==Hi.x||P.y!==Hi.y||P.rotate!==
1Hi.rotate||P.flipX||P.flipY}var ue=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;
1\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}
1\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';function De(){const P=Tt,X=sn,Z=Kt.cssPrefix,oe=Kt.replacementClass;let ve=ue;if(Z!==P||oe!==X){const Ne=new RegExp("\\.".concat(P,"\\-"),"g"),Me=new RegExp("\\--".concat(P,"\\-"),"g"),dt=new RegExp("\\.".concat(X),"g");ve=ve.replace(Ne,".".concat(Z,"-")).replace(Me,"--".concat(Z,"-")).replace(dt,".".concat(oe))}return ve}let Ae=!1;function St(){Kt.autoAddCss&&!Ae&&(function Cs(P){if(!P||!Le)return;const X=je.createElement("style");X.setAttribute("type","text/css"),X.innerHTML=P;const Z=je.head.childNodes;let oe=null;for(let ve=Z.length-1;ve>-1;ve--){const Ne=Z[ve],Me=(Ne.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Me)>-1&&(oe=Ne)}je.head.insertBefore(X,oe)}(De()),Ae=!0)}var yt={mixout:()=>({dom:{css:De,insertCss:St}}),hooks:()=>({beforeDOMElementCreation(){St()},beforeI2svg(){St()}})};const tn=lt||{};tn[_t]||(tn[_t]={}),tn[_t].styles||(tn[_t].styles={}),tn[_t].hooks||(tn[_t].hooks={}),tn[_t].shims||(tn[_t].shims=[]);var rn=tn[_t];const cr=[],Hn=function(){je.removeEventListener("DOMContentLoaded",Hn),zr=1,cr.map(P=>P())};let zr=!1;function Pr(P){const{tag:X,attributes:Z={},children:oe=[]}=P;return"string"==typeof P?Fe(P):"<".concat(X," ").concat(function xt(P){return Object.keys(P||{}).reduce((X,Z)=>X+"".concat(Z,'="').concat(Fe(P[Z]),'" '),"").trim()}(Z),">").concat(oe.map(Pr).join(""),"</").concat(X,">")}function di(P,X,Z){if(P&&P[X]&&P[X][Z])return{prefix:X,iconName:Z,icon:P[X][Z]}}Le&&(zr=(je.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(je.readyState),zr||je.addEventListener("DOMContentLoaded",Hn));var Ln=function(X,Z,oe,ve){var Jt,bn,un,Ne=Object.keys(X),Me=Ne.length,dt=void 0!==ve?function(X,Z){return function(oe,ve,Ne,Me){return X.call(Z,oe,ve,Ne,Me)}}(Z,ve):Z;for(void 0===oe?(Jt=1,un=X[Ne[0]]):(Jt=0,un=oe);Jt<Me;Jt++)un=dt(un,X[bn=Ne[Jt]],bn,X);return un};function mr(P){const X=function dr(P){const X=[];let Z=0;const oe=P.length;for(;Z<oe;){const ve=P.charCodeAt(Z++);if(ve>=55296&&ve<=56319&&Z<oe){const Ne=P.charCodeAt(Z++);56320==(64512&Ne)?X.push(((1023&ve)<<10)+(1023&Ne)+65536):(X.push(ve),Z--)}else X.push(ve)}return X}(P);return 1===X.length?X[0].toString(16):null}function Mi(P){return Object.keys(P).reduce((X,Z)=>{const oe=P[Z];return oe.icon?X[oe.iconName]=oe.icon:X[Z]=oe,X},{})}function ti(P,X){let Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:oe=!1}=Z,ve=Mi(X);"function"!=typeof rn.hooks.addPack||oe?rn.styles[P]=b(b({},rn.styles[P]||{}),ve):rn.hooks.addPack(P,Mi(X)),"fas"===P&&ti("fa",X)}const{styles:Vi,shims:Uo}=rn,Xn=Object.keys(ys),Or=Xn.reduce((P,X)=>(P[X]=Object.keys(ys[X]),P),{});let Ol=null,Bo={},Ic={},jc={},Gc={},ta={};const Da=()=>{const P=oe=>Ln(Vi,(ve,Ne,Me)=>(ve[Me]=Ln(Ne,oe,{}),ve),{});Bo=P((oe,ve,Ne)=>(ve[3]&&(oe[ve[3]]=Ne),ve[2]&&ve[2].filter(dt=>"number"==typeof dt).forEach(dt=>{oe[dt.toString(16)]=Ne}),oe)),Ic=P((oe,ve,Ne)=>(oe[Ne]=Ne,ve[2]&&ve[2].filter(dt=>"string"==typeof dt).forEach(dt=>{oe[dt]=Ne}),oe)),ta=P((oe,ve,Ne)=>{const Me=ve[2];return oe[Ne]=Ne,Me.forEach(dt=>{oe[dt]=Ne}),oe});const X="far"in Vi||Kt.autoFetchSvg,Z=Ln(Uo,(oe,ve)=>{const Ne=ve[0];let Me=ve[1];const dt=ve[2];return"far"===Me&&!X&&(Me="fas"),"string"==typeof Ne&&(oe.names[Ne]={prefix:Me,iconName:dt}),"number"==typeof Ne&&(oe.unicodes[Ne.toString(16)]={prefix:Me,iconName:dt}),oe},{names:{},unicodes:{}});jc=Z.names,Gc=Z.unicodes,Ol=ao(Kt.styleDefault,{family:Kt.familyDefault})};function _i(P,X){return(Bo[P]||{})[X]}function ni(P,X){return(ta[P]||{})[X]}function Bs(P){return jc[P]||{prefix:null,iconName:null}}function Qi(){return Ol}(function Rn(P){Wt.push(P)})(P=>{Ol=ao(P.styleDefault,{family:Kt.familyDefault})}),Da();const Ts=()=>({prefix:null,iconName:null,rest:[]}
1);function ao(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:Z=pe}=X;return Z!==ze||P?wi[Z][P]||wi[Z][Bi[Z][P]]||(P in rn.styles?P:null)||null:"fad"}function ji(P){return P.sort().filter((X,Z,oe)=>oe.indexOf(X)===Z)}function Vo(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:Z=!1}=X;let oe=null;const ve=ar.concat(On),Ne=ji(P.filter(hr=>ve.includes(hr))),Me=ji(P.filter(hr=>!ar.includes(hr))),dt=Ne.filter(hr=>(oe=hr,!Be.includes(hr))),[Jt=null]=dt,bn=function Sc(P){let X=pe;const Z=Xn.reduce((oe,ve)=>(oe[ve]="".concat(Kt.cssPrefix,"-").concat(ve),oe),{});return st.forEach(oe=>{(P.includes(Z[oe])||P.some(ve=>Or[oe].includes(ve)))&&(X=oe)}),X}(Ne),un=b(b({},function Ho(P){let X=[],Z=null;return P.forEach(oe=>{const ve=function Us(P,X){const Z=X.split("-"),oe=Z[0],ve=Z.slice(1).join("-");return oe!==P||""===ve||function yr(P){return~Yr.indexOf(P)}(ve)?null:ve}(Kt.cssPrefix,oe);ve?Z=ve:oe&&X.push(oe)}),{iconName:Z,rest:X}}(Me)),{},{prefix:ao(Jt,{family:bn})});return b(b(b({},un),function tr(P){const{values:X,family:Z,canonical:oe,givenPrefix:ve="",styles:Ne={},config:Me={}}=P,dt=Z===ze,Jt=X.includes("fa-duotone")||X.includes("fad");if(!dt&&(Jt||"duotone"===Me.familyDefault||("fad"===oe.prefix||"fa-duotone"===oe.prefix))&&(oe.prefix="fad"),(X.includes("fa-brands")||X.includes("fab"))&&(oe.prefix="fab"),!oe.prefix&&hs.includes(Z)&&(Object.keys(Ne).find(Cr=>Hs.includes(Cr))||Me.autoFetchSvg)){const Cr=fn.get(Z).defaultShortPrefixId;oe.prefix=Cr,oe.iconName=ni(oe.prefix,oe.iconName)||oe.iconName}return("fa"===oe.prefix||"fa"===ve)&&(oe.prefix=Qi()||"fas"),oe}({values:P,family:bn,styles:Vi,config:Kt,canonical:un,givenPrefix:oe})),function mo(P,X,Z){let{prefix:oe,iconName:ve}=Z;if(P||!oe||!ve)return{prefix:oe,iconName:ve};const Ne="fa"===X?Bs(ve):{},Me=ni(oe,ve);return ve=Ne.iconName||Me||ve,oe=Ne.prefix||oe,"far"===oe&&!Vi.far&&Vi.fas&&!Kt.autoFetchSvg&&(oe="fas"),{prefix:oe,iconName:ve}}(Z,oe,un))}const hs=st.filter(P=>P!==pe||P!==ze),Hs=Object.keys(Qt).filter(P=>P!==pe).map(P=>Object.keys(Qt[P])).flat();let Zn=[],jo={};const Is={},ra=Object.keys(Is);function Vs(P,X){for(var Z=arguments.length,oe=new Array(Z>2?Z-2:0),ve=2;ve<Z;ve++)oe[ve-2]=arguments[ve];return(jo[P]||[]).forEach(Me=>{X=Me.apply(null,[X,...oe])}),X}function os(P){for(var X=arguments.length,Z=new Array(X>1?X-1:0),oe=1;oe<X;oe++)Z[oe-1]=arguments[oe];(jo[P]||[]).forEach(Ne=>{Ne.apply(null,Z)})}function wo(){const P=arguments[0],X=Array.prototype.slice.call(arguments,1);return Is[P]?Is[P].apply(null,X):void 0}function lo(P){"fa"===P.prefix&&(P.prefix="fas");let{iconName:X}=P;const Z=P.prefix||Qi();if(X)return X=ni(Z,X)||X,di(za.definitions,Z,X)||di(rn.styles,Z,X)}const za=new class co{constructor(){this.definitions={}}add(){for(var X=arguments.length,Z=new Array(X),oe=0;oe<X;oe++)Z[oe]=arguments[oe];const ve=Z.reduce(this._pullDefinitions,{});Object.keys(ve).forEach(Ne=>{this.definitions[Ne]=b(b({},this.definitions[Ne]||{}),ve[Ne]),ti(Ne,ve[Ne]);const Me=ys[pe][Ne];Me&&ti(Me,ve[Ne]),Da()})}reset(){this.definitions={}}_pullDefinitions(X,Z){const oe=Z.prefix&&Z.iconName&&Z.icon?{0:Z}:Z;return Object.keys(oe).map(ve=>{const{prefix:Ne,iconName:Me,icon:dt}=oe[ve],Jt=dt[2];X[Ne]||(X[Ne]={}),Jt.length>0&&Jt.forEach(bn=>{"string"==typeof bn&&(X[Ne][bn]=dt)}),X[Ne][Me]=dt}),X}},Mo={noAuto:()=>{Kt.autoReplaceSvg=!1,Kt.observeMutations=!1,os("noAuto")},config:Kt,dom:{i2svg:function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le?(os("beforeI2svg",P),wo("pseudoElements2svg",P),wo("i2svg",P)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:X}=P;!1===Kt.autoReplaceSvg&&(Kt.autoReplaceSvg=!0),Kt.observeMutations=!0,function xi(P){Le&&(zr?setTimeout(P,0):cr.push(P))}(()=>{vo({autoReplaceSvgRoot:X}),os("watch",P)})}},parse:{icon:P=>{if(null===P)return null;if("object"==typeof P&&P.prefix&&P.iconName)return{prefix:P.prefix,iconName:ni(P.prefix,P.iconName)||P.iconName};if(Array.isArray(P)&&2===P.length){const X=0===P[1].indexOf("fa-")?P[1].slice(3):P[1],Z=ao(P[0]);return{prefix:Z,iconName:ni(Z,X)||X}}if("string"==typeof P&&(P.indexOf("".concat(Kt.cssPrefix,"-"))>-1||P.match(it))){const X=Vo(P.split(" "),{skipLookups:!0});return{prefix:X.prefix||Qi(),iconName:ni(X.prefix,X.iconName)||X.iconName}}if("string"==typeof P){const X=Qi();return{prefix:X,iconName:ni(X,P)||P}}}},library:za,findIconDefinition:lo,toHtml:Pr},vo=function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:X=je}=P;(Object.keys(rn.styles).length>0||Kt.autoFetchSvg)&&Le&&Kt.autoReplaceSvg&&Mo.dom.i2svg({node:X})};function ri(P,X){return Object.defineProperty(P,"abstract",{get:X}),Object.defineProperty(P,"html",{get:function(){return P.abstract.map(Z=>Pr(Z))}}),Object.defineProperty(P,"node",{get:function(){if(!Le)return;const Z=je.createElement("div");return Z.innerHTML=P.html,Z.children}}),P}function Zo(P){const{icons:{main:X,mask:Z}
vendor: 4,405 bytes, line 1
1,prefix:oe,iconName:ve,transform:Ne,symbol:Me,title:dt,maskId:Jt,titleId:bn,extra:un,watchable:hr=!1}=P,{width:Cr,height:Er}=Z.found?Z:X,Ei=ce.includes(oe),Oo=[Kt.replacementClass,ve?"".concat(Kt.cssPrefix,"-").concat(ve):""].filter(As=>-1===un.classes.indexOf(As)).filter(As=>""!==As||!!As).concat(un.classes).join(" ");let $n={children:[],attributes:b(b({},un.attributes),{},{"data-prefix":oe,"data-icon":ve,class:Oo,role:un.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Cr," ").concat(Er)})};const bs=Ei&&!~un.classes.indexOf("fa-fw")?{width:"".concat(Cr/Er*16*.0625,"em")}:{};hr&&($n.attributes[_n]=""),dt&&($n.children.push({tag:"title",attributes:{id:$n.attributes["aria-labelledby"]||"title-".concat(bn||yn())},children:[dt]}),delete $n.attributes.title);const vs=b(b({},$n),{},{prefix:oe,iconName:ve,main:X,mask:Z,maskId:Jt,transform:Ne,symbol:Me,styles:b(b({},bs),un.styles)}),{children:Ro,attributes:ei}=Z.found&&X.found?wo("generateAbstractMask",vs)||{children:[],attributes:{}}:wo("generateAbstractIcon",vs)||{children:[],attributes:{}};return vs.children=Ro,vs.attributes=ei,Me?function Ka(P){let{prefix:X,iconName:Z,children:oe,attributes:ve,symbol:Ne}=P;const Me=!0===Ne?"".concat(X,"-").concat(Kt.cssPrefix,"-").concat(Z):Ne;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:b(b({},ve),{},{id:Me}),children:oe}]}]}(vs):function bc(P){let{children:X,main:Z,mask:oe,attributes:ve,styles:Ne,transform:Me}=P;if($r(Me)&&Z.found&&!oe.found){const{width:dt,height:Jt}=Z,bn={x:dt/Jt/2,y:.5};ve.style=Nn(b(b({},Ne),{},{"transform-origin":"".concat(bn.x+Me.x/16,"em ").concat(bn.y+Me.y/16,"em")}))}return[{tag:"svg",attributes:ve,children:X}]}(vs)}function Ma(P){const{content:X,width:Z,height:oe,transform:ve,title:Ne,extra:Me,watchable:dt=!1}=P,Jt=b(b(b({},Me.attributes),Ne?{title:Ne}:{}),{},{class:Me.classes.join(" ")});dt&&(Jt[_n]="");const bn=b({},Me.styles);$r(ve)&&(bn.transform=function Qn(P){let{transform:X,width:Z=Vn,height:oe=Vn,startCentered:ve=!1}=P,Ne="";return Ne+=ve&&ut?"translate(".concat(X.x/go-Z/2,"em, ").concat(X.y/go-oe/2,"em) "):ve?"translate(calc(-50% + ".concat(X.x/go,"em), calc(-50% + ").concat(X.y/go,"em)) "):"translate(".concat(X.x/go,"em, ").concat(X.y/go,"em) "),Ne+="scale(".concat(X.size/go*(X.flipX?-1:1),", ").concat(X.size/go*(X.flipY?-1:1),") "),Ne+="rotate(".concat(X.rotate,"deg) "),Ne}({transform:ve,startCentered:!0,width:Z,height:oe}),bn["-webkit-transform"]=bn.transform);const un=Nn(bn);un.length>0&&(Jt.style=un);const hr=[];return hr.push({tag:"span",attributes:Jt,children:[X]}),Ne&&hr.push({tag:"span",attributes:{class:"sr-only"},children:[Ne]}),hr}const{styles:js}=rn;function Ac(P){const X=P[0],Z=P[1],[oe]=P.slice(4);let ve=null;return ve=Array.isArray(oe)?{tag:"g",attributes:{class:"".concat(Kt.cssPrefix,"-").concat(Br.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Kt.cssPrefix,"-").concat(Br.SECONDARY),fill:"currentColor",d:oe[0]}},{tag:"path",attributes:{class:"".concat(Kt.cssPrefix,"-").concat(Br.PRIMARY),fill:"currentColor",d:oe[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:oe}},{found:!0,width:X,height:Z,icon:ve}}const yi={found:!1,width:512,height:512};function Go(P,X){let Z=X;return"fa"===X&&null!==Kt.styleDefault&&(X=Qi()),new Promise((oe,ve)=>{if("fa"===Z){const Ne=Bs(P)||{};P=Ne.iconName||P,X=Ne.prefix||X}if(P&&X&&js[X]&&js[X][P])return oe(Ac(js[X][P]));(function qr(P,X){!Mr&&!Kt.showMissingIcons&&P&&console.error('Icon with name "'.concat(P,'" and prefix "').concat(X,'" is missing.'))})(P,X),oe(b(b({},yi),{},{icon:Kt.showMissingIcons&&P&&wo("missingIconAbstract")||{}}))})}const uo=()=>{},Oa=Kt.measurePerformance&&Zt&&Zt.mark&&Zt.measure?Zt:{mark:uo,measure:uo},Jr='FA "6.7.2"',fi=P=>{Oa.mark("".concat(Jr," ").concat(P," ends")),Oa.measure("".concat(Jr," ").concat(P),"".concat(Jr," ").concat(P," begins"),"".concat(Jr," ").concat(P," ends"))};var $c={begin:P=>(Oa.mark("".concat(Jr," ").concat(P," begins")),()=>fi(P)),end:fi};const $o=()=>{};function Wa(P){return"string"==typeof(P.getAttribute?P.getAttribute(_n):null)}function aa(P){return je.createElementNS("http://www.w3.org/2000/svg",P)}function ca(P){return je.createElement(P)}function H(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:Z=("svg"===P.tag?aa:ca)}=X;if("string"==typeof P)return je.createTextNode(P);const oe=Z(P.tag);
vendor: 4,605 bytes, line 1
1return Object.keys(P.attributes||[]).forEach(function(Ne){oe.setAttribute(Ne,P.attributes[Ne])}),(P.children||[]).forEach(function(Ne){oe.appendChild(H(Ne,{ceFn:Z}))}),oe}const M={replace:function(P){const X=P[0];if(X.parentNode)if(P[1].forEach(Z=>{X.parentNode.insertBefore(H(Z),X)}),null===X.getAttribute(_n)&&Kt.keepOriginalSource){let Z=je.createComment(function G(P){let X=" ".concat(P.outerHTML," ");return X="".concat(X,"Font Awesome fontawesome.com "),X}(X));X.parentNode.replaceChild(Z,X)}else X.remove()},nest:function(P){const X=P[0],Z=P[1];if(~ot(X).indexOf(Kt.replacementClass))return M.replace(P);const oe=new RegExp("".concat(Kt.cssPrefix,"-.*"));if(delete Z[0].attributes.id,Z[0].attributes.class){const Ne=Z[0].attributes.class.split(" ").reduce((Me,dt)=>(dt===Kt.replacementClass||dt.match(oe)?Me.toSvg.push(dt):Me.toNode.push(dt),Me),{toNode:[],toSvg:[]});Z[0].attributes.class=Ne.toSvg.join(" "),0===Ne.toNode.length?X.removeAttribute("class"):X.setAttribute("class",Ne.toNode.join(" "))}const ve=Z.map(Ne=>Pr(Ne)).join("\n");X.setAttribute(_n,""),X.innerHTML=ve}};function re(P){P()}function we(P,X){const Z="function"==typeof X?X:$o;if(0===P.length)Z();else{let oe=re;Kt.mutateApproach===is&&(oe=lt.requestAnimationFrame||re),oe(()=>{const ve=function ps(){return!0===Kt.autoReplaceSvg?M.replace:M[Kt.autoReplaceSvg]||M.replace}(),Ne=$c.begin("mutate");P.map(ve),Ne(),Z()})}}let Sn=!1;function ir(){Sn=!0}function gs(){Sn=!1}let ms=null;function fo(P){if(!wt||!Kt.observeMutations)return;const{treeCallback:X=$o,nodeCallback:Z=$o,pseudoElementsCallback:oe=$o,observeMutationsRoot:ve=je}=P;ms=new wt(Ne=>{if(Sn)return;const Me=Qi();U(Ne).forEach(dt=>{if("childList"===dt.type&&dt.addedNodes.length>0&&!Wa(dt.addedNodes[0])&&(Kt.searchPseudoElements&&oe(dt.target),X(dt.target)),"attributes"===dt.type&&dt.target.parentNode&&Kt.searchPseudoElements&&oe(dt.target.parentNode),"attributes"===dt.type&&Wa(dt.target)&&~kn.indexOf(dt.attributeName))if("class"===dt.attributeName&&function Ya(P){const X=P.getAttribute?P.getAttribute(Di):null,Z=P.getAttribute?P.getAttribute(mi):null;return X&&Z}(dt.target)){const{prefix:Jt,iconName:bn}=Vo(ot(dt.target));dt.target.setAttribute(Di,Jt||Me),bn&&dt.target.setAttribute(mi,bn)}else(function Jo(P){return P&&P.classList&&P.classList.contains&&P.classList.contains(Kt.replacementClass)})(dt.target)&&Z(dt.target)})}),Le&&ms.observe(ve,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Li(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:Z,prefix:oe,rest:ve}=function Ra(P){const X=P.getAttribute("data-prefix"),Z=P.getAttribute("data-icon"),oe=void 0!==P.innerText?P.innerText.trim():"";let ve=Vo(ot(P));return ve.prefix||(ve.prefix=Qi()),X&&Z&&(ve.prefix=X,ve.iconName=Z),ve.iconName&&ve.prefix||(ve.prefix&&oe.length>0&&(ve.iconName=function na(P,X){return(Ic[P]||{})[X]}(ve.prefix,P.innerText)||_i(ve.prefix,mr(P.innerText))),!ve.iconName&&Kt.autoFetchSvg&&P.firstChild&&P.firstChild.nodeType===Node.TEXT_NODE&&(ve.iconName=P.firstChild.data)),ve}(P),Ne=function $d(P){const X=U(P.attributes).reduce((ve,Ne)=>("class"!==ve.name&&"style"!==ve.name&&(ve[Ne.name]=Ne.value),ve),{}),Z=P.getAttribute("title"),oe=P.getAttribute("data-fa-title-id");return Kt.autoA11y&&(Z?X["aria-labelledby"]="".concat(Kt.replacementClass,"-title-").concat(oe||yn()):(X["aria-hidden"]="true",X.focusable="false")),X}(P),Me=Vs("parseNodeAttributes",{},P);let dt=X.styleParser?function la(P){const X=P.getAttribute("style");let Z=[];return X&&(Z=X.split(";").reduce((oe,ve)=>{const Ne=ve.split(":"),Me=Ne[0],dt=Ne.slice(1);return Me&&dt.length>0&&(oe[Me]=dt.join(":").trim()),oe},{})),Z}(P):[];return b({iconName:Z,title:P.getAttribute("title"),titleId:P.getAttribute("data-fa-title-id"),prefix:oe,transform:Hi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:ve,styles:dt,attributes:Ne}},Me)}const{styles:Dh}=rn;function Xa(P){const X="nest"===Kt.autoReplaceSvg?Li(P,{styleParser:!1}):Li(P);return~X.extra.classes.indexOf(he)?wo("generateLayersText",P,X):wo("generateSvgReplacementMutation",P,X)}function wh(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Le)return Promise.resolve();const Z=je.documentElement.classList,oe=un=>Z.add("".concat(ci,"-").concat(un)),ve=un=>Z.remove("".concat(ci,"-").concat(un)),Ne=Kt.autoFetchSvg?function Dc(){return[...xe,...ar]}():Be.concat(Object.keys(Dh));Ne.includes("fa")||Ne.push("fa");const Me=[".".concat(he,":not([").concat(_n,"])")].concat(Ne.map(un=>".".concat(un,":not([").concat(_n,"])"))).join(", ");
vendor: 4,607 bytes, line 1
1if(0===Me.length)return Promise.resolve();let dt=[];try{dt=U(P.querySelectorAll(Me))}catch{}if(!(dt.length>0))return Promise.resolve();oe("pending"),ve("complete");const Jt=$c.begin("onTree"),bn=dt.reduce((un,hr)=>{try{const Cr=Xa(hr);Cr&&un.push(Cr)}catch(Cr){Mr||"MissingIcon"===Cr.name&&console.error(Cr)}return un},[]);return new Promise((un,hr)=>{Promise.all(bn).then(Cr=>{we(Cr,()=>{oe("active"),oe("complete"),ve("pending"),"function"==typeof X&&X(),Jt(),un()})}).catch(Cr=>{Jt(),hr(Cr)})})}function Mh(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Xa(P).then(Z=>{Z&&we([Z],X)})}const zd=function(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:Z=Hi,symbol:oe=!1,mask:ve=null,maskId:Ne=null,title:Me=null,titleId:dt=null,classes:Jt=[],attributes:bn={},styles:un={}}=X;if(!P)return;const{prefix:hr,iconName:Cr,icon:Er}=P;return ri(b({type:"icon"},P),()=>(os("beforeDOMElementCreation",{iconDefinition:P,params:X}),Kt.autoA11y&&(Me?bn["aria-labelledby"]="".concat(Kt.replacementClass,"-title-").concat(dt||yn()):(bn["aria-hidden"]="true",bn.focusable="false")),Zo({icons:{main:Ac(Er),mask:ve?Ac(ve.icon):{found:!1,width:null,height:null,icon:{}}},prefix:hr,iconName:Cr,transform:b(b({},Hi),Z),symbol:oe,title:Me,maskId:Ne,titleId:dt,extra:{attributes:bn,styles:un,classes:Jt}})))};var Kd={mixout(){return{icon:(P=zd,function(X){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const oe=(X||{}).icon?X:lo(X||{});let{mask:ve}=Z;return ve&&(ve=(ve||{}).icon?ve:lo(ve||{})),P(oe,b(b({},Z),{},{mask:ve}))})};var P},hooks:()=>({mutationObserverCallbacks:P=>(P.treeCallback=wh,P.nodeCallback=Mh,P)}),provides(P){P.i2svg=function(X){const{node:Z=je,callback:oe=(()=>{})}=X;return wh(Z,oe)},P.generateSvgReplacementMutation=function(X,Z){const{iconName:oe,title:ve,titleId:Ne,prefix:Me,transform:dt,symbol:Jt,mask:bn,maskId:un,extra:hr}=Z;return new Promise((Cr,Er)=>{Promise.all([Go(oe,Me),bn.iconName?Go(bn.iconName,bn.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(Ei=>{let[Oo,$n]=Ei;Cr([X,Zo({icons:{main:Oo,mask:$n},prefix:Me,iconName:oe,transform:dt,symbol:Jt,maskId:un,title:ve,titleId:Ne,extra:hr,watchable:!0})])}).catch(Er)})},P.generateAbstractIcon=function(X){let{children:Z,attributes:oe,main:ve,transform:Ne,styles:Me}=X;const dt=Nn(Me);let Jt;return dt.length>0&&(oe.style=dt),$r(Ne)&&(Jt=wo("generateAbstractTransformGrouping",{main:ve,transform:Ne,containerWidth:ve.width,iconWidth:ve.width})),Z.push(Jt||ve.icon),{children:Z,attributes:oe}}}},Wd={mixout:()=>({layer(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:Z=[]}=X;return ri({type:"layer"},()=>{os("beforeDOMElementCreation",{assembler:P,params:X});let oe=[];return P(ve=>{Array.isArray(ve)?ve.map(Ne=>{oe=oe.concat(Ne.abstract)}):oe=oe.concat(ve.abstract)}),[{tag:"span",attributes:{class:["".concat(Kt.cssPrefix,"-layers"),...Z].join(" ")},children:oe}]})}})},Yd={mixout:()=>({counter(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:Z=null,classes:oe=[],attributes:ve={},styles:Ne={}}=X;return ri({type:"counter",content:P},()=>(os("beforeDOMElementCreation",{content:P,params:X}),function Ss(P){const{content:X,title:Z,extra:oe}=P,ve=b(b(b({},oe.attributes),Z?{title:Z}:{}),{},{class:oe.classes.join(" ")}),Ne=Nn(oe.styles);Ne.length>0&&(ve.style=Ne);const Me=[];return Me.push({tag:"span",attributes:ve,children:[X]}),Z&&Me.push({tag:"span",attributes:{class:"sr-only"},children:[Z]}),Me}({content:P.toString(),title:Z,extra:{attributes:ve,styles:Ne,classes:["".concat(Kt.cssPrefix,"-layers-counter"),...oe]}})))}})},Pu={mixout:()=>({text(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:Z=Hi,title:oe=null,classes:ve=[],attributes:Ne={},styles:Me={}}=X;return ri({type:"text",content:P},()=>(os("beforeDOMElementCreation",{content:P,params:X}),Ma({content:P,transform:b(b({},Hi),Z),title:oe,extra:{attributes:Ne,styles:Me,classes:["".concat(Kt.cssPrefix,"-layers-text"),...ve]}})))}}),provides(P){P.generateLayersText=function(X,Z){const{title:oe,transform:ve,extra:Ne}=Z;let Me=null,dt=null;if(ut){const Jt=parseInt(getComputedStyle(X).fontSize,10),bn=X.getBoundingClientRect();Me=bn.width/Jt,dt=bn.height/Jt}return Kt.autoA11y&&!oe&&(Ne.attributes["aria-hidden"]="true"),Promise.resolve([X,Ma({content:X.innerHTML,width:Me,height:dt,transform:ve,title:oe,extra:Ne,watchable:!0})])}}};const wr=new RegExp('"',"ug"),Gi=[1105920,1112319],Ai=b(b(b(b({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"}
vendor: 4,272 bytes, line 1
1,"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),ss=Object.keys(Ai).reduce((P,X)=>(P[X.toLowerCase()]=Ai[X],P),{}),zo=Object.keys(ss).reduce((P,X)=>{const Z=ss[X];return P[X]=Z[900]||[...Object.entries(Z)][0][1],P},{});function Na(P,X){const Z="".concat(Ni).concat(X.replace(":","-"));return new Promise((oe,ve)=>{if(null!==P.getAttribute(Z))return oe();const Me=U(P.children).filter(Cr=>Cr.getAttribute(Fr)===X)[0],dt=lt.getComputedStyle(P,X),Jt=dt.getPropertyValue("font-family"),bn=Jt.match($e),un=dt.getPropertyValue("font-weight"),hr=dt.getPropertyValue("content");if(Me&&!bn)return P.removeChild(Me),oe();if(bn&&"none"!==hr&&""!==hr){const Cr=dt.getPropertyValue("content");let Er=function Rl(P,X){const Z=P.replace(/^['"]|['"]$/g,"").toLowerCase(),oe=parseInt(X),ve=isNaN(oe)?"normal":oe;return(ss[Z]||{})[ve]||zo[Z]}(Jt,un);const{value:Ei,isSecondary:Oo}=function Oh(P){const X=P.replace(wr,""),Z=function Dr(P,X){const Z=P.length;let ve,oe=P.charCodeAt(X);return oe>=55296&&oe<=56319&&Z>X+1&&(ve=P.charCodeAt(X+1),ve>=56320&&ve<=57343)?1024*(oe-55296)+ve-56320+65536:oe}(X,0),oe=Z>=Gi[0]&&Z<=Gi[1],ve=2===X.length&&X[0]===X[1];return{value:mr(ve?X[0]:X),isSecondary:oe||ve}}(Cr),$n=bn[0].startsWith("FontAwesome");let bs=_i(Er,Ei),vs=bs;if($n){const Ro=function Es(P){const X=Gc[P],Z=_i("fas",P);return X||(Z?{prefix:"fas",iconName:Z}:null)||{prefix:null,iconName:null}}(Ei);Ro.iconName&&Ro.prefix&&(bs=Ro.iconName,Er=Ro.prefix)}if(!bs||Oo||Me&&Me.getAttribute(Di)===Er&&Me.getAttribute(mi)===vs)oe();else{P.setAttribute(Z,vs),Me&&P.removeChild(Me);const Ro=function ii(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Hi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra:ei}=Ro;ei.attributes[Fr]=X,Go(bs,Er).then(As=>{const xl=Zo(b(b({},Ro),{},{icons:{main:As,mask:Ts()},prefix:Er,iconName:vs,extra:ei,watchable:!0})),$s=je.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===X?P.insertBefore($s,P.firstChild):P.appendChild($s),$s.outerHTML=xl.map(Ko=>Pr(Ko)).join("\n"),P.removeAttribute(Z),oe()}).catch(ve)}}else oe()})}function Rh(P){return Promise.all([Na(P,"::before"),Na(P,"::after")])}function Xd(P){return!(P.parentNode===document.head||~qn.indexOf(P.tagName.toUpperCase())||P.getAttribute(Fr)||P.parentNode&&"svg"===P.parentNode.tagName)}function ua(P){if(Le)return new Promise((X,Z)=>{const oe=U(P.querySelectorAll("*")).filter(Xd).map(Rh),ve=$c.begin("searchPseudoElements");ir(),Promise.all(oe).then(()=>{ve(),gs(),X()}).catch(()=>{ve(),gs(),Z()})})}let Pa=!1;const Kc=P=>P.toLowerCase().split(" ").reduce((Z,oe)=>{const ve=oe.toLowerCase().split("-"),Ne=ve[0];let Me=ve.slice(1).join("-");if(Ne&&"h"===Me)return Z.flipX=!0,Z;if(Ne&&"v"===Me)return Z.flipY=!0,Z;if(Me=parseFloat(Me),isNaN(Me))return Z;switch(Ne){case"grow":Z.size=Z.size+Me;break;case"shrink":Z.size=Z.size-Me;break;case"left":Z.x=Z.x-Me;break;case"right":Z.x=Z.x+Me;break;case"up":Z.y=Z.y-Me;break;case"down":Z.y=Z.y+Me;break;case"rotate":Z.rotate=Z.rotate+Me}return Z},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),da={x:0,y:0,width:"100%",height:"100%"};function xu(P){return P.attributes&&(P.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(P.attributes.fill="black"),P}function Wc(P){return"g"===P.tag?P.children:[P]}!function ia(P,X){let{mixoutsTo:Z}=X;Zn=P,jo={},Object.keys(Is).forEach(oe=>{-1===ra.indexOf(oe)&&delete Is[oe]}),Zn.forEach(oe=>{const ve=oe.mixout?oe.mixout():{};if(Object.keys(ve).forEach(Ne=>{"function"==typeof ve[Ne]&&(Z[Ne]=ve[Ne]),"object"==typeof ve[Ne]&&Object.keys(ve[Ne]).forEac
1h(Me=>{Z[Ne]||(Z[Ne]={}),Z[Ne][Me]=ve[Ne][Me]})}),oe.hooks){const Ne=oe.hooks();Object.keys(Ne).forEach(Me=>{jo[Me]||(jo[Me]=[]),jo[Me].push(Ne[Me])})}oe.provides&&oe.provides(Is)})}([yt,Kd,Wd,Yd,Pu,{hooks:()=>({mutationObserverCallbacks:P=>(P.pseudoElementsCallback=ua,P)}),provides(P){P.pseudoElements2svg=function(X){const{node:Z=je}=X;Kt.searchPseudoElements&&ua(Z)}}},{mixout:()=>({dom:{unwatch(){ir(),Pa=!0}}}),hooks:()=>({bootstrap(){fo(Vs("mutationObserverCallbacks",{}))},noAuto(){!function zc(){ms&&ms.disconnect()}()},watch(P){const{observeMutationsRoot:X}=P;Pa?gs():fo(Vs("mutationObserverCallbacks",{observeMutationsRoot:X}))}})},{mixout:()=>({parse:{transform:P=>Kc(P)}}),hooks:()=>({parseNodeAttributes(P,X){const Z=X.getAttribute("data-fa-transform");return Z&&(P.transform=Kc(Z)),P}}),provides(P){P.generateAbstractTransformGrouping=function(X){let{main:Z,transform:oe,containerWidth:ve,iconWidth:Ne}=X;const Me={transform:"translate(".concat(ve/2," 256)")},dt="translate(".concat(32*oe.x,", ").concat(32*oe.y,") "),Jt="scale(".concat(oe.size/16*(oe.flipX?-1:1),", ").concat(oe.size/16*(oe.flipY?-1:1),") "),bn="rotate(".concat(oe.rotate," 0 0)"),Cr={outer:Me,inner:{transform:"".concat(dt," ").concat(Jt," ").concat(bn)},path:{transform:"translate(".concat(Ne/2*-1," -256)")}};return{tag:"g",attributes:b({},Cr.outer),children:[{tag:"g",attributes:b({},Cr.inner),children:[{tag:Z.icon.tag,children:Z.icon.children,attributes:b(b({},Z.icon.attributes),Cr.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(P,X){const Z=X.getAttribute("data-fa-mask"),oe=Z?Vo(Z.split(" ").map(ve=>ve.trim())):Ts();return oe.prefix||(oe.prefix=Qi()),P.mask=oe,P.maskId=X.getAttribute("data-fa-mask-id"),P}}),provides(P){P.generateAbstractMask=function(X){let{children:Z,attributes:oe,main:ve,mask:Ne,maskId:Me,transform:dt}=X;const{width:Jt,icon:bn}=ve,{width:un,icon:hr}=Ne,Cr=function Do(P){let{transform:X,containerWidth:Z,iconWidth:oe}=P;const ve={transform:"translate(".concat(Z/2," 256)")},Ne="translate(".concat(32*X.x,", ").concat(32*X.y,") "),Me="scale(".concat(X.size/16*(X.flipX?-1:1),", ").concat(X.size/16*(X.flipY?-1:1),") "),dt="rotate(".concat(X.rotate," 0 0)");return{outer:ve,inner:{transform:"".concat(Ne," ").concat(Me," ").concat(dt)},path:{transform:"translate(".concat(oe/2*-1," -256)")}}}({transform:dt,containerWidth:un,iconWidth:Jt}),Er={tag:"rect",attributes:b(b({},da),{},{fill:"white"})},Ei=bn.children?{children:bn.children.map(xu)}:{},Oo={tag:"g",attributes:b({},Cr.inner),children:[xu(b({tag:bn.tag,attributes:b(b({},bn.attributes),Cr.path)},Ei))]},$n={tag:"g",attributes:b({},Cr.outer),children:[Oo]},bs="mask-".concat(Me||yn()),vs="clip-".concat(Me||yn()),Ro={tag:"mask",attributes:b(b({},da),{},{id:bs,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Er,$n]},ei={tag:"defs",children:[{tag:"clipPath",attributes:{id:vs},children:Wc(hr)},Ro]};return Z.push(ei,{tag:"rect",attributes:b({fill:"currentColor","clip-path":"url(#".concat(vs,")"),mask:"url(#".concat(bs,")")},da)}),{children:Z,attributes:oe}}}},{provides(P){let X=!1;lt.matchMedia&&(X=lt.matchMedia("(prefers-reduced-motion: reduce)").matches),P.missingIconAbstract=function(){const Z=[],oe={fill:"currentColor"},ve={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Z.push({tag:"path",attributes:b(b({},oe),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2
1-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const Ne=b(b({},ve),{},{attributeName:"opacity"}),Me={tag:"circle",attributes:b(b({},oe),{},{cx:"256",cy:"364",r:"28"}),children:[]};return X||Me.children.push({tag:"animate",attributes:b(b({},ve),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:b(b({},Ne),{},{values:"1;0;1;1;0;1;"})}),Z.push(Me),Z.push({tag:"path",attributes:b(b({},oe),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:X?[]:[{tag:"animate",attributes:b(b({},Ne),{},{values:"1;0;0;0;0;1;"})}]}),X||Z.push({tag:"path",attributes:b(b({},oe),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:b(b({},Ne),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Z}}}},{hooks:()=>({parseNodeAttributes(P,X){const Z=X.getAttribute("data-fa-symbol");return P.symbol=null!==Z&&(""===Z||Z),P}})}],{mixoutsTo:Mo});const Wr=Mo.parse,Qd=Mo.icon;var ka=D(345);const Zd=["*"],Qa=P=>{const X={[`fa-${P.animation}`]:null!=P.animation&&!P.animation.startsWith("spin"),"fa-spin":"spin"===P.animation||"spin-reverse"===P.animation,"fa-spin-pulse":"spin-pulse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-spin-reverse":"spin-reverse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-pulse":"spin-pulse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-fw":P.fixedWidth,"fa-border":P.border,"fa-inverse":P.inverse,"fa-layers-counter":P.counter,"fa-flip-horizontal":"horizontal"===P.flip||"both"===P.flip,"fa-flip-vertical":"vertical"===P.flip||"both"===P.flip,[`fa-${P.size}`]:null!==P.size,[`fa-rotate-${P.rotate}`]:null!==P.rotate,[`fa-pull-${P.pull}`]:null!==P.pull,[`fa-stack-${P.stackItemSize}`]:null!=P.stackItemSize};return Object.keys(X).map(Z=>X[Z]?Z:null).filter(Z=>Z)};let kl=(()=>{class P{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}static{this.\u0275fac=function(oe){return new(oe||P)}}static{this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),I=(()=>{class P{constructor(){this.definitions={}}addIcons(...Z){for(const oe of Z){oe.prefix in this.definitions||(this.definitions[oe.prefix]={}),this.definitions[oe.prefix][oe.iconName]=oe;for(const ve of oe.icon[2])"string"==typeof ve&&(this.definitions[oe.prefix][ve]=oe)}}addIconPacks(...Z){for(const oe of Z){const ve=Object.keys(oe).map(Ne=>oe[Ne]);this.addIcons(...ve)}}getIconDefinition(Z,oe){return Z in this.definitions&&oe in this.definitions[Z]?this.definitions[Z][oe]:null}static{this.\u0275fac=function(oe){return new(oe||P)}}static{this.\u0275prov=p.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),W=(()=>{class P{constructor(){this.stackItemSize="1x"}ngOnChanges(Z){if("size"in Z)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}static{this.\u0275fac=function(oe){return new(oe||P)}}static{this.\u0275dir=p.FsC({type:P,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},standalone:!0,features:[p.OA$]})}}return P})(),N=(()=>{class P{constructor(Z,oe){this.renderer=Z,this.elementRef=oe}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Z){"size"in Z&&(null!=Z.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Z.size.currentValue}`),null!=Z.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Z.size.previousValue}`))}static{this.\u0275fac=function(oe){return new(oe||P)(p.rXU(p.sFG),p.rXU(p.aKT))}}static{this.\u0275cmp=p.VBU({type:P,selectors:[["fa-stack"]],inputs:{size:"size"},standalone:!0,features:[p.OA$,p.aNF],ngContentSelectors:Zd,decls:1,vars:0,template:function(oe,ve){1&oe&&(p.NAR(),p.SdG(0))},encapsulation:2})}}return P})(),V=(()=>{class P{set spin(Z){this.animation=Z?"spin":void 0}set pulse(Z){this.animation=Z?"spin-pulse":void 0}constructor(Z,oe,ve,Ne,Me){this.sanitizer=Z,this.config=oe,this.iconLibrary=ve,this.stackItem=Ne,this.classes=[],null!=Me&&null==Ne&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(Z){if(null!=this.icon||null!=this.config.fallbackIcon){if(Z){const ve=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=ve){const Ne=this.buildParams();this.renderIcon(ve,Ne)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(Z){const oe=((P,X)=>(P=>void 0!==P.prefix&&void 0!==P.iconName)(P)?P:"string"==typeof P?{prefix:X,iconName:P}:{prefix:P[0],iconName:P[1]})(Z,this.config.defaultPrefix);return"icon"in oe?oe:this.iconLibrary.getIconDefinition(oe.prefix,oe.iconName)??((P=>{throw new Error(`Could not find icon with iconName=${P.iconName} and prefix=${P.prefix} in the icon library.`)})(oe),null)}buildParams(){const Z={flip:this.flip,animation:this.animation,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},oe="string"==typeof this.transform?Wr.transform(this.transform):this.transform;return{title:this.title,transform:oe,classes:[...Qa(Z),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(Z,oe){const ve=Qd(Z,oe);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(ve.html.join("\n"))}static{this.\u0275fac=function(oe){return new(oe||P)(p.rXU(ka.up),p.rXU(kl),p.rXU(I),p.rXU(W,8),p.rXU(N,8))}}static{this.\u0275cmp=p.VBU({type:P,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(oe,ve){2&oe&&(p.Mr5("innerHTML",ve.renderedIconHTML,p.npT),p.BMQ("title",ve.title))},inputs:{icon:"icon",title:"title",animation:"animation",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol
1:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},standalone:!0,features:[p.OA$,p.aNF],decls:0,vars:0,template:function(oe,ve){},encapsulation:2})}}return P})(),Xr=(()=>{class P{static{this.\u0275fac=function(oe){return new(oe||P)}}static{this.\u0275mod=p.$C({type:P})}static{this.\u0275inj=p.G2t({})}}return P})()},5779:(Lt,be,D)=>{D.d(be,{E:()=>z,Ei:()=>je,Gg:()=>wt,Rn:()=>L,TJ:()=>b,Y9:()=>et,Yj:()=>Zt,bg:()=>Q,r1:()=>Se,si:()=>Ie,td:()=>x,tl:()=>j,wi:()=>lt});var p=D(4438),u=D(1413),v=D(4420);const Y=["*"];var b=function(Le){return Le[Le.ACCEPT=0]="ACCEPT",Le[Le.REJECT=1]="REJECT",Le[Le.CANCEL=2]="CANCEL",Le}(b||{});let x=(()=>{class Le{requireConfirmationSource=new u.B;acceptConfirmationSource=new u.B;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(Ce){return this.requireConfirmationSource.next(Ce),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static \u0275fac=function(me){return new(me||Le)};static \u0275prov=p.jDH({token:Le,factory:Le.\u0275fac})}return Le})(),L=(()=>class Le{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),j=(()=>class Le{static AND="and";static OR="or"})(),z=(()=>{class Le{filter(Ce,me,ht,ge,Be){let pe=[];if(Ce)for(let ze of Ce)for(let tt of me){let He=v.BF.resolveFieldData(ze,tt);if(this.filters[ge](He,ht,Be)){pe.push(ze);break}}return pe}filters={startsWith:(Ce,me,ht)=>{if(null==me||""===me.trim())return!0;if(null==Ce)return!1;let ge=v.BF.removeAccents(me.toString()).toLocaleLowerCase(ht);return v.BF.removeAccents(Ce.toString()).toLocaleLowerCase(ht).slice(0,ge.length)===ge},contains:(Ce,me,ht)=>{if(null==me||"string"==typeof me&&""===me.trim())return!0;if(null==Ce)return!1;let ge=v.BF.removeAccents(me.toString()).toLocaleLowerCase(ht);return-1!==v.BF.removeAccents(Ce.toString()).toLocaleLowerCase(ht).indexOf(ge)},notContains:(Ce,me,ht)=>{if(null==me||"string"==typeof me&&""===me.trim())return!0;if(null==Ce)return!1;let ge=v.BF.removeAccents(me.toString()).toLocaleLowerCase(ht);return-1===v.BF.removeAccents(Ce.toString()).toLocaleLowerCase(ht).indexOf(ge)},endsWith:(Ce,me,ht)=>{if(null==me||""===me.trim())return!0;if(null==Ce)return!1;let ge=v.BF.removeAccents(me.toString()).toLocaleLowerCase(ht),Be=v.BF.removeAccents(Ce.toString()).toLocaleLowerCase(ht);return-1!==Be.indexOf(ge,Be.length-ge.length)},equals:(Ce,me,ht)=>null==me||"string"==typeof me&&""===me.trim()||null!=Ce&&(Ce.getTime&&me.getTime?Ce.getTime()===me.getTime():Ce==me||v.BF.removeAccents(Ce.toString()).toLocaleLowerCase(ht)==v.BF.removeAccents(me.toString()).toLocaleLowerCase(ht)),notEquals:(Ce,me,ht)=>!(null==me||"string"==typeof me&&""===me.trim()||null!=Ce&&(Ce.getTime&&me.getTime?Ce.getTime()===me.getTime():Ce==me||v.BF.removeAccents(Ce.toString()).toLocaleLowerCase(ht)==v.BF.removeAccents(me.toString()).toLocaleLowerCase(ht))),in:(Ce,me)=>{if(null==me||0===me.length)return!0;for(let ht=0;ht<me.length;ht++)if(v.BF.equals(Ce,me[ht]))return!0;return!1},between:(Ce,me)=>null==me||null==me[0]||null==me[1]||null!=Ce&&(Ce.getTime?me[0].getTime()<=Ce.getTime()&&Ce.getTime()<=me[1].getTime():me[0]<=Ce&&Ce<=me[1]),lt:(Ce,me,ht)=>null==me||null!=Ce&&(Ce.getTime&&me.getTime?Ce.getTime()<me.getTime():Ce<me),lte:(Ce,me,ht)=>null==me||null!=Ce&&(Ce.getTime&&me.getTime?Ce.getTime()<=me.getTime():Ce<=me),gt:(Ce,me,ht)=>null==me||null!=Ce&&(Ce.getTime&&me.getTime?Ce.getTime()>me.getTime():Ce>me),gte:(Ce,me,ht)=>null==me||null!=Ce&&(Ce.getTime&&me.getTime?Ce.getTime()>=me.getTime():Ce>=me),is:(Ce,me,ht)=>this.filters.equals(Ce,me,ht),isNot:(Ce,me,ht)=>this.filters.notEquals(Ce,me,ht),before:(Ce,me,ht)=>this.filters.lt(Ce,me,ht),after:(Ce,me,ht)=>this.filters.gt(Ce,me,ht),dateIs:(Ce,me)=>null==me||null!=Ce&&Ce.toDateString()===me.toDateString(),dateIsNot:(Ce,me)=>null==me||null!=Ce&&Ce.toDateString()!==me.toDateString(),dateBefore:(Ce,me)=>null==me||null!=Ce&&Ce.getTime()<me.getTime(),dateAfter:(Ce,me)=>{if(null==me)return!0;
1if(null==Ce)return!1;const ht=new Date(Ce);return ht.setHours(0,0,0,0),ht.getTime()>me.getTime()}};register(Ce,me){this.filters[Ce]=me}static \u0275fac=function(me){return new(me||Le)};static \u0275prov=p.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}return Le})(),Q=(()=>{class Le{messageSource=new u.B;clearSource=new u.B;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(Ce){Ce&&this.messageSource.next(Ce)}addAll(Ce){Ce&&Ce.length&&this.messageSource.next(Ce)}clear(Ce){this.clearSource.next(Ce||null)}static \u0275fac=function(me){return new(me||Le)};static \u0275prov=p.jDH({token:Le,factory:Le.\u0275fac})}return Le})(),Ie=(()=>{class Le{clickSource=new u.B;clickObservable=this.clickSource.asObservable();add(Ce){Ce&&this.clickSource.next(Ce)}static \u0275fac=function(me){return new(me||Le)};static \u0275prov=p.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}return Le})(),Se=(()=>{class Le{ripple=!1;inputStyle=(0,p.vPA)("outlined");overlayOptions={};csp=(0,p.vPA)({nonce:void 0});filterMatchModeOptions={text:[L.STARTS_WITH,L.CONTAINS,L.NOT_CONTAINS,L.ENDS_WITH,L.EQUALS,L.NOT_EQUALS],numeric:[L.EQUALS,L.NOT_EQUALS,L.LESS_THAN,L.LESS_THAN_OR_EQUAL_TO,L.GREATER_THAN,L.GREATER_THAN_OR_EQUAL_TO],date:[L.DATE_IS,L.DATE_IS_NOT,L.DATE_BEFORE,L.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new u.B;translationObserver=this.translationSource.asObservable();getTranslation(Ce){return this.translation[Ce]}setTranslation(Ce){this.translation={...this.translation,...Ce},this.translationSource.next(this.translation)}static \u0275fac=function(me){return new(me||Le)};static \u0275prov=p.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}return Le})(),et=(()=>{class Le{static \u0275fac=function(me){return new(me||Le)};static \u0275cmp=p.VBU({type:Le,selectors:[["p-header"]],standalone:!0,features:[p.aNF],ngContentSelectors:Y,decls:1,vars:0,template:function(me,ht){1&me&&(p.NAR(),p.SdG(0))},encapsulation:2})}return Le})(),lt=(()=>{class Le{static \u0275fac=function(me){return new(me||Le)};static \u0275cmp=p.VBU({type:Le,selectors:[["p-footer"]],standalone:!0,features:[p.aNF],ngContentSelectors:Y,decls:1,vars:0,template:function(me,ht){1&me&&(p.NAR(),p.SdG(0))},encapsulation:2})}return Le})(),je=(()=>{class Le{template;type;name;constructor(Ce){this.template=Ce}getType(){return this.name}static \u0275fac=function(me){return new(me||Le)(p.rXU(p.C4Q))};static \u0275dir=p.FsC({type:Le,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[p.Mj6.None,"pTemplate","name"]},standalone:!0})}return Le})(),wt=(()=>{class Le{static \u0275fac=function(me){return new(me||Le)};static \u0275mod=p.$C({type:Le});static \u0275inj=p.G2t({})}return Le})(),Zt=(()=>class Le{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";
1static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"})()},1880:(Lt,be,D)=>{D.d(be,{q:()=>Y,u:()=>b});var p=D(177),u=D(4438),v=D(1455);let Y=(()=>{class x{autofocus=!1;focused=!1;platformId=(0,u.WQX)(u.Agw);document=(0,u.WQX)(p.qQ);host=(0,u.WQX)(u.aKT);ngAfterContentChecked(){!1===this.autofocus?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){(0,p.UE)(this.platformId)&&this.autofocus&&setTimeout(()=>{const L=v.D.getFocusableElements(this.host?.nativeElement);0===L.length&&this.host.nativeElement.focus(),L.length>0&&L[0].focus(),this.focused=!0})}static \u0275fac=function(j){return new(j||x)};static \u0275dir=u.FsC({type:x,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:[u.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",u.L39]},standalone:!0,features:[u.GFd]})}return x})(),b=(()=>{class x{static \u0275fac=function(j){return new(j||x)};static \u0275mod=u.$C({type:x});static \u0275inj=u.G2t({})}return x})()},461:(Lt,be,D)=>{D.d(be,{h:()=>Y});var p=D(4438),u=D(4420);const v=["*"];let Y=(()=>{class b{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const R=u.BF.isEmpty(this.label);this.role=R?void 0:"img",this.ariaLabel=R?void 0:this.label,this.ariaHidden=R}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(L){return new(L||b)};static \u0275cmp=p.VBU({type:b,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[p.Mj6.HasDecoratorInputTransform,"spin","spin",p.L39],styleClass:"styleClass"},standalone:!0,features:[p.GFd,p.aNF],ngContentSelectors:v,decls:1,vars:0,template:function(L,j){1&L&&(p.NAR(),p.SdG(0))},encapsulation:2,changeDetection:0})}return b})()},1141:(Lt,be,D)=>{D.d(be,{$n:()=>ge,_f:()=>ht,tm:()=>Be});var p=D(177),u=D(4438),v=D(5779),Y=D(1880),b=D(1455),x=D(8757),R=D(563),L=D(4420);const j=["*"],z=pe=>({class:pe});function Q(pe,ze){1&pe&&u.eu8(0)}function Ie(pe,ze){if(1&pe&&u.nrm(0,"span",8),2&pe){const tt=u.XpG(3);u.Y8G("ngClass",tt.iconClass()),u.BMQ("aria-hidden",!0)("data-pc-section","loadingicon")}}function Re(pe,ze){if(1&pe&&u.nrm(0,"SpinnerIcon",9),2&pe){const tt=u.XpG(3);u.Y8G("styleClass",tt.spinnerIconClass())("spin",!0),u.BMQ("aria-hidden",!0)("data-pc-section","loadingicon")}}function Se(pe,ze){if(1&pe&&(u.qex(0),u.DNE(1,Ie,1,3,"span",6)(2,Re,1,4,"SpinnerIcon",7),u.bVm()),2&pe){const tt=u.XpG(2);u.R7$(),u.Y8G("ngIf",tt.loadingIcon),u.R7$(),u.Y8G("ngIf",!tt.loadingIcon)}}function et(pe,ze){}function lt(pe,ze){if(1&pe&&u.DNE(0,et,0,0,"ng-template",10),2&pe){const tt=u.XpG(2);u.Y8G("ngIf",tt.loadingIconTemplate)}}function je(pe,ze){if(1&pe&&(u.qex(0),u.DNE(1,Se,3,2,"ng-container",2)(2,lt,1,1,null,5),u.bVm()),2&pe){const tt=u.XpG();u.R7$(),u.Y8G("ngIf",!tt.loadingIconTemplate),u.R7$(),u.Y8G("ngTemplateOutlet",tt.loadingIconTemplate)("ngTemplateOutletContext",u.eq3(3,z,tt.iconClass()))}}function wt(pe,ze){if(1&pe&&u.nrm(0,"span",8),2&pe){const tt=u.XpG(2);u.Y8G("ngClass",tt.iconClass()),u.BMQ("data-pc-section","icon")}}function Zt(pe,ze){}function En(pe,ze){if(1&pe&&u.DNE(0,Zt,0,0,"ng-template",10),2&pe){const tt=u.XpG(2);u.Y8G("ngIf",!tt.icon&&tt.iconTemplate)}}function Le(pe,ze){if(1&pe&&(u.qex(0),u.DNE(1,wt,1,2,"span",6)(2,En,1,1,null,5),u.bVm()),2&pe){const tt=u.XpG();u.R7$(),u.Y8G("ngIf",tt.icon&&!tt.iconTemplate),u.R7$(),u.Y8G("ngTemplateOutlet",tt.iconTemplate)("ngTemplateOutletContext",u.eq3(3,z,tt.iconClass()))}}function ut(pe,ze){if(1&pe&&(u.j41(0,"span",11),u.EFF(1),u.k0s()),2&pe){const tt=u.XpG();u.BMQ("aria-hidden",tt.icon&&!tt.label)("data-pc-section","label"),u.R7$(),u.JRh(tt.label)}}function Ce(pe,ze){if(1&pe&&(u.j41(0,"span",8),u.EFF(1),u.k0s()),2&pe){const tt=u.XpG();u.HbH(tt.badgeClass),u.Y8G("ngClass",tt.badgeStyleClass()),u.BMQ("data-pc-section","badge"),u.R7$(),u.JRh(tt.badge)}}const me={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let ht=(()=>{class pe{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(tt){this._label=tt,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(tt){this._icon=tt,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(tt){this._loading=tt,this.initialized&&(this.updateIcon(),this.setStyleClass())}severity;raised=!1;rounded=!1;text=!1;outlined=!1;size=null;plain=!1;_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(me);constructor(tt,He){this.el=tt,this.document=He}ngAfterViewInit(){b.D.addMultipleClasses(this.htmlElement,this.get
1StyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const tt=[me.button,me.component];return this.icon&&!this.label&&L.BF.isEmpty(this.htmlElement.textContent)&&tt.push(me.iconOnly),this.loading&&(tt.push(me.disabled,me.loading),!this.icon&&this.label&&tt.push(me.labelOnly),this.icon&&!this.label&&!L.BF.isEmpty(this.htmlElement.textContent)&&tt.push(me.iconOnly)),this.text&&tt.push("p-button-text"),this.severity&&tt.push(`p-button-${this.severity}`),this.plain&&tt.push("p-button-plain"),this.raised&&tt.push("p-button-raised"),this.size&&tt.push(`p-button-${this.size}`),this.outlined&&tt.push("p-button-outlined"),this.rounded&&tt.push("p-button-rounded"),"small"===this.size&&tt.push("p-button-sm"),"large"===this.size&&tt.push("p-button-lg"),tt}setStyleClass(){const tt=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...tt)}createLabel(){if(!b.D.findSingle(this.htmlElement,".p-button-label")&&this.label){let He=this.document.createElement("span");this.icon&&!this.label&&He.setAttribute("aria-hidden","true"),He.className="p-button-label",He.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(He)}}createIcon(){if(!b.D.findSingle(this.htmlElement,".p-button-icon")&&(this.icon||this.loading)){let He=this.document.createElement("span");He.className="p-button-icon",He.setAttribute("aria-hidden","true");
1let st=this.label?"p-button-icon-"+this.iconPos:null;st&&b.D.addClass(He,st);let At=this.getIconClass();At&&b.D.addMultipleClasses(He,At),this.htmlElement.insertBefore(He,this.htmlElement.firstChild)}}updateLabel(){let tt=b.D.findSingle(this.htmlElement,".p-button-label");this.label?tt?tt.textContent=this.label:this.createLabel():tt&&this.htmlElement.removeChild(tt)}updateIcon(){let tt=b.D.findSingle(this.htmlElement,".p-button-icon"),He=b.D.findSingle(this.htmlElement,".p-button-label");tt?tt.className=this.iconPos?"p-button-icon "+(He?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon pi-spin "+(this.loadingIcon??"pi pi-spinner"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(He){return new(He||pe)(u.rXU(u.aKT),u.rXU(p.qQ))};static \u0275dir=u.FsC({type:pe,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading",severity:"severity",raised:[u.Mj6.HasDecoratorInputTransform,"raised","raised",u.L39],rounded:[u.Mj6.HasDecoratorInputTransform,"rounded","rounded",u.L39],text:[u.Mj6.HasDecoratorInputTransform,"text","text",u.L39],outlined:[u.Mj6.HasDecoratorInputTransform,"outlined","outlined",u.L39],size:"size",plain:[u.Mj6.HasDecoratorInputTransform,"plain","plain",u.L39]},standalone:!0,features:[u.GFd]})}return pe})(),ge=(()=>{class pe{el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;style;styleClass;badgeClass;ariaLabel;autofocus;onClick=new u.bkB;onFocus=new u.bkB;onBlur=new u.bkB;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(tt){this.el=tt}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,tt])=>!!tt).reduce((tt,[He])=>tt+` ${He}`,"p-button-loading-icon")}iconClass(){const tt={"p-button-icon":!0,"p-button-icon-left":"left"===this.iconPos&&this.label,"p-button-icon-right":"right"===this.iconPos&&this.label,"p-button-icon-top":"top"===this.iconPos&&this.label,"p-button-icon-bottom":"bottom"===this.iconPos&&this.label};return this.loading?tt[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]=!0:this.icon&&(tt[this.icon]=!0),tt}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":("top"===this.iconPos||"bottom"===this.iconPos)&&this.label,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&"left"===this.iconPos,"p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":"small"===this.size,"p-button-lg":"large"===this.size,"p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach(tt=>{switch(tt.getType()){case"content":default:this.contentTemplate=tt.template;break;case"icon":this.iconTemplate=tt.template;break;case"loadingicon":this.loadingIconTemplate=tt.template}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}focus(){this.el.nativeElement.firstChild.focus()}static \u0275fac=function(He){return new(He||pe)(u.rXU(u.aKT))};static \u0275cmp=u.VBU({type:pe,selectors:[["p-button"]],contentQueries:function(He,st,At){if(1&He&&u.wni(At,v.Ei,4),2&He){let gn;u.mGM(gn=u.lsd())&&(st.templates=gn)}},hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function(He,st){2&He&&u.AVh("p-disabled",st.disabled)},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[u.Mj6.HasDecoratorInputTransform,"disabled","disabled",u.L39],loading:[u.Mj6.HasDecoratorInputTransform,"loading","loading",u.L39],loadingIcon:"loadingIcon",raised:[u.Mj6.HasDecoratorInputTransform,"raised","raised",u.L39],rounded:[u.Mj6.HasDecoratorInputTransform,"rounded","rounded",u.L39],text:[u.Mj6.HasDecoratorInputTransform,"text","text",u.L39],plain:[u.Mj6.HasDecoratorInputTransform,"plain","plain",u.L39],severity:"severity",outlined:[u.Mj6.HasDecoratorInputTransform,"outlined","outlined",u.L39],link:[u.Mj6.HasDecoratorInputTransform,"link","link",u.L39],tabindex:[u.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",u.Udg],size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel",autofocus:[u.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",u.L39]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:j,decls:7,vars:14,consts:[["pRipple","","pAutoFocus","",3,"click","focus","blur","ngStyle","disabled","ngClass","autofocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[1,"p-button-label"]],template:function(He,st){1&He&&(u.NAR(),u.j41(0,"button",0),u.bIt("click",function(gn){return st.onClick.emit(gn)})("focus",function(gn){return st.onFocus.emit(gn)})("blur",function(gn){return st.onBlur.emit(gn)}),u.SdG(1),u.DNE(2,Q,1,0,"ng-container",1)(3,je,3,5,"ng-container",2)(4,Le,3,5,"ng-container",2)(5,ut,2,3,"span",3)(6,Ce,2,5,"span",4),u.k0s()),2&He&&(u.Y8G("ngStyle",st.style)("disabled",st.disabled||st.loading)("ngClass",st.buttonClass)("autofocus",st.autofocus),u.BMQ("type",st.type)("aria-label",st.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",st.tabindex),u.R7$(2),u.Y8G("ngTemplateOutlet",st.contentTemplate),u.R7$(),u.Y8G("ngIf",st.loading),u.R7$(),u.Y8G("ngIf",!st.loading),u.R7$(),u.Y8G("ngIf",!st.contentTemplate&&st.label),u.R7$(),u.Y8G("ngIf",!st.contentTemplate&&st.badge))},dependencies:[p.bT,p.T3,p.B3,p.YU,R.n,Y.q,x.N],encapsulation:2,changeDetection:0})}return pe})(),Be=(()=>{class pe{static \u0275fac=function(He){return new(He||pe)};static \u0275mod=u.$C({type:pe});static \u0275inj=u.G2t({imports:[ge,v.Gg]})}return pe})()},4799:(Lt,be,D)=>{D.d(be,{F:()=>Si,T:()=>vn});var p=D(9969),u=D(177),v=D(4438),Y=D(5779),b=D(1141),x=D(1455),R=D(3306),L=D(1512),j=D(563),z=D(4420);const Q=["content"],Ie=[[["p-footer"]]],Re=["p-footer"],Se=_t=>({"p-dialog p-confirm-dialog p-component":!0,"p-dialog-rtl":_t}),et=(_t,Vn)=>({transform:_t,transition:Vn}),lt=_t=>({value:"visible",params:_t}),je=_t=>({$implicit:_t}),wt=()=>({"p-dialog-header-icon p-dialog-header-close p-link":!0});function Zt(_t,Vn){1&_t&&v.eu8(0)}function En(_t,Vn){if(1&_t&&(v.qex(0),v.DNE(1,Zt,1,0,"ng-container",7),v.bVm()),2&_t){const Tt=v.XpG(3);v.R7$(),v.Y8G("ngTemplateOutlet",Tt.headlessTemplate)("ngTemplateOutletContext",v.eq3(2,je,Tt.confirmation))}}function Le(_t,Vn){1&_t&&v.eu8(0)}function ut(_t,Vn){if(1&_t&&(v.j41(0,"div",14),v.DNE(1,Le,1,0,"ng-container",15),v.k0s()),2&_t){const Tt=v.XpG(4);v.R7$(),v.Y8G("ngTemplateOutlet",Tt.headerTemplate)}}function Ce(_t,Vn){if(1&_t&&(v.j41(0,"span",19),v.EFF(1),v.k0s()),2&_t){const Tt=v.XpG(5);v.Y8G("id",Tt.ariaLabelledBy),v.R7$(),v.JRh(Tt.option("header"))}}function me(_t,Vn){if(1&_t){const Tt=v.RV6();v.j41(0,"button",20),v.bIt("click",function(_n){v.eBV(Tt);const Fr=v.XpG(5);return v.Njj(Fr.close(_n))})("keydown.enter",function(_n){v.eBV(Tt);const Fr=v.XpG(5);return v.Njj(Fr.close(_n))}),v.nrm(1,"TimesIcon"),v.k0s()}if(2&_t){const Tt=v.XpG(5);v.Y8G("ngClass",v.lJ4(2,wt)),v.BMQ("aria-label",Tt.closeAriaLabel)}}function ht(_t,Vn){if(1&_t&&(v.j41(0,"div",14),v.DNE(1,Ce,2,2,"span",16),v.j41(2,"div",17),v.DNE(3,me,2,3,"button",18),v.k0s()()),2&_t){const Tt=v.XpG(4);v.R7$(),v.Y8G("ngIf",Tt.option("header")),v.R7$(2),v.Y8G("ngIf",Tt.closable)}}function ge(_t,Vn){if(1&_t&&v.nrm(0,"i",3),2&_t){const Tt=v.XpG(4);v.HbH(Tt.option("icon")),v.Y8G("ngClass","p-confirm-dialog-icon")}}function Be(_t,Vn){}function pe(_t,Vn){1&_t&&v.DNE(0,Be,0,0,"ng-template")}function ze(_t,Vn){if(1&_t&&(v.qex(0),v.DNE(1,pe,1,0,null,15),v.bVm()),2&_t){const Tt=v.XpG(4);v.R7$(),v.Y8G("ngTemplateOutlet",Tt.iconTemplate)}}function tt(_t,Vn){if(1&_t&&v.nrm(0,"span",21),2&_t){const Tt=v.XpG(4);v.Y8G("innerHTML",Tt.option("message"),v.npT)}}function He(_t,Vn){}function st(_t,Vn){1&_t&&v.DNE(0,He,0,0,"ng-template")}function At(_t,Vn){if(1&_t&&(v.qex(0),v.DNE(1,st,1,0,null,7),v.bVm()),2&_t){const Tt=v.XpG(4);v.R7$(),v.Y8G("ngTemplateOutlet",Tt.messageTemplate)("ngTemplateOutletContext",v.eq3(2,je,Tt.confirmation))}}function gn(_t,Vn){1&_t&&v.eu8(0)}function fn(_t,Vn){if(1&_t&&(v.j41(0,"div",22),v.SdG(1),v.DNE(2,g
1n,1,0,"ng-container",15),v.k0s()),2&_t){const Tt=v.XpG(4);v.R7$(2),v.Y8G("ngTemplateOutlet",Tt.footerTemplate)}}function ln(_t,Vn){if(1&_t&&v.nrm(0,"i"),2&_t){const Tt=v.XpG(7);v.HbH(Tt.option("rejectIcon"))}}function xe(_t,Vn){1&_t&&v.nrm(0,"TimesIcon",28),2&_t&&v.Y8G("styleClass","p-button-icon-left")}function ne(_t,Vn){if(1&_t&&(v.qex(0),v.DNE(1,ln,1,2,"i",26)(2,xe,1,1,"TimesIcon",27),v.bVm()),2&_t){const Tt=v.XpG(6);v.R7$(),v.Y8G("ngIf",Tt.option("rejectIcon")),v.R7$(),v.Y8G("ngIf",!Tt.option("rejectIcon"))}}function F(_t,Vn){}function te(_t,Vn){1&_t&&v.DNE(0,F,0,0,"ng-template")}function ce(_t,Vn){if(1&_t&&(v.j41(0,"span",29),v.DNE(1,te,1,0,null,15),v.k0s()),2&_t){const Tt=v.XpG(6);v.R7$(),v.Y8G("ngTemplateOutlet",Tt.rejectIconTemplate)}}function Te(_t,Vn){if(1&_t){const Tt=v.RV6();v.j41(0,"button",24),v.bIt("click",function(){v.eBV(Tt);const _n=v.XpG(5);return v.Njj(_n.reject())}),v.DNE(1,ne,3,2,"ng-container",11)(2,ce,2,1,"span",25),v.k0s()}if(2&_t){const Tt=v.XpG(5);v.HbH(Tt.option("rejectButtonStyleClass")),v.Y8G("label",Tt.rejectButtonLabel)("ngClass","p-confirm-dialog-reject"),v.BMQ("aria-label",Tt.rejectAriaLabel),v.R7$(),v.Y8G("ngIf",!Tt.rejectIconTemplate),v.R7$(),v.Y8G("ngIf",Tt.rejectIconTemplate)}}function ke(_t,Vn){if(1&_t&&v.nrm(0,"i"),2&_t){const Tt=v.XpG(7);v.HbH(Tt.option("acceptIcon"))}}function Rt(_t,Vn){1&_t&&v.nrm(0,"CheckIcon",28),2&_t&&v.Y8G("styleClass","p-button-icon-left")}function Qe(_t,Vn){if(1&_t&&(v.qex(0),v.DNE(1,ke,1,2,"i",26)(2,Rt,1,1,"CheckIcon",27),v.bVm()),2&_t){const Tt=v.XpG(6);v.R7$(),v.Y8G("ngIf",Tt.option("acceptIcon")),v.R7$(),v.Y8G("ngIf",!Tt.option("acceptIcon"))}}function On(_t,Vn){}function hn(_t,Vn){1&_t&&v.DNE(0,On,0,0,"ng-template")}function xn(_t,Vn){if(1&_t&&(v.j41(0,"span",29),v.DNE(1,hn,1,0,null,15),v.k0s()),2&_t){const Tt=v.XpG(6);v.R7$(),v.Y8G("ngTemplateOutlet",Tt.acceptIconTemplate)}}function en(_t,Vn){if(1&_t){const Tt=v.RV6();v.j41(0,"button",24),v.bIt("click",function(){v.eBV(Tt);const _n=v.XpG(5);return v.Njj(_n.accept())}),v.DNE(1,Qe,3,2,"ng-container",11)(2,xn,2,1,"span",25),v.k0s()}if(2&_t){const Tt=v.XpG(5);v.HbH(Tt.option("acceptButtonStyleClass")),v.Y8G("label",Tt.acceptButtonLabel)("ngClass","p-confirm-dialog-accept"),v.BMQ("aria-label",Tt.acceptAriaLabel),v.R7$(),v.Y8G("ngIf",!Tt.acceptIconTemplate),v.R7$(),v.Y8G("ngIf",Tt.acceptIconTemplate)}}function Qt(_t,Vn){if(1&_t&&(v.j41(0,"div",22),v.DNE(1,Te,3,7,"button",23)(2,en,3,7,"button",23),v.k0s()),2&_t){const Tt=v.XpG(4);v.R7$(),v.Y8G("ngIf",Tt.option("rejectVisible")),v.R7$(),v.Y8G("ngIf",Tt.option("acceptVisible"))}}function Ht(_t,Vn){if(1&_t&&(v.DNE(0,ut,2,1,"div",8)(1,ht,4,2,"div",8),v.j41(2,"div",9,1),v.DNE(4,ge,1,3,"i",10)(5,ze,2,1,"ng-container",11)(6,tt,1,1,"span",12)(7,At,2,4,"ng-container",11),v.k0s(),v.DNE(8,fn,3,1,"div",13)(9,Qt,3,2,"div",13)),2&_t){const Tt=v.XpG(3);v.Y8G("ngIf",Tt.headerTemplate),v.R7$(),v.Y8G("ngIf",!Tt.headerTemplate),v.R7$(3),v.Y8G("ngIf",!Tt.iconTemplate&&Tt.option("icon")),v.R7$(),v.Y8G("ngIf",Tt.iconTemplate),v.R7$(),v.Y8G("ngIf",!Tt.messageTemplate),v.R7$(),v.Y8G("ngIf",Tt.messageTemplate),v.R7$(),v.Y8G("ngIf",Tt.footer||Tt.footerTemplate),v.R7$(),v.Y8G("ngIf",!Tt.footer&&!Tt.footerTemplate)}}function ar(_t,Vn){if(1&_t){const Tt=v.RV6();v.j41(0,"div",5),v.bIt("@animation.start",function(_n){v.eBV(Tt);const Fr=v.XpG(2);return v.Njj(Fr.onAnimationStart(_n))})("@animation.done",function(_n){v.eBV(Tt);const Fr=v.XpG(2);return v.Njj(Fr.onAnimationEnd(_n))}),v.DNE(1,En,2,4,"ng-container",6)(2,Ht,10,8,"ng-template",null,0,v.C5r),v.k0s()}if(2&_t){const Tt=v.sdS(3),sn=v.XpG(2);v.HbH(sn.styleClass),v.Y8G("ngClass",v.eq3(9,Se,sn.rtl))("ngStyle",sn.style)("@animation",v.eq3(14,lt,v.l_i(11,et,sn.transformOptions,sn.transitionOptions))),v.BMQ("aria-labelledby",sn.ariaLabelledBy)("aria-modal",!0),v.R7$(),v.Y8G("ngIf",sn.headlessTemplate)("ngIfElse",Tt)}}function Gn(_t,Vn){if(1&_t&&(v.j41(0,"div",3),v.DNE(1,ar,4,16,"div",4),v.k0s()),2&_t){const Tt=v.XpG();v.HbH(Tt.maskStyleClass),v.Y8G("ngClass",Tt.getMaskClass()),v.R7$(),v.Y8G("ngIf",Tt.visible)}}const Pt=(0,p.lY)([(0,p.iF)({transform:"{{transform}}",opacity:0}
1),(0,p.i0)("{{transition}}",(0,p.iF)({transform:"none",opacity:1}))]),An=(0,p.lY)([(0,p.i0)("{{transition}}",(0,p.iF)({transform:"{{transform}}",opacity:0}))]);let vn=(()=>{class _t{el;renderer;confirmationService;zone;cd;config;document;header;icon;message;get style(){return this._style}set style(Tt){this._style=Tt,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo;key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;get visible(){return this._visible}set visible(Tt){this._visible=Tt,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}get position(){return this._position}set position(Tt){switch(this._position=Tt,Tt){case"top-left":case"bottom-left":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"top-right":case"bottom-right":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onHide=new v.bkB;footer;contentViewChild;templates;ngAfterContentInit(){this.templates?.forEach(Tt=>{switch(Tt.getType()){case"header":this.headerTemplate=Tt.template;break;case"footer":this.footerTemplate=Tt.template;break;case"message":this.messageTemplate=Tt.template;break;case"icon":this.iconTemplate=Tt.template;break;case"rejecticon":this.rejectIconTemplate=Tt.template;break;case"accepticon":this.acceptIconTemplate=Tt.template;break;case"headless":this.headlessTemplate=Tt.template}})}headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;confirmation;_visible;_style;maskVisible;documentEscapeListener;container;wrapper;contentContainer;subscription;maskClickListener;preWidth;_position="center";transformOptions="scale(0.7)";styleElement;id=(0,z._Y)();ariaLabelledBy=this.getAriaLabelledBy();confirmationOptions;translationSubscription;constructor(Tt,sn,_n,Fr,Ni,Di,mi){this.el=Tt,this.renderer=sn,this.confirmationService=_n,this.zone=Fr,this.cd=Ni,this.config=Di,this.document=mi,this.subscription=this.confirmationService.requireConfirmation$.subscribe(ci=>{ci?ci.key===this.key&&(this.confirmation=ci,this.confirmationOptions={message:this.confirmation.message||this.message,icon:this.confirmation.icon||this.icon,header:this.confirmation.header||this.header,rejectVisible:null==this.confirmation.rejectVisible?this.rejectVisible:this.confirmation.rejectVisible,acceptVisible:null==this.confirmation.acceptVisible?this.acceptVisible:this.confirmation.acceptVisible,acceptLabel:this.confirmation.acceptLabel||this.acceptLabel,rejectLabel:this.confirmation.rejectLabel||this.rejectLabel,acceptIcon:this.confirmation.acceptIcon||this.acceptIcon,rejectIcon:this.confirmation.rejectIcon||this.rejectIcon,acceptButtonStyleClass:this.confirmation.acceptButtonStyleClass||this.acceptButtonStyleClass,rejectButtonStyleClass:this.confirmation.rejectButtonStyleClass||this.rejectButtonStyleClass,defaultFocus:this.confirmation.defaultFocus||this.defaultFocus,blockScroll:!1===this.confirmation.blockScroll||!0===this.confirmation.blockScroll?this.confirmation.blockScroll:this.blockScroll,closeOnEscape:!1===this.confirmation.closeOnEscape||!0===this.confirmation.closeOnEscape?this.confirmation.closeOnEscape:this.closeOnEscape,dismissableMask:!1===this.confirmation.dismissableMask||!0===this.confirmation.dismissableMask?this.confirmation.dismissableMask:this.dismissableMask}
1,this.confirmation.accept&&(this.confirmation.acceptEvent=new v.bkB,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new v.bkB,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0):this.hide()})}ngOnInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}getAriaLabelledBy(){return null!==this.header?(0,z._Y)()+"_header":null}option(Tt){const sn=this.confirmationOptions||this;if(sn.hasOwnProperty(Tt))return sn[Tt]}onAnimationStart(Tt){if("visible"===Tt.toState){this.container=Tt.element,this.wrapper=this.container?.parentElement,this.contentContainer=x.D.findSingle(this.container,".p-dialog-content"),this.container?.setAttribute(this.id,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.enableModality();const sn=this.getElementToFocus();sn&&sn.focus()}}onAnimationEnd(Tt){"void"===Tt.toState&&this.onOverlayHide()}getElementToFocus(){switch(this.option("defaultFocus")){case"accept":default:return x.D.findSingle(this.container,".p-confirm-dialog-accept");case"reject":return x.D.findSingle(this.container,".p-confirm-dialog-reject");case"close":return x.D.findSingle(this.container,".p-dialog-header-close");case"none":return null}}appendContainer(){this.appendTo&&("body"===this.appendTo?this.document.body.appendChild(this.wrapper):x.D.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.wrapper&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}enableModality(){this.option("blockScroll")&&x.D.addClass(this.document.body,"p-overflow-hidden"),this.option("dismissableMask")&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",Tt=>{this.wrapper&&this.wrapper.isSameNode(Tt.target)&&this.close(Tt)}))}disableModality(){this.maskVisible=!1,this.option("blockScroll")&&x.D.removeClass(this.document.body,"p-overflow-hidden"),this.dismissableMask&&this.unbindMaskClickListener(),this.container&&!this.cd.destroyed&&this.cd.detectChanges()}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",x.D.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.document.head.appendChild(this.styleElement);let Tt="";for(let sn in this.breakpoints)Tt+=`\n @media screen and (max-width: ${sn}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[sn]} !important;\n }\n }\n `;this.styleElement.innerHTML=Tt}}close(Tt){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(Y.TJ.CANCEL),this.hide(Y.TJ.CANCEL),Tt.preventDefault()}hide(Tt){this.onHide.emit(Tt),this.visible=!1,this.confirmation=null,this.confirmationOptions=null}moveOnTop(){this.autoZIndex&&(z.Q$.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}getMaskClass(){let Tt={"p-dialog-mask p-component-overlay":!0,"p-dialog-mask-scrollblocker":this.blockScroll};return Tt[this.getPositionClass().toString()]=!0,Tt}getPositionClass(){const sn=["left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"].find(_n=>_n===this.position);return sn?`p-dialog-${sn}`:""}bindGlobalListeners(){(this.option("closeOnEscape")&&this.closable||this.focusTrap&&!this.documentEscapeListener)&&(this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",sn=>{if(27==sn.which&&this.option("closeOnEscape")&&this.closable&&parseInt(this.container.style.zIndex)===z.Q$.get(this.container)&&this.visible&&this.close(sn),9===sn.which&&this.focusTrap){sn.preventDefault();let _n=x.D.getFocusableElements(this.container);if(_n&&_n.length>0)if(_n[0].ownerDocument.activeElement){let Fr=_n.indexOf(_n[0].ownerDocument.activeElement);sn.shiftKey?-1==Fr||0===Fr?_n[_n.length-1].focus():_n[Fr-1].focus():-1==Fr||Fr===_n.length-1?_n[0].focus():_n[Fr+1].focus()}else _n[0].focus()}}))}unbindGlobalListeners(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}onOverlayHide(){this.container&&this.autoZIndex&&z.Q$.clear(this.container),this.disableModality(),this.unbindGlobalListeners(),this.container=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.restoreAppend(),this.onOverlayHide(),this.subscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}accept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(Y.TJ.ACCEPT)}reject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(Y.TJ.REJECT),this.hide(Y.TJ.REJECT)}get acceptButtonLabel(){return this.option("acceptLabel")||this.config.getTranslation(Y.Yj.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.config.getTranslation(Y.Yj.REJECT)}static \u0275fac=function(sn){return new(sn||_t)(v.rXU(v.aKT),v.rXU(v.sFG),v.rXU(Y.td),v.rXU(v.SKi),v.rXU(v.gRc),v.rXU(Y.r1),v.rXU(u.qQ))};static \u0275cmp=v.VBU({type:_t,selectors:[["p-confirmDialog"]],contentQueries:function(sn,_n,Fr){if(1&sn&&(v.wni(Fr,Y.wi,5),v.wni(Fr,Y.Ei,4)),2&sn){let Ni;v.mGM(Ni=v.lsd())&&(_n.footer=Ni.first),v.mGM(Ni=v.lsd())&&(_n.templates=Ni)}},viewQuery:function(sn,_n){if(1&sn&&v.GBs(Q,5),2&sn){let Fr;v.mGM(Fr=v.lsd())&&(_n.contentViewChild=Fr.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[v.Mj6.HasDecoratorInputTransform,"acceptVisible","acceptVisible",v.L39],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[v.Mj6.HasDecoratorInputTransform,"rejectVisible","rejectVisible",v.L39],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[v.Mj6.HasDecoratorInputTransform,"closeOnEscape","closeOnEscape",v.L39],dismissableMask:[v.Mj6.HasDecoratorInputTransform,"dismissableMask","dismissableMask",v.L39],blockScroll:[v.Mj6.HasDecoratorInputTransform,"blockScroll","blockScroll",v.L39],rtl:[v.Mj6.HasDecoratorInputTransform,"rtl","rtl",v.L39],closable:[v.Mj6.HasDecoratorInputTransform,"closable","closable",v.L39],appendTo:"appendTo",key:"key",autoZIndex:[v.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",v.L39],baseZIndex:[v.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",v.Udg],transitionOptions:"transitionOptions",focusTrap:[v.Mj6.HasDecoratorInputTransform,"focusTrap","focusTrap",v.L39],defaultFocus:"defaultFocus",breakpoints:"breakpoints",visible:"visible",position:"position"},outputs:{onHide:"onHide"},features:[v.GFd],ngContentSelectors:Re,decls:1,vars:1,consts:[["notHeadless",""],["content",""],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["role","alertdialog",3,"ngClass","ngStyle","class",4,"ngIf"],["role","alertdialog",3,"ngClass","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-dialog-header",4,"ngIf"],[1,"p-dialog-content"],[3,"ngClass","class",4,"ngIf"],[4,"ngIf"],["class","p-confirm-dialog-message",3,"innerHTML",4,"ngIf"],["class","p-dialog-footer",4,"ngIf"],[1,"p-dialog-header"],[4,"ngTemplateOutlet"],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","role","button",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["type","button","role","button",3,"click","keydown.enter","ngClass"],[1,"p-confirm-dialog-message",3,"innerHTML"],[1,"p-dialog-footer"],["type","button","pRipple","","pButton","",3,"label","ngClass","class","click",4,"ngIf"],["type","button","pRipple","","pButton","",3,"click","label","ngClass"],["class","p-button-icon-left",4,"ngIf"],[3,"class",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon-left"]],template:function(sn,_n){1&sn&&(v.NAR(Ie),v.DNE(0,Gn,2,4,"div",2)),2&sn&&v.Y8G("ngIf",_n.maskVisible)},dependencies:()=>[u.YU,u.bT,u.T3,u.B3,b._f,j.n,L.A,R.S],styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;
1display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[(0,p.hZ)("animation",[(0,p.kY)("void => visible",[(0,p.sM)(Pt)]),(0,p.kY)("visible => void",[(0,p.sM)(An)])])]},changeDetection:0})}return _t})(),Si=(()=>{class _t{static \u0275fac=function(sn){return new(sn||_t)};static \u0275mod=v.$C({type:_t});static \u0275inj=v.G2t({imports:[u.MD,b.tm,j.Z,L.A,R.S,b.tm,Y.Gg]})}return _t})()},1455:(Lt,be,D)=>{D.d(be,{D:()=>p,b:()=>u});let p=(()=>{class v{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(b,x){b&&x&&(b.classList?b.classList.add(x):b.className+=" "+x)}static addMultipleClasses(b,x){if(b&&x)if(b.classList){let R=x.trim().split(" ");for(let L=0;L<R.length;L++)b.classList.add(R[L])}else{let R=x.split(" ");for(let L=0;L<R.length;L++)b.className+=" "+R[L]}}static removeClass(b,x){b&&x&&(b.classList?b.classList.remove(x):b.className=b.className.replace(new RegExp("(^|\\b)"+x.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(b,x){b&&x&&[x].flat().filter(Boolean).forEach(R=>R.split(" ").forEach(L=>this.removeClass(b,L)))}static hasClass(b,x){return!(!b||!x)&&(b.classList?b.classList.contains(x):new RegExp("(^| )"+x+"( |$)","gi").test(b.className))}static siblings(b){return Array.prototype.filter.call(b.parentNode.children,function(x){return x!==b})}static find(b,x){return Array.from(b.querySelectorAll(x))}static findSingle(b,x){return this.isElement(b)?b.querySelector(x):null}static index(b){let x=b.parentNode.childNodes,R=0;for(var L=0;L<x.length;L++){if(x[L]==b)return R;1==x[L].nodeType&&R++}return-1}static indexWithinGroup(b,x){let R=b.parentNode?b.parentNode.childNodes:[],L=0;for(var j=0;j<R.length;j++){if(R[j]==b)return L;R[j].attributes&&R[j].attributes[x]&&1==R[j].nodeType&&L++}return-1}static appendOverlay(b,x,R="self"){"self"!==R&&b&&x&&this.appendChild(b,x)}static alignOverlay(b,x,R="self",L=!0){b&&x&&(L&&(b.style.minWidth=`${v.getOuterWidth(x)}px`),"self"===R?this.relativePosition(b,x):this.absolutePosition(b,x))}static relativePosition(b,x,R=!0){const L=Le=>{if(Le)return"relative"===getComputedStyle(Le).getPropertyValue("position")?Le:L(Le.parentElement)},j=b.offsetParent?{width:b.offsetWidth,height:b.offsetHeight}:this.getHiddenElementDimensions(b),z=x.offsetHeight??x.getBoundingClientRect().height,Q=x.getBoundingClientRect(),Ie=this.getWindowScrollTop(),Re=this.getWindowScrollLeft(),Se=this.getViewport(),lt=L(b)?.getBoundingClientRect()||{top:-1*Ie,left:-1*Re};let je,wt;Q.top+z+j.height>Se.height?(je=Q.top-lt.top-j.height,b.style.transformOrigin="bottom",Q.top+je<0&&(je=-1*Q.top)):(je=z+Q.top-lt.top,b.style.transformOrigin="top");const Zt=Q.left+j.width-Se.width;wt=j.width>Se.width?-1*(Q.left-lt.left):Zt>0?Q.left-lt.left-Zt:Q.left-lt.left,b.style.top=je+"px",b.style.left=wt+"px",R&&(b.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(b,x,R=!0){const L=b.offsetParent?{width:b.offsetWidth,height:b.offsetHeight}:this.getHiddenElementDimensions(b),j=L.height,z=L.width,Q=x.offsetHeight??x.getBoundingClientRect().height,Ie=x.offsetWidth??x.getBoundingClientRect().width,Re=x.getBoundingClientRect(),Se=this.getWindowScrollTop(),et=this.getWindowScrollLeft(),lt=this.getViewport();let je,wt;Re.top+Q+j>lt.height?(je=Re.top+Se-j,b.style.transformOrigin="bottom",je<0&&(je=Se)):(je=Q+Re.top+Se,b.style.transformOrigin="top"),wt=Re.left+z>lt.width?Math.max(0,Re.left+et+Ie-z):Re.left+et,b.style.top=je+"px",b.style.left=wt+"px",R&&(b.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(b,x=[]){return null===b.parentNode?x:this.getParents(b.parentNode,x.concat([b.parentNode]))}static getScrollableParents(b){let x=[];if(b){let R=this.getParents(b);const L=/(auto|scroll)/,j=z=>{let Q=window.getComputedStyle(z,null);return L.test(Q.getPropertyValue("overflow"))||L.test(Q.getPropertyValue("overflowX"))||L.test(Q.getPropertyValue("overflowY"))};for(let z of R){let Q=1===z.nodeType&&z.dataset.scrollselectors;if(Q){let Ie=Q.split(",");for(let Re of Ie){let Se=this.findSingle(z,Re);Se&&j(Se)&&x.push(Se)}}9!==z.nodeType&&j(z)&&x.push(z)}}return x}static getHiddenElementOuterHeight(b){b.style.visibility="hidden",b.style.display="block";let x=b.offsetHeight;return b.style.display="none",b.style.visibility="visible",x}static getHiddenElementOuterWidth(b){b.style.visibility="hidden",b.style.display="block";let x=b.offsetWidth;return b.style.display="none",b.style.visibility="visible",x}static getHiddenElementDimensions(b){let x={};return b.style.visibility="hidden",b.style.display="block",x.width=b.offsetWidth,x.height=b.offsetHeight,b.style.display="none",b.style.visibility="visible",x}static scrollInView(b,x){let R=getComputedStyle(b).getPropertyValue("borderTopWidth"),L=R?parseFloat(R):0,j=getComputedStyle(b).getPropertyValue("paddingTop"),z=j?parseFloat(j):0,Q=b.getBoundingClientRect(),Re=x.getBoundingClientRect().top+document.body.scrollTop-(Q.top+document.body.scrollTop)-L-z,Se=b.scrollTop,et=b.clientHeight,lt=this.getOuterHeight(x);Re<0?b.scrollTop=Se+Re:Re+lt>et&&(b.scrollTop=Se+Re-et+lt)}static fadeIn(b,x){b.style.opacity=0;let R=+new Date,L=0,j=function(){L=+b.style.opacity.replace(",",".")+((new Date).getTime()-R)/x,b.style.opacity=L,R=+new Date,+L<1&&(window.requestAnimationFrame&&requestAnimationFrame(j)||setTimeout(j,16))};j()}static fadeOut(b,x){var R=1,z=50/x;let Q=setInterval(()=>{(R-=z)<=0&&(R=0,clearInterval(Q)),b.style.opacity=R},50)}
vendor: 6,043 bytes, line 1
1static getWindowScrollTop(){let b=document.documentElement;return(window.pageYOffset||b.scrollTop)-(b.clientTop||0)}static getWindowScrollLeft(){let b=document.documentElement;return(window.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}static matches(b,x){var R=Element.prototype;return(R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.msMatchesSelector||function(j){return-1!==[].indexOf.call(document.querySelectorAll(j),this)}).call(b,x)}static getOuterWidth(b,x){let R=b.offsetWidth;if(x){let L=getComputedStyle(b);R+=parseFloat(L.marginLeft)+parseFloat(L.marginRight)}return R}static getHorizontalPadding(b){let x=getComputedStyle(b);return parseFloat(x.paddingLeft)+parseFloat(x.paddingRight)}static getHorizontalMargin(b){let x=getComputedStyle(b);return parseFloat(x.marginLeft)+parseFloat(x.marginRight)}static innerWidth(b){let x=b.offsetWidth,R=getComputedStyle(b);return x+=parseFloat(R.paddingLeft)+parseFloat(R.paddingRight),x}static width(b){let x=b.offsetWidth,R=getComputedStyle(b);return x-=parseFloat(R.paddingLeft)+parseFloat(R.paddingRight),x}static getInnerHeight(b){let x=b.offsetHeight,R=getComputedStyle(b);return x+=parseFloat(R.paddingTop)+parseFloat(R.paddingBottom),x}static getOuterHeight(b,x){let R=b.offsetHeight;if(x){let L=getComputedStyle(b);R+=parseFloat(L.marginTop)+parseFloat(L.marginBottom)}return R}static getHeight(b){let x=b.offsetHeight,R=getComputedStyle(b);return x-=parseFloat(R.paddingTop)+parseFloat(R.paddingBottom)+parseFloat(R.borderTopWidth)+parseFloat(R.borderBottomWidth),x}static getWidth(b){let x=b.offsetWidth,R=getComputedStyle(b);return x-=parseFloat(R.paddingLeft)+parseFloat(R.paddingRight)+parseFloat(R.borderLeftWidth)+parseFloat(R.borderRightWidth),x}static getViewport(){let b=window,x=document,R=x.documentElement,L=x.getElementsByTagName("body")[0];return{width:b.innerWidth||R.clientWidth||L.clientWidth,height:b.innerHeight||R.clientHeight||L.clientHeight}}static getOffset(b){var x=b.getBoundingClientRect();return{top:x.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:x.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(b,x){let R=b.parentNode;if(!R)throw"Can't replace element";return R.replaceChild(x,b)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var b=window.navigator.userAgent;return b.indexOf("MSIE ")>0||(b.indexOf("Trident/")>0?(b.indexOf("rv:"),!0):b.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(b,x){if(this.isElement(x))x.appendChild(b);else{if(!(x&&x.el&&x.el.nativeElement))throw"Cannot append "+x+" to "+b;x.el.nativeElement.appendChild(b)}}static removeChild(b,x){if(this.isElement(x))x.removeChild(b);else{if(!x.el||!x.el.nativeElement)throw"Cannot remove "+b+" from "+x;x.el.nativeElement.removeChild(b)}}static removeElement(b){"remove"in Element.prototype?b.remove():b.parentNode.removeChild(b)}static isElement(b){return"object"==typeof HTMLElement?b instanceof HTMLElement:b&&"object"==typeof b&&null!==b&&1===b.nodeType&&"string"==typeof b.nodeName}static calculateScrollbarWidth(b){if(b){let x=getComputedStyle(b);return b.offsetWidth-b.clientWidth-parseFloat(x.borderLeftWidth)-parseFloat(x.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let x=document.createElement("div");x.className="p-scrollbar-measure",document.body.appendChild(x);let R=x.offsetWidth-x.clientWidth;return document.body.removeChild(x),this.calculatedScrollbarWidth=R,R}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let b=document.createElement("div");b.className="p-scrollbar-measure",document.body.appendChild(b);let x=b.offsetHeight-b.clientHeight;return document.body.removeChild(b),this.calculatedScrollbarWidth=x,x}static invokeElementMethod(b,x,R){b[x].apply(b,R)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let b=this.resolveUserAgent();this.browser={},b.browser&&(this.browser[b.browser]=!0,this.browser.version=b.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let b=navigator.userAgent.toLowerCase(),x=/(chrome)[ \/]([\w.]+)/.exec(b)||/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||b.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(b)||[];return{browser:x[1]||"",version:x[2]||"0"}}static isInteger(b){return Number.isInteger?Number.isInteger(b):"number"==typeof b&&isFinite(b)&&Math.floor(b)===b}static isHidden(b){return!b||null===b.offsetParent}static isVisible(b){return b&&null!=b.offsetParent}static isExist(b){return null!==b&&typeof b<"u"&&b.nodeName&&b.parentNode}static focus(b,x){b&&document.activeElement!==b&&b.focus(x)}static getFocusableSelectorString(b=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b}
1,\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b},\n .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b},\n .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${b}`}static getFocusableElements(b,x=""){let R=this.find(b,this.getFocusableSelectorString(x)),L=[];for(let j of R){const z=getComputedStyle(j);this.isVisible(j)&&"none"!=z.display&&"hidden"!=z.visibility&&L.push(j)}return L}static getFocusableElement(b,x=""){let R=this.findSingle(b,this.getFocusableSelectorString(x));if(R){const L=getComputedStyle(R);if(this.isVisible(R)&&"none"!=L.display&&"hidden"!=L.visibility)return R}return null}static getFirstFocusableElement(b,x=""){const R=this.getFocusableElements(b,x);return R.length>0?R[0]:null}static getLastFocusableElement(b,x){const R=this.getFocusableElements(b,x);return R.length>0?R[R.length-1]:null}static getNextFocusableElement(b,x=!1){const R=v.getFocusableElements(b);let L=0;if(R&&R.length>0){const j=R.indexOf(R[0].ownerDocument.activeElement);x?L=-1==j||0===j?R.length-1:j-1:-1!=j&&j!==R.length-1&&(L=j+1)}return R[L]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(b,x){if(!b)return null;switch(b){case"document":return document;case"window":return window;case"@next":return x?.nextElementSibling;case"@prev":return x?.previousElementSibling;case"@parent":return x?.parentElement;case"@grandparent":return x?.parentElement.parentElement;default:const R=typeof b;if("string"===R)return document.querySelector(b);if("object"===R&&b.hasOwnProperty("nativeElement"))return this.isExist(b.nativeElement)?b.nativeElement:void 0;const j=(z=b)&&z.constructor&&z.call&&z.apply?b():b;return j&&9===j.nodeType||this.isExist(j)?j:null}var z}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(b,x){if(b){const R=b.getAttribute(x);return isNaN(R)?"true"===R||"false"===R?"true"===R:R:+R}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(b="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,b)}static unblockBodyScroll(b="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,b)}static createElement(b,x={},...R){if(b){const L=document.createElement(b);return this.setAttributes(L,x),L.append(...R),L}}static setAttribute(b,x="",R){this.isElement(b)&&null!=R&&b.setAttribute(x,R)}static setAttributes(b,x={}){if(this.isElement(b)){const R=(L,j)=>{const z=b?.$attrs?.[L]?[b?.$attrs?.[L]]:[];return[j].flat().reduce((Q,Ie)=>{if(null!=Ie){const Re=typeof Ie;if("string"===Re||"number"===Re)Q.push(Ie);else if("object"===Re){const Se=Array.isArray(Ie)?R(L,Ie):Object.entries(Ie).map(([et,lt])=>"style"!==L||!lt&&0!==lt?lt?et:void 0:`${et.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${lt}`);Q=Se.length?Q.concat(Se.filter(et=>!!et)):Q}}return Q},z)};Object.entries(x).forEach(([L,j])=>{if(null!=j){const z=L.match(/^on(.+)/);z?b.addEventListener(z[1].toLowerCase(),j):"pBind"===L?this.setAttributes(b,j):(j="class"===L?[...new Set(R("class",j))].join(" ").trim():"style"===L?R("style",j).join(";").trim():j,(b.$attrs=b.$attrs||{})&&(b.$attrs[L]=j),b.setAttribute(L,j))}})}}static isFocusableElement(b,x=""){return!!this.isElement(b)&&b.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${x},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${x},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${x},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${x},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${x}
1,\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${x},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${x}`)}}return v})();class u{element;listener;scrollableParents;constructor(Y,b=(()=>{})){this.element=Y,this.listener=b}bindScrollListener(){this.scrollableParents=p.getScrollableParents(this.element);for(let Y=0;Y<this.scrollableParents.length;Y++)this.scrollableParents[Y].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let Y=0;Y<this.scrollableParents.length;Y++)this.scrollableParents[Y].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}},8833:(Lt,be,D)=>{D.d(be,{ms:()=>Hi,kr:()=>Cs});var p=D(177),u=D(4438),v=D(9417),Y=D(5779),b=D(1880),x=D(1455),R=D(9335),L=D(563),j=D(9071),z=D(8542),Q=D(4420),Ie=D(1512),Re=D(3306),Se=D(461);let et=(()=>{class Ge extends Se.h{static \u0275fac=(()=>{let U;return function(Fe){return(U||(U=u.xGo(Ge)))(Fe||Ge)}})();static \u0275cmp=u.VBU({type:Ge,selectors:[["BlankIcon"]],standalone:!0,features:[u.Vt3,u.aNF],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg","v-bind","pti()"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(ot,Fe){1&ot&&(u.qSk(),u.j41(0,"svg",0),u.nrm(1,"rect",1),u.k0s())},encapsulation:2})}return Ge})();var lt=D(2423),je=D(5998);const wt=Ge=>({height:Ge}),Zt=(Ge,yn,U)=>({"p-dropdown-item":!0,"p-highlight":Ge,"p-disabled":yn,"p-focus":U}),En=Ge=>({$implicit:Ge});function Le(Ge,yn){1&Ge&&u.nrm(0,"CheckIcon",4),2&Ge&&u.Y8G("styleClass","p-dropdown-check-icon")}function ut(Ge,yn){1&Ge&&u.nrm(0,"BlankIcon",4),2&Ge&&u.Y8G("styleClass","p-dropdown-blank-icon")}function Ce(Ge,yn){if(1&Ge&&(u.qex(0),u.DNE(1,Le,1,1,"CheckIcon",3)(2,ut,1,1,"BlankIcon",3),u.bVm()),2&Ge){const U=u.XpG();u.R7$(),u.Y8G("ngIf",U.selected),u.R7$(),u.Y8G("ngIf",!U.selected)}}function me(Ge,yn){if(1&Ge&&(u.j41(0,"span"),u.EFF(1),u.k0s()),2&Ge){let U;const ot=u.XpG();u.R7$(),u.JRh(null!==(U=ot.label)&&void 0!==U?U:"empty")}}function ht(Ge,yn){1&Ge&&u.eu8(0)}const ge=["container"],Be=["filter"],pe=["focusInput"],ze=["editableInput"],tt=["items"],He=["scroller"],st=["overlay"],At=["firstHiddenFocusableEl"],gn=["lastHiddenFocusableEl"],fn=Ge=>({"max-height":Ge}),ln=Ge=>({options:Ge}),xe=Ge=>({"p-variant-filled":Ge}),ne=(Ge,yn)=>({$implicit:Ge,options:yn}),F=()=>({});function te(Ge,yn){if(1&Ge&&(u.qex(0),u.EFF(1),u.bVm()),2&Ge){const U=u.XpG(2);u.R7$(),u.JRh("p-emptylabel"===U.label()?"\xa0":U.label())}}function ce(Ge,yn){if(1&Ge&&u.eu8(0,25),2&Ge){const U=u.XpG(2);u.Y8G("ngTemplateOutlet",U.selectedItemTemplate)("ngTemplateOutletContext",u.eq3(2,En,U.selectedOption))}}function Te(Ge,yn){if(1&Ge&&(u.j41(0,"span"),u.EFF(1),u.k0s()),2&Ge){const U=u.XpG(3);u.R7$(),u.JRh("p-emptylabel"===U.label()?"\xa0":U.label())}}function ke(Ge,yn){if(1&Ge&&u.DNE(0,Te,2,1,"span",18),2&Ge){const U=u.XpG(2);u.Y8G("ngIf",U.isSelectedOptionEmpty())}}function Rt(Ge,yn){if(1&Ge){const U=u.RV6();u.j41(0,"span",23,3),u.bIt("focus",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onInputFocus(Fe))})("blur",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onInputBlur(Fe))})("keydown",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onKeyDown(Fe))}),u.DNE(2,te,2,1,"ng-container",20)(3,ce,1,4,"ng-container",24)(4,ke,1,1,"ng-template",null,4,u.C5r),u.k0s()}if(2&Ge){let U;const ot=u.sdS(5),Fe=u.XpG();u.Y8G("ngClass",Fe.inputClass)("pTooltip",Fe.tooltip)("tooltipPosition",Fe.tooltipPosition)("positionStyle",Fe.tooltipPositionStyle)("tooltipStyleClass",Fe.tooltipStyleClass)("autofocus",Fe.autofocus),u.BMQ("aria-disabled",Fe.disabled)("id",Fe.inputId)("aria-label",Fe.ariaLabel||("p-emptylabel"===Fe.label()?void 0:Fe.label()))("aria-labelledby",Fe.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",null!==(U=Fe.overlayVisible)&&void 0!==U&&U)("aria-controls",Fe.overlayVisible?Fe.id+"_list":null)("tabindex",Fe.disabled?-1:Fe.tabindex)("aria-activedescendant",Fe.focused?Fe.focusedOptionId:void 0)("aria-required",Fe.required)("required",Fe.required),u.R7$(2),u.Y8G("ngIf",!Fe.selectedItemTemplate)("ngIfElse",ot),u.R7$(),u.Y8G("ngIf",Fe.selectedItemTemplate&&!Fe.isSelectedOptionEmpty())}}function Qe(Ge,yn){if(1&Ge){const U=u.RV6();u.j41(0,"input",26,5),u.bIt("input",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onEditableInput(Fe))})("keydown",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onKeyDown(Fe))})("focus",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onInputFocus(Fe))})("blur",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onInputBlur(Fe))}),u.k0s()}if(2&Ge){const U=u.XpG();u.Y8G("ngClass",U.inputClass)("disabled",U.disabled)("autofocus",U.autofocus),u.BMQ("id",U.inputId)("maxlength",U.maxlength)("placeholder",void 0===U.modelValue()||null===U.modelValue()?U.placeholder():void 0)("aria-label",U.ariaLabel||("p-emptylabel"===U.label()?void 0:U.label()))("aria-activedescendant",U.focused?U.focusedOptionId:void 0)}}function On(Ge,yn){if(1&Ge){const U=u.RV6();u.j41(0,"TimesIcon",29),u.bIt("click",function(Fe){u.eBV(U);const xt=u.XpG(2);return u.Njj(xt.clear(Fe))}),u.k0s()}2&Ge&&(u.Y8G("styleClass","p-dropdown-clear-icon"),u.BMQ("data-pc-section","clearicon"))}function hn(Ge,yn){}function xn(Ge,yn){1&Ge&&u.DNE(0,hn,0,0,"ng-template")}function en(Ge,yn){if(1&Ge){const U=u.RV6();u.j41(0,"span",30),u.bIt("click",function(Fe){u.eBV(U);const xt=u.XpG(2);return u.Njj(xt.clear(Fe))}),u.DNE(1,xn,1,0,null,31),u.k0s()}if(2&Ge){const U=u.XpG(2);u.BMQ("data-pc-section","clearicon"),u.R7$(),u.Y8G("ngTemplateOutlet",U.clearIconTemplate)}}function Qt(Ge,yn){if(1&Ge&&(u.qex(0),u.DNE(1,On,1,2,"TimesIcon",27)(2,en,2,2,"span",28),u.bVm()),2&Ge){const U=u.XpG();u.R7$(),u.Y8G("ngIf",!U.clearIconTemplate),u.R7$(),u.Y8G("ngIf",U.clearIconTemplate)}}function Ht(Ge,yn){1&Ge&&u.eu8(0)}function ar(Ge,yn){if(1&Ge&&(u.qex(0),u.DNE(1,Ht,1,0,"ng-container",31),u.bVm()),2&Ge){const U=u.XpG(2);u.R7$(),u.Y8G("ngTemplateOutlet",U.loadingIconTemplate)}}function Gn(Ge,yn){if(1&Ge&&u.nrm(0,"span",34),2&Ge){const U=u.XpG(3);u.Y8G("ngClass","p-dropdown-trigger-icon pi-spin "+U.loadingIcon)}}function Pt(Ge,yn){1&Ge&&u.nrm(0,"span",35),2&Ge&&u.HbH("p-dropdown-trigger-icon pi pi-spinner pi-spin")}function An(Ge,yn){if(1&Ge&&(u.qex(0),u.DNE(1,Gn,1,1,"span",32)(2,Pt,1,2,"span",33),u.bVm()),2&Ge){const U=u.XpG(2);u.R7$(),u.Y8G("ngIf",U.loadingIcon),u.R7$(),u.Y8G("ngIf",!U.loadingIcon)}}function vn(Ge,yn){if(1&Ge&&(u.qex(0),u.DNE(1,ar,2,1,"ng-container",18)(2,An,3,2,"ng-container",18),u.bVm()),2&Ge){const U=u.XpG();u.R7$(),u.Y8G("ngIf",U.loadingIconTemplate),u.R7$(),u.Y8G("ngIf",!U.loadingIconTemplate)}}function Si(Ge,yn){if(1&Ge&&u.nrm(0,"span",39),2&Ge){const U=u.XpG(3);u.Y8G("ngClass",U.dropdownIcon)}}function _t(Ge,yn){1&Ge&&u.nrm(0,"ChevronDownIcon",40),2&Ge&&u.Y8G("styleClass","p-dropdown-trigger-icon")}
1function Vn(Ge,yn){if(1&Ge&&(u.qex(0),u.DNE(1,Si,1,1,"span",37)(2,_t,1,1,"ChevronDownIcon",38),u.bVm()),2&Ge){const U=u.XpG(2);u.R7$(),u.Y8G("ngIf",U.dropdownIcon),u.R7$(),u.Y8G("ngIf",!U.dropdownIcon)}}function Tt(Ge,yn){}function sn(Ge,yn){1&Ge&&u.DNE(0,Tt,0,0,"ng-template")}function _n(Ge,yn){if(1&Ge&&(u.j41(0,"span",41),u.DNE(1,sn,1,0,null,31),u.k0s()),2&Ge){const U=u.XpG(2);u.R7$(),u.Y8G("ngTemplateOutlet",U.dropdownIconTemplate)}}function Fr(Ge,yn){if(1&Ge&&u.DNE(0,Vn,3,2,"ng-container",18)(1,_n,2,1,"span",36),2&Ge){const U=u.XpG();u.Y8G("ngIf",!U.dropdownIconTemplate),u.R7$(),u.Y8G("ngIf",U.dropdownIconTemplate)}}function Ni(Ge,yn){1&Ge&&u.eu8(0)}function Di(Ge,yn){1&Ge&&u.eu8(0)}function mi(Ge,yn){if(1&Ge&&(u.qex(0),u.DNE(1,Di,1,0,"ng-container",48),u.bVm()),2&Ge){const U=u.XpG(3);u.R7$(),u.Y8G("ngTemplateOutlet",U.filterTemplate)("ngTemplateOutletContext",u.eq3(2,ln,U.filterOptions))}}function ci(Ge,yn){1&Ge&&u.nrm(0,"SearchIcon",40),2&Ge&&u.Y8G("styleClass","p-dropdown-filter-icon")}function is(Ge,yn){}function qn(Ge,yn){1&Ge&&u.DNE(0,is,0,0,"ng-template")}function Mr(Ge,yn){if(1&Ge&&(u.j41(0,"span",52),u.DNE(1,qn,1,0,null,31),u.k0s()),2&Ge){const U=u.XpG(4);u.R7$(),u.Y8G("ngTemplateOutlet",U.filterIconTemplate)}}function vr(Ge,yn){if(1&Ge){const U=u.RV6();u.j41(0,"div",49)(1,"input",50,10),u.bIt("input",function(Fe){u.eBV(U);const xt=u.XpG(3);return u.Njj(xt.onFilterInputChange(Fe))})("keydown",function(Fe){u.eBV(U);const xt=u.XpG(3);return u.Njj(xt.onFilterKeyDown(Fe))})("blur",function(Fe){u.eBV(U);const xt=u.XpG(3);return u.Njj(xt.onFilterBlur(Fe))}),u.k0s(),u.DNE(3,ci,1,1,"SearchIcon",38)(4,Mr,2,1,"span",51),u.k0s()}if(2&Ge){const U=u.XpG(3);u.R7$(),u.Y8G("value",U._filterValue()||"")("ngClass",u.eq3(8,xe,"filled"===U.variant||"filled"===U.config.inputStyle())),u.BMQ("placeholder",U.filterPlaceholder)("aria-owns",U.id+"_list")("aria-label",U.ariaFilterLabel)("aria-activedescendant",U.focusedOptionId),u.R7$(2),u.Y8G("ngIf",!U.filterIconTemplate),u.R7$(),u.Y8G("ngIf",U.filterIconTemplate)}}function Ar(Ge,yn){if(1&Ge){const U=u.RV6();u.j41(0,"div",47),u.bIt("click",function(Fe){return u.eBV(U),u.Njj(Fe.stopPropagation())}),u.DNE(1,mi,2,4,"ng-container",20)(2,vr,5,10,"ng-template",null,9,u.C5r),u.k0s()}if(2&Ge){const U=u.sdS(3),ot=u.XpG(2);u.R7$(),u.Y8G("ngIf",ot.filterTemplate)("ngIfElse",U)}}function Bi(Ge,yn){1&Ge&&u.eu8(0)}function Gr(Ge,yn){if(1&Ge&&u.DNE(0,Bi,1,0,"ng-container",48),2&Ge){const U=yn.$implicit,ot=yn.options;u.XpG(2);const Fe=u.sdS(9);u.Y8G("ngTemplateOutlet",Fe)("ngTemplateOutletContext",u.l_i(2,ne,U,ot))}}function wi(Ge,yn){1&Ge&&u.eu8(0)}function no(Ge,yn){if(1&Ge&&u.DNE(0,wi,1,0,"ng-container",48),2&Ge){const U=yn.options,ot=u.XpG(4);u.Y8G("ngTemplateOutlet",ot.loaderTemplate)("ngTemplateOutletContext",u.eq3(2,ln,U))}}function ys(Ge,yn){1&Ge&&(u.qex(0),u.DNE(1,no,1,4,"ng-template",54),u.bVm())}function Pi(Ge,yn){if(1&Ge){const U=u.RV6();u.j41(0,"p-scroller",53,11),u.bIt("onLazyLoad",function(Fe){u.eBV(U);const xt=u.XpG(2);return u.Njj(xt.onLazyLoad.emit(Fe))}),u.DNE(2,Gr,1,5,"ng-template",22)(3,ys,2,0,"ng-container",18),u.k0s()}if(2&Ge){const U=u.XpG(2);u.Aen(u.eq3(8,wt,U.scrollHeight)),u.Y8G("items",U.visibleOptions())("itemSize",U.virtualScrollItemSize||U._itemSize)("autoSize",!0)("lazy",U.lazy)("options",U.virtualScrollOptions),u.R7$(3),u.Y8G("ngIf",U.loaderTemplate)}}function We(Ge,yn){1&Ge&&u.eu8(0)}function it(Ge,yn){if(1&Ge&&(u.qex(0),u.DNE(1,We,1,0,"ng-container",48),u.bVm()),2&Ge){u.XpG();const U=u.sdS(9),ot=u.XpG();u.R7$(),u.Y8G("ngTemplateOutlet",U)("ngTemplateOutletContext",u.l_i(3,ne,ot.visibleOptions(),u.lJ4(2,F)))}}function he(Ge,yn){if(1&Ge&&(u.j41(0,"span"),u.EFF(1),u.k0s()),2&Ge){const U=u.XpG(2).$implicit,ot=u.XpG(3);u.R7$(),u.JRh(ot.getOptionGroupLabel(U.optionGroup))}}function $e(Ge,yn){1&Ge&&u.eu8(0)}function Ye(Ge,yn){if(1&Ge&&(u.qex(0),u.j41(1,"li",58),u.DNE(2,he,2,1,"span",18)(3,$e,1,0,"ng-container",48),u.k0s(),u.bVm()),2&Ge){const U=u.XpG(),ot=U.$implicit,Fe=U.index,xt=u.XpG().options,Nn=u.XpG(2);u.R7$(),u.Y8G("ngStyle",u.eq3(5,wt,xt.itemSize+"px")),u.BMQ("id",Nn.id+"_"+Nn.getOptionIndex(Fe,xt)),u.R7$(),u.Y8G("ngIf",!Nn.groupTemplate),u.R7$(),u.Y8G("ngTemplateOutlet",Nn.groupTemplate)("ngTemplateOutletContext",u.eq3(7,En,ot.optionGroup))}}function cn(Ge,yn){if(1&Ge){const U=u.RV6();u.qex(0),u.j41(1,"p-dropdownItem",59),u.bIt("onClick",function(Fe){u.eBV(U);const xt=u.XpG().$implicit,Nn=u.XpG(3);return u.Njj(Nn.onOptionSelect(Fe,xt))})("onMouseEnter",function(Fe){u.eBV(U);const xt=u.XpG().index,Nn=u.XpG().options,$r=u.XpG(2);return u.Njj($r.onOptionMouseEnter(Fe,$r.getOptionIndex(xt,Nn)))}),u.k0s(),u.bVm()}if(2&Ge){const U=u.XpG(),ot=U.$implicit,Fe=U.index,xt=u.XpG().options,Nn=u.XpG(2);u.R7$(),u.Y8G("id",Nn.id+"_"+Nn.getOptionIndex(Fe,xt))("option",ot)("checkmark",Nn.checkmark)("selected",Nn.isSelected(ot))("label",Nn.getOptionLabel(ot))("disabled",Nn.isOptionDisabled(ot))("template",Nn.itemTemplate)("focused",Nn.focusedOptionIndex()===Nn.getOptionIndex(Fe,xt))("ariaPosInset",Nn.getAriaPosInset(Nn.getOptionIndex(Fe,xt)))("ariaSetSize",Nn.ariaSetSize)}}function kn(Ge,yn){if(1&Ge&&u.DNE(0,Ye,4,9,"ng-container",18)(1,cn,2,10,"ng-container",18),2&Ge){const U=yn.$implicit,ot=u.XpG(3);u.Y8G("ngIf",ot.isOptionGroup(U)),u.R7$(),u.Y8G("ngIf",!ot.isOptionGroup(U))}}function Br(Ge,yn){if(1&Ge&&(u.qex(0),u.EFF(1),u.bVm()),2&Ge){const U=u.XpG(4);u.R7$(),u.SpI(" ",U.emptyFilterMessageLabel," ")}}function Yr(Ge,yn){1&Ge&&u.eu8(0,null,13)}function ui(Ge,yn){if(1&Ge&&(u.j41(0,"li",60),u.DNE(1,Br,2,1,"ng-container",20)(2,Yr,2,0,"ng-container",31),u.k0s()),2&Ge){const U=u.XpG().options,ot=u.XpG(2);u.Y8G("ngStyle",u.eq3(4,wt,U.itemSize+"px")),u.R7$(),u.Y8G("ngIf",!ot.emptyFilterTemplate&&!ot.emptyTemplate)("ngIfElse",ot.emptyFilter),u.R7$(),u.Y8G("ngTemplateOutlet",ot.emptyFilterTemplate||ot.emptyTemplate)}}function bi(Ge,yn){if(1&Ge&&(u.qex(0),u.EFF(1),u.bVm()),2&Ge){const U=u.XpG(4);u.R7$(),u.SpI(" ",U.emptyMessageLabel," ")}}function vi(Ge,yn){1&Ge&&u.eu8(0,null,14)}function ki(Ge,yn){if(1&Ge&&(u.j41(0,"li",60),u.DNE(1,bi,2,1,"ng-container",20)(2,vi,2,0,"ng-container",31),u.k0s()),2&Ge){const U=u.XpG().options,ot=u.XpG(2);u.Y8G("ngStyle",u.eq3(4,wt,U.itemSize+"px")),u.R7$(),u.Y8G("ngIf",!ot.emptyTemplate)("ngIfElse",ot.empty),u.R7$(),u.Y8G("ngTemplateOutlet",ot.emptyTemplate)}}function Eo(Ge,yn){if(1&Ge&&(u.j41(0,"ul",55,12),u.DNE(2,kn,2,2,"ng-template",56)(3,ui,3,6,"li",57)(4,ki,3,6,"li",57),u.k0s()),2&Ge){const U=yn.$implicit,ot=yn.options,Fe=u.XpG(2);u.Y8G("ngClass",ot.contentStyleClass)("ngStyle",ot.contentStyle),u.BMQ("id",Fe.id+"_list")("aria-label",Fe.listLabel),u.R7$(2),u.Y8G("ngForOf",U),u.R7$(),u.Y8G("ngIf",Fe.f
1ilterValue&&Fe.isEmpty()),u.R7$(),u.Y8G("ngIf",!Fe.filterValue&&Fe.isEmpty())}}function Kt(Ge,yn){1&Ge&&u.eu8(0)}function Wt(Ge,yn){if(1&Ge){const U=u.RV6();u.j41(0,"div",42)(1,"span",43,6),u.bIt("focus",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onFirstHiddenFocus(Fe))}),u.k0s(),u.DNE(3,Ni,1,0,"ng-container",31)(4,Ar,4,2,"div",44),u.j41(5,"div",45),u.DNE(6,Pi,4,10,"p-scroller",46)(7,it,2,6,"ng-container",18)(8,Eo,5,7,"ng-template",null,7,u.C5r),u.k0s(),u.DNE(10,Kt,1,0,"ng-container",31),u.j41(11,"span",43,8),u.bIt("focus",function(Fe){u.eBV(U);const xt=u.XpG();return u.Njj(xt.onLastHiddenFocus(Fe))}),u.k0s()()}if(2&Ge){const U=u.XpG();u.HbH(U.panelStyleClass),u.Y8G("ngClass","p-dropdown-panel p-component")("ngStyle",U.panelStyle),u.R7$(),u.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),u.R7$(2),u.Y8G("ngTemplateOutlet",U.headerTemplate),u.R7$(),u.Y8G("ngIf",U.filter),u.R7$(),u.Y8G("ngStyle",u.eq3(16,fn,U.virtualScroll?"auto":U.scrollHeight||"auto")),u.R7$(),u.Y8G("ngIf",U.virtualScroll),u.R7$(),u.Y8G("ngIf",!U.virtualScroll),u.R7$(3),u.Y8G("ngTemplateOutlet",U.footerTemplate),u.R7$(),u.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const Rn={provide:v.kq,useExisting:(0,u.Rfq)(()=>Hi),multi:!0};let go=(()=>{class Ge{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new u.bkB;onMouseEnter=new u.bkB;ngOnInit(){}onOptionClick(U){this.onClick.emit(U)}onOptionMouseEnter(U){this.onMouseEnter.emit(U)}static \u0275fac=function(ot){return new(ot||Ge)};static \u0275cmp=u.VBU({type:Ge,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:[u.Mj6.HasDecoratorInputTransform,"selected","selected",u.L39],focused:[u.Mj6.HasDecoratorInputTransform,"focused","focused",u.L39],label:"label",disabled:[u.Mj6.HasDecoratorInputTransform,"disabled","disabled",u.L39],visible:[u.Mj6.HasDecoratorInputTransform,"visible","visible",u.L39],itemSize:[u.Mj6.HasDecoratorInputTransform,"itemSize","itemSize",u.Udg],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[u.Mj6.HasDecoratorInputTransform,"checkmark","checkmark",u.L39]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[u.GFd],decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(ot,Fe){1&ot&&(u.j41(0,"li",0),u.bIt("click",function(Nn){return Fe.onOptionClick(Nn)})("mouseenter",function(Nn){return Fe.onOptionMouseEnter(Nn)}),u.DNE(1,Ce,3,2,"ng-container",1)(2,me,2,1,"span",1)(3,ht,1,0,"ng-container",2),u.k0s()),2&ot&&(u.Y8G("id",Fe.id)("ngStyle",u.eq3(14,wt,Fe.itemSize+"px"))("ngClass",u.sMw(16,Zt,Fe.selected,Fe.disabled,Fe.focused)),u.BMQ("aria-label",Fe.label)("aria-setsize",Fe.ariaSetSize)("aria-posinset",Fe.ariaPosInset)("aria-selected",Fe.selected)("data-p-focused",Fe.focused)("data-p-highlight",Fe.selected)("data-p-disabled",Fe.disabled),u.R7$(),u.Y8G("ngIf",Fe.checkmark),u.R7$(),u.Y8G("ngIf",!Fe.template),u.R7$(),u.Y8G("ngTemplateOutlet",Fe.template)("ngTemplateOutletContext",u.eq3(20,En,Fe.option)))},dependencies:()=>[p.YU,p.bT,p.T3,p.B3,L.n,et,Re.S],encapsulation:2})}return Ge})(),Hi=(()=>{class Ge{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(U){this._placeholder.set(U)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant="outlined";inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;
1autoShowPanelOnPrintableCharacterKeyDown=!0;get disabled(){return this._disabled}set disabled(U){U&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=U,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(U){this._itemSize=U,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(U){this._autoZIndex=U,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(U){this._baseZIndex=U,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(U){this._showTransitionOptions=U,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(U){this._hideTransitionOptions=U,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(U){setTimeout(()=>{this._filterValue.set(U)})}get options(){return this._options()}set options(U){Q.BF.deepEquals(U,this._options())||this._options.set(U)}onChange=new u.bkB;onFilter=new u.bkB;onFocus=new u.bkB;onBlur=new u.bkB;onClick=new u.bkB;onShow=new u.bkB;onHide=new u.bkB;onClear=new u.bkB;onLazyLoad=new u.bkB;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=(0,u.vPA)(null);_placeholder=(0,u.vPA)(void 0);modelValue=(0,u.vPA)(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=(0,u.vPA)(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=(0,u.vPA)(-1);labelId;listId;clicked=(0,u.vPA)(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Y.Yj.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Y.Yj.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return null!=this.modelValue()&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(Y.Yj.ARIA).listLabel}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":void 0!==this.modelValue()&&null!==this.modelValue()&&!this.modelValue().length,"p-inputwrapper-focus":this.focused||this.overlayVisible,"p-variant-filled":"filled"===this.variant||"filled"===this.config.inputStyle(),"p-dropdown-open":this.overlayVisible}}get inputClass(){const U=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder()&&U===this.placeholder(),"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||null!=U&&"p-emptylabel"!==U&&0!==U.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle(),"p-ripple-disabled":!1===this.config.ripple}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=(0,u.EWP)(()=>{const U=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){const Fe=this.filterBy||this.optionLabel||this.filterFields||this.optionValue?this.filterService.filter(U,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale):this.options.filter(xt=>xt.label?-1!==xt.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()):-1!==xt.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()));if(this.group){const Nn=[];
1return(this.options||[]).forEach($r=>{const Qn=this.getOptionGroupChildren($r).filter(ue=>Fe.includes(ue));Qn.length>0&&Nn.push({...$r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...Qn]})}),this.flatOptions(Nn)}return Fe}return U});label=(0,u.EWP)(()=>{const U=this.getAllVisibleAndNonVisibleOptions(),ot=U.findIndex(Fe=>this.isOptionValueEqualsModelValue(Fe));return-1!==ot?this.getOptionLabel(U[ot]):this.placeholder()||"p-emptylabel"});filled=(0,u.EWP)(()=>{if("string"==typeof this.modelValue())return!!this.modelValue();const ot=-1!==this.getAllVisibleAndNonVisibleOptions().findIndex(Fe=>this.isOptionValueEqualsModelValue(Fe));return"p-emptylabel"!==this.label()&&ot});selectedOption;editableInputValue=(0,u.EWP)(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(U,ot,Fe,xt,Nn,$r){this.el=U,this.renderer=ot,this.cd=Fe,this.zone=xt,this.filterService=Nn,this.config=$r,(0,u.QZP)(()=>{const Do=this.modelValue(),Qn=this.visibleOptions();if(Qn&&Q.BF.isNotEmpty(Qn)){const ue=this.findSelectedOptionIndex();(-1!==ue||void 0===Do||"string"==typeof Do&&0===Do.length||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=Qn[ue])}Q.BF.isEmpty(Qn)&&(void 0===Do||this.isModelValueNotSet())&&Q.BF.isNotEmpty(this.selectedOption)&&(this.selectedOption=null),void 0!==Do&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return null===this.modelValue()&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){this.id=this.id||(0,Q._Y)(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:U=>this.onFilterInputChange(U),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let U=x.D.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");U&&x.D.scrollInView(this.itemsWrapper,U),this.selectedOptionUpdated=!1}}
1ngAfterContentInit(){this.templates.forEach(U=>{switch(U.getType()){case"item":default:this.itemTemplate=U.template;break;case"selectedItem":this.selectedItemTemplate=U.template;break;case"header":this.headerTemplate=U.template;break;case"filter":this.filterTemplate=U.template;break;case"footer":this.footerTemplate=U.template;break;case"emptyfilter":this.emptyFilterTemplate=U.template;break;case"empty":this.emptyTemplate=U.template;break;case"group":this.groupTemplate=U.template;break;case"loader":this.loaderTemplate=U.template;break;case"dropdownicon":this.dropdownIconTemplate=U.template;break;case"loadingicon":this.loadingIconTemplate=U.template;break;case"clearicon":this.clearIconTemplate=U.template;break;case"filtericon":this.filterIconTemplate=U.template}})}flatOptions(U){return(U||[]).reduce((ot,Fe,xt)=>{ot.push({optionGroup:Fe,group:!0,index:xt});const Nn=this.getOptionGroupChildren(Fe);return Nn&&Nn.forEach($r=>ot.push($r)),ot},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(null===this.modelValue()||void 0===this.modelValue())&&!this.placeholder()){const U=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[U],!1,!0)}}onOptionSelect(U,ot,Fe=!0,xt=!1){if(!this.isSelected(ot)){const Nn=this.getOptionValue(ot);this.updateModel(Nn,U),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),!1===xt&&this.onChange.emit({originalEvent:U,value:Nn})}Fe&&this.hide(!0)}onOptionMouseEnter(U,ot){this.focusOnHover&&this.changeFocusedOptionIndex(U,ot)}updateModel(U,ot){this.value=U,this.onModelChange(U),this.modelValue.set(U),this.selectedOptionUpdated=!0}writeValue(U,ot=!0){this.filter&&this.resetFilter(),this.value=U,ot&&this.allowModelChange()&&this.onModelChange(U),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder()&&(void 0===this.modelValue()||null===this.modelValue())&&!this.editable&&this.options&&this.options.length}isSelectedOptionEmpty(){return Q.BF.isEmpty(this.selectedOption)}isSelected(U){return this.isValidOption(U)&&this.isOptionValueEqualsModelValue(U)}isOptionValueEqualsModelValue(U){return Q.BF.equals(this.modelValue(),this.getOptionValue(U),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){if(null!==this._placeholder()&&void 0!==this._placeholder())return;const U=this.el.nativeElement.parentElement,ot=U?.classList.contains("p-float-label");if(U&&ot&&!this.selectedOption){const Fe=U.querySelector("label");Fe&&this._placeholder.set(Fe.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(U,ot){return this.virtualScrollerDisabled?U:ot&&ot.getItemOptions(U).index}getOptionLabel(U){return null!=this.optionLabel?Q.BF.resolveFieldData(U,this.optionLabel):U&&void 0!==U.label?U.label:U}getOptionValue(U){return this.optionValue&&null!==this.optionValue?Q.BF.resolveFieldData(U,this.optionValue):!this.optionLabel&&U&&void 0!==U.value?U.value:U}isOptionDisabled(U){return!(this.getOptionValue(this.modelValue())===this.getOptionValue(U)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(U))&&!1===U.disabled)&&(this.optionDisabled?Q.BF.resolveFieldData(U,this.optionDisabled):!(!U||void 0===U.disabled)&&U.disabled)}getOptionGroupLabel(U){return null!=this.optionGroupLabel?Q.BF.resolveFieldData(U,this.optionGroupLabel):U&&void 0!==U.label?U.label:U}getOptionGroupChildren(U){return null!=this.optionGroupChildren?Q.BF.resolveFieldData(U,this.optionGroupChildren):U.items}getAriaPosInset(U){return(this.optionGroupLabel?U-this.visibleOptions().slice(0,U).filter(ot=>this.isOptionGroup(ot)).length:U)+1}get ariaSetSize(){return this.visibleOptions().filter(U=>!this.isOptionGroup(U)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(U){this.onModelChange=U}registerOnTouched(U){this.onModelTouched=U}setDisabledState(U){this.disabled=U,this.cd.markForCheck()}onContainerClick(U){this.disabled||this.readonly||this.loading||(this.focusInputVie
1wChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==U.target.tagName&&"clearicon"!==U.target.getAttribute("data-pc-section")&&!U.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(U.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(U),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&0===this.visibleOptions().length}onEditableInput(U){const ot=U.target.value;this.searchValue="",!this.searchOptions(U,ot)&&this.focusedOptionIndex.set(-1),this.onModelChange(ot),this.updateModel(ot,U),setTimeout(()=>{this.onChange.emit({originalEvent:U,value:ot})},1),!this.overlayVisible&&Q.BF.isNotEmpty(ot)&&this.show()}show(U){this.overlayVisible=!0;const ot=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(ot),U&&x.D.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(U){if("visible"===U.toState){if(this.itemsWrapper=x.D.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const ot=this.modelValue()?this.focusedOptionIndex():-1;-1!==ot&&this.scroller?.scrollToIndex(ot)}else{let ot=x.D.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");ot&&ot.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(U)}"void"===U.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(U))}hide(U){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="","modal"===this.overlayOptions?.mode&&x.D.unblockBodyScroll(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),U&&(this.focusInputViewChild&&setTimeout(()=>{x.D.focus(this.focusInputViewChild?.nativeElement)}),this.editable&&this.editableInputViewChild&&setTimeout(()=>{x.D.focus(this.editableInputViewChild?.nativeElement)})),this.cd.markForCheck()}onInputFocus(U){if(this.disabled)return;this.focused=!0;const ot=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(ot),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(U)}onInputBlur(U){this.focused=!1,this.onBlur.emit(U),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onMouseDown(U){U.preventDefault()}onKeyDown(U,ot){if(!(this.disabled||this.readonly||this.loading)){switch(U.code){case"ArrowDown":this.onArrowDownKey(U);break;case"ArrowUp":this.onArrowUpKey(U,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(U,this.editable);break;case"Delete":this.onDeleteKey(U);break;case"Home":this.onHomeKey(U,this.editable);break;case"End":this.onEndKey(U,this.editable);break;case"PageDown":this.onPageDownKey(U);break;case"PageUp":this.onPageUpKey(U);break;case"Space":this.onSpaceKey(U,ot);break;case"Enter":case"NumpadEnter":this.onEnterKey(U);break;case"Escape":this.onEscapeKey(U);break;case"Tab":this.onTabKey(U);break;case"Backspace":this.onBackspaceKey(U,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!U.metaKey&&Q.BF.isPrintableCharacter(U.key)&&(!this.overlayVisible&&this.autoShowPanelOnPrintableCharacterKeyDown&&this.show(),!this.editable&&this.searchOptions(U,U.key))}this.clicked.set(!1)}}onFilterKeyDown(U){switch(U.code){case"ArrowDown":this.onArrowDownKey(U);break;case"ArrowUp":this.onArrowUpKey(U,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(U,!0);break;case"Home":this.onHomeKey(U,!0);break;case"End":this.onEndKey(U,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(U,!0);break;case"Escape":this.onEscapeKey(U);break;case"Tab":this.onTabKey(U,!0)}}onFilterBlur(U){this.focusedOptionIndex.set(-1)}onArrowDownKey(U){if(this.overlayVisible){const ot=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(U,ot)}else this.show(),this.editable&&this.changeFocusedOptionIndex(U,this.findSelectedOptionIndex());U.preventDefault(),U.stopPropagation()}changeFocusedOptionIndex(U,ot){if(this.focusedOptionIndex()!==ot&&(this.focusedOptionIndex.set(ot),this.scrollInView(),this.selectOnFocus)){const Fe=this.visibleOptions()[ot];this.onOptionSelect(U,Fe,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(U=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const Fe=x.D.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==U?`${this.id}_${U}`:this.focusedOptionId}"]`);Fe?Fe.scrollIntoView&&Fe.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==U?U:this.focusedOptionIndex())}
1,0)}}hasSelectedOption(){return void 0!==this.modelValue()}isValidSelectedOption(U){return this.isValidOption(U)&&this.isSelected(U)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const U=this.findSelectedOptionIndex();return U<0?this.findFirstOptionIndex():U}findFirstOptionIndex(){return this.visibleOptions().findIndex(U=>this.isValidOption(U))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(U=>this.isValidSelectedOption(U)):-1}findNextOptionIndex(U){const ot=U<this.visibleOptions().length-1?this.visibleOptions().slice(U+1).findIndex(Fe=>this.isValidOption(Fe)):-1;return ot>-1?ot+U+1:U}findPrevOptionIndex(U){const ot=U>0?Q.BF.findLastIndex(this.visibleOptions().slice(0,U),Fe=>this.isValidOption(Fe)):-1;return ot>-1?ot:U}findLastOptionIndex(){return Q.BF.findLastIndex(this.visibleOptions(),U=>this.isValidOption(U))}findLastFocusedOptionIndex(){const U=this.findSelectedOptionIndex();return U<0?this.findLastOptionIndex():U}isValidOption(U){return null!=U&&!(this.isOptionDisabled(U)||this.isOptionGroup(U))}isOptionGroup(U){return null!=this.optionGroupLabel&&null!=U.optionGroup&&U.group}onArrowUpKey(U,ot=!1){if(U.altKey&&!ot){if(-1!==this.focusedOptionIndex()){const Fe=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(U,Fe)}this.overlayVisible&&this.hide()}else{const Fe=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(U,Fe),!this.overlayVisible&&this.show()}U.preventDefault(),U.stopPropagation()}onArrowLeftKey(U,ot=!1){ot&&this.focusedOptionIndex.set(-1)}onDeleteKey(U){this.showClear&&(this.clear(U),U.preventDefault())}onHomeKey(U,ot=!1){if(ot){const Fe=U.currentTarget;U.shiftKey?Fe.setSelectionRange(0,Fe.value.length):(Fe.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(U,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();U.preventDefault()}onEndKey(U,ot=!1){if(ot){const Fe=U.currentTarget;if(U.shiftKey)Fe.setSelectionRange(0,Fe.value.length);else{const xt=Fe.value.length;Fe.setSelectionRange(xt,xt),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(U,this.findLastOptionIndex()),!this.overlayVisible&&this.show();U.preventDefault()}onPageDownKey(U){this.scrollInView(this.visibleOptions().length-1),U.preventDefault()}onPageUpKey(U){this.scrollInView(0),U.preventDefault()}onSpaceKey(U,ot=!1){!this.editable&&!ot&&this.onEnterKey(U)}onEnterKey(U,ot=!1){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const Fe=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(U,Fe)}!ot&&this.hide()}else this.focusedOptionIndex.set(-1),this.onArrowDownKey(U);U.preventDefault()}onEscapeKey(U){this.overlayVisible&&this.hide(!0),U.preventDefault()}onTabKey(U,ot=!1){if(!ot)if(this.overlayVisible&&this.hasFocusableElements())x.D.focus(U.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),U.preventDefault();else{if(-1!==this.focusedOptionIndex()&&this.overlayVisible){const Fe=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(U,Fe)}this.overlayVisible&&this.hide(this.filter)}U.stopPropagation()}onFirstHiddenFocus(U){const ot=U.relatedTarget===this.focusInputViewChild?.nativeElement?x.D.getFirstFocusableElement(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;x.D.focus(ot)}onLastHiddenFocus(U){const ot=U.relatedTarget===this.focusInputViewChild?.nativeElement?x.D.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;x.D.focus(ot)}hasFocusableElements(){return x.D.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"]):not([class="p-dropdown-items-wrapper"])').length>0}onBackspaceKey(U,ot=!1){ot&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(U,ot){this.searchValue=(this.searchValue||"")+ot;let Fe=-1,xt=!1;return-1!==this.focusedOptionIndex()?(Fe=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(Nn=>this.isOptionMatched(Nn)),Fe=-1===Fe?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(Nn=>this.isOptionMatched(Nn)):Fe+this.focusedOptionIndex()):Fe=this.visibleOptions().findIndex(Nn=>this.isOptionMatched(Nn)),-1!==Fe&&(xt=!0),-1===Fe&&-1===this.focusedOptionIndex()&&(Fe=this.findFirstFocusedOptionIndex()),-1!==Fe&&this.changeFocusedOptionIndex(U,Fe),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),xt}isOptionMatched(U){return this.isValidOption(U)&&this.getOptionLabel(U).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(U){this._filterValue.set(U.target.value),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:U,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?x.D.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():x.D.focus(this.focusInputVie
1wChild?.nativeElement)}focus(){this.applyFocus()}clear(U){this.updateModel(null,U),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:U,value:this.value}),this.onClear.emit(U),this.resetFilter()}static \u0275fac=function(ot){return new(ot||Ge)(u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(u.gRc),u.rXU(u.SKi),u.rXU(Y.E),u.rXU(Y.r1))};static \u0275cmp=u.VBU({type:Ge,selectors:[["p-dropdown"]],contentQueries:function(ot,Fe,xt){if(1&ot&&u.wni(xt,Y.Ei,4),2&ot){let Nn;u.mGM(Nn=u.lsd())&&(Fe.templates=Nn)}},viewQuery:function(ot,Fe){if(1&ot&&(u.GBs(ge,5),u.GBs(Be,5),u.GBs(pe,5),u.GBs(ze,5),u.GBs(tt,5),u.GBs(He,5),u.GBs(st,5),u.GBs(At,5),u.GBs(gn,5)),2&ot){let xt;u.mGM(xt=u.lsd())&&(Fe.containerViewChild=xt.first),u.mGM(xt=u.lsd())&&(Fe.filterViewChild=xt.first),u.mGM(xt=u.lsd())&&(Fe.focusInputViewChild=xt.first),u.mGM(xt=u.lsd())&&(Fe.editableInputViewChild=xt.first),u.mGM(xt=u.lsd())&&(Fe.itemsViewChild=xt.first),u.mGM(xt=u.lsd())&&(Fe.scroller=xt.first),u.mGM(xt=u.lsd())&&(Fe.overlayViewChild=xt.first),u.mGM(xt=u.lsd())&&(Fe.firstHiddenFocusableElementOnOverlay=xt.first),u.mGM(xt=u.lsd())&&(Fe.lastHiddenFocusableElementOnOverlay=xt.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(ot,Fe){2&ot&&u.AVh("p-inputwrapper-filled",Fe.filled())("p-inputwrapper-focus",Fe.focused||Fe.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[u.Mj6.HasDecoratorInputTransform,"filter","filter",u.L39],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[u.Mj6.HasDecoratorInputTransform,"readonly","readonly",u.L39],required:[u.Mj6.HasDecoratorInputTransform,"required","required",u.L39],editable:[u.Mj6.HasDecoratorInputTransform,"editable","editable",u.L39],appendTo:"appendTo",tabindex:[u.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",u.Udg],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[u.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",u.L39],resetFilterOnHide:[u.Mj6.HasDecoratorInputTransform,"resetFilterOnHide","resetFilterOnHide",u.L39],checkmark:[u.Mj6.HasDecoratorInputTransform,"checkmark","checkmark",u.L39],dropdownIcon:"dropdownIcon",loading:[u.Mj6.HasDecoratorInputTransform,"loading","loading",u.L39],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[u.Mj6.HasDecoratorInputTransform,"autoDisplayFirst","autoDisplayFirst",u.L39],group:[u.Mj6.HasDecoratorInputTransform,"group","group",u.L39],showClear:[u.Mj6.HasDecoratorInputTransform,"showClear","showClear",u.L39],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[u.Mj6.HasDecoratorInputTransform,"lazy","lazy",u.L39],virtualScroll:[u.Mj6.HasDecoratorInputTransform,"virtualScroll","virtualScroll",u.L39],virtualScrollItemSize:[u.Mj6.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",u.Udg],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[u.Mj6.HasDecoratorInputTransform,"maxlength","maxlength",u.Udg],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[u.Mj6.HasDecoratorInputTransform,"focusOnHover","focusOnHover",u.L39],selectOnFocus:[u.Mj6.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",u.L39],autoOptionFocus:[u.Mj6.HasDecoratorInputTransform,"autoOptionFocus","autoOptionFocus",u.L39],autofocusFilter:[u.Mj6.HasDecoratorInputTransform,"autofocusFilter","autofocusFilter",u.L39],autoShowPanelOnPrintableCharacterKeyDown:[u.Mj6.HasDecoratorInputTransform,"autoShowPanelOnPrintableCharacterKeyDown","autoShowPanelOnPrintableCharacterKeyDown",u.L39],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[u.Jv_([Rn]),u.GFd],decls:12,vars:20,consts:[["container",""],["elseBlock",""],["overlay",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["items",""],["emptyFilter",""],["empty",""],[3,"click","ngClass","ngStyle"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"ngClass","disabled","autofocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger",3,"mousedown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"input","keydown","focus","blur","ngClass","disabled","autofocus"],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"click","
1styleClass"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-dropdown-trigger-icon",4,"ngIf"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-dropdown-header",3,"click",4,"ngIf"],["tabindex","0",1,"p-dropdown-items-wrapper",3,"ngStyle"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-dropdown-header",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-dropdown-filter-container"],["type","text","role","searchbox","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"input","keydown","blur","value","ngClass"],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass","ngStyle"],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-dropdown-empty-message",3,"ngStyle"]],template:function(ot,Fe){if(1&ot){const xt=u.RV6();u.j41(0,"div",15,0),u.bIt("click",function($r){return u.eBV(xt),u.Njj(Fe.onContainerClick($r))}),u.DNE(2,Rt,6,20,"span",16)(3,Qe,2,8,"input",17)(4,Qt,3,2,"ng-container",18),u.j41(5,"div",19),u.bIt("mousedown",function($r){return u.eBV(xt),u.Njj(Fe.onMouseDown($r))}),u.DNE(6,vn,3,2,"ng-container",20)(7,Fr,2,2,"ng-template",null,1,u.C5r),u.k0s(),u.j41(9,"p-overlay",21,2),u.mxI("visibleChange",function($r){return u.eBV(xt),u.DH7(Fe.overlayVisible,$r)||(Fe.overlayVisible=$r),u.Njj($r)}),u.bIt("onAnimationStart",function($r){return u.eBV(xt),u.Njj(Fe.onOverlayAnimationStart($r))})("onHide",function(){return u.eBV(xt),u.Njj(Fe.hide())}),u.DNE(11,Wt,13,18,"ng-template",22),u.k0s()()}if(2&ot){let xt;const Nn=u.sdS(8);u.HbH(Fe.styleClass),u.Y8G("ngClass",Fe.containerClass)("ngStyle",Fe.style),u.BMQ("id",Fe.id),u.R7$(2),u.Y8G("ngIf",!Fe.editable),u.R7$(),u.Y8G("ngIf",Fe.editable),u.R7$(),u.Y8G("ngIf",Fe.isVisibleClearIcon),u.R7$(),u.BMQ("aria-expanded",null!==(xt=Fe.overlayVisible)&&void 0!==xt&&xt)("data-pc-section","trigger"),u.R7$(),u.Y8G("ngIf",Fe.loading)("ngIfElse",Nn),u.R7$(3),u.R50("visible",Fe.overlayVisible),u.Y8G("options",Fe.overlayOptions)("target","@parent")("appendTo",Fe.appendTo)("autoZIndex",Fe.autoZIndex)("baseZIndex",Fe.baseZIndex)("showTransitionOptions",Fe.showTransitionOptions)("hideTransitionOptions",Fe.hideTransitionOptions)}},dependencies:()=>[p.YU,p.Sq,p.bT,p.T3,p.B3,R.hJ,Y.Ei,z.m,j.H,b.q,Ie.A,lt.D,je.W,go],styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}.p-float-label .p-dropdown .p-placeholder{opacity:0}
1}\n"],encapsulation:2,changeDetection:0})}return Ge})(),Cs=(()=>{class Ge{static \u0275fac=function(ot){return new(ot||Ge)};static \u0275mod=u.$C({type:Ge});static \u0275inj=u.G2t({imports:[p.MD,R.z_,Y.Gg,z.S,L.Z,j.h,b.u,Ie.A,lt.D,je.W,et,Re.S,R.z_,Y.Gg,j.h]})}return Ge})()},3306:(Lt,be,D)=>{D.d(be,{S:()=>v});var p=D(4438),u=D(461);let v=(()=>{class Y extends u.h{static \u0275fac=(()=>{let x;return function(L){return(x||(x=p.xGo(Y)))(L||Y)}})();static \u0275cmp=p.VBU({type:Y,selectors:[["CheckIcon"]],standalone:!0,features:[p.Vt3,p.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(R,L){1&R&&(p.qSk(),p.j41(0,"svg",0),p.nrm(1,"path",1),p.k0s()),2&R&&(p.HbH(L.getClassNames()),p.BMQ("aria-label",L.ariaLabel)("aria-hidden",L.ariaHidden)("role",L.role))},encapsulation:2})}return Y})()},2423:(Lt,be,D)=>{D.d(be,{D:()=>v});var p=D(4438),u=D(461);let v=(()=>{class Y extends u.h{static \u0275fac=(()=>{let x;return function(L){return(x||(x=p.xGo(Y)))(L||Y)}})();static \u0275cmp=p.VBU({type:Y,selectors:[["ChevronDownIcon"]],standalone:!0,features:[p.Vt3,p.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(R,L){1&R&&(p.qSk(),p.j41(0,"svg",0),p.nrm(1,"path",1),p.k0s()),2&R&&(p.HbH(L.getClassNames()),p.BMQ("aria-label",L.ariaLabel)("aria-hidden",L.ariaHidden)("role",L.role))},encapsulation:2})}return Y})()},9329:(Lt,be,D)=>{D.d(be,{P:()=>Y});var p=D(4438),u=D(461),v=D(4420);let Y=(()=>{class b extends u.h{pathId;ngOnInit(){this.pathId="url(#"+(0,v._Y)()+")"}static \u0275fac=(()=>{let R;return function(j){return(R||(R=p.xGo(b)))(j||b)}})();static \u0275cmp=p.VBU({type:b,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[p.Vt3,p.aNF],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.161
15 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(L,j){1&L&&(p.qSk(),p.j41(0,"svg",0)(1,"g"),p.nrm(2,"path",1)(3,"path",2)(4,"path",3),p.k0s(),p.j41(5,"defs")(6,"clipPath",4),p.nrm(7,"rect",5),p.k0s()()()),2&L&&(p.HbH(j.getClassNames()),p.BMQ("aria-label",j.ariaLabel)("aria-hidden",j.ariaHidden)("role",j.role),p.R7$(),p.BMQ("clip-path",j.pathId),p.R7$(5),p.Y8G("id",j.pathId))},encapsulation:2})}return b})()},1962:(Lt,be,D)=>{D.d(be,{e:()=>Y});var p=D(4438),u=D(461),v=D(4420);let Y=(()=>{class b extends u.h{pathId;ngOnInit(){this.pathId="url(#"+(0,v._Y)()+")"}static \u0275fac=(()=>{let R;return function(j){return(R||(R=p.xGo(b)))(j||b)}})();static \u0275cmp=p.VBU({type:b,selectors:[["InfoCircleIcon"]],standalone:!0,features:[p.Vt3,p.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(L,j){1&L&&(p.qSk(),p.j41(0,"svg",0)(1,"g"),p.nrm(2,"path",1),p.k0s(),p.j41(3,"defs")(4,"clipPath",2),p.nrm(5,"rect",3),p.k0s()()()),2&L&&(p.HbH(j.getClassNames()),p.BMQ("aria-label",j.ariaLabel)("aria-hidden",j.ariaHidden)("role",j.role),p.R7$(),p.BMQ("clip-path",j.pathId),p.R7$(3),p.Y8G("id",j.pathId))},encapsulation:2})}return b})()},5998:(Lt,be,D)=>{D.d(be,{W:()=>Y});var p=D(4438),u=D(461),v=D(4420);let Y=(()=>{class b extends u.h{pathId;ngOnInit(){this.pathId="url(#"+(0,v._Y)()+")"}static \u0275fac=(()=>{let R;return function(j){return(R||(R=p.xGo(b)))(j||b)}})();static \u0275cmp=p.VBU({type:b,selectors:[["SearchIcon"]],standalone:!0,features:[p.Vt3,p.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244
113.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(L,j){1&L&&(p.qSk(),p.j41(0,"svg",0)(1,"g"),p.nrm(2,"path",1),p.k0s(),p.j41(3,"defs")(4,"clipPath",2),p.nrm(5,"rect",3),p.k0s()()()),2&L&&(p.HbH(j.getClassNames()),p.BMQ("aria-label",j.ariaLabel)("aria-hidden",j.ariaHidden)("role",j.role),p.R7$(),p.BMQ("clip-path",j.pathId),p.R7$(3),p.Y8G("id",j.pathId))},encapsulation:2})}return b})()},8757:(Lt,be,D)=>{D.d(be,{N:()=>Y});var p=D(4438),u=D(461),v=D(4420);let Y=(()=>{class b extends u.h{pathId;ngOnInit(){this.pathId="url(#"+(0,v._Y)()+")"}static \u0275fac=(()=>{let R;return function(j){return(R||(R=p.xGo(b)))(j||b)}})();static \u0275cmp=p.VBU({type:b,selectors:[["SpinnerIcon"]],standalone:!0,features:[p.Vt3,p.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.752
11 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(L,j){1&L&&(p.qSk(),p.j41(0,"svg",0)(1,"g"),p.nrm(2,"path",1),p.k0s(),p.j41(3,"defs")(4,"clipPath",2),p.nrm(5,"rect",3),p.k0s()()()),2&L&&(p.HbH(j.getClassNames()),p.BMQ("aria-label",j.ariaLabel)("aria-hidden",j.ariaHidden)("role",j.role),p.R7$(),p.BMQ("clip-path",j.pathId),p.R7$(3),p.Y8G("id",j.pathId))},encapsulation:2})}return b})()},1512:(Lt,be,D)=>{D.d(be,{A:()=>v});var p=D(4438),u=D(461);let v=(()=>{class Y extends u.h{static \u0275fac=(()=>{let x;return function(L){return(x||(x=p.xGo(Y)))(L||Y)}})();static \u0275cmp=p.VBU({type:Y,selectors:[["TimesIcon"]],standalone:!0,features:[p.Vt3,p.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(R,L){1&R&&(p.qSk(),p.j41(0,"svg",0),p.nrm(1,"path",1),p.k0s()),2&R&&(p.HbH(L.getClassNames()),p.BMQ("aria-label",L.ariaLabel)("aria-hidden",L.ariaHidden)("role",L.role))},encapsulation:2})}return Y})()},2816:(Lt,be,D)=>{D.d(be,{I:()=>Y});var p=D(4438),u=D(461),v=D(4420);let Y=(()=>{class b extends u.h{pathId;ngOnInit(){this.pathId="url(#"+(0,v._Y)()+")"}static \u0275fac=(()=>{let R;return function(j){return(R||(R=p.xGo(b)))(j||b)}})();static \u0275cmp=p.VBU({type:b,selectors:[["TimesCircleIcon"]],standalone:!0,features:[p.Vt3,p.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8
1001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(L,j){1&L&&(p.qSk(),p.j41(0,"svg",0)(1,"g"),p.nrm(2,"path",1),p.k0s(),p.j41(3,"defs")(4,"clipPath",2),p.nrm(5,"rect",3),p.k0s()()()),2&L&&(p.HbH(j.getClassNames()),p.BMQ("aria-label",j.ariaLabel)("aria-hidden",j.ariaHidden)("role",j.role),p.R7$(),p.BMQ("clip-path",j.pathId),p.R7$(3),p.Y8G("id",j.pathId))},encapsulation:2})}return b})()},9335:(Lt,be,D)=>{D.d(be,{hJ:()=>ut,z_:()=>Ce});var p=D(9969),u=D(177),v=D(4438),Y=D(9417),b=D(5779),x=D(1455),R=D(4420);const L=["overlay"],j=["content"],z=["*"],Q=(me,ht,ge,Be,pe,ze,tt,He,st,At,gn,fn,ln,xe)=>({"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":me,"p-overlay-center":ht,"p-overlay-top":ge,"p-overlay-top-start":Be,"p-overlay-top-end":pe,"p-overlay-bottom":ze,"p-overlay-bottom-start":tt,"p-overlay-bottom-end":He,"p-overlay-left":st,"p-overlay-left-start":At,"p-overlay-left-end":gn,"p-overlay-right":fn,"p-overlay-right-start":ln,"p-overlay-right-end":xe}),Ie=(me,ht,ge)=>({showTransitionParams:me,hideTransitionParams:ht,transform:ge}),Re=me=>({value:"visible",params:me}),Se=me=>({mode:me}),et=me=>({$implicit:me});function lt(me,ht){1&me&&v.eu8(0)}function je(me,ht){if(1&me){const ge=v.RV6();v.j41(0,"div",3,1),v.bIt("click",function(pe){v.eBV(ge);const ze=v.XpG(2);return v.Njj(ze.onOverlayContentClick(pe))})("@overlayContentAnimation.start",function(pe){v.eBV(ge);const ze=v.XpG(2);return v.Njj(ze.onOverlayContentAnimationStart(pe))})("@overlayContentAnimation.done",function(pe){v.eBV(ge);const ze=v.XpG(2);return v.Njj(ze.onOverlayContentAnimationDone(pe))}),v.SdG(2),v.DNE(3,lt,1,0,"ng-container",4),v.k0s()}if(2&me){const ge=v.XpG(2);v.HbH(ge.contentStyleClass),v.Y8G("ngStyle",ge.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",v.eq3(11,Re,v.sMw(7,Ie,ge.showTransitionOptions,ge.hideTransitionOptions,ge.transformOptions[ge.modal?ge.overlayResponsiveDirection:"default"]))),v.R7$(3),v.Y8G("ngTemplateOutlet",ge.contentTemplate)("ngTemplateOutletContext",v.eq3(15,et,v.eq3(13,Se,ge.overlayMode)))}}function wt(me,ht){if(1&me){const ge=v.RV6();v.j41(0,"div",3,0),v.bIt("click",function(){v.eBV(ge);const pe=v.XpG();return v.Njj(pe.onOverlayClick())}),v.DNE(2,je,4,17,"div",2),v.k0s()}if(2&me){const ge=v.XpG();v.HbH(ge.styleClass),v.Y8G("ngStyle",ge.style)("ngClass",v.zJS(5,Q,[ge.modal,ge.modal&&"center"===ge.overlayResponsiveDirection,ge.modal&&"top"===ge.overlayResponsiveDirection,ge.modal&&"top-start"===ge.overlayResponsiveDirection,ge.modal&&"top-end"===ge.overlayResponsiveDirection,ge.modal&&"bottom"===ge.overlayResponsiveDirection,ge.modal&&"bottom-start"===ge.overlayResponsiveDirection,ge.modal&&"bottom-end"===ge.overlayResponsiveDirection,ge.modal&&"left"===ge.overlayResponsiveDirection,ge.modal&&"left-start"===ge.overlayResponsiveDirection,ge.modal&&"left-end"===ge.overlayResponsiveDirection,ge.modal&&"right"===ge.overlayResponsiveDirection,ge.modal&&"right-start"===ge.overlayResponsiveDirection,ge.modal&&"right-end"===ge.overlayResponsiveDirection])),v.R7$(2),v.Y8G("ngIf",ge.visible)}}const Zt={provide:Y.kq,useExisting:(0,v.Rfq)(()=>ut),multi:!0},En=(0,p.lY)([(0,p.iF)({transform:"{{transform}}",opacity:0}),(0,p.i0)("{{showTransitionParams}}")]),Le=(0,p.lY)([(0,p.i0)("{{hideTransitionParams}}",(0,p.iF)({transform:"{{transform}}",opacity:0}))]);let ut=(()=>{class me{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(ge){this._visible=ge,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(ge){this._mode=ge}get style(){return R.BF.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}
1set style(ge){this._style=ge}get styleClass(){return R.BF.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(ge){this._styleClass=ge}get contentStyle(){return R.BF.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(ge){this._contentStyle=ge}get contentStyleClass(){return R.BF.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(ge){this._contentStyleClass=ge}get target(){const ge=this._target||this.overlayOptions?.target;return void 0===ge?"@prev":ge}set target(ge){this._target=ge}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(ge){this._appendTo=ge}get autoZIndex(){const ge=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===ge||ge}set autoZIndex(ge){this._autoZIndex=ge}get baseZIndex(){const ge=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===ge?0:ge}set baseZIndex(ge){this._baseZIndex=ge}get showTransitionOptions(){const ge=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===ge?".12s cubic-bezier(0, 0, 0.2, 1)":ge}set showTransitionOptions(ge){this._showTransitionOptions=ge}get hideTransitionOptions(){const ge=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===ge?".1s linear":ge}set hideTransitionOptions(ge){this._hideTransitionOptions=ge}get listener(){return this._listener||this.overlayOptions?.listener}set listener(ge){this._listener=ge}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(ge){this._responsive=ge}get options(){return this._options}set options(ge){this._options=ge}visibleChange=new v.bkB;onBeforeShow=new v.bkB;onShow=new v.bkB;onBeforeHide=new v.bkB;onHide=new v.bkB;onAnimationStart=new v.bkB;onAnimationDone=new v.bkB;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if((0,u.UE)(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return x.D.getTargetElement(this.target,this.el?.nativeElement)}constructor(ge,Be,pe,ze,tt,He,st,At){this.document=ge,this.platformId=Be,this.el=pe,this.renderer=ze,this.config=tt,this.overlayService=He,this.cd=st,this.zone=At,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(ge=>{ge.getType(),this.contentTemplate=ge.template})}show(ge,Be=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:ge||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),Be&&x.D.focus(this.targetEl),this.modal&&x.D.addClass(this.document?.body,"p-overflow-hidden")}hide(ge,Be=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:ge||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),Be&&x.D.focus(this.targetEl),this.modal&&x.D.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&x.D.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(ge){this._visible=ge,this.visibleChange.emit(ge)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(ge){this.overlayService.add({originalEvent:ge,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(ge){switch(ge.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&R.Q$.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),x.D.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&x.D.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",ge)}onOverlayContentAnimationDone(ge){const Be=this.overlayEl||ge.element.parentElement;switch(ge.toState){case"visible":this.visible&&this.show(Be,!0),this.bindListeners();break;case"void":if(!this.visible){this.hide(Be,!0),this.modalVisible=!1,this.unbindListeners(),x.D.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),R.Q$.clear(Be),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",ge)}handleEvents(ge,Be){this[ge].emit(Be),this.options&&this.options[ge]&&this.options[ge](Be),this.config?.overlayOptions&&(this.config?.overlayOptions)[ge]&&(this.config?.overlayOptions)[ge](Be)}bindListeners(){this.unbindListeners(),this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new x.b(this.targetEl,ge=>{(!this.listener||this.listener(ge,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(ge,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",ge=>{const pe=!(this.targetEl&&(this.targetEl.isSameNode(ge.target)||!this.isOverlayClicked&&this.targetEl.contains(ge.target))||this.isOverlayContentClicked);(this.listener?this.listener(ge,{type:"outside",mode:this.overlayMode,valid:3!==ge.which&&pe}):pe)&&this.hide(ge),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",ge=>{(this.listener?this.listener(ge,{type:"resize",mode:this.overlayMode,valid:!x.D.isTouchDevice()}):!x.D.isTouchDevice())&&this.hide(ge,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",ge=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===ge.code&&(this.listener?this.listener(ge,{type:"keydown",mode:this.overlayMode,valid:!x.D.isTouchDevice()}):!x.D.isTouchDevice())&&this.zone.run(()=>{this.hide(ge,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(x.D.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),R.Q$.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(Be){return new(Be||me)(v.rXU(u.qQ),v.rXU(v.Agw),v.rXU(v.aKT),v.rXU(v.sFG),v.rXU(b.r1),v.rXU(b.si),v.rXU(v.gRc),v.rXU(v.SKi))};static \u0275cmp=v.VBU({type:me,selectors:[["p-overlay"]],contentQueries:function(Be,pe,ze){if(1&Be&&v.wni(ze,b.Ei,4),2&Be){let tt;v.mGM(tt=v.lsd())&&(pe.templates=tt)}},viewQuery:function(Be,pe){if(1&Be&&(v.GBs(L,5),v.GBs(j,5)),2&Be){let ze;v.mGM(ze=v.lsd())&&(pe.overlayViewChild=ze.first),v.mGM(ze=v.lsd())&&(pe.contentViewChild=ze.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[v.Jv_([Zt])],ngContentSelectors:z,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"click","ngStyle","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Be,pe){1&Be&&(v.NAR(),v.DNE(0,wt,3,20,"div",2)),2&Be&&v.Y8G("ngIf",pe.modalVisible)},dependencies:[u.YU,u.bT,u.T3,u.B3],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[(0,p.hZ)("overlayContentAnimation",[(0,p.kY)(":enter",[(0,p.sM)(En)]),(0,p.kY)(":leave",[(0,p.sM)(Le)])])]},changeDetection:0})}return me})(),Ce=(()=>{class me{static \u0275fac=function(Be){return new(Be||me)};static \u0275mod=v.$C({type:me});static \u0275inj=v.G2t({imports:[u.MD,b.Gg,b.Gg]})}return me})()},563:(Lt,be,D)=>{D.d(be,{Z:()=>x,n:()=>b});var p=D(177),u=D(4438),v=D(1455),Y=D(5779);let b=(()=>{class R{document;platformId;renderer;el;zone;config;constructor(j,z,Q,Ie,Re,Se){this.document=j,this.platformId=z,this.renderer=Q,this.el=Ie,this.zone=Re,this.config=Se}animationListener;mouseDownListener;timeout;ngAfterViewInit(){(0,p.UE)(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(j){let z=this.getInk();if(!z||"none"===this.document.defaultView?.getComputedStyle(z,null).display)return;if(v.D.removeClass(z,"p-ink-active"),!v.D.getHeight(z)&&!v.D.getWidth(z)){let Se=Math.max(v.D.getOuterWidth(this.el.nativeElement),v.D.getOuterHeight(this.el.nativeElement));z.style.height=Se+"px",z.style.width=Se+"px"}let Q=v.D.getOffset(this.el.nativeElement),Ie=j.pageX-Q.left+this.document.body.scrollTop-v.D.getWidth(z)/2,Re=j.pageY-Q.top+this.document.body.scrollLeft-v.D.getHeight(z)/2;this.renderer.setStyle(z,"top",Re+"px"),this.renderer.setStyle(z,"left",Ie+"px"),v.D.addClass(z,"p-ink-active"),this.timeout=setTimeout(()=>{let Se=this.getInk();Se&&v.D.removeClass(Se,"p-ink-active")},401)}getInk(){const j=this.el.nativeElement.children;for(let z=0;z<j.length;z++)if("string"==typeof j[z].className&&-1!==j[z].className.indexOf("p-ink"))return j[z];return null}resetInk(){let j=this.getInk();j&&v.D.removeClass(j,"p-ink-active")}onAnimationEnd(j){this.timeout&&clearTimeout(this.timeout),v.D.removeClass(j.currentTarget,"p-ink-active")}create(){let j=this.renderer.createElement("span");this.renderer.addClass(j,"p-ink"),this.renderer.appendChild(this.el.nativeElement,j),this.renderer.setAttribute(j,"aria-hidden","true"),this.renderer.setAttribute(j,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(j,"animationend",this.onAnimationEnd.bind(this)))}remove(){let j=this.getInk();j&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,v.D.removeElement(j))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}static \u0275fac=function(z){return new(z||R)(u.rXU(p.qQ),u.rXU(u.Agw),u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(Y.r1,8))};static \u0275dir=u.FsC({type:R,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"],standalone:!0})}return R})(),x=(()=>{class R{static \u0275fac=function(z){return new(z||R)};static \u0275mod=u.$C({type:R});static \u0275inj=u.G2t({})}return R})()},9071:(Lt,be,D)=>{D.d(be,{H:()=>fn,h:()=>ln});var p=D(177),u=D(4438),v=D(5779),Y=D(1455),b=D(8757);const x=["element"],R=["content"],L=["*"],j=(xe,ne,F)=>({"p-scroller":!0,"p-scroller-inline":xe,"p-both-scroll":ne,"p-horizontal-scroll":F}),z=(xe,ne)=>({$implicit:xe,options:ne}),Q=xe=>({"p-scroller-loading":xe}),Ie=xe=>({"p-component-overlay":xe}),Re=xe=>({numCols:xe}),Se=xe=>({options:xe}),et=()=>({styleClass:"p-scroller-loading-icon"}),lt=(xe,ne)=>({rows:xe,columns:ne});function je(xe,ne){1&xe&&u.eu8(0)}function wt(xe,ne){if(1&xe&&(u.qex(0),u.DNE(1,je,1,0,"ng-container",10),u.bVm()),2&xe){const F=u.XpG(2);u.R7$(),u.Y8G("ngTemplateOutlet",F.contentTemplate)("ngTemplateOutletContext",u.l_i(2,z,F.loadedItems,F.getContentOptions()))}}function Zt(xe,ne){1&xe&&u.eu8(0)}function En(xe,ne){if(1&xe&&(u.qex(0),u.DNE(1,Zt,1,0,"ng-container",10),u.bVm()),2&xe){const F=ne.$implicit,te=ne.index,ce=u.XpG(3);u.R7$(),u.Y8G("ngTemplateOutlet",ce.itemTemplate)("ngTemplateOutletContext",u.l_i(2,z,F,ce.getOptions(te)))}}function Le(xe,ne){if(1&xe&&(u.j41(0,"div",11,3),u.DNE(2,En,2,5,"ng-container",12),u.k0s()),2&xe){const F=u.XpG(2);u.Y8G("ngClass",u.eq3(5,Q,F.d_loading))("ngStyle",F.contentStyle),u.BMQ("data-pc-section","content"),u.R7$(2),u.Y8G("ngForOf",F.loadedItems)("ngForTrackBy",F._trackBy||F.index)}}function ut(xe,ne){if(1&xe&&u.nrm(0,"div",13),2&xe){const F=u.XpG(2);u.Y8G("ngStyle",F.spacerStyle),u.BMQ("data-pc-section","spacer")}}function Ce(xe,ne){1&xe&&u.eu8(0)}function me(xe,ne){if(1&xe&&(u.qex(0),u.DNE(1,Ce,1,0,"ng-container",10),u.bVm()),2&xe){const F=ne.index,te=u.XpG(4);u.R7$(),u.Y8G("ngTemplateOutlet",te.loaderTemplate)("ngTemplateOutletContext",u.eq3(4,Se,te.getLoaderOptions(F,te.both&&u.eq3(2,Re,te._numItemsInViewport.cols))))}}function ht(xe,ne){if(1&xe&&(u.qex(0),u.DNE(1,me,2,6,"ng-container",15),u.bVm()),2&xe){const F=u.XpG(3);u.R7$(),u.Y8G("ngForOf",F.loaderArr)}}function ge(xe,ne){1&xe&&u.eu8(0)}function Be(xe,ne){if(1&xe&&(u.qex(0),u.DNE(1,ge,1,0,"ng-container",10),u.bVm()),2&xe){const F=u.XpG(4);u.R7$(),u.Y8G("ngTemplateOutlet",F.loaderIconTemplate)("ngTemplateOutletContext",u.eq3(3,Se,u.lJ4(2,et)))}}function pe(xe,ne){1&xe&&u.nrm(0,"SpinnerIcon",16),2&xe&&(u.Y8G("styleClass","p-scroller-loading-icon pi-spin"),u.BMQ("data-pc-section","loadingIcon"))}function ze(xe,ne){if(1&xe&&u.DNE(0,Be,2,5,"ng-container",6)(1,pe,1,2,"ng-template",null,5,u.C5r),2&xe){const F=u.sdS(2),te=u.XpG(3);u.Y8G("ngIf",te.loaderIconTemplate)("ngIfElse
1",F)}}function tt(xe,ne){if(1&xe&&(u.j41(0,"div",14),u.DNE(1,ht,2,1,"ng-container",6)(2,ze,3,2,"ng-template",null,4,u.C5r),u.k0s()),2&xe){const F=u.sdS(3),te=u.XpG(2);u.Y8G("ngClass",u.eq3(4,Ie,!te.loaderTemplate)),u.BMQ("data-pc-section","loader"),u.R7$(),u.Y8G("ngIf",te.loaderTemplate)("ngIfElse",F)}}function He(xe,ne){if(1&xe){const F=u.RV6();u.qex(0),u.j41(1,"div",7,1),u.bIt("scroll",function(ce){u.eBV(F);const Te=u.XpG();return u.Njj(Te.onContainerScroll(ce))}),u.DNE(3,wt,2,5,"ng-container",6)(4,Le,3,7,"ng-template",null,2,u.C5r)(6,ut,1,2,"div",8)(7,tt,4,6,"div",9),u.k0s(),u.bVm()}if(2&xe){const F=u.sdS(5),te=u.XpG();u.R7$(),u.HbH(te._styleClass),u.Y8G("ngStyle",te._style)("ngClass",u.sMw(12,j,te.inline,te.both,te.horizontal)),u.BMQ("id",te._id)("tabindex",te.tabindex)("data-pc-name","scroller")("data-pc-section","root"),u.R7$(2),u.Y8G("ngIf",te.contentTemplate)("ngIfElse",F),u.R7$(3),u.Y8G("ngIf",te._showSpacer),u.R7$(),u.Y8G("ngIf",!te.loaderDisabled&&te._showLoader&&te.d_loading)}}function st(xe,ne){1&xe&&u.eu8(0)}function At(xe,ne){if(1&xe&&(u.qex(0),u.DNE(1,st,1,0,"ng-container",10),u.bVm()),2&xe){const F=u.XpG(2);u.R7$(),u.Y8G("ngTemplateOutlet",F.contentTemplate)("ngTemplateOutletContext",u.l_i(5,z,F.items,u.l_i(2,lt,F._items,F.loadedColumns)))}}function gn(xe,ne){if(1&xe&&(u.SdG(0),u.DNE(1,At,2,8,"ng-container",17)),2&xe){const F=u.XpG();u.R7$(),u.Y8G("ngIf",F.contentTemplate)}}let fn=(()=>{class xe{document;platformId;renderer;cd;zone;get id(){return this._id}set id(F){this._id=F}get style(){return this._style}set style(F){this._style=F}get styleClass(){return this._styleClass}set styleClass(F){this._styleClass=F}get tabindex(){return this._tabindex}set tabindex(F){this._tabindex=F}get items(){return this._items}set items(F){this._items=F}get itemSize(){return this._itemSize}set itemSize(F){this._itemSize=F}get scrollHeight(){return this._scrollHeight}set scrollHeight(F){this._scrollHeight=F}get scrollWidth(){return this._scrollWidth}set scrollWidth(F){this._scrollWidth=F}get orientation(){return this._orientation}set orientation(F){this._orientation=F}get step(){return this._step}set step(F){this._step=F}get delay(){return this._delay}set delay(F){this._delay=F}get resizeDelay(){return this._resizeDelay}set resizeDelay(F){this._resizeDelay=F}get appendOnly(){return this._appendOnly}set appendOnly(F){this._appendOnly=F}get inline(){return this._inline}set inline(F){this._inline=F}get lazy(){return this._lazy}set lazy(F){this._lazy=F}get disabled(){return this._disabled}set disabled(F){this._disabled=F}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(F){this._loaderDisabled=F}get columns(){return this._columns}set columns(F){this._columns=F}get showSpacer(){return this._showSpacer}set showSpacer(F){this._showSpacer=F}get showLoader(){return this._showLoader}set showLoader(F){this._showLoader=F}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(F){this._numToleratedItems=F}get loading(){return this._loading}set loading(F){this._loading=F}get autoSize(){return this._autoSize}set autoSize(F){this._autoSize=F}get trackBy(){return this._trackBy}set trackBy(F){this._trackBy=F}get options(){return this._options}set options(F){this._options=F,F&&"object"==typeof F&&Object.entries(F).forEach(([te,ce])=>this[`_${te}`]!==ce&&(this[`_${te}`]=ce))}onLazyLoad=new u.bkB;onScroll=new u.bkB;onScrollIndexChange=new u.bkB;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;resizeObserver;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(F=>this._columns?F:F.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}constructor(F,te,ce,Te,ke){this.document=F,this.platformId=te,this.renderer=ce,this.cd=Te,this.zone=ke}ngOnInit(){this.setInitialState()}ngOnChanges(F){let te=!1;if(F.loading){const{previousValue:ce,currentValue:Te}=F.loading;this.lazy&&ce!==Te&&Te!==this.d_loading&&(this.d_loading=Te,te=!0)}if(F.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),F.numToleratedItems){const{previousValue:ce,currentValue:Te}=F.numToleratedItems;ce!==Te&&Te!==this.d_numToleratedItems&&(this.d_numToleratedItems=Te)}if(F.options){const{previousValue:ce,currentValue:Te}=F.options;this.lazy&&ce?.loading!==Te?.loading&&Te?.loading!==this.d_loading&&(this.d_loading=Te.loading,te=!0),ce?.numToleratedItems!==Te?.numToleratedItems&&Te?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=Te.numToleratedItems)}this.initialized&&!te&&(F.items?.previousValue?.length!==F.items?.currentValue?.length||F.itemSize||F.scrollHeight||F.scrollWidth)&&(this.init(),this.calculateAutoSize())}
1ngAfterContentInit(){this.templates.forEach(F=>{switch(F.getType()){case"content":this.contentTemplate=F.template;break;case"item":default:this.itemTemplate=F.template;break;case"loader":this.loaderTemplate=F.template;break;case"loadericon":this.loaderIconTemplate=F.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){(0,p.UE)(this.platformId)&&!this.initialized&&Y.D.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.calculateAutoSize(),this.defaultWidth=Y.D.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=Y.D.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=Y.D.getWidth(this.contentEl),this.defaultContentHeight=Y.D.getHeight(this.contentEl),this.resizeObserver=new ResizeObserver(()=>this.onResize()),this.resizeObserver.observe(this.elementViewChild?.nativeElement),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.cd.detectChanges())}setContentEl(F){this.contentEl=F||this.contentViewChild?.nativeElement||Y.D.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(F){return Math.floor(((F??this.first)+4*this.d_numToleratedItems)/(this._step||1))}isPageChanged(F){return!this._step||this.page!==this.getPageByFirst(F??this.first)}scrollTo(F){this.elementViewChild?.nativeElement?.scrollTo(F)}scrollToIndex(F,te="auto"){if(this.both?F.every(Te=>Te>-1):F>-1){const Te=this.first,{scrollTop:ke=0,scrollLeft:Rt=0}=this.elementViewChild?.nativeElement,{numToleratedItems:Qe}=this.calculateNumItems(),On=this.getContentPosition(),hn=this.itemSize,xn=(Pt=0,An)=>Pt<=An?0:Pt,en=(Pt,An,vn)=>Pt*An+vn,Qt=(Pt=0,An=0)=>this.scrollTo({left:Pt,top:An,behavior:te});let Ht=this.both?{rows:0,cols:0}:0,ar=!1,Gn=!1;this.both?(Ht={rows:xn(F[0],Qe[0]),cols:xn(F[1],Qe[1])},Qt(en(Ht.cols,hn[1],On.left),en(Ht.rows,hn[0],On.top)),Gn=this.lastScrollPos.top!==ke||this.lastScrollPos.left!==Rt,ar=Ht.rows!==Te.rows||Ht.cols!==Te.cols):(Ht=xn(F,Qe),this.horizontal?Qt(en(Ht,hn,On.left),ke):Qt(Rt,en(Ht,hn,On.top)),Gn=this.lastScrollPos!==(this.horizontal?Rt:ke),ar=Ht!==Te),this.isRangeChanged=ar,Gn&&(this.first=Ht)}}scrollInView(F,te,ce="auto"){if(te){const{first:Te,viewport:ke}=this.getRenderedRange(),Rt=(hn=0,xn=0)=>this.scrollTo({left:hn,top:xn,behavior:ce}),On="to-end"===te;if("to-start"===te){if(this.both)ke.first.rows-Te.rows>F[0]?Rt(ke.first.cols*this._itemSize[1],(ke.first.rows-1)*this._itemSize[0]):ke.first.cols-Te.cols>F[1]&&Rt((ke.first.cols-1)*this._itemSize[1],ke.first.rows*this._itemSize[0]);else if(ke.first-Te>F){const hn=(ke.first-1)*this._itemSize;this.horizontal?Rt(hn,0):Rt(0,hn)}}else if(On)if(this.both)ke.last.rows-Te.rows<=F[0]+1?Rt(ke.first.cols*this._itemSize[1],(ke.first.rows+1)*this._itemSize[0]):ke.last.cols-Te.cols<=F[1]+1&&Rt((ke.first.cols+1)*this._itemSize[1],ke.first.rows*this._itemSize[0]);else if(ke.last-Te<=F+1){const hn=(ke.first+1)*this._itemSize;this.horizontal?Rt(hn,0):Rt(0,hn)}}else this.scrollToIndex(F,ce)}getRenderedRange(){const F=(Te,ke)=>ke||Te?Math.floor(Te/(ke||Te)):0;let te=this.first,ce=0;if(this.elementViewChild?.nativeElement){const{scrollTop:Te,scrollLeft:ke}=this.elementViewChild.nativeElement;this.both?(te={rows:F(Te,this._itemSize[0]),cols:F(ke,this._itemSize[1])},ce={rows:te.rows+this.numItemsInViewport.rows,cols:te.cols+this.numItemsInViewport.cols}):(te=F(this.horizontal?ke:Te,this._itemSize),ce=te+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:te,last:ce}}}calculateNumItems(){const F=this.getContentPosition(),te=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-F.left:0)||0,ce=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-F.top:0)||0,Te=(On,hn)=>hn||On?Math.ceil(On/(hn||On)):0,ke=On=>Math.ceil(On/2),Rt=this.both?{rows:Te(ce,this._itemSize[0]),cols:Te(te,this._itemSize[1])}:Te(this.horizontal?te:ce,this._itemSize);return{numItemsInViewport:Rt,numToleratedItems:this.d_numToleratedItems||(this.both?[ke(Rt.rows),ke(Rt.cols)]:ke(Rt))}}calculateOptions(){const{numItemsInViewport:F,numToleratedItems:te}=this.calculateNumItems(),ce=(Rt,Qe,On,hn=!1)=>this.getLast(Rt+Qe+(Rt<On?2:3)*On,hn),Te=this.first,ke=this.both?{rows:ce(this.first.rows,F.rows,te[0]),c
1ols:ce(this.first.cols,F.cols,te[1],!0)}:ce(this.first,F,te);this.last=ke,this.numItemsInViewport=F,this.d_numToleratedItems=te,this.showLoader&&(this.loaderArr=this.both?Array.from({length:F.rows}).map(()=>Array.from({length:F.cols})):Array.from({length:F})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:Te.cols}:0:Te,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[F,te]=[Y.D.getWidth(this.contentEl),Y.D.getHeight(this.contentEl)];F!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),te!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[ce,Te]=[Y.D.getWidth(this.elementViewChild.nativeElement),Y.D.getHeight(this.elementViewChild.nativeElement)];this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain="",this.defaultWidth=ce,this.defaultHeight=Te,this.defaultContentWidth=F,this.defaultContentHeight=te,(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=ce<this.defaultWidth?ce+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=Te<this.defaultHeight?Te+"px":this._scrollHeight||this.defaultHeight+"px")}})}getLast(F=0,te=!1){return this._items?Math.min(te?(this._columns||this._items[0]).length:this._items.length,F):0}getContentPosition(){if(this.contentEl){const F=getComputedStyle(this.contentEl),te=parseFloat(F.paddingLeft)+Math.max(parseFloat(F.left)||0,0),ce=parseFloat(F.paddingRight)+Math.max(parseFloat(F.right)||0,0),Te=parseFloat(F.paddingTop)+Math.max(parseFloat(F.top)||0,0),ke=parseFloat(F.paddingBottom)+Math.max(parseFloat(F.bottom)||0,0);return{left:te,right:ce,top:Te,bottom:ke,x:te+ce,y:Te+ke}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){const F=this.elementViewChild.nativeElement.parentElement.parentElement,te=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||F.offsetWidth}px`,ce=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||F.offsetHeight}px`,Te=(ke,Rt)=>this.elementViewChild.nativeElement.style[ke]=Rt;this.both||this.horizontal?(Te("height",ce),Te("width",te)):Te("height",ce)}}setSpacerSize(){if(this._items){const F=(ce,Te,ke)=>this.spacerStyle={...this.spacerStyle,[`${ce}`]:Te*ke+"px"},te=this._items.length;this.both?(F("height",te,this._itemSize[0]),F("width",this._columns?.length||this._items[1]?.length,this._itemSize[1])):this.horizontal?F("width",this._columns?.length||this._items.length,this._itemSize):F("height",te,this._itemSize)}}setContentPosition(F){if(this.contentEl&&!this._appendOnly){const te=F?F.first:this.first,ce=(ke,Rt)=>ke*Rt,Te=(ke=0,Rt=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${ke}px, ${Rt}px, 0)`};if(this.both)Te(ce(te.cols,this._itemSize[1]),ce(te.rows,this._itemSize[0]));
1else{const ke=ce(te,this._itemSize);this.horizontal?Te(ke,0):Te(0,ke)}}}onScrollPositionChange(F){const te=F.target,ce=this.getContentPosition(),Te=(Gn,Pt)=>Gn?Gn>Pt?Gn-Pt:Gn:0,ke=(Gn,Pt)=>Pt||Gn?Math.floor(Gn/(Pt||Gn)):0,Rt=(Gn,Pt,An,vn,Si,_t)=>Gn<=Si?Si:_t?An-vn-Si:Pt+Si-1,Qe=(Gn,Pt,An,vn,Si,_t,Vn)=>Gn<=_t?0:Math.max(0,Vn?Gn<Pt?An:Gn-_t:Gn>Pt?An:Gn-2*_t),On=(Gn,Pt,An,vn,Si,_t=!1)=>{let Vn=Pt+vn+2*Si;return Gn>=Si&&(Vn+=Si+1),this.getLast(Vn,_t)},hn=Te(te.scrollTop,ce.top),xn=Te(te.scrollLeft,ce.left);let en=this.both?{rows:0,cols:0}:0,Qt=this.last,Ht=!1,ar=this.lastScrollPos;if(this.both){const Gn=this.lastScrollPos.top<=hn,Pt=this.lastScrollPos.left<=xn;if(!this._appendOnly||this._appendOnly&&(Gn||Pt)){const An={rows:ke(hn,this._itemSize[0]),cols:ke(xn,this._itemSize[1])},vn={rows:Rt(An.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],Gn),cols:Rt(An.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],Pt)};en={rows:Qe(An.rows,vn.rows,this.first.rows,0,0,this.d_numToleratedItems[0],Gn),cols:Qe(An.cols,vn.cols,this.first.cols,0,0,this.d_numToleratedItems[1],Pt)},Qt={rows:On(An.rows,en.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:On(An.cols,en.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},Ht=en.rows!==this.first.rows||Qt.rows!==this.last.rows||en.cols!==this.first.cols||Qt.cols!==this.last.cols||this.isRangeChanged,ar={top:hn,left:xn}}}else{const Gn=this.horizontal?xn:hn,Pt=this.lastScrollPos<=Gn;if(!this._appendOnly||this._appendOnly&&Pt){const An=ke(Gn,this._itemSize);en=Qe(An,Rt(An,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Pt),this.first,0,0,this.d_numToleratedItems,Pt),Qt=On(An,en,0,this.numItemsInViewport,this.d_numToleratedItems),Ht=en!==this.first||Qt!==this.last||this.isRangeChanged,ar=Gn}}return{first:en,last:Qt,isRangeChanged:Ht,scrollPos:ar}}onScrollChange(F){const{first:te,last:ce,isRangeChanged:Te,scrollPos:ke}=this.onScrollPositionChange(F);if(Te){const Rt={first:te,last:ce};if(this.setContentPosition(Rt),this.first=te,this.last=ce,this.lastScrollPos=ke,this.handleEvents("onScrollIndexChange",Rt),this._lazy&&this.isPageChanged(te)){const Qe={first:this._step?Math.min(this.getPageByFirst(te)*this._step,this.items.length-this._step):te,last:Math.min(this._step?(this.getPageByFirst(te)+1)*this._step:ce,this.items.length)};(this.lazyLoadState.first!==Qe.first||this.lazyLoadState.last!==Qe.last)&&this.handleEvents("onLazyLoad",Qe),this.lazyLoadState=Qe}}}onContainerScroll(F){if(this.handleEvents("onScroll",{originalEvent:F}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:te}=this.onScrollPositionChange(F);(te||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(F),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(F)}unbindResizeListener(){this.resizeObserver&&(this.resizeObserver.unobserve(this.elementViewChild?.nativeElement),this.resizeObserver=null)}onResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Y.D.isVisible(this.elementViewChild?.nativeElement)){const[F,te]=[Y.D.getWidth(this.elementViewChild?.nativeElement),Y.D.getHeight(this.elementViewChild?.nativeElement)],[ce,Te]=[F!==this.defaultWidth,te!==this.defaultHeight];(this.both?ce||Te:this.horizontal?ce:this.vertical&&Te)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.init(),this.calculateAutoSize()})}},this._resizeDelay)}handleEvents(F,te){return this.options&&this.options[F]?this.options[F](te):this[F].emit(te)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:F=>this.getOptions(F),loading:this.d_loading,getLoaderOptions:(F,te)=>this.getLoaderOptions(F,te),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(F){const te=(this._items||[]).length,ce=this.both?this.first.rows+F:this.first+F;return{index:ce,count:te,first:0===ce,last:ce===te-1,even:ce%2==0,odd:ce%2!=0}}getLoaderOptions(F,te){const ce=this.loaderArr.length;return{index:F,count:ce,first:0===F,last:F===ce-1,even:F%2==0,odd:F%2!=0,...te}}static \u0275fac=function(te){return new(te||xe)(u.rXU(p.qQ),u.rXU(u.Agw),u.rXU(u.sFG),u.rXU(u.gRc),u.rXU(u.SKi))};static \u0275cmp=u.VBU({type:xe,selectors:[["p-scroller"]],contentQueries:function(te,ce,Te){if(1&te&&u.wni(Te,v.Ei,4),2&te){let ke;u.mGM(ke=u.lsd())&&(ce.templates=ke)}},viewQuery:function(te,ce){if(1&te&&(u.GBs(x,5),u.GBs(R,5)),2&te){let Te;u.mGM(Te=u.lsd())&&(ce.elementViewChild=Te.first),u.mGM(Te=u.lsd())&&(ce.contentViewChild=Te.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[u.OA$],ngContentSelectors:L,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(te,ce){if(1&te&&(u.NAR(),u.DNE(0,He,8,16,"ng-container",6)(1,gn,2,1,"ng-template",null,0,u.C5r)),2&te){const Te=u.sdS(2);u.Y8G("ngIf",!ce._disabled)("ngIfElse",Te)}},dependencies:()=>[p.YU,p.Sq,p.bT,p.T3,p.B3,b.N],styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return xe})(),ln=(()=>{class xe{static \u0275fac=function(te){return new(te||xe)};static \u0275mod=u.$C({type:xe});static \u0275inj=u.G2t({imports:[p.MD,v.Gg,b.N,v.Gg]})}return xe})()},9998:(Lt,be,D)=>{D.d(be,{MB:()=>ln,y8:()=>fn});var p=D(9969),u=D(177),v=D(4438),Y=D(5779),b=D(3306),x=D(9329),R=D(1962),L=D(1512),j=D(2816),z=D(563),Q=D(4420),Ie=D(1455);const Re=["container"],Se=xe=>[xe,"p-toast-message"],et=(xe,ne,F,te)=>({showTransformParams:xe,hideTransformParams:ne,showTransitionParams:F,hideTransitionParams:te}),lt=xe=>({value:"visible",params:xe}),je=(xe,ne)=>({$implicit:xe,closeFn:ne}),wt=xe=>({$implicit:xe});function Zt(xe,ne){1&xe&&v.eu8(0)}function En(xe,ne){if(1&xe&&(v.qex(0),v.DNE(1,Zt,1,0,"ng-container",4),v.bVm()),2&xe){const F=v.XpG();
1v.R7$(),v.Y8G("ngTemplateOutlet",F.headlessTemplate)("ngTemplateOutletContext",v.l_i(2,je,F.message,F.onCloseIconClick))}}function Le(xe,ne){if(1&xe&&v.nrm(0,"span"),2&xe){const F=v.XpG(3);v.HbH("p-toast-message-icon pi "+F.message.icon)}}function ut(xe,ne){1&xe&&v.nrm(0,"CheckIcon"),2&xe&&v.BMQ("aria-hidden",!0)("data-pc-section","icon")}function Ce(xe,ne){1&xe&&v.nrm(0,"InfoCircleIcon"),2&xe&&v.BMQ("aria-hidden",!0)("data-pc-section","icon")}function me(xe,ne){1&xe&&v.nrm(0,"TimesCircleIcon"),2&xe&&v.BMQ("aria-hidden",!0)("data-pc-section","icon")}function ht(xe,ne){1&xe&&v.nrm(0,"ExclamationTriangleIcon"),2&xe&&v.BMQ("aria-hidden",!0)("data-pc-section","icon")}function ge(xe,ne){if(1&xe&&(v.j41(0,"span",13),v.qex(1),v.DNE(2,ut,1,2,"CheckIcon",6)(3,Ce,1,2,"InfoCircleIcon",6)(4,me,1,2,"TimesCircleIcon",6)(5,ht,1,2,"ExclamationTriangleIcon",6),v.bVm(),v.k0s()),2&xe){const F=v.XpG(3);v.BMQ("aria-hidden",!0)("data-pc-section","icon"),v.R7$(2),v.Y8G("ngIf","success"===F.message.severity),v.R7$(),v.Y8G("ngIf","info"===F.message.severity),v.R7$(),v.Y8G("ngIf","error"===F.message.severity),v.R7$(),v.Y8G("ngIf","warn"===F.message.severity)}}function Be(xe,ne){if(1&xe&&(v.qex(0),v.DNE(1,Le,1,2,"span",8)(2,ge,6,6,"span",9),v.j41(3,"div",10)(4,"div",11),v.EFF(5),v.k0s(),v.j41(6,"div",12),v.EFF(7),v.k0s()(),v.bVm()),2&xe){const F=v.XpG(2);v.R7$(),v.Y8G("ngIf",F.message.icon),v.R7$(),v.Y8G("ngIf",!F.message.icon),v.R7$(),v.BMQ("data-pc-section","text"),v.R7$(),v.BMQ("data-pc-section","summary"),v.R7$(),v.JRh(F.message.summary),v.R7$(),v.BMQ("data-pc-section","detail"),v.R7$(),v.JRh(F.message.detail)}}function pe(xe,ne){1&xe&&v.eu8(0)}function ze(xe,ne){if(1&xe&&v.nrm(0,"span"),2&xe){const F=v.XpG(3);v.HbH("pt-1 text-base p-toast-message-icon pi "+F.message.closeIcon)}}function tt(xe,ne){1&xe&&v.nrm(0,"TimesIcon",16),2&xe&&(v.Y8G("styleClass","p-toast-icon-close-icon"),v.BMQ("aria-hidden",!0)("data-pc-section","closeicon"))}function He(xe,ne){if(1&xe){const F=v.RV6();v.j41(0,"button",14),v.bIt("click",function(ce){v.eBV(F);const Te=v.XpG(2);return v.Njj(Te.onCloseIconClick(ce))})("keydown.enter",function(ce){v.eBV(F);const Te=v.XpG(2);return v.Njj(Te.onCloseIconClick(ce))}),v.DNE(1,ze,1,2,"span",8)(2,tt,1,3,"TimesIcon",15),v.k0s()}if(2&xe){const F=v.XpG(2);v.BMQ("aria-label",F.closeAriaLabel)("data-pc-section","closebutton"),v.R7$(),v.Y8G("ngIf",F.message.closeIcon),v.R7$(),v.Y8G("ngIf",!F.message.closeIcon)}}function st(xe,ne){if(1&xe&&(v.j41(0,"div",5),v.DNE(1,Be,8,7,"ng-container",6)(2,pe,1,0,"ng-container",4)(3,He,3,4,"button",7),v.k0s()),2&xe){const F=v.XpG();v.Y8G("ngClass",null==F.message?null:F.message.contentStyleClass),v.BMQ("data-pc-section","content"),v.R7$(),v.Y8G("ngIf",!F.template),v.R7$(),v.Y8G("ngTemplateOutlet",F.template)("ngTemplateOutletContext",v.eq3(6,wt,F.message)),v.R7$(),v.Y8G("ngIf",!1!==(null==F.message?null:F.message.closable))}}function At(xe,ne){if(1&xe){const F=v.RV6();v.j41(0,"p-toastItem",3),v.bIt("onClose",function(ce){v.eBV(F);const Te=v.XpG();return v.Njj(Te.onMessageClose(ce))})("@toastAnimation.start",function(ce){v.eBV(F);const Te=v.XpG();return v.Njj(Te.onAnimationStart(ce))})("@toastAnimation.done",function(ce){v.eBV(F);const Te=v.XpG();return v.Njj(Te.onAnimationEnd(ce))}),v.k0s()}if(2&xe){const F=ne.$implicit,te=ne.index,ce=v.XpG();v.Y8G("message",F)("index",te)("life",ce.life)("template",ce.template)("headlessTemplate",ce.headlessTemplate)("@toastAnimation",void 0)("showTransformOptions",ce.showTransformOptions)("hideTransformOptions",ce.hideTransformOptions)("showTransitionOptions",ce.showTransitionOptions)("hideTransitionOptions",ce.hideTransitionOptions)}}let gn=(()=>{class xe{zone;config;message;index;life;template;headlessTemplate;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new v.bkB;containerViewChild;timeout;constructor(F,te){this.zone=F,this.config=te}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message?.life||this.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick=F=>{this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),F.preventDefault()};get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.clearTimeout()}static \u0275fac=function(te){return new(te||xe)(v.rXU(v.SKi),v.rXU(Y.r1))};static \u0275cmp=v.VBU({type:xe,selectors:[["p-toastItem"]],viewQuery:function(te,ce){if(1&te&&v.GBs(Re,5),2&te){let Te;v.mGM(Te=v.lsd())&&(ce.containerViewChild=Te.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:[v.Mj6.HasDecoratorInputTransform,"index","index",v.Udg],life:[v.Mj6.HasDecoratorInputTransform,"life","life",v.Udg],template:"template",headlessTemplate:"headlessTemplate",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},features:[v.GFd],decls:5,vars:18,consts:[["container",""],["notHeadless",""],["role","alert","aria-live","assertive","aria-atomic","true",3,"mouseenter","mouseleave","ngClass"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"class",4,"ngIf"],["class","p-toast-message-icon",4,"ngIf"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],[1,"p-toast-message-icon"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(te,ce){if(1&te){const Te=v.RV6();v.j41(0,"div",2,0),v.bIt("mouseenter",function(){return v.eBV(Te),v.Njj(ce.onMouseEnter())})("mouseleave",function(){return v.eBV(Te),v.Njj(ce.onMouseLeave())}),v.DNE(2,En,2,5,"ng-container",3)(3,st,4,8,"ng-template",null,1,v.C5r),v.k0s()}if(2&te){const Te=v.sdS(4);v.HbH(null==ce.message?null:ce.message.styleClass),v.Y8G("ngClass",v.eq3(9,Se,"p-toast-message-"+(null==ce.message?null:ce.message.severity)
1))("@messageState",v.eq3(16,lt,v.ziG(11,et,ce.showTransformOptions,ce.hideTransformOptions,ce.showTransitionOptions,ce.hideTransitionOptions))),v.BMQ("id",null==ce.message?null:ce.message.id)("data-pc-name","toast")("data-pc-section","root"),v.R7$(2),v.Y8G("ngIf",ce.headlessTemplate)("ngIfElse",Te)}},dependencies:()=>[u.YU,u.bT,u.T3,z.n,b.S,R.e,j.I,x.P,L.A],encapsulation:2,data:{animation:[(0,p.hZ)("messageState",[(0,p.wk)("visible",(0,p.iF)({transform:"translateY(0)",opacity:1})),(0,p.kY)("void => *",[(0,p.iF)({transform:"{{showTransformParams}}",opacity:0}),(0,p.i0)("{{showTransitionParams}}")]),(0,p.kY)("* => void",[(0,p.i0)("{{hideTransitionParams}}",(0,p.iF)({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return xe})(),fn=(()=>{class xe{document;renderer;messageService;cd;config;key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;get position(){return this._position}set position(F){this._position=F,this.cd.markForCheck()}preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new v.bkB;containerViewChild;templates;messageSubscription;clearSubscription;messages;messagesArchieve;template;headlessTemplate;_position="top-right";constructor(F,te,ce,Te,ke){this.document=F,this.renderer=te,this.messageService=ce,this.cd=Te,this.config=ke}styleElement;id=(0,Q._Y)();ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(F=>{if(F)if(Array.isArray(F)){const te=F.filter(ce=>this.canAdd(ce));this.add(te)}else this.canAdd(F)&&this.add([F])}),this.clearSubscription=this.messageService.clearObserver.subscribe(F=>{F?this.key===F&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(F){this.messages=this.messages?[...this.messages,...F]:[...F],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...F]:[...F]),this.cd.markForCheck()}canAdd(F){let te=this.key===F.key;return te&&this.preventOpenDuplicates&&(te=!this.containsMessage(this.messages,F)),te&&this.preventDuplicates&&(te=!this.containsMessage(this.messagesArchieve,F)),te}containsMessage(F,te){return!!F&&null!=F.find(ce=>ce.summary===te.summary&&ce.detail==te.detail&&ce.severity===te.severity)}ngAfterContentInit(){this.templates?.forEach(F=>{switch(F.getType()){case"message":default:this.template=F.template;break;case"headless":this.headlessTemplate=F.template}})}onMessageClose(F){this.messages?.splice(F.index,1),this.onClose.emit({message:F.message}),this.cd.detectChanges()}onAnimationStart(F){"void"===F.fromState&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&""===this.containerViewChild?.nativeElement.style.zIndex&&Q.Q$.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(F){"void"===F.toState&&this.autoZIndex&&Q.BF.isEmpty(this.messages)&&Q.Q$.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",Ie.D.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let F="";for(let te in this.breakpoints){let ce="";for(let Te in this.breakpoints[te])ce+=Te+":"+this.breakpoints[te][Te]+" !important;";F+=`\n @media screen and (max-width: ${te}) {\n .p-toast[${this.id}] {\n ${ce}\n }\n }\n `}this.renderer.setProperty(this.styleElement,"innerHTML",F)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&Q.Q$.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}static \u0275fac=function(te){return new(te||xe)(v.rXU(u.qQ),v.rXU(v.sFG),v.rXU(Y.bg),v.rXU(v.gRc),v.rXU(Y.r1))};static \u0275cmp=v.VBU({type:xe,selectors:[["p-toast"]],contentQueries:function(te,ce,Te){if(1&te&&v.wni(Te,Y.Ei,4),2&te){let ke;v.mGM(ke=v.lsd())&&(ce.templates=ke)}},viewQuery:function(te,ce){if(1&te&&v.GBs(Re,5),2&te){let Te;v.mGM(Te=v.lsd())&&(ce.containerViewChild=Te.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:[v.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",v.L39],baseZIndex:[v.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",v.Udg],life:[v.Mj6.HasDecoratorInputTransform,"life","life",v.Udg],style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:[v.Mj6.HasDecoratorInputTransform,"preventOpenDuplicates","preventOpenDuplicates",v.
1L39],preventDuplicates:[v.Mj6.HasDecoratorInputTransform,"preventDuplicates","preventDuplicates",v.L39],showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},features:[v.GFd],decls:3,vars:5,consts:[["container",""],[1,"p-toast","p-component",3,"ngClass","ngStyle"],[3,"message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"onClose","message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions"]],template:function(te,ce){1&te&&(v.j41(0,"div",1,0),v.DNE(2,At,1,10,"p-toastItem",2),v.k0s()),2&te&&(v.HbH(ce.styleClass),v.Y8G("ngClass","p-toast-"+ce._position)("ngStyle",ce.style),v.R7$(2),v.Y8G("ngForOf",ce.messages))},dependencies:[u.YU,u.Sq,u.B3,gn],styles:["@layer primeng{.p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;flex:none}.p-toast-icon-close.p-link{cursor:pointer}}\n"],encapsulation:2,data:{animation:[(0,p.hZ)("toastAnimation",[(0,p.kY)(":enter, :leave",[(0,p.P)("@*",(0,p.MA)())])])]},changeDetection:0})}return xe})(),ln=(()=>{class xe{static \u0275fac=function(te){return new(te||xe)};static \u0275mod=v.$C({type:xe});static \u0275inj=v.G2t({imports:[u.MD,z.Z,b.S,R.e,j.I,x.P,L.A,Y.Gg]})}return xe})()},8542:(Lt,be,D)=>{D.d(be,{S:()=>R,m:()=>x});var p=D(177),u=D(4438),v=D(1455),Y=D(4420),b=D(5779);let x=(()=>{class L{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(z){this._disabled=z,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:(0,Y._Y)()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;interactionInProgress=!1;constructor(z,Q,Ie,Re,Se,et){this.platformId=z,this.el=Q,this.zone=Ie,this.config=Re,this.renderer=Se,this.viewContainer=et}ngAfterViewInit(){(0,p.UE)(this.platformId)&&this.zone.runOutsideAngular(()=>{const z=this.getOption("tooltipEvent");if(("hover"===z||"both"===z)&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),"focus"===z||"both"===z){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let Q=this.el.nativeElement.querySelector(".p-component");Q||(Q=this.getTarget(this.el.nativeElement)),Q.addEventListener("focus",this.focusListener),Q.addEventListener("blur",this.blurListener)}})}setAriaDescribedBy(){const z=this.getOption("id");z&&this.active&&this.renderer.setAttribute(this.el.nativeElement,"aria-describedby",z)}removeAriaDescribedBy(){this.renderer.removeAttribute(this.el.nativeElement,"aria-describedby")}ngOnChanges(z){z.tooltipPosition&&this.setOption({tooltipPosition:z.tooltipPosition.currentValue}),z.tooltipEvent&&this.setOption({tooltipEvent:z.tooltipEvent.currentValue}),z.appendTo&&this.setOption({appendTo:z.appendTo.currentValue}),z.positionStyle&&this.setOption({positionStyle:z.positionStyle.currentValue}),z.tooltipStyleClass&&this.setOption({tooltipStyleClass:z.tooltipStyleClass.currentValue}),z.tooltipZIndex&&this.setOption({tooltipZIndex:z.tooltipZIndex.currentValue}),z.escape&&this.setOption({escape:z.escape.currentValue}),z.showDelay&&this.setOption({showDelay:z.showDelay.currentValue}),z.hideDelay&&this.setOption({hideDelay:z.hideDelay.currentValue}),z.life&&this.setOption({life:z.life.currentValue}),z.positionTop&&this.setOption({positionTop:z.positionTop.currentValue}),z.positionLeft&&this.setOption({positionLeft:z.positionLeft.currentValue}),z.disabled&&this.setOption({disabled:z.disabled.currentValue}),z.content&&(this.setOption({tooltipLabel:z.content.currentValue}),this.active&&(z.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),z.autoHide&&this.setOption({autoHide:z.autoHide.currentValue}),z.id&&this.setOption({id:z.id.currentValue}),z.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...z.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(z){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(z){(this.isAutoHide()||!(v.D.hasClass(z.relatedTarget,"p-tooltip")||v.D.hasClass(z.relatedTarget,"p-tooltip-text")||v.D.hasClass(z.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(z){this.activate()}onBlur(z){this.deactivate()}onInputClick(z){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let z=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},z)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener()}))}this.interactionInProgress=!0}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let z=document.createElement("div");z.className="p-tooltip-arrow",this.container.appendChild(z),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?v.D.appendChild(this.container,this.el.nativeElement):v.D.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener()),this.setAriaDescribedBy()}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",Q=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){this.getOption("tooltipLabel")&&!this.getOption("disabled")&&(this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&this.align()},100):this.align(),v.D.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Y.Q$.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Y.Q$.clear(this.container),this.remove()}updateText(){const z=this.getOption("tooltipLabel");if(z instanceof u.C4Q){const Q=this.viewContainer.createEmbeddedView(z);
1Q.detectChanges(),Q.rootNodes.forEach(Ie=>this.tooltipText.appendChild(Ie))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(z))):this.tooltipText.innerHTML=z}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let z=this.el.nativeElement.getBoundingClientRect();return{left:z.left+v.D.getWindowScrollLeft(),top:z.top+v.D.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");const z=this.activeElement,Q=this.getHostOffset(),Ie=Q.left+v.D.getOuterWidth(z),Re=Q.top+(v.D.getOuterHeight(z)-v.D.getOuterHeight(this.container))/2;this.container.style.left=Ie+this.getOption("positionLeft")+"px",this.container.style.top=Re+this.getOption("positionTop")+"px"}get activeElement(){return this.el.nativeElement.nodeName.includes("P-")&&v.D.findSingle(this.el.nativeElement,".p-component")||this.el.nativeElement}alignLeft(){this.preAlign("left");let z=this.getHostOffset(),Q=z.left-v.D.getOuterWidth(this.container),Ie=z.top+(v.D.getOuterHeight(this.el.nativeElement)-v.D.getOuterHeight(this.container))/2;this.container.style.left=Q+this.getOption("positionLeft")+"px",this.container.style.top=Ie+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let z=this.getHostOffset(),Q=z.left+(v.D.getOuterWidth(this.el.nativeElement)-v.D.getOuterWidth(this.container))/2,Ie=z.top-v.D.getOuterHeight(this.container);this.container.style.left=Q+this.getOption("positionLeft")+"px",this.container.style.top=Ie+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let z=this.getHostOffset(),Q=z.left+(v.D.getOuterWidth(this.el.nativeElement)-v.D.getOuterWidth(this.container))/2,Ie=z.top+v.D.getOuterHeight(this.el.nativeElement);this.container.style.left=Q+this.getOption("positionLeft")+"px",this.container.style.top=Ie+this.getOption("positionTop")+"px"}setOption(z){this._tooltipOptions={...this._tooltipOptions,...z}}getOption(z){return this._tooltipOptions[z]}getTarget(z){return v.D.hasClass(z,"p-inputwrapper")?v.D.findSingle(z,"input"):z}preAlign(z){this.container.style.left="-999px",this.container.style.top="-999px";let Q="p-tooltip p-component p-tooltip-"+z;this.container.className=this.getOption("tooltipStyleClass")?Q+" "+this.getOption("tooltipStyleClass"):Q}isOutOfBounds(){let z=this.container.getBoundingClientRect(),Q=z.top,Ie=z.left,Re=v.D.getOuterWidth(this.container),Se=v.D.getOuterHeight(this.container),et=v.D.getViewport();return Ie+Re>et.width||Ie<0||Q<0||Q+Se>et.height}onWindowResize(z){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new v.b(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){const z=this.getOption("tooltipEvent");if(("hover"===z||"both"===z)&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),"focus"===z||"both"===z){let Q=this.el.nativeElement.querySelector(".p-component");Q||(Q=this.getTarget(this.el.nativeElement))}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):v.D.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.removeAriaDescribedBy(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Y.Q$.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(Q){return new(Q||L)(u.rXU(u.Agw),u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(b.r1),u.rXU(u.sFG),u.rXU(u.c1b))};static \u0275dir=u.FsC({type:L,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[u.Mj6.HasDecoratorInputTransform,"escape","escape",u.
1L39],showDelay:[u.Mj6.HasDecoratorInputTransform,"showDelay","showDelay",u.Udg],hideDelay:[u.Mj6.HasDecoratorInputTransform,"hideDelay","hideDelay",u.Udg],life:[u.Mj6.HasDecoratorInputTransform,"life","life",u.Udg],positionTop:[u.Mj6.HasDecoratorInputTransform,"positionTop","positionTop",u.Udg],positionLeft:[u.Mj6.HasDecoratorInputTransform,"positionLeft","positionLeft",u.Udg],autoHide:[u.Mj6.HasDecoratorInputTransform,"autoHide","autoHide",u.L39],fitContent:[u.Mj6.HasDecoratorInputTransform,"fitContent","fitContent",u.L39],hideOnEscape:[u.Mj6.HasDecoratorInputTransform,"hideOnEscape","hideOnEscape",u.L39],content:[u.Mj6.None,"pTooltip","content"],disabled:[u.Mj6.None,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[u.GFd,u.OA$]})}return L})(),R=(()=>{class L{static \u0275fac=function(Q){return new(Q||L)};static \u0275mod=u.$C({type:L});static \u0275inj=u.G2t({imports:[p.MD]})}return L})()},4420:(Lt,be,D)=>{D.d(be,{BF:()=>p,Q$:()=>b,_Y:()=>v});class p{static isArray(R,L=!0){return Array.isArray(R)&&(L||0!==R.length)}static isObject(R,L=!0){return"object"==typeof R&&!Array.isArray(R)&&null!=R&&(L||0!==Object.keys(R).length)}static equals(R,L,j){return j?this.resolveFieldData(R,j)===this.resolveFieldData(L,j):this.equalsByValue(R,L)}static equalsByValue(R,L){if(R===L)return!0;if(R&&L&&"object"==typeof R&&"object"==typeof L){var Q,Ie,Re,j=Array.isArray(R),z=Array.isArray(L);if(j&&z){if((Ie=R.length)!=L.length)return!1;for(Q=Ie;0!=Q--;)if(!this.equalsByValue(R[Q],L[Q]))return!1;return!0}if(j!=z)return!1;var Se=this.isDate(R),et=this.isDate(L);if(Se!=et)return!1;if(Se&&et)return R.getTime()==L.getTime();var lt=R instanceof RegExp,je=L instanceof RegExp;if(lt!=je)return!1;if(lt&&je)return R.toString()==L.toString();var wt=Object.keys(R);if((Ie=wt.length)!==Object.keys(L).length)return!1;for(Q=Ie;0!=Q--;)if(!Object.prototype.hasOwnProperty.call(L,wt[Q]))return!1;for(Q=Ie;0!=Q--;)if(!this.equalsByValue(R[Re=wt[Q]],L[Re]))return!1;return!0}return R!=R&&L!=L}static resolveFieldData(R,L){if(R&&L){if(this.isFunction(L))return L(R);if(-1==L.indexOf("."))return R[L];{let j=L.split("."),z=R;for(let Q=0,Ie=j.length;Q<Ie;++Q){if(null==z)return null;z=z[j[Q]]}return z}}return null}static isFunction(R){return!!(R&&R.constructor&&R.call&&R.apply)}static reorderArray(R,L,j){R&&L!==j&&(j>=R.length&&(j%=R.length,L%=R.length),R.splice(j,0,R.splice(L,1)[0]))}static insertIntoOrderedArray(R,L,j,z){if(j.length>0){let Q=!1;for(let Ie=0;Ie<j.length;Ie++)if(this.findIndexInList(j[Ie],z)>L){j.splice(Ie,0,R),Q=!0;break}Q||j.push(R)}else j.push(R)}static findIndexInList(R,L){let j=-1;if(L)for(let z=0;z<L.length;z++)if(L[z]==R){j=z;break}return j}static contains(R,L){if(null!=R&&L&&L.length)for(let j of L)if(this.equals(R,j))return!0;return!1}static removeAccents(R){return R&&(R=R.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),R}static isDate(R){return"[object Date]"===Object.prototype.toString.call(R)}static isEmpty(R){return null==R||""===R||Array.isArray(R)&&0===R.length||!this.isDate(R)&&"object"==typeof R&&0===Object.keys(R).length}static isNotEmpty(R){return!this.isEmpty(R)}static compare(R,L,j,z=1){let Q=-1;const Ie=this.isEmpty(R),Re=this.isEmpty(L);return Q=Ie&&Re?0:Ie?z:Re?-z:"string"==typeof R&&"string"==typeof L?R.localeCompare(L,j,{numeric:!0}):R<L?-1:R>L?1:0,Q}static sort(R,L,j=1,z,Q=1){const Ie=p.compare(R,L,z,j);let Re=j;return(p.isEmpty(R)||p.isEmpty(L))&&(Re=1===Q?j:Q),Re*Ie}static merge(R,L){if(null!=R||null!=L)return null!=R&&"object"!=typeof R||null!=L&&"object"!=typeof L?null!=R&&"string"!=typeof R||null!=L&&"string"!=typeof L?L||R:[R||"",L||""].join(" "):{...R||{},...L||{}}}static isPrintableCharacter(R=""){return this.isNotEmpty(R)&&1===R.length&&R.match(/\S| /)}static getItemValue(R,...L){return this.isFunction(R)?R(...L):R}static findLastIndex(R,L){let j=-1;if(this.isNotEmpty(R))try{j=R.findLastIndex(L)}catch{j=R.lastIndexOf([...R].reverse().find(L))}return j}static findLast(R,L){let j;if(this.isNotEmpty(R))try{j=R.findLast(L)}catch{j=[...R].reverse().find(L)}return j}static deepEquals(R,L){if(R===L)return!0;
1if(R&&L&&"object"==typeof R&&"object"==typeof L){var Q,Ie,Re,j=Array.isArray(R),z=Array.isArray(L);if(j&&z){if((Ie=R.length)!=L.length)return!1;for(Q=Ie;0!=Q--;)if(!this.deepEquals(R[Q],L[Q]))return!1;return!0}if(j!=z)return!1;var Se=R instanceof Date,et=L instanceof Date;if(Se!=et)return!1;if(Se&&et)return R.getTime()==L.getTime();var lt=R instanceof RegExp,je=L instanceof RegExp;if(lt!=je)return!1;if(lt&&je)return R.toString()==L.toString();var wt=Object.keys(R);if((Ie=wt.length)!==Object.keys(L).length)return!1;for(Q=Ie;0!=Q--;)if(!Object.prototype.hasOwnProperty.call(L,wt[Q]))return!1;for(Q=Ie;0!=Q--;)if(!this.deepEquals(R[Re=wt[Q]],L[Re]))return!1;return!0}return R!=R&&L!=L}}var u=0;function v(x="pn_id_"){return`${x}${++u}`}var b=function Y(){let x=[];const z=Q=>Q&&parseInt(Q.style.zIndex,10)||0;return{get:z,set:(Q,Ie,Re)=>{Ie&&(Ie.style.zIndex=String(((Q,Ie)=>{let Re=x.length>0?x[x.length-1]:{key:Q,value:Ie},Se=Re.value+(Re.key===Q?0:Ie)+2;return x.push({key:Q,value:Se}),Se})(Q,Re)))},clear:Q=>{Q&&((Q=>{x=x.filter(Ie=>Ie.value!==Q)})(z(Q)),Q.style.zIndex="")},getCurrent:()=>x.length>0?x[x.length-1].value:0}}()},467:(Lt,be,D)=>{function p(v,Y,b,x,R,L,j){try{var z=v[L](j),Q=z.value}catch(Ie){return void b(Ie)}z.done?Y(Q):Promise.resolve(Q).then(x,R)}function u(v){return function(){var Y=this,b=arguments;return new Promise(function(x,R){var L=v.apply(Y,b);function j(Q){p(L,x,R,j,z,"next",Q)}function z(Q){p(L,x,R,j,z,"throw",Q)}j(void 0)})}}D.d(be,{A:()=>u})},1635:(Lt,be,D)=>{function Ie(ne,F,te,ce){return new(te||(te=Promise))(function(ke,Rt){function Qe(xn){try{hn(ce.next(xn))}catch(en){Rt(en)}}function On(xn){try{hn(ce.throw(xn))}catch(en){Rt(en)}}function hn(xn){xn.done?ke(xn.value):function Te(ke){return ke instanceof te?ke:new te(function(Rt){Rt(ke)})}(xn.value).then(Qe,On)}hn((ce=ce.apply(ne,F||[])).next())})}function Le(ne){return this instanceof Le?(this.v=ne,this):new Le(ne)}function ut(ne,F,te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te,ce=te.apply(ne,F||[]),ke=[];return Te=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Qe("next"),Qe("throw"),Qe("return",function Rt(Ht){return function(ar){return Promise.resolve(ar).then(Ht,en)}}),Te[Symbol.asyncIterator]=function(){return this},Te;function Qe(Ht,ar){ce[Ht]&&(Te[Ht]=function(Gn){return new Promise(function(Pt,An){ke.push([Ht,Gn,Pt,An])>1||On(Ht,Gn)})},ar&&(Te[Ht]=ar(Te[Ht])))}function On(Ht,ar){try{!function hn(Ht){Ht.value instanceof Le?Promise.resolve(Ht.value.v).then(xn,en):Qt(ke[0][2],Ht)}(ce[Ht](ar))}catch(Gn){Qt(ke[0][3],Gn)}}function xn(Ht){On("next",Ht)}function en(Ht){On("throw",Ht)}function Qt(Ht,ar){Ht(ar),ke.shift(),ke.length&&On(ke[0][0],ke[0][1])}}function me(ne){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var te,F=ne[Symbol.asyncIterator];return F?F.call(ne):(ne=function lt(ne){var F="function"==typeof Symbol&&Symbol.iterator,te=F&&ne[F],ce=0;if(te)return te.call(ne);if(ne&&"number"==typeof ne.length)return{next:function(){return ne&&ce>=ne.length&&(ne=void 0),{value:ne&&ne[ce++],done:!ne}}};throw new TypeError(F?"Object is not iterable.":"Symbol.iterator is not defined.")}(ne),te={},ce("next"),ce("throw"),ce("return"),te[Symbol.asyncIterator]=function(){return this},te);function ce(ke){te[ke]=ne[ke]&&function(Rt){return new Promise(function(Qe,On){!function Te(ke,Rt,Qe,On){Promise.resolve(On).then(function(hn){ke({value:hn,done:Qe})},Rt)}(Qe,On,(Rt=ne[ke](Rt)).done,Rt.value)})}}}D.d(be,{AQ:()=>ut,N3:()=>Le,sH:()=>Ie,xN:()=>me}),"function"==typeof SuppressedError&&SuppressedError}},Lt=>{Lt(Lt.s=4648)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.